diff --git a/code/WebApp/vanilla/.eslintrc.json b/code/WebApp/vanilla/.eslintrc.json
new file mode 100644
index 00000000..bc98a861
--- /dev/null
+++ b/code/WebApp/vanilla/.eslintrc.json
@@ -0,0 +1,25 @@
+{
+ "root": true,
+ "rules": {
+ "import/extensions": [
+ 2,
+ "ignorePackages",
+ {
+ "js": "never",
+ "jsx": "never",
+ "ts": "never",
+ "tsx": "never"
+ }
+ ],
+ "sort-imports": [
+ "error",
+ {
+ "ignoreCase": false,
+ "ignoreDeclarationSort": false,
+ "ignoreMemberSort": false,
+ "memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
+ "allowSeparatedGroups": false
+ }
+ ]
+ }
+}
diff --git a/code/WebApp/vanilla/.prettierrc.json b/code/WebApp/vanilla/.prettierrc.json
new file mode 100644
index 00000000..328d820c
--- /dev/null
+++ b/code/WebApp/vanilla/.prettierrc.json
@@ -0,0 +1,21 @@
+{
+ "printWidth": 120,
+ "tabWidth": 2,
+ "useTabs": false,
+ "semi": true,
+ "ssingleQuote": true,
+ "squoteProps": "as-needed",
+ "sjsxSingleQuote": false,
+ "strailingComma": "all",
+ "sbracketSpacing": true,
+ "sjsxBracketSameLine": false,
+ "sarrowParens": "always",
+ "srangeStart": 0,
+ "srangeEnd": "Infinity",
+ "srequirePragma": false,
+ "sinsertPragma": false,
+ "sproseWrap": "preserve",
+ "shtmlWhitespaceSensitivity": "css",
+ "svueIndentScriptAndStyle": false,
+ "endOfLine": "lf"
+}
diff --git a/code/WebApp/vanilla/.vscode/extensions.json b/code/WebApp/vanilla/.vscode/extensions.json
new file mode 100644
index 00000000..55f25595
--- /dev/null
+++ b/code/WebApp/vanilla/.vscode/extensions.json
@@ -0,0 +1,5 @@
+{
+ "recommendations": [
+ "Vue.volar",
+ ]
+}
\ No newline at end of file
diff --git a/code/WebApp/vanilla/.vscode/settings.json b/code/WebApp/vanilla/.vscode/settings.json
new file mode 100644
index 00000000..b797f126
--- /dev/null
+++ b/code/WebApp/vanilla/.vscode/settings.json
@@ -0,0 +1,7 @@
+{
+ "search.exclude": {
+ "lib": true
+ },
+ "editor.formatOnSave": true,
+ "liveServer.settings.port": 9527
+}
diff --git a/code/WebApp/vanilla/api/site.js b/code/WebApp/vanilla/api/site.js
new file mode 100644
index 00000000..614ccd9f
--- /dev/null
+++ b/code/WebApp/vanilla/api/site.js
@@ -0,0 +1,169 @@
+import { get, post } from "../request/index.js";
+
+async function getLocalizationAsync() {
+ // const url = "abp/application-configuration";
+ // const data = (await get(url, null, null, true, true)).data;
+ return {
+ options: [
+ {
+ value: "zh",
+ label: "中文",
+ },
+ {
+ value: "en",
+ label: "English",
+ },
+ ],
+ locale: "zh",
+ messages: {
+ zh: {
+ application: "北京北汽模塑-SAS结算分析系统",
+ copyright: "长春市闻荫科技有限公司 ©2023",
+ test: "测试",
+ compareAttribute: "{0}”和{1}不匹配",
+ fileExtensionsAttribute: "{0}只接受一下扩展名的文件: {1}",
+ maxLengthAttribute: "{0}的最大长度为 {1}",
+ minLengthAttribute: "{0}的最小长度为 {1}",
+ rangeAttribute: "{0}必需在 {1} 和 {2} 之间",
+ regularExpressionAttribute: "{0}”必需匹配{1}",
+ requiredAttribute: "{0}不能为空",
+ stringLengthAttribute: "{0}的最大长度为 {1}",
+ stringLengthAttributeIncludingMinimum: "{0}的长度在 {2} 和 {1} 之间",
+ dataTypeAttribute_CreditCard: "{0}不是有效的信用卡号码",
+ dataTypeAttribute_EmailAddress: "{0}不是有效的 Email 地址",
+ dataTypeAttribute_PhoneNumber: "{0}不是有效的手机号码",
+ dataTypeAttribute_Url: "{0}不是有效的 Url",
+ dataTypeAttribute_Upload: "{0}的扩展名必须为:{1}",
+ dataTypeAttribute_DateTime: "{0}不是有效的日期格式",
+ customValidationAttribute: "{0}验证失败",
+ validationAttribute: "{0}验证失败",
+ true: "是",
+ false: "否",
+ select: "选择",
+ confirm: "确定",
+ reset: "重置",
+ rowIndex: "行号",
+ name: "名称",
+ number: "编号",
+ value: "值",
+ order: "序号",
+ isDisabled: "禁用",
+ properties: "属性",
+ parentId: "上级",
+ lockoutEnabled: "启用锁定",
+ lockoutEnd: "锁定截止",
+ accessFailedCount: "登录失败次数",
+ isSystem: "系统内置",
+ isReadonly: "只读",
+ audit: "审计",
+ selectAll: "全选",
+ selectInverse: "反选",
+ filter: "过滤",
+ createdOn: "创建时间",
+ createdBy: "创建人",
+ updatedOn: "修改时间",
+ updatedBy: "修改人",
+ deletedOn: "删除时间",
+ deletedBy: "删除人",
+ concurrencyStamp: "并发戳",
+ operations: "操作",
+ disabled: "已禁用",
+ displayOrder: "序号",
+ isDeleted: "已删除",
+ path: "路径",
+ method: "方法",
+ isTop: "顶部",
+ htmlClass: "class",
+ internalPath: "内部路径",
+ component: "组件",
+ serverTime: "服务器时间",
+ osArchitecture: "系统架构",
+ osDescription: "操作系统",
+ processArchitecture: "进程架构",
+ tip: "提示",
+ cancel: "操作取消",
+ index: "查询",
+ details: "详情",
+ create: "新建",
+ update: "更新",
+ import: "导入",
+ export: "导出",
+ remove: "移除",
+ restore: "还原",
+ delete: "删除",
+ authenticate: "验证",
+ loginModel: "登录",
+ login: "登录",
+ logout: "注销",
+ confirmLogout: "确认退出?",
+ register: "注册",
+ userName: "用户名",
+ password: "密码",
+ email: "邮箱",
+ emailConfirmed: "邮箱已确认",
+ rememberMe: "记住我",
+ resetPassword: "重置密码",
+ userCenter: "用户中心",
+ avatar: "头像",
+ tenant: "租户",
+ connectionString: "连接字符串",
+ tenantId: "租户",
+ tenants: "租户管理",
+ identity: "认证中心",
+ systemManagement: "基础数据",
+ roleId: "角色",
+ permissionId: "权限",
+ userRoles: "用户角色",
+ enableColumnLimit: "列权限",
+ enableRowLimit: "行权限",
+ rolePermissions: "角色权限",
+ departmentId: "部门",
+ cron: "定时器",
+ icon: "图标",
+ type: "类型",
+ isExternal: "外链",
+ isHidden: "隐藏",
+ redirect: "跳转",
+ columns: "列",
+ identityModule: "系统管理",
+ user: "用户",
+ role: "角色",
+ permission: "权限",
+ department: "部门",
+ post: "岗位",
+ dict: "字典",
+ systemMonitor: "系统监控",
+ monitor: "服务监控",
+ monitorModule: "系统监控",
+ jobItem: "定时任务",
+ captcha: "验证码",
+ captchaExpired: "验证码已过期",
+ captchaError: "验证码错误",
+ dictionaryItem: "数据字典",
+ userLogin: "登录历史",
+ connectionId: "连接Id",
+ isOnline: "在线",
+ heartbeat: "心跳",
+ userAgent: "用户代理",
+ },
+ en: {
+ application: "WTA Framework",
+ copyright: "all rights reserved © copyright",
+ test: "test",
+ login: "Login",
+ logout: "Logout",
+ confirmLogout: "Confirm Logout?",
+ register: "Register",
+ tip: "Tip",
+ cancel: "Cancel",
+ userName: "User Name",
+ password: "Password",
+ rememberMe: "Remember Me",
+ resetPassword: "Reset Password",
+ userCenter: "User Center",
+ },
+ },
+ };
+}
+
+export { getLocalizationAsync };
diff --git a/code/WebApp/vanilla/api/user.js b/code/WebApp/vanilla/api/user.js
new file mode 100644
index 00000000..51d53a10
--- /dev/null
+++ b/code/WebApp/vanilla/api/user.js
@@ -0,0 +1,80 @@
+import router from "../router/index.js";
+import { get, post } from "../request/index.js";
+import jwt_decode from "../lib/jwt-decode/jwt-decode.esm.js";
+import qs from "../lib/qs/shim.js";
+import { useAppStore } from "../store/index.js";
+import { refreshRouter } from "../router/index.js";
+import Enumerable from "linq";
+import { connection } from "../signalr/index.js";
+
+const isLogin = async () => {
+ const appStore = useAppStore();
+ // 有 token,判断是否过期,失败设置 token 为 null
+ if (appStore.token) {
+ const exp = new Date(jwt_decode(appStore.token).exp * 1000);
+ if (exp > new Date()) {
+ return true;
+ } else {
+ appStore.token = null;
+ }
+ }
+ return false;
+};
+
+const login = async (data) => {
+ const url = "connect-token";
+ const appStore = useAppStore();
+ const result = await post(url, data, { headers: { "Content-Type": "application/x-www-form-urlencoded" } }, true);
+ if (!result.errors) {
+ appStore.token = result.data.access_token;
+ setRefreshToken(result.data.refresh_token);
+ appStore.user = await getUser();
+ await refreshRouter();
+ const redirect = router.currentRoute.value.query?.redirect ?? "/";
+ router.push(redirect);
+ }
+ return result;
+};
+
+const logout = () => {
+ const appStore = useAppStore();
+ appStore.token = null;
+ removeRefreshToken();
+ router.push({ path: "/login", query: { redirect: router.currentRoute.value.fullPath } });
+};
+
+const getUser = async () => {
+ const result = await get("abp/application-configuration");
+ const data = result.data;
+ const user = {};
+ user.name = data.currentUser.userName;
+ user.email = data.currentUser.email;
+ user.roles = data.currentUser.roles;
+ const menus = (await get("base/role-menus")).data;
+ user.permissions = menus.items;
+ return user;
+};
+
+const hasPermission = (to) => {
+ const appStore = useAppStore();
+ const permission = to.meta?.permission;
+ if (permission) {
+ const hasPermission = Enumerable.from(appStore.user.permissions).any((o) => o.number === permission);
+ return hasPermission;
+ } else {
+ return true;
+ }
+};
+
+const refreshTokenKey = "refresh_token";
+
+const getRefreshToken = () => localStorage.getItem(refreshTokenKey);
+
+const setRefreshToken = (refreshToken) => localStorage.setItem(refreshTokenKey, refreshToken);
+
+const removeRefreshToken = () => {
+ localStorage.removeItem(refreshTokenKey);
+ connection.stop();
+};
+
+export { isLogin, login, logout, getUser, hasPermission };
diff --git a/code/WebApp/vanilla/app.js b/code/WebApp/vanilla/app.js
new file mode 100644
index 00000000..9f35eb2c
--- /dev/null
+++ b/code/WebApp/vanilla/app.js
@@ -0,0 +1,27 @@
+import html from "html";
+import { ElConfigProvider } from "element-plus";
+import zh from "./lib/element-plus/locale/zh-cn.min.mjs";
+import en from "./lib/element-plus/locale/en.min.mjs";
+import { Suspense, reactive, onMounted } from "vue";
+
+export default {
+ components: { ElConfigProvider, Suspense },
+ template: html`
+
+
+
+ Loading...
+ `,
+ setup() {
+ const localeMap = reactive(
+ new Map([
+ ["zh", zh],
+ ["en", en],
+ ])
+ );
+ onMounted(() => document.querySelector("#loading.loading").classList.remove("loading"));
+ return {
+ localeMap,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/assets/docs/test.md b/code/WebApp/vanilla/assets/docs/test.md
new file mode 100644
index 00000000..f8e9919b
--- /dev/null
+++ b/code/WebApp/vanilla/assets/docs/test.md
@@ -0,0 +1,18 @@
+Markdown
+========
+
+## flowchart
+
+```mermaid
+flowchart LR
+ Start --> Stop
+```
+
+## highlight
+
+```javascript
+function (){
+ let a=1;
+ alert(a);
+}
+```
diff --git a/code/WebApp/vanilla/assets/icons/create.svg b/code/WebApp/vanilla/assets/icons/create.svg
new file mode 100644
index 00000000..210823c0
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/create.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/delete.svg b/code/WebApp/vanilla/assets/icons/delete.svg
new file mode 100644
index 00000000..4efc34ba
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/delete.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/details.svg b/code/WebApp/vanilla/assets/icons/details.svg
new file mode 100644
index 00000000..53362534
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/details.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/export.svg b/code/WebApp/vanilla/assets/icons/export.svg
new file mode 100644
index 00000000..cc1c7420
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/export.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/file.svg b/code/WebApp/vanilla/assets/icons/file.svg
new file mode 100644
index 00000000..67be8c3c
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/file.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/fold.svg b/code/WebApp/vanilla/assets/icons/fold.svg
new file mode 100644
index 00000000..5fd0e8dc
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/fold.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/folder.svg b/code/WebApp/vanilla/assets/icons/folder.svg
new file mode 100644
index 00000000..216744ff
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/folder.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg b/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg
new file mode 100644
index 00000000..9464cdac
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/code/WebApp/vanilla/assets/icons/fullscreen.svg b/code/WebApp/vanilla/assets/icons/fullscreen.svg
new file mode 100644
index 00000000..3a42d8c4
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/fullscreen.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/code/WebApp/vanilla/assets/icons/home.svg b/code/WebApp/vanilla/assets/icons/home.svg
new file mode 100644
index 00000000..718fc32f
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/home.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/import.svg b/code/WebApp/vanilla/assets/icons/import.svg
new file mode 100644
index 00000000..447fb6be
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/import.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/index.svg b/code/WebApp/vanilla/assets/icons/index.svg
new file mode 100644
index 00000000..ff74ec70
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/index.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/lang.svg b/code/WebApp/vanilla/assets/icons/lang.svg
new file mode 100644
index 00000000..7051ed03
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/lang.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/loading.svg b/code/WebApp/vanilla/assets/icons/loading.svg
new file mode 100644
index 00000000..ad6abaf3
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/loading.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/unfold.svg b/code/WebApp/vanilla/assets/icons/unfold.svg
new file mode 100644
index 00000000..671eff1f
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/unfold.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/icons/update.svg b/code/WebApp/vanilla/assets/icons/update.svg
new file mode 100644
index 00000000..4aa823b9
--- /dev/null
+++ b/code/WebApp/vanilla/assets/icons/update.svg
@@ -0,0 +1 @@
+
diff --git a/code/WebApp/vanilla/assets/logo.svg b/code/WebApp/vanilla/assets/logo.svg
new file mode 100644
index 00000000..457124a0
--- /dev/null
+++ b/code/WebApp/vanilla/assets/logo.svg
@@ -0,0 +1,4 @@
+
diff --git a/code/WebApp/vanilla/components/chart/index.js b/code/WebApp/vanilla/components/chart/index.js
new file mode 100644
index 00000000..86402a55
--- /dev/null
+++ b/code/WebApp/vanilla/components/chart/index.js
@@ -0,0 +1,37 @@
+import { nextTick, ref } from 'vue';
+import VCharts from 'vue-echarts';
+
+const template = ``;
+
+export default {
+ template,
+ components: { VCharts },
+ props: {
+ options: {
+ default: {},
+ },
+ autoresize: {
+ default: true,
+ },
+ width: {
+ default: '100%',
+ },
+ height: {
+ default: '100%',
+ },
+ },
+ setup() {
+ const renderChart = ref(false);
+ nextTick(() => {
+ renderChart.value = true;
+ });
+ return {
+ renderChart,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/form/form-input.js b/code/WebApp/vanilla/components/form/form-input.js
new file mode 100644
index 00000000..02911edf
--- /dev/null
+++ b/code/WebApp/vanilla/components/form/form-input.js
@@ -0,0 +1,93 @@
+import html from "html";
+import { ref, reactive, watch } from "vue";
+import { dayjs } from "element-plus";
+
+export default {
+ template: html`
+
+
+
+ {{dayjs(model[prop]).format('YYYY-MM-DD HH:mm:ss')}}
+ {{dayjs(model[prop]).format('YYYY-MM-DD')}}
+ {{model[prop]}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ props: ["modelValue", "schema", "prop", "isReadOnly"],
+ emit: ["update:modelValue"],
+ async setup(props, context) {
+ const model = reactive(props.modelValue);
+ watch(model, (value) => {
+ context.emit("update:modelValue", value);
+ });
+ /*start*/
+ const getDisabled = () => {
+ if (props.isReadOnly && props.isReadOnly === true) {
+ return true;
+ }
+ if (props.schema.displayOnly) {
+ return true;
+ }
+ if (props.mode === "update" && props.schema.addOnly) {
+ return true;
+ }
+ return false;
+ };
+ const getInput = (schema) => {
+ return schema.input ?? schema.type;
+ };
+ /*end*/
+ return {
+ model,
+ getDisabled,
+ getInput,
+ dayjs,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/form/form-item.js b/code/WebApp/vanilla/components/form/form-item.js
new file mode 100644
index 00000000..f4a12281
--- /dev/null
+++ b/code/WebApp/vanilla/components/form/form-item.js
@@ -0,0 +1,94 @@
+import html from "html";
+import { ref, reactive, watch } from "vue";
+import AppFormInput from "./form-input.js";
+
+export default {
+ name: "formItem",
+ components: { AppFormInput },
+ template: html`
+
+
+
+
+
+
+
+
+ `,
+ props: ["modelValue", "mode", "parentSchema", "schema", "prop", "errors"],
+ emit: ["update:modelValue"],
+ async setup(props, context) {
+ const model = reactive(props.modelValue);
+ watch(model, (value) => {
+ context.emit("update:modelValue", value);
+ });
+ /*start*/
+ const showItem = () => {
+ if (props.schema.hidden) {
+ return false;
+ }
+ if (props.schema.readOnly && (props.mode === "query" || props.mode === "create" || props.mode === "update")) {
+ return false;
+ }
+ return true;
+ };
+ //
+ const getProp = (prop) => {
+ return prop;
+ };
+ //
+ const getError = (prop) => {
+ return props.errors[prop];
+ };
+ //
+ const getRules = (parentSchema, property, data) => {
+ if (props.mode === "query" || props.mode === "details" || !property.rules) {
+ return null;
+ }
+ const rules = [...(Array.isArray(property.rules) ? property.rules : [property.rules])].map((o) =>
+ JSON.parse(JSON.stringify(o))
+ );
+ Object.values(rules).forEach((rule) => {
+ rule.data = data;
+ rule.schema = parentSchema;
+ rule.title = rule.title ?? property.title;
+ rule.type = property.type;
+ if (rule.validator) {
+ rule.validator = validators[rule.validator];
+ }
+ if (!rule.message) {
+ if (rule.required) {
+ rule.message = format(schema.messages.required, property.title);
+ } else if (rule.pattern) {
+ rule.message = format(schema.messages.pattern, property.title);
+ } else if (property.type === "string" || property.type === "number" || property.type === "array") {
+ if (rule.len) {
+ rule.message = format(schema.messages[property.type].len, property.title, rule.len);
+ } else if (rule.min) {
+ rule.message = format(schema.messages[property.type].min, property.title, rule.min);
+ } else if (rule.max) {
+ rule.message = format(schema.messages[property.type].max, property.title, rule.max);
+ } else if (rule.range) {
+ rule.message = format(schema.messages[property.type].range, property.title, rule.range);
+ }
+ }
+ }
+ });
+ return rules;
+ };
+ /*end*/
+ return {
+ model,
+ showItem,
+ getProp,
+ getError,
+ getRules,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/form/index.js b/code/WebApp/vanilla/components/form/index.js
new file mode 100644
index 00000000..9bc79905
--- /dev/null
+++ b/code/WebApp/vanilla/components/form/index.js
@@ -0,0 +1,75 @@
+import html from "html";
+import { ref, reactive, watch } from "vue";
+import AppFormItem from "./form-item.js";
+
+export default {
+ components: { AppFormItem },
+ name: "AppForm",
+ template: html`
+
+
+
+
+
+
+ $t('confirm')
+
+ `,
+ props: ["modelValue", "schema", "action", "hideButton", "isQueryForm", "mode"],
+ emits: ["update:modelValue", "submit"],
+ setup(props, context) {
+ // init
+ const model = reactive(props.modelValue);
+ watch(model, (value) => {
+ context.emit("update:modelValue", value);
+ });
+ // ref
+ const formRef = ref(null);
+ const loading = ref(false);
+ //
+ const errors = ref({});
+ // reset
+ const reset = () => {
+ formRef.value.resetFields();
+ };
+ // validate
+ const validate = async () => {
+ return formRef.value.validate();
+ };
+ // submit
+ const submit = async () => {
+ try {
+ //const valid = await validate();
+ //if (valid) {
+ loading.value = true;
+ context.emit("submit", (serverErrors) => {
+ if (serverErrors) {
+ errors.value = serverErrors;
+ }
+ });
+ //}
+ } catch (error) {
+ console.error(error);
+ } finally {
+ loading.value = false;
+ }
+ };
+ // expose
+ context.expose({ validate, reset });
+ return {
+ model,
+ formRef,
+ loading,
+ errors,
+ reset,
+ submit,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/icon/index.js b/code/WebApp/vanilla/components/icon/index.js
new file mode 100644
index 00000000..cb1910d2
--- /dev/null
+++ b/code/WebApp/vanilla/components/icon/index.js
@@ -0,0 +1,34 @@
+import { onMounted, ref } from "vue";
+
+const template = ` `;
+
+export default {
+ props: {
+ name: {
+ default: "file",
+ },
+ },
+ template,
+ setup(props) {
+ const svg = ref("");
+ onMounted(async () => {
+ if (props.name.indexOf("ep-") !== 0) {
+ try {
+ const response = await fetch(`./assets/icons/${props.name}.svg`);
+ if (response.ok && response.status === 200) {
+ svg.value = await response.text();
+ }
+ } catch (error) {
+ console.error(error);
+ }
+ if (!svg.value) {
+ const response = await fetch("./assets/icons/file.svg");
+ svg.value = await response.text();
+ }
+ }
+ });
+ return {
+ svg,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/list/index.js b/code/WebApp/vanilla/components/list/index.js
new file mode 100644
index 00000000..b0ff184b
--- /dev/null
+++ b/code/WebApp/vanilla/components/list/index.js
@@ -0,0 +1,390 @@
+import html, { getProp } from "html";
+import AppForm from "../form/index.js";
+import { get, post } from "../../request/index.js";
+import { ref, reactive } from "vue";
+import { useRoute } from "vue-router";
+import { useI18n } from "vue-i18n";
+import SvgIcon from "../../components/icon/index.js";
+import { schemaToModel } from "../../utils/index.js";
+import qs from "../../lib/qs/shim.js";
+import AppFormInput from "../form/form-input.js";
+import VueOfficeExcel from "@vue-office/excel";
+import { camelCase, capitalize } from "lodash";
+
+export default {
+ components: { AppForm, SvgIcon, AppFormInput, VueOfficeExcel },
+ template: html`
+
+
+
+
+
+
+
+
+
+
+ {{item.meta.title}}
+
+
+
+
+
+
+
+
+
+
+
+ {{ (data.pageIndex - 1) * data.pageSize + scope.$index + 1 }}
+
+
+
+
+ {{ scope.row[key][subKey] }}
+
+
+
+
+ {{getProp(scope.row,item.navigation)}}
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('operations')}}
+
+
+
+
+
+
+
+
+ {{item.meta.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('filter')}}
+
+
+
+
+
+ o.checked=true)"> {{$t('selectAll')}}
+
+
+ o.checked=!o.checked)">
+ {{$t('selectInverse')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{editFormTitle}}
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ props: ["modelValue"],
+ emits: ["command"],
+ async setup(props, context) {
+ const tableRef = ref(null);
+ const columns = ref([]);
+ const filterDrawer = ref(false);
+ const tableLoading = ref(false);
+ const selectedRows = ref([]);
+ const dialogVisible = ref(false);
+ const route = useRoute();
+ const { t } = useI18n();
+ const baseUrl = `${route.meta.path}`.substring(1);
+ const indexUrl = `${baseUrl}/index`;
+ const vm = (await get(indexUrl)).data;
+ const schema = vm.schema;
+ const data = reactive(vm.model ?? schemaToModel(schema));
+ const sortColumns = ref(new Map());
+ const getSortModel = (model) => {
+ const orderBy = model.orderBy
+ .split(",")
+ .map((o) => o.trim())
+ .filter((o) => o)
+ .map((o) => ({
+ prop: camelCase(o.split(" ")[0]),
+ order: (o.split(" ").filter((o) => o)[1] ?? "asc") + "ending",
+ }))
+ .forEach((o) => sortColumns.value.set(o.prop, o.order));
+ return orderBy;
+ };
+ const sortModel = reactive(getSortModel(data));
+ const getClass = ({ row, column }) => {
+ if (column.property) {
+ column.order = sortColumns.value.get(column.property);
+ }
+ };
+ const sortChange = ({ column, prop, order }) => {
+ if (order === null) {
+ sortColumns.value.delete(prop);
+ } else {
+ sortColumns.value.set(prop, order);
+ }
+ data.orderBy = Array.from(sortColumns.value)
+ .map((o) => capitalize(o[0]) + (o[1] === "ascending" ? "" : ` DESC`))
+ .join(",");
+ load(indexUrl);
+ };
+ const getColumns = (schema) => {
+ Object.keys(schema.properties).forEach((propertyName) => {
+ const property = schema.properties[propertyName];
+ if (property.type !== "object" && property.type !== "array" && !property.hidden) {
+ columns.value.push({ name: propertyName, title: property.title, checked: true });
+ }
+ });
+ };
+ const showColumn = (item, prop) => {
+ return (
+ item.type !== "object" &&
+ item.type !== "array" &&
+ !item.hidden &&
+ columns.value.findIndex((o) => o.name === prop && o.checked) >= 0
+ );
+ };
+ getColumns(schema.properties.query);
+ const queryFromSchema = schema.properties.query;
+ const tableSchema = schema.properties.items;
+ const editFormRef = ref(null);
+ const editFormloading = ref(false);
+ const editFormMode = ref(null);
+ const editFormTitle = ref("");
+ const editFormSchema = reactive({});
+ const editFormModel = reactive({});
+ const exportModel = reactive({
+ includeAll: false,
+ includeDeleted: false,
+ });
+ const handleSelectionChange = (rows) => (selectedRows.value = rows);
+ const load = async (url) => {
+ tableLoading.value = true;
+ try {
+ const postData = JSON.parse(JSON.stringify(data));
+ delete postData["Id"];
+ delete postData["items"];
+ Object.assign(data, (await post(url, postData)).data);
+ } catch (error) {
+ console.log(error);
+ } finally {
+ tableLoading.value = false;
+ }
+ };
+ const onPageIndexChange = () => load(indexUrl);
+ const onPageSizeChange = () => load(indexUrl);
+ const click = async (item, rows) => {
+ editFormMode.value = item.path;
+ context.emit("command", item, rows);
+ if (item.path === "index") {
+ //list
+ await load(indexUrl);
+ } else if (item.path === "details") {
+ //details
+ const detailsUrl = `${baseUrl}/${item.path}?${qs.stringify({ id: rows[0].id })}`;
+ Object.assign(editFormSchema, schema.properties.items.items);
+ Object.assign(editFormModel, (await post(detailsUrl)).data);
+ editFormTitle.value = `${t("details")}${schema.title}`;
+ dialogVisible.value = true;
+ } else if (item.path === "create") {
+ //create
+ const url = `${baseUrl}/${item.path}`;
+ const vm = (await get(url)).data;
+ Object.assign(editFormSchema, vm.schema);
+ Object.assign(editFormModel, vm.model);
+ editFormTitle.value = `${t("create")}${schema.title}`;
+ dialogVisible.value = true;
+ } else if (item.path === "update") {
+ //update
+ const url = `${baseUrl}/${item.path}`;
+ const vm = (await get(url, { id: rows[0].id })).data;
+ Object.assign(editFormSchema, vm.schema);
+ Object.assign(editFormModel, vm.model);
+ editFormTitle.value = `${t("update")}${schema.title}`;
+ dialogVisible.value = true;
+ } else if (item.path === "delete") {
+ //delete
+ if (!rows.length) {
+ return;
+ }
+ const url = `${baseUrl}/${item.path}`;
+ await post(
+ url,
+ rows.map((o) => o.id)
+ );
+ await load(indexUrl);
+ } else if (item.path === "export") {
+ //export
+ const url = `${baseUrl}/${item.path}`;
+ const exportUrl = `${url}?${qs.stringify(exportModel)}`;
+ await load(exportUrl);
+ } else if (item.path === "import") {
+ //import
+ const url = `${baseUrl}/${item.path}`;
+ editFormTitle.value = `${t("import")}${schema.title}`;
+ dialogVisible.value = true;
+ }
+ };
+ const submit = async () => {
+ if (editFormMode.value === "create" || editFormMode.value === "update") {
+ try {
+ const valid = await editFormRef.value.validate();
+ if (valid) {
+ editFormloading.value = true;
+ const url = `${baseUrl}/${editFormMode.value}`;
+ const result = await post(url, editFormModel);
+ if (result.errors) {
+ model.errors = result.errors; //??
+ } else {
+ await load(indexUrl);
+ editFormMode.value = null;
+ dialogVisible.value = false;
+ }
+ }
+ } catch (error) {
+ console.error(error);
+ } finally {
+ editFormloading.value = false;
+ }
+ } else if (editFormMode.value === "details") {
+ load(indexUrl);
+ editFormMode.value = null;
+ dialogVisible.value = false;
+ }
+ };
+ await load(indexUrl);
+ return {
+ route,
+ tableRef,
+ tableLoading,
+ columns,
+ showColumn,
+ filterDrawer,
+ dialogVisible,
+ selectedRows,
+ schema,
+ queryFromSchema,
+ tableSchema,
+ data,
+ sortModel,
+ getClass,
+ sortChange,
+ getProp,
+ editFormRef,
+ editFormMode,
+ editFormTitle,
+ editFormSchema,
+ editFormModel,
+ exportModel,
+ onPageSizeChange,
+ onPageIndexChange,
+ handleSelectionChange,
+ load,
+ click,
+ submit,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/components/markdown/index.js b/code/WebApp/vanilla/components/markdown/index.js
new file mode 100644
index 00000000..e36c75a7
--- /dev/null
+++ b/code/WebApp/vanilla/components/markdown/index.js
@@ -0,0 +1,41 @@
+import { ref, onMounted } from 'vue';
+import { marked, setOptions } from '../../lib/marked/marked.esm.js';
+import mermaid from '../../lib/mermaid/mermaid.esm.min.mjs';
+import hljs from '../../lib/highlightjs/highlight.min.js';
+
+export default {
+ template: `
`,
+ props: {
+ name: {
+ default: null
+ }
+ },
+ setup(props) {
+ const tplRef = ref(null);
+ mermaid.initialize({ startOnLoad: false });
+ let id = 0;
+ onMounted(async () => {
+ setOptions({
+ highlight: function (code, lang) {
+ if (lang === 'mermaid') {
+ return mermaid.mermaidAPI.render(`mermaid${id++}`, code, undefined);
+ } else {
+ const language = hljs.getLanguage(lang) ? lang : 'plaintext';
+ return hljs.highlight(code, { language }).value;
+ }
+ },
+ langPrefix: 'hljs language-',
+ });
+ let mdText = tplRef.value.querySelector('.source').innerText;
+ if (props.name !== null) {
+ const response = await fetch(`./assets/docs/${props.name}.md`);
+ mdText = await response.text();
+ }
+ tplRef.value.querySelector('.markdown-body').innerHTML = marked(mdText);
+ tplRef.value.querySelector('.source').remove();
+ });
+ return {
+ tplRef
+ };
+ }
+}
diff --git a/code/WebApp/vanilla/config/settings.js b/code/WebApp/vanilla/config/settings.js
new file mode 100644
index 00000000..c913e2a8
--- /dev/null
+++ b/code/WebApp/vanilla/config/settings.js
@@ -0,0 +1,4 @@
+export default {
+ enableLocale: false,
+ baseURL: "http://dev.ccwin-in.com:10582/api",
+};
diff --git a/code/WebApp/vanilla/favicon.ico b/code/WebApp/vanilla/favicon.ico
new file mode 100644
index 00000000..63e859b4
Binary files /dev/null and b/code/WebApp/vanilla/favicon.ico differ
diff --git a/code/WebApp/vanilla/index.html b/code/WebApp/vanilla/index.html
new file mode 100644
index 00000000..e487ebc9
--- /dev/null
+++ b/code/WebApp/vanilla/index.html
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/code/WebApp/vanilla/layouts/footer.js b/code/WebApp/vanilla/layouts/footer.js
new file mode 100644
index 00000000..6682beea
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/footer.js
@@ -0,0 +1,12 @@
+import html from "html";
+import { useAppStore } from "../store/index.js";
+
+export default {
+ template: html``,
+ setup() {
+ const appStore = useAppStore();
+ return {
+ appStore,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/header.js b/code/WebApp/vanilla/layouts/header.js
new file mode 100644
index 00000000..fc7be257
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/header.js
@@ -0,0 +1,168 @@
+import html from "html";
+import { ref, onMounted, onUnmounted } from "vue";
+import { useAppStore } from "../store/index.js";
+import SvgIcon from "../components/icon/index.js";
+import LayoutLogo from "./logo.js";
+import { useDark, useFullscreen, useToggle } from "@vueuse/core";
+import { ElMessage, ElMessageBox } from "element-plus";
+import { useI18n } from "vue-i18n";
+import { logout } from "../api/user.js";
+import LayoutLocale from "./locale.js";
+import router from "../router/index.js";
+import { treeToList } from "../utils/index.js";
+
+export default {
+ components: { SvgIcon, LayoutLogo, LayoutLocale, ElMessage, ElMessageBox },
+ template: html`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ appStore.user.name }}
+
+
+
+
+
+
+
+
+ {{$t('userCenter')}}
+
+
+
+ {{$t('logout')}}
+
+
+
+
+
+ {{$t('register')}}
+
+
+
+
+
+ `,
+ setup() {
+ const i18n = useI18n();
+ const appStore = useAppStore();
+ //
+ const searchRef = ref(null);
+ const searchLoading = ref(false);
+ const searchModel = ref("");
+ const searchOptions = ref([]);
+ const showSearch = ref(false);
+ const hideSearch = () => {
+ showSearch.value = false;
+ };
+ const clickSearch = () => {
+ showSearch.value = !showSearch.value;
+ if (showSearch.value) {
+ searchRef.value.focus();
+ }
+ };
+ const searchMenu = (query) => {
+ if (query) {
+ try {
+ searchLoading.value = true;
+ const menus = treeToList(router.getRoutes().find((o) => o.path === "/").children);
+ searchOptions.value = menus
+ .filter((o) => !o.children || o.children.length === 0)
+ .filter((o) => o.meta.fullName.indexOf(query) > -1);
+ } finally {
+ searchLoading.value = false;
+ }
+ }
+ };
+ const searchChange = (route) => {
+ if (!route.meta.isExternal) {
+ router.push(route.meta.path);
+ searchModel.value = "";
+ searchOptions.value = [];
+ showSearch.value = false;
+ } else {
+ window.open(route.path);
+ }
+ };
+ //
+ const isDark = useDark();
+ const toggleDark = useToggle(isDark);
+ const toggleMenuCollapse = () => (appStore.isMenuCollapse = !appStore.isMenuCollapse);
+ //
+ const { isFullscreen, toggle: toggleFullscreen } = useFullscreen(document.documentElement);
+ const confirmLogout = async () => {
+ try {
+ await ElMessageBox.confirm(i18n.t("confirmLogout"), i18n.t("tip"), { type: "warning" });
+ logout();
+ } catch (error) {
+ if (error === "cancel") {
+ ElMessage({
+ type: "info",
+ message: i18n.t("cancel"),
+ });
+ }
+ }
+ };
+ return {
+ appStore,
+ showSearch,
+ hideSearch,
+ clickSearch,
+ searchRef,
+ searchLoading,
+ searchModel,
+ searchOptions,
+ searchMenu,
+ searchChange,
+ isDark,
+ toggleDark,
+ toggleMenuCollapse,
+ isFullscreen,
+ toggleFullscreen,
+ confirmLogout,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/index.js b/code/WebApp/vanilla/layouts/index.js
new file mode 100644
index 00000000..e7f989b3
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/index.js
@@ -0,0 +1,57 @@
+import html from "html";
+import LayoutHeader from "./header.js";
+import LayoutMenu from "./menu.js";
+import LayoutTabs from "./tabs.js";
+import LayoutFooter from "./footer.js";
+import Icon from "../components/icon/index.js";
+import { useAppStore } from "../store/index.js";
+import { computed } from "vue";
+
+export default {
+ components: { Icon, LayoutHeader, LayoutMenu, LayoutTabs, LayoutFooter },
+ template: html`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ setup() {
+ const appStore = useAppStore();
+ const isRefreshing = computed(() => appStore.isRefreshing);
+ const path = computed(() => useRoute().matched[0].path);
+ const items = computed(() => useRoute().matched[0].children);
+ return {
+ appStore,
+ isRefreshing,
+ path,
+ items,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/locale.js b/code/WebApp/vanilla/layouts/locale.js
new file mode 100644
index 00000000..579b05c6
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/locale.js
@@ -0,0 +1,36 @@
+import html from "html";
+import { useAppStore } from "../store/index.js";
+import { useI18n } from "vue-i18n";
+import Icon from "../components/icon/index.js";
+export default {
+ components: { Icon },
+ template: html`
+
+
+
+
+
+
+
+
+ {{appStore.localization.options.find(o=>o.value===locale).label}}
+
+
+
+
+
+
+ `,
+ setup() {
+ const appStore = useAppStore();
+ const i18n = useI18n();
+ const changeLocale = (locale) => {
+ appStore.localization.locale = locale;
+ i18n.locale.value = locale;
+ };
+ return {
+ appStore,
+ changeLocale,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/logo.js b/code/WebApp/vanilla/layouts/logo.js
new file mode 100644
index 00000000..9777684c
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/logo.js
@@ -0,0 +1,17 @@
+import html from "html";
+import { useAppStore } from "../store/index.js";
+
+export default {
+ template: html`
+
+
+
{{$t('application')}}
+
+ `,
+ setup() {
+ const appStore = useAppStore();
+ return {
+ appStore,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/menu-item.js b/code/WebApp/vanilla/layouts/menu-item.js
new file mode 100644
index 00000000..26745ef2
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/menu-item.js
@@ -0,0 +1,55 @@
+import html from "html";
+import { reactive, watch } from "vue";
+import Icon from "../components/icon/index.js";
+import { useRouter } from "vue-router";
+
+export default {
+ name: "menuItem",
+ components: { Icon },
+ template: html`
+
+
+ {{modelValue.meta.title}}
+
+
+
+
+
+
+ {{modelValue.meta.title}}
+
+ `,
+ props: {
+ modelValue: {
+ typeof: Object,
+ },
+ },
+ setup(props, context) {
+ const router = useRouter();
+ const model = reactive(props.modelValue);
+ watch(
+ model,
+ (value) => {
+ context.emit("update:modelValue", value);
+ },
+ { deep: true }
+ );
+ //
+ const click = (route) => {
+ if (!route.meta.isExternal) {
+ router.push(route.meta.path);
+ } else {
+ window.open(route.path);
+ }
+ };
+ //
+ return {
+ model,
+ click,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/menu.js b/code/WebApp/vanilla/layouts/menu.js
new file mode 100644
index 00000000..737b2efc
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/menu.js
@@ -0,0 +1,24 @@
+import html from "html";
+import Icon from "../components/icon/index.js";
+import { useAppStore } from "../store/index.js";
+import MenuItem from "./menu-item.js";
+import router from "../router/index.js";
+
+export default {
+ components: { Icon, MenuItem },
+ template: html`
+
+ `,
+ setup() {
+ const appStore = useAppStore();
+ const menus = router.getRoutes().find((o) => o.name === "layout").children;
+ return {
+ appStore,
+ menus,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/layouts/tabs.js b/code/WebApp/vanilla/layouts/tabs.js
new file mode 100644
index 00000000..78390eed
--- /dev/null
+++ b/code/WebApp/vanilla/layouts/tabs.js
@@ -0,0 +1,171 @@
+import html from "html";
+import { ref, nextTick } from "vue";
+import { useRoute, onBeforeRouteUpdate, useRouter } from "vue-router";
+import Icon from "../components/icon/index.js";
+import { useAppStore } from "../store/index.js";
+import MenuItem from "./menu-item.js";
+
+export default {
+ components: { Icon, MenuItem },
+ template: html`
+
+
+
+
+
+
+ {{ item.meta?.title ?? item.fullPath }}
+
+
+
+ 刷新
+
+ 关闭左侧
+
+
+ 关闭右侧
+
+
+ 关闭其他
+
+
+
+
+
+
+
+ `,
+ styles: html`
+
+ `,
+ setup() {
+ const appStore = useAppStore();
+ const itemRefs = ref([]);
+ const currentRoute = useRoute();
+ const router = useRouter();
+ const model = ref(currentRoute.fullPath);
+
+ onBeforeRouteUpdate((to) => {
+ model.value = to.fullPath;
+ });
+
+ const setRef = (index, el) => {
+ if (el) {
+ itemRefs.value[index] = el;
+ } else {
+ itemRefs.value.splice(index, 1);
+ }
+ };
+ const showContextMenu = (index, show) => {
+ if (show) {
+ itemRefs.value.forEach((item, i) => {
+ if (i !== index) {
+ item?.handleClose();
+ }
+ });
+ }
+ };
+
+ const refresh = (index) => {
+ const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath);
+ const route = appStore.routes[index];
+ if (index !== currentIndex) {
+ router.push({ path: route.fullPath });
+ }
+ appStore.isRefreshing = true;
+ nextTick(() => {
+ appStore.isRefreshing = false;
+ });
+ };
+
+ const remove = (name) => {
+ if (appStore.routes.length > 1) {
+ const index = appStore.routes.findIndex((o) => o.fullPath === name);
+ const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath);
+ appStore.routes.splice(index, 1);
+ if (index === currentIndex) {
+ if (appStore.routes[index]) {
+ router.push(appStore.routes[index]);
+ } else {
+ router.push(appStore.routes[index - 1]);
+ }
+ }
+ }
+ };
+
+ const removeLeft = (index) => {
+ const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath);
+ const route = appStore.routes[index];
+ appStore.routes.splice(0, index);
+ if (currentIndex < index) {
+ router.push(route);
+ }
+ };
+
+ const removeRight = (index) => {
+ const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath);
+ appStore.routes.splice(index + 1, appStore.routes.length - index);
+ if (currentIndex > index) {
+ router.push(appStore.routes[index]);
+ }
+ };
+
+ const removeOthers = (index) => {
+ removeRight(index);
+ removeLeft(index);
+ if (appStore.routes[0].fullPath !== currentRoute.fullPath) {
+ router.push(appStore.routes[0]);
+ }
+ };
+
+ const onClick = (context) => {
+ if (!context.active) {
+ router.push(context.props.name);
+ }
+ };
+ return {
+ model,
+ appStore,
+ itemRefs,
+ onBeforeRouteUpdate,
+ setRef,
+ showContextMenu,
+ refresh,
+ remove,
+ removeLeft,
+ removeRight,
+ removeOthers,
+ onClick,
+ };
+ },
+};
diff --git a/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js b/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js
new file mode 100644
index 00000000..40c9e18b
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js
@@ -0,0 +1,9349 @@
+/*! Element Plus Icons Vue v2.1.0 */
+
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/add-location.vue?vue&type=script&lang.ts
+var add_location_vue_vue_type_script_lang_default = {
+ name: "AddLocation"
+};
+
+// src/components/add-location.vue
+import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
+
+// unplugin-vue:/plugin-vue/export-helper
+var export_helper_default = (sfc, props) => {
+ let target = sfc.__vccOpts || sfc;
+ for (let [key, val] of props)
+ target[key] = val;
+ return target;
+};
+
+// src/components/add-location.vue
+var _hoisted_1 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2 = /* @__PURE__ */ _createElementVNode(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3 = /* @__PURE__ */ _createElementVNode(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_4 = /* @__PURE__ */ _createElementVNode(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_5 = [
+ _hoisted_2,
+ _hoisted_3,
+ _hoisted_4
+];
+function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock(), _createElementBlock("svg", _hoisted_1, _hoisted_5);
+}
+var add_location_default = /* @__PURE__ */ export_helper_default(add_location_vue_vue_type_script_lang_default, [["render", _sfc_render], ["__file", "add-location.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/aim.vue?vue&type=script&lang.ts
+var aim_vue_vue_type_script_lang_default = {
+ name: "Aim"
+};
+
+// src/components/aim.vue
+import { createElementVNode as _createElementVNode2, openBlock as _openBlock2, createElementBlock as _createElementBlock2 } from "vue";
+var _hoisted_12 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_22 = /* @__PURE__ */ _createElementVNode2(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_32 = /* @__PURE__ */ _createElementVNode2(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_42 = [
+ _hoisted_22,
+ _hoisted_32
+];
+function _sfc_render2(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock2(), _createElementBlock2("svg", _hoisted_12, _hoisted_42);
+}
+var aim_default = /* @__PURE__ */ export_helper_default(aim_vue_vue_type_script_lang_default, [["render", _sfc_render2], ["__file", "aim.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/alarm-clock.vue?vue&type=script&lang.ts
+var alarm_clock_vue_vue_type_script_lang_default = {
+ name: "AlarmClock"
+};
+
+// src/components/alarm-clock.vue
+import { createElementVNode as _createElementVNode3, openBlock as _openBlock3, createElementBlock as _createElementBlock3 } from "vue";
+var _hoisted_13 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_23 = /* @__PURE__ */ _createElementVNode3(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_33 = /* @__PURE__ */ _createElementVNode3(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_43 = [
+ _hoisted_23,
+ _hoisted_33
+];
+function _sfc_render3(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock3(), _createElementBlock3("svg", _hoisted_13, _hoisted_43);
+}
+var alarm_clock_default = /* @__PURE__ */ export_helper_default(alarm_clock_vue_vue_type_script_lang_default, [["render", _sfc_render3], ["__file", "alarm-clock.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/apple.vue?vue&type=script&lang.ts
+var apple_vue_vue_type_script_lang_default = {
+ name: "Apple"
+};
+
+// src/components/apple.vue
+import { createElementVNode as _createElementVNode4, openBlock as _openBlock4, createElementBlock as _createElementBlock4 } from "vue";
+var _hoisted_14 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_24 = /* @__PURE__ */ _createElementVNode4(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_34 = [
+ _hoisted_24
+];
+function _sfc_render4(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock4(), _createElementBlock4("svg", _hoisted_14, _hoisted_34);
+}
+var apple_default = /* @__PURE__ */ export_helper_default(apple_vue_vue_type_script_lang_default, [["render", _sfc_render4], ["__file", "apple.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-down-bold.vue?vue&type=script&lang.ts
+var arrow_down_bold_vue_vue_type_script_lang_default = {
+ name: "ArrowDownBold"
+};
+
+// src/components/arrow-down-bold.vue
+import { createElementVNode as _createElementVNode5, openBlock as _openBlock5, createElementBlock as _createElementBlock5 } from "vue";
+var _hoisted_15 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_25 = /* @__PURE__ */ _createElementVNode5(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_35 = [
+ _hoisted_25
+];
+function _sfc_render5(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock5(), _createElementBlock5("svg", _hoisted_15, _hoisted_35);
+}
+var arrow_down_bold_default = /* @__PURE__ */ export_helper_default(arrow_down_bold_vue_vue_type_script_lang_default, [["render", _sfc_render5], ["__file", "arrow-down-bold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-down.vue?vue&type=script&lang.ts
+var arrow_down_vue_vue_type_script_lang_default = {
+ name: "ArrowDown"
+};
+
+// src/components/arrow-down.vue
+import { createElementVNode as _createElementVNode6, openBlock as _openBlock6, createElementBlock as _createElementBlock6 } from "vue";
+var _hoisted_16 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_26 = /* @__PURE__ */ _createElementVNode6(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_36 = [
+ _hoisted_26
+];
+function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock6(), _createElementBlock6("svg", _hoisted_16, _hoisted_36);
+}
+var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-left-bold.vue?vue&type=script&lang.ts
+var arrow_left_bold_vue_vue_type_script_lang_default = {
+ name: "ArrowLeftBold"
+};
+
+// src/components/arrow-left-bold.vue
+import { createElementVNode as _createElementVNode7, openBlock as _openBlock7, createElementBlock as _createElementBlock7 } from "vue";
+var _hoisted_17 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_27 = /* @__PURE__ */ _createElementVNode7(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_37 = [
+ _hoisted_27
+];
+function _sfc_render7(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock7(), _createElementBlock7("svg", _hoisted_17, _hoisted_37);
+}
+var arrow_left_bold_default = /* @__PURE__ */ export_helper_default(arrow_left_bold_vue_vue_type_script_lang_default, [["render", _sfc_render7], ["__file", "arrow-left-bold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-left.vue?vue&type=script&lang.ts
+var arrow_left_vue_vue_type_script_lang_default = {
+ name: "ArrowLeft"
+};
+
+// src/components/arrow-left.vue
+import { createElementVNode as _createElementVNode8, openBlock as _openBlock8, createElementBlock as _createElementBlock8 } from "vue";
+var _hoisted_18 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_28 = /* @__PURE__ */ _createElementVNode8(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_38 = [
+ _hoisted_28
+];
+function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock8(), _createElementBlock8("svg", _hoisted_18, _hoisted_38);
+}
+var arrow_left_default = /* @__PURE__ */ export_helper_default(arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render8], ["__file", "arrow-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-right-bold.vue?vue&type=script&lang.ts
+var arrow_right_bold_vue_vue_type_script_lang_default = {
+ name: "ArrowRightBold"
+};
+
+// src/components/arrow-right-bold.vue
+import { createElementVNode as _createElementVNode9, openBlock as _openBlock9, createElementBlock as _createElementBlock9 } from "vue";
+var _hoisted_19 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_29 = /* @__PURE__ */ _createElementVNode9(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_39 = [
+ _hoisted_29
+];
+function _sfc_render9(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock9(), _createElementBlock9("svg", _hoisted_19, _hoisted_39);
+}
+var arrow_right_bold_default = /* @__PURE__ */ export_helper_default(arrow_right_bold_vue_vue_type_script_lang_default, [["render", _sfc_render9], ["__file", "arrow-right-bold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-right.vue?vue&type=script&lang.ts
+var arrow_right_vue_vue_type_script_lang_default = {
+ name: "ArrowRight"
+};
+
+// src/components/arrow-right.vue
+import { createElementVNode as _createElementVNode10, openBlock as _openBlock10, createElementBlock as _createElementBlock10 } from "vue";
+var _hoisted_110 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_210 = /* @__PURE__ */ _createElementVNode10(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_310 = [
+ _hoisted_210
+];
+function _sfc_render10(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock10(), _createElementBlock10("svg", _hoisted_110, _hoisted_310);
+}
+var arrow_right_default = /* @__PURE__ */ export_helper_default(arrow_right_vue_vue_type_script_lang_default, [["render", _sfc_render10], ["__file", "arrow-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-up-bold.vue?vue&type=script&lang.ts
+var arrow_up_bold_vue_vue_type_script_lang_default = {
+ name: "ArrowUpBold"
+};
+
+// src/components/arrow-up-bold.vue
+import { createElementVNode as _createElementVNode11, openBlock as _openBlock11, createElementBlock as _createElementBlock11 } from "vue";
+var _hoisted_111 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_211 = /* @__PURE__ */ _createElementVNode11(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_311 = [
+ _hoisted_211
+];
+function _sfc_render11(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock11(), _createElementBlock11("svg", _hoisted_111, _hoisted_311);
+}
+var arrow_up_bold_default = /* @__PURE__ */ export_helper_default(arrow_up_bold_vue_vue_type_script_lang_default, [["render", _sfc_render11], ["__file", "arrow-up-bold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-up.vue?vue&type=script&lang.ts
+var arrow_up_vue_vue_type_script_lang_default = {
+ name: "ArrowUp"
+};
+
+// src/components/arrow-up.vue
+import { createElementVNode as _createElementVNode12, openBlock as _openBlock12, createElementBlock as _createElementBlock12 } from "vue";
+var _hoisted_112 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_212 = /* @__PURE__ */ _createElementVNode12(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_312 = [
+ _hoisted_212
+];
+function _sfc_render12(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock12(), _createElementBlock12("svg", _hoisted_112, _hoisted_312);
+}
+var arrow_up_default = /* @__PURE__ */ export_helper_default(arrow_up_vue_vue_type_script_lang_default, [["render", _sfc_render12], ["__file", "arrow-up.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/avatar.vue?vue&type=script&lang.ts
+var avatar_vue_vue_type_script_lang_default = {
+ name: "Avatar"
+};
+
+// src/components/avatar.vue
+import { createElementVNode as _createElementVNode13, openBlock as _openBlock13, createElementBlock as _createElementBlock13 } from "vue";
+var _hoisted_113 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_213 = /* @__PURE__ */ _createElementVNode13(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_313 = [
+ _hoisted_213
+];
+function _sfc_render13(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock13(), _createElementBlock13("svg", _hoisted_113, _hoisted_313);
+}
+var avatar_default = /* @__PURE__ */ export_helper_default(avatar_vue_vue_type_script_lang_default, [["render", _sfc_render13], ["__file", "avatar.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/back.vue?vue&type=script&lang.ts
+var back_vue_vue_type_script_lang_default = {
+ name: "Back"
+};
+
+// src/components/back.vue
+import { createElementVNode as _createElementVNode14, openBlock as _openBlock14, createElementBlock as _createElementBlock14 } from "vue";
+var _hoisted_114 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_214 = /* @__PURE__ */ _createElementVNode14(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_314 = /* @__PURE__ */ _createElementVNode14(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_44 = [
+ _hoisted_214,
+ _hoisted_314
+];
+function _sfc_render14(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock14(), _createElementBlock14("svg", _hoisted_114, _hoisted_44);
+}
+var back_default = /* @__PURE__ */ export_helper_default(back_vue_vue_type_script_lang_default, [["render", _sfc_render14], ["__file", "back.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/baseball.vue?vue&type=script&lang.ts
+var baseball_vue_vue_type_script_lang_default = {
+ name: "Baseball"
+};
+
+// src/components/baseball.vue
+import { createElementVNode as _createElementVNode15, openBlock as _openBlock15, createElementBlock as _createElementBlock15 } from "vue";
+var _hoisted_115 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_215 = /* @__PURE__ */ _createElementVNode15(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_315 = /* @__PURE__ */ _createElementVNode15(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_45 = [
+ _hoisted_215,
+ _hoisted_315
+];
+function _sfc_render15(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock15(), _createElementBlock15("svg", _hoisted_115, _hoisted_45);
+}
+var baseball_default = /* @__PURE__ */ export_helper_default(baseball_vue_vue_type_script_lang_default, [["render", _sfc_render15], ["__file", "baseball.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/basketball.vue?vue&type=script&lang.ts
+var basketball_vue_vue_type_script_lang_default = {
+ name: "Basketball"
+};
+
+// src/components/basketball.vue
+import { createElementVNode as _createElementVNode16, openBlock as _openBlock16, createElementBlock as _createElementBlock16 } from "vue";
+var _hoisted_116 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_216 = /* @__PURE__ */ _createElementVNode16(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_316 = [
+ _hoisted_216
+];
+function _sfc_render16(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock16(), _createElementBlock16("svg", _hoisted_116, _hoisted_316);
+}
+var basketball_default = /* @__PURE__ */ export_helper_default(basketball_vue_vue_type_script_lang_default, [["render", _sfc_render16], ["__file", "basketball.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bell-filled.vue?vue&type=script&lang.ts
+var bell_filled_vue_vue_type_script_lang_default = {
+ name: "BellFilled"
+};
+
+// src/components/bell-filled.vue
+import { createElementVNode as _createElementVNode17, openBlock as _openBlock17, createElementBlock as _createElementBlock17 } from "vue";
+var _hoisted_117 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_217 = /* @__PURE__ */ _createElementVNode17(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_317 = [
+ _hoisted_217
+];
+function _sfc_render17(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock17(), _createElementBlock17("svg", _hoisted_117, _hoisted_317);
+}
+var bell_filled_default = /* @__PURE__ */ export_helper_default(bell_filled_vue_vue_type_script_lang_default, [["render", _sfc_render17], ["__file", "bell-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bell.vue?vue&type=script&lang.ts
+var bell_vue_vue_type_script_lang_default = {
+ name: "Bell"
+};
+
+// src/components/bell.vue
+import { createElementVNode as _createElementVNode18, openBlock as _openBlock18, createElementBlock as _createElementBlock18 } from "vue";
+var _hoisted_118 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_218 = /* @__PURE__ */ _createElementVNode18(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_318 = /* @__PURE__ */ _createElementVNode18(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_46 = /* @__PURE__ */ _createElementVNode18(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_52 = [
+ _hoisted_218,
+ _hoisted_318,
+ _hoisted_46
+];
+function _sfc_render18(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock18(), _createElementBlock18("svg", _hoisted_118, _hoisted_52);
+}
+var bell_default = /* @__PURE__ */ export_helper_default(bell_vue_vue_type_script_lang_default, [["render", _sfc_render18], ["__file", "bell.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bicycle.vue?vue&type=script&lang.ts
+var bicycle_vue_vue_type_script_lang_default = {
+ name: "Bicycle"
+};
+
+// src/components/bicycle.vue
+import { openBlock as _openBlock19, createElementBlock as _createElementBlock19, createStaticVNode as _createStaticVNode } from "vue";
+var _hoisted_119 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_219 = /* @__PURE__ */ _createStaticVNode('
', 5), _hoisted_7 = [
+ _hoisted_219
+];
+function _sfc_render19(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock19(), _createElementBlock19("svg", _hoisted_119, _hoisted_7);
+}
+var bicycle_default = /* @__PURE__ */ export_helper_default(bicycle_vue_vue_type_script_lang_default, [["render", _sfc_render19], ["__file", "bicycle.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom-left.vue?vue&type=script&lang.ts
+var bottom_left_vue_vue_type_script_lang_default = {
+ name: "BottomLeft"
+};
+
+// src/components/bottom-left.vue
+import { createElementVNode as _createElementVNode19, openBlock as _openBlock20, createElementBlock as _createElementBlock20 } from "vue";
+var _hoisted_120 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_220 = /* @__PURE__ */ _createElementVNode19(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_319 = /* @__PURE__ */ _createElementVNode19(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_47 = [
+ _hoisted_220,
+ _hoisted_319
+];
+function _sfc_render20(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock20(), _createElementBlock20("svg", _hoisted_120, _hoisted_47);
+}
+var bottom_left_default = /* @__PURE__ */ export_helper_default(bottom_left_vue_vue_type_script_lang_default, [["render", _sfc_render20], ["__file", "bottom-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom-right.vue?vue&type=script&lang.ts
+var bottom_right_vue_vue_type_script_lang_default = {
+ name: "BottomRight"
+};
+
+// src/components/bottom-right.vue
+import { createElementVNode as _createElementVNode20, openBlock as _openBlock21, createElementBlock as _createElementBlock21 } from "vue";
+var _hoisted_121 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_221 = /* @__PURE__ */ _createElementVNode20(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_320 = /* @__PURE__ */ _createElementVNode20(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_48 = [
+ _hoisted_221,
+ _hoisted_320
+];
+function _sfc_render21(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock21(), _createElementBlock21("svg", _hoisted_121, _hoisted_48);
+}
+var bottom_right_default = /* @__PURE__ */ export_helper_default(bottom_right_vue_vue_type_script_lang_default, [["render", _sfc_render21], ["__file", "bottom-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom.vue?vue&type=script&lang.ts
+var bottom_vue_vue_type_script_lang_default = {
+ name: "Bottom"
+};
+
+// src/components/bottom.vue
+import { createElementVNode as _createElementVNode21, openBlock as _openBlock22, createElementBlock as _createElementBlock22 } from "vue";
+var _hoisted_122 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_222 = /* @__PURE__ */ _createElementVNode21(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_321 = [
+ _hoisted_222
+];
+function _sfc_render22(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock22(), _createElementBlock22("svg", _hoisted_122, _hoisted_321);
+}
+var bottom_default = /* @__PURE__ */ export_helper_default(bottom_vue_vue_type_script_lang_default, [["render", _sfc_render22], ["__file", "bottom.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bowl.vue?vue&type=script&lang.ts
+var bowl_vue_vue_type_script_lang_default = {
+ name: "Bowl"
+};
+
+// src/components/bowl.vue
+import { createElementVNode as _createElementVNode22, openBlock as _openBlock23, createElementBlock as _createElementBlock23 } from "vue";
+var _hoisted_123 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_223 = /* @__PURE__ */ _createElementVNode22(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_322 = [
+ _hoisted_223
+];
+function _sfc_render23(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock23(), _createElementBlock23("svg", _hoisted_123, _hoisted_322);
+}
+var bowl_default = /* @__PURE__ */ export_helper_default(bowl_vue_vue_type_script_lang_default, [["render", _sfc_render23], ["__file", "bowl.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/box.vue?vue&type=script&lang.ts
+var box_vue_vue_type_script_lang_default = {
+ name: "Box"
+};
+
+// src/components/box.vue
+import { createElementVNode as _createElementVNode23, openBlock as _openBlock24, createElementBlock as _createElementBlock24 } from "vue";
+var _hoisted_124 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_224 = /* @__PURE__ */ _createElementVNode23(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_323 = /* @__PURE__ */ _createElementVNode23(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M64 320h896v64H64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_49 = /* @__PURE__ */ _createElementVNode23(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_53 = [
+ _hoisted_224,
+ _hoisted_323,
+ _hoisted_49
+];
+function _sfc_render24(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock24(), _createElementBlock24("svg", _hoisted_124, _hoisted_53);
+}
+var box_default = /* @__PURE__ */ export_helper_default(box_vue_vue_type_script_lang_default, [["render", _sfc_render24], ["__file", "box.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/briefcase.vue?vue&type=script&lang.ts
+var briefcase_vue_vue_type_script_lang_default = {
+ name: "Briefcase"
+};
+
+// src/components/briefcase.vue
+import { createElementVNode as _createElementVNode24, openBlock as _openBlock25, createElementBlock as _createElementBlock25 } from "vue";
+var _hoisted_125 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_225 = /* @__PURE__ */ _createElementVNode24(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_324 = [
+ _hoisted_225
+];
+function _sfc_render25(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock25(), _createElementBlock25("svg", _hoisted_125, _hoisted_324);
+}
+var briefcase_default = /* @__PURE__ */ export_helper_default(briefcase_vue_vue_type_script_lang_default, [["render", _sfc_render25], ["__file", "briefcase.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/brush-filled.vue?vue&type=script&lang.ts
+var brush_filled_vue_vue_type_script_lang_default = {
+ name: "BrushFilled"
+};
+
+// src/components/brush-filled.vue
+import { createElementVNode as _createElementVNode25, openBlock as _openBlock26, createElementBlock as _createElementBlock26 } from "vue";
+var _hoisted_126 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_226 = /* @__PURE__ */ _createElementVNode25(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_325 = [
+ _hoisted_226
+];
+function _sfc_render26(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock26(), _createElementBlock26("svg", _hoisted_126, _hoisted_325);
+}
+var brush_filled_default = /* @__PURE__ */ export_helper_default(brush_filled_vue_vue_type_script_lang_default, [["render", _sfc_render26], ["__file", "brush-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/brush.vue?vue&type=script&lang.ts
+var brush_vue_vue_type_script_lang_default = {
+ name: "Brush"
+};
+
+// src/components/brush.vue
+import { createElementVNode as _createElementVNode26, openBlock as _openBlock27, createElementBlock as _createElementBlock27 } from "vue";
+var _hoisted_127 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_227 = /* @__PURE__ */ _createElementVNode26(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_326 = [
+ _hoisted_227
+];
+function _sfc_render27(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock27(), _createElementBlock27("svg", _hoisted_127, _hoisted_326);
+}
+var brush_default = /* @__PURE__ */ export_helper_default(brush_vue_vue_type_script_lang_default, [["render", _sfc_render27], ["__file", "brush.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/burger.vue?vue&type=script&lang.ts
+var burger_vue_vue_type_script_lang_default = {
+ name: "Burger"
+};
+
+// src/components/burger.vue
+import { createElementVNode as _createElementVNode27, openBlock as _openBlock28, createElementBlock as _createElementBlock28 } from "vue";
+var _hoisted_128 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_228 = /* @__PURE__ */ _createElementVNode27(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_327 = [
+ _hoisted_228
+];
+function _sfc_render28(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock28(), _createElementBlock28("svg", _hoisted_128, _hoisted_327);
+}
+var burger_default = /* @__PURE__ */ export_helper_default(burger_vue_vue_type_script_lang_default, [["render", _sfc_render28], ["__file", "burger.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/calendar.vue?vue&type=script&lang.ts
+var calendar_vue_vue_type_script_lang_default = {
+ name: "Calendar"
+};
+
+// src/components/calendar.vue
+import { createElementVNode as _createElementVNode28, openBlock as _openBlock29, createElementBlock as _createElementBlock29 } from "vue";
+var _hoisted_129 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_229 = /* @__PURE__ */ _createElementVNode28(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_328 = [
+ _hoisted_229
+];
+function _sfc_render29(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock29(), _createElementBlock29("svg", _hoisted_129, _hoisted_328);
+}
+var calendar_default = /* @__PURE__ */ export_helper_default(calendar_vue_vue_type_script_lang_default, [["render", _sfc_render29], ["__file", "calendar.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/camera-filled.vue?vue&type=script&lang.ts
+var camera_filled_vue_vue_type_script_lang_default = {
+ name: "CameraFilled"
+};
+
+// src/components/camera-filled.vue
+import { createElementVNode as _createElementVNode29, openBlock as _openBlock30, createElementBlock as _createElementBlock30 } from "vue";
+var _hoisted_130 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_230 = /* @__PURE__ */ _createElementVNode29(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_329 = [
+ _hoisted_230
+];
+function _sfc_render30(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock30(), _createElementBlock30("svg", _hoisted_130, _hoisted_329);
+}
+var camera_filled_default = /* @__PURE__ */ export_helper_default(camera_filled_vue_vue_type_script_lang_default, [["render", _sfc_render30], ["__file", "camera-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/camera.vue?vue&type=script&lang.ts
+var camera_vue_vue_type_script_lang_default = {
+ name: "Camera"
+};
+
+// src/components/camera.vue
+import { createElementVNode as _createElementVNode30, openBlock as _openBlock31, createElementBlock as _createElementBlock31 } from "vue";
+var _hoisted_131 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_231 = /* @__PURE__ */ _createElementVNode30(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_330 = [
+ _hoisted_231
+];
+function _sfc_render31(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock31(), _createElementBlock31("svg", _hoisted_131, _hoisted_330);
+}
+var camera_default = /* @__PURE__ */ export_helper_default(camera_vue_vue_type_script_lang_default, [["render", _sfc_render31], ["__file", "camera.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-bottom.vue?vue&type=script&lang.ts
+var caret_bottom_vue_vue_type_script_lang_default = {
+ name: "CaretBottom"
+};
+
+// src/components/caret-bottom.vue
+import { createElementVNode as _createElementVNode31, openBlock as _openBlock32, createElementBlock as _createElementBlock32 } from "vue";
+var _hoisted_132 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_232 = /* @__PURE__ */ _createElementVNode31(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m192 384 320 384 320-384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_331 = [
+ _hoisted_232
+];
+function _sfc_render32(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock32(), _createElementBlock32("svg", _hoisted_132, _hoisted_331);
+}
+var caret_bottom_default = /* @__PURE__ */ export_helper_default(caret_bottom_vue_vue_type_script_lang_default, [["render", _sfc_render32], ["__file", "caret-bottom.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-left.vue?vue&type=script&lang.ts
+var caret_left_vue_vue_type_script_lang_default = {
+ name: "CaretLeft"
+};
+
+// src/components/caret-left.vue
+import { createElementVNode as _createElementVNode32, openBlock as _openBlock33, createElementBlock as _createElementBlock33 } from "vue";
+var _hoisted_133 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_233 = /* @__PURE__ */ _createElementVNode32(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M672 192 288 511.936 672 832z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_332 = [
+ _hoisted_233
+];
+function _sfc_render33(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock33(), _createElementBlock33("svg", _hoisted_133, _hoisted_332);
+}
+var caret_left_default = /* @__PURE__ */ export_helper_default(caret_left_vue_vue_type_script_lang_default, [["render", _sfc_render33], ["__file", "caret-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-right.vue?vue&type=script&lang.ts
+var caret_right_vue_vue_type_script_lang_default = {
+ name: "CaretRight"
+};
+
+// src/components/caret-right.vue
+import { createElementVNode as _createElementVNode33, openBlock as _openBlock34, createElementBlock as _createElementBlock34 } from "vue";
+var _hoisted_134 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_234 = /* @__PURE__ */ _createElementVNode33(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 192v640l384-320.064z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_333 = [
+ _hoisted_234
+];
+function _sfc_render34(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock34(), _createElementBlock34("svg", _hoisted_134, _hoisted_333);
+}
+var caret_right_default = /* @__PURE__ */ export_helper_default(caret_right_vue_vue_type_script_lang_default, [["render", _sfc_render34], ["__file", "caret-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-top.vue?vue&type=script&lang.ts
+var caret_top_vue_vue_type_script_lang_default = {
+ name: "CaretTop"
+};
+
+// src/components/caret-top.vue
+import { createElementVNode as _createElementVNode34, openBlock as _openBlock35, createElementBlock as _createElementBlock35 } from "vue";
+var _hoisted_135 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_235 = /* @__PURE__ */ _createElementVNode34(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 320 192 704h639.936z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_334 = [
+ _hoisted_235
+];
+function _sfc_render35(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock35(), _createElementBlock35("svg", _hoisted_135, _hoisted_334);
+}
+var caret_top_default = /* @__PURE__ */ export_helper_default(caret_top_vue_vue_type_script_lang_default, [["render", _sfc_render35], ["__file", "caret-top.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cellphone.vue?vue&type=script&lang.ts
+var cellphone_vue_vue_type_script_lang_default = {
+ name: "Cellphone"
+};
+
+// src/components/cellphone.vue
+import { createElementVNode as _createElementVNode35, openBlock as _openBlock36, createElementBlock as _createElementBlock36 } from "vue";
+var _hoisted_136 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_236 = /* @__PURE__ */ _createElementVNode35(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_335 = [
+ _hoisted_236
+];
+function _sfc_render36(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock36(), _createElementBlock36("svg", _hoisted_136, _hoisted_335);
+}
+var cellphone_default = /* @__PURE__ */ export_helper_default(cellphone_vue_vue_type_script_lang_default, [["render", _sfc_render36], ["__file", "cellphone.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-dot-round.vue?vue&type=script&lang.ts
+var chat_dot_round_vue_vue_type_script_lang_default = {
+ name: "ChatDotRound"
+};
+
+// src/components/chat-dot-round.vue
+import { createElementVNode as _createElementVNode36, openBlock as _openBlock37, createElementBlock as _createElementBlock37 } from "vue";
+var _hoisted_137 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_237 = /* @__PURE__ */ _createElementVNode36(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_336 = /* @__PURE__ */ _createElementVNode36(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_410 = [
+ _hoisted_237,
+ _hoisted_336
+];
+function _sfc_render37(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock37(), _createElementBlock37("svg", _hoisted_137, _hoisted_410);
+}
+var chat_dot_round_default = /* @__PURE__ */ export_helper_default(chat_dot_round_vue_vue_type_script_lang_default, [["render", _sfc_render37], ["__file", "chat-dot-round.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-dot-square.vue?vue&type=script&lang.ts
+var chat_dot_square_vue_vue_type_script_lang_default = {
+ name: "ChatDotSquare"
+};
+
+// src/components/chat-dot-square.vue
+import { createElementVNode as _createElementVNode37, openBlock as _openBlock38, createElementBlock as _createElementBlock38 } from "vue";
+var _hoisted_138 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_238 = /* @__PURE__ */ _createElementVNode37(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_337 = /* @__PURE__ */ _createElementVNode37(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_411 = [
+ _hoisted_238,
+ _hoisted_337
+];
+function _sfc_render38(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock38(), _createElementBlock38("svg", _hoisted_138, _hoisted_411);
+}
+var chat_dot_square_default = /* @__PURE__ */ export_helper_default(chat_dot_square_vue_vue_type_script_lang_default, [["render", _sfc_render38], ["__file", "chat-dot-square.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-line-round.vue?vue&type=script&lang.ts
+var chat_line_round_vue_vue_type_script_lang_default = {
+ name: "ChatLineRound"
+};
+
+// src/components/chat-line-round.vue
+import { createElementVNode as _createElementVNode38, openBlock as _openBlock39, createElementBlock as _createElementBlock39 } from "vue";
+var _hoisted_139 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_239 = /* @__PURE__ */ _createElementVNode38(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_338 = /* @__PURE__ */ _createElementVNode38(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_412 = [
+ _hoisted_239,
+ _hoisted_338
+];
+function _sfc_render39(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock39(), _createElementBlock39("svg", _hoisted_139, _hoisted_412);
+}
+var chat_line_round_default = /* @__PURE__ */ export_helper_default(chat_line_round_vue_vue_type_script_lang_default, [["render", _sfc_render39], ["__file", "chat-line-round.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-line-square.vue?vue&type=script&lang.ts
+var chat_line_square_vue_vue_type_script_lang_default = {
+ name: "ChatLineSquare"
+};
+
+// src/components/chat-line-square.vue
+import { createElementVNode as _createElementVNode39, openBlock as _openBlock40, createElementBlock as _createElementBlock40 } from "vue";
+var _hoisted_140 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_240 = /* @__PURE__ */ _createElementVNode39(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_339 = /* @__PURE__ */ _createElementVNode39(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_413 = [
+ _hoisted_240,
+ _hoisted_339
+];
+function _sfc_render40(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock40(), _createElementBlock40("svg", _hoisted_140, _hoisted_413);
+}
+var chat_line_square_default = /* @__PURE__ */ export_helper_default(chat_line_square_vue_vue_type_script_lang_default, [["render", _sfc_render40], ["__file", "chat-line-square.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-round.vue?vue&type=script&lang.ts
+var chat_round_vue_vue_type_script_lang_default = {
+ name: "ChatRound"
+};
+
+// src/components/chat-round.vue
+import { createElementVNode as _createElementVNode40, openBlock as _openBlock41, createElementBlock as _createElementBlock41 } from "vue";
+var _hoisted_141 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_241 = /* @__PURE__ */ _createElementVNode40(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_340 = [
+ _hoisted_241
+];
+function _sfc_render41(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock41(), _createElementBlock41("svg", _hoisted_141, _hoisted_340);
+}
+var chat_round_default = /* @__PURE__ */ export_helper_default(chat_round_vue_vue_type_script_lang_default, [["render", _sfc_render41], ["__file", "chat-round.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-square.vue?vue&type=script&lang.ts
+var chat_square_vue_vue_type_script_lang_default = {
+ name: "ChatSquare"
+};
+
+// src/components/chat-square.vue
+import { createElementVNode as _createElementVNode41, openBlock as _openBlock42, createElementBlock as _createElementBlock42 } from "vue";
+var _hoisted_142 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_242 = /* @__PURE__ */ _createElementVNode41(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_341 = [
+ _hoisted_242
+];
+function _sfc_render42(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock42(), _createElementBlock42("svg", _hoisted_142, _hoisted_341);
+}
+var chat_square_default = /* @__PURE__ */ export_helper_default(chat_square_vue_vue_type_script_lang_default, [["render", _sfc_render42], ["__file", "chat-square.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/check.vue?vue&type=script&lang.ts
+var check_vue_vue_type_script_lang_default = {
+ name: "Check"
+};
+
+// src/components/check.vue
+import { createElementVNode as _createElementVNode42, openBlock as _openBlock43, createElementBlock as _createElementBlock43 } from "vue";
+var _hoisted_143 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_243 = /* @__PURE__ */ _createElementVNode42(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_342 = [
+ _hoisted_243
+];
+function _sfc_render43(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock43(), _createElementBlock43("svg", _hoisted_143, _hoisted_342);
+}
+var check_default = /* @__PURE__ */ export_helper_default(check_vue_vue_type_script_lang_default, [["render", _sfc_render43], ["__file", "check.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/checked.vue?vue&type=script&lang.ts
+var checked_vue_vue_type_script_lang_default = {
+ name: "Checked"
+};
+
+// src/components/checked.vue
+import { createElementVNode as _createElementVNode43, openBlock as _openBlock44, createElementBlock as _createElementBlock44 } from "vue";
+var _hoisted_144 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_244 = /* @__PURE__ */ _createElementVNode43(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_343 = [
+ _hoisted_244
+];
+function _sfc_render44(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock44(), _createElementBlock44("svg", _hoisted_144, _hoisted_343);
+}
+var checked_default = /* @__PURE__ */ export_helper_default(checked_vue_vue_type_script_lang_default, [["render", _sfc_render44], ["__file", "checked.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cherry.vue?vue&type=script&lang.ts
+var cherry_vue_vue_type_script_lang_default = {
+ name: "Cherry"
+};
+
+// src/components/cherry.vue
+import { createElementVNode as _createElementVNode44, openBlock as _openBlock45, createElementBlock as _createElementBlock45 } from "vue";
+var _hoisted_145 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_245 = /* @__PURE__ */ _createElementVNode44(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_344 = [
+ _hoisted_245
+];
+function _sfc_render45(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock45(), _createElementBlock45("svg", _hoisted_145, _hoisted_344);
+}
+var cherry_default = /* @__PURE__ */ export_helper_default(cherry_vue_vue_type_script_lang_default, [["render", _sfc_render45], ["__file", "cherry.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chicken.vue?vue&type=script&lang.ts
+var chicken_vue_vue_type_script_lang_default = {
+ name: "Chicken"
+};
+
+// src/components/chicken.vue
+import { createElementVNode as _createElementVNode45, openBlock as _openBlock46, createElementBlock as _createElementBlock46 } from "vue";
+var _hoisted_146 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_246 = /* @__PURE__ */ _createElementVNode45(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_345 = [
+ _hoisted_246
+];
+function _sfc_render46(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock46(), _createElementBlock46("svg", _hoisted_146, _hoisted_345);
+}
+var chicken_default = /* @__PURE__ */ export_helper_default(chicken_vue_vue_type_script_lang_default, [["render", _sfc_render46], ["__file", "chicken.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chrome-filled.vue?vue&type=script&lang.ts
+var chrome_filled_vue_vue_type_script_lang_default = {
+ name: "ChromeFilled"
+};
+
+// src/components/chrome-filled.vue
+import { createElementVNode as _createElementVNode46, openBlock as _openBlock47, createElementBlock as _createElementBlock47 } from "vue";
+var _hoisted_147 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_247 = /* @__PURE__ */ _createElementVNode46(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_346 = /* @__PURE__ */ _createElementVNode46(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_414 = /* @__PURE__ */ _createElementVNode46(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_54 = [
+ _hoisted_247,
+ _hoisted_346,
+ _hoisted_414
+];
+function _sfc_render47(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock47(), _createElementBlock47("svg", _hoisted_147, _hoisted_54);
+}
+var chrome_filled_default = /* @__PURE__ */ export_helper_default(chrome_filled_vue_vue_type_script_lang_default, [["render", _sfc_render47], ["__file", "chrome-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check-filled.vue?vue&type=script&lang.ts
+var circle_check_filled_vue_vue_type_script_lang_default = {
+ name: "CircleCheckFilled"
+};
+
+// src/components/circle-check-filled.vue
+import { createElementVNode as _createElementVNode47, openBlock as _openBlock48, createElementBlock as _createElementBlock48 } from "vue";
+var _hoisted_148 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_248 = /* @__PURE__ */ _createElementVNode47(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_347 = [
+ _hoisted_248
+];
+function _sfc_render48(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock48(), _createElementBlock48("svg", _hoisted_148, _hoisted_347);
+}
+var circle_check_filled_default = /* @__PURE__ */ export_helper_default(circle_check_filled_vue_vue_type_script_lang_default, [["render", _sfc_render48], ["__file", "circle-check-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check.vue?vue&type=script&lang.ts
+var circle_check_vue_vue_type_script_lang_default = {
+ name: "CircleCheck"
+};
+
+// src/components/circle-check.vue
+import { createElementVNode as _createElementVNode48, openBlock as _openBlock49, createElementBlock as _createElementBlock49 } from "vue";
+var _hoisted_149 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_249 = /* @__PURE__ */ _createElementVNode48(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_348 = /* @__PURE__ */ _createElementVNode48(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_415 = [
+ _hoisted_249,
+ _hoisted_348
+];
+function _sfc_render49(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock49(), _createElementBlock49("svg", _hoisted_149, _hoisted_415);
+}
+var circle_check_default = /* @__PURE__ */ export_helper_default(circle_check_vue_vue_type_script_lang_default, [["render", _sfc_render49], ["__file", "circle-check.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close-filled.vue?vue&type=script&lang.ts
+var circle_close_filled_vue_vue_type_script_lang_default = {
+ name: "CircleCloseFilled"
+};
+
+// src/components/circle-close-filled.vue
+import { createElementVNode as _createElementVNode49, openBlock as _openBlock50, createElementBlock as _createElementBlock50 } from "vue";
+var _hoisted_150 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_250 = /* @__PURE__ */ _createElementVNode49(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_349 = [
+ _hoisted_250
+];
+function _sfc_render50(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock50(), _createElementBlock50("svg", _hoisted_150, _hoisted_349);
+}
+var circle_close_filled_default = /* @__PURE__ */ export_helper_default(circle_close_filled_vue_vue_type_script_lang_default, [["render", _sfc_render50], ["__file", "circle-close-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close.vue?vue&type=script&lang.ts
+var circle_close_vue_vue_type_script_lang_default = {
+ name: "CircleClose"
+};
+
+// src/components/circle-close.vue
+import { createElementVNode as _createElementVNode50, openBlock as _openBlock51, createElementBlock as _createElementBlock51 } from "vue";
+var _hoisted_151 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_251 = /* @__PURE__ */ _createElementVNode50(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_350 = /* @__PURE__ */ _createElementVNode50(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_416 = [
+ _hoisted_251,
+ _hoisted_350
+];
+function _sfc_render51(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock51(), _createElementBlock51("svg", _hoisted_151, _hoisted_416);
+}
+var circle_close_default = /* @__PURE__ */ export_helper_default(circle_close_vue_vue_type_script_lang_default, [["render", _sfc_render51], ["__file", "circle-close.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-plus-filled.vue?vue&type=script&lang.ts
+var circle_plus_filled_vue_vue_type_script_lang_default = {
+ name: "CirclePlusFilled"
+};
+
+// src/components/circle-plus-filled.vue
+import { createElementVNode as _createElementVNode51, openBlock as _openBlock52, createElementBlock as _createElementBlock52 } from "vue";
+var _hoisted_152 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_252 = /* @__PURE__ */ _createElementVNode51(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_351 = [
+ _hoisted_252
+];
+function _sfc_render52(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock52(), _createElementBlock52("svg", _hoisted_152, _hoisted_351);
+}
+var circle_plus_filled_default = /* @__PURE__ */ export_helper_default(circle_plus_filled_vue_vue_type_script_lang_default, [["render", _sfc_render52], ["__file", "circle-plus-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-plus.vue?vue&type=script&lang.ts
+var circle_plus_vue_vue_type_script_lang_default = {
+ name: "CirclePlus"
+};
+
+// src/components/circle-plus.vue
+import { createElementVNode as _createElementVNode52, openBlock as _openBlock53, createElementBlock as _createElementBlock53 } from "vue";
+var _hoisted_153 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_253 = /* @__PURE__ */ _createElementVNode52(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_352 = /* @__PURE__ */ _createElementVNode52(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_417 = /* @__PURE__ */ _createElementVNode52(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_55 = [
+ _hoisted_253,
+ _hoisted_352,
+ _hoisted_417
+];
+function _sfc_render53(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock53(), _createElementBlock53("svg", _hoisted_153, _hoisted_55);
+}
+var circle_plus_default = /* @__PURE__ */ export_helper_default(circle_plus_vue_vue_type_script_lang_default, [["render", _sfc_render53], ["__file", "circle-plus.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/clock.vue?vue&type=script&lang.ts
+var clock_vue_vue_type_script_lang_default = {
+ name: "Clock"
+};
+
+// src/components/clock.vue
+import { createElementVNode as _createElementVNode53, openBlock as _openBlock54, createElementBlock as _createElementBlock54 } from "vue";
+var _hoisted_154 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_254 = /* @__PURE__ */ _createElementVNode53(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_353 = /* @__PURE__ */ _createElementVNode53(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_418 = /* @__PURE__ */ _createElementVNode53(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_56 = [
+ _hoisted_254,
+ _hoisted_353,
+ _hoisted_418
+];
+function _sfc_render54(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock54(), _createElementBlock54("svg", _hoisted_154, _hoisted_56);
+}
+var clock_default = /* @__PURE__ */ export_helper_default(clock_vue_vue_type_script_lang_default, [["render", _sfc_render54], ["__file", "clock.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close-bold.vue?vue&type=script&lang.ts
+var close_bold_vue_vue_type_script_lang_default = {
+ name: "CloseBold"
+};
+
+// src/components/close-bold.vue
+import { createElementVNode as _createElementVNode54, openBlock as _openBlock55, createElementBlock as _createElementBlock55 } from "vue";
+var _hoisted_155 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_255 = /* @__PURE__ */ _createElementVNode54(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_354 = [
+ _hoisted_255
+];
+function _sfc_render55(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock55(), _createElementBlock55("svg", _hoisted_155, _hoisted_354);
+}
+var close_bold_default = /* @__PURE__ */ export_helper_default(close_bold_vue_vue_type_script_lang_default, [["render", _sfc_render55], ["__file", "close-bold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close.vue?vue&type=script&lang.ts
+var close_vue_vue_type_script_lang_default = {
+ name: "Close"
+};
+
+// src/components/close.vue
+import { createElementVNode as _createElementVNode55, openBlock as _openBlock56, createElementBlock as _createElementBlock56 } from "vue";
+var _hoisted_156 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_256 = /* @__PURE__ */ _createElementVNode55(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_355 = [
+ _hoisted_256
+];
+function _sfc_render56(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock56(), _createElementBlock56("svg", _hoisted_156, _hoisted_355);
+}
+var close_default = /* @__PURE__ */ export_helper_default(close_vue_vue_type_script_lang_default, [["render", _sfc_render56], ["__file", "close.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cloudy.vue?vue&type=script&lang.ts
+var cloudy_vue_vue_type_script_lang_default = {
+ name: "Cloudy"
+};
+
+// src/components/cloudy.vue
+import { createElementVNode as _createElementVNode56, openBlock as _openBlock57, createElementBlock as _createElementBlock57 } from "vue";
+var _hoisted_157 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_257 = /* @__PURE__ */ _createElementVNode56(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_356 = [
+ _hoisted_257
+];
+function _sfc_render57(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock57(), _createElementBlock57("svg", _hoisted_157, _hoisted_356);
+}
+var cloudy_default = /* @__PURE__ */ export_helper_default(cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render57], ["__file", "cloudy.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coffee-cup.vue?vue&type=script&lang.ts
+var coffee_cup_vue_vue_type_script_lang_default = {
+ name: "CoffeeCup"
+};
+
+// src/components/coffee-cup.vue
+import { createElementVNode as _createElementVNode57, openBlock as _openBlock58, createElementBlock as _createElementBlock58 } from "vue";
+var _hoisted_158 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_258 = /* @__PURE__ */ _createElementVNode57(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_357 = [
+ _hoisted_258
+];
+function _sfc_render58(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock58(), _createElementBlock58("svg", _hoisted_158, _hoisted_357);
+}
+var coffee_cup_default = /* @__PURE__ */ export_helper_default(coffee_cup_vue_vue_type_script_lang_default, [["render", _sfc_render58], ["__file", "coffee-cup.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coffee.vue?vue&type=script&lang.ts
+var coffee_vue_vue_type_script_lang_default = {
+ name: "Coffee"
+};
+
+// src/components/coffee.vue
+import { createElementVNode as _createElementVNode58, openBlock as _openBlock59, createElementBlock as _createElementBlock59 } from "vue";
+var _hoisted_159 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_259 = /* @__PURE__ */ _createElementVNode58(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_358 = [
+ _hoisted_259
+];
+function _sfc_render59(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock59(), _createElementBlock59("svg", _hoisted_159, _hoisted_358);
+}
+var coffee_default = /* @__PURE__ */ export_helper_default(coffee_vue_vue_type_script_lang_default, [["render", _sfc_render59], ["__file", "coffee.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coin.vue?vue&type=script&lang.ts
+var coin_vue_vue_type_script_lang_default = {
+ name: "Coin"
+};
+
+// src/components/coin.vue
+import { createElementVNode as _createElementVNode59, openBlock as _openBlock60, createElementBlock as _createElementBlock60 } from "vue";
+var _hoisted_160 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_260 = /* @__PURE__ */ _createElementVNode59(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_359 = /* @__PURE__ */ _createElementVNode59(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_419 = /* @__PURE__ */ _createElementVNode59(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_57 = [
+ _hoisted_260,
+ _hoisted_359,
+ _hoisted_419
+];
+function _sfc_render60(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock60(), _createElementBlock60("svg", _hoisted_160, _hoisted_57);
+}
+var coin_default = /* @__PURE__ */ export_helper_default(coin_vue_vue_type_script_lang_default, [["render", _sfc_render60], ["__file", "coin.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cold-drink.vue?vue&type=script&lang.ts
+var cold_drink_vue_vue_type_script_lang_default = {
+ name: "ColdDrink"
+};
+
+// src/components/cold-drink.vue
+import { createElementVNode as _createElementVNode60, openBlock as _openBlock61, createElementBlock as _createElementBlock61 } from "vue";
+var _hoisted_161 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_261 = /* @__PURE__ */ _createElementVNode60(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_360 = [
+ _hoisted_261
+];
+function _sfc_render61(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock61(), _createElementBlock61("svg", _hoisted_161, _hoisted_360);
+}
+var cold_drink_default = /* @__PURE__ */ export_helper_default(cold_drink_vue_vue_type_script_lang_default, [["render", _sfc_render61], ["__file", "cold-drink.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/collection-tag.vue?vue&type=script&lang.ts
+var collection_tag_vue_vue_type_script_lang_default = {
+ name: "CollectionTag"
+};
+
+// src/components/collection-tag.vue
+import { createElementVNode as _createElementVNode61, openBlock as _openBlock62, createElementBlock as _createElementBlock62 } from "vue";
+var _hoisted_162 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_262 = /* @__PURE__ */ _createElementVNode61(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_361 = [
+ _hoisted_262
+];
+function _sfc_render62(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock62(), _createElementBlock62("svg", _hoisted_162, _hoisted_361);
+}
+var collection_tag_default = /* @__PURE__ */ export_helper_default(collection_tag_vue_vue_type_script_lang_default, [["render", _sfc_render62], ["__file", "collection-tag.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/collection.vue?vue&type=script&lang.ts
+var collection_vue_vue_type_script_lang_default = {
+ name: "Collection"
+};
+
+// src/components/collection.vue
+import { createElementVNode as _createElementVNode62, openBlock as _openBlock63, createElementBlock as _createElementBlock63 } from "vue";
+var _hoisted_163 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_263 = /* @__PURE__ */ _createElementVNode62(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_362 = /* @__PURE__ */ _createElementVNode62(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_420 = [
+ _hoisted_263,
+ _hoisted_362
+];
+function _sfc_render63(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock63(), _createElementBlock63("svg", _hoisted_163, _hoisted_420);
+}
+var collection_default = /* @__PURE__ */ export_helper_default(collection_vue_vue_type_script_lang_default, [["render", _sfc_render63], ["__file", "collection.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/comment.vue?vue&type=script&lang.ts
+var comment_vue_vue_type_script_lang_default = {
+ name: "Comment"
+};
+
+// src/components/comment.vue
+import { createElementVNode as _createElementVNode63, openBlock as _openBlock64, createElementBlock as _createElementBlock64 } from "vue";
+var _hoisted_164 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_264 = /* @__PURE__ */ _createElementVNode63(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_363 = [
+ _hoisted_264
+];
+function _sfc_render64(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock64(), _createElementBlock64("svg", _hoisted_164, _hoisted_363);
+}
+var comment_default = /* @__PURE__ */ export_helper_default(comment_vue_vue_type_script_lang_default, [["render", _sfc_render64], ["__file", "comment.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/compass.vue?vue&type=script&lang.ts
+var compass_vue_vue_type_script_lang_default = {
+ name: "Compass"
+};
+
+// src/components/compass.vue
+import { createElementVNode as _createElementVNode64, openBlock as _openBlock65, createElementBlock as _createElementBlock65 } from "vue";
+var _hoisted_165 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_265 = /* @__PURE__ */ _createElementVNode64(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_364 = /* @__PURE__ */ _createElementVNode64(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_421 = [
+ _hoisted_265,
+ _hoisted_364
+];
+function _sfc_render65(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock65(), _createElementBlock65("svg", _hoisted_165, _hoisted_421);
+}
+var compass_default = /* @__PURE__ */ export_helper_default(compass_vue_vue_type_script_lang_default, [["render", _sfc_render65], ["__file", "compass.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/connection.vue?vue&type=script&lang.ts
+var connection_vue_vue_type_script_lang_default = {
+ name: "Connection"
+};
+
+// src/components/connection.vue
+import { createElementVNode as _createElementVNode65, openBlock as _openBlock66, createElementBlock as _createElementBlock66 } from "vue";
+var _hoisted_166 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_266 = /* @__PURE__ */ _createElementVNode65(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_365 = /* @__PURE__ */ _createElementVNode65(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_422 = [
+ _hoisted_266,
+ _hoisted_365
+];
+function _sfc_render66(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock66(), _createElementBlock66("svg", _hoisted_166, _hoisted_422);
+}
+var connection_default = /* @__PURE__ */ export_helper_default(connection_vue_vue_type_script_lang_default, [["render", _sfc_render66], ["__file", "connection.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coordinate.vue?vue&type=script&lang.ts
+var coordinate_vue_vue_type_script_lang_default = {
+ name: "Coordinate"
+};
+
+// src/components/coordinate.vue
+import { createElementVNode as _createElementVNode66, openBlock as _openBlock67, createElementBlock as _createElementBlock67 } from "vue";
+var _hoisted_167 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_267 = /* @__PURE__ */ _createElementVNode66(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 512h64v320h-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_366 = /* @__PURE__ */ _createElementVNode66(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_423 = [
+ _hoisted_267,
+ _hoisted_366
+];
+function _sfc_render67(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock67(), _createElementBlock67("svg", _hoisted_167, _hoisted_423);
+}
+var coordinate_default = /* @__PURE__ */ export_helper_default(coordinate_vue_vue_type_script_lang_default, [["render", _sfc_render67], ["__file", "coordinate.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/copy-document.vue?vue&type=script&lang.ts
+var copy_document_vue_vue_type_script_lang_default = {
+ name: "CopyDocument"
+};
+
+// src/components/copy-document.vue
+import { createElementVNode as _createElementVNode67, openBlock as _openBlock68, createElementBlock as _createElementBlock68 } from "vue";
+var _hoisted_168 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_268 = /* @__PURE__ */ _createElementVNode67(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_367 = /* @__PURE__ */ _createElementVNode67(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_424 = [
+ _hoisted_268,
+ _hoisted_367
+];
+function _sfc_render68(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock68(), _createElementBlock68("svg", _hoisted_168, _hoisted_424);
+}
+var copy_document_default = /* @__PURE__ */ export_helper_default(copy_document_vue_vue_type_script_lang_default, [["render", _sfc_render68], ["__file", "copy-document.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cpu.vue?vue&type=script&lang.ts
+var cpu_vue_vue_type_script_lang_default = {
+ name: "Cpu"
+};
+
+// src/components/cpu.vue
+import { createElementVNode as _createElementVNode68, openBlock as _openBlock69, createElementBlock as _createElementBlock69 } from "vue";
+var _hoisted_169 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_269 = /* @__PURE__ */ _createElementVNode68(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_368 = /* @__PURE__ */ _createElementVNode68(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_425 = [
+ _hoisted_269,
+ _hoisted_368
+];
+function _sfc_render69(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock69(), _createElementBlock69("svg", _hoisted_169, _hoisted_425);
+}
+var cpu_default = /* @__PURE__ */ export_helper_default(cpu_vue_vue_type_script_lang_default, [["render", _sfc_render69], ["__file", "cpu.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/credit-card.vue?vue&type=script&lang.ts
+var credit_card_vue_vue_type_script_lang_default = {
+ name: "CreditCard"
+};
+
+// src/components/credit-card.vue
+import { createElementVNode as _createElementVNode69, openBlock as _openBlock70, createElementBlock as _createElementBlock70 } from "vue";
+var _hoisted_170 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_270 = /* @__PURE__ */ _createElementVNode69(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_369 = /* @__PURE__ */ _createElementVNode69(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_426 = [
+ _hoisted_270,
+ _hoisted_369
+];
+function _sfc_render70(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock70(), _createElementBlock70("svg", _hoisted_170, _hoisted_426);
+}
+var credit_card_default = /* @__PURE__ */ export_helper_default(credit_card_vue_vue_type_script_lang_default, [["render", _sfc_render70], ["__file", "credit-card.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/crop.vue?vue&type=script&lang.ts
+var crop_vue_vue_type_script_lang_default = {
+ name: "Crop"
+};
+
+// src/components/crop.vue
+import { createElementVNode as _createElementVNode70, openBlock as _openBlock71, createElementBlock as _createElementBlock71 } from "vue";
+var _hoisted_171 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_271 = /* @__PURE__ */ _createElementVNode70(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_370 = /* @__PURE__ */ _createElementVNode70(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_427 = [
+ _hoisted_271,
+ _hoisted_370
+];
+function _sfc_render71(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock71(), _createElementBlock71("svg", _hoisted_171, _hoisted_427);
+}
+var crop_default = /* @__PURE__ */ export_helper_default(crop_vue_vue_type_script_lang_default, [["render", _sfc_render71], ["__file", "crop.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-arrow-left.vue?vue&type=script&lang.ts
+var d_arrow_left_vue_vue_type_script_lang_default = {
+ name: "DArrowLeft"
+};
+
+// src/components/d-arrow-left.vue
+import { createElementVNode as _createElementVNode71, openBlock as _openBlock72, createElementBlock as _createElementBlock72 } from "vue";
+var _hoisted_172 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_272 = /* @__PURE__ */ _createElementVNode71(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_371 = [
+ _hoisted_272
+];
+function _sfc_render72(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock72(), _createElementBlock72("svg", _hoisted_172, _hoisted_371);
+}
+var d_arrow_left_default = /* @__PURE__ */ export_helper_default(d_arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render72], ["__file", "d-arrow-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-arrow-right.vue?vue&type=script&lang.ts
+var d_arrow_right_vue_vue_type_script_lang_default = {
+ name: "DArrowRight"
+};
+
+// src/components/d-arrow-right.vue
+import { createElementVNode as _createElementVNode72, openBlock as _openBlock73, createElementBlock as _createElementBlock73 } from "vue";
+var _hoisted_173 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_273 = /* @__PURE__ */ _createElementVNode72(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_372 = [
+ _hoisted_273
+];
+function _sfc_render73(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock73(), _createElementBlock73("svg", _hoisted_173, _hoisted_372);
+}
+var d_arrow_right_default = /* @__PURE__ */ export_helper_default(d_arrow_right_vue_vue_type_script_lang_default, [["render", _sfc_render73], ["__file", "d-arrow-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-caret.vue?vue&type=script&lang.ts
+var d_caret_vue_vue_type_script_lang_default = {
+ name: "DCaret"
+};
+
+// src/components/d-caret.vue
+import { createElementVNode as _createElementVNode73, openBlock as _openBlock74, createElementBlock as _createElementBlock74 } from "vue";
+var _hoisted_174 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_274 = /* @__PURE__ */ _createElementVNode73(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_373 = [
+ _hoisted_274
+];
+function _sfc_render74(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock74(), _createElementBlock74("svg", _hoisted_174, _hoisted_373);
+}
+var d_caret_default = /* @__PURE__ */ export_helper_default(d_caret_vue_vue_type_script_lang_default, [["render", _sfc_render74], ["__file", "d-caret.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-analysis.vue?vue&type=script&lang.ts
+var data_analysis_vue_vue_type_script_lang_default = {
+ name: "DataAnalysis"
+};
+
+// src/components/data-analysis.vue
+import { createElementVNode as _createElementVNode74, openBlock as _openBlock75, createElementBlock as _createElementBlock75 } from "vue";
+var _hoisted_175 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_275 = /* @__PURE__ */ _createElementVNode74(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_374 = [
+ _hoisted_275
+];
+function _sfc_render75(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock75(), _createElementBlock75("svg", _hoisted_175, _hoisted_374);
+}
+var data_analysis_default = /* @__PURE__ */ export_helper_default(data_analysis_vue_vue_type_script_lang_default, [["render", _sfc_render75], ["__file", "data-analysis.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-board.vue?vue&type=script&lang.ts
+var data_board_vue_vue_type_script_lang_default = {
+ name: "DataBoard"
+};
+
+// src/components/data-board.vue
+import { createElementVNode as _createElementVNode75, openBlock as _openBlock76, createElementBlock as _createElementBlock76 } from "vue";
+var _hoisted_176 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_276 = /* @__PURE__ */ _createElementVNode75(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M32 128h960v64H32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_375 = /* @__PURE__ */ _createElementVNode75(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_428 = /* @__PURE__ */ _createElementVNode75(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_58 = [
+ _hoisted_276,
+ _hoisted_375,
+ _hoisted_428
+];
+function _sfc_render76(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock76(), _createElementBlock76("svg", _hoisted_176, _hoisted_58);
+}
+var data_board_default = /* @__PURE__ */ export_helper_default(data_board_vue_vue_type_script_lang_default, [["render", _sfc_render76], ["__file", "data-board.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-line.vue?vue&type=script&lang.ts
+var data_line_vue_vue_type_script_lang_default = {
+ name: "DataLine"
+};
+
+// src/components/data-line.vue
+import { createElementVNode as _createElementVNode76, openBlock as _openBlock77, createElementBlock as _createElementBlock77 } from "vue";
+var _hoisted_177 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_277 = /* @__PURE__ */ _createElementVNode76(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_376 = [
+ _hoisted_277
+];
+function _sfc_render77(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock77(), _createElementBlock77("svg", _hoisted_177, _hoisted_376);
+}
+var data_line_default = /* @__PURE__ */ export_helper_default(data_line_vue_vue_type_script_lang_default, [["render", _sfc_render77], ["__file", "data-line.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete-filled.vue?vue&type=script&lang.ts
+var delete_filled_vue_vue_type_script_lang_default = {
+ name: "DeleteFilled"
+};
+
+// src/components/delete-filled.vue
+import { createElementVNode as _createElementVNode77, openBlock as _openBlock78, createElementBlock as _createElementBlock78 } from "vue";
+var _hoisted_178 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_278 = /* @__PURE__ */ _createElementVNode77(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_377 = [
+ _hoisted_278
+];
+function _sfc_render78(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock78(), _createElementBlock78("svg", _hoisted_178, _hoisted_377);
+}
+var delete_filled_default = /* @__PURE__ */ export_helper_default(delete_filled_vue_vue_type_script_lang_default, [["render", _sfc_render78], ["__file", "delete-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete-location.vue?vue&type=script&lang.ts
+var delete_location_vue_vue_type_script_lang_default = {
+ name: "DeleteLocation"
+};
+
+// src/components/delete-location.vue
+import { createElementVNode as _createElementVNode78, openBlock as _openBlock79, createElementBlock as _createElementBlock79 } from "vue";
+var _hoisted_179 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_279 = /* @__PURE__ */ _createElementVNode78(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_378 = /* @__PURE__ */ _createElementVNode78(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_429 = /* @__PURE__ */ _createElementVNode78(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_59 = [
+ _hoisted_279,
+ _hoisted_378,
+ _hoisted_429
+];
+function _sfc_render79(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock79(), _createElementBlock79("svg", _hoisted_179, _hoisted_59);
+}
+var delete_location_default = /* @__PURE__ */ export_helper_default(delete_location_vue_vue_type_script_lang_default, [["render", _sfc_render79], ["__file", "delete-location.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete.vue?vue&type=script&lang.ts
+var delete_vue_vue_type_script_lang_default = {
+ name: "Delete"
+};
+
+// src/components/delete.vue
+import { createElementVNode as _createElementVNode79, openBlock as _openBlock80, createElementBlock as _createElementBlock80 } from "vue";
+var _hoisted_180 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_280 = /* @__PURE__ */ _createElementVNode79(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_379 = [
+ _hoisted_280
+];
+function _sfc_render80(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock80(), _createElementBlock80("svg", _hoisted_180, _hoisted_379);
+}
+var delete_default = /* @__PURE__ */ export_helper_default(delete_vue_vue_type_script_lang_default, [["render", _sfc_render80], ["__file", "delete.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dessert.vue?vue&type=script&lang.ts
+var dessert_vue_vue_type_script_lang_default = {
+ name: "Dessert"
+};
+
+// src/components/dessert.vue
+import { createElementVNode as _createElementVNode80, openBlock as _openBlock81, createElementBlock as _createElementBlock81 } from "vue";
+var _hoisted_181 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_281 = /* @__PURE__ */ _createElementVNode80(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_380 = [
+ _hoisted_281
+];
+function _sfc_render81(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock81(), _createElementBlock81("svg", _hoisted_181, _hoisted_380);
+}
+var dessert_default = /* @__PURE__ */ export_helper_default(dessert_vue_vue_type_script_lang_default, [["render", _sfc_render81], ["__file", "dessert.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/discount.vue?vue&type=script&lang.ts
+var discount_vue_vue_type_script_lang_default = {
+ name: "Discount"
+};
+
+// src/components/discount.vue
+import { createElementVNode as _createElementVNode81, openBlock as _openBlock82, createElementBlock as _createElementBlock82 } from "vue";
+var _hoisted_182 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_282 = /* @__PURE__ */ _createElementVNode81(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_381 = /* @__PURE__ */ _createElementVNode81(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_430 = [
+ _hoisted_282,
+ _hoisted_381
+];
+function _sfc_render82(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock82(), _createElementBlock82("svg", _hoisted_182, _hoisted_430);
+}
+var discount_default = /* @__PURE__ */ export_helper_default(discount_vue_vue_type_script_lang_default, [["render", _sfc_render82], ["__file", "discount.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dish-dot.vue?vue&type=script&lang.ts
+var dish_dot_vue_vue_type_script_lang_default = {
+ name: "DishDot"
+};
+
+// src/components/dish-dot.vue
+import { createElementVNode as _createElementVNode82, openBlock as _openBlock83, createElementBlock as _createElementBlock83 } from "vue";
+var _hoisted_183 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_283 = /* @__PURE__ */ _createElementVNode82(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_382 = [
+ _hoisted_283
+];
+function _sfc_render83(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock83(), _createElementBlock83("svg", _hoisted_183, _hoisted_382);
+}
+var dish_dot_default = /* @__PURE__ */ export_helper_default(dish_dot_vue_vue_type_script_lang_default, [["render", _sfc_render83], ["__file", "dish-dot.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dish.vue?vue&type=script&lang.ts
+var dish_vue_vue_type_script_lang_default = {
+ name: "Dish"
+};
+
+// src/components/dish.vue
+import { createElementVNode as _createElementVNode83, openBlock as _openBlock84, createElementBlock as _createElementBlock84 } from "vue";
+var _hoisted_184 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_284 = /* @__PURE__ */ _createElementVNode83(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_383 = [
+ _hoisted_284
+];
+function _sfc_render84(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock84(), _createElementBlock84("svg", _hoisted_184, _hoisted_383);
+}
+var dish_default = /* @__PURE__ */ export_helper_default(dish_vue_vue_type_script_lang_default, [["render", _sfc_render84], ["__file", "dish.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-add.vue?vue&type=script&lang.ts
+var document_add_vue_vue_type_script_lang_default = {
+ name: "DocumentAdd"
+};
+
+// src/components/document-add.vue
+import { createElementVNode as _createElementVNode84, openBlock as _openBlock85, createElementBlock as _createElementBlock85 } from "vue";
+var _hoisted_185 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_285 = /* @__PURE__ */ _createElementVNode84(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_384 = [
+ _hoisted_285
+];
+function _sfc_render85(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock85(), _createElementBlock85("svg", _hoisted_185, _hoisted_384);
+}
+var document_add_default = /* @__PURE__ */ export_helper_default(document_add_vue_vue_type_script_lang_default, [["render", _sfc_render85], ["__file", "document-add.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-checked.vue?vue&type=script&lang.ts
+var document_checked_vue_vue_type_script_lang_default = {
+ name: "DocumentChecked"
+};
+
+// src/components/document-checked.vue
+import { createElementVNode as _createElementVNode85, openBlock as _openBlock86, createElementBlock as _createElementBlock86 } from "vue";
+var _hoisted_186 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_286 = /* @__PURE__ */ _createElementVNode85(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_385 = [
+ _hoisted_286
+];
+function _sfc_render86(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock86(), _createElementBlock86("svg", _hoisted_186, _hoisted_385);
+}
+var document_checked_default = /* @__PURE__ */ export_helper_default(document_checked_vue_vue_type_script_lang_default, [["render", _sfc_render86], ["__file", "document-checked.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-copy.vue?vue&type=script&lang.ts
+var document_copy_vue_vue_type_script_lang_default = {
+ name: "DocumentCopy"
+};
+
+// src/components/document-copy.vue
+import { createElementVNode as _createElementVNode86, openBlock as _openBlock87, createElementBlock as _createElementBlock87 } from "vue";
+var _hoisted_187 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_287 = /* @__PURE__ */ _createElementVNode86(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_386 = [
+ _hoisted_287
+];
+function _sfc_render87(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock87(), _createElementBlock87("svg", _hoisted_187, _hoisted_386);
+}
+var document_copy_default = /* @__PURE__ */ export_helper_default(document_copy_vue_vue_type_script_lang_default, [["render", _sfc_render87], ["__file", "document-copy.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-delete.vue?vue&type=script&lang.ts
+var document_delete_vue_vue_type_script_lang_default = {
+ name: "DocumentDelete"
+};
+
+// src/components/document-delete.vue
+import { createElementVNode as _createElementVNode87, openBlock as _openBlock88, createElementBlock as _createElementBlock88 } from "vue";
+var _hoisted_188 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_288 = /* @__PURE__ */ _createElementVNode87(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_387 = [
+ _hoisted_288
+];
+function _sfc_render88(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock88(), _createElementBlock88("svg", _hoisted_188, _hoisted_387);
+}
+var document_delete_default = /* @__PURE__ */ export_helper_default(document_delete_vue_vue_type_script_lang_default, [["render", _sfc_render88], ["__file", "document-delete.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-remove.vue?vue&type=script&lang.ts
+var document_remove_vue_vue_type_script_lang_default = {
+ name: "DocumentRemove"
+};
+
+// src/components/document-remove.vue
+import { createElementVNode as _createElementVNode88, openBlock as _openBlock89, createElementBlock as _createElementBlock89 } from "vue";
+var _hoisted_189 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_289 = /* @__PURE__ */ _createElementVNode88(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_388 = [
+ _hoisted_289
+];
+function _sfc_render89(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock89(), _createElementBlock89("svg", _hoisted_189, _hoisted_388);
+}
+var document_remove_default = /* @__PURE__ */ export_helper_default(document_remove_vue_vue_type_script_lang_default, [["render", _sfc_render89], ["__file", "document-remove.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document.vue?vue&type=script&lang.ts
+var document_vue_vue_type_script_lang_default = {
+ name: "Document"
+};
+
+// src/components/document.vue
+import { createElementVNode as _createElementVNode89, openBlock as _openBlock90, createElementBlock as _createElementBlock90 } from "vue";
+var _hoisted_190 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_290 = /* @__PURE__ */ _createElementVNode89(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_389 = [
+ _hoisted_290
+];
+function _sfc_render90(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock90(), _createElementBlock90("svg", _hoisted_190, _hoisted_389);
+}
+var document_default = /* @__PURE__ */ export_helper_default(document_vue_vue_type_script_lang_default, [["render", _sfc_render90], ["__file", "document.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/download.vue?vue&type=script&lang.ts
+var download_vue_vue_type_script_lang_default = {
+ name: "Download"
+};
+
+// src/components/download.vue
+import { createElementVNode as _createElementVNode90, openBlock as _openBlock91, createElementBlock as _createElementBlock91 } from "vue";
+var _hoisted_191 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_291 = /* @__PURE__ */ _createElementVNode90(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_390 = [
+ _hoisted_291
+];
+function _sfc_render91(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock91(), _createElementBlock91("svg", _hoisted_191, _hoisted_390);
+}
+var download_default = /* @__PURE__ */ export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/drizzling.vue?vue&type=script&lang.ts
+var drizzling_vue_vue_type_script_lang_default = {
+ name: "Drizzling"
+};
+
+// src/components/drizzling.vue
+import { createElementVNode as _createElementVNode91, openBlock as _openBlock92, createElementBlock as _createElementBlock92 } from "vue";
+var _hoisted_192 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_292 = /* @__PURE__ */ _createElementVNode91(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_391 = [
+ _hoisted_292
+];
+function _sfc_render92(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock92(), _createElementBlock92("svg", _hoisted_192, _hoisted_391);
+}
+var drizzling_default = /* @__PURE__ */ export_helper_default(drizzling_vue_vue_type_script_lang_default, [["render", _sfc_render92], ["__file", "drizzling.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/edit-pen.vue?vue&type=script&lang.ts
+var edit_pen_vue_vue_type_script_lang_default = {
+ name: "EditPen"
+};
+
+// src/components/edit-pen.vue
+import { createElementVNode as _createElementVNode92, openBlock as _openBlock93, createElementBlock as _createElementBlock93 } from "vue";
+var _hoisted_193 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_293 = /* @__PURE__ */ _createElementVNode92(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_392 = [
+ _hoisted_293
+];
+function _sfc_render93(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock93(), _createElementBlock93("svg", _hoisted_193, _hoisted_392);
+}
+var edit_pen_default = /* @__PURE__ */ export_helper_default(edit_pen_vue_vue_type_script_lang_default, [["render", _sfc_render93], ["__file", "edit-pen.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/edit.vue?vue&type=script&lang.ts
+var edit_vue_vue_type_script_lang_default = {
+ name: "Edit"
+};
+
+// src/components/edit.vue
+import { createElementVNode as _createElementVNode93, openBlock as _openBlock94, createElementBlock as _createElementBlock94 } from "vue";
+var _hoisted_194 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_294 = /* @__PURE__ */ _createElementVNode93(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_393 = /* @__PURE__ */ _createElementVNode93(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_431 = [
+ _hoisted_294,
+ _hoisted_393
+];
+function _sfc_render94(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock94(), _createElementBlock94("svg", _hoisted_194, _hoisted_431);
+}
+var edit_default = /* @__PURE__ */ export_helper_default(edit_vue_vue_type_script_lang_default, [["render", _sfc_render94], ["__file", "edit.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/eleme-filled.vue?vue&type=script&lang.ts
+var eleme_filled_vue_vue_type_script_lang_default = {
+ name: "ElemeFilled"
+};
+
+// src/components/eleme-filled.vue
+import { createElementVNode as _createElementVNode94, openBlock as _openBlock95, createElementBlock as _createElementBlock95 } from "vue";
+var _hoisted_195 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_295 = /* @__PURE__ */ _createElementVNode94(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_394 = [
+ _hoisted_295
+];
+function _sfc_render95(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock95(), _createElementBlock95("svg", _hoisted_195, _hoisted_394);
+}
+var eleme_filled_default = /* @__PURE__ */ export_helper_default(eleme_filled_vue_vue_type_script_lang_default, [["render", _sfc_render95], ["__file", "eleme-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/eleme.vue?vue&type=script&lang.ts
+var eleme_vue_vue_type_script_lang_default = {
+ name: "Eleme"
+};
+
+// src/components/eleme.vue
+import { createElementVNode as _createElementVNode95, openBlock as _openBlock96, createElementBlock as _createElementBlock96 } from "vue";
+var _hoisted_196 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_296 = /* @__PURE__ */ _createElementVNode95(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_395 = [
+ _hoisted_296
+];
+function _sfc_render96(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock96(), _createElementBlock96("svg", _hoisted_196, _hoisted_395);
+}
+var eleme_default = /* @__PURE__ */ export_helper_default(eleme_vue_vue_type_script_lang_default, [["render", _sfc_render96], ["__file", "eleme.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/element-plus.vue?vue&type=script&lang.ts
+var element_plus_vue_vue_type_script_lang_default = {
+ name: "ElementPlus"
+};
+
+// src/components/element-plus.vue
+import { createElementVNode as _createElementVNode96, openBlock as _openBlock97, createElementBlock as _createElementBlock97 } from "vue";
+var _hoisted_197 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_297 = /* @__PURE__ */ _createElementVNode96(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_396 = [
+ _hoisted_297
+];
+function _sfc_render97(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock97(), _createElementBlock97("svg", _hoisted_197, _hoisted_396);
+}
+var element_plus_default = /* @__PURE__ */ export_helper_default(element_plus_vue_vue_type_script_lang_default, [["render", _sfc_render97], ["__file", "element-plus.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/expand.vue?vue&type=script&lang.ts
+var expand_vue_vue_type_script_lang_default = {
+ name: "Expand"
+};
+
+// src/components/expand.vue
+import { createElementVNode as _createElementVNode97, openBlock as _openBlock98, createElementBlock as _createElementBlock98 } from "vue";
+var _hoisted_198 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_298 = /* @__PURE__ */ _createElementVNode97(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_397 = [
+ _hoisted_298
+];
+function _sfc_render98(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock98(), _createElementBlock98("svg", _hoisted_198, _hoisted_397);
+}
+var expand_default = /* @__PURE__ */ export_helper_default(expand_vue_vue_type_script_lang_default, [["render", _sfc_render98], ["__file", "expand.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/failed.vue?vue&type=script&lang.ts
+var failed_vue_vue_type_script_lang_default = {
+ name: "Failed"
+};
+
+// src/components/failed.vue
+import { createElementVNode as _createElementVNode98, openBlock as _openBlock99, createElementBlock as _createElementBlock99 } from "vue";
+var _hoisted_199 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_299 = /* @__PURE__ */ _createElementVNode98(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_398 = [
+ _hoisted_299
+];
+function _sfc_render99(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock99(), _createElementBlock99("svg", _hoisted_199, _hoisted_398);
+}
+var failed_default = /* @__PURE__ */ export_helper_default(failed_vue_vue_type_script_lang_default, [["render", _sfc_render99], ["__file", "failed.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/female.vue?vue&type=script&lang.ts
+var female_vue_vue_type_script_lang_default = {
+ name: "Female"
+};
+
+// src/components/female.vue
+import { createElementVNode as _createElementVNode99, openBlock as _openBlock100, createElementBlock as _createElementBlock100 } from "vue";
+var _hoisted_1100 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2100 = /* @__PURE__ */ _createElementVNode99(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_399 = /* @__PURE__ */ _createElementVNode99(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_432 = /* @__PURE__ */ _createElementVNode99(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_510 = [
+ _hoisted_2100,
+ _hoisted_399,
+ _hoisted_432
+];
+function _sfc_render100(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock100(), _createElementBlock100("svg", _hoisted_1100, _hoisted_510);
+}
+var female_default = /* @__PURE__ */ export_helper_default(female_vue_vue_type_script_lang_default, [["render", _sfc_render100], ["__file", "female.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/files.vue?vue&type=script&lang.ts
+var files_vue_vue_type_script_lang_default = {
+ name: "Files"
+};
+
+// src/components/files.vue
+import { createElementVNode as _createElementVNode100, openBlock as _openBlock101, createElementBlock as _createElementBlock101 } from "vue";
+var _hoisted_1101 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2101 = /* @__PURE__ */ _createElementVNode100(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3100 = [
+ _hoisted_2101
+];
+function _sfc_render101(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock101(), _createElementBlock101("svg", _hoisted_1101, _hoisted_3100);
+}
+var files_default = /* @__PURE__ */ export_helper_default(files_vue_vue_type_script_lang_default, [["render", _sfc_render101], ["__file", "files.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/film.vue?vue&type=script&lang.ts
+var film_vue_vue_type_script_lang_default = {
+ name: "Film"
+};
+
+// src/components/film.vue
+import { createElementVNode as _createElementVNode101, openBlock as _openBlock102, createElementBlock as _createElementBlock102 } from "vue";
+var _hoisted_1102 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2102 = /* @__PURE__ */ _createElementVNode101(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3101 = /* @__PURE__ */ _createElementVNode101(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_433 = [
+ _hoisted_2102,
+ _hoisted_3101
+];
+function _sfc_render102(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock102(), _createElementBlock102("svg", _hoisted_1102, _hoisted_433);
+}
+var film_default = /* @__PURE__ */ export_helper_default(film_vue_vue_type_script_lang_default, [["render", _sfc_render102], ["__file", "film.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/filter.vue?vue&type=script&lang.ts
+var filter_vue_vue_type_script_lang_default = {
+ name: "Filter"
+};
+
+// src/components/filter.vue
+import { createElementVNode as _createElementVNode102, openBlock as _openBlock103, createElementBlock as _createElementBlock103 } from "vue";
+var _hoisted_1103 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2103 = /* @__PURE__ */ _createElementVNode102(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3102 = [
+ _hoisted_2103
+];
+function _sfc_render103(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock103(), _createElementBlock103("svg", _hoisted_1103, _hoisted_3102);
+}
+var filter_default = /* @__PURE__ */ export_helper_default(filter_vue_vue_type_script_lang_default, [["render", _sfc_render103], ["__file", "filter.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/finished.vue?vue&type=script&lang.ts
+var finished_vue_vue_type_script_lang_default = {
+ name: "Finished"
+};
+
+// src/components/finished.vue
+import { createElementVNode as _createElementVNode103, openBlock as _openBlock104, createElementBlock as _createElementBlock104 } from "vue";
+var _hoisted_1104 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2104 = /* @__PURE__ */ _createElementVNode103(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3103 = [
+ _hoisted_2104
+];
+function _sfc_render104(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock104(), _createElementBlock104("svg", _hoisted_1104, _hoisted_3103);
+}
+var finished_default = /* @__PURE__ */ export_helper_default(finished_vue_vue_type_script_lang_default, [["render", _sfc_render104], ["__file", "finished.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/first-aid-kit.vue?vue&type=script&lang.ts
+var first_aid_kit_vue_vue_type_script_lang_default = {
+ name: "FirstAidKit"
+};
+
+// src/components/first-aid-kit.vue
+import { createElementVNode as _createElementVNode104, openBlock as _openBlock105, createElementBlock as _createElementBlock105 } from "vue";
+var _hoisted_1105 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2105 = /* @__PURE__ */ _createElementVNode104(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3104 = /* @__PURE__ */ _createElementVNode104(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_434 = [
+ _hoisted_2105,
+ _hoisted_3104
+];
+function _sfc_render105(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock105(), _createElementBlock105("svg", _hoisted_1105, _hoisted_434);
+}
+var first_aid_kit_default = /* @__PURE__ */ export_helper_default(first_aid_kit_vue_vue_type_script_lang_default, [["render", _sfc_render105], ["__file", "first-aid-kit.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/flag.vue?vue&type=script&lang.ts
+var flag_vue_vue_type_script_lang_default = {
+ name: "Flag"
+};
+
+// src/components/flag.vue
+import { createElementVNode as _createElementVNode105, openBlock as _openBlock106, createElementBlock as _createElementBlock106 } from "vue";
+var _hoisted_1106 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2106 = /* @__PURE__ */ _createElementVNode105(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 128h608L736 384l160 256H288v320h-96V64h96v64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3105 = [
+ _hoisted_2106
+];
+function _sfc_render106(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock106(), _createElementBlock106("svg", _hoisted_1106, _hoisted_3105);
+}
+var flag_default = /* @__PURE__ */ export_helper_default(flag_vue_vue_type_script_lang_default, [["render", _sfc_render106], ["__file", "flag.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fold.vue?vue&type=script&lang.ts
+var fold_vue_vue_type_script_lang_default = {
+ name: "Fold"
+};
+
+// src/components/fold.vue
+import { createElementVNode as _createElementVNode106, openBlock as _openBlock107, createElementBlock as _createElementBlock107 } from "vue";
+var _hoisted_1107 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2107 = /* @__PURE__ */ _createElementVNode106(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3106 = [
+ _hoisted_2107
+];
+function _sfc_render107(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock107(), _createElementBlock107("svg", _hoisted_1107, _hoisted_3106);
+}
+var fold_default = /* @__PURE__ */ export_helper_default(fold_vue_vue_type_script_lang_default, [["render", _sfc_render107], ["__file", "fold.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-add.vue?vue&type=script&lang.ts
+var folder_add_vue_vue_type_script_lang_default = {
+ name: "FolderAdd"
+};
+
+// src/components/folder-add.vue
+import { createElementVNode as _createElementVNode107, openBlock as _openBlock108, createElementBlock as _createElementBlock108 } from "vue";
+var _hoisted_1108 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2108 = /* @__PURE__ */ _createElementVNode107(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3107 = [
+ _hoisted_2108
+];
+function _sfc_render108(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock108(), _createElementBlock108("svg", _hoisted_1108, _hoisted_3107);
+}
+var folder_add_default = /* @__PURE__ */ export_helper_default(folder_add_vue_vue_type_script_lang_default, [["render", _sfc_render108], ["__file", "folder-add.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-checked.vue?vue&type=script&lang.ts
+var folder_checked_vue_vue_type_script_lang_default = {
+ name: "FolderChecked"
+};
+
+// src/components/folder-checked.vue
+import { createElementVNode as _createElementVNode108, openBlock as _openBlock109, createElementBlock as _createElementBlock109 } from "vue";
+var _hoisted_1109 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2109 = /* @__PURE__ */ _createElementVNode108(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3108 = [
+ _hoisted_2109
+];
+function _sfc_render109(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock109(), _createElementBlock109("svg", _hoisted_1109, _hoisted_3108);
+}
+var folder_checked_default = /* @__PURE__ */ export_helper_default(folder_checked_vue_vue_type_script_lang_default, [["render", _sfc_render109], ["__file", "folder-checked.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-delete.vue?vue&type=script&lang.ts
+var folder_delete_vue_vue_type_script_lang_default = {
+ name: "FolderDelete"
+};
+
+// src/components/folder-delete.vue
+import { createElementVNode as _createElementVNode109, openBlock as _openBlock110, createElementBlock as _createElementBlock110 } from "vue";
+var _hoisted_1110 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2110 = /* @__PURE__ */ _createElementVNode109(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3109 = [
+ _hoisted_2110
+];
+function _sfc_render110(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock110(), _createElementBlock110("svg", _hoisted_1110, _hoisted_3109);
+}
+var folder_delete_default = /* @__PURE__ */ export_helper_default(folder_delete_vue_vue_type_script_lang_default, [["render", _sfc_render110], ["__file", "folder-delete.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-opened.vue?vue&type=script&lang.ts
+var folder_opened_vue_vue_type_script_lang_default = {
+ name: "FolderOpened"
+};
+
+// src/components/folder-opened.vue
+import { createElementVNode as _createElementVNode110, openBlock as _openBlock111, createElementBlock as _createElementBlock111 } from "vue";
+var _hoisted_1111 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2111 = /* @__PURE__ */ _createElementVNode110(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3110 = [
+ _hoisted_2111
+];
+function _sfc_render111(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock111(), _createElementBlock111("svg", _hoisted_1111, _hoisted_3110);
+}
+var folder_opened_default = /* @__PURE__ */ export_helper_default(folder_opened_vue_vue_type_script_lang_default, [["render", _sfc_render111], ["__file", "folder-opened.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-remove.vue?vue&type=script&lang.ts
+var folder_remove_vue_vue_type_script_lang_default = {
+ name: "FolderRemove"
+};
+
+// src/components/folder-remove.vue
+import { createElementVNode as _createElementVNode111, openBlock as _openBlock112, createElementBlock as _createElementBlock112 } from "vue";
+var _hoisted_1112 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2112 = /* @__PURE__ */ _createElementVNode111(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3111 = [
+ _hoisted_2112
+];
+function _sfc_render112(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock112(), _createElementBlock112("svg", _hoisted_1112, _hoisted_3111);
+}
+var folder_remove_default = /* @__PURE__ */ export_helper_default(folder_remove_vue_vue_type_script_lang_default, [["render", _sfc_render112], ["__file", "folder-remove.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder.vue?vue&type=script&lang.ts
+var folder_vue_vue_type_script_lang_default = {
+ name: "Folder"
+};
+
+// src/components/folder.vue
+import { createElementVNode as _createElementVNode112, openBlock as _openBlock113, createElementBlock as _createElementBlock113 } from "vue";
+var _hoisted_1113 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2113 = /* @__PURE__ */ _createElementVNode112(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3112 = [
+ _hoisted_2113
+];
+function _sfc_render113(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock113(), _createElementBlock113("svg", _hoisted_1113, _hoisted_3112);
+}
+var folder_default = /* @__PURE__ */ export_helper_default(folder_vue_vue_type_script_lang_default, [["render", _sfc_render113], ["__file", "folder.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/food.vue?vue&type=script&lang.ts
+var food_vue_vue_type_script_lang_default = {
+ name: "Food"
+};
+
+// src/components/food.vue
+import { createElementVNode as _createElementVNode113, openBlock as _openBlock114, createElementBlock as _createElementBlock114 } from "vue";
+var _hoisted_1114 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2114 = /* @__PURE__ */ _createElementVNode113(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3113 = [
+ _hoisted_2114
+];
+function _sfc_render114(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock114(), _createElementBlock114("svg", _hoisted_1114, _hoisted_3113);
+}
+var food_default = /* @__PURE__ */ export_helper_default(food_vue_vue_type_script_lang_default, [["render", _sfc_render114], ["__file", "food.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/football.vue?vue&type=script&lang.ts
+var football_vue_vue_type_script_lang_default = {
+ name: "Football"
+};
+
+// src/components/football.vue
+import { createElementVNode as _createElementVNode114, openBlock as _openBlock115, createElementBlock as _createElementBlock115 } from "vue";
+var _hoisted_1115 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2115 = /* @__PURE__ */ _createElementVNode114(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3114 = /* @__PURE__ */ _createElementVNode114(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_435 = [
+ _hoisted_2115,
+ _hoisted_3114
+];
+function _sfc_render115(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock115(), _createElementBlock115("svg", _hoisted_1115, _hoisted_435);
+}
+var football_default = /* @__PURE__ */ export_helper_default(football_vue_vue_type_script_lang_default, [["render", _sfc_render115], ["__file", "football.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fork-spoon.vue?vue&type=script&lang.ts
+var fork_spoon_vue_vue_type_script_lang_default = {
+ name: "ForkSpoon"
+};
+
+// src/components/fork-spoon.vue
+import { createElementVNode as _createElementVNode115, openBlock as _openBlock116, createElementBlock as _createElementBlock116 } from "vue";
+var _hoisted_1116 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2116 = /* @__PURE__ */ _createElementVNode115(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3115 = [
+ _hoisted_2116
+];
+function _sfc_render116(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock116(), _createElementBlock116("svg", _hoisted_1116, _hoisted_3115);
+}
+var fork_spoon_default = /* @__PURE__ */ export_helper_default(fork_spoon_vue_vue_type_script_lang_default, [["render", _sfc_render116], ["__file", "fork-spoon.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fries.vue?vue&type=script&lang.ts
+var fries_vue_vue_type_script_lang_default = {
+ name: "Fries"
+};
+
+// src/components/fries.vue
+import { createElementVNode as _createElementVNode116, openBlock as _openBlock117, createElementBlock as _createElementBlock117 } from "vue";
+var _hoisted_1117 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2117 = /* @__PURE__ */ _createElementVNode116(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3116 = [
+ _hoisted_2117
+];
+function _sfc_render117(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock117(), _createElementBlock117("svg", _hoisted_1117, _hoisted_3116);
+}
+var fries_default = /* @__PURE__ */ export_helper_default(fries_vue_vue_type_script_lang_default, [["render", _sfc_render117], ["__file", "fries.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/full-screen.vue?vue&type=script&lang.ts
+var full_screen_vue_vue_type_script_lang_default = {
+ name: "FullScreen"
+};
+
+// src/components/full-screen.vue
+import { createElementVNode as _createElementVNode117, openBlock as _openBlock118, createElementBlock as _createElementBlock118 } from "vue";
+var _hoisted_1118 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2118 = /* @__PURE__ */ _createElementVNode117(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3117 = [
+ _hoisted_2118
+];
+function _sfc_render118(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock118(), _createElementBlock118("svg", _hoisted_1118, _hoisted_3117);
+}
+var full_screen_default = /* @__PURE__ */ export_helper_default(full_screen_vue_vue_type_script_lang_default, [["render", _sfc_render118], ["__file", "full-screen.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-full.vue?vue&type=script&lang.ts
+var goblet_full_vue_vue_type_script_lang_default = {
+ name: "GobletFull"
+};
+
+// src/components/goblet-full.vue
+import { createElementVNode as _createElementVNode118, openBlock as _openBlock119, createElementBlock as _createElementBlock119 } from "vue";
+var _hoisted_1119 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2119 = /* @__PURE__ */ _createElementVNode118(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3118 = [
+ _hoisted_2119
+];
+function _sfc_render119(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock119(), _createElementBlock119("svg", _hoisted_1119, _hoisted_3118);
+}
+var goblet_full_default = /* @__PURE__ */ export_helper_default(goblet_full_vue_vue_type_script_lang_default, [["render", _sfc_render119], ["__file", "goblet-full.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-square-full.vue?vue&type=script&lang.ts
+var goblet_square_full_vue_vue_type_script_lang_default = {
+ name: "GobletSquareFull"
+};
+
+// src/components/goblet-square-full.vue
+import { createElementVNode as _createElementVNode119, openBlock as _openBlock120, createElementBlock as _createElementBlock120 } from "vue";
+var _hoisted_1120 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2120 = /* @__PURE__ */ _createElementVNode119(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3119 = [
+ _hoisted_2120
+];
+function _sfc_render120(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock120(), _createElementBlock120("svg", _hoisted_1120, _hoisted_3119);
+}
+var goblet_square_full_default = /* @__PURE__ */ export_helper_default(goblet_square_full_vue_vue_type_script_lang_default, [["render", _sfc_render120], ["__file", "goblet-square-full.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-square.vue?vue&type=script&lang.ts
+var goblet_square_vue_vue_type_script_lang_default = {
+ name: "GobletSquare"
+};
+
+// src/components/goblet-square.vue
+import { createElementVNode as _createElementVNode120, openBlock as _openBlock121, createElementBlock as _createElementBlock121 } from "vue";
+var _hoisted_1121 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2121 = /* @__PURE__ */ _createElementVNode120(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3120 = [
+ _hoisted_2121
+];
+function _sfc_render121(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock121(), _createElementBlock121("svg", _hoisted_1121, _hoisted_3120);
+}
+var goblet_square_default = /* @__PURE__ */ export_helper_default(goblet_square_vue_vue_type_script_lang_default, [["render", _sfc_render121], ["__file", "goblet-square.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet.vue?vue&type=script&lang.ts
+var goblet_vue_vue_type_script_lang_default = {
+ name: "Goblet"
+};
+
+// src/components/goblet.vue
+import { createElementVNode as _createElementVNode121, openBlock as _openBlock122, createElementBlock as _createElementBlock122 } from "vue";
+var _hoisted_1122 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2122 = /* @__PURE__ */ _createElementVNode121(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3121 = [
+ _hoisted_2122
+];
+function _sfc_render122(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock122(), _createElementBlock122("svg", _hoisted_1122, _hoisted_3121);
+}
+var goblet_default = /* @__PURE__ */ export_helper_default(goblet_vue_vue_type_script_lang_default, [["render", _sfc_render122], ["__file", "goblet.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/gold-medal.vue?vue&type=script&lang.ts
+var gold_medal_vue_vue_type_script_lang_default = {
+ name: "GoldMedal"
+};
+
+// src/components/gold-medal.vue
+import { createElementVNode as _createElementVNode122, openBlock as _openBlock123, createElementBlock as _createElementBlock123 } from "vue";
+var _hoisted_1123 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2123 = /* @__PURE__ */ _createElementVNode122(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3122 = /* @__PURE__ */ _createElementVNode122(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 480H416v64h64v192h-64v64h192v-64h-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_436 = [
+ _hoisted_2123,
+ _hoisted_3122
+];
+function _sfc_render123(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock123(), _createElementBlock123("svg", _hoisted_1123, _hoisted_436);
+}
+var gold_medal_default = /* @__PURE__ */ export_helper_default(gold_medal_vue_vue_type_script_lang_default, [["render", _sfc_render123], ["__file", "gold-medal.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goods-filled.vue?vue&type=script&lang.ts
+var goods_filled_vue_vue_type_script_lang_default = {
+ name: "GoodsFilled"
+};
+
+// src/components/goods-filled.vue
+import { createElementVNode as _createElementVNode123, openBlock as _openBlock124, createElementBlock as _createElementBlock124 } from "vue";
+var _hoisted_1124 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2124 = /* @__PURE__ */ _createElementVNode123(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3123 = [
+ _hoisted_2124
+];
+function _sfc_render124(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock124(), _createElementBlock124("svg", _hoisted_1124, _hoisted_3123);
+}
+var goods_filled_default = /* @__PURE__ */ export_helper_default(goods_filled_vue_vue_type_script_lang_default, [["render", _sfc_render124], ["__file", "goods-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goods.vue?vue&type=script&lang.ts
+var goods_vue_vue_type_script_lang_default = {
+ name: "Goods"
+};
+
+// src/components/goods.vue
+import { createElementVNode as _createElementVNode124, openBlock as _openBlock125, createElementBlock as _createElementBlock125 } from "vue";
+var _hoisted_1125 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2125 = /* @__PURE__ */ _createElementVNode124(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3124 = [
+ _hoisted_2125
+];
+function _sfc_render125(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock125(), _createElementBlock125("svg", _hoisted_1125, _hoisted_3124);
+}
+var goods_default = /* @__PURE__ */ export_helper_default(goods_vue_vue_type_script_lang_default, [["render", _sfc_render125], ["__file", "goods.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/grape.vue?vue&type=script&lang.ts
+var grape_vue_vue_type_script_lang_default = {
+ name: "Grape"
+};
+
+// src/components/grape.vue
+import { createElementVNode as _createElementVNode125, openBlock as _openBlock126, createElementBlock as _createElementBlock126 } from "vue";
+var _hoisted_1126 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2126 = /* @__PURE__ */ _createElementVNode125(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3125 = [
+ _hoisted_2126
+];
+function _sfc_render126(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock126(), _createElementBlock126("svg", _hoisted_1126, _hoisted_3125);
+}
+var grape_default = /* @__PURE__ */ export_helper_default(grape_vue_vue_type_script_lang_default, [["render", _sfc_render126], ["__file", "grape.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/grid.vue?vue&type=script&lang.ts
+var grid_vue_vue_type_script_lang_default = {
+ name: "Grid"
+};
+
+// src/components/grid.vue
+import { createElementVNode as _createElementVNode126, openBlock as _openBlock127, createElementBlock as _createElementBlock127 } from "vue";
+var _hoisted_1127 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2127 = /* @__PURE__ */ _createElementVNode126(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3126 = [
+ _hoisted_2127
+];
+function _sfc_render127(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock127(), _createElementBlock127("svg", _hoisted_1127, _hoisted_3126);
+}
+var grid_default = /* @__PURE__ */ export_helper_default(grid_vue_vue_type_script_lang_default, [["render", _sfc_render127], ["__file", "grid.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/guide.vue?vue&type=script&lang.ts
+var guide_vue_vue_type_script_lang_default = {
+ name: "Guide"
+};
+
+// src/components/guide.vue
+import { createElementVNode as _createElementVNode127, openBlock as _openBlock128, createElementBlock as _createElementBlock128 } from "vue";
+var _hoisted_1128 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2128 = /* @__PURE__ */ _createElementVNode127(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3127 = /* @__PURE__ */ _createElementVNode127(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_437 = [
+ _hoisted_2128,
+ _hoisted_3127
+];
+function _sfc_render128(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock128(), _createElementBlock128("svg", _hoisted_1128, _hoisted_437);
+}
+var guide_default = /* @__PURE__ */ export_helper_default(guide_vue_vue_type_script_lang_default, [["render", _sfc_render128], ["__file", "guide.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/handbag.vue?vue&type=script&lang.ts
+var handbag_vue_vue_type_script_lang_default = {
+ name: "Handbag"
+};
+
+// src/components/handbag.vue
+import { createElementVNode as _createElementVNode128, openBlock as _openBlock129, createElementBlock as _createElementBlock129 } from "vue";
+var _hoisted_1129 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2129 = /* @__PURE__ */ _createElementVNode128(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3128 = [
+ _hoisted_2129
+];
+function _sfc_render129(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock129(), _createElementBlock129("svg", _hoisted_1129, _hoisted_3128);
+}
+var handbag_default = /* @__PURE__ */ export_helper_default(handbag_vue_vue_type_script_lang_default, [["render", _sfc_render129], ["__file", "handbag.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/headset.vue?vue&type=script&lang.ts
+var headset_vue_vue_type_script_lang_default = {
+ name: "Headset"
+};
+
+// src/components/headset.vue
+import { createElementVNode as _createElementVNode129, openBlock as _openBlock130, createElementBlock as _createElementBlock130 } from "vue";
+var _hoisted_1130 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2130 = /* @__PURE__ */ _createElementVNode129(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3129 = [
+ _hoisted_2130
+];
+function _sfc_render130(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock130(), _createElementBlock130("svg", _hoisted_1130, _hoisted_3129);
+}
+var headset_default = /* @__PURE__ */ export_helper_default(headset_vue_vue_type_script_lang_default, [["render", _sfc_render130], ["__file", "headset.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/help-filled.vue?vue&type=script&lang.ts
+var help_filled_vue_vue_type_script_lang_default = {
+ name: "HelpFilled"
+};
+
+// src/components/help-filled.vue
+import { createElementVNode as _createElementVNode130, openBlock as _openBlock131, createElementBlock as _createElementBlock131 } from "vue";
+var _hoisted_1131 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2131 = /* @__PURE__ */ _createElementVNode130(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3130 = [
+ _hoisted_2131
+];
+function _sfc_render131(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock131(), _createElementBlock131("svg", _hoisted_1131, _hoisted_3130);
+}
+var help_filled_default = /* @__PURE__ */ export_helper_default(help_filled_vue_vue_type_script_lang_default, [["render", _sfc_render131], ["__file", "help-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/help.vue?vue&type=script&lang.ts
+var help_vue_vue_type_script_lang_default = {
+ name: "Help"
+};
+
+// src/components/help.vue
+import { createElementVNode as _createElementVNode131, openBlock as _openBlock132, createElementBlock as _createElementBlock132 } from "vue";
+var _hoisted_1132 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2132 = /* @__PURE__ */ _createElementVNode131(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3131 = [
+ _hoisted_2132
+];
+function _sfc_render132(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock132(), _createElementBlock132("svg", _hoisted_1132, _hoisted_3131);
+}
+var help_default = /* @__PURE__ */ export_helper_default(help_vue_vue_type_script_lang_default, [["render", _sfc_render132], ["__file", "help.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/hide.vue?vue&type=script&lang.ts
+var hide_vue_vue_type_script_lang_default = {
+ name: "Hide"
+};
+
+// src/components/hide.vue
+import { createElementVNode as _createElementVNode132, openBlock as _openBlock133, createElementBlock as _createElementBlock133 } from "vue";
+var _hoisted_1133 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2133 = /* @__PURE__ */ _createElementVNode132(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3132 = /* @__PURE__ */ _createElementVNode132(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_438 = [
+ _hoisted_2133,
+ _hoisted_3132
+];
+function _sfc_render133(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock133(), _createElementBlock133("svg", _hoisted_1133, _hoisted_438);
+}
+var hide_default = /* @__PURE__ */ export_helper_default(hide_vue_vue_type_script_lang_default, [["render", _sfc_render133], ["__file", "hide.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/histogram.vue?vue&type=script&lang.ts
+var histogram_vue_vue_type_script_lang_default = {
+ name: "Histogram"
+};
+
+// src/components/histogram.vue
+import { createElementVNode as _createElementVNode133, openBlock as _openBlock134, createElementBlock as _createElementBlock134 } from "vue";
+var _hoisted_1134 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2134 = /* @__PURE__ */ _createElementVNode133(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3133 = [
+ _hoisted_2134
+];
+function _sfc_render134(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock134(), _createElementBlock134("svg", _hoisted_1134, _hoisted_3133);
+}
+var histogram_default = /* @__PURE__ */ export_helper_default(histogram_vue_vue_type_script_lang_default, [["render", _sfc_render134], ["__file", "histogram.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/home-filled.vue?vue&type=script&lang.ts
+var home_filled_vue_vue_type_script_lang_default = {
+ name: "HomeFilled"
+};
+
+// src/components/home-filled.vue
+import { createElementVNode as _createElementVNode134, openBlock as _openBlock135, createElementBlock as _createElementBlock135 } from "vue";
+var _hoisted_1135 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2135 = /* @__PURE__ */ _createElementVNode134(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3134 = [
+ _hoisted_2135
+];
+function _sfc_render135(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock135(), _createElementBlock135("svg", _hoisted_1135, _hoisted_3134);
+}
+var home_filled_default = /* @__PURE__ */ export_helper_default(home_filled_vue_vue_type_script_lang_default, [["render", _sfc_render135], ["__file", "home-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/hot-water.vue?vue&type=script&lang.ts
+var hot_water_vue_vue_type_script_lang_default = {
+ name: "HotWater"
+};
+
+// src/components/hot-water.vue
+import { createElementVNode as _createElementVNode135, openBlock as _openBlock136, createElementBlock as _createElementBlock136 } from "vue";
+var _hoisted_1136 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2136 = /* @__PURE__ */ _createElementVNode135(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3135 = [
+ _hoisted_2136
+];
+function _sfc_render136(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock136(), _createElementBlock136("svg", _hoisted_1136, _hoisted_3135);
+}
+var hot_water_default = /* @__PURE__ */ export_helper_default(hot_water_vue_vue_type_script_lang_default, [["render", _sfc_render136], ["__file", "hot-water.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/house.vue?vue&type=script&lang.ts
+var house_vue_vue_type_script_lang_default = {
+ name: "House"
+};
+
+// src/components/house.vue
+import { createElementVNode as _createElementVNode136, openBlock as _openBlock137, createElementBlock as _createElementBlock137 } from "vue";
+var _hoisted_1137 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2137 = /* @__PURE__ */ _createElementVNode136(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3136 = [
+ _hoisted_2137
+];
+function _sfc_render137(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock137(), _createElementBlock137("svg", _hoisted_1137, _hoisted_3136);
+}
+var house_default = /* @__PURE__ */ export_helper_default(house_vue_vue_type_script_lang_default, [["render", _sfc_render137], ["__file", "house.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream-round.vue?vue&type=script&lang.ts
+var ice_cream_round_vue_vue_type_script_lang_default = {
+ name: "IceCreamRound"
+};
+
+// src/components/ice-cream-round.vue
+import { createElementVNode as _createElementVNode137, openBlock as _openBlock138, createElementBlock as _createElementBlock138 } from "vue";
+var _hoisted_1138 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2138 = /* @__PURE__ */ _createElementVNode137(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3137 = [
+ _hoisted_2138
+];
+function _sfc_render138(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock138(), _createElementBlock138("svg", _hoisted_1138, _hoisted_3137);
+}
+var ice_cream_round_default = /* @__PURE__ */ export_helper_default(ice_cream_round_vue_vue_type_script_lang_default, [["render", _sfc_render138], ["__file", "ice-cream-round.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream-square.vue?vue&type=script&lang.ts
+var ice_cream_square_vue_vue_type_script_lang_default = {
+ name: "IceCreamSquare"
+};
+
+// src/components/ice-cream-square.vue
+import { createElementVNode as _createElementVNode138, openBlock as _openBlock139, createElementBlock as _createElementBlock139 } from "vue";
+var _hoisted_1139 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2139 = /* @__PURE__ */ _createElementVNode138(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3138 = [
+ _hoisted_2139
+];
+function _sfc_render139(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock139(), _createElementBlock139("svg", _hoisted_1139, _hoisted_3138);
+}
+var ice_cream_square_default = /* @__PURE__ */ export_helper_default(ice_cream_square_vue_vue_type_script_lang_default, [["render", _sfc_render139], ["__file", "ice-cream-square.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream.vue?vue&type=script&lang.ts
+var ice_cream_vue_vue_type_script_lang_default = {
+ name: "IceCream"
+};
+
+// src/components/ice-cream.vue
+import { createElementVNode as _createElementVNode139, openBlock as _openBlock140, createElementBlock as _createElementBlock140 } from "vue";
+var _hoisted_1140 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2140 = /* @__PURE__ */ _createElementVNode139(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3139 = [
+ _hoisted_2140
+];
+function _sfc_render140(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock140(), _createElementBlock140("svg", _hoisted_1140, _hoisted_3139);
+}
+var ice_cream_default = /* @__PURE__ */ export_helper_default(ice_cream_vue_vue_type_script_lang_default, [["render", _sfc_render140], ["__file", "ice-cream.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-drink.vue?vue&type=script&lang.ts
+var ice_drink_vue_vue_type_script_lang_default = {
+ name: "IceDrink"
+};
+
+// src/components/ice-drink.vue
+import { createElementVNode as _createElementVNode140, openBlock as _openBlock141, createElementBlock as _createElementBlock141 } from "vue";
+var _hoisted_1141 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2141 = /* @__PURE__ */ _createElementVNode140(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3140 = [
+ _hoisted_2141
+];
+function _sfc_render141(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock141(), _createElementBlock141("svg", _hoisted_1141, _hoisted_3140);
+}
+var ice_drink_default = /* @__PURE__ */ export_helper_default(ice_drink_vue_vue_type_script_lang_default, [["render", _sfc_render141], ["__file", "ice-drink.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-tea.vue?vue&type=script&lang.ts
+var ice_tea_vue_vue_type_script_lang_default = {
+ name: "IceTea"
+};
+
+// src/components/ice-tea.vue
+import { createElementVNode as _createElementVNode141, openBlock as _openBlock142, createElementBlock as _createElementBlock142 } from "vue";
+var _hoisted_1142 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2142 = /* @__PURE__ */ _createElementVNode141(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3141 = [
+ _hoisted_2142
+];
+function _sfc_render142(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock142(), _createElementBlock142("svg", _hoisted_1142, _hoisted_3141);
+}
+var ice_tea_default = /* @__PURE__ */ export_helper_default(ice_tea_vue_vue_type_script_lang_default, [["render", _sfc_render142], ["__file", "ice-tea.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/info-filled.vue?vue&type=script&lang.ts
+var info_filled_vue_vue_type_script_lang_default = {
+ name: "InfoFilled"
+};
+
+// src/components/info-filled.vue
+import { createElementVNode as _createElementVNode142, openBlock as _openBlock143, createElementBlock as _createElementBlock143 } from "vue";
+var _hoisted_1143 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2143 = /* @__PURE__ */ _createElementVNode142(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3142 = [
+ _hoisted_2143
+];
+function _sfc_render143(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock143(), _createElementBlock143("svg", _hoisted_1143, _hoisted_3142);
+}
+var info_filled_default = /* @__PURE__ */ export_helper_default(info_filled_vue_vue_type_script_lang_default, [["render", _sfc_render143], ["__file", "info-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/iphone.vue?vue&type=script&lang.ts
+var iphone_vue_vue_type_script_lang_default = {
+ name: "Iphone"
+};
+
+// src/components/iphone.vue
+import { createElementVNode as _createElementVNode143, openBlock as _openBlock144, createElementBlock as _createElementBlock144 } from "vue";
+var _hoisted_1144 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2144 = /* @__PURE__ */ _createElementVNode143(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3143 = [
+ _hoisted_2144
+];
+function _sfc_render144(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock144(), _createElementBlock144("svg", _hoisted_1144, _hoisted_3143);
+}
+var iphone_default = /* @__PURE__ */ export_helper_default(iphone_vue_vue_type_script_lang_default, [["render", _sfc_render144], ["__file", "iphone.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/key.vue?vue&type=script&lang.ts
+var key_vue_vue_type_script_lang_default = {
+ name: "Key"
+};
+
+// src/components/key.vue
+import { createElementVNode as _createElementVNode144, openBlock as _openBlock145, createElementBlock as _createElementBlock145 } from "vue";
+var _hoisted_1145 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2145 = /* @__PURE__ */ _createElementVNode144(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3144 = [
+ _hoisted_2145
+];
+function _sfc_render145(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock145(), _createElementBlock145("svg", _hoisted_1145, _hoisted_3144);
+}
+var key_default = /* @__PURE__ */ export_helper_default(key_vue_vue_type_script_lang_default, [["render", _sfc_render145], ["__file", "key.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/knife-fork.vue?vue&type=script&lang.ts
+var knife_fork_vue_vue_type_script_lang_default = {
+ name: "KnifeFork"
+};
+
+// src/components/knife-fork.vue
+import { createElementVNode as _createElementVNode145, openBlock as _openBlock146, createElementBlock as _createElementBlock146 } from "vue";
+var _hoisted_1146 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2146 = /* @__PURE__ */ _createElementVNode145(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3145 = [
+ _hoisted_2146
+];
+function _sfc_render146(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock146(), _createElementBlock146("svg", _hoisted_1146, _hoisted_3145);
+}
+var knife_fork_default = /* @__PURE__ */ export_helper_default(knife_fork_vue_vue_type_script_lang_default, [["render", _sfc_render146], ["__file", "knife-fork.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lightning.vue?vue&type=script&lang.ts
+var lightning_vue_vue_type_script_lang_default = {
+ name: "Lightning"
+};
+
+// src/components/lightning.vue
+import { createElementVNode as _createElementVNode146, openBlock as _openBlock147, createElementBlock as _createElementBlock147 } from "vue";
+var _hoisted_1147 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2147 = /* @__PURE__ */ _createElementVNode146(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3146 = /* @__PURE__ */ _createElementVNode146(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_439 = [
+ _hoisted_2147,
+ _hoisted_3146
+];
+function _sfc_render147(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock147(), _createElementBlock147("svg", _hoisted_1147, _hoisted_439);
+}
+var lightning_default = /* @__PURE__ */ export_helper_default(lightning_vue_vue_type_script_lang_default, [["render", _sfc_render147], ["__file", "lightning.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/link.vue?vue&type=script&lang.ts
+var link_vue_vue_type_script_lang_default = {
+ name: "Link"
+};
+
+// src/components/link.vue
+import { createElementVNode as _createElementVNode147, openBlock as _openBlock148, createElementBlock as _createElementBlock148 } from "vue";
+var _hoisted_1148 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2148 = /* @__PURE__ */ _createElementVNode147(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3147 = [
+ _hoisted_2148
+];
+function _sfc_render148(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock148(), _createElementBlock148("svg", _hoisted_1148, _hoisted_3147);
+}
+var link_default = /* @__PURE__ */ export_helper_default(link_vue_vue_type_script_lang_default, [["render", _sfc_render148], ["__file", "link.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/list.vue?vue&type=script&lang.ts
+var list_vue_vue_type_script_lang_default = {
+ name: "List"
+};
+
+// src/components/list.vue
+import { createElementVNode as _createElementVNode148, openBlock as _openBlock149, createElementBlock as _createElementBlock149 } from "vue";
+var _hoisted_1149 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2149 = /* @__PURE__ */ _createElementVNode148(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3148 = [
+ _hoisted_2149
+];
+function _sfc_render149(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock149(), _createElementBlock149("svg", _hoisted_1149, _hoisted_3148);
+}
+var list_default = /* @__PURE__ */ export_helper_default(list_vue_vue_type_script_lang_default, [["render", _sfc_render149], ["__file", "list.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/loading.vue?vue&type=script&lang.ts
+var loading_vue_vue_type_script_lang_default = {
+ name: "Loading"
+};
+
+// src/components/loading.vue
+import { createElementVNode as _createElementVNode149, openBlock as _openBlock150, createElementBlock as _createElementBlock150 } from "vue";
+var _hoisted_1150 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2150 = /* @__PURE__ */ _createElementVNode149(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3149 = [
+ _hoisted_2150
+];
+function _sfc_render150(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock150(), _createElementBlock150("svg", _hoisted_1150, _hoisted_3149);
+}
+var loading_default = /* @__PURE__ */ export_helper_default(loading_vue_vue_type_script_lang_default, [["render", _sfc_render150], ["__file", "loading.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location-filled.vue?vue&type=script&lang.ts
+var location_filled_vue_vue_type_script_lang_default = {
+ name: "LocationFilled"
+};
+
+// src/components/location-filled.vue
+import { createElementVNode as _createElementVNode150, openBlock as _openBlock151, createElementBlock as _createElementBlock151 } from "vue";
+var _hoisted_1151 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2151 = /* @__PURE__ */ _createElementVNode150(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3150 = [
+ _hoisted_2151
+];
+function _sfc_render151(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock151(), _createElementBlock151("svg", _hoisted_1151, _hoisted_3150);
+}
+var location_filled_default = /* @__PURE__ */ export_helper_default(location_filled_vue_vue_type_script_lang_default, [["render", _sfc_render151], ["__file", "location-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location-information.vue?vue&type=script&lang.ts
+var location_information_vue_vue_type_script_lang_default = {
+ name: "LocationInformation"
+};
+
+// src/components/location-information.vue
+import { createElementVNode as _createElementVNode151, openBlock as _openBlock152, createElementBlock as _createElementBlock152 } from "vue";
+var _hoisted_1152 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2152 = /* @__PURE__ */ _createElementVNode151(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3151 = /* @__PURE__ */ _createElementVNode151(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_440 = /* @__PURE__ */ _createElementVNode151(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_511 = [
+ _hoisted_2152,
+ _hoisted_3151,
+ _hoisted_440
+];
+function _sfc_render152(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock152(), _createElementBlock152("svg", _hoisted_1152, _hoisted_511);
+}
+var location_information_default = /* @__PURE__ */ export_helper_default(location_information_vue_vue_type_script_lang_default, [["render", _sfc_render152], ["__file", "location-information.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location.vue?vue&type=script&lang.ts
+var location_vue_vue_type_script_lang_default = {
+ name: "Location"
+};
+
+// src/components/location.vue
+import { createElementVNode as _createElementVNode152, openBlock as _openBlock153, createElementBlock as _createElementBlock153 } from "vue";
+var _hoisted_1153 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2153 = /* @__PURE__ */ _createElementVNode152(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3152 = /* @__PURE__ */ _createElementVNode152(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_441 = [
+ _hoisted_2153,
+ _hoisted_3152
+];
+function _sfc_render153(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock153(), _createElementBlock153("svg", _hoisted_1153, _hoisted_441);
+}
+var location_default = /* @__PURE__ */ export_helper_default(location_vue_vue_type_script_lang_default, [["render", _sfc_render153], ["__file", "location.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lock.vue?vue&type=script&lang.ts
+var lock_vue_vue_type_script_lang_default = {
+ name: "Lock"
+};
+
+// src/components/lock.vue
+import { createElementVNode as _createElementVNode153, openBlock as _openBlock154, createElementBlock as _createElementBlock154 } from "vue";
+var _hoisted_1154 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2154 = /* @__PURE__ */ _createElementVNode153(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3153 = /* @__PURE__ */ _createElementVNode153(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_442 = [
+ _hoisted_2154,
+ _hoisted_3153
+];
+function _sfc_render154(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock154(), _createElementBlock154("svg", _hoisted_1154, _hoisted_442);
+}
+var lock_default = /* @__PURE__ */ export_helper_default(lock_vue_vue_type_script_lang_default, [["render", _sfc_render154], ["__file", "lock.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lollipop.vue?vue&type=script&lang.ts
+var lollipop_vue_vue_type_script_lang_default = {
+ name: "Lollipop"
+};
+
+// src/components/lollipop.vue
+import { createElementVNode as _createElementVNode154, openBlock as _openBlock155, createElementBlock as _createElementBlock155 } from "vue";
+var _hoisted_1155 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2155 = /* @__PURE__ */ _createElementVNode154(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3154 = [
+ _hoisted_2155
+];
+function _sfc_render155(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock155(), _createElementBlock155("svg", _hoisted_1155, _hoisted_3154);
+}
+var lollipop_default = /* @__PURE__ */ export_helper_default(lollipop_vue_vue_type_script_lang_default, [["render", _sfc_render155], ["__file", "lollipop.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/magic-stick.vue?vue&type=script&lang.ts
+var magic_stick_vue_vue_type_script_lang_default = {
+ name: "MagicStick"
+};
+
+// src/components/magic-stick.vue
+import { createElementVNode as _createElementVNode155, openBlock as _openBlock156, createElementBlock as _createElementBlock156 } from "vue";
+var _hoisted_1156 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2156 = /* @__PURE__ */ _createElementVNode155(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3155 = [
+ _hoisted_2156
+];
+function _sfc_render156(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock156(), _createElementBlock156("svg", _hoisted_1156, _hoisted_3155);
+}
+var magic_stick_default = /* @__PURE__ */ export_helper_default(magic_stick_vue_vue_type_script_lang_default, [["render", _sfc_render156], ["__file", "magic-stick.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/magnet.vue?vue&type=script&lang.ts
+var magnet_vue_vue_type_script_lang_default = {
+ name: "Magnet"
+};
+
+// src/components/magnet.vue
+import { createElementVNode as _createElementVNode156, openBlock as _openBlock157, createElementBlock as _createElementBlock157 } from "vue";
+var _hoisted_1157 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2157 = /* @__PURE__ */ _createElementVNode156(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3156 = [
+ _hoisted_2157
+];
+function _sfc_render157(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock157(), _createElementBlock157("svg", _hoisted_1157, _hoisted_3156);
+}
+var magnet_default = /* @__PURE__ */ export_helper_default(magnet_vue_vue_type_script_lang_default, [["render", _sfc_render157], ["__file", "magnet.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/male.vue?vue&type=script&lang.ts
+var male_vue_vue_type_script_lang_default = {
+ name: "Male"
+};
+
+// src/components/male.vue
+import { createElementVNode as _createElementVNode157, openBlock as _openBlock158, createElementBlock as _createElementBlock158 } from "vue";
+var _hoisted_1158 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2158 = /* @__PURE__ */ _createElementVNode157(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3157 = /* @__PURE__ */ _createElementVNode157(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_443 = /* @__PURE__ */ _createElementVNode157(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_512 = [
+ _hoisted_2158,
+ _hoisted_3157,
+ _hoisted_443
+];
+function _sfc_render158(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock158(), _createElementBlock158("svg", _hoisted_1158, _hoisted_512);
+}
+var male_default = /* @__PURE__ */ export_helper_default(male_vue_vue_type_script_lang_default, [["render", _sfc_render158], ["__file", "male.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/management.vue?vue&type=script&lang.ts
+var management_vue_vue_type_script_lang_default = {
+ name: "Management"
+};
+
+// src/components/management.vue
+import { createElementVNode as _createElementVNode158, openBlock as _openBlock159, createElementBlock as _createElementBlock159 } from "vue";
+var _hoisted_1159 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2159 = /* @__PURE__ */ _createElementVNode158(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3158 = [
+ _hoisted_2159
+];
+function _sfc_render159(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock159(), _createElementBlock159("svg", _hoisted_1159, _hoisted_3158);
+}
+var management_default = /* @__PURE__ */ export_helper_default(management_vue_vue_type_script_lang_default, [["render", _sfc_render159], ["__file", "management.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/map-location.vue?vue&type=script&lang.ts
+var map_location_vue_vue_type_script_lang_default = {
+ name: "MapLocation"
+};
+
+// src/components/map-location.vue
+import { createElementVNode as _createElementVNode159, openBlock as _openBlock160, createElementBlock as _createElementBlock160 } from "vue";
+var _hoisted_1160 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2160 = /* @__PURE__ */ _createElementVNode159(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3159 = /* @__PURE__ */ _createElementVNode159(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_444 = [
+ _hoisted_2160,
+ _hoisted_3159
+];
+function _sfc_render160(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock160(), _createElementBlock160("svg", _hoisted_1160, _hoisted_444);
+}
+var map_location_default = /* @__PURE__ */ export_helper_default(map_location_vue_vue_type_script_lang_default, [["render", _sfc_render160], ["__file", "map-location.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/medal.vue?vue&type=script&lang.ts
+var medal_vue_vue_type_script_lang_default = {
+ name: "Medal"
+};
+
+// src/components/medal.vue
+import { createElementVNode as _createElementVNode160, openBlock as _openBlock161, createElementBlock as _createElementBlock161 } from "vue";
+var _hoisted_1161 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2161 = /* @__PURE__ */ _createElementVNode160(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3160 = /* @__PURE__ */ _createElementVNode160(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_445 = [
+ _hoisted_2161,
+ _hoisted_3160
+];
+function _sfc_render161(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock161(), _createElementBlock161("svg", _hoisted_1161, _hoisted_445);
+}
+var medal_default = /* @__PURE__ */ export_helper_default(medal_vue_vue_type_script_lang_default, [["render", _sfc_render161], ["__file", "medal.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/memo.vue?vue&type=script&lang.ts
+var memo_vue_vue_type_script_lang_default = {
+ name: "Memo"
+};
+
+// src/components/memo.vue
+import { createElementVNode as _createElementVNode161, openBlock as _openBlock162, createElementBlock as _createElementBlock162 } from "vue";
+var _hoisted_1162 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2162 = /* @__PURE__ */ _createElementVNode161(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3161 = /* @__PURE__ */ _createElementVNode161(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_446 = /* @__PURE__ */ _createElementVNode161(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_513 = [
+ _hoisted_2162,
+ _hoisted_3161,
+ _hoisted_446
+];
+function _sfc_render162(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock162(), _createElementBlock162("svg", _hoisted_1162, _hoisted_513);
+}
+var memo_default = /* @__PURE__ */ export_helper_default(memo_vue_vue_type_script_lang_default, [["render", _sfc_render162], ["__file", "memo.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/menu.vue?vue&type=script&lang.ts
+var menu_vue_vue_type_script_lang_default = {
+ name: "Menu"
+};
+
+// src/components/menu.vue
+import { createElementVNode as _createElementVNode162, openBlock as _openBlock163, createElementBlock as _createElementBlock163 } from "vue";
+var _hoisted_1163 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2163 = /* @__PURE__ */ _createElementVNode162(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3162 = [
+ _hoisted_2163
+];
+function _sfc_render163(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock163(), _createElementBlock163("svg", _hoisted_1163, _hoisted_3162);
+}
+var menu_default = /* @__PURE__ */ export_helper_default(menu_vue_vue_type_script_lang_default, [["render", _sfc_render163], ["__file", "menu.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/message-box.vue?vue&type=script&lang.ts
+var message_box_vue_vue_type_script_lang_default = {
+ name: "MessageBox"
+};
+
+// src/components/message-box.vue
+import { createElementVNode as _createElementVNode163, openBlock as _openBlock164, createElementBlock as _createElementBlock164 } from "vue";
+var _hoisted_1164 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2164 = /* @__PURE__ */ _createElementVNode163(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3163 = [
+ _hoisted_2164
+];
+function _sfc_render164(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock164(), _createElementBlock164("svg", _hoisted_1164, _hoisted_3163);
+}
+var message_box_default = /* @__PURE__ */ export_helper_default(message_box_vue_vue_type_script_lang_default, [["render", _sfc_render164], ["__file", "message-box.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/message.vue?vue&type=script&lang.ts
+var message_vue_vue_type_script_lang_default = {
+ name: "Message"
+};
+
+// src/components/message.vue
+import { createElementVNode as _createElementVNode164, openBlock as _openBlock165, createElementBlock as _createElementBlock165 } from "vue";
+var _hoisted_1165 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2165 = /* @__PURE__ */ _createElementVNode164(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3164 = /* @__PURE__ */ _createElementVNode164(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_447 = [
+ _hoisted_2165,
+ _hoisted_3164
+];
+function _sfc_render165(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock165(), _createElementBlock165("svg", _hoisted_1165, _hoisted_447);
+}
+var message_default = /* @__PURE__ */ export_helper_default(message_vue_vue_type_script_lang_default, [["render", _sfc_render165], ["__file", "message.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mic.vue?vue&type=script&lang.ts
+var mic_vue_vue_type_script_lang_default = {
+ name: "Mic"
+};
+
+// src/components/mic.vue
+import { createElementVNode as _createElementVNode165, openBlock as _openBlock166, createElementBlock as _createElementBlock166 } from "vue";
+var _hoisted_1166 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2166 = /* @__PURE__ */ _createElementVNode165(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3165 = [
+ _hoisted_2166
+];
+function _sfc_render166(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock166(), _createElementBlock166("svg", _hoisted_1166, _hoisted_3165);
+}
+var mic_default = /* @__PURE__ */ export_helper_default(mic_vue_vue_type_script_lang_default, [["render", _sfc_render166], ["__file", "mic.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/microphone.vue?vue&type=script&lang.ts
+var microphone_vue_vue_type_script_lang_default = {
+ name: "Microphone"
+};
+
+// src/components/microphone.vue
+import { createElementVNode as _createElementVNode166, openBlock as _openBlock167, createElementBlock as _createElementBlock167 } from "vue";
+var _hoisted_1167 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2167 = /* @__PURE__ */ _createElementVNode166(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3166 = [
+ _hoisted_2167
+];
+function _sfc_render167(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock167(), _createElementBlock167("svg", _hoisted_1167, _hoisted_3166);
+}
+var microphone_default = /* @__PURE__ */ export_helper_default(microphone_vue_vue_type_script_lang_default, [["render", _sfc_render167], ["__file", "microphone.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/milk-tea.vue?vue&type=script&lang.ts
+var milk_tea_vue_vue_type_script_lang_default = {
+ name: "MilkTea"
+};
+
+// src/components/milk-tea.vue
+import { createElementVNode as _createElementVNode167, openBlock as _openBlock168, createElementBlock as _createElementBlock168 } from "vue";
+var _hoisted_1168 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2168 = /* @__PURE__ */ _createElementVNode167(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3167 = [
+ _hoisted_2168
+];
+function _sfc_render168(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock168(), _createElementBlock168("svg", _hoisted_1168, _hoisted_3167);
+}
+var milk_tea_default = /* @__PURE__ */ export_helper_default(milk_tea_vue_vue_type_script_lang_default, [["render", _sfc_render168], ["__file", "milk-tea.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/minus.vue?vue&type=script&lang.ts
+var minus_vue_vue_type_script_lang_default = {
+ name: "Minus"
+};
+
+// src/components/minus.vue
+import { createElementVNode as _createElementVNode168, openBlock as _openBlock169, createElementBlock as _createElementBlock169 } from "vue";
+var _hoisted_1169 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2169 = /* @__PURE__ */ _createElementVNode168(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3168 = [
+ _hoisted_2169
+];
+function _sfc_render169(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock169(), _createElementBlock169("svg", _hoisted_1169, _hoisted_3168);
+}
+var minus_default = /* @__PURE__ */ export_helper_default(minus_vue_vue_type_script_lang_default, [["render", _sfc_render169], ["__file", "minus.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/money.vue?vue&type=script&lang.ts
+var money_vue_vue_type_script_lang_default = {
+ name: "Money"
+};
+
+// src/components/money.vue
+import { createElementVNode as _createElementVNode169, openBlock as _openBlock170, createElementBlock as _createElementBlock170 } from "vue";
+var _hoisted_1170 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2170 = /* @__PURE__ */ _createElementVNode169(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3169 = /* @__PURE__ */ _createElementVNode169(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_448 = /* @__PURE__ */ _createElementVNode169(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_514 = [
+ _hoisted_2170,
+ _hoisted_3169,
+ _hoisted_448
+];
+function _sfc_render170(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock170(), _createElementBlock170("svg", _hoisted_1170, _hoisted_514);
+}
+var money_default = /* @__PURE__ */ export_helper_default(money_vue_vue_type_script_lang_default, [["render", _sfc_render170], ["__file", "money.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/monitor.vue?vue&type=script&lang.ts
+var monitor_vue_vue_type_script_lang_default = {
+ name: "Monitor"
+};
+
+// src/components/monitor.vue
+import { createElementVNode as _createElementVNode170, openBlock as _openBlock171, createElementBlock as _createElementBlock171 } from "vue";
+var _hoisted_1171 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2171 = /* @__PURE__ */ _createElementVNode170(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3170 = [
+ _hoisted_2171
+];
+function _sfc_render171(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock171(), _createElementBlock171("svg", _hoisted_1171, _hoisted_3170);
+}
+var monitor_default = /* @__PURE__ */ export_helper_default(monitor_vue_vue_type_script_lang_default, [["render", _sfc_render171], ["__file", "monitor.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/moon-night.vue?vue&type=script&lang.ts
+var moon_night_vue_vue_type_script_lang_default = {
+ name: "MoonNight"
+};
+
+// src/components/moon-night.vue
+import { createElementVNode as _createElementVNode171, openBlock as _openBlock172, createElementBlock as _createElementBlock172 } from "vue";
+var _hoisted_1172 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2172 = /* @__PURE__ */ _createElementVNode171(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3171 = /* @__PURE__ */ _createElementVNode171(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_449 = [
+ _hoisted_2172,
+ _hoisted_3171
+];
+function _sfc_render172(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock172(), _createElementBlock172("svg", _hoisted_1172, _hoisted_449);
+}
+var moon_night_default = /* @__PURE__ */ export_helper_default(moon_night_vue_vue_type_script_lang_default, [["render", _sfc_render172], ["__file", "moon-night.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/moon.vue?vue&type=script&lang.ts
+var moon_vue_vue_type_script_lang_default = {
+ name: "Moon"
+};
+
+// src/components/moon.vue
+import { createElementVNode as _createElementVNode172, openBlock as _openBlock173, createElementBlock as _createElementBlock173 } from "vue";
+var _hoisted_1173 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2173 = /* @__PURE__ */ _createElementVNode172(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3172 = [
+ _hoisted_2173
+];
+function _sfc_render173(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock173(), _createElementBlock173("svg", _hoisted_1173, _hoisted_3172);
+}
+var moon_default = /* @__PURE__ */ export_helper_default(moon_vue_vue_type_script_lang_default, [["render", _sfc_render173], ["__file", "moon.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/more-filled.vue?vue&type=script&lang.ts
+var more_filled_vue_vue_type_script_lang_default = {
+ name: "MoreFilled"
+};
+
+// src/components/more-filled.vue
+import { createElementVNode as _createElementVNode173, openBlock as _openBlock174, createElementBlock as _createElementBlock174 } from "vue";
+var _hoisted_1174 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2174 = /* @__PURE__ */ _createElementVNode173(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3173 = [
+ _hoisted_2174
+];
+function _sfc_render174(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock174(), _createElementBlock174("svg", _hoisted_1174, _hoisted_3173);
+}
+var more_filled_default = /* @__PURE__ */ export_helper_default(more_filled_vue_vue_type_script_lang_default, [["render", _sfc_render174], ["__file", "more-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/more.vue?vue&type=script&lang.ts
+var more_vue_vue_type_script_lang_default = {
+ name: "More"
+};
+
+// src/components/more.vue
+import { createElementVNode as _createElementVNode174, openBlock as _openBlock175, createElementBlock as _createElementBlock175 } from "vue";
+var _hoisted_1175 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2175 = /* @__PURE__ */ _createElementVNode174(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3174 = [
+ _hoisted_2175
+];
+function _sfc_render175(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock175(), _createElementBlock175("svg", _hoisted_1175, _hoisted_3174);
+}
+var more_default = /* @__PURE__ */ export_helper_default(more_vue_vue_type_script_lang_default, [["render", _sfc_render175], ["__file", "more.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mostly-cloudy.vue?vue&type=script&lang.ts
+var mostly_cloudy_vue_vue_type_script_lang_default = {
+ name: "MostlyCloudy"
+};
+
+// src/components/mostly-cloudy.vue
+import { createElementVNode as _createElementVNode175, openBlock as _openBlock176, createElementBlock as _createElementBlock176 } from "vue";
+var _hoisted_1176 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2176 = /* @__PURE__ */ _createElementVNode175(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3175 = [
+ _hoisted_2176
+];
+function _sfc_render176(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock176(), _createElementBlock176("svg", _hoisted_1176, _hoisted_3175);
+}
+var mostly_cloudy_default = /* @__PURE__ */ export_helper_default(mostly_cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render176], ["__file", "mostly-cloudy.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mouse.vue?vue&type=script&lang.ts
+var mouse_vue_vue_type_script_lang_default = {
+ name: "Mouse"
+};
+
+// src/components/mouse.vue
+import { createElementVNode as _createElementVNode176, openBlock as _openBlock177, createElementBlock as _createElementBlock177 } from "vue";
+var _hoisted_1177 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2177 = /* @__PURE__ */ _createElementVNode176(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3176 = /* @__PURE__ */ _createElementVNode176(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_450 = [
+ _hoisted_2177,
+ _hoisted_3176
+];
+function _sfc_render177(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock177(), _createElementBlock177("svg", _hoisted_1177, _hoisted_450);
+}
+var mouse_default = /* @__PURE__ */ export_helper_default(mouse_vue_vue_type_script_lang_default, [["render", _sfc_render177], ["__file", "mouse.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mug.vue?vue&type=script&lang.ts
+var mug_vue_vue_type_script_lang_default = {
+ name: "Mug"
+};
+
+// src/components/mug.vue
+import { createElementVNode as _createElementVNode177, openBlock as _openBlock178, createElementBlock as _createElementBlock178 } from "vue";
+var _hoisted_1178 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2178 = /* @__PURE__ */ _createElementVNode177(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3177 = [
+ _hoisted_2178
+];
+function _sfc_render178(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock178(), _createElementBlock178("svg", _hoisted_1178, _hoisted_3177);
+}
+var mug_default = /* @__PURE__ */ export_helper_default(mug_vue_vue_type_script_lang_default, [["render", _sfc_render178], ["__file", "mug.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mute-notification.vue?vue&type=script&lang.ts
+var mute_notification_vue_vue_type_script_lang_default = {
+ name: "MuteNotification"
+};
+
+// src/components/mute-notification.vue
+import { createElementVNode as _createElementVNode178, openBlock as _openBlock179, createElementBlock as _createElementBlock179 } from "vue";
+var _hoisted_1179 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2179 = /* @__PURE__ */ _createElementVNode178(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3178 = /* @__PURE__ */ _createElementVNode178(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_451 = [
+ _hoisted_2179,
+ _hoisted_3178
+];
+function _sfc_render179(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock179(), _createElementBlock179("svg", _hoisted_1179, _hoisted_451);
+}
+var mute_notification_default = /* @__PURE__ */ export_helper_default(mute_notification_vue_vue_type_script_lang_default, [["render", _sfc_render179], ["__file", "mute-notification.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mute.vue?vue&type=script&lang.ts
+var mute_vue_vue_type_script_lang_default = {
+ name: "Mute"
+};
+
+// src/components/mute.vue
+import { createElementVNode as _createElementVNode179, openBlock as _openBlock180, createElementBlock as _createElementBlock180 } from "vue";
+var _hoisted_1180 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2180 = /* @__PURE__ */ _createElementVNode179(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3179 = /* @__PURE__ */ _createElementVNode179(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_452 = [
+ _hoisted_2180,
+ _hoisted_3179
+];
+function _sfc_render180(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock180(), _createElementBlock180("svg", _hoisted_1180, _hoisted_452);
+}
+var mute_default = /* @__PURE__ */ export_helper_default(mute_vue_vue_type_script_lang_default, [["render", _sfc_render180], ["__file", "mute.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/no-smoking.vue?vue&type=script&lang.ts
+var no_smoking_vue_vue_type_script_lang_default = {
+ name: "NoSmoking"
+};
+
+// src/components/no-smoking.vue
+import { createElementVNode as _createElementVNode180, openBlock as _openBlock181, createElementBlock as _createElementBlock181 } from "vue";
+var _hoisted_1181 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2181 = /* @__PURE__ */ _createElementVNode180(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3180 = [
+ _hoisted_2181
+];
+function _sfc_render181(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock181(), _createElementBlock181("svg", _hoisted_1181, _hoisted_3180);
+}
+var no_smoking_default = /* @__PURE__ */ export_helper_default(no_smoking_vue_vue_type_script_lang_default, [["render", _sfc_render181], ["__file", "no-smoking.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/notebook.vue?vue&type=script&lang.ts
+var notebook_vue_vue_type_script_lang_default = {
+ name: "Notebook"
+};
+
+// src/components/notebook.vue
+import { createElementVNode as _createElementVNode181, openBlock as _openBlock182, createElementBlock as _createElementBlock182 } from "vue";
+var _hoisted_1182 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2182 = /* @__PURE__ */ _createElementVNode181(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3181 = /* @__PURE__ */ _createElementVNode181(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_453 = [
+ _hoisted_2182,
+ _hoisted_3181
+];
+function _sfc_render182(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock182(), _createElementBlock182("svg", _hoisted_1182, _hoisted_453);
+}
+var notebook_default = /* @__PURE__ */ export_helper_default(notebook_vue_vue_type_script_lang_default, [["render", _sfc_render182], ["__file", "notebook.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/notification.vue?vue&type=script&lang.ts
+var notification_vue_vue_type_script_lang_default = {
+ name: "Notification"
+};
+
+// src/components/notification.vue
+import { createElementVNode as _createElementVNode182, openBlock as _openBlock183, createElementBlock as _createElementBlock183 } from "vue";
+var _hoisted_1183 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2183 = /* @__PURE__ */ _createElementVNode182(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3182 = /* @__PURE__ */ _createElementVNode182(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_454 = [
+ _hoisted_2183,
+ _hoisted_3182
+];
+function _sfc_render183(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock183(), _createElementBlock183("svg", _hoisted_1183, _hoisted_454);
+}
+var notification_default = /* @__PURE__ */ export_helper_default(notification_vue_vue_type_script_lang_default, [["render", _sfc_render183], ["__file", "notification.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/odometer.vue?vue&type=script&lang.ts
+var odometer_vue_vue_type_script_lang_default = {
+ name: "Odometer"
+};
+
+// src/components/odometer.vue
+import { createElementVNode as _createElementVNode183, openBlock as _openBlock184, createElementBlock as _createElementBlock184 } from "vue";
+var _hoisted_1184 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2184 = /* @__PURE__ */ _createElementVNode183(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3183 = /* @__PURE__ */ _createElementVNode183(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_455 = /* @__PURE__ */ _createElementVNode183(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_515 = [
+ _hoisted_2184,
+ _hoisted_3183,
+ _hoisted_455
+];
+function _sfc_render184(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock184(), _createElementBlock184("svg", _hoisted_1184, _hoisted_515);
+}
+var odometer_default = /* @__PURE__ */ export_helper_default(odometer_vue_vue_type_script_lang_default, [["render", _sfc_render184], ["__file", "odometer.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/office-building.vue?vue&type=script&lang.ts
+var office_building_vue_vue_type_script_lang_default = {
+ name: "OfficeBuilding"
+};
+
+// src/components/office-building.vue
+import { createElementVNode as _createElementVNode184, openBlock as _openBlock185, createElementBlock as _createElementBlock185 } from "vue";
+var _hoisted_1185 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2185 = /* @__PURE__ */ _createElementVNode184(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3184 = /* @__PURE__ */ _createElementVNode184(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_456 = /* @__PURE__ */ _createElementVNode184(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_516 = [
+ _hoisted_2185,
+ _hoisted_3184,
+ _hoisted_456
+];
+function _sfc_render185(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock185(), _createElementBlock185("svg", _hoisted_1185, _hoisted_516);
+}
+var office_building_default = /* @__PURE__ */ export_helper_default(office_building_vue_vue_type_script_lang_default, [["render", _sfc_render185], ["__file", "office-building.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/open.vue?vue&type=script&lang.ts
+var open_vue_vue_type_script_lang_default = {
+ name: "Open"
+};
+
+// src/components/open.vue
+import { createElementVNode as _createElementVNode185, openBlock as _openBlock186, createElementBlock as _createElementBlock186 } from "vue";
+var _hoisted_1186 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2186 = /* @__PURE__ */ _createElementVNode185(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3185 = /* @__PURE__ */ _createElementVNode185(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_457 = [
+ _hoisted_2186,
+ _hoisted_3185
+];
+function _sfc_render186(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock186(), _createElementBlock186("svg", _hoisted_1186, _hoisted_457);
+}
+var open_default = /* @__PURE__ */ export_helper_default(open_vue_vue_type_script_lang_default, [["render", _sfc_render186], ["__file", "open.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/operation.vue?vue&type=script&lang.ts
+var operation_vue_vue_type_script_lang_default = {
+ name: "Operation"
+};
+
+// src/components/operation.vue
+import { createElementVNode as _createElementVNode186, openBlock as _openBlock187, createElementBlock as _createElementBlock187 } from "vue";
+var _hoisted_1187 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2187 = /* @__PURE__ */ _createElementVNode186(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3186 = [
+ _hoisted_2187
+];
+function _sfc_render187(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock187(), _createElementBlock187("svg", _hoisted_1187, _hoisted_3186);
+}
+var operation_default = /* @__PURE__ */ export_helper_default(operation_vue_vue_type_script_lang_default, [["render", _sfc_render187], ["__file", "operation.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/opportunity.vue?vue&type=script&lang.ts
+var opportunity_vue_vue_type_script_lang_default = {
+ name: "Opportunity"
+};
+
+// src/components/opportunity.vue
+import { createElementVNode as _createElementVNode187, openBlock as _openBlock188, createElementBlock as _createElementBlock188 } from "vue";
+var _hoisted_1188 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2188 = /* @__PURE__ */ _createElementVNode187(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3187 = [
+ _hoisted_2188
+];
+function _sfc_render188(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock188(), _createElementBlock188("svg", _hoisted_1188, _hoisted_3187);
+}
+var opportunity_default = /* @__PURE__ */ export_helper_default(opportunity_vue_vue_type_script_lang_default, [["render", _sfc_render188], ["__file", "opportunity.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/orange.vue?vue&type=script&lang.ts
+var orange_vue_vue_type_script_lang_default = {
+ name: "Orange"
+};
+
+// src/components/orange.vue
+import { createElementVNode as _createElementVNode188, openBlock as _openBlock189, createElementBlock as _createElementBlock189 } from "vue";
+var _hoisted_1189 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2189 = /* @__PURE__ */ _createElementVNode188(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3188 = [
+ _hoisted_2189
+];
+function _sfc_render189(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock189(), _createElementBlock189("svg", _hoisted_1189, _hoisted_3188);
+}
+var orange_default = /* @__PURE__ */ export_helper_default(orange_vue_vue_type_script_lang_default, [["render", _sfc_render189], ["__file", "orange.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/paperclip.vue?vue&type=script&lang.ts
+var paperclip_vue_vue_type_script_lang_default = {
+ name: "Paperclip"
+};
+
+// src/components/paperclip.vue
+import { createElementVNode as _createElementVNode189, openBlock as _openBlock190, createElementBlock as _createElementBlock190 } from "vue";
+var _hoisted_1190 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2190 = /* @__PURE__ */ _createElementVNode189(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3189 = [
+ _hoisted_2190
+];
+function _sfc_render190(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock190(), _createElementBlock190("svg", _hoisted_1190, _hoisted_3189);
+}
+var paperclip_default = /* @__PURE__ */ export_helper_default(paperclip_vue_vue_type_script_lang_default, [["render", _sfc_render190], ["__file", "paperclip.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/partly-cloudy.vue?vue&type=script&lang.ts
+var partly_cloudy_vue_vue_type_script_lang_default = {
+ name: "PartlyCloudy"
+};
+
+// src/components/partly-cloudy.vue
+import { createElementVNode as _createElementVNode190, openBlock as _openBlock191, createElementBlock as _createElementBlock191 } from "vue";
+var _hoisted_1191 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2191 = /* @__PURE__ */ _createElementVNode190(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3190 = /* @__PURE__ */ _createElementVNode190(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_458 = [
+ _hoisted_2191,
+ _hoisted_3190
+];
+function _sfc_render191(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock191(), _createElementBlock191("svg", _hoisted_1191, _hoisted_458);
+}
+var partly_cloudy_default = /* @__PURE__ */ export_helper_default(partly_cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render191], ["__file", "partly-cloudy.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pear.vue?vue&type=script&lang.ts
+var pear_vue_vue_type_script_lang_default = {
+ name: "Pear"
+};
+
+// src/components/pear.vue
+import { createElementVNode as _createElementVNode191, openBlock as _openBlock192, createElementBlock as _createElementBlock192 } from "vue";
+var _hoisted_1192 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2192 = /* @__PURE__ */ _createElementVNode191(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3191 = [
+ _hoisted_2192
+];
+function _sfc_render192(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock192(), _createElementBlock192("svg", _hoisted_1192, _hoisted_3191);
+}
+var pear_default = /* @__PURE__ */ export_helper_default(pear_vue_vue_type_script_lang_default, [["render", _sfc_render192], ["__file", "pear.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/phone-filled.vue?vue&type=script&lang.ts
+var phone_filled_vue_vue_type_script_lang_default = {
+ name: "PhoneFilled"
+};
+
+// src/components/phone-filled.vue
+import { createElementVNode as _createElementVNode192, openBlock as _openBlock193, createElementBlock as _createElementBlock193 } from "vue";
+var _hoisted_1193 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2193 = /* @__PURE__ */ _createElementVNode192(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3192 = [
+ _hoisted_2193
+];
+function _sfc_render193(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock193(), _createElementBlock193("svg", _hoisted_1193, _hoisted_3192);
+}
+var phone_filled_default = /* @__PURE__ */ export_helper_default(phone_filled_vue_vue_type_script_lang_default, [["render", _sfc_render193], ["__file", "phone-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/phone.vue?vue&type=script&lang.ts
+var phone_vue_vue_type_script_lang_default = {
+ name: "Phone"
+};
+
+// src/components/phone.vue
+import { createElementVNode as _createElementVNode193, openBlock as _openBlock194, createElementBlock as _createElementBlock194 } from "vue";
+var _hoisted_1194 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2194 = /* @__PURE__ */ _createElementVNode193(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3193 = [
+ _hoisted_2194
+];
+function _sfc_render194(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock194(), _createElementBlock194("svg", _hoisted_1194, _hoisted_3193);
+}
+var phone_default = /* @__PURE__ */ export_helper_default(phone_vue_vue_type_script_lang_default, [["render", _sfc_render194], ["__file", "phone.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture-filled.vue?vue&type=script&lang.ts
+var picture_filled_vue_vue_type_script_lang_default = {
+ name: "PictureFilled"
+};
+
+// src/components/picture-filled.vue
+import { createElementVNode as _createElementVNode194, openBlock as _openBlock195, createElementBlock as _createElementBlock195 } from "vue";
+var _hoisted_1195 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2195 = /* @__PURE__ */ _createElementVNode194(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3194 = [
+ _hoisted_2195
+];
+function _sfc_render195(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock195(), _createElementBlock195("svg", _hoisted_1195, _hoisted_3194);
+}
+var picture_filled_default = /* @__PURE__ */ export_helper_default(picture_filled_vue_vue_type_script_lang_default, [["render", _sfc_render195], ["__file", "picture-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture-rounded.vue?vue&type=script&lang.ts
+var picture_rounded_vue_vue_type_script_lang_default = {
+ name: "PictureRounded"
+};
+
+// src/components/picture-rounded.vue
+import { createElementVNode as _createElementVNode195, openBlock as _openBlock196, createElementBlock as _createElementBlock196 } from "vue";
+var _hoisted_1196 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2196 = /* @__PURE__ */ _createElementVNode195(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3195 = /* @__PURE__ */ _createElementVNode195(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_459 = [
+ _hoisted_2196,
+ _hoisted_3195
+];
+function _sfc_render196(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock196(), _createElementBlock196("svg", _hoisted_1196, _hoisted_459);
+}
+var picture_rounded_default = /* @__PURE__ */ export_helper_default(picture_rounded_vue_vue_type_script_lang_default, [["render", _sfc_render196], ["__file", "picture-rounded.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture.vue?vue&type=script&lang.ts
+var picture_vue_vue_type_script_lang_default = {
+ name: "Picture"
+};
+
+// src/components/picture.vue
+import { createElementVNode as _createElementVNode196, openBlock as _openBlock197, createElementBlock as _createElementBlock197 } from "vue";
+var _hoisted_1197 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2197 = /* @__PURE__ */ _createElementVNode196(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3196 = /* @__PURE__ */ _createElementVNode196(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_460 = [
+ _hoisted_2197,
+ _hoisted_3196
+];
+function _sfc_render197(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock197(), _createElementBlock197("svg", _hoisted_1197, _hoisted_460);
+}
+var picture_default = /* @__PURE__ */ export_helper_default(picture_vue_vue_type_script_lang_default, [["render", _sfc_render197], ["__file", "picture.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pie-chart.vue?vue&type=script&lang.ts
+var pie_chart_vue_vue_type_script_lang_default = {
+ name: "PieChart"
+};
+
+// src/components/pie-chart.vue
+import { createElementVNode as _createElementVNode197, openBlock as _openBlock198, createElementBlock as _createElementBlock198 } from "vue";
+var _hoisted_1198 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2198 = /* @__PURE__ */ _createElementVNode197(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3197 = /* @__PURE__ */ _createElementVNode197(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_461 = [
+ _hoisted_2198,
+ _hoisted_3197
+];
+function _sfc_render198(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock198(), _createElementBlock198("svg", _hoisted_1198, _hoisted_461);
+}
+var pie_chart_default = /* @__PURE__ */ export_helper_default(pie_chart_vue_vue_type_script_lang_default, [["render", _sfc_render198], ["__file", "pie-chart.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/place.vue?vue&type=script&lang.ts
+var place_vue_vue_type_script_lang_default = {
+ name: "Place"
+};
+
+// src/components/place.vue
+import { createElementVNode as _createElementVNode198, openBlock as _openBlock199, createElementBlock as _createElementBlock199 } from "vue";
+var _hoisted_1199 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2199 = /* @__PURE__ */ _createElementVNode198(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3198 = /* @__PURE__ */ _createElementVNode198(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_462 = /* @__PURE__ */ _createElementVNode198(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_517 = [
+ _hoisted_2199,
+ _hoisted_3198,
+ _hoisted_462
+];
+function _sfc_render199(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock199(), _createElementBlock199("svg", _hoisted_1199, _hoisted_517);
+}
+var place_default = /* @__PURE__ */ export_helper_default(place_vue_vue_type_script_lang_default, [["render", _sfc_render199], ["__file", "place.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/platform.vue?vue&type=script&lang.ts
+var platform_vue_vue_type_script_lang_default = {
+ name: "Platform"
+};
+
+// src/components/platform.vue
+import { createElementVNode as _createElementVNode199, openBlock as _openBlock200, createElementBlock as _createElementBlock200 } from "vue";
+var _hoisted_1200 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2200 = /* @__PURE__ */ _createElementVNode199(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3199 = [
+ _hoisted_2200
+];
+function _sfc_render200(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock200(), _createElementBlock200("svg", _hoisted_1200, _hoisted_3199);
+}
+var platform_default = /* @__PURE__ */ export_helper_default(platform_vue_vue_type_script_lang_default, [["render", _sfc_render200], ["__file", "platform.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/plus.vue?vue&type=script&lang.ts
+var plus_vue_vue_type_script_lang_default = {
+ name: "Plus"
+};
+
+// src/components/plus.vue
+import { createElementVNode as _createElementVNode200, openBlock as _openBlock201, createElementBlock as _createElementBlock201 } from "vue";
+var _hoisted_1201 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2201 = /* @__PURE__ */ _createElementVNode200(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3200 = [
+ _hoisted_2201
+];
+function _sfc_render201(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock201(), _createElementBlock201("svg", _hoisted_1201, _hoisted_3200);
+}
+var plus_default = /* @__PURE__ */ export_helper_default(plus_vue_vue_type_script_lang_default, [["render", _sfc_render201], ["__file", "plus.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pointer.vue?vue&type=script&lang.ts
+var pointer_vue_vue_type_script_lang_default = {
+ name: "Pointer"
+};
+
+// src/components/pointer.vue
+import { createElementVNode as _createElementVNode201, openBlock as _openBlock202, createElementBlock as _createElementBlock202 } from "vue";
+var _hoisted_1202 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2202 = /* @__PURE__ */ _createElementVNode201(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3201 = [
+ _hoisted_2202
+];
+function _sfc_render202(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock202(), _createElementBlock202("svg", _hoisted_1202, _hoisted_3201);
+}
+var pointer_default = /* @__PURE__ */ export_helper_default(pointer_vue_vue_type_script_lang_default, [["render", _sfc_render202], ["__file", "pointer.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/position.vue?vue&type=script&lang.ts
+var position_vue_vue_type_script_lang_default = {
+ name: "Position"
+};
+
+// src/components/position.vue
+import { createElementVNode as _createElementVNode202, openBlock as _openBlock203, createElementBlock as _createElementBlock203 } from "vue";
+var _hoisted_1203 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2203 = /* @__PURE__ */ _createElementVNode202(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3202 = [
+ _hoisted_2203
+];
+function _sfc_render203(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock203(), _createElementBlock203("svg", _hoisted_1203, _hoisted_3202);
+}
+var position_default = /* @__PURE__ */ export_helper_default(position_vue_vue_type_script_lang_default, [["render", _sfc_render203], ["__file", "position.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/postcard.vue?vue&type=script&lang.ts
+var postcard_vue_vue_type_script_lang_default = {
+ name: "Postcard"
+};
+
+// src/components/postcard.vue
+import { createElementVNode as _createElementVNode203, openBlock as _openBlock204, createElementBlock as _createElementBlock204 } from "vue";
+var _hoisted_1204 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2204 = /* @__PURE__ */ _createElementVNode203(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3203 = /* @__PURE__ */ _createElementVNode203(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_463 = [
+ _hoisted_2204,
+ _hoisted_3203
+];
+function _sfc_render204(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock204(), _createElementBlock204("svg", _hoisted_1204, _hoisted_463);
+}
+var postcard_default = /* @__PURE__ */ export_helper_default(postcard_vue_vue_type_script_lang_default, [["render", _sfc_render204], ["__file", "postcard.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pouring.vue?vue&type=script&lang.ts
+var pouring_vue_vue_type_script_lang_default = {
+ name: "Pouring"
+};
+
+// src/components/pouring.vue
+import { createElementVNode as _createElementVNode204, openBlock as _openBlock205, createElementBlock as _createElementBlock205 } from "vue";
+var _hoisted_1205 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2205 = /* @__PURE__ */ _createElementVNode204(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3204 = [
+ _hoisted_2205
+];
+function _sfc_render205(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock205(), _createElementBlock205("svg", _hoisted_1205, _hoisted_3204);
+}
+var pouring_default = /* @__PURE__ */ export_helper_default(pouring_vue_vue_type_script_lang_default, [["render", _sfc_render205], ["__file", "pouring.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/present.vue?vue&type=script&lang.ts
+var present_vue_vue_type_script_lang_default = {
+ name: "Present"
+};
+
+// src/components/present.vue
+import { createElementVNode as _createElementVNode205, openBlock as _openBlock206, createElementBlock as _createElementBlock206 } from "vue";
+var _hoisted_1206 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2206 = /* @__PURE__ */ _createElementVNode205(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3205 = /* @__PURE__ */ _createElementVNode205(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_464 = /* @__PURE__ */ _createElementVNode205(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_518 = /* @__PURE__ */ _createElementVNode205(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_6 = [
+ _hoisted_2206,
+ _hoisted_3205,
+ _hoisted_464,
+ _hoisted_518
+];
+function _sfc_render206(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock206(), _createElementBlock206("svg", _hoisted_1206, _hoisted_6);
+}
+var present_default = /* @__PURE__ */ export_helper_default(present_vue_vue_type_script_lang_default, [["render", _sfc_render206], ["__file", "present.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/price-tag.vue?vue&type=script&lang.ts
+var price_tag_vue_vue_type_script_lang_default = {
+ name: "PriceTag"
+};
+
+// src/components/price-tag.vue
+import { createElementVNode as _createElementVNode206, openBlock as _openBlock207, createElementBlock as _createElementBlock207 } from "vue";
+var _hoisted_1207 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2207 = /* @__PURE__ */ _createElementVNode206(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3206 = /* @__PURE__ */ _createElementVNode206(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_465 = [
+ _hoisted_2207,
+ _hoisted_3206
+];
+function _sfc_render207(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock207(), _createElementBlock207("svg", _hoisted_1207, _hoisted_465);
+}
+var price_tag_default = /* @__PURE__ */ export_helper_default(price_tag_vue_vue_type_script_lang_default, [["render", _sfc_render207], ["__file", "price-tag.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/printer.vue?vue&type=script&lang.ts
+var printer_vue_vue_type_script_lang_default = {
+ name: "Printer"
+};
+
+// src/components/printer.vue
+import { createElementVNode as _createElementVNode207, openBlock as _openBlock208, createElementBlock as _createElementBlock208 } from "vue";
+var _hoisted_1208 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2208 = /* @__PURE__ */ _createElementVNode207(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3207 = [
+ _hoisted_2208
+];
+function _sfc_render208(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock208(), _createElementBlock208("svg", _hoisted_1208, _hoisted_3207);
+}
+var printer_default = /* @__PURE__ */ export_helper_default(printer_vue_vue_type_script_lang_default, [["render", _sfc_render208], ["__file", "printer.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/promotion.vue?vue&type=script&lang.ts
+var promotion_vue_vue_type_script_lang_default = {
+ name: "Promotion"
+};
+
+// src/components/promotion.vue
+import { createElementVNode as _createElementVNode208, openBlock as _openBlock209, createElementBlock as _createElementBlock209 } from "vue";
+var _hoisted_1209 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2209 = /* @__PURE__ */ _createElementVNode208(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3208 = [
+ _hoisted_2209
+];
+function _sfc_render209(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock209(), _createElementBlock209("svg", _hoisted_1209, _hoisted_3208);
+}
+var promotion_default = /* @__PURE__ */ export_helper_default(promotion_vue_vue_type_script_lang_default, [["render", _sfc_render209], ["__file", "promotion.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/quartz-watch.vue?vue&type=script&lang.ts
+var quartz_watch_vue_vue_type_script_lang_default = {
+ name: "QuartzWatch"
+};
+
+// src/components/quartz-watch.vue
+import { createElementVNode as _createElementVNode209, openBlock as _openBlock210, createElementBlock as _createElementBlock210 } from "vue";
+var _hoisted_1210 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2210 = /* @__PURE__ */ _createElementVNode209(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3209 = /* @__PURE__ */ _createElementVNode209(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_466 = /* @__PURE__ */ _createElementVNode209(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_519 = [
+ _hoisted_2210,
+ _hoisted_3209,
+ _hoisted_466
+];
+function _sfc_render210(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock210(), _createElementBlock210("svg", _hoisted_1210, _hoisted_519);
+}
+var quartz_watch_default = /* @__PURE__ */ export_helper_default(quartz_watch_vue_vue_type_script_lang_default, [["render", _sfc_render210], ["__file", "quartz-watch.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/question-filled.vue?vue&type=script&lang.ts
+var question_filled_vue_vue_type_script_lang_default = {
+ name: "QuestionFilled"
+};
+
+// src/components/question-filled.vue
+import { createElementVNode as _createElementVNode210, openBlock as _openBlock211, createElementBlock as _createElementBlock211 } from "vue";
+var _hoisted_1211 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2211 = /* @__PURE__ */ _createElementVNode210(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3210 = [
+ _hoisted_2211
+];
+function _sfc_render211(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock211(), _createElementBlock211("svg", _hoisted_1211, _hoisted_3210);
+}
+var question_filled_default = /* @__PURE__ */ export_helper_default(question_filled_vue_vue_type_script_lang_default, [["render", _sfc_render211], ["__file", "question-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/rank.vue?vue&type=script&lang.ts
+var rank_vue_vue_type_script_lang_default = {
+ name: "Rank"
+};
+
+// src/components/rank.vue
+import { createElementVNode as _createElementVNode211, openBlock as _openBlock212, createElementBlock as _createElementBlock212 } from "vue";
+var _hoisted_1212 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2212 = /* @__PURE__ */ _createElementVNode211(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3211 = [
+ _hoisted_2212
+];
+function _sfc_render212(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock212(), _createElementBlock212("svg", _hoisted_1212, _hoisted_3211);
+}
+var rank_default = /* @__PURE__ */ export_helper_default(rank_vue_vue_type_script_lang_default, [["render", _sfc_render212], ["__file", "rank.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/reading-lamp.vue?vue&type=script&lang.ts
+var reading_lamp_vue_vue_type_script_lang_default = {
+ name: "ReadingLamp"
+};
+
+// src/components/reading-lamp.vue
+import { createElementVNode as _createElementVNode212, openBlock as _openBlock213, createElementBlock as _createElementBlock213 } from "vue";
+var _hoisted_1213 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2213 = /* @__PURE__ */ _createElementVNode212(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3212 = /* @__PURE__ */ _createElementVNode212(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_467 = [
+ _hoisted_2213,
+ _hoisted_3212
+];
+function _sfc_render213(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock213(), _createElementBlock213("svg", _hoisted_1213, _hoisted_467);
+}
+var reading_lamp_default = /* @__PURE__ */ export_helper_default(reading_lamp_vue_vue_type_script_lang_default, [["render", _sfc_render213], ["__file", "reading-lamp.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/reading.vue?vue&type=script&lang.ts
+var reading_vue_vue_type_script_lang_default = {
+ name: "Reading"
+};
+
+// src/components/reading.vue
+import { createElementVNode as _createElementVNode213, openBlock as _openBlock214, createElementBlock as _createElementBlock214 } from "vue";
+var _hoisted_1214 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2214 = /* @__PURE__ */ _createElementVNode213(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3213 = /* @__PURE__ */ _createElementVNode213(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 192h64v704h-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_468 = [
+ _hoisted_2214,
+ _hoisted_3213
+];
+function _sfc_render214(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock214(), _createElementBlock214("svg", _hoisted_1214, _hoisted_468);
+}
+var reading_default = /* @__PURE__ */ export_helper_default(reading_vue_vue_type_script_lang_default, [["render", _sfc_render214], ["__file", "reading.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh-left.vue?vue&type=script&lang.ts
+var refresh_left_vue_vue_type_script_lang_default = {
+ name: "RefreshLeft"
+};
+
+// src/components/refresh-left.vue
+import { createElementVNode as _createElementVNode214, openBlock as _openBlock215, createElementBlock as _createElementBlock215 } from "vue";
+var _hoisted_1215 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2215 = /* @__PURE__ */ _createElementVNode214(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3214 = [
+ _hoisted_2215
+];
+function _sfc_render215(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock215(), _createElementBlock215("svg", _hoisted_1215, _hoisted_3214);
+}
+var refresh_left_default = /* @__PURE__ */ export_helper_default(refresh_left_vue_vue_type_script_lang_default, [["render", _sfc_render215], ["__file", "refresh-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh-right.vue?vue&type=script&lang.ts
+var refresh_right_vue_vue_type_script_lang_default = {
+ name: "RefreshRight"
+};
+
+// src/components/refresh-right.vue
+import { createElementVNode as _createElementVNode215, openBlock as _openBlock216, createElementBlock as _createElementBlock216 } from "vue";
+var _hoisted_1216 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2216 = /* @__PURE__ */ _createElementVNode215(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3215 = [
+ _hoisted_2216
+];
+function _sfc_render216(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock216(), _createElementBlock216("svg", _hoisted_1216, _hoisted_3215);
+}
+var refresh_right_default = /* @__PURE__ */ export_helper_default(refresh_right_vue_vue_type_script_lang_default, [["render", _sfc_render216], ["__file", "refresh-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh.vue?vue&type=script&lang.ts
+var refresh_vue_vue_type_script_lang_default = {
+ name: "Refresh"
+};
+
+// src/components/refresh.vue
+import { createElementVNode as _createElementVNode216, openBlock as _openBlock217, createElementBlock as _createElementBlock217 } from "vue";
+var _hoisted_1217 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2217 = /* @__PURE__ */ _createElementVNode216(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3216 = [
+ _hoisted_2217
+];
+function _sfc_render217(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock217(), _createElementBlock217("svg", _hoisted_1217, _hoisted_3216);
+}
+var refresh_default = /* @__PURE__ */ export_helper_default(refresh_vue_vue_type_script_lang_default, [["render", _sfc_render217], ["__file", "refresh.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refrigerator.vue?vue&type=script&lang.ts
+var refrigerator_vue_vue_type_script_lang_default = {
+ name: "Refrigerator"
+};
+
+// src/components/refrigerator.vue
+import { createElementVNode as _createElementVNode217, openBlock as _openBlock218, createElementBlock as _createElementBlock218 } from "vue";
+var _hoisted_1218 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2218 = /* @__PURE__ */ _createElementVNode217(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3217 = [
+ _hoisted_2218
+];
+function _sfc_render218(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock218(), _createElementBlock218("svg", _hoisted_1218, _hoisted_3217);
+}
+var refrigerator_default = /* @__PURE__ */ export_helper_default(refrigerator_vue_vue_type_script_lang_default, [["render", _sfc_render218], ["__file", "refrigerator.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/remove-filled.vue?vue&type=script&lang.ts
+var remove_filled_vue_vue_type_script_lang_default = {
+ name: "RemoveFilled"
+};
+
+// src/components/remove-filled.vue
+import { createElementVNode as _createElementVNode218, openBlock as _openBlock219, createElementBlock as _createElementBlock219 } from "vue";
+var _hoisted_1219 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2219 = /* @__PURE__ */ _createElementVNode218(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3218 = [
+ _hoisted_2219
+];
+function _sfc_render219(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock219(), _createElementBlock219("svg", _hoisted_1219, _hoisted_3218);
+}
+var remove_filled_default = /* @__PURE__ */ export_helper_default(remove_filled_vue_vue_type_script_lang_default, [["render", _sfc_render219], ["__file", "remove-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/remove.vue?vue&type=script&lang.ts
+var remove_vue_vue_type_script_lang_default = {
+ name: "Remove"
+};
+
+// src/components/remove.vue
+import { createElementVNode as _createElementVNode219, openBlock as _openBlock220, createElementBlock as _createElementBlock220 } from "vue";
+var _hoisted_1220 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2220 = /* @__PURE__ */ _createElementVNode219(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3219 = /* @__PURE__ */ _createElementVNode219(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_469 = [
+ _hoisted_2220,
+ _hoisted_3219
+];
+function _sfc_render220(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock220(), _createElementBlock220("svg", _hoisted_1220, _hoisted_469);
+}
+var remove_default = /* @__PURE__ */ export_helper_default(remove_vue_vue_type_script_lang_default, [["render", _sfc_render220], ["__file", "remove.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/right.vue?vue&type=script&lang.ts
+var right_vue_vue_type_script_lang_default = {
+ name: "Right"
+};
+
+// src/components/right.vue
+import { createElementVNode as _createElementVNode220, openBlock as _openBlock221, createElementBlock as _createElementBlock221 } from "vue";
+var _hoisted_1221 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2221 = /* @__PURE__ */ _createElementVNode220(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3220 = [
+ _hoisted_2221
+];
+function _sfc_render221(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock221(), _createElementBlock221("svg", _hoisted_1221, _hoisted_3220);
+}
+var right_default = /* @__PURE__ */ export_helper_default(right_vue_vue_type_script_lang_default, [["render", _sfc_render221], ["__file", "right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/scale-to-original.vue?vue&type=script&lang.ts
+var scale_to_original_vue_vue_type_script_lang_default = {
+ name: "ScaleToOriginal"
+};
+
+// src/components/scale-to-original.vue
+import { createElementVNode as _createElementVNode221, openBlock as _openBlock222, createElementBlock as _createElementBlock222 } from "vue";
+var _hoisted_1222 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2222 = /* @__PURE__ */ _createElementVNode221(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3221 = [
+ _hoisted_2222
+];
+function _sfc_render222(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock222(), _createElementBlock222("svg", _hoisted_1222, _hoisted_3221);
+}
+var scale_to_original_default = /* @__PURE__ */ export_helper_default(scale_to_original_vue_vue_type_script_lang_default, [["render", _sfc_render222], ["__file", "scale-to-original.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/school.vue?vue&type=script&lang.ts
+var school_vue_vue_type_script_lang_default = {
+ name: "School"
+};
+
+// src/components/school.vue
+import { createElementVNode as _createElementVNode222, openBlock as _openBlock223, createElementBlock as _createElementBlock223 } from "vue";
+var _hoisted_1223 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2223 = /* @__PURE__ */ _createElementVNode222(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3222 = /* @__PURE__ */ _createElementVNode222(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M64 832h896v64H64zm256-640h128v96H320z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_470 = /* @__PURE__ */ _createElementVNode222(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_520 = [
+ _hoisted_2223,
+ _hoisted_3222,
+ _hoisted_470
+];
+function _sfc_render223(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock223(), _createElementBlock223("svg", _hoisted_1223, _hoisted_520);
+}
+var school_default = /* @__PURE__ */ export_helper_default(school_vue_vue_type_script_lang_default, [["render", _sfc_render223], ["__file", "school.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/scissor.vue?vue&type=script&lang.ts
+var scissor_vue_vue_type_script_lang_default = {
+ name: "Scissor"
+};
+
+// src/components/scissor.vue
+import { createElementVNode as _createElementVNode223, openBlock as _openBlock224, createElementBlock as _createElementBlock224 } from "vue";
+var _hoisted_1224 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2224 = /* @__PURE__ */ _createElementVNode223(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3223 = [
+ _hoisted_2224
+];
+function _sfc_render224(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock224(), _createElementBlock224("svg", _hoisted_1224, _hoisted_3223);
+}
+var scissor_default = /* @__PURE__ */ export_helper_default(scissor_vue_vue_type_script_lang_default, [["render", _sfc_render224], ["__file", "scissor.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/search.vue?vue&type=script&lang.ts
+var search_vue_vue_type_script_lang_default = {
+ name: "Search"
+};
+
+// src/components/search.vue
+import { createElementVNode as _createElementVNode224, openBlock as _openBlock225, createElementBlock as _createElementBlock225 } from "vue";
+var _hoisted_1225 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2225 = /* @__PURE__ */ _createElementVNode224(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3224 = [
+ _hoisted_2225
+];
+function _sfc_render225(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock225(), _createElementBlock225("svg", _hoisted_1225, _hoisted_3224);
+}
+var search_default = /* @__PURE__ */ export_helper_default(search_vue_vue_type_script_lang_default, [["render", _sfc_render225], ["__file", "search.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/select.vue?vue&type=script&lang.ts
+var select_vue_vue_type_script_lang_default = {
+ name: "Select"
+};
+
+// src/components/select.vue
+import { createElementVNode as _createElementVNode225, openBlock as _openBlock226, createElementBlock as _createElementBlock226 } from "vue";
+var _hoisted_1226 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2226 = /* @__PURE__ */ _createElementVNode225(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3225 = [
+ _hoisted_2226
+];
+function _sfc_render226(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock226(), _createElementBlock226("svg", _hoisted_1226, _hoisted_3225);
+}
+var select_default = /* @__PURE__ */ export_helper_default(select_vue_vue_type_script_lang_default, [["render", _sfc_render226], ["__file", "select.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sell.vue?vue&type=script&lang.ts
+var sell_vue_vue_type_script_lang_default = {
+ name: "Sell"
+};
+
+// src/components/sell.vue
+import { createElementVNode as _createElementVNode226, openBlock as _openBlock227, createElementBlock as _createElementBlock227 } from "vue";
+var _hoisted_1227 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2227 = /* @__PURE__ */ _createElementVNode226(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3226 = [
+ _hoisted_2227
+];
+function _sfc_render227(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock227(), _createElementBlock227("svg", _hoisted_1227, _hoisted_3226);
+}
+var sell_default = /* @__PURE__ */ export_helper_default(sell_vue_vue_type_script_lang_default, [["render", _sfc_render227], ["__file", "sell.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/semi-select.vue?vue&type=script&lang.ts
+var semi_select_vue_vue_type_script_lang_default = {
+ name: "SemiSelect"
+};
+
+// src/components/semi-select.vue
+import { createElementVNode as _createElementVNode227, openBlock as _openBlock228, createElementBlock as _createElementBlock228 } from "vue";
+var _hoisted_1228 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2228 = /* @__PURE__ */ _createElementVNode227(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3227 = [
+ _hoisted_2228
+];
+function _sfc_render228(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock228(), _createElementBlock228("svg", _hoisted_1228, _hoisted_3227);
+}
+var semi_select_default = /* @__PURE__ */ export_helper_default(semi_select_vue_vue_type_script_lang_default, [["render", _sfc_render228], ["__file", "semi-select.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/service.vue?vue&type=script&lang.ts
+var service_vue_vue_type_script_lang_default = {
+ name: "Service"
+};
+
+// src/components/service.vue
+import { createElementVNode as _createElementVNode228, openBlock as _openBlock229, createElementBlock as _createElementBlock229 } from "vue";
+var _hoisted_1229 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2229 = /* @__PURE__ */ _createElementVNode228(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3228 = [
+ _hoisted_2229
+];
+function _sfc_render229(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock229(), _createElementBlock229("svg", _hoisted_1229, _hoisted_3228);
+}
+var service_default = /* @__PURE__ */ export_helper_default(service_vue_vue_type_script_lang_default, [["render", _sfc_render229], ["__file", "service.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/set-up.vue?vue&type=script&lang.ts
+var set_up_vue_vue_type_script_lang_default = {
+ name: "SetUp"
+};
+
+// src/components/set-up.vue
+import { createElementVNode as _createElementVNode229, openBlock as _openBlock230, createElementBlock as _createElementBlock230 } from "vue";
+var _hoisted_1230 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2230 = /* @__PURE__ */ _createElementVNode229(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3229 = /* @__PURE__ */ _createElementVNode229(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_471 = /* @__PURE__ */ _createElementVNode229(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_521 = /* @__PURE__ */ _createElementVNode229(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_62 = [
+ _hoisted_2230,
+ _hoisted_3229,
+ _hoisted_471,
+ _hoisted_521
+];
+function _sfc_render230(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock230(), _createElementBlock230("svg", _hoisted_1230, _hoisted_62);
+}
+var set_up_default = /* @__PURE__ */ export_helper_default(set_up_vue_vue_type_script_lang_default, [["render", _sfc_render230], ["__file", "set-up.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/setting.vue?vue&type=script&lang.ts
+var setting_vue_vue_type_script_lang_default = {
+ name: "Setting"
+};
+
+// src/components/setting.vue
+import { createElementVNode as _createElementVNode230, openBlock as _openBlock231, createElementBlock as _createElementBlock231 } from "vue";
+var _hoisted_1231 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2231 = /* @__PURE__ */ _createElementVNode230(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3230 = [
+ _hoisted_2231
+];
+function _sfc_render231(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock231(), _createElementBlock231("svg", _hoisted_1231, _hoisted_3230);
+}
+var setting_default = /* @__PURE__ */ export_helper_default(setting_vue_vue_type_script_lang_default, [["render", _sfc_render231], ["__file", "setting.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/share.vue?vue&type=script&lang.ts
+var share_vue_vue_type_script_lang_default = {
+ name: "Share"
+};
+
+// src/components/share.vue
+import { createElementVNode as _createElementVNode231, openBlock as _openBlock232, createElementBlock as _createElementBlock232 } from "vue";
+var _hoisted_1232 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2232 = /* @__PURE__ */ _createElementVNode231(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3231 = [
+ _hoisted_2232
+];
+function _sfc_render232(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock232(), _createElementBlock232("svg", _hoisted_1232, _hoisted_3231);
+}
+var share_default = /* @__PURE__ */ export_helper_default(share_vue_vue_type_script_lang_default, [["render", _sfc_render232], ["__file", "share.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ship.vue?vue&type=script&lang.ts
+var ship_vue_vue_type_script_lang_default = {
+ name: "Ship"
+};
+
+// src/components/ship.vue
+import { createElementVNode as _createElementVNode232, openBlock as _openBlock233, createElementBlock as _createElementBlock233 } from "vue";
+var _hoisted_1233 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2233 = /* @__PURE__ */ _createElementVNode232(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3232 = [
+ _hoisted_2233
+];
+function _sfc_render233(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock233(), _createElementBlock233("svg", _hoisted_1233, _hoisted_3232);
+}
+var ship_default = /* @__PURE__ */ export_helper_default(ship_vue_vue_type_script_lang_default, [["render", _sfc_render233], ["__file", "ship.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shop.vue?vue&type=script&lang.ts
+var shop_vue_vue_type_script_lang_default = {
+ name: "Shop"
+};
+
+// src/components/shop.vue
+import { createElementVNode as _createElementVNode233, openBlock as _openBlock234, createElementBlock as _createElementBlock234 } from "vue";
+var _hoisted_1234 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2234 = /* @__PURE__ */ _createElementVNode233(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3233 = [
+ _hoisted_2234
+];
+function _sfc_render234(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock234(), _createElementBlock234("svg", _hoisted_1234, _hoisted_3233);
+}
+var shop_default = /* @__PURE__ */ export_helper_default(shop_vue_vue_type_script_lang_default, [["render", _sfc_render234], ["__file", "shop.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-bag.vue?vue&type=script&lang.ts
+var shopping_bag_vue_vue_type_script_lang_default = {
+ name: "ShoppingBag"
+};
+
+// src/components/shopping-bag.vue
+import { createElementVNode as _createElementVNode234, openBlock as _openBlock235, createElementBlock as _createElementBlock235 } from "vue";
+var _hoisted_1235 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2235 = /* @__PURE__ */ _createElementVNode234(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3234 = /* @__PURE__ */ _createElementVNode234(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 704h640v64H192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_472 = [
+ _hoisted_2235,
+ _hoisted_3234
+];
+function _sfc_render235(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock235(), _createElementBlock235("svg", _hoisted_1235, _hoisted_472);
+}
+var shopping_bag_default = /* @__PURE__ */ export_helper_default(shopping_bag_vue_vue_type_script_lang_default, [["render", _sfc_render235], ["__file", "shopping-bag.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-cart-full.vue?vue&type=script&lang.ts
+var shopping_cart_full_vue_vue_type_script_lang_default = {
+ name: "ShoppingCartFull"
+};
+
+// src/components/shopping-cart-full.vue
+import { createElementVNode as _createElementVNode235, openBlock as _openBlock236, createElementBlock as _createElementBlock236 } from "vue";
+var _hoisted_1236 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2236 = /* @__PURE__ */ _createElementVNode235(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3235 = /* @__PURE__ */ _createElementVNode235(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_473 = [
+ _hoisted_2236,
+ _hoisted_3235
+];
+function _sfc_render236(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock236(), _createElementBlock236("svg", _hoisted_1236, _hoisted_473);
+}
+var shopping_cart_full_default = /* @__PURE__ */ export_helper_default(shopping_cart_full_vue_vue_type_script_lang_default, [["render", _sfc_render236], ["__file", "shopping-cart-full.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-cart.vue?vue&type=script&lang.ts
+var shopping_cart_vue_vue_type_script_lang_default = {
+ name: "ShoppingCart"
+};
+
+// src/components/shopping-cart.vue
+import { createElementVNode as _createElementVNode236, openBlock as _openBlock237, createElementBlock as _createElementBlock237 } from "vue";
+var _hoisted_1237 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2237 = /* @__PURE__ */ _createElementVNode236(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3236 = [
+ _hoisted_2237
+];
+function _sfc_render237(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock237(), _createElementBlock237("svg", _hoisted_1237, _hoisted_3236);
+}
+var shopping_cart_default = /* @__PURE__ */ export_helper_default(shopping_cart_vue_vue_type_script_lang_default, [["render", _sfc_render237], ["__file", "shopping-cart.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-trolley.vue?vue&type=script&lang.ts
+var shopping_trolley_vue_vue_type_script_lang_default = {
+ name: "ShoppingTrolley"
+};
+
+// src/components/shopping-trolley.vue
+import { createElementVNode as _createElementVNode237, openBlock as _openBlock238, createElementBlock as _createElementBlock238 } from "vue";
+var _hoisted_1238 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2238 = /* @__PURE__ */ _createElementVNode237(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3237 = [
+ _hoisted_2238
+];
+function _sfc_render238(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock238(), _createElementBlock238("svg", _hoisted_1238, _hoisted_3237);
+}
+var shopping_trolley_default = /* @__PURE__ */ export_helper_default(shopping_trolley_vue_vue_type_script_lang_default, [["render", _sfc_render238], ["__file", "shopping-trolley.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/smoking.vue?vue&type=script&lang.ts
+var smoking_vue_vue_type_script_lang_default = {
+ name: "Smoking"
+};
+
+// src/components/smoking.vue
+import { createElementVNode as _createElementVNode238, openBlock as _openBlock239, createElementBlock as _createElementBlock239 } from "vue";
+var _hoisted_1239 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2239 = /* @__PURE__ */ _createElementVNode238(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3238 = /* @__PURE__ */ _createElementVNode238(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_474 = [
+ _hoisted_2239,
+ _hoisted_3238
+];
+function _sfc_render239(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock239(), _createElementBlock239("svg", _hoisted_1239, _hoisted_474);
+}
+var smoking_default = /* @__PURE__ */ export_helper_default(smoking_vue_vue_type_script_lang_default, [["render", _sfc_render239], ["__file", "smoking.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/soccer.vue?vue&type=script&lang.ts
+var soccer_vue_vue_type_script_lang_default = {
+ name: "Soccer"
+};
+
+// src/components/soccer.vue
+import { createElementVNode as _createElementVNode239, openBlock as _openBlock240, createElementBlock as _createElementBlock240 } from "vue";
+var _hoisted_1240 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2240 = /* @__PURE__ */ _createElementVNode239(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3239 = [
+ _hoisted_2240
+];
+function _sfc_render240(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock240(), _createElementBlock240("svg", _hoisted_1240, _hoisted_3239);
+}
+var soccer_default = /* @__PURE__ */ export_helper_default(soccer_vue_vue_type_script_lang_default, [["render", _sfc_render240], ["__file", "soccer.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sold-out.vue?vue&type=script&lang.ts
+var sold_out_vue_vue_type_script_lang_default = {
+ name: "SoldOut"
+};
+
+// src/components/sold-out.vue
+import { createElementVNode as _createElementVNode240, openBlock as _openBlock241, createElementBlock as _createElementBlock241 } from "vue";
+var _hoisted_1241 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2241 = /* @__PURE__ */ _createElementVNode240(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3240 = [
+ _hoisted_2241
+];
+function _sfc_render241(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock241(), _createElementBlock241("svg", _hoisted_1241, _hoisted_3240);
+}
+var sold_out_default = /* @__PURE__ */ export_helper_default(sold_out_vue_vue_type_script_lang_default, [["render", _sfc_render241], ["__file", "sold-out.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort-down.vue?vue&type=script&lang.ts
+var sort_down_vue_vue_type_script_lang_default = {
+ name: "SortDown"
+};
+
+// src/components/sort-down.vue
+import { createElementVNode as _createElementVNode241, openBlock as _openBlock242, createElementBlock as _createElementBlock242 } from "vue";
+var _hoisted_1242 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2242 = /* @__PURE__ */ _createElementVNode241(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3241 = [
+ _hoisted_2242
+];
+function _sfc_render242(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock242(), _createElementBlock242("svg", _hoisted_1242, _hoisted_3241);
+}
+var sort_down_default = /* @__PURE__ */ export_helper_default(sort_down_vue_vue_type_script_lang_default, [["render", _sfc_render242], ["__file", "sort-down.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort-up.vue?vue&type=script&lang.ts
+var sort_up_vue_vue_type_script_lang_default = {
+ name: "SortUp"
+};
+
+// src/components/sort-up.vue
+import { createElementVNode as _createElementVNode242, openBlock as _openBlock243, createElementBlock as _createElementBlock243 } from "vue";
+var _hoisted_1243 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2243 = /* @__PURE__ */ _createElementVNode242(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3242 = [
+ _hoisted_2243
+];
+function _sfc_render243(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock243(), _createElementBlock243("svg", _hoisted_1243, _hoisted_3242);
+}
+var sort_up_default = /* @__PURE__ */ export_helper_default(sort_up_vue_vue_type_script_lang_default, [["render", _sfc_render243], ["__file", "sort-up.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort.vue?vue&type=script&lang.ts
+var sort_vue_vue_type_script_lang_default = {
+ name: "Sort"
+};
+
+// src/components/sort.vue
+import { createElementVNode as _createElementVNode243, openBlock as _openBlock244, createElementBlock as _createElementBlock244 } from "vue";
+var _hoisted_1244 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2244 = /* @__PURE__ */ _createElementVNode243(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3243 = [
+ _hoisted_2244
+];
+function _sfc_render244(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock244(), _createElementBlock244("svg", _hoisted_1244, _hoisted_3243);
+}
+var sort_default = /* @__PURE__ */ export_helper_default(sort_vue_vue_type_script_lang_default, [["render", _sfc_render244], ["__file", "sort.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/stamp.vue?vue&type=script&lang.ts
+var stamp_vue_vue_type_script_lang_default = {
+ name: "Stamp"
+};
+
+// src/components/stamp.vue
+import { createElementVNode as _createElementVNode244, openBlock as _openBlock245, createElementBlock as _createElementBlock245 } from "vue";
+var _hoisted_1245 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2245 = /* @__PURE__ */ _createElementVNode244(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3244 = [
+ _hoisted_2245
+];
+function _sfc_render245(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock245(), _createElementBlock245("svg", _hoisted_1245, _hoisted_3244);
+}
+var stamp_default = /* @__PURE__ */ export_helper_default(stamp_vue_vue_type_script_lang_default, [["render", _sfc_render245], ["__file", "stamp.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/star-filled.vue?vue&type=script&lang.ts
+var star_filled_vue_vue_type_script_lang_default = {
+ name: "StarFilled"
+};
+
+// src/components/star-filled.vue
+import { createElementVNode as _createElementVNode245, openBlock as _openBlock246, createElementBlock as _createElementBlock246 } from "vue";
+var _hoisted_1246 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2246 = /* @__PURE__ */ _createElementVNode245(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3245 = [
+ _hoisted_2246
+];
+function _sfc_render246(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock246(), _createElementBlock246("svg", _hoisted_1246, _hoisted_3245);
+}
+var star_filled_default = /* @__PURE__ */ export_helper_default(star_filled_vue_vue_type_script_lang_default, [["render", _sfc_render246], ["__file", "star-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/star.vue?vue&type=script&lang.ts
+var star_vue_vue_type_script_lang_default = {
+ name: "Star"
+};
+
+// src/components/star.vue
+import { createElementVNode as _createElementVNode246, openBlock as _openBlock247, createElementBlock as _createElementBlock247 } from "vue";
+var _hoisted_1247 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2247 = /* @__PURE__ */ _createElementVNode246(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3246 = [
+ _hoisted_2247
+];
+function _sfc_render247(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock247(), _createElementBlock247("svg", _hoisted_1247, _hoisted_3246);
+}
+var star_default = /* @__PURE__ */ export_helper_default(star_vue_vue_type_script_lang_default, [["render", _sfc_render247], ["__file", "star.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/stopwatch.vue?vue&type=script&lang.ts
+var stopwatch_vue_vue_type_script_lang_default = {
+ name: "Stopwatch"
+};
+
+// src/components/stopwatch.vue
+import { createElementVNode as _createElementVNode247, openBlock as _openBlock248, createElementBlock as _createElementBlock248 } from "vue";
+var _hoisted_1248 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2248 = /* @__PURE__ */ _createElementVNode247(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3247 = /* @__PURE__ */ _createElementVNode247(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_475 = [
+ _hoisted_2248,
+ _hoisted_3247
+];
+function _sfc_render248(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock248(), _createElementBlock248("svg", _hoisted_1248, _hoisted_475);
+}
+var stopwatch_default = /* @__PURE__ */ export_helper_default(stopwatch_vue_vue_type_script_lang_default, [["render", _sfc_render248], ["__file", "stopwatch.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/success-filled.vue?vue&type=script&lang.ts
+var success_filled_vue_vue_type_script_lang_default = {
+ name: "SuccessFilled"
+};
+
+// src/components/success-filled.vue
+import { createElementVNode as _createElementVNode248, openBlock as _openBlock249, createElementBlock as _createElementBlock249 } from "vue";
+var _hoisted_1249 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2249 = /* @__PURE__ */ _createElementVNode248(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3248 = [
+ _hoisted_2249
+];
+function _sfc_render249(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock249(), _createElementBlock249("svg", _hoisted_1249, _hoisted_3248);
+}
+var success_filled_default = /* @__PURE__ */ export_helper_default(success_filled_vue_vue_type_script_lang_default, [["render", _sfc_render249], ["__file", "success-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sugar.vue?vue&type=script&lang.ts
+var sugar_vue_vue_type_script_lang_default = {
+ name: "Sugar"
+};
+
+// src/components/sugar.vue
+import { createElementVNode as _createElementVNode249, openBlock as _openBlock250, createElementBlock as _createElementBlock250 } from "vue";
+var _hoisted_1250 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2250 = /* @__PURE__ */ _createElementVNode249(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3249 = [
+ _hoisted_2250
+];
+function _sfc_render250(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock250(), _createElementBlock250("svg", _hoisted_1250, _hoisted_3249);
+}
+var sugar_default = /* @__PURE__ */ export_helper_default(sugar_vue_vue_type_script_lang_default, [["render", _sfc_render250], ["__file", "sugar.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/suitcase-line.vue?vue&type=script&lang.ts
+var suitcase_line_vue_vue_type_script_lang_default = {
+ name: "SuitcaseLine"
+};
+
+// src/components/suitcase-line.vue
+import { createElementVNode as _createElementVNode250, openBlock as _openBlock251, createElementBlock as _createElementBlock251 } from "vue";
+var _hoisted_1251 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2251 = /* @__PURE__ */ _createElementVNode250(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3250 = [
+ _hoisted_2251
+];
+function _sfc_render251(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock251(), _createElementBlock251("svg", _hoisted_1251, _hoisted_3250);
+}
+var suitcase_line_default = /* @__PURE__ */ export_helper_default(suitcase_line_vue_vue_type_script_lang_default, [["render", _sfc_render251], ["__file", "suitcase-line.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/suitcase.vue?vue&type=script&lang.ts
+var suitcase_vue_vue_type_script_lang_default = {
+ name: "Suitcase"
+};
+
+// src/components/suitcase.vue
+import { createElementVNode as _createElementVNode251, openBlock as _openBlock252, createElementBlock as _createElementBlock252 } from "vue";
+var _hoisted_1252 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2252 = /* @__PURE__ */ _createElementVNode251(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3251 = /* @__PURE__ */ _createElementVNode251(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_476 = [
+ _hoisted_2252,
+ _hoisted_3251
+];
+function _sfc_render252(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock252(), _createElementBlock252("svg", _hoisted_1252, _hoisted_476);
+}
+var suitcase_default = /* @__PURE__ */ export_helper_default(suitcase_vue_vue_type_script_lang_default, [["render", _sfc_render252], ["__file", "suitcase.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunny.vue?vue&type=script&lang.ts
+var sunny_vue_vue_type_script_lang_default = {
+ name: "Sunny"
+};
+
+// src/components/sunny.vue
+import { createElementVNode as _createElementVNode252, openBlock as _openBlock253, createElementBlock as _createElementBlock253 } from "vue";
+var _hoisted_1253 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2253 = /* @__PURE__ */ _createElementVNode252(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3252 = [
+ _hoisted_2253
+];
+function _sfc_render253(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock253(), _createElementBlock253("svg", _hoisted_1253, _hoisted_3252);
+}
+var sunny_default = /* @__PURE__ */ export_helper_default(sunny_vue_vue_type_script_lang_default, [["render", _sfc_render253], ["__file", "sunny.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunrise.vue?vue&type=script&lang.ts
+var sunrise_vue_vue_type_script_lang_default = {
+ name: "Sunrise"
+};
+
+// src/components/sunrise.vue
+import { createElementVNode as _createElementVNode253, openBlock as _openBlock254, createElementBlock as _createElementBlock254 } from "vue";
+var _hoisted_1254 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2254 = /* @__PURE__ */ _createElementVNode253(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3253 = [
+ _hoisted_2254
+];
+function _sfc_render254(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock254(), _createElementBlock254("svg", _hoisted_1254, _hoisted_3253);
+}
+var sunrise_default = /* @__PURE__ */ export_helper_default(sunrise_vue_vue_type_script_lang_default, [["render", _sfc_render254], ["__file", "sunrise.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunset.vue?vue&type=script&lang.ts
+var sunset_vue_vue_type_script_lang_default = {
+ name: "Sunset"
+};
+
+// src/components/sunset.vue
+import { createElementVNode as _createElementVNode254, openBlock as _openBlock255, createElementBlock as _createElementBlock255 } from "vue";
+var _hoisted_1255 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2255 = /* @__PURE__ */ _createElementVNode254(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3254 = [
+ _hoisted_2255
+];
+function _sfc_render255(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock255(), _createElementBlock255("svg", _hoisted_1255, _hoisted_3254);
+}
+var sunset_default = /* @__PURE__ */ export_helper_default(sunset_vue_vue_type_script_lang_default, [["render", _sfc_render255], ["__file", "sunset.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch-button.vue?vue&type=script&lang.ts
+var switch_button_vue_vue_type_script_lang_default = {
+ name: "SwitchButton"
+};
+
+// src/components/switch-button.vue
+import { createElementVNode as _createElementVNode255, openBlock as _openBlock256, createElementBlock as _createElementBlock256 } from "vue";
+var _hoisted_1256 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2256 = /* @__PURE__ */ _createElementVNode255(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3255 = /* @__PURE__ */ _createElementVNode255(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_477 = [
+ _hoisted_2256,
+ _hoisted_3255
+];
+function _sfc_render256(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock256(), _createElementBlock256("svg", _hoisted_1256, _hoisted_477);
+}
+var switch_button_default = /* @__PURE__ */ export_helper_default(switch_button_vue_vue_type_script_lang_default, [["render", _sfc_render256], ["__file", "switch-button.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch-filled.vue?vue&type=script&lang.ts
+var switch_filled_vue_vue_type_script_lang_default = {
+ name: "SwitchFilled"
+};
+
+// src/components/switch-filled.vue
+import { createElementVNode as _createElementVNode256, openBlock as _openBlock257, createElementBlock as _createElementBlock257 } from "vue";
+var _hoisted_1257 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2257 = /* @__PURE__ */ _createElementVNode256(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3256 = /* @__PURE__ */ _createElementVNode256(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_478 = [
+ _hoisted_2257,
+ _hoisted_3256
+];
+function _sfc_render257(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock257(), _createElementBlock257("svg", _hoisted_1257, _hoisted_478);
+}
+var switch_filled_default = /* @__PURE__ */ export_helper_default(switch_filled_vue_vue_type_script_lang_default, [["render", _sfc_render257], ["__file", "switch-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch.vue?vue&type=script&lang.ts
+var switch_vue_vue_type_script_lang_default = {
+ name: "Switch"
+};
+
+// src/components/switch.vue
+import { createElementVNode as _createElementVNode257, openBlock as _openBlock258, createElementBlock as _createElementBlock258 } from "vue";
+var _hoisted_1258 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2258 = /* @__PURE__ */ _createElementVNode257(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3257 = [
+ _hoisted_2258
+];
+function _sfc_render258(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock258(), _createElementBlock258("svg", _hoisted_1258, _hoisted_3257);
+}
+var switch_default = /* @__PURE__ */ export_helper_default(switch_vue_vue_type_script_lang_default, [["render", _sfc_render258], ["__file", "switch.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/takeaway-box.vue?vue&type=script&lang.ts
+var takeaway_box_vue_vue_type_script_lang_default = {
+ name: "TakeawayBox"
+};
+
+// src/components/takeaway-box.vue
+import { createElementVNode as _createElementVNode258, openBlock as _openBlock259, createElementBlock as _createElementBlock259 } from "vue";
+var _hoisted_1259 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2259 = /* @__PURE__ */ _createElementVNode258(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3258 = [
+ _hoisted_2259
+];
+function _sfc_render259(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock259(), _createElementBlock259("svg", _hoisted_1259, _hoisted_3258);
+}
+var takeaway_box_default = /* @__PURE__ */ export_helper_default(takeaway_box_vue_vue_type_script_lang_default, [["render", _sfc_render259], ["__file", "takeaway-box.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ticket.vue?vue&type=script&lang.ts
+var ticket_vue_vue_type_script_lang_default = {
+ name: "Ticket"
+};
+
+// src/components/ticket.vue
+import { createElementVNode as _createElementVNode259, openBlock as _openBlock260, createElementBlock as _createElementBlock260 } from "vue";
+var _hoisted_1260 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2260 = /* @__PURE__ */ _createElementVNode259(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3259 = [
+ _hoisted_2260
+];
+function _sfc_render260(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock260(), _createElementBlock260("svg", _hoisted_1260, _hoisted_3259);
+}
+var ticket_default = /* @__PURE__ */ export_helper_default(ticket_vue_vue_type_script_lang_default, [["render", _sfc_render260], ["__file", "ticket.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/tickets.vue?vue&type=script&lang.ts
+var tickets_vue_vue_type_script_lang_default = {
+ name: "Tickets"
+};
+
+// src/components/tickets.vue
+import { createElementVNode as _createElementVNode260, openBlock as _openBlock261, createElementBlock as _createElementBlock261 } from "vue";
+var _hoisted_1261 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2261 = /* @__PURE__ */ _createElementVNode260(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3260 = [
+ _hoisted_2261
+];
+function _sfc_render261(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock261(), _createElementBlock261("svg", _hoisted_1261, _hoisted_3260);
+}
+var tickets_default = /* @__PURE__ */ export_helper_default(tickets_vue_vue_type_script_lang_default, [["render", _sfc_render261], ["__file", "tickets.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/timer.vue?vue&type=script&lang.ts
+var timer_vue_vue_type_script_lang_default = {
+ name: "Timer"
+};
+
+// src/components/timer.vue
+import { createElementVNode as _createElementVNode261, openBlock as _openBlock262, createElementBlock as _createElementBlock262 } from "vue";
+var _hoisted_1262 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2262 = /* @__PURE__ */ _createElementVNode261(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3261 = /* @__PURE__ */ _createElementVNode261(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_479 = /* @__PURE__ */ _createElementVNode261(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_522 = [
+ _hoisted_2262,
+ _hoisted_3261,
+ _hoisted_479
+];
+function _sfc_render262(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock262(), _createElementBlock262("svg", _hoisted_1262, _hoisted_522);
+}
+var timer_default = /* @__PURE__ */ export_helper_default(timer_vue_vue_type_script_lang_default, [["render", _sfc_render262], ["__file", "timer.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/toilet-paper.vue?vue&type=script&lang.ts
+var toilet_paper_vue_vue_type_script_lang_default = {
+ name: "ToiletPaper"
+};
+
+// src/components/toilet-paper.vue
+import { createElementVNode as _createElementVNode262, openBlock as _openBlock263, createElementBlock as _createElementBlock263 } from "vue";
+var _hoisted_1263 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2263 = /* @__PURE__ */ _createElementVNode262(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3262 = /* @__PURE__ */ _createElementVNode262(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_480 = [
+ _hoisted_2263,
+ _hoisted_3262
+];
+function _sfc_render263(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock263(), _createElementBlock263("svg", _hoisted_1263, _hoisted_480);
+}
+var toilet_paper_default = /* @__PURE__ */ export_helper_default(toilet_paper_vue_vue_type_script_lang_default, [["render", _sfc_render263], ["__file", "toilet-paper.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/tools.vue?vue&type=script&lang.ts
+var tools_vue_vue_type_script_lang_default = {
+ name: "Tools"
+};
+
+// src/components/tools.vue
+import { createElementVNode as _createElementVNode263, openBlock as _openBlock264, createElementBlock as _createElementBlock264 } from "vue";
+var _hoisted_1264 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2264 = /* @__PURE__ */ _createElementVNode263(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3263 = [
+ _hoisted_2264
+];
+function _sfc_render264(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock264(), _createElementBlock264("svg", _hoisted_1264, _hoisted_3263);
+}
+var tools_default = /* @__PURE__ */ export_helper_default(tools_vue_vue_type_script_lang_default, [["render", _sfc_render264], ["__file", "tools.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top-left.vue?vue&type=script&lang.ts
+var top_left_vue_vue_type_script_lang_default = {
+ name: "TopLeft"
+};
+
+// src/components/top-left.vue
+import { createElementVNode as _createElementVNode264, openBlock as _openBlock265, createElementBlock as _createElementBlock265 } from "vue";
+var _hoisted_1265 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2265 = /* @__PURE__ */ _createElementVNode264(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3264 = /* @__PURE__ */ _createElementVNode264(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_481 = [
+ _hoisted_2265,
+ _hoisted_3264
+];
+function _sfc_render265(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock265(), _createElementBlock265("svg", _hoisted_1265, _hoisted_481);
+}
+var top_left_default = /* @__PURE__ */ export_helper_default(top_left_vue_vue_type_script_lang_default, [["render", _sfc_render265], ["__file", "top-left.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top-right.vue?vue&type=script&lang.ts
+var top_right_vue_vue_type_script_lang_default = {
+ name: "TopRight"
+};
+
+// src/components/top-right.vue
+import { createElementVNode as _createElementVNode265, openBlock as _openBlock266, createElementBlock as _createElementBlock266 } from "vue";
+var _hoisted_1266 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2266 = /* @__PURE__ */ _createElementVNode265(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3265 = /* @__PURE__ */ _createElementVNode265(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_482 = [
+ _hoisted_2266,
+ _hoisted_3265
+];
+function _sfc_render266(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock266(), _createElementBlock266("svg", _hoisted_1266, _hoisted_482);
+}
+var top_right_default = /* @__PURE__ */ export_helper_default(top_right_vue_vue_type_script_lang_default, [["render", _sfc_render266], ["__file", "top-right.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top.vue?vue&type=script&lang.ts
+var top_vue_vue_type_script_lang_default = {
+ name: "Top"
+};
+
+// src/components/top.vue
+import { createElementVNode as _createElementVNode266, openBlock as _openBlock267, createElementBlock as _createElementBlock267 } from "vue";
+var _hoisted_1267 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2267 = /* @__PURE__ */ _createElementVNode266(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3266 = [
+ _hoisted_2267
+];
+function _sfc_render267(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock267(), _createElementBlock267("svg", _hoisted_1267, _hoisted_3266);
+}
+var top_default = /* @__PURE__ */ export_helper_default(top_vue_vue_type_script_lang_default, [["render", _sfc_render267], ["__file", "top.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trend-charts.vue?vue&type=script&lang.ts
+var trend_charts_vue_vue_type_script_lang_default = {
+ name: "TrendCharts"
+};
+
+// src/components/trend-charts.vue
+import { createElementVNode as _createElementVNode267, openBlock as _openBlock268, createElementBlock as _createElementBlock268 } from "vue";
+var _hoisted_1268 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2268 = /* @__PURE__ */ _createElementVNode267(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3267 = [
+ _hoisted_2268
+];
+function _sfc_render268(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock268(), _createElementBlock268("svg", _hoisted_1268, _hoisted_3267);
+}
+var trend_charts_default = /* @__PURE__ */ export_helper_default(trend_charts_vue_vue_type_script_lang_default, [["render", _sfc_render268], ["__file", "trend-charts.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trophy-base.vue?vue&type=script&lang.ts
+var trophy_base_vue_vue_type_script_lang_default = {
+ name: "TrophyBase"
+};
+
+// src/components/trophy-base.vue
+import { createElementVNode as _createElementVNode268, openBlock as _openBlock269, createElementBlock as _createElementBlock269 } from "vue";
+var _hoisted_1269 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2269 = /* @__PURE__ */ _createElementVNode268(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3268 = [
+ _hoisted_2269
+];
+function _sfc_render269(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock269(), _createElementBlock269("svg", _hoisted_1269, _hoisted_3268);
+}
+var trophy_base_default = /* @__PURE__ */ export_helper_default(trophy_base_vue_vue_type_script_lang_default, [["render", _sfc_render269], ["__file", "trophy-base.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trophy.vue?vue&type=script&lang.ts
+var trophy_vue_vue_type_script_lang_default = {
+ name: "Trophy"
+};
+
+// src/components/trophy.vue
+import { createElementVNode as _createElementVNode269, openBlock as _openBlock270, createElementBlock as _createElementBlock270 } from "vue";
+var _hoisted_1270 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2270 = /* @__PURE__ */ _createElementVNode269(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3269 = [
+ _hoisted_2270
+];
+function _sfc_render270(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock270(), _createElementBlock270("svg", _hoisted_1270, _hoisted_3269);
+}
+var trophy_default = /* @__PURE__ */ export_helper_default(trophy_vue_vue_type_script_lang_default, [["render", _sfc_render270], ["__file", "trophy.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/turn-off.vue?vue&type=script&lang.ts
+var turn_off_vue_vue_type_script_lang_default = {
+ name: "TurnOff"
+};
+
+// src/components/turn-off.vue
+import { createElementVNode as _createElementVNode270, openBlock as _openBlock271, createElementBlock as _createElementBlock271 } from "vue";
+var _hoisted_1271 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2271 = /* @__PURE__ */ _createElementVNode270(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3270 = /* @__PURE__ */ _createElementVNode270(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_483 = [
+ _hoisted_2271,
+ _hoisted_3270
+];
+function _sfc_render271(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock271(), _createElementBlock271("svg", _hoisted_1271, _hoisted_483);
+}
+var turn_off_default = /* @__PURE__ */ export_helper_default(turn_off_vue_vue_type_script_lang_default, [["render", _sfc_render271], ["__file", "turn-off.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/umbrella.vue?vue&type=script&lang.ts
+var umbrella_vue_vue_type_script_lang_default = {
+ name: "Umbrella"
+};
+
+// src/components/umbrella.vue
+import { createElementVNode as _createElementVNode271, openBlock as _openBlock272, createElementBlock as _createElementBlock272 } from "vue";
+var _hoisted_1272 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2272 = /* @__PURE__ */ _createElementVNode271(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3271 = [
+ _hoisted_2272
+];
+function _sfc_render272(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock272(), _createElementBlock272("svg", _hoisted_1272, _hoisted_3271);
+}
+var umbrella_default = /* @__PURE__ */ export_helper_default(umbrella_vue_vue_type_script_lang_default, [["render", _sfc_render272], ["__file", "umbrella.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/unlock.vue?vue&type=script&lang.ts
+var unlock_vue_vue_type_script_lang_default = {
+ name: "Unlock"
+};
+
+// src/components/unlock.vue
+import { createElementVNode as _createElementVNode272, openBlock as _openBlock273, createElementBlock as _createElementBlock273 } from "vue";
+var _hoisted_1273 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2273 = /* @__PURE__ */ _createElementVNode272(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3272 = /* @__PURE__ */ _createElementVNode272(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_484 = [
+ _hoisted_2273,
+ _hoisted_3272
+];
+function _sfc_render273(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock273(), _createElementBlock273("svg", _hoisted_1273, _hoisted_484);
+}
+var unlock_default = /* @__PURE__ */ export_helper_default(unlock_vue_vue_type_script_lang_default, [["render", _sfc_render273], ["__file", "unlock.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/upload-filled.vue?vue&type=script&lang.ts
+var upload_filled_vue_vue_type_script_lang_default = {
+ name: "UploadFilled"
+};
+
+// src/components/upload-filled.vue
+import { createElementVNode as _createElementVNode273, openBlock as _openBlock274, createElementBlock as _createElementBlock274 } from "vue";
+var _hoisted_1274 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2274 = /* @__PURE__ */ _createElementVNode273(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3273 = [
+ _hoisted_2274
+];
+function _sfc_render274(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock274(), _createElementBlock274("svg", _hoisted_1274, _hoisted_3273);
+}
+var upload_filled_default = /* @__PURE__ */ export_helper_default(upload_filled_vue_vue_type_script_lang_default, [["render", _sfc_render274], ["__file", "upload-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/upload.vue?vue&type=script&lang.ts
+var upload_vue_vue_type_script_lang_default = {
+ name: "Upload"
+};
+
+// src/components/upload.vue
+import { createElementVNode as _createElementVNode274, openBlock as _openBlock275, createElementBlock as _createElementBlock275 } from "vue";
+var _hoisted_1275 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2275 = /* @__PURE__ */ _createElementVNode274(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3274 = [
+ _hoisted_2275
+];
+function _sfc_render275(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock275(), _createElementBlock275("svg", _hoisted_1275, _hoisted_3274);
+}
+var upload_default = /* @__PURE__ */ export_helper_default(upload_vue_vue_type_script_lang_default, [["render", _sfc_render275], ["__file", "upload.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/user-filled.vue?vue&type=script&lang.ts
+var user_filled_vue_vue_type_script_lang_default = {
+ name: "UserFilled"
+};
+
+// src/components/user-filled.vue
+import { createElementVNode as _createElementVNode275, openBlock as _openBlock276, createElementBlock as _createElementBlock276 } from "vue";
+var _hoisted_1276 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2276 = /* @__PURE__ */ _createElementVNode275(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3275 = [
+ _hoisted_2276
+];
+function _sfc_render276(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock276(), _createElementBlock276("svg", _hoisted_1276, _hoisted_3275);
+}
+var user_filled_default = /* @__PURE__ */ export_helper_default(user_filled_vue_vue_type_script_lang_default, [["render", _sfc_render276], ["__file", "user-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/user.vue?vue&type=script&lang.ts
+var user_vue_vue_type_script_lang_default = {
+ name: "User"
+};
+
+// src/components/user.vue
+import { createElementVNode as _createElementVNode276, openBlock as _openBlock277, createElementBlock as _createElementBlock277 } from "vue";
+var _hoisted_1277 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2277 = /* @__PURE__ */ _createElementVNode276(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3276 = [
+ _hoisted_2277
+];
+function _sfc_render277(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock277(), _createElementBlock277("svg", _hoisted_1277, _hoisted_3276);
+}
+var user_default = /* @__PURE__ */ export_helper_default(user_vue_vue_type_script_lang_default, [["render", _sfc_render277], ["__file", "user.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/van.vue?vue&type=script&lang.ts
+var van_vue_vue_type_script_lang_default = {
+ name: "Van"
+};
+
+// src/components/van.vue
+import { createElementVNode as _createElementVNode277, openBlock as _openBlock278, createElementBlock as _createElementBlock278 } from "vue";
+var _hoisted_1278 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2278 = /* @__PURE__ */ _createElementVNode277(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3277 = [
+ _hoisted_2278
+];
+function _sfc_render278(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock278(), _createElementBlock278("svg", _hoisted_1278, _hoisted_3277);
+}
+var van_default = /* @__PURE__ */ export_helper_default(van_vue_vue_type_script_lang_default, [["render", _sfc_render278], ["__file", "van.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-camera-filled.vue?vue&type=script&lang.ts
+var video_camera_filled_vue_vue_type_script_lang_default = {
+ name: "VideoCameraFilled"
+};
+
+// src/components/video-camera-filled.vue
+import { createElementVNode as _createElementVNode278, openBlock as _openBlock279, createElementBlock as _createElementBlock279 } from "vue";
+var _hoisted_1279 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2279 = /* @__PURE__ */ _createElementVNode278(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3278 = [
+ _hoisted_2279
+];
+function _sfc_render279(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock279(), _createElementBlock279("svg", _hoisted_1279, _hoisted_3278);
+}
+var video_camera_filled_default = /* @__PURE__ */ export_helper_default(video_camera_filled_vue_vue_type_script_lang_default, [["render", _sfc_render279], ["__file", "video-camera-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-camera.vue?vue&type=script&lang.ts
+var video_camera_vue_vue_type_script_lang_default = {
+ name: "VideoCamera"
+};
+
+// src/components/video-camera.vue
+import { createElementVNode as _createElementVNode279, openBlock as _openBlock280, createElementBlock as _createElementBlock280 } from "vue";
+var _hoisted_1280 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2280 = /* @__PURE__ */ _createElementVNode279(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3279 = [
+ _hoisted_2280
+];
+function _sfc_render280(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock280(), _createElementBlock280("svg", _hoisted_1280, _hoisted_3279);
+}
+var video_camera_default = /* @__PURE__ */ export_helper_default(video_camera_vue_vue_type_script_lang_default, [["render", _sfc_render280], ["__file", "video-camera.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-pause.vue?vue&type=script&lang.ts
+var video_pause_vue_vue_type_script_lang_default = {
+ name: "VideoPause"
+};
+
+// src/components/video-pause.vue
+import { createElementVNode as _createElementVNode280, openBlock as _openBlock281, createElementBlock as _createElementBlock281 } from "vue";
+var _hoisted_1281 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2281 = /* @__PURE__ */ _createElementVNode280(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3280 = [
+ _hoisted_2281
+];
+function _sfc_render281(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock281(), _createElementBlock281("svg", _hoisted_1281, _hoisted_3280);
+}
+var video_pause_default = /* @__PURE__ */ export_helper_default(video_pause_vue_vue_type_script_lang_default, [["render", _sfc_render281], ["__file", "video-pause.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-play.vue?vue&type=script&lang.ts
+var video_play_vue_vue_type_script_lang_default = {
+ name: "VideoPlay"
+};
+
+// src/components/video-play.vue
+import { createElementVNode as _createElementVNode281, openBlock as _openBlock282, createElementBlock as _createElementBlock282 } from "vue";
+var _hoisted_1282 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2282 = /* @__PURE__ */ _createElementVNode281(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3281 = [
+ _hoisted_2282
+];
+function _sfc_render282(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock282(), _createElementBlock282("svg", _hoisted_1282, _hoisted_3281);
+}
+var video_play_default = /* @__PURE__ */ export_helper_default(video_play_vue_vue_type_script_lang_default, [["render", _sfc_render282], ["__file", "video-play.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/view.vue?vue&type=script&lang.ts
+var view_vue_vue_type_script_lang_default = {
+ name: "View"
+};
+
+// src/components/view.vue
+import { createElementVNode as _createElementVNode282, openBlock as _openBlock283, createElementBlock as _createElementBlock283 } from "vue";
+var _hoisted_1283 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2283 = /* @__PURE__ */ _createElementVNode282(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3282 = [
+ _hoisted_2283
+];
+function _sfc_render283(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock283(), _createElementBlock283("svg", _hoisted_1283, _hoisted_3282);
+}
+var view_default = /* @__PURE__ */ export_helper_default(view_vue_vue_type_script_lang_default, [["render", _sfc_render283], ["__file", "view.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wallet-filled.vue?vue&type=script&lang.ts
+var wallet_filled_vue_vue_type_script_lang_default = {
+ name: "WalletFilled"
+};
+
+// src/components/wallet-filled.vue
+import { createElementVNode as _createElementVNode283, openBlock as _openBlock284, createElementBlock as _createElementBlock284 } from "vue";
+var _hoisted_1284 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2284 = /* @__PURE__ */ _createElementVNode283(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3283 = [
+ _hoisted_2284
+];
+function _sfc_render284(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock284(), _createElementBlock284("svg", _hoisted_1284, _hoisted_3283);
+}
+var wallet_filled_default = /* @__PURE__ */ export_helper_default(wallet_filled_vue_vue_type_script_lang_default, [["render", _sfc_render284], ["__file", "wallet-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wallet.vue?vue&type=script&lang.ts
+var wallet_vue_vue_type_script_lang_default = {
+ name: "Wallet"
+};
+
+// src/components/wallet.vue
+import { createElementVNode as _createElementVNode284, openBlock as _openBlock285, createElementBlock as _createElementBlock285 } from "vue";
+var _hoisted_1285 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2285 = /* @__PURE__ */ _createElementVNode284(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3284 = /* @__PURE__ */ _createElementVNode284(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_485 = /* @__PURE__ */ _createElementVNode284(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_523 = [
+ _hoisted_2285,
+ _hoisted_3284,
+ _hoisted_485
+];
+function _sfc_render285(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock285(), _createElementBlock285("svg", _hoisted_1285, _hoisted_523);
+}
+var wallet_default = /* @__PURE__ */ export_helper_default(wallet_vue_vue_type_script_lang_default, [["render", _sfc_render285], ["__file", "wallet.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warn-triangle-filled.vue?vue&type=script&lang.ts
+var warn_triangle_filled_vue_vue_type_script_lang_default = {
+ name: "WarnTriangleFilled"
+};
+
+// src/components/warn-triangle-filled.vue
+import { createElementVNode as _createElementVNode285, openBlock as _openBlock286, createElementBlock as _createElementBlock286 } from "vue";
+var _hoisted_1286 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ "xml:space": "preserve",
+ style: { "enable-background": "new 0 0 1024 1024" },
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2286 = /* @__PURE__ */ _createElementVNode285(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3285 = [
+ _hoisted_2286
+];
+function _sfc_render286(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock286(), _createElementBlock286("svg", _hoisted_1286, _hoisted_3285);
+}
+var warn_triangle_filled_default = /* @__PURE__ */ export_helper_default(warn_triangle_filled_vue_vue_type_script_lang_default, [["render", _sfc_render286], ["__file", "warn-triangle-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warning-filled.vue?vue&type=script&lang.ts
+var warning_filled_vue_vue_type_script_lang_default = {
+ name: "WarningFilled"
+};
+
+// src/components/warning-filled.vue
+import { createElementVNode as _createElementVNode286, openBlock as _openBlock287, createElementBlock as _createElementBlock287 } from "vue";
+var _hoisted_1287 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2287 = /* @__PURE__ */ _createElementVNode286(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3286 = [
+ _hoisted_2287
+];
+function _sfc_render287(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock287(), _createElementBlock287("svg", _hoisted_1287, _hoisted_3286);
+}
+var warning_filled_default = /* @__PURE__ */ export_helper_default(warning_filled_vue_vue_type_script_lang_default, [["render", _sfc_render287], ["__file", "warning-filled.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warning.vue?vue&type=script&lang.ts
+var warning_vue_vue_type_script_lang_default = {
+ name: "Warning"
+};
+
+// src/components/warning.vue
+import { createElementVNode as _createElementVNode287, openBlock as _openBlock288, createElementBlock as _createElementBlock288 } from "vue";
+var _hoisted_1288 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2288 = /* @__PURE__ */ _createElementVNode287(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3287 = [
+ _hoisted_2288
+];
+function _sfc_render288(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock288(), _createElementBlock288("svg", _hoisted_1288, _hoisted_3287);
+}
+var warning_default = /* @__PURE__ */ export_helper_default(warning_vue_vue_type_script_lang_default, [["render", _sfc_render288], ["__file", "warning.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/watch.vue?vue&type=script&lang.ts
+var watch_vue_vue_type_script_lang_default = {
+ name: "Watch"
+};
+
+// src/components/watch.vue
+import { createElementVNode as _createElementVNode288, openBlock as _openBlock289, createElementBlock as _createElementBlock289 } from "vue";
+var _hoisted_1289 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2289 = /* @__PURE__ */ _createElementVNode288(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3288 = /* @__PURE__ */ _createElementVNode288(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_486 = /* @__PURE__ */ _createElementVNode288(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_524 = [
+ _hoisted_2289,
+ _hoisted_3288,
+ _hoisted_486
+];
+function _sfc_render289(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock289(), _createElementBlock289("svg", _hoisted_1289, _hoisted_524);
+}
+var watch_default = /* @__PURE__ */ export_helper_default(watch_vue_vue_type_script_lang_default, [["render", _sfc_render289], ["__file", "watch.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/watermelon.vue?vue&type=script&lang.ts
+var watermelon_vue_vue_type_script_lang_default = {
+ name: "Watermelon"
+};
+
+// src/components/watermelon.vue
+import { createElementVNode as _createElementVNode289, openBlock as _openBlock290, createElementBlock as _createElementBlock290 } from "vue";
+var _hoisted_1290 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2290 = /* @__PURE__ */ _createElementVNode289(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3289 = [
+ _hoisted_2290
+];
+function _sfc_render290(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock290(), _createElementBlock290("svg", _hoisted_1290, _hoisted_3289);
+}
+var watermelon_default = /* @__PURE__ */ export_helper_default(watermelon_vue_vue_type_script_lang_default, [["render", _sfc_render290], ["__file", "watermelon.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wind-power.vue?vue&type=script&lang.ts
+var wind_power_vue_vue_type_script_lang_default = {
+ name: "WindPower"
+};
+
+// src/components/wind-power.vue
+import { createElementVNode as _createElementVNode290, openBlock as _openBlock291, createElementBlock as _createElementBlock291 } from "vue";
+var _hoisted_1291 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2291 = /* @__PURE__ */ _createElementVNode290(
+ "path",
+ {
+ fill: "currentColor",
+ d: "M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3290 = [
+ _hoisted_2291
+];
+function _sfc_render291(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock291(), _createElementBlock291("svg", _hoisted_1291, _hoisted_3290);
+}
+var wind_power_default = /* @__PURE__ */ export_helper_default(wind_power_vue_vue_type_script_lang_default, [["render", _sfc_render291], ["__file", "wind-power.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-in.vue?vue&type=script&lang.ts
+var zoom_in_vue_vue_type_script_lang_default = {
+ name: "ZoomIn"
+};
+
+// src/components/zoom-in.vue
+import { createElementVNode as _createElementVNode291, openBlock as _openBlock292, createElementBlock as _createElementBlock292 } from "vue";
+var _hoisted_1292 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2292 = /* @__PURE__ */ _createElementVNode291(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3291 = [
+ _hoisted_2292
+];
+function _sfc_render292(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock292(), _createElementBlock292("svg", _hoisted_1292, _hoisted_3291);
+}
+var zoom_in_default = /* @__PURE__ */ export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]);
+
+// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-out.vue?vue&type=script&lang.ts
+var zoom_out_vue_vue_type_script_lang_default = {
+ name: "ZoomOut"
+};
+
+// src/components/zoom-out.vue
+import { createElementVNode as _createElementVNode292, openBlock as _openBlock293, createElementBlock as _createElementBlock293 } from "vue";
+var _hoisted_1293 = {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 1024 1024"
+}, _hoisted_2293 = /* @__PURE__ */ _createElementVNode292(
+ "path",
+ {
+ fill: "currentColor",
+ d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"
+ },
+ null,
+ -1
+ /* HOISTED */
+), _hoisted_3292 = [
+ _hoisted_2293
+];
+function _sfc_render293(_ctx, _cache, $props, $setup, $data, $options) {
+ return _openBlock293(), _createElementBlock293("svg", _hoisted_1293, _hoisted_3292);
+}
+var zoom_out_default = /* @__PURE__ */ export_helper_default(zoom_out_vue_vue_type_script_lang_default, [["render", _sfc_render293], ["__file", "zoom-out.vue"]]);
+export {
+ add_location_default as AddLocation,
+ aim_default as Aim,
+ alarm_clock_default as AlarmClock,
+ apple_default as Apple,
+ arrow_down_default as ArrowDown,
+ arrow_down_bold_default as ArrowDownBold,
+ arrow_left_default as ArrowLeft,
+ arrow_left_bold_default as ArrowLeftBold,
+ arrow_right_default as ArrowRight,
+ arrow_right_bold_default as ArrowRightBold,
+ arrow_up_default as ArrowUp,
+ arrow_up_bold_default as ArrowUpBold,
+ avatar_default as Avatar,
+ back_default as Back,
+ baseball_default as Baseball,
+ basketball_default as Basketball,
+ bell_default as Bell,
+ bell_filled_default as BellFilled,
+ bicycle_default as Bicycle,
+ bottom_default as Bottom,
+ bottom_left_default as BottomLeft,
+ bottom_right_default as BottomRight,
+ bowl_default as Bowl,
+ box_default as Box,
+ briefcase_default as Briefcase,
+ brush_default as Brush,
+ brush_filled_default as BrushFilled,
+ burger_default as Burger,
+ calendar_default as Calendar,
+ camera_default as Camera,
+ camera_filled_default as CameraFilled,
+ caret_bottom_default as CaretBottom,
+ caret_left_default as CaretLeft,
+ caret_right_default as CaretRight,
+ caret_top_default as CaretTop,
+ cellphone_default as Cellphone,
+ chat_dot_round_default as ChatDotRound,
+ chat_dot_square_default as ChatDotSquare,
+ chat_line_round_default as ChatLineRound,
+ chat_line_square_default as ChatLineSquare,
+ chat_round_default as ChatRound,
+ chat_square_default as ChatSquare,
+ check_default as Check,
+ checked_default as Checked,
+ cherry_default as Cherry,
+ chicken_default as Chicken,
+ chrome_filled_default as ChromeFilled,
+ circle_check_default as CircleCheck,
+ circle_check_filled_default as CircleCheckFilled,
+ circle_close_default as CircleClose,
+ circle_close_filled_default as CircleCloseFilled,
+ circle_plus_default as CirclePlus,
+ circle_plus_filled_default as CirclePlusFilled,
+ clock_default as Clock,
+ close_default as Close,
+ close_bold_default as CloseBold,
+ cloudy_default as Cloudy,
+ coffee_default as Coffee,
+ coffee_cup_default as CoffeeCup,
+ coin_default as Coin,
+ cold_drink_default as ColdDrink,
+ collection_default as Collection,
+ collection_tag_default as CollectionTag,
+ comment_default as Comment,
+ compass_default as Compass,
+ connection_default as Connection,
+ coordinate_default as Coordinate,
+ copy_document_default as CopyDocument,
+ cpu_default as Cpu,
+ credit_card_default as CreditCard,
+ crop_default as Crop,
+ d_arrow_left_default as DArrowLeft,
+ d_arrow_right_default as DArrowRight,
+ d_caret_default as DCaret,
+ data_analysis_default as DataAnalysis,
+ data_board_default as DataBoard,
+ data_line_default as DataLine,
+ delete_default as Delete,
+ delete_filled_default as DeleteFilled,
+ delete_location_default as DeleteLocation,
+ dessert_default as Dessert,
+ discount_default as Discount,
+ dish_default as Dish,
+ dish_dot_default as DishDot,
+ document_default as Document,
+ document_add_default as DocumentAdd,
+ document_checked_default as DocumentChecked,
+ document_copy_default as DocumentCopy,
+ document_delete_default as DocumentDelete,
+ document_remove_default as DocumentRemove,
+ download_default as Download,
+ drizzling_default as Drizzling,
+ edit_default as Edit,
+ edit_pen_default as EditPen,
+ eleme_default as Eleme,
+ eleme_filled_default as ElemeFilled,
+ element_plus_default as ElementPlus,
+ expand_default as Expand,
+ failed_default as Failed,
+ female_default as Female,
+ files_default as Files,
+ film_default as Film,
+ filter_default as Filter,
+ finished_default as Finished,
+ first_aid_kit_default as FirstAidKit,
+ flag_default as Flag,
+ fold_default as Fold,
+ folder_default as Folder,
+ folder_add_default as FolderAdd,
+ folder_checked_default as FolderChecked,
+ folder_delete_default as FolderDelete,
+ folder_opened_default as FolderOpened,
+ folder_remove_default as FolderRemove,
+ food_default as Food,
+ football_default as Football,
+ fork_spoon_default as ForkSpoon,
+ fries_default as Fries,
+ full_screen_default as FullScreen,
+ goblet_default as Goblet,
+ goblet_full_default as GobletFull,
+ goblet_square_default as GobletSquare,
+ goblet_square_full_default as GobletSquareFull,
+ gold_medal_default as GoldMedal,
+ goods_default as Goods,
+ goods_filled_default as GoodsFilled,
+ grape_default as Grape,
+ grid_default as Grid,
+ guide_default as Guide,
+ handbag_default as Handbag,
+ headset_default as Headset,
+ help_default as Help,
+ help_filled_default as HelpFilled,
+ hide_default as Hide,
+ histogram_default as Histogram,
+ home_filled_default as HomeFilled,
+ hot_water_default as HotWater,
+ house_default as House,
+ ice_cream_default as IceCream,
+ ice_cream_round_default as IceCreamRound,
+ ice_cream_square_default as IceCreamSquare,
+ ice_drink_default as IceDrink,
+ ice_tea_default as IceTea,
+ info_filled_default as InfoFilled,
+ iphone_default as Iphone,
+ key_default as Key,
+ knife_fork_default as KnifeFork,
+ lightning_default as Lightning,
+ link_default as Link,
+ list_default as List,
+ loading_default as Loading,
+ location_default as Location,
+ location_filled_default as LocationFilled,
+ location_information_default as LocationInformation,
+ lock_default as Lock,
+ lollipop_default as Lollipop,
+ magic_stick_default as MagicStick,
+ magnet_default as Magnet,
+ male_default as Male,
+ management_default as Management,
+ map_location_default as MapLocation,
+ medal_default as Medal,
+ memo_default as Memo,
+ menu_default as Menu,
+ message_default as Message,
+ message_box_default as MessageBox,
+ mic_default as Mic,
+ microphone_default as Microphone,
+ milk_tea_default as MilkTea,
+ minus_default as Minus,
+ money_default as Money,
+ monitor_default as Monitor,
+ moon_default as Moon,
+ moon_night_default as MoonNight,
+ more_default as More,
+ more_filled_default as MoreFilled,
+ mostly_cloudy_default as MostlyCloudy,
+ mouse_default as Mouse,
+ mug_default as Mug,
+ mute_default as Mute,
+ mute_notification_default as MuteNotification,
+ no_smoking_default as NoSmoking,
+ notebook_default as Notebook,
+ notification_default as Notification,
+ odometer_default as Odometer,
+ office_building_default as OfficeBuilding,
+ open_default as Open,
+ operation_default as Operation,
+ opportunity_default as Opportunity,
+ orange_default as Orange,
+ paperclip_default as Paperclip,
+ partly_cloudy_default as PartlyCloudy,
+ pear_default as Pear,
+ phone_default as Phone,
+ phone_filled_default as PhoneFilled,
+ picture_default as Picture,
+ picture_filled_default as PictureFilled,
+ picture_rounded_default as PictureRounded,
+ pie_chart_default as PieChart,
+ place_default as Place,
+ platform_default as Platform,
+ plus_default as Plus,
+ pointer_default as Pointer,
+ position_default as Position,
+ postcard_default as Postcard,
+ pouring_default as Pouring,
+ present_default as Present,
+ price_tag_default as PriceTag,
+ printer_default as Printer,
+ promotion_default as Promotion,
+ quartz_watch_default as QuartzWatch,
+ question_filled_default as QuestionFilled,
+ rank_default as Rank,
+ reading_default as Reading,
+ reading_lamp_default as ReadingLamp,
+ refresh_default as Refresh,
+ refresh_left_default as RefreshLeft,
+ refresh_right_default as RefreshRight,
+ refrigerator_default as Refrigerator,
+ remove_default as Remove,
+ remove_filled_default as RemoveFilled,
+ right_default as Right,
+ scale_to_original_default as ScaleToOriginal,
+ school_default as School,
+ scissor_default as Scissor,
+ search_default as Search,
+ select_default as Select,
+ sell_default as Sell,
+ semi_select_default as SemiSelect,
+ service_default as Service,
+ set_up_default as SetUp,
+ setting_default as Setting,
+ share_default as Share,
+ ship_default as Ship,
+ shop_default as Shop,
+ shopping_bag_default as ShoppingBag,
+ shopping_cart_default as ShoppingCart,
+ shopping_cart_full_default as ShoppingCartFull,
+ shopping_trolley_default as ShoppingTrolley,
+ smoking_default as Smoking,
+ soccer_default as Soccer,
+ sold_out_default as SoldOut,
+ sort_default as Sort,
+ sort_down_default as SortDown,
+ sort_up_default as SortUp,
+ stamp_default as Stamp,
+ star_default as Star,
+ star_filled_default as StarFilled,
+ stopwatch_default as Stopwatch,
+ success_filled_default as SuccessFilled,
+ sugar_default as Sugar,
+ suitcase_default as Suitcase,
+ suitcase_line_default as SuitcaseLine,
+ sunny_default as Sunny,
+ sunrise_default as Sunrise,
+ sunset_default as Sunset,
+ switch_default as Switch,
+ switch_button_default as SwitchButton,
+ switch_filled_default as SwitchFilled,
+ takeaway_box_default as TakeawayBox,
+ ticket_default as Ticket,
+ tickets_default as Tickets,
+ timer_default as Timer,
+ toilet_paper_default as ToiletPaper,
+ tools_default as Tools,
+ top_default as Top,
+ top_left_default as TopLeft,
+ top_right_default as TopRight,
+ trend_charts_default as TrendCharts,
+ trophy_default as Trophy,
+ trophy_base_default as TrophyBase,
+ turn_off_default as TurnOff,
+ umbrella_default as Umbrella,
+ unlock_default as Unlock,
+ upload_default as Upload,
+ upload_filled_default as UploadFilled,
+ user_default as User,
+ user_filled_default as UserFilled,
+ van_default as Van,
+ video_camera_default as VideoCamera,
+ video_camera_filled_default as VideoCameraFilled,
+ video_pause_default as VideoPause,
+ video_play_default as VideoPlay,
+ view_default as View,
+ wallet_default as Wallet,
+ wallet_filled_default as WalletFilled,
+ warn_triangle_filled_default as WarnTriangleFilled,
+ warning_default as Warning,
+ warning_filled_default as WarningFilled,
+ watch_default as Watch,
+ watermelon_default as Watermelon,
+ wind_power_default as WindPower,
+ zoom_in_default as ZoomIn,
+ zoom_out_default as ZoomOut
+};
diff --git a/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js b/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js
new file mode 100644
index 00000000..9494fd53
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js
@@ -0,0 +1,2568 @@
+const __require = /* @__PURE__ */ ((x) =>
+ typeof require !== "undefined"
+ ? require
+ : typeof Proxy !== "undefined"
+ ? new Proxy(x, {
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b],
+ })
+ : x)(function (x) {
+ if (typeof require !== "undefined") return require.apply(this, arguments);
+ throw new Error('Dynamic require of "' + x + '" is not supported');
+});
+
+// node_modules/@microsoft/signalr/dist/esm/Errors.js
+var HttpError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
+ *
+ * @param {string} errorMessage A descriptive error message.
+ * @param {number} statusCode The HTTP status code represented by this error.
+ */
+ constructor(errorMessage, statusCode) {
+ const trueProto = new.target.prototype;
+ super(`${errorMessage}: Status code '${statusCode}'`);
+ this.statusCode = statusCode;
+ this.__proto__ = trueProto;
+ }
+};
+var TimeoutError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.
+ *
+ * @param {string} errorMessage A descriptive error message.
+ */
+ constructor(errorMessage = "A timeout occurred.") {
+ const trueProto = new.target.prototype;
+ super(errorMessage);
+ this.__proto__ = trueProto;
+ }
+};
+var AbortError = class extends Error {
+ /** Constructs a new instance of {@link AbortError}.
+ *
+ * @param {string} errorMessage A descriptive error message.
+ */
+ constructor(errorMessage = "An abort occurred.") {
+ const trueProto = new.target.prototype;
+ super(errorMessage);
+ this.__proto__ = trueProto;
+ }
+};
+var UnsupportedTransportError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
+ *
+ * @param {string} message A descriptive error message.
+ * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.
+ */
+ constructor(message, transport) {
+ const trueProto = new.target.prototype;
+ super(message);
+ this.transport = transport;
+ this.errorType = "UnsupportedTransportError";
+ this.__proto__ = trueProto;
+ }
+};
+var DisabledTransportError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
+ *
+ * @param {string} message A descriptive error message.
+ * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.
+ */
+ constructor(message, transport) {
+ const trueProto = new.target.prototype;
+ super(message);
+ this.transport = transport;
+ this.errorType = "DisabledTransportError";
+ this.__proto__ = trueProto;
+ }
+};
+var FailedToStartTransportError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
+ *
+ * @param {string} message A descriptive error message.
+ * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.
+ */
+ constructor(message, transport) {
+ const trueProto = new.target.prototype;
+ super(message);
+ this.transport = transport;
+ this.errorType = "FailedToStartTransportError";
+ this.__proto__ = trueProto;
+ }
+};
+var FailedToNegotiateWithServerError = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.
+ *
+ * @param {string} message A descriptive error message.
+ */
+ constructor(message) {
+ const trueProto = new.target.prototype;
+ super(message);
+ this.errorType = "FailedToNegotiateWithServerError";
+ this.__proto__ = trueProto;
+ }
+};
+var AggregateErrors = class extends Error {
+ /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
+ *
+ * @param {string} message A descriptive error message.
+ * @param {Error[]} innerErrors The collection of errors this error is aggregating.
+ */
+ constructor(message, innerErrors) {
+ const trueProto = new.target.prototype;
+ super(message);
+ this.innerErrors = innerErrors;
+ this.__proto__ = trueProto;
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/HttpClient.js
+var HttpResponse = class {
+ constructor(statusCode, statusText, content) {
+ this.statusCode = statusCode;
+ this.statusText = statusText;
+ this.content = content;
+ }
+};
+var HttpClient = class {
+ get(url, options) {
+ return this.send({
+ ...options,
+ method: "GET",
+ url
+ });
+ }
+ post(url, options) {
+ return this.send({
+ ...options,
+ method: "POST",
+ url
+ });
+ }
+ delete(url, options) {
+ return this.send({
+ ...options,
+ method: "DELETE",
+ url
+ });
+ }
+ /** Gets all cookies that apply to the specified URL.
+ *
+ * @param url The URL that the cookies are valid for.
+ * @returns {string} A string containing all the key-value cookie pairs for the specified URL.
+ */
+ // @ts-ignore
+ getCookieString(url) {
+ return "";
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/ILogger.js
+var LogLevel;
+(function(LogLevel2) {
+ LogLevel2[LogLevel2["Trace"] = 0] = "Trace";
+ LogLevel2[LogLevel2["Debug"] = 1] = "Debug";
+ LogLevel2[LogLevel2["Information"] = 2] = "Information";
+ LogLevel2[LogLevel2["Warning"] = 3] = "Warning";
+ LogLevel2[LogLevel2["Error"] = 4] = "Error";
+ LogLevel2[LogLevel2["Critical"] = 5] = "Critical";
+ LogLevel2[LogLevel2["None"] = 6] = "None";
+})(LogLevel || (LogLevel = {}));
+
+// node_modules/@microsoft/signalr/dist/esm/Loggers.js
+var NullLogger = class {
+ constructor() {
+ }
+ /** @inheritDoc */
+ // eslint-disable-next-line
+ log(_logLevel, _message) {
+ }
+};
+NullLogger.instance = new NullLogger();
+
+// node_modules/@microsoft/signalr/dist/esm/Utils.js
+var VERSION = "7.0.7";
+var Arg = class {
+ static isRequired(val, name) {
+ if (val === null || val === void 0) {
+ throw new Error(`The '${name}' argument is required.`);
+ }
+ }
+ static isNotEmpty(val, name) {
+ if (!val || val.match(/^\s*$/)) {
+ throw new Error(`The '${name}' argument should not be empty.`);
+ }
+ }
+ static isIn(val, values, name) {
+ if (!(val in values)) {
+ throw new Error(`Unknown ${name} value: ${val}.`);
+ }
+ }
+};
+var Platform = class {
+ // react-native has a window but no document so we should check both
+ static get isBrowser() {
+ return typeof window === "object" && typeof window.document === "object";
+ }
+ // WebWorkers don't have a window object so the isBrowser check would fail
+ static get isWebWorker() {
+ return typeof self === "object" && "importScripts" in self;
+ }
+ // react-native has a window but no document
+ static get isReactNative() {
+ return typeof window === "object" && typeof window.document === "undefined";
+ }
+ // Node apps shouldn't have a window object, but WebWorkers don't either
+ // so we need to check for both WebWorker and window
+ static get isNode() {
+ return !this.isBrowser && !this.isWebWorker && !this.isReactNative;
+ }
+};
+function getDataDetail(data, includeContent) {
+ let detail = "";
+ if (isArrayBuffer(data)) {
+ detail = `Binary data of length ${data.byteLength}`;
+ if (includeContent) {
+ detail += `. Content: '${formatArrayBuffer(data)}'`;
+ }
+ } else if (typeof data === "string") {
+ detail = `String data of length ${data.length}`;
+ if (includeContent) {
+ detail += `. Content: '${data}'`;
+ }
+ }
+ return detail;
+}
+function formatArrayBuffer(data) {
+ const view = new Uint8Array(data);
+ let str = "";
+ view.forEach((num) => {
+ const pad = num < 16 ? "0" : "";
+ str += `0x${pad}${num.toString(16)} `;
+ });
+ return str.substr(0, str.length - 1);
+}
+function isArrayBuffer(val) {
+ return val && typeof ArrayBuffer !== "undefined" && (val instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof
+ val.constructor && val.constructor.name === "ArrayBuffer");
+}
+async function sendMessage(logger, transportName, httpClient, url, content, options) {
+ const headers = {};
+ const [name, value] = getUserAgentHeader();
+ headers[name] = value;
+ logger.log(LogLevel.Trace, `(${transportName} transport) sending data. ${getDataDetail(content, options.logMessageContent)}.`);
+ const responseType = isArrayBuffer(content) ? "arraybuffer" : "text";
+ const response = await httpClient.post(url, {
+ content,
+ headers: { ...headers, ...options.headers },
+ responseType,
+ timeout: options.timeout,
+ withCredentials: options.withCredentials
+ });
+ logger.log(LogLevel.Trace, `(${transportName} transport) request complete. Response status: ${response.statusCode}.`);
+}
+function createLogger(logger) {
+ if (logger === void 0) {
+ return new ConsoleLogger(LogLevel.Information);
+ }
+ if (logger === null) {
+ return NullLogger.instance;
+ }
+ if (logger.log !== void 0) {
+ return logger;
+ }
+ return new ConsoleLogger(logger);
+}
+var SubjectSubscription = class {
+ constructor(subject, observer) {
+ this._subject = subject;
+ this._observer = observer;
+ }
+ dispose() {
+ const index = this._subject.observers.indexOf(this._observer);
+ if (index > -1) {
+ this._subject.observers.splice(index, 1);
+ }
+ if (this._subject.observers.length === 0 && this._subject.cancelCallback) {
+ this._subject.cancelCallback().catch((_) => {
+ });
+ }
+ }
+};
+var ConsoleLogger = class {
+ constructor(minimumLogLevel) {
+ this._minLevel = minimumLogLevel;
+ this.out = console;
+ }
+ log(logLevel, message) {
+ if (logLevel >= this._minLevel) {
+ const msg = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${LogLevel[logLevel]}: ${message}`;
+ switch (logLevel) {
+ case LogLevel.Critical:
+ case LogLevel.Error:
+ this.out.error(msg);
+ break;
+ case LogLevel.Warning:
+ this.out.warn(msg);
+ break;
+ case LogLevel.Information:
+ this.out.info(msg);
+ break;
+ default:
+ this.out.log(msg);
+ break;
+ }
+ }
+ }
+};
+function getUserAgentHeader() {
+ let userAgentHeaderName = "X-SignalR-User-Agent";
+ if (Platform.isNode) {
+ userAgentHeaderName = "User-Agent";
+ }
+ return [userAgentHeaderName, constructUserAgent(VERSION, getOsName(), getRuntime(), getRuntimeVersion())];
+}
+function constructUserAgent(version, os, runtime, runtimeVersion) {
+ let userAgent = "Microsoft SignalR/";
+ const majorAndMinor = version.split(".");
+ userAgent += `${majorAndMinor[0]}.${majorAndMinor[1]}`;
+ userAgent += ` (${version}; `;
+ if (os && os !== "") {
+ userAgent += `${os}; `;
+ } else {
+ userAgent += "Unknown OS; ";
+ }
+ userAgent += `${runtime}`;
+ if (runtimeVersion) {
+ userAgent += `; ${runtimeVersion}`;
+ } else {
+ userAgent += "; Unknown Runtime Version";
+ }
+ userAgent += ")";
+ return userAgent;
+}
+function getOsName() {
+ if (Platform.isNode) {
+ switch (process.platform) {
+ case "win32":
+ return "Windows NT";
+ case "darwin":
+ return "macOS";
+ case "linux":
+ return "Linux";
+ default:
+ return process.platform;
+ }
+ } else {
+ return "";
+ }
+}
+function getRuntimeVersion() {
+ if (Platform.isNode) {
+ return process.versions.node;
+ }
+ return void 0;
+}
+function getRuntime() {
+ if (Platform.isNode) {
+ return "NodeJS";
+ } else {
+ return "Browser";
+ }
+}
+function getErrorString(e) {
+ if (e.stack) {
+ return e.stack;
+ } else if (e.message) {
+ return e.message;
+ }
+ return `${e}`;
+}
+function getGlobalThis() {
+ if (typeof globalThis !== "undefined") {
+ return globalThis;
+ }
+ if (typeof self !== "undefined") {
+ return self;
+ }
+ if (typeof window !== "undefined") {
+ return window;
+ }
+ if (typeof global !== "undefined") {
+ return global;
+ }
+ throw new Error("could not find global");
+}
+
+// node_modules/@microsoft/signalr/dist/esm/FetchHttpClient.js
+var FetchHttpClient = class extends HttpClient {
+ constructor(logger) {
+ super();
+ this._logger = logger;
+ if (typeof fetch === "undefined") {
+ const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
+ this._jar = new (requireFunc("tough-cookie")).CookieJar();
+ this._fetchType = requireFunc("node-fetch");
+ this._fetchType = requireFunc("fetch-cookie")(this._fetchType, this._jar);
+ } else {
+ this._fetchType = fetch.bind(getGlobalThis());
+ }
+ if (typeof AbortController === "undefined") {
+ const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
+ this._abortControllerType = requireFunc("abort-controller");
+ } else {
+ this._abortControllerType = AbortController;
+ }
+ }
+ /** @inheritDoc */
+ async send(request) {
+ if (request.abortSignal && request.abortSignal.aborted) {
+ throw new AbortError();
+ }
+ if (!request.method) {
+ throw new Error("No method defined.");
+ }
+ if (!request.url) {
+ throw new Error("No url defined.");
+ }
+ const abortController = new this._abortControllerType();
+ let error;
+ if (request.abortSignal) {
+ request.abortSignal.onabort = () => {
+ abortController.abort();
+ error = new AbortError();
+ };
+ }
+ let timeoutId = null;
+ if (request.timeout) {
+ const msTimeout = request.timeout;
+ timeoutId = setTimeout(() => {
+ abortController.abort();
+ this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);
+ error = new TimeoutError();
+ }, msTimeout);
+ }
+ if (request.content === "") {
+ request.content = void 0;
+ }
+ if (request.content) {
+ request.headers = request.headers || {};
+ if (isArrayBuffer(request.content)) {
+ request.headers["Content-Type"] = "application/octet-stream";
+ } else {
+ request.headers["Content-Type"] = "text/plain;charset=UTF-8";
+ }
+ }
+ let response;
+ try {
+ response = await this._fetchType(request.url, {
+ body: request.content,
+ cache: "no-cache",
+ credentials: request.withCredentials === true ? "include" : "same-origin",
+ headers: {
+ "X-Requested-With": "XMLHttpRequest",
+ ...request.headers
+ },
+ method: request.method,
+ mode: "cors",
+ redirect: "follow",
+ signal: abortController.signal
+ });
+ } catch (e) {
+ if (error) {
+ throw error;
+ }
+ this._logger.log(LogLevel.Warning, `Error from HTTP request. ${e}.`);
+ throw e;
+ } finally {
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ }
+ if (request.abortSignal) {
+ request.abortSignal.onabort = null;
+ }
+ }
+ if (!response.ok) {
+ const errorMessage = await deserializeContent(response, "text");
+ throw new HttpError(errorMessage || response.statusText, response.status);
+ }
+ const content = deserializeContent(response, request.responseType);
+ const payload = await content;
+ return new HttpResponse(response.status, response.statusText, payload);
+ }
+ getCookieString(url) {
+ let cookies = "";
+ if (Platform.isNode && this._jar) {
+ this._jar.getCookies(url, (e, c) => cookies = c.join("; "));
+ }
+ return cookies;
+ }
+};
+function deserializeContent(response, responseType) {
+ let content;
+ switch (responseType) {
+ case "arraybuffer":
+ content = response.arrayBuffer();
+ break;
+ case "text":
+ content = response.text();
+ break;
+ case "blob":
+ case "document":
+ case "json":
+ throw new Error(`${responseType} is not supported.`);
+ default:
+ content = response.text();
+ break;
+ }
+ return content;
+}
+
+// node_modules/@microsoft/signalr/dist/esm/XhrHttpClient.js
+var XhrHttpClient = class extends HttpClient {
+ constructor(logger) {
+ super();
+ this._logger = logger;
+ }
+ /** @inheritDoc */
+ send(request) {
+ if (request.abortSignal && request.abortSignal.aborted) {
+ return Promise.reject(new AbortError());
+ }
+ if (!request.method) {
+ return Promise.reject(new Error("No method defined."));
+ }
+ if (!request.url) {
+ return Promise.reject(new Error("No url defined."));
+ }
+ return new Promise((resolve, reject) => {
+ const xhr = new XMLHttpRequest();
+ xhr.open(request.method, request.url, true);
+ xhr.withCredentials = request.withCredentials === void 0 ? true : request.withCredentials;
+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+ if (request.content === "") {
+ request.content = void 0;
+ }
+ if (request.content) {
+ if (isArrayBuffer(request.content)) {
+ xhr.setRequestHeader("Content-Type", "application/octet-stream");
+ } else {
+ xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
+ }
+ }
+ const headers = request.headers;
+ if (headers) {
+ Object.keys(headers).forEach((header) => {
+ xhr.setRequestHeader(header, headers[header]);
+ });
+ }
+ if (request.responseType) {
+ xhr.responseType = request.responseType;
+ }
+ if (request.abortSignal) {
+ request.abortSignal.onabort = () => {
+ xhr.abort();
+ reject(new AbortError());
+ };
+ }
+ if (request.timeout) {
+ xhr.timeout = request.timeout;
+ }
+ xhr.onload = () => {
+ if (request.abortSignal) {
+ request.abortSignal.onabort = null;
+ }
+ if (xhr.status >= 200 && xhr.status < 300) {
+ resolve(new HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText));
+ } else {
+ reject(new HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status));
+ }
+ };
+ xhr.onerror = () => {
+ this._logger.log(LogLevel.Warning, `Error from HTTP request. ${xhr.status}: ${xhr.statusText}.`);
+ reject(new HttpError(xhr.statusText, xhr.status));
+ };
+ xhr.ontimeout = () => {
+ this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);
+ reject(new TimeoutError());
+ };
+ xhr.send(request.content);
+ });
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/DefaultHttpClient.js
+var DefaultHttpClient = class extends HttpClient {
+ /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
+ constructor(logger) {
+ super();
+ if (typeof fetch !== "undefined" || Platform.isNode) {
+ this._httpClient = new FetchHttpClient(logger);
+ } else if (typeof XMLHttpRequest !== "undefined") {
+ this._httpClient = new XhrHttpClient(logger);
+ } else {
+ throw new Error("No usable HttpClient found.");
+ }
+ }
+ /** @inheritDoc */
+ send(request) {
+ if (request.abortSignal && request.abortSignal.aborted) {
+ return Promise.reject(new AbortError());
+ }
+ if (!request.method) {
+ return Promise.reject(new Error("No method defined."));
+ }
+ if (!request.url) {
+ return Promise.reject(new Error("No url defined."));
+ }
+ return this._httpClient.send(request);
+ }
+ getCookieString(url) {
+ return this._httpClient.getCookieString(url);
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/TextMessageFormat.js
+var TextMessageFormat = class {
+ static write(output) {
+ return `${output}${TextMessageFormat.RecordSeparator}`;
+ }
+ static parse(input) {
+ if (input[input.length - 1] !== TextMessageFormat.RecordSeparator) {
+ throw new Error("Message is incomplete.");
+ }
+ const messages = input.split(TextMessageFormat.RecordSeparator);
+ messages.pop();
+ return messages;
+ }
+};
+TextMessageFormat.RecordSeparatorCode = 30;
+TextMessageFormat.RecordSeparator = String.fromCharCode(TextMessageFormat.RecordSeparatorCode);
+
+// node_modules/@microsoft/signalr/dist/esm/HandshakeProtocol.js
+var HandshakeProtocol = class {
+ // Handshake request is always JSON
+ writeHandshakeRequest(handshakeRequest) {
+ return TextMessageFormat.write(JSON.stringify(handshakeRequest));
+ }
+ parseHandshakeResponse(data) {
+ let messageData;
+ let remainingData;
+ if (isArrayBuffer(data)) {
+ const binaryData = new Uint8Array(data);
+ const separatorIndex = binaryData.indexOf(TextMessageFormat.RecordSeparatorCode);
+ if (separatorIndex === -1) {
+ throw new Error("Message is incomplete.");
+ }
+ const responseLength = separatorIndex + 1;
+ messageData = String.fromCharCode.apply(null, Array.prototype.slice.call(binaryData.slice(0, responseLength)));
+ remainingData = binaryData.byteLength > responseLength ? binaryData.slice(responseLength).buffer : null;
+ } else {
+ const textData = data;
+ const separatorIndex = textData.indexOf(TextMessageFormat.RecordSeparator);
+ if (separatorIndex === -1) {
+ throw new Error("Message is incomplete.");
+ }
+ const responseLength = separatorIndex + 1;
+ messageData = textData.substring(0, responseLength);
+ remainingData = textData.length > responseLength ? textData.substring(responseLength) : null;
+ }
+ const messages = TextMessageFormat.parse(messageData);
+ const response = JSON.parse(messages[0]);
+ if (response.type) {
+ throw new Error("Expected a handshake response from the server.");
+ }
+ const responseMessage = response;
+ return [remainingData, responseMessage];
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/IHubProtocol.js
+var MessageType;
+(function(MessageType2) {
+ MessageType2[MessageType2["Invocation"] = 1] = "Invocation";
+ MessageType2[MessageType2["StreamItem"] = 2] = "StreamItem";
+ MessageType2[MessageType2["Completion"] = 3] = "Completion";
+ MessageType2[MessageType2["StreamInvocation"] = 4] = "StreamInvocation";
+ MessageType2[MessageType2["CancelInvocation"] = 5] = "CancelInvocation";
+ MessageType2[MessageType2["Ping"] = 6] = "Ping";
+ MessageType2[MessageType2["Close"] = 7] = "Close";
+})(MessageType || (MessageType = {}));
+
+// node_modules/@microsoft/signalr/dist/esm/Subject.js
+var Subject = class {
+ constructor() {
+ this.observers = [];
+ }
+ next(item) {
+ for (const observer of this.observers) {
+ observer.next(item);
+ }
+ }
+ error(err) {
+ for (const observer of this.observers) {
+ if (observer.error) {
+ observer.error(err);
+ }
+ }
+ }
+ complete() {
+ for (const observer of this.observers) {
+ if (observer.complete) {
+ observer.complete();
+ }
+ }
+ }
+ subscribe(observer) {
+ this.observers.push(observer);
+ return new SubjectSubscription(this, observer);
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/HubConnection.js
+var DEFAULT_TIMEOUT_IN_MS = 30 * 1e3;
+var DEFAULT_PING_INTERVAL_IN_MS = 15 * 1e3;
+var HubConnectionState;
+(function(HubConnectionState2) {
+ HubConnectionState2["Disconnected"] = "Disconnected";
+ HubConnectionState2["Connecting"] = "Connecting";
+ HubConnectionState2["Connected"] = "Connected";
+ HubConnectionState2["Disconnecting"] = "Disconnecting";
+ HubConnectionState2["Reconnecting"] = "Reconnecting";
+})(HubConnectionState || (HubConnectionState = {}));
+var HubConnection = class {
+ constructor(connection, logger, protocol, reconnectPolicy) {
+ this._nextKeepAlive = 0;
+ this._freezeEventListener = () => {
+ this._logger.log(LogLevel.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
+ };
+ Arg.isRequired(connection, "connection");
+ Arg.isRequired(logger, "logger");
+ Arg.isRequired(protocol, "protocol");
+ this.serverTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MS;
+ this.keepAliveIntervalInMilliseconds = DEFAULT_PING_INTERVAL_IN_MS;
+ this._logger = logger;
+ this._protocol = protocol;
+ this.connection = connection;
+ this._reconnectPolicy = reconnectPolicy;
+ this._handshakeProtocol = new HandshakeProtocol();
+ this.connection.onreceive = (data) => this._processIncomingData(data);
+ this.connection.onclose = (error) => this._connectionClosed(error);
+ this._callbacks = {};
+ this._methods = {};
+ this._closedCallbacks = [];
+ this._reconnectingCallbacks = [];
+ this._reconnectedCallbacks = [];
+ this._invocationId = 0;
+ this._receivedHandshakeResponse = false;
+ this._connectionState = HubConnectionState.Disconnected;
+ this._connectionStarted = false;
+ this._cachedPingMessage = this._protocol.writeMessage({ type: MessageType.Ping });
+ }
+ /** @internal */
+ // Using a public static factory method means we can have a private constructor and an _internal_
+ // create method that can be used by HubConnectionBuilder. An "internal" constructor would just
+ // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a
+ // public parameter-less constructor.
+ static create(connection, logger, protocol, reconnectPolicy) {
+ return new HubConnection(connection, logger, protocol, reconnectPolicy);
+ }
+ /** Indicates the state of the {@link HubConnection} to the server. */
+ get state() {
+ return this._connectionState;
+ }
+ /** Represents the connection id of the {@link HubConnection} on the server. The connection id will be null when the connection is either
+ * in the disconnected state or if the negotiation step was skipped.
+ */
+ get connectionId() {
+ return this.connection ? this.connection.connectionId || null : null;
+ }
+ /** Indicates the url of the {@link HubConnection} to the server. */
+ get baseUrl() {
+ return this.connection.baseUrl || "";
+ }
+ /**
+ * Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or
+ * Reconnecting states.
+ * @param {string} url The url to connect to.
+ */
+ set baseUrl(url) {
+ if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) {
+ throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
+ }
+ if (!url) {
+ throw new Error("The HubConnection url must be a valid url.");
+ }
+ this.connection.baseUrl = url;
+ }
+ /** Starts the connection.
+ *
+ * @returns {Promise
} A Promise that resolves when the connection has been successfully established, or rejects with an error.
+ */
+ start() {
+ this._startPromise = this._startWithStateTransitions();
+ return this._startPromise;
+ }
+ async _startWithStateTransitions() {
+ if (this._connectionState !== HubConnectionState.Disconnected) {
+ return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));
+ }
+ this._connectionState = HubConnectionState.Connecting;
+ this._logger.log(LogLevel.Debug, "Starting HubConnection.");
+ try {
+ await this._startInternal();
+ if (Platform.isBrowser) {
+ window.document.addEventListener("freeze", this._freezeEventListener);
+ }
+ this._connectionState = HubConnectionState.Connected;
+ this._connectionStarted = true;
+ this._logger.log(LogLevel.Debug, "HubConnection connected successfully.");
+ } catch (e) {
+ this._connectionState = HubConnectionState.Disconnected;
+ this._logger.log(LogLevel.Debug, `HubConnection failed to start successfully because of error '${e}'.`);
+ return Promise.reject(e);
+ }
+ }
+ async _startInternal() {
+ this._stopDuringStartError = void 0;
+ this._receivedHandshakeResponse = false;
+ const handshakePromise = new Promise((resolve, reject) => {
+ this._handshakeResolver = resolve;
+ this._handshakeRejecter = reject;
+ });
+ await this.connection.start(this._protocol.transferFormat);
+ try {
+ const handshakeRequest = {
+ protocol: this._protocol.name,
+ version: this._protocol.version
+ };
+ this._logger.log(LogLevel.Debug, "Sending handshake request.");
+ await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(handshakeRequest));
+ this._logger.log(LogLevel.Information, `Using HubProtocol '${this._protocol.name}'.`);
+ this._cleanupTimeout();
+ this._resetTimeoutPeriod();
+ this._resetKeepAliveInterval();
+ await handshakePromise;
+ if (this._stopDuringStartError) {
+ throw this._stopDuringStartError;
+ }
+ if (!this.connection.features.inherentKeepAlive) {
+ await this._sendMessage(this._cachedPingMessage);
+ }
+ } catch (e) {
+ this._logger.log(LogLevel.Debug, `Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`);
+ this._cleanupTimeout();
+ this._cleanupPingTimer();
+ await this.connection.stop(e);
+ throw e;
+ }
+ }
+ /** Stops the connection.
+ *
+ * @returns {Promise} A Promise that resolves when the connection has been successfully terminated, or rejects with an error.
+ */
+ async stop() {
+ const startPromise = this._startPromise;
+ this._stopPromise = this._stopInternal();
+ await this._stopPromise;
+ try {
+ await startPromise;
+ } catch (e) {
+ }
+ }
+ _stopInternal(error) {
+ if (this._connectionState === HubConnectionState.Disconnected) {
+ this._logger.log(LogLevel.Debug, `Call to HubConnection.stop(${error}) ignored because it is already in the disconnected state.`);
+ return Promise.resolve();
+ }
+ if (this._connectionState === HubConnectionState.Disconnecting) {
+ this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);
+ return this._stopPromise;
+ }
+ this._connectionState = HubConnectionState.Disconnecting;
+ this._logger.log(LogLevel.Debug, "Stopping HubConnection.");
+ if (this._reconnectDelayHandle) {
+ this._logger.log(LogLevel.Debug, "Connection stopped during reconnect delay. Done reconnecting.");
+ clearTimeout(this._reconnectDelayHandle);
+ this._reconnectDelayHandle = void 0;
+ this._completeClose();
+ return Promise.resolve();
+ }
+ this._cleanupTimeout();
+ this._cleanupPingTimer();
+ this._stopDuringStartError = error || new AbortError("The connection was stopped before the hub handshake could complete.");
+ return this.connection.stop(error);
+ }
+ /** Invokes a streaming hub method on the server using the specified name and arguments.
+ *
+ * @typeparam T The type of the items returned by the server.
+ * @param {string} methodName The name of the server method to invoke.
+ * @param {any[]} args The arguments used to invoke the server method.
+ * @returns {IStreamResult} An object that yields results from the server as they are received.
+ */
+ stream(methodName, ...args) {
+ const [streams, streamIds] = this._replaceStreamingParams(args);
+ const invocationDescriptor = this._createStreamInvocation(methodName, args, streamIds);
+ let promiseQueue;
+ const subject = new Subject();
+ subject.cancelCallback = () => {
+ const cancelInvocation = this._createCancelInvocation(invocationDescriptor.invocationId);
+ delete this._callbacks[invocationDescriptor.invocationId];
+ return promiseQueue.then(() => {
+ return this._sendWithProtocol(cancelInvocation);
+ });
+ };
+ this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {
+ if (error) {
+ subject.error(error);
+ return;
+ } else if (invocationEvent) {
+ if (invocationEvent.type === MessageType.Completion) {
+ if (invocationEvent.error) {
+ subject.error(new Error(invocationEvent.error));
+ } else {
+ subject.complete();
+ }
+ } else {
+ subject.next(invocationEvent.item);
+ }
+ }
+ };
+ promiseQueue = this._sendWithProtocol(invocationDescriptor).catch((e) => {
+ subject.error(e);
+ delete this._callbacks[invocationDescriptor.invocationId];
+ });
+ this._launchStreams(streams, promiseQueue);
+ return subject;
+ }
+ _sendMessage(message) {
+ this._resetKeepAliveInterval();
+ return this.connection.send(message);
+ }
+ /**
+ * Sends a js object to the server.
+ * @param message The js object to serialize and send.
+ */
+ _sendWithProtocol(message) {
+ return this._sendMessage(this._protocol.writeMessage(message));
+ }
+ /** Invokes a hub method on the server using the specified name and arguments. Does not wait for a response from the receiver.
+ *
+ * The Promise returned by this method resolves when the client has sent the invocation to the server. The server may still
+ * be processing the invocation.
+ *
+ * @param {string} methodName The name of the server method to invoke.
+ * @param {any[]} args The arguments used to invoke the server method.
+ * @returns {Promise} A Promise that resolves when the invocation has been successfully sent, or rejects with an error.
+ */
+ send(methodName, ...args) {
+ const [streams, streamIds] = this._replaceStreamingParams(args);
+ const sendPromise = this._sendWithProtocol(this._createInvocation(methodName, args, true, streamIds));
+ this._launchStreams(streams, sendPromise);
+ return sendPromise;
+ }
+ /** Invokes a hub method on the server using the specified name and arguments.
+ *
+ * The Promise returned by this method resolves when the server indicates it has finished invoking the method. When the promise
+ * resolves, the server has finished invoking the method. If the server method returns a result, it is produced as the result of
+ * resolving the Promise.
+ *
+ * @typeparam T The expected return type.
+ * @param {string} methodName The name of the server method to invoke.
+ * @param {any[]} args The arguments used to invoke the server method.
+ * @returns {Promise} A Promise that resolves with the result of the server method (if any), or rejects with an error.
+ */
+ invoke(methodName, ...args) {
+ const [streams, streamIds] = this._replaceStreamingParams(args);
+ const invocationDescriptor = this._createInvocation(methodName, args, false, streamIds);
+ const p = new Promise((resolve, reject) => {
+ this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {
+ if (error) {
+ reject(error);
+ return;
+ } else if (invocationEvent) {
+ if (invocationEvent.type === MessageType.Completion) {
+ if (invocationEvent.error) {
+ reject(new Error(invocationEvent.error));
+ } else {
+ resolve(invocationEvent.result);
+ }
+ } else {
+ reject(new Error(`Unexpected message type: ${invocationEvent.type}`));
+ }
+ }
+ };
+ const promiseQueue = this._sendWithProtocol(invocationDescriptor).catch((e) => {
+ reject(e);
+ delete this._callbacks[invocationDescriptor.invocationId];
+ });
+ this._launchStreams(streams, promiseQueue);
+ });
+ return p;
+ }
+ on(methodName, newMethod) {
+ if (!methodName || !newMethod) {
+ return;
+ }
+ methodName = methodName.toLowerCase();
+ if (!this._methods[methodName]) {
+ this._methods[methodName] = [];
+ }
+ if (this._methods[methodName].indexOf(newMethod) !== -1) {
+ return;
+ }
+ this._methods[methodName].push(newMethod);
+ }
+ off(methodName, method) {
+ if (!methodName) {
+ return;
+ }
+ methodName = methodName.toLowerCase();
+ const handlers = this._methods[methodName];
+ if (!handlers) {
+ return;
+ }
+ if (method) {
+ const removeIdx = handlers.indexOf(method);
+ if (removeIdx !== -1) {
+ handlers.splice(removeIdx, 1);
+ if (handlers.length === 0) {
+ delete this._methods[methodName];
+ }
+ }
+ } else {
+ delete this._methods[methodName];
+ }
+ }
+ /** Registers a handler that will be invoked when the connection is closed.
+ *
+ * @param {Function} callback The handler that will be invoked when the connection is closed. Optionally receives a single argument containing the error that caused the connection to close (if any).
+ */
+ onclose(callback) {
+ if (callback) {
+ this._closedCallbacks.push(callback);
+ }
+ }
+ /** Registers a handler that will be invoked when the connection starts reconnecting.
+ *
+ * @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).
+ */
+ onreconnecting(callback) {
+ if (callback) {
+ this._reconnectingCallbacks.push(callback);
+ }
+ }
+ /** Registers a handler that will be invoked when the connection successfully reconnects.
+ *
+ * @param {Function} callback The handler that will be invoked when the connection successfully reconnects.
+ */
+ onreconnected(callback) {
+ if (callback) {
+ this._reconnectedCallbacks.push(callback);
+ }
+ }
+ _processIncomingData(data) {
+ this._cleanupTimeout();
+ if (!this._receivedHandshakeResponse) {
+ data = this._processHandshakeResponse(data);
+ this._receivedHandshakeResponse = true;
+ }
+ if (data) {
+ const messages = this._protocol.parseMessages(data, this._logger);
+ for (const message of messages) {
+ switch (message.type) {
+ case MessageType.Invocation:
+ this._invokeClientMethod(message);
+ break;
+ case MessageType.StreamItem:
+ case MessageType.Completion: {
+ const callback = this._callbacks[message.invocationId];
+ if (callback) {
+ if (message.type === MessageType.Completion) {
+ delete this._callbacks[message.invocationId];
+ }
+ try {
+ callback(message);
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `Stream callback threw error: ${getErrorString(e)}`);
+ }
+ }
+ break;
+ }
+ case MessageType.Ping:
+ break;
+ case MessageType.Close: {
+ this._logger.log(LogLevel.Information, "Close message received from server.");
+ const error = message.error ? new Error("Server returned an error on close: " + message.error) : void 0;
+ if (message.allowReconnect === true) {
+ this.connection.stop(error);
+ } else {
+ this._stopPromise = this._stopInternal(error);
+ }
+ break;
+ }
+ default:
+ this._logger.log(LogLevel.Warning, `Invalid message type: ${message.type}.`);
+ break;
+ }
+ }
+ }
+ this._resetTimeoutPeriod();
+ }
+ _processHandshakeResponse(data) {
+ let responseMessage;
+ let remainingData;
+ try {
+ [remainingData, responseMessage] = this._handshakeProtocol.parseHandshakeResponse(data);
+ } catch (e) {
+ const message = "Error parsing handshake response: " + e;
+ this._logger.log(LogLevel.Error, message);
+ const error = new Error(message);
+ this._handshakeRejecter(error);
+ throw error;
+ }
+ if (responseMessage.error) {
+ const message = "Server returned handshake error: " + responseMessage.error;
+ this._logger.log(LogLevel.Error, message);
+ const error = new Error(message);
+ this._handshakeRejecter(error);
+ throw error;
+ } else {
+ this._logger.log(LogLevel.Debug, "Server handshake complete.");
+ }
+ this._handshakeResolver();
+ return remainingData;
+ }
+ _resetKeepAliveInterval() {
+ if (this.connection.features.inherentKeepAlive) {
+ return;
+ }
+ this._nextKeepAlive = (/* @__PURE__ */ new Date()).getTime() + this.keepAliveIntervalInMilliseconds;
+ this._cleanupPingTimer();
+ }
+ _resetTimeoutPeriod() {
+ if (!this.connection.features || !this.connection.features.inherentKeepAlive) {
+ this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds);
+ if (this._pingServerHandle === void 0) {
+ let nextPing = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime();
+ if (nextPing < 0) {
+ nextPing = 0;
+ }
+ this._pingServerHandle = setTimeout(async () => {
+ if (this._connectionState === HubConnectionState.Connected) {
+ try {
+ await this._sendMessage(this._cachedPingMessage);
+ } catch {
+ this._cleanupPingTimer();
+ }
+ }
+ }, nextPing);
+ }
+ }
+ }
+ // eslint-disable-next-line @typescript-eslint/naming-convention
+ serverTimeout() {
+ this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."));
+ }
+ async _invokeClientMethod(invocationMessage) {
+ const methodName = invocationMessage.target.toLowerCase();
+ const methods = this._methods[methodName];
+ if (!methods) {
+ this._logger.log(LogLevel.Warning, `No client method with the name '${methodName}' found.`);
+ if (invocationMessage.invocationId) {
+ this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`);
+ await this._sendWithProtocol(this._createCompletionMessage(invocationMessage.invocationId, "Client didn't provide a result.", null));
+ }
+ return;
+ }
+ const methodsCopy = methods.slice();
+ const expectsResponse = invocationMessage.invocationId ? true : false;
+ let res;
+ let exception;
+ let completionMessage;
+ for (const m of methodsCopy) {
+ try {
+ const prevRes = res;
+ res = await m.apply(this, invocationMessage.arguments);
+ if (expectsResponse && res && prevRes) {
+ this._logger.log(LogLevel.Error, `Multiple results provided for '${methodName}'. Sending error to server.`);
+ completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `Client provided multiple results.`, null);
+ }
+ exception = void 0;
+ } catch (e) {
+ exception = e;
+ this._logger.log(LogLevel.Error, `A callback for the method '${methodName}' threw error '${e}'.`);
+ }
+ }
+ if (completionMessage) {
+ await this._sendWithProtocol(completionMessage);
+ } else if (expectsResponse) {
+ if (exception) {
+ completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `${exception}`, null);
+ } else if (res !== void 0) {
+ completionMessage = this._createCompletionMessage(invocationMessage.invocationId, null, res);
+ } else {
+ this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`);
+ completionMessage = this._createCompletionMessage(invocationMessage.invocationId, "Client didn't provide a result.", null);
+ }
+ await this._sendWithProtocol(completionMessage);
+ } else {
+ if (res) {
+ this._logger.log(LogLevel.Error, `Result given for '${methodName}' method but server is not expecting a result.`);
+ }
+ }
+ }
+ _connectionClosed(error) {
+ this._logger.log(LogLevel.Debug, `HubConnection.connectionClosed(${error}) called while in state ${this._connectionState}.`);
+ this._stopDuringStartError = this._stopDuringStartError || error || new AbortError("The underlying connection was closed before the hub handshake could complete.");
+ if (this._handshakeResolver) {
+ this._handshakeResolver();
+ }
+ this._cancelCallbacksWithError(error || new Error("Invocation canceled due to the underlying connection being closed."));
+ this._cleanupTimeout();
+ this._cleanupPingTimer();
+ if (this._connectionState === HubConnectionState.Disconnecting) {
+ this._completeClose(error);
+ } else if (this._connectionState === HubConnectionState.Connected && this._reconnectPolicy) {
+ this._reconnect(error);
+ } else if (this._connectionState === HubConnectionState.Connected) {
+ this._completeClose(error);
+ }
+ }
+ _completeClose(error) {
+ if (this._connectionStarted) {
+ this._connectionState = HubConnectionState.Disconnected;
+ this._connectionStarted = false;
+ if (Platform.isBrowser) {
+ window.document.removeEventListener("freeze", this._freezeEventListener);
+ }
+ try {
+ this._closedCallbacks.forEach((c) => c.apply(this, [error]));
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `An onclose callback called with error '${error}' threw error '${e}'.`);
+ }
+ }
+ }
+ async _reconnect(error) {
+ const reconnectStartTime = Date.now();
+ let previousReconnectAttempts = 0;
+ let retryError = error !== void 0 ? error : new Error("Attempting to reconnect due to a unknown error.");
+ let nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, 0, retryError);
+ if (nextRetryDelay === null) {
+ this._logger.log(LogLevel.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt.");
+ this._completeClose(error);
+ return;
+ }
+ this._connectionState = HubConnectionState.Reconnecting;
+ if (error) {
+ this._logger.log(LogLevel.Information, `Connection reconnecting because of error '${error}'.`);
+ } else {
+ this._logger.log(LogLevel.Information, "Connection reconnecting.");
+ }
+ if (this._reconnectingCallbacks.length !== 0) {
+ try {
+ this._reconnectingCallbacks.forEach((c) => c.apply(this, [error]));
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `An onreconnecting callback called with error '${error}' threw error '${e}'.`);
+ }
+ if (this._connectionState !== HubConnectionState.Reconnecting) {
+ this._logger.log(LogLevel.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");
+ return;
+ }
+ }
+ while (nextRetryDelay !== null) {
+ this._logger.log(LogLevel.Information, `Reconnect attempt number ${previousReconnectAttempts} will start in ${nextRetryDelay} ms.`);
+ await new Promise((resolve) => {
+ this._reconnectDelayHandle = setTimeout(resolve, nextRetryDelay);
+ });
+ this._reconnectDelayHandle = void 0;
+ if (this._connectionState !== HubConnectionState.Reconnecting) {
+ this._logger.log(LogLevel.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting.");
+ return;
+ }
+ try {
+ await this._startInternal();
+ this._connectionState = HubConnectionState.Connected;
+ this._logger.log(LogLevel.Information, "HubConnection reconnected successfully.");
+ if (this._reconnectedCallbacks.length !== 0) {
+ try {
+ this._reconnectedCallbacks.forEach((c) => c.apply(this, [this.connection.connectionId]));
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`);
+ }
+ }
+ return;
+ } catch (e) {
+ this._logger.log(LogLevel.Information, `Reconnect attempt failed because of error '${e}'.`);
+ if (this._connectionState !== HubConnectionState.Reconnecting) {
+ this._logger.log(LogLevel.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`);
+ if (this._connectionState === HubConnectionState.Disconnecting) {
+ this._completeClose();
+ }
+ return;
+ }
+ retryError = e instanceof Error ? e : new Error(e.toString());
+ nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, Date.now() - reconnectStartTime, retryError);
+ }
+ }
+ this._logger.log(LogLevel.Information, `Reconnect retries have been exhausted after ${Date.now() - reconnectStartTime} ms and ${previousReconnectAttempts} failed attempts. Connection disconnecting.`);
+ this._completeClose();
+ }
+ _getNextRetryDelay(previousRetryCount, elapsedMilliseconds, retryReason) {
+ try {
+ return this._reconnectPolicy.nextRetryDelayInMilliseconds({
+ elapsedMilliseconds,
+ previousRetryCount,
+ retryReason
+ });
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${previousRetryCount}, ${elapsedMilliseconds}) threw error '${e}'.`);
+ return null;
+ }
+ }
+ _cancelCallbacksWithError(error) {
+ const callbacks = this._callbacks;
+ this._callbacks = {};
+ Object.keys(callbacks).forEach((key) => {
+ const callback = callbacks[key];
+ try {
+ callback(null, error);
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `Stream 'error' callback called with '${error}' threw error: ${getErrorString(e)}`);
+ }
+ });
+ }
+ _cleanupPingTimer() {
+ if (this._pingServerHandle) {
+ clearTimeout(this._pingServerHandle);
+ this._pingServerHandle = void 0;
+ }
+ }
+ _cleanupTimeout() {
+ if (this._timeoutHandle) {
+ clearTimeout(this._timeoutHandle);
+ }
+ }
+ _createInvocation(methodName, args, nonblocking, streamIds) {
+ if (nonblocking) {
+ if (streamIds.length !== 0) {
+ return {
+ arguments: args,
+ streamIds,
+ target: methodName,
+ type: MessageType.Invocation
+ };
+ } else {
+ return {
+ arguments: args,
+ target: methodName,
+ type: MessageType.Invocation
+ };
+ }
+ } else {
+ const invocationId = this._invocationId;
+ this._invocationId++;
+ if (streamIds.length !== 0) {
+ return {
+ arguments: args,
+ invocationId: invocationId.toString(),
+ streamIds,
+ target: methodName,
+ type: MessageType.Invocation
+ };
+ } else {
+ return {
+ arguments: args,
+ invocationId: invocationId.toString(),
+ target: methodName,
+ type: MessageType.Invocation
+ };
+ }
+ }
+ }
+ _launchStreams(streams, promiseQueue) {
+ if (streams.length === 0) {
+ return;
+ }
+ if (!promiseQueue) {
+ promiseQueue = Promise.resolve();
+ }
+ for (const streamId in streams) {
+ streams[streamId].subscribe({
+ complete: () => {
+ promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId)));
+ },
+ error: (err) => {
+ let message;
+ if (err instanceof Error) {
+ message = err.message;
+ } else if (err && err.toString) {
+ message = err.toString();
+ } else {
+ message = "Unknown error";
+ }
+ promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId, message)));
+ },
+ next: (item) => {
+ promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createStreamItemMessage(streamId, item)));
+ }
+ });
+ }
+ }
+ _replaceStreamingParams(args) {
+ const streams = [];
+ const streamIds = [];
+ for (let i = 0; i < args.length; i++) {
+ const argument = args[i];
+ if (this._isObservable(argument)) {
+ const streamId = this._invocationId;
+ this._invocationId++;
+ streams[streamId] = argument;
+ streamIds.push(streamId.toString());
+ args.splice(i, 1);
+ }
+ }
+ return [streams, streamIds];
+ }
+ _isObservable(arg) {
+ return arg && arg.subscribe && typeof arg.subscribe === "function";
+ }
+ _createStreamInvocation(methodName, args, streamIds) {
+ const invocationId = this._invocationId;
+ this._invocationId++;
+ if (streamIds.length !== 0) {
+ return {
+ arguments: args,
+ invocationId: invocationId.toString(),
+ streamIds,
+ target: methodName,
+ type: MessageType.StreamInvocation
+ };
+ } else {
+ return {
+ arguments: args,
+ invocationId: invocationId.toString(),
+ target: methodName,
+ type: MessageType.StreamInvocation
+ };
+ }
+ }
+ _createCancelInvocation(id) {
+ return {
+ invocationId: id,
+ type: MessageType.CancelInvocation
+ };
+ }
+ _createStreamItemMessage(id, item) {
+ return {
+ invocationId: id,
+ item,
+ type: MessageType.StreamItem
+ };
+ }
+ _createCompletionMessage(id, error, result) {
+ if (error) {
+ return {
+ error,
+ invocationId: id,
+ type: MessageType.Completion
+ };
+ }
+ return {
+ invocationId: id,
+ result,
+ type: MessageType.Completion
+ };
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/DefaultReconnectPolicy.js
+var DEFAULT_RETRY_DELAYS_IN_MILLISECONDS = [0, 2e3, 1e4, 3e4, null];
+var DefaultReconnectPolicy = class {
+ constructor(retryDelays) {
+ this._retryDelays = retryDelays !== void 0 ? [...retryDelays, null] : DEFAULT_RETRY_DELAYS_IN_MILLISECONDS;
+ }
+ nextRetryDelayInMilliseconds(retryContext) {
+ return this._retryDelays[retryContext.previousRetryCount];
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/HeaderNames.js
+var HeaderNames = class {
+};
+HeaderNames.Authorization = "Authorization";
+HeaderNames.Cookie = "Cookie";
+
+// node_modules/@microsoft/signalr/dist/esm/AccessTokenHttpClient.js
+var AccessTokenHttpClient = class extends HttpClient {
+ constructor(innerClient, accessTokenFactory) {
+ super();
+ this._innerClient = innerClient;
+ this._accessTokenFactory = accessTokenFactory;
+ }
+ async send(request) {
+ let allowRetry = true;
+ if (this._accessTokenFactory && (!this._accessToken || request.url && request.url.indexOf("/negotiate?") > 0)) {
+ allowRetry = false;
+ this._accessToken = await this._accessTokenFactory();
+ }
+ this._setAuthorizationHeader(request);
+ const response = await this._innerClient.send(request);
+ if (allowRetry && response.statusCode === 401 && this._accessTokenFactory) {
+ this._accessToken = await this._accessTokenFactory();
+ this._setAuthorizationHeader(request);
+ return await this._innerClient.send(request);
+ }
+ return response;
+ }
+ _setAuthorizationHeader(request) {
+ if (!request.headers) {
+ request.headers = {};
+ }
+ if (this._accessToken) {
+ request.headers[HeaderNames.Authorization] = `Bearer ${this._accessToken}`;
+ } else if (this._accessTokenFactory) {
+ if (request.headers[HeaderNames.Authorization]) {
+ delete request.headers[HeaderNames.Authorization];
+ }
+ }
+ }
+ getCookieString(url) {
+ return this._innerClient.getCookieString(url);
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/ITransport.js
+var HttpTransportType;
+(function(HttpTransportType2) {
+ HttpTransportType2[HttpTransportType2["None"] = 0] = "None";
+ HttpTransportType2[HttpTransportType2["WebSockets"] = 1] = "WebSockets";
+ HttpTransportType2[HttpTransportType2["ServerSentEvents"] = 2] = "ServerSentEvents";
+ HttpTransportType2[HttpTransportType2["LongPolling"] = 4] = "LongPolling";
+})(HttpTransportType || (HttpTransportType = {}));
+var TransferFormat;
+(function(TransferFormat2) {
+ TransferFormat2[TransferFormat2["Text"] = 1] = "Text";
+ TransferFormat2[TransferFormat2["Binary"] = 2] = "Binary";
+})(TransferFormat || (TransferFormat = {}));
+
+// node_modules/@microsoft/signalr/dist/esm/AbortController.js
+var AbortController2 = class {
+ constructor() {
+ this._isAborted = false;
+ this.onabort = null;
+ }
+ abort() {
+ if (!this._isAborted) {
+ this._isAborted = true;
+ if (this.onabort) {
+ this.onabort();
+ }
+ }
+ }
+ get signal() {
+ return this;
+ }
+ get aborted() {
+ return this._isAborted;
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js
+var LongPollingTransport = class {
+ constructor(httpClient, logger, options) {
+ this._httpClient = httpClient;
+ this._logger = logger;
+ this._pollAbort = new AbortController2();
+ this._options = options;
+ this._running = false;
+ this.onreceive = null;
+ this.onclose = null;
+ }
+ // This is an internal type, not exported from 'index' so this is really just internal.
+ get pollAborted() {
+ return this._pollAbort.aborted;
+ }
+ async connect(url, transferFormat) {
+ Arg.isRequired(url, "url");
+ Arg.isRequired(transferFormat, "transferFormat");
+ Arg.isIn(transferFormat, TransferFormat, "transferFormat");
+ this._url = url;
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Connecting.");
+ if (transferFormat === TransferFormat.Binary && (typeof XMLHttpRequest !== "undefined" && typeof new XMLHttpRequest().responseType !== "string")) {
+ throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");
+ }
+ const [name, value] = getUserAgentHeader();
+ const headers = { [name]: value, ...this._options.headers };
+ const pollOptions = {
+ abortSignal: this._pollAbort.signal,
+ headers,
+ timeout: 1e5,
+ withCredentials: this._options.withCredentials
+ };
+ if (transferFormat === TransferFormat.Binary) {
+ pollOptions.responseType = "arraybuffer";
+ }
+ const pollUrl = `${url}&_=${Date.now()}`;
+ this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);
+ const response = await this._httpClient.get(pollUrl, pollOptions);
+ if (response.statusCode !== 200) {
+ this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);
+ this._closeError = new HttpError(response.statusText || "", response.statusCode);
+ this._running = false;
+ } else {
+ this._running = true;
+ }
+ this._receiving = this._poll(this._url, pollOptions);
+ }
+ async _poll(url, pollOptions) {
+ try {
+ while (this._running) {
+ try {
+ const pollUrl = `${url}&_=${Date.now()}`;
+ this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);
+ const response = await this._httpClient.get(pollUrl, pollOptions);
+ if (response.statusCode === 204) {
+ this._logger.log(LogLevel.Information, "(LongPolling transport) Poll terminated by server.");
+ this._running = false;
+ } else if (response.statusCode !== 200) {
+ this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);
+ this._closeError = new HttpError(response.statusText || "", response.statusCode);
+ this._running = false;
+ } else {
+ if (response.content) {
+ this._logger.log(LogLevel.Trace, `(LongPolling transport) data received. ${getDataDetail(response.content, this._options.logMessageContent)}.`);
+ if (this.onreceive) {
+ this.onreceive(response.content);
+ }
+ } else {
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Poll timed out, reissuing.");
+ }
+ }
+ } catch (e) {
+ if (!this._running) {
+ this._logger.log(LogLevel.Trace, `(LongPolling transport) Poll errored after shutdown: ${e.message}`);
+ } else {
+ if (e instanceof TimeoutError) {
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Poll timed out, reissuing.");
+ } else {
+ this._closeError = e;
+ this._running = false;
+ }
+ }
+ }
+ }
+ } finally {
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Polling complete.");
+ if (!this.pollAborted) {
+ this._raiseOnClose();
+ }
+ }
+ }
+ async send(data) {
+ if (!this._running) {
+ return Promise.reject(new Error("Cannot send until the transport is connected"));
+ }
+ return sendMessage(this._logger, "LongPolling", this._httpClient, this._url, data, this._options);
+ }
+ async stop() {
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Stopping polling.");
+ this._running = false;
+ this._pollAbort.abort();
+ try {
+ await this._receiving;
+ this._logger.log(LogLevel.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);
+ const headers = {};
+ const [name, value] = getUserAgentHeader();
+ headers[name] = value;
+ const deleteOptions = {
+ headers: { ...headers, ...this._options.headers },
+ timeout: this._options.timeout,
+ withCredentials: this._options.withCredentials
+ };
+ await this._httpClient.delete(this._url, deleteOptions);
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) DELETE request sent.");
+ } finally {
+ this._logger.log(LogLevel.Trace, "(LongPolling transport) Stop finished.");
+ this._raiseOnClose();
+ }
+ }
+ _raiseOnClose() {
+ if (this.onclose) {
+ let logMessage = "(LongPolling transport) Firing onclose event.";
+ if (this._closeError) {
+ logMessage += " Error: " + this._closeError;
+ }
+ this._logger.log(LogLevel.Trace, logMessage);
+ this.onclose(this._closeError);
+ }
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/ServerSentEventsTransport.js
+var ServerSentEventsTransport = class {
+ constructor(httpClient, accessToken, logger, options) {
+ this._httpClient = httpClient;
+ this._accessToken = accessToken;
+ this._logger = logger;
+ this._options = options;
+ this.onreceive = null;
+ this.onclose = null;
+ }
+ async connect(url, transferFormat) {
+ Arg.isRequired(url, "url");
+ Arg.isRequired(transferFormat, "transferFormat");
+ Arg.isIn(transferFormat, TransferFormat, "transferFormat");
+ this._logger.log(LogLevel.Trace, "(SSE transport) Connecting.");
+ this._url = url;
+ if (this._accessToken) {
+ url += (url.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`;
+ }
+ return new Promise((resolve, reject) => {
+ let opened = false;
+ if (transferFormat !== TransferFormat.Text) {
+ reject(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));
+ return;
+ }
+ let eventSource;
+ if (Platform.isBrowser || Platform.isWebWorker) {
+ eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials });
+ } else {
+ const cookies = this._httpClient.getCookieString(url);
+ const headers = {};
+ headers.Cookie = cookies;
+ const [name, value] = getUserAgentHeader();
+ headers[name] = value;
+ eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials, headers: { ...headers, ...this._options.headers } });
+ }
+ try {
+ eventSource.onmessage = (e) => {
+ if (this.onreceive) {
+ try {
+ this._logger.log(LogLevel.Trace, `(SSE transport) data received. ${getDataDetail(e.data, this._options.logMessageContent)}.`);
+ this.onreceive(e.data);
+ } catch (error) {
+ this._close(error);
+ return;
+ }
+ }
+ };
+ eventSource.onerror = (e) => {
+ if (opened) {
+ this._close();
+ } else {
+ reject(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."));
+ }
+ };
+ eventSource.onopen = () => {
+ this._logger.log(LogLevel.Information, `SSE connected to ${this._url}`);
+ this._eventSource = eventSource;
+ opened = true;
+ resolve();
+ };
+ } catch (e) {
+ reject(e);
+ return;
+ }
+ });
+ }
+ async send(data) {
+ if (!this._eventSource) {
+ return Promise.reject(new Error("Cannot send until the transport is connected"));
+ }
+ return sendMessage(this._logger, "SSE", this._httpClient, this._url, data, this._options);
+ }
+ stop() {
+ this._close();
+ return Promise.resolve();
+ }
+ _close(e) {
+ if (this._eventSource) {
+ this._eventSource.close();
+ this._eventSource = void 0;
+ if (this.onclose) {
+ this.onclose(e);
+ }
+ }
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js
+var WebSocketTransport = class {
+ constructor(httpClient, accessTokenFactory, logger, logMessageContent, webSocketConstructor, headers) {
+ this._logger = logger;
+ this._accessTokenFactory = accessTokenFactory;
+ this._logMessageContent = logMessageContent;
+ this._webSocketConstructor = webSocketConstructor;
+ this._httpClient = httpClient;
+ this.onreceive = null;
+ this.onclose = null;
+ this._headers = headers;
+ }
+ async connect(url, transferFormat) {
+ Arg.isRequired(url, "url");
+ Arg.isRequired(transferFormat, "transferFormat");
+ Arg.isIn(transferFormat, TransferFormat, "transferFormat");
+ this._logger.log(LogLevel.Trace, "(WebSockets transport) Connecting.");
+ let token;
+ if (this._accessTokenFactory) {
+ token = await this._accessTokenFactory();
+ }
+ return new Promise((resolve, reject) => {
+ url = url.replace(/^http/, "ws");
+ let webSocket;
+ const cookies = this._httpClient.getCookieString(url);
+ let opened = false;
+ if (Platform.isNode || Platform.isReactNative) {
+ const headers = {};
+ const [name, value] = getUserAgentHeader();
+ headers[name] = value;
+ if (token) {
+ headers[HeaderNames.Authorization] = `Bearer ${token}`;
+ }
+ if (cookies) {
+ headers[HeaderNames.Cookie] = cookies;
+ }
+ webSocket = new this._webSocketConstructor(url, void 0, {
+ headers: { ...headers, ...this._headers }
+ });
+ } else {
+ if (token) {
+ url += (url.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(token)}`;
+ }
+ }
+ if (!webSocket) {
+ webSocket = new this._webSocketConstructor(url);
+ }
+ if (transferFormat === TransferFormat.Binary) {
+ webSocket.binaryType = "arraybuffer";
+ }
+ webSocket.onopen = (_event) => {
+ this._logger.log(LogLevel.Information, `WebSocket connected to ${url}.`);
+ this._webSocket = webSocket;
+ opened = true;
+ resolve();
+ };
+ webSocket.onerror = (event) => {
+ let error = null;
+ if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) {
+ error = event.error;
+ } else {
+ error = "There was an error with the transport";
+ }
+ this._logger.log(LogLevel.Information, `(WebSockets transport) ${error}.`);
+ };
+ webSocket.onmessage = (message) => {
+ this._logger.log(LogLevel.Trace, `(WebSockets transport) data received. ${getDataDetail(message.data, this._logMessageContent)}.`);
+ if (this.onreceive) {
+ try {
+ this.onreceive(message.data);
+ } catch (error) {
+ this._close(error);
+ return;
+ }
+ }
+ };
+ webSocket.onclose = (event) => {
+ if (opened) {
+ this._close(event);
+ } else {
+ let error = null;
+ if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) {
+ error = event.error;
+ } else {
+ error = "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.";
+ }
+ reject(new Error(error));
+ }
+ };
+ });
+ }
+ send(data) {
+ if (this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN) {
+ this._logger.log(LogLevel.Trace, `(WebSockets transport) sending data. ${getDataDetail(data, this._logMessageContent)}.`);
+ this._webSocket.send(data);
+ return Promise.resolve();
+ }
+ return Promise.reject("WebSocket is not in the OPEN state");
+ }
+ stop() {
+ if (this._webSocket) {
+ this._close(void 0);
+ }
+ return Promise.resolve();
+ }
+ _close(event) {
+ if (this._webSocket) {
+ this._webSocket.onclose = () => {
+ };
+ this._webSocket.onmessage = () => {
+ };
+ this._webSocket.onerror = () => {
+ };
+ this._webSocket.close();
+ this._webSocket = void 0;
+ }
+ this._logger.log(LogLevel.Trace, "(WebSockets transport) socket closed.");
+ if (this.onclose) {
+ if (this._isCloseEvent(event) && (event.wasClean === false || event.code !== 1e3)) {
+ this.onclose(new Error(`WebSocket closed with status code: ${event.code} (${event.reason || "no reason given"}).`));
+ } else if (event instanceof Error) {
+ this.onclose(event);
+ } else {
+ this.onclose();
+ }
+ }
+ }
+ _isCloseEvent(event) {
+ return event && typeof event.wasClean === "boolean" && typeof event.code === "number";
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/HttpConnection.js
+var MAX_REDIRECTS = 100;
+var HttpConnection = class {
+ constructor(url, options = {}) {
+ this._stopPromiseResolver = () => {
+ };
+ this.features = {};
+ this._negotiateVersion = 1;
+ Arg.isRequired(url, "url");
+ this._logger = createLogger(options.logger);
+ this.baseUrl = this._resolveUrl(url);
+ options = options || {};
+ options.logMessageContent = options.logMessageContent === void 0 ? false : options.logMessageContent;
+ if (typeof options.withCredentials === "boolean" || options.withCredentials === void 0) {
+ options.withCredentials = options.withCredentials === void 0 ? true : options.withCredentials;
+ } else {
+ throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
+ }
+ options.timeout = options.timeout === void 0 ? 100 * 1e3 : options.timeout;
+ let webSocketModule = null;
+ let eventSourceModule = null;
+ if (Platform.isNode && typeof __require !== "undefined") {
+ const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
+ webSocketModule = requireFunc("ws");
+ eventSourceModule = requireFunc("eventsource");
+ }
+ if (!Platform.isNode && typeof WebSocket !== "undefined" && !options.WebSocket) {
+ options.WebSocket = WebSocket;
+ } else if (Platform.isNode && !options.WebSocket) {
+ if (webSocketModule) {
+ options.WebSocket = webSocketModule;
+ }
+ }
+ if (!Platform.isNode && typeof EventSource !== "undefined" && !options.EventSource) {
+ options.EventSource = EventSource;
+ } else if (Platform.isNode && !options.EventSource) {
+ if (typeof eventSourceModule !== "undefined") {
+ options.EventSource = eventSourceModule;
+ }
+ }
+ this._httpClient = new AccessTokenHttpClient(options.httpClient || new DefaultHttpClient(this._logger), options.accessTokenFactory);
+ this._connectionState = "Disconnected";
+ this._connectionStarted = false;
+ this._options = options;
+ this.onreceive = null;
+ this.onclose = null;
+ }
+ async start(transferFormat) {
+ transferFormat = transferFormat || TransferFormat.Binary;
+ Arg.isIn(transferFormat, TransferFormat, "transferFormat");
+ this._logger.log(LogLevel.Debug, `Starting connection with transfer format '${TransferFormat[transferFormat]}'.`);
+ if (this._connectionState !== "Disconnected") {
+ return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));
+ }
+ this._connectionState = "Connecting";
+ this._startInternalPromise = this._startInternal(transferFormat);
+ await this._startInternalPromise;
+ if (this._connectionState === "Disconnecting") {
+ const message = "Failed to start the HttpConnection before stop() was called.";
+ this._logger.log(LogLevel.Error, message);
+ await this._stopPromise;
+ return Promise.reject(new AbortError(message));
+ } else if (this._connectionState !== "Connected") {
+ const message = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";
+ this._logger.log(LogLevel.Error, message);
+ return Promise.reject(new AbortError(message));
+ }
+ this._connectionStarted = true;
+ }
+ send(data) {
+ if (this._connectionState !== "Connected") {
+ return Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State."));
+ }
+ if (!this._sendQueue) {
+ this._sendQueue = new TransportSendQueue(this.transport);
+ }
+ return this._sendQueue.send(data);
+ }
+ async stop(error) {
+ if (this._connectionState === "Disconnected") {
+ this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnected state.`);
+ return Promise.resolve();
+ }
+ if (this._connectionState === "Disconnecting") {
+ this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);
+ return this._stopPromise;
+ }
+ this._connectionState = "Disconnecting";
+ this._stopPromise = new Promise((resolve) => {
+ this._stopPromiseResolver = resolve;
+ });
+ await this._stopInternal(error);
+ await this._stopPromise;
+ }
+ async _stopInternal(error) {
+ this._stopError = error;
+ try {
+ await this._startInternalPromise;
+ } catch (e) {
+ }
+ if (this.transport) {
+ try {
+ await this.transport.stop();
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `HttpConnection.transport.stop() threw error '${e}'.`);
+ this._stopConnection();
+ }
+ this.transport = void 0;
+ } else {
+ this._logger.log(LogLevel.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.");
+ }
+ }
+ async _startInternal(transferFormat) {
+ let url = this.baseUrl;
+ this._accessTokenFactory = this._options.accessTokenFactory;
+ this._httpClient._accessTokenFactory = this._accessTokenFactory;
+ try {
+ if (this._options.skipNegotiation) {
+ if (this._options.transport === HttpTransportType.WebSockets) {
+ this.transport = this._constructTransport(HttpTransportType.WebSockets);
+ await this._startTransport(url, transferFormat);
+ } else {
+ throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");
+ }
+ } else {
+ let negotiateResponse = null;
+ let redirects = 0;
+ do {
+ negotiateResponse = await this._getNegotiationResponse(url);
+ if (this._connectionState === "Disconnecting" || this._connectionState === "Disconnected") {
+ throw new AbortError("The connection was stopped during negotiation.");
+ }
+ if (negotiateResponse.error) {
+ throw new Error(negotiateResponse.error);
+ }
+ if (negotiateResponse.ProtocolVersion) {
+ throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");
+ }
+ if (negotiateResponse.url) {
+ url = negotiateResponse.url;
+ }
+ if (negotiateResponse.accessToken) {
+ const accessToken = negotiateResponse.accessToken;
+ this._accessTokenFactory = () => accessToken;
+ this._httpClient._accessToken = accessToken;
+ this._httpClient._accessTokenFactory = void 0;
+ }
+ redirects++;
+ } while (negotiateResponse.url && redirects < MAX_REDIRECTS);
+ if (redirects === MAX_REDIRECTS && negotiateResponse.url) {
+ throw new Error("Negotiate redirection limit exceeded.");
+ }
+ await this._createTransport(url, this._options.transport, negotiateResponse, transferFormat);
+ }
+ if (this.transport instanceof LongPollingTransport) {
+ this.features.inherentKeepAlive = true;
+ }
+ if (this._connectionState === "Connecting") {
+ this._logger.log(LogLevel.Debug, "The HttpConnection connected successfully.");
+ this._connectionState = "Connected";
+ }
+ } catch (e) {
+ this._logger.log(LogLevel.Error, "Failed to start the connection: " + e);
+ this._connectionState = "Disconnected";
+ this.transport = void 0;
+ this._stopPromiseResolver();
+ return Promise.reject(e);
+ }
+ }
+ async _getNegotiationResponse(url) {
+ const headers = {};
+ const [name, value] = getUserAgentHeader();
+ headers[name] = value;
+ const negotiateUrl = this._resolveNegotiateUrl(url);
+ this._logger.log(LogLevel.Debug, `Sending negotiation request: ${negotiateUrl}.`);
+ try {
+ const response = await this._httpClient.post(negotiateUrl, {
+ content: "",
+ headers: { ...headers, ...this._options.headers },
+ timeout: this._options.timeout,
+ withCredentials: this._options.withCredentials
+ });
+ if (response.statusCode !== 200) {
+ return Promise.reject(new Error(`Unexpected status code returned from negotiate '${response.statusCode}'`));
+ }
+ const negotiateResponse = JSON.parse(response.content);
+ if (!negotiateResponse.negotiateVersion || negotiateResponse.negotiateVersion < 1) {
+ negotiateResponse.connectionToken = negotiateResponse.connectionId;
+ }
+ return negotiateResponse;
+ } catch (e) {
+ let errorMessage = "Failed to complete negotiation with the server: " + e;
+ if (e instanceof HttpError) {
+ if (e.statusCode === 404) {
+ errorMessage = errorMessage + " Either this is not a SignalR endpoint or there is a proxy blocking the connection.";
+ }
+ }
+ this._logger.log(LogLevel.Error, errorMessage);
+ return Promise.reject(new FailedToNegotiateWithServerError(errorMessage));
+ }
+ }
+ _createConnectUrl(url, connectionToken) {
+ if (!connectionToken) {
+ return url;
+ }
+ return url + (url.indexOf("?") === -1 ? "?" : "&") + `id=${connectionToken}`;
+ }
+ async _createTransport(url, requestedTransport, negotiateResponse, requestedTransferFormat) {
+ let connectUrl = this._createConnectUrl(url, negotiateResponse.connectionToken);
+ if (this._isITransport(requestedTransport)) {
+ this._logger.log(LogLevel.Debug, "Connection was provided an instance of ITransport, using that directly.");
+ this.transport = requestedTransport;
+ await this._startTransport(connectUrl, requestedTransferFormat);
+ this.connectionId = negotiateResponse.connectionId;
+ return;
+ }
+ const transportExceptions = [];
+ const transports = negotiateResponse.availableTransports || [];
+ let negotiate = negotiateResponse;
+ for (const endpoint of transports) {
+ const transportOrError = this._resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat);
+ if (transportOrError instanceof Error) {
+ transportExceptions.push(`${endpoint.transport} failed:`);
+ transportExceptions.push(transportOrError);
+ } else if (this._isITransport(transportOrError)) {
+ this.transport = transportOrError;
+ if (!negotiate) {
+ try {
+ negotiate = await this._getNegotiationResponse(url);
+ } catch (ex) {
+ return Promise.reject(ex);
+ }
+ connectUrl = this._createConnectUrl(url, negotiate.connectionToken);
+ }
+ try {
+ await this._startTransport(connectUrl, requestedTransferFormat);
+ this.connectionId = negotiate.connectionId;
+ return;
+ } catch (ex) {
+ this._logger.log(LogLevel.Error, `Failed to start the transport '${endpoint.transport}': ${ex}`);
+ negotiate = void 0;
+ transportExceptions.push(new FailedToStartTransportError(`${endpoint.transport} failed: ${ex}`, HttpTransportType[endpoint.transport]));
+ if (this._connectionState !== "Connecting") {
+ const message = "Failed to select transport before stop() was called.";
+ this._logger.log(LogLevel.Debug, message);
+ return Promise.reject(new AbortError(message));
+ }
+ }
+ }
+ }
+ if (transportExceptions.length > 0) {
+ return Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${transportExceptions.join(" ")}`, transportExceptions));
+ }
+ return Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
+ }
+ _constructTransport(transport) {
+ switch (transport) {
+ case HttpTransportType.WebSockets:
+ if (!this._options.WebSocket) {
+ throw new Error("'WebSocket' is not supported in your environment.");
+ }
+ return new WebSocketTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
+ case HttpTransportType.ServerSentEvents:
+ if (!this._options.EventSource) {
+ throw new Error("'EventSource' is not supported in your environment.");
+ }
+ return new ServerSentEventsTransport(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
+ case HttpTransportType.LongPolling:
+ return new LongPollingTransport(this._httpClient, this._logger, this._options);
+ default:
+ throw new Error(`Unknown transport: ${transport}.`);
+ }
+ }
+ _startTransport(url, transferFormat) {
+ this.transport.onreceive = this.onreceive;
+ this.transport.onclose = (e) => this._stopConnection(e);
+ return this.transport.connect(url, transferFormat);
+ }
+ _resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat) {
+ const transport = HttpTransportType[endpoint.transport];
+ if (transport === null || transport === void 0) {
+ this._logger.log(LogLevel.Debug, `Skipping transport '${endpoint.transport}' because it is not supported by this client.`);
+ return new Error(`Skipping transport '${endpoint.transport}' because it is not supported by this client.`);
+ } else {
+ if (transportMatches(requestedTransport, transport)) {
+ const transferFormats = endpoint.transferFormats.map((s) => TransferFormat[s]);
+ if (transferFormats.indexOf(requestedTransferFormat) >= 0) {
+ if (transport === HttpTransportType.WebSockets && !this._options.WebSocket || transport === HttpTransportType.ServerSentEvents && !this._options.EventSource) {
+ this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it is not supported in your environment.'`);
+ return new UnsupportedTransportError(`'${HttpTransportType[transport]}' is not supported in your environment.`, transport);
+ } else {
+ this._logger.log(LogLevel.Debug, `Selecting transport '${HttpTransportType[transport]}'.`);
+ try {
+ return this._constructTransport(transport);
+ } catch (ex) {
+ return ex;
+ }
+ }
+ } else {
+ this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it does not support the requested transfer format '${TransferFormat[requestedTransferFormat]}'.`);
+ return new Error(`'${HttpTransportType[transport]}' does not support ${TransferFormat[requestedTransferFormat]}.`);
+ }
+ } else {
+ this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it was disabled by the client.`);
+ return new DisabledTransportError(`'${HttpTransportType[transport]}' is disabled by the client.`, transport);
+ }
+ }
+ }
+ _isITransport(transport) {
+ return transport && typeof transport === "object" && "connect" in transport;
+ }
+ _stopConnection(error) {
+ this._logger.log(LogLevel.Debug, `HttpConnection.stopConnection(${error}) called while in state ${this._connectionState}.`);
+ this.transport = void 0;
+ error = this._stopError || error;
+ this._stopError = void 0;
+ if (this._connectionState === "Disconnected") {
+ this._logger.log(LogLevel.Debug, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is already in the disconnected state.`);
+ return;
+ }
+ if (this._connectionState === "Connecting") {
+ this._logger.log(LogLevel.Warning, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is still in the connecting state.`);
+ throw new Error(`HttpConnection.stopConnection(${error}) was called while the connection is still in the connecting state.`);
+ }
+ if (this._connectionState === "Disconnecting") {
+ this._stopPromiseResolver();
+ }
+ if (error) {
+ this._logger.log(LogLevel.Error, `Connection disconnected with error '${error}'.`);
+ } else {
+ this._logger.log(LogLevel.Information, "Connection disconnected.");
+ }
+ if (this._sendQueue) {
+ this._sendQueue.stop().catch((e) => {
+ this._logger.log(LogLevel.Error, `TransportSendQueue.stop() threw error '${e}'.`);
+ });
+ this._sendQueue = void 0;
+ }
+ this.connectionId = void 0;
+ this._connectionState = "Disconnected";
+ if (this._connectionStarted) {
+ this._connectionStarted = false;
+ try {
+ if (this.onclose) {
+ this.onclose(error);
+ }
+ } catch (e) {
+ this._logger.log(LogLevel.Error, `HttpConnection.onclose(${error}) threw error '${e}'.`);
+ }
+ }
+ }
+ _resolveUrl(url) {
+ if (url.lastIndexOf("https://", 0) === 0 || url.lastIndexOf("http://", 0) === 0) {
+ return url;
+ }
+ if (!Platform.isBrowser) {
+ throw new Error(`Cannot resolve '${url}'.`);
+ }
+ const aTag = window.document.createElement("a");
+ aTag.href = url;
+ this._logger.log(LogLevel.Information, `Normalizing '${url}' to '${aTag.href}'.`);
+ return aTag.href;
+ }
+ _resolveNegotiateUrl(url) {
+ const index = url.indexOf("?");
+ let negotiateUrl = url.substring(0, index === -1 ? url.length : index);
+ if (negotiateUrl[negotiateUrl.length - 1] !== "/") {
+ negotiateUrl += "/";
+ }
+ negotiateUrl += "negotiate";
+ negotiateUrl += index === -1 ? "" : url.substring(index);
+ if (negotiateUrl.indexOf("negotiateVersion") === -1) {
+ negotiateUrl += index === -1 ? "?" : "&";
+ negotiateUrl += "negotiateVersion=" + this._negotiateVersion;
+ }
+ return negotiateUrl;
+ }
+};
+function transportMatches(requestedTransport, actualTransport) {
+ return !requestedTransport || (actualTransport & requestedTransport) !== 0;
+}
+var TransportSendQueue = class {
+ constructor(_transport) {
+ this._transport = _transport;
+ this._buffer = [];
+ this._executing = true;
+ this._sendBufferedData = new PromiseSource();
+ this._transportResult = new PromiseSource();
+ this._sendLoopPromise = this._sendLoop();
+ }
+ send(data) {
+ this._bufferData(data);
+ if (!this._transportResult) {
+ this._transportResult = new PromiseSource();
+ }
+ return this._transportResult.promise;
+ }
+ stop() {
+ this._executing = false;
+ this._sendBufferedData.resolve();
+ return this._sendLoopPromise;
+ }
+ _bufferData(data) {
+ if (this._buffer.length && typeof this._buffer[0] !== typeof data) {
+ throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof data}`);
+ }
+ this._buffer.push(data);
+ this._sendBufferedData.resolve();
+ }
+ async _sendLoop() {
+ while (true) {
+ await this._sendBufferedData.promise;
+ if (!this._executing) {
+ if (this._transportResult) {
+ this._transportResult.reject("Connection stopped.");
+ }
+ break;
+ }
+ this._sendBufferedData = new PromiseSource();
+ const transportResult = this._transportResult;
+ this._transportResult = void 0;
+ const data = typeof this._buffer[0] === "string" ? this._buffer.join("") : TransportSendQueue._concatBuffers(this._buffer);
+ this._buffer.length = 0;
+ try {
+ await this._transport.send(data);
+ transportResult.resolve();
+ } catch (error) {
+ transportResult.reject(error);
+ }
+ }
+ }
+ static _concatBuffers(arrayBuffers) {
+ const totalLength = arrayBuffers.map((b) => b.byteLength).reduce((a, b) => a + b);
+ const result = new Uint8Array(totalLength);
+ let offset = 0;
+ for (const item of arrayBuffers) {
+ result.set(new Uint8Array(item), offset);
+ offset += item.byteLength;
+ }
+ return result.buffer;
+ }
+};
+var PromiseSource = class {
+ constructor() {
+ this.promise = new Promise((resolve, reject) => [this._resolver, this._rejecter] = [resolve, reject]);
+ }
+ resolve() {
+ this._resolver();
+ }
+ reject(reason) {
+ this._rejecter(reason);
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/JsonHubProtocol.js
+var JSON_HUB_PROTOCOL_NAME = "json";
+var JsonHubProtocol = class {
+ constructor() {
+ this.name = JSON_HUB_PROTOCOL_NAME;
+ this.version = 1;
+ this.transferFormat = TransferFormat.Text;
+ }
+ /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
+ *
+ * @param {string} input A string containing the serialized representation.
+ * @param {ILogger} logger A logger that will be used to log messages that occur during parsing.
+ */
+ parseMessages(input, logger) {
+ if (typeof input !== "string") {
+ throw new Error("Invalid input for JSON hub protocol. Expected a string.");
+ }
+ if (!input) {
+ return [];
+ }
+ if (logger === null) {
+ logger = NullLogger.instance;
+ }
+ const messages = TextMessageFormat.parse(input);
+ const hubMessages = [];
+ for (const message of messages) {
+ const parsedMessage = JSON.parse(message);
+ if (typeof parsedMessage.type !== "number") {
+ throw new Error("Invalid payload.");
+ }
+ switch (parsedMessage.type) {
+ case MessageType.Invocation:
+ this._isInvocationMessage(parsedMessage);
+ break;
+ case MessageType.StreamItem:
+ this._isStreamItemMessage(parsedMessage);
+ break;
+ case MessageType.Completion:
+ this._isCompletionMessage(parsedMessage);
+ break;
+ case MessageType.Ping:
+ break;
+ case MessageType.Close:
+ break;
+ default:
+ logger.log(LogLevel.Information, "Unknown message type '" + parsedMessage.type + "' ignored.");
+ continue;
+ }
+ hubMessages.push(parsedMessage);
+ }
+ return hubMessages;
+ }
+ /** Writes the specified {@link @microsoft/signalr.HubMessage} to a string and returns it.
+ *
+ * @param {HubMessage} message The message to write.
+ * @returns {string} A string containing the serialized representation of the message.
+ */
+ writeMessage(message) {
+ return TextMessageFormat.write(JSON.stringify(message));
+ }
+ _isInvocationMessage(message) {
+ this._assertNotEmptyString(message.target, "Invalid payload for Invocation message.");
+ if (message.invocationId !== void 0) {
+ this._assertNotEmptyString(message.invocationId, "Invalid payload for Invocation message.");
+ }
+ }
+ _isStreamItemMessage(message) {
+ this._assertNotEmptyString(message.invocationId, "Invalid payload for StreamItem message.");
+ if (message.item === void 0) {
+ throw new Error("Invalid payload for StreamItem message.");
+ }
+ }
+ _isCompletionMessage(message) {
+ if (message.result && message.error) {
+ throw new Error("Invalid payload for Completion message.");
+ }
+ if (!message.result && message.error) {
+ this._assertNotEmptyString(message.error, "Invalid payload for Completion message.");
+ }
+ this._assertNotEmptyString(message.invocationId, "Invalid payload for Completion message.");
+ }
+ _assertNotEmptyString(value, errorMessage) {
+ if (typeof value !== "string" || value === "") {
+ throw new Error(errorMessage);
+ }
+ }
+};
+
+// node_modules/@microsoft/signalr/dist/esm/HubConnectionBuilder.js
+var LogLevelNameMapping = {
+ trace: LogLevel.Trace,
+ debug: LogLevel.Debug,
+ info: LogLevel.Information,
+ information: LogLevel.Information,
+ warn: LogLevel.Warning,
+ warning: LogLevel.Warning,
+ error: LogLevel.Error,
+ critical: LogLevel.Critical,
+ none: LogLevel.None
+};
+function parseLogLevel(name) {
+ const mapping = LogLevelNameMapping[name.toLowerCase()];
+ if (typeof mapping !== "undefined") {
+ return mapping;
+ } else {
+ throw new Error(`Unknown log level: ${name}`);
+ }
+}
+var HubConnectionBuilder = class {
+ configureLogging(logging) {
+ Arg.isRequired(logging, "logging");
+ if (isLogger(logging)) {
+ this.logger = logging;
+ } else if (typeof logging === "string") {
+ const logLevel = parseLogLevel(logging);
+ this.logger = new ConsoleLogger(logLevel);
+ } else {
+ this.logger = new ConsoleLogger(logging);
+ }
+ return this;
+ }
+ withUrl(url, transportTypeOrOptions) {
+ Arg.isRequired(url, "url");
+ Arg.isNotEmpty(url, "url");
+ this.url = url;
+ if (typeof transportTypeOrOptions === "object") {
+ this.httpConnectionOptions = { ...this.httpConnectionOptions, ...transportTypeOrOptions };
+ } else {
+ this.httpConnectionOptions = {
+ ...this.httpConnectionOptions,
+ transport: transportTypeOrOptions
+ };
+ }
+ return this;
+ }
+ /** Configures the {@link @microsoft/signalr.HubConnection} to use the specified Hub Protocol.
+ *
+ * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.
+ */
+ withHubProtocol(protocol) {
+ Arg.isRequired(protocol, "protocol");
+ this.protocol = protocol;
+ return this;
+ }
+ withAutomaticReconnect(retryDelaysOrReconnectPolicy) {
+ if (this.reconnectPolicy) {
+ throw new Error("A reconnectPolicy has already been set.");
+ }
+ if (!retryDelaysOrReconnectPolicy) {
+ this.reconnectPolicy = new DefaultReconnectPolicy();
+ } else if (Array.isArray(retryDelaysOrReconnectPolicy)) {
+ this.reconnectPolicy = new DefaultReconnectPolicy(retryDelaysOrReconnectPolicy);
+ } else {
+ this.reconnectPolicy = retryDelaysOrReconnectPolicy;
+ }
+ return this;
+ }
+ /** Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder.
+ *
+ * @returns {HubConnection} The configured {@link @microsoft/signalr.HubConnection}.
+ */
+ build() {
+ const httpConnectionOptions = this.httpConnectionOptions || {};
+ if (httpConnectionOptions.logger === void 0) {
+ httpConnectionOptions.logger = this.logger;
+ }
+ if (!this.url) {
+ throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
+ }
+ const connection = new HttpConnection(this.url, httpConnectionOptions);
+ return HubConnection.create(connection, this.logger || NullLogger.instance, this.protocol || new JsonHubProtocol(), this.reconnectPolicy);
+ }
+};
+function isLogger(logger) {
+ return logger.log !== void 0;
+}
+export {
+ AbortError,
+ DefaultHttpClient,
+ HttpClient,
+ HttpError,
+ HttpResponse,
+ HttpTransportType,
+ HubConnection,
+ HubConnectionBuilder,
+ HubConnectionState,
+ JsonHubProtocol,
+ LogLevel,
+ MessageType,
+ NullLogger,
+ Subject,
+ TimeoutError,
+ TransferFormat,
+ VERSION
+};
diff --git a/code/WebApp/vanilla/lib/@vue-office/excel/index.css b/code/WebApp/vanilla/lib/@vue-office/excel/index.css
new file mode 100644
index 00000000..6378e797
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@vue-office/excel/index.css
@@ -0,0 +1,765 @@
+body {
+ margin: 0;
+}
+.x-spreadsheet {
+ font-size: 13px;
+ line-height: normal;
+ user-select: none;
+ -moz-user-select: none;
+ font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
+ box-sizing: content-box;
+ background: #fff;
+ -webkit-font-smoothing: antialiased;
+}
+.x-spreadsheet textarea {
+ font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
+}
+.x-spreadsheet-sheet {
+ position: relative;
+ overflow: hidden;
+}
+.x-spreadsheet-table {
+ vertical-align: bottom;
+}
+.x-spreadsheet-tooltip {
+ font-family: inherit;
+ position: absolute;
+ padding: 5px 10px;
+ color: #fff;
+ border-radius: 1px;
+ background: #000000;
+ font-size: 12px;
+ z-index: 201;
+}
+.x-spreadsheet-tooltip:before {
+ pointer-events: none;
+ position: absolute;
+ left: calc(50% - 4px);
+ top: -4px;
+ content: "";
+ width: 8px;
+ height: 8px;
+ background: inherit;
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+ z-index: 1;
+ box-shadow: 1px 1px 3px -1px rgba(0, 0, 0, 0.3);
+}
+.x-spreadsheet-color-palette {
+ padding: 5px;
+}
+.x-spreadsheet-color-palette table {
+ margin: 0;
+ padding: 0;
+ border-collapse: separate;
+ border-spacing: 2;
+ background: #fff;
+}
+.x-spreadsheet-color-palette table td {
+ margin: 0;
+ cursor: pointer;
+ border: 1px solid transparent;
+}
+.x-spreadsheet-color-palette table td:hover {
+ border-color: #ddd;
+}
+.x-spreadsheet-color-palette table td .x-spreadsheet-color-palette-cell {
+ width: 16px;
+ height: 16px;
+}
+.x-spreadsheet-border-palette {
+ padding: 6px;
+}
+.x-spreadsheet-border-palette table {
+ margin: 0;
+ padding: 0;
+ border-collapse: separate;
+ border-spacing: 0;
+ background: #fff;
+ table-layout: fixed;
+}
+.x-spreadsheet-border-palette table td {
+ margin: 0;
+}
+.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left {
+ border-right: 1px solid #eee;
+ padding-right: 6px;
+}
+.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell {
+ width: 30px;
+ height: 30px;
+ cursor: pointer;
+ text-align: center;
+}
+.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell:hover {
+ background-color: #eee;
+}
+.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right {
+ padding-left: 6px;
+}
+.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right .x-spreadsheet-line-type {
+ position: relative;
+ left: 0;
+ top: -3px;
+}
+.x-spreadsheet-dropdown {
+ position: relative;
+}
+.x-spreadsheet-dropdown .x-spreadsheet-dropdown-content {
+ position: absolute;
+ z-index: 200;
+ background: #fff;
+ box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
+}
+.x-spreadsheet-dropdown.bottom-left .x-spreadsheet-dropdown-content {
+ top: calc(100% + 5px);
+ left: 0;
+}
+.x-spreadsheet-dropdown.bottom-right .x-spreadsheet-dropdown-content {
+ top: calc(100% + 5px);
+ right: 0;
+}
+.x-spreadsheet-dropdown.top-left .x-spreadsheet-dropdown-content {
+ bottom: calc(100% + 5px);
+ left: 0;
+}
+.x-spreadsheet-dropdown.top-right .x-spreadsheet-dropdown-content {
+ bottom: calc(100% + 5px);
+ right: 0;
+}
+.x-spreadsheet-dropdown .x-spreadsheet-dropdown-title {
+ padding: 0 5px;
+ display: inline-block;
+}
+/* resizer **/
+.x-spreadsheet-resizer {
+ position: absolute;
+ z-index: 11;
+}
+.x-spreadsheet-resizer .x-spreadsheet-resizer-hover {
+ background-color: rgba(75, 137, 255, 0.25);
+}
+.x-spreadsheet-resizer .x-spreadsheet-resizer-line {
+ position: absolute;
+}
+.x-spreadsheet-resizer.horizontal {
+ cursor: row-resize;
+}
+.x-spreadsheet-resizer.horizontal .x-spreadsheet-resizer-line {
+ border-bottom: 2px dashed #4b89ff;
+ left: 0;
+ bottom: 0;
+}
+.x-spreadsheet-resizer.vertical {
+ cursor: col-resize;
+}
+.x-spreadsheet-resizer.vertical .x-spreadsheet-resizer-line {
+ border-right: 2px dashed #4b89ff;
+ top: 0;
+ right: 0;
+}
+/* scrollbar */
+.x-spreadsheet-scrollbar {
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ background-color: #f4f5f8;
+ opacity: 0.9;
+ z-index: 12;
+}
+.x-spreadsheet-scrollbar.horizontal {
+ right: 15px;
+ overflow-x: scroll;
+ overflow-y: hidden;
+}
+.x-spreadsheet-scrollbar.horizontal > div {
+ height: 1px;
+ background: #ddd;
+}
+.x-spreadsheet-scrollbar.vertical {
+ bottom: 15px;
+ overflow-x: hidden;
+ overflow-y: scroll;
+}
+.x-spreadsheet-scrollbar.vertical > div {
+ width: 1px;
+ background: #ddd;
+}
+/* @{css-prefix}-overlayer */
+.x-spreadsheet-overlayer {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 10;
+}
+.x-spreadsheet-overlayer .x-spreadsheet-overlayer-content {
+ position: absolute;
+ overflow: hidden;
+ pointer-events: none;
+ width: 100%;
+ height: 100%;
+}
+.x-spreadsheet-editor,
+.x-spreadsheet-selector {
+ box-sizing: content-box;
+ position: absolute;
+ overflow: hidden;
+ pointer-events: none;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+/* @{css-prefix}-selector */
+.x-spreadsheet-selector .hide-input {
+ position: absolute;
+ z-index: 0;
+}
+.x-spreadsheet-selector .hide-input input {
+ padding: 0;
+ width: 0;
+ border: none!important;
+}
+.x-spreadsheet-selector .x-spreadsheet-selector-area {
+ position: absolute;
+ border: 2px solid #4b89ff;
+ background: rgba(75, 137, 255, 0.1);
+ z-index: 5;
+}
+.x-spreadsheet-selector .x-spreadsheet-selector-clipboard,
+.x-spreadsheet-selector .x-spreadsheet-selector-autofill {
+ position: absolute;
+ background: transparent;
+ z-index: 100;
+}
+.x-spreadsheet-selector .x-spreadsheet-selector-clipboard {
+ border: 2px dashed #4b89ff;
+}
+.x-spreadsheet-selector .x-spreadsheet-selector-autofill {
+ border: 1px dashed rgba(0, 0, 0, 0.45);
+}
+.x-spreadsheet-selector .x-spreadsheet-selector-corner {
+ pointer-events: auto;
+ position: absolute;
+ cursor: crosshair;
+ font-size: 0;
+ height: 5px;
+ width: 5px;
+ right: -5px;
+ bottom: -5px;
+ border: 2px solid #ffffff;
+ background: #4b89ff;
+}
+.x-spreadsheet-editor {
+ z-index: 20;
+}
+.x-spreadsheet-editor .x-spreadsheet-editor-area {
+ position: absolute;
+ text-align: left;
+ border: 2px solid #4b89ff;
+ line-height: 0;
+ z-index: 100;
+ pointer-events: auto;
+}
+.x-spreadsheet-editor .x-spreadsheet-editor-area textarea {
+ box-sizing: content-box;
+ border: none;
+ padding: 0 3px;
+ outline: none;
+ resize: none;
+ text-align: start;
+ overflow-y: hidden;
+ font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
+ color: inherit;
+ white-space: normal;
+ word-wrap: break-word;
+ line-height: 22px;
+ margin: 0;
+}
+.x-spreadsheet-editor .x-spreadsheet-editor-area .textline {
+ overflow: hidden;
+ visibility: hidden;
+ position: fixed;
+ top: 0;
+ left: 0;
+}
+.x-spreadsheet-item {
+ user-select: none;
+ background: 0;
+ border: 1px solid transparent;
+ outline: none;
+ height: 26px;
+ color: rgba(0, 0, 0, 0.9);
+ line-height: 26px;
+ list-style: none;
+ padding: 2px 10px;
+ cursor: default;
+ text-align: left;
+ overflow: hidden;
+}
+.x-spreadsheet-item.disabled {
+ pointer-events: none;
+ opacity: 0.5;
+}
+.x-spreadsheet-item:hover,
+.x-spreadsheet-item.active {
+ background: rgba(0, 0, 0, 0.05);
+}
+.x-spreadsheet-item.divider {
+ height: 0;
+ padding: 0;
+ margin: 5px 0;
+ border: none;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+}
+.x-spreadsheet-item .label {
+ float: right;
+ opacity: 0.65;
+ font-size: 1em;
+}
+.x-spreadsheet-item.state,
+.x-spreadsheet-header.state {
+ padding-left: 35px!important;
+ position: relative;
+}
+.x-spreadsheet-item.state:before,
+.x-spreadsheet-header.state:before {
+ content: '';
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ left: 12px;
+ top: calc(50% - 5px);
+ background: rgba(0, 0, 0, 0.08);
+ border-radius: 2px;
+}
+.x-spreadsheet-item.state.checked:before,
+.x-spreadsheet-header.state.checked:before {
+ background: #4b89ff;
+}
+.x-spreadsheet-checkbox {
+ position: relative;
+ display: inline-block;
+ backface-visibility: hidden;
+ outline: 0;
+ vertical-align: baseline;
+ font-style: normal;
+ font-size: 1rem;
+ line-height: 1em;
+}
+.x-spreadsheet-checkbox > input {
+ position: absolute;
+ top: 0;
+ left: 0;
+ opacity: 0!important;
+ outline: 0;
+ z-index: -1;
+}
+.x-spreadsheet-suggest,
+.x-spreadsheet-contextmenu,
+.x-spreadsheet-sort-filter {
+ position: absolute;
+ box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
+ background: #fff;
+ z-index: 100;
+ width: 260px;
+ pointer-events: auto;
+ overflow: auto;
+}
+.x-spreadsheet-suggest {
+ width: 200px;
+}
+.x-spreadsheet-filter {
+ border: 1px solid #e9e9e9;
+ font-size: 12px;
+ margin: 10px;
+}
+.x-spreadsheet-filter .x-spreadsheet-header {
+ padding: 0.5em 0.75em;
+ background: #f8f8f9;
+ border-bottom: 1px solid #e9e9e9;
+ border-left: 1px solid transparent;
+}
+.x-spreadsheet-filter .x-spreadsheet-body {
+ height: 200px;
+ overflow-y: auto;
+}
+.x-spreadsheet-filter .x-spreadsheet-body .x-spreadsheet-item {
+ height: 20px;
+ line-height: 20px;
+}
+.x-spreadsheet-sort-filter .x-spreadsheet-buttons {
+ margin: 10px;
+}
+.x-spreadsheet-bottombar {
+ height: 40px;
+ padding: 0 30px;
+ text-align: left;
+ background: #f5f6f7;
+ display: flex;
+}
+.x-spreadsheet-bottombar {
+ position: relative;
+ border-top: 1px solid #e0e2e4;
+}
+.x-spreadsheet-bottombar .x-spreadsheet-menu > li {
+ line-height: 40px;
+ height: 40px;
+ padding-top: 0;
+ padding-bottom: 0;
+ vertical-align: middle;
+ border-right: 1px solid #e8eaed;
+}
+.x-spreadsheet-menu {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ user-select: none;
+}
+.x-spreadsheet-menu > li {
+ float: left;
+ line-height: 1.25em;
+ padding: 0.785em 1em;
+ margin: 0;
+ vertical-align: middle;
+ text-align: left;
+ font-weight: 400;
+ color: #80868b;
+ white-space: nowrap;
+ cursor: pointer;
+ transition: all 0.3s;
+ font-weight: bold;
+}
+.x-spreadsheet-menu > li.active {
+ background-color: #fff;
+ color: rgba(0, 0, 0, 0.65);
+}
+.x-spreadsheet-menu > li .x-spreadsheet-dropdown {
+ display: inline-block;
+}
+.x-spreadsheet-print {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 100;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+}
+.x-spreadsheet-print-bar {
+ background: #424242;
+ height: 60px;
+ line-height: 60px;
+ padding: 0 30px;
+}
+.x-spreadsheet-print-bar .-title {
+ color: #fff;
+ font-weight: bold;
+ font-size: 1.2em;
+ float: left;
+}
+.x-spreadsheet-print-bar .-right {
+ float: right;
+ margin-top: 12px;
+}
+.x-spreadsheet-print-content {
+ display: flex;
+ flex: auto;
+ flex-direction: row;
+ background: #d0d0d0;
+ height: calc(100% - 60px);
+}
+.x-spreadsheet-print-content .-sider {
+ flex: 0 0 300px;
+ width: 300px;
+ border-left: 2px solid #ccc;
+ background: #fff;
+}
+.x-spreadsheet-print-content .-content {
+ flex: auto;
+ overflow-x: auto;
+ overflow-y: scroll;
+ height: 100%;
+}
+.x-spreadsheet-canvas-card-wraper {
+ margin: 40px 20px;
+}
+.x-spreadsheet-canvas-card {
+ background: #fff;
+ margin: auto;
+ page-break-before: auto;
+ page-break-after: always;
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 5px 0 rgba(0, 0, 0, 0.2);
+}
+.x-spreadsheet-calendar {
+ color: rgba(0, 0, 0, 0.65);
+ background: #ffffff;
+ user-select: none;
+}
+.x-spreadsheet-calendar .calendar-header {
+ font-weight: 700;
+ line-height: 30px;
+ text-align: center;
+ width: 100%;
+ float: left;
+ background: #f9fafb;
+}
+.x-spreadsheet-calendar .calendar-header .calendar-header-left {
+ padding-left: 5px;
+ float: left;
+}
+.x-spreadsheet-calendar .calendar-header .calendar-header-right {
+ float: right;
+}
+.x-spreadsheet-calendar .calendar-header .calendar-header-right a {
+ padding: 3px 0;
+ margin-right: 2px;
+ border-radius: 2px;
+}
+.x-spreadsheet-calendar .calendar-header .calendar-header-right a:hover {
+ background: rgba(0, 0, 0, 0.08);
+}
+.x-spreadsheet-calendar .calendar-body {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+.x-spreadsheet-calendar .calendar-body th,
+.x-spreadsheet-calendar .calendar-body td {
+ width: 14.28571429%;
+ min-width: 32px;
+ text-align: center;
+ font-weight: 700;
+ line-height: 30px;
+ padding: 0;
+}
+.x-spreadsheet-calendar .calendar-body td > .cell:hover {
+ background: #ecf6fd;
+}
+.x-spreadsheet-calendar .calendar-body td > .cell.active,
+.x-spreadsheet-calendar .calendar-body td > .cell.active:hover {
+ background: #ecf6fd;
+ color: #2185D0;
+}
+.x-spreadsheet-calendar .calendar-body td > .cell.disabled {
+ pointer-events: none;
+ opacity: 0.5;
+}
+.x-spreadsheet-datepicker {
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
+ position: absolute;
+ left: 0;
+ top: calc(100% + 5px);
+ z-index: 10;
+ width: auto;
+}
+.x-spreadsheet-buttons {
+ display: flex;
+ justify-content: flex-end;
+}
+.x-spreadsheet-buttons .x-spreadsheet-button {
+ margin-left: 8px;
+}
+.x-spreadsheet-button {
+ display: inline-block;
+ border-radius: 3px;
+ line-height: 1em;
+ min-height: 1em;
+ white-space: nowrap;
+ text-align: center;
+ cursor: pointer;
+ font-size: 1em;
+ font-weight: 700;
+ padding: 0.75em 1em;
+ color: rgba(0, 0, 0, 0.6);
+ background: #E0E1E2;
+ text-decoration: none;
+ font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
+ outline: none;
+ vertical-align: baseline;
+ zoom: 1;
+ user-select: none;
+ transition: all 0.1s linear;
+}
+.x-spreadsheet-button.active,
+.x-spreadsheet-button:hover {
+ background-color: #C0C1C2;
+ color: rgba(0, 0, 0, 0.8);
+}
+.x-spreadsheet-button.primary {
+ color: #fff;
+ background-color: #2185D0;
+}
+.x-spreadsheet-button.primary:hover,
+.x-spreadsheet-button.primary.active {
+ color: #fff;
+ background-color: #1678c2;
+}
+.x-spreadsheet-form-input {
+ font-size: 1em;
+ position: relative;
+ font-weight: 400;
+ display: inline-flex;
+ color: rgba(0, 0, 0, 0.87);
+}
+.x-spreadsheet-form-input input {
+ z-index: 1;
+ margin: 0;
+ max-width: 100%;
+ flex: 1 0 auto;
+ outline: 0;
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
+ text-align: left;
+ line-height: 30px;
+ height: 30px;
+ padding: 0 8px;
+ background: #fff;
+ border: 1px solid #e9e9e9;
+ border-radius: 3px;
+ transition: box-shadow 0.1s ease, border-color 0.1s ease;
+ box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06);
+}
+.x-spreadsheet-form-input input:focus {
+ border-color: #4b89ff;
+ box-shadow: inset 0 1px 2px rgba(75, 137, 255, 0.2);
+}
+.x-spreadsheet-form-select {
+ position: relative;
+ display: inline-block;
+ background: #fff;
+ border: 1px solid #e9e9e9;
+ border-radius: 2px;
+ cursor: pointer;
+ color: rgba(0, 0, 0, 0.87);
+ user-select: none;
+ box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06);
+}
+.x-spreadsheet-form-select .input-text {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ min-width: 60px;
+ width: auto;
+ height: 30px;
+ line-height: 30px;
+ padding: 0 8px;
+}
+.x-spreadsheet-form-fields {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
+.x-spreadsheet-form-fields .x-spreadsheet-form-field {
+ flex: 0 1 auto;
+}
+.x-spreadsheet-form-fields .x-spreadsheet-form-field .label {
+ display: inline-block;
+ margin: 0 10px 0 0;
+}
+.x-spreadsheet-form-field {
+ display: block;
+ vertical-align: middle;
+ margin-left: 10px;
+ margin-bottom: 10px;
+}
+.x-spreadsheet-form-field:first-child {
+ margin-left: 0;
+}
+.x-spreadsheet-form-field.error .x-spreadsheet-form-select,
+.x-spreadsheet-form-field.error input {
+ border-color: #f04134;
+}
+.x-spreadsheet-form-field .tip {
+ color: #f04134;
+ font-size: 0.9em;
+}
+.x-spreadsheet-dimmer {
+ display: none;
+ position: absolute;
+ top: 0 !important;
+ left: 0 !important;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ vertical-align: middle;
+ background-color: rgba(0, 0, 0, 0.6);
+ opacity: 0;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both;
+ -webkit-animation-duration: 0.5s;
+ animation-duration: 0.5s;
+ transition: background-color 0.5s linear;
+ user-select: none;
+ z-index: 1000;
+}
+.x-spreadsheet-dimmer.active {
+ display: block;
+ opacity: 1;
+}
+form fieldset {
+ border: none;
+}
+form fieldset label {
+ display: block;
+ margin-bottom: 0.5em;
+ font-size: 1em;
+ color: #666;
+}
+form fieldset select {
+ font-size: 1.1em;
+ width: 100%;
+ background-color: #fff;
+ border: none;
+ border-bottom: 2px solid #ddd;
+ padding: 0.5em 0.85em;
+ border-radius: 2px;
+}
+.x-spreadsheet-modal,
+.x-spreadsheet-toast {
+ font-size: 13px;
+ position: fixed;
+ z-index: 1001;
+ text-align: left;
+ line-height: 1.25em;
+ min-width: 360px;
+ color: rgba(0, 0, 0, 0.87);
+ font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
+ border-radius: 4px;
+ border: 1px solid rgba(0, 0, 0, 0.1);
+ background-color: #fff;
+ background-clip: padding-box;
+ box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
+}
+.x-spreadsheet-toast {
+ background-color: rgba(255, 255, 255, 0.85);
+}
+.x-spreadsheet-modal-header,
+.x-spreadsheet-toast-header {
+ font-weight: 600;
+ background-clip: padding-box;
+ background-color: rgba(255, 255, 255, 0.85);
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
+ border-radius: 4px 4px 0 0;
+}
+
+.x-spreadsheet-toast-header {
+ color: #F2711C;
+}
+.x-spreadsheet-modal-header {
+ border-bottom: 1px solid #e0e2e4;
+ background: rgba(0, 0, 0, 0.08);
+ font-size: 1.0785em;
+}
+.x-spreadsheet-modal-header,
+.x-spreadsheet-modal-content,
+.x-spreadsheet-toast-header,
+.x-spreadsheet-toast-content {
+ padding: 0.75em 1em;
+}
+
+.x-spreadsheet-menu li:first-child {
+ display: none;
+}
+
+.vue-office-excel {
+ height: 100%;
+}
\ No newline at end of file
diff --git a/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs b/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs
new file mode 100644
index 00000000..87b57a05
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs
@@ -0,0 +1,54424 @@
+var am = Object.defineProperty;
+var El = Object.getOwnPropertySymbols;
+var om = Object.prototype.hasOwnProperty, sm = Object.prototype.propertyIsEnumerable;
+var Rl = Math.pow, Tl = (H, k, e) => k in H ? am(H, k, { enumerable: !0, configurable: !0, writable: !0, value: e }) : H[k] = e, Qs = (H, k) => {
+ for (var e in k || (k = {}))
+ om.call(k, e) && Tl(H, e, k[e]);
+ if (El)
+ for (var e of El(k))
+ sm.call(k, e) && Tl(H, e, k[e]);
+ return H;
+};
+import { defineComponent as fm, ref as Cl, onMounted as um, nextTick as lm, onBeforeUnmount as cm, watch as hm } from "vue-demi";
+import { openBlock as dm, createElementBlock as pm, createElementVNode as ym } from "vue";
+class Hi {
+ constructor(k, e = "") {
+ typeof k == "string" ? (this.el = document.createElement(k), this.el.className = e) : this.el = k, this.data = {};
+ }
+ data(k, e) {
+ return e !== void 0 ? (this.data[k] = e, this) : this.data[k];
+ }
+ on(k, e) {
+ const [x, ..._] = k.split(".");
+ let u = x;
+ return u === "mousewheel" && /Firefox/i.test(window.navigator.userAgent) && (u = "DOMMouseScroll"), this.el.addEventListener(u, (m) => {
+ e(m);
+ for (let g = 0; g < _.length; g += 1) {
+ const b = _[g];
+ if (b === "left" && m.button !== 0 || b === "right" && m.button !== 2)
+ return;
+ b === "stop" && m.stopPropagation();
+ }
+ }), this;
+ }
+ offset(k) {
+ if (k !== void 0)
+ return Object.keys(k).forEach((m) => {
+ this.css(m, `${k[m]}px`);
+ }), this;
+ const {
+ offsetTop: e,
+ offsetLeft: x,
+ offsetHeight: _,
+ offsetWidth: u
+ } = this.el;
+ return {
+ top: e,
+ left: x,
+ height: _,
+ width: u
+ };
+ }
+ scroll(k) {
+ const { el: e } = this;
+ return k !== void 0 && (k.left !== void 0 && (e.scrollLeft = k.left), k.top !== void 0 && (e.scrollTop = k.top)), { left: e.scrollLeft, top: e.scrollTop };
+ }
+ box() {
+ return this.el.getBoundingClientRect();
+ }
+ parent() {
+ return new Hi(this.el.parentNode);
+ }
+ children(...k) {
+ return arguments.length === 0 ? this.el.childNodes : (k.forEach((e) => this.child(e)), this);
+ }
+ removeChild(k) {
+ this.el.removeChild(k);
+ }
+ /*
+ first() {
+ return this.el.firstChild;
+ }
+
+ last() {
+ return this.el.lastChild;
+ }
+
+ remove(ele) {
+ return this.el.removeChild(ele);
+ }
+
+ prepend(ele) {
+ const { el } = this;
+ if (el.children.length > 0) {
+ el.insertBefore(ele, el.firstChild);
+ } else {
+ el.appendChild(ele);
+ }
+ return this;
+ }
+
+ prev() {
+ return this.el.previousSibling;
+ }
+
+ next() {
+ return this.el.nextSibling;
+ }
+ */
+ child(k) {
+ let e = k;
+ return typeof k == "string" ? e = document.createTextNode(k) : k instanceof Hi && (e = k.el), this.el.appendChild(e), this;
+ }
+ contains(k) {
+ return this.el.contains(k);
+ }
+ className(k) {
+ return k !== void 0 ? (this.el.className = k, this) : this.el.className;
+ }
+ addClass(k) {
+ return this.el.classList.add(k), this;
+ }
+ hasClass(k) {
+ return this.el.classList.contains(k);
+ }
+ removeClass(k) {
+ return this.el.classList.remove(k), this;
+ }
+ toggle(k = "active") {
+ return this.toggleClass(k);
+ }
+ toggleClass(k) {
+ return this.el.classList.toggle(k);
+ }
+ active(k = !0, e = "active") {
+ return k ? this.addClass(e) : this.removeClass(e), this;
+ }
+ checked(k = !0) {
+ return this.active(k, "checked"), this;
+ }
+ disabled(k = !0) {
+ return k ? this.addClass("disabled") : this.removeClass("disabled"), this;
+ }
+ // key, value
+ // key
+ // {k, v}...
+ attr(k, e) {
+ if (e !== void 0)
+ this.el.setAttribute(k, e);
+ else {
+ if (typeof k == "string")
+ return this.el.getAttribute(k);
+ Object.keys(k).forEach((x) => {
+ this.el.setAttribute(x, k[x]);
+ });
+ }
+ return this;
+ }
+ removeAttr(k) {
+ return this.el.removeAttribute(k), this;
+ }
+ html(k) {
+ return k !== void 0 ? (this.el.innerHTML = k, this) : this.el.innerHTML;
+ }
+ val(k) {
+ return k !== void 0 ? (this.el.value = k, this) : this.el.value;
+ }
+ focus() {
+ this.el.focus();
+ }
+ cssRemoveKeys(...k) {
+ return k.forEach((e) => this.el.style.removeProperty(e)), this;
+ }
+ // css( propertyName )
+ // css( propertyName, value )
+ // css( properties )
+ css(k, e) {
+ return e === void 0 && typeof k != "string" ? (Object.keys(k).forEach((x) => {
+ this.el.style[x] = k[x];
+ }), this) : e !== void 0 ? (this.el.style[k] = e, this) : this.el.style[k];
+ }
+ computedStyle() {
+ return window.getComputedStyle(this.el, null);
+ }
+ show() {
+ return this.css("display", "block"), this;
+ }
+ hide() {
+ return this.css("display", "none"), this;
+ }
+}
+const $e = (H, k = "") => new Hi(H, k), Ei = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
+function cc(H) {
+ let k = "", e = H;
+ for (; e >= Ei.length; )
+ e /= Ei.length, e -= 1, k += Ei[parseInt(e, 10) % Ei.length];
+ const x = H % Ei.length;
+ return k += Ei[x], k;
+}
+function vm(H) {
+ let k = 0;
+ for (let e = 0; e < H.length - 1; e += 1) {
+ const x = H.charCodeAt(e) - 65, _ = H.length - 1 - e;
+ k += Rl(Ei.length, _) + Ei.length * x;
+ }
+ return k += H.charCodeAt(H.length - 1) - 65, k;
+}
+function Ti(H) {
+ let k = "", e = "";
+ for (let x = 0; x < H.length; x += 1)
+ H.charAt(x) >= "0" && H.charAt(x) <= "9" ? e += H.charAt(x) : k += H.charAt(x);
+ return [vm(k), parseInt(e, 10) - 1];
+}
+function hi(H, k) {
+ return `${cc(H)}${k + 1}`;
+}
+function Ha(H, k, e, x = () => !0) {
+ if (k === 0 && e === 0)
+ return H;
+ const [_, u] = Ti(H);
+ return x(_, u) ? hi(_ + k, u + e) : H;
+}
+class kr {
+ constructor(k, e, x, _, u = 0, m = 0) {
+ this.sri = k, this.sci = e, this.eri = x, this.eci = _, this.w = u, this.h = m;
+ }
+ set(k, e, x, _) {
+ this.sri = k, this.sci = e, this.eri = x, this.eci = _;
+ }
+ multiple() {
+ return this.eri - this.sri > 0 || this.eci - this.sci > 0;
+ }
+ // cell-index: ri, ci
+ // cell-ref: A10
+ includes(...k) {
+ let [e, x] = [0, 0];
+ k.length === 1 ? [x, e] = Ti(k[0]) : k.length === 2 && ([e, x] = k);
+ const {
+ sri: _,
+ sci: u,
+ eri: m,
+ eci: g
+ } = this;
+ return _ <= e && e <= m && u <= x && x <= g;
+ }
+ each(k, e = () => !0) {
+ const {
+ sri: x,
+ sci: _,
+ eri: u,
+ eci: m
+ } = this;
+ for (let g = x; g <= u; g += 1)
+ if (e(g))
+ for (let b = _; b <= m; b += 1)
+ k(g, b);
+ }
+ contains(k) {
+ return this.sri <= k.sri && this.sci <= k.sci && this.eri >= k.eri && this.eci >= k.eci;
+ }
+ // within
+ within(k) {
+ return this.sri >= k.sri && this.sci >= k.sci && this.eri <= k.eri && this.eci <= k.eci;
+ }
+ // disjoint
+ disjoint(k) {
+ return this.sri > k.eri || this.sci > k.eci || k.sri > this.eri || k.sci > this.eci;
+ }
+ // intersects
+ intersects(k) {
+ return this.sri <= k.eri && this.sci <= k.eci && k.sri <= this.eri && k.sci <= this.eci;
+ }
+ // union
+ union(k) {
+ const {
+ sri: e,
+ sci: x,
+ eri: _,
+ eci: u
+ } = this;
+ return new kr(
+ k.sri < e ? k.sri : e,
+ k.sci < x ? k.sci : x,
+ k.eri > _ ? k.eri : _,
+ k.eci > u ? k.eci : u
+ );
+ }
+ // intersection
+ // intersection(other) {}
+ // Returns Array that represents that part of this that does not intersect with other
+ // difference
+ difference(k) {
+ const e = [], x = (h, l, d, s) => {
+ e.push(new kr(h, l, d, s));
+ }, {
+ sri: _,
+ sci: u,
+ eri: m,
+ eci: g
+ } = this, b = k.sri - _, w = k.sci - u, f = m - k.eri, y = g - k.eci;
+ return b > 0 ? (x(_, u, k.sri - 1, g), f > 0 ? (x(k.eri + 1, u, m, g), w > 0 && x(k.sri, u, k.eri, k.sci - 1), y > 0 && x(k.sri, k.eci + 1, k.eri, g)) : (w > 0 && x(k.sri, u, m, k.sci - 1), y > 0 && x(k.sri, k.eci + 1, m, g))) : f > 0 && (x(k.eri + 1, u, m, g), w > 0 && x(_, u, k.eri, k.sci - 1), y > 0 && x(_, k.eci + 1, k.eri, g)), w > 0 ? (x(_, u, m, k.sci - 1), y > 0 ? (x(_, k.eri + 1, m, g), b > 0 && x(_, k.sci, k.sri - 1, k.eci), f > 0 && x(k.sri + 1, k.sci, m, k.eci)) : (b > 0 && x(_, k.sci, k.sri - 1, g), f > 0 && x(k.sri + 1, k.sci, m, g))) : y > 0 && (x(m, k.eci + 1, m, g), b > 0 && x(_, u, k.sri - 1, k.eci), f > 0 && x(k.eri + 1, u, m, k.eci)), e;
+ }
+ size() {
+ return [
+ this.eri - this.sri + 1,
+ this.eci - this.sci + 1
+ ];
+ }
+ toString() {
+ const {
+ sri: k,
+ sci: e,
+ eri: x,
+ eci: _
+ } = this;
+ let u = hi(e, k);
+ return this.multiple() && (u = `${u}:${hi(_, x)}`), u;
+ }
+ clone() {
+ const {
+ sri: k,
+ sci: e,
+ eri: x,
+ eci: _,
+ w: u,
+ h: m
+ } = this;
+ return new kr(k, e, x, _, u, m);
+ }
+ /*
+ toJSON() {
+ return this.toString();
+ }
+ */
+ equals(k) {
+ return this.eri === k.eri && this.eci === k.eci && this.sri === k.sri && this.sci === k.sci;
+ }
+ static valueOf(k) {
+ const e = k.split(":"), [x, _] = Ti(e[0]);
+ let [u, m] = [_, x];
+ return e.length > 1 && ([m, u] = Ti(e[1])), new kr(_, x, u, m);
+ }
+}
+let mm = class {
+ constructor() {
+ this.range = new kr(0, 0, 0, 0), this.ri = 0, this.ci = 0;
+ }
+ multiple() {
+ return this.range.multiple();
+ }
+ setIndexes(k, e) {
+ this.ri = k, this.ci = e;
+ }
+ size() {
+ return this.range.size();
+ }
+};
+class bm {
+ constructor() {
+ this.x = 0, this.y = 0, this.ri = 0, this.ci = 0;
+ }
+}
+class gm {
+ constructor() {
+ this.undoItems = [], this.redoItems = [];
+ }
+ add(k) {
+ this.undoItems.push(JSON.stringify(k)), this.redoItems = [];
+ }
+ canUndo() {
+ return this.undoItems.length > 0;
+ }
+ canRedo() {
+ return this.redoItems.length > 0;
+ }
+ undo(k, e) {
+ const { undoItems: x, redoItems: _ } = this;
+ this.canUndo() && (_.push(JSON.stringify(k)), e(JSON.parse(x.pop())));
+ }
+ redo(k, e) {
+ const { undoItems: x, redoItems: _ } = this;
+ this.canRedo() && (x.push(JSON.stringify(k)), e(JSON.parse(_.pop())));
+ }
+}
+class _m {
+ constructor() {
+ this.range = null, this.state = "clear";
+ }
+ copy(k) {
+ return this.range = k, this.state = "copy", this;
+ }
+ cut(k) {
+ return this.range = k, this.state = "cut", this;
+ }
+ isCopy() {
+ return this.state === "copy";
+ }
+ isCut() {
+ return this.state === "cut";
+ }
+ isClear() {
+ return this.state === "clear";
+ }
+ clear() {
+ this.range = null, this.state = "clear";
+ }
+}
+class Pl {
+ constructor(k, e, x) {
+ this.ci = k, this.operator = e, this.value = x;
+ }
+ set(k, e) {
+ this.operator = k, this.value = e;
+ }
+ includes(k) {
+ const { operator: e, value: x } = this;
+ return e === "all" ? !0 : e === "in" ? x.includes(k) : !1;
+ }
+ vlength() {
+ const { operator: k, value: e } = this;
+ return k === "in" ? e.length : 0;
+ }
+ getData() {
+ const { ci: k, operator: e, value: x } = this;
+ return { ci: k, operator: e, value: x };
+ }
+}
+class Al {
+ constructor(k, e) {
+ this.ci = k, this.order = e;
+ }
+ asc() {
+ return this.order === "asc";
+ }
+ desc() {
+ return this.order === "desc";
+ }
+}
+class wm {
+ constructor() {
+ this.ref = null, this.filters = [], this.sort = null;
+ }
+ setData({ ref: k, filters: e, sort: x }) {
+ k != null && (this.ref = k, this.filters = e.map((_) => new Pl(_.ci, _.operator, _.value)), x && (this.sort = new Al(x.ci, x.order)));
+ }
+ getData() {
+ if (this.active()) {
+ const { ref: k, filters: e, sort: x } = this;
+ return { ref: k, filters: e.map((_) => _.getData()), sort: x };
+ }
+ return {};
+ }
+ addFilter(k, e, x) {
+ const _ = this.getFilter(k);
+ _ == null ? this.filters.push(new Pl(k, e, x)) : _.set(e, x);
+ }
+ setSort(k, e) {
+ this.sort = e ? new Al(k, e) : null;
+ }
+ includes(k, e) {
+ return this.active() ? this.hrange().includes(k, e) : !1;
+ }
+ getSort(k) {
+ const { sort: e } = this;
+ return e && e.ci === k ? e : null;
+ }
+ getFilter(k) {
+ const { filters: e } = this;
+ for (let x = 0; x < e.length; x += 1)
+ if (e[x].ci === k)
+ return e[x];
+ return null;
+ }
+ filteredRows(k) {
+ const e = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
+ if (this.active()) {
+ const { sri: _, eri: u } = this.range(), { filters: m } = this;
+ for (let g = _ + 1; g <= u; g += 1)
+ for (let b = 0; b < m.length; b += 1) {
+ const w = m[b], f = k(g, w.ci), y = f ? f.text : "";
+ if (w.includes(y))
+ x.add(g);
+ else {
+ e.add(g);
+ break;
+ }
+ }
+ }
+ return { rset: e, fset: x };
+ }
+ items(k, e) {
+ const x = {};
+ if (this.active()) {
+ const { sri: _, eri: u } = this.range();
+ for (let m = _ + 1; m <= u; m += 1) {
+ const g = e(m, k);
+ if (g !== null && !/^\s*$/.test(g.text)) {
+ const b = g.text, w = (x[b] || 0) + 1;
+ x[b] = w;
+ } else
+ x[""] = (x[""] || 0) + 1;
+ }
+ }
+ return x;
+ }
+ range() {
+ return kr.valueOf(this.ref);
+ }
+ hrange() {
+ const k = this.range();
+ return k.eri = k.sri, k;
+ }
+ clear() {
+ this.ref = null, this.filters = [], this.sort = null;
+ }
+ active() {
+ return this.ref !== null;
+ }
+}
+class xf {
+ constructor(k = []) {
+ this._ = k;
+ }
+ forEach(k) {
+ this._.forEach(k);
+ }
+ deleteWithin(k) {
+ this._ = this._.filter((e) => !e.within(k));
+ }
+ getFirstIncludes(k, e) {
+ for (let x = 0; x < this._.length; x += 1) {
+ const _ = this._[x];
+ if (_.includes(k, e))
+ return _;
+ }
+ return null;
+ }
+ filterIntersects(k) {
+ return new xf(this._.filter((e) => e.intersects(k)));
+ }
+ intersects(k) {
+ for (let e = 0; e < this._.length; e += 1)
+ if (this._[e].intersects(k))
+ return !0;
+ return !1;
+ }
+ union(k) {
+ let e = k;
+ return this._.forEach((x) => {
+ x.intersects(e) && (e = x.union(e));
+ }), e;
+ }
+ add(k) {
+ this.deleteWithin(k), this._.push(k);
+ }
+ // type: row | column
+ shift(k, e, x, _) {
+ this._.forEach((u) => {
+ const {
+ sri: m,
+ sci: g,
+ eri: b,
+ eci: w
+ } = u, f = u;
+ k === "row" ? m >= e ? (f.sri += x, f.eri += x) : m < e && e <= b && (f.eri += x, _(m, g, x, 0)) : k === "column" && (g >= e ? (f.sci += x, f.eci += x) : g < e && e <= w && (f.eci += x, _(m, g, 0, x)));
+ });
+ }
+ move(k, e, x) {
+ this._.forEach((_) => {
+ const u = _;
+ u.within(k) && (u.eri += e, u.sri += e, u.sci += x, u.eci += x);
+ });
+ }
+ setData(k) {
+ return this._ = k.map((e) => kr.valueOf(e)), this;
+ }
+ getData() {
+ return this._.map((k) => k.toString());
+ }
+}
+function xm(H) {
+ return JSON.parse(JSON.stringify(H));
+}
+const hc = (H = {}, ...k) => (k.forEach((e) => {
+ Object.keys(e).forEach((x) => {
+ const _ = e[x];
+ typeof _ == "string" || typeof _ == "number" || typeof _ == "boolean" ? H[x] = _ : typeof _ != "function" && !Array.isArray(_) && _ instanceof Object ? (H[x] = H[x] || {}, hc(H[x], _)) : H[x] = _;
+ });
+}), H);
+function cf(H, k) {
+ const e = Object.keys(H);
+ if (e.length !== Object.keys(k).length)
+ return !1;
+ for (let x = 0; x < e.length; x += 1) {
+ const _ = e[x], u = H[_], m = k[_];
+ if (m === void 0)
+ return !1;
+ if (typeof u == "string" || typeof u == "number" || typeof u == "boolean") {
+ if (u !== m)
+ return !1;
+ } else if (Array.isArray(u)) {
+ if (u.length !== m.length)
+ return !1;
+ for (let g = 0; g < u.length; g += 1)
+ if (!cf(u[g], m[g]))
+ return !1;
+ } else if (typeof u != "function" && !Array.isArray(u) && u instanceof Object && !cf(u, m))
+ return !1;
+ }
+ return !0;
+}
+const Sm = (H, k = (e) => e) => {
+ let e = 0, x = 0;
+ return Object.keys(H).forEach((_) => {
+ e += k(H[_], _), x += 1;
+ }), [e, x];
+};
+function km(H, k) {
+ const e = H[`${k}`];
+ return delete H[`${k}`], e;
+}
+function Om(H, k, e, x, _, u) {
+ let m = e, g = x, b = H;
+ for (; b < k && !(m > _); b += 1)
+ g = u(b), m += g;
+ return [b, m - g, g];
+}
+function Em(H, k, e) {
+ let x = 0;
+ for (let _ = H; _ < k; _ += 1)
+ x += e(_);
+ return x;
+}
+function Tm(H, k, e) {
+ for (let x = H; x < k; x += 1)
+ e(x);
+}
+function Rm(H, k) {
+ if (H.length === k.length) {
+ for (let e = 0; e < H.length; e += 1)
+ if (H[e] !== k[e])
+ return !1;
+ } else
+ return !1;
+ return !0;
+}
+function qs(H) {
+ const k = `${H}`;
+ let e = 0, x = !1;
+ for (let _ = 0; _ < k.length; _ += 1)
+ x === !0 && (e += 1), k.charAt(_) === "." && (x = !0);
+ return e;
+}
+function ji(H, k, e) {
+ if (Number.isNaN(k) || Number.isNaN(e))
+ return k + H + e;
+ const x = qs(k), _ = qs(e), u = Number(k), m = Number(e);
+ let g = 0;
+ if (H === "-")
+ g = u - m;
+ else if (H === "+")
+ g = u + m;
+ else if (H === "*")
+ g = u * m;
+ else if (H === "/")
+ return g = u / m, qs(g) > 5 ? g.toFixed(2) : g;
+ return g.toFixed(Math.max(x, _));
+}
+const fn = {
+ cloneDeep: xm,
+ merge: (...H) => hc({}, ...H),
+ equals: cf,
+ arrayEquals: Rm,
+ sum: Sm,
+ rangeEach: Tm,
+ rangeSum: Em,
+ rangeReduceIf: Om,
+ deleteProperty: km,
+ numberCalc: ji
+};
+class Cm {
+ constructor({ len: k, height: e }) {
+ this._ = {}, this.len = k, this.height = e;
+ }
+ getHeight(k) {
+ if (this.isHide(k))
+ return 0;
+ const e = this.get(k);
+ return e && e.height ? e.height : this.height;
+ }
+ setHeight(k, e) {
+ const x = this.getOrNew(k);
+ x.height = e;
+ }
+ unhide(k) {
+ let e = k;
+ for (; e > 0 && (e -= 1, this.isHide(e)); )
+ this.setHide(e, !1);
+ }
+ isHide(k) {
+ const e = this.get(k);
+ return e && e.hide;
+ }
+ setHide(k, e) {
+ const x = this.getOrNew(k);
+ e === !0 ? x.hide = !0 : delete x.hide;
+ }
+ setStyle(k, e) {
+ const x = this.getOrNew(k);
+ x.style = e;
+ }
+ sumHeight(k, e, x) {
+ return fn.rangeSum(k, e, (_) => x && x.has(_) ? 0 : this.getHeight(_));
+ }
+ totalHeight() {
+ return this.sumHeight(0, this.len);
+ }
+ get(k) {
+ return this._[k];
+ }
+ getOrNew(k) {
+ return this._[k] = this._[k] || { cells: {} }, this._[k];
+ }
+ getCell(k, e) {
+ const x = this.get(k);
+ return x !== void 0 && x.cells !== void 0 && x.cells[e] !== void 0 ? x.cells[e] : null;
+ }
+ getCellMerge(k, e) {
+ const x = this.getCell(k, e);
+ return x && x.merge ? x.merge : [0, 0];
+ }
+ getCellOrNew(k, e) {
+ const x = this.getOrNew(k);
+ return x.cells[e] = x.cells[e] || {}, x.cells[e];
+ }
+ // what: all | text | format
+ setCell(k, e, x, _ = "all") {
+ const u = this.getOrNew(k);
+ _ === "all" ? u.cells[e] = x : _ === "text" ? (u.cells[e] = u.cells[e] || {}, u.cells[e].text = x.text) : _ === "format" && (u.cells[e] = u.cells[e] || {}, u.cells[e].style = x.style, x.merge && (u.cells[e].merge = x.merge));
+ }
+ setCellText(k, e, x) {
+ const _ = this.getCellOrNew(k, e);
+ _.editable !== !1 && (_.text = x);
+ }
+ // what: all | format | text
+ copyPaste(k, e, x, _ = !1, u = () => {
+ }) {
+ const {
+ sri: m,
+ sci: g,
+ eri: b,
+ eci: w
+ } = k, f = e.sri, y = e.sci, h = e.eri, l = e.eci, [d, s] = k.size(), [v, c] = e.size();
+ let a = !0, r = 0;
+ (h < m || l < g) && (a = !1, h < m ? r = v : r = c);
+ for (let t = m; t <= b; t += 1)
+ if (this._[t]) {
+ for (let i = g; i <= w; i += 1)
+ if (this._[t].cells && this._[t].cells[i])
+ for (let n = f; n <= h; n += d)
+ for (let o = y; o <= l; o += s) {
+ const p = n + (t - m), O = o + (i - g), P = fn.cloneDeep(this._[t].cells[i]);
+ if (_ && P && P.text && P.text.length > 0) {
+ const { text: F } = P;
+ let z = o - y + (n - f) + 2;
+ if (a || (z -= r + 1), F[0] === "=")
+ P.text = F.replace(/[a-zA-Z]{1,3}\d+/g, (N) => {
+ let [M, I] = [0, 0];
+ return m === f ? M = z - 1 : I = z - 1, /^\d+$/.test(N) ? N : Ha(N, M, I);
+ });
+ else if (d <= 1 && s > 1 && (f > b || h < m) || s <= 1 && d > 1 && (y > w || l < g) || d <= 1 && s <= 1) {
+ const N = /[\\.\d]+$/.exec(F);
+ if (N !== null) {
+ const M = Number(N[0]) + z - 1;
+ P.text = F.substring(0, N.index) + M;
+ }
+ }
+ }
+ this.setCell(p, O, P, x), u(p, O, P);
+ }
+ }
+ }
+ cutPaste(k, e) {
+ const x = {};
+ this.each((_) => {
+ this.eachCells(_, (u) => {
+ let m = parseInt(_, 10), g = parseInt(u, 10);
+ k.includes(_, u) && (m = e.sri + (m - k.sri), g = e.sci + (g - k.sci)), x[m] = x[m] || { cells: {} }, x[m].cells[g] = this._[_].cells[u];
+ });
+ }), this._ = x;
+ }
+ // src: Array>
+ paste(k, e) {
+ if (k.length <= 0)
+ return;
+ const { sri: x, sci: _ } = e;
+ k.forEach((u, m) => {
+ const g = x + m;
+ u.forEach((b, w) => {
+ const f = _ + w;
+ this.setCellText(g, f, b);
+ });
+ });
+ }
+ insert(k, e = 1) {
+ const x = {};
+ this.each((_, u) => {
+ let m = parseInt(_, 10);
+ m >= k && (m += e, this.eachCells(_, (g, b) => {
+ b.text && b.text[0] === "=" && (b.text = b.text.replace(/[a-zA-Z]{1,3}\d+/g, (w) => Ha(w, 0, e, (f, y) => y >= k)));
+ })), x[m] = u;
+ }), this._ = x, this.len += e;
+ }
+ delete(k, e) {
+ const x = e - k + 1, _ = {};
+ this.each((u, m) => {
+ const g = parseInt(u, 10);
+ g < k ? _[g] = m : u > e && (_[g - x] = m, this.eachCells(u, (b, w) => {
+ w.text && w.text[0] === "=" && (w.text = w.text.replace(/[a-zA-Z]{1,3}\d+/g, (f) => Ha(f, 0, -x, (y, h) => h > e)));
+ }));
+ }), this._ = _, this.len -= x;
+ }
+ insertColumn(k, e = 1) {
+ this.each((x, _) => {
+ const u = {};
+ this.eachCells(x, (m, g) => {
+ let b = parseInt(m, 10);
+ b >= k && (b += e, g.text && g.text[0] === "=" && (g.text = g.text.replace(/[a-zA-Z]{1,3}\d+/g, (w) => Ha(w, e, 0, (f) => f >= k)))), u[b] = g;
+ }), _.cells = u;
+ });
+ }
+ deleteColumn(k, e) {
+ const x = e - k + 1;
+ this.each((_, u) => {
+ const m = {};
+ this.eachCells(_, (g, b) => {
+ const w = parseInt(g, 10);
+ w < k ? m[w] = b : w > e && (m[w - x] = b, b.text && b.text[0] === "=" && (b.text = b.text.replace(/[a-zA-Z]{1,3}\d+/g, (f) => Ha(f, -x, 0, (y) => y > e))));
+ }), u.cells = m;
+ });
+ }
+ // what: all | text | format | merge
+ deleteCells(k, e = "all") {
+ k.each((x, _) => {
+ this.deleteCell(x, _, e);
+ });
+ }
+ // what: all | text | format | merge
+ deleteCell(k, e, x = "all") {
+ const _ = this.get(k);
+ if (_ !== null) {
+ const u = this.getCell(k, e);
+ u !== null && u.editable !== !1 && (x === "all" ? delete _.cells[e] : x === "text" ? (u.text && delete u.text, u.value && delete u.value) : x === "format" ? (u.style !== void 0 && delete u.style, u.merge && delete u.merge) : x === "merge" && u.merge && delete u.merge);
+ }
+ }
+ maxCell() {
+ const k = Object.keys(this._), e = k[k.length - 1], x = this._[e];
+ if (x) {
+ const { cells: _ } = x, u = Object.keys(_), m = u[u.length - 1];
+ return [parseInt(e, 10), parseInt(m, 10)];
+ }
+ return [0, 0];
+ }
+ each(k) {
+ Object.entries(this._).forEach(([e, x]) => {
+ k(e, x);
+ });
+ }
+ eachCells(k, e) {
+ this._[k] && this._[k].cells && Object.entries(this._[k].cells).forEach(([x, _]) => {
+ e(x, _);
+ });
+ }
+ setData(k) {
+ k.len && (this.len = k.len, delete k.len), this._ = k;
+ }
+ getData() {
+ const { len: k } = this;
+ return Object.assign({ len: k }, this._);
+ }
+}
+class Pm {
+ constructor({
+ len: k,
+ width: e,
+ indexWidth: x,
+ minWidth: _
+ }) {
+ this._ = {}, this.len = k, this.width = e, this.indexWidth = x, this.minWidth = _;
+ }
+ setData(k) {
+ k.len && (this.len = k.len, delete k.len), this._ = k;
+ }
+ getData() {
+ const { len: k } = this;
+ return Object.assign({ len: k }, this._);
+ }
+ getWidth(k) {
+ if (this.isHide(k))
+ return 0;
+ const e = this._[k];
+ return e && e.width ? e.width : this.width;
+ }
+ getOrNew(k) {
+ return this._[k] = this._[k] || {}, this._[k];
+ }
+ setWidth(k, e) {
+ const x = this.getOrNew(k);
+ x.width = e;
+ }
+ unhide(k) {
+ let e = k;
+ for (; e > 0 && (e -= 1, this.isHide(e)); )
+ this.setHide(e, !1);
+ }
+ isHide(k) {
+ const e = this._[k];
+ return e && e.hide;
+ }
+ setHide(k, e) {
+ const x = this.getOrNew(k);
+ e === !0 ? x.hide = !0 : delete x.hide;
+ }
+ setStyle(k, e) {
+ const x = this.getOrNew(k);
+ x.style = e;
+ }
+ sumWidth(k, e) {
+ return fn.rangeSum(k, e, (x) => this.getWidth(x));
+ }
+ totalWidth() {
+ return this.sumWidth(0, this.len);
+ }
+}
+const Am = {
+ toolbar: {
+ undo: "Undo",
+ redo: "Redo",
+ print: "Print",
+ paintformat: "Paint format",
+ clearformat: "Clear format",
+ format: "Format",
+ fontName: "Font",
+ fontSize: "Font size",
+ fontBold: "Font bold",
+ fontItalic: "Font italic",
+ underline: "Underline",
+ strike: "Strike",
+ color: "Text color",
+ bgcolor: "Fill color",
+ border: "Borders",
+ merge: "Merge cells",
+ align: "Horizontal align",
+ valign: "Vertical align",
+ textwrap: "Text wrapping",
+ freeze: "Freeze cell",
+ autofilter: "Filter",
+ formula: "Functions",
+ more: "More"
+ },
+ contextmenu: {
+ copy: "Copy",
+ cut: "Cut",
+ paste: "Paste",
+ pasteValue: "Paste values only",
+ pasteFormat: "Paste format only",
+ hide: "Hide",
+ insertRow: "Insert row",
+ insertColumn: "Insert column",
+ deleteSheet: "Delete",
+ deleteRow: "Delete row",
+ deleteColumn: "Delete column",
+ deleteCell: "Delete cell",
+ deleteCellText: "Delete cell text",
+ validation: "Data validations",
+ cellprintable: "Enable export",
+ cellnonprintable: "Disable export",
+ celleditable: "Enable editing",
+ cellnoneditable: "Disable editing"
+ },
+ print: {
+ size: "Paper size",
+ orientation: "Page orientation",
+ orientations: ["Landscape", "Portrait"]
+ },
+ format: {
+ normal: "Normal",
+ text: "Plain Text",
+ number: "Number",
+ percent: "Percent",
+ rmb: "RMB",
+ usd: "USD",
+ eur: "EUR",
+ date: "Date",
+ time: "Time",
+ datetime: "Date time",
+ duration: "Duration"
+ },
+ formula: {
+ sum: "Sum",
+ average: "Average",
+ max: "Max",
+ min: "Min",
+ _if: "IF",
+ and: "AND",
+ or: "OR",
+ concat: "Concat"
+ },
+ validation: {
+ required: "it must be required",
+ notMatch: "it not match its validation rule",
+ between: "it is between {} and {}",
+ notBetween: "it is not between {} and {}",
+ notIn: "it is not in list",
+ equal: "it equal to {}",
+ notEqual: "it not equal to {}",
+ lessThan: "it less than {}",
+ lessThanEqual: "it less than or equal to {}",
+ greaterThan: "it greater than {}",
+ greaterThanEqual: "it greater than or equal to {}"
+ },
+ error: {
+ pasteForMergedCell: "Unable to do this for merged cells"
+ },
+ calendar: {
+ weeks: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
+ },
+ button: {
+ next: "Next",
+ cancel: "Cancel",
+ remove: "Remove",
+ save: "Save",
+ ok: "OK"
+ },
+ sort: {
+ desc: "Sort Z -> A",
+ asc: "Sort A -> Z"
+ },
+ filter: {
+ empty: "empty"
+ },
+ dataValidation: {
+ mode: "Mode",
+ range: "Cell Range",
+ criteria: "Criteria",
+ modeType: {
+ cell: "Cell",
+ column: "Colun",
+ row: "Row"
+ },
+ type: {
+ list: "List",
+ number: "Number",
+ date: "Date",
+ phone: "Phone",
+ email: "Email"
+ },
+ operator: {
+ be: "between",
+ nbe: "not betwwen",
+ lt: "less than",
+ lte: "less than or equal to",
+ gt: "greater than",
+ gte: "greater than or equal to",
+ eq: "equal to",
+ neq: "not equal to"
+ }
+ }
+};
+let hf = ["en"];
+const dc = {
+ en: Am
+};
+function Ml(H, k) {
+ if (k)
+ for (const e of hf) {
+ if (!k[e])
+ break;
+ let x = k[e];
+ const _ = H.match(/(?:\\.|[^.])+/g);
+ for (let u = 0; u < _.length; u += 1) {
+ const m = _[u], g = x[m];
+ if (!g)
+ break;
+ if (u === _.length - 1)
+ return g;
+ x = g;
+ }
+ }
+}
+function Cr(H) {
+ let k = Ml(H, dc);
+ return !k && window && window.x_spreadsheet && window.x_spreadsheet.$messages && (k = Ml(H, window.x_spreadsheet.$messages)), k || "";
+}
+function Jt(H) {
+ return () => Cr(H);
+}
+function pc(H, k, e = !1) {
+ e ? hf = [H] : hf.unshift(H), k && (dc[H] = k);
+}
+const Il = {
+ phone: /^[1-9]\d{10}$/,
+ email: /w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/
+};
+function Un(H, k, ...e) {
+ let x = "";
+ return H || (x = Cr(`validation.${k}`, ...e)), [H, x];
+}
+class yc {
+ // operator: b|nb|eq|neq|lt|lte|gt|gte
+ // type: date|number|list|phone|email
+ constructor(k, e, x, _) {
+ this.required = e, this.value = x, this.type = k, this.operator = _, this.message = "";
+ }
+ parseValue(k) {
+ const { type: e } = this;
+ return e === "date" ? new Date(k) : e === "number" ? Number(k) : k;
+ }
+ equals(k) {
+ let e = this.type === k.type && this.required === k.required && this.operator === k.operator;
+ return e && (Array.isArray(this.value) ? e = fn.arrayEquals(this.value, k.value) : e = this.value === k.value), e;
+ }
+ values() {
+ return this.value.split(",");
+ }
+ validate(k) {
+ const {
+ required: e,
+ operator: x,
+ value: _,
+ type: u
+ } = this;
+ if (e && /^\s*$/.test(k))
+ return Un(!1, "required");
+ if (/^\s*$/.test(k))
+ return [!0];
+ if (Il[u] && !Il[u].test(k))
+ return Un(!1, "notMatch");
+ if (u === "list")
+ return Un(this.values().includes(k), "notIn");
+ if (x) {
+ const m = this.parseValue(k);
+ if (x === "be") {
+ const [g, b] = _;
+ return Un(
+ m >= this.parseValue(g) && m <= this.parseValue(b),
+ "between",
+ g,
+ b
+ );
+ }
+ if (x === "nbe") {
+ const [g, b] = _;
+ return Un(
+ m < this.parseValue(g) || m > this.parseValue(b),
+ "notBetween",
+ g,
+ b
+ );
+ }
+ if (x === "eq")
+ return Un(
+ m === this.parseValue(_),
+ "equal",
+ _
+ );
+ if (x === "neq")
+ return Un(
+ m !== this.parseValue(_),
+ "notEqual",
+ _
+ );
+ if (x === "lt")
+ return Un(
+ m < this.parseValue(_),
+ "lessThan",
+ _
+ );
+ if (x === "lte")
+ return Un(
+ m <= this.parseValue(_),
+ "lessThanEqual",
+ _
+ );
+ if (x === "gt")
+ return Un(
+ m > this.parseValue(_),
+ "greaterThan",
+ _
+ );
+ if (x === "gte")
+ return Un(
+ m >= this.parseValue(_),
+ "greaterThanEqual",
+ _
+ );
+ }
+ return [!0];
+ }
+}
+class Ko {
+ constructor(k, e, x) {
+ this.refs = e, this.mode = k, this.validator = x;
+ }
+ includes(k, e) {
+ const { refs: x } = this;
+ for (let _ = 0; _ < x.length; _ += 1)
+ if (kr.valueOf(x[_]).includes(k, e))
+ return !0;
+ return !1;
+ }
+ addRef(k) {
+ this.remove(kr.valueOf(k)), this.refs.push(k);
+ }
+ remove(k) {
+ const e = [];
+ this.refs.forEach((x) => {
+ const _ = kr.valueOf(x);
+ _.intersects(k) ? _.difference(k).forEach((m) => e.push(m.toString())) : e.push(x);
+ }), this.refs = e;
+ }
+ getData() {
+ const { refs: k, mode: e, validator: x } = this, {
+ type: _,
+ required: u,
+ operator: m,
+ value: g
+ } = x;
+ return {
+ refs: k,
+ mode: e,
+ type: _,
+ required: u,
+ operator: m,
+ value: g
+ };
+ }
+ static valueOf({
+ refs: k,
+ mode: e,
+ type: x,
+ required: _,
+ operator: u,
+ value: m
+ }) {
+ return new Ko(e, k, new yc(x, _, m, u));
+ }
+}
+class Mm {
+ constructor() {
+ this._ = [], this.errors = /* @__PURE__ */ new Map();
+ }
+ getError(k, e) {
+ return this.errors.get(`${k}_${e}`);
+ }
+ validate(k, e, x) {
+ const _ = this.get(k, e), u = `${k}_${e}`, { errors: m } = this;
+ if (_ !== null) {
+ const [g, b] = _.validator.validate(x);
+ g ? m.delete(u) : m.set(u, b);
+ } else
+ m.delete(u);
+ return !0;
+ }
+ // type: date|number|phone|email|list
+ // validator: { required, value, operator }
+ add(k, e, {
+ type: x,
+ required: _,
+ value: u,
+ operator: m
+ }) {
+ const g = new yc(
+ x,
+ _,
+ u,
+ m
+ ), b = this.getByValidator(g);
+ b !== null ? b.addRef(e) : this._.push(new Ko(k, [e], g));
+ }
+ getByValidator(k) {
+ for (let e = 0; e < this._.length; e += 1) {
+ const x = this._[e];
+ if (x.validator.equals(k))
+ return x;
+ }
+ return null;
+ }
+ get(k, e) {
+ for (let x = 0; x < this._.length; x += 1) {
+ const _ = this._[x];
+ if (_.includes(k, e))
+ return _;
+ }
+ return null;
+ }
+ remove(k) {
+ this.each((e) => {
+ e.remove(k);
+ });
+ }
+ each(k) {
+ this._.forEach((e) => k(e));
+ }
+ getData() {
+ return this._.filter((k) => k.refs.length > 0).map((k) => k.getData());
+ }
+ setData(k) {
+ this._ = k.map((e) => Ko.valueOf(e));
+ }
+}
+const Im = {
+ mode: "edit",
+ // edit | read
+ view: {
+ height: () => document.documentElement.clientHeight,
+ width: () => document.documentElement.clientWidth
+ },
+ showGrid: !0,
+ showToolbar: !0,
+ showContextmenu: !0,
+ showBottomBar: !0,
+ row: {
+ len: 100,
+ height: 25
+ },
+ col: {
+ len: 26,
+ width: 100,
+ indexWidth: 60,
+ minWidth: 60
+ },
+ style: {
+ bgcolor: "#ffffff",
+ align: "left",
+ valign: "middle",
+ textwrap: !1,
+ strike: !1,
+ underline: !1,
+ color: "#0a0a0a",
+ font: {
+ name: "Arial",
+ size: 10,
+ bold: !1,
+ italic: !1
+ },
+ format: "normal"
+ }
+}, Dm = 41, Nm = 41, Dl = (H, k) => Object.prototype.hasOwnProperty.call(H, k);
+function Nl(H, k, e = () => {
+}) {
+ const { merges: x } = this, _ = k.clone(), [u, m] = H.size(), [g, b] = k.size();
+ return u > g && (_.eri = k.sri + u - 1), m > b && (_.eci = k.sci + m - 1), x.intersects(_) ? (e(Cr("error.pasteForMergedCell")), !1) : !0;
+}
+function Fl(H, k, e, x = !1) {
+ const { rows: _, merges: u } = this;
+ (e === "all" || e === "format") && (_.deleteCells(k, e), u.deleteWithin(k)), _.copyPaste(H, k, e, x, (m, g, b) => {
+ if (b && b.merge) {
+ const [w, f] = b.merge;
+ if (w <= 0 && f <= 0)
+ return;
+ u.add(new kr(m, g, m + w, g + f));
+ }
+ });
+}
+function Fm(H, k) {
+ const { clipboard: e, rows: x, merges: _ } = this;
+ x.cutPaste(H, k), _.move(
+ H,
+ k.sri - H.sri,
+ k.sci - H.sci
+ ), e.clear();
+}
+function pa(H, k, e) {
+ const { styles: x, rows: _ } = this, u = _.getCellOrNew(H, k);
+ let m = {};
+ u.style !== void 0 && (m = fn.cloneDeep(x[u.style])), m = fn.merge(m, { border: e }), u.style = this.addStyle(m);
+}
+function Bm({ mode: H, style: k, color: e }) {
+ const { styles: x, selector: _, rows: u } = this, {
+ sri: m,
+ sci: g,
+ eri: b,
+ eci: w
+ } = _.range, f = !this.isSignleSelected();
+ if (!(!f && (H === "inside" || H === "horizontal" || H === "vertical"))) {
+ if (H === "outside" && !f)
+ pa.call(this, m, g, {
+ top: [k, e],
+ bottom: [k, e],
+ left: [k, e],
+ right: [k, e]
+ });
+ else if (H === "none")
+ _.range.each((y, h) => {
+ const l = u.getCell(y, h);
+ if (l && l.style !== void 0) {
+ const d = fn.cloneDeep(x[l.style]);
+ delete d.border, l.style = this.addStyle(d);
+ }
+ });
+ else if (H === "all" || H === "inside" || H === "outside" || H === "horizontal" || H === "vertical") {
+ const y = [];
+ for (let h = m; h <= b; h += 1)
+ for (let l = g; l <= w; l += 1) {
+ const d = [];
+ for (let i = 0; i < y.length; i += 1) {
+ const [n, o, p, O] = y[i];
+ if (h === n + p + 1 && d.push(i), n <= h && h <= n + p && l === o) {
+ l += O + 1;
+ break;
+ }
+ }
+ if (d.forEach((i) => y.splice(i, 1)), l > w)
+ break;
+ const s = u.getCell(h, l);
+ let [v, c] = [0, 0];
+ s && s.merge && ([v, c] = s.merge, y.push([h, l, v, c]));
+ const a = v > 0 && h + v === b, r = c > 0 && l + c === w;
+ let t = {};
+ H === "all" ? t = {
+ bottom: [k, e],
+ top: [k, e],
+ left: [k, e],
+ right: [k, e]
+ } : H === "inside" ? (!r && l < w && (t.right = [k, e]), !a && h < b && (t.bottom = [k, e])) : H === "horizontal" ? !a && h < b && (t.bottom = [k, e]) : H === "vertical" ? !r && l < w && (t.right = [k, e]) : H === "outside" && f && (m === h && (t.top = [k, e]), (a || b === h) && (t.bottom = [k, e]), g === l && (t.left = [k, e]), (r || w === l) && (t.right = [k, e])), Object.keys(t).length > 0 && pa.call(this, h, l, t), l += c;
+ }
+ } else if (H === "top" || H === "bottom")
+ for (let y = g; y <= w; y += 1)
+ H === "top" && (pa.call(this, m, y, { top: [k, e] }), y += u.getCellMerge(m, y)[1]), H === "bottom" && (pa.call(this, b, y, { bottom: [k, e] }), y += u.getCellMerge(b, y)[1]);
+ else if (H === "left" || H === "right")
+ for (let y = m; y <= b; y += 1)
+ H === "left" && (pa.call(this, y, g, { left: [k, e] }), y += u.getCellMerge(y, g)[0]), H === "right" && (pa.call(this, y, w, { right: [k, e] }), y += u.getCellMerge(y, w)[0]);
+ }
+}
+function jm(H, k) {
+ const { rows: e } = this, x = this.freezeTotalHeight();
+ let _ = e.height;
+ x + e.height < H && (_ -= k);
+ const u = this.exceptRowSet;
+ let m = 0, g = _, { height: b } = e;
+ for (; m < e.len && !(g > H); m += 1)
+ u.has(m) || (b = e.getHeight(m), g += b);
+ return g -= b, g <= 0 ? { ri: -1, top: 0, height: b } : { ri: m - 1, top: g, height: b };
+}
+function Lm(H, k) {
+ const { cols: e } = this, x = this.freezeTotalWidth();
+ let _ = e.indexWidth;
+ x + e.indexWidth < H && (_ -= k);
+ const [u, m, g] = fn.rangeReduceIf(
+ 0,
+ e.len,
+ _,
+ e.indexWidth,
+ H,
+ (b) => e.getWidth(b)
+ );
+ return m <= 0 ? { ci: -1, left: 0, width: e.indexWidth } : { ci: u - 1, left: m, width: g };
+}
+class zm {
+ constructor(k, e) {
+ this.settings = fn.merge(Im, e || {}), this.name = k || "sheet", this.freeze = [0, 0], this.styles = [], this.merges = new xf(), this.rows = new Cm(this.settings.row), this.cols = new Pm(this.settings.col), this.validations = new Mm(), this.hyperlinks = {}, this.comments = {}, this.selector = new mm(), this.scroll = new bm(), this.history = new gm(), this.clipboard = new _m(), this.autoFilter = new wm(), this.change = () => {
+ }, this.exceptRowSet = /* @__PURE__ */ new Set(), this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map();
+ }
+ addValidation(k, e, x) {
+ this.changeData(() => {
+ this.validations.add(k, e, x);
+ });
+ }
+ removeValidation() {
+ const { range: k } = this.selector;
+ this.changeData(() => {
+ this.validations.remove(k);
+ });
+ }
+ getSelectedValidator() {
+ const { ri: k, ci: e } = this.selector, x = this.validations.get(k, e);
+ return x ? x.validator : null;
+ }
+ getSelectedValidation() {
+ const { ri: k, ci: e, range: x } = this.selector, _ = this.validations.get(k, e), u = { ref: x.toString() };
+ return _ !== null && (u.mode = _.mode, u.validator = _.validator), u;
+ }
+ canUndo() {
+ return this.history.canUndo();
+ }
+ canRedo() {
+ return this.history.canRedo();
+ }
+ undo() {
+ this.history.undo(this.getData(), (k) => {
+ this.setData(k);
+ });
+ }
+ redo() {
+ this.history.redo(this.getData(), (k) => {
+ this.setData(k);
+ });
+ }
+ copy() {
+ this.clipboard.copy(this.selector.range);
+ }
+ copyToSystemClipboard() {
+ if (navigator.clipboard === void 0)
+ return;
+ let k = "";
+ const e = this.rows.getData();
+ for (let x = this.selector.range.sri; x <= this.selector.range.eri; x += 1) {
+ if (Dl(e, x)) {
+ for (let _ = this.selector.range.sci; _ <= this.selector.range.eci; _ += 1)
+ if (_ > this.selector.range.sci && (k += " "), Dl(e[x].cells, _)) {
+ const u = String(e[x].cells[_].text);
+ u.indexOf(`
+`) === -1 && u.indexOf(" ") === -1 && u.indexOf('"') === -1 ? k += u : k += `"${u}"`;
+ }
+ } else
+ for (let _ = this.selector.range.sci; _ <= this.selector.range.eci; _ += 1)
+ k += " ";
+ k += `
+`;
+ }
+ navigator.clipboard.writeText(k).then(() => {
+ }, (x) => {
+ console.log("text copy to the system clipboard error ", k, x);
+ });
+ }
+ cut() {
+ this.clipboard.cut(this.selector.range);
+ }
+ // what: all | text | format
+ paste(k = "all", e = () => {
+ }) {
+ const { clipboard: x, selector: _ } = this;
+ return x.isClear() || !Nl.call(this, x.range, _.range, e) ? !1 : (this.changeData(() => {
+ x.isCopy() ? Fl.call(this, x.range, _.range, k) : x.isCut() && Fm.call(this, x.range, _.range);
+ }), !0);
+ }
+ pasteFromText(k) {
+ const e = k.split(`\r
+`).map((u) => u.replace(/"/g, "").split(" "));
+ e.length > 0 && (e.length -= 1);
+ const { rows: x, selector: _ } = this;
+ this.changeData(() => {
+ x.paste(e, _.range);
+ });
+ }
+ autofill(k, e, x = () => {
+ }) {
+ const _ = this.selector.range;
+ return Nl.call(this, _, k, x) ? (this.changeData(() => {
+ Fl.call(this, _, k, e, !0);
+ }), !0) : !1;
+ }
+ clearClipboard() {
+ this.clipboard.clear();
+ }
+ calSelectedRangeByEnd(k, e) {
+ const {
+ selector: x,
+ rows: _,
+ cols: u,
+ merges: m
+ } = this;
+ let {
+ sri: g,
+ sci: b,
+ eri: w,
+ eci: f
+ } = x.range;
+ const y = x.ri, h = x.ci;
+ let [l, d] = [k, e];
+ return k < 0 && (l = _.len - 1), e < 0 && (d = u.len - 1), l > y ? [g, w] = [y, l] : [g, w] = [l, y], d > h ? [b, f] = [h, d] : [b, f] = [d, h], x.range = m.union(new kr(
+ g,
+ b,
+ w,
+ f
+ )), x.range = m.union(x.range), x.range;
+ }
+ calSelectedRangeByStart(k, e) {
+ const {
+ selector: x,
+ rows: _,
+ cols: u,
+ merges: m
+ } = this;
+ let g = m.getFirstIncludes(k, e);
+ return g === null && (g = new kr(k, e, k, e), k === -1 && (g.sri = 0, g.eri = _.len - 1), e === -1 && (g.sci = 0, g.eci = u.len - 1)), x.range = g, g;
+ }
+ setSelectedCellAttr(k, e) {
+ this.changeData(() => {
+ const { selector: x, styles: _, rows: u } = this;
+ if (k === "merge")
+ e ? this.merge() : this.unmerge();
+ else if (k === "border")
+ Bm.call(this, e);
+ else if (k === "formula") {
+ const { ri: m, ci: g, range: b } = x;
+ if (x.multiple()) {
+ const [w, f] = x.size(), {
+ sri: y,
+ sci: h,
+ eri: l,
+ eci: d
+ } = b;
+ if (w > 1)
+ for (let s = h; s <= d; s += 1) {
+ const v = u.getCellOrNew(l + 1, s);
+ v.text = `=${e}(${hi(s, y)}:${hi(s, l)})`;
+ }
+ else if (f > 1) {
+ const s = u.getCellOrNew(m, d + 1);
+ s.text = `=${e}(${hi(h, m)}:${hi(d, m)})`;
+ }
+ } else {
+ const w = u.getCellOrNew(m, g);
+ w.text = `=${e}()`;
+ }
+ } else
+ x.range.each((m, g) => {
+ const b = u.getCellOrNew(m, g);
+ let w = {};
+ if (b.style !== void 0 && (w = fn.cloneDeep(_[b.style])), k === "format")
+ w.format = e, b.style = this.addStyle(w);
+ else if (k === "font-bold" || k === "font-italic" || k === "font-name" || k === "font-size") {
+ const f = {};
+ f[k.split("-")[1]] = e, w.font = Object.assign(w.font || {}, f), b.style = this.addStyle(w);
+ } else
+ k === "strike" || k === "textwrap" || k === "underline" || k === "align" || k === "valign" || k === "color" || k === "bgcolor" ? (w[k] = e, b.style = this.addStyle(w)) : b[k] = e;
+ });
+ });
+ }
+ // state: input | finished
+ setSelectedCellText(k, e = "input") {
+ const { autoFilter: x, selector: _, rows: u } = this, { ri: m, ci: g } = _;
+ let b = m;
+ this.unsortedRowMap.has(m) && (b = this.unsortedRowMap.get(m));
+ const w = u.getCell(b, g), f = w ? w.text : "";
+ if (this.setCellText(b, g, k, e), x.active()) {
+ const y = x.getFilter(g);
+ if (y) {
+ const h = y.value.findIndex((l) => l === f);
+ h >= 0 && y.value.splice(h, 1, k);
+ }
+ }
+ }
+ getSelectedCell() {
+ const { ri: k, ci: e } = this.selector;
+ let x = k;
+ return this.unsortedRowMap.has(k) && (x = this.unsortedRowMap.get(k)), this.rows.getCell(x, e);
+ }
+ xyInSelectedRect(k, e) {
+ const {
+ left: x,
+ top: _,
+ width: u,
+ height: m
+ } = this.getSelectedRect(), g = k - this.cols.indexWidth, b = e - this.rows.height;
+ return g > x && g < x + u && b > _ && b < _ + m;
+ }
+ getSelectedRect() {
+ return this.getRect(this.selector.range);
+ }
+ getClipboardRect() {
+ const { clipboard: k } = this;
+ return k.isClear() ? { left: -100, top: -100 } : this.getRect(k.range);
+ }
+ getRect(k) {
+ const {
+ scroll: e,
+ rows: x,
+ cols: _,
+ exceptRowSet: u
+ } = this, {
+ sri: m,
+ sci: g,
+ eri: b,
+ eci: w
+ } = k;
+ if (m < 0 && g < 0)
+ return {
+ left: 0,
+ l: 0,
+ top: 0,
+ t: 0,
+ scroll: e
+ };
+ const f = _.sumWidth(0, g), y = x.sumHeight(0, m, u), h = x.sumHeight(m, b + 1, u), l = _.sumWidth(g, w + 1);
+ let d = f - e.x, s = y - e.y;
+ const v = this.freezeTotalHeight(), c = this.freezeTotalWidth();
+ return c > 0 && c > f && (d = f), v > 0 && v > y && (s = y), {
+ l: f,
+ t: y,
+ left: d,
+ top: s,
+ height: h,
+ width: l,
+ scroll: e
+ };
+ }
+ getCellRectByXY(k, e) {
+ const {
+ scroll: x,
+ merges: _,
+ rows: u,
+ cols: m
+ } = this;
+ let { ri: g, top: b, height: w } = jm.call(this, e, x.y), { ci: f, left: y, width: h } = Lm.call(this, k, x.x);
+ if (f === -1 && (h = m.totalWidth()), g === -1 && (w = u.totalHeight()), g >= 0 || f >= 0) {
+ const l = _.getFirstIncludes(g, f);
+ l && (g = l.sri, f = l.sci, {
+ left: y,
+ top: b,
+ width: h,
+ height: w
+ } = this.cellRect(g, f));
+ }
+ return {
+ ri: g,
+ ci: f,
+ left: y,
+ top: b,
+ width: h,
+ height: w
+ };
+ }
+ isSignleSelected() {
+ const {
+ sri: k,
+ sci: e,
+ eri: x,
+ eci: _
+ } = this.selector.range, u = this.getCell(k, e);
+ if (u && u.merge) {
+ const [m, g] = u.merge;
+ if (k + m === x && e + g === _)
+ return !0;
+ }
+ return !this.selector.multiple();
+ }
+ canUnmerge() {
+ const {
+ sri: k,
+ sci: e,
+ eri: x,
+ eci: _
+ } = this.selector.range, u = this.getCell(k, e);
+ if (u && u.merge) {
+ const [m, g] = u.merge;
+ if (k + m === x && e + g === _)
+ return !0;
+ }
+ return !1;
+ }
+ merge() {
+ const { selector: k, rows: e } = this;
+ if (this.isSignleSelected())
+ return;
+ const [x, _] = k.size();
+ if (x > 1 || _ > 1) {
+ const { sri: u, sci: m } = k.range;
+ this.changeData(() => {
+ const g = e.getCellOrNew(u, m);
+ g.merge = [x - 1, _ - 1], this.merges.add(k.range), this.rows.deleteCells(k.range), this.rows.setCell(u, m, g);
+ });
+ }
+ }
+ unmerge() {
+ const { selector: k } = this;
+ if (!this.isSignleSelected())
+ return;
+ const { sri: e, sci: x } = k.range;
+ this.changeData(() => {
+ this.rows.deleteCell(e, x, "merge"), this.merges.deleteWithin(k.range);
+ });
+ }
+ canAutofilter() {
+ return !this.autoFilter.active();
+ }
+ autofilter() {
+ const { autoFilter: k, selector: e } = this;
+ this.changeData(() => {
+ k.active() ? (k.clear(), this.exceptRowSet = /* @__PURE__ */ new Set(), this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map()) : k.ref = e.range.toString();
+ });
+ }
+ setAutoFilter(k, e, x, _) {
+ const { autoFilter: u } = this;
+ u.addFilter(k, x, _), u.setSort(k, e), this.resetAutoFilter();
+ }
+ resetAutoFilter() {
+ const { autoFilter: k, rows: e } = this;
+ if (!k.active())
+ return;
+ const { sort: x } = k, { rset: _, fset: u } = k.filteredRows((b, w) => e.getCell(b, w)), m = Array.from(u), g = Array.from(u);
+ x && m.sort((b, w) => x.order === "asc" ? b - w : x.order === "desc" ? w - b : 0), this.exceptRowSet = _, this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map(), m.forEach((b, w) => {
+ this.sortedRowMap.set(g[w], b), this.unsortedRowMap.set(b, g[w]);
+ });
+ }
+ deleteCell(k = "all") {
+ const { selector: e } = this;
+ this.changeData(() => {
+ this.rows.deleteCells(e.range, k), (k === "all" || k === "format") && this.merges.deleteWithin(e.range);
+ });
+ }
+ // type: row | column
+ insert(k, e = 1) {
+ this.changeData(() => {
+ const { sri: x, sci: _ } = this.selector.range, { rows: u, merges: m, cols: g } = this;
+ let b = x;
+ k === "row" ? u.insert(x, e) : k === "column" && (u.insertColumn(_, e), b = _, g.len += 1), m.shift(k, b, e, (w, f, y, h) => {
+ const l = u.getCell(w, f);
+ l.merge[0] += y, l.merge[1] += h;
+ });
+ });
+ }
+ // type: row | column
+ delete(k) {
+ this.changeData(() => {
+ const {
+ rows: e,
+ merges: x,
+ selector: _,
+ cols: u
+ } = this, { range: m } = _, {
+ sri: g,
+ sci: b,
+ eri: w,
+ eci: f
+ } = _.range, [y, h] = _.range.size();
+ let l = g, d = y;
+ k === "row" ? e.delete(g, w) : k === "column" && (e.deleteColumn(b, f), l = m.sci, d = h, u.len -= 1), x.shift(k, l, -d, (s, v, c, a) => {
+ const r = e.getCell(s, v);
+ r.merge[0] += c, r.merge[1] += a, r.merge[0] === 0 && r.merge[1] === 0 && delete r.merge;
+ });
+ });
+ }
+ scrollx(k, e) {
+ const { scroll: x, freeze: _, cols: u } = this, [, m] = _, [
+ g,
+ b,
+ w
+ ] = fn.rangeReduceIf(m, u.len, 0, 0, k, (y) => u.getWidth(y));
+ let f = b;
+ k > 0 && (f += w), x.x !== f && (x.ci = k > 0 ? g : 0, x.x = f, e());
+ }
+ scrolly(k, e) {
+ const { scroll: x, freeze: _, rows: u } = this, [m] = _, [
+ g,
+ b,
+ w
+ ] = fn.rangeReduceIf(m, u.len, 0, 0, k, (y) => u.getHeight(y));
+ let f = b;
+ k > 0 && (f += w), x.y !== f && (x.ri = k > 0 ? g : 0, x.y = f, e());
+ }
+ cellRect(k, e) {
+ const { rows: x, cols: _ } = this, u = _.sumWidth(0, e), m = x.sumHeight(0, k), g = x.getCell(k, e);
+ let b = _.getWidth(e), w = x.getHeight(k);
+ if (g !== null && g.merge) {
+ const [f, y] = g.merge;
+ if (f > 0)
+ for (let h = 1; h <= f; h += 1)
+ w += x.getHeight(k + h);
+ if (y > 0)
+ for (let h = 1; h <= y; h += 1)
+ b += _.getWidth(e + h);
+ }
+ return {
+ left: u,
+ top: m,
+ width: b,
+ height: w,
+ cell: g
+ };
+ }
+ getCell(k, e) {
+ return this.rows.getCell(k, e);
+ }
+ getCellTextOrDefault(k, e) {
+ const x = this.getCell(k, e);
+ return x && x.text ? x.text : "";
+ }
+ getCellStyle(k, e) {
+ const x = this.getCell(k, e);
+ return x && x.style !== void 0 ? this.styles[x.style] : null;
+ }
+ getCellStyleOrDefault(k, e) {
+ const { styles: x, rows: _ } = this, u = _.getCell(k, e), m = u && u.style !== void 0 ? x[u.style] : {};
+ return fn.merge(this.defaultStyle(), m);
+ }
+ getSelectedCellStyle() {
+ const { ri: k, ci: e } = this.selector;
+ return this.getCellStyleOrDefault(k, e);
+ }
+ // state: input | finished
+ setCellText(k, e, x, _) {
+ const { rows: u, history: m, validations: g } = this;
+ _ === "finished" ? (u.setCellText(k, e, ""), m.add(this.getData()), u.setCellText(k, e, x)) : (u.setCellText(k, e, x), this.change(this.getData())), g.validate(k, e, x);
+ }
+ freezeIsActive() {
+ const [k, e] = this.freeze;
+ return k > 0 || e > 0;
+ }
+ setFreeze(k, e) {
+ this.changeData(() => {
+ this.freeze = [k, e];
+ });
+ }
+ freezeTotalWidth() {
+ return this.cols.sumWidth(0, this.freeze[1]);
+ }
+ freezeTotalHeight() {
+ return this.rows.sumHeight(0, this.freeze[0]);
+ }
+ setRowHeight(k, e) {
+ this.changeData(() => {
+ this.rows.setHeight(k, e);
+ });
+ }
+ setColWidth(k, e) {
+ this.changeData(() => {
+ this.cols.setWidth(k, e);
+ });
+ }
+ viewHeight() {
+ const { view: k, showToolbar: e, showBottomBar: x } = this.settings;
+ let _ = k.height();
+ return x && (_ -= Nm), e && (_ -= Dm), _;
+ }
+ viewWidth() {
+ return this.settings.view.width();
+ }
+ freezeViewRange() {
+ const [k, e] = this.freeze;
+ return new kr(0, 0, k - 1, e - 1, this.freezeTotalWidth(), this.freezeTotalHeight());
+ }
+ contentRange() {
+ const { rows: k, cols: e } = this, [x, _] = k.maxCell(), u = k.sumHeight(0, x + 1), m = e.sumWidth(0, _ + 1);
+ return new kr(0, 0, x, _, m, u);
+ }
+ exceptRowTotalHeight(k, e) {
+ const { exceptRowSet: x, rows: _ } = this, u = Array.from(x);
+ let m = 0;
+ return u.forEach((g) => {
+ if (g < k || g > e) {
+ const b = _.getHeight(g);
+ m += b;
+ }
+ }), m;
+ }
+ viewRange() {
+ const {
+ scroll: k,
+ rows: e,
+ cols: x,
+ freeze: _,
+ exceptRowSet: u
+ } = this;
+ let { ri: m, ci: g } = k;
+ m <= 0 && ([m] = _), g <= 0 && ([, g] = _);
+ let [b, w] = [0, 0], [f, y] = [e.len, x.len];
+ for (let h = m; h < e.len && (u.has(h) || (w += e.getHeight(h), f = h), !(w > this.viewHeight())); h += 1)
+ ;
+ for (let h = g; h < x.len && (b += x.getWidth(h), y = h, !(b > this.viewWidth())); h += 1)
+ ;
+ return new kr(m, g, f, y, b, w);
+ }
+ eachMergesInView(k, e) {
+ this.merges.filterIntersects(k).forEach((x) => e(x));
+ }
+ hideRowsOrCols() {
+ const { rows: k, cols: e, selector: x } = this, [_, u] = x.size(), {
+ sri: m,
+ sci: g,
+ eri: b,
+ eci: w
+ } = x.range;
+ if (_ === k.len)
+ for (let f = g; f <= w; f += 1)
+ e.setHide(f, !0);
+ else if (u === e.len)
+ for (let f = m; f <= b; f += 1)
+ k.setHide(f, !0);
+ }
+ // type: row | col
+ // index row-index | col-index
+ unhideRowsOrCols(k, e) {
+ this[`${k}s`].unhide(e);
+ }
+ rowEach(k, e, x) {
+ let _ = 0;
+ const { rows: u } = this, m = this.exceptRowSet, g = [...m];
+ let b = 0;
+ for (let w = 0; w < g.length; w += 1)
+ g[w] < k && (b += 1);
+ for (let w = k + b; w <= e + b; w += 1)
+ if (m.has(w))
+ b += 1;
+ else {
+ const f = u.getHeight(w);
+ if (f > 0 && (x(w, _, f), _ += f, _ > this.viewHeight()))
+ break;
+ }
+ }
+ colEach(k, e, x) {
+ let _ = 0;
+ const { cols: u } = this;
+ for (let m = k; m <= e; m += 1) {
+ const g = u.getWidth(m);
+ if (g > 0 && (x(m, _, g), _ += g, _ > this.viewWidth()))
+ break;
+ }
+ }
+ defaultStyle() {
+ return this.settings.style;
+ }
+ addStyle(k) {
+ const { styles: e } = this;
+ for (let x = 0; x < e.length; x += 1) {
+ const _ = e[x];
+ if (fn.equals(_, k))
+ return x;
+ }
+ return e.push(k), e.length - 1;
+ }
+ changeData(k) {
+ this.history.add(this.getData()), k(), this.change(this.getData());
+ }
+ setData(k) {
+ return Object.keys(k).forEach((e) => {
+ if (e === "merges" || e === "rows" || e === "cols" || e === "validations")
+ this[e].setData(k[e]);
+ else if (e === "freeze") {
+ const [x, _] = Ti(k[e]);
+ this.freeze = [_, x];
+ } else
+ e === "autofilter" ? this.autoFilter.setData(k[e]) : k[e] !== void 0 && (this[e] = k[e]);
+ }), this;
+ }
+ getData() {
+ const {
+ name: k,
+ freeze: e,
+ styles: x,
+ merges: _,
+ rows: u,
+ cols: m,
+ validations: g,
+ autoFilter: b
+ } = this;
+ return {
+ name: k,
+ freeze: hi(e[1], e[0]),
+ styles: x,
+ merges: _.getData(),
+ rows: u.getData(),
+ cols: m.getData(),
+ validations: g.getData(),
+ autofilter: b.getData()
+ };
+ }
+}
+function ln(H, k, e) {
+ H.addEventListener(k, e);
+}
+function Go(H, k, e) {
+ H.removeEventListener(k, e);
+}
+function _a(H) {
+ H.xclickoutside && (Go(window.document.body, "click", H.xclickoutside), delete H.xclickoutside);
+}
+function Va(H, k) {
+ H.xclickoutside = (e) => {
+ e.detail === 2 || H.contains(e.target) || (k ? k(H) : (H.hide(), _a(H)));
+ }, ln(window.document.body, "click", H.xclickoutside);
+}
+function vc(H, k, e) {
+ ln(H, "mousemove", k);
+ const x = H;
+ x.xEvtUp = (_) => {
+ Go(H, "mousemove", k), Go(H, "mouseup", H.xEvtUp), e(_);
+ }, ln(H, "mouseup", H.xEvtUp);
+}
+function Bl(H, k, e, x) {
+ let _ = "";
+ Math.abs(H) > Math.abs(k) ? (_ = H > 0 ? "right" : "left", x(_, H, e)) : (_ = k > 0 ? "down" : "up", x(_, k, e));
+}
+function Hm(H, { move: k, end: e }) {
+ let x = 0, _ = 0;
+ ln(H, "touchstart", (u) => {
+ const { pageX: m, pageY: g } = u.touches[0];
+ x = m, _ = g;
+ }), ln(H, "touchmove", (u) => {
+ if (!k)
+ return;
+ const { pageX: m, pageY: g } = u.changedTouches[0], b = m - x, w = g - _;
+ (Math.abs(b) > 10 || Math.abs(w) > 10) && (Bl(b, w, u, k), x = m, _ = g), u.preventDefault();
+ }), ln(H, "touchend", (u) => {
+ if (!e)
+ return;
+ const { pageX: m, pageY: g } = u.changedTouches[0], b = m - x, w = g - _;
+ Bl(b, w, u, e);
+ });
+}
+function Xm() {
+ const H = /* @__PURE__ */ new Map();
+ function k(m, g) {
+ const b = () => {
+ const f = H.get(m);
+ return Array.isArray(f) && f.push(g) || !1;
+ }, w = () => H.set(m, [].concat(g));
+ return H.has(m) && b() || w();
+ }
+ function e(m, g) {
+ const b = () => {
+ const w = H.get(m);
+ for (const f of w)
+ f.call(null, ...g);
+ };
+ return H.has(m) && b();
+ }
+ function x(m, g) {
+ const b = () => {
+ const w = H.get(m), f = w.indexOf(g);
+ return f >= 0 && w.splice(f, 1) && H.get(m).length === 0 && H.delete(m);
+ };
+ return H.has(m) && b();
+ }
+ function _(m, g) {
+ const b = (...w) => {
+ g.call(null, ...w), x(m, b);
+ };
+ return k(m, b);
+ }
+ function u() {
+ H.clear();
+ }
+ return {
+ get current() {
+ return H;
+ },
+ on: k,
+ once: _,
+ fire: e,
+ removeListener: x,
+ removeAllListeners: u
+ };
+}
+const lt = "x-spreadsheet";
+class jl {
+ constructor(k = !1, e) {
+ this.moving = !1, this.vertical = k, this.el = $e("div", `${lt}-resizer ${k ? "vertical" : "horizontal"}`).children(
+ this.unhideHoverEl = $e("div", `${lt}-resizer-hover`).on("dblclick.stop", (x) => this.mousedblclickHandler(x)).css("position", "absolute").hide(),
+ this.hoverEl = $e("div", `${lt}-resizer-hover`).on("mousedown.stop", (x) => this.mousedownHandler(x)),
+ this.lineEl = $e("div", `${lt}-resizer-line`).hide()
+ ).hide(), this.cRect = null, this.finishedFn = null, this.minDistance = e, this.unhideFn = () => {
+ };
+ }
+ showUnhide(k) {
+ this.unhideIndex = k, this.unhideHoverEl.show();
+ }
+ hideUnhide() {
+ this.unhideHoverEl.hide();
+ }
+ // rect : {top, left, width, height}
+ // line : {width, height}
+ show(k, e) {
+ const {
+ moving: x,
+ vertical: _,
+ hoverEl: u,
+ lineEl: m,
+ el: g,
+ unhideHoverEl: b
+ } = this;
+ if (x)
+ return;
+ this.cRect = k;
+ const {
+ left: w,
+ top: f,
+ width: y,
+ height: h
+ } = k;
+ g.offset({
+ left: _ ? w + y - 5 : w,
+ top: _ ? f : f + h - 5
+ }).show(), u.offset({
+ width: _ ? 5 : y,
+ height: _ ? h : 5
+ }), m.offset({
+ width: _ ? 0 : e.width,
+ height: _ ? e.height : 0
+ }), b.offset({
+ left: _ ? 5 - y : w,
+ top: _ ? f : 5 - h,
+ width: _ ? 5 : y,
+ height: _ ? h : 5
+ });
+ }
+ hide() {
+ this.el.offset({
+ left: 0,
+ top: 0
+ }).hide(), this.hideUnhide();
+ }
+ mousedblclickHandler() {
+ this.unhideIndex && this.unhideFn(this.unhideIndex);
+ }
+ mousedownHandler(k) {
+ let e = k;
+ const {
+ el: x,
+ lineEl: _,
+ cRect: u,
+ vertical: m,
+ minDistance: g
+ } = this;
+ let b = m ? u.width : u.height;
+ _.show(), vc(window, (w) => {
+ this.moving = !0, e !== null && w.buttons === 1 && (m ? (b += w.movementX, b > g && x.css("left", `${u.left + b}px`)) : (b += w.movementY, b > g && x.css("top", `${u.top + b}px`)), e = w);
+ }, () => {
+ e = null, _.hide(), this.moving = !1, this.hide(), this.finishedFn && (b < g && (b = g), this.finishedFn(u, b));
+ });
+ }
+}
+class Ll {
+ constructor(k) {
+ this.vertical = k, this.moveFn = null, this.el = $e("div", `${lt}-scrollbar ${k ? "vertical" : "horizontal"}`).child(this.contentEl = $e("div", "")).on("mousemove.stop", () => {
+ }).on("scroll.stop", (e) => {
+ const { scrollTop: x, scrollLeft: _ } = e.target;
+ this.moveFn && this.moveFn(this.vertical ? x : _, e);
+ });
+ }
+ move(k) {
+ return this.el.scroll(k), this;
+ }
+ scroll() {
+ return this.el.scroll();
+ }
+ set(k, e) {
+ const x = k - 1;
+ if (e > x) {
+ const _ = this.vertical ? "height" : "width";
+ this.el.css(_, `${x - 15}px`).show(), this.contentEl.css(this.vertical ? "width" : "height", "1px").css(_, `${e}px`);
+ } else
+ this.el.hide();
+ return this;
+ }
+}
+const Do = 2 * 2 - 1;
+let df = 10;
+class No {
+ constructor(k = !1) {
+ this.useHideInput = k, this.inputChange = () => {
+ }, this.cornerEl = $e("div", `${lt}-selector-corner`), this.areaEl = $e("div", `${lt}-selector-area`).child(this.cornerEl).hide(), this.clipboardEl = $e("div", `${lt}-selector-clipboard`).hide(), this.autofillEl = $e("div", `${lt}-selector-autofill`).hide(), this.el = $e("div", `${lt}-selector`).css("z-index", `${df}`).children(this.areaEl, this.clipboardEl, this.autofillEl).hide(), k && (this.hideInput = $e("input", "").on("compositionend", (e) => {
+ this.inputChange(e.target.value);
+ }), this.el.child(this.hideInputDiv = $e("div", "hide-input").child(this.hideInput)), this.el.child(this.hideInputDiv = $e("div", "hide-input").child(this.hideInput))), df += 1;
+ }
+ setOffset(k) {
+ return this.el.offset(k).show(), this;
+ }
+ hide() {
+ return this.el.hide(), this;
+ }
+ setAreaOffset(k) {
+ const {
+ left: e,
+ top: x,
+ width: _,
+ height: u
+ } = k, m = {
+ width: _ - Do + 0.8,
+ height: u - Do + 0.8,
+ left: e - 0.8,
+ top: x - 0.8
+ };
+ this.areaEl.offset(m).show(), this.useHideInput && (this.hideInputDiv.offset(m), this.hideInput.val("").focus());
+ }
+ setClipboardOffset(k) {
+ const {
+ left: e,
+ top: x,
+ width: _,
+ height: u
+ } = k;
+ this.clipboardEl.offset({
+ left: e,
+ top: x,
+ width: _ - 5,
+ height: u - 5
+ });
+ }
+ showAutofill(k) {
+ const {
+ left: e,
+ top: x,
+ width: _,
+ height: u
+ } = k;
+ this.autofillEl.offset({
+ width: _ - Do,
+ height: u - Do,
+ left: e,
+ top: x
+ }).show();
+ }
+ hideAutofill() {
+ this.autofillEl.hide();
+ }
+ showClipboard() {
+ this.clipboardEl.show();
+ }
+ hideClipboard() {
+ this.clipboardEl.hide();
+ }
+}
+function Sf(H) {
+ const { data: k } = this, {
+ left: e,
+ top: x,
+ width: _,
+ height: u,
+ scroll: m,
+ l: g,
+ t: b
+ } = H, w = k.freezeTotalWidth(), f = k.freezeTotalHeight();
+ let y = e - w;
+ w > g && (y -= m.x);
+ let h = x - f;
+ return f > b && (h -= m.y), {
+ left: y,
+ top: h,
+ width: _,
+ height: u
+ };
+}
+function kf(H) {
+ const { data: k } = this, {
+ left: e,
+ width: x,
+ height: _,
+ l: u,
+ t: m,
+ scroll: g
+ } = H, b = k.freezeTotalWidth();
+ let w = e - b;
+ return b > u && (w -= g.x), {
+ left: w,
+ top: m,
+ width: x,
+ height: _
+ };
+}
+function Of(H) {
+ const { data: k } = this, {
+ top: e,
+ width: x,
+ height: _,
+ l: u,
+ t: m,
+ scroll: g
+ } = H, b = k.freezeTotalHeight();
+ let w = e - b;
+ return b > m && (w -= g.y), {
+ left: u,
+ top: w,
+ width: x,
+ height: _
+ };
+}
+function pf(H) {
+ const { br: k } = this;
+ k.setAreaOffset(Sf.call(this, H));
+}
+function Um(H) {
+ const { tl: k } = this;
+ k.setAreaOffset(H);
+}
+function mc(H) {
+ const { t: k } = this;
+ k.setAreaOffset(kf.call(this, H));
+}
+function bc(H) {
+ const { l: k } = this;
+ k.setAreaOffset(Of.call(this, H));
+}
+function gc(H) {
+ const { l: k } = this;
+ k.setClipboardOffset(Of.call(this, H));
+}
+function yf(H) {
+ const { br: k } = this;
+ k.setClipboardOffset(Sf.call(this, H));
+}
+function $m(H) {
+ const { tl: k } = this;
+ k.setClipboardOffset(H);
+}
+function _c(H) {
+ const { t: k } = this;
+ k.setClipboardOffset(kf.call(this, H));
+}
+function zl(H) {
+ pf.call(this, H), Um.call(this, H), mc.call(this, H), bc.call(this, H);
+}
+function Hl(H) {
+ yf.call(this, H), $m.call(this, H), _c.call(this, H), gc.call(this, H);
+}
+class Wm {
+ constructor(k) {
+ this.inputChange = () => {
+ }, this.data = k, this.br = new No(!0), this.t = new No(), this.l = new No(), this.tl = new No(), this.br.inputChange = (e) => {
+ this.inputChange(e);
+ }, this.br.el.show(), this.offset = null, this.areaOffset = null, this.indexes = null, this.range = null, this.arange = null, this.el = $e("div", `${lt}-selectors`).children(
+ this.tl.el,
+ this.t.el,
+ this.l.el,
+ this.br.el
+ ).hide(), this.lastri = -1, this.lastci = -1, df += 1;
+ }
+ resetData(k) {
+ this.data = k, this.range = k.selector.range, this.resetAreaOffset();
+ }
+ hide() {
+ this.el.hide();
+ }
+ resetOffset() {
+ const {
+ data: k,
+ tl: e,
+ t: x,
+ l: _,
+ br: u
+ } = this, m = k.freezeTotalHeight(), g = k.freezeTotalWidth();
+ m > 0 || g > 0 ? (e.setOffset({ width: g, height: m }), x.setOffset({ left: g, height: m }), _.setOffset({ top: m, width: g }), u.setOffset({ left: g, top: m })) : (e.hide(), x.hide(), _.hide(), u.setOffset({ left: 0, top: 0 }));
+ }
+ resetAreaOffset() {
+ const k = this.data.getSelectedRect(), e = this.data.getClipboardRect();
+ zl.call(this, k), Hl.call(this, e), this.resetOffset();
+ }
+ resetBRTAreaOffset() {
+ const k = this.data.getSelectedRect(), e = this.data.getClipboardRect();
+ pf.call(this, k), mc.call(this, k), yf.call(this, e), _c.call(this, e), this.resetOffset();
+ }
+ resetBRLAreaOffset() {
+ const k = this.data.getSelectedRect(), e = this.data.getClipboardRect();
+ pf.call(this, k), bc.call(this, k), yf.call(this, e), gc.call(this, e), this.resetOffset();
+ }
+ set(k, e, x = !0) {
+ const { data: _ } = this, u = _.calSelectedRangeByStart(k, e), { sri: m, sci: g } = u;
+ if (x) {
+ let [b, w] = [k, e];
+ k < 0 && (b = 0), e < 0 && (w = 0), _.selector.setIndexes(b, w), this.indexes = [b, w];
+ }
+ this.moveIndexes = [m, g], this.range = u, this.resetAreaOffset(), this.el.show();
+ }
+ setEnd(k, e, x = !0) {
+ const { data: _, lastri: u, lastci: m } = this;
+ if (x) {
+ if (k === u && e === m)
+ return;
+ this.lastri = k, this.lastci = e;
+ }
+ this.range = _.calSelectedRangeByEnd(k, e), zl.call(this, this.data.getSelectedRect());
+ }
+ reset() {
+ const { eri: k, eci: e } = this.data.selector.range;
+ this.setEnd(k, e);
+ }
+ showAutofill(k, e) {
+ if (k === -1 && e === -1)
+ return;
+ const {
+ sri: x,
+ sci: _,
+ eri: u,
+ eci: m
+ } = this.range, [g, b] = [k, e], w = x - k, f = _ - e, y = u - k, h = m - e;
+ if (f > 0)
+ this.arange = new kr(x, b, u, _ - 1);
+ else if (w > 0)
+ this.arange = new kr(g, _, x - 1, m);
+ else if (h < 0)
+ this.arange = new kr(x, m + 1, u, b);
+ else if (y < 0)
+ this.arange = new kr(u + 1, _, g, m);
+ else {
+ this.arange = null;
+ return;
+ }
+ if (this.arange !== null) {
+ const l = this.data.getRect(this.arange);
+ l.width += 2, l.height += 2;
+ const {
+ br: d,
+ l: s,
+ t: v,
+ tl: c
+ } = this;
+ d.showAutofill(Sf.call(this, l)), s.showAutofill(Of.call(this, l)), v.showAutofill(kf.call(this, l)), c.showAutofill(l);
+ }
+ }
+ hideAutofill() {
+ ["br", "l", "t", "tl"].forEach((k) => {
+ this[k].hideAutofill();
+ });
+ }
+ showClipboard() {
+ const k = this.data.getClipboardRect();
+ Hl.call(this, k), ["br", "l", "t", "tl"].forEach((e) => {
+ this[e].showClipboard();
+ });
+ }
+ hideClipboard() {
+ ["br", "l", "t", "tl"].forEach((k) => {
+ this[k].hideClipboard();
+ });
+ }
+}
+function Vm(H) {
+ H.preventDefault(), H.stopPropagation();
+ const { filterItems: k } = this;
+ k.length <= 0 || (this.itemIndex >= 0 && k[this.itemIndex].toggle(), this.itemIndex -= 1, this.itemIndex < 0 && (this.itemIndex = k.length - 1), k[this.itemIndex].toggle());
+}
+function Km(H) {
+ H.stopPropagation();
+ const { filterItems: k } = this;
+ k.length <= 0 || (this.itemIndex >= 0 && k[this.itemIndex].toggle(), this.itemIndex += 1, this.itemIndex > k.length - 1 && (this.itemIndex = 0), k[this.itemIndex].toggle());
+}
+function Xl(H) {
+ H.preventDefault();
+ const { filterItems: k } = this;
+ k.length <= 0 || (H.stopPropagation(), this.itemIndex < 0 && (this.itemIndex = 0), k[this.itemIndex].el.click(), this.hide());
+}
+function Gm(H) {
+ const { keyCode: k } = H;
+ switch (H.ctrlKey && H.stopPropagation(), k) {
+ case 37:
+ H.stopPropagation();
+ break;
+ case 38:
+ Vm.call(this, H);
+ break;
+ case 39:
+ H.stopPropagation();
+ break;
+ case 40:
+ Km.call(this, H);
+ break;
+ case 13:
+ Xl.call(this, H);
+ break;
+ case 9:
+ Xl.call(this, H);
+ break;
+ default:
+ H.stopPropagation();
+ break;
+ }
+}
+class wc {
+ constructor(k, e, x = "200px") {
+ this.filterItems = [], this.items = k, this.el = $e("div", `${lt}-suggest`).css("width", x).hide(), this.itemClick = e, this.itemIndex = -1;
+ }
+ setOffset(k) {
+ this.el.cssRemoveKeys("top", "bottom").offset(k);
+ }
+ hide() {
+ const { el: k } = this;
+ this.filterItems = [], this.itemIndex = -1, k.hide(), _a(this.el.parent());
+ }
+ setItems(k) {
+ this.items = k;
+ }
+ search(k) {
+ let { items: e } = this;
+ if (/^\s*$/.test(k) || (e = e.filter((_) => (_.key || _).startsWith(k.toUpperCase()))), e = e.map((_) => {
+ let { title: u } = _;
+ u ? typeof u == "function" && (u = u()) : u = _;
+ const m = $e("div", `${lt}-item`).child(u).on("click.stop", () => {
+ this.itemClick(_), this.hide();
+ });
+ return _.label && m.child($e("div", "label").html(_.label)), m;
+ }), this.filterItems = e, e.length <= 0)
+ return;
+ const { el: x } = this;
+ x.html("").children(...e).show(), Va(x.parent(), () => {
+ this.hide();
+ });
+ }
+ bindInputEvents(k) {
+ k.on("keydown", (e) => Gm.call(this, e));
+ }
+}
+class Kr extends Hi {
+ constructor(k) {
+ super("div", `${lt}-icon`), this.iconNameEl = $e("div", `${lt}-icon-img ${k}`), this.child(this.iconNameEl);
+ }
+ setName(k) {
+ this.iconNameEl.className(`${lt}-icon-img ${k}`);
+ }
+}
+function Ul(H, k) {
+ H.setMonth(H.getMonth() + k);
+}
+function Ym(H, k) {
+ const e = new Date(H);
+ return e.setDate(k - H.getDay() + 1), e;
+}
+function Zm(H, k, e) {
+ const x = new Date(H, k, 1, 23, 59, 59), _ = [[], [], [], [], [], []];
+ for (let u = 0; u < 6; u += 1)
+ for (let m = 0; m < 7; m += 1) {
+ const g = u * 7 + m, b = Ym(x, g), w = b.getMonth() !== k, f = b.getMonth() === e.getMonth() && b.getDate() === e.getDate();
+ _[u][m] = { d: b, disabled: w, active: f };
+ }
+ return _;
+}
+class Jm {
+ constructor(k) {
+ this.value = k, this.cvalue = new Date(k), this.headerLeftEl = $e("div", "calendar-header-left"), this.bodyEl = $e("tbody", ""), this.buildAll(), this.el = $e("div", "x-spreadsheet-calendar").children(
+ $e("div", "calendar-header").children(
+ this.headerLeftEl,
+ $e("div", "calendar-header-right").children(
+ $e("a", "calendar-prev").on("click.stop", () => this.prev()).child(new Kr("chevron-left")),
+ $e("a", "calendar-next").on("click.stop", () => this.next()).child(new Kr("chevron-right"))
+ )
+ ),
+ $e("table", "calendar-body").children(
+ $e("thead", "").child(
+ $e("tr", "").children(
+ ...Cr("calendar.weeks").map((e) => $e("th", "cell").child(e))
+ )
+ ),
+ this.bodyEl
+ )
+ ), this.selectChange = () => {
+ };
+ }
+ setValue(k) {
+ this.value = k, this.cvalue = new Date(k), this.buildAll();
+ }
+ prev() {
+ const { value: k } = this;
+ Ul(k, -1), this.buildAll();
+ }
+ next() {
+ const { value: k } = this;
+ Ul(k, 1), this.buildAll();
+ }
+ buildAll() {
+ this.buildHeaderLeft(), this.buildBody();
+ }
+ buildHeaderLeft() {
+ const { value: k } = this;
+ this.headerLeftEl.html(`${Cr("calendar.months")[k.getMonth()]} ${k.getFullYear()}`);
+ }
+ buildBody() {
+ const { value: k, cvalue: e, bodyEl: x } = this, u = Zm(k.getFullYear(), k.getMonth(), e).map((m) => {
+ const g = m.map((b) => {
+ let w = "cell";
+ return b.disabled && (w += " disabled"), b.active && (w += " active"), $e("td", "").child(
+ $e("div", w).on("click.stop", () => {
+ this.selectChange(b.d);
+ }).child(b.d.getDate().toString())
+ );
+ });
+ return $e("tr", "").children(...g);
+ });
+ x.html("").children(...u);
+ }
+}
+class Qm {
+ constructor() {
+ this.calendar = new Jm(/* @__PURE__ */ new Date()), this.el = $e("div", `${lt}-datepicker`).child(
+ this.calendar.el
+ ).hide();
+ }
+ setValue(k) {
+ const { calendar: e } = this;
+ return typeof k == "string" ? /^\d{4}-\d{1,2}-\d{1,2}$/.test(k) && e.setValue(new Date(k.replace(new RegExp("-", "g"), "/"))) : k instanceof Date && e.setValue(k), this;
+ }
+ change(k) {
+ this.calendar.selectChange = (e) => {
+ k(e), this.hide();
+ };
+ }
+ show() {
+ this.el.show();
+ }
+ hide() {
+ this.el.hide();
+ }
+}
+function Yo() {
+ const { inputText: H } = this;
+ if (!/^\s*$/.test(H)) {
+ const {
+ textlineEl: k,
+ textEl: e,
+ areaOffset: x
+ } = this, _ = H.split(`
+`), u = Math.max(..._.map((y) => y.length)), g = k.offset().width / H.length, b = (u + 1) * g + 5, w = this.viewFn().width - x.left - g;
+ let f = _.length;
+ if (b > x.width) {
+ let y = b;
+ b > w && (y = w, f += parseInt(b / w, 10), f += b % w > 0 ? 1 : 0), e.css("width", `${y}px`);
+ }
+ f *= this.rowHeight, f > x.height && e.css("height", `${f}px`);
+ }
+}
+function qm({ target: H }, k) {
+ const { value: e, selectionEnd: x } = H, _ = `${e.slice(0, x)}${k}${e.slice(x)}`;
+ H.value = _, H.setSelectionRange(x + 1, x + 1), this.inputText = _, this.textlineEl.html(_), Yo.call(this);
+}
+function eb(H) {
+ const { keyCode: k, altKey: e } = H;
+ k !== 13 && k !== 9 && H.stopPropagation(), k === 13 && e && (qm.call(this, H, `
+`), H.stopPropagation()), k === 13 && !e && H.preventDefault();
+}
+function tb(H) {
+ const k = H.target.value, { suggest: e, textlineEl: x, validator: _ } = this, { cell: u } = this;
+ if (u !== null)
+ if ("editable" in u && u.editable === !0 || u.editable === void 0) {
+ if (this.inputText = k, _)
+ _.type === "list" ? e.search(k) : e.hide();
+ else {
+ const m = k.lastIndexOf("=");
+ m !== -1 ? e.search(k.substring(m + 1)) : e.hide();
+ }
+ x.html(k), Yo.call(this), this.change("input", k);
+ } else
+ H.target.value = u.text;
+ else {
+ if (this.inputText = k, _)
+ _.type === "list" ? e.search(k) : e.hide();
+ else {
+ const m = k.lastIndexOf("=");
+ m !== -1 ? e.search(k.substring(m + 1)) : e.hide();
+ }
+ x.html(k), Yo.call(this), this.change("input", k);
+ }
+}
+function rb(H) {
+ const { el: k } = this.textEl;
+ setTimeout(() => {
+ k.focus(), k.setSelectionRange(H, H);
+ }, 0);
+}
+function xc(H, k) {
+ const { textEl: e, textlineEl: x } = this;
+ e.el.blur(), e.val(H), x.html(H), rb.call(this, k);
+}
+function nb(H) {
+ const { inputText: k, validator: e } = this;
+ let x = 0;
+ if (e && e.type === "list")
+ this.inputText = H, x = this.inputText.length;
+ else {
+ const _ = k.lastIndexOf("="), u = k.substring(0, _ + 1);
+ let m = k.substring(_ + 1);
+ m.indexOf(")") !== -1 ? m = m.substring(m.indexOf(")")) : m = "", this.inputText = `${u + H.key}(`, x = this.inputText.length, this.inputText += `)${m}`;
+ }
+ xc.call(this, this.inputText, x);
+}
+function ib() {
+ this.suggest.setItems(this.formulas);
+}
+function ab(H) {
+ let k = H.getMonth() + 1, e = H.getDate();
+ return k < 10 && (k = `0${k}`), e < 10 && (e = `0${e}`), `${H.getFullYear()}-${k}-${e}`;
+}
+class ob {
+ constructor(k, e, x) {
+ this.viewFn = e, this.rowHeight = x, this.formulas = k, this.suggest = new wc(k, (_) => {
+ nb.call(this, _);
+ }), this.datepicker = new Qm(), this.datepicker.change((_) => {
+ this.setText(ab(_)), this.clear();
+ }), this.areaEl = $e("div", `${lt}-editor-area`).children(
+ this.textEl = $e("textarea", "").on("input", (_) => tb.call(this, _)).on("paste.stop", () => {
+ }).on("keydown", (_) => eb.call(this, _)),
+ this.textlineEl = $e("div", "textline"),
+ this.suggest.el,
+ this.datepicker.el
+ ).on("mousemove.stop", () => {
+ }).on("mousedown.stop", () => {
+ }), this.el = $e("div", `${lt}-editor`).child(this.areaEl).hide(), this.suggest.bindInputEvents(this.textEl), this.areaOffset = null, this.freeze = { w: 0, h: 0 }, this.cell = null, this.inputText = "", this.change = () => {
+ };
+ }
+ setFreezeLengths(k, e) {
+ this.freeze.w = k, this.freeze.h = e;
+ }
+ clear() {
+ this.inputText !== "" && this.change("finished", this.inputText), this.cell = null, this.areaOffset = null, this.inputText = "", this.el.hide(), this.textEl.val(""), this.textlineEl.html(""), ib.call(this), this.datepicker.hide();
+ }
+ setOffset(k, e = "top") {
+ const {
+ textEl: x,
+ areaEl: _,
+ suggest: u,
+ freeze: m,
+ el: g
+ } = this;
+ if (k) {
+ this.areaOffset = k;
+ const {
+ left: b,
+ top: w,
+ width: f,
+ height: y,
+ l: h,
+ t: l
+ } = k, d = { left: 0, top: 0 };
+ m.w > h && m.h > l || (m.w < h && m.h < l ? (d.left = m.w, d.top = m.h) : m.w > h ? d.top = m.h : m.h > l && (d.left = m.w)), g.offset(d), _.offset({ left: b - d.left - 0.8, top: w - d.top - 0.8 }), x.offset({ width: f - 9 + 0.8, height: y - 3 + 0.8 });
+ const s = { left: 0 };
+ s[e] = y, u.setOffset(s), u.hide();
+ }
+ }
+ setCell(k, e) {
+ const { el: x, datepicker: _, suggest: u } = this;
+ x.show(), this.cell = k;
+ const m = k && k.text || "";
+ if (this.setText(m), this.validator = e, e) {
+ const { type: g } = e;
+ g === "date" && (_.show(), /^\s*$/.test(m) || _.setValue(m)), g === "list" && (u.setItems(e.values()), u.search(""));
+ }
+ }
+ setText(k) {
+ this.inputText = k, xc.call(this, k, k.length), Yo.call(this);
+ }
+}
+class Li extends Hi {
+ // type: primary
+ constructor(k, e = "") {
+ super("div", `${lt}-button ${e}`), this.child(Cr(`button.${k}`));
+ }
+}
+function Zo() {
+ return window.devicePixelRatio || 1;
+}
+function Ef() {
+ return Zo() - 0.5;
+}
+function zt(H) {
+ return parseInt(H * Zo(), 10);
+}
+function ya(H) {
+ const k = zt(H);
+ return k > 0 ? k - 0.5 : 0.5;
+}
+class sb {
+ constructor(k, e, x, _, u = 0) {
+ this.x = k, this.y = e, this.width = x, this.height = _, this.padding = u, this.bgcolor = "#ffffff", this.borderTop = null, this.borderRight = null, this.borderBottom = null, this.borderLeft = null;
+ }
+ setBorders({
+ top: k,
+ bottom: e,
+ left: x,
+ right: _
+ }) {
+ k && (this.borderTop = k), _ && (this.borderRight = _), e && (this.borderBottom = e), x && (this.borderLeft = x);
+ }
+ innerWidth() {
+ return this.width - this.padding * 2 - 2;
+ }
+ innerHeight() {
+ return this.height - this.padding * 2 - 2;
+ }
+ textx(k) {
+ const { width: e, padding: x } = this;
+ let { x: _ } = this;
+ return k === "left" ? _ += x : k === "center" ? _ += e / 2 : k === "right" && (_ += e - x), _;
+ }
+ texty(k, e) {
+ const { height: x, padding: _ } = this;
+ let { y: u } = this;
+ return k === "top" ? u += _ : k === "middle" ? u += x / 2 - e / 2 : k === "bottom" && (u += x - _ - e), u;
+ }
+ topxys() {
+ const { x: k, y: e, width: x } = this;
+ return [[k, e], [k + x, e]];
+ }
+ rightxys() {
+ const {
+ x: k,
+ y: e,
+ width: x,
+ height: _
+ } = this;
+ return [[k + x, e], [k + x, e + _]];
+ }
+ bottomxys() {
+ const {
+ x: k,
+ y: e,
+ width: x,
+ height: _
+ } = this;
+ return [[k, e + _], [k + x, e + _]];
+ }
+ leftxys() {
+ const {
+ x: k,
+ y: e,
+ height: x
+ } = this;
+ return [[k, e], [k, e + x]];
+ }
+}
+function $l(H, k, e, x, _, u, m) {
+ const g = { x: 0, y: 0 };
+ H === "underline" ? _ === "bottom" ? g.y = 0 : _ === "top" ? g.y = -(u + 2) : g.y = -u / 2 : H === "strike" && (_ === "bottom" ? g.y = u / 2 : _ === "top" && (g.y = -(u / 2 + 2))), x === "center" ? g.x = m / 2 : x === "right" && (g.x = m), this.line(
+ [k - g.x, e - g.y],
+ [k - g.x + m, e - g.y]
+ );
+}
+class Sc {
+ constructor(k, e, x) {
+ this.el = k, this.ctx = k.getContext("2d"), this.resize(e, x), this.ctx.scale(Zo(), Zo());
+ }
+ resize(k, e) {
+ this.el.style.width = `${k}px`, this.el.style.height = `${e}px`, this.el.width = zt(k), this.el.height = zt(e);
+ }
+ clear() {
+ const { width: k, height: e } = this.el;
+ return this.ctx.clearRect(0, 0, k, e), this;
+ }
+ attr(k) {
+ return Object.assign(this.ctx, k), this;
+ }
+ save() {
+ return this.ctx.save(), this.ctx.beginPath(), this;
+ }
+ restore() {
+ return this.ctx.restore(), this;
+ }
+ beginPath() {
+ return this.ctx.beginPath(), this;
+ }
+ translate(k, e) {
+ return this.ctx.translate(zt(k), zt(e)), this;
+ }
+ scale(k, e) {
+ return this.ctx.scale(k, e), this;
+ }
+ clearRect(k, e, x, _) {
+ return this.ctx.clearRect(k, e, x, _), this;
+ }
+ fillRect(k, e, x, _) {
+ return this.ctx.fillRect(zt(k) - 0.5, zt(e) - 0.5, zt(x), zt(_)), this;
+ }
+ fillText(k, e, x) {
+ return this.ctx.fillText(k, zt(e), zt(x)), this;
+ }
+ /*
+ txt: render text
+ box: DrawBox
+ attr: {
+ align: left | center | right
+ valign: top | middle | bottom
+ color: '#333333',
+ strike: false,
+ font: {
+ name: 'Arial',
+ size: 14,
+ bold: false,
+ italic: false,
+ }
+ }
+ textWrap: text wrapping
+ */
+ text(k, e, x = {}, _ = !0) {
+ const { ctx: u } = this, {
+ align: m,
+ valign: g,
+ font: b,
+ color: w,
+ strike: f,
+ underline: y
+ } = x, h = e.textx(m);
+ u.save(), u.beginPath(), this.attr({
+ textAlign: m,
+ textBaseline: g,
+ font: `${b.italic ? "italic" : ""} ${b.bold ? "bold" : ""} ${zt(b.size)}px ${b.name}`,
+ fillStyle: w,
+ strokeStyle: w
+ });
+ const l = `${k}`.split(`
+`), d = e.innerWidth(), s = [];
+ l.forEach((a) => {
+ const r = u.measureText(a).width;
+ if (_ && r > zt(d)) {
+ let t = { w: 0, len: 0, start: 0 };
+ for (let i = 0; i < a.length; i += 1)
+ t.w >= zt(d) && (s.push(a.substr(t.start, t.len)), t = { w: 0, len: 0, start: i }), t.len += 1, t.w += u.measureText(a[i]).width + 1;
+ t.len > 0 && s.push(a.substr(t.start, t.len));
+ } else
+ s.push(a);
+ });
+ const v = (s.length - 1) * (b.size + 2);
+ let c = e.texty(g, v);
+ return s.forEach((a) => {
+ const r = u.measureText(a).width;
+ this.fillText(a, h, c), f && $l.call(this, "strike", h, c, m, g, b.size, r), y && $l.call(this, "underline", h, c, m, g, b.size, r), c += b.size + 2;
+ }), u.restore(), this;
+ }
+ border(k, e) {
+ const { ctx: x } = this;
+ return x.lineWidth = Ef, x.strokeStyle = e, k === "medium" ? x.lineWidth = zt(2) - 0.5 : k === "thick" ? x.lineWidth = zt(3) : k === "dashed" ? x.setLineDash([zt(3), zt(2)]) : k === "dotted" ? x.setLineDash([zt(1), zt(1)]) : k === "double" && x.setLineDash([zt(2), 0]), this;
+ }
+ line(...k) {
+ const { ctx: e } = this;
+ if (k.length > 1) {
+ e.beginPath();
+ const [x, _] = k[0];
+ e.moveTo(ya(x), ya(_));
+ for (let u = 1; u < k.length; u += 1) {
+ const [m, g] = k[u];
+ e.lineTo(ya(m), ya(g));
+ }
+ e.stroke();
+ }
+ return this;
+ }
+ strokeBorders(k) {
+ const { ctx: e } = this;
+ e.save();
+ const {
+ borderTop: x,
+ borderRight: _,
+ borderBottom: u,
+ borderLeft: m
+ } = k;
+ x && (this.border(...x), this.line(...k.topxys())), _ && (this.border(..._), this.line(...k.rightxys())), u && (this.border(...u), this.line(...k.bottomxys())), m && (this.border(...m), this.line(...k.leftxys())), e.restore();
+ }
+ dropdown(k) {
+ const { ctx: e } = this, {
+ x,
+ y: _,
+ width: u,
+ height: m
+ } = k, g = x + u - 15, b = _ + m - 15;
+ e.save(), e.beginPath(), e.moveTo(zt(g), zt(b)), e.lineTo(zt(g + 8), zt(b)), e.lineTo(zt(g + 4), zt(b + 6)), e.closePath(), e.fillStyle = "rgba(0, 0, 0, .45)", e.fill(), e.restore();
+ }
+ error(k) {
+ const { ctx: e } = this, { x, y: _, width: u } = k, m = x + u - 1;
+ e.save(), e.beginPath(), e.moveTo(zt(m - 8), zt(_ - 1)), e.lineTo(zt(m), zt(_ - 1)), e.lineTo(zt(m), zt(_ + 8)), e.closePath(), e.fillStyle = "rgba(255, 0, 0, .65)", e.fill(), e.restore();
+ }
+ frozen(k) {
+ const { ctx: e } = this, { x, y: _, width: u } = k, m = x + u - 1;
+ e.save(), e.beginPath(), e.moveTo(zt(m - 8), zt(_ - 1)), e.lineTo(zt(m), zt(_ - 1)), e.lineTo(zt(m), zt(_ + 8)), e.closePath(), e.fillStyle = "rgba(0, 255, 0, .85)", e.fill(), e.restore();
+ }
+ rect(k, e) {
+ const { ctx: x } = this, {
+ x: _,
+ y: u,
+ width: m,
+ height: g,
+ bgcolor: b
+ } = k;
+ x.save(), x.beginPath(), x.fillStyle = b || "#fff", x.rect(ya(_ + 1), ya(u + 1), zt(m - 2), zt(g - 2)), x.clip(), x.fill(), e(), x.restore();
+ }
+}
+const Wl = [
+ { key: "Arial", title: "Arial" },
+ { key: "Helvetica", title: "Helvetica" },
+ { key: "Source Sans Pro", title: "Source Sans Pro" },
+ { key: "Comic Sans MS", title: "Comic Sans MS" },
+ { key: "Courier New", title: "Courier New" },
+ { key: "Verdana", title: "Verdana" },
+ { key: "Lato", title: "Lato" }
+], vf = [
+ { pt: 7.5, px: 10 },
+ { pt: 8, px: 11 },
+ { pt: 9, px: 12 },
+ { pt: 10, px: 13 },
+ { pt: 10.5, px: 14 },
+ { pt: 11, px: 15 },
+ { pt: 12, px: 16 },
+ { pt: 14, px: 18.7 },
+ { pt: 15, px: 20 },
+ { pt: 16, px: 21.3 },
+ { pt: 18, px: 24 },
+ { pt: 22, px: 29.3 },
+ { pt: 24, px: 32 },
+ { pt: 26, px: 34.7 },
+ { pt: 36, px: 48 },
+ { pt: 42, px: 56 }
+ // { pt: 54, px: 71.7 },
+ // { pt: 63, px: 83.7 },
+ // { pt: 72, px: 95.6 },
+];
+function fb(H) {
+ for (let k = 0; k < vf.length; k += 1) {
+ const e = vf[k];
+ if (e.pt === H)
+ return e.px;
+ }
+ return H;
+}
+const ub = (H) => {
+ const k = [], e = [];
+ let x = [], _ = 0, u = "", m = 1, g = "";
+ for (let b = 0; b < H.length; b += 1) {
+ const w = H.charAt(b);
+ if (w !== " ") {
+ if (w >= "a" && w <= "z")
+ x.push(w.toUpperCase());
+ else if (w >= "0" && w <= "9" || w >= "A" && w <= "Z" || w === ".")
+ x.push(w);
+ else if (w === '"') {
+ for (b += 1; H.charAt(b) !== '"'; )
+ x.push(H.charAt(b)), b += 1;
+ e.push(`"${x.join("")}`), x = [];
+ } else if (w === "-" && /[+\-*/,(]/.test(g))
+ x.push(w);
+ else {
+ if (w !== "(" && x.length > 0 && e.push(x.join("")), w === ")") {
+ let f = k.pop();
+ if (_ === 2)
+ try {
+ const [y, h] = Ti(e.pop()), [l, d] = Ti(e.pop());
+ let s = 0;
+ for (let v = l; v <= y; v += 1)
+ for (let c = d; c <= h; c += 1)
+ e.push(hi(v, c)), s += 1;
+ e.push([f, s]);
+ } catch (y) {
+ }
+ else if (_ === 1 || _ === 3)
+ _ === 3 && e.push(u), e.push([f, m]), m = 1;
+ else
+ for (; f !== "(" && (e.push(f), !(k.length <= 0)); )
+ f = k.pop();
+ _ = 0;
+ } else if (w === "=" || w === ">" || w === "<") {
+ const f = H.charAt(b + 1);
+ u = w, (f === "=" || f === "-") && (u += f, b += 1), _ = 3;
+ } else if (w === ":")
+ _ = 2;
+ else if (w === ",")
+ _ === 3 && e.push(u), _ = 1, m += 1;
+ else if (w === "(" && x.length > 0)
+ k.push(x.join(""));
+ else {
+ if (k.length > 0 && (w === "+" || w === "-")) {
+ let f = k[k.length - 1];
+ if (f !== "(" && e.push(k.pop()), f === "*" || f === "/")
+ for (; k.length > 0 && (f = k[k.length - 1], f !== "("); )
+ e.push(k.pop());
+ } else if (k.length > 0) {
+ const f = k[k.length - 1];
+ (f === "*" || f === "/") && e.push(k.pop());
+ }
+ k.push(w);
+ }
+ x = [];
+ }
+ g = w;
+ }
+ }
+ for (x.length > 0 && e.push(x.join("")); k.length > 0; )
+ e.push(k.pop());
+ return e;
+}, lb = (H, k) => {
+ const [e] = H;
+ let x = H;
+ if (e === '"')
+ return H.substring(1);
+ let _ = 1;
+ if (e === "-" && (x = H.substring(1), _ = -1), x[0] >= "0" && x[0] <= "9")
+ return _ * Number(x);
+ const [u, m] = Ti(x);
+ return _ * k(u, m);
+}, cb = (H, k, e, x) => {
+ const _ = [];
+ for (let u = 0; u < H.length; u += 1) {
+ const m = H[u], g = m[0];
+ if (m === "+") {
+ const b = _.pop();
+ _.push(ji("+", _.pop(), b));
+ } else if (m === "-")
+ if (_.length === 1) {
+ const b = _.pop();
+ _.push(ji("*", b, -1));
+ } else {
+ const b = _.pop();
+ _.push(ji("-", _.pop(), b));
+ }
+ else if (m === "*")
+ _.push(ji("*", _.pop(), _.pop()));
+ else if (m === "/") {
+ const b = _.pop();
+ _.push(ji("/", _.pop(), b));
+ } else if (g === "=" || g === ">" || g === "<") {
+ let b = _.pop();
+ Number.isNaN(b) || (b = Number(b));
+ let w = _.pop();
+ Number.isNaN(w) || (w = Number(w));
+ let f = !1;
+ g === "=" ? f = w === b : m === ">" ? f = w > b : m === ">=" ? f = w >= b : m === "<" ? f = w < b : m === "<=" && (f = w <= b), _.push(f);
+ } else if (Array.isArray(m)) {
+ const [b, w] = m, f = [];
+ for (let y = 0; y < w; y += 1)
+ f.push(_.pop());
+ _.push(k[b].render(f.reverse()));
+ } else {
+ if (x.includes(m))
+ return 0;
+ (g >= "a" && g <= "z" || g >= "A" && g <= "Z") && x.push(m), _.push(lb(m, e)), x.pop();
+ }
+ }
+ return _[0];
+}, kc = (H, k, e, x = []) => {
+ if (H[0] === "=") {
+ const _ = ub(H.substring(1));
+ return _.length <= 0 ? H : cb(
+ _,
+ k,
+ (u, m) => kc(e(u, m), k, e, x),
+ x
+ );
+ }
+ return H;
+}, hb = {
+ render: kc
+}, Tf = [
+ {
+ key: "SUM",
+ title: Jt("formula.sum"),
+ render: (H) => H.reduce((k, e) => ji("+", k, e), 0)
+ },
+ {
+ key: "AVERAGE",
+ title: Jt("formula.average"),
+ render: (H) => H.reduce((k, e) => Number(k) + Number(e), 0) / H.length
+ },
+ {
+ key: "MAX",
+ title: Jt("formula.max"),
+ render: (H) => Math.max(...H.map((k) => Number(k)))
+ },
+ {
+ key: "MIN",
+ title: Jt("formula.min"),
+ render: (H) => Math.min(...H.map((k) => Number(k)))
+ },
+ {
+ key: "IF",
+ title: Jt("formula._if"),
+ render: ([H, k, e]) => H ? k : e
+ },
+ {
+ key: "AND",
+ title: Jt("formula.and"),
+ render: (H) => H.every((k) => k)
+ },
+ {
+ key: "OR",
+ title: Jt("formula.or"),
+ render: (H) => H.some((k) => k)
+ },
+ {
+ key: "CONCAT",
+ title: Jt("formula.concat"),
+ render: (H) => H.join("")
+ }
+ /* support: 1 + A1 + B2 * 3
+ {
+ key: 'DIVIDE',
+ title: tf('formula.divide'),
+ render: ary => ary.reduce((a, b) => Number(a) / Number(b)),
+ },
+ {
+ key: 'PRODUCT',
+ title: tf('formula.product'),
+ render: ary => ary.reduce((a, b) => Number(a) * Number(b),1),
+ },
+ {
+ key: 'SUBTRACT',
+ title: tf('formula.subtract'),
+ render: ary => ary.reduce((a, b) => Number(a) - Number(b)),
+ },
+ */
+], db = Tf, Oc = {};
+Tf.forEach((H) => {
+ Oc[H.key] = H;
+});
+const va = (H) => H, Fo = (H) => {
+ if (/^(-?\d*.?\d*)$/.test(H)) {
+ const k = Number(H).toFixed(2).toString(), [e, ...x] = k.split("\\.");
+ return [e.replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"), ...x];
+ }
+ return H;
+}, Xa = [
+ {
+ key: "normal",
+ title: Jt("format.normal"),
+ type: "string",
+ render: va
+ },
+ {
+ key: "text",
+ title: Jt("format.text"),
+ type: "string",
+ render: va
+ },
+ {
+ key: "number",
+ title: Jt("format.number"),
+ type: "number",
+ label: "1,000.12",
+ render: Fo
+ },
+ {
+ key: "percent",
+ title: Jt("format.percent"),
+ type: "number",
+ label: "10.12%",
+ render: (H) => `${H}%`
+ },
+ {
+ key: "rmb",
+ title: Jt("format.rmb"),
+ type: "number",
+ label: "¥10.00",
+ render: (H) => `¥${Fo(H)}`
+ },
+ {
+ key: "usd",
+ title: Jt("format.usd"),
+ type: "number",
+ label: "$10.00",
+ render: (H) => `$${Fo(H)}`
+ },
+ {
+ key: "eur",
+ title: Jt("format.eur"),
+ type: "number",
+ label: "€10.00",
+ render: (H) => `€${Fo(H)}`
+ },
+ {
+ key: "date",
+ title: Jt("format.date"),
+ type: "date",
+ label: "26/09/2008",
+ render: va
+ },
+ {
+ key: "time",
+ title: Jt("format.time"),
+ type: "date",
+ label: "15:59:00",
+ render: va
+ },
+ {
+ key: "datetime",
+ title: Jt("format.datetime"),
+ type: "date",
+ label: "26/09/2008 15:59:00",
+ render: va
+ },
+ {
+ key: "duration",
+ title: Jt("format.duration"),
+ type: "date",
+ label: "24:01:00",
+ render: va
+ }
+], Ec = {};
+Xa.forEach((H) => {
+ Ec[H.key] = H;
+});
+const pb = 5, yb = { fillStyle: "#f4f5f8" }, vb = {
+ fillStyle: "#fff",
+ lineWidth: Ef,
+ strokeStyle: "#e6e6e6"
+};
+function mb() {
+ return {
+ textAlign: "center",
+ textBaseline: "middle",
+ font: `500 ${zt(12)}px Source Sans Pro`,
+ fillStyle: "#585757",
+ lineWidth: Ef(),
+ strokeStyle: "#e6e6e6"
+ };
+}
+function Tc(H, k, e, x = 0) {
+ const {
+ left: _,
+ top: u,
+ width: m,
+ height: g
+ } = H.cellRect(k, e);
+ return new sb(_, u + x, m, g, pb);
+}
+function Jo(H, k, e, x, _ = 0) {
+ const { sortedRowMap: u, rows: m, cols: g } = k;
+ if (m.isHide(e) || g.isHide(x))
+ return;
+ let b = e;
+ u.has(e) && (b = u.get(e));
+ const w = k.getCell(b, x);
+ if (w === null)
+ return;
+ let f = !1;
+ "editable" in w && w.editable === !1 && (f = !0);
+ const y = k.getCellStyleOrDefault(b, x), h = Tc(k, e, x, _);
+ h.bgcolor = y.bgcolor, y.border !== void 0 && (h.setBorders(y.border), H.strokeBorders(h)), H.rect(h, () => {
+ let l = "";
+ k.settings.evalPaused ? l = w.text || "" : l = hb.render(w.text || "", Oc, (v, c) => k.getCellTextOrDefault(c, v)), y.format && (l = Ec[y.format].render(l));
+ const d = Object.assign({}, y.font);
+ d.size = fb(d.size), H.text(l, h, {
+ align: y.align,
+ valign: y.valign,
+ font: d,
+ color: y.color,
+ strike: y.strike,
+ underline: y.underline
+ }, y.textwrap), k.validations.getError(e, x) && H.error(h), f && H.frozen(h);
+ });
+}
+function bb(H) {
+ const { data: k, draw: e } = this;
+ if (H) {
+ const { autoFilter: x } = k;
+ if (!x.active())
+ return;
+ const _ = x.hrange();
+ H.intersects(_) && _.each((u, m) => {
+ const g = Tc(k, u, m);
+ e.dropdown(g);
+ });
+ }
+}
+function Bo(H, k, e, x, _) {
+ const { draw: u, data: m } = this;
+ u.save(), u.translate(k, e).translate(x, _);
+ const { exceptRowSet: g } = m, b = (y) => {
+ const h = g.has(y);
+ if (h) {
+ const l = m.rows.getHeight(y);
+ u.translate(0, -l);
+ }
+ return !h;
+ }, w = m.exceptRowTotalHeight(H.sri, H.eri);
+ u.save(), u.translate(0, -w), H.each((y, h) => {
+ Jo(u, m, y, h);
+ }, (y) => b(y)), u.restore();
+ const f = /* @__PURE__ */ new Set();
+ u.save(), u.translate(0, -w), m.eachMergesInView(H, ({ sri: y, sci: h, eri: l }) => {
+ if (!g.has(y))
+ Jo(u, m, y, h);
+ else if (!f.has(y)) {
+ f.add(y);
+ const d = m.rows.sumHeight(y, l + 1);
+ u.translate(0, -d);
+ }
+ }), u.restore(), bb.call(this, H), u.restore();
+}
+function Vl(H, k, e, x) {
+ const { draw: _ } = this;
+ _.save(), _.attr({ fillStyle: "rgba(75, 137, 255, 0.08)" }).fillRect(H, k, e, x), _.restore();
+}
+function jo(H, k, e, x, _, u) {
+ const { draw: m, data: g } = this, b = k.h, w = k.w, f = u + x, y = _ + e;
+ m.save(), m.attr(yb), (H === "all" || H === "left") && m.fillRect(0, f, e, b), (H === "all" || H === "top") && m.fillRect(y, 0, w, x);
+ const {
+ sri: h,
+ sci: l,
+ eri: d,
+ eci: s
+ } = g.selector.range;
+ m.attr(mb()), (H === "all" || H === "left") && (g.rowEach(k.sri, k.eri, (v, c, a) => {
+ const r = f + c, t = v;
+ m.line([0, r], [e, r]), h <= t && t < d + 1 && Vl.call(this, 0, r, e, a), m.fillText(t + 1, e / 2, r + a / 2), v > 0 && g.rows.isHide(v - 1) && (m.save(), m.attr({ strokeStyle: "#c6c6c6" }), m.line([5, r + 5], [e - 5, r + 5]), m.restore());
+ }), m.line([0, b + f], [e, b + f]), m.line([e, f], [e, b + f])), (H === "all" || H === "top") && (g.colEach(k.sci, k.eci, (v, c, a) => {
+ const r = y + c, t = v;
+ m.line([r, 0], [r, x]), l <= t && t < s + 1 && Vl.call(this, r, 0, a, x), m.fillText(cc(t), r + a / 2, x / 2), v > 0 && g.cols.isHide(v - 1) && (m.save(), m.attr({ strokeStyle: "#c6c6c6" }), m.line([r + 5, 5], [r + 5, x - 5]), m.restore());
+ }), m.line([w + y, 0], [w + y, x]), m.line([0, x], [w + y, x])), m.restore();
+}
+function gb(H, k) {
+ const { draw: e } = this;
+ e.save(), e.attr({ fillStyle: "#f4f5f8" }).fillRect(0, 0, H, k), e.restore();
+}
+function Lo({
+ sri: H,
+ sci: k,
+ eri: e,
+ eci: x,
+ w: _,
+ h: u
+}, m, g, b, w) {
+ const { draw: f, data: y } = this, { settings: h } = y;
+ if (f.save(), f.attr(vb).translate(m + b, g + w), !h.showGrid) {
+ f.restore();
+ return;
+ }
+ y.rowEach(H, e, (l, d, s) => {
+ l !== H && f.line([0, d], [_, d]), l === e && f.line([0, d + s], [_, d + s]);
+ }), y.colEach(k, x, (l, d, s) => {
+ l !== k && f.line([d, 0], [d, u]), l === x && f.line([d + s, 0], [d + s, u]);
+ }), f.restore();
+}
+function _b(H, k, e, x) {
+ const { draw: _, data: u } = this, m = u.viewWidth() - H, g = u.viewHeight() - k;
+ _.save().translate(H, k).attr({ strokeStyle: "rgba(75, 137, 255, .6)" }), _.line([0, x], [m, x]), _.line([e, 0], [e, g]), _.restore();
+}
+class wb {
+ constructor(k, e) {
+ this.el = k, this.draw = new Sc(k, e.viewWidth(), e.viewHeight()), this.data = e;
+ }
+ resetData(k) {
+ this.data = k, this.render();
+ }
+ render() {
+ const { data: k } = this, { rows: e, cols: x } = k, _ = x.indexWidth, u = e.height;
+ this.draw.resize(k.viewWidth(), k.viewHeight()), this.clear();
+ const m = k.viewRange(), g = k.freezeTotalWidth(), b = k.freezeTotalHeight(), { x: w, y: f } = k.scroll;
+ Lo.call(this, m, _, u, g, b), Bo.call(this, m, _, u, -w, -f), jo.call(this, "all", m, _, u, g, b), gb.call(this, _, u);
+ const [y, h] = k.freeze;
+ if (y > 0 || h > 0) {
+ if (y > 0) {
+ const d = m.clone();
+ d.sri = 0, d.eri = y - 1, d.h = b, Lo.call(this, d, _, u, g, 0), Bo.call(this, d, _, u, -w, 0), jo.call(this, "top", d, _, u, g, 0);
+ }
+ if (h > 0) {
+ const d = m.clone();
+ d.sci = 0, d.eci = h - 1, d.w = g, Lo.call(this, d, _, u, 0, b), jo.call(this, "left", d, _, u, 0, b), Bo.call(this, d, _, u, 0, -f);
+ }
+ const l = k.freezeViewRange();
+ Lo.call(this, l, _, u, 0, 0), jo.call(this, "all", l, _, u, 0, 0), Bo.call(this, l, _, u, 0, 0), _b.call(this, _, u, g, b);
+ }
+ }
+ clear() {
+ this.draw.clear();
+ }
+}
+const Xo = [
+ ["A3", 11.69, 16.54],
+ ["A4", 8.27, 11.69],
+ ["A5", 5.83, 8.27],
+ ["B4", 9.84, 13.9],
+ ["B5", 6.93, 9.84]
+], mf = ["landscape", "portrait"];
+function Qo(H) {
+ return parseInt(96 * H, 10);
+}
+function Kl(H) {
+ H === "cancel" ? this.el.hide() : this.toPrint();
+}
+function xb(H) {
+ const { paper: k } = this, { value: e } = H.target, x = Xo[e];
+ k.w = Qo(x[1]), k.h = Qo(x[2]), this.preview();
+}
+function Sb(H) {
+ const { paper: k } = this, { value: e } = H.target, x = mf[e];
+ k.orientation = x, this.preview();
+}
+let kb = class {
+ constructor(k) {
+ this.paper = {
+ w: Qo(Xo[0][1]),
+ h: Qo(Xo[0][2]),
+ padding: 50,
+ orientation: mf[0],
+ get width() {
+ return this.orientation === "landscape" ? this.h : this.w;
+ },
+ get height() {
+ return this.orientation === "landscape" ? this.w : this.h;
+ }
+ }, this.data = k, this.el = $e("div", `${lt}-print`).children(
+ $e("div", `${lt}-print-bar`).children(
+ $e("div", "-title").child("Print settings"),
+ $e("div", "-right").children(
+ $e("div", `${lt}-buttons`).children(
+ new Li("cancel").on("click", Kl.bind(this, "cancel")),
+ new Li("next", "primary").on("click", Kl.bind(this, "next"))
+ )
+ )
+ ),
+ $e("div", `${lt}-print-content`).children(
+ this.contentEl = $e("div", "-content"),
+ $e("div", "-sider").child(
+ $e("form", "").children(
+ $e("fieldset", "").children(
+ $e("label", "").child(`${Cr("print.size")}`),
+ $e("select", "").children(
+ ...Xo.map((e, x) => $e("option", "").attr("value", x).child(`${e[0]} ( ${e[1]}''x${e[2]}'' )`))
+ ).on("change", xb.bind(this))
+ ),
+ $e("fieldset", "").children(
+ $e("label", "").child(`${Cr("print.orientation")}`),
+ $e("select", "").children(
+ ...mf.map((e, x) => $e("option", "").attr("value", x).child(`${Cr("print.orientations")[x]}`))
+ ).on("change", Sb.bind(this))
+ )
+ )
+ )
+ )
+ ).hide();
+ }
+ resetData(k) {
+ this.data = k;
+ }
+ preview() {
+ const { data: k, paper: e } = this, { width: x, height: _, padding: u } = e, m = x - u * 2, g = _ - u * 2, b = k.contentRange(), w = parseInt(b.h / g, 10) + 1, f = m / b.w;
+ let y = u;
+ const h = u;
+ f > 1 && (y += (m - b.w) / 2);
+ let l = 0, d = 0;
+ this.contentEl.html(""), this.canvases = [];
+ const s = {
+ sri: 0,
+ sci: 0,
+ eri: 0,
+ eci: 0
+ };
+ for (let v = 0; v < w; v += 1) {
+ let c = 0, a = 0;
+ const r = $e("div", `${lt}-canvas-card`), t = $e("canvas", `${lt}-canvas`);
+ this.canvases.push(t.el);
+ const i = new Sc(t.el, x, _);
+ for (i.save(), i.translate(y, h), f < 1 && i.scale(f, f); l <= b.eri; l += 1) {
+ const o = k.rows.getHeight(l);
+ if (c += o, c < g)
+ for (let p = 0; p <= b.eci; p += 1)
+ Jo(i, k, l, p, d), s.eci = p;
+ else {
+ a = -(c - o);
+ break;
+ }
+ }
+ s.eri = l, i.restore(), i.save(), i.translate(y, h), f < 1 && i.scale(f, f);
+ const n = d;
+ k.eachMergesInView(s, ({ sri: o, sci: p }) => {
+ Jo(i, k, o, p, n);
+ }), i.restore(), s.sri = s.eri, s.sci = s.eci, d += a, this.contentEl.child($e("div", `${lt}-canvas-card-wraper`).child(r.child(t)));
+ }
+ this.el.show();
+ }
+ toPrint() {
+ this.el.hide();
+ const { paper: k } = this, e = $e("iframe", "").hide(), { el: x } = e;
+ window.document.body.appendChild(x);
+ const { contentWindow: _ } = x, u = _.document, m = document.createElement("style");
+ m.innerHTML = `
+ @page { size: ${k.width}px ${k.height}px; };
+ canvas {
+ page-break-before: auto;
+ page-break-after: always;
+ image-rendering: pixelated;
+ };
+ `, u.head.appendChild(m), this.canvases.forEach((g) => {
+ const b = g.cloneNode(!1);
+ b.getContext("2d").drawImage(g, 0, 0), u.body.appendChild(b);
+ }), _.print();
+ }
+};
+const Ob = [
+ { key: "copy", title: Jt("contextmenu.copy"), label: "Ctrl+C" },
+ { key: "cut", title: Jt("contextmenu.cut"), label: "Ctrl+X" },
+ { key: "paste", title: Jt("contextmenu.paste"), label: "Ctrl+V" },
+ { key: "paste-value", title: Jt("contextmenu.pasteValue"), label: "Ctrl+Shift+V" },
+ { key: "paste-format", title: Jt("contextmenu.pasteFormat"), label: "Ctrl+Alt+V" },
+ { key: "divider" },
+ { key: "insert-row", title: Jt("contextmenu.insertRow") },
+ { key: "insert-column", title: Jt("contextmenu.insertColumn") },
+ { key: "divider" },
+ { key: "delete-row", title: Jt("contextmenu.deleteRow") },
+ { key: "delete-column", title: Jt("contextmenu.deleteColumn") },
+ { key: "delete-cell-text", title: Jt("contextmenu.deleteCellText") },
+ { key: "hide", title: Jt("contextmenu.hide") },
+ { key: "divider" },
+ { key: "validation", title: Jt("contextmenu.validation") },
+ { key: "divider" },
+ { key: "cell-printable", title: Jt("contextmenu.cellprintable") },
+ { key: "cell-non-printable", title: Jt("contextmenu.cellnonprintable") },
+ { key: "divider" },
+ { key: "cell-editable", title: Jt("contextmenu.celleditable") },
+ { key: "cell-non-editable", title: Jt("contextmenu.cellnoneditable") }
+];
+function Eb(H) {
+ return H.key === "divider" ? $e("div", `${lt}-item divider`) : $e("div", `${lt}-item`).on("click", () => {
+ this.itemClick(H.key), this.hide();
+ }).children(
+ H.title(),
+ $e("div", "label").child(H.label || "")
+ );
+}
+function Tb() {
+ return Ob.map((H) => Eb.call(this, H));
+}
+let Rb = class {
+ constructor(k, e = !1) {
+ this.menuItems = Tb.call(this), this.el = $e("div", `${lt}-contextmenu`).children(...this.menuItems).hide(), this.viewFn = k, this.itemClick = () => {
+ }, this.isHide = e, this.setMode("range");
+ }
+ // row-col: the whole rows or the whole cols
+ // range: select range
+ setMode(k) {
+ const e = this.menuItems[12];
+ k === "row-col" ? e.show() : e.hide();
+ }
+ hide() {
+ const { el: k } = this;
+ k.hide(), _a(k);
+ }
+ setPosition(k, e) {
+ if (this.isHide)
+ return;
+ const { el: x } = this, { width: _ } = x.show().offset(), u = this.viewFn(), m = u.height / 2;
+ let g = k;
+ u.width - k <= _ && (g -= _), x.css("left", `${g}px`), e > m ? x.css("bottom", `${u.height - e}px`).css("max-height", `${e}px`).css("top", "auto") : x.css("top", `${e}px`).css("max-height", `${u.height - e}px`).css("bottom", "auto"), Va(x);
+ }
+};
+function Cb(H, k) {
+ if (k.classList.contains("active"))
+ return;
+ const {
+ left: e,
+ top: x,
+ width: _,
+ height: u
+ } = k.getBoundingClientRect(), m = $e("div", `${lt}-tooltip`).html(H).show();
+ document.body.appendChild(m.el);
+ const g = m.box();
+ m.css("left", `${e + _ / 2 - g.width / 2}px`).css("top", `${x + u + 2}px`), ln(k, "mouseleave", () => {
+ document.body.contains(m.el) && document.body.removeChild(m.el);
+ }), ln(k, "click", () => {
+ document.body.contains(m.el) && document.body.removeChild(m.el);
+ });
+}
+class Rf {
+ // tooltip
+ // tag: the subclass type
+ // shortcut: shortcut key
+ constructor(k, e, x) {
+ this.tip = Cr(`toolbar.${k.replace(/-[a-z]/g, (_) => _[1].toUpperCase())}`), e && (this.tip += ` (${e})`), this.tag = k, this.shortcut = e, this.value = x, this.el = this.element(), this.change = () => {
+ };
+ }
+ element() {
+ const { tip: k } = this;
+ return $e("div", `${lt}-toolbar-btn`).on("mouseenter", (e) => {
+ Cb(k, e.target);
+ }).attr("data-tooltip", k);
+ }
+ setState() {
+ }
+}
+class Qn extends Rf {
+ dropdown() {
+ }
+ getValue(k) {
+ return k;
+ }
+ element() {
+ const { tag: k } = this;
+ return this.dd = this.dropdown(), this.dd.change = (e) => this.change(k, this.getValue(e)), super.element().child(
+ this.dd
+ );
+ }
+ setState(k) {
+ k && (this.value = k, this.dd.setTitle(k));
+ }
+}
+class qn extends Hi {
+ constructor(k, e, x, _, ...u) {
+ super("div", `${lt}-dropdown ${_}`), this.title = k, this.change = () => {
+ }, this.headerClick = () => {
+ }, typeof k == "string" ? this.title = $e("div", `${lt}-dropdown-title`).child(k) : x && this.title.addClass("arrow-left"), this.contentEl = $e("div", `${lt}-dropdown-content`).css("width", e).hide(), this.setContentChildren(...u), this.headerEl = $e("div", `${lt}-dropdown-header`), this.headerEl.on("click", () => {
+ this.contentEl.css("display") !== "block" ? this.show() : this.hide();
+ }).children(
+ this.title,
+ x ? $e("div", `${lt}-icon arrow-right`).child(
+ $e("div", `${lt}-icon-img arrow-down`)
+ ) : ""
+ ), this.children(this.headerEl, this.contentEl);
+ }
+ setContentChildren(...k) {
+ this.contentEl.html(""), k.length > 0 && this.contentEl.children(...k);
+ }
+ setTitle(k) {
+ this.title.html(k), this.hide();
+ }
+ show() {
+ const { contentEl: k } = this;
+ k.show(), this.parent().active(), Va(this.parent(), () => {
+ this.hide();
+ });
+ }
+ hide() {
+ this.parent().active(!1), this.contentEl.hide(), _a(this.parent());
+ }
+}
+function Pb(H) {
+ return $e("div", `${lt}-item`).child(new Kr(H));
+}
+class Rc extends qn {
+ constructor(k, e) {
+ const x = new Kr(`align-${e}`), _ = k.map((u) => Pb(`align-${u}`).on("click", () => {
+ this.setTitle(u), this.change(u);
+ }));
+ super(x, "auto", !0, "bottom-left", ..._);
+ }
+ setTitle(k) {
+ this.title.setName(`align-${k}`), this.hide();
+ }
+}
+class Ab extends Qn {
+ constructor(k) {
+ super("align", "", k);
+ }
+ dropdown() {
+ const { value: k } = this;
+ return new Rc(["left", "center", "right"], k);
+ }
+}
+class Mb extends Qn {
+ constructor(k) {
+ super("valign", "", k);
+ }
+ dropdown() {
+ const { value: k } = this;
+ return new Rc(["top", "middle", "bottom"], k);
+ }
+}
+class di extends Rf {
+ element() {
+ const { tag: k } = this;
+ return super.element().child(new Kr(k)).on("click", () => this.click());
+ }
+ click() {
+ this.change(this.tag, this.toggle());
+ }
+ setState(k) {
+ this.el.active(k);
+ }
+ toggle() {
+ return this.el.toggle();
+ }
+ active() {
+ return this.el.hasClass("active");
+ }
+}
+class Ib extends di {
+ constructor() {
+ super("autofilter");
+ }
+ setState() {
+ }
+}
+class Db extends di {
+ constructor() {
+ super("font-bold", "Ctrl+B");
+ }
+}
+class Nb extends di {
+ constructor() {
+ super("font-italic", "Ctrl+I");
+ }
+}
+class Fb extends di {
+ constructor() {
+ super("strike", "Ctrl+U");
+ }
+}
+class Bb extends di {
+ constructor() {
+ super("underline", "Ctrl+U");
+ }
+}
+const jb = ["#ffffff", "#000100", "#e7e5e6", "#445569", "#5b9cd6", "#ed7d31", "#a5a5a5", "#ffc001", "#4371c6", "#71ae47"], Lb = [
+ ["#f2f2f2", "#7f7f7f", "#d0cecf", "#d5dce4", "#deeaf6", "#fce5d5", "#ededed", "#fff2cd", "#d9e2f3", "#e3efd9"],
+ ["#d8d8d8", "#595959", "#afabac", "#adb8ca", "#bdd7ee", "#f7ccac", "#dbdbdb", "#ffe59a", "#b3c6e7", "#c5e0b3"],
+ ["#bfbfbf", "#3f3f3f", "#756f6f", "#8596b0", "#9cc2e6", "#f4b184", "#c9c9c9", "#fed964", "#8eaada", "#a7d08c"],
+ ["#a5a5a5", "#262626", "#3a3839", "#333f4f", "#2e75b5", "#c45a10", "#7b7b7b", "#bf8e01", "#2f5596", "#538136"],
+ ["#7f7f7f", "#0c0c0c", "#171516", "#222a35", "#1f4e7a", "#843c0a", "#525252", "#7e6000", "#203864", "#365624"]
+], zb = ["#c00000", "#fe0000", "#fdc101", "#ffff01", "#93d051", "#00b04e", "#01b0f1", "#0170c1", "#012060", "#7030a0"];
+function ef(H) {
+ return $e("td", "").child(
+ $e("div", `${lt}-color-palette-cell`).on("click.stop", () => this.change(H)).css("background-color", H)
+ );
+}
+class Hb {
+ constructor() {
+ this.el = $e("div", `${lt}-color-palette`), this.change = () => {
+ };
+ const k = $e("table", "").children(
+ $e("tbody", "").children(
+ $e("tr", `${lt}-theme-color-placeholders`).children(
+ ...jb.map((e) => ef.call(this, e))
+ ),
+ ...Lb.map((e) => $e("tr", `${lt}-theme-colors`).children(
+ ...e.map((x) => ef.call(this, x))
+ )),
+ $e("tr", `${lt}-standard-colors`).children(
+ ...zb.map((e) => ef.call(this, e))
+ )
+ )
+ );
+ this.el.child(k);
+ }
+}
+class Cf extends qn {
+ constructor(k, e) {
+ const x = new Kr(k).css("height", "16px").css("border-bottom", `3px solid ${e}`), _ = new Hb();
+ _.change = (u) => {
+ this.setTitle(u), this.change(u);
+ }, super(x, "auto", !1, "bottom-left", _.el);
+ }
+ setTitle(k) {
+ this.title.css("border-color", k), this.hide();
+ }
+}
+const Xb = [
+ ["thin", ''],
+ ["medium", ''],
+ ["thick", ''],
+ ["dashed", ''],
+ ["dotted", '']
+ // ['double', ''],
+];
+class Ub extends qn {
+ constructor(k) {
+ const e = new Kr("line-type");
+ let x = 0;
+ const _ = Xb.map((u, m) => $e("div", `${lt}-item state ${k === u[0] ? "checked" : ""}`).on("click", () => {
+ _[x].toggle("checked"), _[m].toggle("checked"), x = m, this.hide(), this.change(u);
+ }).child(
+ $e("div", `${lt}-line-type`).html(u[1])
+ ));
+ super(e, "auto", !1, "bottom-left", ..._);
+ }
+}
+function Gl(...H) {
+ return $e("table", "").child(
+ $e("tbody", "").children(...H)
+ );
+}
+function Yl(H) {
+ return $e("td", "").child(
+ $e("div", `${lt}-border-palette-cell`).child(
+ new Kr(`border-${H}`)
+ ).on("click", () => {
+ this.mode = H;
+ const { mode: k, style: e, color: x } = this;
+ this.change({ mode: k, style: e, color: x });
+ })
+ );
+}
+class $b {
+ constructor() {
+ this.color = "#000", this.style = "thin", this.mode = "all", this.change = () => {
+ }, this.ddColor = new Cf("line-color", this.color), this.ddColor.change = (e) => {
+ this.color = e;
+ }, this.ddType = new Ub(this.style), this.ddType.change = ([e]) => {
+ this.style = e;
+ }, this.el = $e("div", `${lt}-border-palette`);
+ const k = Gl(
+ $e("tr", "").children(
+ $e("td", `${lt}-border-palette-left`).child(
+ Gl(
+ $e("tr", "").children(
+ ...["all", "inside", "horizontal", "vertical", "outside"].map((e) => Yl.call(this, e))
+ ),
+ $e("tr", "").children(
+ ...["left", "top", "right", "bottom", "none"].map((e) => Yl.call(this, e))
+ )
+ )
+ ),
+ $e("td", `${lt}-border-palette-right`).children(
+ $e("div", `${lt}-toolbar-btn`).child(this.ddColor.el),
+ $e("div", `${lt}-toolbar-btn`).child(this.ddType.el)
+ )
+ )
+ );
+ this.el.child(k);
+ }
+}
+class Wb extends qn {
+ constructor() {
+ const k = new Kr("border-all"), e = new $b();
+ e.change = (x) => {
+ this.change(x), this.hide();
+ }, super(k, "auto", !1, "bottom-left", e.el);
+ }
+}
+class Vb extends Qn {
+ constructor() {
+ super("border");
+ }
+ dropdown() {
+ return new Wb();
+ }
+}
+class es extends Rf {
+ element() {
+ return super.element().child(new Kr(this.tag)).on("click", () => this.change(this.tag));
+ }
+ setState(k) {
+ this.el.disabled(k);
+ }
+}
+class Kb extends es {
+ constructor() {
+ super("clearformat");
+ }
+}
+class Gb extends di {
+ constructor() {
+ super("paintformat");
+ }
+ setState() {
+ }
+}
+class Yb extends Qn {
+ constructor(k) {
+ super("color", void 0, k);
+ }
+ dropdown() {
+ const { tag: k, value: e } = this;
+ return new Cf(k, e);
+ }
+}
+class Zb extends Qn {
+ constructor(k) {
+ super("bgcolor", void 0, k);
+ }
+ dropdown() {
+ const { tag: k, value: e } = this;
+ return new Cf(k, e);
+ }
+}
+class Jb extends qn {
+ constructor() {
+ const k = vf.map((e) => $e("div", `${lt}-item`).on("click", () => {
+ this.setTitle(`${e.pt}`), this.change(e);
+ }).child(`${e.pt}`));
+ super("10", "60px", !0, "bottom-left", ...k);
+ }
+}
+let Qb = class extends Qn {
+ constructor() {
+ super("font-size");
+ }
+ getValue(k) {
+ return k.pt;
+ }
+ dropdown() {
+ return new Jb();
+ }
+};
+class qb extends qn {
+ constructor() {
+ const k = Wl.map((e) => $e("div", `${lt}-item`).on("click", () => {
+ this.setTitle(e.title), this.change(e);
+ }).child(e.title));
+ super(Wl[0].title, "160px", !0, "bottom-left", ...k);
+ }
+}
+class eg extends Qn {
+ constructor() {
+ super("font-name");
+ }
+ getValue(k) {
+ return k.key;
+ }
+ dropdown() {
+ return new qb();
+ }
+}
+class tg extends qn {
+ constructor() {
+ let k = Xa.slice(0);
+ k.splice(2, 0, { key: "divider" }), k.splice(8, 0, { key: "divider" }), k = k.map((e) => {
+ const x = $e("div", `${lt}-item`);
+ return e.key === "divider" ? x.addClass("divider") : (x.child(e.title()).on("click", () => {
+ this.setTitle(e.title()), this.change(e);
+ }), e.label && x.child($e("div", "label").html(e.label))), x;
+ }), super("Normal", "220px", !0, "bottom-left", ...k);
+ }
+ setTitle(k) {
+ for (let e = 0; e < Xa.length; e += 1)
+ Xa[e].key === k && this.title.html(Xa[e].title());
+ this.hide();
+ }
+}
+let rg = class extends Qn {
+ constructor() {
+ super("format");
+ }
+ getValue(k) {
+ return k.key;
+ }
+ dropdown() {
+ return new tg();
+ }
+};
+class ng extends qn {
+ constructor() {
+ const k = Tf.map((e) => $e("div", `${lt}-item`).on("click", () => {
+ this.hide(), this.change(e);
+ }).child(e.key));
+ super(new Kr("formula"), "180px", !0, "bottom-left", ...k);
+ }
+}
+class ig extends Qn {
+ constructor() {
+ super("formula");
+ }
+ getValue(k) {
+ return k.key;
+ }
+ dropdown() {
+ return new ng();
+ }
+}
+class ag extends di {
+ constructor() {
+ super("freeze");
+ }
+}
+class og extends di {
+ constructor() {
+ super("merge");
+ }
+ setState(k, e) {
+ this.el.active(k).disabled(e);
+ }
+}
+class sg extends es {
+ constructor() {
+ super("redo", "Ctrl+Y");
+ }
+}
+class fg extends es {
+ constructor() {
+ super("undo", "Ctrl+Z");
+ }
+}
+class ug extends es {
+ constructor() {
+ super("print", "Ctrl+P");
+ }
+}
+class lg extends di {
+ constructor() {
+ super("textwrap");
+ }
+}
+let cg = class extends qn {
+ constructor() {
+ const k = new Kr("ellipsis"), e = $e("div", `${lt}-toolbar-more`);
+ super(k, "auto", !1, "bottom-right", e), this.moreBtns = e, this.contentEl.css("max-width", "420px");
+ }
+};
+class hg extends Qn {
+ constructor() {
+ super("more"), this.el.hide();
+ }
+ dropdown() {
+ return new cg();
+ }
+ show() {
+ this.el.show();
+ }
+ hide() {
+ this.el.hide();
+ }
+}
+function ma() {
+ return $e("div", `${lt}-toolbar-divider`);
+}
+function dg() {
+ this.btns2 = [], this.items.forEach((H) => {
+ if (Array.isArray(H))
+ H.forEach(({ el: k }) => {
+ const e = k.box(), { marginLeft: x, marginRight: _ } = k.computedStyle();
+ this.btns2.push([k, e.width + parseInt(x, 10) + parseInt(_, 10)]);
+ });
+ else {
+ const k = H.box(), { marginLeft: e, marginRight: x } = H.computedStyle();
+ this.btns2.push([H, k.width + parseInt(e, 10) + parseInt(x, 10)]);
+ }
+ });
+}
+function Zl() {
+ const {
+ el: H,
+ btns: k,
+ moreEl: e,
+ btns2: x
+ } = this, { moreBtns: _, contentEl: u } = e.dd;
+ H.css("width", `${this.widthFn() - 60}px`);
+ const m = H.box();
+ let g = 160, b = 12;
+ const w = [], f = [];
+ x.forEach(([y, h], l) => {
+ g += h, l === x.length - 1 || g < m.width ? w.push(y) : (b += h, f.push(y));
+ }), k.html("").children(...w), _.html("").children(...f), u.css("width", `${b}px`), f.length > 0 ? e.show() : e.hide();
+}
+class pg {
+ constructor(k, e, x = !1) {
+ this.data = k, this.change = () => {
+ }, this.widthFn = e, this.isHide = x;
+ const _ = k.defaultStyle();
+ this.items = [
+ [
+ this.undoEl = new fg(),
+ this.redoEl = new sg(),
+ new ug(),
+ this.paintformatEl = new Gb(),
+ this.clearformatEl = new Kb()
+ ],
+ ma(),
+ [
+ this.formatEl = new rg()
+ ],
+ ma(),
+ [
+ this.fontEl = new eg(),
+ this.fontSizeEl = new Qb()
+ ],
+ ma(),
+ [
+ this.boldEl = new Db(),
+ this.italicEl = new Nb(),
+ this.underlineEl = new Bb(),
+ this.strikeEl = new Fb(),
+ this.textColorEl = new Yb(_.color)
+ ],
+ ma(),
+ [
+ this.fillColorEl = new Zb(_.bgcolor),
+ this.borderEl = new Vb(),
+ this.mergeEl = new og()
+ ],
+ ma(),
+ [
+ this.alignEl = new Ab(_.align),
+ this.valignEl = new Mb(_.valign),
+ this.textwrapEl = new lg()
+ ],
+ ma(),
+ [
+ this.freezeEl = new ag(),
+ this.autofilterEl = new Ib(),
+ this.formulaEl = new ig(),
+ this.moreEl = new hg()
+ ]
+ ], this.el = $e("div", `${lt}-toolbar`), this.btns = $e("div", `${lt}-toolbar-btns`), this.items.forEach((u) => {
+ Array.isArray(u) ? u.forEach((m) => {
+ this.btns.child(m.el), m.change = (...g) => {
+ this.change(...g);
+ };
+ }) : this.btns.child(u.el);
+ }), this.el.child(this.btns), x ? this.el.hide() : (this.reset(), setTimeout(() => {
+ dg.call(this), Zl.call(this);
+ }, 0), ln(window, "resize", () => {
+ Zl.call(this);
+ }));
+ }
+ paintformatActive() {
+ return this.paintformatEl.active();
+ }
+ paintformatToggle() {
+ this.paintformatEl.toggle();
+ }
+ trigger(k) {
+ this[`${k}El`].click();
+ }
+ resetData(k) {
+ this.data = k, this.reset();
+ }
+ reset() {
+ if (this.isHide)
+ return;
+ const { data: k } = this, e = k.getSelectedCellStyle();
+ this.undoEl.setState(!k.canUndo()), this.redoEl.setState(!k.canRedo()), this.mergeEl.setState(k.canUnmerge(), !k.selector.multiple()), this.autofilterEl.setState(!k.canAutofilter());
+ const { font: x, format: _ } = e;
+ this.formatEl.setState(_), this.fontEl.setState(x.name), this.fontSizeEl.setState(x.size), this.boldEl.setState(x.bold), this.italicEl.setState(x.italic), this.underlineEl.setState(e.underline), this.strikeEl.setState(e.strike), this.textColorEl.setState(e.color), this.fillColorEl.setState(e.bgcolor), this.alignEl.setState(e.align), this.valignEl.setState(e.valign), this.textwrapEl.setState(e.textwrap), this.freezeEl.setState(k.freezeIsActive());
+ }
+}
+class yg {
+ constructor(k, e, x = "600px") {
+ this.title = k, this.el = $e("div", `${lt}-modal`).css("width", x).children(
+ $e("div", `${lt}-modal-header`).children(
+ new Kr("close").on("click.stop", () => this.hide()),
+ this.title
+ ),
+ $e("div", `${lt}-modal-content`).children(...e)
+ ).hide();
+ }
+ show() {
+ this.dimmer = $e("div", `${lt}-dimmer active`), document.body.appendChild(this.dimmer.el);
+ const { width: k, height: e } = this.el.show().box(), { clientHeight: x, clientWidth: _ } = document.documentElement;
+ this.el.offset({
+ left: (_ - k) / 2,
+ top: (x - e) / 3
+ }), window.xkeydownEsc = (u) => {
+ u.keyCode === 27 && this.hide();
+ }, ln(window, "keydown", window.xkeydownEsc);
+ }
+ hide() {
+ this.el.hide(), document.body.removeChild(this.dimmer.el), Go(window, "keydown", window.xkeydownEsc), delete window.xkeydownEsc;
+ }
+}
+class ba {
+ constructor(k, e) {
+ this.vchange = () => {
+ }, this.el = $e("div", `${lt}-form-input`), this.input = $e("input", "").css("width", k).on("input", (x) => this.vchange(x)).attr("placeholder", e), this.el.child(this.input);
+ }
+ focus() {
+ setTimeout(() => {
+ this.input.el.focus();
+ }, 10);
+ }
+ hint(k) {
+ this.input.attr("placeholder", k);
+ }
+ val(k) {
+ return this.input.val(k);
+ }
+}
+class tf {
+ constructor(k, e, x, _ = (m) => m, u = () => {
+ }) {
+ this.key = k, this.getTitle = _, this.vchange = () => {
+ }, this.el = $e("div", `${lt}-form-select`), this.suggest = new wc(e.map((m) => ({ key: m, title: this.getTitle(m) })), (m) => {
+ this.itemClick(m.key), u(m.key), this.vchange(m.key);
+ }, x, this.el), this.el.children(
+ this.itemEl = $e("div", "input-text").html(this.getTitle(k)),
+ this.suggest.el
+ ).on("click", () => this.show());
+ }
+ show() {
+ this.suggest.search("");
+ }
+ itemClick(k) {
+ this.key = k, this.itemEl.html(this.getTitle(k));
+ }
+ val(k) {
+ return k !== void 0 ? (this.key = k, this.itemEl.html(this.getTitle(k)), this) : this.key;
+ }
+}
+const vg = {
+ number: /(^\d+$)|(^\d+(\.\d{0,4})?$)/,
+ date: /^\d{4}-\d{1,2}-\d{1,2}$/
+};
+class Oi {
+ constructor(k, e, x, _) {
+ this.label = "", this.rule = e, x && (this.label = $e("label", "label").css("width", `${_}px`).html(x)), this.tip = $e("div", "tip").child("tip").hide(), this.input = k, this.input.vchange = () => this.validate(), this.el = $e("div", `${lt}-form-field`).children(this.label, k.el, this.tip);
+ }
+ isShow() {
+ return this.el.css("display") !== "none";
+ }
+ show() {
+ this.el.show();
+ }
+ hide() {
+ return this.el.hide(), this;
+ }
+ val(k) {
+ return this.input.val(k);
+ }
+ hint(k) {
+ this.input.hint(k);
+ }
+ validate() {
+ const {
+ input: k,
+ rule: e,
+ tip: x,
+ el: _
+ } = this, u = k.val();
+ return e.required && /^\s*$/.test(u) ? (x.html(Cr("validation.required")), _.addClass("error"), !1) : (e.type || e.pattern) && !(e.pattern || vg[e.type]).test(u) ? (x.html(Cr("validation.notMatch")), _.addClass("error"), !1) : (_.removeClass("error"), !0);
+ }
+}
+const Jl = 100;
+class mg extends yg {
+ constructor() {
+ const k = new Oi(
+ new tf(
+ "cell",
+ ["cell"],
+ // cell|row|column
+ "100%",
+ (w) => Cr(`dataValidation.modeType.${w}`)
+ ),
+ { required: !0 },
+ `${Cr("dataValidation.range")}:`,
+ Jl
+ ), e = new Oi(
+ new ba("120px", "E3 or E3:F12"),
+ { required: !0, pattern: /^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/ }
+ ), x = new Oi(
+ new tf(
+ "list",
+ ["list", "number", "date", "phone", "email"],
+ "100%",
+ (w) => Cr(`dataValidation.type.${w}`),
+ (w) => this.criteriaSelected(w)
+ ),
+ { required: !0 },
+ `${Cr("dataValidation.criteria")}:`,
+ Jl
+ ), _ = new Oi(
+ new tf(
+ "be",
+ ["be", "nbe", "eq", "neq", "lt", "lte", "gt", "gte"],
+ "160px",
+ (w) => Cr(`dataValidation.operator.${w}`),
+ (w) => this.criteriaOperatorSelected(w)
+ ),
+ { required: !0 }
+ ).hide(), u = new Oi(
+ new ba("70px", "10"),
+ { required: !0 }
+ ).hide(), m = new Oi(
+ new ba("70px", "100"),
+ { required: !0, type: "number" }
+ ).hide(), g = new Oi(
+ new ba("120px", "a,b,c"),
+ { required: !0 }
+ ), b = new Oi(
+ new ba("70px", "10"),
+ { required: !0, type: "number" }
+ ).hide();
+ super(Cr("contextmenu.validation"), [
+ $e("div", `${lt}-form-fields`).children(
+ k.el,
+ e.el
+ ),
+ $e("div", `${lt}-form-fields`).children(
+ x.el,
+ _.el,
+ u.el,
+ m.el,
+ b.el,
+ g.el
+ ),
+ $e("div", `${lt}-buttons`).children(
+ new Li("cancel").on("click", () => this.btnClick("cancel")),
+ new Li("remove").on("click", () => this.btnClick("remove")),
+ new Li("save", "primary").on("click", () => this.btnClick("save"))
+ )
+ ]), this.mf = k, this.rf = e, this.cf = x, this.of = _, this.minvf = u, this.maxvf = m, this.vf = b, this.svf = g, this.change = () => {
+ };
+ }
+ showVf(k) {
+ const e = k === "date" ? "2018-11-12" : "10", { vf: x } = this;
+ x.input.hint(e), x.show();
+ }
+ criteriaSelected(k) {
+ const {
+ of: e,
+ minvf: x,
+ maxvf: _,
+ vf: u,
+ svf: m
+ } = this;
+ k === "date" || k === "number" ? (e.show(), x.rule.type = k, _.rule.type = k, k === "date" ? (x.hint("2018-11-12"), _.hint("2019-11-12")) : (x.hint("10"), _.hint("100")), x.show(), _.show(), u.hide(), m.hide()) : (k === "list" ? m.show() : m.hide(), u.hide(), e.hide(), x.hide(), _.hide());
+ }
+ criteriaOperatorSelected(k) {
+ if (!k)
+ return;
+ const {
+ minvf: e,
+ maxvf: x,
+ vf: _
+ } = this;
+ if (k === "be" || k === "nbe")
+ e.show(), x.show(), _.hide();
+ else {
+ const u = this.cf.val();
+ _.rule.type = u, u === "date" ? _.hint("2018-11-12") : _.hint("10"), _.show(), e.hide(), x.hide();
+ }
+ }
+ btnClick(k) {
+ if (k === "cancel")
+ this.hide();
+ else if (k === "remove")
+ this.change("remove"), this.hide();
+ else if (k === "save") {
+ const e = ["mf", "rf", "cf", "of", "svf", "vf", "minvf", "maxvf"];
+ for (let b = 0; b < e.length; b += 1) {
+ const w = this[e[b]];
+ if (w.isShow() && !w.validate())
+ return;
+ }
+ const x = this.mf.val(), _ = this.rf.val(), u = this.cf.val(), m = this.of.val();
+ let g = this.svf.val();
+ (u === "number" || u === "date") && (m === "be" || m === "nbe" ? g = [this.minvf.val(), this.maxvf.val()] : g = this.vf.val()), this.change(
+ "save",
+ x,
+ _,
+ {
+ type: u,
+ operator: m,
+ required: !1,
+ value: g
+ }
+ ), this.hide();
+ }
+ }
+ // validation: { mode, ref, validator }
+ setValue(k) {
+ if (k) {
+ const {
+ mf: e,
+ rf: x,
+ cf: _,
+ of: u,
+ svf: m,
+ vf: g,
+ minvf: b,
+ maxvf: w
+ } = this, {
+ mode: f,
+ ref: y,
+ validator: h
+ } = k, {
+ type: l,
+ operator: d,
+ value: s
+ } = h || { type: "list" };
+ e.val(f || "cell"), x.val(y), _.val(l), u.val(d), Array.isArray(s) ? (b.val(s[0]), w.val(s[1])) : (m.val(s || ""), g.val(s || "")), this.criteriaSelected(l), this.criteriaOperatorSelected(d);
+ }
+ this.show();
+ }
+}
+function Cc(H) {
+ return $e("div", `${lt}-item ${H}`);
+}
+function Ql(H) {
+ return Cc("state").child(Cr(`sort.${H}`)).on("click.stop", () => this.itemClick(H));
+}
+function bg(H) {
+ const { filterbEl: k, filterValues: e } = this;
+ k.html(""), Object.keys(H).forEach((_, u) => {
+ const m = H[_], g = e.includes(_) ? "checked" : "";
+ k.child($e("div", `${lt}-item state ${g}`).on("click.stop", () => this.filterClick(u, _)).children(_ === "" ? Cr("filter.empty") : _, $e("div", "label").html(`(${m})`)));
+ });
+}
+function ql() {
+ const { filterhEl: H, filterValues: k, values: e } = this;
+ H.html(`${k.length} / ${e.length}`), H.checked(k.length === e.length);
+}
+class gg {
+ constructor() {
+ this.filterbEl = $e("div", `${lt}-body`), this.filterhEl = $e("div", `${lt}-header state`).on("click.stop", () => this.filterClick(0, "all")), this.el = $e("div", `${lt}-sort-filter`).children(
+ this.sortAscEl = Ql.call(this, "asc"),
+ this.sortDescEl = Ql.call(this, "desc"),
+ Cc("divider"),
+ $e("div", `${lt}-filter`).children(
+ this.filterhEl,
+ this.filterbEl
+ ),
+ $e("div", `${lt}-buttons`).children(
+ new Li("cancel").on("click", () => this.btnClick("cancel")),
+ new Li("ok", "primary").on("click", () => this.btnClick("ok"))
+ )
+ ).hide(), this.ci = null, this.sortDesc = null, this.values = null, this.filterValues = [];
+ }
+ btnClick(k) {
+ if (k === "ok") {
+ const { ci: e, sort: x, filterValues: _ } = this;
+ this.ok && this.ok(e, x, "in", _);
+ }
+ this.hide();
+ }
+ itemClick(k) {
+ this.sort = k;
+ const { sortAscEl: e, sortDescEl: x } = this;
+ e.checked(k === "asc"), x.checked(k === "desc");
+ }
+ filterClick(k, e) {
+ const { filterbEl: x, filterValues: _, values: u } = this, m = x.children();
+ e === "all" ? m.length === _.length ? (this.filterValues = [], m.forEach((g) => $e(g).checked(!1))) : (this.filterValues = Array.from(u), m.forEach((g) => $e(g).checked(!0))) : $e(m[k]).toggle("checked") ? _.push(e) : _.splice(_.findIndex((b) => b === e), 1), ql.call(this);
+ }
+ // v: autoFilter
+ // items: {value: cnt}
+ // sort { ci, order }
+ set(k, e, x, _) {
+ this.ci = k;
+ const { sortAscEl: u, sortDescEl: m } = this;
+ _ !== null ? (this.sort = _.order, u.checked(_.asc()), m.checked(_.desc())) : (this.sortDesc = null, u.checked(!1), m.checked(!1)), this.values = Object.keys(e), this.filterValues = x ? Array.from(x.value) : Object.keys(e), bg.call(this, e, x), ql.call(this);
+ }
+ setOffset(k) {
+ this.el.offset(k).show();
+ let e = 1;
+ Va(this.el, () => {
+ e <= 0 && this.hide(), e -= 1;
+ });
+ }
+ show() {
+ this.el.show();
+ }
+ hide() {
+ this.el.hide(), _a(this.el);
+ }
+}
+function Pc(H, k) {
+ const e = $e("div", `${lt}-toast`), x = $e("div", `${lt}-dimmer active`), _ = () => {
+ document.body.removeChild(e.el), document.body.removeChild(x.el);
+ };
+ e.children(
+ $e("div", `${lt}-toast-header`).children(
+ new Kr("close").on("click.stop", () => _()),
+ H
+ ),
+ $e("div", `${lt}-toast-content`).html(k)
+ ), document.body.appendChild(e.el), document.body.appendChild(x.el);
+ const { width: u, height: m } = e.box(), { clientHeight: g, clientWidth: b } = document.documentElement;
+ e.offset({
+ left: (b - u) / 2,
+ top: (g - m) / 3
+ });
+}
+function rf(H, k) {
+ let e;
+ return (...x) => {
+ const _ = this, u = x;
+ e || (e = setTimeout(() => {
+ e = null, H.apply(_, u);
+ }, k));
+ };
+}
+function _g() {
+ const {
+ data: H,
+ verticalScrollbar: k,
+ horizontalScrollbar: e
+ } = this, {
+ l: x,
+ t: _,
+ left: u,
+ top: m,
+ width: g,
+ height: b
+ } = H.getSelectedRect(), w = this.getTableOffset();
+ if (Math.abs(u) + g > w.width)
+ e.move({ left: x + g - w.width });
+ else {
+ const f = H.freezeTotalWidth();
+ u < f && e.move({ left: x - 1 - f });
+ }
+ if (Math.abs(m) + b > w.height)
+ k.move({ top: _ + b - w.height - 1 });
+ else {
+ const f = H.freezeTotalHeight();
+ m < f && k.move({ top: _ - 1 - f });
+ }
+}
+function zi(H, k, e, x = !0, _ = !1) {
+ if (k === -1 && e === -1)
+ return;
+ const {
+ table: u,
+ selector: m,
+ toolbar: g,
+ data: b,
+ contextMenu: w
+ } = this;
+ w.setMode(k === -1 || e === -1 ? "row-col" : "range");
+ const f = b.getCell(k, e);
+ H ? (m.setEnd(k, e, _), this.trigger("cells-selected", f, m.range)) : (m.set(k, e, x), this.trigger("cell-selected", f, k, e)), g.reset(), u.render();
+}
+function Zn(H, k) {
+ const {
+ selector: e,
+ data: x
+ } = this, { rows: _, cols: u } = x;
+ let [m, g] = e.indexes;
+ const { eri: b, eci: w } = e.range;
+ H && ([m, g] = e.moveIndexes), k === "left" ? g > 0 && (g -= 1) : k === "right" ? (w !== g && (g = w), g < u.len - 1 && (g += 1)) : k === "up" ? m > 0 && (m -= 1) : k === "down" ? (b !== m && (m = b), m < _.len - 1 && (m += 1)) : k === "row-first" ? g = 0 : k === "row-last" ? g = u.len - 1 : k === "col-first" ? m = 0 : k === "col-last" && (m = _.len - 1), H && (e.moveIndexes = [m, g]), zi.call(this, H, m, g), _g.call(this);
+}
+function wg(H) {
+ if (H.buttons !== 0 || H.target.className === `${lt}-resizer-hover`)
+ return;
+ const { offsetX: k, offsetY: e } = H, {
+ rowResizer: x,
+ colResizer: _,
+ tableEl: u,
+ data: m
+ } = this, { rows: g, cols: b } = m;
+ if (k > b.indexWidth && e > g.height) {
+ x.hide(), _.hide();
+ return;
+ }
+ const w = u.box(), f = m.getCellRectByXY(H.offsetX, H.offsetY);
+ f.ri >= 0 && f.ci === -1 ? (f.width = b.indexWidth, x.show(f, {
+ width: w.width
+ }), g.isHide(f.ri - 1) ? x.showUnhide(f.ri) : x.hideUnhide()) : x.hide(), f.ri === -1 && f.ci >= 0 ? (f.height = g.height, _.show(f, {
+ height: w.height
+ }), b.isHide(f.ci - 1) ? _.showUnhide(f.ci) : _.hideUnhide()) : _.hide();
+}
+function xg(H) {
+ const { verticalScrollbar: k, horizontalScrollbar: e, data: x } = this, { top: _ } = k.scroll(), { left: u } = e.scroll(), { rows: m, cols: g } = x, { deltaY: b, deltaX: w } = H, f = (v, c) => {
+ let a = v, r = 0;
+ do
+ r = c(a), a += 1;
+ while (r <= 0);
+ return r;
+ }, y = (v) => {
+ if (v > 0) {
+ const c = x.scroll.ri + 1;
+ if (c < m.len) {
+ const a = f(c, (r) => m.getHeight(r));
+ k.move({ top: _ + a - 1 });
+ }
+ } else {
+ const c = x.scroll.ri - 1;
+ if (c >= 0) {
+ const a = f(c, (r) => m.getHeight(r));
+ k.move({ top: c === 0 ? 0 : _ - a });
+ }
+ }
+ }, h = (v) => {
+ if (v > 0) {
+ const c = x.scroll.ci + 1;
+ if (c < g.len) {
+ const a = f(c, (r) => g.getWidth(r));
+ e.move({ left: u + a - 1 });
+ }
+ } else {
+ const c = x.scroll.ci - 1;
+ if (c >= 0) {
+ const a = f(c, (r) => g.getWidth(r));
+ e.move({ left: c === 0 ? 0 : u - a });
+ }
+ }
+ }, l = Math.abs(b), d = Math.abs(w), s = Math.max(l, d);
+ /Firefox/i.test(window.navigator.userAgent) && rf(y(H.detail), 50), s === d && rf(h(w), 50), s === l && rf(y(b), 50);
+}
+function Sg(H, k) {
+ const { verticalScrollbar: e, horizontalScrollbar: x } = this, { top: _ } = e.scroll(), { left: u } = x.scroll();
+ H === "left" || H === "right" ? x.move({ left: u - k }) : (H === "up" || H === "down") && e.move({ top: _ - k });
+}
+function Pf() {
+ const { data: H, verticalScrollbar: k } = this, { height: e } = this.getTableOffset(), x = H.exceptRowTotalHeight(0, -1);
+ k.set(e, H.rows.totalHeight() - x);
+}
+function Af() {
+ const { data: H, horizontalScrollbar: k } = this, { width: e } = this.getTableOffset();
+ H && k.set(e, H.cols.totalWidth());
+}
+function kg() {
+ const {
+ selector: H,
+ data: k,
+ editor: e
+ } = this, [x, _] = k.freeze;
+ if (x > 0 || _ > 0) {
+ const u = k.freezeTotalWidth(), m = k.freezeTotalHeight();
+ e.setFreezeLengths(u, m);
+ }
+ H.resetAreaOffset();
+}
+function un() {
+ const {
+ tableEl: H,
+ overlayerEl: k,
+ overlayerCEl: e,
+ table: x,
+ toolbar: _,
+ selector: u,
+ el: m
+ } = this, g = this.getTableOffset(), b = this.getRect();
+ H.attr(b), k.offset(b), e.offset(g), m.css("width", `${b.width}px`), Pf.call(this), Af.call(this), kg.call(this), x.render(), _.reset(), u.reset();
+}
+function Ka() {
+ const { data: H, selector: k } = this;
+ H.clearClipboard(), k.hideClipboard();
+}
+function bf() {
+ const { data: H, selector: k } = this;
+ H.copy(), H.copyToSystemClipboard(), k.showClipboard();
+}
+function ec() {
+ const { data: H, selector: k } = this;
+ H.cut(), k.showClipboard();
+}
+function Ua(H, k) {
+ const { data: e } = this;
+ if (e.settings.mode !== "read") {
+ if (e.paste(H, (x) => Pc("Tip", x)))
+ un.call(this);
+ else if (k) {
+ const x = k.clipboardData.getData("text/plain");
+ this.data.pasteFromText(x), un.call(this);
+ }
+ }
+}
+function Og() {
+ this.data.hideRowsOrCols(), un.call(this);
+}
+function tc(H, k) {
+ this.data.unhideRowsOrCols(H, k), un.call(this);
+}
+function Eg() {
+ const { data: H } = this;
+ H.autofilter(), un.call(this);
+}
+function Tg() {
+ const { toolbar: H } = this;
+ H.paintformatActive() && (Ua.call(this, "format"), Ka.call(this), H.paintformatToggle());
+}
+function rc(H) {
+ const {
+ selector: k,
+ data: e,
+ table: x,
+ sortFilter: _
+ } = this, { offsetX: u, offsetY: m } = H, g = H.target.className === `${lt}-selector-corner`, b = e.getCellRectByXY(u, m), {
+ left: w,
+ top: f,
+ width: y,
+ height: h
+ } = b;
+ let { ri: l, ci: d } = b;
+ const { autoFilter: s } = e;
+ if (s.includes(l, d) && w + y - 20 < u && f + h - 20 < m) {
+ const v = s.items(d, (c, a) => e.rows.getCell(c, a));
+ _.hide(), _.set(d, v, s.getFilter(d), s.getSort(d)), _.setOffset({ left: w, top: f + h + 2 });
+ return;
+ }
+ H.shiftKey || (g ? k.showAutofill(l, d) : zi.call(this, !1, l, d), vc(window, (v) => {
+ ({ ri: l, ci: d } = e.getCellRectByXY(v.offsetX, v.offsetY)), g ? k.showAutofill(l, d) : v.buttons === 1 && !v.shiftKey && zi.call(this, !0, l, d, !0, !0);
+ }, () => {
+ g && k.arange && e.settings.mode !== "read" && e.autofill(k.arange, "all", (v) => Pc("Tip", v)) && x.render(), k.hideAutofill(), Tg.call(this);
+ })), !g && H.buttons === 1 && H.shiftKey && zi.call(this, !0, l, d);
+}
+function Ga() {
+ const { editor: H, data: k } = this, e = k.getSelectedRect(), x = this.getTableOffset();
+ let _ = "top";
+ e.top > x.height / 2 && (_ = "bottom"), H.setOffset(e, _);
+}
+function $a() {
+ const { editor: H, data: k } = this;
+ k.settings.mode !== "read" && (Ga.call(this), H.setCell(k.getSelectedCell(), k.getSelectedValidator()), Ka.call(this));
+}
+function Rg(H) {
+ const { data: k, table: e, selector: x } = this;
+ k.scrolly(H, () => {
+ x.resetBRLAreaOffset(), Ga.call(this), e.render();
+ });
+}
+function Cg(H) {
+ const { data: k, table: e, selector: x } = this;
+ k.scrollx(H, () => {
+ x.resetBRTAreaOffset(), Ga.call(this), e.render();
+ });
+}
+function Pg(H, k) {
+ const { ri: e } = H, { table: x, selector: _, data: u } = this;
+ u.rows.setHeight(e, k), x.render(), _.resetAreaOffset(), Pf.call(this), Ga.call(this);
+}
+function Ag(H, k) {
+ const { ci: e } = H, { table: x, selector: _, data: u } = this;
+ u.cols.setWidth(e, k), x.render(), _.resetAreaOffset(), Af.call(this), Ga.call(this);
+}
+function nf(H, k = "finished") {
+ const { data: e, table: x } = this;
+ if (e.settings.mode === "read")
+ return;
+ e.setSelectedCellText(H, k);
+ const { ri: _, ci: u } = e.selector;
+ k === "finished" ? x.render() : this.trigger("cell-edited", H, _, u);
+}
+function Uo(H) {
+ const { data: k } = this;
+ k.settings.mode !== "read" && (H === "insert-row" ? k.insert("row") : H === "delete-row" ? k.delete("row") : H === "insert-column" ? k.insert("column") : H === "delete-column" ? k.delete("column") : H === "delete-cell" ? k.deleteCell() : H === "delete-cell-format" ? k.deleteCell("format") : H === "delete-cell-text" ? k.deleteCell("text") : H === "cell-printable" ? k.setSelectedCellAttr("printable", !0) : H === "cell-non-printable" ? k.setSelectedCellAttr("printable", !1) : H === "cell-editable" ? k.setSelectedCellAttr("editable", !0) : H === "cell-non-editable" && k.setSelectedCellAttr("editable", !1), Ka.call(this), un.call(this));
+}
+function Mg(H, k) {
+ const { data: e } = this;
+ if (H === "undo")
+ this.undo();
+ else if (H === "redo")
+ this.redo();
+ else if (H === "print")
+ this.print.preview();
+ else if (H === "paintformat")
+ k === !0 ? bf.call(this) : Ka.call(this);
+ else if (H === "clearformat")
+ Uo.call(this, "delete-cell-format");
+ else if (H !== "link") {
+ if (H !== "chart")
+ if (H === "autofilter")
+ Eg.call(this);
+ else if (H === "freeze")
+ if (k) {
+ const { ri: x, ci: _ } = e.selector;
+ this.freeze(x, _);
+ } else
+ this.freeze(0, 0);
+ else
+ e.setSelectedCellAttr(H, k), H === "formula" && !e.selector.multiple() && $a.call(this), un.call(this);
+ }
+}
+function Ig(H, k, e, x) {
+ this.data.setAutoFilter(H, k, e, x), un.call(this);
+}
+function Dg() {
+ const {
+ selector: H,
+ overlayerEl: k,
+ rowResizer: e,
+ colResizer: x,
+ verticalScrollbar: _,
+ horizontalScrollbar: u,
+ editor: m,
+ contextMenu: g,
+ toolbar: b,
+ modalValidation: w,
+ sortFilter: f
+ } = this;
+ k.on("mousemove", (y) => {
+ wg.call(this, y);
+ }).on("mousedown", (y) => {
+ m.clear(), g.hide(), y.buttons === 2 ? (this.data.xyInSelectedRect(y.offsetX, y.offsetY) || rc.call(this, y), g.setPosition(y.offsetX, y.offsetY), y.stopPropagation()) : y.detail === 2 ? $a.call(this) : rc.call(this, y);
+ }).on("mousewheel.stop", (y) => {
+ xg.call(this, y);
+ }).on("mouseout", (y) => {
+ const { offsetX: h, offsetY: l } = y;
+ l <= 0 && x.hide(), h <= 0 && e.hide();
+ }), H.inputChange = (y) => {
+ nf.call(this, y, "input"), $a.call(this);
+ }, Hm(k.el, {
+ move: (y, h) => {
+ Sg.call(this, y, h);
+ }
+ }), b.change = (y, h) => Mg.call(this, y, h), f.ok = (y, h, l, d) => Ig.call(this, y, h, l, d), e.finishedFn = (y, h) => {
+ Pg.call(this, y, h);
+ }, x.finishedFn = (y, h) => {
+ Ag.call(this, y, h);
+ }, e.unhideFn = (y) => {
+ tc.call(this, "row", y);
+ }, x.unhideFn = (y) => {
+ tc.call(this, "col", y);
+ }, _.moveFn = (y, h) => {
+ Rg.call(this, y, h);
+ }, u.moveFn = (y, h) => {
+ Cg.call(this, y, h);
+ }, m.change = (y, h) => {
+ nf.call(this, h, y);
+ }, w.change = (y, ...h) => {
+ y === "save" ? this.data.addValidation(...h) : this.data.removeValidation();
+ }, g.itemClick = (y) => {
+ y === "validation" ? w.setValue(this.data.getSelectedValidation()) : y === "copy" ? bf.call(this) : y === "cut" ? ec.call(this) : y === "paste" ? Ua.call(this, "all") : y === "paste-value" ? Ua.call(this, "text") : y === "paste-format" ? Ua.call(this, "format") : y === "hide" ? Og.call(this) : Uo.call(this, y);
+ }, ln(window, "resize", () => {
+ this.reload();
+ }), ln(window, "click", (y) => {
+ this.focusing = k.contains(y.target);
+ }), ln(window, "paste", (y) => {
+ this.focusing && (Ua.call(this, "all", y), y.preventDefault());
+ }), ln(window, "keydown", (y) => {
+ if (!this.focusing)
+ return;
+ const h = y.keyCode || y.which, {
+ key: l,
+ ctrlKey: d,
+ shiftKey: s,
+ metaKey: v
+ } = y;
+ if (d || v)
+ switch (h) {
+ case 90:
+ this.undo(), y.preventDefault();
+ break;
+ case 89:
+ this.redo(), y.preventDefault();
+ break;
+ case 67:
+ bf.call(this), y.preventDefault();
+ break;
+ case 88:
+ ec.call(this), y.preventDefault();
+ break;
+ case 85:
+ b.trigger("underline"), y.preventDefault();
+ break;
+ case 86:
+ break;
+ case 37:
+ Zn.call(this, s, "row-first"), y.preventDefault();
+ break;
+ case 38:
+ Zn.call(this, s, "col-first"), y.preventDefault();
+ break;
+ case 39:
+ Zn.call(this, s, "row-last"), y.preventDefault();
+ break;
+ case 40:
+ Zn.call(this, s, "col-last"), y.preventDefault();
+ break;
+ case 32:
+ zi.call(this, !1, -1, this.data.selector.ci, !1), y.preventDefault();
+ break;
+ case 66:
+ b.trigger("bold");
+ break;
+ case 73:
+ b.trigger("italic");
+ break;
+ }
+ else {
+ switch (h) {
+ case 32:
+ s && zi.call(this, !1, this.data.selector.ri, -1, !1);
+ break;
+ case 27:
+ g.hide(), Ka.call(this);
+ break;
+ case 37:
+ Zn.call(this, s, "left"), y.preventDefault();
+ break;
+ case 38:
+ Zn.call(this, s, "up"), y.preventDefault();
+ break;
+ case 39:
+ Zn.call(this, s, "right"), y.preventDefault();
+ break;
+ case 40:
+ Zn.call(this, s, "down"), y.preventDefault();
+ break;
+ case 9:
+ m.clear(), Zn.call(this, !1, s ? "left" : "right"), y.preventDefault();
+ break;
+ case 13:
+ m.clear(), Zn.call(this, !1, s ? "up" : "down"), y.preventDefault();
+ break;
+ case 8:
+ Uo.call(this, "delete-cell-text"), y.preventDefault();
+ break;
+ }
+ l === "Delete" ? (Uo.call(this, "delete-cell-text"), y.preventDefault()) : h >= 65 && h <= 90 || h >= 48 && h <= 57 || h >= 96 && h <= 105 || y.key === "=" ? (nf.call(this, y.key, "input"), $a.call(this)) : h === 113 && $a.call(this);
+ }
+ });
+}
+class Ng {
+ constructor(k, e) {
+ this.eventMap = Xm();
+ const { view: x, showToolbar: _, showContextmenu: u } = e.settings;
+ this.el = $e("div", `${lt}-sheet`), this.toolbar = new pg(e, x.width, !_), this.print = new kb(e), k.children(this.toolbar.el, this.el, this.print.el), this.data = e, this.tableEl = $e("canvas", `${lt}-table`), this.rowResizer = new jl(!1, e.rows.height), this.colResizer = new jl(!0, e.cols.minWidth), this.verticalScrollbar = new Ll(!0), this.horizontalScrollbar = new Ll(!1), this.editor = new ob(
+ db,
+ () => this.getTableOffset(),
+ e.rows.height
+ ), this.modalValidation = new mg(), this.contextMenu = new Rb(() => this.getRect(), !u), this.selector = new Wm(e), this.overlayerCEl = $e("div", `${lt}-overlayer-content`).children(
+ this.editor.el,
+ this.selector.el
+ ), this.overlayerEl = $e("div", `${lt}-overlayer`).child(this.overlayerCEl), this.sortFilter = new gg(), this.el.children(
+ this.tableEl,
+ this.overlayerEl.el,
+ this.rowResizer.el,
+ this.colResizer.el,
+ this.verticalScrollbar.el,
+ this.horizontalScrollbar.el,
+ this.contextMenu.el,
+ this.modalValidation.el,
+ this.sortFilter.el
+ ), this.table = new wb(this.tableEl.el, e), Dg.call(this), un.call(this), zi.call(this, !1, 0, 0);
+ }
+ on(k, e) {
+ return this.eventMap.on(k, e), this;
+ }
+ trigger(k, ...e) {
+ const { eventMap: x } = this;
+ x.fire(k, e);
+ }
+ resetData(k) {
+ this.editor.clear(), this.data = k, Pf.call(this), Af.call(this), this.toolbar.resetData(k), this.print.resetData(k), this.selector.resetData(k), this.table.resetData(k);
+ }
+ loadData(k) {
+ return this.data.setData(k), un.call(this), this;
+ }
+ // freeze rows or cols
+ freeze(k, e) {
+ const { data: x } = this;
+ return x.setFreeze(k, e), un.call(this), this;
+ }
+ undo() {
+ this.data.undo(), un.call(this);
+ }
+ redo() {
+ this.data.redo(), un.call(this);
+ }
+ reload() {
+ return un.call(this), this;
+ }
+ getRect() {
+ const { data: k } = this;
+ return { width: k.viewWidth(), height: k.viewHeight() };
+ }
+ getTableOffset() {
+ const { rows: k, cols: e } = this.data, { width: x, height: _ } = this.getRect();
+ return {
+ width: x - e.indexWidth,
+ height: _ - k.height,
+ left: e.indexWidth,
+ top: k.height
+ };
+ }
+}
+class Fg extends qn {
+ constructor(k) {
+ const e = new Kr("ellipsis");
+ super(e, "auto", !1, "top-left"), this.contentClick = k;
+ }
+ reset(k) {
+ const e = k.map((x, _) => $e("div", `${lt}-item`).css("width", "150px").css("font-weight", "normal").on("click", () => {
+ this.contentClick(_), this.hide();
+ }).child(x));
+ this.setContentChildren(...e);
+ }
+ setTitle() {
+ }
+}
+const Bg = [
+ { key: "delete", title: Jt("contextmenu.deleteSheet") }
+];
+function jg(H) {
+ return $e("div", `${lt}-item`).child(H.title()).on("click", () => {
+ this.itemClick(H.key), this.hide();
+ });
+}
+function Lg() {
+ return Bg.map((H) => jg.call(this, H));
+}
+class zg {
+ constructor() {
+ this.el = $e("div", `${lt}-contextmenu`).css("width", "160px").children(...Lg.call(this)).hide(), this.itemClick = () => {
+ };
+ }
+ hide() {
+ const { el: k } = this;
+ k.hide(), _a(k);
+ }
+ setOffset(k) {
+ const { el: e } = this;
+ e.offset(k), e.show(), Va(e);
+ }
+}
+class Hg {
+ constructor(k = () => {
+ }, e = () => {
+ }, x = () => {
+ }, _ = () => {
+ }) {
+ this.swapFunc = e, this.updateFunc = _, this.dataNames = [], this.activeEl = null, this.deleteEl = null, this.items = [], this.moreEl = new Fg((u) => {
+ this.clickSwap2(this.items[u]);
+ }), this.contextMenu = new zg(), this.contextMenu.itemClick = x, this.el = $e("div", `${lt}-bottombar`).children(
+ this.contextMenu.el,
+ this.menuEl = $e("ul", `${lt}-menu`).child(
+ $e("li", "").children(
+ new Kr("add").on("click", () => {
+ k();
+ }),
+ $e("span", "").child(this.moreEl)
+ )
+ )
+ );
+ }
+ addItem(k, e) {
+ this.dataNames.push(k);
+ const x = $e("li", e ? "active" : "").child(k);
+ x.on("click", () => {
+ this.clickSwap2(x);
+ }).on("contextmenu", (_) => {
+ const { offsetLeft: u, offsetHeight: m } = _.target;
+ this.contextMenu.setOffset({ left: u, bottom: m + 1 }), this.deleteEl = x;
+ }).on("dblclick", () => {
+ const _ = x.html(), u = new ba("auto", "");
+ u.val(_), u.input.on("blur", ({ target: m }) => {
+ const { value: g } = m, b = this.dataNames.findIndex((w) => w === _);
+ this.renameItem(b, g);
+ }), x.html("").child(u.el), u.focus();
+ }), e && this.clickSwap(x), this.items.push(x), this.menuEl.child(x), this.moreEl.reset(this.dataNames);
+ }
+ renameItem(k, e) {
+ this.dataNames.splice(k, 1, e), this.moreEl.reset(this.dataNames), this.items[k].html("").child(e), this.updateFunc(k, e);
+ }
+ clear() {
+ this.items.forEach((k) => {
+ this.menuEl.removeChild(k.el);
+ }), this.items = [], this.dataNames = [], this.moreEl.reset(this.dataNames);
+ }
+ deleteItem() {
+ const { activeEl: k, deleteEl: e } = this;
+ if (this.items.length > 1) {
+ const x = this.items.findIndex((_) => _ === e);
+ if (this.items.splice(x, 1), this.dataNames.splice(x, 1), this.menuEl.removeChild(e.el), this.moreEl.reset(this.dataNames), k === e) {
+ const [_] = this.items;
+ return this.activeEl = _, this.activeEl.toggle(), [x, 0];
+ }
+ return [x, -1];
+ }
+ return [-1];
+ }
+ clickSwap2(k) {
+ const e = this.items.findIndex((x) => x === k);
+ this.clickSwap(k), this.activeEl.toggle(), this.swapFunc(e);
+ }
+ clickSwap(k) {
+ this.activeEl !== null && this.activeEl.toggle(), this.activeEl = k;
+ }
+}
+class Ac {
+ constructor(k, e = {}) {
+ let x = k;
+ this.options = Qs({ showBottomBar: !0 }, e), this.sheetIndex = 1, this.datas = [], typeof k == "string" && (x = document.querySelector(k)), this.bottombar = this.options.showBottomBar ? new Hg(() => {
+ const u = this.addSheet();
+ this.sheet.resetData(u);
+ }, (u) => {
+ const m = this.datas[u];
+ this.sheet.resetData(m);
+ }, () => {
+ this.deleteSheet();
+ }, (u, m) => {
+ this.datas[u].name = m;
+ }) : null, this.data = this.addSheet();
+ const _ = $e("div", `${lt}`).on("contextmenu", (u) => u.preventDefault());
+ x.appendChild(_.el), this.sheet = new Ng(_, this.data), this.bottombar !== null && _.child(this.bottombar.el);
+ }
+ addSheet(k, e = !0) {
+ const x = k || `sheet${this.sheetIndex}`, _ = new zm(x, this.options);
+ return _.change = (...u) => {
+ this.sheet.trigger("change", ...u);
+ }, this.datas.push(_), this.bottombar !== null && this.bottombar.addItem(x, e), this.sheetIndex += 1, _;
+ }
+ deleteSheet() {
+ if (this.bottombar === null)
+ return;
+ const [k, e] = this.bottombar.deleteItem();
+ k >= 0 && (this.datas.splice(k, 1), e >= 0 && this.sheet.resetData(this.datas[e]));
+ }
+ loadData(k) {
+ const e = Array.isArray(k) ? k : [k];
+ if (this.bottombar !== null && this.bottombar.clear(), this.datas = [], e.length > 0)
+ for (let x = 0; x < e.length; x += 1) {
+ const _ = e[x], u = this.addSheet(_.name, x === 0);
+ u.setData(_), x === 0 && this.sheet.resetData(u);
+ }
+ return this;
+ }
+ getData() {
+ return this.datas.map((k) => k.getData());
+ }
+ cellText(k, e, x, _ = 0) {
+ return this.datas[_].setCellText(k, e, x, "finished"), this;
+ }
+ cell(k, e, x = 0) {
+ return this.datas[x].getCell(k, e);
+ }
+ cellStyle(k, e, x = 0) {
+ return this.datas[x].getCellStyle(k, e);
+ }
+ reRender() {
+ return this.sheet.table.render(), this;
+ }
+ on(k, e) {
+ return this.sheet.on(k, e), this;
+ }
+ validate() {
+ const { validations: k } = this.data;
+ return k.errors.size <= 0;
+ }
+ change(k) {
+ return this.sheet.on("change", k), this;
+ }
+ static locale(k, e) {
+ pc(k, e);
+ }
+}
+const Xg = (H, k = {}) => new Ac(H, k);
+window && (window.x_spreadsheet = Xg, window.x_spreadsheet.locale = (H, k) => pc(H, k));
+var Wt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
+function zo(H) {
+ throw new Error('Could not dynamically require "' + H + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
+}
+var gf = {}, Ug = {
+ get exports() {
+ return gf;
+ },
+ set exports(H) {
+ gf = H;
+ }
+};
+(function(H, k) {
+ (function(e) {
+ H.exports = e();
+ })(function() {
+ return function() {
+ function e(x, _, u) {
+ function m(w, f) {
+ if (!_[w]) {
+ if (!x[w]) {
+ var y = typeof zo == "function" && zo;
+ if (!f && y)
+ return y(w, !0);
+ if (g)
+ return g(w, !0);
+ var h = new Error("Cannot find module '" + w + "'");
+ throw h.code = "MODULE_NOT_FOUND", h;
+ }
+ var l = _[w] = { exports: {} };
+ x[w][0].call(l.exports, function(d) {
+ var s = x[w][1][d];
+ return m(s || d);
+ }, l, l.exports, e, x, _, u);
+ }
+ return _[w].exports;
+ }
+ for (var g = typeof zo == "function" && zo, b = 0; b < u.length; b++)
+ m(u[b]);
+ return m;
+ }
+ return e;
+ }()({ 1: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n, o, p, O, P, F) {
+ try {
+ var z = i[P](F), N = z.value;
+ } catch (M) {
+ o(M);
+ return;
+ }
+ z.done ? n(N) : Promise.resolve(N).then(p, O);
+ }
+ function g(i) {
+ return function() {
+ var n = this, o = arguments;
+ return new Promise(function(p, O) {
+ var P = i.apply(n, o);
+ function F(N) {
+ m(P, p, O, F, z, "next", N);
+ }
+ function z(N) {
+ m(P, p, O, F, z, "throw", N);
+ }
+ F(void 0);
+ });
+ };
+ }
+ function b(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function w(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function f(i, n, o) {
+ return n && w(i.prototype, n), o && w(i, o), i;
+ }
+ var y = e("fs"), h = e("fast-csv"), l = e("dayjs/plugin/customParseFormat"), d = e("dayjs/plugin/utc"), s = e("dayjs").extend(l).extend(d), v = e("../utils/stream-buf"), c = e("../utils/utils"), a = c.fs.exists, r = {
+ true: !0,
+ false: !1,
+ "#N/A": {
+ error: "#N/A"
+ },
+ "#REF!": {
+ error: "#REF!"
+ },
+ "#NAME?": {
+ error: "#NAME?"
+ },
+ "#DIV/0!": {
+ error: "#DIV/0!"
+ },
+ "#NULL!": {
+ error: "#NULL!"
+ },
+ "#VALUE!": {
+ error: "#VALUE!"
+ },
+ "#NUM!": {
+ error: "#NUM!"
+ }
+ }, t = /* @__PURE__ */ function() {
+ function i(n) {
+ b(this, i), this.workbook = n, this.worksheet = null;
+ }
+ return f(i, [{
+ key: "readFile",
+ value: function() {
+ var n = g(/* @__PURE__ */ regeneratorRuntime.mark(function p(O, P) {
+ var F, z;
+ return regeneratorRuntime.wrap(function(M) {
+ for (; ; )
+ switch (M.prev = M.next) {
+ case 0:
+ return P = P || {}, M.next = 3, a(O);
+ case 3:
+ if (M.sent) {
+ M.next = 5;
+ break;
+ }
+ throw new Error("File not found: ".concat(O));
+ case 5:
+ return F = y.createReadStream(O), M.next = 8, this.read(F, P);
+ case 8:
+ return z = M.sent, F.close(), M.abrupt("return", z);
+ case 11:
+ case "end":
+ return M.stop();
+ }
+ }, p, this);
+ }));
+ function o(p, O) {
+ return n.apply(this, arguments);
+ }
+ return o;
+ }()
+ }, {
+ key: "read",
+ value: function(o, p) {
+ var O = this;
+ return p = p || {}, new Promise(function(P, F) {
+ var z = O.workbook.addWorksheet(p.sheetName), N = p.dateFormats || ["YYYY-MM-DD[T]HH:mm:ssZ", "YYYY-MM-DD[T]HH:mm:ss", "MM-DD-YYYY", "YYYY-MM-DD"], M = p.map || function(R) {
+ if (R === "")
+ return null;
+ var C = Number(R);
+ if (!Number.isNaN(C) && C !== 1 / 0)
+ return C;
+ var E = N.reduce(function(L, $) {
+ if (L)
+ return L;
+ var W = s(R, $, !0);
+ return W.isValid() ? W : null;
+ }, null);
+ if (E)
+ return new Date(E.valueOf());
+ var A = r[R];
+ return A !== void 0 ? A : R;
+ }, I = h.parse(p.parserOptions).on("data", function(R) {
+ z.addRow(R.map(M));
+ }).on("end", function() {
+ I.emit("worksheet", z);
+ });
+ I.on("worksheet", P).on("error", F), o.pipe(I);
+ });
+ }
+ /**
+ * @deprecated since version 4.0. You should use `CSV#read` instead. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md
+ */
+ }, {
+ key: "createInputStream",
+ value: function() {
+ throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md");
+ }
+ }, {
+ key: "write",
+ value: function(o, p) {
+ var O = this;
+ return new Promise(function(P, F) {
+ p = p || {};
+ var z = O.workbook.getWorksheet(p.sheetName || p.sheetId), N = h.format(p.formatterOptions);
+ o.on("finish", function() {
+ P();
+ }), N.on("error", F), N.pipe(o);
+ var M = p, I = M.dateFormat, R = M.dateUTC, C = p.map || function(L) {
+ if (L) {
+ if (L.text || L.hyperlink)
+ return L.hyperlink || L.text || "";
+ if (L.formula || L.result)
+ return L.result || "";
+ if (L instanceof Date)
+ return I ? R ? s.utc(L).format(I) : s(L).format(I) : R ? s.utc(L).format() : s(L).format();
+ if (L.error)
+ return L.error;
+ if (u(L) === "object")
+ return JSON.stringify(L);
+ }
+ return L;
+ }, E = p.includeEmptyRows === void 0 || p.includeEmptyRows, A = 1;
+ z && z.eachRow(function(L, $) {
+ if (E)
+ for (; A++ < $ - 1; )
+ N.write([]);
+ var W = L.values;
+ W.shift(), N.write(W.map(C)), A = $;
+ }), N.end();
+ });
+ }
+ }, {
+ key: "writeFile",
+ value: function(o, p) {
+ p = p || {};
+ var O = {
+ encoding: p.encoding || "utf8"
+ }, P = y.createWriteStream(o, O);
+ return this.write(P, p);
+ }
+ }, {
+ key: "writeBuffer",
+ value: function() {
+ var n = g(/* @__PURE__ */ regeneratorRuntime.mark(function p(O) {
+ var P;
+ return regeneratorRuntime.wrap(function(z) {
+ for (; ; )
+ switch (z.prev = z.next) {
+ case 0:
+ return P = new v(), z.next = 3, this.write(P, O);
+ case 3:
+ return z.abrupt("return", P.read());
+ case 4:
+ case "end":
+ return z.stop();
+ }
+ }, p, this);
+ }));
+ function o(p) {
+ return n.apply(this, arguments);
+ }
+ return o;
+ }()
+ }]), i;
+ }();
+ x.exports = t;
+ }, { "../utils/stream-buf": 23, "../utils/utils": 26, dayjs: 336, "dayjs/plugin/customParseFormat": 337, "dayjs/plugin/utc": 338, "fast-csv": 369, fs: 215 }], 2: [function(e, x, _) {
+ function u(f, y) {
+ if (!(f instanceof y))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(f, y) {
+ for (var h = 0; h < y.length; h++) {
+ var l = y[h];
+ l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l);
+ }
+ }
+ function g(f, y, h) {
+ return y && m(f.prototype, y), h && m(f, h), f;
+ }
+ var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() {
+ function f(y, h) {
+ var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
+ if (u(this, f), !h)
+ this.nativeCol = 0, this.nativeColOff = 0, this.nativeRow = 0, this.nativeRowOff = 0;
+ else if (typeof h == "string") {
+ var d = b.decodeAddress(h);
+ this.nativeCol = d.col + l, this.nativeColOff = 0, this.nativeRow = d.row + l, this.nativeRowOff = 0;
+ } else
+ h.nativeCol !== void 0 ? (this.nativeCol = h.nativeCol || 0, this.nativeColOff = h.nativeColOff || 0, this.nativeRow = h.nativeRow || 0, this.nativeRowOff = h.nativeRowOff || 0) : h.col !== void 0 ? (this.col = h.col + l, this.row = h.row + l) : (this.nativeCol = 0, this.nativeColOff = 0, this.nativeRow = 0, this.nativeRowOff = 0);
+ this.worksheet = y;
+ }
+ return g(f, [{
+ key: "col",
+ get: function() {
+ return this.nativeCol + Math.min(this.colWidth - 1, this.nativeColOff) / this.colWidth;
+ },
+ set: function(h) {
+ this.nativeCol = Math.floor(h), this.nativeColOff = Math.floor((h - this.nativeCol) * this.colWidth);
+ }
+ }, {
+ key: "row",
+ get: function() {
+ return this.nativeRow + Math.min(this.rowHeight - 1, this.nativeRowOff) / this.rowHeight;
+ },
+ set: function(h) {
+ this.nativeRow = Math.floor(h), this.nativeRowOff = Math.floor((h - this.nativeRow) * this.rowHeight);
+ }
+ }, {
+ key: "colWidth",
+ get: function() {
+ return this.worksheet && this.worksheet.getColumn(this.nativeCol + 1) && this.worksheet.getColumn(this.nativeCol + 1).isCustomWidth ? Math.floor(this.worksheet.getColumn(this.nativeCol + 1).width * 1e4) : 64e4;
+ }
+ }, {
+ key: "rowHeight",
+ get: function() {
+ return this.worksheet && this.worksheet.getRow(this.nativeRow + 1) && this.worksheet.getRow(this.nativeRow + 1).height ? Math.floor(this.worksheet.getRow(this.nativeRow + 1).height * 1e4) : 18e4;
+ }
+ }, {
+ key: "model",
+ get: function() {
+ return {
+ nativeCol: this.nativeCol,
+ nativeColOff: this.nativeColOff,
+ nativeRow: this.nativeRow,
+ nativeRowOff: this.nativeRowOff
+ };
+ },
+ set: function(h) {
+ this.nativeCol = h.nativeCol, this.nativeColOff = h.nativeColOff, this.nativeRow = h.nativeRow, this.nativeRowOff = h.nativeRowOff;
+ }
+ }], [{
+ key: "asInstance",
+ value: function(h) {
+ return h instanceof f || h == null ? h : new f(h);
+ }
+ }]), f;
+ }();
+ x.exports = w;
+ }, { "../utils/col-cache": 19 }], 3: [function(e, x, _) {
+ function u(z, N) {
+ if (!(z instanceof N))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(z, N) {
+ for (var M = 0; M < N.length; M++) {
+ var I = N[M];
+ I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I);
+ }
+ }
+ function g(z, N, M) {
+ return N && m(z.prototype, N), M && m(z, M), z;
+ }
+ var b = e("../utils/col-cache"), w = e("../utils/under-dash"), f = e("./enums"), y = e("../utils/shared-formula"), h = y.slideFormula, l = e("./note"), d = /* @__PURE__ */ function() {
+ function z(N, M, I) {
+ if (u(this, z), !N || !M)
+ throw new Error("A Cell needs a Row");
+ this._row = N, this._column = M, b.validateAddress(I), this._address = I, this._value = F.create(z.Types.Null, this), this.style = this._mergeStyle(N.style, M.style, {}), this._mergeCount = 0;
+ }
+ return g(z, [{
+ key: "destroy",
+ // help GC by removing cyclic (and other) references
+ value: function() {
+ delete this.style, delete this._value, delete this._row, delete this._column, delete this._address;
+ }
+ // =========================================================================
+ // Styles stuff
+ }, {
+ key: "_mergeStyle",
+ value: function(M, I, R) {
+ var C = M && M.numFmt || I && I.numFmt;
+ C && (R.numFmt = C);
+ var E = M && M.font || I && I.font;
+ E && (R.font = E);
+ var A = M && M.alignment || I && I.alignment;
+ A && (R.alignment = A);
+ var L = M && M.border || I && I.border;
+ L && (R.border = L);
+ var $ = M && M.fill || I && I.fill;
+ $ && (R.fill = $);
+ var W = M && M.protection || I && I.protection;
+ return W && (R.protection = W), R;
+ }
+ // =========================================================================
+ // return the address for this cell
+ }, {
+ key: "toCsvString",
+ value: function() {
+ return this._value.toCsvString();
+ }
+ // =========================================================================
+ // Merge stuff
+ }, {
+ key: "addMergeRef",
+ value: function() {
+ this._mergeCount++;
+ }
+ }, {
+ key: "releaseMergeRef",
+ value: function() {
+ this._mergeCount--;
+ }
+ }, {
+ key: "merge",
+ value: function(M, I) {
+ this._value.release(), this._value = F.create(z.Types.Merge, this, M), I || (this.style = M.style);
+ }
+ }, {
+ key: "unmerge",
+ value: function() {
+ this.type === z.Types.Merge && (this._value.release(), this._value = F.create(z.Types.Null, this), this.style = this._mergeStyle(this._row.style, this._column.style, {}));
+ }
+ }, {
+ key: "isMergedTo",
+ value: function(M) {
+ return this._value.type !== z.Types.Merge ? !1 : this._value.isMergedTo(M);
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.text;
+ }
+ }, {
+ key: "_upgradeToHyperlink",
+ value: function(M) {
+ this.type === z.Types.String && (this._value = F.create(z.Types.Hyperlink, this, {
+ text: this._value.value,
+ hyperlink: M
+ }));
+ }
+ // =========================================================================
+ // Formula stuff
+ }, {
+ key: "addName",
+ value: function(M) {
+ this.workbook.definedNames.addEx(this.fullAddress, M);
+ }
+ }, {
+ key: "removeName",
+ value: function(M) {
+ this.workbook.definedNames.removeEx(this.fullAddress, M);
+ }
+ }, {
+ key: "removeAllNames",
+ value: function() {
+ this.workbook.definedNames.removeAllNames(this.fullAddress);
+ }
+ // =========================================================================
+ // Data Validation stuff
+ }, {
+ key: "worksheet",
+ get: function() {
+ return this._row.worksheet;
+ }
+ }, {
+ key: "workbook",
+ get: function() {
+ return this._row.worksheet.workbook;
+ }
+ }, {
+ key: "numFmt",
+ get: function() {
+ return this.style.numFmt;
+ },
+ set: function(M) {
+ this.style.numFmt = M;
+ }
+ }, {
+ key: "font",
+ get: function() {
+ return this.style.font;
+ },
+ set: function(M) {
+ this.style.font = M;
+ }
+ }, {
+ key: "alignment",
+ get: function() {
+ return this.style.alignment;
+ },
+ set: function(M) {
+ this.style.alignment = M;
+ }
+ }, {
+ key: "border",
+ get: function() {
+ return this.style.border;
+ },
+ set: function(M) {
+ this.style.border = M;
+ }
+ }, {
+ key: "fill",
+ get: function() {
+ return this.style.fill;
+ },
+ set: function(M) {
+ this.style.fill = M;
+ }
+ }, {
+ key: "protection",
+ get: function() {
+ return this.style.protection;
+ },
+ set: function(M) {
+ this.style.protection = M;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this._address;
+ }
+ }, {
+ key: "row",
+ get: function() {
+ return this._row.number;
+ }
+ }, {
+ key: "col",
+ get: function() {
+ return this._column.number;
+ }
+ }, {
+ key: "$col$row",
+ get: function() {
+ return "$".concat(this._column.letter, "$").concat(this.row);
+ }
+ // =========================================================================
+ // Value stuff
+ }, {
+ key: "type",
+ get: function() {
+ return this._value.type;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return this._value.effectiveType;
+ }
+ }, {
+ key: "isMerged",
+ get: function() {
+ return this._mergeCount > 0 || this.type === z.Types.Merge;
+ }
+ }, {
+ key: "master",
+ get: function() {
+ return this.type === z.Types.Merge ? this._value.master : this;
+ }
+ }, {
+ key: "isHyperlink",
+ get: function() {
+ return this._value.type === z.Types.Hyperlink;
+ }
+ }, {
+ key: "hyperlink",
+ get: function() {
+ return this._value.hyperlink;
+ }
+ // return the value
+ }, {
+ key: "value",
+ get: function() {
+ return this._value.value;
+ },
+ set: function(M) {
+ if (this.type === z.Types.Merge) {
+ this._value.master.value = M;
+ return;
+ }
+ this._value.release(), this._value = F.create(F.getType(M), this, M);
+ }
+ }, {
+ key: "note",
+ get: function() {
+ return this._comment && this._comment.note;
+ },
+ set: function(M) {
+ this._comment = new l(M);
+ }
+ }, {
+ key: "text",
+ get: function() {
+ return this._value.toString();
+ }
+ }, {
+ key: "html",
+ get: function() {
+ return w.escapeHtml(this.text);
+ }
+ }, {
+ key: "formula",
+ get: function() {
+ return this._value.formula;
+ }
+ }, {
+ key: "result",
+ get: function() {
+ return this._value.result;
+ }
+ }, {
+ key: "formulaType",
+ get: function() {
+ return this._value.formulaType;
+ }
+ // =========================================================================
+ // Name stuff
+ }, {
+ key: "fullAddress",
+ get: function() {
+ var M = this._row.worksheet;
+ return {
+ sheetName: M.name,
+ address: this.address,
+ row: this.row,
+ col: this.col
+ };
+ }
+ }, {
+ key: "name",
+ get: function() {
+ return this.names[0];
+ },
+ set: function(M) {
+ this.names = [M];
+ }
+ }, {
+ key: "names",
+ get: function() {
+ return this.workbook.definedNames.getNamesEx(this.fullAddress);
+ },
+ set: function(M) {
+ var I = this, R = this.workbook.definedNames;
+ R.removeAllNames(this.fullAddress), M.forEach(function(C) {
+ R.addEx(I.fullAddress, C);
+ });
+ }
+ }, {
+ key: "_dataValidations",
+ get: function() {
+ return this.worksheet.dataValidations;
+ }
+ }, {
+ key: "dataValidation",
+ get: function() {
+ return this._dataValidations.find(this.address);
+ },
+ set: function(M) {
+ this._dataValidations.add(this.address, M);
+ }
+ // =========================================================================
+ // Model stuff
+ }, {
+ key: "model",
+ get: function() {
+ var M = this._value.model;
+ return M.style = this.style, this._comment && (M.comment = this._comment.model), M;
+ },
+ set: function(M) {
+ if (this._value.release(), this._value = F.create(M.type, this), this._value.model = M, M.comment)
+ switch (M.comment.type) {
+ case "note":
+ this._comment = l.fromModel(M.comment);
+ break;
+ }
+ M.style ? this.style = M.style : this.style = {};
+ }
+ }]), z;
+ }();
+ d.Types = f.ValueType;
+ var s = /* @__PURE__ */ function() {
+ function z(N) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Null
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return "";
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return "";
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return null;
+ },
+ set: function(M) {
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Null;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Null;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), v = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Number,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Number;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Number;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), c = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.String,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return '"'.concat(this.model.value.replace(/"/g, '""'), '"');
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value;
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.String;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.String;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), a = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.String,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toString",
+ value: function() {
+ return this.model.value.richText.map(function(M) {
+ return M.text;
+ }).join("");
+ }
+ }, {
+ key: "toCsvString",
+ value: function() {
+ return '"'.concat(this.text.replace(/"/g, '""'), '"');
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.RichText;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.RichText;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), r = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Date,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.value.toISOString();
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Date;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Date;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), t = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Hyperlink,
+ text: M ? M.text : void 0,
+ hyperlink: M ? M.hyperlink : void 0
+ }, M && M.tooltip && (this.model.tooltip = M.tooltip);
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.hyperlink;
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.text;
+ }
+ }, {
+ key: "value",
+ get: function() {
+ var M = {
+ text: this.model.text,
+ hyperlink: this.model.hyperlink
+ };
+ return this.model.tooltip && (M.tooltip = this.model.tooltip), M;
+ },
+ set: function(M) {
+ this.model = {
+ text: M.text,
+ hyperlink: M.hyperlink
+ }, M.tooltip && (this.model.tooltip = M.tooltip);
+ }
+ }, {
+ key: "text",
+ get: function() {
+ return this.model.text;
+ },
+ set: function(M) {
+ this.model.text = M;
+ }
+ /*
+ get tooltip() {
+ return this.model.tooltip;
+ }
+ set tooltip(value) {
+ this.model.tooltip = value;
+ } */
+ }, {
+ key: "hyperlink",
+ get: function() {
+ return this.model.hyperlink;
+ },
+ set: function(M) {
+ this.model.hyperlink = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Hyperlink;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Hyperlink;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), i = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Merge,
+ master: M ? M.address : void 0
+ }, this._master = M, M && M.addMergeRef();
+ }
+ return g(z, [{
+ key: "isMergedTo",
+ value: function(M) {
+ return M === this._master;
+ }
+ }, {
+ key: "toCsvString",
+ value: function() {
+ return "";
+ }
+ }, {
+ key: "release",
+ value: function() {
+ this._master.releaseMergeRef();
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.value.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this._master.value;
+ },
+ set: function(M) {
+ M instanceof d ? (this._master && this._master.releaseMergeRef(), M.addMergeRef(), this._master = M) : this._master.value = M;
+ }
+ }, {
+ key: "master",
+ get: function() {
+ return this._master;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Merge;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return this._master.effectiveType;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), n = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.cell = N, this.model = {
+ address: N.address,
+ type: d.Types.Formula,
+ shareType: M ? M.shareType : void 0,
+ ref: M ? M.ref : void 0,
+ formula: M ? M.formula : void 0,
+ sharedFormula: M ? M.sharedFormula : void 0,
+ result: M ? M.result : void 0
+ };
+ }
+ return g(z, [{
+ key: "_copyModel",
+ value: function(M) {
+ var I = {}, R = function(E) {
+ var A = M[E];
+ A && (I[E] = A);
+ };
+ return R("formula"), R("result"), R("ref"), R("shareType"), R("sharedFormula"), I;
+ }
+ }, {
+ key: "validate",
+ value: function(M) {
+ switch (F.getType(M)) {
+ case d.Types.Null:
+ case d.Types.String:
+ case d.Types.Number:
+ case d.Types.Date:
+ break;
+ case d.Types.Hyperlink:
+ case d.Types.Formula:
+ default:
+ throw new Error("Cannot process that type of result value");
+ }
+ }
+ }, {
+ key: "_getTranslatedFormula",
+ value: function() {
+ if (!this._translatedFormula && this.model.sharedFormula) {
+ var M = this.cell.worksheet, I = M.findCell(this.model.sharedFormula);
+ this._translatedFormula = I && h(I.formula, I.address, this.model.address);
+ }
+ return this._translatedFormula;
+ }
+ }, {
+ key: "toCsvString",
+ value: function() {
+ return "".concat(this.model.result || "");
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.result ? this.model.result.toString() : "";
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this._copyModel(this.model);
+ },
+ set: function(M) {
+ this.model = this._copyModel(M);
+ }
+ }, {
+ key: "dependencies",
+ get: function() {
+ var M = this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g), I = this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g, "").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);
+ return {
+ ranges: M,
+ cells: I
+ };
+ }
+ }, {
+ key: "formula",
+ get: function() {
+ return this.model.formula || this._getTranslatedFormula();
+ },
+ set: function(M) {
+ this.model.formula = M;
+ }
+ }, {
+ key: "formulaType",
+ get: function() {
+ return this.model.formula ? f.FormulaType.Master : this.model.sharedFormula ? f.FormulaType.Shared : f.FormulaType.None;
+ }
+ }, {
+ key: "result",
+ get: function() {
+ return this.model.result;
+ },
+ set: function(M) {
+ this.model.result = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Formula;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ var M = this.model.result;
+ return M == null ? f.ValueType.Null : M instanceof String || typeof M == "string" ? f.ValueType.String : typeof M == "number" ? f.ValueType.Number : M instanceof Date ? f.ValueType.Date : M.text && M.hyperlink ? f.ValueType.Hyperlink : M.formula ? f.ValueType.Formula : f.ValueType.Null;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), o = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.SharedString,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.SharedString;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.SharedString;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), p = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Boolean,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.value ? 1 : 0;
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Boolean;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Boolean;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), O = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.Error,
+ value: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.toString();
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value.error.toString();
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.value;
+ },
+ set: function(M) {
+ this.model.value = M;
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.Error;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.Error;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), P = /* @__PURE__ */ function() {
+ function z(N, M) {
+ u(this, z), this.model = {
+ address: N.address,
+ type: d.Types.String,
+ value: JSON.stringify(M),
+ rawValue: M
+ };
+ }
+ return g(z, [{
+ key: "toCsvString",
+ value: function() {
+ return this.model.value;
+ }
+ }, {
+ key: "release",
+ value: function() {
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.model.value;
+ }
+ }, {
+ key: "value",
+ get: function() {
+ return this.model.rawValue;
+ },
+ set: function(M) {
+ this.model.rawValue = M, this.model.value = JSON.stringify(M);
+ }
+ }, {
+ key: "type",
+ get: function() {
+ return d.Types.String;
+ }
+ }, {
+ key: "effectiveType",
+ get: function() {
+ return d.Types.String;
+ }
+ }, {
+ key: "address",
+ get: function() {
+ return this.model.address;
+ },
+ set: function(M) {
+ this.model.address = M;
+ }
+ }]), z;
+ }(), F = {
+ getType: function(N) {
+ return N == null ? d.Types.Null : N instanceof String || typeof N == "string" ? d.Types.String : typeof N == "number" ? d.Types.Number : typeof N == "boolean" ? d.Types.Boolean : N instanceof Date ? d.Types.Date : N.text && N.hyperlink ? d.Types.Hyperlink : N.formula || N.sharedFormula ? d.Types.Formula : N.richText ? d.Types.RichText : N.sharedString ? d.Types.SharedString : N.error ? d.Types.Error : d.Types.JSON;
+ },
+ // map valueType to constructor
+ types: [{
+ t: d.Types.Null,
+ f: s
+ }, {
+ t: d.Types.Number,
+ f: v
+ }, {
+ t: d.Types.String,
+ f: c
+ }, {
+ t: d.Types.Date,
+ f: r
+ }, {
+ t: d.Types.Hyperlink,
+ f: t
+ }, {
+ t: d.Types.Formula,
+ f: n
+ }, {
+ t: d.Types.Merge,
+ f: i
+ }, {
+ t: d.Types.JSON,
+ f: P
+ }, {
+ t: d.Types.SharedString,
+ f: o
+ }, {
+ t: d.Types.RichText,
+ f: a
+ }, {
+ t: d.Types.Boolean,
+ f: p
+ }, {
+ t: d.Types.Error,
+ f: O
+ }].reduce(function(z, N) {
+ return z[N.t] = N.f, z;
+ }, []),
+ create: function(N, M, I) {
+ var R = this.types[N];
+ if (!R)
+ throw new Error("Could not create Value of type ".concat(N));
+ return new R(M, I);
+ }
+ };
+ x.exports = d;
+ }, { "../utils/col-cache": 19, "../utils/shared-formula": 22, "../utils/under-dash": 25, "./enums": 7, "./note": 9 }], 4: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ var b = e("../utils/under-dash"), w = e("./enums"), f = e("../utils/col-cache"), y = 9, h = /* @__PURE__ */ function() {
+ function l(d, s, v) {
+ u(this, l), this._worksheet = d, this._number = s, v !== !1 && (this.defn = v);
+ }
+ return g(l, [{
+ key: "toString",
+ value: function() {
+ return JSON.stringify({
+ key: this.key,
+ width: this.width,
+ headers: this.headers.length ? this.headers : void 0
+ });
+ }
+ }, {
+ key: "equivalentTo",
+ value: function(s) {
+ return this.width === s.width && this.hidden === s.hidden && this.outlineLevel === s.outlineLevel && b.isEqual(this.style, s.style);
+ }
+ }, {
+ key: "eachCell",
+ value: function(s, v) {
+ var c = this.number;
+ v || (v = s, s = null), this._worksheet.eachRow(s, function(a, r) {
+ v(a.getCell(c), r);
+ });
+ }
+ }, {
+ key: "_applyStyle",
+ // =========================================================================
+ // styles
+ value: function(s, v) {
+ return this.style[s] = v, this.eachCell(function(c) {
+ c[s] = v;
+ }), v;
+ }
+ }, {
+ key: "number",
+ get: function() {
+ return this._number;
+ }
+ }, {
+ key: "worksheet",
+ get: function() {
+ return this._worksheet;
+ }
+ }, {
+ key: "letter",
+ get: function() {
+ return f.n2l(this._number);
+ }
+ }, {
+ key: "isCustomWidth",
+ get: function() {
+ return this.width !== void 0 && this.width !== y;
+ }
+ }, {
+ key: "defn",
+ get: function() {
+ return {
+ header: this._header,
+ key: this.key,
+ width: this.width,
+ style: this.style,
+ hidden: this.hidden,
+ outlineLevel: this.outlineLevel
+ };
+ },
+ set: function(s) {
+ s ? (this.key = s.key, this.width = s.width !== void 0 ? s.width : y, this.outlineLevel = s.outlineLevel, s.style ? this.style = s.style : this.style = {}, this.header = s.header, this._hidden = !!s.hidden) : (delete this._header, delete this._key, delete this.width, this.style = {}, this.outlineLevel = 0);
+ }
+ }, {
+ key: "headers",
+ get: function() {
+ return this._header && this._header instanceof Array ? this._header : [this._header];
+ }
+ }, {
+ key: "header",
+ get: function() {
+ return this._header;
+ },
+ set: function(s) {
+ var v = this;
+ s !== void 0 ? (this._header = s, this.headers.forEach(function(c, a) {
+ v._worksheet.getCell(a + 1, v.number).value = c;
+ })) : this._header = void 0;
+ }
+ }, {
+ key: "key",
+ get: function() {
+ return this._key;
+ },
+ set: function(s) {
+ var v = this._key && this._worksheet.getColumnKey(this._key);
+ v === this && this._worksheet.deleteColumnKey(this._key), this._key = s, s && this._worksheet.setColumnKey(this._key, this);
+ }
+ }, {
+ key: "hidden",
+ get: function() {
+ return !!this._hidden;
+ },
+ set: function(s) {
+ this._hidden = s;
+ }
+ }, {
+ key: "outlineLevel",
+ get: function() {
+ return this._outlineLevel || 0;
+ },
+ set: function(s) {
+ this._outlineLevel = s;
+ }
+ }, {
+ key: "collapsed",
+ get: function() {
+ return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelCol);
+ }
+ }, {
+ key: "isDefault",
+ get: function() {
+ if (this.isCustomWidth || this.hidden || this.outlineLevel)
+ return !1;
+ var s = this.style;
+ return !(s && (s.font || s.numFmt || s.alignment || s.border || s.fill || s.protection));
+ }
+ }, {
+ key: "headerCount",
+ get: function() {
+ return this.headers.length;
+ }
+ }, {
+ key: "values",
+ get: function() {
+ var s = [];
+ return this.eachCell(function(v, c) {
+ v && v.type !== w.ValueType.Null && (s[c] = v.value);
+ }), s;
+ },
+ set: function(s) {
+ var v = this;
+ if (s) {
+ var c = this.number, a = 0;
+ s.hasOwnProperty("0") && (a = 1), s.forEach(function(r, t) {
+ v._worksheet.getCell(t + a, c).value = r;
+ });
+ }
+ }
+ }, {
+ key: "numFmt",
+ get: function() {
+ return this.style.numFmt;
+ },
+ set: function(s) {
+ this._applyStyle("numFmt", s);
+ }
+ }, {
+ key: "font",
+ get: function() {
+ return this.style.font;
+ },
+ set: function(s) {
+ this._applyStyle("font", s);
+ }
+ }, {
+ key: "alignment",
+ get: function() {
+ return this.style.alignment;
+ },
+ set: function(s) {
+ this._applyStyle("alignment", s);
+ }
+ }, {
+ key: "protection",
+ get: function() {
+ return this.style.protection;
+ },
+ set: function(s) {
+ this._applyStyle("protection", s);
+ }
+ }, {
+ key: "border",
+ get: function() {
+ return this.style.border;
+ },
+ set: function(s) {
+ this._applyStyle("border", s);
+ }
+ }, {
+ key: "fill",
+ get: function() {
+ return this.style.fill;
+ },
+ set: function(s) {
+ this._applyStyle("fill", s);
+ }
+ // =============================================================================
+ // static functions
+ }], [{
+ key: "toModel",
+ value: function(s) {
+ var v = [], c = null;
+ return s && s.forEach(function(a, r) {
+ a.isDefault ? c && (c = null) : !c || !a.equivalentTo(c) ? (c = {
+ min: r + 1,
+ max: r + 1,
+ width: a.width !== void 0 ? a.width : y,
+ style: a.style,
+ isCustomWidth: a.isCustomWidth,
+ hidden: a.hidden,
+ outlineLevel: a.outlineLevel,
+ collapsed: a.collapsed
+ }, v.push(c)) : c.max = r + 1;
+ }), v.length ? v : void 0;
+ }
+ }, {
+ key: "fromModel",
+ value: function(s, v) {
+ v = v || [];
+ for (var c = [], a = 1, r = 0; r < v.length; ) {
+ for (var t = v[r++]; a < t.min; )
+ c.push(new l(s, a++));
+ for (; a <= t.max; )
+ c.push(new l(s, a++, t));
+ }
+ return c.length ? c : null;
+ }
+ }]), l;
+ }();
+ x.exports = h;
+ }, { "../utils/col-cache": 19, "../utils/under-dash": 25, "./enums": 7 }], 5: [function(e, x, _) {
+ function u(w, f) {
+ if (!(w instanceof f))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(w, f) {
+ for (var y = 0; y < f.length; y++) {
+ var h = f[y];
+ h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(w, h.key, h);
+ }
+ }
+ function g(w, f, y) {
+ return f && m(w.prototype, f), y && m(w, y), w;
+ }
+ var b = /* @__PURE__ */ function() {
+ function w(f) {
+ u(this, w), this.model = f || {};
+ }
+ return g(w, [{
+ key: "add",
+ value: function(y, h) {
+ return this.model[y] = h;
+ }
+ }, {
+ key: "find",
+ value: function(y) {
+ return this.model[y];
+ }
+ }, {
+ key: "remove",
+ value: function(y) {
+ this.model[y] = void 0;
+ }
+ }]), w;
+ }();
+ x.exports = b;
+ }, {}], 6: [function(e, x, _) {
+ function u(d, s) {
+ if (!(d instanceof s))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(d, s) {
+ for (var v = 0; v < s.length; v++) {
+ var c = s[v];
+ c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c);
+ }
+ }
+ function g(d, s, v) {
+ return s && m(d.prototype, s), v && m(d, v), d;
+ }
+ var b = e("../utils/under-dash"), w = e("../utils/col-cache"), f = e("../utils/cell-matrix"), y = e("./range"), h = /[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/, l = /* @__PURE__ */ function() {
+ function d() {
+ u(this, d), this.matrixMap = {};
+ }
+ return g(d, [{
+ key: "getMatrix",
+ value: function(v) {
+ var c = this.matrixMap[v] || (this.matrixMap[v] = new f());
+ return c;
+ }
+ // add a name to a cell. locStr in the form SheetName!$col$row or SheetName!$c1$r1:$c2:$r2
+ }, {
+ key: "add",
+ value: function(v, c) {
+ var a = w.decodeEx(v);
+ this.addEx(a, c);
+ }
+ }, {
+ key: "addEx",
+ value: function(v, c) {
+ var a = this.getMatrix(c);
+ if (v.top)
+ for (var r = v.left; r <= v.right; r++)
+ for (var t = v.top; t <= v.bottom; t++) {
+ var i = {
+ sheetName: v.sheetName,
+ address: w.n2l(r) + t,
+ row: t,
+ col: r
+ };
+ a.addCellEx(i);
+ }
+ else
+ a.addCellEx(v);
+ }
+ }, {
+ key: "remove",
+ value: function(v, c) {
+ var a = w.decodeEx(v);
+ this.removeEx(a, c);
+ }
+ }, {
+ key: "removeEx",
+ value: function(v, c) {
+ var a = this.getMatrix(c);
+ a.removeCellEx(v);
+ }
+ }, {
+ key: "removeAllNames",
+ value: function(v) {
+ b.each(this.matrixMap, function(c) {
+ c.removeCellEx(v);
+ });
+ }
+ }, {
+ key: "forEach",
+ value: function(v) {
+ b.each(this.matrixMap, function(c, a) {
+ c.forEach(function(r) {
+ v(a, r);
+ });
+ });
+ }
+ // get all the names of a cell
+ }, {
+ key: "getNames",
+ value: function(v) {
+ return this.getNamesEx(w.decodeEx(v));
+ }
+ }, {
+ key: "getNamesEx",
+ value: function(v) {
+ return b.map(this.matrixMap, function(c, a) {
+ return c.findCellEx(v) && a;
+ }).filter(Boolean);
+ }
+ }, {
+ key: "_explore",
+ value: function(v, c) {
+ c.mark = !1;
+ var a = c.sheetName, r = new y(c.row, c.col, c.row, c.col, a), t, i;
+ function n(p, O) {
+ var P = v.findCellAt(a, p, c.col);
+ return !P || !P.mark ? !1 : (r[O] = p, P.mark = !1, !0);
+ }
+ for (i = c.row - 1; n(i, "top"); i--)
+ ;
+ for (i = c.row + 1; n(i, "bottom"); i++)
+ ;
+ function o(p, O) {
+ var P = [];
+ for (i = r.top; i <= r.bottom; i++) {
+ var F = v.findCellAt(a, i, p);
+ if (F && F.mark)
+ P.push(F);
+ else
+ return !1;
+ }
+ r[O] = p;
+ for (var z = 0; z < P.length; z++)
+ P[z].mark = !1;
+ return !0;
+ }
+ for (t = c.col - 1; o(t, "left"); t--)
+ ;
+ for (t = c.col + 1; o(t, "right"); t++)
+ ;
+ return r;
+ }
+ }, {
+ key: "getRanges",
+ value: function(v, c) {
+ var a = this;
+ if (c = c || this.matrixMap[v], !c)
+ return {
+ name: v,
+ ranges: []
+ };
+ c.forEach(function(t) {
+ t.mark = !0;
+ });
+ var r = c.map(function(t) {
+ return t.mark && a._explore(c, t);
+ }).filter(Boolean).map(function(t) {
+ return t.$shortRange;
+ });
+ return {
+ name: v,
+ ranges: r
+ };
+ }
+ }, {
+ key: "normaliseMatrix",
+ value: function(v, c) {
+ v.forEachInSheet(c, function(a, r, t) {
+ a && (a.row !== r || a.col !== t) && (a.row = r, a.col = t, a.address = w.n2l(t) + r);
+ });
+ }
+ }, {
+ key: "spliceRows",
+ value: function(v, c, a, r) {
+ var t = this;
+ b.each(this.matrixMap, function(i) {
+ i.spliceRows(v, c, a, r), t.normaliseMatrix(i, v);
+ });
+ }
+ }, {
+ key: "spliceColumns",
+ value: function(v, c, a, r) {
+ var t = this;
+ b.each(this.matrixMap, function(i) {
+ i.spliceColumns(v, c, a, r), t.normaliseMatrix(i, v);
+ });
+ }
+ }, {
+ key: "model",
+ get: function() {
+ var v = this;
+ return b.map(this.matrixMap, function(c, a) {
+ return v.getRanges(a, c);
+ }).filter(function(c) {
+ return c.ranges.length;
+ });
+ },
+ set: function(v) {
+ var c = this.matrixMap = {};
+ v.forEach(function(a) {
+ var r = c[a.name] = new f();
+ a.ranges.forEach(function(t) {
+ h.test(t.split("!").pop() || "") && r.addCell(t);
+ });
+ });
+ }
+ }]), d;
+ }();
+ x.exports = l;
+ }, { "../utils/cell-matrix": 18, "../utils/col-cache": 19, "../utils/under-dash": 25, "./range": 10 }], 7: [function(e, x, _) {
+ x.exports = {
+ ValueType: {
+ Null: 0,
+ Merge: 1,
+ Number: 2,
+ String: 3,
+ Date: 4,
+ Hyperlink: 5,
+ Formula: 6,
+ SharedString: 7,
+ RichText: 8,
+ Boolean: 9,
+ Error: 10
+ },
+ FormulaType: {
+ None: 0,
+ Master: 1,
+ Shared: 2
+ },
+ RelationshipType: {
+ None: 0,
+ OfficeDocument: 1,
+ Worksheet: 2,
+ CalcChain: 3,
+ SharedStrings: 4,
+ Styles: 5,
+ Theme: 6,
+ Hyperlink: 7
+ },
+ DocumentType: {
+ Xlsx: 1
+ },
+ ReadingOrder: {
+ LeftToRight: 1,
+ RightToLeft: 2
+ },
+ ErrorValue: {
+ NotApplicable: "#N/A",
+ Ref: "#REF!",
+ Name: "#NAME?",
+ DivZero: "#DIV/0!",
+ Null: "#NULL!",
+ Value: "#VALUE!",
+ Num: "#NUM!"
+ }
+ };
+ }, {}], 8: [function(e, x, _) {
+ function u(y, h) {
+ if (!(y instanceof h))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(y, h) {
+ for (var l = 0; l < h.length; l++) {
+ var d = h[l];
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d);
+ }
+ }
+ function g(y, h, l) {
+ return h && m(y.prototype, h), l && m(y, l), y;
+ }
+ var b = e("../utils/col-cache"), w = e("./anchor"), f = /* @__PURE__ */ function() {
+ function y(h, l) {
+ u(this, y), this.worksheet = h, this.model = l;
+ }
+ return g(y, [{
+ key: "model",
+ get: function() {
+ switch (this.type) {
+ case "background":
+ return {
+ type: this.type,
+ imageId: this.imageId
+ };
+ case "image":
+ return {
+ type: this.type,
+ imageId: this.imageId,
+ hyperlinks: this.range.hyperlinks,
+ range: {
+ tl: this.range.tl.model,
+ br: this.range.br && this.range.br.model,
+ ext: this.range.ext,
+ editAs: this.range.editAs
+ }
+ };
+ default:
+ throw new Error("Invalid Image Type");
+ }
+ },
+ set: function(l) {
+ var d = l.type, s = l.imageId, v = l.range, c = l.hyperlinks;
+ if (this.type = d, this.imageId = s, d === "image")
+ if (typeof v == "string") {
+ var a = b.decode(v);
+ this.range = {
+ tl: new w(this.worksheet, {
+ col: a.left,
+ row: a.top
+ }, -1),
+ br: new w(this.worksheet, {
+ col: a.right,
+ row: a.bottom
+ }, 0),
+ editAs: "oneCell"
+ };
+ } else
+ this.range = {
+ tl: new w(this.worksheet, v.tl, 0),
+ br: v.br && new w(this.worksheet, v.br, 0),
+ ext: v.ext,
+ editAs: v.editAs,
+ hyperlinks: c || v.hyperlinks
+ };
+ }
+ }]), y;
+ }();
+ x.exports = f;
+ }, { "../utils/col-cache": 19, "./anchor": 2 }], 9: [function(e, x, _) {
+ function u(y) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) {
+ return typeof l;
+ } : u = function(l) {
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
+ }, u(y);
+ }
+ function m(y, h) {
+ if (!(y instanceof h))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(y, h) {
+ for (var l = 0; l < h.length; l++) {
+ var d = h[l];
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d);
+ }
+ }
+ function b(y, h, l) {
+ return h && g(y.prototype, h), l && g(y, l), y;
+ }
+ var w = e("../utils/under-dash"), f = /* @__PURE__ */ function() {
+ function y(h) {
+ m(this, y), this.note = h;
+ }
+ return b(y, [{
+ key: "model",
+ get: function() {
+ var l = null;
+ switch (u(this.note)) {
+ case "string":
+ l = {
+ type: "note",
+ note: {
+ texts: [{
+ text: this.note
+ }]
+ }
+ };
+ break;
+ default:
+ l = {
+ type: "note",
+ note: this.note
+ };
+ break;
+ }
+ return w.deepMerge({}, y.DEFAULT_CONFIGS, l);
+ },
+ set: function(l) {
+ var d = l.note, s = d.texts;
+ s.length === 1 && Object.keys(s[0]).length === 1 ? this.note = s[0].text : this.note = d;
+ }
+ }], [{
+ key: "fromModel",
+ value: function(l) {
+ var d = new y();
+ return d.model = l, d;
+ }
+ }]), y;
+ }();
+ f.DEFAULT_CONFIGS = {
+ note: {
+ margins: {
+ insetmode: "auto",
+ inset: [0.13, 0.13, 0.25, 0.25]
+ },
+ protection: {
+ locked: "True",
+ lockText: "True"
+ },
+ editAs: "absolute"
+ }
+ }, x.exports = f;
+ }, { "../utils/under-dash": 25 }], 10: [function(e, x, _) {
+ function u(f, y) {
+ if (!(f instanceof y))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(f, y) {
+ for (var h = 0; h < y.length; h++) {
+ var l = y[h];
+ l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l);
+ }
+ }
+ function g(f, y, h) {
+ return y && m(f.prototype, y), h && m(f, h), f;
+ }
+ var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() {
+ function f() {
+ u(this, f), this.decode(arguments);
+ }
+ return g(f, [{
+ key: "setTLBR",
+ value: function(h, l, d, s, v) {
+ if (arguments.length < 4) {
+ var c = b.decodeAddress(h), a = b.decodeAddress(l);
+ this.model = {
+ top: Math.min(c.row, a.row),
+ left: Math.min(c.col, a.col),
+ bottom: Math.max(c.row, a.row),
+ right: Math.max(c.col, a.col),
+ sheetName: d
+ }, this.setTLBR(c.row, c.col, a.row, a.col, v);
+ } else
+ this.model = {
+ top: Math.min(h, d),
+ left: Math.min(l, s),
+ bottom: Math.max(h, d),
+ right: Math.max(l, s),
+ sheetName: v
+ };
+ }
+ }, {
+ key: "decode",
+ value: function(h) {
+ switch (h.length) {
+ case 5:
+ this.setTLBR(h[0], h[1], h[2], h[3], h[4]);
+ break;
+ case 4:
+ this.setTLBR(h[0], h[1], h[2], h[3]);
+ break;
+ case 3:
+ this.setTLBR(h[0], h[1], h[2]);
+ break;
+ case 2:
+ this.setTLBR(h[0], h[1]);
+ break;
+ case 1: {
+ var l = h[0];
+ if (l instanceof f)
+ this.model = {
+ top: l.model.top,
+ left: l.model.left,
+ bottom: l.model.bottom,
+ right: l.model.right,
+ sheetName: l.sheetName
+ };
+ else if (l instanceof Array)
+ this.decode(l);
+ else if (l.top && l.left && l.bottom && l.right)
+ this.model = {
+ top: l.top,
+ left: l.left,
+ bottom: l.bottom,
+ right: l.right,
+ sheetName: l.sheetName
+ };
+ else {
+ var d = b.decodeEx(l);
+ d.top ? this.model = {
+ top: d.top,
+ left: d.left,
+ bottom: d.bottom,
+ right: d.right,
+ sheetName: d.sheetName
+ } : this.model = {
+ top: d.row,
+ left: d.col,
+ bottom: d.row,
+ right: d.col,
+ sheetName: d.sheetName
+ };
+ }
+ break;
+ }
+ case 0:
+ this.model = {
+ top: 0,
+ left: 0,
+ bottom: 0,
+ right: 0
+ };
+ break;
+ default:
+ throw new Error("Invalid number of arguments to _getDimensions() - ".concat(h.length));
+ }
+ }
+ }, {
+ key: "expand",
+ value: function(h, l, d, s) {
+ (!this.model.top || h < this.top) && (this.top = h), (!this.model.left || l < this.left) && (this.left = l), (!this.model.bottom || d > this.bottom) && (this.bottom = d), (!this.model.right || s > this.right) && (this.right = s);
+ }
+ }, {
+ key: "expandRow",
+ value: function(h) {
+ if (h) {
+ var l = h.dimensions, d = h.number;
+ l && this.expand(d, l.min, d, l.max);
+ }
+ }
+ }, {
+ key: "expandToAddress",
+ value: function(h) {
+ var l = b.decodeEx(h);
+ this.expand(l.row, l.col, l.row, l.col);
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return this.range;
+ }
+ }, {
+ key: "intersects",
+ value: function(h) {
+ return !(h.sheetName && this.sheetName && h.sheetName !== this.sheetName || h.bottom < this.top || h.top > this.bottom || h.right < this.left || h.left > this.right);
+ }
+ }, {
+ key: "contains",
+ value: function(h) {
+ var l = b.decodeEx(h);
+ return this.containsEx(l);
+ }
+ }, {
+ key: "containsEx",
+ value: function(h) {
+ return h.sheetName && this.sheetName && h.sheetName !== this.sheetName ? !1 : h.row >= this.top && h.row <= this.bottom && h.col >= this.left && h.col <= this.right;
+ }
+ }, {
+ key: "forEachAddress",
+ value: function(h) {
+ for (var l = this.left; l <= this.right; l++)
+ for (var d = this.top; d <= this.bottom; d++)
+ h(b.encodeAddress(d, l), d, l);
+ }
+ }, {
+ key: "top",
+ get: function() {
+ return this.model.top || 1;
+ },
+ set: function(h) {
+ this.model.top = h;
+ }
+ }, {
+ key: "left",
+ get: function() {
+ return this.model.left || 1;
+ },
+ set: function(h) {
+ this.model.left = h;
+ }
+ }, {
+ key: "bottom",
+ get: function() {
+ return this.model.bottom || 1;
+ },
+ set: function(h) {
+ this.model.bottom = h;
+ }
+ }, {
+ key: "right",
+ get: function() {
+ return this.model.right || 1;
+ },
+ set: function(h) {
+ this.model.right = h;
+ }
+ }, {
+ key: "sheetName",
+ get: function() {
+ return this.model.sheetName;
+ },
+ set: function(h) {
+ this.model.sheetName = h;
+ }
+ }, {
+ key: "_serialisedSheetName",
+ get: function() {
+ var h = this.model.sheetName;
+ return h ? /^[a-zA-Z0-9]*$/.test(h) ? "".concat(h, "!") : "'".concat(h, "'!") : "";
+ }
+ }, {
+ key: "tl",
+ get: function() {
+ return b.n2l(this.left) + this.top;
+ }
+ }, {
+ key: "$t$l",
+ get: function() {
+ return "$".concat(b.n2l(this.left), "$").concat(this.top);
+ }
+ }, {
+ key: "br",
+ get: function() {
+ return b.n2l(this.right) + this.bottom;
+ }
+ }, {
+ key: "$b$r",
+ get: function() {
+ return "$".concat(b.n2l(this.right), "$").concat(this.bottom);
+ }
+ }, {
+ key: "range",
+ get: function() {
+ return "".concat(this._serialisedSheetName + this.tl, ":").concat(this.br);
+ }
+ }, {
+ key: "$range",
+ get: function() {
+ return "".concat(this._serialisedSheetName + this.$t$l, ":").concat(this.$b$r);
+ }
+ }, {
+ key: "shortRange",
+ get: function() {
+ return this.count > 1 ? this.range : this._serialisedSheetName + this.tl;
+ }
+ }, {
+ key: "$shortRange",
+ get: function() {
+ return this.count > 1 ? this.$range : this._serialisedSheetName + this.$t$l;
+ }
+ }, {
+ key: "count",
+ get: function() {
+ return (1 + this.bottom - this.top) * (1 + this.right - this.left);
+ }
+ }]), f;
+ }();
+ x.exports = w;
+ }, { "../utils/col-cache": 19 }], 11: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ var b = e("../utils/under-dash"), w = e("./enums"), f = e("../utils/col-cache"), y = e("./cell"), h = /* @__PURE__ */ function() {
+ function l(d, s) {
+ u(this, l), this._worksheet = d, this._number = s, this._cells = [], this.style = {}, this.outlineLevel = 0;
+ }
+ return g(l, [{
+ key: "commit",
+ // Inform Streaming Writer that this row (and all rows before it) are complete
+ // and ready to write. Has no effect on Worksheet document
+ value: function() {
+ this._worksheet._commitRow(this);
+ }
+ // helps GC by breaking cyclic references
+ }, {
+ key: "destroy",
+ value: function() {
+ delete this._worksheet, delete this._cells, delete this.style;
+ }
+ }, {
+ key: "findCell",
+ value: function(s) {
+ return this._cells[s - 1];
+ }
+ // given {address, row, col}, find or create new cell
+ }, {
+ key: "getCellEx",
+ value: function(s) {
+ var v = this._cells[s.col - 1];
+ if (!v) {
+ var c = this._worksheet.getColumn(s.col);
+ v = new y(this, c, s.address), this._cells[s.col - 1] = v;
+ }
+ return v;
+ }
+ // get cell by key, letter or column number
+ }, {
+ key: "getCell",
+ value: function(s) {
+ if (typeof s == "string") {
+ var v = this._worksheet.getColumnKey(s);
+ v ? s = v.number : s = f.l2n(s);
+ }
+ return this._cells[s - 1] || this.getCellEx({
+ address: f.encodeAddress(this._number, s),
+ row: this._number,
+ col: s
+ });
+ }
+ // remove cell(s) and shift all higher cells down by count
+ }, {
+ key: "splice",
+ value: function(s, v) {
+ for (var c = s + v, a = arguments.length, r = new Array(a > 2 ? a - 2 : 0), t = 2; t < a; t++)
+ r[t - 2] = arguments[t];
+ var i = r.length - v, n = this._cells.length, o, p, O;
+ if (i < 0)
+ for (o = s + r.length; o <= n; o++)
+ O = this._cells[o - 1], p = this._cells[o - i - 1], p ? (O = this.getCell(o), O.value = p.value, O.style = p.style, O._comment = p._comment) : O && (O.value = null, O.style = {}, O._comment = void 0);
+ else if (i > 0)
+ for (o = n; o >= c; o--)
+ p = this._cells[o - 1], p ? (O = this.getCell(o + i), O.value = p.value, O.style = p.style, O._comment = p._comment) : this._cells[o + i - 1] = void 0;
+ for (o = 0; o < r.length; o++)
+ O = this.getCell(s + o), O.value = r[o], O.style = {}, O._comment = void 0;
+ }
+ // Iterate over all non-null cells in this row
+ }, {
+ key: "eachCell",
+ value: function(s, v) {
+ if (v || (v = s, s = null), s && s.includeEmpty)
+ for (var c = this._cells.length, a = 1; a <= c; a++)
+ v(this.getCell(a), a);
+ else
+ this._cells.forEach(function(r, t) {
+ r && r.type !== w.ValueType.Null && v(r, t + 1);
+ });
+ }
+ // ===========================================================================
+ // Page Breaks
+ }, {
+ key: "addPageBreak",
+ value: function(s, v) {
+ var c = this._worksheet, a = Math.max(0, s - 1) || 0, r = Math.max(0, v - 1) || 16838, t = {
+ id: this._number,
+ max: r,
+ man: 1
+ };
+ a && (t.min = a), c.rowBreaks.push(t);
+ }
+ // return a sparse array of cell values
+ }, {
+ key: "_applyStyle",
+ // =========================================================================
+ // styles
+ value: function(s, v) {
+ return this.style[s] = v, this._cells.forEach(function(c) {
+ c && (c[s] = v);
+ }), v;
+ }
+ }, {
+ key: "number",
+ get: function() {
+ return this._number;
+ }
+ }, {
+ key: "worksheet",
+ get: function() {
+ return this._worksheet;
+ }
+ }, {
+ key: "values",
+ get: function() {
+ var s = [];
+ return this._cells.forEach(function(v) {
+ v && v.type !== w.ValueType.Null && (s[v.col] = v.value);
+ }), s;
+ },
+ set: function(s) {
+ var v = this;
+ if (this._cells = [], s)
+ if (s instanceof Array) {
+ var c = 0;
+ s.hasOwnProperty("0") && (c = 1), s.forEach(function(a, r) {
+ a !== void 0 && (v.getCellEx({
+ address: f.encodeAddress(v._number, r + c),
+ row: v._number,
+ col: r + c
+ }).value = a);
+ });
+ } else
+ this._worksheet.eachColumnKey(function(a, r) {
+ s[r] !== void 0 && (v.getCellEx({
+ address: f.encodeAddress(v._number, a.number),
+ row: v._number,
+ col: a.number
+ }).value = s[r]);
+ });
+ }
+ // returns true if the row includes at least one cell with a value
+ }, {
+ key: "hasValues",
+ get: function() {
+ return b.some(this._cells, function(s) {
+ return s && s.type !== w.ValueType.Null;
+ });
+ }
+ }, {
+ key: "cellCount",
+ get: function() {
+ return this._cells.length;
+ }
+ }, {
+ key: "actualCellCount",
+ get: function() {
+ var s = 0;
+ return this.eachCell(function() {
+ s++;
+ }), s;
+ }
+ // get the min and max column number for the non-null cells in this row or null
+ }, {
+ key: "dimensions",
+ get: function() {
+ var s = 0, v = 0;
+ return this._cells.forEach(function(c) {
+ c && c.type !== w.ValueType.Null && ((!s || s > c.col) && (s = c.col), v < c.col && (v = c.col));
+ }), s > 0 ? {
+ min: s,
+ max: v
+ } : null;
+ }
+ }, {
+ key: "numFmt",
+ get: function() {
+ return this.style.numFmt;
+ },
+ set: function(s) {
+ this._applyStyle("numFmt", s);
+ }
+ }, {
+ key: "font",
+ get: function() {
+ return this.style.font;
+ },
+ set: function(s) {
+ this._applyStyle("font", s);
+ }
+ }, {
+ key: "alignment",
+ get: function() {
+ return this.style.alignment;
+ },
+ set: function(s) {
+ this._applyStyle("alignment", s);
+ }
+ }, {
+ key: "protection",
+ get: function() {
+ return this.style.protection;
+ },
+ set: function(s) {
+ this._applyStyle("protection", s);
+ }
+ }, {
+ key: "border",
+ get: function() {
+ return this.style.border;
+ },
+ set: function(s) {
+ this._applyStyle("border", s);
+ }
+ }, {
+ key: "fill",
+ get: function() {
+ return this.style.fill;
+ },
+ set: function(s) {
+ this._applyStyle("fill", s);
+ }
+ }, {
+ key: "hidden",
+ get: function() {
+ return !!this._hidden;
+ },
+ set: function(s) {
+ this._hidden = s;
+ }
+ }, {
+ key: "outlineLevel",
+ get: function() {
+ return this._outlineLevel || 0;
+ },
+ set: function(s) {
+ this._outlineLevel = s;
+ }
+ }, {
+ key: "collapsed",
+ get: function() {
+ return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelRow);
+ }
+ // =========================================================================
+ }, {
+ key: "model",
+ get: function() {
+ var s = [], v = 0, c = 0;
+ return this._cells.forEach(function(a) {
+ if (a) {
+ var r = a.model;
+ r && ((!v || v > a.col) && (v = a.col), c < a.col && (c = a.col), s.push(r));
+ }
+ }), this.height || s.length ? {
+ cells: s,
+ number: this.number,
+ min: v,
+ max: c,
+ height: this.height,
+ style: this.style,
+ hidden: this.hidden,
+ outlineLevel: this.outlineLevel,
+ collapsed: this.collapsed
+ } : null;
+ },
+ set: function(s) {
+ var v = this;
+ if (s.number !== this._number)
+ throw new Error("Invalid row number in model");
+ this._cells = [];
+ var c;
+ s.cells.forEach(function(a) {
+ switch (a.type) {
+ case y.Types.Merge:
+ break;
+ default: {
+ var r;
+ if (a.address)
+ r = f.decodeAddress(a.address);
+ else if (c) {
+ var t = c, i = t.row, n = c.col + 1;
+ r = {
+ row: i,
+ col: n,
+ address: f.encodeAddress(i, n),
+ $col$row: "$".concat(f.n2l(n), "$").concat(i)
+ };
+ }
+ c = r;
+ var o = v.getCellEx(r);
+ o.model = a;
+ break;
+ }
+ }
+ }), s.height ? this.height = s.height : delete this.height, this.hidden = s.hidden, this.outlineLevel = s.outlineLevel || 0, this.style = s.style && JSON.parse(JSON.stringify(s.style)) || {};
+ }
+ }]), l;
+ }();
+ x.exports = h;
+ }, { "../utils/col-cache": 19, "../utils/under-dash": 25, "./cell": 3, "./enums": 7 }], 12: [function(e, x, _) {
+ function u(y, h) {
+ if (!(y instanceof h))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(y, h) {
+ for (var l = 0; l < h.length; l++) {
+ var d = h[l];
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d);
+ }
+ }
+ function g(y, h, l) {
+ return h && m(y.prototype, h), l && m(y, l), y;
+ }
+ var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() {
+ function y(h, l, d) {
+ u(this, y), this.table = h, this.column = l, this.index = d;
+ }
+ return g(y, [{
+ key: "_set",
+ value: function(l, d) {
+ this.table.cacheState(), this.column[l] = d;
+ }
+ /* eslint-disable lines-between-class-members */
+ }, {
+ key: "name",
+ get: function() {
+ return this.column.name;
+ },
+ set: function(l) {
+ this._set("name", l);
+ }
+ }, {
+ key: "filterButton",
+ get: function() {
+ return this.column.filterButton;
+ },
+ set: function(l) {
+ this.column.filterButton = l;
+ }
+ }, {
+ key: "style",
+ get: function() {
+ return this.column.style;
+ },
+ set: function(l) {
+ this.column.style = l;
+ }
+ }, {
+ key: "totalsRowLabel",
+ get: function() {
+ return this.column.totalsRowLabel;
+ },
+ set: function(l) {
+ this._set("totalsRowLabel", l);
+ }
+ }, {
+ key: "totalsRowFunction",
+ get: function() {
+ return this.column.totalsRowFunction;
+ },
+ set: function(l) {
+ this._set("totalsRowFunction", l);
+ }
+ }, {
+ key: "totalsRowResult",
+ get: function() {
+ return this.column.totalsRowResult;
+ },
+ set: function(l) {
+ this._set("totalsRowResult", l);
+ }
+ }, {
+ key: "totalsRowFormula",
+ get: function() {
+ return this.column.totalsRowFormula;
+ },
+ set: function(l) {
+ this._set("totalsRowFormula", l);
+ }
+ /* eslint-enable lines-between-class-members */
+ }]), y;
+ }(), f = /* @__PURE__ */ function() {
+ function y(h, l) {
+ u(this, y), this.worksheet = h, l && (this.table = l, this.validate(), this.store());
+ }
+ return g(y, [{
+ key: "getFormula",
+ value: function(l) {
+ switch (l.totalsRowFunction) {
+ case "none":
+ return null;
+ case "average":
+ return "SUBTOTAL(101,".concat(this.table.name, "[").concat(l.name, "])");
+ case "countNums":
+ return "SUBTOTAL(102,".concat(this.table.name, "[").concat(l.name, "])");
+ case "count":
+ return "SUBTOTAL(103,".concat(this.table.name, "[").concat(l.name, "])");
+ case "max":
+ return "SUBTOTAL(104,".concat(this.table.name, "[").concat(l.name, "])");
+ case "min":
+ return "SUBTOTAL(105,".concat(this.table.name, "[").concat(l.name, "])");
+ case "stdDev":
+ return "SUBTOTAL(106,".concat(this.table.name, "[").concat(l.name, "])");
+ case "var":
+ return "SUBTOTAL(107,".concat(this.table.name, "[").concat(l.name, "])");
+ case "sum":
+ return "SUBTOTAL(109,".concat(this.table.name, "[").concat(l.name, "])");
+ case "custom":
+ return l.totalsRowFormula;
+ default:
+ throw new Error("Invalid Totals Row Function: ".concat(l.totalsRowFunction));
+ }
+ }
+ }, {
+ key: "validate",
+ value: function() {
+ var l = this, d = this.table, s = function(p, O, P) {
+ p[O] === void 0 && (p[O] = P);
+ };
+ s(d, "headerRow", !0), s(d, "totalsRow", !1), s(d, "style", {}), s(d.style, "theme", "TableStyleMedium2"), s(d.style, "showFirstColumn", !1), s(d.style, "showLastColumn", !1), s(d.style, "showRowStripes", !1), s(d.style, "showColumnStripes", !1);
+ var v = function(p, O) {
+ if (!p)
+ throw new Error(O);
+ };
+ v(d.ref, "Table must have ref"), v(d.columns, "Table must have column definitions"), v(d.rows, "Table must have row definitions"), d.tl = b.decodeAddress(d.ref);
+ var c = d.tl, a = c.row, r = c.col;
+ v(a > 0, "Table must be on valid row"), v(r > 0, "Table must be on valid col");
+ var t = this.width, i = this.filterHeight, n = this.tableHeight;
+ d.autoFilterRef = b.encode(a, r, a + i - 1, r + t - 1), d.tableRef = b.encode(a, r, a + n - 1, r + t - 1), d.columns.forEach(function(o, p) {
+ v(o.name, "Column ".concat(p, " must have a name")), p === 0 ? s(o, "totalsRowLabel", "Total") : (s(o, "totalsRowFunction", "none"), o.totalsRowFormula = l.getFormula(o));
+ });
+ }
+ }, {
+ key: "store",
+ value: function() {
+ var l = this, d = function(p, O) {
+ O && Object.keys(O).forEach(function(P) {
+ p[P] = O[P];
+ });
+ }, s = this.worksheet, v = this.table, c = v.tl, a = c.row, r = c.col, t = 0;
+ if (v.headerRow) {
+ var i = s.getRow(a + t++);
+ v.columns.forEach(function(o, p) {
+ var O = o.style, P = o.name, F = i.getCell(r + p);
+ F.value = P, d(F, O);
+ });
+ }
+ if (v.rows.forEach(function(o) {
+ var p = s.getRow(a + t++);
+ o.forEach(function(O, P) {
+ var F = p.getCell(r + P);
+ F.value = O, d(F, v.columns[P].style);
+ });
+ }), v.totalsRow) {
+ var n = s.getRow(a + t++);
+ v.columns.forEach(function(o, p) {
+ var O = n.getCell(r + p);
+ if (p === 0)
+ O.value = o.totalsRowLabel;
+ else {
+ var P = l.getFormula(o);
+ P ? O.value = {
+ formula: o.totalsRowFormula,
+ result: o.totalsRowResult
+ } : O.value = null;
+ }
+ d(O, o.style);
+ });
+ }
+ }
+ }, {
+ key: "load",
+ value: function(l) {
+ var d = this, s = this.table, v = s.tl, c = v.row, a = v.col, r = 0;
+ if (s.headerRow) {
+ var t = l.getRow(c + r++);
+ s.columns.forEach(function(n, o) {
+ var p = t.getCell(a + o);
+ p.value = n.name;
+ });
+ }
+ if (s.rows.forEach(function(n) {
+ var o = l.getRow(c + r++);
+ n.forEach(function(p, O) {
+ var P = o.getCell(a + O);
+ P.value = p;
+ });
+ }), s.totalsRow) {
+ var i = l.getRow(c + r++);
+ s.columns.forEach(function(n, o) {
+ var p = i.getCell(a + o);
+ if (o === 0)
+ p.value = n.totalsRowLabel;
+ else {
+ var O = d.getFormula(n);
+ O && (p.value = {
+ formula: n.totalsRowFormula,
+ result: n.totalsRowResult
+ });
+ }
+ });
+ }
+ }
+ }, {
+ key: "cacheState",
+ // ================================================================
+ // TODO: Mutating methods
+ value: function() {
+ this._cache || (this._cache = {
+ ref: this.ref,
+ width: this.width,
+ tableHeight: this.tableHeight
+ });
+ }
+ }, {
+ key: "commit",
+ value: function() {
+ if (this._cache) {
+ this.validate();
+ var l = b.decodeAddress(this._cache.ref);
+ if (this.ref !== this._cache.ref)
+ for (var d = 0; d < this._cache.tableHeight; d++)
+ for (var s = this.worksheet.getRow(l.row + d), v = 0; v < this._cache.width; v++) {
+ var c = s.getCell(l.col + v);
+ c.value = null;
+ }
+ else {
+ for (var a = this.tableHeight; a < this._cache.tableHeight; a++)
+ for (var r = this.worksheet.getRow(l.row + a), t = 0; t < this._cache.width; t++) {
+ var i = r.getCell(l.col + t);
+ i.value = null;
+ }
+ for (var n = 0; n < this.tableHeight; n++)
+ for (var o = this.worksheet.getRow(l.row + n), p = this.width; p < this._cache.width; p++) {
+ var O = o.getCell(l.col + p);
+ O.value = null;
+ }
+ }
+ this.store();
+ }
+ }
+ }, {
+ key: "addRow",
+ value: function(l, d) {
+ this.cacheState(), d === void 0 ? this.table.rows.push(l) : this.table.rows.splice(d, 0, l);
+ }
+ }, {
+ key: "removeRows",
+ value: function(l) {
+ var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
+ this.cacheState(), this.table.rows.splice(l, d);
+ }
+ }, {
+ key: "getColumn",
+ value: function(l) {
+ var d = this.table.columns[l];
+ return new w(this, d, l);
+ }
+ }, {
+ key: "addColumn",
+ value: function(l, d, s) {
+ this.cacheState(), s === void 0 ? (this.table.columns.push(l), this.table.rows.forEach(function(v, c) {
+ v.push(d[c]);
+ })) : (this.table.columns.splice(s, 0, l), this.table.rows.forEach(function(v, c) {
+ v.splice(s, 0, d[c]);
+ }));
+ }
+ }, {
+ key: "removeColumns",
+ value: function(l) {
+ var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
+ this.cacheState(), this.table.columns.splice(l, d), this.table.rows.forEach(function(s) {
+ s.splice(l, d);
+ });
+ }
+ }, {
+ key: "_assign",
+ value: function(l, d, s) {
+ this.cacheState(), l[d] = s;
+ }
+ /* eslint-disable lines-between-class-members */
+ }, {
+ key: "width",
+ get: function() {
+ return this.table.columns.length;
+ }
+ }, {
+ key: "height",
+ get: function() {
+ return this.table.rows.length;
+ }
+ }, {
+ key: "filterHeight",
+ get: function() {
+ return this.height + (this.table.headerRow ? 1 : 0);
+ }
+ }, {
+ key: "tableHeight",
+ get: function() {
+ return this.filterHeight + (this.table.totalsRow ? 1 : 0);
+ }
+ }, {
+ key: "model",
+ get: function() {
+ return this.table;
+ },
+ set: function(l) {
+ this.table = l;
+ }
+ }, {
+ key: "ref",
+ get: function() {
+ return this.table.ref;
+ },
+ set: function(l) {
+ this._assign(this.table, "ref", l);
+ }
+ }, {
+ key: "name",
+ get: function() {
+ return this.table.name;
+ },
+ set: function(l) {
+ this.table.name = l;
+ }
+ }, {
+ key: "displayName",
+ get: function() {
+ return this.table.displyName || this.table.name;
+ }
+ }, {
+ key: "displayNamename",
+ set: function(l) {
+ this.table.displayName = l;
+ }
+ }, {
+ key: "headerRow",
+ get: function() {
+ return this.table.headerRow;
+ },
+ set: function(l) {
+ this._assign(this.table, "headerRow", l);
+ }
+ }, {
+ key: "totalsRow",
+ get: function() {
+ return this.table.totalsRow;
+ },
+ set: function(l) {
+ this._assign(this.table, "totalsRow", l);
+ }
+ }, {
+ key: "theme",
+ get: function() {
+ return this.table.style.name;
+ },
+ set: function(l) {
+ this.table.style.name = l;
+ }
+ }, {
+ key: "showFirstColumn",
+ get: function() {
+ return this.table.style.showFirstColumn;
+ },
+ set: function(l) {
+ this.table.style.showFirstColumn = l;
+ }
+ }, {
+ key: "showLastColumn",
+ get: function() {
+ return this.table.style.showLastColumn;
+ },
+ set: function(l) {
+ this.table.style.showLastColumn = l;
+ }
+ }, {
+ key: "showRowStripes",
+ get: function() {
+ return this.table.style.showRowStripes;
+ },
+ set: function(l) {
+ this.table.style.showRowStripes = l;
+ }
+ }, {
+ key: "showColumnStripes",
+ get: function() {
+ return this.table.style.showColumnStripes;
+ },
+ set: function(l) {
+ this.table.style.showColumnStripes = l;
+ }
+ /* eslint-enable lines-between-class-members */
+ }]), y;
+ }();
+ x.exports = f;
+ }, { "../utils/col-cache": 19 }], 13: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ var b = e("./worksheet"), w = e("./defined-names"), f = e("../xlsx/xlsx"), y = e("../csv/csv"), h = /* @__PURE__ */ function() {
+ function l() {
+ u(this, l), this.category = "", this.company = "", this.created = /* @__PURE__ */ new Date(), this.description = "", this.keywords = "", this.manager = "", this.modified = this.created, this.properties = {}, this.calcProperties = {}, this._worksheets = [], this.subject = "", this.title = "", this.views = [], this.media = [], this._definedNames = new w();
+ }
+ return g(l, [{
+ key: "addWorksheet",
+ value: function(s, v) {
+ var c = this.nextId;
+ if (s && s.length > 31 && console.warn("Worksheet name ".concat(s, " exceeds 31 chars. This will be truncated")), /[*?:/\\[\]]/.test(s))
+ throw new Error("Worksheet name ".concat(s, " cannot include any of the following characters: * ? : \\ / [ ]"));
+ if (/(^')|('$)/.test(s))
+ throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(s));
+ if (s = (s || "sheet".concat(c)).substring(0, 31), this._worksheets.find(function(i) {
+ return i && i.name.toLowerCase() === s.toLowerCase();
+ }))
+ throw new Error("Worksheet name already exists: ".concat(s));
+ v && (typeof v == "string" ? (console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'), v = {
+ properties: {
+ tabColor: {
+ argb: v
+ }
+ }
+ }) : (v.argb || v.theme || v.indexed) && (console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"), v = {
+ properties: {
+ tabColor: v
+ }
+ }));
+ var a = this._worksheets.reduce(function(i, n) {
+ return (n && n.orderNo) > i ? n.orderNo : i;
+ }, 0), r = Object.assign({}, v, {
+ id: c,
+ name: s,
+ orderNo: a + 1,
+ workbook: this
+ }), t = new b(r);
+ return this._worksheets[c] = t, t;
+ }
+ }, {
+ key: "removeWorksheetEx",
+ value: function(s) {
+ delete this._worksheets[s.id];
+ }
+ }, {
+ key: "removeWorksheet",
+ value: function(s) {
+ var v = this.getWorksheet(s);
+ v && v.destroy();
+ }
+ }, {
+ key: "getWorksheet",
+ value: function(s) {
+ if (s === void 0)
+ return this._worksheets.find(Boolean);
+ if (typeof s == "number")
+ return this._worksheets[s];
+ if (typeof s == "string")
+ return this._worksheets.find(function(v) {
+ return v && v.name === s;
+ });
+ }
+ }, {
+ key: "eachSheet",
+ value: function(s) {
+ this.worksheets.forEach(function(v) {
+ s(v, v.id);
+ });
+ }
+ }, {
+ key: "clearThemes",
+ value: function() {
+ this._themes = void 0;
+ }
+ }, {
+ key: "addImage",
+ value: function(s) {
+ var v = this.media.length;
+ return this.media.push(Object.assign({}, s, {
+ type: "image"
+ })), v;
+ }
+ }, {
+ key: "getImage",
+ value: function(s) {
+ return this.media[s];
+ }
+ }, {
+ key: "xlsx",
+ get: function() {
+ return this._xlsx || (this._xlsx = new f(this)), this._xlsx;
+ }
+ }, {
+ key: "csv",
+ get: function() {
+ return this._csv || (this._csv = new y(this)), this._csv;
+ }
+ }, {
+ key: "nextId",
+ get: function() {
+ for (var s = 1; s < this._worksheets.length; s++)
+ if (!this._worksheets[s])
+ return s;
+ return this._worksheets.length || 1;
+ }
+ }, {
+ key: "worksheets",
+ get: function() {
+ return this._worksheets.slice(1).sort(function(s, v) {
+ return s.orderNo - v.orderNo;
+ }).filter(Boolean);
+ }
+ }, {
+ key: "definedNames",
+ get: function() {
+ return this._definedNames;
+ }
+ }, {
+ key: "model",
+ get: function() {
+ return {
+ creator: this.creator || "Unknown",
+ lastModifiedBy: this.lastModifiedBy || "Unknown",
+ lastPrinted: this.lastPrinted,
+ created: this.created,
+ modified: this.modified,
+ properties: this.properties,
+ worksheets: this.worksheets.map(function(s) {
+ return s.model;
+ }),
+ sheets: this.worksheets.map(function(s) {
+ return s.model;
+ }).filter(Boolean),
+ definedNames: this._definedNames.model,
+ views: this.views,
+ company: this.company,
+ manager: this.manager,
+ title: this.title,
+ subject: this.subject,
+ keywords: this.keywords,
+ category: this.category,
+ description: this.description,
+ language: this.language,
+ revision: this.revision,
+ contentStatus: this.contentStatus,
+ themes: this._themes,
+ media: this.media,
+ calcProperties: this.calcProperties
+ };
+ },
+ set: function(s) {
+ var v = this;
+ this.creator = s.creator, this.lastModifiedBy = s.lastModifiedBy, this.lastPrinted = s.lastPrinted, this.created = s.created, this.modified = s.modified, this.company = s.company, this.manager = s.manager, this.title = s.title, this.subject = s.subject, this.keywords = s.keywords, this.category = s.category, this.description = s.description, this.language = s.language, this.revision = s.revision, this.contentStatus = s.contentStatus, this.properties = s.properties, this.calcProperties = s.calcProperties, this._worksheets = [], s.worksheets.forEach(function(c) {
+ var a = c.id, r = c.name, t = c.state, i = s.sheets && s.sheets.findIndex(function(o) {
+ return o.id === a;
+ }), n = v._worksheets[a] = new b({
+ id: a,
+ name: r,
+ orderNo: i,
+ state: t,
+ workbook: v
+ });
+ n.model = c;
+ }), this._definedNames.model = s.definedNames, this.views = s.views, this._themes = s.themes, this.media = s.media || [];
+ }
+ }]), l;
+ }();
+ x.exports = h;
+ }, { "../csv/csv": 1, "../xlsx/xlsx": 141, "./defined-names": 6, "./worksheet": 14 }], 14: [function(e, x, _) {
+ function u(z, N) {
+ var M = Object.keys(z);
+ if (Object.getOwnPropertySymbols) {
+ var I = Object.getOwnPropertySymbols(z);
+ N && (I = I.filter(function(R) {
+ return Object.getOwnPropertyDescriptor(z, R).enumerable;
+ })), M.push.apply(M, I);
+ }
+ return M;
+ }
+ function m(z) {
+ for (var N = 1; N < arguments.length; N++) {
+ var M = arguments[N] != null ? arguments[N] : {};
+ N % 2 ? u(Object(M), !0).forEach(function(I) {
+ g(z, I, M[I]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(z, Object.getOwnPropertyDescriptors(M)) : u(Object(M)).forEach(function(I) {
+ Object.defineProperty(z, I, Object.getOwnPropertyDescriptor(M, I));
+ });
+ }
+ return z;
+ }
+ function g(z, N, M) {
+ return N in z ? Object.defineProperty(z, N, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : z[N] = M, z;
+ }
+ function b(z) {
+ return h(z) || y(z) || f(z) || w();
+ }
+ function w() {
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function f(z, N) {
+ if (z) {
+ if (typeof z == "string")
+ return l(z, N);
+ var M = Object.prototype.toString.call(z).slice(8, -1);
+ if (M === "Object" && z.constructor && (M = z.constructor.name), M === "Map" || M === "Set")
+ return Array.from(z);
+ if (M === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))
+ return l(z, N);
+ }
+ }
+ function y(z) {
+ if (typeof Symbol != "undefined" && Symbol.iterator in Object(z))
+ return Array.from(z);
+ }
+ function h(z) {
+ if (Array.isArray(z))
+ return l(z);
+ }
+ function l(z, N) {
+ (N == null || N > z.length) && (N = z.length);
+ for (var M = 0, I = new Array(N); M < N; M++)
+ I[M] = z[M];
+ return I;
+ }
+ function d(z, N) {
+ if (!(z instanceof N))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function s(z, N) {
+ for (var M = 0; M < N.length; M++) {
+ var I = N[M];
+ I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I);
+ }
+ }
+ function v(z, N, M) {
+ return N && s(z.prototype, N), M && s(z, M), z;
+ }
+ var c = e("../utils/under-dash"), a = e("../utils/col-cache"), r = e("./range"), t = e("./row"), i = e("./column"), n = e("./enums"), o = e("./image"), p = e("./table"), O = e("./data-validations"), P = e("../utils/encryptor"), F = /* @__PURE__ */ function() {
+ function z(N) {
+ d(this, z), N = N || {}, this.id = N.id, this.orderNo = N.orderNo, this.name = N.name || "Sheet".concat(this.id), this.state = N.state || "visible", this._rows = [], this._columns = null, this._keys = {}, this._merges = {}, this.rowBreaks = [], this._workbook = N.workbook, this.properties = Object.assign({}, {
+ defaultRowHeight: 15,
+ dyDescent: 55,
+ outlineLevelCol: 0,
+ outlineLevelRow: 0
+ }, N.properties), this.pageSetup = Object.assign({}, {
+ margins: {
+ left: 0.7,
+ right: 0.7,
+ top: 0.75,
+ bottom: 0.75,
+ header: 0.3,
+ footer: 0.3
+ },
+ orientation: "portrait",
+ horizontalDpi: 4294967295,
+ verticalDpi: 4294967295,
+ fitToPage: !!(N.pageSetup && (N.pageSetup.fitToWidth || N.pageSetup.fitToHeight) && !N.pageSetup.scale),
+ pageOrder: "downThenOver",
+ blackAndWhite: !1,
+ draft: !1,
+ cellComments: "None",
+ errors: "displayed",
+ scale: 100,
+ fitToWidth: 1,
+ fitToHeight: 1,
+ paperSize: void 0,
+ showRowColHeaders: !1,
+ showGridLines: !1,
+ firstPageNumber: void 0,
+ horizontalCentered: !1,
+ verticalCentered: !1,
+ rowBreaks: null,
+ colBreaks: null
+ }, N.pageSetup), this.headerFooter = Object.assign({}, {
+ differentFirst: !1,
+ differentOddEven: !1,
+ oddHeader: null,
+ oddFooter: null,
+ evenHeader: null,
+ evenFooter: null,
+ firstHeader: null,
+ firstFooter: null
+ }, N.headerFooter), this.dataValidations = new O(), this.views = N.views || [], this.autoFilter = N.autoFilter || null, this._media = [], this.sheetProtection = null, this.tables = {}, this.conditionalFormattings = [];
+ }
+ return v(z, [{
+ key: "destroy",
+ // when you're done with this worksheet, call this to remove from workbook
+ value: function() {
+ this._workbook.removeWorksheetEx(this);
+ }
+ // Get the bounding range of the cells in this worksheet
+ }, {
+ key: "getColumnKey",
+ value: function(M) {
+ return this._keys[M];
+ }
+ }, {
+ key: "setColumnKey",
+ value: function(M, I) {
+ this._keys[M] = I;
+ }
+ }, {
+ key: "deleteColumnKey",
+ value: function(M) {
+ delete this._keys[M];
+ }
+ }, {
+ key: "eachColumnKey",
+ value: function(M) {
+ c.each(this._keys, M);
+ }
+ // get a single column by col number. If it doesn't exist, create it and any gaps before it
+ }, {
+ key: "getColumn",
+ value: function(M) {
+ if (typeof M == "string") {
+ var I = this._keys[M];
+ if (I)
+ return I;
+ M = a.l2n(M);
+ }
+ if (this._columns || (this._columns = []), M > this._columns.length)
+ for (var R = this._columns.length + 1; R <= M; )
+ this._columns.push(new i(this, R++));
+ return this._columns[M - 1];
+ }
+ }, {
+ key: "spliceColumns",
+ value: function(M, I) {
+ for (var R = this, C = this._rows, E = C.length, A = arguments.length, L = new Array(A > 2 ? A - 2 : 0), $ = 2; $ < A; $++)
+ L[$ - 2] = arguments[$];
+ if (L.length > 0)
+ for (var W = function(ve) {
+ var ge = [M, I];
+ L.forEach(function(J) {
+ ge.push(J[ve] || null);
+ });
+ var oe = R.getRow(ve + 1);
+ oe.splice.apply(oe, ge);
+ }, U = 0; U < E; U++)
+ W(U);
+ else
+ this._rows.forEach(function(ce) {
+ ce && ce.splice(M, I);
+ });
+ var D = L.length - I, B = M + I, j = this._columns.length;
+ if (D < 0)
+ for (var V = M + L.length; V <= j; V++)
+ this.getColumn(V).defn = this.getColumn(V - D).defn;
+ else if (D > 0)
+ for (var re = j; re >= B; re--)
+ this.getColumn(re + D).defn = this.getColumn(re).defn;
+ for (var ee = M; ee < M + L.length; ee++)
+ this.getColumn(ee).defn = null;
+ this.workbook.definedNames.spliceColumns(this.name, M, I, L.length);
+ }
+ }, {
+ key: "_commitRow",
+ // =========================================================================
+ // Rows
+ value: function() {
+ }
+ }, {
+ key: "findRow",
+ // find a row (if exists) by row number
+ value: function(M) {
+ return this._rows[M - 1];
+ }
+ // find multiple rows (if exists) by row number
+ }, {
+ key: "findRows",
+ value: function(M, I) {
+ return this._rows.slice(M - 1, M - 1 + I);
+ }
+ }, {
+ key: "getRow",
+ // get a row by row number.
+ value: function(M) {
+ var I = this._rows[M - 1];
+ return I || (I = this._rows[M - 1] = new t(this, M)), I;
+ }
+ // get multiple rows by row number.
+ }, {
+ key: "getRows",
+ value: function(M, I) {
+ if (!(I < 1)) {
+ for (var R = [], C = M; C < M + I; C++)
+ R.push(this.getRow(C));
+ return R;
+ }
+ }
+ }, {
+ key: "addRow",
+ value: function(M) {
+ var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n", R = this._nextRow, C = this.getRow(R);
+ return C.values = M, this._setStyleOption(R, I[0] === "i" ? I : "n"), C;
+ }
+ }, {
+ key: "addRows",
+ value: function(M) {
+ var I = this, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n", C = [];
+ return M.forEach(function(E) {
+ C.push(I.addRow(E, R));
+ }), C;
+ }
+ }, {
+ key: "insertRow",
+ value: function(M, I) {
+ var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "n";
+ return this.spliceRows(M, 0, I), this._setStyleOption(M, R), this.getRow(M);
+ }
+ }, {
+ key: "insertRows",
+ value: function(M, I) {
+ var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "n";
+ if (this.spliceRows.apply(this, [M, 0].concat(b(I))), R !== "n")
+ for (var C = 0; C < I.length; C++)
+ R[0] === "o" && this.findRow(I.length + M + C) !== void 0 ? this._copyStyle(I.length + M + C, M + C, R[1] === "+") : R[0] === "i" && this.findRow(M - 1) !== void 0 && this._copyStyle(M - 1, M + C, R[1] === "+");
+ return this.getRows(M, I.length);
+ }
+ // set row at position to same style as of either pervious row (option 'i') or next row (option 'o')
+ }, {
+ key: "_setStyleOption",
+ value: function(M) {
+ var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n";
+ I[0] === "o" && this.findRow(M + 1) !== void 0 ? this._copyStyle(M + 1, M, I[1] === "+") : I[0] === "i" && this.findRow(M - 1) !== void 0 && this._copyStyle(M - 1, M, I[1] === "+");
+ }
+ }, {
+ key: "_copyStyle",
+ value: function(M, I) {
+ var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, C = this.getRow(M), E = this.getRow(I);
+ E.style = Object.freeze(m({}, C.style)), C.eachCell({
+ includeEmpty: R
+ }, function(A, L) {
+ E.getCell(L).style = Object.freeze(m({}, A.style));
+ }), E.height = C.height;
+ }
+ }, {
+ key: "duplicateRow",
+ value: function(M, I) {
+ var R = this, C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, E = this._rows[M - 1], A = new Array(I).fill(E.values);
+ this.spliceRows.apply(this, [M + 1, C ? 0 : I].concat(b(A)));
+ for (var L = function(U) {
+ var D = R._rows[M + U];
+ D.style = E.style, D.height = E.height, E.eachCell({
+ includeEmpty: !0
+ }, function(B, j) {
+ D.getCell(j).style = B.style;
+ });
+ }, $ = 0; $ < I; $++)
+ L($);
+ }
+ }, {
+ key: "spliceRows",
+ value: function(M, I) {
+ for (var R = this, C = M + I, E = arguments.length, A = new Array(E > 2 ? E - 2 : 0), L = 2; L < E; L++)
+ A[L - 2] = arguments[L];
+ var $ = A.length, W = $ - I, U = this._rows.length, D, B;
+ if (W < 0)
+ for (D = C; D <= U; D++)
+ B = this._rows[D - 1], B ? function() {
+ var V = R.getRow(D + W);
+ V.values = B.values, V.style = B.style, V.height = B.height, B.eachCell({
+ includeEmpty: !0
+ }, function(re, ee) {
+ V.getCell(ee).style = re.style;
+ }), R._rows[D - 1] = void 0;
+ }() : this._rows[D + W - 1] = void 0;
+ else if (W > 0)
+ for (D = U; D >= C; D--)
+ B = this._rows[D - 1], B ? function() {
+ var V = R.getRow(D + W);
+ V.values = B.values, V.style = B.style, V.height = B.height, B.eachCell({
+ includeEmpty: !0
+ }, function(re, ee) {
+ if (V.getCell(ee).style = re.style, re._value.constructor.name === "MergeValue") {
+ var ce = R.getRow(re._row._number + $).getCell(ee), ve = re._value._master, ge = R.getRow(ve._row._number + $).getCell(ve._column._number);
+ ce.merge(ge);
+ }
+ });
+ }() : this._rows[D + W - 1] = void 0;
+ for (D = 0; D < $; D++) {
+ var j = this.getRow(M + D);
+ j.style = {}, j.values = A[D];
+ }
+ this.workbook.definedNames.spliceRows(this.name, M, I, $);
+ }
+ // iterate over every row in the worksheet, including maybe empty rows
+ }, {
+ key: "eachRow",
+ value: function(M, I) {
+ if (I || (I = M, M = void 0), M && M.includeEmpty)
+ for (var R = this._rows.length, C = 1; C <= R; C++)
+ I(this.getRow(C), C);
+ else
+ this._rows.forEach(function(E) {
+ E && E.hasValues && I(E, E.number);
+ });
+ }
+ // return all rows as sparse array
+ }, {
+ key: "getSheetValues",
+ value: function() {
+ var M = [];
+ return this._rows.forEach(function(I) {
+ I && (M[I.number] = I.values);
+ }), M;
+ }
+ // =========================================================================
+ // Cells
+ // returns the cell at [r,c] or address given by r. If not found, return undefined
+ }, {
+ key: "findCell",
+ value: function(M, I) {
+ var R = a.getAddress(M, I), C = this._rows[R.row - 1];
+ return C ? C.findCell(R.col) : void 0;
+ }
+ // return the cell at [r,c] or address given by r. If not found, create a new one.
+ }, {
+ key: "getCell",
+ value: function(M, I) {
+ var R = a.getAddress(M, I), C = this.getRow(R.row);
+ return C.getCellEx(R);
+ }
+ // =========================================================================
+ // Merge
+ // convert the range defined by ['tl:br'], [tl,br] or [t,l,b,r] into a single 'merged' cell
+ }, {
+ key: "mergeCells",
+ value: function() {
+ for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++)
+ I[R] = arguments[R];
+ var C = new r(I);
+ this._mergeCellsInternal(C);
+ }
+ }, {
+ key: "mergeCellsWithoutStyle",
+ value: function() {
+ for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++)
+ I[R] = arguments[R];
+ var C = new r(I);
+ this._mergeCellsInternal(C, !0);
+ }
+ }, {
+ key: "_mergeCellsInternal",
+ value: function(M, I) {
+ c.each(this._merges, function(A) {
+ if (A.intersects(M))
+ throw new Error("Cannot merge already merged cells");
+ });
+ for (var R = this.getCell(M.top, M.left), C = M.top; C <= M.bottom; C++)
+ for (var E = M.left; E <= M.right; E++)
+ (C > M.top || E > M.left) && this.getCell(C, E).merge(R, I);
+ this._merges[R.address] = M;
+ }
+ }, {
+ key: "_unMergeMaster",
+ value: function(M) {
+ var I = this._merges[M.address];
+ if (I) {
+ for (var R = I.top; R <= I.bottom; R++)
+ for (var C = I.left; C <= I.right; C++)
+ this.getCell(R, C).unmerge();
+ delete this._merges[M.address];
+ }
+ }
+ }, {
+ key: "unMergeCells",
+ // scan the range defined by ['tl:br'], [tl,br] or [t,l,b,r] and if any cell is part of a merge,
+ // un-merge the group. Note this function can affect multiple merges and merge-blocks are
+ // atomic - either they're all merged or all un-merged.
+ value: function() {
+ for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++)
+ I[R] = arguments[R];
+ for (var C = new r(I), E = C.top; E <= C.bottom; E++)
+ for (var A = C.left; A <= C.right; A++) {
+ var L = this.findCell(E, A);
+ L && (L.type === n.ValueType.Merge ? this._unMergeMaster(L.master) : this._merges[L.address] && this._unMergeMaster(L));
+ }
+ }
+ // ===========================================================================
+ // Shared/Array Formula
+ }, {
+ key: "fillFormula",
+ value: function(M, I, R) {
+ var C = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "shared", E = a.decode(M), A = E.top, L = E.left, $ = E.bottom, W = E.right, U = W - L + 1, D = a.encodeAddress(A, L), B = C === "shared", j;
+ typeof R == "function" ? j = R : Array.isArray(R) ? Array.isArray(R[0]) ? j = function(ve, ge) {
+ return R[ve - A][ge - L];
+ } : j = function(ve, ge) {
+ return R[(ve - A) * U + (ge - L)];
+ } : j = function() {
+ };
+ for (var V = !0, re = A; re <= $; re++)
+ for (var ee = L; ee <= W; ee++)
+ V ? (this.getCell(re, ee).value = {
+ shareType: C,
+ formula: I,
+ ref: M,
+ result: j(re, ee)
+ }, V = !1) : this.getCell(re, ee).value = B ? {
+ sharedFormula: D,
+ result: j(re, ee)
+ } : j(re, ee);
+ }
+ // =========================================================================
+ // Images
+ }, {
+ key: "addImage",
+ value: function(M, I) {
+ var R = {
+ type: "image",
+ imageId: M,
+ range: I
+ };
+ this._media.push(new o(this, R));
+ }
+ }, {
+ key: "getImages",
+ value: function() {
+ return this._media.filter(function(M) {
+ return M.type === "image";
+ });
+ }
+ }, {
+ key: "addBackgroundImage",
+ value: function(M) {
+ var I = {
+ type: "background",
+ imageId: M
+ };
+ this._media.push(new o(this, I));
+ }
+ }, {
+ key: "getBackgroundImageId",
+ value: function() {
+ var M = this._media.find(function(I) {
+ return I.type === "background";
+ });
+ return M && M.imageId;
+ }
+ // =========================================================================
+ // Worksheet Protection
+ }, {
+ key: "protect",
+ value: function(M, I) {
+ var R = this;
+ return new Promise(function(C) {
+ R.sheetProtection = {
+ sheet: !0
+ }, I && "spinCount" in I && (I.spinCount = Number.isFinite(I.spinCount) ? Math.round(Math.max(0, I.spinCount)) : 1e5), M && (R.sheetProtection.algorithmName = "SHA-512", R.sheetProtection.saltValue = P.randomBytes(16).toString("base64"), R.sheetProtection.spinCount = I && "spinCount" in I ? I.spinCount : 1e5, R.sheetProtection.hashValue = P.convertPasswordToHash(M, "SHA512", R.sheetProtection.saltValue, R.sheetProtection.spinCount)), I && (R.sheetProtection = Object.assign(R.sheetProtection, I), !M && "spinCount" in I && delete R.sheetProtection.spinCount), C();
+ });
+ }
+ }, {
+ key: "unprotect",
+ value: function() {
+ this.sheetProtection = null;
+ }
+ // =========================================================================
+ // Tables
+ }, {
+ key: "addTable",
+ value: function(M) {
+ var I = new p(this, M);
+ return this.tables[M.name] = I, I;
+ }
+ }, {
+ key: "getTable",
+ value: function(M) {
+ return this.tables[M];
+ }
+ }, {
+ key: "removeTable",
+ value: function(M) {
+ delete this.tables[M];
+ }
+ }, {
+ key: "getTables",
+ value: function() {
+ return Object.values(this.tables);
+ }
+ // ===========================================================================
+ // Conditional Formatting
+ }, {
+ key: "addConditionalFormatting",
+ value: function(M) {
+ this.conditionalFormattings.push(M);
+ }
+ }, {
+ key: "removeConditionalFormatting",
+ value: function(M) {
+ typeof M == "number" ? this.conditionalFormattings.splice(M, 1) : M instanceof Function ? this.conditionalFormattings = this.conditionalFormattings.filter(M) : this.conditionalFormattings = [];
+ }
+ // ===========================================================================
+ // Deprecated
+ }, {
+ key: "_parseRows",
+ value: function(M) {
+ var I = this;
+ this._rows = [], M.rows.forEach(function(R) {
+ var C = new t(I, R.number);
+ I._rows[C.number - 1] = C, C.model = R;
+ });
+ }
+ }, {
+ key: "_parseMergeCells",
+ value: function(M) {
+ var I = this;
+ c.each(M.mergeCells, function(R) {
+ I.mergeCellsWithoutStyle(R);
+ });
+ }
+ }, {
+ key: "workbook",
+ get: function() {
+ return this._workbook;
+ }
+ }, {
+ key: "dimensions",
+ get: function() {
+ var M = new r();
+ return this._rows.forEach(function(I) {
+ if (I) {
+ var R = I.dimensions;
+ R && M.expand(I.number, R.min, I.number, R.max);
+ }
+ }), M;
+ }
+ // =========================================================================
+ // Columns
+ // get the current columns array.
+ }, {
+ key: "columns",
+ get: function() {
+ return this._columns;
+ },
+ set: function(M) {
+ var I = this;
+ this._headerRowCount = M.reduce(function(E, A) {
+ var L = A.header && 1 || A.headers && A.headers.length || 0;
+ return Math.max(E, L);
+ }, 0);
+ var R = 1, C = this._columns = [];
+ M.forEach(function(E) {
+ var A = new i(I, R++, !1);
+ C.push(A), A.defn = E;
+ });
+ }
+ }, {
+ key: "lastColumn",
+ get: function() {
+ return this.getColumn(this.columnCount);
+ }
+ }, {
+ key: "columnCount",
+ get: function() {
+ var M = 0;
+ return this.eachRow(function(I) {
+ M = Math.max(M, I.cellCount);
+ }), M;
+ }
+ }, {
+ key: "actualColumnCount",
+ get: function() {
+ var M = [], I = 0;
+ return this.eachRow(function(R) {
+ R.eachCell(function(C) {
+ var E = C.col;
+ M[E] || (M[E] = !0, I++);
+ });
+ }), I;
+ }
+ }, {
+ key: "_lastRowNumber",
+ get: function() {
+ for (var M = this._rows, I = M.length; I > 0 && M[I - 1] === void 0; )
+ I--;
+ return I;
+ }
+ }, {
+ key: "_nextRow",
+ get: function() {
+ return this._lastRowNumber + 1;
+ }
+ }, {
+ key: "lastRow",
+ get: function() {
+ if (this._rows.length)
+ return this._rows[this._rows.length - 1];
+ }
+ }, {
+ key: "rowCount",
+ get: function() {
+ return this._lastRowNumber;
+ }
+ }, {
+ key: "actualRowCount",
+ get: function() {
+ var M = 0;
+ return this.eachRow(function() {
+ M++;
+ }), M;
+ }
+ }, {
+ key: "hasMerges",
+ get: function() {
+ return c.some(this._merges, Boolean);
+ }
+ }, {
+ key: "tabColor",
+ get: function() {
+ return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"), this.properties.tabColor;
+ },
+ set: function(M) {
+ console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"), this.properties.tabColor = M;
+ }
+ // ===========================================================================
+ // Model
+ }, {
+ key: "model",
+ get: function() {
+ var M = {
+ id: this.id,
+ name: this.name,
+ dataValidations: this.dataValidations.model,
+ properties: this.properties,
+ state: this.state,
+ pageSetup: this.pageSetup,
+ headerFooter: this.headerFooter,
+ rowBreaks: this.rowBreaks,
+ views: this.views,
+ autoFilter: this.autoFilter,
+ media: this._media.map(function(C) {
+ return C.model;
+ }),
+ sheetProtection: this.sheetProtection,
+ tables: Object.values(this.tables).map(function(C) {
+ return C.model;
+ }),
+ conditionalFormattings: this.conditionalFormattings
+ };
+ M.cols = i.toModel(this.columns);
+ var I = M.rows = [], R = M.dimensions = new r();
+ return this._rows.forEach(function(C) {
+ var E = C && C.model;
+ E && (R.expand(E.number, E.min, E.number, E.max), I.push(E));
+ }), M.merges = [], c.each(this._merges, function(C) {
+ M.merges.push(C.range);
+ }), M;
+ },
+ set: function(M) {
+ var I = this;
+ this.name = M.name, this._columns = i.fromModel(this, M.cols), this._parseRows(M), this._parseMergeCells(M), this.dataValidations = new O(M.dataValidations), this.properties = M.properties, this.pageSetup = M.pageSetup, this.headerFooter = M.headerFooter, this.views = M.views, this.autoFilter = M.autoFilter, this._media = M.media.map(function(R) {
+ return new o(I, R);
+ }), this.sheetProtection = M.sheetProtection, this.tables = M.tables.reduce(function(R, C) {
+ var E = new p();
+ return E.model = C, R[C.name] = E, R;
+ }, {}), this.conditionalFormattings = M.conditionalFormattings;
+ }
+ }]), z;
+ }();
+ x.exports = F;
+ }, { "../utils/col-cache": 19, "../utils/encryptor": 20, "../utils/under-dash": 25, "./column": 4, "./data-validations": 5, "./enums": 7, "./image": 8, "./range": 10, "./row": 11, "./table": 12 }], 15: [function(e, x, _) {
+ e("core-js/modules/es.promise"), e("core-js/modules/es.object.assign"), e("core-js/modules/es.object.keys"), e("core-js/modules/es.object.values"), e("core-js/modules/es.symbol"), e("core-js/modules/es.symbol.async-iterator"), e("core-js/modules/es.array.iterator"), e("core-js/modules/es.array.includes"), e("core-js/modules/es.array.find-index"), e("core-js/modules/es.array.find"), e("core-js/modules/es.string.from-code-point"), e("core-js/modules/es.string.includes"), e("core-js/modules/es.number.is-nan"), e("regenerator-runtime/runtime");
+ var u = {
+ Workbook: e("./doc/workbook")
+ }, m = e("./doc/enums");
+ Object.keys(m).forEach(function(g) {
+ u[g] = m[g];
+ }), x.exports = u;
+ }, { "./doc/enums": 7, "./doc/workbook": 13, "core-js/modules/es.array.find": 316, "core-js/modules/es.array.find-index": 315, "core-js/modules/es.array.includes": 317, "core-js/modules/es.array.iterator": 318, "core-js/modules/es.number.is-nan": 319, "core-js/modules/es.object.assign": 320, "core-js/modules/es.object.keys": 321, "core-js/modules/es.object.values": 322, "core-js/modules/es.promise": 323, "core-js/modules/es.string.from-code-point": 324, "core-js/modules/es.string.includes": 325, "core-js/modules/es.symbol": 327, "core-js/modules/es.symbol.async-iterator": 326, "regenerator-runtime/runtime": 492 }], 16: [function(e, x, _) {
+ var u = typeof TextDecoder == "undefined" ? null : new TextDecoder("utf-8");
+ function m(g) {
+ return typeof g == "string" ? g : u ? u.decode(g) : g.toString();
+ }
+ _.bufferToString = m;
+ }, {}], 17: [function(e, x, _) {
+ var u = typeof TextEncoder == "undefined" ? null : new TextEncoder("utf-8"), m = e("buffer"), g = m.Buffer;
+ function b(w) {
+ return typeof w != "string" ? w : u ? g.from(u.encode(w).buffer) : g.from(w);
+ }
+ _.stringToBuffer = b;
+ }, { buffer: 216 }], 18: [function(e, x, _) {
+ function u(y, h) {
+ if (!(y instanceof h))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(y, h) {
+ for (var l = 0; l < h.length; l++) {
+ var d = h[l];
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d);
+ }
+ }
+ function g(y, h, l) {
+ return h && m(y.prototype, h), l && m(y, l), y;
+ }
+ var b = e("./under-dash"), w = e("./col-cache"), f = /* @__PURE__ */ function() {
+ function y(h) {
+ u(this, y), this.template = h, this.sheets = {};
+ }
+ return g(y, [{
+ key: "addCell",
+ value: function(l) {
+ this.addCellEx(w.decodeEx(l));
+ }
+ }, {
+ key: "getCell",
+ value: function(l) {
+ return this.findCellEx(w.decodeEx(l), !0);
+ }
+ }, {
+ key: "findCell",
+ value: function(l) {
+ return this.findCellEx(w.decodeEx(l), !1);
+ }
+ }, {
+ key: "findCellAt",
+ value: function(l, d, s) {
+ var v = this.sheets[l], c = v && v[d];
+ return c && c[s];
+ }
+ }, {
+ key: "addCellEx",
+ value: function(l) {
+ if (l.top)
+ for (var d = l.top; d <= l.bottom; d++)
+ for (var s = l.left; s <= l.right; s++)
+ this.getCellAt(l.sheetName, d, s);
+ else
+ this.findCellEx(l, !0);
+ }
+ }, {
+ key: "getCellEx",
+ value: function(l) {
+ return this.findCellEx(l, !0);
+ }
+ }, {
+ key: "findCellEx",
+ value: function(l, d) {
+ var s = this.findSheet(l, d), v = this.findSheetRow(s, l, d);
+ return this.findRowCell(v, l, d);
+ }
+ }, {
+ key: "getCellAt",
+ value: function(l, d, s) {
+ var v = this.sheets[l] || (this.sheets[l] = []), c = v[d] || (v[d] = []), a = c[s] || (c[s] = {
+ sheetName: l,
+ address: w.n2l(s) + d,
+ row: d,
+ col: s
+ });
+ return a;
+ }
+ }, {
+ key: "removeCellEx",
+ value: function(l) {
+ var d = this.findSheet(l);
+ if (d) {
+ var s = this.findSheetRow(d, l);
+ s && delete s[l.col];
+ }
+ }
+ }, {
+ key: "forEachInSheet",
+ value: function(l, d) {
+ var s = this.sheets[l];
+ s && s.forEach(function(v, c) {
+ v && v.forEach(function(a, r) {
+ a && d(a, c, r);
+ });
+ });
+ }
+ }, {
+ key: "forEach",
+ value: function(l) {
+ var d = this;
+ b.each(this.sheets, function(s, v) {
+ d.forEachInSheet(v, l);
+ });
+ }
+ }, {
+ key: "map",
+ value: function(l) {
+ var d = [];
+ return this.forEach(function(s) {
+ d.push(l(s));
+ }), d;
+ }
+ }, {
+ key: "findSheet",
+ value: function(l, d) {
+ var s = l.sheetName;
+ if (this.sheets[s])
+ return this.sheets[s];
+ if (d)
+ return this.sheets[s] = [];
+ }
+ }, {
+ key: "findSheetRow",
+ value: function(l, d, s) {
+ var v = d.row;
+ if (l && l[v])
+ return l[v];
+ if (s)
+ return l[v] = [];
+ }
+ }, {
+ key: "findRowCell",
+ value: function(l, d, s) {
+ var v = d.col;
+ if (l && l[v])
+ return l[v];
+ if (s)
+ return l[v] = this.template ? Object.assign(d, JSON.parse(JSON.stringify(this.template))) : d;
+ }
+ }, {
+ key: "spliceRows",
+ value: function(l, d, s, v) {
+ var c = this.sheets[l];
+ if (c) {
+ for (var a = [], r = 0; r < v; r++)
+ a.push([]);
+ c.splice.apply(c, [d, s].concat(a));
+ }
+ }
+ }, {
+ key: "spliceColumns",
+ value: function(l, d, s, v) {
+ var c = this.sheets[l];
+ if (c) {
+ for (var a = [], r = 0; r < v; r++)
+ a.push(null);
+ b.each(c, function(t) {
+ t.splice.apply(t, [d, s].concat(a));
+ });
+ }
+ }
+ }]), y;
+ }();
+ x.exports = f;
+ }, { "./col-cache": 19, "./under-dash": 25 }], 19: [function(e, x, _) {
+ function u(v, c) {
+ return f(v) || w(v, c) || g(v, c) || m();
+ }
+ function m() {
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function g(v, c) {
+ if (v) {
+ if (typeof v == "string")
+ return b(v, c);
+ var a = Object.prototype.toString.call(v).slice(8, -1);
+ if (a === "Object" && v.constructor && (a = v.constructor.name), a === "Map" || a === "Set")
+ return Array.from(v);
+ if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
+ return b(v, c);
+ }
+ }
+ function b(v, c) {
+ (c == null || c > v.length) && (c = v.length);
+ for (var a = 0, r = new Array(c); a < c; a++)
+ r[a] = v[a];
+ return r;
+ }
+ function w(v, c) {
+ if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(v)))) {
+ var a = [], r = !0, t = !1, i = void 0;
+ try {
+ for (var n = v[Symbol.iterator](), o; !(r = (o = n.next()).done) && (a.push(o.value), !(c && a.length === c)); r = !0)
+ ;
+ } catch (p) {
+ t = !0, i = p;
+ } finally {
+ try {
+ !r && n.return != null && n.return();
+ } finally {
+ if (t)
+ throw i;
+ }
+ }
+ return a;
+ }
+ }
+ function f(v) {
+ if (Array.isArray(v))
+ return v;
+ }
+ function y(v, c) {
+ var a = Object.keys(v);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(v);
+ c && (r = r.filter(function(t) {
+ return Object.getOwnPropertyDescriptor(v, t).enumerable;
+ })), a.push.apply(a, r);
+ }
+ return a;
+ }
+ function h(v) {
+ for (var c = 1; c < arguments.length; c++) {
+ var a = arguments[c] != null ? arguments[c] : {};
+ c % 2 ? y(Object(a), !0).forEach(function(r) {
+ l(v, r, a[r]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(a)) : y(Object(a)).forEach(function(r) {
+ Object.defineProperty(v, r, Object.getOwnPropertyDescriptor(a, r));
+ });
+ }
+ return v;
+ }
+ function l(v, c, a) {
+ return c in v ? Object.defineProperty(v, c, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : v[c] = a, v;
+ }
+ var d = /^[A-Z]+\d+$/, s = {
+ _dictionary: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"],
+ _l2nFill: 0,
+ _l2n: {},
+ _n2l: [],
+ _level: function(c) {
+ return c <= 26 ? 1 : c <= 26 * 26 ? 2 : 3;
+ },
+ _fill: function(c) {
+ var a, r, t, i, n, o = 1;
+ if (c >= 4)
+ throw new Error("Out of bounds. Excel supports columns from 1 to 16384");
+ if (this._l2nFill < 1 && c >= 1) {
+ for (; o <= 26; )
+ a = this._dictionary[o - 1], this._n2l[o] = a, this._l2n[a] = o, o++;
+ this._l2nFill = 1;
+ }
+ if (this._l2nFill < 2 && c >= 2) {
+ for (o = 27; o <= 26 + 26 * 26; )
+ r = o - (26 + 1), t = r % 26, i = Math.floor(r / 26), a = this._dictionary[i] + this._dictionary[t], this._n2l[o] = a, this._l2n[a] = o, o++;
+ this._l2nFill = 2;
+ }
+ if (this._l2nFill < 3 && c >= 3) {
+ for (o = 26 + 26 * 26 + 1; o <= 16384; )
+ r = o - (26 * 26 + 26 + 1), t = r % 26, i = Math.floor(r / 26) % 26, n = Math.floor(r / (26 * 26)), a = this._dictionary[n] + this._dictionary[i] + this._dictionary[t], this._n2l[o] = a, this._l2n[a] = o, o++;
+ this._l2nFill = 3;
+ }
+ },
+ l2n: function(c) {
+ if (this._l2n[c] || this._fill(c.length), !this._l2n[c])
+ throw new Error("Out of bounds. Invalid column letter: ".concat(c));
+ return this._l2n[c];
+ },
+ n2l: function(c) {
+ if (c < 1 || c > 16384)
+ throw new Error("".concat(c, " is out of bounds. Excel supports columns from 1 to 16384"));
+ return this._n2l[c] || this._fill(this._level(c)), this._n2l[c];
+ },
+ // =========================================================================
+ // Address processing
+ _hash: {},
+ // check if value looks like an address
+ validateAddress: function(c) {
+ if (!d.test(c))
+ throw new Error("Invalid Address: ".concat(c));
+ return !0;
+ },
+ // convert address string into structure
+ decodeAddress: function(c) {
+ var a = c.length < 5 && this._hash[c];
+ if (a)
+ return a;
+ for (var r = !1, t = "", i = 0, n = !1, o = "", p = 0, O = 0, P; O < c.length; O++)
+ if (P = c.charCodeAt(O), !n && P >= 65 && P <= 90)
+ r = !0, t += c[O], i = i * 26 + P - 64;
+ else if (P >= 48 && P <= 57)
+ n = !0, o += c[O], p = p * 10 + P - 48;
+ else if (n && r && P !== 36)
+ break;
+ if (!r)
+ i = void 0;
+ else if (i > 16384)
+ throw new Error("Out of bounds. Invalid column letter: ".concat(t));
+ n || (p = void 0), c = t + o;
+ var F = {
+ address: c,
+ col: i,
+ row: p,
+ $col$row: "$".concat(t, "$").concat(o)
+ };
+ return i <= 100 && p <= 100 && (this._hash[c] = F, this._hash[F.$col$row] = F), F;
+ },
+ // convert r,c into structure (if only 1 arg, assume r is address string)
+ getAddress: function(c, a) {
+ if (a) {
+ var r = this.n2l(a) + c;
+ return this.decodeAddress(r);
+ }
+ return this.decodeAddress(c);
+ },
+ // convert [address], [tl:br] into address structures
+ decode: function(c) {
+ var a = c.split(":");
+ if (a.length === 2) {
+ var r = this.decodeAddress(a[0]), t = this.decodeAddress(a[1]), i = {
+ top: Math.min(r.row, t.row),
+ left: Math.min(r.col, t.col),
+ bottom: Math.max(r.row, t.row),
+ right: Math.max(r.col, t.col)
+ };
+ return i.tl = this.n2l(i.left) + i.top, i.br = this.n2l(i.right) + i.bottom, i.dimensions = "".concat(i.tl, ":").concat(i.br), i;
+ }
+ return this.decodeAddress(c);
+ },
+ // convert [sheetName!][$]col[$]row[[$]col[$]row] into address or range structures
+ decodeEx: function(c) {
+ var a = c.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/), r = a[1] || a[2], t = a[3], i = t.split(":");
+ if (i.length > 1) {
+ var n = this.decodeAddress(i[0]), o = this.decodeAddress(i[1]), p = Math.min(n.row, o.row), O = Math.min(n.col, o.col), P = Math.max(n.row, o.row), F = Math.max(n.col, o.col);
+ return n = this.n2l(O) + p, o = this.n2l(F) + P, {
+ top: p,
+ left: O,
+ bottom: P,
+ right: F,
+ sheetName: r,
+ tl: {
+ address: n,
+ col: O,
+ row: p,
+ $col$row: "$".concat(this.n2l(O), "$").concat(p),
+ sheetName: r
+ },
+ br: {
+ address: o,
+ col: F,
+ row: P,
+ $col$row: "$".concat(this.n2l(F), "$").concat(P),
+ sheetName: r
+ },
+ dimensions: "".concat(n, ":").concat(o)
+ };
+ }
+ if (t.startsWith("#"))
+ return r ? {
+ sheetName: r,
+ error: t
+ } : {
+ error: t
+ };
+ var z = this.decodeAddress(t);
+ return r ? h({
+ sheetName: r
+ }, z) : z;
+ },
+ // convert row,col into address string
+ encodeAddress: function(c, a) {
+ return s.n2l(a) + c;
+ },
+ // convert row,col into string address or t,l,b,r into range
+ encode: function() {
+ switch (arguments.length) {
+ case 2:
+ return s.encodeAddress(arguments[0], arguments[1]);
+ case 4:
+ return "".concat(s.encodeAddress(arguments[0], arguments[1]), ":").concat(s.encodeAddress(arguments[2], arguments[3]));
+ default:
+ throw new Error("Can only encode with 2 or 4 arguments");
+ }
+ },
+ // return true if address is contained within range
+ inRange: function(c, a) {
+ var r = u(c, 5), t = r[0], i = r[1], n = r[3], o = r[4], p = u(a, 2), O = p[0], P = p[1];
+ return O >= t && O <= n && P >= i && P <= o;
+ }
+ };
+ x.exports = s;
+ }, {}], 20: [function(e, x, _) {
+ (function(u) {
+ var m = e("crypto"), g = {
+ /**
+ * Calculate a hash of the concatenated buffers with the given algorithm.
+ * @param {string} algorithm - The hash algorithm.
+ * @returns {Buffer} The hash
+ */
+ hash: function(w) {
+ for (var f = m.createHash(w), y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), l = 1; l < y; l++)
+ h[l - 1] = arguments[l];
+ return f.update(u.concat(h)), f.digest();
+ },
+ /**
+ * Convert a password into an encryption key
+ * @param {string} password - The password
+ * @param {string} hashAlgorithm - The hash algoritm
+ * @param {string} saltValue - The salt value
+ * @param {number} spinCount - The spin count
+ * @param {number} keyBits - The length of the key in bits
+ * @param {Buffer} blockKey - The block key
+ * @returns {Buffer} The encryption key
+ */
+ convertPasswordToHash: function(w, f, y, h) {
+ f = f.toLowerCase();
+ var l = m.getHashes();
+ if (l.indexOf(f) < 0)
+ throw new Error("Hash algorithm '".concat(f, "' not supported!"));
+ for (var d = u.from(w, "utf16le"), s = this.hash(f, u.from(y, "base64"), d), v = 0; v < h; v++) {
+ var c = u.alloc(4);
+ c.writeUInt32LE(v, 0), s = this.hash(f, s, c);
+ }
+ return s.toString("base64");
+ },
+ /**
+ * Generates cryptographically strong pseudo-random data.
+ * @param size The size argument is a number indicating the number of bytes to generate.
+ */
+ randomBytes: function(w) {
+ return m.randomBytes(w);
+ }
+ };
+ x.exports = g;
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216, crypto: 335 }], 21: [function(e, x, _) {
+ function u(v) {
+ return new b(v);
+ }
+ function m(v) {
+ return function() {
+ return new g(v.apply(this, arguments));
+ };
+ }
+ function g(v) {
+ var c, a;
+ function r(n, o) {
+ return new Promise(function(p, O) {
+ var P = { key: n, arg: o, resolve: p, reject: O, next: null };
+ a ? a = a.next = P : (c = a = P, t(n, o));
+ });
+ }
+ function t(n, o) {
+ try {
+ var p = v[n](o), O = p.value, P = O instanceof b;
+ Promise.resolve(P ? O.wrapped : O).then(function(F) {
+ if (P) {
+ t(n === "return" ? "return" : "next", F);
+ return;
+ }
+ i(p.done ? "return" : "normal", F);
+ }, function(F) {
+ t("throw", F);
+ });
+ } catch (F) {
+ i("throw", F);
+ }
+ }
+ function i(n, o) {
+ switch (n) {
+ case "return":
+ c.resolve({ value: o, done: !0 });
+ break;
+ case "throw":
+ c.reject(o);
+ break;
+ default:
+ c.resolve({ value: o, done: !1 });
+ break;
+ }
+ c = c.next, c ? t(c.key, c.arg) : a = null;
+ }
+ this._invoke = r, typeof v.return != "function" && (this.return = void 0);
+ }
+ typeof Symbol == "function" && Symbol.asyncIterator && (g.prototype[Symbol.asyncIterator] = function() {
+ return this;
+ }), g.prototype.next = function(v) {
+ return this._invoke("next", v);
+ }, g.prototype.throw = function(v) {
+ return this._invoke("throw", v);
+ }, g.prototype.return = function(v) {
+ return this._invoke("return", v);
+ };
+ function b(v) {
+ this.wrapped = v;
+ }
+ function w(v) {
+ var c;
+ if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (c = v[Symbol.asyncIterator], c != null) || Symbol.iterator && (c = v[Symbol.iterator], c != null)))
+ return c.call(v);
+ throw new TypeError("Object is not async iterable");
+ }
+ var f = e("saxes"), y = f.SaxesParser, h = e("readable-stream"), l = h.PassThrough, d = e("./browser-buffer-decode"), s = d.bufferToString;
+ x.exports = /* @__PURE__ */ function() {
+ var v = m(/* @__PURE__ */ regeneratorRuntime.mark(function c(a) {
+ var r, t, i, n, o, p, O, P, F, z;
+ return regeneratorRuntime.wrap(function(M) {
+ for (; ; )
+ switch (M.prev = M.next) {
+ case 0:
+ a.pipe && !a[Symbol.asyncIterator] && (a = a.pipe(new l())), r = new y(), r.on("error", function(I) {
+ t = I;
+ }), i = [], r.on("opentag", function(I) {
+ return i.push({
+ eventType: "opentag",
+ value: I
+ });
+ }), r.on("text", function(I) {
+ return i.push({
+ eventType: "text",
+ value: I
+ });
+ }), r.on("closetag", function(I) {
+ return i.push({
+ eventType: "closetag",
+ value: I
+ });
+ }), n = !0, o = !1, M.prev = 9, O = w(a);
+ case 11:
+ return M.next = 13, u(O.next());
+ case 13:
+ return P = M.sent, n = P.done, M.next = 17, u(P.value);
+ case 17:
+ if (F = M.sent, n) {
+ M.next = 29;
+ break;
+ }
+ if (z = F, r.write(s(z)), !t) {
+ M.next = 23;
+ break;
+ }
+ throw t;
+ case 23:
+ return M.next = 25, i;
+ case 25:
+ i = [];
+ case 26:
+ n = !0, M.next = 11;
+ break;
+ case 29:
+ M.next = 35;
+ break;
+ case 31:
+ M.prev = 31, M.t0 = M.catch(9), o = !0, p = M.t0;
+ case 35:
+ if (M.prev = 35, M.prev = 36, !(!n && O.return != null)) {
+ M.next = 40;
+ break;
+ }
+ return M.next = 40, u(O.return());
+ case 40:
+ if (M.prev = 40, !o) {
+ M.next = 43;
+ break;
+ }
+ throw p;
+ case 43:
+ return M.finish(40);
+ case 44:
+ return M.finish(35);
+ case 45:
+ case "end":
+ return M.stop();
+ }
+ }, c, null, [[9, 31, 35, 45], [36, , 40, 44]]);
+ }));
+ return function(c) {
+ return v.apply(this, arguments);
+ };
+ }();
+ }, { "./browser-buffer-decode": 16, "readable-stream": 491, saxes: 496 }], 22: [function(e, x, _) {
+ var u = e("./col-cache"), m = /(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi, g = /^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;
+ function b(w, f, y) {
+ var h = u.decode(f), l = u.decode(y);
+ return w.replace(m, function(d, s, v, c, a) {
+ if (a)
+ return d;
+ var r = g.exec(c);
+ if (r) {
+ var t = r[1], i = r[2].toUpperCase(), n = r[3], o = r[4];
+ if (i.length > 3 || i.length === 3 && i > "XFD")
+ return d;
+ var p = u.l2n(i), O = parseInt(o, 10);
+ t || (p += l.col - h.col), n || (O += l.row - h.row);
+ var P = (s || "") + (t || "") + u.n2l(p) + (n || "") + O;
+ return P;
+ }
+ return d;
+ });
+ }
+ x.exports = {
+ slideFormula: b
+ };
+ }, { "./col-cache": 19 }], 23: [function(e, x, _) {
+ (function(u, m) {
+ function g(t, i, n, o, p, O, P) {
+ try {
+ var F = t[O](P), z = F.value;
+ } catch (N) {
+ n(N);
+ return;
+ }
+ F.done ? i(z) : Promise.resolve(z).then(o, p);
+ }
+ function b(t) {
+ return function() {
+ var i = this, n = arguments;
+ return new Promise(function(o, p) {
+ var O = t.apply(i, n);
+ function P(z) {
+ g(O, o, p, P, F, "next", z);
+ }
+ function F(z) {
+ g(O, o, p, P, F, "throw", z);
+ }
+ P(void 0);
+ });
+ };
+ }
+ function w(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function y(t, i, n) {
+ return i && f(t.prototype, i), n && f(t, n), t;
+ }
+ var h = e("readable-stream"), l = e("./utils"), d = e("./string-buf"), s = /* @__PURE__ */ function() {
+ function t(i, n) {
+ w(this, t), this._data = i, this._encoding = n;
+ }
+ return y(t, [{
+ key: "copy",
+ // copy to target buffer
+ value: function(n, o, p, O) {
+ return this.toBuffer().copy(n, o, p, O);
+ }
+ }, {
+ key: "toBuffer",
+ value: function() {
+ return this._buffer || (this._buffer = m.from(this._data, this._encoding)), this._buffer;
+ }
+ }, {
+ key: "length",
+ get: function() {
+ return this.toBuffer().length;
+ }
+ }]), t;
+ }(), v = /* @__PURE__ */ function() {
+ function t(i) {
+ w(this, t), this._data = i;
+ }
+ return y(t, [{
+ key: "copy",
+ // copy to target buffer
+ value: function(n, o, p, O) {
+ return this._data._buf.copy(n, o, p, O);
+ }
+ }, {
+ key: "toBuffer",
+ value: function() {
+ return this._data.toBuffer();
+ }
+ }, {
+ key: "length",
+ get: function() {
+ return this._data.length;
+ }
+ }]), t;
+ }(), c = /* @__PURE__ */ function() {
+ function t(i) {
+ w(this, t), this._data = i;
+ }
+ return y(t, [{
+ key: "copy",
+ // copy to target buffer
+ value: function(n, o, p, O) {
+ this._data.copy(n, o, p, O);
+ }
+ }, {
+ key: "toBuffer",
+ value: function() {
+ return this._data;
+ }
+ }, {
+ key: "length",
+ get: function() {
+ return this._data.length;
+ }
+ }]), t;
+ }(), a = /* @__PURE__ */ function() {
+ function t(i) {
+ w(this, t), this.size = i, this.buffer = m.alloc(i), this.iRead = 0, this.iWrite = 0;
+ }
+ return y(t, [{
+ key: "toBuffer",
+ value: function() {
+ if (this.iRead === 0 && this.iWrite === this.size)
+ return this.buffer;
+ var n = m.alloc(this.iWrite - this.iRead);
+ return this.buffer.copy(n, 0, this.iRead, this.iWrite), n;
+ }
+ }, {
+ key: "read",
+ value: function(n) {
+ var o;
+ return n === 0 ? null : n === void 0 || n >= this.length ? (o = this.toBuffer(), this.iRead = this.iWrite, o) : (o = m.alloc(n), this.buffer.copy(o, 0, this.iRead, n), this.iRead += n, o);
+ }
+ }, {
+ key: "write",
+ value: function(n, o, p) {
+ var O = Math.min(p, this.size - this.iWrite);
+ return n.copy(this.buffer, this.iWrite, o, o + O), this.iWrite += O, O;
+ }
+ }, {
+ key: "length",
+ get: function() {
+ return this.iWrite - this.iRead;
+ }
+ }, {
+ key: "eod",
+ get: function() {
+ return this.iRead === this.iWrite;
+ }
+ }, {
+ key: "full",
+ get: function() {
+ return this.iWrite === this.size;
+ }
+ }]), t;
+ }(), r = function(i) {
+ i = i || {}, this.bufSize = i.bufSize || 1024 * 1024, this.buffers = [], this.batch = i.batch || !1, this.corked = !1, this.inPos = 0, this.outPos = 0, this.pipes = [], this.paused = !1, this.encoding = null;
+ };
+ l.inherits(r, h.Duplex, {
+ toBuffer: function() {
+ switch (this.buffers.length) {
+ case 0:
+ return null;
+ case 1:
+ return this.buffers[0].toBuffer();
+ default:
+ return m.concat(this.buffers.map(function(i) {
+ return i.toBuffer();
+ }));
+ }
+ },
+ // writable
+ // event drain - if write returns false (which it won't), indicates when safe to write again.
+ // finish - end() has been called
+ // pipe(src) - pipe() has been called on readable
+ // unpipe(src) - unpipe() has been called on readable
+ // error - duh
+ _getWritableBuffer: function() {
+ if (this.buffers.length) {
+ var i = this.buffers[this.buffers.length - 1];
+ if (!i.full)
+ return i;
+ }
+ var n = new a(this.bufSize);
+ return this.buffers.push(n), n;
+ },
+ _pipe: function(i) {
+ var n = this;
+ return b(/* @__PURE__ */ regeneratorRuntime.mark(function o() {
+ var p;
+ return regeneratorRuntime.wrap(function(P) {
+ for (; ; )
+ switch (P.prev = P.next) {
+ case 0:
+ return p = function(z) {
+ return new Promise(function(N) {
+ z.write(i.toBuffer(), function() {
+ N();
+ });
+ });
+ }, P.next = 3, Promise.all(n.pipes.map(p));
+ case 3:
+ case "end":
+ return P.stop();
+ }
+ }, o);
+ }))();
+ },
+ _writeToBuffers: function(i) {
+ for (var n = 0, o = i.length; n < o; ) {
+ var p = this._getWritableBuffer();
+ n += p.write(i, n, o - n);
+ }
+ },
+ write: function(i, n, o) {
+ var p = this;
+ return b(/* @__PURE__ */ regeneratorRuntime.mark(function O() {
+ var P;
+ return regeneratorRuntime.wrap(function(z) {
+ for (; ; )
+ switch (z.prev = z.next) {
+ case 0:
+ if (n instanceof Function && (o = n, n = "utf8"), o = o || l.nop, !(i instanceof d)) {
+ z.next = 6;
+ break;
+ }
+ P = new v(i), z.next = 15;
+ break;
+ case 6:
+ if (!(i instanceof m)) {
+ z.next = 10;
+ break;
+ }
+ P = new c(i), z.next = 15;
+ break;
+ case 10:
+ if (!(typeof i == "string" || i instanceof String || i instanceof ArrayBuffer)) {
+ z.next = 14;
+ break;
+ }
+ P = new s(i, n), z.next = 15;
+ break;
+ case 14:
+ throw new Error("Chunk must be one of type String, Buffer or StringBuf.");
+ case 15:
+ if (!p.pipes.length) {
+ z.next = 31;
+ break;
+ }
+ if (!p.batch) {
+ z.next = 21;
+ break;
+ }
+ for (p._writeToBuffers(P); !p.corked && p.buffers.length > 1; )
+ p._pipe(p.buffers.shift());
+ z.next = 29;
+ break;
+ case 21:
+ if (p.corked) {
+ z.next = 27;
+ break;
+ }
+ return z.next = 24, p._pipe(P);
+ case 24:
+ o(), z.next = 29;
+ break;
+ case 27:
+ p._writeToBuffers(P), u.nextTick(o);
+ case 29:
+ z.next = 34;
+ break;
+ case 31:
+ p.paused || p.emit("data", P.toBuffer()), p._writeToBuffers(P), p.emit("readable");
+ case 34:
+ return z.abrupt("return", !0);
+ case 35:
+ case "end":
+ return z.stop();
+ }
+ }, O);
+ }))();
+ },
+ cork: function() {
+ this.corked = !0;
+ },
+ _flush: function() {
+ if (this.pipes.length)
+ for (; this.buffers.length; )
+ this._pipe(this.buffers.shift());
+ },
+ uncork: function() {
+ this.corked = !1, this._flush();
+ },
+ end: function(i, n, o) {
+ var p = this, O = function(F) {
+ F ? o(F) : (p._flush(), p.pipes.forEach(function(z) {
+ z.end();
+ }), p.emit("finish"));
+ };
+ i ? this.write(i, n, O) : O();
+ },
+ // readable
+ // event readable - some data is now available
+ // event data - switch to flowing mode - feeds chunks to handler
+ // event end - no more data
+ // event close - optional, indicates upstream close
+ // event error - duh
+ read: function(i) {
+ var n;
+ if (i) {
+ for (n = []; i && this.buffers.length && !this.buffers[0].eod; ) {
+ var o = this.buffers[0], p = o.read(i);
+ i -= p.length, n.push(p), o.eod && o.full && this.buffers.shift();
+ }
+ return m.concat(n);
+ }
+ return n = this.buffers.map(function(O) {
+ return O.toBuffer();
+ }).filter(Boolean), this.buffers = [], m.concat(n);
+ },
+ setEncoding: function(i) {
+ this.encoding = i;
+ },
+ pause: function() {
+ this.paused = !0;
+ },
+ resume: function() {
+ this.paused = !1;
+ },
+ isPaused: function() {
+ return !!this.paused;
+ },
+ pipe: function(i) {
+ this.pipes.push(i), !this.paused && this.buffers.length && this.end();
+ },
+ unpipe: function(i) {
+ this.pipes = this.pipes.filter(function(n) {
+ return n !== i;
+ });
+ },
+ unshift: function() {
+ throw new Error("Not Implemented");
+ },
+ wrap: function() {
+ throw new Error("Not Implemented");
+ }
+ }), x.exports = r;
+ }).call(this, e("_process"), e("buffer").Buffer);
+ }, { "./string-buf": 24, "./utils": 26, _process: 467, buffer: 216, "readable-stream": 491 }], 24: [function(e, x, _) {
+ (function(u) {
+ function m(f, y) {
+ if (!(f instanceof y))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(f, y) {
+ for (var h = 0; h < y.length; h++) {
+ var l = y[h];
+ l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l);
+ }
+ }
+ function b(f, y, h) {
+ return y && g(f.prototype, y), h && g(f, h), f;
+ }
+ var w = /* @__PURE__ */ function() {
+ function f(y) {
+ m(this, f), this._buf = u.alloc(y && y.size || 16384), this._encoding = y && y.encoding || "utf8", this._inPos = 0, this._buffer = void 0;
+ }
+ return b(f, [{
+ key: "toBuffer",
+ value: function() {
+ return this._buffer || (this._buffer = u.alloc(this.length), this._buf.copy(this._buffer, 0, 0, this.length)), this._buffer;
+ }
+ }, {
+ key: "reset",
+ value: function(h) {
+ h = h || 0, this._buffer = void 0, this._inPos = h;
+ }
+ }, {
+ key: "_grow",
+ value: function(h) {
+ for (var l = this._buf.length * 2; l < h; )
+ l *= 2;
+ var d = u.alloc(l);
+ this._buf.copy(d, 0), this._buf = d;
+ }
+ }, {
+ key: "addText",
+ value: function(h) {
+ this._buffer = void 0;
+ for (var l = this._inPos + this._buf.write(h, this._inPos, this._encoding); l >= this._buf.length - 4; )
+ this._grow(this._inPos + h.length), l = this._inPos + this._buf.write(h, this._inPos, this._encoding);
+ this._inPos = l;
+ }
+ }, {
+ key: "addStringBuf",
+ value: function(h) {
+ h.length && (this._buffer = void 0, this.length + h.length > this.capacity && this._grow(this.length + h.length), h._buf.copy(this._buf, this._inPos, 0, h.length), this._inPos += h.length);
+ }
+ }, {
+ key: "length",
+ get: function() {
+ return this._inPos;
+ }
+ }, {
+ key: "capacity",
+ get: function() {
+ return this._buf.length;
+ }
+ }, {
+ key: "buffer",
+ get: function() {
+ return this._buf;
+ }
+ }]), f;
+ }();
+ x.exports = w;
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216 }], 25: [function(e, x, _) {
+ function u(w) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(y) {
+ return typeof y;
+ } : u = function(y) {
+ return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
+ }, u(w);
+ }
+ var m = Object.prototype.toString, g = /["&<>]/, b = {
+ each: function(f, y) {
+ f && (Array.isArray(f) ? f.forEach(y) : Object.keys(f).forEach(function(h) {
+ y(f[h], h);
+ }));
+ },
+ some: function(f, y) {
+ return f ? Array.isArray(f) ? f.some(y) : Object.keys(f).some(function(h) {
+ return y(f[h], h);
+ }) : !1;
+ },
+ every: function(f, y) {
+ return f ? Array.isArray(f) ? f.every(y) : Object.keys(f).every(function(h) {
+ return y(f[h], h);
+ }) : !0;
+ },
+ map: function(f, y) {
+ return f ? Array.isArray(f) ? f.map(y) : Object.keys(f).map(function(h) {
+ return y(f[h], h);
+ }) : [];
+ },
+ keyBy: function(f, y) {
+ return f.reduce(function(h, l) {
+ return h[l[y]] = l, h;
+ }, {});
+ },
+ isEqual: function(f, y) {
+ var h = u(f), l = u(y), d = Array.isArray(f), s = Array.isArray(y);
+ if (h !== l)
+ return !1;
+ switch (u(f)) {
+ case "object":
+ return d || s ? d && s ? f.length === y.length && f.every(function(v, c) {
+ var a = y[c];
+ return b.isEqual(v, a);
+ }) : !1 : b.every(f, function(v, c) {
+ var a = y[c];
+ return b.isEqual(v, a);
+ });
+ default:
+ return f === y;
+ }
+ },
+ escapeHtml: function(f) {
+ var y = g.exec(f);
+ if (!y)
+ return f;
+ for (var h = "", l = "", d = 0, s = y.index; s < f.length; s++) {
+ switch (f.charAt(s)) {
+ case '"':
+ l = """;
+ break;
+ case "&":
+ l = "&";
+ break;
+ case "'":
+ l = "'";
+ break;
+ case "<":
+ l = "<";
+ break;
+ case ">":
+ l = ">";
+ break;
+ default:
+ continue;
+ }
+ d !== s && (h += f.substring(d, s)), d = s + 1, h += l;
+ }
+ return d !== s ? h + f.substring(d, s) : h;
+ },
+ strcmp: function(f, y) {
+ return f < y ? -1 : f > y ? 1 : 0;
+ },
+ isUndefined: function(f) {
+ return m.call(f) === "[object Undefined]";
+ },
+ isObject: function(f) {
+ return m.call(f) === "[object Object]";
+ },
+ deepMerge: function() {
+ var f = arguments[0] || {}, y = arguments.length, h, l, d;
+ function s(c, a) {
+ h = f[a], d = Array.isArray(c), b.isObject(c) || d ? (d ? (d = !1, l = h && Array.isArray(h) ? h : []) : l = h && b.isObject(h) ? h : {}, f[a] = b.deepMerge(l, c)) : b.isUndefined(c) || (f[a] = c);
+ }
+ for (var v = 0; v < y; v++)
+ b.each(arguments[v], s);
+ return f;
+ }
+ };
+ x.exports = b;
+ }, {}], 26: [function(e, x, _) {
+ (function(u, m) {
+ var g = e("fs"), b = function(h, l, d, s) {
+ h.super_ = l, s || (s = d, d = null), d && Object.keys(d).forEach(function(c) {
+ Object.defineProperty(h, c, Object.getOwnPropertyDescriptor(d, c));
+ });
+ var v = {
+ constructor: {
+ value: h,
+ enumerable: !1,
+ writable: !1,
+ configurable: !0
+ }
+ };
+ s && Object.keys(s).forEach(function(c) {
+ v[c] = Object.getOwnPropertyDescriptor(s, c);
+ }), h.prototype = Object.create(l.prototype, v);
+ }, w = /[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/, f = {
+ nop: function() {
+ },
+ promiseImmediate: function(h) {
+ return new Promise(function(l) {
+ u.setImmediate ? m(function() {
+ l(h);
+ }) : setTimeout(function() {
+ l(h);
+ }, 1);
+ });
+ },
+ inherits: b,
+ dateToExcel: function(h, l) {
+ return 25569 + h.getTime() / (24 * 3600 * 1e3) - (l ? 1462 : 0);
+ },
+ excelToDate: function(h, l) {
+ var d = Math.round((h - 25569 + (l ? 1462 : 0)) * 24 * 3600 * 1e3);
+ return new Date(d);
+ },
+ parsePath: function(h) {
+ var l = h.lastIndexOf("/");
+ return {
+ path: h.substring(0, l),
+ name: h.substring(l + 1)
+ };
+ },
+ getRelsPath: function(h) {
+ var l = f.parsePath(h);
+ return "".concat(l.path, "/_rels/").concat(l.name, ".rels");
+ },
+ xmlEncode: function(h) {
+ var l = w.exec(h);
+ if (!l)
+ return h;
+ for (var d = "", s = "", v = 0, c = l.index; c < h.length; c++) {
+ var a = h.charCodeAt(c);
+ switch (a) {
+ case 34:
+ s = """;
+ break;
+ case 38:
+ s = "&";
+ break;
+ case 39:
+ s = "'";
+ break;
+ case 60:
+ s = "<";
+ break;
+ case 62:
+ s = ">";
+ break;
+ case 127:
+ s = "";
+ break;
+ default: {
+ if (a <= 31 && (a <= 8 || a >= 11 && a !== 13)) {
+ s = "";
+ break;
+ }
+ continue;
+ }
+ }
+ v !== c && (d += h.substring(v, c)), v = c + 1, s && (d += s);
+ }
+ return v !== c ? d + h.substring(v, c) : d;
+ },
+ xmlDecode: function(h) {
+ return h.replace(/&([a-z]*);/g, function(l) {
+ switch (l) {
+ case "<":
+ return "<";
+ case ">":
+ return ">";
+ case "&":
+ return "&";
+ case "'":
+ return "'";
+ case """:
+ return '"';
+ default:
+ return l;
+ }
+ });
+ },
+ validInt: function(h) {
+ var l = parseInt(h, 10);
+ return Number.isNaN(l) ? 0 : l;
+ },
+ isDateFmt: function(h) {
+ if (!h)
+ return !1;
+ h = h.replace(/\[[^\]]*]/g, ""), h = h.replace(/"[^"]*"/g, "");
+ var l = h.match(/[ymdhMsb]+/) !== null;
+ return l;
+ },
+ fs: {
+ exists: function(h) {
+ return new Promise(function(l) {
+ g.access(h, g.constants.F_OK, function(d) {
+ l(!d);
+ });
+ });
+ }
+ },
+ toIsoDateString: function(h) {
+ return h.toIsoString().subsstr(0, 10);
+ }
+ };
+ x.exports = f;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}, e("timers").setImmediate);
+ }, { fs: 215, timers: 521 }], 27: [function(e, x, _) {
+ function u(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function g(t, i, n) {
+ return i && m(t.prototype, i), n && m(t, n), t;
+ }
+ var b = e("./under-dash"), w = e("./utils"), f = "<", y = ">", h = "", l = "/>", d = '="', s = '"', v = " ";
+ function c(t, i, n) {
+ t.push(v), t.push(i), t.push(d), t.push(w.xmlEncode(n.toString())), t.push(s);
+ }
+ function a(t, i) {
+ i && b.each(i, function(n, o) {
+ n !== void 0 && c(t, o, n);
+ });
+ }
+ var r = /* @__PURE__ */ function() {
+ function t() {
+ u(this, t), this._xml = [], this._stack = [], this._rollbacks = [];
+ }
+ return g(t, [{
+ key: "openXml",
+ value: function(n) {
+ var o = this._xml;
+ o.push("
+`);
+ }
+ }, {
+ key: "openNode",
+ value: function(n, o) {
+ var p = this.tos, O = this._xml;
+ p && this.open && O.push(y), this._stack.push(n), O.push(f), O.push(n), a(O, o), this.leaf = !0, this.open = !0;
+ }
+ }, {
+ key: "addAttribute",
+ value: function(n, o) {
+ if (!this.open)
+ throw new Error("Cannot write attributes to node if it is not open");
+ o !== void 0 && c(this._xml, n, o);
+ }
+ }, {
+ key: "addAttributes",
+ value: function(n) {
+ if (!this.open)
+ throw new Error("Cannot write attributes to node if it is not open");
+ a(this._xml, n);
+ }
+ }, {
+ key: "writeText",
+ value: function(n) {
+ var o = this._xml;
+ this.open && (o.push(y), this.open = !1), this.leaf = !1, o.push(w.xmlEncode(n.toString()));
+ }
+ }, {
+ key: "writeXml",
+ value: function(n) {
+ this.open && (this._xml.push(y), this.open = !1), this.leaf = !1, this._xml.push(n);
+ }
+ }, {
+ key: "closeNode",
+ value: function() {
+ var n = this._stack.pop(), o = this._xml;
+ this.leaf ? o.push(l) : (o.push(h), o.push(n), o.push(y)), this.open = !1, this.leaf = !1;
+ }
+ }, {
+ key: "leafNode",
+ value: function(n, o, p) {
+ this.openNode(n, o), p !== void 0 && this.writeText(p), this.closeNode();
+ }
+ }, {
+ key: "closeAll",
+ value: function() {
+ for (; this._stack.length; )
+ this.closeNode();
+ }
+ }, {
+ key: "addRollback",
+ value: function() {
+ return this._rollbacks.push({
+ xml: this._xml.length,
+ stack: this._stack.length,
+ leaf: this.leaf,
+ open: this.open
+ }), this.cursor;
+ }
+ }, {
+ key: "commit",
+ value: function() {
+ this._rollbacks.pop();
+ }
+ }, {
+ key: "rollback",
+ value: function() {
+ var n = this._rollbacks.pop();
+ this._xml.length > n.xml && this._xml.splice(n.xml, this._xml.length - n.xml), this._stack.length > n.stack && this._stack.splice(n.stack, this._stack.length - n.stack), this.leaf = n.leaf, this.open = n.open;
+ }
+ }, {
+ key: "tos",
+ get: function() {
+ return this._stack.length ? this._stack[this._stack.length - 1] : void 0;
+ }
+ }, {
+ key: "cursor",
+ get: function() {
+ return this._xml.length;
+ }
+ }, {
+ key: "xml",
+ get: function() {
+ return this.closeAll(), this._xml.join("");
+ }
+ }]), t;
+ }();
+ r.StdDocAttributes = {
+ version: "1.0",
+ encoding: "UTF-8",
+ standalone: "yes"
+ }, x.exports = r;
+ }, { "./under-dash": 25, "./utils": 26 }], 28: [function(e, x, _) {
+ (function(u) {
+ function m(O) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(F) {
+ return typeof F;
+ } : m = function(F) {
+ return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
+ }, m(O);
+ }
+ function g(O, P, F, z, N, M, I) {
+ try {
+ var R = O[M](I), C = R.value;
+ } catch (E) {
+ F(E);
+ return;
+ }
+ R.done ? P(C) : Promise.resolve(C).then(z, N);
+ }
+ function b(O) {
+ return function() {
+ var P = this, F = arguments;
+ return new Promise(function(z, N) {
+ var M = O.apply(P, F);
+ function I(C) {
+ g(M, z, N, I, R, "next", C);
+ }
+ function R(C) {
+ g(M, z, N, I, R, "throw", C);
+ }
+ I(void 0);
+ });
+ };
+ }
+ function w(O, P) {
+ if (!(O instanceof P))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(O, P) {
+ for (var F = 0; F < P.length; F++) {
+ var z = P[F];
+ z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(O, z.key, z);
+ }
+ }
+ function y(O, P, F) {
+ return P && f(O.prototype, P), F && f(O, F), O;
+ }
+ function h(O, P) {
+ if (typeof P != "function" && P !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ O.prototype = Object.create(P && P.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), P && l(O, P);
+ }
+ function l(O, P) {
+ return l = Object.setPrototypeOf || function(z, N) {
+ return z.__proto__ = N, z;
+ }, l(O, P);
+ }
+ function d(O) {
+ var P = c();
+ return function() {
+ var z = a(O), N;
+ if (P) {
+ var M = a(this).constructor;
+ N = Reflect.construct(z, arguments, M);
+ } else
+ N = z.apply(this, arguments);
+ return s(this, N);
+ };
+ }
+ function s(O, P) {
+ return P && (m(P) === "object" || typeof P == "function") ? P : v(O);
+ }
+ function v(O) {
+ if (O === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return O;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (O) {
+ return !1;
+ }
+ }
+ function a(O) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(F) {
+ return F.__proto__ || Object.getPrototypeOf(F);
+ }, a(O);
+ }
+ var r = e("events"), t = e("jszip"), i = e("./stream-buf"), n = e("./browser-buffer-encode"), o = n.stringToBuffer, p = /* @__PURE__ */ function(O) {
+ h(F, O);
+ var P = d(F);
+ function F(z) {
+ var N;
+ return w(this, F), N = P.call(this), N.options = Object.assign({
+ type: "nodebuffer",
+ compression: "DEFLATE"
+ }, z), N.zip = new t(), N.stream = new i(), N;
+ }
+ return y(F, [{
+ key: "append",
+ value: function(N, M) {
+ M.hasOwnProperty("base64") && M.base64 ? this.zip.file(M.name, N, {
+ base64: !0
+ }) : (u.browser && typeof N == "string" && (N = o(N)), this.zip.file(M.name, N));
+ }
+ }, {
+ key: "finalize",
+ value: function() {
+ var z = b(/* @__PURE__ */ regeneratorRuntime.mark(function M() {
+ var I;
+ return regeneratorRuntime.wrap(function(C) {
+ for (; ; )
+ switch (C.prev = C.next) {
+ case 0:
+ return C.next = 2, this.zip.generateAsync(this.options);
+ case 2:
+ I = C.sent, this.stream.end(I), this.emit("finish");
+ case 5:
+ case "end":
+ return C.stop();
+ }
+ }, M, this);
+ }));
+ function N() {
+ return z.apply(this, arguments);
+ }
+ return N;
+ }()
+ // ==========================================================================
+ // Stream.Readable interface
+ }, {
+ key: "read",
+ value: function(N) {
+ return this.stream.read(N);
+ }
+ }, {
+ key: "setEncoding",
+ value: function(N) {
+ return this.stream.setEncoding(N);
+ }
+ }, {
+ key: "pause",
+ value: function() {
+ return this.stream.pause();
+ }
+ }, {
+ key: "resume",
+ value: function() {
+ return this.stream.resume();
+ }
+ }, {
+ key: "isPaused",
+ value: function() {
+ return this.stream.isPaused();
+ }
+ }, {
+ key: "pipe",
+ value: function(N, M) {
+ return this.stream.pipe(N, M);
+ }
+ }, {
+ key: "unpipe",
+ value: function(N) {
+ return this.stream.unpipe(N);
+ }
+ }, {
+ key: "unshift",
+ value: function(N) {
+ return this.stream.unshift(N);
+ }
+ }, {
+ key: "wrap",
+ value: function(N) {
+ return this.stream.wrap(N);
+ }
+ }]), F;
+ }(r.EventEmitter);
+ x.exports = {
+ ZipWriter: p
+ };
+ }).call(this, e("_process"));
+ }, { "./browser-buffer-encode": 17, "./stream-buf": 23, _process: 467, events: 367, jszip: 399 }], 29: [function(e, x, _) {
+ x.exports = {
+ 0: {
+ f: "General"
+ },
+ 1: {
+ f: "0"
+ },
+ 2: {
+ f: "0.00"
+ },
+ 3: {
+ f: "#,##0"
+ },
+ 4: {
+ f: "#,##0.00"
+ },
+ 9: {
+ f: "0%"
+ },
+ 10: {
+ f: "0.00%"
+ },
+ 11: {
+ f: "0.00E+00"
+ },
+ 12: {
+ f: "# ?/?"
+ },
+ 13: {
+ f: "# ??/??"
+ },
+ 14: {
+ f: "mm-dd-yy"
+ },
+ 15: {
+ f: "d-mmm-yy"
+ },
+ 16: {
+ f: "d-mmm"
+ },
+ 17: {
+ f: "mmm-yy"
+ },
+ 18: {
+ f: "h:mm AM/PM"
+ },
+ 19: {
+ f: "h:mm:ss AM/PM"
+ },
+ 20: {
+ f: "h:mm"
+ },
+ 21: {
+ f: "h:mm:ss"
+ },
+ 22: {
+ f: 'm/d/yy "h":mm'
+ },
+ 27: {
+ "zh-tw": "[$-404]e/m/d",
+ "zh-cn": 'yyyy"年"m"月"',
+ "ja-jp": "[$-411]ge.m.d",
+ "ko-kr": 'yyyy"年" mm"月" dd"日"'
+ },
+ 28: {
+ "zh-tw": '[$-404]e"年"m"月"d"日"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": '[$-411]ggge"年"m"月"d"日"',
+ "ko-kr": "mm-dd"
+ },
+ 29: {
+ "zh-tw": '[$-404]e"年"m"月"d"日"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": '[$-411]ggge"年"m"月"d"日"',
+ "ko-kr": "mm-dd"
+ },
+ 30: {
+ "zh-tw": "m/d/yy ",
+ "zh-cn": "m-d-yy",
+ "ja-jp": "m/d/yy",
+ "ko-kr": "mm-dd-yy"
+ },
+ 31: {
+ "zh-tw": 'yyyy"年"m"月"d"日"',
+ "zh-cn": 'yyyy"年"m"月"d"日"',
+ "ja-jp": 'yyyy"年"m"月"d"日"',
+ "ko-kr": 'yyyy"년" mm"월" dd"일"'
+ },
+ 32: {
+ "zh-tw": 'hh"時"mm"分"',
+ "zh-cn": 'h"时"mm"分"',
+ "ja-jp": 'h"時"mm"分"',
+ "ko-kr": 'h"시" mm"분"'
+ },
+ 33: {
+ "zh-tw": 'hh"時"mm"分"ss"秒"',
+ "zh-cn": 'h"时"mm"分"ss"秒"',
+ "ja-jp": 'h"時"mm"分"ss"秒"',
+ "ko-kr": 'h"시" mm"분" ss"초"'
+ },
+ 34: {
+ "zh-tw": '上午/下午 hh"時"mm"分"',
+ "zh-cn": '上午/下午 h"时"mm"分"',
+ "ja-jp": 'yyyy"年"m"月"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 35: {
+ "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"',
+ "zh-cn": '上午/下午 h"时"mm"分"ss"秒"',
+ "ja-jp": 'm"月"d"日"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 36: {
+ "zh-tw": "[$-404]e/m/d",
+ "zh-cn": 'yyyy"年"m"月"',
+ "ja-jp": "[$-411]ge.m.d",
+ "ko-kr": 'yyyy"年" mm"月" dd"日"'
+ },
+ 37: {
+ f: "#,##0 ;(#,##0)"
+ },
+ 38: {
+ f: "#,##0 ;[Red](#,##0)"
+ },
+ 39: {
+ f: "#,##0.00 ;(#,##0.00)"
+ },
+ 40: {
+ f: "#,##0.00 ;[Red](#,##0.00)"
+ },
+ 45: {
+ f: "mm:ss"
+ },
+ 46: {
+ f: "[h]:mm:ss"
+ },
+ 47: {
+ f: "mmss.0"
+ },
+ 48: {
+ f: "##0.0E+0"
+ },
+ 49: {
+ f: "@"
+ },
+ 50: {
+ "zh-tw": "[$-404]e/m/d",
+ "zh-cn": 'yyyy"年"m"月"',
+ "ja-jp": "[$-411]ge.m.d",
+ "ko-kr": 'yyyy"年" mm"月" dd"日"'
+ },
+ 51: {
+ "zh-tw": '[$-404]e"年"m"月"d"日"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": '[$-411]ggge"年"m"月"d"日"',
+ "ko-kr": "mm-dd"
+ },
+ 52: {
+ "zh-tw": '上午/下午 hh"時"mm"分"',
+ "zh-cn": 'yyyy"年"m"月"',
+ "ja-jp": 'yyyy"年"m"月"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 53: {
+ "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": 'm"月"d"日"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 54: {
+ "zh-tw": '[$-404]e"年"m"月"d"日"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": '[$-411]ggge"年"m"月"d"日"',
+ "ko-kr": "mm-dd"
+ },
+ 55: {
+ "zh-tw": '上午/下午 hh"時"mm"分"',
+ "zh-cn": '上午/下午 h"时"mm"分"',
+ "ja-jp": 'yyyy"年"m"月"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 56: {
+ "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"',
+ "zh-cn": '上午/下午 h"时"mm"分"ss"秒"',
+ "ja-jp": 'm"月"d"日"',
+ "ko-kr": "yyyy-mm-dd"
+ },
+ 57: {
+ "zh-tw": "[$-404]e/m/d",
+ "zh-cn": 'yyyy"年"m"月"',
+ "ja-jp": "[$-411]ge.m.d",
+ "ko-kr": 'yyyy"年" mm"月" dd"日"'
+ },
+ 58: {
+ "zh-tw": '[$-404]e"年"m"月"d"日"',
+ "zh-cn": 'm"月"d"日"',
+ "ja-jp": '[$-411]ggge"年"m"月"d"日"',
+ "ko-kr": "mm-dd"
+ },
+ 59: {
+ "th-th": "t0"
+ },
+ 60: {
+ "th-th": "t0.00"
+ },
+ 61: {
+ "th-th": "t#,##0"
+ },
+ 62: {
+ "th-th": "t#,##0.00"
+ },
+ 67: {
+ "th-th": "t0%"
+ },
+ 68: {
+ "th-th": "t0.00%"
+ },
+ 69: {
+ "th-th": "t# ?/?"
+ },
+ 70: {
+ "th-th": "t# ??/??"
+ },
+ 81: {
+ "th-th": "d/m/bb"
+ }
+ };
+ }, {}], 30: [function(e, x, _) {
+ x.exports = {
+ OfficeDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",
+ Worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
+ CalcChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",
+ SharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",
+ Styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",
+ Theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",
+ Hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",
+ Image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
+ CoreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",
+ ExtenderProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",
+ Comments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
+ VmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",
+ Table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
+ };
+ }, {}], 31: [function(e, x, _) {
+ function u(c, a) {
+ var r;
+ if (typeof Symbol == "undefined" || c[Symbol.iterator] == null) {
+ if (Array.isArray(c) || (r = m(c)) || a && c && typeof c.length == "number") {
+ r && (c = r);
+ var t = 0, i = function() {
+ };
+ return { s: i, n: function() {
+ return t >= c.length ? { done: !0 } : { done: !1, value: c[t++] };
+ }, e: function(P) {
+ throw P;
+ }, f: i };
+ }
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ var n = !0, o = !1, p;
+ return { s: function() {
+ r = c[Symbol.iterator]();
+ }, n: function() {
+ var P = r.next();
+ return n = P.done, P;
+ }, e: function(P) {
+ o = !0, p = P;
+ }, f: function() {
+ try {
+ !n && r.return != null && r.return();
+ } finally {
+ if (o)
+ throw p;
+ }
+ } };
+ }
+ function m(c, a) {
+ if (c) {
+ if (typeof c == "string")
+ return g(c, a);
+ var r = Object.prototype.toString.call(c).slice(8, -1);
+ if (r === "Object" && c.constructor && (r = c.constructor.name), r === "Map" || r === "Set")
+ return Array.from(c);
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
+ return g(c, a);
+ }
+ }
+ function g(c, a) {
+ (a == null || a > c.length) && (a = c.length);
+ for (var r = 0, t = new Array(a); r < a; r++)
+ t[r] = c[r];
+ return t;
+ }
+ function b(c, a, r, t, i, n, o) {
+ try {
+ var p = c[n](o), O = p.value;
+ } catch (P) {
+ r(P);
+ return;
+ }
+ p.done ? a(O) : Promise.resolve(O).then(t, i);
+ }
+ function w(c) {
+ return function() {
+ var a = this, r = arguments;
+ return new Promise(function(t, i) {
+ var n = c.apply(a, r);
+ function o(O) {
+ b(n, t, i, o, p, "next", O);
+ }
+ function p(O) {
+ b(n, t, i, o, p, "throw", O);
+ }
+ o(void 0);
+ });
+ };
+ }
+ function f(c, a) {
+ if (!(c instanceof a))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function y(c, a) {
+ for (var r = 0; r < a.length; r++) {
+ var t = a[r];
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(c, t.key, t);
+ }
+ }
+ function h(c, a, r) {
+ return a && y(c.prototype, a), r && y(c, r), c;
+ }
+ function l(c) {
+ var a;
+ if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (a = c[Symbol.asyncIterator], a != null) || Symbol.iterator && (a = c[Symbol.iterator], a != null)))
+ return a.call(c);
+ throw new TypeError("Object is not async iterable");
+ }
+ var d = e("../../utils/parse-sax"), s = e("../../utils/xml-stream"), v = /* @__PURE__ */ function() {
+ function c() {
+ f(this, c);
+ }
+ return h(c, [{
+ key: "prepare",
+ // constructor(/* model, name */) {}
+ // ============================================================
+ // Virtual Interface
+ value: function() {
+ }
+ }, {
+ key: "render",
+ value: function() {
+ }
+ }, {
+ key: "parseOpen",
+ value: function(r) {
+ }
+ }, {
+ key: "parseText",
+ value: function(r) {
+ }
+ }, {
+ key: "parseClose",
+ value: function(r) {
+ }
+ }, {
+ key: "reconcile",
+ value: function(r, t) {
+ }
+ // ============================================================
+ }, {
+ key: "reset",
+ value: function() {
+ this.model = null, this.map && Object.values(this.map).forEach(function(r) {
+ r instanceof c ? r.reset() : r.xform && r.xform.reset();
+ });
+ }
+ }, {
+ key: "mergeModel",
+ value: function(r) {
+ this.model = Object.assign(this.model || {}, r);
+ }
+ }, {
+ key: "parse",
+ value: function() {
+ var a = w(/* @__PURE__ */ regeneratorRuntime.mark(function t(i) {
+ var n, o, p, O, P, F, z, N, M, I, R, C;
+ return regeneratorRuntime.wrap(function(A) {
+ for (; ; )
+ switch (A.prev = A.next) {
+ case 0:
+ n = !0, o = !1, A.prev = 2, O = l(i);
+ case 4:
+ return A.next = 6, O.next();
+ case 6:
+ return P = A.sent, n = P.done, A.next = 10, P.value;
+ case 10:
+ if (F = A.sent, n) {
+ A.next = 42;
+ break;
+ }
+ z = F, N = u(z), A.prev = 14, N.s();
+ case 16:
+ if ((M = N.n()).done) {
+ A.next = 31;
+ break;
+ }
+ if (I = M.value, R = I.eventType, C = I.value, R !== "opentag") {
+ A.next = 22;
+ break;
+ }
+ this.parseOpen(C), A.next = 29;
+ break;
+ case 22:
+ if (R !== "text") {
+ A.next = 26;
+ break;
+ }
+ this.parseText(C), A.next = 29;
+ break;
+ case 26:
+ if (R !== "closetag") {
+ A.next = 29;
+ break;
+ }
+ if (this.parseClose(C.name)) {
+ A.next = 29;
+ break;
+ }
+ return A.abrupt("return", this.model);
+ case 29:
+ A.next = 16;
+ break;
+ case 31:
+ A.next = 36;
+ break;
+ case 33:
+ A.prev = 33, A.t0 = A.catch(14), N.e(A.t0);
+ case 36:
+ return A.prev = 36, N.f(), A.finish(36);
+ case 39:
+ n = !0, A.next = 4;
+ break;
+ case 42:
+ A.next = 48;
+ break;
+ case 44:
+ A.prev = 44, A.t1 = A.catch(2), o = !0, p = A.t1;
+ case 48:
+ if (A.prev = 48, A.prev = 49, !(!n && O.return != null)) {
+ A.next = 53;
+ break;
+ }
+ return A.next = 53, O.return();
+ case 53:
+ if (A.prev = 53, !o) {
+ A.next = 56;
+ break;
+ }
+ throw p;
+ case 56:
+ return A.finish(53);
+ case 57:
+ return A.finish(48);
+ case 58:
+ return A.abrupt("return", this.model);
+ case 59:
+ case "end":
+ return A.stop();
+ }
+ }, t, this, [[2, 44, 48, 58], [14, 33, 36, 39], [49, , 53, 57]]);
+ }));
+ function r(t) {
+ return a.apply(this, arguments);
+ }
+ return r;
+ }()
+ }, {
+ key: "parseStream",
+ value: function() {
+ var a = w(/* @__PURE__ */ regeneratorRuntime.mark(function t(i) {
+ return regeneratorRuntime.wrap(function(o) {
+ for (; ; )
+ switch (o.prev = o.next) {
+ case 0:
+ return o.abrupt("return", this.parse(d(i)));
+ case 1:
+ case "end":
+ return o.stop();
+ }
+ }, t, this);
+ }));
+ function r(t) {
+ return a.apply(this, arguments);
+ }
+ return r;
+ }()
+ }, {
+ key: "toXml",
+ value: function(r) {
+ var t = new s();
+ return this.render(t, r), t.xml;
+ }
+ // ============================================================
+ // Useful Utilities
+ }, {
+ key: "xml",
+ get: function() {
+ return this.toXml(this.model);
+ }
+ }], [{
+ key: "toAttribute",
+ value: function(r, t) {
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
+ if (r === void 0) {
+ if (i)
+ return t;
+ } else if (i || r !== t)
+ return r.toString();
+ }
+ }, {
+ key: "toStringAttribute",
+ value: function(r, t) {
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
+ return c.toAttribute(r, t, i);
+ }
+ }, {
+ key: "toStringValue",
+ value: function(r, t) {
+ return r === void 0 ? t : r;
+ }
+ }, {
+ key: "toBoolAttribute",
+ value: function(r, t) {
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
+ if (r === void 0) {
+ if (i)
+ return t;
+ } else if (i || r !== t)
+ return r ? "1" : "0";
+ }
+ }, {
+ key: "toBoolValue",
+ value: function(r, t) {
+ return r === void 0 ? t : r === "1";
+ }
+ }, {
+ key: "toIntAttribute",
+ value: function(r, t) {
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
+ return c.toAttribute(r, t, i);
+ }
+ }, {
+ key: "toIntValue",
+ value: function(r, t) {
+ return r === void 0 ? t : parseInt(r, 10);
+ }
+ }, {
+ key: "toFloatAttribute",
+ value: function(r, t) {
+ var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
+ return c.toAttribute(r, t, i);
+ }
+ }, {
+ key: "toFloatValue",
+ value: function(r, t) {
+ return r === void 0 ? t : parseFloat(r);
+ }
+ }]), c;
+ }();
+ x.exports = v;
+ }, { "../../utils/parse-sax": 21, "../../utils/xml-stream": 27 }], 32: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("../base-xform"), c = e("../../../utils/col-cache"), a = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ return m(this, o), n.apply(this, arguments);
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ O.openNode("definedName", {
+ name: P.name,
+ localSheetId: P.localSheetId
+ }), O.writeText(P.ranges.join(",")), O.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(O) {
+ switch (O.name) {
+ case "definedName":
+ return this._parsedName = O.attributes.name, this._parsedLocalSheetId = O.attributes.localSheetId, this._parsedText = [], !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(O) {
+ this._parsedText.push(O);
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return this.model = {
+ name: this._parsedName,
+ ranges: t(this._parsedText.join(""))
+ }, this._parsedLocalSheetId !== void 0 && (this.model.localSheetId = parseInt(this._parsedLocalSheetId, 10)), !1;
+ }
+ }]), o;
+ }(v);
+ function r(i) {
+ try {
+ return c.decodeEx(i), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function t(i) {
+ var n = [], o = !1, p = "";
+ return i.split(",").forEach(function(O) {
+ if (O) {
+ var P = (O.match(/'/g) || []).length;
+ if (!P) {
+ o ? p += "".concat(O, ",") : r(O) && n.push(O);
+ return;
+ }
+ var F = P % 2 === 0;
+ !o && F && r(O) ? n.push(O) : o && !F ? (o = !1, r(p + O) && n.push(p + O), p = "") : (o = !0, p += "".concat(O, ","));
+ }
+ }), n;
+ }
+ x.exports = a;
+ }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 33: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../../utils/utils"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.leafNode("sheet", {
+ sheetId: p.id,
+ name: p.name,
+ state: p.state,
+ "r:id": p.rId
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ return o.name === "sheet" ? (this.model = {
+ name: v.xmlDecode(o.attributes.name),
+ id: parseInt(o.attributes.sheetId, 10),
+ state: o.attributes.state,
+ rId: o.attributes["r:id"]
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), i;
+ }(c);
+ x.exports = a;
+ }, { "../../../utils/utils": 26, "../base-xform": 31 }], 34: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("calcPr", {
+ calcId: 171027,
+ fullCalcOnLoad: o.fullCalcOnLoad ? 1 : void 0
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "calcPr" ? (this.model = {}, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 35: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("workbookPr", {
+ date1904: o.date1904 ? 1 : void 0,
+ defaultThemeVersion: 164011,
+ filterPrivacy: 1
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "workbookPr" ? (this.model = {
+ date1904: n.attributes.date1904 === "1"
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 36: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ var p = {
+ xWindow: o.x || 0,
+ yWindow: o.y || 0,
+ windowWidth: o.width || 12e3,
+ windowHeight: o.height || 24e3,
+ firstSheet: o.firstSheet,
+ activeTab: o.activeTab
+ };
+ o.visibility && o.visibility !== "visible" && (p.visibility = o.visibility), n.leafNode("workbookView", p);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (n.name === "workbookView") {
+ var o = this.model = {}, p = function(F, z, N) {
+ var M = z !== void 0 ? o[F] = z : N;
+ M !== void 0 && (o[F] = M);
+ }, O = function(F, z, N) {
+ var M = z !== void 0 ? o[F] = parseInt(z, 10) : N;
+ M !== void 0 && (o[F] = M);
+ };
+ return O("x", n.attributes.xWindow, 0), O("y", n.attributes.yWindow, 0), O("width", n.attributes.windowWidth, 25e3), O("height", n.attributes.windowHeight, 1e4), p("visibility", n.attributes.visibility, "visible"), O("activeTab", n.attributes.activeTab, void 0), O("firstSheet", n.attributes.firstSheet, void 0), !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 37: [function(e, x, _) {
+ function u(z) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(M) {
+ return typeof M;
+ } : u = function(M) {
+ return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M;
+ }, u(z);
+ }
+ function m(z, N) {
+ if (!(z instanceof N))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(z, N) {
+ for (var M = 0; M < N.length; M++) {
+ var I = N[M];
+ I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I);
+ }
+ }
+ function b(z, N, M) {
+ return N && g(z.prototype, N), M && g(z, M), z;
+ }
+ function w(z, N) {
+ if (typeof N != "function" && N !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ z.prototype = Object.create(N && N.prototype, { constructor: { value: z, writable: !0, configurable: !0 } }), N && f(z, N);
+ }
+ function f(z, N) {
+ return f = Object.setPrototypeOf || function(I, R) {
+ return I.__proto__ = R, I;
+ }, f(z, N);
+ }
+ function y(z) {
+ var N = d();
+ return function() {
+ var I = s(z), R;
+ if (N) {
+ var C = s(this).constructor;
+ R = Reflect.construct(I, arguments, C);
+ } else
+ R = I.apply(this, arguments);
+ return h(this, R);
+ };
+ }
+ function h(z, N) {
+ return N && (u(N) === "object" || typeof N == "function") ? N : l(z);
+ }
+ function l(z) {
+ if (z === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return z;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (z) {
+ return !1;
+ }
+ }
+ function s(z) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(M) {
+ return M.__proto__ || Object.getPrototypeOf(M);
+ }, s(z);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../../../utils/col-cache"), a = e("../../../utils/xml-stream"), r = e("../base-xform"), t = e("../static-xform"), i = e("../list-xform"), n = e("./defined-name-xform"), o = e("./sheet-xform"), p = e("./workbook-view-xform"), O = e("./workbook-properties-xform"), P = e("./workbook-calc-properties-xform"), F = /* @__PURE__ */ function(z) {
+ w(M, z);
+ var N = y(M);
+ function M() {
+ var I;
+ return m(this, M), I = N.call(this), I.map = {
+ fileVersion: M.STATIC_XFORMS.fileVersion,
+ workbookPr: new O(),
+ bookViews: new i({
+ tag: "bookViews",
+ count: !1,
+ childXform: new p()
+ }),
+ sheets: new i({
+ tag: "sheets",
+ count: !1,
+ childXform: new o()
+ }),
+ definedNames: new i({
+ tag: "definedNames",
+ count: !1,
+ childXform: new n()
+ }),
+ calcPr: new P()
+ }, I;
+ }
+ return b(M, [{
+ key: "prepare",
+ value: function(R) {
+ R.sheets = R.worksheets;
+ var C = [], E = 0;
+ R.sheets.forEach(function(A) {
+ if (A.pageSetup && A.pageSetup.printArea && A.pageSetup.printArea.split("&&").forEach(function(D) {
+ var B = D.split(":"), j = {
+ name: "_xlnm.Print_Area",
+ ranges: ["'".concat(A.name, "'!$").concat(B[0], ":$").concat(B[1])],
+ localSheetId: E
+ };
+ C.push(j);
+ }), A.pageSetup && (A.pageSetup.printTitlesRow || A.pageSetup.printTitlesColumn)) {
+ var L = [];
+ if (A.pageSetup.printTitlesColumn) {
+ var $ = A.pageSetup.printTitlesColumn.split(":");
+ L.push("'".concat(A.name, "'!$").concat($[0], ":$").concat($[1]));
+ }
+ if (A.pageSetup.printTitlesRow) {
+ var W = A.pageSetup.printTitlesRow.split(":");
+ L.push("'".concat(A.name, "'!$").concat(W[0], ":$").concat(W[1]));
+ }
+ var U = {
+ name: "_xlnm.Print_Titles",
+ ranges: L,
+ localSheetId: E
+ };
+ C.push(U);
+ }
+ E++;
+ }), C.length && (R.definedNames = R.definedNames.concat(C)), (R.media || []).forEach(function(A, L) {
+ A.name = A.type + (L + 1);
+ });
+ }
+ }, {
+ key: "render",
+ value: function(R, C) {
+ R.openXml(a.StdDocAttributes), R.openNode("workbook", M.WORKBOOK_ATTRIBUTES), this.map.fileVersion.render(R), this.map.workbookPr.render(R, C.properties), this.map.bookViews.render(R, C.views), this.map.sheets.render(R, C.sheets), this.map.definedNames.render(R, C.definedNames), this.map.calcPr.render(R, C.calcProperties), R.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(R) {
+ if (this.parser)
+ return this.parser.parseOpen(R), !0;
+ switch (R.name) {
+ case "workbook":
+ return !0;
+ default:
+ return this.parser = this.map[R.name], this.parser && this.parser.parseOpen(R), !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(R) {
+ this.parser && this.parser.parseText(R);
+ }
+ }, {
+ key: "parseClose",
+ value: function(R) {
+ if (this.parser)
+ return this.parser.parseClose(R) || (this.parser = void 0), !0;
+ switch (R) {
+ case "workbook":
+ return this.model = {
+ sheets: this.map.sheets.model,
+ properties: this.map.workbookPr.model || {},
+ views: this.map.bookViews.model,
+ calcProperties: {}
+ }, this.map.definedNames.model && (this.model.definedNames = this.map.definedNames.model), !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(R) {
+ var C = (R.workbookRels || []).reduce(function(W, U) {
+ return W[U.Id] = U, W;
+ }, {}), E = [], A, L = 0;
+ (R.sheets || []).forEach(function(W) {
+ var U = C[W.rId];
+ U && (A = R.worksheetHash["xl/".concat(U.Target.replace(/^(\s|\/xl\/)+/, ""))], A && (A.name = W.name, A.id = W.id, A.state = W.state, E[L++] = A));
+ });
+ var $ = [];
+ v.each(R.definedNames, function(W) {
+ if (W.name === "_xlnm.Print_Area") {
+ if (A = E[W.localSheetId], A) {
+ A.pageSetup || (A.pageSetup = {});
+ var U = c.decodeEx(W.ranges[0]);
+ A.pageSetup.printArea = A.pageSetup.printArea ? "".concat(A.pageSetup.printArea, "&&").concat(U.dimensions) : U.dimensions;
+ }
+ } else if (W.name === "_xlnm.Print_Titles") {
+ if (A = E[W.localSheetId], A) {
+ A.pageSetup || (A.pageSetup = {});
+ var D = W.ranges.join(","), B = /\$/g, j = /\$\d+:\$\d+/, V = D.match(j);
+ if (V && V.length) {
+ var re = V[0];
+ A.pageSetup.printTitlesRow = re.replace(B, "");
+ }
+ var ee = /\$[A-Z]+:\$[A-Z]+/, ce = D.match(ee);
+ if (ce && ce.length) {
+ var ve = ce[0];
+ A.pageSetup.printTitlesColumn = ve.replace(B, "");
+ }
+ }
+ } else
+ $.push(W);
+ }), R.definedNames = $, R.media.forEach(function(W, U) {
+ W.index = U;
+ });
+ }
+ }]), M;
+ }(r);
+ F.WORKBOOK_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
+ "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
+ "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
+ "mc:Ignorable": "x15",
+ "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"
+ }, F.STATIC_XFORMS = {
+ fileVersion: new t({
+ tag: "fileVersion",
+ $: {
+ appName: "xl",
+ lastEdited: 5,
+ lowestEdited: 5,
+ rupBuild: 9303
+ }
+ })
+ }, x.exports = F;
+ }, { "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "../static-xform": 119, "./defined-name-xform": 32, "./sheet-xform": 33, "./workbook-calc-properties-xform": 34, "./workbook-properties-xform": 35, "./workbook-view-xform": 36 }], 38: [function(e, x, _) {
+ function u(h, l) {
+ var d = Object.keys(h);
+ if (Object.getOwnPropertySymbols) {
+ var s = Object.getOwnPropertySymbols(h);
+ l && (s = s.filter(function(v) {
+ return Object.getOwnPropertyDescriptor(h, v).enumerable;
+ })), d.push.apply(d, s);
+ }
+ return d;
+ }
+ function m(h) {
+ for (var l = 1; l < arguments.length; l++) {
+ var d = arguments[l] != null ? arguments[l] : {};
+ l % 2 ? u(Object(d), !0).forEach(function(s) {
+ g(h, s, d[s]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(d)) : u(Object(d)).forEach(function(s) {
+ Object.defineProperty(h, s, Object.getOwnPropertyDescriptor(d, s));
+ });
+ }
+ return h;
+ }
+ function g(h, l, d) {
+ return l in h ? Object.defineProperty(h, l, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : h[l] = d, h;
+ }
+ var b = e("../strings/rich-text-xform"), w = e("../../../utils/utils"), f = e("../base-xform"), y = x.exports = function(h) {
+ this.model = h;
+ };
+ w.inherits(y, f, {
+ get tag() {
+ return "r";
+ },
+ get richTextXform() {
+ return this._richTextXform || (this._richTextXform = new b()), this._richTextXform;
+ },
+ render: function(l, d) {
+ var s = this;
+ d = d || this.model, l.openNode("comment", {
+ ref: d.ref,
+ authorId: 0
+ }), l.openNode("text"), d && d.note && d.note.texts && d.note.texts.forEach(function(v) {
+ s.richTextXform.render(l, v);
+ }), l.closeNode(), l.closeNode();
+ },
+ parseOpen: function(l) {
+ if (this.parser)
+ return this.parser.parseOpen(l), !0;
+ switch (l.name) {
+ case "comment":
+ return this.model = m({
+ type: "note",
+ note: {
+ texts: []
+ }
+ }, l.attributes), !0;
+ case "r":
+ return this.parser = this.richTextXform, this.parser.parseOpen(l), !0;
+ default:
+ return !1;
+ }
+ },
+ parseText: function(l) {
+ this.parser && this.parser.parseText(l);
+ },
+ parseClose: function(l) {
+ switch (l) {
+ case "comment":
+ return !1;
+ case "r":
+ return this.model.note.texts.push(this.parser.model), this.parser = void 0, !0;
+ default:
+ return this.parser && this.parser.parseClose(l), !0;
+ }
+ }
+ });
+ }, { "../../../utils/utils": 26, "../base-xform": 31, "../strings/rich-text-xform": 121 }], 39: [function(e, x, _) {
+ var u = e("../../../utils/xml-stream"), m = e("../../../utils/utils"), g = e("../base-xform"), b = e("./comment-xform"), w = x.exports = function() {
+ this.map = {
+ comment: new b()
+ };
+ };
+ m.inherits(w, g, {
+ COMMENTS_ATTRIBUTES: {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
+ }
+ }, {
+ render: function(y, h) {
+ var l = this;
+ h = h || this.model, y.openXml(u.StdDocAttributes), y.openNode("comments", w.COMMENTS_ATTRIBUTES), y.openNode("authors"), y.leafNode("author", null, "Author"), y.closeNode(), y.openNode("commentList"), h.comments.forEach(function(d) {
+ l.map.comment.render(y, d);
+ }), y.closeNode(), y.closeNode();
+ },
+ parseOpen: function(y) {
+ if (this.parser)
+ return this.parser.parseOpen(y), !0;
+ switch (y.name) {
+ case "commentList":
+ return this.model = {
+ comments: []
+ }, !0;
+ case "comment":
+ return this.parser = this.map.comment, this.parser.parseOpen(y), !0;
+ default:
+ return !1;
+ }
+ },
+ parseText: function(y) {
+ this.parser && this.parser.parseText(y);
+ },
+ parseClose: function(y) {
+ switch (y) {
+ case "commentList":
+ return !1;
+ case "comment":
+ return this.model.comments.push(this.parser.model), this.parser = void 0, !0;
+ default:
+ return this.parser && this.parser.parseClose(y), !0;
+ }
+ }
+ });
+ }, { "../../../utils/utils": 26, "../../../utils/xml-stream": 27, "../base-xform": 31, "./comment-xform": 38 }], 40: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n._model = i, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o, p) {
+ o === p[2] ? n.leafNode(this.tag) : this.tag === "x:SizeWithCells" && o === p[1] && n.leafNode(this.tag);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {}, this.model[this.tag] = !0, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return this._model && this._model.tag;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 41: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n._model = i, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, null, o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.text = "", !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.text = n;
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return this._model && this._model.tag;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 42: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "getAnchorRect",
+ value: function(n) {
+ var o = Math.floor(n.left), p = Math.floor((n.left - o) * 68), O = Math.floor(n.top), P = Math.floor((n.top - O) * 18), F = Math.floor(n.right), z = Math.floor((n.right - F) * 68), N = Math.floor(n.bottom), M = Math.floor((n.bottom - N) * 18);
+ return [o, p, O, P, F, z, N, M];
+ }
+ }, {
+ key: "getDefaultRect",
+ value: function(n) {
+ var o = n.col, p = 6, O = Math.max(n.row - 2, 0), P = 14, F = o + 2, z = 2, N = O + 4, M = 16;
+ return [o, p, O, P, F, z, N, M];
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ var p = o.anchor ? this.getAnchorRect(o.anchor) : this.getDefaultRect(o.refAddress);
+ n.leafNode("x:Anchor", null, p.join(", "));
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.text = "", !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.text = n;
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x:Anchor";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 43: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../base-xform"), c = e("./vml-anchor-xform"), a = e("./style/vml-protection-xform"), r = e("./style/vml-position-xform"), t = ["twoCells", "oneCells", "absolute"], i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ "x:Anchor": new c(),
+ "x:Locked": new a({
+ tag: "x:Locked"
+ }),
+ "x:LockText": new a({
+ tag: "x:LockText"
+ }),
+ "x:SizeWithCells": new r({
+ tag: "x:SizeWithCells"
+ }),
+ "x:MoveWithCells": new r({
+ tag: "x:MoveWithCells"
+ })
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ var z = F.note, N = z.protection, M = z.editAs;
+ P.openNode(this.tag, {
+ ObjectType: "Note"
+ }), this.map["x:MoveWithCells"].render(P, M, t), this.map["x:SizeWithCells"].render(P, M, t), this.map["x:Anchor"].render(P, F), this.map["x:Locked"].render(P, N.locked), P.leafNode("x:AutoFill", null, "False"), this.map["x:LockText"].render(P, N.lockText), P.leafNode("x:Row", null, F.refAddress.row - 1), P.leafNode("x:Column", null, F.refAddress.col - 1), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ switch (P.name) {
+ case this.tag:
+ this.reset(), this.model = {
+ anchor: [],
+ protection: {},
+ editAs: ""
+ };
+ break;
+ default:
+ this.parser = this.map[P.name], this.parser && this.parser.parseOpen(P);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseClose(P) || (this.parser = void 0), !0;
+ switch (P) {
+ case this.tag:
+ return this.normalizeModel(), !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "normalizeModel",
+ value: function() {
+ var P = Object.assign({}, this.map["x:MoveWithCells"].model, this.map["x:SizeWithCells"].model), F = Object.keys(P).length;
+ this.model.editAs = t[F], this.model.anchor = this.map["x:Anchor"].text, this.model.protection.locked = this.map["x:Locked"].text, this.model.protection.lockText = this.map["x:LockText"].text;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x:ClientData";
+ }
+ }]), p;
+ }(v);
+ x.exports = i;
+ }, { "../base-xform": 31, "./style/vml-position-xform": 40, "./style/vml-protection-xform": 41, "./vml-anchor-xform": 42 }], 44: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./vml-shape-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "v:shape": new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ p.openXml(v.StdDocAttributes), p.openNode(this.tag, n.DRAWING_ATTRIBUTES), p.openNode("o:shapelayout", {
+ "v:ext": "edit"
+ }), p.leafNode("o:idmap", {
+ "v:ext": "edit",
+ data: 1
+ }), p.closeNode(), p.openNode("v:shapetype", {
+ id: "_x0000_t202",
+ coordsize: "21600,21600",
+ "o:spt": 202,
+ path: "m,l,21600r21600,l21600,xe"
+ }), p.leafNode("v:stroke", {
+ joinstyle: "miter"
+ }), p.leafNode("v:path", {
+ gradientshapeok: "t",
+ "o:connecttype": "rect"
+ }), p.closeNode(), O.comments.forEach(function(F, z) {
+ P.map["v:shape"].render(p, F, z);
+ }), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case this.tag:
+ this.reset(), this.model = {
+ comments: []
+ };
+ break;
+ default:
+ this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.model.comments.push(this.parser.model), this.parser = void 0), !0;
+ switch (p) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(p, O) {
+ var P = this;
+ p.anchors.forEach(function(F) {
+ F.br ? P.map["xdr:twoCellAnchor"].reconcile(F, O) : P.map["xdr:oneCellAnchor"].reconcile(F, O);
+ });
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xml";
+ }
+ }]), n;
+ }(c);
+ r.DRAWING_ATTRIBUTES = {
+ "xmlns:v": "urn:schemas-microsoft-com:vml",
+ "xmlns:o": "urn:schemas-microsoft-com:office:office",
+ "xmlns:x": "urn:schemas-microsoft-com:office:excel"
+ }, x.exports = r;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./vml-shape-xform": 45 }], 45: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../base-xform"), c = e("./vml-textbox-xform"), a = e("./vml-client-data-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "v:textbox": new c(),
+ "x:ClientData": new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O, P) {
+ p.openNode("v:shape", n.V_SHAPE_ATTRIBUTES(O, P)), p.leafNode("v:fill", {
+ color2: "infoBackground [80]"
+ }), p.leafNode("v:shadow", {
+ color: "none [81]",
+ obscured: "t"
+ }), p.leafNode("v:path", {
+ "o:connecttype": "none"
+ }), this.map["v:textbox"].render(p, O), this.map["x:ClientData"].render(p, O), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case this.tag:
+ this.reset(), this.model = {
+ margins: {
+ insetmode: p.attributes["o:insetmode"]
+ },
+ anchor: "",
+ editAs: "",
+ protection: {}
+ };
+ break;
+ default:
+ this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.parser = void 0), !0;
+ switch (p) {
+ case this.tag:
+ return this.model.margins.inset = this.map["v:textbox"].model && this.map["v:textbox"].model.inset, this.model.protection = this.map["x:ClientData"].model && this.map["x:ClientData"].model.protection, this.model.anchor = this.map["x:ClientData"].model && this.map["x:ClientData"].model.anchor, this.model.editAs = this.map["x:ClientData"].model && this.map["x:ClientData"].model.editAs, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "v:shape";
+ }
+ }]), n;
+ }(v);
+ r.V_SHAPE_ATTRIBUTES = function(t, i) {
+ return {
+ id: "_x0000_s".concat(1025 + i),
+ type: "#_x0000_t202",
+ style: "position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",
+ fillcolor: "infoBackground [80]",
+ strokecolor: "none [81]",
+ "o:insetmode": t.note.margins && t.note.margins.insetmode
+ };
+ }, x.exports = r;
+ }, { "../base-xform": 31, "./vml-client-data-xform": 43, "./vml-textbox-xform": 46 }], 46: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "conversionUnit",
+ value: function(n, o, p) {
+ return "".concat(parseFloat(n) * o.toFixed(2)).concat(p);
+ }
+ }, {
+ key: "reverseConversionUnit",
+ value: function(n) {
+ var o = this;
+ return (n || "").split(",").map(function(p) {
+ return Number(parseFloat(o.conversionUnit(parseFloat(p), 0.1, "")).toFixed(2));
+ });
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ var p = this, O = {
+ style: "mso-direction-alt:auto"
+ };
+ if (o && o.note) {
+ var P = o.note && o.note.margins, F = P.inset;
+ Array.isArray(F) && (F = F.map(function(z) {
+ return p.conversionUnit(z, 10, "mm");
+ }).join(",")), F && (O.inset = F);
+ }
+ n.openNode("v:textbox", O), n.leafNode("div", {
+ style: "text-align:left"
+ }), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ inset: this.reverseConversionUnit(n.attributes.inset)
+ }, !0;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ switch (n) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "v:textbox";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 47: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("./base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "createNewModel",
+ value: function(n) {
+ return {};
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return this.parser = this.parser || this.map[n.name], this.parser ? (this.parser.parseOpen(n), !0) : n.name === this.tag ? (this.model = this.createNewModel(n), !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.parser && this.parser.parseText(n);
+ }
+ }, {
+ key: "onParserClose",
+ value: function(n, o) {
+ this.model[n] = o.model;
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return this.parser ? (this.parser.parseClose(n) || (this.onParserClose(n, this.parser), this.parser = void 0), !0) : n !== this.tag;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "./base-xform": 31 }], 48: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.openNode("HeadingPairs"), n.openNode("vt:vector", {
+ size: 2,
+ baseType: "variant"
+ }), n.openNode("vt:variant"), n.leafNode("vt:lpstr", void 0, "Worksheets"), n.closeNode(), n.openNode("vt:variant"), n.leafNode("vt:i4", void 0, o.length), n.closeNode(), n.closeNode(), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "HeadingPairs";
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== "HeadingPairs";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 49: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.openNode("TitlesOfParts"), n.openNode("vt:vector", {
+ size: o.length,
+ baseType: "lpstr"
+ }), o.forEach(function(p) {
+ n.leafNode("vt:lpstr", void 0, p.name);
+ }), n.closeNode(), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "TitlesOfParts";
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== "TitlesOfParts";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 50: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("../simple/string-xform"), r = e("./app-heading-pairs-xform"), t = e("./app-titles-of-parts-xform"), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ Company: new a({
+ tag: "Company"
+ }),
+ Manager: new a({
+ tag: "Manager"
+ }),
+ HeadingPairs: new r(),
+ TitleOfParts: new t()
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.openXml(v.StdDocAttributes), P.openNode("Properties", p.PROPERTY_ATTRIBUTES), P.leafNode("Application", void 0, "Microsoft Excel"), P.leafNode("DocSecurity", void 0, "0"), P.leafNode("ScaleCrop", void 0, "false"), this.map.HeadingPairs.render(P, F.worksheets), this.map.TitleOfParts.render(P, F.worksheets), this.map.Company.render(P, F.company || ""), this.map.Manager.render(P, F.manager), P.leafNode("LinksUpToDate", void 0, "false"), P.leafNode("SharedDoc", void 0, "false"), P.leafNode("HyperlinksChanged", void 0, "false"), P.leafNode("AppVersion", void 0, "16.0300"), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "Properties":
+ return !0;
+ default:
+ return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseClose(P) || (this.parser = void 0), !0;
+ switch (P) {
+ case "Properties":
+ return this.model = {
+ worksheets: this.map.TitleOfParts.model,
+ company: this.map.Company.model,
+ manager: this.map.Manager.model
+ }, !1;
+ default:
+ return !0;
+ }
+ }
+ }]), p;
+ }(c);
+ i.DateFormat = function(n) {
+ return n.toISOString().replace(/[.]\d{3,6}/, "");
+ }, i.DateAttrs = {
+ "xsi:type": "dcterms:W3CDTF"
+ }, i.PROPERTY_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
+ "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
+ }, x.exports = i;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../simple/string-xform": 118, "./app-heading-pairs-xform": 48, "./app-titles-of-parts-xform": 49 }], 51: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.openXml(v.StdDocAttributes), o.openNode("Types", i.PROPERTY_ATTRIBUTES);
+ var O = {};
+ (p.media || []).forEach(function(F) {
+ if (F.type === "image") {
+ var z = F.extension;
+ O[z] || (O[z] = !0, o.leafNode("Default", {
+ Extension: z,
+ ContentType: "image/".concat(z)
+ }));
+ }
+ }), o.leafNode("Default", {
+ Extension: "rels",
+ ContentType: "application/vnd.openxmlformats-package.relationships+xml"
+ }), o.leafNode("Default", {
+ Extension: "xml",
+ ContentType: "application/xml"
+ }), o.leafNode("Override", {
+ PartName: "/xl/workbook.xml",
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"
+ }), p.worksheets.forEach(function(F) {
+ var z = "/xl/worksheets/sheet".concat(F.id, ".xml");
+ o.leafNode("Override", {
+ PartName: z,
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"
+ });
+ }), o.leafNode("Override", {
+ PartName: "/xl/theme/theme1.xml",
+ ContentType: "application/vnd.openxmlformats-officedocument.theme+xml"
+ }), o.leafNode("Override", {
+ PartName: "/xl/styles.xml",
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"
+ });
+ var P = p.sharedStrings && p.sharedStrings.count;
+ P && o.leafNode("Override", {
+ PartName: "/xl/sharedStrings.xml",
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"
+ }), p.tables && p.tables.forEach(function(F) {
+ o.leafNode("Override", {
+ PartName: "/xl/tables/".concat(F.target),
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"
+ });
+ }), p.drawings && p.drawings.forEach(function(F) {
+ o.leafNode("Override", {
+ PartName: "/xl/drawings/".concat(F.name, ".xml"),
+ ContentType: "application/vnd.openxmlformats-officedocument.drawing+xml"
+ });
+ }), p.commentRefs && (o.leafNode("Default", {
+ Extension: "vml",
+ ContentType: "application/vnd.openxmlformats-officedocument.vmlDrawing"
+ }), p.commentRefs.forEach(function(F) {
+ var z = F.commentName;
+ o.leafNode("Override", {
+ PartName: "/xl/".concat(z, ".xml"),
+ ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"
+ });
+ })), o.leafNode("Override", {
+ PartName: "/docProps/core.xml",
+ ContentType: "application/vnd.openxmlformats-package.core-properties+xml"
+ }), o.leafNode("Override", {
+ PartName: "/docProps/app.xml",
+ ContentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml"
+ }), o.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), i;
+ }(c);
+ a.PROPERTY_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/package/2006/content-types"
+ }, x.exports = a;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31 }], 52: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("../simple/date-xform"), r = e("../simple/string-xform"), t = e("../simple/integer-xform"), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ "dc:creator": new r({
+ tag: "dc:creator"
+ }),
+ "dc:title": new r({
+ tag: "dc:title"
+ }),
+ "dc:subject": new r({
+ tag: "dc:subject"
+ }),
+ "dc:description": new r({
+ tag: "dc:description"
+ }),
+ "dc:identifier": new r({
+ tag: "dc:identifier"
+ }),
+ "dc:language": new r({
+ tag: "dc:language"
+ }),
+ "cp:keywords": new r({
+ tag: "cp:keywords"
+ }),
+ "cp:category": new r({
+ tag: "cp:category"
+ }),
+ "cp:lastModifiedBy": new r({
+ tag: "cp:lastModifiedBy"
+ }),
+ "cp:lastPrinted": new a({
+ tag: "cp:lastPrinted",
+ format: p.DateFormat
+ }),
+ "cp:revision": new t({
+ tag: "cp:revision"
+ }),
+ "cp:version": new r({
+ tag: "cp:version"
+ }),
+ "cp:contentStatus": new r({
+ tag: "cp:contentStatus"
+ }),
+ "cp:contentType": new r({
+ tag: "cp:contentType"
+ }),
+ "dcterms:created": new a({
+ tag: "dcterms:created",
+ attrs: p.DateAttrs,
+ format: p.DateFormat
+ }),
+ "dcterms:modified": new a({
+ tag: "dcterms:modified",
+ attrs: p.DateAttrs,
+ format: p.DateFormat
+ })
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.openXml(v.StdDocAttributes), P.openNode("cp:coreProperties", p.CORE_PROPERTY_ATTRIBUTES), this.map["dc:creator"].render(P, F.creator), this.map["dc:title"].render(P, F.title), this.map["dc:subject"].render(P, F.subject), this.map["dc:description"].render(P, F.description), this.map["dc:identifier"].render(P, F.identifier), this.map["dc:language"].render(P, F.language), this.map["cp:keywords"].render(P, F.keywords), this.map["cp:category"].render(P, F.category), this.map["cp:lastModifiedBy"].render(P, F.lastModifiedBy), this.map["cp:lastPrinted"].render(P, F.lastPrinted), this.map["cp:revision"].render(P, F.revision), this.map["cp:version"].render(P, F.version), this.map["cp:contentStatus"].render(P, F.contentStatus), this.map["cp:contentType"].render(P, F.contentType), this.map["dcterms:created"].render(P, F.created), this.map["dcterms:modified"].render(P, F.modified), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "cp:coreProperties":
+ case "coreProperties":
+ return !0;
+ default:
+ if (this.parser = this.map[P.name], this.parser)
+ return this.parser.parseOpen(P), !0;
+ throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(P)));
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseClose(P) || (this.parser = void 0), !0;
+ switch (P) {
+ case "cp:coreProperties":
+ case "coreProperties":
+ return this.model = {
+ creator: this.map["dc:creator"].model,
+ title: this.map["dc:title"].model,
+ subject: this.map["dc:subject"].model,
+ description: this.map["dc:description"].model,
+ identifier: this.map["dc:identifier"].model,
+ language: this.map["dc:language"].model,
+ keywords: this.map["cp:keywords"].model,
+ category: this.map["cp:category"].model,
+ lastModifiedBy: this.map["cp:lastModifiedBy"].model,
+ lastPrinted: this.map["cp:lastPrinted"].model,
+ revision: this.map["cp:revision"].model,
+ contentStatus: this.map["cp:contentStatus"].model,
+ contentType: this.map["cp:contentType"].model,
+ created: this.map["dcterms:created"].model,
+ modified: this.map["dcterms:modified"].model
+ }, !1;
+ default:
+ throw new Error("Unexpected xml node in parseClose: ".concat(P));
+ }
+ }
+ }]), p;
+ }(c);
+ i.DateFormat = function(n) {
+ return n.toISOString().replace(/[.]\d{3}/, "");
+ }, i.DateAttrs = {
+ "xsi:type": "dcterms:W3CDTF"
+ }, i.CORE_PROPERTY_ATTRIBUTES = {
+ "xmlns:cp": "http://schemas.openxmlformats.org/package/2006/metadata/core-properties",
+ "xmlns:dc": "http://purl.org/dc/elements/1.1/",
+ "xmlns:dcterms": "http://purl.org/dc/terms/",
+ "xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
+ "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
+ }, x.exports = i;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../simple/date-xform": 116, "../simple/integer-xform": 117, "../simple/string-xform": 118 }], 53: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("Relationship", o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case "Relationship":
+ return this.model = n.attributes, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 54: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./relationship-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ Relationship: new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ O = O || this._values, p.openXml(v.StdDocAttributes), p.openNode("Relationships", n.RELATIONSHIPS_ATTRIBUTES), O.forEach(function(F) {
+ P.map.Relationship.render(p, F);
+ }), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case "Relationships":
+ return this.model = [], !0;
+ default:
+ if (this.parser = this.map[p.name], this.parser)
+ return this.parser.parseOpen(p), !0;
+ throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(p)));
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.model.push(this.parser.model), this.parser = void 0), !0;
+ switch (p) {
+ case "Relationships":
+ return !1;
+ default:
+ throw new Error("Unexpected xml node in parseClose: ".concat(p));
+ }
+ }
+ }]), n;
+ }(c);
+ r.RELATIONSHIPS_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/package/2006/relationships"
+ }, x.exports = r;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./relationship-xform": 53 }], 55: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "parseOpen",
+ value: function(n) {
+ if (this.parser)
+ return this.parser.parseOpen(n), !0;
+ switch (n.name) {
+ case this.tag:
+ this.reset(), this.model = {
+ range: {
+ editAs: n.attributes.editAs || "oneCell"
+ }
+ };
+ break;
+ default:
+ this.parser = this.map[n.name], this.parser && this.parser.parseOpen(n);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.parser && this.parser.parseText(n);
+ }
+ }, {
+ key: "reconcilePicture",
+ value: function(n, o) {
+ if (n && n.rId) {
+ var p = o.rels[n.rId], O = p.Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);
+ if (O) {
+ var P = O[1], F = o.mediaIndex[P];
+ return o.media[F];
+ }
+ }
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 56: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = e("./blip-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ var n;
+ return m(this, i), n = t.call(this), n.map = {
+ "a:blip": new c()
+ }, n;
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.openNode(this.tag), this.map["a:blip"].render(o, p), o.openNode("a:stretch"), o.leafNode("a:fillRect"), o.closeNode(), o.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseOpen(o), !0;
+ switch (o.name) {
+ case this.tag:
+ this.reset();
+ break;
+ default:
+ this.parser = this.map[o.name], this.parser && this.parser.parseOpen(o);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseClose(o) || (this.parser = void 0), !0;
+ switch (o) {
+ case this.tag:
+ return this.model = this.map["a:blip"].model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:blipFill";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31, "./blip-xform": 57 }], 57: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, {
+ "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
+ "r:embed": o.rId,
+ cstate: "print"
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ rId: n.attributes["r:embed"]
+ }, !0;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ switch (n) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "a:blip";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 58: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n) {
+ n.openNode(this.tag), n.leafNode("a:picLocks", {
+ noChangeAspect: "1"
+ }), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return !0;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ switch (n) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:cNvPicPr";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 59: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../base-xform"), c = e("./hlink-click-xform"), a = e("./ext-lst-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "a:hlinkClick": new c(),
+ "a:extLst": new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ p.openNode(this.tag, {
+ id: O.index,
+ name: "Picture ".concat(O.index)
+ }), this.map["a:hlinkClick"].render(p, O), this.map["a:extLst"].render(p, O), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case this.tag:
+ this.reset();
+ break;
+ default:
+ this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.parser = void 0), !0;
+ switch (p) {
+ case this.tag:
+ return this.model = this.map["a:hlinkClick"].model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:cNvPr";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../base-xform": 31, "./ext-lst-xform": 62, "./hlink-click-xform": 64 }], 60: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = e("../simple/integer-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i(n) {
+ var o;
+ return m(this, i), o = t.call(this), o.tag = n.tag, o.map = {
+ "xdr:col": new c({
+ tag: "xdr:col",
+ zero: !0
+ }),
+ "xdr:colOff": new c({
+ tag: "xdr:colOff",
+ zero: !0
+ }),
+ "xdr:row": new c({
+ tag: "xdr:row",
+ zero: !0
+ }),
+ "xdr:rowOff": new c({
+ tag: "xdr:rowOff",
+ zero: !0
+ })
+ }, o;
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.openNode(this.tag), this.map["xdr:col"].render(o, p.nativeCol), this.map["xdr:colOff"].render(o, p.nativeColOff), this.map["xdr:row"].render(o, p.nativeRow), this.map["xdr:rowOff"].render(o, p.nativeRowOff), o.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseOpen(o), !0;
+ switch (o.name) {
+ case this.tag:
+ this.reset();
+ break;
+ default:
+ this.parser = this.map[o.name], this.parser && this.parser.parseOpen(o);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(o) {
+ this.parser && this.parser.parseText(o);
+ }
+ }, {
+ key: "parseClose",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseClose(o) || (this.parser = void 0), !0;
+ switch (o) {
+ case this.tag:
+ return this.model = {
+ nativeCol: this.map["xdr:col"].model,
+ nativeColOff: this.map["xdr:colOff"].model,
+ nativeRow: this.map["xdr:row"].model,
+ nativeRowOff: this.map["xdr:rowOff"].model
+ }, !1;
+ default:
+ return !0;
+ }
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31, "../simple/integer-xform": 117 }], 61: [function(e, x, _) {
+ function u(o) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(O) {
+ return typeof O;
+ } : u = function(O) {
+ return O && typeof Symbol == "function" && O.constructor === Symbol && O !== Symbol.prototype ? "symbol" : typeof O;
+ }, u(o);
+ }
+ function m(o, p) {
+ if (!(o instanceof p))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(o, p) {
+ for (var O = 0; O < p.length; O++) {
+ var P = p[O];
+ P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(o, P.key, P);
+ }
+ }
+ function b(o, p, O) {
+ return p && g(o.prototype, p), O && g(o, O), o;
+ }
+ function w(o, p) {
+ if (typeof p != "function" && p !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ o.prototype = Object.create(p && p.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), p && f(o, p);
+ }
+ function f(o, p) {
+ return f = Object.setPrototypeOf || function(P, F) {
+ return P.__proto__ = F, P;
+ }, f(o, p);
+ }
+ function y(o) {
+ var p = d();
+ return function() {
+ var P = s(o), F;
+ if (p) {
+ var z = s(this).constructor;
+ F = Reflect.construct(P, arguments, z);
+ } else
+ F = P.apply(this, arguments);
+ return h(this, F);
+ };
+ }
+ function h(o, p) {
+ return p && (u(p) === "object" || typeof p == "function") ? p : l(o);
+ }
+ function l(o) {
+ if (o === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return o;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (o) {
+ return !1;
+ }
+ }
+ function s(o) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(O) {
+ return O.__proto__ || Object.getPrototypeOf(O);
+ }, s(o);
+ }
+ var v = e("../../../utils/col-cache"), c = e("../../../utils/xml-stream"), a = e("../base-xform"), r = e("./two-cell-anchor-xform"), t = e("./one-cell-anchor-xform");
+ function i(o) {
+ var p = typeof o.range == "string" ? v.decode(o.range) : o.range;
+ return p.br ? "xdr:twoCellAnchor" : "xdr:oneCellAnchor";
+ }
+ var n = /* @__PURE__ */ function(o) {
+ w(O, o);
+ var p = y(O);
+ function O() {
+ var P;
+ return m(this, O), P = p.call(this), P.map = {
+ "xdr:twoCellAnchor": new r(),
+ "xdr:oneCellAnchor": new t()
+ }, P;
+ }
+ return b(O, [{
+ key: "prepare",
+ value: function(F) {
+ var z = this;
+ F.anchors.forEach(function(N, M) {
+ N.anchorType = i(N);
+ var I = z.map[N.anchorType];
+ I.prepare(N, {
+ index: M
+ });
+ });
+ }
+ }, {
+ key: "render",
+ value: function(F, z) {
+ var N = this;
+ F.openXml(c.StdDocAttributes), F.openNode(this.tag, O.DRAWING_ATTRIBUTES), z.anchors.forEach(function(M) {
+ var I = N.map[M.anchorType];
+ I.render(F, M);
+ }), F.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(F) {
+ if (this.parser)
+ return this.parser.parseOpen(F), !0;
+ switch (F.name) {
+ case this.tag:
+ this.reset(), this.model = {
+ anchors: []
+ };
+ break;
+ default:
+ this.parser = this.map[F.name], this.parser && this.parser.parseOpen(F);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(F) {
+ this.parser && this.parser.parseText(F);
+ }
+ }, {
+ key: "parseClose",
+ value: function(F) {
+ if (this.parser)
+ return this.parser.parseClose(F) || (this.model.anchors.push(this.parser.model), this.parser = void 0), !0;
+ switch (F) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(F, z) {
+ var N = this;
+ F.anchors.forEach(function(M) {
+ M.br ? N.map["xdr:twoCellAnchor"].reconcile(M, z) : N.map["xdr:oneCellAnchor"].reconcile(M, z);
+ });
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:wsDr";
+ }
+ }]), O;
+ }(a);
+ n.DRAWING_ATTRIBUTES = {
+ "xmlns:xdr": "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",
+ "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main"
+ }, x.exports = n;
+ }, { "../../../utils/col-cache": 19, "../../../utils/xml-stream": 27, "../base-xform": 31, "./one-cell-anchor-xform": 66, "./two-cell-anchor-xform": 69 }], 62: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n) {
+ n.openNode(this.tag), n.openNode("a:ext", {
+ uri: "{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"
+ }), n.leafNode("a16:creationId", {
+ "xmlns:a16": "http://schemas.microsoft.com/office/drawing/2014/main",
+ id: "{00000000-0008-0000-0000-000002000000}"
+ }), n.closeNode(), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return !0;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ switch (n) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "a:extLst";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 63: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = 9525, a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i(n) {
+ var o;
+ return m(this, i), o = t.call(this), o.tag = n.tag, o.map = {}, o;
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.openNode(this.tag);
+ var O = Math.floor(p.width * c), P = Math.floor(p.height * c);
+ o.addAttribute("cx", O), o.addAttribute("cy", P), o.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ return o.name === this.tag ? (this.model = {
+ width: parseInt(o.attributes.cx || "0", 10) / c,
+ height: parseInt(o.attributes.cy || "0", 10) / c
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31 }], 64: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o.hyperlinks && o.hyperlinks.rId && n.leafNode(this.tag, {
+ "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
+ "r:id": o.hyperlinks.rId,
+ tooltip: o.hyperlinks.tooltip
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ hyperlinks: {
+ rId: n.attributes["r:id"],
+ tooltip: n.attributes.tooltip
+ }
+ }, !0;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "a:hlinkClick";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 65: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../base-xform"), c = e("./c-nv-pr-xform"), a = e("./c-nv-pic-pr-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "xdr:cNvPr": new c(),
+ "xdr:cNvPicPr": new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ p.openNode(this.tag), this.map["xdr:cNvPr"].render(p, O), this.map["xdr:cNvPicPr"].render(p, O), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case this.tag:
+ this.reset();
+ break;
+ default:
+ this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.parser = void 0), !0;
+ switch (p) {
+ case this.tag:
+ return this.model = this.map["xdr:cNvPr"].model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:nvPicPr";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../base-xform": 31, "./c-nv-pic-pr-xform": 58, "./c-nv-pr-xform": 59 }], 66: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("./base-cell-anchor-xform"), c = e("../static-xform"), a = e("./cell-position-xform"), r = e("./ext-xform"), t = e("./pic-xform"), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ "xdr:from": new a({
+ tag: "xdr:from"
+ }),
+ "xdr:ext": new r({
+ tag: "xdr:ext"
+ }),
+ "xdr:pic": new t(),
+ "xdr:clientData": new c({
+ tag: "xdr:clientData"
+ })
+ }, O;
+ }
+ return b(p, [{
+ key: "prepare",
+ value: function(P, F) {
+ this.map["xdr:pic"].prepare(P.picture, F);
+ }
+ }, {
+ key: "render",
+ value: function(P, F) {
+ P.openNode(this.tag, {
+ editAs: F.range.editAs || "oneCell"
+ }), this.map["xdr:from"].render(P, F.range.tl), this.map["xdr:ext"].render(P, F.range.ext), this.map["xdr:pic"].render(P, F.picture), this.map["xdr:clientData"].render(P, {}), P.closeNode();
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseClose(P) || (this.parser = void 0), !0;
+ switch (P) {
+ case this.tag:
+ return this.model.range.tl = this.map["xdr:from"].model, this.model.range.ext = this.map["xdr:ext"].model, this.model.picture = this.map["xdr:pic"].model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(P, F) {
+ P.medium = this.reconcilePicture(P.picture, F);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:oneCellAnchor";
+ }
+ }]), p;
+ }(v);
+ x.exports = i;
+ }, { "../static-xform": 119, "./base-cell-anchor-xform": 55, "./cell-position-xform": 60, "./ext-xform": 63, "./pic-xform": 67 }], 67: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../base-xform"), c = e("../static-xform"), a = e("./blip-fill-xform"), r = e("./nv-pic-pr-xform"), t = e("./sp-pr"), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ "xdr:nvPicPr": new r(),
+ "xdr:blipFill": new a(),
+ "xdr:spPr": new c(t)
+ }, O;
+ }
+ return b(p, [{
+ key: "prepare",
+ value: function(P, F) {
+ P.index = F.index + 1;
+ }
+ }, {
+ key: "render",
+ value: function(P, F) {
+ P.openNode(this.tag), this.map["xdr:nvPicPr"].render(P, F), this.map["xdr:blipFill"].render(P, F), this.map["xdr:spPr"].render(P, F), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case this.tag:
+ this.reset();
+ break;
+ default:
+ this.parser = this.map[P.name], this.parser && this.parser.parseOpen(P);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseClose(P) || (this.mergeModel(this.parser.model), this.parser = void 0), !0;
+ switch (P) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:pic";
+ }
+ }]), p;
+ }(v);
+ x.exports = i;
+ }, { "../base-xform": 31, "../static-xform": 119, "./blip-fill-xform": 56, "./nv-pic-pr-xform": 65, "./sp-pr": 68 }], 68: [function(e, x, _) {
+ x.exports = {
+ tag: "xdr:spPr",
+ c: [{
+ tag: "a:xfrm",
+ c: [{
+ tag: "a:off",
+ $: {
+ x: "0",
+ y: "0"
+ }
+ }, {
+ tag: "a:ext",
+ $: {
+ cx: "0",
+ cy: "0"
+ }
+ }]
+ }, {
+ tag: "a:prstGeom",
+ $: {
+ prst: "rect"
+ },
+ c: [{
+ tag: "a:avLst"
+ }]
+ }]
+ };
+ }, {}], 69: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("./base-cell-anchor-xform"), c = e("../static-xform"), a = e("./cell-position-xform"), r = e("./pic-xform"), t = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ var p;
+ return m(this, o), p = n.call(this), p.map = {
+ "xdr:from": new a({
+ tag: "xdr:from"
+ }),
+ "xdr:to": new a({
+ tag: "xdr:to"
+ }),
+ "xdr:pic": new r(),
+ "xdr:clientData": new c({
+ tag: "xdr:clientData"
+ })
+ }, p;
+ }
+ return b(o, [{
+ key: "prepare",
+ value: function(O, P) {
+ this.map["xdr:pic"].prepare(O.picture, P);
+ }
+ }, {
+ key: "render",
+ value: function(O, P) {
+ O.openNode(this.tag, {
+ editAs: P.range.editAs || "oneCell"
+ }), this.map["xdr:from"].render(O, P.range.tl), this.map["xdr:to"].render(O, P.range.br), this.map["xdr:pic"].render(O, P.picture), this.map["xdr:clientData"].render(O, {}), O.closeNode();
+ }
+ }, {
+ key: "parseClose",
+ value: function(O) {
+ if (this.parser)
+ return this.parser.parseClose(O) || (this.parser = void 0), !0;
+ switch (O) {
+ case this.tag:
+ return this.model.range.tl = this.map["xdr:from"].model, this.model.range.br = this.map["xdr:to"].model, this.model.picture = this.map["xdr:pic"].model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(O, P) {
+ O.medium = this.reconcilePicture(O.picture, P);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xdr:twoCellAnchor";
+ }
+ }]), o;
+ }(v);
+ x.exports = t;
+ }, { "../static-xform": 119, "./base-cell-anchor-xform": 55, "./cell-position-xform": 60, "./pic-xform": 67 }], 70: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("./base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.tag = i.tag, n.always = !!i.always, n.count = i.count, n.empty = i.empty, n.$count = i.$count || "count", n.$ = i.$, n.childXform = i.childXform, n.maxItems = i.maxItems, n;
+ }
+ return b(t, [{
+ key: "prepare",
+ value: function(n, o) {
+ var p = this.childXform;
+ n && n.forEach(function(O, P) {
+ o.index = P, p.prepare(O, o);
+ });
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ if (this.always || o && o.length) {
+ n.openNode(this.tag, this.$), this.count && n.addAttribute(this.$count, o && o.length || 0);
+ var p = this.childXform;
+ (o || []).forEach(function(O, P) {
+ p.render(n, O, P);
+ }), n.closeNode();
+ } else
+ this.empty && n.leafNode(this.tag);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (this.parser)
+ return this.parser.parseOpen(n), !0;
+ switch (n.name) {
+ case this.tag:
+ return this.model = [], !0;
+ default:
+ return this.childXform.parseOpen(n) ? (this.parser = this.childXform, !0) : !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.parser && this.parser.parseText(n);
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ if (this.parser) {
+ if (!this.parser.parseClose(n) && (this.model.push(this.parser.model), this.parser = void 0, this.maxItems && this.model.length > this.maxItems))
+ throw new Error("Max ".concat(this.childXform.tag, " count (").concat(this.maxItems, ") exceeded"));
+ return !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "reconcile",
+ value: function(n, o) {
+ if (n) {
+ var p = this.childXform;
+ n.forEach(function(O) {
+ p.reconcile(O, o);
+ });
+ }
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "./base-xform": 31 }], 71: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../../utils/col-cache"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ if (p)
+ if (typeof p == "string")
+ o.leafNode("autoFilter", {
+ ref: p
+ });
+ else {
+ var O = function(N) {
+ return typeof N == "string" ? N : v.getAddress(N.row, N.column).address;
+ }, P = O(p.from), F = O(p.to);
+ P && F && o.leafNode("autoFilter", {
+ ref: "".concat(P, ":").concat(F)
+ });
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ o.name === "autoFilter" && (this.model = o.attributes.ref);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "autoFilter";
+ }
+ }]), i;
+ }(c);
+ x.exports = a;
+ }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 72: [function(e, x, _) {
+ function u(F) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) {
+ return typeof N;
+ } : u = function(N) {
+ return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N;
+ }, u(F);
+ }
+ function m(F, z) {
+ var N = Object.keys(F);
+ if (Object.getOwnPropertySymbols) {
+ var M = Object.getOwnPropertySymbols(F);
+ z && (M = M.filter(function(I) {
+ return Object.getOwnPropertyDescriptor(F, I).enumerable;
+ })), N.push.apply(N, M);
+ }
+ return N;
+ }
+ function g(F) {
+ for (var z = 1; z < arguments.length; z++) {
+ var N = arguments[z] != null ? arguments[z] : {};
+ z % 2 ? m(Object(N), !0).forEach(function(M) {
+ b(F, M, N[M]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(F, Object.getOwnPropertyDescriptors(N)) : m(Object(N)).forEach(function(M) {
+ Object.defineProperty(F, M, Object.getOwnPropertyDescriptor(N, M));
+ });
+ }
+ return F;
+ }
+ function b(F, z, N) {
+ return z in F ? Object.defineProperty(F, z, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : F[z] = N, F;
+ }
+ function w(F, z) {
+ if (!(F instanceof z))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(F, z) {
+ for (var N = 0; N < z.length; N++) {
+ var M = z[N];
+ M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M);
+ }
+ }
+ function y(F, z, N) {
+ return z && f(F.prototype, z), N && f(F, N), F;
+ }
+ function h(F, z) {
+ if (typeof z != "function" && z !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && l(F, z);
+ }
+ function l(F, z) {
+ return l = Object.setPrototypeOf || function(M, I) {
+ return M.__proto__ = I, M;
+ }, l(F, z);
+ }
+ function d(F) {
+ var z = c();
+ return function() {
+ var M = a(F), I;
+ if (z) {
+ var R = a(this).constructor;
+ I = Reflect.construct(M, arguments, R);
+ } else
+ I = M.apply(this, arguments);
+ return s(this, I);
+ };
+ }
+ function s(F, z) {
+ return z && (u(z) === "object" || typeof z == "function") ? z : v(F);
+ }
+ function v(F) {
+ if (F === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return F;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (F) {
+ return !1;
+ }
+ }
+ function a(F) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) {
+ return N.__proto__ || Object.getPrototypeOf(N);
+ }, a(F);
+ }
+ var r = e("../../../utils/utils"), t = e("../base-xform"), i = e("../../../doc/range"), n = e("../../../doc/enums"), o = e("../strings/rich-text-xform");
+ function p(F) {
+ if (F == null)
+ return n.ValueType.Null;
+ if (F instanceof String || typeof F == "string")
+ return n.ValueType.String;
+ if (typeof F == "number")
+ return n.ValueType.Number;
+ if (typeof F == "boolean")
+ return n.ValueType.Boolean;
+ if (F instanceof Date)
+ return n.ValueType.Date;
+ if (F.text && F.hyperlink)
+ return n.ValueType.Hyperlink;
+ if (F.formula)
+ return n.ValueType.Formula;
+ if (F.error)
+ return n.ValueType.Error;
+ throw new Error("I could not understand type of value");
+ }
+ function O(F) {
+ switch (F.type) {
+ case n.ValueType.Formula:
+ return p(F.result);
+ default:
+ return F.type;
+ }
+ }
+ var P = /* @__PURE__ */ function(F) {
+ h(N, F);
+ var z = d(N);
+ function N() {
+ var M;
+ return w(this, N), M = z.call(this), M.richTextXForm = new o(), M;
+ }
+ return y(N, [{
+ key: "prepare",
+ value: function(I, R) {
+ var C = R.styles.addStyleModel(I.style || {}, O(I));
+ switch (C && (I.styleId = C), I.comment && R.comments.push(g(g({}, I.comment), {}, {
+ ref: I.address
+ })), I.type) {
+ case n.ValueType.String:
+ case n.ValueType.RichText:
+ R.sharedStrings && (I.ssId = R.sharedStrings.add(I.value));
+ break;
+ case n.ValueType.Date:
+ R.date1904 && (I.date1904 = !0);
+ break;
+ case n.ValueType.Hyperlink:
+ R.sharedStrings && I.text !== void 0 && I.text !== null && (I.ssId = R.sharedStrings.add(I.text)), R.hyperlinks.push({
+ address: I.address,
+ target: I.hyperlink,
+ tooltip: I.tooltip
+ });
+ break;
+ case n.ValueType.Merge:
+ R.merges.add(I);
+ break;
+ case n.ValueType.Formula:
+ if (R.date1904 && (I.date1904 = !0), I.shareType === "shared" && (I.si = R.siFormulae++), I.formula)
+ R.formulae[I.address] = I;
+ else if (I.sharedFormula) {
+ var E = R.formulae[I.sharedFormula];
+ if (!E)
+ throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(I.address));
+ E.si === void 0 ? (E.shareType = "shared", E.si = R.siFormulae++, E.range = new i(E.address, I.address)) : E.range && E.range.expandToAddress(I.address), I.si = E.si;
+ }
+ break;
+ }
+ }
+ }, {
+ key: "renderFormula",
+ value: function(I, R) {
+ var C = null;
+ switch (R.shareType) {
+ case "shared":
+ C = {
+ t: "shared",
+ ref: R.ref || R.range.range,
+ si: R.si
+ };
+ break;
+ case "array":
+ C = {
+ t: "array",
+ ref: R.ref
+ };
+ break;
+ default:
+ R.si !== void 0 && (C = {
+ t: "shared",
+ si: R.si
+ });
+ break;
+ }
+ switch (p(R.result)) {
+ case n.ValueType.Null:
+ I.leafNode("f", C, R.formula);
+ break;
+ case n.ValueType.String:
+ I.addAttribute("t", "str"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result);
+ break;
+ case n.ValueType.Number:
+ I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result);
+ break;
+ case n.ValueType.Boolean:
+ I.addAttribute("t", "b"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result ? 1 : 0);
+ break;
+ case n.ValueType.Error:
+ I.addAttribute("t", "e"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result.error);
+ break;
+ case n.ValueType.Date:
+ I.leafNode("f", C, R.formula), I.leafNode("v", null, r.dateToExcel(R.result, R.date1904));
+ break;
+ default:
+ throw new Error("I could not understand type of value");
+ }
+ }
+ }, {
+ key: "render",
+ value: function(I, R) {
+ var C = this;
+ if (!(R.type === n.ValueType.Null && !R.styleId)) {
+ switch (I.openNode("c"), I.addAttribute("r", R.address), R.styleId && I.addAttribute("s", R.styleId), R.type) {
+ case n.ValueType.Null:
+ break;
+ case n.ValueType.Number:
+ I.leafNode("v", null, R.value);
+ break;
+ case n.ValueType.Boolean:
+ I.addAttribute("t", "b"), I.leafNode("v", null, R.value ? "1" : "0");
+ break;
+ case n.ValueType.Error:
+ I.addAttribute("t", "e"), I.leafNode("v", null, R.value.error);
+ break;
+ case n.ValueType.String:
+ case n.ValueType.RichText:
+ R.ssId !== void 0 ? (I.addAttribute("t", "s"), I.leafNode("v", null, R.ssId)) : R.value && R.value.richText ? (I.addAttribute("t", "inlineStr"), I.openNode("is"), R.value.richText.forEach(function(E) {
+ C.richTextXForm.render(I, E);
+ }), I.closeNode("is")) : (I.addAttribute("t", "str"), I.leafNode("v", null, R.value));
+ break;
+ case n.ValueType.Date:
+ I.leafNode("v", null, r.dateToExcel(R.value, R.date1904));
+ break;
+ case n.ValueType.Hyperlink:
+ R.ssId !== void 0 ? (I.addAttribute("t", "s"), I.leafNode("v", null, R.ssId)) : (I.addAttribute("t", "str"), I.leafNode("v", null, R.text));
+ break;
+ case n.ValueType.Formula:
+ this.renderFormula(I, R);
+ break;
+ case n.ValueType.Merge:
+ break;
+ }
+ I.closeNode();
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(I) {
+ if (this.parser)
+ return this.parser.parseOpen(I), !0;
+ switch (I.name) {
+ case "c":
+ return this.model = {
+ address: I.attributes.r
+ }, this.t = I.attributes.t, I.attributes.s && (this.model.styleId = parseInt(I.attributes.s, 10)), !0;
+ case "f":
+ return this.currentNode = "f", this.model.si = I.attributes.si, this.model.shareType = I.attributes.t, this.model.ref = I.attributes.ref, !0;
+ case "v":
+ return this.currentNode = "v", !0;
+ case "t":
+ return this.currentNode = "t", !0;
+ case "r":
+ return this.parser = this.richTextXForm, this.parser.parseOpen(I), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(I) {
+ if (this.parser) {
+ this.parser.parseText(I);
+ return;
+ }
+ switch (this.currentNode) {
+ case "f":
+ this.model.formula = this.model.formula ? this.model.formula + I : I;
+ break;
+ case "v":
+ case "t":
+ this.model.value && this.model.value.richText ? this.model.value.richText.text = this.model.value.richText.text ? this.model.value.richText.text + I : I : this.model.value = this.model.value ? this.model.value + I : I;
+ break;
+ }
+ }
+ }, {
+ key: "parseClose",
+ value: function(I) {
+ switch (I) {
+ case "c": {
+ var R = this.model;
+ if (R.formula || R.shareType)
+ R.type = n.ValueType.Formula, R.value && (this.t === "str" ? R.result = r.xmlDecode(R.value) : this.t === "b" ? R.result = parseInt(R.value, 10) !== 0 : this.t === "e" ? R.result = {
+ error: R.value
+ } : R.result = parseFloat(R.value), R.value = void 0);
+ else if (R.value !== void 0)
+ switch (this.t) {
+ case "s":
+ R.type = n.ValueType.String, R.value = parseInt(R.value, 10);
+ break;
+ case "str":
+ R.type = n.ValueType.String, R.value = r.xmlDecode(R.value);
+ break;
+ case "inlineStr":
+ R.type = n.ValueType.String;
+ break;
+ case "b":
+ R.type = n.ValueType.Boolean, R.value = parseInt(R.value, 10) !== 0;
+ break;
+ case "e":
+ R.type = n.ValueType.Error, R.value = {
+ error: R.value
+ };
+ break;
+ default:
+ R.type = n.ValueType.Number, R.value = parseFloat(R.value);
+ break;
+ }
+ else
+ R.styleId ? R.type = n.ValueType.Null : R.type = n.ValueType.Merge;
+ return !1;
+ }
+ case "f":
+ case "v":
+ case "is":
+ return this.currentNode = void 0, !0;
+ case "t":
+ return this.parser ? (this.parser.parseClose(I), !0) : (this.currentNode = void 0, !0);
+ case "r":
+ return this.model.value = this.model.value || {}, this.model.value.richText = this.model.value.richText || [], this.model.value.richText.push(this.parser.model), this.parser = void 0, this.currentNode = void 0, !0;
+ default:
+ return this.parser ? (this.parser.parseClose(I), !0) : !1;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(I, R) {
+ var C = I.styleId && R.styles && R.styles.getStyleModel(I.styleId);
+ switch (C && (I.style = C), I.styleId !== void 0 && (I.styleId = void 0), I.type) {
+ case n.ValueType.String:
+ typeof I.value == "number" && R.sharedStrings && (I.value = R.sharedStrings.getString(I.value)), I.value.richText && (I.type = n.ValueType.RichText);
+ break;
+ case n.ValueType.Number:
+ C && r.isDateFmt(C.numFmt) && (I.type = n.ValueType.Date, I.value = r.excelToDate(I.value, R.date1904));
+ break;
+ case n.ValueType.Formula:
+ I.result !== void 0 && C && r.isDateFmt(C.numFmt) && (I.result = r.excelToDate(I.result, R.date1904)), I.shareType === "shared" && (I.ref ? R.formulae[I.si] = I.address : (I.sharedFormula = R.formulae[I.si], delete I.shareType), delete I.si);
+ break;
+ }
+ var E = R.hyperlinkMap[I.address];
+ E && (I.type === n.ValueType.Formula ? (I.text = I.result, I.result = void 0) : (I.text = I.value, I.value = void 0), I.type = n.ValueType.Hyperlink, I.hyperlink = E);
+ var A = R.commentsMap && R.commentsMap[I.address];
+ A && (I.comment = A);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "c";
+ }
+ }]), N;
+ }(t);
+ x.exports = P;
+ }, { "../../../doc/enums": 7, "../../../doc/range": 10, "../../../utils/utils": 26, "../base-xform": 31, "../strings/rich-text-xform": 121 }], 73: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, {
+ iconSet: o.iconSet,
+ iconId: o.iconId
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ var o = n.attributes;
+ this.model = {
+ iconSet: o.iconSet,
+ iconId: v.toIntValue(o.iconId)
+ };
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:cfIcon";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 74: [function(e, x, _) {
+ function u(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) {
+ return typeof P;
+ } : u = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, u(p);
+ }
+ function m(p, O) {
+ if (!(p instanceof O))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(p, O) {
+ for (var P = 0; P < O.length; P++) {
+ var F = O[P];
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F);
+ }
+ }
+ function b(p, O, P) {
+ return O && g(p.prototype, O), P && g(p, P), p;
+ }
+ function w(p, O) {
+ if (typeof O != "function" && O !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O);
+ }
+ function f(p, O) {
+ return f = Object.setPrototypeOf || function(F, z) {
+ return F.__proto__ = z, F;
+ }, f(p, O);
+ }
+ function y(p) {
+ var O = d();
+ return function() {
+ var F = s(p), z;
+ if (O) {
+ var N = s(this).constructor;
+ z = Reflect.construct(F, arguments, N);
+ } else
+ z = F.apply(this, arguments);
+ return h(this, z);
+ };
+ }
+ function h(p, O) {
+ return O && (u(O) === "object" || typeof O == "function") ? O : l(p);
+ }
+ function l(p) {
+ if (p === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return p;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (p) {
+ return !1;
+ }
+ }
+ function s(p) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
+ return P.__proto__ || Object.getPrototypeOf(P);
+ }, s(p);
+ }
+ var v = e("uuid"), c = v.v4, a = e("../../base-xform"), r = e("../../composite-xform"), t = e("./databar-ext-xform"), i = e("./icon-set-ext-xform"), n = {
+ "3Triangles": !0,
+ "3Stars": !0,
+ "5Boxes": !0
+ }, o = /* @__PURE__ */ function(p) {
+ w(P, p);
+ var O = y(P);
+ function P() {
+ var F;
+ return m(this, P), F = O.call(this), F.map = {
+ "x14:dataBar": F.databarXform = new t(),
+ "x14:iconSet": F.iconSetXform = new i()
+ }, F;
+ }
+ return b(P, [{
+ key: "prepare",
+ value: function(z) {
+ P.isExt(z) && (z.x14Id = "{".concat(c(), "}").toUpperCase());
+ }
+ }, {
+ key: "render",
+ value: function(z, N) {
+ if (P.isExt(N))
+ switch (N.type) {
+ case "dataBar":
+ this.renderDataBar(z, N);
+ break;
+ case "iconSet":
+ this.renderIconSet(z, N);
+ break;
+ }
+ }
+ }, {
+ key: "renderDataBar",
+ value: function(z, N) {
+ z.openNode(this.tag, {
+ type: "dataBar",
+ id: N.x14Id
+ }), this.databarXform.render(z, N), z.closeNode();
+ }
+ }, {
+ key: "renderIconSet",
+ value: function(z, N) {
+ z.openNode(this.tag, {
+ type: "iconSet",
+ priority: N.priority,
+ id: N.x14Id || "{".concat(c(), "}")
+ }), this.iconSetXform.render(z, N), z.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(z) {
+ var N = z.attributes;
+ return {
+ type: N.type,
+ x14Id: N.id,
+ priority: a.toIntValue(N.priority)
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(z, N) {
+ Object.assign(this.model, N.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:cfRule";
+ }
+ }], [{
+ key: "isExt",
+ value: function(z) {
+ return z.type === "dataBar" ? t.isExt(z) : !!(z.type === "iconSet" && (z.custom || n[z.iconSet]));
+ }
+ }]), P;
+ }(r);
+ x.exports = o;
+ }, { "../../base-xform": 31, "../../composite-xform": 47, "./databar-ext-xform": 78, "./icon-set-ext-xform": 80, uuid: 526 }], 75: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../composite-xform"), c = e("./f-ext-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ var n;
+ return m(this, i), n = t.call(this), n.map = {
+ "xm:f": n.fExtXform = new c()
+ }, n;
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.openNode(this.tag, {
+ type: p.type
+ }), p.value !== void 0 && this.fExtXform.render(o, p.value), o.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(o) {
+ return {
+ type: o.attributes.type
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(o, p) {
+ switch (o) {
+ case "xm:f":
+ this.model.value = p.model ? parseFloat(p.model) : 0;
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:cfvo";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../../composite-xform": 47, "./f-ext-xform": 79 }], 76: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../composite-xform"), c = e("./sqref-ext-xform"), a = e("./cf-rule-ext-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "xm:sqref": o.sqRef = new c(),
+ "x14:cfRule": o.cfRule = new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "prepare",
+ value: function(p, O) {
+ var P = this;
+ p.rules.forEach(function(F) {
+ P.cfRule.prepare(F, O);
+ });
+ }
+ }, {
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ O.rules.some(a.isExt) && (p.openNode(this.tag, {
+ "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main"
+ }), O.rules.filter(a.isExt).forEach(function(F) {
+ return P.cfRule.render(p, F);
+ }), this.sqRef.render(p, O.ref), p.closeNode());
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {
+ rules: []
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ switch (p) {
+ case "xm:sqref":
+ this.model.ref = O.model;
+ break;
+ case "x14:cfRule":
+ this.model.rules.push(O.model);
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:conditionalFormatting";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../../composite-xform": 47, "./cf-rule-ext-xform": 74, "./sqref-ext-xform": 81 }], 77: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../composite-xform"), c = e("./cf-rule-ext-xform"), a = e("./conditional-formatting-ext-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "x14:conditionalFormatting": o.cfXform = new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "hasContent",
+ value: function(p) {
+ return p.hasExtContent === void 0 && (p.hasExtContent = p.some(function(O) {
+ return O.rules.some(c.isExt);
+ })), p.hasExtContent;
+ }
+ }, {
+ key: "prepare",
+ value: function(p, O) {
+ var P = this;
+ p.forEach(function(F) {
+ P.cfXform.prepare(F, O);
+ });
+ }
+ }, {
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ this.hasContent(O) && (p.openNode(this.tag), O.forEach(function(F) {
+ return P.cfXform.render(p, F);
+ }), p.closeNode());
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return [];
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ this.model.push(O.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:conditionalFormattings";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../../composite-xform": 47, "./cf-rule-ext-xform": 74, "./conditional-formatting-ext-xform": 76 }], 78: [function(e, x, _) {
+ function u(F) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) {
+ return typeof N;
+ } : u = function(N) {
+ return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N;
+ }, u(F);
+ }
+ function m(F, z) {
+ return y(F) || f(F, z) || b(F, z) || g();
+ }
+ function g() {
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function b(F, z) {
+ if (F) {
+ if (typeof F == "string")
+ return w(F, z);
+ var N = Object.prototype.toString.call(F).slice(8, -1);
+ if (N === "Object" && F.constructor && (N = F.constructor.name), N === "Map" || N === "Set")
+ return Array.from(F);
+ if (N === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))
+ return w(F, z);
+ }
+ }
+ function w(F, z) {
+ (z == null || z > F.length) && (z = F.length);
+ for (var N = 0, M = new Array(z); N < z; N++)
+ M[N] = F[N];
+ return M;
+ }
+ function f(F, z) {
+ if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(F)))) {
+ var N = [], M = !0, I = !1, R = void 0;
+ try {
+ for (var C = F[Symbol.iterator](), E; !(M = (E = C.next()).done) && (N.push(E.value), !(z && N.length === z)); M = !0)
+ ;
+ } catch (A) {
+ I = !0, R = A;
+ } finally {
+ try {
+ !M && C.return != null && C.return();
+ } finally {
+ if (I)
+ throw R;
+ }
+ }
+ return N;
+ }
+ }
+ function y(F) {
+ if (Array.isArray(F))
+ return F;
+ }
+ function h(F, z) {
+ if (!(F instanceof z))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function l(F, z) {
+ for (var N = 0; N < z.length; N++) {
+ var M = z[N];
+ M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M);
+ }
+ }
+ function d(F, z, N) {
+ return z && l(F.prototype, z), N && l(F, N), F;
+ }
+ function s(F, z) {
+ if (typeof z != "function" && z !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && v(F, z);
+ }
+ function v(F, z) {
+ return v = Object.setPrototypeOf || function(M, I) {
+ return M.__proto__ = I, M;
+ }, v(F, z);
+ }
+ function c(F) {
+ var z = t();
+ return function() {
+ var M = i(F), I;
+ if (z) {
+ var R = i(this).constructor;
+ I = Reflect.construct(M, arguments, R);
+ } else
+ I = M.apply(this, arguments);
+ return a(this, I);
+ };
+ }
+ function a(F, z) {
+ return z && (u(z) === "object" || typeof z == "function") ? z : r(F);
+ }
+ function r(F) {
+ if (F === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return F;
+ }
+ function t() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (F) {
+ return !1;
+ }
+ }
+ function i(F) {
+ return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) {
+ return N.__proto__ || Object.getPrototypeOf(N);
+ }, i(F);
+ }
+ var n = e("../../base-xform"), o = e("../../composite-xform"), p = e("../../style/color-xform"), O = e("./cfvo-ext-xform"), P = /* @__PURE__ */ function(F) {
+ s(N, F);
+ var z = c(N);
+ function N() {
+ var M;
+ return h(this, N), M = z.call(this), M.map = {
+ "x14:cfvo": M.cfvoXform = new O(),
+ "x14:borderColor": M.borderColorXform = new p("x14:borderColor"),
+ "x14:negativeBorderColor": M.negativeBorderColorXform = new p("x14:negativeBorderColor"),
+ "x14:negativeFillColor": M.negativeFillColorXform = new p("x14:negativeFillColor"),
+ "x14:axisColor": M.axisColorXform = new p("x14:axisColor")
+ }, M;
+ }
+ return d(N, [{
+ key: "render",
+ value: function(I, R) {
+ var C = this;
+ I.openNode(this.tag, {
+ minLength: n.toIntAttribute(R.minLength, 0, !0),
+ maxLength: n.toIntAttribute(R.maxLength, 100, !0),
+ border: n.toBoolAttribute(R.border, !1),
+ gradient: n.toBoolAttribute(R.gradient, !0),
+ negativeBarColorSameAsPositive: n.toBoolAttribute(R.negativeBarColorSameAsPositive, !0),
+ negativeBarBorderColorSameAsPositive: n.toBoolAttribute(R.negativeBarBorderColorSameAsPositive, !0),
+ axisPosition: n.toAttribute(R.axisPosition, "auto"),
+ direction: n.toAttribute(R.direction, "leftToRight")
+ }), R.cfvo.forEach(function(E) {
+ C.cfvoXform.render(I, E);
+ }), this.borderColorXform.render(I, R.borderColor), this.negativeBorderColorXform.render(I, R.negativeBorderColor), this.negativeFillColorXform.render(I, R.negativeFillColor), this.axisColorXform.render(I, R.axisColor), I.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(I) {
+ var R = I.attributes;
+ return {
+ cfvo: [],
+ minLength: n.toIntValue(R.minLength, 0),
+ maxLength: n.toIntValue(R.maxLength, 100),
+ border: n.toBoolValue(R.border, !1),
+ gradient: n.toBoolValue(R.gradient, !0),
+ negativeBarColorSameAsPositive: n.toBoolValue(R.negativeBarColorSameAsPositive, !0),
+ negativeBarBorderColorSameAsPositive: n.toBoolValue(R.negativeBarBorderColorSameAsPositive, !0),
+ axisPosition: n.toStringValue(R.axisPosition, "auto"),
+ direction: n.toStringValue(R.direction, "leftToRight")
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(I, R) {
+ var C = I.split(":"), E = m(C, 2), A = E[1];
+ switch (A) {
+ case "cfvo":
+ this.model.cfvo.push(R.model);
+ break;
+ default:
+ this.model[A] = R.model;
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:dataBar";
+ }
+ }], [{
+ key: "isExt",
+ value: function(I) {
+ return !I.gradient;
+ }
+ }]), N;
+ }(o);
+ x.exports = P;
+ }, { "../../base-xform": 31, "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-ext-xform": 75 }], 79: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, null, o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ this.model = "";
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.model += n;
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xm:f";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 80: [function(e, x, _) {
+ function u(F) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) {
+ return typeof N;
+ } : u = function(N) {
+ return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N;
+ }, u(F);
+ }
+ function m(F, z) {
+ return y(F) || f(F, z) || b(F, z) || g();
+ }
+ function g() {
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function b(F, z) {
+ if (F) {
+ if (typeof F == "string")
+ return w(F, z);
+ var N = Object.prototype.toString.call(F).slice(8, -1);
+ if (N === "Object" && F.constructor && (N = F.constructor.name), N === "Map" || N === "Set")
+ return Array.from(F);
+ if (N === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))
+ return w(F, z);
+ }
+ }
+ function w(F, z) {
+ (z == null || z > F.length) && (z = F.length);
+ for (var N = 0, M = new Array(z); N < z; N++)
+ M[N] = F[N];
+ return M;
+ }
+ function f(F, z) {
+ if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(F)))) {
+ var N = [], M = !0, I = !1, R = void 0;
+ try {
+ for (var C = F[Symbol.iterator](), E; !(M = (E = C.next()).done) && (N.push(E.value), !(z && N.length === z)); M = !0)
+ ;
+ } catch (A) {
+ I = !0, R = A;
+ } finally {
+ try {
+ !M && C.return != null && C.return();
+ } finally {
+ if (I)
+ throw R;
+ }
+ }
+ return N;
+ }
+ }
+ function y(F) {
+ if (Array.isArray(F))
+ return F;
+ }
+ function h(F, z) {
+ if (!(F instanceof z))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function l(F, z) {
+ for (var N = 0; N < z.length; N++) {
+ var M = z[N];
+ M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M);
+ }
+ }
+ function d(F, z, N) {
+ return z && l(F.prototype, z), N && l(F, N), F;
+ }
+ function s(F, z) {
+ if (typeof z != "function" && z !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && v(F, z);
+ }
+ function v(F, z) {
+ return v = Object.setPrototypeOf || function(M, I) {
+ return M.__proto__ = I, M;
+ }, v(F, z);
+ }
+ function c(F) {
+ var z = t();
+ return function() {
+ var M = i(F), I;
+ if (z) {
+ var R = i(this).constructor;
+ I = Reflect.construct(M, arguments, R);
+ } else
+ I = M.apply(this, arguments);
+ return a(this, I);
+ };
+ }
+ function a(F, z) {
+ return z && (u(z) === "object" || typeof z == "function") ? z : r(F);
+ }
+ function r(F) {
+ if (F === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return F;
+ }
+ function t() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (F) {
+ return !1;
+ }
+ }
+ function i(F) {
+ return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) {
+ return N.__proto__ || Object.getPrototypeOf(N);
+ }, i(F);
+ }
+ var n = e("../../base-xform"), o = e("../../composite-xform"), p = e("./cfvo-ext-xform"), O = e("./cf-icon-ext-xform"), P = /* @__PURE__ */ function(F) {
+ s(N, F);
+ var z = c(N);
+ function N() {
+ var M;
+ return h(this, N), M = z.call(this), M.map = {
+ "x14:cfvo": M.cfvoXform = new p(),
+ "x14:cfIcon": M.cfIconXform = new O()
+ }, M;
+ }
+ return d(N, [{
+ key: "render",
+ value: function(I, R) {
+ var C = this;
+ I.openNode(this.tag, {
+ iconSet: n.toStringAttribute(R.iconSet),
+ reverse: n.toBoolAttribute(R.reverse, !1),
+ showValue: n.toBoolAttribute(R.showValue, !0),
+ custom: n.toBoolAttribute(R.icons, !1)
+ }), R.cfvo.forEach(function(E) {
+ C.cfvoXform.render(I, E);
+ }), R.icons && R.icons.forEach(function(E, A) {
+ E.iconId = A, C.cfIconXform.render(I, E);
+ }), I.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(I) {
+ var R = I.attributes;
+ return {
+ cfvo: [],
+ iconSet: n.toStringValue(R.iconSet, "3TrafficLights"),
+ reverse: n.toBoolValue(R.reverse, !1),
+ showValue: n.toBoolValue(R.showValue, !0)
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(I, R) {
+ var C = I.split(":"), E = m(C, 2), A = E[1];
+ switch (A) {
+ case "cfvo":
+ this.model.cfvo.push(R.model);
+ break;
+ case "cfIcon":
+ this.model.icons || (this.model.icons = []), this.model.icons.push(R.model);
+ break;
+ default:
+ this.model[A] = R.model;
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:iconSet";
+ }
+ }]), N;
+ }(o);
+ x.exports = P;
+ }, { "../../base-xform": 31, "../../composite-xform": 47, "./cf-icon-ext-xform": 73, "./cfvo-ext-xform": 75 }], 81: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, null, o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ this.model = "";
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.model += n;
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xm:sqref";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 82: [function(e, x, _) {
+ function u(R) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(E) {
+ return typeof E;
+ } : u = function(E) {
+ return E && typeof Symbol == "function" && E.constructor === Symbol && E !== Symbol.prototype ? "symbol" : typeof E;
+ }, u(R);
+ }
+ function m(R, C) {
+ var E = Object.keys(R);
+ if (Object.getOwnPropertySymbols) {
+ var A = Object.getOwnPropertySymbols(R);
+ C && (A = A.filter(function(L) {
+ return Object.getOwnPropertyDescriptor(R, L).enumerable;
+ })), E.push.apply(E, A);
+ }
+ return E;
+ }
+ function g(R) {
+ for (var C = 1; C < arguments.length; C++) {
+ var E = arguments[C] != null ? arguments[C] : {};
+ C % 2 ? m(Object(E), !0).forEach(function(A) {
+ b(R, A, E[A]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(E)) : m(Object(E)).forEach(function(A) {
+ Object.defineProperty(R, A, Object.getOwnPropertyDescriptor(E, A));
+ });
+ }
+ return R;
+ }
+ function b(R, C, E) {
+ return C in R ? Object.defineProperty(R, C, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : R[C] = E, R;
+ }
+ function w(R, C) {
+ if (!(R instanceof C))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(R, C) {
+ for (var E = 0; E < C.length; E++) {
+ var A = C[E];
+ A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(R, A.key, A);
+ }
+ }
+ function y(R, C, E) {
+ return C && f(R.prototype, C), E && f(R, E), R;
+ }
+ function h(R, C) {
+ if (typeof C != "function" && C !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ R.prototype = Object.create(C && C.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), C && l(R, C);
+ }
+ function l(R, C) {
+ return l = Object.setPrototypeOf || function(A, L) {
+ return A.__proto__ = L, A;
+ }, l(R, C);
+ }
+ function d(R) {
+ var C = c();
+ return function() {
+ var A = a(R), L;
+ if (C) {
+ var $ = a(this).constructor;
+ L = Reflect.construct(A, arguments, $);
+ } else
+ L = A.apply(this, arguments);
+ return s(this, L);
+ };
+ }
+ function s(R, C) {
+ return C && (u(C) === "object" || typeof C == "function") ? C : v(R);
+ }
+ function v(R) {
+ if (R === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return R;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (R) {
+ return !1;
+ }
+ }
+ function a(R) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(E) {
+ return E.__proto__ || Object.getPrototypeOf(E);
+ }, a(R);
+ }
+ var r = e("../../base-xform"), t = e("../../composite-xform"), i = e("../../../../doc/range"), n = e("./databar-xform"), o = e("./ext-lst-ref-xform"), p = e("./formula-xform"), O = e("./color-scale-xform"), P = e("./icon-set-xform"), F = {
+ "3Triangles": !0,
+ "3Stars": !0,
+ "5Boxes": !0
+ }, z = function(C) {
+ if (C.formulae && C.formulae[0])
+ return C.formulae[0];
+ var E = new i(C.ref), A = E.tl;
+ switch (C.operator) {
+ case "containsText":
+ return 'NOT(ISERROR(SEARCH("'.concat(C.text, '",').concat(A, ")))");
+ case "containsBlanks":
+ return "LEN(TRIM(".concat(A, "))=0");
+ case "notContainsBlanks":
+ return "LEN(TRIM(".concat(A, "))>0");
+ case "containsErrors":
+ return "ISERROR(".concat(A, ")");
+ case "notContainsErrors":
+ return "NOT(ISERROR(".concat(A, "))");
+ default:
+ return;
+ }
+ }, N = function(C) {
+ if (C.formulae && C.formulae[0])
+ return C.formulae[0];
+ var E = new i(C.ref), A = E.tl;
+ switch (C.timePeriod) {
+ case "thisWeek":
+ return "AND(TODAY()-ROUNDDOWN(".concat(A, ",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(A, ",0)-TODAY()<=7-WEEKDAY(TODAY()))");
+ case "lastWeek":
+ return "AND(TODAY()-ROUNDDOWN(".concat(A, ",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(A, ",0)<(WEEKDAY(TODAY())+7))");
+ case "nextWeek":
+ return "AND(ROUNDDOWN(".concat(A, ",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(A, ",0)-TODAY()<(15-WEEKDAY(TODAY())))");
+ case "yesterday":
+ return "FLOOR(".concat(A, ",1)=TODAY()-1");
+ case "today":
+ return "FLOOR(".concat(A, ",1)=TODAY()");
+ case "tomorrow":
+ return "FLOOR(".concat(A, ",1)=TODAY()+1");
+ case "last7Days":
+ return "AND(TODAY()-FLOOR(".concat(A, ",1)<=6,FLOOR(").concat(A, ",1)<=TODAY())");
+ case "lastMonth":
+ return "AND(MONTH(".concat(A, ")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(A, ")=YEAR(EDATE(TODAY(),0-1)))");
+ case "thisMonth":
+ return "AND(MONTH(".concat(A, ")=MONTH(TODAY()),YEAR(").concat(A, ")=YEAR(TODAY()))");
+ case "nextMonth":
+ return "AND(MONTH(".concat(A, ")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(A, ")=YEAR(EDATE(TODAY(),0+1)))");
+ default:
+ return;
+ }
+ }, M = function(C) {
+ var E = C.type, A = C.operator;
+ switch (E) {
+ case "containsText":
+ case "containsBlanks":
+ case "notContainsBlanks":
+ case "containsErrors":
+ case "notContainsErrors":
+ return {
+ type: "containsText",
+ operator: E
+ };
+ default:
+ return {
+ type: E,
+ operator: A
+ };
+ }
+ }, I = /* @__PURE__ */ function(R) {
+ h(E, R);
+ var C = d(E);
+ function E() {
+ var A;
+ return w(this, E), A = C.call(this), A.map = {
+ dataBar: A.databarXform = new n(),
+ extLst: A.extLstRefXform = new o(),
+ formula: A.formulaXform = new p(),
+ colorScale: A.colorScaleXform = new O(),
+ iconSet: A.iconSetXform = new P()
+ }, A;
+ }
+ return y(E, [{
+ key: "render",
+ value: function(L, $) {
+ switch ($.type) {
+ case "expression":
+ this.renderExpression(L, $);
+ break;
+ case "cellIs":
+ this.renderCellIs(L, $);
+ break;
+ case "top10":
+ this.renderTop10(L, $);
+ break;
+ case "aboveAverage":
+ this.renderAboveAverage(L, $);
+ break;
+ case "dataBar":
+ this.renderDataBar(L, $);
+ break;
+ case "colorScale":
+ this.renderColorScale(L, $);
+ break;
+ case "iconSet":
+ this.renderIconSet(L, $);
+ break;
+ case "containsText":
+ this.renderText(L, $);
+ break;
+ case "timePeriod":
+ this.renderTimePeriod(L, $);
+ break;
+ }
+ }
+ }, {
+ key: "renderExpression",
+ value: function(L, $) {
+ L.openNode(this.tag, {
+ type: "expression",
+ dxfId: $.dxfId,
+ priority: $.priority
+ }), this.formulaXform.render(L, $.formulae[0]), L.closeNode();
+ }
+ }, {
+ key: "renderCellIs",
+ value: function(L, $) {
+ var W = this;
+ L.openNode(this.tag, {
+ type: "cellIs",
+ dxfId: $.dxfId,
+ priority: $.priority,
+ operator: $.operator
+ }), $.formulae.forEach(function(U) {
+ W.formulaXform.render(L, U);
+ }), L.closeNode();
+ }
+ }, {
+ key: "renderTop10",
+ value: function(L, $) {
+ L.leafNode(this.tag, {
+ type: "top10",
+ dxfId: $.dxfId,
+ priority: $.priority,
+ percent: r.toBoolAttribute($.percent, !1),
+ bottom: r.toBoolAttribute($.bottom, !1),
+ rank: r.toIntValue($.rank, 10, !0)
+ });
+ }
+ }, {
+ key: "renderAboveAverage",
+ value: function(L, $) {
+ L.leafNode(this.tag, {
+ type: "aboveAverage",
+ dxfId: $.dxfId,
+ priority: $.priority,
+ aboveAverage: r.toBoolAttribute($.aboveAverage, !0)
+ });
+ }
+ }, {
+ key: "renderDataBar",
+ value: function(L, $) {
+ L.openNode(this.tag, {
+ type: "dataBar",
+ priority: $.priority
+ }), this.databarXform.render(L, $), this.extLstRefXform.render(L, $), L.closeNode();
+ }
+ }, {
+ key: "renderColorScale",
+ value: function(L, $) {
+ L.openNode(this.tag, {
+ type: "colorScale",
+ priority: $.priority
+ }), this.colorScaleXform.render(L, $), L.closeNode();
+ }
+ }, {
+ key: "renderIconSet",
+ value: function(L, $) {
+ E.isPrimitive($) && (L.openNode(this.tag, {
+ type: "iconSet",
+ priority: $.priority
+ }), this.iconSetXform.render(L, $), L.closeNode());
+ }
+ }, {
+ key: "renderText",
+ value: function(L, $) {
+ L.openNode(this.tag, {
+ type: $.operator,
+ dxfId: $.dxfId,
+ priority: $.priority,
+ operator: r.toStringAttribute($.operator, "containsText")
+ });
+ var W = z($);
+ W && this.formulaXform.render(L, W), L.closeNode();
+ }
+ }, {
+ key: "renderTimePeriod",
+ value: function(L, $) {
+ L.openNode(this.tag, {
+ type: "timePeriod",
+ dxfId: $.dxfId,
+ priority: $.priority,
+ timePeriod: $.timePeriod
+ });
+ var W = N($);
+ W && this.formulaXform.render(L, W), L.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(L) {
+ var $ = L.attributes;
+ return g(g({}, M($)), {}, {
+ dxfId: r.toIntValue($.dxfId),
+ priority: r.toIntValue($.priority),
+ timePeriod: $.timePeriod,
+ percent: r.toBoolValue($.percent),
+ bottom: r.toBoolValue($.bottom),
+ rank: r.toIntValue($.rank),
+ aboveAverage: r.toBoolValue($.aboveAverage)
+ });
+ }
+ }, {
+ key: "onParserClose",
+ value: function(L, $) {
+ switch (L) {
+ case "dataBar":
+ case "extLst":
+ case "colorScale":
+ case "iconSet":
+ Object.assign(this.model, $.model);
+ break;
+ case "formula":
+ this.model.formulae = this.model.formulae || [], this.model.formulae.push($.model);
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "cfRule";
+ }
+ }], [{
+ key: "isPrimitive",
+ value: function(L) {
+ return !(L.type === "iconSet" && (L.custom || F[L.iconSet]));
+ }
+ }]), E;
+ }(t);
+ x.exports = I;
+ }, { "../../../../doc/range": 10, "../../base-xform": 31, "../../composite-xform": 47, "./color-scale-xform": 84, "./databar-xform": 87, "./ext-lst-ref-xform": 88, "./formula-xform": 89, "./icon-set-xform": 90 }], 83: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, {
+ type: o.type,
+ val: o.value
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ this.model = {
+ type: n.attributes.type,
+ value: v.toFloatValue(n.attributes.val)
+ };
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "cfvo";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 84: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../composite-xform"), c = e("../../style/color-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ cfvo: o.cfvoXform = new a(),
+ color: o.colorXform = new c()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ p.openNode(this.tag), O.cfvo.forEach(function(F) {
+ P.cfvoXform.render(p, F);
+ }), O.color.forEach(function(F) {
+ P.colorXform.render(p, F);
+ }), p.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(p) {
+ return {
+ cfvo: [],
+ color: []
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ this.model[p].push(O.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "colorScale";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-xform": 83 }], 85: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../composite-xform"), c = e("./cf-rule-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ var n;
+ return m(this, i), n = t.call(this), n.map = {
+ cfRule: new c()
+ }, n;
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ var O = this;
+ p.rules.some(c.isPrimitive) && (o.openNode(this.tag, {
+ sqref: p.ref
+ }), p.rules.forEach(function(P) {
+ c.isPrimitive(P) && (P.ref = p.ref, O.map.cfRule.render(o, P));
+ }), o.closeNode());
+ }
+ }, {
+ key: "createNewModel",
+ value: function(o) {
+ var p = o.attributes;
+ return {
+ ref: p.sqref,
+ rules: []
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(o, p) {
+ this.model.rules.push(p.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "conditionalFormatting";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../../composite-xform": 47, "./cf-rule-xform": 82 }], 86: [function(e, x, _) {
+ function u(O) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(F) {
+ return typeof F;
+ } : u = function(F) {
+ return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F;
+ }, u(O);
+ }
+ function m(O) {
+ return f(O) || w(O) || b(O) || g();
+ }
+ function g() {
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function b(O, P) {
+ if (O) {
+ if (typeof O == "string")
+ return y(O, P);
+ var F = Object.prototype.toString.call(O).slice(8, -1);
+ if (F === "Object" && O.constructor && (F = O.constructor.name), F === "Map" || F === "Set")
+ return Array.from(O);
+ if (F === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))
+ return y(O, P);
+ }
+ }
+ function w(O) {
+ if (typeof Symbol != "undefined" && Symbol.iterator in Object(O))
+ return Array.from(O);
+ }
+ function f(O) {
+ if (Array.isArray(O))
+ return y(O);
+ }
+ function y(O, P) {
+ (P == null || P > O.length) && (P = O.length);
+ for (var F = 0, z = new Array(P); F < P; F++)
+ z[F] = O[F];
+ return z;
+ }
+ function h(O, P) {
+ if (!(O instanceof P))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function l(O, P) {
+ for (var F = 0; F < P.length; F++) {
+ var z = P[F];
+ z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(O, z.key, z);
+ }
+ }
+ function d(O, P, F) {
+ return P && l(O.prototype, P), F && l(O, F), O;
+ }
+ function s(O, P) {
+ if (typeof P != "function" && P !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ O.prototype = Object.create(P && P.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), P && v(O, P);
+ }
+ function v(O, P) {
+ return v = Object.setPrototypeOf || function(z, N) {
+ return z.__proto__ = N, z;
+ }, v(O, P);
+ }
+ function c(O) {
+ var P = t();
+ return function() {
+ var z = i(O), N;
+ if (P) {
+ var M = i(this).constructor;
+ N = Reflect.construct(z, arguments, M);
+ } else
+ N = z.apply(this, arguments);
+ return a(this, N);
+ };
+ }
+ function a(O, P) {
+ return P && (u(P) === "object" || typeof P == "function") ? P : r(O);
+ }
+ function r(O) {
+ if (O === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return O;
+ }
+ function t() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (O) {
+ return !1;
+ }
+ }
+ function i(O) {
+ return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(F) {
+ return F.__proto__ || Object.getPrototypeOf(F);
+ }, i(O);
+ }
+ var n = e("../../base-xform"), o = e("./conditional-formatting-xform"), p = /* @__PURE__ */ function(O) {
+ s(F, O);
+ var P = c(F);
+ function F() {
+ var z;
+ return h(this, F), z = P.call(this), z.cfXform = new o(), z;
+ }
+ return d(F, [{
+ key: "reset",
+ value: function() {
+ this.model = [];
+ }
+ }, {
+ key: "prepare",
+ value: function(N, M) {
+ var I = N.reduce(function(R, C) {
+ return Math.max.apply(Math, [R].concat(m(C.rules.map(function(E) {
+ return E.priority || 0;
+ }))));
+ }, 1);
+ N.forEach(function(R) {
+ R.rules.forEach(function(C) {
+ C.priority || (C.priority = I++), C.style && (C.dxfId = M.styles.addDxfStyle(C.style));
+ });
+ });
+ }
+ }, {
+ key: "render",
+ value: function(N, M) {
+ var I = this;
+ M.forEach(function(R) {
+ I.cfXform.render(N, R);
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(N) {
+ if (this.parser)
+ return this.parser.parseOpen(N), !0;
+ switch (N.name) {
+ case "conditionalFormatting":
+ return this.parser = this.cfXform, this.parser.parseOpen(N), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(N) {
+ this.parser && this.parser.parseText(N);
+ }
+ }, {
+ key: "parseClose",
+ value: function(N) {
+ return this.parser ? this.parser.parseClose(N) ? !0 : (this.model.push(this.parser.model), this.parser = void 0, !1) : !1;
+ }
+ }, {
+ key: "reconcile",
+ value: function(N, M) {
+ N.forEach(function(I) {
+ I.rules.forEach(function(R) {
+ R.dxfId !== void 0 && (R.style = M.styles.getDxfStyle(R.dxfId), delete R.dxfId);
+ });
+ });
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "conditionalFormatting";
+ }
+ }]), F;
+ }(n);
+ x.exports = p;
+ }, { "../../base-xform": 31, "./conditional-formatting-xform": 85 }], 87: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../composite-xform"), c = e("../../style/color-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ cfvo: o.cfvoXform = new a(),
+ color: o.colorXform = new c()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ p.openNode(this.tag), O.cfvo.forEach(function(F) {
+ P.cfvoXform.render(p, F);
+ }), this.colorXform.render(p, O.color), p.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {
+ cfvo: []
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ switch (p) {
+ case "cfvo":
+ this.model.cfvo.push(O.model);
+ break;
+ case "color":
+ this.model.color = O.model;
+ break;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "dataBar";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-xform": 83 }], 88: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("../../base-xform"), c = e("../../composite-xform"), a = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ return m(this, o), n.apply(this, arguments);
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ O.leafNode(this.tag, null, P);
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ this.model = "";
+ }
+ }, {
+ key: "parseText",
+ value: function(O) {
+ this.model += O;
+ }
+ }, {
+ key: "parseClose",
+ value: function(O) {
+ return O !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "x14:id";
+ }
+ }]), o;
+ }(v), r = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ var p;
+ return m(this, o), p = n.call(this), p.map = {
+ "x14:id": p.idXform = new a()
+ }, p;
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ O.openNode(this.tag, {
+ uri: "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}",
+ "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
+ }), this.idXform.render(O, P.x14Id), O.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {};
+ }
+ }, {
+ key: "onParserClose",
+ value: function(O, P) {
+ this.model.x14Id = P.model;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "ext";
+ }
+ }]), o;
+ }(c), t = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ var p;
+ return m(this, o), p = n.call(this), p.map = {
+ ext: new r()
+ }, p;
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ O.openNode(this.tag), this.map.ext.render(O, P), O.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {};
+ }
+ }, {
+ key: "onParserClose",
+ value: function(O, P) {
+ Object.assign(this.model, P.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "extLst";
+ }
+ }]), o;
+ }(c);
+ x.exports = t;
+ }, { "../../base-xform": 31, "../../composite-xform": 47 }], 89: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode(this.tag, null, o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ this.model = "";
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.model += n;
+ }
+ }, {
+ key: "parseClose",
+ value: function(n) {
+ return n !== this.tag;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "formula";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../../base-xform": 31 }], 90: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../base-xform"), c = e("../../composite-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ cfvo: o.cfvoXform = new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ var P = this;
+ p.openNode(this.tag, {
+ iconSet: v.toStringAttribute(O.iconSet, "3TrafficLights"),
+ reverse: v.toBoolAttribute(O.reverse, !1),
+ showValue: v.toBoolAttribute(O.showValue, !0)
+ }), O.cfvo.forEach(function(F) {
+ P.cfvoXform.render(p, F);
+ }), p.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function(p) {
+ var O = p.attributes;
+ return {
+ iconSet: v.toStringValue(O.iconSet, "3TrafficLights"),
+ reverse: v.toBoolValue(O.reverse),
+ showValue: v.toBoolValue(O.showValue),
+ cfvo: []
+ };
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ this.model[p].push(O.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "iconSet";
+ }
+ }]), n;
+ }(c);
+ x.exports = r;
+ }, { "../../base-xform": 31, "../../composite-xform": 47, "./cfvo-xform": 83 }], 91: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "prepare",
+ value: function(n, o) {
+ var p = o.styles.addStyleModel(n.style || {});
+ p && (n.styleId = p);
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ n.openNode("col"), n.addAttribute("min", o.min), n.addAttribute("max", o.max), o.width && n.addAttribute("width", o.width), o.styleId && n.addAttribute("style", o.styleId), o.hidden && n.addAttribute("hidden", "1"), o.bestFit && n.addAttribute("bestFit", "1"), o.outlineLevel && n.addAttribute("outlineLevel", o.outlineLevel), o.collapsed && n.addAttribute("collapsed", "1"), n.addAttribute("customWidth", "1"), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (n.name === "col") {
+ var o = this.model = {
+ min: parseInt(n.attributes.min || "0", 10),
+ max: parseInt(n.attributes.max || "0", 10),
+ width: n.attributes.width === void 0 ? void 0 : parseFloat(n.attributes.width || "0")
+ };
+ return n.attributes.style && (o.styleId = parseInt(n.attributes.style, 10)), (n.attributes.hidden === !0 || n.attributes.hidden === "true" || n.attributes.hidden === 1 || n.attributes.hidden === "1") && (o.hidden = !0), n.attributes.bestFit && (o.bestFit = !0), n.attributes.outlineLevel && (o.outlineLevel = parseInt(n.attributes.outlineLevel, 10)), n.attributes.collapsed && (o.collapsed = !0), !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "reconcile",
+ value: function(n, o) {
+ n.styleId && (n.style = o.styles.getStyleModel(n.styleId));
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "col";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 92: [function(e, x, _) {
+ function u(N) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(I) {
+ return typeof I;
+ } : u = function(I) {
+ return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
+ }, u(N);
+ }
+ function m(N, M) {
+ if (!(N instanceof M))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(N, M) {
+ for (var I = 0; I < M.length; I++) {
+ var R = M[I];
+ R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(N, R.key, R);
+ }
+ }
+ function b(N, M, I) {
+ return M && g(N.prototype, M), I && g(N, I), N;
+ }
+ function w(N, M) {
+ if (typeof M != "function" && M !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ N.prototype = Object.create(M && M.prototype, { constructor: { value: N, writable: !0, configurable: !0 } }), M && f(N, M);
+ }
+ function f(N, M) {
+ return f = Object.setPrototypeOf || function(R, C) {
+ return R.__proto__ = C, R;
+ }, f(N, M);
+ }
+ function y(N) {
+ var M = d();
+ return function() {
+ var R = s(N), C;
+ if (M) {
+ var E = s(this).constructor;
+ C = Reflect.construct(R, arguments, E);
+ } else
+ C = R.apply(this, arguments);
+ return h(this, C);
+ };
+ }
+ function h(N, M) {
+ return M && (u(M) === "object" || typeof M == "function") ? M : l(N);
+ }
+ function l(N) {
+ if (N === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return N;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (N) {
+ return !1;
+ }
+ }
+ function s(N) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(I) {
+ return I.__proto__ || Object.getPrototypeOf(I);
+ }, s(N);
+ }
+ function v(N, M) {
+ var I = Object.keys(N);
+ if (Object.getOwnPropertySymbols) {
+ var R = Object.getOwnPropertySymbols(N);
+ M && (R = R.filter(function(C) {
+ return Object.getOwnPropertyDescriptor(N, C).enumerable;
+ })), I.push.apply(I, R);
+ }
+ return I;
+ }
+ function c(N) {
+ for (var M = 1; M < arguments.length; M++) {
+ var I = arguments[M] != null ? arguments[M] : {};
+ M % 2 ? v(Object(I), !0).forEach(function(R) {
+ a(N, R, I[R]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(N, Object.getOwnPropertyDescriptors(I)) : v(Object(I)).forEach(function(R) {
+ Object.defineProperty(N, R, Object.getOwnPropertyDescriptor(I, R));
+ });
+ }
+ return N;
+ }
+ function a(N, M, I) {
+ return M in N ? Object.defineProperty(N, M, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : N[M] = I, N;
+ }
+ var r = e("../../../utils/under-dash"), t = e("../../../utils/utils"), i = e("../../../utils/col-cache"), n = e("../base-xform"), o = e("../../../doc/range");
+ function p(N, M, I, R) {
+ var C = M[I];
+ C !== void 0 ? N[I] = C : R !== void 0 && (N[I] = R);
+ }
+ function O(N) {
+ switch (N) {
+ case "1":
+ case "true":
+ return !0;
+ default:
+ return !1;
+ }
+ }
+ function P(N, M, I, R) {
+ var C = M[I];
+ C !== void 0 ? N[I] = O(C) : R !== void 0 && (N[I] = R);
+ }
+ function F(N) {
+ var M = r.map(N, function(C, E) {
+ return {
+ address: E,
+ dataValidation: C,
+ marked: !1
+ };
+ }).sort(function(C, E) {
+ return r.strcmp(C.address, E.address);
+ }), I = r.keyBy(M, "address"), R = function(E, A, L) {
+ for (var $ = 0; $ < A; $++) {
+ var W = i.encodeAddress(E.row + $, L);
+ if (!N[W] || !r.isEqual(N[E.address], N[W]))
+ return !1;
+ }
+ return !0;
+ };
+ return M.map(function(C) {
+ if (!C.marked) {
+ var E = i.decodeEx(C.address);
+ if (E.dimensions)
+ return I[E.dimensions].marked = !0, c(c({}, C.dataValidation), {}, {
+ sqref: C.address
+ });
+ for (var A = 1, L = i.encodeAddress(E.row + A, E.col); N[L] && r.isEqual(C.dataValidation, N[L]); )
+ A++, L = i.encodeAddress(E.row + A, E.col);
+ for (var $ = 1; R(E, A, E.col + $); )
+ $++;
+ for (var W = 0; W < A; W++)
+ for (var U = 0; U < $; U++)
+ L = i.encodeAddress(E.row + W, E.col + U), I[L].marked = !0;
+ if (A > 1 || $ > 1) {
+ var D = E.row + (A - 1), B = E.col + ($ - 1);
+ return c(c({}, C.dataValidation), {}, {
+ sqref: "".concat(C.address, ":").concat(i.encodeAddress(D, B))
+ });
+ }
+ return c(c({}, C.dataValidation), {}, {
+ sqref: C.address
+ });
+ }
+ return null;
+ }).filter(Boolean);
+ }
+ var z = /* @__PURE__ */ function(N) {
+ w(I, N);
+ var M = y(I);
+ function I() {
+ return m(this, I), M.apply(this, arguments);
+ }
+ return b(I, [{
+ key: "render",
+ value: function(C, E) {
+ var A = F(E);
+ A.length && (C.openNode("dataValidations", {
+ count: A.length
+ }), A.forEach(function(L) {
+ C.openNode("dataValidation"), L.type !== "any" && (C.addAttribute("type", L.type), L.operator && L.type !== "list" && L.operator !== "between" && C.addAttribute("operator", L.operator), L.allowBlank && C.addAttribute("allowBlank", "1")), L.showInputMessage && C.addAttribute("showInputMessage", "1"), L.promptTitle && C.addAttribute("promptTitle", L.promptTitle), L.prompt && C.addAttribute("prompt", L.prompt), L.showErrorMessage && C.addAttribute("showErrorMessage", "1"), L.errorStyle && C.addAttribute("errorStyle", L.errorStyle), L.errorTitle && C.addAttribute("errorTitle", L.errorTitle), L.error && C.addAttribute("error", L.error), C.addAttribute("sqref", L.sqref), (L.formulae || []).forEach(function($, W) {
+ C.openNode("formula".concat(W + 1)), L.type === "date" ? C.writeText(t.dateToExcel(new Date($))) : C.writeText($), C.closeNode();
+ }), C.closeNode();
+ }), C.closeNode());
+ }
+ }, {
+ key: "parseOpen",
+ value: function(C) {
+ switch (C.name) {
+ case "dataValidations":
+ return this.model = {}, !0;
+ case "dataValidation": {
+ this._address = C.attributes.sqref;
+ var E = {
+ type: C.attributes.type || "any",
+ formulae: []
+ };
+ switch (C.attributes.type && P(E, C.attributes, "allowBlank"), P(E, C.attributes, "showInputMessage"), P(E, C.attributes, "showErrorMessage"), E.type) {
+ case "any":
+ case "list":
+ case "custom":
+ break;
+ default:
+ p(E, C.attributes, "operator", "between");
+ break;
+ }
+ return p(E, C.attributes, "promptTitle"), p(E, C.attributes, "prompt"), p(E, C.attributes, "errorStyle"), p(E, C.attributes, "errorTitle"), p(E, C.attributes, "error"), this._dataValidation = E, !0;
+ }
+ case "formula1":
+ case "formula2":
+ return this._formula = [], !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(C) {
+ this._formula && this._formula.push(C);
+ }
+ }, {
+ key: "parseClose",
+ value: function(C) {
+ var E = this;
+ switch (C) {
+ case "dataValidations":
+ return !1;
+ case "dataValidation": {
+ (!this._dataValidation.formulae || !this._dataValidation.formulae.length) && (delete this._dataValidation.formulae, delete this._dataValidation.operator);
+ var A = this._address.split(/\s+/g) || [];
+ return A.forEach(function($) {
+ if ($.includes(":")) {
+ var W = new o($);
+ W.forEachAddress(function(U) {
+ E.model[U] = E._dataValidation;
+ });
+ } else
+ E.model[$] = E._dataValidation;
+ }), !0;
+ }
+ case "formula1":
+ case "formula2": {
+ var L = this._formula.join("");
+ switch (this._dataValidation.type) {
+ case "whole":
+ case "textLength":
+ L = parseInt(L, 10);
+ break;
+ case "decimal":
+ L = parseFloat(L);
+ break;
+ case "date":
+ L = t.excelToDate(parseFloat(L));
+ break;
+ }
+ return this._dataValidation.formulae.push(L), this._formula = void 0, !0;
+ }
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "dataValidations";
+ }
+ }]), I;
+ }(n);
+ x.exports = z;
+ }, { "../../../doc/range": 10, "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/utils": 26, "../base-xform": 31 }], 93: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && n.leafNode("dimension", {
+ ref: o
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "dimension" ? (this.model = n.attributes.ref, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "dimension";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 94: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && n.leafNode(this.tag, {
+ "r:id": o.rId
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ rId: n.attributes["r:id"]
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "drawing";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 95: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../composite-xform"), c = e("./cf-ext/conditional-formattings-ext-xform"), a = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ "x14:conditionalFormattings": o.conditionalFormattings = new c()
+ }, o;
+ }
+ return b(n, [{
+ key: "hasContent",
+ value: function(p) {
+ return this.conditionalFormattings.hasContent(p.conditionalFormattings);
+ }
+ }, {
+ key: "prepare",
+ value: function(p, O) {
+ this.conditionalFormattings.prepare(p.conditionalFormattings, O);
+ }
+ }, {
+ key: "render",
+ value: function(p, O) {
+ p.openNode("ext", {
+ uri: "{78C0D931-6437-407d-A8EE-F0AAD7539E65}",
+ "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
+ }), this.conditionalFormattings.render(p, O.conditionalFormattings), p.closeNode();
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {};
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ this.model[p] = O.model;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "ext";
+ }
+ }]), n;
+ }(v), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ ext: o.ext = new a()
+ }, o;
+ }
+ return b(n, [{
+ key: "prepare",
+ value: function(p, O) {
+ this.ext.prepare(p, O);
+ }
+ }, {
+ key: "hasContent",
+ value: function(p) {
+ return this.ext.hasContent(p);
+ }
+ }, {
+ key: "render",
+ value: function(p, O) {
+ this.hasContent(O) && (p.openNode("extLst"), this.ext.render(p, O), p.closeNode());
+ }
+ }, {
+ key: "createNewModel",
+ value: function() {
+ return {};
+ }
+ }, {
+ key: "onParserClose",
+ value: function(p, O) {
+ Object.assign(this.model, O.model);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "extLst";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../composite-xform": 47, "./cf-ext/conditional-formattings-ext-xform": 77 }], 96: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ if (o) {
+ n.addRollback();
+ var p = !1;
+ n.openNode("headerFooter"), o.differentFirst && (n.addAttribute("differentFirst", "1"), p = !0), o.differentOddEven && (n.addAttribute("differentOddEven", "1"), p = !0), o.oddHeader && typeof o.oddHeader == "string" && (n.leafNode("oddHeader", null, o.oddHeader), p = !0), o.oddFooter && typeof o.oddFooter == "string" && (n.leafNode("oddFooter", null, o.oddFooter), p = !0), o.evenHeader && typeof o.evenHeader == "string" && (n.leafNode("evenHeader", null, o.evenHeader), p = !0), o.evenFooter && typeof o.evenFooter == "string" && (n.leafNode("evenFooter", null, o.evenFooter), p = !0), o.firstHeader && typeof o.firstHeader == "string" && (n.leafNode("firstHeader", null, o.firstHeader), p = !0), o.firstFooter && typeof o.firstFooter == "string" && (n.leafNode("firstFooter", null, o.firstFooter), p = !0), p ? (n.closeNode(), n.commit()) : n.rollback();
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case "headerFooter":
+ return this.model = {}, n.attributes.differentFirst && (this.model.differentFirst = parseInt(n.attributes.differentFirst, 0) === 1), n.attributes.differentOddEven && (this.model.differentOddEven = parseInt(n.attributes.differentOddEven, 0) === 1), !0;
+ case "oddHeader":
+ return this.currentNode = "oddHeader", !0;
+ case "oddFooter":
+ return this.currentNode = "oddFooter", !0;
+ case "evenHeader":
+ return this.currentNode = "evenHeader", !0;
+ case "evenFooter":
+ return this.currentNode = "evenFooter", !0;
+ case "firstHeader":
+ return this.currentNode = "firstHeader", !0;
+ case "firstFooter":
+ return this.currentNode = "firstFooter", !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ switch (this.currentNode) {
+ case "oddHeader":
+ this.model.oddHeader = n;
+ break;
+ case "oddFooter":
+ this.model.oddFooter = n;
+ break;
+ case "evenHeader":
+ this.model.evenHeader = n;
+ break;
+ case "evenFooter":
+ this.model.evenFooter = n;
+ break;
+ case "firstHeader":
+ this.model.firstHeader = n;
+ break;
+ case "firstFooter":
+ this.model.firstFooter = n;
+ break;
+ }
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ switch (this.currentNode) {
+ case "oddHeader":
+ case "oddFooter":
+ case "evenHeader":
+ case "evenFooter":
+ case "firstHeader":
+ case "firstFooter":
+ return this.currentNode = void 0, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "headerFooter";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 97: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("hyperlink", {
+ ref: o.address,
+ "r:id": o.rId,
+ tooltip: o.tooltip
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "hyperlink" ? (this.model = {
+ address: n.attributes.ref,
+ rId: n.attributes["r:id"],
+ tooltip: n.attributes.tooltip
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "hyperlink";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 98: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("mergeCell", {
+ ref: o
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "mergeCell" ? (this.model = n.attributes.ref, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "mergeCell";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 99: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ var b = e("../../../utils/under-dash"), w = e("../../../doc/range"), f = e("../../../utils/col-cache"), y = e("../../../doc/enums"), h = /* @__PURE__ */ function() {
+ function l() {
+ u(this, l), this.merges = {};
+ }
+ return g(l, [{
+ key: "add",
+ value: function(s) {
+ if (this.merges[s.master])
+ this.merges[s.master].expandToAddress(s.address);
+ else {
+ var v = "".concat(s.master, ":").concat(s.address);
+ this.merges[s.master] = new w(v);
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(s, v) {
+ b.each(s, function(c) {
+ for (var a = f.decode(c), r = a.top; r <= a.bottom; r++)
+ for (var t = v[r - 1], i = a.left; i <= a.right; i++) {
+ var n = t.cells[i - 1];
+ n ? n.type === y.ValueType.Merge && (n.master = a.tl) : t.cells[i] = {
+ type: y.ValueType.Null,
+ address: f.encodeAddress(r, i)
+ };
+ }
+ });
+ }
+ }, {
+ key: "getMasterAddress",
+ value: function(s) {
+ var v = this.hash[s];
+ return v && v.tl;
+ }
+ }, {
+ key: "mergeCells",
+ get: function() {
+ return b.map(this.merges, function(s) {
+ return s.range;
+ });
+ }
+ }]), l;
+ }();
+ x.exports = h;
+ }, { "../../../doc/enums": 7, "../../../doc/range": 10, "../../../utils/col-cache": 19, "../../../utils/under-dash": 25 }], 100: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = function(t) {
+ return typeof t != "undefined";
+ }, a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ return p && (c(p.summaryBelow) || c(p.summaryRight)) ? (o.leafNode(this.tag, {
+ summaryBelow: c(p.summaryBelow) ? Number(p.summaryBelow) : void 0,
+ summaryRight: c(p.summaryRight) ? Number(p.summaryRight) : void 0
+ }), !0) : !1;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ return o.name === this.tag ? (this.model = {
+ summaryBelow: c(o.attributes.summaryBelow) ? !!Number(o.attributes.summaryBelow) : void 0,
+ summaryRight: c(o.attributes.summaryRight) ? !!Number(o.attributes.summaryRight) : void 0
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "outlinePr";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31 }], 101: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.leafNode("brk", o);
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === "brk" ? (this.model = n.attributes.ref, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "brk";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 102: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ if (p) {
+ var O = {
+ left: p.left,
+ right: p.right,
+ top: p.top,
+ bottom: p.bottom,
+ header: p.header,
+ footer: p.footer
+ };
+ v.some(O, function(P) {
+ return P !== void 0;
+ }) && o.leafNode(this.tag, O);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ switch (o.name) {
+ case this.tag:
+ return this.model = {
+ left: parseFloat(o.attributes.left || 0.7),
+ right: parseFloat(o.attributes.right || 0.7),
+ top: parseFloat(o.attributes.top || 0.75),
+ bottom: parseFloat(o.attributes.bottom || 0.75),
+ header: parseFloat(o.attributes.header || 0.3),
+ footer: parseFloat(o.attributes.footer || 0.3)
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "pageMargins";
+ }
+ }]), i;
+ }(c);
+ x.exports = a;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 103: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ return o && o.fitToPage ? (n.leafNode(this.tag, {
+ fitToPage: o.fitToPage ? "1" : void 0
+ }), !0) : !1;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === this.tag ? (this.model = {
+ fitToPage: n.attributes.fitToPage === "1"
+ }, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "pageSetUpPr";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 104: [function(e, x, _) {
+ function u(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) {
+ return typeof P;
+ } : u = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, u(p);
+ }
+ function m(p, O) {
+ if (!(p instanceof O))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(p, O) {
+ for (var P = 0; P < O.length; P++) {
+ var F = O[P];
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F);
+ }
+ }
+ function b(p, O, P) {
+ return O && g(p.prototype, O), P && g(p, P), p;
+ }
+ function w(p, O) {
+ if (typeof O != "function" && O !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O);
+ }
+ function f(p, O) {
+ return f = Object.setPrototypeOf || function(F, z) {
+ return F.__proto__ = z, F;
+ }, f(p, O);
+ }
+ function y(p) {
+ var O = d();
+ return function() {
+ var F = s(p), z;
+ if (O) {
+ var N = s(this).constructor;
+ z = Reflect.construct(F, arguments, N);
+ } else
+ z = F.apply(this, arguments);
+ return h(this, z);
+ };
+ }
+ function h(p, O) {
+ return O && (u(O) === "object" || typeof O == "function") ? O : l(p);
+ }
+ function l(p) {
+ if (p === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return p;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (p) {
+ return !1;
+ }
+ }
+ function s(p) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
+ return P.__proto__ || Object.getPrototypeOf(P);
+ }, s(p);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../base-xform");
+ function a(p) {
+ return p ? "1" : void 0;
+ }
+ function r(p) {
+ switch (p) {
+ case "overThenDown":
+ return p;
+ default:
+ return;
+ }
+ }
+ function t(p) {
+ switch (p) {
+ case "atEnd":
+ case "asDisplyed":
+ return p;
+ default:
+ return;
+ }
+ }
+ function i(p) {
+ switch (p) {
+ case "dash":
+ case "blank":
+ case "NA":
+ return p;
+ default:
+ return;
+ }
+ }
+ function n(p) {
+ return p !== void 0 ? parseInt(p, 10) : void 0;
+ }
+ var o = /* @__PURE__ */ function(p) {
+ w(P, p);
+ var O = y(P);
+ function P() {
+ return m(this, P), O.apply(this, arguments);
+ }
+ return b(P, [{
+ key: "render",
+ value: function(z, N) {
+ if (N) {
+ var M = {
+ paperSize: N.paperSize,
+ orientation: N.orientation,
+ horizontalDpi: N.horizontalDpi,
+ verticalDpi: N.verticalDpi,
+ pageOrder: r(N.pageOrder),
+ blackAndWhite: a(N.blackAndWhite),
+ draft: a(N.draft),
+ cellComments: t(N.cellComments),
+ errors: i(N.errors),
+ scale: N.scale,
+ fitToWidth: N.fitToWidth,
+ fitToHeight: N.fitToHeight,
+ firstPageNumber: N.firstPageNumber,
+ useFirstPageNumber: a(N.firstPageNumber),
+ usePrinterDefaults: a(N.usePrinterDefaults),
+ copies: N.copies
+ };
+ v.some(M, function(I) {
+ return I !== void 0;
+ }) && z.leafNode(this.tag, M);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(z) {
+ switch (z.name) {
+ case this.tag:
+ return this.model = {
+ paperSize: n(z.attributes.paperSize),
+ orientation: z.attributes.orientation || "portrait",
+ horizontalDpi: parseInt(z.attributes.horizontalDpi || "4294967295", 10),
+ verticalDpi: parseInt(z.attributes.verticalDpi || "4294967295", 10),
+ pageOrder: z.attributes.pageOrder || "downThenOver",
+ blackAndWhite: z.attributes.blackAndWhite === "1",
+ draft: z.attributes.draft === "1",
+ cellComments: z.attributes.cellComments || "None",
+ errors: z.attributes.errors || "displayed",
+ scale: parseInt(z.attributes.scale || "100", 10),
+ fitToWidth: parseInt(z.attributes.fitToWidth || "1", 10),
+ fitToHeight: parseInt(z.attributes.fitToHeight || "1", 10),
+ firstPageNumber: parseInt(z.attributes.firstPageNumber || "1", 10),
+ useFirstPageNumber: z.attributes.useFirstPageNumber === "1",
+ usePrinterDefaults: z.attributes.usePrinterDefaults === "1",
+ copies: parseInt(z.attributes.copies || "1", 10)
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "pageSetup";
+ }
+ }]), P;
+ }(c);
+ x.exports = o;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 105: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && n.leafNode(this.tag, {
+ "r:id": o.rId
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ rId: n.attributes["r:id"]
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "picture";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 106: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../base-xform");
+ function a(t) {
+ return t ? "1" : void 0;
+ }
+ var r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ return m(this, n), i.apply(this, arguments);
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ if (O) {
+ var P = {
+ headings: a(O.showRowColHeaders),
+ gridLines: a(O.showGridLines),
+ horizontalCentered: a(O.horizontalCentered),
+ verticalCentered: a(O.verticalCentered)
+ };
+ v.some(P, function(F) {
+ return F !== void 0;
+ }) && p.leafNode(this.tag, P);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ switch (p.name) {
+ case this.tag:
+ return this.model = {
+ showRowColHeaders: p.attributes.headings === "1",
+ showGridLines: p.attributes.gridLines === "1",
+ horizontalCentered: p.attributes.horizontalCentered === "1",
+ verticalCentered: p.attributes.verticalCentered === "1"
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "printOptions";
+ }
+ }]), n;
+ }(c);
+ x.exports = r;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 107: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("./page-breaks-xform"), c = e("../list-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ m(this, i);
+ var n = {
+ tag: "rowBreaks",
+ count: !0,
+ childXform: new v()
+ };
+ return t.call(this, n);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ if (p && p.length) {
+ o.openNode(this.tag, this.$), this.count && (o.addAttribute(this.$count, p.length), o.addAttribute("manualBreakCount", p.length));
+ var O = this.childXform;
+ p.forEach(function(P) {
+ O.render(o, P);
+ }), o.closeNode();
+ } else
+ this.empty && o.leafNode(this.tag);
+ }
+ }]), i;
+ }(c);
+ x.exports = a;
+ }, { "../list-xform": 70, "./page-breaks-xform": 101 }], 108: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = e("./cell-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i(n) {
+ var o;
+ return m(this, i), o = t.call(this), o.maxItems = n && n.maxItems, o.map = {
+ c: new c()
+ }, o;
+ }
+ return b(i, [{
+ key: "prepare",
+ value: function(o, p) {
+ var O = p.styles.addStyleModel(o.style);
+ O && (o.styleId = O);
+ var P = this.map.c;
+ o.cells.forEach(function(F) {
+ P.prepare(F, p);
+ });
+ }
+ }, {
+ key: "render",
+ value: function(o, p, O) {
+ o.openNode("row"), o.addAttribute("r", p.number), p.height && (o.addAttribute("ht", p.height), o.addAttribute("customHeight", "1")), p.hidden && o.addAttribute("hidden", "1"), p.min > 0 && p.max > 0 && p.min <= p.max && o.addAttribute("spans", "".concat(p.min, ":").concat(p.max)), p.styleId && (o.addAttribute("s", p.styleId), o.addAttribute("customFormat", "1")), o.addAttribute("x14ac:dyDescent", "0.25"), p.outlineLevel && o.addAttribute("outlineLevel", p.outlineLevel), p.collapsed && o.addAttribute("collapsed", "1");
+ var P = this.map.c;
+ p.cells.forEach(function(F) {
+ P.render(o, F, O);
+ }), o.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseOpen(o), !0;
+ if (o.name === "row") {
+ this.numRowsSeen += 1;
+ var p = o.attributes.spans ? o.attributes.spans.split(":").map(function(P) {
+ return parseInt(P, 10);
+ }) : [void 0, void 0], O = this.model = {
+ number: parseInt(o.attributes.r, 10),
+ min: p[0],
+ max: p[1],
+ cells: []
+ };
+ return o.attributes.s && (O.styleId = parseInt(o.attributes.s, 10)), (o.attributes.hidden === !0 || o.attributes.hidden === "true" || o.attributes.hidden === 1 || o.attributes.hidden === "1") && (O.hidden = !0), o.attributes.bestFit && (O.bestFit = !0), o.attributes.ht && (O.height = parseFloat(o.attributes.ht)), o.attributes.outlineLevel && (O.outlineLevel = parseInt(o.attributes.outlineLevel, 10)), o.attributes.collapsed && (O.collapsed = !0), !0;
+ }
+ return this.parser = this.map[o.name], this.parser ? (this.parser.parseOpen(o), !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function(o) {
+ this.parser && this.parser.parseText(o);
+ }
+ }, {
+ key: "parseClose",
+ value: function(o) {
+ if (this.parser) {
+ if (!this.parser.parseClose(o)) {
+ if (this.model.cells.push(this.parser.model), this.maxItems && this.model.cells.length > this.maxItems)
+ throw new Error("Max column count (".concat(this.maxItems, ") exceeded"));
+ this.parser = void 0;
+ }
+ return !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "reconcile",
+ value: function(o, p) {
+ o.style = o.styleId ? p.styles.getStyleModel(o.styleId) : {}, o.styleId !== void 0 && (o.styleId = void 0);
+ var O = this.map.c;
+ o.cells.forEach(function(P) {
+ O.reconcile(P, p);
+ });
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "row";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31, "./cell-xform": 72 }], 109: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ if (p) {
+ var O = {
+ defaultRowHeight: p.defaultRowHeight,
+ outlineLevelRow: p.outlineLevelRow,
+ outlineLevelCol: p.outlineLevelCol,
+ "x14ac:dyDescent": p.dyDescent
+ };
+ p.defaultColWidth && (O.defaultColWidth = p.defaultColWidth), (!p.defaultRowHeight || p.defaultRowHeight !== 15) && (O.customHeight = "1"), v.some(O, function(P) {
+ return P !== void 0;
+ }) && o.leafNode("sheetFormatPr", O);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ return o.name === "sheetFormatPr" ? (this.model = {
+ defaultRowHeight: parseFloat(o.attributes.defaultRowHeight || "0"),
+ dyDescent: parseFloat(o.attributes["x14ac:dyDescent"] || "0"),
+ outlineLevelRow: parseInt(o.attributes.outlineLevelRow || "0", 10),
+ outlineLevelCol: parseInt(o.attributes.outlineLevelCol || "0", 10)
+ }, o.attributes.defaultColWidth && (this.model.defaultColWidth = parseFloat(o.attributes.defaultColWidth)), !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "sheetFormatPr";
+ }
+ }]), i;
+ }(c);
+ x.exports = a;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 110: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("../base-xform"), c = e("../style/color-xform"), a = e("./page-setup-properties-xform"), r = e("./outline-properties-xform"), t = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ var p;
+ return m(this, o), p = n.call(this), p.map = {
+ tabColor: new c("tabColor"),
+ pageSetUpPr: new a(),
+ outlinePr: new r()
+ }, p;
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ if (P) {
+ O.addRollback(), O.openNode("sheetPr");
+ var F = !1;
+ F = this.map.tabColor.render(O, P.tabColor) || F, F = this.map.pageSetUpPr.render(O, P.pageSetup) || F, F = this.map.outlinePr.render(O, P.outlineProperties) || F, F ? (O.closeNode(), O.commit()) : O.rollback();
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(O) {
+ return this.parser ? (this.parser.parseOpen(O), !0) : O.name === this.tag ? (this.reset(), !0) : this.map[O.name] ? (this.parser = this.map[O.name], this.parser.parseOpen(O), !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function(O) {
+ return this.parser ? (this.parser.parseText(O), !0) : !1;
+ }
+ }, {
+ key: "parseClose",
+ value: function(O) {
+ return this.parser ? (this.parser.parseClose(O) || (this.parser = void 0), !0) : (this.map.tabColor.model || this.map.pageSetUpPr.model || this.map.outlinePr.model ? (this.model = {}, this.map.tabColor.model && (this.model.tabColor = this.map.tabColor.model), this.map.pageSetUpPr.model && (this.model.pageSetup = this.map.pageSetUpPr.model), this.map.outlinePr.model && (this.model.outlineProperties = this.map.outlinePr.model)) : this.model = null, !1);
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "sheetPr";
+ }
+ }]), o;
+ }(v);
+ x.exports = t;
+ }, { "../base-xform": 31, "../style/color-xform": 127, "./outline-properties-xform": 100, "./page-setup-properties-xform": 103 }], 111: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../base-xform");
+ function a(i, n) {
+ return i ? n : void 0;
+ }
+ function r(i, n) {
+ return i === n ? !0 : void 0;
+ }
+ var t = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o() {
+ return m(this, o), n.apply(this, arguments);
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ if (P) {
+ var F = {
+ sheet: a(P.sheet, "1"),
+ selectLockedCells: P.selectLockedCells === !1 ? "1" : void 0,
+ selectUnlockedCells: P.selectUnlockedCells === !1 ? "1" : void 0,
+ formatCells: a(P.formatCells, "0"),
+ formatColumns: a(P.formatColumns, "0"),
+ formatRows: a(P.formatRows, "0"),
+ insertColumns: a(P.insertColumns, "0"),
+ insertRows: a(P.insertRows, "0"),
+ insertHyperlinks: a(P.insertHyperlinks, "0"),
+ deleteColumns: a(P.deleteColumns, "0"),
+ deleteRows: a(P.deleteRows, "0"),
+ sort: a(P.sort, "0"),
+ autoFilter: a(P.autoFilter, "0"),
+ pivotTables: a(P.pivotTables, "0")
+ };
+ P.sheet && (F.algorithmName = P.algorithmName, F.hashValue = P.hashValue, F.saltValue = P.saltValue, F.spinCount = P.spinCount, F.objects = a(P.objects === !1, "1"), F.scenarios = a(P.scenarios === !1, "1")), v.some(F, function(z) {
+ return z !== void 0;
+ }) && O.leafNode(this.tag, F);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(O) {
+ switch (O.name) {
+ case this.tag:
+ return this.model = {
+ sheet: r(O.attributes.sheet, "1"),
+ objects: O.attributes.objects === "1" ? !1 : void 0,
+ scenarios: O.attributes.scenarios === "1" ? !1 : void 0,
+ selectLockedCells: O.attributes.selectLockedCells === "1" ? !1 : void 0,
+ selectUnlockedCells: O.attributes.selectUnlockedCells === "1" ? !1 : void 0,
+ formatCells: r(O.attributes.formatCells, "0"),
+ formatColumns: r(O.attributes.formatColumns, "0"),
+ formatRows: r(O.attributes.formatRows, "0"),
+ insertColumns: r(O.attributes.insertColumns, "0"),
+ insertRows: r(O.attributes.insertRows, "0"),
+ insertHyperlinks: r(O.attributes.insertHyperlinks, "0"),
+ deleteColumns: r(O.attributes.deleteColumns, "0"),
+ deleteRows: r(O.attributes.deleteRows, "0"),
+ sort: r(O.attributes.sort, "0"),
+ autoFilter: r(O.attributes.autoFilter, "0"),
+ pivotTables: r(O.attributes.pivotTables, "0")
+ }, O.attributes.algorithmName && (this.model.algorithmName = O.attributes.algorithmName, this.model.hashValue = O.attributes.hashValue, this.model.saltValue = O.attributes.saltValue, this.model.spinCount = parseInt(O.attributes.spinCount, 10)), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "sheetProtection";
+ }
+ }]), o;
+ }(c);
+ x.exports = t;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 112: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../../utils/col-cache"), c = e("../base-xform"), a = {
+ frozen: "frozen",
+ frozenSplit: "frozen",
+ split: "split"
+ }, r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ return m(this, n), i.apply(this, arguments);
+ }
+ return b(n, [{
+ key: "prepare",
+ value: function(p) {
+ switch (p.state) {
+ case "frozen":
+ case "split":
+ break;
+ default:
+ p.state = "normal";
+ break;
+ }
+ }
+ }, {
+ key: "render",
+ value: function(p, O) {
+ p.openNode("sheetView", {
+ workbookViewId: O.workbookViewId || 0
+ });
+ var P = function(R, C, E) {
+ E && p.addAttribute(R, C);
+ };
+ P("rightToLeft", "1", O.rightToLeft === !0), P("tabSelected", "1", O.tabSelected), P("showRuler", "0", O.showRuler === !1), P("showRowColHeaders", "0", O.showRowColHeaders === !1), P("showGridLines", "0", O.showGridLines === !1), P("zoomScale", O.zoomScale, O.zoomScale), P("zoomScaleNormal", O.zoomScaleNormal, O.zoomScaleNormal), P("view", O.style, O.style);
+ var F, z, N, M;
+ switch (O.state) {
+ case "frozen":
+ z = O.xSplit || 0, N = O.ySplit || 0, F = O.topLeftCell || v.getAddress(N + 1, z + 1).address, M = O.xSplit && O.ySplit && "bottomRight" || O.xSplit && "topRight" || "bottomLeft", p.leafNode("pane", {
+ xSplit: O.xSplit || void 0,
+ ySplit: O.ySplit || void 0,
+ topLeftCell: F,
+ activePane: M,
+ state: "frozen"
+ }), p.leafNode("selection", {
+ pane: M,
+ activeCell: O.activeCell,
+ sqref: O.activeCell
+ });
+ break;
+ case "split":
+ O.activePane === "topLeft" && (O.activePane = void 0), p.leafNode("pane", {
+ xSplit: O.xSplit || void 0,
+ ySplit: O.ySplit || void 0,
+ topLeftCell: O.topLeftCell,
+ activePane: O.activePane
+ }), p.leafNode("selection", {
+ pane: O.activePane,
+ activeCell: O.activeCell,
+ sqref: O.activeCell
+ });
+ break;
+ case "normal":
+ O.activeCell && p.leafNode("selection", {
+ activeCell: O.activeCell,
+ sqref: O.activeCell
+ });
+ break;
+ }
+ p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ switch (p.name) {
+ case "sheetView":
+ return this.sheetView = {
+ workbookViewId: parseInt(p.attributes.workbookViewId, 10),
+ rightToLeft: p.attributes.rightToLeft === "1",
+ tabSelected: p.attributes.tabSelected === "1",
+ showRuler: p.attributes.showRuler !== "0",
+ showRowColHeaders: p.attributes.showRowColHeaders !== "0",
+ showGridLines: p.attributes.showGridLines !== "0",
+ zoomScale: parseInt(p.attributes.zoomScale || "100", 10),
+ zoomScaleNormal: parseInt(p.attributes.zoomScaleNormal || "100", 10),
+ style: p.attributes.view
+ }, this.pane = void 0, this.selections = {}, !0;
+ case "pane":
+ return this.pane = {
+ xSplit: parseInt(p.attributes.xSplit || "0", 10),
+ ySplit: parseInt(p.attributes.ySplit || "0", 10),
+ topLeftCell: p.attributes.topLeftCell,
+ activePane: p.attributes.activePane || "topLeft",
+ state: p.attributes.state
+ }, !0;
+ case "selection": {
+ var O = p.attributes.pane || "topLeft";
+ return this.selections[O] = {
+ pane: O,
+ activeCell: p.attributes.activeCell
+ }, !0;
+ }
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ var O, P;
+ switch (p) {
+ case "sheetView":
+ return this.sheetView && this.pane ? (O = this.model = {
+ workbookViewId: this.sheetView.workbookViewId,
+ rightToLeft: this.sheetView.rightToLeft,
+ state: a[this.pane.state] || "split",
+ // split is default
+ xSplit: this.pane.xSplit,
+ ySplit: this.pane.ySplit,
+ topLeftCell: this.pane.topLeftCell,
+ showRuler: this.sheetView.showRuler,
+ showRowColHeaders: this.sheetView.showRowColHeaders,
+ showGridLines: this.sheetView.showGridLines,
+ zoomScale: this.sheetView.zoomScale,
+ zoomScaleNormal: this.sheetView.zoomScaleNormal
+ }, this.model.state === "split" && (O.activePane = this.pane.activePane), P = this.selections[this.pane.activePane], P && P.activeCell && (O.activeCell = P.activeCell), this.sheetView.style && (O.style = this.sheetView.style)) : (O = this.model = {
+ workbookViewId: this.sheetView.workbookViewId,
+ rightToLeft: this.sheetView.rightToLeft,
+ state: "normal",
+ showRuler: this.sheetView.showRuler,
+ showRowColHeaders: this.sheetView.showRowColHeaders,
+ showGridLines: this.sheetView.showGridLines,
+ zoomScale: this.sheetView.zoomScale,
+ zoomScaleNormal: this.sheetView.zoomScaleNormal
+ }, P = this.selections.topLeft, P && P.activeCell && (O.activeCell = P.activeCell), this.sheetView.style && (O.style = this.sheetView.style)), !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function() {
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "sheetView";
+ }
+ }]), n;
+ }(c);
+ x.exports = r;
+ }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 113: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && n.leafNode(this.tag, {
+ "r:id": o.rId
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case this.tag:
+ return this.model = {
+ rId: n.attributes["r:id"]
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "tablePart";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 114: [function(e, x, _) {
+ function u(ve) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(oe) {
+ return typeof oe;
+ } : u = function(oe) {
+ return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe;
+ }, u(ve);
+ }
+ function m(ve, ge) {
+ if (!(ve instanceof ge))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(ve, ge) {
+ for (var oe = 0; oe < ge.length; oe++) {
+ var J = ge[oe];
+ J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(ve, J.key, J);
+ }
+ }
+ function b(ve, ge, oe) {
+ return ge && g(ve.prototype, ge), oe && g(ve, oe), ve;
+ }
+ function w(ve, ge) {
+ if (typeof ge != "function" && ge !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ ve.prototype = Object.create(ge && ge.prototype, { constructor: { value: ve, writable: !0, configurable: !0 } }), ge && f(ve, ge);
+ }
+ function f(ve, ge) {
+ return f = Object.setPrototypeOf || function(J, Q) {
+ return J.__proto__ = Q, J;
+ }, f(ve, ge);
+ }
+ function y(ve) {
+ var ge = d();
+ return function() {
+ var J = s(ve), Q;
+ if (ge) {
+ var he = s(this).constructor;
+ Q = Reflect.construct(J, arguments, he);
+ } else
+ Q = J.apply(this, arguments);
+ return h(this, Q);
+ };
+ }
+ function h(ve, ge) {
+ return ge && (u(ge) === "object" || typeof ge == "function") ? ge : l(ve);
+ }
+ function l(ve) {
+ if (ve === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return ve;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (ve) {
+ return !1;
+ }
+ }
+ function s(ve) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(oe) {
+ return oe.__proto__ || Object.getPrototypeOf(oe);
+ }, s(ve);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../../../utils/col-cache"), a = e("../../../utils/xml-stream"), r = e("../../rel-type"), t = e("./merges"), i = e("../base-xform"), n = e("../list-xform"), o = e("./row-xform"), p = e("./col-xform"), O = e("./dimension-xform"), P = e("./hyperlink-xform"), F = e("./merge-cell-xform"), z = e("./data-validations-xform"), N = e("./sheet-properties-xform"), M = e("./sheet-format-properties-xform"), I = e("./sheet-view-xform"), R = e("./sheet-protection-xform"), C = e("./page-margins-xform"), E = e("./page-setup-xform"), A = e("./print-options-xform"), L = e("./auto-filter-xform"), $ = e("./picture-xform"), W = e("./drawing-xform"), U = e("./table-part-xform"), D = e("./row-breaks-xform"), B = e("./header-footer-xform"), j = e("./cf/conditional-formattings-xform"), V = e("./ext-lst-xform"), re = function(ge, oe) {
+ Object.keys(oe).forEach(function(J) {
+ var Q = ge[J], he = oe[J];
+ Q === void 0 && he !== void 0 && (ge[J] = he);
+ });
+ }, ee = function(ge, oe) {
+ if (!oe || !oe.length)
+ return ge;
+ if (!ge || !ge.length)
+ return oe;
+ var J = {}, Q = {};
+ return ge.forEach(function(he) {
+ J[he.ref] = he, he.rules.forEach(function(ke) {
+ var ne = ke.x14Id;
+ ne && (Q[ne] = ke);
+ });
+ }), oe.forEach(function(he) {
+ he.rules.forEach(function(ke) {
+ var ne = Q[ke.x14Id];
+ ne ? re(ne, ke) : J[he.ref] ? J[he.ref].rules.push(ke) : ge.push({
+ ref: he.ref,
+ rules: [ke]
+ });
+ });
+ }), ge;
+ }, ce = /* @__PURE__ */ function(ve) {
+ w(oe, ve);
+ var ge = y(oe);
+ function oe(J) {
+ var Q;
+ m(this, oe), Q = ge.call(this);
+ var he = J || {}, ke = he.maxRows, ne = he.maxCols;
+ return Q.map = {
+ sheetPr: new N(),
+ dimension: new O(),
+ sheetViews: new n({
+ tag: "sheetViews",
+ count: !1,
+ childXform: new I()
+ }),
+ sheetFormatPr: new M(),
+ cols: new n({
+ tag: "cols",
+ count: !1,
+ childXform: new p()
+ }),
+ sheetData: new n({
+ tag: "sheetData",
+ count: !1,
+ empty: !0,
+ childXform: new o({
+ maxItems: ne
+ }),
+ maxItems: ke
+ }),
+ autoFilter: new L(),
+ mergeCells: new n({
+ tag: "mergeCells",
+ count: !0,
+ childXform: new F()
+ }),
+ rowBreaks: new D(),
+ hyperlinks: new n({
+ tag: "hyperlinks",
+ count: !1,
+ childXform: new P()
+ }),
+ pageMargins: new C(),
+ dataValidations: new z(),
+ pageSetup: new E(),
+ headerFooter: new B(),
+ printOptions: new A(),
+ picture: new $(),
+ drawing: new W(),
+ sheetProtection: new R(),
+ tableParts: new n({
+ tag: "tableParts",
+ count: !0,
+ childXform: new U()
+ }),
+ conditionalFormatting: new j(),
+ extLst: new V()
+ }, Q;
+ }
+ return b(oe, [{
+ key: "prepare",
+ value: function(Q, he) {
+ var ke = this;
+ he.merges = new t(), Q.hyperlinks = he.hyperlinks = [], Q.comments = he.comments = [], he.formulae = {}, he.siFormulae = 0, this.map.cols.prepare(Q.cols, he), this.map.sheetData.prepare(Q.rows, he), this.map.conditionalFormatting.prepare(Q.conditionalFormattings, he), Q.mergeCells = he.merges.mergeCells;
+ var ne = Q.rels = [];
+ function se(fe) {
+ return "rId".concat(fe.length + 1);
+ }
+ if (Q.hyperlinks.forEach(function(fe) {
+ var we = se(ne);
+ fe.rId = we, ne.push({
+ Id: we,
+ Type: r.Hyperlink,
+ Target: fe.target,
+ TargetMode: "External"
+ });
+ }), Q.comments.length > 0) {
+ var Ce = {
+ Id: se(ne),
+ Type: r.Comments,
+ Target: "../comments".concat(Q.id, ".xml")
+ };
+ ne.push(Ce);
+ var q = {
+ Id: se(ne),
+ Type: r.VmlDrawing,
+ Target: "../drawings/vmlDrawing".concat(Q.id, ".vml")
+ };
+ ne.push(q), Q.comments.forEach(function(fe) {
+ fe.refAddress = c.decodeAddress(fe.ref);
+ }), he.commentRefs.push({
+ commentName: "comments".concat(Q.id),
+ vmlDrawing: "vmlDrawing".concat(Q.id)
+ });
+ }
+ var G = [], Y;
+ Q.media.forEach(function(fe) {
+ if (fe.type === "background") {
+ var we = se(ne);
+ Y = he.media[fe.imageId], ne.push({
+ Id: we,
+ Type: r.Image,
+ Target: "../media/".concat(Y.name, ".").concat(Y.extension)
+ }), Q.background = {
+ rId: we
+ }, Q.image = he.media[fe.imageId];
+ } else if (fe.type === "image") {
+ var _e = Q.drawing;
+ Y = he.media[fe.imageId], _e || (_e = Q.drawing = {
+ rId: se(ne),
+ name: "drawing".concat(++he.drawingsCount),
+ anchors: [],
+ rels: []
+ }, he.drawings.push(_e), ne.push({
+ Id: _e.rId,
+ Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",
+ Target: "../drawings/".concat(_e.name, ".xml")
+ }));
+ var je = ke.preImageId === fe.imageId ? G[fe.imageId] : G[_e.rels.length];
+ je || (je = se(_e.rels), G[_e.rels.length] = je, _e.rels.push({
+ Id: je,
+ Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
+ Target: "../media/".concat(Y.name, ".").concat(Y.extension)
+ }));
+ var Ye = {
+ picture: {
+ rId: je
+ },
+ range: fe.range
+ };
+ if (fe.hyperlinks && fe.hyperlinks.hyperlink) {
+ var nt = se(_e.rels);
+ G[_e.rels.length] = nt, Ye.picture.hyperlinks = {
+ tooltip: fe.hyperlinks.tooltip,
+ rId: nt
+ }, _e.rels.push({
+ Id: nt,
+ Type: r.Hyperlink,
+ Target: fe.hyperlinks.hyperlink,
+ TargetMode: "External"
+ });
+ }
+ ke.preImageId = fe.imageId, _e.anchors.push(Ye);
+ }
+ }), Q.tables.forEach(function(fe) {
+ var we = se(ne);
+ fe.rId = we, ne.push({
+ Id: we,
+ Type: r.Table,
+ Target: "../tables/".concat(fe.target)
+ }), fe.columns.forEach(function(_e) {
+ var je = _e.style;
+ je && (_e.dxfId = he.styles.addDxfStyle(je));
+ });
+ }), this.map.extLst.prepare(Q, he);
+ }
+ }, {
+ key: "render",
+ value: function(Q, he) {
+ Q.openXml(a.StdDocAttributes), Q.openNode("worksheet", oe.WORKSHEET_ATTRIBUTES);
+ var ke = he.properties ? {
+ defaultRowHeight: he.properties.defaultRowHeight,
+ dyDescent: he.properties.dyDescent,
+ outlineLevelCol: he.properties.outlineLevelCol,
+ outlineLevelRow: he.properties.outlineLevelRow
+ } : void 0;
+ he.properties && he.properties.defaultColWidth && (ke.defaultColWidth = he.properties.defaultColWidth);
+ var ne = {
+ outlineProperties: he.properties && he.properties.outlineProperties,
+ tabColor: he.properties && he.properties.tabColor,
+ pageSetup: he.pageSetup && he.pageSetup.fitToPage ? {
+ fitToPage: he.pageSetup.fitToPage
+ } : void 0
+ }, se = he.pageSetup && he.pageSetup.margins, Ce = {
+ showRowColHeaders: he.pageSetup && he.pageSetup.showRowColHeaders,
+ showGridLines: he.pageSetup && he.pageSetup.showGridLines,
+ horizontalCentered: he.pageSetup && he.pageSetup.horizontalCentered,
+ verticalCentered: he.pageSetup && he.pageSetup.verticalCentered
+ }, q = he.sheetProtection;
+ this.map.sheetPr.render(Q, ne), this.map.dimension.render(Q, he.dimensions), this.map.sheetViews.render(Q, he.views), this.map.sheetFormatPr.render(Q, ke), this.map.cols.render(Q, he.cols), this.map.sheetData.render(Q, he.rows), this.map.sheetProtection.render(Q, q), this.map.autoFilter.render(Q, he.autoFilter), this.map.mergeCells.render(Q, he.mergeCells), this.map.conditionalFormatting.render(Q, he.conditionalFormattings), this.map.dataValidations.render(Q, he.dataValidations), this.map.hyperlinks.render(Q, he.hyperlinks), this.map.printOptions.render(Q, Ce), this.map.pageMargins.render(Q, se), this.map.pageSetup.render(Q, he.pageSetup), this.map.headerFooter.render(Q, he.headerFooter), this.map.rowBreaks.render(Q, he.rowBreaks), this.map.drawing.render(Q, he.drawing), this.map.picture.render(Q, he.background), this.map.tableParts.render(Q, he.tables), this.map.extLst.render(Q, he), he.rels && he.rels.forEach(function(G) {
+ G.Type === r.VmlDrawing && Q.leafNode("legacyDrawing", {
+ "r:id": G.Id
+ });
+ }), Q.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(Q) {
+ return this.parser ? (this.parser.parseOpen(Q), !0) : Q.name === "worksheet" ? (v.each(this.map, function(he) {
+ he.reset();
+ }), !0) : (this.parser = this.map[Q.name], this.parser && this.parser.parseOpen(Q), !0);
+ }
+ }, {
+ key: "parseText",
+ value: function(Q) {
+ this.parser && this.parser.parseText(Q);
+ }
+ }, {
+ key: "parseClose",
+ value: function(Q) {
+ if (this.parser)
+ return this.parser.parseClose(Q) || (this.parser = void 0), !0;
+ switch (Q) {
+ case "worksheet": {
+ var he = this.map.sheetFormatPr.model || {};
+ this.map.sheetPr.model && this.map.sheetPr.model.tabColor && (he.tabColor = this.map.sheetPr.model.tabColor), this.map.sheetPr.model && this.map.sheetPr.model.outlineProperties && (he.outlineProperties = this.map.sheetPr.model.outlineProperties);
+ var ke = {
+ fitToPage: this.map.sheetPr.model && this.map.sheetPr.model.pageSetup && this.map.sheetPr.model.pageSetup.fitToPage || !1,
+ margins: this.map.pageMargins.model
+ }, ne = Object.assign(ke, this.map.pageSetup.model, this.map.printOptions.model), se = ee(this.map.conditionalFormatting.model, this.map.extLst.model && this.map.extLst.model["x14:conditionalFormattings"]);
+ return this.model = {
+ dimensions: this.map.dimension.model,
+ cols: this.map.cols.model,
+ rows: this.map.sheetData.model,
+ mergeCells: this.map.mergeCells.model,
+ hyperlinks: this.map.hyperlinks.model,
+ dataValidations: this.map.dataValidations.model,
+ properties: he,
+ views: this.map.sheetViews.model,
+ pageSetup: ne,
+ headerFooter: this.map.headerFooter.model,
+ background: this.map.picture.model,
+ drawing: this.map.drawing.model,
+ tables: this.map.tableParts.model,
+ conditionalFormattings: se
+ }, this.map.autoFilter.model && (this.model.autoFilter = this.map.autoFilter.model), this.map.sheetProtection.model && (this.model.sheetProtection = this.map.sheetProtection.model), !1;
+ }
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(Q, he) {
+ var ke = (Q.relationships || []).reduce(function(we, _e) {
+ if (we[_e.Id] = _e, _e.Type === r.Comments && (Q.comments = he.comments[_e.Target].comments), _e.Type === r.VmlDrawing && Q.comments && Q.comments.length) {
+ var je = he.vmlDrawings[_e.Target].comments;
+ Q.comments.forEach(function(Ye, nt) {
+ Ye.note = Object.assign({}, Ye.note, je[nt]);
+ });
+ }
+ return we;
+ }, {});
+ if (he.commentsMap = (Q.comments || []).reduce(function(we, _e) {
+ return _e.ref && (we[_e.ref] = _e), we;
+ }, {}), he.hyperlinkMap = (Q.hyperlinks || []).reduce(function(we, _e) {
+ return _e.rId && (we[_e.address] = ke[_e.rId].Target), we;
+ }, {}), he.formulae = {}, Q.rows = Q.rows && Q.rows.filter(Boolean) || [], Q.rows.forEach(function(we) {
+ we.cells = we.cells && we.cells.filter(Boolean) || [];
+ }), this.map.cols.reconcile(Q.cols, he), this.map.sheetData.reconcile(Q.rows, he), this.map.conditionalFormatting.reconcile(Q.conditionalFormattings, he), Q.media = [], Q.drawing) {
+ var ne = ke[Q.drawing.rId], se = ne.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);
+ if (se) {
+ var Ce = se[1], q = he.drawings[Ce];
+ q.anchors.forEach(function(we) {
+ if (we.medium) {
+ var _e = {
+ type: "image",
+ imageId: we.medium.index,
+ range: we.range,
+ hyperlinks: we.picture.hyperlinks
+ };
+ Q.media.push(_e);
+ }
+ });
+ }
+ }
+ var G = Q.background && ke[Q.background.rId];
+ if (G) {
+ var Y = G.Target.split("/media/")[1], fe = he.mediaIndex && he.mediaIndex[Y];
+ fe !== void 0 && Q.media.push({
+ type: "background",
+ imageId: fe
+ });
+ }
+ Q.tables = (Q.tables || []).map(function(we) {
+ var _e = ke[we.rId];
+ return he.tables[_e.Target];
+ }), delete Q.relationships, delete Q.hyperlinks, delete Q.comments;
+ }
+ }]), oe;
+ }(i);
+ ce.WORKSHEET_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
+ "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
+ "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
+ "mc:Ignorable": "x14ac",
+ "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
+ }, x.exports = ce;
+ }, { "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/xml-stream": 27, "../../rel-type": 30, "../base-xform": 31, "../list-xform": 70, "./auto-filter-xform": 71, "./cf/conditional-formattings-xform": 86, "./col-xform": 91, "./data-validations-xform": 92, "./dimension-xform": 93, "./drawing-xform": 94, "./ext-lst-xform": 95, "./header-footer-xform": 96, "./hyperlink-xform": 97, "./merge-cell-xform": 98, "./merges": 99, "./page-margins-xform": 102, "./page-setup-xform": 104, "./picture-xform": 105, "./print-options-xform": 106, "./row-breaks-xform": 107, "./row-xform": 108, "./sheet-format-properties-xform": 109, "./sheet-properties-xform": 110, "./sheet-protection-xform": 111, "./sheet-view-xform": 112, "./table-part-xform": 113 }], 115: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && (n.openNode(this.tag), n.closeNode());
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ n.name === this.tag && (this.model = !0);
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 116: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n._format = i.format || function(o) {
+ try {
+ return Number.isNaN(o.getTime()) ? "" : o.toISOString();
+ } catch (p) {
+ return "";
+ }
+ }, n._parse = i.parse || function(o) {
+ return new Date(o);
+ }, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, this._format(o)) : n.writeText(this._format(o)), n.closeNode());
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ n.name === this.tag && (this.attr ? this.model = this._parse(n.attributes[this.attr]) : this.text = []);
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.attr || this.text.push(n);
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return this.attr || (this.model = this._parse(this.text.join(""))), !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 117: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n.zero = i.zero, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ (o || this.zero) && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, o) : n.writeText(o), n.closeNode());
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === this.tag ? (this.attr ? this.model = parseInt(n.attributes[this.attr], 10) : this.text = [], !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.attr || this.text.push(n);
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return this.attr || (this.model = parseInt(this.text.join("") || 0, 10)), !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 118: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ o !== void 0 && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, o) : n.writeText(o), n.closeNode());
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ n.name === this.tag && (this.attr ? this.model = n.attributes[this.attr] : this.text = []);
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this.attr || this.text.push(n);
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return this.attr || (this.model = this.text.join("")), !1;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 119: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("./base-xform"), c = e("../../utils/xml-stream");
+ function a(t, i) {
+ t.openNode(i.tag, i.$), i.c && i.c.forEach(function(n) {
+ a(t, n);
+ }), i.t && t.writeText(i.t), t.closeNode();
+ }
+ var r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n(o) {
+ var p;
+ return m(this, n), p = i.call(this), p._model = o, p;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p) {
+ if (!this._xml) {
+ var O = new c();
+ a(O, this._model), this._xml = O.xml;
+ }
+ p.writeXml(this._xml);
+ }
+ }, {
+ key: "parseOpen",
+ value: function() {
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ switch (p) {
+ case this._model.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../../utils/xml-stream": 27, "./base-xform": 31 }], 120: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("./text-xform"), c = e("./rich-text-xform"), a = e("../base-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n() {
+ var o;
+ return m(this, n), o = i.call(this), o.map = {
+ r: new c(),
+ t: new v()
+ }, o;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ if (p.openNode(this.tag, {
+ sb: O.sb || 0,
+ eb: O.eb || 0
+ }), O && O.hasOwnProperty("richText") && O.richText) {
+ var P = this.map.r;
+ O.richText.forEach(function(F) {
+ P.render(p, F);
+ });
+ } else
+ O && this.map.t.render(p, O.text);
+ p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ var O = p.name;
+ return this.parser ? (this.parser.parseOpen(p), !0) : O === this.tag ? (this.model = {
+ sb: parseInt(p.attributes.sb, 10),
+ eb: parseInt(p.attributes.eb, 10)
+ }, !0) : (this.parser = this.map[O], this.parser ? (this.parser.parseOpen(p), !0) : !1);
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser) {
+ if (!this.parser.parseClose(p)) {
+ switch (p) {
+ case "r": {
+ var O = this.model.richText;
+ O || (O = this.model.richText = []), O.push(this.parser.model);
+ break;
+ }
+ case "t":
+ this.model.text = this.parser.model;
+ break;
+ }
+ this.parser = void 0;
+ }
+ return !0;
+ }
+ switch (p) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "rPh";
+ }
+ }]), n;
+ }(a);
+ x.exports = r;
+ }, { "../base-xform": 31, "./rich-text-xform": 121, "./text-xform": 124 }], 121: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("./text-xform"), c = e("../style/font-xform"), a = e("../base-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n(o) {
+ var p;
+ return m(this, n), p = i.call(this), p.model = o, p;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ O = O || this.model, p.openNode("r"), O.font && this.fontXform.render(p, O.font), this.textXform.render(p, O.text), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case "r":
+ return this.model = {}, !0;
+ case "t":
+ return this.parser = this.textXform, this.parser.parseOpen(p), !0;
+ case "rPr":
+ return this.parser = this.fontXform, this.parser.parseOpen(p), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ switch (p) {
+ case "r":
+ return !1;
+ case "t":
+ return this.model.text = this.parser.model, this.parser = void 0, !0;
+ case "rPr":
+ return this.model.font = this.parser.model, this.parser = void 0, !0;
+ default:
+ return this.parser && this.parser.parseClose(p), !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "r";
+ }
+ }, {
+ key: "textXform",
+ get: function() {
+ return this._textXform || (this._textXform = new v());
+ }
+ }, {
+ key: "fontXform",
+ get: function() {
+ return this._fontXform || (this._fontXform = new c(n.FONT_OPTIONS));
+ }
+ }]), n;
+ }(a);
+ r.FONT_OPTIONS = {
+ tagName: "rPr",
+ fontNameTag: "rFont"
+ }, x.exports = r;
+ }, { "../base-xform": 31, "../style/font-xform": 130, "./text-xform": 124 }], 122: [function(e, x, _) {
+ function u(i) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) {
+ return typeof o;
+ } : u = function(o) {
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, u(i);
+ }
+ function m(i, n) {
+ if (!(i instanceof n))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(i, n) {
+ for (var o = 0; o < n.length; o++) {
+ var p = n[o];
+ p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p);
+ }
+ }
+ function b(i, n, o) {
+ return n && g(i.prototype, n), o && g(i, o), i;
+ }
+ function w(i, n) {
+ if (typeof n != "function" && n !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n);
+ }
+ function f(i, n) {
+ return f = Object.setPrototypeOf || function(p, O) {
+ return p.__proto__ = O, p;
+ }, f(i, n);
+ }
+ function y(i) {
+ var n = d();
+ return function() {
+ var p = s(i), O;
+ if (n) {
+ var P = s(this).constructor;
+ O = Reflect.construct(p, arguments, P);
+ } else
+ O = p.apply(this, arguments);
+ return h(this, O);
+ };
+ }
+ function h(i, n) {
+ return n && (u(n) === "object" || typeof n == "function") ? n : l(i);
+ }
+ function l(i) {
+ if (i === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return i;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (i) {
+ return !1;
+ }
+ }
+ function s(i) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ }, s(i);
+ }
+ var v = e("./text-xform"), c = e("./rich-text-xform"), a = e("./phonetic-text-xform"), r = e("../base-xform"), t = /* @__PURE__ */ function(i) {
+ w(o, i);
+ var n = y(o);
+ function o(p) {
+ var O;
+ return m(this, o), O = n.call(this), O.model = p, O.map = {
+ r: new c(),
+ t: new v(),
+ rPh: new a()
+ }, O;
+ }
+ return b(o, [{
+ key: "render",
+ value: function(O, P) {
+ var F = this;
+ O.openNode(this.tag), P && P.hasOwnProperty("richText") && P.richText ? P.richText.length ? P.richText.forEach(function(z) {
+ F.map.r.render(O, z);
+ }) : this.map.t.render(O, "") : P != null && this.map.t.render(O, P), O.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(O) {
+ var P = O.name;
+ return this.parser ? (this.parser.parseOpen(O), !0) : P === this.tag ? (this.model = {}, !0) : (this.parser = this.map[P], this.parser ? (this.parser.parseOpen(O), !0) : !1);
+ }
+ }, {
+ key: "parseText",
+ value: function(O) {
+ this.parser && this.parser.parseText(O);
+ }
+ }, {
+ key: "parseClose",
+ value: function(O) {
+ if (this.parser) {
+ if (!this.parser.parseClose(O)) {
+ switch (O) {
+ case "r": {
+ var P = this.model.richText;
+ P || (P = this.model.richText = []), P.push(this.parser.model);
+ break;
+ }
+ case "t":
+ this.model = this.parser.model;
+ break;
+ }
+ this.parser = void 0;
+ }
+ return !0;
+ }
+ switch (O) {
+ case this.tag:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "si";
+ }
+ }]), o;
+ }(r);
+ x.exports = t;
+ }, { "../base-xform": 31, "./phonetic-text-xform": 120, "./rich-text-xform": 121, "./text-xform": 124 }], 123: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./shared-string-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n(o) {
+ var p;
+ return m(this, n), p = i.call(this), p.model = o || {
+ values: [],
+ count: 0
+ }, p.hash = /* @__PURE__ */ Object.create(null), p.rich = /* @__PURE__ */ Object.create(null), p;
+ }
+ return b(n, [{
+ key: "getString",
+ value: function(p) {
+ return this.model.values[p];
+ }
+ }, {
+ key: "add",
+ value: function(p) {
+ return p.richText ? this.addRichText(p) : this.addText(p);
+ }
+ }, {
+ key: "addText",
+ value: function(p) {
+ var O = this.hash[p];
+ return O === void 0 && (O = this.hash[p] = this.model.values.length, this.model.values.push(p)), this.model.count++, O;
+ }
+ }, {
+ key: "addRichText",
+ value: function(p) {
+ var O = this.sharedStringXform.toXml(p), P = this.rich[O];
+ return P === void 0 && (P = this.rich[O] = this.model.values.length, this.model.values.push(p)), this.model.count++, P;
+ }
+ //
+ //
+ // <%=text%>
+ //
+ //
+ }, {
+ key: "render",
+ value: function(p, O) {
+ O = O || this._values, p.openXml(v.StdDocAttributes), p.openNode("sst", {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
+ count: O.count,
+ uniqueCount: O.values.length
+ });
+ var P = this.sharedStringXform;
+ O.values.forEach(function(F) {
+ P.render(p, F);
+ }), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case "sst":
+ return !0;
+ case "si":
+ return this.parser = this.sharedStringXform, this.parser.parseOpen(p), !0;
+ default:
+ throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(p)));
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseClose(p) || (this.model.values.push(this.parser.model), this.model.count++, this.parser = void 0), !0;
+ switch (p) {
+ case "sst":
+ return !1;
+ default:
+ throw new Error("Unexpected xml node in parseClose: ".concat(p));
+ }
+ }
+ }, {
+ key: "sharedStringXform",
+ get: function() {
+ return this._sharedStringXform || (this._sharedStringXform = new a());
+ }
+ }, {
+ key: "values",
+ get: function() {
+ return this.model.values;
+ }
+ }, {
+ key: "uniqueCount",
+ get: function() {
+ return this.model.values.length;
+ }
+ }, {
+ key: "count",
+ get: function() {
+ return this.model.count;
+ }
+ }]), n;
+ }(c);
+ x.exports = r;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./shared-string-xform": 122 }], 124: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ n.openNode("t"), /^\s|\n|\s$/.test(o) && n.addAttribute("xml:space", "preserve"), n.writeText(o), n.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ switch (n.name) {
+ case "t":
+ return this._text = [], !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(n) {
+ this._text.push(n);
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "t";
+ }
+ }, {
+ key: "model",
+ get: function() {
+ return this._text.join("").replace(/_x([0-9A-F]{4})_/g, function(n, o) {
+ return String.fromCharCode(parseInt(o, 16));
+ });
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 125: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../../../doc/enums"), c = e("../../../utils/utils"), a = e("../base-xform"), r = {
+ horizontalValues: ["left", "center", "right", "fill", "centerContinuous", "distributed", "justify"].reduce(function(n, o) {
+ return n[o] = !0, n;
+ }, {}),
+ horizontal: function(o) {
+ return this.horizontalValues[o] ? o : void 0;
+ },
+ verticalValues: ["top", "middle", "bottom", "distributed", "justify"].reduce(function(n, o) {
+ return n[o] = !0, n;
+ }, {}),
+ vertical: function(o) {
+ return o === "middle" ? "center" : this.verticalValues[o] ? o : void 0;
+ },
+ wrapText: function(o) {
+ return o ? !0 : void 0;
+ },
+ shrinkToFit: function(o) {
+ return o ? !0 : void 0;
+ },
+ textRotation: function(o) {
+ switch (o) {
+ case "vertical":
+ return o;
+ default:
+ return o = c.validInt(o), o >= -90 && o <= 90 ? o : void 0;
+ }
+ },
+ indent: function(o) {
+ return o = c.validInt(o), Math.max(0, o);
+ },
+ readingOrder: function(o) {
+ switch (o) {
+ case "ltr":
+ return v.ReadingOrder.LeftToRight;
+ case "rtl":
+ return v.ReadingOrder.RightToLeft;
+ default:
+ return;
+ }
+ }
+ }, t = {
+ toXml: function(o) {
+ if (o = r.textRotation(o), o) {
+ if (o === "vertical")
+ return 255;
+ var p = Math.round(o);
+ if (p >= 0 && p <= 90)
+ return p;
+ if (p < 0 && p >= -90)
+ return 90 - p;
+ }
+ },
+ toModel: function(o) {
+ var p = c.validInt(o);
+ if (p !== void 0) {
+ if (p === 255)
+ return "vertical";
+ if (p >= 0 && p <= 90)
+ return p;
+ if (p > 90 && p <= 180)
+ return 90 - p;
+ }
+ }
+ }, i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ return m(this, p), o.apply(this, arguments);
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.addRollback(), P.openNode("alignment");
+ var z = !1;
+ function N(M, I) {
+ I && (P.addAttribute(M, I), z = !0);
+ }
+ N("horizontal", r.horizontal(F.horizontal)), N("vertical", r.vertical(F.vertical)), N("wrapText", r.wrapText(F.wrapText) ? "1" : !1), N("shrinkToFit", r.shrinkToFit(F.shrinkToFit) ? "1" : !1), N("indent", r.indent(F.indent)), N("textRotation", t.toXml(F.textRotation)), N("readingOrder", r.readingOrder(F.readingOrder)), P.closeNode(), z ? P.commit() : P.rollback();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ var F = {}, z = !1;
+ function N(M, I, R) {
+ M && (F[I] = R, z = !0);
+ }
+ N(P.attributes.horizontal, "horizontal", P.attributes.horizontal), N(P.attributes.vertical, "vertical", P.attributes.vertical === "center" ? "middle" : P.attributes.vertical), N(P.attributes.wrapText, "wrapText", !!P.attributes.wrapText), N(P.attributes.shrinkToFit, "shrinkToFit", !!P.attributes.shrinkToFit), N(P.attributes.indent, "indent", parseInt(P.attributes.indent, 10)), N(P.attributes.textRotation, "textRotation", t.toModel(P.attributes.textRotation)), N(P.attributes.readingOrder, "readingOrder", P.attributes.readingOrder === "2" ? "rtl" : "ltr"), this.model = z ? F : null;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "alignment";
+ }
+ }]), p;
+ }(a);
+ x.exports = i;
+ }, { "../../../doc/enums": 7, "../../../utils/utils": 26, "../base-xform": 31 }], 126: [function(e, x, _) {
+ function u(o, p) {
+ var O = Object.keys(o);
+ if (Object.getOwnPropertySymbols) {
+ var P = Object.getOwnPropertySymbols(o);
+ p && (P = P.filter(function(F) {
+ return Object.getOwnPropertyDescriptor(o, F).enumerable;
+ })), O.push.apply(O, P);
+ }
+ return O;
+ }
+ function m(o) {
+ for (var p = 1; p < arguments.length; p++) {
+ var O = arguments[p] != null ? arguments[p] : {};
+ p % 2 ? u(Object(O), !0).forEach(function(P) {
+ g(o, P, O[P]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(O)) : u(Object(O)).forEach(function(P) {
+ Object.defineProperty(o, P, Object.getOwnPropertyDescriptor(O, P));
+ });
+ }
+ return o;
+ }
+ function g(o, p, O) {
+ return p in o ? Object.defineProperty(o, p, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : o[p] = O, o;
+ }
+ function b(o) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? b = function(O) {
+ return typeof O;
+ } : b = function(O) {
+ return O && typeof Symbol == "function" && O.constructor === Symbol && O !== Symbol.prototype ? "symbol" : typeof O;
+ }, b(o);
+ }
+ function w(o, p) {
+ if (!(o instanceof p))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(o, p) {
+ for (var O = 0; O < p.length; O++) {
+ var P = p[O];
+ P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(o, P.key, P);
+ }
+ }
+ function y(o, p, O) {
+ return p && f(o.prototype, p), O && f(o, O), o;
+ }
+ function h(o, p) {
+ if (typeof p != "function" && p !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ o.prototype = Object.create(p && p.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), p && l(o, p);
+ }
+ function l(o, p) {
+ return l = Object.setPrototypeOf || function(P, F) {
+ return P.__proto__ = F, P;
+ }, l(o, p);
+ }
+ function d(o) {
+ var p = c();
+ return function() {
+ var P = a(o), F;
+ if (p) {
+ var z = a(this).constructor;
+ F = Reflect.construct(P, arguments, z);
+ } else
+ F = P.apply(this, arguments);
+ return s(this, F);
+ };
+ }
+ function s(o, p) {
+ return p && (b(p) === "object" || typeof p == "function") ? p : v(o);
+ }
+ function v(o) {
+ if (o === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return o;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (o) {
+ return !1;
+ }
+ }
+ function a(o) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(O) {
+ return O.__proto__ || Object.getPrototypeOf(O);
+ }, a(o);
+ }
+ var r = e("../base-xform"), t = e("./color-xform"), i = /* @__PURE__ */ function(o) {
+ h(O, o);
+ var p = d(O);
+ function O(P) {
+ var F;
+ return w(this, O), F = p.call(this), F.name = P, F.map = {
+ color: new t()
+ }, F;
+ }
+ return y(O, [{
+ key: "render",
+ value: function(F, z, N) {
+ var M = z && z.color || N || this.defaultColor;
+ F.openNode(this.name), z && z.style && (F.addAttribute("style", z.style), M && this.map.color.render(F, M)), F.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(F) {
+ if (this.parser)
+ return this.parser.parseOpen(F), !0;
+ switch (F.name) {
+ case this.name: {
+ var z = F.attributes.style;
+ return z ? this.model = {
+ style: z
+ } : this.model = void 0, !0;
+ }
+ case "color":
+ return this.parser = this.map.color, this.parser.parseOpen(F), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(F) {
+ this.parser && this.parser.parseText(F);
+ }
+ }, {
+ key: "parseClose",
+ value: function(F) {
+ return this.parser ? (this.parser.parseClose(F) || (this.parser = void 0), !0) : (F === this.name && this.map.color.model && (this.model || (this.model = {}), this.model.color = this.map.color.model), !1);
+ }
+ }, {
+ key: "validStyle",
+ value: function(F) {
+ return O.validStyleValues[F];
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return this.name;
+ }
+ }]), O;
+ }(r);
+ i.validStyleValues = ["thin", "dotted", "dashDot", "hair", "dashDotDot", "slantDashDot", "mediumDashed", "mediumDashDotDot", "mediumDashDot", "medium", "double", "thick"].reduce(function(o, p) {
+ return o[p] = !0, o;
+ }, {});
+ var n = /* @__PURE__ */ function(o) {
+ h(O, o);
+ var p = d(O);
+ function O() {
+ var P;
+ return w(this, O), P = p.call(this), P.map = {
+ top: new i("top"),
+ left: new i("left"),
+ bottom: new i("bottom"),
+ right: new i("right"),
+ diagonal: new i("diagonal")
+ }, P;
+ }
+ return y(O, [{
+ key: "render",
+ value: function(F, z) {
+ var N = z.color;
+ F.openNode("border"), z.diagonal && z.diagonal.style && (z.diagonal.up && F.addAttribute("diagonalUp", "1"), z.diagonal.down && F.addAttribute("diagonalDown", "1"));
+ function M(I, R) {
+ I && !I.color && z.color && (I = m(m({}, I), {}, {
+ color: z.color
+ })), R.render(F, I, N);
+ }
+ M(z.left, this.map.left), M(z.right, this.map.right), M(z.top, this.map.top), M(z.bottom, this.map.bottom), M(z.diagonal, this.map.diagonal), F.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(F) {
+ if (this.parser)
+ return this.parser.parseOpen(F), !0;
+ switch (F.name) {
+ case "border":
+ return this.reset(), this.diagonalUp = !!F.attributes.diagonalUp, this.diagonalDown = !!F.attributes.diagonalDown, !0;
+ default:
+ return this.parser = this.map[F.name], this.parser ? (this.parser.parseOpen(F), !0) : !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(F) {
+ this.parser && this.parser.parseText(F);
+ }
+ }, {
+ key: "parseClose",
+ value: function(F) {
+ if (this.parser)
+ return this.parser.parseClose(F) || (this.parser = void 0), !0;
+ if (F === "border") {
+ var z = this.model = {}, N = function(I, R, C) {
+ R && (C && Object.assign(R, C), z[I] = R);
+ };
+ N("left", this.map.left.model), N("right", this.map.right.model), N("top", this.map.top.model), N("bottom", this.map.bottom.model), N("diagonal", this.map.diagonal.model, {
+ up: this.diagonalUp,
+ down: this.diagonalDown
+ });
+ }
+ return !1;
+ }
+ }]), O;
+ }(r);
+ x.exports = n;
+ }, { "../base-xform": 31, "./color-xform": 127 }], 127: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.name = i || "color", n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ return o ? (n.openNode(this.name), o.argb ? n.addAttribute("rgb", o.argb) : o.theme !== void 0 ? (n.addAttribute("theme", o.theme), o.tint !== void 0 && n.addAttribute("tint", o.tint)) : o.indexed !== void 0 ? n.addAttribute("indexed", o.indexed) : n.addAttribute("auto", "1"), n.closeNode(), !0) : !1;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ return n.name === this.name ? (n.attributes.rgb ? this.model = {
+ argb: n.attributes.rgb
+ } : n.attributes.theme ? (this.model = {
+ theme: parseInt(n.attributes.theme, 10)
+ }, n.attributes.tint && (this.model.tint = parseFloat(n.attributes.tint))) : n.attributes.indexed ? this.model = {
+ indexed: parseInt(n.attributes.indexed, 10)
+ } : this.model = void 0, !0) : !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return this.name;
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 128: [function(e, x, _) {
+ function u(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) {
+ return typeof P;
+ } : u = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, u(p);
+ }
+ function m(p, O) {
+ if (!(p instanceof O))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(p, O) {
+ for (var P = 0; P < O.length; P++) {
+ var F = O[P];
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F);
+ }
+ }
+ function b(p, O, P) {
+ return O && g(p.prototype, O), P && g(p, P), p;
+ }
+ function w(p, O) {
+ if (typeof O != "function" && O !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O);
+ }
+ function f(p, O) {
+ return f = Object.setPrototypeOf || function(F, z) {
+ return F.__proto__ = z, F;
+ }, f(p, O);
+ }
+ function y(p) {
+ var O = d();
+ return function() {
+ var F = s(p), z;
+ if (O) {
+ var N = s(this).constructor;
+ z = Reflect.construct(F, arguments, N);
+ } else
+ z = F.apply(this, arguments);
+ return h(this, z);
+ };
+ }
+ function h(p, O) {
+ return O && (u(O) === "object" || typeof O == "function") ? O : l(p);
+ }
+ function l(p) {
+ if (p === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return p;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (p) {
+ return !1;
+ }
+ }
+ function s(p) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
+ return P.__proto__ || Object.getPrototypeOf(P);
+ }, s(p);
+ }
+ var v = e("../base-xform"), c = e("./alignment-xform"), a = e("./border-xform"), r = e("./fill-xform"), t = e("./font-xform"), i = e("./numfmt-xform"), n = e("./protection-xform"), o = /* @__PURE__ */ function(p) {
+ w(P, p);
+ var O = y(P);
+ function P() {
+ var F;
+ return m(this, P), F = O.call(this), F.map = {
+ alignment: new c(),
+ border: new a(),
+ fill: new r(),
+ font: new t(),
+ numFmt: new i(),
+ protection: new n()
+ }, F;
+ }
+ return b(P, [{
+ key: "render",
+ // how do we generate dxfid?
+ value: function(z, N) {
+ z.openNode(this.tag), N.font && this.map.font.render(z, N.font), N.numFmt && this.map.numFmt.render(z, N.numFmt), N.fill && this.map.fill.render(z, N.fill), N.alignment && this.map.alignment.render(z, N.alignment), N.border && this.map.border.render(z, N.border), N.protection && this.map.protection.render(z, N.protection), z.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(z) {
+ if (this.parser)
+ return this.parser.parseOpen(z), !0;
+ switch (z.name) {
+ case this.tag:
+ return this.reset(), !0;
+ default:
+ return this.parser = this.map[z.name], this.parser && this.parser.parseOpen(z), !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(z) {
+ this.parser && this.parser.parseText(z);
+ }
+ }, {
+ key: "parseClose",
+ value: function(z) {
+ return this.parser ? (this.parser.parseClose(z) || (this.parser = void 0), !0) : z === this.tag ? (this.model = {
+ alignment: this.map.alignment.model,
+ border: this.map.border.model,
+ fill: this.map.fill.model,
+ font: this.map.font.model,
+ numFmt: this.map.numFmt.model,
+ protection: this.map.protection.model
+ }, !1) : !0;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "dxf";
+ }
+ }]), P;
+ }(v);
+ x.exports = o;
+ }, { "../base-xform": 31, "./alignment-xform": 125, "./border-xform": 126, "./fill-xform": 129, "./font-xform": 130, "./numfmt-xform": 131, "./protection-xform": 132 }], 129: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../base-xform"), c = e("./color-xform"), a = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ color: new c()
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.openNode("stop"), P.addAttribute("position", F.position), this.map.color.render(P, F.color), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "stop":
+ return this.model = {
+ position: parseFloat(P.attributes.position)
+ }, !0;
+ case "color":
+ return this.parser = this.map.color, this.parser.parseOpen(P), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ return this.parser ? (this.parser.parseClose(P) || (this.model.color = this.parser.model, this.parser = void 0), !0) : !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "stop";
+ }
+ }]), p;
+ }(v), r = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ fgColor: new c("fgColor"),
+ bgColor: new c("bgColor")
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.openNode("patternFill"), P.addAttribute("patternType", F.pattern), F.fgColor && this.map.fgColor.render(P, F.fgColor), F.bgColor && this.map.bgColor.render(P, F.bgColor), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "patternFill":
+ return this.model = {
+ type: "pattern",
+ pattern: P.attributes.patternType
+ }, !0;
+ default:
+ return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ return this.parser ? (this.parser.parseClose(P) || (this.parser.model && (this.model[P] = this.parser.model), this.parser = void 0), !0) : !1;
+ }
+ }, {
+ key: "name",
+ get: function() {
+ return "pattern";
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "patternFill";
+ }
+ }]), p;
+ }(v), t = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ stop: new a()
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ switch (P.openNode("gradientFill"), F.gradient) {
+ case "angle":
+ P.addAttribute("degree", F.degree);
+ break;
+ case "path":
+ P.addAttribute("type", "path"), F.center.left && (P.addAttribute("left", F.center.left), F.center.right === void 0 && P.addAttribute("right", F.center.left)), F.center.right && P.addAttribute("right", F.center.right), F.center.top && (P.addAttribute("top", F.center.top), F.center.bottom === void 0 && P.addAttribute("bottom", F.center.top)), F.center.bottom && P.addAttribute("bottom", F.center.bottom);
+ break;
+ }
+ var z = this.map.stop;
+ F.stops.forEach(function(N) {
+ z.render(P, N);
+ }), P.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "gradientFill": {
+ var F = this.model = {
+ stops: []
+ };
+ return P.attributes.degree ? (F.gradient = "angle", F.degree = parseInt(P.attributes.degree, 10)) : P.attributes.type === "path" && (F.gradient = "path", F.center = {
+ left: P.attributes.left ? parseFloat(P.attributes.left) : 0,
+ top: P.attributes.top ? parseFloat(P.attributes.top) : 0
+ }, P.attributes.right !== P.attributes.left && (F.center.right = P.attributes.right ? parseFloat(P.attributes.right) : 0), P.attributes.bottom !== P.attributes.top && (F.center.bottom = P.attributes.bottom ? parseFloat(P.attributes.bottom) : 0)), !0;
+ }
+ case "stop":
+ return this.parser = this.map.stop, this.parser.parseOpen(P), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ return this.parser ? (this.parser.parseClose(P) || (this.model.stops.push(this.parser.model), this.parser = void 0), !0) : !1;
+ }
+ }, {
+ key: "name",
+ get: function() {
+ return "gradient";
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "gradientFill";
+ }
+ }]), p;
+ }(v), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p() {
+ var O;
+ return m(this, p), O = o.call(this), O.map = {
+ patternFill: new r(),
+ gradientFill: new t()
+ }, O;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ switch (P.addRollback(), P.openNode("fill"), F.type) {
+ case "pattern":
+ this.map.patternFill.render(P, F);
+ break;
+ case "gradient":
+ this.map.gradientFill.render(P, F);
+ break;
+ default:
+ P.rollback();
+ return;
+ }
+ P.closeNode(), P.commit();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ if (this.parser)
+ return this.parser.parseOpen(P), !0;
+ switch (P.name) {
+ case "fill":
+ return this.model = {}, !0;
+ default:
+ return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(P) {
+ this.parser && this.parser.parseText(P);
+ }
+ }, {
+ key: "parseClose",
+ value: function(P) {
+ return this.parser ? (this.parser.parseClose(P) || (this.model = this.parser.model, this.model.type = this.parser.name, this.parser = void 0), !0) : !1;
+ }
+ }, {
+ key: "validStyle",
+ value: function(P) {
+ return p.validPatternValues[P];
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "fill";
+ }
+ }]), p;
+ }(v);
+ i.validPatternValues = ["none", "solid", "darkVertical", "darkGray", "mediumGray", "lightGray", "gray125", "gray0625", "darkHorizontal", "darkVertical", "darkDown", "darkUp", "darkGrid", "darkTrellis", "lightHorizontal", "lightVertical", "lightDown", "lightUp", "lightGrid", "lightTrellis", "lightGrid"].reduce(function(n, o) {
+ return n[o] = !0, n;
+ }, {}), i.StopXform = a, i.PatternFillXform = r, i.GradientFillXform = t, x.exports = i;
+ }, { "../base-xform": 31, "./color-xform": 127 }], 130: [function(e, x, _) {
+ function u(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) {
+ return typeof P;
+ } : u = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, u(p);
+ }
+ function m(p, O) {
+ if (!(p instanceof O))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(p, O) {
+ for (var P = 0; P < O.length; P++) {
+ var F = O[P];
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F);
+ }
+ }
+ function b(p, O, P) {
+ return O && g(p.prototype, O), P && g(p, P), p;
+ }
+ function w(p, O) {
+ if (typeof O != "function" && O !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O);
+ }
+ function f(p, O) {
+ return f = Object.setPrototypeOf || function(F, z) {
+ return F.__proto__ = z, F;
+ }, f(p, O);
+ }
+ function y(p) {
+ var O = d();
+ return function() {
+ var F = s(p), z;
+ if (O) {
+ var N = s(this).constructor;
+ z = Reflect.construct(F, arguments, N);
+ } else
+ z = F.apply(this, arguments);
+ return h(this, z);
+ };
+ }
+ function h(p, O) {
+ return O && (u(O) === "object" || typeof O == "function") ? O : l(p);
+ }
+ function l(p) {
+ if (p === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return p;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (p) {
+ return !1;
+ }
+ }
+ function s(p) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
+ return P.__proto__ || Object.getPrototypeOf(P);
+ }, s(p);
+ }
+ var v = e("./color-xform"), c = e("../simple/boolean-xform"), a = e("../simple/integer-xform"), r = e("../simple/string-xform"), t = e("./underline-xform"), i = e("../../../utils/under-dash"), n = e("../base-xform"), o = /* @__PURE__ */ function(p) {
+ w(P, p);
+ var O = y(P);
+ function P(F) {
+ var z;
+ return m(this, P), z = O.call(this), z.options = F || P.OPTIONS, z.map = {
+ b: {
+ prop: "bold",
+ xform: new c({
+ tag: "b",
+ attr: "val"
+ })
+ },
+ i: {
+ prop: "italic",
+ xform: new c({
+ tag: "i",
+ attr: "val"
+ })
+ },
+ u: {
+ prop: "underline",
+ xform: new t()
+ },
+ charset: {
+ prop: "charset",
+ xform: new a({
+ tag: "charset",
+ attr: "val"
+ })
+ },
+ color: {
+ prop: "color",
+ xform: new v()
+ },
+ condense: {
+ prop: "condense",
+ xform: new c({
+ tag: "condense",
+ attr: "val"
+ })
+ },
+ extend: {
+ prop: "extend",
+ xform: new c({
+ tag: "extend",
+ attr: "val"
+ })
+ },
+ family: {
+ prop: "family",
+ xform: new a({
+ tag: "family",
+ attr: "val"
+ })
+ },
+ outline: {
+ prop: "outline",
+ xform: new c({
+ tag: "outline",
+ attr: "val"
+ })
+ },
+ vertAlign: {
+ prop: "vertAlign",
+ xform: new r({
+ tag: "vertAlign",
+ attr: "val"
+ })
+ },
+ scheme: {
+ prop: "scheme",
+ xform: new r({
+ tag: "scheme",
+ attr: "val"
+ })
+ },
+ shadow: {
+ prop: "shadow",
+ xform: new c({
+ tag: "shadow",
+ attr: "val"
+ })
+ },
+ strike: {
+ prop: "strike",
+ xform: new c({
+ tag: "strike",
+ attr: "val"
+ })
+ },
+ sz: {
+ prop: "size",
+ xform: new a({
+ tag: "sz",
+ attr: "val"
+ })
+ }
+ }, z.map[z.options.fontNameTag] = {
+ prop: "name",
+ xform: new r({
+ tag: z.options.fontNameTag,
+ attr: "val"
+ })
+ }, z;
+ }
+ return b(P, [{
+ key: "render",
+ value: function(z, N) {
+ var M = this.map;
+ z.openNode(this.options.tagName), i.each(this.map, function(I, R) {
+ M[R].xform.render(z, N[I.prop]);
+ }), z.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(z) {
+ if (this.parser)
+ return this.parser.parseOpen(z), !0;
+ if (this.map[z.name])
+ return this.parser = this.map[z.name].xform, this.parser.parseOpen(z);
+ switch (z.name) {
+ case this.options.tagName:
+ return this.model = {}, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(z) {
+ this.parser && this.parser.parseText(z);
+ }
+ }, {
+ key: "parseClose",
+ value: function(z) {
+ if (this.parser && !this.parser.parseClose(z)) {
+ var N = this.map[z];
+ return this.parser.model && (this.model[N.prop] = this.parser.model), this.parser = void 0, !0;
+ }
+ switch (z) {
+ case this.options.tagName:
+ return !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return this.options.tagName;
+ }
+ }]), P;
+ }(n);
+ o.OPTIONS = {
+ tagName: "font",
+ fontNameTag: "name"
+ }, x.exports = o;
+ }, { "../../../utils/under-dash": 25, "../base-xform": 31, "../simple/boolean-xform": 115, "../simple/integer-xform": 117, "../simple/string-xform": 118, "./color-xform": 127, "./underline-xform": 135 }], 131: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ function m(n, o) {
+ if (!(n instanceof o))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(n, o) {
+ for (var p = 0; p < o.length; p++) {
+ var O = o[p];
+ O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O);
+ }
+ }
+ function b(n, o, p) {
+ return o && g(n.prototype, o), p && g(n, p), n;
+ }
+ function w(n, o) {
+ if (typeof o != "function" && o !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o);
+ }
+ function f(n, o) {
+ return f = Object.setPrototypeOf || function(O, P) {
+ return O.__proto__ = P, O;
+ }, f(n, o);
+ }
+ function y(n) {
+ var o = d();
+ return function() {
+ var O = s(n), P;
+ if (o) {
+ var F = s(this).constructor;
+ P = Reflect.construct(O, arguments, F);
+ } else
+ P = O.apply(this, arguments);
+ return h(this, P);
+ };
+ }
+ function h(n, o) {
+ return o && (u(o) === "object" || typeof o == "function") ? o : l(n);
+ }
+ function l(n) {
+ if (n === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return n;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (n) {
+ return !1;
+ }
+ }
+ function s(n) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) {
+ return p.__proto__ || Object.getPrototypeOf(p);
+ }, s(n);
+ }
+ var v = e("../../../utils/under-dash"), c = e("../../defaultnumformats"), a = e("../base-xform");
+ function r() {
+ var n = {};
+ return v.each(c, function(o, p) {
+ o.f && (n[o.f] = parseInt(p, 10));
+ }), n;
+ }
+ var t = r(), i = /* @__PURE__ */ function(n) {
+ w(p, n);
+ var o = y(p);
+ function p(O, P) {
+ var F;
+ return m(this, p), F = o.call(this), F.id = O, F.formatCode = P, F;
+ }
+ return b(p, [{
+ key: "render",
+ value: function(P, F) {
+ P.leafNode("numFmt", {
+ numFmtId: F.id,
+ formatCode: F.formatCode
+ });
+ }
+ }, {
+ key: "parseOpen",
+ value: function(P) {
+ switch (P.name) {
+ case "numFmt":
+ return this.model = {
+ id: parseInt(P.attributes.numFmtId, 10),
+ formatCode: P.attributes.formatCode.replace(/[\\](.)/g, "$1")
+ }, !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "numFmt";
+ }
+ }]), p;
+ }(a);
+ i.getDefaultFmtId = function(o) {
+ return t[o];
+ }, i.getDefaultFmtCode = function(o) {
+ return c[o] && c[o].f;
+ }, x.exports = i;
+ }, { "../../../utils/under-dash": 25, "../../defaultnumformats": 29, "../base-xform": 31 }], 132: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = {
+ boolean: function(t, i) {
+ return t === void 0 ? i : t;
+ }
+ }, a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ return m(this, i), t.apply(this, arguments);
+ }
+ return b(i, [{
+ key: "render",
+ value: function(o, p) {
+ o.addRollback(), o.openNode("protection");
+ var O = !1;
+ function P(F, z) {
+ z !== void 0 && (o.addAttribute(F, z), O = !0);
+ }
+ P("locked", c.boolean(p.locked, !0) ? void 0 : "0"), P("hidden", c.boolean(p.hidden, !1) ? "1" : void 0), o.closeNode(), O ? o.commit() : o.rollback();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ var p = {
+ locked: o.attributes.locked !== "0",
+ hidden: o.attributes.hidden === "1"
+ }, O = !p.locked || p.hidden;
+ this.model = O ? p : null;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "protection";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31 }], 133: [function(e, x, _) {
+ function u(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) {
+ return typeof n;
+ } : u = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, u(t);
+ }
+ function m(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function b(t, i, n) {
+ return i && g(t.prototype, i), n && g(t, n), t;
+ }
+ function w(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i);
+ }
+ function f(t, i) {
+ return f = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, f(t, i);
+ }
+ function y(t) {
+ var i = d();
+ return function() {
+ var o = s(t), p;
+ if (i) {
+ var O = s(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return h(this, p);
+ };
+ }
+ function h(t, i) {
+ return i && (u(i) === "object" || typeof i == "function") ? i : l(t);
+ }
+ function l(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function s(t) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, s(t);
+ }
+ var v = e("../base-xform"), c = e("./alignment-xform"), a = e("./protection-xform"), r = /* @__PURE__ */ function(t) {
+ w(n, t);
+ var i = y(n);
+ function n(o) {
+ var p;
+ return m(this, n), p = i.call(this), p.xfId = !!(o && o.xfId), p.map = {
+ alignment: new c(),
+ protection: new a()
+ }, p;
+ }
+ return b(n, [{
+ key: "render",
+ value: function(p, O) {
+ p.openNode("xf", {
+ numFmtId: O.numFmtId || 0,
+ fontId: O.fontId || 0,
+ fillId: O.fillId || 0,
+ borderId: O.borderId || 0
+ }), this.xfId && p.addAttribute("xfId", O.xfId || 0), O.numFmtId && p.addAttribute("applyNumberFormat", "1"), O.fontId && p.addAttribute("applyFont", "1"), O.fillId && p.addAttribute("applyFill", "1"), O.borderId && p.addAttribute("applyBorder", "1"), O.alignment && p.addAttribute("applyAlignment", "1"), O.protection && p.addAttribute("applyProtection", "1"), O.alignment && this.map.alignment.render(p, O.alignment), O.protection && this.map.protection.render(p, O.protection), p.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(p) {
+ if (this.parser)
+ return this.parser.parseOpen(p), !0;
+ switch (p.name) {
+ case "xf":
+ return this.model = {
+ numFmtId: parseInt(p.attributes.numFmtId, 10),
+ fontId: parseInt(p.attributes.fontId, 10),
+ fillId: parseInt(p.attributes.fillId, 10),
+ borderId: parseInt(p.attributes.borderId, 10)
+ }, this.xfId && (this.model.xfId = parseInt(p.attributes.xfId, 10)), !0;
+ case "alignment":
+ return this.parser = this.map.alignment, this.parser.parseOpen(p), !0;
+ case "protection":
+ return this.parser = this.map.protection, this.parser.parseOpen(p), !0;
+ default:
+ return !1;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(p) {
+ this.parser && this.parser.parseText(p);
+ }
+ }, {
+ key: "parseClose",
+ value: function(p) {
+ return this.parser ? (this.parser.parseClose(p) || (this.map.protection === this.parser ? this.model.protection = this.parser.model : this.model.alignment = this.parser.model, this.parser = void 0), !0) : p !== "xf";
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "xf";
+ }
+ }]), n;
+ }(v);
+ x.exports = r;
+ }, { "../base-xform": 31, "./alignment-xform": 125, "./protection-xform": 132 }], 134: [function(e, x, _) {
+ function u(M) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(R) {
+ return typeof R;
+ } : u = function(R) {
+ return R && typeof Symbol == "function" && R.constructor === Symbol && R !== Symbol.prototype ? "symbol" : typeof R;
+ }, u(M);
+ }
+ function m(M, I) {
+ if (!(M instanceof I))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(M, I) {
+ for (var R = 0; R < I.length; R++) {
+ var C = I[R];
+ C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(M, C.key, C);
+ }
+ }
+ function b(M, I, R) {
+ return I && g(M.prototype, I), R && g(M, R), M;
+ }
+ function w(M, I) {
+ if (typeof I != "function" && I !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ M.prototype = Object.create(I && I.prototype, { constructor: { value: M, writable: !0, configurable: !0 } }), I && f(M, I);
+ }
+ function f(M, I) {
+ return f = Object.setPrototypeOf || function(C, E) {
+ return C.__proto__ = E, C;
+ }, f(M, I);
+ }
+ function y(M) {
+ var I = d();
+ return function() {
+ var C = s(M), E;
+ if (I) {
+ var A = s(this).constructor;
+ E = Reflect.construct(C, arguments, A);
+ } else
+ E = C.apply(this, arguments);
+ return h(this, E);
+ };
+ }
+ function h(M, I) {
+ return I && (u(I) === "object" || typeof I == "function") ? I : l(M);
+ }
+ function l(M) {
+ if (M === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return M;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (M) {
+ return !1;
+ }
+ }
+ function s(M) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(R) {
+ return R.__proto__ || Object.getPrototypeOf(R);
+ }, s(M);
+ }
+ var v = e("../../../doc/enums"), c = e("../../../utils/xml-stream"), a = e("../base-xform"), r = e("../static-xform"), t = e("../list-xform"), i = e("./font-xform"), n = e("./fill-xform"), o = e("./border-xform"), p = e("./numfmt-xform"), O = e("./style-xform"), P = e("./dxf-xform"), F = 164, z = /* @__PURE__ */ function(M) {
+ w(R, M);
+ var I = y(R);
+ function R(C) {
+ var E;
+ return m(this, R), E = I.call(this), E.map = {
+ numFmts: new t({
+ tag: "numFmts",
+ count: !0,
+ childXform: new p()
+ }),
+ fonts: new t({
+ tag: "fonts",
+ count: !0,
+ childXform: new i(),
+ $: {
+ "x14ac:knownFonts": 1
+ }
+ }),
+ fills: new t({
+ tag: "fills",
+ count: !0,
+ childXform: new n()
+ }),
+ borders: new t({
+ tag: "borders",
+ count: !0,
+ childXform: new o()
+ }),
+ cellStyleXfs: new t({
+ tag: "cellStyleXfs",
+ count: !0,
+ childXform: new O()
+ }),
+ cellXfs: new t({
+ tag: "cellXfs",
+ count: !0,
+ childXform: new O({
+ xfId: !0
+ })
+ }),
+ dxfs: new t({
+ tag: "dxfs",
+ always: !0,
+ count: !0,
+ childXform: new P()
+ }),
+ // for style manager
+ numFmt: new p(),
+ font: new i(),
+ fill: new n(),
+ border: new o(),
+ style: new O({
+ xfId: !0
+ }),
+ cellStyles: R.STATIC_XFORMS.cellStyles,
+ tableStyles: R.STATIC_XFORMS.tableStyles,
+ extLst: R.STATIC_XFORMS.extLst
+ }, C && E.init(), E;
+ }
+ return b(R, [{
+ key: "initIndex",
+ value: function() {
+ this.index = {
+ style: {},
+ numFmt: {},
+ numFmtNextId: 164,
+ // start custom format ids here
+ font: {},
+ border: {},
+ fill: {}
+ };
+ }
+ }, {
+ key: "init",
+ value: function() {
+ this.model = {
+ styles: [],
+ numFmts: [],
+ fonts: [],
+ borders: [],
+ fills: [],
+ dxfs: []
+ }, this.initIndex(), this._addBorder({}), this._addStyle({
+ numFmtId: 0,
+ fontId: 0,
+ fillId: 0,
+ borderId: 0,
+ xfId: 0
+ }), this._addFill({
+ type: "pattern",
+ pattern: "none"
+ }), this._addFill({
+ type: "pattern",
+ pattern: "gray125"
+ }), this.weakMap = /* @__PURE__ */ new WeakMap();
+ }
+ }, {
+ key: "render",
+ value: function(E, A) {
+ A = A || this.model, E.openXml(c.StdDocAttributes), E.openNode("styleSheet", R.STYLESHEET_ATTRIBUTES), this.index ? (A.numFmts && A.numFmts.length && (E.openNode("numFmts", {
+ count: A.numFmts.length
+ }), A.numFmts.forEach(function(L) {
+ E.writeXml(L);
+ }), E.closeNode()), A.fonts.length || this._addFont({
+ size: 11,
+ color: {
+ theme: 1
+ },
+ name: "Calibri",
+ family: 2,
+ scheme: "minor"
+ }), E.openNode("fonts", {
+ count: A.fonts.length,
+ "x14ac:knownFonts": 1
+ }), A.fonts.forEach(function(L) {
+ E.writeXml(L);
+ }), E.closeNode(), E.openNode("fills", {
+ count: A.fills.length
+ }), A.fills.forEach(function(L) {
+ E.writeXml(L);
+ }), E.closeNode(), E.openNode("borders", {
+ count: A.borders.length
+ }), A.borders.forEach(function(L) {
+ E.writeXml(L);
+ }), E.closeNode(), this.map.cellStyleXfs.render(E, [{
+ numFmtId: 0,
+ fontId: 0,
+ fillId: 0,
+ borderId: 0,
+ xfId: 0
+ }]), E.openNode("cellXfs", {
+ count: A.styles.length
+ }), A.styles.forEach(function(L) {
+ E.writeXml(L);
+ }), E.closeNode()) : (this.map.numFmts.render(E, A.numFmts), this.map.fonts.render(E, A.fonts), this.map.fills.render(E, A.fills), this.map.borders.render(E, A.borders), this.map.cellStyleXfs.render(E, [{
+ numFmtId: 0,
+ fontId: 0,
+ fillId: 0,
+ borderId: 0,
+ xfId: 0
+ }]), this.map.cellXfs.render(E, A.styles)), R.STATIC_XFORMS.cellStyles.render(E), this.map.dxfs.render(E, A.dxfs), R.STATIC_XFORMS.tableStyles.render(E), R.STATIC_XFORMS.extLst.render(E), E.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(E) {
+ if (this.parser)
+ return this.parser.parseOpen(E), !0;
+ switch (E.name) {
+ case "styleSheet":
+ return this.initIndex(), !0;
+ default:
+ return this.parser = this.map[E.name], this.parser && this.parser.parseOpen(E), !0;
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(E) {
+ this.parser && this.parser.parseText(E);
+ }
+ }, {
+ key: "parseClose",
+ value: function(E) {
+ var A = this;
+ if (this.parser)
+ return this.parser.parseClose(E) || (this.parser = void 0), !0;
+ switch (E) {
+ case "styleSheet": {
+ this.model = {};
+ var L = function(U, D) {
+ D.model && D.model.length && (A.model[U] = D.model);
+ };
+ if (L("numFmts", this.map.numFmts), L("fonts", this.map.fonts), L("fills", this.map.fills), L("borders", this.map.borders), L("styles", this.map.cellXfs), L("dxfs", this.map.dxfs), this.index = {
+ model: [],
+ numFmt: []
+ }, this.model.numFmts) {
+ var $ = this.index.numFmt;
+ this.model.numFmts.forEach(function(W) {
+ $[W.id] = W.formatCode;
+ });
+ }
+ return !1;
+ }
+ default:
+ return !0;
+ }
+ }
+ // add a cell's style model to the collection
+ // each style property is processed and cross-referenced, etc.
+ // the styleId is returned. Note: cellType is used when numFmt not defined
+ }, {
+ key: "addStyleModel",
+ value: function(E, A) {
+ if (!E)
+ return 0;
+ if (this.model.fonts.length || this._addFont({
+ size: 11,
+ color: {
+ theme: 1
+ },
+ name: "Calibri",
+ family: 2,
+ scheme: "minor"
+ }), this.weakMap && this.weakMap.has(E))
+ return this.weakMap.get(E);
+ var L = {};
+ if (A = A || v.ValueType.Number, E.numFmt)
+ L.numFmtId = this._addNumFmtStr(E.numFmt);
+ else
+ switch (A) {
+ case v.ValueType.Number:
+ L.numFmtId = this._addNumFmtStr("General");
+ break;
+ case v.ValueType.Date:
+ L.numFmtId = this._addNumFmtStr("mm-dd-yy");
+ break;
+ }
+ E.font && (L.fontId = this._addFont(E.font)), E.border && (L.borderId = this._addBorder(E.border)), E.fill && (L.fillId = this._addFill(E.fill)), E.alignment && (L.alignment = E.alignment), E.protection && (L.protection = E.protection);
+ var $ = this._addStyle(L);
+ return this.weakMap && this.weakMap.set(E, $), $;
+ }
+ // given a styleId (i.e. s="n"), get the cell's style model
+ // objects are shared where possible.
+ }, {
+ key: "getStyleModel",
+ value: function(E) {
+ var A = this.model.styles[E];
+ if (!A)
+ return null;
+ var L = this.index.model[E];
+ if (L)
+ return L;
+ if (L = this.index.model[E] = {}, A.numFmtId) {
+ var $ = this.index.numFmt[A.numFmtId] || p.getDefaultFmtCode(A.numFmtId);
+ $ && (L.numFmt = $);
+ }
+ function W(U, D, B) {
+ if (B || B === 0) {
+ var j = D[B];
+ j && (L[U] = j);
+ }
+ }
+ return W("font", this.model.fonts, A.fontId), W("border", this.model.borders, A.borderId), W("fill", this.model.fills, A.fillId), A.alignment && (L.alignment = A.alignment), A.protection && (L.protection = A.protection), L;
+ }
+ }, {
+ key: "addDxfStyle",
+ value: function(E) {
+ return this.model.dxfs.push(E), this.model.dxfs.length - 1;
+ }
+ }, {
+ key: "getDxfStyle",
+ value: function(E) {
+ return this.model.dxfs[E];
+ }
+ // =========================================================================
+ // Private Interface
+ }, {
+ key: "_addStyle",
+ value: function(E) {
+ var A = this.map.style.toXml(E), L = this.index.style[A];
+ return L === void 0 && (L = this.index.style[A] = this.model.styles.length, this.model.styles.push(A)), L;
+ }
+ // =========================================================================
+ // Number Formats
+ }, {
+ key: "_addNumFmtStr",
+ value: function(E) {
+ var A = p.getDefaultFmtId(E);
+ if (A !== void 0 || (A = this.index.numFmt[E], A !== void 0))
+ return A;
+ A = this.index.numFmt[E] = F + this.model.numFmts.length;
+ var L = this.map.numFmt.toXml({
+ id: A,
+ formatCode: E
+ });
+ return this.model.numFmts.push(L), A;
+ }
+ // =========================================================================
+ // Fonts
+ }, {
+ key: "_addFont",
+ value: function(E) {
+ var A = this.map.font.toXml(E), L = this.index.font[A];
+ return L === void 0 && (L = this.index.font[A] = this.model.fonts.length, this.model.fonts.push(A)), L;
+ }
+ // =========================================================================
+ // Borders
+ }, {
+ key: "_addBorder",
+ value: function(E) {
+ var A = this.map.border.toXml(E), L = this.index.border[A];
+ return L === void 0 && (L = this.index.border[A] = this.model.borders.length, this.model.borders.push(A)), L;
+ }
+ // =========================================================================
+ // Fills
+ }, {
+ key: "_addFill",
+ value: function(E) {
+ var A = this.map.fill.toXml(E), L = this.index.fill[A];
+ return L === void 0 && (L = this.index.fill[A] = this.model.fills.length, this.model.fills.push(A)), L;
+ }
+ // =========================================================================
+ }]), R;
+ }(a);
+ z.STYLESHEET_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
+ "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
+ "mc:Ignorable": "x14ac x16r2",
+ "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",
+ "xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"
+ }, z.STATIC_XFORMS = {
+ cellStyles: new r({
+ tag: "cellStyles",
+ $: {
+ count: 1
+ },
+ c: [{
+ tag: "cellStyle",
+ $: {
+ name: "Normal",
+ xfId: 0,
+ builtinId: 0
+ }
+ }]
+ }),
+ dxfs: new r({
+ tag: "dxfs",
+ $: {
+ count: 0
+ }
+ }),
+ tableStyles: new r({
+ tag: "tableStyles",
+ $: {
+ count: 0,
+ defaultTableStyle: "TableStyleMedium2",
+ defaultPivotStyle: "PivotStyleLight16"
+ }
+ }),
+ extLst: new r({
+ tag: "extLst",
+ c: [{
+ tag: "ext",
+ $: {
+ uri: "{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}",
+ "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
+ },
+ c: [{
+ tag: "x14:slicerStyles",
+ $: {
+ defaultSlicerStyle: "SlicerStyleLight1"
+ }
+ }]
+ }, {
+ tag: "ext",
+ $: {
+ uri: "{9260A510-F301-46a8-8635-F512D64BE5F5}",
+ "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"
+ },
+ c: [{
+ tag: "x15:timelineStyles",
+ $: {
+ defaultTimelineStyle: "TimeSlicerStyleLight1"
+ }
+ }]
+ }]
+ })
+ };
+ var N = /* @__PURE__ */ function(M) {
+ w(R, M);
+ var I = y(R);
+ function R() {
+ var C;
+ return m(this, R), C = I.call(this), C.model = {
+ styles: [{
+ numFmtId: 0,
+ fontId: 0,
+ fillId: 0,
+ borderId: 0,
+ xfId: 0
+ }],
+ numFmts: [],
+ fonts: [{
+ size: 11,
+ color: {
+ theme: 1
+ },
+ name: "Calibri",
+ family: 2,
+ scheme: "minor"
+ }],
+ borders: [{}],
+ fills: [{
+ type: "pattern",
+ pattern: "none"
+ }, {
+ type: "pattern",
+ pattern: "gray125"
+ }]
+ }, C;
+ }
+ return b(R, [{
+ key: "parseStream",
+ value: function(E) {
+ return E.autodrain(), Promise.resolve();
+ }
+ // add a cell's style model to the collection
+ // each style property is processed and cross-referenced, etc.
+ // the styleId is returned. Note: cellType is used when numFmt not defined
+ }, {
+ key: "addStyleModel",
+ value: function(E, A) {
+ switch (A) {
+ case v.ValueType.Date:
+ return this.dateStyleId;
+ default:
+ return 0;
+ }
+ }
+ }, {
+ key: "getStyleModel",
+ // given a styleId (i.e. s="n"), get the cell's style model
+ // objects are shared where possible.
+ value: function() {
+ return {};
+ }
+ }, {
+ key: "dateStyleId",
+ get: function() {
+ if (!this._dateStyleId) {
+ var E = {
+ numFmtId: p.getDefaultFmtId("mm-dd-yy")
+ };
+ this._dateStyleId = this.model.styles.length, this.model.styles.push(E);
+ }
+ return this._dateStyleId;
+ }
+ }]), R;
+ }(z);
+ z.Mock = N, x.exports = z;
+ }, { "../../../doc/enums": 7, "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "../static-xform": 119, "./border-xform": 126, "./dxf-xform": 128, "./fill-xform": 129, "./font-xform": 130, "./numfmt-xform": 131, "./style-xform": 133 }], 135: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t(i) {
+ var n;
+ return m(this, t), n = r.call(this), n.model = i, n;
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ if (o = o || this.model, o === !0)
+ n.leafNode("u");
+ else {
+ var p = t.Attributes[o];
+ p && n.leafNode("u", p);
+ }
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ n.name === "u" && (this.model = n.attributes.val || !0);
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "u";
+ }
+ }]), t;
+ }(v);
+ c.Attributes = {
+ single: {},
+ double: {
+ val: "double"
+ },
+ singleAccounting: {
+ val: "singleAccounting"
+ },
+ doubleAccounting: {
+ val: "doubleAccounting"
+ }
+ }, x.exports = c;
+ }, { "../base-xform": 31 }], 136: [function(e, x, _) {
+ function u(r) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) {
+ return typeof i;
+ } : u = function(i) {
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
+ }, u(r);
+ }
+ function m(r, t) {
+ if (!(r instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(r, t) {
+ for (var i = 0; i < t.length; i++) {
+ var n = t[i];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n);
+ }
+ }
+ function b(r, t, i) {
+ return t && g(r.prototype, t), i && g(r, i), r;
+ }
+ function w(r, t) {
+ if (typeof t != "function" && t !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t);
+ }
+ function f(r, t) {
+ return f = Object.setPrototypeOf || function(n, o) {
+ return n.__proto__ = o, n;
+ }, f(r, t);
+ }
+ function y(r) {
+ var t = d();
+ return function() {
+ var n = s(r), o;
+ if (t) {
+ var p = s(this).constructor;
+ o = Reflect.construct(n, arguments, p);
+ } else
+ o = n.apply(this, arguments);
+ return h(this, o);
+ };
+ }
+ function h(r, t) {
+ return t && (u(t) === "object" || typeof t == "function") ? t : l(r);
+ }
+ function l(r) {
+ if (r === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return r;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (r) {
+ return !1;
+ }
+ }
+ function s(r) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
+ return i.__proto__ || Object.getPrototypeOf(i);
+ }, s(r);
+ }
+ var v = e("../base-xform"), c = e("./filter-column-xform"), a = /* @__PURE__ */ function(r) {
+ w(i, r);
+ var t = y(i);
+ function i() {
+ var n;
+ return m(this, i), n = t.call(this), n.map = {
+ filterColumn: new c()
+ }, n;
+ }
+ return b(i, [{
+ key: "prepare",
+ value: function(o) {
+ var p = this;
+ o.columns.forEach(function(O, P) {
+ p.map.filterColumn.prepare(O, {
+ index: P
+ });
+ });
+ }
+ }, {
+ key: "render",
+ value: function(o, p) {
+ var O = this;
+ return o.openNode(this.tag, {
+ ref: p.autoFilterRef
+ }), p.columns.forEach(function(P) {
+ O.map.filterColumn.render(o, P);
+ }), o.closeNode(), !0;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseOpen(o), !0;
+ switch (o.name) {
+ case this.tag:
+ return this.model = {
+ autoFilterRef: o.attributes.ref,
+ columns: []
+ }, !0;
+ default:
+ if (this.parser = this.map[o.name], this.parser)
+ return this.parseOpen(o), !0;
+ throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(o)));
+ }
+ }
+ }, {
+ key: "parseText",
+ value: function(o) {
+ this.parser && this.parser.parseText(o);
+ }
+ }, {
+ key: "parseClose",
+ value: function(o) {
+ if (this.parser)
+ return this.parser.parseClose(o) || (this.model.columns.push(this.parser.model), this.parser = void 0), !0;
+ switch (o) {
+ case this.tag:
+ return !1;
+ default:
+ throw new Error("Unexpected xml node in parseClose: ".concat(o));
+ }
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "autoFilter";
+ }
+ }]), i;
+ }(v);
+ x.exports = a;
+ }, { "../base-xform": 31, "./filter-column-xform": 137 }], 137: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "prepare",
+ value: function(n, o) {
+ n.colId = o.index.toString();
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ return n.leafNode(this.tag, {
+ colId: o.colId,
+ hiddenButton: o.filterButton ? "0" : "1"
+ }), !0;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (n.name === this.tag) {
+ var o = n.attributes;
+ return this.model = {
+ filterButton: o.hiddenButton === "0"
+ }, !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "filterColumn";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 138: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "prepare",
+ value: function(n, o) {
+ n.id = o.index + 1;
+ }
+ }, {
+ key: "render",
+ value: function(n, o) {
+ return n.leafNode(this.tag, {
+ id: o.id.toString(),
+ name: o.name,
+ totalsRowLabel: o.totalsRowLabel,
+ totalsRowFunction: o.totalsRowFunction,
+ dxfId: o.dxfId
+ }), !0;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (n.name === this.tag) {
+ var o = n.attributes;
+ return this.model = {
+ name: o.name,
+ totalsRowLabel: o.totalsRowLabel,
+ totalsRowFunction: o.totalsRowFunction,
+ dxfId: o.dxfId
+ }, !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "tableColumn";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 139: [function(e, x, _) {
+ function u(a) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) {
+ return typeof t;
+ } : u = function(t) {
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
+ }, u(a);
+ }
+ function m(a, r) {
+ if (!(a instanceof r))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function g(a, r) {
+ for (var t = 0; t < r.length; t++) {
+ var i = r[t];
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i);
+ }
+ }
+ function b(a, r, t) {
+ return r && g(a.prototype, r), t && g(a, t), a;
+ }
+ function w(a, r) {
+ if (typeof r != "function" && r !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r);
+ }
+ function f(a, r) {
+ return f = Object.setPrototypeOf || function(i, n) {
+ return i.__proto__ = n, i;
+ }, f(a, r);
+ }
+ function y(a) {
+ var r = d();
+ return function() {
+ var i = s(a), n;
+ if (r) {
+ var o = s(this).constructor;
+ n = Reflect.construct(i, arguments, o);
+ } else
+ n = i.apply(this, arguments);
+ return h(this, n);
+ };
+ }
+ function h(a, r) {
+ return r && (u(r) === "object" || typeof r == "function") ? r : l(a);
+ }
+ function l(a) {
+ if (a === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return a;
+ }
+ function d() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (a) {
+ return !1;
+ }
+ }
+ function s(a) {
+ return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }, s(a);
+ }
+ var v = e("../base-xform"), c = /* @__PURE__ */ function(a) {
+ w(t, a);
+ var r = y(t);
+ function t() {
+ return m(this, t), r.apply(this, arguments);
+ }
+ return b(t, [{
+ key: "render",
+ value: function(n, o) {
+ return n.leafNode(this.tag, {
+ name: o.theme ? o.theme : void 0,
+ showFirstColumn: o.showFirstColumn ? "1" : "0",
+ showLastColumn: o.showLastColumn ? "1" : "0",
+ showRowStripes: o.showRowStripes ? "1" : "0",
+ showColumnStripes: o.showColumnStripes ? "1" : "0"
+ }), !0;
+ }
+ }, {
+ key: "parseOpen",
+ value: function(n) {
+ if (n.name === this.tag) {
+ var o = n.attributes;
+ return this.model = {
+ theme: o.name ? o.name : null,
+ showFirstColumn: o.showFirstColumn === "1",
+ showLastColumn: o.showLastColumn === "1",
+ showRowStripes: o.showRowStripes === "1",
+ showColumnStripes: o.showColumnStripes === "1"
+ }, !0;
+ }
+ return !1;
+ }
+ }, {
+ key: "parseText",
+ value: function() {
+ }
+ }, {
+ key: "parseClose",
+ value: function() {
+ return !1;
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "tableStyleInfo";
+ }
+ }]), t;
+ }(v);
+ x.exports = c;
+ }, { "../base-xform": 31 }], 140: [function(e, x, _) {
+ function u(P) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(z) {
+ return typeof z;
+ } : u = function(z) {
+ return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
+ }, u(P);
+ }
+ function m(P, F) {
+ var z = Object.keys(P);
+ if (Object.getOwnPropertySymbols) {
+ var N = Object.getOwnPropertySymbols(P);
+ F && (N = N.filter(function(M) {
+ return Object.getOwnPropertyDescriptor(P, M).enumerable;
+ })), z.push.apply(z, N);
+ }
+ return z;
+ }
+ function g(P) {
+ for (var F = 1; F < arguments.length; F++) {
+ var z = arguments[F] != null ? arguments[F] : {};
+ F % 2 ? m(Object(z), !0).forEach(function(N) {
+ b(P, N, z[N]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(z)) : m(Object(z)).forEach(function(N) {
+ Object.defineProperty(P, N, Object.getOwnPropertyDescriptor(z, N));
+ });
+ }
+ return P;
+ }
+ function b(P, F, z) {
+ return F in P ? Object.defineProperty(P, F, { value: z, enumerable: !0, configurable: !0, writable: !0 }) : P[F] = z, P;
+ }
+ function w(P, F) {
+ if (!(P instanceof F))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(P, F) {
+ for (var z = 0; z < F.length; z++) {
+ var N = F[z];
+ N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(P, N.key, N);
+ }
+ }
+ function y(P, F, z) {
+ return F && f(P.prototype, F), z && f(P, z), P;
+ }
+ function h(P, F) {
+ if (typeof F != "function" && F !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ P.prototype = Object.create(F && F.prototype, { constructor: { value: P, writable: !0, configurable: !0 } }), F && l(P, F);
+ }
+ function l(P, F) {
+ return l = Object.setPrototypeOf || function(N, M) {
+ return N.__proto__ = M, N;
+ }, l(P, F);
+ }
+ function d(P) {
+ var F = c();
+ return function() {
+ var N = a(P), M;
+ if (F) {
+ var I = a(this).constructor;
+ M = Reflect.construct(N, arguments, I);
+ } else
+ M = N.apply(this, arguments);
+ return s(this, M);
+ };
+ }
+ function s(P, F) {
+ return F && (u(F) === "object" || typeof F == "function") ? F : v(P);
+ }
+ function v(P) {
+ if (P === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return P;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (P) {
+ return !1;
+ }
+ }
+ function a(P) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(z) {
+ return z.__proto__ || Object.getPrototypeOf(z);
+ }, a(P);
+ }
+ var r = e("../../../utils/xml-stream"), t = e("../base-xform"), i = e("../list-xform"), n = e("./auto-filter-xform"), o = e("./table-column-xform"), p = e("./table-style-info-xform"), O = /* @__PURE__ */ function(P) {
+ h(z, P);
+ var F = d(z);
+ function z() {
+ var N;
+ return w(this, z), N = F.call(this), N.map = {
+ autoFilter: new n(),
+ tableColumns: new i({
+ tag: "tableColumns",
+ count: !0,
+ empty: !0,
+ childXform: new o()
+ }),
+ tableStyleInfo: new p()
+ }, N;
+ }
+ return y(z, [{
+ key: "prepare",
+ value: function(M, I) {
+ this.map.autoFilter.prepare(M), this.map.tableColumns.prepare(M.columns, I);
+ }
+ }, {
+ key: "render",
+ value: function(M, I) {
+ M.openXml(r.StdDocAttributes), M.openNode(this.tag, g(g({}, z.TABLE_ATTRIBUTES), {}, {
+ id: I.id,
+ name: I.name,
+ displayName: I.displayName || I.name,
+ ref: I.tableRef,
+ totalsRowCount: I.totalsRow ? "1" : void 0,
+ totalsRowShown: I.totalsRow ? void 0 : "1",
+ headerRowCount: I.headerRow ? "1" : "0"
+ })), this.map.autoFilter.render(M, I), this.map.tableColumns.render(M, I.columns), this.map.tableStyleInfo.render(M, I.style), M.closeNode();
+ }
+ }, {
+ key: "parseOpen",
+ value: function(M) {
+ if (this.parser)
+ return this.parser.parseOpen(M), !0;
+ var I = M.name, R = M.attributes;
+ switch (I) {
+ case this.tag:
+ this.reset(), this.model = {
+ name: R.name,
+ displayName: R.displayName || R.name,
+ tableRef: R.ref,
+ totalsRow: R.totalsRowCount === "1",
+ headerRow: R.headerRowCount === "1"
+ };
+ break;
+ default:
+ this.parser = this.map[M.name], this.parser && this.parser.parseOpen(M);
+ break;
+ }
+ return !0;
+ }
+ }, {
+ key: "parseText",
+ value: function(M) {
+ this.parser && this.parser.parseText(M);
+ }
+ }, {
+ key: "parseClose",
+ value: function(M) {
+ var I = this;
+ if (this.parser)
+ return this.parser.parseClose(M) || (this.parser = void 0), !0;
+ switch (M) {
+ case this.tag:
+ return this.model.columns = this.map.tableColumns.model, this.map.autoFilter.model && (this.model.autoFilterRef = this.map.autoFilter.model.autoFilterRef, this.map.autoFilter.model.columns.forEach(function(R, C) {
+ I.model.columns[C].filterButton = R.filterButton;
+ })), this.model.style = this.map.tableStyleInfo.model, !1;
+ default:
+ return !0;
+ }
+ }
+ }, {
+ key: "reconcile",
+ value: function(M, I) {
+ M.columns.forEach(function(R) {
+ R.dxfId !== void 0 && (R.style = I.styles.getDxfStyle(R.dxfId));
+ });
+ }
+ }, {
+ key: "tag",
+ get: function() {
+ return "table";
+ }
+ }]), z;
+ }(t);
+ O.TABLE_ATTRIBUTES = {
+ xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
+ "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
+ "mc:Ignorable": "xr xr3",
+ "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
+ "xmlns:xr3": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"
+ // 'xr:uid': '{00000000-000C-0000-FFFF-FFFF00000000}',
+ }, x.exports = O;
+ }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "./auto-filter-xform": 136, "./table-column-xform": 138, "./table-style-info-xform": 139 }], 141: [function(e, x, _) {
+ (function(u, m) {
+ function g(W, U, D, B, j, V, re) {
+ try {
+ var ee = W[V](re), ce = ee.value;
+ } catch (ve) {
+ D(ve);
+ return;
+ }
+ ee.done ? U(ce) : Promise.resolve(ce).then(B, j);
+ }
+ function b(W) {
+ return function() {
+ var U = this, D = arguments;
+ return new Promise(function(B, j) {
+ var V = W.apply(U, D);
+ function re(ce) {
+ g(V, B, j, re, ee, "next", ce);
+ }
+ function ee(ce) {
+ g(V, B, j, re, ee, "throw", ce);
+ }
+ re(void 0);
+ });
+ };
+ }
+ function w(W, U) {
+ if (!(W instanceof U))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function f(W, U) {
+ for (var D = 0; D < U.length; D++) {
+ var B = U[D];
+ B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(W, B.key, B);
+ }
+ }
+ function y(W, U, D) {
+ return U && f(W.prototype, U), D && f(W, D), W;
+ }
+ function h(W) {
+ var U;
+ if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (U = W[Symbol.asyncIterator], U != null) || Symbol.iterator && (U = W[Symbol.iterator], U != null)))
+ return U.call(W);
+ throw new TypeError("Object is not async iterable");
+ }
+ var l = e("fs"), d = e("jszip"), s = e("readable-stream"), v = s.PassThrough, c = e("../utils/zip-stream"), a = e("../utils/stream-buf"), r = e("../utils/utils"), t = e("../utils/xml-stream"), i = e("../utils/browser-buffer-decode"), n = i.bufferToString, o = e("./xform/style/styles-xform"), p = e("./xform/core/core-xform"), O = e("./xform/strings/shared-strings-xform"), P = e("./xform/core/relationships-xform"), F = e("./xform/core/content-types-xform"), z = e("./xform/core/app-xform"), N = e("./xform/book/workbook-xform"), M = e("./xform/sheet/worksheet-xform"), I = e("./xform/drawing/drawing-xform"), R = e("./xform/table/table-xform"), C = e("./xform/comment/comments-xform"), E = e("./xform/comment/vml-notes-xform"), A = e("./xml/theme1.js");
+ function L(W, U) {
+ return new Promise(function(D, B) {
+ l.readFile(W, U, function(j, V) {
+ j ? B(j) : D(V);
+ });
+ });
+ }
+ var $ = /* @__PURE__ */ function() {
+ function W(U) {
+ w(this, W), this.workbook = U;
+ }
+ return y(W, [{
+ key: "readFile",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee;
+ return regeneratorRuntime.wrap(function(ve) {
+ for (; ; )
+ switch (ve.prev = ve.next) {
+ case 0:
+ return ve.next = 2, r.fs.exists(j);
+ case 2:
+ if (ve.sent) {
+ ve.next = 4;
+ break;
+ }
+ throw new Error("File not found: ".concat(j));
+ case 4:
+ return re = l.createReadStream(j), ve.prev = 5, ve.next = 8, this.read(re, V);
+ case 8:
+ return ee = ve.sent, re.close(), ve.abrupt("return", ee);
+ case 13:
+ throw ve.prev = 13, ve.t0 = ve.catch(5), re.close(), ve.t0;
+ case 17:
+ case "end":
+ return ve.stop();
+ }
+ }, B, this, [[5, 13]]);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "parseRels",
+ value: function(D) {
+ var B = new P();
+ return B.parseStream(D);
+ }
+ }, {
+ key: "parseWorkbook",
+ value: function(D) {
+ var B = new N();
+ return B.parseStream(D);
+ }
+ }, {
+ key: "parseSharedStrings",
+ value: function(D) {
+ var B = new O();
+ return B.parseStream(D);
+ }
+ }, {
+ key: "reconcile",
+ value: function(D, B) {
+ var j = new N(), V = new M(B), re = new I(), ee = new R();
+ j.reconcile(D);
+ var ce = {
+ media: D.media,
+ mediaIndex: D.mediaIndex
+ };
+ Object.keys(D.drawings).forEach(function(oe) {
+ var J = D.drawings[oe], Q = D.drawingRels[oe];
+ Q && (ce.rels = Q.reduce(function(he, ke) {
+ return he[ke.Id] = ke, he;
+ }, {}), (J.anchors || []).forEach(function(he) {
+ var ke = he.picture && he.picture.hyperlinks;
+ ke && ce.rels[ke.rId] && (ke.hyperlink = ce.rels[ke.rId].Target, delete ke.rId);
+ }), re.reconcile(J, ce));
+ });
+ var ve = {
+ styles: D.styles
+ };
+ Object.values(D.tables).forEach(function(oe) {
+ ee.reconcile(oe, ve);
+ });
+ var ge = {
+ styles: D.styles,
+ sharedStrings: D.sharedStrings,
+ media: D.media,
+ mediaIndex: D.mediaIndex,
+ date1904: D.properties && D.properties.date1904,
+ drawings: D.drawings,
+ comments: D.comments,
+ tables: D.tables,
+ vmlDrawings: D.vmlDrawings
+ };
+ D.worksheets.forEach(function(oe) {
+ oe.relationships = D.worksheetRels[oe.sheetNo], V.reconcile(oe, ge);
+ }), delete D.worksheetHash, delete D.worksheetRels, delete D.globalRels, delete D.sharedStrings, delete D.workbookRels, delete D.sheetDefs, delete D.styles, delete D.mediaIndex, delete D.drawings, delete D.drawingRels, delete D.vmlDrawings;
+ }
+ }, {
+ key: "_processWorksheetEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re, ee, ce) {
+ var ve, ge;
+ return regeneratorRuntime.wrap(function(J) {
+ for (; ; )
+ switch (J.prev = J.next) {
+ case 0:
+ return ve = new M(ee), J.next = 3, ve.parseStream(j);
+ case 3:
+ ge = J.sent, ge.sheetNo = re, V.worksheetHash[ce] = ge, V.worksheets.push(ge);
+ case 7:
+ case "end":
+ return J.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V, re, ee) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processCommentEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new C(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.comments["../".concat(re, ".xml")] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processTableEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new R(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.tables["../tables/".concat(re, ".xml")] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processWorksheetRelsEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new P(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.worksheetRels[re] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processMediaEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce, ve;
+ return regeneratorRuntime.wrap(function(oe) {
+ for (; ; )
+ switch (oe.prev = oe.next) {
+ case 0:
+ if (ee = re.lastIndexOf("."), !(ee >= 1)) {
+ oe.next = 6;
+ break;
+ }
+ return ce = re.substr(ee + 1), ve = re.substr(0, ee), oe.next = 6, new Promise(function(J, Q) {
+ var he = new a();
+ he.on("finish", function() {
+ V.mediaIndex[re] = V.media.length, V.mediaIndex[ve] = V.media.length;
+ var ke = {
+ type: "image",
+ name: ve,
+ extension: ce,
+ buffer: he.toBuffer()
+ };
+ V.media.push(ke), J();
+ }), j.on("error", function(ke) {
+ Q(ke);
+ }), j.pipe(he);
+ });
+ case 6:
+ case "end":
+ return oe.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processDrawingEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new I(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.drawings[re] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processDrawingRelsEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new P(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.drawingRels[re] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processVmlDrawingEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ var ee, ce;
+ return regeneratorRuntime.wrap(function(ge) {
+ for (; ; )
+ switch (ge.prev = ge.next) {
+ case 0:
+ return ee = new E(), ge.next = 3, ee.parseStream(j);
+ case 3:
+ ce = ge.sent, V.vmlDrawings["../drawings/".concat(re, ".vml")] = ce;
+ case 5:
+ case "end":
+ return ge.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_processThemeEntry",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) {
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ return ce.next = 2, new Promise(function(ve, ge) {
+ var oe = new a();
+ j.on("error", ge), oe.on("error", ge), oe.on("finish", function() {
+ V.themes[re] = oe.read().toString(), ve();
+ }), j.pipe(oe);
+ });
+ case 2:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B, j, V) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ /**
+ * @deprecated since version 4.0. You should use `#read` instead. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md
+ */
+ }, {
+ key: "createInputStream",
+ value: function() {
+ throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md");
+ }
+ }, {
+ key: "read",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee, ce, ve, ge, oe, J, Q;
+ return regeneratorRuntime.wrap(function(ke) {
+ for (; ; )
+ switch (ke.prev = ke.next) {
+ case 0:
+ !j[Symbol.asyncIterator] && j.pipe && (j = j.pipe(new v())), re = [], ee = !0, ce = !1, ke.prev = 4, ge = h(j);
+ case 6:
+ return ke.next = 8, ge.next();
+ case 8:
+ return oe = ke.sent, ee = oe.done, ke.next = 12, oe.value;
+ case 12:
+ if (J = ke.sent, ee) {
+ ke.next = 19;
+ break;
+ }
+ Q = J, re.push(Q);
+ case 16:
+ ee = !0, ke.next = 6;
+ break;
+ case 19:
+ ke.next = 25;
+ break;
+ case 21:
+ ke.prev = 21, ke.t0 = ke.catch(4), ce = !0, ve = ke.t0;
+ case 25:
+ if (ke.prev = 25, ke.prev = 26, !(!ee && ge.return != null)) {
+ ke.next = 30;
+ break;
+ }
+ return ke.next = 30, ge.return();
+ case 30:
+ if (ke.prev = 30, !ce) {
+ ke.next = 33;
+ break;
+ }
+ throw ve;
+ case 33:
+ return ke.finish(30);
+ case 34:
+ return ke.finish(25);
+ case 35:
+ return ke.abrupt("return", this.load(m.concat(re), V));
+ case 36:
+ case "end":
+ return ke.stop();
+ }
+ }, B, this, [[4, 21, 25, 35], [26, , 30, 34]]);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "load",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee, ce, ve, ge, oe, J, Q, he, ke, ne, se, Ce, q, G, Y, fe;
+ return regeneratorRuntime.wrap(function(_e) {
+ for (; ; )
+ switch (_e.prev = _e.next) {
+ case 0:
+ return V && V.base64 ? re = m.from(j.toString(), "base64") : re = j, ee = {
+ worksheets: [],
+ worksheetHash: {},
+ worksheetRels: [],
+ themes: {},
+ media: [],
+ mediaIndex: {},
+ drawings: {},
+ drawingRels: {},
+ comments: {},
+ tables: {},
+ vmlDrawings: {}
+ }, _e.next = 4, d.loadAsync(re);
+ case 4:
+ ce = _e.sent, ve = 0, ge = Object.values(ce.files);
+ case 6:
+ if (!(ve < ge.length)) {
+ _e.next = 126;
+ break;
+ }
+ if (oe = ge[ve], oe.dir) {
+ _e.next = 123;
+ break;
+ }
+ if (J = oe.name, J[0] === "/" && (J = J.substr(1)), Q = void 0, !(J.match(/xl\/media\//) || // themes are not parsed as stream
+ J.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))) {
+ _e.next = 21;
+ break;
+ }
+ return Q = new v(), _e.t0 = Q, _e.next = 17, oe.async("nodebuffer");
+ case 17:
+ _e.t1 = _e.sent, _e.t0.write.call(_e.t0, _e.t1), _e.next = 36;
+ break;
+ case 21:
+ if (Q = new v({
+ writableObjectMode: !0,
+ readableObjectMode: !0
+ }), he = void 0, !u.browser) {
+ _e.next = 31;
+ break;
+ }
+ return _e.t2 = n, _e.next = 27, oe.async("nodebuffer");
+ case 27:
+ _e.t3 = _e.sent, he = (0, _e.t2)(_e.t3), _e.next = 34;
+ break;
+ case 31:
+ return _e.next = 33, oe.async("string");
+ case 33:
+ he = _e.sent;
+ case 34:
+ for (ke = 16384, ne = 0; ne < he.length; ne += ke)
+ Q.write(he.substring(ne, ne + ke));
+ case 36:
+ Q.end(), _e.t4 = J, _e.next = _e.t4 === "_rels/.rels" ? 40 : _e.t4 === "xl/workbook.xml" ? 44 : _e.t4 === "xl/_rels/workbook.xml.rels" ? 53 : _e.t4 === "xl/sharedStrings.xml" ? 57 : _e.t4 === "xl/styles.xml" ? 61 : _e.t4 === "docProps/app.xml" ? 65 : _e.t4 === "docProps/core.xml" ? 72 : 78;
+ break;
+ case 40:
+ return _e.next = 42, this.parseRels(Q);
+ case 42:
+ return ee.globalRels = _e.sent, _e.abrupt("break", 123);
+ case 44:
+ return _e.next = 46, this.parseWorkbook(Q);
+ case 46:
+ return se = _e.sent, ee.sheets = se.sheets, ee.definedNames = se.definedNames, ee.views = se.views, ee.properties = se.properties, ee.calcProperties = se.calcProperties, _e.abrupt("break", 123);
+ case 53:
+ return _e.next = 55, this.parseRels(Q);
+ case 55:
+ return ee.workbookRels = _e.sent, _e.abrupt("break", 123);
+ case 57:
+ return ee.sharedStrings = new O(), _e.next = 60, ee.sharedStrings.parseStream(Q);
+ case 60:
+ return _e.abrupt("break", 123);
+ case 61:
+ return ee.styles = new o(), _e.next = 64, ee.styles.parseStream(Q);
+ case 64:
+ return _e.abrupt("break", 123);
+ case 65:
+ return Ce = new z(), _e.next = 68, Ce.parseStream(Q);
+ case 68:
+ return q = _e.sent, ee.company = q.company, ee.manager = q.manager, _e.abrupt("break", 123);
+ case 72:
+ return G = new p(), _e.next = 75, G.parseStream(Q);
+ case 75:
+ return Y = _e.sent, Object.assign(ee, Y), _e.abrupt("break", 123);
+ case 78:
+ if (fe = J.match(/xl\/worksheets\/sheet(\d+)[.]xml/), !fe) {
+ _e.next = 83;
+ break;
+ }
+ return _e.next = 82, this._processWorksheetEntry(Q, ee, fe[1], V, J);
+ case 82:
+ return _e.abrupt("break", 123);
+ case 83:
+ if (fe = J.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/), !fe) {
+ _e.next = 88;
+ break;
+ }
+ return _e.next = 87, this._processWorksheetRelsEntry(Q, ee, fe[1]);
+ case 87:
+ return _e.abrupt("break", 123);
+ case 88:
+ if (fe = J.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/), !fe) {
+ _e.next = 93;
+ break;
+ }
+ return _e.next = 92, this._processThemeEntry(Q, ee, fe[1]);
+ case 92:
+ return _e.abrupt("break", 123);
+ case 93:
+ if (fe = J.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/), !fe) {
+ _e.next = 98;
+ break;
+ }
+ return _e.next = 97, this._processMediaEntry(Q, ee, fe[1]);
+ case 97:
+ return _e.abrupt("break", 123);
+ case 98:
+ if (fe = J.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/), !fe) {
+ _e.next = 103;
+ break;
+ }
+ return _e.next = 102, this._processDrawingEntry(Q, ee, fe[1]);
+ case 102:
+ return _e.abrupt("break", 123);
+ case 103:
+ if (fe = J.match(/xl\/(comments\d+)[.]xml/), !fe) {
+ _e.next = 108;
+ break;
+ }
+ return _e.next = 107, this._processCommentEntry(Q, ee, fe[1]);
+ case 107:
+ return _e.abrupt("break", 123);
+ case 108:
+ if (fe = J.match(/xl\/tables\/(table\d+)[.]xml/), !fe) {
+ _e.next = 113;
+ break;
+ }
+ return _e.next = 112, this._processTableEntry(Q, ee, fe[1]);
+ case 112:
+ return _e.abrupt("break", 123);
+ case 113:
+ if (fe = J.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/), !fe) {
+ _e.next = 118;
+ break;
+ }
+ return _e.next = 117, this._processDrawingRelsEntry(Q, ee, fe[1]);
+ case 117:
+ return _e.abrupt("break", 123);
+ case 118:
+ if (fe = J.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/), !fe) {
+ _e.next = 123;
+ break;
+ }
+ return _e.next = 122, this._processVmlDrawingEntry(Q, ee, fe[1]);
+ case 122:
+ return _e.abrupt("break", 123);
+ case 123:
+ ve++, _e.next = 6;
+ break;
+ case 126:
+ return this.reconcile(ee, V), this.workbook.model = ee, _e.abrupt("return", this.workbook);
+ case 129:
+ case "end":
+ return _e.stop();
+ }
+ }, B, this);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ // =========================================================================
+ // Write
+ }, {
+ key: "addMedia",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ return regeneratorRuntime.wrap(function(ee) {
+ for (; ; )
+ switch (ee.prev = ee.next) {
+ case 0:
+ return ee.next = 2, Promise.all(V.media.map(/* @__PURE__ */ function() {
+ var ce = b(/* @__PURE__ */ regeneratorRuntime.mark(function ve(ge) {
+ var oe, J, Q, he;
+ return regeneratorRuntime.wrap(function(ne) {
+ for (; ; )
+ switch (ne.prev = ne.next) {
+ case 0:
+ if (ge.type !== "image") {
+ ne.next = 13;
+ break;
+ }
+ if (oe = "xl/media/".concat(ge.name, ".").concat(ge.extension), !ge.filename) {
+ ne.next = 7;
+ break;
+ }
+ return ne.next = 5, L(ge.filename);
+ case 5:
+ return J = ne.sent, ne.abrupt("return", j.append(J, {
+ name: oe
+ }));
+ case 7:
+ if (!ge.buffer) {
+ ne.next = 9;
+ break;
+ }
+ return ne.abrupt("return", j.append(ge.buffer, {
+ name: oe
+ }));
+ case 9:
+ if (!ge.base64) {
+ ne.next = 13;
+ break;
+ }
+ return Q = ge.base64, he = Q.substring(Q.indexOf(",") + 1), ne.abrupt("return", j.append(he, {
+ name: oe,
+ base64: !0
+ }));
+ case 13:
+ throw new Error("Unsupported media");
+ case 14:
+ case "end":
+ return ne.stop();
+ }
+ }, ve);
+ }));
+ return function(ve) {
+ return ce.apply(this, arguments);
+ };
+ }()));
+ case 2:
+ case "end":
+ return ee.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addDrawings",
+ value: function(D, B) {
+ var j = new I(), V = new P();
+ B.worksheets.forEach(function(re) {
+ var ee = re.drawing;
+ if (ee) {
+ j.prepare(ee, {});
+ var ce = j.toXml(ee);
+ D.append(ce, {
+ name: "xl/drawings/".concat(ee.name, ".xml")
+ }), ce = V.toXml(ee.rels), D.append(ce, {
+ name: "xl/drawings/_rels/".concat(ee.name, ".xml.rels")
+ });
+ }
+ });
+ }
+ }, {
+ key: "addTables",
+ value: function(D, B) {
+ var j = new R();
+ B.worksheets.forEach(function(V) {
+ var re = V.tables;
+ re.forEach(function(ee) {
+ j.prepare(ee, {});
+ var ce = j.toXml(ee);
+ D.append(ce, {
+ name: "xl/tables/".concat(ee.target)
+ });
+ });
+ });
+ }
+ }, {
+ key: "addContentTypes",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee;
+ return regeneratorRuntime.wrap(function(ve) {
+ for (; ; )
+ switch (ve.prev = ve.next) {
+ case 0:
+ re = new F(), ee = re.toXml(V), j.append(ee, {
+ name: "[Content_Types].xml"
+ });
+ case 3:
+ case "end":
+ return ve.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addApp",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee;
+ return regeneratorRuntime.wrap(function(ve) {
+ for (; ; )
+ switch (ve.prev = ve.next) {
+ case 0:
+ re = new z(), ee = re.toXml(V), j.append(ee, {
+ name: "docProps/app.xml"
+ });
+ case 3:
+ case "end":
+ return ve.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addCore",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re;
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ re = new p(), j.append(re.toXml(V), {
+ name: "docProps/core.xml"
+ });
+ case 2:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addThemes",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re;
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ re = V.themes || {
+ theme1: A
+ }, Object.keys(re).forEach(function(ve) {
+ var ge = re[ve], oe = "xl/theme/".concat(ve, ".xml");
+ j.append(ge, {
+ name: oe
+ });
+ });
+ case 2:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addOfficeRels",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j) {
+ var V, re;
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ V = new P(), re = V.toXml([{
+ Id: "rId1",
+ Type: W.RelType.OfficeDocument,
+ Target: "xl/workbook.xml"
+ }, {
+ Id: "rId2",
+ Type: W.RelType.CoreProperties,
+ Target: "docProps/core.xml"
+ }, {
+ Id: "rId3",
+ Type: W.RelType.ExtenderProperties,
+ Target: "docProps/app.xml"
+ }]), j.append(re, {
+ name: "_rels/.rels"
+ });
+ case 3:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addWorkbookRels",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee, ce, ve;
+ return regeneratorRuntime.wrap(function(oe) {
+ for (; ; )
+ switch (oe.prev = oe.next) {
+ case 0:
+ re = 1, ee = [{
+ Id: "rId".concat(re++),
+ Type: W.RelType.Styles,
+ Target: "styles.xml"
+ }, {
+ Id: "rId".concat(re++),
+ Type: W.RelType.Theme,
+ Target: "theme/theme1.xml"
+ }], V.sharedStrings.count && ee.push({
+ Id: "rId".concat(re++),
+ Type: W.RelType.SharedStrings,
+ Target: "sharedStrings.xml"
+ }), V.worksheets.forEach(function(J) {
+ J.rId = "rId".concat(re++), ee.push({
+ Id: J.rId,
+ Type: W.RelType.Worksheet,
+ Target: "worksheets/sheet".concat(J.id, ".xml")
+ });
+ }), ce = new P(), ve = ce.toXml(ee), j.append(ve, {
+ name: "xl/_rels/workbook.xml.rels"
+ });
+ case 7:
+ case "end":
+ return oe.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addSharedStrings",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ return regeneratorRuntime.wrap(function(ee) {
+ for (; ; )
+ switch (ee.prev = ee.next) {
+ case 0:
+ V.sharedStrings && V.sharedStrings.count && j.append(V.sharedStrings.xml, {
+ name: "xl/sharedStrings.xml"
+ });
+ case 1:
+ case "end":
+ return ee.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addStyles",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re;
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ re = V.styles.xml, re && j.append(re, {
+ name: "xl/styles.xml"
+ });
+ case 2:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addWorkbook",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re;
+ return regeneratorRuntime.wrap(function(ce) {
+ for (; ; )
+ switch (ce.prev = ce.next) {
+ case 0:
+ re = new N(), j.append(re.toXml(V), {
+ name: "xl/workbook.xml"
+ });
+ case 2:
+ case "end":
+ return ce.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "addWorksheets",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee, ce, ve;
+ return regeneratorRuntime.wrap(function(oe) {
+ for (; ; )
+ switch (oe.prev = oe.next) {
+ case 0:
+ re = new M(), ee = new P(), ce = new C(), ve = new E(), V.worksheets.forEach(function(J) {
+ var Q = new t();
+ re.render(Q, J), j.append(Q.xml, {
+ name: "xl/worksheets/sheet".concat(J.id, ".xml")
+ }), J.rels && J.rels.length && (Q = new t(), ee.render(Q, J.rels), j.append(Q.xml, {
+ name: "xl/worksheets/_rels/sheet".concat(J.id, ".xml.rels")
+ })), J.comments.length > 0 && (Q = new t(), ce.render(Q, J), j.append(Q.xml, {
+ name: "xl/comments".concat(J.id, ".xml")
+ }), Q = new t(), ve.render(Q, J), j.append(Q.xml, {
+ name: "xl/drawings/vmlDrawing".concat(J.id, ".vml")
+ }));
+ });
+ case 5:
+ case "end":
+ return oe.stop();
+ }
+ }, B);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "_finalize",
+ value: function(D) {
+ var B = this;
+ return new Promise(function(j, V) {
+ D.on("finish", function() {
+ j(B);
+ }), D.on("error", V), D.finalize();
+ });
+ }
+ }, {
+ key: "prepareModel",
+ value: function(D, B) {
+ D.creator = D.creator || "ExcelJS", D.lastModifiedBy = D.lastModifiedBy || "ExcelJS", D.created = D.created || /* @__PURE__ */ new Date(), D.modified = D.modified || /* @__PURE__ */ new Date(), D.useSharedStrings = B.useSharedStrings !== void 0 ? B.useSharedStrings : !0, D.useStyles = B.useStyles !== void 0 ? B.useStyles : !0, D.sharedStrings = new O(), D.styles = D.useStyles ? new o(!0) : new o.Mock();
+ var j = new N(), V = new M();
+ j.prepare(D);
+ var re = {
+ sharedStrings: D.sharedStrings,
+ styles: D.styles,
+ date1904: D.properties.date1904,
+ drawingsCount: 0,
+ media: D.media
+ };
+ re.drawings = D.drawings = [], re.commentRefs = D.commentRefs = [];
+ var ee = 0;
+ D.tables = [], D.worksheets.forEach(function(ce) {
+ ce.tables.forEach(function(ve) {
+ ee++, ve.target = "table".concat(ee, ".xml"), ve.id = ee, D.tables.push(ve);
+ }), V.prepare(ce, re);
+ });
+ }
+ }, {
+ key: "write",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) {
+ var re, ee;
+ return regeneratorRuntime.wrap(function(ve) {
+ for (; ; )
+ switch (ve.prev = ve.next) {
+ case 0:
+ return V = V || {}, re = this.workbook.model, ee = new c.ZipWriter(V.zip), ee.pipe(j), this.prepareModel(re, V), ve.next = 7, this.addContentTypes(ee, re);
+ case 7:
+ return ve.next = 9, this.addOfficeRels(ee, re);
+ case 9:
+ return ve.next = 11, this.addWorkbookRels(ee, re);
+ case 11:
+ return ve.next = 13, this.addWorksheets(ee, re);
+ case 13:
+ return ve.next = 15, this.addSharedStrings(ee, re);
+ case 15:
+ return ve.next = 17, this.addDrawings(ee, re);
+ case 17:
+ return ve.next = 19, this.addTables(ee, re);
+ case 19:
+ return ve.next = 21, Promise.all([this.addThemes(ee, re), this.addStyles(ee, re)]);
+ case 21:
+ return ve.next = 23, this.addMedia(ee, re);
+ case 23:
+ return ve.next = 25, Promise.all([this.addApp(ee, re), this.addCore(ee, re)]);
+ case 25:
+ return ve.next = 27, this.addWorkbook(ee, re);
+ case 27:
+ return ve.abrupt("return", this._finalize(ee));
+ case 28:
+ case "end":
+ return ve.stop();
+ }
+ }, B, this);
+ }));
+ function D(B, j) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }, {
+ key: "writeFile",
+ value: function(D, B) {
+ var j = this, V = l.createWriteStream(D);
+ return new Promise(function(re, ee) {
+ V.on("finish", function() {
+ re();
+ }), V.on("error", function(ce) {
+ ee(ce);
+ }), j.write(V, B).then(function() {
+ V.end();
+ });
+ });
+ }
+ }, {
+ key: "writeBuffer",
+ value: function() {
+ var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j) {
+ var V;
+ return regeneratorRuntime.wrap(function(ee) {
+ for (; ; )
+ switch (ee.prev = ee.next) {
+ case 0:
+ return V = new a(), ee.next = 3, this.write(V, j);
+ case 3:
+ return ee.abrupt("return", V.read());
+ case 4:
+ case "end":
+ return ee.stop();
+ }
+ }, B, this);
+ }));
+ function D(B) {
+ return U.apply(this, arguments);
+ }
+ return D;
+ }()
+ }]), W;
+ }();
+ $.RelType = e("./rel-type"), x.exports = $;
+ }).call(this, e("_process"), e("buffer").Buffer);
+ }, { "../utils/browser-buffer-decode": 16, "../utils/stream-buf": 23, "../utils/utils": 26, "../utils/xml-stream": 27, "../utils/zip-stream": 28, "./rel-type": 30, "./xform/book/workbook-xform": 37, "./xform/comment/comments-xform": 39, "./xform/comment/vml-notes-xform": 44, "./xform/core/app-xform": 50, "./xform/core/content-types-xform": 51, "./xform/core/core-xform": 52, "./xform/core/relationships-xform": 54, "./xform/drawing/drawing-xform": 61, "./xform/sheet/worksheet-xform": 114, "./xform/strings/shared-strings-xform": 123, "./xform/style/styles-xform": 134, "./xform/table/table-xform": 140, "./xml/theme1.js": 142, _process: 467, buffer: 216, fs: 215, jszip: 399, "readable-stream": 491 }], 142: [function(e, x, _) {
+ x.exports = `
+ `;
+ }, {}], 143: [function(e, x, _) {
+ (function(u) {
+ function m(t) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(n) {
+ return typeof n;
+ } : m = function(n) {
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
+ }, m(t);
+ }
+ function g(t, i) {
+ if (!(t instanceof i))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function b(t, i) {
+ for (var n = 0; n < i.length; n++) {
+ var o = i[n];
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
+ }
+ }
+ function w(t, i, n) {
+ return i && b(t.prototype, i), n && b(t, n), t;
+ }
+ function f(t, i) {
+ if (typeof i != "function" && i !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && y(t, i);
+ }
+ function y(t, i) {
+ return y = Object.setPrototypeOf || function(o, p) {
+ return o.__proto__ = p, o;
+ }, y(t, i);
+ }
+ function h(t) {
+ var i = s();
+ return function() {
+ var o = v(t), p;
+ if (i) {
+ var O = v(this).constructor;
+ p = Reflect.construct(o, arguments, O);
+ } else
+ p = o.apply(this, arguments);
+ return l(this, p);
+ };
+ }
+ function l(t, i) {
+ return i && (m(i) === "object" || typeof i == "function") ? i : d(t);
+ }
+ function d(t) {
+ if (t === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function s() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (t) {
+ return !1;
+ }
+ }
+ function v(t) {
+ return v = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
+ return n.__proto__ || Object.getPrototypeOf(n);
+ }, v(t);
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.CsvFormatterStream = void 0;
+ var c = e("stream"), a = e("./formatter"), r = /* @__PURE__ */ function(t) {
+ f(n, t);
+ var i = h(n);
+ function n(o) {
+ var p;
+ return g(this, n), p = i.call(this, {
+ writableObjectMode: o.objectMode
+ }), p.hasWrittenBOM = !1, p.formatterOptions = o, p.rowFormatter = new a.RowFormatter(o), p.hasWrittenBOM = !o.writeBOM, p;
+ }
+ return w(n, [{
+ key: "transform",
+ value: function(p) {
+ return this.rowFormatter.rowTransform = p, this;
+ }
+ }, {
+ key: "_transform",
+ value: function(p, O, P) {
+ var F = this, z = !1;
+ try {
+ this.hasWrittenBOM || (this.push(this.formatterOptions.BOM), this.hasWrittenBOM = !0), this.rowFormatter.format(p, function(N, M) {
+ return N ? (z = !0, P(N)) : (M && M.forEach(function(I) {
+ F.push(u.from(I, "utf8"));
+ }), z = !0, P());
+ });
+ } catch (N) {
+ if (z)
+ throw N;
+ P(N);
+ }
+ }
+ }, {
+ key: "_flush",
+ value: function(p) {
+ var O = this;
+ this.rowFormatter.finish(function(P, F) {
+ return P ? p(P) : (F && F.forEach(function(z) {
+ O.push(u.from(z, "utf8"));
+ }), p());
+ });
+ }
+ }]), n;
+ }(c.Transform);
+ _.CsvFormatterStream = r;
+ }).call(this, e("buffer").Buffer);
+ }, { "./formatter": 147, buffer: 216, stream: 506 }], 144: [function(e, x, _) {
+ function u(g, b) {
+ if (!(g instanceof b))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.FormatterOptions = void 0;
+ var m = function g() {
+ var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ u(this, g);
+ var w;
+ this.objectMode = !0, this.delimiter = ",", this.rowDelimiter = `
+`, this.quote = '"', this.escape = this.quote, this.quoteColumns = !1, this.quoteHeaders = this.quoteColumns, this.headers = null, this.includeEndRowDelimiter = !1, this.writeBOM = !1, this.BOM = "\uFEFF", this.alwaysWriteHeaders = !1, Object.assign(this, b || {}), typeof (b == null ? void 0 : b.quoteHeaders) == "undefined" && (this.quoteHeaders = this.quoteColumns), (b == null ? void 0 : b.quote) === !0 ? this.quote = '"' : (b == null ? void 0 : b.quote) === !1 && (this.quote = ""), typeof (b == null ? void 0 : b.escape) != "string" && (this.escape = this.quote), this.shouldWriteHeaders = !!this.headers && ((w = b.writeHeaders) !== null && w !== void 0 ? w : !0), this.headers = Array.isArray(this.headers) ? this.headers : null, this.escapedQuote = "".concat(this.escape).concat(this.quote);
+ };
+ _.FormatterOptions = m;
+ }, {}], 145: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ var b = function(l) {
+ return l && l.__esModule ? l : {
+ default: l
+ };
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.FieldFormatter = void 0;
+ var w = b(e("lodash.isboolean")), f = b(e("lodash.isnil")), y = b(e("lodash.escaperegexp")), h = /* @__PURE__ */ function() {
+ function l(d) {
+ u(this, l), this._headers = null, this.formatterOptions = d, d.headers !== null && (this.headers = d.headers), this.REPLACE_REGEXP = new RegExp(d.quote, "g");
+ var s = "[".concat(d.delimiter).concat(y.default(d.rowDelimiter), `|\r|
+']`);
+ this.ESCAPE_REGEXP = new RegExp(s);
+ }
+ return g(l, [{
+ key: "shouldQuote",
+ value: function(s, v) {
+ var c = v ? this.formatterOptions.quoteHeaders : this.formatterOptions.quoteColumns;
+ return w.default(c) ? c : Array.isArray(c) ? c[s] : this._headers !== null ? c[this._headers[s]] : !1;
+ }
+ }, {
+ key: "format",
+ value: function(s, v, c) {
+ var a = "".concat(f.default(s) ? "" : s).replace(/\0/g, ""), r = this.formatterOptions;
+ if (r.quote !== "") {
+ var t = a.indexOf(r.quote) !== -1;
+ if (t)
+ return this.quoteField(a.replace(this.REPLACE_REGEXP, r.escapedQuote));
+ }
+ var i = a.search(this.ESCAPE_REGEXP) !== -1;
+ return i || this.shouldQuote(v, c) ? this.quoteField(a) : a;
+ }
+ }, {
+ key: "quoteField",
+ value: function(s) {
+ var v = this.formatterOptions.quote;
+ return "".concat(v).concat(s).concat(v);
+ }
+ }, {
+ key: "headers",
+ set: function(s) {
+ this._headers = s;
+ }
+ }]), l;
+ }();
+ _.FieldFormatter = h;
+ }, { "lodash.escaperegexp": 426, "lodash.isboolean": 428, "lodash.isnil": 431 }], 146: [function(e, x, _) {
+ function u(d, s) {
+ if (!(d instanceof s))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(d, s) {
+ for (var v = 0; v < s.length; v++) {
+ var c = s[v];
+ c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c);
+ }
+ }
+ function g(d, s, v) {
+ return s && m(d.prototype, s), v && m(d, v), d;
+ }
+ var b = function(d) {
+ return d && d.__esModule ? d : {
+ default: d
+ };
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.RowFormatter = void 0;
+ var w = b(e("lodash.isfunction")), f = b(e("lodash.isequal")), y = e("./FieldFormatter"), h = e("../types"), l = /* @__PURE__ */ function() {
+ function d(s) {
+ u(this, d), this.rowCount = 0, this.formatterOptions = s, this.fieldFormatter = new y.FieldFormatter(s), this.headers = s.headers, this.shouldWriteHeaders = s.shouldWriteHeaders, this.hasWrittenHeaders = !1, this.headers !== null && (this.fieldFormatter.headers = this.headers), s.transform && (this.rowTransform = s.transform);
+ }
+ return g(d, [{
+ key: "format",
+ value: function(v, c) {
+ var a = this;
+ this.callTransformer(v, function(r, t) {
+ if (r)
+ return c(r);
+ if (!v)
+ return c(null);
+ var i = [];
+ if (t) {
+ var n = a.checkHeaders(t), o = n.shouldFormatColumns, p = n.headers;
+ if (a.shouldWriteHeaders && p && !a.hasWrittenHeaders && (i.push(a.formatColumns(p, !0)), a.hasWrittenHeaders = !0), o) {
+ var O = a.gatherColumns(t);
+ i.push(a.formatColumns(O, !1));
+ }
+ }
+ return c(null, i);
+ });
+ }
+ }, {
+ key: "finish",
+ value: function(v) {
+ var c = [];
+ if (this.formatterOptions.alwaysWriteHeaders && this.rowCount === 0) {
+ if (!this.headers)
+ return v(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));
+ c.push(this.formatColumns(this.headers, !0));
+ }
+ return this.formatterOptions.includeEndRowDelimiter && c.push(this.formatterOptions.rowDelimiter), v(null, c);
+ }
+ // check if we need to write header return true if we should also write a row
+ // could be false if headers is true and the header row(first item) is passed in
+ }, {
+ key: "checkHeaders",
+ value: function(v) {
+ if (this.headers)
+ return {
+ shouldFormatColumns: !0,
+ headers: this.headers
+ };
+ var c = d.gatherHeaders(v);
+ return this.headers = c, this.fieldFormatter.headers = c, this.shouldWriteHeaders ? {
+ shouldFormatColumns: !f.default(c, v),
+ headers: c
+ } : {
+ shouldFormatColumns: !0,
+ headers: null
+ };
+ }
+ // todo change this method to unknown[]
+ }, {
+ key: "gatherColumns",
+ value: function(v) {
+ if (this.headers === null)
+ throw new Error("Headers is currently null");
+ return Array.isArray(v) ? d.isHashArray(v) ? this.headers.map(function(c, a) {
+ var r = v[a];
+ return r ? r[1] : "";
+ }) : this.headers.map(function(c, a) {
+ return v[a];
+ }) : this.headers.map(function(c) {
+ return v[c];
+ });
+ }
+ }, {
+ key: "callTransformer",
+ value: function(v, c) {
+ return this._rowTransform ? this._rowTransform(v, c) : c(null, v);
+ }
+ }, {
+ key: "formatColumns",
+ value: function(v, c) {
+ var a = this, r = v.map(function(i, n) {
+ return a.fieldFormatter.format(i, n, c);
+ }).join(this.formatterOptions.delimiter), t = this.rowCount;
+ return this.rowCount += 1, t ? [this.formatterOptions.rowDelimiter, r].join("") : r;
+ }
+ }, {
+ key: "rowTransform",
+ set: function(v) {
+ if (!w.default(v))
+ throw new TypeError("The transform should be a function");
+ this._rowTransform = d.createTransform(v);
+ }
+ }], [{
+ key: "isHashArray",
+ value: function(v) {
+ return Array.isArray(v) ? Array.isArray(v[0]) && v[0].length === 2 : !1;
+ }
+ // get headers from a row item
+ }, {
+ key: "gatherHeaders",
+ value: function(v) {
+ return d.isHashArray(v) ? v.map(function(c) {
+ return c[0];
+ }) : Array.isArray(v) ? v : Object.keys(v);
+ }
+ }, {
+ key: "createTransform",
+ value: function(v) {
+ return h.isSyncTransform(v) ? function(c, a) {
+ var r = null;
+ try {
+ r = v(c);
+ } catch (t) {
+ return a(t);
+ }
+ return a(null, r);
+ } : function(c, a) {
+ v(c, a);
+ };
+ }
+ }]), d;
+ }();
+ _.RowFormatter = l;
+ }, { "../types": 149, "./FieldFormatter": 145, "lodash.isequal": 429, "lodash.isfunction": 430 }], 147: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var u = e("./RowFormatter");
+ Object.defineProperty(_, "RowFormatter", {
+ enumerable: !0,
+ get: function() {
+ return u.RowFormatter;
+ }
+ });
+ var m = e("./FieldFormatter");
+ Object.defineProperty(_, "FieldFormatter", {
+ enumerable: !0,
+ get: function() {
+ return m.FieldFormatter;
+ }
+ });
+ }, { "./FieldFormatter": 145, "./RowFormatter": 146 }], 148: [function(e, x, _) {
+ (function(u) {
+ var m = Object.create ? function(c, a, r, t) {
+ t === void 0 && (t = r), Object.defineProperty(c, t, {
+ enumerable: !0,
+ get: function() {
+ return a[r];
+ }
+ });
+ } : function(c, a, r, t) {
+ t === void 0 && (t = r), c[t] = a[r];
+ }, g = Object.create ? function(c, a) {
+ Object.defineProperty(c, "default", {
+ enumerable: !0,
+ value: a
+ });
+ } : function(c, a) {
+ c.default = a;
+ }, b = function(c) {
+ if (c && c.__esModule)
+ return c;
+ var a = {};
+ if (c != null)
+ for (var r in c)
+ r !== "default" && Object.hasOwnProperty.call(c, r) && m(a, c, r);
+ return g(a, c), a;
+ }, w = function(c, a) {
+ for (var r in c)
+ r !== "default" && !a.hasOwnProperty(r) && m(a, c, r);
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.writeToPath = _.writeToString = _.writeToBuffer = _.writeToStream = _.write = _.format = void 0;
+ var f = e("util"), y = e("stream"), h = b(e("fs")), l = e("./FormatterOptions"), d = e("./CsvFormatterStream");
+ w(e("./types"), _);
+ var s = e("./CsvFormatterStream");
+ Object.defineProperty(_, "CsvFormatterStream", {
+ enumerable: !0,
+ get: function() {
+ return s.CsvFormatterStream;
+ }
+ });
+ var v = e("./FormatterOptions");
+ Object.defineProperty(_, "FormatterOptions", {
+ enumerable: !0,
+ get: function() {
+ return v.FormatterOptions;
+ }
+ }), _.format = function(c) {
+ return new d.CsvFormatterStream(new l.FormatterOptions(c));
+ }, _.write = function(c, a) {
+ var r = _.format(a), t = f.promisify(function(i, n) {
+ r.write(i, void 0, n);
+ });
+ return c.reduce(function(i, n) {
+ return i.then(function() {
+ return t(n);
+ });
+ }, Promise.resolve()).then(function() {
+ return r.end();
+ }).catch(function(i) {
+ r.emit("error", i);
+ }), r;
+ }, _.writeToStream = function(c, a, r) {
+ return _.write(a, r).pipe(c);
+ }, _.writeToBuffer = function(c) {
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], t = new y.Writable({
+ write: function(n, o, p) {
+ r.push(n), p();
+ }
+ });
+ return new Promise(function(i, n) {
+ t.on("error", n).on("finish", function() {
+ return i(u.concat(r));
+ }), _.write(c, a).pipe(t);
+ });
+ }, _.writeToString = function(c, a) {
+ return _.writeToBuffer(c, a).then(function(r) {
+ return r.toString();
+ });
+ }, _.writeToPath = function(c, a, r) {
+ var t = h.createWriteStream(c, {
+ encoding: "utf8"
+ });
+ return _.write(a, r).pipe(t);
+ };
+ }).call(this, e("buffer").Buffer);
+ }, { "./CsvFormatterStream": 143, "./FormatterOptions": 144, "./types": 149, buffer: 216, fs: 215, stream: 506, util: 525 }], 149: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.isSyncTransform = void 0, _.isSyncTransform = function(u) {
+ return u.length === 1;
+ };
+ }, {}], 150: [function(e, x, _) {
+ (function(u) {
+ function m(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(P) {
+ return typeof P;
+ } : m = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, m(p);
+ }
+ function g(p, O) {
+ if (!(p instanceof O))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function b(p, O) {
+ for (var P = 0; P < O.length; P++) {
+ var F = O[P];
+ F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F);
+ }
+ }
+ function w(p, O, P) {
+ return O && b(p.prototype, O), P && b(p, P), p;
+ }
+ function f(p, O, P) {
+ return typeof Reflect != "undefined" && Reflect.get ? f = Reflect.get : f = function(z, N, M) {
+ var I = y(z, N);
+ if (I) {
+ var R = Object.getOwnPropertyDescriptor(I, N);
+ return R.get ? R.get.call(M) : R.value;
+ }
+ }, f(p, O, P || p);
+ }
+ function y(p, O) {
+ for (; !Object.prototype.hasOwnProperty.call(p, O) && (p = a(p), p !== null); )
+ ;
+ return p;
+ }
+ function h(p, O) {
+ if (typeof O != "function" && O !== null)
+ throw new TypeError("Super expression must either be null or a function");
+ p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && l(p, O);
+ }
+ function l(p, O) {
+ return l = Object.setPrototypeOf || function(F, z) {
+ return F.__proto__ = z, F;
+ }, l(p, O);
+ }
+ function d(p) {
+ var O = c();
+ return function() {
+ var F = a(p), z;
+ if (O) {
+ var N = a(this).constructor;
+ z = Reflect.construct(F, arguments, N);
+ } else
+ z = F.apply(this, arguments);
+ return s(this, z);
+ };
+ }
+ function s(p, O) {
+ return O && (m(O) === "object" || typeof O == "function") ? O : v(p);
+ }
+ function v(p) {
+ if (p === void 0)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return p;
+ }
+ function c() {
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
+ return !1;
+ if (typeof Proxy == "function")
+ return !0;
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
+ })), !0;
+ } catch (p) {
+ return !1;
+ }
+ }
+ function a(p) {
+ return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) {
+ return P.__proto__ || Object.getPrototypeOf(P);
+ }, a(p);
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.CsvParserStream = void 0;
+ var r = e("string_decoder"), t = e("stream"), i = e("./transforms"), n = e("./parser"), o = /* @__PURE__ */ function(p) {
+ h(P, p);
+ var O = d(P);
+ function P(F) {
+ var z;
+ return g(this, P), z = O.call(this, {
+ objectMode: F.objectMode
+ }), z.lines = "", z.rowCount = 0, z.parsedRowCount = 0, z.parsedLineCount = 0, z.endEmitted = !1, z.headersEmitted = !1, z.parserOptions = F, z.parser = new n.Parser(F), z.headerTransformer = new i.HeaderTransformer(F), z.decoder = new r.StringDecoder(F.encoding), z.rowTransformerValidator = new i.RowTransformerValidator(), z;
+ }
+ return w(P, [{
+ key: "transform",
+ value: function(z) {
+ return this.rowTransformerValidator.rowTransform = z, this;
+ }
+ }, {
+ key: "validate",
+ value: function(z) {
+ return this.rowTransformerValidator.rowValidator = z, this;
+ }
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ }, {
+ key: "emit",
+ value: function(z) {
+ var N;
+ if (z === "end")
+ return this.endEmitted || (this.endEmitted = !0, f(a(P.prototype), "emit", this).call(this, "end", this.rowCount)), !1;
+ for (var M = arguments.length, I = new Array(M > 1 ? M - 1 : 0), R = 1; R < M; R++)
+ I[R - 1] = arguments[R];
+ return (N = f(a(P.prototype), "emit", this)).call.apply(N, [this, z].concat(I));
+ }
+ }, {
+ key: "_transform",
+ value: function(z, N, M) {
+ if (this.hasHitRowLimit)
+ return M();
+ try {
+ var I = this.lines, R = I + this.decoder.write(z), C = this.parse(R, !0);
+ return this.processRows(C, M);
+ } catch (E) {
+ return M(E);
+ }
+ }
+ }, {
+ key: "_flush",
+ value: function(z) {
+ if (this.hasHitRowLimit)
+ return z();
+ try {
+ var N = this.lines + this.decoder.end(), M = this.parse(N, !1);
+ return this.processRows(M, z);
+ } catch (I) {
+ return z(I);
+ }
+ }
+ }, {
+ key: "parse",
+ value: function(z, N) {
+ if (!z)
+ return [];
+ var M = this.parser.parse(z, N), I = M.line, R = M.rows;
+ return this.lines = I, R;
+ }
+ }, {
+ key: "processRows",
+ value: function(z, N) {
+ var M = this, I = z.length, R = function C(E) {
+ var A = function(U) {
+ if (U)
+ return N(U);
+ if (E % 100 === 0) {
+ u(function() {
+ return C(E + 1);
+ });
+ return;
+ }
+ return C(E + 1);
+ };
+ if (M.checkAndEmitHeaders(), E >= I || M.hasHitRowLimit)
+ return N();
+ if (M.parsedLineCount += 1, M.shouldSkipLine)
+ return A();
+ var L = z[E];
+ M.rowCount += 1, M.parsedRowCount += 1;
+ var $ = M.rowCount;
+ return M.transformRow(L, function(W, U) {
+ if (W)
+ return M.rowCount -= 1, A(W);
+ if (!U)
+ return A(new Error("expected transform result"));
+ if (!U.isValid)
+ M.emit("data-invalid", U.row, $, U.reason);
+ else if (U.row)
+ return M.pushRow(U.row, A);
+ return A();
+ });
+ };
+ R(0);
+ }
+ }, {
+ key: "transformRow",
+ value: function(z, N) {
+ var M = this;
+ try {
+ this.headerTransformer.transform(z, function(I, R) {
+ return I ? N(I) : R ? R.isValid ? R.row ? M.shouldEmitRows ? M.rowTransformerValidator.transformAndValidate(R.row, N) : M.skipRow(N) : (M.rowCount -= 1, M.parsedRowCount -= 1, N(null, {
+ row: null,
+ isValid: !0
+ })) : M.shouldEmitRows ? N(null, {
+ isValid: !1,
+ row: z
+ }) : M.skipRow(N) : N(new Error("Expected result from header transform"));
+ });
+ } catch (I) {
+ N(I);
+ }
+ }
+ }, {
+ key: "checkAndEmitHeaders",
+ value: function() {
+ !this.headersEmitted && this.headerTransformer.headers && (this.headersEmitted = !0, this.emit("headers", this.headerTransformer.headers));
+ }
+ }, {
+ key: "skipRow",
+ value: function(z) {
+ return this.rowCount -= 1, z(null, {
+ row: null,
+ isValid: !0
+ });
+ }
+ }, {
+ key: "pushRow",
+ value: function(z, N) {
+ try {
+ this.parserOptions.objectMode ? this.push(z) : this.push(JSON.stringify(z)), N();
+ } catch (M) {
+ N(M);
+ }
+ }
+ }, {
+ key: "hasHitRowLimit",
+ get: function() {
+ return this.parserOptions.limitRows && this.rowCount >= this.parserOptions.maxRows;
+ }
+ }, {
+ key: "shouldEmitRows",
+ get: function() {
+ return this.parsedRowCount > this.parserOptions.skipRows;
+ }
+ }, {
+ key: "shouldSkipLine",
+ get: function() {
+ return this.parsedLineCount <= this.parserOptions.skipLines;
+ }
+ }]), P;
+ }(t.Transform);
+ _.CsvParserStream = o;
+ }).call(this, e("timers").setImmediate);
+ }, { "./parser": 162, "./transforms": 165, stream: 506, string_decoder: 520, timers: 521 }], 151: [function(e, x, _) {
+ function u(f, y) {
+ if (!(f instanceof y))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ var m = function(f) {
+ return f && f.__esModule ? f : {
+ default: f
+ };
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.ParserOptions = void 0;
+ var g = m(e("lodash.escaperegexp")), b = m(e("lodash.isnil")), w = function f(y) {
+ u(this, f);
+ var h;
+ if (this.objectMode = !0, this.delimiter = ",", this.ignoreEmpty = !1, this.quote = '"', this.escape = null, this.escapeChar = this.quote, this.comment = null, this.supportsComments = !1, this.ltrim = !1, this.rtrim = !1, this.trim = !1, this.headers = null, this.renameHeaders = !1, this.strictColumnHandling = !1, this.discardUnmappedColumns = !1, this.carriageReturn = "\r", this.encoding = "utf8", this.limitRows = !1, this.maxRows = 0, this.skipLines = 0, this.skipRows = 0, Object.assign(this, y || {}), this.delimiter.length > 1)
+ throw new Error("delimiter option must be one character long");
+ this.escapedDelimiter = g.default(this.delimiter), this.escapeChar = (h = this.escape) !== null && h !== void 0 ? h : this.quote, this.supportsComments = !b.default(this.comment), this.NEXT_TOKEN_REGEXP = new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter, ")")), this.maxRows > 0 && (this.limitRows = !0);
+ };
+ _.ParserOptions = w;
+ }, { "lodash.escaperegexp": 426, "lodash.isnil": 431 }], 152: [function(e, x, _) {
+ var u = Object.create ? function(s, v, c, a) {
+ a === void 0 && (a = c), Object.defineProperty(s, a, {
+ enumerable: !0,
+ get: function() {
+ return v[c];
+ }
+ });
+ } : function(s, v, c, a) {
+ a === void 0 && (a = c), s[a] = v[c];
+ }, m = Object.create ? function(s, v) {
+ Object.defineProperty(s, "default", {
+ enumerable: !0,
+ value: v
+ });
+ } : function(s, v) {
+ s.default = v;
+ }, g = function(s) {
+ if (s && s.__esModule)
+ return s;
+ var v = {};
+ if (s != null)
+ for (var c in s)
+ c !== "default" && Object.hasOwnProperty.call(s, c) && u(v, s, c);
+ return m(v, s), v;
+ }, b = function(s, v) {
+ for (var c in s)
+ c !== "default" && !v.hasOwnProperty(c) && u(v, s, c);
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.parseString = _.parseFile = _.parseStream = _.parse = void 0;
+ var w = g(e("fs")), f = e("stream"), y = e("./ParserOptions"), h = e("./CsvParserStream");
+ b(e("./types"), _);
+ var l = e("./CsvParserStream");
+ Object.defineProperty(_, "CsvParserStream", {
+ enumerable: !0,
+ get: function() {
+ return l.CsvParserStream;
+ }
+ });
+ var d = e("./ParserOptions");
+ Object.defineProperty(_, "ParserOptions", {
+ enumerable: !0,
+ get: function() {
+ return d.ParserOptions;
+ }
+ }), _.parse = function(s) {
+ return new h.CsvParserStream(new y.ParserOptions(s));
+ }, _.parseStream = function(s, v) {
+ return s.pipe(new h.CsvParserStream(new y.ParserOptions(v)));
+ }, _.parseFile = function(s) {
+ var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
+ return w.createReadStream(s).pipe(new h.CsvParserStream(new y.ParserOptions(v)));
+ }, _.parseString = function(s, v) {
+ var c = new f.Readable();
+ return c.push(s), c.push(null), c.pipe(new h.CsvParserStream(new y.ParserOptions(v)));
+ };
+ }, { "./CsvParserStream": 150, "./ParserOptions": 151, "./types": 166, fs: 215, stream: 506 }], 153: [function(e, x, _) {
+ function u(l, d) {
+ if (!(l instanceof d))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(l, d) {
+ for (var s = 0; s < d.length; s++) {
+ var v = d[s];
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v);
+ }
+ }
+ function g(l, d, s) {
+ return d && m(l.prototype, d), s && m(l, s), l;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.Parser = void 0;
+ var b = e("./Scanner"), w = e("./RowParser"), f = e("./Token"), y = /^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/, h = /* @__PURE__ */ function() {
+ function l(d) {
+ u(this, l), this.parserOptions = d, this.rowParser = new w.RowParser(this.parserOptions);
+ }
+ return g(l, [{
+ key: "parse",
+ value: function(s, v) {
+ var c = new b.Scanner({
+ line: l.removeBOM(s),
+ parserOptions: this.parserOptions,
+ hasMoreData: v
+ });
+ return this.parserOptions.supportsComments ? this.parseWithComments(c) : this.parseWithoutComments(c);
+ }
+ }, {
+ key: "parseWithoutComments",
+ value: function(s) {
+ for (var v = [], c = !0; c; )
+ c = this.parseRow(s, v);
+ return {
+ line: s.line,
+ rows: v
+ };
+ }
+ }, {
+ key: "parseWithComments",
+ value: function(s) {
+ for (var v = this.parserOptions, c = [], a = s.nextCharacterToken; a !== null; a = s.nextCharacterToken)
+ if (f.Token.isTokenComment(a, v)) {
+ var r = s.advancePastLine();
+ if (r === null)
+ return {
+ line: s.lineFromCursor,
+ rows: c
+ };
+ if (!s.hasMoreCharacters)
+ return {
+ line: s.lineFromCursor,
+ rows: c
+ };
+ s.truncateToCursor();
+ } else if (!this.parseRow(s, c))
+ break;
+ return {
+ line: s.line,
+ rows: c
+ };
+ }
+ }, {
+ key: "parseRow",
+ value: function(s, v) {
+ var c = s.nextNonSpaceToken;
+ if (!c)
+ return !1;
+ var a = this.rowParser.parse(s);
+ return a === null ? !1 : (this.parserOptions.ignoreEmpty && y.test(a.join("")) || v.push(a), !0);
+ }
+ }], [{
+ key: "removeBOM",
+ value: function(s) {
+ return s && s.charCodeAt(0) === 65279 ? s.slice(1) : s;
+ }
+ }]), l;
+ }();
+ _.Parser = h;
+ }, { "./RowParser": 154, "./Scanner": 155, "./Token": 156 }], 154: [function(e, x, _) {
+ function u(s, v) {
+ if (!(s instanceof v))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(s, v) {
+ for (var c = 0; c < v.length; c++) {
+ var a = v[c];
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(s, a.key, a);
+ }
+ }
+ function g(s, v, c) {
+ return v && m(s.prototype, v), c && m(s, c), s;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.RowParser = void 0;
+ var b = e("./column"), w = e("./Token"), f = w.Token, y = f.isTokenRowDelimiter, h = f.isTokenCarriageReturn, l = f.isTokenDelimiter, d = /* @__PURE__ */ function() {
+ function s(v) {
+ u(this, s), this.parserOptions = v, this.columnParser = new b.ColumnParser(v);
+ }
+ return g(s, [{
+ key: "parse",
+ value: function(c) {
+ for (var a = this.parserOptions, r = c.hasMoreData, t = c, i = [], n = this.getStartToken(t, i); n; ) {
+ if (y(n))
+ return t.advancePastToken(n), !t.hasMoreCharacters && h(n, a) && r ? null : (t.truncateToCursor(), i);
+ if (!this.shouldSkipColumnParse(t, n, i)) {
+ var o = this.columnParser.parse(t);
+ if (o === null)
+ return null;
+ i.push(o);
+ }
+ n = t.nextNonSpaceToken;
+ }
+ return r ? null : (t.truncateToCursor(), i);
+ }
+ }, {
+ key: "getStartToken",
+ value: function(c, a) {
+ var r = c.nextNonSpaceToken;
+ return r !== null && l(r, this.parserOptions) ? (a.push(""), c.nextNonSpaceToken) : r;
+ }
+ }, {
+ key: "shouldSkipColumnParse",
+ value: function(c, a, r) {
+ var t = this.parserOptions;
+ if (l(a, t)) {
+ c.advancePastToken(a);
+ var i = c.nextCharacterToken;
+ if (!c.hasMoreCharacters || i !== null && y(i) || i !== null && l(i, t))
+ return r.push(""), !0;
+ }
+ return !1;
+ }
+ }]), s;
+ }();
+ _.RowParser = d;
+ }, { "./Token": 156, "./column": 161 }], 155: [function(e, x, _) {
+ function u(y, h) {
+ if (!(y instanceof h))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(y, h) {
+ for (var l = 0; l < h.length; l++) {
+ var d = h[l];
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d);
+ }
+ }
+ function g(y, h, l) {
+ return h && m(y.prototype, h), l && m(y, l), y;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.Scanner = void 0;
+ var b = e("./Token"), w = /((?:\r\n)|\n|\r)/, f = /* @__PURE__ */ function() {
+ function y(h) {
+ u(this, y), this.cursor = 0, this.line = h.line, this.lineLength = this.line.length, this.parserOptions = h.parserOptions, this.hasMoreData = h.hasMoreData, this.cursor = h.cursor || 0;
+ }
+ return g(y, [{
+ key: "advancePastLine",
+ value: function() {
+ var l = w.exec(this.lineFromCursor);
+ return l ? (this.cursor += (l.index || 0) + l[0].length, this) : this.hasMoreData ? null : (this.cursor = this.lineLength, this);
+ }
+ }, {
+ key: "advanceTo",
+ value: function(l) {
+ return this.cursor = l, this;
+ }
+ }, {
+ key: "advanceToToken",
+ value: function(l) {
+ return this.cursor = l.startCursor, this;
+ }
+ }, {
+ key: "advancePastToken",
+ value: function(l) {
+ return this.cursor = l.endCursor + 1, this;
+ }
+ }, {
+ key: "truncateToCursor",
+ value: function() {
+ return this.line = this.lineFromCursor, this.lineLength = this.line.length, this.cursor = 0, this;
+ }
+ }, {
+ key: "hasMoreCharacters",
+ get: function() {
+ return this.lineLength > this.cursor;
+ }
+ }, {
+ key: "nextNonSpaceToken",
+ get: function() {
+ var l = this.lineFromCursor, d = this.parserOptions.NEXT_TOKEN_REGEXP;
+ if (l.search(d) === -1)
+ return null;
+ var s = d.exec(l);
+ if (s == null)
+ return null;
+ var v = s[1], c = this.cursor + (s.index || 0);
+ return new b.Token({
+ token: v,
+ startCursor: c,
+ endCursor: c + v.length - 1
+ });
+ }
+ }, {
+ key: "nextCharacterToken",
+ get: function() {
+ var l = this.cursor, d = this.lineLength;
+ return d <= l ? null : new b.Token({
+ token: this.line[l],
+ startCursor: l,
+ endCursor: l
+ });
+ }
+ }, {
+ key: "lineFromCursor",
+ get: function() {
+ return this.line.substr(this.cursor);
+ }
+ }]), y;
+ }();
+ _.Scanner = f;
+ }, { "./Token": 156 }], 156: [function(e, x, _) {
+ function u(w, f) {
+ if (!(w instanceof f))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(w, f) {
+ for (var y = 0; y < f.length; y++) {
+ var h = f[y];
+ h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(w, h.key, h);
+ }
+ }
+ function g(w, f, y) {
+ return f && m(w.prototype, f), y && m(w, y), w;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.Token = void 0;
+ var b = /* @__PURE__ */ function() {
+ function w(f) {
+ u(this, w), this.token = f.token, this.startCursor = f.startCursor, this.endCursor = f.endCursor;
+ }
+ return g(w, null, [{
+ key: "isTokenRowDelimiter",
+ value: function(y) {
+ var h = y.token;
+ return h === "\r" || h === `
+` || h === `\r
+`;
+ }
+ }, {
+ key: "isTokenCarriageReturn",
+ value: function(y, h) {
+ return y.token === h.carriageReturn;
+ }
+ }, {
+ key: "isTokenComment",
+ value: function(y, h) {
+ return h.supportsComments && !!y && y.token === h.comment;
+ }
+ }, {
+ key: "isTokenEscapeCharacter",
+ value: function(y, h) {
+ return y.token === h.escapeChar;
+ }
+ }, {
+ key: "isTokenQuote",
+ value: function(y, h) {
+ return y.token === h.quote;
+ }
+ }, {
+ key: "isTokenDelimiter",
+ value: function(y, h) {
+ return y.token === h.delimiter;
+ }
+ }]), w;
+ }();
+ _.Token = b;
+ }, {}], 157: [function(e, x, _) {
+ function u(g, b) {
+ if (!(g instanceof b))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.ColumnFormatter = void 0;
+ var m = function g(b) {
+ u(this, g), b.trim ? this.format = function(w) {
+ return w.trim();
+ } : b.ltrim ? this.format = function(w) {
+ return w.trimLeft();
+ } : b.rtrim ? this.format = function(w) {
+ return w.trimRight();
+ } : this.format = function(w) {
+ return w;
+ };
+ };
+ _.ColumnFormatter = m;
+ }, {}], 158: [function(e, x, _) {
+ function u(h, l) {
+ if (!(h instanceof l))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(h, l) {
+ for (var d = 0; d < l.length; d++) {
+ var s = l[d];
+ s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(h, s.key, s);
+ }
+ }
+ function g(h, l, d) {
+ return l && m(h.prototype, l), d && m(h, d), h;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.ColumnParser = void 0;
+ var b = e("./NonQuotedColumnParser"), w = e("./QuotedColumnParser"), f = e("../Token"), y = /* @__PURE__ */ function() {
+ function h(l) {
+ u(this, h), this.parserOptions = l, this.quotedColumnParser = new w.QuotedColumnParser(l), this.nonQuotedColumnParser = new b.NonQuotedColumnParser(l);
+ }
+ return g(h, [{
+ key: "parse",
+ value: function(d) {
+ var s = d.nextNonSpaceToken;
+ return s !== null && f.Token.isTokenQuote(s, this.parserOptions) ? (d.advanceToToken(s), this.quotedColumnParser.parse(d)) : this.nonQuotedColumnParser.parse(d);
+ }
+ }]), h;
+ }();
+ _.ColumnParser = y;
+ }, { "../Token": 156, "./NonQuotedColumnParser": 159, "./QuotedColumnParser": 160 }], 159: [function(e, x, _) {
+ function u(d, s) {
+ if (!(d instanceof s))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(d, s) {
+ for (var v = 0; v < s.length; v++) {
+ var c = s[v];
+ c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c);
+ }
+ }
+ function g(d, s, v) {
+ return s && m(d.prototype, s), v && m(d, v), d;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.NonQuotedColumnParser = void 0;
+ var b = e("./ColumnFormatter"), w = e("../Token"), f = w.Token, y = f.isTokenDelimiter, h = f.isTokenRowDelimiter, l = /* @__PURE__ */ function() {
+ function d(s) {
+ u(this, d), this.parserOptions = s, this.columnFormatter = new b.ColumnFormatter(s);
+ }
+ return g(d, [{
+ key: "parse",
+ value: function(v) {
+ if (!v.hasMoreCharacters)
+ return null;
+ for (var c = this.parserOptions, a = [], r = v.nextCharacterToken; r && !(y(r, c) || h(r)); r = v.nextCharacterToken)
+ a.push(r.token), v.advancePastToken(r);
+ return this.columnFormatter.format(a.join(""));
+ }
+ }]), d;
+ }();
+ _.NonQuotedColumnParser = l;
+ }, { "../Token": 156, "./ColumnFormatter": 157 }], 160: [function(e, x, _) {
+ function u(v, c) {
+ if (!(v instanceof c))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(v, c) {
+ for (var a = 0; a < c.length; a++) {
+ var r = c[a];
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(v, r.key, r);
+ }
+ }
+ function g(v, c, a) {
+ return c && m(v.prototype, c), a && m(v, a), v;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.QuotedColumnParser = void 0;
+ var b = e("./ColumnFormatter"), w = e("../Token"), f = w.Token, y = f.isTokenDelimiter, h = f.isTokenRowDelimiter, l = f.isTokenEscapeCharacter, d = f.isTokenQuote, s = /* @__PURE__ */ function() {
+ function v(c) {
+ u(this, v), this.parserOptions = c, this.columnFormatter = new b.ColumnFormatter(c);
+ }
+ return g(v, [{
+ key: "parse",
+ value: function(a) {
+ if (!a.hasMoreCharacters)
+ return null;
+ var r = a.cursor, t = this.gatherDataBetweenQuotes(a), i = t.foundClosingQuote, n = t.col;
+ if (!i) {
+ if (a.advanceTo(r), !a.hasMoreData)
+ throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote || "", "' in line: at '").concat(a.lineFromCursor.replace(/[\r\n]/g, "\\n'"), "'"));
+ return null;
+ }
+ return this.checkForMalformedColumn(a), n;
+ }
+ }, {
+ key: "gatherDataBetweenQuotes",
+ value: function(a) {
+ for (var r = this.parserOptions, t = !1, i = !1, n = [], o = a.nextCharacterToken; !i && o !== null; o = a.nextCharacterToken) {
+ var p = d(o, r);
+ if (!t && p)
+ t = !0;
+ else if (t)
+ if (l(o, r)) {
+ a.advancePastToken(o);
+ var O = a.nextCharacterToken;
+ O !== null && (d(O, r) || l(O, r)) ? (n.push(O.token), o = O) : p ? i = !0 : n.push(o.token);
+ } else
+ p ? i = !0 : n.push(o.token);
+ a.advancePastToken(o);
+ }
+ return {
+ col: this.columnFormatter.format(n.join("")),
+ foundClosingQuote: i
+ };
+ }
+ }, {
+ key: "checkForMalformedColumn",
+ value: function(a) {
+ var r = this.parserOptions, t = a.nextNonSpaceToken;
+ if (t) {
+ var i = y(t, r), n = h(t);
+ if (!(i || n)) {
+ var o = a.lineFromCursor.substr(0, 10).replace(/[\r\n]/g, "\\n'");
+ throw new Error("Parse Error: expected: '".concat(r.escapedDelimiter, "' OR new line got: '").concat(t.token, "'. at '").concat(o));
+ }
+ a.advanceToToken(t);
+ } else
+ a.hasMoreData || a.advancePastLine();
+ }
+ }]), v;
+ }();
+ _.QuotedColumnParser = s;
+ }, { "../Token": 156, "./ColumnFormatter": 157 }], 161: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var u = e("./ColumnParser");
+ Object.defineProperty(_, "ColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return u.ColumnParser;
+ }
+ });
+ var m = e("./NonQuotedColumnParser");
+ Object.defineProperty(_, "NonQuotedColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return m.NonQuotedColumnParser;
+ }
+ });
+ var g = e("./QuotedColumnParser");
+ Object.defineProperty(_, "QuotedColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return g.QuotedColumnParser;
+ }
+ });
+ var b = e("./ColumnFormatter");
+ Object.defineProperty(_, "ColumnFormatter", {
+ enumerable: !0,
+ get: function() {
+ return b.ColumnFormatter;
+ }
+ });
+ }, { "./ColumnFormatter": 157, "./ColumnParser": 158, "./NonQuotedColumnParser": 159, "./QuotedColumnParser": 160 }], 162: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var u = e("./Parser");
+ Object.defineProperty(_, "Parser", {
+ enumerable: !0,
+ get: function() {
+ return u.Parser;
+ }
+ });
+ var m = e("./RowParser");
+ Object.defineProperty(_, "RowParser", {
+ enumerable: !0,
+ get: function() {
+ return m.RowParser;
+ }
+ });
+ var g = e("./Scanner");
+ Object.defineProperty(_, "Scanner", {
+ enumerable: !0,
+ get: function() {
+ return g.Scanner;
+ }
+ });
+ var b = e("./Token");
+ Object.defineProperty(_, "Token", {
+ enumerable: !0,
+ get: function() {
+ return b.Token;
+ }
+ });
+ var w = e("./column");
+ Object.defineProperty(_, "ColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return w.ColumnParser;
+ }
+ }), Object.defineProperty(_, "NonQuotedColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return w.NonQuotedColumnParser;
+ }
+ }), Object.defineProperty(_, "QuotedColumnParser", {
+ enumerable: !0,
+ get: function() {
+ return w.QuotedColumnParser;
+ }
+ });
+ }, { "./Parser": 153, "./RowParser": 154, "./Scanner": 155, "./Token": 156, "./column": 161 }], 163: [function(e, x, _) {
+ function u(d, s) {
+ if (!(d instanceof s))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(d, s) {
+ for (var v = 0; v < s.length; v++) {
+ var c = s[v];
+ c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c);
+ }
+ }
+ function g(d, s, v) {
+ return s && m(d.prototype, s), v && m(d, v), d;
+ }
+ var b = function(d) {
+ return d && d.__esModule ? d : {
+ default: d
+ };
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.HeaderTransformer = void 0;
+ var w = b(e("lodash.isundefined")), f = b(e("lodash.isfunction")), y = b(e("lodash.uniq")), h = b(e("lodash.groupby")), l = /* @__PURE__ */ function() {
+ function d(s) {
+ u(this, d), this.headers = null, this.receivedHeaders = !1, this.shouldUseFirstRow = !1, this.processedFirstRow = !1, this.headersLength = 0, this.parserOptions = s, s.headers === !0 ? this.shouldUseFirstRow = !0 : Array.isArray(s.headers) ? this.setHeaders(s.headers) : f.default(s.headers) && (this.headersTransform = s.headers);
+ }
+ return g(d, [{
+ key: "transform",
+ value: function(v, c) {
+ return this.shouldMapRow(v) ? c(null, this.processRow(v)) : c(null, {
+ row: null,
+ isValid: !0
+ });
+ }
+ }, {
+ key: "shouldMapRow",
+ value: function(v) {
+ var c = this.parserOptions;
+ if (!this.headersTransform && c.renameHeaders && !this.processedFirstRow) {
+ if (!this.receivedHeaders)
+ throw new Error("Error renaming headers: new headers must be provided in an array");
+ return this.processedFirstRow = !0, !1;
+ }
+ if (!this.receivedHeaders && Array.isArray(v)) {
+ if (this.headersTransform)
+ this.setHeaders(this.headersTransform(v));
+ else if (this.shouldUseFirstRow)
+ this.setHeaders(v);
+ else
+ return !0;
+ return !1;
+ }
+ return !0;
+ }
+ }, {
+ key: "processRow",
+ value: function(v) {
+ if (!this.headers)
+ return {
+ row: v,
+ isValid: !0
+ };
+ var c = this.parserOptions;
+ if (!c.discardUnmappedColumns && v.length > this.headersLength) {
+ if (!c.strictColumnHandling)
+ throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length));
+ return {
+ row: v,
+ isValid: !1,
+ reason: "Column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length)
+ };
+ }
+ return c.strictColumnHandling && v.length < this.headersLength ? {
+ row: v,
+ isValid: !1,
+ reason: "Column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length)
+ } : {
+ row: this.mapHeaders(v),
+ isValid: !0
+ };
+ }
+ }, {
+ key: "mapHeaders",
+ value: function(v) {
+ for (var c = {}, a = this.headers, r = this.headersLength, t = 0; t < r; t += 1) {
+ var i = a[t];
+ if (!w.default(i)) {
+ var n = v[t];
+ w.default(n) ? c[i] = "" : c[i] = n;
+ }
+ }
+ return c;
+ }
+ }, {
+ key: "setHeaders",
+ value: function(v) {
+ var c, a = v.filter(function(i) {
+ return !!i;
+ });
+ if (y.default(a).length !== a.length) {
+ var r = h.default(a), t = Object.keys(r).filter(function(i) {
+ return r[i].length > 1;
+ });
+ throw new Error("Duplicate headers found ".concat(JSON.stringify(t)));
+ }
+ this.headers = v, this.receivedHeaders = !0, this.headersLength = ((c = this.headers) === null || c === void 0 ? void 0 : c.length) || 0;
+ }
+ }]), d;
+ }();
+ _.HeaderTransformer = l;
+ }, { "lodash.groupby": 427, "lodash.isfunction": 430, "lodash.isundefined": 432, "lodash.uniq": 433 }], 164: [function(e, x, _) {
+ function u(h, l) {
+ if (!(h instanceof l))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function m(h, l) {
+ for (var d = 0; d < l.length; d++) {
+ var s = l[d];
+ s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(h, s.key, s);
+ }
+ }
+ function g(h, l, d) {
+ return l && m(h.prototype, l), d && m(h, d), h;
+ }
+ var b = function(h) {
+ return h && h.__esModule ? h : {
+ default: h
+ };
+ };
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.RowTransformerValidator = void 0;
+ var w = b(e("lodash.isfunction")), f = e("../types"), y = /* @__PURE__ */ function() {
+ function h() {
+ u(this, h), this._rowTransform = null, this._rowValidator = null;
+ }
+ return g(h, [{
+ key: "transformAndValidate",
+ value: function(d, s) {
+ var v = this;
+ return this.callTransformer(d, function(c, a) {
+ return c ? s(c) : a ? v.callValidator(a, function(r, t) {
+ return r ? s(r) : t && !t.isValid ? s(null, {
+ row: a,
+ isValid: !1,
+ reason: t.reason
+ }) : s(null, {
+ row: a,
+ isValid: !0
+ });
+ }) : s(null, {
+ row: null,
+ isValid: !0
+ });
+ });
+ }
+ }, {
+ key: "callTransformer",
+ value: function(d, s) {
+ return this._rowTransform ? this._rowTransform(d, s) : s(null, d);
+ }
+ }, {
+ key: "callValidator",
+ value: function(d, s) {
+ return this._rowValidator ? this._rowValidator(d, s) : s(null, {
+ row: d,
+ isValid: !0
+ });
+ }
+ }, {
+ key: "rowTransform",
+ set: function(d) {
+ if (!w.default(d))
+ throw new TypeError("The transform should be a function");
+ this._rowTransform = h.createTransform(d);
+ }
+ }, {
+ key: "rowValidator",
+ set: function(d) {
+ if (!w.default(d))
+ throw new TypeError("The validate should be a function");
+ this._rowValidator = h.createValidator(d);
+ }
+ }], [{
+ key: "createTransform",
+ value: function(d) {
+ return f.isSyncTransform(d) ? function(s, v) {
+ var c = null;
+ try {
+ c = d(s);
+ } catch (a) {
+ return v(a);
+ }
+ return v(null, c);
+ } : d;
+ }
+ }, {
+ key: "createValidator",
+ value: function(d) {
+ return f.isSyncValidate(d) ? function(s, v) {
+ v(null, {
+ row: s,
+ isValid: d(s)
+ });
+ } : function(s, v) {
+ d(s, function(c, a, r) {
+ return c ? v(c) : a ? v(null, {
+ row: s,
+ isValid: a,
+ reason: r
+ }) : v(null, {
+ row: s,
+ isValid: !1,
+ reason: r
+ });
+ });
+ };
+ }
+ }]), h;
+ }();
+ _.RowTransformerValidator = y;
+ }, { "../types": 166, "lodash.isfunction": 430 }], 165: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var u = e("./RowTransformerValidator");
+ Object.defineProperty(_, "RowTransformerValidator", {
+ enumerable: !0,
+ get: function() {
+ return u.RowTransformerValidator;
+ }
+ });
+ var m = e("./HeaderTransformer");
+ Object.defineProperty(_, "HeaderTransformer", {
+ enumerable: !0,
+ get: function() {
+ return m.HeaderTransformer;
+ }
+ });
+ }, { "./HeaderTransformer": 163, "./RowTransformerValidator": 164 }], 166: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.isSyncValidate = _.isSyncTransform = void 0, _.isSyncTransform = function(u) {
+ return u.length === 1;
+ }, _.isSyncValidate = function(u) {
+ return u.length === 1;
+ };
+ }, {}], 167: [function(e, x, _) {
+ var u = _;
+ u.bignum = e("bn.js"), u.define = e("./asn1/api").define, u.base = e("./asn1/base"), u.constants = e("./asn1/constants"), u.decoders = e("./asn1/decoders"), u.encoders = e("./asn1/encoders");
+ }, { "./asn1/api": 168, "./asn1/base": 170, "./asn1/constants": 174, "./asn1/decoders": 176, "./asn1/encoders": 179, "bn.js": 181 }], 168: [function(e, x, _) {
+ var u = e("./encoders"), m = e("./decoders"), g = e("inherits"), b = _;
+ b.define = function(y, h) {
+ return new w(y, h);
+ };
+ function w(f, y) {
+ this.name = f, this.body = y, this.decoders = {}, this.encoders = {};
+ }
+ w.prototype._createNamed = function(y) {
+ var h = this.name;
+ function l(d) {
+ this._initNamed(d, h);
+ }
+ return g(l, y), l.prototype._initNamed = function(s, v) {
+ y.call(this, s, v);
+ }, new l(this);
+ }, w.prototype._getDecoder = function(y) {
+ return y = y || "der", this.decoders.hasOwnProperty(y) || (this.decoders[y] = this._createNamed(m[y])), this.decoders[y];
+ }, w.prototype.decode = function(y, h, l) {
+ return this._getDecoder(h).decode(y, l);
+ }, w.prototype._getEncoder = function(y) {
+ return y = y || "der", this.encoders.hasOwnProperty(y) || (this.encoders[y] = this._createNamed(u[y])), this.encoders[y];
+ }, w.prototype.encode = function(y, h, l) {
+ return this._getEncoder(h).encode(y, l);
+ };
+ }, { "./decoders": 176, "./encoders": 179, inherits: 387 }], 169: [function(e, x, _) {
+ function u(y) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) {
+ return typeof l;
+ } : u = function(l) {
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
+ }, u(y);
+ }
+ var m = e("inherits"), g = e("../base/reporter").Reporter, b = e("safer-buffer").Buffer;
+ function w(y, h) {
+ if (g.call(this, h), !b.isBuffer(y)) {
+ this.error("Input not Buffer");
+ return;
+ }
+ this.base = y, this.offset = 0, this.length = y.length;
+ }
+ m(w, g), _.DecoderBuffer = w, w.isDecoderBuffer = function(h) {
+ if (h instanceof w)
+ return !0;
+ var l = u(h) === "object" && b.isBuffer(h.base) && h.constructor.name === "DecoderBuffer" && typeof h.offset == "number" && typeof h.length == "number" && typeof h.save == "function" && typeof h.restore == "function" && typeof h.isEmpty == "function" && typeof h.readUInt8 == "function" && typeof h.skip == "function" && typeof h.raw == "function";
+ return l;
+ }, w.prototype.save = function() {
+ return {
+ offset: this.offset,
+ reporter: g.prototype.save.call(this)
+ };
+ }, w.prototype.restore = function(h) {
+ var l = new w(this.base);
+ return l.offset = h.offset, l.length = this.offset, this.offset = h.offset, g.prototype.restore.call(this, h.reporter), l;
+ }, w.prototype.isEmpty = function() {
+ return this.offset === this.length;
+ }, w.prototype.readUInt8 = function(h) {
+ return this.offset + 1 <= this.length ? this.base.readUInt8(this.offset++, !0) : this.error(h || "DecoderBuffer overrun");
+ }, w.prototype.skip = function(h, l) {
+ if (!(this.offset + h <= this.length))
+ return this.error(l || "DecoderBuffer overrun");
+ var d = new w(this.base);
+ return d._reporterState = this._reporterState, d.offset = this.offset, d.length = this.offset + h, this.offset += h, d;
+ }, w.prototype.raw = function(h) {
+ return this.base.slice(h ? h.offset : this.offset, this.length);
+ };
+ function f(y, h) {
+ if (Array.isArray(y))
+ this.length = 0, this.value = y.map(function(l) {
+ return f.isEncoderBuffer(l) || (l = new f(l, h)), this.length += l.length, l;
+ }, this);
+ else if (typeof y == "number") {
+ if (!(0 <= y && y <= 255))
+ return h.error("non-byte EncoderBuffer value");
+ this.value = y, this.length = 1;
+ } else if (typeof y == "string")
+ this.value = y, this.length = b.byteLength(y);
+ else if (b.isBuffer(y))
+ this.value = y, this.length = y.length;
+ else
+ return h.error("Unsupported type: " + u(y));
+ }
+ _.EncoderBuffer = f, f.isEncoderBuffer = function(h) {
+ if (h instanceof f)
+ return !0;
+ var l = u(h) === "object" && h.constructor.name === "EncoderBuffer" && typeof h.length == "number" && typeof h.join == "function";
+ return l;
+ }, f.prototype.join = function(h, l) {
+ return h || (h = b.alloc(this.length)), l || (l = 0), this.length === 0 || (Array.isArray(this.value) ? this.value.forEach(function(d) {
+ d.join(h, l), l += d.length;
+ }) : (typeof this.value == "number" ? h[l] = this.value : typeof this.value == "string" ? h.write(this.value, l) : b.isBuffer(this.value) && this.value.copy(h, l), l += this.length)), h;
+ };
+ }, { "../base/reporter": 172, inherits: 387, "safer-buffer": 495 }], 170: [function(e, x, _) {
+ var u = _;
+ u.Reporter = e("./reporter").Reporter, u.DecoderBuffer = e("./buffer").DecoderBuffer, u.EncoderBuffer = e("./buffer").EncoderBuffer, u.Node = e("./node");
+ }, { "./buffer": 169, "./node": 171, "./reporter": 172 }], 171: [function(e, x, _) {
+ function u(s) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(c) {
+ return typeof c;
+ } : u = function(c) {
+ return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
+ }, u(s);
+ }
+ var m = e("../base/reporter").Reporter, g = e("../base/buffer").EncoderBuffer, b = e("../base/buffer").DecoderBuffer, w = e("minimalistic-assert"), f = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], y = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(f), h = ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"];
+ function l(s, v, c) {
+ var a = {};
+ this._baseState = a, a.name = c, a.enc = s, a.parent = v || null, a.children = null, a.tag = null, a.args = null, a.reverseArgs = null, a.choice = null, a.optional = !1, a.any = !1, a.obj = !1, a.use = null, a.useDecoder = null, a.key = null, a.default = null, a.explicit = null, a.implicit = null, a.contains = null, a.parent || (a.children = [], this._wrap());
+ }
+ x.exports = l;
+ var d = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"];
+ l.prototype.clone = function() {
+ var v = this._baseState, c = {};
+ d.forEach(function(r) {
+ c[r] = v[r];
+ });
+ var a = new this.constructor(c.parent);
+ return a._baseState = c, a;
+ }, l.prototype._wrap = function() {
+ var v = this._baseState;
+ y.forEach(function(c) {
+ this[c] = function() {
+ var r = new this.constructor(this);
+ return v.children.push(r), r[c].apply(r, arguments);
+ };
+ }, this);
+ }, l.prototype._init = function(v) {
+ var c = this._baseState;
+ w(c.parent === null), v.call(this), c.children = c.children.filter(function(a) {
+ return a._baseState.parent === this;
+ }, this), w.equal(c.children.length, 1, "Root node can have only one child");
+ }, l.prototype._useArgs = function(v) {
+ var c = this._baseState, a = v.filter(function(r) {
+ return r instanceof this.constructor;
+ }, this);
+ v = v.filter(function(r) {
+ return !(r instanceof this.constructor);
+ }, this), a.length !== 0 && (w(c.children === null), c.children = a, a.forEach(function(r) {
+ r._baseState.parent = this;
+ }, this)), v.length !== 0 && (w(c.args === null), c.args = v, c.reverseArgs = v.map(function(r) {
+ if (u(r) !== "object" || r.constructor !== Object)
+ return r;
+ var t = {};
+ return Object.keys(r).forEach(function(i) {
+ i == (i | 0) && (i |= 0);
+ var n = r[i];
+ t[n] = i;
+ }), t;
+ }));
+ }, h.forEach(function(s) {
+ l.prototype[s] = function() {
+ var c = this._baseState;
+ throw new Error(s + " not implemented for encoding: " + c.enc);
+ };
+ }), f.forEach(function(s) {
+ l.prototype[s] = function() {
+ var c = this._baseState, a = Array.prototype.slice.call(arguments);
+ return w(c.tag === null), c.tag = s, this._useArgs(a), this;
+ };
+ }), l.prototype.use = function(v) {
+ w(v);
+ var c = this._baseState;
+ return w(c.use === null), c.use = v, this;
+ }, l.prototype.optional = function() {
+ var v = this._baseState;
+ return v.optional = !0, this;
+ }, l.prototype.def = function(v) {
+ var c = this._baseState;
+ return w(c.default === null), c.default = v, c.optional = !0, this;
+ }, l.prototype.explicit = function(v) {
+ var c = this._baseState;
+ return w(c.explicit === null && c.implicit === null), c.explicit = v, this;
+ }, l.prototype.implicit = function(v) {
+ var c = this._baseState;
+ return w(c.explicit === null && c.implicit === null), c.implicit = v, this;
+ }, l.prototype.obj = function() {
+ var v = this._baseState, c = Array.prototype.slice.call(arguments);
+ return v.obj = !0, c.length !== 0 && this._useArgs(c), this;
+ }, l.prototype.key = function(v) {
+ var c = this._baseState;
+ return w(c.key === null), c.key = v, this;
+ }, l.prototype.any = function() {
+ var v = this._baseState;
+ return v.any = !0, this;
+ }, l.prototype.choice = function(v) {
+ var c = this._baseState;
+ return w(c.choice === null), c.choice = v, this._useArgs(Object.keys(v).map(function(a) {
+ return v[a];
+ })), this;
+ }, l.prototype.contains = function(v) {
+ var c = this._baseState;
+ return w(c.use === null), c.contains = v, this;
+ }, l.prototype._decode = function(v, c) {
+ var a = this._baseState;
+ if (a.parent === null)
+ return v.wrapResult(a.children[0]._decode(v, c));
+ var r = a.default, t = !0, i = null;
+ if (a.key !== null && (i = v.enterKey(a.key)), a.optional) {
+ var n = null;
+ if (a.explicit !== null ? n = a.explicit : a.implicit !== null ? n = a.implicit : a.tag !== null && (n = a.tag), n === null && !a.any) {
+ var o = v.save();
+ try {
+ a.choice === null ? this._decodeGeneric(a.tag, v, c) : this._decodeChoice(v, c), t = !0;
+ } catch (M) {
+ t = !1;
+ }
+ v.restore(o);
+ } else if (t = this._peekTag(v, n, a.any), v.isError(t))
+ return t;
+ }
+ var p;
+ if (a.obj && t && (p = v.enterObject()), t) {
+ if (a.explicit !== null) {
+ var O = this._decodeTag(v, a.explicit);
+ if (v.isError(O))
+ return O;
+ v = O;
+ }
+ var P = v.offset;
+ if (a.use === null && a.choice === null) {
+ var F;
+ a.any && (F = v.save());
+ var z = this._decodeTag(v, a.implicit !== null ? a.implicit : a.tag, a.any);
+ if (v.isError(z))
+ return z;
+ a.any ? r = v.raw(F) : v = z;
+ }
+ if (c && c.track && a.tag !== null && c.track(v.path(), P, v.length, "tagged"), c && c.track && a.tag !== null && c.track(v.path(), v.offset, v.length, "content"), a.any || (a.choice === null ? r = this._decodeGeneric(a.tag, v, c) : r = this._decodeChoice(v, c)), v.isError(r))
+ return r;
+ if (!a.any && a.choice === null && a.children !== null && a.children.forEach(function(I) {
+ I._decode(v, c);
+ }), a.contains && (a.tag === "octstr" || a.tag === "bitstr")) {
+ var N = new b(r);
+ r = this._getUse(a.contains, v._reporterState.obj)._decode(N, c);
+ }
+ }
+ return a.obj && t && (r = v.leaveObject(p)), a.key !== null && (r !== null || t === !0) ? v.leaveKey(i, a.key, r) : i !== null && v.exitKey(i), r;
+ }, l.prototype._decodeGeneric = function(v, c, a) {
+ var r = this._baseState;
+ return v === "seq" || v === "set" ? null : v === "seqof" || v === "setof" ? this._decodeList(c, v, r.args[0], a) : /str$/.test(v) ? this._decodeStr(c, v, a) : v === "objid" && r.args ? this._decodeObjid(c, r.args[0], r.args[1], a) : v === "objid" ? this._decodeObjid(c, null, null, a) : v === "gentime" || v === "utctime" ? this._decodeTime(c, v, a) : v === "null_" ? this._decodeNull(c, a) : v === "bool" ? this._decodeBool(c, a) : v === "objDesc" ? this._decodeStr(c, v, a) : v === "int" || v === "enum" ? this._decodeInt(c, r.args && r.args[0], a) : r.use !== null ? this._getUse(r.use, c._reporterState.obj)._decode(c, a) : c.error("unknown tag: " + v);
+ }, l.prototype._getUse = function(v, c) {
+ var a = this._baseState;
+ return a.useDecoder = this._use(v, c), w(a.useDecoder._baseState.parent === null), a.useDecoder = a.useDecoder._baseState.children[0], a.implicit !== a.useDecoder._baseState.implicit && (a.useDecoder = a.useDecoder.clone(), a.useDecoder._baseState.implicit = a.implicit), a.useDecoder;
+ }, l.prototype._decodeChoice = function(v, c) {
+ var a = this._baseState, r = null, t = !1;
+ return Object.keys(a.choice).some(function(i) {
+ var n = v.save(), o = a.choice[i];
+ try {
+ var p = o._decode(v, c);
+ if (v.isError(p))
+ return !1;
+ r = {
+ type: i,
+ value: p
+ }, t = !0;
+ } catch (O) {
+ return v.restore(n), !1;
+ }
+ return !0;
+ }, this), t ? r : v.error("Choice not matched");
+ }, l.prototype._createEncoderBuffer = function(v) {
+ return new g(v, this.reporter);
+ }, l.prototype._encode = function(v, c, a) {
+ var r = this._baseState;
+ if (!(r.default !== null && r.default === v)) {
+ var t = this._encodeValue(v, c, a);
+ if (t !== void 0 && !this._skipDefault(t, c, a))
+ return t;
+ }
+ }, l.prototype._encodeValue = function(v, c, a) {
+ var r = this._baseState;
+ if (r.parent === null)
+ return r.children[0]._encode(v, c || new m());
+ var t = null;
+ if (this.reporter = c, r.optional && v === void 0)
+ if (r.default !== null)
+ v = r.default;
+ else
+ return;
+ var i = null, n = !1;
+ if (r.any)
+ t = this._createEncoderBuffer(v);
+ else if (r.choice)
+ t = this._encodeChoice(v, c);
+ else if (r.contains)
+ i = this._getUse(r.contains, a)._encode(v, c), n = !0;
+ else if (r.children)
+ i = r.children.map(function(P) {
+ if (P._baseState.tag === "null_")
+ return P._encode(null, c, v);
+ if (P._baseState.key === null)
+ return c.error("Child should have a key");
+ var F = c.enterKey(P._baseState.key);
+ if (u(v) !== "object")
+ return c.error("Child expected, but input is not object");
+ var z = P._encode(v[P._baseState.key], c, v);
+ return c.leaveKey(F), z;
+ }, this).filter(function(P) {
+ return P;
+ }), i = this._createEncoderBuffer(i);
+ else if (r.tag === "seqof" || r.tag === "setof") {
+ if (!(r.args && r.args.length === 1))
+ return c.error("Too many args for : " + r.tag);
+ if (!Array.isArray(v))
+ return c.error("seqof/setof, but data is not Array");
+ var o = this.clone();
+ o._baseState.implicit = null, i = this._createEncoderBuffer(v.map(function(P) {
+ var F = this._baseState;
+ return this._getUse(F.args[0], v)._encode(P, c);
+ }, o));
+ } else
+ r.use !== null ? t = this._getUse(r.use, a)._encode(v, c) : (i = this._encodePrimitive(r.tag, v), n = !0);
+ if (!r.any && r.choice === null) {
+ var p = r.implicit !== null ? r.implicit : r.tag, O = r.implicit === null ? "universal" : "context";
+ p === null ? r.use === null && c.error("Tag could be omitted only for .use()") : r.use === null && (t = this._encodeComposite(p, n, O, i));
+ }
+ return r.explicit !== null && (t = this._encodeComposite(r.explicit, !1, "context", t)), t;
+ }, l.prototype._encodeChoice = function(v, c) {
+ var a = this._baseState, r = a.choice[v.type];
+ return r || w(!1, v.type + " not found in " + JSON.stringify(Object.keys(a.choice))), r._encode(v.value, c);
+ }, l.prototype._encodePrimitive = function(v, c) {
+ var a = this._baseState;
+ if (/str$/.test(v))
+ return this._encodeStr(c, v);
+ if (v === "objid" && a.args)
+ return this._encodeObjid(c, a.reverseArgs[0], a.args[1]);
+ if (v === "objid")
+ return this._encodeObjid(c, null, null);
+ if (v === "gentime" || v === "utctime")
+ return this._encodeTime(c, v);
+ if (v === "null_")
+ return this._encodeNull();
+ if (v === "int" || v === "enum")
+ return this._encodeInt(c, a.args && a.reverseArgs[0]);
+ if (v === "bool")
+ return this._encodeBool(c);
+ if (v === "objDesc")
+ return this._encodeStr(c, v);
+ throw new Error("Unsupported tag: " + v);
+ }, l.prototype._isNumstr = function(v) {
+ return /^[0-9 ]*$/.test(v);
+ }, l.prototype._isPrintstr = function(v) {
+ return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(v);
+ };
+ }, { "../base/buffer": 169, "../base/reporter": 172, "minimalistic-assert": 437 }], 172: [function(e, x, _) {
+ var u = e("inherits");
+ function m(b) {
+ this._reporterState = {
+ obj: null,
+ path: [],
+ options: b || {},
+ errors: []
+ };
+ }
+ _.Reporter = m, m.prototype.isError = function(w) {
+ return w instanceof g;
+ }, m.prototype.save = function() {
+ var w = this._reporterState;
+ return {
+ obj: w.obj,
+ pathLen: w.path.length
+ };
+ }, m.prototype.restore = function(w) {
+ var f = this._reporterState;
+ f.obj = w.obj, f.path = f.path.slice(0, w.pathLen);
+ }, m.prototype.enterKey = function(w) {
+ return this._reporterState.path.push(w);
+ }, m.prototype.exitKey = function(w) {
+ var f = this._reporterState;
+ f.path = f.path.slice(0, w - 1);
+ }, m.prototype.leaveKey = function(w, f, y) {
+ var h = this._reporterState;
+ this.exitKey(w), h.obj !== null && (h.obj[f] = y);
+ }, m.prototype.path = function() {
+ return this._reporterState.path.join("/");
+ }, m.prototype.enterObject = function() {
+ var w = this._reporterState, f = w.obj;
+ return w.obj = {}, f;
+ }, m.prototype.leaveObject = function(w) {
+ var f = this._reporterState, y = f.obj;
+ return f.obj = w, y;
+ }, m.prototype.error = function(w) {
+ var f, y = this._reporterState, h = w instanceof g;
+ if (h ? f = w : f = new g(y.path.map(function(l) {
+ return "[" + JSON.stringify(l) + "]";
+ }).join(""), w.message || w, w.stack), !y.options.partial)
+ throw f;
+ return h || y.errors.push(f), f;
+ }, m.prototype.wrapResult = function(w) {
+ var f = this._reporterState;
+ return f.options.partial ? {
+ result: this.isError(w) ? null : w,
+ errors: f.errors
+ } : w;
+ };
+ function g(b, w) {
+ this.path = b, this.rethrow(w);
+ }
+ u(g, Error), g.prototype.rethrow = function(w) {
+ if (this.message = w + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, g), !this.stack)
+ try {
+ throw new Error(this.message);
+ } catch (f) {
+ this.stack = f.stack;
+ }
+ return this;
+ };
+ }, { inherits: 387 }], 173: [function(e, x, _) {
+ function u(m) {
+ var g = {};
+ return Object.keys(m).forEach(function(b) {
+ (b | 0) == b && (b = b | 0);
+ var w = m[b];
+ g[w] = b;
+ }), g;
+ }
+ _.tagClass = {
+ 0: "universal",
+ 1: "application",
+ 2: "context",
+ 3: "private"
+ }, _.tagClassByName = u(_.tagClass), _.tag = {
+ 0: "end",
+ 1: "bool",
+ 2: "int",
+ 3: "bitstr",
+ 4: "octstr",
+ 5: "null_",
+ 6: "objid",
+ 7: "objDesc",
+ 8: "external",
+ 9: "real",
+ 10: "enum",
+ 11: "embed",
+ 12: "utf8str",
+ 13: "relativeOid",
+ 16: "seq",
+ 17: "set",
+ 18: "numstr",
+ 19: "printstr",
+ 20: "t61str",
+ 21: "videostr",
+ 22: "ia5str",
+ 23: "utctime",
+ 24: "gentime",
+ 25: "graphstr",
+ 26: "iso646str",
+ 27: "genstr",
+ 28: "unistr",
+ 29: "charstr",
+ 30: "bmpstr"
+ }, _.tagByName = u(_.tag);
+ }, {}], 174: [function(e, x, _) {
+ var u = _;
+ u._reverse = function(g) {
+ var b = {};
+ return Object.keys(g).forEach(function(w) {
+ (w | 0) == w && (w = w | 0);
+ var f = g[w];
+ b[f] = w;
+ }), b;
+ }, u.der = e("./der");
+ }, { "./der": 173 }], 175: [function(e, x, _) {
+ var u = e("inherits"), m = e("bn.js"), g = e("../base/buffer").DecoderBuffer, b = e("../base/node"), w = e("../constants/der");
+ function f(d) {
+ this.enc = "der", this.name = d.name, this.entity = d, this.tree = new y(), this.tree._init(d.body);
+ }
+ x.exports = f, f.prototype.decode = function(s, v) {
+ return g.isDecoderBuffer(s) || (s = new g(s, v)), this.tree._decode(s, v);
+ };
+ function y(d) {
+ b.call(this, "der", d);
+ }
+ u(y, b), y.prototype._peekTag = function(s, v, c) {
+ if (s.isEmpty())
+ return !1;
+ var a = s.save(), r = h(s, 'Failed to peek tag: "' + v + '"');
+ return s.isError(r) ? r : (s.restore(a), r.tag === v || r.tagStr === v || r.tagStr + "of" === v || c);
+ }, y.prototype._decodeTag = function(s, v, c) {
+ var a = h(s, 'Failed to decode tag of "' + v + '"');
+ if (s.isError(a))
+ return a;
+ var r = l(s, a.primitive, 'Failed to get length of "' + v + '"');
+ if (s.isError(r))
+ return r;
+ if (!c && a.tag !== v && a.tagStr !== v && a.tagStr + "of" !== v)
+ return s.error('Failed to match tag: "' + v + '"');
+ if (a.primitive || r !== null)
+ return s.skip(r, 'Failed to match body of: "' + v + '"');
+ var t = s.save(), i = this._skipUntilEnd(s, 'Failed to skip indefinite length body: "' + this.tag + '"');
+ return s.isError(i) ? i : (r = s.offset - t.offset, s.restore(t), s.skip(r, 'Failed to match body of: "' + v + '"'));
+ }, y.prototype._skipUntilEnd = function(s, v) {
+ for (; ; ) {
+ var c = h(s, v);
+ if (s.isError(c))
+ return c;
+ var a = l(s, c.primitive, v);
+ if (s.isError(a))
+ return a;
+ var r = void 0;
+ if (c.primitive || a !== null ? r = s.skip(a) : r = this._skipUntilEnd(s, v), s.isError(r))
+ return r;
+ if (c.tagStr === "end")
+ break;
+ }
+ }, y.prototype._decodeList = function(s, v, c, a) {
+ for (var r = []; !s.isEmpty(); ) {
+ var t = this._peekTag(s, "end");
+ if (s.isError(t))
+ return t;
+ var i = c.decode(s, "der", a);
+ if (s.isError(i) && t)
+ break;
+ r.push(i);
+ }
+ return r;
+ }, y.prototype._decodeStr = function(s, v) {
+ if (v === "bitstr") {
+ var c = s.readUInt8();
+ return s.isError(c) ? c : {
+ unused: c,
+ data: s.raw()
+ };
+ } else if (v === "bmpstr") {
+ var a = s.raw();
+ if (a.length % 2 === 1)
+ return s.error("Decoding of string type: bmpstr length mismatch");
+ for (var r = "", t = 0; t < a.length / 2; t++)
+ r += String.fromCharCode(a.readUInt16BE(t * 2));
+ return r;
+ } else if (v === "numstr") {
+ var i = s.raw().toString("ascii");
+ return this._isNumstr(i) ? i : s.error("Decoding of string type: numstr unsupported characters");
+ } else {
+ if (v === "octstr")
+ return s.raw();
+ if (v === "objDesc")
+ return s.raw();
+ if (v === "printstr") {
+ var n = s.raw().toString("ascii");
+ return this._isPrintstr(n) ? n : s.error("Decoding of string type: printstr unsupported characters");
+ } else
+ return /str$/.test(v) ? s.raw().toString() : s.error("Decoding of string type: " + v + " unsupported");
+ }
+ }, y.prototype._decodeObjid = function(s, v, c) {
+ for (var a, r = [], t = 0, i = 0; !s.isEmpty(); )
+ i = s.readUInt8(), t <<= 7, t |= i & 127, i & 128 || (r.push(t), t = 0);
+ i & 128 && r.push(t);
+ var n = r[0] / 40 | 0, o = r[0] % 40;
+ if (c ? a = r : a = [n, o].concat(r.slice(1)), v) {
+ var p = v[a.join(" ")];
+ p === void 0 && (p = v[a.join(".")]), p !== void 0 && (a = p);
+ }
+ return a;
+ }, y.prototype._decodeTime = function(s, v) {
+ var c = s.raw().toString(), a, r, t, i, n, o;
+ if (v === "gentime")
+ a = c.slice(0, 4) | 0, r = c.slice(4, 6) | 0, t = c.slice(6, 8) | 0, i = c.slice(8, 10) | 0, n = c.slice(10, 12) | 0, o = c.slice(12, 14) | 0;
+ else if (v === "utctime")
+ a = c.slice(0, 2) | 0, r = c.slice(2, 4) | 0, t = c.slice(4, 6) | 0, i = c.slice(6, 8) | 0, n = c.slice(8, 10) | 0, o = c.slice(10, 12) | 0, a < 70 ? a = 2e3 + a : a = 1900 + a;
+ else
+ return s.error("Decoding " + v + " time is not supported yet");
+ return Date.UTC(a, r - 1, t, i, n, o, 0);
+ }, y.prototype._decodeNull = function() {
+ return null;
+ }, y.prototype._decodeBool = function(s) {
+ var v = s.readUInt8();
+ return s.isError(v) ? v : v !== 0;
+ }, y.prototype._decodeInt = function(s, v) {
+ var c = s.raw(), a = new m(c);
+ return v && (a = v[a.toString(10)] || a), a;
+ }, y.prototype._use = function(s, v) {
+ return typeof s == "function" && (s = s(v)), s._getDecoder("der").tree;
+ };
+ function h(d, s) {
+ var v = d.readUInt8(s);
+ if (d.isError(v))
+ return v;
+ var c = w.tagClass[v >> 6], a = (v & 32) === 0;
+ if ((v & 31) === 31) {
+ var r = v;
+ for (v = 0; (r & 128) === 128; ) {
+ if (r = d.readUInt8(s), d.isError(r))
+ return r;
+ v <<= 7, v |= r & 127;
+ }
+ } else
+ v &= 31;
+ var t = w.tag[v];
+ return {
+ cls: c,
+ primitive: a,
+ tag: v,
+ tagStr: t
+ };
+ }
+ function l(d, s, v) {
+ var c = d.readUInt8(v);
+ if (d.isError(c))
+ return c;
+ if (!s && c === 128)
+ return null;
+ if (!(c & 128))
+ return c;
+ var a = c & 127;
+ if (a > 4)
+ return d.error("length octect is too long");
+ c = 0;
+ for (var r = 0; r < a; r++) {
+ c <<= 8;
+ var t = d.readUInt8(v);
+ if (d.isError(t))
+ return t;
+ c |= t;
+ }
+ return c;
+ }
+ }, { "../base/buffer": 169, "../base/node": 171, "../constants/der": 173, "bn.js": 181, inherits: 387 }], 176: [function(e, x, _) {
+ var u = _;
+ u.der = e("./der"), u.pem = e("./pem");
+ }, { "./der": 175, "./pem": 177 }], 177: [function(e, x, _) {
+ var u = e("inherits"), m = e("safer-buffer").Buffer, g = e("./der");
+ function b(w) {
+ g.call(this, w), this.enc = "pem";
+ }
+ u(b, g), x.exports = b, b.prototype.decode = function(f, y) {
+ for (var h = f.toString().split(/[\r\n]+/g), l = y.label.toUpperCase(), d = /^-----(BEGIN|END) ([^-]+)-----$/, s = -1, v = -1, c = 0; c < h.length; c++) {
+ var a = h[c].match(d);
+ if (a !== null && a[2] === l)
+ if (s === -1) {
+ if (a[1] !== "BEGIN")
+ break;
+ s = c;
+ } else {
+ if (a[1] !== "END")
+ break;
+ v = c;
+ break;
+ }
+ }
+ if (s === -1 || v === -1)
+ throw new Error("PEM section not found for: " + l);
+ var r = h.slice(s + 1, v).join("");
+ r.replace(/[^a-z0-9+/=]+/gi, "");
+ var t = m.from(r, "base64");
+ return g.prototype.decode.call(this, t, y);
+ };
+ }, { "./der": 175, inherits: 387, "safer-buffer": 495 }], 178: [function(e, x, _) {
+ var u = e("inherits"), m = e("safer-buffer").Buffer, g = e("../base/node"), b = e("../constants/der");
+ function w(l) {
+ this.enc = "der", this.name = l.name, this.entity = l, this.tree = new f(), this.tree._init(l.body);
+ }
+ x.exports = w, w.prototype.encode = function(d, s) {
+ return this.tree._encode(d, s).join();
+ };
+ function f(l) {
+ g.call(this, "der", l);
+ }
+ u(f, g), f.prototype._encodeComposite = function(d, s, v, c) {
+ var a = h(d, s, v, this.reporter);
+ if (c.length < 128) {
+ var r = m.alloc(2);
+ return r[0] = a, r[1] = c.length, this._createEncoderBuffer([r, c]);
+ }
+ for (var t = 1, i = c.length; i >= 256; i >>= 8)
+ t++;
+ var n = m.alloc(1 + 1 + t);
+ n[0] = a, n[1] = 128 | t;
+ for (var o = 1 + t, p = c.length; p > 0; o--, p >>= 8)
+ n[o] = p & 255;
+ return this._createEncoderBuffer([n, c]);
+ }, f.prototype._encodeStr = function(d, s) {
+ if (s === "bitstr")
+ return this._createEncoderBuffer([d.unused | 0, d.data]);
+ if (s === "bmpstr") {
+ for (var v = m.alloc(d.length * 2), c = 0; c < d.length; c++)
+ v.writeUInt16BE(d.charCodeAt(c), c * 2);
+ return this._createEncoderBuffer(v);
+ } else
+ return s === "numstr" ? this._isNumstr(d) ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: numstr supports only digits and space") : s === "printstr" ? this._isPrintstr(d) ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark") : /str$/.test(s) ? this._createEncoderBuffer(d) : s === "objDesc" ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: " + s + " unsupported");
+ }, f.prototype._encodeObjid = function(d, s, v) {
+ if (typeof d == "string") {
+ if (!s)
+ return this.reporter.error("string objid given, but no values map found");
+ if (!s.hasOwnProperty(d))
+ return this.reporter.error("objid not found in values map");
+ d = s[d].split(/[\s.]+/g);
+ for (var c = 0; c < d.length; c++)
+ d[c] |= 0;
+ } else if (Array.isArray(d)) {
+ d = d.slice();
+ for (var a = 0; a < d.length; a++)
+ d[a] |= 0;
+ }
+ if (!Array.isArray(d))
+ return this.reporter.error("objid() should be either array or string, got: " + JSON.stringify(d));
+ if (!v) {
+ if (d[1] >= 40)
+ return this.reporter.error("Second objid identifier OOB");
+ d.splice(0, 2, d[0] * 40 + d[1]);
+ }
+ for (var r = 0, t = 0; t < d.length; t++) {
+ var i = d[t];
+ for (r++; i >= 128; i >>= 7)
+ r++;
+ }
+ for (var n = m.alloc(r), o = n.length - 1, p = d.length - 1; p >= 0; p--) {
+ var O = d[p];
+ for (n[o--] = O & 127; (O >>= 7) > 0; )
+ n[o--] = 128 | O & 127;
+ }
+ return this._createEncoderBuffer(n);
+ };
+ function y(l) {
+ return l < 10 ? "0" + l : l;
+ }
+ f.prototype._encodeTime = function(d, s) {
+ var v, c = new Date(d);
+ return s === "gentime" ? v = [y(c.getUTCFullYear()), y(c.getUTCMonth() + 1), y(c.getUTCDate()), y(c.getUTCHours()), y(c.getUTCMinutes()), y(c.getUTCSeconds()), "Z"].join("") : s === "utctime" ? v = [y(c.getUTCFullYear() % 100), y(c.getUTCMonth() + 1), y(c.getUTCDate()), y(c.getUTCHours()), y(c.getUTCMinutes()), y(c.getUTCSeconds()), "Z"].join("") : this.reporter.error("Encoding " + s + " time is not supported yet"), this._encodeStr(v, "octstr");
+ }, f.prototype._encodeNull = function() {
+ return this._createEncoderBuffer("");
+ }, f.prototype._encodeInt = function(d, s) {
+ if (typeof d == "string") {
+ if (!s)
+ return this.reporter.error("String int or enum given, but no values map");
+ if (!s.hasOwnProperty(d))
+ return this.reporter.error("Values map doesn't contain: " + JSON.stringify(d));
+ d = s[d];
+ }
+ if (typeof d != "number" && !m.isBuffer(d)) {
+ var v = d.toArray();
+ !d.sign && v[0] & 128 && v.unshift(0), d = m.from(v);
+ }
+ if (m.isBuffer(d)) {
+ var c = d.length;
+ d.length === 0 && c++;
+ var a = m.alloc(c);
+ return d.copy(a), d.length === 0 && (a[0] = 0), this._createEncoderBuffer(a);
+ }
+ if (d < 128)
+ return this._createEncoderBuffer(d);
+ if (d < 256)
+ return this._createEncoderBuffer([0, d]);
+ for (var r = 1, t = d; t >= 256; t >>= 8)
+ r++;
+ for (var i = new Array(r), n = i.length - 1; n >= 0; n--)
+ i[n] = d & 255, d >>= 8;
+ return i[0] & 128 && i.unshift(0), this._createEncoderBuffer(m.from(i));
+ }, f.prototype._encodeBool = function(d) {
+ return this._createEncoderBuffer(d ? 255 : 0);
+ }, f.prototype._use = function(d, s) {
+ return typeof d == "function" && (d = d(s)), d._getEncoder("der").tree;
+ }, f.prototype._skipDefault = function(d, s, v) {
+ var c = this._baseState, a;
+ if (c.default === null)
+ return !1;
+ var r = d.join();
+ if (c.defaultBuffer === void 0 && (c.defaultBuffer = this._encodeValue(c.default, s, v).join()), r.length !== c.defaultBuffer.length)
+ return !1;
+ for (a = 0; a < r.length; a++)
+ if (r[a] !== c.defaultBuffer[a])
+ return !1;
+ return !0;
+ };
+ function h(l, d, s, v) {
+ var c;
+ if (l === "seqof" ? l = "seq" : l === "setof" && (l = "set"), b.tagByName.hasOwnProperty(l))
+ c = b.tagByName[l];
+ else if (typeof l == "number" && (l | 0) === l)
+ c = l;
+ else
+ return v.error("Unknown tag: " + l);
+ return c >= 31 ? v.error("Multi-octet tag encoding unsupported") : (d || (c |= 32), c |= b.tagClassByName[s || "universal"] << 6, c);
+ }
+ }, { "../base/node": 171, "../constants/der": 173, inherits: 387, "safer-buffer": 495 }], 179: [function(e, x, _) {
+ var u = _;
+ u.der = e("./der"), u.pem = e("./pem");
+ }, { "./der": 178, "./pem": 180 }], 180: [function(e, x, _) {
+ var u = e("inherits"), m = e("./der");
+ function g(b) {
+ m.call(this, b), this.enc = "pem";
+ }
+ u(g, m), x.exports = g, g.prototype.encode = function(w, f) {
+ for (var y = m.prototype.encode.call(this, w), h = y.toString("base64"), l = ["-----BEGIN " + f.label + "-----"], d = 0; d < h.length; d += 64)
+ l.push(h.slice(d, d + 64));
+ return l.push("-----END " + f.label + "-----"), l.join(`
+`);
+ };
+ }, { "./der": 178, inherits: 387 }], 181: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ (function(m, g) {
+ function b(I, R) {
+ if (!I)
+ throw new Error(R || "Assertion failed");
+ }
+ function w(I, R) {
+ I.super_ = R;
+ var C = function() {
+ };
+ C.prototype = R.prototype, I.prototype = new C(), I.prototype.constructor = I;
+ }
+ function f(I, R, C) {
+ if (f.isBN(I))
+ return I;
+ this.negative = 0, this.words = null, this.length = 0, this.red = null, I !== null && ((R === "le" || R === "be") && (C = R, R = 10), this._init(I || 0, R || 10, C || "be"));
+ }
+ u(m) === "object" ? m.exports = f : g.BN = f, f.BN = f, f.wordSize = 26;
+ var y;
+ try {
+ y = e("buffer").Buffer;
+ } catch (I) {
+ }
+ f.isBN = function(R) {
+ return R instanceof f ? !0 : R !== null && u(R) === "object" && R.constructor.wordSize === f.wordSize && Array.isArray(R.words);
+ }, f.max = function(R, C) {
+ return R.cmp(C) > 0 ? R : C;
+ }, f.min = function(R, C) {
+ return R.cmp(C) < 0 ? R : C;
+ }, f.prototype._init = function(R, C, E) {
+ if (typeof R == "number")
+ return this._initNumber(R, C, E);
+ if (u(R) === "object")
+ return this._initArray(R, C, E);
+ C === "hex" && (C = 16), b(C === (C | 0) && C >= 2 && C <= 36), R = R.toString().replace(/\s+/g, "");
+ var A = 0;
+ R[0] === "-" && A++, C === 16 ? this._parseHex(R, A) : this._parseBase(R, C, A), R[0] === "-" && (this.negative = 1), this.strip(), E === "le" && this._initArray(this.toArray(), C, E);
+ }, f.prototype._initNumber = function(R, C, E) {
+ R < 0 && (this.negative = 1, R = -R), R < 67108864 ? (this.words = [R & 67108863], this.length = 1) : R < 4503599627370496 ? (this.words = [R & 67108863, R / 67108864 & 67108863], this.length = 2) : (b(R < 9007199254740992), this.words = [R & 67108863, R / 67108864 & 67108863, 1], this.length = 3), E === "le" && this._initArray(this.toArray(), C, E);
+ }, f.prototype._initArray = function(R, C, E) {
+ if (b(typeof R.length == "number"), R.length <= 0)
+ return this.words = [0], this.length = 1, this;
+ this.length = Math.ceil(R.length / 3), this.words = new Array(this.length);
+ for (var A = 0; A < this.length; A++)
+ this.words[A] = 0;
+ var L, $, W = 0;
+ if (E === "be")
+ for (A = R.length - 1, L = 0; A >= 0; A -= 3)
+ $ = R[A] | R[A - 1] << 8 | R[A - 2] << 16, this.words[L] |= $ << W & 67108863, this.words[L + 1] = $ >>> 26 - W & 67108863, W += 24, W >= 26 && (W -= 26, L++);
+ else if (E === "le")
+ for (A = 0, L = 0; A < R.length; A += 3)
+ $ = R[A] | R[A + 1] << 8 | R[A + 2] << 16, this.words[L] |= $ << W & 67108863, this.words[L + 1] = $ >>> 26 - W & 67108863, W += 24, W >= 26 && (W -= 26, L++);
+ return this.strip();
+ };
+ function h(I, R, C) {
+ for (var E = 0, A = Math.min(I.length, C), L = R; L < A; L++) {
+ var $ = I.charCodeAt(L) - 48;
+ E <<= 4, $ >= 49 && $ <= 54 ? E |= $ - 49 + 10 : $ >= 17 && $ <= 22 ? E |= $ - 17 + 10 : E |= $ & 15;
+ }
+ return E;
+ }
+ f.prototype._parseHex = function(R, C) {
+ this.length = Math.ceil((R.length - C) / 6), this.words = new Array(this.length);
+ for (var E = 0; E < this.length; E++)
+ this.words[E] = 0;
+ var A, L, $ = 0;
+ for (E = R.length - 6, A = 0; E >= C; E -= 6)
+ L = h(R, E, E + 6), this.words[A] |= L << $ & 67108863, this.words[A + 1] |= L >>> 26 - $ & 4194303, $ += 24, $ >= 26 && ($ -= 26, A++);
+ E + 6 !== C && (L = h(R, C, E + 6), this.words[A] |= L << $ & 67108863, this.words[A + 1] |= L >>> 26 - $ & 4194303), this.strip();
+ };
+ function l(I, R, C, E) {
+ for (var A = 0, L = Math.min(I.length, C), $ = R; $ < L; $++) {
+ var W = I.charCodeAt($) - 48;
+ A *= E, W >= 49 ? A += W - 49 + 10 : W >= 17 ? A += W - 17 + 10 : A += W;
+ }
+ return A;
+ }
+ f.prototype._parseBase = function(R, C, E) {
+ this.words = [0], this.length = 1;
+ for (var A = 0, L = 1; L <= 67108863; L *= C)
+ A++;
+ A--, L = L / C | 0;
+ for (var $ = R.length - E, W = $ % A, U = Math.min($, $ - W) + E, D = 0, B = E; B < U; B += A)
+ D = l(R, B, B + A, C), this.imuln(L), this.words[0] + D < 67108864 ? this.words[0] += D : this._iaddn(D);
+ if (W !== 0) {
+ var j = 1;
+ for (D = l(R, B, R.length, C), B = 0; B < W; B++)
+ j *= C;
+ this.imuln(j), this.words[0] + D < 67108864 ? this.words[0] += D : this._iaddn(D);
+ }
+ }, f.prototype.copy = function(R) {
+ R.words = new Array(this.length);
+ for (var C = 0; C < this.length; C++)
+ R.words[C] = this.words[C];
+ R.length = this.length, R.negative = this.negative, R.red = this.red;
+ }, f.prototype.clone = function() {
+ var R = new f(null);
+ return this.copy(R), R;
+ }, f.prototype._expand = function(R) {
+ for (; this.length < R; )
+ this.words[this.length++] = 0;
+ return this;
+ }, f.prototype.strip = function() {
+ for (; this.length > 1 && this.words[this.length - 1] === 0; )
+ this.length--;
+ return this._normSign();
+ }, f.prototype._normSign = function() {
+ return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this;
+ }, f.prototype.inspect = function() {
+ return (this.red ? "";
+ };
+ var d = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], s = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], v = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
+ f.prototype.toString = function(R, C) {
+ R = R || 10, C = C | 0 || 1;
+ var E;
+ if (R === 16 || R === "hex") {
+ E = "";
+ for (var A = 0, L = 0, $ = 0; $ < this.length; $++) {
+ var W = this.words[$], U = ((W << A | L) & 16777215).toString(16);
+ L = W >>> 24 - A & 16777215, L !== 0 || $ !== this.length - 1 ? E = d[6 - U.length] + U + E : E = U + E, A += 2, A >= 26 && (A -= 26, $--);
+ }
+ for (L !== 0 && (E = L.toString(16) + E); E.length % C !== 0; )
+ E = "0" + E;
+ return this.negative !== 0 && (E = "-" + E), E;
+ }
+ if (R === (R | 0) && R >= 2 && R <= 36) {
+ var D = s[R], B = v[R];
+ E = "";
+ var j = this.clone();
+ for (j.negative = 0; !j.isZero(); ) {
+ var V = j.modn(B).toString(R);
+ j = j.idivn(B), j.isZero() ? E = V + E : E = d[D - V.length] + V + E;
+ }
+ for (this.isZero() && (E = "0" + E); E.length % C !== 0; )
+ E = "0" + E;
+ return this.negative !== 0 && (E = "-" + E), E;
+ }
+ b(!1, "Base should be between 2 and 36");
+ }, f.prototype.toNumber = function() {
+ var R = this.words[0];
+ return this.length === 2 ? R += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? R += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && b(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -R : R;
+ }, f.prototype.toJSON = function() {
+ return this.toString(16);
+ }, f.prototype.toBuffer = function(R, C) {
+ return b(typeof y != "undefined"), this.toArrayLike(y, R, C);
+ }, f.prototype.toArray = function(R, C) {
+ return this.toArrayLike(Array, R, C);
+ }, f.prototype.toArrayLike = function(R, C, E) {
+ var A = this.byteLength(), L = E || Math.max(1, A);
+ b(A <= L, "byte array longer than desired length"), b(L > 0, "Requested array length <= 0"), this.strip();
+ var $ = C === "le", W = new R(L), U, D, B = this.clone();
+ if ($) {
+ for (D = 0; !B.isZero(); D++)
+ U = B.andln(255), B.iushrn(8), W[D] = U;
+ for (; D < L; D++)
+ W[D] = 0;
+ } else {
+ for (D = 0; D < L - A; D++)
+ W[D] = 0;
+ for (D = 0; !B.isZero(); D++)
+ U = B.andln(255), B.iushrn(8), W[L - D - 1] = U;
+ }
+ return W;
+ }, Math.clz32 ? f.prototype._countBits = function(R) {
+ return 32 - Math.clz32(R);
+ } : f.prototype._countBits = function(R) {
+ var C = R, E = 0;
+ return C >= 4096 && (E += 13, C >>>= 13), C >= 64 && (E += 7, C >>>= 7), C >= 8 && (E += 4, C >>>= 4), C >= 2 && (E += 2, C >>>= 2), E + C;
+ }, f.prototype._zeroBits = function(R) {
+ if (R === 0)
+ return 26;
+ var C = R, E = 0;
+ return C & 8191 || (E += 13, C >>>= 13), C & 127 || (E += 7, C >>>= 7), C & 15 || (E += 4, C >>>= 4), C & 3 || (E += 2, C >>>= 2), C & 1 || E++, E;
+ }, f.prototype.bitLength = function() {
+ var R = this.words[this.length - 1], C = this._countBits(R);
+ return (this.length - 1) * 26 + C;
+ };
+ function c(I) {
+ for (var R = new Array(I.bitLength()), C = 0; C < R.length; C++) {
+ var E = C / 26 | 0, A = C % 26;
+ R[C] = (I.words[E] & 1 << A) >>> A;
+ }
+ return R;
+ }
+ f.prototype.zeroBits = function() {
+ if (this.isZero())
+ return 0;
+ for (var R = 0, C = 0; C < this.length; C++) {
+ var E = this._zeroBits(this.words[C]);
+ if (R += E, E !== 26)
+ break;
+ }
+ return R;
+ }, f.prototype.byteLength = function() {
+ return Math.ceil(this.bitLength() / 8);
+ }, f.prototype.toTwos = function(R) {
+ return this.negative !== 0 ? this.abs().inotn(R).iaddn(1) : this.clone();
+ }, f.prototype.fromTwos = function(R) {
+ return this.testn(R - 1) ? this.notn(R).iaddn(1).ineg() : this.clone();
+ }, f.prototype.isNeg = function() {
+ return this.negative !== 0;
+ }, f.prototype.neg = function() {
+ return this.clone().ineg();
+ }, f.prototype.ineg = function() {
+ return this.isZero() || (this.negative ^= 1), this;
+ }, f.prototype.iuor = function(R) {
+ for (; this.length < R.length; )
+ this.words[this.length++] = 0;
+ for (var C = 0; C < R.length; C++)
+ this.words[C] = this.words[C] | R.words[C];
+ return this.strip();
+ }, f.prototype.ior = function(R) {
+ return b((this.negative | R.negative) === 0), this.iuor(R);
+ }, f.prototype.or = function(R) {
+ return this.length > R.length ? this.clone().ior(R) : R.clone().ior(this);
+ }, f.prototype.uor = function(R) {
+ return this.length > R.length ? this.clone().iuor(R) : R.clone().iuor(this);
+ }, f.prototype.iuand = function(R) {
+ var C;
+ this.length > R.length ? C = R : C = this;
+ for (var E = 0; E < C.length; E++)
+ this.words[E] = this.words[E] & R.words[E];
+ return this.length = C.length, this.strip();
+ }, f.prototype.iand = function(R) {
+ return b((this.negative | R.negative) === 0), this.iuand(R);
+ }, f.prototype.and = function(R) {
+ return this.length > R.length ? this.clone().iand(R) : R.clone().iand(this);
+ }, f.prototype.uand = function(R) {
+ return this.length > R.length ? this.clone().iuand(R) : R.clone().iuand(this);
+ }, f.prototype.iuxor = function(R) {
+ var C, E;
+ this.length > R.length ? (C = this, E = R) : (C = R, E = this);
+ for (var A = 0; A < E.length; A++)
+ this.words[A] = C.words[A] ^ E.words[A];
+ if (this !== C)
+ for (; A < C.length; A++)
+ this.words[A] = C.words[A];
+ return this.length = C.length, this.strip();
+ }, f.prototype.ixor = function(R) {
+ return b((this.negative | R.negative) === 0), this.iuxor(R);
+ }, f.prototype.xor = function(R) {
+ return this.length > R.length ? this.clone().ixor(R) : R.clone().ixor(this);
+ }, f.prototype.uxor = function(R) {
+ return this.length > R.length ? this.clone().iuxor(R) : R.clone().iuxor(this);
+ }, f.prototype.inotn = function(R) {
+ b(typeof R == "number" && R >= 0);
+ var C = Math.ceil(R / 26) | 0, E = R % 26;
+ this._expand(C), E > 0 && C--;
+ for (var A = 0; A < C; A++)
+ this.words[A] = ~this.words[A] & 67108863;
+ return E > 0 && (this.words[A] = ~this.words[A] & 67108863 >> 26 - E), this.strip();
+ }, f.prototype.notn = function(R) {
+ return this.clone().inotn(R);
+ }, f.prototype.setn = function(R, C) {
+ b(typeof R == "number" && R >= 0);
+ var E = R / 26 | 0, A = R % 26;
+ return this._expand(E + 1), C ? this.words[E] = this.words[E] | 1 << A : this.words[E] = this.words[E] & ~(1 << A), this.strip();
+ }, f.prototype.iadd = function(R) {
+ var C;
+ if (this.negative !== 0 && R.negative === 0)
+ return this.negative = 0, C = this.isub(R), this.negative ^= 1, this._normSign();
+ if (this.negative === 0 && R.negative !== 0)
+ return R.negative = 0, C = this.isub(R), R.negative = 1, C._normSign();
+ var E, A;
+ this.length > R.length ? (E = this, A = R) : (E = R, A = this);
+ for (var L = 0, $ = 0; $ < A.length; $++)
+ C = (E.words[$] | 0) + (A.words[$] | 0) + L, this.words[$] = C & 67108863, L = C >>> 26;
+ for (; L !== 0 && $ < E.length; $++)
+ C = (E.words[$] | 0) + L, this.words[$] = C & 67108863, L = C >>> 26;
+ if (this.length = E.length, L !== 0)
+ this.words[this.length] = L, this.length++;
+ else if (E !== this)
+ for (; $ < E.length; $++)
+ this.words[$] = E.words[$];
+ return this;
+ }, f.prototype.add = function(R) {
+ var C;
+ return R.negative !== 0 && this.negative === 0 ? (R.negative = 0, C = this.sub(R), R.negative ^= 1, C) : R.negative === 0 && this.negative !== 0 ? (this.negative = 0, C = R.sub(this), this.negative = 1, C) : this.length > R.length ? this.clone().iadd(R) : R.clone().iadd(this);
+ }, f.prototype.isub = function(R) {
+ if (R.negative !== 0) {
+ R.negative = 0;
+ var C = this.iadd(R);
+ return R.negative = 1, C._normSign();
+ } else if (this.negative !== 0)
+ return this.negative = 0, this.iadd(R), this.negative = 1, this._normSign();
+ var E = this.cmp(R);
+ if (E === 0)
+ return this.negative = 0, this.length = 1, this.words[0] = 0, this;
+ var A, L;
+ E > 0 ? (A = this, L = R) : (A = R, L = this);
+ for (var $ = 0, W = 0; W < L.length; W++)
+ C = (A.words[W] | 0) - (L.words[W] | 0) + $, $ = C >> 26, this.words[W] = C & 67108863;
+ for (; $ !== 0 && W < A.length; W++)
+ C = (A.words[W] | 0) + $, $ = C >> 26, this.words[W] = C & 67108863;
+ if ($ === 0 && W < A.length && A !== this)
+ for (; W < A.length; W++)
+ this.words[W] = A.words[W];
+ return this.length = Math.max(this.length, W), A !== this && (this.negative = 1), this.strip();
+ }, f.prototype.sub = function(R) {
+ return this.clone().isub(R);
+ };
+ function a(I, R, C) {
+ C.negative = R.negative ^ I.negative;
+ var E = I.length + R.length | 0;
+ C.length = E, E = E - 1 | 0;
+ var A = I.words[0] | 0, L = R.words[0] | 0, $ = A * L, W = $ & 67108863, U = $ / 67108864 | 0;
+ C.words[0] = W;
+ for (var D = 1; D < E; D++) {
+ for (var B = U >>> 26, j = U & 67108863, V = Math.min(D, R.length - 1), re = Math.max(0, D - I.length + 1); re <= V; re++) {
+ var ee = D - re | 0;
+ A = I.words[ee] | 0, L = R.words[re] | 0, $ = A * L + j, B += $ / 67108864 | 0, j = $ & 67108863;
+ }
+ C.words[D] = j | 0, U = B | 0;
+ }
+ return U !== 0 ? C.words[D] = U | 0 : C.length--, C.strip();
+ }
+ var r = function(R, C, E) {
+ var A = R.words, L = C.words, $ = E.words, W = 0, U, D, B, j = A[0] | 0, V = j & 8191, re = j >>> 13, ee = A[1] | 0, ce = ee & 8191, ve = ee >>> 13, ge = A[2] | 0, oe = ge & 8191, J = ge >>> 13, Q = A[3] | 0, he = Q & 8191, ke = Q >>> 13, ne = A[4] | 0, se = ne & 8191, Ce = ne >>> 13, q = A[5] | 0, G = q & 8191, Y = q >>> 13, fe = A[6] | 0, we = fe & 8191, _e = fe >>> 13, je = A[7] | 0, Ye = je & 8191, nt = je >>> 13, ut = A[8] | 0, ot = ut & 8191, Ue = ut >>> 13, Ve = A[9] | 0, Qe = Ve & 8191, tt = Ve >>> 13, ae = L[0] | 0, Re = ae & 8191, be = ae >>> 13, Ee = L[1] | 0, pe = Ee & 8191, Pe = Ee >>> 13, te = L[2] | 0, He = te & 8191, it = te >>> 13, K = L[3] | 0, Me = K & 8191, Le = K >>> 13, ue = L[4] | 0, Se = ue & 8191, Ie = ue >>> 13, st = L[5] | 0, Ge = st & 8191, rt = st >>> 13, _t = L[6] | 0, wt = _t & 8191, Ot = _t >>> 13, pt = L[7] | 0, ct = pt & 8191, At = pt >>> 13, Pt = L[8] | 0, bt = Pt & 8191, Kt = Pt >>> 13, Ct = L[9] | 0, xt = Ct & 8191, Ft = Ct >>> 13;
+ E.negative = R.negative ^ C.negative, E.length = 19, U = Math.imul(V, Re), D = Math.imul(V, be), D = D + Math.imul(re, Re) | 0, B = Math.imul(re, be);
+ var Lt = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Lt >>> 26) | 0, Lt &= 67108863, U = Math.imul(ce, Re), D = Math.imul(ce, be), D = D + Math.imul(ve, Re) | 0, B = Math.imul(ve, be), U = U + Math.imul(V, pe) | 0, D = D + Math.imul(V, Pe) | 0, D = D + Math.imul(re, pe) | 0, B = B + Math.imul(re, Pe) | 0;
+ var Et = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Et >>> 26) | 0, Et &= 67108863, U = Math.imul(oe, Re), D = Math.imul(oe, be), D = D + Math.imul(J, Re) | 0, B = Math.imul(J, be), U = U + Math.imul(ce, pe) | 0, D = D + Math.imul(ce, Pe) | 0, D = D + Math.imul(ve, pe) | 0, B = B + Math.imul(ve, Pe) | 0, U = U + Math.imul(V, He) | 0, D = D + Math.imul(V, it) | 0, D = D + Math.imul(re, He) | 0, B = B + Math.imul(re, it) | 0;
+ var Dr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Dr >>> 26) | 0, Dr &= 67108863, U = Math.imul(he, Re), D = Math.imul(he, be), D = D + Math.imul(ke, Re) | 0, B = Math.imul(ke, be), U = U + Math.imul(oe, pe) | 0, D = D + Math.imul(oe, Pe) | 0, D = D + Math.imul(J, pe) | 0, B = B + Math.imul(J, Pe) | 0, U = U + Math.imul(ce, He) | 0, D = D + Math.imul(ce, it) | 0, D = D + Math.imul(ve, He) | 0, B = B + Math.imul(ve, it) | 0, U = U + Math.imul(V, Me) | 0, D = D + Math.imul(V, Le) | 0, D = D + Math.imul(re, Me) | 0, B = B + Math.imul(re, Le) | 0;
+ var Or = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Or >>> 26) | 0, Or &= 67108863, U = Math.imul(se, Re), D = Math.imul(se, be), D = D + Math.imul(Ce, Re) | 0, B = Math.imul(Ce, be), U = U + Math.imul(he, pe) | 0, D = D + Math.imul(he, Pe) | 0, D = D + Math.imul(ke, pe) | 0, B = B + Math.imul(ke, Pe) | 0, U = U + Math.imul(oe, He) | 0, D = D + Math.imul(oe, it) | 0, D = D + Math.imul(J, He) | 0, B = B + Math.imul(J, it) | 0, U = U + Math.imul(ce, Me) | 0, D = D + Math.imul(ce, Le) | 0, D = D + Math.imul(ve, Me) | 0, B = B + Math.imul(ve, Le) | 0, U = U + Math.imul(V, Se) | 0, D = D + Math.imul(V, Ie) | 0, D = D + Math.imul(re, Se) | 0, B = B + Math.imul(re, Ie) | 0;
+ var Gr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, U = Math.imul(G, Re), D = Math.imul(G, be), D = D + Math.imul(Y, Re) | 0, B = Math.imul(Y, be), U = U + Math.imul(se, pe) | 0, D = D + Math.imul(se, Pe) | 0, D = D + Math.imul(Ce, pe) | 0, B = B + Math.imul(Ce, Pe) | 0, U = U + Math.imul(he, He) | 0, D = D + Math.imul(he, it) | 0, D = D + Math.imul(ke, He) | 0, B = B + Math.imul(ke, it) | 0, U = U + Math.imul(oe, Me) | 0, D = D + Math.imul(oe, Le) | 0, D = D + Math.imul(J, Me) | 0, B = B + Math.imul(J, Le) | 0, U = U + Math.imul(ce, Se) | 0, D = D + Math.imul(ce, Ie) | 0, D = D + Math.imul(ve, Se) | 0, B = B + Math.imul(ve, Ie) | 0, U = U + Math.imul(V, Ge) | 0, D = D + Math.imul(V, rt) | 0, D = D + Math.imul(re, Ge) | 0, B = B + Math.imul(re, rt) | 0;
+ var Nr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, U = Math.imul(we, Re), D = Math.imul(we, be), D = D + Math.imul(_e, Re) | 0, B = Math.imul(_e, be), U = U + Math.imul(G, pe) | 0, D = D + Math.imul(G, Pe) | 0, D = D + Math.imul(Y, pe) | 0, B = B + Math.imul(Y, Pe) | 0, U = U + Math.imul(se, He) | 0, D = D + Math.imul(se, it) | 0, D = D + Math.imul(Ce, He) | 0, B = B + Math.imul(Ce, it) | 0, U = U + Math.imul(he, Me) | 0, D = D + Math.imul(he, Le) | 0, D = D + Math.imul(ke, Me) | 0, B = B + Math.imul(ke, Le) | 0, U = U + Math.imul(oe, Se) | 0, D = D + Math.imul(oe, Ie) | 0, D = D + Math.imul(J, Se) | 0, B = B + Math.imul(J, Ie) | 0, U = U + Math.imul(ce, Ge) | 0, D = D + Math.imul(ce, rt) | 0, D = D + Math.imul(ve, Ge) | 0, B = B + Math.imul(ve, rt) | 0, U = U + Math.imul(V, wt) | 0, D = D + Math.imul(V, Ot) | 0, D = D + Math.imul(re, wt) | 0, B = B + Math.imul(re, Ot) | 0;
+ var Yr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, U = Math.imul(Ye, Re), D = Math.imul(Ye, be), D = D + Math.imul(nt, Re) | 0, B = Math.imul(nt, be), U = U + Math.imul(we, pe) | 0, D = D + Math.imul(we, Pe) | 0, D = D + Math.imul(_e, pe) | 0, B = B + Math.imul(_e, Pe) | 0, U = U + Math.imul(G, He) | 0, D = D + Math.imul(G, it) | 0, D = D + Math.imul(Y, He) | 0, B = B + Math.imul(Y, it) | 0, U = U + Math.imul(se, Me) | 0, D = D + Math.imul(se, Le) | 0, D = D + Math.imul(Ce, Me) | 0, B = B + Math.imul(Ce, Le) | 0, U = U + Math.imul(he, Se) | 0, D = D + Math.imul(he, Ie) | 0, D = D + Math.imul(ke, Se) | 0, B = B + Math.imul(ke, Ie) | 0, U = U + Math.imul(oe, Ge) | 0, D = D + Math.imul(oe, rt) | 0, D = D + Math.imul(J, Ge) | 0, B = B + Math.imul(J, rt) | 0, U = U + Math.imul(ce, wt) | 0, D = D + Math.imul(ce, Ot) | 0, D = D + Math.imul(ve, wt) | 0, B = B + Math.imul(ve, Ot) | 0, U = U + Math.imul(V, ct) | 0, D = D + Math.imul(V, At) | 0, D = D + Math.imul(re, ct) | 0, B = B + Math.imul(re, At) | 0;
+ var Qt = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Qt >>> 26) | 0, Qt &= 67108863, U = Math.imul(ot, Re), D = Math.imul(ot, be), D = D + Math.imul(Ue, Re) | 0, B = Math.imul(Ue, be), U = U + Math.imul(Ye, pe) | 0, D = D + Math.imul(Ye, Pe) | 0, D = D + Math.imul(nt, pe) | 0, B = B + Math.imul(nt, Pe) | 0, U = U + Math.imul(we, He) | 0, D = D + Math.imul(we, it) | 0, D = D + Math.imul(_e, He) | 0, B = B + Math.imul(_e, it) | 0, U = U + Math.imul(G, Me) | 0, D = D + Math.imul(G, Le) | 0, D = D + Math.imul(Y, Me) | 0, B = B + Math.imul(Y, Le) | 0, U = U + Math.imul(se, Se) | 0, D = D + Math.imul(se, Ie) | 0, D = D + Math.imul(Ce, Se) | 0, B = B + Math.imul(Ce, Ie) | 0, U = U + Math.imul(he, Ge) | 0, D = D + Math.imul(he, rt) | 0, D = D + Math.imul(ke, Ge) | 0, B = B + Math.imul(ke, rt) | 0, U = U + Math.imul(oe, wt) | 0, D = D + Math.imul(oe, Ot) | 0, D = D + Math.imul(J, wt) | 0, B = B + Math.imul(J, Ot) | 0, U = U + Math.imul(ce, ct) | 0, D = D + Math.imul(ce, At) | 0, D = D + Math.imul(ve, ct) | 0, B = B + Math.imul(ve, At) | 0, U = U + Math.imul(V, bt) | 0, D = D + Math.imul(V, Kt) | 0, D = D + Math.imul(re, bt) | 0, B = B + Math.imul(re, Kt) | 0;
+ var Xr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, U = Math.imul(Qe, Re), D = Math.imul(Qe, be), D = D + Math.imul(tt, Re) | 0, B = Math.imul(tt, be), U = U + Math.imul(ot, pe) | 0, D = D + Math.imul(ot, Pe) | 0, D = D + Math.imul(Ue, pe) | 0, B = B + Math.imul(Ue, Pe) | 0, U = U + Math.imul(Ye, He) | 0, D = D + Math.imul(Ye, it) | 0, D = D + Math.imul(nt, He) | 0, B = B + Math.imul(nt, it) | 0, U = U + Math.imul(we, Me) | 0, D = D + Math.imul(we, Le) | 0, D = D + Math.imul(_e, Me) | 0, B = B + Math.imul(_e, Le) | 0, U = U + Math.imul(G, Se) | 0, D = D + Math.imul(G, Ie) | 0, D = D + Math.imul(Y, Se) | 0, B = B + Math.imul(Y, Ie) | 0, U = U + Math.imul(se, Ge) | 0, D = D + Math.imul(se, rt) | 0, D = D + Math.imul(Ce, Ge) | 0, B = B + Math.imul(Ce, rt) | 0, U = U + Math.imul(he, wt) | 0, D = D + Math.imul(he, Ot) | 0, D = D + Math.imul(ke, wt) | 0, B = B + Math.imul(ke, Ot) | 0, U = U + Math.imul(oe, ct) | 0, D = D + Math.imul(oe, At) | 0, D = D + Math.imul(J, ct) | 0, B = B + Math.imul(J, At) | 0, U = U + Math.imul(ce, bt) | 0, D = D + Math.imul(ce, Kt) | 0, D = D + Math.imul(ve, bt) | 0, B = B + Math.imul(ve, Kt) | 0, U = U + Math.imul(V, xt) | 0, D = D + Math.imul(V, Ft) | 0, D = D + Math.imul(re, xt) | 0, B = B + Math.imul(re, Ft) | 0;
+ var Fr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, U = Math.imul(Qe, pe), D = Math.imul(Qe, Pe), D = D + Math.imul(tt, pe) | 0, B = Math.imul(tt, Pe), U = U + Math.imul(ot, He) | 0, D = D + Math.imul(ot, it) | 0, D = D + Math.imul(Ue, He) | 0, B = B + Math.imul(Ue, it) | 0, U = U + Math.imul(Ye, Me) | 0, D = D + Math.imul(Ye, Le) | 0, D = D + Math.imul(nt, Me) | 0, B = B + Math.imul(nt, Le) | 0, U = U + Math.imul(we, Se) | 0, D = D + Math.imul(we, Ie) | 0, D = D + Math.imul(_e, Se) | 0, B = B + Math.imul(_e, Ie) | 0, U = U + Math.imul(G, Ge) | 0, D = D + Math.imul(G, rt) | 0, D = D + Math.imul(Y, Ge) | 0, B = B + Math.imul(Y, rt) | 0, U = U + Math.imul(se, wt) | 0, D = D + Math.imul(se, Ot) | 0, D = D + Math.imul(Ce, wt) | 0, B = B + Math.imul(Ce, Ot) | 0, U = U + Math.imul(he, ct) | 0, D = D + Math.imul(he, At) | 0, D = D + Math.imul(ke, ct) | 0, B = B + Math.imul(ke, At) | 0, U = U + Math.imul(oe, bt) | 0, D = D + Math.imul(oe, Kt) | 0, D = D + Math.imul(J, bt) | 0, B = B + Math.imul(J, Kt) | 0, U = U + Math.imul(ce, xt) | 0, D = D + Math.imul(ce, Ft) | 0, D = D + Math.imul(ve, xt) | 0, B = B + Math.imul(ve, Ft) | 0;
+ var Lr = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, U = Math.imul(Qe, He), D = Math.imul(Qe, it), D = D + Math.imul(tt, He) | 0, B = Math.imul(tt, it), U = U + Math.imul(ot, Me) | 0, D = D + Math.imul(ot, Le) | 0, D = D + Math.imul(Ue, Me) | 0, B = B + Math.imul(Ue, Le) | 0, U = U + Math.imul(Ye, Se) | 0, D = D + Math.imul(Ye, Ie) | 0, D = D + Math.imul(nt, Se) | 0, B = B + Math.imul(nt, Ie) | 0, U = U + Math.imul(we, Ge) | 0, D = D + Math.imul(we, rt) | 0, D = D + Math.imul(_e, Ge) | 0, B = B + Math.imul(_e, rt) | 0, U = U + Math.imul(G, wt) | 0, D = D + Math.imul(G, Ot) | 0, D = D + Math.imul(Y, wt) | 0, B = B + Math.imul(Y, Ot) | 0, U = U + Math.imul(se, ct) | 0, D = D + Math.imul(se, At) | 0, D = D + Math.imul(Ce, ct) | 0, B = B + Math.imul(Ce, At) | 0, U = U + Math.imul(he, bt) | 0, D = D + Math.imul(he, Kt) | 0, D = D + Math.imul(ke, bt) | 0, B = B + Math.imul(ke, Kt) | 0, U = U + Math.imul(oe, xt) | 0, D = D + Math.imul(oe, Ft) | 0, D = D + Math.imul(J, xt) | 0, B = B + Math.imul(J, Ft) | 0;
+ var Ur = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, U = Math.imul(Qe, Me), D = Math.imul(Qe, Le), D = D + Math.imul(tt, Me) | 0, B = Math.imul(tt, Le), U = U + Math.imul(ot, Se) | 0, D = D + Math.imul(ot, Ie) | 0, D = D + Math.imul(Ue, Se) | 0, B = B + Math.imul(Ue, Ie) | 0, U = U + Math.imul(Ye, Ge) | 0, D = D + Math.imul(Ye, rt) | 0, D = D + Math.imul(nt, Ge) | 0, B = B + Math.imul(nt, rt) | 0, U = U + Math.imul(we, wt) | 0, D = D + Math.imul(we, Ot) | 0, D = D + Math.imul(_e, wt) | 0, B = B + Math.imul(_e, Ot) | 0, U = U + Math.imul(G, ct) | 0, D = D + Math.imul(G, At) | 0, D = D + Math.imul(Y, ct) | 0, B = B + Math.imul(Y, At) | 0, U = U + Math.imul(se, bt) | 0, D = D + Math.imul(se, Kt) | 0, D = D + Math.imul(Ce, bt) | 0, B = B + Math.imul(Ce, Kt) | 0, U = U + Math.imul(he, xt) | 0, D = D + Math.imul(he, Ft) | 0, D = D + Math.imul(ke, xt) | 0, B = B + Math.imul(ke, Ft) | 0;
+ var vt = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (vt >>> 26) | 0, vt &= 67108863, U = Math.imul(Qe, Se), D = Math.imul(Qe, Ie), D = D + Math.imul(tt, Se) | 0, B = Math.imul(tt, Ie), U = U + Math.imul(ot, Ge) | 0, D = D + Math.imul(ot, rt) | 0, D = D + Math.imul(Ue, Ge) | 0, B = B + Math.imul(Ue, rt) | 0, U = U + Math.imul(Ye, wt) | 0, D = D + Math.imul(Ye, Ot) | 0, D = D + Math.imul(nt, wt) | 0, B = B + Math.imul(nt, Ot) | 0, U = U + Math.imul(we, ct) | 0, D = D + Math.imul(we, At) | 0, D = D + Math.imul(_e, ct) | 0, B = B + Math.imul(_e, At) | 0, U = U + Math.imul(G, bt) | 0, D = D + Math.imul(G, Kt) | 0, D = D + Math.imul(Y, bt) | 0, B = B + Math.imul(Y, Kt) | 0, U = U + Math.imul(se, xt) | 0, D = D + Math.imul(se, Ft) | 0, D = D + Math.imul(Ce, xt) | 0, B = B + Math.imul(Ce, Ft) | 0;
+ var Ke = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Ke >>> 26) | 0, Ke &= 67108863, U = Math.imul(Qe, Ge), D = Math.imul(Qe, rt), D = D + Math.imul(tt, Ge) | 0, B = Math.imul(tt, rt), U = U + Math.imul(ot, wt) | 0, D = D + Math.imul(ot, Ot) | 0, D = D + Math.imul(Ue, wt) | 0, B = B + Math.imul(Ue, Ot) | 0, U = U + Math.imul(Ye, ct) | 0, D = D + Math.imul(Ye, At) | 0, D = D + Math.imul(nt, ct) | 0, B = B + Math.imul(nt, At) | 0, U = U + Math.imul(we, bt) | 0, D = D + Math.imul(we, Kt) | 0, D = D + Math.imul(_e, bt) | 0, B = B + Math.imul(_e, Kt) | 0, U = U + Math.imul(G, xt) | 0, D = D + Math.imul(G, Ft) | 0, D = D + Math.imul(Y, xt) | 0, B = B + Math.imul(Y, Ft) | 0;
+ var me = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, U = Math.imul(Qe, wt), D = Math.imul(Qe, Ot), D = D + Math.imul(tt, wt) | 0, B = Math.imul(tt, Ot), U = U + Math.imul(ot, ct) | 0, D = D + Math.imul(ot, At) | 0, D = D + Math.imul(Ue, ct) | 0, B = B + Math.imul(Ue, At) | 0, U = U + Math.imul(Ye, bt) | 0, D = D + Math.imul(Ye, Kt) | 0, D = D + Math.imul(nt, bt) | 0, B = B + Math.imul(nt, Kt) | 0, U = U + Math.imul(we, xt) | 0, D = D + Math.imul(we, Ft) | 0, D = D + Math.imul(_e, xt) | 0, B = B + Math.imul(_e, Ft) | 0;
+ var Fe = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Fe >>> 26) | 0, Fe &= 67108863, U = Math.imul(Qe, ct), D = Math.imul(Qe, At), D = D + Math.imul(tt, ct) | 0, B = Math.imul(tt, At), U = U + Math.imul(ot, bt) | 0, D = D + Math.imul(ot, Kt) | 0, D = D + Math.imul(Ue, bt) | 0, B = B + Math.imul(Ue, Kt) | 0, U = U + Math.imul(Ye, xt) | 0, D = D + Math.imul(Ye, Ft) | 0, D = D + Math.imul(nt, xt) | 0, B = B + Math.imul(nt, Ft) | 0;
+ var Be = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, U = Math.imul(Qe, bt), D = Math.imul(Qe, Kt), D = D + Math.imul(tt, bt) | 0, B = Math.imul(tt, Kt), U = U + Math.imul(ot, xt) | 0, D = D + Math.imul(ot, Ft) | 0, D = D + Math.imul(Ue, xt) | 0, B = B + Math.imul(Ue, Ft) | 0;
+ var dt = (W + U | 0) + ((D & 8191) << 13) | 0;
+ W = (B + (D >>> 13) | 0) + (dt >>> 26) | 0, dt &= 67108863, U = Math.imul(Qe, xt), D = Math.imul(Qe, Ft), D = D + Math.imul(tt, xt) | 0, B = Math.imul(tt, Ft);
+ var St = (W + U | 0) + ((D & 8191) << 13) | 0;
+ return W = (B + (D >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, $[0] = Lt, $[1] = Et, $[2] = Dr, $[3] = Or, $[4] = Gr, $[5] = Nr, $[6] = Yr, $[7] = Qt, $[8] = Xr, $[9] = Fr, $[10] = Lr, $[11] = Ur, $[12] = vt, $[13] = Ke, $[14] = me, $[15] = Fe, $[16] = Be, $[17] = dt, $[18] = St, W !== 0 && ($[19] = W, E.length++), E;
+ };
+ Math.imul || (r = a);
+ function t(I, R, C) {
+ C.negative = R.negative ^ I.negative, C.length = I.length + R.length;
+ for (var E = 0, A = 0, L = 0; L < C.length - 1; L++) {
+ var $ = A;
+ A = 0;
+ for (var W = E & 67108863, U = Math.min(L, R.length - 1), D = Math.max(0, L - I.length + 1); D <= U; D++) {
+ var B = L - D, j = I.words[B] | 0, V = R.words[D] | 0, re = j * V, ee = re & 67108863;
+ $ = $ + (re / 67108864 | 0) | 0, ee = ee + W | 0, W = ee & 67108863, $ = $ + (ee >>> 26) | 0, A += $ >>> 26, $ &= 67108863;
+ }
+ C.words[L] = W, E = $, $ = A;
+ }
+ return E !== 0 ? C.words[L] = E : C.length--, C.strip();
+ }
+ function i(I, R, C) {
+ var E = new n();
+ return E.mulp(I, R, C);
+ }
+ f.prototype.mulTo = function(R, C) {
+ var E, A = this.length + R.length;
+ return this.length === 10 && R.length === 10 ? E = r(this, R, C) : A < 63 ? E = a(this, R, C) : A < 1024 ? E = t(this, R, C) : E = i(this, R, C), E;
+ };
+ function n(I, R) {
+ this.x = I, this.y = R;
+ }
+ n.prototype.makeRBT = function(R) {
+ for (var C = new Array(R), E = f.prototype._countBits(R) - 1, A = 0; A < R; A++)
+ C[A] = this.revBin(A, E, R);
+ return C;
+ }, n.prototype.revBin = function(R, C, E) {
+ if (R === 0 || R === E - 1)
+ return R;
+ for (var A = 0, L = 0; L < C; L++)
+ A |= (R & 1) << C - L - 1, R >>= 1;
+ return A;
+ }, n.prototype.permute = function(R, C, E, A, L, $) {
+ for (var W = 0; W < $; W++)
+ A[W] = C[R[W]], L[W] = E[R[W]];
+ }, n.prototype.transform = function(R, C, E, A, L, $) {
+ this.permute($, R, C, E, A, L);
+ for (var W = 1; W < L; W <<= 1)
+ for (var U = W << 1, D = Math.cos(2 * Math.PI / U), B = Math.sin(2 * Math.PI / U), j = 0; j < L; j += U)
+ for (var V = D, re = B, ee = 0; ee < W; ee++) {
+ var ce = E[j + ee], ve = A[j + ee], ge = E[j + ee + W], oe = A[j + ee + W], J = V * ge - re * oe;
+ oe = V * oe + re * ge, ge = J, E[j + ee] = ce + ge, A[j + ee] = ve + oe, E[j + ee + W] = ce - ge, A[j + ee + W] = ve - oe, ee !== U && (J = D * V - B * re, re = D * re + B * V, V = J);
+ }
+ }, n.prototype.guessLen13b = function(R, C) {
+ var E = Math.max(C, R) | 1, A = E & 1, L = 0;
+ for (E = E / 2 | 0; E; E = E >>> 1)
+ L++;
+ return 1 << L + 1 + A;
+ }, n.prototype.conjugate = function(R, C, E) {
+ if (!(E <= 1))
+ for (var A = 0; A < E / 2; A++) {
+ var L = R[A];
+ R[A] = R[E - A - 1], R[E - A - 1] = L, L = C[A], C[A] = -C[E - A - 1], C[E - A - 1] = -L;
+ }
+ }, n.prototype.normalize13b = function(R, C) {
+ for (var E = 0, A = 0; A < C / 2; A++) {
+ var L = Math.round(R[2 * A + 1] / C) * 8192 + Math.round(R[2 * A] / C) + E;
+ R[A] = L & 67108863, L < 67108864 ? E = 0 : E = L / 67108864 | 0;
+ }
+ return R;
+ }, n.prototype.convert13b = function(R, C, E, A) {
+ for (var L = 0, $ = 0; $ < C; $++)
+ L = L + (R[$] | 0), E[2 * $] = L & 8191, L = L >>> 13, E[2 * $ + 1] = L & 8191, L = L >>> 13;
+ for ($ = 2 * C; $ < A; ++$)
+ E[$] = 0;
+ b(L === 0), b((L & -8192) === 0);
+ }, n.prototype.stub = function(R) {
+ for (var C = new Array(R), E = 0; E < R; E++)
+ C[E] = 0;
+ return C;
+ }, n.prototype.mulp = function(R, C, E) {
+ var A = 2 * this.guessLen13b(R.length, C.length), L = this.makeRBT(A), $ = this.stub(A), W = new Array(A), U = new Array(A), D = new Array(A), B = new Array(A), j = new Array(A), V = new Array(A), re = E.words;
+ re.length = A, this.convert13b(R.words, R.length, W, A), this.convert13b(C.words, C.length, B, A), this.transform(W, $, U, D, A, L), this.transform(B, $, j, V, A, L);
+ for (var ee = 0; ee < A; ee++) {
+ var ce = U[ee] * j[ee] - D[ee] * V[ee];
+ D[ee] = U[ee] * V[ee] + D[ee] * j[ee], U[ee] = ce;
+ }
+ return this.conjugate(U, D, A), this.transform(U, D, re, $, A, L), this.conjugate(re, $, A), this.normalize13b(re, A), E.negative = R.negative ^ C.negative, E.length = R.length + C.length, E.strip();
+ }, f.prototype.mul = function(R) {
+ var C = new f(null);
+ return C.words = new Array(this.length + R.length), this.mulTo(R, C);
+ }, f.prototype.mulf = function(R) {
+ var C = new f(null);
+ return C.words = new Array(this.length + R.length), i(this, R, C);
+ }, f.prototype.imul = function(R) {
+ return this.clone().mulTo(R, this);
+ }, f.prototype.imuln = function(R) {
+ b(typeof R == "number"), b(R < 67108864);
+ for (var C = 0, E = 0; E < this.length; E++) {
+ var A = (this.words[E] | 0) * R, L = (A & 67108863) + (C & 67108863);
+ C >>= 26, C += A / 67108864 | 0, C += L >>> 26, this.words[E] = L & 67108863;
+ }
+ return C !== 0 && (this.words[E] = C, this.length++), this;
+ }, f.prototype.muln = function(R) {
+ return this.clone().imuln(R);
+ }, f.prototype.sqr = function() {
+ return this.mul(this);
+ }, f.prototype.isqr = function() {
+ return this.imul(this.clone());
+ }, f.prototype.pow = function(R) {
+ var C = c(R);
+ if (C.length === 0)
+ return new f(1);
+ for (var E = this, A = 0; A < C.length && C[A] === 0; A++, E = E.sqr())
+ ;
+ if (++A < C.length)
+ for (var L = E.sqr(); A < C.length; A++, L = L.sqr())
+ C[A] !== 0 && (E = E.mul(L));
+ return E;
+ }, f.prototype.iushln = function(R) {
+ b(typeof R == "number" && R >= 0);
+ var C = R % 26, E = (R - C) / 26, A = 67108863 >>> 26 - C << 26 - C, L;
+ if (C !== 0) {
+ var $ = 0;
+ for (L = 0; L < this.length; L++) {
+ var W = this.words[L] & A, U = (this.words[L] | 0) - W << C;
+ this.words[L] = U | $, $ = W >>> 26 - C;
+ }
+ $ && (this.words[L] = $, this.length++);
+ }
+ if (E !== 0) {
+ for (L = this.length - 1; L >= 0; L--)
+ this.words[L + E] = this.words[L];
+ for (L = 0; L < E; L++)
+ this.words[L] = 0;
+ this.length += E;
+ }
+ return this.strip();
+ }, f.prototype.ishln = function(R) {
+ return b(this.negative === 0), this.iushln(R);
+ }, f.prototype.iushrn = function(R, C, E) {
+ b(typeof R == "number" && R >= 0);
+ var A;
+ C ? A = (C - C % 26) / 26 : A = 0;
+ var L = R % 26, $ = Math.min((R - L) / 26, this.length), W = 67108863 ^ 67108863 >>> L << L, U = E;
+ if (A -= $, A = Math.max(0, A), U) {
+ for (var D = 0; D < $; D++)
+ U.words[D] = this.words[D];
+ U.length = $;
+ }
+ if ($ !== 0)
+ if (this.length > $)
+ for (this.length -= $, D = 0; D < this.length; D++)
+ this.words[D] = this.words[D + $];
+ else
+ this.words[0] = 0, this.length = 1;
+ var B = 0;
+ for (D = this.length - 1; D >= 0 && (B !== 0 || D >= A); D--) {
+ var j = this.words[D] | 0;
+ this.words[D] = B << 26 - L | j >>> L, B = j & W;
+ }
+ return U && B !== 0 && (U.words[U.length++] = B), this.length === 0 && (this.words[0] = 0, this.length = 1), this.strip();
+ }, f.prototype.ishrn = function(R, C, E) {
+ return b(this.negative === 0), this.iushrn(R, C, E);
+ }, f.prototype.shln = function(R) {
+ return this.clone().ishln(R);
+ }, f.prototype.ushln = function(R) {
+ return this.clone().iushln(R);
+ }, f.prototype.shrn = function(R) {
+ return this.clone().ishrn(R);
+ }, f.prototype.ushrn = function(R) {
+ return this.clone().iushrn(R);
+ }, f.prototype.testn = function(R) {
+ b(typeof R == "number" && R >= 0);
+ var C = R % 26, E = (R - C) / 26, A = 1 << C;
+ if (this.length <= E)
+ return !1;
+ var L = this.words[E];
+ return !!(L & A);
+ }, f.prototype.imaskn = function(R) {
+ b(typeof R == "number" && R >= 0);
+ var C = R % 26, E = (R - C) / 26;
+ if (b(this.negative === 0, "imaskn works only with positive numbers"), this.length <= E)
+ return this;
+ if (C !== 0 && E++, this.length = Math.min(E, this.length), C !== 0) {
+ var A = 67108863 ^ 67108863 >>> C << C;
+ this.words[this.length - 1] &= A;
+ }
+ return this.strip();
+ }, f.prototype.maskn = function(R) {
+ return this.clone().imaskn(R);
+ }, f.prototype.iaddn = function(R) {
+ return b(typeof R == "number"), b(R < 67108864), R < 0 ? this.isubn(-R) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) < R ? (this.words[0] = R - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(R), this.negative = 1, this) : this._iaddn(R);
+ }, f.prototype._iaddn = function(R) {
+ this.words[0] += R;
+ for (var C = 0; C < this.length && this.words[C] >= 67108864; C++)
+ this.words[C] -= 67108864, C === this.length - 1 ? this.words[C + 1] = 1 : this.words[C + 1]++;
+ return this.length = Math.max(this.length, C + 1), this;
+ }, f.prototype.isubn = function(R) {
+ if (b(typeof R == "number"), b(R < 67108864), R < 0)
+ return this.iaddn(-R);
+ if (this.negative !== 0)
+ return this.negative = 0, this.iaddn(R), this.negative = 1, this;
+ if (this.words[0] -= R, this.length === 1 && this.words[0] < 0)
+ this.words[0] = -this.words[0], this.negative = 1;
+ else
+ for (var C = 0; C < this.length && this.words[C] < 0; C++)
+ this.words[C] += 67108864, this.words[C + 1] -= 1;
+ return this.strip();
+ }, f.prototype.addn = function(R) {
+ return this.clone().iaddn(R);
+ }, f.prototype.subn = function(R) {
+ return this.clone().isubn(R);
+ }, f.prototype.iabs = function() {
+ return this.negative = 0, this;
+ }, f.prototype.abs = function() {
+ return this.clone().iabs();
+ }, f.prototype._ishlnsubmul = function(R, C, E) {
+ var A = R.length + E, L;
+ this._expand(A);
+ var $, W = 0;
+ for (L = 0; L < R.length; L++) {
+ $ = (this.words[L + E] | 0) + W;
+ var U = (R.words[L] | 0) * C;
+ $ -= U & 67108863, W = ($ >> 26) - (U / 67108864 | 0), this.words[L + E] = $ & 67108863;
+ }
+ for (; L < this.length - E; L++)
+ $ = (this.words[L + E] | 0) + W, W = $ >> 26, this.words[L + E] = $ & 67108863;
+ if (W === 0)
+ return this.strip();
+ for (b(W === -1), W = 0, L = 0; L < this.length; L++)
+ $ = -(this.words[L] | 0) + W, W = $ >> 26, this.words[L] = $ & 67108863;
+ return this.negative = 1, this.strip();
+ }, f.prototype._wordDiv = function(R, C) {
+ var E = this.length - R.length, A = this.clone(), L = R, $ = L.words[L.length - 1] | 0, W = this._countBits($);
+ E = 26 - W, E !== 0 && (L = L.ushln(E), A.iushln(E), $ = L.words[L.length - 1] | 0);
+ var U = A.length - L.length, D;
+ if (C !== "mod") {
+ D = new f(null), D.length = U + 1, D.words = new Array(D.length);
+ for (var B = 0; B < D.length; B++)
+ D.words[B] = 0;
+ }
+ var j = A.clone()._ishlnsubmul(L, 1, U);
+ j.negative === 0 && (A = j, D && (D.words[U] = 1));
+ for (var V = U - 1; V >= 0; V--) {
+ var re = (A.words[L.length + V] | 0) * 67108864 + (A.words[L.length + V - 1] | 0);
+ for (re = Math.min(re / $ | 0, 67108863), A._ishlnsubmul(L, re, V); A.negative !== 0; )
+ re--, A.negative = 0, A._ishlnsubmul(L, 1, V), A.isZero() || (A.negative ^= 1);
+ D && (D.words[V] = re);
+ }
+ return D && D.strip(), A.strip(), C !== "div" && E !== 0 && A.iushrn(E), {
+ div: D || null,
+ mod: A
+ };
+ }, f.prototype.divmod = function(R, C, E) {
+ if (b(!R.isZero()), this.isZero())
+ return {
+ div: new f(0),
+ mod: new f(0)
+ };
+ var A, L, $;
+ return this.negative !== 0 && R.negative === 0 ? ($ = this.neg().divmod(R, C), C !== "mod" && (A = $.div.neg()), C !== "div" && (L = $.mod.neg(), E && L.negative !== 0 && L.iadd(R)), {
+ div: A,
+ mod: L
+ }) : this.negative === 0 && R.negative !== 0 ? ($ = this.divmod(R.neg(), C), C !== "mod" && (A = $.div.neg()), {
+ div: A,
+ mod: $.mod
+ }) : this.negative & R.negative ? ($ = this.neg().divmod(R.neg(), C), C !== "div" && (L = $.mod.neg(), E && L.negative !== 0 && L.isub(R)), {
+ div: $.div,
+ mod: L
+ }) : R.length > this.length || this.cmp(R) < 0 ? {
+ div: new f(0),
+ mod: this
+ } : R.length === 1 ? C === "div" ? {
+ div: this.divn(R.words[0]),
+ mod: null
+ } : C === "mod" ? {
+ div: null,
+ mod: new f(this.modn(R.words[0]))
+ } : {
+ div: this.divn(R.words[0]),
+ mod: new f(this.modn(R.words[0]))
+ } : this._wordDiv(R, C);
+ }, f.prototype.div = function(R) {
+ return this.divmod(R, "div", !1).div;
+ }, f.prototype.mod = function(R) {
+ return this.divmod(R, "mod", !1).mod;
+ }, f.prototype.umod = function(R) {
+ return this.divmod(R, "mod", !0).mod;
+ }, f.prototype.divRound = function(R) {
+ var C = this.divmod(R);
+ if (C.mod.isZero())
+ return C.div;
+ var E = C.div.negative !== 0 ? C.mod.isub(R) : C.mod, A = R.ushrn(1), L = R.andln(1), $ = E.cmp(A);
+ return $ < 0 || L === 1 && $ === 0 ? C.div : C.div.negative !== 0 ? C.div.isubn(1) : C.div.iaddn(1);
+ }, f.prototype.modn = function(R) {
+ b(R <= 67108863);
+ for (var C = (1 << 26) % R, E = 0, A = this.length - 1; A >= 0; A--)
+ E = (C * E + (this.words[A] | 0)) % R;
+ return E;
+ }, f.prototype.idivn = function(R) {
+ b(R <= 67108863);
+ for (var C = 0, E = this.length - 1; E >= 0; E--) {
+ var A = (this.words[E] | 0) + C * 67108864;
+ this.words[E] = A / R | 0, C = A % R;
+ }
+ return this.strip();
+ }, f.prototype.divn = function(R) {
+ return this.clone().idivn(R);
+ }, f.prototype.egcd = function(R) {
+ b(R.negative === 0), b(!R.isZero());
+ var C = this, E = R.clone();
+ C.negative !== 0 ? C = C.umod(R) : C = C.clone();
+ for (var A = new f(1), L = new f(0), $ = new f(0), W = new f(1), U = 0; C.isEven() && E.isEven(); )
+ C.iushrn(1), E.iushrn(1), ++U;
+ for (var D = E.clone(), B = C.clone(); !C.isZero(); ) {
+ for (var j = 0, V = 1; !(C.words[0] & V) && j < 26; ++j, V <<= 1)
+ ;
+ if (j > 0)
+ for (C.iushrn(j); j-- > 0; )
+ (A.isOdd() || L.isOdd()) && (A.iadd(D), L.isub(B)), A.iushrn(1), L.iushrn(1);
+ for (var re = 0, ee = 1; !(E.words[0] & ee) && re < 26; ++re, ee <<= 1)
+ ;
+ if (re > 0)
+ for (E.iushrn(re); re-- > 0; )
+ ($.isOdd() || W.isOdd()) && ($.iadd(D), W.isub(B)), $.iushrn(1), W.iushrn(1);
+ C.cmp(E) >= 0 ? (C.isub(E), A.isub($), L.isub(W)) : (E.isub(C), $.isub(A), W.isub(L));
+ }
+ return {
+ a: $,
+ b: W,
+ gcd: E.iushln(U)
+ };
+ }, f.prototype._invmp = function(R) {
+ b(R.negative === 0), b(!R.isZero());
+ var C = this, E = R.clone();
+ C.negative !== 0 ? C = C.umod(R) : C = C.clone();
+ for (var A = new f(1), L = new f(0), $ = E.clone(); C.cmpn(1) > 0 && E.cmpn(1) > 0; ) {
+ for (var W = 0, U = 1; !(C.words[0] & U) && W < 26; ++W, U <<= 1)
+ ;
+ if (W > 0)
+ for (C.iushrn(W); W-- > 0; )
+ A.isOdd() && A.iadd($), A.iushrn(1);
+ for (var D = 0, B = 1; !(E.words[0] & B) && D < 26; ++D, B <<= 1)
+ ;
+ if (D > 0)
+ for (E.iushrn(D); D-- > 0; )
+ L.isOdd() && L.iadd($), L.iushrn(1);
+ C.cmp(E) >= 0 ? (C.isub(E), A.isub(L)) : (E.isub(C), L.isub(A));
+ }
+ var j;
+ return C.cmpn(1) === 0 ? j = A : j = L, j.cmpn(0) < 0 && j.iadd(R), j;
+ }, f.prototype.gcd = function(R) {
+ if (this.isZero())
+ return R.abs();
+ if (R.isZero())
+ return this.abs();
+ var C = this.clone(), E = R.clone();
+ C.negative = 0, E.negative = 0;
+ for (var A = 0; C.isEven() && E.isEven(); A++)
+ C.iushrn(1), E.iushrn(1);
+ do {
+ for (; C.isEven(); )
+ C.iushrn(1);
+ for (; E.isEven(); )
+ E.iushrn(1);
+ var L = C.cmp(E);
+ if (L < 0) {
+ var $ = C;
+ C = E, E = $;
+ } else if (L === 0 || E.cmpn(1) === 0)
+ break;
+ C.isub(E);
+ } while (!0);
+ return E.iushln(A);
+ }, f.prototype.invm = function(R) {
+ return this.egcd(R).a.umod(R);
+ }, f.prototype.isEven = function() {
+ return (this.words[0] & 1) === 0;
+ }, f.prototype.isOdd = function() {
+ return (this.words[0] & 1) === 1;
+ }, f.prototype.andln = function(R) {
+ return this.words[0] & R;
+ }, f.prototype.bincn = function(R) {
+ b(typeof R == "number");
+ var C = R % 26, E = (R - C) / 26, A = 1 << C;
+ if (this.length <= E)
+ return this._expand(E + 1), this.words[E] |= A, this;
+ for (var L = A, $ = E; L !== 0 && $ < this.length; $++) {
+ var W = this.words[$] | 0;
+ W += L, L = W >>> 26, W &= 67108863, this.words[$] = W;
+ }
+ return L !== 0 && (this.words[$] = L, this.length++), this;
+ }, f.prototype.isZero = function() {
+ return this.length === 1 && this.words[0] === 0;
+ }, f.prototype.cmpn = function(R) {
+ var C = R < 0;
+ if (this.negative !== 0 && !C)
+ return -1;
+ if (this.negative === 0 && C)
+ return 1;
+ this.strip();
+ var E;
+ if (this.length > 1)
+ E = 1;
+ else {
+ C && (R = -R), b(R <= 67108863, "Number is too big");
+ var A = this.words[0] | 0;
+ E = A === R ? 0 : A < R ? -1 : 1;
+ }
+ return this.negative !== 0 ? -E | 0 : E;
+ }, f.prototype.cmp = function(R) {
+ if (this.negative !== 0 && R.negative === 0)
+ return -1;
+ if (this.negative === 0 && R.negative !== 0)
+ return 1;
+ var C = this.ucmp(R);
+ return this.negative !== 0 ? -C | 0 : C;
+ }, f.prototype.ucmp = function(R) {
+ if (this.length > R.length)
+ return 1;
+ if (this.length < R.length)
+ return -1;
+ for (var C = 0, E = this.length - 1; E >= 0; E--) {
+ var A = this.words[E] | 0, L = R.words[E] | 0;
+ if (A !== L) {
+ A < L ? C = -1 : A > L && (C = 1);
+ break;
+ }
+ }
+ return C;
+ }, f.prototype.gtn = function(R) {
+ return this.cmpn(R) === 1;
+ }, f.prototype.gt = function(R) {
+ return this.cmp(R) === 1;
+ }, f.prototype.gten = function(R) {
+ return this.cmpn(R) >= 0;
+ }, f.prototype.gte = function(R) {
+ return this.cmp(R) >= 0;
+ }, f.prototype.ltn = function(R) {
+ return this.cmpn(R) === -1;
+ }, f.prototype.lt = function(R) {
+ return this.cmp(R) === -1;
+ }, f.prototype.lten = function(R) {
+ return this.cmpn(R) <= 0;
+ }, f.prototype.lte = function(R) {
+ return this.cmp(R) <= 0;
+ }, f.prototype.eqn = function(R) {
+ return this.cmpn(R) === 0;
+ }, f.prototype.eq = function(R) {
+ return this.cmp(R) === 0;
+ }, f.red = function(R) {
+ return new N(R);
+ }, f.prototype.toRed = function(R) {
+ return b(!this.red, "Already a number in reduction context"), b(this.negative === 0, "red works only with positives"), R.convertTo(this)._forceRed(R);
+ }, f.prototype.fromRed = function() {
+ return b(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this);
+ }, f.prototype._forceRed = function(R) {
+ return this.red = R, this;
+ }, f.prototype.forceRed = function(R) {
+ return b(!this.red, "Already a number in reduction context"), this._forceRed(R);
+ }, f.prototype.redAdd = function(R) {
+ return b(this.red, "redAdd works only with red numbers"), this.red.add(this, R);
+ }, f.prototype.redIAdd = function(R) {
+ return b(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, R);
+ }, f.prototype.redSub = function(R) {
+ return b(this.red, "redSub works only with red numbers"), this.red.sub(this, R);
+ }, f.prototype.redISub = function(R) {
+ return b(this.red, "redISub works only with red numbers"), this.red.isub(this, R);
+ }, f.prototype.redShl = function(R) {
+ return b(this.red, "redShl works only with red numbers"), this.red.shl(this, R);
+ }, f.prototype.redMul = function(R) {
+ return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, R), this.red.mul(this, R);
+ }, f.prototype.redIMul = function(R) {
+ return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, R), this.red.imul(this, R);
+ }, f.prototype.redSqr = function() {
+ return b(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this);
+ }, f.prototype.redISqr = function() {
+ return b(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this);
+ }, f.prototype.redSqrt = function() {
+ return b(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this);
+ }, f.prototype.redInvm = function() {
+ return b(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this);
+ }, f.prototype.redNeg = function() {
+ return b(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this);
+ }, f.prototype.redPow = function(R) {
+ return b(this.red && !R.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, R);
+ };
+ var o = {
+ k256: null,
+ p224: null,
+ p192: null,
+ p25519: null
+ };
+ function p(I, R) {
+ this.name = I, this.p = new f(R, 16), this.n = this.p.bitLength(), this.k = new f(1).iushln(this.n).isub(this.p), this.tmp = this._tmp();
+ }
+ p.prototype._tmp = function() {
+ var R = new f(null);
+ return R.words = new Array(Math.ceil(this.n / 13)), R;
+ }, p.prototype.ireduce = function(R) {
+ var C = R, E;
+ do
+ this.split(C, this.tmp), C = this.imulK(C), C = C.iadd(this.tmp), E = C.bitLength();
+ while (E > this.n);
+ var A = E < this.n ? -1 : C.ucmp(this.p);
+ return A === 0 ? (C.words[0] = 0, C.length = 1) : A > 0 ? C.isub(this.p) : C.strip !== void 0 ? C.strip() : C._strip(), C;
+ }, p.prototype.split = function(R, C) {
+ R.iushrn(this.n, 0, C);
+ }, p.prototype.imulK = function(R) {
+ return R.imul(this.k);
+ };
+ function O() {
+ p.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");
+ }
+ w(O, p), O.prototype.split = function(R, C) {
+ for (var E = 4194303, A = Math.min(R.length, 9), L = 0; L < A; L++)
+ C.words[L] = R.words[L];
+ if (C.length = A, R.length <= 9) {
+ R.words[0] = 0, R.length = 1;
+ return;
+ }
+ var $ = R.words[9];
+ for (C.words[C.length++] = $ & E, L = 10; L < R.length; L++) {
+ var W = R.words[L] | 0;
+ R.words[L - 10] = (W & E) << 4 | $ >>> 22, $ = W;
+ }
+ $ >>>= 22, R.words[L - 10] = $, $ === 0 && R.length > 10 ? R.length -= 10 : R.length -= 9;
+ }, O.prototype.imulK = function(R) {
+ R.words[R.length] = 0, R.words[R.length + 1] = 0, R.length += 2;
+ for (var C = 0, E = 0; E < R.length; E++) {
+ var A = R.words[E] | 0;
+ C += A * 977, R.words[E] = C & 67108863, C = A * 64 + (C / 67108864 | 0);
+ }
+ return R.words[R.length - 1] === 0 && (R.length--, R.words[R.length - 1] === 0 && R.length--), R;
+ };
+ function P() {
+ p.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");
+ }
+ w(P, p);
+ function F() {
+ p.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");
+ }
+ w(F, p);
+ function z() {
+ p.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");
+ }
+ w(z, p), z.prototype.imulK = function(R) {
+ for (var C = 0, E = 0; E < R.length; E++) {
+ var A = (R.words[E] | 0) * 19 + C, L = A & 67108863;
+ A >>>= 26, R.words[E] = L, C = A;
+ }
+ return C !== 0 && (R.words[R.length++] = C), R;
+ }, f._prime = function(R) {
+ if (o[R])
+ return o[R];
+ var C;
+ if (R === "k256")
+ C = new O();
+ else if (R === "p224")
+ C = new P();
+ else if (R === "p192")
+ C = new F();
+ else if (R === "p25519")
+ C = new z();
+ else
+ throw new Error("Unknown prime " + R);
+ return o[R] = C, C;
+ };
+ function N(I) {
+ if (typeof I == "string") {
+ var R = f._prime(I);
+ this.m = R.p, this.prime = R;
+ } else
+ b(I.gtn(1), "modulus must be greater than 1"), this.m = I, this.prime = null;
+ }
+ N.prototype._verify1 = function(R) {
+ b(R.negative === 0, "red works only with positives"), b(R.red, "red works only with red numbers");
+ }, N.prototype._verify2 = function(R, C) {
+ b((R.negative | C.negative) === 0, "red works only with positives"), b(R.red && R.red === C.red, "red works only with red numbers");
+ }, N.prototype.imod = function(R) {
+ return this.prime ? this.prime.ireduce(R)._forceRed(this) : R.umod(this.m)._forceRed(this);
+ }, N.prototype.neg = function(R) {
+ return R.isZero() ? R.clone() : this.m.sub(R)._forceRed(this);
+ }, N.prototype.add = function(R, C) {
+ this._verify2(R, C);
+ var E = R.add(C);
+ return E.cmp(this.m) >= 0 && E.isub(this.m), E._forceRed(this);
+ }, N.prototype.iadd = function(R, C) {
+ this._verify2(R, C);
+ var E = R.iadd(C);
+ return E.cmp(this.m) >= 0 && E.isub(this.m), E;
+ }, N.prototype.sub = function(R, C) {
+ this._verify2(R, C);
+ var E = R.sub(C);
+ return E.cmpn(0) < 0 && E.iadd(this.m), E._forceRed(this);
+ }, N.prototype.isub = function(R, C) {
+ this._verify2(R, C);
+ var E = R.isub(C);
+ return E.cmpn(0) < 0 && E.iadd(this.m), E;
+ }, N.prototype.shl = function(R, C) {
+ return this._verify1(R), this.imod(R.ushln(C));
+ }, N.prototype.imul = function(R, C) {
+ return this._verify2(R, C), this.imod(R.imul(C));
+ }, N.prototype.mul = function(R, C) {
+ return this._verify2(R, C), this.imod(R.mul(C));
+ }, N.prototype.isqr = function(R) {
+ return this.imul(R, R.clone());
+ }, N.prototype.sqr = function(R) {
+ return this.mul(R, R);
+ }, N.prototype.sqrt = function(R) {
+ if (R.isZero())
+ return R.clone();
+ var C = this.m.andln(3);
+ if (b(C % 2 === 1), C === 3) {
+ var E = this.m.add(new f(1)).iushrn(2);
+ return this.pow(R, E);
+ }
+ for (var A = this.m.subn(1), L = 0; !A.isZero() && A.andln(1) === 0; )
+ L++, A.iushrn(1);
+ b(!A.isZero());
+ var $ = new f(1).toRed(this), W = $.redNeg(), U = this.m.subn(1).iushrn(1), D = this.m.bitLength();
+ for (D = new f(2 * D * D).toRed(this); this.pow(D, U).cmp(W) !== 0; )
+ D.redIAdd(W);
+ for (var B = this.pow(D, A), j = this.pow(R, A.addn(1).iushrn(1)), V = this.pow(R, A), re = L; V.cmp($) !== 0; ) {
+ for (var ee = V, ce = 0; ee.cmp($) !== 0; ce++)
+ ee = ee.redSqr();
+ b(ce < re);
+ var ve = this.pow(B, new f(1).iushln(re - ce - 1));
+ j = j.redMul(ve), B = ve.redSqr(), V = V.redMul(B), re = ce;
+ }
+ return j;
+ }, N.prototype.invm = function(R) {
+ var C = R._invmp(this.m);
+ return C.negative !== 0 ? (C.negative = 0, this.imod(C).redNeg()) : this.imod(C);
+ }, N.prototype.pow = function(R, C) {
+ if (C.isZero())
+ return new f(1).toRed(this);
+ if (C.cmpn(1) === 0)
+ return R.clone();
+ var E = 4, A = new Array(1 << E);
+ A[0] = new f(1).toRed(this), A[1] = R;
+ for (var L = 2; L < A.length; L++)
+ A[L] = this.mul(A[L - 1], R);
+ var $ = A[0], W = 0, U = 0, D = C.bitLength() % 26;
+ for (D === 0 && (D = 26), L = C.length - 1; L >= 0; L--) {
+ for (var B = C.words[L], j = D - 1; j >= 0; j--) {
+ var V = B >> j & 1;
+ if ($ !== A[0] && ($ = this.sqr($)), V === 0 && W === 0) {
+ U = 0;
+ continue;
+ }
+ W <<= 1, W |= V, U++, !(U !== E && (L !== 0 || j !== 0)) && ($ = this.mul($, A[W]), U = 0, W = 0);
+ }
+ D = 26;
+ }
+ return $;
+ }, N.prototype.convertTo = function(R) {
+ var C = R.umod(this.m);
+ return C === R ? C.clone() : C;
+ }, N.prototype.convertFrom = function(R) {
+ var C = R.clone();
+ return C.red = null, C;
+ }, f.mont = function(R) {
+ return new M(R);
+ };
+ function M(I) {
+ N.call(this, I), this.shift = this.m.bitLength(), this.shift % 26 !== 0 && (this.shift += 26 - this.shift % 26), this.r = new f(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv);
+ }
+ w(M, N), M.prototype.convertTo = function(R) {
+ return this.imod(R.ushln(this.shift));
+ }, M.prototype.convertFrom = function(R) {
+ var C = this.imod(R.mul(this.rinv));
+ return C.red = null, C;
+ }, M.prototype.imul = function(R, C) {
+ if (R.isZero() || C.isZero())
+ return R.words[0] = 0, R.length = 1, R;
+ var E = R.imul(C), A = E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), L = E.isub(A).iushrn(this.shift), $ = L;
+ return L.cmp(this.m) >= 0 ? $ = L.isub(this.m) : L.cmpn(0) < 0 && ($ = L.iadd(this.m)), $._forceRed(this);
+ }, M.prototype.mul = function(R, C) {
+ if (R.isZero() || C.isZero())
+ return new f(0)._forceRed(this);
+ var E = R.mul(C), A = E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), L = E.isub(A).iushrn(this.shift), $ = L;
+ return L.cmp(this.m) >= 0 ? $ = L.isub(this.m) : L.cmpn(0) < 0 && ($ = L.iadd(this.m)), $._forceRed(this);
+ }, M.prototype.invm = function(R) {
+ var C = this.imod(R._invmp(this.m).mul(this.r2));
+ return C._forceRed(this);
+ };
+ })(typeof x == "undefined" || x, void 0);
+ }, { buffer: 185 }], 182: [function(e, x, _) {
+ _.byteLength = h, _.toByteArray = d, _.fromByteArray = c;
+ for (var u = [], m = [], g = typeof Uint8Array != "undefined" ? Uint8Array : Array, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", w = 0, f = b.length; w < f; ++w)
+ u[w] = b[w], m[b.charCodeAt(w)] = w;
+ m["-".charCodeAt(0)] = 62, m["_".charCodeAt(0)] = 63;
+ function y(a) {
+ var r = a.length;
+ if (r % 4 > 0)
+ throw new Error("Invalid string. Length must be a multiple of 4");
+ var t = a.indexOf("=");
+ t === -1 && (t = r);
+ var i = t === r ? 0 : 4 - t % 4;
+ return [t, i];
+ }
+ function h(a) {
+ var r = y(a), t = r[0], i = r[1];
+ return (t + i) * 3 / 4 - i;
+ }
+ function l(a, r, t) {
+ return (r + t) * 3 / 4 - t;
+ }
+ function d(a) {
+ var r, t = y(a), i = t[0], n = t[1], o = new g(l(a, i, n)), p = 0, O = n > 0 ? i - 4 : i, P;
+ for (P = 0; P < O; P += 4)
+ r = m[a.charCodeAt(P)] << 18 | m[a.charCodeAt(P + 1)] << 12 | m[a.charCodeAt(P + 2)] << 6 | m[a.charCodeAt(P + 3)], o[p++] = r >> 16 & 255, o[p++] = r >> 8 & 255, o[p++] = r & 255;
+ return n === 2 && (r = m[a.charCodeAt(P)] << 2 | m[a.charCodeAt(P + 1)] >> 4, o[p++] = r & 255), n === 1 && (r = m[a.charCodeAt(P)] << 10 | m[a.charCodeAt(P + 1)] << 4 | m[a.charCodeAt(P + 2)] >> 2, o[p++] = r >> 8 & 255, o[p++] = r & 255), o;
+ }
+ function s(a) {
+ return u[a >> 18 & 63] + u[a >> 12 & 63] + u[a >> 6 & 63] + u[a & 63];
+ }
+ function v(a, r, t) {
+ for (var i, n = [], o = r; o < t; o += 3)
+ i = (a[o] << 16 & 16711680) + (a[o + 1] << 8 & 65280) + (a[o + 2] & 255), n.push(s(i));
+ return n.join("");
+ }
+ function c(a) {
+ for (var r, t = a.length, i = t % 3, n = [], o = 16383, p = 0, O = t - i; p < O; p += o)
+ n.push(v(a, p, p + o > O ? O : p + o));
+ return i === 1 ? (r = a[t - 1], n.push(u[r >> 2] + u[r << 4 & 63] + "==")) : i === 2 && (r = (a[t - 2] << 8) + a[t - 1], n.push(u[r >> 10] + u[r >> 4 & 63] + u[r << 2 & 63] + "=")), n.join("");
+ }
+ }, {}], 183: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ (function(m, g) {
+ function b(C, E) {
+ if (!C)
+ throw new Error(E || "Assertion failed");
+ }
+ function w(C, E) {
+ C.super_ = E;
+ var A = function() {
+ };
+ A.prototype = E.prototype, C.prototype = new A(), C.prototype.constructor = C;
+ }
+ function f(C, E, A) {
+ if (f.isBN(C))
+ return C;
+ this.negative = 0, this.words = null, this.length = 0, this.red = null, C !== null && ((E === "le" || E === "be") && (A = E, E = 10), this._init(C || 0, E || 10, A || "be"));
+ }
+ u(m) === "object" ? m.exports = f : g.BN = f, f.BN = f, f.wordSize = 26;
+ var y;
+ try {
+ y = e("buffer").Buffer;
+ } catch (C) {
+ }
+ f.isBN = function(E) {
+ return E instanceof f ? !0 : E !== null && u(E) === "object" && E.constructor.wordSize === f.wordSize && Array.isArray(E.words);
+ }, f.max = function(E, A) {
+ return E.cmp(A) > 0 ? E : A;
+ }, f.min = function(E, A) {
+ return E.cmp(A) < 0 ? E : A;
+ }, f.prototype._init = function(E, A, L) {
+ if (typeof E == "number")
+ return this._initNumber(E, A, L);
+ if (u(E) === "object")
+ return this._initArray(E, A, L);
+ A === "hex" && (A = 16), b(A === (A | 0) && A >= 2 && A <= 36), E = E.toString().replace(/\s+/g, "");
+ var $ = 0;
+ E[0] === "-" && $++, A === 16 ? this._parseHex(E, $) : this._parseBase(E, A, $), E[0] === "-" && (this.negative = 1), this._strip(), L === "le" && this._initArray(this.toArray(), A, L);
+ }, f.prototype._initNumber = function(E, A, L) {
+ E < 0 && (this.negative = 1, E = -E), E < 67108864 ? (this.words = [E & 67108863], this.length = 1) : E < 4503599627370496 ? (this.words = [E & 67108863, E / 67108864 & 67108863], this.length = 2) : (b(E < 9007199254740992), this.words = [E & 67108863, E / 67108864 & 67108863, 1], this.length = 3), L === "le" && this._initArray(this.toArray(), A, L);
+ }, f.prototype._initArray = function(E, A, L) {
+ if (b(typeof E.length == "number"), E.length <= 0)
+ return this.words = [0], this.length = 1, this;
+ this.length = Math.ceil(E.length / 3), this.words = new Array(this.length);
+ for (var $ = 0; $ < this.length; $++)
+ this.words[$] = 0;
+ var W, U, D = 0;
+ if (L === "be")
+ for ($ = E.length - 1, W = 0; $ >= 0; $ -= 3)
+ U = E[$] | E[$ - 1] << 8 | E[$ - 2] << 16, this.words[W] |= U << D & 67108863, this.words[W + 1] = U >>> 26 - D & 67108863, D += 24, D >= 26 && (D -= 26, W++);
+ else if (L === "le")
+ for ($ = 0, W = 0; $ < E.length; $ += 3)
+ U = E[$] | E[$ + 1] << 8 | E[$ + 2] << 16, this.words[W] |= U << D & 67108863, this.words[W + 1] = U >>> 26 - D & 67108863, D += 24, D >= 26 && (D -= 26, W++);
+ return this._strip();
+ };
+ function h(C, E, A) {
+ for (var L = 0, $ = Math.min(C.length, A), W = 0, U = E; U < $; U++) {
+ var D = C.charCodeAt(U) - 48;
+ L <<= 4;
+ var B;
+ D >= 49 && D <= 54 ? B = D - 49 + 10 : D >= 17 && D <= 22 ? B = D - 17 + 10 : B = D, L |= B, W |= B;
+ }
+ return b(!(W & 240), "Invalid character in " + C), L;
+ }
+ f.prototype._parseHex = function(E, A) {
+ this.length = Math.ceil((E.length - A) / 6), this.words = new Array(this.length);
+ for (var L = 0; L < this.length; L++)
+ this.words[L] = 0;
+ var $, W, U = 0;
+ for (L = E.length - 6, $ = 0; L >= A; L -= 6)
+ W = h(E, L, L + 6), this.words[$] |= W << U & 67108863, this.words[$ + 1] |= W >>> 26 - U & 4194303, U += 24, U >= 26 && (U -= 26, $++);
+ L + 6 !== A && (W = h(E, A, L + 6), this.words[$] |= W << U & 67108863, this.words[$ + 1] |= W >>> 26 - U & 4194303), this._strip();
+ };
+ function l(C, E, A, L) {
+ for (var $ = 0, W = 0, U = Math.min(C.length, A), D = E; D < U; D++) {
+ var B = C.charCodeAt(D) - 48;
+ $ *= L, B >= 49 ? W = B - 49 + 10 : B >= 17 ? W = B - 17 + 10 : W = B, b(B >= 0 && W < L, "Invalid character"), $ += W;
+ }
+ return $;
+ }
+ f.prototype._parseBase = function(E, A, L) {
+ this.words = [0], this.length = 1;
+ for (var $ = 0, W = 1; W <= 67108863; W *= A)
+ $++;
+ $--, W = W / A | 0;
+ for (var U = E.length - L, D = U % $, B = Math.min(U, U - D) + L, j = 0, V = L; V < B; V += $)
+ j = l(E, V, V + $, A), this.imuln(W), this.words[0] + j < 67108864 ? this.words[0] += j : this._iaddn(j);
+ if (D !== 0) {
+ var re = 1;
+ for (j = l(E, V, E.length, A), V = 0; V < D; V++)
+ re *= A;
+ this.imuln(re), this.words[0] + j < 67108864 ? this.words[0] += j : this._iaddn(j);
+ }
+ }, f.prototype.copy = function(E) {
+ E.words = new Array(this.length);
+ for (var A = 0; A < this.length; A++)
+ E.words[A] = this.words[A];
+ E.length = this.length, E.negative = this.negative, E.red = this.red;
+ };
+ function d(C, E) {
+ C.words = E.words, C.length = E.length, C.negative = E.negative, C.red = E.red;
+ }
+ if (f.prototype._move = function(E) {
+ d(E, this);
+ }, f.prototype.clone = function() {
+ var E = new f(null);
+ return this.copy(E), E;
+ }, f.prototype._expand = function(E) {
+ for (; this.length < E; )
+ this.words[this.length++] = 0;
+ return this;
+ }, f.prototype._strip = function() {
+ for (; this.length > 1 && this.words[this.length - 1] === 0; )
+ this.length--;
+ return this._normSign();
+ }, f.prototype._normSign = function() {
+ return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this;
+ }, typeof Symbol != "undefined" && typeof Symbol.for == "function")
+ try {
+ f.prototype[Symbol.for("nodejs.util.inspect.custom")] = s;
+ } catch (C) {
+ f.prototype.inspect = s;
+ }
+ else
+ f.prototype.inspect = s;
+ function s() {
+ return (this.red ? "";
+ }
+ var v = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], c = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], a = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
+ f.prototype.toString = function(E, A) {
+ E = E || 10, A = A | 0 || 1;
+ var L;
+ if (E === 16 || E === "hex") {
+ L = "";
+ for (var $ = 0, W = 0, U = 0; U < this.length; U++) {
+ var D = this.words[U], B = ((D << $ | W) & 16777215).toString(16);
+ W = D >>> 24 - $ & 16777215, W !== 0 || U !== this.length - 1 ? L = v[6 - B.length] + B + L : L = B + L, $ += 2, $ >= 26 && ($ -= 26, U--);
+ }
+ for (W !== 0 && (L = W.toString(16) + L); L.length % A !== 0; )
+ L = "0" + L;
+ return this.negative !== 0 && (L = "-" + L), L;
+ }
+ if (E === (E | 0) && E >= 2 && E <= 36) {
+ var j = c[E], V = a[E];
+ L = "";
+ var re = this.clone();
+ for (re.negative = 0; !re.isZero(); ) {
+ var ee = re.modrn(V).toString(E);
+ re = re.idivn(V), re.isZero() ? L = ee + L : L = v[j - ee.length] + ee + L;
+ }
+ for (this.isZero() && (L = "0" + L); L.length % A !== 0; )
+ L = "0" + L;
+ return this.negative !== 0 && (L = "-" + L), L;
+ }
+ b(!1, "Base should be between 2 and 36");
+ }, f.prototype.toNumber = function() {
+ var E = this.words[0];
+ return this.length === 2 ? E += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? E += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && b(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -E : E;
+ }, f.prototype.toJSON = function() {
+ return this.toString(16, 2);
+ }, y && (f.prototype.toBuffer = function(E, A) {
+ return this.toArrayLike(y, E, A);
+ }), f.prototype.toArray = function(E, A) {
+ return this.toArrayLike(Array, E, A);
+ };
+ var r = function(E, A) {
+ return E.allocUnsafe ? E.allocUnsafe(A) : new E(A);
+ };
+ f.prototype.toArrayLike = function(E, A, L) {
+ this._strip();
+ var $ = this.byteLength(), W = L || Math.max(1, $);
+ b($ <= W, "byte array longer than desired length"), b(W > 0, "Requested array length <= 0");
+ var U = r(E, W), D = A === "le" ? "LE" : "BE";
+ return this["_toArrayLike" + D](U, $), U;
+ }, f.prototype._toArrayLikeLE = function(E, A) {
+ for (var L = 0, $ = 0, W = 0, U = 0; W < this.length; W++) {
+ var D = this.words[W] << U | $;
+ E[L++] = D & 255, L < E.length && (E[L++] = D >> 8 & 255), L < E.length && (E[L++] = D >> 16 & 255), U === 6 ? (L < E.length && (E[L++] = D >> 24 & 255), $ = 0, U = 0) : ($ = D >>> 24, U += 2);
+ }
+ if (L < E.length)
+ for (E[L++] = $; L < E.length; )
+ E[L++] = 0;
+ }, f.prototype._toArrayLikeBE = function(E, A) {
+ for (var L = E.length - 1, $ = 0, W = 0, U = 0; W < this.length; W++) {
+ var D = this.words[W] << U | $;
+ E[L--] = D & 255, L >= 0 && (E[L--] = D >> 8 & 255), L >= 0 && (E[L--] = D >> 16 & 255), U === 6 ? (L >= 0 && (E[L--] = D >> 24 & 255), $ = 0, U = 0) : ($ = D >>> 24, U += 2);
+ }
+ if (L >= 0)
+ for (E[L--] = $; L >= 0; )
+ E[L--] = 0;
+ }, Math.clz32 ? f.prototype._countBits = function(E) {
+ return 32 - Math.clz32(E);
+ } : f.prototype._countBits = function(E) {
+ var A = E, L = 0;
+ return A >= 4096 && (L += 13, A >>>= 13), A >= 64 && (L += 7, A >>>= 7), A >= 8 && (L += 4, A >>>= 4), A >= 2 && (L += 2, A >>>= 2), L + A;
+ }, f.prototype._zeroBits = function(E) {
+ if (E === 0)
+ return 26;
+ var A = E, L = 0;
+ return A & 8191 || (L += 13, A >>>= 13), A & 127 || (L += 7, A >>>= 7), A & 15 || (L += 4, A >>>= 4), A & 3 || (L += 2, A >>>= 2), A & 1 || L++, L;
+ }, f.prototype.bitLength = function() {
+ var E = this.words[this.length - 1], A = this._countBits(E);
+ return (this.length - 1) * 26 + A;
+ };
+ function t(C) {
+ for (var E = new Array(C.bitLength()), A = 0; A < E.length; A++) {
+ var L = A / 26 | 0, $ = A % 26;
+ E[A] = C.words[L] >>> $ & 1;
+ }
+ return E;
+ }
+ f.prototype.zeroBits = function() {
+ if (this.isZero())
+ return 0;
+ for (var E = 0, A = 0; A < this.length; A++) {
+ var L = this._zeroBits(this.words[A]);
+ if (E += L, L !== 26)
+ break;
+ }
+ return E;
+ }, f.prototype.byteLength = function() {
+ return Math.ceil(this.bitLength() / 8);
+ }, f.prototype.toTwos = function(E) {
+ return this.negative !== 0 ? this.abs().inotn(E).iaddn(1) : this.clone();
+ }, f.prototype.fromTwos = function(E) {
+ return this.testn(E - 1) ? this.notn(E).iaddn(1).ineg() : this.clone();
+ }, f.prototype.isNeg = function() {
+ return this.negative !== 0;
+ }, f.prototype.neg = function() {
+ return this.clone().ineg();
+ }, f.prototype.ineg = function() {
+ return this.isZero() || (this.negative ^= 1), this;
+ }, f.prototype.iuor = function(E) {
+ for (; this.length < E.length; )
+ this.words[this.length++] = 0;
+ for (var A = 0; A < E.length; A++)
+ this.words[A] = this.words[A] | E.words[A];
+ return this._strip();
+ }, f.prototype.ior = function(E) {
+ return b((this.negative | E.negative) === 0), this.iuor(E);
+ }, f.prototype.or = function(E) {
+ return this.length > E.length ? this.clone().ior(E) : E.clone().ior(this);
+ }, f.prototype.uor = function(E) {
+ return this.length > E.length ? this.clone().iuor(E) : E.clone().iuor(this);
+ }, f.prototype.iuand = function(E) {
+ var A;
+ this.length > E.length ? A = E : A = this;
+ for (var L = 0; L < A.length; L++)
+ this.words[L] = this.words[L] & E.words[L];
+ return this.length = A.length, this._strip();
+ }, f.prototype.iand = function(E) {
+ return b((this.negative | E.negative) === 0), this.iuand(E);
+ }, f.prototype.and = function(E) {
+ return this.length > E.length ? this.clone().iand(E) : E.clone().iand(this);
+ }, f.prototype.uand = function(E) {
+ return this.length > E.length ? this.clone().iuand(E) : E.clone().iuand(this);
+ }, f.prototype.iuxor = function(E) {
+ var A, L;
+ this.length > E.length ? (A = this, L = E) : (A = E, L = this);
+ for (var $ = 0; $ < L.length; $++)
+ this.words[$] = A.words[$] ^ L.words[$];
+ if (this !== A)
+ for (; $ < A.length; $++)
+ this.words[$] = A.words[$];
+ return this.length = A.length, this._strip();
+ }, f.prototype.ixor = function(E) {
+ return b((this.negative | E.negative) === 0), this.iuxor(E);
+ }, f.prototype.xor = function(E) {
+ return this.length > E.length ? this.clone().ixor(E) : E.clone().ixor(this);
+ }, f.prototype.uxor = function(E) {
+ return this.length > E.length ? this.clone().iuxor(E) : E.clone().iuxor(this);
+ }, f.prototype.inotn = function(E) {
+ b(typeof E == "number" && E >= 0);
+ var A = Math.ceil(E / 26) | 0, L = E % 26;
+ this._expand(A), L > 0 && A--;
+ for (var $ = 0; $ < A; $++)
+ this.words[$] = ~this.words[$] & 67108863;
+ return L > 0 && (this.words[$] = ~this.words[$] & 67108863 >> 26 - L), this._strip();
+ }, f.prototype.notn = function(E) {
+ return this.clone().inotn(E);
+ }, f.prototype.setn = function(E, A) {
+ b(typeof E == "number" && E >= 0);
+ var L = E / 26 | 0, $ = E % 26;
+ return this._expand(L + 1), A ? this.words[L] = this.words[L] | 1 << $ : this.words[L] = this.words[L] & ~(1 << $), this._strip();
+ }, f.prototype.iadd = function(E) {
+ var A;
+ if (this.negative !== 0 && E.negative === 0)
+ return this.negative = 0, A = this.isub(E), this.negative ^= 1, this._normSign();
+ if (this.negative === 0 && E.negative !== 0)
+ return E.negative = 0, A = this.isub(E), E.negative = 1, A._normSign();
+ var L, $;
+ this.length > E.length ? (L = this, $ = E) : (L = E, $ = this);
+ for (var W = 0, U = 0; U < $.length; U++)
+ A = (L.words[U] | 0) + ($.words[U] | 0) + W, this.words[U] = A & 67108863, W = A >>> 26;
+ for (; W !== 0 && U < L.length; U++)
+ A = (L.words[U] | 0) + W, this.words[U] = A & 67108863, W = A >>> 26;
+ if (this.length = L.length, W !== 0)
+ this.words[this.length] = W, this.length++;
+ else if (L !== this)
+ for (; U < L.length; U++)
+ this.words[U] = L.words[U];
+ return this;
+ }, f.prototype.add = function(E) {
+ var A;
+ return E.negative !== 0 && this.negative === 0 ? (E.negative = 0, A = this.sub(E), E.negative ^= 1, A) : E.negative === 0 && this.negative !== 0 ? (this.negative = 0, A = E.sub(this), this.negative = 1, A) : this.length > E.length ? this.clone().iadd(E) : E.clone().iadd(this);
+ }, f.prototype.isub = function(E) {
+ if (E.negative !== 0) {
+ E.negative = 0;
+ var A = this.iadd(E);
+ return E.negative = 1, A._normSign();
+ } else if (this.negative !== 0)
+ return this.negative = 0, this.iadd(E), this.negative = 1, this._normSign();
+ var L = this.cmp(E);
+ if (L === 0)
+ return this.negative = 0, this.length = 1, this.words[0] = 0, this;
+ var $, W;
+ L > 0 ? ($ = this, W = E) : ($ = E, W = this);
+ for (var U = 0, D = 0; D < W.length; D++)
+ A = ($.words[D] | 0) - (W.words[D] | 0) + U, U = A >> 26, this.words[D] = A & 67108863;
+ for (; U !== 0 && D < $.length; D++)
+ A = ($.words[D] | 0) + U, U = A >> 26, this.words[D] = A & 67108863;
+ if (U === 0 && D < $.length && $ !== this)
+ for (; D < $.length; D++)
+ this.words[D] = $.words[D];
+ return this.length = Math.max(this.length, D), $ !== this && (this.negative = 1), this._strip();
+ }, f.prototype.sub = function(E) {
+ return this.clone().isub(E);
+ };
+ function i(C, E, A) {
+ A.negative = E.negative ^ C.negative;
+ var L = C.length + E.length | 0;
+ A.length = L, L = L - 1 | 0;
+ var $ = C.words[0] | 0, W = E.words[0] | 0, U = $ * W, D = U & 67108863, B = U / 67108864 | 0;
+ A.words[0] = D;
+ for (var j = 1; j < L; j++) {
+ for (var V = B >>> 26, re = B & 67108863, ee = Math.min(j, E.length - 1), ce = Math.max(0, j - C.length + 1); ce <= ee; ce++) {
+ var ve = j - ce | 0;
+ $ = C.words[ve] | 0, W = E.words[ce] | 0, U = $ * W + re, V += U / 67108864 | 0, re = U & 67108863;
+ }
+ A.words[j] = re | 0, B = V | 0;
+ }
+ return B !== 0 ? A.words[j] = B | 0 : A.length--, A._strip();
+ }
+ var n = function(E, A, L) {
+ var $ = E.words, W = A.words, U = L.words, D = 0, B, j, V, re = $[0] | 0, ee = re & 8191, ce = re >>> 13, ve = $[1] | 0, ge = ve & 8191, oe = ve >>> 13, J = $[2] | 0, Q = J & 8191, he = J >>> 13, ke = $[3] | 0, ne = ke & 8191, se = ke >>> 13, Ce = $[4] | 0, q = Ce & 8191, G = Ce >>> 13, Y = $[5] | 0, fe = Y & 8191, we = Y >>> 13, _e = $[6] | 0, je = _e & 8191, Ye = _e >>> 13, nt = $[7] | 0, ut = nt & 8191, ot = nt >>> 13, Ue = $[8] | 0, Ve = Ue & 8191, Qe = Ue >>> 13, tt = $[9] | 0, ae = tt & 8191, Re = tt >>> 13, be = W[0] | 0, Ee = be & 8191, pe = be >>> 13, Pe = W[1] | 0, te = Pe & 8191, He = Pe >>> 13, it = W[2] | 0, K = it & 8191, Me = it >>> 13, Le = W[3] | 0, ue = Le & 8191, Se = Le >>> 13, Ie = W[4] | 0, st = Ie & 8191, Ge = Ie >>> 13, rt = W[5] | 0, _t = rt & 8191, wt = rt >>> 13, Ot = W[6] | 0, pt = Ot & 8191, ct = Ot >>> 13, At = W[7] | 0, Pt = At & 8191, bt = At >>> 13, Kt = W[8] | 0, Ct = Kt & 8191, xt = Kt >>> 13, Ft = W[9] | 0, Lt = Ft & 8191, Et = Ft >>> 13;
+ L.negative = E.negative ^ A.negative, L.length = 19, B = Math.imul(ee, Ee), j = Math.imul(ee, pe), j = j + Math.imul(ce, Ee) | 0, V = Math.imul(ce, pe);
+ var Dr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Dr >>> 26) | 0, Dr &= 67108863, B = Math.imul(ge, Ee), j = Math.imul(ge, pe), j = j + Math.imul(oe, Ee) | 0, V = Math.imul(oe, pe), B = B + Math.imul(ee, te) | 0, j = j + Math.imul(ee, He) | 0, j = j + Math.imul(ce, te) | 0, V = V + Math.imul(ce, He) | 0;
+ var Or = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Or >>> 26) | 0, Or &= 67108863, B = Math.imul(Q, Ee), j = Math.imul(Q, pe), j = j + Math.imul(he, Ee) | 0, V = Math.imul(he, pe), B = B + Math.imul(ge, te) | 0, j = j + Math.imul(ge, He) | 0, j = j + Math.imul(oe, te) | 0, V = V + Math.imul(oe, He) | 0, B = B + Math.imul(ee, K) | 0, j = j + Math.imul(ee, Me) | 0, j = j + Math.imul(ce, K) | 0, V = V + Math.imul(ce, Me) | 0;
+ var Gr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, B = Math.imul(ne, Ee), j = Math.imul(ne, pe), j = j + Math.imul(se, Ee) | 0, V = Math.imul(se, pe), B = B + Math.imul(Q, te) | 0, j = j + Math.imul(Q, He) | 0, j = j + Math.imul(he, te) | 0, V = V + Math.imul(he, He) | 0, B = B + Math.imul(ge, K) | 0, j = j + Math.imul(ge, Me) | 0, j = j + Math.imul(oe, K) | 0, V = V + Math.imul(oe, Me) | 0, B = B + Math.imul(ee, ue) | 0, j = j + Math.imul(ee, Se) | 0, j = j + Math.imul(ce, ue) | 0, V = V + Math.imul(ce, Se) | 0;
+ var Nr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, B = Math.imul(q, Ee), j = Math.imul(q, pe), j = j + Math.imul(G, Ee) | 0, V = Math.imul(G, pe), B = B + Math.imul(ne, te) | 0, j = j + Math.imul(ne, He) | 0, j = j + Math.imul(se, te) | 0, V = V + Math.imul(se, He) | 0, B = B + Math.imul(Q, K) | 0, j = j + Math.imul(Q, Me) | 0, j = j + Math.imul(he, K) | 0, V = V + Math.imul(he, Me) | 0, B = B + Math.imul(ge, ue) | 0, j = j + Math.imul(ge, Se) | 0, j = j + Math.imul(oe, ue) | 0, V = V + Math.imul(oe, Se) | 0, B = B + Math.imul(ee, st) | 0, j = j + Math.imul(ee, Ge) | 0, j = j + Math.imul(ce, st) | 0, V = V + Math.imul(ce, Ge) | 0;
+ var Yr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, B = Math.imul(fe, Ee), j = Math.imul(fe, pe), j = j + Math.imul(we, Ee) | 0, V = Math.imul(we, pe), B = B + Math.imul(q, te) | 0, j = j + Math.imul(q, He) | 0, j = j + Math.imul(G, te) | 0, V = V + Math.imul(G, He) | 0, B = B + Math.imul(ne, K) | 0, j = j + Math.imul(ne, Me) | 0, j = j + Math.imul(se, K) | 0, V = V + Math.imul(se, Me) | 0, B = B + Math.imul(Q, ue) | 0, j = j + Math.imul(Q, Se) | 0, j = j + Math.imul(he, ue) | 0, V = V + Math.imul(he, Se) | 0, B = B + Math.imul(ge, st) | 0, j = j + Math.imul(ge, Ge) | 0, j = j + Math.imul(oe, st) | 0, V = V + Math.imul(oe, Ge) | 0, B = B + Math.imul(ee, _t) | 0, j = j + Math.imul(ee, wt) | 0, j = j + Math.imul(ce, _t) | 0, V = V + Math.imul(ce, wt) | 0;
+ var Qt = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Qt >>> 26) | 0, Qt &= 67108863, B = Math.imul(je, Ee), j = Math.imul(je, pe), j = j + Math.imul(Ye, Ee) | 0, V = Math.imul(Ye, pe), B = B + Math.imul(fe, te) | 0, j = j + Math.imul(fe, He) | 0, j = j + Math.imul(we, te) | 0, V = V + Math.imul(we, He) | 0, B = B + Math.imul(q, K) | 0, j = j + Math.imul(q, Me) | 0, j = j + Math.imul(G, K) | 0, V = V + Math.imul(G, Me) | 0, B = B + Math.imul(ne, ue) | 0, j = j + Math.imul(ne, Se) | 0, j = j + Math.imul(se, ue) | 0, V = V + Math.imul(se, Se) | 0, B = B + Math.imul(Q, st) | 0, j = j + Math.imul(Q, Ge) | 0, j = j + Math.imul(he, st) | 0, V = V + Math.imul(he, Ge) | 0, B = B + Math.imul(ge, _t) | 0, j = j + Math.imul(ge, wt) | 0, j = j + Math.imul(oe, _t) | 0, V = V + Math.imul(oe, wt) | 0, B = B + Math.imul(ee, pt) | 0, j = j + Math.imul(ee, ct) | 0, j = j + Math.imul(ce, pt) | 0, V = V + Math.imul(ce, ct) | 0;
+ var Xr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, B = Math.imul(ut, Ee), j = Math.imul(ut, pe), j = j + Math.imul(ot, Ee) | 0, V = Math.imul(ot, pe), B = B + Math.imul(je, te) | 0, j = j + Math.imul(je, He) | 0, j = j + Math.imul(Ye, te) | 0, V = V + Math.imul(Ye, He) | 0, B = B + Math.imul(fe, K) | 0, j = j + Math.imul(fe, Me) | 0, j = j + Math.imul(we, K) | 0, V = V + Math.imul(we, Me) | 0, B = B + Math.imul(q, ue) | 0, j = j + Math.imul(q, Se) | 0, j = j + Math.imul(G, ue) | 0, V = V + Math.imul(G, Se) | 0, B = B + Math.imul(ne, st) | 0, j = j + Math.imul(ne, Ge) | 0, j = j + Math.imul(se, st) | 0, V = V + Math.imul(se, Ge) | 0, B = B + Math.imul(Q, _t) | 0, j = j + Math.imul(Q, wt) | 0, j = j + Math.imul(he, _t) | 0, V = V + Math.imul(he, wt) | 0, B = B + Math.imul(ge, pt) | 0, j = j + Math.imul(ge, ct) | 0, j = j + Math.imul(oe, pt) | 0, V = V + Math.imul(oe, ct) | 0, B = B + Math.imul(ee, Pt) | 0, j = j + Math.imul(ee, bt) | 0, j = j + Math.imul(ce, Pt) | 0, V = V + Math.imul(ce, bt) | 0;
+ var Fr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, B = Math.imul(Ve, Ee), j = Math.imul(Ve, pe), j = j + Math.imul(Qe, Ee) | 0, V = Math.imul(Qe, pe), B = B + Math.imul(ut, te) | 0, j = j + Math.imul(ut, He) | 0, j = j + Math.imul(ot, te) | 0, V = V + Math.imul(ot, He) | 0, B = B + Math.imul(je, K) | 0, j = j + Math.imul(je, Me) | 0, j = j + Math.imul(Ye, K) | 0, V = V + Math.imul(Ye, Me) | 0, B = B + Math.imul(fe, ue) | 0, j = j + Math.imul(fe, Se) | 0, j = j + Math.imul(we, ue) | 0, V = V + Math.imul(we, Se) | 0, B = B + Math.imul(q, st) | 0, j = j + Math.imul(q, Ge) | 0, j = j + Math.imul(G, st) | 0, V = V + Math.imul(G, Ge) | 0, B = B + Math.imul(ne, _t) | 0, j = j + Math.imul(ne, wt) | 0, j = j + Math.imul(se, _t) | 0, V = V + Math.imul(se, wt) | 0, B = B + Math.imul(Q, pt) | 0, j = j + Math.imul(Q, ct) | 0, j = j + Math.imul(he, pt) | 0, V = V + Math.imul(he, ct) | 0, B = B + Math.imul(ge, Pt) | 0, j = j + Math.imul(ge, bt) | 0, j = j + Math.imul(oe, Pt) | 0, V = V + Math.imul(oe, bt) | 0, B = B + Math.imul(ee, Ct) | 0, j = j + Math.imul(ee, xt) | 0, j = j + Math.imul(ce, Ct) | 0, V = V + Math.imul(ce, xt) | 0;
+ var Lr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, B = Math.imul(ae, Ee), j = Math.imul(ae, pe), j = j + Math.imul(Re, Ee) | 0, V = Math.imul(Re, pe), B = B + Math.imul(Ve, te) | 0, j = j + Math.imul(Ve, He) | 0, j = j + Math.imul(Qe, te) | 0, V = V + Math.imul(Qe, He) | 0, B = B + Math.imul(ut, K) | 0, j = j + Math.imul(ut, Me) | 0, j = j + Math.imul(ot, K) | 0, V = V + Math.imul(ot, Me) | 0, B = B + Math.imul(je, ue) | 0, j = j + Math.imul(je, Se) | 0, j = j + Math.imul(Ye, ue) | 0, V = V + Math.imul(Ye, Se) | 0, B = B + Math.imul(fe, st) | 0, j = j + Math.imul(fe, Ge) | 0, j = j + Math.imul(we, st) | 0, V = V + Math.imul(we, Ge) | 0, B = B + Math.imul(q, _t) | 0, j = j + Math.imul(q, wt) | 0, j = j + Math.imul(G, _t) | 0, V = V + Math.imul(G, wt) | 0, B = B + Math.imul(ne, pt) | 0, j = j + Math.imul(ne, ct) | 0, j = j + Math.imul(se, pt) | 0, V = V + Math.imul(se, ct) | 0, B = B + Math.imul(Q, Pt) | 0, j = j + Math.imul(Q, bt) | 0, j = j + Math.imul(he, Pt) | 0, V = V + Math.imul(he, bt) | 0, B = B + Math.imul(ge, Ct) | 0, j = j + Math.imul(ge, xt) | 0, j = j + Math.imul(oe, Ct) | 0, V = V + Math.imul(oe, xt) | 0, B = B + Math.imul(ee, Lt) | 0, j = j + Math.imul(ee, Et) | 0, j = j + Math.imul(ce, Lt) | 0, V = V + Math.imul(ce, Et) | 0;
+ var Ur = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, B = Math.imul(ae, te), j = Math.imul(ae, He), j = j + Math.imul(Re, te) | 0, V = Math.imul(Re, He), B = B + Math.imul(Ve, K) | 0, j = j + Math.imul(Ve, Me) | 0, j = j + Math.imul(Qe, K) | 0, V = V + Math.imul(Qe, Me) | 0, B = B + Math.imul(ut, ue) | 0, j = j + Math.imul(ut, Se) | 0, j = j + Math.imul(ot, ue) | 0, V = V + Math.imul(ot, Se) | 0, B = B + Math.imul(je, st) | 0, j = j + Math.imul(je, Ge) | 0, j = j + Math.imul(Ye, st) | 0, V = V + Math.imul(Ye, Ge) | 0, B = B + Math.imul(fe, _t) | 0, j = j + Math.imul(fe, wt) | 0, j = j + Math.imul(we, _t) | 0, V = V + Math.imul(we, wt) | 0, B = B + Math.imul(q, pt) | 0, j = j + Math.imul(q, ct) | 0, j = j + Math.imul(G, pt) | 0, V = V + Math.imul(G, ct) | 0, B = B + Math.imul(ne, Pt) | 0, j = j + Math.imul(ne, bt) | 0, j = j + Math.imul(se, Pt) | 0, V = V + Math.imul(se, bt) | 0, B = B + Math.imul(Q, Ct) | 0, j = j + Math.imul(Q, xt) | 0, j = j + Math.imul(he, Ct) | 0, V = V + Math.imul(he, xt) | 0, B = B + Math.imul(ge, Lt) | 0, j = j + Math.imul(ge, Et) | 0, j = j + Math.imul(oe, Lt) | 0, V = V + Math.imul(oe, Et) | 0;
+ var vt = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (vt >>> 26) | 0, vt &= 67108863, B = Math.imul(ae, K), j = Math.imul(ae, Me), j = j + Math.imul(Re, K) | 0, V = Math.imul(Re, Me), B = B + Math.imul(Ve, ue) | 0, j = j + Math.imul(Ve, Se) | 0, j = j + Math.imul(Qe, ue) | 0, V = V + Math.imul(Qe, Se) | 0, B = B + Math.imul(ut, st) | 0, j = j + Math.imul(ut, Ge) | 0, j = j + Math.imul(ot, st) | 0, V = V + Math.imul(ot, Ge) | 0, B = B + Math.imul(je, _t) | 0, j = j + Math.imul(je, wt) | 0, j = j + Math.imul(Ye, _t) | 0, V = V + Math.imul(Ye, wt) | 0, B = B + Math.imul(fe, pt) | 0, j = j + Math.imul(fe, ct) | 0, j = j + Math.imul(we, pt) | 0, V = V + Math.imul(we, ct) | 0, B = B + Math.imul(q, Pt) | 0, j = j + Math.imul(q, bt) | 0, j = j + Math.imul(G, Pt) | 0, V = V + Math.imul(G, bt) | 0, B = B + Math.imul(ne, Ct) | 0, j = j + Math.imul(ne, xt) | 0, j = j + Math.imul(se, Ct) | 0, V = V + Math.imul(se, xt) | 0, B = B + Math.imul(Q, Lt) | 0, j = j + Math.imul(Q, Et) | 0, j = j + Math.imul(he, Lt) | 0, V = V + Math.imul(he, Et) | 0;
+ var Ke = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Ke >>> 26) | 0, Ke &= 67108863, B = Math.imul(ae, ue), j = Math.imul(ae, Se), j = j + Math.imul(Re, ue) | 0, V = Math.imul(Re, Se), B = B + Math.imul(Ve, st) | 0, j = j + Math.imul(Ve, Ge) | 0, j = j + Math.imul(Qe, st) | 0, V = V + Math.imul(Qe, Ge) | 0, B = B + Math.imul(ut, _t) | 0, j = j + Math.imul(ut, wt) | 0, j = j + Math.imul(ot, _t) | 0, V = V + Math.imul(ot, wt) | 0, B = B + Math.imul(je, pt) | 0, j = j + Math.imul(je, ct) | 0, j = j + Math.imul(Ye, pt) | 0, V = V + Math.imul(Ye, ct) | 0, B = B + Math.imul(fe, Pt) | 0, j = j + Math.imul(fe, bt) | 0, j = j + Math.imul(we, Pt) | 0, V = V + Math.imul(we, bt) | 0, B = B + Math.imul(q, Ct) | 0, j = j + Math.imul(q, xt) | 0, j = j + Math.imul(G, Ct) | 0, V = V + Math.imul(G, xt) | 0, B = B + Math.imul(ne, Lt) | 0, j = j + Math.imul(ne, Et) | 0, j = j + Math.imul(se, Lt) | 0, V = V + Math.imul(se, Et) | 0;
+ var me = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, B = Math.imul(ae, st), j = Math.imul(ae, Ge), j = j + Math.imul(Re, st) | 0, V = Math.imul(Re, Ge), B = B + Math.imul(Ve, _t) | 0, j = j + Math.imul(Ve, wt) | 0, j = j + Math.imul(Qe, _t) | 0, V = V + Math.imul(Qe, wt) | 0, B = B + Math.imul(ut, pt) | 0, j = j + Math.imul(ut, ct) | 0, j = j + Math.imul(ot, pt) | 0, V = V + Math.imul(ot, ct) | 0, B = B + Math.imul(je, Pt) | 0, j = j + Math.imul(je, bt) | 0, j = j + Math.imul(Ye, Pt) | 0, V = V + Math.imul(Ye, bt) | 0, B = B + Math.imul(fe, Ct) | 0, j = j + Math.imul(fe, xt) | 0, j = j + Math.imul(we, Ct) | 0, V = V + Math.imul(we, xt) | 0, B = B + Math.imul(q, Lt) | 0, j = j + Math.imul(q, Et) | 0, j = j + Math.imul(G, Lt) | 0, V = V + Math.imul(G, Et) | 0;
+ var Fe = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Fe >>> 26) | 0, Fe &= 67108863, B = Math.imul(ae, _t), j = Math.imul(ae, wt), j = j + Math.imul(Re, _t) | 0, V = Math.imul(Re, wt), B = B + Math.imul(Ve, pt) | 0, j = j + Math.imul(Ve, ct) | 0, j = j + Math.imul(Qe, pt) | 0, V = V + Math.imul(Qe, ct) | 0, B = B + Math.imul(ut, Pt) | 0, j = j + Math.imul(ut, bt) | 0, j = j + Math.imul(ot, Pt) | 0, V = V + Math.imul(ot, bt) | 0, B = B + Math.imul(je, Ct) | 0, j = j + Math.imul(je, xt) | 0, j = j + Math.imul(Ye, Ct) | 0, V = V + Math.imul(Ye, xt) | 0, B = B + Math.imul(fe, Lt) | 0, j = j + Math.imul(fe, Et) | 0, j = j + Math.imul(we, Lt) | 0, V = V + Math.imul(we, Et) | 0;
+ var Be = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, B = Math.imul(ae, pt), j = Math.imul(ae, ct), j = j + Math.imul(Re, pt) | 0, V = Math.imul(Re, ct), B = B + Math.imul(Ve, Pt) | 0, j = j + Math.imul(Ve, bt) | 0, j = j + Math.imul(Qe, Pt) | 0, V = V + Math.imul(Qe, bt) | 0, B = B + Math.imul(ut, Ct) | 0, j = j + Math.imul(ut, xt) | 0, j = j + Math.imul(ot, Ct) | 0, V = V + Math.imul(ot, xt) | 0, B = B + Math.imul(je, Lt) | 0, j = j + Math.imul(je, Et) | 0, j = j + Math.imul(Ye, Lt) | 0, V = V + Math.imul(Ye, Et) | 0;
+ var dt = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (dt >>> 26) | 0, dt &= 67108863, B = Math.imul(ae, Pt), j = Math.imul(ae, bt), j = j + Math.imul(Re, Pt) | 0, V = Math.imul(Re, bt), B = B + Math.imul(Ve, Ct) | 0, j = j + Math.imul(Ve, xt) | 0, j = j + Math.imul(Qe, Ct) | 0, V = V + Math.imul(Qe, xt) | 0, B = B + Math.imul(ut, Lt) | 0, j = j + Math.imul(ut, Et) | 0, j = j + Math.imul(ot, Lt) | 0, V = V + Math.imul(ot, Et) | 0;
+ var St = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, B = Math.imul(ae, Ct), j = Math.imul(ae, xt), j = j + Math.imul(Re, Ct) | 0, V = Math.imul(Re, xt), B = B + Math.imul(Ve, Lt) | 0, j = j + Math.imul(Ve, Et) | 0, j = j + Math.imul(Qe, Lt) | 0, V = V + Math.imul(Qe, Et) | 0;
+ var Ht = (D + B | 0) + ((j & 8191) << 13) | 0;
+ D = (V + (j >>> 13) | 0) + (Ht >>> 26) | 0, Ht &= 67108863, B = Math.imul(ae, Lt), j = Math.imul(ae, Et), j = j + Math.imul(Re, Lt) | 0, V = Math.imul(Re, Et);
+ var lr = (D + B | 0) + ((j & 8191) << 13) | 0;
+ return D = (V + (j >>> 13) | 0) + (lr >>> 26) | 0, lr &= 67108863, U[0] = Dr, U[1] = Or, U[2] = Gr, U[3] = Nr, U[4] = Yr, U[5] = Qt, U[6] = Xr, U[7] = Fr, U[8] = Lr, U[9] = Ur, U[10] = vt, U[11] = Ke, U[12] = me, U[13] = Fe, U[14] = Be, U[15] = dt, U[16] = St, U[17] = Ht, U[18] = lr, D !== 0 && (U[19] = D, L.length++), L;
+ };
+ Math.imul || (n = i);
+ function o(C, E, A) {
+ A.negative = E.negative ^ C.negative, A.length = C.length + E.length;
+ for (var L = 0, $ = 0, W = 0; W < A.length - 1; W++) {
+ var U = $;
+ $ = 0;
+ for (var D = L & 67108863, B = Math.min(W, E.length - 1), j = Math.max(0, W - C.length + 1); j <= B; j++) {
+ var V = W - j, re = C.words[V] | 0, ee = E.words[j] | 0, ce = re * ee, ve = ce & 67108863;
+ U = U + (ce / 67108864 | 0) | 0, ve = ve + D | 0, D = ve & 67108863, U = U + (ve >>> 26) | 0, $ += U >>> 26, U &= 67108863;
+ }
+ A.words[W] = D, L = U, U = $;
+ }
+ return L !== 0 ? A.words[W] = L : A.length--, A._strip();
+ }
+ function p(C, E, A) {
+ return o(C, E, A);
+ }
+ f.prototype.mulTo = function(E, A) {
+ var L, $ = this.length + E.length;
+ return this.length === 10 && E.length === 10 ? L = n(this, E, A) : $ < 63 ? L = i(this, E, A) : $ < 1024 ? L = o(this, E, A) : L = p(this, E, A), L;
+ }, f.prototype.mul = function(E) {
+ var A = new f(null);
+ return A.words = new Array(this.length + E.length), this.mulTo(E, A);
+ }, f.prototype.mulf = function(E) {
+ var A = new f(null);
+ return A.words = new Array(this.length + E.length), p(this, E, A);
+ }, f.prototype.imul = function(E) {
+ return this.clone().mulTo(E, this);
+ }, f.prototype.imuln = function(E) {
+ var A = E < 0;
+ A && (E = -E), b(typeof E == "number"), b(E < 67108864);
+ for (var L = 0, $ = 0; $ < this.length; $++) {
+ var W = (this.words[$] | 0) * E, U = (W & 67108863) + (L & 67108863);
+ L >>= 26, L += W / 67108864 | 0, L += U >>> 26, this.words[$] = U & 67108863;
+ }
+ return L !== 0 && (this.words[$] = L, this.length++), A ? this.ineg() : this;
+ }, f.prototype.muln = function(E) {
+ return this.clone().imuln(E);
+ }, f.prototype.sqr = function() {
+ return this.mul(this);
+ }, f.prototype.isqr = function() {
+ return this.imul(this.clone());
+ }, f.prototype.pow = function(E) {
+ var A = t(E);
+ if (A.length === 0)
+ return new f(1);
+ for (var L = this, $ = 0; $ < A.length && A[$] === 0; $++, L = L.sqr())
+ ;
+ if (++$ < A.length)
+ for (var W = L.sqr(); $ < A.length; $++, W = W.sqr())
+ A[$] !== 0 && (L = L.mul(W));
+ return L;
+ }, f.prototype.iushln = function(E) {
+ b(typeof E == "number" && E >= 0);
+ var A = E % 26, L = (E - A) / 26, $ = 67108863 >>> 26 - A << 26 - A, W;
+ if (A !== 0) {
+ var U = 0;
+ for (W = 0; W < this.length; W++) {
+ var D = this.words[W] & $, B = (this.words[W] | 0) - D << A;
+ this.words[W] = B | U, U = D >>> 26 - A;
+ }
+ U && (this.words[W] = U, this.length++);
+ }
+ if (L !== 0) {
+ for (W = this.length - 1; W >= 0; W--)
+ this.words[W + L] = this.words[W];
+ for (W = 0; W < L; W++)
+ this.words[W] = 0;
+ this.length += L;
+ }
+ return this._strip();
+ }, f.prototype.ishln = function(E) {
+ return b(this.negative === 0), this.iushln(E);
+ }, f.prototype.iushrn = function(E, A, L) {
+ b(typeof E == "number" && E >= 0);
+ var $;
+ A ? $ = (A - A % 26) / 26 : $ = 0;
+ var W = E % 26, U = Math.min((E - W) / 26, this.length), D = 67108863 ^ 67108863 >>> W << W, B = L;
+ if ($ -= U, $ = Math.max(0, $), B) {
+ for (var j = 0; j < U; j++)
+ B.words[j] = this.words[j];
+ B.length = U;
+ }
+ if (U !== 0)
+ if (this.length > U)
+ for (this.length -= U, j = 0; j < this.length; j++)
+ this.words[j] = this.words[j + U];
+ else
+ this.words[0] = 0, this.length = 1;
+ var V = 0;
+ for (j = this.length - 1; j >= 0 && (V !== 0 || j >= $); j--) {
+ var re = this.words[j] | 0;
+ this.words[j] = V << 26 - W | re >>> W, V = re & D;
+ }
+ return B && V !== 0 && (B.words[B.length++] = V), this.length === 0 && (this.words[0] = 0, this.length = 1), this._strip();
+ }, f.prototype.ishrn = function(E, A, L) {
+ return b(this.negative === 0), this.iushrn(E, A, L);
+ }, f.prototype.shln = function(E) {
+ return this.clone().ishln(E);
+ }, f.prototype.ushln = function(E) {
+ return this.clone().iushln(E);
+ }, f.prototype.shrn = function(E) {
+ return this.clone().ishrn(E);
+ }, f.prototype.ushrn = function(E) {
+ return this.clone().iushrn(E);
+ }, f.prototype.testn = function(E) {
+ b(typeof E == "number" && E >= 0);
+ var A = E % 26, L = (E - A) / 26, $ = 1 << A;
+ if (this.length <= L)
+ return !1;
+ var W = this.words[L];
+ return !!(W & $);
+ }, f.prototype.imaskn = function(E) {
+ b(typeof E == "number" && E >= 0);
+ var A = E % 26, L = (E - A) / 26;
+ if (b(this.negative === 0, "imaskn works only with positive numbers"), this.length <= L)
+ return this;
+ if (A !== 0 && L++, this.length = Math.min(L, this.length), A !== 0) {
+ var $ = 67108863 ^ 67108863 >>> A << A;
+ this.words[this.length - 1] &= $;
+ }
+ return this._strip();
+ }, f.prototype.maskn = function(E) {
+ return this.clone().imaskn(E);
+ }, f.prototype.iaddn = function(E) {
+ return b(typeof E == "number"), b(E < 67108864), E < 0 ? this.isubn(-E) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) <= E ? (this.words[0] = E - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(E), this.negative = 1, this) : this._iaddn(E);
+ }, f.prototype._iaddn = function(E) {
+ this.words[0] += E;
+ for (var A = 0; A < this.length && this.words[A] >= 67108864; A++)
+ this.words[A] -= 67108864, A === this.length - 1 ? this.words[A + 1] = 1 : this.words[A + 1]++;
+ return this.length = Math.max(this.length, A + 1), this;
+ }, f.prototype.isubn = function(E) {
+ if (b(typeof E == "number"), b(E < 67108864), E < 0)
+ return this.iaddn(-E);
+ if (this.negative !== 0)
+ return this.negative = 0, this.iaddn(E), this.negative = 1, this;
+ if (this.words[0] -= E, this.length === 1 && this.words[0] < 0)
+ this.words[0] = -this.words[0], this.negative = 1;
+ else
+ for (var A = 0; A < this.length && this.words[A] < 0; A++)
+ this.words[A] += 67108864, this.words[A + 1] -= 1;
+ return this._strip();
+ }, f.prototype.addn = function(E) {
+ return this.clone().iaddn(E);
+ }, f.prototype.subn = function(E) {
+ return this.clone().isubn(E);
+ }, f.prototype.iabs = function() {
+ return this.negative = 0, this;
+ }, f.prototype.abs = function() {
+ return this.clone().iabs();
+ }, f.prototype._ishlnsubmul = function(E, A, L) {
+ var $ = E.length + L, W;
+ this._expand($);
+ var U, D = 0;
+ for (W = 0; W < E.length; W++) {
+ U = (this.words[W + L] | 0) + D;
+ var B = (E.words[W] | 0) * A;
+ U -= B & 67108863, D = (U >> 26) - (B / 67108864 | 0), this.words[W + L] = U & 67108863;
+ }
+ for (; W < this.length - L; W++)
+ U = (this.words[W + L] | 0) + D, D = U >> 26, this.words[W + L] = U & 67108863;
+ if (D === 0)
+ return this._strip();
+ for (b(D === -1), D = 0, W = 0; W < this.length; W++)
+ U = -(this.words[W] | 0) + D, D = U >> 26, this.words[W] = U & 67108863;
+ return this.negative = 1, this._strip();
+ }, f.prototype._wordDiv = function(E, A) {
+ var L = this.length - E.length, $ = this.clone(), W = E, U = W.words[W.length - 1] | 0, D = this._countBits(U);
+ L = 26 - D, L !== 0 && (W = W.ushln(L), $.iushln(L), U = W.words[W.length - 1] | 0);
+ var B = $.length - W.length, j;
+ if (A !== "mod") {
+ j = new f(null), j.length = B + 1, j.words = new Array(j.length);
+ for (var V = 0; V < j.length; V++)
+ j.words[V] = 0;
+ }
+ var re = $.clone()._ishlnsubmul(W, 1, B);
+ re.negative === 0 && ($ = re, j && (j.words[B] = 1));
+ for (var ee = B - 1; ee >= 0; ee--) {
+ var ce = ($.words[W.length + ee] | 0) * 67108864 + ($.words[W.length + ee - 1] | 0);
+ for (ce = Math.min(ce / U | 0, 67108863), $._ishlnsubmul(W, ce, ee); $.negative !== 0; )
+ ce--, $.negative = 0, $._ishlnsubmul(W, 1, ee), $.isZero() || ($.negative ^= 1);
+ j && (j.words[ee] = ce);
+ }
+ return j && j._strip(), $._strip(), A !== "div" && L !== 0 && $.iushrn(L), {
+ div: j || null,
+ mod: $
+ };
+ }, f.prototype.divmod = function(E, A, L) {
+ if (b(!E.isZero()), this.isZero())
+ return {
+ div: new f(0),
+ mod: new f(0)
+ };
+ var $, W, U;
+ return this.negative !== 0 && E.negative === 0 ? (U = this.neg().divmod(E, A), A !== "mod" && ($ = U.div.neg()), A !== "div" && (W = U.mod.neg(), L && W.negative !== 0 && W.iadd(E)), {
+ div: $,
+ mod: W
+ }) : this.negative === 0 && E.negative !== 0 ? (U = this.divmod(E.neg(), A), A !== "mod" && ($ = U.div.neg()), {
+ div: $,
+ mod: U.mod
+ }) : this.negative & E.negative ? (U = this.neg().divmod(E.neg(), A), A !== "div" && (W = U.mod.neg(), L && W.negative !== 0 && W.isub(E)), {
+ div: U.div,
+ mod: W
+ }) : E.length > this.length || this.cmp(E) < 0 ? {
+ div: new f(0),
+ mod: this
+ } : E.length === 1 ? A === "div" ? {
+ div: this.divn(E.words[0]),
+ mod: null
+ } : A === "mod" ? {
+ div: null,
+ mod: new f(this.modrn(E.words[0]))
+ } : {
+ div: this.divn(E.words[0]),
+ mod: new f(this.modrn(E.words[0]))
+ } : this._wordDiv(E, A);
+ }, f.prototype.div = function(E) {
+ return this.divmod(E, "div", !1).div;
+ }, f.prototype.mod = function(E) {
+ return this.divmod(E, "mod", !1).mod;
+ }, f.prototype.umod = function(E) {
+ return this.divmod(E, "mod", !0).mod;
+ }, f.prototype.divRound = function(E) {
+ var A = this.divmod(E);
+ if (A.mod.isZero())
+ return A.div;
+ var L = A.div.negative !== 0 ? A.mod.isub(E) : A.mod, $ = E.ushrn(1), W = E.andln(1), U = L.cmp($);
+ return U < 0 || W === 1 && U === 0 ? A.div : A.div.negative !== 0 ? A.div.isubn(1) : A.div.iaddn(1);
+ }, f.prototype.modrn = function(E) {
+ var A = E < 0;
+ A && (E = -E), b(E <= 67108863);
+ for (var L = (1 << 26) % E, $ = 0, W = this.length - 1; W >= 0; W--)
+ $ = (L * $ + (this.words[W] | 0)) % E;
+ return A ? -$ : $;
+ }, f.prototype.modn = function(E) {
+ return this.modrn(E);
+ }, f.prototype.idivn = function(E) {
+ var A = E < 0;
+ A && (E = -E), b(E <= 67108863);
+ for (var L = 0, $ = this.length - 1; $ >= 0; $--) {
+ var W = (this.words[$] | 0) + L * 67108864;
+ this.words[$] = W / E | 0, L = W % E;
+ }
+ return this._strip(), A ? this.ineg() : this;
+ }, f.prototype.divn = function(E) {
+ return this.clone().idivn(E);
+ }, f.prototype.egcd = function(E) {
+ b(E.negative === 0), b(!E.isZero());
+ var A = this, L = E.clone();
+ A.negative !== 0 ? A = A.umod(E) : A = A.clone();
+ for (var $ = new f(1), W = new f(0), U = new f(0), D = new f(1), B = 0; A.isEven() && L.isEven(); )
+ A.iushrn(1), L.iushrn(1), ++B;
+ for (var j = L.clone(), V = A.clone(); !A.isZero(); ) {
+ for (var re = 0, ee = 1; !(A.words[0] & ee) && re < 26; ++re, ee <<= 1)
+ ;
+ if (re > 0)
+ for (A.iushrn(re); re-- > 0; )
+ ($.isOdd() || W.isOdd()) && ($.iadd(j), W.isub(V)), $.iushrn(1), W.iushrn(1);
+ for (var ce = 0, ve = 1; !(L.words[0] & ve) && ce < 26; ++ce, ve <<= 1)
+ ;
+ if (ce > 0)
+ for (L.iushrn(ce); ce-- > 0; )
+ (U.isOdd() || D.isOdd()) && (U.iadd(j), D.isub(V)), U.iushrn(1), D.iushrn(1);
+ A.cmp(L) >= 0 ? (A.isub(L), $.isub(U), W.isub(D)) : (L.isub(A), U.isub($), D.isub(W));
+ }
+ return {
+ a: U,
+ b: D,
+ gcd: L.iushln(B)
+ };
+ }, f.prototype._invmp = function(E) {
+ b(E.negative === 0), b(!E.isZero());
+ var A = this, L = E.clone();
+ A.negative !== 0 ? A = A.umod(E) : A = A.clone();
+ for (var $ = new f(1), W = new f(0), U = L.clone(); A.cmpn(1) > 0 && L.cmpn(1) > 0; ) {
+ for (var D = 0, B = 1; !(A.words[0] & B) && D < 26; ++D, B <<= 1)
+ ;
+ if (D > 0)
+ for (A.iushrn(D); D-- > 0; )
+ $.isOdd() && $.iadd(U), $.iushrn(1);
+ for (var j = 0, V = 1; !(L.words[0] & V) && j < 26; ++j, V <<= 1)
+ ;
+ if (j > 0)
+ for (L.iushrn(j); j-- > 0; )
+ W.isOdd() && W.iadd(U), W.iushrn(1);
+ A.cmp(L) >= 0 ? (A.isub(L), $.isub(W)) : (L.isub(A), W.isub($));
+ }
+ var re;
+ return A.cmpn(1) === 0 ? re = $ : re = W, re.cmpn(0) < 0 && re.iadd(E), re;
+ }, f.prototype.gcd = function(E) {
+ if (this.isZero())
+ return E.abs();
+ if (E.isZero())
+ return this.abs();
+ var A = this.clone(), L = E.clone();
+ A.negative = 0, L.negative = 0;
+ for (var $ = 0; A.isEven() && L.isEven(); $++)
+ A.iushrn(1), L.iushrn(1);
+ do {
+ for (; A.isEven(); )
+ A.iushrn(1);
+ for (; L.isEven(); )
+ L.iushrn(1);
+ var W = A.cmp(L);
+ if (W < 0) {
+ var U = A;
+ A = L, L = U;
+ } else if (W === 0 || L.cmpn(1) === 0)
+ break;
+ A.isub(L);
+ } while (!0);
+ return L.iushln($);
+ }, f.prototype.invm = function(E) {
+ return this.egcd(E).a.umod(E);
+ }, f.prototype.isEven = function() {
+ return (this.words[0] & 1) === 0;
+ }, f.prototype.isOdd = function() {
+ return (this.words[0] & 1) === 1;
+ }, f.prototype.andln = function(E) {
+ return this.words[0] & E;
+ }, f.prototype.bincn = function(E) {
+ b(typeof E == "number");
+ var A = E % 26, L = (E - A) / 26, $ = 1 << A;
+ if (this.length <= L)
+ return this._expand(L + 1), this.words[L] |= $, this;
+ for (var W = $, U = L; W !== 0 && U < this.length; U++) {
+ var D = this.words[U] | 0;
+ D += W, W = D >>> 26, D &= 67108863, this.words[U] = D;
+ }
+ return W !== 0 && (this.words[U] = W, this.length++), this;
+ }, f.prototype.isZero = function() {
+ return this.length === 1 && this.words[0] === 0;
+ }, f.prototype.cmpn = function(E) {
+ var A = E < 0;
+ if (this.negative !== 0 && !A)
+ return -1;
+ if (this.negative === 0 && A)
+ return 1;
+ this._strip();
+ var L;
+ if (this.length > 1)
+ L = 1;
+ else {
+ A && (E = -E), b(E <= 67108863, "Number is too big");
+ var $ = this.words[0] | 0;
+ L = $ === E ? 0 : $ < E ? -1 : 1;
+ }
+ return this.negative !== 0 ? -L | 0 : L;
+ }, f.prototype.cmp = function(E) {
+ if (this.negative !== 0 && E.negative === 0)
+ return -1;
+ if (this.negative === 0 && E.negative !== 0)
+ return 1;
+ var A = this.ucmp(E);
+ return this.negative !== 0 ? -A | 0 : A;
+ }, f.prototype.ucmp = function(E) {
+ if (this.length > E.length)
+ return 1;
+ if (this.length < E.length)
+ return -1;
+ for (var A = 0, L = this.length - 1; L >= 0; L--) {
+ var $ = this.words[L] | 0, W = E.words[L] | 0;
+ if ($ !== W) {
+ $ < W ? A = -1 : $ > W && (A = 1);
+ break;
+ }
+ }
+ return A;
+ }, f.prototype.gtn = function(E) {
+ return this.cmpn(E) === 1;
+ }, f.prototype.gt = function(E) {
+ return this.cmp(E) === 1;
+ }, f.prototype.gten = function(E) {
+ return this.cmpn(E) >= 0;
+ }, f.prototype.gte = function(E) {
+ return this.cmp(E) >= 0;
+ }, f.prototype.ltn = function(E) {
+ return this.cmpn(E) === -1;
+ }, f.prototype.lt = function(E) {
+ return this.cmp(E) === -1;
+ }, f.prototype.lten = function(E) {
+ return this.cmpn(E) <= 0;
+ }, f.prototype.lte = function(E) {
+ return this.cmp(E) <= 0;
+ }, f.prototype.eqn = function(E) {
+ return this.cmpn(E) === 0;
+ }, f.prototype.eq = function(E) {
+ return this.cmp(E) === 0;
+ }, f.red = function(E) {
+ return new I(E);
+ }, f.prototype.toRed = function(E) {
+ return b(!this.red, "Already a number in reduction context"), b(this.negative === 0, "red works only with positives"), E.convertTo(this)._forceRed(E);
+ }, f.prototype.fromRed = function() {
+ return b(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this);
+ }, f.prototype._forceRed = function(E) {
+ return this.red = E, this;
+ }, f.prototype.forceRed = function(E) {
+ return b(!this.red, "Already a number in reduction context"), this._forceRed(E);
+ }, f.prototype.redAdd = function(E) {
+ return b(this.red, "redAdd works only with red numbers"), this.red.add(this, E);
+ }, f.prototype.redIAdd = function(E) {
+ return b(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, E);
+ }, f.prototype.redSub = function(E) {
+ return b(this.red, "redSub works only with red numbers"), this.red.sub(this, E);
+ }, f.prototype.redISub = function(E) {
+ return b(this.red, "redISub works only with red numbers"), this.red.isub(this, E);
+ }, f.prototype.redShl = function(E) {
+ return b(this.red, "redShl works only with red numbers"), this.red.shl(this, E);
+ }, f.prototype.redMul = function(E) {
+ return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.mul(this, E);
+ }, f.prototype.redIMul = function(E) {
+ return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.imul(this, E);
+ }, f.prototype.redSqr = function() {
+ return b(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this);
+ }, f.prototype.redISqr = function() {
+ return b(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this);
+ }, f.prototype.redSqrt = function() {
+ return b(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this);
+ }, f.prototype.redInvm = function() {
+ return b(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this);
+ }, f.prototype.redNeg = function() {
+ return b(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this);
+ }, f.prototype.redPow = function(E) {
+ return b(this.red && !E.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, E);
+ };
+ var O = {
+ k256: null,
+ p224: null,
+ p192: null,
+ p25519: null
+ };
+ function P(C, E) {
+ this.name = C, this.p = new f(E, 16), this.n = this.p.bitLength(), this.k = new f(1).iushln(this.n).isub(this.p), this.tmp = this._tmp();
+ }
+ P.prototype._tmp = function() {
+ var E = new f(null);
+ return E.words = new Array(Math.ceil(this.n / 13)), E;
+ }, P.prototype.ireduce = function(E) {
+ var A = E, L;
+ do
+ this.split(A, this.tmp), A = this.imulK(A), A = A.iadd(this.tmp), L = A.bitLength();
+ while (L > this.n);
+ var $ = L < this.n ? -1 : A.ucmp(this.p);
+ return $ === 0 ? (A.words[0] = 0, A.length = 1) : $ > 0 ? A.isub(this.p) : A.strip !== void 0 ? A.strip() : A._strip(), A;
+ }, P.prototype.split = function(E, A) {
+ E.iushrn(this.n, 0, A);
+ }, P.prototype.imulK = function(E) {
+ return E.imul(this.k);
+ };
+ function F() {
+ P.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");
+ }
+ w(F, P), F.prototype.split = function(E, A) {
+ for (var L = 4194303, $ = Math.min(E.length, 9), W = 0; W < $; W++)
+ A.words[W] = E.words[W];
+ if (A.length = $, E.length <= 9) {
+ E.words[0] = 0, E.length = 1;
+ return;
+ }
+ var U = E.words[9];
+ for (A.words[A.length++] = U & L, W = 10; W < E.length; W++) {
+ var D = E.words[W] | 0;
+ E.words[W - 10] = (D & L) << 4 | U >>> 22, U = D;
+ }
+ U >>>= 22, E.words[W - 10] = U, U === 0 && E.length > 10 ? E.length -= 10 : E.length -= 9;
+ }, F.prototype.imulK = function(E) {
+ E.words[E.length] = 0, E.words[E.length + 1] = 0, E.length += 2;
+ for (var A = 0, L = 0; L < E.length; L++) {
+ var $ = E.words[L] | 0;
+ A += $ * 977, E.words[L] = A & 67108863, A = $ * 64 + (A / 67108864 | 0);
+ }
+ return E.words[E.length - 1] === 0 && (E.length--, E.words[E.length - 1] === 0 && E.length--), E;
+ };
+ function z() {
+ P.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");
+ }
+ w(z, P);
+ function N() {
+ P.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");
+ }
+ w(N, P);
+ function M() {
+ P.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");
+ }
+ w(M, P), M.prototype.imulK = function(E) {
+ for (var A = 0, L = 0; L < E.length; L++) {
+ var $ = (E.words[L] | 0) * 19 + A, W = $ & 67108863;
+ $ >>>= 26, E.words[L] = W, A = $;
+ }
+ return A !== 0 && (E.words[E.length++] = A), E;
+ }, f._prime = function(E) {
+ if (O[E])
+ return O[E];
+ var A;
+ if (E === "k256")
+ A = new F();
+ else if (E === "p224")
+ A = new z();
+ else if (E === "p192")
+ A = new N();
+ else if (E === "p25519")
+ A = new M();
+ else
+ throw new Error("Unknown prime " + E);
+ return O[E] = A, A;
+ };
+ function I(C) {
+ if (typeof C == "string") {
+ var E = f._prime(C);
+ this.m = E.p, this.prime = E;
+ } else
+ b(C.gtn(1), "modulus must be greater than 1"), this.m = C, this.prime = null;
+ }
+ I.prototype._verify1 = function(E) {
+ b(E.negative === 0, "red works only with positives"), b(E.red, "red works only with red numbers");
+ }, I.prototype._verify2 = function(E, A) {
+ b((E.negative | A.negative) === 0, "red works only with positives"), b(E.red && E.red === A.red, "red works only with red numbers");
+ }, I.prototype.imod = function(E) {
+ return this.prime ? this.prime.ireduce(E)._forceRed(this) : (d(E, E.umod(this.m)._forceRed(this)), E);
+ }, I.prototype.neg = function(E) {
+ return E.isZero() ? E.clone() : this.m.sub(E)._forceRed(this);
+ }, I.prototype.add = function(E, A) {
+ this._verify2(E, A);
+ var L = E.add(A);
+ return L.cmp(this.m) >= 0 && L.isub(this.m), L._forceRed(this);
+ }, I.prototype.iadd = function(E, A) {
+ this._verify2(E, A);
+ var L = E.iadd(A);
+ return L.cmp(this.m) >= 0 && L.isub(this.m), L;
+ }, I.prototype.sub = function(E, A) {
+ this._verify2(E, A);
+ var L = E.sub(A);
+ return L.cmpn(0) < 0 && L.iadd(this.m), L._forceRed(this);
+ }, I.prototype.isub = function(E, A) {
+ this._verify2(E, A);
+ var L = E.isub(A);
+ return L.cmpn(0) < 0 && L.iadd(this.m), L;
+ }, I.prototype.shl = function(E, A) {
+ return this._verify1(E), this.imod(E.ushln(A));
+ }, I.prototype.imul = function(E, A) {
+ return this._verify2(E, A), this.imod(E.imul(A));
+ }, I.prototype.mul = function(E, A) {
+ return this._verify2(E, A), this.imod(E.mul(A));
+ }, I.prototype.isqr = function(E) {
+ return this.imul(E, E.clone());
+ }, I.prototype.sqr = function(E) {
+ return this.mul(E, E);
+ }, I.prototype.sqrt = function(E) {
+ if (E.isZero())
+ return E.clone();
+ var A = this.m.andln(3);
+ if (b(A % 2 === 1), A === 3) {
+ var L = this.m.add(new f(1)).iushrn(2);
+ return this.pow(E, L);
+ }
+ for (var $ = this.m.subn(1), W = 0; !$.isZero() && $.andln(1) === 0; )
+ W++, $.iushrn(1);
+ b(!$.isZero());
+ var U = new f(1).toRed(this), D = U.redNeg(), B = this.m.subn(1).iushrn(1), j = this.m.bitLength();
+ for (j = new f(2 * j * j).toRed(this); this.pow(j, B).cmp(D) !== 0; )
+ j.redIAdd(D);
+ for (var V = this.pow(j, $), re = this.pow(E, $.addn(1).iushrn(1)), ee = this.pow(E, $), ce = W; ee.cmp(U) !== 0; ) {
+ for (var ve = ee, ge = 0; ve.cmp(U) !== 0; ge++)
+ ve = ve.redSqr();
+ b(ge < ce);
+ var oe = this.pow(V, new f(1).iushln(ce - ge - 1));
+ re = re.redMul(oe), V = oe.redSqr(), ee = ee.redMul(V), ce = ge;
+ }
+ return re;
+ }, I.prototype.invm = function(E) {
+ var A = E._invmp(this.m);
+ return A.negative !== 0 ? (A.negative = 0, this.imod(A).redNeg()) : this.imod(A);
+ }, I.prototype.pow = function(E, A) {
+ if (A.isZero())
+ return new f(1).toRed(this);
+ if (A.cmpn(1) === 0)
+ return E.clone();
+ var L = 4, $ = new Array(1 << L);
+ $[0] = new f(1).toRed(this), $[1] = E;
+ for (var W = 2; W < $.length; W++)
+ $[W] = this.mul($[W - 1], E);
+ var U = $[0], D = 0, B = 0, j = A.bitLength() % 26;
+ for (j === 0 && (j = 26), W = A.length - 1; W >= 0; W--) {
+ for (var V = A.words[W], re = j - 1; re >= 0; re--) {
+ var ee = V >> re & 1;
+ if (U !== $[0] && (U = this.sqr(U)), ee === 0 && D === 0) {
+ B = 0;
+ continue;
+ }
+ D <<= 1, D |= ee, B++, !(B !== L && (W !== 0 || re !== 0)) && (U = this.mul(U, $[D]), B = 0, D = 0);
+ }
+ j = 26;
+ }
+ return U;
+ }, I.prototype.convertTo = function(E) {
+ var A = E.umod(this.m);
+ return A === E ? A.clone() : A;
+ }, I.prototype.convertFrom = function(E) {
+ var A = E.clone();
+ return A.red = null, A;
+ }, f.mont = function(E) {
+ return new R(E);
+ };
+ function R(C) {
+ I.call(this, C), this.shift = this.m.bitLength(), this.shift % 26 !== 0 && (this.shift += 26 - this.shift % 26), this.r = new f(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv);
+ }
+ w(R, I), R.prototype.convertTo = function(E) {
+ return this.imod(E.ushln(this.shift));
+ }, R.prototype.convertFrom = function(E) {
+ var A = this.imod(E.mul(this.rinv));
+ return A.red = null, A;
+ }, R.prototype.imul = function(E, A) {
+ if (E.isZero() || A.isZero())
+ return E.words[0] = 0, E.length = 1, E;
+ var L = E.imul(A), $ = L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), W = L.isub($).iushrn(this.shift), U = W;
+ return W.cmp(this.m) >= 0 ? U = W.isub(this.m) : W.cmpn(0) < 0 && (U = W.iadd(this.m)), U._forceRed(this);
+ }, R.prototype.mul = function(E, A) {
+ if (E.isZero() || A.isZero())
+ return new f(0)._forceRed(this);
+ var L = E.mul(A), $ = L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), W = L.isub($).iushrn(this.shift), U = W;
+ return W.cmp(this.m) >= 0 ? U = W.isub(this.m) : W.cmpn(0) < 0 && (U = W.iadd(this.m)), U._forceRed(this);
+ }, R.prototype.invm = function(E) {
+ var A = this.imod(E._invmp(this.m).mul(this.r2));
+ return A._forceRed(this);
+ };
+ })(typeof x == "undefined" || x, void 0);
+ }, { buffer: 185 }], 184: [function(e, x, _) {
+ function u(w) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(y) {
+ return typeof y;
+ } : u = function(y) {
+ return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
+ }, u(w);
+ }
+ var m;
+ x.exports = function(f) {
+ return m || (m = new g(null)), m.generate(f);
+ };
+ function g(w) {
+ this.rand = w;
+ }
+ if (x.exports.Rand = g, g.prototype.generate = function(f) {
+ return this._rand(f);
+ }, g.prototype._rand = function(f) {
+ if (this.rand.getBytes)
+ return this.rand.getBytes(f);
+ for (var y = new Uint8Array(f), h = 0; h < y.length; h++)
+ y[h] = this.rand.getByte();
+ return y;
+ }, (typeof self == "undefined" ? "undefined" : u(self)) === "object")
+ self.crypto && self.crypto.getRandomValues ? g.prototype._rand = function(f) {
+ var y = new Uint8Array(f);
+ return self.crypto.getRandomValues(y), y;
+ } : self.msCrypto && self.msCrypto.getRandomValues ? g.prototype._rand = function(f) {
+ var y = new Uint8Array(f);
+ return self.msCrypto.getRandomValues(y), y;
+ } : (typeof window == "undefined" ? "undefined" : u(window)) === "object" && (g.prototype._rand = function() {
+ throw new Error("Not implemented yet");
+ });
+ else
+ try {
+ var b = e("crypto");
+ if (typeof b.randomBytes != "function")
+ throw new Error("Not supported");
+ g.prototype._rand = function(f) {
+ return b.randomBytes(f);
+ };
+ } catch (w) {
+ }
+ }, { crypto: 185 }], 185: [function(e, x, _) {
+ }, {}], 186: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer;
+ function m(h) {
+ u.isBuffer(h) || (h = u.from(h));
+ for (var l = h.length / 4 | 0, d = new Array(l), s = 0; s < l; s++)
+ d[s] = h.readUInt32BE(s * 4);
+ return d;
+ }
+ function g(h) {
+ for (var l = 0; l < h.length; h++)
+ h[l] = 0;
+ }
+ function b(h, l, d, s, v) {
+ for (var c = d[0], a = d[1], r = d[2], t = d[3], i = h[0] ^ l[0], n = h[1] ^ l[1], o = h[2] ^ l[2], p = h[3] ^ l[3], O, P, F, z, N = 4, M = 1; M < v; M++)
+ O = c[i >>> 24] ^ a[n >>> 16 & 255] ^ r[o >>> 8 & 255] ^ t[p & 255] ^ l[N++], P = c[n >>> 24] ^ a[o >>> 16 & 255] ^ r[p >>> 8 & 255] ^ t[i & 255] ^ l[N++], F = c[o >>> 24] ^ a[p >>> 16 & 255] ^ r[i >>> 8 & 255] ^ t[n & 255] ^ l[N++], z = c[p >>> 24] ^ a[i >>> 16 & 255] ^ r[n >>> 8 & 255] ^ t[o & 255] ^ l[N++], i = O, n = P, o = F, p = z;
+ return O = (s[i >>> 24] << 24 | s[n >>> 16 & 255] << 16 | s[o >>> 8 & 255] << 8 | s[p & 255]) ^ l[N++], P = (s[n >>> 24] << 24 | s[o >>> 16 & 255] << 16 | s[p >>> 8 & 255] << 8 | s[i & 255]) ^ l[N++], F = (s[o >>> 24] << 24 | s[p >>> 16 & 255] << 16 | s[i >>> 8 & 255] << 8 | s[n & 255]) ^ l[N++], z = (s[p >>> 24] << 24 | s[i >>> 16 & 255] << 16 | s[n >>> 8 & 255] << 8 | s[o & 255]) ^ l[N++], O = O >>> 0, P = P >>> 0, F = F >>> 0, z = z >>> 0, [O, P, F, z];
+ }
+ var w = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], f = function() {
+ for (var h = new Array(256), l = 0; l < 256; l++)
+ l < 128 ? h[l] = l << 1 : h[l] = l << 1 ^ 283;
+ for (var d = [], s = [], v = [[], [], [], []], c = [[], [], [], []], a = 0, r = 0, t = 0; t < 256; ++t) {
+ var i = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4;
+ i = i >>> 8 ^ i & 255 ^ 99, d[a] = i, s[i] = a;
+ var n = h[a], o = h[n], p = h[o], O = h[i] * 257 ^ i * 16843008;
+ v[0][a] = O << 24 | O >>> 8, v[1][a] = O << 16 | O >>> 16, v[2][a] = O << 8 | O >>> 24, v[3][a] = O, O = p * 16843009 ^ o * 65537 ^ n * 257 ^ a * 16843008, c[0][i] = O << 24 | O >>> 8, c[1][i] = O << 16 | O >>> 16, c[2][i] = O << 8 | O >>> 24, c[3][i] = O, a === 0 ? a = r = 1 : (a = n ^ h[h[h[p ^ n]]], r ^= h[h[r]]);
+ }
+ return {
+ SBOX: d,
+ INV_SBOX: s,
+ SUB_MIX: v,
+ INV_SUB_MIX: c
+ };
+ }();
+ function y(h) {
+ this._key = m(h), this._reset();
+ }
+ y.blockSize = 4 * 4, y.keySize = 256 / 8, y.prototype.blockSize = y.blockSize, y.prototype.keySize = y.keySize, y.prototype._reset = function() {
+ for (var h = this._key, l = h.length, d = l + 6, s = (d + 1) * 4, v = [], c = 0; c < l; c++)
+ v[c] = h[c];
+ for (c = l; c < s; c++) {
+ var a = v[c - 1];
+ c % l === 0 ? (a = a << 8 | a >>> 24, a = f.SBOX[a >>> 24] << 24 | f.SBOX[a >>> 16 & 255] << 16 | f.SBOX[a >>> 8 & 255] << 8 | f.SBOX[a & 255], a ^= w[c / l | 0] << 24) : l > 6 && c % l === 4 && (a = f.SBOX[a >>> 24] << 24 | f.SBOX[a >>> 16 & 255] << 16 | f.SBOX[a >>> 8 & 255] << 8 | f.SBOX[a & 255]), v[c] = v[c - l] ^ a;
+ }
+ for (var r = [], t = 0; t < s; t++) {
+ var i = s - t, n = v[i - (t % 4 ? 0 : 4)];
+ t < 4 || i <= 4 ? r[t] = n : r[t] = f.INV_SUB_MIX[0][f.SBOX[n >>> 24]] ^ f.INV_SUB_MIX[1][f.SBOX[n >>> 16 & 255]] ^ f.INV_SUB_MIX[2][f.SBOX[n >>> 8 & 255]] ^ f.INV_SUB_MIX[3][f.SBOX[n & 255]];
+ }
+ this._nRounds = d, this._keySchedule = v, this._invKeySchedule = r;
+ }, y.prototype.encryptBlockRaw = function(h) {
+ return h = m(h), b(h, this._keySchedule, f.SUB_MIX, f.SBOX, this._nRounds);
+ }, y.prototype.encryptBlock = function(h) {
+ var l = this.encryptBlockRaw(h), d = u.allocUnsafe(16);
+ return d.writeUInt32BE(l[0], 0), d.writeUInt32BE(l[1], 4), d.writeUInt32BE(l[2], 8), d.writeUInt32BE(l[3], 12), d;
+ }, y.prototype.decryptBlock = function(h) {
+ h = m(h);
+ var l = h[1];
+ h[1] = h[3], h[3] = l;
+ var d = b(h, this._invKeySchedule, f.INV_SUB_MIX, f.INV_SBOX, this._nRounds), s = u.allocUnsafe(16);
+ return s.writeUInt32BE(d[0], 0), s.writeUInt32BE(d[3], 4), s.writeUInt32BE(d[2], 8), s.writeUInt32BE(d[1], 12), s;
+ }, y.prototype.scrub = function() {
+ g(this._keySchedule), g(this._invKeySchedule), g(this._key);
+ }, x.exports.AES = y;
+ }, { "safe-buffer": 494 }], 187: [function(e, x, _) {
+ var u = e("./aes"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = e("inherits"), w = e("./ghash"), f = e("buffer-xor"), y = e("./incr32");
+ function h(s, v) {
+ var c = 0;
+ s.length !== v.length && c++;
+ for (var a = Math.min(s.length, v.length), r = 0; r < a; ++r)
+ c += s[r] ^ v[r];
+ return c;
+ }
+ function l(s, v, c) {
+ if (v.length === 12)
+ return s._finID = m.concat([v, m.from([0, 0, 0, 1])]), m.concat([v, m.from([0, 0, 0, 2])]);
+ var a = new w(c), r = v.length, t = r % 16;
+ a.update(v), t && (t = 16 - t, a.update(m.alloc(t, 0))), a.update(m.alloc(8, 0));
+ var i = r * 8, n = m.alloc(8);
+ n.writeUIntBE(i, 0, 8), a.update(n), s._finID = a.state;
+ var o = m.from(s._finID);
+ return y(o), o;
+ }
+ function d(s, v, c, a) {
+ g.call(this);
+ var r = m.alloc(4, 0);
+ this._cipher = new u.AES(v);
+ var t = this._cipher.encryptBlock(r);
+ this._ghash = new w(t), c = l(this, c, t), this._prev = m.from(c), this._cache = m.allocUnsafe(0), this._secCache = m.allocUnsafe(0), this._decrypt = a, this._alen = 0, this._len = 0, this._mode = s, this._authTag = null, this._called = !1;
+ }
+ b(d, g), d.prototype._update = function(s) {
+ if (!this._called && this._alen) {
+ var v = 16 - this._alen % 16;
+ v < 16 && (v = m.alloc(v, 0), this._ghash.update(v));
+ }
+ this._called = !0;
+ var c = this._mode.encrypt(this, s);
+ return this._decrypt ? this._ghash.update(s) : this._ghash.update(c), this._len += s.length, c;
+ }, d.prototype._final = function() {
+ if (this._decrypt && !this._authTag)
+ throw new Error("Unsupported state or unable to authenticate data");
+ var s = f(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID));
+ if (this._decrypt && h(s, this._authTag))
+ throw new Error("Unsupported state or unable to authenticate data");
+ this._authTag = s, this._cipher.scrub();
+ }, d.prototype.getAuthTag = function() {
+ if (this._decrypt || !m.isBuffer(this._authTag))
+ throw new Error("Attempting to get auth tag in unsupported state");
+ return this._authTag;
+ }, d.prototype.setAuthTag = function(v) {
+ if (!this._decrypt)
+ throw new Error("Attempting to set auth tag in unsupported state");
+ this._authTag = v;
+ }, d.prototype.setAAD = function(v) {
+ if (this._called)
+ throw new Error("Attempting to set AAD in unsupported state");
+ this._ghash.update(v), this._alen += v.length;
+ }, x.exports = d;
+ }, { "./aes": 186, "./ghash": 191, "./incr32": 192, "buffer-xor": 217, "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 188: [function(e, x, _) {
+ var u = e("./encrypter"), m = e("./decrypter"), g = e("./modes/list.json");
+ function b() {
+ return Object.keys(g);
+ }
+ _.createCipher = _.Cipher = u.createCipher, _.createCipheriv = _.Cipheriv = u.createCipheriv, _.createDecipher = _.Decipher = m.createDecipher, _.createDecipheriv = _.Decipheriv = m.createDecipheriv, _.listCiphers = _.getCiphers = b;
+ }, { "./decrypter": 189, "./encrypter": 190, "./modes/list.json": 200 }], 189: [function(e, x, _) {
+ var u = e("./authCipher"), m = e("safe-buffer").Buffer, g = e("./modes"), b = e("./streamCipher"), w = e("cipher-base"), f = e("./aes"), y = e("evp_bytestokey"), h = e("inherits");
+ function l(a, r, t) {
+ w.call(this), this._cache = new d(), this._last = void 0, this._cipher = new f.AES(r), this._prev = m.from(t), this._mode = a, this._autopadding = !0;
+ }
+ h(l, w), l.prototype._update = function(a) {
+ this._cache.add(a);
+ for (var r, t, i = []; r = this._cache.get(this._autopadding); )
+ t = this._mode.decrypt(this, r), i.push(t);
+ return m.concat(i);
+ }, l.prototype._final = function() {
+ var a = this._cache.flush();
+ if (this._autopadding)
+ return s(this._mode.decrypt(this, a));
+ if (a)
+ throw new Error("data not multiple of block length");
+ }, l.prototype.setAutoPadding = function(a) {
+ return this._autopadding = !!a, this;
+ };
+ function d() {
+ this.cache = m.allocUnsafe(0);
+ }
+ d.prototype.add = function(a) {
+ this.cache = m.concat([this.cache, a]);
+ }, d.prototype.get = function(a) {
+ var r;
+ if (a) {
+ if (this.cache.length > 16)
+ return r = this.cache.slice(0, 16), this.cache = this.cache.slice(16), r;
+ } else if (this.cache.length >= 16)
+ return r = this.cache.slice(0, 16), this.cache = this.cache.slice(16), r;
+ return null;
+ }, d.prototype.flush = function() {
+ if (this.cache.length)
+ return this.cache;
+ };
+ function s(a) {
+ var r = a[15];
+ if (r < 1 || r > 16)
+ throw new Error("unable to decrypt data");
+ for (var t = -1; ++t < r; )
+ if (a[t + (16 - r)] !== r)
+ throw new Error("unable to decrypt data");
+ if (r !== 16)
+ return a.slice(0, 16 - r);
+ }
+ function v(a, r, t) {
+ var i = g[a.toLowerCase()];
+ if (!i)
+ throw new TypeError("invalid suite type");
+ if (typeof t == "string" && (t = m.from(t)), i.mode !== "GCM" && t.length !== i.iv)
+ throw new TypeError("invalid iv length " + t.length);
+ if (typeof r == "string" && (r = m.from(r)), r.length !== i.key / 8)
+ throw new TypeError("invalid key length " + r.length);
+ return i.type === "stream" ? new b(i.module, r, t, !0) : i.type === "auth" ? new u(i.module, r, t, !0) : new l(i.module, r, t);
+ }
+ function c(a, r) {
+ var t = g[a.toLowerCase()];
+ if (!t)
+ throw new TypeError("invalid suite type");
+ var i = y(r, !1, t.key, t.iv);
+ return v(a, i.key, i.iv);
+ }
+ _.createDecipher = c, _.createDecipheriv = v;
+ }, { "./aes": 186, "./authCipher": 187, "./modes": 199, "./streamCipher": 202, "cipher-base": 218, evp_bytestokey: 368, inherits: 387, "safe-buffer": 494 }], 190: [function(e, x, _) {
+ var u = e("./modes"), m = e("./authCipher"), g = e("safe-buffer").Buffer, b = e("./streamCipher"), w = e("cipher-base"), f = e("./aes"), y = e("evp_bytestokey"), h = e("inherits");
+ function l(a, r, t) {
+ w.call(this), this._cache = new s(), this._cipher = new f.AES(r), this._prev = g.from(t), this._mode = a, this._autopadding = !0;
+ }
+ h(l, w), l.prototype._update = function(a) {
+ this._cache.add(a);
+ for (var r, t, i = []; r = this._cache.get(); )
+ t = this._mode.encrypt(this, r), i.push(t);
+ return g.concat(i);
+ };
+ var d = g.alloc(16, 16);
+ l.prototype._final = function() {
+ var a = this._cache.flush();
+ if (this._autopadding)
+ return a = this._mode.encrypt(this, a), this._cipher.scrub(), a;
+ if (!a.equals(d))
+ throw this._cipher.scrub(), new Error("data not multiple of block length");
+ }, l.prototype.setAutoPadding = function(a) {
+ return this._autopadding = !!a, this;
+ };
+ function s() {
+ this.cache = g.allocUnsafe(0);
+ }
+ s.prototype.add = function(a) {
+ this.cache = g.concat([this.cache, a]);
+ }, s.prototype.get = function() {
+ if (this.cache.length > 15) {
+ var a = this.cache.slice(0, 16);
+ return this.cache = this.cache.slice(16), a;
+ }
+ return null;
+ }, s.prototype.flush = function() {
+ for (var a = 16 - this.cache.length, r = g.allocUnsafe(a), t = -1; ++t < a; )
+ r.writeUInt8(a, t);
+ return g.concat([this.cache, r]);
+ };
+ function v(a, r, t) {
+ var i = u[a.toLowerCase()];
+ if (!i)
+ throw new TypeError("invalid suite type");
+ if (typeof r == "string" && (r = g.from(r)), r.length !== i.key / 8)
+ throw new TypeError("invalid key length " + r.length);
+ if (typeof t == "string" && (t = g.from(t)), i.mode !== "GCM" && t.length !== i.iv)
+ throw new TypeError("invalid iv length " + t.length);
+ return i.type === "stream" ? new b(i.module, r, t) : i.type === "auth" ? new m(i.module, r, t) : new l(i.module, r, t);
+ }
+ function c(a, r) {
+ var t = u[a.toLowerCase()];
+ if (!t)
+ throw new TypeError("invalid suite type");
+ var i = y(r, !1, t.key, t.iv);
+ return v(a, i.key, i.iv);
+ }
+ _.createCipheriv = v, _.createCipher = c;
+ }, { "./aes": 186, "./authCipher": 187, "./modes": 199, "./streamCipher": 202, "cipher-base": 218, evp_bytestokey: 368, inherits: 387, "safe-buffer": 494 }], 191: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = u.alloc(16, 0);
+ function g(f) {
+ return [f.readUInt32BE(0), f.readUInt32BE(4), f.readUInt32BE(8), f.readUInt32BE(12)];
+ }
+ function b(f) {
+ var y = u.allocUnsafe(16);
+ return y.writeUInt32BE(f[0] >>> 0, 0), y.writeUInt32BE(f[1] >>> 0, 4), y.writeUInt32BE(f[2] >>> 0, 8), y.writeUInt32BE(f[3] >>> 0, 12), y;
+ }
+ function w(f) {
+ this.h = f, this.state = u.alloc(16, 0), this.cache = u.allocUnsafe(0);
+ }
+ w.prototype.ghash = function(f) {
+ for (var y = -1; ++y < f.length; )
+ this.state[y] ^= f[y];
+ this._multiply();
+ }, w.prototype._multiply = function() {
+ for (var f = g(this.h), y = [0, 0, 0, 0], h, l, d, s = -1; ++s < 128; ) {
+ for (l = (this.state[~~(s / 8)] & 1 << 7 - s % 8) !== 0, l && (y[0] ^= f[0], y[1] ^= f[1], y[2] ^= f[2], y[3] ^= f[3]), d = (f[3] & 1) !== 0, h = 3; h > 0; h--)
+ f[h] = f[h] >>> 1 | (f[h - 1] & 1) << 31;
+ f[0] = f[0] >>> 1, d && (f[0] = f[0] ^ 225 << 24);
+ }
+ this.state = b(y);
+ }, w.prototype.update = function(f) {
+ this.cache = u.concat([this.cache, f]);
+ for (var y; this.cache.length >= 16; )
+ y = this.cache.slice(0, 16), this.cache = this.cache.slice(16), this.ghash(y);
+ }, w.prototype.final = function(f, y) {
+ return this.cache.length && this.ghash(u.concat([this.cache, m], 16)), this.ghash(b([0, f, 0, y])), this.state;
+ }, x.exports = w;
+ }, { "safe-buffer": 494 }], 192: [function(e, x, _) {
+ function u(m) {
+ for (var g = m.length, b; g--; )
+ if (b = m.readUInt8(g), b === 255)
+ m.writeUInt8(0, g);
+ else {
+ b++, m.writeUInt8(b, g);
+ break;
+ }
+ }
+ x.exports = u;
+ }, {}], 193: [function(e, x, _) {
+ var u = e("buffer-xor");
+ _.encrypt = function(m, g) {
+ var b = u(g, m._prev);
+ return m._prev = m._cipher.encryptBlock(b), m._prev;
+ }, _.decrypt = function(m, g) {
+ var b = m._prev;
+ m._prev = g;
+ var w = m._cipher.decryptBlock(g);
+ return u(w, b);
+ };
+ }, { "buffer-xor": 217 }], 194: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("buffer-xor");
+ function g(b, w, f) {
+ var y = w.length, h = m(w, b._cache);
+ return b._cache = b._cache.slice(y), b._prev = u.concat([b._prev, f ? w : h]), h;
+ }
+ _.encrypt = function(b, w, f) {
+ for (var y = u.allocUnsafe(0), h; w.length; )
+ if (b._cache.length === 0 && (b._cache = b._cipher.encryptBlock(b._prev), b._prev = u.allocUnsafe(0)), b._cache.length <= w.length)
+ h = b._cache.length, y = u.concat([y, g(b, w.slice(0, h), f)]), w = w.slice(h);
+ else {
+ y = u.concat([y, g(b, w, f)]);
+ break;
+ }
+ return y;
+ };
+ }, { "buffer-xor": 217, "safe-buffer": 494 }], 195: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer;
+ function m(b, w, f) {
+ for (var y, h = -1, l = 8, d = 0, s, v; ++h < l; )
+ y = b._cipher.encryptBlock(b._prev), s = w & 1 << 7 - h ? 128 : 0, v = y[0] ^ s, d += (v & 128) >> h % 8, b._prev = g(b._prev, f ? s : v);
+ return d;
+ }
+ function g(b, w) {
+ var f = b.length, y = -1, h = u.allocUnsafe(b.length);
+ for (b = u.concat([b, u.from([w])]); ++y < f; )
+ h[y] = b[y] << 1 | b[y + 1] >> 7;
+ return h;
+ }
+ _.encrypt = function(b, w, f) {
+ for (var y = w.length, h = u.allocUnsafe(y), l = -1; ++l < y; )
+ h[l] = m(b, w[l], f);
+ return h;
+ };
+ }, { "safe-buffer": 494 }], 196: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer;
+ function m(g, b, w) {
+ var f = g._cipher.encryptBlock(g._prev), y = f[0] ^ b;
+ return g._prev = u.concat([g._prev.slice(1), u.from([w ? b : y])]), y;
+ }
+ _.encrypt = function(g, b, w) {
+ for (var f = b.length, y = u.allocUnsafe(f), h = -1; ++h < f; )
+ y[h] = m(g, b[h], w);
+ return y;
+ };
+ }, { "safe-buffer": 494 }], 197: [function(e, x, _) {
+ var u = e("buffer-xor"), m = e("safe-buffer").Buffer, g = e("../incr32");
+ function b(f) {
+ var y = f._cipher.encryptBlockRaw(f._prev);
+ return g(f._prev), y;
+ }
+ var w = 16;
+ _.encrypt = function(f, y) {
+ var h = Math.ceil(y.length / w), l = f._cache.length;
+ f._cache = m.concat([f._cache, m.allocUnsafe(h * w)]);
+ for (var d = 0; d < h; d++) {
+ var s = b(f), v = l + d * w;
+ f._cache.writeUInt32BE(s[0], v + 0), f._cache.writeUInt32BE(s[1], v + 4), f._cache.writeUInt32BE(s[2], v + 8), f._cache.writeUInt32BE(s[3], v + 12);
+ }
+ var c = f._cache.slice(0, y.length);
+ return f._cache = f._cache.slice(y.length), u(y, c);
+ };
+ }, { "../incr32": 192, "buffer-xor": 217, "safe-buffer": 494 }], 198: [function(e, x, _) {
+ _.encrypt = function(u, m) {
+ return u._cipher.encryptBlock(m);
+ }, _.decrypt = function(u, m) {
+ return u._cipher.decryptBlock(m);
+ };
+ }, {}], 199: [function(e, x, _) {
+ var u = {
+ ECB: e("./ecb"),
+ CBC: e("./cbc"),
+ CFB: e("./cfb"),
+ CFB8: e("./cfb8"),
+ CFB1: e("./cfb1"),
+ OFB: e("./ofb"),
+ CTR: e("./ctr"),
+ GCM: e("./ctr")
+ }, m = e("./list.json");
+ for (var g in m)
+ m[g].module = u[m[g].mode];
+ x.exports = m;
+ }, { "./cbc": 193, "./cfb": 194, "./cfb1": 195, "./cfb8": 196, "./ctr": 197, "./ecb": 198, "./list.json": 200, "./ofb": 201 }], 200: [function(e, x, _) {
+ x.exports = {
+ "aes-128-ecb": {
+ cipher: "AES",
+ key: 128,
+ iv: 0,
+ mode: "ECB",
+ type: "block"
+ },
+ "aes-192-ecb": {
+ cipher: "AES",
+ key: 192,
+ iv: 0,
+ mode: "ECB",
+ type: "block"
+ },
+ "aes-256-ecb": {
+ cipher: "AES",
+ key: 256,
+ iv: 0,
+ mode: "ECB",
+ type: "block"
+ },
+ "aes-128-cbc": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ "aes-192-cbc": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ "aes-256-cbc": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ aes128: {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ aes192: {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ aes256: {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CBC",
+ type: "block"
+ },
+ "aes-128-cfb": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CFB",
+ type: "stream"
+ },
+ "aes-192-cfb": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CFB",
+ type: "stream"
+ },
+ "aes-256-cfb": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CFB",
+ type: "stream"
+ },
+ "aes-128-cfb8": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CFB8",
+ type: "stream"
+ },
+ "aes-192-cfb8": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CFB8",
+ type: "stream"
+ },
+ "aes-256-cfb8": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CFB8",
+ type: "stream"
+ },
+ "aes-128-cfb1": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CFB1",
+ type: "stream"
+ },
+ "aes-192-cfb1": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CFB1",
+ type: "stream"
+ },
+ "aes-256-cfb1": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CFB1",
+ type: "stream"
+ },
+ "aes-128-ofb": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "OFB",
+ type: "stream"
+ },
+ "aes-192-ofb": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "OFB",
+ type: "stream"
+ },
+ "aes-256-ofb": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "OFB",
+ type: "stream"
+ },
+ "aes-128-ctr": {
+ cipher: "AES",
+ key: 128,
+ iv: 16,
+ mode: "CTR",
+ type: "stream"
+ },
+ "aes-192-ctr": {
+ cipher: "AES",
+ key: 192,
+ iv: 16,
+ mode: "CTR",
+ type: "stream"
+ },
+ "aes-256-ctr": {
+ cipher: "AES",
+ key: 256,
+ iv: 16,
+ mode: "CTR",
+ type: "stream"
+ },
+ "aes-128-gcm": {
+ cipher: "AES",
+ key: 128,
+ iv: 12,
+ mode: "GCM",
+ type: "auth"
+ },
+ "aes-192-gcm": {
+ cipher: "AES",
+ key: 192,
+ iv: 12,
+ mode: "GCM",
+ type: "auth"
+ },
+ "aes-256-gcm": {
+ cipher: "AES",
+ key: 256,
+ iv: 12,
+ mode: "GCM",
+ type: "auth"
+ }
+ };
+ }, {}], 201: [function(e, x, _) {
+ (function(u) {
+ var m = e("buffer-xor");
+ function g(b) {
+ return b._prev = b._cipher.encryptBlock(b._prev), b._prev;
+ }
+ _.encrypt = function(b, w) {
+ for (; b._cache.length < w.length; )
+ b._cache = u.concat([b._cache, g(b)]);
+ var f = b._cache.slice(0, w.length);
+ return b._cache = b._cache.slice(w.length), m(w, f);
+ };
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216, "buffer-xor": 217 }], 202: [function(e, x, _) {
+ var u = e("./aes"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = e("inherits");
+ function w(f, y, h, l) {
+ g.call(this), this._cipher = new u.AES(y), this._prev = m.from(h), this._cache = m.allocUnsafe(0), this._secCache = m.allocUnsafe(0), this._decrypt = l, this._mode = f;
+ }
+ b(w, g), w.prototype._update = function(f) {
+ return this._mode.encrypt(this, f, this._decrypt);
+ }, w.prototype._final = function() {
+ this._cipher.scrub();
+ }, x.exports = w;
+ }, { "./aes": 186, "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 203: [function(e, x, _) {
+ var u = e("browserify-des"), m = e("browserify-aes/browser"), g = e("browserify-aes/modes"), b = e("browserify-des/modes"), w = e("evp_bytestokey");
+ function f(s, v) {
+ s = s.toLowerCase();
+ var c, a;
+ if (g[s])
+ c = g[s].key, a = g[s].iv;
+ else if (b[s])
+ c = b[s].key * 8, a = b[s].iv;
+ else
+ throw new TypeError("invalid suite type");
+ var r = w(v, !1, c, a);
+ return h(s, r.key, r.iv);
+ }
+ function y(s, v) {
+ s = s.toLowerCase();
+ var c, a;
+ if (g[s])
+ c = g[s].key, a = g[s].iv;
+ else if (b[s])
+ c = b[s].key * 8, a = b[s].iv;
+ else
+ throw new TypeError("invalid suite type");
+ var r = w(v, !1, c, a);
+ return l(s, r.key, r.iv);
+ }
+ function h(s, v, c) {
+ if (s = s.toLowerCase(), g[s])
+ return m.createCipheriv(s, v, c);
+ if (b[s])
+ return new u({
+ key: v,
+ iv: c,
+ mode: s
+ });
+ throw new TypeError("invalid suite type");
+ }
+ function l(s, v, c) {
+ if (s = s.toLowerCase(), g[s])
+ return m.createDecipheriv(s, v, c);
+ if (b[s])
+ return new u({
+ key: v,
+ iv: c,
+ mode: s,
+ decrypt: !0
+ });
+ throw new TypeError("invalid suite type");
+ }
+ function d() {
+ return Object.keys(b).concat(m.getCiphers());
+ }
+ _.createCipher = _.Cipher = f, _.createCipheriv = _.Cipheriv = h, _.createDecipher = _.Decipher = y, _.createDecipheriv = _.Decipheriv = l, _.listCiphers = _.getCiphers = d;
+ }, { "browserify-aes/browser": 188, "browserify-aes/modes": 199, "browserify-des": 204, "browserify-des/modes": 205, evp_bytestokey: 368 }], 204: [function(e, x, _) {
+ var u = e("cipher-base"), m = e("des.js"), g = e("inherits"), b = e("safe-buffer").Buffer, w = {
+ "des-ede3-cbc": m.CBC.instantiate(m.EDE),
+ "des-ede3": m.EDE,
+ "des-ede-cbc": m.CBC.instantiate(m.EDE),
+ "des-ede": m.EDE,
+ "des-cbc": m.CBC.instantiate(m.DES),
+ "des-ecb": m.DES
+ };
+ w.des = w["des-cbc"], w.des3 = w["des-ede3-cbc"], x.exports = f, g(f, u);
+ function f(y) {
+ u.call(this);
+ var h = y.mode.toLowerCase(), l = w[h], d;
+ y.decrypt ? d = "decrypt" : d = "encrypt";
+ var s = y.key;
+ b.isBuffer(s) || (s = b.from(s)), (h === "des-ede" || h === "des-ede-cbc") && (s = b.concat([s, s.slice(0, 8)]));
+ var v = y.iv;
+ b.isBuffer(v) || (v = b.from(v)), this._des = l.create({
+ key: s,
+ iv: v,
+ type: d
+ });
+ }
+ f.prototype._update = function(y) {
+ return b.from(this._des.update(y));
+ }, f.prototype._final = function() {
+ return b.from(this._des.final());
+ };
+ }, { "cipher-base": 218, "des.js": 339, inherits: 387, "safe-buffer": 494 }], 205: [function(e, x, _) {
+ _["des-ecb"] = {
+ key: 8,
+ iv: 0
+ }, _["des-cbc"] = _.des = {
+ key: 8,
+ iv: 8
+ }, _["des-ede3-cbc"] = _.des3 = {
+ key: 24,
+ iv: 8
+ }, _["des-ede3"] = {
+ key: 24,
+ iv: 0
+ }, _["des-ede-cbc"] = {
+ key: 16,
+ iv: 8
+ }, _["des-ede"] = {
+ key: 16,
+ iv: 0
+ };
+ }, {}], 206: [function(e, x, _) {
+ (function(u) {
+ var m = e("bn.js"), g = e("randombytes");
+ x.exports = w;
+ function b(y) {
+ var h = f(y), l = h.toRed(m.mont(y.modulus)).redPow(new m(y.publicExponent)).fromRed();
+ return {
+ blinder: l,
+ unblinder: h.invm(y.modulus)
+ };
+ }
+ function w(y, h) {
+ var l = b(h), d = h.modulus.byteLength();
+ m.mont(h.modulus);
+ var s = new m(y).mul(l.blinder).umod(h.modulus), v = s.toRed(m.mont(h.prime1)), c = s.toRed(m.mont(h.prime2)), a = h.coefficient, r = h.prime1, t = h.prime2, i = v.redPow(h.exponent1), n = c.redPow(h.exponent2);
+ i = i.fromRed(), n = n.fromRed();
+ var o = i.isub(n).imul(a).umod(r);
+ return o.imul(t), n.iadd(o), new u(n.imul(l.unblinder).umod(h.modulus).toArray(!1, d));
+ }
+ w.getr = f;
+ function f(y) {
+ for (var h = y.modulus.byteLength(), l = new m(g(h)); l.cmp(y.modulus) >= 0 || !l.umod(y.prime1) || !l.umod(y.prime2); )
+ l = new m(g(h));
+ return l;
+ }
+ }).call(this, e("buffer").Buffer);
+ }, { "bn.js": 207, buffer: 216, randombytes: 475 }], 207: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 208: [function(e, x, _) {
+ x.exports = e("./browser/algorithms.json");
+ }, { "./browser/algorithms.json": 209 }], 209: [function(e, x, _) {
+ x.exports = {
+ sha224WithRSAEncryption: {
+ sign: "rsa",
+ hash: "sha224",
+ id: "302d300d06096086480165030402040500041c"
+ },
+ "RSA-SHA224": {
+ sign: "ecdsa/rsa",
+ hash: "sha224",
+ id: "302d300d06096086480165030402040500041c"
+ },
+ sha256WithRSAEncryption: {
+ sign: "rsa",
+ hash: "sha256",
+ id: "3031300d060960864801650304020105000420"
+ },
+ "RSA-SHA256": {
+ sign: "ecdsa/rsa",
+ hash: "sha256",
+ id: "3031300d060960864801650304020105000420"
+ },
+ sha384WithRSAEncryption: {
+ sign: "rsa",
+ hash: "sha384",
+ id: "3041300d060960864801650304020205000430"
+ },
+ "RSA-SHA384": {
+ sign: "ecdsa/rsa",
+ hash: "sha384",
+ id: "3041300d060960864801650304020205000430"
+ },
+ sha512WithRSAEncryption: {
+ sign: "rsa",
+ hash: "sha512",
+ id: "3051300d060960864801650304020305000440"
+ },
+ "RSA-SHA512": {
+ sign: "ecdsa/rsa",
+ hash: "sha512",
+ id: "3051300d060960864801650304020305000440"
+ },
+ "RSA-SHA1": {
+ sign: "rsa",
+ hash: "sha1",
+ id: "3021300906052b0e03021a05000414"
+ },
+ "ecdsa-with-SHA1": {
+ sign: "ecdsa",
+ hash: "sha1",
+ id: ""
+ },
+ sha256: {
+ sign: "ecdsa",
+ hash: "sha256",
+ id: ""
+ },
+ sha224: {
+ sign: "ecdsa",
+ hash: "sha224",
+ id: ""
+ },
+ sha384: {
+ sign: "ecdsa",
+ hash: "sha384",
+ id: ""
+ },
+ sha512: {
+ sign: "ecdsa",
+ hash: "sha512",
+ id: ""
+ },
+ "DSA-SHA": {
+ sign: "dsa",
+ hash: "sha1",
+ id: ""
+ },
+ "DSA-SHA1": {
+ sign: "dsa",
+ hash: "sha1",
+ id: ""
+ },
+ DSA: {
+ sign: "dsa",
+ hash: "sha1",
+ id: ""
+ },
+ "DSA-WITH-SHA224": {
+ sign: "dsa",
+ hash: "sha224",
+ id: ""
+ },
+ "DSA-SHA224": {
+ sign: "dsa",
+ hash: "sha224",
+ id: ""
+ },
+ "DSA-WITH-SHA256": {
+ sign: "dsa",
+ hash: "sha256",
+ id: ""
+ },
+ "DSA-SHA256": {
+ sign: "dsa",
+ hash: "sha256",
+ id: ""
+ },
+ "DSA-WITH-SHA384": {
+ sign: "dsa",
+ hash: "sha384",
+ id: ""
+ },
+ "DSA-SHA384": {
+ sign: "dsa",
+ hash: "sha384",
+ id: ""
+ },
+ "DSA-WITH-SHA512": {
+ sign: "dsa",
+ hash: "sha512",
+ id: ""
+ },
+ "DSA-SHA512": {
+ sign: "dsa",
+ hash: "sha512",
+ id: ""
+ },
+ "DSA-RIPEMD160": {
+ sign: "dsa",
+ hash: "rmd160",
+ id: ""
+ },
+ ripemd160WithRSA: {
+ sign: "rsa",
+ hash: "rmd160",
+ id: "3021300906052b2403020105000414"
+ },
+ "RSA-RIPEMD160": {
+ sign: "rsa",
+ hash: "rmd160",
+ id: "3021300906052b2403020105000414"
+ },
+ md5WithRSAEncryption: {
+ sign: "rsa",
+ hash: "md5",
+ id: "3020300c06082a864886f70d020505000410"
+ },
+ "RSA-MD5": {
+ sign: "rsa",
+ hash: "md5",
+ id: "3020300c06082a864886f70d020505000410"
+ }
+ };
+ }, {}], 210: [function(e, x, _) {
+ x.exports = {
+ "1.3.132.0.10": "secp256k1",
+ "1.3.132.0.33": "p224",
+ "1.2.840.10045.3.1.1": "p192",
+ "1.2.840.10045.3.1.7": "p256",
+ "1.3.132.0.34": "p384",
+ "1.3.132.0.35": "p521"
+ };
+ }, {}], 211: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("create-hash"), g = e("readable-stream"), b = e("inherits"), w = e("./sign"), f = e("./verify"), y = e("./algorithms.json");
+ Object.keys(y).forEach(function(v) {
+ y[v].id = u.from(y[v].id, "hex"), y[v.toLowerCase()] = y[v];
+ });
+ function h(v) {
+ g.Writable.call(this);
+ var c = y[v];
+ if (!c)
+ throw new Error("Unknown message digest");
+ this._hashType = c.hash, this._hash = m(c.hash), this._tag = c.id, this._signType = c.sign;
+ }
+ b(h, g.Writable), h.prototype._write = function(c, a, r) {
+ this._hash.update(c), r();
+ }, h.prototype.update = function(c, a) {
+ return typeof c == "string" && (c = u.from(c, a)), this._hash.update(c), this;
+ }, h.prototype.sign = function(c, a) {
+ this.end();
+ var r = this._hash.digest(), t = w(r, c, this._hashType, this._signType, this._tag);
+ return a ? t.toString(a) : t;
+ };
+ function l(v) {
+ g.Writable.call(this);
+ var c = y[v];
+ if (!c)
+ throw new Error("Unknown message digest");
+ this._hash = m(c.hash), this._tag = c.id, this._signType = c.sign;
+ }
+ b(l, g.Writable), l.prototype._write = function(c, a, r) {
+ this._hash.update(c), r();
+ }, l.prototype.update = function(c, a) {
+ return typeof c == "string" && (c = u.from(c, a)), this._hash.update(c), this;
+ }, l.prototype.verify = function(c, a, r) {
+ typeof a == "string" && (a = u.from(a, r)), this.end();
+ var t = this._hash.digest();
+ return f(a, t, c, this._signType, this._tag);
+ };
+ function d(v) {
+ return new h(v);
+ }
+ function s(v) {
+ return new l(v);
+ }
+ x.exports = {
+ Sign: d,
+ Verify: s,
+ createSign: d,
+ createVerify: s
+ };
+ }, { "./algorithms.json": 209, "./sign": 212, "./verify": 213, "create-hash": 331, inherits: 387, "readable-stream": 491, "safe-buffer": 214 }], 212: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("create-hmac"), g = e("browserify-rsa"), b = e("elliptic").ec, w = e("bn.js"), f = e("parse-asn1"), y = e("./curves.json");
+ function h(i, n, o, p, O) {
+ var P = f(n);
+ if (P.curve) {
+ if (p !== "ecdsa" && p !== "ecdsa/rsa")
+ throw new Error("wrong private key type");
+ return l(i, P);
+ } else if (P.type === "dsa") {
+ if (p !== "dsa")
+ throw new Error("wrong private key type");
+ return d(i, P, o);
+ } else if (p !== "rsa" && p !== "ecdsa/rsa")
+ throw new Error("wrong private key type");
+ i = u.concat([O, i]);
+ for (var F = P.modulus.byteLength(), z = [0, 1]; i.length + z.length + 1 < F; )
+ z.push(255);
+ z.push(0);
+ for (var N = -1; ++N < i.length; )
+ z.push(i[N]);
+ var M = g(z, P);
+ return M;
+ }
+ function l(i, n) {
+ var o = y[n.curve.join(".")];
+ if (!o)
+ throw new Error("unknown curve " + n.curve.join("."));
+ var p = new b(o), O = p.keyFromPrivate(n.privateKey), P = O.sign(i);
+ return u.from(P.toDER());
+ }
+ function d(i, n, o) {
+ for (var p = n.params.priv_key, O = n.params.p, P = n.params.q, F = n.params.g, z = new w(0), N, M = c(i, P).mod(P), I = !1, R = v(p, P, i, o); I === !1; )
+ N = r(P, R, o), z = t(F, N, O, P), I = N.invm(P).imul(M.add(p.mul(z))).mod(P), I.cmpn(0) === 0 && (I = !1, z = new w(0));
+ return s(z, I);
+ }
+ function s(i, n) {
+ i = i.toArray(), n = n.toArray(), i[0] & 128 && (i = [0].concat(i)), n[0] & 128 && (n = [0].concat(n));
+ var o = i.length + n.length + 4, p = [48, o, 2, i.length];
+ return p = p.concat(i, [2, n.length], n), u.from(p);
+ }
+ function v(i, n, o, p) {
+ if (i = u.from(i.toArray()), i.length < n.byteLength()) {
+ var O = u.alloc(n.byteLength() - i.length);
+ i = u.concat([O, i]);
+ }
+ var P = o.length, F = a(o, n), z = u.alloc(P);
+ z.fill(1);
+ var N = u.alloc(P);
+ return N = m(p, N).update(z).update(u.from([0])).update(i).update(F).digest(), z = m(p, N).update(z).digest(), N = m(p, N).update(z).update(u.from([1])).update(i).update(F).digest(), z = m(p, N).update(z).digest(), {
+ k: N,
+ v: z
+ };
+ }
+ function c(i, n) {
+ var o = new w(i), p = (i.length << 3) - n.bitLength();
+ return p > 0 && o.ishrn(p), o;
+ }
+ function a(i, n) {
+ i = c(i, n), i = i.mod(n);
+ var o = u.from(i.toArray());
+ if (o.length < n.byteLength()) {
+ var p = u.alloc(n.byteLength() - o.length);
+ o = u.concat([p, o]);
+ }
+ return o;
+ }
+ function r(i, n, o) {
+ var p, O;
+ do {
+ for (p = u.alloc(0); p.length * 8 < i.bitLength(); )
+ n.v = m(o, n.k).update(n.v).digest(), p = u.concat([p, n.v]);
+ O = c(p, i), n.k = m(o, n.k).update(n.v).update(u.from([0])).digest(), n.v = m(o, n.k).update(n.v).digest();
+ } while (O.cmp(i) !== -1);
+ return O;
+ }
+ function t(i, n, o, p) {
+ return i.toRed(w.mont(o)).redPow(n).fromRed().mod(p);
+ }
+ x.exports = h, x.exports.getKey = v, x.exports.makeKey = r;
+ }, { "./curves.json": 210, "bn.js": 183, "browserify-rsa": 206, "create-hmac": 333, elliptic: 350, "parse-asn1": 459, "safe-buffer": 214 }], 213: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("bn.js"), g = e("elliptic").ec, b = e("parse-asn1"), w = e("./curves.json");
+ function f(d, s, v, c, a) {
+ var r = b(v);
+ if (r.type === "ec") {
+ if (c !== "ecdsa" && c !== "ecdsa/rsa")
+ throw new Error("wrong public key type");
+ return y(d, s, r);
+ } else if (r.type === "dsa") {
+ if (c !== "dsa")
+ throw new Error("wrong public key type");
+ return h(d, s, r);
+ } else if (c !== "rsa" && c !== "ecdsa/rsa")
+ throw new Error("wrong public key type");
+ s = u.concat([a, s]);
+ for (var t = r.modulus.byteLength(), i = [1], n = 0; s.length + i.length + 2 < t; )
+ i.push(255), n++;
+ i.push(0);
+ for (var o = -1; ++o < s.length; )
+ i.push(s[o]);
+ i = u.from(i);
+ var p = m.mont(r.modulus);
+ d = new m(d).toRed(p), d = d.redPow(new m(r.publicExponent)), d = u.from(d.fromRed().toArray());
+ var O = n < 8 ? 1 : 0;
+ for (t = Math.min(d.length, i.length), d.length !== i.length && (O = 1), o = -1; ++o < t; )
+ O |= d[o] ^ i[o];
+ return O === 0;
+ }
+ function y(d, s, v) {
+ var c = w[v.data.algorithm.curve.join(".")];
+ if (!c)
+ throw new Error("unknown curve " + v.data.algorithm.curve.join("."));
+ var a = new g(c), r = v.data.subjectPrivateKey.data;
+ return a.verify(s, d, r);
+ }
+ function h(d, s, v) {
+ var c = v.data.p, a = v.data.q, r = v.data.g, t = v.data.pub_key, i = b.signature.decode(d, "der"), n = i.s, o = i.r;
+ l(n, a), l(o, a);
+ var p = m.mont(c), O = n.invm(a), P = r.toRed(p).redPow(new m(s).mul(O).mod(a)).fromRed().mul(t.toRed(p).redPow(o.mul(O).mod(a)).fromRed()).mod(c).mod(a);
+ return P.cmp(o) === 0;
+ }
+ function l(d, s) {
+ if (d.cmpn(0) <= 0)
+ throw new Error("invalid sig");
+ if (d.cmp(s) >= s)
+ throw new Error("invalid sig");
+ }
+ x.exports = f;
+ }, { "./curves.json": 210, "bn.js": 183, elliptic: 350, "parse-asn1": 459, "safe-buffer": 214 }], 214: [function(e, x, _) {
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh */
+ var u = e("buffer"), m = u.Buffer;
+ function g(w, f) {
+ for (var y in w)
+ f[y] = w[y];
+ }
+ m.from && m.alloc && m.allocUnsafe && m.allocUnsafeSlow ? x.exports = u : (g(u, _), _.Buffer = b);
+ function b(w, f, y) {
+ return m(w, f, y);
+ }
+ b.prototype = Object.create(m.prototype), g(m, b), b.from = function(w, f, y) {
+ if (typeof w == "number")
+ throw new TypeError("Argument must not be a number");
+ return m(w, f, y);
+ }, b.alloc = function(w, f, y) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ var h = m(w);
+ return f !== void 0 ? typeof y == "string" ? h.fill(f, y) : h.fill(f) : h.fill(0), h;
+ }, b.allocUnsafe = function(w) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ return m(w);
+ }, b.allocUnsafeSlow = function(w) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ return u.SlowBuffer(w);
+ };
+ }, { buffer: 216 }], 215: [function(e, x, _) {
+ arguments[4][185][0].apply(_, arguments);
+ }, { dup: 185 }], 216: [function(e, x, _) {
+ (function(h) {
+ function m(q) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Y) {
+ return typeof Y;
+ } : m = function(Y) {
+ return Y && typeof Symbol == "function" && Y.constructor === Symbol && Y !== Symbol.prototype ? "symbol" : typeof Y;
+ }, m(q);
+ }
+ var g = e("base64-js"), b = e("ieee754");
+ _.Buffer = h, _.SlowBuffer = n, _.INSPECT_MAX_BYTES = 50;
+ var w = 2147483647;
+ _.kMaxLength = w, h.TYPED_ARRAY_SUPPORT = f(), !h.TYPED_ARRAY_SUPPORT && typeof console != "undefined" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
+ function f() {
+ try {
+ var q = new Uint8Array(1);
+ return q.__proto__ = {
+ __proto__: Uint8Array.prototype,
+ foo: function() {
+ return 42;
+ }
+ }, q.foo() === 42;
+ } catch (G) {
+ return !1;
+ }
+ }
+ Object.defineProperty(h.prototype, "parent", {
+ enumerable: !0,
+ get: function() {
+ if (h.isBuffer(this))
+ return this.buffer;
+ }
+ }), Object.defineProperty(h.prototype, "offset", {
+ enumerable: !0,
+ get: function() {
+ if (h.isBuffer(this))
+ return this.byteOffset;
+ }
+ });
+ function y(q) {
+ if (q > w)
+ throw new RangeError('The value "' + q + '" is invalid for option "size"');
+ var G = new Uint8Array(q);
+ return G.__proto__ = h.prototype, G;
+ }
+ function h(q, G, Y) {
+ if (typeof q == "number") {
+ if (typeof G == "string")
+ throw new TypeError('The "string" argument must be of type string. Received type number');
+ return v(q);
+ }
+ return l(q, G, Y);
+ }
+ typeof Symbol != "undefined" && Symbol.species != null && h[Symbol.species] === h && Object.defineProperty(h, Symbol.species, {
+ value: null,
+ configurable: !0,
+ enumerable: !1,
+ writable: !1
+ }), h.poolSize = 8192;
+ function l(q, G, Y) {
+ if (typeof q == "string")
+ return c(q, G);
+ if (ArrayBuffer.isView(q))
+ return a(q);
+ if (q == null)
+ throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(q));
+ if (se(q, ArrayBuffer) || q && se(q.buffer, ArrayBuffer))
+ return r(q, G, Y);
+ if (typeof q == "number")
+ throw new TypeError('The "value" argument must not be of type number. Received type number');
+ var fe = q.valueOf && q.valueOf();
+ if (fe != null && fe !== q)
+ return h.from(fe, G, Y);
+ var we = t(q);
+ if (we)
+ return we;
+ if (typeof Symbol != "undefined" && Symbol.toPrimitive != null && typeof q[Symbol.toPrimitive] == "function")
+ return h.from(q[Symbol.toPrimitive]("string"), G, Y);
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(q));
+ }
+ h.from = function(q, G, Y) {
+ return l(q, G, Y);
+ }, h.prototype.__proto__ = Uint8Array.prototype, h.__proto__ = Uint8Array;
+ function d(q) {
+ if (typeof q != "number")
+ throw new TypeError('"size" argument must be of type number');
+ if (q < 0)
+ throw new RangeError('The value "' + q + '" is invalid for option "size"');
+ }
+ function s(q, G, Y) {
+ return d(q), q <= 0 ? y(q) : G !== void 0 ? typeof Y == "string" ? y(q).fill(G, Y) : y(q).fill(G) : y(q);
+ }
+ h.alloc = function(q, G, Y) {
+ return s(q, G, Y);
+ };
+ function v(q) {
+ return d(q), y(q < 0 ? 0 : i(q) | 0);
+ }
+ h.allocUnsafe = function(q) {
+ return v(q);
+ }, h.allocUnsafeSlow = function(q) {
+ return v(q);
+ };
+ function c(q, G) {
+ if ((typeof G != "string" || G === "") && (G = "utf8"), !h.isEncoding(G))
+ throw new TypeError("Unknown encoding: " + G);
+ var Y = o(q, G) | 0, fe = y(Y), we = fe.write(q, G);
+ return we !== Y && (fe = fe.slice(0, we)), fe;
+ }
+ function a(q) {
+ for (var G = q.length < 0 ? 0 : i(q.length) | 0, Y = y(G), fe = 0; fe < G; fe += 1)
+ Y[fe] = q[fe] & 255;
+ return Y;
+ }
+ function r(q, G, Y) {
+ if (G < 0 || q.byteLength < G)
+ throw new RangeError('"offset" is outside of buffer bounds');
+ if (q.byteLength < G + (Y || 0))
+ throw new RangeError('"length" is outside of buffer bounds');
+ var fe;
+ return G === void 0 && Y === void 0 ? fe = new Uint8Array(q) : Y === void 0 ? fe = new Uint8Array(q, G) : fe = new Uint8Array(q, G, Y), fe.__proto__ = h.prototype, fe;
+ }
+ function t(q) {
+ if (h.isBuffer(q)) {
+ var G = i(q.length) | 0, Y = y(G);
+ return Y.length === 0 || q.copy(Y, 0, 0, G), Y;
+ }
+ if (q.length !== void 0)
+ return typeof q.length != "number" || Ce(q.length) ? y(0) : a(q);
+ if (q.type === "Buffer" && Array.isArray(q.data))
+ return a(q.data);
+ }
+ function i(q) {
+ if (q >= w)
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes");
+ return q | 0;
+ }
+ function n(q) {
+ return +q != q && (q = 0), h.alloc(+q);
+ }
+ h.isBuffer = function(G) {
+ return G != null && G._isBuffer === !0 && G !== h.prototype;
+ }, h.compare = function(G, Y) {
+ if (se(G, Uint8Array) && (G = h.from(G, G.offset, G.byteLength)), se(Y, Uint8Array) && (Y = h.from(Y, Y.offset, Y.byteLength)), !h.isBuffer(G) || !h.isBuffer(Y))
+ throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
+ if (G === Y)
+ return 0;
+ for (var fe = G.length, we = Y.length, _e = 0, je = Math.min(fe, we); _e < je; ++_e)
+ if (G[_e] !== Y[_e]) {
+ fe = G[_e], we = Y[_e];
+ break;
+ }
+ return fe < we ? -1 : we < fe ? 1 : 0;
+ }, h.isEncoding = function(G) {
+ switch (String(G).toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "latin1":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return !0;
+ default:
+ return !1;
+ }
+ }, h.concat = function(G, Y) {
+ if (!Array.isArray(G))
+ throw new TypeError('"list" argument must be an Array of Buffers');
+ if (G.length === 0)
+ return h.alloc(0);
+ var fe;
+ if (Y === void 0)
+ for (Y = 0, fe = 0; fe < G.length; ++fe)
+ Y += G[fe].length;
+ var we = h.allocUnsafe(Y), _e = 0;
+ for (fe = 0; fe < G.length; ++fe) {
+ var je = G[fe];
+ if (se(je, Uint8Array) && (je = h.from(je)), !h.isBuffer(je))
+ throw new TypeError('"list" argument must be an Array of Buffers');
+ je.copy(we, _e), _e += je.length;
+ }
+ return we;
+ };
+ function o(q, G) {
+ if (h.isBuffer(q))
+ return q.length;
+ if (ArrayBuffer.isView(q) || se(q, ArrayBuffer))
+ return q.byteLength;
+ if (typeof q != "string")
+ throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + m(q));
+ var Y = q.length, fe = arguments.length > 2 && arguments[2] === !0;
+ if (!fe && Y === 0)
+ return 0;
+ for (var we = !1; ; )
+ switch (G) {
+ case "ascii":
+ case "latin1":
+ case "binary":
+ return Y;
+ case "utf8":
+ case "utf-8":
+ return J(q).length;
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return Y * 2;
+ case "hex":
+ return Y >>> 1;
+ case "base64":
+ return ke(q).length;
+ default:
+ if (we)
+ return fe ? -1 : J(q).length;
+ G = ("" + G).toLowerCase(), we = !0;
+ }
+ }
+ h.byteLength = o;
+ function p(q, G, Y) {
+ var fe = !1;
+ if ((G === void 0 || G < 0) && (G = 0), G > this.length || ((Y === void 0 || Y > this.length) && (Y = this.length), Y <= 0) || (Y >>>= 0, G >>>= 0, Y <= G))
+ return "";
+ for (q || (q = "utf8"); ; )
+ switch (q) {
+ case "hex":
+ return D(this, G, Y);
+ case "utf8":
+ case "utf-8":
+ return A(this, G, Y);
+ case "ascii":
+ return W(this, G, Y);
+ case "latin1":
+ case "binary":
+ return U(this, G, Y);
+ case "base64":
+ return E(this, G, Y);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return B(this, G, Y);
+ default:
+ if (fe)
+ throw new TypeError("Unknown encoding: " + q);
+ q = (q + "").toLowerCase(), fe = !0;
+ }
+ }
+ h.prototype._isBuffer = !0;
+ function O(q, G, Y) {
+ var fe = q[G];
+ q[G] = q[Y], q[Y] = fe;
+ }
+ h.prototype.swap16 = function() {
+ var G = this.length;
+ if (G % 2 !== 0)
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
+ for (var Y = 0; Y < G; Y += 2)
+ O(this, Y, Y + 1);
+ return this;
+ }, h.prototype.swap32 = function() {
+ var G = this.length;
+ if (G % 4 !== 0)
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
+ for (var Y = 0; Y < G; Y += 4)
+ O(this, Y, Y + 3), O(this, Y + 1, Y + 2);
+ return this;
+ }, h.prototype.swap64 = function() {
+ var G = this.length;
+ if (G % 8 !== 0)
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
+ for (var Y = 0; Y < G; Y += 8)
+ O(this, Y, Y + 7), O(this, Y + 1, Y + 6), O(this, Y + 2, Y + 5), O(this, Y + 3, Y + 4);
+ return this;
+ }, h.prototype.toString = function() {
+ var G = this.length;
+ return G === 0 ? "" : arguments.length === 0 ? A(this, 0, G) : p.apply(this, arguments);
+ }, h.prototype.toLocaleString = h.prototype.toString, h.prototype.equals = function(G) {
+ if (!h.isBuffer(G))
+ throw new TypeError("Argument must be a Buffer");
+ return this === G ? !0 : h.compare(this, G) === 0;
+ }, h.prototype.inspect = function() {
+ var G = "", Y = _.INSPECT_MAX_BYTES;
+ return G = this.toString("hex", 0, Y).replace(/(.{2})/g, "$1 ").trim(), this.length > Y && (G += " ... "), "";
+ }, h.prototype.compare = function(G, Y, fe, we, _e) {
+ if (se(G, Uint8Array) && (G = h.from(G, G.offset, G.byteLength)), !h.isBuffer(G))
+ throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + m(G));
+ if (Y === void 0 && (Y = 0), fe === void 0 && (fe = G ? G.length : 0), we === void 0 && (we = 0), _e === void 0 && (_e = this.length), Y < 0 || fe > G.length || we < 0 || _e > this.length)
+ throw new RangeError("out of range index");
+ if (we >= _e && Y >= fe)
+ return 0;
+ if (we >= _e)
+ return -1;
+ if (Y >= fe)
+ return 1;
+ if (Y >>>= 0, fe >>>= 0, we >>>= 0, _e >>>= 0, this === G)
+ return 0;
+ for (var je = _e - we, Ye = fe - Y, nt = Math.min(je, Ye), ut = this.slice(we, _e), ot = G.slice(Y, fe), Ue = 0; Ue < nt; ++Ue)
+ if (ut[Ue] !== ot[Ue]) {
+ je = ut[Ue], Ye = ot[Ue];
+ break;
+ }
+ return je < Ye ? -1 : Ye < je ? 1 : 0;
+ };
+ function P(q, G, Y, fe, we) {
+ if (q.length === 0)
+ return -1;
+ if (typeof Y == "string" ? (fe = Y, Y = 0) : Y > 2147483647 ? Y = 2147483647 : Y < -2147483648 && (Y = -2147483648), Y = +Y, Ce(Y) && (Y = we ? 0 : q.length - 1), Y < 0 && (Y = q.length + Y), Y >= q.length) {
+ if (we)
+ return -1;
+ Y = q.length - 1;
+ } else if (Y < 0)
+ if (we)
+ Y = 0;
+ else
+ return -1;
+ if (typeof G == "string" && (G = h.from(G, fe)), h.isBuffer(G))
+ return G.length === 0 ? -1 : F(q, G, Y, fe, we);
+ if (typeof G == "number")
+ return G = G & 255, typeof Uint8Array.prototype.indexOf == "function" ? we ? Uint8Array.prototype.indexOf.call(q, G, Y) : Uint8Array.prototype.lastIndexOf.call(q, G, Y) : F(q, [G], Y, fe, we);
+ throw new TypeError("val must be string, number or Buffer");
+ }
+ function F(q, G, Y, fe, we) {
+ var _e = 1, je = q.length, Ye = G.length;
+ if (fe !== void 0 && (fe = String(fe).toLowerCase(), fe === "ucs2" || fe === "ucs-2" || fe === "utf16le" || fe === "utf-16le")) {
+ if (q.length < 2 || G.length < 2)
+ return -1;
+ _e = 2, je /= 2, Ye /= 2, Y /= 2;
+ }
+ function nt(Qe, tt) {
+ return _e === 1 ? Qe[tt] : Qe.readUInt16BE(tt * _e);
+ }
+ var ut;
+ if (we) {
+ var ot = -1;
+ for (ut = Y; ut < je; ut++)
+ if (nt(q, ut) === nt(G, ot === -1 ? 0 : ut - ot)) {
+ if (ot === -1 && (ot = ut), ut - ot + 1 === Ye)
+ return ot * _e;
+ } else
+ ot !== -1 && (ut -= ut - ot), ot = -1;
+ } else
+ for (Y + Ye > je && (Y = je - Ye), ut = Y; ut >= 0; ut--) {
+ for (var Ue = !0, Ve = 0; Ve < Ye; Ve++)
+ if (nt(q, ut + Ve) !== nt(G, Ve)) {
+ Ue = !1;
+ break;
+ }
+ if (Ue)
+ return ut;
+ }
+ return -1;
+ }
+ h.prototype.includes = function(G, Y, fe) {
+ return this.indexOf(G, Y, fe) !== -1;
+ }, h.prototype.indexOf = function(G, Y, fe) {
+ return P(this, G, Y, fe, !0);
+ }, h.prototype.lastIndexOf = function(G, Y, fe) {
+ return P(this, G, Y, fe, !1);
+ };
+ function z(q, G, Y, fe) {
+ Y = Number(Y) || 0;
+ var we = q.length - Y;
+ fe ? (fe = Number(fe), fe > we && (fe = we)) : fe = we;
+ var _e = G.length;
+ fe > _e / 2 && (fe = _e / 2);
+ for (var je = 0; je < fe; ++je) {
+ var Ye = parseInt(G.substr(je * 2, 2), 16);
+ if (Ce(Ye))
+ return je;
+ q[Y + je] = Ye;
+ }
+ return je;
+ }
+ function N(q, G, Y, fe) {
+ return ne(J(G, q.length - Y), q, Y, fe);
+ }
+ function M(q, G, Y, fe) {
+ return ne(Q(G), q, Y, fe);
+ }
+ function I(q, G, Y, fe) {
+ return M(q, G, Y, fe);
+ }
+ function R(q, G, Y, fe) {
+ return ne(ke(G), q, Y, fe);
+ }
+ function C(q, G, Y, fe) {
+ return ne(he(G, q.length - Y), q, Y, fe);
+ }
+ h.prototype.write = function(G, Y, fe, we) {
+ if (Y === void 0)
+ we = "utf8", fe = this.length, Y = 0;
+ else if (fe === void 0 && typeof Y == "string")
+ we = Y, fe = this.length, Y = 0;
+ else if (isFinite(Y))
+ Y = Y >>> 0, isFinite(fe) ? (fe = fe >>> 0, we === void 0 && (we = "utf8")) : (we = fe, fe = void 0);
+ else
+ throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
+ var _e = this.length - Y;
+ if ((fe === void 0 || fe > _e) && (fe = _e), G.length > 0 && (fe < 0 || Y < 0) || Y > this.length)
+ throw new RangeError("Attempt to write outside buffer bounds");
+ we || (we = "utf8");
+ for (var je = !1; ; )
+ switch (we) {
+ case "hex":
+ return z(this, G, Y, fe);
+ case "utf8":
+ case "utf-8":
+ return N(this, G, Y, fe);
+ case "ascii":
+ return M(this, G, Y, fe);
+ case "latin1":
+ case "binary":
+ return I(this, G, Y, fe);
+ case "base64":
+ return R(this, G, Y, fe);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return C(this, G, Y, fe);
+ default:
+ if (je)
+ throw new TypeError("Unknown encoding: " + we);
+ we = ("" + we).toLowerCase(), je = !0;
+ }
+ }, h.prototype.toJSON = function() {
+ return {
+ type: "Buffer",
+ data: Array.prototype.slice.call(this._arr || this, 0)
+ };
+ };
+ function E(q, G, Y) {
+ return G === 0 && Y === q.length ? g.fromByteArray(q) : g.fromByteArray(q.slice(G, Y));
+ }
+ function A(q, G, Y) {
+ Y = Math.min(q.length, Y);
+ for (var fe = [], we = G; we < Y; ) {
+ var _e = q[we], je = null, Ye = _e > 239 ? 4 : _e > 223 ? 3 : _e > 191 ? 2 : 1;
+ if (we + Ye <= Y) {
+ var nt, ut, ot, Ue;
+ switch (Ye) {
+ case 1:
+ _e < 128 && (je = _e);
+ break;
+ case 2:
+ nt = q[we + 1], (nt & 192) === 128 && (Ue = (_e & 31) << 6 | nt & 63, Ue > 127 && (je = Ue));
+ break;
+ case 3:
+ nt = q[we + 1], ut = q[we + 2], (nt & 192) === 128 && (ut & 192) === 128 && (Ue = (_e & 15) << 12 | (nt & 63) << 6 | ut & 63, Ue > 2047 && (Ue < 55296 || Ue > 57343) && (je = Ue));
+ break;
+ case 4:
+ nt = q[we + 1], ut = q[we + 2], ot = q[we + 3], (nt & 192) === 128 && (ut & 192) === 128 && (ot & 192) === 128 && (Ue = (_e & 15) << 18 | (nt & 63) << 12 | (ut & 63) << 6 | ot & 63, Ue > 65535 && Ue < 1114112 && (je = Ue));
+ }
+ }
+ je === null ? (je = 65533, Ye = 1) : je > 65535 && (je -= 65536, fe.push(je >>> 10 & 1023 | 55296), je = 56320 | je & 1023), fe.push(je), we += Ye;
+ }
+ return $(fe);
+ }
+ var L = 4096;
+ function $(q) {
+ var G = q.length;
+ if (G <= L)
+ return String.fromCharCode.apply(String, q);
+ for (var Y = "", fe = 0; fe < G; )
+ Y += String.fromCharCode.apply(String, q.slice(fe, fe += L));
+ return Y;
+ }
+ function W(q, G, Y) {
+ var fe = "";
+ Y = Math.min(q.length, Y);
+ for (var we = G; we < Y; ++we)
+ fe += String.fromCharCode(q[we] & 127);
+ return fe;
+ }
+ function U(q, G, Y) {
+ var fe = "";
+ Y = Math.min(q.length, Y);
+ for (var we = G; we < Y; ++we)
+ fe += String.fromCharCode(q[we]);
+ return fe;
+ }
+ function D(q, G, Y) {
+ var fe = q.length;
+ (!G || G < 0) && (G = 0), (!Y || Y < 0 || Y > fe) && (Y = fe);
+ for (var we = "", _e = G; _e < Y; ++_e)
+ we += oe(q[_e]);
+ return we;
+ }
+ function B(q, G, Y) {
+ for (var fe = q.slice(G, Y), we = "", _e = 0; _e < fe.length; _e += 2)
+ we += String.fromCharCode(fe[_e] + fe[_e + 1] * 256);
+ return we;
+ }
+ h.prototype.slice = function(G, Y) {
+ var fe = this.length;
+ G = ~~G, Y = Y === void 0 ? fe : ~~Y, G < 0 ? (G += fe, G < 0 && (G = 0)) : G > fe && (G = fe), Y < 0 ? (Y += fe, Y < 0 && (Y = 0)) : Y > fe && (Y = fe), Y < G && (Y = G);
+ var we = this.subarray(G, Y);
+ return we.__proto__ = h.prototype, we;
+ };
+ function j(q, G, Y) {
+ if (q % 1 !== 0 || q < 0)
+ throw new RangeError("offset is not uint");
+ if (q + G > Y)
+ throw new RangeError("Trying to access beyond buffer length");
+ }
+ h.prototype.readUIntLE = function(G, Y, fe) {
+ G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length);
+ for (var we = this[G], _e = 1, je = 0; ++je < Y && (_e *= 256); )
+ we += this[G + je] * _e;
+ return we;
+ }, h.prototype.readUIntBE = function(G, Y, fe) {
+ G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length);
+ for (var we = this[G + --Y], _e = 1; Y > 0 && (_e *= 256); )
+ we += this[G + --Y] * _e;
+ return we;
+ }, h.prototype.readUInt8 = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 1, this.length), this[G];
+ }, h.prototype.readUInt16LE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 2, this.length), this[G] | this[G + 1] << 8;
+ }, h.prototype.readUInt16BE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 2, this.length), this[G] << 8 | this[G + 1];
+ }, h.prototype.readUInt32LE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), (this[G] | this[G + 1] << 8 | this[G + 2] << 16) + this[G + 3] * 16777216;
+ }, h.prototype.readUInt32BE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), this[G] * 16777216 + (this[G + 1] << 16 | this[G + 2] << 8 | this[G + 3]);
+ }, h.prototype.readIntLE = function(G, Y, fe) {
+ G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length);
+ for (var we = this[G], _e = 1, je = 0; ++je < Y && (_e *= 256); )
+ we += this[G + je] * _e;
+ return _e *= 128, we >= _e && (we -= Math.pow(2, 8 * Y)), we;
+ }, h.prototype.readIntBE = function(G, Y, fe) {
+ G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length);
+ for (var we = Y, _e = 1, je = this[G + --we]; we > 0 && (_e *= 256); )
+ je += this[G + --we] * _e;
+ return _e *= 128, je >= _e && (je -= Math.pow(2, 8 * Y)), je;
+ }, h.prototype.readInt8 = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 1, this.length), this[G] & 128 ? (255 - this[G] + 1) * -1 : this[G];
+ }, h.prototype.readInt16LE = function(G, Y) {
+ G = G >>> 0, Y || j(G, 2, this.length);
+ var fe = this[G] | this[G + 1] << 8;
+ return fe & 32768 ? fe | 4294901760 : fe;
+ }, h.prototype.readInt16BE = function(G, Y) {
+ G = G >>> 0, Y || j(G, 2, this.length);
+ var fe = this[G + 1] | this[G] << 8;
+ return fe & 32768 ? fe | 4294901760 : fe;
+ }, h.prototype.readInt32LE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), this[G] | this[G + 1] << 8 | this[G + 2] << 16 | this[G + 3] << 24;
+ }, h.prototype.readInt32BE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), this[G] << 24 | this[G + 1] << 16 | this[G + 2] << 8 | this[G + 3];
+ }, h.prototype.readFloatLE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), b.read(this, G, !0, 23, 4);
+ }, h.prototype.readFloatBE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 4, this.length), b.read(this, G, !1, 23, 4);
+ }, h.prototype.readDoubleLE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 8, this.length), b.read(this, G, !0, 52, 8);
+ }, h.prototype.readDoubleBE = function(G, Y) {
+ return G = G >>> 0, Y || j(G, 8, this.length), b.read(this, G, !1, 52, 8);
+ };
+ function V(q, G, Y, fe, we, _e) {
+ if (!h.isBuffer(q))
+ throw new TypeError('"buffer" argument must be a Buffer instance');
+ if (G > we || G < _e)
+ throw new RangeError('"value" argument is out of bounds');
+ if (Y + fe > q.length)
+ throw new RangeError("Index out of range");
+ }
+ h.prototype.writeUIntLE = function(G, Y, fe, we) {
+ if (G = +G, Y = Y >>> 0, fe = fe >>> 0, !we) {
+ var _e = Math.pow(2, 8 * fe) - 1;
+ V(this, G, Y, fe, _e, 0);
+ }
+ var je = 1, Ye = 0;
+ for (this[Y] = G & 255; ++Ye < fe && (je *= 256); )
+ this[Y + Ye] = G / je & 255;
+ return Y + fe;
+ }, h.prototype.writeUIntBE = function(G, Y, fe, we) {
+ if (G = +G, Y = Y >>> 0, fe = fe >>> 0, !we) {
+ var _e = Math.pow(2, 8 * fe) - 1;
+ V(this, G, Y, fe, _e, 0);
+ }
+ var je = fe - 1, Ye = 1;
+ for (this[Y + je] = G & 255; --je >= 0 && (Ye *= 256); )
+ this[Y + je] = G / Ye & 255;
+ return Y + fe;
+ }, h.prototype.writeUInt8 = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 1, 255, 0), this[Y] = G & 255, Y + 1;
+ }, h.prototype.writeUInt16LE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 65535, 0), this[Y] = G & 255, this[Y + 1] = G >>> 8, Y + 2;
+ }, h.prototype.writeUInt16BE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 65535, 0), this[Y] = G >>> 8, this[Y + 1] = G & 255, Y + 2;
+ }, h.prototype.writeUInt32LE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 4294967295, 0), this[Y + 3] = G >>> 24, this[Y + 2] = G >>> 16, this[Y + 1] = G >>> 8, this[Y] = G & 255, Y + 4;
+ }, h.prototype.writeUInt32BE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 4294967295, 0), this[Y] = G >>> 24, this[Y + 1] = G >>> 16, this[Y + 2] = G >>> 8, this[Y + 3] = G & 255, Y + 4;
+ }, h.prototype.writeIntLE = function(G, Y, fe, we) {
+ if (G = +G, Y = Y >>> 0, !we) {
+ var _e = Math.pow(2, 8 * fe - 1);
+ V(this, G, Y, fe, _e - 1, -_e);
+ }
+ var je = 0, Ye = 1, nt = 0;
+ for (this[Y] = G & 255; ++je < fe && (Ye *= 256); )
+ G < 0 && nt === 0 && this[Y + je - 1] !== 0 && (nt = 1), this[Y + je] = (G / Ye >> 0) - nt & 255;
+ return Y + fe;
+ }, h.prototype.writeIntBE = function(G, Y, fe, we) {
+ if (G = +G, Y = Y >>> 0, !we) {
+ var _e = Math.pow(2, 8 * fe - 1);
+ V(this, G, Y, fe, _e - 1, -_e);
+ }
+ var je = fe - 1, Ye = 1, nt = 0;
+ for (this[Y + je] = G & 255; --je >= 0 && (Ye *= 256); )
+ G < 0 && nt === 0 && this[Y + je + 1] !== 0 && (nt = 1), this[Y + je] = (G / Ye >> 0) - nt & 255;
+ return Y + fe;
+ }, h.prototype.writeInt8 = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 1, 127, -128), G < 0 && (G = 255 + G + 1), this[Y] = G & 255, Y + 1;
+ }, h.prototype.writeInt16LE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 32767, -32768), this[Y] = G & 255, this[Y + 1] = G >>> 8, Y + 2;
+ }, h.prototype.writeInt16BE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 32767, -32768), this[Y] = G >>> 8, this[Y + 1] = G & 255, Y + 2;
+ }, h.prototype.writeInt32LE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 2147483647, -2147483648), this[Y] = G & 255, this[Y + 1] = G >>> 8, this[Y + 2] = G >>> 16, this[Y + 3] = G >>> 24, Y + 4;
+ }, h.prototype.writeInt32BE = function(G, Y, fe) {
+ return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 2147483647, -2147483648), G < 0 && (G = 4294967295 + G + 1), this[Y] = G >>> 24, this[Y + 1] = G >>> 16, this[Y + 2] = G >>> 8, this[Y + 3] = G & 255, Y + 4;
+ };
+ function re(q, G, Y, fe, we, _e) {
+ if (Y + fe > q.length)
+ throw new RangeError("Index out of range");
+ if (Y < 0)
+ throw new RangeError("Index out of range");
+ }
+ function ee(q, G, Y, fe, we) {
+ return G = +G, Y = Y >>> 0, we || re(q, G, Y, 4), b.write(q, G, Y, fe, 23, 4), Y + 4;
+ }
+ h.prototype.writeFloatLE = function(G, Y, fe) {
+ return ee(this, G, Y, !0, fe);
+ }, h.prototype.writeFloatBE = function(G, Y, fe) {
+ return ee(this, G, Y, !1, fe);
+ };
+ function ce(q, G, Y, fe, we) {
+ return G = +G, Y = Y >>> 0, we || re(q, G, Y, 8), b.write(q, G, Y, fe, 52, 8), Y + 8;
+ }
+ h.prototype.writeDoubleLE = function(G, Y, fe) {
+ return ce(this, G, Y, !0, fe);
+ }, h.prototype.writeDoubleBE = function(G, Y, fe) {
+ return ce(this, G, Y, !1, fe);
+ }, h.prototype.copy = function(G, Y, fe, we) {
+ if (!h.isBuffer(G))
+ throw new TypeError("argument should be a Buffer");
+ if (fe || (fe = 0), !we && we !== 0 && (we = this.length), Y >= G.length && (Y = G.length), Y || (Y = 0), we > 0 && we < fe && (we = fe), we === fe || G.length === 0 || this.length === 0)
+ return 0;
+ if (Y < 0)
+ throw new RangeError("targetStart out of bounds");
+ if (fe < 0 || fe >= this.length)
+ throw new RangeError("Index out of range");
+ if (we < 0)
+ throw new RangeError("sourceEnd out of bounds");
+ we > this.length && (we = this.length), G.length - Y < we - fe && (we = G.length - Y + fe);
+ var _e = we - fe;
+ if (this === G && typeof Uint8Array.prototype.copyWithin == "function")
+ this.copyWithin(Y, fe, we);
+ else if (this === G && fe < Y && Y < we)
+ for (var je = _e - 1; je >= 0; --je)
+ G[je + Y] = this[je + fe];
+ else
+ Uint8Array.prototype.set.call(G, this.subarray(fe, we), Y);
+ return _e;
+ }, h.prototype.fill = function(G, Y, fe, we) {
+ if (typeof G == "string") {
+ if (typeof Y == "string" ? (we = Y, Y = 0, fe = this.length) : typeof fe == "string" && (we = fe, fe = this.length), we !== void 0 && typeof we != "string")
+ throw new TypeError("encoding must be a string");
+ if (typeof we == "string" && !h.isEncoding(we))
+ throw new TypeError("Unknown encoding: " + we);
+ if (G.length === 1) {
+ var _e = G.charCodeAt(0);
+ (we === "utf8" && _e < 128 || we === "latin1") && (G = _e);
+ }
+ } else
+ typeof G == "number" && (G = G & 255);
+ if (Y < 0 || this.length < Y || this.length < fe)
+ throw new RangeError("Out of range index");
+ if (fe <= Y)
+ return this;
+ Y = Y >>> 0, fe = fe === void 0 ? this.length : fe >>> 0, G || (G = 0);
+ var je;
+ if (typeof G == "number")
+ for (je = Y; je < fe; ++je)
+ this[je] = G;
+ else {
+ var Ye = h.isBuffer(G) ? G : h.from(G, we), nt = Ye.length;
+ if (nt === 0)
+ throw new TypeError('The value "' + G + '" is invalid for argument "value"');
+ for (je = 0; je < fe - Y; ++je)
+ this[je + Y] = Ye[je % nt];
+ }
+ return this;
+ };
+ var ve = /[^+/0-9A-Za-z-_]/g;
+ function ge(q) {
+ if (q = q.split("=")[0], q = q.trim().replace(ve, ""), q.length < 2)
+ return "";
+ for (; q.length % 4 !== 0; )
+ q = q + "=";
+ return q;
+ }
+ function oe(q) {
+ return q < 16 ? "0" + q.toString(16) : q.toString(16);
+ }
+ function J(q, G) {
+ G = G || 1 / 0;
+ for (var Y, fe = q.length, we = null, _e = [], je = 0; je < fe; ++je) {
+ if (Y = q.charCodeAt(je), Y > 55295 && Y < 57344) {
+ if (!we) {
+ if (Y > 56319) {
+ (G -= 3) > -1 && _e.push(239, 191, 189);
+ continue;
+ } else if (je + 1 === fe) {
+ (G -= 3) > -1 && _e.push(239, 191, 189);
+ continue;
+ }
+ we = Y;
+ continue;
+ }
+ if (Y < 56320) {
+ (G -= 3) > -1 && _e.push(239, 191, 189), we = Y;
+ continue;
+ }
+ Y = (we - 55296 << 10 | Y - 56320) + 65536;
+ } else
+ we && (G -= 3) > -1 && _e.push(239, 191, 189);
+ if (we = null, Y < 128) {
+ if ((G -= 1) < 0)
+ break;
+ _e.push(Y);
+ } else if (Y < 2048) {
+ if ((G -= 2) < 0)
+ break;
+ _e.push(Y >> 6 | 192, Y & 63 | 128);
+ } else if (Y < 65536) {
+ if ((G -= 3) < 0)
+ break;
+ _e.push(Y >> 12 | 224, Y >> 6 & 63 | 128, Y & 63 | 128);
+ } else if (Y < 1114112) {
+ if ((G -= 4) < 0)
+ break;
+ _e.push(Y >> 18 | 240, Y >> 12 & 63 | 128, Y >> 6 & 63 | 128, Y & 63 | 128);
+ } else
+ throw new Error("Invalid code point");
+ }
+ return _e;
+ }
+ function Q(q) {
+ for (var G = [], Y = 0; Y < q.length; ++Y)
+ G.push(q.charCodeAt(Y) & 255);
+ return G;
+ }
+ function he(q, G) {
+ for (var Y, fe, we, _e = [], je = 0; je < q.length && !((G -= 2) < 0); ++je)
+ Y = q.charCodeAt(je), fe = Y >> 8, we = Y % 256, _e.push(we), _e.push(fe);
+ return _e;
+ }
+ function ke(q) {
+ return g.toByteArray(ge(q));
+ }
+ function ne(q, G, Y, fe) {
+ for (var we = 0; we < fe && !(we + Y >= G.length || we >= q.length); ++we)
+ G[we + Y] = q[we];
+ return we;
+ }
+ function se(q, G) {
+ return q instanceof G || q != null && q.constructor != null && q.constructor.name != null && q.constructor.name === G.name;
+ }
+ function Ce(q) {
+ return q !== q;
+ }
+ }).call(this, e("buffer").Buffer);
+ }, { "base64-js": 182, buffer: 216, ieee754: 385 }], 217: [function(e, x, _) {
+ (function(u) {
+ x.exports = function(g, b) {
+ for (var w = Math.min(g.length, b.length), f = new u(w), y = 0; y < w; ++y)
+ f[y] = g[y] ^ b[y];
+ return f;
+ };
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216 }], 218: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("stream").Transform, g = e("string_decoder").StringDecoder, b = e("inherits");
+ function w(f) {
+ m.call(this), this.hashMode = typeof f == "string", this.hashMode ? this[f] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
+ }
+ b(w, m), w.prototype.update = function(f, y, h) {
+ typeof f == "string" && (f = u.from(f, y));
+ var l = this._update(f);
+ return this.hashMode ? this : (h && (l = this._toString(l, h)), l);
+ }, w.prototype.setAutoPadding = function() {
+ }, w.prototype.getAuthTag = function() {
+ throw new Error("trying to get auth tag in unsupported state");
+ }, w.prototype.setAuthTag = function() {
+ throw new Error("trying to set auth tag in unsupported state");
+ }, w.prototype.setAAD = function() {
+ throw new Error("trying to set aad in unsupported state");
+ }, w.prototype._transform = function(f, y, h) {
+ var l;
+ try {
+ this.hashMode ? this._update(f) : this.push(this._update(f));
+ } catch (d) {
+ l = d;
+ } finally {
+ h(l);
+ }
+ }, w.prototype._flush = function(f) {
+ var y;
+ try {
+ this.push(this.__final());
+ } catch (h) {
+ y = h;
+ }
+ f(y);
+ }, w.prototype._finalOrDigest = function(f) {
+ var y = this.__final() || u.alloc(0);
+ return f && (y = this._toString(y, f, !0)), y;
+ }, w.prototype._toString = function(f, y, h) {
+ if (this._decoder || (this._decoder = new g(y), this._encoding = y), this._encoding !== y)
+ throw new Error("can't switch encodings");
+ var l = this._decoder.write(f);
+ return h && (l += this._decoder.end()), l;
+ }, x.exports = w;
+ }, { inherits: 387, "safe-buffer": 494, stream: 506, string_decoder: 520 }], 219: [function(e, x, _) {
+ x.exports = function(u) {
+ if (typeof u != "function")
+ throw TypeError(String(u) + " is not a function");
+ return u;
+ };
+ }, {}], 220: [function(e, x, _) {
+ var u = e("../internals/is-object");
+ x.exports = function(m) {
+ if (!u(m) && m !== null)
+ throw TypeError("Can't set " + String(m) + " as a prototype");
+ return m;
+ };
+ }, { "../internals/is-object": 263 }], 221: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol"), m = e("../internals/object-create"), g = e("../internals/object-define-property"), b = u("unscopables"), w = Array.prototype;
+ w[b] == null && g.f(w, b, {
+ configurable: !0,
+ value: m(null)
+ }), x.exports = function(f) {
+ w[b][f] = !0;
+ };
+ }, { "../internals/object-create": 276, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 222: [function(e, x, _) {
+ x.exports = function(u, m, g) {
+ if (!(u instanceof m))
+ throw TypeError("Incorrect " + (g ? g + " " : "") + "invocation");
+ return u;
+ };
+ }, {}], 223: [function(e, x, _) {
+ var u = e("../internals/is-object");
+ x.exports = function(m) {
+ if (!u(m))
+ throw TypeError(String(m) + " is not an object");
+ return m;
+ };
+ }, { "../internals/is-object": 263 }], 224: [function(e, x, _) {
+ var u = e("../internals/to-indexed-object"), m = e("../internals/to-length"), g = e("../internals/to-absolute-index"), b = function(w) {
+ return function(f, y, h) {
+ var l = u(f), d = m(l.length), s = g(h, d), v;
+ if (w && y != y) {
+ for (; d > s; )
+ if (v = l[s++], v != v)
+ return !0;
+ } else
+ for (; d > s; s++)
+ if ((w || s in l) && l[s] === y)
+ return w || s || 0;
+ return !w && -1;
+ };
+ };
+ x.exports = {
+ // `Array.prototype.includes` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
+ includes: b(!0),
+ // `Array.prototype.indexOf` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
+ indexOf: b(!1)
+ };
+ }, { "../internals/to-absolute-index": 304, "../internals/to-indexed-object": 305, "../internals/to-length": 307 }], 225: [function(e, x, _) {
+ var u = e("../internals/function-bind-context"), m = e("../internals/indexed-object"), g = e("../internals/to-object"), b = e("../internals/to-length"), w = e("../internals/array-species-create"), f = [].push, y = function(h) {
+ var l = h == 1, d = h == 2, s = h == 3, v = h == 4, c = h == 6, a = h == 5 || c;
+ return function(r, t, i, n) {
+ for (var o = g(r), p = m(o), O = u(t, i, 3), P = b(p.length), F = 0, z = n || w, N = l ? z(r, P) : d ? z(r, 0) : void 0, M, I; P > F; F++)
+ if ((a || F in p) && (M = p[F], I = O(M, F, o), h)) {
+ if (l)
+ N[F] = I;
+ else if (I)
+ switch (h) {
+ case 3:
+ return !0;
+ case 5:
+ return M;
+ case 6:
+ return F;
+ case 2:
+ f.call(N, M);
+ }
+ else if (v)
+ return !1;
+ }
+ return c ? -1 : s || v ? v : N;
+ };
+ };
+ x.exports = {
+ // `Array.prototype.forEach` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
+ forEach: y(0),
+ // `Array.prototype.map` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
+ map: y(1),
+ // `Array.prototype.filter` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
+ filter: y(2),
+ // `Array.prototype.some` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
+ some: y(3),
+ // `Array.prototype.every` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
+ every: y(4),
+ // `Array.prototype.find` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
+ find: y(5),
+ // `Array.prototype.findIndex` method
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
+ findIndex: y(6)
+ };
+ }, { "../internals/array-species-create": 227, "../internals/function-bind-context": 248, "../internals/indexed-object": 257, "../internals/to-length": 307, "../internals/to-object": 308 }], 226: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/has"), b = Object.defineProperty, w = {}, f = function(y) {
+ throw y;
+ };
+ x.exports = function(y, h) {
+ if (g(w, y))
+ return w[y];
+ h || (h = {});
+ var l = [][y], d = g(h, "ACCESSORS") ? h.ACCESSORS : !1, s = g(h, 0) ? h[0] : f, v = g(h, 1) ? h[1] : void 0;
+ return w[y] = !!l && !m(function() {
+ if (d && !u)
+ return !0;
+ var c = { length: -1 };
+ d ? b(c, 1, { enumerable: !0, get: f }) : c[1] = 1, l.call(c, s, v);
+ });
+ };
+ }, { "../internals/descriptors": 240, "../internals/fails": 247, "../internals/has": 252 }], 227: [function(e, x, _) {
+ var u = e("../internals/is-object"), m = e("../internals/is-array"), g = e("../internals/well-known-symbol"), b = g("species");
+ x.exports = function(w, f) {
+ var y;
+ return m(w) && (y = w.constructor, typeof y == "function" && (y === Array || m(y.prototype)) ? y = void 0 : u(y) && (y = y[b], y === null && (y = void 0))), new (y === void 0 ? Array : y)(f === 0 ? 0 : f);
+ };
+ }, { "../internals/is-array": 261, "../internals/is-object": 263, "../internals/well-known-symbol": 314 }], 228: [function(e, x, _) {
+ var u = e("../internals/an-object");
+ x.exports = function(m, g, b, w) {
+ try {
+ return w ? g(u(b)[0], b[1]) : g(b);
+ } catch (y) {
+ var f = m.return;
+ throw f !== void 0 && u(f.call(m)), y;
+ }
+ };
+ }, { "../internals/an-object": 223 }], 229: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol"), m = u("iterator"), g = !1;
+ try {
+ var b = 0, w = {
+ next: function() {
+ return { done: !!b++ };
+ },
+ return: function() {
+ g = !0;
+ }
+ };
+ w[m] = function() {
+ return this;
+ }, Array.from(w, function() {
+ throw 2;
+ });
+ } catch (f) {
+ }
+ x.exports = function(f, y) {
+ if (!y && !g)
+ return !1;
+ var h = !1;
+ try {
+ var l = {};
+ l[m] = function() {
+ return {
+ next: function() {
+ return { done: h = !0 };
+ }
+ };
+ }, f(l);
+ } catch (d) {
+ }
+ return h;
+ };
+ }, { "../internals/well-known-symbol": 314 }], 230: [function(e, x, _) {
+ var u = {}.toString;
+ x.exports = function(m) {
+ return u.call(m).slice(8, -1);
+ };
+ }, {}], 231: [function(e, x, _) {
+ var u = e("../internals/to-string-tag-support"), m = e("../internals/classof-raw"), g = e("../internals/well-known-symbol"), b = g("toStringTag"), w = m(function() {
+ return arguments;
+ }()) == "Arguments", f = function(y, h) {
+ try {
+ return y[h];
+ } catch (l) {
+ }
+ };
+ x.exports = u ? m : function(y) {
+ var h, l, d;
+ return y === void 0 ? "Undefined" : y === null ? "Null" : typeof (l = f(h = Object(y), b)) == "string" ? l : w ? m(h) : (d = m(h)) == "Object" && typeof h.callee == "function" ? "Arguments" : d;
+ };
+ }, { "../internals/classof-raw": 230, "../internals/to-string-tag-support": 310, "../internals/well-known-symbol": 314 }], 232: [function(e, x, _) {
+ var u = e("../internals/has"), m = e("../internals/own-keys"), g = e("../internals/object-get-own-property-descriptor"), b = e("../internals/object-define-property");
+ x.exports = function(w, f) {
+ for (var y = m(f), h = b.f, l = g.f, d = 0; d < y.length; d++) {
+ var s = y[d];
+ u(w, s) || h(w, s, l(f, s));
+ }
+ };
+ }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/object-get-own-property-descriptor": 279, "../internals/own-keys": 289 }], 233: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol"), m = u("match");
+ x.exports = function(g) {
+ var b = /./;
+ try {
+ "/./"[g](b);
+ } catch (w) {
+ try {
+ return b[m] = !1, "/./"[g](b);
+ } catch (f) {
+ }
+ }
+ return !1;
+ };
+ }, { "../internals/well-known-symbol": 314 }], 234: [function(e, x, _) {
+ var u = e("../internals/fails");
+ x.exports = !u(function() {
+ function m() {
+ }
+ return m.prototype.constructor = null, Object.getPrototypeOf(new m()) !== m.prototype;
+ });
+ }, { "../internals/fails": 247 }], 235: [function(e, x, _) {
+ var u = e("../internals/iterators-core").IteratorPrototype, m = e("../internals/object-create"), g = e("../internals/create-property-descriptor"), b = e("../internals/set-to-string-tag"), w = e("../internals/iterators"), f = function() {
+ return this;
+ };
+ x.exports = function(y, h, l) {
+ var d = h + " Iterator";
+ return y.prototype = m(u, { next: g(1, l) }), b(y, d, !1, !0), w[d] = f, y;
+ };
+ }, { "../internals/create-property-descriptor": 237, "../internals/iterators": 268, "../internals/iterators-core": 267, "../internals/object-create": 276, "../internals/set-to-string-tag": 298 }], 236: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/object-define-property"), g = e("../internals/create-property-descriptor");
+ x.exports = u ? function(b, w, f) {
+ return m.f(b, w, g(1, f));
+ } : function(b, w, f) {
+ return b[w] = f, b;
+ };
+ }, { "../internals/create-property-descriptor": 237, "../internals/descriptors": 240, "../internals/object-define-property": 278 }], 237: [function(e, x, _) {
+ x.exports = function(u, m) {
+ return {
+ enumerable: !(u & 1),
+ configurable: !(u & 2),
+ writable: !(u & 4),
+ value: m
+ };
+ };
+ }, {}], 238: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/create-iterator-constructor"), g = e("../internals/object-get-prototype-of"), b = e("../internals/object-set-prototype-of"), w = e("../internals/set-to-string-tag"), f = e("../internals/create-non-enumerable-property"), y = e("../internals/redefine"), h = e("../internals/well-known-symbol"), l = e("../internals/is-pure"), d = e("../internals/iterators"), s = e("../internals/iterators-core"), v = s.IteratorPrototype, c = s.BUGGY_SAFARI_ITERATORS, a = h("iterator"), r = "keys", t = "values", i = "entries", n = function() {
+ return this;
+ };
+ x.exports = function(o, p, O, P, F, z, N) {
+ m(O, p, P);
+ var M = function(D) {
+ if (D === F && A)
+ return A;
+ if (!c && D in C)
+ return C[D];
+ switch (D) {
+ case r:
+ return function() {
+ return new O(this, D);
+ };
+ case t:
+ return function() {
+ return new O(this, D);
+ };
+ case i:
+ return function() {
+ return new O(this, D);
+ };
+ }
+ return function() {
+ return new O(this);
+ };
+ }, I = p + " Iterator", R = !1, C = o.prototype, E = C[a] || C["@@iterator"] || F && C[F], A = !c && E || M(F), L = p == "Array" && C.entries || E, $, W, U;
+ if (L && ($ = g(L.call(new o())), v !== Object.prototype && $.next && (!l && g($) !== v && (b ? b($, v) : typeof $[a] != "function" && f($, a, n)), w($, I, !0, !0), l && (d[I] = n))), F == t && E && E.name !== t && (R = !0, A = function() {
+ return E.call(this);
+ }), (!l || N) && C[a] !== A && f(C, a, A), d[p] = A, F)
+ if (W = {
+ values: M(t),
+ keys: z ? A : M(r),
+ entries: M(i)
+ }, N)
+ for (U in W)
+ (c || R || !(U in C)) && y(C, U, W[U]);
+ else
+ u({ target: p, proto: !0, forced: c || R }, W);
+ return W;
+ };
+ }, { "../internals/create-iterator-constructor": 235, "../internals/create-non-enumerable-property": 236, "../internals/export": 246, "../internals/is-pure": 264, "../internals/iterators": 268, "../internals/iterators-core": 267, "../internals/object-get-prototype-of": 283, "../internals/object-set-prototype-of": 287, "../internals/redefine": 294, "../internals/set-to-string-tag": 298, "../internals/well-known-symbol": 314 }], 239: [function(e, x, _) {
+ var u = e("../internals/path"), m = e("../internals/has"), g = e("../internals/well-known-symbol-wrapped"), b = e("../internals/object-define-property").f;
+ x.exports = function(w) {
+ var f = u.Symbol || (u.Symbol = {});
+ m(f, w) || b(f, w, {
+ value: g.f(w)
+ });
+ };
+ }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/path": 290, "../internals/well-known-symbol-wrapped": 313 }], 240: [function(e, x, _) {
+ var u = e("../internals/fails");
+ x.exports = !u(function() {
+ return Object.defineProperty({}, 1, { get: function() {
+ return 7;
+ } })[1] != 7;
+ });
+ }, { "../internals/fails": 247 }], 241: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/is-object"), g = u.document, b = m(g) && m(g.createElement);
+ x.exports = function(w) {
+ return b ? g.createElement(w) : {};
+ };
+ }, { "../internals/global": 251, "../internals/is-object": 263 }], 242: [function(e, x, _) {
+ var u = e("../internals/engine-user-agent");
+ x.exports = /(iphone|ipod|ipad).*applewebkit/i.test(u);
+ }, { "../internals/engine-user-agent": 243 }], 243: [function(e, x, _) {
+ var u = e("../internals/get-built-in");
+ x.exports = u("navigator", "userAgent") || "";
+ }, { "../internals/get-built-in": 249 }], 244: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/engine-user-agent"), g = u.process, b = g && g.versions, w = b && b.v8, f, y;
+ w ? (f = w.split("."), y = f[0] + f[1]) : m && (f = m.match(/Edge\/(\d+)/), (!f || f[1] >= 74) && (f = m.match(/Chrome\/(\d+)/), f && (y = f[1]))), x.exports = y && +y;
+ }, { "../internals/engine-user-agent": 243, "../internals/global": 251 }], 245: [function(e, x, _) {
+ x.exports = [
+ "constructor",
+ "hasOwnProperty",
+ "isPrototypeOf",
+ "propertyIsEnumerable",
+ "toLocaleString",
+ "toString",
+ "valueOf"
+ ];
+ }, {}], 246: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/object-get-own-property-descriptor").f, g = e("../internals/create-non-enumerable-property"), b = e("../internals/redefine"), w = e("../internals/set-global"), f = e("../internals/copy-constructor-properties"), y = e("../internals/is-forced");
+ x.exports = function(h, l) {
+ var d = h.target, s = h.global, v = h.stat, c, a, r, t, i, n;
+ if (s ? a = u : v ? a = u[d] || w(d, {}) : a = (u[d] || {}).prototype, a)
+ for (r in l) {
+ if (i = l[r], h.noTargetGet ? (n = m(a, r), t = n && n.value) : t = a[r], c = y(s ? r : d + (v ? "." : "#") + r, h.forced), !c && t !== void 0) {
+ if (typeof i == typeof t)
+ continue;
+ f(i, t);
+ }
+ (h.sham || t && t.sham) && g(i, "sham", !0), b(a, r, i, h);
+ }
+ };
+ }, { "../internals/copy-constructor-properties": 232, "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/is-forced": 262, "../internals/object-get-own-property-descriptor": 279, "../internals/redefine": 294, "../internals/set-global": 296 }], 247: [function(e, x, _) {
+ x.exports = function(u) {
+ try {
+ return !!u();
+ } catch (m) {
+ return !0;
+ }
+ };
+ }, {}], 248: [function(e, x, _) {
+ var u = e("../internals/a-function");
+ x.exports = function(m, g, b) {
+ if (u(m), g === void 0)
+ return m;
+ switch (b) {
+ case 0:
+ return function() {
+ return m.call(g);
+ };
+ case 1:
+ return function(w) {
+ return m.call(g, w);
+ };
+ case 2:
+ return function(w, f) {
+ return m.call(g, w, f);
+ };
+ case 3:
+ return function(w, f, y) {
+ return m.call(g, w, f, y);
+ };
+ }
+ return function() {
+ return m.apply(g, arguments);
+ };
+ };
+ }, { "../internals/a-function": 219 }], 249: [function(e, x, _) {
+ var u = e("../internals/path"), m = e("../internals/global"), g = function(b) {
+ return typeof b == "function" ? b : void 0;
+ };
+ x.exports = function(b, w) {
+ return arguments.length < 2 ? g(u[b]) || g(m[b]) : u[b] && u[b][w] || m[b] && m[b][w];
+ };
+ }, { "../internals/global": 251, "../internals/path": 290 }], 250: [function(e, x, _) {
+ var u = e("../internals/classof"), m = e("../internals/iterators"), g = e("../internals/well-known-symbol"), b = g("iterator");
+ x.exports = function(w) {
+ if (w != null)
+ return w[b] || w["@@iterator"] || m[u(w)];
+ };
+ }, { "../internals/classof": 231, "../internals/iterators": 268, "../internals/well-known-symbol": 314 }], 251: [function(e, x, _) {
+ (function(u) {
+ var m = function(g) {
+ return g && g.Math == Math && g;
+ };
+ x.exports = // eslint-disable-next-line no-undef
+ m(typeof globalThis == "object" && globalThis) || m(typeof window == "object" && window) || m(typeof self == "object" && self) || m(typeof u == "object" && u) || // eslint-disable-next-line no-new-func
+ Function("return this")();
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 252: [function(e, x, _) {
+ var u = {}.hasOwnProperty;
+ x.exports = function(m, g) {
+ return u.call(m, g);
+ };
+ }, {}], 253: [function(e, x, _) {
+ x.exports = {};
+ }, {}], 254: [function(e, x, _) {
+ var u = e("../internals/global");
+ x.exports = function(m, g) {
+ var b = u.console;
+ b && b.error && (arguments.length === 1 ? b.error(m) : b.error(m, g));
+ };
+ }, { "../internals/global": 251 }], 255: [function(e, x, _) {
+ var u = e("../internals/get-built-in");
+ x.exports = u("document", "documentElement");
+ }, { "../internals/get-built-in": 249 }], 256: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/document-create-element");
+ x.exports = !u && !m(function() {
+ return Object.defineProperty(g("div"), "a", {
+ get: function() {
+ return 7;
+ }
+ }).a != 7;
+ });
+ }, { "../internals/descriptors": 240, "../internals/document-create-element": 241, "../internals/fails": 247 }], 257: [function(e, x, _) {
+ var u = e("../internals/fails"), m = e("../internals/classof-raw"), g = "".split;
+ x.exports = u(function() {
+ return !Object("z").propertyIsEnumerable(0);
+ }) ? function(b) {
+ return m(b) == "String" ? g.call(b, "") : Object(b);
+ } : Object;
+ }, { "../internals/classof-raw": 230, "../internals/fails": 247 }], 258: [function(e, x, _) {
+ var u = e("../internals/shared-store"), m = Function.toString;
+ typeof u.inspectSource != "function" && (u.inspectSource = function(g) {
+ return m.call(g);
+ }), x.exports = u.inspectSource;
+ }, { "../internals/shared-store": 300 }], 259: [function(e, x, _) {
+ var u = e("../internals/native-weak-map"), m = e("../internals/global"), g = e("../internals/is-object"), b = e("../internals/create-non-enumerable-property"), w = e("../internals/has"), f = e("../internals/shared-key"), y = e("../internals/hidden-keys"), h = m.WeakMap, l, d, s, v = function(o) {
+ return s(o) ? d(o) : l(o, {});
+ }, c = function(o) {
+ return function(p) {
+ var O;
+ if (!g(p) || (O = d(p)).type !== o)
+ throw TypeError("Incompatible receiver, " + o + " required");
+ return O;
+ };
+ };
+ if (u) {
+ var a = new h(), r = a.get, t = a.has, i = a.set;
+ l = function(o, p) {
+ return i.call(a, o, p), p;
+ }, d = function(o) {
+ return r.call(a, o) || {};
+ }, s = function(o) {
+ return t.call(a, o);
+ };
+ } else {
+ var n = f("state");
+ y[n] = !0, l = function(o, p) {
+ return b(o, n, p), p;
+ }, d = function(o) {
+ return w(o, n) ? o[n] : {};
+ }, s = function(o) {
+ return w(o, n);
+ };
+ }
+ x.exports = {
+ set: l,
+ get: d,
+ has: s,
+ enforce: v,
+ getterFor: c
+ };
+ }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/is-object": 263, "../internals/native-weak-map": 272, "../internals/shared-key": 299 }], 260: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol"), m = e("../internals/iterators"), g = u("iterator"), b = Array.prototype;
+ x.exports = function(w) {
+ return w !== void 0 && (m.Array === w || b[g] === w);
+ };
+ }, { "../internals/iterators": 268, "../internals/well-known-symbol": 314 }], 261: [function(e, x, _) {
+ var u = e("../internals/classof-raw");
+ x.exports = Array.isArray || function(g) {
+ return u(g) == "Array";
+ };
+ }, { "../internals/classof-raw": 230 }], 262: [function(e, x, _) {
+ var u = e("../internals/fails"), m = /#|\.prototype\./, g = function(h, l) {
+ var d = w[b(h)];
+ return d == y ? !0 : d == f ? !1 : typeof l == "function" ? u(l) : !!l;
+ }, b = g.normalize = function(h) {
+ return String(h).replace(m, ".").toLowerCase();
+ }, w = g.data = {}, f = g.NATIVE = "N", y = g.POLYFILL = "P";
+ x.exports = g;
+ }, { "../internals/fails": 247 }], 263: [function(e, x, _) {
+ x.exports = function(u) {
+ return typeof u == "object" ? u !== null : typeof u == "function";
+ };
+ }, {}], 264: [function(e, x, _) {
+ x.exports = !1;
+ }, {}], 265: [function(e, x, _) {
+ var u = e("../internals/is-object"), m = e("../internals/classof-raw"), g = e("../internals/well-known-symbol"), b = g("match");
+ x.exports = function(w) {
+ var f;
+ return u(w) && ((f = w[b]) !== void 0 ? !!f : m(w) == "RegExp");
+ };
+ }, { "../internals/classof-raw": 230, "../internals/is-object": 263, "../internals/well-known-symbol": 314 }], 266: [function(e, x, _) {
+ var u = e("../internals/an-object"), m = e("../internals/is-array-iterator-method"), g = e("../internals/to-length"), b = e("../internals/function-bind-context"), w = e("../internals/get-iterator-method"), f = e("../internals/call-with-safe-iteration-closing"), y = function(l, d) {
+ this.stopped = l, this.result = d;
+ }, h = x.exports = function(l, d, s, v, c) {
+ var a = b(d, s, v ? 2 : 1), r, t, i, n, o, p, O;
+ if (c)
+ r = l;
+ else {
+ if (t = w(l), typeof t != "function")
+ throw TypeError("Target is not iterable");
+ if (m(t)) {
+ for (i = 0, n = g(l.length); n > i; i++)
+ if (o = v ? a(u(O = l[i])[0], O[1]) : a(l[i]), o && o instanceof y)
+ return o;
+ return new y(!1);
+ }
+ r = t.call(l);
+ }
+ for (p = r.next; !(O = p.call(r)).done; )
+ if (o = f(r, a, O.value, v), typeof o == "object" && o && o instanceof y)
+ return o;
+ return new y(!1);
+ };
+ h.stop = function(l) {
+ return new y(!0, l);
+ };
+ }, { "../internals/an-object": 223, "../internals/call-with-safe-iteration-closing": 228, "../internals/function-bind-context": 248, "../internals/get-iterator-method": 250, "../internals/is-array-iterator-method": 260, "../internals/to-length": 307 }], 267: [function(e, x, _) {
+ var u = e("../internals/object-get-prototype-of"), m = e("../internals/create-non-enumerable-property"), g = e("../internals/has"), b = e("../internals/well-known-symbol"), w = e("../internals/is-pure"), f = b("iterator"), y = !1, h = function() {
+ return this;
+ }, l, d, s;
+ [].keys && (s = [].keys(), "next" in s ? (d = u(u(s)), d !== Object.prototype && (l = d)) : y = !0), l == null && (l = {}), !w && !g(l, f) && m(l, f, h), x.exports = {
+ IteratorPrototype: l,
+ BUGGY_SAFARI_ITERATORS: y
+ };
+ }, { "../internals/create-non-enumerable-property": 236, "../internals/has": 252, "../internals/is-pure": 264, "../internals/object-get-prototype-of": 283, "../internals/well-known-symbol": 314 }], 268: [function(e, x, _) {
+ arguments[4][253][0].apply(_, arguments);
+ }, { dup: 253 }], 269: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/object-get-own-property-descriptor").f, g = e("../internals/classof-raw"), b = e("../internals/task").set, w = e("../internals/engine-is-ios"), f = u.MutationObserver || u.WebKitMutationObserver, y = u.process, h = u.Promise, l = g(y) == "process", d = m(u, "queueMicrotask"), s = d && d.value, v, c, a, r, t, i, n, o;
+ s || (v = function() {
+ var p, O;
+ for (l && (p = y.domain) && p.exit(); c; ) {
+ O = c.fn, c = c.next;
+ try {
+ O();
+ } catch (P) {
+ throw c ? r() : a = void 0, P;
+ }
+ }
+ a = void 0, p && p.enter();
+ }, l ? r = function() {
+ y.nextTick(v);
+ } : f && !w ? (t = !0, i = document.createTextNode(""), new f(v).observe(i, { characterData: !0 }), r = function() {
+ i.data = t = !t;
+ }) : h && h.resolve ? (n = h.resolve(void 0), o = n.then, r = function() {
+ o.call(n, v);
+ }) : r = function() {
+ b.call(u, v);
+ }), x.exports = s || function(p) {
+ var O = { fn: p, next: void 0 };
+ a && (a.next = O), c || (c = O, r()), a = O;
+ };
+ }, { "../internals/classof-raw": 230, "../internals/engine-is-ios": 242, "../internals/global": 251, "../internals/object-get-own-property-descriptor": 279, "../internals/task": 303 }], 270: [function(e, x, _) {
+ var u = e("../internals/global");
+ x.exports = u.Promise;
+ }, { "../internals/global": 251 }], 271: [function(e, x, _) {
+ var u = e("../internals/fails");
+ x.exports = !!Object.getOwnPropertySymbols && !u(function() {
+ return !String(Symbol());
+ });
+ }, { "../internals/fails": 247 }], 272: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/inspect-source"), g = u.WeakMap;
+ x.exports = typeof g == "function" && /native code/.test(m(g));
+ }, { "../internals/global": 251, "../internals/inspect-source": 258 }], 273: [function(e, x, _) {
+ var u = e("../internals/a-function"), m = function(g) {
+ var b, w;
+ this.promise = new g(function(f, y) {
+ if (b !== void 0 || w !== void 0)
+ throw TypeError("Bad Promise constructor");
+ b = f, w = y;
+ }), this.resolve = u(b), this.reject = u(w);
+ };
+ x.exports.f = function(g) {
+ return new m(g);
+ };
+ }, { "../internals/a-function": 219 }], 274: [function(e, x, _) {
+ var u = e("../internals/is-regexp");
+ x.exports = function(m) {
+ if (u(m))
+ throw TypeError("The method doesn't accept regular expressions");
+ return m;
+ };
+ }, { "../internals/is-regexp": 265 }], 275: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/object-keys"), b = e("../internals/object-get-own-property-symbols"), w = e("../internals/object-property-is-enumerable"), f = e("../internals/to-object"), y = e("../internals/indexed-object"), h = Object.assign, l = Object.defineProperty;
+ x.exports = !h || m(function() {
+ if (u && h({ b: 1 }, h(l({}, "a", {
+ enumerable: !0,
+ get: function() {
+ l(this, "b", {
+ value: 3,
+ enumerable: !1
+ });
+ }
+ }), { b: 2 })).b !== 1)
+ return !0;
+ var d = {}, s = {}, v = Symbol(), c = "abcdefghijklmnopqrst";
+ return d[v] = 7, c.split("").forEach(function(a) {
+ s[a] = a;
+ }), h({}, d)[v] != 7 || g(h({}, s)).join("") != c;
+ }) ? function(s, v) {
+ for (var c = f(s), a = arguments.length, r = 1, t = b.f, i = w.f; a > r; )
+ for (var n = y(arguments[r++]), o = t ? g(n).concat(t(n)) : g(n), p = o.length, O = 0, P; p > O; )
+ P = o[O++], (!u || i.call(n, P)) && (c[P] = n[P]);
+ return c;
+ } : h;
+ }, { "../internals/descriptors": 240, "../internals/fails": 247, "../internals/indexed-object": 257, "../internals/object-get-own-property-symbols": 282, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/to-object": 308 }], 276: [function(e, x, _) {
+ var u = e("../internals/an-object"), m = e("../internals/object-define-properties"), g = e("../internals/enum-bug-keys"), b = e("../internals/hidden-keys"), w = e("../internals/html"), f = e("../internals/document-create-element"), y = e("../internals/shared-key"), h = ">", l = "<", d = "prototype", s = "script", v = y("IE_PROTO"), c = function() {
+ }, a = function(o) {
+ return l + s + h + o + l + "/" + s + h;
+ }, r = function(o) {
+ o.write(a("")), o.close();
+ var p = o.parentWindow.Object;
+ return o = null, p;
+ }, t = function() {
+ var o = f("iframe"), p = "java" + s + ":", O;
+ return o.style.display = "none", w.appendChild(o), o.src = String(p), O = o.contentWindow.document, O.open(), O.write(a("document.F=Object")), O.close(), O.F;
+ }, i, n = function() {
+ try {
+ i = document.domain && new ActiveXObject("htmlfile");
+ } catch (p) {
+ }
+ n = i ? r(i) : t();
+ for (var o = g.length; o--; )
+ delete n[d][g[o]];
+ return n();
+ };
+ b[v] = !0, x.exports = Object.create || function(p, O) {
+ var P;
+ return p !== null ? (c[d] = u(p), P = new c(), c[d] = null, P[v] = p) : P = n(), O === void 0 ? P : m(P, O);
+ };
+ }, { "../internals/an-object": 223, "../internals/document-create-element": 241, "../internals/enum-bug-keys": 245, "../internals/hidden-keys": 253, "../internals/html": 255, "../internals/object-define-properties": 277, "../internals/shared-key": 299 }], 277: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/object-define-property"), g = e("../internals/an-object"), b = e("../internals/object-keys");
+ x.exports = u ? Object.defineProperties : function(f, y) {
+ g(f);
+ for (var h = b(y), l = h.length, d = 0, s; l > d; )
+ m.f(f, s = h[d++], y[s]);
+ return f;
+ };
+ }, { "../internals/an-object": 223, "../internals/descriptors": 240, "../internals/object-define-property": 278, "../internals/object-keys": 285 }], 278: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/ie8-dom-define"), g = e("../internals/an-object"), b = e("../internals/to-primitive"), w = Object.defineProperty;
+ _.f = u ? w : function(y, h, l) {
+ if (g(y), h = b(h, !0), g(l), m)
+ try {
+ return w(y, h, l);
+ } catch (d) {
+ }
+ if ("get" in l || "set" in l)
+ throw TypeError("Accessors not supported");
+ return "value" in l && (y[h] = l.value), y;
+ };
+ }, { "../internals/an-object": 223, "../internals/descriptors": 240, "../internals/ie8-dom-define": 256, "../internals/to-primitive": 309 }], 279: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/object-property-is-enumerable"), g = e("../internals/create-property-descriptor"), b = e("../internals/to-indexed-object"), w = e("../internals/to-primitive"), f = e("../internals/has"), y = e("../internals/ie8-dom-define"), h = Object.getOwnPropertyDescriptor;
+ _.f = u ? h : function(d, s) {
+ if (d = b(d), s = w(s, !0), y)
+ try {
+ return h(d, s);
+ } catch (v) {
+ }
+ if (f(d, s))
+ return g(!m.f.call(d, s), d[s]);
+ };
+ }, { "../internals/create-property-descriptor": 237, "../internals/descriptors": 240, "../internals/has": 252, "../internals/ie8-dom-define": 256, "../internals/object-property-is-enumerable": 286, "../internals/to-indexed-object": 305, "../internals/to-primitive": 309 }], 280: [function(e, x, _) {
+ var u = e("../internals/to-indexed-object"), m = e("../internals/object-get-own-property-names").f, g = {}.toString, b = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], w = function(f) {
+ try {
+ return m(f);
+ } catch (y) {
+ return b.slice();
+ }
+ };
+ x.exports.f = function(y) {
+ return b && g.call(y) == "[object Window]" ? w(y) : m(u(y));
+ };
+ }, { "../internals/object-get-own-property-names": 281, "../internals/to-indexed-object": 305 }], 281: [function(e, x, _) {
+ var u = e("../internals/object-keys-internal"), m = e("../internals/enum-bug-keys"), g = m.concat("length", "prototype");
+ _.f = Object.getOwnPropertyNames || function(w) {
+ return u(w, g);
+ };
+ }, { "../internals/enum-bug-keys": 245, "../internals/object-keys-internal": 284 }], 282: [function(e, x, _) {
+ _.f = Object.getOwnPropertySymbols;
+ }, {}], 283: [function(e, x, _) {
+ var u = e("../internals/has"), m = e("../internals/to-object"), g = e("../internals/shared-key"), b = e("../internals/correct-prototype-getter"), w = g("IE_PROTO"), f = Object.prototype;
+ x.exports = b ? Object.getPrototypeOf : function(y) {
+ return y = m(y), u(y, w) ? y[w] : typeof y.constructor == "function" && y instanceof y.constructor ? y.constructor.prototype : y instanceof Object ? f : null;
+ };
+ }, { "../internals/correct-prototype-getter": 234, "../internals/has": 252, "../internals/shared-key": 299, "../internals/to-object": 308 }], 284: [function(e, x, _) {
+ var u = e("../internals/has"), m = e("../internals/to-indexed-object"), g = e("../internals/array-includes").indexOf, b = e("../internals/hidden-keys");
+ x.exports = function(w, f) {
+ var y = m(w), h = 0, l = [], d;
+ for (d in y)
+ !u(b, d) && u(y, d) && l.push(d);
+ for (; f.length > h; )
+ u(y, d = f[h++]) && (~g(l, d) || l.push(d));
+ return l;
+ };
+ }, { "../internals/array-includes": 224, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/to-indexed-object": 305 }], 285: [function(e, x, _) {
+ var u = e("../internals/object-keys-internal"), m = e("../internals/enum-bug-keys");
+ x.exports = Object.keys || function(b) {
+ return u(b, m);
+ };
+ }, { "../internals/enum-bug-keys": 245, "../internals/object-keys-internal": 284 }], 286: [function(e, x, _) {
+ var u = {}.propertyIsEnumerable, m = Object.getOwnPropertyDescriptor, g = m && !u.call({ 1: 2 }, 1);
+ _.f = g ? function(w) {
+ var f = m(this, w);
+ return !!f && f.enumerable;
+ } : u;
+ }, {}], 287: [function(e, x, _) {
+ var u = e("../internals/an-object"), m = e("../internals/a-possible-prototype");
+ x.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
+ var g = !1, b = {}, w;
+ try {
+ w = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set, w.call(b, []), g = b instanceof Array;
+ } catch (f) {
+ }
+ return function(y, h) {
+ return u(y), m(h), g ? w.call(y, h) : y.__proto__ = h, y;
+ };
+ }() : void 0);
+ }, { "../internals/a-possible-prototype": 220, "../internals/an-object": 223 }], 288: [function(e, x, _) {
+ var u = e("../internals/descriptors"), m = e("../internals/object-keys"), g = e("../internals/to-indexed-object"), b = e("../internals/object-property-is-enumerable").f, w = function(f) {
+ return function(y) {
+ for (var h = g(y), l = m(h), d = l.length, s = 0, v = [], c; d > s; )
+ c = l[s++], (!u || b.call(h, c)) && v.push(f ? [c, h[c]] : h[c]);
+ return v;
+ };
+ };
+ x.exports = {
+ // `Object.entries` method
+ // https://tc39.github.io/ecma262/#sec-object.entries
+ entries: w(!0),
+ // `Object.values` method
+ // https://tc39.github.io/ecma262/#sec-object.values
+ values: w(!1)
+ };
+ }, { "../internals/descriptors": 240, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/to-indexed-object": 305 }], 289: [function(e, x, _) {
+ var u = e("../internals/get-built-in"), m = e("../internals/object-get-own-property-names"), g = e("../internals/object-get-own-property-symbols"), b = e("../internals/an-object");
+ x.exports = u("Reflect", "ownKeys") || function(f) {
+ var y = m.f(b(f)), h = g.f;
+ return h ? y.concat(h(f)) : y;
+ };
+ }, { "../internals/an-object": 223, "../internals/get-built-in": 249, "../internals/object-get-own-property-names": 281, "../internals/object-get-own-property-symbols": 282 }], 290: [function(e, x, _) {
+ var u = e("../internals/global");
+ x.exports = u;
+ }, { "../internals/global": 251 }], 291: [function(e, x, _) {
+ x.exports = function(u) {
+ try {
+ return { error: !1, value: u() };
+ } catch (m) {
+ return { error: !0, value: m };
+ }
+ };
+ }, {}], 292: [function(e, x, _) {
+ var u = e("../internals/an-object"), m = e("../internals/is-object"), g = e("../internals/new-promise-capability");
+ x.exports = function(b, w) {
+ if (u(b), m(w) && w.constructor === b)
+ return w;
+ var f = g.f(b), y = f.resolve;
+ return y(w), f.promise;
+ };
+ }, { "../internals/an-object": 223, "../internals/is-object": 263, "../internals/new-promise-capability": 273 }], 293: [function(e, x, _) {
+ var u = e("../internals/redefine");
+ x.exports = function(m, g, b) {
+ for (var w in g)
+ u(m, w, g[w], b);
+ return m;
+ };
+ }, { "../internals/redefine": 294 }], 294: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/create-non-enumerable-property"), g = e("../internals/has"), b = e("../internals/set-global"), w = e("../internals/inspect-source"), f = e("../internals/internal-state"), y = f.get, h = f.enforce, l = String(String).split("String");
+ (x.exports = function(d, s, v, c) {
+ var a = c ? !!c.unsafe : !1, r = c ? !!c.enumerable : !1, t = c ? !!c.noTargetGet : !1;
+ if (typeof v == "function" && (typeof s == "string" && !g(v, "name") && m(v, "name", s), h(v).source = l.join(typeof s == "string" ? s : "")), d === u) {
+ r ? d[s] = v : b(s, v);
+ return;
+ } else
+ a ? !t && d[s] && (r = !0) : delete d[s];
+ r ? d[s] = v : m(d, s, v);
+ })(Function.prototype, "toString", function() {
+ return typeof this == "function" && y(this).source || w(this);
+ });
+ }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/has": 252, "../internals/inspect-source": 258, "../internals/internal-state": 259, "../internals/set-global": 296 }], 295: [function(e, x, _) {
+ x.exports = function(u) {
+ if (u == null)
+ throw TypeError("Can't call method on " + u);
+ return u;
+ };
+ }, {}], 296: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/create-non-enumerable-property");
+ x.exports = function(g, b) {
+ try {
+ m(u, g, b);
+ } catch (w) {
+ u[g] = b;
+ }
+ return b;
+ };
+ }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251 }], 297: [function(e, x, _) {
+ var u = e("../internals/get-built-in"), m = e("../internals/object-define-property"), g = e("../internals/well-known-symbol"), b = e("../internals/descriptors"), w = g("species");
+ x.exports = function(f) {
+ var y = u(f), h = m.f;
+ b && y && !y[w] && h(y, w, {
+ configurable: !0,
+ get: function() {
+ return this;
+ }
+ });
+ };
+ }, { "../internals/descriptors": 240, "../internals/get-built-in": 249, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 298: [function(e, x, _) {
+ var u = e("../internals/object-define-property").f, m = e("../internals/has"), g = e("../internals/well-known-symbol"), b = g("toStringTag");
+ x.exports = function(w, f, y) {
+ w && !m(w = y ? w : w.prototype, b) && u(w, b, { configurable: !0, value: f });
+ };
+ }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 299: [function(e, x, _) {
+ var u = e("../internals/shared"), m = e("../internals/uid"), g = u("keys");
+ x.exports = function(b) {
+ return g[b] || (g[b] = m(b));
+ };
+ }, { "../internals/shared": 301, "../internals/uid": 311 }], 300: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/set-global"), g = "__core-js_shared__", b = u[g] || m(g, {});
+ x.exports = b;
+ }, { "../internals/global": 251, "../internals/set-global": 296 }], 301: [function(e, x, _) {
+ var u = e("../internals/is-pure"), m = e("../internals/shared-store");
+ (x.exports = function(g, b) {
+ return m[g] || (m[g] = b !== void 0 ? b : {});
+ })("versions", []).push({
+ version: "3.6.5",
+ mode: u ? "pure" : "global",
+ copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
+ });
+ }, { "../internals/is-pure": 264, "../internals/shared-store": 300 }], 302: [function(e, x, _) {
+ var u = e("../internals/an-object"), m = e("../internals/a-function"), g = e("../internals/well-known-symbol"), b = g("species");
+ x.exports = function(w, f) {
+ var y = u(w).constructor, h;
+ return y === void 0 || (h = u(y)[b]) == null ? f : m(h);
+ };
+ }, { "../internals/a-function": 219, "../internals/an-object": 223, "../internals/well-known-symbol": 314 }], 303: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/fails"), g = e("../internals/classof-raw"), b = e("../internals/function-bind-context"), w = e("../internals/html"), f = e("../internals/document-create-element"), y = e("../internals/engine-is-ios"), h = u.location, l = u.setImmediate, d = u.clearImmediate, s = u.process, v = u.MessageChannel, c = u.Dispatch, a = 0, r = {}, t = "onreadystatechange", i, n, o, p = function(z) {
+ if (r.hasOwnProperty(z)) {
+ var N = r[z];
+ delete r[z], N();
+ }
+ }, O = function(z) {
+ return function() {
+ p(z);
+ };
+ }, P = function(z) {
+ p(z.data);
+ }, F = function(z) {
+ u.postMessage(z + "", h.protocol + "//" + h.host);
+ };
+ (!l || !d) && (l = function(N) {
+ for (var M = [], I = 1; arguments.length > I; )
+ M.push(arguments[I++]);
+ return r[++a] = function() {
+ (typeof N == "function" ? N : Function(N)).apply(void 0, M);
+ }, i(a), a;
+ }, d = function(N) {
+ delete r[N];
+ }, g(s) == "process" ? i = function(z) {
+ s.nextTick(O(z));
+ } : c && c.now ? i = function(z) {
+ c.now(O(z));
+ } : v && !y ? (n = new v(), o = n.port2, n.port1.onmessage = P, i = b(o.postMessage, o, 1)) : u.addEventListener && typeof postMessage == "function" && !u.importScripts && !m(F) && h.protocol !== "file:" ? (i = F, u.addEventListener("message", P, !1)) : t in f("script") ? i = function(z) {
+ w.appendChild(f("script"))[t] = function() {
+ w.removeChild(this), p(z);
+ };
+ } : i = function(z) {
+ setTimeout(O(z), 0);
+ }), x.exports = {
+ set: l,
+ clear: d
+ };
+ }, { "../internals/classof-raw": 230, "../internals/document-create-element": 241, "../internals/engine-is-ios": 242, "../internals/fails": 247, "../internals/function-bind-context": 248, "../internals/global": 251, "../internals/html": 255 }], 304: [function(e, x, _) {
+ var u = e("../internals/to-integer"), m = Math.max, g = Math.min;
+ x.exports = function(b, w) {
+ var f = u(b);
+ return f < 0 ? m(f + w, 0) : g(f, w);
+ };
+ }, { "../internals/to-integer": 306 }], 305: [function(e, x, _) {
+ var u = e("../internals/indexed-object"), m = e("../internals/require-object-coercible");
+ x.exports = function(g) {
+ return u(m(g));
+ };
+ }, { "../internals/indexed-object": 257, "../internals/require-object-coercible": 295 }], 306: [function(e, x, _) {
+ var u = Math.ceil, m = Math.floor;
+ x.exports = function(g) {
+ return isNaN(g = +g) ? 0 : (g > 0 ? m : u)(g);
+ };
+ }, {}], 307: [function(e, x, _) {
+ var u = e("../internals/to-integer"), m = Math.min;
+ x.exports = function(g) {
+ return g > 0 ? m(u(g), 9007199254740991) : 0;
+ };
+ }, { "../internals/to-integer": 306 }], 308: [function(e, x, _) {
+ var u = e("../internals/require-object-coercible");
+ x.exports = function(m) {
+ return Object(u(m));
+ };
+ }, { "../internals/require-object-coercible": 295 }], 309: [function(e, x, _) {
+ var u = e("../internals/is-object");
+ x.exports = function(m, g) {
+ if (!u(m))
+ return m;
+ var b, w;
+ if (g && typeof (b = m.toString) == "function" && !u(w = b.call(m)) || typeof (b = m.valueOf) == "function" && !u(w = b.call(m)) || !g && typeof (b = m.toString) == "function" && !u(w = b.call(m)))
+ return w;
+ throw TypeError("Can't convert object to primitive value");
+ };
+ }, { "../internals/is-object": 263 }], 310: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol"), m = u("toStringTag"), g = {};
+ g[m] = "z", x.exports = String(g) === "[object z]";
+ }, { "../internals/well-known-symbol": 314 }], 311: [function(e, x, _) {
+ var u = 0, m = Math.random();
+ x.exports = function(g) {
+ return "Symbol(" + String(g === void 0 ? "" : g) + ")_" + (++u + m).toString(36);
+ };
+ }, {}], 312: [function(e, x, _) {
+ var u = e("../internals/native-symbol");
+ x.exports = u && !Symbol.sham && typeof Symbol.iterator == "symbol";
+ }, { "../internals/native-symbol": 271 }], 313: [function(e, x, _) {
+ var u = e("../internals/well-known-symbol");
+ _.f = u;
+ }, { "../internals/well-known-symbol": 314 }], 314: [function(e, x, _) {
+ var u = e("../internals/global"), m = e("../internals/shared"), g = e("../internals/has"), b = e("../internals/uid"), w = e("../internals/native-symbol"), f = e("../internals/use-symbol-as-uid"), y = m("wks"), h = u.Symbol, l = f ? h : h && h.withoutSetter || b;
+ x.exports = function(d) {
+ return g(y, d) || (w && g(h, d) ? y[d] = h[d] : y[d] = l("Symbol." + d)), y[d];
+ };
+ }, { "../internals/global": 251, "../internals/has": 252, "../internals/native-symbol": 271, "../internals/shared": 301, "../internals/uid": 311, "../internals/use-symbol-as-uid": 312 }], 315: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/array-iteration").findIndex, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = "findIndex", f = !0, y = b(w);
+ w in [] && Array(1)[w](function() {
+ f = !1;
+ }), u({ target: "Array", proto: !0, forced: f || !y }, {
+ findIndex: function(l) {
+ return m(this, l, arguments.length > 1 ? arguments[1] : void 0);
+ }
+ }), g(w);
+ }, { "../internals/add-to-unscopables": 221, "../internals/array-iteration": 225, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 316: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/array-iteration").find, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = "find", f = !0, y = b(w);
+ w in [] && Array(1)[w](function() {
+ f = !1;
+ }), u({ target: "Array", proto: !0, forced: f || !y }, {
+ find: function(l) {
+ return m(this, l, arguments.length > 1 ? arguments[1] : void 0);
+ }
+ }), g(w);
+ }, { "../internals/add-to-unscopables": 221, "../internals/array-iteration": 225, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 317: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/array-includes").includes, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = b("indexOf", { ACCESSORS: !0, 1: 0 });
+ u({ target: "Array", proto: !0, forced: !w }, {
+ includes: function(y) {
+ return m(this, y, arguments.length > 1 ? arguments[1] : void 0);
+ }
+ }), g("includes");
+ }, { "../internals/add-to-unscopables": 221, "../internals/array-includes": 224, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 318: [function(e, x, _) {
+ var u = e("../internals/to-indexed-object"), m = e("../internals/add-to-unscopables"), g = e("../internals/iterators"), b = e("../internals/internal-state"), w = e("../internals/define-iterator"), f = "Array Iterator", y = b.set, h = b.getterFor(f);
+ x.exports = w(Array, "Array", function(l, d) {
+ y(this, {
+ type: f,
+ target: u(l),
+ // target
+ index: 0,
+ // next index
+ kind: d
+ // kind
+ });
+ }, function() {
+ var l = h(this), d = l.target, s = l.kind, v = l.index++;
+ return !d || v >= d.length ? (l.target = void 0, { value: void 0, done: !0 }) : s == "keys" ? { value: v, done: !1 } : s == "values" ? { value: d[v], done: !1 } : { value: [v, d[v]], done: !1 };
+ }, "values"), g.Arguments = g.Array, m("keys"), m("values"), m("entries");
+ }, { "../internals/add-to-unscopables": 221, "../internals/define-iterator": 238, "../internals/internal-state": 259, "../internals/iterators": 268, "../internals/to-indexed-object": 305 }], 319: [function(e, x, _) {
+ var u = e("../internals/export");
+ u({ target: "Number", stat: !0 }, {
+ isNaN: function(g) {
+ return g != g;
+ }
+ });
+ }, { "../internals/export": 246 }], 320: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/object-assign");
+ u({ target: "Object", stat: !0, forced: Object.assign !== m }, {
+ assign: m
+ });
+ }, { "../internals/export": 246, "../internals/object-assign": 275 }], 321: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/to-object"), g = e("../internals/object-keys"), b = e("../internals/fails"), w = b(function() {
+ g(1);
+ });
+ u({ target: "Object", stat: !0, forced: w }, {
+ keys: function(y) {
+ return g(m(y));
+ }
+ });
+ }, { "../internals/export": 246, "../internals/fails": 247, "../internals/object-keys": 285, "../internals/to-object": 308 }], 322: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/object-to-array").values;
+ u({ target: "Object", stat: !0 }, {
+ values: function(b) {
+ return m(b);
+ }
+ });
+ }, { "../internals/export": 246, "../internals/object-to-array": 288 }], 323: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/is-pure"), g = e("../internals/global"), b = e("../internals/get-built-in"), w = e("../internals/native-promise-constructor"), f = e("../internals/redefine"), y = e("../internals/redefine-all"), h = e("../internals/set-to-string-tag"), l = e("../internals/set-species"), d = e("../internals/is-object"), s = e("../internals/a-function"), v = e("../internals/an-instance"), c = e("../internals/classof-raw"), a = e("../internals/inspect-source"), r = e("../internals/iterate"), t = e("../internals/check-correctness-of-iteration"), i = e("../internals/species-constructor"), n = e("../internals/task").set, o = e("../internals/microtask"), p = e("../internals/promise-resolve"), O = e("../internals/host-report-errors"), P = e("../internals/new-promise-capability"), F = e("../internals/perform"), z = e("../internals/internal-state"), N = e("../internals/is-forced"), M = e("../internals/well-known-symbol"), I = e("../internals/engine-v8-version"), R = M("species"), C = "Promise", E = z.get, A = z.set, L = z.getterFor(C), $ = w, W = g.TypeError, U = g.document, D = g.process, B = b("fetch"), j = P.f, V = j, re = c(D) == "process", ee = !!(U && U.createEvent && g.dispatchEvent), ce = "unhandledrejection", ve = "rejectionhandled", ge = 0, oe = 1, J = 2, Q = 1, he = 2, ke, ne, se, Ce, q = N(C, function() {
+ var Ue = a($) !== String($);
+ if (!Ue && (I === 66 || !re && typeof PromiseRejectionEvent != "function") || m && !$.prototype.finally)
+ return !0;
+ if (I >= 51 && /native code/.test($))
+ return !1;
+ var Ve = $.resolve(1), Qe = function(ae) {
+ ae(function() {
+ }, function() {
+ });
+ }, tt = Ve.constructor = {};
+ return tt[R] = Qe, !(Ve.then(function() {
+ }) instanceof Qe);
+ }), G = q || !t(function(Ue) {
+ $.all(Ue).catch(function() {
+ });
+ }), Y = function(Ue) {
+ var Ve;
+ return d(Ue) && typeof (Ve = Ue.then) == "function" ? Ve : !1;
+ }, fe = function(Ue, Ve, Qe) {
+ if (!Ve.notified) {
+ Ve.notified = !0;
+ var tt = Ve.reactions;
+ o(function() {
+ for (var ae = Ve.value, Re = Ve.state == oe, be = 0; tt.length > be; ) {
+ var Ee = tt[be++], pe = Re ? Ee.ok : Ee.fail, Pe = Ee.resolve, te = Ee.reject, He = Ee.domain, it, K, Me;
+ try {
+ pe ? (Re || (Ve.rejection === he && Ye(Ue, Ve), Ve.rejection = Q), pe === !0 ? it = ae : (He && He.enter(), it = pe(ae), He && (He.exit(), Me = !0)), it === Ee.promise ? te(W("Promise-chain cycle")) : (K = Y(it)) ? K.call(it, Pe, te) : Pe(it)) : te(ae);
+ } catch (Le) {
+ He && !Me && He.exit(), te(Le);
+ }
+ }
+ Ve.reactions = [], Ve.notified = !1, Qe && !Ve.rejection && _e(Ue, Ve);
+ });
+ }
+ }, we = function(Ue, Ve, Qe) {
+ var tt, ae;
+ ee ? (tt = U.createEvent("Event"), tt.promise = Ve, tt.reason = Qe, tt.initEvent(Ue, !1, !0), g.dispatchEvent(tt)) : tt = { promise: Ve, reason: Qe }, (ae = g["on" + Ue]) ? ae(tt) : Ue === ce && O("Unhandled promise rejection", Qe);
+ }, _e = function(Ue, Ve) {
+ n.call(g, function() {
+ var Qe = Ve.value, tt = je(Ve), ae;
+ if (tt && (ae = F(function() {
+ re ? D.emit("unhandledRejection", Qe, Ue) : we(ce, Ue, Qe);
+ }), Ve.rejection = re || je(Ve) ? he : Q, ae.error))
+ throw ae.value;
+ });
+ }, je = function(Ue) {
+ return Ue.rejection !== Q && !Ue.parent;
+ }, Ye = function(Ue, Ve) {
+ n.call(g, function() {
+ re ? D.emit("rejectionHandled", Ue) : we(ve, Ue, Ve.value);
+ });
+ }, nt = function(Ue, Ve, Qe, tt) {
+ return function(ae) {
+ Ue(Ve, Qe, ae, tt);
+ };
+ }, ut = function(Ue, Ve, Qe, tt) {
+ Ve.done || (Ve.done = !0, tt && (Ve = tt), Ve.value = Qe, Ve.state = J, fe(Ue, Ve, !0));
+ }, ot = function(Ue, Ve, Qe, tt) {
+ if (!Ve.done) {
+ Ve.done = !0, tt && (Ve = tt);
+ try {
+ if (Ue === Qe)
+ throw W("Promise can't be resolved itself");
+ var ae = Y(Qe);
+ ae ? o(function() {
+ var Re = { done: !1 };
+ try {
+ ae.call(
+ Qe,
+ nt(ot, Ue, Re, Ve),
+ nt(ut, Ue, Re, Ve)
+ );
+ } catch (be) {
+ ut(Ue, Re, be, Ve);
+ }
+ }) : (Ve.value = Qe, Ve.state = oe, fe(Ue, Ve, !1));
+ } catch (Re) {
+ ut(Ue, { done: !1 }, Re, Ve);
+ }
+ }
+ };
+ q && ($ = function(Ve) {
+ v(this, $, C), s(Ve), ke.call(this);
+ var Qe = E(this);
+ try {
+ Ve(nt(ot, this, Qe), nt(ut, this, Qe));
+ } catch (tt) {
+ ut(this, Qe, tt);
+ }
+ }, ke = function(Ve) {
+ A(this, {
+ type: C,
+ done: !1,
+ notified: !1,
+ parent: !1,
+ reactions: [],
+ rejection: !1,
+ state: ge,
+ value: void 0
+ });
+ }, ke.prototype = y($.prototype, {
+ // `Promise.prototype.then` method
+ // https://tc39.github.io/ecma262/#sec-promise.prototype.then
+ then: function(Ve, Qe) {
+ var tt = L(this), ae = j(i(this, $));
+ return ae.ok = typeof Ve == "function" ? Ve : !0, ae.fail = typeof Qe == "function" && Qe, ae.domain = re ? D.domain : void 0, tt.parent = !0, tt.reactions.push(ae), tt.state != ge && fe(this, tt, !1), ae.promise;
+ },
+ // `Promise.prototype.catch` method
+ // https://tc39.github.io/ecma262/#sec-promise.prototype.catch
+ catch: function(Ue) {
+ return this.then(void 0, Ue);
+ }
+ }), ne = function() {
+ var Ue = new ke(), Ve = E(Ue);
+ this.promise = Ue, this.resolve = nt(ot, Ue, Ve), this.reject = nt(ut, Ue, Ve);
+ }, P.f = j = function(Ue) {
+ return Ue === $ || Ue === se ? new ne(Ue) : V(Ue);
+ }, !m && typeof w == "function" && (Ce = w.prototype.then, f(w.prototype, "then", function(Ve, Qe) {
+ var tt = this;
+ return new $(function(ae, Re) {
+ Ce.call(tt, ae, Re);
+ }).then(Ve, Qe);
+ }, { unsafe: !0 }), typeof B == "function" && u({ global: !0, enumerable: !0, forced: !0 }, {
+ // eslint-disable-next-line no-unused-vars
+ fetch: function(Ve) {
+ return p($, B.apply(g, arguments));
+ }
+ }))), u({ global: !0, wrap: !0, forced: q }, {
+ Promise: $
+ }), h($, C, !1, !0), l(C), se = b(C), u({ target: C, stat: !0, forced: q }, {
+ // `Promise.reject` method
+ // https://tc39.github.io/ecma262/#sec-promise.reject
+ reject: function(Ve) {
+ var Qe = j(this);
+ return Qe.reject.call(void 0, Ve), Qe.promise;
+ }
+ }), u({ target: C, stat: !0, forced: m || q }, {
+ // `Promise.resolve` method
+ // https://tc39.github.io/ecma262/#sec-promise.resolve
+ resolve: function(Ve) {
+ return p(m && this === se ? $ : this, Ve);
+ }
+ }), u({ target: C, stat: !0, forced: G }, {
+ // `Promise.all` method
+ // https://tc39.github.io/ecma262/#sec-promise.all
+ all: function(Ve) {
+ var Qe = this, tt = j(Qe), ae = tt.resolve, Re = tt.reject, be = F(function() {
+ var Ee = s(Qe.resolve), pe = [], Pe = 0, te = 1;
+ r(Ve, function(He) {
+ var it = Pe++, K = !1;
+ pe.push(void 0), te++, Ee.call(Qe, He).then(function(Me) {
+ K || (K = !0, pe[it] = Me, --te || ae(pe));
+ }, Re);
+ }), --te || ae(pe);
+ });
+ return be.error && Re(be.value), tt.promise;
+ },
+ // `Promise.race` method
+ // https://tc39.github.io/ecma262/#sec-promise.race
+ race: function(Ve) {
+ var Qe = this, tt = j(Qe), ae = tt.reject, Re = F(function() {
+ var be = s(Qe.resolve);
+ r(Ve, function(Ee) {
+ be.call(Qe, Ee).then(tt.resolve, ae);
+ });
+ });
+ return Re.error && ae(Re.value), tt.promise;
+ }
+ });
+ }, { "../internals/a-function": 219, "../internals/an-instance": 222, "../internals/check-correctness-of-iteration": 229, "../internals/classof-raw": 230, "../internals/engine-v8-version": 244, "../internals/export": 246, "../internals/get-built-in": 249, "../internals/global": 251, "../internals/host-report-errors": 254, "../internals/inspect-source": 258, "../internals/internal-state": 259, "../internals/is-forced": 262, "../internals/is-object": 263, "../internals/is-pure": 264, "../internals/iterate": 266, "../internals/microtask": 269, "../internals/native-promise-constructor": 270, "../internals/new-promise-capability": 273, "../internals/perform": 291, "../internals/promise-resolve": 292, "../internals/redefine": 294, "../internals/redefine-all": 293, "../internals/set-species": 297, "../internals/set-to-string-tag": 298, "../internals/species-constructor": 302, "../internals/task": 303, "../internals/well-known-symbol": 314 }], 324: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/to-absolute-index"), g = String.fromCharCode, b = String.fromCodePoint, w = !!b && b.length != 1;
+ u({ target: "String", stat: !0, forced: w }, {
+ fromCodePoint: function(y) {
+ for (var h = [], l = arguments.length, d = 0, s; l > d; ) {
+ if (s = +arguments[d++], m(s, 1114111) !== s)
+ throw RangeError(s + " is not a valid code point");
+ h.push(
+ s < 65536 ? g(s) : g(((s -= 65536) >> 10) + 55296, s % 1024 + 56320)
+ );
+ }
+ return h.join("");
+ }
+ });
+ }, { "../internals/export": 246, "../internals/to-absolute-index": 304 }], 325: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/not-a-regexp"), g = e("../internals/require-object-coercible"), b = e("../internals/correct-is-regexp-logic");
+ u({ target: "String", proto: !0, forced: !b("includes") }, {
+ includes: function(f) {
+ return !!~String(g(this)).indexOf(m(f), arguments.length > 1 ? arguments[1] : void 0);
+ }
+ });
+ }, { "../internals/correct-is-regexp-logic": 233, "../internals/export": 246, "../internals/not-a-regexp": 274, "../internals/require-object-coercible": 295 }], 326: [function(e, x, _) {
+ var u = e("../internals/define-well-known-symbol");
+ u("asyncIterator");
+ }, { "../internals/define-well-known-symbol": 239 }], 327: [function(e, x, _) {
+ var u = e("../internals/export"), m = e("../internals/global"), g = e("../internals/get-built-in"), b = e("../internals/is-pure"), w = e("../internals/descriptors"), f = e("../internals/native-symbol"), y = e("../internals/use-symbol-as-uid"), h = e("../internals/fails"), l = e("../internals/has"), d = e("../internals/is-array"), s = e("../internals/is-object"), v = e("../internals/an-object"), c = e("../internals/to-object"), a = e("../internals/to-indexed-object"), r = e("../internals/to-primitive"), t = e("../internals/create-property-descriptor"), i = e("../internals/object-create"), n = e("../internals/object-keys"), o = e("../internals/object-get-own-property-names"), p = e("../internals/object-get-own-property-names-external"), O = e("../internals/object-get-own-property-symbols"), P = e("../internals/object-get-own-property-descriptor"), F = e("../internals/object-define-property"), z = e("../internals/object-property-is-enumerable"), N = e("../internals/create-non-enumerable-property"), M = e("../internals/redefine"), I = e("../internals/shared"), R = e("../internals/shared-key"), C = e("../internals/hidden-keys"), E = e("../internals/uid"), A = e("../internals/well-known-symbol"), L = e("../internals/well-known-symbol-wrapped"), $ = e("../internals/define-well-known-symbol"), W = e("../internals/set-to-string-tag"), U = e("../internals/internal-state"), D = e("../internals/array-iteration").forEach, B = R("hidden"), j = "Symbol", V = "prototype", re = A("toPrimitive"), ee = U.set, ce = U.getterFor(j), ve = Object[V], ge = m.Symbol, oe = g("JSON", "stringify"), J = P.f, Q = F.f, he = p.f, ke = z.f, ne = I("symbols"), se = I("op-symbols"), Ce = I("string-to-symbol-registry"), q = I("symbol-to-string-registry"), G = I("wks"), Y = m.QObject, fe = !Y || !Y[V] || !Y[V].findChild, we = w && h(function() {
+ return i(Q({}, "a", {
+ get: function() {
+ return Q(this, "a", { value: 7 }).a;
+ }
+ })).a != 7;
+ }) ? function(ae, Re, be) {
+ var Ee = J(ve, Re);
+ Ee && delete ve[Re], Q(ae, Re, be), Ee && ae !== ve && Q(ve, Re, Ee);
+ } : Q, _e = function(ae, Re) {
+ var be = ne[ae] = i(ge[V]);
+ return ee(be, {
+ type: j,
+ tag: ae,
+ description: Re
+ }), w || (be.description = Re), be;
+ }, je = y ? function(ae) {
+ return typeof ae == "symbol";
+ } : function(ae) {
+ return Object(ae) instanceof ge;
+ }, Ye = function(Re, be, Ee) {
+ Re === ve && Ye(se, be, Ee), v(Re);
+ var pe = r(be, !0);
+ return v(Ee), l(ne, pe) ? (Ee.enumerable ? (l(Re, B) && Re[B][pe] && (Re[B][pe] = !1), Ee = i(Ee, { enumerable: t(0, !1) })) : (l(Re, B) || Q(Re, B, t(1, {})), Re[B][pe] = !0), we(Re, pe, Ee)) : Q(Re, pe, Ee);
+ }, nt = function(Re, be) {
+ v(Re);
+ var Ee = a(be), pe = n(Ee).concat(Qe(Ee));
+ return D(pe, function(Pe) {
+ (!w || ot.call(Ee, Pe)) && Ye(Re, Pe, Ee[Pe]);
+ }), Re;
+ }, ut = function(Re, be) {
+ return be === void 0 ? i(Re) : nt(i(Re), be);
+ }, ot = function(Re) {
+ var be = r(Re, !0), Ee = ke.call(this, be);
+ return this === ve && l(ne, be) && !l(se, be) ? !1 : Ee || !l(this, be) || !l(ne, be) || l(this, B) && this[B][be] ? Ee : !0;
+ }, Ue = function(Re, be) {
+ var Ee = a(Re), pe = r(be, !0);
+ if (!(Ee === ve && l(ne, pe) && !l(se, pe))) {
+ var Pe = J(Ee, pe);
+ return Pe && l(ne, pe) && !(l(Ee, B) && Ee[B][pe]) && (Pe.enumerable = !0), Pe;
+ }
+ }, Ve = function(Re) {
+ var be = he(a(Re)), Ee = [];
+ return D(be, function(pe) {
+ !l(ne, pe) && !l(C, pe) && Ee.push(pe);
+ }), Ee;
+ }, Qe = function(Re) {
+ var be = Re === ve, Ee = he(be ? se : a(Re)), pe = [];
+ return D(Ee, function(Pe) {
+ l(ne, Pe) && (!be || l(ve, Pe)) && pe.push(ne[Pe]);
+ }), pe;
+ };
+ if (f || (ge = function() {
+ if (this instanceof ge)
+ throw TypeError("Symbol is not a constructor");
+ var Re = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), be = E(Re), Ee = function(pe) {
+ this === ve && Ee.call(se, pe), l(this, B) && l(this[B], be) && (this[B][be] = !1), we(this, be, t(1, pe));
+ };
+ return w && fe && we(ve, be, { configurable: !0, set: Ee }), _e(be, Re);
+ }, M(ge[V], "toString", function() {
+ return ce(this).tag;
+ }), M(ge, "withoutSetter", function(ae) {
+ return _e(E(ae), ae);
+ }), z.f = ot, F.f = Ye, P.f = Ue, o.f = p.f = Ve, O.f = Qe, L.f = function(ae) {
+ return _e(A(ae), ae);
+ }, w && (Q(ge[V], "description", {
+ configurable: !0,
+ get: function() {
+ return ce(this).description;
+ }
+ }), b || M(ve, "propertyIsEnumerable", ot, { unsafe: !0 }))), u({ global: !0, wrap: !0, forced: !f, sham: !f }, {
+ Symbol: ge
+ }), D(n(G), function(ae) {
+ $(ae);
+ }), u({ target: j, stat: !0, forced: !f }, {
+ // `Symbol.for` method
+ // https://tc39.github.io/ecma262/#sec-symbol.for
+ for: function(ae) {
+ var Re = String(ae);
+ if (l(Ce, Re))
+ return Ce[Re];
+ var be = ge(Re);
+ return Ce[Re] = be, q[be] = Re, be;
+ },
+ // `Symbol.keyFor` method
+ // https://tc39.github.io/ecma262/#sec-symbol.keyfor
+ keyFor: function(Re) {
+ if (!je(Re))
+ throw TypeError(Re + " is not a symbol");
+ if (l(q, Re))
+ return q[Re];
+ },
+ useSetter: function() {
+ fe = !0;
+ },
+ useSimple: function() {
+ fe = !1;
+ }
+ }), u({ target: "Object", stat: !0, forced: !f, sham: !w }, {
+ // `Object.create` method
+ // https://tc39.github.io/ecma262/#sec-object.create
+ create: ut,
+ // `Object.defineProperty` method
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
+ defineProperty: Ye,
+ // `Object.defineProperties` method
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
+ defineProperties: nt,
+ // `Object.getOwnPropertyDescriptor` method
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
+ getOwnPropertyDescriptor: Ue
+ }), u({ target: "Object", stat: !0, forced: !f }, {
+ // `Object.getOwnPropertyNames` method
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
+ getOwnPropertyNames: Ve,
+ // `Object.getOwnPropertySymbols` method
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
+ getOwnPropertySymbols: Qe
+ }), u({ target: "Object", stat: !0, forced: h(function() {
+ O.f(1);
+ }) }, {
+ getOwnPropertySymbols: function(Re) {
+ return O.f(c(Re));
+ }
+ }), oe) {
+ var tt = !f || h(function() {
+ var ae = ge();
+ return oe([ae]) != "[null]" || oe({ a: ae }) != "{}" || oe(Object(ae)) != "{}";
+ });
+ u({ target: "JSON", stat: !0, forced: tt }, {
+ // eslint-disable-next-line no-unused-vars
+ stringify: function(Re, be, Ee) {
+ for (var pe = [Re], Pe = 1, te; arguments.length > Pe; )
+ pe.push(arguments[Pe++]);
+ if (te = be, !(!s(be) && Re === void 0 || je(Re)))
+ return d(be) || (be = function(He, it) {
+ if (typeof te == "function" && (it = te.call(this, He, it)), !je(it))
+ return it;
+ }), pe[1] = be, oe.apply(null, pe);
+ }
+ });
+ }
+ ge[V][re] || N(ge[V], re, ge[V].valueOf), W(ge, j), C[B] = !0;
+ }, { "../internals/an-object": 223, "../internals/array-iteration": 225, "../internals/create-non-enumerable-property": 236, "../internals/create-property-descriptor": 237, "../internals/define-well-known-symbol": 239, "../internals/descriptors": 240, "../internals/export": 246, "../internals/fails": 247, "../internals/get-built-in": 249, "../internals/global": 251, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/internal-state": 259, "../internals/is-array": 261, "../internals/is-object": 263, "../internals/is-pure": 264, "../internals/native-symbol": 271, "../internals/object-create": 276, "../internals/object-define-property": 278, "../internals/object-get-own-property-descriptor": 279, "../internals/object-get-own-property-names": 281, "../internals/object-get-own-property-names-external": 280, "../internals/object-get-own-property-symbols": 282, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/redefine": 294, "../internals/set-to-string-tag": 298, "../internals/shared": 301, "../internals/shared-key": 299, "../internals/to-indexed-object": 305, "../internals/to-object": 308, "../internals/to-primitive": 309, "../internals/uid": 311, "../internals/use-symbol-as-uid": 312, "../internals/well-known-symbol": 314, "../internals/well-known-symbol-wrapped": 313 }], 328: [function(e, x, _) {
+ (function(u) {
+ function m(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(p) {
+ return typeof p;
+ } : m = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, m(n);
+ }
+ function g(n) {
+ return Array.isArray ? Array.isArray(n) : i(n) === "[object Array]";
+ }
+ _.isArray = g;
+ function b(n) {
+ return typeof n == "boolean";
+ }
+ _.isBoolean = b;
+ function w(n) {
+ return n === null;
+ }
+ _.isNull = w;
+ function f(n) {
+ return n == null;
+ }
+ _.isNullOrUndefined = f;
+ function y(n) {
+ return typeof n == "number";
+ }
+ _.isNumber = y;
+ function h(n) {
+ return typeof n == "string";
+ }
+ _.isString = h;
+ function l(n) {
+ return m(n) === "symbol";
+ }
+ _.isSymbol = l;
+ function d(n) {
+ return n === void 0;
+ }
+ _.isUndefined = d;
+ function s(n) {
+ return i(n) === "[object RegExp]";
+ }
+ _.isRegExp = s;
+ function v(n) {
+ return m(n) === "object" && n !== null;
+ }
+ _.isObject = v;
+ function c(n) {
+ return i(n) === "[object Date]";
+ }
+ _.isDate = c;
+ function a(n) {
+ return i(n) === "[object Error]" || n instanceof Error;
+ }
+ _.isError = a;
+ function r(n) {
+ return typeof n == "function";
+ }
+ _.isFunction = r;
+ function t(n) {
+ return n === null || typeof n == "boolean" || typeof n == "number" || typeof n == "string" || m(n) === "symbol" || // ES6 symbol
+ typeof n == "undefined";
+ }
+ _.isPrimitive = t, _.isBuffer = u.isBuffer;
+ function i(n) {
+ return Object.prototype.toString.call(n);
+ }
+ }).call(this, { isBuffer: e("../../is-buffer/index.js") });
+ }, { "../../is-buffer/index.js": 388 }], 329: [function(e, x, _) {
+ (function(u) {
+ var m = e("elliptic"), g = e("bn.js");
+ x.exports = function(h) {
+ return new w(h);
+ };
+ var b = {
+ secp256k1: {
+ name: "secp256k1",
+ byteLength: 32
+ },
+ secp224r1: {
+ name: "p224",
+ byteLength: 28
+ },
+ prime256v1: {
+ name: "p256",
+ byteLength: 32
+ },
+ prime192v1: {
+ name: "p192",
+ byteLength: 24
+ },
+ ed25519: {
+ name: "ed25519",
+ byteLength: 32
+ },
+ secp384r1: {
+ name: "p384",
+ byteLength: 48
+ },
+ secp521r1: {
+ name: "p521",
+ byteLength: 66
+ }
+ };
+ b.p224 = b.secp224r1, b.p256 = b.secp256r1 = b.prime256v1, b.p192 = b.secp192r1 = b.prime192v1, b.p384 = b.secp384r1, b.p521 = b.secp521r1;
+ function w(y) {
+ this.curveType = b[y], this.curveType || (this.curveType = {
+ name: y
+ }), this.curve = new m.ec(this.curveType.name), this.keys = void 0;
+ }
+ w.prototype.generateKeys = function(y, h) {
+ return this.keys = this.curve.genKeyPair(), this.getPublicKey(y, h);
+ }, w.prototype.computeSecret = function(y, h, l) {
+ h = h || "utf8", u.isBuffer(y) || (y = new u(y, h));
+ var d = this.curve.keyFromPublic(y).getPublic(), s = d.mul(this.keys.getPrivate()).getX();
+ return f(s, l, this.curveType.byteLength);
+ }, w.prototype.getPublicKey = function(y, h) {
+ var l = this.keys.getPublic(h === "compressed", !0);
+ return h === "hybrid" && (l[l.length - 1] % 2 ? l[0] = 7 : l[0] = 6), f(l, y);
+ }, w.prototype.getPrivateKey = function(y) {
+ return f(this.keys.getPrivate(), y);
+ }, w.prototype.setPublicKey = function(y, h) {
+ return h = h || "utf8", u.isBuffer(y) || (y = new u(y, h)), this.keys._importPublic(y), this;
+ }, w.prototype.setPrivateKey = function(y, h) {
+ h = h || "utf8", u.isBuffer(y) || (y = new u(y, h));
+ var l = new g(y);
+ return l = l.toString(16), this.keys = this.curve.genKeyPair(), this.keys._importPrivate(l), this;
+ };
+ function f(y, h, l) {
+ Array.isArray(y) || (y = y.toArray());
+ var d = new u(y);
+ if (l && d.length < l) {
+ var s = new u(l - d.length);
+ s.fill(0), d = u.concat([s, d]);
+ }
+ return h ? d.toString(h) : d;
+ }
+ }).call(this, e("buffer").Buffer);
+ }, { "bn.js": 330, buffer: 216, elliptic: 350 }], 330: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 331: [function(e, x, _) {
+ var u = e("inherits"), m = e("md5.js"), g = e("ripemd160"), b = e("sha.js"), w = e("cipher-base");
+ function f(y) {
+ w.call(this, "digest"), this._hash = y;
+ }
+ u(f, w), f.prototype._update = function(y) {
+ this._hash.update(y);
+ }, f.prototype._final = function() {
+ return this._hash.digest();
+ }, x.exports = function(h) {
+ return h = h.toLowerCase(), h === "md5" ? new m() : h === "rmd160" || h === "ripemd160" ? new g() : new f(b(h));
+ };
+ }, { "cipher-base": 218, inherits: 387, "md5.js": 434, ripemd160: 493, "sha.js": 499 }], 332: [function(e, x, _) {
+ var u = e("md5.js");
+ x.exports = function(m) {
+ return new u().update(m).digest();
+ };
+ }, { "md5.js": 434 }], 333: [function(e, x, _) {
+ var u = e("inherits"), m = e("./legacy"), g = e("cipher-base"), b = e("safe-buffer").Buffer, w = e("create-hash/md5"), f = e("ripemd160"), y = e("sha.js"), h = b.alloc(128);
+ function l(d, s) {
+ g.call(this, "digest"), typeof s == "string" && (s = b.from(s));
+ var v = d === "sha512" || d === "sha384" ? 128 : 64;
+ if (this._alg = d, this._key = s, s.length > v) {
+ var c = d === "rmd160" ? new f() : y(d);
+ s = c.update(s).digest();
+ } else
+ s.length < v && (s = b.concat([s, h], v));
+ for (var a = this._ipad = b.allocUnsafe(v), r = this._opad = b.allocUnsafe(v), t = 0; t < v; t++)
+ a[t] = s[t] ^ 54, r[t] = s[t] ^ 92;
+ this._hash = d === "rmd160" ? new f() : y(d), this._hash.update(a);
+ }
+ u(l, g), l.prototype._update = function(d) {
+ this._hash.update(d);
+ }, l.prototype._final = function() {
+ var d = this._hash.digest(), s = this._alg === "rmd160" ? new f() : y(this._alg);
+ return s.update(this._opad).update(d).digest();
+ }, x.exports = function(s, v) {
+ return s = s.toLowerCase(), s === "rmd160" || s === "ripemd160" ? new l("rmd160", v) : s === "md5" ? new m(w, v) : new l(s, v);
+ };
+ }, { "./legacy": 334, "cipher-base": 218, "create-hash/md5": 332, inherits: 387, ripemd160: 493, "safe-buffer": 494, "sha.js": 499 }], 334: [function(e, x, _) {
+ var u = e("inherits"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = m.alloc(128), w = 64;
+ function f(y, h) {
+ g.call(this, "digest"), typeof h == "string" && (h = m.from(h)), this._alg = y, this._key = h, h.length > w ? h = y(h) : h.length < w && (h = m.concat([h, b], w));
+ for (var l = this._ipad = m.allocUnsafe(w), d = this._opad = m.allocUnsafe(w), s = 0; s < w; s++)
+ l[s] = h[s] ^ 54, d[s] = h[s] ^ 92;
+ this._hash = [l];
+ }
+ u(f, g), f.prototype._update = function(y) {
+ this._hash.push(y);
+ }, f.prototype._final = function() {
+ var y = this._alg(m.concat(this._hash));
+ return this._alg(m.concat([this._opad, y]));
+ }, x.exports = f;
+ }, { "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 335: [function(e, x, _) {
+ _.randomBytes = _.rng = _.pseudoRandomBytes = _.prng = e("randombytes"), _.createHash = _.Hash = e("create-hash"), _.createHmac = _.Hmac = e("create-hmac");
+ var u = e("browserify-sign/algos"), m = Object.keys(u), g = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(m);
+ _.getHashes = function() {
+ return g;
+ };
+ var b = e("pbkdf2");
+ _.pbkdf2 = b.pbkdf2, _.pbkdf2Sync = b.pbkdf2Sync;
+ var w = e("browserify-cipher");
+ _.Cipher = w.Cipher, _.createCipher = w.createCipher, _.Cipheriv = w.Cipheriv, _.createCipheriv = w.createCipheriv, _.Decipher = w.Decipher, _.createDecipher = w.createDecipher, _.Decipheriv = w.Decipheriv, _.createDecipheriv = w.createDecipheriv, _.getCiphers = w.getCiphers, _.listCiphers = w.listCiphers;
+ var f = e("diffie-hellman");
+ _.DiffieHellmanGroup = f.DiffieHellmanGroup, _.createDiffieHellmanGroup = f.createDiffieHellmanGroup, _.getDiffieHellman = f.getDiffieHellman, _.createDiffieHellman = f.createDiffieHellman, _.DiffieHellman = f.DiffieHellman;
+ var y = e("browserify-sign");
+ _.createSign = y.createSign, _.Sign = y.Sign, _.createVerify = y.createVerify, _.Verify = y.Verify, _.createECDH = e("create-ecdh");
+ var h = e("public-encrypt");
+ _.publicEncrypt = h.publicEncrypt, _.privateEncrypt = h.privateEncrypt, _.publicDecrypt = h.publicDecrypt, _.privateDecrypt = h.privateDecrypt;
+ var l = e("randomfill");
+ _.randomFill = l.randomFill, _.randomFillSync = l.randomFillSync, _.createCredentials = function() {
+ throw new Error(["sorry, createCredentials is not implemented yet", "we accept pull requests", "https://github.com/crypto-browserify/crypto-browserify"].join(`
+`));
+ }, _.constants = {
+ DH_CHECK_P_NOT_SAFE_PRIME: 2,
+ DH_CHECK_P_NOT_PRIME: 1,
+ DH_UNABLE_TO_CHECK_GENERATOR: 4,
+ DH_NOT_SUITABLE_GENERATOR: 8,
+ NPN_ENABLED: 1,
+ ALPN_ENABLED: 1,
+ RSA_PKCS1_PADDING: 1,
+ RSA_SSLV23_PADDING: 2,
+ RSA_NO_PADDING: 3,
+ RSA_PKCS1_OAEP_PADDING: 4,
+ RSA_X931_PADDING: 5,
+ RSA_PKCS1_PSS_PADDING: 6,
+ POINT_CONVERSION_COMPRESSED: 2,
+ POINT_CONVERSION_UNCOMPRESSED: 4,
+ POINT_CONVERSION_HYBRID: 6
+ };
+ }, { "browserify-cipher": 203, "browserify-sign": 211, "browserify-sign/algos": 208, "create-ecdh": 329, "create-hash": 331, "create-hmac": 333, "diffie-hellman": 345, pbkdf2: 460, "public-encrypt": 468, randombytes: 475, randomfill: 476 }], 336: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ (function(m, g) {
+ (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs = g();
+ })(void 0, function() {
+ var m = "millisecond", g = "second", b = "minute", w = "hour", f = "day", y = "week", h = "month", l = "quarter", d = "year", s = "date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/, c = /\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, a = function(M, I, R) {
+ var C = String(M);
+ return !C || C.length >= I ? M : "" + Array(I + 1 - C.length).join(R) + M;
+ }, r = {
+ s: a,
+ z: function(M) {
+ var I = -M.utcOffset(), R = Math.abs(I), C = Math.floor(R / 60), E = R % 60;
+ return (I <= 0 ? "+" : "-") + a(C, 2, "0") + ":" + a(E, 2, "0");
+ },
+ m: function N(M, I) {
+ if (M.date() < I.date())
+ return -N(I, M);
+ var R = 12 * (I.year() - M.year()) + (I.month() - M.month()), C = M.add(R, h), E = I - C < 0, A = M.add(R + (E ? -1 : 1), h);
+ return +(-(R + (I - C) / (E ? C - A : A - C)) || 0);
+ },
+ a: function(M) {
+ return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
+ },
+ p: function(M) {
+ return {
+ M: h,
+ y: d,
+ w: y,
+ d: f,
+ D: s,
+ h: w,
+ m: b,
+ s: g,
+ ms: m,
+ Q: l
+ }[M] || String(M || "").toLowerCase().replace(/s$/, "");
+ },
+ u: function(M) {
+ return M === void 0;
+ }
+ }, t = {
+ name: "en",
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
+ }, i = "en", n = {};
+ n[i] = t;
+ var o = function(M) {
+ return M instanceof F;
+ }, p = function(M, I, R) {
+ var C;
+ if (!M)
+ return i;
+ if (typeof M == "string")
+ n[M] && (C = M), I && (n[M] = I, C = M);
+ else {
+ var E = M.name;
+ n[E] = M, C = E;
+ }
+ return !R && C && (i = C), C || !R && i;
+ }, O = function(M, I) {
+ if (o(M))
+ return M.clone();
+ var R = u(I) == "object" ? I : {};
+ return R.date = M, R.args = arguments, new F(R);
+ }, P = r;
+ P.l = p, P.i = o, P.w = function(N, M) {
+ return O(N, {
+ locale: M.$L,
+ utc: M.$u,
+ $offset: M.$offset
+ });
+ };
+ var F = function() {
+ function N(I) {
+ this.$L = this.$L || p(I.locale, null, !0), this.parse(I);
+ }
+ var M = N.prototype;
+ return M.parse = function(I) {
+ this.$d = function(R) {
+ var C = R.date, E = R.utc;
+ if (C === null)
+ return /* @__PURE__ */ new Date(NaN);
+ if (P.u(C))
+ return /* @__PURE__ */ new Date();
+ if (C instanceof Date)
+ return new Date(C);
+ if (typeof C == "string" && !/Z$/i.test(C)) {
+ var A = C.match(v);
+ if (A) {
+ var L = A[2] - 1 || 0, $ = (A[7] || "0").substring(0, 3);
+ return E ? new Date(Date.UTC(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $)) : new Date(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $);
+ }
+ }
+ return new Date(C);
+ }(I), this.init();
+ }, M.init = function() {
+ var I = this.$d;
+ this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
+ }, M.$utils = function() {
+ return P;
+ }, M.isValid = function() {
+ return this.$d.toString() !== "Invalid Date";
+ }, M.isSame = function(I, R) {
+ var C = O(I);
+ return this.startOf(R) <= C && C <= this.endOf(R);
+ }, M.isAfter = function(I, R) {
+ return O(I) < this.startOf(R);
+ }, M.isBefore = function(I, R) {
+ return this.endOf(R) < O(I);
+ }, M.$g = function(I, R, C) {
+ return P.u(I) ? this[R] : this.set(C, I);
+ }, M.unix = function() {
+ return Math.floor(this.valueOf() / 1e3);
+ }, M.valueOf = function() {
+ return this.$d.getTime();
+ }, M.startOf = function(I, R) {
+ var C = this, E = !!P.u(R) || R, A = P.p(I), L = function(ee, ce) {
+ var ve = P.w(C.$u ? Date.UTC(C.$y, ce, ee) : new Date(C.$y, ce, ee), C);
+ return E ? ve : ve.endOf(f);
+ }, $ = function(ee, ce) {
+ return P.w(C.toDate()[ee].apply(C.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), C);
+ }, W = this.$W, U = this.$M, D = this.$D, B = "set" + (this.$u ? "UTC" : "");
+ switch (A) {
+ case d:
+ return E ? L(1, 0) : L(31, 11);
+ case h:
+ return E ? L(1, U) : L(0, U + 1);
+ case y:
+ var j = this.$locale().weekStart || 0, V = (W < j ? W + 7 : W) - j;
+ return L(E ? D - V : D + (6 - V), U);
+ case f:
+ case s:
+ return $(B + "Hours", 0);
+ case w:
+ return $(B + "Minutes", 1);
+ case b:
+ return $(B + "Seconds", 2);
+ case g:
+ return $(B + "Milliseconds", 3);
+ default:
+ return this.clone();
+ }
+ }, M.endOf = function(I) {
+ return this.startOf(I, !1);
+ }, M.$set = function(I, R) {
+ var C, E = P.p(I), A = "set" + (this.$u ? "UTC" : ""), L = (C = {}, C[f] = A + "Date", C[s] = A + "Date", C[h] = A + "Month", C[d] = A + "FullYear", C[w] = A + "Hours", C[b] = A + "Minutes", C[g] = A + "Seconds", C[m] = A + "Milliseconds", C)[E], $ = E === f ? this.$D + (R - this.$W) : R;
+ if (E === h || E === d) {
+ var W = this.clone().set(s, 1);
+ W.$d[L]($), W.init(), this.$d = W.set(s, Math.min(this.$D, W.daysInMonth())).$d;
+ } else
+ L && this.$d[L]($);
+ return this.init(), this;
+ }, M.set = function(I, R) {
+ return this.clone().$set(I, R);
+ }, M.get = function(I) {
+ return this[P.p(I)]();
+ }, M.add = function(I, R) {
+ var C, E = this;
+ I = Number(I);
+ var A = P.p(R), L = function(D) {
+ var B = O(E);
+ return P.w(B.date(B.date() + Math.round(D * I)), E);
+ };
+ if (A === h)
+ return this.set(h, this.$M + I);
+ if (A === d)
+ return this.set(d, this.$y + I);
+ if (A === f)
+ return L(1);
+ if (A === y)
+ return L(7);
+ var $ = (C = {}, C[b] = 6e4, C[w] = 36e5, C[g] = 1e3, C)[A] || 1, W = this.$d.getTime() + I * $;
+ return P.w(W, this);
+ }, M.subtract = function(I, R) {
+ return this.add(-1 * I, R);
+ }, M.format = function(I) {
+ var R = this;
+ if (!this.isValid())
+ return "Invalid Date";
+ var C = I || "YYYY-MM-DDTHH:mm:ssZ", E = P.z(this), A = this.$locale(), L = this.$H, $ = this.$m, W = this.$M, U = A.weekdays, D = A.months, B = function(ce, ve, ge, oe) {
+ return ce && (ce[ve] || ce(R, C)) || ge[ve].substr(0, oe);
+ }, j = function(ce) {
+ return P.s(L % 12 || 12, ce, "0");
+ }, V = A.meridiem || function(ee, ce, ve) {
+ var ge = ee < 12 ? "AM" : "PM";
+ return ve ? ge.toLowerCase() : ge;
+ }, re = {
+ YY: String(this.$y).slice(-2),
+ YYYY: this.$y,
+ M: W + 1,
+ MM: P.s(W + 1, 2, "0"),
+ MMM: B(A.monthsShort, W, D, 3),
+ MMMM: B(D, W),
+ D: this.$D,
+ DD: P.s(this.$D, 2, "0"),
+ d: String(this.$W),
+ dd: B(A.weekdaysMin, this.$W, U, 2),
+ ddd: B(A.weekdaysShort, this.$W, U, 3),
+ dddd: U[this.$W],
+ H: String(L),
+ HH: P.s(L, 2, "0"),
+ h: j(1),
+ hh: j(2),
+ a: V(L, $, !0),
+ A: V(L, $, !1),
+ m: String($),
+ mm: P.s($, 2, "0"),
+ s: String(this.$s),
+ ss: P.s(this.$s, 2, "0"),
+ SSS: P.s(this.$ms, 3, "0"),
+ Z: E
+ };
+ return C.replace(c, function(ee, ce) {
+ return ce || re[ee] || E.replace(":", "");
+ });
+ }, M.utcOffset = function() {
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
+ }, M.diff = function(I, R, C) {
+ var E, A = P.p(R), L = O(I), $ = 6e4 * (L.utcOffset() - this.utcOffset()), W = this - L, U = P.m(this, L);
+ return U = (E = {}, E[d] = U / 12, E[h] = U, E[l] = U / 3, E[y] = (W - $) / 6048e5, E[f] = (W - $) / 864e5, E[w] = W / 36e5, E[b] = W / 6e4, E[g] = W / 1e3, E)[A] || W, C ? U : P.a(U);
+ }, M.daysInMonth = function() {
+ return this.endOf(h).$D;
+ }, M.$locale = function() {
+ return n[this.$L];
+ }, M.locale = function(I, R) {
+ if (!I)
+ return this.$L;
+ var C = this.clone(), E = p(I, R, !0);
+ return E && (C.$L = E), C;
+ }, M.clone = function() {
+ return P.w(this.$d, this);
+ }, M.toDate = function() {
+ return new Date(this.valueOf());
+ }, M.toJSON = function() {
+ return this.isValid() ? this.toISOString() : null;
+ }, M.toISOString = function() {
+ return this.$d.toISOString();
+ }, M.toString = function() {
+ return this.$d.toUTCString();
+ }, N;
+ }(), z = F.prototype;
+ return O.prototype = z, [["$ms", m], ["$s", g], ["$m", b], ["$H", w], ["$W", f], ["$M", h], ["$y", d], ["$D", s]].forEach(function(N) {
+ z[N[1]] = function(M) {
+ return this.$g(M, N[0], N[1]);
+ };
+ }), O.extend = function(N, M) {
+ return N(M, F, O), O;
+ }, O.locale = p, O.isDayjs = o, O.unix = function(N) {
+ return O(1e3 * N);
+ }, O.en = n[i], O.Ls = n, O;
+ });
+ }, {}], 337: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ (function(m, g) {
+ (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs_plugin_customParseFormat = g();
+ })(void 0, function() {
+ var m, g = /(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, b = /\d\d/, w = /\d\d?/, f = /\d*[^\s\d-:/()]+/, y = function(c) {
+ return function(a) {
+ this[c] = +a;
+ };
+ }, h = [/[+-]\d\d:?\d\d/, function(v) {
+ var c, a;
+ (this.zone || (this.zone = {})).offset = (c = v.match(/([+-]|\d\d)/g), (a = 60 * c[1] + +c[2]) === 0 ? 0 : c[0] === "+" ? -a : a);
+ }], l = function(c) {
+ var a = m[c];
+ return a && (a.indexOf ? a : a.s.concat(a.f));
+ }, d = {
+ A: [/[AP]M/, function(v) {
+ this.afternoon = v === "PM";
+ }],
+ a: [/[ap]m/, function(v) {
+ this.afternoon = v === "pm";
+ }],
+ S: [/\d/, function(v) {
+ this.milliseconds = 100 * +v;
+ }],
+ SS: [b, function(v) {
+ this.milliseconds = 10 * +v;
+ }],
+ SSS: [/\d{3}/, function(v) {
+ this.milliseconds = +v;
+ }],
+ s: [w, y("seconds")],
+ ss: [w, y("seconds")],
+ m: [w, y("minutes")],
+ mm: [w, y("minutes")],
+ H: [w, y("hours")],
+ h: [w, y("hours")],
+ HH: [w, y("hours")],
+ hh: [w, y("hours")],
+ D: [w, y("day")],
+ DD: [b, y("day")],
+ Do: [f, function(v) {
+ var c = m.ordinal, a = v.match(/\d+/);
+ if (this.day = a[0], c)
+ for (var r = 1; r <= 31; r += 1)
+ c(r).replace(/\[|\]/g, "") === v && (this.day = r);
+ }],
+ M: [w, y("month")],
+ MM: [b, y("month")],
+ MMM: [f, function(v) {
+ var c = l("months"), a = (l("monthsShort") || c.map(function(r) {
+ return r.substr(0, 3);
+ })).indexOf(v) + 1;
+ if (a < 1)
+ throw new Error();
+ this.month = a % 12 || a;
+ }],
+ MMMM: [f, function(v) {
+ var c = l("months").indexOf(v) + 1;
+ if (c < 1)
+ throw new Error();
+ this.month = c % 12 || c;
+ }],
+ Y: [/[+-]?\d+/, y("year")],
+ YY: [b, function(v) {
+ v = +v, this.year = v + (v > 68 ? 1900 : 2e3);
+ }],
+ YYYY: [/\d{4}/, y("year")],
+ Z: h,
+ ZZ: h
+ }, s = function(c, a, r) {
+ try {
+ var t = function($) {
+ for (var W = $.match(g), U = W.length, D = 0; D < U; D += 1) {
+ var B = W[D], j = d[B], V = j && j[0], re = j && j[1];
+ W[D] = re ? {
+ regex: V,
+ parser: re
+ } : B.replace(/^\[|\]$/g, "");
+ }
+ return function(ee) {
+ for (var ce = {}, ve = 0, ge = 0; ve < U; ve += 1) {
+ var oe = W[ve];
+ if (typeof oe == "string")
+ ge += oe.length;
+ else {
+ var J = oe.regex, Q = oe.parser, he = ee.substr(ge), ke = J.exec(he)[0];
+ Q.call(ce, ke), ee = ee.replace(ke, "");
+ }
+ }
+ return function(ne) {
+ var se = ne.afternoon;
+ if (se !== void 0) {
+ var Ce = ne.hours;
+ se ? Ce < 12 && (ne.hours += 12) : Ce === 12 && (ne.hours = 0), delete ne.afternoon;
+ }
+ }(ce), ce;
+ };
+ }(a)(c), i = t.year, n = t.month, o = t.day, p = t.hours, O = t.minutes, P = t.seconds, F = t.milliseconds, z = t.zone, N = /* @__PURE__ */ new Date(), M = o || (i || n ? 1 : N.getDate()), I = i || N.getFullYear(), R = 0;
+ i && !n || (R = n > 0 ? n - 1 : N.getMonth());
+ var C = p || 0, E = O || 0, A = P || 0, L = F || 0;
+ return z ? new Date(Date.UTC(I, R, M, C, E, A, L + 60 * z.offset * 1e3)) : r ? new Date(Date.UTC(I, R, M, C, E, A, L)) : new Date(I, R, M, C, E, A, L);
+ } catch ($) {
+ return /* @__PURE__ */ new Date("");
+ }
+ };
+ return function(v, c, a) {
+ var r = c.prototype, t = r.parse;
+ r.parse = function(i) {
+ var n = i.date, o = i.utc, p = i.args;
+ this.$u = o;
+ var O = p[1];
+ if (typeof O == "string") {
+ var P = p[2] === !0, F = p[3] === !0, z = P || F, N = p[2];
+ F && (N = p[2]), P || (m = N ? a.Ls[N] : this.$locale()), this.$d = s(n, O, o), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), z && n !== this.format(O) && (this.$d = /* @__PURE__ */ new Date(""));
+ } else if (O instanceof Array)
+ for (var M = O.length, I = 1; I <= M; I += 1) {
+ p[1] = O[I - 1];
+ var R = a.apply(this, p);
+ if (R.isValid()) {
+ this.$d = R.$d, this.$L = R.$L, this.init();
+ break;
+ }
+ I === M && (this.$d = /* @__PURE__ */ new Date(""));
+ }
+ else
+ t.call(this, i);
+ };
+ };
+ });
+ }, {}], 338: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ (function(m, g) {
+ (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs_plugin_utc = g();
+ })(void 0, function() {
+ return function(m, g, b) {
+ var w = (/* @__PURE__ */ new Date()).getTimezoneOffset(), f = g.prototype;
+ b.utc = function(c) {
+ return new g({
+ date: c,
+ utc: !0,
+ args: arguments
+ });
+ }, f.utc = function() {
+ return b(this.toDate(), {
+ locale: this.$L,
+ utc: !0
+ });
+ }, f.local = function() {
+ return b(this.toDate(), {
+ locale: this.$L,
+ utc: !1
+ });
+ };
+ var y = f.parse;
+ f.parse = function(c) {
+ c.utc && (this.$u = !0), this.$utils().u(c.$offset) || (this.$offset = c.$offset), y.call(this, c);
+ };
+ var h = f.init;
+ f.init = function() {
+ if (this.$u) {
+ var c = this.$d;
+ this.$y = c.getUTCFullYear(), this.$M = c.getUTCMonth(), this.$D = c.getUTCDate(), this.$W = c.getUTCDay(), this.$H = c.getUTCHours(), this.$m = c.getUTCMinutes(), this.$s = c.getUTCSeconds(), this.$ms = c.getUTCMilliseconds();
+ } else
+ h.call(this);
+ };
+ var l = f.utcOffset;
+ f.utcOffset = function(c, a) {
+ var r = this.$utils().u;
+ if (r(c))
+ return this.$u ? 0 : r(this.$offset) ? l.call(this) : this.$offset;
+ var t = Math.abs(c) <= 16 ? 60 * c : c, i = this;
+ return a ? (i.$offset = t, i.$u = c === 0, i) : (c !== 0 ? (i = this.local().add(t + w, "minute")).$offset = t : i = this.utc(), i);
+ };
+ var d = f.format;
+ f.format = function(c) {
+ var a = c || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
+ return d.call(this, a);
+ }, f.valueOf = function() {
+ var c = this.$utils().u(this.$offset) ? 0 : this.$offset + w;
+ return this.$d.valueOf() - 6e4 * c;
+ }, f.isUTC = function() {
+ return !!this.$u;
+ }, f.toISOString = function() {
+ return this.toDate().toISOString();
+ }, f.toString = function() {
+ return this.toDate().toUTCString();
+ };
+ var s = f.toDate;
+ f.toDate = function(c) {
+ return c === "s" && this.$offset ? b(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : s.call(this);
+ };
+ var v = f.diff;
+ f.diff = function(c, a, r) {
+ var t = this.local(), i = b(c).local();
+ return v.call(t, i, a, r);
+ };
+ };
+ });
+ }, {}], 339: [function(e, x, _) {
+ _.utils = e("./des/utils"), _.Cipher = e("./des/cipher"), _.DES = e("./des/des"), _.CBC = e("./des/cbc"), _.EDE = e("./des/ede");
+ }, { "./des/cbc": 340, "./des/cipher": 341, "./des/des": 342, "./des/ede": 343, "./des/utils": 344 }], 340: [function(e, x, _) {
+ var u = e("minimalistic-assert"), m = e("inherits"), g = {};
+ function b(f) {
+ u.equal(f.length, 8, "Invalid IV length"), this.iv = new Array(8);
+ for (var y = 0; y < this.iv.length; y++)
+ this.iv[y] = f[y];
+ }
+ function w(f) {
+ function y(s) {
+ f.call(this, s), this._cbcInit();
+ }
+ m(y, f);
+ for (var h = Object.keys(g), l = 0; l < h.length; l++) {
+ var d = h[l];
+ y.prototype[d] = g[d];
+ }
+ return y.create = function(v) {
+ return new y(v);
+ }, y;
+ }
+ _.instantiate = w, g._cbcInit = function() {
+ var y = new b(this.options.iv);
+ this._cbcState = y;
+ }, g._update = function(y, h, l, d) {
+ var s = this._cbcState, v = this.constructor.super_.prototype, c = s.iv;
+ if (this.type === "encrypt") {
+ for (var a = 0; a < this.blockSize; a++)
+ c[a] ^= y[h + a];
+ v._update.call(this, c, 0, l, d);
+ for (var a = 0; a < this.blockSize; a++)
+ c[a] = l[d + a];
+ } else {
+ v._update.call(this, y, h, l, d);
+ for (var a = 0; a < this.blockSize; a++)
+ l[d + a] ^= c[a];
+ for (var a = 0; a < this.blockSize; a++)
+ c[a] = y[h + a];
+ }
+ };
+ }, { inherits: 387, "minimalistic-assert": 437 }], 341: [function(e, x, _) {
+ var u = e("minimalistic-assert");
+ function m(g) {
+ this.options = g, this.type = this.options.type, this.blockSize = 8, this._init(), this.buffer = new Array(this.blockSize), this.bufferOff = 0;
+ }
+ x.exports = m, m.prototype._init = function() {
+ }, m.prototype.update = function(b) {
+ return b.length === 0 ? [] : this.type === "decrypt" ? this._updateDecrypt(b) : this._updateEncrypt(b);
+ }, m.prototype._buffer = function(b, w) {
+ for (var f = Math.min(this.buffer.length - this.bufferOff, b.length - w), y = 0; y < f; y++)
+ this.buffer[this.bufferOff + y] = b[w + y];
+ return this.bufferOff += f, f;
+ }, m.prototype._flushBuffer = function(b, w) {
+ return this._update(this.buffer, 0, b, w), this.bufferOff = 0, this.blockSize;
+ }, m.prototype._updateEncrypt = function(b) {
+ var w = 0, f = 0, y = (this.bufferOff + b.length) / this.blockSize | 0, h = new Array(y * this.blockSize);
+ this.bufferOff !== 0 && (w += this._buffer(b, w), this.bufferOff === this.buffer.length && (f += this._flushBuffer(h, f)));
+ for (var l = b.length - (b.length - w) % this.blockSize; w < l; w += this.blockSize)
+ this._update(b, w, h, f), f += this.blockSize;
+ for (; w < b.length; w++, this.bufferOff++)
+ this.buffer[this.bufferOff] = b[w];
+ return h;
+ }, m.prototype._updateDecrypt = function(b) {
+ for (var w = 0, f = 0, y = Math.ceil((this.bufferOff + b.length) / this.blockSize) - 1, h = new Array(y * this.blockSize); y > 0; y--)
+ w += this._buffer(b, w), f += this._flushBuffer(h, f);
+ return w += this._buffer(b, w), h;
+ }, m.prototype.final = function(b) {
+ var w;
+ b && (w = this.update(b));
+ var f;
+ return this.type === "encrypt" ? f = this._finalEncrypt() : f = this._finalDecrypt(), w ? w.concat(f) : f;
+ }, m.prototype._pad = function(b, w) {
+ if (w === 0)
+ return !1;
+ for (; w < b.length; )
+ b[w++] = 0;
+ return !0;
+ }, m.prototype._finalEncrypt = function() {
+ if (!this._pad(this.buffer, this.bufferOff))
+ return [];
+ var b = new Array(this.blockSize);
+ return this._update(this.buffer, 0, b, 0), b;
+ }, m.prototype._unpad = function(b) {
+ return b;
+ }, m.prototype._finalDecrypt = function() {
+ u.equal(this.bufferOff, this.blockSize, "Not enough data to decrypt");
+ var b = new Array(this.blockSize);
+ return this._flushBuffer(b, 0), this._unpad(b);
+ };
+ }, { "minimalistic-assert": 437 }], 342: [function(e, x, _) {
+ var u = e("minimalistic-assert"), m = e("inherits"), g = e("./utils"), b = e("./cipher");
+ function w() {
+ this.tmp = new Array(2), this.keys = null;
+ }
+ function f(h) {
+ b.call(this, h);
+ var l = new w();
+ this._desState = l, this.deriveKeys(l, h.key);
+ }
+ m(f, b), x.exports = f, f.create = function(l) {
+ return new f(l);
+ };
+ var y = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1];
+ f.prototype.deriveKeys = function(l, d) {
+ l.keys = new Array(16 * 2), u.equal(d.length, this.blockSize, "Invalid key length");
+ var s = g.readUInt32BE(d, 0), v = g.readUInt32BE(d, 4);
+ g.pc1(s, v, l.tmp, 0), s = l.tmp[0], v = l.tmp[1];
+ for (var c = 0; c < l.keys.length; c += 2) {
+ var a = y[c >>> 1];
+ s = g.r28shl(s, a), v = g.r28shl(v, a), g.pc2(s, v, l.keys, c);
+ }
+ }, f.prototype._update = function(l, d, s, v) {
+ var c = this._desState, a = g.readUInt32BE(l, d), r = g.readUInt32BE(l, d + 4);
+ g.ip(a, r, c.tmp, 0), a = c.tmp[0], r = c.tmp[1], this.type === "encrypt" ? this._encrypt(c, a, r, c.tmp, 0) : this._decrypt(c, a, r, c.tmp, 0), a = c.tmp[0], r = c.tmp[1], g.writeUInt32BE(s, a, v), g.writeUInt32BE(s, r, v + 4);
+ }, f.prototype._pad = function(l, d) {
+ for (var s = l.length - d, v = d; v < l.length; v++)
+ l[v] = s;
+ return !0;
+ }, f.prototype._unpad = function(l) {
+ for (var d = l[l.length - 1], s = l.length - d; s < l.length; s++)
+ u.equal(l[s], d);
+ return l.slice(0, l.length - d);
+ }, f.prototype._encrypt = function(l, d, s, v, c) {
+ for (var a = d, r = s, t = 0; t < l.keys.length; t += 2) {
+ var i = l.keys[t], n = l.keys[t + 1];
+ g.expand(r, l.tmp, 0), i ^= l.tmp[0], n ^= l.tmp[1];
+ var o = g.substitute(i, n), p = g.permute(o), O = r;
+ r = (a ^ p) >>> 0, a = O;
+ }
+ g.rip(r, a, v, c);
+ }, f.prototype._decrypt = function(l, d, s, v, c) {
+ for (var a = s, r = d, t = l.keys.length - 2; t >= 0; t -= 2) {
+ var i = l.keys[t], n = l.keys[t + 1];
+ g.expand(a, l.tmp, 0), i ^= l.tmp[0], n ^= l.tmp[1];
+ var o = g.substitute(i, n), p = g.permute(o), O = a;
+ a = (r ^ p) >>> 0, r = O;
+ }
+ g.rip(a, r, v, c);
+ };
+ }, { "./cipher": 341, "./utils": 344, inherits: 387, "minimalistic-assert": 437 }], 343: [function(e, x, _) {
+ var u = e("minimalistic-assert"), m = e("inherits"), g = e("./cipher"), b = e("./des");
+ function w(y, h) {
+ u.equal(h.length, 24, "Invalid key length");
+ var l = h.slice(0, 8), d = h.slice(8, 16), s = h.slice(16, 24);
+ y === "encrypt" ? this.ciphers = [b.create({
+ type: "encrypt",
+ key: l
+ }), b.create({
+ type: "decrypt",
+ key: d
+ }), b.create({
+ type: "encrypt",
+ key: s
+ })] : this.ciphers = [b.create({
+ type: "decrypt",
+ key: s
+ }), b.create({
+ type: "encrypt",
+ key: d
+ }), b.create({
+ type: "decrypt",
+ key: l
+ })];
+ }
+ function f(y) {
+ g.call(this, y);
+ var h = new w(this.type, this.options.key);
+ this._edeState = h;
+ }
+ m(f, g), x.exports = f, f.create = function(h) {
+ return new f(h);
+ }, f.prototype._update = function(h, l, d, s) {
+ var v = this._edeState;
+ v.ciphers[0]._update(h, l, d, s), v.ciphers[1]._update(d, s, d, s), v.ciphers[2]._update(d, s, d, s);
+ }, f.prototype._pad = b.prototype._pad, f.prototype._unpad = b.prototype._unpad;
+ }, { "./cipher": 341, "./des": 342, inherits: 387, "minimalistic-assert": 437 }], 344: [function(e, x, _) {
+ _.readUInt32BE = function(w, f) {
+ var y = w[0 + f] << 24 | w[1 + f] << 16 | w[2 + f] << 8 | w[3 + f];
+ return y >>> 0;
+ }, _.writeUInt32BE = function(w, f, y) {
+ w[0 + y] = f >>> 24, w[1 + y] = f >>> 16 & 255, w[2 + y] = f >>> 8 & 255, w[3 + y] = f & 255;
+ }, _.ip = function(w, f, y, h) {
+ for (var l = 0, d = 0, s = 6; s >= 0; s -= 2) {
+ for (var v = 0; v <= 24; v += 8)
+ l <<= 1, l |= f >>> v + s & 1;
+ for (var v = 0; v <= 24; v += 8)
+ l <<= 1, l |= w >>> v + s & 1;
+ }
+ for (var s = 6; s >= 0; s -= 2) {
+ for (var v = 1; v <= 25; v += 8)
+ d <<= 1, d |= f >>> v + s & 1;
+ for (var v = 1; v <= 25; v += 8)
+ d <<= 1, d |= w >>> v + s & 1;
+ }
+ y[h + 0] = l >>> 0, y[h + 1] = d >>> 0;
+ }, _.rip = function(w, f, y, h) {
+ for (var l = 0, d = 0, s = 0; s < 4; s++)
+ for (var v = 24; v >= 0; v -= 8)
+ l <<= 1, l |= f >>> v + s & 1, l <<= 1, l |= w >>> v + s & 1;
+ for (var s = 4; s < 8; s++)
+ for (var v = 24; v >= 0; v -= 8)
+ d <<= 1, d |= f >>> v + s & 1, d <<= 1, d |= w >>> v + s & 1;
+ y[h + 0] = l >>> 0, y[h + 1] = d >>> 0;
+ }, _.pc1 = function(w, f, y, h) {
+ for (var l = 0, d = 0, s = 7; s >= 5; s--) {
+ for (var v = 0; v <= 24; v += 8)
+ l <<= 1, l |= f >> v + s & 1;
+ for (var v = 0; v <= 24; v += 8)
+ l <<= 1, l |= w >> v + s & 1;
+ }
+ for (var v = 0; v <= 24; v += 8)
+ l <<= 1, l |= f >> v + s & 1;
+ for (var s = 1; s <= 3; s++) {
+ for (var v = 0; v <= 24; v += 8)
+ d <<= 1, d |= f >> v + s & 1;
+ for (var v = 0; v <= 24; v += 8)
+ d <<= 1, d |= w >> v + s & 1;
+ }
+ for (var v = 0; v <= 24; v += 8)
+ d <<= 1, d |= w >> v + s & 1;
+ y[h + 0] = l >>> 0, y[h + 1] = d >>> 0;
+ }, _.r28shl = function(w, f) {
+ return w << f & 268435455 | w >>> 28 - f;
+ };
+ var u = [
+ // inL => outL
+ 14,
+ 11,
+ 17,
+ 4,
+ 27,
+ 23,
+ 25,
+ 0,
+ 13,
+ 22,
+ 7,
+ 18,
+ 5,
+ 9,
+ 16,
+ 24,
+ 2,
+ 20,
+ 12,
+ 21,
+ 1,
+ 8,
+ 15,
+ 26,
+ // inR => outR
+ 15,
+ 4,
+ 25,
+ 19,
+ 9,
+ 1,
+ 26,
+ 16,
+ 5,
+ 11,
+ 23,
+ 8,
+ 12,
+ 7,
+ 17,
+ 0,
+ 22,
+ 3,
+ 10,
+ 14,
+ 6,
+ 20,
+ 27,
+ 24
+ ];
+ _.pc2 = function(w, f, y, h) {
+ for (var l = 0, d = 0, s = u.length >>> 1, v = 0; v < s; v++)
+ l <<= 1, l |= w >>> u[v] & 1;
+ for (var v = s; v < u.length; v++)
+ d <<= 1, d |= f >>> u[v] & 1;
+ y[h + 0] = l >>> 0, y[h + 1] = d >>> 0;
+ }, _.expand = function(w, f, y) {
+ var h = 0, l = 0;
+ h = (w & 1) << 5 | w >>> 27;
+ for (var d = 23; d >= 15; d -= 4)
+ h <<= 6, h |= w >>> d & 63;
+ for (var d = 11; d >= 3; d -= 4)
+ l |= w >>> d & 63, l <<= 6;
+ l |= (w & 31) << 1 | w >>> 31, f[y + 0] = h >>> 0, f[y + 1] = l >>> 0;
+ };
+ var m = [14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11];
+ _.substitute = function(w, f) {
+ for (var y = 0, h = 0; h < 4; h++) {
+ var l = w >>> 18 - h * 6 & 63, d = m[h * 64 + l];
+ y <<= 4, y |= d;
+ }
+ for (var h = 0; h < 4; h++) {
+ var l = f >>> 18 - h * 6 & 63, d = m[4 * 64 + h * 64 + l];
+ y <<= 4, y |= d;
+ }
+ return y >>> 0;
+ };
+ var g = [16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7];
+ _.permute = function(w) {
+ for (var f = 0, y = 0; y < g.length; y++)
+ f <<= 1, f |= w >>> g[y] & 1;
+ return f >>> 0;
+ }, _.padSplit = function(w, f, y) {
+ for (var h = w.toString(2); h.length < f; )
+ h = "0" + h;
+ for (var l = [], d = 0; d < f; d += y)
+ l.push(h.slice(d, d + y));
+ return l.join(" ");
+ };
+ }, {}], 345: [function(e, x, _) {
+ (function(u) {
+ var m = e("./lib/generatePrime"), g = e("./lib/primes.json"), b = e("./lib/dh");
+ function w(h) {
+ var l = new u(g[h].prime, "hex"), d = new u(g[h].gen, "hex");
+ return new b(l, d);
+ }
+ var f = {
+ binary: !0,
+ hex: !0,
+ base64: !0
+ };
+ function y(h, l, d, s) {
+ return u.isBuffer(l) || f[l] === void 0 ? y(h, "binary", l, d) : (l = l || "binary", s = s || "binary", d = d || new u([2]), u.isBuffer(d) || (d = new u(d, s)), typeof h == "number" ? new b(m(h, d), d, !0) : (u.isBuffer(h) || (h = new u(h, l)), new b(h, d, !0)));
+ }
+ _.DiffieHellmanGroup = _.createDiffieHellmanGroup = _.getDiffieHellman = w, _.createDiffieHellman = _.DiffieHellman = y;
+ }).call(this, e("buffer").Buffer);
+ }, { "./lib/dh": 346, "./lib/generatePrime": 347, "./lib/primes.json": 348, buffer: 216 }], 346: [function(e, x, _) {
+ (function(u) {
+ var m = e("bn.js"), g = e("miller-rabin"), b = new g(), w = new m(24), f = new m(11), y = new m(10), h = new m(3), l = new m(7), d = e("./generatePrime"), s = e("randombytes");
+ x.exports = t;
+ function v(n, o) {
+ return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this._pub = new m(n), this;
+ }
+ function c(n, o) {
+ return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this._priv = new m(n), this;
+ }
+ var a = {};
+ function r(n, o) {
+ var p = o.toString("hex"), O = [p, n.toString(16)].join("_");
+ if (O in a)
+ return a[O];
+ var P = 0;
+ if (n.isEven() || !d.simpleSieve || !d.fermatTest(n) || !b.test(n))
+ return P += 1, p === "02" || p === "05" ? P += 8 : P += 4, a[O] = P, P;
+ b.test(n.shrn(1)) || (P += 2);
+ var F;
+ switch (p) {
+ case "02":
+ n.mod(w).cmp(f) && (P += 8);
+ break;
+ case "05":
+ F = n.mod(y), F.cmp(h) && F.cmp(l) && (P += 8);
+ break;
+ default:
+ P += 4;
+ }
+ return a[O] = P, P;
+ }
+ function t(n, o, p) {
+ this.setGenerator(o), this.__prime = new m(n), this._prime = m.mont(this.__prime), this._primeLen = n.length, this._pub = void 0, this._priv = void 0, this._primeCode = void 0, p ? (this.setPublicKey = v, this.setPrivateKey = c) : this._primeCode = 8;
+ }
+ Object.defineProperty(t.prototype, "verifyError", {
+ enumerable: !0,
+ get: function() {
+ return typeof this._primeCode != "number" && (this._primeCode = r(this.__prime, this.__gen)), this._primeCode;
+ }
+ }), t.prototype.generateKeys = function() {
+ return this._priv || (this._priv = new m(s(this._primeLen))), this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed(), this.getPublicKey();
+ }, t.prototype.computeSecret = function(n) {
+ n = new m(n), n = n.toRed(this._prime);
+ var o = n.redPow(this._priv).fromRed(), p = new u(o.toArray()), O = this.getPrime();
+ if (p.length < O.length) {
+ var P = new u(O.length - p.length);
+ P.fill(0), p = u.concat([P, p]);
+ }
+ return p;
+ }, t.prototype.getPublicKey = function(o) {
+ return i(this._pub, o);
+ }, t.prototype.getPrivateKey = function(o) {
+ return i(this._priv, o);
+ }, t.prototype.getPrime = function(n) {
+ return i(this.__prime, n);
+ }, t.prototype.getGenerator = function(n) {
+ return i(this._gen, n);
+ }, t.prototype.setGenerator = function(n, o) {
+ return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this.__gen = n, this._gen = new m(n), this;
+ };
+ function i(n, o) {
+ var p = new u(n.toArray());
+ return o ? p.toString(o) : p;
+ }
+ }).call(this, e("buffer").Buffer);
+ }, { "./generatePrime": 347, "bn.js": 349, buffer: 216, "miller-rabin": 435, randombytes: 475 }], 347: [function(e, x, _) {
+ var u = e("randombytes");
+ x.exports = i, i.simpleSieve = r, i.fermatTest = t;
+ var m = e("bn.js"), g = new m(24), b = e("miller-rabin"), w = new b(), f = new m(1), y = new m(2), h = new m(5);
+ new m(16), new m(8);
+ var l = new m(10), d = new m(3);
+ new m(7);
+ var s = new m(11), v = new m(4);
+ new m(12);
+ var c = null;
+ function a() {
+ if (c !== null)
+ return c;
+ var n = 1048576, o = [];
+ o[0] = 2;
+ for (var p = 1, O = 3; O < n; O += 2) {
+ for (var P = Math.ceil(Math.sqrt(O)), F = 0; F < p && o[F] <= P && O % o[F] !== 0; F++)
+ ;
+ p !== F && o[F] <= P || (o[p++] = O);
+ }
+ return c = o, o;
+ }
+ function r(n) {
+ for (var o = a(), p = 0; p < o.length; p++)
+ if (n.modn(o[p]) === 0)
+ return n.cmpn(o[p]) === 0;
+ return !0;
+ }
+ function t(n) {
+ var o = m.mont(n);
+ return y.toRed(o).redPow(n.subn(1)).fromRed().cmpn(1) === 0;
+ }
+ function i(n, o) {
+ if (n < 16)
+ return o === 2 || o === 5 ? new m([140, 123]) : new m([140, 39]);
+ o = new m(o);
+ for (var p, O; ; ) {
+ for (p = new m(u(Math.ceil(n / 8))); p.bitLength() > n; )
+ p.ishrn(1);
+ if (p.isEven() && p.iadd(f), p.testn(1) || p.iadd(y), o.cmp(y)) {
+ if (!o.cmp(h))
+ for (; p.mod(l).cmp(d); )
+ p.iadd(v);
+ } else
+ for (; p.mod(g).cmp(s); )
+ p.iadd(v);
+ if (O = p.shrn(1), r(O) && r(p) && t(O) && t(p) && w.test(O) && w.test(p))
+ return p;
+ }
+ }
+ }, { "bn.js": 349, "miller-rabin": 435, randombytes: 475 }], 348: [function(e, x, _) {
+ x.exports = {
+ modp1: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"
+ },
+ modp2: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"
+ },
+ modp5: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"
+ },
+ modp14: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"
+ },
+ modp15: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"
+ },
+ modp16: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"
+ },
+ modp17: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"
+ },
+ modp18: {
+ gen: "02",
+ prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"
+ }
+ };
+ }, {}], 349: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 350: [function(e, x, _) {
+ var u = _;
+ u.version = e("../package.json").version, u.utils = e("./elliptic/utils"), u.rand = e("brorand"), u.curve = e("./elliptic/curve"), u.curves = e("./elliptic/curves"), u.ec = e("./elliptic/ec"), u.eddsa = e("./elliptic/eddsa");
+ }, { "../package.json": 366, "./elliptic/curve": 353, "./elliptic/curves": 356, "./elliptic/ec": 357, "./elliptic/eddsa": 360, "./elliptic/utils": 364, brorand: 184 }], 351: [function(e, x, _) {
+ var u = e("bn.js"), m = e("../utils"), g = m.getNAF, b = m.getJSF, w = m.assert;
+ function f(h, l) {
+ this.type = h, this.p = new u(l.p, 16), this.red = l.prime ? u.red(l.prime) : u.mont(this.p), this.zero = new u(0).toRed(this.red), this.one = new u(1).toRed(this.red), this.two = new u(2).toRed(this.red), this.n = l.n && new u(l.n, 16), this.g = l.g && this.pointFromJSON(l.g, l.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
+ var d = this.n && this.p.div(this.n);
+ !d || d.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = !0, this.redN = this.n.toRed(this.red));
+ }
+ x.exports = f, f.prototype.point = function() {
+ throw new Error("Not implemented");
+ }, f.prototype.validate = function() {
+ throw new Error("Not implemented");
+ }, f.prototype._fixedNafMul = function(l, d) {
+ w(l.precomputed);
+ var s = l._getDoubles(), v = g(d, 1, this._bitLength), c = (1 << s.step + 1) - (s.step % 2 === 0 ? 2 : 1);
+ c /= 3;
+ for (var a = [], r = 0; r < v.length; r += s.step) {
+ for (var t = 0, d = r + s.step - 1; d >= r; d--)
+ t = (t << 1) + v[d];
+ a.push(t);
+ }
+ for (var i = this.jpoint(null, null, null), n = this.jpoint(null, null, null), o = c; o > 0; o--) {
+ for (var r = 0; r < a.length; r++) {
+ var t = a[r];
+ t === o ? n = n.mixedAdd(s.points[r]) : t === -o && (n = n.mixedAdd(s.points[r].neg()));
+ }
+ i = i.add(n);
+ }
+ return i.toP();
+ }, f.prototype._wnafMul = function(l, d) {
+ var s = 4, v = l._getNAFPoints(s);
+ s = v.wnd;
+ for (var c = v.points, a = g(d, s, this._bitLength), r = this.jpoint(null, null, null), t = a.length - 1; t >= 0; t--) {
+ for (var d = 0; t >= 0 && a[t] === 0; t--)
+ d++;
+ if (t >= 0 && d++, r = r.dblp(d), t < 0)
+ break;
+ var i = a[t];
+ w(i !== 0), l.type === "affine" ? i > 0 ? r = r.mixedAdd(c[i - 1 >> 1]) : r = r.mixedAdd(c[-i - 1 >> 1].neg()) : i > 0 ? r = r.add(c[i - 1 >> 1]) : r = r.add(c[-i - 1 >> 1].neg());
+ }
+ return l.type === "affine" ? r.toP() : r;
+ }, f.prototype._wnafMulAdd = function(l, d, s, v, c) {
+ for (var a = this._wnafT1, r = this._wnafT2, t = this._wnafT3, i = 0, n = 0; n < v; n++) {
+ var o = d[n], p = o._getNAFPoints(l);
+ a[n] = p.wnd, r[n] = p.points;
+ }
+ for (var n = v - 1; n >= 1; n -= 2) {
+ var O = n - 1, P = n;
+ if (a[O] !== 1 || a[P] !== 1) {
+ t[O] = g(s[O], a[O], this._bitLength), t[P] = g(s[P], a[P], this._bitLength), i = Math.max(t[O].length, i), i = Math.max(t[P].length, i);
+ continue;
+ }
+ var F = [
+ d[O],
+ /* 1 */
+ null,
+ /* 3 */
+ null,
+ /* 5 */
+ d[P]
+ /* 7 */
+ ];
+ d[O].y.cmp(d[P].y) === 0 ? (F[1] = d[O].add(d[P]), F[2] = d[O].toJ().mixedAdd(d[P].neg())) : d[O].y.cmp(d[P].y.redNeg()) === 0 ? (F[1] = d[O].toJ().mixedAdd(d[P]), F[2] = d[O].add(d[P].neg())) : (F[1] = d[O].toJ().mixedAdd(d[P]), F[2] = d[O].toJ().mixedAdd(d[P].neg()));
+ var z = [
+ -3,
+ /* -1 -1 */
+ -1,
+ /* -1 0 */
+ -5,
+ /* -1 1 */
+ -7,
+ /* 0 -1 */
+ 0,
+ /* 0 0 */
+ 7,
+ /* 0 1 */
+ 5,
+ /* 1 -1 */
+ 1,
+ /* 1 0 */
+ 3
+ /* 1 1 */
+ ], N = b(s[O], s[P]);
+ i = Math.max(N[0].length, i), t[O] = new Array(i), t[P] = new Array(i);
+ for (var M = 0; M < i; M++) {
+ var I = N[0][M] | 0, R = N[1][M] | 0;
+ t[O][M] = z[(I + 1) * 3 + (R + 1)], t[P][M] = 0, r[O] = F;
+ }
+ }
+ for (var C = this.jpoint(null, null, null), E = this._wnafT4, n = i; n >= 0; n--) {
+ for (var A = 0; n >= 0; ) {
+ for (var L = !0, M = 0; M < v; M++)
+ E[M] = t[M][n] | 0, E[M] !== 0 && (L = !1);
+ if (!L)
+ break;
+ A++, n--;
+ }
+ if (n >= 0 && A++, C = C.dblp(A), n < 0)
+ break;
+ for (var M = 0; M < v; M++) {
+ var $ = E[M], o;
+ $ !== 0 && ($ > 0 ? o = r[M][$ - 1 >> 1] : $ < 0 && (o = r[M][-$ - 1 >> 1].neg()), o.type === "affine" ? C = C.mixedAdd(o) : C = C.add(o));
+ }
+ }
+ for (var n = 0; n < v; n++)
+ r[n] = null;
+ return c ? C : C.toP();
+ };
+ function y(h, l) {
+ this.curve = h, this.type = l, this.precomputed = null;
+ }
+ f.BasePoint = y, y.prototype.eq = function() {
+ throw new Error("Not implemented");
+ }, y.prototype.validate = function() {
+ return this.curve.validate(this);
+ }, f.prototype.decodePoint = function(l, d) {
+ l = m.toArray(l, d);
+ var s = this.p.byteLength();
+ if ((l[0] === 4 || l[0] === 6 || l[0] === 7) && l.length - 1 === 2 * s) {
+ l[0] === 6 ? w(l[l.length - 1] % 2 === 0) : l[0] === 7 && w(l[l.length - 1] % 2 === 1);
+ var v = this.point(l.slice(1, 1 + s), l.slice(1 + s, 1 + 2 * s));
+ return v;
+ } else if ((l[0] === 2 || l[0] === 3) && l.length - 1 === s)
+ return this.pointFromX(l.slice(1, 1 + s), l[0] === 3);
+ throw new Error("Unknown point format");
+ }, y.prototype.encodeCompressed = function(l) {
+ return this.encode(l, !0);
+ }, y.prototype._encode = function(l) {
+ var d = this.curve.p.byteLength(), s = this.getX().toArray("be", d);
+ return l ? [this.getY().isEven() ? 2 : 3].concat(s) : [4].concat(s, this.getY().toArray("be", d));
+ }, y.prototype.encode = function(l, d) {
+ return m.encode(this._encode(d), l);
+ }, y.prototype.precompute = function(l) {
+ if (this.precomputed)
+ return this;
+ var d = {
+ doubles: null,
+ naf: null,
+ beta: null
+ };
+ return d.naf = this._getNAFPoints(8), d.doubles = this._getDoubles(4, l), d.beta = this._getBeta(), this.precomputed = d, this;
+ }, y.prototype._hasDoubles = function(l) {
+ if (!this.precomputed)
+ return !1;
+ var d = this.precomputed.doubles;
+ return d ? d.points.length >= Math.ceil((l.bitLength() + 1) / d.step) : !1;
+ }, y.prototype._getDoubles = function(l, d) {
+ if (this.precomputed && this.precomputed.doubles)
+ return this.precomputed.doubles;
+ for (var s = [this], v = this, c = 0; c < d; c += l) {
+ for (var a = 0; a < l; a++)
+ v = v.dbl();
+ s.push(v);
+ }
+ return {
+ step: l,
+ points: s
+ };
+ }, y.prototype._getNAFPoints = function(l) {
+ if (this.precomputed && this.precomputed.naf)
+ return this.precomputed.naf;
+ for (var d = [this], s = (1 << l) - 1, v = s === 1 ? null : this.dbl(), c = 1; c < s; c++)
+ d[c] = d[c - 1].add(v);
+ return {
+ wnd: l,
+ points: d
+ };
+ }, y.prototype._getBeta = function() {
+ return null;
+ }, y.prototype.dblp = function(l) {
+ for (var d = this, s = 0; s < l; s++)
+ d = d.dbl();
+ return d;
+ };
+ }, { "../utils": 364, "bn.js": 365 }], 352: [function(e, x, _) {
+ var u = e("../utils"), m = e("bn.js"), g = e("inherits"), b = e("./base"), w = u.assert;
+ function f(h) {
+ this.twisted = (h.a | 0) !== 1, this.mOneA = this.twisted && (h.a | 0) === -1, this.extended = this.mOneA, b.call(this, "edwards", h), this.a = new m(h.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new m(h.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new m(h.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), w(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (h.c | 0) === 1;
+ }
+ g(f, b), x.exports = f, f.prototype._mulA = function(l) {
+ return this.mOneA ? l.redNeg() : this.a.redMul(l);
+ }, f.prototype._mulC = function(l) {
+ return this.oneC ? l : this.c.redMul(l);
+ }, f.prototype.jpoint = function(l, d, s, v) {
+ return this.point(l, d, s, v);
+ }, f.prototype.pointFromX = function(l, d) {
+ l = new m(l, 16), l.red || (l = l.toRed(this.red));
+ var s = l.redSqr(), v = this.c2.redSub(this.a.redMul(s)), c = this.one.redSub(this.c2.redMul(this.d).redMul(s)), a = v.redMul(c.redInvm()), r = a.redSqrt();
+ if (r.redSqr().redSub(a).cmp(this.zero) !== 0)
+ throw new Error("invalid point");
+ var t = r.fromRed().isOdd();
+ return (d && !t || !d && t) && (r = r.redNeg()), this.point(l, r);
+ }, f.prototype.pointFromY = function(l, d) {
+ l = new m(l, 16), l.red || (l = l.toRed(this.red));
+ var s = l.redSqr(), v = s.redSub(this.c2), c = s.redMul(this.d).redMul(this.c2).redSub(this.a), a = v.redMul(c.redInvm());
+ if (a.cmp(this.zero) === 0) {
+ if (d)
+ throw new Error("invalid point");
+ return this.point(this.zero, l);
+ }
+ var r = a.redSqrt();
+ if (r.redSqr().redSub(a).cmp(this.zero) !== 0)
+ throw new Error("invalid point");
+ return r.fromRed().isOdd() !== d && (r = r.redNeg()), this.point(r, l);
+ }, f.prototype.validate = function(l) {
+ if (l.isInfinity())
+ return !0;
+ l.normalize();
+ var d = l.x.redSqr(), s = l.y.redSqr(), v = d.redMul(this.a).redAdd(s), c = this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(s)));
+ return v.cmp(c) === 0;
+ };
+ function y(h, l, d, s, v) {
+ b.BasePoint.call(this, h, "projective"), l === null && d === null && s === null ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new m(l, 16), this.y = new m(d, 16), this.z = s ? new m(s, 16) : this.curve.one, this.t = v && new m(v, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm()))));
+ }
+ g(y, b.BasePoint), f.prototype.pointFromJSON = function(l) {
+ return y.fromJSON(this, l);
+ }, f.prototype.point = function(l, d, s, v) {
+ return new y(this, l, d, s, v);
+ }, y.fromJSON = function(l, d) {
+ return new y(l, d[0], d[1], d[2]);
+ }, y.prototype.inspect = function() {
+ return this.isInfinity() ? "" : "";
+ }, y.prototype.isInfinity = function() {
+ return this.x.cmpn(0) === 0 && (this.y.cmp(this.z) === 0 || this.zOne && this.y.cmp(this.curve.c) === 0);
+ }, y.prototype._extDbl = function() {
+ var l = this.x.redSqr(), d = this.y.redSqr(), s = this.z.redSqr();
+ s = s.redIAdd(s);
+ var v = this.curve._mulA(l), c = this.x.redAdd(this.y).redSqr().redISub(l).redISub(d), a = v.redAdd(d), r = a.redSub(s), t = v.redSub(d), i = c.redMul(r), n = a.redMul(t), o = c.redMul(t), p = r.redMul(a);
+ return this.curve.point(i, n, p, o);
+ }, y.prototype._projDbl = function() {
+ var l = this.x.redAdd(this.y).redSqr(), d = this.x.redSqr(), s = this.y.redSqr(), v, c, a;
+ if (this.curve.twisted) {
+ var r = this.curve._mulA(d), t = r.redAdd(s);
+ if (this.zOne)
+ v = l.redSub(d).redSub(s).redMul(t.redSub(this.curve.two)), c = t.redMul(r.redSub(s)), a = t.redSqr().redSub(t).redSub(t);
+ else {
+ var i = this.z.redSqr(), n = t.redSub(i).redISub(i);
+ v = l.redSub(d).redISub(s).redMul(n), c = t.redMul(r.redSub(s)), a = t.redMul(n);
+ }
+ } else {
+ var r = d.redAdd(s), i = this.curve._mulC(this.z).redSqr(), n = r.redSub(i).redSub(i);
+ v = this.curve._mulC(l.redISub(r)).redMul(n), c = this.curve._mulC(r).redMul(d.redISub(s)), a = r.redMul(n);
+ }
+ return this.curve.point(v, c, a);
+ }, y.prototype.dbl = function() {
+ return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl();
+ }, y.prototype._extAdd = function(l) {
+ var d = this.y.redSub(this.x).redMul(l.y.redSub(l.x)), s = this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)), v = this.t.redMul(this.curve.dd).redMul(l.t), c = this.z.redMul(l.z.redAdd(l.z)), a = s.redSub(d), r = c.redSub(v), t = c.redAdd(v), i = s.redAdd(d), n = a.redMul(r), o = t.redMul(i), p = a.redMul(i), O = r.redMul(t);
+ return this.curve.point(n, o, O, p);
+ }, y.prototype._projAdd = function(l) {
+ var d = this.z.redMul(l.z), s = d.redSqr(), v = this.x.redMul(l.x), c = this.y.redMul(l.y), a = this.curve.d.redMul(v).redMul(c), r = s.redSub(a), t = s.redAdd(a), i = this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(v).redISub(c), n = d.redMul(r).redMul(i), o, p;
+ return this.curve.twisted ? (o = d.redMul(t).redMul(c.redSub(this.curve._mulA(v))), p = r.redMul(t)) : (o = d.redMul(t).redMul(c.redSub(v)), p = this.curve._mulC(r).redMul(t)), this.curve.point(n, o, p);
+ }, y.prototype.add = function(l) {
+ return this.isInfinity() ? l : l.isInfinity() ? this : this.curve.extended ? this._extAdd(l) : this._projAdd(l);
+ }, y.prototype.mul = function(l) {
+ return this._hasDoubles(l) ? this.curve._fixedNafMul(this, l) : this.curve._wnafMul(this, l);
+ }, y.prototype.mulAdd = function(l, d, s) {
+ return this.curve._wnafMulAdd(1, [this, d], [l, s], 2, !1);
+ }, y.prototype.jmulAdd = function(l, d, s) {
+ return this.curve._wnafMulAdd(1, [this, d], [l, s], 2, !0);
+ }, y.prototype.normalize = function() {
+ if (this.zOne)
+ return this;
+ var l = this.z.redInvm();
+ return this.x = this.x.redMul(l), this.y = this.y.redMul(l), this.t && (this.t = this.t.redMul(l)), this.z = this.curve.one, this.zOne = !0, this;
+ }, y.prototype.neg = function() {
+ return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg());
+ }, y.prototype.getX = function() {
+ return this.normalize(), this.x.fromRed();
+ }, y.prototype.getY = function() {
+ return this.normalize(), this.y.fromRed();
+ }, y.prototype.eq = function(l) {
+ return this === l || this.getX().cmp(l.getX()) === 0 && this.getY().cmp(l.getY()) === 0;
+ }, y.prototype.eqXToP = function(l) {
+ var d = l.toRed(this.curve.red).redMul(this.z);
+ if (this.x.cmp(d) === 0)
+ return !0;
+ for (var s = l.clone(), v = this.curve.redN.redMul(this.z); ; ) {
+ if (s.iadd(this.curve.n), s.cmp(this.curve.p) >= 0)
+ return !1;
+ if (d.redIAdd(v), this.x.cmp(d) === 0)
+ return !0;
+ }
+ }, y.prototype.toP = y.prototype.normalize, y.prototype.mixedAdd = y.prototype.add;
+ }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 353: [function(e, x, _) {
+ var u = _;
+ u.base = e("./base"), u.short = e("./short"), u.mont = e("./mont"), u.edwards = e("./edwards");
+ }, { "./base": 351, "./edwards": 352, "./mont": 354, "./short": 355 }], 354: [function(e, x, _) {
+ var u = e("bn.js"), m = e("inherits"), g = e("./base"), b = e("../utils");
+ function w(y) {
+ g.call(this, "mont", y), this.a = new u(y.a, 16).toRed(this.red), this.b = new u(y.b, 16).toRed(this.red), this.i4 = new u(4).toRed(this.red).redInvm(), this.two = new u(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
+ }
+ m(w, g), x.exports = w, w.prototype.validate = function(h) {
+ var l = h.normalize().x, d = l.redSqr(), s = d.redMul(l).redAdd(d.redMul(this.a)).redAdd(l), v = s.redSqrt();
+ return v.redSqr().cmp(s) === 0;
+ };
+ function f(y, h, l) {
+ g.BasePoint.call(this, y, "projective"), h === null && l === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new u(h, 16), this.z = new u(l, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
+ }
+ m(f, g.BasePoint), w.prototype.decodePoint = function(h, l) {
+ return this.point(b.toArray(h, l), 1);
+ }, w.prototype.point = function(h, l) {
+ return new f(this, h, l);
+ }, w.prototype.pointFromJSON = function(h) {
+ return f.fromJSON(this, h);
+ }, f.prototype.precompute = function() {
+ }, f.prototype._encode = function() {
+ return this.getX().toArray("be", this.curve.p.byteLength());
+ }, f.fromJSON = function(h, l) {
+ return new f(h, l[0], l[1] || h.one);
+ }, f.prototype.inspect = function() {
+ return this.isInfinity() ? "" : "";
+ }, f.prototype.isInfinity = function() {
+ return this.z.cmpn(0) === 0;
+ }, f.prototype.dbl = function() {
+ var h = this.x.redAdd(this.z), l = h.redSqr(), d = this.x.redSub(this.z), s = d.redSqr(), v = l.redSub(s), c = l.redMul(s), a = v.redMul(s.redAdd(this.curve.a24.redMul(v)));
+ return this.curve.point(c, a);
+ }, f.prototype.add = function() {
+ throw new Error("Not supported on Montgomery curve");
+ }, f.prototype.diffAdd = function(h, l) {
+ var d = this.x.redAdd(this.z), s = this.x.redSub(this.z), v = h.x.redAdd(h.z), c = h.x.redSub(h.z), a = c.redMul(d), r = v.redMul(s), t = l.z.redMul(a.redAdd(r).redSqr()), i = l.x.redMul(a.redISub(r).redSqr());
+ return this.curve.point(t, i);
+ }, f.prototype.mul = function(h) {
+ for (var l = h.clone(), d = this, s = this.curve.point(null, null), v = this, c = []; l.cmpn(0) !== 0; l.iushrn(1))
+ c.push(l.andln(1));
+ for (var a = c.length - 1; a >= 0; a--)
+ c[a] === 0 ? (d = d.diffAdd(s, v), s = s.dbl()) : (s = d.diffAdd(s, v), d = d.dbl());
+ return s;
+ }, f.prototype.mulAdd = function() {
+ throw new Error("Not supported on Montgomery curve");
+ }, f.prototype.jumlAdd = function() {
+ throw new Error("Not supported on Montgomery curve");
+ }, f.prototype.eq = function(h) {
+ return this.getX().cmp(h.getX()) === 0;
+ }, f.prototype.normalize = function() {
+ return this.x = this.x.redMul(this.z.redInvm()), this.z = this.curve.one, this;
+ }, f.prototype.getX = function() {
+ return this.normalize(), this.x.fromRed();
+ };
+ }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 355: [function(e, x, _) {
+ var u = e("../utils"), m = e("bn.js"), g = e("inherits"), b = e("./base"), w = u.assert;
+ function f(l) {
+ b.call(this, "short", l), this.a = new m(l.a, 16).toRed(this.red), this.b = new m(l.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(l), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
+ }
+ g(f, b), x.exports = f, f.prototype._getEndomorphism = function(d) {
+ if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) {
+ var s, v;
+ if (d.beta)
+ s = new m(d.beta, 16).toRed(this.red);
+ else {
+ var c = this._getEndoRoots(this.p);
+ s = c[0].cmp(c[1]) < 0 ? c[0] : c[1], s = s.toRed(this.red);
+ }
+ if (d.lambda)
+ v = new m(d.lambda, 16);
+ else {
+ var a = this._getEndoRoots(this.n);
+ this.g.mul(a[0]).x.cmp(this.g.x.redMul(s)) === 0 ? v = a[0] : (v = a[1], w(this.g.mul(v).x.cmp(this.g.x.redMul(s)) === 0));
+ }
+ var r;
+ return d.basis ? r = d.basis.map(function(t) {
+ return {
+ a: new m(t.a, 16),
+ b: new m(t.b, 16)
+ };
+ }) : r = this._getEndoBasis(v), {
+ beta: s,
+ lambda: v,
+ basis: r
+ };
+ }
+ }, f.prototype._getEndoRoots = function(d) {
+ var s = d === this.p ? this.red : m.mont(d), v = new m(2).toRed(s).redInvm(), c = v.redNeg(), a = new m(3).toRed(s).redNeg().redSqrt().redMul(v), r = c.redAdd(a).fromRed(), t = c.redSub(a).fromRed();
+ return [r, t];
+ }, f.prototype._getEndoBasis = function(d) {
+ for (var s = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), v = d, c = this.n.clone(), a = new m(1), r = new m(0), t = new m(0), i = new m(1), n, o, p, O, P, F, z, N = 0, M, I; v.cmpn(0) !== 0; ) {
+ var R = c.div(v);
+ M = c.sub(R.mul(v)), I = t.sub(R.mul(a));
+ var C = i.sub(R.mul(r));
+ if (!p && M.cmp(s) < 0)
+ n = z.neg(), o = a, p = M.neg(), O = I;
+ else if (p && ++N === 2)
+ break;
+ z = M, c = v, v = M, t = a, a = I, i = r, r = C;
+ }
+ P = M.neg(), F = I;
+ var E = p.sqr().add(O.sqr()), A = P.sqr().add(F.sqr());
+ return A.cmp(E) >= 0 && (P = n, F = o), p.negative && (p = p.neg(), O = O.neg()), P.negative && (P = P.neg(), F = F.neg()), [{
+ a: p,
+ b: O
+ }, {
+ a: P,
+ b: F
+ }];
+ }, f.prototype._endoSplit = function(d) {
+ var s = this.endo.basis, v = s[0], c = s[1], a = c.b.mul(d).divRound(this.n), r = v.b.neg().mul(d).divRound(this.n), t = a.mul(v.a), i = r.mul(c.a), n = a.mul(v.b), o = r.mul(c.b), p = d.sub(t).sub(i), O = n.add(o).neg();
+ return {
+ k1: p,
+ k2: O
+ };
+ }, f.prototype.pointFromX = function(d, s) {
+ d = new m(d, 16), d.red || (d = d.toRed(this.red));
+ var v = d.redSqr().redMul(d).redIAdd(d.redMul(this.a)).redIAdd(this.b), c = v.redSqrt();
+ if (c.redSqr().redSub(v).cmp(this.zero) !== 0)
+ throw new Error("invalid point");
+ var a = c.fromRed().isOdd();
+ return (s && !a || !s && a) && (c = c.redNeg()), this.point(d, c);
+ }, f.prototype.validate = function(d) {
+ if (d.inf)
+ return !0;
+ var s = d.x, v = d.y, c = this.a.redMul(s), a = s.redSqr().redMul(s).redIAdd(c).redIAdd(this.b);
+ return v.redSqr().redISub(a).cmpn(0) === 0;
+ }, f.prototype._endoWnafMulAdd = function(d, s, v) {
+ for (var c = this._endoWnafT1, a = this._endoWnafT2, r = 0; r < d.length; r++) {
+ var t = this._endoSplit(s[r]), i = d[r], n = i._getBeta();
+ t.k1.negative && (t.k1.ineg(), i = i.neg(!0)), t.k2.negative && (t.k2.ineg(), n = n.neg(!0)), c[r * 2] = i, c[r * 2 + 1] = n, a[r * 2] = t.k1, a[r * 2 + 1] = t.k2;
+ }
+ for (var o = this._wnafMulAdd(1, c, a, r * 2, v), p = 0; p < r * 2; p++)
+ c[p] = null, a[p] = null;
+ return o;
+ };
+ function y(l, d, s, v) {
+ b.BasePoint.call(this, l, "affine"), d === null && s === null ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new m(d, 16), this.y = new m(s, 16), v && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = !1);
+ }
+ g(y, b.BasePoint), f.prototype.point = function(d, s, v) {
+ return new y(this, d, s, v);
+ }, f.prototype.pointFromJSON = function(d, s) {
+ return y.fromJSON(this, d, s);
+ }, y.prototype._getBeta = function() {
+ if (this.curve.endo) {
+ var d = this.precomputed;
+ if (d && d.beta)
+ return d.beta;
+ var s = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
+ if (d) {
+ var v = this.curve, c = function(r) {
+ return v.point(r.x.redMul(v.endo.beta), r.y);
+ };
+ d.beta = s, s.precomputed = {
+ beta: null,
+ naf: d.naf && {
+ wnd: d.naf.wnd,
+ points: d.naf.points.map(c)
+ },
+ doubles: d.doubles && {
+ step: d.doubles.step,
+ points: d.doubles.points.map(c)
+ }
+ };
+ }
+ return s;
+ }
+ }, y.prototype.toJSON = function() {
+ return this.precomputed ? [this.x, this.y, this.precomputed && {
+ doubles: this.precomputed.doubles && {
+ step: this.precomputed.doubles.step,
+ points: this.precomputed.doubles.points.slice(1)
+ },
+ naf: this.precomputed.naf && {
+ wnd: this.precomputed.naf.wnd,
+ points: this.precomputed.naf.points.slice(1)
+ }
+ }] : [this.x, this.y];
+ }, y.fromJSON = function(d, s, v) {
+ typeof s == "string" && (s = JSON.parse(s));
+ var c = d.point(s[0], s[1], v);
+ if (!s[2])
+ return c;
+ function a(t) {
+ return d.point(t[0], t[1], v);
+ }
+ var r = s[2];
+ return c.precomputed = {
+ beta: null,
+ doubles: r.doubles && {
+ step: r.doubles.step,
+ points: [c].concat(r.doubles.points.map(a))
+ },
+ naf: r.naf && {
+ wnd: r.naf.wnd,
+ points: [c].concat(r.naf.points.map(a))
+ }
+ }, c;
+ }, y.prototype.inspect = function() {
+ return this.isInfinity() ? "" : "";
+ }, y.prototype.isInfinity = function() {
+ return this.inf;
+ }, y.prototype.add = function(d) {
+ if (this.inf)
+ return d;
+ if (d.inf)
+ return this;
+ if (this.eq(d))
+ return this.dbl();
+ if (this.neg().eq(d))
+ return this.curve.point(null, null);
+ if (this.x.cmp(d.x) === 0)
+ return this.curve.point(null, null);
+ var s = this.y.redSub(d.y);
+ s.cmpn(0) !== 0 && (s = s.redMul(this.x.redSub(d.x).redInvm()));
+ var v = s.redSqr().redISub(this.x).redISub(d.x), c = s.redMul(this.x.redSub(v)).redISub(this.y);
+ return this.curve.point(v, c);
+ }, y.prototype.dbl = function() {
+ if (this.inf)
+ return this;
+ var d = this.y.redAdd(this.y);
+ if (d.cmpn(0) === 0)
+ return this.curve.point(null, null);
+ var s = this.curve.a, v = this.x.redSqr(), c = d.redInvm(), a = v.redAdd(v).redIAdd(v).redIAdd(s).redMul(c), r = a.redSqr().redISub(this.x.redAdd(this.x)), t = a.redMul(this.x.redSub(r)).redISub(this.y);
+ return this.curve.point(r, t);
+ }, y.prototype.getX = function() {
+ return this.x.fromRed();
+ }, y.prototype.getY = function() {
+ return this.y.fromRed();
+ }, y.prototype.mul = function(d) {
+ return d = new m(d, 16), this.isInfinity() ? this : this._hasDoubles(d) ? this.curve._fixedNafMul(this, d) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [d]) : this.curve._wnafMul(this, d);
+ }, y.prototype.mulAdd = function(d, s, v) {
+ var c = [this, s], a = [d, v];
+ return this.curve.endo ? this.curve._endoWnafMulAdd(c, a) : this.curve._wnafMulAdd(1, c, a, 2);
+ }, y.prototype.jmulAdd = function(d, s, v) {
+ var c = [this, s], a = [d, v];
+ return this.curve.endo ? this.curve._endoWnafMulAdd(c, a, !0) : this.curve._wnafMulAdd(1, c, a, 2, !0);
+ }, y.prototype.eq = function(d) {
+ return this === d || this.inf === d.inf && (this.inf || this.x.cmp(d.x) === 0 && this.y.cmp(d.y) === 0);
+ }, y.prototype.neg = function(d) {
+ if (this.inf)
+ return this;
+ var s = this.curve.point(this.x, this.y.redNeg());
+ if (d && this.precomputed) {
+ var v = this.precomputed, c = function(r) {
+ return r.neg();
+ };
+ s.precomputed = {
+ naf: v.naf && {
+ wnd: v.naf.wnd,
+ points: v.naf.points.map(c)
+ },
+ doubles: v.doubles && {
+ step: v.doubles.step,
+ points: v.doubles.points.map(c)
+ }
+ };
+ }
+ return s;
+ }, y.prototype.toJ = function() {
+ if (this.inf)
+ return this.curve.jpoint(null, null, null);
+ var d = this.curve.jpoint(this.x, this.y, this.curve.one);
+ return d;
+ };
+ function h(l, d, s, v) {
+ b.BasePoint.call(this, l, "jacobian"), d === null && s === null && v === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new m(0)) : (this.x = new m(d, 16), this.y = new m(s, 16), this.z = new m(v, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one;
+ }
+ g(h, b.BasePoint), f.prototype.jpoint = function(d, s, v) {
+ return new h(this, d, s, v);
+ }, h.prototype.toP = function() {
+ if (this.isInfinity())
+ return this.curve.point(null, null);
+ var d = this.z.redInvm(), s = d.redSqr(), v = this.x.redMul(s), c = this.y.redMul(s).redMul(d);
+ return this.curve.point(v, c);
+ }, h.prototype.neg = function() {
+ return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
+ }, h.prototype.add = function(d) {
+ if (this.isInfinity())
+ return d;
+ if (d.isInfinity())
+ return this;
+ var s = d.z.redSqr(), v = this.z.redSqr(), c = this.x.redMul(s), a = d.x.redMul(v), r = this.y.redMul(s.redMul(d.z)), t = d.y.redMul(v.redMul(this.z)), i = c.redSub(a), n = r.redSub(t);
+ if (i.cmpn(0) === 0)
+ return n.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl();
+ var o = i.redSqr(), p = o.redMul(i), O = c.redMul(o), P = n.redSqr().redIAdd(p).redISub(O).redISub(O), F = n.redMul(O.redISub(P)).redISub(r.redMul(p)), z = this.z.redMul(d.z).redMul(i);
+ return this.curve.jpoint(P, F, z);
+ }, h.prototype.mixedAdd = function(d) {
+ if (this.isInfinity())
+ return d.toJ();
+ if (d.isInfinity())
+ return this;
+ var s = this.z.redSqr(), v = this.x, c = d.x.redMul(s), a = this.y, r = d.y.redMul(s).redMul(this.z), t = v.redSub(c), i = a.redSub(r);
+ if (t.cmpn(0) === 0)
+ return i.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl();
+ var n = t.redSqr(), o = n.redMul(t), p = v.redMul(n), O = i.redSqr().redIAdd(o).redISub(p).redISub(p), P = i.redMul(p.redISub(O)).redISub(a.redMul(o)), F = this.z.redMul(t);
+ return this.curve.jpoint(O, P, F);
+ }, h.prototype.dblp = function(d) {
+ if (d === 0)
+ return this;
+ if (this.isInfinity())
+ return this;
+ if (!d)
+ return this.dbl();
+ if (this.curve.zeroA || this.curve.threeA) {
+ for (var s = this, v = 0; v < d; v++)
+ s = s.dbl();
+ return s;
+ }
+ for (var c = this.curve.a, a = this.curve.tinv, r = this.x, t = this.y, i = this.z, n = i.redSqr().redSqr(), o = t.redAdd(t), v = 0; v < d; v++) {
+ var p = r.redSqr(), O = o.redSqr(), P = O.redSqr(), F = p.redAdd(p).redIAdd(p).redIAdd(c.redMul(n)), z = r.redMul(O), N = F.redSqr().redISub(z.redAdd(z)), M = z.redISub(N), I = F.redMul(M);
+ I = I.redIAdd(I).redISub(P);
+ var R = o.redMul(i);
+ v + 1 < d && (n = n.redMul(P)), r = N, i = R, o = I;
+ }
+ return this.curve.jpoint(r, o.redMul(a), i);
+ }, h.prototype.dbl = function() {
+ return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl();
+ }, h.prototype._zeroDbl = function() {
+ var d, s, v;
+ if (this.zOne) {
+ var c = this.x.redSqr(), a = this.y.redSqr(), r = a.redSqr(), t = this.x.redAdd(a).redSqr().redISub(c).redISub(r);
+ t = t.redIAdd(t);
+ var i = c.redAdd(c).redIAdd(c), n = i.redSqr().redISub(t).redISub(t), o = r.redIAdd(r);
+ o = o.redIAdd(o), o = o.redIAdd(o), d = n, s = i.redMul(t.redISub(n)).redISub(o), v = this.y.redAdd(this.y);
+ } else {
+ var p = this.x.redSqr(), O = this.y.redSqr(), P = O.redSqr(), F = this.x.redAdd(O).redSqr().redISub(p).redISub(P);
+ F = F.redIAdd(F);
+ var z = p.redAdd(p).redIAdd(p), N = z.redSqr(), M = P.redIAdd(P);
+ M = M.redIAdd(M), M = M.redIAdd(M), d = N.redISub(F).redISub(F), s = z.redMul(F.redISub(d)).redISub(M), v = this.y.redMul(this.z), v = v.redIAdd(v);
+ }
+ return this.curve.jpoint(d, s, v);
+ }, h.prototype._threeDbl = function() {
+ var d, s, v;
+ if (this.zOne) {
+ var c = this.x.redSqr(), a = this.y.redSqr(), r = a.redSqr(), t = this.x.redAdd(a).redSqr().redISub(c).redISub(r);
+ t = t.redIAdd(t);
+ var i = c.redAdd(c).redIAdd(c).redIAdd(this.curve.a), n = i.redSqr().redISub(t).redISub(t);
+ d = n;
+ var o = r.redIAdd(r);
+ o = o.redIAdd(o), o = o.redIAdd(o), s = i.redMul(t.redISub(n)).redISub(o), v = this.y.redAdd(this.y);
+ } else {
+ var p = this.z.redSqr(), O = this.y.redSqr(), P = this.x.redMul(O), F = this.x.redSub(p).redMul(this.x.redAdd(p));
+ F = F.redAdd(F).redIAdd(F);
+ var z = P.redIAdd(P);
+ z = z.redIAdd(z);
+ var N = z.redAdd(z);
+ d = F.redSqr().redISub(N), v = this.y.redAdd(this.z).redSqr().redISub(O).redISub(p);
+ var M = O.redSqr();
+ M = M.redIAdd(M), M = M.redIAdd(M), M = M.redIAdd(M), s = F.redMul(z.redISub(d)).redISub(M);
+ }
+ return this.curve.jpoint(d, s, v);
+ }, h.prototype._dbl = function() {
+ var d = this.curve.a, s = this.x, v = this.y, c = this.z, a = c.redSqr().redSqr(), r = s.redSqr(), t = v.redSqr(), i = r.redAdd(r).redIAdd(r).redIAdd(d.redMul(a)), n = s.redAdd(s);
+ n = n.redIAdd(n);
+ var o = n.redMul(t), p = i.redSqr().redISub(o.redAdd(o)), O = o.redISub(p), P = t.redSqr();
+ P = P.redIAdd(P), P = P.redIAdd(P), P = P.redIAdd(P);
+ var F = i.redMul(O).redISub(P), z = v.redAdd(v).redMul(c);
+ return this.curve.jpoint(p, F, z);
+ }, h.prototype.trpl = function() {
+ if (!this.curve.zeroA)
+ return this.dbl().add(this);
+ var d = this.x.redSqr(), s = this.y.redSqr(), v = this.z.redSqr(), c = s.redSqr(), a = d.redAdd(d).redIAdd(d), r = a.redSqr(), t = this.x.redAdd(s).redSqr().redISub(d).redISub(c);
+ t = t.redIAdd(t), t = t.redAdd(t).redIAdd(t), t = t.redISub(r);
+ var i = t.redSqr(), n = c.redIAdd(c);
+ n = n.redIAdd(n), n = n.redIAdd(n), n = n.redIAdd(n);
+ var o = a.redIAdd(t).redSqr().redISub(r).redISub(i).redISub(n), p = s.redMul(o);
+ p = p.redIAdd(p), p = p.redIAdd(p);
+ var O = this.x.redMul(i).redISub(p);
+ O = O.redIAdd(O), O = O.redIAdd(O);
+ var P = this.y.redMul(o.redMul(n.redISub(o)).redISub(t.redMul(i)));
+ P = P.redIAdd(P), P = P.redIAdd(P), P = P.redIAdd(P);
+ var F = this.z.redAdd(t).redSqr().redISub(v).redISub(i);
+ return this.curve.jpoint(O, P, F);
+ }, h.prototype.mul = function(d, s) {
+ return d = new m(d, s), this.curve._wnafMul(this, d);
+ }, h.prototype.eq = function(d) {
+ if (d.type === "affine")
+ return this.eq(d.toJ());
+ if (this === d)
+ return !0;
+ var s = this.z.redSqr(), v = d.z.redSqr();
+ if (this.x.redMul(v).redISub(d.x.redMul(s)).cmpn(0) !== 0)
+ return !1;
+ var c = s.redMul(this.z), a = v.redMul(d.z);
+ return this.y.redMul(a).redISub(d.y.redMul(c)).cmpn(0) === 0;
+ }, h.prototype.eqXToP = function(d) {
+ var s = this.z.redSqr(), v = d.toRed(this.curve.red).redMul(s);
+ if (this.x.cmp(v) === 0)
+ return !0;
+ for (var c = d.clone(), a = this.curve.redN.redMul(s); ; ) {
+ if (c.iadd(this.curve.n), c.cmp(this.curve.p) >= 0)
+ return !1;
+ if (v.redIAdd(a), this.x.cmp(v) === 0)
+ return !0;
+ }
+ }, h.prototype.inspect = function() {
+ return this.isInfinity() ? "" : "";
+ }, h.prototype.isInfinity = function() {
+ return this.z.cmpn(0) === 0;
+ };
+ }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 356: [function(e, x, _) {
+ var u = _, m = e("hash.js"), g = e("./curve"), b = e("./utils"), w = b.assert;
+ function f(l) {
+ l.type === "short" ? this.curve = new g.short(l) : l.type === "edwards" ? this.curve = new g.edwards(l) : this.curve = new g.mont(l), this.g = this.curve.g, this.n = this.curve.n, this.hash = l.hash, w(this.g.validate(), "Invalid curve"), w(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
+ }
+ u.PresetCurve = f;
+ function y(l, d) {
+ Object.defineProperty(u, l, {
+ configurable: !0,
+ enumerable: !0,
+ get: function() {
+ var v = new f(d);
+ return Object.defineProperty(u, l, {
+ configurable: !0,
+ enumerable: !0,
+ value: v
+ }), v;
+ }
+ });
+ }
+ y("p192", {
+ type: "short",
+ prime: "p192",
+ p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",
+ a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",
+ b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",
+ n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",
+ hash: m.sha256,
+ gRed: !1,
+ g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]
+ }), y("p224", {
+ type: "short",
+ prime: "p224",
+ p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",
+ a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",
+ b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",
+ n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",
+ hash: m.sha256,
+ gRed: !1,
+ g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]
+ }), y("p256", {
+ type: "short",
+ prime: null,
+ p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",
+ a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",
+ b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",
+ n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",
+ hash: m.sha256,
+ gRed: !1,
+ g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]
+ }), y("p384", {
+ type: "short",
+ prime: null,
+ p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",
+ a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",
+ b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",
+ n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",
+ hash: m.sha384,
+ gRed: !1,
+ g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]
+ }), y("p521", {
+ type: "short",
+ prime: null,
+ p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",
+ a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",
+ b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",
+ n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",
+ hash: m.sha512,
+ gRed: !1,
+ g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]
+ }), y("curve25519", {
+ type: "mont",
+ prime: "p25519",
+ p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",
+ a: "76d06",
+ b: "1",
+ n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
+ hash: m.sha256,
+ gRed: !1,
+ g: ["9"]
+ }), y("ed25519", {
+ type: "edwards",
+ prime: "p25519",
+ p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",
+ a: "-1",
+ c: "1",
+ // -121665 * (121666^(-1)) (mod P)
+ d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",
+ n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
+ hash: m.sha256,
+ gRed: !1,
+ g: [
+ "216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a",
+ // 4/5
+ "6666666666666666666666666666666666666666666666666666666666666658"
+ ]
+ });
+ var h;
+ try {
+ h = e("./precomputed/secp256k1");
+ } catch (l) {
+ h = void 0;
+ }
+ y("secp256k1", {
+ type: "short",
+ prime: "k256",
+ p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",
+ a: "0",
+ b: "7",
+ n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",
+ h: "1",
+ hash: m.sha256,
+ // Precomputed endomorphism
+ beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",
+ lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",
+ basis: [{
+ a: "3086d221a7d46bcde86c90e49284eb15",
+ b: "-e4437ed6010e88286f547fa90abfe4c3"
+ }, {
+ a: "114ca50f7a8e2f3f657c1108d9d44cfd8",
+ b: "3086d221a7d46bcde86c90e49284eb15"
+ }],
+ gRed: !1,
+ g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", h]
+ });
+ }, { "./curve": 353, "./precomputed/secp256k1": 363, "./utils": 364, "hash.js": 372 }], 357: [function(e, x, _) {
+ function u(s) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(c) {
+ return typeof c;
+ } : u = function(c) {
+ return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
+ }, u(s);
+ }
+ var m = e("bn.js"), g = e("hmac-drbg"), b = e("../utils"), w = e("../curves"), f = e("brorand"), y = b.assert, h = e("./key"), l = e("./signature");
+ function d(s) {
+ if (!(this instanceof d))
+ return new d(s);
+ typeof s == "string" && (y(w.hasOwnProperty(s), "Unknown curve " + s), s = w[s]), s instanceof w.PresetCurve && (s = {
+ curve: s
+ }), this.curve = s.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = s.curve.g, this.g.precompute(s.curve.n.bitLength() + 1), this.hash = s.hash || s.curve.hash;
+ }
+ x.exports = d, d.prototype.keyPair = function(v) {
+ return new h(this, v);
+ }, d.prototype.keyFromPrivate = function(v, c) {
+ return h.fromPrivate(this, v, c);
+ }, d.prototype.keyFromPublic = function(v, c) {
+ return h.fromPublic(this, v, c);
+ }, d.prototype.genKeyPair = function(v) {
+ v || (v = {});
+ var c = new g({
+ hash: this.hash,
+ pers: v.pers,
+ persEnc: v.persEnc || "utf8",
+ entropy: v.entropy || f(this.hash.hmacStrength),
+ entropyEnc: v.entropy && v.entropyEnc || "utf8",
+ nonce: this.n.toArray()
+ }), a = this.n.byteLength(), r = this.n.sub(new m(2));
+ do {
+ var t = new m(c.generate(a));
+ if (!(t.cmp(r) > 0))
+ return t.iaddn(1), this.keyFromPrivate(t);
+ } while (!0);
+ }, d.prototype._truncateToN = function(v, c) {
+ var a = v.byteLength() * 8 - this.n.bitLength();
+ return a > 0 && (v = v.ushrn(a)), !c && v.cmp(this.n) >= 0 ? v.sub(this.n) : v;
+ }, d.prototype.sign = function(v, c, a, r) {
+ u(a) === "object" && (r = a, a = null), r || (r = {}), c = this.keyFromPrivate(c, a), v = this._truncateToN(new m(v, 16));
+ for (var t = this.n.byteLength(), i = c.getPrivate().toArray("be", t), n = v.toArray("be", t), o = new g({
+ hash: this.hash,
+ entropy: i,
+ nonce: n,
+ pers: r.pers,
+ persEnc: r.persEnc || "utf8"
+ }), p = this.n.sub(new m(1)), O = 0; ; O++) {
+ var P = r.k ? r.k(O) : new m(o.generate(this.n.byteLength()));
+ if (P = this._truncateToN(P, !0), !(P.cmpn(1) <= 0 || P.cmp(p) >= 0)) {
+ var F = this.g.mul(P);
+ if (!F.isInfinity()) {
+ var z = F.getX(), N = z.umod(this.n);
+ if (N.cmpn(0) !== 0) {
+ var M = P.invm(this.n).mul(N.mul(c.getPrivate()).iadd(v));
+ if (M = M.umod(this.n), M.cmpn(0) !== 0) {
+ var I = (F.getY().isOdd() ? 1 : 0) | (z.cmp(N) !== 0 ? 2 : 0);
+ return r.canonical && M.cmp(this.nh) > 0 && (M = this.n.sub(M), I ^= 1), new l({
+ r: N,
+ s: M,
+ recoveryParam: I
+ });
+ }
+ }
+ }
+ }
+ }
+ }, d.prototype.verify = function(v, c, a, r) {
+ v = this._truncateToN(new m(v, 16)), a = this.keyFromPublic(a, r), c = new l(c, "hex");
+ var t = c.r, i = c.s;
+ if (t.cmpn(1) < 0 || t.cmp(this.n) >= 0 || i.cmpn(1) < 0 || i.cmp(this.n) >= 0)
+ return !1;
+ var n = i.invm(this.n), o = n.mul(v).umod(this.n), p = n.mul(t).umod(this.n);
+ if (!this.curve._maxwellTrick) {
+ var O = this.g.mulAdd(o, a.getPublic(), p);
+ return O.isInfinity() ? !1 : O.getX().umod(this.n).cmp(t) === 0;
+ }
+ var O = this.g.jmulAdd(o, a.getPublic(), p);
+ return O.isInfinity() ? !1 : O.eqXToP(t);
+ }, d.prototype.recoverPubKey = function(s, v, c, a) {
+ y((3 & c) === c, "The recovery param is more than two bits"), v = new l(v, a);
+ var r = this.n, t = new m(s), i = v.r, n = v.s, o = c & 1, p = c >> 1;
+ if (i.cmp(this.curve.p.umod(this.curve.n)) >= 0 && p)
+ throw new Error("Unable to find sencond key candinate");
+ p ? i = this.curve.pointFromX(i.add(this.curve.n), o) : i = this.curve.pointFromX(i, o);
+ var O = v.r.invm(r), P = r.sub(t).mul(O).umod(r), F = n.mul(O).umod(r);
+ return this.g.mulAdd(P, i, F);
+ }, d.prototype.getKeyRecoveryParam = function(s, v, c, a) {
+ if (v = new l(v, a), v.recoveryParam !== null)
+ return v.recoveryParam;
+ for (var r = 0; r < 4; r++) {
+ var t;
+ try {
+ t = this.recoverPubKey(s, v, r);
+ } catch (i) {
+ continue;
+ }
+ if (t.eq(c))
+ return r;
+ }
+ throw new Error("Unable to find valid recovery factor");
+ };
+ }, { "../curves": 356, "../utils": 364, "./key": 358, "./signature": 359, "bn.js": 365, brorand: 184, "hmac-drbg": 384 }], 358: [function(e, x, _) {
+ var u = e("bn.js"), m = e("../utils"), g = m.assert;
+ function b(w, f) {
+ this.ec = w, this.priv = null, this.pub = null, f.priv && this._importPrivate(f.priv, f.privEnc), f.pub && this._importPublic(f.pub, f.pubEnc);
+ }
+ x.exports = b, b.fromPublic = function(f, y, h) {
+ return y instanceof b ? y : new b(f, {
+ pub: y,
+ pubEnc: h
+ });
+ }, b.fromPrivate = function(f, y, h) {
+ return y instanceof b ? y : new b(f, {
+ priv: y,
+ privEnc: h
+ });
+ }, b.prototype.validate = function() {
+ var f = this.getPublic();
+ return f.isInfinity() ? {
+ result: !1,
+ reason: "Invalid public key"
+ } : f.validate() ? f.mul(this.ec.curve.n).isInfinity() ? {
+ result: !0,
+ reason: null
+ } : {
+ result: !1,
+ reason: "Public key * N != O"
+ } : {
+ result: !1,
+ reason: "Public key is not a point"
+ };
+ }, b.prototype.getPublic = function(f, y) {
+ return typeof f == "string" && (y = f, f = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), y ? this.pub.encode(y, f) : this.pub;
+ }, b.prototype.getPrivate = function(f) {
+ return f === "hex" ? this.priv.toString(16, 2) : this.priv;
+ }, b.prototype._importPrivate = function(f, y) {
+ this.priv = new u(f, y || 16), this.priv = this.priv.umod(this.ec.curve.n);
+ }, b.prototype._importPublic = function(f, y) {
+ if (f.x || f.y) {
+ this.ec.curve.type === "mont" ? g(f.x, "Need x coordinate") : (this.ec.curve.type === "short" || this.ec.curve.type === "edwards") && g(f.x && f.y, "Need both x and y coordinate"), this.pub = this.ec.curve.point(f.x, f.y);
+ return;
+ }
+ this.pub = this.ec.curve.decodePoint(f, y);
+ }, b.prototype.derive = function(f) {
+ return f.mul(this.priv).getX();
+ }, b.prototype.sign = function(f, y, h) {
+ return this.ec.sign(f, this, y, h);
+ }, b.prototype.verify = function(f, y) {
+ return this.ec.verify(f, y, this);
+ }, b.prototype.inspect = function() {
+ return "";
+ };
+ }, { "../utils": 364, "bn.js": 365 }], 359: [function(e, x, _) {
+ var u = e("bn.js"), m = e("../utils"), g = m.assert;
+ function b(l, d) {
+ if (l instanceof b)
+ return l;
+ this._importDER(l, d) || (g(l.r && l.s, "Signature without r or s"), this.r = new u(l.r, 16), this.s = new u(l.s, 16), l.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = l.recoveryParam);
+ }
+ x.exports = b;
+ function w() {
+ this.place = 0;
+ }
+ function f(l, d) {
+ var s = l[d.place++];
+ if (!(s & 128))
+ return s;
+ var v = s & 15;
+ if (v === 0 || v > 4)
+ return !1;
+ for (var c = 0, a = 0, r = d.place; a < v; a++, r++)
+ c <<= 8, c |= l[r], c >>>= 0;
+ return c <= 127 ? !1 : (d.place = r, c);
+ }
+ function y(l) {
+ for (var d = 0, s = l.length - 1; !l[d] && !(l[d + 1] & 128) && d < s; )
+ d++;
+ return d === 0 ? l : l.slice(d);
+ }
+ b.prototype._importDER = function(d, s) {
+ d = m.toArray(d, s);
+ var v = new w();
+ if (d[v.place++] !== 48)
+ return !1;
+ var c = f(d, v);
+ if (c === !1 || c + v.place !== d.length || d[v.place++] !== 2)
+ return !1;
+ var a = f(d, v);
+ if (a === !1)
+ return !1;
+ var r = d.slice(v.place, a + v.place);
+ if (v.place += a, d[v.place++] !== 2)
+ return !1;
+ var t = f(d, v);
+ if (t === !1 || d.length !== t + v.place)
+ return !1;
+ var i = d.slice(v.place, t + v.place);
+ if (r[0] === 0)
+ if (r[1] & 128)
+ r = r.slice(1);
+ else
+ return !1;
+ if (i[0] === 0)
+ if (i[1] & 128)
+ i = i.slice(1);
+ else
+ return !1;
+ return this.r = new u(r), this.s = new u(i), this.recoveryParam = null, !0;
+ };
+ function h(l, d) {
+ if (d < 128) {
+ l.push(d);
+ return;
+ }
+ var s = 1 + (Math.log(d) / Math.LN2 >>> 3);
+ for (l.push(s | 128); --s; )
+ l.push(d >>> (s << 3) & 255);
+ l.push(d);
+ }
+ b.prototype.toDER = function(d) {
+ var s = this.r.toArray(), v = this.s.toArray();
+ for (s[0] & 128 && (s = [0].concat(s)), v[0] & 128 && (v = [0].concat(v)), s = y(s), v = y(v); !v[0] && !(v[1] & 128); )
+ v = v.slice(1);
+ var c = [2];
+ h(c, s.length), c = c.concat(s), c.push(2), h(c, v.length);
+ var a = c.concat(v), r = [48];
+ return h(r, a.length), r = r.concat(a), m.encode(r, d);
+ };
+ }, { "../utils": 364, "bn.js": 365 }], 360: [function(e, x, _) {
+ var u = e("hash.js"), m = e("../curves"), g = e("../utils"), b = g.assert, w = g.parseBytes, f = e("./key"), y = e("./signature");
+ function h(d) {
+ if (b(d === "ed25519", "only tested with ed25519 so far"), !(this instanceof h))
+ return new h(d);
+ var d = m[d].curve;
+ this.curve = d, this.g = d.g, this.g.precompute(d.n.bitLength() + 1), this.pointClass = d.point().constructor, this.encodingLength = Math.ceil(d.n.bitLength() / 8), this.hash = u.sha512;
+ }
+ x.exports = h, h.prototype.sign = function(d, s) {
+ d = w(d);
+ var v = this.keyFromSecret(s), c = this.hashInt(v.messagePrefix(), d), a = this.g.mul(c), r = this.encodePoint(a), t = this.hashInt(r, v.pubBytes(), d).mul(v.priv()), i = c.add(t).umod(this.curve.n);
+ return this.makeSignature({
+ R: a,
+ S: i,
+ Rencoded: r
+ });
+ }, h.prototype.verify = function(d, s, v) {
+ d = w(d), s = this.makeSignature(s);
+ var c = this.keyFromPublic(v), a = this.hashInt(s.Rencoded(), c.pubBytes(), d), r = this.g.mul(s.S()), t = s.R().add(c.pub().mul(a));
+ return t.eq(r);
+ }, h.prototype.hashInt = function() {
+ for (var d = this.hash(), s = 0; s < arguments.length; s++)
+ d.update(arguments[s]);
+ return g.intFromLE(d.digest()).umod(this.curve.n);
+ }, h.prototype.keyFromPublic = function(d) {
+ return f.fromPublic(this, d);
+ }, h.prototype.keyFromSecret = function(d) {
+ return f.fromSecret(this, d);
+ }, h.prototype.makeSignature = function(d) {
+ return d instanceof y ? d : new y(this, d);
+ }, h.prototype.encodePoint = function(d) {
+ var s = d.getY().toArray("le", this.encodingLength);
+ return s[this.encodingLength - 1] |= d.getX().isOdd() ? 128 : 0, s;
+ }, h.prototype.decodePoint = function(d) {
+ d = g.parseBytes(d);
+ var s = d.length - 1, v = d.slice(0, s).concat(d[s] & -129), c = (d[s] & 128) !== 0, a = g.intFromLE(v);
+ return this.curve.pointFromY(a, c);
+ }, h.prototype.encodeInt = function(d) {
+ return d.toArray("le", this.encodingLength);
+ }, h.prototype.decodeInt = function(d) {
+ return g.intFromLE(d);
+ }, h.prototype.isPoint = function(d) {
+ return d instanceof this.pointClass;
+ };
+ }, { "../curves": 356, "../utils": 364, "./key": 361, "./signature": 362, "hash.js": 372 }], 361: [function(e, x, _) {
+ var u = e("../utils"), m = u.assert, g = u.parseBytes, b = u.cachedProperty;
+ function w(f, y) {
+ this.eddsa = f, this._secret = g(y.secret), f.isPoint(y.pub) ? this._pub = y.pub : this._pubBytes = g(y.pub);
+ }
+ w.fromPublic = function(y, h) {
+ return h instanceof w ? h : new w(y, {
+ pub: h
+ });
+ }, w.fromSecret = function(y, h) {
+ return h instanceof w ? h : new w(y, {
+ secret: h
+ });
+ }, w.prototype.secret = function() {
+ return this._secret;
+ }, b(w, "pubBytes", function() {
+ return this.eddsa.encodePoint(this.pub());
+ }), b(w, "pub", function() {
+ return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv());
+ }), b(w, "privBytes", function() {
+ var y = this.eddsa, h = this.hash(), l = y.encodingLength - 1, d = h.slice(0, y.encodingLength);
+ return d[0] &= 248, d[l] &= 127, d[l] |= 64, d;
+ }), b(w, "priv", function() {
+ return this.eddsa.decodeInt(this.privBytes());
+ }), b(w, "hash", function() {
+ return this.eddsa.hash().update(this.secret()).digest();
+ }), b(w, "messagePrefix", function() {
+ return this.hash().slice(this.eddsa.encodingLength);
+ }), w.prototype.sign = function(y) {
+ return m(this._secret, "KeyPair can only verify"), this.eddsa.sign(y, this);
+ }, w.prototype.verify = function(y, h) {
+ return this.eddsa.verify(y, h, this);
+ }, w.prototype.getSecret = function(y) {
+ return m(this._secret, "KeyPair is public only"), u.encode(this.secret(), y);
+ }, w.prototype.getPublic = function(y) {
+ return u.encode(this.pubBytes(), y);
+ }, x.exports = w;
+ }, { "../utils": 364 }], 362: [function(e, x, _) {
+ function u(h) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(d) {
+ return typeof d;
+ } : u = function(d) {
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
+ }, u(h);
+ }
+ var m = e("bn.js"), g = e("../utils"), b = g.assert, w = g.cachedProperty, f = g.parseBytes;
+ function y(h, l) {
+ this.eddsa = h, u(l) !== "object" && (l = f(l)), Array.isArray(l) && (l = {
+ R: l.slice(0, h.encodingLength),
+ S: l.slice(h.encodingLength)
+ }), b(l.R && l.S, "Signature without R or S"), h.isPoint(l.R) && (this._R = l.R), l.S instanceof m && (this._S = l.S), this._Rencoded = Array.isArray(l.R) ? l.R : l.Rencoded, this._Sencoded = Array.isArray(l.S) ? l.S : l.Sencoded;
+ }
+ w(y, "S", function() {
+ return this.eddsa.decodeInt(this.Sencoded());
+ }), w(y, "R", function() {
+ return this.eddsa.decodePoint(this.Rencoded());
+ }), w(y, "Rencoded", function() {
+ return this.eddsa.encodePoint(this.R());
+ }), w(y, "Sencoded", function() {
+ return this.eddsa.encodeInt(this.S());
+ }), y.prototype.toBytes = function() {
+ return this.Rencoded().concat(this.Sencoded());
+ }, y.prototype.toHex = function() {
+ return g.encode(this.toBytes(), "hex").toUpperCase();
+ }, x.exports = y;
+ }, { "../utils": 364, "bn.js": 365 }], 363: [function(e, x, _) {
+ x.exports = {
+ doubles: {
+ step: 4,
+ points: [["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a", "f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"], ["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", "11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"], ["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739", "d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"], ["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", "4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"], ["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c", "4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"], ["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda", "96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"], ["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa", "5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"], ["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0", "cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"], ["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d", "9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"], ["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d", "e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"], ["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1", "9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"], ["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0", "5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"], ["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047", "10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"], ["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862", "283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"], ["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7", "7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"], ["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd", "56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"], ["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83", "7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"], ["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a", "53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"], ["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8", "bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"], ["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d", "4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"], ["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725", "7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"], ["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754", "4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"], ["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c", "17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"], ["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6", "6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"], ["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39", "c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"], ["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891", "893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"], ["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b", "febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"], ["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03", "2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"], ["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d", "eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"], ["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070", "7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"], ["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4", "e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"], ["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da", "662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"], ["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11", "1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"], ["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e", "efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"], ["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41", "2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"], ["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef", "67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"], ["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8", "db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"], ["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d", "648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"], ["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96", "35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"], ["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd", "ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"], ["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5", "9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"], ["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266", "40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"], ["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71", "34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"], ["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac", "c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"], ["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751", "1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"], ["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e", "493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"], ["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241", "c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"], ["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3", "be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"], ["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f", "4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"], ["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19", "aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"], ["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be", "b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"], ["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9", "6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"], ["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2", "8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"], ["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13", "7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"], ["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c", "ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"], ["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba", "2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"], ["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151", "e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"], ["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073", "d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"], ["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458", "38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"], ["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b", "69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"], ["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366", "d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"], ["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa", "40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"], ["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0", "620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"], ["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787", "7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"], ["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e", "ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]
+ },
+ naf: {
+ wnd: 7,
+ points: [["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9", "388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"], ["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4", "d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"], ["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc", "6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"], ["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe", "cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"], ["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb", "d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"], ["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8", "ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"], ["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e", "581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"], ["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34", "4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"], ["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c", "85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"], ["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5", "321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"], ["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f", "2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"], ["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714", "73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"], ["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729", "a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"], ["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db", "2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"], ["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4", "e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"], ["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5", "b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"], ["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479", "2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"], ["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d", "80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"], ["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f", "1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"], ["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb", "d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"], ["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9", "eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"], ["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963", "758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"], ["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74", "958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"], ["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530", "e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"], ["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b", "5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"], ["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247", "cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"], ["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1", "cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"], ["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120", "4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"], ["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435", "91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"], ["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18", "673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"], ["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8", "59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"], ["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb", "3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"], ["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f", "55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"], ["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143", "efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"], ["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba", "e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"], ["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45", "f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"], ["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a", "744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"], ["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e", "c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"], ["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8", "e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"], ["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c", "30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"], ["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519", "e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"], ["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab", "100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"], ["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca", "ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"], ["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf", "8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"], ["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610", "68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"], ["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", "f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"], ["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c", "d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"], ["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940", "edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"], ["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980", "a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"], ["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3", "66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"], ["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf", "9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"], ["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63", "4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"], ["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448", "fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"], ["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf", "5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"], ["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5", "8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"], ["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6", "8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"], ["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5", "5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"], ["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99", "f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"], ["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51", "f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"], ["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5", "42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"], ["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5", "204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"], ["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997", "4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"], ["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881", "73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"], ["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5", "39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"], ["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66", "d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"], ["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726", "ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"], ["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede", "6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"], ["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94", "60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"], ["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31", "3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"], ["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51", "b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"], ["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", "ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"], ["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5", "cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"], ["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b", "6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"], ["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4", "322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"], ["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f", "6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"], ["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889", "2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"], ["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246", "b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"], ["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984", "998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"], ["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a", "b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"], ["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030", "bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"], ["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197", "6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"], ["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593", "c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"], ["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef", "21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"], ["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38", "60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"], ["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a", "49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"], ["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111", "5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"], ["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502", "7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"], ["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea", "be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"], ["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26", "8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"], ["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986", "39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"], ["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e", "62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"], ["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4", "25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"], ["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda", "ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"], ["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859", "cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"], ["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f", "f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"], ["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c", "6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"], ["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942", "fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"], ["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a", "1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"], ["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80", "5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"], ["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d", "438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"], ["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1", "cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"], ["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63", "c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"], ["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352", "6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"], ["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193", "ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"], ["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00", "9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"], ["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58", "ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"], ["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7", "d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"], ["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8", "c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"], ["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e", "67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"], ["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d", "cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"], ["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b", "299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"], ["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f", "f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"], ["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6", "462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"], ["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297", "62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"], ["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a", "7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"], ["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c", "ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"], ["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52", "4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"], ["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb", "bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"], ["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065", "bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"], ["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917", "603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"], ["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9", "cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"], ["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3", "553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"], ["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57", "712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"], ["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66", "ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"], ["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8", "9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"], ["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721", "9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"], ["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180", "4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]
+ }
+ };
+ }, {}], 364: [function(e, x, _) {
+ var u = _, m = e("bn.js"), g = e("minimalistic-assert"), b = e("minimalistic-crypto-utils");
+ u.assert = g, u.toArray = b.toArray, u.zero2 = b.zero2, u.toHex = b.toHex, u.encode = b.encode;
+ function w(d, s, v) {
+ var c = new Array(Math.max(d.bitLength(), v) + 1);
+ c.fill(0);
+ for (var a = 1 << s + 1, r = d.clone(), t = 0; t < c.length; t++) {
+ var i, n = r.andln(a - 1);
+ r.isOdd() ? (n > (a >> 1) - 1 ? i = (a >> 1) - n : i = n, r.isubn(i)) : i = 0, c[t] = i, r.iushrn(1);
+ }
+ return c;
+ }
+ u.getNAF = w;
+ function f(d, s) {
+ var v = [[], []];
+ d = d.clone(), s = s.clone();
+ for (var c = 0, a = 0; d.cmpn(-c) > 0 || s.cmpn(-a) > 0; ) {
+ var r = d.andln(3) + c & 3, t = s.andln(3) + a & 3;
+ r === 3 && (r = -1), t === 3 && (t = -1);
+ var i;
+ if (!(r & 1))
+ i = 0;
+ else {
+ var n = d.andln(7) + c & 7;
+ (n === 3 || n === 5) && t === 2 ? i = -r : i = r;
+ }
+ v[0].push(i);
+ var o;
+ if (!(t & 1))
+ o = 0;
+ else {
+ var n = s.andln(7) + a & 7;
+ (n === 3 || n === 5) && r === 2 ? o = -t : o = t;
+ }
+ v[1].push(o), 2 * c === i + 1 && (c = 1 - c), 2 * a === o + 1 && (a = 1 - a), d.iushrn(1), s.iushrn(1);
+ }
+ return v;
+ }
+ u.getJSF = f;
+ function y(d, s, v) {
+ var c = "_" + s;
+ d.prototype[s] = function() {
+ return this[c] !== void 0 ? this[c] : this[c] = v.call(this);
+ };
+ }
+ u.cachedProperty = y;
+ function h(d) {
+ return typeof d == "string" ? u.toArray(d, "hex") : d;
+ }
+ u.parseBytes = h;
+ function l(d) {
+ return new m(d, "hex", "le");
+ }
+ u.intFromLE = l;
+ }, { "bn.js": 365, "minimalistic-assert": 437, "minimalistic-crypto-utils": 438 }], 365: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 366: [function(e, x, _) {
+ x.exports = {
+ _from: "elliptic@^6.5.3",
+ _id: "elliptic@6.5.3",
+ _inBundle: !1,
+ _integrity: "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
+ _location: "/elliptic",
+ _phantomChildren: {},
+ _requested: {
+ type: "range",
+ registry: !0,
+ raw: "elliptic@^6.5.3",
+ name: "elliptic",
+ escapedName: "elliptic",
+ rawSpec: "^6.5.3",
+ saveSpec: null,
+ fetchSpec: "^6.5.3"
+ },
+ _requiredBy: [
+ "/browserify-sign",
+ "/create-ecdh"
+ ],
+ _resolved: "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
+ _shasum: "cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6",
+ _spec: "elliptic@^6.5.3",
+ _where: "/mnt/d/dev/git/exceljs/node_modules/browserify-sign",
+ author: {
+ name: "Fedor Indutny",
+ email: "fedor@indutny.com"
+ },
+ bugs: {
+ url: "https://github.com/indutny/elliptic/issues"
+ },
+ bundleDependencies: !1,
+ dependencies: {
+ "bn.js": "^4.4.0",
+ brorand: "^1.0.1",
+ "hash.js": "^1.0.0",
+ "hmac-drbg": "^1.0.0",
+ inherits: "^2.0.1",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.0"
+ },
+ deprecated: !1,
+ description: "EC cryptography",
+ devDependencies: {
+ brfs: "^1.4.3",
+ coveralls: "^3.0.8",
+ grunt: "^1.0.4",
+ "grunt-browserify": "^5.0.0",
+ "grunt-cli": "^1.2.0",
+ "grunt-contrib-connect": "^1.0.0",
+ "grunt-contrib-copy": "^1.0.0",
+ "grunt-contrib-uglify": "^1.0.1",
+ "grunt-mocha-istanbul": "^3.0.1",
+ "grunt-saucelabs": "^9.0.1",
+ istanbul: "^0.4.2",
+ jscs: "^3.0.7",
+ jshint: "^2.10.3",
+ mocha: "^6.2.2"
+ },
+ files: [
+ "lib"
+ ],
+ homepage: "https://github.com/indutny/elliptic",
+ keywords: [
+ "EC",
+ "Elliptic",
+ "curve",
+ "Cryptography"
+ ],
+ license: "MIT",
+ main: "lib/elliptic.js",
+ name: "elliptic",
+ repository: {
+ type: "git",
+ url: "git+ssh://git@github.com/indutny/elliptic.git"
+ },
+ scripts: {
+ jscs: "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",
+ jshint: "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",
+ lint: "npm run jscs && npm run jshint",
+ test: "npm run lint && npm run unit",
+ unit: "istanbul test _mocha --reporter=spec test/index.js",
+ version: "grunt dist && git add dist/"
+ },
+ version: "6.5.3"
+ };
+ }, {}], 367: [function(e, x, _) {
+ function u(M) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(R) {
+ return typeof R;
+ } : u = function(R) {
+ return R && typeof Symbol == "function" && R.constructor === Symbol && R !== Symbol.prototype ? "symbol" : typeof R;
+ }, u(M);
+ }
+ var m = Object.create || F, g = Object.keys || z, b = Function.prototype.bind || N;
+ function w() {
+ (!this._events || !Object.prototype.hasOwnProperty.call(this, "_events")) && (this._events = m(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
+ }
+ x.exports = w, w.EventEmitter = w, w.prototype._events = void 0, w.prototype._maxListeners = void 0;
+ var f = 10, y;
+ try {
+ var h = {};
+ Object.defineProperty && Object.defineProperty(h, "x", {
+ value: 0
+ }), y = h.x === 0;
+ } catch (M) {
+ y = !1;
+ }
+ y ? Object.defineProperty(w, "defaultMaxListeners", {
+ enumerable: !0,
+ get: function() {
+ return f;
+ },
+ set: function(I) {
+ if (typeof I != "number" || I < 0 || I !== I)
+ throw new TypeError('"defaultMaxListeners" must be a positive number');
+ f = I;
+ }
+ }) : w.defaultMaxListeners = f, w.prototype.setMaxListeners = function(I) {
+ if (typeof I != "number" || I < 0 || isNaN(I))
+ throw new TypeError('"n" argument must be a positive number');
+ return this._maxListeners = I, this;
+ };
+ function l(M) {
+ return M._maxListeners === void 0 ? w.defaultMaxListeners : M._maxListeners;
+ }
+ w.prototype.getMaxListeners = function() {
+ return l(this);
+ };
+ function d(M, I, R) {
+ if (I)
+ M.call(R);
+ else
+ for (var C = M.length, E = O(M, C), A = 0; A < C; ++A)
+ E[A].call(R);
+ }
+ function s(M, I, R, C) {
+ if (I)
+ M.call(R, C);
+ else
+ for (var E = M.length, A = O(M, E), L = 0; L < E; ++L)
+ A[L].call(R, C);
+ }
+ function v(M, I, R, C, E) {
+ if (I)
+ M.call(R, C, E);
+ else
+ for (var A = M.length, L = O(M, A), $ = 0; $ < A; ++$)
+ L[$].call(R, C, E);
+ }
+ function c(M, I, R, C, E, A) {
+ if (I)
+ M.call(R, C, E, A);
+ else
+ for (var L = M.length, $ = O(M, L), W = 0; W < L; ++W)
+ $[W].call(R, C, E, A);
+ }
+ function a(M, I, R, C) {
+ if (I)
+ M.apply(R, C);
+ else
+ for (var E = M.length, A = O(M, E), L = 0; L < E; ++L)
+ A[L].apply(R, C);
+ }
+ w.prototype.emit = function(I) {
+ var R, C, E, A, L, $, W = I === "error";
+ if ($ = this._events, $)
+ W = W && $.error == null;
+ else if (!W)
+ return !1;
+ if (W) {
+ if (arguments.length > 1 && (R = arguments[1]), R instanceof Error)
+ throw R;
+ var U = new Error('Unhandled "error" event. (' + R + ")");
+ throw U.context = R, U;
+ }
+ if (C = $[I], !C)
+ return !1;
+ var D = typeof C == "function";
+ switch (E = arguments.length, E) {
+ case 1:
+ d(C, D, this);
+ break;
+ case 2:
+ s(C, D, this, arguments[1]);
+ break;
+ case 3:
+ v(C, D, this, arguments[1], arguments[2]);
+ break;
+ case 4:
+ c(C, D, this, arguments[1], arguments[2], arguments[3]);
+ break;
+ default:
+ for (A = new Array(E - 1), L = 1; L < E; L++)
+ A[L - 1] = arguments[L];
+ a(C, D, this, A);
+ }
+ return !0;
+ };
+ function r(M, I, R, C) {
+ var E, A, L;
+ if (typeof R != "function")
+ throw new TypeError('"listener" argument must be a function');
+ if (A = M._events, A ? (A.newListener && (M.emit("newListener", I, R.listener ? R.listener : R), A = M._events), L = A[I]) : (A = M._events = m(null), M._eventsCount = 0), !L)
+ L = A[I] = R, ++M._eventsCount;
+ else if (typeof L == "function" ? L = A[I] = C ? [R, L] : [L, R] : C ? L.unshift(R) : L.push(R), !L.warned && (E = l(M), E && E > 0 && L.length > E)) {
+ L.warned = !0;
+ var $ = new Error("Possible EventEmitter memory leak detected. " + L.length + ' "' + String(I) + '" listeners added. Use emitter.setMaxListeners() to increase limit.');
+ $.name = "MaxListenersExceededWarning", $.emitter = M, $.type = I, $.count = L.length, (typeof console == "undefined" ? "undefined" : u(console)) === "object" && console.warn && console.warn("%s: %s", $.name, $.message);
+ }
+ return M;
+ }
+ w.prototype.addListener = function(I, R) {
+ return r(this, I, R, !1);
+ }, w.prototype.on = w.prototype.addListener, w.prototype.prependListener = function(I, R) {
+ return r(this, I, R, !0);
+ };
+ function t() {
+ if (!this.fired)
+ switch (this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length) {
+ case 0:
+ return this.listener.call(this.target);
+ case 1:
+ return this.listener.call(this.target, arguments[0]);
+ case 2:
+ return this.listener.call(this.target, arguments[0], arguments[1]);
+ case 3:
+ return this.listener.call(this.target, arguments[0], arguments[1], arguments[2]);
+ default:
+ for (var M = new Array(arguments.length), I = 0; I < M.length; ++I)
+ M[I] = arguments[I];
+ this.listener.apply(this.target, M);
+ }
+ }
+ function i(M, I, R) {
+ var C = {
+ fired: !1,
+ wrapFn: void 0,
+ target: M,
+ type: I,
+ listener: R
+ }, E = b.call(t, C);
+ return E.listener = R, C.wrapFn = E, E;
+ }
+ w.prototype.once = function(I, R) {
+ if (typeof R != "function")
+ throw new TypeError('"listener" argument must be a function');
+ return this.on(I, i(this, I, R)), this;
+ }, w.prototype.prependOnceListener = function(I, R) {
+ if (typeof R != "function")
+ throw new TypeError('"listener" argument must be a function');
+ return this.prependListener(I, i(this, I, R)), this;
+ }, w.prototype.removeListener = function(I, R) {
+ var C, E, A, L, $;
+ if (typeof R != "function")
+ throw new TypeError('"listener" argument must be a function');
+ if (E = this._events, !E)
+ return this;
+ if (C = E[I], !C)
+ return this;
+ if (C === R || C.listener === R)
+ --this._eventsCount === 0 ? this._events = m(null) : (delete E[I], E.removeListener && this.emit("removeListener", I, C.listener || R));
+ else if (typeof C != "function") {
+ for (A = -1, L = C.length - 1; L >= 0; L--)
+ if (C[L] === R || C[L].listener === R) {
+ $ = C[L].listener, A = L;
+ break;
+ }
+ if (A < 0)
+ return this;
+ A === 0 ? C.shift() : p(C, A), C.length === 1 && (E[I] = C[0]), E.removeListener && this.emit("removeListener", I, $ || R);
+ }
+ return this;
+ }, w.prototype.removeAllListeners = function(I) {
+ var R, C, E;
+ if (C = this._events, !C)
+ return this;
+ if (!C.removeListener)
+ return arguments.length === 0 ? (this._events = m(null), this._eventsCount = 0) : C[I] && (--this._eventsCount === 0 ? this._events = m(null) : delete C[I]), this;
+ if (arguments.length === 0) {
+ var A = g(C), L;
+ for (E = 0; E < A.length; ++E)
+ L = A[E], L !== "removeListener" && this.removeAllListeners(L);
+ return this.removeAllListeners("removeListener"), this._events = m(null), this._eventsCount = 0, this;
+ }
+ if (R = C[I], typeof R == "function")
+ this.removeListener(I, R);
+ else if (R)
+ for (E = R.length - 1; E >= 0; E--)
+ this.removeListener(I, R[E]);
+ return this;
+ };
+ function n(M, I, R) {
+ var C = M._events;
+ if (!C)
+ return [];
+ var E = C[I];
+ return E ? typeof E == "function" ? R ? [E.listener || E] : [E] : R ? P(E) : O(E, E.length) : [];
+ }
+ w.prototype.listeners = function(I) {
+ return n(this, I, !0);
+ }, w.prototype.rawListeners = function(I) {
+ return n(this, I, !1);
+ }, w.listenerCount = function(M, I) {
+ return typeof M.listenerCount == "function" ? M.listenerCount(I) : o.call(M, I);
+ }, w.prototype.listenerCount = o;
+ function o(M) {
+ var I = this._events;
+ if (I) {
+ var R = I[M];
+ if (typeof R == "function")
+ return 1;
+ if (R)
+ return R.length;
+ }
+ return 0;
+ }
+ w.prototype.eventNames = function() {
+ return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
+ };
+ function p(M, I) {
+ for (var R = I, C = R + 1, E = M.length; C < E; R += 1, C += 1)
+ M[R] = M[C];
+ M.pop();
+ }
+ function O(M, I) {
+ for (var R = new Array(I), C = 0; C < I; ++C)
+ R[C] = M[C];
+ return R;
+ }
+ function P(M) {
+ for (var I = new Array(M.length), R = 0; R < I.length; ++R)
+ I[R] = M[R].listener || M[R];
+ return I;
+ }
+ function F(M) {
+ var I = function() {
+ };
+ return I.prototype = M, new I();
+ }
+ function z(M) {
+ for (var I in M)
+ Object.prototype.hasOwnProperty.call(M, I);
+ return I;
+ }
+ function N(M) {
+ var I = this;
+ return function() {
+ return I.apply(M, arguments);
+ };
+ }
+ }, {}], 368: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("md5.js");
+ function g(b, w, f, y) {
+ if (u.isBuffer(b) || (b = u.from(b, "binary")), w && (u.isBuffer(w) || (w = u.from(w, "binary")), w.length !== 8))
+ throw new RangeError("salt should be Buffer with 8 byte length");
+ for (var h = f / 8, l = u.alloc(h), d = u.alloc(y || 0), s = u.alloc(0); h > 0 || y > 0; ) {
+ var v = new m();
+ v.update(s), v.update(b), w && v.update(w), s = v.digest();
+ var c = 0;
+ if (h > 0) {
+ var a = l.length - h;
+ c = Math.min(h, s.length), s.copy(l, a, 0, c), h -= c;
+ }
+ if (c < s.length && y > 0) {
+ var r = d.length - y, t = Math.min(y, s.length - c);
+ s.copy(d, r, c, c + t), y -= t;
+ }
+ }
+ return s.fill(0), {
+ key: l,
+ iv: d
+ };
+ }
+ x.exports = g;
+ }, { "md5.js": 434, "safe-buffer": 494 }], 369: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var u = e("@fast-csv/format");
+ Object.defineProperty(_, "format", {
+ enumerable: !0,
+ get: function() {
+ return u.format;
+ }
+ }), Object.defineProperty(_, "write", {
+ enumerable: !0,
+ get: function() {
+ return u.write;
+ }
+ }), Object.defineProperty(_, "writeToStream", {
+ enumerable: !0,
+ get: function() {
+ return u.writeToStream;
+ }
+ }), Object.defineProperty(_, "writeToBuffer", {
+ enumerable: !0,
+ get: function() {
+ return u.writeToBuffer;
+ }
+ }), Object.defineProperty(_, "writeToString", {
+ enumerable: !0,
+ get: function() {
+ return u.writeToString;
+ }
+ }), Object.defineProperty(_, "writeToPath", {
+ enumerable: !0,
+ get: function() {
+ return u.writeToPath;
+ }
+ }), Object.defineProperty(_, "CsvFormatterStream", {
+ enumerable: !0,
+ get: function() {
+ return u.CsvFormatterStream;
+ }
+ }), Object.defineProperty(_, "FormatterOptions", {
+ enumerable: !0,
+ get: function() {
+ return u.FormatterOptions;
+ }
+ });
+ var m = e("@fast-csv/parse");
+ Object.defineProperty(_, "parse", {
+ enumerable: !0,
+ get: function() {
+ return m.parse;
+ }
+ }), Object.defineProperty(_, "parseString", {
+ enumerable: !0,
+ get: function() {
+ return m.parseString;
+ }
+ }), Object.defineProperty(_, "parseStream", {
+ enumerable: !0,
+ get: function() {
+ return m.parseStream;
+ }
+ }), Object.defineProperty(_, "parseFile", {
+ enumerable: !0,
+ get: function() {
+ return m.parseFile;
+ }
+ }), Object.defineProperty(_, "ParserOptions", {
+ enumerable: !0,
+ get: function() {
+ return m.ParserOptions;
+ }
+ }), Object.defineProperty(_, "CsvParserStream", {
+ enumerable: !0,
+ get: function() {
+ return m.CsvParserStream;
+ }
+ });
+ }, { "@fast-csv/format": 148, "@fast-csv/parse": 152 }], 370: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = e("readable-stream").Transform, g = e("inherits");
+ function b(f, y) {
+ if (!u.isBuffer(f) && typeof f != "string")
+ throw new TypeError(y + " must be a string or a buffer");
+ }
+ function w(f) {
+ m.call(this), this._block = u.allocUnsafe(f), this._blockSize = f, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
+ }
+ g(w, m), w.prototype._transform = function(f, y, h) {
+ var l = null;
+ try {
+ this.update(f, y);
+ } catch (d) {
+ l = d;
+ }
+ h(l);
+ }, w.prototype._flush = function(f) {
+ var y = null;
+ try {
+ this.push(this.digest());
+ } catch (h) {
+ y = h;
+ }
+ f(y);
+ }, w.prototype.update = function(f, y) {
+ if (b(f, "Data"), this._finalized)
+ throw new Error("Digest already called");
+ u.isBuffer(f) || (f = u.from(f, y));
+ for (var h = this._block, l = 0; this._blockOffset + f.length - l >= this._blockSize; ) {
+ for (var d = this._blockOffset; d < this._blockSize; )
+ h[d++] = f[l++];
+ this._update(), this._blockOffset = 0;
+ }
+ for (; l < f.length; )
+ h[this._blockOffset++] = f[l++];
+ for (var s = 0, v = f.length * 8; v > 0; ++s)
+ this._length[s] += v, v = this._length[s] / 4294967296 | 0, v > 0 && (this._length[s] -= 4294967296 * v);
+ return this;
+ }, w.prototype._update = function() {
+ throw new Error("_update is not implemented");
+ }, w.prototype.digest = function(f) {
+ if (this._finalized)
+ throw new Error("Digest already called");
+ this._finalized = !0;
+ var y = this._digest();
+ f !== void 0 && (y = y.toString(f)), this._block.fill(0), this._blockOffset = 0;
+ for (var h = 0; h < 4; ++h)
+ this._length[h] = 0;
+ return y;
+ }, w.prototype._digest = function() {
+ throw new Error("_digest is not implemented");
+ }, x.exports = w;
+ }, { inherits: 387, "readable-stream": 491, "safe-buffer": 371 }], 371: [function(e, x, _) {
+ arguments[4][214][0].apply(_, arguments);
+ }, { buffer: 216, dup: 214 }], 372: [function(e, x, _) {
+ var u = _;
+ u.utils = e("./hash/utils"), u.common = e("./hash/common"), u.sha = e("./hash/sha"), u.ripemd = e("./hash/ripemd"), u.hmac = e("./hash/hmac"), u.sha1 = u.sha.sha1, u.sha256 = u.sha.sha256, u.sha224 = u.sha.sha224, u.sha384 = u.sha.sha384, u.sha512 = u.sha.sha512, u.ripemd160 = u.ripemd.ripemd160;
+ }, { "./hash/common": 373, "./hash/hmac": 374, "./hash/ripemd": 375, "./hash/sha": 376, "./hash/utils": 383 }], 373: [function(e, x, _) {
+ var u = e("./utils"), m = e("minimalistic-assert");
+ function g() {
+ this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
+ }
+ _.BlockHash = g, g.prototype.update = function(w, f) {
+ if (w = u.toArray(w, f), this.pending ? this.pending = this.pending.concat(w) : this.pending = w, this.pendingTotal += w.length, this.pending.length >= this._delta8) {
+ w = this.pending;
+ var y = w.length % this._delta8;
+ this.pending = w.slice(w.length - y, w.length), this.pending.length === 0 && (this.pending = null), w = u.join32(w, 0, w.length - y, this.endian);
+ for (var h = 0; h < w.length; h += this._delta32)
+ this._update(w, h, h + this._delta32);
+ }
+ return this;
+ }, g.prototype.digest = function(w) {
+ return this.update(this._pad()), m(this.pending === null), this._digest(w);
+ }, g.prototype._pad = function() {
+ var w = this.pendingTotal, f = this._delta8, y = f - (w + this.padLength) % f, h = new Array(y + this.padLength);
+ h[0] = 128;
+ for (var l = 1; l < y; l++)
+ h[l] = 0;
+ if (w <<= 3, this.endian === "big") {
+ for (var d = 8; d < this.padLength; d++)
+ h[l++] = 0;
+ h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = w >>> 24 & 255, h[l++] = w >>> 16 & 255, h[l++] = w >>> 8 & 255, h[l++] = w & 255;
+ } else
+ for (h[l++] = w & 255, h[l++] = w >>> 8 & 255, h[l++] = w >>> 16 & 255, h[l++] = w >>> 24 & 255, h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = 0, d = 8; d < this.padLength; d++)
+ h[l++] = 0;
+ return h;
+ };
+ }, { "./utils": 383, "minimalistic-assert": 437 }], 374: [function(e, x, _) {
+ var u = e("./utils"), m = e("minimalistic-assert");
+ function g(b, w, f) {
+ if (!(this instanceof g))
+ return new g(b, w, f);
+ this.Hash = b, this.blockSize = b.blockSize / 8, this.outSize = b.outSize / 8, this.inner = null, this.outer = null, this._init(u.toArray(w, f));
+ }
+ x.exports = g, g.prototype._init = function(w) {
+ w.length > this.blockSize && (w = new this.Hash().update(w).digest()), m(w.length <= this.blockSize);
+ for (var f = w.length; f < this.blockSize; f++)
+ w.push(0);
+ for (f = 0; f < w.length; f++)
+ w[f] ^= 54;
+ for (this.inner = new this.Hash().update(w), f = 0; f < w.length; f++)
+ w[f] ^= 106;
+ this.outer = new this.Hash().update(w);
+ }, g.prototype.update = function(w, f) {
+ return this.inner.update(w, f), this;
+ }, g.prototype.digest = function(w) {
+ return this.outer.update(this.inner.digest()), this.outer.digest(w);
+ };
+ }, { "./utils": 383, "minimalistic-assert": 437 }], 375: [function(e, x, _) {
+ var u = e("./utils"), m = e("./common"), g = u.rotl32, b = u.sum32, w = u.sum32_3, f = u.sum32_4, y = m.BlockHash;
+ function h() {
+ if (!(this instanceof h))
+ return new h();
+ y.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
+ }
+ u.inherits(h, y), _.ripemd160 = h, h.blockSize = 512, h.outSize = 160, h.hmacStrength = 192, h.padLength = 64, h.prototype._update = function(i, n) {
+ for (var o = this.h[0], p = this.h[1], O = this.h[2], P = this.h[3], F = this.h[4], z = o, N = p, M = O, I = P, R = F, C = 0; C < 80; C++) {
+ var E = b(g(f(o, l(C, p, O, P), i[v[C] + n], d(C)), a[C]), F);
+ o = F, F = P, P = g(O, 10), O = p, p = E, E = b(g(f(z, l(79 - C, N, M, I), i[c[C] + n], s(C)), r[C]), R), z = R, R = I, I = g(M, 10), M = N, N = E;
+ }
+ E = w(this.h[1], O, I), this.h[1] = w(this.h[2], P, R), this.h[2] = w(this.h[3], F, z), this.h[3] = w(this.h[4], o, N), this.h[4] = w(this.h[0], p, M), this.h[0] = E;
+ }, h.prototype._digest = function(i) {
+ return i === "hex" ? u.toHex32(this.h, "little") : u.split32(this.h, "little");
+ };
+ function l(t, i, n, o) {
+ return t <= 15 ? i ^ n ^ o : t <= 31 ? i & n | ~i & o : t <= 47 ? (i | ~n) ^ o : t <= 63 ? i & o | n & ~o : i ^ (n | ~o);
+ }
+ function d(t) {
+ return t <= 15 ? 0 : t <= 31 ? 1518500249 : t <= 47 ? 1859775393 : t <= 63 ? 2400959708 : 2840853838;
+ }
+ function s(t) {
+ return t <= 15 ? 1352829926 : t <= 31 ? 1548603684 : t <= 47 ? 1836072691 : t <= 63 ? 2053994217 : 0;
+ }
+ var v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], c = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], a = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], r = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11];
+ }, { "./common": 373, "./utils": 383 }], 376: [function(e, x, _) {
+ _.sha1 = e("./sha/1"), _.sha224 = e("./sha/224"), _.sha256 = e("./sha/256"), _.sha384 = e("./sha/384"), _.sha512 = e("./sha/512");
+ }, { "./sha/1": 377, "./sha/224": 378, "./sha/256": 379, "./sha/384": 380, "./sha/512": 381 }], 377: [function(e, x, _) {
+ var u = e("../utils"), m = e("../common"), g = e("./common"), b = u.rotl32, w = u.sum32, f = u.sum32_5, y = g.ft_1, h = m.BlockHash, l = [1518500249, 1859775393, 2400959708, 3395469782];
+ function d() {
+ if (!(this instanceof d))
+ return new d();
+ h.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80);
+ }
+ u.inherits(d, h), x.exports = d, d.blockSize = 512, d.outSize = 160, d.hmacStrength = 80, d.padLength = 64, d.prototype._update = function(v, c) {
+ for (var a = this.W, r = 0; r < 16; r++)
+ a[r] = v[c + r];
+ for (; r < a.length; r++)
+ a[r] = b(a[r - 3] ^ a[r - 8] ^ a[r - 14] ^ a[r - 16], 1);
+ var t = this.h[0], i = this.h[1], n = this.h[2], o = this.h[3], p = this.h[4];
+ for (r = 0; r < a.length; r++) {
+ var O = ~~(r / 20), P = f(b(t, 5), y(O, i, n, o), p, a[r], l[O]);
+ p = o, o = n, n = b(i, 30), i = t, t = P;
+ }
+ this.h[0] = w(this.h[0], t), this.h[1] = w(this.h[1], i), this.h[2] = w(this.h[2], n), this.h[3] = w(this.h[3], o), this.h[4] = w(this.h[4], p);
+ }, d.prototype._digest = function(v) {
+ return v === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big");
+ };
+ }, { "../common": 373, "../utils": 383, "./common": 382 }], 378: [function(e, x, _) {
+ var u = e("../utils"), m = e("./256");
+ function g() {
+ if (!(this instanceof g))
+ return new g();
+ m.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428];
+ }
+ u.inherits(g, m), x.exports = g, g.blockSize = 512, g.outSize = 224, g.hmacStrength = 192, g.padLength = 64, g.prototype._digest = function(w) {
+ return w === "hex" ? u.toHex32(this.h.slice(0, 7), "big") : u.split32(this.h.slice(0, 7), "big");
+ };
+ }, { "../utils": 383, "./256": 379 }], 379: [function(e, x, _) {
+ var u = e("../utils"), m = e("../common"), g = e("./common"), b = e("minimalistic-assert"), w = u.sum32, f = u.sum32_4, y = u.sum32_5, h = g.ch32, l = g.maj32, d = g.s0_256, s = g.s1_256, v = g.g0_256, c = g.g1_256, a = m.BlockHash, r = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
+ function t() {
+ if (!(this instanceof t))
+ return new t();
+ a.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = r, this.W = new Array(64);
+ }
+ u.inherits(t, a), x.exports = t, t.blockSize = 512, t.outSize = 256, t.hmacStrength = 192, t.padLength = 64, t.prototype._update = function(n, o) {
+ for (var p = this.W, O = 0; O < 16; O++)
+ p[O] = n[o + O];
+ for (; O < p.length; O++)
+ p[O] = f(c(p[O - 2]), p[O - 7], v(p[O - 15]), p[O - 16]);
+ var P = this.h[0], F = this.h[1], z = this.h[2], N = this.h[3], M = this.h[4], I = this.h[5], R = this.h[6], C = this.h[7];
+ for (b(this.k.length === p.length), O = 0; O < p.length; O++) {
+ var E = y(C, s(M), h(M, I, R), this.k[O], p[O]), A = w(d(P), l(P, F, z));
+ C = R, R = I, I = M, M = w(N, E), N = z, z = F, F = P, P = w(E, A);
+ }
+ this.h[0] = w(this.h[0], P), this.h[1] = w(this.h[1], F), this.h[2] = w(this.h[2], z), this.h[3] = w(this.h[3], N), this.h[4] = w(this.h[4], M), this.h[5] = w(this.h[5], I), this.h[6] = w(this.h[6], R), this.h[7] = w(this.h[7], C);
+ }, t.prototype._digest = function(n) {
+ return n === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big");
+ };
+ }, { "../common": 373, "../utils": 383, "./common": 382, "minimalistic-assert": 437 }], 380: [function(e, x, _) {
+ var u = e("../utils"), m = e("./512");
+ function g() {
+ if (!(this instanceof g))
+ return new g();
+ m.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428];
+ }
+ u.inherits(g, m), x.exports = g, g.blockSize = 1024, g.outSize = 384, g.hmacStrength = 192, g.padLength = 128, g.prototype._digest = function(w) {
+ return w === "hex" ? u.toHex32(this.h.slice(0, 12), "big") : u.split32(this.h.slice(0, 12), "big");
+ };
+ }, { "../utils": 383, "./512": 381 }], 381: [function(e, x, _) {
+ var u = e("../utils"), m = e("../common"), g = e("minimalistic-assert"), b = u.rotr64_hi, w = u.rotr64_lo, f = u.shr64_hi, y = u.shr64_lo, h = u.sum64, l = u.sum64_hi, d = u.sum64_lo, s = u.sum64_4_hi, v = u.sum64_4_lo, c = u.sum64_5_hi, a = u.sum64_5_lo, r = m.BlockHash, t = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
+ function i() {
+ if (!(this instanceof i))
+ return new i();
+ r.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = t, this.W = new Array(160);
+ }
+ u.inherits(i, r), x.exports = i, i.blockSize = 1024, i.outSize = 512, i.hmacStrength = 192, i.padLength = 128, i.prototype._prepareBlock = function(A, L) {
+ for (var $ = this.W, W = 0; W < 32; W++)
+ $[W] = A[L + W];
+ for (; W < $.length; W += 2) {
+ var U = R($[W - 4], $[W - 3]), D = C($[W - 4], $[W - 3]), B = $[W - 14], j = $[W - 13], V = M($[W - 30], $[W - 29]), re = I($[W - 30], $[W - 29]), ee = $[W - 32], ce = $[W - 31];
+ $[W] = s(U, D, B, j, V, re, ee, ce), $[W + 1] = v(U, D, B, j, V, re, ee, ce);
+ }
+ }, i.prototype._update = function(A, L) {
+ this._prepareBlock(A, L);
+ var $ = this.W, W = this.h[0], U = this.h[1], D = this.h[2], B = this.h[3], j = this.h[4], V = this.h[5], re = this.h[6], ee = this.h[7], ce = this.h[8], ve = this.h[9], ge = this.h[10], oe = this.h[11], J = this.h[12], Q = this.h[13], he = this.h[14], ke = this.h[15];
+ g(this.k.length === $.length);
+ for (var ne = 0; ne < $.length; ne += 2) {
+ var se = he, Ce = ke, q = z(ce, ve), G = N(ce, ve), Y = n(ce, ve, ge, oe, J), fe = o(ce, ve, ge, oe, J, Q), we = this.k[ne], _e = this.k[ne + 1], je = $[ne], Ye = $[ne + 1], nt = c(se, Ce, q, G, Y, fe, we, _e, je, Ye), ut = a(se, Ce, q, G, Y, fe, we, _e, je, Ye);
+ se = P(W, U), Ce = F(W, U), q = p(W, U, D, B, j), G = O(W, U, D, B, j, V);
+ var ot = l(se, Ce, q, G), Ue = d(se, Ce, q, G);
+ he = J, ke = Q, J = ge, Q = oe, ge = ce, oe = ve, ce = l(re, ee, nt, ut), ve = d(ee, ee, nt, ut), re = j, ee = V, j = D, V = B, D = W, B = U, W = l(nt, ut, ot, Ue), U = d(nt, ut, ot, Ue);
+ }
+ h(this.h, 0, W, U), h(this.h, 2, D, B), h(this.h, 4, j, V), h(this.h, 6, re, ee), h(this.h, 8, ce, ve), h(this.h, 10, ge, oe), h(this.h, 12, J, Q), h(this.h, 14, he, ke);
+ }, i.prototype._digest = function(A) {
+ return A === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big");
+ };
+ function n(E, A, L, $, W) {
+ var U = E & L ^ ~E & W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function o(E, A, L, $, W, U) {
+ var D = A & $ ^ ~A & U;
+ return D < 0 && (D += 4294967296), D;
+ }
+ function p(E, A, L, $, W) {
+ var U = E & L ^ E & W ^ L & W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function O(E, A, L, $, W, U) {
+ var D = A & $ ^ A & U ^ $ & U;
+ return D < 0 && (D += 4294967296), D;
+ }
+ function P(E, A) {
+ var L = b(E, A, 28), $ = b(A, E, 2), W = b(A, E, 7), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function F(E, A) {
+ var L = w(E, A, 28), $ = w(A, E, 2), W = w(A, E, 7), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function z(E, A) {
+ var L = b(E, A, 14), $ = b(E, A, 18), W = b(A, E, 9), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function N(E, A) {
+ var L = w(E, A, 14), $ = w(E, A, 18), W = w(A, E, 9), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function M(E, A) {
+ var L = b(E, A, 1), $ = b(E, A, 8), W = f(E, A, 7), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function I(E, A) {
+ var L = w(E, A, 1), $ = w(E, A, 8), W = y(E, A, 7), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function R(E, A) {
+ var L = b(E, A, 19), $ = b(A, E, 29), W = f(E, A, 6), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ function C(E, A) {
+ var L = w(E, A, 19), $ = w(A, E, 29), W = y(E, A, 6), U = L ^ $ ^ W;
+ return U < 0 && (U += 4294967296), U;
+ }
+ }, { "../common": 373, "../utils": 383, "minimalistic-assert": 437 }], 382: [function(e, x, _) {
+ var u = e("../utils"), m = u.rotr32;
+ function g(s, v, c, a) {
+ if (s === 0)
+ return b(v, c, a);
+ if (s === 1 || s === 3)
+ return f(v, c, a);
+ if (s === 2)
+ return w(v, c, a);
+ }
+ _.ft_1 = g;
+ function b(s, v, c) {
+ return s & v ^ ~s & c;
+ }
+ _.ch32 = b;
+ function w(s, v, c) {
+ return s & v ^ s & c ^ v & c;
+ }
+ _.maj32 = w;
+ function f(s, v, c) {
+ return s ^ v ^ c;
+ }
+ _.p32 = f;
+ function y(s) {
+ return m(s, 2) ^ m(s, 13) ^ m(s, 22);
+ }
+ _.s0_256 = y;
+ function h(s) {
+ return m(s, 6) ^ m(s, 11) ^ m(s, 25);
+ }
+ _.s1_256 = h;
+ function l(s) {
+ return m(s, 7) ^ m(s, 18) ^ s >>> 3;
+ }
+ _.g0_256 = l;
+ function d(s) {
+ return m(s, 17) ^ m(s, 19) ^ s >>> 10;
+ }
+ _.g1_256 = d;
+ }, { "../utils": 383 }], 383: [function(e, x, _) {
+ var u = e("minimalistic-assert"), m = e("inherits");
+ _.inherits = m;
+ function g(C, E) {
+ return (C.charCodeAt(E) & 64512) !== 55296 || E < 0 || E + 1 >= C.length ? !1 : (C.charCodeAt(E + 1) & 64512) === 56320;
+ }
+ function b(C, E) {
+ if (Array.isArray(C))
+ return C.slice();
+ if (!C)
+ return [];
+ var A = [];
+ if (typeof C == "string")
+ if (E) {
+ if (E === "hex")
+ for (C = C.replace(/[^a-z0-9]+/ig, ""), C.length % 2 !== 0 && (C = "0" + C), $ = 0; $ < C.length; $ += 2)
+ A.push(parseInt(C[$] + C[$ + 1], 16));
+ } else
+ for (var L = 0, $ = 0; $ < C.length; $++) {
+ var W = C.charCodeAt($);
+ W < 128 ? A[L++] = W : W < 2048 ? (A[L++] = W >> 6 | 192, A[L++] = W & 63 | 128) : g(C, $) ? (W = 65536 + ((W & 1023) << 10) + (C.charCodeAt(++$) & 1023), A[L++] = W >> 18 | 240, A[L++] = W >> 12 & 63 | 128, A[L++] = W >> 6 & 63 | 128, A[L++] = W & 63 | 128) : (A[L++] = W >> 12 | 224, A[L++] = W >> 6 & 63 | 128, A[L++] = W & 63 | 128);
+ }
+ else
+ for ($ = 0; $ < C.length; $++)
+ A[$] = C[$] | 0;
+ return A;
+ }
+ _.toArray = b;
+ function w(C) {
+ for (var E = "", A = 0; A < C.length; A++)
+ E += h(C[A].toString(16));
+ return E;
+ }
+ _.toHex = w;
+ function f(C) {
+ var E = C >>> 24 | C >>> 8 & 65280 | C << 8 & 16711680 | (C & 255) << 24;
+ return E >>> 0;
+ }
+ _.htonl = f;
+ function y(C, E) {
+ for (var A = "", L = 0; L < C.length; L++) {
+ var $ = C[L];
+ E === "little" && ($ = f($)), A += l($.toString(16));
+ }
+ return A;
+ }
+ _.toHex32 = y;
+ function h(C) {
+ return C.length === 1 ? "0" + C : C;
+ }
+ _.zero2 = h;
+ function l(C) {
+ return C.length === 7 ? "0" + C : C.length === 6 ? "00" + C : C.length === 5 ? "000" + C : C.length === 4 ? "0000" + C : C.length === 3 ? "00000" + C : C.length === 2 ? "000000" + C : C.length === 1 ? "0000000" + C : C;
+ }
+ _.zero8 = l;
+ function d(C, E, A, L) {
+ var $ = A - E;
+ u($ % 4 === 0);
+ for (var W = new Array($ / 4), U = 0, D = E; U < W.length; U++, D += 4) {
+ var B;
+ L === "big" ? B = C[D] << 24 | C[D + 1] << 16 | C[D + 2] << 8 | C[D + 3] : B = C[D + 3] << 24 | C[D + 2] << 16 | C[D + 1] << 8 | C[D], W[U] = B >>> 0;
+ }
+ return W;
+ }
+ _.join32 = d;
+ function s(C, E) {
+ for (var A = new Array(C.length * 4), L = 0, $ = 0; L < C.length; L++, $ += 4) {
+ var W = C[L];
+ E === "big" ? (A[$] = W >>> 24, A[$ + 1] = W >>> 16 & 255, A[$ + 2] = W >>> 8 & 255, A[$ + 3] = W & 255) : (A[$ + 3] = W >>> 24, A[$ + 2] = W >>> 16 & 255, A[$ + 1] = W >>> 8 & 255, A[$] = W & 255);
+ }
+ return A;
+ }
+ _.split32 = s;
+ function v(C, E) {
+ return C >>> E | C << 32 - E;
+ }
+ _.rotr32 = v;
+ function c(C, E) {
+ return C << E | C >>> 32 - E;
+ }
+ _.rotl32 = c;
+ function a(C, E) {
+ return C + E >>> 0;
+ }
+ _.sum32 = a;
+ function r(C, E, A) {
+ return C + E + A >>> 0;
+ }
+ _.sum32_3 = r;
+ function t(C, E, A, L) {
+ return C + E + A + L >>> 0;
+ }
+ _.sum32_4 = t;
+ function i(C, E, A, L, $) {
+ return C + E + A + L + $ >>> 0;
+ }
+ _.sum32_5 = i;
+ function n(C, E, A, L) {
+ var $ = C[E], W = C[E + 1], U = L + W >>> 0, D = (U < L ? 1 : 0) + A + $;
+ C[E] = D >>> 0, C[E + 1] = U;
+ }
+ _.sum64 = n;
+ function o(C, E, A, L) {
+ var $ = E + L >>> 0, W = ($ < E ? 1 : 0) + C + A;
+ return W >>> 0;
+ }
+ _.sum64_hi = o;
+ function p(C, E, A, L) {
+ var $ = E + L;
+ return $ >>> 0;
+ }
+ _.sum64_lo = p;
+ function O(C, E, A, L, $, W, U, D) {
+ var B = 0, j = E;
+ j = j + L >>> 0, B += j < E ? 1 : 0, j = j + W >>> 0, B += j < W ? 1 : 0, j = j + D >>> 0, B += j < D ? 1 : 0;
+ var V = C + A + $ + U + B;
+ return V >>> 0;
+ }
+ _.sum64_4_hi = O;
+ function P(C, E, A, L, $, W, U, D) {
+ var B = E + L + W + D;
+ return B >>> 0;
+ }
+ _.sum64_4_lo = P;
+ function F(C, E, A, L, $, W, U, D, B, j) {
+ var V = 0, re = E;
+ re = re + L >>> 0, V += re < E ? 1 : 0, re = re + W >>> 0, V += re < W ? 1 : 0, re = re + D >>> 0, V += re < D ? 1 : 0, re = re + j >>> 0, V += re < j ? 1 : 0;
+ var ee = C + A + $ + U + B + V;
+ return ee >>> 0;
+ }
+ _.sum64_5_hi = F;
+ function z(C, E, A, L, $, W, U, D, B, j) {
+ var V = E + L + W + D + j;
+ return V >>> 0;
+ }
+ _.sum64_5_lo = z;
+ function N(C, E, A) {
+ var L = E << 32 - A | C >>> A;
+ return L >>> 0;
+ }
+ _.rotr64_hi = N;
+ function M(C, E, A) {
+ var L = C << 32 - A | E >>> A;
+ return L >>> 0;
+ }
+ _.rotr64_lo = M;
+ function I(C, E, A) {
+ return C >>> A;
+ }
+ _.shr64_hi = I;
+ function R(C, E, A) {
+ var L = C << 32 - A | E >>> A;
+ return L >>> 0;
+ }
+ _.shr64_lo = R;
+ }, { inherits: 387, "minimalistic-assert": 437 }], 384: [function(e, x, _) {
+ var u = e("hash.js"), m = e("minimalistic-crypto-utils"), g = e("minimalistic-assert");
+ function b(w) {
+ if (!(this instanceof b))
+ return new b(w);
+ this.hash = w.hash, this.predResist = !!w.predResist, this.outLen = this.hash.outSize, this.minEntropy = w.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null;
+ var f = m.toArray(w.entropy, w.entropyEnc || "hex"), y = m.toArray(w.nonce, w.nonceEnc || "hex"), h = m.toArray(w.pers, w.persEnc || "hex");
+ g(f.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(f, y, h);
+ }
+ x.exports = b, b.prototype._init = function(f, y, h) {
+ var l = f.concat(y).concat(h);
+ this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8);
+ for (var d = 0; d < this.V.length; d++)
+ this.K[d] = 0, this.V[d] = 1;
+ this._update(l), this._reseed = 1, this.reseedInterval = 281474976710656;
+ }, b.prototype._hmac = function() {
+ return new u.hmac(this.hash, this.K);
+ }, b.prototype._update = function(f) {
+ var y = this._hmac().update(this.V).update([0]);
+ f && (y = y.update(f)), this.K = y.digest(), this.V = this._hmac().update(this.V).digest(), f && (this.K = this._hmac().update(this.V).update([1]).update(f).digest(), this.V = this._hmac().update(this.V).digest());
+ }, b.prototype.reseed = function(f, y, h, l) {
+ typeof y != "string" && (l = h, h = y, y = null), f = m.toArray(f, y), h = m.toArray(h, l), g(f.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(f.concat(h || [])), this._reseed = 1;
+ }, b.prototype.generate = function(f, y, h, l) {
+ if (this._reseed > this.reseedInterval)
+ throw new Error("Reseed is required");
+ typeof y != "string" && (l = h, h = y, y = null), h && (h = m.toArray(h, l || "hex"), this._update(h));
+ for (var d = []; d.length < f; )
+ this.V = this._hmac().update(this.V).digest(), d = d.concat(this.V);
+ var s = d.slice(0, f);
+ return this._update(h), this._reseed++, m.encode(s, y);
+ };
+ }, { "hash.js": 372, "minimalistic-assert": 437, "minimalistic-crypto-utils": 438 }], 385: [function(e, x, _) {
+ _.read = function(u, m, g, b, w) {
+ var f, y, h = w * 8 - b - 1, l = (1 << h) - 1, d = l >> 1, s = -7, v = g ? w - 1 : 0, c = g ? -1 : 1, a = u[m + v];
+ for (v += c, f = a & (1 << -s) - 1, a >>= -s, s += h; s > 0; f = f * 256 + u[m + v], v += c, s -= 8)
+ ;
+ for (y = f & (1 << -s) - 1, f >>= -s, s += b; s > 0; y = y * 256 + u[m + v], v += c, s -= 8)
+ ;
+ if (f === 0)
+ f = 1 - d;
+ else {
+ if (f === l)
+ return y ? NaN : (a ? -1 : 1) * (1 / 0);
+ y = y + Math.pow(2, b), f = f - d;
+ }
+ return (a ? -1 : 1) * y * Math.pow(2, f - b);
+ }, _.write = function(u, m, g, b, w, f) {
+ var y, h, l, d = f * 8 - w - 1, s = (1 << d) - 1, v = s >> 1, c = w === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, a = b ? 0 : f - 1, r = b ? 1 : -1, t = m < 0 || m === 0 && 1 / m < 0 ? 1 : 0;
+ for (m = Math.abs(m), isNaN(m) || m === 1 / 0 ? (h = isNaN(m) ? 1 : 0, y = s) : (y = Math.floor(Math.log(m) / Math.LN2), m * (l = Math.pow(2, -y)) < 1 && (y--, l *= 2), y + v >= 1 ? m += c / l : m += c * Math.pow(2, 1 - v), m * l >= 2 && (y++, l /= 2), y + v >= s ? (h = 0, y = s) : y + v >= 1 ? (h = (m * l - 1) * Math.pow(2, w), y = y + v) : (h = m * Math.pow(2, v - 1) * Math.pow(2, w), y = 0)); w >= 8; u[g + a] = h & 255, a += r, h /= 256, w -= 8)
+ ;
+ for (y = y << w | h, d += w; d > 0; u[g + a] = y & 255, a += r, y /= 256, d -= 8)
+ ;
+ u[g + a - r] |= t * 128;
+ };
+ }, {}], 386: [function(e, x, _) {
+ (function(u) {
+ var m = u.MutationObserver || u.WebKitMutationObserver, g;
+ if (m) {
+ var b = 0, w = new m(d), f = u.document.createTextNode("");
+ w.observe(f, {
+ characterData: !0
+ }), g = function() {
+ f.data = b = ++b % 2;
+ };
+ } else if (!u.setImmediate && typeof u.MessageChannel != "undefined") {
+ var y = new u.MessageChannel();
+ y.port1.onmessage = d, g = function() {
+ y.port2.postMessage(0);
+ };
+ } else
+ "document" in u && "onreadystatechange" in u.document.createElement("script") ? g = function() {
+ var c = u.document.createElement("script");
+ c.onreadystatechange = function() {
+ d(), c.onreadystatechange = null, c.parentNode.removeChild(c), c = null;
+ }, u.document.documentElement.appendChild(c);
+ } : g = function() {
+ setTimeout(d, 0);
+ };
+ var h, l = [];
+ function d() {
+ h = !0;
+ for (var v, c, a = l.length; a; ) {
+ for (c = l, l = [], v = -1; ++v < a; )
+ c[v]();
+ a = l.length;
+ }
+ h = !1;
+ }
+ x.exports = s;
+ function s(v) {
+ l.push(v) === 1 && !h && g();
+ }
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 387: [function(e, x, _) {
+ typeof Object.create == "function" ? x.exports = function(m, g) {
+ g && (m.super_ = g, m.prototype = Object.create(g.prototype, {
+ constructor: {
+ value: m,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ }));
+ } : x.exports = function(m, g) {
+ if (g) {
+ m.super_ = g;
+ var b = function() {
+ };
+ b.prototype = g.prototype, m.prototype = new b(), m.prototype.constructor = m;
+ }
+ };
+ }, {}], 388: [function(e, x, _) {
+ /*!
+ * Determine if an object is a Buffer
+ *
+ * @author Feross Aboukhadijeh
+ * @license MIT
+ */
+ x.exports = function(g) {
+ return g != null && (u(g) || m(g) || !!g._isBuffer);
+ };
+ function u(g) {
+ return !!g.constructor && typeof g.constructor.isBuffer == "function" && g.constructor.isBuffer(g);
+ }
+ function m(g) {
+ return typeof g.readFloatLE == "function" && typeof g.slice == "function" && u(g.slice(0, 0));
+ }
+ }, {}], 389: [function(e, x, _) {
+ var u = {}.toString;
+ x.exports = Array.isArray || function(m) {
+ return u.call(m) == "[object Array]";
+ };
+ }, {}], 390: [function(e, x, _) {
+ var u = e("./utils"), m = e("./support"), g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+ _.encode = function(b) {
+ for (var w = [], f, y, h, l, d, s, v, c = 0, a = b.length, r = a, t = u.getTypeOf(b) !== "string"; c < b.length; )
+ r = a - c, t ? (f = b[c++], y = c < a ? b[c++] : 0, h = c < a ? b[c++] : 0) : (f = b.charCodeAt(c++), y = c < a ? b.charCodeAt(c++) : 0, h = c < a ? b.charCodeAt(c++) : 0), l = f >> 2, d = (f & 3) << 4 | y >> 4, s = r > 1 ? (y & 15) << 2 | h >> 6 : 64, v = r > 2 ? h & 63 : 64, w.push(g.charAt(l) + g.charAt(d) + g.charAt(s) + g.charAt(v));
+ return w.join("");
+ }, _.decode = function(b) {
+ var w, f, y, h, l, d, s, v = 0, c = 0, a = "data:";
+ if (b.substr(0, a.length) === a)
+ throw new Error("Invalid base64 input, it looks like a data url.");
+ b = b.replace(/[^A-Za-z0-9\+\/\=]/g, "");
+ var r = b.length * 3 / 4;
+ if (b.charAt(b.length - 1) === g.charAt(64) && r--, b.charAt(b.length - 2) === g.charAt(64) && r--, r % 1 !== 0)
+ throw new Error("Invalid base64 input, bad content length.");
+ var t;
+ for (m.uint8array ? t = new Uint8Array(r | 0) : t = new Array(r | 0); v < b.length; )
+ h = g.indexOf(b.charAt(v++)), l = g.indexOf(b.charAt(v++)), d = g.indexOf(b.charAt(v++)), s = g.indexOf(b.charAt(v++)), w = h << 2 | l >> 4, f = (l & 15) << 4 | d >> 2, y = (d & 3) << 6 | s, t[c++] = w, d !== 64 && (t[c++] = f), s !== 64 && (t[c++] = y);
+ return t;
+ };
+ }, { "./support": 419, "./utils": 421 }], 391: [function(e, x, _) {
+ var u = e("./external"), m = e("./stream/DataWorker"), b = e("./stream/DataLengthProbe"), g = e("./stream/Crc32Probe"), b = e("./stream/DataLengthProbe");
+ function w(f, y, h, l, d) {
+ this.compressedSize = f, this.uncompressedSize = y, this.crc32 = h, this.compression = l, this.compressedContent = d;
+ }
+ w.prototype = {
+ /**
+ * Create a worker to get the uncompressed content.
+ * @return {GenericWorker} the worker.
+ */
+ getContentWorker: function() {
+ var y = new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")), h = this;
+ return y.on("end", function() {
+ if (this.streamInfo.data_length !== h.uncompressedSize)
+ throw new Error("Bug : uncompressed data size mismatch");
+ }), y;
+ },
+ /**
+ * Create a worker to get the compressed content.
+ * @return {GenericWorker} the worker.
+ */
+ getCompressedWorker: function() {
+ return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
+ }
+ }, w.createWorkerFrom = function(f, y, h) {
+ return f.pipe(new g()).pipe(new b("uncompressedSize")).pipe(y.compressWorker(h)).pipe(new b("compressedSize")).withStreamInfo("compression", y);
+ }, x.exports = w;
+ }, { "./external": 395, "./stream/Crc32Probe": 414, "./stream/DataLengthProbe": 415, "./stream/DataWorker": 416 }], 392: [function(e, x, _) {
+ var u = e("./stream/GenericWorker");
+ _.STORE = {
+ magic: "\0\0",
+ compressWorker: function(g) {
+ return new u("STORE compression");
+ },
+ uncompressWorker: function() {
+ return new u("STORE decompression");
+ }
+ }, _.DEFLATE = e("./flate");
+ }, { "./flate": 396, "./stream/GenericWorker": 417 }], 393: [function(e, x, _) {
+ var u = e("./utils");
+ function m() {
+ for (var f, y = [], h = 0; h < 256; h++) {
+ f = h;
+ for (var l = 0; l < 8; l++)
+ f = f & 1 ? 3988292384 ^ f >>> 1 : f >>> 1;
+ y[h] = f;
+ }
+ return y;
+ }
+ var g = m();
+ function b(f, y, h, l) {
+ var d = g, s = l + h;
+ f = f ^ -1;
+ for (var v = l; v < s; v++)
+ f = f >>> 8 ^ d[(f ^ y[v]) & 255];
+ return f ^ -1;
+ }
+ function w(f, y, h, l) {
+ var d = g, s = l + h;
+ f = f ^ -1;
+ for (var v = l; v < s; v++)
+ f = f >>> 8 ^ d[(f ^ y.charCodeAt(v)) & 255];
+ return f ^ -1;
+ }
+ x.exports = function(y, h) {
+ if (typeof y == "undefined" || !y.length)
+ return 0;
+ var l = u.getTypeOf(y) !== "string";
+ return l ? b(h | 0, y, y.length, 0) : w(h | 0, y, y.length, 0);
+ };
+ }, { "./utils": 421 }], 394: [function(e, x, _) {
+ _.base64 = !1, _.binary = !1, _.dir = !1, _.createFolders = !0, _.date = null, _.compression = null, _.compressionOptions = null, _.comment = null, _.unixPermissions = null, _.dosPermissions = null;
+ }, {}], 395: [function(e, x, _) {
+ var u = null;
+ typeof Promise != "undefined" ? u = Promise : u = e("lie"), x.exports = {
+ Promise: u
+ };
+ }, { lie: 425 }], 396: [function(e, x, _) {
+ var u = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Uint32Array != "undefined", m = e("pako"), g = e("./utils"), b = e("./stream/GenericWorker"), w = u ? "uint8array" : "array";
+ _.magic = "\b\0";
+ function f(y, h) {
+ b.call(this, "FlateWorker/" + y), this._pako = null, this._pakoAction = y, this._pakoOptions = h, this.meta = {};
+ }
+ g.inherits(f, b), f.prototype.processChunk = function(y) {
+ this.meta = y.meta, this._pako === null && this._createPako(), this._pako.push(g.transformTo(w, y.data), !1);
+ }, f.prototype.flush = function() {
+ b.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
+ }, f.prototype.cleanUp = function() {
+ b.prototype.cleanUp.call(this), this._pako = null;
+ }, f.prototype._createPako = function() {
+ this._pako = new m[this._pakoAction]({
+ raw: !0,
+ level: this._pakoOptions.level || -1
+ // default compression
+ });
+ var y = this;
+ this._pako.onData = function(h) {
+ y.push({
+ data: h,
+ meta: y.meta
+ });
+ };
+ }, _.compressWorker = function(y) {
+ return new f("Deflate", y);
+ }, _.uncompressWorker = function() {
+ return new f("Inflate", {});
+ };
+ }, { "./stream/GenericWorker": 417, "./utils": 421, pako: 439 }], 397: [function(e, x, _) {
+ var u = e("../utils"), m = e("../stream/GenericWorker"), g = e("../utf8"), b = e("../crc32"), w = e("../signature"), f = function(a, r) {
+ var t = "", i;
+ for (i = 0; i < r; i++)
+ t += String.fromCharCode(a & 255), a = a >>> 8;
+ return t;
+ }, y = function(a, r) {
+ var t = a;
+ return a || (t = r ? 16893 : 33204), (t & 65535) << 16;
+ }, h = function(a, r) {
+ return (a || 0) & 63;
+ }, l = function(a, r, t, i, n, o) {
+ var p = a.file, O = a.compression, P = o !== g.utf8encode, F = u.transformTo("string", o(p.name)), z = u.transformTo("string", g.utf8encode(p.name)), N = p.comment, M = u.transformTo("string", o(N)), I = u.transformTo("string", g.utf8encode(N)), R = z.length !== p.name.length, C = I.length !== N.length, E, A, L = "", $ = "", W = "", U = p.dir, D = p.date, B = {
+ crc32: 0,
+ compressedSize: 0,
+ uncompressedSize: 0
+ };
+ (!r || t) && (B.crc32 = a.crc32, B.compressedSize = a.compressedSize, B.uncompressedSize = a.uncompressedSize);
+ var j = 0;
+ r && (j |= 8), !P && (R || C) && (j |= 2048);
+ var V = 0, re = 0;
+ U && (V |= 16), n === "UNIX" ? (re = 798, V |= y(p.unixPermissions, U)) : (re = 20, V |= h(p.dosPermissions)), E = D.getUTCHours(), E = E << 6, E = E | D.getUTCMinutes(), E = E << 5, E = E | D.getUTCSeconds() / 2, A = D.getUTCFullYear() - 1980, A = A << 4, A = A | D.getUTCMonth() + 1, A = A << 5, A = A | D.getUTCDate(), R && ($ = // Version
+ f(1, 1) + // NameCRC32
+ f(b(F), 4) + // UnicodeName
+ z, L += // Info-ZIP Unicode Path Extra Field
+ "up" + // size
+ f($.length, 2) + // content
+ $), C && (W = // Version
+ f(1, 1) + // CommentCRC32
+ f(b(M), 4) + // UnicodeName
+ I, L += // Info-ZIP Unicode Path Extra Field
+ "uc" + // size
+ f(W.length, 2) + // content
+ W);
+ var ee = "";
+ ee += `
+\0`, ee += f(j, 2), ee += O.magic, ee += f(E, 2), ee += f(A, 2), ee += f(B.crc32, 4), ee += f(B.compressedSize, 4), ee += f(B.uncompressedSize, 4), ee += f(F.length, 2), ee += f(L.length, 2);
+ var ce = w.LOCAL_FILE_HEADER + ee + F + L, ve = w.CENTRAL_FILE_HEADER + // version made by (00: DOS)
+ f(re, 2) + // file header (common to file and central directory)
+ ee + // file comment length
+ f(M.length, 2) + // disk number start
+ "\0\0\0\0" + // external file attributes
+ f(V, 4) + // relative offset of local header
+ f(i, 4) + // file name
+ F + // extra field
+ L + // file comment
+ M;
+ return {
+ fileRecord: ce,
+ dirRecord: ve
+ };
+ }, d = function(a, r, t, i, n) {
+ var o = "", p = u.transformTo("string", n(i));
+ return o = w.CENTRAL_DIRECTORY_END + // number of this disk
+ "\0\0\0\0" + // total number of entries in the central directory on this disk
+ f(a, 2) + // total number of entries in the central directory
+ f(a, 2) + // size of the central directory 4 bytes
+ f(r, 4) + // offset of start of central directory with respect to the starting disk number
+ f(t, 4) + // .ZIP file comment length
+ f(p.length, 2) + // .ZIP file comment
+ p, o;
+ }, s = function(a) {
+ var r = "";
+ return r = w.DATA_DESCRIPTOR + // crc-32 4 bytes
+ f(a.crc32, 4) + // compressed size 4 bytes
+ f(a.compressedSize, 4) + // uncompressed size 4 bytes
+ f(a.uncompressedSize, 4), r;
+ };
+ function v(c, a, r, t) {
+ m.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = a, this.zipPlatform = r, this.encodeFileName = t, this.streamFiles = c, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
+ }
+ u.inherits(v, m), v.prototype.push = function(c) {
+ var a = c.meta.percent || 0, r = this.entriesCount, t = this._sources.length;
+ this.accumulate ? this.contentBuffer.push(c) : (this.bytesWritten += c.data.length, m.prototype.push.call(this, {
+ data: c.data,
+ meta: {
+ currentFile: this.currentFile,
+ percent: r ? (a + 100 * (r - t - 1)) / r : 100
+ }
+ }));
+ }, v.prototype.openedSource = function(c) {
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = c.file.name;
+ var a = this.streamFiles && !c.file.dir;
+ if (a) {
+ var r = l(c, a, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
+ this.push({
+ data: r.fileRecord,
+ meta: {
+ percent: 0
+ }
+ });
+ } else
+ this.accumulate = !0;
+ }, v.prototype.closedSource = function(c) {
+ this.accumulate = !1;
+ var a = this.streamFiles && !c.file.dir, r = l(c, a, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
+ if (this.dirRecords.push(r.dirRecord), a)
+ this.push({
+ data: s(c),
+ meta: {
+ percent: 100
+ }
+ });
+ else
+ for (this.push({
+ data: r.fileRecord,
+ meta: {
+ percent: 0
+ }
+ }); this.contentBuffer.length; )
+ this.push(this.contentBuffer.shift());
+ this.currentFile = null;
+ }, v.prototype.flush = function() {
+ for (var c = this.bytesWritten, a = 0; a < this.dirRecords.length; a++)
+ this.push({
+ data: this.dirRecords[a],
+ meta: {
+ percent: 100
+ }
+ });
+ var r = this.bytesWritten - c, t = d(this.dirRecords.length, r, c, this.zipComment, this.encodeFileName);
+ this.push({
+ data: t,
+ meta: {
+ percent: 100
+ }
+ });
+ }, v.prototype.prepareNextSource = function() {
+ this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
+ }, v.prototype.registerPrevious = function(c) {
+ this._sources.push(c);
+ var a = this;
+ return c.on("data", function(r) {
+ a.processChunk(r);
+ }), c.on("end", function() {
+ a.closedSource(a.previous.streamInfo), a._sources.length ? a.prepareNextSource() : a.end();
+ }), c.on("error", function(r) {
+ a.error(r);
+ }), this;
+ }, v.prototype.resume = function() {
+ if (!m.prototype.resume.call(this))
+ return !1;
+ if (!this.previous && this._sources.length)
+ return this.prepareNextSource(), !0;
+ if (!this.previous && !this._sources.length && !this.generatedError)
+ return this.end(), !0;
+ }, v.prototype.error = function(c) {
+ var a = this._sources;
+ if (!m.prototype.error.call(this, c))
+ return !1;
+ for (var r = 0; r < a.length; r++)
+ try {
+ a[r].error(c);
+ } catch (t) {
+ }
+ return !0;
+ }, v.prototype.lock = function() {
+ m.prototype.lock.call(this);
+ for (var c = this._sources, a = 0; a < c.length; a++)
+ c[a].lock();
+ }, x.exports = v;
+ }, { "../crc32": 393, "../signature": 412, "../stream/GenericWorker": 417, "../utf8": 420, "../utils": 421 }], 398: [function(e, x, _) {
+ var u = e("../compressions"), m = e("./ZipFileWorker"), g = function(w, f) {
+ var y = w || f, h = u[y];
+ if (!h)
+ throw new Error(y + " is not a valid compression method !");
+ return h;
+ };
+ _.generateWorker = function(b, w, f) {
+ var y = new m(w.streamFiles, f, w.platform, w.encodeFileName), h = 0;
+ try {
+ b.forEach(function(l, d) {
+ h++;
+ var s = g(d.options.compression, w.compression), v = d.options.compressionOptions || w.compressionOptions || {}, c = d.dir, a = d.date;
+ d._compressWorker(s, v).withStreamInfo("file", {
+ name: l,
+ dir: c,
+ date: a,
+ comment: d.comment || "",
+ unixPermissions: d.unixPermissions,
+ dosPermissions: d.dosPermissions
+ }).pipe(y);
+ }), y.entriesCount = h;
+ } catch (l) {
+ y.error(l);
+ }
+ return y;
+ };
+ }, { "../compressions": 392, "./ZipFileWorker": 397 }], 399: [function(e, x, _) {
+ function u() {
+ if (!(this instanceof u))
+ return new u();
+ if (arguments.length)
+ throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
+ this.files = {}, this.comment = null, this.root = "", this.clone = function() {
+ var m = new u();
+ for (var g in this)
+ typeof this[g] != "function" && (m[g] = this[g]);
+ return m;
+ };
+ }
+ u.prototype = e("./object"), u.prototype.loadAsync = e("./load"), u.support = e("./support"), u.defaults = e("./defaults"), u.version = "3.5.0", u.loadAsync = function(m, g) {
+ return new u().loadAsync(m, g);
+ }, u.external = e("./external"), x.exports = u;
+ }, { "./defaults": 394, "./external": 395, "./load": 400, "./object": 404, "./support": 419 }], 400: [function(e, x, _) {
+ var g = e("./utils"), u = e("./external"), m = e("./utf8"), g = e("./utils"), b = e("./zipEntries"), w = e("./stream/Crc32Probe"), f = e("./nodejsUtils");
+ function y(h) {
+ return new u.Promise(function(l, d) {
+ var s = h.decompressed.getContentWorker().pipe(new w());
+ s.on("error", function(v) {
+ d(v);
+ }).on("end", function() {
+ s.streamInfo.crc32 !== h.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : l();
+ }).resume();
+ });
+ }
+ x.exports = function(h, l) {
+ var d = this;
+ return l = g.extend(l || {}, {
+ base64: !1,
+ checkCRC32: !1,
+ optimizedBinaryString: !1,
+ createFolders: !1,
+ decodeFileName: m.utf8decode
+ }), f.isNode && f.isStream(h) ? u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : g.prepareContent("the loaded zip file", h, !0, l.optimizedBinaryString, l.base64).then(function(s) {
+ var v = new b(l);
+ return v.load(s), v;
+ }).then(function(v) {
+ var c = [u.Promise.resolve(v)], a = v.files;
+ if (l.checkCRC32)
+ for (var r = 0; r < a.length; r++)
+ c.push(y(a[r]));
+ return u.Promise.all(c);
+ }).then(function(v) {
+ for (var c = v.shift(), a = c.files, r = 0; r < a.length; r++) {
+ var t = a[r];
+ d.file(t.fileNameStr, t.decompressed, {
+ binary: !0,
+ optimizedBinaryString: !0,
+ date: t.date,
+ dir: t.dir,
+ comment: t.fileCommentStr.length ? t.fileCommentStr : null,
+ unixPermissions: t.unixPermissions,
+ dosPermissions: t.dosPermissions,
+ createFolders: l.createFolders
+ });
+ }
+ return c.zipComment.length && (d.comment = c.zipComment), d;
+ });
+ };
+ }, { "./external": 395, "./nodejsUtils": 403, "./stream/Crc32Probe": 414, "./utf8": 420, "./utils": 421, "./zipEntries": 422 }], 401: [function(e, x, _) {
+ var u = e("../utils"), m = e("../stream/GenericWorker");
+ function g(b, w) {
+ m.call(this, "Nodejs stream input adapter for " + b), this._upstreamEnded = !1, this._bindStream(w);
+ }
+ u.inherits(g, m), g.prototype._bindStream = function(b) {
+ var w = this;
+ this._stream = b, b.pause(), b.on("data", function(f) {
+ w.push({
+ data: f,
+ meta: {
+ percent: 0
+ }
+ });
+ }).on("error", function(f) {
+ w.isPaused ? this.generatedError = f : w.error(f);
+ }).on("end", function() {
+ w.isPaused ? w._upstreamEnded = !0 : w.end();
+ });
+ }, g.prototype.pause = function() {
+ return m.prototype.pause.call(this) ? (this._stream.pause(), !0) : !1;
+ }, g.prototype.resume = function() {
+ return m.prototype.resume.call(this) ? (this._upstreamEnded ? this.end() : this._stream.resume(), !0) : !1;
+ }, x.exports = g;
+ }, { "../stream/GenericWorker": 417, "../utils": 421 }], 402: [function(e, x, _) {
+ var u = e("readable-stream").Readable, m = e("../utils");
+ m.inherits(g, u);
+ function g(b, w, f) {
+ u.call(this, w), this._helper = b;
+ var y = this;
+ b.on("data", function(h, l) {
+ y.push(h) || y._helper.pause(), f && f(l);
+ }).on("error", function(h) {
+ y.emit("error", h);
+ }).on("end", function() {
+ y.push(null);
+ });
+ }
+ g.prototype._read = function() {
+ this._helper.resume();
+ }, x.exports = g;
+ }, { "../utils": 421, "readable-stream": 405 }], 403: [function(e, x, _) {
+ (function(u) {
+ x.exports = {
+ /**
+ * True if this is running in Nodejs, will be undefined in a browser.
+ * In a browser, browserify won't include this file and the whole module
+ * will be resolved an empty object.
+ */
+ isNode: typeof u != "undefined",
+ /**
+ * Create a new nodejs Buffer from an existing content.
+ * @param {Object} data the data to pass to the constructor.
+ * @param {String} encoding the encoding to use.
+ * @return {Buffer} a new Buffer.
+ */
+ newBufferFrom: function(g, b) {
+ if (u.from && u.from !== Uint8Array.from)
+ return u.from(g, b);
+ if (typeof g == "number")
+ throw new Error('The "data" argument must not be a number');
+ return new u(g, b);
+ },
+ /**
+ * Create a new nodejs Buffer with the specified size.
+ * @param {Integer} size the size of the buffer.
+ * @return {Buffer} a new Buffer.
+ */
+ allocBuffer: function(g) {
+ if (u.alloc)
+ return u.alloc(g);
+ var b = new u(g);
+ return b.fill(0), b;
+ },
+ /**
+ * Find out if an object is a Buffer.
+ * @param {Object} b the object to test.
+ * @return {Boolean} true if the object is a Buffer, false otherwise.
+ */
+ isBuffer: function(g) {
+ return u.isBuffer(g);
+ },
+ isStream: function(g) {
+ return g && typeof g.on == "function" && typeof g.pause == "function" && typeof g.resume == "function";
+ }
+ };
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216 }], 404: [function(e, x, _) {
+ var u = e("./utf8"), m = e("./utils"), g = e("./stream/GenericWorker"), b = e("./stream/StreamHelper"), w = e("./defaults"), f = e("./compressedObject"), y = e("./zipObject"), h = e("./generate"), l = e("./nodejsUtils"), d = e("./nodejs/NodejsStreamInputAdapter"), s = function(n, o, p) {
+ var O = m.getTypeOf(o), P, F = m.extend(p || {}, w);
+ F.date = F.date || /* @__PURE__ */ new Date(), F.compression !== null && (F.compression = F.compression.toUpperCase()), typeof F.unixPermissions == "string" && (F.unixPermissions = parseInt(F.unixPermissions, 8)), F.unixPermissions && F.unixPermissions & 16384 && (F.dir = !0), F.dosPermissions && F.dosPermissions & 16 && (F.dir = !0), F.dir && (n = c(n)), F.createFolders && (P = v(n)) && a.call(this, P, !0);
+ var z = O === "string" && F.binary === !1 && F.base64 === !1;
+ (!p || typeof p.binary == "undefined") && (F.binary = !z);
+ var N = o instanceof f && o.uncompressedSize === 0;
+ (N || F.dir || !o || o.length === 0) && (F.base64 = !1, F.binary = !0, o = "", F.compression = "STORE", O = "string");
+ var M = null;
+ o instanceof f || o instanceof g ? M = o : l.isNode && l.isStream(o) ? M = new d(n, o) : M = m.prepareContent(n, o, F.binary, F.optimizedBinaryString, F.base64);
+ var I = new y(n, M, F);
+ this.files[n] = I;
+ }, v = function(n) {
+ n.slice(-1) === "/" && (n = n.substring(0, n.length - 1));
+ var o = n.lastIndexOf("/");
+ return o > 0 ? n.substring(0, o) : "";
+ }, c = function(n) {
+ return n.slice(-1) !== "/" && (n += "/"), n;
+ }, a = function(n, o) {
+ return o = typeof o != "undefined" ? o : w.createFolders, n = c(n), this.files[n] || s.call(this, n, null, {
+ dir: !0,
+ createFolders: o
+ }), this.files[n];
+ };
+ function r(i) {
+ return Object.prototype.toString.call(i) === "[object RegExp]";
+ }
+ var t = {
+ /**
+ * @see loadAsync
+ */
+ load: function() {
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
+ },
+ /**
+ * Call a callback function for each entry at this folder level.
+ * @param {Function} cb the callback function:
+ * function (relativePath, file) {...}
+ * It takes 2 arguments : the relative path and the file.
+ */
+ forEach: function(n) {
+ var o, p, O;
+ for (o in this.files)
+ this.files.hasOwnProperty(o) && (O = this.files[o], p = o.slice(this.root.length, o.length), p && o.slice(0, this.root.length) === this.root && n(p, O));
+ },
+ /**
+ * Filter nested files/folders with the specified function.
+ * @param {Function} search the predicate to use :
+ * function (relativePath, file) {...}
+ * It takes 2 arguments : the relative path and the file.
+ * @return {Array} An array of matching elements.
+ */
+ filter: function(n) {
+ var o = [];
+ return this.forEach(function(p, O) {
+ n(p, O) && o.push(O);
+ }), o;
+ },
+ /**
+ * Add a file to the zip file, or search a file.
+ * @param {string|RegExp} name The name of the file to add (if data is defined),
+ * the name of the file to find (if no data) or a regex to match files.
+ * @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded
+ * @param {Object} o File options
+ * @return {JSZip|Object|Array} this JSZip object (when adding a file),
+ * a file (when searching by string) or an array of files (when searching by regex).
+ */
+ file: function(n, o, p) {
+ if (arguments.length === 1)
+ if (r(n)) {
+ var O = n;
+ return this.filter(function(F, z) {
+ return !z.dir && O.test(F);
+ });
+ } else {
+ var P = this.files[this.root + n];
+ return P && !P.dir ? P : null;
+ }
+ else
+ n = this.root + n, s.call(this, n, o, p);
+ return this;
+ },
+ /**
+ * Add a directory to the zip file, or search.
+ * @param {String|RegExp} arg The name of the directory to add, or a regex to search folders.
+ * @return {JSZip} an object with the new directory as the root, or an array containing matching folders.
+ */
+ folder: function(n) {
+ if (!n)
+ return this;
+ if (r(n))
+ return this.filter(function(P, F) {
+ return F.dir && n.test(P);
+ });
+ var o = this.root + n, p = a.call(this, o), O = this.clone();
+ return O.root = p.name, O;
+ },
+ /**
+ * Delete a file, or a directory and all sub-files, from the zip
+ * @param {string} name the name of the file to delete
+ * @return {JSZip} this JSZip object
+ */
+ remove: function(n) {
+ n = this.root + n;
+ var o = this.files[n];
+ if (o || (n.slice(-1) !== "/" && (n += "/"), o = this.files[n]), o && !o.dir)
+ delete this.files[n];
+ else
+ for (var p = this.filter(function(P, F) {
+ return F.name.slice(0, n.length) === n;
+ }), O = 0; O < p.length; O++)
+ delete this.files[p[O].name];
+ return this;
+ },
+ /**
+ * Generate the complete zip file
+ * @param {Object} options the options to generate the zip file :
+ * - compression, "STORE" by default.
+ * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
+ * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file
+ */
+ generate: function(n) {
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
+ },
+ /**
+ * Generate the complete zip file as an internal stream.
+ * @param {Object} options the options to generate the zip file :
+ * - compression, "STORE" by default.
+ * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob.
+ * @return {StreamHelper} the streamed zip file.
+ */
+ generateInternalStream: function(n) {
+ var o, p = {};
+ try {
+ if (p = m.extend(n || {}, {
+ streamFiles: !1,
+ compression: "STORE",
+ compressionOptions: null,
+ type: "",
+ platform: "DOS",
+ comment: null,
+ mimeType: "application/zip",
+ encodeFileName: u.utf8encode
+ }), p.type = p.type.toLowerCase(), p.compression = p.compression.toUpperCase(), p.type === "binarystring" && (p.type = "string"), !p.type)
+ throw new Error("No output type specified.");
+ m.checkSupport(p.type), (p.platform === "darwin" || p.platform === "freebsd" || p.platform === "linux" || p.platform === "sunos") && (p.platform = "UNIX"), p.platform === "win32" && (p.platform = "DOS");
+ var O = p.comment || this.comment || "";
+ o = h.generateWorker(this, p, O);
+ } catch (P) {
+ o = new g("error"), o.error(P);
+ }
+ return new b(o, p.type || "string", p.mimeType);
+ },
+ /**
+ * Generate the complete zip file asynchronously.
+ * @see generateInternalStream
+ */
+ generateAsync: function(n, o) {
+ return this.generateInternalStream(n).accumulate(o);
+ },
+ /**
+ * Generate the complete zip file asynchronously.
+ * @see generateInternalStream
+ */
+ generateNodeStream: function(n, o) {
+ return n = n || {}, n.type || (n.type = "nodebuffer"), this.generateInternalStream(n).toNodejsStream(o);
+ }
+ };
+ x.exports = t;
+ }, { "./compressedObject": 391, "./defaults": 394, "./generate": 398, "./nodejs/NodejsStreamInputAdapter": 401, "./nodejsUtils": 403, "./stream/GenericWorker": 417, "./stream/StreamHelper": 418, "./utf8": 420, "./utils": 421, "./zipObject": 424 }], 405: [function(e, x, _) {
+ x.exports = e("stream");
+ }, { stream: 506 }], 406: [function(e, x, _) {
+ var u = e("./DataReader"), m = e("../utils");
+ function g(b) {
+ u.call(this, b);
+ for (var w = 0; w < this.data.length; w++)
+ b[w] = b[w] & 255;
+ }
+ m.inherits(g, u), g.prototype.byteAt = function(b) {
+ return this.data[this.zero + b];
+ }, g.prototype.lastIndexOfSignature = function(b) {
+ for (var w = b.charCodeAt(0), f = b.charCodeAt(1), y = b.charCodeAt(2), h = b.charCodeAt(3), l = this.length - 4; l >= 0; --l)
+ if (this.data[l] === w && this.data[l + 1] === f && this.data[l + 2] === y && this.data[l + 3] === h)
+ return l - this.zero;
+ return -1;
+ }, g.prototype.readAndCheckSignature = function(b) {
+ var w = b.charCodeAt(0), f = b.charCodeAt(1), y = b.charCodeAt(2), h = b.charCodeAt(3), l = this.readData(4);
+ return w === l[0] && f === l[1] && y === l[2] && h === l[3];
+ }, g.prototype.readData = function(b) {
+ if (this.checkOffset(b), b === 0)
+ return [];
+ var w = this.data.slice(this.zero + this.index, this.zero + this.index + b);
+ return this.index += b, w;
+ }, x.exports = g;
+ }, { "../utils": 421, "./DataReader": 407 }], 407: [function(e, x, _) {
+ var u = e("../utils");
+ function m(g) {
+ this.data = g, this.length = g.length, this.index = 0, this.zero = 0;
+ }
+ m.prototype = {
+ /**
+ * Check that the offset will not go too far.
+ * @param {string} offset the additional offset to check.
+ * @throws {Error} an Error if the offset is out of bounds.
+ */
+ checkOffset: function(b) {
+ this.checkIndex(this.index + b);
+ },
+ /**
+ * Check that the specified index will not be too far.
+ * @param {string} newIndex the index to check.
+ * @throws {Error} an Error if the index is out of bounds.
+ */
+ checkIndex: function(b) {
+ if (this.length < this.zero + b || b < 0)
+ throw new Error("End of data reached (data length = " + this.length + ", asked index = " + b + "). Corrupted zip ?");
+ },
+ /**
+ * Change the index.
+ * @param {number} newIndex The new index.
+ * @throws {Error} if the new index is out of the data.
+ */
+ setIndex: function(b) {
+ this.checkIndex(b), this.index = b;
+ },
+ /**
+ * Skip the next n bytes.
+ * @param {number} n the number of bytes to skip.
+ * @throws {Error} if the new index is out of the data.
+ */
+ skip: function(b) {
+ this.setIndex(this.index + b);
+ },
+ /**
+ * Get the byte at the specified index.
+ * @param {number} i the index to use.
+ * @return {number} a byte.
+ */
+ byteAt: function(b) {
+ },
+ /**
+ * Get the next number with a given byte size.
+ * @param {number} size the number of bytes to read.
+ * @return {number} the corresponding number.
+ */
+ readInt: function(b) {
+ var w = 0, f;
+ for (this.checkOffset(b), f = this.index + b - 1; f >= this.index; f--)
+ w = (w << 8) + this.byteAt(f);
+ return this.index += b, w;
+ },
+ /**
+ * Get the next string with a given byte size.
+ * @param {number} size the number of bytes to read.
+ * @return {string} the corresponding string.
+ */
+ readString: function(b) {
+ return u.transformTo("string", this.readData(b));
+ },
+ /**
+ * Get raw data without conversion, bytes.
+ * @param {number} size the number of bytes to read.
+ * @return {Object} the raw data, implementation specific.
+ */
+ readData: function(b) {
+ },
+ /**
+ * Find the last occurrence of a zip signature (4 bytes).
+ * @param {string} sig the signature to find.
+ * @return {number} the index of the last occurrence, -1 if not found.
+ */
+ lastIndexOfSignature: function(b) {
+ },
+ /**
+ * Read the signature (4 bytes) at the current position and compare it with sig.
+ * @param {string} sig the expected signature
+ * @return {boolean} true if the signature matches, false otherwise.
+ */
+ readAndCheckSignature: function(b) {
+ },
+ /**
+ * Get the next date.
+ * @return {Date} the date.
+ */
+ readDate: function() {
+ var b = this.readInt(4);
+ return new Date(Date.UTC(
+ (b >> 25 & 127) + 1980,
+ // year
+ (b >> 21 & 15) - 1,
+ // month
+ b >> 16 & 31,
+ // day
+ b >> 11 & 31,
+ // hour
+ b >> 5 & 63,
+ // minute
+ (b & 31) << 1
+ ));
+ }
+ }, x.exports = m;
+ }, { "../utils": 421 }], 408: [function(e, x, _) {
+ var u = e("./Uint8ArrayReader"), m = e("../utils");
+ function g(b) {
+ u.call(this, b);
+ }
+ m.inherits(g, u), g.prototype.readData = function(b) {
+ this.checkOffset(b);
+ var w = this.data.slice(this.zero + this.index, this.zero + this.index + b);
+ return this.index += b, w;
+ }, x.exports = g;
+ }, { "../utils": 421, "./Uint8ArrayReader": 410 }], 409: [function(e, x, _) {
+ var u = e("./DataReader"), m = e("../utils");
+ function g(b) {
+ u.call(this, b);
+ }
+ m.inherits(g, u), g.prototype.byteAt = function(b) {
+ return this.data.charCodeAt(this.zero + b);
+ }, g.prototype.lastIndexOfSignature = function(b) {
+ return this.data.lastIndexOf(b) - this.zero;
+ }, g.prototype.readAndCheckSignature = function(b) {
+ var w = this.readData(4);
+ return b === w;
+ }, g.prototype.readData = function(b) {
+ this.checkOffset(b);
+ var w = this.data.slice(this.zero + this.index, this.zero + this.index + b);
+ return this.index += b, w;
+ }, x.exports = g;
+ }, { "../utils": 421, "./DataReader": 407 }], 410: [function(e, x, _) {
+ var u = e("./ArrayReader"), m = e("../utils");
+ function g(b) {
+ u.call(this, b);
+ }
+ m.inherits(g, u), g.prototype.readData = function(b) {
+ if (this.checkOffset(b), b === 0)
+ return new Uint8Array(0);
+ var w = this.data.subarray(this.zero + this.index, this.zero + this.index + b);
+ return this.index += b, w;
+ }, x.exports = g;
+ }, { "../utils": 421, "./ArrayReader": 406 }], 411: [function(e, x, _) {
+ var u = e("../utils"), m = e("../support"), g = e("./ArrayReader"), b = e("./StringReader"), w = e("./NodeBufferReader"), f = e("./Uint8ArrayReader");
+ x.exports = function(y) {
+ var h = u.getTypeOf(y);
+ return u.checkSupport(h), h === "string" && !m.uint8array ? new b(y) : h === "nodebuffer" ? new w(y) : m.uint8array ? new f(u.transformTo("uint8array", y)) : new g(u.transformTo("array", y));
+ };
+ }, { "../support": 419, "../utils": 421, "./ArrayReader": 406, "./NodeBufferReader": 408, "./StringReader": 409, "./Uint8ArrayReader": 410 }], 412: [function(e, x, _) {
+ _.LOCAL_FILE_HEADER = "PK", _.CENTRAL_FILE_HEADER = "PK", _.CENTRAL_DIRECTORY_END = "PK", _.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", _.ZIP64_CENTRAL_DIRECTORY_END = "PK", _.DATA_DESCRIPTOR = "PK\x07\b";
+ }, {}], 413: [function(e, x, _) {
+ var u = e("./GenericWorker"), m = e("../utils");
+ function g(b) {
+ u.call(this, "ConvertWorker to " + b), this.destType = b;
+ }
+ m.inherits(g, u), g.prototype.processChunk = function(b) {
+ this.push({
+ data: m.transformTo(this.destType, b.data),
+ meta: b.meta
+ });
+ }, x.exports = g;
+ }, { "../utils": 421, "./GenericWorker": 417 }], 414: [function(e, x, _) {
+ var u = e("./GenericWorker"), m = e("../crc32"), g = e("../utils");
+ function b() {
+ u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
+ }
+ g.inherits(b, u), b.prototype.processChunk = function(w) {
+ this.streamInfo.crc32 = m(w.data, this.streamInfo.crc32 || 0), this.push(w);
+ }, x.exports = b;
+ }, { "../crc32": 393, "../utils": 421, "./GenericWorker": 417 }], 415: [function(e, x, _) {
+ var u = e("../utils"), m = e("./GenericWorker");
+ function g(b) {
+ m.call(this, "DataLengthProbe for " + b), this.propName = b, this.withStreamInfo(b, 0);
+ }
+ u.inherits(g, m), g.prototype.processChunk = function(b) {
+ if (b) {
+ var w = this.streamInfo[this.propName] || 0;
+ this.streamInfo[this.propName] = w + b.data.length;
+ }
+ m.prototype.processChunk.call(this, b);
+ }, x.exports = g;
+ }, { "../utils": 421, "./GenericWorker": 417 }], 416: [function(e, x, _) {
+ var u = e("../utils"), m = e("./GenericWorker"), g = 16 * 1024;
+ function b(w) {
+ m.call(this, "DataWorker");
+ var f = this;
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, w.then(function(y) {
+ f.dataIsReady = !0, f.data = y, f.max = y && y.length || 0, f.type = u.getTypeOf(y), f.isPaused || f._tickAndRepeat();
+ }, function(y) {
+ f.error(y);
+ });
+ }
+ u.inherits(b, m), b.prototype.cleanUp = function() {
+ m.prototype.cleanUp.call(this), this.data = null;
+ }, b.prototype.resume = function() {
+ return m.prototype.resume.call(this) ? (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0) : !1;
+ }, b.prototype._tickAndRepeat = function() {
+ this._tickScheduled = !1, !(this.isPaused || this.isFinished) && (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
+ }, b.prototype._tick = function() {
+ if (this.isPaused || this.isFinished)
+ return !1;
+ var w = g, f = null, y = Math.min(this.max, this.index + w);
+ if (this.index >= this.max)
+ return this.end();
+ switch (this.type) {
+ case "string":
+ f = this.data.substring(this.index, y);
+ break;
+ case "uint8array":
+ f = this.data.subarray(this.index, y);
+ break;
+ case "array":
+ case "nodebuffer":
+ f = this.data.slice(this.index, y);
+ break;
+ }
+ return this.index = y, this.push({
+ data: f,
+ meta: {
+ percent: this.max ? this.index / this.max * 100 : 0
+ }
+ });
+ }, x.exports = b;
+ }, { "../utils": 421, "./GenericWorker": 417 }], 417: [function(e, x, _) {
+ function u(m) {
+ this.name = m || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = {
+ data: [],
+ end: [],
+ error: []
+ }, this.previous = null;
+ }
+ u.prototype = {
+ /**
+ * Push a chunk to the next workers.
+ * @param {Object} chunk the chunk to push
+ */
+ push: function(g) {
+ this.emit("data", g);
+ },
+ /**
+ * End the stream.
+ * @return {Boolean} true if this call ended the worker, false otherwise.
+ */
+ end: function() {
+ if (this.isFinished)
+ return !1;
+ this.flush();
+ try {
+ this.emit("end"), this.cleanUp(), this.isFinished = !0;
+ } catch (g) {
+ this.emit("error", g);
+ }
+ return !0;
+ },
+ /**
+ * End the stream with an error.
+ * @param {Error} e the error which caused the premature end.
+ * @return {Boolean} true if this call ended the worker with an error, false otherwise.
+ */
+ error: function(g) {
+ return this.isFinished ? !1 : (this.isPaused ? this.generatedError = g : (this.isFinished = !0, this.emit("error", g), this.previous && this.previous.error(g), this.cleanUp()), !0);
+ },
+ /**
+ * Add a callback on an event.
+ * @param {String} name the name of the event (data, end, error)
+ * @param {Function} listener the function to call when the event is triggered
+ * @return {GenericWorker} the current object for chainability
+ */
+ on: function(g, b) {
+ return this._listeners[g].push(b), this;
+ },
+ /**
+ * Clean any references when a worker is ending.
+ */
+ cleanUp: function() {
+ this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
+ },
+ /**
+ * Trigger an event. This will call registered callback with the provided arg.
+ * @param {String} name the name of the event (data, end, error)
+ * @param {Object} arg the argument to call the callback with.
+ */
+ emit: function(g, b) {
+ if (this._listeners[g])
+ for (var w = 0; w < this._listeners[g].length; w++)
+ this._listeners[g][w].call(this, b);
+ },
+ /**
+ * Chain a worker with an other.
+ * @param {Worker} next the worker receiving events from the current one.
+ * @return {worker} the next worker for chainability
+ */
+ pipe: function(g) {
+ return g.registerPrevious(this);
+ },
+ /**
+ * Same as `pipe` in the other direction.
+ * Using an API with `pipe(next)` is very easy.
+ * Implementing the API with the point of view of the next one registering
+ * a source is easier, see the ZipFileWorker.
+ * @param {Worker} previous the previous worker, sending events to this one
+ * @return {Worker} the current worker for chainability
+ */
+ registerPrevious: function(g) {
+ if (this.isLocked)
+ throw new Error("The stream '" + this + "' has already been used.");
+ this.streamInfo = g.streamInfo, this.mergeStreamInfo(), this.previous = g;
+ var b = this;
+ return g.on("data", function(w) {
+ b.processChunk(w);
+ }), g.on("end", function() {
+ b.end();
+ }), g.on("error", function(w) {
+ b.error(w);
+ }), this;
+ },
+ /**
+ * Pause the stream so it doesn't send events anymore.
+ * @return {Boolean} true if this call paused the worker, false otherwise.
+ */
+ pause: function() {
+ return this.isPaused || this.isFinished ? !1 : (this.isPaused = !0, this.previous && this.previous.pause(), !0);
+ },
+ /**
+ * Resume a paused stream.
+ * @return {Boolean} true if this call resumed the worker, false otherwise.
+ */
+ resume: function() {
+ if (!this.isPaused || this.isFinished)
+ return !1;
+ this.isPaused = !1;
+ var g = !1;
+ return this.generatedError && (this.error(this.generatedError), g = !0), this.previous && this.previous.resume(), !g;
+ },
+ /**
+ * Flush any remaining bytes as the stream is ending.
+ */
+ flush: function() {
+ },
+ /**
+ * Process a chunk. This is usually the method overridden.
+ * @param {Object} chunk the chunk to process.
+ */
+ processChunk: function(g) {
+ this.push(g);
+ },
+ /**
+ * Add a key/value to be added in the workers chain streamInfo once activated.
+ * @param {String} key the key to use
+ * @param {Object} value the associated value
+ * @return {Worker} the current worker for chainability
+ */
+ withStreamInfo: function(g, b) {
+ return this.extraStreamInfo[g] = b, this.mergeStreamInfo(), this;
+ },
+ /**
+ * Merge this worker's streamInfo into the chain's streamInfo.
+ */
+ mergeStreamInfo: function() {
+ for (var g in this.extraStreamInfo)
+ this.extraStreamInfo.hasOwnProperty(g) && (this.streamInfo[g] = this.extraStreamInfo[g]);
+ },
+ /**
+ * Lock the stream to prevent further updates on the workers chain.
+ * After calling this method, all calls to pipe will fail.
+ */
+ lock: function() {
+ if (this.isLocked)
+ throw new Error("The stream '" + this + "' has already been used.");
+ this.isLocked = !0, this.previous && this.previous.lock();
+ },
+ /**
+ *
+ * Pretty print the workers chain.
+ */
+ toString: function() {
+ var g = "Worker " + this.name;
+ return this.previous ? this.previous + " -> " + g : g;
+ }
+ }, x.exports = u;
+ }, {}], 418: [function(e, x, _) {
+ (function(u) {
+ var m = e("../utils"), g = e("./ConvertWorker"), b = e("./GenericWorker"), w = e("../base64"), f = e("../support"), y = e("../external"), h = null;
+ if (f.nodestream)
+ try {
+ h = e("../nodejs/NodejsStreamOutputAdapter");
+ } catch (c) {
+ }
+ function l(c, a, r) {
+ switch (c) {
+ case "blob":
+ return m.newBlob(m.transformTo("arraybuffer", a), r);
+ case "base64":
+ return w.encode(a);
+ default:
+ return m.transformTo(c, a);
+ }
+ }
+ function d(c, a) {
+ var r, t = 0, i = null, n = 0;
+ for (r = 0; r < a.length; r++)
+ n += a[r].length;
+ switch (c) {
+ case "string":
+ return a.join("");
+ case "array":
+ return Array.prototype.concat.apply([], a);
+ case "uint8array":
+ for (i = new Uint8Array(n), r = 0; r < a.length; r++)
+ i.set(a[r], t), t += a[r].length;
+ return i;
+ case "nodebuffer":
+ return u.concat(a);
+ default:
+ throw new Error("concat : unsupported type '" + c + "'");
+ }
+ }
+ function s(c, a) {
+ return new y.Promise(function(r, t) {
+ var i = [], n = c._internalType, o = c._outputType, p = c._mimeType;
+ c.on("data", function(O, P) {
+ i.push(O), a && a(P);
+ }).on("error", function(O) {
+ i = [], t(O);
+ }).on("end", function() {
+ try {
+ var O = l(o, d(n, i), p);
+ r(O);
+ } catch (P) {
+ t(P);
+ }
+ i = [];
+ }).resume();
+ });
+ }
+ function v(c, a, r) {
+ var t = a;
+ switch (a) {
+ case "blob":
+ case "arraybuffer":
+ t = "uint8array";
+ break;
+ case "base64":
+ t = "string";
+ break;
+ }
+ try {
+ this._internalType = t, this._outputType = a, this._mimeType = r, m.checkSupport(t), this._worker = c.pipe(new g(t)), c.lock();
+ } catch (i) {
+ this._worker = new b("error"), this._worker.error(i);
+ }
+ }
+ v.prototype = {
+ /**
+ * Listen a StreamHelper, accumulate its content and concatenate it into a
+ * complete block.
+ * @param {Function} updateCb the update callback.
+ * @return Promise the promise for the accumulation.
+ */
+ accumulate: function(a) {
+ return s(this, a);
+ },
+ /**
+ * Add a listener on an event triggered on a stream.
+ * @param {String} evt the name of the event
+ * @param {Function} fn the listener
+ * @return {StreamHelper} the current helper.
+ */
+ on: function(a, r) {
+ var t = this;
+ return a === "data" ? this._worker.on(a, function(i) {
+ r.call(t, i.data, i.meta);
+ }) : this._worker.on(a, function() {
+ m.delay(r, arguments, t);
+ }), this;
+ },
+ /**
+ * Resume the flow of chunks.
+ * @return {StreamHelper} the current helper.
+ */
+ resume: function() {
+ return m.delay(this._worker.resume, [], this._worker), this;
+ },
+ /**
+ * Pause the flow of chunks.
+ * @return {StreamHelper} the current helper.
+ */
+ pause: function() {
+ return this._worker.pause(), this;
+ },
+ /**
+ * Return a nodejs stream for this helper.
+ * @param {Function} updateCb the update callback.
+ * @return {NodejsStreamOutputAdapter} the nodejs stream.
+ */
+ toNodejsStream: function(a) {
+ if (m.checkSupport("nodestream"), this._outputType !== "nodebuffer")
+ throw new Error(this._outputType + " is not supported by this method");
+ return new h(this, {
+ objectMode: this._outputType !== "nodebuffer"
+ }, a);
+ }
+ }, x.exports = v;
+ }).call(this, e("buffer").Buffer);
+ }, { "../base64": 390, "../external": 395, "../nodejs/NodejsStreamOutputAdapter": 402, "../support": 419, "../utils": 421, "./ConvertWorker": 413, "./GenericWorker": 417, buffer: 216 }], 419: [function(e, x, _) {
+ (function(u) {
+ if (_.base64 = !0, _.array = !0, _.string = !0, _.arraybuffer = typeof ArrayBuffer != "undefined" && typeof Uint8Array != "undefined", _.nodebuffer = typeof u != "undefined", _.uint8array = typeof Uint8Array != "undefined", typeof ArrayBuffer == "undefined")
+ _.blob = !1;
+ else {
+ var m = new ArrayBuffer(0);
+ try {
+ _.blob = new Blob([m], {
+ type: "application/zip"
+ }).size === 0;
+ } catch (w) {
+ try {
+ var g = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, b = new g();
+ b.append(m), _.blob = b.getBlob("application/zip").size === 0;
+ } catch (f) {
+ _.blob = !1;
+ }
+ }
+ }
+ try {
+ _.nodestream = !!e("readable-stream").Readable;
+ } catch (w) {
+ _.nodestream = !1;
+ }
+ }).call(this, e("buffer").Buffer);
+ }, { buffer: 216, "readable-stream": 405 }], 420: [function(e, x, _) {
+ for (var u = e("./utils"), m = e("./support"), g = e("./nodejsUtils"), b = e("./stream/GenericWorker"), w = new Array(256), f = 0; f < 256; f++)
+ w[f] = f >= 252 ? 6 : f >= 248 ? 5 : f >= 240 ? 4 : f >= 224 ? 3 : f >= 192 ? 2 : 1;
+ w[254] = w[254] = 1;
+ var y = function(c) {
+ var a, r, t, i, n, o = c.length, p = 0;
+ for (i = 0; i < o; i++)
+ r = c.charCodeAt(i), (r & 64512) === 55296 && i + 1 < o && (t = c.charCodeAt(i + 1), (t & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (t - 56320), i++)), p += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
+ for (m.uint8array ? a = new Uint8Array(p) : a = new Array(p), n = 0, i = 0; n < p; i++)
+ r = c.charCodeAt(i), (r & 64512) === 55296 && i + 1 < o && (t = c.charCodeAt(i + 1), (t & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (t - 56320), i++)), r < 128 ? a[n++] = r : r < 2048 ? (a[n++] = 192 | r >>> 6, a[n++] = 128 | r & 63) : r < 65536 ? (a[n++] = 224 | r >>> 12, a[n++] = 128 | r >>> 6 & 63, a[n++] = 128 | r & 63) : (a[n++] = 240 | r >>> 18, a[n++] = 128 | r >>> 12 & 63, a[n++] = 128 | r >>> 6 & 63, a[n++] = 128 | r & 63);
+ return a;
+ }, h = function(c, a) {
+ var r;
+ for (a = a || c.length, a > c.length && (a = c.length), r = a - 1; r >= 0 && (c[r] & 192) === 128; )
+ r--;
+ return r < 0 || r === 0 ? a : r + w[c[r]] > a ? r : a;
+ }, l = function(c) {
+ var a, r, t, i, n = c.length, o = new Array(n * 2);
+ for (r = 0, a = 0; a < n; ) {
+ if (t = c[a++], t < 128) {
+ o[r++] = t;
+ continue;
+ }
+ if (i = w[t], i > 4) {
+ o[r++] = 65533, a += i - 1;
+ continue;
+ }
+ for (t &= i === 2 ? 31 : i === 3 ? 15 : 7; i > 1 && a < n; )
+ t = t << 6 | c[a++] & 63, i--;
+ if (i > 1) {
+ o[r++] = 65533;
+ continue;
+ }
+ t < 65536 ? o[r++] = t : (t -= 65536, o[r++] = 55296 | t >> 10 & 1023, o[r++] = 56320 | t & 1023);
+ }
+ return o.length !== r && (o.subarray ? o = o.subarray(0, r) : o.length = r), u.applyFromCharCode(o);
+ };
+ _.utf8encode = function(c) {
+ return m.nodebuffer ? g.newBufferFrom(c, "utf-8") : y(c);
+ }, _.utf8decode = function(c) {
+ return m.nodebuffer ? u.transformTo("nodebuffer", c).toString("utf-8") : (c = u.transformTo(m.uint8array ? "uint8array" : "array", c), l(c));
+ };
+ function d() {
+ b.call(this, "utf-8 decode"), this.leftOver = null;
+ }
+ u.inherits(d, b), d.prototype.processChunk = function(v) {
+ var c = u.transformTo(m.uint8array ? "uint8array" : "array", v.data);
+ if (this.leftOver && this.leftOver.length) {
+ if (m.uint8array) {
+ var a = c;
+ c = new Uint8Array(a.length + this.leftOver.length), c.set(this.leftOver, 0), c.set(a, this.leftOver.length);
+ } else
+ c = this.leftOver.concat(c);
+ this.leftOver = null;
+ }
+ var r = h(c), t = c;
+ r !== c.length && (m.uint8array ? (t = c.subarray(0, r), this.leftOver = c.subarray(r, c.length)) : (t = c.slice(0, r), this.leftOver = c.slice(r, c.length))), this.push({
+ data: _.utf8decode(t),
+ meta: v.meta
+ });
+ }, d.prototype.flush = function() {
+ this.leftOver && this.leftOver.length && (this.push({
+ data: _.utf8decode(this.leftOver),
+ meta: {}
+ }), this.leftOver = null);
+ }, _.Utf8DecodeWorker = d;
+ function s() {
+ b.call(this, "utf-8 encode");
+ }
+ u.inherits(s, b), s.prototype.processChunk = function(v) {
+ this.push({
+ data: _.utf8encode(v.data),
+ meta: v.meta
+ });
+ }, _.Utf8EncodeWorker = s;
+ }, { "./nodejsUtils": 403, "./stream/GenericWorker": 417, "./support": 419, "./utils": 421 }], 421: [function(e, x, _) {
+ var u = e("./support"), m = e("./base64"), g = e("./nodejsUtils"), b = e("set-immediate-shim"), w = e("./external");
+ function f(c) {
+ var a = null;
+ return u.uint8array ? a = new Uint8Array(c.length) : a = new Array(c.length), h(c, a);
+ }
+ _.newBlob = function(c, a) {
+ _.checkSupport("blob");
+ try {
+ return new Blob([c], {
+ type: a
+ });
+ } catch (i) {
+ try {
+ var r = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, t = new r();
+ return t.append(c), t.getBlob(a);
+ } catch (n) {
+ throw new Error("Bug : can't construct the Blob.");
+ }
+ }
+ };
+ function y(c) {
+ return c;
+ }
+ function h(c, a) {
+ for (var r = 0; r < c.length; ++r)
+ a[r] = c.charCodeAt(r) & 255;
+ return a;
+ }
+ var l = {
+ /**
+ * Transform an array of int into a string, chunk by chunk.
+ * See the performances notes on arrayLikeToString.
+ * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.
+ * @param {String} type the type of the array.
+ * @param {Integer} chunk the chunk size.
+ * @return {String} the resulting string.
+ * @throws Error if the chunk is too big for the stack.
+ */
+ stringifyByChunk: function(a, r, t) {
+ var i = [], n = 0, o = a.length;
+ if (o <= t)
+ return String.fromCharCode.apply(null, a);
+ for (; n < o; )
+ r === "array" || r === "nodebuffer" ? i.push(String.fromCharCode.apply(null, a.slice(n, Math.min(n + t, o)))) : i.push(String.fromCharCode.apply(null, a.subarray(n, Math.min(n + t, o)))), n += t;
+ return i.join("");
+ },
+ /**
+ * Call String.fromCharCode on every item in the array.
+ * This is the naive implementation, which generate A LOT of intermediate string.
+ * This should be used when everything else fail.
+ * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.
+ * @return {String} the result.
+ */
+ stringifyByChar: function(a) {
+ for (var r = "", t = 0; t < a.length; t++)
+ r += String.fromCharCode(a[t]);
+ return r;
+ },
+ applyCanBeUsed: {
+ /**
+ * true if the browser accepts to use String.fromCharCode on Uint8Array
+ */
+ uint8array: function() {
+ try {
+ return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
+ } catch (c) {
+ return !1;
+ }
+ }(),
+ /**
+ * true if the browser accepts to use String.fromCharCode on nodejs Buffer.
+ */
+ nodebuffer: function() {
+ try {
+ return u.nodebuffer && String.fromCharCode.apply(null, g.allocBuffer(1)).length === 1;
+ } catch (c) {
+ return !1;
+ }
+ }()
+ }
+ };
+ function d(c) {
+ var a = 65536, r = _.getTypeOf(c), t = !0;
+ if (r === "uint8array" ? t = l.applyCanBeUsed.uint8array : r === "nodebuffer" && (t = l.applyCanBeUsed.nodebuffer), t)
+ for (; a > 1; )
+ try {
+ return l.stringifyByChunk(c, r, a);
+ } catch (i) {
+ a = Math.floor(a / 2);
+ }
+ return l.stringifyByChar(c);
+ }
+ _.applyFromCharCode = d;
+ function s(c, a) {
+ for (var r = 0; r < c.length; r++)
+ a[r] = c[r];
+ return a;
+ }
+ var v = {};
+ v.string = {
+ string: y,
+ array: function(a) {
+ return h(a, new Array(a.length));
+ },
+ arraybuffer: function(a) {
+ return v.string.uint8array(a).buffer;
+ },
+ uint8array: function(a) {
+ return h(a, new Uint8Array(a.length));
+ },
+ nodebuffer: function(a) {
+ return h(a, g.allocBuffer(a.length));
+ }
+ }, v.array = {
+ string: d,
+ array: y,
+ arraybuffer: function(a) {
+ return new Uint8Array(a).buffer;
+ },
+ uint8array: function(a) {
+ return new Uint8Array(a);
+ },
+ nodebuffer: function(a) {
+ return g.newBufferFrom(a);
+ }
+ }, v.arraybuffer = {
+ string: function(a) {
+ return d(new Uint8Array(a));
+ },
+ array: function(a) {
+ return s(new Uint8Array(a), new Array(a.byteLength));
+ },
+ arraybuffer: y,
+ uint8array: function(a) {
+ return new Uint8Array(a);
+ },
+ nodebuffer: function(a) {
+ return g.newBufferFrom(new Uint8Array(a));
+ }
+ }, v.uint8array = {
+ string: d,
+ array: function(a) {
+ return s(a, new Array(a.length));
+ },
+ arraybuffer: function(a) {
+ return a.buffer;
+ },
+ uint8array: y,
+ nodebuffer: function(a) {
+ return g.newBufferFrom(a);
+ }
+ }, v.nodebuffer = {
+ string: d,
+ array: function(a) {
+ return s(a, new Array(a.length));
+ },
+ arraybuffer: function(a) {
+ return v.nodebuffer.uint8array(a).buffer;
+ },
+ uint8array: function(a) {
+ return s(a, new Uint8Array(a.length));
+ },
+ nodebuffer: y
+ }, _.transformTo = function(c, a) {
+ if (a || (a = ""), !c)
+ return a;
+ _.checkSupport(c);
+ var r = _.getTypeOf(a), t = v[r][c](a);
+ return t;
+ }, _.getTypeOf = function(c) {
+ if (typeof c == "string")
+ return "string";
+ if (Object.prototype.toString.call(c) === "[object Array]")
+ return "array";
+ if (u.nodebuffer && g.isBuffer(c))
+ return "nodebuffer";
+ if (u.uint8array && c instanceof Uint8Array)
+ return "uint8array";
+ if (u.arraybuffer && c instanceof ArrayBuffer)
+ return "arraybuffer";
+ }, _.checkSupport = function(c) {
+ var a = u[c.toLowerCase()];
+ if (!a)
+ throw new Error(c + " is not supported by this platform");
+ }, _.MAX_VALUE_16BITS = 65535, _.MAX_VALUE_32BITS = -1, _.pretty = function(c) {
+ var a = "", r, t;
+ for (t = 0; t < (c || "").length; t++)
+ r = c.charCodeAt(t), a += "\\x" + (r < 16 ? "0" : "") + r.toString(16).toUpperCase();
+ return a;
+ }, _.delay = function(c, a, r) {
+ b(function() {
+ c.apply(r || null, a || []);
+ });
+ }, _.inherits = function(c, a) {
+ var r = function() {
+ };
+ r.prototype = a.prototype, c.prototype = new r();
+ }, _.extend = function() {
+ var c = {}, a, r;
+ for (a = 0; a < arguments.length; a++)
+ for (r in arguments[a])
+ arguments[a].hasOwnProperty(r) && typeof c[r] == "undefined" && (c[r] = arguments[a][r]);
+ return c;
+ }, _.prepareContent = function(c, a, r, t, i) {
+ var n = w.Promise.resolve(a).then(function(o) {
+ var p = u.blob && (o instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(o)) !== -1);
+ return p && typeof FileReader != "undefined" ? new w.Promise(function(O, P) {
+ var F = new FileReader();
+ F.onload = function(z) {
+ O(z.target.result);
+ }, F.onerror = function(z) {
+ P(z.target.error);
+ }, F.readAsArrayBuffer(o);
+ }) : o;
+ });
+ return n.then(function(o) {
+ var p = _.getTypeOf(o);
+ return p ? (p === "arraybuffer" ? o = _.transformTo("uint8array", o) : p === "string" && (i ? o = m.decode(o) : r && t !== !0 && (o = f(o))), o) : w.Promise.reject(new Error("Can't read the data of '" + c + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
+ });
+ };
+ }, { "./base64": 390, "./external": 395, "./nodejsUtils": 403, "./support": 419, "set-immediate-shim": 497 }], 422: [function(e, x, _) {
+ var u = e("./reader/readerFor"), m = e("./utils"), g = e("./signature"), b = e("./zipEntry");
+ e("./utf8");
+ var w = e("./support");
+ function f(y) {
+ this.files = [], this.loadOptions = y;
+ }
+ f.prototype = {
+ /**
+ * Check that the reader is on the specified signature.
+ * @param {string} expectedSignature the expected signature.
+ * @throws {Error} if it is an other signature.
+ */
+ checkSignature: function(h) {
+ if (!this.reader.readAndCheckSignature(h)) {
+ this.reader.index -= 4;
+ var l = this.reader.readString(4);
+ throw new Error("Corrupted zip or bug: unexpected signature (" + m.pretty(l) + ", expected " + m.pretty(h) + ")");
+ }
+ },
+ /**
+ * Check if the given signature is at the given index.
+ * @param {number} askedIndex the index to check.
+ * @param {string} expectedSignature the signature to expect.
+ * @return {boolean} true if the signature is here, false otherwise.
+ */
+ isSignature: function(h, l) {
+ var d = this.reader.index;
+ this.reader.setIndex(h);
+ var s = this.reader.readString(4), v = s === l;
+ return this.reader.setIndex(d), v;
+ },
+ /**
+ * Read the end of the central directory.
+ */
+ readBlockEndOfCentral: function() {
+ this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
+ var h = this.reader.readData(this.zipCommentLength), l = w.uint8array ? "uint8array" : "array", d = m.transformTo(l, h);
+ this.zipComment = this.loadOptions.decodeFileName(d);
+ },
+ /**
+ * Read the end of the Zip 64 central directory.
+ * Not merged with the method readEndOfCentral :
+ * The end of central can coexist with its Zip64 brother,
+ * I don't want to read the wrong number of bytes !
+ */
+ readBlockZip64EndOfCentral: function() {
+ this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
+ for (var h = this.zip64EndOfCentralSize - 44, l = 0, d, s, v; l < h; )
+ d = this.reader.readInt(2), s = this.reader.readInt(4), v = this.reader.readData(s), this.zip64ExtensibleData[d] = {
+ id: d,
+ length: s,
+ value: v
+ };
+ },
+ /**
+ * Read the end of the Zip 64 central directory locator.
+ */
+ readBlockZip64EndOfCentralLocator: function() {
+ if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), this.disksCount > 1)
+ throw new Error("Multi-volumes zip are not supported");
+ },
+ /**
+ * Read the local files, based on the offset read in the central part.
+ */
+ readLocalFiles: function() {
+ var h, l;
+ for (h = 0; h < this.files.length; h++)
+ l = this.files[h], this.reader.setIndex(l.localHeaderOffset), this.checkSignature(g.LOCAL_FILE_HEADER), l.readLocalPart(this.reader), l.handleUTF8(), l.processAttributes();
+ },
+ /**
+ * Read the central directory.
+ */
+ readCentralDir: function() {
+ var h;
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER); )
+ h = new b({
+ zip64: this.zip64
+ }, this.loadOptions), h.readCentralPart(this.reader), this.files.push(h);
+ if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0)
+ throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
+ },
+ /**
+ * Read the end of central directory.
+ */
+ readEndOfCentral: function() {
+ var h = this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);
+ if (h < 0) {
+ var l = !this.isSignature(0, g.LOCAL_FILE_HEADER);
+ throw l ? new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : new Error("Corrupted zip: can't find end of central directory");
+ }
+ this.reader.setIndex(h);
+ var d = h;
+ if (this.checkSignature(g.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === m.MAX_VALUE_16BITS || this.diskWithCentralDirStart === m.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === m.MAX_VALUE_16BITS || this.centralDirRecords === m.MAX_VALUE_16BITS || this.centralDirSize === m.MAX_VALUE_32BITS || this.centralDirOffset === m.MAX_VALUE_32BITS) {
+ if (this.zip64 = !0, h = this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR), h < 0)
+ throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
+ if (this.reader.setIndex(h), this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, g.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0))
+ throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
+ this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
+ }
+ var s = this.centralDirOffset + this.centralDirSize;
+ this.zip64 && (s += 20, s += 12 + this.zip64EndOfCentralSize);
+ var v = d - s;
+ if (v > 0)
+ this.isSignature(d, g.CENTRAL_FILE_HEADER) || (this.reader.zero = v);
+ else if (v < 0)
+ throw new Error("Corrupted zip: missing " + Math.abs(v) + " bytes.");
+ },
+ prepareReader: function(h) {
+ this.reader = u(h);
+ },
+ /**
+ * Read a zip file and create ZipEntries.
+ * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file.
+ */
+ load: function(h) {
+ this.prepareReader(h), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
+ }
+ }, x.exports = f;
+ }, { "./reader/readerFor": 411, "./signature": 412, "./support": 419, "./utf8": 420, "./utils": 421, "./zipEntry": 423 }], 423: [function(e, x, _) {
+ var u = e("./reader/readerFor"), m = e("./utils"), g = e("./compressedObject"), b = e("./crc32"), w = e("./utf8"), f = e("./compressions"), y = e("./support"), h = 0, l = 3, d = function(c) {
+ for (var a in f)
+ if (f.hasOwnProperty(a) && f[a].magic === c)
+ return f[a];
+ return null;
+ };
+ function s(v, c) {
+ this.options = v, this.loadOptions = c;
+ }
+ s.prototype = {
+ /**
+ * say if the file is encrypted.
+ * @return {boolean} true if the file is encrypted, false otherwise.
+ */
+ isEncrypted: function() {
+ return (this.bitFlag & 1) === 1;
+ },
+ /**
+ * say if the file has utf-8 filename/comment.
+ * @return {boolean} true if the filename/comment is in utf-8, false otherwise.
+ */
+ useUTF8: function() {
+ return (this.bitFlag & 2048) === 2048;
+ },
+ /**
+ * Read the local part of a zip file and add the info in this object.
+ * @param {DataReader} reader the reader to use.
+ */
+ readLocalPart: function(c) {
+ var a, r;
+ if (c.skip(22), this.fileNameLength = c.readInt(2), r = c.readInt(2), this.fileName = c.readData(this.fileNameLength), c.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1)
+ throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
+ if (a = d(this.compressionMethod), a === null)
+ throw new Error("Corrupted zip : compression " + m.pretty(this.compressionMethod) + " unknown (inner file : " + m.transformTo("string", this.fileName) + ")");
+ this.decompressed = new g(this.compressedSize, this.uncompressedSize, this.crc32, a, c.readData(this.compressedSize));
+ },
+ /**
+ * Read the central part of a zip file and add the info in this object.
+ * @param {DataReader} reader the reader to use.
+ */
+ readCentralPart: function(c) {
+ this.versionMadeBy = c.readInt(2), c.skip(2), this.bitFlag = c.readInt(2), this.compressionMethod = c.readString(2), this.date = c.readDate(), this.crc32 = c.readInt(4), this.compressedSize = c.readInt(4), this.uncompressedSize = c.readInt(4);
+ var a = c.readInt(2);
+ if (this.extraFieldsLength = c.readInt(2), this.fileCommentLength = c.readInt(2), this.diskNumberStart = c.readInt(2), this.internalFileAttributes = c.readInt(2), this.externalFileAttributes = c.readInt(4), this.localHeaderOffset = c.readInt(4), this.isEncrypted())
+ throw new Error("Encrypted zip are not supported");
+ c.skip(a), this.readExtraFields(c), this.parseZIP64ExtraField(c), this.fileComment = c.readData(this.fileCommentLength);
+ },
+ /**
+ * Parse the external file attributes and get the unix/dos permissions.
+ */
+ processAttributes: function() {
+ this.unixPermissions = null, this.dosPermissions = null;
+ var c = this.versionMadeBy >> 8;
+ this.dir = !!(this.externalFileAttributes & 16), c === h && (this.dosPermissions = this.externalFileAttributes & 63), c === l && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), !this.dir && this.fileNameStr.slice(-1) === "/" && (this.dir = !0);
+ },
+ /**
+ * Parse the ZIP64 extra field and merge the info in the current ZipEntry.
+ * @param {DataReader} reader the reader to use.
+ */
+ parseZIP64ExtraField: function(c) {
+ if (this.extraFields[1]) {
+ var a = u(this.extraFields[1].value);
+ this.uncompressedSize === m.MAX_VALUE_32BITS && (this.uncompressedSize = a.readInt(8)), this.compressedSize === m.MAX_VALUE_32BITS && (this.compressedSize = a.readInt(8)), this.localHeaderOffset === m.MAX_VALUE_32BITS && (this.localHeaderOffset = a.readInt(8)), this.diskNumberStart === m.MAX_VALUE_32BITS && (this.diskNumberStart = a.readInt(4));
+ }
+ },
+ /**
+ * Read the central part of a zip file and add the info in this object.
+ * @param {DataReader} reader the reader to use.
+ */
+ readExtraFields: function(c) {
+ var a = c.index + this.extraFieldsLength, r, t, i;
+ for (this.extraFields || (this.extraFields = {}); c.index + 4 < a; )
+ r = c.readInt(2), t = c.readInt(2), i = c.readData(t), this.extraFields[r] = {
+ id: r,
+ length: t,
+ value: i
+ };
+ c.setIndex(a);
+ },
+ /**
+ * Apply an UTF8 transformation if needed.
+ */
+ handleUTF8: function() {
+ var c = y.uint8array ? "uint8array" : "array";
+ if (this.useUTF8())
+ this.fileNameStr = w.utf8decode(this.fileName), this.fileCommentStr = w.utf8decode(this.fileComment);
+ else {
+ var a = this.findExtraFieldUnicodePath();
+ if (a !== null)
+ this.fileNameStr = a;
+ else {
+ var r = m.transformTo(c, this.fileName);
+ this.fileNameStr = this.loadOptions.decodeFileName(r);
+ }
+ var t = this.findExtraFieldUnicodeComment();
+ if (t !== null)
+ this.fileCommentStr = t;
+ else {
+ var i = m.transformTo(c, this.fileComment);
+ this.fileCommentStr = this.loadOptions.decodeFileName(i);
+ }
+ }
+ },
+ /**
+ * Find the unicode path declared in the extra field, if any.
+ * @return {String} the unicode path, null otherwise.
+ */
+ findExtraFieldUnicodePath: function() {
+ var c = this.extraFields[28789];
+ if (c) {
+ var a = u(c.value);
+ return a.readInt(1) !== 1 || b(this.fileName) !== a.readInt(4) ? null : w.utf8decode(a.readData(c.length - 5));
+ }
+ return null;
+ },
+ /**
+ * Find the unicode comment declared in the extra field, if any.
+ * @return {String} the unicode comment, null otherwise.
+ */
+ findExtraFieldUnicodeComment: function() {
+ var c = this.extraFields[25461];
+ if (c) {
+ var a = u(c.value);
+ return a.readInt(1) !== 1 || b(this.fileComment) !== a.readInt(4) ? null : w.utf8decode(a.readData(c.length - 5));
+ }
+ return null;
+ }
+ }, x.exports = s;
+ }, { "./compressedObject": 391, "./compressions": 392, "./crc32": 393, "./reader/readerFor": 411, "./support": 419, "./utf8": 420, "./utils": 421 }], 424: [function(e, x, _) {
+ var u = e("./stream/StreamHelper"), m = e("./stream/DataWorker"), g = e("./utf8"), b = e("./compressedObject"), w = e("./stream/GenericWorker"), f = function(s, v, c) {
+ this.name = s, this.dir = c.dir, this.date = c.date, this.comment = c.comment, this.unixPermissions = c.unixPermissions, this.dosPermissions = c.dosPermissions, this._data = v, this._dataBinary = c.binary, this.options = {
+ compression: c.compression,
+ compressionOptions: c.compressionOptions
+ };
+ };
+ f.prototype = {
+ /**
+ * Create an internal stream for the content of this object.
+ * @param {String} type the type of each chunk.
+ * @return StreamHelper the stream.
+ */
+ internalStream: function(s) {
+ var v = null, c = "string";
+ try {
+ if (!s)
+ throw new Error("No output type specified.");
+ c = s.toLowerCase();
+ var a = c === "string" || c === "text";
+ (c === "binarystring" || c === "text") && (c = "string"), v = this._decompressWorker();
+ var r = !this._dataBinary;
+ r && !a && (v = v.pipe(new g.Utf8EncodeWorker())), !r && a && (v = v.pipe(new g.Utf8DecodeWorker()));
+ } catch (t) {
+ v = new w("error"), v.error(t);
+ }
+ return new u(v, c, "");
+ },
+ /**
+ * Prepare the content in the asked type.
+ * @param {String} type the type of the result.
+ * @param {Function} onUpdate a function to call on each internal update.
+ * @return Promise the promise of the result.
+ */
+ async: function(s, v) {
+ return this.internalStream(s).accumulate(v);
+ },
+ /**
+ * Prepare the content as a nodejs stream.
+ * @param {String} type the type of each chunk.
+ * @param {Function} onUpdate a function to call on each internal update.
+ * @return Stream the stream.
+ */
+ nodeStream: function(s, v) {
+ return this.internalStream(s || "nodebuffer").toNodejsStream(v);
+ },
+ /**
+ * Return a worker for the compressed content.
+ * @private
+ * @param {Object} compression the compression object to use.
+ * @param {Object} compressionOptions the options to use when compressing.
+ * @return Worker the worker.
+ */
+ _compressWorker: function(s, v) {
+ if (this._data instanceof b && this._data.compression.magic === s.magic)
+ return this._data.getCompressedWorker();
+ var c = this._decompressWorker();
+ return this._dataBinary || (c = c.pipe(new g.Utf8EncodeWorker())), b.createWorkerFrom(c, s, v);
+ },
+ /**
+ * Return a worker for the decompressed content.
+ * @private
+ * @return Worker the worker.
+ */
+ _decompressWorker: function() {
+ return this._data instanceof b ? this._data.getContentWorker() : this._data instanceof w ? this._data : new m(this._data);
+ }
+ };
+ for (var y = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], h = function() {
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
+ }, l = 0; l < y.length; l++)
+ f.prototype[y[l]] = h;
+ x.exports = f;
+ }, { "./compressedObject": 391, "./stream/DataWorker": 416, "./stream/GenericWorker": 417, "./stream/StreamHelper": 418, "./utf8": 420 }], 425: [function(e, x, _) {
+ function u(n) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) {
+ return typeof p;
+ } : u = function(p) {
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
+ }, u(n);
+ }
+ var m = e("immediate");
+ function g() {
+ }
+ var b = {}, w = ["REJECTED"], f = ["FULFILLED"], y = ["PENDING"];
+ x.exports = h;
+ function h(n) {
+ if (typeof n != "function")
+ throw new TypeError("resolver must be a function");
+ this.state = y, this.queue = [], this.outcome = void 0, n !== g && v(this, n);
+ }
+ h.prototype.finally = function(n) {
+ if (typeof n != "function")
+ return this;
+ var o = this.constructor;
+ return this.then(p, O);
+ function p(P) {
+ function F() {
+ return P;
+ }
+ return o.resolve(n()).then(F);
+ }
+ function O(P) {
+ function F() {
+ throw P;
+ }
+ return o.resolve(n()).then(F);
+ }
+ }, h.prototype.catch = function(n) {
+ return this.then(null, n);
+ }, h.prototype.then = function(n, o) {
+ if (typeof n != "function" && this.state === f || typeof o != "function" && this.state === w)
+ return this;
+ var p = new this.constructor(g);
+ if (this.state !== y) {
+ var O = this.state === f ? n : o;
+ d(p, O, this.outcome);
+ } else
+ this.queue.push(new l(p, n, o));
+ return p;
+ };
+ function l(n, o, p) {
+ this.promise = n, typeof o == "function" && (this.onFulfilled = o, this.callFulfilled = this.otherCallFulfilled), typeof p == "function" && (this.onRejected = p, this.callRejected = this.otherCallRejected);
+ }
+ l.prototype.callFulfilled = function(n) {
+ b.resolve(this.promise, n);
+ }, l.prototype.otherCallFulfilled = function(n) {
+ d(this.promise, this.onFulfilled, n);
+ }, l.prototype.callRejected = function(n) {
+ b.reject(this.promise, n);
+ }, l.prototype.otherCallRejected = function(n) {
+ d(this.promise, this.onRejected, n);
+ };
+ function d(n, o, p) {
+ m(function() {
+ var O;
+ try {
+ O = o(p);
+ } catch (P) {
+ return b.reject(n, P);
+ }
+ O === n ? b.reject(n, new TypeError("Cannot resolve promise with itself")) : b.resolve(n, O);
+ });
+ }
+ b.resolve = function(n, o) {
+ var p = c(s, o);
+ if (p.status === "error")
+ return b.reject(n, p.value);
+ var O = p.value;
+ if (O)
+ v(n, O);
+ else {
+ n.state = f, n.outcome = o;
+ for (var P = -1, F = n.queue.length; ++P < F; )
+ n.queue[P].callFulfilled(o);
+ }
+ return n;
+ }, b.reject = function(n, o) {
+ n.state = w, n.outcome = o;
+ for (var p = -1, O = n.queue.length; ++p < O; )
+ n.queue[p].callRejected(o);
+ return n;
+ };
+ function s(n) {
+ var o = n && n.then;
+ if (n && (u(n) === "object" || typeof n == "function") && typeof o == "function")
+ return function() {
+ o.apply(n, arguments);
+ };
+ }
+ function v(n, o) {
+ var p = !1;
+ function O(N) {
+ p || (p = !0, b.reject(n, N));
+ }
+ function P(N) {
+ p || (p = !0, b.resolve(n, N));
+ }
+ function F() {
+ o(P, O);
+ }
+ var z = c(F);
+ z.status === "error" && O(z.value);
+ }
+ function c(n, o) {
+ var p = {};
+ try {
+ p.value = n(o), p.status = "success";
+ } catch (O) {
+ p.status = "error", p.value = O;
+ }
+ return p;
+ }
+ h.resolve = a;
+ function a(n) {
+ return n instanceof this ? n : b.resolve(new this(g), n);
+ }
+ h.reject = r;
+ function r(n) {
+ var o = new this(g);
+ return b.reject(o, n);
+ }
+ h.all = t;
+ function t(n) {
+ var o = this;
+ if (Object.prototype.toString.call(n) !== "[object Array]")
+ return this.reject(new TypeError("must be an array"));
+ var p = n.length, O = !1;
+ if (!p)
+ return this.resolve([]);
+ for (var P = new Array(p), F = 0, z = -1, N = new this(g); ++z < p; )
+ M(n[z], z);
+ return N;
+ function M(I, R) {
+ o.resolve(I).then(C, function(E) {
+ O || (O = !0, b.reject(N, E));
+ });
+ function C(E) {
+ P[R] = E, ++F === p && !O && (O = !0, b.resolve(N, P));
+ }
+ }
+ }
+ h.race = i;
+ function i(n) {
+ var o = this;
+ if (Object.prototype.toString.call(n) !== "[object Array]")
+ return this.reject(new TypeError("must be an array"));
+ var p = n.length, O = !1;
+ if (!p)
+ return this.resolve([]);
+ for (var P = -1, F = new this(g); ++P < p; )
+ z(n[P]);
+ return F;
+ function z(N) {
+ o.resolve(N).then(function(M) {
+ O || (O = !0, b.resolve(F, M));
+ }, function(M) {
+ O || (O = !0, b.reject(F, M));
+ });
+ }
+ }
+ }, { immediate: 386 }], 426: [function(e, x, _) {
+ (function(u) {
+ function m(p) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(P) {
+ return typeof P;
+ } : m = function(P) {
+ return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P;
+ }, m(p);
+ }
+ var g = 1 / 0, b = "[object Symbol]", w = /[\\^$.*+?()[\]{}|]/g, f = RegExp(w.source), y = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, h = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, l = y || h || Function("return this")(), d = Object.prototype, s = d.toString, v = l.Symbol, c = v ? v.prototype : void 0, a = c ? c.toString : void 0;
+ function r(p) {
+ if (typeof p == "string")
+ return p;
+ if (i(p))
+ return a ? a.call(p) : "";
+ var O = p + "";
+ return O == "0" && 1 / p == -g ? "-0" : O;
+ }
+ function t(p) {
+ return !!p && m(p) == "object";
+ }
+ function i(p) {
+ return m(p) == "symbol" || t(p) && s.call(p) == b;
+ }
+ function n(p) {
+ return p == null ? "" : r(p);
+ }
+ function o(p) {
+ return p = n(p), p && f.test(p) ? p.replace(w, "\\$&") : p;
+ }
+ x.exports = o;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 427: [function(e, x, _) {
+ (function(u) {
+ function m(le) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Xe) {
+ return typeof Xe;
+ } : m = function(Xe) {
+ return Xe && typeof Symbol == "function" && Xe.constructor === Symbol && Xe !== Symbol.prototype ? "symbol" : typeof Xe;
+ }, m(le);
+ }
+ var g = 200, b = "Expected a function", w = "__lodash_hash_undefined__", f = 1, y = 2, h = 1 / 0, l = 9007199254740991, d = "[object Arguments]", s = "[object Array]", v = "[object Boolean]", c = "[object Date]", a = "[object Error]", r = "[object Function]", t = "[object GeneratorFunction]", i = "[object Map]", n = "[object Number]", o = "[object Object]", p = "[object Promise]", O = "[object RegExp]", P = "[object Set]", F = "[object String]", z = "[object Symbol]", N = "[object WeakMap]", M = "[object ArrayBuffer]", I = "[object DataView]", R = "[object Float32Array]", C = "[object Float64Array]", E = "[object Int8Array]", A = "[object Int16Array]", L = "[object Int32Array]", $ = "[object Uint8Array]", W = "[object Uint8ClampedArray]", U = "[object Uint16Array]", D = "[object Uint32Array]", B = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, V = /^\./, re = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ee = /[\\^$.*+?()[\]{}|]/g, ce = /\\(\\)?/g, ve = /^\[object .+?Constructor\]$/, ge = /^(?:0|[1-9]\d*)$/, oe = {};
+ oe[R] = oe[C] = oe[E] = oe[A] = oe[L] = oe[$] = oe[W] = oe[U] = oe[D] = !0, oe[d] = oe[s] = oe[M] = oe[v] = oe[I] = oe[c] = oe[a] = oe[r] = oe[i] = oe[n] = oe[o] = oe[O] = oe[P] = oe[F] = oe[N] = !1;
+ var J = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, Q = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, he = J || Q || Function("return this")(), ke = (typeof _ == "undefined" ? "undefined" : m(_)) == "object" && _ && !_.nodeType && _, ne = ke && (typeof x == "undefined" ? "undefined" : m(x)) == "object" && x && !x.nodeType && x, se = ne && ne.exports === ke, Ce = se && J.process, q = function() {
+ try {
+ return Ce && Ce.binding("util");
+ } catch (le) {
+ }
+ }(), G = q && q.isTypedArray;
+ function Y(le, Oe, Xe, ft) {
+ for (var Tt = -1, mt = le ? le.length : 0; ++Tt < mt; ) {
+ var Xt = le[Tt];
+ Oe(ft, Xt, Xe(Xt), le);
+ }
+ return ft;
+ }
+ function fe(le, Oe) {
+ for (var Xe = -1, ft = le ? le.length : 0; ++Xe < ft; )
+ if (Oe(le[Xe], Xe, le))
+ return !0;
+ return !1;
+ }
+ function we(le) {
+ return function(Oe) {
+ return Oe == null ? void 0 : Oe[le];
+ };
+ }
+ function _e(le, Oe) {
+ for (var Xe = -1, ft = Array(le); ++Xe < le; )
+ ft[Xe] = Oe(Xe);
+ return ft;
+ }
+ function je(le) {
+ return function(Oe) {
+ return le(Oe);
+ };
+ }
+ function Ye(le, Oe) {
+ return le == null ? void 0 : le[Oe];
+ }
+ function nt(le) {
+ var Oe = !1;
+ if (le != null && typeof le.toString != "function")
+ try {
+ Oe = !!(le + "");
+ } catch (Xe) {
+ }
+ return Oe;
+ }
+ function ut(le) {
+ var Oe = -1, Xe = Array(le.size);
+ return le.forEach(function(ft, Tt) {
+ Xe[++Oe] = [Tt, ft];
+ }), Xe;
+ }
+ function ot(le, Oe) {
+ return function(Xe) {
+ return le(Oe(Xe));
+ };
+ }
+ function Ue(le) {
+ var Oe = -1, Xe = Array(le.size);
+ return le.forEach(function(ft) {
+ Xe[++Oe] = ft;
+ }), Xe;
+ }
+ var Ve = Array.prototype, Qe = Function.prototype, tt = Object.prototype, ae = he["__core-js_shared__"], Re = function() {
+ var le = /[^.]+$/.exec(ae && ae.keys && ae.keys.IE_PROTO || "");
+ return le ? "Symbol(src)_1." + le : "";
+ }(), be = Qe.toString, Ee = tt.hasOwnProperty, pe = tt.toString, Pe = RegExp("^" + be.call(Ee).replace(ee, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), te = he.Symbol, He = he.Uint8Array, it = tt.propertyIsEnumerable, K = Ve.splice, Me = ot(Object.keys, Object), Le = kn(he, "DataView"), ue = kn(he, "Map"), Se = kn(he, "Promise"), Ie = kn(he, "Set"), st = kn(he, "WeakMap"), Ge = kn(Object, "create"), rt = Je(Le), _t = Je(ue), wt = Je(Se), Ot = Je(Ie), pt = Je(st), ct = te ? te.prototype : void 0, At = ct ? ct.valueOf : void 0, Pt = ct ? ct.toString : void 0;
+ function bt(le) {
+ var Oe = -1, Xe = le ? le.length : 0;
+ for (this.clear(); ++Oe < Xe; ) {
+ var ft = le[Oe];
+ this.set(ft[0], ft[1]);
+ }
+ }
+ function Kt() {
+ this.__data__ = Ge ? Ge(null) : {};
+ }
+ function Ct(le) {
+ return this.has(le) && delete this.__data__[le];
+ }
+ function xt(le) {
+ var Oe = this.__data__;
+ if (Ge) {
+ var Xe = Oe[le];
+ return Xe === w ? void 0 : Xe;
+ }
+ return Ee.call(Oe, le) ? Oe[le] : void 0;
+ }
+ function Ft(le) {
+ var Oe = this.__data__;
+ return Ge ? Oe[le] !== void 0 : Ee.call(Oe, le);
+ }
+ function Lt(le, Oe) {
+ var Xe = this.__data__;
+ return Xe[le] = Ge && Oe === void 0 ? w : Oe, this;
+ }
+ bt.prototype.clear = Kt, bt.prototype.delete = Ct, bt.prototype.get = xt, bt.prototype.has = Ft, bt.prototype.set = Lt;
+ function Et(le) {
+ var Oe = -1, Xe = le ? le.length : 0;
+ for (this.clear(); ++Oe < Xe; ) {
+ var ft = le[Oe];
+ this.set(ft[0], ft[1]);
+ }
+ }
+ function Dr() {
+ this.__data__ = [];
+ }
+ function Or(le) {
+ var Oe = this.__data__, Xe = zr(Oe, le);
+ if (Xe < 0)
+ return !1;
+ var ft = Oe.length - 1;
+ return Xe == ft ? Oe.pop() : K.call(Oe, Xe, 1), !0;
+ }
+ function Gr(le) {
+ var Oe = this.__data__, Xe = zr(Oe, le);
+ return Xe < 0 ? void 0 : Oe[Xe][1];
+ }
+ function Nr(le) {
+ return zr(this.__data__, le) > -1;
+ }
+ function Yr(le, Oe) {
+ var Xe = this.__data__, ft = zr(Xe, le);
+ return ft < 0 ? Xe.push([le, Oe]) : Xe[ft][1] = Oe, this;
+ }
+ Et.prototype.clear = Dr, Et.prototype.delete = Or, Et.prototype.get = Gr, Et.prototype.has = Nr, Et.prototype.set = Yr;
+ function Qt(le) {
+ var Oe = -1, Xe = le ? le.length : 0;
+ for (this.clear(); ++Oe < Xe; ) {
+ var ft = le[Oe];
+ this.set(ft[0], ft[1]);
+ }
+ }
+ function Xr() {
+ this.__data__ = {
+ hash: new bt(),
+ map: new (ue || Et)(),
+ string: new bt()
+ };
+ }
+ function Fr(le) {
+ return jn(this, le).delete(le);
+ }
+ function Lr(le) {
+ return jn(this, le).get(le);
+ }
+ function Ur(le) {
+ return jn(this, le).has(le);
+ }
+ function vt(le, Oe) {
+ return jn(this, le).set(le, Oe), this;
+ }
+ Qt.prototype.clear = Xr, Qt.prototype.delete = Fr, Qt.prototype.get = Lr, Qt.prototype.has = Ur, Qt.prototype.set = vt;
+ function Ke(le) {
+ var Oe = -1, Xe = le ? le.length : 0;
+ for (this.__data__ = new Qt(); ++Oe < Xe; )
+ this.add(le[Oe]);
+ }
+ function me(le) {
+ return this.__data__.set(le, w), this;
+ }
+ function Fe(le) {
+ return this.__data__.has(le);
+ }
+ Ke.prototype.add = Ke.prototype.push = me, Ke.prototype.has = Fe;
+ function Be(le) {
+ this.__data__ = new Et(le);
+ }
+ function dt() {
+ this.__data__ = new Et();
+ }
+ function St(le) {
+ return this.__data__.delete(le);
+ }
+ function Ht(le) {
+ return this.__data__.get(le);
+ }
+ function lr(le) {
+ return this.__data__.has(le);
+ }
+ function gr(le, Oe) {
+ var Xe = this.__data__;
+ if (Xe instanceof Et) {
+ var ft = Xe.__data__;
+ if (!ue || ft.length < g - 1)
+ return ft.push([le, Oe]), this;
+ Xe = this.__data__ = new Qt(ft);
+ }
+ return Xe.set(le, Oe), this;
+ }
+ Be.prototype.clear = dt, Be.prototype.delete = St, Be.prototype.get = Ht, Be.prototype.has = lr, Be.prototype.set = gr;
+ function rn(le, Oe) {
+ var Xe = nr(le) || fr(le) ? _e(le.length, String) : [], ft = Xe.length, Tt = !!ft;
+ for (var mt in le)
+ (Oe || Ee.call(le, mt)) && !(Tt && (mt == "length" || rr(mt, ft))) && Xe.push(mt);
+ return Xe;
+ }
+ function zr(le, Oe) {
+ for (var Xe = le.length; Xe--; )
+ if (Mt(le[Xe][0], Oe))
+ return Xe;
+ return -1;
+ }
+ function pi(le, Oe, Xe, ft) {
+ return $r(le, function(Tt, mt, Xt) {
+ Oe(ft, Tt, Xe(Tt), Xt);
+ }), ft;
+ }
+ var $r = xa(cn), Dn = Sa();
+ function cn(le, Oe) {
+ return le && Dn(le, Oe, En);
+ }
+ function yi(le, Oe) {
+ Oe = er(Oe, le) ? [Oe] : Ki(Oe);
+ for (var Xe = 0, ft = Oe.length; le != null && Xe < ft; )
+ le = le[De(Oe[Xe++])];
+ return Xe && Xe == ft ? le : void 0;
+ }
+ function hn(le) {
+ return pe.call(le);
+ }
+ function dn(le, Oe) {
+ return le != null && Oe in Object(le);
+ }
+ function Nn(le, Oe, Xe, ft, Tt) {
+ return le === Oe ? !0 : le == null || Oe == null || !dr(le) && !Er(Oe) ? le !== le && Oe !== Oe : Fn(le, Oe, Nn, Xe, ft, Tt);
+ }
+ function Fn(le, Oe, Xe, ft, Tt, mt) {
+ var Xt = nr(le), ir = nr(Oe), hr = s, _r = s;
+ Xt || (hr = On(le), hr = hr == d ? o : hr), ir || (_r = On(Oe), _r = _r == d ? o : _r);
+ var Tr = hr == o && !nt(le), wr = _r == o && !nt(Oe), Rr = hr == _r;
+ if (Rr && !Tr)
+ return mt || (mt = new Be()), Xt || pr(le) ? Sn(le, Oe, Xe, ft, Tt, mt) : Yi(le, Oe, hr, Xe, ft, Tt, mt);
+ if (!(Tt & y)) {
+ var Jr = Tr && Ee.call(le, "__wrapped__"), Qr = wr && Ee.call(Oe, "__wrapped__");
+ if (Jr || Qr) {
+ var Tn = Jr ? le.value() : le, yn = Qr ? Oe.value() : Oe;
+ return mt || (mt = new Be()), Xe(Tn, yn, ft, Tt, mt);
+ }
+ }
+ return Rr ? (mt || (mt = new Be()), Ri(le, Oe, Xe, ft, Tt, mt)) : !1;
+ }
+ function Xi(le, Oe, Xe, ft) {
+ var Tt = Xe.length, mt = Tt, Xt = !ft;
+ if (le == null)
+ return !mt;
+ for (le = Object(le); Tt--; ) {
+ var ir = Xe[Tt];
+ if (Xt && ir[2] ? ir[1] !== le[ir[0]] : !(ir[0] in le))
+ return !1;
+ }
+ for (; ++Tt < mt; ) {
+ ir = Xe[Tt];
+ var hr = ir[0], _r = le[hr], Tr = ir[1];
+ if (Xt && ir[2]) {
+ if (_r === void 0 && !(hr in le))
+ return !1;
+ } else {
+ var wr = new Be();
+ if (ft)
+ var Rr = ft(_r, Tr, hr, le, Oe, wr);
+ if (!(Rr === void 0 ? Nn(Tr, _r, ft, f | y, wr) : Rr))
+ return !1;
+ }
+ }
+ return !0;
+ }
+ function Ui(le) {
+ if (!dr(le) || Ji(le))
+ return !1;
+ var Oe = Pr(le) || nt(le) ? Pe : ve;
+ return Oe.test(Je(le));
+ }
+ function $i(le) {
+ return Er(le) && Br(le.length) && !!oe[pe.call(le)];
+ }
+ function ei(le) {
+ return typeof le == "function" ? le : le == null ? Zr : m(le) == "object" ? nr(le) ? Vi(le[0], le[1]) : Wi(le) : ta(le);
+ }
+ function Bn(le) {
+ if (!Oa(le))
+ return Me(le);
+ var Oe = [];
+ for (var Xe in Object(le))
+ Ee.call(le, Xe) && Xe != "constructor" && Oe.push(Xe);
+ return Oe;
+ }
+ function Wi(le) {
+ var Oe = ka(le);
+ return Oe.length == 1 && Oe[0][2] ? qi(Oe[0][0], Oe[0][1]) : function(Xe) {
+ return Xe === le || Xi(Xe, le, Oe);
+ };
+ }
+ function Vi(le, Oe) {
+ return er(le) && Qi(Oe) ? qi(De(le), Oe) : function(Xe) {
+ var ft = mr(Xe, le);
+ return ft === void 0 && ft === Oe ? ea(Xe, le) : Nn(Oe, ft, void 0, f | y);
+ };
+ }
+ function xn(le) {
+ return function(Oe) {
+ return yi(Oe, le);
+ };
+ }
+ function wa(le) {
+ if (typeof le == "string")
+ return le;
+ if (Ar(le))
+ return Pt ? Pt.call(le) : "";
+ var Oe = le + "";
+ return Oe == "0" && 1 / le == -h ? "-0" : Oe;
+ }
+ function Ki(le) {
+ return nr(le) ? le : xe(le);
+ }
+ function Gi(le, Oe) {
+ return function(Xe, ft) {
+ var Tt = nr(Xe) ? Y : pi, mt = Oe ? Oe() : {};
+ return Tt(Xe, le, ei(ft), mt);
+ };
+ }
+ function xa(le, Oe) {
+ return function(Xe, ft) {
+ if (Xe == null)
+ return Xe;
+ if (!tr(Xe))
+ return le(Xe, ft);
+ for (var Tt = Xe.length, mt = Oe ? Tt : -1, Xt = Object(Xe); (Oe ? mt-- : ++mt < Tt) && ft(Xt[mt], mt, Xt) !== !1; )
+ ;
+ return Xe;
+ };
+ }
+ function Sa(le) {
+ return function(Oe, Xe, ft) {
+ for (var Tt = -1, mt = Object(Oe), Xt = ft(Oe), ir = Xt.length; ir--; ) {
+ var hr = Xt[le ? ir : ++Tt];
+ if (Xe(mt[hr], hr, mt) === !1)
+ break;
+ }
+ return Oe;
+ };
+ }
+ function Sn(le, Oe, Xe, ft, Tt, mt) {
+ var Xt = Tt & y, ir = le.length, hr = Oe.length;
+ if (ir != hr && !(Xt && hr > ir))
+ return !1;
+ var _r = mt.get(le);
+ if (_r && mt.get(Oe))
+ return _r == Oe;
+ var Tr = -1, wr = !0, Rr = Tt & f ? new Ke() : void 0;
+ for (mt.set(le, Oe), mt.set(Oe, le); ++Tr < ir; ) {
+ var Jr = le[Tr], Qr = Oe[Tr];
+ if (ft)
+ var Tn = Xt ? ft(Qr, Jr, Tr, Oe, le, mt) : ft(Jr, Qr, Tr, le, Oe, mt);
+ if (Tn !== void 0) {
+ if (Tn)
+ continue;
+ wr = !1;
+ break;
+ }
+ if (Rr) {
+ if (!fe(Oe, function(yn, Vn) {
+ if (!Rr.has(Vn) && (Jr === yn || Xe(Jr, yn, ft, Tt, mt)))
+ return Rr.add(Vn);
+ })) {
+ wr = !1;
+ break;
+ }
+ } else if (!(Jr === Qr || Xe(Jr, Qr, ft, Tt, mt))) {
+ wr = !1;
+ break;
+ }
+ }
+ return mt.delete(le), mt.delete(Oe), wr;
+ }
+ function Yi(le, Oe, Xe, ft, Tt, mt, Xt) {
+ switch (Xe) {
+ case I:
+ if (le.byteLength != Oe.byteLength || le.byteOffset != Oe.byteOffset)
+ return !1;
+ le = le.buffer, Oe = Oe.buffer;
+ case M:
+ return !(le.byteLength != Oe.byteLength || !ft(new He(le), new He(Oe)));
+ case v:
+ case c:
+ case n:
+ return Mt(+le, +Oe);
+ case a:
+ return le.name == Oe.name && le.message == Oe.message;
+ case O:
+ case F:
+ return le == Oe + "";
+ case i:
+ var ir = ut;
+ case P:
+ var hr = mt & y;
+ if (ir || (ir = Ue), le.size != Oe.size && !hr)
+ return !1;
+ var _r = Xt.get(le);
+ if (_r)
+ return _r == Oe;
+ mt |= f, Xt.set(le, Oe);
+ var Tr = Sn(ir(le), ir(Oe), ft, Tt, mt, Xt);
+ return Xt.delete(le), Tr;
+ case z:
+ if (At)
+ return At.call(le) == At.call(Oe);
+ }
+ return !1;
+ }
+ function Ri(le, Oe, Xe, ft, Tt, mt) {
+ var Xt = Tt & y, ir = En(le), hr = ir.length, _r = En(Oe), Tr = _r.length;
+ if (hr != Tr && !Xt)
+ return !1;
+ for (var wr = hr; wr--; ) {
+ var Rr = ir[wr];
+ if (!(Xt ? Rr in Oe : Ee.call(Oe, Rr)))
+ return !1;
+ }
+ var Jr = mt.get(le);
+ if (Jr && mt.get(Oe))
+ return Jr == Oe;
+ var Qr = !0;
+ mt.set(le, Oe), mt.set(Oe, le);
+ for (var Tn = Xt; ++wr < hr; ) {
+ Rr = ir[wr];
+ var yn = le[Rr], Vn = Oe[Rr];
+ if (ft)
+ var Ya = Xt ? ft(Vn, yn, Rr, Oe, le, mt) : ft(yn, Vn, Rr, le, Oe, mt);
+ if (!(Ya === void 0 ? yn === Vn || Xe(yn, Vn, ft, Tt, mt) : Ya)) {
+ Qr = !1;
+ break;
+ }
+ Tn || (Tn = Rr == "constructor");
+ }
+ if (Qr && !Tn) {
+ var vi = le.constructor, mi = Oe.constructor;
+ vi != mi && "constructor" in le && "constructor" in Oe && !(typeof vi == "function" && vi instanceof vi && typeof mi == "function" && mi instanceof mi) && (Qr = !1);
+ }
+ return mt.delete(le), mt.delete(Oe), Qr;
+ }
+ function jn(le, Oe) {
+ var Xe = le.__data__;
+ return ti(Oe) ? Xe[typeof Oe == "string" ? "string" : "hash"] : Xe.map;
+ }
+ function ka(le) {
+ for (var Oe = En(le), Xe = Oe.length; Xe--; ) {
+ var ft = Oe[Xe], Tt = le[ft];
+ Oe[Xe] = [ft, Tt, Qi(Tt)];
+ }
+ return Oe;
+ }
+ function kn(le, Oe) {
+ var Xe = Ye(le, Oe);
+ return Ui(Xe) ? Xe : void 0;
+ }
+ var On = hn;
+ (Le && On(new Le(new ArrayBuffer(1))) != I || ue && On(new ue()) != i || Se && On(Se.resolve()) != p || Ie && On(new Ie()) != P || st && On(new st()) != N) && (On = function(Oe) {
+ var Xe = pe.call(Oe), ft = Xe == o ? Oe.constructor : void 0, Tt = ft ? Je(ft) : void 0;
+ if (Tt)
+ switch (Tt) {
+ case rt:
+ return I;
+ case _t:
+ return i;
+ case wt:
+ return p;
+ case Ot:
+ return P;
+ case pt:
+ return N;
+ }
+ return Xe;
+ });
+ function Zi(le, Oe, Xe) {
+ Oe = er(Oe, le) ? [Oe] : Ki(Oe);
+ for (var ft, Tt = -1, Xt = Oe.length; ++Tt < Xt; ) {
+ var mt = De(Oe[Tt]);
+ if (!(ft = le != null && Xe(le, mt)))
+ break;
+ le = le[mt];
+ }
+ if (ft)
+ return ft;
+ var Xt = le ? le.length : 0;
+ return !!Xt && Br(Xt) && rr(mt, Xt) && (nr(le) || fr(le));
+ }
+ function rr(le, Oe) {
+ return Oe = Oe == null ? l : Oe, !!Oe && (typeof le == "number" || ge.test(le)) && le > -1 && le % 1 == 0 && le < Oe;
+ }
+ function er(le, Oe) {
+ if (nr(le))
+ return !1;
+ var Xe = m(le);
+ return Xe == "number" || Xe == "symbol" || Xe == "boolean" || le == null || Ar(le) ? !0 : j.test(le) || !B.test(le) || Oe != null && le in Object(Oe);
+ }
+ function ti(le) {
+ var Oe = m(le);
+ return Oe == "string" || Oe == "number" || Oe == "symbol" || Oe == "boolean" ? le !== "__proto__" : le === null;
+ }
+ function Ji(le) {
+ return !!Re && Re in le;
+ }
+ function Oa(le) {
+ var Oe = le && le.constructor, Xe = typeof Oe == "function" && Oe.prototype || tt;
+ return le === Xe;
+ }
+ function Qi(le) {
+ return le === le && !dr(le);
+ }
+ function qi(le, Oe) {
+ return function(Xe) {
+ return Xe == null ? !1 : Xe[le] === Oe && (Oe !== void 0 || le in Object(Xe));
+ };
+ }
+ var xe = Yt(function(le) {
+ le = pn(le);
+ var Oe = [];
+ return V.test(le) && Oe.push(""), le.replace(re, function(Xe, ft, Tt, mt) {
+ Oe.push(Tt ? mt.replace(ce, "$1") : ft || Xe);
+ }), Oe;
+ });
+ function De(le) {
+ if (typeof le == "string" || Ar(le))
+ return le;
+ var Oe = le + "";
+ return Oe == "0" && 1 / le == -h ? "-0" : Oe;
+ }
+ function Je(le) {
+ if (le != null) {
+ try {
+ return be.call(le);
+ } catch (Oe) {
+ }
+ try {
+ return le + "";
+ } catch (Oe) {
+ }
+ }
+ return "";
+ }
+ var ht = Gi(function(le, Oe, Xe) {
+ Ee.call(le, Xe) ? le[Xe].push(Oe) : le[Xe] = [Oe];
+ });
+ function Yt(le, Oe) {
+ if (typeof le != "function" || Oe && typeof Oe != "function")
+ throw new TypeError(b);
+ var Xe = function ft() {
+ var Tt = arguments, mt = Oe ? Oe.apply(this, Tt) : Tt[0], Xt = ft.cache;
+ if (Xt.has(mt))
+ return Xt.get(mt);
+ var ir = le.apply(this, Tt);
+ return ft.cache = Xt.set(mt, ir), ir;
+ };
+ return Xe.cache = new (Yt.Cache || Qt)(), Xe;
+ }
+ Yt.Cache = Qt;
+ function Mt(le, Oe) {
+ return le === Oe || le !== le && Oe !== Oe;
+ }
+ function fr(le) {
+ return ur(le) && Ee.call(le, "callee") && (!it.call(le, "callee") || pe.call(le) == d);
+ }
+ var nr = Array.isArray;
+ function tr(le) {
+ return le != null && Br(le.length) && !Pr(le);
+ }
+ function ur(le) {
+ return Er(le) && tr(le);
+ }
+ function Pr(le) {
+ var Oe = dr(le) ? pe.call(le) : "";
+ return Oe == r || Oe == t;
+ }
+ function Br(le) {
+ return typeof le == "number" && le > -1 && le % 1 == 0 && le <= l;
+ }
+ function dr(le) {
+ var Oe = m(le);
+ return !!le && (Oe == "object" || Oe == "function");
+ }
+ function Er(le) {
+ return !!le && m(le) == "object";
+ }
+ function Ar(le) {
+ return m(le) == "symbol" || Er(le) && pe.call(le) == z;
+ }
+ var pr = G ? je(G) : $i;
+ function pn(le) {
+ return le == null ? "" : wa(le);
+ }
+ function mr(le, Oe, Xe) {
+ var ft = le == null ? void 0 : yi(le, Oe);
+ return ft === void 0 ? Xe : ft;
+ }
+ function ea(le, Oe) {
+ return le != null && Zi(le, Oe, dn);
+ }
+ function En(le) {
+ return tr(le) ? rn(le) : Bn(le);
+ }
+ function Zr(le) {
+ return le;
+ }
+ function ta(le) {
+ return er(le) ? we(De(le)) : xn(le);
+ }
+ x.exports = ht;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 428: [function(e, x, _) {
+ function u(y) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) {
+ return typeof l;
+ } : u = function(l) {
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
+ }, u(y);
+ }
+ var m = "[object Boolean]", g = Object.prototype, b = g.toString;
+ function w(y) {
+ return y === !0 || y === !1 || f(y) && b.call(y) == m;
+ }
+ function f(y) {
+ return !!y && u(y) == "object";
+ }
+ x.exports = w;
+ }, {}], 429: [function(e, x, _) {
+ (function(u) {
+ function m(xe) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Je) {
+ return typeof Je;
+ } : m = function(Je) {
+ return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je;
+ }, m(xe);
+ }
+ var g = 200, b = "__lodash_hash_undefined__", w = 1, f = 2, y = 9007199254740991, h = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", s = "[object Boolean]", v = "[object Date]", c = "[object Error]", a = "[object Function]", r = "[object GeneratorFunction]", t = "[object Map]", i = "[object Number]", n = "[object Null]", o = "[object Object]", p = "[object Promise]", O = "[object Proxy]", P = "[object RegExp]", F = "[object Set]", z = "[object String]", N = "[object Symbol]", M = "[object Undefined]", I = "[object WeakMap]", R = "[object ArrayBuffer]", C = "[object DataView]", E = "[object Float32Array]", A = "[object Float64Array]", L = "[object Int8Array]", $ = "[object Int16Array]", W = "[object Int32Array]", U = "[object Uint8Array]", D = "[object Uint8ClampedArray]", B = "[object Uint16Array]", j = "[object Uint32Array]", V = /[\\^$.*+?()[\]{}|]/g, re = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, ce = {};
+ ce[E] = ce[A] = ce[L] = ce[$] = ce[W] = ce[U] = ce[D] = ce[B] = ce[j] = !0, ce[h] = ce[l] = ce[R] = ce[s] = ce[C] = ce[v] = ce[c] = ce[a] = ce[t] = ce[i] = ce[o] = ce[P] = ce[F] = ce[z] = ce[I] = !1;
+ var ve = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, ge = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, oe = ve || ge || Function("return this")(), J = (typeof _ == "undefined" ? "undefined" : m(_)) == "object" && _ && !_.nodeType && _, Q = J && (typeof x == "undefined" ? "undefined" : m(x)) == "object" && x && !x.nodeType && x, he = Q && Q.exports === J, ke = he && ve.process, ne = function() {
+ try {
+ return ke && ke.binding && ke.binding("util");
+ } catch (xe) {
+ }
+ }(), se = ne && ne.isTypedArray;
+ function Ce(xe, De) {
+ for (var Je = -1, ht = xe == null ? 0 : xe.length, Yt = 0, Mt = []; ++Je < ht; ) {
+ var fr = xe[Je];
+ De(fr, Je, xe) && (Mt[Yt++] = fr);
+ }
+ return Mt;
+ }
+ function q(xe, De) {
+ for (var Je = -1, ht = De.length, Yt = xe.length; ++Je < ht; )
+ xe[Yt + Je] = De[Je];
+ return xe;
+ }
+ function G(xe, De) {
+ for (var Je = -1, ht = xe == null ? 0 : xe.length; ++Je < ht; )
+ if (De(xe[Je], Je, xe))
+ return !0;
+ return !1;
+ }
+ function Y(xe, De) {
+ for (var Je = -1, ht = Array(xe); ++Je < xe; )
+ ht[Je] = De(Je);
+ return ht;
+ }
+ function fe(xe) {
+ return function(De) {
+ return xe(De);
+ };
+ }
+ function we(xe, De) {
+ return xe.has(De);
+ }
+ function _e(xe, De) {
+ return xe == null ? void 0 : xe[De];
+ }
+ function je(xe) {
+ var De = -1, Je = Array(xe.size);
+ return xe.forEach(function(ht, Yt) {
+ Je[++De] = [Yt, ht];
+ }), Je;
+ }
+ function Ye(xe, De) {
+ return function(Je) {
+ return xe(De(Je));
+ };
+ }
+ function nt(xe) {
+ var De = -1, Je = Array(xe.size);
+ return xe.forEach(function(ht) {
+ Je[++De] = ht;
+ }), Je;
+ }
+ var ut = Array.prototype, ot = Function.prototype, Ue = Object.prototype, Ve = oe["__core-js_shared__"], Qe = ot.toString, tt = Ue.hasOwnProperty, ae = function() {
+ var xe = /[^.]+$/.exec(Ve && Ve.keys && Ve.keys.IE_PROTO || "");
+ return xe ? "Symbol(src)_1." + xe : "";
+ }(), Re = Ue.toString, be = RegExp("^" + Qe.call(tt).replace(V, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Ee = he ? oe.Buffer : void 0, pe = oe.Symbol, Pe = oe.Uint8Array, te = Ue.propertyIsEnumerable, He = ut.splice, it = pe ? pe.toStringTag : void 0, K = Object.getOwnPropertySymbols, Me = Ee ? Ee.isBuffer : void 0, Le = Ye(Object.keys, Object), ue = Bn(oe, "DataView"), Se = Bn(oe, "Map"), Ie = Bn(oe, "Promise"), st = Bn(oe, "Set"), Ge = Bn(oe, "WeakMap"), rt = Bn(Object, "create"), _t = Sn(ue), wt = Sn(Se), Ot = Sn(Ie), pt = Sn(st), ct = Sn(Ge), At = pe ? pe.prototype : void 0, Pt = At ? At.valueOf : void 0;
+ function bt(xe) {
+ var De = -1, Je = xe == null ? 0 : xe.length;
+ for (this.clear(); ++De < Je; ) {
+ var ht = xe[De];
+ this.set(ht[0], ht[1]);
+ }
+ }
+ function Kt() {
+ this.__data__ = rt ? rt(null) : {}, this.size = 0;
+ }
+ function Ct(xe) {
+ var De = this.has(xe) && delete this.__data__[xe];
+ return this.size -= De ? 1 : 0, De;
+ }
+ function xt(xe) {
+ var De = this.__data__;
+ if (rt) {
+ var Je = De[xe];
+ return Je === b ? void 0 : Je;
+ }
+ return tt.call(De, xe) ? De[xe] : void 0;
+ }
+ function Ft(xe) {
+ var De = this.__data__;
+ return rt ? De[xe] !== void 0 : tt.call(De, xe);
+ }
+ function Lt(xe, De) {
+ var Je = this.__data__;
+ return this.size += this.has(xe) ? 0 : 1, Je[xe] = rt && De === void 0 ? b : De, this;
+ }
+ bt.prototype.clear = Kt, bt.prototype.delete = Ct, bt.prototype.get = xt, bt.prototype.has = Ft, bt.prototype.set = Lt;
+ function Et(xe) {
+ var De = -1, Je = xe == null ? 0 : xe.length;
+ for (this.clear(); ++De < Je; ) {
+ var ht = xe[De];
+ this.set(ht[0], ht[1]);
+ }
+ }
+ function Dr() {
+ this.__data__ = [], this.size = 0;
+ }
+ function Or(xe) {
+ var De = this.__data__, Je = zr(De, xe);
+ if (Je < 0)
+ return !1;
+ var ht = De.length - 1;
+ return Je == ht ? De.pop() : He.call(De, Je, 1), --this.size, !0;
+ }
+ function Gr(xe) {
+ var De = this.__data__, Je = zr(De, xe);
+ return Je < 0 ? void 0 : De[Je][1];
+ }
+ function Nr(xe) {
+ return zr(this.__data__, xe) > -1;
+ }
+ function Yr(xe, De) {
+ var Je = this.__data__, ht = zr(Je, xe);
+ return ht < 0 ? (++this.size, Je.push([xe, De])) : Je[ht][1] = De, this;
+ }
+ Et.prototype.clear = Dr, Et.prototype.delete = Or, Et.prototype.get = Gr, Et.prototype.has = Nr, Et.prototype.set = Yr;
+ function Qt(xe) {
+ var De = -1, Je = xe == null ? 0 : xe.length;
+ for (this.clear(); ++De < Je; ) {
+ var ht = xe[De];
+ this.set(ht[0], ht[1]);
+ }
+ }
+ function Xr() {
+ this.size = 0, this.__data__ = {
+ hash: new bt(),
+ map: new (Se || Et)(),
+ string: new bt()
+ };
+ }
+ function Fr(xe) {
+ var De = ei(this, xe).delete(xe);
+ return this.size -= De ? 1 : 0, De;
+ }
+ function Lr(xe) {
+ return ei(this, xe).get(xe);
+ }
+ function Ur(xe) {
+ return ei(this, xe).has(xe);
+ }
+ function vt(xe, De) {
+ var Je = ei(this, xe), ht = Je.size;
+ return Je.set(xe, De), this.size += Je.size == ht ? 0 : 1, this;
+ }
+ Qt.prototype.clear = Xr, Qt.prototype.delete = Fr, Qt.prototype.get = Lr, Qt.prototype.has = Ur, Qt.prototype.set = vt;
+ function Ke(xe) {
+ var De = -1, Je = xe == null ? 0 : xe.length;
+ for (this.__data__ = new Qt(); ++De < Je; )
+ this.add(xe[De]);
+ }
+ function me(xe) {
+ return this.__data__.set(xe, b), this;
+ }
+ function Fe(xe) {
+ return this.__data__.has(xe);
+ }
+ Ke.prototype.add = Ke.prototype.push = me, Ke.prototype.has = Fe;
+ function Be(xe) {
+ var De = this.__data__ = new Et(xe);
+ this.size = De.size;
+ }
+ function dt() {
+ this.__data__ = new Et(), this.size = 0;
+ }
+ function St(xe) {
+ var De = this.__data__, Je = De.delete(xe);
+ return this.size = De.size, Je;
+ }
+ function Ht(xe) {
+ return this.__data__.get(xe);
+ }
+ function lr(xe) {
+ return this.__data__.has(xe);
+ }
+ function gr(xe, De) {
+ var Je = this.__data__;
+ if (Je instanceof Et) {
+ var ht = Je.__data__;
+ if (!Se || ht.length < g - 1)
+ return ht.push([xe, De]), this.size = ++Je.size, this;
+ Je = this.__data__ = new Qt(ht);
+ }
+ return Je.set(xe, De), this.size = Je.size, this;
+ }
+ Be.prototype.clear = dt, Be.prototype.delete = St, Be.prototype.get = Ht, Be.prototype.has = lr, Be.prototype.set = gr;
+ function rn(xe, De) {
+ var Je = jn(xe), ht = !Je && Ri(xe), Yt = !Je && !ht && kn(xe), Mt = !Je && !ht && !Yt && Ji(xe), fr = Je || ht || Yt || Mt, nr = fr ? Y(xe.length, String) : [], tr = nr.length;
+ for (var ur in xe)
+ (De || tt.call(xe, ur)) && !(fr && // Safari 9 has enumerable `arguments.length` in strict mode.
+ (ur == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
+ Yt && (ur == "offset" || ur == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
+ Mt && (ur == "buffer" || ur == "byteLength" || ur == "byteOffset") || // Skip index properties.
+ wa(ur, tr))) && nr.push(ur);
+ return nr;
+ }
+ function zr(xe, De) {
+ for (var Je = xe.length; Je--; )
+ if (Yi(xe[Je][0], De))
+ return Je;
+ return -1;
+ }
+ function pi(xe, De, Je) {
+ var ht = De(xe);
+ return jn(xe) ? ht : q(ht, Je(xe));
+ }
+ function $r(xe) {
+ return xe == null ? xe === void 0 ? M : n : it && it in Object(xe) ? Wi(xe) : Sa(xe);
+ }
+ function Dn(xe) {
+ return ti(xe) && $r(xe) == h;
+ }
+ function cn(xe, De, Je, ht, Yt) {
+ return xe === De ? !0 : xe == null || De == null || !ti(xe) && !ti(De) ? xe !== xe && De !== De : yi(xe, De, Je, ht, cn, Yt);
+ }
+ function yi(xe, De, Je, ht, Yt, Mt) {
+ var fr = jn(xe), nr = jn(De), tr = fr ? l : xn(xe), ur = nr ? l : xn(De);
+ tr = tr == h ? o : tr, ur = ur == h ? o : ur;
+ var Pr = tr == o, Br = ur == o, dr = tr == ur;
+ if (dr && kn(xe)) {
+ if (!kn(De))
+ return !1;
+ fr = !0, Pr = !1;
+ }
+ if (dr && !Pr)
+ return Mt || (Mt = new Be()), fr || Ji(xe) ? Fn(xe, De, Je, ht, Yt, Mt) : Xi(xe, De, tr, Je, ht, Yt, Mt);
+ if (!(Je & w)) {
+ var Er = Pr && tt.call(xe, "__wrapped__"), Ar = Br && tt.call(De, "__wrapped__");
+ if (Er || Ar) {
+ var pr = Er ? xe.value() : xe, pn = Ar ? De.value() : De;
+ return Mt || (Mt = new Be()), Yt(pr, pn, Je, ht, Mt);
+ }
+ }
+ return dr ? (Mt || (Mt = new Be()), Ui(xe, De, Je, ht, Yt, Mt)) : !1;
+ }
+ function hn(xe) {
+ if (!er(xe) || Gi(xe))
+ return !1;
+ var De = Zi(xe) ? be : re;
+ return De.test(Sn(xe));
+ }
+ function dn(xe) {
+ return ti(xe) && rr(xe.length) && !!ce[$r(xe)];
+ }
+ function Nn(xe) {
+ if (!xa(xe))
+ return Le(xe);
+ var De = [];
+ for (var Je in Object(xe))
+ tt.call(xe, Je) && Je != "constructor" && De.push(Je);
+ return De;
+ }
+ function Fn(xe, De, Je, ht, Yt, Mt) {
+ var fr = Je & w, nr = xe.length, tr = De.length;
+ if (nr != tr && !(fr && tr > nr))
+ return !1;
+ var ur = Mt.get(xe);
+ if (ur && Mt.get(De))
+ return ur == De;
+ var Pr = -1, Br = !0, dr = Je & f ? new Ke() : void 0;
+ for (Mt.set(xe, De), Mt.set(De, xe); ++Pr < nr; ) {
+ var Er = xe[Pr], Ar = De[Pr];
+ if (ht)
+ var pr = fr ? ht(Ar, Er, Pr, De, xe, Mt) : ht(Er, Ar, Pr, xe, De, Mt);
+ if (pr !== void 0) {
+ if (pr)
+ continue;
+ Br = !1;
+ break;
+ }
+ if (dr) {
+ if (!G(De, function(pn, mr) {
+ if (!we(dr, mr) && (Er === pn || Yt(Er, pn, Je, ht, Mt)))
+ return dr.push(mr);
+ })) {
+ Br = !1;
+ break;
+ }
+ } else if (!(Er === Ar || Yt(Er, Ar, Je, ht, Mt))) {
+ Br = !1;
+ break;
+ }
+ }
+ return Mt.delete(xe), Mt.delete(De), Br;
+ }
+ function Xi(xe, De, Je, ht, Yt, Mt, fr) {
+ switch (Je) {
+ case C:
+ if (xe.byteLength != De.byteLength || xe.byteOffset != De.byteOffset)
+ return !1;
+ xe = xe.buffer, De = De.buffer;
+ case R:
+ return !(xe.byteLength != De.byteLength || !Mt(new Pe(xe), new Pe(De)));
+ case s:
+ case v:
+ case i:
+ return Yi(+xe, +De);
+ case c:
+ return xe.name == De.name && xe.message == De.message;
+ case P:
+ case z:
+ return xe == De + "";
+ case t:
+ var nr = je;
+ case F:
+ var tr = ht & w;
+ if (nr || (nr = nt), xe.size != De.size && !tr)
+ return !1;
+ var ur = fr.get(xe);
+ if (ur)
+ return ur == De;
+ ht |= f, fr.set(xe, De);
+ var Pr = Fn(nr(xe), nr(De), ht, Yt, Mt, fr);
+ return fr.delete(xe), Pr;
+ case N:
+ if (Pt)
+ return Pt.call(xe) == Pt.call(De);
+ }
+ return !1;
+ }
+ function Ui(xe, De, Je, ht, Yt, Mt) {
+ var fr = Je & w, nr = $i(xe), tr = nr.length, ur = $i(De), Pr = ur.length;
+ if (tr != Pr && !fr)
+ return !1;
+ for (var Br = tr; Br--; ) {
+ var dr = nr[Br];
+ if (!(fr ? dr in De : tt.call(De, dr)))
+ return !1;
+ }
+ var Er = Mt.get(xe);
+ if (Er && Mt.get(De))
+ return Er == De;
+ var Ar = !0;
+ Mt.set(xe, De), Mt.set(De, xe);
+ for (var pr = fr; ++Br < tr; ) {
+ dr = nr[Br];
+ var pn = xe[dr], mr = De[dr];
+ if (ht)
+ var ea = fr ? ht(mr, pn, dr, De, xe, Mt) : ht(pn, mr, dr, xe, De, Mt);
+ if (!(ea === void 0 ? pn === mr || Yt(pn, mr, Je, ht, Mt) : ea)) {
+ Ar = !1;
+ break;
+ }
+ pr || (pr = dr == "constructor");
+ }
+ if (Ar && !pr) {
+ var En = xe.constructor, Zr = De.constructor;
+ En != Zr && "constructor" in xe && "constructor" in De && !(typeof En == "function" && En instanceof En && typeof Zr == "function" && Zr instanceof Zr) && (Ar = !1);
+ }
+ return Mt.delete(xe), Mt.delete(De), Ar;
+ }
+ function $i(xe) {
+ return pi(xe, Oa, Vi);
+ }
+ function ei(xe, De) {
+ var Je = xe.__data__;
+ return Ki(De) ? Je[typeof De == "string" ? "string" : "hash"] : Je.map;
+ }
+ function Bn(xe, De) {
+ var Je = _e(xe, De);
+ return hn(Je) ? Je : void 0;
+ }
+ function Wi(xe) {
+ var De = tt.call(xe, it), Je = xe[it];
+ try {
+ xe[it] = void 0;
+ var ht = !0;
+ } catch (Mt) {
+ }
+ var Yt = Re.call(xe);
+ return ht && (De ? xe[it] = Je : delete xe[it]), Yt;
+ }
+ var Vi = K ? function(xe) {
+ return xe == null ? [] : (xe = Object(xe), Ce(K(xe), function(De) {
+ return te.call(xe, De);
+ }));
+ } : Qi, xn = $r;
+ (ue && xn(new ue(new ArrayBuffer(1))) != C || Se && xn(new Se()) != t || Ie && xn(Ie.resolve()) != p || st && xn(new st()) != F || Ge && xn(new Ge()) != I) && (xn = function(De) {
+ var Je = $r(De), ht = Je == o ? De.constructor : void 0, Yt = ht ? Sn(ht) : "";
+ if (Yt)
+ switch (Yt) {
+ case _t:
+ return C;
+ case wt:
+ return t;
+ case Ot:
+ return p;
+ case pt:
+ return F;
+ case ct:
+ return I;
+ }
+ return Je;
+ });
+ function wa(xe, De) {
+ return De = De == null ? y : De, !!De && (typeof xe == "number" || ee.test(xe)) && xe > -1 && xe % 1 == 0 && xe < De;
+ }
+ function Ki(xe) {
+ var De = m(xe);
+ return De == "string" || De == "number" || De == "symbol" || De == "boolean" ? xe !== "__proto__" : xe === null;
+ }
+ function Gi(xe) {
+ return !!ae && ae in xe;
+ }
+ function xa(xe) {
+ var De = xe && xe.constructor, Je = typeof De == "function" && De.prototype || Ue;
+ return xe === Je;
+ }
+ function Sa(xe) {
+ return Re.call(xe);
+ }
+ function Sn(xe) {
+ if (xe != null) {
+ try {
+ return Qe.call(xe);
+ } catch (De) {
+ }
+ try {
+ return xe + "";
+ } catch (De) {
+ }
+ }
+ return "";
+ }
+ function Yi(xe, De) {
+ return xe === De || xe !== xe && De !== De;
+ }
+ var Ri = Dn(function() {
+ return arguments;
+ }()) ? Dn : function(xe) {
+ return ti(xe) && tt.call(xe, "callee") && !te.call(xe, "callee");
+ }, jn = Array.isArray;
+ function ka(xe) {
+ return xe != null && rr(xe.length) && !Zi(xe);
+ }
+ var kn = Me || qi;
+ function On(xe, De) {
+ return cn(xe, De);
+ }
+ function Zi(xe) {
+ if (!er(xe))
+ return !1;
+ var De = $r(xe);
+ return De == a || De == r || De == d || De == O;
+ }
+ function rr(xe) {
+ return typeof xe == "number" && xe > -1 && xe % 1 == 0 && xe <= y;
+ }
+ function er(xe) {
+ var De = m(xe);
+ return xe != null && (De == "object" || De == "function");
+ }
+ function ti(xe) {
+ return xe != null && m(xe) == "object";
+ }
+ var Ji = se ? fe(se) : dn;
+ function Oa(xe) {
+ return ka(xe) ? rn(xe) : Nn(xe);
+ }
+ function Qi() {
+ return [];
+ }
+ function qi() {
+ return !1;
+ }
+ x.exports = On;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 430: [function(e, x, _) {
+ (function(u) {
+ function m(P) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(z) {
+ return typeof z;
+ } : m = function(z) {
+ return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
+ }, m(P);
+ }
+ var g = "[object AsyncFunction]", b = "[object Function]", w = "[object GeneratorFunction]", f = "[object Null]", y = "[object Proxy]", h = "[object Undefined]", l = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, d = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, s = l || d || Function("return this")(), v = Object.prototype, c = v.hasOwnProperty, a = v.toString, r = s.Symbol, t = r ? r.toStringTag : void 0;
+ function i(P) {
+ return P == null ? P === void 0 ? h : f : t && t in Object(P) ? n(P) : o(P);
+ }
+ function n(P) {
+ var F = c.call(P, t), z = P[t];
+ try {
+ P[t] = void 0;
+ var N = !0;
+ } catch (I) {
+ }
+ var M = a.call(P);
+ return N && (F ? P[t] = z : delete P[t]), M;
+ }
+ function o(P) {
+ return a.call(P);
+ }
+ function p(P) {
+ if (!O(P))
+ return !1;
+ var F = i(P);
+ return F == b || F == w || F == g || F == y;
+ }
+ function O(P) {
+ var F = m(P);
+ return P != null && (F == "object" || F == "function");
+ }
+ x.exports = p;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 431: [function(e, x, _) {
+ function u(m) {
+ return m == null;
+ }
+ x.exports = u;
+ }, {}], 432: [function(e, x, _) {
+ function u(m) {
+ return m === void 0;
+ }
+ x.exports = u;
+ }, {}], 433: [function(e, x, _) {
+ (function(u) {
+ function m(be) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(pe) {
+ return typeof pe;
+ } : m = function(pe) {
+ return pe && typeof Symbol == "function" && pe.constructor === Symbol && pe !== Symbol.prototype ? "symbol" : typeof pe;
+ }, m(be);
+ }
+ var g = 200, b = "__lodash_hash_undefined__", w = 1 / 0, f = "[object Function]", y = "[object GeneratorFunction]", h = /[\\^$.*+?()[\]{}|]/g, l = /^\[object .+?Constructor\]$/, d = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, s = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, v = d || s || Function("return this")();
+ function c(be, Ee) {
+ var pe = be ? be.length : 0;
+ return !!pe && t(be, Ee, 0) > -1;
+ }
+ function a(be, Ee, pe) {
+ for (var Pe = -1, te = be ? be.length : 0; ++Pe < te; )
+ if (pe(Ee, be[Pe]))
+ return !0;
+ return !1;
+ }
+ function r(be, Ee, pe, Pe) {
+ for (var te = be.length, He = pe + (Pe ? 1 : -1); Pe ? He-- : ++He < te; )
+ if (Ee(be[He], He, be))
+ return He;
+ return -1;
+ }
+ function t(be, Ee, pe) {
+ if (Ee !== Ee)
+ return r(be, i, pe);
+ for (var Pe = pe - 1, te = be.length; ++Pe < te; )
+ if (be[Pe] === Ee)
+ return Pe;
+ return -1;
+ }
+ function i(be) {
+ return be !== be;
+ }
+ function n(be, Ee) {
+ return be.has(Ee);
+ }
+ function o(be, Ee) {
+ return be == null ? void 0 : be[Ee];
+ }
+ function p(be) {
+ var Ee = !1;
+ if (be != null && typeof be.toString != "function")
+ try {
+ Ee = !!(be + "");
+ } catch (pe) {
+ }
+ return Ee;
+ }
+ function O(be) {
+ var Ee = -1, pe = Array(be.size);
+ return be.forEach(function(Pe) {
+ pe[++Ee] = Pe;
+ }), pe;
+ }
+ var P = Array.prototype, F = Function.prototype, z = Object.prototype, N = v["__core-js_shared__"], M = function() {
+ var be = /[^.]+$/.exec(N && N.keys && N.keys.IE_PROTO || "");
+ return be ? "Symbol(src)_1." + be : "";
+ }(), I = F.toString, R = z.hasOwnProperty, C = z.toString, E = RegExp("^" + I.call(R).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), A = P.splice, L = nt(v, "Map"), $ = nt(v, "Set"), W = nt(Object, "create");
+ function U(be) {
+ var Ee = -1, pe = be ? be.length : 0;
+ for (this.clear(); ++Ee < pe; ) {
+ var Pe = be[Ee];
+ this.set(Pe[0], Pe[1]);
+ }
+ }
+ function D() {
+ this.__data__ = W ? W(null) : {};
+ }
+ function B(be) {
+ return this.has(be) && delete this.__data__[be];
+ }
+ function j(be) {
+ var Ee = this.__data__;
+ if (W) {
+ var pe = Ee[be];
+ return pe === b ? void 0 : pe;
+ }
+ return R.call(Ee, be) ? Ee[be] : void 0;
+ }
+ function V(be) {
+ var Ee = this.__data__;
+ return W ? Ee[be] !== void 0 : R.call(Ee, be);
+ }
+ function re(be, Ee) {
+ var pe = this.__data__;
+ return pe[be] = W && Ee === void 0 ? b : Ee, this;
+ }
+ U.prototype.clear = D, U.prototype.delete = B, U.prototype.get = j, U.prototype.has = V, U.prototype.set = re;
+ function ee(be) {
+ var Ee = -1, pe = be ? be.length : 0;
+ for (this.clear(); ++Ee < pe; ) {
+ var Pe = be[Ee];
+ this.set(Pe[0], Pe[1]);
+ }
+ }
+ function ce() {
+ this.__data__ = [];
+ }
+ function ve(be) {
+ var Ee = this.__data__, pe = fe(Ee, be);
+ if (pe < 0)
+ return !1;
+ var Pe = Ee.length - 1;
+ return pe == Pe ? Ee.pop() : A.call(Ee, pe, 1), !0;
+ }
+ function ge(be) {
+ var Ee = this.__data__, pe = fe(Ee, be);
+ return pe < 0 ? void 0 : Ee[pe][1];
+ }
+ function oe(be) {
+ return fe(this.__data__, be) > -1;
+ }
+ function J(be, Ee) {
+ var pe = this.__data__, Pe = fe(pe, be);
+ return Pe < 0 ? pe.push([be, Ee]) : pe[Pe][1] = Ee, this;
+ }
+ ee.prototype.clear = ce, ee.prototype.delete = ve, ee.prototype.get = ge, ee.prototype.has = oe, ee.prototype.set = J;
+ function Q(be) {
+ var Ee = -1, pe = be ? be.length : 0;
+ for (this.clear(); ++Ee < pe; ) {
+ var Pe = be[Ee];
+ this.set(Pe[0], Pe[1]);
+ }
+ }
+ function he() {
+ this.__data__ = {
+ hash: new U(),
+ map: new (L || ee)(),
+ string: new U()
+ };
+ }
+ function ke(be) {
+ return Ye(this, be).delete(be);
+ }
+ function ne(be) {
+ return Ye(this, be).get(be);
+ }
+ function se(be) {
+ return Ye(this, be).has(be);
+ }
+ function Ce(be, Ee) {
+ return Ye(this, be).set(be, Ee), this;
+ }
+ Q.prototype.clear = he, Q.prototype.delete = ke, Q.prototype.get = ne, Q.prototype.has = se, Q.prototype.set = Ce;
+ function q(be) {
+ var Ee = -1, pe = be ? be.length : 0;
+ for (this.__data__ = new Q(); ++Ee < pe; )
+ this.add(be[Ee]);
+ }
+ function G(be) {
+ return this.__data__.set(be, b), this;
+ }
+ function Y(be) {
+ return this.__data__.has(be);
+ }
+ q.prototype.add = q.prototype.push = G, q.prototype.has = Y;
+ function fe(be, Ee) {
+ for (var pe = be.length; pe--; )
+ if (Qe(be[pe][0], Ee))
+ return pe;
+ return -1;
+ }
+ function we(be) {
+ if (!ae(be) || ot(be))
+ return !1;
+ var Ee = tt(be) || p(be) ? E : l;
+ return Ee.test(Ue(be));
+ }
+ function _e(be, Ee, pe) {
+ var Pe = -1, te = c, He = be.length, it = !0, K = [], Me = K;
+ if (pe)
+ it = !1, te = a;
+ else if (He >= g) {
+ var Le = Ee ? null : je(be);
+ if (Le)
+ return O(Le);
+ it = !1, te = n, Me = new q();
+ } else
+ Me = Ee ? [] : K;
+ e:
+ for (; ++Pe < He; ) {
+ var ue = be[Pe], Se = Ee ? Ee(ue) : ue;
+ if (ue = pe || ue !== 0 ? ue : 0, it && Se === Se) {
+ for (var Ie = Me.length; Ie--; )
+ if (Me[Ie] === Se)
+ continue e;
+ Ee && Me.push(Se), K.push(ue);
+ } else
+ te(Me, Se, pe) || (Me !== K && Me.push(Se), K.push(ue));
+ }
+ return K;
+ }
+ var je = $ && 1 / O(new $([, -0]))[1] == w ? function(be) {
+ return new $(be);
+ } : Re;
+ function Ye(be, Ee) {
+ var pe = be.__data__;
+ return ut(Ee) ? pe[typeof Ee == "string" ? "string" : "hash"] : pe.map;
+ }
+ function nt(be, Ee) {
+ var pe = o(be, Ee);
+ return we(pe) ? pe : void 0;
+ }
+ function ut(be) {
+ var Ee = m(be);
+ return Ee == "string" || Ee == "number" || Ee == "symbol" || Ee == "boolean" ? be !== "__proto__" : be === null;
+ }
+ function ot(be) {
+ return !!M && M in be;
+ }
+ function Ue(be) {
+ if (be != null) {
+ try {
+ return I.call(be);
+ } catch (Ee) {
+ }
+ try {
+ return be + "";
+ } catch (Ee) {
+ }
+ }
+ return "";
+ }
+ function Ve(be) {
+ return be && be.length ? _e(be) : [];
+ }
+ function Qe(be, Ee) {
+ return be === Ee || be !== be && Ee !== Ee;
+ }
+ function tt(be) {
+ var Ee = ae(be) ? C.call(be) : "";
+ return Ee == f || Ee == y;
+ }
+ function ae(be) {
+ var Ee = m(be);
+ return !!be && (Ee == "object" || Ee == "function");
+ }
+ function Re() {
+ }
+ x.exports = Ve;
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 434: [function(e, x, _) {
+ var u = e("inherits"), m = e("hash-base"), g = e("safe-buffer").Buffer, b = new Array(16);
+ function w() {
+ m.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
+ }
+ u(w, m), w.prototype._update = function() {
+ for (var s = b, v = 0; v < 16; ++v)
+ s[v] = this._block.readInt32LE(v * 4);
+ var c = this._a, a = this._b, r = this._c, t = this._d;
+ c = y(c, a, r, t, s[0], 3614090360, 7), t = y(t, c, a, r, s[1], 3905402710, 12), r = y(r, t, c, a, s[2], 606105819, 17), a = y(a, r, t, c, s[3], 3250441966, 22), c = y(c, a, r, t, s[4], 4118548399, 7), t = y(t, c, a, r, s[5], 1200080426, 12), r = y(r, t, c, a, s[6], 2821735955, 17), a = y(a, r, t, c, s[7], 4249261313, 22), c = y(c, a, r, t, s[8], 1770035416, 7), t = y(t, c, a, r, s[9], 2336552879, 12), r = y(r, t, c, a, s[10], 4294925233, 17), a = y(a, r, t, c, s[11], 2304563134, 22), c = y(c, a, r, t, s[12], 1804603682, 7), t = y(t, c, a, r, s[13], 4254626195, 12), r = y(r, t, c, a, s[14], 2792965006, 17), a = y(a, r, t, c, s[15], 1236535329, 22), c = h(c, a, r, t, s[1], 4129170786, 5), t = h(t, c, a, r, s[6], 3225465664, 9), r = h(r, t, c, a, s[11], 643717713, 14), a = h(a, r, t, c, s[0], 3921069994, 20), c = h(c, a, r, t, s[5], 3593408605, 5), t = h(t, c, a, r, s[10], 38016083, 9), r = h(r, t, c, a, s[15], 3634488961, 14), a = h(a, r, t, c, s[4], 3889429448, 20), c = h(c, a, r, t, s[9], 568446438, 5), t = h(t, c, a, r, s[14], 3275163606, 9), r = h(r, t, c, a, s[3], 4107603335, 14), a = h(a, r, t, c, s[8], 1163531501, 20), c = h(c, a, r, t, s[13], 2850285829, 5), t = h(t, c, a, r, s[2], 4243563512, 9), r = h(r, t, c, a, s[7], 1735328473, 14), a = h(a, r, t, c, s[12], 2368359562, 20), c = l(c, a, r, t, s[5], 4294588738, 4), t = l(t, c, a, r, s[8], 2272392833, 11), r = l(r, t, c, a, s[11], 1839030562, 16), a = l(a, r, t, c, s[14], 4259657740, 23), c = l(c, a, r, t, s[1], 2763975236, 4), t = l(t, c, a, r, s[4], 1272893353, 11), r = l(r, t, c, a, s[7], 4139469664, 16), a = l(a, r, t, c, s[10], 3200236656, 23), c = l(c, a, r, t, s[13], 681279174, 4), t = l(t, c, a, r, s[0], 3936430074, 11), r = l(r, t, c, a, s[3], 3572445317, 16), a = l(a, r, t, c, s[6], 76029189, 23), c = l(c, a, r, t, s[9], 3654602809, 4), t = l(t, c, a, r, s[12], 3873151461, 11), r = l(r, t, c, a, s[15], 530742520, 16), a = l(a, r, t, c, s[2], 3299628645, 23), c = d(c, a, r, t, s[0], 4096336452, 6), t = d(t, c, a, r, s[7], 1126891415, 10), r = d(r, t, c, a, s[14], 2878612391, 15), a = d(a, r, t, c, s[5], 4237533241, 21), c = d(c, a, r, t, s[12], 1700485571, 6), t = d(t, c, a, r, s[3], 2399980690, 10), r = d(r, t, c, a, s[10], 4293915773, 15), a = d(a, r, t, c, s[1], 2240044497, 21), c = d(c, a, r, t, s[8], 1873313359, 6), t = d(t, c, a, r, s[15], 4264355552, 10), r = d(r, t, c, a, s[6], 2734768916, 15), a = d(a, r, t, c, s[13], 1309151649, 21), c = d(c, a, r, t, s[4], 4149444226, 6), t = d(t, c, a, r, s[11], 3174756917, 10), r = d(r, t, c, a, s[2], 718787259, 15), a = d(a, r, t, c, s[9], 3951481745, 21), this._a = this._a + c | 0, this._b = this._b + a | 0, this._c = this._c + r | 0, this._d = this._d + t | 0;
+ }, w.prototype._digest = function() {
+ this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
+ var s = g.allocUnsafe(16);
+ return s.writeInt32LE(this._a, 0), s.writeInt32LE(this._b, 4), s.writeInt32LE(this._c, 8), s.writeInt32LE(this._d, 12), s;
+ };
+ function f(s, v) {
+ return s << v | s >>> 32 - v;
+ }
+ function y(s, v, c, a, r, t, i) {
+ return f(s + (v & c | ~v & a) + r + t | 0, i) + v | 0;
+ }
+ function h(s, v, c, a, r, t, i) {
+ return f(s + (v & a | c & ~a) + r + t | 0, i) + v | 0;
+ }
+ function l(s, v, c, a, r, t, i) {
+ return f(s + (v ^ c ^ a) + r + t | 0, i) + v | 0;
+ }
+ function d(s, v, c, a, r, t, i) {
+ return f(s + (c ^ (v | ~a)) + r + t | 0, i) + v | 0;
+ }
+ x.exports = w;
+ }, { "hash-base": 370, inherits: 387, "safe-buffer": 494 }], 435: [function(e, x, _) {
+ var u = e("bn.js"), m = e("brorand");
+ function g(b) {
+ this.rand = b || new m.Rand();
+ }
+ x.exports = g, g.create = function(w) {
+ return new g(w);
+ }, g.prototype._randbelow = function(w) {
+ var f = w.bitLength(), y = Math.ceil(f / 8);
+ do
+ var h = new u(this.rand.generate(y));
+ while (h.cmp(w) >= 0);
+ return h;
+ }, g.prototype._randrange = function(w, f) {
+ var y = f.sub(w);
+ return w.add(this._randbelow(y));
+ }, g.prototype.test = function(w, f, y) {
+ var h = w.bitLength(), l = u.mont(w), d = new u(1).toRed(l);
+ f || (f = Math.max(1, h / 48 | 0));
+ for (var s = w.subn(1), v = 0; !s.testn(v); v++)
+ ;
+ for (var c = w.shrn(v), a = s.toRed(l), r = !0; f > 0; f--) {
+ var t = this._randrange(new u(2), s);
+ y && y(t);
+ var i = t.toRed(l).redPow(c);
+ if (!(i.cmp(d) === 0 || i.cmp(a) === 0)) {
+ for (var n = 1; n < v; n++) {
+ if (i = i.redSqr(), i.cmp(d) === 0)
+ return !1;
+ if (i.cmp(a) === 0)
+ break;
+ }
+ if (n === v)
+ return !1;
+ }
+ }
+ return r;
+ }, g.prototype.getDivisor = function(w, f) {
+ var y = w.bitLength(), h = u.mont(w), l = new u(1).toRed(h);
+ f || (f = Math.max(1, y / 48 | 0));
+ for (var d = w.subn(1), s = 0; !d.testn(s); s++)
+ ;
+ for (var v = w.shrn(s), c = d.toRed(h); f > 0; f--) {
+ var a = this._randrange(new u(2), d), r = w.gcd(a);
+ if (r.cmpn(1) !== 0)
+ return r;
+ var t = a.toRed(h).redPow(v);
+ if (!(t.cmp(l) === 0 || t.cmp(c) === 0)) {
+ for (var i = 1; i < s; i++) {
+ if (t = t.redSqr(), t.cmp(l) === 0)
+ return t.fromRed().subn(1).gcd(w);
+ if (t.cmp(c) === 0)
+ break;
+ }
+ if (i === s)
+ return t = t.redSqr(), t.fromRed().subn(1).gcd(w);
+ }
+ }
+ return !1;
+ };
+ }, { "bn.js": 436, brorand: 184 }], 436: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 437: [function(e, x, _) {
+ x.exports = u;
+ function u(m, g) {
+ if (!m)
+ throw new Error(g || "Assertion failed");
+ }
+ u.equal = function(g, b, w) {
+ if (g != b)
+ throw new Error(w || "Assertion failed: " + g + " != " + b);
+ };
+ }, {}], 438: [function(e, x, _) {
+ var u = _;
+ function m(w, f) {
+ if (Array.isArray(w))
+ return w.slice();
+ if (!w)
+ return [];
+ var y = [];
+ if (typeof w != "string") {
+ for (var h = 0; h < w.length; h++)
+ y[h] = w[h] | 0;
+ return y;
+ }
+ if (f === "hex") {
+ w = w.replace(/[^a-z0-9]+/ig, ""), w.length % 2 !== 0 && (w = "0" + w);
+ for (var h = 0; h < w.length; h += 2)
+ y.push(parseInt(w[h] + w[h + 1], 16));
+ } else
+ for (var h = 0; h < w.length; h++) {
+ var l = w.charCodeAt(h), d = l >> 8, s = l & 255;
+ d ? y.push(d, s) : y.push(s);
+ }
+ return y;
+ }
+ u.toArray = m;
+ function g(w) {
+ return w.length === 1 ? "0" + w : w;
+ }
+ u.zero2 = g;
+ function b(w) {
+ for (var f = "", y = 0; y < w.length; y++)
+ f += g(w[y].toString(16));
+ return f;
+ }
+ u.toHex = b, u.encode = function(f, y) {
+ return y === "hex" ? b(f) : f;
+ };
+ }, {}], 439: [function(e, x, _) {
+ var u = e("./lib/utils/common").assign, m = e("./lib/deflate"), g = e("./lib/inflate"), b = e("./lib/zlib/constants"), w = {};
+ u(w, m, g, b), x.exports = w;
+ }, { "./lib/deflate": 440, "./lib/inflate": 441, "./lib/utils/common": 442, "./lib/zlib/constants": 445 }], 440: [function(e, x, _) {
+ var u = e("./zlib/deflate"), m = e("./utils/common"), g = e("./utils/strings"), b = e("./zlib/messages"), w = e("./zlib/zstream"), f = Object.prototype.toString, y = 0, h = 4, l = 0, d = 1, s = 2, v = -1, c = 0, a = 8;
+ function r(o) {
+ if (!(this instanceof r))
+ return new r(o);
+ this.options = m.assign({
+ level: v,
+ method: a,
+ chunkSize: 16384,
+ windowBits: 15,
+ memLevel: 8,
+ strategy: c,
+ to: ""
+ }, o || {});
+ var p = this.options;
+ p.raw && p.windowBits > 0 ? p.windowBits = -p.windowBits : p.gzip && p.windowBits > 0 && p.windowBits < 16 && (p.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
+ var O = u.deflateInit2(this.strm, p.level, p.method, p.windowBits, p.memLevel, p.strategy);
+ if (O !== l)
+ throw new Error(b[O]);
+ if (p.header && u.deflateSetHeader(this.strm, p.header), p.dictionary) {
+ var P;
+ if (typeof p.dictionary == "string" ? P = g.string2buf(p.dictionary) : f.call(p.dictionary) === "[object ArrayBuffer]" ? P = new Uint8Array(p.dictionary) : P = p.dictionary, O = u.deflateSetDictionary(this.strm, P), O !== l)
+ throw new Error(b[O]);
+ this._dict_set = !0;
+ }
+ }
+ r.prototype.push = function(o, p) {
+ var O = this.strm, P = this.options.chunkSize, F, z;
+ if (this.ended)
+ return !1;
+ z = p === ~~p ? p : p === !0 ? h : y, typeof o == "string" ? O.input = g.string2buf(o) : f.call(o) === "[object ArrayBuffer]" ? O.input = new Uint8Array(o) : O.input = o, O.next_in = 0, O.avail_in = O.input.length;
+ do {
+ if (O.avail_out === 0 && (O.output = new m.Buf8(P), O.next_out = 0, O.avail_out = P), F = u.deflate(O, z), F !== d && F !== l)
+ return this.onEnd(F), this.ended = !0, !1;
+ (O.avail_out === 0 || O.avail_in === 0 && (z === h || z === s)) && (this.options.to === "string" ? this.onData(g.buf2binstring(m.shrinkBuf(O.output, O.next_out))) : this.onData(m.shrinkBuf(O.output, O.next_out)));
+ } while ((O.avail_in > 0 || O.avail_out === 0) && F !== d);
+ return z === h ? (F = u.deflateEnd(this.strm), this.onEnd(F), this.ended = !0, F === l) : (z === s && (this.onEnd(l), O.avail_out = 0), !0);
+ }, r.prototype.onData = function(o) {
+ this.chunks.push(o);
+ }, r.prototype.onEnd = function(o) {
+ o === l && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = m.flattenChunks(this.chunks)), this.chunks = [], this.err = o, this.msg = this.strm.msg;
+ };
+ function t(o, p) {
+ var O = new r(p);
+ if (O.push(o, !0), O.err)
+ throw O.msg || b[O.err];
+ return O.result;
+ }
+ function i(o, p) {
+ return p = p || {}, p.raw = !0, t(o, p);
+ }
+ function n(o, p) {
+ return p = p || {}, p.gzip = !0, t(o, p);
+ }
+ _.Deflate = r, _.deflate = t, _.deflateRaw = i, _.gzip = n;
+ }, { "./utils/common": 442, "./utils/strings": 443, "./zlib/deflate": 447, "./zlib/messages": 452, "./zlib/zstream": 454 }], 441: [function(e, x, _) {
+ var u = e("./zlib/inflate"), m = e("./utils/common"), g = e("./utils/strings"), b = e("./zlib/constants"), w = e("./zlib/messages"), f = e("./zlib/zstream"), y = e("./zlib/gzheader"), h = Object.prototype.toString;
+ function l(v) {
+ if (!(this instanceof l))
+ return new l(v);
+ this.options = m.assign({
+ chunkSize: 16384,
+ windowBits: 0,
+ to: ""
+ }, v || {});
+ var c = this.options;
+ c.raw && c.windowBits >= 0 && c.windowBits < 16 && (c.windowBits = -c.windowBits, c.windowBits === 0 && (c.windowBits = -15)), c.windowBits >= 0 && c.windowBits < 16 && !(v && v.windowBits) && (c.windowBits += 32), c.windowBits > 15 && c.windowBits < 48 && (c.windowBits & 15 || (c.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new f(), this.strm.avail_out = 0;
+ var a = u.inflateInit2(this.strm, c.windowBits);
+ if (a !== b.Z_OK)
+ throw new Error(w[a]);
+ if (this.header = new y(), u.inflateGetHeader(this.strm, this.header), c.dictionary && (typeof c.dictionary == "string" ? c.dictionary = g.string2buf(c.dictionary) : h.call(c.dictionary) === "[object ArrayBuffer]" && (c.dictionary = new Uint8Array(c.dictionary)), c.raw && (a = u.inflateSetDictionary(this.strm, c.dictionary), a !== b.Z_OK)))
+ throw new Error(w[a]);
+ }
+ l.prototype.push = function(v, c) {
+ var a = this.strm, r = this.options.chunkSize, t = this.options.dictionary, i, n, o, p, O, P = !1;
+ if (this.ended)
+ return !1;
+ n = c === ~~c ? c : c === !0 ? b.Z_FINISH : b.Z_NO_FLUSH, typeof v == "string" ? a.input = g.binstring2buf(v) : h.call(v) === "[object ArrayBuffer]" ? a.input = new Uint8Array(v) : a.input = v, a.next_in = 0, a.avail_in = a.input.length;
+ do {
+ if (a.avail_out === 0 && (a.output = new m.Buf8(r), a.next_out = 0, a.avail_out = r), i = u.inflate(a, b.Z_NO_FLUSH), i === b.Z_NEED_DICT && t && (i = u.inflateSetDictionary(this.strm, t)), i === b.Z_BUF_ERROR && P === !0 && (i = b.Z_OK, P = !1), i !== b.Z_STREAM_END && i !== b.Z_OK)
+ return this.onEnd(i), this.ended = !0, !1;
+ a.next_out && (a.avail_out === 0 || i === b.Z_STREAM_END || a.avail_in === 0 && (n === b.Z_FINISH || n === b.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (o = g.utf8border(a.output, a.next_out), p = a.next_out - o, O = g.buf2string(a.output, o), a.next_out = p, a.avail_out = r - p, p && m.arraySet(a.output, a.output, o, p, 0), this.onData(O)) : this.onData(m.shrinkBuf(a.output, a.next_out))), a.avail_in === 0 && a.avail_out === 0 && (P = !0);
+ } while ((a.avail_in > 0 || a.avail_out === 0) && i !== b.Z_STREAM_END);
+ return i === b.Z_STREAM_END && (n = b.Z_FINISH), n === b.Z_FINISH ? (i = u.inflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === b.Z_OK) : (n === b.Z_SYNC_FLUSH && (this.onEnd(b.Z_OK), a.avail_out = 0), !0);
+ }, l.prototype.onData = function(v) {
+ this.chunks.push(v);
+ }, l.prototype.onEnd = function(v) {
+ v === b.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = m.flattenChunks(this.chunks)), this.chunks = [], this.err = v, this.msg = this.strm.msg;
+ };
+ function d(v, c) {
+ var a = new l(c);
+ if (a.push(v, !0), a.err)
+ throw a.msg || w[a.err];
+ return a.result;
+ }
+ function s(v, c) {
+ return c = c || {}, c.raw = !0, d(v, c);
+ }
+ _.Inflate = l, _.inflate = d, _.inflateRaw = s, _.ungzip = d;
+ }, { "./utils/common": 442, "./utils/strings": 443, "./zlib/constants": 445, "./zlib/gzheader": 448, "./zlib/inflate": 450, "./zlib/messages": 452, "./zlib/zstream": 454 }], 442: [function(e, x, _) {
+ function u(f) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(h) {
+ return typeof h;
+ } : u = function(h) {
+ return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
+ }, u(f);
+ }
+ var m = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Int32Array != "undefined";
+ function g(f, y) {
+ return Object.prototype.hasOwnProperty.call(f, y);
+ }
+ _.assign = function(f) {
+ for (var y = Array.prototype.slice.call(arguments, 1); y.length; ) {
+ var h = y.shift();
+ if (h) {
+ if (u(h) !== "object")
+ throw new TypeError(h + "must be non-object");
+ for (var l in h)
+ g(h, l) && (f[l] = h[l]);
+ }
+ }
+ return f;
+ }, _.shrinkBuf = function(f, y) {
+ return f.length === y ? f : f.subarray ? f.subarray(0, y) : (f.length = y, f);
+ };
+ var b = {
+ arraySet: function(y, h, l, d, s) {
+ if (h.subarray && y.subarray) {
+ y.set(h.subarray(l, l + d), s);
+ return;
+ }
+ for (var v = 0; v < d; v++)
+ y[s + v] = h[l + v];
+ },
+ // Join array of chunks to single array.
+ flattenChunks: function(y) {
+ var h, l, d, s, v, c;
+ for (d = 0, h = 0, l = y.length; h < l; h++)
+ d += y[h].length;
+ for (c = new Uint8Array(d), s = 0, h = 0, l = y.length; h < l; h++)
+ v = y[h], c.set(v, s), s += v.length;
+ return c;
+ }
+ }, w = {
+ arraySet: function(y, h, l, d, s) {
+ for (var v = 0; v < d; v++)
+ y[s + v] = h[l + v];
+ },
+ // Join array of chunks to single array.
+ flattenChunks: function(y) {
+ return [].concat.apply([], y);
+ }
+ };
+ _.setTyped = function(f) {
+ f ? (_.Buf8 = Uint8Array, _.Buf16 = Uint16Array, _.Buf32 = Int32Array, _.assign(_, b)) : (_.Buf8 = Array, _.Buf16 = Array, _.Buf32 = Array, _.assign(_, w));
+ }, _.setTyped(m);
+ }, {}], 443: [function(e, x, _) {
+ var u = e("./common"), m = !0, g = !0;
+ try {
+ String.fromCharCode.apply(null, [0]);
+ } catch (y) {
+ m = !1;
+ }
+ try {
+ String.fromCharCode.apply(null, new Uint8Array(1));
+ } catch (y) {
+ g = !1;
+ }
+ for (var b = new u.Buf8(256), w = 0; w < 256; w++)
+ b[w] = w >= 252 ? 6 : w >= 248 ? 5 : w >= 240 ? 4 : w >= 224 ? 3 : w >= 192 ? 2 : 1;
+ b[254] = b[254] = 1, _.string2buf = function(y) {
+ var h, l, d, s, v, c = y.length, a = 0;
+ for (s = 0; s < c; s++)
+ l = y.charCodeAt(s), (l & 64512) === 55296 && s + 1 < c && (d = y.charCodeAt(s + 1), (d & 64512) === 56320 && (l = 65536 + (l - 55296 << 10) + (d - 56320), s++)), a += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4;
+ for (h = new u.Buf8(a), v = 0, s = 0; v < a; s++)
+ l = y.charCodeAt(s), (l & 64512) === 55296 && s + 1 < c && (d = y.charCodeAt(s + 1), (d & 64512) === 56320 && (l = 65536 + (l - 55296 << 10) + (d - 56320), s++)), l < 128 ? h[v++] = l : l < 2048 ? (h[v++] = 192 | l >>> 6, h[v++] = 128 | l & 63) : l < 65536 ? (h[v++] = 224 | l >>> 12, h[v++] = 128 | l >>> 6 & 63, h[v++] = 128 | l & 63) : (h[v++] = 240 | l >>> 18, h[v++] = 128 | l >>> 12 & 63, h[v++] = 128 | l >>> 6 & 63, h[v++] = 128 | l & 63);
+ return h;
+ };
+ function f(y, h) {
+ if (h < 65534 && (y.subarray && g || !y.subarray && m))
+ return String.fromCharCode.apply(null, u.shrinkBuf(y, h));
+ for (var l = "", d = 0; d < h; d++)
+ l += String.fromCharCode(y[d]);
+ return l;
+ }
+ _.buf2binstring = function(y) {
+ return f(y, y.length);
+ }, _.binstring2buf = function(y) {
+ for (var h = new u.Buf8(y.length), l = 0, d = h.length; l < d; l++)
+ h[l] = y.charCodeAt(l);
+ return h;
+ }, _.buf2string = function(y, h) {
+ var l, d, s, v, c = h || y.length, a = new Array(c * 2);
+ for (d = 0, l = 0; l < c; ) {
+ if (s = y[l++], s < 128) {
+ a[d++] = s;
+ continue;
+ }
+ if (v = b[s], v > 4) {
+ a[d++] = 65533, l += v - 1;
+ continue;
+ }
+ for (s &= v === 2 ? 31 : v === 3 ? 15 : 7; v > 1 && l < c; )
+ s = s << 6 | y[l++] & 63, v--;
+ if (v > 1) {
+ a[d++] = 65533;
+ continue;
+ }
+ s < 65536 ? a[d++] = s : (s -= 65536, a[d++] = 55296 | s >> 10 & 1023, a[d++] = 56320 | s & 1023);
+ }
+ return f(a, d);
+ }, _.utf8border = function(y, h) {
+ var l;
+ for (h = h || y.length, h > y.length && (h = y.length), l = h - 1; l >= 0 && (y[l] & 192) === 128; )
+ l--;
+ return l < 0 || l === 0 ? h : l + b[y[l]] > h ? l : h;
+ };
+ }, { "./common": 442 }], 444: [function(e, x, _) {
+ function u(m, g, b, w) {
+ for (var f = m & 65535 | 0, y = m >>> 16 & 65535 | 0, h = 0; b !== 0; ) {
+ h = b > 2e3 ? 2e3 : b, b -= h;
+ do
+ f = f + g[w++] | 0, y = y + f | 0;
+ while (--h);
+ f %= 65521, y %= 65521;
+ }
+ return f | y << 16 | 0;
+ }
+ x.exports = u;
+ }, {}], 445: [function(e, x, _) {
+ x.exports = {
+ /* Allowed flush values; see deflate() and inflate() below for details */
+ Z_NO_FLUSH: 0,
+ Z_PARTIAL_FLUSH: 1,
+ Z_SYNC_FLUSH: 2,
+ Z_FULL_FLUSH: 3,
+ Z_FINISH: 4,
+ Z_BLOCK: 5,
+ Z_TREES: 6,
+ /* Return codes for the compression/decompression functions. Negative values
+ * are errors, positive values are used for special but normal events.
+ */
+ Z_OK: 0,
+ Z_STREAM_END: 1,
+ Z_NEED_DICT: 2,
+ Z_ERRNO: -1,
+ Z_STREAM_ERROR: -2,
+ Z_DATA_ERROR: -3,
+ //Z_MEM_ERROR: -4,
+ Z_BUF_ERROR: -5,
+ //Z_VERSION_ERROR: -6,
+ /* compression levels */
+ Z_NO_COMPRESSION: 0,
+ Z_BEST_SPEED: 1,
+ Z_BEST_COMPRESSION: 9,
+ Z_DEFAULT_COMPRESSION: -1,
+ Z_FILTERED: 1,
+ Z_HUFFMAN_ONLY: 2,
+ Z_RLE: 3,
+ Z_FIXED: 4,
+ Z_DEFAULT_STRATEGY: 0,
+ /* Possible values of the data_type field (though see inflate()) */
+ Z_BINARY: 0,
+ Z_TEXT: 1,
+ //Z_ASCII: 1, // = Z_TEXT (deprecated)
+ Z_UNKNOWN: 2,
+ /* The deflate compression method */
+ Z_DEFLATED: 8
+ //Z_NULL: null // Use -1 or null inline, depending on var type
+ };
+ }, {}], 446: [function(e, x, _) {
+ function u() {
+ for (var b, w = [], f = 0; f < 256; f++) {
+ b = f;
+ for (var y = 0; y < 8; y++)
+ b = b & 1 ? 3988292384 ^ b >>> 1 : b >>> 1;
+ w[f] = b;
+ }
+ return w;
+ }
+ var m = u();
+ function g(b, w, f, y) {
+ var h = m, l = y + f;
+ b ^= -1;
+ for (var d = y; d < l; d++)
+ b = b >>> 8 ^ h[(b ^ w[d]) & 255];
+ return b ^ -1;
+ }
+ x.exports = g;
+ }, {}], 447: [function(e, x, _) {
+ var u = e("../utils/common"), m = e("./trees"), g = e("./adler32"), b = e("./crc32"), w = e("./messages"), f = 0, y = 1, h = 3, l = 4, d = 5, s = 0, v = 1, c = -2, a = -3, r = -5, t = -1, i = 1, n = 2, o = 3, p = 4, O = 0, P = 2, F = 8, z = 9, N = 15, M = 8, I = 29, R = 256, C = R + 1 + I, E = 30, A = 19, L = 2 * C + 1, $ = 15, W = 3, U = 258, D = U + W + 1, B = 32, j = 42, V = 69, re = 73, ee = 91, ce = 103, ve = 113, ge = 666, oe = 1, J = 2, Q = 3, he = 4, ke = 3;
+ function ne(K, Me) {
+ return K.msg = w[Me], Me;
+ }
+ function se(K) {
+ return (K << 1) - (K > 4 ? 9 : 0);
+ }
+ function Ce(K) {
+ for (var Me = K.length; --Me >= 0; )
+ K[Me] = 0;
+ }
+ function q(K) {
+ var Me = K.state, Le = Me.pending;
+ Le > K.avail_out && (Le = K.avail_out), Le !== 0 && (u.arraySet(K.output, Me.pending_buf, Me.pending_out, Le, K.next_out), K.next_out += Le, Me.pending_out += Le, K.total_out += Le, K.avail_out -= Le, Me.pending -= Le, Me.pending === 0 && (Me.pending_out = 0));
+ }
+ function G(K, Me) {
+ m._tr_flush_block(K, K.block_start >= 0 ? K.block_start : -1, K.strstart - K.block_start, Me), K.block_start = K.strstart, q(K.strm);
+ }
+ function Y(K, Me) {
+ K.pending_buf[K.pending++] = Me;
+ }
+ function fe(K, Me) {
+ K.pending_buf[K.pending++] = Me >>> 8 & 255, K.pending_buf[K.pending++] = Me & 255;
+ }
+ function we(K, Me, Le, ue) {
+ var Se = K.avail_in;
+ return Se > ue && (Se = ue), Se === 0 ? 0 : (K.avail_in -= Se, u.arraySet(Me, K.input, K.next_in, Se, Le), K.state.wrap === 1 ? K.adler = g(K.adler, Me, Se, Le) : K.state.wrap === 2 && (K.adler = b(K.adler, Me, Se, Le)), K.next_in += Se, K.total_in += Se, Se);
+ }
+ function _e(K, Me) {
+ var Le = K.max_chain_length, ue = K.strstart, Se, Ie, st = K.prev_length, Ge = K.nice_match, rt = K.strstart > K.w_size - D ? K.strstart - (K.w_size - D) : 0, _t = K.window, wt = K.w_mask, Ot = K.prev, pt = K.strstart + U, ct = _t[ue + st - 1], At = _t[ue + st];
+ K.prev_length >= K.good_match && (Le >>= 2), Ge > K.lookahead && (Ge = K.lookahead);
+ do
+ if (Se = Me, !(_t[Se + st] !== At || _t[Se + st - 1] !== ct || _t[Se] !== _t[ue] || _t[++Se] !== _t[ue + 1])) {
+ ue += 2, Se++;
+ do
+ ;
+ while (_t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && ue < pt);
+ if (Ie = U - (pt - ue), ue = pt - U, Ie > st) {
+ if (K.match_start = Me, st = Ie, Ie >= Ge)
+ break;
+ ct = _t[ue + st - 1], At = _t[ue + st];
+ }
+ }
+ while ((Me = Ot[Me & wt]) > rt && --Le !== 0);
+ return st <= K.lookahead ? st : K.lookahead;
+ }
+ function je(K) {
+ var Me = K.w_size, Le, ue, Se, Ie, st;
+ do {
+ if (Ie = K.window_size - K.lookahead - K.strstart, K.strstart >= Me + (Me - D)) {
+ u.arraySet(K.window, K.window, Me, Me, 0), K.match_start -= Me, K.strstart -= Me, K.block_start -= Me, ue = K.hash_size, Le = ue;
+ do
+ Se = K.head[--Le], K.head[Le] = Se >= Me ? Se - Me : 0;
+ while (--ue);
+ ue = Me, Le = ue;
+ do
+ Se = K.prev[--Le], K.prev[Le] = Se >= Me ? Se - Me : 0;
+ while (--ue);
+ Ie += Me;
+ }
+ if (K.strm.avail_in === 0)
+ break;
+ if (ue = we(K.strm, K.window, K.strstart + K.lookahead, Ie), K.lookahead += ue, K.lookahead + K.insert >= W)
+ for (st = K.strstart - K.insert, K.ins_h = K.window[st], K.ins_h = (K.ins_h << K.hash_shift ^ K.window[st + 1]) & K.hash_mask; K.insert && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[st + W - 1]) & K.hash_mask, K.prev[st & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = st, st++, K.insert--, !(K.lookahead + K.insert < W)); )
+ ;
+ } while (K.lookahead < D && K.strm.avail_in !== 0);
+ }
+ function Ye(K, Me) {
+ var Le = 65535;
+ for (Le > K.pending_buf_size - 5 && (Le = K.pending_buf_size - 5); ; ) {
+ if (K.lookahead <= 1) {
+ if (je(K), K.lookahead === 0 && Me === f)
+ return oe;
+ if (K.lookahead === 0)
+ break;
+ }
+ K.strstart += K.lookahead, K.lookahead = 0;
+ var ue = K.block_start + Le;
+ if ((K.strstart === 0 || K.strstart >= ue) && (K.lookahead = K.strstart - ue, K.strstart = ue, G(K, !1), K.strm.avail_out === 0) || K.strstart - K.block_start >= K.w_size - D && (G(K, !1), K.strm.avail_out === 0))
+ return oe;
+ }
+ return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : (K.strstart > K.block_start && (G(K, !1), K.strm.avail_out === 0), oe);
+ }
+ function nt(K, Me) {
+ for (var Le, ue; ; ) {
+ if (K.lookahead < D) {
+ if (je(K), K.lookahead < D && Me === f)
+ return oe;
+ if (K.lookahead === 0)
+ break;
+ }
+ if (Le = 0, K.lookahead >= W && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart), Le !== 0 && K.strstart - Le <= K.w_size - D && (K.match_length = _e(K, Le)), K.match_length >= W)
+ if (ue = m._tr_tally(K, K.strstart - K.match_start, K.match_length - W), K.lookahead -= K.match_length, K.match_length <= K.max_lazy_match && K.lookahead >= W) {
+ K.match_length--;
+ do
+ K.strstart++, K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart;
+ while (--K.match_length !== 0);
+ K.strstart++;
+ } else
+ K.strstart += K.match_length, K.match_length = 0, K.ins_h = K.window[K.strstart], K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + 1]) & K.hash_mask;
+ else
+ ue = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++;
+ if (ue && (G(K, !1), K.strm.avail_out === 0))
+ return oe;
+ }
+ return K.insert = K.strstart < W - 1 ? K.strstart : W - 1, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J;
+ }
+ function ut(K, Me) {
+ for (var Le, ue, Se; ; ) {
+ if (K.lookahead < D) {
+ if (je(K), K.lookahead < D && Me === f)
+ return oe;
+ if (K.lookahead === 0)
+ break;
+ }
+ if (Le = 0, K.lookahead >= W && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart), K.prev_length = K.match_length, K.prev_match = K.match_start, K.match_length = W - 1, Le !== 0 && K.prev_length < K.max_lazy_match && K.strstart - Le <= K.w_size - D && (K.match_length = _e(K, Le), K.match_length <= 5 && (K.strategy === i || K.match_length === W && K.strstart - K.match_start > 4096) && (K.match_length = W - 1)), K.prev_length >= W && K.match_length <= K.prev_length) {
+ Se = K.strstart + K.lookahead - W, ue = m._tr_tally(K, K.strstart - 1 - K.prev_match, K.prev_length - W), K.lookahead -= K.prev_length - 1, K.prev_length -= 2;
+ do
+ ++K.strstart <= Se && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart);
+ while (--K.prev_length !== 0);
+ if (K.match_available = 0, K.match_length = W - 1, K.strstart++, ue && (G(K, !1), K.strm.avail_out === 0))
+ return oe;
+ } else if (K.match_available) {
+ if (ue = m._tr_tally(K, 0, K.window[K.strstart - 1]), ue && G(K, !1), K.strstart++, K.lookahead--, K.strm.avail_out === 0)
+ return oe;
+ } else
+ K.match_available = 1, K.strstart++, K.lookahead--;
+ }
+ return K.match_available && (ue = m._tr_tally(K, 0, K.window[K.strstart - 1]), K.match_available = 0), K.insert = K.strstart < W - 1 ? K.strstart : W - 1, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J;
+ }
+ function ot(K, Me) {
+ for (var Le, ue, Se, Ie, st = K.window; ; ) {
+ if (K.lookahead <= U) {
+ if (je(K), K.lookahead <= U && Me === f)
+ return oe;
+ if (K.lookahead === 0)
+ break;
+ }
+ if (K.match_length = 0, K.lookahead >= W && K.strstart > 0 && (Se = K.strstart - 1, ue = st[Se], ue === st[++Se] && ue === st[++Se] && ue === st[++Se])) {
+ Ie = K.strstart + U;
+ do
+ ;
+ while (ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && Se < Ie);
+ K.match_length = U - (Ie - Se), K.match_length > K.lookahead && (K.match_length = K.lookahead);
+ }
+ if (K.match_length >= W ? (Le = m._tr_tally(K, 1, K.match_length - W), K.lookahead -= K.match_length, K.strstart += K.match_length, K.match_length = 0) : (Le = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++), Le && (G(K, !1), K.strm.avail_out === 0))
+ return oe;
+ }
+ return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J;
+ }
+ function Ue(K, Me) {
+ for (var Le; ; ) {
+ if (K.lookahead === 0 && (je(K), K.lookahead === 0)) {
+ if (Me === f)
+ return oe;
+ break;
+ }
+ if (K.match_length = 0, Le = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++, Le && (G(K, !1), K.strm.avail_out === 0))
+ return oe;
+ }
+ return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J;
+ }
+ function Ve(K, Me, Le, ue, Se) {
+ this.good_length = K, this.max_lazy = Me, this.nice_length = Le, this.max_chain = ue, this.func = Se;
+ }
+ var Qe;
+ Qe = [
+ /* good lazy nice chain */
+ new Ve(0, 0, 0, 0, Ye),
+ /* 0 store only */
+ new Ve(4, 4, 8, 4, nt),
+ /* 1 max speed, no lazy matches */
+ new Ve(4, 5, 16, 8, nt),
+ /* 2 */
+ new Ve(4, 6, 32, 32, nt),
+ /* 3 */
+ new Ve(4, 4, 16, 16, ut),
+ /* 4 lazy matches */
+ new Ve(8, 16, 32, 32, ut),
+ /* 5 */
+ new Ve(8, 16, 128, 128, ut),
+ /* 6 */
+ new Ve(8, 32, 128, 256, ut),
+ /* 7 */
+ new Ve(32, 128, 258, 1024, ut),
+ /* 8 */
+ new Ve(32, 258, 258, 4096, ut)
+ /* 9 max compression */
+ ];
+ function tt(K) {
+ K.window_size = 2 * K.w_size, Ce(K.head), K.max_lazy_match = Qe[K.level].max_lazy, K.good_match = Qe[K.level].good_length, K.nice_match = Qe[K.level].nice_length, K.max_chain_length = Qe[K.level].max_chain, K.strstart = 0, K.block_start = 0, K.lookahead = 0, K.insert = 0, K.match_length = K.prev_length = W - 1, K.match_available = 0, K.ins_h = 0;
+ }
+ function ae() {
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = F, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new u.Buf16(L * 2), this.dyn_dtree = new u.Buf16((2 * E + 1) * 2), this.bl_tree = new u.Buf16((2 * A + 1) * 2), Ce(this.dyn_ltree), Ce(this.dyn_dtree), Ce(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16($ + 1), this.heap = new u.Buf16(2 * C + 1), Ce(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * C + 1), Ce(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
+ }
+ function Re(K) {
+ var Me;
+ return !K || !K.state ? ne(K, c) : (K.total_in = K.total_out = 0, K.data_type = P, Me = K.state, Me.pending = 0, Me.pending_out = 0, Me.wrap < 0 && (Me.wrap = -Me.wrap), Me.status = Me.wrap ? j : ve, K.adler = Me.wrap === 2 ? 0 : 1, Me.last_flush = f, m._tr_init(Me), s);
+ }
+ function be(K) {
+ var Me = Re(K);
+ return Me === s && tt(K.state), Me;
+ }
+ function Ee(K, Me) {
+ return !K || !K.state || K.state.wrap !== 2 ? c : (K.state.gzhead = Me, s);
+ }
+ function pe(K, Me, Le, ue, Se, Ie) {
+ if (!K)
+ return c;
+ var st = 1;
+ if (Me === t && (Me = 6), ue < 0 ? (st = 0, ue = -ue) : ue > 15 && (st = 2, ue -= 16), Se < 1 || Se > z || Le !== F || ue < 8 || ue > 15 || Me < 0 || Me > 9 || Ie < 0 || Ie > p)
+ return ne(K, c);
+ ue === 8 && (ue = 9);
+ var Ge = new ae();
+ return K.state = Ge, Ge.strm = K, Ge.wrap = st, Ge.gzhead = null, Ge.w_bits = ue, Ge.w_size = 1 << Ge.w_bits, Ge.w_mask = Ge.w_size - 1, Ge.hash_bits = Se + 7, Ge.hash_size = 1 << Ge.hash_bits, Ge.hash_mask = Ge.hash_size - 1, Ge.hash_shift = ~~((Ge.hash_bits + W - 1) / W), Ge.window = new u.Buf8(Ge.w_size * 2), Ge.head = new u.Buf16(Ge.hash_size), Ge.prev = new u.Buf16(Ge.w_size), Ge.lit_bufsize = 1 << Se + 6, Ge.pending_buf_size = Ge.lit_bufsize * 4, Ge.pending_buf = new u.Buf8(Ge.pending_buf_size), Ge.d_buf = 1 * Ge.lit_bufsize, Ge.l_buf = (1 + 2) * Ge.lit_bufsize, Ge.level = Me, Ge.strategy = Ie, Ge.method = Le, be(K);
+ }
+ function Pe(K, Me) {
+ return pe(K, Me, F, N, M, O);
+ }
+ function te(K, Me) {
+ var Le, ue, Se, Ie;
+ if (!K || !K.state || Me > d || Me < 0)
+ return K ? ne(K, c) : c;
+ if (ue = K.state, !K.output || !K.input && K.avail_in !== 0 || ue.status === ge && Me !== l)
+ return ne(K, K.avail_out === 0 ? r : c);
+ if (ue.strm = K, Le = ue.last_flush, ue.last_flush = Me, ue.status === j)
+ if (ue.wrap === 2)
+ K.adler = 0, Y(ue, 31), Y(ue, 139), Y(ue, 8), ue.gzhead ? (Y(ue, (ue.gzhead.text ? 1 : 0) + (ue.gzhead.hcrc ? 2 : 0) + (ue.gzhead.extra ? 4 : 0) + (ue.gzhead.name ? 8 : 0) + (ue.gzhead.comment ? 16 : 0)), Y(ue, ue.gzhead.time & 255), Y(ue, ue.gzhead.time >> 8 & 255), Y(ue, ue.gzhead.time >> 16 & 255), Y(ue, ue.gzhead.time >> 24 & 255), Y(ue, ue.level === 9 ? 2 : ue.strategy >= n || ue.level < 2 ? 4 : 0), Y(ue, ue.gzhead.os & 255), ue.gzhead.extra && ue.gzhead.extra.length && (Y(ue, ue.gzhead.extra.length & 255), Y(ue, ue.gzhead.extra.length >> 8 & 255)), ue.gzhead.hcrc && (K.adler = b(K.adler, ue.pending_buf, ue.pending, 0)), ue.gzindex = 0, ue.status = V) : (Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, ue.level === 9 ? 2 : ue.strategy >= n || ue.level < 2 ? 4 : 0), Y(ue, ke), ue.status = ve);
+ else {
+ var st = F + (ue.w_bits - 8 << 4) << 8, Ge = -1;
+ ue.strategy >= n || ue.level < 2 ? Ge = 0 : ue.level < 6 ? Ge = 1 : ue.level === 6 ? Ge = 2 : Ge = 3, st |= Ge << 6, ue.strstart !== 0 && (st |= B), st += 31 - st % 31, ue.status = ve, fe(ue, st), ue.strstart !== 0 && (fe(ue, K.adler >>> 16), fe(ue, K.adler & 65535)), K.adler = 1;
+ }
+ if (ue.status === V)
+ if (ue.gzhead.extra) {
+ for (Se = ue.pending; ue.gzindex < (ue.gzhead.extra.length & 65535) && !(ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)); )
+ Y(ue, ue.gzhead.extra[ue.gzindex] & 255), ue.gzindex++;
+ ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), ue.gzindex === ue.gzhead.extra.length && (ue.gzindex = 0, ue.status = re);
+ } else
+ ue.status = re;
+ if (ue.status === re)
+ if (ue.gzhead.name) {
+ Se = ue.pending;
+ do {
+ if (ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)) {
+ Ie = 1;
+ break;
+ }
+ ue.gzindex < ue.gzhead.name.length ? Ie = ue.gzhead.name.charCodeAt(ue.gzindex++) & 255 : Ie = 0, Y(ue, Ie);
+ } while (Ie !== 0);
+ ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), Ie === 0 && (ue.gzindex = 0, ue.status = ee);
+ } else
+ ue.status = ee;
+ if (ue.status === ee)
+ if (ue.gzhead.comment) {
+ Se = ue.pending;
+ do {
+ if (ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)) {
+ Ie = 1;
+ break;
+ }
+ ue.gzindex < ue.gzhead.comment.length ? Ie = ue.gzhead.comment.charCodeAt(ue.gzindex++) & 255 : Ie = 0, Y(ue, Ie);
+ } while (Ie !== 0);
+ ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), Ie === 0 && (ue.status = ce);
+ } else
+ ue.status = ce;
+ if (ue.status === ce && (ue.gzhead.hcrc ? (ue.pending + 2 > ue.pending_buf_size && q(K), ue.pending + 2 <= ue.pending_buf_size && (Y(ue, K.adler & 255), Y(ue, K.adler >> 8 & 255), K.adler = 0, ue.status = ve)) : ue.status = ve), ue.pending !== 0) {
+ if (q(K), K.avail_out === 0)
+ return ue.last_flush = -1, s;
+ } else if (K.avail_in === 0 && se(Me) <= se(Le) && Me !== l)
+ return ne(K, r);
+ if (ue.status === ge && K.avail_in !== 0)
+ return ne(K, r);
+ if (K.avail_in !== 0 || ue.lookahead !== 0 || Me !== f && ue.status !== ge) {
+ var rt = ue.strategy === n ? Ue(ue, Me) : ue.strategy === o ? ot(ue, Me) : Qe[ue.level].func(ue, Me);
+ if ((rt === Q || rt === he) && (ue.status = ge), rt === oe || rt === Q)
+ return K.avail_out === 0 && (ue.last_flush = -1), s;
+ if (rt === J && (Me === y ? m._tr_align(ue) : Me !== d && (m._tr_stored_block(ue, 0, 0, !1), Me === h && (Ce(ue.head), ue.lookahead === 0 && (ue.strstart = 0, ue.block_start = 0, ue.insert = 0))), q(K), K.avail_out === 0))
+ return ue.last_flush = -1, s;
+ }
+ return Me !== l ? s : ue.wrap <= 0 ? v : (ue.wrap === 2 ? (Y(ue, K.adler & 255), Y(ue, K.adler >> 8 & 255), Y(ue, K.adler >> 16 & 255), Y(ue, K.adler >> 24 & 255), Y(ue, K.total_in & 255), Y(ue, K.total_in >> 8 & 255), Y(ue, K.total_in >> 16 & 255), Y(ue, K.total_in >> 24 & 255)) : (fe(ue, K.adler >>> 16), fe(ue, K.adler & 65535)), q(K), ue.wrap > 0 && (ue.wrap = -ue.wrap), ue.pending !== 0 ? s : v);
+ }
+ function He(K) {
+ var Me;
+ return !K || !K.state ? c : (Me = K.state.status, Me !== j && Me !== V && Me !== re && Me !== ee && Me !== ce && Me !== ve && Me !== ge ? ne(K, c) : (K.state = null, Me === ve ? ne(K, a) : s));
+ }
+ function it(K, Me) {
+ var Le = Me.length, ue, Se, Ie, st, Ge, rt, _t, wt;
+ if (!K || !K.state || (ue = K.state, st = ue.wrap, st === 2 || st === 1 && ue.status !== j || ue.lookahead))
+ return c;
+ for (st === 1 && (K.adler = g(K.adler, Me, Le, 0)), ue.wrap = 0, Le >= ue.w_size && (st === 0 && (Ce(ue.head), ue.strstart = 0, ue.block_start = 0, ue.insert = 0), wt = new u.Buf8(ue.w_size), u.arraySet(wt, Me, Le - ue.w_size, ue.w_size, 0), Me = wt, Le = ue.w_size), Ge = K.avail_in, rt = K.next_in, _t = K.input, K.avail_in = Le, K.next_in = 0, K.input = Me, je(ue); ue.lookahead >= W; ) {
+ Se = ue.strstart, Ie = ue.lookahead - (W - 1);
+ do
+ ue.ins_h = (ue.ins_h << ue.hash_shift ^ ue.window[Se + W - 1]) & ue.hash_mask, ue.prev[Se & ue.w_mask] = ue.head[ue.ins_h], ue.head[ue.ins_h] = Se, Se++;
+ while (--Ie);
+ ue.strstart = Se, ue.lookahead = W - 1, je(ue);
+ }
+ return ue.strstart += ue.lookahead, ue.block_start = ue.strstart, ue.insert = ue.lookahead, ue.lookahead = 0, ue.match_length = ue.prev_length = W - 1, ue.match_available = 0, K.next_in = rt, K.input = _t, K.avail_in = Ge, ue.wrap = st, s;
+ }
+ _.deflateInit = Pe, _.deflateInit2 = pe, _.deflateReset = be, _.deflateResetKeep = Re, _.deflateSetHeader = Ee, _.deflate = te, _.deflateEnd = He, _.deflateSetDictionary = it, _.deflateInfo = "pako deflate (from Nodeca project)";
+ }, { "../utils/common": 442, "./adler32": 444, "./crc32": 446, "./messages": 452, "./trees": 453 }], 448: [function(e, x, _) {
+ function u() {
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
+ }
+ x.exports = u;
+ }, {}], 449: [function(e, x, _) {
+ var u = 30, m = 12;
+ x.exports = function(b, w) {
+ var f, y, h, l, d, s, v, c, a, r, t, i, n, o, p, O, P, F, z, N, M, I, R, C, E;
+ f = b.state, y = b.next_in, C = b.input, h = y + (b.avail_in - 5), l = b.next_out, E = b.output, d = l - (w - b.avail_out), s = l + (b.avail_out - 257), v = f.dmax, c = f.wsize, a = f.whave, r = f.wnext, t = f.window, i = f.hold, n = f.bits, o = f.lencode, p = f.distcode, O = (1 << f.lenbits) - 1, P = (1 << f.distbits) - 1;
+ e:
+ do {
+ n < 15 && (i += C[y++] << n, n += 8, i += C[y++] << n, n += 8), F = o[i & O];
+ t:
+ for (; ; ) {
+ if (z = F >>> 24, i >>>= z, n -= z, z = F >>> 16 & 255, z === 0)
+ E[l++] = F & 65535;
+ else if (z & 16) {
+ N = F & 65535, z &= 15, z && (n < z && (i += C[y++] << n, n += 8), N += i & (1 << z) - 1, i >>>= z, n -= z), n < 15 && (i += C[y++] << n, n += 8, i += C[y++] << n, n += 8), F = p[i & P];
+ r:
+ for (; ; ) {
+ if (z = F >>> 24, i >>>= z, n -= z, z = F >>> 16 & 255, z & 16) {
+ if (M = F & 65535, z &= 15, n < z && (i += C[y++] << n, n += 8, n < z && (i += C[y++] << n, n += 8)), M += i & (1 << z) - 1, M > v) {
+ b.msg = "invalid distance too far back", f.mode = u;
+ break e;
+ }
+ if (i >>>= z, n -= z, z = l - d, M > z) {
+ if (z = M - z, z > a && f.sane) {
+ b.msg = "invalid distance too far back", f.mode = u;
+ break e;
+ }
+ if (I = 0, R = t, r === 0) {
+ if (I += c - z, z < N) {
+ N -= z;
+ do
+ E[l++] = t[I++];
+ while (--z);
+ I = l - M, R = E;
+ }
+ } else if (r < z) {
+ if (I += c + r - z, z -= r, z < N) {
+ N -= z;
+ do
+ E[l++] = t[I++];
+ while (--z);
+ if (I = 0, r < N) {
+ z = r, N -= z;
+ do
+ E[l++] = t[I++];
+ while (--z);
+ I = l - M, R = E;
+ }
+ }
+ } else if (I += r - z, z < N) {
+ N -= z;
+ do
+ E[l++] = t[I++];
+ while (--z);
+ I = l - M, R = E;
+ }
+ for (; N > 2; )
+ E[l++] = R[I++], E[l++] = R[I++], E[l++] = R[I++], N -= 3;
+ N && (E[l++] = R[I++], N > 1 && (E[l++] = R[I++]));
+ } else {
+ I = l - M;
+ do
+ E[l++] = E[I++], E[l++] = E[I++], E[l++] = E[I++], N -= 3;
+ while (N > 2);
+ N && (E[l++] = E[I++], N > 1 && (E[l++] = E[I++]));
+ }
+ } else if (z & 64) {
+ b.msg = "invalid distance code", f.mode = u;
+ break e;
+ } else {
+ F = p[(F & 65535) + /*here.val*/
+ (i & (1 << z) - 1)];
+ continue r;
+ }
+ break;
+ }
+ } else if (z & 64)
+ if (z & 32) {
+ f.mode = m;
+ break e;
+ } else {
+ b.msg = "invalid literal/length code", f.mode = u;
+ break e;
+ }
+ else {
+ F = o[(F & 65535) + /*here.val*/
+ (i & (1 << z) - 1)];
+ continue t;
+ }
+ break;
+ }
+ } while (y < h && l < s);
+ N = n >> 3, y -= N, n -= N << 3, i &= (1 << n) - 1, b.next_in = y, b.next_out = l, b.avail_in = y < h ? 5 + (h - y) : 5 - (y - h), b.avail_out = l < s ? 257 + (s - l) : 257 - (l - s), f.hold = i, f.bits = n;
+ };
+ }, {}], 450: [function(e, x, _) {
+ var u = e("../utils/common"), m = e("./adler32"), g = e("./crc32"), b = e("./inffast"), w = e("./inftrees"), f = 0, y = 1, h = 2, l = 4, d = 5, s = 6, v = 0, c = 1, a = 2, r = -2, t = -3, i = -4, n = -5, o = 8, p = 1, O = 2, P = 3, F = 4, z = 5, N = 6, M = 7, I = 8, R = 9, C = 10, E = 11, A = 12, L = 13, $ = 14, W = 15, U = 16, D = 17, B = 18, j = 19, V = 20, re = 21, ee = 22, ce = 23, ve = 24, ge = 25, oe = 26, J = 27, Q = 28, he = 29, ke = 30, ne = 31, se = 32, Ce = 852, q = 592, G = 15, Y = G;
+ function fe(pe) {
+ return (pe >>> 24 & 255) + (pe >>> 8 & 65280) + ((pe & 65280) << 8) + ((pe & 255) << 24);
+ }
+ function we() {
+ this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new u.Buf16(320), this.work = new u.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
+ }
+ function _e(pe) {
+ var Pe;
+ return !pe || !pe.state ? r : (Pe = pe.state, pe.total_in = pe.total_out = Pe.total = 0, pe.msg = "", Pe.wrap && (pe.adler = Pe.wrap & 1), Pe.mode = p, Pe.last = 0, Pe.havedict = 0, Pe.dmax = 32768, Pe.head = null, Pe.hold = 0, Pe.bits = 0, Pe.lencode = Pe.lendyn = new u.Buf32(Ce), Pe.distcode = Pe.distdyn = new u.Buf32(q), Pe.sane = 1, Pe.back = -1, v);
+ }
+ function je(pe) {
+ var Pe;
+ return !pe || !pe.state ? r : (Pe = pe.state, Pe.wsize = 0, Pe.whave = 0, Pe.wnext = 0, _e(pe));
+ }
+ function Ye(pe, Pe) {
+ var te, He;
+ return !pe || !pe.state || (He = pe.state, Pe < 0 ? (te = 0, Pe = -Pe) : (te = (Pe >> 4) + 1, Pe < 48 && (Pe &= 15)), Pe && (Pe < 8 || Pe > 15)) ? r : (He.window !== null && He.wbits !== Pe && (He.window = null), He.wrap = te, He.wbits = Pe, je(pe));
+ }
+ function nt(pe, Pe) {
+ var te, He;
+ return pe ? (He = new we(), pe.state = He, He.window = null, te = Ye(pe, Pe), te !== v && (pe.state = null), te) : r;
+ }
+ function ut(pe) {
+ return nt(pe, Y);
+ }
+ var ot = !0, Ue, Ve;
+ function Qe(pe) {
+ if (ot) {
+ var Pe;
+ for (Ue = new u.Buf32(512), Ve = new u.Buf32(32), Pe = 0; Pe < 144; )
+ pe.lens[Pe++] = 8;
+ for (; Pe < 256; )
+ pe.lens[Pe++] = 9;
+ for (; Pe < 280; )
+ pe.lens[Pe++] = 7;
+ for (; Pe < 288; )
+ pe.lens[Pe++] = 8;
+ for (w(y, pe.lens, 0, 288, Ue, 0, pe.work, {
+ bits: 9
+ }), Pe = 0; Pe < 32; )
+ pe.lens[Pe++] = 5;
+ w(h, pe.lens, 0, 32, Ve, 0, pe.work, {
+ bits: 5
+ }), ot = !1;
+ }
+ pe.lencode = Ue, pe.lenbits = 9, pe.distcode = Ve, pe.distbits = 5;
+ }
+ function tt(pe, Pe, te, He) {
+ var it, K = pe.state;
+ return K.window === null && (K.wsize = 1 << K.wbits, K.wnext = 0, K.whave = 0, K.window = new u.Buf8(K.wsize)), He >= K.wsize ? (u.arraySet(K.window, Pe, te - K.wsize, K.wsize, 0), K.wnext = 0, K.whave = K.wsize) : (it = K.wsize - K.wnext, it > He && (it = He), u.arraySet(K.window, Pe, te - He, it, K.wnext), He -= it, He ? (u.arraySet(K.window, Pe, te - He, He, 0), K.wnext = He, K.whave = K.wsize) : (K.wnext += it, K.wnext === K.wsize && (K.wnext = 0), K.whave < K.wsize && (K.whave += it))), 0;
+ }
+ function ae(pe, Pe) {
+ var te, He, it, K, Me, Le, ue, Se, Ie, st, Ge, rt, _t, wt, Ot = 0, pt, ct, At, Pt, bt, Kt, Ct, xt, Ft = new u.Buf8(4), Lt, Et, Dr = (
+ /* permutation of code lengths */
+ [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
+ );
+ if (!pe || !pe.state || !pe.output || !pe.input && pe.avail_in !== 0)
+ return r;
+ te = pe.state, te.mode === A && (te.mode = L), Me = pe.next_out, it = pe.output, ue = pe.avail_out, K = pe.next_in, He = pe.input, Le = pe.avail_in, Se = te.hold, Ie = te.bits, st = Le, Ge = ue, xt = v;
+ e:
+ for (; ; )
+ switch (te.mode) {
+ case p:
+ if (te.wrap === 0) {
+ te.mode = L;
+ break;
+ }
+ for (; Ie < 16; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (te.wrap & 2 && Se === 35615) {
+ te.check = 0, Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0), Se = 0, Ie = 0, te.mode = O;
+ break;
+ }
+ if (te.flags = 0, te.head && (te.head.done = !1), !(te.wrap & 1) || /* check if zlib header allowed */
+ (((Se & 255) << /*BITS(8)*/
+ 8) + (Se >> 8)) % 31) {
+ pe.msg = "incorrect header check", te.mode = ke;
+ break;
+ }
+ if ((Se & 15) !== /*BITS(4)*/
+ o) {
+ pe.msg = "unknown compression method", te.mode = ke;
+ break;
+ }
+ if (Se >>>= 4, Ie -= 4, Ct = (Se & 15) + /*BITS(4)*/
+ 8, te.wbits === 0)
+ te.wbits = Ct;
+ else if (Ct > te.wbits) {
+ pe.msg = "invalid window size", te.mode = ke;
+ break;
+ }
+ te.dmax = 1 << Ct, pe.adler = te.check = 1, te.mode = Se & 512 ? C : A, Se = 0, Ie = 0;
+ break;
+ case O:
+ for (; Ie < 16; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (te.flags = Se, (te.flags & 255) !== o) {
+ pe.msg = "unknown compression method", te.mode = ke;
+ break;
+ }
+ if (te.flags & 57344) {
+ pe.msg = "unknown header flags set", te.mode = ke;
+ break;
+ }
+ te.head && (te.head.text = Se >> 8 & 1), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0, te.mode = P;
+ case P:
+ for (; Ie < 32; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.head && (te.head.time = Se), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, Ft[2] = Se >>> 16 & 255, Ft[3] = Se >>> 24 & 255, te.check = g(te.check, Ft, 4, 0)), Se = 0, Ie = 0, te.mode = F;
+ case F:
+ for (; Ie < 16; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.head && (te.head.xflags = Se & 255, te.head.os = Se >> 8), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0, te.mode = z;
+ case z:
+ if (te.flags & 1024) {
+ for (; Ie < 16; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.length = Se, te.head && (te.head.extra_len = Se), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0;
+ } else
+ te.head && (te.head.extra = null);
+ te.mode = N;
+ case N:
+ if (te.flags & 1024 && (rt = te.length, rt > Le && (rt = Le), rt && (te.head && (Ct = te.head.extra_len - te.length, te.head.extra || (te.head.extra = new Array(te.head.extra_len)), u.arraySet(
+ te.head.extra,
+ He,
+ K,
+ // extra field is limited to 65536 bytes
+ // - no need for additional size check
+ rt,
+ /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
+ Ct
+ )), te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, te.length -= rt), te.length))
+ break e;
+ te.length = 0, te.mode = M;
+ case M:
+ if (te.flags & 2048) {
+ if (Le === 0)
+ break e;
+ rt = 0;
+ do
+ Ct = He[K + rt++], te.head && Ct && te.length < 65536 && (te.head.name += String.fromCharCode(Ct));
+ while (Ct && rt < Le);
+ if (te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, Ct)
+ break e;
+ } else
+ te.head && (te.head.name = null);
+ te.length = 0, te.mode = I;
+ case I:
+ if (te.flags & 4096) {
+ if (Le === 0)
+ break e;
+ rt = 0;
+ do
+ Ct = He[K + rt++], te.head && Ct && te.length < 65536 && (te.head.comment += String.fromCharCode(Ct));
+ while (Ct && rt < Le);
+ if (te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, Ct)
+ break e;
+ } else
+ te.head && (te.head.comment = null);
+ te.mode = R;
+ case R:
+ if (te.flags & 512) {
+ for (; Ie < 16; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (Se !== (te.check & 65535)) {
+ pe.msg = "header crc mismatch", te.mode = ke;
+ break;
+ }
+ Se = 0, Ie = 0;
+ }
+ te.head && (te.head.hcrc = te.flags >> 9 & 1, te.head.done = !0), pe.adler = te.check = 0, te.mode = A;
+ break;
+ case C:
+ for (; Ie < 32; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ pe.adler = te.check = fe(Se), Se = 0, Ie = 0, te.mode = E;
+ case E:
+ if (te.havedict === 0)
+ return pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, a;
+ pe.adler = te.check = 1, te.mode = A;
+ case A:
+ if (Pe === d || Pe === s)
+ break e;
+ case L:
+ if (te.last) {
+ Se >>>= Ie & 7, Ie -= Ie & 7, te.mode = J;
+ break;
+ }
+ for (; Ie < 3; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ switch (te.last = Se & 1, Se >>>= 1, Ie -= 1, Se & 3) {
+ case 0:
+ te.mode = $;
+ break;
+ case 1:
+ if (Qe(te), te.mode = V, Pe === s) {
+ Se >>>= 2, Ie -= 2;
+ break e;
+ }
+ break;
+ case 2:
+ te.mode = D;
+ break;
+ case 3:
+ pe.msg = "invalid block type", te.mode = ke;
+ }
+ Se >>>= 2, Ie -= 2;
+ break;
+ case $:
+ for (Se >>>= Ie & 7, Ie -= Ie & 7; Ie < 32; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if ((Se & 65535) !== (Se >>> 16 ^ 65535)) {
+ pe.msg = "invalid stored block lengths", te.mode = ke;
+ break;
+ }
+ if (te.length = Se & 65535, Se = 0, Ie = 0, te.mode = W, Pe === s)
+ break e;
+ case W:
+ te.mode = U;
+ case U:
+ if (rt = te.length, rt) {
+ if (rt > Le && (rt = Le), rt > ue && (rt = ue), rt === 0)
+ break e;
+ u.arraySet(it, He, K, rt, Me), Le -= rt, K += rt, ue -= rt, Me += rt, te.length -= rt;
+ break;
+ }
+ te.mode = A;
+ break;
+ case D:
+ for (; Ie < 14; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (te.nlen = (Se & 31) + /*BITS(5)*/
+ 257, Se >>>= 5, Ie -= 5, te.ndist = (Se & 31) + /*BITS(5)*/
+ 1, Se >>>= 5, Ie -= 5, te.ncode = (Se & 15) + /*BITS(4)*/
+ 4, Se >>>= 4, Ie -= 4, te.nlen > 286 || te.ndist > 30) {
+ pe.msg = "too many length or distance symbols", te.mode = ke;
+ break;
+ }
+ te.have = 0, te.mode = B;
+ case B:
+ for (; te.have < te.ncode; ) {
+ for (; Ie < 3; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.lens[Dr[te.have++]] = Se & 7, Se >>>= 3, Ie -= 3;
+ }
+ for (; te.have < 19; )
+ te.lens[Dr[te.have++]] = 0;
+ if (te.lencode = te.lendyn, te.lenbits = 7, Lt = {
+ bits: te.lenbits
+ }, xt = w(f, te.lens, 0, 19, te.lencode, 0, te.work, Lt), te.lenbits = Lt.bits, xt) {
+ pe.msg = "invalid code lengths set", te.mode = ke;
+ break;
+ }
+ te.have = 0, te.mode = j;
+ case j:
+ for (; te.have < te.nlen + te.ndist; ) {
+ for (; Ot = te.lencode[Se & (1 << te.lenbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (At < 16)
+ Se >>>= pt, Ie -= pt, te.lens[te.have++] = At;
+ else {
+ if (At === 16) {
+ for (Et = pt + 2; Ie < Et; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (Se >>>= pt, Ie -= pt, te.have === 0) {
+ pe.msg = "invalid bit length repeat", te.mode = ke;
+ break;
+ }
+ Ct = te.lens[te.have - 1], rt = 3 + (Se & 3), Se >>>= 2, Ie -= 2;
+ } else if (At === 17) {
+ for (Et = pt + 3; Ie < Et; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ Se >>>= pt, Ie -= pt, Ct = 0, rt = 3 + (Se & 7), Se >>>= 3, Ie -= 3;
+ } else {
+ for (Et = pt + 7; Ie < Et; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ Se >>>= pt, Ie -= pt, Ct = 0, rt = 11 + (Se & 127), Se >>>= 7, Ie -= 7;
+ }
+ if (te.have + rt > te.nlen + te.ndist) {
+ pe.msg = "invalid bit length repeat", te.mode = ke;
+ break;
+ }
+ for (; rt--; )
+ te.lens[te.have++] = Ct;
+ }
+ }
+ if (te.mode === ke)
+ break;
+ if (te.lens[256] === 0) {
+ pe.msg = "invalid code -- missing end-of-block", te.mode = ke;
+ break;
+ }
+ if (te.lenbits = 9, Lt = {
+ bits: te.lenbits
+ }, xt = w(y, te.lens, 0, te.nlen, te.lencode, 0, te.work, Lt), te.lenbits = Lt.bits, xt) {
+ pe.msg = "invalid literal/lengths set", te.mode = ke;
+ break;
+ }
+ if (te.distbits = 6, te.distcode = te.distdyn, Lt = {
+ bits: te.distbits
+ }, xt = w(h, te.lens, te.nlen, te.ndist, te.distcode, 0, te.work, Lt), te.distbits = Lt.bits, xt) {
+ pe.msg = "invalid distances set", te.mode = ke;
+ break;
+ }
+ if (te.mode = V, Pe === s)
+ break e;
+ case V:
+ te.mode = re;
+ case re:
+ if (Le >= 6 && ue >= 258) {
+ pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, b(pe, Ge), Me = pe.next_out, it = pe.output, ue = pe.avail_out, K = pe.next_in, He = pe.input, Le = pe.avail_in, Se = te.hold, Ie = te.bits, te.mode === A && (te.back = -1);
+ break;
+ }
+ for (te.back = 0; Ot = te.lencode[Se & (1 << te.lenbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (ct && !(ct & 240)) {
+ for (Pt = pt, bt = ct, Kt = At; Ot = te.lencode[Kt + ((Se & (1 << Pt + bt) - 1) >> /*BITS(last.bits + last.op)*/
+ Pt)], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(Pt + pt <= Ie); ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ Se >>>= Pt, Ie -= Pt, te.back += Pt;
+ }
+ if (Se >>>= pt, Ie -= pt, te.back += pt, te.length = At, ct === 0) {
+ te.mode = oe;
+ break;
+ }
+ if (ct & 32) {
+ te.back = -1, te.mode = A;
+ break;
+ }
+ if (ct & 64) {
+ pe.msg = "invalid literal/length code", te.mode = ke;
+ break;
+ }
+ te.extra = ct & 15, te.mode = ee;
+ case ee:
+ if (te.extra) {
+ for (Et = te.extra; Ie < Et; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.length += Se & (1 << te.extra) - 1, Se >>>= te.extra, Ie -= te.extra, te.back += te.extra;
+ }
+ te.was = te.length, te.mode = ce;
+ case ce:
+ for (; Ot = te.distcode[Se & (1 << te.distbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (!(ct & 240)) {
+ for (Pt = pt, bt = ct, Kt = At; Ot = te.distcode[Kt + ((Se & (1 << Pt + bt) - 1) >> /*BITS(last.bits + last.op)*/
+ Pt)], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(Pt + pt <= Ie); ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ Se >>>= Pt, Ie -= Pt, te.back += Pt;
+ }
+ if (Se >>>= pt, Ie -= pt, te.back += pt, ct & 64) {
+ pe.msg = "invalid distance code", te.mode = ke;
+ break;
+ }
+ te.offset = At, te.extra = ct & 15, te.mode = ve;
+ case ve:
+ if (te.extra) {
+ for (Et = te.extra; Ie < Et; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ te.offset += Se & (1 << te.extra) - 1, Se >>>= te.extra, Ie -= te.extra, te.back += te.extra;
+ }
+ if (te.offset > te.dmax) {
+ pe.msg = "invalid distance too far back", te.mode = ke;
+ break;
+ }
+ te.mode = ge;
+ case ge:
+ if (ue === 0)
+ break e;
+ if (rt = Ge - ue, te.offset > rt) {
+ if (rt = te.offset - rt, rt > te.whave && te.sane) {
+ pe.msg = "invalid distance too far back", te.mode = ke;
+ break;
+ }
+ rt > te.wnext ? (rt -= te.wnext, _t = te.wsize - rt) : _t = te.wnext - rt, rt > te.length && (rt = te.length), wt = te.window;
+ } else
+ wt = it, _t = Me - te.offset, rt = te.length;
+ rt > ue && (rt = ue), ue -= rt, te.length -= rt;
+ do
+ it[Me++] = wt[_t++];
+ while (--rt);
+ te.length === 0 && (te.mode = re);
+ break;
+ case oe:
+ if (ue === 0)
+ break e;
+ it[Me++] = te.length, ue--, te.mode = re;
+ break;
+ case J:
+ if (te.wrap) {
+ for (; Ie < 32; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se |= He[K++] << Ie, Ie += 8;
+ }
+ if (Ge -= ue, pe.total_out += Ge, te.total += Ge, Ge && (pe.adler = te.check = /*UPDATE(state.check, put - _out, _out);*/
+ te.flags ? g(te.check, it, Ge, Me - Ge) : m(te.check, it, Ge, Me - Ge)), Ge = ue, (te.flags ? Se : fe(Se)) !== te.check) {
+ pe.msg = "incorrect data check", te.mode = ke;
+ break;
+ }
+ Se = 0, Ie = 0;
+ }
+ te.mode = Q;
+ case Q:
+ if (te.wrap && te.flags) {
+ for (; Ie < 32; ) {
+ if (Le === 0)
+ break e;
+ Le--, Se += He[K++] << Ie, Ie += 8;
+ }
+ if (Se !== (te.total & 4294967295)) {
+ pe.msg = "incorrect length check", te.mode = ke;
+ break;
+ }
+ Se = 0, Ie = 0;
+ }
+ te.mode = he;
+ case he:
+ xt = c;
+ break e;
+ case ke:
+ xt = t;
+ break e;
+ case ne:
+ return i;
+ case se:
+ default:
+ return r;
+ }
+ return pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, (te.wsize || Ge !== pe.avail_out && te.mode < ke && (te.mode < J || Pe !== l)) && tt(pe, pe.output, pe.next_out, Ge - pe.avail_out), st -= pe.avail_in, Ge -= pe.avail_out, pe.total_in += st, pe.total_out += Ge, te.total += Ge, te.wrap && Ge && (pe.adler = te.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
+ te.flags ? g(te.check, it, Ge, pe.next_out - Ge) : m(te.check, it, Ge, pe.next_out - Ge)), pe.data_type = te.bits + (te.last ? 64 : 0) + (te.mode === A ? 128 : 0) + (te.mode === V || te.mode === W ? 256 : 0), (st === 0 && Ge === 0 || Pe === l) && xt === v && (xt = n), xt;
+ }
+ function Re(pe) {
+ if (!pe || !pe.state)
+ return r;
+ var Pe = pe.state;
+ return Pe.window && (Pe.window = null), pe.state = null, v;
+ }
+ function be(pe, Pe) {
+ var te;
+ return !pe || !pe.state || (te = pe.state, !(te.wrap & 2)) ? r : (te.head = Pe, Pe.done = !1, v);
+ }
+ function Ee(pe, Pe) {
+ var te = Pe.length, He, it, K;
+ return !pe || !pe.state || (He = pe.state, He.wrap !== 0 && He.mode !== E) ? r : He.mode === E && (it = 1, it = m(it, Pe, te, 0), it !== He.check) ? t : (K = tt(pe, Pe, te, te), K ? (He.mode = ne, i) : (He.havedict = 1, v));
+ }
+ _.inflateReset = je, _.inflateReset2 = Ye, _.inflateResetKeep = _e, _.inflateInit = ut, _.inflateInit2 = nt, _.inflate = ae, _.inflateEnd = Re, _.inflateGetHeader = be, _.inflateSetDictionary = Ee, _.inflateInfo = "pako inflate (from Nodeca project)";
+ }, { "../utils/common": 442, "./adler32": 444, "./crc32": 446, "./inffast": 449, "./inftrees": 451 }], 451: [function(e, x, _) {
+ var u = e("../utils/common"), m = 15, g = 852, b = 592, w = 0, f = 1, y = 2, h = [
+ /* Length codes 257..285 base */
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 13,
+ 15,
+ 17,
+ 19,
+ 23,
+ 27,
+ 31,
+ 35,
+ 43,
+ 51,
+ 59,
+ 67,
+ 83,
+ 99,
+ 115,
+ 131,
+ 163,
+ 195,
+ 227,
+ 258,
+ 0,
+ 0
+ ], l = [
+ /* Length codes 257..285 extra */
+ 16,
+ 16,
+ 16,
+ 16,
+ 16,
+ 16,
+ 16,
+ 16,
+ 17,
+ 17,
+ 17,
+ 17,
+ 18,
+ 18,
+ 18,
+ 18,
+ 19,
+ 19,
+ 19,
+ 19,
+ 20,
+ 20,
+ 20,
+ 20,
+ 21,
+ 21,
+ 21,
+ 21,
+ 16,
+ 72,
+ 78
+ ], d = [
+ /* Distance codes 0..29 base */
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 7,
+ 9,
+ 13,
+ 17,
+ 25,
+ 33,
+ 49,
+ 65,
+ 97,
+ 129,
+ 193,
+ 257,
+ 385,
+ 513,
+ 769,
+ 1025,
+ 1537,
+ 2049,
+ 3073,
+ 4097,
+ 6145,
+ 8193,
+ 12289,
+ 16385,
+ 24577,
+ 0,
+ 0
+ ], s = [
+ /* Distance codes 0..29 extra */
+ 16,
+ 16,
+ 16,
+ 16,
+ 17,
+ 17,
+ 18,
+ 18,
+ 19,
+ 19,
+ 20,
+ 20,
+ 21,
+ 21,
+ 22,
+ 22,
+ 23,
+ 23,
+ 24,
+ 24,
+ 25,
+ 25,
+ 26,
+ 26,
+ 27,
+ 27,
+ 28,
+ 28,
+ 29,
+ 29,
+ 64,
+ 64
+ ];
+ x.exports = function(c, a, r, t, i, n, o, p) {
+ var O = p.bits, P = 0, F = 0, z = 0, N = 0, M = 0, I = 0, R = 0, C = 0, E = 0, A = 0, L, $, W, U, D, B = null, j = 0, V, re = new u.Buf16(m + 1), ee = new u.Buf16(m + 1), ce = null, ve = 0, ge, oe, J;
+ for (P = 0; P <= m; P++)
+ re[P] = 0;
+ for (F = 0; F < t; F++)
+ re[a[r + F]]++;
+ for (M = O, N = m; N >= 1 && re[N] === 0; N--)
+ ;
+ if (M > N && (M = N), N === 0)
+ return i[n++] = 1 << 24 | 64 << 16 | 0, i[n++] = 1 << 24 | 64 << 16 | 0, p.bits = 1, 0;
+ for (z = 1; z < N && re[z] === 0; z++)
+ ;
+ for (M < z && (M = z), C = 1, P = 1; P <= m; P++)
+ if (C <<= 1, C -= re[P], C < 0)
+ return -1;
+ if (C > 0 && (c === w || N !== 1))
+ return -1;
+ for (ee[1] = 0, P = 1; P < m; P++)
+ ee[P + 1] = ee[P] + re[P];
+ for (F = 0; F < t; F++)
+ a[r + F] !== 0 && (o[ee[a[r + F]]++] = F);
+ if (c === w ? (B = ce = o, V = 19) : c === f ? (B = h, j -= 257, ce = l, ve -= 257, V = 256) : (B = d, ce = s, V = -1), A = 0, F = 0, P = z, D = n, I = M, R = 0, W = -1, E = 1 << M, U = E - 1, c === f && E > g || c === y && E > b)
+ return 1;
+ for (; ; ) {
+ ge = P - R, o[F] < V ? (oe = 0, J = o[F]) : o[F] > V ? (oe = ce[ve + o[F]], J = B[j + o[F]]) : (oe = 32 + 64, J = 0), L = 1 << P - R, $ = 1 << I, z = $;
+ do
+ $ -= L, i[D + (A >> R) + $] = ge << 24 | oe << 16 | J | 0;
+ while ($ !== 0);
+ for (L = 1 << P - 1; A & L; )
+ L >>= 1;
+ if (L !== 0 ? (A &= L - 1, A += L) : A = 0, F++, --re[P] === 0) {
+ if (P === N)
+ break;
+ P = a[r + o[F]];
+ }
+ if (P > M && (A & U) !== W) {
+ for (R === 0 && (R = M), D += z, I = P - R, C = 1 << I; I + R < N && (C -= re[I + R], !(C <= 0)); )
+ I++, C <<= 1;
+ if (E += 1 << I, c === f && E > g || c === y && E > b)
+ return 1;
+ W = A & U, i[W] = M << 24 | I << 16 | D - n | 0;
+ }
+ }
+ return A !== 0 && (i[D + A] = P - R << 24 | 64 << 16 | 0), p.bits = M, 0;
+ };
+ }, { "../utils/common": 442 }], 452: [function(e, x, _) {
+ x.exports = {
+ 2: "need dictionary",
+ /* Z_NEED_DICT 2 */
+ 1: "stream end",
+ /* Z_STREAM_END 1 */
+ 0: "",
+ /* Z_OK 0 */
+ "-1": "file error",
+ /* Z_ERRNO (-1) */
+ "-2": "stream error",
+ /* Z_STREAM_ERROR (-2) */
+ "-3": "data error",
+ /* Z_DATA_ERROR (-3) */
+ "-4": "insufficient memory",
+ /* Z_MEM_ERROR (-4) */
+ "-5": "buffer error",
+ /* Z_BUF_ERROR (-5) */
+ "-6": "incompatible version"
+ /* Z_VERSION_ERROR (-6) */
+ };
+ }, {}], 453: [function(e, x, _) {
+ var u = e("../utils/common"), m = 4, g = 0, b = 1, w = 2;
+ function f(ae) {
+ for (var Re = ae.length; --Re >= 0; )
+ ae[Re] = 0;
+ }
+ var y = 0, h = 1, l = 2, d = 3, s = 258, v = 29, c = 256, a = c + 1 + v, r = 30, t = 19, i = 2 * a + 1, n = 15, o = 16, p = 7, O = 256, P = 16, F = 17, z = 18, N = (
+ /* extra bits for each length code */
+ [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
+ ), M = (
+ /* extra bits for each distance code */
+ [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
+ ), I = (
+ /* extra bits for each bit length code */
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
+ ), R = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], C = 512, E = new Array((a + 2) * 2);
+ f(E);
+ var A = new Array(r * 2);
+ f(A);
+ var L = new Array(C);
+ f(L);
+ var $ = new Array(s - d + 1);
+ f($);
+ var W = new Array(v);
+ f(W);
+ var U = new Array(r);
+ f(U);
+ function D(ae, Re, be, Ee, pe) {
+ this.static_tree = ae, this.extra_bits = Re, this.extra_base = be, this.elems = Ee, this.max_length = pe, this.has_stree = ae && ae.length;
+ }
+ var B, j, V;
+ function re(ae, Re) {
+ this.dyn_tree = ae, this.max_code = 0, this.stat_desc = Re;
+ }
+ function ee(ae) {
+ return ae < 256 ? L[ae] : L[256 + (ae >>> 7)];
+ }
+ function ce(ae, Re) {
+ ae.pending_buf[ae.pending++] = Re & 255, ae.pending_buf[ae.pending++] = Re >>> 8 & 255;
+ }
+ function ve(ae, Re, be) {
+ ae.bi_valid > o - be ? (ae.bi_buf |= Re << ae.bi_valid & 65535, ce(ae, ae.bi_buf), ae.bi_buf = Re >> o - ae.bi_valid, ae.bi_valid += be - o) : (ae.bi_buf |= Re << ae.bi_valid & 65535, ae.bi_valid += be);
+ }
+ function ge(ae, Re, be) {
+ ve(
+ ae,
+ be[Re * 2],
+ be[Re * 2 + 1]
+ /*.Len*/
+ );
+ }
+ function oe(ae, Re) {
+ var be = 0;
+ do
+ be |= ae & 1, ae >>>= 1, be <<= 1;
+ while (--Re > 0);
+ return be >>> 1;
+ }
+ function J(ae) {
+ ae.bi_valid === 16 ? (ce(ae, ae.bi_buf), ae.bi_buf = 0, ae.bi_valid = 0) : ae.bi_valid >= 8 && (ae.pending_buf[ae.pending++] = ae.bi_buf & 255, ae.bi_buf >>= 8, ae.bi_valid -= 8);
+ }
+ function Q(ae, Re) {
+ var be = Re.dyn_tree, Ee = Re.max_code, pe = Re.stat_desc.static_tree, Pe = Re.stat_desc.has_stree, te = Re.stat_desc.extra_bits, He = Re.stat_desc.extra_base, it = Re.stat_desc.max_length, K, Me, Le, ue, Se, Ie, st = 0;
+ for (ue = 0; ue <= n; ue++)
+ ae.bl_count[ue] = 0;
+ for (be[ae.heap[ae.heap_max] * 2 + 1] = 0, K = ae.heap_max + 1; K < i; K++)
+ Me = ae.heap[K], ue = be[be[Me * 2 + 1] * 2 + 1] + 1, ue > it && (ue = it, st++), be[Me * 2 + 1] = ue, !(Me > Ee) && (ae.bl_count[ue]++, Se = 0, Me >= He && (Se = te[Me - He]), Ie = be[Me * 2], ae.opt_len += Ie * (ue + Se), Pe && (ae.static_len += Ie * (pe[Me * 2 + 1] + Se)));
+ if (st !== 0) {
+ do {
+ for (ue = it - 1; ae.bl_count[ue] === 0; )
+ ue--;
+ ae.bl_count[ue]--, ae.bl_count[ue + 1] += 2, ae.bl_count[it]--, st -= 2;
+ } while (st > 0);
+ for (ue = it; ue !== 0; ue--)
+ for (Me = ae.bl_count[ue]; Me !== 0; )
+ Le = ae.heap[--K], !(Le > Ee) && (be[Le * 2 + 1] !== ue && (ae.opt_len += (ue - be[Le * 2 + 1]) * be[Le * 2], be[Le * 2 + 1] = ue), Me--);
+ }
+ }
+ function he(ae, Re, be) {
+ var Ee = new Array(n + 1), pe = 0, Pe, te;
+ for (Pe = 1; Pe <= n; Pe++)
+ Ee[Pe] = pe = pe + be[Pe - 1] << 1;
+ for (te = 0; te <= Re; te++) {
+ var He = ae[te * 2 + 1];
+ He !== 0 && (ae[te * 2] = oe(Ee[He]++, He));
+ }
+ }
+ function ke() {
+ var ae, Re, be, Ee, pe, Pe = new Array(n + 1);
+ for (be = 0, Ee = 0; Ee < v - 1; Ee++)
+ for (W[Ee] = be, ae = 0; ae < 1 << N[Ee]; ae++)
+ $[be++] = Ee;
+ for ($[be - 1] = Ee, pe = 0, Ee = 0; Ee < 16; Ee++)
+ for (U[Ee] = pe, ae = 0; ae < 1 << M[Ee]; ae++)
+ L[pe++] = Ee;
+ for (pe >>= 7; Ee < r; Ee++)
+ for (U[Ee] = pe << 7, ae = 0; ae < 1 << M[Ee] - 7; ae++)
+ L[256 + pe++] = Ee;
+ for (Re = 0; Re <= n; Re++)
+ Pe[Re] = 0;
+ for (ae = 0; ae <= 143; )
+ E[ae * 2 + 1] = 8, ae++, Pe[8]++;
+ for (; ae <= 255; )
+ E[ae * 2 + 1] = 9, ae++, Pe[9]++;
+ for (; ae <= 279; )
+ E[ae * 2 + 1] = 7, ae++, Pe[7]++;
+ for (; ae <= 287; )
+ E[ae * 2 + 1] = 8, ae++, Pe[8]++;
+ for (he(E, a + 1, Pe), ae = 0; ae < r; ae++)
+ A[ae * 2 + 1] = 5, A[ae * 2] = oe(ae, 5);
+ B = new D(E, N, c + 1, a, n), j = new D(A, M, 0, r, n), V = new D(new Array(0), I, 0, t, p);
+ }
+ function ne(ae) {
+ var Re;
+ for (Re = 0; Re < a; Re++)
+ ae.dyn_ltree[Re * 2] = 0;
+ for (Re = 0; Re < r; Re++)
+ ae.dyn_dtree[Re * 2] = 0;
+ for (Re = 0; Re < t; Re++)
+ ae.bl_tree[Re * 2] = 0;
+ ae.dyn_ltree[O * 2] = 1, ae.opt_len = ae.static_len = 0, ae.last_lit = ae.matches = 0;
+ }
+ function se(ae) {
+ ae.bi_valid > 8 ? ce(ae, ae.bi_buf) : ae.bi_valid > 0 && (ae.pending_buf[ae.pending++] = ae.bi_buf), ae.bi_buf = 0, ae.bi_valid = 0;
+ }
+ function Ce(ae, Re, be, Ee) {
+ se(ae), Ee && (ce(ae, be), ce(ae, ~be)), u.arraySet(ae.pending_buf, ae.window, Re, be, ae.pending), ae.pending += be;
+ }
+ function q(ae, Re, be, Ee) {
+ var pe = Re * 2, Pe = be * 2;
+ return ae[pe] < ae[Pe] || ae[pe] === ae[Pe] && Ee[Re] <= Ee[be];
+ }
+ function G(ae, Re, be) {
+ for (var Ee = ae.heap[be], pe = be << 1; pe <= ae.heap_len && (pe < ae.heap_len && q(Re, ae.heap[pe + 1], ae.heap[pe], ae.depth) && pe++, !q(Re, Ee, ae.heap[pe], ae.depth)); )
+ ae.heap[be] = ae.heap[pe], be = pe, pe <<= 1;
+ ae.heap[be] = Ee;
+ }
+ function Y(ae, Re, be) {
+ var Ee, pe, Pe = 0, te, He;
+ if (ae.last_lit !== 0)
+ do
+ Ee = ae.pending_buf[ae.d_buf + Pe * 2] << 8 | ae.pending_buf[ae.d_buf + Pe * 2 + 1], pe = ae.pending_buf[ae.l_buf + Pe], Pe++, Ee === 0 ? ge(ae, pe, Re) : (te = $[pe], ge(ae, te + c + 1, Re), He = N[te], He !== 0 && (pe -= W[te], ve(ae, pe, He)), Ee--, te = ee(Ee), ge(ae, te, be), He = M[te], He !== 0 && (Ee -= U[te], ve(ae, Ee, He)));
+ while (Pe < ae.last_lit);
+ ge(ae, O, Re);
+ }
+ function fe(ae, Re) {
+ var be = Re.dyn_tree, Ee = Re.stat_desc.static_tree, pe = Re.stat_desc.has_stree, Pe = Re.stat_desc.elems, te, He, it = -1, K;
+ for (ae.heap_len = 0, ae.heap_max = i, te = 0; te < Pe; te++)
+ be[te * 2] !== 0 ? (ae.heap[++ae.heap_len] = it = te, ae.depth[te] = 0) : be[te * 2 + 1] = 0;
+ for (; ae.heap_len < 2; )
+ K = ae.heap[++ae.heap_len] = it < 2 ? ++it : 0, be[K * 2] = 1, ae.depth[K] = 0, ae.opt_len--, pe && (ae.static_len -= Ee[K * 2 + 1]);
+ for (Re.max_code = it, te = ae.heap_len >> 1; te >= 1; te--)
+ G(ae, be, te);
+ K = Pe;
+ do
+ te = ae.heap[
+ 1
+ /*SMALLEST*/
+ ], ae.heap[
+ 1
+ /*SMALLEST*/
+ ] = ae.heap[ae.heap_len--], G(
+ ae,
+ be,
+ 1
+ /*SMALLEST*/
+ ), He = ae.heap[
+ 1
+ /*SMALLEST*/
+ ], ae.heap[--ae.heap_max] = te, ae.heap[--ae.heap_max] = He, be[K * 2] = be[te * 2] + be[He * 2], ae.depth[K] = (ae.depth[te] >= ae.depth[He] ? ae.depth[te] : ae.depth[He]) + 1, be[te * 2 + 1] = be[He * 2 + 1] = K, ae.heap[
+ 1
+ /*SMALLEST*/
+ ] = K++, G(
+ ae,
+ be,
+ 1
+ /*SMALLEST*/
+ );
+ while (ae.heap_len >= 2);
+ ae.heap[--ae.heap_max] = ae.heap[
+ 1
+ /*SMALLEST*/
+ ], Q(ae, Re), he(be, it, ae.bl_count);
+ }
+ function we(ae, Re, be) {
+ var Ee, pe = -1, Pe, te = Re[0 * 2 + 1], He = 0, it = 7, K = 4;
+ for (te === 0 && (it = 138, K = 3), Re[(be + 1) * 2 + 1] = 65535, Ee = 0; Ee <= be; Ee++)
+ Pe = te, te = Re[(Ee + 1) * 2 + 1], !(++He < it && Pe === te) && (He < K ? ae.bl_tree[Pe * 2] += He : Pe !== 0 ? (Pe !== pe && ae.bl_tree[Pe * 2]++, ae.bl_tree[P * 2]++) : He <= 10 ? ae.bl_tree[F * 2]++ : ae.bl_tree[z * 2]++, He = 0, pe = Pe, te === 0 ? (it = 138, K = 3) : Pe === te ? (it = 6, K = 3) : (it = 7, K = 4));
+ }
+ function _e(ae, Re, be) {
+ var Ee, pe = -1, Pe, te = Re[0 * 2 + 1], He = 0, it = 7, K = 4;
+ for (te === 0 && (it = 138, K = 3), Ee = 0; Ee <= be; Ee++)
+ if (Pe = te, te = Re[(Ee + 1) * 2 + 1], !(++He < it && Pe === te)) {
+ if (He < K)
+ do
+ ge(ae, Pe, ae.bl_tree);
+ while (--He !== 0);
+ else
+ Pe !== 0 ? (Pe !== pe && (ge(ae, Pe, ae.bl_tree), He--), ge(ae, P, ae.bl_tree), ve(ae, He - 3, 2)) : He <= 10 ? (ge(ae, F, ae.bl_tree), ve(ae, He - 3, 3)) : (ge(ae, z, ae.bl_tree), ve(ae, He - 11, 7));
+ He = 0, pe = Pe, te === 0 ? (it = 138, K = 3) : Pe === te ? (it = 6, K = 3) : (it = 7, K = 4);
+ }
+ }
+ function je(ae) {
+ var Re;
+ for (we(ae, ae.dyn_ltree, ae.l_desc.max_code), we(ae, ae.dyn_dtree, ae.d_desc.max_code), fe(ae, ae.bl_desc), Re = t - 1; Re >= 3 && ae.bl_tree[R[Re] * 2 + 1] === 0; Re--)
+ ;
+ return ae.opt_len += 3 * (Re + 1) + 5 + 5 + 4, Re;
+ }
+ function Ye(ae, Re, be, Ee) {
+ var pe;
+ for (ve(ae, Re - 257, 5), ve(ae, be - 1, 5), ve(ae, Ee - 4, 4), pe = 0; pe < Ee; pe++)
+ ve(
+ ae,
+ ae.bl_tree[R[pe] * 2 + 1],
+ 3
+ );
+ _e(ae, ae.dyn_ltree, Re - 1), _e(ae, ae.dyn_dtree, be - 1);
+ }
+ function nt(ae) {
+ var Re = 4093624447, be;
+ for (be = 0; be <= 31; be++, Re >>>= 1)
+ if (Re & 1 && ae.dyn_ltree[be * 2] !== 0)
+ return g;
+ if (ae.dyn_ltree[9 * 2] !== 0 || ae.dyn_ltree[10 * 2] !== 0 || ae.dyn_ltree[13 * 2] !== 0)
+ return b;
+ for (be = 32; be < c; be++)
+ if (ae.dyn_ltree[be * 2] !== 0)
+ return b;
+ return g;
+ }
+ var ut = !1;
+ function ot(ae) {
+ ut || (ke(), ut = !0), ae.l_desc = new re(ae.dyn_ltree, B), ae.d_desc = new re(ae.dyn_dtree, j), ae.bl_desc = new re(ae.bl_tree, V), ae.bi_buf = 0, ae.bi_valid = 0, ne(ae);
+ }
+ function Ue(ae, Re, be, Ee) {
+ ve(ae, (y << 1) + (Ee ? 1 : 0), 3), Ce(ae, Re, be, !0);
+ }
+ function Ve(ae) {
+ ve(ae, h << 1, 3), ge(ae, O, E), J(ae);
+ }
+ function Qe(ae, Re, be, Ee) {
+ var pe, Pe, te = 0;
+ ae.level > 0 ? (ae.strm.data_type === w && (ae.strm.data_type = nt(ae)), fe(ae, ae.l_desc), fe(ae, ae.d_desc), te = je(ae), pe = ae.opt_len + 3 + 7 >>> 3, Pe = ae.static_len + 3 + 7 >>> 3, Pe <= pe && (pe = Pe)) : pe = Pe = be + 5, be + 4 <= pe && Re !== -1 ? Ue(ae, Re, be, Ee) : ae.strategy === m || Pe === pe ? (ve(ae, (h << 1) + (Ee ? 1 : 0), 3), Y(ae, E, A)) : (ve(ae, (l << 1) + (Ee ? 1 : 0), 3), Ye(ae, ae.l_desc.max_code + 1, ae.d_desc.max_code + 1, te + 1), Y(ae, ae.dyn_ltree, ae.dyn_dtree)), ne(ae), Ee && se(ae);
+ }
+ function tt(ae, Re, be) {
+ return ae.pending_buf[ae.d_buf + ae.last_lit * 2] = Re >>> 8 & 255, ae.pending_buf[ae.d_buf + ae.last_lit * 2 + 1] = Re & 255, ae.pending_buf[ae.l_buf + ae.last_lit] = be & 255, ae.last_lit++, Re === 0 ? ae.dyn_ltree[be * 2]++ : (ae.matches++, Re--, ae.dyn_ltree[($[be] + c + 1) * 2]++, ae.dyn_dtree[ee(Re) * 2]++), ae.last_lit === ae.lit_bufsize - 1;
+ }
+ _._tr_init = ot, _._tr_stored_block = Ue, _._tr_flush_block = Qe, _._tr_tally = tt, _._tr_align = Ve;
+ }, { "../utils/common": 442 }], 454: [function(e, x, _) {
+ function u() {
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
+ }
+ x.exports = u;
+ }, {}], 455: [function(e, x, _) {
+ x.exports = {
+ "2.16.840.1.101.3.4.1.1": "aes-128-ecb",
+ "2.16.840.1.101.3.4.1.2": "aes-128-cbc",
+ "2.16.840.1.101.3.4.1.3": "aes-128-ofb",
+ "2.16.840.1.101.3.4.1.4": "aes-128-cfb",
+ "2.16.840.1.101.3.4.1.21": "aes-192-ecb",
+ "2.16.840.1.101.3.4.1.22": "aes-192-cbc",
+ "2.16.840.1.101.3.4.1.23": "aes-192-ofb",
+ "2.16.840.1.101.3.4.1.24": "aes-192-cfb",
+ "2.16.840.1.101.3.4.1.41": "aes-256-ecb",
+ "2.16.840.1.101.3.4.1.42": "aes-256-cbc",
+ "2.16.840.1.101.3.4.1.43": "aes-256-ofb",
+ "2.16.840.1.101.3.4.1.44": "aes-256-cfb"
+ };
+ }, {}], 456: [function(e, x, _) {
+ var u = e("asn1.js");
+ _.certificate = e("./certificate");
+ var m = u.define("RSAPrivateKey", function() {
+ this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int());
+ });
+ _.RSAPrivateKey = m;
+ var g = u.define("RSAPublicKey", function() {
+ this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int());
+ });
+ _.RSAPublicKey = g;
+ var b = u.define("SubjectPublicKeyInfo", function() {
+ this.seq().obj(this.key("algorithm").use(w), this.key("subjectPublicKey").bitstr());
+ });
+ _.PublicKey = b;
+ var w = u.define("AlgorithmIdentifier", function() {
+ this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional());
+ }), f = u.define("PrivateKeyInfo", function() {
+ this.seq().obj(this.key("version").int(), this.key("algorithm").use(w), this.key("subjectPrivateKey").octstr());
+ });
+ _.PrivateKey = f;
+ var y = u.define("EncryptedPrivateKeyInfo", function() {
+ this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr());
+ });
+ _.EncryptedPrivateKey = y;
+ var h = u.define("DSAPrivateKey", function() {
+ this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int());
+ });
+ _.DSAPrivateKey = h, _.DSAparam = u.define("DSAparam", function() {
+ this.int();
+ });
+ var l = u.define("ECPrivateKey", function() {
+ this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(d), this.key("publicKey").optional().explicit(1).bitstr());
+ });
+ _.ECPrivateKey = l;
+ var d = u.define("ECParameters", function() {
+ this.choice({
+ namedCurve: this.objid()
+ });
+ });
+ _.signature = u.define("signature", function() {
+ this.seq().obj(this.key("r").int(), this.key("s").int());
+ });
+ }, { "./certificate": 457, "asn1.js": 167 }], 457: [function(e, x, _) {
+ var u = e("asn1.js"), m = u.define("Time", function() {
+ this.choice({
+ utcTime: this.utctime(),
+ generalTime: this.gentime()
+ });
+ }), g = u.define("AttributeTypeValue", function() {
+ this.seq().obj(this.key("type").objid(), this.key("value").any());
+ }), b = u.define("AlgorithmIdentifier", function() {
+ this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional());
+ }), w = u.define("SubjectPublicKeyInfo", function() {
+ this.seq().obj(this.key("algorithm").use(b), this.key("subjectPublicKey").bitstr());
+ }), f = u.define("RelativeDistinguishedName", function() {
+ this.setof(g);
+ }), y = u.define("RDNSequence", function() {
+ this.seqof(f);
+ }), h = u.define("Name", function() {
+ this.choice({
+ rdnSequence: this.use(y)
+ });
+ }), l = u.define("Validity", function() {
+ this.seq().obj(this.key("notBefore").use(m), this.key("notAfter").use(m));
+ }), d = u.define("Extension", function() {
+ this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(!1), this.key("extnValue").octstr());
+ }), s = u.define("TBSCertificate", function() {
+ this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(b), this.key("issuer").use(h), this.key("validity").use(l), this.key("subject").use(h), this.key("subjectPublicKeyInfo").use(w), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(d).optional());
+ }), v = u.define("X509Certificate", function() {
+ this.seq().obj(this.key("tbsCertificate").use(s), this.key("signatureAlgorithm").use(b), this.key("signatureValue").bitstr());
+ });
+ x.exports = v;
+ }, { "asn1.js": 167 }], 458: [function(e, x, _) {
+ var u = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m, m = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m, g = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m, b = e("evp_bytestokey"), w = e("browserify-aes"), f = e("safe-buffer").Buffer;
+ x.exports = function(y, h) {
+ var l = y.toString(), d = l.match(u), s;
+ if (d) {
+ var c = "aes" + d[1], a = f.from(d[2], "hex"), r = f.from(d[3].replace(/[\r\n]/g, ""), "base64"), t = b(h, a.slice(0, 8), parseInt(d[1], 10)).key, i = [], n = w.createDecipheriv(c, t, a);
+ i.push(n.update(r)), i.push(n.final()), s = f.concat(i);
+ } else {
+ var v = l.match(g);
+ s = f.from(v[2].replace(/[\r\n]/g, ""), "base64");
+ }
+ var o = l.match(m)[1];
+ return {
+ tag: o,
+ data: s
+ };
+ };
+ }, { "browserify-aes": 188, evp_bytestokey: 368, "safe-buffer": 494 }], 459: [function(e, x, _) {
+ function u(d) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(v) {
+ return typeof v;
+ } : u = function(v) {
+ return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
+ }, u(d);
+ }
+ var m = e("./asn1"), g = e("./aesid.json"), b = e("./fixProc"), w = e("browserify-aes"), f = e("pbkdf2"), y = e("safe-buffer").Buffer;
+ x.exports = h;
+ function h(d) {
+ var s;
+ u(d) === "object" && !y.isBuffer(d) && (s = d.passphrase, d = d.key), typeof d == "string" && (d = y.from(d));
+ var v = b(d, s), c = v.tag, a = v.data, r, t;
+ switch (c) {
+ case "CERTIFICATE":
+ t = m.certificate.decode(a, "der").tbsCertificate.subjectPublicKeyInfo;
+ case "PUBLIC KEY":
+ switch (t || (t = m.PublicKey.decode(a, "der")), r = t.algorithm.algorithm.join("."), r) {
+ case "1.2.840.113549.1.1.1":
+ return m.RSAPublicKey.decode(t.subjectPublicKey.data, "der");
+ case "1.2.840.10045.2.1":
+ return t.subjectPrivateKey = t.subjectPublicKey, {
+ type: "ec",
+ data: t
+ };
+ case "1.2.840.10040.4.1":
+ return t.algorithm.params.pub_key = m.DSAparam.decode(t.subjectPublicKey.data, "der"), {
+ type: "dsa",
+ data: t.algorithm.params
+ };
+ default:
+ throw new Error("unknown key id " + r);
+ }
+ case "ENCRYPTED PRIVATE KEY":
+ a = m.EncryptedPrivateKey.decode(a, "der"), a = l(a, s);
+ case "PRIVATE KEY":
+ switch (t = m.PrivateKey.decode(a, "der"), r = t.algorithm.algorithm.join("."), r) {
+ case "1.2.840.113549.1.1.1":
+ return m.RSAPrivateKey.decode(t.subjectPrivateKey, "der");
+ case "1.2.840.10045.2.1":
+ return {
+ curve: t.algorithm.curve,
+ privateKey: m.ECPrivateKey.decode(t.subjectPrivateKey, "der").privateKey
+ };
+ case "1.2.840.10040.4.1":
+ return t.algorithm.params.priv_key = m.DSAparam.decode(t.subjectPrivateKey, "der"), {
+ type: "dsa",
+ params: t.algorithm.params
+ };
+ default:
+ throw new Error("unknown key id " + r);
+ }
+ case "RSA PUBLIC KEY":
+ return m.RSAPublicKey.decode(a, "der");
+ case "RSA PRIVATE KEY":
+ return m.RSAPrivateKey.decode(a, "der");
+ case "DSA PRIVATE KEY":
+ return {
+ type: "dsa",
+ params: m.DSAPrivateKey.decode(a, "der")
+ };
+ case "EC PRIVATE KEY":
+ return a = m.ECPrivateKey.decode(a, "der"), {
+ curve: a.parameters.value,
+ privateKey: a.privateKey
+ };
+ default:
+ throw new Error("unknown key type " + c);
+ }
+ }
+ h.signature = m.signature;
+ function l(d, s) {
+ var v = d.algorithm.decrypt.kde.kdeparams.salt, c = parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), a = g[d.algorithm.decrypt.cipher.algo.join(".")], r = d.algorithm.decrypt.cipher.iv, t = d.subjectPrivateKey, i = parseInt(a.split("-")[1], 10) / 8, n = f.pbkdf2Sync(s, v, c, i, "sha1"), o = w.createDecipheriv(a, n, r), p = [];
+ return p.push(o.update(t)), p.push(o.final()), y.concat(p);
+ }
+ }, { "./aesid.json": 455, "./asn1": 456, "./fixProc": 458, "browserify-aes": 188, pbkdf2: 460, "safe-buffer": 494 }], 460: [function(e, x, _) {
+ _.pbkdf2 = e("./lib/async"), _.pbkdf2Sync = e("./lib/sync");
+ }, { "./lib/async": 461, "./lib/sync": 464 }], 461: [function(e, x, _) {
+ (function(u, m) {
+ var g = e("safe-buffer").Buffer, b = e("./precondition"), w = e("./default-encoding"), f = e("./sync"), y = e("./to-buffer"), h, l = m.crypto && m.crypto.subtle, d = {
+ sha: "SHA-1",
+ "sha-1": "SHA-1",
+ sha1: "SHA-1",
+ sha256: "SHA-256",
+ "sha-256": "SHA-256",
+ sha384: "SHA-384",
+ "sha-384": "SHA-384",
+ "sha-512": "SHA-512",
+ sha512: "SHA-512"
+ }, s = [];
+ function v(r) {
+ if (m.process && !m.process.browser || !l || !l.importKey || !l.deriveBits)
+ return Promise.resolve(!1);
+ if (s[r] !== void 0)
+ return s[r];
+ h = h || g.alloc(8);
+ var t = c(h, h, 10, 128, r).then(function() {
+ return !0;
+ }).catch(function() {
+ return !1;
+ });
+ return s[r] = t, t;
+ }
+ function c(r, t, i, n, o) {
+ return l.importKey("raw", r, {
+ name: "PBKDF2"
+ }, !1, ["deriveBits"]).then(function(p) {
+ return l.deriveBits({
+ name: "PBKDF2",
+ salt: t,
+ iterations: i,
+ hash: {
+ name: o
+ }
+ }, p, n << 3);
+ }).then(function(p) {
+ return g.from(p);
+ });
+ }
+ function a(r, t) {
+ r.then(function(i) {
+ u.nextTick(function() {
+ t(null, i);
+ });
+ }, function(i) {
+ u.nextTick(function() {
+ t(i);
+ });
+ });
+ }
+ x.exports = function(r, t, i, n, o, p) {
+ typeof o == "function" && (p = o, o = void 0), o = o || "sha1";
+ var O = d[o.toLowerCase()];
+ if (!O || typeof m.Promise != "function")
+ return u.nextTick(function() {
+ var P;
+ try {
+ P = f(r, t, i, n, o);
+ } catch (F) {
+ return p(F);
+ }
+ p(null, P);
+ });
+ if (b(i, n), r = y(r, w, "Password"), t = y(t, w, "Salt"), typeof p != "function")
+ throw new Error("No callback provided to pbkdf2");
+ a(v(O).then(function(P) {
+ return P ? c(r, t, i, n, O) : f(r, t, i, n, o);
+ }), p);
+ };
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { "./default-encoding": 462, "./precondition": 463, "./sync": 464, "./to-buffer": 465, _process: 467, "safe-buffer": 494 }], 462: [function(e, x, _) {
+ (function(u) {
+ var m;
+ if (u.browser)
+ m = "utf-8";
+ else if (u.version) {
+ var g = parseInt(u.version.split(".")[0].slice(1), 10);
+ m = g >= 6 ? "utf-8" : "binary";
+ } else
+ m = "utf-8";
+ x.exports = m;
+ }).call(this, e("_process"));
+ }, { _process: 467 }], 463: [function(e, x, _) {
+ var u = Math.pow(2, 30) - 1;
+ x.exports = function(m, g) {
+ if (typeof m != "number")
+ throw new TypeError("Iterations not a number");
+ if (m < 0)
+ throw new TypeError("Bad iterations");
+ if (typeof g != "number")
+ throw new TypeError("Key length not a number");
+ if (g < 0 || g > u || g !== g)
+ throw new TypeError("Bad key length");
+ };
+ }, {}], 464: [function(e, x, _) {
+ var u = e("create-hash/md5"), m = e("ripemd160"), g = e("sha.js"), b = e("safe-buffer").Buffer, w = e("./precondition"), f = e("./default-encoding"), y = e("./to-buffer"), h = b.alloc(128), l = {
+ md5: 16,
+ sha1: 20,
+ sha224: 28,
+ sha256: 32,
+ sha384: 48,
+ sha512: 64,
+ rmd160: 20,
+ ripemd160: 20
+ };
+ function d(c, a, r) {
+ var t = s(c), i = c === "sha512" || c === "sha384" ? 128 : 64;
+ a.length > i ? a = t(a) : a.length < i && (a = b.concat([a, h], i));
+ for (var n = b.allocUnsafe(i + l[c]), o = b.allocUnsafe(i + l[c]), p = 0; p < i; p++)
+ n[p] = a[p] ^ 54, o[p] = a[p] ^ 92;
+ var O = b.allocUnsafe(i + r + 4);
+ n.copy(O, 0, 0, i), this.ipad1 = O, this.ipad2 = n, this.opad = o, this.alg = c, this.blocksize = i, this.hash = t, this.size = l[c];
+ }
+ d.prototype.run = function(c, a) {
+ c.copy(a, this.blocksize);
+ var r = this.hash(a);
+ return r.copy(this.opad, this.blocksize), this.hash(this.opad);
+ };
+ function s(c) {
+ function a(t) {
+ return g(c).update(t).digest();
+ }
+ function r(t) {
+ return new m().update(t).digest();
+ }
+ return c === "rmd160" || c === "ripemd160" ? r : c === "md5" ? u : a;
+ }
+ function v(c, a, r, t, i) {
+ w(r, t), c = y(c, f, "Password"), a = y(a, f, "Salt"), i = i || "sha1";
+ var n = new d(i, c, a.length), o = b.allocUnsafe(t), p = b.allocUnsafe(a.length + 4);
+ a.copy(p, 0, 0, a.length);
+ for (var O = 0, P = l[i], F = Math.ceil(t / P), z = 1; z <= F; z++) {
+ p.writeUInt32BE(z, a.length);
+ for (var N = n.run(p, n.ipad1), M = N, I = 1; I < r; I++) {
+ M = n.run(M, n.ipad2);
+ for (var R = 0; R < P; R++)
+ N[R] ^= M[R];
+ }
+ N.copy(o, O), O += P;
+ }
+ return o;
+ }
+ x.exports = v;
+ }, { "./default-encoding": 462, "./precondition": 463, "./to-buffer": 465, "create-hash/md5": 332, ripemd160: 493, "safe-buffer": 494, "sha.js": 499 }], 465: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer;
+ x.exports = function(m, g, b) {
+ if (u.isBuffer(m))
+ return m;
+ if (typeof m == "string")
+ return u.from(m, g);
+ if (ArrayBuffer.isView(m))
+ return u.from(m.buffer);
+ throw new TypeError(b + " must be a string, a Buffer, a typed array or a DataView");
+ };
+ }, { "safe-buffer": 494 }], 466: [function(e, x, _) {
+ (function(u) {
+ typeof u == "undefined" || !u.version || u.version.indexOf("v0.") === 0 || u.version.indexOf("v1.") === 0 && u.version.indexOf("v1.8.") !== 0 ? x.exports = {
+ nextTick: m
+ } : x.exports = u;
+ function m(g, b, w, f) {
+ if (typeof g != "function")
+ throw new TypeError('"callback" argument must be a function');
+ var y = arguments.length, h, l;
+ switch (y) {
+ case 0:
+ case 1:
+ return u.nextTick(g);
+ case 2:
+ return u.nextTick(function() {
+ g.call(null, b);
+ });
+ case 3:
+ return u.nextTick(function() {
+ g.call(null, b, w);
+ });
+ case 4:
+ return u.nextTick(function() {
+ g.call(null, b, w, f);
+ });
+ default:
+ for (h = new Array(y - 1), l = 0; l < h.length; )
+ h[l++] = arguments[l];
+ return u.nextTick(function() {
+ g.apply(null, h);
+ });
+ }
+ }
+ }).call(this, e("_process"));
+ }, { _process: 467 }], 467: [function(e, x, _) {
+ var u = x.exports = {}, m, g;
+ function b() {
+ throw new Error("setTimeout has not been defined");
+ }
+ function w() {
+ throw new Error("clearTimeout has not been defined");
+ }
+ (function() {
+ try {
+ typeof setTimeout == "function" ? m = setTimeout : m = b;
+ } catch (t) {
+ m = b;
+ }
+ try {
+ typeof clearTimeout == "function" ? g = clearTimeout : g = w;
+ } catch (t) {
+ g = w;
+ }
+ })();
+ function f(t) {
+ if (m === setTimeout)
+ return setTimeout(t, 0);
+ if ((m === b || !m) && setTimeout)
+ return m = setTimeout, setTimeout(t, 0);
+ try {
+ return m(t, 0);
+ } catch (i) {
+ try {
+ return m.call(null, t, 0);
+ } catch (n) {
+ return m.call(this, t, 0);
+ }
+ }
+ }
+ function y(t) {
+ if (g === clearTimeout)
+ return clearTimeout(t);
+ if ((g === w || !g) && clearTimeout)
+ return g = clearTimeout, clearTimeout(t);
+ try {
+ return g(t);
+ } catch (i) {
+ try {
+ return g.call(null, t);
+ } catch (n) {
+ return g.call(this, t);
+ }
+ }
+ }
+ var h = [], l = !1, d, s = -1;
+ function v() {
+ !l || !d || (l = !1, d.length ? h = d.concat(h) : s = -1, h.length && c());
+ }
+ function c() {
+ if (!l) {
+ var t = f(v);
+ l = !0;
+ for (var i = h.length; i; ) {
+ for (d = h, h = []; ++s < i; )
+ d && d[s].run();
+ s = -1, i = h.length;
+ }
+ d = null, l = !1, y(t);
+ }
+ }
+ u.nextTick = function(t) {
+ var i = new Array(arguments.length - 1);
+ if (arguments.length > 1)
+ for (var n = 1; n < arguments.length; n++)
+ i[n - 1] = arguments[n];
+ h.push(new a(t, i)), h.length === 1 && !l && f(c);
+ };
+ function a(t, i) {
+ this.fun = t, this.array = i;
+ }
+ a.prototype.run = function() {
+ this.fun.apply(null, this.array);
+ }, u.title = "browser", u.browser = !0, u.env = {}, u.argv = [], u.version = "", u.versions = {};
+ function r() {
+ }
+ u.on = r, u.addListener = r, u.once = r, u.off = r, u.removeListener = r, u.removeAllListeners = r, u.emit = r, u.prependListener = r, u.prependOnceListener = r, u.listeners = function(t) {
+ return [];
+ }, u.binding = function(t) {
+ throw new Error("process.binding is not supported");
+ }, u.cwd = function() {
+ return "/";
+ }, u.chdir = function(t) {
+ throw new Error("process.chdir is not supported");
+ }, u.umask = function() {
+ return 0;
+ };
+ }, {}], 468: [function(e, x, _) {
+ _.publicEncrypt = e("./publicEncrypt"), _.privateDecrypt = e("./privateDecrypt"), _.privateEncrypt = function(m, g) {
+ return _.publicEncrypt(m, g, !0);
+ }, _.publicDecrypt = function(m, g) {
+ return _.privateDecrypt(m, g, !0);
+ };
+ }, { "./privateDecrypt": 471, "./publicEncrypt": 472 }], 469: [function(e, x, _) {
+ var u = e("create-hash"), m = e("safe-buffer").Buffer;
+ x.exports = function(b, w) {
+ for (var f = m.alloc(0), y = 0, h; f.length < w; )
+ h = g(y++), f = m.concat([f, u("sha1").update(b).update(h).digest()]);
+ return f.slice(0, w);
+ };
+ function g(b) {
+ var w = m.allocUnsafe(4);
+ return w.writeUInt32BE(b, 0), w;
+ }
+ }, { "create-hash": 331, "safe-buffer": 494 }], 470: [function(e, x, _) {
+ arguments[4][181][0].apply(_, arguments);
+ }, { buffer: 185, dup: 181 }], 471: [function(e, x, _) {
+ var u = e("parse-asn1"), m = e("./mgf"), g = e("./xor"), b = e("bn.js"), w = e("browserify-rsa"), f = e("create-hash"), y = e("./withPublic"), h = e("safe-buffer").Buffer;
+ x.exports = function(c, a, r) {
+ var t;
+ c.padding ? t = c.padding : r ? t = 1 : t = 4;
+ var i = u(c), n = i.modulus.byteLength();
+ if (a.length > n || new b(a).cmp(i.modulus) >= 0)
+ throw new Error("decryption error");
+ var o;
+ r ? o = y(new b(a), i) : o = w(a, i);
+ var p = h.alloc(n - o.length);
+ if (o = h.concat([p, o], n), t === 4)
+ return l(i, o);
+ if (t === 1)
+ return d(i, o, r);
+ if (t === 3)
+ return o;
+ throw new Error("unknown padding");
+ };
+ function l(v, c) {
+ var a = v.modulus.byteLength(), r = f("sha1").update(h.alloc(0)).digest(), t = r.length;
+ if (c[0] !== 0)
+ throw new Error("decryption error");
+ var i = c.slice(1, t + 1), n = c.slice(t + 1), o = g(i, m(n, t)), p = g(n, m(o, a - t - 1));
+ if (s(r, p.slice(0, t)))
+ throw new Error("decryption error");
+ for (var O = t; p[O] === 0; )
+ O++;
+ if (p[O++] !== 1)
+ throw new Error("decryption error");
+ return p.slice(O);
+ }
+ function d(v, c, a) {
+ for (var r = c.slice(0, 2), t = 2, i = 0; c[t++] !== 0; )
+ if (t >= c.length) {
+ i++;
+ break;
+ }
+ var n = c.slice(2, t - 1);
+ if ((r.toString("hex") !== "0002" && !a || r.toString("hex") !== "0001" && a) && i++, n.length < 8 && i++, i)
+ throw new Error("decryption error");
+ return c.slice(t);
+ }
+ function s(v, c) {
+ v = h.from(v), c = h.from(c);
+ var a = 0, r = v.length;
+ v.length !== c.length && (a++, r = Math.min(v.length, c.length));
+ for (var t = -1; ++t < r; )
+ a += v[t] ^ c[t];
+ return a;
+ }
+ }, { "./mgf": 469, "./withPublic": 473, "./xor": 474, "bn.js": 470, "browserify-rsa": 206, "create-hash": 331, "parse-asn1": 459, "safe-buffer": 494 }], 472: [function(e, x, _) {
+ var u = e("parse-asn1"), m = e("randombytes"), g = e("create-hash"), b = e("./mgf"), w = e("./xor"), f = e("bn.js"), y = e("./withPublic"), h = e("browserify-rsa"), l = e("safe-buffer").Buffer;
+ x.exports = function(a, r, t) {
+ var i;
+ a.padding ? i = a.padding : t ? i = 1 : i = 4;
+ var n = u(a), o;
+ if (i === 4)
+ o = d(n, r);
+ else if (i === 1)
+ o = s(n, r, t);
+ else if (i === 3) {
+ if (o = new f(r), o.cmp(n.modulus) >= 0)
+ throw new Error("data too long for modulus");
+ } else
+ throw new Error("unknown padding");
+ return t ? h(o, n) : y(o, n);
+ };
+ function d(c, a) {
+ var r = c.modulus.byteLength(), t = a.length, i = g("sha1").update(l.alloc(0)).digest(), n = i.length, o = 2 * n;
+ if (t > r - o - 2)
+ throw new Error("message too long");
+ var p = l.alloc(r - t - o - 2), O = r - n - 1, P = m(n), F = w(l.concat([i, p, l.alloc(1, 1), a], O), b(P, O)), z = w(P, b(F, n));
+ return new f(l.concat([l.alloc(1), z, F], r));
+ }
+ function s(c, a, r) {
+ var t = a.length, i = c.modulus.byteLength();
+ if (t > i - 11)
+ throw new Error("message too long");
+ var n;
+ return r ? n = l.alloc(i - t - 3, 255) : n = v(i - t - 3), new f(l.concat([l.from([0, r ? 1 : 2]), n, l.alloc(1), a], i));
+ }
+ function v(c) {
+ for (var a = l.allocUnsafe(c), r = 0, t = m(c * 2), i = 0, n; r < c; )
+ i === t.length && (t = m(c * 2), i = 0), n = t[i++], n && (a[r++] = n);
+ return a;
+ }
+ }, { "./mgf": 469, "./withPublic": 473, "./xor": 474, "bn.js": 470, "browserify-rsa": 206, "create-hash": 331, "parse-asn1": 459, randombytes: 475, "safe-buffer": 494 }], 473: [function(e, x, _) {
+ var u = e("bn.js"), m = e("safe-buffer").Buffer;
+ function g(b, w) {
+ return m.from(b.toRed(u.mont(w.modulus)).redPow(new u(w.publicExponent)).fromRed().toArray());
+ }
+ x.exports = g;
+ }, { "bn.js": 470, "safe-buffer": 494 }], 474: [function(e, x, _) {
+ x.exports = function(m, g) {
+ for (var b = m.length, w = -1; ++w < b; )
+ m[w] ^= g[w];
+ return m;
+ };
+ }, {}], 475: [function(e, x, _) {
+ (function(u, m) {
+ var g = 65536, b = 4294967295;
+ function w() {
+ throw new Error(`Secure random number generation is not supported by this browser.
+Use Chrome, Firefox or Internet Explorer 11`);
+ }
+ var f = e("safe-buffer").Buffer, y = m.crypto || m.msCrypto;
+ y && y.getRandomValues ? x.exports = h : x.exports = w;
+ function h(l, d) {
+ if (l > b)
+ throw new RangeError("requested too many random bytes");
+ var s = f.allocUnsafe(l);
+ if (l > 0)
+ if (l > g)
+ for (var v = 0; v < l; v += g)
+ y.getRandomValues(s.slice(v, v + g));
+ else
+ y.getRandomValues(s);
+ return typeof d == "function" ? u.nextTick(function() {
+ d(null, s);
+ }) : s;
+ }
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { _process: 467, "safe-buffer": 494 }], 476: [function(e, x, _) {
+ (function(u, m) {
+ function g() {
+ throw new Error(`secure random number generation not supported by this browser
+use chrome, FireFox or Internet Explorer 11`);
+ }
+ var b = e("safe-buffer"), w = e("randombytes"), f = b.Buffer, y = b.kMaxLength, h = m.crypto || m.msCrypto, l = Math.pow(2, 32) - 1;
+ function d(r, t) {
+ if (typeof r != "number" || r !== r)
+ throw new TypeError("offset must be a number");
+ if (r > l || r < 0)
+ throw new TypeError("offset must be a uint32");
+ if (r > y || r > t)
+ throw new RangeError("offset out of range");
+ }
+ function s(r, t, i) {
+ if (typeof r != "number" || r !== r)
+ throw new TypeError("size must be a number");
+ if (r > l || r < 0)
+ throw new TypeError("size must be a uint32");
+ if (r + t > i || r > y)
+ throw new RangeError("buffer too small");
+ }
+ h && h.getRandomValues || !u.browser ? (_.randomFill = v, _.randomFillSync = a) : (_.randomFill = g, _.randomFillSync = g);
+ function v(r, t, i, n) {
+ if (!f.isBuffer(r) && !(r instanceof m.Uint8Array))
+ throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
+ if (typeof t == "function")
+ n = t, t = 0, i = r.length;
+ else if (typeof i == "function")
+ n = i, i = r.length - t;
+ else if (typeof n != "function")
+ throw new TypeError('"cb" argument must be a function');
+ return d(t, r.length), s(i, t, r.length), c(r, t, i, n);
+ }
+ function c(r, t, i, n) {
+ if (u.browser) {
+ var o = r.buffer, p = new Uint8Array(o, t, i);
+ if (h.getRandomValues(p), n) {
+ u.nextTick(function() {
+ n(null, r);
+ });
+ return;
+ }
+ return r;
+ }
+ if (n) {
+ w(i, function(P, F) {
+ if (P)
+ return n(P);
+ F.copy(r, t), n(null, r);
+ });
+ return;
+ }
+ var O = w(i);
+ return O.copy(r, t), r;
+ }
+ function a(r, t, i) {
+ if (typeof t == "undefined" && (t = 0), !f.isBuffer(r) && !(r instanceof m.Uint8Array))
+ throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
+ return d(t, r.length), i === void 0 && (i = r.length - t), s(i, t, r.length), c(r, t, i);
+ }
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { _process: 467, randombytes: 475, "safe-buffer": 494 }], 477: [function(e, x, _) {
+ function u(l) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(s) {
+ return typeof s;
+ } : u = function(s) {
+ return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
+ }, u(l);
+ }
+ function m(l, d) {
+ l.prototype = Object.create(d.prototype), l.prototype.constructor = l, l.__proto__ = d;
+ }
+ var g = {};
+ function b(l, d, s) {
+ s || (s = Error);
+ function v(a, r, t) {
+ return typeof d == "string" ? d : d(a, r, t);
+ }
+ var c = /* @__PURE__ */ function(a) {
+ m(r, a);
+ function r(t, i, n) {
+ return a.call(this, v(t, i, n)) || this;
+ }
+ return r;
+ }(s);
+ c.prototype.name = s.name, c.prototype.code = l, g[l] = c;
+ }
+ function w(l, d) {
+ if (Array.isArray(l)) {
+ var s = l.length;
+ return l = l.map(function(v) {
+ return String(v);
+ }), s > 2 ? "one of ".concat(d, " ").concat(l.slice(0, s - 1).join(", "), ", or ") + l[s - 1] : s === 2 ? "one of ".concat(d, " ").concat(l[0], " or ").concat(l[1]) : "of ".concat(d, " ").concat(l[0]);
+ } else
+ return "of ".concat(d, " ").concat(String(l));
+ }
+ function f(l, d, s) {
+ return l.substr(!s || s < 0 ? 0 : +s, d.length) === d;
+ }
+ function y(l, d, s) {
+ return (s === void 0 || s > l.length) && (s = l.length), l.substring(s - d.length, s) === d;
+ }
+ function h(l, d, s) {
+ return typeof s != "number" && (s = 0), s + d.length > l.length ? !1 : l.indexOf(d, s) !== -1;
+ }
+ b("ERR_INVALID_OPT_VALUE", function(l, d) {
+ return 'The value "' + d + '" is invalid for option "' + l + '"';
+ }, TypeError), b("ERR_INVALID_ARG_TYPE", function(l, d, s) {
+ var v;
+ typeof d == "string" && f(d, "not ") ? (v = "must not be", d = d.replace(/^not /, "")) : v = "must be";
+ var c;
+ if (y(l, " argument"))
+ c = "The ".concat(l, " ").concat(v, " ").concat(w(d, "type"));
+ else {
+ var a = h(l, ".") ? "property" : "argument";
+ c = 'The "'.concat(l, '" ').concat(a, " ").concat(v, " ").concat(w(d, "type"));
+ }
+ return c += ". Received type ".concat(u(s)), c;
+ }, TypeError), b("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), b("ERR_METHOD_NOT_IMPLEMENTED", function(l) {
+ return "The " + l + " method is not implemented";
+ }), b("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), b("ERR_STREAM_DESTROYED", function(l) {
+ return "Cannot call " + l + " after a stream was destroyed";
+ }), b("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), b("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), b("ERR_STREAM_WRITE_AFTER_END", "write after end"), b("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), b("ERR_UNKNOWN_ENCODING", function(l) {
+ return "Unknown encoding: " + l;
+ }, TypeError), b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), x.exports.codes = g;
+ }, {}], 478: [function(e, x, _) {
+ (function(u) {
+ var m = Object.keys || function(s) {
+ var v = [];
+ for (var c in s)
+ v.push(c);
+ return v;
+ };
+ x.exports = h;
+ var g = e("./_stream_readable"), b = e("./_stream_writable");
+ e("inherits")(h, g);
+ for (var w = m(b.prototype), f = 0; f < w.length; f++) {
+ var y = w[f];
+ h.prototype[y] || (h.prototype[y] = b.prototype[y]);
+ }
+ function h(s) {
+ if (!(this instanceof h))
+ return new h(s);
+ g.call(this, s), b.call(this, s), this.allowHalfOpen = !0, s && (s.readable === !1 && (this.readable = !1), s.writable === !1 && (this.writable = !1), s.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", l)));
+ }
+ Object.defineProperty(h.prototype, "writableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ }), Object.defineProperty(h.prototype, "writableBuffer", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+ }), Object.defineProperty(h.prototype, "writableLength", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.length;
+ }
+ });
+ function l() {
+ this._writableState.ended || u.nextTick(d, this);
+ }
+ function d(s) {
+ s.end();
+ }
+ Object.defineProperty(h.prototype, "destroyed", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
+ },
+ set: function(v) {
+ this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = v, this._writableState.destroyed = v);
+ }
+ });
+ }).call(this, e("_process"));
+ }, { "./_stream_readable": 480, "./_stream_writable": 482, _process: 467, inherits: 387 }], 479: [function(e, x, _) {
+ x.exports = m;
+ var u = e("./_stream_transform");
+ e("inherits")(m, u);
+ function m(g) {
+ if (!(this instanceof m))
+ return new m(g);
+ u.call(this, g);
+ }
+ m.prototype._transform = function(g, b, w) {
+ w(null, g);
+ };
+ }, { "./_stream_transform": 481, inherits: 387 }], 480: [function(e, x, _) {
+ (function(u, m) {
+ x.exports = R;
+ var g;
+ R.ReadableState = I, e("events").EventEmitter;
+ var b = function(se, Ce) {
+ return se.listeners(Ce).length;
+ }, w = e("./internal/streams/stream"), f = e("buffer").Buffer, y = m.Uint8Array || function() {
+ };
+ function h(ne) {
+ return f.from(ne);
+ }
+ function l(ne) {
+ return f.isBuffer(ne) || ne instanceof y;
+ }
+ var d = e("util"), s;
+ d && d.debuglog ? s = d.debuglog("stream") : s = function() {
+ };
+ var v = e("./internal/streams/buffer_list"), c = e("./internal/streams/destroy"), a = e("./internal/streams/state"), r = a.getHighWaterMark, t = e("../errors").codes, i = t.ERR_INVALID_ARG_TYPE, n = t.ERR_STREAM_PUSH_AFTER_EOF, o = t.ERR_METHOD_NOT_IMPLEMENTED, p = t.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, O, P, F;
+ e("inherits")(R, w);
+ var z = c.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"];
+ function M(ne, se, Ce) {
+ if (typeof ne.prependListener == "function")
+ return ne.prependListener(se, Ce);
+ !ne._events || !ne._events[se] ? ne.on(se, Ce) : Array.isArray(ne._events[se]) ? ne._events[se].unshift(Ce) : ne._events[se] = [Ce, ne._events[se]];
+ }
+ function I(ne, se, Ce) {
+ g = g || e("./_stream_duplex"), ne = ne || {}, typeof Ce != "boolean" && (Ce = se instanceof g), this.objectMode = !!ne.objectMode, Ce && (this.objectMode = this.objectMode || !!ne.readableObjectMode), this.highWaterMark = r(this, ne, "readableHighWaterMark", Ce), this.buffer = new v(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = ne.emitClose !== !1, this.autoDestroy = !!ne.autoDestroy, this.destroyed = !1, this.defaultEncoding = ne.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, ne.encoding && (O || (O = e("string_decoder/").StringDecoder), this.decoder = new O(ne.encoding), this.encoding = ne.encoding);
+ }
+ function R(ne) {
+ if (g = g || e("./_stream_duplex"), !(this instanceof R))
+ return new R(ne);
+ var se = this instanceof g;
+ this._readableState = new I(ne, this, se), this.readable = !0, ne && (typeof ne.read == "function" && (this._read = ne.read), typeof ne.destroy == "function" && (this._destroy = ne.destroy)), w.call(this);
+ }
+ Object.defineProperty(R.prototype, "destroyed", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState === void 0 ? !1 : this._readableState.destroyed;
+ },
+ set: function(se) {
+ this._readableState && (this._readableState.destroyed = se);
+ }
+ }), R.prototype.destroy = c.destroy, R.prototype._undestroy = c.undestroy, R.prototype._destroy = function(ne, se) {
+ se(ne);
+ }, R.prototype.push = function(ne, se) {
+ var Ce = this._readableState, q;
+ return Ce.objectMode ? q = !0 : typeof ne == "string" && (se = se || Ce.defaultEncoding, se !== Ce.encoding && (ne = f.from(ne, se), se = ""), q = !0), C(this, ne, se, !1, q);
+ }, R.prototype.unshift = function(ne) {
+ return C(this, ne, null, !0, !1);
+ };
+ function C(ne, se, Ce, q, G) {
+ s("readableAddChunk", se);
+ var Y = ne._readableState;
+ if (se === null)
+ Y.reading = !1, U(ne, Y);
+ else {
+ var fe;
+ if (G || (fe = A(Y, se)), fe)
+ z(ne, fe);
+ else if (Y.objectMode || se && se.length > 0)
+ if (typeof se != "string" && !Y.objectMode && Object.getPrototypeOf(se) !== f.prototype && (se = h(se)), q)
+ Y.endEmitted ? z(ne, new p()) : E(ne, Y, se, !0);
+ else if (Y.ended)
+ z(ne, new n());
+ else {
+ if (Y.destroyed)
+ return !1;
+ Y.reading = !1, Y.decoder && !Ce ? (se = Y.decoder.write(se), Y.objectMode || se.length !== 0 ? E(ne, Y, se, !1) : j(ne, Y)) : E(ne, Y, se, !1);
+ }
+ else
+ q || (Y.reading = !1, j(ne, Y));
+ }
+ return !Y.ended && (Y.length < Y.highWaterMark || Y.length === 0);
+ }
+ function E(ne, se, Ce, q) {
+ se.flowing && se.length === 0 && !se.sync ? (se.awaitDrain = 0, ne.emit("data", Ce)) : (se.length += se.objectMode ? 1 : Ce.length, q ? se.buffer.unshift(Ce) : se.buffer.push(Ce), se.needReadable && D(ne)), j(ne, se);
+ }
+ function A(ne, se) {
+ var Ce;
+ return !l(se) && typeof se != "string" && se !== void 0 && !ne.objectMode && (Ce = new i("chunk", ["string", "Buffer", "Uint8Array"], se)), Ce;
+ }
+ R.prototype.isPaused = function() {
+ return this._readableState.flowing === !1;
+ }, R.prototype.setEncoding = function(ne) {
+ O || (O = e("string_decoder/").StringDecoder);
+ var se = new O(ne);
+ this._readableState.decoder = se, this._readableState.encoding = this._readableState.decoder.encoding;
+ for (var Ce = this._readableState.buffer.head, q = ""; Ce !== null; )
+ q += se.write(Ce.data), Ce = Ce.next;
+ return this._readableState.buffer.clear(), q !== "" && this._readableState.buffer.push(q), this._readableState.length = q.length, this;
+ };
+ var L = 1073741824;
+ function $(ne) {
+ return ne >= L ? ne = L : (ne--, ne |= ne >>> 1, ne |= ne >>> 2, ne |= ne >>> 4, ne |= ne >>> 8, ne |= ne >>> 16, ne++), ne;
+ }
+ function W(ne, se) {
+ return ne <= 0 || se.length === 0 && se.ended ? 0 : se.objectMode ? 1 : ne !== ne ? se.flowing && se.length ? se.buffer.head.data.length : se.length : (ne > se.highWaterMark && (se.highWaterMark = $(ne)), ne <= se.length ? ne : se.ended ? se.length : (se.needReadable = !0, 0));
+ }
+ R.prototype.read = function(ne) {
+ s("read", ne), ne = parseInt(ne, 10);
+ var se = this._readableState, Ce = ne;
+ if (ne !== 0 && (se.emittedReadable = !1), ne === 0 && se.needReadable && ((se.highWaterMark !== 0 ? se.length >= se.highWaterMark : se.length > 0) || se.ended))
+ return s("read: emitReadable", se.length, se.ended), se.length === 0 && se.ended ? Q(this) : D(this), null;
+ if (ne = W(ne, se), ne === 0 && se.ended)
+ return se.length === 0 && Q(this), null;
+ var q = se.needReadable;
+ s("need readable", q), (se.length === 0 || se.length - ne < se.highWaterMark) && (q = !0, s("length less than watermark", q)), se.ended || se.reading ? (q = !1, s("reading or ended", q)) : q && (s("do read"), se.reading = !0, se.sync = !0, se.length === 0 && (se.needReadable = !0), this._read(se.highWaterMark), se.sync = !1, se.reading || (ne = W(Ce, se)));
+ var G;
+ return ne > 0 ? G = J(ne, se) : G = null, G === null ? (se.needReadable = se.length <= se.highWaterMark, ne = 0) : (se.length -= ne, se.awaitDrain = 0), se.length === 0 && (se.ended || (se.needReadable = !0), Ce !== ne && se.ended && Q(this)), G !== null && this.emit("data", G), G;
+ };
+ function U(ne, se) {
+ if (s("onEofChunk"), !se.ended) {
+ if (se.decoder) {
+ var Ce = se.decoder.end();
+ Ce && Ce.length && (se.buffer.push(Ce), se.length += se.objectMode ? 1 : Ce.length);
+ }
+ se.ended = !0, se.sync ? D(ne) : (se.needReadable = !1, se.emittedReadable || (se.emittedReadable = !0, B(ne)));
+ }
+ }
+ function D(ne) {
+ var se = ne._readableState;
+ s("emitReadable", se.needReadable, se.emittedReadable), se.needReadable = !1, se.emittedReadable || (s("emitReadable", se.flowing), se.emittedReadable = !0, u.nextTick(B, ne));
+ }
+ function B(ne) {
+ var se = ne._readableState;
+ s("emitReadable_", se.destroyed, se.length, se.ended), !se.destroyed && (se.length || se.ended) && (ne.emit("readable"), se.emittedReadable = !1), se.needReadable = !se.flowing && !se.ended && se.length <= se.highWaterMark, oe(ne);
+ }
+ function j(ne, se) {
+ se.readingMore || (se.readingMore = !0, u.nextTick(V, ne, se));
+ }
+ function V(ne, se) {
+ for (; !se.reading && !se.ended && (se.length < se.highWaterMark || se.flowing && se.length === 0); ) {
+ var Ce = se.length;
+ if (s("maybeReadMore read 0"), ne.read(0), Ce === se.length)
+ break;
+ }
+ se.readingMore = !1;
+ }
+ R.prototype._read = function(ne) {
+ z(this, new o("_read()"));
+ }, R.prototype.pipe = function(ne, se) {
+ var Ce = this, q = this._readableState;
+ switch (q.pipesCount) {
+ case 0:
+ q.pipes = ne;
+ break;
+ case 1:
+ q.pipes = [q.pipes, ne];
+ break;
+ default:
+ q.pipes.push(ne);
+ break;
+ }
+ q.pipesCount += 1, s("pipe count=%d opts=%j", q.pipesCount, se);
+ var G = (!se || se.end !== !1) && ne !== u.stdout && ne !== u.stderr, Y = G ? we : Ve;
+ q.endEmitted ? u.nextTick(Y) : Ce.once("end", Y), ne.on("unpipe", fe);
+ function fe(Qe, tt) {
+ s("onunpipe"), Qe === Ce && tt && tt.hasUnpiped === !1 && (tt.hasUnpiped = !0, Ye());
+ }
+ function we() {
+ s("onend"), ne.end();
+ }
+ var _e = re(Ce);
+ ne.on("drain", _e);
+ var je = !1;
+ function Ye() {
+ s("cleanup"), ne.removeListener("close", ot), ne.removeListener("finish", Ue), ne.removeListener("drain", _e), ne.removeListener("error", ut), ne.removeListener("unpipe", fe), Ce.removeListener("end", we), Ce.removeListener("end", Ve), Ce.removeListener("data", nt), je = !0, q.awaitDrain && (!ne._writableState || ne._writableState.needDrain) && _e();
+ }
+ Ce.on("data", nt);
+ function nt(Qe) {
+ s("ondata");
+ var tt = ne.write(Qe);
+ s("dest.write", tt), tt === !1 && ((q.pipesCount === 1 && q.pipes === ne || q.pipesCount > 1 && ke(q.pipes, ne) !== -1) && !je && (s("false write response, pause", q.awaitDrain), q.awaitDrain++), Ce.pause());
+ }
+ function ut(Qe) {
+ s("onerror", Qe), Ve(), ne.removeListener("error", ut), b(ne, "error") === 0 && z(ne, Qe);
+ }
+ M(ne, "error", ut);
+ function ot() {
+ ne.removeListener("finish", Ue), Ve();
+ }
+ ne.once("close", ot);
+ function Ue() {
+ s("onfinish"), ne.removeListener("close", ot), Ve();
+ }
+ ne.once("finish", Ue);
+ function Ve() {
+ s("unpipe"), Ce.unpipe(ne);
+ }
+ return ne.emit("pipe", Ce), q.flowing || (s("pipe resume"), Ce.resume()), ne;
+ };
+ function re(ne) {
+ return function() {
+ var Ce = ne._readableState;
+ s("pipeOnDrain", Ce.awaitDrain), Ce.awaitDrain && Ce.awaitDrain--, Ce.awaitDrain === 0 && b(ne, "data") && (Ce.flowing = !0, oe(ne));
+ };
+ }
+ R.prototype.unpipe = function(ne) {
+ var se = this._readableState, Ce = {
+ hasUnpiped: !1
+ };
+ if (se.pipesCount === 0)
+ return this;
+ if (se.pipesCount === 1)
+ return ne && ne !== se.pipes ? this : (ne || (ne = se.pipes), se.pipes = null, se.pipesCount = 0, se.flowing = !1, ne && ne.emit("unpipe", this, Ce), this);
+ if (!ne) {
+ var q = se.pipes, G = se.pipesCount;
+ se.pipes = null, se.pipesCount = 0, se.flowing = !1;
+ for (var Y = 0; Y < G; Y++)
+ q[Y].emit("unpipe", this, {
+ hasUnpiped: !1
+ });
+ return this;
+ }
+ var fe = ke(se.pipes, ne);
+ return fe === -1 ? this : (se.pipes.splice(fe, 1), se.pipesCount -= 1, se.pipesCount === 1 && (se.pipes = se.pipes[0]), ne.emit("unpipe", this, Ce), this);
+ }, R.prototype.on = function(ne, se) {
+ var Ce = w.prototype.on.call(this, ne, se), q = this._readableState;
+ return ne === "data" ? (q.readableListening = this.listenerCount("readable") > 0, q.flowing !== !1 && this.resume()) : ne === "readable" && !q.endEmitted && !q.readableListening && (q.readableListening = q.needReadable = !0, q.flowing = !1, q.emittedReadable = !1, s("on readable", q.length, q.reading), q.length ? D(this) : q.reading || u.nextTick(ce, this)), Ce;
+ }, R.prototype.addListener = R.prototype.on, R.prototype.removeListener = function(ne, se) {
+ var Ce = w.prototype.removeListener.call(this, ne, se);
+ return ne === "readable" && u.nextTick(ee, this), Ce;
+ }, R.prototype.removeAllListeners = function(ne) {
+ var se = w.prototype.removeAllListeners.apply(this, arguments);
+ return (ne === "readable" || ne === void 0) && u.nextTick(ee, this), se;
+ };
+ function ee(ne) {
+ var se = ne._readableState;
+ se.readableListening = ne.listenerCount("readable") > 0, se.resumeScheduled && !se.paused ? se.flowing = !0 : ne.listenerCount("data") > 0 && ne.resume();
+ }
+ function ce(ne) {
+ s("readable nexttick read 0"), ne.read(0);
+ }
+ R.prototype.resume = function() {
+ var ne = this._readableState;
+ return ne.flowing || (s("resume"), ne.flowing = !ne.readableListening, ve(this, ne)), ne.paused = !1, this;
+ };
+ function ve(ne, se) {
+ se.resumeScheduled || (se.resumeScheduled = !0, u.nextTick(ge, ne, se));
+ }
+ function ge(ne, se) {
+ s("resume", se.reading), se.reading || ne.read(0), se.resumeScheduled = !1, ne.emit("resume"), oe(ne), se.flowing && !se.reading && ne.read(0);
+ }
+ R.prototype.pause = function() {
+ return s("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (s("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
+ };
+ function oe(ne) {
+ var se = ne._readableState;
+ for (s("flow", se.flowing); se.flowing && ne.read() !== null; )
+ ;
+ }
+ R.prototype.wrap = function(ne) {
+ var se = this, Ce = this._readableState, q = !1;
+ ne.on("end", function() {
+ if (s("wrapped end"), Ce.decoder && !Ce.ended) {
+ var fe = Ce.decoder.end();
+ fe && fe.length && se.push(fe);
+ }
+ se.push(null);
+ }), ne.on("data", function(fe) {
+ if (s("wrapped data"), Ce.decoder && (fe = Ce.decoder.write(fe)), !(Ce.objectMode && fe == null) && !(!Ce.objectMode && (!fe || !fe.length))) {
+ var we = se.push(fe);
+ we || (q = !0, ne.pause());
+ }
+ });
+ for (var G in ne)
+ this[G] === void 0 && typeof ne[G] == "function" && (this[G] = function(we) {
+ return function() {
+ return ne[we].apply(ne, arguments);
+ };
+ }(G));
+ for (var Y = 0; Y < N.length; Y++)
+ ne.on(N[Y], this.emit.bind(this, N[Y]));
+ return this._read = function(fe) {
+ s("wrapped _read", fe), q && (q = !1, ne.resume());
+ }, this;
+ }, typeof Symbol == "function" && (R.prototype[Symbol.asyncIterator] = function() {
+ return P === void 0 && (P = e("./internal/streams/async_iterator")), P(this);
+ }), Object.defineProperty(R.prototype, "readableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState.highWaterMark;
+ }
+ }), Object.defineProperty(R.prototype, "readableBuffer", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState && this._readableState.buffer;
+ }
+ }), Object.defineProperty(R.prototype, "readableFlowing", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState.flowing;
+ },
+ set: function(se) {
+ this._readableState && (this._readableState.flowing = se);
+ }
+ }), R._fromList = J, Object.defineProperty(R.prototype, "readableLength", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState.length;
+ }
+ });
+ function J(ne, se) {
+ if (se.length === 0)
+ return null;
+ var Ce;
+ return se.objectMode ? Ce = se.buffer.shift() : !ne || ne >= se.length ? (se.decoder ? Ce = se.buffer.join("") : se.buffer.length === 1 ? Ce = se.buffer.first() : Ce = se.buffer.concat(se.length), se.buffer.clear()) : Ce = se.buffer.consume(ne, se.decoder), Ce;
+ }
+ function Q(ne) {
+ var se = ne._readableState;
+ s("endReadable", se.endEmitted), se.endEmitted || (se.ended = !0, u.nextTick(he, se, ne));
+ }
+ function he(ne, se) {
+ if (s("endReadableNT", ne.endEmitted, ne.length), !ne.endEmitted && ne.length === 0 && (ne.endEmitted = !0, se.readable = !1, se.emit("end"), ne.autoDestroy)) {
+ var Ce = se._writableState;
+ (!Ce || Ce.autoDestroy && Ce.finished) && se.destroy();
+ }
+ }
+ typeof Symbol == "function" && (R.from = function(ne, se) {
+ return F === void 0 && (F = e("./internal/streams/from")), F(R, ne, se);
+ });
+ function ke(ne, se) {
+ for (var Ce = 0, q = ne.length; Ce < q; Ce++)
+ if (ne[Ce] === se)
+ return Ce;
+ return -1;
+ }
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { "../errors": 477, "./_stream_duplex": 478, "./internal/streams/async_iterator": 483, "./internal/streams/buffer_list": 484, "./internal/streams/destroy": 485, "./internal/streams/from": 487, "./internal/streams/state": 489, "./internal/streams/stream": 490, _process: 467, buffer: 216, events: 367, inherits: 387, "string_decoder/": 520, util: 185 }], 481: [function(e, x, _) {
+ x.exports = h;
+ var u = e("../errors").codes, m = u.ERR_METHOD_NOT_IMPLEMENTED, g = u.ERR_MULTIPLE_CALLBACK, b = u.ERR_TRANSFORM_ALREADY_TRANSFORMING, w = u.ERR_TRANSFORM_WITH_LENGTH_0, f = e("./_stream_duplex");
+ e("inherits")(h, f);
+ function y(s, v) {
+ var c = this._transformState;
+ c.transforming = !1;
+ var a = c.writecb;
+ if (a === null)
+ return this.emit("error", new g());
+ c.writechunk = null, c.writecb = null, v != null && this.push(v), a(s);
+ var r = this._readableState;
+ r.reading = !1, (r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark);
+ }
+ function h(s) {
+ if (!(this instanceof h))
+ return new h(s);
+ f.call(this, s), this._transformState = {
+ afterTransform: y.bind(this),
+ needTransform: !1,
+ transforming: !1,
+ writecb: null,
+ writechunk: null,
+ writeencoding: null
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, s && (typeof s.transform == "function" && (this._transform = s.transform), typeof s.flush == "function" && (this._flush = s.flush)), this.on("prefinish", l);
+ }
+ function l() {
+ var s = this;
+ typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(v, c) {
+ d(s, v, c);
+ }) : d(this, null, null);
+ }
+ h.prototype.push = function(s, v) {
+ return this._transformState.needTransform = !1, f.prototype.push.call(this, s, v);
+ }, h.prototype._transform = function(s, v, c) {
+ c(new m("_transform()"));
+ }, h.prototype._write = function(s, v, c) {
+ var a = this._transformState;
+ if (a.writecb = c, a.writechunk = s, a.writeencoding = v, !a.transforming) {
+ var r = this._readableState;
+ (a.needTransform || r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark);
+ }
+ }, h.prototype._read = function(s) {
+ var v = this._transformState;
+ v.writechunk !== null && !v.transforming ? (v.transforming = !0, this._transform(v.writechunk, v.writeencoding, v.afterTransform)) : v.needTransform = !0;
+ }, h.prototype._destroy = function(s, v) {
+ f.prototype._destroy.call(this, s, function(c) {
+ v(c);
+ });
+ };
+ function d(s, v, c) {
+ if (v)
+ return s.emit("error", v);
+ if (c != null && s.push(c), s._writableState.length)
+ throw new w();
+ if (s._transformState.transforming)
+ throw new b();
+ return s.push(null);
+ }
+ }, { "../errors": 477, "./_stream_duplex": 478, inherits: 387 }], 482: [function(e, x, _) {
+ (function(u, m) {
+ x.exports = I;
+ function g(oe) {
+ var J = this;
+ this.next = null, this.entry = null, this.finish = function() {
+ ge(J, oe);
+ };
+ }
+ var b;
+ I.WritableState = N;
+ var w = {
+ deprecate: e("util-deprecate")
+ }, f = e("./internal/streams/stream"), y = e("buffer").Buffer, h = m.Uint8Array || function() {
+ };
+ function l(oe) {
+ return y.from(oe);
+ }
+ function d(oe) {
+ return y.isBuffer(oe) || oe instanceof h;
+ }
+ var s = e("./internal/streams/destroy"), v = e("./internal/streams/state"), c = v.getHighWaterMark, a = e("../errors").codes, r = a.ERR_INVALID_ARG_TYPE, t = a.ERR_METHOD_NOT_IMPLEMENTED, i = a.ERR_MULTIPLE_CALLBACK, n = a.ERR_STREAM_CANNOT_PIPE, o = a.ERR_STREAM_DESTROYED, p = a.ERR_STREAM_NULL_VALUES, O = a.ERR_STREAM_WRITE_AFTER_END, P = a.ERR_UNKNOWN_ENCODING, F = s.errorOrDestroy;
+ e("inherits")(I, f);
+ function z() {
+ }
+ function N(oe, J, Q) {
+ b = b || e("./_stream_duplex"), oe = oe || {}, typeof Q != "boolean" && (Q = J instanceof b), this.objectMode = !!oe.objectMode, Q && (this.objectMode = this.objectMode || !!oe.writableObjectMode), this.highWaterMark = c(this, oe, "writableHighWaterMark", Q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
+ var he = oe.decodeStrings === !1;
+ this.decodeStrings = !he, this.defaultEncoding = oe.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ke) {
+ U(J, ke);
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = oe.emitClose !== !1, this.autoDestroy = !!oe.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new g(this);
+ }
+ N.prototype.getBuffer = function() {
+ for (var J = this.bufferedRequest, Q = []; J; )
+ Q.push(J), J = J.next;
+ return Q;
+ }, function() {
+ try {
+ Object.defineProperty(N.prototype, "buffer", {
+ get: w.deprecate(function() {
+ return this.getBuffer();
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
+ });
+ } catch (oe) {
+ }
+ }();
+ var M;
+ typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (M = Function.prototype[Symbol.hasInstance], Object.defineProperty(I, Symbol.hasInstance, {
+ value: function(J) {
+ return M.call(this, J) ? !0 : this !== I ? !1 : J && J._writableState instanceof N;
+ }
+ })) : M = function(J) {
+ return J instanceof this;
+ };
+ function I(oe) {
+ b = b || e("./_stream_duplex");
+ var J = this instanceof b;
+ if (!J && !M.call(I, this))
+ return new I(oe);
+ this._writableState = new N(oe, this, J), this.writable = !0, oe && (typeof oe.write == "function" && (this._write = oe.write), typeof oe.writev == "function" && (this._writev = oe.writev), typeof oe.destroy == "function" && (this._destroy = oe.destroy), typeof oe.final == "function" && (this._final = oe.final)), f.call(this);
+ }
+ I.prototype.pipe = function() {
+ F(this, new n());
+ };
+ function R(oe, J) {
+ var Q = new O();
+ F(oe, Q), u.nextTick(J, Q);
+ }
+ function C(oe, J, Q, he) {
+ var ke;
+ return Q === null ? ke = new p() : typeof Q != "string" && !J.objectMode && (ke = new r("chunk", ["string", "Buffer"], Q)), ke ? (F(oe, ke), u.nextTick(he, ke), !1) : !0;
+ }
+ I.prototype.write = function(oe, J, Q) {
+ var he = this._writableState, ke = !1, ne = !he.objectMode && d(oe);
+ return ne && !y.isBuffer(oe) && (oe = l(oe)), typeof J == "function" && (Q = J, J = null), ne ? J = "buffer" : J || (J = he.defaultEncoding), typeof Q != "function" && (Q = z), he.ending ? R(this, Q) : (ne || C(this, he, oe, Q)) && (he.pendingcb++, ke = A(this, he, ne, oe, J, Q)), ke;
+ }, I.prototype.cork = function() {
+ this._writableState.corked++;
+ }, I.prototype.uncork = function() {
+ var oe = this._writableState;
+ oe.corked && (oe.corked--, !oe.writing && !oe.corked && !oe.bufferProcessing && oe.bufferedRequest && j(this, oe));
+ }, I.prototype.setDefaultEncoding = function(J) {
+ if (typeof J == "string" && (J = J.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((J + "").toLowerCase()) > -1))
+ throw new P(J);
+ return this._writableState.defaultEncoding = J, this;
+ }, Object.defineProperty(I.prototype, "writableBuffer", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+ });
+ function E(oe, J, Q) {
+ return !oe.objectMode && oe.decodeStrings !== !1 && typeof J == "string" && (J = y.from(J, Q)), J;
+ }
+ Object.defineProperty(I.prototype, "writableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ });
+ function A(oe, J, Q, he, ke, ne) {
+ if (!Q) {
+ var se = E(J, he, ke);
+ he !== se && (Q = !0, ke = "buffer", he = se);
+ }
+ var Ce = J.objectMode ? 1 : he.length;
+ J.length += Ce;
+ var q = J.length < J.highWaterMark;
+ if (q || (J.needDrain = !0), J.writing || J.corked) {
+ var G = J.lastBufferedRequest;
+ J.lastBufferedRequest = {
+ chunk: he,
+ encoding: ke,
+ isBuf: Q,
+ callback: ne,
+ next: null
+ }, G ? G.next = J.lastBufferedRequest : J.bufferedRequest = J.lastBufferedRequest, J.bufferedRequestCount += 1;
+ } else
+ L(oe, J, !1, Ce, he, ke, ne);
+ return q;
+ }
+ function L(oe, J, Q, he, ke, ne, se) {
+ J.writelen = he, J.writecb = se, J.writing = !0, J.sync = !0, J.destroyed ? J.onwrite(new o("write")) : Q ? oe._writev(ke, J.onwrite) : oe._write(ke, ne, J.onwrite), J.sync = !1;
+ }
+ function $(oe, J, Q, he, ke) {
+ --J.pendingcb, Q ? (u.nextTick(ke, he), u.nextTick(ce, oe, J), oe._writableState.errorEmitted = !0, F(oe, he)) : (ke(he), oe._writableState.errorEmitted = !0, F(oe, he), ce(oe, J));
+ }
+ function W(oe) {
+ oe.writing = !1, oe.writecb = null, oe.length -= oe.writelen, oe.writelen = 0;
+ }
+ function U(oe, J) {
+ var Q = oe._writableState, he = Q.sync, ke = Q.writecb;
+ if (typeof ke != "function")
+ throw new i();
+ if (W(Q), J)
+ $(oe, Q, he, J, ke);
+ else {
+ var ne = V(Q) || oe.destroyed;
+ !ne && !Q.corked && !Q.bufferProcessing && Q.bufferedRequest && j(oe, Q), he ? u.nextTick(D, oe, Q, ne, ke) : D(oe, Q, ne, ke);
+ }
+ }
+ function D(oe, J, Q, he) {
+ Q || B(oe, J), J.pendingcb--, he(), ce(oe, J);
+ }
+ function B(oe, J) {
+ J.length === 0 && J.needDrain && (J.needDrain = !1, oe.emit("drain"));
+ }
+ function j(oe, J) {
+ J.bufferProcessing = !0;
+ var Q = J.bufferedRequest;
+ if (oe._writev && Q && Q.next) {
+ var he = J.bufferedRequestCount, ke = new Array(he), ne = J.corkedRequestsFree;
+ ne.entry = Q;
+ for (var se = 0, Ce = !0; Q; )
+ ke[se] = Q, Q.isBuf || (Ce = !1), Q = Q.next, se += 1;
+ ke.allBuffers = Ce, L(oe, J, !0, J.length, ke, "", ne.finish), J.pendingcb++, J.lastBufferedRequest = null, ne.next ? (J.corkedRequestsFree = ne.next, ne.next = null) : J.corkedRequestsFree = new g(J), J.bufferedRequestCount = 0;
+ } else {
+ for (; Q; ) {
+ var q = Q.chunk, G = Q.encoding, Y = Q.callback, fe = J.objectMode ? 1 : q.length;
+ if (L(oe, J, !1, fe, q, G, Y), Q = Q.next, J.bufferedRequestCount--, J.writing)
+ break;
+ }
+ Q === null && (J.lastBufferedRequest = null);
+ }
+ J.bufferedRequest = Q, J.bufferProcessing = !1;
+ }
+ I.prototype._write = function(oe, J, Q) {
+ Q(new t("_write()"));
+ }, I.prototype._writev = null, I.prototype.end = function(oe, J, Q) {
+ var he = this._writableState;
+ return typeof oe == "function" ? (Q = oe, oe = null, J = null) : typeof J == "function" && (Q = J, J = null), oe != null && this.write(oe, J), he.corked && (he.corked = 1, this.uncork()), he.ending || ve(this, he, Q), this;
+ }, Object.defineProperty(I.prototype, "writableLength", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.length;
+ }
+ });
+ function V(oe) {
+ return oe.ending && oe.length === 0 && oe.bufferedRequest === null && !oe.finished && !oe.writing;
+ }
+ function re(oe, J) {
+ oe._final(function(Q) {
+ J.pendingcb--, Q && F(oe, Q), J.prefinished = !0, oe.emit("prefinish"), ce(oe, J);
+ });
+ }
+ function ee(oe, J) {
+ !J.prefinished && !J.finalCalled && (typeof oe._final == "function" && !J.destroyed ? (J.pendingcb++, J.finalCalled = !0, u.nextTick(re, oe, J)) : (J.prefinished = !0, oe.emit("prefinish")));
+ }
+ function ce(oe, J) {
+ var Q = V(J);
+ if (Q && (ee(oe, J), J.pendingcb === 0 && (J.finished = !0, oe.emit("finish"), J.autoDestroy))) {
+ var he = oe._readableState;
+ (!he || he.autoDestroy && he.endEmitted) && oe.destroy();
+ }
+ return Q;
+ }
+ function ve(oe, J, Q) {
+ J.ending = !0, ce(oe, J), Q && (J.finished ? u.nextTick(Q) : oe.once("finish", Q)), J.ended = !0, oe.writable = !1;
+ }
+ function ge(oe, J, Q) {
+ var he = oe.entry;
+ for (oe.entry = null; he; ) {
+ var ke = he.callback;
+ J.pendingcb--, ke(Q), he = he.next;
+ }
+ J.corkedRequestsFree.next = oe;
+ }
+ Object.defineProperty(I.prototype, "destroyed", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState === void 0 ? !1 : this._writableState.destroyed;
+ },
+ set: function(J) {
+ this._writableState && (this._writableState.destroyed = J);
+ }
+ }), I.prototype.destroy = s.destroy, I.prototype._undestroy = s.undestroy, I.prototype._destroy = function(oe, J) {
+ J(oe);
+ };
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { "../errors": 477, "./_stream_duplex": 478, "./internal/streams/destroy": 485, "./internal/streams/state": 489, "./internal/streams/stream": 490, _process: 467, buffer: 216, inherits: 387, "util-deprecate": 522 }], 483: [function(e, x, _) {
+ (function(u) {
+ var m;
+ function g(o, p, O) {
+ return p in o ? Object.defineProperty(o, p, {
+ value: O,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : o[p] = O, o;
+ }
+ var b = e("./end-of-stream"), w = Symbol("lastResolve"), f = Symbol("lastReject"), y = Symbol("error"), h = Symbol("ended"), l = Symbol("lastPromise"), d = Symbol("handlePromise"), s = Symbol("stream");
+ function v(o, p) {
+ return {
+ value: o,
+ done: p
+ };
+ }
+ function c(o) {
+ var p = o[w];
+ if (p !== null) {
+ var O = o[s].read();
+ O !== null && (o[l] = null, o[w] = null, o[f] = null, p(v(O, !1)));
+ }
+ }
+ function a(o) {
+ u.nextTick(c, o);
+ }
+ function r(o, p) {
+ return function(O, P) {
+ o.then(function() {
+ if (p[h]) {
+ O(v(void 0, !0));
+ return;
+ }
+ p[d](O, P);
+ }, P);
+ };
+ }
+ var t = Object.getPrototypeOf(function() {
+ }), i = Object.setPrototypeOf((m = {
+ get stream() {
+ return this[s];
+ },
+ next: function() {
+ var p = this, O = this[y];
+ if (O !== null)
+ return Promise.reject(O);
+ if (this[h])
+ return Promise.resolve(v(void 0, !0));
+ if (this[s].destroyed)
+ return new Promise(function(N, M) {
+ u.nextTick(function() {
+ p[y] ? M(p[y]) : N(v(void 0, !0));
+ });
+ });
+ var P = this[l], F;
+ if (P)
+ F = new Promise(r(P, this));
+ else {
+ var z = this[s].read();
+ if (z !== null)
+ return Promise.resolve(v(z, !1));
+ F = new Promise(this[d]);
+ }
+ return this[l] = F, F;
+ }
+ }, g(m, Symbol.asyncIterator, function() {
+ return this;
+ }), g(m, "return", function() {
+ var p = this;
+ return new Promise(function(O, P) {
+ p[s].destroy(null, function(F) {
+ if (F) {
+ P(F);
+ return;
+ }
+ O(v(void 0, !0));
+ });
+ });
+ }), m), t), n = function(p) {
+ var O, P = Object.create(i, (O = {}, g(O, s, {
+ value: p,
+ writable: !0
+ }), g(O, w, {
+ value: null,
+ writable: !0
+ }), g(O, f, {
+ value: null,
+ writable: !0
+ }), g(O, y, {
+ value: null,
+ writable: !0
+ }), g(O, h, {
+ value: p._readableState.endEmitted,
+ writable: !0
+ }), g(O, d, {
+ value: function(z, N) {
+ var M = P[s].read();
+ M ? (P[l] = null, P[w] = null, P[f] = null, z(v(M, !1))) : (P[w] = z, P[f] = N);
+ },
+ writable: !0
+ }), O));
+ return P[l] = null, b(p, function(F) {
+ if (F && F.code !== "ERR_STREAM_PREMATURE_CLOSE") {
+ var z = P[f];
+ z !== null && (P[l] = null, P[w] = null, P[f] = null, z(F)), P[y] = F;
+ return;
+ }
+ var N = P[w];
+ N !== null && (P[l] = null, P[w] = null, P[f] = null, N(v(void 0, !0))), P[h] = !0;
+ }), p.on("readable", a.bind(null, P)), P;
+ };
+ x.exports = n;
+ }).call(this, e("_process"));
+ }, { "./end-of-stream": 486, _process: 467 }], 484: [function(e, x, _) {
+ function u(c, a) {
+ var r = Object.keys(c);
+ if (Object.getOwnPropertySymbols) {
+ var t = Object.getOwnPropertySymbols(c);
+ a && (t = t.filter(function(i) {
+ return Object.getOwnPropertyDescriptor(c, i).enumerable;
+ })), r.push.apply(r, t);
+ }
+ return r;
+ }
+ function m(c) {
+ for (var a = 1; a < arguments.length; a++) {
+ var r = arguments[a] != null ? arguments[a] : {};
+ a % 2 ? u(Object(r), !0).forEach(function(t) {
+ g(c, t, r[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(r)) : u(Object(r)).forEach(function(t) {
+ Object.defineProperty(c, t, Object.getOwnPropertyDescriptor(r, t));
+ });
+ }
+ return c;
+ }
+ function g(c, a, r) {
+ return a in c ? Object.defineProperty(c, a, {
+ value: r,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : c[a] = r, c;
+ }
+ function b(c, a) {
+ if (!(c instanceof a))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function w(c, a) {
+ for (var r = 0; r < a.length; r++) {
+ var t = a[r];
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(c, t.key, t);
+ }
+ }
+ function f(c, a, r) {
+ return a && w(c.prototype, a), r && w(c, r), c;
+ }
+ var y = e("buffer"), h = y.Buffer, l = e("util"), d = l.inspect, s = d && d.custom || "inspect";
+ function v(c, a, r) {
+ h.prototype.copy.call(c, a, r);
+ }
+ x.exports = /* @__PURE__ */ function() {
+ function c() {
+ b(this, c), this.head = null, this.tail = null, this.length = 0;
+ }
+ return f(c, [{
+ key: "push",
+ value: function(r) {
+ var t = {
+ data: r,
+ next: null
+ };
+ this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
+ }
+ }, {
+ key: "unshift",
+ value: function(r) {
+ var t = {
+ data: r,
+ next: this.head
+ };
+ this.length === 0 && (this.tail = t), this.head = t, ++this.length;
+ }
+ }, {
+ key: "shift",
+ value: function() {
+ if (this.length !== 0) {
+ var r = this.head.data;
+ return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r;
+ }
+ }
+ }, {
+ key: "clear",
+ value: function() {
+ this.head = this.tail = null, this.length = 0;
+ }
+ }, {
+ key: "join",
+ value: function(r) {
+ if (this.length === 0)
+ return "";
+ for (var t = this.head, i = "" + t.data; t = t.next; )
+ i += r + t.data;
+ return i;
+ }
+ }, {
+ key: "concat",
+ value: function(r) {
+ if (this.length === 0)
+ return h.alloc(0);
+ for (var t = h.allocUnsafe(r >>> 0), i = this.head, n = 0; i; )
+ v(i.data, t, n), n += i.data.length, i = i.next;
+ return t;
+ }
+ // Consumes a specified amount of bytes or characters from the buffered data.
+ }, {
+ key: "consume",
+ value: function(r, t) {
+ var i;
+ return r < this.head.data.length ? (i = this.head.data.slice(0, r), this.head.data = this.head.data.slice(r)) : r === this.head.data.length ? i = this.shift() : i = t ? this._getString(r) : this._getBuffer(r), i;
+ }
+ }, {
+ key: "first",
+ value: function() {
+ return this.head.data;
+ }
+ // Consumes a specified amount of characters from the buffered data.
+ }, {
+ key: "_getString",
+ value: function(r) {
+ var t = this.head, i = 1, n = t.data;
+ for (r -= n.length; t = t.next; ) {
+ var o = t.data, p = r > o.length ? o.length : r;
+ if (p === o.length ? n += o : n += o.slice(0, r), r -= p, r === 0) {
+ p === o.length ? (++i, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = o.slice(p));
+ break;
+ }
+ ++i;
+ }
+ return this.length -= i, n;
+ }
+ // Consumes a specified amount of bytes from the buffered data.
+ }, {
+ key: "_getBuffer",
+ value: function(r) {
+ var t = h.allocUnsafe(r), i = this.head, n = 1;
+ for (i.data.copy(t), r -= i.data.length; i = i.next; ) {
+ var o = i.data, p = r > o.length ? o.length : r;
+ if (o.copy(t, t.length - r, 0, p), r -= p, r === 0) {
+ p === o.length ? (++n, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = o.slice(p));
+ break;
+ }
+ ++n;
+ }
+ return this.length -= n, t;
+ }
+ // Make sure the linked list only shows the minimal necessary information.
+ }, {
+ key: s,
+ value: function(r, t) {
+ return d(this, m({}, t, {
+ // Only inspect one level.
+ depth: 0,
+ // It should not recurse.
+ customInspect: !1
+ }));
+ }
+ }]), c;
+ }();
+ }, { buffer: 216, util: 185 }], 485: [function(e, x, _) {
+ (function(u) {
+ function m(h, l) {
+ var d = this, s = this._readableState && this._readableState.destroyed, v = this._writableState && this._writableState.destroyed;
+ return s || v ? (l ? l(h) : h && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, u.nextTick(f, this, h)) : u.nextTick(f, this, h)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(h || null, function(c) {
+ !l && c ? d._writableState ? d._writableState.errorEmitted ? u.nextTick(b, d) : (d._writableState.errorEmitted = !0, u.nextTick(g, d, c)) : u.nextTick(g, d, c) : l ? (u.nextTick(b, d), l(c)) : u.nextTick(b, d);
+ }), this);
+ }
+ function g(h, l) {
+ f(h, l), b(h);
+ }
+ function b(h) {
+ h._writableState && !h._writableState.emitClose || h._readableState && !h._readableState.emitClose || h.emit("close");
+ }
+ function w() {
+ this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
+ }
+ function f(h, l) {
+ h.emit("error", l);
+ }
+ function y(h, l) {
+ var d = h._readableState, s = h._writableState;
+ d && d.autoDestroy || s && s.autoDestroy ? h.destroy(l) : h.emit("error", l);
+ }
+ x.exports = {
+ destroy: m,
+ undestroy: w,
+ errorOrDestroy: y
+ };
+ }).call(this, e("_process"));
+ }, { _process: 467 }], 486: [function(e, x, _) {
+ var u = e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;
+ function m(f) {
+ var y = !1;
+ return function() {
+ if (!y) {
+ y = !0;
+ for (var h = arguments.length, l = new Array(h), d = 0; d < h; d++)
+ l[d] = arguments[d];
+ f.apply(this, l);
+ }
+ };
+ }
+ function g() {
+ }
+ function b(f) {
+ return f.setHeader && typeof f.abort == "function";
+ }
+ function w(f, y, h) {
+ if (typeof y == "function")
+ return w(f, null, y);
+ y || (y = {}), h = m(h || g);
+ var l = y.readable || y.readable !== !1 && f.readable, d = y.writable || y.writable !== !1 && f.writable, s = function() {
+ f.writable || c();
+ }, v = f._writableState && f._writableState.finished, c = function() {
+ d = !1, v = !0, l || h.call(f);
+ }, a = f._readableState && f._readableState.endEmitted, r = function() {
+ l = !1, a = !0, d || h.call(f);
+ }, t = function(p) {
+ h.call(f, p);
+ }, i = function() {
+ var p;
+ if (l && !a)
+ return (!f._readableState || !f._readableState.ended) && (p = new u()), h.call(f, p);
+ if (d && !v)
+ return (!f._writableState || !f._writableState.ended) && (p = new u()), h.call(f, p);
+ }, n = function() {
+ f.req.on("finish", c);
+ };
+ return b(f) ? (f.on("complete", c), f.on("abort", i), f.req ? n() : f.on("request", n)) : d && !f._writableState && (f.on("end", s), f.on("close", s)), f.on("end", r), f.on("finish", c), y.error !== !1 && f.on("error", t), f.on("close", i), function() {
+ f.removeListener("complete", c), f.removeListener("abort", i), f.removeListener("request", n), f.req && f.req.removeListener("finish", c), f.removeListener("end", s), f.removeListener("close", s), f.removeListener("finish", c), f.removeListener("end", r), f.removeListener("error", t), f.removeListener("close", i);
+ };
+ }
+ x.exports = w;
+ }, { "../../../errors": 477 }], 487: [function(e, x, _) {
+ x.exports = function() {
+ throw new Error("Readable.from is not available in the browser");
+ };
+ }, {}], 488: [function(e, x, _) {
+ var u;
+ function m(c) {
+ var a = !1;
+ return function() {
+ a || (a = !0, c.apply(void 0, arguments));
+ };
+ }
+ var g = e("../../../errors").codes, b = g.ERR_MISSING_ARGS, w = g.ERR_STREAM_DESTROYED;
+ function f(c) {
+ if (c)
+ throw c;
+ }
+ function y(c) {
+ return c.setHeader && typeof c.abort == "function";
+ }
+ function h(c, a, r, t) {
+ t = m(t);
+ var i = !1;
+ c.on("close", function() {
+ i = !0;
+ }), u === void 0 && (u = e("./end-of-stream")), u(c, {
+ readable: a,
+ writable: r
+ }, function(o) {
+ if (o)
+ return t(o);
+ i = !0, t();
+ });
+ var n = !1;
+ return function(o) {
+ if (!i && !n) {
+ if (n = !0, y(c))
+ return c.abort();
+ if (typeof c.destroy == "function")
+ return c.destroy();
+ t(o || new w("pipe"));
+ }
+ };
+ }
+ function l(c) {
+ c();
+ }
+ function d(c, a) {
+ return c.pipe(a);
+ }
+ function s(c) {
+ return !c.length || typeof c[c.length - 1] != "function" ? f : c.pop();
+ }
+ function v() {
+ for (var c = arguments.length, a = new Array(c), r = 0; r < c; r++)
+ a[r] = arguments[r];
+ var t = s(a);
+ if (Array.isArray(a[0]) && (a = a[0]), a.length < 2)
+ throw new b("streams");
+ var i, n = a.map(function(o, p) {
+ var O = p < a.length - 1, P = p > 0;
+ return h(o, O, P, function(F) {
+ i || (i = F), F && n.forEach(l), !O && (n.forEach(l), t(i));
+ });
+ });
+ return a.reduce(d);
+ }
+ x.exports = v;
+ }, { "../../../errors": 477, "./end-of-stream": 486 }], 489: [function(e, x, _) {
+ var u = e("../../../errors").codes.ERR_INVALID_OPT_VALUE;
+ function m(b, w, f) {
+ return b.highWaterMark != null ? b.highWaterMark : w ? b[f] : null;
+ }
+ function g(b, w, f, y) {
+ var h = m(w, y, f);
+ if (h != null) {
+ if (!(isFinite(h) && Math.floor(h) === h) || h < 0) {
+ var l = y ? f : "highWaterMark";
+ throw new u(l, h);
+ }
+ return Math.floor(h);
+ }
+ return b.objectMode ? 16 : 16 * 1024;
+ }
+ x.exports = {
+ getHighWaterMark: g
+ };
+ }, { "../../../errors": 477 }], 490: [function(e, x, _) {
+ x.exports = e("events").EventEmitter;
+ }, { events: 367 }], 491: [function(e, x, _) {
+ _ = x.exports = e("./lib/_stream_readable.js"), _.Stream = _, _.Readable = _, _.Writable = e("./lib/_stream_writable.js"), _.Duplex = e("./lib/_stream_duplex.js"), _.Transform = e("./lib/_stream_transform.js"), _.PassThrough = e("./lib/_stream_passthrough.js"), _.finished = e("./lib/internal/streams/end-of-stream.js"), _.pipeline = e("./lib/internal/streams/pipeline.js");
+ }, { "./lib/_stream_duplex.js": 478, "./lib/_stream_passthrough.js": 479, "./lib/_stream_readable.js": 480, "./lib/_stream_transform.js": 481, "./lib/_stream_writable.js": 482, "./lib/internal/streams/end-of-stream.js": 486, "./lib/internal/streams/pipeline.js": 488 }], 492: [function(e, x, _) {
+ function u(g) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(w) {
+ return typeof w;
+ } : u = function(w) {
+ return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w;
+ }, u(g);
+ }
+ var m = function(g) {
+ var b = Object.prototype, w = b.hasOwnProperty, f, y = typeof Symbol == "function" ? Symbol : {}, h = y.iterator || "@@iterator", l = y.asyncIterator || "@@asyncIterator", d = y.toStringTag || "@@toStringTag";
+ function s(U, D, B) {
+ return Object.defineProperty(U, D, {
+ value: B,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }), U[D];
+ }
+ try {
+ s({}, "");
+ } catch (U) {
+ s = function(B, j, V) {
+ return B[j] = V;
+ };
+ }
+ function v(U, D, B, j) {
+ var V = D && D.prototype instanceof o ? D : o, re = Object.create(V.prototype), ee = new L(j || []);
+ return re._invoke = R(U, B, ee), re;
+ }
+ g.wrap = v;
+ function c(U, D, B) {
+ try {
+ return {
+ type: "normal",
+ arg: U.call(D, B)
+ };
+ } catch (j) {
+ return {
+ type: "throw",
+ arg: j
+ };
+ }
+ }
+ var a = "suspendedStart", r = "suspendedYield", t = "executing", i = "completed", n = {};
+ function o() {
+ }
+ function p() {
+ }
+ function O() {
+ }
+ var P = {};
+ P[h] = function() {
+ return this;
+ };
+ var F = Object.getPrototypeOf, z = F && F(F($([])));
+ z && z !== b && w.call(z, h) && (P = z);
+ var N = O.prototype = o.prototype = Object.create(P);
+ p.prototype = N.constructor = O, O.constructor = p, p.displayName = s(O, d, "GeneratorFunction");
+ function M(U) {
+ ["next", "throw", "return"].forEach(function(D) {
+ s(U, D, function(B) {
+ return this._invoke(D, B);
+ });
+ });
+ }
+ g.isGeneratorFunction = function(U) {
+ var D = typeof U == "function" && U.constructor;
+ return D ? D === p || // For the native GeneratorFunction constructor, the best we can
+ // do is to check its .name property.
+ (D.displayName || D.name) === "GeneratorFunction" : !1;
+ }, g.mark = function(U) {
+ return Object.setPrototypeOf ? Object.setPrototypeOf(U, O) : (U.__proto__ = O, s(U, d, "GeneratorFunction")), U.prototype = Object.create(N), U;
+ }, g.awrap = function(U) {
+ return {
+ __await: U
+ };
+ };
+ function I(U, D) {
+ function B(re, ee, ce, ve) {
+ var ge = c(U[re], U, ee);
+ if (ge.type === "throw")
+ ve(ge.arg);
+ else {
+ var oe = ge.arg, J = oe.value;
+ return J && u(J) === "object" && w.call(J, "__await") ? D.resolve(J.__await).then(function(Q) {
+ B("next", Q, ce, ve);
+ }, function(Q) {
+ B("throw", Q, ce, ve);
+ }) : D.resolve(J).then(function(Q) {
+ oe.value = Q, ce(oe);
+ }, function(Q) {
+ return B("throw", Q, ce, ve);
+ });
+ }
+ }
+ var j;
+ function V(re, ee) {
+ function ce() {
+ return new D(function(ve, ge) {
+ B(re, ee, ve, ge);
+ });
+ }
+ return j = // If enqueue has been called before, then we want to wait until
+ // all previous Promises have been resolved before calling invoke,
+ // so that results are always delivered in the correct order. If
+ // enqueue has not been called before, then it is important to
+ // call invoke immediately, without waiting on a callback to fire,
+ // so that the async generator function has the opportunity to do
+ // any necessary setup in a predictable way. This predictability
+ // is why the Promise constructor synchronously invokes its
+ // executor callback, and why async functions synchronously
+ // execute code before the first await. Since we implement simple
+ // async functions in terms of async generators, it is especially
+ // important to get this right, even though it requires care.
+ j ? j.then(
+ ce,
+ // Avoid propagating failures to Promises returned by later
+ // invocations of the iterator.
+ ce
+ ) : ce();
+ }
+ this._invoke = V;
+ }
+ M(I.prototype), I.prototype[l] = function() {
+ return this;
+ }, g.AsyncIterator = I, g.async = function(U, D, B, j, V) {
+ V === void 0 && (V = Promise);
+ var re = new I(v(U, D, B, j), V);
+ return g.isGeneratorFunction(D) ? re : re.next().then(function(ee) {
+ return ee.done ? ee.value : re.next();
+ });
+ };
+ function R(U, D, B) {
+ var j = a;
+ return function(re, ee) {
+ if (j === t)
+ throw new Error("Generator is already running");
+ if (j === i) {
+ if (re === "throw")
+ throw ee;
+ return W();
+ }
+ for (B.method = re, B.arg = ee; ; ) {
+ var ce = B.delegate;
+ if (ce) {
+ var ve = C(ce, B);
+ if (ve) {
+ if (ve === n)
+ continue;
+ return ve;
+ }
+ }
+ if (B.method === "next")
+ B.sent = B._sent = B.arg;
+ else if (B.method === "throw") {
+ if (j === a)
+ throw j = i, B.arg;
+ B.dispatchException(B.arg);
+ } else
+ B.method === "return" && B.abrupt("return", B.arg);
+ j = t;
+ var ge = c(U, D, B);
+ if (ge.type === "normal") {
+ if (j = B.done ? i : r, ge.arg === n)
+ continue;
+ return {
+ value: ge.arg,
+ done: B.done
+ };
+ } else
+ ge.type === "throw" && (j = i, B.method = "throw", B.arg = ge.arg);
+ }
+ };
+ }
+ function C(U, D) {
+ var B = U.iterator[D.method];
+ if (B === f) {
+ if (D.delegate = null, D.method === "throw") {
+ if (U.iterator.return && (D.method = "return", D.arg = f, C(U, D), D.method === "throw"))
+ return n;
+ D.method = "throw", D.arg = new TypeError("The iterator does not provide a 'throw' method");
+ }
+ return n;
+ }
+ var j = c(B, U.iterator, D.arg);
+ if (j.type === "throw")
+ return D.method = "throw", D.arg = j.arg, D.delegate = null, n;
+ var V = j.arg;
+ if (!V)
+ return D.method = "throw", D.arg = new TypeError("iterator result is not an object"), D.delegate = null, n;
+ if (V.done)
+ D[U.resultName] = V.value, D.next = U.nextLoc, D.method !== "return" && (D.method = "next", D.arg = f);
+ else
+ return V;
+ return D.delegate = null, n;
+ }
+ M(N), s(N, d, "Generator"), N[h] = function() {
+ return this;
+ }, N.toString = function() {
+ return "[object Generator]";
+ };
+ function E(U) {
+ var D = {
+ tryLoc: U[0]
+ };
+ 1 in U && (D.catchLoc = U[1]), 2 in U && (D.finallyLoc = U[2], D.afterLoc = U[3]), this.tryEntries.push(D);
+ }
+ function A(U) {
+ var D = U.completion || {};
+ D.type = "normal", delete D.arg, U.completion = D;
+ }
+ function L(U) {
+ this.tryEntries = [{
+ tryLoc: "root"
+ }], U.forEach(E, this), this.reset(!0);
+ }
+ g.keys = function(U) {
+ var D = [];
+ for (var B in U)
+ D.push(B);
+ return D.reverse(), function j() {
+ for (; D.length; ) {
+ var V = D.pop();
+ if (V in U)
+ return j.value = V, j.done = !1, j;
+ }
+ return j.done = !0, j;
+ };
+ };
+ function $(U) {
+ if (U) {
+ var D = U[h];
+ if (D)
+ return D.call(U);
+ if (typeof U.next == "function")
+ return U;
+ if (!isNaN(U.length)) {
+ var B = -1, j = function V() {
+ for (; ++B < U.length; )
+ if (w.call(U, B))
+ return V.value = U[B], V.done = !1, V;
+ return V.value = f, V.done = !0, V;
+ };
+ return j.next = j;
+ }
+ }
+ return {
+ next: W
+ };
+ }
+ g.values = $;
+ function W() {
+ return {
+ value: f,
+ done: !0
+ };
+ }
+ return L.prototype = {
+ constructor: L,
+ reset: function(D) {
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = f, this.done = !1, this.delegate = null, this.method = "next", this.arg = f, this.tryEntries.forEach(A), !D)
+ for (var B in this)
+ B.charAt(0) === "t" && w.call(this, B) && !isNaN(+B.slice(1)) && (this[B] = f);
+ },
+ stop: function() {
+ this.done = !0;
+ var D = this.tryEntries[0], B = D.completion;
+ if (B.type === "throw")
+ throw B.arg;
+ return this.rval;
+ },
+ dispatchException: function(D) {
+ if (this.done)
+ throw D;
+ var B = this;
+ function j(ge, oe) {
+ return ee.type = "throw", ee.arg = D, B.next = ge, oe && (B.method = "next", B.arg = f), !!oe;
+ }
+ for (var V = this.tryEntries.length - 1; V >= 0; --V) {
+ var re = this.tryEntries[V], ee = re.completion;
+ if (re.tryLoc === "root")
+ return j("end");
+ if (re.tryLoc <= this.prev) {
+ var ce = w.call(re, "catchLoc"), ve = w.call(re, "finallyLoc");
+ if (ce && ve) {
+ if (this.prev < re.catchLoc)
+ return j(re.catchLoc, !0);
+ if (this.prev < re.finallyLoc)
+ return j(re.finallyLoc);
+ } else if (ce) {
+ if (this.prev < re.catchLoc)
+ return j(re.catchLoc, !0);
+ } else if (ve) {
+ if (this.prev < re.finallyLoc)
+ return j(re.finallyLoc);
+ } else
+ throw new Error("try statement without catch or finally");
+ }
+ }
+ },
+ abrupt: function(D, B) {
+ for (var j = this.tryEntries.length - 1; j >= 0; --j) {
+ var V = this.tryEntries[j];
+ if (V.tryLoc <= this.prev && w.call(V, "finallyLoc") && this.prev < V.finallyLoc) {
+ var re = V;
+ break;
+ }
+ }
+ re && (D === "break" || D === "continue") && re.tryLoc <= B && B <= re.finallyLoc && (re = null);
+ var ee = re ? re.completion : {};
+ return ee.type = D, ee.arg = B, re ? (this.method = "next", this.next = re.finallyLoc, n) : this.complete(ee);
+ },
+ complete: function(D, B) {
+ if (D.type === "throw")
+ throw D.arg;
+ return D.type === "break" || D.type === "continue" ? this.next = D.arg : D.type === "return" ? (this.rval = this.arg = D.arg, this.method = "return", this.next = "end") : D.type === "normal" && B && (this.next = B), n;
+ },
+ finish: function(D) {
+ for (var B = this.tryEntries.length - 1; B >= 0; --B) {
+ var j = this.tryEntries[B];
+ if (j.finallyLoc === D)
+ return this.complete(j.completion, j.afterLoc), A(j), n;
+ }
+ },
+ catch: function(D) {
+ for (var B = this.tryEntries.length - 1; B >= 0; --B) {
+ var j = this.tryEntries[B];
+ if (j.tryLoc === D) {
+ var V = j.completion;
+ if (V.type === "throw") {
+ var re = V.arg;
+ A(j);
+ }
+ return re;
+ }
+ }
+ throw new Error("illegal catch attempt");
+ },
+ delegateYield: function(D, B, j) {
+ return this.delegate = {
+ iterator: $(D),
+ resultName: B,
+ nextLoc: j
+ }, this.method === "next" && (this.arg = f), n;
+ }
+ }, g;
+ }(
+ // If this script is executing as a CommonJS module, use module.exports
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
+ // object. Either way, the resulting object will be used to initialize
+ // the regeneratorRuntime variable at the top of this file.
+ (typeof x == "undefined" ? "undefined" : u(x)) === "object" ? x.exports : {}
+ );
+ try {
+ regeneratorRuntime = m;
+ } catch (g) {
+ Function("r", "regeneratorRuntime = r")(m);
+ }
+ }, {}], 493: [function(e, x, _) {
+ var u = e("buffer").Buffer, m = e("inherits"), g = e("hash-base"), b = new Array(16), w = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], f = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], y = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], h = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11], l = [0, 1518500249, 1859775393, 2400959708, 2840853838], d = [1352829926, 1548603684, 1836072691, 2053994217, 0];
+ function s() {
+ g.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
+ }
+ m(s, g), s.prototype._update = function() {
+ for (var n = b, o = 0; o < 16; ++o)
+ n[o] = this._block.readInt32LE(o * 4);
+ for (var p = this._a | 0, O = this._b | 0, P = this._c | 0, F = this._d | 0, z = this._e | 0, N = this._a | 0, M = this._b | 0, I = this._c | 0, R = this._d | 0, C = this._e | 0, E = 0; E < 80; E += 1) {
+ var A, L;
+ E < 16 ? (A = c(p, O, P, F, z, n[w[E]], l[0], y[E]), L = i(N, M, I, R, C, n[f[E]], d[0], h[E])) : E < 32 ? (A = a(p, O, P, F, z, n[w[E]], l[1], y[E]), L = t(N, M, I, R, C, n[f[E]], d[1], h[E])) : E < 48 ? (A = r(p, O, P, F, z, n[w[E]], l[2], y[E]), L = r(N, M, I, R, C, n[f[E]], d[2], h[E])) : E < 64 ? (A = t(p, O, P, F, z, n[w[E]], l[3], y[E]), L = a(N, M, I, R, C, n[f[E]], d[3], h[E])) : (A = i(p, O, P, F, z, n[w[E]], l[4], y[E]), L = c(N, M, I, R, C, n[f[E]], d[4], h[E])), p = z, z = F, F = v(P, 10), P = O, O = A, N = C, C = R, R = v(I, 10), I = M, M = L;
+ }
+ var $ = this._b + P + R | 0;
+ this._b = this._c + F + C | 0, this._c = this._d + z + N | 0, this._d = this._e + p + M | 0, this._e = this._a + O + I | 0, this._a = $;
+ }, s.prototype._digest = function() {
+ this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
+ var n = u.alloc ? u.alloc(20) : new u(20);
+ return n.writeInt32LE(this._a, 0), n.writeInt32LE(this._b, 4), n.writeInt32LE(this._c, 8), n.writeInt32LE(this._d, 12), n.writeInt32LE(this._e, 16), n;
+ };
+ function v(n, o) {
+ return n << o | n >>> 32 - o;
+ }
+ function c(n, o, p, O, P, F, z, N) {
+ return v(n + (o ^ p ^ O) + F + z | 0, N) + P | 0;
+ }
+ function a(n, o, p, O, P, F, z, N) {
+ return v(n + (o & p | ~o & O) + F + z | 0, N) + P | 0;
+ }
+ function r(n, o, p, O, P, F, z, N) {
+ return v(n + ((o | ~p) ^ O) + F + z | 0, N) + P | 0;
+ }
+ function t(n, o, p, O, P, F, z, N) {
+ return v(n + (o & O | p & ~O) + F + z | 0, N) + P | 0;
+ }
+ function i(n, o, p, O, P, F, z, N) {
+ return v(n + (o ^ (p | ~O)) + F + z | 0, N) + P | 0;
+ }
+ x.exports = s;
+ }, { buffer: 216, "hash-base": 370, inherits: 387 }], 494: [function(e, x, _) {
+ var u = e("buffer"), m = u.Buffer;
+ function g(w, f) {
+ for (var y in w)
+ f[y] = w[y];
+ }
+ m.from && m.alloc && m.allocUnsafe && m.allocUnsafeSlow ? x.exports = u : (g(u, _), _.Buffer = b);
+ function b(w, f, y) {
+ return m(w, f, y);
+ }
+ g(m, b), b.from = function(w, f, y) {
+ if (typeof w == "number")
+ throw new TypeError("Argument must not be a number");
+ return m(w, f, y);
+ }, b.alloc = function(w, f, y) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ var h = m(w);
+ return f !== void 0 ? typeof y == "string" ? h.fill(f, y) : h.fill(f) : h.fill(0), h;
+ }, b.allocUnsafe = function(w) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ return m(w);
+ }, b.allocUnsafeSlow = function(w) {
+ if (typeof w != "number")
+ throw new TypeError("Argument must be a number");
+ return u.SlowBuffer(w);
+ };
+ }, { buffer: 216 }], 495: [function(e, x, _) {
+ (function(u) {
+ function m(h) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(d) {
+ return typeof d;
+ } : m = function(d) {
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
+ }, m(h);
+ }
+ var g = e("buffer"), b = g.Buffer, w = {}, f;
+ for (f in g)
+ g.hasOwnProperty(f) && (f === "SlowBuffer" || f === "Buffer" || (w[f] = g[f]));
+ var y = w.Buffer = {};
+ for (f in b)
+ b.hasOwnProperty(f) && (f === "allocUnsafe" || f === "allocUnsafeSlow" || (y[f] = b[f]));
+ if (w.Buffer.prototype = b.prototype, (!y.from || y.from === Uint8Array.from) && (y.from = function(h, l, d) {
+ if (typeof h == "number")
+ throw new TypeError('The "value" argument must not be of type number. Received type ' + m(h));
+ if (h && typeof h.length == "undefined")
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(h));
+ return b(h, l, d);
+ }), y.alloc || (y.alloc = function(h, l, d) {
+ if (typeof h != "number")
+ throw new TypeError('The "size" argument must be of type number. Received type ' + m(h));
+ if (h < 0 || h >= 2 * (1 << 30))
+ throw new RangeError('The value "' + h + '" is invalid for option "size"');
+ var s = b(h);
+ return !l || l.length === 0 ? s.fill(0) : typeof d == "string" ? s.fill(l, d) : s.fill(l), s;
+ }), !w.kStringMaxLength)
+ try {
+ w.kStringMaxLength = u.binding("buffer").kStringMaxLength;
+ } catch (h) {
+ }
+ w.constants || (w.constants = {
+ MAX_LENGTH: w.kMaxLength
+ }, w.kStringMaxLength && (w.constants.MAX_STRING_LENGTH = w.kStringMaxLength)), x.exports = w;
+ }).call(this, e("_process"));
+ }, { _process: 467, buffer: 216 }], 496: [function(e, x, _) {
+ function u(vt, Ke) {
+ var me;
+ if (typeof Symbol == "undefined" || vt[Symbol.iterator] == null) {
+ if (Array.isArray(vt) || (me = h(vt)) || Ke && vt && typeof vt.length == "number") {
+ me && (vt = me);
+ var Fe = 0, Be = function() {
+ };
+ return { s: Be, n: function() {
+ return Fe >= vt.length ? { done: !0 } : { done: !1, value: vt[Fe++] };
+ }, e: function(gr) {
+ throw gr;
+ }, f: Be };
+ }
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ var dt = !0, St = !1, Ht;
+ return { s: function() {
+ me = vt[Symbol.iterator]();
+ }, n: function() {
+ var gr = me.next();
+ return dt = gr.done, gr;
+ }, e: function(gr) {
+ St = !0, Ht = gr;
+ }, f: function() {
+ try {
+ !dt && me.return != null && me.return();
+ } finally {
+ if (St)
+ throw Ht;
+ }
+ } };
+ }
+ function m(vt) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(me) {
+ return typeof me;
+ } : m = function(me) {
+ return me && typeof Symbol == "function" && me.constructor === Symbol && me !== Symbol.prototype ? "symbol" : typeof me;
+ }, m(vt);
+ }
+ function g(vt, Ke) {
+ if (!(vt instanceof Ke))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ function b(vt, Ke) {
+ for (var me = 0; me < Ke.length; me++) {
+ var Fe = Ke[me];
+ Fe.enumerable = Fe.enumerable || !1, Fe.configurable = !0, "value" in Fe && (Fe.writable = !0), Object.defineProperty(vt, Fe.key, Fe);
+ }
+ }
+ function w(vt, Ke, me) {
+ return Ke && b(vt.prototype, Ke), me && b(vt, me), vt;
+ }
+ function f(vt) {
+ return d(vt) || l(vt) || h(vt) || y();
+ }
+ function y() {
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
+ }
+ function h(vt, Ke) {
+ if (vt) {
+ if (typeof vt == "string")
+ return s(vt, Ke);
+ var me = Object.prototype.toString.call(vt).slice(8, -1);
+ if (me === "Object" && vt.constructor && (me = vt.constructor.name), me === "Map" || me === "Set")
+ return Array.from(vt);
+ if (me === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))
+ return s(vt, Ke);
+ }
+ }
+ function l(vt) {
+ if (typeof Symbol != "undefined" && Symbol.iterator in Object(vt))
+ return Array.from(vt);
+ }
+ function d(vt) {
+ if (Array.isArray(vt))
+ return s(vt);
+ }
+ function s(vt, Ke) {
+ (Ke == null || Ke > vt.length) && (Ke = vt.length);
+ for (var me = 0, Fe = new Array(Ke); me < Ke; me++)
+ Fe[me] = vt[me];
+ return Fe;
+ }
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ });
+ var v = e("xmlchars/xml/1.0/ed5"), c = e("xmlchars/xml/1.1/ed2"), a = e("xmlchars/xmlns/1.0/ed3"), r = v.isS, t = v.isChar, i = v.isNameStartChar, n = v.isNameChar, o = v.S_LIST, p = v.NAME_RE, O = c.isChar, P = a.isNCNameStartChar, F = a.isNCNameChar, z = a.NC_NAME_RE, N = "http://www.w3.org/XML/1998/namespace", M = "http://www.w3.org/2000/xmlns/", I = {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ __proto__: null,
+ xml: N,
+ xmlns: M
+ }, R = {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ __proto__: null,
+ amp: "&",
+ gt: ">",
+ lt: "<",
+ quot: '"',
+ apos: "'"
+ }, C = -1, E = -2, A = 0, L = 1, $ = 2, W = 3, U = 4, D = 5, B = 6, j = 7, V = 8, re = 9, ee = 10, ce = 11, ve = 12, ge = 13, oe = 14, J = 15, Q = 16, he = 17, ke = 18, ne = 19, se = 20, Ce = 21, q = 22, G = 23, Y = 24, fe = 25, we = 26, _e = 27, je = 28, Ye = 29, nt = 30, ut = 31, ot = 32, Ue = 33, Ve = 34, Qe = 35, tt = 36, ae = 37, Re = 38, be = 39, Ee = 40, pe = 41, Pe = 42, te = 43, He = 44, it = 9, K = 10, Me = 13, Le = 32, ue = 33, Se = 34, Ie = 38, st = 39, Ge = 45, rt = 47, _t = 59, wt = 60, Ot = 61, pt = 62, ct = 63, At = 91, Pt = 93, bt = 133, Kt = 8232, Ct = function(Ke) {
+ return Ke === Se || Ke === st;
+ }, xt = [Se, st], Ft = [].concat(xt, [At, pt]), Lt = [].concat(xt, [wt, Pt]), Et = [Ot, ct].concat(f(o)), Dr = [].concat(f(o), [pt, Ie, wt]);
+ function Or(vt, Ke, me) {
+ switch (Ke) {
+ case "xml":
+ me !== N && vt.fail("xml prefix must be bound to ".concat(N, "."));
+ break;
+ case "xmlns":
+ me !== M && vt.fail("xmlns prefix must be bound to ".concat(M, "."));
+ break;
+ }
+ switch (me) {
+ case M:
+ vt.fail(Ke === "" ? "the default namespace may not be set to ".concat(me, ".") : 'may not assign a prefix (even "xmlns") to the URI '.concat(M, "."));
+ break;
+ case N:
+ switch (Ke) {
+ case "xml":
+ break;
+ case "":
+ vt.fail("the default namespace may not be set to ".concat(me, "."));
+ break;
+ default:
+ vt.fail("may not assign the xml namespace to another prefix.");
+ }
+ break;
+ }
+ }
+ function Gr(vt, Ke) {
+ for (var me = 0, Fe = Object.keys(Ke); me < Fe.length; me++) {
+ var Be = Fe[me];
+ Or(vt, Be, Ke[Be]);
+ }
+ }
+ var Nr = function(Ke) {
+ return z.test(Ke);
+ }, Yr = function(Ke) {
+ return p.test(Ke);
+ }, Qt = 0, Xr = 1, Fr = 2;
+ _.EVENTS = ["xmldecl", "text", "processinginstruction", "doctype", "comment", "opentagstart", "attribute", "opentag", "closetag", "cdata", "error", "end", "ready"];
+ var Lr = {
+ xmldecl: "xmldeclHandler",
+ text: "textHandler",
+ processinginstruction: "piHandler",
+ doctype: "doctypeHandler",
+ comment: "commentHandler",
+ opentagstart: "openTagStartHandler",
+ attribute: "attributeHandler",
+ opentag: "openTagHandler",
+ closetag: "closeTagHandler",
+ cdata: "cdataHandler",
+ error: "errorHandler",
+ end: "endHandler",
+ ready: "readyHandler"
+ }, Ur = /* @__PURE__ */ function() {
+ function vt(Ke) {
+ g(this, vt), this.opt = Ke != null ? Ke : {}, this.fragmentOpt = !!this.opt.fragment;
+ var me = this.xmlnsOpt = !!this.opt.xmlns;
+ if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, me) {
+ this.nameStartCheck = P, this.nameCheck = F, this.isName = Nr, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = Object.assign({
+ __proto__: null
+ }, I);
+ var Fe = this.opt.additionalNamespaces;
+ Fe != null && (Gr(this, Fe), Object.assign(this.ns, Fe));
+ } else
+ this.nameStartCheck = i, this.nameCheck = n, this.isName = Yr, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
+ this.stateTable = [
+ /* eslint-disable @typescript-eslint/unbound-method */
+ this.sBegin,
+ this.sBeginWhitespace,
+ this.sDoctype,
+ this.sDoctypeQuote,
+ this.sDTD,
+ this.sDTDQuoted,
+ this.sDTDOpenWaka,
+ this.sDTDOpenWakaBang,
+ this.sDTDComment,
+ this.sDTDCommentEnding,
+ this.sDTDCommentEnded,
+ this.sDTDPI,
+ this.sDTDPIEnding,
+ this.sText,
+ this.sEntity,
+ this.sOpenWaka,
+ this.sOpenWakaBang,
+ this.sComment,
+ this.sCommentEnding,
+ this.sCommentEnded,
+ this.sCData,
+ this.sCDataEnding,
+ this.sCDataEnding2,
+ this.sPIFirstChar,
+ this.sPIRest,
+ this.sPIBody,
+ this.sPIEnding,
+ this.sXMLDeclNameStart,
+ this.sXMLDeclName,
+ this.sXMLDeclEq,
+ this.sXMLDeclValueStart,
+ this.sXMLDeclValue,
+ this.sXMLDeclSeparator,
+ this.sXMLDeclEnding,
+ this.sOpenTag,
+ this.sOpenTagSlash,
+ this.sAttrib,
+ this.sAttribName,
+ this.sAttribNameSawWhite,
+ this.sAttribValue,
+ this.sAttribValueQuoted,
+ this.sAttribValueClosed,
+ this.sAttribValueUnquoted,
+ this.sCloseTag,
+ this.sCloseTagSawWhite
+ ], this._init();
+ }
+ return w(vt, [{
+ key: "_init",
+ value: function() {
+ var me;
+ this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = Qt, this.attribList = [];
+ var Fe = this.fragmentOpt;
+ this.state = Fe ? ge : A, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = Fe, this.xmlDeclPossible = !Fe, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
+ var Be = this.opt.defaultXMLVersion;
+ if (Be === void 0) {
+ if (this.opt.forceXMLVersion === !0)
+ throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
+ Be = "1.0";
+ }
+ this.setXMLVersion(Be), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = {
+ version: void 0,
+ encoding: void 0,
+ standalone: void 0
+ }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(R), (me = this.readyHandler) === null || me === void 0 || me.call(this);
+ }
+ /**
+ * The stream position the parser is currently looking at. This field is
+ * zero-based.
+ *
+ * This field is not based on counting Unicode characters but is to be
+ * interpreted as a plain index into a JavaScript string.
+ */
+ }, {
+ key: "on",
+ /**
+ * Set an event listener on an event. The parser supports one handler per
+ * event type. If you try to set an event handler over an existing handler,
+ * the old handler is silently overwritten.
+ *
+ * @param name The event to listen to.
+ *
+ * @param handler The handler to set.
+ */
+ value: function(me, Fe) {
+ this[Lr[me]] = Fe;
+ }
+ /**
+ * Unset an event handler.
+ *
+ * @parma name The event to stop listening to.
+ */
+ }, {
+ key: "off",
+ value: function(me) {
+ this[Lr[me]] = void 0;
+ }
+ /**
+ * Make an error object. The error object will have a message that contains
+ * the ``fileName`` option passed at the creation of the parser. If position
+ * tracking was turned on, it will also have line and column number
+ * information.
+ *
+ * @param message The message describing the error to report.
+ *
+ * @returns An error object with a properly formatted message.
+ */
+ }, {
+ key: "makeError",
+ value: function(me) {
+ var Fe, Be = (Fe = this.fileName) !== null && Fe !== void 0 ? Fe : "";
+ return this.trackPosition && (Be.length > 0 && (Be += ":"), Be += "".concat(this.line, ":").concat(this.column)), Be.length > 0 && (Be += ": "), new Error(Be + me);
+ }
+ /**
+ * Report a parsing error. This method is made public so that client code may
+ * check for issues that are outside the scope of this project and can report
+ * errors.
+ *
+ * @param message The error to report.
+ *
+ * @returns this
+ */
+ }, {
+ key: "fail",
+ value: function(me) {
+ var Fe = this.makeError(me), Be = this.errorHandler;
+ if (Be === void 0)
+ throw Fe;
+ return Be(Fe), this;
+ }
+ /**
+ * Write a XML data to the parser.
+ *
+ * @param chunk The XML data to write.
+ *
+ * @returns this
+ */
+ }, {
+ key: "write",
+ value: function(me) {
+ if (this.closed)
+ return this.fail("cannot write after close; assign an onready handler.");
+ var Fe = !1;
+ me === null ? (Fe = !0, me = "") : m(me) === "object" && (me = me.toString()), this.carriedFromPrevious !== void 0 && (me = "".concat(this.carriedFromPrevious).concat(me), this.carriedFromPrevious = void 0);
+ var Be = me.length, dt = me.charCodeAt(Be - 1);
+ !Fe && // A trailing CR or surrogate must be carried over to the next
+ // chunk.
+ (dt === Me || dt >= 55296 && dt <= 56319) && (this.carriedFromPrevious = me[Be - 1], Be--, me = me.slice(0, Be));
+ var St = this.stateTable;
+ for (this.chunk = me, this.i = 0; this.i < Be; )
+ St[this.state].call(this);
+ return this.chunkPosition += Be, Fe ? this.end() : this;
+ }
+ /**
+ * Close the current stream. Perform final well-formedness checks and reset
+ * the parser tstate.
+ *
+ * @returns this
+ */
+ }, {
+ key: "close",
+ value: function() {
+ return this.write(null);
+ }
+ /**
+ * Get a single code point out of the current chunk. This updates the current
+ * position if we do position tracking.
+ *
+ * This is the algorithm to use for XML 1.0.
+ *
+ * @returns The character read.
+ */
+ }, {
+ key: "getCode10",
+ value: function() {
+ var me = this.chunk, Fe = this.i;
+ if (this.prevI = Fe, this.i = Fe + 1, Fe >= me.length)
+ return C;
+ var Be = me.charCodeAt(Fe);
+ if (this.column++, Be < 55296) {
+ if (Be >= Le || Be === it)
+ return Be;
+ switch (Be) {
+ case K:
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, K;
+ case Me:
+ return me.charCodeAt(Fe + 1) === K && (this.i = Fe + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, E;
+ default:
+ return this.fail("disallowed character."), Be;
+ }
+ }
+ if (Be > 56319)
+ return Be >= 57344 && Be <= 65533 || this.fail("disallowed character."), Be;
+ var dt = 65536 + (Be - 55296) * 1024 + (me.charCodeAt(Fe + 1) - 56320);
+ return this.i = Fe + 2, dt > 1114111 && this.fail("disallowed character."), dt;
+ }
+ /**
+ * Get a single code point out of the current chunk. This updates the current
+ * position if we do position tracking.
+ *
+ * This is the algorithm to use for XML 1.1.
+ *
+ * @returns {number} The character read.
+ */
+ }, {
+ key: "getCode11",
+ value: function() {
+ var me = this.chunk, Fe = this.i;
+ if (this.prevI = Fe, this.i = Fe + 1, Fe >= me.length)
+ return C;
+ var Be = me.charCodeAt(Fe);
+ if (this.column++, Be < 55296) {
+ if (Be > 31 && Be < 127 || Be > 159 && Be !== Kt || Be === it)
+ return Be;
+ switch (Be) {
+ case K:
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, K;
+ case Me: {
+ var dt = me.charCodeAt(Fe + 1);
+ (dt === K || dt === bt) && (this.i = Fe + 2);
+ }
+ case bt:
+ case Kt:
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, E;
+ default:
+ return this.fail("disallowed character."), Be;
+ }
+ }
+ if (Be > 56319)
+ return Be >= 57344 && Be <= 65533 || this.fail("disallowed character."), Be;
+ var St = 65536 + (Be - 55296) * 1024 + (me.charCodeAt(Fe + 1) - 56320);
+ return this.i = Fe + 2, St > 1114111 && this.fail("disallowed character."), St;
+ }
+ /**
+ * Like ``getCode`` but with the return value normalized so that ``NL`` is
+ * returned for ``NL_LIKE``.
+ */
+ }, {
+ key: "getCodeNorm",
+ value: function() {
+ var me = this.getCode();
+ return me === E ? K : me;
+ }
+ }, {
+ key: "unget",
+ value: function() {
+ this.i = this.prevI, this.column--;
+ }
+ /**
+ * Capture characters into a buffer until encountering one of a set of
+ * characters.
+ *
+ * @param chars An array of codepoints. Encountering a character in the array
+ * ends the capture. (``chars`` may safely contain ``NL``.)
+ *
+ * @return The character code that made the capture end, or ``EOC`` if we hit
+ * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
+ * instead.
+ */
+ }, {
+ key: "captureTo",
+ value: function(me) {
+ for (var Fe = this.i, Be = this.chunk; ; ) {
+ var dt = this.getCode(), St = dt === E, Ht = St ? K : dt;
+ if (Ht === C || me.includes(Ht))
+ return this.text += Be.slice(Fe, this.prevI), Ht;
+ St && (this.text += "".concat(Be.slice(Fe, this.prevI), `
+`), Fe = this.i);
+ }
+ }
+ /**
+ * Capture characters into a buffer until encountering a character.
+ *
+ * @param char The codepoint that ends the capture. **NOTE ``char`` MAY NOT
+ * CONTAIN ``NL``.** Passing ``NL`` will result in buggy behavior.
+ *
+ * @return ``true`` if we ran into the character. Otherwise, we ran into the
+ * end of the current chunk.
+ */
+ }, {
+ key: "captureToChar",
+ value: function(me) {
+ for (var Fe = this.i, Be = this.chunk; ; ) {
+ var dt = this.getCode();
+ switch (dt) {
+ case E:
+ this.text += "".concat(Be.slice(Fe, this.prevI), `
+`), Fe = this.i, dt = K;
+ break;
+ case C:
+ return this.text += Be.slice(Fe), !1;
+ }
+ if (dt === me)
+ return this.text += Be.slice(Fe, this.prevI), !0;
+ }
+ }
+ /**
+ * Capture characters that satisfy ``isNameChar`` into the ``name`` field of
+ * this parser.
+ *
+ * @return The character code that made the test fail, or ``EOC`` if we hit
+ * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
+ * instead.
+ */
+ }, {
+ key: "captureNameChars",
+ value: function() {
+ for (var me = this.chunk, Fe = this.i; ; ) {
+ var Be = this.getCode();
+ if (Be === C)
+ return this.name += me.slice(Fe), C;
+ if (!n(Be))
+ return this.name += me.slice(Fe, this.prevI), Be === E ? K : Be;
+ }
+ }
+ /**
+ * Skip white spaces.
+ *
+ * @return The character that ended the skip, or ``EOC`` if we hit
+ * the end of the chunk. The return value cannot be NL_LIKE: NL is returned
+ * instead.
+ */
+ }, {
+ key: "skipSpaces",
+ value: function() {
+ for (; ; ) {
+ var me = this.getCodeNorm();
+ if (me === C || !r(me))
+ return me;
+ }
+ }
+ }, {
+ key: "setXMLVersion",
+ value: function(me) {
+ this.currentXMLVersion = me, me === "1.0" ? (this.isChar = t, this.getCode = this.getCode10) : (this.isChar = O, this.getCode = this.getCode11);
+ }
+ // STATE ENGINE METHODS
+ // This needs to be a state separate from S_BEGIN_WHITESPACE because we want
+ // to be sure never to come back to this state later.
+ }, {
+ key: "sBegin",
+ value: function() {
+ this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = L;
+ }
+ }, {
+ key: "sBeginWhitespace",
+ value: function() {
+ var me = this.i, Fe = this.skipSpaces();
+ switch (this.prevI !== me && (this.xmlDeclPossible = !1), Fe) {
+ case wt:
+ if (this.state = J, this.text.length !== 0)
+ throw new Error("no-empty text at start");
+ break;
+ case C:
+ break;
+ default:
+ this.unget(), this.state = ge, this.xmlDeclPossible = !1;
+ }
+ }
+ }, {
+ key: "sDoctype",
+ value: function() {
+ var me, Fe = this.captureTo(Ft);
+ switch (Fe) {
+ case pt: {
+ (me = this.doctypeHandler) === null || me === void 0 || me.call(this, this.text), this.text = "", this.state = ge, this.doctype = !0;
+ break;
+ }
+ case C:
+ break;
+ default:
+ this.text += String.fromCodePoint(Fe), Fe === At ? this.state = U : Ct(Fe) && (this.state = W, this.q = Fe);
+ }
+ }
+ }, {
+ key: "sDoctypeQuote",
+ value: function() {
+ var me = this.q;
+ this.captureToChar(me) && (this.text += String.fromCodePoint(me), this.q = null, this.state = $);
+ }
+ }, {
+ key: "sDTD",
+ value: function() {
+ var me = this.captureTo(Lt);
+ me !== C && (this.text += String.fromCodePoint(me), me === Pt ? this.state = $ : me === wt ? this.state = B : Ct(me) && (this.state = D, this.q = me));
+ }
+ }, {
+ key: "sDTDQuoted",
+ value: function() {
+ var me = this.q;
+ this.captureToChar(me) && (this.text += String.fromCodePoint(me), this.state = U, this.q = null);
+ }
+ }, {
+ key: "sDTDOpenWaka",
+ value: function() {
+ var me = this.getCodeNorm();
+ switch (this.text += String.fromCodePoint(me), me) {
+ case ue:
+ this.state = j, this.openWakaBang = "";
+ break;
+ case ct:
+ this.state = ce;
+ break;
+ default:
+ this.state = U;
+ }
+ }
+ }, {
+ key: "sDTDOpenWakaBang",
+ value: function() {
+ var me = String.fromCodePoint(this.getCodeNorm()), Fe = this.openWakaBang += me;
+ this.text += me, Fe !== "-" && (this.state = Fe === "--" ? V : U, this.openWakaBang = "");
+ }
+ }, {
+ key: "sDTDComment",
+ value: function() {
+ this.captureToChar(Ge) && (this.text += "-", this.state = re);
+ }
+ }, {
+ key: "sDTDCommentEnding",
+ value: function() {
+ var me = this.getCodeNorm();
+ this.text += String.fromCodePoint(me), this.state = me === Ge ? ee : V;
+ }
+ }, {
+ key: "sDTDCommentEnded",
+ value: function() {
+ var me = this.getCodeNorm();
+ this.text += String.fromCodePoint(me), me === pt ? this.state = U : (this.fail("malformed comment."), this.state = V);
+ }
+ }, {
+ key: "sDTDPI",
+ value: function() {
+ this.captureToChar(ct) && (this.text += "?", this.state = ve);
+ }
+ }, {
+ key: "sDTDPIEnding",
+ value: function() {
+ var me = this.getCodeNorm();
+ this.text += String.fromCodePoint(me), me === pt && (this.state = U);
+ }
+ }, {
+ key: "sText",
+ value: function() {
+ this.tags.length !== 0 ? this.handleTextInRoot() : this.handleTextOutsideRoot();
+ }
+ }, {
+ key: "sEntity",
+ value: function() {
+ var me = this.i, Fe = this.chunk;
+ e:
+ for (; ; )
+ switch (this.getCode()) {
+ case E:
+ this.entity += "".concat(Fe.slice(me, this.prevI), `
+`), me = this.i;
+ break;
+ case _t: {
+ var Be = this.entityReturnState, dt = this.entity + Fe.slice(me, this.prevI);
+ this.state = Be;
+ var St = void 0;
+ dt === "" ? (this.fail("empty entity name."), St = "&;") : (St = this.parseEntity(dt), this.entity = ""), (Be !== ge || this.textHandler !== void 0) && (this.text += St);
+ break e;
+ }
+ case C:
+ this.entity += Fe.slice(me);
+ break e;
+ }
+ }
+ }, {
+ key: "sOpenWaka",
+ value: function() {
+ var me = this.getCode();
+ if (i(me))
+ this.state = Ve, this.unget(), this.xmlDeclPossible = !1;
+ else
+ switch (me) {
+ case rt:
+ this.state = te, this.xmlDeclPossible = !1;
+ break;
+ case ue:
+ this.state = Q, this.openWakaBang = "", this.xmlDeclPossible = !1;
+ break;
+ case ct:
+ this.state = G;
+ break;
+ default:
+ this.fail("disallowed character in tag name"), this.state = ge, this.xmlDeclPossible = !1;
+ }
+ }
+ }, {
+ key: "sOpenWakaBang",
+ value: function() {
+ switch (this.openWakaBang += String.fromCodePoint(this.getCodeNorm()), this.openWakaBang) {
+ case "[CDATA[":
+ !this.sawRoot && !this.reportedTextBeforeRoot && (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0), this.state = se, this.openWakaBang = "";
+ break;
+ case "--":
+ this.state = he, this.openWakaBang = "";
+ break;
+ case "DOCTYPE":
+ this.state = $, (this.doctype || this.sawRoot) && this.fail("inappropriately located doctype declaration."), this.openWakaBang = "";
+ break;
+ default:
+ this.openWakaBang.length >= 7 && this.fail("incorrect syntax.");
+ }
+ }
+ }, {
+ key: "sComment",
+ value: function() {
+ this.captureToChar(Ge) && (this.state = ke);
+ }
+ }, {
+ key: "sCommentEnding",
+ value: function() {
+ var me, Fe = this.getCodeNorm();
+ Fe === Ge ? (this.state = ne, (me = this.commentHandler) === null || me === void 0 || me.call(this, this.text), this.text = "") : (this.text += "-".concat(String.fromCodePoint(Fe)), this.state = he);
+ }
+ }, {
+ key: "sCommentEnded",
+ value: function() {
+ var me = this.getCodeNorm();
+ me !== pt ? (this.fail("malformed comment."), this.text += "--".concat(String.fromCodePoint(me)), this.state = he) : this.state = ge;
+ }
+ }, {
+ key: "sCData",
+ value: function() {
+ this.captureToChar(Pt) && (this.state = Ce);
+ }
+ }, {
+ key: "sCDataEnding",
+ value: function() {
+ var me = this.getCodeNorm();
+ me === Pt ? this.state = q : (this.text += "]".concat(String.fromCodePoint(me)), this.state = se);
+ }
+ }, {
+ key: "sCDataEnding2",
+ value: function() {
+ var me, Fe = this.getCodeNorm();
+ switch (Fe) {
+ case pt: {
+ (me = this.cdataHandler) === null || me === void 0 || me.call(this, this.text), this.text = "", this.state = ge;
+ break;
+ }
+ case Pt:
+ this.text += "]";
+ break;
+ default:
+ this.text += "]]".concat(String.fromCodePoint(Fe)), this.state = se;
+ }
+ }
+ // We need this separate state to check the first character fo the pi target
+ // with this.nameStartCheck which allows less characters than this.nameCheck.
+ }, {
+ key: "sPIFirstChar",
+ value: function() {
+ var me = this.getCodeNorm();
+ this.nameStartCheck(me) ? (this.piTarget += String.fromCodePoint(me), this.state = Y) : me === ct || r(me) ? (this.fail("processing instruction without a target."), this.state = me === ct ? we : fe) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(me), this.state = Y);
+ }
+ }, {
+ key: "sPIRest",
+ value: function() {
+ for (var me = this.chunk, Fe = this.i; ; ) {
+ var Be = this.getCodeNorm();
+ if (Be === C) {
+ this.piTarget += me.slice(Fe);
+ return;
+ }
+ if (!this.nameCheck(Be)) {
+ this.piTarget += me.slice(Fe, this.prevI);
+ var dt = Be === ct;
+ dt || r(Be) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = dt ? Ue : _e) : this.state = dt ? we : fe : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(Be));
+ break;
+ }
+ }
+ }
+ }, {
+ key: "sPIBody",
+ value: function() {
+ if (this.text.length === 0) {
+ var me = this.getCodeNorm();
+ me === ct ? this.state = we : r(me) || (this.text = String.fromCodePoint(me));
+ } else
+ this.captureToChar(ct) && (this.state = we);
+ }
+ }, {
+ key: "sPIEnding",
+ value: function() {
+ var me, Fe = this.getCodeNorm();
+ if (Fe === pt) {
+ var Be = this.piTarget;
+ Be.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), (me = this.piHandler) === null || me === void 0 || me.call(this, {
+ target: Be,
+ body: this.text
+ }), this.piTarget = this.text = "", this.state = ge;
+ } else
+ Fe === ct ? this.text += "?" : (this.text += "?".concat(String.fromCodePoint(Fe)), this.state = fe);
+ this.xmlDeclPossible = !1;
+ }
+ }, {
+ key: "sXMLDeclNameStart",
+ value: function() {
+ var me = this.skipSpaces();
+ if (me === ct) {
+ this.state = Ue;
+ return;
+ }
+ me !== C && (this.state = je, this.name = String.fromCodePoint(me));
+ }
+ }, {
+ key: "sXMLDeclName",
+ value: function() {
+ var me = this.captureTo(Et);
+ if (me === ct) {
+ this.state = Ue, this.name += this.text, this.text = "", this.fail("XML declaration is incomplete.");
+ return;
+ }
+ if (r(me) || me === Ot) {
+ if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name))
+ switch (this.name.length) {
+ case 0:
+ this.fail("did not expect any more name/value pairs.");
+ break;
+ case 1:
+ this.fail("expected the name ".concat(this.xmlDeclExpects[0], "."));
+ break;
+ default:
+ this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")));
+ }
+ this.state = me === Ot ? nt : Ye;
+ }
+ }
+ }, {
+ key: "sXMLDeclEq",
+ value: function() {
+ var me = this.getCodeNorm();
+ if (me === ct) {
+ this.state = Ue, this.fail("XML declaration is incomplete.");
+ return;
+ }
+ r(me) || (me !== Ot && this.fail("value required."), this.state = nt);
+ }
+ }, {
+ key: "sXMLDeclValueStart",
+ value: function() {
+ var me = this.getCodeNorm();
+ if (me === ct) {
+ this.state = Ue, this.fail("XML declaration is incomplete.");
+ return;
+ }
+ r(me) || (Ct(me) ? this.q = me : (this.fail("value must be quoted."), this.q = Le), this.state = ut);
+ }
+ }, {
+ key: "sXMLDeclValue",
+ value: function() {
+ var me = this.captureTo([this.q, ct]);
+ if (me === ct) {
+ this.state = Ue, this.text = "", this.fail("XML declaration is incomplete.");
+ return;
+ }
+ if (me !== C) {
+ var Fe = this.text;
+ switch (this.text = "", this.name) {
+ case "version": {
+ this.xmlDeclExpects = ["encoding", "standalone"];
+ var Be = Fe;
+ this.xmlDecl.version = Be, /^1\.[0-9]+$/.test(Be) ? this.opt.forceXMLVersion || this.setXMLVersion(Be) : this.fail("version number must match /^1\\.[0-9]+$/.");
+ break;
+ }
+ case "encoding":
+ /^[A-Za-z][A-Za-z0-9._-]*$/.test(Fe) || this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."), this.xmlDeclExpects = ["standalone"], this.xmlDecl.encoding = Fe;
+ break;
+ case "standalone":
+ Fe !== "yes" && Fe !== "no" && this.fail('standalone value must match "yes" or "no".'), this.xmlDeclExpects = [], this.xmlDecl.standalone = Fe;
+ break;
+ }
+ this.name = "", this.state = ot;
+ }
+ }
+ }, {
+ key: "sXMLDeclSeparator",
+ value: function() {
+ var me = this.getCodeNorm();
+ if (me === ct) {
+ this.state = Ue;
+ return;
+ }
+ r(me) || (this.fail("whitespace required."), this.unget()), this.state = _e;
+ }
+ }, {
+ key: "sXMLDeclEnding",
+ value: function() {
+ var me, Fe = this.getCodeNorm();
+ Fe === pt ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), (me = this.xmldeclHandler) === null || me === void 0 || me.call(this, this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = ge) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
+ }
+ }, {
+ key: "sOpenTag",
+ value: function() {
+ var me, Fe = this.captureNameChars();
+ if (Fe !== C) {
+ var Be = this.tag = {
+ name: this.name,
+ attributes: /* @__PURE__ */ Object.create(null)
+ };
+ switch (this.name = "", this.xmlnsOpt && (this.topNS = Be.ns = /* @__PURE__ */ Object.create(null)), (me = this.openTagStartHandler) === null || me === void 0 || me.call(this, Be), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), Fe) {
+ case pt:
+ this.openTag();
+ break;
+ case rt:
+ this.state = Qe;
+ break;
+ default:
+ r(Fe) || this.fail("disallowed character in tag name."), this.state = tt;
+ }
+ }
+ }
+ }, {
+ key: "sOpenTagSlash",
+ value: function() {
+ this.getCode() === pt ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = tt);
+ }
+ }, {
+ key: "sAttrib",
+ value: function() {
+ var me = this.skipSpaces();
+ me !== C && (i(me) ? (this.unget(), this.state = ae) : me === pt ? this.openTag() : me === rt ? this.state = Qe : this.fail("disallowed character in attribute name."));
+ }
+ }, {
+ key: "sAttribName",
+ value: function() {
+ var me = this.captureNameChars();
+ me === Ot ? this.state = be : r(me) ? this.state = Re : me === pt ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : me !== C && this.fail("disallowed character in attribute name.");
+ }
+ }, {
+ key: "sAttribNameSawWhite",
+ value: function() {
+ var me = this.skipSpaces();
+ switch (me) {
+ case C:
+ return;
+ case Ot:
+ this.state = be;
+ break;
+ default:
+ this.fail("attribute without value."), this.text = "", this.name = "", me === pt ? this.openTag() : i(me) ? (this.unget(), this.state = ae) : (this.fail("disallowed character in attribute name."), this.state = tt);
+ }
+ }
+ }, {
+ key: "sAttribValue",
+ value: function() {
+ var me = this.getCodeNorm();
+ Ct(me) ? (this.q = me, this.state = Ee) : r(me) || (this.fail("unquoted attribute value."), this.state = Pe, this.unget());
+ }
+ }, {
+ key: "sAttribValueQuoted",
+ value: function() {
+ for (var me = this.q, Fe = this.chunk, Be = this.i; ; )
+ switch (this.getCode()) {
+ case me:
+ this.pushAttrib(this.name, this.text + Fe.slice(Be, this.prevI)), this.name = this.text = "", this.q = null, this.state = pe;
+ return;
+ case Ie:
+ this.text += Fe.slice(Be, this.prevI), this.state = oe, this.entityReturnState = Ee;
+ return;
+ case K:
+ case E:
+ case it:
+ this.text += "".concat(Fe.slice(Be, this.prevI), " "), Be = this.i;
+ break;
+ case wt:
+ this.text += Fe.slice(Be, this.prevI), this.fail("disallowed character.");
+ return;
+ case C:
+ this.text += Fe.slice(Be);
+ return;
+ }
+ }
+ }, {
+ key: "sAttribValueClosed",
+ value: function() {
+ var me = this.getCodeNorm();
+ r(me) ? this.state = tt : me === pt ? this.openTag() : me === rt ? this.state = Qe : i(me) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = ae) : this.fail("disallowed character in attribute name.");
+ }
+ }, {
+ key: "sAttribValueUnquoted",
+ value: function() {
+ var me = this.captureTo(Dr);
+ switch (me) {
+ case Ie:
+ this.state = oe, this.entityReturnState = Pe;
+ break;
+ case wt:
+ this.fail("disallowed character.");
+ break;
+ case C:
+ break;
+ default:
+ this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", me === pt ? this.openTag() : this.state = tt;
+ }
+ }
+ }, {
+ key: "sCloseTag",
+ value: function() {
+ var me = this.captureNameChars();
+ me === pt ? this.closeTag() : r(me) ? this.state = He : me !== C && this.fail("disallowed character in closing tag.");
+ }
+ }, {
+ key: "sCloseTagSawWhite",
+ value: function() {
+ switch (this.skipSpaces()) {
+ case pt:
+ this.closeTag();
+ break;
+ case C:
+ break;
+ default:
+ this.fail("disallowed character in closing tag.");
+ }
+ }
+ // END OF STATE ENGINE METHODS
+ }, {
+ key: "handleTextInRoot",
+ value: function() {
+ var me = this.i, Fe = this.forbiddenState, Be = this.chunk, dt = this.textHandler;
+ e:
+ for (; ; )
+ switch (this.getCode()) {
+ case wt: {
+ if (this.state = J, dt !== void 0) {
+ var St = this.text, Ht = Be.slice(me, this.prevI);
+ St.length !== 0 ? (dt(St + Ht), this.text = "") : Ht.length !== 0 && dt(Ht);
+ }
+ Fe = Qt;
+ break e;
+ }
+ case Ie:
+ this.state = oe, this.entityReturnState = ge, dt !== void 0 && (this.text += Be.slice(me, this.prevI)), Fe = Qt;
+ break e;
+ case Pt:
+ switch (Fe) {
+ case Qt:
+ Fe = Xr;
+ break;
+ case Xr:
+ Fe = Fr;
+ break;
+ case Fr:
+ break;
+ default:
+ throw new Error("impossible state");
+ }
+ break;
+ case pt:
+ Fe === Fr && this.fail('the string "]]>" is disallowed in char data.'), Fe = Qt;
+ break;
+ case E:
+ dt !== void 0 && (this.text += "".concat(Be.slice(me, this.prevI), `
+`)), me = this.i, Fe = Qt;
+ break;
+ case C:
+ dt !== void 0 && (this.text += Be.slice(me));
+ break e;
+ default:
+ Fe = Qt;
+ }
+ this.forbiddenState = Fe;
+ }
+ }, {
+ key: "handleTextOutsideRoot",
+ value: function() {
+ var me = this.i, Fe = this.chunk, Be = this.textHandler, dt = !1;
+ e:
+ for (; ; ) {
+ var St = this.getCode();
+ switch (St) {
+ case wt: {
+ if (this.state = J, Be !== void 0) {
+ var Ht = this.text, lr = Fe.slice(me, this.prevI);
+ Ht.length !== 0 ? (Be(Ht + lr), this.text = "") : lr.length !== 0 && Be(lr);
+ }
+ break e;
+ }
+ case Ie:
+ this.state = oe, this.entityReturnState = ge, Be !== void 0 && (this.text += Fe.slice(me, this.prevI)), dt = !0;
+ break e;
+ case E:
+ Be !== void 0 && (this.text += "".concat(Fe.slice(me, this.prevI), `
+`)), me = this.i;
+ break;
+ case C:
+ Be !== void 0 && (this.text += Fe.slice(me));
+ break e;
+ default:
+ r(St) || (dt = !0);
+ }
+ }
+ dt && (!this.sawRoot && !this.reportedTextBeforeRoot && (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
+ }
+ }, {
+ key: "pushAttribNS",
+ value: function(me, Fe) {
+ var Be, dt = this.qname(me), St = dt.prefix, Ht = dt.local, lr = {
+ name: me,
+ prefix: St,
+ local: Ht,
+ value: Fe
+ };
+ if (this.attribList.push(lr), (Be = this.attributeHandler) === null || Be === void 0 || Be.call(this, lr), St === "xmlns") {
+ var gr = Fe.trim();
+ this.currentXMLVersion === "1.0" && gr === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[Ht] = gr, Or(this, Ht, gr);
+ } else if (me === "xmlns") {
+ var rn = Fe.trim();
+ this.topNS[""] = rn, Or(this, "", rn);
+ }
+ }
+ }, {
+ key: "pushAttribPlain",
+ value: function(me, Fe) {
+ var Be, dt = {
+ name: me,
+ value: Fe
+ };
+ this.attribList.push(dt), (Be = this.attributeHandler) === null || Be === void 0 || Be.call(this, dt);
+ }
+ /**
+ * End parsing. This performs final well-formedness checks and resets the
+ * parser to a clean state.
+ *
+ * @returns this
+ */
+ }, {
+ key: "end",
+ value: function() {
+ var me, Fe;
+ this.sawRoot || this.fail("document must contain a root element.");
+ for (var Be = this.tags; Be.length > 0; ) {
+ var dt = Be.pop();
+ this.fail("unclosed tag: ".concat(dt.name));
+ }
+ this.state !== A && this.state !== ge && this.fail("unexpected end.");
+ var St = this.text;
+ return St.length !== 0 && ((me = this.textHandler) === null || me === void 0 || me.call(this, St), this.text = ""), this._closed = !0, (Fe = this.endHandler) === null || Fe === void 0 || Fe.call(this), this._init(), this;
+ }
+ /**
+ * Resolve a namespace prefix.
+ *
+ * @param prefix The prefix to resolve.
+ *
+ * @returns The namespace URI or ``undefined`` if the prefix is not defined.
+ */
+ }, {
+ key: "resolve",
+ value: function(me) {
+ var Fe, Be, dt = this.topNS[me];
+ if (dt !== void 0)
+ return dt;
+ for (var St = this.tags, Ht = St.length - 1; Ht >= 0; Ht--)
+ if (dt = St[Ht].ns[me], dt !== void 0)
+ return dt;
+ return dt = this.ns[me], dt !== void 0 ? dt : (Be = (Fe = this.opt).resolvePrefix) === null || Be === void 0 ? void 0 : Be.call(Fe, me);
+ }
+ /**
+ * Parse a qname into its prefix and local name parts.
+ *
+ * @param name The name to parse
+ *
+ * @returns
+ */
+ }, {
+ key: "qname",
+ value: function(me) {
+ var Fe = me.indexOf(":");
+ if (Fe === -1)
+ return {
+ prefix: "",
+ local: me
+ };
+ var Be = me.slice(Fe + 1), dt = me.slice(0, Fe);
+ return (dt === "" || Be === "" || Be.includes(":")) && this.fail("malformed name: ".concat(me, ".")), {
+ prefix: dt,
+ local: Be
+ };
+ }
+ }, {
+ key: "processAttribsNS",
+ value: function() {
+ var me, Fe = this.attribList, Be = this.tag;
+ {
+ var dt = this.qname(Be.name), St = dt.prefix, Ht = dt.local;
+ Be.prefix = St, Be.local = Ht;
+ var lr = Be.uri = (me = this.resolve(St)) !== null && me !== void 0 ? me : "";
+ St !== "" && (St === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), lr === "" && (this.fail("unbound namespace prefix: ".concat(JSON.stringify(St), ".")), Be.uri = St));
+ }
+ if (Fe.length !== 0) {
+ var gr = Be.attributes, rn = /* @__PURE__ */ new Set(), zr = u(Fe), pi;
+ try {
+ for (zr.s(); !(pi = zr.n()).done; ) {
+ var $r = pi.value, Dn = $r.name, cn = $r.prefix, yi = $r.local, hn = void 0, dn = void 0;
+ cn === "" ? (hn = Dn === "xmlns" ? M : "", dn = Dn) : (hn = this.resolve(cn), hn === void 0 && (this.fail("unbound namespace prefix: ".concat(JSON.stringify(cn), ".")), hn = cn), dn = "{".concat(hn, "}").concat(yi)), rn.has(dn) && this.fail("duplicate attribute: ".concat(dn, ".")), rn.add(dn), $r.uri = hn, gr[Dn] = $r;
+ }
+ } catch (Nn) {
+ zr.e(Nn);
+ } finally {
+ zr.f();
+ }
+ this.attribList = [];
+ }
+ }
+ }, {
+ key: "processAttribsPlain",
+ value: function() {
+ var me = this.attribList, Fe = this.tag.attributes, Be = u(me), dt;
+ try {
+ for (Be.s(); !(dt = Be.n()).done; ) {
+ var St = dt.value, Ht = St.name, lr = St.value;
+ Fe[Ht] !== void 0 && this.fail("duplicate attribute: ".concat(Ht, ".")), Fe[Ht] = lr;
+ }
+ } catch (gr) {
+ Be.e(gr);
+ } finally {
+ Be.f();
+ }
+ this.attribList = [];
+ }
+ /**
+ * Handle a complete open tag. This parser code calls this once it has seen
+ * the whole tag. This method checks for well-formeness and then emits
+ * ``onopentag``.
+ */
+ }, {
+ key: "openTag",
+ value: function() {
+ var me;
+ this.processAttribs();
+ var Fe = this.tags, Be = this.tag;
+ Be.isSelfClosing = !1, (me = this.openTagHandler) === null || me === void 0 || me.call(this, Be), Fe.push(Be), this.state = ge, this.name = "";
+ }
+ /**
+ * Handle a complete self-closing tag. This parser code calls this once it has
+ * seen the whole tag. This method checks for well-formeness and then emits
+ * ``onopentag`` and ``onclosetag``.
+ */
+ }, {
+ key: "openSelfClosingTag",
+ value: function() {
+ var me, Fe, Be;
+ this.processAttribs();
+ var dt = this.tags, St = this.tag;
+ St.isSelfClosing = !0, (me = this.openTagHandler) === null || me === void 0 || me.call(this, St), (Fe = this.closeTagHandler) === null || Fe === void 0 || Fe.call(this, St);
+ var Ht = this.tag = (Be = dt[dt.length - 1]) !== null && Be !== void 0 ? Be : null;
+ Ht === null && (this.closedRoot = !0), this.state = ge, this.name = "";
+ }
+ /**
+ * Handle a complete close tag. This parser code calls this once it has seen
+ * the whole tag. This method checks for well-formeness and then emits
+ * ``onclosetag``.
+ */
+ }, {
+ key: "closeTag",
+ value: function() {
+ var me = this.tags, Fe = this.name;
+ if (this.state = ge, this.name = "", Fe === "") {
+ this.fail("weird empty close tag."), this.text += ">";
+ return;
+ }
+ for (var Be = this.closeTagHandler, dt = me.length; dt-- > 0; ) {
+ var St = this.tag = me.pop();
+ if (this.topNS = St.ns, Be == null || Be(St), St.name === Fe)
+ break;
+ this.fail("unexpected close tag.");
+ }
+ dt === 0 ? this.closedRoot = !0 : dt < 0 && (this.fail("unmatched closing tag: ".concat(Fe, ".")), this.text += "".concat(Fe, ">"));
+ }
+ /**
+ * Resolves an entity. Makes any necessary well-formedness checks.
+ *
+ * @param entity The entity to resolve.
+ *
+ * @returns The parsed entity.
+ */
+ }, {
+ key: "parseEntity",
+ value: function(me) {
+ if (me[0] !== "#") {
+ var Fe = this.ENTITIES[me];
+ return Fe !== void 0 ? Fe : (this.fail(this.isName(me) ? "undefined entity." : "disallowed character in entity name."), "&".concat(me, ";"));
+ }
+ var Be = NaN;
+ return me[1] === "x" && /^#x[0-9a-f]+$/i.test(me) ? Be = parseInt(me.slice(2), 16) : /^#[0-9]+$/.test(me) && (Be = parseInt(me.slice(1), 10)), this.isChar(Be) ? String.fromCodePoint(Be) : (this.fail("malformed character entity."), "&".concat(me, ";"));
+ }
+ }, {
+ key: "closed",
+ get: function() {
+ return this._closed;
+ }
+ }, {
+ key: "position",
+ get: function() {
+ return this.chunkPosition + this.i;
+ }
+ /**
+ * The column number of the next character to be read by the parser. *
+ * This field is zero-based. (The first column in a line is 0.)
+ *
+ * This field reports the index at which the next character would be in the
+ * line if the line were represented as a JavaScript string. Note that this
+ * *can* be different to a count based on the number of *Unicode characters*
+ * due to how JavaScript handles astral plane characters.
+ *
+ * See [[column]] for a number that corresponds to a count of Unicode
+ * characters.
+ */
+ }, {
+ key: "columnIndex",
+ get: function() {
+ return this.position - this.positionAtNewLine;
+ }
+ }]), vt;
+ }();
+ _.SaxesParser = Ur;
+ }, { "xmlchars/xml/1.0/ed5": 541, "xmlchars/xml/1.1/ed2": 542, "xmlchars/xmlns/1.0/ed3": 543 }], 497: [function(e, x, _) {
+ (function(u) {
+ x.exports = typeof u == "function" ? u : function() {
+ var g = [].slice.apply(arguments);
+ g.splice(1, 0, 0), setTimeout.apply(null, g);
+ };
+ }).call(this, e("timers").setImmediate);
+ }, { timers: 521 }], 498: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer;
+ function m(g, b) {
+ this._block = u.alloc(g), this._finalSize = b, this._blockSize = g, this._len = 0;
+ }
+ m.prototype.update = function(g, b) {
+ typeof g == "string" && (b = b || "utf8", g = u.from(g, b));
+ for (var w = this._block, f = this._blockSize, y = g.length, h = this._len, l = 0; l < y; ) {
+ for (var d = h % f, s = Math.min(y - l, f - d), v = 0; v < s; v++)
+ w[d + v] = g[l + v];
+ h += s, l += s, h % f === 0 && this._update(w);
+ }
+ return this._len += y, this;
+ }, m.prototype.digest = function(g) {
+ var b = this._len % this._blockSize;
+ this._block[b] = 128, this._block.fill(0, b + 1), b >= this._finalSize && (this._update(this._block), this._block.fill(0));
+ var w = this._len * 8;
+ if (w <= 4294967295)
+ this._block.writeUInt32BE(w, this._blockSize - 4);
+ else {
+ var f = (w & 4294967295) >>> 0, y = (w - f) / 4294967296;
+ this._block.writeUInt32BE(y, this._blockSize - 8), this._block.writeUInt32BE(f, this._blockSize - 4);
+ }
+ this._update(this._block);
+ var h = this._hash();
+ return g ? h.toString(g) : h;
+ }, m.prototype._update = function() {
+ throw new Error("_update must be implemented by subclass");
+ }, x.exports = m;
+ }, { "safe-buffer": 494 }], 499: [function(e, x, _) {
+ var u = x.exports = function(g) {
+ g = g.toLowerCase();
+ var b = u[g];
+ if (!b)
+ throw new Error(g + " is not supported (we accept pull requests)");
+ return new b();
+ };
+ u.sha = e("./sha"), u.sha1 = e("./sha1"), u.sha224 = e("./sha224"), u.sha256 = e("./sha256"), u.sha384 = e("./sha384"), u.sha512 = e("./sha512");
+ }, { "./sha": 500, "./sha1": 501, "./sha224": 502, "./sha256": 503, "./sha384": 504, "./sha512": 505 }], 500: [function(e, x, _) {
+ var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], w = new Array(80);
+ function f() {
+ this.init(), this._w = w, m.call(this, 64, 56);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
+ };
+ function y(d) {
+ return d << 5 | d >>> 27;
+ }
+ function h(d) {
+ return d << 30 | d >>> 2;
+ }
+ function l(d, s, v, c) {
+ return d === 0 ? s & v | ~s & c : d === 2 ? s & v | s & c | v & c : s ^ v ^ c;
+ }
+ f.prototype._update = function(d) {
+ for (var s = this._w, v = this._a | 0, c = this._b | 0, a = this._c | 0, r = this._d | 0, t = this._e | 0, i = 0; i < 16; ++i)
+ s[i] = d.readInt32BE(i * 4);
+ for (; i < 80; ++i)
+ s[i] = s[i - 3] ^ s[i - 8] ^ s[i - 14] ^ s[i - 16];
+ for (var n = 0; n < 80; ++n) {
+ var o = ~~(n / 20), p = y(v) + l(o, c, a, r) + t + s[n] + b[o] | 0;
+ t = r, r = a, a = h(c), c = v, v = p;
+ }
+ this._a = v + this._a | 0, this._b = c + this._b | 0, this._c = a + this._c | 0, this._d = r + this._d | 0, this._e = t + this._e | 0;
+ }, f.prototype._hash = function() {
+ var d = g.allocUnsafe(20);
+ return d.writeInt32BE(this._a | 0, 0), d.writeInt32BE(this._b | 0, 4), d.writeInt32BE(this._c | 0, 8), d.writeInt32BE(this._d | 0, 12), d.writeInt32BE(this._e | 0, 16), d;
+ }, x.exports = f;
+ }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 501: [function(e, x, _) {
+ var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], w = new Array(80);
+ function f() {
+ this.init(), this._w = w, m.call(this, 64, 56);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
+ };
+ function y(s) {
+ return s << 1 | s >>> 31;
+ }
+ function h(s) {
+ return s << 5 | s >>> 27;
+ }
+ function l(s) {
+ return s << 30 | s >>> 2;
+ }
+ function d(s, v, c, a) {
+ return s === 0 ? v & c | ~v & a : s === 2 ? v & c | v & a | c & a : v ^ c ^ a;
+ }
+ f.prototype._update = function(s) {
+ for (var v = this._w, c = this._a | 0, a = this._b | 0, r = this._c | 0, t = this._d | 0, i = this._e | 0, n = 0; n < 16; ++n)
+ v[n] = s.readInt32BE(n * 4);
+ for (; n < 80; ++n)
+ v[n] = y(v[n - 3] ^ v[n - 8] ^ v[n - 14] ^ v[n - 16]);
+ for (var o = 0; o < 80; ++o) {
+ var p = ~~(o / 20), O = h(c) + d(p, a, r, t) + i + v[o] + b[p] | 0;
+ i = t, t = r, r = l(a), a = c, c = O;
+ }
+ this._a = c + this._a | 0, this._b = a + this._b | 0, this._c = r + this._c | 0, this._d = t + this._d | 0, this._e = i + this._e | 0;
+ }, f.prototype._hash = function() {
+ var s = g.allocUnsafe(20);
+ return s.writeInt32BE(this._a | 0, 0), s.writeInt32BE(this._b | 0, 4), s.writeInt32BE(this._c | 0, 8), s.writeInt32BE(this._d | 0, 12), s.writeInt32BE(this._e | 0, 16), s;
+ }, x.exports = f;
+ }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 502: [function(e, x, _) {
+ var u = e("inherits"), m = e("./sha256"), g = e("./hash"), b = e("safe-buffer").Buffer, w = new Array(64);
+ function f() {
+ this.init(), this._w = w, g.call(this, 64, 56);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
+ }, f.prototype._hash = function() {
+ var y = b.allocUnsafe(28);
+ return y.writeInt32BE(this._a, 0), y.writeInt32BE(this._b, 4), y.writeInt32BE(this._c, 8), y.writeInt32BE(this._d, 12), y.writeInt32BE(this._e, 16), y.writeInt32BE(this._f, 20), y.writeInt32BE(this._g, 24), y;
+ }, x.exports = f;
+ }, { "./hash": 498, "./sha256": 503, inherits: 387, "safe-buffer": 494 }], 503: [function(e, x, _) {
+ var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298], w = new Array(64);
+ function f() {
+ this.init(), this._w = w, m.call(this, 64, 56);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
+ };
+ function y(c, a, r) {
+ return r ^ c & (a ^ r);
+ }
+ function h(c, a, r) {
+ return c & a | r & (c | a);
+ }
+ function l(c) {
+ return (c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10);
+ }
+ function d(c) {
+ return (c >>> 6 | c << 26) ^ (c >>> 11 | c << 21) ^ (c >>> 25 | c << 7);
+ }
+ function s(c) {
+ return (c >>> 7 | c << 25) ^ (c >>> 18 | c << 14) ^ c >>> 3;
+ }
+ function v(c) {
+ return (c >>> 17 | c << 15) ^ (c >>> 19 | c << 13) ^ c >>> 10;
+ }
+ f.prototype._update = function(c) {
+ for (var a = this._w, r = this._a | 0, t = this._b | 0, i = this._c | 0, n = this._d | 0, o = this._e | 0, p = this._f | 0, O = this._g | 0, P = this._h | 0, F = 0; F < 16; ++F)
+ a[F] = c.readInt32BE(F * 4);
+ for (; F < 64; ++F)
+ a[F] = v(a[F - 2]) + a[F - 7] + s(a[F - 15]) + a[F - 16] | 0;
+ for (var z = 0; z < 64; ++z) {
+ var N = P + d(o) + y(o, p, O) + b[z] + a[z] | 0, M = l(r) + h(r, t, i) | 0;
+ P = O, O = p, p = o, o = n + N | 0, n = i, i = t, t = r, r = N + M | 0;
+ }
+ this._a = r + this._a | 0, this._b = t + this._b | 0, this._c = i + this._c | 0, this._d = n + this._d | 0, this._e = o + this._e | 0, this._f = p + this._f | 0, this._g = O + this._g | 0, this._h = P + this._h | 0;
+ }, f.prototype._hash = function() {
+ var c = g.allocUnsafe(32);
+ return c.writeInt32BE(this._a, 0), c.writeInt32BE(this._b, 4), c.writeInt32BE(this._c, 8), c.writeInt32BE(this._d, 12), c.writeInt32BE(this._e, 16), c.writeInt32BE(this._f, 20), c.writeInt32BE(this._g, 24), c.writeInt32BE(this._h, 28), c;
+ }, x.exports = f;
+ }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 504: [function(e, x, _) {
+ var u = e("inherits"), m = e("./sha512"), g = e("./hash"), b = e("safe-buffer").Buffer, w = new Array(160);
+ function f() {
+ this.init(), this._w = w, g.call(this, 128, 112);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
+ }, f.prototype._hash = function() {
+ var y = b.allocUnsafe(48);
+ function h(l, d, s) {
+ y.writeInt32BE(l, s), y.writeInt32BE(d, s + 4);
+ }
+ return h(this._ah, this._al, 0), h(this._bh, this._bl, 8), h(this._ch, this._cl, 16), h(this._dh, this._dl, 24), h(this._eh, this._el, 32), h(this._fh, this._fl, 40), y;
+ }, x.exports = f;
+ }, { "./hash": 498, "./sha512": 505, inherits: 387, "safe-buffer": 494 }], 505: [function(e, x, _) {
+ var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], w = new Array(160);
+ function f() {
+ this.init(), this._w = w, m.call(this, 128, 112);
+ }
+ u(f, m), f.prototype.init = function() {
+ return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
+ };
+ function y(t, i, n) {
+ return n ^ t & (i ^ n);
+ }
+ function h(t, i, n) {
+ return t & i | n & (t | i);
+ }
+ function l(t, i) {
+ return (t >>> 28 | i << 4) ^ (i >>> 2 | t << 30) ^ (i >>> 7 | t << 25);
+ }
+ function d(t, i) {
+ return (t >>> 14 | i << 18) ^ (t >>> 18 | i << 14) ^ (i >>> 9 | t << 23);
+ }
+ function s(t, i) {
+ return (t >>> 1 | i << 31) ^ (t >>> 8 | i << 24) ^ t >>> 7;
+ }
+ function v(t, i) {
+ return (t >>> 1 | i << 31) ^ (t >>> 8 | i << 24) ^ (t >>> 7 | i << 25);
+ }
+ function c(t, i) {
+ return (t >>> 19 | i << 13) ^ (i >>> 29 | t << 3) ^ t >>> 6;
+ }
+ function a(t, i) {
+ return (t >>> 19 | i << 13) ^ (i >>> 29 | t << 3) ^ (t >>> 6 | i << 26);
+ }
+ function r(t, i) {
+ return t >>> 0 < i >>> 0 ? 1 : 0;
+ }
+ f.prototype._update = function(t) {
+ for (var i = this._w, n = this._ah | 0, o = this._bh | 0, p = this._ch | 0, O = this._dh | 0, P = this._eh | 0, F = this._fh | 0, z = this._gh | 0, N = this._hh | 0, M = this._al | 0, I = this._bl | 0, R = this._cl | 0, C = this._dl | 0, E = this._el | 0, A = this._fl | 0, L = this._gl | 0, $ = this._hl | 0, W = 0; W < 32; W += 2)
+ i[W] = t.readInt32BE(W * 4), i[W + 1] = t.readInt32BE(W * 4 + 4);
+ for (; W < 160; W += 2) {
+ var U = i[W - 30], D = i[W - 15 * 2 + 1], B = s(U, D), j = v(D, U);
+ U = i[W - 2 * 2], D = i[W - 2 * 2 + 1];
+ var V = c(U, D), re = a(D, U), ee = i[W - 7 * 2], ce = i[W - 7 * 2 + 1], ve = i[W - 16 * 2], ge = i[W - 16 * 2 + 1], oe = j + ce | 0, J = B + ee + r(oe, j) | 0;
+ oe = oe + re | 0, J = J + V + r(oe, re) | 0, oe = oe + ge | 0, J = J + ve + r(oe, ge) | 0, i[W] = J, i[W + 1] = oe;
+ }
+ for (var Q = 0; Q < 160; Q += 2) {
+ J = i[Q], oe = i[Q + 1];
+ var he = h(n, o, p), ke = h(M, I, R), ne = l(n, M), se = l(M, n), Ce = d(P, E), q = d(E, P), G = b[Q], Y = b[Q + 1], fe = y(P, F, z), we = y(E, A, L), _e = $ + q | 0, je = N + Ce + r(_e, $) | 0;
+ _e = _e + we | 0, je = je + fe + r(_e, we) | 0, _e = _e + Y | 0, je = je + G + r(_e, Y) | 0, _e = _e + oe | 0, je = je + J + r(_e, oe) | 0;
+ var Ye = se + ke | 0, nt = ne + he + r(Ye, se) | 0;
+ N = z, $ = L, z = F, L = A, F = P, A = E, E = C + _e | 0, P = O + je + r(E, C) | 0, O = p, C = R, p = o, R = I, o = n, I = M, M = _e + Ye | 0, n = je + nt + r(M, _e) | 0;
+ }
+ this._al = this._al + M | 0, this._bl = this._bl + I | 0, this._cl = this._cl + R | 0, this._dl = this._dl + C | 0, this._el = this._el + E | 0, this._fl = this._fl + A | 0, this._gl = this._gl + L | 0, this._hl = this._hl + $ | 0, this._ah = this._ah + n + r(this._al, M) | 0, this._bh = this._bh + o + r(this._bl, I) | 0, this._ch = this._ch + p + r(this._cl, R) | 0, this._dh = this._dh + O + r(this._dl, C) | 0, this._eh = this._eh + P + r(this._el, E) | 0, this._fh = this._fh + F + r(this._fl, A) | 0, this._gh = this._gh + z + r(this._gl, L) | 0, this._hh = this._hh + N + r(this._hl, $) | 0;
+ }, f.prototype._hash = function() {
+ var t = g.allocUnsafe(64);
+ function i(n, o, p) {
+ t.writeInt32BE(n, p), t.writeInt32BE(o, p + 4);
+ }
+ return i(this._ah, this._al, 0), i(this._bh, this._bl, 8), i(this._ch, this._cl, 16), i(this._dh, this._dl, 24), i(this._eh, this._el, 32), i(this._fh, this._fl, 40), i(this._gh, this._gl, 48), i(this._hh, this._hl, 56), t;
+ }, x.exports = f;
+ }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 506: [function(e, x, _) {
+ x.exports = g;
+ var u = e("events").EventEmitter, m = e("inherits");
+ m(g, u), g.Readable = e("readable-stream/readable.js"), g.Writable = e("readable-stream/writable.js"), g.Duplex = e("readable-stream/duplex.js"), g.Transform = e("readable-stream/transform.js"), g.PassThrough = e("readable-stream/passthrough.js"), g.Stream = g;
+ function g() {
+ u.call(this);
+ }
+ g.prototype.pipe = function(b, w) {
+ var f = this;
+ function y(a) {
+ b.writable && b.write(a) === !1 && f.pause && f.pause();
+ }
+ f.on("data", y);
+ function h() {
+ f.readable && f.resume && f.resume();
+ }
+ b.on("drain", h), !b._isStdio && (!w || w.end !== !1) && (f.on("end", d), f.on("close", s));
+ var l = !1;
+ function d() {
+ l || (l = !0, b.end());
+ }
+ function s() {
+ l || (l = !0, typeof b.destroy == "function" && b.destroy());
+ }
+ function v(a) {
+ if (c(), u.listenerCount(this, "error") === 0)
+ throw a;
+ }
+ f.on("error", v), b.on("error", v);
+ function c() {
+ f.removeListener("data", y), b.removeListener("drain", h), f.removeListener("end", d), f.removeListener("close", s), f.removeListener("error", v), b.removeListener("error", v), f.removeListener("end", c), f.removeListener("close", c), b.removeListener("close", c);
+ }
+ return f.on("end", c), f.on("close", c), b.on("close", c), b.emit("pipe", f), b;
+ };
+ }, { events: 367, inherits: 387, "readable-stream/duplex.js": 507, "readable-stream/passthrough.js": 516, "readable-stream/readable.js": 517, "readable-stream/transform.js": 518, "readable-stream/writable.js": 519 }], 507: [function(e, x, _) {
+ x.exports = e("./lib/_stream_duplex.js");
+ }, { "./lib/_stream_duplex.js": 508 }], 508: [function(e, x, _) {
+ var u = e("process-nextick-args"), m = Object.keys || function(v) {
+ var c = [];
+ for (var a in v)
+ c.push(a);
+ return c;
+ };
+ x.exports = l;
+ var g = Object.create(e("core-util-is"));
+ g.inherits = e("inherits");
+ var b = e("./_stream_readable"), w = e("./_stream_writable");
+ g.inherits(l, b);
+ for (var f = m(w.prototype), y = 0; y < f.length; y++) {
+ var h = f[y];
+ l.prototype[h] || (l.prototype[h] = w.prototype[h]);
+ }
+ function l(v) {
+ if (!(this instanceof l))
+ return new l(v);
+ b.call(this, v), w.call(this, v), v && v.readable === !1 && (this.readable = !1), v && v.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, v && v.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", d);
+ }
+ Object.defineProperty(l.prototype, "writableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ });
+ function d() {
+ this.allowHalfOpen || this._writableState.ended || u.nextTick(s, this);
+ }
+ function s(v) {
+ v.end();
+ }
+ Object.defineProperty(l.prototype, "destroyed", {
+ get: function() {
+ return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
+ },
+ set: function(c) {
+ this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = c, this._writableState.destroyed = c);
+ }
+ }), l.prototype._destroy = function(v, c) {
+ this.push(null), this.end(), u.nextTick(c, v);
+ };
+ }, { "./_stream_readable": 510, "./_stream_writable": 512, "core-util-is": 328, inherits: 387, "process-nextick-args": 466 }], 509: [function(e, x, _) {
+ x.exports = g;
+ var u = e("./_stream_transform"), m = Object.create(e("core-util-is"));
+ m.inherits = e("inherits"), m.inherits(g, u);
+ function g(b) {
+ if (!(this instanceof g))
+ return new g(b);
+ u.call(this, b);
+ }
+ g.prototype._transform = function(b, w, f) {
+ f(null, b);
+ };
+ }, { "./_stream_transform": 511, "core-util-is": 328, inherits: 387 }], 510: [function(e, x, _) {
+ (function(u, m) {
+ var g = e("process-nextick-args");
+ x.exports = O;
+ var b = e("isarray"), w;
+ O.ReadableState = p, e("events").EventEmitter;
+ var f = function(Q, he) {
+ return Q.listeners(he).length;
+ }, y = e("./internal/streams/stream"), h = e("safe-buffer").Buffer, l = m.Uint8Array || function() {
+ };
+ function d(J) {
+ return h.from(J);
+ }
+ function s(J) {
+ return h.isBuffer(J) || J instanceof l;
+ }
+ var v = Object.create(e("core-util-is"));
+ v.inherits = e("inherits");
+ var c = e("util"), a = void 0;
+ c && c.debuglog ? a = c.debuglog("stream") : a = function() {
+ };
+ var r = e("./internal/streams/BufferList"), t = e("./internal/streams/destroy"), i;
+ v.inherits(O, y);
+ var n = ["error", "close", "destroy", "pause", "resume"];
+ function o(J, Q, he) {
+ if (typeof J.prependListener == "function")
+ return J.prependListener(Q, he);
+ !J._events || !J._events[Q] ? J.on(Q, he) : b(J._events[Q]) ? J._events[Q].unshift(he) : J._events[Q] = [he, J._events[Q]];
+ }
+ function p(J, Q) {
+ w = w || e("./_stream_duplex"), J = J || {};
+ var he = Q instanceof w;
+ this.objectMode = !!J.objectMode, he && (this.objectMode = this.objectMode || !!J.readableObjectMode);
+ var ke = J.highWaterMark, ne = J.readableHighWaterMark, se = this.objectMode ? 16 : 16 * 1024;
+ ke || ke === 0 ? this.highWaterMark = ke : he && (ne || ne === 0) ? this.highWaterMark = ne : this.highWaterMark = se, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new r(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = J.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, J.encoding && (i || (i = e("string_decoder/").StringDecoder), this.decoder = new i(J.encoding), this.encoding = J.encoding);
+ }
+ function O(J) {
+ if (w = w || e("./_stream_duplex"), !(this instanceof O))
+ return new O(J);
+ this._readableState = new p(J, this), this.readable = !0, J && (typeof J.read == "function" && (this._read = J.read), typeof J.destroy == "function" && (this._destroy = J.destroy)), y.call(this);
+ }
+ Object.defineProperty(O.prototype, "destroyed", {
+ get: function() {
+ return this._readableState === void 0 ? !1 : this._readableState.destroyed;
+ },
+ set: function(Q) {
+ this._readableState && (this._readableState.destroyed = Q);
+ }
+ }), O.prototype.destroy = t.destroy, O.prototype._undestroy = t.undestroy, O.prototype._destroy = function(J, Q) {
+ this.push(null), Q(J);
+ }, O.prototype.push = function(J, Q) {
+ var he = this._readableState, ke;
+ return he.objectMode ? ke = !0 : typeof J == "string" && (Q = Q || he.defaultEncoding, Q !== he.encoding && (J = h.from(J, Q), Q = ""), ke = !0), P(this, J, Q, !1, ke);
+ }, O.prototype.unshift = function(J) {
+ return P(this, J, null, !0, !1);
+ };
+ function P(J, Q, he, ke, ne) {
+ var se = J._readableState;
+ if (Q === null)
+ se.reading = !1, C(J, se);
+ else {
+ var Ce;
+ ne || (Ce = z(se, Q)), Ce ? J.emit("error", Ce) : se.objectMode || Q && Q.length > 0 ? (typeof Q != "string" && !se.objectMode && Object.getPrototypeOf(Q) !== h.prototype && (Q = d(Q)), ke ? se.endEmitted ? J.emit("error", new Error("stream.unshift() after end event")) : F(J, se, Q, !0) : se.ended ? J.emit("error", new Error("stream.push() after EOF")) : (se.reading = !1, se.decoder && !he ? (Q = se.decoder.write(Q), se.objectMode || Q.length !== 0 ? F(J, se, Q, !1) : L(J, se)) : F(J, se, Q, !1))) : ke || (se.reading = !1);
+ }
+ return N(se);
+ }
+ function F(J, Q, he, ke) {
+ Q.flowing && Q.length === 0 && !Q.sync ? (J.emit("data", he), J.read(0)) : (Q.length += Q.objectMode ? 1 : he.length, ke ? Q.buffer.unshift(he) : Q.buffer.push(he), Q.needReadable && E(J)), L(J, Q);
+ }
+ function z(J, Q) {
+ var he;
+ return !s(Q) && typeof Q != "string" && Q !== void 0 && !J.objectMode && (he = new TypeError("Invalid non-string/buffer chunk")), he;
+ }
+ function N(J) {
+ return !J.ended && (J.needReadable || J.length < J.highWaterMark || J.length === 0);
+ }
+ O.prototype.isPaused = function() {
+ return this._readableState.flowing === !1;
+ }, O.prototype.setEncoding = function(J) {
+ return i || (i = e("string_decoder/").StringDecoder), this._readableState.decoder = new i(J), this._readableState.encoding = J, this;
+ };
+ var M = 8388608;
+ function I(J) {
+ return J >= M ? J = M : (J--, J |= J >>> 1, J |= J >>> 2, J |= J >>> 4, J |= J >>> 8, J |= J >>> 16, J++), J;
+ }
+ function R(J, Q) {
+ return J <= 0 || Q.length === 0 && Q.ended ? 0 : Q.objectMode ? 1 : J !== J ? Q.flowing && Q.length ? Q.buffer.head.data.length : Q.length : (J > Q.highWaterMark && (Q.highWaterMark = I(J)), J <= Q.length ? J : Q.ended ? Q.length : (Q.needReadable = !0, 0));
+ }
+ O.prototype.read = function(J) {
+ a("read", J), J = parseInt(J, 10);
+ var Q = this._readableState, he = J;
+ if (J !== 0 && (Q.emittedReadable = !1), J === 0 && Q.needReadable && (Q.length >= Q.highWaterMark || Q.ended))
+ return a("read: emitReadable", Q.length, Q.ended), Q.length === 0 && Q.ended ? ve(this) : E(this), null;
+ if (J = R(J, Q), J === 0 && Q.ended)
+ return Q.length === 0 && ve(this), null;
+ var ke = Q.needReadable;
+ a("need readable", ke), (Q.length === 0 || Q.length - J < Q.highWaterMark) && (ke = !0, a("length less than watermark", ke)), Q.ended || Q.reading ? (ke = !1, a("reading or ended", ke)) : ke && (a("do read"), Q.reading = !0, Q.sync = !0, Q.length === 0 && (Q.needReadable = !0), this._read(Q.highWaterMark), Q.sync = !1, Q.reading || (J = R(he, Q)));
+ var ne;
+ return J > 0 ? ne = V(J, Q) : ne = null, ne === null ? (Q.needReadable = !0, J = 0) : Q.length -= J, Q.length === 0 && (Q.ended || (Q.needReadable = !0), he !== J && Q.ended && ve(this)), ne !== null && this.emit("data", ne), ne;
+ };
+ function C(J, Q) {
+ if (!Q.ended) {
+ if (Q.decoder) {
+ var he = Q.decoder.end();
+ he && he.length && (Q.buffer.push(he), Q.length += Q.objectMode ? 1 : he.length);
+ }
+ Q.ended = !0, E(J);
+ }
+ }
+ function E(J) {
+ var Q = J._readableState;
+ Q.needReadable = !1, Q.emittedReadable || (a("emitReadable", Q.flowing), Q.emittedReadable = !0, Q.sync ? g.nextTick(A, J) : A(J));
+ }
+ function A(J) {
+ a("emit readable"), J.emit("readable"), j(J);
+ }
+ function L(J, Q) {
+ Q.readingMore || (Q.readingMore = !0, g.nextTick($, J, Q));
+ }
+ function $(J, Q) {
+ for (var he = Q.length; !Q.reading && !Q.flowing && !Q.ended && Q.length < Q.highWaterMark && (a("maybeReadMore read 0"), J.read(0), he !== Q.length); )
+ he = Q.length;
+ Q.readingMore = !1;
+ }
+ O.prototype._read = function(J) {
+ this.emit("error", new Error("_read() is not implemented"));
+ }, O.prototype.pipe = function(J, Q) {
+ var he = this, ke = this._readableState;
+ switch (ke.pipesCount) {
+ case 0:
+ ke.pipes = J;
+ break;
+ case 1:
+ ke.pipes = [ke.pipes, J];
+ break;
+ default:
+ ke.pipes.push(J);
+ break;
+ }
+ ke.pipesCount += 1, a("pipe count=%d opts=%j", ke.pipesCount, Q);
+ var ne = (!Q || Q.end !== !1) && J !== u.stdout && J !== u.stderr, se = ne ? q : ut;
+ ke.endEmitted ? g.nextTick(se) : he.once("end", se), J.on("unpipe", Ce);
+ function Ce(ot, Ue) {
+ a("onunpipe"), ot === he && Ue && Ue.hasUnpiped === !1 && (Ue.hasUnpiped = !0, fe());
+ }
+ function q() {
+ a("onend"), J.end();
+ }
+ var G = W(he);
+ J.on("drain", G);
+ var Y = !1;
+ function fe() {
+ a("cleanup"), J.removeListener("close", Ye), J.removeListener("finish", nt), J.removeListener("drain", G), J.removeListener("error", je), J.removeListener("unpipe", Ce), he.removeListener("end", q), he.removeListener("end", ut), he.removeListener("data", _e), Y = !0, ke.awaitDrain && (!J._writableState || J._writableState.needDrain) && G();
+ }
+ var we = !1;
+ he.on("data", _e);
+ function _e(ot) {
+ a("ondata"), we = !1;
+ var Ue = J.write(ot);
+ Ue === !1 && !we && ((ke.pipesCount === 1 && ke.pipes === J || ke.pipesCount > 1 && oe(ke.pipes, J) !== -1) && !Y && (a("false write response, pause", he._readableState.awaitDrain), he._readableState.awaitDrain++, we = !0), he.pause());
+ }
+ function je(ot) {
+ a("onerror", ot), ut(), J.removeListener("error", je), f(J, "error") === 0 && J.emit("error", ot);
+ }
+ o(J, "error", je);
+ function Ye() {
+ J.removeListener("finish", nt), ut();
+ }
+ J.once("close", Ye);
+ function nt() {
+ a("onfinish"), J.removeListener("close", Ye), ut();
+ }
+ J.once("finish", nt);
+ function ut() {
+ a("unpipe"), he.unpipe(J);
+ }
+ return J.emit("pipe", he), ke.flowing || (a("pipe resume"), he.resume()), J;
+ };
+ function W(J) {
+ return function() {
+ var Q = J._readableState;
+ a("pipeOnDrain", Q.awaitDrain), Q.awaitDrain && Q.awaitDrain--, Q.awaitDrain === 0 && f(J, "data") && (Q.flowing = !0, j(J));
+ };
+ }
+ O.prototype.unpipe = function(J) {
+ var Q = this._readableState, he = {
+ hasUnpiped: !1
+ };
+ if (Q.pipesCount === 0)
+ return this;
+ if (Q.pipesCount === 1)
+ return J && J !== Q.pipes ? this : (J || (J = Q.pipes), Q.pipes = null, Q.pipesCount = 0, Q.flowing = !1, J && J.emit("unpipe", this, he), this);
+ if (!J) {
+ var ke = Q.pipes, ne = Q.pipesCount;
+ Q.pipes = null, Q.pipesCount = 0, Q.flowing = !1;
+ for (var se = 0; se < ne; se++)
+ ke[se].emit("unpipe", this, he);
+ return this;
+ }
+ var Ce = oe(Q.pipes, J);
+ return Ce === -1 ? this : (Q.pipes.splice(Ce, 1), Q.pipesCount -= 1, Q.pipesCount === 1 && (Q.pipes = Q.pipes[0]), J.emit("unpipe", this, he), this);
+ }, O.prototype.on = function(J, Q) {
+ var he = y.prototype.on.call(this, J, Q);
+ if (J === "data")
+ this._readableState.flowing !== !1 && this.resume();
+ else if (J === "readable") {
+ var ke = this._readableState;
+ !ke.endEmitted && !ke.readableListening && (ke.readableListening = ke.needReadable = !0, ke.emittedReadable = !1, ke.reading ? ke.length && E(this) : g.nextTick(U, this));
+ }
+ return he;
+ }, O.prototype.addListener = O.prototype.on;
+ function U(J) {
+ a("readable nexttick read 0"), J.read(0);
+ }
+ O.prototype.resume = function() {
+ var J = this._readableState;
+ return J.flowing || (a("resume"), J.flowing = !0, D(this, J)), this;
+ };
+ function D(J, Q) {
+ Q.resumeScheduled || (Q.resumeScheduled = !0, g.nextTick(B, J, Q));
+ }
+ function B(J, Q) {
+ Q.reading || (a("resume read 0"), J.read(0)), Q.resumeScheduled = !1, Q.awaitDrain = 0, J.emit("resume"), j(J), Q.flowing && !Q.reading && J.read(0);
+ }
+ O.prototype.pause = function() {
+ return a("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (a("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
+ };
+ function j(J) {
+ var Q = J._readableState;
+ for (a("flow", Q.flowing); Q.flowing && J.read() !== null; )
+ ;
+ }
+ O.prototype.wrap = function(J) {
+ var Q = this, he = this._readableState, ke = !1;
+ J.on("end", function() {
+ if (a("wrapped end"), he.decoder && !he.ended) {
+ var Ce = he.decoder.end();
+ Ce && Ce.length && Q.push(Ce);
+ }
+ Q.push(null);
+ }), J.on("data", function(Ce) {
+ if (a("wrapped data"), he.decoder && (Ce = he.decoder.write(Ce)), !(he.objectMode && Ce == null) && !(!he.objectMode && (!Ce || !Ce.length))) {
+ var q = Q.push(Ce);
+ q || (ke = !0, J.pause());
+ }
+ });
+ for (var ne in J)
+ this[ne] === void 0 && typeof J[ne] == "function" && (this[ne] = function(Ce) {
+ return function() {
+ return J[Ce].apply(J, arguments);
+ };
+ }(ne));
+ for (var se = 0; se < n.length; se++)
+ J.on(n[se], this.emit.bind(this, n[se]));
+ return this._read = function(Ce) {
+ a("wrapped _read", Ce), ke && (ke = !1, J.resume());
+ }, this;
+ }, Object.defineProperty(O.prototype, "readableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._readableState.highWaterMark;
+ }
+ }), O._fromList = V;
+ function V(J, Q) {
+ if (Q.length === 0)
+ return null;
+ var he;
+ return Q.objectMode ? he = Q.buffer.shift() : !J || J >= Q.length ? (Q.decoder ? he = Q.buffer.join("") : Q.buffer.length === 1 ? he = Q.buffer.head.data : he = Q.buffer.concat(Q.length), Q.buffer.clear()) : he = re(J, Q.buffer, Q.decoder), he;
+ }
+ function re(J, Q, he) {
+ var ke;
+ return J < Q.head.data.length ? (ke = Q.head.data.slice(0, J), Q.head.data = Q.head.data.slice(J)) : J === Q.head.data.length ? ke = Q.shift() : ke = he ? ee(J, Q) : ce(J, Q), ke;
+ }
+ function ee(J, Q) {
+ var he = Q.head, ke = 1, ne = he.data;
+ for (J -= ne.length; he = he.next; ) {
+ var se = he.data, Ce = J > se.length ? se.length : J;
+ if (Ce === se.length ? ne += se : ne += se.slice(0, J), J -= Ce, J === 0) {
+ Ce === se.length ? (++ke, he.next ? Q.head = he.next : Q.head = Q.tail = null) : (Q.head = he, he.data = se.slice(Ce));
+ break;
+ }
+ ++ke;
+ }
+ return Q.length -= ke, ne;
+ }
+ function ce(J, Q) {
+ var he = h.allocUnsafe(J), ke = Q.head, ne = 1;
+ for (ke.data.copy(he), J -= ke.data.length; ke = ke.next; ) {
+ var se = ke.data, Ce = J > se.length ? se.length : J;
+ if (se.copy(he, he.length - J, 0, Ce), J -= Ce, J === 0) {
+ Ce === se.length ? (++ne, ke.next ? Q.head = ke.next : Q.head = Q.tail = null) : (Q.head = ke, ke.data = se.slice(Ce));
+ break;
+ }
+ ++ne;
+ }
+ return Q.length -= ne, he;
+ }
+ function ve(J) {
+ var Q = J._readableState;
+ if (Q.length > 0)
+ throw new Error('"endReadable()" called on non-empty stream');
+ Q.endEmitted || (Q.ended = !0, g.nextTick(ge, Q, J));
+ }
+ function ge(J, Q) {
+ !J.endEmitted && J.length === 0 && (J.endEmitted = !0, Q.readable = !1, Q.emit("end"));
+ }
+ function oe(J, Q) {
+ for (var he = 0, ke = J.length; he < ke; he++)
+ if (J[he] === Q)
+ return he;
+ return -1;
+ }
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { "./_stream_duplex": 508, "./internal/streams/BufferList": 513, "./internal/streams/destroy": 514, "./internal/streams/stream": 515, _process: 467, "core-util-is": 328, events: 367, inherits: 387, isarray: 389, "process-nextick-args": 466, "safe-buffer": 494, "string_decoder/": 520, util: 185 }], 511: [function(e, x, _) {
+ x.exports = b;
+ var u = e("./_stream_duplex"), m = Object.create(e("core-util-is"));
+ m.inherits = e("inherits"), m.inherits(b, u);
+ function g(y, h) {
+ var l = this._transformState;
+ l.transforming = !1;
+ var d = l.writecb;
+ if (!d)
+ return this.emit("error", new Error("write callback called multiple times"));
+ l.writechunk = null, l.writecb = null, h != null && this.push(h), d(y);
+ var s = this._readableState;
+ s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark);
+ }
+ function b(y) {
+ if (!(this instanceof b))
+ return new b(y);
+ u.call(this, y), this._transformState = {
+ afterTransform: g.bind(this),
+ needTransform: !1,
+ transforming: !1,
+ writecb: null,
+ writechunk: null,
+ writeencoding: null
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, y && (typeof y.transform == "function" && (this._transform = y.transform), typeof y.flush == "function" && (this._flush = y.flush)), this.on("prefinish", w);
+ }
+ function w() {
+ var y = this;
+ typeof this._flush == "function" ? this._flush(function(h, l) {
+ f(y, h, l);
+ }) : f(this, null, null);
+ }
+ b.prototype.push = function(y, h) {
+ return this._transformState.needTransform = !1, u.prototype.push.call(this, y, h);
+ }, b.prototype._transform = function(y, h, l) {
+ throw new Error("_transform() is not implemented");
+ }, b.prototype._write = function(y, h, l) {
+ var d = this._transformState;
+ if (d.writecb = l, d.writechunk = y, d.writeencoding = h, !d.transforming) {
+ var s = this._readableState;
+ (d.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark);
+ }
+ }, b.prototype._read = function(y) {
+ var h = this._transformState;
+ h.writechunk !== null && h.writecb && !h.transforming ? (h.transforming = !0, this._transform(h.writechunk, h.writeencoding, h.afterTransform)) : h.needTransform = !0;
+ }, b.prototype._destroy = function(y, h) {
+ var l = this;
+ u.prototype._destroy.call(this, y, function(d) {
+ h(d), l.emit("close");
+ });
+ };
+ function f(y, h, l) {
+ if (h)
+ return y.emit("error", h);
+ if (l != null && y.push(l), y._writableState.length)
+ throw new Error("Calling transform done when ws.length != 0");
+ if (y._transformState.transforming)
+ throw new Error("Calling transform done when still transforming");
+ return y.push(null);
+ }
+ }, { "./_stream_duplex": 508, "core-util-is": 328, inherits: 387 }], 512: [function(e, x, _) {
+ (function(u, m, g) {
+ var b = e("process-nextick-args");
+ x.exports = o;
+ function w(B) {
+ var j = this;
+ this.next = null, this.entry = null, this.finish = function() {
+ D(j, B);
+ };
+ }
+ var f = !u.browser && ["v0.10", "v0.9."].indexOf(u.version.slice(0, 5)) > -1 ? g : b.nextTick, y;
+ o.WritableState = i;
+ var h = Object.create(e("core-util-is"));
+ h.inherits = e("inherits");
+ var l = {
+ deprecate: e("util-deprecate")
+ }, d = e("./internal/streams/stream"), s = e("safe-buffer").Buffer, v = m.Uint8Array || function() {
+ };
+ function c(B) {
+ return s.from(B);
+ }
+ function a(B) {
+ return s.isBuffer(B) || B instanceof v;
+ }
+ var r = e("./internal/streams/destroy");
+ h.inherits(o, d);
+ function t() {
+ }
+ function i(B, j) {
+ y = y || e("./_stream_duplex"), B = B || {};
+ var V = j instanceof y;
+ this.objectMode = !!B.objectMode, V && (this.objectMode = this.objectMode || !!B.writableObjectMode);
+ var re = B.highWaterMark, ee = B.writableHighWaterMark, ce = this.objectMode ? 16 : 16 * 1024;
+ re || re === 0 ? this.highWaterMark = re : V && (ee || ee === 0) ? this.highWaterMark = ee : this.highWaterMark = ce, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
+ var ve = B.decodeStrings === !1;
+ this.decodeStrings = !ve, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ge) {
+ I(j, ge);
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new w(this);
+ }
+ i.prototype.getBuffer = function() {
+ for (var j = this.bufferedRequest, V = []; j; )
+ V.push(j), j = j.next;
+ return V;
+ }, function() {
+ try {
+ Object.defineProperty(i.prototype, "buffer", {
+ get: l.deprecate(function() {
+ return this.getBuffer();
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
+ });
+ } catch (B) {
+ }
+ }();
+ var n;
+ typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (n = Function.prototype[Symbol.hasInstance], Object.defineProperty(o, Symbol.hasInstance, {
+ value: function(j) {
+ return n.call(this, j) ? !0 : this !== o ? !1 : j && j._writableState instanceof i;
+ }
+ })) : n = function(j) {
+ return j instanceof this;
+ };
+ function o(B) {
+ if (y = y || e("./_stream_duplex"), !n.call(o, this) && !(this instanceof y))
+ return new o(B);
+ this._writableState = new i(B, this), this.writable = !0, B && (typeof B.write == "function" && (this._write = B.write), typeof B.writev == "function" && (this._writev = B.writev), typeof B.destroy == "function" && (this._destroy = B.destroy), typeof B.final == "function" && (this._final = B.final)), d.call(this);
+ }
+ o.prototype.pipe = function() {
+ this.emit("error", new Error("Cannot pipe, not readable"));
+ };
+ function p(B, j) {
+ var V = new Error("write after end");
+ B.emit("error", V), b.nextTick(j, V);
+ }
+ function O(B, j, V, re) {
+ var ee = !0, ce = !1;
+ return V === null ? ce = new TypeError("May not write null values to stream") : typeof V != "string" && V !== void 0 && !j.objectMode && (ce = new TypeError("Invalid non-string/buffer chunk")), ce && (B.emit("error", ce), b.nextTick(re, ce), ee = !1), ee;
+ }
+ o.prototype.write = function(B, j, V) {
+ var re = this._writableState, ee = !1, ce = !re.objectMode && a(B);
+ return ce && !s.isBuffer(B) && (B = c(B)), typeof j == "function" && (V = j, j = null), ce ? j = "buffer" : j || (j = re.defaultEncoding), typeof V != "function" && (V = t), re.ended ? p(this, V) : (ce || O(this, re, B, V)) && (re.pendingcb++, ee = F(this, re, ce, B, j, V)), ee;
+ }, o.prototype.cork = function() {
+ var B = this._writableState;
+ B.corked++;
+ }, o.prototype.uncork = function() {
+ var B = this._writableState;
+ B.corked && (B.corked--, !B.writing && !B.corked && !B.finished && !B.bufferProcessing && B.bufferedRequest && E(this, B));
+ }, o.prototype.setDefaultEncoding = function(j) {
+ if (typeof j == "string" && (j = j.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((j + "").toLowerCase()) > -1))
+ throw new TypeError("Unknown encoding: " + j);
+ return this._writableState.defaultEncoding = j, this;
+ };
+ function P(B, j, V) {
+ return !B.objectMode && B.decodeStrings !== !1 && typeof j == "string" && (j = s.from(j, V)), j;
+ }
+ Object.defineProperty(o.prototype, "writableHighWaterMark", {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: !1,
+ get: function() {
+ return this._writableState.highWaterMark;
+ }
+ });
+ function F(B, j, V, re, ee, ce) {
+ if (!V) {
+ var ve = P(j, re, ee);
+ re !== ve && (V = !0, ee = "buffer", re = ve);
+ }
+ var ge = j.objectMode ? 1 : re.length;
+ j.length += ge;
+ var oe = j.length < j.highWaterMark;
+ if (oe || (j.needDrain = !0), j.writing || j.corked) {
+ var J = j.lastBufferedRequest;
+ j.lastBufferedRequest = {
+ chunk: re,
+ encoding: ee,
+ isBuf: V,
+ callback: ce,
+ next: null
+ }, J ? J.next = j.lastBufferedRequest : j.bufferedRequest = j.lastBufferedRequest, j.bufferedRequestCount += 1;
+ } else
+ z(B, j, !1, ge, re, ee, ce);
+ return oe;
+ }
+ function z(B, j, V, re, ee, ce, ve) {
+ j.writelen = re, j.writecb = ve, j.writing = !0, j.sync = !0, V ? B._writev(ee, j.onwrite) : B._write(ee, ce, j.onwrite), j.sync = !1;
+ }
+ function N(B, j, V, re, ee) {
+ --j.pendingcb, V ? (b.nextTick(ee, re), b.nextTick(W, B, j), B._writableState.errorEmitted = !0, B.emit("error", re)) : (ee(re), B._writableState.errorEmitted = !0, B.emit("error", re), W(B, j));
+ }
+ function M(B) {
+ B.writing = !1, B.writecb = null, B.length -= B.writelen, B.writelen = 0;
+ }
+ function I(B, j) {
+ var V = B._writableState, re = V.sync, ee = V.writecb;
+ if (M(V), j)
+ N(B, V, re, j, ee);
+ else {
+ var ce = A(V);
+ !ce && !V.corked && !V.bufferProcessing && V.bufferedRequest && E(B, V), re ? f(R, B, V, ce, ee) : R(B, V, ce, ee);
+ }
+ }
+ function R(B, j, V, re) {
+ V || C(B, j), j.pendingcb--, re(), W(B, j);
+ }
+ function C(B, j) {
+ j.length === 0 && j.needDrain && (j.needDrain = !1, B.emit("drain"));
+ }
+ function E(B, j) {
+ j.bufferProcessing = !0;
+ var V = j.bufferedRequest;
+ if (B._writev && V && V.next) {
+ var re = j.bufferedRequestCount, ee = new Array(re), ce = j.corkedRequestsFree;
+ ce.entry = V;
+ for (var ve = 0, ge = !0; V; )
+ ee[ve] = V, V.isBuf || (ge = !1), V = V.next, ve += 1;
+ ee.allBuffers = ge, z(B, j, !0, j.length, ee, "", ce.finish), j.pendingcb++, j.lastBufferedRequest = null, ce.next ? (j.corkedRequestsFree = ce.next, ce.next = null) : j.corkedRequestsFree = new w(j), j.bufferedRequestCount = 0;
+ } else {
+ for (; V; ) {
+ var oe = V.chunk, J = V.encoding, Q = V.callback, he = j.objectMode ? 1 : oe.length;
+ if (z(B, j, !1, he, oe, J, Q), V = V.next, j.bufferedRequestCount--, j.writing)
+ break;
+ }
+ V === null && (j.lastBufferedRequest = null);
+ }
+ j.bufferedRequest = V, j.bufferProcessing = !1;
+ }
+ o.prototype._write = function(B, j, V) {
+ V(new Error("_write() is not implemented"));
+ }, o.prototype._writev = null, o.prototype.end = function(B, j, V) {
+ var re = this._writableState;
+ typeof B == "function" ? (V = B, B = null, j = null) : typeof j == "function" && (V = j, j = null), B != null && this.write(B, j), re.corked && (re.corked = 1, this.uncork()), !re.ending && !re.finished && U(this, re, V);
+ };
+ function A(B) {
+ return B.ending && B.length === 0 && B.bufferedRequest === null && !B.finished && !B.writing;
+ }
+ function L(B, j) {
+ B._final(function(V) {
+ j.pendingcb--, V && B.emit("error", V), j.prefinished = !0, B.emit("prefinish"), W(B, j);
+ });
+ }
+ function $(B, j) {
+ !j.prefinished && !j.finalCalled && (typeof B._final == "function" ? (j.pendingcb++, j.finalCalled = !0, b.nextTick(L, B, j)) : (j.prefinished = !0, B.emit("prefinish")));
+ }
+ function W(B, j) {
+ var V = A(j);
+ return V && ($(B, j), j.pendingcb === 0 && (j.finished = !0, B.emit("finish"))), V;
+ }
+ function U(B, j, V) {
+ j.ending = !0, W(B, j), V && (j.finished ? b.nextTick(V) : B.once("finish", V)), j.ended = !0, B.writable = !1;
+ }
+ function D(B, j, V) {
+ var re = B.entry;
+ for (B.entry = null; re; ) {
+ var ee = re.callback;
+ j.pendingcb--, ee(V), re = re.next;
+ }
+ j.corkedRequestsFree ? j.corkedRequestsFree.next = B : j.corkedRequestsFree = B;
+ }
+ Object.defineProperty(o.prototype, "destroyed", {
+ get: function() {
+ return this._writableState === void 0 ? !1 : this._writableState.destroyed;
+ },
+ set: function(j) {
+ this._writableState && (this._writableState.destroyed = j);
+ }
+ }), o.prototype.destroy = r.destroy, o.prototype._undestroy = r.undestroy, o.prototype._destroy = function(B, j) {
+ this.end(), j(B);
+ };
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}, e("timers").setImmediate);
+ }, { "./_stream_duplex": 508, "./internal/streams/destroy": 514, "./internal/streams/stream": 515, _process: 467, "core-util-is": 328, inherits: 387, "process-nextick-args": 466, "safe-buffer": 494, timers: 521, "util-deprecate": 522 }], 513: [function(e, x, _) {
+ function u(w, f) {
+ if (!(w instanceof f))
+ throw new TypeError("Cannot call a class as a function");
+ }
+ var m = e("safe-buffer").Buffer, g = e("util");
+ function b(w, f, y) {
+ w.copy(f, y);
+ }
+ x.exports = function() {
+ function w() {
+ u(this, w), this.head = null, this.tail = null, this.length = 0;
+ }
+ return w.prototype.push = function(y) {
+ var h = {
+ data: y,
+ next: null
+ };
+ this.length > 0 ? this.tail.next = h : this.head = h, this.tail = h, ++this.length;
+ }, w.prototype.unshift = function(y) {
+ var h = {
+ data: y,
+ next: this.head
+ };
+ this.length === 0 && (this.tail = h), this.head = h, ++this.length;
+ }, w.prototype.shift = function() {
+ if (this.length !== 0) {
+ var y = this.head.data;
+ return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, y;
+ }
+ }, w.prototype.clear = function() {
+ this.head = this.tail = null, this.length = 0;
+ }, w.prototype.join = function(y) {
+ if (this.length === 0)
+ return "";
+ for (var h = this.head, l = "" + h.data; h = h.next; )
+ l += y + h.data;
+ return l;
+ }, w.prototype.concat = function(y) {
+ if (this.length === 0)
+ return m.alloc(0);
+ if (this.length === 1)
+ return this.head.data;
+ for (var h = m.allocUnsafe(y >>> 0), l = this.head, d = 0; l; )
+ b(l.data, h, d), d += l.data.length, l = l.next;
+ return h;
+ }, w;
+ }(), g && g.inspect && g.inspect.custom && (x.exports.prototype[g.inspect.custom] = function() {
+ var w = g.inspect({
+ length: this.length
+ });
+ return this.constructor.name + " " + w;
+ });
+ }, { "safe-buffer": 494, util: 185 }], 514: [function(e, x, _) {
+ var u = e("process-nextick-args");
+ function m(w, f) {
+ var y = this, h = this._readableState && this._readableState.destroyed, l = this._writableState && this._writableState.destroyed;
+ return h || l ? (f ? f(w) : w && (!this._writableState || !this._writableState.errorEmitted) && u.nextTick(b, this, w), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(w || null, function(d) {
+ !f && d ? (u.nextTick(b, y, d), y._writableState && (y._writableState.errorEmitted = !0)) : f && f(d);
+ }), this);
+ }
+ function g() {
+ this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
+ }
+ function b(w, f) {
+ w.emit("error", f);
+ }
+ x.exports = {
+ destroy: m,
+ undestroy: g
+ };
+ }, { "process-nextick-args": 466 }], 515: [function(e, x, _) {
+ arguments[4][490][0].apply(_, arguments);
+ }, { dup: 490, events: 367 }], 516: [function(e, x, _) {
+ x.exports = e("./readable").PassThrough;
+ }, { "./readable": 517 }], 517: [function(e, x, _) {
+ _ = x.exports = e("./lib/_stream_readable.js"), _.Stream = _, _.Readable = _, _.Writable = e("./lib/_stream_writable.js"), _.Duplex = e("./lib/_stream_duplex.js"), _.Transform = e("./lib/_stream_transform.js"), _.PassThrough = e("./lib/_stream_passthrough.js");
+ }, { "./lib/_stream_duplex.js": 508, "./lib/_stream_passthrough.js": 509, "./lib/_stream_readable.js": 510, "./lib/_stream_transform.js": 511, "./lib/_stream_writable.js": 512 }], 518: [function(e, x, _) {
+ x.exports = e("./readable").Transform;
+ }, { "./readable": 517 }], 519: [function(e, x, _) {
+ x.exports = e("./lib/_stream_writable.js");
+ }, { "./lib/_stream_writable.js": 512 }], 520: [function(e, x, _) {
+ var u = e("safe-buffer").Buffer, m = u.isEncoding || function(n) {
+ switch (n = "" + n, n && n.toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ case "raw":
+ return !0;
+ default:
+ return !1;
+ }
+ };
+ function g(n) {
+ if (!n)
+ return "utf8";
+ for (var o; ; )
+ switch (n) {
+ case "utf8":
+ case "utf-8":
+ return "utf8";
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return "utf16le";
+ case "latin1":
+ case "binary":
+ return "latin1";
+ case "base64":
+ case "ascii":
+ case "hex":
+ return n;
+ default:
+ if (o)
+ return;
+ n = ("" + n).toLowerCase(), o = !0;
+ }
+ }
+ function b(n) {
+ var o = g(n);
+ if (typeof o != "string" && (u.isEncoding === m || !m(n)))
+ throw new Error("Unknown encoding: " + n);
+ return o || n;
+ }
+ _.StringDecoder = w;
+ function w(n) {
+ this.encoding = b(n);
+ var o;
+ switch (this.encoding) {
+ case "utf16le":
+ this.text = v, this.end = c, o = 4;
+ break;
+ case "utf8":
+ this.fillLast = l, o = 4;
+ break;
+ case "base64":
+ this.text = a, this.end = r, o = 3;
+ break;
+ default:
+ this.write = t, this.end = i;
+ return;
+ }
+ this.lastNeed = 0, this.lastTotal = 0, this.lastChar = u.allocUnsafe(o);
+ }
+ w.prototype.write = function(n) {
+ if (n.length === 0)
+ return "";
+ var o, p;
+ if (this.lastNeed) {
+ if (o = this.fillLast(n), o === void 0)
+ return "";
+ p = this.lastNeed, this.lastNeed = 0;
+ } else
+ p = 0;
+ return p < n.length ? o ? o + this.text(n, p) : this.text(n, p) : o || "";
+ }, w.prototype.end = s, w.prototype.text = d, w.prototype.fillLast = function(n) {
+ if (this.lastNeed <= n.length)
+ return n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, n.length), this.lastNeed -= n.length;
+ };
+ function f(n) {
+ return n <= 127 ? 0 : n >> 5 === 6 ? 2 : n >> 4 === 14 ? 3 : n >> 3 === 30 ? 4 : n >> 6 === 2 ? -1 : -2;
+ }
+ function y(n, o, p) {
+ var O = o.length - 1;
+ if (O < p)
+ return 0;
+ var P = f(o[O]);
+ return P >= 0 ? (P > 0 && (n.lastNeed = P - 1), P) : --O < p || P === -2 ? 0 : (P = f(o[O]), P >= 0 ? (P > 0 && (n.lastNeed = P - 2), P) : --O < p || P === -2 ? 0 : (P = f(o[O]), P >= 0 ? (P > 0 && (P === 2 ? P = 0 : n.lastNeed = P - 3), P) : 0));
+ }
+ function h(n, o, p) {
+ if ((o[0] & 192) !== 128)
+ return n.lastNeed = 0, "�";
+ if (n.lastNeed > 1 && o.length > 1) {
+ if ((o[1] & 192) !== 128)
+ return n.lastNeed = 1, "�";
+ if (n.lastNeed > 2 && o.length > 2 && (o[2] & 192) !== 128)
+ return n.lastNeed = 2, "�";
+ }
+ }
+ function l(n) {
+ var o = this.lastTotal - this.lastNeed, p = h(this, n);
+ if (p !== void 0)
+ return p;
+ if (this.lastNeed <= n.length)
+ return n.copy(this.lastChar, o, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
+ n.copy(this.lastChar, o, 0, n.length), this.lastNeed -= n.length;
+ }
+ function d(n, o) {
+ var p = y(this, n, o);
+ if (!this.lastNeed)
+ return n.toString("utf8", o);
+ this.lastTotal = p;
+ var O = n.length - (p - this.lastNeed);
+ return n.copy(this.lastChar, 0, O), n.toString("utf8", o, O);
+ }
+ function s(n) {
+ var o = n && n.length ? this.write(n) : "";
+ return this.lastNeed ? o + "�" : o;
+ }
+ function v(n, o) {
+ if ((n.length - o) % 2 === 0) {
+ var p = n.toString("utf16le", o);
+ if (p) {
+ var O = p.charCodeAt(p.length - 1);
+ if (O >= 55296 && O <= 56319)
+ return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1], p.slice(0, -1);
+ }
+ return p;
+ }
+ return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = n[n.length - 1], n.toString("utf16le", o, n.length - 1);
+ }
+ function c(n) {
+ var o = n && n.length ? this.write(n) : "";
+ if (this.lastNeed) {
+ var p = this.lastTotal - this.lastNeed;
+ return o + this.lastChar.toString("utf16le", 0, p);
+ }
+ return o;
+ }
+ function a(n, o) {
+ var p = (n.length - o) % 3;
+ return p === 0 ? n.toString("base64", o) : (this.lastNeed = 3 - p, this.lastTotal = 3, p === 1 ? this.lastChar[0] = n[n.length - 1] : (this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1]), n.toString("base64", o, n.length - p));
+ }
+ function r(n) {
+ var o = n && n.length ? this.write(n) : "";
+ return this.lastNeed ? o + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : o;
+ }
+ function t(n) {
+ return n.toString(this.encoding);
+ }
+ function i(n) {
+ return n && n.length ? this.write(n) : "";
+ }
+ }, { "safe-buffer": 494 }], 521: [function(e, x, _) {
+ (function(u, m) {
+ var g = e("process/browser.js").nextTick, b = Function.prototype.apply, w = Array.prototype.slice, f = {}, y = 0;
+ _.setTimeout = function() {
+ return new h(b.call(setTimeout, window, arguments), clearTimeout);
+ }, _.setInterval = function() {
+ return new h(b.call(setInterval, window, arguments), clearInterval);
+ }, _.clearTimeout = _.clearInterval = function(l) {
+ l.close();
+ };
+ function h(l, d) {
+ this._id = l, this._clearFn = d;
+ }
+ h.prototype.unref = h.prototype.ref = function() {
+ }, h.prototype.close = function() {
+ this._clearFn.call(window, this._id);
+ }, _.enroll = function(l, d) {
+ clearTimeout(l._idleTimeoutId), l._idleTimeout = d;
+ }, _.unenroll = function(l) {
+ clearTimeout(l._idleTimeoutId), l._idleTimeout = -1;
+ }, _._unrefActive = _.active = function(l) {
+ clearTimeout(l._idleTimeoutId);
+ var d = l._idleTimeout;
+ d >= 0 && (l._idleTimeoutId = setTimeout(function() {
+ l._onTimeout && l._onTimeout();
+ }, d));
+ }, _.setImmediate = typeof u == "function" ? u : function(l) {
+ var d = y++, s = arguments.length < 2 ? !1 : w.call(arguments, 1);
+ return f[d] = !0, g(function() {
+ f[d] && (s ? l.apply(null, s) : l.call(null), _.clearImmediate(d));
+ }), d;
+ }, _.clearImmediate = typeof m == "function" ? m : function(l) {
+ delete f[l];
+ };
+ }).call(this, e("timers").setImmediate, e("timers").clearImmediate);
+ }, { "process/browser.js": 467, timers: 521 }], 522: [function(e, x, _) {
+ (function(u) {
+ x.exports = m;
+ function m(b, w) {
+ if (g("noDeprecation"))
+ return b;
+ var f = !1;
+ function y() {
+ if (!f) {
+ if (g("throwDeprecation"))
+ throw new Error(w);
+ g("traceDeprecation") ? console.trace(w) : console.warn(w), f = !0;
+ }
+ return b.apply(this, arguments);
+ }
+ return y;
+ }
+ function g(b) {
+ try {
+ if (!u.localStorage)
+ return !1;
+ } catch (f) {
+ return !1;
+ }
+ var w = u.localStorage[b];
+ return w == null ? !1 : String(w).toLowerCase() === "true";
+ }
+ }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, {}], 523: [function(e, x, _) {
+ typeof Object.create == "function" ? x.exports = function(m, g) {
+ m.super_ = g, m.prototype = Object.create(g.prototype, {
+ constructor: {
+ value: m,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ });
+ } : x.exports = function(m, g) {
+ m.super_ = g;
+ var b = function() {
+ };
+ b.prototype = g.prototype, m.prototype = new b(), m.prototype.constructor = m;
+ };
+ }, {}], 524: [function(e, x, _) {
+ function u(m) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) {
+ return typeof b;
+ } : u = function(b) {
+ return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
+ }, u(m);
+ }
+ x.exports = function(g) {
+ return g && u(g) === "object" && typeof g.copy == "function" && typeof g.fill == "function" && typeof g.readUInt8 == "function";
+ };
+ }, {}], 525: [function(e, x, _) {
+ (function(u, m) {
+ function g(D) {
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? g = function(j) {
+ return typeof j;
+ } : g = function(j) {
+ return j && typeof Symbol == "function" && j.constructor === Symbol && j !== Symbol.prototype ? "symbol" : typeof j;
+ }, g(D);
+ }
+ var b = /%[sdj%]/g;
+ _.format = function(D) {
+ if (!P(D)) {
+ for (var B = [], j = 0; j < arguments.length; j++)
+ B.push(y(arguments[j]));
+ return B.join(" ");
+ }
+ for (var j = 1, V = arguments, re = V.length, ee = String(D).replace(b, function(ve) {
+ if (ve === "%%")
+ return "%";
+ if (j >= re)
+ return ve;
+ switch (ve) {
+ case "%s":
+ return String(V[j++]);
+ case "%d":
+ return Number(V[j++]);
+ case "%j":
+ try {
+ return JSON.stringify(V[j++]);
+ } catch (ge) {
+ return "[Circular]";
+ }
+ default:
+ return ve;
+ }
+ }), ce = V[j]; j < re; ce = V[++j])
+ o(ce) || !M(ce) ? ee += " " + ce : ee += " " + y(ce);
+ return ee;
+ }, _.deprecate = function(D, B) {
+ if (z(m.process))
+ return function() {
+ return _.deprecate(D, B).apply(this, arguments);
+ };
+ if (u.noDeprecation === !0)
+ return D;
+ var j = !1;
+ function V() {
+ if (!j) {
+ if (u.throwDeprecation)
+ throw new Error(B);
+ u.traceDeprecation ? console.trace(B) : console.error(B), j = !0;
+ }
+ return D.apply(this, arguments);
+ }
+ return V;
+ };
+ var w = {}, f;
+ _.debuglog = function(D) {
+ if (z(f) && (f = u.env.NODE_DEBUG || ""), D = D.toUpperCase(), !w[D])
+ if (new RegExp("\\b" + D + "\\b", "i").test(f)) {
+ var B = u.pid;
+ w[D] = function() {
+ var j = _.format.apply(_, arguments);
+ console.error("%s %d: %s", D, B, j);
+ };
+ } else
+ w[D] = function() {
+ };
+ return w[D];
+ };
+ function y(D, B) {
+ var j = {
+ seen: [],
+ stylize: l
+ };
+ return arguments.length >= 3 && (j.depth = arguments[2]), arguments.length >= 4 && (j.colors = arguments[3]), n(B) ? j.showHidden = B : B && _._extend(j, B), z(j.showHidden) && (j.showHidden = !1), z(j.depth) && (j.depth = 2), z(j.colors) && (j.colors = !1), z(j.customInspect) && (j.customInspect = !0), j.colors && (j.stylize = h), s(j, D, j.depth);
+ }
+ _.inspect = y, y.colors = {
+ bold: [1, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ inverse: [7, 27],
+ white: [37, 39],
+ grey: [90, 39],
+ black: [30, 39],
+ blue: [34, 39],
+ cyan: [36, 39],
+ green: [32, 39],
+ magenta: [35, 39],
+ red: [31, 39],
+ yellow: [33, 39]
+ }, y.styles = {
+ special: "cyan",
+ number: "yellow",
+ boolean: "yellow",
+ undefined: "grey",
+ null: "bold",
+ string: "green",
+ date: "magenta",
+ // "name": intentionally not styling
+ regexp: "red"
+ };
+ function h(D, B) {
+ var j = y.styles[B];
+ return j ? "\x1B[" + y.colors[j][0] + "m" + D + "\x1B[" + y.colors[j][1] + "m" : D;
+ }
+ function l(D, B) {
+ return D;
+ }
+ function d(D) {
+ var B = {};
+ return D.forEach(function(j, V) {
+ B[j] = !0;
+ }), B;
+ }
+ function s(D, B, j) {
+ if (D.customInspect && B && C(B.inspect) && // Filter out the util module, it's inspect function is special
+ B.inspect !== _.inspect && // Also filter out any prototype objects using the circular check.
+ !(B.constructor && B.constructor.prototype === B)) {
+ var V = B.inspect(j, D);
+ return P(V) || (V = s(D, V, j)), V;
+ }
+ var re = v(D, B);
+ if (re)
+ return re;
+ var ee = Object.keys(B), ce = d(ee);
+ if (D.showHidden && (ee = Object.getOwnPropertyNames(B)), R(B) && (ee.indexOf("message") >= 0 || ee.indexOf("description") >= 0))
+ return c(B);
+ if (ee.length === 0) {
+ if (C(B)) {
+ var ve = B.name ? ": " + B.name : "";
+ return D.stylize("[Function" + ve + "]", "special");
+ }
+ if (N(B))
+ return D.stylize(RegExp.prototype.toString.call(B), "regexp");
+ if (I(B))
+ return D.stylize(Date.prototype.toString.call(B), "date");
+ if (R(B))
+ return c(B);
+ }
+ var ge = "", oe = !1, J = ["{", "}"];
+ if (i(B) && (oe = !0, J = ["[", "]"]), C(B)) {
+ var Q = B.name ? ": " + B.name : "";
+ ge = " [Function" + Q + "]";
+ }
+ if (N(B) && (ge = " " + RegExp.prototype.toString.call(B)), I(B) && (ge = " " + Date.prototype.toUTCString.call(B)), R(B) && (ge = " " + c(B)), ee.length === 0 && (!oe || B.length == 0))
+ return J[0] + ge + J[1];
+ if (j < 0)
+ return N(B) ? D.stylize(RegExp.prototype.toString.call(B), "regexp") : D.stylize("[Object]", "special");
+ D.seen.push(B);
+ var he;
+ return oe ? he = a(D, B, j, ce, ee) : he = ee.map(function(ke) {
+ return r(D, B, j, ce, ke, oe);
+ }), D.seen.pop(), t(he, ge, J);
+ }
+ function v(D, B) {
+ if (z(B))
+ return D.stylize("undefined", "undefined");
+ if (P(B)) {
+ var j = "'" + JSON.stringify(B).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
+ return D.stylize(j, "string");
+ }
+ if (O(B))
+ return D.stylize("" + B, "number");
+ if (n(B))
+ return D.stylize("" + B, "boolean");
+ if (o(B))
+ return D.stylize("null", "null");
+ }
+ function c(D) {
+ return "[" + Error.prototype.toString.call(D) + "]";
+ }
+ function a(D, B, j, V, re) {
+ for (var ee = [], ce = 0, ve = B.length; ce < ve; ++ce)
+ U(B, String(ce)) ? ee.push(r(D, B, j, V, String(ce), !0)) : ee.push("");
+ return re.forEach(function(ge) {
+ ge.match(/^\d+$/) || ee.push(r(D, B, j, V, ge, !0));
+ }), ee;
+ }
+ function r(D, B, j, V, re, ee) {
+ var ce, ve, ge;
+ if (ge = Object.getOwnPropertyDescriptor(B, re) || {
+ value: B[re]
+ }, ge.get ? ge.set ? ve = D.stylize("[Getter/Setter]", "special") : ve = D.stylize("[Getter]", "special") : ge.set && (ve = D.stylize("[Setter]", "special")), U(V, re) || (ce = "[" + re + "]"), ve || (D.seen.indexOf(ge.value) < 0 ? (o(j) ? ve = s(D, ge.value, null) : ve = s(D, ge.value, j - 1), ve.indexOf(`
+`) > -1 && (ee ? ve = ve.split(`
+`).map(function(oe) {
+ return " " + oe;
+ }).join(`
+`).substr(2) : ve = `
+` + ve.split(`
+`).map(function(oe) {
+ return " " + oe;
+ }).join(`
+`))) : ve = D.stylize("[Circular]", "special")), z(ce)) {
+ if (ee && re.match(/^\d+$/))
+ return ve;
+ ce = JSON.stringify("" + re), ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (ce = ce.substr(1, ce.length - 2), ce = D.stylize(ce, "name")) : (ce = ce.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), ce = D.stylize(ce, "string"));
+ }
+ return ce + ": " + ve;
+ }
+ function t(D, B, j) {
+ var V = D.reduce(function(re, ee) {
+ return ee.indexOf(`
+`) >= 0, re + ee.replace(/\u001b\[\d\d?m/g, "").length + 1;
+ }, 0);
+ return V > 60 ? j[0] + (B === "" ? "" : B + `
+ `) + " " + D.join(`,
+ `) + " " + j[1] : j[0] + B + " " + D.join(", ") + " " + j[1];
+ }
+ function i(D) {
+ return Array.isArray(D);
+ }
+ _.isArray = i;
+ function n(D) {
+ return typeof D == "boolean";
+ }
+ _.isBoolean = n;
+ function o(D) {
+ return D === null;
+ }
+ _.isNull = o;
+ function p(D) {
+ return D == null;
+ }
+ _.isNullOrUndefined = p;
+ function O(D) {
+ return typeof D == "number";
+ }
+ _.isNumber = O;
+ function P(D) {
+ return typeof D == "string";
+ }
+ _.isString = P;
+ function F(D) {
+ return g(D) === "symbol";
+ }
+ _.isSymbol = F;
+ function z(D) {
+ return D === void 0;
+ }
+ _.isUndefined = z;
+ function N(D) {
+ return M(D) && A(D) === "[object RegExp]";
+ }
+ _.isRegExp = N;
+ function M(D) {
+ return g(D) === "object" && D !== null;
+ }
+ _.isObject = M;
+ function I(D) {
+ return M(D) && A(D) === "[object Date]";
+ }
+ _.isDate = I;
+ function R(D) {
+ return M(D) && (A(D) === "[object Error]" || D instanceof Error);
+ }
+ _.isError = R;
+ function C(D) {
+ return typeof D == "function";
+ }
+ _.isFunction = C;
+ function E(D) {
+ return D === null || typeof D == "boolean" || typeof D == "number" || typeof D == "string" || g(D) === "symbol" || // ES6 symbol
+ typeof D == "undefined";
+ }
+ _.isPrimitive = E, _.isBuffer = e("./support/isBuffer");
+ function A(D) {
+ return Object.prototype.toString.call(D);
+ }
+ function L(D) {
+ return D < 10 ? "0" + D.toString(10) : D.toString(10);
+ }
+ var $ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
+ function W() {
+ var D = /* @__PURE__ */ new Date(), B = [L(D.getHours()), L(D.getMinutes()), L(D.getSeconds())].join(":");
+ return [D.getDate(), $[D.getMonth()], B].join(" ");
+ }
+ _.log = function() {
+ console.log("%s - %s", W(), _.format.apply(_, arguments));
+ }, _.inherits = e("inherits"), _._extend = function(D, B) {
+ if (!B || !M(B))
+ return D;
+ for (var j = Object.keys(B), V = j.length; V--; )
+ D[j[V]] = B[j[V]];
+ return D;
+ };
+ function U(D, B) {
+ return Object.prototype.hasOwnProperty.call(D, B);
+ }
+ }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {});
+ }, { "./support/isBuffer": 524, _process: 467, inherits: 523 }], 526: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), Object.defineProperty(_, "v1", {
+ enumerable: !0,
+ get: function() {
+ return u.default;
+ }
+ }), Object.defineProperty(_, "v3", {
+ enumerable: !0,
+ get: function() {
+ return m.default;
+ }
+ }), Object.defineProperty(_, "v4", {
+ enumerable: !0,
+ get: function() {
+ return g.default;
+ }
+ }), Object.defineProperty(_, "v5", {
+ enumerable: !0,
+ get: function() {
+ return b.default;
+ }
+ }), Object.defineProperty(_, "NIL", {
+ enumerable: !0,
+ get: function() {
+ return w.default;
+ }
+ }), Object.defineProperty(_, "version", {
+ enumerable: !0,
+ get: function() {
+ return f.default;
+ }
+ }), Object.defineProperty(_, "validate", {
+ enumerable: !0,
+ get: function() {
+ return y.default;
+ }
+ }), Object.defineProperty(_, "stringify", {
+ enumerable: !0,
+ get: function() {
+ return h.default;
+ }
+ }), Object.defineProperty(_, "parse", {
+ enumerable: !0,
+ get: function() {
+ return l.default;
+ }
+ });
+ var u = d(e("./v1.js")), m = d(e("./v3.js")), g = d(e("./v4.js")), b = d(e("./v5.js")), w = d(e("./nil.js")), f = d(e("./version.js")), y = d(e("./validate.js")), h = d(e("./stringify.js")), l = d(e("./parse.js"));
+ function d(s) {
+ return s && s.__esModule ? s : {
+ default: s
+ };
+ }
+ }, { "./nil.js": 528, "./parse.js": 529, "./stringify.js": 533, "./v1.js": 534, "./v3.js": 535, "./v4.js": 537, "./v5.js": 538, "./validate.js": 539, "./version.js": 540 }], 527: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ function u(a) {
+ if (typeof a == "string") {
+ var r = unescape(encodeURIComponent(a));
+ a = new Uint8Array(r.length);
+ for (var t = 0; t < r.length; ++t)
+ a[t] = r.charCodeAt(t);
+ }
+ return m(b(w(a), a.length * 8));
+ }
+ function m(a) {
+ for (var r = [], t = a.length * 32, i = "0123456789abcdef", n = 0; n < t; n += 8) {
+ var o = a[n >> 5] >>> n % 32 & 255, p = parseInt(i.charAt(o >>> 4 & 15) + i.charAt(o & 15), 16);
+ r.push(p);
+ }
+ return r;
+ }
+ function g(a) {
+ return (a + 64 >>> 9 << 4) + 14 + 1;
+ }
+ function b(a, r) {
+ a[r >> 5] |= 128 << r % 32, a[g(r) - 1] = r;
+ for (var t = 1732584193, i = -271733879, n = -1732584194, o = 271733878, p = 0; p < a.length; p += 16) {
+ var O = t, P = i, F = n, z = o;
+ t = l(t, i, n, o, a[p], 7, -680876936), o = l(o, t, i, n, a[p + 1], 12, -389564586), n = l(n, o, t, i, a[p + 2], 17, 606105819), i = l(i, n, o, t, a[p + 3], 22, -1044525330), t = l(t, i, n, o, a[p + 4], 7, -176418897), o = l(o, t, i, n, a[p + 5], 12, 1200080426), n = l(n, o, t, i, a[p + 6], 17, -1473231341), i = l(i, n, o, t, a[p + 7], 22, -45705983), t = l(t, i, n, o, a[p + 8], 7, 1770035416), o = l(o, t, i, n, a[p + 9], 12, -1958414417), n = l(n, o, t, i, a[p + 10], 17, -42063), i = l(i, n, o, t, a[p + 11], 22, -1990404162), t = l(t, i, n, o, a[p + 12], 7, 1804603682), o = l(o, t, i, n, a[p + 13], 12, -40341101), n = l(n, o, t, i, a[p + 14], 17, -1502002290), i = l(i, n, o, t, a[p + 15], 22, 1236535329), t = d(t, i, n, o, a[p + 1], 5, -165796510), o = d(o, t, i, n, a[p + 6], 9, -1069501632), n = d(n, o, t, i, a[p + 11], 14, 643717713), i = d(i, n, o, t, a[p], 20, -373897302), t = d(t, i, n, o, a[p + 5], 5, -701558691), o = d(o, t, i, n, a[p + 10], 9, 38016083), n = d(n, o, t, i, a[p + 15], 14, -660478335), i = d(i, n, o, t, a[p + 4], 20, -405537848), t = d(t, i, n, o, a[p + 9], 5, 568446438), o = d(o, t, i, n, a[p + 14], 9, -1019803690), n = d(n, o, t, i, a[p + 3], 14, -187363961), i = d(i, n, o, t, a[p + 8], 20, 1163531501), t = d(t, i, n, o, a[p + 13], 5, -1444681467), o = d(o, t, i, n, a[p + 2], 9, -51403784), n = d(n, o, t, i, a[p + 7], 14, 1735328473), i = d(i, n, o, t, a[p + 12], 20, -1926607734), t = s(t, i, n, o, a[p + 5], 4, -378558), o = s(o, t, i, n, a[p + 8], 11, -2022574463), n = s(n, o, t, i, a[p + 11], 16, 1839030562), i = s(i, n, o, t, a[p + 14], 23, -35309556), t = s(t, i, n, o, a[p + 1], 4, -1530992060), o = s(o, t, i, n, a[p + 4], 11, 1272893353), n = s(n, o, t, i, a[p + 7], 16, -155497632), i = s(i, n, o, t, a[p + 10], 23, -1094730640), t = s(t, i, n, o, a[p + 13], 4, 681279174), o = s(o, t, i, n, a[p], 11, -358537222), n = s(n, o, t, i, a[p + 3], 16, -722521979), i = s(i, n, o, t, a[p + 6], 23, 76029189), t = s(t, i, n, o, a[p + 9], 4, -640364487), o = s(o, t, i, n, a[p + 12], 11, -421815835), n = s(n, o, t, i, a[p + 15], 16, 530742520), i = s(i, n, o, t, a[p + 2], 23, -995338651), t = v(t, i, n, o, a[p], 6, -198630844), o = v(o, t, i, n, a[p + 7], 10, 1126891415), n = v(n, o, t, i, a[p + 14], 15, -1416354905), i = v(i, n, o, t, a[p + 5], 21, -57434055), t = v(t, i, n, o, a[p + 12], 6, 1700485571), o = v(o, t, i, n, a[p + 3], 10, -1894986606), n = v(n, o, t, i, a[p + 10], 15, -1051523), i = v(i, n, o, t, a[p + 1], 21, -2054922799), t = v(t, i, n, o, a[p + 8], 6, 1873313359), o = v(o, t, i, n, a[p + 15], 10, -30611744), n = v(n, o, t, i, a[p + 6], 15, -1560198380), i = v(i, n, o, t, a[p + 13], 21, 1309151649), t = v(t, i, n, o, a[p + 4], 6, -145523070), o = v(o, t, i, n, a[p + 11], 10, -1120210379), n = v(n, o, t, i, a[p + 2], 15, 718787259), i = v(i, n, o, t, a[p + 9], 21, -343485551), t = f(t, O), i = f(i, P), n = f(n, F), o = f(o, z);
+ }
+ return [t, i, n, o];
+ }
+ function w(a) {
+ if (a.length === 0)
+ return [];
+ for (var r = a.length * 8, t = new Uint32Array(g(r)), i = 0; i < r; i += 8)
+ t[i >> 5] |= (a[i / 8] & 255) << i % 32;
+ return t;
+ }
+ function f(a, r) {
+ var t = (a & 65535) + (r & 65535), i = (a >> 16) + (r >> 16) + (t >> 16);
+ return i << 16 | t & 65535;
+ }
+ function y(a, r) {
+ return a << r | a >>> 32 - r;
+ }
+ function h(a, r, t, i, n, o) {
+ return f(y(f(f(r, a), f(i, o)), n), t);
+ }
+ function l(a, r, t, i, n, o, p) {
+ return h(r & t | ~r & i, a, r, n, o, p);
+ }
+ function d(a, r, t, i, n, o, p) {
+ return h(r & i | t & ~i, a, r, n, o, p);
+ }
+ function s(a, r, t, i, n, o, p) {
+ return h(r ^ t ^ i, a, r, n, o, p);
+ }
+ function v(a, r, t, i, n, o, p) {
+ return h(t ^ (r | ~i), a, r, n, o, p);
+ }
+ var c = u;
+ _.default = c;
+ }, {}], 528: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = "00000000-0000-0000-0000-000000000000";
+ _.default = u;
+ }, {}], 529: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = m(e("./validate.js"));
+ function m(w) {
+ return w && w.__esModule ? w : {
+ default: w
+ };
+ }
+ function g(w) {
+ if (!(0, u.default)(w))
+ throw TypeError("Invalid UUID");
+ var f, y = new Uint8Array(16);
+ return y[0] = (f = parseInt(w.slice(0, 8), 16)) >>> 24, y[1] = f >>> 16 & 255, y[2] = f >>> 8 & 255, y[3] = f & 255, y[4] = (f = parseInt(w.slice(9, 13), 16)) >>> 8, y[5] = f & 255, y[6] = (f = parseInt(w.slice(14, 18), 16)) >>> 8, y[7] = f & 255, y[8] = (f = parseInt(w.slice(19, 23), 16)) >>> 8, y[9] = f & 255, y[10] = (f = parseInt(w.slice(24, 36), 16)) / 1099511627776 & 255, y[11] = f / 4294967296 & 255, y[12] = f >>> 24 & 255, y[13] = f >>> 16 & 255, y[14] = f >>> 8 & 255, y[15] = f & 255, y;
+ }
+ var b = g;
+ _.default = b;
+ }, { "./validate.js": 539 }], 530: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
+ _.default = u;
+ }, {}], 531: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = g;
+ var u = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), m = new Uint8Array(16);
+ function g() {
+ if (!u)
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
+ return u(m);
+ }
+ }, {}], 532: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ function u(w, f, y, h) {
+ switch (w) {
+ case 0:
+ return f & y ^ ~f & h;
+ case 1:
+ return f ^ y ^ h;
+ case 2:
+ return f & y ^ f & h ^ y & h;
+ case 3:
+ return f ^ y ^ h;
+ }
+ }
+ function m(w, f) {
+ return w << f | w >>> 32 - f;
+ }
+ function g(w) {
+ var f = [1518500249, 1859775393, 2400959708, 3395469782], y = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
+ if (typeof w == "string") {
+ var h = unescape(encodeURIComponent(w));
+ w = [];
+ for (var l = 0; l < h.length; ++l)
+ w.push(h.charCodeAt(l));
+ } else
+ Array.isArray(w) || (w = Array.prototype.slice.call(w));
+ w.push(128);
+ for (var d = w.length / 4 + 2, s = Math.ceil(d / 16), v = new Array(s), c = 0; c < s; ++c) {
+ for (var a = new Uint32Array(16), r = 0; r < 16; ++r)
+ a[r] = w[c * 64 + r * 4] << 24 | w[c * 64 + r * 4 + 1] << 16 | w[c * 64 + r * 4 + 2] << 8 | w[c * 64 + r * 4 + 3];
+ v[c] = a;
+ }
+ v[s - 1][14] = (w.length - 1) * 8 / Math.pow(2, 32), v[s - 1][14] = Math.floor(v[s - 1][14]), v[s - 1][15] = (w.length - 1) * 8 & 4294967295;
+ for (var t = 0; t < s; ++t) {
+ for (var i = new Uint32Array(80), n = 0; n < 16; ++n)
+ i[n] = v[t][n];
+ for (var o = 16; o < 80; ++o)
+ i[o] = m(i[o - 3] ^ i[o - 8] ^ i[o - 14] ^ i[o - 16], 1);
+ for (var p = y[0], O = y[1], P = y[2], F = y[3], z = y[4], N = 0; N < 80; ++N) {
+ var M = Math.floor(N / 20), I = m(p, 5) + u(M, O, P, F) + z + f[M] + i[N] >>> 0;
+ z = F, F = P, P = m(O, 30) >>> 0, O = p, p = I;
+ }
+ y[0] = y[0] + p >>> 0, y[1] = y[1] + O >>> 0, y[2] = y[2] + P >>> 0, y[3] = y[3] + F >>> 0, y[4] = y[4] + z >>> 0;
+ }
+ return [y[0] >> 24 & 255, y[0] >> 16 & 255, y[0] >> 8 & 255, y[0] & 255, y[1] >> 24 & 255, y[1] >> 16 & 255, y[1] >> 8 & 255, y[1] & 255, y[2] >> 24 & 255, y[2] >> 16 & 255, y[2] >> 8 & 255, y[2] & 255, y[3] >> 24 & 255, y[3] >> 16 & 255, y[3] >> 8 & 255, y[3] & 255, y[4] >> 24 & 255, y[4] >> 16 & 255, y[4] >> 8 & 255, y[4] & 255];
+ }
+ var b = g;
+ _.default = b;
+ }, {}], 533: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = m(e("./validate.js"));
+ function m(y) {
+ return y && y.__esModule ? y : {
+ default: y
+ };
+ }
+ for (var g = [], b = 0; b < 256; ++b)
+ g.push((b + 256).toString(16).substr(1));
+ function w(y) {
+ var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, l = (g[y[h + 0]] + g[y[h + 1]] + g[y[h + 2]] + g[y[h + 3]] + "-" + g[y[h + 4]] + g[y[h + 5]] + "-" + g[y[h + 6]] + g[y[h + 7]] + "-" + g[y[h + 8]] + g[y[h + 9]] + "-" + g[y[h + 10]] + g[y[h + 11]] + g[y[h + 12]] + g[y[h + 13]] + g[y[h + 14]] + g[y[h + 15]]).toLowerCase();
+ if (!(0, u.default)(l))
+ throw TypeError("Stringified UUID is invalid");
+ return l;
+ }
+ var f = w;
+ _.default = f;
+ }, { "./validate.js": 539 }], 534: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = g(e("./rng.js")), m = g(e("./stringify.js"));
+ function g(d) {
+ return d && d.__esModule ? d : {
+ default: d
+ };
+ }
+ var b, w, f = 0, y = 0;
+ function h(d, s, v) {
+ var c = s && v || 0, a = s || new Array(16);
+ d = d || {};
+ var r = d.node || b, t = d.clockseq !== void 0 ? d.clockseq : w;
+ if (r == null || t == null) {
+ var i = d.random || (d.rng || u.default)();
+ r == null && (r = b = [i[0] | 1, i[1], i[2], i[3], i[4], i[5]]), t == null && (t = w = (i[6] << 8 | i[7]) & 16383);
+ }
+ var n = d.msecs !== void 0 ? d.msecs : Date.now(), o = d.nsecs !== void 0 ? d.nsecs : y + 1, p = n - f + (o - y) / 1e4;
+ if (p < 0 && d.clockseq === void 0 && (t = t + 1 & 16383), (p < 0 || n > f) && d.nsecs === void 0 && (o = 0), o >= 1e4)
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
+ f = n, y = o, w = t, n += 122192928e5;
+ var O = ((n & 268435455) * 1e4 + o) % 4294967296;
+ a[c++] = O >>> 24 & 255, a[c++] = O >>> 16 & 255, a[c++] = O >>> 8 & 255, a[c++] = O & 255;
+ var P = n / 4294967296 * 1e4 & 268435455;
+ a[c++] = P >>> 8 & 255, a[c++] = P & 255, a[c++] = P >>> 24 & 15 | 16, a[c++] = P >>> 16 & 255, a[c++] = t >>> 8 | 128, a[c++] = t & 255;
+ for (var F = 0; F < 6; ++F)
+ a[c + F] = r[F];
+ return s || (0, m.default)(a);
+ }
+ var l = h;
+ _.default = l;
+ }, { "./rng.js": 531, "./stringify.js": 533 }], 535: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = g(e("./v35.js")), m = g(e("./md5.js"));
+ function g(f) {
+ return f && f.__esModule ? f : {
+ default: f
+ };
+ }
+ var b = (0, u.default)("v3", 48, m.default), w = b;
+ _.default = w;
+ }, { "./md5.js": 527, "./v35.js": 536 }], 536: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = y, _.URL = _.DNS = void 0;
+ var u = g(e("./stringify.js")), m = g(e("./parse.js"));
+ function g(h) {
+ return h && h.__esModule ? h : {
+ default: h
+ };
+ }
+ function b(h) {
+ h = unescape(encodeURIComponent(h));
+ for (var l = [], d = 0; d < h.length; ++d)
+ l.push(h.charCodeAt(d));
+ return l;
+ }
+ var w = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
+ _.DNS = w;
+ var f = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
+ _.URL = f;
+ function y(h, l, d) {
+ function s(v, c, a, r) {
+ if (typeof v == "string" && (v = b(v)), typeof c == "string" && (c = (0, m.default)(c)), c.length !== 16)
+ throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
+ var t = new Uint8Array(16 + v.length);
+ if (t.set(c), t.set(v, c.length), t = d(t), t[6] = t[6] & 15 | l, t[8] = t[8] & 63 | 128, a) {
+ r = r || 0;
+ for (var i = 0; i < 16; ++i)
+ a[r + i] = t[i];
+ return a;
+ }
+ return (0, u.default)(t);
+ }
+ try {
+ s.name = h;
+ } catch (v) {
+ }
+ return s.DNS = w, s.URL = f, s;
+ }
+ }, { "./parse.js": 529, "./stringify.js": 533 }], 537: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = g(e("./rng.js")), m = g(e("./stringify.js"));
+ function g(f) {
+ return f && f.__esModule ? f : {
+ default: f
+ };
+ }
+ function b(f, y, h) {
+ f = f || {};
+ var l = f.random || (f.rng || u.default)();
+ if (l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, y) {
+ h = h || 0;
+ for (var d = 0; d < 16; ++d)
+ y[h + d] = l[d];
+ return y;
+ }
+ return (0, m.default)(l);
+ }
+ var w = b;
+ _.default = w;
+ }, { "./rng.js": 531, "./stringify.js": 533 }], 538: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = g(e("./v35.js")), m = g(e("./sha1.js"));
+ function g(f) {
+ return f && f.__esModule ? f : {
+ default: f
+ };
+ }
+ var b = (0, u.default)("v5", 80, m.default), w = b;
+ _.default = w;
+ }, { "./sha1.js": 532, "./v35.js": 536 }], 539: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = m(e("./regex.js"));
+ function m(w) {
+ return w && w.__esModule ? w : {
+ default: w
+ };
+ }
+ function g(w) {
+ return typeof w == "string" && u.default.test(w);
+ }
+ var b = g;
+ _.default = b;
+ }, { "./regex.js": 530 }], 540: [function(e, x, _) {
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.default = void 0;
+ var u = m(e("./validate.js"));
+ function m(w) {
+ return w && w.__esModule ? w : {
+ default: w
+ };
+ }
+ function g(w) {
+ if (!(0, u.default)(w))
+ throw TypeError("Invalid UUID");
+ return parseInt(w.substr(14, 1), 16);
+ }
+ var b = g;
+ _.default = b;
+ }, { "./validate.js": 539 }], 541: [function(e, x, _) {
+ /**
+ * Character classes and associated utilities for the 5th edition of XML 1.0.
+ *
+ * @author Louis-Dominique Dubeau
+ * @license MIT
+ * @copyright Louis-Dominique Dubeau
+ */
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.CHAR = `
+\r --�𐀀-`, _.S = ` \r
+`, _.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", _.NAME_CHAR = "-" + _.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.CHAR_RE = new RegExp("^[" + _.CHAR + "]$", "u"), _.S_RE = new RegExp("^[" + _.S + "]+$", "u"), _.NAME_START_CHAR_RE = new RegExp("^[" + _.NAME_START_CHAR + "]$", "u"), _.NAME_CHAR_RE = new RegExp("^[" + _.NAME_CHAR + "]$", "u"), _.NAME_RE = new RegExp("^[" + _.NAME_START_CHAR + "][" + _.NAME_CHAR + "]*$", "u"), _.NMTOKEN_RE = new RegExp("^[" + _.NAME_CHAR + "]+$", "u");
+ var u = 9, m = 10, g = 13, b = 32;
+ _.S_LIST = [b, m, g, u];
+ function w(l) {
+ return l >= b && l <= 55295 || l === m || l === g || l === u || l >= 57344 && l <= 65533 || l >= 65536 && l <= 1114111;
+ }
+ _.isChar = w;
+ function f(l) {
+ return l === b || l === m || l === g || l === u;
+ }
+ _.isS = f;
+ function y(l) {
+ return l >= 65 && l <= 90 || l >= 97 && l <= 122 || l === 58 || l === 95 || l === 8204 || l === 8205 || l >= 192 && l <= 214 || l >= 216 && l <= 246 || l >= 248 && l <= 767 || l >= 880 && l <= 893 || l >= 895 && l <= 8191 || l >= 8304 && l <= 8591 || l >= 11264 && l <= 12271 || l >= 12289 && l <= 55295 || l >= 63744 && l <= 64975 || l >= 65008 && l <= 65533 || l >= 65536 && l <= 983039;
+ }
+ _.isNameStartChar = y;
+ function h(l) {
+ return y(l) || l >= 48 && l <= 57 || l === 45 || l === 46 || l === 183 || l >= 768 && l <= 879 || l >= 8255 && l <= 8256;
+ }
+ _.isNameChar = h;
+ }, {}], 542: [function(e, x, _) {
+ /**
+ * Character classes and associated utilities for the 2nd edition of XML 1.1.
+ *
+ * @author Louis-Dominique Dubeau
+ * @license MIT
+ * @copyright Louis-Dominique Dubeau
+ */
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.CHAR = "--�𐀀-", _.RESTRICTED_CHAR = "-\b\v\f---", _.S = ` \r
+`, _.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", _.NAME_CHAR = "-" + _.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.CHAR_RE = new RegExp("^[" + _.CHAR + "]$", "u"), _.RESTRICTED_CHAR_RE = new RegExp("^[" + _.RESTRICTED_CHAR + "]$", "u"), _.S_RE = new RegExp("^[" + _.S + "]+$", "u"), _.NAME_START_CHAR_RE = new RegExp("^[" + _.NAME_START_CHAR + "]$", "u"), _.NAME_CHAR_RE = new RegExp("^[" + _.NAME_CHAR + "]$", "u"), _.NAME_RE = new RegExp("^[" + _.NAME_START_CHAR + "][" + _.NAME_CHAR + "]*$", "u"), _.NMTOKEN_RE = new RegExp("^[" + _.NAME_CHAR + "]+$", "u");
+ var u = 9, m = 10, g = 13, b = 32;
+ _.S_LIST = [b, m, g, u];
+ function w(s) {
+ return s >= 1 && s <= 55295 || s >= 57344 && s <= 65533 || s >= 65536 && s <= 1114111;
+ }
+ _.isChar = w;
+ function f(s) {
+ return s >= 1 && s <= 8 || s === 11 || s === 12 || s >= 14 && s <= 31 || s >= 127 && s <= 132 || s >= 134 && s <= 159;
+ }
+ _.isRestrictedChar = f;
+ function y(s) {
+ return s === 9 || s === 10 || s === 13 || s > 31 && s < 127 || s === 133 || s > 159 && s <= 55295 || s >= 57344 && s <= 65533 || s >= 65536 && s <= 1114111;
+ }
+ _.isCharAndNotRestricted = y;
+ function h(s) {
+ return s === b || s === m || s === g || s === u;
+ }
+ _.isS = h;
+ function l(s) {
+ return s >= 65 && s <= 90 || s >= 97 && s <= 122 || s === 58 || s === 95 || s === 8204 || s === 8205 || s >= 192 && s <= 214 || s >= 216 && s <= 246 || s >= 248 && s <= 767 || s >= 880 && s <= 893 || s >= 895 && s <= 8191 || s >= 8304 && s <= 8591 || s >= 11264 && s <= 12271 || s >= 12289 && s <= 55295 || s >= 63744 && s <= 64975 || s >= 65008 && s <= 65533 || s >= 65536 && s <= 983039;
+ }
+ _.isNameStartChar = l;
+ function d(s) {
+ return l(s) || s >= 48 && s <= 57 || s === 45 || s === 46 || s === 183 || s >= 768 && s <= 879 || s >= 8255 && s <= 8256;
+ }
+ _.isNameChar = d;
+ }, {}], 543: [function(e, x, _) {
+ /**
+ * Character class utilities for XML NS 1.0 edition 3.
+ *
+ * @author Louis-Dominique Dubeau
+ * @license MIT
+ * @copyright Louis-Dominique Dubeau
+ */
+ Object.defineProperty(_, "__esModule", {
+ value: !0
+ }), _.NC_NAME_START_CHAR = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", _.NC_NAME_CHAR = "-" + _.NC_NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.NC_NAME_START_CHAR_RE = new RegExp("^[" + _.NC_NAME_START_CHAR + "]$", "u"), _.NC_NAME_CHAR_RE = new RegExp("^[" + _.NC_NAME_CHAR + "]$", "u"), _.NC_NAME_RE = new RegExp("^[" + _.NC_NAME_START_CHAR + "][" + _.NC_NAME_CHAR + "]*$", "u");
+ function u(g) {
+ return g >= 65 && g <= 90 || g === 95 || g >= 97 && g <= 122 || g >= 192 && g <= 214 || g >= 216 && g <= 246 || g >= 248 && g <= 767 || g >= 880 && g <= 893 || g >= 895 && g <= 8191 || g >= 8204 && g <= 8205 || g >= 8304 && g <= 8591 || g >= 11264 && g <= 12271 || g >= 12289 && g <= 55295 || g >= 63744 && g <= 64975 || g >= 65008 && g <= 65533 || g >= 65536 && g <= 983039;
+ }
+ _.isNCNameStartChar = u;
+ function m(g) {
+ return u(g) || g === 45 || g === 46 || g >= 48 && g <= 57 || g === 183 || g >= 768 && g <= 879 || g >= 8255 && g <= 8256;
+ }
+ _.isNCNameChar = m;
+ }, {}] }, {}, [15])(15);
+ });
+})(Ug);
+function $g(H) {
+ return typeof H == "string" ? H : H instanceof Blob ? URL.createObjectURL(H) : H instanceof ArrayBuffer ? URL.createObjectURL(new Blob([H])) : H instanceof Response ? URL.createObjectURL(H.blob()) : H;
+}
+function qo(H) {
+ return qo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) {
+ return typeof k;
+ } : function(k) {
+ return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k;
+ }, qo(H);
+}
+var Wg = /^\s+/, Vg = /\s+$/;
+function Rt(H, k) {
+ if (H = H || "", k = k || {}, H instanceof Rt)
+ return H;
+ if (!(this instanceof Rt))
+ return new Rt(H, k);
+ var e = Kg(H);
+ this._originalInput = H, this._r = e.r, this._g = e.g, this._b = e.b, this._a = e.a, this._roundA = Math.round(100 * this._a) / 100, this._format = k.format || e.format, this._gradientType = k.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = e.ok;
+}
+Rt.prototype = {
+ isDark: function() {
+ return this.getBrightness() < 128;
+ },
+ isLight: function() {
+ return !this.isDark();
+ },
+ isValid: function() {
+ return this._ok;
+ },
+ getOriginalInput: function() {
+ return this._originalInput;
+ },
+ getFormat: function() {
+ return this._format;
+ },
+ getAlpha: function() {
+ return this._a;
+ },
+ getBrightness: function() {
+ var k = this.toRgb();
+ return (k.r * 299 + k.g * 587 + k.b * 114) / 1e3;
+ },
+ getLuminance: function() {
+ var k = this.toRgb(), e, x, _, u, m, g;
+ return e = k.r / 255, x = k.g / 255, _ = k.b / 255, e <= 0.03928 ? u = e / 12.92 : u = Math.pow((e + 0.055) / 1.055, 2.4), x <= 0.03928 ? m = x / 12.92 : m = Math.pow((x + 0.055) / 1.055, 2.4), _ <= 0.03928 ? g = _ / 12.92 : g = Math.pow((_ + 0.055) / 1.055, 2.4), 0.2126 * u + 0.7152 * m + 0.0722 * g;
+ },
+ setAlpha: function(k) {
+ return this._a = Mc(k), this._roundA = Math.round(100 * this._a) / 100, this;
+ },
+ toHsv: function() {
+ var k = ic(this._r, this._g, this._b);
+ return {
+ h: k.h * 360,
+ s: k.s,
+ v: k.v,
+ a: this._a
+ };
+ },
+ toHsvString: function() {
+ var k = ic(this._r, this._g, this._b), e = Math.round(k.h * 360), x = Math.round(k.s * 100), _ = Math.round(k.v * 100);
+ return this._a == 1 ? "hsv(" + e + ", " + x + "%, " + _ + "%)" : "hsva(" + e + ", " + x + "%, " + _ + "%, " + this._roundA + ")";
+ },
+ toHsl: function() {
+ var k = nc(this._r, this._g, this._b);
+ return {
+ h: k.h * 360,
+ s: k.s,
+ l: k.l,
+ a: this._a
+ };
+ },
+ toHslString: function() {
+ var k = nc(this._r, this._g, this._b), e = Math.round(k.h * 360), x = Math.round(k.s * 100), _ = Math.round(k.l * 100);
+ return this._a == 1 ? "hsl(" + e + ", " + x + "%, " + _ + "%)" : "hsla(" + e + ", " + x + "%, " + _ + "%, " + this._roundA + ")";
+ },
+ toHex: function(k) {
+ return ac(this._r, this._g, this._b, k);
+ },
+ toHexString: function(k) {
+ return "#" + this.toHex(k);
+ },
+ toHex8: function(k) {
+ return Jg(this._r, this._g, this._b, this._a, k);
+ },
+ toHex8String: function(k) {
+ return "#" + this.toHex8(k);
+ },
+ toRgb: function() {
+ return {
+ r: Math.round(this._r),
+ g: Math.round(this._g),
+ b: Math.round(this._b),
+ a: this._a
+ };
+ },
+ toRgbString: function() {
+ return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
+ },
+ toPercentageRgb: function() {
+ return {
+ r: Math.round(yr(this._r, 255) * 100) + "%",
+ g: Math.round(yr(this._g, 255) * 100) + "%",
+ b: Math.round(yr(this._b, 255) * 100) + "%",
+ a: this._a
+ };
+ },
+ toPercentageRgbString: function() {
+ return this._a == 1 ? "rgb(" + Math.round(yr(this._r, 255) * 100) + "%, " + Math.round(yr(this._g, 255) * 100) + "%, " + Math.round(yr(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(yr(this._r, 255) * 100) + "%, " + Math.round(yr(this._g, 255) * 100) + "%, " + Math.round(yr(this._b, 255) * 100) + "%, " + this._roundA + ")";
+ },
+ toName: function() {
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : u1[ac(this._r, this._g, this._b, !0)] || !1;
+ },
+ toFilter: function(k) {
+ var e = "#" + oc(this._r, this._g, this._b, this._a), x = e, _ = this._gradientType ? "GradientType = 1, " : "";
+ if (k) {
+ var u = Rt(k);
+ x = "#" + oc(u._r, u._g, u._b, u._a);
+ }
+ return "progid:DXImageTransform.Microsoft.gradient(" + _ + "startColorstr=" + e + ",endColorstr=" + x + ")";
+ },
+ toString: function(k) {
+ var e = !!k;
+ k = k || this._format;
+ var x = !1, _ = this._a < 1 && this._a >= 0, u = !e && _ && (k === "hex" || k === "hex6" || k === "hex3" || k === "hex4" || k === "hex8" || k === "name");
+ return u ? k === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (k === "rgb" && (x = this.toRgbString()), k === "prgb" && (x = this.toPercentageRgbString()), (k === "hex" || k === "hex6") && (x = this.toHexString()), k === "hex3" && (x = this.toHexString(!0)), k === "hex4" && (x = this.toHex8String(!0)), k === "hex8" && (x = this.toHex8String()), k === "name" && (x = this.toName()), k === "hsl" && (x = this.toHslString()), k === "hsv" && (x = this.toHsvString()), x || this.toHexString());
+ },
+ clone: function() {
+ return Rt(this.toString());
+ },
+ _applyModification: function(k, e) {
+ var x = k.apply(null, [this].concat([].slice.call(e)));
+ return this._r = x._r, this._g = x._g, this._b = x._b, this.setAlpha(x._a), this;
+ },
+ lighten: function() {
+ return this._applyModification(t1, arguments);
+ },
+ brighten: function() {
+ return this._applyModification(r1, arguments);
+ },
+ darken: function() {
+ return this._applyModification(n1, arguments);
+ },
+ desaturate: function() {
+ return this._applyModification(Qg, arguments);
+ },
+ saturate: function() {
+ return this._applyModification(qg, arguments);
+ },
+ greyscale: function() {
+ return this._applyModification(e1, arguments);
+ },
+ spin: function() {
+ return this._applyModification(i1, arguments);
+ },
+ _applyCombination: function(k, e) {
+ return k.apply(null, [this].concat([].slice.call(e)));
+ },
+ analogous: function() {
+ return this._applyCombination(s1, arguments);
+ },
+ complement: function() {
+ return this._applyCombination(a1, arguments);
+ },
+ monochromatic: function() {
+ return this._applyCombination(f1, arguments);
+ },
+ splitcomplement: function() {
+ return this._applyCombination(o1, arguments);
+ },
+ // Disabled until https://github.com/bgrins/TinyColor/issues/254
+ // polyad: function (number) {
+ // return this._applyCombination(polyad, [number]);
+ // },
+ triad: function() {
+ return this._applyCombination(sc, [3]);
+ },
+ tetrad: function() {
+ return this._applyCombination(sc, [4]);
+ }
+};
+Rt.fromRatio = function(H, k) {
+ if (qo(H) == "object") {
+ var e = {};
+ for (var x in H)
+ H.hasOwnProperty(x) && (x === "a" ? e[x] = H[x] : e[x] = Wa(H[x]));
+ H = e;
+ }
+ return Rt(H, k);
+};
+function Kg(H) {
+ var k = {
+ r: 0,
+ g: 0,
+ b: 0
+ }, e = 1, x = null, _ = null, u = null, m = !1, g = !1;
+ return typeof H == "string" && (H = d1(H)), qo(H) == "object" && (ci(H.r) && ci(H.g) && ci(H.b) ? (k = Gg(H.r, H.g, H.b), m = !0, g = String(H.r).substr(-1) === "%" ? "prgb" : "rgb") : ci(H.h) && ci(H.s) && ci(H.v) ? (x = Wa(H.s), _ = Wa(H.v), k = Zg(H.h, x, _), m = !0, g = "hsv") : ci(H.h) && ci(H.s) && ci(H.l) && (x = Wa(H.s), u = Wa(H.l), k = Yg(H.h, x, u), m = !0, g = "hsl"), H.hasOwnProperty("a") && (e = H.a)), e = Mc(e), {
+ ok: m,
+ format: H.format || g,
+ r: Math.min(255, Math.max(k.r, 0)),
+ g: Math.min(255, Math.max(k.g, 0)),
+ b: Math.min(255, Math.max(k.b, 0)),
+ a: e
+ };
+}
+function Gg(H, k, e) {
+ return {
+ r: yr(H, 255) * 255,
+ g: yr(k, 255) * 255,
+ b: yr(e, 255) * 255
+ };
+}
+function nc(H, k, e) {
+ H = yr(H, 255), k = yr(k, 255), e = yr(e, 255);
+ var x = Math.max(H, k, e), _ = Math.min(H, k, e), u, m, g = (x + _) / 2;
+ if (x == _)
+ u = m = 0;
+ else {
+ var b = x - _;
+ switch (m = g > 0.5 ? b / (2 - x - _) : b / (x + _), x) {
+ case H:
+ u = (k - e) / b + (k < e ? 6 : 0);
+ break;
+ case k:
+ u = (e - H) / b + 2;
+ break;
+ case e:
+ u = (H - k) / b + 4;
+ break;
+ }
+ u /= 6;
+ }
+ return {
+ h: u,
+ s: m,
+ l: g
+ };
+}
+function Yg(H, k, e) {
+ var x, _, u;
+ H = yr(H, 360), k = yr(k, 100), e = yr(e, 100);
+ function m(w, f, y) {
+ return y < 0 && (y += 1), y > 1 && (y -= 1), y < 1 / 6 ? w + (f - w) * 6 * y : y < 1 / 2 ? f : y < 2 / 3 ? w + (f - w) * (2 / 3 - y) * 6 : w;
+ }
+ if (k === 0)
+ x = _ = u = e;
+ else {
+ var g = e < 0.5 ? e * (1 + k) : e + k - e * k, b = 2 * e - g;
+ x = m(b, g, H + 1 / 3), _ = m(b, g, H), u = m(b, g, H - 1 / 3);
+ }
+ return {
+ r: x * 255,
+ g: _ * 255,
+ b: u * 255
+ };
+}
+function ic(H, k, e) {
+ H = yr(H, 255), k = yr(k, 255), e = yr(e, 255);
+ var x = Math.max(H, k, e), _ = Math.min(H, k, e), u, m, g = x, b = x - _;
+ if (m = x === 0 ? 0 : b / x, x == _)
+ u = 0;
+ else {
+ switch (x) {
+ case H:
+ u = (k - e) / b + (k < e ? 6 : 0);
+ break;
+ case k:
+ u = (e - H) / b + 2;
+ break;
+ case e:
+ u = (H - k) / b + 4;
+ break;
+ }
+ u /= 6;
+ }
+ return {
+ h: u,
+ s: m,
+ v: g
+ };
+}
+function Zg(H, k, e) {
+ H = yr(H, 360) * 6, k = yr(k, 100), e = yr(e, 100);
+ var x = Math.floor(H), _ = H - x, u = e * (1 - k), m = e * (1 - _ * k), g = e * (1 - (1 - _) * k), b = x % 6, w = [e, m, u, u, g, e][b], f = [g, e, e, m, u, u][b], y = [u, u, g, e, e, m][b];
+ return {
+ r: w * 255,
+ g: f * 255,
+ b: y * 255
+ };
+}
+function ac(H, k, e, x) {
+ var _ = [Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16))];
+ return x && _[0].charAt(0) == _[0].charAt(1) && _[1].charAt(0) == _[1].charAt(1) && _[2].charAt(0) == _[2].charAt(1) ? _[0].charAt(0) + _[1].charAt(0) + _[2].charAt(0) : _.join("");
+}
+function Jg(H, k, e, x, _) {
+ var u = [Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16)), Wn(Ic(x))];
+ return _ && u[0].charAt(0) == u[0].charAt(1) && u[1].charAt(0) == u[1].charAt(1) && u[2].charAt(0) == u[2].charAt(1) && u[3].charAt(0) == u[3].charAt(1) ? u[0].charAt(0) + u[1].charAt(0) + u[2].charAt(0) + u[3].charAt(0) : u.join("");
+}
+function oc(H, k, e, x) {
+ var _ = [Wn(Ic(x)), Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16))];
+ return _.join("");
+}
+Rt.equals = function(H, k) {
+ return !H || !k ? !1 : Rt(H).toRgbString() == Rt(k).toRgbString();
+};
+Rt.random = function() {
+ return Rt.fromRatio({
+ r: Math.random(),
+ g: Math.random(),
+ b: Math.random()
+ });
+};
+function Qg(H, k) {
+ k = k === 0 ? 0 : k || 10;
+ var e = Rt(H).toHsl();
+ return e.s -= k / 100, e.s = ts(e.s), Rt(e);
+}
+function qg(H, k) {
+ k = k === 0 ? 0 : k || 10;
+ var e = Rt(H).toHsl();
+ return e.s += k / 100, e.s = ts(e.s), Rt(e);
+}
+function e1(H) {
+ return Rt(H).desaturate(100);
+}
+function t1(H, k) {
+ k = k === 0 ? 0 : k || 10;
+ var e = Rt(H).toHsl();
+ return e.l += k / 100, e.l = ts(e.l), Rt(e);
+}
+function r1(H, k) {
+ k = k === 0 ? 0 : k || 10;
+ var e = Rt(H).toRgb();
+ return e.r = Math.max(0, Math.min(255, e.r - Math.round(255 * -(k / 100)))), e.g = Math.max(0, Math.min(255, e.g - Math.round(255 * -(k / 100)))), e.b = Math.max(0, Math.min(255, e.b - Math.round(255 * -(k / 100)))), Rt(e);
+}
+function n1(H, k) {
+ k = k === 0 ? 0 : k || 10;
+ var e = Rt(H).toHsl();
+ return e.l -= k / 100, e.l = ts(e.l), Rt(e);
+}
+function i1(H, k) {
+ var e = Rt(H).toHsl(), x = (e.h + k) % 360;
+ return e.h = x < 0 ? 360 + x : x, Rt(e);
+}
+function a1(H) {
+ var k = Rt(H).toHsl();
+ return k.h = (k.h + 180) % 360, Rt(k);
+}
+function sc(H, k) {
+ if (isNaN(k) || k <= 0)
+ throw new Error("Argument to polyad must be a positive number");
+ for (var e = Rt(H).toHsl(), x = [Rt(H)], _ = 360 / k, u = 1; u < k; u++)
+ x.push(Rt({
+ h: (e.h + u * _) % 360,
+ s: e.s,
+ l: e.l
+ }));
+ return x;
+}
+function o1(H) {
+ var k = Rt(H).toHsl(), e = k.h;
+ return [Rt(H), Rt({
+ h: (e + 72) % 360,
+ s: k.s,
+ l: k.l
+ }), Rt({
+ h: (e + 216) % 360,
+ s: k.s,
+ l: k.l
+ })];
+}
+function s1(H, k, e) {
+ k = k || 6, e = e || 30;
+ var x = Rt(H).toHsl(), _ = 360 / e, u = [Rt(H)];
+ for (x.h = (x.h - (_ * k >> 1) + 720) % 360; --k; )
+ x.h = (x.h + _) % 360, u.push(Rt(x));
+ return u;
+}
+function f1(H, k) {
+ k = k || 6;
+ for (var e = Rt(H).toHsv(), x = e.h, _ = e.s, u = e.v, m = [], g = 1 / k; k--; )
+ m.push(Rt({
+ h: x,
+ s: _,
+ v: u
+ })), u = (u + g) % 1;
+ return m;
+}
+Rt.mix = function(H, k, e) {
+ e = e === 0 ? 0 : e || 50;
+ var x = Rt(H).toRgb(), _ = Rt(k).toRgb(), u = e / 100, m = {
+ r: (_.r - x.r) * u + x.r,
+ g: (_.g - x.g) * u + x.g,
+ b: (_.b - x.b) * u + x.b,
+ a: (_.a - x.a) * u + x.a
+ };
+ return Rt(m);
+};
+Rt.readability = function(H, k) {
+ var e = Rt(H), x = Rt(k);
+ return (Math.max(e.getLuminance(), x.getLuminance()) + 0.05) / (Math.min(e.getLuminance(), x.getLuminance()) + 0.05);
+};
+Rt.isReadable = function(H, k, e) {
+ var x = Rt.readability(H, k), _, u;
+ switch (u = !1, _ = p1(e), _.level + _.size) {
+ case "AAsmall":
+ case "AAAlarge":
+ u = x >= 4.5;
+ break;
+ case "AAlarge":
+ u = x >= 3;
+ break;
+ case "AAAsmall":
+ u = x >= 7;
+ break;
+ }
+ return u;
+};
+Rt.mostReadable = function(H, k, e) {
+ var x = null, _ = 0, u, m, g, b;
+ e = e || {}, m = e.includeFallbackColors, g = e.level, b = e.size;
+ for (var w = 0; w < k.length; w++)
+ u = Rt.readability(H, k[w]), u > _ && (_ = u, x = Rt(k[w]));
+ return Rt.isReadable(H, x, {
+ level: g,
+ size: b
+ }) || !m ? x : (e.includeFallbackColors = !1, Rt.mostReadable(H, ["#fff", "#000"], e));
+};
+var _f = Rt.names = {
+ aliceblue: "f0f8ff",
+ antiquewhite: "faebd7",
+ aqua: "0ff",
+ aquamarine: "7fffd4",
+ azure: "f0ffff",
+ beige: "f5f5dc",
+ bisque: "ffe4c4",
+ black: "000",
+ blanchedalmond: "ffebcd",
+ blue: "00f",
+ blueviolet: "8a2be2",
+ brown: "a52a2a",
+ burlywood: "deb887",
+ burntsienna: "ea7e5d",
+ cadetblue: "5f9ea0",
+ chartreuse: "7fff00",
+ chocolate: "d2691e",
+ coral: "ff7f50",
+ cornflowerblue: "6495ed",
+ cornsilk: "fff8dc",
+ crimson: "dc143c",
+ cyan: "0ff",
+ darkblue: "00008b",
+ darkcyan: "008b8b",
+ darkgoldenrod: "b8860b",
+ darkgray: "a9a9a9",
+ darkgreen: "006400",
+ darkgrey: "a9a9a9",
+ darkkhaki: "bdb76b",
+ darkmagenta: "8b008b",
+ darkolivegreen: "556b2f",
+ darkorange: "ff8c00",
+ darkorchid: "9932cc",
+ darkred: "8b0000",
+ darksalmon: "e9967a",
+ darkseagreen: "8fbc8f",
+ darkslateblue: "483d8b",
+ darkslategray: "2f4f4f",
+ darkslategrey: "2f4f4f",
+ darkturquoise: "00ced1",
+ darkviolet: "9400d3",
+ deeppink: "ff1493",
+ deepskyblue: "00bfff",
+ dimgray: "696969",
+ dimgrey: "696969",
+ dodgerblue: "1e90ff",
+ firebrick: "b22222",
+ floralwhite: "fffaf0",
+ forestgreen: "228b22",
+ fuchsia: "f0f",
+ gainsboro: "dcdcdc",
+ ghostwhite: "f8f8ff",
+ gold: "ffd700",
+ goldenrod: "daa520",
+ gray: "808080",
+ green: "008000",
+ greenyellow: "adff2f",
+ grey: "808080",
+ honeydew: "f0fff0",
+ hotpink: "ff69b4",
+ indianred: "cd5c5c",
+ indigo: "4b0082",
+ ivory: "fffff0",
+ khaki: "f0e68c",
+ lavender: "e6e6fa",
+ lavenderblush: "fff0f5",
+ lawngreen: "7cfc00",
+ lemonchiffon: "fffacd",
+ lightblue: "add8e6",
+ lightcoral: "f08080",
+ lightcyan: "e0ffff",
+ lightgoldenrodyellow: "fafad2",
+ lightgray: "d3d3d3",
+ lightgreen: "90ee90",
+ lightgrey: "d3d3d3",
+ lightpink: "ffb6c1",
+ lightsalmon: "ffa07a",
+ lightseagreen: "20b2aa",
+ lightskyblue: "87cefa",
+ lightslategray: "789",
+ lightslategrey: "789",
+ lightsteelblue: "b0c4de",
+ lightyellow: "ffffe0",
+ lime: "0f0",
+ limegreen: "32cd32",
+ linen: "faf0e6",
+ magenta: "f0f",
+ maroon: "800000",
+ mediumaquamarine: "66cdaa",
+ mediumblue: "0000cd",
+ mediumorchid: "ba55d3",
+ mediumpurple: "9370db",
+ mediumseagreen: "3cb371",
+ mediumslateblue: "7b68ee",
+ mediumspringgreen: "00fa9a",
+ mediumturquoise: "48d1cc",
+ mediumvioletred: "c71585",
+ midnightblue: "191970",
+ mintcream: "f5fffa",
+ mistyrose: "ffe4e1",
+ moccasin: "ffe4b5",
+ navajowhite: "ffdead",
+ navy: "000080",
+ oldlace: "fdf5e6",
+ olive: "808000",
+ olivedrab: "6b8e23",
+ orange: "ffa500",
+ orangered: "ff4500",
+ orchid: "da70d6",
+ palegoldenrod: "eee8aa",
+ palegreen: "98fb98",
+ paleturquoise: "afeeee",
+ palevioletred: "db7093",
+ papayawhip: "ffefd5",
+ peachpuff: "ffdab9",
+ peru: "cd853f",
+ pink: "ffc0cb",
+ plum: "dda0dd",
+ powderblue: "b0e0e6",
+ purple: "800080",
+ rebeccapurple: "663399",
+ red: "f00",
+ rosybrown: "bc8f8f",
+ royalblue: "4169e1",
+ saddlebrown: "8b4513",
+ salmon: "fa8072",
+ sandybrown: "f4a460",
+ seagreen: "2e8b57",
+ seashell: "fff5ee",
+ sienna: "a0522d",
+ silver: "c0c0c0",
+ skyblue: "87ceeb",
+ slateblue: "6a5acd",
+ slategray: "708090",
+ slategrey: "708090",
+ snow: "fffafa",
+ springgreen: "00ff7f",
+ steelblue: "4682b4",
+ tan: "d2b48c",
+ teal: "008080",
+ thistle: "d8bfd8",
+ tomato: "ff6347",
+ turquoise: "40e0d0",
+ violet: "ee82ee",
+ wheat: "f5deb3",
+ white: "fff",
+ whitesmoke: "f5f5f5",
+ yellow: "ff0",
+ yellowgreen: "9acd32"
+}, u1 = Rt.hexNames = l1(_f);
+function l1(H) {
+ var k = {};
+ for (var e in H)
+ H.hasOwnProperty(e) && (k[H[e]] = e);
+ return k;
+}
+function Mc(H) {
+ return H = parseFloat(H), (isNaN(H) || H < 0 || H > 1) && (H = 1), H;
+}
+function yr(H, k) {
+ c1(H) && (H = "100%");
+ var e = h1(H);
+ return H = Math.min(k, Math.max(0, parseFloat(H))), e && (H = parseInt(H * k, 10) / 100), Math.abs(H - k) < 1e-6 ? 1 : H % k / parseFloat(k);
+}
+function ts(H) {
+ return Math.min(1, Math.max(0, H));
+}
+function wn(H) {
+ return parseInt(H, 16);
+}
+function c1(H) {
+ return typeof H == "string" && H.indexOf(".") != -1 && parseFloat(H) === 1;
+}
+function h1(H) {
+ return typeof H == "string" && H.indexOf("%") != -1;
+}
+function Wn(H) {
+ return H.length == 1 ? "0" + H : "" + H;
+}
+function Wa(H) {
+ return H <= 1 && (H = H * 100 + "%"), H;
+}
+function Ic(H) {
+ return Math.round(parseFloat(H) * 255).toString(16);
+}
+function fc(H) {
+ return wn(H) / 255;
+}
+var $n = function() {
+ var H = "[-\\+]?\\d+%?", k = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + k + ")|(?:" + H + ")", x = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", _ = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
+ return {
+ CSS_UNIT: new RegExp(e),
+ rgb: new RegExp("rgb" + x),
+ rgba: new RegExp("rgba" + _),
+ hsl: new RegExp("hsl" + x),
+ hsla: new RegExp("hsla" + _),
+ hsv: new RegExp("hsv" + x),
+ hsva: new RegExp("hsva" + _),
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
+ };
+}();
+function ci(H) {
+ return !!$n.CSS_UNIT.exec(H);
+}
+function d1(H) {
+ H = H.replace(Wg, "").replace(Vg, "").toLowerCase();
+ var k = !1;
+ if (_f[H])
+ H = _f[H], k = !0;
+ else if (H == "transparent")
+ return {
+ r: 0,
+ g: 0,
+ b: 0,
+ a: 0,
+ format: "name"
+ };
+ var e;
+ return (e = $n.rgb.exec(H)) ? {
+ r: e[1],
+ g: e[2],
+ b: e[3]
+ } : (e = $n.rgba.exec(H)) ? {
+ r: e[1],
+ g: e[2],
+ b: e[3],
+ a: e[4]
+ } : (e = $n.hsl.exec(H)) ? {
+ h: e[1],
+ s: e[2],
+ l: e[3]
+ } : (e = $n.hsla.exec(H)) ? {
+ h: e[1],
+ s: e[2],
+ l: e[3],
+ a: e[4]
+ } : (e = $n.hsv.exec(H)) ? {
+ h: e[1],
+ s: e[2],
+ v: e[3]
+ } : (e = $n.hsva.exec(H)) ? {
+ h: e[1],
+ s: e[2],
+ v: e[3],
+ a: e[4]
+ } : (e = $n.hex8.exec(H)) ? {
+ r: wn(e[1]),
+ g: wn(e[2]),
+ b: wn(e[3]),
+ a: fc(e[4]),
+ format: k ? "name" : "hex8"
+ } : (e = $n.hex6.exec(H)) ? {
+ r: wn(e[1]),
+ g: wn(e[2]),
+ b: wn(e[3]),
+ format: k ? "name" : "hex"
+ } : (e = $n.hex4.exec(H)) ? {
+ r: wn(e[1] + "" + e[1]),
+ g: wn(e[2] + "" + e[2]),
+ b: wn(e[3] + "" + e[3]),
+ a: fc(e[4] + "" + e[4]),
+ format: k ? "name" : "hex8"
+ } : (e = $n.hex3.exec(H)) ? {
+ r: wn(e[1] + "" + e[1]),
+ g: wn(e[2] + "" + e[2]),
+ b: wn(e[3] + "" + e[3]),
+ format: k ? "name" : "hex"
+ } : !1;
+}
+function p1(H) {
+ var k, e;
+ return H = H || {
+ level: "AA",
+ size: "small"
+ }, k = (H.level || "AA").toUpperCase(), e = (H.size || "small").toLowerCase(), k !== "AA" && k !== "AAA" && (k = "AA"), e !== "small" && e !== "large" && (e = "small"), {
+ level: k,
+ size: e
+ };
+}
+var ga = {}, y1 = {
+ get exports() {
+ return ga;
+ },
+ set exports(H) {
+ ga = H;
+ }
+};
+/**
+ * @license
+ * Lodash
+ * Copyright OpenJS Foundation and other contributors
+ * Released under MIT license
+ * Based on Underscore.js 1.8.3
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */
+(function(H, k) {
+ (function() {
+ var e, x = "4.17.21", _ = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", g = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", w = 500, f = "__lodash_placeholder__", y = 1, h = 2, l = 4, d = 1, s = 2, v = 1, c = 2, a = 4, r = 8, t = 16, i = 32, n = 64, o = 128, p = 256, O = 512, P = 30, F = "...", z = 800, N = 16, M = 1, I = 2, R = 3, C = 1 / 0, E = 9007199254740991, A = 17976931348623157e292, L = 0 / 0, $ = 4294967295, W = $ - 1, U = $ >>> 1, D = [
+ ["ary", o],
+ ["bind", v],
+ ["bindKey", c],
+ ["curry", r],
+ ["curryRight", t],
+ ["flip", O],
+ ["partial", i],
+ ["partialRight", n],
+ ["rearg", p]
+ ], B = "[object Arguments]", j = "[object Array]", V = "[object AsyncFunction]", re = "[object Boolean]", ee = "[object Date]", ce = "[object DOMException]", ve = "[object Error]", ge = "[object Function]", oe = "[object GeneratorFunction]", J = "[object Map]", Q = "[object Number]", he = "[object Null]", ke = "[object Object]", ne = "[object Promise]", se = "[object Proxy]", Ce = "[object RegExp]", q = "[object Set]", G = "[object String]", Y = "[object Symbol]", fe = "[object Undefined]", we = "[object WeakMap]", _e = "[object WeakSet]", je = "[object ArrayBuffer]", Ye = "[object DataView]", nt = "[object Float32Array]", ut = "[object Float64Array]", ot = "[object Int8Array]", Ue = "[object Int16Array]", Ve = "[object Int32Array]", Qe = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", ae = "[object Uint16Array]", Re = "[object Uint32Array]", be = /\b__p \+= '';/g, Ee = /\b(__p \+=) '' \+/g, pe = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Pe = /&(?:amp|lt|gt|quot|#39);/g, te = /[&<>"']/g, He = RegExp(Pe.source), it = RegExp(te.source), K = /<%-([\s\S]+?)%>/g, Me = /<%([\s\S]+?)%>/g, Le = /<%=([\s\S]+?)%>/g, ue = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Se = /^\w*$/, Ie = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, st = /[\\^$.*+?()[\]{}|]/g, Ge = RegExp(st.source), rt = /^\s+/, _t = /\s/, wt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ot = /\{\n\/\* \[wrapped with (.+)\] \*/, pt = /,? & /, ct = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, At = /[()=,{}\[\]\/\s]/, Pt = /\\(\\)?/g, bt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Kt = /\w*$/, Ct = /^[-+]0x[0-9a-f]+$/i, xt = /^0b[01]+$/i, Ft = /^\[object .+?Constructor\]$/, Lt = /^0o[0-7]+$/i, Et = /^(?:0|[1-9]\d*)$/, Dr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Or = /($^)/, Gr = /['\n\r\u2028\u2029\\]/g, Nr = "\\ud800-\\udfff", Yr = "\\u0300-\\u036f", Qt = "\\ufe20-\\ufe2f", Xr = "\\u20d0-\\u20ff", Fr = Yr + Qt + Xr, Lr = "\\u2700-\\u27bf", Ur = "a-z\\xdf-\\xf6\\xf8-\\xff", vt = "\\xac\\xb1\\xd7\\xf7", Ke = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", me = "\\u2000-\\u206f", Fe = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Be = "A-Z\\xc0-\\xd6\\xd8-\\xde", dt = "\\ufe0e\\ufe0f", St = vt + Ke + me + Fe, Ht = "['’]", lr = "[" + Nr + "]", gr = "[" + St + "]", rn = "[" + Fr + "]", zr = "\\d+", pi = "[" + Lr + "]", $r = "[" + Ur + "]", Dn = "[^" + Nr + St + zr + Lr + Ur + Be + "]", cn = "\\ud83c[\\udffb-\\udfff]", yi = "(?:" + rn + "|" + cn + ")", hn = "[^" + Nr + "]", dn = "(?:\\ud83c[\\udde6-\\uddff]){2}", Nn = "[\\ud800-\\udbff][\\udc00-\\udfff]", Fn = "[" + Be + "]", Xi = "\\u200d", Ui = "(?:" + $r + "|" + Dn + ")", $i = "(?:" + Fn + "|" + Dn + ")", ei = "(?:" + Ht + "(?:d|ll|m|re|s|t|ve))?", Bn = "(?:" + Ht + "(?:D|LL|M|RE|S|T|VE))?", Wi = yi + "?", Vi = "[" + dt + "]?", xn = "(?:" + Xi + "(?:" + [hn, dn, Nn].join("|") + ")" + Vi + Wi + ")*", wa = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ki = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Gi = Vi + Wi + xn, xa = "(?:" + [pi, dn, Nn].join("|") + ")" + Gi, Sa = "(?:" + [hn + rn + "?", rn, dn, Nn, lr].join("|") + ")", Sn = RegExp(Ht, "g"), Yi = RegExp(rn, "g"), Ri = RegExp(cn + "(?=" + cn + ")|" + Sa + Gi, "g"), jn = RegExp([
+ Fn + "?" + $r + "+" + ei + "(?=" + [gr, Fn, "$"].join("|") + ")",
+ $i + "+" + Bn + "(?=" + [gr, Fn + Ui, "$"].join("|") + ")",
+ Fn + "?" + Ui + "+" + ei,
+ Fn + "+" + Bn,
+ Ki,
+ wa,
+ zr,
+ xa
+ ].join("|"), "g"), ka = RegExp("[" + Xi + Nr + Fr + dt + "]"), kn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, On = [
+ "Array",
+ "Buffer",
+ "DataView",
+ "Date",
+ "Error",
+ "Float32Array",
+ "Float64Array",
+ "Function",
+ "Int8Array",
+ "Int16Array",
+ "Int32Array",
+ "Map",
+ "Math",
+ "Object",
+ "Promise",
+ "RegExp",
+ "Set",
+ "String",
+ "Symbol",
+ "TypeError",
+ "Uint8Array",
+ "Uint8ClampedArray",
+ "Uint16Array",
+ "Uint32Array",
+ "WeakMap",
+ "_",
+ "clearTimeout",
+ "isFinite",
+ "parseInt",
+ "setTimeout"
+ ], Zi = -1, rr = {};
+ rr[nt] = rr[ut] = rr[ot] = rr[Ue] = rr[Ve] = rr[Qe] = rr[tt] = rr[ae] = rr[Re] = !0, rr[B] = rr[j] = rr[je] = rr[re] = rr[Ye] = rr[ee] = rr[ve] = rr[ge] = rr[J] = rr[Q] = rr[ke] = rr[Ce] = rr[q] = rr[G] = rr[we] = !1;
+ var er = {};
+ er[B] = er[j] = er[je] = er[Ye] = er[re] = er[ee] = er[nt] = er[ut] = er[ot] = er[Ue] = er[Ve] = er[J] = er[Q] = er[ke] = er[Ce] = er[q] = er[G] = er[Y] = er[Qe] = er[tt] = er[ae] = er[Re] = !0, er[ve] = er[ge] = er[we] = !1;
+ var ti = {
+ // Latin-1 Supplement block.
+ À: "A",
+ Á: "A",
+ Â: "A",
+ Ã: "A",
+ Ä: "A",
+ Å: "A",
+ à: "a",
+ á: "a",
+ â: "a",
+ ã: "a",
+ ä: "a",
+ å: "a",
+ Ç: "C",
+ ç: "c",
+ Ð: "D",
+ ð: "d",
+ È: "E",
+ É: "E",
+ Ê: "E",
+ Ë: "E",
+ è: "e",
+ é: "e",
+ ê: "e",
+ ë: "e",
+ Ì: "I",
+ Í: "I",
+ Î: "I",
+ Ï: "I",
+ ì: "i",
+ í: "i",
+ î: "i",
+ ï: "i",
+ Ñ: "N",
+ ñ: "n",
+ Ò: "O",
+ Ó: "O",
+ Ô: "O",
+ Õ: "O",
+ Ö: "O",
+ Ø: "O",
+ ò: "o",
+ ó: "o",
+ ô: "o",
+ õ: "o",
+ ö: "o",
+ ø: "o",
+ Ù: "U",
+ Ú: "U",
+ Û: "U",
+ Ü: "U",
+ ù: "u",
+ ú: "u",
+ û: "u",
+ ü: "u",
+ Ý: "Y",
+ ý: "y",
+ ÿ: "y",
+ Æ: "Ae",
+ æ: "ae",
+ Þ: "Th",
+ þ: "th",
+ ß: "ss",
+ // Latin Extended-A block.
+ Ā: "A",
+ Ă: "A",
+ Ą: "A",
+ ā: "a",
+ ă: "a",
+ ą: "a",
+ Ć: "C",
+ Ĉ: "C",
+ Ċ: "C",
+ Č: "C",
+ ć: "c",
+ ĉ: "c",
+ ċ: "c",
+ č: "c",
+ Ď: "D",
+ Đ: "D",
+ ď: "d",
+ đ: "d",
+ Ē: "E",
+ Ĕ: "E",
+ Ė: "E",
+ Ę: "E",
+ Ě: "E",
+ ē: "e",
+ ĕ: "e",
+ ė: "e",
+ ę: "e",
+ ě: "e",
+ Ĝ: "G",
+ Ğ: "G",
+ Ġ: "G",
+ Ģ: "G",
+ ĝ: "g",
+ ğ: "g",
+ ġ: "g",
+ ģ: "g",
+ Ĥ: "H",
+ Ħ: "H",
+ ĥ: "h",
+ ħ: "h",
+ Ĩ: "I",
+ Ī: "I",
+ Ĭ: "I",
+ Į: "I",
+ İ: "I",
+ ĩ: "i",
+ ī: "i",
+ ĭ: "i",
+ į: "i",
+ ı: "i",
+ Ĵ: "J",
+ ĵ: "j",
+ Ķ: "K",
+ ķ: "k",
+ ĸ: "k",
+ Ĺ: "L",
+ Ļ: "L",
+ Ľ: "L",
+ Ŀ: "L",
+ Ł: "L",
+ ĺ: "l",
+ ļ: "l",
+ ľ: "l",
+ ŀ: "l",
+ ł: "l",
+ Ń: "N",
+ Ņ: "N",
+ Ň: "N",
+ Ŋ: "N",
+ ń: "n",
+ ņ: "n",
+ ň: "n",
+ ŋ: "n",
+ Ō: "O",
+ Ŏ: "O",
+ Ő: "O",
+ ō: "o",
+ ŏ: "o",
+ ő: "o",
+ Ŕ: "R",
+ Ŗ: "R",
+ Ř: "R",
+ ŕ: "r",
+ ŗ: "r",
+ ř: "r",
+ Ś: "S",
+ Ŝ: "S",
+ Ş: "S",
+ Š: "S",
+ ś: "s",
+ ŝ: "s",
+ ş: "s",
+ š: "s",
+ Ţ: "T",
+ Ť: "T",
+ Ŧ: "T",
+ ţ: "t",
+ ť: "t",
+ ŧ: "t",
+ Ũ: "U",
+ Ū: "U",
+ Ŭ: "U",
+ Ů: "U",
+ Ű: "U",
+ Ų: "U",
+ ũ: "u",
+ ū: "u",
+ ŭ: "u",
+ ů: "u",
+ ű: "u",
+ ų: "u",
+ Ŵ: "W",
+ ŵ: "w",
+ Ŷ: "Y",
+ ŷ: "y",
+ Ÿ: "Y",
+ Ź: "Z",
+ Ż: "Z",
+ Ž: "Z",
+ ź: "z",
+ ż: "z",
+ ž: "z",
+ IJ: "IJ",
+ ij: "ij",
+ Œ: "Oe",
+ œ: "oe",
+ ʼn: "'n",
+ ſ: "s"
+ }, Ji = {
+ "&": "&",
+ "<": "<",
+ ">": ">",
+ '"': """,
+ "'": "'"
+ }, Oa = {
+ "&": "&",
+ "<": "<",
+ ">": ">",
+ """: '"',
+ "'": "'"
+ }, Qi = {
+ "\\": "\\",
+ "'": "'",
+ "\n": "n",
+ "\r": "r",
+ "\u2028": "u2028",
+ "\u2029": "u2029"
+ }, qi = parseFloat, xe = parseInt, De = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, Je = typeof self == "object" && self && self.Object === Object && self, ht = De || Je || Function("return this")(), Yt = k && !k.nodeType && k, Mt = Yt && !0 && H && !H.nodeType && H, fr = Mt && Mt.exports === Yt, nr = fr && De.process, tr = function() {
+ try {
+ var Ne = Mt && Mt.require && Mt.require("util").types;
+ return Ne || nr && nr.binding && nr.binding("util");
+ } catch (Ze) {
+ }
+ }(), ur = tr && tr.isArrayBuffer, Pr = tr && tr.isDate, Br = tr && tr.isMap, dr = tr && tr.isRegExp, Er = tr && tr.isSet, Ar = tr && tr.isTypedArray;
+ function pr(Ne, Ze, We) {
+ switch (We.length) {
+ case 0:
+ return Ne.call(Ze);
+ case 1:
+ return Ne.call(Ze, We[0]);
+ case 2:
+ return Ne.call(Ze, We[0], We[1]);
+ case 3:
+ return Ne.call(Ze, We[0], We[1], We[2]);
+ }
+ return Ne.apply(Ze, We);
+ }
+ function pn(Ne, Ze, We, gt) {
+ for (var Bt = -1, ar = Ne == null ? 0 : Ne.length; ++Bt < ar; ) {
+ var Mr = Ne[Bt];
+ Ze(gt, Mr, We(Mr), Ne);
+ }
+ return gt;
+ }
+ function mr(Ne, Ze) {
+ for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt && Ze(Ne[We], We, Ne) !== !1; )
+ ;
+ return Ne;
+ }
+ function ea(Ne, Ze) {
+ for (var We = Ne == null ? 0 : Ne.length; We-- && Ze(Ne[We], We, Ne) !== !1; )
+ ;
+ return Ne;
+ }
+ function En(Ne, Ze) {
+ for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt; )
+ if (!Ze(Ne[We], We, Ne))
+ return !1;
+ return !0;
+ }
+ function Zr(Ne, Ze) {
+ for (var We = -1, gt = Ne == null ? 0 : Ne.length, Bt = 0, ar = []; ++We < gt; ) {
+ var Mr = Ne[We];
+ Ze(Mr, We, Ne) && (ar[Bt++] = Mr);
+ }
+ return ar;
+ }
+ function ta(Ne, Ze) {
+ var We = Ne == null ? 0 : Ne.length;
+ return !!We && wr(Ne, Ze, 0) > -1;
+ }
+ function le(Ne, Ze, We) {
+ for (var gt = -1, Bt = Ne == null ? 0 : Ne.length; ++gt < Bt; )
+ if (We(Ze, Ne[gt]))
+ return !0;
+ return !1;
+ }
+ function Oe(Ne, Ze) {
+ for (var We = -1, gt = Ne == null ? 0 : Ne.length, Bt = Array(gt); ++We < gt; )
+ Bt[We] = Ze(Ne[We], We, Ne);
+ return Bt;
+ }
+ function Xe(Ne, Ze) {
+ for (var We = -1, gt = Ze.length, Bt = Ne.length; ++We < gt; )
+ Ne[Bt + We] = Ze[We];
+ return Ne;
+ }
+ function ft(Ne, Ze, We, gt) {
+ var Bt = -1, ar = Ne == null ? 0 : Ne.length;
+ for (gt && ar && (We = Ne[++Bt]); ++Bt < ar; )
+ We = Ze(We, Ne[Bt], Bt, Ne);
+ return We;
+ }
+ function Tt(Ne, Ze, We, gt) {
+ var Bt = Ne == null ? 0 : Ne.length;
+ for (gt && Bt && (We = Ne[--Bt]); Bt--; )
+ We = Ze(We, Ne[Bt], Bt, Ne);
+ return We;
+ }
+ function mt(Ne, Ze) {
+ for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt; )
+ if (Ze(Ne[We], We, Ne))
+ return !0;
+ return !1;
+ }
+ var Xt = Tn("length");
+ function ir(Ne) {
+ return Ne.split("");
+ }
+ function hr(Ne) {
+ return Ne.match(ct) || [];
+ }
+ function _r(Ne, Ze, We) {
+ var gt;
+ return We(Ne, function(Bt, ar, Mr) {
+ if (Ze(Bt, ar, Mr))
+ return gt = ar, !1;
+ }), gt;
+ }
+ function Tr(Ne, Ze, We, gt) {
+ for (var Bt = Ne.length, ar = We + (gt ? 1 : -1); gt ? ar-- : ++ar < Bt; )
+ if (Ze(Ne[ar], ar, Ne))
+ return ar;
+ return -1;
+ }
+ function wr(Ne, Ze, We) {
+ return Ze === Ze ? Wc(Ne, Ze, We) : Tr(Ne, Jr, We);
+ }
+ function Rr(Ne, Ze, We, gt) {
+ for (var Bt = We - 1, ar = Ne.length; ++Bt < ar; )
+ if (gt(Ne[Bt], Ze))
+ return Bt;
+ return -1;
+ }
+ function Jr(Ne) {
+ return Ne !== Ne;
+ }
+ function Qr(Ne, Ze) {
+ var We = Ne == null ? 0 : Ne.length;
+ return We ? vi(Ne, Ze) / We : L;
+ }
+ function Tn(Ne) {
+ return function(Ze) {
+ return Ze == null ? e : Ze[Ne];
+ };
+ }
+ function yn(Ne) {
+ return function(Ze) {
+ return Ne == null ? e : Ne[Ze];
+ };
+ }
+ function Vn(Ne, Ze, We, gt, Bt) {
+ return Bt(Ne, function(ar, Mr, cr) {
+ We = gt ? (gt = !1, ar) : Ze(We, ar, Mr, cr);
+ }), We;
+ }
+ function Ya(Ne, Ze) {
+ var We = Ne.length;
+ for (Ne.sort(Ze); We--; )
+ Ne[We] = Ne[We].value;
+ return Ne;
+ }
+ function vi(Ne, Ze) {
+ for (var We, gt = -1, Bt = Ne.length; ++gt < Bt; ) {
+ var ar = Ze(Ne[gt]);
+ ar !== e && (We = We === e ? ar : We + ar);
+ }
+ return We;
+ }
+ function mi(Ne, Ze) {
+ for (var We = -1, gt = Array(Ne); ++We < Ne; )
+ gt[We] = Ze(We);
+ return gt;
+ }
+ function Fc(Ne, Ze) {
+ return Oe(Ze, function(We) {
+ return [We, Ne[We]];
+ });
+ }
+ function Mf(Ne) {
+ return Ne && Ne.slice(0, Ff(Ne) + 1).replace(rt, "");
+ }
+ function vn(Ne) {
+ return function(Ze) {
+ return Ne(Ze);
+ };
+ }
+ function rs(Ne, Ze) {
+ return Oe(Ze, function(We) {
+ return Ne[We];
+ });
+ }
+ function Ea(Ne, Ze) {
+ return Ne.has(Ze);
+ }
+ function If(Ne, Ze) {
+ for (var We = -1, gt = Ne.length; ++We < gt && wr(Ze, Ne[We], 0) > -1; )
+ ;
+ return We;
+ }
+ function Df(Ne, Ze) {
+ for (var We = Ne.length; We-- && wr(Ze, Ne[We], 0) > -1; )
+ ;
+ return We;
+ }
+ function Bc(Ne, Ze) {
+ for (var We = Ne.length, gt = 0; We--; )
+ Ne[We] === Ze && ++gt;
+ return gt;
+ }
+ var jc = yn(ti), Lc = yn(Ji);
+ function zc(Ne) {
+ return "\\" + Qi[Ne];
+ }
+ function Hc(Ne, Ze) {
+ return Ne == null ? e : Ne[Ze];
+ }
+ function ra(Ne) {
+ return ka.test(Ne);
+ }
+ function Xc(Ne) {
+ return kn.test(Ne);
+ }
+ function Uc(Ne) {
+ for (var Ze, We = []; !(Ze = Ne.next()).done; )
+ We.push(Ze.value);
+ return We;
+ }
+ function ns(Ne) {
+ var Ze = -1, We = Array(Ne.size);
+ return Ne.forEach(function(gt, Bt) {
+ We[++Ze] = [Bt, gt];
+ }), We;
+ }
+ function Nf(Ne, Ze) {
+ return function(We) {
+ return Ne(Ze(We));
+ };
+ }
+ function bi(Ne, Ze) {
+ for (var We = -1, gt = Ne.length, Bt = 0, ar = []; ++We < gt; ) {
+ var Mr = Ne[We];
+ (Mr === Ze || Mr === f) && (Ne[We] = f, ar[Bt++] = We);
+ }
+ return ar;
+ }
+ function Za(Ne) {
+ var Ze = -1, We = Array(Ne.size);
+ return Ne.forEach(function(gt) {
+ We[++Ze] = gt;
+ }), We;
+ }
+ function $c(Ne) {
+ var Ze = -1, We = Array(Ne.size);
+ return Ne.forEach(function(gt) {
+ We[++Ze] = [gt, gt];
+ }), We;
+ }
+ function Wc(Ne, Ze, We) {
+ for (var gt = We - 1, Bt = Ne.length; ++gt < Bt; )
+ if (Ne[gt] === Ze)
+ return gt;
+ return -1;
+ }
+ function Vc(Ne, Ze, We) {
+ for (var gt = We + 1; gt--; )
+ if (Ne[gt] === Ze)
+ return gt;
+ return gt;
+ }
+ function na(Ne) {
+ return ra(Ne) ? Gc(Ne) : Xt(Ne);
+ }
+ function Ln(Ne) {
+ return ra(Ne) ? Yc(Ne) : ir(Ne);
+ }
+ function Ff(Ne) {
+ for (var Ze = Ne.length; Ze-- && _t.test(Ne.charAt(Ze)); )
+ ;
+ return Ze;
+ }
+ var Kc = yn(Oa);
+ function Gc(Ne) {
+ for (var Ze = Ri.lastIndex = 0; Ri.test(Ne); )
+ ++Ze;
+ return Ze;
+ }
+ function Yc(Ne) {
+ return Ne.match(Ri) || [];
+ }
+ function Zc(Ne) {
+ return Ne.match(jn) || [];
+ }
+ var Jc = function Ne(Ze) {
+ Ze = Ze == null ? ht : ia.defaults(ht.Object(), Ze, ia.pick(ht, On));
+ var We = Ze.Array, gt = Ze.Date, Bt = Ze.Error, ar = Ze.Function, Mr = Ze.Math, cr = Ze.Object, is = Ze.RegExp, Qc = Ze.String, Rn = Ze.TypeError, Ja = We.prototype, qc = ar.prototype, aa = cr.prototype, Qa = Ze["__core-js_shared__"], qa = qc.toString, sr = aa.hasOwnProperty, eh = 0, Bf = function() {
+ var S = /[^.]+$/.exec(Qa && Qa.keys && Qa.keys.IE_PROTO || "");
+ return S ? "Symbol(src)_1." + S : "";
+ }(), eo = aa.toString, th = qa.call(cr), rh = ht._, nh = is(
+ "^" + qa.call(sr).replace(st, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
+ ), to = fr ? Ze.Buffer : e, gi = Ze.Symbol, ro = Ze.Uint8Array, jf = to ? to.allocUnsafe : e, no = Nf(cr.getPrototypeOf, cr), Lf = cr.create, zf = aa.propertyIsEnumerable, io = Ja.splice, Hf = gi ? gi.isConcatSpreadable : e, Ta = gi ? gi.iterator : e, Ci = gi ? gi.toStringTag : e, ao = function() {
+ try {
+ var S = Di(cr, "defineProperty");
+ return S({}, "", {}), S;
+ } catch (T) {
+ }
+ }(), ih = Ze.clearTimeout !== ht.clearTimeout && Ze.clearTimeout, ah = gt && gt.now !== ht.Date.now && gt.now, oh = Ze.setTimeout !== ht.setTimeout && Ze.setTimeout, oo = Mr.ceil, so = Mr.floor, as = cr.getOwnPropertySymbols, sh = to ? to.isBuffer : e, Xf = Ze.isFinite, fh = Ja.join, uh = Nf(cr.keys, cr), Ir = Mr.max, Wr = Mr.min, lh = gt.now, ch = Ze.parseInt, Uf = Mr.random, hh = Ja.reverse, os = Di(Ze, "DataView"), Ra = Di(Ze, "Map"), ss = Di(Ze, "Promise"), oa = Di(Ze, "Set"), Ca = Di(Ze, "WeakMap"), Pa = Di(cr, "create"), fo = Ca && new Ca(), sa = {}, dh = Ni(os), ph = Ni(Ra), yh = Ni(ss), vh = Ni(oa), mh = Ni(Ca), uo = gi ? gi.prototype : e, Aa = uo ? uo.valueOf : e, $f = uo ? uo.toString : e;
+ function de(S) {
+ if (br(S) && !jt(S) && !(S instanceof Zt)) {
+ if (S instanceof Cn)
+ return S;
+ if (sr.call(S, "__wrapped__"))
+ return Wu(S);
+ }
+ return new Cn(S);
+ }
+ var fa = function() {
+ function S() {
+ }
+ return function(T) {
+ if (!vr(T))
+ return {};
+ if (Lf)
+ return Lf(T);
+ S.prototype = T;
+ var X = new S();
+ return S.prototype = e, X;
+ };
+ }();
+ function lo() {
+ }
+ function Cn(S, T) {
+ this.__wrapped__ = S, this.__actions__ = [], this.__chain__ = !!T, this.__index__ = 0, this.__values__ = e;
+ }
+ de.templateSettings = {
+ /**
+ * Used to detect `data` property values to be HTML-escaped.
+ *
+ * @memberOf _.templateSettings
+ * @type {RegExp}
+ */
+ escape: K,
+ /**
+ * Used to detect code to be evaluated.
+ *
+ * @memberOf _.templateSettings
+ * @type {RegExp}
+ */
+ evaluate: Me,
+ /**
+ * Used to detect `data` property values to inject.
+ *
+ * @memberOf _.templateSettings
+ * @type {RegExp}
+ */
+ interpolate: Le,
+ /**
+ * Used to reference the data object in the template text.
+ *
+ * @memberOf _.templateSettings
+ * @type {string}
+ */
+ variable: "",
+ /**
+ * Used to import variables into the compiled template.
+ *
+ * @memberOf _.templateSettings
+ * @type {Object}
+ */
+ imports: {
+ /**
+ * A reference to the `lodash` function.
+ *
+ * @memberOf _.templateSettings.imports
+ * @type {Function}
+ */
+ _: de
+ }
+ }, de.prototype = lo.prototype, de.prototype.constructor = de, Cn.prototype = fa(lo.prototype), Cn.prototype.constructor = Cn;
+ function Zt(S) {
+ this.__wrapped__ = S, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = $, this.__views__ = [];
+ }
+ function bh() {
+ var S = new Zt(this.__wrapped__);
+ return S.__actions__ = nn(this.__actions__), S.__dir__ = this.__dir__, S.__filtered__ = this.__filtered__, S.__iteratees__ = nn(this.__iteratees__), S.__takeCount__ = this.__takeCount__, S.__views__ = nn(this.__views__), S;
+ }
+ function gh() {
+ if (this.__filtered__) {
+ var S = new Zt(this);
+ S.__dir__ = -1, S.__filtered__ = !0;
+ } else
+ S = this.clone(), S.__dir__ *= -1;
+ return S;
+ }
+ function _h() {
+ var S = this.__wrapped__.value(), T = this.__dir__, X = jt(S), Z = T < 0, ie = X ? S.length : 0, ye = Md(0, ie, this.__views__), Te = ye.start, Ae = ye.end, ze = Ae - Te, qe = Z ? Ae : Te - 1, et = this.__iteratees__, at = et.length, yt = 0, kt = Wr(ze, this.__takeCount__);
+ if (!X || !Z && ie == ze && kt == ze)
+ return pu(S, this.__actions__);
+ var Dt = [];
+ e:
+ for (; ze-- && yt < kt; ) {
+ qe += T;
+ for (var $t = -1, Nt = S[qe]; ++$t < at; ) {
+ var Gt = et[$t], qt = Gt.iteratee, gn = Gt.type, tn = qt(Nt);
+ if (gn == I)
+ Nt = tn;
+ else if (!tn) {
+ if (gn == M)
+ continue e;
+ break e;
+ }
+ }
+ Dt[yt++] = Nt;
+ }
+ return Dt;
+ }
+ Zt.prototype = fa(lo.prototype), Zt.prototype.constructor = Zt;
+ function Pi(S) {
+ var T = -1, X = S == null ? 0 : S.length;
+ for (this.clear(); ++T < X; ) {
+ var Z = S[T];
+ this.set(Z[0], Z[1]);
+ }
+ }
+ function wh() {
+ this.__data__ = Pa ? Pa(null) : {}, this.size = 0;
+ }
+ function xh(S) {
+ var T = this.has(S) && delete this.__data__[S];
+ return this.size -= T ? 1 : 0, T;
+ }
+ function Sh(S) {
+ var T = this.__data__;
+ if (Pa) {
+ var X = T[S];
+ return X === b ? e : X;
+ }
+ return sr.call(T, S) ? T[S] : e;
+ }
+ function kh(S) {
+ var T = this.__data__;
+ return Pa ? T[S] !== e : sr.call(T, S);
+ }
+ function Oh(S, T) {
+ var X = this.__data__;
+ return this.size += this.has(S) ? 0 : 1, X[S] = Pa && T === e ? b : T, this;
+ }
+ Pi.prototype.clear = wh, Pi.prototype.delete = xh, Pi.prototype.get = Sh, Pi.prototype.has = kh, Pi.prototype.set = Oh;
+ function ri(S) {
+ var T = -1, X = S == null ? 0 : S.length;
+ for (this.clear(); ++T < X; ) {
+ var Z = S[T];
+ this.set(Z[0], Z[1]);
+ }
+ }
+ function Eh() {
+ this.__data__ = [], this.size = 0;
+ }
+ function Th(S) {
+ var T = this.__data__, X = co(T, S);
+ if (X < 0)
+ return !1;
+ var Z = T.length - 1;
+ return X == Z ? T.pop() : io.call(T, X, 1), --this.size, !0;
+ }
+ function Rh(S) {
+ var T = this.__data__, X = co(T, S);
+ return X < 0 ? e : T[X][1];
+ }
+ function Ch(S) {
+ return co(this.__data__, S) > -1;
+ }
+ function Ph(S, T) {
+ var X = this.__data__, Z = co(X, S);
+ return Z < 0 ? (++this.size, X.push([S, T])) : X[Z][1] = T, this;
+ }
+ ri.prototype.clear = Eh, ri.prototype.delete = Th, ri.prototype.get = Rh, ri.prototype.has = Ch, ri.prototype.set = Ph;
+ function ni(S) {
+ var T = -1, X = S == null ? 0 : S.length;
+ for (this.clear(); ++T < X; ) {
+ var Z = S[T];
+ this.set(Z[0], Z[1]);
+ }
+ }
+ function Ah() {
+ this.size = 0, this.__data__ = {
+ hash: new Pi(),
+ map: new (Ra || ri)(),
+ string: new Pi()
+ };
+ }
+ function Mh(S) {
+ var T = ko(this, S).delete(S);
+ return this.size -= T ? 1 : 0, T;
+ }
+ function Ih(S) {
+ return ko(this, S).get(S);
+ }
+ function Dh(S) {
+ return ko(this, S).has(S);
+ }
+ function Nh(S, T) {
+ var X = ko(this, S), Z = X.size;
+ return X.set(S, T), this.size += X.size == Z ? 0 : 1, this;
+ }
+ ni.prototype.clear = Ah, ni.prototype.delete = Mh, ni.prototype.get = Ih, ni.prototype.has = Dh, ni.prototype.set = Nh;
+ function Ai(S) {
+ var T = -1, X = S == null ? 0 : S.length;
+ for (this.__data__ = new ni(); ++T < X; )
+ this.add(S[T]);
+ }
+ function Fh(S) {
+ return this.__data__.set(S, b), this;
+ }
+ function Bh(S) {
+ return this.__data__.has(S);
+ }
+ Ai.prototype.add = Ai.prototype.push = Fh, Ai.prototype.has = Bh;
+ function zn(S) {
+ var T = this.__data__ = new ri(S);
+ this.size = T.size;
+ }
+ function jh() {
+ this.__data__ = new ri(), this.size = 0;
+ }
+ function Lh(S) {
+ var T = this.__data__, X = T.delete(S);
+ return this.size = T.size, X;
+ }
+ function zh(S) {
+ return this.__data__.get(S);
+ }
+ function Hh(S) {
+ return this.__data__.has(S);
+ }
+ function Xh(S, T) {
+ var X = this.__data__;
+ if (X instanceof ri) {
+ var Z = X.__data__;
+ if (!Ra || Z.length < _ - 1)
+ return Z.push([S, T]), this.size = ++X.size, this;
+ X = this.__data__ = new ni(Z);
+ }
+ return X.set(S, T), this.size = X.size, this;
+ }
+ zn.prototype.clear = jh, zn.prototype.delete = Lh, zn.prototype.get = zh, zn.prototype.has = Hh, zn.prototype.set = Xh;
+ function Wf(S, T) {
+ var X = jt(S), Z = !X && Fi(S), ie = !X && !Z && ki(S), ye = !X && !Z && !ie && ha(S), Te = X || Z || ie || ye, Ae = Te ? mi(S.length, Qc) : [], ze = Ae.length;
+ for (var qe in S)
+ (T || sr.call(S, qe)) && !(Te && // Safari 9 has enumerable `arguments.length` in strict mode.
+ (qe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
+ ie && (qe == "offset" || qe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
+ ye && (qe == "buffer" || qe == "byteLength" || qe == "byteOffset") || // Skip index properties.
+ si(qe, ze))) && Ae.push(qe);
+ return Ae;
+ }
+ function Vf(S) {
+ var T = S.length;
+ return T ? S[bs(0, T - 1)] : e;
+ }
+ function Uh(S, T) {
+ return Oo(nn(S), Mi(T, 0, S.length));
+ }
+ function $h(S) {
+ return Oo(nn(S));
+ }
+ function fs(S, T, X) {
+ (X !== e && !Hn(S[T], X) || X === e && !(T in S)) && ii(S, T, X);
+ }
+ function Ma(S, T, X) {
+ var Z = S[T];
+ (!(sr.call(S, T) && Hn(Z, X)) || X === e && !(T in S)) && ii(S, T, X);
+ }
+ function co(S, T) {
+ for (var X = S.length; X--; )
+ if (Hn(S[X][0], T))
+ return X;
+ return -1;
+ }
+ function Wh(S, T, X, Z) {
+ return _i(S, function(ie, ye, Te) {
+ T(Z, ie, X(ie), Te);
+ }), Z;
+ }
+ function Kf(S, T) {
+ return S && Gn(T, jr(T), S);
+ }
+ function Vh(S, T) {
+ return S && Gn(T, on(T), S);
+ }
+ function ii(S, T, X) {
+ T == "__proto__" && ao ? ao(S, T, {
+ configurable: !0,
+ enumerable: !0,
+ value: X,
+ writable: !0
+ }) : S[T] = X;
+ }
+ function us(S, T) {
+ for (var X = -1, Z = T.length, ie = We(Z), ye = S == null; ++X < Z; )
+ ie[X] = ye ? e : Us(S, T[X]);
+ return ie;
+ }
+ function Mi(S, T, X) {
+ return S === S && (X !== e && (S = S <= X ? S : X), T !== e && (S = S >= T ? S : T)), S;
+ }
+ function Pn(S, T, X, Z, ie, ye) {
+ var Te, Ae = T & y, ze = T & h, qe = T & l;
+ if (X && (Te = ie ? X(S, Z, ie, ye) : X(S)), Te !== e)
+ return Te;
+ if (!vr(S))
+ return S;
+ var et = jt(S);
+ if (et) {
+ if (Te = Dd(S), !Ae)
+ return nn(S, Te);
+ } else {
+ var at = Vr(S), yt = at == ge || at == oe;
+ if (ki(S))
+ return mu(S, Ae);
+ if (at == ke || at == B || yt && !ie) {
+ if (Te = ze || yt ? {} : Fu(S), !Ae)
+ return ze ? Sd(S, Vh(Te, S)) : xd(S, Kf(Te, S));
+ } else {
+ if (!er[at])
+ return ie ? S : {};
+ Te = Nd(S, at, Ae);
+ }
+ }
+ ye || (ye = new zn());
+ var kt = ye.get(S);
+ if (kt)
+ return kt;
+ ye.set(S, Te), cl(S) ? S.forEach(function(Nt) {
+ Te.add(Pn(Nt, T, X, Nt, S, ye));
+ }) : ul(S) && S.forEach(function(Nt, Gt) {
+ Te.set(Gt, Pn(Nt, T, X, Gt, S, ye));
+ });
+ var Dt = qe ? ze ? Cs : Rs : ze ? on : jr, $t = et ? e : Dt(S);
+ return mr($t || S, function(Nt, Gt) {
+ $t && (Gt = Nt, Nt = S[Gt]), Ma(Te, Gt, Pn(Nt, T, X, Gt, S, ye));
+ }), Te;
+ }
+ function Kh(S) {
+ var T = jr(S);
+ return function(X) {
+ return Gf(X, S, T);
+ };
+ }
+ function Gf(S, T, X) {
+ var Z = X.length;
+ if (S == null)
+ return !Z;
+ for (S = cr(S); Z--; ) {
+ var ie = X[Z], ye = T[ie], Te = S[ie];
+ if (Te === e && !(ie in S) || !ye(Te))
+ return !1;
+ }
+ return !0;
+ }
+ function Yf(S, T, X) {
+ if (typeof S != "function")
+ throw new Rn(m);
+ return La(function() {
+ S.apply(e, X);
+ }, T);
+ }
+ function Ia(S, T, X, Z) {
+ var ie = -1, ye = ta, Te = !0, Ae = S.length, ze = [], qe = T.length;
+ if (!Ae)
+ return ze;
+ X && (T = Oe(T, vn(X))), Z ? (ye = le, Te = !1) : T.length >= _ && (ye = Ea, Te = !1, T = new Ai(T));
+ e:
+ for (; ++ie < Ae; ) {
+ var et = S[ie], at = X == null ? et : X(et);
+ if (et = Z || et !== 0 ? et : 0, Te && at === at) {
+ for (var yt = qe; yt--; )
+ if (T[yt] === at)
+ continue e;
+ ze.push(et);
+ } else
+ ye(T, at, Z) || ze.push(et);
+ }
+ return ze;
+ }
+ var _i = xu(Kn), Zf = xu(cs, !0);
+ function Gh(S, T) {
+ var X = !0;
+ return _i(S, function(Z, ie, ye) {
+ return X = !!T(Z, ie, ye), X;
+ }), X;
+ }
+ function ho(S, T, X) {
+ for (var Z = -1, ie = S.length; ++Z < ie; ) {
+ var ye = S[Z], Te = T(ye);
+ if (Te != null && (Ae === e ? Te === Te && !bn(Te) : X(Te, Ae)))
+ var Ae = Te, ze = ye;
+ }
+ return ze;
+ }
+ function Yh(S, T, X, Z) {
+ var ie = S.length;
+ for (X = Ut(X), X < 0 && (X = -X > ie ? 0 : ie + X), Z = Z === e || Z > ie ? ie : Ut(Z), Z < 0 && (Z += ie), Z = X > Z ? 0 : dl(Z); X < Z; )
+ S[X++] = T;
+ return S;
+ }
+ function Jf(S, T) {
+ var X = [];
+ return _i(S, function(Z, ie, ye) {
+ T(Z, ie, ye) && X.push(Z);
+ }), X;
+ }
+ function Hr(S, T, X, Z, ie) {
+ var ye = -1, Te = S.length;
+ for (X || (X = Bd), ie || (ie = []); ++ye < Te; ) {
+ var Ae = S[ye];
+ T > 0 && X(Ae) ? T > 1 ? Hr(Ae, T - 1, X, Z, ie) : Xe(ie, Ae) : Z || (ie[ie.length] = Ae);
+ }
+ return ie;
+ }
+ var ls = Su(), Qf = Su(!0);
+ function Kn(S, T) {
+ return S && ls(S, T, jr);
+ }
+ function cs(S, T) {
+ return S && Qf(S, T, jr);
+ }
+ function po(S, T) {
+ return Zr(T, function(X) {
+ return fi(S[X]);
+ });
+ }
+ function Ii(S, T) {
+ T = xi(T, S);
+ for (var X = 0, Z = T.length; S != null && X < Z; )
+ S = S[Yn(T[X++])];
+ return X && X == Z ? S : e;
+ }
+ function qf(S, T, X) {
+ var Z = T(S);
+ return jt(S) ? Z : Xe(Z, X(S));
+ }
+ function qr(S) {
+ return S == null ? S === e ? fe : he : Ci && Ci in cr(S) ? Ad(S) : $d(S);
+ }
+ function hs(S, T) {
+ return S > T;
+ }
+ function Zh(S, T) {
+ return S != null && sr.call(S, T);
+ }
+ function Jh(S, T) {
+ return S != null && T in cr(S);
+ }
+ function Qh(S, T, X) {
+ return S >= Wr(T, X) && S < Ir(T, X);
+ }
+ function ds(S, T, X) {
+ for (var Z = X ? le : ta, ie = S[0].length, ye = S.length, Te = ye, Ae = We(ye), ze = 1 / 0, qe = []; Te--; ) {
+ var et = S[Te];
+ Te && T && (et = Oe(et, vn(T))), ze = Wr(et.length, ze), Ae[Te] = !X && (T || ie >= 120 && et.length >= 120) ? new Ai(Te && et) : e;
+ }
+ et = S[0];
+ var at = -1, yt = Ae[0];
+ e:
+ for (; ++at < ie && qe.length < ze; ) {
+ var kt = et[at], Dt = T ? T(kt) : kt;
+ if (kt = X || kt !== 0 ? kt : 0, !(yt ? Ea(yt, Dt) : Z(qe, Dt, X))) {
+ for (Te = ye; --Te; ) {
+ var $t = Ae[Te];
+ if (!($t ? Ea($t, Dt) : Z(S[Te], Dt, X)))
+ continue e;
+ }
+ yt && yt.push(Dt), qe.push(kt);
+ }
+ }
+ return qe;
+ }
+ function qh(S, T, X, Z) {
+ return Kn(S, function(ie, ye, Te) {
+ T(Z, X(ie), ye, Te);
+ }), Z;
+ }
+ function Da(S, T, X) {
+ T = xi(T, S), S = zu(S, T);
+ var Z = S == null ? S : S[Yn(Mn(T))];
+ return Z == null ? e : pr(Z, S, X);
+ }
+ function eu(S) {
+ return br(S) && qr(S) == B;
+ }
+ function ed(S) {
+ return br(S) && qr(S) == je;
+ }
+ function td(S) {
+ return br(S) && qr(S) == ee;
+ }
+ function Na(S, T, X, Z, ie) {
+ return S === T ? !0 : S == null || T == null || !br(S) && !br(T) ? S !== S && T !== T : rd(S, T, X, Z, Na, ie);
+ }
+ function rd(S, T, X, Z, ie, ye) {
+ var Te = jt(S), Ae = jt(T), ze = Te ? j : Vr(S), qe = Ae ? j : Vr(T);
+ ze = ze == B ? ke : ze, qe = qe == B ? ke : qe;
+ var et = ze == ke, at = qe == ke, yt = ze == qe;
+ if (yt && ki(S)) {
+ if (!ki(T))
+ return !1;
+ Te = !0, et = !1;
+ }
+ if (yt && !et)
+ return ye || (ye = new zn()), Te || ha(S) ? Iu(S, T, X, Z, ie, ye) : Cd(S, T, ze, X, Z, ie, ye);
+ if (!(X & d)) {
+ var kt = et && sr.call(S, "__wrapped__"), Dt = at && sr.call(T, "__wrapped__");
+ if (kt || Dt) {
+ var $t = kt ? S.value() : S, Nt = Dt ? T.value() : T;
+ return ye || (ye = new zn()), ie($t, Nt, X, Z, ye);
+ }
+ }
+ return yt ? (ye || (ye = new zn()), Pd(S, T, X, Z, ie, ye)) : !1;
+ }
+ function nd(S) {
+ return br(S) && Vr(S) == J;
+ }
+ function ps(S, T, X, Z) {
+ var ie = X.length, ye = ie, Te = !Z;
+ if (S == null)
+ return !ye;
+ for (S = cr(S); ie--; ) {
+ var Ae = X[ie];
+ if (Te && Ae[2] ? Ae[1] !== S[Ae[0]] : !(Ae[0] in S))
+ return !1;
+ }
+ for (; ++ie < ye; ) {
+ Ae = X[ie];
+ var ze = Ae[0], qe = S[ze], et = Ae[1];
+ if (Te && Ae[2]) {
+ if (qe === e && !(ze in S))
+ return !1;
+ } else {
+ var at = new zn();
+ if (Z)
+ var yt = Z(qe, et, ze, S, T, at);
+ if (!(yt === e ? Na(et, qe, d | s, Z, at) : yt))
+ return !1;
+ }
+ }
+ return !0;
+ }
+ function tu(S) {
+ if (!vr(S) || Ld(S))
+ return !1;
+ var T = fi(S) ? nh : Ft;
+ return T.test(Ni(S));
+ }
+ function id(S) {
+ return br(S) && qr(S) == Ce;
+ }
+ function ad(S) {
+ return br(S) && Vr(S) == q;
+ }
+ function od(S) {
+ return br(S) && Ao(S.length) && !!rr[qr(S)];
+ }
+ function ru(S) {
+ return typeof S == "function" ? S : S == null ? sn : typeof S == "object" ? jt(S) ? au(S[0], S[1]) : iu(S) : kl(S);
+ }
+ function ys(S) {
+ if (!ja(S))
+ return uh(S);
+ var T = [];
+ for (var X in cr(S))
+ sr.call(S, X) && X != "constructor" && T.push(X);
+ return T;
+ }
+ function sd(S) {
+ if (!vr(S))
+ return Ud(S);
+ var T = ja(S), X = [];
+ for (var Z in S)
+ Z == "constructor" && (T || !sr.call(S, Z)) || X.push(Z);
+ return X;
+ }
+ function vs(S, T) {
+ return S < T;
+ }
+ function nu(S, T) {
+ var X = -1, Z = an(S) ? We(S.length) : [];
+ return _i(S, function(ie, ye, Te) {
+ Z[++X] = T(ie, ye, Te);
+ }), Z;
+ }
+ function iu(S) {
+ var T = As(S);
+ return T.length == 1 && T[0][2] ? ju(T[0][0], T[0][1]) : function(X) {
+ return X === S || ps(X, S, T);
+ };
+ }
+ function au(S, T) {
+ return Is(S) && Bu(T) ? ju(Yn(S), T) : function(X) {
+ var Z = Us(X, S);
+ return Z === e && Z === T ? $s(X, S) : Na(T, Z, d | s);
+ };
+ }
+ function yo(S, T, X, Z, ie) {
+ S !== T && ls(T, function(ye, Te) {
+ if (ie || (ie = new zn()), vr(ye))
+ fd(S, T, Te, X, yo, Z, ie);
+ else {
+ var Ae = Z ? Z(Ns(S, Te), ye, Te + "", S, T, ie) : e;
+ Ae === e && (Ae = ye), fs(S, Te, Ae);
+ }
+ }, on);
+ }
+ function fd(S, T, X, Z, ie, ye, Te) {
+ var Ae = Ns(S, X), ze = Ns(T, X), qe = Te.get(ze);
+ if (qe) {
+ fs(S, X, qe);
+ return;
+ }
+ var et = ye ? ye(Ae, ze, X + "", S, T, Te) : e, at = et === e;
+ if (at) {
+ var yt = jt(ze), kt = !yt && ki(ze), Dt = !yt && !kt && ha(ze);
+ et = ze, yt || kt || Dt ? jt(Ae) ? et = Ae : xr(Ae) ? et = nn(Ae) : kt ? (at = !1, et = mu(ze, !0)) : Dt ? (at = !1, et = bu(ze, !0)) : et = [] : za(ze) || Fi(ze) ? (et = Ae, Fi(Ae) ? et = pl(Ae) : (!vr(Ae) || fi(Ae)) && (et = Fu(ze))) : at = !1;
+ }
+ at && (Te.set(ze, et), ie(et, ze, Z, ye, Te), Te.delete(ze)), fs(S, X, et);
+ }
+ function ou(S, T) {
+ var X = S.length;
+ if (X)
+ return T += T < 0 ? X : 0, si(T, X) ? S[T] : e;
+ }
+ function su(S, T, X) {
+ T.length ? T = Oe(T, function(ye) {
+ return jt(ye) ? function(Te) {
+ return Ii(Te, ye.length === 1 ? ye[0] : ye);
+ } : ye;
+ }) : T = [sn];
+ var Z = -1;
+ T = Oe(T, vn(It()));
+ var ie = nu(S, function(ye, Te, Ae) {
+ var ze = Oe(T, function(qe) {
+ return qe(ye);
+ });
+ return { criteria: ze, index: ++Z, value: ye };
+ });
+ return Ya(ie, function(ye, Te) {
+ return wd(ye, Te, X);
+ });
+ }
+ function ud(S, T) {
+ return fu(S, T, function(X, Z) {
+ return $s(S, Z);
+ });
+ }
+ function fu(S, T, X) {
+ for (var Z = -1, ie = T.length, ye = {}; ++Z < ie; ) {
+ var Te = T[Z], Ae = Ii(S, Te);
+ X(Ae, Te) && Fa(ye, xi(Te, S), Ae);
+ }
+ return ye;
+ }
+ function ld(S) {
+ return function(T) {
+ return Ii(T, S);
+ };
+ }
+ function ms(S, T, X, Z) {
+ var ie = Z ? Rr : wr, ye = -1, Te = T.length, Ae = S;
+ for (S === T && (T = nn(T)), X && (Ae = Oe(S, vn(X))); ++ye < Te; )
+ for (var ze = 0, qe = T[ye], et = X ? X(qe) : qe; (ze = ie(Ae, et, ze, Z)) > -1; )
+ Ae !== S && io.call(Ae, ze, 1), io.call(S, ze, 1);
+ return S;
+ }
+ function uu(S, T) {
+ for (var X = S ? T.length : 0, Z = X - 1; X--; ) {
+ var ie = T[X];
+ if (X == Z || ie !== ye) {
+ var ye = ie;
+ si(ie) ? io.call(S, ie, 1) : ws(S, ie);
+ }
+ }
+ return S;
+ }
+ function bs(S, T) {
+ return S + so(Uf() * (T - S + 1));
+ }
+ function cd(S, T, X, Z) {
+ for (var ie = -1, ye = Ir(oo((T - S) / (X || 1)), 0), Te = We(ye); ye--; )
+ Te[Z ? ye : ++ie] = S, S += X;
+ return Te;
+ }
+ function gs(S, T) {
+ var X = "";
+ if (!S || T < 1 || T > E)
+ return X;
+ do
+ T % 2 && (X += S), T = so(T / 2), T && (S += S);
+ while (T);
+ return X;
+ }
+ function Vt(S, T) {
+ return Fs(Lu(S, T, sn), S + "");
+ }
+ function hd(S) {
+ return Vf(da(S));
+ }
+ function dd(S, T) {
+ var X = da(S);
+ return Oo(X, Mi(T, 0, X.length));
+ }
+ function Fa(S, T, X, Z) {
+ if (!vr(S))
+ return S;
+ T = xi(T, S);
+ for (var ie = -1, ye = T.length, Te = ye - 1, Ae = S; Ae != null && ++ie < ye; ) {
+ var ze = Yn(T[ie]), qe = X;
+ if (ze === "__proto__" || ze === "constructor" || ze === "prototype")
+ return S;
+ if (ie != Te) {
+ var et = Ae[ze];
+ qe = Z ? Z(et, ze, Ae) : e, qe === e && (qe = vr(et) ? et : si(T[ie + 1]) ? [] : {});
+ }
+ Ma(Ae, ze, qe), Ae = Ae[ze];
+ }
+ return S;
+ }
+ var lu = fo ? function(S, T) {
+ return fo.set(S, T), S;
+ } : sn, pd = ao ? function(S, T) {
+ return ao(S, "toString", {
+ configurable: !0,
+ enumerable: !1,
+ value: Vs(T),
+ writable: !0
+ });
+ } : sn;
+ function yd(S) {
+ return Oo(da(S));
+ }
+ function An(S, T, X) {
+ var Z = -1, ie = S.length;
+ T < 0 && (T = -T > ie ? 0 : ie + T), X = X > ie ? ie : X, X < 0 && (X += ie), ie = T > X ? 0 : X - T >>> 0, T >>>= 0;
+ for (var ye = We(ie); ++Z < ie; )
+ ye[Z] = S[Z + T];
+ return ye;
+ }
+ function vd(S, T) {
+ var X;
+ return _i(S, function(Z, ie, ye) {
+ return X = T(Z, ie, ye), !X;
+ }), !!X;
+ }
+ function vo(S, T, X) {
+ var Z = 0, ie = S == null ? Z : S.length;
+ if (typeof T == "number" && T === T && ie <= U) {
+ for (; Z < ie; ) {
+ var ye = Z + ie >>> 1, Te = S[ye];
+ Te !== null && !bn(Te) && (X ? Te <= T : Te < T) ? Z = ye + 1 : ie = ye;
+ }
+ return ie;
+ }
+ return _s(S, T, sn, X);
+ }
+ function _s(S, T, X, Z) {
+ var ie = 0, ye = S == null ? 0 : S.length;
+ if (ye === 0)
+ return 0;
+ T = X(T);
+ for (var Te = T !== T, Ae = T === null, ze = bn(T), qe = T === e; ie < ye; ) {
+ var et = so((ie + ye) / 2), at = X(S[et]), yt = at !== e, kt = at === null, Dt = at === at, $t = bn(at);
+ if (Te)
+ var Nt = Z || Dt;
+ else
+ qe ? Nt = Dt && (Z || yt) : Ae ? Nt = Dt && yt && (Z || !kt) : ze ? Nt = Dt && yt && !kt && (Z || !$t) : kt || $t ? Nt = !1 : Nt = Z ? at <= T : at < T;
+ Nt ? ie = et + 1 : ye = et;
+ }
+ return Wr(ye, W);
+ }
+ function cu(S, T) {
+ for (var X = -1, Z = S.length, ie = 0, ye = []; ++X < Z; ) {
+ var Te = S[X], Ae = T ? T(Te) : Te;
+ if (!X || !Hn(Ae, ze)) {
+ var ze = Ae;
+ ye[ie++] = Te === 0 ? 0 : Te;
+ }
+ }
+ return ye;
+ }
+ function hu(S) {
+ return typeof S == "number" ? S : bn(S) ? L : +S;
+ }
+ function mn(S) {
+ if (typeof S == "string")
+ return S;
+ if (jt(S))
+ return Oe(S, mn) + "";
+ if (bn(S))
+ return $f ? $f.call(S) : "";
+ var T = S + "";
+ return T == "0" && 1 / S == -C ? "-0" : T;
+ }
+ function wi(S, T, X) {
+ var Z = -1, ie = ta, ye = S.length, Te = !0, Ae = [], ze = Ae;
+ if (X)
+ Te = !1, ie = le;
+ else if (ye >= _) {
+ var qe = T ? null : Td(S);
+ if (qe)
+ return Za(qe);
+ Te = !1, ie = Ea, ze = new Ai();
+ } else
+ ze = T ? [] : Ae;
+ e:
+ for (; ++Z < ye; ) {
+ var et = S[Z], at = T ? T(et) : et;
+ if (et = X || et !== 0 ? et : 0, Te && at === at) {
+ for (var yt = ze.length; yt--; )
+ if (ze[yt] === at)
+ continue e;
+ T && ze.push(at), Ae.push(et);
+ } else
+ ie(ze, at, X) || (ze !== Ae && ze.push(at), Ae.push(et));
+ }
+ return Ae;
+ }
+ function ws(S, T) {
+ return T = xi(T, S), S = zu(S, T), S == null || delete S[Yn(Mn(T))];
+ }
+ function du(S, T, X, Z) {
+ return Fa(S, T, X(Ii(S, T)), Z);
+ }
+ function mo(S, T, X, Z) {
+ for (var ie = S.length, ye = Z ? ie : -1; (Z ? ye-- : ++ye < ie) && T(S[ye], ye, S); )
+ ;
+ return X ? An(S, Z ? 0 : ye, Z ? ye + 1 : ie) : An(S, Z ? ye + 1 : 0, Z ? ie : ye);
+ }
+ function pu(S, T) {
+ var X = S;
+ return X instanceof Zt && (X = X.value()), ft(T, function(Z, ie) {
+ return ie.func.apply(ie.thisArg, Xe([Z], ie.args));
+ }, X);
+ }
+ function xs(S, T, X) {
+ var Z = S.length;
+ if (Z < 2)
+ return Z ? wi(S[0]) : [];
+ for (var ie = -1, ye = We(Z); ++ie < Z; )
+ for (var Te = S[ie], Ae = -1; ++Ae < Z; )
+ Ae != ie && (ye[ie] = Ia(ye[ie] || Te, S[Ae], T, X));
+ return wi(Hr(ye, 1), T, X);
+ }
+ function yu(S, T, X) {
+ for (var Z = -1, ie = S.length, ye = T.length, Te = {}; ++Z < ie; ) {
+ var Ae = Z < ye ? T[Z] : e;
+ X(Te, S[Z], Ae);
+ }
+ return Te;
+ }
+ function Ss(S) {
+ return xr(S) ? S : [];
+ }
+ function ks(S) {
+ return typeof S == "function" ? S : sn;
+ }
+ function xi(S, T) {
+ return jt(S) ? S : Is(S, T) ? [S] : $u(or(S));
+ }
+ var md = Vt;
+ function Si(S, T, X) {
+ var Z = S.length;
+ return X = X === e ? Z : X, !T && X >= Z ? S : An(S, T, X);
+ }
+ var vu = ih || function(S) {
+ return ht.clearTimeout(S);
+ };
+ function mu(S, T) {
+ if (T)
+ return S.slice();
+ var X = S.length, Z = jf ? jf(X) : new S.constructor(X);
+ return S.copy(Z), Z;
+ }
+ function Os(S) {
+ var T = new S.constructor(S.byteLength);
+ return new ro(T).set(new ro(S)), T;
+ }
+ function bd(S, T) {
+ var X = T ? Os(S.buffer) : S.buffer;
+ return new S.constructor(X, S.byteOffset, S.byteLength);
+ }
+ function gd(S) {
+ var T = new S.constructor(S.source, Kt.exec(S));
+ return T.lastIndex = S.lastIndex, T;
+ }
+ function _d(S) {
+ return Aa ? cr(Aa.call(S)) : {};
+ }
+ function bu(S, T) {
+ var X = T ? Os(S.buffer) : S.buffer;
+ return new S.constructor(X, S.byteOffset, S.length);
+ }
+ function gu(S, T) {
+ if (S !== T) {
+ var X = S !== e, Z = S === null, ie = S === S, ye = bn(S), Te = T !== e, Ae = T === null, ze = T === T, qe = bn(T);
+ if (!Ae && !qe && !ye && S > T || ye && Te && ze && !Ae && !qe || Z && Te && ze || !X && ze || !ie)
+ return 1;
+ if (!Z && !ye && !qe && S < T || qe && X && ie && !Z && !ye || Ae && X && ie || !Te && ie || !ze)
+ return -1;
+ }
+ return 0;
+ }
+ function wd(S, T, X) {
+ for (var Z = -1, ie = S.criteria, ye = T.criteria, Te = ie.length, Ae = X.length; ++Z < Te; ) {
+ var ze = gu(ie[Z], ye[Z]);
+ if (ze) {
+ if (Z >= Ae)
+ return ze;
+ var qe = X[Z];
+ return ze * (qe == "desc" ? -1 : 1);
+ }
+ }
+ return S.index - T.index;
+ }
+ function _u(S, T, X, Z) {
+ for (var ie = -1, ye = S.length, Te = X.length, Ae = -1, ze = T.length, qe = Ir(ye - Te, 0), et = We(ze + qe), at = !Z; ++Ae < ze; )
+ et[Ae] = T[Ae];
+ for (; ++ie < Te; )
+ (at || ie < ye) && (et[X[ie]] = S[ie]);
+ for (; qe--; )
+ et[Ae++] = S[ie++];
+ return et;
+ }
+ function wu(S, T, X, Z) {
+ for (var ie = -1, ye = S.length, Te = -1, Ae = X.length, ze = -1, qe = T.length, et = Ir(ye - Ae, 0), at = We(et + qe), yt = !Z; ++ie < et; )
+ at[ie] = S[ie];
+ for (var kt = ie; ++ze < qe; )
+ at[kt + ze] = T[ze];
+ for (; ++Te < Ae; )
+ (yt || ie < ye) && (at[kt + X[Te]] = S[ie++]);
+ return at;
+ }
+ function nn(S, T) {
+ var X = -1, Z = S.length;
+ for (T || (T = We(Z)); ++X < Z; )
+ T[X] = S[X];
+ return T;
+ }
+ function Gn(S, T, X, Z) {
+ var ie = !X;
+ X || (X = {});
+ for (var ye = -1, Te = T.length; ++ye < Te; ) {
+ var Ae = T[ye], ze = Z ? Z(X[Ae], S[Ae], Ae, X, S) : e;
+ ze === e && (ze = S[Ae]), ie ? ii(X, Ae, ze) : Ma(X, Ae, ze);
+ }
+ return X;
+ }
+ function xd(S, T) {
+ return Gn(S, Ms(S), T);
+ }
+ function Sd(S, T) {
+ return Gn(S, Du(S), T);
+ }
+ function bo(S, T) {
+ return function(X, Z) {
+ var ie = jt(X) ? pn : Wh, ye = T ? T() : {};
+ return ie(X, S, It(Z, 2), ye);
+ };
+ }
+ function ua(S) {
+ return Vt(function(T, X) {
+ var Z = -1, ie = X.length, ye = ie > 1 ? X[ie - 1] : e, Te = ie > 2 ? X[2] : e;
+ for (ye = S.length > 3 && typeof ye == "function" ? (ie--, ye) : e, Te && en(X[0], X[1], Te) && (ye = ie < 3 ? e : ye, ie = 1), T = cr(T); ++Z < ie; ) {
+ var Ae = X[Z];
+ Ae && S(T, Ae, Z, ye);
+ }
+ return T;
+ });
+ }
+ function xu(S, T) {
+ return function(X, Z) {
+ if (X == null)
+ return X;
+ if (!an(X))
+ return S(X, Z);
+ for (var ie = X.length, ye = T ? ie : -1, Te = cr(X); (T ? ye-- : ++ye < ie) && Z(Te[ye], ye, Te) !== !1; )
+ ;
+ return X;
+ };
+ }
+ function Su(S) {
+ return function(T, X, Z) {
+ for (var ie = -1, ye = cr(T), Te = Z(T), Ae = Te.length; Ae--; ) {
+ var ze = Te[S ? Ae : ++ie];
+ if (X(ye[ze], ze, ye) === !1)
+ break;
+ }
+ return T;
+ };
+ }
+ function kd(S, T, X) {
+ var Z = T & v, ie = Ba(S);
+ function ye() {
+ var Te = this && this !== ht && this instanceof ye ? ie : S;
+ return Te.apply(Z ? X : this, arguments);
+ }
+ return ye;
+ }
+ function ku(S) {
+ return function(T) {
+ T = or(T);
+ var X = ra(T) ? Ln(T) : e, Z = X ? X[0] : T.charAt(0), ie = X ? Si(X, 1).join("") : T.slice(1);
+ return Z[S]() + ie;
+ };
+ }
+ function la(S) {
+ return function(T) {
+ return ft(xl(wl(T).replace(Sn, "")), S, "");
+ };
+ }
+ function Ba(S) {
+ return function() {
+ var T = arguments;
+ switch (T.length) {
+ case 0:
+ return new S();
+ case 1:
+ return new S(T[0]);
+ case 2:
+ return new S(T[0], T[1]);
+ case 3:
+ return new S(T[0], T[1], T[2]);
+ case 4:
+ return new S(T[0], T[1], T[2], T[3]);
+ case 5:
+ return new S(T[0], T[1], T[2], T[3], T[4]);
+ case 6:
+ return new S(T[0], T[1], T[2], T[3], T[4], T[5]);
+ case 7:
+ return new S(T[0], T[1], T[2], T[3], T[4], T[5], T[6]);
+ }
+ var X = fa(S.prototype), Z = S.apply(X, T);
+ return vr(Z) ? Z : X;
+ };
+ }
+ function Od(S, T, X) {
+ var Z = Ba(S);
+ function ie() {
+ for (var ye = arguments.length, Te = We(ye), Ae = ye, ze = ca(ie); Ae--; )
+ Te[Ae] = arguments[Ae];
+ var qe = ye < 3 && Te[0] !== ze && Te[ye - 1] !== ze ? [] : bi(Te, ze);
+ if (ye -= qe.length, ye < X)
+ return Cu(
+ S,
+ T,
+ go,
+ ie.placeholder,
+ e,
+ Te,
+ qe,
+ e,
+ e,
+ X - ye
+ );
+ var et = this && this !== ht && this instanceof ie ? Z : S;
+ return pr(et, this, Te);
+ }
+ return ie;
+ }
+ function Ou(S) {
+ return function(T, X, Z) {
+ var ie = cr(T);
+ if (!an(T)) {
+ var ye = It(X, 3);
+ T = jr(T), X = function(Ae) {
+ return ye(ie[Ae], Ae, ie);
+ };
+ }
+ var Te = S(T, X, Z);
+ return Te > -1 ? ie[ye ? T[Te] : Te] : e;
+ };
+ }
+ function Eu(S) {
+ return oi(function(T) {
+ var X = T.length, Z = X, ie = Cn.prototype.thru;
+ for (S && T.reverse(); Z--; ) {
+ var ye = T[Z];
+ if (typeof ye != "function")
+ throw new Rn(m);
+ if (ie && !Te && So(ye) == "wrapper")
+ var Te = new Cn([], !0);
+ }
+ for (Z = Te ? Z : X; ++Z < X; ) {
+ ye = T[Z];
+ var Ae = So(ye), ze = Ae == "wrapper" ? Ps(ye) : e;
+ ze && Ds(ze[0]) && ze[1] == (o | r | i | p) && !ze[4].length && ze[9] == 1 ? Te = Te[So(ze[0])].apply(Te, ze[3]) : Te = ye.length == 1 && Ds(ye) ? Te[Ae]() : Te.thru(ye);
+ }
+ return function() {
+ var qe = arguments, et = qe[0];
+ if (Te && qe.length == 1 && jt(et))
+ return Te.plant(et).value();
+ for (var at = 0, yt = X ? T[at].apply(this, qe) : et; ++at < X; )
+ yt = T[at].call(this, yt);
+ return yt;
+ };
+ });
+ }
+ function go(S, T, X, Z, ie, ye, Te, Ae, ze, qe) {
+ var et = T & o, at = T & v, yt = T & c, kt = T & (r | t), Dt = T & O, $t = yt ? e : Ba(S);
+ function Nt() {
+ for (var Gt = arguments.length, qt = We(Gt), gn = Gt; gn--; )
+ qt[gn] = arguments[gn];
+ if (kt)
+ var tn = ca(Nt), _n = Bc(qt, tn);
+ if (Z && (qt = _u(qt, Z, ie, kt)), ye && (qt = wu(qt, ye, Te, kt)), Gt -= _n, kt && Gt < qe) {
+ var Sr = bi(qt, tn);
+ return Cu(
+ S,
+ T,
+ go,
+ Nt.placeholder,
+ X,
+ qt,
+ Sr,
+ Ae,
+ ze,
+ qe - Gt
+ );
+ }
+ var Xn = at ? X : this, li = yt ? Xn[S] : S;
+ return Gt = qt.length, Ae ? qt = Wd(qt, Ae) : Dt && Gt > 1 && qt.reverse(), et && ze < Gt && (qt.length = ze), this && this !== ht && this instanceof Nt && (li = $t || Ba(li)), li.apply(Xn, qt);
+ }
+ return Nt;
+ }
+ function Tu(S, T) {
+ return function(X, Z) {
+ return qh(X, S, T(Z), {});
+ };
+ }
+ function _o(S, T) {
+ return function(X, Z) {
+ var ie;
+ if (X === e && Z === e)
+ return T;
+ if (X !== e && (ie = X), Z !== e) {
+ if (ie === e)
+ return Z;
+ typeof X == "string" || typeof Z == "string" ? (X = mn(X), Z = mn(Z)) : (X = hu(X), Z = hu(Z)), ie = S(X, Z);
+ }
+ return ie;
+ };
+ }
+ function Es(S) {
+ return oi(function(T) {
+ return T = Oe(T, vn(It())), Vt(function(X) {
+ var Z = this;
+ return S(T, function(ie) {
+ return pr(ie, Z, X);
+ });
+ });
+ });
+ }
+ function wo(S, T) {
+ T = T === e ? " " : mn(T);
+ var X = T.length;
+ if (X < 2)
+ return X ? gs(T, S) : T;
+ var Z = gs(T, oo(S / na(T)));
+ return ra(T) ? Si(Ln(Z), 0, S).join("") : Z.slice(0, S);
+ }
+ function Ed(S, T, X, Z) {
+ var ie = T & v, ye = Ba(S);
+ function Te() {
+ for (var Ae = -1, ze = arguments.length, qe = -1, et = Z.length, at = We(et + ze), yt = this && this !== ht && this instanceof Te ? ye : S; ++qe < et; )
+ at[qe] = Z[qe];
+ for (; ze--; )
+ at[qe++] = arguments[++Ae];
+ return pr(yt, ie ? X : this, at);
+ }
+ return Te;
+ }
+ function Ru(S) {
+ return function(T, X, Z) {
+ return Z && typeof Z != "number" && en(T, X, Z) && (X = Z = e), T = ui(T), X === e ? (X = T, T = 0) : X = ui(X), Z = Z === e ? T < X ? 1 : -1 : ui(Z), cd(T, X, Z, S);
+ };
+ }
+ function xo(S) {
+ return function(T, X) {
+ return typeof T == "string" && typeof X == "string" || (T = In(T), X = In(X)), S(T, X);
+ };
+ }
+ function Cu(S, T, X, Z, ie, ye, Te, Ae, ze, qe) {
+ var et = T & r, at = et ? Te : e, yt = et ? e : Te, kt = et ? ye : e, Dt = et ? e : ye;
+ T |= et ? i : n, T &= ~(et ? n : i), T & a || (T &= ~(v | c));
+ var $t = [
+ S,
+ T,
+ ie,
+ kt,
+ at,
+ Dt,
+ yt,
+ Ae,
+ ze,
+ qe
+ ], Nt = X.apply(e, $t);
+ return Ds(S) && Hu(Nt, $t), Nt.placeholder = Z, Xu(Nt, S, T);
+ }
+ function Ts(S) {
+ var T = Mr[S];
+ return function(X, Z) {
+ if (X = In(X), Z = Z == null ? 0 : Wr(Ut(Z), 292), Z && Xf(X)) {
+ var ie = (or(X) + "e").split("e"), ye = T(ie[0] + "e" + (+ie[1] + Z));
+ return ie = (or(ye) + "e").split("e"), +(ie[0] + "e" + (+ie[1] - Z));
+ }
+ return T(X);
+ };
+ }
+ var Td = oa && 1 / Za(new oa([, -0]))[1] == C ? function(S) {
+ return new oa(S);
+ } : Ys;
+ function Pu(S) {
+ return function(T) {
+ var X = Vr(T);
+ return X == J ? ns(T) : X == q ? $c(T) : Fc(T, S(T));
+ };
+ }
+ function ai(S, T, X, Z, ie, ye, Te, Ae) {
+ var ze = T & c;
+ if (!ze && typeof S != "function")
+ throw new Rn(m);
+ var qe = Z ? Z.length : 0;
+ if (qe || (T &= ~(i | n), Z = ie = e), Te = Te === e ? Te : Ir(Ut(Te), 0), Ae = Ae === e ? Ae : Ut(Ae), qe -= ie ? ie.length : 0, T & n) {
+ var et = Z, at = ie;
+ Z = ie = e;
+ }
+ var yt = ze ? e : Ps(S), kt = [
+ S,
+ T,
+ X,
+ Z,
+ ie,
+ et,
+ at,
+ ye,
+ Te,
+ Ae
+ ];
+ if (yt && Xd(kt, yt), S = kt[0], T = kt[1], X = kt[2], Z = kt[3], ie = kt[4], Ae = kt[9] = kt[9] === e ? ze ? 0 : S.length : Ir(kt[9] - qe, 0), !Ae && T & (r | t) && (T &= ~(r | t)), !T || T == v)
+ var Dt = kd(S, T, X);
+ else
+ T == r || T == t ? Dt = Od(S, T, Ae) : (T == i || T == (v | i)) && !ie.length ? Dt = Ed(S, T, X, Z) : Dt = go.apply(e, kt);
+ var $t = yt ? lu : Hu;
+ return Xu($t(Dt, kt), S, T);
+ }
+ function Au(S, T, X, Z) {
+ return S === e || Hn(S, aa[X]) && !sr.call(Z, X) ? T : S;
+ }
+ function Mu(S, T, X, Z, ie, ye) {
+ return vr(S) && vr(T) && (ye.set(T, S), yo(S, T, e, Mu, ye), ye.delete(T)), S;
+ }
+ function Rd(S) {
+ return za(S) ? e : S;
+ }
+ function Iu(S, T, X, Z, ie, ye) {
+ var Te = X & d, Ae = S.length, ze = T.length;
+ if (Ae != ze && !(Te && ze > Ae))
+ return !1;
+ var qe = ye.get(S), et = ye.get(T);
+ if (qe && et)
+ return qe == T && et == S;
+ var at = -1, yt = !0, kt = X & s ? new Ai() : e;
+ for (ye.set(S, T), ye.set(T, S); ++at < Ae; ) {
+ var Dt = S[at], $t = T[at];
+ if (Z)
+ var Nt = Te ? Z($t, Dt, at, T, S, ye) : Z(Dt, $t, at, S, T, ye);
+ if (Nt !== e) {
+ if (Nt)
+ continue;
+ yt = !1;
+ break;
+ }
+ if (kt) {
+ if (!mt(T, function(Gt, qt) {
+ if (!Ea(kt, qt) && (Dt === Gt || ie(Dt, Gt, X, Z, ye)))
+ return kt.push(qt);
+ })) {
+ yt = !1;
+ break;
+ }
+ } else if (!(Dt === $t || ie(Dt, $t, X, Z, ye))) {
+ yt = !1;
+ break;
+ }
+ }
+ return ye.delete(S), ye.delete(T), yt;
+ }
+ function Cd(S, T, X, Z, ie, ye, Te) {
+ switch (X) {
+ case Ye:
+ if (S.byteLength != T.byteLength || S.byteOffset != T.byteOffset)
+ return !1;
+ S = S.buffer, T = T.buffer;
+ case je:
+ return !(S.byteLength != T.byteLength || !ye(new ro(S), new ro(T)));
+ case re:
+ case ee:
+ case Q:
+ return Hn(+S, +T);
+ case ve:
+ return S.name == T.name && S.message == T.message;
+ case Ce:
+ case G:
+ return S == T + "";
+ case J:
+ var Ae = ns;
+ case q:
+ var ze = Z & d;
+ if (Ae || (Ae = Za), S.size != T.size && !ze)
+ return !1;
+ var qe = Te.get(S);
+ if (qe)
+ return qe == T;
+ Z |= s, Te.set(S, T);
+ var et = Iu(Ae(S), Ae(T), Z, ie, ye, Te);
+ return Te.delete(S), et;
+ case Y:
+ if (Aa)
+ return Aa.call(S) == Aa.call(T);
+ }
+ return !1;
+ }
+ function Pd(S, T, X, Z, ie, ye) {
+ var Te = X & d, Ae = Rs(S), ze = Ae.length, qe = Rs(T), et = qe.length;
+ if (ze != et && !Te)
+ return !1;
+ for (var at = ze; at--; ) {
+ var yt = Ae[at];
+ if (!(Te ? yt in T : sr.call(T, yt)))
+ return !1;
+ }
+ var kt = ye.get(S), Dt = ye.get(T);
+ if (kt && Dt)
+ return kt == T && Dt == S;
+ var $t = !0;
+ ye.set(S, T), ye.set(T, S);
+ for (var Nt = Te; ++at < ze; ) {
+ yt = Ae[at];
+ var Gt = S[yt], qt = T[yt];
+ if (Z)
+ var gn = Te ? Z(qt, Gt, yt, T, S, ye) : Z(Gt, qt, yt, S, T, ye);
+ if (!(gn === e ? Gt === qt || ie(Gt, qt, X, Z, ye) : gn)) {
+ $t = !1;
+ break;
+ }
+ Nt || (Nt = yt == "constructor");
+ }
+ if ($t && !Nt) {
+ var tn = S.constructor, _n = T.constructor;
+ tn != _n && "constructor" in S && "constructor" in T && !(typeof tn == "function" && tn instanceof tn && typeof _n == "function" && _n instanceof _n) && ($t = !1);
+ }
+ return ye.delete(S), ye.delete(T), $t;
+ }
+ function oi(S) {
+ return Fs(Lu(S, e, Gu), S + "");
+ }
+ function Rs(S) {
+ return qf(S, jr, Ms);
+ }
+ function Cs(S) {
+ return qf(S, on, Du);
+ }
+ var Ps = fo ? function(S) {
+ return fo.get(S);
+ } : Ys;
+ function So(S) {
+ for (var T = S.name + "", X = sa[T], Z = sr.call(sa, T) ? X.length : 0; Z--; ) {
+ var ie = X[Z], ye = ie.func;
+ if (ye == null || ye == S)
+ return ie.name;
+ }
+ return T;
+ }
+ function ca(S) {
+ var T = sr.call(de, "placeholder") ? de : S;
+ return T.placeholder;
+ }
+ function It() {
+ var S = de.iteratee || Ks;
+ return S = S === Ks ? ru : S, arguments.length ? S(arguments[0], arguments[1]) : S;
+ }
+ function ko(S, T) {
+ var X = S.__data__;
+ return jd(T) ? X[typeof T == "string" ? "string" : "hash"] : X.map;
+ }
+ function As(S) {
+ for (var T = jr(S), X = T.length; X--; ) {
+ var Z = T[X], ie = S[Z];
+ T[X] = [Z, ie, Bu(ie)];
+ }
+ return T;
+ }
+ function Di(S, T) {
+ var X = Hc(S, T);
+ return tu(X) ? X : e;
+ }
+ function Ad(S) {
+ var T = sr.call(S, Ci), X = S[Ci];
+ try {
+ S[Ci] = e;
+ var Z = !0;
+ } catch (ye) {
+ }
+ var ie = eo.call(S);
+ return Z && (T ? S[Ci] = X : delete S[Ci]), ie;
+ }
+ var Ms = as ? function(S) {
+ return S == null ? [] : (S = cr(S), Zr(as(S), function(T) {
+ return zf.call(S, T);
+ }));
+ } : Zs, Du = as ? function(S) {
+ for (var T = []; S; )
+ Xe(T, Ms(S)), S = no(S);
+ return T;
+ } : Zs, Vr = qr;
+ (os && Vr(new os(new ArrayBuffer(1))) != Ye || Ra && Vr(new Ra()) != J || ss && Vr(ss.resolve()) != ne || oa && Vr(new oa()) != q || Ca && Vr(new Ca()) != we) && (Vr = function(S) {
+ var T = qr(S), X = T == ke ? S.constructor : e, Z = X ? Ni(X) : "";
+ if (Z)
+ switch (Z) {
+ case dh:
+ return Ye;
+ case ph:
+ return J;
+ case yh:
+ return ne;
+ case vh:
+ return q;
+ case mh:
+ return we;
+ }
+ return T;
+ });
+ function Md(S, T, X) {
+ for (var Z = -1, ie = X.length; ++Z < ie; ) {
+ var ye = X[Z], Te = ye.size;
+ switch (ye.type) {
+ case "drop":
+ S += Te;
+ break;
+ case "dropRight":
+ T -= Te;
+ break;
+ case "take":
+ T = Wr(T, S + Te);
+ break;
+ case "takeRight":
+ S = Ir(S, T - Te);
+ break;
+ }
+ }
+ return { start: S, end: T };
+ }
+ function Id(S) {
+ var T = S.match(Ot);
+ return T ? T[1].split(pt) : [];
+ }
+ function Nu(S, T, X) {
+ T = xi(T, S);
+ for (var Z = -1, ie = T.length, ye = !1; ++Z < ie; ) {
+ var Te = Yn(T[Z]);
+ if (!(ye = S != null && X(S, Te)))
+ break;
+ S = S[Te];
+ }
+ return ye || ++Z != ie ? ye : (ie = S == null ? 0 : S.length, !!ie && Ao(ie) && si(Te, ie) && (jt(S) || Fi(S)));
+ }
+ function Dd(S) {
+ var T = S.length, X = new S.constructor(T);
+ return T && typeof S[0] == "string" && sr.call(S, "index") && (X.index = S.index, X.input = S.input), X;
+ }
+ function Fu(S) {
+ return typeof S.constructor == "function" && !ja(S) ? fa(no(S)) : {};
+ }
+ function Nd(S, T, X) {
+ var Z = S.constructor;
+ switch (T) {
+ case je:
+ return Os(S);
+ case re:
+ case ee:
+ return new Z(+S);
+ case Ye:
+ return bd(S, X);
+ case nt:
+ case ut:
+ case ot:
+ case Ue:
+ case Ve:
+ case Qe:
+ case tt:
+ case ae:
+ case Re:
+ return bu(S, X);
+ case J:
+ return new Z();
+ case Q:
+ case G:
+ return new Z(S);
+ case Ce:
+ return gd(S);
+ case q:
+ return new Z();
+ case Y:
+ return _d(S);
+ }
+ }
+ function Fd(S, T) {
+ var X = T.length;
+ if (!X)
+ return S;
+ var Z = X - 1;
+ return T[Z] = (X > 1 ? "& " : "") + T[Z], T = T.join(X > 2 ? ", " : " "), S.replace(wt, `{
+/* [wrapped with ` + T + `] */
+`);
+ }
+ function Bd(S) {
+ return jt(S) || Fi(S) || !!(Hf && S && S[Hf]);
+ }
+ function si(S, T) {
+ var X = typeof S;
+ return T = T == null ? E : T, !!T && (X == "number" || X != "symbol" && Et.test(S)) && S > -1 && S % 1 == 0 && S < T;
+ }
+ function en(S, T, X) {
+ if (!vr(X))
+ return !1;
+ var Z = typeof T;
+ return (Z == "number" ? an(X) && si(T, X.length) : Z == "string" && T in X) ? Hn(X[T], S) : !1;
+ }
+ function Is(S, T) {
+ if (jt(S))
+ return !1;
+ var X = typeof S;
+ return X == "number" || X == "symbol" || X == "boolean" || S == null || bn(S) ? !0 : Se.test(S) || !ue.test(S) || T != null && S in cr(T);
+ }
+ function jd(S) {
+ var T = typeof S;
+ return T == "string" || T == "number" || T == "symbol" || T == "boolean" ? S !== "__proto__" : S === null;
+ }
+ function Ds(S) {
+ var T = So(S), X = de[T];
+ if (typeof X != "function" || !(T in Zt.prototype))
+ return !1;
+ if (S === X)
+ return !0;
+ var Z = Ps(X);
+ return !!Z && S === Z[0];
+ }
+ function Ld(S) {
+ return !!Bf && Bf in S;
+ }
+ var zd = Qa ? fi : Js;
+ function ja(S) {
+ var T = S && S.constructor, X = typeof T == "function" && T.prototype || aa;
+ return S === X;
+ }
+ function Bu(S) {
+ return S === S && !vr(S);
+ }
+ function ju(S, T) {
+ return function(X) {
+ return X == null ? !1 : X[S] === T && (T !== e || S in cr(X));
+ };
+ }
+ function Hd(S) {
+ var T = Co(S, function(Z) {
+ return X.size === w && X.clear(), Z;
+ }), X = T.cache;
+ return T;
+ }
+ function Xd(S, T) {
+ var X = S[1], Z = T[1], ie = X | Z, ye = ie < (v | c | o), Te = Z == o && X == r || Z == o && X == p && S[7].length <= T[8] || Z == (o | p) && T[7].length <= T[8] && X == r;
+ if (!(ye || Te))
+ return S;
+ Z & v && (S[2] = T[2], ie |= X & v ? 0 : a);
+ var Ae = T[3];
+ if (Ae) {
+ var ze = S[3];
+ S[3] = ze ? _u(ze, Ae, T[4]) : Ae, S[4] = ze ? bi(S[3], f) : T[4];
+ }
+ return Ae = T[5], Ae && (ze = S[5], S[5] = ze ? wu(ze, Ae, T[6]) : Ae, S[6] = ze ? bi(S[5], f) : T[6]), Ae = T[7], Ae && (S[7] = Ae), Z & o && (S[8] = S[8] == null ? T[8] : Wr(S[8], T[8])), S[9] == null && (S[9] = T[9]), S[0] = T[0], S[1] = ie, S;
+ }
+ function Ud(S) {
+ var T = [];
+ if (S != null)
+ for (var X in cr(S))
+ T.push(X);
+ return T;
+ }
+ function $d(S) {
+ return eo.call(S);
+ }
+ function Lu(S, T, X) {
+ return T = Ir(T === e ? S.length - 1 : T, 0), function() {
+ for (var Z = arguments, ie = -1, ye = Ir(Z.length - T, 0), Te = We(ye); ++ie < ye; )
+ Te[ie] = Z[T + ie];
+ ie = -1;
+ for (var Ae = We(T + 1); ++ie < T; )
+ Ae[ie] = Z[ie];
+ return Ae[T] = X(Te), pr(S, this, Ae);
+ };
+ }
+ function zu(S, T) {
+ return T.length < 2 ? S : Ii(S, An(T, 0, -1));
+ }
+ function Wd(S, T) {
+ for (var X = S.length, Z = Wr(T.length, X), ie = nn(S); Z--; ) {
+ var ye = T[Z];
+ S[Z] = si(ye, X) ? ie[ye] : e;
+ }
+ return S;
+ }
+ function Ns(S, T) {
+ if (!(T === "constructor" && typeof S[T] == "function") && T != "__proto__")
+ return S[T];
+ }
+ var Hu = Uu(lu), La = oh || function(S, T) {
+ return ht.setTimeout(S, T);
+ }, Fs = Uu(pd);
+ function Xu(S, T, X) {
+ var Z = T + "";
+ return Fs(S, Fd(Z, Vd(Id(Z), X)));
+ }
+ function Uu(S) {
+ var T = 0, X = 0;
+ return function() {
+ var Z = lh(), ie = N - (Z - X);
+ if (X = Z, ie > 0) {
+ if (++T >= z)
+ return arguments[0];
+ } else
+ T = 0;
+ return S.apply(e, arguments);
+ };
+ }
+ function Oo(S, T) {
+ var X = -1, Z = S.length, ie = Z - 1;
+ for (T = T === e ? Z : T; ++X < T; ) {
+ var ye = bs(X, ie), Te = S[ye];
+ S[ye] = S[X], S[X] = Te;
+ }
+ return S.length = T, S;
+ }
+ var $u = Hd(function(S) {
+ var T = [];
+ return S.charCodeAt(0) === 46 && T.push(""), S.replace(Ie, function(X, Z, ie, ye) {
+ T.push(ie ? ye.replace(Pt, "$1") : Z || X);
+ }), T;
+ });
+ function Yn(S) {
+ if (typeof S == "string" || bn(S))
+ return S;
+ var T = S + "";
+ return T == "0" && 1 / S == -C ? "-0" : T;
+ }
+ function Ni(S) {
+ if (S != null) {
+ try {
+ return qa.call(S);
+ } catch (T) {
+ }
+ try {
+ return S + "";
+ } catch (T) {
+ }
+ }
+ return "";
+ }
+ function Vd(S, T) {
+ return mr(D, function(X) {
+ var Z = "_." + X[0];
+ T & X[1] && !ta(S, Z) && S.push(Z);
+ }), S.sort();
+ }
+ function Wu(S) {
+ if (S instanceof Zt)
+ return S.clone();
+ var T = new Cn(S.__wrapped__, S.__chain__);
+ return T.__actions__ = nn(S.__actions__), T.__index__ = S.__index__, T.__values__ = S.__values__, T;
+ }
+ function Kd(S, T, X) {
+ (X ? en(S, T, X) : T === e) ? T = 1 : T = Ir(Ut(T), 0);
+ var Z = S == null ? 0 : S.length;
+ if (!Z || T < 1)
+ return [];
+ for (var ie = 0, ye = 0, Te = We(oo(Z / T)); ie < Z; )
+ Te[ye++] = An(S, ie, ie += T);
+ return Te;
+ }
+ function Gd(S) {
+ for (var T = -1, X = S == null ? 0 : S.length, Z = 0, ie = []; ++T < X; ) {
+ var ye = S[T];
+ ye && (ie[Z++] = ye);
+ }
+ return ie;
+ }
+ function Yd() {
+ var S = arguments.length;
+ if (!S)
+ return [];
+ for (var T = We(S - 1), X = arguments[0], Z = S; Z--; )
+ T[Z - 1] = arguments[Z];
+ return Xe(jt(X) ? nn(X) : [X], Hr(T, 1));
+ }
+ var Zd = Vt(function(S, T) {
+ return xr(S) ? Ia(S, Hr(T, 1, xr, !0)) : [];
+ }), Jd = Vt(function(S, T) {
+ var X = Mn(T);
+ return xr(X) && (X = e), xr(S) ? Ia(S, Hr(T, 1, xr, !0), It(X, 2)) : [];
+ }), Qd = Vt(function(S, T) {
+ var X = Mn(T);
+ return xr(X) && (X = e), xr(S) ? Ia(S, Hr(T, 1, xr, !0), e, X) : [];
+ });
+ function qd(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ return Z ? (T = X || T === e ? 1 : Ut(T), An(S, T < 0 ? 0 : T, Z)) : [];
+ }
+ function ep(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ return Z ? (T = X || T === e ? 1 : Ut(T), T = Z - T, An(S, 0, T < 0 ? 0 : T)) : [];
+ }
+ function tp(S, T) {
+ return S && S.length ? mo(S, It(T, 3), !0, !0) : [];
+ }
+ function rp(S, T) {
+ return S && S.length ? mo(S, It(T, 3), !0) : [];
+ }
+ function np(S, T, X, Z) {
+ var ie = S == null ? 0 : S.length;
+ return ie ? (X && typeof X != "number" && en(S, T, X) && (X = 0, Z = ie), Yh(S, T, X, Z)) : [];
+ }
+ function Vu(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ if (!Z)
+ return -1;
+ var ie = X == null ? 0 : Ut(X);
+ return ie < 0 && (ie = Ir(Z + ie, 0)), Tr(S, It(T, 3), ie);
+ }
+ function Ku(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ if (!Z)
+ return -1;
+ var ie = Z - 1;
+ return X !== e && (ie = Ut(X), ie = X < 0 ? Ir(Z + ie, 0) : Wr(ie, Z - 1)), Tr(S, It(T, 3), ie, !0);
+ }
+ function Gu(S) {
+ var T = S == null ? 0 : S.length;
+ return T ? Hr(S, 1) : [];
+ }
+ function ip(S) {
+ var T = S == null ? 0 : S.length;
+ return T ? Hr(S, C) : [];
+ }
+ function ap(S, T) {
+ var X = S == null ? 0 : S.length;
+ return X ? (T = T === e ? 1 : Ut(T), Hr(S, T)) : [];
+ }
+ function op(S) {
+ for (var T = -1, X = S == null ? 0 : S.length, Z = {}; ++T < X; ) {
+ var ie = S[T];
+ Z[ie[0]] = ie[1];
+ }
+ return Z;
+ }
+ function Yu(S) {
+ return S && S.length ? S[0] : e;
+ }
+ function sp(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ if (!Z)
+ return -1;
+ var ie = X == null ? 0 : Ut(X);
+ return ie < 0 && (ie = Ir(Z + ie, 0)), wr(S, T, ie);
+ }
+ function fp(S) {
+ var T = S == null ? 0 : S.length;
+ return T ? An(S, 0, -1) : [];
+ }
+ var up = Vt(function(S) {
+ var T = Oe(S, Ss);
+ return T.length && T[0] === S[0] ? ds(T) : [];
+ }), lp = Vt(function(S) {
+ var T = Mn(S), X = Oe(S, Ss);
+ return T === Mn(X) ? T = e : X.pop(), X.length && X[0] === S[0] ? ds(X, It(T, 2)) : [];
+ }), cp = Vt(function(S) {
+ var T = Mn(S), X = Oe(S, Ss);
+ return T = typeof T == "function" ? T : e, T && X.pop(), X.length && X[0] === S[0] ? ds(X, e, T) : [];
+ });
+ function hp(S, T) {
+ return S == null ? "" : fh.call(S, T);
+ }
+ function Mn(S) {
+ var T = S == null ? 0 : S.length;
+ return T ? S[T - 1] : e;
+ }
+ function dp(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ if (!Z)
+ return -1;
+ var ie = Z;
+ return X !== e && (ie = Ut(X), ie = ie < 0 ? Ir(Z + ie, 0) : Wr(ie, Z - 1)), T === T ? Vc(S, T, ie) : Tr(S, Jr, ie, !0);
+ }
+ function pp(S, T) {
+ return S && S.length ? ou(S, Ut(T)) : e;
+ }
+ var yp = Vt(Zu);
+ function Zu(S, T) {
+ return S && S.length && T && T.length ? ms(S, T) : S;
+ }
+ function vp(S, T, X) {
+ return S && S.length && T && T.length ? ms(S, T, It(X, 2)) : S;
+ }
+ function mp(S, T, X) {
+ return S && S.length && T && T.length ? ms(S, T, e, X) : S;
+ }
+ var bp = oi(function(S, T) {
+ var X = S == null ? 0 : S.length, Z = us(S, T);
+ return uu(S, Oe(T, function(ie) {
+ return si(ie, X) ? +ie : ie;
+ }).sort(gu)), Z;
+ });
+ function gp(S, T) {
+ var X = [];
+ if (!(S && S.length))
+ return X;
+ var Z = -1, ie = [], ye = S.length;
+ for (T = It(T, 3); ++Z < ye; ) {
+ var Te = S[Z];
+ T(Te, Z, S) && (X.push(Te), ie.push(Z));
+ }
+ return uu(S, ie), X;
+ }
+ function Bs(S) {
+ return S == null ? S : hh.call(S);
+ }
+ function _p(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ return Z ? (X && typeof X != "number" && en(S, T, X) ? (T = 0, X = Z) : (T = T == null ? 0 : Ut(T), X = X === e ? Z : Ut(X)), An(S, T, X)) : [];
+ }
+ function wp(S, T) {
+ return vo(S, T);
+ }
+ function xp(S, T, X) {
+ return _s(S, T, It(X, 2));
+ }
+ function Sp(S, T) {
+ var X = S == null ? 0 : S.length;
+ if (X) {
+ var Z = vo(S, T);
+ if (Z < X && Hn(S[Z], T))
+ return Z;
+ }
+ return -1;
+ }
+ function kp(S, T) {
+ return vo(S, T, !0);
+ }
+ function Op(S, T, X) {
+ return _s(S, T, It(X, 2), !0);
+ }
+ function Ep(S, T) {
+ var X = S == null ? 0 : S.length;
+ if (X) {
+ var Z = vo(S, T, !0) - 1;
+ if (Hn(S[Z], T))
+ return Z;
+ }
+ return -1;
+ }
+ function Tp(S) {
+ return S && S.length ? cu(S) : [];
+ }
+ function Rp(S, T) {
+ return S && S.length ? cu(S, It(T, 2)) : [];
+ }
+ function Cp(S) {
+ var T = S == null ? 0 : S.length;
+ return T ? An(S, 1, T) : [];
+ }
+ function Pp(S, T, X) {
+ return S && S.length ? (T = X || T === e ? 1 : Ut(T), An(S, 0, T < 0 ? 0 : T)) : [];
+ }
+ function Ap(S, T, X) {
+ var Z = S == null ? 0 : S.length;
+ return Z ? (T = X || T === e ? 1 : Ut(T), T = Z - T, An(S, T < 0 ? 0 : T, Z)) : [];
+ }
+ function Mp(S, T) {
+ return S && S.length ? mo(S, It(T, 3), !1, !0) : [];
+ }
+ function Ip(S, T) {
+ return S && S.length ? mo(S, It(T, 3)) : [];
+ }
+ var Dp = Vt(function(S) {
+ return wi(Hr(S, 1, xr, !0));
+ }), Np = Vt(function(S) {
+ var T = Mn(S);
+ return xr(T) && (T = e), wi(Hr(S, 1, xr, !0), It(T, 2));
+ }), Fp = Vt(function(S) {
+ var T = Mn(S);
+ return T = typeof T == "function" ? T : e, wi(Hr(S, 1, xr, !0), e, T);
+ });
+ function Bp(S) {
+ return S && S.length ? wi(S) : [];
+ }
+ function jp(S, T) {
+ return S && S.length ? wi(S, It(T, 2)) : [];
+ }
+ function Lp(S, T) {
+ return T = typeof T == "function" ? T : e, S && S.length ? wi(S, e, T) : [];
+ }
+ function js(S) {
+ if (!(S && S.length))
+ return [];
+ var T = 0;
+ return S = Zr(S, function(X) {
+ if (xr(X))
+ return T = Ir(X.length, T), !0;
+ }), mi(T, function(X) {
+ return Oe(S, Tn(X));
+ });
+ }
+ function Ju(S, T) {
+ if (!(S && S.length))
+ return [];
+ var X = js(S);
+ return T == null ? X : Oe(X, function(Z) {
+ return pr(T, e, Z);
+ });
+ }
+ var zp = Vt(function(S, T) {
+ return xr(S) ? Ia(S, T) : [];
+ }), Hp = Vt(function(S) {
+ return xs(Zr(S, xr));
+ }), Xp = Vt(function(S) {
+ var T = Mn(S);
+ return xr(T) && (T = e), xs(Zr(S, xr), It(T, 2));
+ }), Up = Vt(function(S) {
+ var T = Mn(S);
+ return T = typeof T == "function" ? T : e, xs(Zr(S, xr), e, T);
+ }), $p = Vt(js);
+ function Wp(S, T) {
+ return yu(S || [], T || [], Ma);
+ }
+ function Vp(S, T) {
+ return yu(S || [], T || [], Fa);
+ }
+ var Kp = Vt(function(S) {
+ var T = S.length, X = T > 1 ? S[T - 1] : e;
+ return X = typeof X == "function" ? (S.pop(), X) : e, Ju(S, X);
+ });
+ function Qu(S) {
+ var T = de(S);
+ return T.__chain__ = !0, T;
+ }
+ function Gp(S, T) {
+ return T(S), S;
+ }
+ function Eo(S, T) {
+ return T(S);
+ }
+ var Yp = oi(function(S) {
+ var T = S.length, X = T ? S[0] : 0, Z = this.__wrapped__, ie = function(ye) {
+ return us(ye, S);
+ };
+ return T > 1 || this.__actions__.length || !(Z instanceof Zt) || !si(X) ? this.thru(ie) : (Z = Z.slice(X, +X + (T ? 1 : 0)), Z.__actions__.push({
+ func: Eo,
+ args: [ie],
+ thisArg: e
+ }), new Cn(Z, this.__chain__).thru(function(ye) {
+ return T && !ye.length && ye.push(e), ye;
+ }));
+ });
+ function Zp() {
+ return Qu(this);
+ }
+ function Jp() {
+ return new Cn(this.value(), this.__chain__);
+ }
+ function Qp() {
+ this.__values__ === e && (this.__values__ = hl(this.value()));
+ var S = this.__index__ >= this.__values__.length, T = S ? e : this.__values__[this.__index__++];
+ return { done: S, value: T };
+ }
+ function qp() {
+ return this;
+ }
+ function e0(S) {
+ for (var T, X = this; X instanceof lo; ) {
+ var Z = Wu(X);
+ Z.__index__ = 0, Z.__values__ = e, T ? ie.__wrapped__ = Z : T = Z;
+ var ie = Z;
+ X = X.__wrapped__;
+ }
+ return ie.__wrapped__ = S, T;
+ }
+ function t0() {
+ var S = this.__wrapped__;
+ if (S instanceof Zt) {
+ var T = S;
+ return this.__actions__.length && (T = new Zt(this)), T = T.reverse(), T.__actions__.push({
+ func: Eo,
+ args: [Bs],
+ thisArg: e
+ }), new Cn(T, this.__chain__);
+ }
+ return this.thru(Bs);
+ }
+ function r0() {
+ return pu(this.__wrapped__, this.__actions__);
+ }
+ var n0 = bo(function(S, T, X) {
+ sr.call(S, X) ? ++S[X] : ii(S, X, 1);
+ });
+ function i0(S, T, X) {
+ var Z = jt(S) ? En : Gh;
+ return X && en(S, T, X) && (T = e), Z(S, It(T, 3));
+ }
+ function a0(S, T) {
+ var X = jt(S) ? Zr : Jf;
+ return X(S, It(T, 3));
+ }
+ var o0 = Ou(Vu), s0 = Ou(Ku);
+ function f0(S, T) {
+ return Hr(To(S, T), 1);
+ }
+ function u0(S, T) {
+ return Hr(To(S, T), C);
+ }
+ function l0(S, T, X) {
+ return X = X === e ? 1 : Ut(X), Hr(To(S, T), X);
+ }
+ function qu(S, T) {
+ var X = jt(S) ? mr : _i;
+ return X(S, It(T, 3));
+ }
+ function el(S, T) {
+ var X = jt(S) ? ea : Zf;
+ return X(S, It(T, 3));
+ }
+ var c0 = bo(function(S, T, X) {
+ sr.call(S, X) ? S[X].push(T) : ii(S, X, [T]);
+ });
+ function h0(S, T, X, Z) {
+ S = an(S) ? S : da(S), X = X && !Z ? Ut(X) : 0;
+ var ie = S.length;
+ return X < 0 && (X = Ir(ie + X, 0)), Mo(S) ? X <= ie && S.indexOf(T, X) > -1 : !!ie && wr(S, T, X) > -1;
+ }
+ var d0 = Vt(function(S, T, X) {
+ var Z = -1, ie = typeof T == "function", ye = an(S) ? We(S.length) : [];
+ return _i(S, function(Te) {
+ ye[++Z] = ie ? pr(T, Te, X) : Da(Te, T, X);
+ }), ye;
+ }), p0 = bo(function(S, T, X) {
+ ii(S, X, T);
+ });
+ function To(S, T) {
+ var X = jt(S) ? Oe : nu;
+ return X(S, It(T, 3));
+ }
+ function y0(S, T, X, Z) {
+ return S == null ? [] : (jt(T) || (T = T == null ? [] : [T]), X = Z ? e : X, jt(X) || (X = X == null ? [] : [X]), su(S, T, X));
+ }
+ var v0 = bo(function(S, T, X) {
+ S[X ? 0 : 1].push(T);
+ }, function() {
+ return [[], []];
+ });
+ function m0(S, T, X) {
+ var Z = jt(S) ? ft : Vn, ie = arguments.length < 3;
+ return Z(S, It(T, 4), X, ie, _i);
+ }
+ function b0(S, T, X) {
+ var Z = jt(S) ? Tt : Vn, ie = arguments.length < 3;
+ return Z(S, It(T, 4), X, ie, Zf);
+ }
+ function g0(S, T) {
+ var X = jt(S) ? Zr : Jf;
+ return X(S, Po(It(T, 3)));
+ }
+ function _0(S) {
+ var T = jt(S) ? Vf : hd;
+ return T(S);
+ }
+ function w0(S, T, X) {
+ (X ? en(S, T, X) : T === e) ? T = 1 : T = Ut(T);
+ var Z = jt(S) ? Uh : dd;
+ return Z(S, T);
+ }
+ function x0(S) {
+ var T = jt(S) ? $h : yd;
+ return T(S);
+ }
+ function S0(S) {
+ if (S == null)
+ return 0;
+ if (an(S))
+ return Mo(S) ? na(S) : S.length;
+ var T = Vr(S);
+ return T == J || T == q ? S.size : ys(S).length;
+ }
+ function k0(S, T, X) {
+ var Z = jt(S) ? mt : vd;
+ return X && en(S, T, X) && (T = e), Z(S, It(T, 3));
+ }
+ var O0 = Vt(function(S, T) {
+ if (S == null)
+ return [];
+ var X = T.length;
+ return X > 1 && en(S, T[0], T[1]) ? T = [] : X > 2 && en(T[0], T[1], T[2]) && (T = [T[0]]), su(S, Hr(T, 1), []);
+ }), Ro = ah || function() {
+ return ht.Date.now();
+ };
+ function E0(S, T) {
+ if (typeof T != "function")
+ throw new Rn(m);
+ return S = Ut(S), function() {
+ if (--S < 1)
+ return T.apply(this, arguments);
+ };
+ }
+ function tl(S, T, X) {
+ return T = X ? e : T, T = S && T == null ? S.length : T, ai(S, o, e, e, e, e, T);
+ }
+ function rl(S, T) {
+ var X;
+ if (typeof T != "function")
+ throw new Rn(m);
+ return S = Ut(S), function() {
+ return --S > 0 && (X = T.apply(this, arguments)), S <= 1 && (T = e), X;
+ };
+ }
+ var Ls = Vt(function(S, T, X) {
+ var Z = v;
+ if (X.length) {
+ var ie = bi(X, ca(Ls));
+ Z |= i;
+ }
+ return ai(S, Z, T, X, ie);
+ }), nl = Vt(function(S, T, X) {
+ var Z = v | c;
+ if (X.length) {
+ var ie = bi(X, ca(nl));
+ Z |= i;
+ }
+ return ai(T, Z, S, X, ie);
+ });
+ function il(S, T, X) {
+ T = X ? e : T;
+ var Z = ai(S, r, e, e, e, e, e, T);
+ return Z.placeholder = il.placeholder, Z;
+ }
+ function al(S, T, X) {
+ T = X ? e : T;
+ var Z = ai(S, t, e, e, e, e, e, T);
+ return Z.placeholder = al.placeholder, Z;
+ }
+ function ol(S, T, X) {
+ var Z, ie, ye, Te, Ae, ze, qe = 0, et = !1, at = !1, yt = !0;
+ if (typeof S != "function")
+ throw new Rn(m);
+ T = In(T) || 0, vr(X) && (et = !!X.leading, at = "maxWait" in X, ye = at ? Ir(In(X.maxWait) || 0, T) : ye, yt = "trailing" in X ? !!X.trailing : yt);
+ function kt(Sr) {
+ var Xn = Z, li = ie;
+ return Z = ie = e, qe = Sr, Te = S.apply(li, Xn), Te;
+ }
+ function Dt(Sr) {
+ return qe = Sr, Ae = La(Gt, T), et ? kt(Sr) : Te;
+ }
+ function $t(Sr) {
+ var Xn = Sr - ze, li = Sr - qe, Ol = T - Xn;
+ return at ? Wr(Ol, ye - li) : Ol;
+ }
+ function Nt(Sr) {
+ var Xn = Sr - ze, li = Sr - qe;
+ return ze === e || Xn >= T || Xn < 0 || at && li >= ye;
+ }
+ function Gt() {
+ var Sr = Ro();
+ if (Nt(Sr))
+ return qt(Sr);
+ Ae = La(Gt, $t(Sr));
+ }
+ function qt(Sr) {
+ return Ae = e, yt && Z ? kt(Sr) : (Z = ie = e, Te);
+ }
+ function gn() {
+ Ae !== e && vu(Ae), qe = 0, Z = ze = ie = Ae = e;
+ }
+ function tn() {
+ return Ae === e ? Te : qt(Ro());
+ }
+ function _n() {
+ var Sr = Ro(), Xn = Nt(Sr);
+ if (Z = arguments, ie = this, ze = Sr, Xn) {
+ if (Ae === e)
+ return Dt(ze);
+ if (at)
+ return vu(Ae), Ae = La(Gt, T), kt(ze);
+ }
+ return Ae === e && (Ae = La(Gt, T)), Te;
+ }
+ return _n.cancel = gn, _n.flush = tn, _n;
+ }
+ var T0 = Vt(function(S, T) {
+ return Yf(S, 1, T);
+ }), R0 = Vt(function(S, T, X) {
+ return Yf(S, In(T) || 0, X);
+ });
+ function C0(S) {
+ return ai(S, O);
+ }
+ function Co(S, T) {
+ if (typeof S != "function" || T != null && typeof T != "function")
+ throw new Rn(m);
+ var X = function() {
+ var Z = arguments, ie = T ? T.apply(this, Z) : Z[0], ye = X.cache;
+ if (ye.has(ie))
+ return ye.get(ie);
+ var Te = S.apply(this, Z);
+ return X.cache = ye.set(ie, Te) || ye, Te;
+ };
+ return X.cache = new (Co.Cache || ni)(), X;
+ }
+ Co.Cache = ni;
+ function Po(S) {
+ if (typeof S != "function")
+ throw new Rn(m);
+ return function() {
+ var T = arguments;
+ switch (T.length) {
+ case 0:
+ return !S.call(this);
+ case 1:
+ return !S.call(this, T[0]);
+ case 2:
+ return !S.call(this, T[0], T[1]);
+ case 3:
+ return !S.call(this, T[0], T[1], T[2]);
+ }
+ return !S.apply(this, T);
+ };
+ }
+ function P0(S) {
+ return rl(2, S);
+ }
+ var A0 = md(function(S, T) {
+ T = T.length == 1 && jt(T[0]) ? Oe(T[0], vn(It())) : Oe(Hr(T, 1), vn(It()));
+ var X = T.length;
+ return Vt(function(Z) {
+ for (var ie = -1, ye = Wr(Z.length, X); ++ie < ye; )
+ Z[ie] = T[ie].call(this, Z[ie]);
+ return pr(S, this, Z);
+ });
+ }), zs = Vt(function(S, T) {
+ var X = bi(T, ca(zs));
+ return ai(S, i, e, T, X);
+ }), sl = Vt(function(S, T) {
+ var X = bi(T, ca(sl));
+ return ai(S, n, e, T, X);
+ }), M0 = oi(function(S, T) {
+ return ai(S, p, e, e, e, T);
+ });
+ function I0(S, T) {
+ if (typeof S != "function")
+ throw new Rn(m);
+ return T = T === e ? T : Ut(T), Vt(S, T);
+ }
+ function D0(S, T) {
+ if (typeof S != "function")
+ throw new Rn(m);
+ return T = T == null ? 0 : Ir(Ut(T), 0), Vt(function(X) {
+ var Z = X[T], ie = Si(X, 0, T);
+ return Z && Xe(ie, Z), pr(S, this, ie);
+ });
+ }
+ function N0(S, T, X) {
+ var Z = !0, ie = !0;
+ if (typeof S != "function")
+ throw new Rn(m);
+ return vr(X) && (Z = "leading" in X ? !!X.leading : Z, ie = "trailing" in X ? !!X.trailing : ie), ol(S, T, {
+ leading: Z,
+ maxWait: T,
+ trailing: ie
+ });
+ }
+ function F0(S) {
+ return tl(S, 1);
+ }
+ function B0(S, T) {
+ return zs(ks(T), S);
+ }
+ function j0() {
+ if (!arguments.length)
+ return [];
+ var S = arguments[0];
+ return jt(S) ? S : [S];
+ }
+ function L0(S) {
+ return Pn(S, l);
+ }
+ function z0(S, T) {
+ return T = typeof T == "function" ? T : e, Pn(S, l, T);
+ }
+ function H0(S) {
+ return Pn(S, y | l);
+ }
+ function X0(S, T) {
+ return T = typeof T == "function" ? T : e, Pn(S, y | l, T);
+ }
+ function U0(S, T) {
+ return T == null || Gf(S, T, jr(T));
+ }
+ function Hn(S, T) {
+ return S === T || S !== S && T !== T;
+ }
+ var $0 = xo(hs), W0 = xo(function(S, T) {
+ return S >= T;
+ }), Fi = eu(function() {
+ return arguments;
+ }()) ? eu : function(S) {
+ return br(S) && sr.call(S, "callee") && !zf.call(S, "callee");
+ }, jt = We.isArray, V0 = ur ? vn(ur) : ed;
+ function an(S) {
+ return S != null && Ao(S.length) && !fi(S);
+ }
+ function xr(S) {
+ return br(S) && an(S);
+ }
+ function K0(S) {
+ return S === !0 || S === !1 || br(S) && qr(S) == re;
+ }
+ var ki = sh || Js, G0 = Pr ? vn(Pr) : td;
+ function Y0(S) {
+ return br(S) && S.nodeType === 1 && !za(S);
+ }
+ function Z0(S) {
+ if (S == null)
+ return !0;
+ if (an(S) && (jt(S) || typeof S == "string" || typeof S.splice == "function" || ki(S) || ha(S) || Fi(S)))
+ return !S.length;
+ var T = Vr(S);
+ if (T == J || T == q)
+ return !S.size;
+ if (ja(S))
+ return !ys(S).length;
+ for (var X in S)
+ if (sr.call(S, X))
+ return !1;
+ return !0;
+ }
+ function J0(S, T) {
+ return Na(S, T);
+ }
+ function Q0(S, T, X) {
+ X = typeof X == "function" ? X : e;
+ var Z = X ? X(S, T) : e;
+ return Z === e ? Na(S, T, e, X) : !!Z;
+ }
+ function Hs(S) {
+ if (!br(S))
+ return !1;
+ var T = qr(S);
+ return T == ve || T == ce || typeof S.message == "string" && typeof S.name == "string" && !za(S);
+ }
+ function q0(S) {
+ return typeof S == "number" && Xf(S);
+ }
+ function fi(S) {
+ if (!vr(S))
+ return !1;
+ var T = qr(S);
+ return T == ge || T == oe || T == V || T == se;
+ }
+ function fl(S) {
+ return typeof S == "number" && S == Ut(S);
+ }
+ function Ao(S) {
+ return typeof S == "number" && S > -1 && S % 1 == 0 && S <= E;
+ }
+ function vr(S) {
+ var T = typeof S;
+ return S != null && (T == "object" || T == "function");
+ }
+ function br(S) {
+ return S != null && typeof S == "object";
+ }
+ var ul = Br ? vn(Br) : nd;
+ function ey(S, T) {
+ return S === T || ps(S, T, As(T));
+ }
+ function ty(S, T, X) {
+ return X = typeof X == "function" ? X : e, ps(S, T, As(T), X);
+ }
+ function ry(S) {
+ return ll(S) && S != +S;
+ }
+ function ny(S) {
+ if (zd(S))
+ throw new Bt(u);
+ return tu(S);
+ }
+ function iy(S) {
+ return S === null;
+ }
+ function ay(S) {
+ return S == null;
+ }
+ function ll(S) {
+ return typeof S == "number" || br(S) && qr(S) == Q;
+ }
+ function za(S) {
+ if (!br(S) || qr(S) != ke)
+ return !1;
+ var T = no(S);
+ if (T === null)
+ return !0;
+ var X = sr.call(T, "constructor") && T.constructor;
+ return typeof X == "function" && X instanceof X && qa.call(X) == th;
+ }
+ var Xs = dr ? vn(dr) : id;
+ function oy(S) {
+ return fl(S) && S >= -E && S <= E;
+ }
+ var cl = Er ? vn(Er) : ad;
+ function Mo(S) {
+ return typeof S == "string" || !jt(S) && br(S) && qr(S) == G;
+ }
+ function bn(S) {
+ return typeof S == "symbol" || br(S) && qr(S) == Y;
+ }
+ var ha = Ar ? vn(Ar) : od;
+ function sy(S) {
+ return S === e;
+ }
+ function fy(S) {
+ return br(S) && Vr(S) == we;
+ }
+ function uy(S) {
+ return br(S) && qr(S) == _e;
+ }
+ var ly = xo(vs), cy = xo(function(S, T) {
+ return S <= T;
+ });
+ function hl(S) {
+ if (!S)
+ return [];
+ if (an(S))
+ return Mo(S) ? Ln(S) : nn(S);
+ if (Ta && S[Ta])
+ return Uc(S[Ta]());
+ var T = Vr(S), X = T == J ? ns : T == q ? Za : da;
+ return X(S);
+ }
+ function ui(S) {
+ if (!S)
+ return S === 0 ? S : 0;
+ if (S = In(S), S === C || S === -C) {
+ var T = S < 0 ? -1 : 1;
+ return T * A;
+ }
+ return S === S ? S : 0;
+ }
+ function Ut(S) {
+ var T = ui(S), X = T % 1;
+ return T === T ? X ? T - X : T : 0;
+ }
+ function dl(S) {
+ return S ? Mi(Ut(S), 0, $) : 0;
+ }
+ function In(S) {
+ if (typeof S == "number")
+ return S;
+ if (bn(S))
+ return L;
+ if (vr(S)) {
+ var T = typeof S.valueOf == "function" ? S.valueOf() : S;
+ S = vr(T) ? T + "" : T;
+ }
+ if (typeof S != "string")
+ return S === 0 ? S : +S;
+ S = Mf(S);
+ var X = xt.test(S);
+ return X || Lt.test(S) ? xe(S.slice(2), X ? 2 : 8) : Ct.test(S) ? L : +S;
+ }
+ function pl(S) {
+ return Gn(S, on(S));
+ }
+ function hy(S) {
+ return S ? Mi(Ut(S), -E, E) : S === 0 ? S : 0;
+ }
+ function or(S) {
+ return S == null ? "" : mn(S);
+ }
+ var dy = ua(function(S, T) {
+ if (ja(T) || an(T)) {
+ Gn(T, jr(T), S);
+ return;
+ }
+ for (var X in T)
+ sr.call(T, X) && Ma(S, X, T[X]);
+ }), yl = ua(function(S, T) {
+ Gn(T, on(T), S);
+ }), Io = ua(function(S, T, X, Z) {
+ Gn(T, on(T), S, Z);
+ }), py = ua(function(S, T, X, Z) {
+ Gn(T, jr(T), S, Z);
+ }), yy = oi(us);
+ function vy(S, T) {
+ var X = fa(S);
+ return T == null ? X : Kf(X, T);
+ }
+ var my = Vt(function(S, T) {
+ S = cr(S);
+ var X = -1, Z = T.length, ie = Z > 2 ? T[2] : e;
+ for (ie && en(T[0], T[1], ie) && (Z = 1); ++X < Z; )
+ for (var ye = T[X], Te = on(ye), Ae = -1, ze = Te.length; ++Ae < ze; ) {
+ var qe = Te[Ae], et = S[qe];
+ (et === e || Hn(et, aa[qe]) && !sr.call(S, qe)) && (S[qe] = ye[qe]);
+ }
+ return S;
+ }), by = Vt(function(S) {
+ return S.push(e, Mu), pr(vl, e, S);
+ });
+ function gy(S, T) {
+ return _r(S, It(T, 3), Kn);
+ }
+ function _y(S, T) {
+ return _r(S, It(T, 3), cs);
+ }
+ function wy(S, T) {
+ return S == null ? S : ls(S, It(T, 3), on);
+ }
+ function xy(S, T) {
+ return S == null ? S : Qf(S, It(T, 3), on);
+ }
+ function Sy(S, T) {
+ return S && Kn(S, It(T, 3));
+ }
+ function ky(S, T) {
+ return S && cs(S, It(T, 3));
+ }
+ function Oy(S) {
+ return S == null ? [] : po(S, jr(S));
+ }
+ function Ey(S) {
+ return S == null ? [] : po(S, on(S));
+ }
+ function Us(S, T, X) {
+ var Z = S == null ? e : Ii(S, T);
+ return Z === e ? X : Z;
+ }
+ function Ty(S, T) {
+ return S != null && Nu(S, T, Zh);
+ }
+ function $s(S, T) {
+ return S != null && Nu(S, T, Jh);
+ }
+ var Ry = Tu(function(S, T, X) {
+ T != null && typeof T.toString != "function" && (T = eo.call(T)), S[T] = X;
+ }, Vs(sn)), Cy = Tu(function(S, T, X) {
+ T != null && typeof T.toString != "function" && (T = eo.call(T)), sr.call(S, T) ? S[T].push(X) : S[T] = [X];
+ }, It), Py = Vt(Da);
+ function jr(S) {
+ return an(S) ? Wf(S) : ys(S);
+ }
+ function on(S) {
+ return an(S) ? Wf(S, !0) : sd(S);
+ }
+ function Ay(S, T) {
+ var X = {};
+ return T = It(T, 3), Kn(S, function(Z, ie, ye) {
+ ii(X, T(Z, ie, ye), Z);
+ }), X;
+ }
+ function My(S, T) {
+ var X = {};
+ return T = It(T, 3), Kn(S, function(Z, ie, ye) {
+ ii(X, ie, T(Z, ie, ye));
+ }), X;
+ }
+ var Iy = ua(function(S, T, X) {
+ yo(S, T, X);
+ }), vl = ua(function(S, T, X, Z) {
+ yo(S, T, X, Z);
+ }), Dy = oi(function(S, T) {
+ var X = {};
+ if (S == null)
+ return X;
+ var Z = !1;
+ T = Oe(T, function(ye) {
+ return ye = xi(ye, S), Z || (Z = ye.length > 1), ye;
+ }), Gn(S, Cs(S), X), Z && (X = Pn(X, y | h | l, Rd));
+ for (var ie = T.length; ie--; )
+ ws(X, T[ie]);
+ return X;
+ });
+ function Ny(S, T) {
+ return ml(S, Po(It(T)));
+ }
+ var Fy = oi(function(S, T) {
+ return S == null ? {} : ud(S, T);
+ });
+ function ml(S, T) {
+ if (S == null)
+ return {};
+ var X = Oe(Cs(S), function(Z) {
+ return [Z];
+ });
+ return T = It(T), fu(S, X, function(Z, ie) {
+ return T(Z, ie[0]);
+ });
+ }
+ function By(S, T, X) {
+ T = xi(T, S);
+ var Z = -1, ie = T.length;
+ for (ie || (ie = 1, S = e); ++Z < ie; ) {
+ var ye = S == null ? e : S[Yn(T[Z])];
+ ye === e && (Z = ie, ye = X), S = fi(ye) ? ye.call(S) : ye;
+ }
+ return S;
+ }
+ function jy(S, T, X) {
+ return S == null ? S : Fa(S, T, X);
+ }
+ function Ly(S, T, X, Z) {
+ return Z = typeof Z == "function" ? Z : e, S == null ? S : Fa(S, T, X, Z);
+ }
+ var bl = Pu(jr), gl = Pu(on);
+ function zy(S, T, X) {
+ var Z = jt(S), ie = Z || ki(S) || ha(S);
+ if (T = It(T, 4), X == null) {
+ var ye = S && S.constructor;
+ ie ? X = Z ? new ye() : [] : vr(S) ? X = fi(ye) ? fa(no(S)) : {} : X = {};
+ }
+ return (ie ? mr : Kn)(S, function(Te, Ae, ze) {
+ return T(X, Te, Ae, ze);
+ }), X;
+ }
+ function Hy(S, T) {
+ return S == null ? !0 : ws(S, T);
+ }
+ function Xy(S, T, X) {
+ return S == null ? S : du(S, T, ks(X));
+ }
+ function Uy(S, T, X, Z) {
+ return Z = typeof Z == "function" ? Z : e, S == null ? S : du(S, T, ks(X), Z);
+ }
+ function da(S) {
+ return S == null ? [] : rs(S, jr(S));
+ }
+ function $y(S) {
+ return S == null ? [] : rs(S, on(S));
+ }
+ function Wy(S, T, X) {
+ return X === e && (X = T, T = e), X !== e && (X = In(X), X = X === X ? X : 0), T !== e && (T = In(T), T = T === T ? T : 0), Mi(In(S), T, X);
+ }
+ function Vy(S, T, X) {
+ return T = ui(T), X === e ? (X = T, T = 0) : X = ui(X), S = In(S), Qh(S, T, X);
+ }
+ function Ky(S, T, X) {
+ if (X && typeof X != "boolean" && en(S, T, X) && (T = X = e), X === e && (typeof T == "boolean" ? (X = T, T = e) : typeof S == "boolean" && (X = S, S = e)), S === e && T === e ? (S = 0, T = 1) : (S = ui(S), T === e ? (T = S, S = 0) : T = ui(T)), S > T) {
+ var Z = S;
+ S = T, T = Z;
+ }
+ if (X || S % 1 || T % 1) {
+ var ie = Uf();
+ return Wr(S + ie * (T - S + qi("1e-" + ((ie + "").length - 1))), T);
+ }
+ return bs(S, T);
+ }
+ var Gy = la(function(S, T, X) {
+ return T = T.toLowerCase(), S + (X ? _l(T) : T);
+ });
+ function _l(S) {
+ return Ws(or(S).toLowerCase());
+ }
+ function wl(S) {
+ return S = or(S), S && S.replace(Dr, jc).replace(Yi, "");
+ }
+ function Yy(S, T, X) {
+ S = or(S), T = mn(T);
+ var Z = S.length;
+ X = X === e ? Z : Mi(Ut(X), 0, Z);
+ var ie = X;
+ return X -= T.length, X >= 0 && S.slice(X, ie) == T;
+ }
+ function Zy(S) {
+ return S = or(S), S && it.test(S) ? S.replace(te, Lc) : S;
+ }
+ function Jy(S) {
+ return S = or(S), S && Ge.test(S) ? S.replace(st, "\\$&") : S;
+ }
+ var Qy = la(function(S, T, X) {
+ return S + (X ? "-" : "") + T.toLowerCase();
+ }), qy = la(function(S, T, X) {
+ return S + (X ? " " : "") + T.toLowerCase();
+ }), ev = ku("toLowerCase");
+ function tv(S, T, X) {
+ S = or(S), T = Ut(T);
+ var Z = T ? na(S) : 0;
+ if (!T || Z >= T)
+ return S;
+ var ie = (T - Z) / 2;
+ return wo(so(ie), X) + S + wo(oo(ie), X);
+ }
+ function rv(S, T, X) {
+ S = or(S), T = Ut(T);
+ var Z = T ? na(S) : 0;
+ return T && Z < T ? S + wo(T - Z, X) : S;
+ }
+ function nv(S, T, X) {
+ S = or(S), T = Ut(T);
+ var Z = T ? na(S) : 0;
+ return T && Z < T ? wo(T - Z, X) + S : S;
+ }
+ function iv(S, T, X) {
+ return X || T == null ? T = 0 : T && (T = +T), ch(or(S).replace(rt, ""), T || 0);
+ }
+ function av(S, T, X) {
+ return (X ? en(S, T, X) : T === e) ? T = 1 : T = Ut(T), gs(or(S), T);
+ }
+ function ov() {
+ var S = arguments, T = or(S[0]);
+ return S.length < 3 ? T : T.replace(S[1], S[2]);
+ }
+ var sv = la(function(S, T, X) {
+ return S + (X ? "_" : "") + T.toLowerCase();
+ });
+ function fv(S, T, X) {
+ return X && typeof X != "number" && en(S, T, X) && (T = X = e), X = X === e ? $ : X >>> 0, X ? (S = or(S), S && (typeof T == "string" || T != null && !Xs(T)) && (T = mn(T), !T && ra(S)) ? Si(Ln(S), 0, X) : S.split(T, X)) : [];
+ }
+ var uv = la(function(S, T, X) {
+ return S + (X ? " " : "") + Ws(T);
+ });
+ function lv(S, T, X) {
+ return S = or(S), X = X == null ? 0 : Mi(Ut(X), 0, S.length), T = mn(T), S.slice(X, X + T.length) == T;
+ }
+ function cv(S, T, X) {
+ var Z = de.templateSettings;
+ X && en(S, T, X) && (T = e), S = or(S), T = Io({}, T, Z, Au);
+ var ie = Io({}, T.imports, Z.imports, Au), ye = jr(ie), Te = rs(ie, ye), Ae, ze, qe = 0, et = T.interpolate || Or, at = "__p += '", yt = is(
+ (T.escape || Or).source + "|" + et.source + "|" + (et === Le ? bt : Or).source + "|" + (T.evaluate || Or).source + "|$",
+ "g"
+ ), kt = "//# sourceURL=" + (sr.call(T, "sourceURL") ? (T.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Zi + "]") + `
+`;
+ S.replace(yt, function(Nt, Gt, qt, gn, tn, _n) {
+ return qt || (qt = gn), at += S.slice(qe, _n).replace(Gr, zc), Gt && (Ae = !0, at += `' +
+__e(` + Gt + `) +
+'`), tn && (ze = !0, at += `';
+` + tn + `;
+__p += '`), qt && (at += `' +
+((__t = (` + qt + `)) == null ? '' : __t) +
+'`), qe = _n + Nt.length, Nt;
+ }), at += `';
+`;
+ var Dt = sr.call(T, "variable") && T.variable;
+ if (!Dt)
+ at = `with (obj) {
+` + at + `
+}
+`;
+ else if (At.test(Dt))
+ throw new Bt(g);
+ at = (ze ? at.replace(be, "") : at).replace(Ee, "$1").replace(pe, "$1;"), at = "function(" + (Dt || "obj") + `) {
+` + (Dt ? "" : `obj || (obj = {});
+`) + "var __t, __p = ''" + (Ae ? ", __e = _.escape" : "") + (ze ? `, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+` : `;
+`) + at + `return __p
+}`;
+ var $t = Sl(function() {
+ return ar(ye, kt + "return " + at).apply(e, Te);
+ });
+ if ($t.source = at, Hs($t))
+ throw $t;
+ return $t;
+ }
+ function hv(S) {
+ return or(S).toLowerCase();
+ }
+ function dv(S) {
+ return or(S).toUpperCase();
+ }
+ function pv(S, T, X) {
+ if (S = or(S), S && (X || T === e))
+ return Mf(S);
+ if (!S || !(T = mn(T)))
+ return S;
+ var Z = Ln(S), ie = Ln(T), ye = If(Z, ie), Te = Df(Z, ie) + 1;
+ return Si(Z, ye, Te).join("");
+ }
+ function yv(S, T, X) {
+ if (S = or(S), S && (X || T === e))
+ return S.slice(0, Ff(S) + 1);
+ if (!S || !(T = mn(T)))
+ return S;
+ var Z = Ln(S), ie = Df(Z, Ln(T)) + 1;
+ return Si(Z, 0, ie).join("");
+ }
+ function vv(S, T, X) {
+ if (S = or(S), S && (X || T === e))
+ return S.replace(rt, "");
+ if (!S || !(T = mn(T)))
+ return S;
+ var Z = Ln(S), ie = If(Z, Ln(T));
+ return Si(Z, ie).join("");
+ }
+ function mv(S, T) {
+ var X = P, Z = F;
+ if (vr(T)) {
+ var ie = "separator" in T ? T.separator : ie;
+ X = "length" in T ? Ut(T.length) : X, Z = "omission" in T ? mn(T.omission) : Z;
+ }
+ S = or(S);
+ var ye = S.length;
+ if (ra(S)) {
+ var Te = Ln(S);
+ ye = Te.length;
+ }
+ if (X >= ye)
+ return S;
+ var Ae = X - na(Z);
+ if (Ae < 1)
+ return Z;
+ var ze = Te ? Si(Te, 0, Ae).join("") : S.slice(0, Ae);
+ if (ie === e)
+ return ze + Z;
+ if (Te && (Ae += ze.length - Ae), Xs(ie)) {
+ if (S.slice(Ae).search(ie)) {
+ var qe, et = ze;
+ for (ie.global || (ie = is(ie.source, or(Kt.exec(ie)) + "g")), ie.lastIndex = 0; qe = ie.exec(et); )
+ var at = qe.index;
+ ze = ze.slice(0, at === e ? Ae : at);
+ }
+ } else if (S.indexOf(mn(ie), Ae) != Ae) {
+ var yt = ze.lastIndexOf(ie);
+ yt > -1 && (ze = ze.slice(0, yt));
+ }
+ return ze + Z;
+ }
+ function bv(S) {
+ return S = or(S), S && He.test(S) ? S.replace(Pe, Kc) : S;
+ }
+ var gv = la(function(S, T, X) {
+ return S + (X ? " " : "") + T.toUpperCase();
+ }), Ws = ku("toUpperCase");
+ function xl(S, T, X) {
+ return S = or(S), T = X ? e : T, T === e ? Xc(S) ? Zc(S) : hr(S) : S.match(T) || [];
+ }
+ var Sl = Vt(function(S, T) {
+ try {
+ return pr(S, e, T);
+ } catch (X) {
+ return Hs(X) ? X : new Bt(X);
+ }
+ }), _v = oi(function(S, T) {
+ return mr(T, function(X) {
+ X = Yn(X), ii(S, X, Ls(S[X], S));
+ }), S;
+ });
+ function wv(S) {
+ var T = S == null ? 0 : S.length, X = It();
+ return S = T ? Oe(S, function(Z) {
+ if (typeof Z[1] != "function")
+ throw new Rn(m);
+ return [X(Z[0]), Z[1]];
+ }) : [], Vt(function(Z) {
+ for (var ie = -1; ++ie < T; ) {
+ var ye = S[ie];
+ if (pr(ye[0], this, Z))
+ return pr(ye[1], this, Z);
+ }
+ });
+ }
+ function xv(S) {
+ return Kh(Pn(S, y));
+ }
+ function Vs(S) {
+ return function() {
+ return S;
+ };
+ }
+ function Sv(S, T) {
+ return S == null || S !== S ? T : S;
+ }
+ var kv = Eu(), Ov = Eu(!0);
+ function sn(S) {
+ return S;
+ }
+ function Ks(S) {
+ return ru(typeof S == "function" ? S : Pn(S, y));
+ }
+ function Ev(S) {
+ return iu(Pn(S, y));
+ }
+ function Tv(S, T) {
+ return au(S, Pn(T, y));
+ }
+ var Rv = Vt(function(S, T) {
+ return function(X) {
+ return Da(X, S, T);
+ };
+ }), Cv = Vt(function(S, T) {
+ return function(X) {
+ return Da(S, X, T);
+ };
+ });
+ function Gs(S, T, X) {
+ var Z = jr(T), ie = po(T, Z);
+ X == null && !(vr(T) && (ie.length || !Z.length)) && (X = T, T = S, S = this, ie = po(T, jr(T)));
+ var ye = !(vr(X) && "chain" in X) || !!X.chain, Te = fi(S);
+ return mr(ie, function(Ae) {
+ var ze = T[Ae];
+ S[Ae] = ze, Te && (S.prototype[Ae] = function() {
+ var qe = this.__chain__;
+ if (ye || qe) {
+ var et = S(this.__wrapped__), at = et.__actions__ = nn(this.__actions__);
+ return at.push({ func: ze, args: arguments, thisArg: S }), et.__chain__ = qe, et;
+ }
+ return ze.apply(S, Xe([this.value()], arguments));
+ });
+ }), S;
+ }
+ function Pv() {
+ return ht._ === this && (ht._ = rh), this;
+ }
+ function Ys() {
+ }
+ function Av(S) {
+ return S = Ut(S), Vt(function(T) {
+ return ou(T, S);
+ });
+ }
+ var Mv = Es(Oe), Iv = Es(En), Dv = Es(mt);
+ function kl(S) {
+ return Is(S) ? Tn(Yn(S)) : ld(S);
+ }
+ function Nv(S) {
+ return function(T) {
+ return S == null ? e : Ii(S, T);
+ };
+ }
+ var Fv = Ru(), Bv = Ru(!0);
+ function Zs() {
+ return [];
+ }
+ function Js() {
+ return !1;
+ }
+ function jv() {
+ return {};
+ }
+ function Lv() {
+ return "";
+ }
+ function zv() {
+ return !0;
+ }
+ function Hv(S, T) {
+ if (S = Ut(S), S < 1 || S > E)
+ return [];
+ var X = $, Z = Wr(S, $);
+ T = It(T), S -= $;
+ for (var ie = mi(Z, T); ++X < S; )
+ T(X);
+ return ie;
+ }
+ function Xv(S) {
+ return jt(S) ? Oe(S, Yn) : bn(S) ? [S] : nn($u(or(S)));
+ }
+ function Uv(S) {
+ var T = ++eh;
+ return or(S) + T;
+ }
+ var $v = _o(function(S, T) {
+ return S + T;
+ }, 0), Wv = Ts("ceil"), Vv = _o(function(S, T) {
+ return S / T;
+ }, 1), Kv = Ts("floor");
+ function Gv(S) {
+ return S && S.length ? ho(S, sn, hs) : e;
+ }
+ function Yv(S, T) {
+ return S && S.length ? ho(S, It(T, 2), hs) : e;
+ }
+ function Zv(S) {
+ return Qr(S, sn);
+ }
+ function Jv(S, T) {
+ return Qr(S, It(T, 2));
+ }
+ function Qv(S) {
+ return S && S.length ? ho(S, sn, vs) : e;
+ }
+ function qv(S, T) {
+ return S && S.length ? ho(S, It(T, 2), vs) : e;
+ }
+ var em = _o(function(S, T) {
+ return S * T;
+ }, 1), tm = Ts("round"), rm = _o(function(S, T) {
+ return S - T;
+ }, 0);
+ function nm(S) {
+ return S && S.length ? vi(S, sn) : 0;
+ }
+ function im(S, T) {
+ return S && S.length ? vi(S, It(T, 2)) : 0;
+ }
+ return de.after = E0, de.ary = tl, de.assign = dy, de.assignIn = yl, de.assignInWith = Io, de.assignWith = py, de.at = yy, de.before = rl, de.bind = Ls, de.bindAll = _v, de.bindKey = nl, de.castArray = j0, de.chain = Qu, de.chunk = Kd, de.compact = Gd, de.concat = Yd, de.cond = wv, de.conforms = xv, de.constant = Vs, de.countBy = n0, de.create = vy, de.curry = il, de.curryRight = al, de.debounce = ol, de.defaults = my, de.defaultsDeep = by, de.defer = T0, de.delay = R0, de.difference = Zd, de.differenceBy = Jd, de.differenceWith = Qd, de.drop = qd, de.dropRight = ep, de.dropRightWhile = tp, de.dropWhile = rp, de.fill = np, de.filter = a0, de.flatMap = f0, de.flatMapDeep = u0, de.flatMapDepth = l0, de.flatten = Gu, de.flattenDeep = ip, de.flattenDepth = ap, de.flip = C0, de.flow = kv, de.flowRight = Ov, de.fromPairs = op, de.functions = Oy, de.functionsIn = Ey, de.groupBy = c0, de.initial = fp, de.intersection = up, de.intersectionBy = lp, de.intersectionWith = cp, de.invert = Ry, de.invertBy = Cy, de.invokeMap = d0, de.iteratee = Ks, de.keyBy = p0, de.keys = jr, de.keysIn = on, de.map = To, de.mapKeys = Ay, de.mapValues = My, de.matches = Ev, de.matchesProperty = Tv, de.memoize = Co, de.merge = Iy, de.mergeWith = vl, de.method = Rv, de.methodOf = Cv, de.mixin = Gs, de.negate = Po, de.nthArg = Av, de.omit = Dy, de.omitBy = Ny, de.once = P0, de.orderBy = y0, de.over = Mv, de.overArgs = A0, de.overEvery = Iv, de.overSome = Dv, de.partial = zs, de.partialRight = sl, de.partition = v0, de.pick = Fy, de.pickBy = ml, de.property = kl, de.propertyOf = Nv, de.pull = yp, de.pullAll = Zu, de.pullAllBy = vp, de.pullAllWith = mp, de.pullAt = bp, de.range = Fv, de.rangeRight = Bv, de.rearg = M0, de.reject = g0, de.remove = gp, de.rest = I0, de.reverse = Bs, de.sampleSize = w0, de.set = jy, de.setWith = Ly, de.shuffle = x0, de.slice = _p, de.sortBy = O0, de.sortedUniq = Tp, de.sortedUniqBy = Rp, de.split = fv, de.spread = D0, de.tail = Cp, de.take = Pp, de.takeRight = Ap, de.takeRightWhile = Mp, de.takeWhile = Ip, de.tap = Gp, de.throttle = N0, de.thru = Eo, de.toArray = hl, de.toPairs = bl, de.toPairsIn = gl, de.toPath = Xv, de.toPlainObject = pl, de.transform = zy, de.unary = F0, de.union = Dp, de.unionBy = Np, de.unionWith = Fp, de.uniq = Bp, de.uniqBy = jp, de.uniqWith = Lp, de.unset = Hy, de.unzip = js, de.unzipWith = Ju, de.update = Xy, de.updateWith = Uy, de.values = da, de.valuesIn = $y, de.without = zp, de.words = xl, de.wrap = B0, de.xor = Hp, de.xorBy = Xp, de.xorWith = Up, de.zip = $p, de.zipObject = Wp, de.zipObjectDeep = Vp, de.zipWith = Kp, de.entries = bl, de.entriesIn = gl, de.extend = yl, de.extendWith = Io, Gs(de, de), de.add = $v, de.attempt = Sl, de.camelCase = Gy, de.capitalize = _l, de.ceil = Wv, de.clamp = Wy, de.clone = L0, de.cloneDeep = H0, de.cloneDeepWith = X0, de.cloneWith = z0, de.conformsTo = U0, de.deburr = wl, de.defaultTo = Sv, de.divide = Vv, de.endsWith = Yy, de.eq = Hn, de.escape = Zy, de.escapeRegExp = Jy, de.every = i0, de.find = o0, de.findIndex = Vu, de.findKey = gy, de.findLast = s0, de.findLastIndex = Ku, de.findLastKey = _y, de.floor = Kv, de.forEach = qu, de.forEachRight = el, de.forIn = wy, de.forInRight = xy, de.forOwn = Sy, de.forOwnRight = ky, de.get = Us, de.gt = $0, de.gte = W0, de.has = Ty, de.hasIn = $s, de.head = Yu, de.identity = sn, de.includes = h0, de.indexOf = sp, de.inRange = Vy, de.invoke = Py, de.isArguments = Fi, de.isArray = jt, de.isArrayBuffer = V0, de.isArrayLike = an, de.isArrayLikeObject = xr, de.isBoolean = K0, de.isBuffer = ki, de.isDate = G0, de.isElement = Y0, de.isEmpty = Z0, de.isEqual = J0, de.isEqualWith = Q0, de.isError = Hs, de.isFinite = q0, de.isFunction = fi, de.isInteger = fl, de.isLength = Ao, de.isMap = ul, de.isMatch = ey, de.isMatchWith = ty, de.isNaN = ry, de.isNative = ny, de.isNil = ay, de.isNull = iy, de.isNumber = ll, de.isObject = vr, de.isObjectLike = br, de.isPlainObject = za, de.isRegExp = Xs, de.isSafeInteger = oy, de.isSet = cl, de.isString = Mo, de.isSymbol = bn, de.isTypedArray = ha, de.isUndefined = sy, de.isWeakMap = fy, de.isWeakSet = uy, de.join = hp, de.kebabCase = Qy, de.last = Mn, de.lastIndexOf = dp, de.lowerCase = qy, de.lowerFirst = ev, de.lt = ly, de.lte = cy, de.max = Gv, de.maxBy = Yv, de.mean = Zv, de.meanBy = Jv, de.min = Qv, de.minBy = qv, de.stubArray = Zs, de.stubFalse = Js, de.stubObject = jv, de.stubString = Lv, de.stubTrue = zv, de.multiply = em, de.nth = pp, de.noConflict = Pv, de.noop = Ys, de.now = Ro, de.pad = tv, de.padEnd = rv, de.padStart = nv, de.parseInt = iv, de.random = Ky, de.reduce = m0, de.reduceRight = b0, de.repeat = av, de.replace = ov, de.result = By, de.round = tm, de.runInContext = Ne, de.sample = _0, de.size = S0, de.snakeCase = sv, de.some = k0, de.sortedIndex = wp, de.sortedIndexBy = xp, de.sortedIndexOf = Sp, de.sortedLastIndex = kp, de.sortedLastIndexBy = Op, de.sortedLastIndexOf = Ep, de.startCase = uv, de.startsWith = lv, de.subtract = rm, de.sum = nm, de.sumBy = im, de.template = cv, de.times = Hv, de.toFinite = ui, de.toInteger = Ut, de.toLength = dl, de.toLower = hv, de.toNumber = In, de.toSafeInteger = hy, de.toString = or, de.toUpper = dv, de.trim = pv, de.trimEnd = yv, de.trimStart = vv, de.truncate = mv, de.unescape = bv, de.uniqueId = Uv, de.upperCase = gv, de.upperFirst = Ws, de.each = qu, de.eachRight = el, de.first = Yu, Gs(de, function() {
+ var S = {};
+ return Kn(de, function(T, X) {
+ sr.call(de.prototype, X) || (S[X] = T);
+ }), S;
+ }(), { chain: !1 }), de.VERSION = x, mr(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(S) {
+ de[S].placeholder = de;
+ }), mr(["drop", "take"], function(S, T) {
+ Zt.prototype[S] = function(X) {
+ X = X === e ? 1 : Ir(Ut(X), 0);
+ var Z = this.__filtered__ && !T ? new Zt(this) : this.clone();
+ return Z.__filtered__ ? Z.__takeCount__ = Wr(X, Z.__takeCount__) : Z.__views__.push({
+ size: Wr(X, $),
+ type: S + (Z.__dir__ < 0 ? "Right" : "")
+ }), Z;
+ }, Zt.prototype[S + "Right"] = function(X) {
+ return this.reverse()[S](X).reverse();
+ };
+ }), mr(["filter", "map", "takeWhile"], function(S, T) {
+ var X = T + 1, Z = X == M || X == R;
+ Zt.prototype[S] = function(ie) {
+ var ye = this.clone();
+ return ye.__iteratees__.push({
+ iteratee: It(ie, 3),
+ type: X
+ }), ye.__filtered__ = ye.__filtered__ || Z, ye;
+ };
+ }), mr(["head", "last"], function(S, T) {
+ var X = "take" + (T ? "Right" : "");
+ Zt.prototype[S] = function() {
+ return this[X](1).value()[0];
+ };
+ }), mr(["initial", "tail"], function(S, T) {
+ var X = "drop" + (T ? "" : "Right");
+ Zt.prototype[S] = function() {
+ return this.__filtered__ ? new Zt(this) : this[X](1);
+ };
+ }), Zt.prototype.compact = function() {
+ return this.filter(sn);
+ }, Zt.prototype.find = function(S) {
+ return this.filter(S).head();
+ }, Zt.prototype.findLast = function(S) {
+ return this.reverse().find(S);
+ }, Zt.prototype.invokeMap = Vt(function(S, T) {
+ return typeof S == "function" ? new Zt(this) : this.map(function(X) {
+ return Da(X, S, T);
+ });
+ }), Zt.prototype.reject = function(S) {
+ return this.filter(Po(It(S)));
+ }, Zt.prototype.slice = function(S, T) {
+ S = Ut(S);
+ var X = this;
+ return X.__filtered__ && (S > 0 || T < 0) ? new Zt(X) : (S < 0 ? X = X.takeRight(-S) : S && (X = X.drop(S)), T !== e && (T = Ut(T), X = T < 0 ? X.dropRight(-T) : X.take(T - S)), X);
+ }, Zt.prototype.takeRightWhile = function(S) {
+ return this.reverse().takeWhile(S).reverse();
+ }, Zt.prototype.toArray = function() {
+ return this.take($);
+ }, Kn(Zt.prototype, function(S, T) {
+ var X = /^(?:filter|find|map|reject)|While$/.test(T), Z = /^(?:head|last)$/.test(T), ie = de[Z ? "take" + (T == "last" ? "Right" : "") : T], ye = Z || /^find/.test(T);
+ ie && (de.prototype[T] = function() {
+ var Te = this.__wrapped__, Ae = Z ? [1] : arguments, ze = Te instanceof Zt, qe = Ae[0], et = ze || jt(Te), at = function(Gt) {
+ var qt = ie.apply(de, Xe([Gt], Ae));
+ return Z && yt ? qt[0] : qt;
+ };
+ et && X && typeof qe == "function" && qe.length != 1 && (ze = et = !1);
+ var yt = this.__chain__, kt = !!this.__actions__.length, Dt = ye && !yt, $t = ze && !kt;
+ if (!ye && et) {
+ Te = $t ? Te : new Zt(this);
+ var Nt = S.apply(Te, Ae);
+ return Nt.__actions__.push({ func: Eo, args: [at], thisArg: e }), new Cn(Nt, yt);
+ }
+ return Dt && $t ? S.apply(this, Ae) : (Nt = this.thru(at), Dt ? Z ? Nt.value()[0] : Nt.value() : Nt);
+ });
+ }), mr(["pop", "push", "shift", "sort", "splice", "unshift"], function(S) {
+ var T = Ja[S], X = /^(?:push|sort|unshift)$/.test(S) ? "tap" : "thru", Z = /^(?:pop|shift)$/.test(S);
+ de.prototype[S] = function() {
+ var ie = arguments;
+ if (Z && !this.__chain__) {
+ var ye = this.value();
+ return T.apply(jt(ye) ? ye : [], ie);
+ }
+ return this[X](function(Te) {
+ return T.apply(jt(Te) ? Te : [], ie);
+ });
+ };
+ }), Kn(Zt.prototype, function(S, T) {
+ var X = de[T];
+ if (X) {
+ var Z = X.name + "";
+ sr.call(sa, Z) || (sa[Z] = []), sa[Z].push({ name: T, func: X });
+ }
+ }), sa[go(e, c).name] = [{
+ name: "wrapper",
+ func: e
+ }], Zt.prototype.clone = bh, Zt.prototype.reverse = gh, Zt.prototype.value = _h, de.prototype.at = Yp, de.prototype.chain = Zp, de.prototype.commit = Jp, de.prototype.next = Qp, de.prototype.plant = e0, de.prototype.reverse = t0, de.prototype.toJSON = de.prototype.valueOf = de.prototype.value = r0, de.prototype.first = de.prototype.head, Ta && (de.prototype[Ta] = qp), de;
+ }, ia = Jc();
+ Mt ? ((Mt.exports = ia)._ = ia, Yt._ = ia) : ht._ = ia;
+ }).call(Wt);
+})(y1, ga);
+const v1 = ga;
+function Dc(H) {
+ H = H.replace("#", "");
+ for (var k = H.match(/../g), e = 0; e < 3; e++)
+ k[e] = parseInt(k[e], 16);
+ return k;
+}
+function Nc(H, k, e) {
+ for (var x = [H.toString(16), k.toString(16), e.toString(16)], _ = 0; _ < 3; _++)
+ x[_].length == 1 && (x[_] = "0" + x[_]);
+ return "#" + x.join("");
+}
+function m1(H, k) {
+ for (var e = Dc(H), x = 0; x < 3; x++)
+ e[x] = Math.floor(e[x] * (1 - k));
+ return Nc(e[0], e[1], e[2]);
+}
+function b1(H, k) {
+ for (var e = Dc(H), x = 0; x < 3; x++)
+ e[x] = Math.floor((255 - e[x]) * k + e[x]);
+ return Nc(e[0], e[1], e[2]);
+}
+var wf = {}, g1 = {
+ get exports() {
+ return wf;
+ },
+ set exports(H) {
+ wf = H;
+ }
+};
+(function(H, k) {
+ (function(e, x) {
+ H.exports = x();
+ })(Wt, function() {
+ var e = 1e3, x = 6e4, _ = 36e5, u = "millisecond", m = "second", g = "minute", b = "hour", w = "day", f = "week", y = "month", h = "quarter", l = "year", d = "date", s = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, a = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
+ var M = ["th", "st", "nd", "rd"], I = N % 100;
+ return "[" + N + (M[(I - 20) % 10] || M[I] || M[0]) + "]";
+ } }, r = function(N, M, I) {
+ var R = String(N);
+ return !R || R.length >= M ? N : "" + Array(M + 1 - R.length).join(I) + N;
+ }, t = { s: r, z: function(N) {
+ var M = -N.utcOffset(), I = Math.abs(M), R = Math.floor(I / 60), C = I % 60;
+ return (M <= 0 ? "+" : "-") + r(R, 2, "0") + ":" + r(C, 2, "0");
+ }, m: function N(M, I) {
+ if (M.date() < I.date())
+ return -N(I, M);
+ var R = 12 * (I.year() - M.year()) + (I.month() - M.month()), C = M.clone().add(R, y), E = I - C < 0, A = M.clone().add(R + (E ? -1 : 1), y);
+ return +(-(R + (I - C) / (E ? C - A : A - C)) || 0);
+ }, a: function(N) {
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
+ }, p: function(N) {
+ return { M: y, y: l, w: f, d: w, D: d, h: b, m: g, s: m, ms: u, Q: h }[N] || String(N || "").toLowerCase().replace(/s$/, "");
+ }, u: function(N) {
+ return N === void 0;
+ } }, i = "en", n = {};
+ n[i] = a;
+ var o = function(N) {
+ return N instanceof F;
+ }, p = function N(M, I, R) {
+ var C;
+ if (!M)
+ return i;
+ if (typeof M == "string") {
+ var E = M.toLowerCase();
+ n[E] && (C = E), I && (n[E] = I, C = E);
+ var A = M.split("-");
+ if (!C && A.length > 1)
+ return N(A[0]);
+ } else {
+ var L = M.name;
+ n[L] = M, C = L;
+ }
+ return !R && C && (i = C), C || !R && i;
+ }, O = function(N, M) {
+ if (o(N))
+ return N.clone();
+ var I = typeof M == "object" ? M : {};
+ return I.date = N, I.args = arguments, new F(I);
+ }, P = t;
+ P.l = p, P.i = o, P.w = function(N, M) {
+ return O(N, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
+ };
+ var F = function() {
+ function N(I) {
+ this.$L = p(I.locale, null, !0), this.parse(I);
+ }
+ var M = N.prototype;
+ return M.parse = function(I) {
+ this.$d = function(R) {
+ var C = R.date, E = R.utc;
+ if (C === null)
+ return /* @__PURE__ */ new Date(NaN);
+ if (P.u(C))
+ return /* @__PURE__ */ new Date();
+ if (C instanceof Date)
+ return new Date(C);
+ if (typeof C == "string" && !/Z$/i.test(C)) {
+ var A = C.match(v);
+ if (A) {
+ var L = A[2] - 1 || 0, $ = (A[7] || "0").substring(0, 3);
+ return E ? new Date(Date.UTC(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $)) : new Date(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $);
+ }
+ }
+ return new Date(C);
+ }(I), this.$x = I.x || {}, this.init();
+ }, M.init = function() {
+ var I = this.$d;
+ this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
+ }, M.$utils = function() {
+ return P;
+ }, M.isValid = function() {
+ return this.$d.toString() !== s;
+ }, M.isSame = function(I, R) {
+ var C = O(I);
+ return this.startOf(R) <= C && C <= this.endOf(R);
+ }, M.isAfter = function(I, R) {
+ return O(I) < this.startOf(R);
+ }, M.isBefore = function(I, R) {
+ return this.endOf(R) < O(I);
+ }, M.$g = function(I, R, C) {
+ return P.u(I) ? this[R] : this.set(C, I);
+ }, M.unix = function() {
+ return Math.floor(this.valueOf() / 1e3);
+ }, M.valueOf = function() {
+ return this.$d.getTime();
+ }, M.startOf = function(I, R) {
+ var C = this, E = !!P.u(R) || R, A = P.p(I), L = function(re, ee) {
+ var ce = P.w(C.$u ? Date.UTC(C.$y, ee, re) : new Date(C.$y, ee, re), C);
+ return E ? ce : ce.endOf(w);
+ }, $ = function(re, ee) {
+ return P.w(C.toDate()[re].apply(C.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), C);
+ }, W = this.$W, U = this.$M, D = this.$D, B = "set" + (this.$u ? "UTC" : "");
+ switch (A) {
+ case l:
+ return E ? L(1, 0) : L(31, 11);
+ case y:
+ return E ? L(1, U) : L(0, U + 1);
+ case f:
+ var j = this.$locale().weekStart || 0, V = (W < j ? W + 7 : W) - j;
+ return L(E ? D - V : D + (6 - V), U);
+ case w:
+ case d:
+ return $(B + "Hours", 0);
+ case b:
+ return $(B + "Minutes", 1);
+ case g:
+ return $(B + "Seconds", 2);
+ case m:
+ return $(B + "Milliseconds", 3);
+ default:
+ return this.clone();
+ }
+ }, M.endOf = function(I) {
+ return this.startOf(I, !1);
+ }, M.$set = function(I, R) {
+ var C, E = P.p(I), A = "set" + (this.$u ? "UTC" : ""), L = (C = {}, C[w] = A + "Date", C[d] = A + "Date", C[y] = A + "Month", C[l] = A + "FullYear", C[b] = A + "Hours", C[g] = A + "Minutes", C[m] = A + "Seconds", C[u] = A + "Milliseconds", C)[E], $ = E === w ? this.$D + (R - this.$W) : R;
+ if (E === y || E === l) {
+ var W = this.clone().set(d, 1);
+ W.$d[L]($), W.init(), this.$d = W.set(d, Math.min(this.$D, W.daysInMonth())).$d;
+ } else
+ L && this.$d[L]($);
+ return this.init(), this;
+ }, M.set = function(I, R) {
+ return this.clone().$set(I, R);
+ }, M.get = function(I) {
+ return this[P.p(I)]();
+ }, M.add = function(I, R) {
+ var C, E = this;
+ I = Number(I);
+ var A = P.p(R), L = function(U) {
+ var D = O(E);
+ return P.w(D.date(D.date() + Math.round(U * I)), E);
+ };
+ if (A === y)
+ return this.set(y, this.$M + I);
+ if (A === l)
+ return this.set(l, this.$y + I);
+ if (A === w)
+ return L(1);
+ if (A === f)
+ return L(7);
+ var $ = (C = {}, C[g] = x, C[b] = _, C[m] = e, C)[A] || 1, W = this.$d.getTime() + I * $;
+ return P.w(W, this);
+ }, M.subtract = function(I, R) {
+ return this.add(-1 * I, R);
+ }, M.format = function(I) {
+ var R = this, C = this.$locale();
+ if (!this.isValid())
+ return C.invalidDate || s;
+ var E = I || "YYYY-MM-DDTHH:mm:ssZ", A = P.z(this), L = this.$H, $ = this.$m, W = this.$M, U = C.weekdays, D = C.months, B = function(ee, ce, ve, ge) {
+ return ee && (ee[ce] || ee(R, E)) || ve[ce].slice(0, ge);
+ }, j = function(ee) {
+ return P.s(L % 12 || 12, ee, "0");
+ }, V = C.meridiem || function(ee, ce, ve) {
+ var ge = ee < 12 ? "AM" : "PM";
+ return ve ? ge.toLowerCase() : ge;
+ }, re = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: W + 1, MM: P.s(W + 1, 2, "0"), MMM: B(C.monthsShort, W, D, 3), MMMM: B(D, W), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: B(C.weekdaysMin, this.$W, U, 2), ddd: B(C.weekdaysShort, this.$W, U, 3), dddd: U[this.$W], H: String(L), HH: P.s(L, 2, "0"), h: j(1), hh: j(2), a: V(L, $, !0), A: V(L, $, !1), m: String($), mm: P.s($, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: A };
+ return E.replace(c, function(ee, ce) {
+ return ce || re[ee] || A.replace(":", "");
+ });
+ }, M.utcOffset = function() {
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
+ }, M.diff = function(I, R, C) {
+ var E, A = P.p(R), L = O(I), $ = (L.utcOffset() - this.utcOffset()) * x, W = this - L, U = P.m(this, L);
+ return U = (E = {}, E[l] = U / 12, E[y] = U, E[h] = U / 3, E[f] = (W - $) / 6048e5, E[w] = (W - $) / 864e5, E[b] = W / _, E[g] = W / x, E[m] = W / e, E)[A] || W, C ? U : P.a(U);
+ }, M.daysInMonth = function() {
+ return this.endOf(y).$D;
+ }, M.$locale = function() {
+ return n[this.$L];
+ }, M.locale = function(I, R) {
+ if (!I)
+ return this.$L;
+ var C = this.clone(), E = p(I, R, !0);
+ return E && (C.$L = E), C;
+ }, M.clone = function() {
+ return P.w(this.$d, this);
+ }, M.toDate = function() {
+ return new Date(this.valueOf());
+ }, M.toJSON = function() {
+ return this.isValid() ? this.toISOString() : null;
+ }, M.toISOString = function() {
+ return this.$d.toISOString();
+ }, M.toString = function() {
+ return this.$d.toUTCString();
+ }, N;
+ }(), z = F.prototype;
+ return O.prototype = z, [["$ms", u], ["$s", m], ["$m", g], ["$H", b], ["$W", w], ["$M", y], ["$y", l], ["$D", d]].forEach(function(N) {
+ z[N[1]] = function(M) {
+ return this.$g(M, N[0], N[1]);
+ };
+ }), O.extend = function(N, M) {
+ return N.$i || (N(M, F, O), N.$i = !0), O;
+ }, O.locale = p, O.isDayjs = o, O.unix = function(N) {
+ return O(1e3 * N);
+ }, O.en = n[i], O.Ls = n, O.p = {}, O;
+ });
+})(g1);
+const Bi = wf, af = [
+ "#FFFFFF",
+ "#000000",
+ "#BFBFBF",
+ "#323232",
+ "#4472C4",
+ "#ED7D31",
+ "#A5A5A5",
+ "#FFC000",
+ "#5B9BD5",
+ "#71AD47"
+];
+let _1 = 80;
+function uc(H, k = {}) {
+ return w1($g(H), k);
+}
+function w1(H, k) {
+ return new Promise(function(e, x) {
+ const _ = new XMLHttpRequest();
+ _.open(k.method || "GET", H, !0), _.responseType = k.responseType || "arraybuffer", _.onload = function() {
+ _.status === 200 ? e(_.response) : x(_.status);
+ }, _.onerror = function() {
+ x(_.status);
+ }, _.withCredentials = k.withCredentials || !1, k.headers && Object.keys(k.headers).forEach(function(u) {
+ _.setRequestHeader(u, k.headers[u]);
+ }), _.send(k.body);
+ });
+}
+function x1(H) {
+ try {
+ return new gf.Workbook().xlsx.load(H);
+ } catch (k) {
+ return console.warn(k), Promise.reject(k);
+ }
+}
+function S1(H, k, e) {
+ for (let x = 0; x < (H.columns || []).length; x++)
+ k.cols[x.toString()] = {}, H.columns[x].width ? k.cols[x.toString()].width = H.columns[x].width * 6 : k.cols[x.toString()].width = _1;
+ k.cols.len = Math.max(Object.keys(k.cols).length, e.minColLength || 0);
+}
+function k1(H) {
+ const { numFmt: k, value: e, type: x } = H;
+ switch (x) {
+ case 2:
+ return e + "";
+ case 3:
+ return e;
+ case 4:
+ switch (k) {
+ case "yyyy-mm-dd;@":
+ return Bi(e).format("YYYY-MM-DD");
+ case "mm-dd-yy":
+ return Bi(e).format("YYYY/MM/DD");
+ case "[$-F800]dddd, mmmm dd, yyyy":
+ return Bi(e).format("YYYY年M月D日 ddd");
+ case 'm"月"d"日";@':
+ return Bi(e).format("M月D日");
+ case "yyyy/m/d h:mm;@":
+ case 'm/d/yy "h":mm':
+ return Bi(e).subtract(8, "hour").format("YYYY/M/DD HH:mm");
+ case "h:mm;@":
+ return Bi(e).format("HH:mm");
+ default:
+ return Bi(e).format("YYYY-MM-DD");
+ }
+ case 6:
+ return H.result;
+ case 8:
+ return H.text;
+ default:
+ return e;
+ }
+}
+function of(H) {
+ if (typeof H == "object")
+ return "#000000";
+ if (/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(H))
+ return H.startsWith("#") ? H : "#" + H;
+ H = H.trim().toLowerCase();
+ let k = {};
+ try {
+ let e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(H);
+ return k.r = parseInt(e[2], 16), k.g = parseInt(e[3], 16), k.b = parseInt(e[4], 16), k.a = parseInt(e[1], 16) / 255, Rt(`rgba(${k.r}, ${k.g}, ${k.b}, ${k.a})`).toHexString();
+ } catch (e) {
+ console.warn(e);
+ }
+}
+function sf(H, k) {
+ return H > 9 ? "#C7C9CC" : typeof k == "undefined" ? af[H] : k > 0 ? b1(af[H], k) : m1(af[H], Math.abs(k));
+}
+function O1(H) {
+ H.style = ga.cloneDeep(H.style);
+ let k = null;
+ H.style.fill && H.style.fill.fgColor && (H.style.fill.fgColor.argb ? k = of(H.style.fill.fgColor.argb) : H.style.fill.fgColor.hasOwnProperty("theme") ? k = sf(H.style.fill.fgColor.theme, H.style.fill.fgColor.tint) : k = "#C7C9CC"), k && (H.style.bgcolor = k);
+ let e = null;
+ if (H.style.font && H.style.font.color && (H.style.font.color.argb ? e = of(H.style.font.color.argb) : H.style.font.color.hasOwnProperty("theme") ? e = sf(H.style.font.color.theme, H.style.font.color.tint) : e = "#000000"), e && (H.style.color = e), H.style.alignment && (H.style.alignment.horizontal && (H.style.align = H.style.alignment.horizontal), H.style.alignment.vertical && (H.style.valign = H.style.alignment.vertical)), H.style.alignment && H.style.alignment.wrapText && (H.style.textwrap = !0), H.style.border) {
+ let x = {};
+ Object.keys(H.style.border).forEach((_) => {
+ let u = H.style.border[_], m = "#000000";
+ typeof u.color == "string" ? m = u.color : u.color && (u.color.argb ? m = of(u.color.argb) : u.color.hasOwnProperty("theme") && (m = sf(u.color.theme, u.color.tint))), x[_] = [u.style || "thin", m];
+ }), H.style.border2 = Qs({}, H.style.border), H.style.border = x;
+ }
+ return H.style;
+}
+function E1(H, k) {
+ let e = [];
+ return H.eachSheet((x) => {
+ let _ = { name: x.name, styles: [], rows: {}, cols: {}, merges: [], media: [] }, u = [];
+ for (let m in x._merges) {
+ _.merges.push(x._merges[m].shortRange);
+ let g = {};
+ g.startAddress = x._merges[m].tl, g.endAddress = x._merges[m].br, g.YRange = x._merges[m].model.bottom - x._merges[m].model.top, g.XRange = x._merges[m].model.right - x._merges[m].model.left, u.push(g);
+ }
+ S1(x, _, k), (x._rows || []).forEach((m, g) => {
+ _.rows[g] = { cells: {} }, m.height && (_.rows[g].height = m.height), (m._cells || []).forEach((b, w) => {
+ _.rows[g].cells[w] = {};
+ let f = v1.find(u, function(y) {
+ return y.startAddress == b._address;
+ });
+ f && b.master.address != f.startAddress || (f && (_.rows[g].cells[w].merge = [f.YRange, f.XRange]), _.rows[g].cells[w].text = k1(b), _.styles.push(O1(b)), _.rows[g].cells[w].style = _.styles.length - 1);
+ });
+ }), _._media && (_.media = _._media), _.rows.len = Math.max(Object.keys(_.rows).length, 100), e.push(_);
+ }), {
+ workbookData: e,
+ workbookSource: H,
+ medias: H.media || []
+ };
+}
+let $o = [];
+function Ho(H, k, e, x) {
+ e && e._media.length && e._media.forEach((_) => {
+ let { imageId: u, range: m, type: g } = _;
+ if (g === "image") {
+ let b = T1(e, m, x);
+ R1(H, u, k[u], b);
+ }
+ });
+}
+let Wo = 60, Vo = 25, ff = 80, uf = 24, Jn = window.devicePixelRatio;
+function T1(H, k, e) {
+ var r, t, i, n, o, p, O, P, F, z, N, M, I, R;
+ let { tl: x = {}, br: _ = {} } = k, { nativeCol: u, nativeColOff: m, nativeRow: g, nativeRowOff: b } = x, w = Wo, f = Vo;
+ for (let C = 0; C < u; C++)
+ w += ((t = (r = H == null ? void 0 : H._columns) == null ? void 0 : r[C]) == null ? void 0 : t.width) * 6 || ff;
+ for (let C = 0; C < g; C++)
+ f += ((n = (i = H == null ? void 0 : H._rows) == null ? void 0 : i[C]) == null ? void 0 : n.height) || uf;
+ let y = w + m / 12700, h = f + b / 12700, {
+ nativeCol: l,
+ nativeColOff: d,
+ nativeRow: s,
+ nativeRowOff: v
+ } = _, c;
+ if (u === l)
+ c = (d - m) / 12700;
+ else {
+ c = (((p = (o = H == null ? void 0 : H._columns) == null ? void 0 : o[u]) == null ? void 0 : p.width) * 6 || ff) - m / 12700;
+ for (let C = u + 1; C < l; C++)
+ c += ((P = (O = H == null ? void 0 : H._columns) == null ? void 0 : O[C]) == null ? void 0 : P.width) * 6 || ff;
+ c += d / 12700;
+ }
+ let a;
+ if (g === s)
+ a = (v - b) / 12700;
+ else {
+ a = (((z = (F = H == null ? void 0 : H._rows) == null ? void 0 : F[g]) == null ? void 0 : z.height) || uf) - b / 12700;
+ for (let C = g + 1; C < s; C++)
+ a += ((M = (N = H == null ? void 0 : H._rows) == null ? void 0 : N[C]) == null ? void 0 : M.height) || uf;
+ a += v / 12700;
+ }
+ return {
+ x: (y - (((I = e == null ? void 0 : e.scroll) == null ? void 0 : I.x) || 0)) * Jn,
+ y: (h - (((R = e == null ? void 0 : e.scroll) == null ? void 0 : R.y) || 0)) * Jn,
+ width: c * Jn,
+ height: a * Jn
+ };
+}
+function lc() {
+ $o = [];
+}
+function R1(H, k, e, x) {
+ C1(k, e).then((_) => {
+ let u = 0, m = 0, g = _.width, b = _.height, w = x.x, f = x.y, y = x.width, h = x.height, l = y / g, d = h / b;
+ if (w < Wo * Jn) {
+ let s = Wo * Jn - w;
+ w = Wo * Jn, y -= s, g -= s / l, u += s / l;
+ }
+ if (f < Vo * Jn) {
+ let s = Vo * Jn - f;
+ f = Vo * Jn, h -= s, b -= s / d, m += s / d;
+ }
+ H.drawImage(_, u, m, g, b, w, f, y, h);
+ }).catch((_) => {
+ });
+}
+function C1(H, k) {
+ return new Promise((e, x) => {
+ if ($o[H])
+ return e($o[H]);
+ const { buffer: _, extension: u } = k.buffer;
+ let m = new Blob([_], { type: "image/" + u }), g = URL.createObjectURL(m), b = new Image();
+ b.src = g, b.onload = function() {
+ e(b), $o[H] = b;
+ }, b.onerror = function(w) {
+ x(w);
+ };
+ });
+}
+function P1(H) {
+ let k = H.value;
+ if (k) {
+ let e = k.querySelectorAll("input");
+ for (let x of e)
+ x && !x.readOnly && (x.readOnly = !0);
+ document.activeElement && document.activeElement.blur();
+ }
+}
+const A1 = (H, k) => {
+ const e = H.__vccOpts || H;
+ for (const [x, _] of k)
+ e[x] = _;
+ return e;
+}, M1 = fm({
+ name: "VueOfficeExcel",
+ props: {
+ src: [String, ArrayBuffer, Blob],
+ requestOptions: {
+ type: Object,
+ default: () => ({})
+ },
+ options: {
+ type: Object,
+ default: () => ({
+ minColLength: 20
+ })
+ }
+ },
+ emits: ["rendered", "error"],
+ setup(H, { emit: k }) {
+ const e = Cl(null), x = Cl(null);
+ let _ = {
+ _worksheets: []
+ }, u = [], m = 1, g = null, b = null, w = null;
+ function f(d) {
+ x1(d).then((s) => {
+ if (!s._worksheets || s._worksheets.length === 0)
+ throw new Error("未获取到数据,可能文件格式不正确或文件已损坏");
+ const { workbookData: v, medias: c, workbookSource: a } = E1(s, H.options);
+ u = c, _ = a, w = null, m = 1, lc(), b.loadData(v), Ho(g, u, _._worksheets[m], w), k("rendered");
+ }).catch((s) => {
+ console.warn(s), u = [], _ = {
+ _worksheets: []
+ }, lc(), b.loadData({}), k("error", s);
+ });
+ }
+ const y = ga.debounce(P1, 200).bind(this, x), h = new MutationObserver(y), l = { attributes: !0, childList: !0, subtree: !0 };
+ return um(() => {
+ lm(() => {
+ h.observe(x.value, l), y(x), window.xs = b = new Ac(x.value, {
+ mode: "read",
+ showToolbar: !1,
+ showContextmenu: H.options.showContextmenu || !1,
+ view: {
+ height: () => e.value && e.value.clientHeight || 300,
+ width: () => e.value && e.value.clientWidth || 300
+ },
+ row: {
+ height: 24,
+ len: 100
+ },
+ col: {
+ len: 26,
+ width: 80,
+ indexWidth: 60,
+ minWidth: 60
+ },
+ autoFocus: !1
+ }).loadData({});
+ let d = b.bottombar.swapFunc;
+ b.bottombar.swapFunc = function(a) {
+ d.call(b.bottombar, a), m = a + 1, setTimeout(() => {
+ b.reRender(), Ho(g, u, _._worksheets[m], w);
+ });
+ };
+ let s = b.sheet.editor.clear;
+ b.sheet.editor.clear = function(...a) {
+ s.apply(b.sheet.editor, a), setTimeout(() => {
+ Ho(g, u, _._worksheets[m], w);
+ });
+ };
+ let v = b.sheet.editor.setOffset;
+ b.sheet.editor.setOffset = function(...a) {
+ v.apply(b.sheet.editor, a), w = a[0], Ho(g, u, _._worksheets[m], w);
+ }, g = x.value.querySelector("canvas").getContext("2d"), H.src && uc(H.src, H.requestOptions).then(f).catch((a) => {
+ b.loadData({}), k("error", a);
+ });
+ });
+ }), cm(() => {
+ h.disconnect(), b = null;
+ }), hm(() => H.src, () => {
+ H.src ? uc(H.src, H.requestOptions).then(f).catch((d) => {
+ b.loadData({}), k("error", d);
+ }) : b.loadData({});
+ }), {
+ wrapperRef: e,
+ rootRef: x
+ };
+ }
+}), I1 = {
+ class: "vue-office-excel",
+ ref: "wrapperRef"
+}, D1 = {
+ class: "vue-office-excel-main",
+ ref: "rootRef"
+};
+function N1(H, k, e, x, _, u) {
+ return dm(), pm("div", I1, [
+ ym("div", D1, null, 512)
+ ], 512);
+}
+const lf = /* @__PURE__ */ A1(M1, [["render", N1]]);
+lf.install = function(H) {
+ H.component(lf.name, lf);
+};
+export {
+ lf as default
+};
diff --git a/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js b/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js
new file mode 100644
index 00000000..5a0de1f7
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js
@@ -0,0 +1,160 @@
+// node_modules/@vue/devtools-api/lib/esm/env.js
+function getDevtoolsGlobalHook() {
+ return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
+}
+function getTarget() {
+ return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
+}
+var isProxyAvailable = typeof Proxy === "function";
+
+// node_modules/@vue/devtools-api/lib/esm/const.js
+var HOOK_SETUP = "devtools-plugin:setup";
+var HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
+
+// node_modules/@vue/devtools-api/lib/esm/time.js
+var supported;
+var perf;
+function isPerformanceSupported() {
+ var _a;
+ if (supported !== void 0) {
+ return supported;
+ }
+ if (typeof window !== "undefined" && window.performance) {
+ supported = true;
+ perf = window.performance;
+ } else if (typeof global !== "undefined" && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
+ supported = true;
+ perf = global.perf_hooks.performance;
+ } else {
+ supported = false;
+ }
+ return supported;
+}
+function now() {
+ return isPerformanceSupported() ? perf.now() : Date.now();
+}
+
+// node_modules/@vue/devtools-api/lib/esm/proxy.js
+var ApiProxy = class {
+ constructor(plugin, hook) {
+ this.target = null;
+ this.targetQueue = [];
+ this.onQueue = [];
+ this.plugin = plugin;
+ this.hook = hook;
+ const defaultSettings = {};
+ if (plugin.settings) {
+ for (const id in plugin.settings) {
+ const item = plugin.settings[id];
+ defaultSettings[id] = item.defaultValue;
+ }
+ }
+ const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
+ let currentSettings = Object.assign({}, defaultSettings);
+ try {
+ const raw = localStorage.getItem(localSettingsSaveId);
+ const data = JSON.parse(raw);
+ Object.assign(currentSettings, data);
+ } catch (e) {
+ }
+ this.fallbacks = {
+ getSettings() {
+ return currentSettings;
+ },
+ setSettings(value) {
+ try {
+ localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
+ } catch (e) {
+ }
+ currentSettings = value;
+ },
+ now() {
+ return now();
+ }
+ };
+ if (hook) {
+ hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
+ if (pluginId === this.plugin.id) {
+ this.fallbacks.setSettings(value);
+ }
+ });
+ }
+ this.proxiedOn = new Proxy({}, {
+ get: (_target, prop) => {
+ if (this.target) {
+ return this.target.on[prop];
+ } else {
+ return (...args) => {
+ this.onQueue.push({
+ method: prop,
+ args
+ });
+ };
+ }
+ }
+ });
+ this.proxiedTarget = new Proxy({}, {
+ get: (_target, prop) => {
+ if (this.target) {
+ return this.target[prop];
+ } else if (prop === "on") {
+ return this.proxiedOn;
+ } else if (Object.keys(this.fallbacks).includes(prop)) {
+ return (...args) => {
+ this.targetQueue.push({
+ method: prop,
+ args,
+ resolve: () => {
+ }
+ });
+ return this.fallbacks[prop](...args);
+ };
+ } else {
+ return (...args) => {
+ return new Promise((resolve) => {
+ this.targetQueue.push({
+ method: prop,
+ args,
+ resolve
+ });
+ });
+ };
+ }
+ }
+ });
+ }
+ async setRealTarget(target) {
+ this.target = target;
+ for (const item of this.onQueue) {
+ this.target.on[item.method](...item.args);
+ }
+ for (const item of this.targetQueue) {
+ item.resolve(await this.target[item.method](...item.args));
+ }
+ }
+};
+
+// node_modules/@vue/devtools-api/lib/esm/index.js
+function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
+ const descriptor = pluginDescriptor;
+ const target = getTarget();
+ const hook = getDevtoolsGlobalHook();
+ const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy;
+ if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
+ hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
+ } else {
+ const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null;
+ const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
+ list.push({
+ pluginDescriptor: descriptor,
+ setupFn,
+ proxy
+ });
+ if (proxy)
+ setupFn(proxy.proxiedTarget);
+ }
+}
+
+export {
+ setupDevtoolsPlugin
+};
diff --git a/code/WebApp/vanilla/lib/@vueuse/core/index.mjs b/code/WebApp/vanilla/lib/@vueuse/core/index.mjs
new file mode 100644
index 00000000..57c429a9
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@vueuse/core/index.mjs
@@ -0,0 +1,7387 @@
+import { noop, makeDestructurable, toValue, isClient, tryOnScopeDispose, isIOS, tryOnMounted, computedWithControl, isObject, objectOmit, promiseTimeout, until, toRef, increaseWithUnit, objectEntries, useTimeoutFn, pausableWatch, createEventHook, timestamp, pausableFilter, watchIgnorable, debounceFilter, createFilterWrapper, bypassFilter, createSingletonPromise, toRefs, notNullish, containsProp, hasOwn, throttleFilter, useDebounceFn, useThrottleFn, useIntervalFn, clamp, syncRef, objectPick, tryOnUnmounted, watchWithFilter, identity, isDef } from '@vueuse/shared';
+export * from '@vueuse/shared';
+import { isRef, ref, shallowRef, watchEffect, computed, inject, isVue3, version, defineComponent, h, TransitionGroup, shallowReactive, Fragment, watch, getCurrentInstance, customRef, onUpdated, onMounted, readonly, nextTick, reactive, markRaw, getCurrentScope, isVue2, set, del, isReadonly, onBeforeUpdate } from 'vue-demi';
+
+function computedAsync(evaluationCallback, initialState, optionsOrRef) {
+ let options;
+ if (isRef(optionsOrRef)) {
+ options = {
+ evaluating: optionsOrRef
+ };
+ } else {
+ options = optionsOrRef || {};
+ }
+ const {
+ lazy = false,
+ evaluating = void 0,
+ shallow = true,
+ onError = noop
+ } = options;
+ const started = ref(!lazy);
+ const current = shallow ? shallowRef(initialState) : ref(initialState);
+ let counter = 0;
+ watchEffect(async (onInvalidate) => {
+ if (!started.value)
+ return;
+ counter++;
+ const counterAtBeginning = counter;
+ let hasFinished = false;
+ if (evaluating) {
+ Promise.resolve().then(() => {
+ evaluating.value = true;
+ });
+ }
+ try {
+ const result = await evaluationCallback((cancelCallback) => {
+ onInvalidate(() => {
+ if (evaluating)
+ evaluating.value = false;
+ if (!hasFinished)
+ cancelCallback();
+ });
+ });
+ if (counterAtBeginning === counter)
+ current.value = result;
+ } catch (e) {
+ onError(e);
+ } finally {
+ if (evaluating && counterAtBeginning === counter)
+ evaluating.value = false;
+ hasFinished = true;
+ }
+ });
+ if (lazy) {
+ return computed(() => {
+ started.value = true;
+ return current.value;
+ });
+ } else {
+ return current;
+ }
+}
+
+function computedInject(key, options, defaultSource, treatDefaultAsFactory) {
+ let source = inject(key);
+ if (defaultSource)
+ source = inject(key, defaultSource);
+ if (treatDefaultAsFactory)
+ source = inject(key, defaultSource, treatDefaultAsFactory);
+ if (typeof options === "function") {
+ return computed((ctx) => options(source, ctx));
+ } else {
+ return computed({
+ get: (ctx) => options.get(source, ctx),
+ set: options.set
+ });
+ }
+}
+
+var __defProp$p = Object.defineProperty;
+var __defProps$c = Object.defineProperties;
+var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
+var __hasOwnProp$s = Object.prototype.hasOwnProperty;
+var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$p = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$s.call(b, prop))
+ __defNormalProp$p(a, prop, b[prop]);
+ if (__getOwnPropSymbols$s)
+ for (var prop of __getOwnPropSymbols$s(b)) {
+ if (__propIsEnum$s.call(b, prop))
+ __defNormalProp$p(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
+function createReusableTemplate() {
+ if (!isVue3 && !version.startsWith("2.7.")) {
+ if (process.env.NODE_ENV !== "production")
+ throw new Error("[VueUse] createReusableTemplate only works in Vue 2.7 or above.");
+ return;
+ }
+ const render = shallowRef();
+ const define = /* #__PURE__ */ defineComponent({
+ setup(_, { slots }) {
+ return () => {
+ render.value = slots.default;
+ };
+ }
+ });
+ const reuse = /* #__PURE__ */ defineComponent({
+ inheritAttrs: false,
+ setup(_, { attrs, slots }) {
+ return () => {
+ var _a;
+ if (!render.value && process.env.NODE_ENV !== "production")
+ throw new Error("[VueUse] Failed to find the definition of reusable template");
+ return (_a = render.value) == null ? void 0 : _a.call(render, __spreadProps$c(__spreadValues$p({}, attrs), { $slots: slots }));
+ };
+ }
+ });
+ return makeDestructurable(
+ { define, reuse },
+ [define, reuse]
+ );
+}
+
+function createTemplatePromise(options = {}) {
+ if (!isVue3) {
+ if (process.env.NODE_ENV !== "production")
+ throw new Error("[VueUse] createTemplatePromise only works in Vue 3 or above.");
+ return;
+ }
+ let index = 0;
+ const instances = ref([]);
+ function create(...args) {
+ const props = shallowReactive({
+ key: index++,
+ args,
+ promise: void 0,
+ resolve: () => {
+ },
+ reject: () => {
+ },
+ isResolving: false,
+ options
+ });
+ instances.value.push(props);
+ props.promise = new Promise((_resolve, _reject) => {
+ props.resolve = (v) => {
+ props.isResolving = true;
+ return _resolve(v);
+ };
+ props.reject = _reject;
+ }).finally(() => {
+ props.promise = void 0;
+ const index2 = instances.value.indexOf(props);
+ if (index2 !== -1)
+ instances.value.splice(index2, 1);
+ });
+ return props.promise;
+ }
+ function start(...args) {
+ if (options.singleton && instances.value.length > 0)
+ return instances.value[0].promise;
+ return create(...args);
+ }
+ const component = /* #__PURE__ */ defineComponent((_, { slots }) => {
+ const renderList = () => instances.value.map((props) => {
+ var _a;
+ return h(Fragment, { key: props.key }, (_a = slots.default) == null ? void 0 : _a.call(slots, props));
+ });
+ if (options.transition)
+ return () => h(TransitionGroup, options.transition, renderList);
+ return renderList;
+ });
+ component.start = start;
+ return component;
+}
+
+function createUnrefFn(fn) {
+ return function(...args) {
+ return fn.apply(this, args.map((i) => toValue(i)));
+ };
+}
+
+function unrefElement(elRef) {
+ var _a;
+ const plain = toValue(elRef);
+ return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
+}
+
+const defaultWindow = isClient ? window : void 0;
+const defaultDocument = isClient ? window.document : void 0;
+const defaultNavigator = isClient ? window.navigator : void 0;
+const defaultLocation = isClient ? window.location : void 0;
+
+function useEventListener(...args) {
+ let target;
+ let events;
+ let listeners;
+ let options;
+ if (typeof args[0] === "string" || Array.isArray(args[0])) {
+ [events, listeners, options] = args;
+ target = defaultWindow;
+ } else {
+ [target, events, listeners, options] = args;
+ }
+ if (!target)
+ return noop;
+ if (!Array.isArray(events))
+ events = [events];
+ if (!Array.isArray(listeners))
+ listeners = [listeners];
+ const cleanups = [];
+ const cleanup = () => {
+ cleanups.forEach((fn) => fn());
+ cleanups.length = 0;
+ };
+ const register = (el, event, listener, options2) => {
+ el.addEventListener(event, listener, options2);
+ return () => el.removeEventListener(event, listener, options2);
+ };
+ const stopWatch = watch(
+ () => [unrefElement(target), toValue(options)],
+ ([el, options2]) => {
+ cleanup();
+ if (!el)
+ return;
+ cleanups.push(
+ ...events.flatMap((event) => {
+ return listeners.map((listener) => register(el, event, listener, options2));
+ })
+ );
+ },
+ { immediate: true, flush: "post" }
+ );
+ const stop = () => {
+ stopWatch();
+ cleanup();
+ };
+ tryOnScopeDispose(stop);
+ return stop;
+}
+
+let _iOSWorkaround = false;
+function onClickOutside(target, handler, options = {}) {
+ const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
+ if (!window)
+ return;
+ if (isIOS && !_iOSWorkaround) {
+ _iOSWorkaround = true;
+ Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop));
+ }
+ let shouldListen = true;
+ const shouldIgnore = (event) => {
+ return ignore.some((target2) => {
+ if (typeof target2 === "string") {
+ return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
+ } else {
+ const el = unrefElement(target2);
+ return el && (event.target === el || event.composedPath().includes(el));
+ }
+ });
+ };
+ const listener = (event) => {
+ const el = unrefElement(target);
+ if (!el || el === event.target || event.composedPath().includes(el))
+ return;
+ if (event.detail === 0)
+ shouldListen = !shouldIgnore(event);
+ if (!shouldListen) {
+ shouldListen = true;
+ return;
+ }
+ handler(event);
+ };
+ const cleanup = [
+ useEventListener(window, "click", listener, { passive: true, capture }),
+ useEventListener(window, "pointerdown", (e) => {
+ const el = unrefElement(target);
+ if (el)
+ shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
+ }, { passive: true }),
+ detectIframe && useEventListener(window, "blur", (event) => {
+ var _a;
+ const el = unrefElement(target);
+ if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
+ handler(event);
+ })
+ ].filter(Boolean);
+ const stop = () => cleanup.forEach((fn) => fn());
+ return stop;
+}
+
+var __defProp$o = Object.defineProperty;
+var __defProps$b = Object.defineProperties;
+var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
+var __hasOwnProp$r = Object.prototype.hasOwnProperty;
+var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$o = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$r.call(b, prop))
+ __defNormalProp$o(a, prop, b[prop]);
+ if (__getOwnPropSymbols$r)
+ for (var prop of __getOwnPropSymbols$r(b)) {
+ if (__propIsEnum$r.call(b, prop))
+ __defNormalProp$o(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
+function createKeyPredicate(keyFilter) {
+ if (typeof keyFilter === "function")
+ return keyFilter;
+ else if (typeof keyFilter === "string")
+ return (event) => event.key === keyFilter;
+ else if (Array.isArray(keyFilter))
+ return (event) => keyFilter.includes(event.key);
+ return () => true;
+}
+function onKeyStroke(...args) {
+ let key;
+ let handler;
+ let options = {};
+ if (args.length === 3) {
+ key = args[0];
+ handler = args[1];
+ options = args[2];
+ } else if (args.length === 2) {
+ if (typeof args[1] === "object") {
+ key = true;
+ handler = args[0];
+ options = args[1];
+ } else {
+ key = args[0];
+ handler = args[1];
+ }
+ } else {
+ key = true;
+ handler = args[0];
+ }
+ const {
+ target = defaultWindow,
+ eventName = "keydown",
+ passive = false,
+ dedupe = false
+ } = options;
+ const predicate = createKeyPredicate(key);
+ const listener = (e) => {
+ if (e.repeat && toValue(dedupe))
+ return;
+ if (predicate(e))
+ handler(e);
+ };
+ return useEventListener(target, eventName, listener, passive);
+}
+function onKeyDown(key, handler, options = {}) {
+ return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keydown" }));
+}
+function onKeyPressed(key, handler, options = {}) {
+ return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keypress" }));
+}
+function onKeyUp(key, handler, options = {}) {
+ return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keyup" }));
+}
+
+const DEFAULT_DELAY = 500;
+function onLongPress(target, handler, options) {
+ var _a, _b;
+ const elementRef = computed(() => unrefElement(target));
+ let timeout;
+ function clear() {
+ if (timeout) {
+ clearTimeout(timeout);
+ timeout = void 0;
+ }
+ }
+ function onDown(ev) {
+ var _a2, _b2, _c, _d;
+ if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value)
+ return;
+ clear();
+ if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent)
+ ev.preventDefault();
+ if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop)
+ ev.stopPropagation();
+ timeout = setTimeout(
+ () => handler(ev),
+ (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY
+ );
+ }
+ const listenerOptions = {
+ capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture,
+ once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once
+ };
+ useEventListener(elementRef, "pointerdown", onDown, listenerOptions);
+ useEventListener(elementRef, "pointerup", clear, listenerOptions);
+ useEventListener(elementRef, "pointerleave", clear, listenerOptions);
+}
+
+function isFocusedElementEditable() {
+ const { activeElement, body } = document;
+ if (!activeElement)
+ return false;
+ if (activeElement === body)
+ return false;
+ switch (activeElement.tagName) {
+ case "INPUT":
+ case "TEXTAREA":
+ return true;
+ }
+ return activeElement.hasAttribute("contenteditable");
+}
+function isTypedCharValid({
+ keyCode,
+ metaKey,
+ ctrlKey,
+ altKey
+}) {
+ if (metaKey || ctrlKey || altKey)
+ return false;
+ if (keyCode >= 48 && keyCode <= 57)
+ return true;
+ if (keyCode >= 65 && keyCode <= 90)
+ return true;
+ if (keyCode >= 97 && keyCode <= 122)
+ return true;
+ return false;
+}
+function onStartTyping(callback, options = {}) {
+ const { document: document2 = defaultDocument } = options;
+ const keydown = (event) => {
+ !isFocusedElementEditable() && isTypedCharValid(event) && callback(event);
+ };
+ if (document2)
+ useEventListener(document2, "keydown", keydown, { passive: true });
+}
+
+function templateRef(key, initialValue = null) {
+ const instance = getCurrentInstance();
+ let _trigger = () => {
+ };
+ const element = customRef((track, trigger) => {
+ _trigger = trigger;
+ return {
+ get() {
+ var _a, _b;
+ track();
+ return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue;
+ },
+ set() {
+ }
+ };
+ });
+ tryOnMounted(_trigger);
+ onUpdated(_trigger);
+ return element;
+}
+
+function useActiveElement(options = {}) {
+ var _a;
+ const { window = defaultWindow } = options;
+ const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;
+ const activeElement = computedWithControl(
+ () => null,
+ () => document == null ? void 0 : document.activeElement
+ );
+ if (window) {
+ useEventListener(window, "blur", (event) => {
+ if (event.relatedTarget !== null)
+ return;
+ activeElement.trigger();
+ }, true);
+ useEventListener(window, "focus", activeElement.trigger, true);
+ }
+ return activeElement;
+}
+
+function useMounted() {
+ const isMounted = ref(false);
+ if (getCurrentInstance()) {
+ onMounted(() => {
+ isMounted.value = true;
+ });
+ }
+ return isMounted;
+}
+
+function useSupported(callback) {
+ const isMounted = useMounted();
+ return computed(() => {
+ isMounted.value;
+ return Boolean(callback());
+ });
+}
+
+function useRafFn(fn, options = {}) {
+ const {
+ immediate = true,
+ window = defaultWindow
+ } = options;
+ const isActive = ref(false);
+ let previousFrameTimestamp = 0;
+ let rafId = null;
+ function loop(timestamp) {
+ if (!isActive.value || !window)
+ return;
+ const delta = timestamp - previousFrameTimestamp;
+ fn({ delta, timestamp });
+ previousFrameTimestamp = timestamp;
+ rafId = window.requestAnimationFrame(loop);
+ }
+ function resume() {
+ if (!isActive.value && window) {
+ isActive.value = true;
+ rafId = window.requestAnimationFrame(loop);
+ }
+ }
+ function pause() {
+ isActive.value = false;
+ if (rafId != null && window) {
+ window.cancelAnimationFrame(rafId);
+ rafId = null;
+ }
+ }
+ if (immediate)
+ resume();
+ tryOnScopeDispose(pause);
+ return {
+ isActive: readonly(isActive),
+ pause,
+ resume
+ };
+}
+
+function useAnimate(target, keyframes, options) {
+ let config;
+ let animateOptions;
+ if (isObject(options)) {
+ config = options;
+ animateOptions = objectOmit(options, ["window", "immediate", "commitStyles", "persist", "onReady", "onError"]);
+ } else {
+ config = { duration: options };
+ animateOptions = options;
+ }
+ const {
+ window = defaultWindow,
+ immediate = true,
+ commitStyles,
+ persist,
+ playbackRate: _playbackRate = 1,
+ onReady,
+ onError = (e) => {
+ console.error(e);
+ }
+ } = config;
+ const isSupported = useSupported(() => window && HTMLElement && "animate" in HTMLElement.prototype);
+ const animate = shallowRef(void 0);
+ const store = shallowReactive({
+ startTime: null,
+ currentTime: null,
+ timeline: null,
+ playbackRate: _playbackRate,
+ pending: false,
+ playState: immediate ? "idle" : "paused",
+ replaceState: "active"
+ });
+ const pending = computed(() => store.pending);
+ const playState = computed(() => store.playState);
+ const replaceState = computed(() => store.replaceState);
+ const startTime = computed({
+ get() {
+ return store.startTime;
+ },
+ set(value) {
+ store.startTime = value;
+ if (animate.value)
+ animate.value.startTime = value;
+ }
+ });
+ const currentTime = computed({
+ get() {
+ return store.currentTime;
+ },
+ set(value) {
+ store.currentTime = value;
+ if (animate.value) {
+ animate.value.currentTime = value;
+ syncResume();
+ }
+ }
+ });
+ const timeline = computed({
+ get() {
+ return store.timeline;
+ },
+ set(value) {
+ store.timeline = value;
+ if (animate.value)
+ animate.value.timeline = value;
+ }
+ });
+ const playbackRate = computed({
+ get() {
+ return store.playbackRate;
+ },
+ set(value) {
+ store.playbackRate = value;
+ if (animate.value)
+ animate.value.playbackRate = value;
+ }
+ });
+ const play = () => {
+ if (animate.value) {
+ try {
+ animate.value.play();
+ syncResume();
+ } catch (e) {
+ syncPause();
+ onError(e);
+ }
+ } else {
+ update();
+ }
+ };
+ const pause = () => {
+ var _a;
+ try {
+ (_a = animate.value) == null ? void 0 : _a.pause();
+ syncPause();
+ } catch (e) {
+ onError(e);
+ }
+ };
+ const reverse = () => {
+ var _a;
+ !animate.value && update();
+ try {
+ (_a = animate.value) == null ? void 0 : _a.reverse();
+ syncResume();
+ } catch (e) {
+ syncPause();
+ onError(e);
+ }
+ };
+ const finish = () => {
+ var _a;
+ try {
+ (_a = animate.value) == null ? void 0 : _a.finish();
+ syncPause();
+ } catch (e) {
+ onError(e);
+ }
+ };
+ const cancel = () => {
+ var _a;
+ try {
+ (_a = animate.value) == null ? void 0 : _a.cancel();
+ syncPause();
+ } catch (e) {
+ onError(e);
+ }
+ };
+ watch(() => unrefElement(target), (el) => {
+ el && update();
+ });
+ watch(() => keyframes, (value) => {
+ !animate.value && update();
+ if (!unrefElement(target) && animate.value) {
+ animate.value.effect = new KeyframeEffect(
+ unrefElement(target),
+ toValue(value),
+ animateOptions
+ );
+ }
+ }, { deep: true });
+ tryOnMounted(() => {
+ nextTick(() => update(true));
+ });
+ tryOnScopeDispose(cancel);
+ function update(init) {
+ const el = unrefElement(target);
+ if (!isSupported.value || !el)
+ return;
+ animate.value = el.animate(toValue(keyframes), animateOptions);
+ if (commitStyles)
+ animate.value.commitStyles();
+ if (persist)
+ animate.value.persist();
+ if (_playbackRate !== 1)
+ animate.value.playbackRate = _playbackRate;
+ if (init && !immediate)
+ animate.value.pause();
+ else
+ syncResume();
+ onReady == null ? void 0 : onReady(animate.value);
+ }
+ useEventListener(animate, "cancel", syncPause);
+ useEventListener(animate, "finish", syncPause);
+ useEventListener(animate, "remove", syncPause);
+ const { resume: resumeRef, pause: pauseRef } = useRafFn(() => {
+ if (!animate.value)
+ return;
+ store.pending = animate.value.pending;
+ store.playState = animate.value.playState;
+ store.replaceState = animate.value.replaceState;
+ store.startTime = animate.value.startTime;
+ store.currentTime = animate.value.currentTime;
+ store.timeline = animate.value.timeline;
+ store.playbackRate = animate.value.playbackRate;
+ }, { immediate: false });
+ function syncResume() {
+ if (isSupported.value)
+ resumeRef();
+ }
+ function syncPause() {
+ if (isSupported.value && window)
+ window.requestAnimationFrame(pauseRef);
+ }
+ return {
+ isSupported,
+ animate,
+ // actions
+ play,
+ pause,
+ reverse,
+ finish,
+ cancel,
+ // state
+ pending,
+ playState,
+ replaceState,
+ startTime,
+ currentTime,
+ timeline,
+ playbackRate
+ };
+}
+
+function useAsyncQueue(tasks, options = {}) {
+ const {
+ interrupt = true,
+ onError = noop,
+ onFinished = noop
+ } = options;
+ const promiseState = {
+ pending: "pending",
+ rejected: "rejected",
+ fulfilled: "fulfilled"
+ };
+ const initialResult = Array.from(new Array(tasks.length), () => ({ state: promiseState.pending, data: null }));
+ const result = reactive(initialResult);
+ const activeIndex = ref(-1);
+ if (!tasks || tasks.length === 0) {
+ onFinished();
+ return {
+ activeIndex,
+ result
+ };
+ }
+ function updateResult(state, res) {
+ activeIndex.value++;
+ result[activeIndex.value].data = res;
+ result[activeIndex.value].state = state;
+ }
+ tasks.reduce((prev, curr) => {
+ return prev.then((prevRes) => {
+ var _a;
+ if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) {
+ onFinished();
+ return;
+ }
+ return curr(prevRes).then((currentRes) => {
+ updateResult(promiseState.fulfilled, currentRes);
+ activeIndex.value === tasks.length - 1 && onFinished();
+ return currentRes;
+ });
+ }).catch((e) => {
+ updateResult(promiseState.rejected, e);
+ onError();
+ return e;
+ });
+ }, Promise.resolve());
+ return {
+ activeIndex,
+ result
+ };
+}
+
+var __defProp$n = Object.defineProperty;
+var __defProps$a = Object.defineProperties;
+var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
+var __hasOwnProp$q = Object.prototype.hasOwnProperty;
+var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$n = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$q.call(b, prop))
+ __defNormalProp$n(a, prop, b[prop]);
+ if (__getOwnPropSymbols$q)
+ for (var prop of __getOwnPropSymbols$q(b)) {
+ if (__propIsEnum$q.call(b, prop))
+ __defNormalProp$n(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
+function useAsyncState(promise, initialState, options) {
+ const {
+ immediate = true,
+ delay = 0,
+ onError = noop,
+ onSuccess = noop,
+ resetOnExecute = true,
+ shallow = true,
+ throwError
+ } = options != null ? options : {};
+ const state = shallow ? shallowRef(initialState) : ref(initialState);
+ const isReady = ref(false);
+ const isLoading = ref(false);
+ const error = shallowRef(void 0);
+ async function execute(delay2 = 0, ...args) {
+ if (resetOnExecute)
+ state.value = initialState;
+ error.value = void 0;
+ isReady.value = false;
+ isLoading.value = true;
+ if (delay2 > 0)
+ await promiseTimeout(delay2);
+ const _promise = typeof promise === "function" ? promise(...args) : promise;
+ try {
+ const data = await _promise;
+ state.value = data;
+ isReady.value = true;
+ onSuccess(data);
+ } catch (e) {
+ error.value = e;
+ onError(e);
+ if (throwError)
+ throw e;
+ } finally {
+ isLoading.value = false;
+ }
+ return state.value;
+ }
+ if (immediate)
+ execute(delay);
+ const shell = {
+ state,
+ isReady,
+ isLoading,
+ error,
+ execute
+ };
+ function waitUntilIsLoaded() {
+ return new Promise((resolve, reject) => {
+ until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject);
+ });
+ }
+ return __spreadProps$a(__spreadValues$n({}, shell), {
+ then(onFulfilled, onRejected) {
+ return waitUntilIsLoaded().then(onFulfilled, onRejected);
+ }
+ });
+}
+
+const defaults = {
+ array: (v) => JSON.stringify(v),
+ object: (v) => JSON.stringify(v),
+ set: (v) => JSON.stringify(Array.from(v)),
+ map: (v) => JSON.stringify(Object.fromEntries(v)),
+ null: () => ""
+};
+function getDefaultSerialization(target) {
+ if (!target)
+ return defaults.null;
+ if (target instanceof Map)
+ return defaults.map;
+ else if (target instanceof Set)
+ return defaults.set;
+ else if (Array.isArray(target))
+ return defaults.array;
+ else
+ return defaults.object;
+}
+
+function useBase64(target, options) {
+ const base64 = ref("");
+ const promise = ref();
+ function execute() {
+ if (!isClient)
+ return;
+ promise.value = new Promise((resolve, reject) => {
+ try {
+ const _target = toValue(target);
+ if (_target == null) {
+ resolve("");
+ } else if (typeof _target === "string") {
+ resolve(blobToBase64(new Blob([_target], { type: "text/plain" })));
+ } else if (_target instanceof Blob) {
+ resolve(blobToBase64(_target));
+ } else if (_target instanceof ArrayBuffer) {
+ resolve(window.btoa(String.fromCharCode(...new Uint8Array(_target))));
+ } else if (_target instanceof HTMLCanvasElement) {
+ resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));
+ } else if (_target instanceof HTMLImageElement) {
+ const img = _target.cloneNode(false);
+ img.crossOrigin = "Anonymous";
+ imgLoaded(img).then(() => {
+ const canvas = document.createElement("canvas");
+ const ctx = canvas.getContext("2d");
+ canvas.width = img.width;
+ canvas.height = img.height;
+ ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
+ resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));
+ }).catch(reject);
+ } else if (typeof _target === "object") {
+ const _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target);
+ const serialized = _serializeFn(_target);
+ return resolve(blobToBase64(new Blob([serialized], { type: "application/json" })));
+ } else {
+ reject(new Error("target is unsupported types"));
+ }
+ } catch (error) {
+ reject(error);
+ }
+ });
+ promise.value.then((res) => base64.value = res);
+ return promise.value;
+ }
+ if (isRef(target) || typeof target === "function")
+ watch(target, execute, { immediate: true });
+ else
+ execute();
+ return {
+ base64,
+ promise,
+ execute
+ };
+}
+function imgLoaded(img) {
+ return new Promise((resolve, reject) => {
+ if (!img.complete) {
+ img.onload = () => {
+ resolve();
+ };
+ img.onerror = reject;
+ } else {
+ resolve();
+ }
+ });
+}
+function blobToBase64(blob) {
+ return new Promise((resolve, reject) => {
+ const fr = new FileReader();
+ fr.onload = (e) => {
+ resolve(e.target.result);
+ };
+ fr.onerror = reject;
+ fr.readAsDataURL(blob);
+ });
+}
+
+function useBattery({ navigator = defaultNavigator } = {}) {
+ const events = ["chargingchange", "chargingtimechange", "dischargingtimechange", "levelchange"];
+ const isSupported = useSupported(() => navigator && "getBattery" in navigator);
+ const charging = ref(false);
+ const chargingTime = ref(0);
+ const dischargingTime = ref(0);
+ const level = ref(1);
+ let battery;
+ function updateBatteryInfo() {
+ charging.value = this.charging;
+ chargingTime.value = this.chargingTime || 0;
+ dischargingTime.value = this.dischargingTime || 0;
+ level.value = this.level;
+ }
+ if (isSupported.value) {
+ navigator.getBattery().then((_battery) => {
+ battery = _battery;
+ updateBatteryInfo.call(battery);
+ for (const event of events)
+ useEventListener(battery, event, updateBatteryInfo, { passive: true });
+ });
+ }
+ return {
+ isSupported,
+ charging,
+ chargingTime,
+ dischargingTime,
+ level
+ };
+}
+
+function useBluetooth(options) {
+ let {
+ acceptAllDevices = false
+ } = options || {};
+ const {
+ filters = void 0,
+ optionalServices = void 0,
+ navigator = defaultNavigator
+ } = options || {};
+ const isSupported = useSupported(() => navigator && "bluetooth" in navigator);
+ const device = shallowRef(void 0);
+ const error = shallowRef(null);
+ watch(device, () => {
+ connectToBluetoothGATTServer();
+ });
+ async function requestDevice() {
+ if (!isSupported.value)
+ return;
+ error.value = null;
+ if (filters && filters.length > 0)
+ acceptAllDevices = false;
+ try {
+ device.value = await (navigator == null ? void 0 : navigator.bluetooth.requestDevice({
+ acceptAllDevices,
+ filters,
+ optionalServices
+ }));
+ } catch (err) {
+ error.value = err;
+ }
+ }
+ const server = ref();
+ const isConnected = computed(() => {
+ var _a;
+ return ((_a = server.value) == null ? void 0 : _a.connected) || false;
+ });
+ async function connectToBluetoothGATTServer() {
+ error.value = null;
+ if (device.value && device.value.gatt) {
+ device.value.addEventListener("gattserverdisconnected", () => {
+ });
+ try {
+ server.value = await device.value.gatt.connect();
+ } catch (err) {
+ error.value = err;
+ }
+ }
+ }
+ tryOnMounted(() => {
+ var _a;
+ if (device.value)
+ (_a = device.value.gatt) == null ? void 0 : _a.connect();
+ });
+ tryOnScopeDispose(() => {
+ var _a;
+ if (device.value)
+ (_a = device.value.gatt) == null ? void 0 : _a.disconnect();
+ });
+ return {
+ isSupported,
+ isConnected,
+ // Device:
+ device,
+ requestDevice,
+ // Server:
+ server,
+ // Errors:
+ error
+ };
+}
+
+function useMediaQuery(query, options = {}) {
+ const { window = defaultWindow } = options;
+ const isSupported = useSupported(() => window && "matchMedia" in window && typeof window.matchMedia === "function");
+ let mediaQuery;
+ const matches = ref(false);
+ const cleanup = () => {
+ if (!mediaQuery)
+ return;
+ if ("removeEventListener" in mediaQuery)
+ mediaQuery.removeEventListener("change", update);
+ else
+ mediaQuery.removeListener(update);
+ };
+ const update = () => {
+ if (!isSupported.value)
+ return;
+ cleanup();
+ mediaQuery = window.matchMedia(toRef(query).value);
+ matches.value = !!(mediaQuery == null ? void 0 : mediaQuery.matches);
+ if (!mediaQuery)
+ return;
+ if ("addEventListener" in mediaQuery)
+ mediaQuery.addEventListener("change", update);
+ else
+ mediaQuery.addListener(update);
+ };
+ watchEffect(update);
+ tryOnScopeDispose(() => cleanup());
+ return matches;
+}
+
+const breakpointsTailwind = {
+ "sm": 640,
+ "md": 768,
+ "lg": 1024,
+ "xl": 1280,
+ "2xl": 1536
+};
+const breakpointsBootstrapV5 = {
+ sm: 576,
+ md: 768,
+ lg: 992,
+ xl: 1200,
+ xxl: 1400
+};
+const breakpointsVuetify = {
+ xs: 600,
+ sm: 960,
+ md: 1264,
+ lg: 1904
+};
+const breakpointsAntDesign = {
+ xs: 480,
+ sm: 576,
+ md: 768,
+ lg: 992,
+ xl: 1200,
+ xxl: 1600
+};
+const breakpointsQuasar = {
+ xs: 600,
+ sm: 1024,
+ md: 1440,
+ lg: 1920
+};
+const breakpointsSematic = {
+ mobileS: 320,
+ mobileM: 375,
+ mobileL: 425,
+ tablet: 768,
+ laptop: 1024,
+ laptopL: 1440,
+ desktop4K: 2560
+};
+const breakpointsMasterCss = {
+ "3xs": 360,
+ "2xs": 480,
+ "xs": 600,
+ "sm": 768,
+ "md": 1024,
+ "lg": 1280,
+ "xl": 1440,
+ "2xl": 1600,
+ "3xl": 1920,
+ "4xl": 2560
+};
+
+function useBreakpoints(breakpoints, options = {}) {
+ function getValue(k, delta) {
+ let v = breakpoints[k];
+ if (delta != null)
+ v = increaseWithUnit(v, delta);
+ if (typeof v === "number")
+ v = `${v}px`;
+ return v;
+ }
+ const { window = defaultWindow } = options;
+ function match(query) {
+ if (!window)
+ return false;
+ return window.matchMedia(query).matches;
+ }
+ const greaterOrEqual = (k) => {
+ return useMediaQuery(`(min-width: ${getValue(k)})`, options);
+ };
+ const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
+ Object.defineProperty(shortcuts, k, {
+ get: () => greaterOrEqual(k),
+ enumerable: true,
+ configurable: true
+ });
+ return shortcuts;
+ }, {});
+ return Object.assign(shortcutMethods, {
+ greater(k) {
+ return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options);
+ },
+ greaterOrEqual,
+ smaller(k) {
+ return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options);
+ },
+ smallerOrEqual(k) {
+ return useMediaQuery(`(max-width: ${getValue(k)})`, options);
+ },
+ between(a, b) {
+ return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);
+ },
+ isGreater(k) {
+ return match(`(min-width: ${getValue(k, 0.1)})`);
+ },
+ isGreaterOrEqual(k) {
+ return match(`(min-width: ${getValue(k)})`);
+ },
+ isSmaller(k) {
+ return match(`(max-width: ${getValue(k, -0.1)})`);
+ },
+ isSmallerOrEqual(k) {
+ return match(`(max-width: ${getValue(k)})`);
+ },
+ isInBetween(a, b) {
+ return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`);
+ },
+ current() {
+ const points = Object.keys(breakpoints).map((i) => [i, greaterOrEqual(i)]);
+ return computed(() => points.filter(([, v]) => v.value).map(([k]) => k));
+ }
+ });
+}
+
+function useBroadcastChannel(options) {
+ const {
+ name,
+ window = defaultWindow
+ } = options;
+ const isSupported = useSupported(() => window && "BroadcastChannel" in window);
+ const isClosed = ref(false);
+ const channel = ref();
+ const data = ref();
+ const error = shallowRef(null);
+ const post = (data2) => {
+ if (channel.value)
+ channel.value.postMessage(data2);
+ };
+ const close = () => {
+ if (channel.value)
+ channel.value.close();
+ isClosed.value = true;
+ };
+ if (isSupported.value) {
+ tryOnMounted(() => {
+ error.value = null;
+ channel.value = new BroadcastChannel(name);
+ channel.value.addEventListener("message", (e) => {
+ data.value = e.data;
+ }, { passive: true });
+ channel.value.addEventListener("messageerror", (e) => {
+ error.value = e;
+ }, { passive: true });
+ channel.value.addEventListener("close", () => {
+ isClosed.value = true;
+ });
+ });
+ }
+ tryOnScopeDispose(() => {
+ close();
+ });
+ return {
+ isSupported,
+ channel,
+ data,
+ post,
+ close,
+ error,
+ isClosed
+ };
+}
+
+var __defProp$m = Object.defineProperty;
+var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
+var __hasOwnProp$p = Object.prototype.hasOwnProperty;
+var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$m = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$p.call(b, prop))
+ __defNormalProp$m(a, prop, b[prop]);
+ if (__getOwnPropSymbols$p)
+ for (var prop of __getOwnPropSymbols$p(b)) {
+ if (__propIsEnum$p.call(b, prop))
+ __defNormalProp$m(a, prop, b[prop]);
+ }
+ return a;
+};
+const WRITABLE_PROPERTIES = [
+ "hash",
+ "host",
+ "hostname",
+ "href",
+ "pathname",
+ "port",
+ "protocol",
+ "search"
+];
+function useBrowserLocation({ window = defaultWindow } = {}) {
+ const refs = Object.fromEntries(
+ WRITABLE_PROPERTIES.map((key) => [key, ref()])
+ );
+ for (const [key, ref2] of objectEntries(refs)) {
+ watch(ref2, (value) => {
+ if (!(window == null ? void 0 : window.location) || window.location[key] === value)
+ return;
+ window.location[key] = value;
+ });
+ }
+ const buildState = (trigger) => {
+ var _a;
+ const { state: state2, length } = (window == null ? void 0 : window.history) || {};
+ const { origin } = (window == null ? void 0 : window.location) || {};
+ for (const key of WRITABLE_PROPERTIES)
+ refs[key].value = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a[key];
+ return reactive(__spreadValues$m({
+ trigger,
+ state: state2,
+ length,
+ origin
+ }, refs));
+ };
+ const state = ref(buildState("load"));
+ if (window) {
+ useEventListener(window, "popstate", () => state.value = buildState("popstate"), { passive: true });
+ useEventListener(window, "hashchange", () => state.value = buildState("hashchange"), { passive: true });
+ }
+ return state;
+}
+
+function useCached(refValue, comparator = (a, b) => a === b, watchOptions) {
+ const cachedValue = ref(refValue.value);
+ watch(() => refValue.value, (value) => {
+ if (!comparator(value, cachedValue.value))
+ cachedValue.value = value;
+ }, watchOptions);
+ return cachedValue;
+}
+
+function useClipboard(options = {}) {
+ const {
+ navigator = defaultNavigator,
+ read = false,
+ source,
+ copiedDuring = 1500,
+ legacy = false
+ } = options;
+ const events = ["copy", "cut"];
+ const isClipboardApiSupported = useSupported(() => navigator && "clipboard" in navigator);
+ const isSupported = computed(() => isClipboardApiSupported.value || legacy);
+ const text = ref("");
+ const copied = ref(false);
+ const timeout = useTimeoutFn(() => copied.value = false, copiedDuring);
+ function updateText() {
+ if (isClipboardApiSupported.value) {
+ navigator.clipboard.readText().then((value) => {
+ text.value = value;
+ });
+ } else {
+ text.value = legacyRead();
+ }
+ }
+ if (isSupported.value && read) {
+ for (const event of events)
+ useEventListener(event, updateText);
+ }
+ async function copy(value = toValue(source)) {
+ if (isSupported.value && value != null) {
+ if (isClipboardApiSupported.value)
+ await navigator.clipboard.writeText(value);
+ else
+ legacyCopy(value);
+ text.value = value;
+ copied.value = true;
+ timeout.start();
+ }
+ }
+ function legacyCopy(value) {
+ const ta = document.createElement("textarea");
+ ta.value = value != null ? value : "";
+ ta.style.position = "absolute";
+ ta.style.opacity = "0";
+ document.body.appendChild(ta);
+ ta.select();
+ document.execCommand("copy");
+ ta.remove();
+ }
+ function legacyRead() {
+ var _a, _b, _c;
+ return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : "";
+ }
+ return {
+ isSupported,
+ text,
+ copied,
+ copy
+ };
+}
+
+var __defProp$l = Object.defineProperty;
+var __defProps$9 = Object.defineProperties;
+var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
+var __hasOwnProp$o = Object.prototype.hasOwnProperty;
+var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$l = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$o.call(b, prop))
+ __defNormalProp$l(a, prop, b[prop]);
+ if (__getOwnPropSymbols$o)
+ for (var prop of __getOwnPropSymbols$o(b)) {
+ if (__propIsEnum$o.call(b, prop))
+ __defNormalProp$l(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
+function cloneFnJSON(source) {
+ return JSON.parse(JSON.stringify(source));
+}
+function useCloned(source, options = {}) {
+ const cloned = ref({});
+ const {
+ manual,
+ clone = cloneFnJSON,
+ // watch options
+ deep = true,
+ immediate = true
+ } = options;
+ function sync() {
+ cloned.value = clone(toValue(source));
+ }
+ if (!manual && isRef(source)) {
+ watch(source, sync, __spreadProps$9(__spreadValues$l({}, options), {
+ deep,
+ immediate
+ }));
+ } else {
+ sync();
+ }
+ return { cloned, sync };
+}
+
+const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
+const globalKey = "__vueuse_ssr_handlers__";
+const handlers = /* @__PURE__ */ getHandlers();
+function getHandlers() {
+ if (!(globalKey in _global))
+ _global[globalKey] = _global[globalKey] || {};
+ return _global[globalKey];
+}
+function getSSRHandler(key, fallback) {
+ return handlers[key] || fallback;
+}
+function setSSRHandler(key, fn) {
+ handlers[key] = fn;
+}
+
+function guessSerializerType(rawInit) {
+ return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any";
+}
+
+var __defProp$k = Object.defineProperty;
+var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
+var __hasOwnProp$n = Object.prototype.hasOwnProperty;
+var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$k = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$n.call(b, prop))
+ __defNormalProp$k(a, prop, b[prop]);
+ if (__getOwnPropSymbols$n)
+ for (var prop of __getOwnPropSymbols$n(b)) {
+ if (__propIsEnum$n.call(b, prop))
+ __defNormalProp$k(a, prop, b[prop]);
+ }
+ return a;
+};
+const StorageSerializers = {
+ boolean: {
+ read: (v) => v === "true",
+ write: (v) => String(v)
+ },
+ object: {
+ read: (v) => JSON.parse(v),
+ write: (v) => JSON.stringify(v)
+ },
+ number: {
+ read: (v) => Number.parseFloat(v),
+ write: (v) => String(v)
+ },
+ any: {
+ read: (v) => v,
+ write: (v) => String(v)
+ },
+ string: {
+ read: (v) => v,
+ write: (v) => String(v)
+ },
+ map: {
+ read: (v) => new Map(JSON.parse(v)),
+ write: (v) => JSON.stringify(Array.from(v.entries()))
+ },
+ set: {
+ read: (v) => new Set(JSON.parse(v)),
+ write: (v) => JSON.stringify(Array.from(v))
+ },
+ date: {
+ read: (v) => new Date(v),
+ write: (v) => v.toISOString()
+ }
+};
+const customStorageEventName = "vueuse-storage";
+function useStorage(key, defaults, storage, options = {}) {
+ var _a;
+ const {
+ flush = "pre",
+ deep = true,
+ listenToStorageChanges = true,
+ writeDefaults = true,
+ mergeDefaults = false,
+ shallow,
+ window = defaultWindow,
+ eventFilter,
+ onError = (e) => {
+ console.error(e);
+ }
+ } = options;
+ const data = (shallow ? shallowRef : ref)(defaults);
+ if (!storage) {
+ try {
+ storage = getSSRHandler("getDefaultStorage", () => {
+ var _a2;
+ return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;
+ })();
+ } catch (e) {
+ onError(e);
+ }
+ }
+ if (!storage)
+ return data;
+ const rawInit = toValue(defaults);
+ const type = guessSerializerType(rawInit);
+ const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];
+ const { pause: pauseWatch, resume: resumeWatch } = pausableWatch(
+ data,
+ () => write(data.value),
+ { flush, deep, eventFilter }
+ );
+ if (window && listenToStorageChanges) {
+ useEventListener(window, "storage", update);
+ useEventListener(window, customStorageEventName, updateFromCustomEvent);
+ }
+ update();
+ return data;
+ function write(v) {
+ try {
+ if (v == null) {
+ storage.removeItem(key);
+ } else {
+ const serialized = serializer.write(v);
+ const oldValue = storage.getItem(key);
+ if (oldValue !== serialized) {
+ storage.setItem(key, serialized);
+ if (window) {
+ window.dispatchEvent(new CustomEvent(customStorageEventName, {
+ detail: {
+ key,
+ oldValue,
+ newValue: serialized,
+ storageArea: storage
+ }
+ }));
+ }
+ }
+ }
+ } catch (e) {
+ onError(e);
+ }
+ }
+ function read(event) {
+ const rawValue = event ? event.newValue : storage.getItem(key);
+ if (rawValue == null) {
+ if (writeDefaults && rawInit !== null)
+ storage.setItem(key, serializer.write(rawInit));
+ return rawInit;
+ } else if (!event && mergeDefaults) {
+ const value = serializer.read(rawValue);
+ if (typeof mergeDefaults === "function")
+ return mergeDefaults(value, rawInit);
+ else if (type === "object" && !Array.isArray(value))
+ return __spreadValues$k(__spreadValues$k({}, rawInit), value);
+ return value;
+ } else if (typeof rawValue !== "string") {
+ return rawValue;
+ } else {
+ return serializer.read(rawValue);
+ }
+ }
+ function updateFromCustomEvent(event) {
+ update(event.detail);
+ }
+ function update(event) {
+ if (event && event.storageArea !== storage)
+ return;
+ if (event && event.key == null) {
+ data.value = rawInit;
+ return;
+ }
+ if (event && event.key !== key)
+ return;
+ pauseWatch();
+ try {
+ data.value = read(event);
+ } catch (e) {
+ onError(e);
+ } finally {
+ if (event)
+ nextTick(resumeWatch);
+ else
+ resumeWatch();
+ }
+ }
+}
+
+function usePreferredDark(options) {
+ return useMediaQuery("(prefers-color-scheme: dark)", options);
+}
+
+var __defProp$j = Object.defineProperty;
+var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
+var __hasOwnProp$m = Object.prototype.hasOwnProperty;
+var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$j = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$m.call(b, prop))
+ __defNormalProp$j(a, prop, b[prop]);
+ if (__getOwnPropSymbols$m)
+ for (var prop of __getOwnPropSymbols$m(b)) {
+ if (__propIsEnum$m.call(b, prop))
+ __defNormalProp$j(a, prop, b[prop]);
+ }
+ return a;
+};
+function useColorMode(options = {}) {
+ const {
+ selector = "html",
+ attribute = "class",
+ initialValue = "auto",
+ window = defaultWindow,
+ storage,
+ storageKey = "vueuse-color-scheme",
+ listenToStorageChanges = true,
+ storageRef,
+ emitAuto,
+ disableTransition = true
+ } = options;
+ const modes = __spreadValues$j({
+ auto: "",
+ light: "light",
+ dark: "dark"
+ }, options.modes || {});
+ const preferredDark = usePreferredDark({ window });
+ const system = computed(() => preferredDark.value ? "dark" : "light");
+ const store = storageRef || (storageKey == null ? toRef(initialValue) : useStorage(storageKey, initialValue, storage, { window, listenToStorageChanges }));
+ const state = computed(
+ () => store.value === "auto" ? system.value : store.value
+ );
+ const updateHTMLAttrs = getSSRHandler(
+ "updateHTMLAttrs",
+ (selector2, attribute2, value) => {
+ const el = typeof selector2 === "string" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2);
+ if (!el)
+ return;
+ let style;
+ if (disableTransition) {
+ style = window.document.createElement("style");
+ style.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"));
+ window.document.head.appendChild(style);
+ }
+ if (attribute2 === "class") {
+ const current = value.split(/\s/g);
+ Object.values(modes).flatMap((i) => (i || "").split(/\s/g)).filter(Boolean).forEach((v) => {
+ if (current.includes(v))
+ el.classList.add(v);
+ else
+ el.classList.remove(v);
+ });
+ } else {
+ el.setAttribute(attribute2, value);
+ }
+ if (disableTransition) {
+ window.getComputedStyle(style).opacity;
+ document.head.removeChild(style);
+ }
+ }
+ );
+ function defaultOnChanged(mode) {
+ var _a;
+ updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode);
+ }
+ function onChanged(mode) {
+ if (options.onChanged)
+ options.onChanged(mode, defaultOnChanged);
+ else
+ defaultOnChanged(mode);
+ }
+ watch(state, onChanged, { flush: "post", immediate: true });
+ tryOnMounted(() => onChanged(state.value));
+ const auto = computed({
+ get() {
+ return emitAuto ? store.value : state.value;
+ },
+ set(v) {
+ store.value = v;
+ }
+ });
+ try {
+ return Object.assign(auto, { store, system, state });
+ } catch (e) {
+ return auto;
+ }
+}
+
+function useConfirmDialog(revealed = ref(false)) {
+ const confirmHook = createEventHook();
+ const cancelHook = createEventHook();
+ const revealHook = createEventHook();
+ let _resolve = noop;
+ const reveal = (data) => {
+ revealHook.trigger(data);
+ revealed.value = true;
+ return new Promise((resolve) => {
+ _resolve = resolve;
+ });
+ };
+ const confirm = (data) => {
+ revealed.value = false;
+ confirmHook.trigger(data);
+ _resolve({ data, isCanceled: false });
+ };
+ const cancel = (data) => {
+ revealed.value = false;
+ cancelHook.trigger(data);
+ _resolve({ data, isCanceled: true });
+ };
+ return {
+ isRevealed: computed(() => revealed.value),
+ reveal,
+ confirm,
+ cancel,
+ onReveal: revealHook.on,
+ onConfirm: confirmHook.on,
+ onCancel: cancelHook.on
+ };
+}
+
+var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
+var __hasOwnProp$l = Object.prototype.hasOwnProperty;
+var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
+var __objRest$3 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$l)
+ for (var prop of __getOwnPropSymbols$l(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function useMutationObserver(target, callback, options = {}) {
+ const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$3(_a, ["window"]);
+ let observer;
+ const isSupported = useSupported(() => window && "MutationObserver" in window);
+ const cleanup = () => {
+ if (observer) {
+ observer.disconnect();
+ observer = void 0;
+ }
+ };
+ const stopWatch = watch(
+ () => unrefElement(target),
+ (el) => {
+ cleanup();
+ if (isSupported.value && window && el) {
+ observer = new MutationObserver(callback);
+ observer.observe(el, mutationOptions);
+ }
+ },
+ { immediate: true }
+ );
+ const stop = () => {
+ cleanup();
+ stopWatch();
+ };
+ tryOnScopeDispose(stop);
+ return {
+ isSupported,
+ stop
+ };
+}
+
+function useCssVar(prop, target, options = {}) {
+ const { window = defaultWindow, initialValue = "", observe = false } = options;
+ const variable = ref(initialValue);
+ const elRef = computed(() => {
+ var _a;
+ return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
+ });
+ function updateCssVar() {
+ var _a;
+ const key = toValue(prop);
+ const el = toValue(elRef);
+ if (el && window) {
+ const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();
+ variable.value = value || initialValue;
+ }
+ }
+ if (observe) {
+ useMutationObserver(elRef, updateCssVar, {
+ attributes: true,
+ window
+ });
+ }
+ watch(
+ [elRef, () => toValue(prop)],
+ updateCssVar,
+ { immediate: true }
+ );
+ watch(
+ variable,
+ (val) => {
+ var _a;
+ if ((_a = elRef.value) == null ? void 0 : _a.style)
+ elRef.value.style.setProperty(toValue(prop), val);
+ }
+ );
+ return variable;
+}
+
+function useCurrentElement() {
+ const vm = getCurrentInstance();
+ const currentElement = computedWithControl(
+ () => null,
+ () => vm.proxy.$el
+ );
+ onUpdated(currentElement.trigger);
+ onMounted(currentElement.trigger);
+ return currentElement;
+}
+
+function useCycleList(list, options) {
+ const state = shallowRef(getInitialValue());
+ const listRef = toRef(list);
+ const index = computed({
+ get() {
+ var _a;
+ const targetList = listRef.value;
+ let index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value);
+ if (index2 < 0)
+ index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0;
+ return index2;
+ },
+ set(v) {
+ set(v);
+ }
+ });
+ function set(i) {
+ const targetList = listRef.value;
+ const length = targetList.length;
+ const index2 = (i % length + length) % length;
+ const value = targetList[index2];
+ state.value = value;
+ return value;
+ }
+ function shift(delta = 1) {
+ return set(index.value + delta);
+ }
+ function next(n = 1) {
+ return shift(n);
+ }
+ function prev(n = 1) {
+ return shift(-n);
+ }
+ function getInitialValue() {
+ var _a, _b;
+ return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0;
+ }
+ watch(listRef, () => set(index.value));
+ return {
+ state,
+ index,
+ next,
+ prev
+ };
+}
+
+var __defProp$i = Object.defineProperty;
+var __defProps$8 = Object.defineProperties;
+var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
+var __hasOwnProp$k = Object.prototype.hasOwnProperty;
+var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$i = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$k.call(b, prop))
+ __defNormalProp$i(a, prop, b[prop]);
+ if (__getOwnPropSymbols$k)
+ for (var prop of __getOwnPropSymbols$k(b)) {
+ if (__propIsEnum$k.call(b, prop))
+ __defNormalProp$i(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
+function useDark(options = {}) {
+ const {
+ valueDark = "dark",
+ valueLight = ""
+ } = options;
+ const mode = useColorMode(__spreadProps$8(__spreadValues$i({}, options), {
+ onChanged: (mode2, defaultHandler) => {
+ var _a;
+ if (options.onChanged)
+ (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === "dark", defaultHandler, mode2);
+ else
+ defaultHandler(mode2);
+ },
+ modes: {
+ dark: valueDark,
+ light: valueLight
+ }
+ }));
+ const isDark = computed({
+ get() {
+ return mode.value === "dark";
+ },
+ set(v) {
+ const modeVal = v ? "dark" : "light";
+ if (mode.system.value === modeVal)
+ mode.value = "auto";
+ else
+ mode.value = modeVal;
+ }
+ });
+ return isDark;
+}
+
+function fnBypass(v) {
+ return v;
+}
+function fnSetSource(source, value) {
+ return source.value = value;
+}
+function defaultDump(clone) {
+ return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass;
+}
+function defaultParse(clone) {
+ return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass;
+}
+function useManualRefHistory(source, options = {}) {
+ const {
+ clone = false,
+ dump = defaultDump(clone),
+ parse = defaultParse(clone),
+ setSource = fnSetSource
+ } = options;
+ function _createHistoryRecord() {
+ return markRaw({
+ snapshot: dump(source.value),
+ timestamp: timestamp()
+ });
+ }
+ const last = ref(_createHistoryRecord());
+ const undoStack = ref([]);
+ const redoStack = ref([]);
+ const _setSource = (record) => {
+ setSource(source, parse(record.snapshot));
+ last.value = record;
+ };
+ const commit = () => {
+ undoStack.value.unshift(last.value);
+ last.value = _createHistoryRecord();
+ if (options.capacity && undoStack.value.length > options.capacity)
+ undoStack.value.splice(options.capacity, Infinity);
+ if (redoStack.value.length)
+ redoStack.value.splice(0, redoStack.value.length);
+ };
+ const clear = () => {
+ undoStack.value.splice(0, undoStack.value.length);
+ redoStack.value.splice(0, redoStack.value.length);
+ };
+ const undo = () => {
+ const state = undoStack.value.shift();
+ if (state) {
+ redoStack.value.unshift(last.value);
+ _setSource(state);
+ }
+ };
+ const redo = () => {
+ const state = redoStack.value.shift();
+ if (state) {
+ undoStack.value.unshift(last.value);
+ _setSource(state);
+ }
+ };
+ const reset = () => {
+ _setSource(last.value);
+ };
+ const history = computed(() => [last.value, ...undoStack.value]);
+ const canUndo = computed(() => undoStack.value.length > 0);
+ const canRedo = computed(() => redoStack.value.length > 0);
+ return {
+ source,
+ undoStack,
+ redoStack,
+ last,
+ history,
+ canUndo,
+ canRedo,
+ clear,
+ commit,
+ reset,
+ undo,
+ redo
+ };
+}
+
+var __defProp$h = Object.defineProperty;
+var __defProps$7 = Object.defineProperties;
+var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
+var __hasOwnProp$j = Object.prototype.hasOwnProperty;
+var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$h = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$j.call(b, prop))
+ __defNormalProp$h(a, prop, b[prop]);
+ if (__getOwnPropSymbols$j)
+ for (var prop of __getOwnPropSymbols$j(b)) {
+ if (__propIsEnum$j.call(b, prop))
+ __defNormalProp$h(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
+function useRefHistory(source, options = {}) {
+ const {
+ deep = false,
+ flush = "pre",
+ eventFilter
+ } = options;
+ const {
+ eventFilter: composedFilter,
+ pause,
+ resume: resumeTracking,
+ isActive: isTracking
+ } = pausableFilter(eventFilter);
+ const {
+ ignoreUpdates,
+ ignorePrevAsyncUpdates,
+ stop
+ } = watchIgnorable(
+ source,
+ commit,
+ { deep, flush, eventFilter: composedFilter }
+ );
+ function setSource(source2, value) {
+ ignorePrevAsyncUpdates();
+ ignoreUpdates(() => {
+ source2.value = value;
+ });
+ }
+ const manualHistory = useManualRefHistory(source, __spreadProps$7(__spreadValues$h({}, options), { clone: options.clone || deep, setSource }));
+ const { clear, commit: manualCommit } = manualHistory;
+ function commit() {
+ ignorePrevAsyncUpdates();
+ manualCommit();
+ }
+ function resume(commitNow) {
+ resumeTracking();
+ if (commitNow)
+ commit();
+ }
+ function batch(fn) {
+ let canceled = false;
+ const cancel = () => canceled = true;
+ ignoreUpdates(() => {
+ fn(cancel);
+ });
+ if (!canceled)
+ commit();
+ }
+ function dispose() {
+ stop();
+ clear();
+ }
+ return __spreadProps$7(__spreadValues$h({}, manualHistory), {
+ isTracking,
+ pause,
+ resume,
+ commit,
+ batch,
+ dispose
+ });
+}
+
+var __defProp$g = Object.defineProperty;
+var __defProps$6 = Object.defineProperties;
+var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
+var __hasOwnProp$i = Object.prototype.hasOwnProperty;
+var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$g = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$i.call(b, prop))
+ __defNormalProp$g(a, prop, b[prop]);
+ if (__getOwnPropSymbols$i)
+ for (var prop of __getOwnPropSymbols$i(b)) {
+ if (__propIsEnum$i.call(b, prop))
+ __defNormalProp$g(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
+function useDebouncedRefHistory(source, options = {}) {
+ const filter = options.debounce ? debounceFilter(options.debounce) : void 0;
+ const history = useRefHistory(source, __spreadProps$6(__spreadValues$g({}, options), { eventFilter: filter }));
+ return __spreadValues$g({}, history);
+}
+
+function useDeviceMotion(options = {}) {
+ const {
+ window = defaultWindow,
+ eventFilter = bypassFilter
+ } = options;
+ const acceleration = ref({ x: null, y: null, z: null });
+ const rotationRate = ref({ alpha: null, beta: null, gamma: null });
+ const interval = ref(0);
+ const accelerationIncludingGravity = ref({
+ x: null,
+ y: null,
+ z: null
+ });
+ if (window) {
+ const onDeviceMotion = createFilterWrapper(
+ eventFilter,
+ (event) => {
+ acceleration.value = event.acceleration;
+ accelerationIncludingGravity.value = event.accelerationIncludingGravity;
+ rotationRate.value = event.rotationRate;
+ interval.value = event.interval;
+ }
+ );
+ useEventListener(window, "devicemotion", onDeviceMotion);
+ }
+ return {
+ acceleration,
+ accelerationIncludingGravity,
+ rotationRate,
+ interval
+ };
+}
+
+function useDeviceOrientation(options = {}) {
+ const { window = defaultWindow } = options;
+ const isSupported = useSupported(() => window && "DeviceOrientationEvent" in window);
+ const isAbsolute = ref(false);
+ const alpha = ref(null);
+ const beta = ref(null);
+ const gamma = ref(null);
+ if (window && isSupported.value) {
+ useEventListener(window, "deviceorientation", (event) => {
+ isAbsolute.value = event.absolute;
+ alpha.value = event.alpha;
+ beta.value = event.beta;
+ gamma.value = event.gamma;
+ });
+ }
+ return {
+ isSupported,
+ isAbsolute,
+ alpha,
+ beta,
+ gamma
+ };
+}
+
+function useDevicePixelRatio({
+ window = defaultWindow
+} = {}) {
+ const pixelRatio = ref(1);
+ if (window) {
+ let observe = function() {
+ pixelRatio.value = window.devicePixelRatio;
+ cleanup();
+ media = window.matchMedia(`(resolution: ${pixelRatio.value}dppx)`);
+ media.addEventListener("change", observe, { once: true });
+ }, cleanup = function() {
+ media == null ? void 0 : media.removeEventListener("change", observe);
+ };
+ let media;
+ observe();
+ tryOnScopeDispose(cleanup);
+ }
+ return { pixelRatio };
+}
+
+function usePermission(permissionDesc, options = {}) {
+ const {
+ controls = false,
+ navigator = defaultNavigator
+ } = options;
+ const isSupported = useSupported(() => navigator && "permissions" in navigator);
+ let permissionStatus;
+ const desc = typeof permissionDesc === "string" ? { name: permissionDesc } : permissionDesc;
+ const state = ref();
+ const onChange = () => {
+ if (permissionStatus)
+ state.value = permissionStatus.state;
+ };
+ const query = createSingletonPromise(async () => {
+ if (!isSupported.value)
+ return;
+ if (!permissionStatus) {
+ try {
+ permissionStatus = await navigator.permissions.query(desc);
+ useEventListener(permissionStatus, "change", onChange);
+ onChange();
+ } catch (e) {
+ state.value = "prompt";
+ }
+ }
+ return permissionStatus;
+ });
+ query();
+ if (controls) {
+ return {
+ state,
+ isSupported,
+ query
+ };
+ } else {
+ return state;
+ }
+}
+
+function useDevicesList(options = {}) {
+ const {
+ navigator = defaultNavigator,
+ requestPermissions = false,
+ constraints = { audio: true, video: true },
+ onUpdated
+ } = options;
+ const devices = ref([]);
+ const videoInputs = computed(() => devices.value.filter((i) => i.kind === "videoinput"));
+ const audioInputs = computed(() => devices.value.filter((i) => i.kind === "audioinput"));
+ const audioOutputs = computed(() => devices.value.filter((i) => i.kind === "audiooutput"));
+ const isSupported = useSupported(() => navigator && navigator.mediaDevices && navigator.mediaDevices.enumerateDevices);
+ const permissionGranted = ref(false);
+ let stream;
+ async function update() {
+ if (!isSupported.value)
+ return;
+ devices.value = await navigator.mediaDevices.enumerateDevices();
+ onUpdated == null ? void 0 : onUpdated(devices.value);
+ if (stream) {
+ stream.getTracks().forEach((t) => t.stop());
+ stream = null;
+ }
+ }
+ async function ensurePermissions() {
+ if (!isSupported.value)
+ return false;
+ if (permissionGranted.value)
+ return true;
+ const { state, query } = usePermission("camera", { controls: true });
+ await query();
+ if (state.value !== "granted") {
+ stream = await navigator.mediaDevices.getUserMedia(constraints);
+ update();
+ permissionGranted.value = true;
+ } else {
+ permissionGranted.value = true;
+ }
+ return permissionGranted.value;
+ }
+ if (isSupported.value) {
+ if (requestPermissions)
+ ensurePermissions();
+ useEventListener(navigator.mediaDevices, "devicechange", update);
+ update();
+ }
+ return {
+ devices,
+ ensurePermissions,
+ permissionGranted,
+ videoInputs,
+ audioInputs,
+ audioOutputs,
+ isSupported
+ };
+}
+
+function useDisplayMedia(options = {}) {
+ var _a;
+ const enabled = ref((_a = options.enabled) != null ? _a : false);
+ const video = options.video;
+ const audio = options.audio;
+ const { navigator = defaultNavigator } = options;
+ const isSupported = useSupported(() => {
+ var _a2;
+ return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getDisplayMedia;
+ });
+ const constraint = { audio, video };
+ const stream = shallowRef();
+ async function _start() {
+ if (!isSupported.value || stream.value)
+ return;
+ stream.value = await navigator.mediaDevices.getDisplayMedia(constraint);
+ return stream.value;
+ }
+ async function _stop() {
+ var _a2;
+ (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());
+ stream.value = void 0;
+ }
+ function stop() {
+ _stop();
+ enabled.value = false;
+ }
+ async function start() {
+ await _start();
+ if (stream.value)
+ enabled.value = true;
+ return stream.value;
+ }
+ watch(
+ enabled,
+ (v) => {
+ if (v)
+ _start();
+ else
+ _stop();
+ },
+ { immediate: true }
+ );
+ return {
+ isSupported,
+ stream,
+ start,
+ stop,
+ enabled
+ };
+}
+
+function useDocumentVisibility({ document = defaultDocument } = {}) {
+ if (!document)
+ return ref("visible");
+ const visibility = ref(document.visibilityState);
+ useEventListener(document, "visibilitychange", () => {
+ visibility.value = document.visibilityState;
+ });
+ return visibility;
+}
+
+var __defProp$f = Object.defineProperty;
+var __defProps$5 = Object.defineProperties;
+var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
+var __hasOwnProp$h = Object.prototype.hasOwnProperty;
+var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$f = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$h.call(b, prop))
+ __defNormalProp$f(a, prop, b[prop]);
+ if (__getOwnPropSymbols$h)
+ for (var prop of __getOwnPropSymbols$h(b)) {
+ if (__propIsEnum$h.call(b, prop))
+ __defNormalProp$f(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
+function useDraggable(target, options = {}) {
+ var _a, _b;
+ const {
+ pointerTypes,
+ preventDefault,
+ stopPropagation,
+ exact,
+ onMove,
+ onEnd,
+ onStart,
+ initialValue,
+ axis = "both",
+ draggingElement = defaultWindow,
+ handle: draggingHandle = target
+ } = options;
+ const position = ref(
+ (_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 }
+ );
+ const pressedDelta = ref();
+ const filterEvent = (e) => {
+ if (pointerTypes)
+ return pointerTypes.includes(e.pointerType);
+ return true;
+ };
+ const handleEvent = (e) => {
+ if (toValue(preventDefault))
+ e.preventDefault();
+ if (toValue(stopPropagation))
+ e.stopPropagation();
+ };
+ const start = (e) => {
+ if (!filterEvent(e))
+ return;
+ if (toValue(exact) && e.target !== toValue(target))
+ return;
+ const rect = toValue(target).getBoundingClientRect();
+ const pos = {
+ x: e.clientX - rect.left,
+ y: e.clientY - rect.top
+ };
+ if ((onStart == null ? void 0 : onStart(pos, e)) === false)
+ return;
+ pressedDelta.value = pos;
+ handleEvent(e);
+ };
+ const move = (e) => {
+ if (!filterEvent(e))
+ return;
+ if (!pressedDelta.value)
+ return;
+ let { x, y } = position.value;
+ if (axis === "x" || axis === "both")
+ x = e.clientX - pressedDelta.value.x;
+ if (axis === "y" || axis === "both")
+ y = e.clientY - pressedDelta.value.y;
+ position.value = {
+ x,
+ y
+ };
+ onMove == null ? void 0 : onMove(position.value, e);
+ handleEvent(e);
+ };
+ const end = (e) => {
+ if (!filterEvent(e))
+ return;
+ if (!pressedDelta.value)
+ return;
+ pressedDelta.value = void 0;
+ onEnd == null ? void 0 : onEnd(position.value, e);
+ handleEvent(e);
+ };
+ if (isClient) {
+ const config = { capture: (_b = options.capture) != null ? _b : true };
+ useEventListener(draggingHandle, "pointerdown", start, config);
+ useEventListener(draggingElement, "pointermove", move, config);
+ useEventListener(draggingElement, "pointerup", end, config);
+ }
+ return __spreadProps$5(__spreadValues$f({}, toRefs(position)), {
+ position,
+ isDragging: computed(() => !!pressedDelta.value),
+ style: computed(
+ () => `left:${position.value.x}px;top:${position.value.y}px;`
+ )
+ });
+}
+
+function useDropZone(target, onDrop) {
+ const isOverDropZone = ref(false);
+ let counter = 0;
+ if (isClient) {
+ useEventListener(target, "dragenter", (event) => {
+ event.preventDefault();
+ counter += 1;
+ isOverDropZone.value = true;
+ });
+ useEventListener(target, "dragover", (event) => {
+ event.preventDefault();
+ });
+ useEventListener(target, "dragleave", (event) => {
+ event.preventDefault();
+ counter -= 1;
+ if (counter === 0)
+ isOverDropZone.value = false;
+ });
+ useEventListener(target, "drop", (event) => {
+ var _a, _b;
+ event.preventDefault();
+ counter = 0;
+ isOverDropZone.value = false;
+ const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);
+ onDrop == null ? void 0 : onDrop(files.length === 0 ? null : files);
+ });
+ }
+ return {
+ isOverDropZone
+ };
+}
+
+var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
+var __hasOwnProp$g = Object.prototype.hasOwnProperty;
+var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
+var __objRest$2 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$g)
+ for (var prop of __getOwnPropSymbols$g(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function useResizeObserver(target, callback, options = {}) {
+ const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
+ let observer;
+ const isSupported = useSupported(() => window && "ResizeObserver" in window);
+ const cleanup = () => {
+ if (observer) {
+ observer.disconnect();
+ observer = void 0;
+ }
+ };
+ const targets = computed(
+ () => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]
+ );
+ const stopWatch = watch(
+ targets,
+ (els) => {
+ cleanup();
+ if (isSupported.value && window) {
+ observer = new ResizeObserver(callback);
+ for (const _el of els)
+ _el && observer.observe(_el, observerOptions);
+ }
+ },
+ { immediate: true, flush: "post", deep: true }
+ );
+ const stop = () => {
+ cleanup();
+ stopWatch();
+ };
+ tryOnScopeDispose(stop);
+ return {
+ isSupported,
+ stop
+ };
+}
+
+function useElementBounding(target, options = {}) {
+ const {
+ reset = true,
+ windowResize = true,
+ windowScroll = true,
+ immediate = true
+ } = options;
+ const height = ref(0);
+ const bottom = ref(0);
+ const left = ref(0);
+ const right = ref(0);
+ const top = ref(0);
+ const width = ref(0);
+ const x = ref(0);
+ const y = ref(0);
+ function update() {
+ const el = unrefElement(target);
+ if (!el) {
+ if (reset) {
+ height.value = 0;
+ bottom.value = 0;
+ left.value = 0;
+ right.value = 0;
+ top.value = 0;
+ width.value = 0;
+ x.value = 0;
+ y.value = 0;
+ }
+ return;
+ }
+ const rect = el.getBoundingClientRect();
+ height.value = rect.height;
+ bottom.value = rect.bottom;
+ left.value = rect.left;
+ right.value = rect.right;
+ top.value = rect.top;
+ width.value = rect.width;
+ x.value = rect.x;
+ y.value = rect.y;
+ }
+ useResizeObserver(target, update);
+ watch(() => unrefElement(target), (ele) => !ele && update());
+ if (windowScroll)
+ useEventListener("scroll", update, { capture: true, passive: true });
+ if (windowResize)
+ useEventListener("resize", update, { passive: true });
+ tryOnMounted(() => {
+ if (immediate)
+ update();
+ });
+ return {
+ height,
+ bottom,
+ left,
+ right,
+ top,
+ width,
+ x,
+ y,
+ update
+ };
+}
+
+var __defProp$e = Object.defineProperty;
+var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
+var __hasOwnProp$f = Object.prototype.hasOwnProperty;
+var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$e = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$f.call(b, prop))
+ __defNormalProp$e(a, prop, b[prop]);
+ if (__getOwnPropSymbols$f)
+ for (var prop of __getOwnPropSymbols$f(b)) {
+ if (__propIsEnum$f.call(b, prop))
+ __defNormalProp$e(a, prop, b[prop]);
+ }
+ return a;
+};
+function useElementByPoint(options) {
+ const element = ref(null);
+ const { x, y, document = defaultDocument } = options;
+ const controls = useRafFn(() => {
+ element.value = (document == null ? void 0 : document.elementFromPoint(toValue(x), toValue(y))) || null;
+ });
+ return __spreadValues$e({
+ element
+ }, controls);
+}
+
+function useElementHover(el, options = {}) {
+ const {
+ delayEnter = 0,
+ delayLeave = 0,
+ window = defaultWindow
+ } = options;
+ const isHovered = ref(false);
+ let timer;
+ const toggle = (entering) => {
+ const delay = entering ? delayEnter : delayLeave;
+ if (timer) {
+ clearTimeout(timer);
+ timer = void 0;
+ }
+ if (delay)
+ timer = setTimeout(() => isHovered.value = entering, delay);
+ else
+ isHovered.value = entering;
+ };
+ if (!window)
+ return isHovered;
+ useEventListener(el, "mouseenter", () => toggle(true), { passive: true });
+ useEventListener(el, "mouseleave", () => toggle(false), { passive: true });
+ return isHovered;
+}
+
+function useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) {
+ const { window = defaultWindow, box = "content-box" } = options;
+ const isSVG = computed(() => {
+ var _a, _b;
+ return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg");
+ });
+ const width = ref(initialSize.width);
+ const height = ref(initialSize.height);
+ useResizeObserver(
+ target,
+ ([entry]) => {
+ const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
+ if (window && isSVG.value) {
+ const $elem = unrefElement(target);
+ if ($elem) {
+ const styles = window.getComputedStyle($elem);
+ width.value = parseFloat(styles.width);
+ height.value = parseFloat(styles.height);
+ }
+ } else {
+ if (boxSize) {
+ const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];
+ width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
+ height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
+ } else {
+ width.value = entry.contentRect.width;
+ height.value = entry.contentRect.height;
+ }
+ }
+ },
+ options
+ );
+ watch(
+ () => unrefElement(target),
+ (ele) => {
+ width.value = ele ? initialSize.width : 0;
+ height.value = ele ? initialSize.height : 0;
+ }
+ );
+ return {
+ width,
+ height
+ };
+}
+
+function useIntersectionObserver(target, callback, options = {}) {
+ const {
+ root,
+ rootMargin = "0px",
+ threshold = 0.1,
+ window = defaultWindow,
+ immediate = true
+ } = options;
+ const isSupported = useSupported(() => window && "IntersectionObserver" in window);
+ const targets = computed(() => {
+ const _target = toValue(target);
+ return (Array.isArray(_target) ? _target : [_target]).map(unrefElement).filter(notNullish);
+ });
+ let cleanup = noop;
+ const isActive = ref(immediate);
+ const stopWatch = isSupported.value ? watch(
+ () => [targets.value, unrefElement(root), isActive.value],
+ ([targets2, root2]) => {
+ cleanup();
+ if (!isActive.value)
+ return;
+ if (!targets2.length)
+ return;
+ const observer = new IntersectionObserver(
+ callback,
+ {
+ root: unrefElement(root2),
+ rootMargin,
+ threshold
+ }
+ );
+ targets2.forEach((el) => el && observer.observe(el));
+ cleanup = () => {
+ observer.disconnect();
+ cleanup = noop;
+ };
+ },
+ { immediate, flush: "post" }
+ ) : noop;
+ const stop = () => {
+ cleanup();
+ stopWatch();
+ isActive.value = false;
+ };
+ tryOnScopeDispose(stop);
+ return {
+ isSupported,
+ isActive,
+ pause() {
+ cleanup();
+ isActive.value = false;
+ },
+ resume() {
+ isActive.value = true;
+ },
+ stop
+ };
+}
+
+function useElementVisibility(element, { window = defaultWindow, scrollTarget } = {}) {
+ const elementIsVisible = ref(false);
+ useIntersectionObserver(
+ element,
+ ([{ isIntersecting }]) => {
+ elementIsVisible.value = isIntersecting;
+ },
+ {
+ root: scrollTarget,
+ window
+ }
+ );
+ return elementIsVisible;
+}
+
+const events = /* @__PURE__ */ new Map();
+
+function useEventBus(key) {
+ const scope = getCurrentScope();
+ function on(listener) {
+ var _a;
+ const listeners = events.get(key) || /* @__PURE__ */ new Set();
+ listeners.add(listener);
+ events.set(key, listeners);
+ const _off = () => off(listener);
+ (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off);
+ return _off;
+ }
+ function once(listener) {
+ function _listener(...args) {
+ off(_listener);
+ listener(...args);
+ }
+ return on(_listener);
+ }
+ function off(listener) {
+ const listeners = events.get(key);
+ if (!listeners)
+ return;
+ listeners.delete(listener);
+ if (!listeners.size)
+ reset();
+ }
+ function reset() {
+ events.delete(key);
+ }
+ function emit(event, payload) {
+ var _a;
+ (_a = events.get(key)) == null ? void 0 : _a.forEach((v) => v(event, payload));
+ }
+ return { on, once, off, emit, reset };
+}
+
+function useEventSource(url, events = [], options = {}) {
+ const event = ref(null);
+ const data = ref(null);
+ const status = ref("CONNECTING");
+ const eventSource = ref(null);
+ const error = shallowRef(null);
+ const {
+ withCredentials = false
+ } = options;
+ const close = () => {
+ if (eventSource.value) {
+ eventSource.value.close();
+ eventSource.value = null;
+ status.value = "CLOSED";
+ }
+ };
+ const es = new EventSource(url, { withCredentials });
+ eventSource.value = es;
+ es.onopen = () => {
+ status.value = "OPEN";
+ error.value = null;
+ };
+ es.onerror = (e) => {
+ status.value = "CLOSED";
+ error.value = e;
+ };
+ es.onmessage = (e) => {
+ event.value = null;
+ data.value = e.data;
+ };
+ for (const event_name of events) {
+ useEventListener(es, event_name, (e) => {
+ event.value = event_name;
+ data.value = e.data || null;
+ });
+ }
+ tryOnScopeDispose(() => {
+ close();
+ });
+ return {
+ eventSource,
+ event,
+ data,
+ status,
+ error,
+ close
+ };
+}
+
+function useEyeDropper(options = {}) {
+ const { initialValue = "" } = options;
+ const isSupported = useSupported(() => typeof window !== "undefined" && "EyeDropper" in window);
+ const sRGBHex = ref(initialValue);
+ async function open(openOptions) {
+ if (!isSupported.value)
+ return;
+ const eyeDropper = new window.EyeDropper();
+ const result = await eyeDropper.open(openOptions);
+ sRGBHex.value = result.sRGBHex;
+ return result;
+ }
+ return { isSupported, sRGBHex, open };
+}
+
+function useFavicon(newIcon = null, options = {}) {
+ const {
+ baseUrl = "",
+ rel = "icon",
+ document = defaultDocument
+ } = options;
+ const favicon = toRef(newIcon);
+ const applyIcon = (icon) => {
+ document == null ? void 0 : document.head.querySelectorAll(`link[rel*="${rel}"]`).forEach((el) => el.href = `${baseUrl}${icon}`);
+ };
+ watch(
+ favicon,
+ (i, o) => {
+ if (typeof i === "string" && i !== o)
+ applyIcon(i);
+ },
+ { immediate: true }
+ );
+ return favicon;
+}
+
+var __defProp$d = Object.defineProperty;
+var __defProps$4 = Object.defineProperties;
+var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
+var __hasOwnProp$e = Object.prototype.hasOwnProperty;
+var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$d = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$e.call(b, prop))
+ __defNormalProp$d(a, prop, b[prop]);
+ if (__getOwnPropSymbols$e)
+ for (var prop of __getOwnPropSymbols$e(b)) {
+ if (__propIsEnum$e.call(b, prop))
+ __defNormalProp$d(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
+const payloadMapping = {
+ json: "application/json",
+ text: "text/plain"
+};
+function isFetchOptions(obj) {
+ return obj && containsProp(obj, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch");
+}
+function isAbsoluteURL(url) {
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
+}
+function headersToObject(headers) {
+ if (typeof Headers !== "undefined" && headers instanceof Headers)
+ return Object.fromEntries([...headers.entries()]);
+ return headers;
+}
+function combineCallbacks(combination, ...callbacks) {
+ if (combination === "overwrite") {
+ return async (ctx) => {
+ const callback = callbacks[callbacks.length - 1];
+ if (callback)
+ return __spreadValues$d(__spreadValues$d({}, ctx), await callback(ctx));
+ return ctx;
+ };
+ } else {
+ return async (ctx) => {
+ for (const callback of callbacks) {
+ if (callback)
+ ctx = __spreadValues$d(__spreadValues$d({}, ctx), await callback(ctx));
+ }
+ return ctx;
+ };
+ }
+}
+function createFetch(config = {}) {
+ const _combination = config.combination || "chain";
+ const _options = config.options || {};
+ const _fetchOptions = config.fetchOptions || {};
+ function useFactoryFetch(url, ...args) {
+ const computedUrl = computed(() => {
+ const baseUrl = toValue(config.baseUrl);
+ const targetUrl = toValue(url);
+ return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl;
+ });
+ let options = _options;
+ let fetchOptions = _fetchOptions;
+ if (args.length > 0) {
+ if (isFetchOptions(args[0])) {
+ options = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, options), args[0]), {
+ beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch),
+ afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch),
+ onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError)
+ });
+ } else {
+ fetchOptions = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, fetchOptions), args[0]), {
+ headers: __spreadValues$d(__spreadValues$d({}, headersToObject(fetchOptions.headers) || {}), headersToObject(args[0].headers) || {})
+ });
+ }
+ }
+ if (args.length > 1 && isFetchOptions(args[1])) {
+ options = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, options), args[1]), {
+ beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch),
+ afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch),
+ onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError)
+ });
+ }
+ return useFetch(computedUrl, fetchOptions, options);
+ }
+ return useFactoryFetch;
+}
+function useFetch(url, ...args) {
+ var _a;
+ const supportsAbort = typeof AbortController === "function";
+ let fetchOptions = {};
+ let options = { immediate: true, refetch: false, timeout: 0 };
+ const config = {
+ method: "GET",
+ type: "text",
+ payload: void 0
+ };
+ if (args.length > 0) {
+ if (isFetchOptions(args[0]))
+ options = __spreadValues$d(__spreadValues$d({}, options), args[0]);
+ else
+ fetchOptions = args[0];
+ }
+ if (args.length > 1) {
+ if (isFetchOptions(args[1]))
+ options = __spreadValues$d(__spreadValues$d({}, options), args[1]);
+ }
+ const {
+ fetch = (_a = defaultWindow) == null ? void 0 : _a.fetch,
+ initialData,
+ timeout
+ } = options;
+ const responseEvent = createEventHook();
+ const errorEvent = createEventHook();
+ const finallyEvent = createEventHook();
+ const isFinished = ref(false);
+ const isFetching = ref(false);
+ const aborted = ref(false);
+ const statusCode = ref(null);
+ const response = shallowRef(null);
+ const error = shallowRef(null);
+ const data = shallowRef(initialData || null);
+ const canAbort = computed(() => supportsAbort && isFetching.value);
+ let controller;
+ let timer;
+ const abort = () => {
+ if (supportsAbort) {
+ controller == null ? void 0 : controller.abort();
+ controller = new AbortController();
+ controller.signal.onabort = () => aborted.value = true;
+ fetchOptions = __spreadProps$4(__spreadValues$d({}, fetchOptions), {
+ signal: controller.signal
+ });
+ }
+ };
+ const loading = (isLoading) => {
+ isFetching.value = isLoading;
+ isFinished.value = !isLoading;
+ };
+ if (timeout)
+ timer = useTimeoutFn(abort, timeout, { immediate: false });
+ const execute = async (throwOnFailed = false) => {
+ var _a2;
+ abort();
+ loading(true);
+ error.value = null;
+ statusCode.value = null;
+ aborted.value = false;
+ const defaultFetchOptions = {
+ method: config.method,
+ headers: {}
+ };
+ if (config.payload) {
+ const headers = headersToObject(defaultFetchOptions.headers);
+ if (config.payloadType)
+ headers["Content-Type"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType;
+ const payload = toValue(config.payload);
+ defaultFetchOptions.body = config.payloadType === "json" ? JSON.stringify(payload) : payload;
+ }
+ let isCanceled = false;
+ const context = {
+ url: toValue(url),
+ options: __spreadValues$d(__spreadValues$d({}, defaultFetchOptions), fetchOptions),
+ cancel: () => {
+ isCanceled = true;
+ }
+ };
+ if (options.beforeFetch)
+ Object.assign(context, await options.beforeFetch(context));
+ if (isCanceled || !fetch) {
+ loading(false);
+ return Promise.resolve(null);
+ }
+ let responseData = null;
+ if (timer)
+ timer.start();
+ return new Promise((resolve, reject) => {
+ var _a3;
+ fetch(
+ context.url,
+ __spreadProps$4(__spreadValues$d(__spreadValues$d({}, defaultFetchOptions), context.options), {
+ headers: __spreadValues$d(__spreadValues$d({}, headersToObject(defaultFetchOptions.headers)), headersToObject((_a3 = context.options) == null ? void 0 : _a3.headers))
+ })
+ ).then(async (fetchResponse) => {
+ response.value = fetchResponse;
+ statusCode.value = fetchResponse.status;
+ responseData = await fetchResponse[config.type]();
+ if (!fetchResponse.ok) {
+ data.value = initialData || null;
+ throw new Error(fetchResponse.statusText);
+ }
+ if (options.afterFetch)
+ ({ data: responseData } = await options.afterFetch({ data: responseData, response: fetchResponse }));
+ data.value = responseData;
+ responseEvent.trigger(fetchResponse);
+ return resolve(fetchResponse);
+ }).catch(async (fetchError) => {
+ let errorData = fetchError.message || fetchError.name;
+ if (options.onFetchError)
+ ({ error: errorData } = await options.onFetchError({ data: responseData, error: fetchError, response: response.value }));
+ error.value = errorData;
+ errorEvent.trigger(fetchError);
+ if (throwOnFailed)
+ return reject(fetchError);
+ return resolve(null);
+ }).finally(() => {
+ loading(false);
+ if (timer)
+ timer.stop();
+ finallyEvent.trigger(null);
+ });
+ });
+ };
+ const refetch = toRef(options.refetch);
+ watch(
+ [
+ refetch,
+ toRef(url)
+ ],
+ ([refetch2]) => refetch2 && execute(),
+ { deep: true }
+ );
+ const shell = {
+ isFinished,
+ statusCode,
+ response,
+ error,
+ data,
+ isFetching,
+ canAbort,
+ aborted,
+ abort,
+ execute,
+ onFetchResponse: responseEvent.on,
+ onFetchError: errorEvent.on,
+ onFetchFinally: finallyEvent.on,
+ // method
+ get: setMethod("GET"),
+ put: setMethod("PUT"),
+ post: setMethod("POST"),
+ delete: setMethod("DELETE"),
+ patch: setMethod("PATCH"),
+ head: setMethod("HEAD"),
+ options: setMethod("OPTIONS"),
+ // type
+ json: setType("json"),
+ text: setType("text"),
+ blob: setType("blob"),
+ arrayBuffer: setType("arrayBuffer"),
+ formData: setType("formData")
+ };
+ function setMethod(method) {
+ return (payload, payloadType) => {
+ if (!isFetching.value) {
+ config.method = method;
+ config.payload = payload;
+ config.payloadType = payloadType;
+ if (isRef(config.payload)) {
+ watch(
+ [
+ refetch,
+ toRef(config.payload)
+ ],
+ ([refetch2]) => refetch2 && execute(),
+ { deep: true }
+ );
+ }
+ const rawPayload = toValue(config.payload);
+ if (!payloadType && rawPayload && Object.getPrototypeOf(rawPayload) === Object.prototype && !(rawPayload instanceof FormData))
+ config.payloadType = "json";
+ return __spreadProps$4(__spreadValues$d({}, shell), {
+ then(onFulfilled, onRejected) {
+ return waitUntilFinished().then(onFulfilled, onRejected);
+ }
+ });
+ }
+ return void 0;
+ };
+ }
+ function waitUntilFinished() {
+ return new Promise((resolve, reject) => {
+ until(isFinished).toBe(true).then(() => resolve(shell)).catch((error2) => reject(error2));
+ });
+ }
+ function setType(type) {
+ return () => {
+ if (!isFetching.value) {
+ config.type = type;
+ return __spreadProps$4(__spreadValues$d({}, shell), {
+ then(onFulfilled, onRejected) {
+ return waitUntilFinished().then(onFulfilled, onRejected);
+ }
+ });
+ }
+ return void 0;
+ };
+ }
+ if (options.immediate)
+ Promise.resolve().then(() => execute());
+ return __spreadProps$4(__spreadValues$d({}, shell), {
+ then(onFulfilled, onRejected) {
+ return waitUntilFinished().then(onFulfilled, onRejected);
+ }
+ });
+}
+function joinPaths(start, end) {
+ if (!start.endsWith("/") && !end.startsWith("/"))
+ return `${start}/${end}`;
+ return `${start}${end}`;
+}
+
+var __defProp$c = Object.defineProperty;
+var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
+var __hasOwnProp$d = Object.prototype.hasOwnProperty;
+var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$c = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$d.call(b, prop))
+ __defNormalProp$c(a, prop, b[prop]);
+ if (__getOwnPropSymbols$d)
+ for (var prop of __getOwnPropSymbols$d(b)) {
+ if (__propIsEnum$d.call(b, prop))
+ __defNormalProp$c(a, prop, b[prop]);
+ }
+ return a;
+};
+const DEFAULT_OPTIONS = {
+ multiple: true,
+ accept: "*"
+};
+function useFileDialog(options = {}) {
+ const {
+ document = defaultDocument
+ } = options;
+ const files = ref(null);
+ const { on: onChange, trigger } = createEventHook();
+ let input;
+ if (document) {
+ input = document.createElement("input");
+ input.type = "file";
+ input.onchange = (event) => {
+ const result = event.target;
+ files.value = result.files;
+ trigger(files.value);
+ };
+ }
+ const open = (localOptions) => {
+ if (!input)
+ return;
+ const _options = __spreadValues$c(__spreadValues$c(__spreadValues$c({}, DEFAULT_OPTIONS), options), localOptions);
+ input.multiple = _options.multiple;
+ input.accept = _options.accept;
+ if (hasOwn(_options, "capture"))
+ input.capture = _options.capture;
+ input.click();
+ };
+ const reset = () => {
+ files.value = null;
+ if (input)
+ input.value = "";
+ };
+ return {
+ files: readonly(files),
+ open,
+ reset,
+ onChange
+ };
+}
+
+var __defProp$b = Object.defineProperty;
+var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
+var __hasOwnProp$c = Object.prototype.hasOwnProperty;
+var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$b = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$c.call(b, prop))
+ __defNormalProp$b(a, prop, b[prop]);
+ if (__getOwnPropSymbols$c)
+ for (var prop of __getOwnPropSymbols$c(b)) {
+ if (__propIsEnum$c.call(b, prop))
+ __defNormalProp$b(a, prop, b[prop]);
+ }
+ return a;
+};
+function useFileSystemAccess(options = {}) {
+ const {
+ window: _window = defaultWindow,
+ dataType = "Text"
+ } = options;
+ const window = _window;
+ const isSupported = useSupported(() => window && "showSaveFilePicker" in window && "showOpenFilePicker" in window);
+ const fileHandle = ref();
+ const data = ref();
+ const file = ref();
+ const fileName = computed(() => {
+ var _a, _b;
+ return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : "";
+ });
+ const fileMIME = computed(() => {
+ var _a, _b;
+ return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : "";
+ });
+ const fileSize = computed(() => {
+ var _a, _b;
+ return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0;
+ });
+ const fileLastModified = computed(() => {
+ var _a, _b;
+ return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0;
+ });
+ async function open(_options = {}) {
+ if (!isSupported.value)
+ return;
+ const [handle] = await window.showOpenFilePicker(__spreadValues$b(__spreadValues$b({}, toValue(options)), _options));
+ fileHandle.value = handle;
+ await updateFile();
+ await updateData();
+ }
+ async function create(_options = {}) {
+ if (!isSupported.value)
+ return;
+ fileHandle.value = await window.showSaveFilePicker(__spreadValues$b(__spreadValues$b({}, options), _options));
+ data.value = void 0;
+ await updateFile();
+ await updateData();
+ }
+ async function save(_options = {}) {
+ if (!isSupported.value)
+ return;
+ if (!fileHandle.value)
+ return saveAs(_options);
+ if (data.value) {
+ const writableStream = await fileHandle.value.createWritable();
+ await writableStream.write(data.value);
+ await writableStream.close();
+ }
+ await updateFile();
+ }
+ async function saveAs(_options = {}) {
+ if (!isSupported.value)
+ return;
+ fileHandle.value = await window.showSaveFilePicker(__spreadValues$b(__spreadValues$b({}, options), _options));
+ if (data.value) {
+ const writableStream = await fileHandle.value.createWritable();
+ await writableStream.write(data.value);
+ await writableStream.close();
+ }
+ await updateFile();
+ }
+ async function updateFile() {
+ var _a;
+ file.value = await ((_a = fileHandle.value) == null ? void 0 : _a.getFile());
+ }
+ async function updateData() {
+ var _a, _b;
+ const type = toValue(dataType);
+ if (type === "Text")
+ data.value = await ((_a = file.value) == null ? void 0 : _a.text());
+ else if (type === "ArrayBuffer")
+ data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer());
+ else if (type === "Blob")
+ data.value = file.value;
+ }
+ watch(() => toValue(dataType), updateData);
+ return {
+ isSupported,
+ data,
+ file,
+ fileName,
+ fileMIME,
+ fileSize,
+ fileLastModified,
+ open,
+ create,
+ save,
+ saveAs,
+ updateData
+ };
+}
+
+function useFocus(target, options = {}) {
+ const { initialValue = false } = options;
+ const innerFocused = ref(false);
+ const targetElement = computed(() => unrefElement(target));
+ useEventListener(targetElement, "focus", () => innerFocused.value = true);
+ useEventListener(targetElement, "blur", () => innerFocused.value = false);
+ const focused = computed({
+ get: () => innerFocused.value,
+ set(value) {
+ var _a, _b;
+ if (!value && innerFocused.value)
+ (_a = targetElement.value) == null ? void 0 : _a.blur();
+ else if (value && !innerFocused.value)
+ (_b = targetElement.value) == null ? void 0 : _b.focus();
+ }
+ });
+ watch(
+ targetElement,
+ () => {
+ focused.value = initialValue;
+ },
+ { immediate: true, flush: "post" }
+ );
+ return { focused };
+}
+
+function useFocusWithin(target, options = {}) {
+ const activeElement = useActiveElement(options);
+ const targetElement = computed(() => unrefElement(target));
+ const focused = computed(() => targetElement.value && activeElement.value ? targetElement.value.contains(activeElement.value) : false);
+ return { focused };
+}
+
+function useFps(options) {
+ var _a;
+ const fps = ref(0);
+ if (typeof performance === "undefined")
+ return fps;
+ const every = (_a = options == null ? void 0 : options.every) != null ? _a : 10;
+ let last = performance.now();
+ let ticks = 0;
+ useRafFn(() => {
+ ticks += 1;
+ if (ticks >= every) {
+ const now = performance.now();
+ const diff = now - last;
+ fps.value = Math.round(1e3 / (diff / ticks));
+ last = now;
+ ticks = 0;
+ }
+ });
+ return fps;
+}
+
+const eventHandlers = [
+ "fullscreenchange",
+ "webkitfullscreenchange",
+ "webkitendfullscreen",
+ "mozfullscreenchange",
+ "MSFullscreenChange"
+];
+function useFullscreen(target, options = {}) {
+ const {
+ document = defaultDocument,
+ autoExit = false
+ } = options;
+ const targetRef = computed(() => {
+ var _a;
+ return (_a = unrefElement(target)) != null ? _a : document == null ? void 0 : document.querySelector("html");
+ });
+ const isFullscreen = ref(false);
+ const requestMethod = computed(() => {
+ return [
+ "requestFullscreen",
+ "webkitRequestFullscreen",
+ "webkitEnterFullscreen",
+ "webkitEnterFullScreen",
+ "webkitRequestFullScreen",
+ "mozRequestFullScreen",
+ "msRequestFullscreen"
+ ].find((m) => document && m in document || targetRef.value && m in targetRef.value);
+ });
+ const exitMethod = computed(() => {
+ return [
+ "exitFullscreen",
+ "webkitExitFullscreen",
+ "webkitExitFullScreen",
+ "webkitCancelFullScreen",
+ "mozCancelFullScreen",
+ "msExitFullscreen"
+ ].find((m) => document && m in document || targetRef.value && m in targetRef.value);
+ });
+ const fullscreenEnabled = computed(() => {
+ return [
+ "fullScreen",
+ "webkitIsFullScreen",
+ "webkitDisplayingFullscreen",
+ "mozFullScreen",
+ "msFullscreenElement"
+ ].find((m) => document && m in document || targetRef.value && m in targetRef.value);
+ });
+ const fullscreenElementMethod = [
+ "fullscreenElement",
+ "webkitFullscreenElement",
+ "mozFullScreenElement",
+ "msFullscreenElement"
+ ].find((m) => document && m in document);
+ const isSupported = useSupported(
+ () => targetRef.value && document && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0
+ );
+ const isCurrentElementFullScreen = () => {
+ if (fullscreenElementMethod)
+ return (document == null ? void 0 : document[fullscreenElementMethod]) === targetRef.value;
+ return false;
+ };
+ const isElementFullScreen = () => {
+ if (fullscreenEnabled.value) {
+ if (document && document[fullscreenEnabled.value] != null) {
+ return document[fullscreenEnabled.value];
+ } else {
+ const target2 = targetRef.value;
+ if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) {
+ return Boolean(target2[fullscreenEnabled.value]);
+ }
+ }
+ }
+ return false;
+ };
+ async function exit() {
+ if (!isSupported.value)
+ return;
+ if (exitMethod.value) {
+ if ((document == null ? void 0 : document[exitMethod.value]) != null) {
+ await document[exitMethod.value]();
+ } else {
+ const target2 = targetRef.value;
+ if ((target2 == null ? void 0 : target2[exitMethod.value]) != null)
+ await target2[exitMethod.value]();
+ }
+ }
+ isFullscreen.value = false;
+ }
+ async function enter() {
+ if (!isSupported.value)
+ return;
+ if (isElementFullScreen())
+ await exit();
+ const target2 = targetRef.value;
+ if (requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null) {
+ await target2[requestMethod.value]();
+ isFullscreen.value = true;
+ }
+ }
+ async function toggle() {
+ await (isFullscreen.value ? exit() : enter());
+ }
+ const handlerCallback = () => {
+ const isElementFullScreenValue = isElementFullScreen();
+ if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen())
+ isFullscreen.value = isElementFullScreenValue;
+ };
+ useEventListener(document, eventHandlers, handlerCallback, false);
+ useEventListener(() => unrefElement(targetRef), eventHandlers, handlerCallback, false);
+ if (autoExit)
+ tryOnScopeDispose(exit);
+ return {
+ isSupported,
+ isFullscreen,
+ enter,
+ exit,
+ toggle
+ };
+}
+
+function mapGamepadToXbox360Controller(gamepad) {
+ return computed(() => {
+ if (gamepad.value) {
+ return {
+ buttons: {
+ a: gamepad.value.buttons[0],
+ b: gamepad.value.buttons[1],
+ x: gamepad.value.buttons[2],
+ y: gamepad.value.buttons[3]
+ },
+ bumper: {
+ left: gamepad.value.buttons[4],
+ right: gamepad.value.buttons[5]
+ },
+ triggers: {
+ left: gamepad.value.buttons[6],
+ right: gamepad.value.buttons[7]
+ },
+ stick: {
+ left: {
+ horizontal: gamepad.value.axes[0],
+ vertical: gamepad.value.axes[1],
+ button: gamepad.value.buttons[10]
+ },
+ right: {
+ horizontal: gamepad.value.axes[2],
+ vertical: gamepad.value.axes[3],
+ button: gamepad.value.buttons[11]
+ }
+ },
+ dpad: {
+ up: gamepad.value.buttons[12],
+ down: gamepad.value.buttons[13],
+ left: gamepad.value.buttons[14],
+ right: gamepad.value.buttons[15]
+ },
+ back: gamepad.value.buttons[8],
+ start: gamepad.value.buttons[9]
+ };
+ }
+ return null;
+ });
+}
+function useGamepad(options = {}) {
+ const {
+ navigator = defaultNavigator
+ } = options;
+ const isSupported = useSupported(() => navigator && "getGamepads" in navigator);
+ const gamepads = ref([]);
+ const onConnectedHook = createEventHook();
+ const onDisconnectedHook = createEventHook();
+ const stateFromGamepad = (gamepad) => {
+ const hapticActuators = [];
+ const vibrationActuator = "vibrationActuator" in gamepad ? gamepad.vibrationActuator : null;
+ if (vibrationActuator)
+ hapticActuators.push(vibrationActuator);
+ if (gamepad.hapticActuators)
+ hapticActuators.push(...gamepad.hapticActuators);
+ return {
+ id: gamepad.id,
+ hapticActuators,
+ index: gamepad.index,
+ mapping: gamepad.mapping,
+ connected: gamepad.connected,
+ timestamp: gamepad.timestamp,
+ axes: gamepad.axes.map((axes) => axes),
+ buttons: gamepad.buttons.map((button) => ({ pressed: button.pressed, touched: button.touched, value: button.value }))
+ };
+ };
+ const updateGamepadState = () => {
+ const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];
+ for (let i = 0; i < _gamepads.length; ++i) {
+ const gamepad = _gamepads[i];
+ if (gamepad) {
+ const index = gamepads.value.findIndex(({ index: index2 }) => index2 === gamepad.index);
+ if (index > -1)
+ gamepads.value[index] = stateFromGamepad(gamepad);
+ }
+ }
+ };
+ const { isActive, pause, resume } = useRafFn(updateGamepadState);
+ const onGamepadConnected = (gamepad) => {
+ if (!gamepads.value.some(({ index }) => index === gamepad.index)) {
+ gamepads.value.push(stateFromGamepad(gamepad));
+ onConnectedHook.trigger(gamepad.index);
+ }
+ resume();
+ };
+ const onGamepadDisconnected = (gamepad) => {
+ gamepads.value = gamepads.value.filter((x) => x.index !== gamepad.index);
+ onDisconnectedHook.trigger(gamepad.index);
+ };
+ useEventListener("gamepadconnected", (e) => onGamepadConnected(e.gamepad));
+ useEventListener("gamepaddisconnected", (e) => onGamepadDisconnected(e.gamepad));
+ tryOnMounted(() => {
+ const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];
+ if (_gamepads) {
+ for (let i = 0; i < _gamepads.length; ++i) {
+ const gamepad = _gamepads[i];
+ if (gamepad)
+ onGamepadConnected(gamepad);
+ }
+ }
+ });
+ pause();
+ return {
+ isSupported,
+ onConnected: onConnectedHook.on,
+ onDisconnected: onDisconnectedHook.on,
+ gamepads,
+ pause,
+ resume,
+ isActive
+ };
+}
+
+function useGeolocation(options = {}) {
+ const {
+ enableHighAccuracy = true,
+ maximumAge = 3e4,
+ timeout = 27e3,
+ navigator = defaultNavigator,
+ immediate = true
+ } = options;
+ const isSupported = useSupported(() => navigator && "geolocation" in navigator);
+ const locatedAt = ref(null);
+ const error = shallowRef(null);
+ const coords = ref({
+ accuracy: 0,
+ latitude: Infinity,
+ longitude: Infinity,
+ altitude: null,
+ altitudeAccuracy: null,
+ heading: null,
+ speed: null
+ });
+ function updatePosition(position) {
+ locatedAt.value = position.timestamp;
+ coords.value = position.coords;
+ error.value = null;
+ }
+ let watcher;
+ function resume() {
+ if (isSupported.value) {
+ watcher = navigator.geolocation.watchPosition(
+ updatePosition,
+ (err) => error.value = err,
+ {
+ enableHighAccuracy,
+ maximumAge,
+ timeout
+ }
+ );
+ }
+ }
+ if (immediate)
+ resume();
+ function pause() {
+ if (watcher && navigator)
+ navigator.geolocation.clearWatch(watcher);
+ }
+ tryOnScopeDispose(() => {
+ pause();
+ });
+ return {
+ isSupported,
+ coords,
+ locatedAt,
+ error,
+ resume,
+ pause
+ };
+}
+
+const defaultEvents$1 = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"];
+const oneMinute = 6e4;
+function useIdle(timeout = oneMinute, options = {}) {
+ const {
+ initialState = false,
+ listenForVisibilityChange = true,
+ events = defaultEvents$1,
+ window = defaultWindow,
+ eventFilter = throttleFilter(50)
+ } = options;
+ const idle = ref(initialState);
+ const lastActive = ref(timestamp());
+ let timer;
+ const reset = () => {
+ idle.value = false;
+ clearTimeout(timer);
+ timer = setTimeout(() => idle.value = true, timeout);
+ };
+ const onEvent = createFilterWrapper(
+ eventFilter,
+ () => {
+ lastActive.value = timestamp();
+ reset();
+ }
+ );
+ if (window) {
+ const document = window.document;
+ for (const event of events)
+ useEventListener(window, event, onEvent, { passive: true });
+ if (listenForVisibilityChange) {
+ useEventListener(document, "visibilitychange", () => {
+ if (!document.hidden)
+ onEvent();
+ });
+ }
+ reset();
+ }
+ return {
+ idle,
+ lastActive,
+ reset
+ };
+}
+
+var __defProp$a = Object.defineProperty;
+var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
+var __hasOwnProp$b = Object.prototype.hasOwnProperty;
+var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$a = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$b.call(b, prop))
+ __defNormalProp$a(a, prop, b[prop]);
+ if (__getOwnPropSymbols$b)
+ for (var prop of __getOwnPropSymbols$b(b)) {
+ if (__propIsEnum$b.call(b, prop))
+ __defNormalProp$a(a, prop, b[prop]);
+ }
+ return a;
+};
+async function loadImage(options) {
+ return new Promise((resolve, reject) => {
+ const img = new Image();
+ const { src, srcset, sizes, class: clazz, loading, crossorigin } = options;
+ img.src = src;
+ if (srcset)
+ img.srcset = srcset;
+ if (sizes)
+ img.sizes = sizes;
+ if (clazz)
+ img.className = clazz;
+ if (loading)
+ img.loading = loading;
+ if (crossorigin)
+ img.crossOrigin = crossorigin;
+ img.onload = () => resolve(img);
+ img.onerror = reject;
+ });
+}
+function useImage(options, asyncStateOptions = {}) {
+ const state = useAsyncState(
+ () => loadImage(toValue(options)),
+ void 0,
+ __spreadValues$a({
+ resetOnExecute: true
+ }, asyncStateOptions)
+ );
+ watch(
+ () => toValue(options),
+ () => state.execute(asyncStateOptions.delay),
+ { deep: true }
+ );
+ return state;
+}
+
+const ARRIVED_STATE_THRESHOLD_PIXELS = 1;
+function useScroll(element, options = {}) {
+ const {
+ throttle = 0,
+ idle = 200,
+ onStop = noop,
+ onScroll = noop,
+ offset = {
+ left: 0,
+ right: 0,
+ top: 0,
+ bottom: 0
+ },
+ eventListenerOptions = {
+ capture: false,
+ passive: true
+ },
+ behavior = "auto"
+ } = options;
+ const internalX = ref(0);
+ const internalY = ref(0);
+ const x = computed({
+ get() {
+ return internalX.value;
+ },
+ set(x2) {
+ scrollTo(x2, void 0);
+ }
+ });
+ const y = computed({
+ get() {
+ return internalY.value;
+ },
+ set(y2) {
+ scrollTo(void 0, y2);
+ }
+ });
+ function scrollTo(_x, _y) {
+ var _a, _b, _c;
+ const _element = toValue(element);
+ if (!_element)
+ return;
+ (_c = _element instanceof Document ? document.body : _element) == null ? void 0 : _c.scrollTo({
+ top: (_a = toValue(_y)) != null ? _a : y.value,
+ left: (_b = toValue(_x)) != null ? _b : x.value,
+ behavior: toValue(behavior)
+ });
+ }
+ const isScrolling = ref(false);
+ const arrivedState = reactive({
+ left: true,
+ right: false,
+ top: true,
+ bottom: false
+ });
+ const directions = reactive({
+ left: false,
+ right: false,
+ top: false,
+ bottom: false
+ });
+ const onScrollEnd = (e) => {
+ if (!isScrolling.value)
+ return;
+ isScrolling.value = false;
+ directions.left = false;
+ directions.right = false;
+ directions.top = false;
+ directions.bottom = false;
+ onStop(e);
+ };
+ const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);
+ const setArrivedState = (target) => {
+ const el = target === document ? target.documentElement : target;
+ const { display, flexDirection } = getComputedStyle(el);
+ const scrollLeft = el.scrollLeft;
+ directions.left = scrollLeft < internalX.value;
+ directions.right = scrollLeft > internalX.value;
+ const left = Math.abs(scrollLeft) <= 0 + (offset.left || 0);
+ const right = Math.abs(scrollLeft) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
+ if (display === "flex" && flexDirection === "row-reverse") {
+ arrivedState.left = right;
+ arrivedState.right = left;
+ } else {
+ arrivedState.left = left;
+ arrivedState.right = right;
+ }
+ internalX.value = scrollLeft;
+ let scrollTop = el.scrollTop;
+ if (target === document && !scrollTop)
+ scrollTop = document.body.scrollTop;
+ directions.top = scrollTop < internalY.value;
+ directions.bottom = scrollTop > internalY.value;
+ const top = Math.abs(scrollTop) <= 0 + (offset.top || 0);
+ const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
+ if (display === "flex" && flexDirection === "column-reverse") {
+ arrivedState.top = bottom;
+ arrivedState.bottom = top;
+ } else {
+ arrivedState.top = top;
+ arrivedState.bottom = bottom;
+ }
+ internalY.value = scrollTop;
+ };
+ const onScrollHandler = (e) => {
+ const eventTarget = e.target === document ? e.target.documentElement : e.target;
+ setArrivedState(eventTarget);
+ isScrolling.value = true;
+ onScrollEndDebounced(e);
+ onScroll(e);
+ };
+ useEventListener(
+ element,
+ "scroll",
+ throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler,
+ eventListenerOptions
+ );
+ useEventListener(
+ element,
+ "scrollend",
+ onScrollEnd,
+ eventListenerOptions
+ );
+ return {
+ x,
+ y,
+ isScrolling,
+ arrivedState,
+ directions,
+ measure() {
+ const _element = toValue(element);
+ if (_element)
+ setArrivedState(_element);
+ }
+ };
+}
+
+var __defProp$9 = Object.defineProperty;
+var __defProps$3 = Object.defineProperties;
+var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
+var __hasOwnProp$a = Object.prototype.hasOwnProperty;
+var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$9 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$a.call(b, prop))
+ __defNormalProp$9(a, prop, b[prop]);
+ if (__getOwnPropSymbols$a)
+ for (var prop of __getOwnPropSymbols$a(b)) {
+ if (__propIsEnum$a.call(b, prop))
+ __defNormalProp$9(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
+function useInfiniteScroll(element, onLoadMore, options = {}) {
+ var _a;
+ const {
+ direction = "bottom",
+ interval = 100
+ } = options;
+ const state = reactive(useScroll(
+ element,
+ __spreadProps$3(__spreadValues$9({}, options), {
+ offset: __spreadValues$9({
+ [direction]: (_a = options.distance) != null ? _a : 0
+ }, options.offset)
+ })
+ ));
+ const promise = ref();
+ const isLoading = computed(() => !!promise.value);
+ function checkAndLoad() {
+ state.measure();
+ const el = toValue(element);
+ if (!el)
+ return;
+ const isNarrower = direction === "bottom" || direction === "top" ? el.scrollHeight <= el.clientHeight : el.scrollWidth <= el.clientWidth;
+ if (state.arrivedState[direction] || isNarrower) {
+ if (!promise.value) {
+ promise.value = Promise.all([
+ onLoadMore(state),
+ new Promise((resolve) => setTimeout(resolve, interval))
+ ]).finally(() => {
+ promise.value = null;
+ nextTick(() => checkAndLoad());
+ });
+ }
+ }
+ }
+ watch(
+ () => [state.arrivedState[direction], toValue(element)],
+ checkAndLoad,
+ { immediate: true }
+ );
+ return {
+ isLoading
+ };
+}
+
+const defaultEvents = ["mousedown", "mouseup", "keydown", "keyup"];
+function useKeyModifier(modifier, options = {}) {
+ const {
+ events = defaultEvents,
+ document = defaultDocument,
+ initial = null
+ } = options;
+ const state = ref(initial);
+ if (document) {
+ events.forEach((listenerEvent) => {
+ useEventListener(document, listenerEvent, (evt) => {
+ if (typeof evt.getModifierState === "function")
+ state.value = evt.getModifierState(modifier);
+ });
+ });
+ }
+ return state;
+}
+
+function useLocalStorage(key, initialValue, options = {}) {
+ const { window = defaultWindow } = options;
+ return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options);
+}
+
+const DefaultMagicKeysAliasMap = {
+ ctrl: "control",
+ command: "meta",
+ cmd: "meta",
+ option: "alt",
+ up: "arrowup",
+ down: "arrowdown",
+ left: "arrowleft",
+ right: "arrowright"
+};
+
+function useMagicKeys(options = {}) {
+ const {
+ reactive: useReactive = false,
+ target = defaultWindow,
+ aliasMap = DefaultMagicKeysAliasMap,
+ passive = true,
+ onEventFired = noop
+ } = options;
+ const current = reactive(/* @__PURE__ */ new Set());
+ const obj = {
+ toJSON() {
+ return {};
+ },
+ current
+ };
+ const refs = useReactive ? reactive(obj) : obj;
+ const metaDeps = /* @__PURE__ */ new Set();
+ const usedKeys = /* @__PURE__ */ new Set();
+ function setRefs(key, value) {
+ if (key in refs) {
+ if (useReactive)
+ refs[key] = value;
+ else
+ refs[key].value = value;
+ }
+ }
+ function reset() {
+ current.clear();
+ for (const key of usedKeys)
+ setRefs(key, false);
+ }
+ function updateRefs(e, value) {
+ var _a, _b;
+ const key = (_a = e.key) == null ? void 0 : _a.toLowerCase();
+ const code = (_b = e.code) == null ? void 0 : _b.toLowerCase();
+ const values = [code, key].filter(Boolean);
+ if (key) {
+ if (value)
+ current.add(key);
+ else
+ current.delete(key);
+ }
+ for (const key2 of values) {
+ usedKeys.add(key2);
+ setRefs(key2, value);
+ }
+ if (key === "meta" && !value) {
+ metaDeps.forEach((key2) => {
+ current.delete(key2);
+ setRefs(key2, false);
+ });
+ metaDeps.clear();
+ } else if (typeof e.getModifierState === "function" && e.getModifierState("Meta") && value) {
+ [...current, ...values].forEach((key2) => metaDeps.add(key2));
+ }
+ }
+ useEventListener(target, "keydown", (e) => {
+ updateRefs(e, true);
+ return onEventFired(e);
+ }, { passive });
+ useEventListener(target, "keyup", (e) => {
+ updateRefs(e, false);
+ return onEventFired(e);
+ }, { passive });
+ useEventListener("blur", reset, { passive: true });
+ useEventListener("focus", reset, { passive: true });
+ const proxy = new Proxy(
+ refs,
+ {
+ get(target2, prop, rec) {
+ if (typeof prop !== "string")
+ return Reflect.get(target2, prop, rec);
+ prop = prop.toLowerCase();
+ if (prop in aliasMap)
+ prop = aliasMap[prop];
+ if (!(prop in refs)) {
+ if (/[+_-]/.test(prop)) {
+ const keys = prop.split(/[+_-]/g).map((i) => i.trim());
+ refs[prop] = computed(() => keys.every((key) => toValue(proxy[key])));
+ } else {
+ refs[prop] = ref(false);
+ }
+ }
+ const r = Reflect.get(target2, prop, rec);
+ return useReactive ? toValue(r) : r;
+ }
+ }
+ );
+ return proxy;
+}
+
+var __defProp$8 = Object.defineProperty;
+var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
+var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
+var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$8 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$9.call(b, prop))
+ __defNormalProp$8(a, prop, b[prop]);
+ if (__getOwnPropSymbols$9)
+ for (var prop of __getOwnPropSymbols$9(b)) {
+ if (__propIsEnum$9.call(b, prop))
+ __defNormalProp$8(a, prop, b[prop]);
+ }
+ return a;
+};
+function usingElRef(source, cb) {
+ if (toValue(source))
+ cb(toValue(source));
+}
+function timeRangeToArray(timeRanges) {
+ let ranges = [];
+ for (let i = 0; i < timeRanges.length; ++i)
+ ranges = [...ranges, [timeRanges.start(i), timeRanges.end(i)]];
+ return ranges;
+}
+function tracksToArray(tracks) {
+ return Array.from(tracks).map(({ label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }, id) => ({ id, label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }));
+}
+const defaultOptions = {
+ src: "",
+ tracks: []
+};
+function useMediaControls(target, options = {}) {
+ options = __spreadValues$8(__spreadValues$8({}, defaultOptions), options);
+ const {
+ document = defaultDocument
+ } = options;
+ const currentTime = ref(0);
+ const duration = ref(0);
+ const seeking = ref(false);
+ const volume = ref(1);
+ const waiting = ref(false);
+ const ended = ref(false);
+ const playing = ref(false);
+ const rate = ref(1);
+ const stalled = ref(false);
+ const buffered = ref([]);
+ const tracks = ref([]);
+ const selectedTrack = ref(-1);
+ const isPictureInPicture = ref(false);
+ const muted = ref(false);
+ const supportsPictureInPicture = document && "pictureInPictureEnabled" in document;
+ const sourceErrorEvent = createEventHook();
+ const disableTrack = (track) => {
+ usingElRef(target, (el) => {
+ if (track) {
+ const id = typeof track === "number" ? track : track.id;
+ el.textTracks[id].mode = "disabled";
+ } else {
+ for (let i = 0; i < el.textTracks.length; ++i)
+ el.textTracks[i].mode = "disabled";
+ }
+ selectedTrack.value = -1;
+ });
+ };
+ const enableTrack = (track, disableTracks = true) => {
+ usingElRef(target, (el) => {
+ const id = typeof track === "number" ? track : track.id;
+ if (disableTracks)
+ disableTrack();
+ el.textTracks[id].mode = "showing";
+ selectedTrack.value = id;
+ });
+ };
+ const togglePictureInPicture = () => {
+ return new Promise((resolve, reject) => {
+ usingElRef(target, async (el) => {
+ if (supportsPictureInPicture) {
+ if (!isPictureInPicture.value) {
+ el.requestPictureInPicture().then(resolve).catch(reject);
+ } else {
+ document.exitPictureInPicture().then(resolve).catch(reject);
+ }
+ }
+ });
+ });
+ };
+ watchEffect(() => {
+ if (!document)
+ return;
+ const el = toValue(target);
+ if (!el)
+ return;
+ const src = toValue(options.src);
+ let sources = [];
+ if (!src)
+ return;
+ if (typeof src === "string")
+ sources = [{ src }];
+ else if (Array.isArray(src))
+ sources = src;
+ else if (isObject(src))
+ sources = [src];
+ el.querySelectorAll("source").forEach((e) => {
+ e.removeEventListener("error", sourceErrorEvent.trigger);
+ e.remove();
+ });
+ sources.forEach(({ src: src2, type }) => {
+ const source = document.createElement("source");
+ source.setAttribute("src", src2);
+ source.setAttribute("type", type || "");
+ source.addEventListener("error", sourceErrorEvent.trigger);
+ el.appendChild(source);
+ });
+ el.load();
+ });
+ tryOnScopeDispose(() => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ el.querySelectorAll("source").forEach((e) => e.removeEventListener("error", sourceErrorEvent.trigger));
+ });
+ watch([target, volume], () => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ el.volume = volume.value;
+ });
+ watch([target, muted], () => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ el.muted = muted.value;
+ });
+ watch([target, rate], () => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ el.playbackRate = rate.value;
+ });
+ watchEffect(() => {
+ if (!document)
+ return;
+ const textTracks = toValue(options.tracks);
+ const el = toValue(target);
+ if (!textTracks || !textTracks.length || !el)
+ return;
+ el.querySelectorAll("track").forEach((e) => e.remove());
+ textTracks.forEach(({ default: isDefault, kind, label, src, srcLang }, i) => {
+ const track = document.createElement("track");
+ track.default = isDefault || false;
+ track.kind = kind;
+ track.label = label;
+ track.src = src;
+ track.srclang = srcLang;
+ if (track.default)
+ selectedTrack.value = i;
+ el.appendChild(track);
+ });
+ });
+ const { ignoreUpdates: ignoreCurrentTimeUpdates } = watchIgnorable(currentTime, (time) => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ el.currentTime = time;
+ });
+ const { ignoreUpdates: ignorePlayingUpdates } = watchIgnorable(playing, (isPlaying) => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ isPlaying ? el.play() : el.pause();
+ });
+ useEventListener(target, "timeupdate", () => ignoreCurrentTimeUpdates(() => currentTime.value = toValue(target).currentTime));
+ useEventListener(target, "durationchange", () => duration.value = toValue(target).duration);
+ useEventListener(target, "progress", () => buffered.value = timeRangeToArray(toValue(target).buffered));
+ useEventListener(target, "seeking", () => seeking.value = true);
+ useEventListener(target, "seeked", () => seeking.value = false);
+ useEventListener(target, "waiting", () => waiting.value = true);
+ useEventListener(target, "playing", () => {
+ waiting.value = false;
+ ended.value = false;
+ });
+ useEventListener(target, "ratechange", () => rate.value = toValue(target).playbackRate);
+ useEventListener(target, "stalled", () => stalled.value = true);
+ useEventListener(target, "ended", () => ended.value = true);
+ useEventListener(target, "pause", () => ignorePlayingUpdates(() => playing.value = false));
+ useEventListener(target, "play", () => ignorePlayingUpdates(() => playing.value = true));
+ useEventListener(target, "enterpictureinpicture", () => isPictureInPicture.value = true);
+ useEventListener(target, "leavepictureinpicture", () => isPictureInPicture.value = false);
+ useEventListener(target, "volumechange", () => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ volume.value = el.volume;
+ muted.value = el.muted;
+ });
+ const listeners = [];
+ const stop = watch([target], () => {
+ const el = toValue(target);
+ if (!el)
+ return;
+ stop();
+ listeners[0] = useEventListener(el.textTracks, "addtrack", () => tracks.value = tracksToArray(el.textTracks));
+ listeners[1] = useEventListener(el.textTracks, "removetrack", () => tracks.value = tracksToArray(el.textTracks));
+ listeners[2] = useEventListener(el.textTracks, "change", () => tracks.value = tracksToArray(el.textTracks));
+ });
+ tryOnScopeDispose(() => listeners.forEach((listener) => listener()));
+ return {
+ currentTime,
+ duration,
+ waiting,
+ seeking,
+ ended,
+ stalled,
+ buffered,
+ playing,
+ rate,
+ // Volume
+ volume,
+ muted,
+ // Tracks
+ tracks,
+ selectedTrack,
+ enableTrack,
+ disableTrack,
+ // Picture in Picture
+ supportsPictureInPicture,
+ togglePictureInPicture,
+ isPictureInPicture,
+ // Events
+ onSourceError: sourceErrorEvent.on
+ };
+}
+
+function getMapVue2Compat() {
+ const data = reactive({});
+ return {
+ get: (key) => data[key],
+ set: (key, value) => set(data, key, value),
+ has: (key) => hasOwn(data, key),
+ delete: (key) => del(data, key),
+ clear: () => {
+ Object.keys(data).forEach((key) => {
+ del(data, key);
+ });
+ }
+ };
+}
+function useMemoize(resolver, options) {
+ const initCache = () => {
+ if (options == null ? void 0 : options.cache)
+ return reactive(options.cache);
+ if (isVue2)
+ return getMapVue2Compat();
+ return reactive(/* @__PURE__ */ new Map());
+ };
+ const cache = initCache();
+ const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args);
+ const _loadData = (key, ...args) => {
+ cache.set(key, resolver(...args));
+ return cache.get(key);
+ };
+ const loadData = (...args) => _loadData(generateKey(...args), ...args);
+ const deleteData = (...args) => {
+ cache.delete(generateKey(...args));
+ };
+ const clearData = () => {
+ cache.clear();
+ };
+ const memoized = (...args) => {
+ const key = generateKey(...args);
+ if (cache.has(key))
+ return cache.get(key);
+ return _loadData(key, ...args);
+ };
+ memoized.load = loadData;
+ memoized.delete = deleteData;
+ memoized.clear = clearData;
+ memoized.generateKey = generateKey;
+ memoized.cache = cache;
+ return memoized;
+}
+
+function useMemory(options = {}) {
+ const memory = ref();
+ const isSupported = useSupported(() => typeof performance !== "undefined" && "memory" in performance);
+ if (isSupported.value) {
+ const { interval = 1e3 } = options;
+ useIntervalFn(() => {
+ memory.value = performance.memory;
+ }, interval, { immediate: options.immediate, immediateCallback: options.immediateCallback });
+ }
+ return { isSupported, memory };
+}
+
+const BuiltinExtractors = {
+ page: (event) => [event.pageX, event.pageY],
+ client: (event) => [event.clientX, event.clientY],
+ screen: (event) => [event.screenX, event.screenY],
+ movement: (event) => event instanceof Touch ? null : [event.movementX, event.movementY]
+};
+function useMouse(options = {}) {
+ const {
+ type = "page",
+ touch = true,
+ resetOnTouchEnds = false,
+ initialValue = { x: 0, y: 0 },
+ window = defaultWindow,
+ target = window,
+ eventFilter
+ } = options;
+ const x = ref(initialValue.x);
+ const y = ref(initialValue.y);
+ const sourceType = ref(null);
+ const extractor = typeof type === "function" ? type : BuiltinExtractors[type];
+ const mouseHandler = (event) => {
+ const result = extractor(event);
+ if (result) {
+ [x.value, y.value] = result;
+ sourceType.value = "mouse";
+ }
+ };
+ const touchHandler = (event) => {
+ if (event.touches.length > 0) {
+ const result = extractor(event.touches[0]);
+ if (result) {
+ [x.value, y.value] = result;
+ sourceType.value = "touch";
+ }
+ }
+ };
+ const reset = () => {
+ x.value = initialValue.x;
+ y.value = initialValue.y;
+ };
+ const mouseHandlerWrapper = eventFilter ? (event) => eventFilter(() => mouseHandler(event), {}) : (event) => mouseHandler(event);
+ const touchHandlerWrapper = eventFilter ? (event) => eventFilter(() => touchHandler(event), {}) : (event) => touchHandler(event);
+ if (target) {
+ useEventListener(target, "mousemove", mouseHandlerWrapper, { passive: true });
+ useEventListener(target, "dragover", mouseHandlerWrapper, { passive: true });
+ if (touch && type !== "movement") {
+ useEventListener(target, "touchstart", touchHandlerWrapper, { passive: true });
+ useEventListener(target, "touchmove", touchHandlerWrapper, { passive: true });
+ if (resetOnTouchEnds)
+ useEventListener(target, "touchend", reset, { passive: true });
+ }
+ }
+ return {
+ x,
+ y,
+ sourceType
+ };
+}
+
+function useMouseInElement(target, options = {}) {
+ const {
+ handleOutside = true,
+ window = defaultWindow
+ } = options;
+ const { x, y, sourceType } = useMouse(options);
+ const targetRef = ref(target != null ? target : window == null ? void 0 : window.document.body);
+ const elementX = ref(0);
+ const elementY = ref(0);
+ const elementPositionX = ref(0);
+ const elementPositionY = ref(0);
+ const elementHeight = ref(0);
+ const elementWidth = ref(0);
+ const isOutside = ref(true);
+ let stop = () => {
+ };
+ if (window) {
+ stop = watch(
+ [targetRef, x, y],
+ () => {
+ const el = unrefElement(targetRef);
+ if (!el)
+ return;
+ const {
+ left,
+ top,
+ width,
+ height
+ } = el.getBoundingClientRect();
+ elementPositionX.value = left + window.pageXOffset;
+ elementPositionY.value = top + window.pageYOffset;
+ elementHeight.value = height;
+ elementWidth.value = width;
+ const elX = x.value - elementPositionX.value;
+ const elY = y.value - elementPositionY.value;
+ isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height;
+ if (handleOutside || !isOutside.value) {
+ elementX.value = elX;
+ elementY.value = elY;
+ }
+ },
+ { immediate: true }
+ );
+ useEventListener(document, "mouseleave", () => {
+ isOutside.value = true;
+ });
+ }
+ return {
+ x,
+ y,
+ sourceType,
+ elementX,
+ elementY,
+ elementPositionX,
+ elementPositionY,
+ elementHeight,
+ elementWidth,
+ isOutside,
+ stop
+ };
+}
+
+function useMousePressed(options = {}) {
+ const {
+ touch = true,
+ drag = true,
+ initialValue = false,
+ window = defaultWindow
+ } = options;
+ const pressed = ref(initialValue);
+ const sourceType = ref(null);
+ if (!window) {
+ return {
+ pressed,
+ sourceType
+ };
+ }
+ const onPressed = (srcType) => () => {
+ pressed.value = true;
+ sourceType.value = srcType;
+ };
+ const onReleased = () => {
+ pressed.value = false;
+ sourceType.value = null;
+ };
+ const target = computed(() => unrefElement(options.target) || window);
+ useEventListener(target, "mousedown", onPressed("mouse"), { passive: true });
+ useEventListener(window, "mouseleave", onReleased, { passive: true });
+ useEventListener(window, "mouseup", onReleased, { passive: true });
+ if (drag) {
+ useEventListener(target, "dragstart", onPressed("mouse"), { passive: true });
+ useEventListener(window, "drop", onReleased, { passive: true });
+ useEventListener(window, "dragend", onReleased, { passive: true });
+ }
+ if (touch) {
+ useEventListener(target, "touchstart", onPressed("touch"), { passive: true });
+ useEventListener(window, "touchend", onReleased, { passive: true });
+ useEventListener(window, "touchcancel", onReleased, { passive: true });
+ }
+ return {
+ pressed,
+ sourceType
+ };
+}
+
+function useNavigatorLanguage(options = {}) {
+ const { window = defaultWindow } = options;
+ const navigator = window == null ? void 0 : window.navigator;
+ const isSupported = useSupported(() => navigator && "language" in navigator);
+ const language = ref(navigator == null ? void 0 : navigator.language);
+ useEventListener(window, "languagechange", () => {
+ if (navigator)
+ language.value = navigator.language;
+ });
+ return {
+ isSupported,
+ language
+ };
+}
+
+function useNetwork(options = {}) {
+ const { window = defaultWindow } = options;
+ const navigator = window == null ? void 0 : window.navigator;
+ const isSupported = useSupported(() => navigator && "connection" in navigator);
+ const isOnline = ref(true);
+ const saveData = ref(false);
+ const offlineAt = ref(void 0);
+ const onlineAt = ref(void 0);
+ const downlink = ref(void 0);
+ const downlinkMax = ref(void 0);
+ const rtt = ref(void 0);
+ const effectiveType = ref(void 0);
+ const type = ref("unknown");
+ const connection = isSupported.value && navigator.connection;
+ function updateNetworkInformation() {
+ if (!navigator)
+ return;
+ isOnline.value = navigator.onLine;
+ offlineAt.value = isOnline.value ? void 0 : Date.now();
+ onlineAt.value = isOnline.value ? Date.now() : void 0;
+ if (connection) {
+ downlink.value = connection.downlink;
+ downlinkMax.value = connection.downlinkMax;
+ effectiveType.value = connection.effectiveType;
+ rtt.value = connection.rtt;
+ saveData.value = connection.saveData;
+ type.value = connection.type;
+ }
+ }
+ if (window) {
+ useEventListener(window, "offline", () => {
+ isOnline.value = false;
+ offlineAt.value = Date.now();
+ });
+ useEventListener(window, "online", () => {
+ isOnline.value = true;
+ onlineAt.value = Date.now();
+ });
+ }
+ if (connection)
+ useEventListener(connection, "change", updateNetworkInformation, false);
+ updateNetworkInformation();
+ return {
+ isSupported,
+ isOnline,
+ saveData,
+ offlineAt,
+ onlineAt,
+ downlink,
+ downlinkMax,
+ effectiveType,
+ rtt,
+ type
+ };
+}
+
+var __defProp$7 = Object.defineProperty;
+var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
+var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
+var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$7 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$8.call(b, prop))
+ __defNormalProp$7(a, prop, b[prop]);
+ if (__getOwnPropSymbols$8)
+ for (var prop of __getOwnPropSymbols$8(b)) {
+ if (__propIsEnum$8.call(b, prop))
+ __defNormalProp$7(a, prop, b[prop]);
+ }
+ return a;
+};
+function useNow(options = {}) {
+ const {
+ controls: exposeControls = false,
+ interval = "requestAnimationFrame"
+ } = options;
+ const now = ref(/* @__PURE__ */ new Date());
+ const update = () => now.value = /* @__PURE__ */ new Date();
+ const controls = interval === "requestAnimationFrame" ? useRafFn(update, { immediate: true }) : useIntervalFn(update, interval, { immediate: true });
+ if (exposeControls) {
+ return __spreadValues$7({
+ now
+ }, controls);
+ } else {
+ return now;
+ }
+}
+
+function useObjectUrl(object) {
+ const url = ref();
+ const release = () => {
+ if (url.value)
+ URL.revokeObjectURL(url.value);
+ url.value = void 0;
+ };
+ watch(
+ () => toValue(object),
+ (newObject) => {
+ release();
+ if (newObject)
+ url.value = URL.createObjectURL(newObject);
+ },
+ { immediate: true }
+ );
+ tryOnScopeDispose(release);
+ return readonly(url);
+}
+
+function useClamp(value, min, max) {
+ if (typeof value === "function" || isReadonly(value))
+ return computed(() => clamp(toValue(value), toValue(min), toValue(max)));
+ const _value = ref(value);
+ return computed({
+ get() {
+ return _value.value = clamp(_value.value, toValue(min), toValue(max));
+ },
+ set(value2) {
+ _value.value = clamp(value2, toValue(min), toValue(max));
+ }
+ });
+}
+
+function useOffsetPagination(options) {
+ const {
+ total = Infinity,
+ pageSize = 10,
+ page = 1,
+ onPageChange = noop,
+ onPageSizeChange = noop,
+ onPageCountChange = noop
+ } = options;
+ const currentPageSize = useClamp(pageSize, 1, Infinity);
+ const pageCount = computed(() => Math.max(
+ 1,
+ Math.ceil(toValue(total) / toValue(currentPageSize))
+ ));
+ const currentPage = useClamp(page, 1, pageCount);
+ const isFirstPage = computed(() => currentPage.value === 1);
+ const isLastPage = computed(() => currentPage.value === pageCount.value);
+ if (isRef(page))
+ syncRef(page, currentPage);
+ if (isRef(pageSize))
+ syncRef(pageSize, currentPageSize);
+ function prev() {
+ currentPage.value--;
+ }
+ function next() {
+ currentPage.value++;
+ }
+ const returnValue = {
+ currentPage,
+ currentPageSize,
+ pageCount,
+ isFirstPage,
+ isLastPage,
+ prev,
+ next
+ };
+ watch(currentPage, () => {
+ onPageChange(reactive(returnValue));
+ });
+ watch(currentPageSize, () => {
+ onPageSizeChange(reactive(returnValue));
+ });
+ watch(pageCount, () => {
+ onPageCountChange(reactive(returnValue));
+ });
+ return returnValue;
+}
+
+function useOnline(options = {}) {
+ const { isOnline } = useNetwork(options);
+ return isOnline;
+}
+
+function usePageLeave(options = {}) {
+ const { window = defaultWindow } = options;
+ const isLeft = ref(false);
+ const handler = (event) => {
+ if (!window)
+ return;
+ event = event || window.event;
+ const from = event.relatedTarget || event.toElement;
+ isLeft.value = !from;
+ };
+ if (window) {
+ useEventListener(window, "mouseout", handler, { passive: true });
+ useEventListener(window.document, "mouseleave", handler, { passive: true });
+ useEventListener(window.document, "mouseenter", handler, { passive: true });
+ }
+ return isLeft;
+}
+
+function useParallax(target, options = {}) {
+ const {
+ deviceOrientationTiltAdjust = (i) => i,
+ deviceOrientationRollAdjust = (i) => i,
+ mouseTiltAdjust = (i) => i,
+ mouseRollAdjust = (i) => i,
+ window = defaultWindow
+ } = options;
+ const orientation = reactive(useDeviceOrientation({ window }));
+ const {
+ elementX: x,
+ elementY: y,
+ elementWidth: width,
+ elementHeight: height
+ } = useMouseInElement(target, { handleOutside: false, window });
+ const source = computed(() => {
+ if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0))
+ return "deviceOrientation";
+ return "mouse";
+ });
+ const roll = computed(() => {
+ if (source.value === "deviceOrientation") {
+ const value = -orientation.beta / 90;
+ return deviceOrientationRollAdjust(value);
+ } else {
+ const value = -(y.value - height.value / 2) / height.value;
+ return mouseRollAdjust(value);
+ }
+ });
+ const tilt = computed(() => {
+ if (source.value === "deviceOrientation") {
+ const value = orientation.gamma / 90;
+ return deviceOrientationTiltAdjust(value);
+ } else {
+ const value = (x.value - width.value / 2) / width.value;
+ return mouseTiltAdjust(value);
+ }
+ });
+ return { roll, tilt, source };
+}
+
+function useParentElement(element = useCurrentElement()) {
+ const parentElement = shallowRef();
+ const update = () => {
+ const el = unrefElement(element);
+ if (el)
+ parentElement.value = el.parentElement;
+ };
+ tryOnMounted(update);
+ watch(() => toValue(element), update);
+ return parentElement;
+}
+
+var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
+var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
+var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
+var __objRest$1 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$7)
+ for (var prop of __getOwnPropSymbols$7(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function usePerformanceObserver(options, callback) {
+ const _a = options, {
+ window = defaultWindow,
+ immediate = true
+ } = _a, performanceOptions = __objRest$1(_a, [
+ "window",
+ "immediate"
+ ]);
+ const isSupported = useSupported(() => window && "PerformanceObserver" in window);
+ let observer;
+ const stop = () => {
+ observer == null ? void 0 : observer.disconnect();
+ };
+ const start = () => {
+ if (isSupported.value) {
+ stop();
+ observer = new PerformanceObserver(callback);
+ observer.observe(performanceOptions);
+ }
+ };
+ tryOnScopeDispose(stop);
+ if (immediate)
+ start();
+ return {
+ isSupported,
+ start,
+ stop
+ };
+}
+
+var __defProp$6 = Object.defineProperty;
+var __defProps$2 = Object.defineProperties;
+var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
+var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
+var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$6 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$6.call(b, prop))
+ __defNormalProp$6(a, prop, b[prop]);
+ if (__getOwnPropSymbols$6)
+ for (var prop of __getOwnPropSymbols$6(b)) {
+ if (__propIsEnum$6.call(b, prop))
+ __defNormalProp$6(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
+const defaultState = {
+ x: 0,
+ y: 0,
+ pointerId: 0,
+ pressure: 0,
+ tiltX: 0,
+ tiltY: 0,
+ width: 0,
+ height: 0,
+ twist: 0,
+ pointerType: null
+};
+const keys = /* @__PURE__ */ Object.keys(defaultState);
+function usePointer(options = {}) {
+ const {
+ target = defaultWindow
+ } = options;
+ const isInside = ref(false);
+ const state = ref(options.initialValue || {});
+ Object.assign(state.value, defaultState, state.value);
+ const handler = (event) => {
+ isInside.value = true;
+ if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType))
+ return;
+ state.value = objectPick(event, keys, false);
+ };
+ if (target) {
+ useEventListener(target, "pointerdown", handler, { passive: true });
+ useEventListener(target, "pointermove", handler, { passive: true });
+ useEventListener(target, "pointerleave", () => isInside.value = false, { passive: true });
+ }
+ return __spreadProps$2(__spreadValues$6({}, toRefs(state)), {
+ isInside
+ });
+}
+
+function usePointerLock(target, options = {}) {
+ const { document = defaultDocument, pointerLockOptions } = options;
+ const isSupported = useSupported(() => document && "pointerLockElement" in document);
+ const element = ref();
+ const triggerElement = ref();
+ let targetElement;
+ if (isSupported.value) {
+ useEventListener(document, "pointerlockchange", () => {
+ var _a;
+ const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;
+ if (targetElement && currentElement === targetElement) {
+ element.value = document.pointerLockElement;
+ if (!element.value)
+ targetElement = triggerElement.value = null;
+ }
+ });
+ useEventListener(document, "pointerlockerror", () => {
+ var _a;
+ const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;
+ if (targetElement && currentElement === targetElement) {
+ const action = document.pointerLockElement ? "release" : "acquire";
+ throw new Error(`Failed to ${action} pointer lock.`);
+ }
+ });
+ }
+ async function lock(e, options2) {
+ var _a;
+ if (!isSupported.value)
+ throw new Error("Pointer Lock API is not supported by your browser.");
+ triggerElement.value = e instanceof Event ? e.currentTarget : null;
+ targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e);
+ if (!targetElement)
+ throw new Error("Target element undefined.");
+ targetElement.requestPointerLock(options2 != null ? options2 : pointerLockOptions);
+ return await until(element).toBe(targetElement);
+ }
+ async function unlock() {
+ if (!element.value)
+ return false;
+ document.exitPointerLock();
+ await until(element).toBeNull();
+ return true;
+ }
+ return {
+ isSupported,
+ element,
+ triggerElement,
+ lock,
+ unlock
+ };
+}
+
+function usePointerSwipe(target, options = {}) {
+ const targetRef = toRef(target);
+ const {
+ threshold = 50,
+ onSwipe,
+ onSwipeEnd,
+ onSwipeStart
+ } = options;
+ const posStart = reactive({ x: 0, y: 0 });
+ const updatePosStart = (x, y) => {
+ posStart.x = x;
+ posStart.y = y;
+ };
+ const posEnd = reactive({ x: 0, y: 0 });
+ const updatePosEnd = (x, y) => {
+ posEnd.x = x;
+ posEnd.y = y;
+ };
+ const distanceX = computed(() => posStart.x - posEnd.x);
+ const distanceY = computed(() => posStart.y - posEnd.y);
+ const { max, abs } = Math;
+ const isThresholdExceeded = computed(() => max(abs(distanceX.value), abs(distanceY.value)) >= threshold);
+ const isSwiping = ref(false);
+ const isPointerDown = ref(false);
+ const direction = computed(() => {
+ if (!isThresholdExceeded.value)
+ return "none";
+ if (abs(distanceX.value) > abs(distanceY.value)) {
+ return distanceX.value > 0 ? "left" : "right";
+ } else {
+ return distanceY.value > 0 ? "up" : "down";
+ }
+ });
+ const eventIsAllowed = (e) => {
+ var _a, _b, _c;
+ const isReleasingButton = e.buttons === 0;
+ const isPrimaryButton = e.buttons === 1;
+ return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true;
+ };
+ const stops = [
+ useEventListener(target, "pointerdown", (e) => {
+ var _a, _b;
+ if (!eventIsAllowed(e))
+ return;
+ isPointerDown.value = true;
+ (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "none");
+ const eventTarget = e.target;
+ eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId);
+ const { clientX: x, clientY: y } = e;
+ updatePosStart(x, y);
+ updatePosEnd(x, y);
+ onSwipeStart == null ? void 0 : onSwipeStart(e);
+ }),
+ useEventListener(target, "pointermove", (e) => {
+ if (!eventIsAllowed(e))
+ return;
+ if (!isPointerDown.value)
+ return;
+ const { clientX: x, clientY: y } = e;
+ updatePosEnd(x, y);
+ if (!isSwiping.value && isThresholdExceeded.value)
+ isSwiping.value = true;
+ if (isSwiping.value)
+ onSwipe == null ? void 0 : onSwipe(e);
+ }),
+ useEventListener(target, "pointerup", (e) => {
+ var _a, _b;
+ if (!eventIsAllowed(e))
+ return;
+ if (isSwiping.value)
+ onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);
+ isPointerDown.value = false;
+ isSwiping.value = false;
+ (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "initial");
+ })
+ ];
+ const stop = () => stops.forEach((s) => s());
+ return {
+ isSwiping: readonly(isSwiping),
+ direction: readonly(direction),
+ posStart: readonly(posStart),
+ posEnd: readonly(posEnd),
+ distanceX,
+ distanceY,
+ stop
+ };
+}
+
+function usePreferredColorScheme(options) {
+ const isLight = useMediaQuery("(prefers-color-scheme: light)", options);
+ const isDark = useMediaQuery("(prefers-color-scheme: dark)", options);
+ return computed(() => {
+ if (isDark.value)
+ return "dark";
+ if (isLight.value)
+ return "light";
+ return "no-preference";
+ });
+}
+
+function usePreferredContrast(options) {
+ const isMore = useMediaQuery("(prefers-contrast: more)", options);
+ const isLess = useMediaQuery("(prefers-contrast: less)", options);
+ const isCustom = useMediaQuery("(prefers-contrast: custom)", options);
+ return computed(() => {
+ if (isMore.value)
+ return "more";
+ if (isLess.value)
+ return "less";
+ if (isCustom.value)
+ return "custom";
+ return "no-preference";
+ });
+}
+
+function usePreferredLanguages(options = {}) {
+ const { window = defaultWindow } = options;
+ if (!window)
+ return ref(["en"]);
+ const navigator = window.navigator;
+ const value = ref(navigator.languages);
+ useEventListener(window, "languagechange", () => {
+ value.value = navigator.languages;
+ });
+ return value;
+}
+
+function usePreferredReducedMotion(options) {
+ const isReduced = useMediaQuery("(prefers-reduced-motion: reduce)", options);
+ return computed(() => {
+ if (isReduced.value)
+ return "reduce";
+ return "no-preference";
+ });
+}
+
+function usePrevious(value, initialValue) {
+ const previous = shallowRef(initialValue);
+ watch(
+ toRef(value),
+ (_, oldValue) => {
+ previous.value = oldValue;
+ },
+ { flush: "sync" }
+ );
+ return readonly(previous);
+}
+
+function useScreenOrientation(options = {}) {
+ const {
+ window = defaultWindow
+ } = options;
+ const isSupported = useSupported(() => window && "screen" in window && "orientation" in window.screen);
+ const screenOrientation = isSupported.value ? window.screen.orientation : {};
+ const orientation = ref(screenOrientation.type);
+ const angle = ref(screenOrientation.angle || 0);
+ if (isSupported.value) {
+ useEventListener(window, "orientationchange", () => {
+ orientation.value = screenOrientation.type;
+ angle.value = screenOrientation.angle;
+ });
+ }
+ const lockOrientation = (type) => {
+ if (!isSupported.value)
+ return Promise.reject(new Error("Not supported"));
+ return screenOrientation.lock(type);
+ };
+ const unlockOrientation = () => {
+ if (isSupported.value)
+ screenOrientation.unlock();
+ };
+ return {
+ isSupported,
+ orientation,
+ angle,
+ lockOrientation,
+ unlockOrientation
+ };
+}
+
+const topVarName = "--vueuse-safe-area-top";
+const rightVarName = "--vueuse-safe-area-right";
+const bottomVarName = "--vueuse-safe-area-bottom";
+const leftVarName = "--vueuse-safe-area-left";
+function useScreenSafeArea() {
+ const top = ref("");
+ const right = ref("");
+ const bottom = ref("");
+ const left = ref("");
+ if (isClient) {
+ const topCssVar = useCssVar(topVarName);
+ const rightCssVar = useCssVar(rightVarName);
+ const bottomCssVar = useCssVar(bottomVarName);
+ const leftCssVar = useCssVar(leftVarName);
+ topCssVar.value = "env(safe-area-inset-top, 0px)";
+ rightCssVar.value = "env(safe-area-inset-right, 0px)";
+ bottomCssVar.value = "env(safe-area-inset-bottom, 0px)";
+ leftCssVar.value = "env(safe-area-inset-left, 0px)";
+ update();
+ useEventListener("resize", useDebounceFn(update));
+ }
+ function update() {
+ top.value = getValue(topVarName);
+ right.value = getValue(rightVarName);
+ bottom.value = getValue(bottomVarName);
+ left.value = getValue(leftVarName);
+ }
+ return {
+ top,
+ right,
+ bottom,
+ left,
+ update
+ };
+}
+function getValue(position) {
+ return getComputedStyle(document.documentElement).getPropertyValue(position);
+}
+
+function useScriptTag(src, onLoaded = noop, options = {}) {
+ const {
+ immediate = true,
+ manual = false,
+ type = "text/javascript",
+ async = true,
+ crossOrigin,
+ referrerPolicy,
+ noModule,
+ defer,
+ document = defaultDocument,
+ attrs = {}
+ } = options;
+ const scriptTag = ref(null);
+ let _promise = null;
+ const loadScript = (waitForScriptLoad) => new Promise((resolve, reject) => {
+ const resolveWithElement = (el2) => {
+ scriptTag.value = el2;
+ resolve(el2);
+ return el2;
+ };
+ if (!document) {
+ resolve(false);
+ return;
+ }
+ let shouldAppend = false;
+ let el = document.querySelector(`script[src="${toValue(src)}"]`);
+ if (!el) {
+ el = document.createElement("script");
+ el.type = type;
+ el.async = async;
+ el.src = toValue(src);
+ if (defer)
+ el.defer = defer;
+ if (crossOrigin)
+ el.crossOrigin = crossOrigin;
+ if (noModule)
+ el.noModule = noModule;
+ if (referrerPolicy)
+ el.referrerPolicy = referrerPolicy;
+ Object.entries(attrs).forEach(([name, value]) => el == null ? void 0 : el.setAttribute(name, value));
+ shouldAppend = true;
+ } else if (el.hasAttribute("data-loaded")) {
+ resolveWithElement(el);
+ }
+ el.addEventListener("error", (event) => reject(event));
+ el.addEventListener("abort", (event) => reject(event));
+ el.addEventListener("load", () => {
+ el.setAttribute("data-loaded", "true");
+ onLoaded(el);
+ resolveWithElement(el);
+ });
+ if (shouldAppend)
+ el = document.head.appendChild(el);
+ if (!waitForScriptLoad)
+ resolveWithElement(el);
+ });
+ const load = (waitForScriptLoad = true) => {
+ if (!_promise)
+ _promise = loadScript(waitForScriptLoad);
+ return _promise;
+ };
+ const unload = () => {
+ if (!document)
+ return;
+ _promise = null;
+ if (scriptTag.value)
+ scriptTag.value = null;
+ const el = document.querySelector(`script[src="${toValue(src)}"]`);
+ if (el)
+ document.head.removeChild(el);
+ };
+ if (immediate && !manual)
+ tryOnMounted(load);
+ if (!manual)
+ tryOnUnmounted(unload);
+ return { scriptTag, load, unload };
+}
+
+function checkOverflowScroll(ele) {
+ const style = window.getComputedStyle(ele);
+ if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientHeight < ele.scrollHeight || style.overflowY === "auto" && ele.clientWidth < ele.scrollWidth) {
+ return true;
+ } else {
+ const parent = ele.parentNode;
+ if (!parent || parent.tagName === "BODY")
+ return false;
+ return checkOverflowScroll(parent);
+ }
+}
+function preventDefault(rawEvent) {
+ const e = rawEvent || window.event;
+ const _target = e.target;
+ if (checkOverflowScroll(_target))
+ return false;
+ if (e.touches.length > 1)
+ return true;
+ if (e.preventDefault)
+ e.preventDefault();
+ return false;
+}
+function useScrollLock(element, initialState = false) {
+ const isLocked = ref(initialState);
+ let stopTouchMoveListener = null;
+ let initialOverflow;
+ watch(toRef(element), (el) => {
+ if (el) {
+ const ele = el;
+ initialOverflow = ele.style.overflow;
+ if (isLocked.value)
+ ele.style.overflow = "hidden";
+ }
+ }, {
+ immediate: true
+ });
+ const lock = () => {
+ const ele = toValue(element);
+ if (!ele || isLocked.value)
+ return;
+ if (isIOS) {
+ stopTouchMoveListener = useEventListener(
+ ele,
+ "touchmove",
+ (e) => {
+ preventDefault(e);
+ },
+ { passive: false }
+ );
+ }
+ ele.style.overflow = "hidden";
+ isLocked.value = true;
+ };
+ const unlock = () => {
+ const ele = toValue(element);
+ if (!ele || !isLocked.value)
+ return;
+ isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());
+ ele.style.overflow = initialOverflow;
+ isLocked.value = false;
+ };
+ tryOnScopeDispose(unlock);
+ return computed({
+ get() {
+ return isLocked.value;
+ },
+ set(v) {
+ if (v)
+ lock();
+ else
+ unlock();
+ }
+ });
+}
+
+function useSessionStorage(key, initialValue, options = {}) {
+ const { window = defaultWindow } = options;
+ return useStorage(key, initialValue, window == null ? void 0 : window.sessionStorage, options);
+}
+
+var __defProp$5 = Object.defineProperty;
+var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
+var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
+var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$5 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$5.call(b, prop))
+ __defNormalProp$5(a, prop, b[prop]);
+ if (__getOwnPropSymbols$5)
+ for (var prop of __getOwnPropSymbols$5(b)) {
+ if (__propIsEnum$5.call(b, prop))
+ __defNormalProp$5(a, prop, b[prop]);
+ }
+ return a;
+};
+function useShare(shareOptions = {}, options = {}) {
+ const { navigator = defaultNavigator } = options;
+ const _navigator = navigator;
+ const isSupported = useSupported(() => _navigator && "canShare" in _navigator);
+ const share = async (overrideOptions = {}) => {
+ if (isSupported.value) {
+ const data = __spreadValues$5(__spreadValues$5({}, toValue(shareOptions)), toValue(overrideOptions));
+ let granted = true;
+ if (data.files && _navigator.canShare)
+ granted = _navigator.canShare({ files: data.files });
+ if (granted)
+ return _navigator.share(data);
+ }
+ };
+ return {
+ isSupported,
+ share
+ };
+}
+
+const defaultSortFn = (source, compareFn) => source.sort(compareFn);
+const defaultCompare = (a, b) => a - b;
+function useSorted(...args) {
+ var _a, _b, _c, _d;
+ const [source] = args;
+ let compareFn = defaultCompare;
+ let options = {};
+ if (args.length === 2) {
+ if (typeof args[1] === "object") {
+ options = args[1];
+ compareFn = (_a = options.compareFn) != null ? _a : defaultCompare;
+ } else {
+ compareFn = (_b = args[1]) != null ? _b : defaultCompare;
+ }
+ } else if (args.length > 2) {
+ compareFn = (_c = args[1]) != null ? _c : defaultCompare;
+ options = (_d = args[2]) != null ? _d : {};
+ }
+ const {
+ dirty = false,
+ sortFn = defaultSortFn
+ } = options;
+ if (!dirty)
+ return computed(() => sortFn([...toValue(source)], compareFn));
+ watchEffect(() => {
+ const result = sortFn(toValue(source), compareFn);
+ if (isRef(source))
+ source.value = result;
+ else
+ source.splice(0, source.length, ...result);
+ });
+ return source;
+}
+
+function useSpeechRecognition(options = {}) {
+ const {
+ interimResults = true,
+ continuous = true,
+ window = defaultWindow
+ } = options;
+ const lang = toRef(options.lang || "en-US");
+ const isListening = ref(false);
+ const isFinal = ref(false);
+ const result = ref("");
+ const error = shallowRef(void 0);
+ const toggle = (value = !isListening.value) => {
+ isListening.value = value;
+ };
+ const start = () => {
+ isListening.value = true;
+ };
+ const stop = () => {
+ isListening.value = false;
+ };
+ const SpeechRecognition = window && (window.SpeechRecognition || window.webkitSpeechRecognition);
+ const isSupported = useSupported(() => SpeechRecognition);
+ let recognition;
+ if (isSupported.value) {
+ recognition = new SpeechRecognition();
+ recognition.continuous = continuous;
+ recognition.interimResults = interimResults;
+ recognition.lang = toValue(lang);
+ recognition.onstart = () => {
+ isFinal.value = false;
+ };
+ watch(lang, (lang2) => {
+ if (recognition && !isListening.value)
+ recognition.lang = lang2;
+ });
+ recognition.onresult = (event) => {
+ const transcript = Array.from(event.results).map((result2) => {
+ isFinal.value = result2.isFinal;
+ return result2[0];
+ }).map((result2) => result2.transcript).join("");
+ result.value = transcript;
+ error.value = void 0;
+ };
+ recognition.onerror = (event) => {
+ error.value = event;
+ };
+ recognition.onend = () => {
+ isListening.value = false;
+ recognition.lang = toValue(lang);
+ };
+ watch(isListening, () => {
+ if (isListening.value)
+ recognition.start();
+ else
+ recognition.stop();
+ });
+ }
+ tryOnScopeDispose(() => {
+ isListening.value = false;
+ });
+ return {
+ isSupported,
+ isListening,
+ isFinal,
+ recognition,
+ result,
+ error,
+ toggle,
+ start,
+ stop
+ };
+}
+
+function useSpeechSynthesis(text, options = {}) {
+ const {
+ pitch = 1,
+ rate = 1,
+ volume = 1,
+ window = defaultWindow
+ } = options;
+ const synth = window && window.speechSynthesis;
+ const isSupported = useSupported(() => synth);
+ const isPlaying = ref(false);
+ const status = ref("init");
+ const spokenText = toRef(text || "");
+ const lang = toRef(options.lang || "en-US");
+ const error = shallowRef(void 0);
+ const toggle = (value = !isPlaying.value) => {
+ isPlaying.value = value;
+ };
+ const bindEventsForUtterance = (utterance2) => {
+ utterance2.lang = toValue(lang);
+ utterance2.voice = toValue(options.voice) || null;
+ utterance2.pitch = pitch;
+ utterance2.rate = rate;
+ utterance2.volume = volume;
+ utterance2.onstart = () => {
+ isPlaying.value = true;
+ status.value = "play";
+ };
+ utterance2.onpause = () => {
+ isPlaying.value = false;
+ status.value = "pause";
+ };
+ utterance2.onresume = () => {
+ isPlaying.value = true;
+ status.value = "play";
+ };
+ utterance2.onend = () => {
+ isPlaying.value = false;
+ status.value = "end";
+ };
+ utterance2.onerror = (event) => {
+ error.value = event;
+ };
+ };
+ const utterance = computed(() => {
+ isPlaying.value = false;
+ status.value = "init";
+ const newUtterance = new SpeechSynthesisUtterance(spokenText.value);
+ bindEventsForUtterance(newUtterance);
+ return newUtterance;
+ });
+ const speak = () => {
+ synth.cancel();
+ utterance && synth.speak(utterance.value);
+ };
+ const stop = () => {
+ synth.cancel();
+ isPlaying.value = false;
+ };
+ if (isSupported.value) {
+ bindEventsForUtterance(utterance.value);
+ watch(lang, (lang2) => {
+ if (utterance.value && !isPlaying.value)
+ utterance.value.lang = lang2;
+ });
+ if (options.voice) {
+ watch(options.voice, () => {
+ synth.cancel();
+ });
+ }
+ watch(isPlaying, () => {
+ if (isPlaying.value)
+ synth.resume();
+ else
+ synth.pause();
+ });
+ }
+ tryOnScopeDispose(() => {
+ isPlaying.value = false;
+ });
+ return {
+ isSupported,
+ isPlaying,
+ status,
+ utterance,
+ error,
+ stop,
+ toggle,
+ speak
+ };
+}
+
+function useStepper(steps, initialStep) {
+ const stepsRef = ref(steps);
+ const stepNames = computed(() => Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value));
+ const index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0]));
+ const current = computed(() => at(index.value));
+ const isFirst = computed(() => index.value === 0);
+ const isLast = computed(() => index.value === stepNames.value.length - 1);
+ const next = computed(() => stepNames.value[index.value + 1]);
+ const previous = computed(() => stepNames.value[index.value - 1]);
+ function at(index2) {
+ if (Array.isArray(stepsRef.value))
+ return stepsRef.value[index2];
+ return stepsRef.value[stepNames.value[index2]];
+ }
+ function get(step) {
+ if (!stepNames.value.includes(step))
+ return;
+ return at(stepNames.value.indexOf(step));
+ }
+ function goTo(step) {
+ if (stepNames.value.includes(step))
+ index.value = stepNames.value.indexOf(step);
+ }
+ function goToNext() {
+ if (isLast.value)
+ return;
+ index.value++;
+ }
+ function goToPrevious() {
+ if (isFirst.value)
+ return;
+ index.value--;
+ }
+ function goBackTo(step) {
+ if (isAfter(step))
+ goTo(step);
+ }
+ function isNext(step) {
+ return stepNames.value.indexOf(step) === index.value + 1;
+ }
+ function isPrevious(step) {
+ return stepNames.value.indexOf(step) === index.value - 1;
+ }
+ function isCurrent(step) {
+ return stepNames.value.indexOf(step) === index.value;
+ }
+ function isBefore(step) {
+ return index.value < stepNames.value.indexOf(step);
+ }
+ function isAfter(step) {
+ return index.value > stepNames.value.indexOf(step);
+ }
+ return {
+ steps: stepsRef,
+ stepNames,
+ index,
+ current,
+ next,
+ previous,
+ isFirst,
+ isLast,
+ at,
+ get,
+ goTo,
+ goToNext,
+ goToPrevious,
+ goBackTo,
+ isNext,
+ isPrevious,
+ isCurrent,
+ isBefore,
+ isAfter
+ };
+}
+
+var __defProp$4 = Object.defineProperty;
+var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
+var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
+var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$4 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$4.call(b, prop))
+ __defNormalProp$4(a, prop, b[prop]);
+ if (__getOwnPropSymbols$4)
+ for (var prop of __getOwnPropSymbols$4(b)) {
+ if (__propIsEnum$4.call(b, prop))
+ __defNormalProp$4(a, prop, b[prop]);
+ }
+ return a;
+};
+function useStorageAsync(key, initialValue, storage, options = {}) {
+ var _a;
+ const {
+ flush = "pre",
+ deep = true,
+ listenToStorageChanges = true,
+ writeDefaults = true,
+ mergeDefaults = false,
+ shallow,
+ window = defaultWindow,
+ eventFilter,
+ onError = (e) => {
+ console.error(e);
+ }
+ } = options;
+ const rawInit = toValue(initialValue);
+ const type = guessSerializerType(rawInit);
+ const data = (shallow ? shallowRef : ref)(initialValue);
+ const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];
+ if (!storage) {
+ try {
+ storage = getSSRHandler("getDefaultStorage", () => {
+ var _a2;
+ return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;
+ })();
+ } catch (e) {
+ onError(e);
+ }
+ }
+ async function read(event) {
+ if (!storage || event && event.key !== key)
+ return;
+ try {
+ const rawValue = event ? event.newValue : await storage.getItem(key);
+ if (rawValue == null) {
+ data.value = rawInit;
+ if (writeDefaults && rawInit !== null)
+ await storage.setItem(key, await serializer.write(rawInit));
+ } else if (mergeDefaults) {
+ const value = await serializer.read(rawValue);
+ if (typeof mergeDefaults === "function")
+ data.value = mergeDefaults(value, rawInit);
+ else if (type === "object" && !Array.isArray(value))
+ data.value = __spreadValues$4(__spreadValues$4({}, rawInit), value);
+ else
+ data.value = value;
+ } else {
+ data.value = await serializer.read(rawValue);
+ }
+ } catch (e) {
+ onError(e);
+ }
+ }
+ read();
+ if (window && listenToStorageChanges)
+ useEventListener(window, "storage", (e) => Promise.resolve().then(() => read(e)));
+ if (storage) {
+ watchWithFilter(
+ data,
+ async () => {
+ try {
+ if (data.value == null)
+ await storage.removeItem(key);
+ else
+ await storage.setItem(key, await serializer.write(data.value));
+ } catch (e) {
+ onError(e);
+ }
+ },
+ {
+ flush,
+ deep,
+ eventFilter
+ }
+ );
+ }
+ return data;
+}
+
+let _id = 0;
+function useStyleTag(css, options = {}) {
+ const isLoaded = ref(false);
+ const {
+ document = defaultDocument,
+ immediate = true,
+ manual = false,
+ id = `vueuse_styletag_${++_id}`
+ } = options;
+ const cssRef = ref(css);
+ let stop = () => {
+ };
+ const load = () => {
+ if (!document)
+ return;
+ const el = document.getElementById(id) || document.createElement("style");
+ if (!el.isConnected) {
+ el.type = "text/css";
+ el.id = id;
+ if (options.media)
+ el.media = options.media;
+ document.head.appendChild(el);
+ }
+ if (isLoaded.value)
+ return;
+ stop = watch(
+ cssRef,
+ (value) => {
+ el.textContent = value;
+ },
+ { immediate: true }
+ );
+ isLoaded.value = true;
+ };
+ const unload = () => {
+ if (!document || !isLoaded.value)
+ return;
+ stop();
+ document.head.removeChild(document.getElementById(id));
+ isLoaded.value = false;
+ };
+ if (immediate && !manual)
+ tryOnMounted(load);
+ if (!manual)
+ tryOnScopeDispose(unload);
+ return {
+ id,
+ css: cssRef,
+ unload,
+ load,
+ isLoaded: readonly(isLoaded)
+ };
+}
+
+function useSwipe(target, options = {}) {
+ const {
+ threshold = 50,
+ onSwipe,
+ onSwipeEnd,
+ onSwipeStart,
+ passive = true,
+ window = defaultWindow
+ } = options;
+ const coordsStart = reactive({ x: 0, y: 0 });
+ const coordsEnd = reactive({ x: 0, y: 0 });
+ const diffX = computed(() => coordsStart.x - coordsEnd.x);
+ const diffY = computed(() => coordsStart.y - coordsEnd.y);
+ const { max, abs } = Math;
+ const isThresholdExceeded = computed(() => max(abs(diffX.value), abs(diffY.value)) >= threshold);
+ const isSwiping = ref(false);
+ const direction = computed(() => {
+ if (!isThresholdExceeded.value)
+ return "none";
+ if (abs(diffX.value) > abs(diffY.value)) {
+ return diffX.value > 0 ? "left" : "right";
+ } else {
+ return diffY.value > 0 ? "up" : "down";
+ }
+ });
+ const getTouchEventCoords = (e) => [e.touches[0].clientX, e.touches[0].clientY];
+ const updateCoordsStart = (x, y) => {
+ coordsStart.x = x;
+ coordsStart.y = y;
+ };
+ const updateCoordsEnd = (x, y) => {
+ coordsEnd.x = x;
+ coordsEnd.y = y;
+ };
+ let listenerOptions;
+ const isPassiveEventSupported = checkPassiveEventSupport(window == null ? void 0 : window.document);
+ if (!passive)
+ listenerOptions = isPassiveEventSupported ? { passive: false, capture: true } : { capture: true };
+ else
+ listenerOptions = isPassiveEventSupported ? { passive: true } : { capture: false };
+ const onTouchEnd = (e) => {
+ if (isSwiping.value)
+ onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);
+ isSwiping.value = false;
+ };
+ const stops = [
+ useEventListener(target, "touchstart", (e) => {
+ if (e.touches.length !== 1)
+ return;
+ if (listenerOptions.capture && !listenerOptions.passive)
+ e.preventDefault();
+ const [x, y] = getTouchEventCoords(e);
+ updateCoordsStart(x, y);
+ updateCoordsEnd(x, y);
+ onSwipeStart == null ? void 0 : onSwipeStart(e);
+ }, listenerOptions),
+ useEventListener(target, "touchmove", (e) => {
+ if (e.touches.length !== 1)
+ return;
+ const [x, y] = getTouchEventCoords(e);
+ updateCoordsEnd(x, y);
+ if (!isSwiping.value && isThresholdExceeded.value)
+ isSwiping.value = true;
+ if (isSwiping.value)
+ onSwipe == null ? void 0 : onSwipe(e);
+ }, listenerOptions),
+ useEventListener(target, "touchend", onTouchEnd, listenerOptions),
+ useEventListener(target, "touchcancel", onTouchEnd, listenerOptions)
+ ];
+ const stop = () => stops.forEach((s) => s());
+ return {
+ isPassiveEventSupported,
+ isSwiping,
+ direction,
+ coordsStart,
+ coordsEnd,
+ lengthX: diffX,
+ lengthY: diffY,
+ stop
+ };
+}
+function checkPassiveEventSupport(document) {
+ if (!document)
+ return false;
+ let supportsPassive = false;
+ const optionsBlock = {
+ get passive() {
+ supportsPassive = true;
+ return false;
+ }
+ };
+ document.addEventListener("x", noop, optionsBlock);
+ document.removeEventListener("x", noop);
+ return supportsPassive;
+}
+
+function useTemplateRefsList() {
+ const refs = ref([]);
+ refs.value.set = (el) => {
+ if (el)
+ refs.value.push(el);
+ };
+ onBeforeUpdate(() => {
+ refs.value.length = 0;
+ });
+ return refs;
+}
+
+function useTextDirection(options = {}) {
+ const {
+ document = defaultDocument,
+ selector = "html",
+ observe = false,
+ initialValue = "ltr"
+ } = options;
+ function getValue() {
+ var _a, _b;
+ return (_b = (_a = document == null ? void 0 : document.querySelector(selector)) == null ? void 0 : _a.getAttribute("dir")) != null ? _b : initialValue;
+ }
+ const dir = ref(getValue());
+ tryOnMounted(() => dir.value = getValue());
+ if (observe && document) {
+ useMutationObserver(
+ document.querySelector(selector),
+ () => dir.value = getValue(),
+ { attributes: true }
+ );
+ }
+ return computed({
+ get() {
+ return dir.value;
+ },
+ set(v) {
+ var _a, _b;
+ dir.value = v;
+ if (!document)
+ return;
+ if (dir.value)
+ (_a = document.querySelector(selector)) == null ? void 0 : _a.setAttribute("dir", dir.value);
+ else
+ (_b = document.querySelector(selector)) == null ? void 0 : _b.removeAttribute("dir");
+ }
+ });
+}
+
+function getRangesFromSelection(selection) {
+ var _a;
+ const rangeCount = (_a = selection.rangeCount) != null ? _a : 0;
+ const ranges = new Array(rangeCount);
+ for (let i = 0; i < rangeCount; i++) {
+ const range = selection.getRangeAt(i);
+ ranges[i] = range;
+ }
+ return ranges;
+}
+function useTextSelection(options = {}) {
+ const {
+ window = defaultWindow
+ } = options;
+ const selection = ref(null);
+ const text = computed(() => {
+ var _a, _b;
+ return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : "";
+ });
+ const ranges = computed(() => selection.value ? getRangesFromSelection(selection.value) : []);
+ const rects = computed(() => ranges.value.map((range) => range.getBoundingClientRect()));
+ function onSelectionChange() {
+ selection.value = null;
+ if (window)
+ selection.value = window.getSelection();
+ }
+ if (window)
+ useEventListener(window.document, "selectionchange", onSelectionChange);
+ return {
+ text,
+ rects,
+ ranges,
+ selection
+ };
+}
+
+function useTextareaAutosize(options) {
+ const textarea = ref(options == null ? void 0 : options.element);
+ const input = ref(options == null ? void 0 : options.input);
+ const textareaScrollHeight = ref(1);
+ function triggerResize() {
+ var _a, _b;
+ if (!textarea.value)
+ return;
+ let height = "";
+ textarea.value.style.height = "1px";
+ textareaScrollHeight.value = (_a = textarea.value) == null ? void 0 : _a.scrollHeight;
+ if (options == null ? void 0 : options.styleTarget)
+ toValue(options.styleTarget).style.height = `${textareaScrollHeight.value}px`;
+ else
+ height = `${textareaScrollHeight.value}px`;
+ textarea.value.style.height = height;
+ (_b = options == null ? void 0 : options.onResize) == null ? void 0 : _b.call(options);
+ }
+ watch([input, textarea], triggerResize, { immediate: true });
+ useResizeObserver(textarea, () => triggerResize());
+ if (options == null ? void 0 : options.watch)
+ watch(options.watch, triggerResize, { immediate: true, deep: true });
+ return {
+ textarea,
+ input,
+ triggerResize
+ };
+}
+
+var __defProp$3 = Object.defineProperty;
+var __defProps$1 = Object.defineProperties;
+var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
+var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
+var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$3 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$3.call(b, prop))
+ __defNormalProp$3(a, prop, b[prop]);
+ if (__getOwnPropSymbols$3)
+ for (var prop of __getOwnPropSymbols$3(b)) {
+ if (__propIsEnum$3.call(b, prop))
+ __defNormalProp$3(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
+function useThrottledRefHistory(source, options = {}) {
+ const { throttle = 200, trailing = true } = options;
+ const filter = throttleFilter(throttle, trailing);
+ const history = useRefHistory(source, __spreadProps$1(__spreadValues$3({}, options), { eventFilter: filter }));
+ return __spreadValues$3({}, history);
+}
+
+var __defProp$2 = Object.defineProperty;
+var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
+var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
+var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$2 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$2.call(b, prop))
+ __defNormalProp$2(a, prop, b[prop]);
+ if (__getOwnPropSymbols$2)
+ for (var prop of __getOwnPropSymbols$2(b)) {
+ if (__propIsEnum$2.call(b, prop))
+ __defNormalProp$2(a, prop, b[prop]);
+ }
+ return a;
+};
+var __objRest = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$2)
+ for (var prop of __getOwnPropSymbols$2(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+const DEFAULT_UNITS = [
+ { max: 6e4, value: 1e3, name: "second" },
+ { max: 276e4, value: 6e4, name: "minute" },
+ { max: 72e6, value: 36e5, name: "hour" },
+ { max: 5184e5, value: 864e5, name: "day" },
+ { max: 24192e5, value: 6048e5, name: "week" },
+ { max: 28512e6, value: 2592e6, name: "month" },
+ { max: Infinity, value: 31536e6, name: "year" }
+];
+const DEFAULT_MESSAGES = {
+ justNow: "just now",
+ past: (n) => n.match(/\d/) ? `${n} ago` : n,
+ future: (n) => n.match(/\d/) ? `in ${n}` : n,
+ month: (n, past) => n === 1 ? past ? "last month" : "next month" : `${n} month${n > 1 ? "s" : ""}`,
+ year: (n, past) => n === 1 ? past ? "last year" : "next year" : `${n} year${n > 1 ? "s" : ""}`,
+ day: (n, past) => n === 1 ? past ? "yesterday" : "tomorrow" : `${n} day${n > 1 ? "s" : ""}`,
+ week: (n, past) => n === 1 ? past ? "last week" : "next week" : `${n} week${n > 1 ? "s" : ""}`,
+ hour: (n) => `${n} hour${n > 1 ? "s" : ""}`,
+ minute: (n) => `${n} minute${n > 1 ? "s" : ""}`,
+ second: (n) => `${n} second${n > 1 ? "s" : ""}`,
+ invalid: ""
+};
+function DEFAULT_FORMATTER(date) {
+ return date.toISOString().slice(0, 10);
+}
+function useTimeAgo(time, options = {}) {
+ const {
+ controls: exposeControls = false,
+ updateInterval = 3e4
+ } = options;
+ const _a = useNow({ interval: updateInterval, controls: true }), { now } = _a, controls = __objRest(_a, ["now"]);
+ const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now.value)));
+ if (exposeControls) {
+ return __spreadValues$2({
+ timeAgo
+ }, controls);
+ } else {
+ return timeAgo;
+ }
+}
+function formatTimeAgo(from, options = {}, now = Date.now()) {
+ var _a;
+ const {
+ max,
+ messages = DEFAULT_MESSAGES,
+ fullDateFormatter = DEFAULT_FORMATTER,
+ units = DEFAULT_UNITS,
+ showSecond = false,
+ rounding = "round"
+ } = options;
+ const roundFn = typeof rounding === "number" ? (n) => +n.toFixed(rounding) : Math[rounding];
+ const diff = +now - +from;
+ const absDiff = Math.abs(diff);
+ function getValue(diff2, unit) {
+ return roundFn(Math.abs(diff2) / unit.value);
+ }
+ function format(diff2, unit) {
+ const val = getValue(diff2, unit);
+ const past = diff2 > 0;
+ const str = applyFormat(unit.name, val, past);
+ return applyFormat(past ? "past" : "future", str, past);
+ }
+ function applyFormat(name, val, isPast) {
+ const formatter = messages[name];
+ if (typeof formatter === "function")
+ return formatter(val, isPast);
+ return formatter.replace("{0}", val.toString());
+ }
+ if (absDiff < 6e4 && !showSecond)
+ return messages.justNow;
+ if (typeof max === "number" && absDiff > max)
+ return fullDateFormatter(new Date(from));
+ if (typeof max === "string") {
+ const unitMax = (_a = units.find((i) => i.name === max)) == null ? void 0 : _a.max;
+ if (unitMax && absDiff > unitMax)
+ return fullDateFormatter(new Date(from));
+ }
+ for (const [idx, unit] of units.entries()) {
+ const val = getValue(diff, unit);
+ if (val <= 0 && units[idx - 1])
+ return format(diff, units[idx - 1]);
+ if (absDiff < unit.max)
+ return format(diff, unit);
+ }
+ return messages.invalid;
+}
+
+function useTimeoutPoll(fn, interval, timeoutPollOptions) {
+ const { start } = useTimeoutFn(loop, interval);
+ const isActive = ref(false);
+ async function loop() {
+ if (!isActive.value)
+ return;
+ await fn();
+ start();
+ }
+ function resume() {
+ if (!isActive.value) {
+ isActive.value = true;
+ loop();
+ }
+ }
+ function pause() {
+ isActive.value = false;
+ }
+ if (timeoutPollOptions == null ? void 0 : timeoutPollOptions.immediate)
+ resume();
+ tryOnScopeDispose(pause);
+ return {
+ isActive,
+ pause,
+ resume
+ };
+}
+
+var __defProp$1 = Object.defineProperty;
+var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
+var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
+var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$1 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$1.call(b, prop))
+ __defNormalProp$1(a, prop, b[prop]);
+ if (__getOwnPropSymbols$1)
+ for (var prop of __getOwnPropSymbols$1(b)) {
+ if (__propIsEnum$1.call(b, prop))
+ __defNormalProp$1(a, prop, b[prop]);
+ }
+ return a;
+};
+function useTimestamp(options = {}) {
+ const {
+ controls: exposeControls = false,
+ offset = 0,
+ immediate = true,
+ interval = "requestAnimationFrame",
+ callback
+ } = options;
+ const ts = ref(timestamp() + offset);
+ const update = () => ts.value = timestamp() + offset;
+ const cb = callback ? () => {
+ update();
+ callback(ts.value);
+ } : update;
+ const controls = interval === "requestAnimationFrame" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate });
+ if (exposeControls) {
+ return __spreadValues$1({
+ timestamp: ts
+ }, controls);
+ } else {
+ return ts;
+ }
+}
+
+function useTitle(newTitle = null, options = {}) {
+ var _a, _b;
+ const {
+ document = defaultDocument
+ } = options;
+ const title = toRef((_a = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _a : null);
+ const isReadonly = newTitle && typeof newTitle === "function";
+ function format(t) {
+ if (!("titleTemplate" in options))
+ return t;
+ const template = options.titleTemplate || "%s";
+ return typeof template === "function" ? template(t) : toValue(template).replace(/%s/g, t);
+ }
+ watch(
+ title,
+ (t, o) => {
+ if (t !== o && document)
+ document.title = format(typeof t === "string" ? t : "");
+ },
+ { immediate: true }
+ );
+ if (options.observe && !options.titleTemplate && document && !isReadonly) {
+ useMutationObserver(
+ (_b = document.head) == null ? void 0 : _b.querySelector("title"),
+ () => {
+ if (document && document.title !== title.value)
+ title.value = format(document.title);
+ },
+ { childList: true }
+ );
+ }
+ return title;
+}
+
+var __defProp = Object.defineProperty;
+var __defProps = Object.defineProperties;
+var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp.call(b, prop))
+ __defNormalProp(a, prop, b[prop]);
+ if (__getOwnPropSymbols)
+ for (var prop of __getOwnPropSymbols(b)) {
+ if (__propIsEnum.call(b, prop))
+ __defNormalProp(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
+const _TransitionPresets = {
+ easeInSine: [0.12, 0, 0.39, 0],
+ easeOutSine: [0.61, 1, 0.88, 1],
+ easeInOutSine: [0.37, 0, 0.63, 1],
+ easeInQuad: [0.11, 0, 0.5, 0],
+ easeOutQuad: [0.5, 1, 0.89, 1],
+ easeInOutQuad: [0.45, 0, 0.55, 1],
+ easeInCubic: [0.32, 0, 0.67, 0],
+ easeOutCubic: [0.33, 1, 0.68, 1],
+ easeInOutCubic: [0.65, 0, 0.35, 1],
+ easeInQuart: [0.5, 0, 0.75, 0],
+ easeOutQuart: [0.25, 1, 0.5, 1],
+ easeInOutQuart: [0.76, 0, 0.24, 1],
+ easeInQuint: [0.64, 0, 0.78, 0],
+ easeOutQuint: [0.22, 1, 0.36, 1],
+ easeInOutQuint: [0.83, 0, 0.17, 1],
+ easeInExpo: [0.7, 0, 0.84, 0],
+ easeOutExpo: [0.16, 1, 0.3, 1],
+ easeInOutExpo: [0.87, 0, 0.13, 1],
+ easeInCirc: [0.55, 0, 1, 0.45],
+ easeOutCirc: [0, 0.55, 0.45, 1],
+ easeInOutCirc: [0.85, 0, 0.15, 1],
+ easeInBack: [0.36, 0, 0.66, -0.56],
+ easeOutBack: [0.34, 1.56, 0.64, 1],
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
+};
+const TransitionPresets = /* @__PURE__ */ Object.assign({}, { linear: identity }, _TransitionPresets);
+function createEasingFunction([p0, p1, p2, p3]) {
+ const a = (a1, a2) => 1 - 3 * a2 + 3 * a1;
+ const b = (a1, a2) => 3 * a2 - 6 * a1;
+ const c = (a1) => 3 * a1;
+ const calcBezier = (t, a1, a2) => ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;
+ const getSlope = (t, a1, a2) => 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1);
+ const getTforX = (x) => {
+ let aGuessT = x;
+ for (let i = 0; i < 4; ++i) {
+ const currentSlope = getSlope(aGuessT, p0, p2);
+ if (currentSlope === 0)
+ return aGuessT;
+ const currentX = calcBezier(aGuessT, p0, p2) - x;
+ aGuessT -= currentX / currentSlope;
+ }
+ return aGuessT;
+ };
+ return (x) => p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3);
+}
+function lerp(a, b, alpha) {
+ return a + alpha * (b - a);
+}
+function toVec(t) {
+ return (typeof t === "number" ? [t] : t) || [];
+}
+function executeTransition(source, from, to, options = {}) {
+ var _a, _b;
+ const fromVal = toValue(from);
+ const toVal = toValue(to);
+ const v1 = toVec(fromVal);
+ const v2 = toVec(toVal);
+ const duration = (_a = toValue(options.duration)) != null ? _a : 1e3;
+ const startedAt = Date.now();
+ const endAt = Date.now() + duration;
+ const trans = typeof options.transition === "function" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity;
+ const ease = typeof trans === "function" ? trans : createEasingFunction(trans);
+ return new Promise((resolve) => {
+ source.value = fromVal;
+ const tick = () => {
+ var _a2;
+ if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) {
+ resolve();
+ return;
+ }
+ const now = Date.now();
+ const alpha = ease((now - startedAt) / duration);
+ const arr = toVec(source.value).map((n, i) => lerp(v1[i], v2[i], alpha));
+ if (Array.isArray(source.value))
+ source.value = arr.map((n, i) => {
+ var _a3, _b2;
+ return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha);
+ });
+ else if (typeof source.value === "number")
+ source.value = arr[0];
+ if (now < endAt) {
+ requestAnimationFrame(tick);
+ } else {
+ source.value = toVal;
+ resolve();
+ }
+ };
+ tick();
+ });
+}
+function useTransition(source, options = {}) {
+ let currentId = 0;
+ const sourceVal = () => {
+ const v = toValue(source);
+ return typeof v === "number" ? v : v.map(toValue);
+ };
+ const outputRef = ref(sourceVal());
+ watch(sourceVal, async (to) => {
+ var _a, _b;
+ if (toValue(options.disabled))
+ return;
+ const id = ++currentId;
+ if (options.delay)
+ await promiseTimeout(toValue(options.delay));
+ if (id !== currentId)
+ return;
+ const toVal = Array.isArray(to) ? to.map(toValue) : toValue(to);
+ (_a = options.onStarted) == null ? void 0 : _a.call(options);
+ await executeTransition(outputRef, outputRef.value, toVal, __spreadProps(__spreadValues({}, options), {
+ abort: () => {
+ var _a2;
+ return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options));
+ }
+ }));
+ (_b = options.onFinished) == null ? void 0 : _b.call(options);
+ }, { deep: true });
+ watch(() => toValue(options.disabled), (disabled) => {
+ if (disabled) {
+ currentId++;
+ outputRef.value = sourceVal();
+ }
+ });
+ tryOnScopeDispose(() => {
+ currentId++;
+ });
+ return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value);
+}
+
+function useUrlSearchParams(mode = "history", options = {}) {
+ const {
+ initialValue = {},
+ removeNullishValues = true,
+ removeFalsyValues = false,
+ write: enableWrite = true,
+ window = defaultWindow
+ } = options;
+ if (!window)
+ return reactive(initialValue);
+ const state = reactive({});
+ function getRawParams() {
+ if (mode === "history") {
+ return window.location.search || "";
+ } else if (mode === "hash") {
+ const hash = window.location.hash || "";
+ const index = hash.indexOf("?");
+ return index > 0 ? hash.slice(index) : "";
+ } else {
+ return (window.location.hash || "").replace(/^#/, "");
+ }
+ }
+ function constructQuery(params) {
+ const stringified = params.toString();
+ if (mode === "history")
+ return `${stringified ? `?${stringified}` : ""}${window.location.hash || ""}`;
+ if (mode === "hash-params")
+ return `${window.location.search || ""}${stringified ? `#${stringified}` : ""}`;
+ const hash = window.location.hash || "#";
+ const index = hash.indexOf("?");
+ if (index > 0)
+ return `${hash.slice(0, index)}${stringified ? `?${stringified}` : ""}`;
+ return `${hash}${stringified ? `?${stringified}` : ""}`;
+ }
+ function read() {
+ return new URLSearchParams(getRawParams());
+ }
+ function updateState(params) {
+ const unusedKeys = new Set(Object.keys(state));
+ for (const key of params.keys()) {
+ const paramsForKey = params.getAll(key);
+ state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || "";
+ unusedKeys.delete(key);
+ }
+ Array.from(unusedKeys).forEach((key) => delete state[key]);
+ }
+ const { pause, resume } = pausableWatch(
+ state,
+ () => {
+ const params = new URLSearchParams("");
+ Object.keys(state).forEach((key) => {
+ const mapEntry = state[key];
+ if (Array.isArray(mapEntry))
+ mapEntry.forEach((value) => params.append(key, value));
+ else if (removeNullishValues && mapEntry == null)
+ params.delete(key);
+ else if (removeFalsyValues && !mapEntry)
+ params.delete(key);
+ else
+ params.set(key, mapEntry);
+ });
+ write(params);
+ },
+ { deep: true }
+ );
+ function write(params, shouldUpdate) {
+ pause();
+ if (shouldUpdate)
+ updateState(params);
+ window.history.replaceState(
+ window.history.state,
+ window.document.title,
+ window.location.pathname + constructQuery(params)
+ );
+ resume();
+ }
+ function onChanged() {
+ if (!enableWrite)
+ return;
+ write(read(), true);
+ }
+ useEventListener(window, "popstate", onChanged, false);
+ if (mode !== "history")
+ useEventListener(window, "hashchange", onChanged, false);
+ const initial = read();
+ if (initial.keys().next().value)
+ updateState(initial);
+ else
+ Object.assign(state, initialValue);
+ return state;
+}
+
+function useUserMedia(options = {}) {
+ var _a, _b;
+ const enabled = ref((_a = options.enabled) != null ? _a : false);
+ const autoSwitch = ref((_b = options.autoSwitch) != null ? _b : true);
+ const constraints = ref(options.constraints);
+ const { navigator = defaultNavigator } = options;
+ const isSupported = useSupported(() => {
+ var _a2;
+ return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getUserMedia;
+ });
+ const stream = shallowRef();
+ function getDeviceOptions(type) {
+ switch (type) {
+ case "video": {
+ if (constraints.value)
+ return constraints.value.video || false;
+ break;
+ }
+ case "audio": {
+ if (constraints.value)
+ return constraints.value.audio || false;
+ break;
+ }
+ }
+ }
+ async function _start() {
+ if (!isSupported.value || stream.value)
+ return;
+ stream.value = await navigator.mediaDevices.getUserMedia({
+ video: getDeviceOptions("video"),
+ audio: getDeviceOptions("audio")
+ });
+ return stream.value;
+ }
+ function _stop() {
+ var _a2;
+ (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());
+ stream.value = void 0;
+ }
+ function stop() {
+ _stop();
+ enabled.value = false;
+ }
+ async function start() {
+ await _start();
+ if (stream.value)
+ enabled.value = true;
+ return stream.value;
+ }
+ async function restart() {
+ _stop();
+ return await start();
+ }
+ watch(
+ enabled,
+ (v) => {
+ if (v)
+ _start();
+ else
+ _stop();
+ },
+ { immediate: true }
+ );
+ watch(
+ constraints,
+ () => {
+ if (autoSwitch.value && stream.value)
+ restart();
+ },
+ { immediate: true }
+ );
+ return {
+ isSupported,
+ stream,
+ start,
+ stop,
+ restart,
+ constraints,
+ enabled,
+ autoSwitch
+ };
+}
+
+function useVModel(props, key, emit, options = {}) {
+ var _a, _b, _c, _d, _e;
+ const {
+ clone = false,
+ passive = false,
+ eventName,
+ deep = false,
+ defaultValue,
+ shouldEmit
+ } = options;
+ const vm = getCurrentInstance();
+ const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
+ let event = eventName;
+ if (!key) {
+ if (isVue2) {
+ const modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model;
+ key = (modelOptions == null ? void 0 : modelOptions.value) || "value";
+ if (!eventName)
+ event = (modelOptions == null ? void 0 : modelOptions.event) || "input";
+ } else {
+ key = "modelValue";
+ }
+ }
+ event = eventName || event || `update:${key.toString()}`;
+ const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
+ const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
+ const triggerEmit = (value) => {
+ if (shouldEmit) {
+ if (shouldEmit(value))
+ _emit(event, value);
+ } else {
+ _emit(event, value);
+ }
+ };
+ if (passive) {
+ const initialValue = getValue();
+ const proxy = ref(initialValue);
+ watch(
+ () => props[key],
+ (v) => proxy.value = cloneFn(v)
+ );
+ watch(
+ proxy,
+ (v) => {
+ if (v !== props[key] || deep)
+ triggerEmit(v);
+ },
+ { deep }
+ );
+ return proxy;
+ } else {
+ return computed({
+ get() {
+ return getValue();
+ },
+ set(value) {
+ triggerEmit(value);
+ }
+ });
+ }
+}
+
+function useVModels(props, emit, options = {}) {
+ const ret = {};
+ for (const key in props)
+ ret[key] = useVModel(props, key, emit, options);
+ return ret;
+}
+
+function useVibrate(options) {
+ const {
+ pattern = [],
+ interval = 0,
+ navigator = defaultNavigator
+ } = options || {};
+ const isSupported = useSupported(() => typeof navigator !== "undefined" && "vibrate" in navigator);
+ const patternRef = toRef(pattern);
+ let intervalControls;
+ const vibrate = (pattern2 = patternRef.value) => {
+ if (isSupported.value)
+ navigator.vibrate(pattern2);
+ };
+ const stop = () => {
+ if (isSupported.value)
+ navigator.vibrate(0);
+ intervalControls == null ? void 0 : intervalControls.pause();
+ };
+ if (interval > 0) {
+ intervalControls = useIntervalFn(
+ vibrate,
+ interval,
+ {
+ immediate: false,
+ immediateCallback: false
+ }
+ );
+ }
+ return {
+ isSupported,
+ pattern,
+ intervalControls,
+ vibrate,
+ stop
+ };
+}
+
+function useVirtualList(list, options) {
+ const { containerStyle, wrapperProps, scrollTo, calculateRange, currentList, containerRef } = "itemHeight" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list);
+ return {
+ list: currentList,
+ scrollTo,
+ containerProps: {
+ ref: containerRef,
+ onScroll: () => {
+ calculateRange();
+ },
+ style: containerStyle
+ },
+ wrapperProps
+ };
+}
+function useVirtualListResources(list) {
+ const containerRef = ref(null);
+ const size = useElementSize(containerRef);
+ const currentList = ref([]);
+ const source = shallowRef(list);
+ const state = ref({ start: 0, end: 10 });
+ return { state, source, currentList, size, containerRef };
+}
+function createGetViewCapacity(state, source, itemSize) {
+ return (containerSize) => {
+ if (typeof itemSize === "number")
+ return Math.ceil(containerSize / itemSize);
+ const { start = 0 } = state.value;
+ let sum = 0;
+ let capacity = 0;
+ for (let i = start; i < source.value.length; i++) {
+ const size = itemSize(i);
+ sum += size;
+ capacity = i;
+ if (sum > containerSize)
+ break;
+ }
+ return capacity - start;
+ };
+}
+function createGetOffset(source, itemSize) {
+ return (scrollDirection) => {
+ if (typeof itemSize === "number")
+ return Math.floor(scrollDirection / itemSize) + 1;
+ let sum = 0;
+ let offset = 0;
+ for (let i = 0; i < source.value.length; i++) {
+ const size = itemSize(i);
+ sum += size;
+ if (sum >= scrollDirection) {
+ offset = i;
+ break;
+ }
+ }
+ return offset + 1;
+ };
+}
+function createCalculateRange(type, overscan, getOffset, getViewCapacity, { containerRef, state, currentList, source }) {
+ return () => {
+ const element = containerRef.value;
+ if (element) {
+ const offset = getOffset(type === "vertical" ? element.scrollTop : element.scrollLeft);
+ const viewCapacity = getViewCapacity(type === "vertical" ? element.clientHeight : element.clientWidth);
+ const from = offset - overscan;
+ const to = offset + viewCapacity + overscan;
+ state.value = {
+ start: from < 0 ? 0 : from,
+ end: to > source.value.length ? source.value.length : to
+ };
+ currentList.value = source.value.slice(state.value.start, state.value.end).map((ele, index) => ({
+ data: ele,
+ index: index + state.value.start
+ }));
+ }
+ };
+}
+function createGetDistance(itemSize, source) {
+ return (index) => {
+ if (typeof itemSize === "number") {
+ const size2 = index * itemSize;
+ return size2;
+ }
+ const size = source.value.slice(0, index).reduce((sum, _, i) => sum + itemSize(i), 0);
+ return size;
+ };
+}
+function useWatchForSizes(size, list, calculateRange) {
+ watch([size.width, size.height, list], () => {
+ calculateRange();
+ });
+}
+function createComputedTotalSize(itemSize, source) {
+ return computed(() => {
+ if (typeof itemSize === "number")
+ return source.value.length * itemSize;
+ return source.value.reduce((sum, _, index) => sum + itemSize(index), 0);
+ });
+}
+const scrollToDictionaryForElementScrollKey = {
+ horizontal: "scrollLeft",
+ vertical: "scrollTop"
+};
+function createScrollTo(type, calculateRange, getDistance, containerRef) {
+ return (index) => {
+ if (containerRef.value) {
+ containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index);
+ calculateRange();
+ }
+ };
+}
+function useHorizontalVirtualList(options, list) {
+ const resources = useVirtualListResources(list);
+ const { state, source, currentList, size, containerRef } = resources;
+ const containerStyle = { overflowX: "auto" };
+ const { itemWidth, overscan = 5 } = options;
+ const getViewCapacity = createGetViewCapacity(state, source, itemWidth);
+ const getOffset = createGetOffset(source, itemWidth);
+ const calculateRange = createCalculateRange("horizontal", overscan, getOffset, getViewCapacity, resources);
+ const getDistanceLeft = createGetDistance(itemWidth, source);
+ const offsetLeft = computed(() => getDistanceLeft(state.value.start));
+ const totalWidth = createComputedTotalSize(itemWidth, source);
+ useWatchForSizes(size, list, calculateRange);
+ const scrollTo = createScrollTo("horizontal", calculateRange, getDistanceLeft, containerRef);
+ const wrapperProps = computed(() => {
+ return {
+ style: {
+ height: "100%",
+ width: `${totalWidth.value - offsetLeft.value}px`,
+ marginLeft: `${offsetLeft.value}px`,
+ display: "flex"
+ }
+ };
+ });
+ return {
+ scrollTo,
+ calculateRange,
+ wrapperProps,
+ containerStyle,
+ currentList,
+ containerRef
+ };
+}
+function useVerticalVirtualList(options, list) {
+ const resources = useVirtualListResources(list);
+ const { state, source, currentList, size, containerRef } = resources;
+ const containerStyle = { overflowY: "auto" };
+ const { itemHeight, overscan = 5 } = options;
+ const getViewCapacity = createGetViewCapacity(state, source, itemHeight);
+ const getOffset = createGetOffset(source, itemHeight);
+ const calculateRange = createCalculateRange("vertical", overscan, getOffset, getViewCapacity, resources);
+ const getDistanceTop = createGetDistance(itemHeight, source);
+ const offsetTop = computed(() => getDistanceTop(state.value.start));
+ const totalHeight = createComputedTotalSize(itemHeight, source);
+ useWatchForSizes(size, list, calculateRange);
+ const scrollTo = createScrollTo("vertical", calculateRange, getDistanceTop, containerRef);
+ const wrapperProps = computed(() => {
+ return {
+ style: {
+ width: "100%",
+ height: `${totalHeight.value - offsetTop.value}px`,
+ marginTop: `${offsetTop.value}px`
+ }
+ };
+ });
+ return {
+ calculateRange,
+ scrollTo,
+ containerStyle,
+ wrapperProps,
+ currentList,
+ containerRef
+ };
+}
+
+function useWakeLock(options = {}) {
+ const {
+ navigator = defaultNavigator,
+ document = defaultDocument
+ } = options;
+ let wakeLock;
+ const isSupported = useSupported(() => navigator && "wakeLock" in navigator);
+ const isActive = ref(false);
+ async function onVisibilityChange() {
+ if (!isSupported.value || !wakeLock)
+ return;
+ if (document && document.visibilityState === "visible")
+ wakeLock = await navigator.wakeLock.request("screen");
+ isActive.value = !wakeLock.released;
+ }
+ if (document)
+ useEventListener(document, "visibilitychange", onVisibilityChange, { passive: true });
+ async function request(type) {
+ if (!isSupported.value)
+ return;
+ wakeLock = await navigator.wakeLock.request(type);
+ isActive.value = !wakeLock.released;
+ }
+ async function release() {
+ if (!isSupported.value || !wakeLock)
+ return;
+ await wakeLock.release();
+ isActive.value = !wakeLock.released;
+ wakeLock = null;
+ }
+ return {
+ isSupported,
+ isActive,
+ request,
+ release
+ };
+}
+
+function useWebNotification(defaultOptions = {}) {
+ const {
+ window = defaultWindow
+ } = defaultOptions;
+ const isSupported = useSupported(() => !!window && "Notification" in window);
+ const notification = ref(null);
+ const requestPermission = async () => {
+ if (!isSupported.value)
+ return;
+ if ("permission" in Notification && Notification.permission !== "denied")
+ await Notification.requestPermission();
+ };
+ const { on: onClick, trigger: clickTrigger } = createEventHook();
+ const { on: onShow, trigger: showTrigger } = createEventHook();
+ const { on: onError, trigger: errorTrigger } = createEventHook();
+ const { on: onClose, trigger: closeTrigger } = createEventHook();
+ const show = async (overrides) => {
+ if (!isSupported.value)
+ return;
+ await requestPermission();
+ const options = Object.assign({}, defaultOptions, overrides);
+ notification.value = new Notification(options.title || "", options);
+ notification.value.onclick = clickTrigger;
+ notification.value.onshow = showTrigger;
+ notification.value.onerror = errorTrigger;
+ notification.value.onclose = closeTrigger;
+ return notification.value;
+ };
+ const close = () => {
+ if (notification.value)
+ notification.value.close();
+ notification.value = null;
+ };
+ tryOnMounted(async () => {
+ if (isSupported.value)
+ await requestPermission();
+ });
+ tryOnScopeDispose(close);
+ if (isSupported.value && window) {
+ const document = window.document;
+ useEventListener(document, "visibilitychange", (e) => {
+ e.preventDefault();
+ if (document.visibilityState === "visible") {
+ close();
+ }
+ });
+ }
+ return {
+ isSupported,
+ notification,
+ show,
+ close,
+ onClick,
+ onShow,
+ onError,
+ onClose
+ };
+}
+
+const DEFAULT_PING_MESSAGE = "ping";
+function resolveNestedOptions(options) {
+ if (options === true)
+ return {};
+ return options;
+}
+function useWebSocket(url, options = {}) {
+ const {
+ onConnected,
+ onDisconnected,
+ onError,
+ onMessage,
+ immediate = true,
+ autoClose = true,
+ protocols = []
+ } = options;
+ const data = ref(null);
+ const status = ref("CLOSED");
+ const wsRef = ref();
+ const urlRef = toRef(url);
+ let heartbeatPause;
+ let heartbeatResume;
+ let explicitlyClosed = false;
+ let retried = 0;
+ let bufferedData = [];
+ let pongTimeoutWait;
+ const close = (code = 1e3, reason) => {
+ if (!wsRef.value)
+ return;
+ explicitlyClosed = true;
+ heartbeatPause == null ? void 0 : heartbeatPause();
+ wsRef.value.close(code, reason);
+ };
+ const _sendBuffer = () => {
+ if (bufferedData.length && wsRef.value && status.value === "OPEN") {
+ for (const buffer of bufferedData)
+ wsRef.value.send(buffer);
+ bufferedData = [];
+ }
+ };
+ const resetHeartbeat = () => {
+ clearTimeout(pongTimeoutWait);
+ pongTimeoutWait = void 0;
+ };
+ const send = (data2, useBuffer = true) => {
+ if (!wsRef.value || status.value !== "OPEN") {
+ if (useBuffer)
+ bufferedData.push(data2);
+ return false;
+ }
+ _sendBuffer();
+ wsRef.value.send(data2);
+ return true;
+ };
+ const _init = () => {
+ if (explicitlyClosed || typeof urlRef.value === "undefined")
+ return;
+ const ws = new WebSocket(urlRef.value, protocols);
+ wsRef.value = ws;
+ status.value = "CONNECTING";
+ ws.onopen = () => {
+ status.value = "OPEN";
+ onConnected == null ? void 0 : onConnected(ws);
+ heartbeatResume == null ? void 0 : heartbeatResume();
+ _sendBuffer();
+ };
+ ws.onclose = (ev) => {
+ status.value = "CLOSED";
+ wsRef.value = void 0;
+ onDisconnected == null ? void 0 : onDisconnected(ws, ev);
+ if (!explicitlyClosed && options.autoReconnect) {
+ const {
+ retries = -1,
+ delay = 1e3,
+ onFailed
+ } = resolveNestedOptions(options.autoReconnect);
+ retried += 1;
+ if (typeof retries === "number" && (retries < 0 || retried < retries))
+ setTimeout(_init, delay);
+ else if (typeof retries === "function" && retries())
+ setTimeout(_init, delay);
+ else
+ onFailed == null ? void 0 : onFailed();
+ }
+ };
+ ws.onerror = (e) => {
+ onError == null ? void 0 : onError(ws, e);
+ };
+ ws.onmessage = (e) => {
+ if (options.heartbeat) {
+ resetHeartbeat();
+ const {
+ message = DEFAULT_PING_MESSAGE
+ } = resolveNestedOptions(options.heartbeat);
+ if (e.data === message)
+ return;
+ }
+ data.value = e.data;
+ onMessage == null ? void 0 : onMessage(ws, e);
+ };
+ };
+ if (options.heartbeat) {
+ const {
+ message = DEFAULT_PING_MESSAGE,
+ interval = 1e3,
+ pongTimeout = 1e3
+ } = resolveNestedOptions(options.heartbeat);
+ const { pause, resume } = useIntervalFn(
+ () => {
+ send(message, false);
+ if (pongTimeoutWait != null)
+ return;
+ pongTimeoutWait = setTimeout(() => {
+ close();
+ }, pongTimeout);
+ },
+ interval,
+ { immediate: false }
+ );
+ heartbeatPause = pause;
+ heartbeatResume = resume;
+ }
+ if (autoClose) {
+ useEventListener(window, "beforeunload", () => close());
+ tryOnScopeDispose(close);
+ }
+ const open = () => {
+ close();
+ explicitlyClosed = false;
+ retried = 0;
+ _init();
+ };
+ if (immediate)
+ watch(urlRef, open, { immediate: true });
+ return {
+ data,
+ status,
+ close,
+ send,
+ open,
+ ws: wsRef
+ };
+}
+
+function useWebWorker(arg0, workerOptions, options) {
+ const {
+ window = defaultWindow
+ } = options != null ? options : {};
+ const data = ref(null);
+ const worker = shallowRef();
+ const post = function post2(val) {
+ if (!worker.value)
+ return;
+ worker.value.postMessage(val);
+ };
+ const terminate = function terminate2() {
+ if (!worker.value)
+ return;
+ worker.value.terminate();
+ };
+ if (window) {
+ if (typeof arg0 === "string")
+ worker.value = new Worker(arg0, workerOptions);
+ else if (typeof arg0 === "function")
+ worker.value = arg0();
+ else
+ worker.value = arg0;
+ worker.value.onmessage = (e) => {
+ data.value = e.data;
+ };
+ tryOnScopeDispose(() => {
+ if (worker.value)
+ worker.value.terminate();
+ });
+ }
+ return {
+ data,
+ post,
+ terminate,
+ worker
+ };
+}
+
+function jobRunner(userFunc) {
+ return (e) => {
+ const userFuncArgs = e.data[0];
+ return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then((result) => {
+ postMessage(["SUCCESS", result]);
+ }).catch((error) => {
+ postMessage(["ERROR", error]);
+ });
+ };
+}
+
+function depsParser(deps) {
+ if (deps.length === 0)
+ return "";
+ const depsString = deps.map((dep) => `'${dep}'`).toString();
+ return `importScripts(${depsString})`;
+}
+
+function createWorkerBlobUrl(fn, deps) {
+ const blobCode = `${depsParser(deps)}; onmessage=(${jobRunner})(${fn})`;
+ const blob = new Blob([blobCode], { type: "text/javascript" });
+ const url = URL.createObjectURL(blob);
+ return url;
+}
+
+function useWebWorkerFn(fn, options = {}) {
+ const {
+ dependencies = [],
+ timeout,
+ window = defaultWindow
+ } = options;
+ const worker = ref();
+ const workerStatus = ref("PENDING");
+ const promise = ref({});
+ const timeoutId = ref();
+ const workerTerminate = (status = "PENDING") => {
+ if (worker.value && worker.value._url && window) {
+ worker.value.terminate();
+ URL.revokeObjectURL(worker.value._url);
+ promise.value = {};
+ worker.value = void 0;
+ window.clearTimeout(timeoutId.value);
+ workerStatus.value = status;
+ }
+ };
+ workerTerminate();
+ tryOnScopeDispose(workerTerminate);
+ const generateWorker = () => {
+ const blobUrl = createWorkerBlobUrl(fn, dependencies);
+ const newWorker = new Worker(blobUrl);
+ newWorker._url = blobUrl;
+ newWorker.onmessage = (e) => {
+ const { resolve = () => {
+ }, reject = () => {
+ } } = promise.value;
+ const [status, result] = e.data;
+ switch (status) {
+ case "SUCCESS":
+ resolve(result);
+ workerTerminate(status);
+ break;
+ default:
+ reject(result);
+ workerTerminate("ERROR");
+ break;
+ }
+ };
+ newWorker.onerror = (e) => {
+ const { reject = () => {
+ } } = promise.value;
+ reject(e);
+ workerTerminate("ERROR");
+ };
+ if (timeout) {
+ timeoutId.value = setTimeout(
+ () => workerTerminate("TIMEOUT_EXPIRED"),
+ timeout
+ );
+ }
+ return newWorker;
+ };
+ const callWorker = (...fnArgs) => new Promise((resolve, reject) => {
+ promise.value = {
+ resolve,
+ reject
+ };
+ worker.value && worker.value.postMessage([[...fnArgs]]);
+ workerStatus.value = "RUNNING";
+ });
+ const workerFn = (...fnArgs) => {
+ if (workerStatus.value === "RUNNING") {
+ console.error(
+ "[useWebWorkerFn] You can only run one instance of the worker at a time."
+ );
+ return Promise.reject();
+ }
+ worker.value = generateWorker();
+ return callWorker(...fnArgs);
+ };
+ return {
+ workerFn,
+ workerStatus,
+ workerTerminate
+ };
+}
+
+function useWindowFocus({ window = defaultWindow } = {}) {
+ if (!window)
+ return ref(false);
+ const focused = ref(window.document.hasFocus());
+ useEventListener(window, "blur", () => {
+ focused.value = false;
+ });
+ useEventListener(window, "focus", () => {
+ focused.value = true;
+ });
+ return focused;
+}
+
+function useWindowScroll({ window = defaultWindow } = {}) {
+ if (!window) {
+ return {
+ x: ref(0),
+ y: ref(0)
+ };
+ }
+ const x = ref(window.scrollX);
+ const y = ref(window.scrollY);
+ useEventListener(
+ window,
+ "scroll",
+ () => {
+ x.value = window.scrollX;
+ y.value = window.scrollY;
+ },
+ {
+ capture: false,
+ passive: true
+ }
+ );
+ return { x, y };
+}
+
+function useWindowSize(options = {}) {
+ const {
+ window = defaultWindow,
+ initialWidth = Infinity,
+ initialHeight = Infinity,
+ listenOrientation = true,
+ includeScrollbar = true
+ } = options;
+ const width = ref(initialWidth);
+ const height = ref(initialHeight);
+ const update = () => {
+ if (window) {
+ if (includeScrollbar) {
+ width.value = window.innerWidth;
+ height.value = window.innerHeight;
+ } else {
+ width.value = window.document.documentElement.clientWidth;
+ height.value = window.document.documentElement.clientHeight;
+ }
+ }
+ };
+ update();
+ tryOnMounted(update);
+ useEventListener("resize", update, { passive: true });
+ if (listenOrientation) {
+ const matches = useMediaQuery("(orientation: portrait)");
+ watch(matches, () => update());
+ }
+ return { width, height };
+}
+
+export { DefaultMagicKeysAliasMap, StorageSerializers, TransitionPresets, computedAsync as asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsMasterCss, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useCloned, useColorMode, useConfirmDialog, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useRafFn, useRefHistory, useResizeObserver, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker, useWebWorkerFn, useWindowFocus, useWindowScroll, useWindowSize };
diff --git a/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs b/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs
new file mode 100644
index 00000000..0862b217
--- /dev/null
+++ b/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs
@@ -0,0 +1,1790 @@
+import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, isVue3, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, isVue2, set as set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi';
+
+var __defProp$b = Object.defineProperty;
+var __defProps$8 = Object.defineProperties;
+var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
+var __hasOwnProp$d = Object.prototype.hasOwnProperty;
+var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$b = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$d.call(b, prop))
+ __defNormalProp$b(a, prop, b[prop]);
+ if (__getOwnPropSymbols$d)
+ for (var prop of __getOwnPropSymbols$d(b)) {
+ if (__propIsEnum$d.call(b, prop))
+ __defNormalProp$b(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
+function computedEager(fn, options) {
+ var _a;
+ const result = shallowRef();
+ watchEffect(() => {
+ result.value = fn();
+ }, __spreadProps$8(__spreadValues$b({}, options), {
+ flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync"
+ }));
+ return readonly(result);
+}
+
+function computedWithControl(source, fn) {
+ let v = void 0;
+ let track;
+ let trigger;
+ const dirty = ref(true);
+ const update = () => {
+ dirty.value = true;
+ trigger();
+ };
+ watch(source, update, { flush: "sync" });
+ const get = typeof fn === "function" ? fn : fn.get;
+ const set = typeof fn === "function" ? void 0 : fn.set;
+ const result = customRef((_track, _trigger) => {
+ track = _track;
+ trigger = _trigger;
+ return {
+ get() {
+ if (dirty.value) {
+ v = get();
+ dirty.value = false;
+ }
+ track();
+ return v;
+ },
+ set(v2) {
+ set == null ? void 0 : set(v2);
+ }
+ };
+ });
+ if (Object.isExtensible(result))
+ result.trigger = update;
+ return result;
+}
+
+function tryOnScopeDispose(fn) {
+ if (getCurrentScope()) {
+ onScopeDispose(fn);
+ return true;
+ }
+ return false;
+}
+
+function createEventHook() {
+ const fns = /* @__PURE__ */ new Set();
+ const off = (fn) => {
+ fns.delete(fn);
+ };
+ const on = (fn) => {
+ fns.add(fn);
+ const offFn = () => off(fn);
+ tryOnScopeDispose(offFn);
+ return {
+ off: offFn
+ };
+ };
+ const trigger = (param) => {
+ return Promise.all(Array.from(fns).map((fn) => fn(param)));
+ };
+ return {
+ on,
+ off,
+ trigger
+ };
+}
+
+function createGlobalState(stateFactory) {
+ let initialized = false;
+ let state;
+ const scope = effectScope(true);
+ return (...args) => {
+ if (!initialized) {
+ state = scope.run(() => stateFactory(...args));
+ initialized = true;
+ }
+ return state;
+ };
+}
+
+function createInjectionState(composable) {
+ const key = Symbol("InjectionState");
+ const useProvidingState = (...args) => {
+ const state = composable(...args);
+ provide(key, state);
+ return state;
+ };
+ const useInjectedState = () => inject(key);
+ return [useProvidingState, useInjectedState];
+}
+
+function createSharedComposable(composable) {
+ let subscribers = 0;
+ let state;
+ let scope;
+ const dispose = () => {
+ subscribers -= 1;
+ if (scope && subscribers <= 0) {
+ scope.stop();
+ state = void 0;
+ scope = void 0;
+ }
+ };
+ return (...args) => {
+ subscribers += 1;
+ if (!state) {
+ scope = effectScope(true);
+ state = scope.run(() => composable(...args));
+ }
+ tryOnScopeDispose(dispose);
+ return state;
+ };
+}
+
+function extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {
+ if (!isVue3 && !version.startsWith("2.7.")) {
+ if (process.env.NODE_ENV !== "production")
+ throw new Error("[VueUse] extendRef only works in Vue 2.7 or above.");
+ return;
+ }
+ for (const [key, value] of Object.entries(extend)) {
+ if (key === "value")
+ continue;
+ if (isRef(value) && unwrap) {
+ Object.defineProperty(ref, key, {
+ get() {
+ return value.value;
+ },
+ set(v) {
+ value.value = v;
+ },
+ enumerable
+ });
+ } else {
+ Object.defineProperty(ref, key, { value, enumerable });
+ }
+ }
+ return ref;
+}
+
+function get(obj, key) {
+ if (key == null)
+ return unref(obj);
+ return unref(obj)[key];
+}
+
+function isDefined(v) {
+ return unref(v) != null;
+}
+
+var __defProp$a = Object.defineProperty;
+var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
+var __hasOwnProp$c = Object.prototype.hasOwnProperty;
+var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$a = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$c.call(b, prop))
+ __defNormalProp$a(a, prop, b[prop]);
+ if (__getOwnPropSymbols$c)
+ for (var prop of __getOwnPropSymbols$c(b)) {
+ if (__propIsEnum$c.call(b, prop))
+ __defNormalProp$a(a, prop, b[prop]);
+ }
+ return a;
+};
+function makeDestructurable(obj, arr) {
+ if (typeof Symbol !== "undefined") {
+ const clone = __spreadValues$a({}, obj);
+ Object.defineProperty(clone, Symbol.iterator, {
+ enumerable: false,
+ value() {
+ let index = 0;
+ return {
+ next: () => ({
+ value: arr[index++],
+ done: index > arr.length
+ })
+ };
+ }
+ });
+ return clone;
+ } else {
+ return Object.assign([...arr], obj);
+ }
+}
+
+function toValue(r) {
+ return typeof r === "function" ? r() : unref(r);
+}
+const resolveUnref = toValue;
+
+function reactify(fn, options) {
+ const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue;
+ return function(...args) {
+ return computed(() => fn.apply(this, args.map((i) => unrefFn(i))));
+ };
+}
+
+function reactifyObject(obj, optionsOrKeys = {}) {
+ let keys = [];
+ let options;
+ if (Array.isArray(optionsOrKeys)) {
+ keys = optionsOrKeys;
+ } else {
+ options = optionsOrKeys;
+ const { includeOwnProperties = true } = optionsOrKeys;
+ keys.push(...Object.keys(obj));
+ if (includeOwnProperties)
+ keys.push(...Object.getOwnPropertyNames(obj));
+ }
+ return Object.fromEntries(
+ keys.map((key) => {
+ const value = obj[key];
+ return [
+ key,
+ typeof value === "function" ? reactify(value.bind(obj), options) : value
+ ];
+ })
+ );
+}
+
+function toReactive(objectRef) {
+ if (!isRef(objectRef))
+ return reactive(objectRef);
+ const proxy = new Proxy({}, {
+ get(_, p, receiver) {
+ return unref(Reflect.get(objectRef.value, p, receiver));
+ },
+ set(_, p, value) {
+ if (isRef(objectRef.value[p]) && !isRef(value))
+ objectRef.value[p].value = value;
+ else
+ objectRef.value[p] = value;
+ return true;
+ },
+ deleteProperty(_, p) {
+ return Reflect.deleteProperty(objectRef.value, p);
+ },
+ has(_, p) {
+ return Reflect.has(objectRef.value, p);
+ },
+ ownKeys() {
+ return Object.keys(objectRef.value);
+ },
+ getOwnPropertyDescriptor() {
+ return {
+ enumerable: true,
+ configurable: true
+ };
+ }
+ });
+ return reactive(proxy);
+}
+
+function reactiveComputed(fn) {
+ return toReactive(computed(fn));
+}
+
+function reactiveOmit(obj, ...keys) {
+ const flatKeys = keys.flat();
+ const predicate = flatKeys[0];
+ return reactiveComputed(
+ () => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0])))
+ );
+}
+
+const isClient = typeof window !== "undefined";
+const isDef = (val) => typeof val !== "undefined";
+const notNullish = (val) => val != null;
+const assert = (condition, ...infos) => {
+ if (!condition)
+ console.warn(...infos);
+};
+const toString = Object.prototype.toString;
+const isObject = (val) => toString.call(val) === "[object Object]";
+const now = () => Date.now();
+const timestamp = () => +Date.now();
+const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
+const noop = () => {
+};
+const rand = (min, max) => {
+ min = Math.ceil(min);
+ max = Math.floor(max);
+ return Math.floor(Math.random() * (max - min + 1)) + min;
+};
+const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
+const isIOS = /* @__PURE__ */ getIsIOS();
+function getIsIOS() {
+ var _a;
+ return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
+}
+
+function createFilterWrapper(filter, fn) {
+ function wrapper(...args) {
+ return new Promise((resolve, reject) => {
+ Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
+ });
+ }
+ return wrapper;
+}
+const bypassFilter = (invoke) => {
+ return invoke();
+};
+function debounceFilter(ms, options = {}) {
+ let timer;
+ let maxTimer;
+ let lastRejector = noop;
+ const _clearTimeout = (timer2) => {
+ clearTimeout(timer2);
+ lastRejector();
+ lastRejector = noop;
+ };
+ const filter = (invoke) => {
+ const duration = toValue(ms);
+ const maxDuration = toValue(options.maxWait);
+ if (timer)
+ _clearTimeout(timer);
+ if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
+ if (maxTimer) {
+ _clearTimeout(maxTimer);
+ maxTimer = null;
+ }
+ return Promise.resolve(invoke());
+ }
+ return new Promise((resolve, reject) => {
+ lastRejector = options.rejectOnCancel ? reject : resolve;
+ if (maxDuration && !maxTimer) {
+ maxTimer = setTimeout(() => {
+ if (timer)
+ _clearTimeout(timer);
+ maxTimer = null;
+ resolve(invoke());
+ }, maxDuration);
+ }
+ timer = setTimeout(() => {
+ if (maxTimer)
+ _clearTimeout(maxTimer);
+ maxTimer = null;
+ resolve(invoke());
+ }, duration);
+ });
+ };
+ return filter;
+}
+function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {
+ let lastExec = 0;
+ let timer;
+ let isLeading = true;
+ let lastRejector = noop;
+ let lastValue;
+ const clear = () => {
+ if (timer) {
+ clearTimeout(timer);
+ timer = void 0;
+ lastRejector();
+ lastRejector = noop;
+ }
+ };
+ const filter = (_invoke) => {
+ const duration = toValue(ms);
+ const elapsed = Date.now() - lastExec;
+ const invoke = () => {
+ return lastValue = _invoke();
+ };
+ clear();
+ if (duration <= 0) {
+ lastExec = Date.now();
+ return invoke();
+ }
+ if (elapsed > duration && (leading || !isLeading)) {
+ lastExec = Date.now();
+ invoke();
+ } else if (trailing) {
+ lastValue = new Promise((resolve, reject) => {
+ lastRejector = rejectOnCancel ? reject : resolve;
+ timer = setTimeout(() => {
+ lastExec = Date.now();
+ isLeading = true;
+ resolve(invoke());
+ clear();
+ }, Math.max(0, duration - elapsed));
+ });
+ }
+ if (!leading && !timer)
+ timer = setTimeout(() => isLeading = true, duration);
+ isLeading = false;
+ return lastValue;
+ };
+ return filter;
+}
+function pausableFilter(extendFilter = bypassFilter) {
+ const isActive = ref(true);
+ function pause() {
+ isActive.value = false;
+ }
+ function resume() {
+ isActive.value = true;
+ }
+ const eventFilter = (...args) => {
+ if (isActive.value)
+ extendFilter(...args);
+ };
+ return { isActive: readonly(isActive), pause, resume, eventFilter };
+}
+
+const directiveHooks = {
+ mounted: isVue3 ? "mounted" : "inserted",
+ updated: isVue3 ? "updated" : "componentUpdated",
+ unmounted: isVue3 ? "unmounted" : "unbind"
+};
+
+function promiseTimeout(ms, throwOnTimeout = false, reason = "Timeout") {
+ return new Promise((resolve, reject) => {
+ if (throwOnTimeout)
+ setTimeout(() => reject(reason), ms);
+ else
+ setTimeout(resolve, ms);
+ });
+}
+function identity(arg) {
+ return arg;
+}
+function createSingletonPromise(fn) {
+ let _promise;
+ function wrapper() {
+ if (!_promise)
+ _promise = fn();
+ return _promise;
+ }
+ wrapper.reset = async () => {
+ const _prev = _promise;
+ _promise = void 0;
+ if (_prev)
+ await _prev;
+ };
+ return wrapper;
+}
+function invoke(fn) {
+ return fn();
+}
+function containsProp(obj, ...props) {
+ return props.some((k) => k in obj);
+}
+function increaseWithUnit(target, delta) {
+ var _a;
+ if (typeof target === "number")
+ return target + delta;
+ const value = ((_a = target.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : _a[0]) || "";
+ const unit = target.slice(value.length);
+ const result = parseFloat(value) + delta;
+ if (Number.isNaN(result))
+ return target;
+ return result + unit;
+}
+function objectPick(obj, keys, omitUndefined = false) {
+ return keys.reduce((n, k) => {
+ if (k in obj) {
+ if (!omitUndefined || obj[k] !== void 0)
+ n[k] = obj[k];
+ }
+ return n;
+ }, {});
+}
+function objectOmit(obj, keys, omitUndefined = false) {
+ return Object.fromEntries(Object.entries(obj).filter(([key, value]) => {
+ return (!omitUndefined || value !== void 0) && !keys.includes(key);
+ }));
+}
+function objectEntries(obj) {
+ return Object.entries(obj);
+}
+
+function toRef(...args) {
+ if (args.length !== 1)
+ return toRef$1(...args);
+ const r = args[0];
+ return typeof r === "function" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r);
+}
+const resolveRef = toRef;
+
+function reactivePick(obj, ...keys) {
+ const flatKeys = keys.flat();
+ const predicate = flatKeys[0];
+ return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)])));
+}
+
+function refAutoReset(defaultValue, afterMs = 1e4) {
+ return customRef((track, trigger) => {
+ let value = defaultValue;
+ let timer;
+ const resetAfter = () => setTimeout(() => {
+ value = defaultValue;
+ trigger();
+ }, toValue(afterMs));
+ tryOnScopeDispose(() => {
+ clearTimeout(timer);
+ });
+ return {
+ get() {
+ track();
+ return value;
+ },
+ set(newValue) {
+ value = newValue;
+ trigger();
+ clearTimeout(timer);
+ timer = resetAfter();
+ }
+ };
+ });
+}
+
+function useDebounceFn(fn, ms = 200, options = {}) {
+ return createFilterWrapper(
+ debounceFilter(ms, options),
+ fn
+ );
+}
+
+function refDebounced(value, ms = 200, options = {}) {
+ const debounced = ref(value.value);
+ const updater = useDebounceFn(() => {
+ debounced.value = value.value;
+ }, ms, options);
+ watch(value, () => updater());
+ return debounced;
+}
+
+function refDefault(source, defaultValue) {
+ return computed({
+ get() {
+ var _a;
+ return (_a = source.value) != null ? _a : defaultValue;
+ },
+ set(value) {
+ source.value = value;
+ }
+ });
+}
+
+function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
+ return createFilterWrapper(
+ throttleFilter(ms, trailing, leading, rejectOnCancel),
+ fn
+ );
+}
+
+function refThrottled(value, delay = 200, trailing = true, leading = true) {
+ if (delay <= 0)
+ return value;
+ const throttled = ref(value.value);
+ const updater = useThrottleFn(() => {
+ throttled.value = value.value;
+ }, delay, trailing, leading);
+ watch(value, () => updater());
+ return throttled;
+}
+
+function refWithControl(initial, options = {}) {
+ let source = initial;
+ let track;
+ let trigger;
+ const ref = customRef((_track, _trigger) => {
+ track = _track;
+ trigger = _trigger;
+ return {
+ get() {
+ return get();
+ },
+ set(v) {
+ set(v);
+ }
+ };
+ });
+ function get(tracking = true) {
+ if (tracking)
+ track();
+ return source;
+ }
+ function set(value, triggering = true) {
+ var _a, _b;
+ if (value === source)
+ return;
+ const old = source;
+ if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false)
+ return;
+ source = value;
+ (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old);
+ if (triggering)
+ trigger();
+ }
+ const untrackedGet = () => get(false);
+ const silentSet = (v) => set(v, false);
+ const peek = () => get(false);
+ const lay = (v) => set(v, false);
+ return extendRef(
+ ref,
+ {
+ get,
+ set,
+ untrackedGet,
+ silentSet,
+ peek,
+ lay
+ },
+ { enumerable: true }
+ );
+}
+const controlledRef = refWithControl;
+
+function set(...args) {
+ if (args.length === 2) {
+ const [ref, value] = args;
+ ref.value = value;
+ }
+ if (args.length === 3) {
+ if (isVue2) {
+ set$1(...args);
+ } else {
+ const [target, key, value] = args;
+ target[key] = value;
+ }
+ }
+}
+
+function syncRef(left, right, options = {}) {
+ var _a, _b;
+ const {
+ flush = "sync",
+ deep = false,
+ immediate = true,
+ direction = "both",
+ transform = {}
+ } = options;
+ let watchLeft;
+ let watchRight;
+ const transformLTR = (_a = transform.ltr) != null ? _a : (v) => v;
+ const transformRTL = (_b = transform.rtl) != null ? _b : (v) => v;
+ if (direction === "both" || direction === "ltr") {
+ watchLeft = watch(
+ left,
+ (newValue) => right.value = transformLTR(newValue),
+ { flush, deep, immediate }
+ );
+ }
+ if (direction === "both" || direction === "rtl") {
+ watchRight = watch(
+ right,
+ (newValue) => left.value = transformRTL(newValue),
+ { flush, deep, immediate }
+ );
+ }
+ return () => {
+ watchLeft == null ? void 0 : watchLeft();
+ watchRight == null ? void 0 : watchRight();
+ };
+}
+
+function syncRefs(source, targets, options = {}) {
+ const {
+ flush = "sync",
+ deep = false,
+ immediate = true
+ } = options;
+ if (!Array.isArray(targets))
+ targets = [targets];
+ return watch(
+ source,
+ (newValue) => targets.forEach((target) => target.value = newValue),
+ { flush, deep, immediate }
+ );
+}
+
+var __defProp$9 = Object.defineProperty;
+var __defProps$7 = Object.defineProperties;
+var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
+var __hasOwnProp$b = Object.prototype.hasOwnProperty;
+var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$9 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$b.call(b, prop))
+ __defNormalProp$9(a, prop, b[prop]);
+ if (__getOwnPropSymbols$b)
+ for (var prop of __getOwnPropSymbols$b(b)) {
+ if (__propIsEnum$b.call(b, prop))
+ __defNormalProp$9(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
+function toRefs(objectRef) {
+ if (!isRef(objectRef))
+ return toRefs$1(objectRef);
+ const result = Array.isArray(objectRef.value) ? new Array(objectRef.value.length) : {};
+ for (const key in objectRef.value) {
+ result[key] = customRef(() => ({
+ get() {
+ return objectRef.value[key];
+ },
+ set(v) {
+ if (Array.isArray(objectRef.value)) {
+ const copy = [...objectRef.value];
+ copy[key] = v;
+ objectRef.value = copy;
+ } else {
+ const newObject = __spreadProps$7(__spreadValues$9({}, objectRef.value), { [key]: v });
+ Object.setPrototypeOf(newObject, objectRef.value);
+ objectRef.value = newObject;
+ }
+ }
+ }));
+ }
+ return result;
+}
+
+function tryOnBeforeMount(fn, sync = true) {
+ if (getCurrentInstance())
+ onBeforeMount(fn);
+ else if (sync)
+ fn();
+ else
+ nextTick(fn);
+}
+
+function tryOnBeforeUnmount(fn) {
+ if (getCurrentInstance())
+ onBeforeUnmount(fn);
+}
+
+function tryOnMounted(fn, sync = true) {
+ if (getCurrentInstance())
+ onMounted(fn);
+ else if (sync)
+ fn();
+ else
+ nextTick(fn);
+}
+
+function tryOnUnmounted(fn) {
+ if (getCurrentInstance())
+ onUnmounted(fn);
+}
+
+function createUntil(r, isNot = false) {
+ function toMatch(condition, { flush = "sync", deep = false, timeout, throwOnTimeout } = {}) {
+ let stop = null;
+ const watcher = new Promise((resolve) => {
+ stop = watch(
+ r,
+ (v) => {
+ if (condition(v) !== isNot) {
+ stop == null ? void 0 : stop();
+ resolve(v);
+ }
+ },
+ {
+ flush,
+ deep,
+ immediate: true
+ }
+ );
+ });
+ const promises = [watcher];
+ if (timeout != null) {
+ promises.push(
+ promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop())
+ );
+ }
+ return Promise.race(promises);
+ }
+ function toBe(value, options) {
+ if (!isRef(value))
+ return toMatch((v) => v === value, options);
+ const { flush = "sync", deep = false, timeout, throwOnTimeout } = options != null ? options : {};
+ let stop = null;
+ const watcher = new Promise((resolve) => {
+ stop = watch(
+ [r, value],
+ ([v1, v2]) => {
+ if (isNot !== (v1 === v2)) {
+ stop == null ? void 0 : stop();
+ resolve(v1);
+ }
+ },
+ {
+ flush,
+ deep,
+ immediate: true
+ }
+ );
+ });
+ const promises = [watcher];
+ if (timeout != null) {
+ promises.push(
+ promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => {
+ stop == null ? void 0 : stop();
+ return toValue(r);
+ })
+ );
+ }
+ return Promise.race(promises);
+ }
+ function toBeTruthy(options) {
+ return toMatch((v) => Boolean(v), options);
+ }
+ function toBeNull(options) {
+ return toBe(null, options);
+ }
+ function toBeUndefined(options) {
+ return toBe(void 0, options);
+ }
+ function toBeNaN(options) {
+ return toMatch(Number.isNaN, options);
+ }
+ function toContains(value, options) {
+ return toMatch((v) => {
+ const array = Array.from(v);
+ return array.includes(value) || array.includes(toValue(value));
+ }, options);
+ }
+ function changed(options) {
+ return changedTimes(1, options);
+ }
+ function changedTimes(n = 1, options) {
+ let count = -1;
+ return toMatch(() => {
+ count += 1;
+ return count >= n;
+ }, options);
+ }
+ if (Array.isArray(toValue(r))) {
+ const instance = {
+ toMatch,
+ toContains,
+ changed,
+ changedTimes,
+ get not() {
+ return createUntil(r, !isNot);
+ }
+ };
+ return instance;
+ } else {
+ const instance = {
+ toMatch,
+ toBe,
+ toBeTruthy,
+ toBeNull,
+ toBeNaN,
+ toBeUndefined,
+ changed,
+ changedTimes,
+ get not() {
+ return createUntil(r, !isNot);
+ }
+ };
+ return instance;
+ }
+}
+function until(r) {
+ return createUntil(r);
+}
+
+function defaultComparator(value, othVal) {
+ return value === othVal;
+}
+function useArrayDifference(...args) {
+ var _a;
+ const list = args[0];
+ const values = args[1];
+ let compareFn = (_a = args[2]) != null ? _a : defaultComparator;
+ if (typeof compareFn === "string") {
+ const key = compareFn;
+ compareFn = (value, othVal) => value[key] === othVal[key];
+ }
+ return computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1));
+}
+
+function useArrayEvery(list, fn) {
+ return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array)));
+}
+
+function useArrayFilter(list, fn) {
+ return computed(() => toValue(list).map((i) => toValue(i)).filter(fn));
+}
+
+function useArrayFind(list, fn) {
+ return computed(
+ () => toValue(
+ toValue(list).find((element, index, array) => fn(toValue(element), index, array))
+ )
+ );
+}
+
+function useArrayFindIndex(list, fn) {
+ return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array)));
+}
+
+function findLast(arr, cb) {
+ let index = arr.length;
+ while (index-- > 0) {
+ if (cb(arr[index], index, arr))
+ return arr[index];
+ }
+ return void 0;
+}
+function useArrayFindLast(list, fn) {
+ return computed(
+ () => toValue(
+ !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array))
+ )
+ );
+}
+
+function isArrayIncludesOptions(obj) {
+ return isObject(obj) && containsProp(obj, "formIndex", "comparator");
+}
+function useArrayIncludes(...args) {
+ var _a;
+ const list = args[0];
+ const value = args[1];
+ let comparator = args[2];
+ let formIndex = 0;
+ if (isArrayIncludesOptions(comparator)) {
+ formIndex = (_a = comparator.fromIndex) != null ? _a : 0;
+ comparator = comparator.comparator;
+ }
+ if (typeof comparator === "string") {
+ const key = comparator;
+ comparator = (element, value2) => element[key] === toValue(value2);
+ }
+ comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2);
+ return computed(
+ () => toValue(list).slice(formIndex).some(
+ (element, index, array) => comparator(toValue(element), toValue(value), index, toValue(array))
+ )
+ );
+}
+
+function useArrayJoin(list, separator) {
+ return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator)));
+}
+
+function useArrayMap(list, fn) {
+ return computed(() => toValue(list).map((i) => toValue(i)).map(fn));
+}
+
+function useArrayReduce(list, reducer, ...args) {
+ const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index);
+ return computed(() => {
+ const resolved = toValue(list);
+ return args.length ? resolved.reduce(reduceCallback, toValue(args[0])) : resolved.reduce(reduceCallback);
+ });
+}
+
+function useArraySome(list, fn) {
+ return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array)));
+}
+
+function uniq(array) {
+ return Array.from(new Set(array));
+}
+function uniqueElementsBy(array, fn) {
+ return array.reduce((acc, v) => {
+ if (!acc.some((x) => fn(v, x, array)))
+ acc.push(v);
+ return acc;
+ }, []);
+}
+function useArrayUnique(list, compareFn) {
+ return computed(() => {
+ const resolvedList = toValue(list).map((element) => toValue(element));
+ return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList);
+ });
+}
+
+function useCounter(initialValue = 0, options = {}) {
+ const count = ref(initialValue);
+ const {
+ max = Infinity,
+ min = -Infinity
+ } = options;
+ const inc = (delta = 1) => count.value = Math.min(max, count.value + delta);
+ const dec = (delta = 1) => count.value = Math.max(min, count.value - delta);
+ const get = () => count.value;
+ const set = (val) => count.value = Math.max(min, Math.min(max, val));
+ const reset = (val = initialValue) => {
+ initialValue = val;
+ return set(val);
+ };
+ return { count, inc, dec, get, set, reset };
+}
+
+const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
+const REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
+function defaultMeridiem(hours, minutes, isLowercase, hasPeriod) {
+ let m = hours < 12 ? "AM" : "PM";
+ if (hasPeriod)
+ m = m.split("").reduce((acc, curr) => acc += `${curr}.`, "");
+ return isLowercase ? m.toLowerCase() : m;
+}
+function formatDate(date, formatStr, options = {}) {
+ var _a;
+ const years = date.getFullYear();
+ const month = date.getMonth();
+ const days = date.getDate();
+ const hours = date.getHours();
+ const minutes = date.getMinutes();
+ const seconds = date.getSeconds();
+ const milliseconds = date.getMilliseconds();
+ const day = date.getDay();
+ const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem;
+ const matches = {
+ YY: () => String(years).slice(-2),
+ YYYY: () => years,
+ M: () => month + 1,
+ MM: () => `${month + 1}`.padStart(2, "0"),
+ MMM: () => date.toLocaleDateString(options.locales, { month: "short" }),
+ MMMM: () => date.toLocaleDateString(options.locales, { month: "long" }),
+ D: () => String(days),
+ DD: () => `${days}`.padStart(2, "0"),
+ H: () => String(hours),
+ HH: () => `${hours}`.padStart(2, "0"),
+ h: () => `${hours % 12 || 12}`.padStart(1, "0"),
+ hh: () => `${hours % 12 || 12}`.padStart(2, "0"),
+ m: () => String(minutes),
+ mm: () => `${minutes}`.padStart(2, "0"),
+ s: () => String(seconds),
+ ss: () => `${seconds}`.padStart(2, "0"),
+ SSS: () => `${milliseconds}`.padStart(3, "0"),
+ d: () => day,
+ dd: () => date.toLocaleDateString(options.locales, { weekday: "narrow" }),
+ ddd: () => date.toLocaleDateString(options.locales, { weekday: "short" }),
+ dddd: () => date.toLocaleDateString(options.locales, { weekday: "long" }),
+ A: () => meridiem(hours, minutes),
+ AA: () => meridiem(hours, minutes, false, true),
+ a: () => meridiem(hours, minutes, true),
+ aa: () => meridiem(hours, minutes, true, true)
+ };
+ return formatStr.replace(REGEX_FORMAT, (match, $1) => {
+ var _a2;
+ return $1 || ((_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) || match;
+ });
+}
+function normalizeDate(date) {
+ if (date === null)
+ return /* @__PURE__ */ new Date(NaN);
+ if (date === void 0)
+ return /* @__PURE__ */ new Date();
+ if (date instanceof Date)
+ return new Date(date);
+ if (typeof date === "string" && !/Z$/i.test(date)) {
+ const d = date.match(REGEX_PARSE);
+ if (d) {
+ const m = d[2] - 1 || 0;
+ const ms = (d[7] || "0").substring(0, 3);
+ return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
+ }
+ }
+ return new Date(date);
+}
+function useDateFormat(date, formatStr = "HH:mm:ss", options = {}) {
+ return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options));
+}
+
+function useIntervalFn(cb, interval = 1e3, options = {}) {
+ const {
+ immediate = true,
+ immediateCallback = false
+ } = options;
+ let timer = null;
+ const isActive = ref(false);
+ function clean() {
+ if (timer) {
+ clearInterval(timer);
+ timer = null;
+ }
+ }
+ function pause() {
+ isActive.value = false;
+ clean();
+ }
+ function resume() {
+ const intervalValue = toValue(interval);
+ if (intervalValue <= 0)
+ return;
+ isActive.value = true;
+ if (immediateCallback)
+ cb();
+ clean();
+ timer = setInterval(cb, intervalValue);
+ }
+ if (immediate && isClient)
+ resume();
+ if (isRef(interval) || typeof interval === "function") {
+ const stopWatch = watch(interval, () => {
+ if (isActive.value && isClient)
+ resume();
+ });
+ tryOnScopeDispose(stopWatch);
+ }
+ tryOnScopeDispose(pause);
+ return {
+ isActive,
+ pause,
+ resume
+ };
+}
+
+var __defProp$8 = Object.defineProperty;
+var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
+var __hasOwnProp$a = Object.prototype.hasOwnProperty;
+var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$8 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$a.call(b, prop))
+ __defNormalProp$8(a, prop, b[prop]);
+ if (__getOwnPropSymbols$a)
+ for (var prop of __getOwnPropSymbols$a(b)) {
+ if (__propIsEnum$a.call(b, prop))
+ __defNormalProp$8(a, prop, b[prop]);
+ }
+ return a;
+};
+function useInterval(interval = 1e3, options = {}) {
+ const {
+ controls: exposeControls = false,
+ immediate = true,
+ callback
+ } = options;
+ const counter = ref(0);
+ const update = () => counter.value += 1;
+ const reset = () => {
+ counter.value = 0;
+ };
+ const controls = useIntervalFn(
+ callback ? () => {
+ update();
+ callback(counter.value);
+ } : update,
+ interval,
+ { immediate }
+ );
+ if (exposeControls) {
+ return __spreadValues$8({
+ counter,
+ reset
+ }, controls);
+ } else {
+ return counter;
+ }
+}
+
+function useLastChanged(source, options = {}) {
+ var _a;
+ const ms = ref((_a = options.initialValue) != null ? _a : null);
+ watch(
+ source,
+ () => ms.value = timestamp(),
+ options
+ );
+ return ms;
+}
+
+function useTimeoutFn(cb, interval, options = {}) {
+ const {
+ immediate = true
+ } = options;
+ const isPending = ref(false);
+ let timer = null;
+ function clear() {
+ if (timer) {
+ clearTimeout(timer);
+ timer = null;
+ }
+ }
+ function stop() {
+ isPending.value = false;
+ clear();
+ }
+ function start(...args) {
+ clear();
+ isPending.value = true;
+ timer = setTimeout(() => {
+ isPending.value = false;
+ timer = null;
+ cb(...args);
+ }, toValue(interval));
+ }
+ if (immediate) {
+ isPending.value = true;
+ if (isClient)
+ start();
+ }
+ tryOnScopeDispose(stop);
+ return {
+ isPending: readonly(isPending),
+ start,
+ stop
+ };
+}
+
+var __defProp$7 = Object.defineProperty;
+var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
+var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
+var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$7 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$9.call(b, prop))
+ __defNormalProp$7(a, prop, b[prop]);
+ if (__getOwnPropSymbols$9)
+ for (var prop of __getOwnPropSymbols$9(b)) {
+ if (__propIsEnum$9.call(b, prop))
+ __defNormalProp$7(a, prop, b[prop]);
+ }
+ return a;
+};
+function useTimeout(interval = 1e3, options = {}) {
+ const {
+ controls: exposeControls = false,
+ callback
+ } = options;
+ const controls = useTimeoutFn(
+ callback != null ? callback : noop,
+ interval,
+ options
+ );
+ const ready = computed(() => !controls.isPending.value);
+ if (exposeControls) {
+ return __spreadValues$7({
+ ready
+ }, controls);
+ } else {
+ return ready;
+ }
+}
+
+function useToNumber(value, options = {}) {
+ const {
+ method = "parseFloat",
+ radix,
+ nanToZero
+ } = options;
+ return computed(() => {
+ let resolved = toValue(value);
+ if (typeof resolved === "string")
+ resolved = Number[method](resolved, radix);
+ if (nanToZero && isNaN(resolved))
+ resolved = 0;
+ return resolved;
+ });
+}
+
+function useToString(value) {
+ return computed(() => `${toValue(value)}`);
+}
+
+function useToggle(initialValue = false, options = {}) {
+ const {
+ truthyValue = true,
+ falsyValue = false
+ } = options;
+ const valueIsRef = isRef(initialValue);
+ const _value = ref(initialValue);
+ function toggle(value) {
+ if (arguments.length) {
+ _value.value = value;
+ return _value.value;
+ } else {
+ const truthy = toValue(truthyValue);
+ _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;
+ return _value.value;
+ }
+ }
+ if (valueIsRef)
+ return toggle;
+ else
+ return [_value, toggle];
+}
+
+function watchArray(source, cb, options) {
+ let oldList = (options == null ? void 0 : options.immediate) ? [] : [
+ ...source instanceof Function ? source() : Array.isArray(source) ? source : toValue(source)
+ ];
+ return watch(source, (newList, _, onCleanup) => {
+ const oldListRemains = new Array(oldList.length);
+ const added = [];
+ for (const obj of newList) {
+ let found = false;
+ for (let i = 0; i < oldList.length; i++) {
+ if (!oldListRemains[i] && obj === oldList[i]) {
+ oldListRemains[i] = true;
+ found = true;
+ break;
+ }
+ }
+ if (!found)
+ added.push(obj);
+ }
+ const removed = oldList.filter((_2, i) => !oldListRemains[i]);
+ cb(newList, oldList, added, removed, onCleanup);
+ oldList = [...newList];
+ }, options);
+}
+
+var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
+var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
+var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
+var __objRest$5 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$8)
+ for (var prop of __getOwnPropSymbols$8(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchWithFilter(source, cb, options = {}) {
+ const _a = options, {
+ eventFilter = bypassFilter
+ } = _a, watchOptions = __objRest$5(_a, [
+ "eventFilter"
+ ]);
+ return watch(
+ source,
+ createFilterWrapper(
+ eventFilter,
+ cb
+ ),
+ watchOptions
+ );
+}
+
+var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
+var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
+var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
+var __objRest$4 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$7)
+ for (var prop of __getOwnPropSymbols$7(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchAtMost(source, cb, options) {
+ const _a = options, {
+ count
+ } = _a, watchOptions = __objRest$4(_a, [
+ "count"
+ ]);
+ const current = ref(0);
+ const stop = watchWithFilter(
+ source,
+ (...args) => {
+ current.value += 1;
+ if (current.value >= toValue(count))
+ nextTick(() => stop());
+ cb(...args);
+ },
+ watchOptions
+ );
+ return { count: current, stop };
+}
+
+var __defProp$6 = Object.defineProperty;
+var __defProps$6 = Object.defineProperties;
+var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
+var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
+var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$6 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$6.call(b, prop))
+ __defNormalProp$6(a, prop, b[prop]);
+ if (__getOwnPropSymbols$6)
+ for (var prop of __getOwnPropSymbols$6(b)) {
+ if (__propIsEnum$6.call(b, prop))
+ __defNormalProp$6(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
+var __objRest$3 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$6)
+ for (var prop of __getOwnPropSymbols$6(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchDebounced(source, cb, options = {}) {
+ const _a = options, {
+ debounce = 0,
+ maxWait = void 0
+ } = _a, watchOptions = __objRest$3(_a, [
+ "debounce",
+ "maxWait"
+ ]);
+ return watchWithFilter(
+ source,
+ cb,
+ __spreadProps$6(__spreadValues$6({}, watchOptions), {
+ eventFilter: debounceFilter(debounce, { maxWait })
+ })
+ );
+}
+
+var __defProp$5 = Object.defineProperty;
+var __defProps$5 = Object.defineProperties;
+var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
+var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
+var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$5 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$5.call(b, prop))
+ __defNormalProp$5(a, prop, b[prop]);
+ if (__getOwnPropSymbols$5)
+ for (var prop of __getOwnPropSymbols$5(b)) {
+ if (__propIsEnum$5.call(b, prop))
+ __defNormalProp$5(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
+function watchDeep(source, cb, options) {
+ return watch(
+ source,
+ cb,
+ __spreadProps$5(__spreadValues$5({}, options), {
+ deep: true
+ })
+ );
+}
+
+var __defProp$4 = Object.defineProperty;
+var __defProps$4 = Object.defineProperties;
+var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
+var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
+var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$4 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$4.call(b, prop))
+ __defNormalProp$4(a, prop, b[prop]);
+ if (__getOwnPropSymbols$4)
+ for (var prop of __getOwnPropSymbols$4(b)) {
+ if (__propIsEnum$4.call(b, prop))
+ __defNormalProp$4(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
+var __objRest$2 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$4)
+ for (var prop of __getOwnPropSymbols$4(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchIgnorable(source, cb, options = {}) {
+ const _a = options, {
+ eventFilter = bypassFilter
+ } = _a, watchOptions = __objRest$2(_a, [
+ "eventFilter"
+ ]);
+ const filteredCb = createFilterWrapper(
+ eventFilter,
+ cb
+ );
+ let ignoreUpdates;
+ let ignorePrevAsyncUpdates;
+ let stop;
+ if (watchOptions.flush === "sync") {
+ const ignore = ref(false);
+ ignorePrevAsyncUpdates = () => {
+ };
+ ignoreUpdates = (updater) => {
+ ignore.value = true;
+ updater();
+ ignore.value = false;
+ };
+ stop = watch(
+ source,
+ (...args) => {
+ if (!ignore.value)
+ filteredCb(...args);
+ },
+ watchOptions
+ );
+ } else {
+ const disposables = [];
+ const ignoreCounter = ref(0);
+ const syncCounter = ref(0);
+ ignorePrevAsyncUpdates = () => {
+ ignoreCounter.value = syncCounter.value;
+ };
+ disposables.push(
+ watch(
+ source,
+ () => {
+ syncCounter.value++;
+ },
+ __spreadProps$4(__spreadValues$4({}, watchOptions), { flush: "sync" })
+ )
+ );
+ ignoreUpdates = (updater) => {
+ const syncCounterPrev = syncCounter.value;
+ updater();
+ ignoreCounter.value += syncCounter.value - syncCounterPrev;
+ };
+ disposables.push(
+ watch(
+ source,
+ (...args) => {
+ const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value;
+ ignoreCounter.value = 0;
+ syncCounter.value = 0;
+ if (ignore)
+ return;
+ filteredCb(...args);
+ },
+ watchOptions
+ )
+ );
+ stop = () => {
+ disposables.forEach((fn) => fn());
+ };
+ }
+ return { stop, ignoreUpdates, ignorePrevAsyncUpdates };
+}
+
+var __defProp$3 = Object.defineProperty;
+var __defProps$3 = Object.defineProperties;
+var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
+var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
+var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$3 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$3.call(b, prop))
+ __defNormalProp$3(a, prop, b[prop]);
+ if (__getOwnPropSymbols$3)
+ for (var prop of __getOwnPropSymbols$3(b)) {
+ if (__propIsEnum$3.call(b, prop))
+ __defNormalProp$3(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
+function watchImmediate(source, cb, options) {
+ return watch(
+ source,
+ cb,
+ __spreadProps$3(__spreadValues$3({}, options), {
+ immediate: true
+ })
+ );
+}
+
+function watchOnce(source, cb, options) {
+ const stop = watch(source, (...args) => {
+ nextTick(() => stop());
+ return cb(...args);
+ }, options);
+}
+
+var __defProp$2 = Object.defineProperty;
+var __defProps$2 = Object.defineProperties;
+var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
+var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
+var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$2 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$2.call(b, prop))
+ __defNormalProp$2(a, prop, b[prop]);
+ if (__getOwnPropSymbols$2)
+ for (var prop of __getOwnPropSymbols$2(b)) {
+ if (__propIsEnum$2.call(b, prop))
+ __defNormalProp$2(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
+var __objRest$1 = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$2)
+ for (var prop of __getOwnPropSymbols$2(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchPausable(source, cb, options = {}) {
+ const _a = options, {
+ eventFilter: filter
+ } = _a, watchOptions = __objRest$1(_a, [
+ "eventFilter"
+ ]);
+ const { eventFilter, pause, resume, isActive } = pausableFilter(filter);
+ const stop = watchWithFilter(
+ source,
+ cb,
+ __spreadProps$2(__spreadValues$2({}, watchOptions), {
+ eventFilter
+ })
+ );
+ return { stop, pause, resume, isActive };
+}
+
+var __defProp$1 = Object.defineProperty;
+var __defProps$1 = Object.defineProperties;
+var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
+var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
+var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
+var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues$1 = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp$1.call(b, prop))
+ __defNormalProp$1(a, prop, b[prop]);
+ if (__getOwnPropSymbols$1)
+ for (var prop of __getOwnPropSymbols$1(b)) {
+ if (__propIsEnum$1.call(b, prop))
+ __defNormalProp$1(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
+var __objRest = (source, exclude) => {
+ var target = {};
+ for (var prop in source)
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
+ target[prop] = source[prop];
+ if (source != null && __getOwnPropSymbols$1)
+ for (var prop of __getOwnPropSymbols$1(source)) {
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
+ target[prop] = source[prop];
+ }
+ return target;
+};
+function watchThrottled(source, cb, options = {}) {
+ const _a = options, {
+ throttle = 0,
+ trailing = true,
+ leading = true
+ } = _a, watchOptions = __objRest(_a, [
+ "throttle",
+ "trailing",
+ "leading"
+ ]);
+ return watchWithFilter(
+ source,
+ cb,
+ __spreadProps$1(__spreadValues$1({}, watchOptions), {
+ eventFilter: throttleFilter(throttle, trailing, leading)
+ })
+ );
+}
+
+var __defProp = Object.defineProperty;
+var __defProps = Object.defineProperties;
+var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues = (a, b) => {
+ for (var prop in b || (b = {}))
+ if (__hasOwnProp.call(b, prop))
+ __defNormalProp(a, prop, b[prop]);
+ if (__getOwnPropSymbols)
+ for (var prop of __getOwnPropSymbols(b)) {
+ if (__propIsEnum.call(b, prop))
+ __defNormalProp(a, prop, b[prop]);
+ }
+ return a;
+};
+var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
+function watchTriggerable(source, cb, options = {}) {
+ let cleanupFn;
+ function onEffect() {
+ if (!cleanupFn)
+ return;
+ const fn = cleanupFn;
+ cleanupFn = void 0;
+ fn();
+ }
+ function onCleanup(callback) {
+ cleanupFn = callback;
+ }
+ const _cb = (value, oldValue) => {
+ onEffect();
+ return cb(value, oldValue, onCleanup);
+ };
+ const res = watchIgnorable(source, _cb, options);
+ const { ignoreUpdates } = res;
+ const trigger = () => {
+ let res2;
+ ignoreUpdates(() => {
+ res2 = _cb(getWatchSources(source), getOldValue(source));
+ });
+ return res2;
+ };
+ return __spreadProps(__spreadValues({}, res), {
+ trigger
+ });
+}
+function getWatchSources(sources) {
+ if (isReactive(sources))
+ return sources;
+ if (Array.isArray(sources))
+ return sources.map((item) => toValue(item));
+ return toValue(sources);
+}
+function getOldValue(source) {
+ return Array.isArray(source) ? source.map(() => void 0) : void 0;
+}
+
+function whenever(source, cb, options) {
+ return watch(
+ source,
+ (v, ov, onInvalidate) => {
+ if (v)
+ cb(v, ov, onInvalidate);
+ },
+ options
+ );
+}
+
+export { assert, refAutoReset as autoResetRef, bypassFilter, clamp, computedEager, computedWithControl, containsProp, computedWithControl as controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, reactify as createReactiveFn, createSharedComposable, createSingletonPromise, debounceFilter, refDebounced as debouncedRef, watchDebounced as debouncedWatch, directiveHooks, computedEager as eagerComputed, extendRef, formatDate, get, hasOwn, identity, watchIgnorable as ignorableWatch, increaseWithUnit, invoke, isClient, isDef, isDefined, isIOS, isObject, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, watchPausable as pausableWatch, promiseTimeout, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refThrottled, refWithControl, resolveRef, resolveUnref, set, syncRef, syncRefs, throttleFilter, refThrottled as throttledRef, watchThrottled as throttledWatch, timestamp, toReactive, toRef, toRefs, toValue, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, refDebounced as useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, refThrottled as useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };
diff --git a/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js b/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js
new file mode 100644
index 00000000..5a3faea0
--- /dev/null
+++ b/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js
@@ -0,0 +1,8842 @@
+/*!
+ * better-mock v0.3.6 (mock.browser.esm.js)
+ * (c) 2019-2022 lavyun@163.com
+ * Released under the MIT License.
+ */
+
+var constant = {
+ GUID: 1,
+ RE_KEY: /(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,
+ RE_TRANSFER_TYPE: /#(.*)$/,
+ RE_RANGE: /([\+\-]?\d+)-?([\+\-]?\d+)?/,
+ RE_PLACEHOLDER: /\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g
+};
+
+/* type-coverage:ignore-next-line */
+var type = function (value) {
+ return isDef(value)
+ ? Object.prototype.toString.call(value).match(/\[object (\w+)\]/)[1].toLowerCase()
+ : String(value);
+};
+var isDef = function (value) {
+ return value !== undefined && value !== null;
+};
+var isString = function (value) {
+ return type(value) === 'string';
+};
+var isNumber = function (value) {
+ return type(value) === 'number';
+};
+var isObject = function (value) {
+ return type(value) === 'object';
+};
+var isArray = function (value) {
+ return type(value) === 'array';
+};
+var isRegExp = function (value) {
+ return type(value) === 'regexp';
+};
+var isFunction = function (value) {
+ return type(value) === 'function';
+};
+var keys = function (obj) {
+ var keys = [];
+ for (var key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ keys.push(key);
+ }
+ }
+ return keys;
+};
+var values = function (obj) {
+ var values = [];
+ for (var key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ values.push(obj[key]);
+ }
+ }
+ return values;
+};
+/**
+ * Mock.heredoc(fn)
+ * 以直观、安全的方式书写(多行)HTML 模板。
+ * http://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript
+ */
+var heredoc = function (fn) {
+ // 1. 移除起始的 function(){ /*!
+ // 2. 移除末尾的 */ }
+ // 3. 移除起始和末尾的空格
+ return fn
+ .toString()
+ .replace(/^[^\/]+\/\*!?/, '')
+ .replace(/\*\/[^\/]+$/, '')
+ .replace(/^[\s\xA0]+/, '')
+ .replace(/[\s\xA0]+$/, ''); // .trim()
+};
+var noop = function () { };
+var assert = function (condition, error) {
+ if (!condition) {
+ throw new Error('[better-mock] ' + error);
+ }
+};
+/**
+ * 创建一个自定义事件,兼容 IE
+ * @param type 一个字符串,表示事件名称。
+ * @param bubbles 一个布尔值,表示该事件能否冒泡。
+ * @param cancelable 一个布尔值,表示该事件是否可以取消。
+ * @param detail 一个任意类型,传递给事件的自定义数据。
+ */
+var createCustomEvent = function (type, bubbles, cancelable, detail) {
+ if (bubbles === void 0) { bubbles = false; }
+ if (cancelable === void 0) { cancelable = false; }
+ try {
+ return new CustomEvent(type, { bubbles: bubbles, cancelable: cancelable, detail: detail });
+ }
+ catch (e) {
+ var event_1 = document.createEvent('CustomEvent');
+ event_1.initCustomEvent(type, bubbles, cancelable, detail);
+ return event_1;
+ }
+};
+
+var Util = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ type: type,
+ isDef: isDef,
+ isString: isString,
+ isNumber: isNumber,
+ isObject: isObject,
+ isArray: isArray,
+ isRegExp: isRegExp,
+ isFunction: isFunction,
+ keys: keys,
+ values: values,
+ heredoc: heredoc,
+ noop: noop,
+ assert: assert,
+ createCustomEvent: createCustomEvent
+});
+
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+var __assign = function() {
+ __assign = Object.assign || function __assign(t) {
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
+ s = arguments[i];
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ }
+ return t;
+ };
+ return __assign.apply(this, arguments);
+};
+
+function __awaiter(thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
+ });
+}
+
+function __generator(thisArg, body) {
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
+ function verb(n) { return function (v) { return step([n, v]); }; }
+ function step(op) {
+ if (f) throw new TypeError("Generator is already executing.");
+ while (_) try {
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
+ if (y = 0, t) op = [op[0] & 2, t.value];
+ switch (op[0]) {
+ case 0: case 1: t = op; break;
+ case 4: _.label++; return { value: op[1], done: false };
+ case 5: _.label++; y = op[1]; op = [0]; continue;
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
+ default:
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+ if (t[2]) _.ops.pop();
+ _.trys.pop(); continue;
+ }
+ op = body.call(thisArg, _);
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+ }
+}
+
+function __spreadArrays() {
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
+ r[k] = a[j];
+ return r;
+}
+
+var MAX_NATURE_NUMBER = 9007199254740992;
+var MIN_NATURE_NUMBER = -9007199254740992;
+// 返回一个随机的布尔值。
+var boolean = function (min, max, current) {
+ if (min === void 0) { min = 1; }
+ if (max === void 0) { max = 1; }
+ if (isDef(current)) {
+ if (isDef(min)) {
+ min = !isNaN(min) ? parseInt(min.toString(), 10) : 1;
+ }
+ if (isDef(max)) {
+ max = !isNaN(max) ? parseInt(max.toString(), 10) : 1;
+ }
+ return Math.random() > 1.0 / (min + max) * min ? !current : current;
+ }
+ return Math.random() >= 0.5;
+};
+var bool = boolean;
+// 返回一个随机的自然数(大于等于 0 的整数)。
+var natural = function (min, max) {
+ if (min === void 0) { min = 0; }
+ if (max === void 0) { max = MAX_NATURE_NUMBER; }
+ min = parseInt(min.toString(), 10);
+ max = parseInt(max.toString(), 10);
+ return Math.round(Math.random() * (max - min)) + min;
+};
+// 返回一个随机的整数。
+var integer = function (min, max) {
+ if (min === void 0) { min = MIN_NATURE_NUMBER; }
+ if (max === void 0) { max = MAX_NATURE_NUMBER; }
+ min = parseInt(min.toString(), 10);
+ max = parseInt(max.toString(), 10);
+ return Math.round(Math.random() * (max - min)) + min;
+};
+var int = integer;
+// 返回一个随机的浮点数。
+var float = function (min, max, dmin, dmax) {
+ dmin = isDef(dmin) ? dmin : 0;
+ dmin = Math.max(Math.min(dmin, 17), 0);
+ dmax = isDef(dmax) ? dmax : 17;
+ dmax = Math.max(Math.min(dmax, 17), 0);
+ var ret = integer(min, max) + '.';
+ for (var i = 0, dcount = natural(dmin, dmax); i < dcount; i++) {
+ // 最后一位不能为 0:如果最后一位为 0,会被 JS 引擎忽略掉。
+ var num = i < dcount - 1 ? character('number') : character('123456789');
+ ret += num;
+ }
+ return parseFloat(ret);
+};
+// 返回一个随机字符。
+var character = function (pool) {
+ if (pool === void 0) { pool = ''; }
+ var lower = 'abcdefghijklmnopqrstuvwxyz';
+ var upper = lower.toUpperCase();
+ var number = '0123456789';
+ var symbol = '!@#$%^&*()[]';
+ var pools = {
+ lower: lower,
+ upper: upper,
+ number: number,
+ symbol: symbol,
+ alpha: lower + upper
+ };
+ if (!pool) {
+ pool = lower + upper + number + symbol;
+ }
+ else {
+ pool = pools[pool.toLowerCase()] || pool;
+ }
+ return pool.charAt(natural(0, pool.length - 1));
+};
+var char = character;
+// 返回一个随机字符串。
+var string = function (pool, min, max) {
+ var len;
+ switch (arguments.length) {
+ case 0: // ()
+ len = natural(3, 7);
+ break;
+ case 1: // ( length )
+ len = pool;
+ pool = undefined;
+ break;
+ case 2:
+ // ( pool, length )
+ if (typeof arguments[0] === 'string') {
+ len = min;
+ }
+ else {
+ // ( min, max )
+ len = natural(pool, min);
+ pool = undefined;
+ }
+ break;
+ case 3:
+ len = natural(min, max);
+ break;
+ }
+ var text = '';
+ for (var i = 0; i < len; i++) {
+ text += character(pool);
+ }
+ return text;
+};
+var str = string;
+// 返回一个整型数组。
+var range = function (start, stop, step) {
+ if (step === void 0) { step = 1; }
+ // range( stop )
+ if (arguments.length <= 1) {
+ stop = start || 0;
+ start = 0;
+ }
+ start = +start;
+ stop = +stop;
+ step = +step;
+ var idx = 0;
+ var len = Math.max(Math.ceil((stop - start) / step), 0);
+ var range = new Array(len);
+ while (idx < len) {
+ range[idx++] = start;
+ start += step;
+ }
+ return range;
+};
+
+var basic = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ boolean: boolean,
+ bool: bool,
+ natural: natural,
+ integer: integer,
+ int: int,
+ float: float,
+ character: character,
+ char: char,
+ string: string,
+ str: str,
+ range: range
+});
+
+// Date
+var _padZero = function (value) {
+ return value < 10 ? '0' + value : value.toString();
+};
+var patternLetters = {
+ yyyy: 'getFullYear',
+ yy: function (date) {
+ return date.getFullYear().toString().slice(2);
+ },
+ y: 'yy',
+ MM: function (date) {
+ return _padZero(date.getMonth() + 1);
+ },
+ M: function (date) {
+ return (date.getMonth() + 1).toString();
+ },
+ dd: function (date) {
+ return _padZero(date.getDate());
+ },
+ d: 'getDate',
+ HH: function (date) {
+ return _padZero(date.getHours());
+ },
+ H: 'getHours',
+ hh: function (date) {
+ return _padZero(date.getHours() % 12);
+ },
+ h: function (date) {
+ return (date.getHours() % 12).toString();
+ },
+ mm: function (date) {
+ return _padZero(date.getMinutes());
+ },
+ m: 'getMinutes',
+ ss: function (date) {
+ return _padZero(date.getSeconds());
+ },
+ s: 'getSeconds',
+ SS: function (date) {
+ var ms = date.getMilliseconds();
+ return ms < 10 && '00' + ms || ms < 100 && '0' + ms || ms.toString();
+ },
+ S: 'getMilliseconds',
+ A: function (date) {
+ return date.getHours() < 12 ? 'AM' : 'PM';
+ },
+ a: function (date) {
+ return date.getHours() < 12 ? 'am' : 'pm';
+ },
+ T: 'getTime'
+};
+var _createFormatRE = function () {
+ var re = keys(patternLetters);
+ return '(' + re.join('|') + ')';
+};
+var _formatDate = function (date, format) {
+ var formatRE = new RegExp(_createFormatRE(), 'g');
+ return format.replace(formatRE, function createNewSubString($0, flag) {
+ return typeof patternLetters[flag] === 'function'
+ ? patternLetters[flag](date)
+ : patternLetters[flag] in patternLetters
+ ? createNewSubString($0, patternLetters[flag])
+ : date[patternLetters[flag]]();
+ });
+};
+// 生成一个随机的 Date 对象。
+var _randomDate = function (min, max) {
+ if (min === void 0) { min = new Date(0); }
+ if (max === void 0) { max = new Date(); }
+ var randomTS = Math.random() * (max.getTime() - min.getTime());
+ return new Date(randomTS);
+};
+// 返回一个随机的日期字符串。
+var date = function (format) {
+ if (format === void 0) { format = 'yyyy-MM-dd'; }
+ return _formatDate(_randomDate(), format);
+};
+// 返回一个随机的时间字符串。
+var time = function (format) {
+ if (format === void 0) { format = 'HH:mm:ss'; }
+ return _formatDate(_randomDate(), format);
+};
+// 返回一个随机的日期和时间字符串。
+var datetime = function (format) {
+ if (format === void 0) { format = 'yyyy-MM-dd HH:mm:ss'; }
+ return _formatDate(_randomDate(), format);
+};
+// 返回一个随机的时间戳
+var timestamp = function () {
+ return Number(_formatDate(_randomDate(), 'T'));
+};
+// 返回当前的日期和时间字符串。
+var now = function (unit, format) {
+ // now(unit) now(format)
+ if (arguments.length === 1) {
+ // now(format)
+ if (!/year|month|day|hour|minute|second|week/.test(unit)) {
+ format = unit;
+ unit = '';
+ }
+ }
+ unit = (unit || '').toLowerCase();
+ format = format || 'yyyy-MM-dd HH:mm:ss';
+ var date = new Date();
+ // 参考自 http://momentjs.cn/docs/#/manipulating/start-of/
+ switch (unit) {
+ case 'year':
+ date.setMonth(0);
+ break;
+ case 'month':
+ date.setDate(1);
+ break;
+ case 'week':
+ date.setDate(date.getDate() - date.getDay());
+ break;
+ case 'day':
+ date.setHours(0);
+ break;
+ case 'hour':
+ date.setMinutes(0);
+ break;
+ case 'minute':
+ date.setSeconds(0);
+ break;
+ case 'second':
+ date.setMilliseconds(0);
+ }
+ return _formatDate(date, format);
+};
+
+var date$1 = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ date: date,
+ time: time,
+ datetime: datetime,
+ timestamp: timestamp,
+ now: now
+});
+
+// 把字符串的第一个字母转换为大写。
+var capitalize = function (word) {
+ word = word + '';
+ return word.charAt(0).toUpperCase() + word.substr(1);
+};
+// 把字符串转换为大写。
+var upper = function (str) {
+ return (str + '').toUpperCase();
+};
+// 把字符串转换为小写。
+var lower = function (str) {
+ return (str + '').toLowerCase();
+};
+// 从数组中随机选择一个
+var pickOne = function (arr) {
+ return arr[natural(0, arr.length - 1)];
+};
+function pick(arr, min, max) {
+ if (min === void 0) { min = 1; }
+ // pick( item1, item2 ... )
+ if (!isArray(arr)) {
+ return pickOne(Array.from(arguments));
+ }
+ // pick( [ item1, item2 ... ], count )
+ if (!isDef(max)) {
+ max = min;
+ }
+ if (min === 1 && max === 1) {
+ return pickOne(arr);
+ }
+ // pick( [ item1, item2 ... ], min, max )
+ return shuffle(arr, min, max);
+}
+// 从map中随机选择一个
+var pickMap = function (map) {
+ return pick(values(map));
+};
+// 打乱数组中元素的顺序,并按照 min - max 返回。
+var shuffle = function (arr, min, max) {
+ if (!Array.isArray(arr)) {
+ return [];
+ }
+ var copy = arr.slice();
+ var length = arr.length;
+ for (var i = 0; i < length; i++) {
+ var swapIndex = natural(0, length - 1);
+ var swapValue = copy[swapIndex];
+ copy[swapIndex] = copy[i];
+ copy[i] = swapValue;
+ }
+ if (min && max) {
+ return copy.slice(0, natural(min, max));
+ }
+ if (min) {
+ return copy.slice(0, min);
+ }
+ return copy;
+};
+
+var helper = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ capitalize: capitalize,
+ upper: upper,
+ lower: lower,
+ pickOne: pickOne,
+ pick: pick,
+ pickMap: pickMap,
+ shuffle: shuffle
+});
+
+// image
+// 常见图片尺寸
+var imageSize = [
+ '150x100', '300x200', '400x300', '600x450', '800x600',
+ '100x150', '200x300', '300x400', '450x600', '600x800',
+ '100x100', '200x200', '300x300', '450x450', '600x600'
+];
+/**
+ * 随机生成一个图片,使用:http://iph.href.lu,例如:
+ * https://iph.href.lu/600x400?fg=cc00cc&bg=470047&text=hello
+ * @param size 图片大小
+ * @param background 背景色
+ * @param foreground 文字颜色
+ * @param format 图片格式
+ * @param text 文字
+ */
+var image = function (size, background, foreground, format, text) {
+ if (size === void 0) { size = ''; }
+ if (background === void 0) { background = ''; }
+ if (foreground === void 0) { foreground = ''; }
+ if (format === void 0) { format = ''; }
+ if (text === void 0) { text = ''; }
+ // Random.image( size, background, foreground, text )
+ if (arguments.length === 4) {
+ text = format;
+ format = '';
+ }
+ // Random.image( size, background, text )
+ if (arguments.length === 3) {
+ text = foreground;
+ foreground = '';
+ }
+ // Random.image( size, text )
+ if (arguments.length === 2) {
+ text = background;
+ background = '';
+ }
+ // Random.image()
+ size = size || pick(imageSize);
+ if (background && ~background.indexOf('#')) {
+ background = background.slice(1);
+ }
+ if (foreground && ~foreground.indexOf('#')) {
+ foreground = foreground.slice(1);
+ }
+ return format
+ ? ('https://dummyimage.com/' +
+ size +
+ (background ? '/' + background : '') +
+ (foreground ? '/' + foreground : '') +
+ (format ? '.' + format : '') +
+ (text ? '?text=' + encodeURIComponent(text) : ''))
+ : "https://iph.href.lu/" + size + "?bg=" + background + "&fg=" + foreground + "&text=" + text;
+};
+var img = image;
+/**
+ * 生成一个随机的base64图片
+ * @param size 图片宽高
+ * @param text 图片上的文字
+ */
+var dataImage = function (size, text) {
+ size = size || pick(imageSize);
+ text = text || size;
+ var background = pick([
+ '#171515', '#e47911', '#183693', '#720e9e', '#c4302b', '#dd4814',
+ '#00acee', '#0071c5', '#3d9ae8', '#ec6231', '#003580', '#e51937'
+ ]);
+ var sizes = size.split('x');
+ var width = parseInt(sizes[0], 10);
+ var height = parseInt(sizes[1], 10);
+ assert(isNumber(width) && isNumber(height), 'Invalid size, expected INTxINT, e.g. 300x400');
+ {
+ return createBrowserDataImage(width, height, background, text);
+ }
+};
+// browser 端生成 base64 图片
+function createBrowserDataImage(width, height, background, text) {
+ var canvas = document.createElement('canvas');
+ var ctx = canvas && canvas.getContext && canvas.getContext('2d');
+ if (!canvas || !ctx) {
+ return '';
+ }
+ canvas.width = width;
+ canvas.height = height;
+ ctx.textAlign = 'center';
+ ctx.textBaseline = 'middle';
+ ctx.fillStyle = background;
+ ctx.fillRect(0, 0, width, height);
+ ctx.fillStyle = '#FFFFFF';
+ ctx.font = 'bold 14px sans-serif';
+ ctx.fillText(text, width / 2, height / 2, width);
+ return canvas.toDataURL('image/png');
+}
+
+var image$1 = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ image: image,
+ img: img,
+ dataImage: dataImage
+});
+
+// 颜色空间RGB与HSV(HSL)的转换
+var hsv2rgb = function hsv2rgb(hsv) {
+ var h = hsv[0] / 60;
+ var s = hsv[1] / 100;
+ var v = hsv[2] / 100;
+ var hi = Math.floor(h) % 6;
+ var f = h - Math.floor(h);
+ var p = 255 * v * (1 - s);
+ var q = 255 * v * (1 - (s * f));
+ var t = 255 * v * (1 - (s * (1 - f)));
+ v = 255 * v;
+ switch (hi) {
+ case 0:
+ return [v, t, p];
+ case 1:
+ return [q, v, p];
+ case 2:
+ return [p, v, t];
+ case 3:
+ return [p, q, v];
+ case 4:
+ return [t, p, v];
+ case 5:
+ return [v, p, q];
+ }
+};
+var hsv2hsl = function hsv2hsl(hsv) {
+ var h = hsv[0], s = hsv[1] / 100, v = hsv[2] / 100, sl, l;
+ l = (2 - s) * v;
+ sl = s * v;
+ sl /= (l <= 1) ? l : 2 - l;
+ l /= 2;
+ return [h, sl * 100, l * 100];
+};
+// http://www.140byt.es/keywords/color
+var rgb2hex = function (a, // red, as a number from 0 to 255
+b, // green, as a number from 0 to 255
+c // blue, as a number from 0 to 255
+) {
+ return "#" + ((256 + a << 8 | b) << 8 | c).toString(16).slice(1);
+};
+
+// 颜色相关
+var colorMap = {
+ navy: '#001F3F',
+ blue: '#0074D9',
+ aqua: '#7FDBFF',
+ teal: '#39CCCC',
+ olive: '#3D9970',
+ green: '#2ECC40',
+ lime: '#01FF70',
+ yellow: '#FFDC00',
+ orange: '#FF851B',
+ red: '#FF4136',
+ maroon: '#85144B',
+ fuchsia: '#F012BE',
+ purple: '#B10DC9',
+ silver: '#DDDDDD',
+ gray: '#AAAAAA',
+ black: '#111111',
+ white: '#FFFFFF'
+};
+// 随机生成一个有吸引力的颜色,格式为 '#RRGGBB'。
+var color = function (name) {
+ if (name === void 0) { name = ''; }
+ if (name && colorMap[name]) {
+ return colorMap[name];
+ }
+ return hex();
+};
+// #DAC0DE
+var hex = function () {
+ var hsv = _goldenRatioColor();
+ var rgb = hsv2rgb(hsv);
+ return rgb2hex(rgb[0], rgb[1], rgb[2]);
+};
+// rgb(128,255,255)
+var rgb = function () {
+ var hsv = _goldenRatioColor();
+ var rgb = hsv2rgb(hsv);
+ return 'rgb(' +
+ parseInt(rgb[0].toString(), 10) + ', ' +
+ parseInt(rgb[1].toString(), 10) + ', ' +
+ parseInt(rgb[2].toString(), 10) + ')';
+};
+// rgba(128,255,255,0.3)
+var rgba = function () {
+ var hsv = _goldenRatioColor();
+ var rgb = hsv2rgb(hsv);
+ return 'rgba(' +
+ parseInt(rgb[0].toString(), 10) + ', ' +
+ parseInt(rgb[1].toString(), 10) + ', ' +
+ parseInt(rgb[2].toString(), 10) + ', ' +
+ Math.random().toFixed(2) + ')';
+};
+// hsl(300,80%,90%)
+var hsl = function () {
+ var hsv = _goldenRatioColor();
+ var hsl = hsv2hsl(hsv);
+ return 'hsl(' +
+ parseInt(hsl[0], 10) + ', ' +
+ parseInt(hsl[1], 10) + ', ' +
+ parseInt(hsl[2], 10) + ')';
+};
+// http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/
+// https://github.com/devongovett/color-generator/blob/master/index.js
+// 随机生成一个有吸引力的颜色。
+var _hue = 0;
+var _goldenRatioColor = function (saturation, value) {
+ var _goldenRatio = 0.618033988749895;
+ _hue = _hue || Math.random();
+ _hue += _goldenRatio;
+ _hue %= 1;
+ if (typeof saturation !== "number")
+ saturation = 0.5;
+ if (typeof value !== "number")
+ value = 0.95;
+ return [
+ _hue * 360,
+ saturation * 100,
+ value * 100
+ ];
+};
+
+var color$1 = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ color: color,
+ hex: hex,
+ rgb: rgb,
+ rgba: rgba,
+ hsl: hsl
+});
+
+/** Used to compose unicode character classes. */
+var rsAstralRange = '\\ud800-\\udfff';
+var rsComboMarksRange = '\\u0300-\\u036f';
+var reComboHalfMarksRange = '\\ufe20-\\ufe2f';
+var rsComboSymbolsRange = '\\u20d0-\\u20ff';
+var rsComboMarksExtendedRange = '\\u1ab0-\\u1aff';
+var rsComboMarksSupplementRange = '\\u1dc0-\\u1dff';
+var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange + rsComboMarksExtendedRange + rsComboMarksSupplementRange;
+var rsVarRange = '\\ufe0e\\ufe0f';
+/** Used to compose unicode capture groups. */
+var rsZWJ = '\\u200d';
+var rsAstral = "[" + rsAstralRange + "]";
+var rsCombo = "[" + rsComboRange + "]";
+var rsFitz = '\\ud83c[\\udffb-\\udfff]';
+var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
+var rsNonAstral = "[^" + rsAstralRange + "]";
+var rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}';
+var rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]';
+/** Used to compose unicode regexes. */
+var reOptMod = rsModifier + "?";
+var rsOptVar = "[" + rsVarRange + "]?";
+var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ")" + (rsOptVar + reOptMod) + ")*";
+var rsSeq = rsOptVar + reOptMod + rsOptJoin;
+var rsNonAstralCombo = "" + rsNonAstral + rsCombo + "?";
+var rsSymbol = "(?:" + [rsNonAstralCombo, rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ")";
+/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
+var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + (rsSymbol + rsSeq), 'g');
+/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
+var reHasUnicode = RegExp("[" + (rsZWJ + rsAstralRange + rsComboRange + rsVarRange) + "]");
+/**
+ * Checks if `string` contains Unicode symbols.
+ *
+ * @private
+ * @param {string} string The string to inspect.
+ * @returns {boolean} Returns `true` if a symbol is found, else `false`.
+ */
+function hasUnicode(string) {
+ return reHasUnicode.test(string);
+}
+/**
+ * Converts an ASCII `string` to an array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the converted array.
+ */
+function asciiToArray(string) {
+ return string.split('');
+}
+/**
+* Converts a Unicode `string` to an array.
+*
+* @private
+* @param {string} string The string to convert.
+* @returns {Array} Returns the converted array.
+*/
+function unicodeToArray(string) {
+ return string.match(reUnicode) || [];
+}
+/**
+ * Converts `string` to an array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the converted array.
+ */
+/* istanbul ignore next */
+function stringToArray(string) {
+ return hasUnicode(string)
+ ? unicodeToArray(string)
+ : asciiToArray(string);
+}
+
+var _range = function (defaultMin, defaultMax, min, max) {
+ return !isDef(min)
+ ? natural(defaultMin, defaultMax)
+ : !isDef(max)
+ ? min
+ : natural(parseInt(min.toString(), 10), parseInt(max.toString(), 10)); // ( min, max )
+};
+// 随机生成一段文本。
+var paragraph = function (min, max) {
+ var len = _range(3, 7, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(sentence());
+ }
+ return result.join(' ');
+};
+var cparagraph = function (min, max) {
+ var len = _range(3, 7, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(csentence());
+ }
+ return result.join('');
+};
+// 随机生成一个句子,第一个单词的首字母大写。
+var sentence = function (min, max) {
+ var len = _range(12, 18, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(word());
+ }
+ return capitalize(result.join(' ')) + '.';
+};
+// 随机生成一个中文句子。
+var csentence = function (min, max) {
+ var len = _range(12, 18, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(cword());
+ }
+ return result.join('') + '。';
+};
+// 随机生成一个单词。
+var word = function (min, max) {
+ var len = _range(3, 10, min, max);
+ var result = '';
+ for (var i = 0; i < len; i++) {
+ result += character('lower');
+ }
+ return result;
+};
+// 随机生成一个或多个汉字。
+var cword = function (pool, min, max) {
+ if (pool === void 0) { pool = ''; }
+ // 最常用的 500 个汉字 http://baike.baidu.com/view/568436.htm
+ var cnWords = '的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞';
+ var len;
+ switch (arguments.length) {
+ case 0: // ()
+ pool = cnWords;
+ len = 1;
+ break;
+ case 1: // ( pool )
+ if (typeof arguments[0] === 'string') {
+ len = 1;
+ }
+ else {
+ // ( length )
+ len = pool;
+ pool = cnWords;
+ }
+ break;
+ case 2:
+ // ( pool, length )
+ if (typeof arguments[0] === 'string') {
+ len = min;
+ }
+ else {
+ // ( min, max )
+ len = natural(parseInt(pool, 10), min);
+ pool = cnWords;
+ }
+ break;
+ case 3:
+ len = natural(min, max);
+ break;
+ }
+ var result = '';
+ for (var i = 0; i < len; i++) {
+ result += pool.charAt(natural(0, pool.length - 1));
+ }
+ return result;
+};
+// 随机生成一个或多个 emoji 符号
+var emoji = function (pool, min, max) {
+ if (!['string', 'number', 'undefined'].includes(typeof pool)) {
+ return '';
+ }
+ // 常用的 338 个emoji符号 http://www.fhdq.net/emoji.html
+ var emojis = '😀😁😂😃😄😅😆😉😊😋😎😍😘😗😙😚☺😇😐😑😶😏😣😥😮😯😪😫😴😌😛😜😝😒😓😔😕😲😷😖😞😟😤😢😭😦😧😨😬😰😱😳😵😡😠😈👿👹👺💀👻👽👦👧👨👩👴👵👶👱👮👲👳👷👸💂🎅👰👼💆💇🙍🙎🙅🙆💁🙋🙇🙌🙏👤👥🚶🏃👯💃👫👬👭💏💑👪💪👈👉☝👆👇✌✋👌👍👎✊👊👋👏👐✍👣👀👂👃👅👄💋👓👔👕👖👗👘👙👚👛👜👝🎒💼👞👟👠👡👢👑👒🎩🎓💄💅💍🌂🙈🙉🙊🐵🐒🐶🐕🐩🐺🐱😺😸😹😻😼😽🙀😿😾🐈🐯🐅🐆🐴🐎🐮🐂🐃🐄🐷🐖🐗🐽🐏🐑🐐🐪🐫🐘🐭🐁🐀🐹🐰🐇🐻🐨🐼🐾🐔🐓🐣🐤🐥🐦🐧🐸🐊🐢🐍🐲🐉🐳🐋🐬🐟🐠🐡🐙🐚🐌🐛🐜🐝🐞💐🌸💮🌹🌺🌻🌼🌷🌱🌲🌳🌴🌵🌾🌿🍀🍁🍂🍃🌍🌎🌏🌐🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜☀🌝🌞⭐🌟🌠☁⛅☔⚡❄🔥💧🌊💩🍇🍈🍉🍊🍋🍌🍍🍎🍏🍐🍑🍒🍓🍅🍆🌽🍄🌰🍞🍖🍗🍔🍟🍕🍳🍲🍱🍘🍙🍚🍛🍜🍝🍠🍢🍣🍤🍥🍡🍦🍧🍨🍩🍪🎂🍰🍫🍬🍭🍮🍯🍼☕🍵🍶🍷🍸🍹🍺🍻🍴';
+ var array = stringToArray(emojis);
+ if (typeof pool === 'string') { // emoji("😀😁😂"), emoji("😀😂", 2), emoji("😀😂", 2, 3)
+ array = stringToArray(pool);
+ }
+ else if (typeof pool === 'number') { // emoji(2), emoji(2, 3)
+ max = min;
+ min = pool;
+ }
+ if (min === undefined || min < 2) { // emoji("😀😁😂"), emoji()
+ return pick(array); // pick(['1', '2']) => "2", pick(['1', '2'], 1) => "2"
+ }
+ return pick(array, min, max).join('');
+};
+// 随机生成一句标题,其中每个单词的首字母大写。
+var title = function (min, max) {
+ var len = _range(3, 7, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(capitalize(word()));
+ }
+ return result.join(' ');
+};
+// 随机生成一句中文标题。
+var ctitle = function (min, max) {
+ var len = _range(3, 7, min, max);
+ var result = [];
+ for (var i = 0; i < len; i++) {
+ result.push(cword());
+ }
+ return result.join('');
+};
+
+var text = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ paragraph: paragraph,
+ cparagraph: cparagraph,
+ sentence: sentence,
+ csentence: csentence,
+ word: word,
+ cword: cword,
+ emoji: emoji,
+ title: title,
+ ctitle: ctitle
+});
+
+// 随机生成一个常见的英文名。
+var first = function () {
+ var male = [
+ "James", "John", "Robert", "Michael", "William",
+ "David", "Richard", "Charles", "Joseph", "Thomas",
+ "Christopher", "Daniel", "Paul", "Mark", "Donald",
+ "George", "Kenneth", "Steven", "Edward", "Brian",
+ "Ronald", "Anthony", "Kevin", "Jason", "Matthew",
+ "Gary", "Timothy", "Jose", "Larry", "Jeffrey",
+ "Frank", "Scott", "Eric"
+ ];
+ var female = [
+ "Mary", "Patricia", "Linda", "Barbara", "Elizabeth",
+ "Jennifer", "Maria", "Susan", "Margaret", "Dorothy",
+ "Lisa", "Nancy", "Karen", "Betty", "Helen",
+ "Sandra", "Donna", "Carol", "Ruth", "Sharon",
+ "Michelle", "Laura", "Sarah", "Kimberly", "Deborah",
+ "Jessica", "Shirley", "Cynthia", "Angela", "Melissa",
+ "Brenda", "Amy", "Anna"
+ ];
+ return pick(__spreadArrays(male, female));
+};
+// 随机生成一个常见的英文姓。
+var last = function () {
+ var names = [
+ "Smith", "Johnson", "Williams", "Brown", "Jones",
+ "Miller", "Davis", "Garcia", "Rodriguez", "Wilson",
+ "Martinez", "Anderson", "Taylor", "Thomas", "Hernandez",
+ "Moore", "Martin", "Jackson", "Thompson", "White",
+ "Lopez", "Lee", "Gonzalez", "Harris", "Clark",
+ "Lewis", "Robinson", "Walker", "Perez", "Hall",
+ "Young", "Allen"
+ ];
+ return pick(names);
+};
+// 随机生成一个常见的英文姓名。
+var name = function (middle) {
+ if (middle === void 0) { middle = false; }
+ return first() + ' ' + (middle ? first() + ' ' : '') + last();
+};
+// 随机生成一个常见的中文姓。
+// [世界常用姓氏排行](http://baike.baidu.com/view/1719115.htm)
+// [玄派网 - 网络小说创作辅助平台](http://xuanpai.sinaapp.com/)
+var cfirst = function () {
+ var names = [
+ "王", "李", "张", "刘", "陈", "杨", "赵", "黄",
+ "周", "吴", "徐", "孙", "胡", "朱", "高", "林",
+ "何", "郭", "马", "罗", "梁", "宋", "郑", "谢",
+ "韩", "唐", "冯", "于", "董", "萧", "程", "曹",
+ "袁", "邓", "许", "傅", "沈", "曾", "彭", "吕",
+ "苏", "卢", "蒋", "蔡", "贾", "丁", "魏", "薛",
+ "叶", "阎", "余", "潘", "杜", "戴", "夏", "锺",
+ "汪", "田", "任", "姜", "范", "方", "石", "姚",
+ "谭", "廖", "邹", "熊", "金", "陆", "郝", "孔",
+ "白", "崔", "康", "毛", "邱", "秦", "江", "史",
+ "顾", "侯", "邵", "孟", "龙", "万", "段", "雷",
+ "钱", "汤", "尹", "黎", "易", "常", "武", "乔",
+ "贺", "赖", "龚", "文"
+ ];
+ return pick(names);
+};
+// 随机生成一个常见的中文名。
+// [中国最常见名字前50名_三九算命网](http://www.name999.net/xingming/xingshi/20131004/48.html)
+var clast = function () {
+ var names = [
+ "伟", "芳", "娜", "秀英", "敏", "静", "丽", "强",
+ "磊", "军", "洋", "勇", "艳", "杰", "娟", "涛",
+ "明", "超", "秀兰", "霞", "平", "刚", "桂英"
+ ];
+ return pick(names);
+};
+// 随机生成一个常见的中文姓名。
+var cname = function () {
+ return cfirst() + clast();
+};
+
+var name$1 = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ first: first,
+ last: last,
+ name: name,
+ cfirst: cfirst,
+ clast: clast,
+ cname: cname
+});
+
+// 随机生成一个 URL。
+var url = function (_protocol, host) {
+ if (_protocol === void 0) { _protocol = protocol(); }
+ if (host === void 0) { host = domain(); }
+ return _protocol + "://" + host + "/" + word();
+};
+// 随机生成一个 URL 协议。
+var protocol = function () {
+ // 协议簇
+ var protocols = [
+ 'http', 'ftp', 'gopher', 'mailto', 'mid', 'cid', 'news', 'nntp',
+ 'prospero', 'telnet', 'rlogin', 'tn3270', 'wais'
+ ];
+ return pick(protocols);
+};
+// 随机生成一个域名。
+var domain = function (_tld) {
+ if (_tld === void 0) { _tld = tld(); }
+ return word() + '.' + _tld;
+};
+// 随机生成一个顶级域名。
+// [域名后缀大全](http://www.163ns.com/zixun/post/4417.html)
+var tld = function () {
+ var tlds = (
+ // 域名后缀
+ 'com net org edu gov int mil cn ' +
+ // 国内域名
+ 'com.cn net.cn gov.cn org.cn ' +
+ // 中文国内域名
+ '中国 中国互联.公司 中国互联.网络 ' +
+ // 新国际域名
+ 'tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ' +
+ // 世界各国域名后缀
+ 'ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw').split(' ');
+ return pick(tlds);
+};
+// 随机生成一个邮件地址。
+var email = function (_domain) {
+ if (_domain === void 0) { _domain = domain(); }
+ return character('lower') + '.' + word() + '@' + _domain;
+};
+// 随机生成一个 IP 地址。
+var ip = function () {
+ return natural(0, 255) + '.' +
+ natural(0, 255) + '.' +
+ natural(0, 255) + '.' +
+ natural(0, 255);
+};
+
+var web = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ url: url,
+ protocol: protocol,
+ domain: domain,
+ tld: tld,
+ email: email,
+ ip: ip
+});
+
+var location$1 = {
+ "110000": {
+ code: "110000",
+ name: "北京市",
+ cities: {
+ "110000": {
+ code: "110000",
+ name: "北京市",
+ districts: {
+ "110101": "东城区",
+ "110102": "西城区",
+ "110105": "朝阳区",
+ "110106": "丰台区",
+ "110107": "石景山区",
+ "110108": "海淀区",
+ "110109": "门头沟区",
+ "110111": "房山区",
+ "110112": "通州区",
+ "110113": "顺义区",
+ "110114": "昌平区",
+ "110115": "大兴区",
+ "110116": "怀柔区",
+ "110117": "平谷区",
+ "110118": "密云区",
+ "110119": "延庆区"
+ }
+ }
+ }
+},
+ "120000": {
+ code: "120000",
+ name: "天津市",
+ cities: {
+ "120000": {
+ code: "120000",
+ name: "天津市",
+ districts: {
+ "120101": "和平区",
+ "120102": "河东区",
+ "120103": "河西区",
+ "120104": "南开区",
+ "120105": "河北区",
+ "120106": "红桥区",
+ "120110": "东丽区",
+ "120111": "西青区",
+ "120112": "津南区",
+ "120113": "北辰区",
+ "120114": "武清区",
+ "120115": "宝坻区",
+ "120116": "滨海新区",
+ "120117": "宁河区",
+ "120118": "静海区",
+ "120119": "蓟州区"
+ }
+ }
+ }
+},
+ "130000": {
+ code: "130000",
+ name: "河北省",
+ cities: {
+ "130100": {
+ code: "130100",
+ name: "石家庄市",
+ districts: {
+ "130102": "长安区",
+ "130104": "桥西区",
+ "130105": "新华区",
+ "130107": "井陉矿区",
+ "130108": "裕华区",
+ "130109": "藁城区",
+ "130110": "鹿泉区",
+ "130111": "栾城区",
+ "130121": "井陉县",
+ "130123": "正定县",
+ "130125": "行唐县",
+ "130126": "灵寿县",
+ "130127": "高邑县",
+ "130128": "深泽县",
+ "130129": "赞皇县",
+ "130130": "无极县",
+ "130131": "平山县",
+ "130132": "元氏县",
+ "130133": "赵县",
+ "130181": "辛集市",
+ "130183": "晋州市",
+ "130184": "新乐市"
+ }
+ },
+ "130200": {
+ code: "130200",
+ name: "唐山市",
+ districts: {
+ "130202": "路南区",
+ "130203": "路北区",
+ "130204": "古冶区",
+ "130205": "开平区",
+ "130207": "丰南区",
+ "130208": "丰润区",
+ "130209": "曹妃甸区",
+ "130224": "滦南县",
+ "130225": "乐亭县",
+ "130227": "迁西县",
+ "130229": "玉田县",
+ "130281": "遵化市",
+ "130283": "迁安市",
+ "130284": "滦州市"
+ }
+ },
+ "130300": {
+ code: "130300",
+ name: "秦皇岛市",
+ districts: {
+ "130302": "海港区",
+ "130303": "山海关区",
+ "130304": "北戴河区",
+ "130306": "抚宁区",
+ "130321": "青龙满族自治县",
+ "130322": "昌黎县",
+ "130324": "卢龙县"
+ }
+ },
+ "130400": {
+ code: "130400",
+ name: "邯郸市",
+ districts: {
+ "130402": "邯山区",
+ "130403": "丛台区",
+ "130404": "复兴区",
+ "130406": "峰峰矿区",
+ "130407": "肥乡区",
+ "130408": "永年区",
+ "130423": "临漳县",
+ "130424": "成安县",
+ "130425": "大名县",
+ "130426": "涉县",
+ "130427": "磁县",
+ "130430": "邱县",
+ "130431": "鸡泽县",
+ "130432": "广平县",
+ "130433": "馆陶县",
+ "130434": "魏县",
+ "130435": "曲周县",
+ "130481": "武安市"
+ }
+ },
+ "130500": {
+ code: "130500",
+ name: "邢台市",
+ districts: {
+ "130502": "桥东区",
+ "130503": "桥西区",
+ "130521": "邢台县",
+ "130522": "临城县",
+ "130523": "内丘县",
+ "130524": "柏乡县",
+ "130525": "隆尧县",
+ "130526": "任县",
+ "130527": "南和县",
+ "130528": "宁晋县",
+ "130529": "巨鹿县",
+ "130530": "新河县",
+ "130531": "广宗县",
+ "130532": "平乡县",
+ "130533": "威县",
+ "130534": "清河县",
+ "130535": "临西县",
+ "130581": "南宫市",
+ "130582": "沙河市"
+ }
+ },
+ "130600": {
+ code: "130600",
+ name: "保定市",
+ districts: {
+ "130602": "竞秀区",
+ "130606": "莲池区",
+ "130607": "满城区",
+ "130608": "清苑区",
+ "130609": "徐水区",
+ "130623": "涞水县",
+ "130624": "阜平县",
+ "130626": "定兴县",
+ "130627": "唐县",
+ "130628": "高阳县",
+ "130629": "容城县",
+ "130630": "涞源县",
+ "130631": "望都县",
+ "130632": "安新县",
+ "130633": "易县",
+ "130634": "曲阳县",
+ "130635": "蠡县",
+ "130636": "顺平县",
+ "130637": "博野县",
+ "130638": "雄县",
+ "130681": "涿州市",
+ "130682": "定州市",
+ "130683": "安国市",
+ "130684": "高碑店市"
+ }
+ },
+ "130700": {
+ code: "130700",
+ name: "张家口市",
+ districts: {
+ "130702": "桥东区",
+ "130703": "桥西区",
+ "130705": "宣化区",
+ "130706": "下花园区",
+ "130708": "万全区",
+ "130709": "崇礼区",
+ "130722": "张北县",
+ "130723": "康保县",
+ "130724": "沽源县",
+ "130725": "尚义县",
+ "130726": "蔚县",
+ "130727": "阳原县",
+ "130728": "怀安县",
+ "130730": "怀来县",
+ "130731": "涿鹿县",
+ "130732": "赤城县"
+ }
+ },
+ "130800": {
+ code: "130800",
+ name: "承德市",
+ districts: {
+ "130802": "双桥区",
+ "130803": "双滦区",
+ "130804": "鹰手营子矿区",
+ "130821": "承德县",
+ "130822": "兴隆县",
+ "130824": "滦平县",
+ "130825": "隆化县",
+ "130826": "丰宁满族自治县",
+ "130827": "宽城满族自治县",
+ "130828": "围场满族蒙古族自治县",
+ "130881": "平泉市"
+ }
+ },
+ "130900": {
+ code: "130900",
+ name: "沧州市",
+ districts: {
+ "130902": "新华区",
+ "130903": "运河区",
+ "130921": "沧县",
+ "130922": "青县",
+ "130923": "东光县",
+ "130924": "海兴县",
+ "130925": "盐山县",
+ "130926": "肃宁县",
+ "130927": "南皮县",
+ "130928": "吴桥县",
+ "130929": "献县",
+ "130930": "孟村回族自治县",
+ "130981": "泊头市",
+ "130982": "任丘市",
+ "130983": "黄骅市",
+ "130984": "河间市"
+ }
+ },
+ "131000": {
+ code: "131000",
+ name: "廊坊市",
+ districts: {
+ "131002": "安次区",
+ "131003": "广阳区",
+ "131022": "固安县",
+ "131023": "永清县",
+ "131024": "香河县",
+ "131025": "大城县",
+ "131026": "文安县",
+ "131028": "大厂回族自治县",
+ "131081": "霸州市",
+ "131082": "三河市"
+ }
+ },
+ "131100": {
+ code: "131100",
+ name: "衡水市",
+ districts: {
+ "131102": "桃城区",
+ "131103": "冀州区",
+ "131121": "枣强县",
+ "131122": "武邑县",
+ "131123": "武强县",
+ "131124": "饶阳县",
+ "131125": "安平县",
+ "131126": "故城县",
+ "131127": "景县",
+ "131128": "阜城县",
+ "131182": "深州市"
+ }
+ }
+ }
+},
+ "140000": {
+ code: "140000",
+ name: "山西省",
+ cities: {
+ "140100": {
+ code: "140100",
+ name: "太原市",
+ districts: {
+ "140105": "小店区",
+ "140106": "迎泽区",
+ "140107": "杏花岭区",
+ "140108": "尖草坪区",
+ "140109": "万柏林区",
+ "140110": "晋源区",
+ "140121": "清徐县",
+ "140122": "阳曲县",
+ "140123": "娄烦县",
+ "140181": "古交市"
+ }
+ },
+ "140200": {
+ code: "140200",
+ name: "大同市",
+ districts: {
+ "140212": "新荣区",
+ "140213": "平城区",
+ "140214": "云冈区",
+ "140215": "云州区",
+ "140221": "阳高县",
+ "140222": "天镇县",
+ "140223": "广灵县",
+ "140224": "灵丘县",
+ "140225": "浑源县",
+ "140226": "左云县"
+ }
+ },
+ "140300": {
+ code: "140300",
+ name: "阳泉市",
+ districts: {
+ "140302": "城区",
+ "140303": "矿区",
+ "140311": "郊区",
+ "140321": "平定县",
+ "140322": "盂县"
+ }
+ },
+ "140400": {
+ code: "140400",
+ name: "长治市",
+ districts: {
+ "140403": "潞州区",
+ "140404": "上党区",
+ "140405": "屯留区",
+ "140406": "潞城区",
+ "140423": "襄垣县",
+ "140425": "平顺县",
+ "140426": "黎城县",
+ "140427": "壶关县",
+ "140428": "长子县",
+ "140429": "武乡县",
+ "140430": "沁县",
+ "140431": "沁源县"
+ }
+ },
+ "140500": {
+ code: "140500",
+ name: "晋城市",
+ districts: {
+ "140502": "城区",
+ "140521": "沁水县",
+ "140522": "阳城县",
+ "140524": "陵川县",
+ "140525": "泽州县",
+ "140581": "高平市"
+ }
+ },
+ "140600": {
+ code: "140600",
+ name: "朔州市",
+ districts: {
+ "140602": "朔城区",
+ "140603": "平鲁区",
+ "140621": "山阴县",
+ "140622": "应县",
+ "140623": "右玉县",
+ "140681": "怀仁市"
+ }
+ },
+ "140700": {
+ code: "140700",
+ name: "晋中市",
+ districts: {
+ "140702": "榆次区",
+ "140721": "榆社县",
+ "140722": "左权县",
+ "140723": "和顺县",
+ "140724": "昔阳县",
+ "140725": "寿阳县",
+ "140726": "太谷县",
+ "140727": "祁县",
+ "140728": "平遥县",
+ "140729": "灵石县",
+ "140781": "介休市"
+ }
+ },
+ "140800": {
+ code: "140800",
+ name: "运城市",
+ districts: {
+ "140802": "盐湖区",
+ "140821": "临猗县",
+ "140822": "万荣县",
+ "140823": "闻喜县",
+ "140824": "稷山县",
+ "140825": "新绛县",
+ "140826": "绛县",
+ "140827": "垣曲县",
+ "140828": "夏县",
+ "140829": "平陆县",
+ "140830": "芮城县",
+ "140881": "永济市",
+ "140882": "河津市"
+ }
+ },
+ "140900": {
+ code: "140900",
+ name: "忻州市",
+ districts: {
+ "140902": "忻府区",
+ "140921": "定襄县",
+ "140922": "五台县",
+ "140923": "代县",
+ "140924": "繁峙县",
+ "140925": "宁武县",
+ "140926": "静乐县",
+ "140927": "神池县",
+ "140928": "五寨县",
+ "140929": "岢岚县",
+ "140930": "河曲县",
+ "140931": "保德县",
+ "140932": "偏关县",
+ "140981": "原平市"
+ }
+ },
+ "141000": {
+ code: "141000",
+ name: "临汾市",
+ districts: {
+ "141002": "尧都区",
+ "141021": "曲沃县",
+ "141022": "翼城县",
+ "141023": "襄汾县",
+ "141024": "洪洞县",
+ "141025": "古县",
+ "141026": "安泽县",
+ "141027": "浮山县",
+ "141028": "吉县",
+ "141029": "乡宁县",
+ "141030": "大宁县",
+ "141031": "隰县",
+ "141032": "永和县",
+ "141033": "蒲县",
+ "141034": "汾西县",
+ "141081": "侯马市",
+ "141082": "霍州市"
+ }
+ },
+ "141100": {
+ code: "141100",
+ name: "吕梁市",
+ districts: {
+ "141102": "离石区",
+ "141121": "文水县",
+ "141122": "交城县",
+ "141123": "兴县",
+ "141124": "临县",
+ "141125": "柳林县",
+ "141126": "石楼县",
+ "141127": "岚县",
+ "141128": "方山县",
+ "141129": "中阳县",
+ "141130": "交口县",
+ "141181": "孝义市",
+ "141182": "汾阳市"
+ }
+ }
+ }
+},
+ "150000": {
+ code: "150000",
+ name: "内蒙古自治区",
+ cities: {
+ "150100": {
+ code: "150100",
+ name: "呼和浩特市",
+ districts: {
+ "150102": "新城区",
+ "150103": "回民区",
+ "150104": "玉泉区",
+ "150105": "赛罕区",
+ "150121": "土默特左旗",
+ "150122": "托克托县",
+ "150123": "和林格尔县",
+ "150124": "清水河县",
+ "150125": "武川县"
+ }
+ },
+ "150200": {
+ code: "150200",
+ name: "包头市",
+ districts: {
+ "150202": "东河区",
+ "150203": "昆都仑区",
+ "150204": "青山区",
+ "150205": "石拐区",
+ "150206": "白云鄂博矿区",
+ "150207": "九原区",
+ "150221": "土默特右旗",
+ "150222": "固阳县",
+ "150223": "达尔罕茂明安联合旗"
+ }
+ },
+ "150300": {
+ code: "150300",
+ name: "乌海市",
+ districts: {
+ "150302": "海勃湾区",
+ "150303": "海南区",
+ "150304": "乌达区"
+ }
+ },
+ "150400": {
+ code: "150400",
+ name: "赤峰市",
+ districts: {
+ "150402": "红山区",
+ "150403": "元宝山区",
+ "150404": "松山区",
+ "150421": "阿鲁科尔沁旗",
+ "150422": "巴林左旗",
+ "150423": "巴林右旗",
+ "150424": "林西县",
+ "150425": "克什克腾旗",
+ "150426": "翁牛特旗",
+ "150428": "喀喇沁旗",
+ "150429": "宁城县",
+ "150430": "敖汉旗"
+ }
+ },
+ "150500": {
+ code: "150500",
+ name: "通辽市",
+ districts: {
+ "150502": "科尔沁区",
+ "150521": "科尔沁左翼中旗",
+ "150522": "科尔沁左翼后旗",
+ "150523": "开鲁县",
+ "150524": "库伦旗",
+ "150525": "奈曼旗",
+ "150526": "扎鲁特旗",
+ "150581": "霍林郭勒市"
+ }
+ },
+ "150600": {
+ code: "150600",
+ name: "鄂尔多斯市",
+ districts: {
+ "150602": "东胜区",
+ "150603": "康巴什区",
+ "150621": "达拉特旗",
+ "150622": "准格尔旗",
+ "150623": "鄂托克前旗",
+ "150624": "鄂托克旗",
+ "150625": "杭锦旗",
+ "150626": "乌审旗",
+ "150627": "伊金霍洛旗"
+ }
+ },
+ "150700": {
+ code: "150700",
+ name: "呼伦贝尔市",
+ districts: {
+ "150702": "海拉尔区",
+ "150703": "扎赉诺尔区",
+ "150721": "阿荣旗",
+ "150722": "莫力达瓦达斡尔族自治旗",
+ "150723": "鄂伦春自治旗",
+ "150724": "鄂温克族自治旗",
+ "150725": "陈巴尔虎旗",
+ "150726": "新巴尔虎左旗",
+ "150727": "新巴尔虎右旗",
+ "150781": "满洲里市",
+ "150782": "牙克石市",
+ "150783": "扎兰屯市",
+ "150784": "额尔古纳市",
+ "150785": "根河市"
+ }
+ },
+ "150800": {
+ code: "150800",
+ name: "巴彦淖尔市",
+ districts: {
+ "150802": "临河区",
+ "150821": "五原县",
+ "150822": "磴口县",
+ "150823": "乌拉特前旗",
+ "150824": "乌拉特中旗",
+ "150825": "乌拉特后旗",
+ "150826": "杭锦后旗"
+ }
+ },
+ "150900": {
+ code: "150900",
+ name: "乌兰察布市",
+ districts: {
+ "150902": "集宁区",
+ "150921": "卓资县",
+ "150922": "化德县",
+ "150923": "商都县",
+ "150924": "兴和县",
+ "150925": "凉城县",
+ "150926": "察哈尔右翼前旗",
+ "150927": "察哈尔右翼中旗",
+ "150928": "察哈尔右翼后旗",
+ "150929": "四子王旗",
+ "150981": "丰镇市"
+ }
+ },
+ "152200": {
+ code: "152200",
+ name: "兴安盟",
+ districts: {
+ "152201": "乌兰浩特市",
+ "152202": "阿尔山市",
+ "152221": "科尔沁右翼前旗",
+ "152222": "科尔沁右翼中旗",
+ "152223": "扎赉特旗",
+ "152224": "突泉县"
+ }
+ },
+ "152500": {
+ code: "152500",
+ name: "锡林郭勒盟",
+ districts: {
+ "152501": "二连浩特市",
+ "152502": "锡林浩特市",
+ "152522": "阿巴嘎旗",
+ "152523": "苏尼特左旗",
+ "152524": "苏尼特右旗",
+ "152525": "东乌珠穆沁旗",
+ "152526": "西乌珠穆沁旗",
+ "152527": "太仆寺旗",
+ "152528": "镶黄旗",
+ "152529": "正镶白旗",
+ "152530": "正蓝旗",
+ "152531": "多伦县"
+ }
+ },
+ "152900": {
+ code: "152900",
+ name: "阿拉善盟",
+ districts: {
+ "152921": "阿拉善左旗",
+ "152922": "阿拉善右旗",
+ "152923": "额济纳旗"
+ }
+ }
+ }
+},
+ "210000": {
+ code: "210000",
+ name: "辽宁省",
+ cities: {
+ "210100": {
+ code: "210100",
+ name: "沈阳市",
+ districts: {
+ "210102": "和平区",
+ "210103": "沈河区",
+ "210104": "大东区",
+ "210105": "皇姑区",
+ "210106": "铁西区",
+ "210111": "苏家屯区",
+ "210112": "浑南区",
+ "210113": "沈北新区",
+ "210114": "于洪区",
+ "210115": "辽中区",
+ "210123": "康平县",
+ "210124": "法库县",
+ "210181": "新民市"
+ }
+ },
+ "210200": {
+ code: "210200",
+ name: "大连市",
+ districts: {
+ "210202": "中山区",
+ "210203": "西岗区",
+ "210204": "沙河口区",
+ "210211": "甘井子区",
+ "210212": "旅顺口区",
+ "210213": "金州区",
+ "210214": "普兰店区",
+ "210224": "长海县",
+ "210281": "瓦房店市",
+ "210283": "庄河市"
+ }
+ },
+ "210300": {
+ code: "210300",
+ name: "鞍山市",
+ districts: {
+ "210302": "铁东区",
+ "210303": "铁西区",
+ "210304": "立山区",
+ "210311": "千山区",
+ "210321": "台安县",
+ "210323": "岫岩满族自治县",
+ "210381": "海城市"
+ }
+ },
+ "210400": {
+ code: "210400",
+ name: "抚顺市",
+ districts: {
+ "210402": "新抚区",
+ "210403": "东洲区",
+ "210404": "望花区",
+ "210411": "顺城区",
+ "210421": "抚顺县",
+ "210422": "新宾满族自治县",
+ "210423": "清原满族自治县"
+ }
+ },
+ "210500": {
+ code: "210500",
+ name: "本溪市",
+ districts: {
+ "210502": "平山区",
+ "210503": "溪湖区",
+ "210504": "明山区",
+ "210505": "南芬区",
+ "210521": "本溪满族自治县",
+ "210522": "桓仁满族自治县"
+ }
+ },
+ "210600": {
+ code: "210600",
+ name: "丹东市",
+ districts: {
+ "210602": "元宝区",
+ "210603": "振兴区",
+ "210604": "振安区",
+ "210624": "宽甸满族自治县",
+ "210681": "东港市",
+ "210682": "凤城市"
+ }
+ },
+ "210700": {
+ code: "210700",
+ name: "锦州市",
+ districts: {
+ "210702": "古塔区",
+ "210703": "凌河区",
+ "210711": "太和区",
+ "210726": "黑山县",
+ "210727": "义县",
+ "210781": "凌海市",
+ "210782": "北镇市"
+ }
+ },
+ "210800": {
+ code: "210800",
+ name: "营口市",
+ districts: {
+ "210802": "站前区",
+ "210803": "西市区",
+ "210804": "鲅鱼圈区",
+ "210811": "老边区",
+ "210881": "盖州市",
+ "210882": "大石桥市"
+ }
+ },
+ "210900": {
+ code: "210900",
+ name: "阜新市",
+ districts: {
+ "210902": "海州区",
+ "210903": "新邱区",
+ "210904": "太平区",
+ "210905": "清河门区",
+ "210911": "细河区",
+ "210921": "阜新蒙古族自治县",
+ "210922": "彰武县"
+ }
+ },
+ "211000": {
+ code: "211000",
+ name: "辽阳市",
+ districts: {
+ "211002": "白塔区",
+ "211003": "文圣区",
+ "211004": "宏伟区",
+ "211005": "弓长岭区",
+ "211011": "太子河区",
+ "211021": "辽阳县",
+ "211081": "灯塔市"
+ }
+ },
+ "211100": {
+ code: "211100",
+ name: "盘锦市",
+ districts: {
+ "211102": "双台子区",
+ "211103": "兴隆台区",
+ "211104": "大洼区",
+ "211122": "盘山县"
+ }
+ },
+ "211200": {
+ code: "211200",
+ name: "铁岭市",
+ districts: {
+ "211202": "银州区",
+ "211204": "清河区",
+ "211221": "铁岭县",
+ "211223": "西丰县",
+ "211224": "昌图县",
+ "211281": "调兵山市",
+ "211282": "开原市"
+ }
+ },
+ "211300": {
+ code: "211300",
+ name: "朝阳市",
+ districts: {
+ "211302": "双塔区",
+ "211303": "龙城区",
+ "211321": "朝阳县",
+ "211322": "建平县",
+ "211324": "喀喇沁左翼蒙古族自治县",
+ "211381": "北票市",
+ "211382": "凌源市"
+ }
+ },
+ "211400": {
+ code: "211400",
+ name: "葫芦岛市",
+ districts: {
+ "211402": "连山区",
+ "211403": "龙港区",
+ "211404": "南票区",
+ "211421": "绥中县",
+ "211422": "建昌县",
+ "211481": "兴城市"
+ }
+ }
+ }
+},
+ "220000": {
+ code: "220000",
+ name: "吉林省",
+ cities: {
+ "220100": {
+ code: "220100",
+ name: "长春市",
+ districts: {
+ "220102": "南关区",
+ "220103": "宽城区",
+ "220104": "朝阳区",
+ "220105": "二道区",
+ "220106": "绿园区",
+ "220112": "双阳区",
+ "220113": "九台区",
+ "220122": "农安县",
+ "220182": "榆树市",
+ "220183": "德惠市"
+ }
+ },
+ "220200": {
+ code: "220200",
+ name: "吉林市",
+ districts: {
+ "220202": "昌邑区",
+ "220203": "龙潭区",
+ "220204": "船营区",
+ "220211": "丰满区",
+ "220221": "永吉县",
+ "220281": "蛟河市",
+ "220282": "桦甸市",
+ "220283": "舒兰市",
+ "220284": "磐石市"
+ }
+ },
+ "220300": {
+ code: "220300",
+ name: "四平市",
+ districts: {
+ "220302": "铁西区",
+ "220303": "铁东区",
+ "220322": "梨树县",
+ "220323": "伊通满族自治县",
+ "220381": "公主岭市",
+ "220382": "双辽市"
+ }
+ },
+ "220400": {
+ code: "220400",
+ name: "辽源市",
+ districts: {
+ "220402": "龙山区",
+ "220403": "西安区",
+ "220421": "东丰县",
+ "220422": "东辽县"
+ }
+ },
+ "220500": {
+ code: "220500",
+ name: "通化市",
+ districts: {
+ "220502": "东昌区",
+ "220503": "二道江区",
+ "220521": "通化县",
+ "220523": "辉南县",
+ "220524": "柳河县",
+ "220581": "梅河口市",
+ "220582": "集安市"
+ }
+ },
+ "220600": {
+ code: "220600",
+ name: "白山市",
+ districts: {
+ "220602": "浑江区",
+ "220605": "江源区",
+ "220621": "抚松县",
+ "220622": "靖宇县",
+ "220623": "长白朝鲜族自治县",
+ "220681": "临江市"
+ }
+ },
+ "220700": {
+ code: "220700",
+ name: "松原市",
+ districts: {
+ "220702": "宁江区",
+ "220721": "前郭尔罗斯蒙古族自治县",
+ "220722": "长岭县",
+ "220723": "乾安县",
+ "220781": "扶余市"
+ }
+ },
+ "220800": {
+ code: "220800",
+ name: "白城市",
+ districts: {
+ "220802": "洮北区",
+ "220821": "镇赉县",
+ "220822": "通榆县",
+ "220881": "洮南市",
+ "220882": "大安市"
+ }
+ },
+ "222400": {
+ code: "222400",
+ name: "延边朝鲜族自治州",
+ districts: {
+ "222401": "延吉市",
+ "222402": "图们市",
+ "222403": "敦化市",
+ "222404": "珲春市",
+ "222405": "龙井市",
+ "222406": "和龙市",
+ "222424": "汪清县",
+ "222426": "安图县"
+ }
+ }
+ }
+},
+ "230000": {
+ code: "230000",
+ name: "黑龙江省",
+ cities: {
+ "230100": {
+ code: "230100",
+ name: "哈尔滨市",
+ districts: {
+ "230102": "道里区",
+ "230103": "南岗区",
+ "230104": "道外区",
+ "230108": "平房区",
+ "230109": "松北区",
+ "230110": "香坊区",
+ "230111": "呼兰区",
+ "230112": "阿城区",
+ "230113": "双城区",
+ "230123": "依兰县",
+ "230124": "方正县",
+ "230125": "宾县",
+ "230126": "巴彦县",
+ "230127": "木兰县",
+ "230128": "通河县",
+ "230129": "延寿县",
+ "230183": "尚志市",
+ "230184": "五常市"
+ }
+ },
+ "230200": {
+ code: "230200",
+ name: "齐齐哈尔市",
+ districts: {
+ "230202": "龙沙区",
+ "230203": "建华区",
+ "230204": "铁锋区",
+ "230205": "昂昂溪区",
+ "230206": "富拉尔基区",
+ "230207": "碾子山区",
+ "230208": "梅里斯达斡尔族区",
+ "230221": "龙江县",
+ "230223": "依安县",
+ "230224": "泰来县",
+ "230225": "甘南县",
+ "230227": "富裕县",
+ "230229": "克山县",
+ "230230": "克东县",
+ "230231": "拜泉县",
+ "230281": "讷河市"
+ }
+ },
+ "230300": {
+ code: "230300",
+ name: "鸡西市",
+ districts: {
+ "230302": "鸡冠区",
+ "230303": "恒山区",
+ "230304": "滴道区",
+ "230305": "梨树区",
+ "230306": "城子河区",
+ "230307": "麻山区",
+ "230321": "鸡东县",
+ "230381": "虎林市",
+ "230382": "密山市"
+ }
+ },
+ "230400": {
+ code: "230400",
+ name: "鹤岗市",
+ districts: {
+ "230402": "向阳区",
+ "230403": "工农区",
+ "230404": "南山区",
+ "230405": "兴安区",
+ "230406": "东山区",
+ "230407": "兴山区",
+ "230421": "萝北县",
+ "230422": "绥滨县"
+ }
+ },
+ "230500": {
+ code: "230500",
+ name: "双鸭山市",
+ districts: {
+ "230502": "尖山区",
+ "230503": "岭东区",
+ "230505": "四方台区",
+ "230506": "宝山区",
+ "230521": "集贤县",
+ "230522": "友谊县",
+ "230523": "宝清县",
+ "230524": "饶河县"
+ }
+ },
+ "230600": {
+ code: "230600",
+ name: "大庆市",
+ districts: {
+ "230602": "萨尔图区",
+ "230603": "龙凤区",
+ "230604": "让胡路区",
+ "230605": "红岗区",
+ "230606": "大同区",
+ "230621": "肇州县",
+ "230622": "肇源县",
+ "230623": "林甸县",
+ "230624": "杜尔伯特蒙古族自治县"
+ }
+ },
+ "230700": {
+ code: "230700",
+ name: "伊春市",
+ districts: {
+ "230702": "伊春区",
+ "230703": "南岔区",
+ "230704": "友好区",
+ "230705": "西林区",
+ "230706": "翠峦区",
+ "230707": "新青区",
+ "230708": "美溪区",
+ "230709": "金山屯区",
+ "230710": "五营区",
+ "230711": "乌马河区",
+ "230712": "汤旺河区",
+ "230713": "带岭区",
+ "230714": "乌伊岭区",
+ "230715": "红星区",
+ "230716": "上甘岭区",
+ "230722": "嘉荫县",
+ "230781": "铁力市"
+ }
+ },
+ "230800": {
+ code: "230800",
+ name: "佳木斯市",
+ districts: {
+ "230803": "向阳区",
+ "230804": "前进区",
+ "230805": "东风区",
+ "230811": "郊区",
+ "230822": "桦南县",
+ "230826": "桦川县",
+ "230828": "汤原县",
+ "230881": "同江市",
+ "230882": "富锦市",
+ "230883": "抚远市"
+ }
+ },
+ "230900": {
+ code: "230900",
+ name: "七台河市",
+ districts: {
+ "230902": "新兴区",
+ "230903": "桃山区",
+ "230904": "茄子河区",
+ "230921": "勃利县"
+ }
+ },
+ "231000": {
+ code: "231000",
+ name: "牡丹江市",
+ districts: {
+ "231002": "东安区",
+ "231003": "阳明区",
+ "231004": "爱民区",
+ "231005": "西安区",
+ "231025": "林口县",
+ "231081": "绥芬河市",
+ "231083": "海林市",
+ "231084": "宁安市",
+ "231085": "穆棱市",
+ "231086": "东宁市"
+ }
+ },
+ "231100": {
+ code: "231100",
+ name: "黑河市",
+ districts: {
+ "231102": "爱辉区",
+ "231121": "嫩江县",
+ "231123": "逊克县",
+ "231124": "孙吴县",
+ "231181": "北安市",
+ "231182": "五大连池市"
+ }
+ },
+ "231200": {
+ code: "231200",
+ name: "绥化市",
+ districts: {
+ "231202": "北林区",
+ "231221": "望奎县",
+ "231222": "兰西县",
+ "231223": "青冈县",
+ "231224": "庆安县",
+ "231225": "明水县",
+ "231226": "绥棱县",
+ "231281": "安达市",
+ "231282": "肇东市",
+ "231283": "海伦市"
+ }
+ },
+ "232700": {
+ code: "232700",
+ name: "大兴安岭地区",
+ districts: {
+ "232701": "漠河市",
+ "232721": "呼玛县",
+ "232722": "塔河县"
+ }
+ }
+ }
+},
+ "310000": {
+ code: "310000",
+ name: "上海市",
+ cities: {
+ "310000": {
+ code: "310000",
+ name: "上海市",
+ districts: {
+ "310101": "黄浦区",
+ "310104": "徐汇区",
+ "310105": "长宁区",
+ "310106": "静安区",
+ "310107": "普陀区",
+ "310109": "虹口区",
+ "310110": "杨浦区",
+ "310112": "闵行区",
+ "310113": "宝山区",
+ "310114": "嘉定区",
+ "310115": "浦东新区",
+ "310116": "金山区",
+ "310117": "松江区",
+ "310118": "青浦区",
+ "310120": "奉贤区",
+ "310151": "崇明区"
+ }
+ }
+ }
+},
+ "320000": {
+ code: "320000",
+ name: "江苏省",
+ cities: {
+ "320100": {
+ code: "320100",
+ name: "南京市",
+ districts: {
+ "320102": "玄武区",
+ "320104": "秦淮区",
+ "320105": "建邺区",
+ "320106": "鼓楼区",
+ "320111": "浦口区",
+ "320113": "栖霞区",
+ "320114": "雨花台区",
+ "320115": "江宁区",
+ "320116": "六合区",
+ "320117": "溧水区",
+ "320118": "高淳区"
+ }
+ },
+ "320200": {
+ code: "320200",
+ name: "无锡市",
+ districts: {
+ "320205": "锡山区",
+ "320206": "惠山区",
+ "320211": "滨湖区",
+ "320213": "梁溪区",
+ "320214": "新吴区",
+ "320281": "江阴市",
+ "320282": "宜兴市"
+ }
+ },
+ "320300": {
+ code: "320300",
+ name: "徐州市",
+ districts: {
+ "320302": "鼓楼区",
+ "320303": "云龙区",
+ "320305": "贾汪区",
+ "320311": "泉山区",
+ "320312": "铜山区",
+ "320321": "丰县",
+ "320322": "沛县",
+ "320324": "睢宁县",
+ "320381": "新沂市",
+ "320382": "邳州市"
+ }
+ },
+ "320400": {
+ code: "320400",
+ name: "常州市",
+ districts: {
+ "320402": "天宁区",
+ "320404": "钟楼区",
+ "320411": "新北区",
+ "320412": "武进区",
+ "320413": "金坛区",
+ "320481": "溧阳市"
+ }
+ },
+ "320500": {
+ code: "320500",
+ name: "苏州市",
+ districts: {
+ "320505": "虎丘区",
+ "320506": "吴中区",
+ "320507": "相城区",
+ "320508": "姑苏区",
+ "320509": "吴江区",
+ "320581": "常熟市",
+ "320582": "张家港市",
+ "320583": "昆山市",
+ "320585": "太仓市"
+ }
+ },
+ "320600": {
+ code: "320600",
+ name: "南通市",
+ districts: {
+ "320602": "崇川区",
+ "320611": "港闸区",
+ "320612": "通州区",
+ "320623": "如东县",
+ "320681": "启东市",
+ "320682": "如皋市",
+ "320684": "海门市",
+ "320685": "海安市"
+ }
+ },
+ "320700": {
+ code: "320700",
+ name: "连云港市",
+ districts: {
+ "320703": "连云区",
+ "320706": "海州区",
+ "320707": "赣榆区",
+ "320722": "东海县",
+ "320723": "灌云县",
+ "320724": "灌南县"
+ }
+ },
+ "320800": {
+ code: "320800",
+ name: "淮安市",
+ districts: {
+ "320803": "淮安区",
+ "320804": "淮阴区",
+ "320812": "清江浦区",
+ "320813": "洪泽区",
+ "320826": "涟水县",
+ "320830": "盱眙县",
+ "320831": "金湖县"
+ }
+ },
+ "320900": {
+ code: "320900",
+ name: "盐城市",
+ districts: {
+ "320902": "亭湖区",
+ "320903": "盐都区",
+ "320904": "大丰区",
+ "320921": "响水县",
+ "320922": "滨海县",
+ "320923": "阜宁县",
+ "320924": "射阳县",
+ "320925": "建湖县",
+ "320981": "东台市"
+ }
+ },
+ "321000": {
+ code: "321000",
+ name: "扬州市",
+ districts: {
+ "321002": "广陵区",
+ "321003": "邗江区",
+ "321012": "江都区",
+ "321023": "宝应县",
+ "321081": "仪征市",
+ "321084": "高邮市"
+ }
+ },
+ "321100": {
+ code: "321100",
+ name: "镇江市",
+ districts: {
+ "321102": "京口区",
+ "321111": "润州区",
+ "321112": "丹徒区",
+ "321181": "丹阳市",
+ "321182": "扬中市",
+ "321183": "句容市"
+ }
+ },
+ "321200": {
+ code: "321200",
+ name: "泰州市",
+ districts: {
+ "321202": "海陵区",
+ "321203": "高港区",
+ "321204": "姜堰区",
+ "321281": "兴化市",
+ "321282": "靖江市",
+ "321283": "泰兴市"
+ }
+ },
+ "321300": {
+ code: "321300",
+ name: "宿迁市",
+ districts: {
+ "321302": "宿城区",
+ "321311": "宿豫区",
+ "321322": "沭阳县",
+ "321323": "泗阳县",
+ "321324": "泗洪县"
+ }
+ }
+ }
+},
+ "330000": {
+ code: "330000",
+ name: "浙江省",
+ cities: {
+ "330100": {
+ code: "330100",
+ name: "杭州市",
+ districts: {
+ "330102": "上城区",
+ "330103": "下城区",
+ "330104": "江干区",
+ "330105": "拱墅区",
+ "330106": "西湖区",
+ "330108": "滨江区",
+ "330109": "萧山区",
+ "330110": "余杭区",
+ "330111": "富阳区",
+ "330112": "临安区",
+ "330122": "桐庐县",
+ "330127": "淳安县",
+ "330182": "建德市"
+ }
+ },
+ "330200": {
+ code: "330200",
+ name: "宁波市",
+ districts: {
+ "330203": "海曙区",
+ "330205": "江北区",
+ "330206": "北仑区",
+ "330211": "镇海区",
+ "330212": "鄞州区",
+ "330213": "奉化区",
+ "330225": "象山县",
+ "330226": "宁海县",
+ "330281": "余姚市",
+ "330282": "慈溪市"
+ }
+ },
+ "330300": {
+ code: "330300",
+ name: "温州市",
+ districts: {
+ "330302": "鹿城区",
+ "330303": "龙湾区",
+ "330304": "瓯海区",
+ "330305": "洞头区",
+ "330324": "永嘉县",
+ "330326": "平阳县",
+ "330327": "苍南县",
+ "330328": "文成县",
+ "330329": "泰顺县",
+ "330381": "瑞安市",
+ "330382": "乐清市"
+ }
+ },
+ "330400": {
+ code: "330400",
+ name: "嘉兴市",
+ districts: {
+ "330402": "南湖区",
+ "330411": "秀洲区",
+ "330421": "嘉善县",
+ "330424": "海盐县",
+ "330481": "海宁市",
+ "330482": "平湖市",
+ "330483": "桐乡市"
+ }
+ },
+ "330500": {
+ code: "330500",
+ name: "湖州市",
+ districts: {
+ "330502": "吴兴区",
+ "330503": "南浔区",
+ "330521": "德清县",
+ "330522": "长兴县",
+ "330523": "安吉县"
+ }
+ },
+ "330600": {
+ code: "330600",
+ name: "绍兴市",
+ districts: {
+ "330602": "越城区",
+ "330603": "柯桥区",
+ "330604": "上虞区",
+ "330624": "新昌县",
+ "330681": "诸暨市",
+ "330683": "嵊州市"
+ }
+ },
+ "330700": {
+ code: "330700",
+ name: "金华市",
+ districts: {
+ "330702": "婺城区",
+ "330703": "金东区",
+ "330723": "武义县",
+ "330726": "浦江县",
+ "330727": "磐安县",
+ "330781": "兰溪市",
+ "330782": "义乌市",
+ "330783": "东阳市",
+ "330784": "永康市"
+ }
+ },
+ "330800": {
+ code: "330800",
+ name: "衢州市",
+ districts: {
+ "330802": "柯城区",
+ "330803": "衢江区",
+ "330822": "常山县",
+ "330824": "开化县",
+ "330825": "龙游县",
+ "330881": "江山市"
+ }
+ },
+ "330900": {
+ code: "330900",
+ name: "舟山市",
+ districts: {
+ "330902": "定海区",
+ "330903": "普陀区",
+ "330921": "岱山县",
+ "330922": "嵊泗县"
+ }
+ },
+ "331000": {
+ code: "331000",
+ name: "台州市",
+ districts: {
+ "331002": "椒江区",
+ "331003": "黄岩区",
+ "331004": "路桥区",
+ "331022": "三门县",
+ "331023": "天台县",
+ "331024": "仙居县",
+ "331081": "温岭市",
+ "331082": "临海市",
+ "331083": "玉环市"
+ }
+ },
+ "331100": {
+ code: "331100",
+ name: "丽水市",
+ districts: {
+ "331102": "莲都区",
+ "331121": "青田县",
+ "331122": "缙云县",
+ "331123": "遂昌县",
+ "331124": "松阳县",
+ "331125": "云和县",
+ "331126": "庆元县",
+ "331127": "景宁畲族自治县",
+ "331181": "龙泉市"
+ }
+ }
+ }
+},
+ "340000": {
+ code: "340000",
+ name: "安徽省",
+ cities: {
+ "340100": {
+ code: "340100",
+ name: "合肥市",
+ districts: {
+ "340102": "瑶海区",
+ "340103": "庐阳区",
+ "340104": "蜀山区",
+ "340111": "包河区",
+ "340121": "长丰县",
+ "340122": "肥东县",
+ "340123": "肥西县",
+ "340124": "庐江县",
+ "340181": "巢湖市"
+ }
+ },
+ "340200": {
+ code: "340200",
+ name: "芜湖市",
+ districts: {
+ "340202": "镜湖区",
+ "340203": "弋江区",
+ "340207": "鸠江区",
+ "340208": "三山区",
+ "340221": "芜湖县",
+ "340222": "繁昌县",
+ "340223": "南陵县",
+ "340225": "无为县"
+ }
+ },
+ "340300": {
+ code: "340300",
+ name: "蚌埠市",
+ districts: {
+ "340302": "龙子湖区",
+ "340303": "蚌山区",
+ "340304": "禹会区",
+ "340311": "淮上区",
+ "340321": "怀远县",
+ "340322": "五河县",
+ "340323": "固镇县"
+ }
+ },
+ "340400": {
+ code: "340400",
+ name: "淮南市",
+ districts: {
+ "340402": "大通区",
+ "340403": "田家庵区",
+ "340404": "谢家集区",
+ "340405": "八公山区",
+ "340406": "潘集区",
+ "340421": "凤台县",
+ "340422": "寿县"
+ }
+ },
+ "340500": {
+ code: "340500",
+ name: "马鞍山市",
+ districts: {
+ "340503": "花山区",
+ "340504": "雨山区",
+ "340506": "博望区",
+ "340521": "当涂县",
+ "340522": "含山县",
+ "340523": "和县"
+ }
+ },
+ "340600": {
+ code: "340600",
+ name: "淮北市",
+ districts: {
+ "340602": "杜集区",
+ "340603": "相山区",
+ "340604": "烈山区",
+ "340621": "濉溪县"
+ }
+ },
+ "340700": {
+ code: "340700",
+ name: "铜陵市",
+ districts: {
+ "340705": "铜官区",
+ "340706": "义安区",
+ "340711": "郊区",
+ "340722": "枞阳县"
+ }
+ },
+ "340800": {
+ code: "340800",
+ name: "安庆市",
+ districts: {
+ "340802": "迎江区",
+ "340803": "大观区",
+ "340811": "宜秀区",
+ "340822": "怀宁县",
+ "340825": "太湖县",
+ "340826": "宿松县",
+ "340827": "望江县",
+ "340828": "岳西县",
+ "340881": "桐城市",
+ "340882": "潜山市"
+ }
+ },
+ "341000": {
+ code: "341000",
+ name: "黄山市",
+ districts: {
+ "341002": "屯溪区",
+ "341003": "黄山区",
+ "341004": "徽州区",
+ "341021": "歙县",
+ "341022": "休宁县",
+ "341023": "黟县",
+ "341024": "祁门县"
+ }
+ },
+ "341100": {
+ code: "341100",
+ name: "滁州市",
+ districts: {
+ "341102": "琅琊区",
+ "341103": "南谯区",
+ "341122": "来安县",
+ "341124": "全椒县",
+ "341125": "定远县",
+ "341126": "凤阳县",
+ "341181": "天长市",
+ "341182": "明光市"
+ }
+ },
+ "341200": {
+ code: "341200",
+ name: "阜阳市",
+ districts: {
+ "341202": "颍州区",
+ "341203": "颍东区",
+ "341204": "颍泉区",
+ "341221": "临泉县",
+ "341222": "太和县",
+ "341225": "阜南县",
+ "341226": "颍上县",
+ "341282": "界首市"
+ }
+ },
+ "341300": {
+ code: "341300",
+ name: "宿州市",
+ districts: {
+ "341302": "埇桥区",
+ "341321": "砀山县",
+ "341322": "萧县",
+ "341323": "灵璧县",
+ "341324": "泗县"
+ }
+ },
+ "341500": {
+ code: "341500",
+ name: "六安市",
+ districts: {
+ "341502": "金安区",
+ "341503": "裕安区",
+ "341504": "叶集区",
+ "341522": "霍邱县",
+ "341523": "舒城县",
+ "341524": "金寨县",
+ "341525": "霍山县"
+ }
+ },
+ "341600": {
+ code: "341600",
+ name: "亳州市",
+ districts: {
+ "341602": "谯城区",
+ "341621": "涡阳县",
+ "341622": "蒙城县",
+ "341623": "利辛县"
+ }
+ },
+ "341700": {
+ code: "341700",
+ name: "池州市",
+ districts: {
+ "341702": "贵池区",
+ "341721": "东至县",
+ "341722": "石台县",
+ "341723": "青阳县"
+ }
+ },
+ "341800": {
+ code: "341800",
+ name: "宣城市",
+ districts: {
+ "341802": "宣州区",
+ "341821": "郎溪县",
+ "341822": "广德县",
+ "341823": "泾县",
+ "341824": "绩溪县",
+ "341825": "旌德县",
+ "341881": "宁国市"
+ }
+ }
+ }
+},
+ "350000": {
+ code: "350000",
+ name: "福建省",
+ cities: {
+ "350100": {
+ code: "350100",
+ name: "福州市",
+ districts: {
+ "350102": "鼓楼区",
+ "350103": "台江区",
+ "350104": "仓山区",
+ "350105": "马尾区",
+ "350111": "晋安区",
+ "350112": "长乐区",
+ "350121": "闽侯县",
+ "350122": "连江县",
+ "350123": "罗源县",
+ "350124": "闽清县",
+ "350125": "永泰县",
+ "350128": "平潭县",
+ "350181": "福清市"
+ }
+ },
+ "350200": {
+ code: "350200",
+ name: "厦门市",
+ districts: {
+ "350203": "思明区",
+ "350205": "海沧区",
+ "350206": "湖里区",
+ "350211": "集美区",
+ "350212": "同安区",
+ "350213": "翔安区"
+ }
+ },
+ "350300": {
+ code: "350300",
+ name: "莆田市",
+ districts: {
+ "350302": "城厢区",
+ "350303": "涵江区",
+ "350304": "荔城区",
+ "350305": "秀屿区",
+ "350322": "仙游县"
+ }
+ },
+ "350400": {
+ code: "350400",
+ name: "三明市",
+ districts: {
+ "350402": "梅列区",
+ "350403": "三元区",
+ "350421": "明溪县",
+ "350423": "清流县",
+ "350424": "宁化县",
+ "350425": "大田县",
+ "350426": "尤溪县",
+ "350427": "沙县",
+ "350428": "将乐县",
+ "350429": "泰宁县",
+ "350430": "建宁县",
+ "350481": "永安市"
+ }
+ },
+ "350500": {
+ code: "350500",
+ name: "泉州市",
+ districts: {
+ "350502": "鲤城区",
+ "350503": "丰泽区",
+ "350504": "洛江区",
+ "350505": "泉港区",
+ "350521": "惠安县",
+ "350524": "安溪县",
+ "350525": "永春县",
+ "350526": "德化县",
+ "350527": "金门县",
+ "350581": "石狮市",
+ "350582": "晋江市",
+ "350583": "南安市"
+ }
+ },
+ "350600": {
+ code: "350600",
+ name: "漳州市",
+ districts: {
+ "350602": "芗城区",
+ "350603": "龙文区",
+ "350622": "云霄县",
+ "350623": "漳浦县",
+ "350624": "诏安县",
+ "350625": "长泰县",
+ "350626": "东山县",
+ "350627": "南靖县",
+ "350628": "平和县",
+ "350629": "华安县",
+ "350681": "龙海市"
+ }
+ },
+ "350700": {
+ code: "350700",
+ name: "南平市",
+ districts: {
+ "350702": "延平区",
+ "350703": "建阳区",
+ "350721": "顺昌县",
+ "350722": "浦城县",
+ "350723": "光泽县",
+ "350724": "松溪县",
+ "350725": "政和县",
+ "350781": "邵武市",
+ "350782": "武夷山市",
+ "350783": "建瓯市"
+ }
+ },
+ "350800": {
+ code: "350800",
+ name: "龙岩市",
+ districts: {
+ "350802": "新罗区",
+ "350803": "永定区",
+ "350821": "长汀县",
+ "350823": "上杭县",
+ "350824": "武平县",
+ "350825": "连城县",
+ "350881": "漳平市"
+ }
+ },
+ "350900": {
+ code: "350900",
+ name: "宁德市",
+ districts: {
+ "350902": "蕉城区",
+ "350921": "霞浦县",
+ "350922": "古田县",
+ "350923": "屏南县",
+ "350924": "寿宁县",
+ "350925": "周宁县",
+ "350926": "柘荣县",
+ "350981": "福安市",
+ "350982": "福鼎市"
+ }
+ }
+ }
+},
+ "360000": {
+ code: "360000",
+ name: "江西省",
+ cities: {
+ "360100": {
+ code: "360100",
+ name: "南昌市",
+ districts: {
+ "360102": "东湖区",
+ "360103": "西湖区",
+ "360104": "青云谱区",
+ "360105": "湾里区",
+ "360111": "青山湖区",
+ "360112": "新建区",
+ "360121": "南昌县",
+ "360123": "安义县",
+ "360124": "进贤县"
+ }
+ },
+ "360200": {
+ code: "360200",
+ name: "景德镇市",
+ districts: {
+ "360202": "昌江区",
+ "360203": "珠山区",
+ "360222": "浮梁县",
+ "360281": "乐平市"
+ }
+ },
+ "360300": {
+ code: "360300",
+ name: "萍乡市",
+ districts: {
+ "360302": "安源区",
+ "360313": "湘东区",
+ "360321": "莲花县",
+ "360322": "上栗县",
+ "360323": "芦溪县"
+ }
+ },
+ "360400": {
+ code: "360400",
+ name: "九江市",
+ districts: {
+ "360402": "濂溪区",
+ "360403": "浔阳区",
+ "360404": "柴桑区",
+ "360423": "武宁县",
+ "360424": "修水县",
+ "360425": "永修县",
+ "360426": "德安县",
+ "360428": "都昌县",
+ "360429": "湖口县",
+ "360430": "彭泽县",
+ "360481": "瑞昌市",
+ "360482": "共青城市",
+ "360483": "庐山市"
+ }
+ },
+ "360500": {
+ code: "360500",
+ name: "新余市",
+ districts: {
+ "360502": "渝水区",
+ "360521": "分宜县"
+ }
+ },
+ "360600": {
+ code: "360600",
+ name: "鹰潭市",
+ districts: {
+ "360602": "月湖区",
+ "360603": "余江区",
+ "360681": "贵溪市"
+ }
+ },
+ "360700": {
+ code: "360700",
+ name: "赣州市",
+ districts: {
+ "360702": "章贡区",
+ "360703": "南康区",
+ "360704": "赣县区",
+ "360722": "信丰县",
+ "360723": "大余县",
+ "360724": "上犹县",
+ "360725": "崇义县",
+ "360726": "安远县",
+ "360727": "龙南县",
+ "360728": "定南县",
+ "360729": "全南县",
+ "360730": "宁都县",
+ "360731": "于都县",
+ "360732": "兴国县",
+ "360733": "会昌县",
+ "360734": "寻乌县",
+ "360735": "石城县",
+ "360781": "瑞金市"
+ }
+ },
+ "360800": {
+ code: "360800",
+ name: "吉安市",
+ districts: {
+ "360802": "吉州区",
+ "360803": "青原区",
+ "360821": "吉安县",
+ "360822": "吉水县",
+ "360823": "峡江县",
+ "360824": "新干县",
+ "360825": "永丰县",
+ "360826": "泰和县",
+ "360827": "遂川县",
+ "360828": "万安县",
+ "360829": "安福县",
+ "360830": "永新县",
+ "360881": "井冈山市"
+ }
+ },
+ "360900": {
+ code: "360900",
+ name: "宜春市",
+ districts: {
+ "360902": "袁州区",
+ "360921": "奉新县",
+ "360922": "万载县",
+ "360923": "上高县",
+ "360924": "宜丰县",
+ "360925": "靖安县",
+ "360926": "铜鼓县",
+ "360981": "丰城市",
+ "360982": "樟树市",
+ "360983": "高安市"
+ }
+ },
+ "361000": {
+ code: "361000",
+ name: "抚州市",
+ districts: {
+ "361002": "临川区",
+ "361003": "东乡区",
+ "361021": "南城县",
+ "361022": "黎川县",
+ "361023": "南丰县",
+ "361024": "崇仁县",
+ "361025": "乐安县",
+ "361026": "宜黄县",
+ "361027": "金溪县",
+ "361028": "资溪县",
+ "361030": "广昌县"
+ }
+ },
+ "361100": {
+ code: "361100",
+ name: "上饶市",
+ districts: {
+ "361102": "信州区",
+ "361103": "广丰区",
+ "361121": "上饶县",
+ "361123": "玉山县",
+ "361124": "铅山县",
+ "361125": "横峰县",
+ "361126": "弋阳县",
+ "361127": "余干县",
+ "361128": "鄱阳县",
+ "361129": "万年县",
+ "361130": "婺源县",
+ "361181": "德兴市"
+ }
+ }
+ }
+},
+ "370000": {
+ code: "370000",
+ name: "山东省",
+ cities: {
+ "370100": {
+ code: "370100",
+ name: "济南市",
+ districts: {
+ "370102": "历下区",
+ "370103": "市中区",
+ "370104": "槐荫区",
+ "370105": "天桥区",
+ "370112": "历城区",
+ "370113": "长清区",
+ "370114": "章丘区",
+ "370115": "济阳区",
+ "370116": "莱芜区",
+ "370117": "钢城区",
+ "370124": "平阴县",
+ "370126": "商河县"
+ }
+ },
+ "370200": {
+ code: "370200",
+ name: "青岛市",
+ districts: {
+ "370202": "市南区",
+ "370203": "市北区",
+ "370211": "黄岛区",
+ "370212": "崂山区",
+ "370213": "李沧区",
+ "370214": "城阳区",
+ "370215": "即墨区",
+ "370281": "胶州市",
+ "370283": "平度市",
+ "370285": "莱西市"
+ }
+ },
+ "370300": {
+ code: "370300",
+ name: "淄博市",
+ districts: {
+ "370302": "淄川区",
+ "370303": "张店区",
+ "370304": "博山区",
+ "370305": "临淄区",
+ "370306": "周村区",
+ "370321": "桓台县",
+ "370322": "高青县",
+ "370323": "沂源县"
+ }
+ },
+ "370400": {
+ code: "370400",
+ name: "枣庄市",
+ districts: {
+ "370402": "市中区",
+ "370403": "薛城区",
+ "370404": "峄城区",
+ "370405": "台儿庄区",
+ "370406": "山亭区",
+ "370481": "滕州市"
+ }
+ },
+ "370500": {
+ code: "370500",
+ name: "东营市",
+ districts: {
+ "370502": "东营区",
+ "370503": "河口区",
+ "370505": "垦利区",
+ "370522": "利津县",
+ "370523": "广饶县"
+ }
+ },
+ "370600": {
+ code: "370600",
+ name: "烟台市",
+ districts: {
+ "370602": "芝罘区",
+ "370611": "福山区",
+ "370612": "牟平区",
+ "370613": "莱山区",
+ "370614": "蓬莱区",
+ "370681": "龙口市",
+ "370682": "莱阳市",
+ "370683": "莱州市",
+ "370684": "蓬莱市",
+ "370685": "招远市",
+ "370686": "栖霞市",
+ "370687": "海阳市"
+ }
+ },
+ "370700": {
+ code: "370700",
+ name: "潍坊市",
+ districts: {
+ "370702": "潍城区",
+ "370703": "寒亭区",
+ "370704": "坊子区",
+ "370705": "奎文区",
+ "370724": "临朐县",
+ "370725": "昌乐县",
+ "370781": "青州市",
+ "370782": "诸城市",
+ "370783": "寿光市",
+ "370784": "安丘市",
+ "370785": "高密市",
+ "370786": "昌邑市"
+ }
+ },
+ "370800": {
+ code: "370800",
+ name: "济宁市",
+ districts: {
+ "370811": "任城区",
+ "370812": "兖州区",
+ "370826": "微山县",
+ "370827": "鱼台县",
+ "370828": "金乡县",
+ "370829": "嘉祥县",
+ "370830": "汶上县",
+ "370831": "泗水县",
+ "370832": "梁山县",
+ "370881": "曲阜市",
+ "370883": "邹城市"
+ }
+ },
+ "370900": {
+ code: "370900",
+ name: "泰安市",
+ districts: {
+ "370902": "泰山区",
+ "370911": "岱岳区",
+ "370921": "宁阳县",
+ "370923": "东平县",
+ "370982": "新泰市",
+ "370983": "肥城市"
+ }
+ },
+ "371000": {
+ code: "371000",
+ name: "威海市",
+ districts: {
+ "371002": "环翠区",
+ "371003": "文登区",
+ "371082": "荣成市",
+ "371083": "乳山市"
+ }
+ },
+ "371100": {
+ code: "371100",
+ name: "日照市",
+ districts: {
+ "371102": "东港区",
+ "371103": "岚山区",
+ "371121": "五莲县",
+ "371122": "莒县"
+ }
+ },
+ "371300": {
+ code: "371300",
+ name: "临沂市",
+ districts: {
+ "371302": "兰山区",
+ "371311": "罗庄区",
+ "371312": "河东区",
+ "371321": "沂南县",
+ "371322": "郯城县",
+ "371323": "沂水县",
+ "371324": "兰陵县",
+ "371325": "费县",
+ "371326": "平邑县",
+ "371327": "莒南县",
+ "371328": "蒙阴县",
+ "371329": "临沭县"
+ }
+ },
+ "371400": {
+ code: "371400",
+ name: "德州市",
+ districts: {
+ "371402": "德城区",
+ "371403": "陵城区",
+ "371422": "宁津县",
+ "371423": "庆云县",
+ "371424": "临邑县",
+ "371425": "齐河县",
+ "371426": "平原县",
+ "371427": "夏津县",
+ "371428": "武城县",
+ "371481": "乐陵市",
+ "371482": "禹城市"
+ }
+ },
+ "371500": {
+ code: "371500",
+ name: "聊城市",
+ districts: {
+ "371502": "东昌府区",
+ "371521": "阳谷县",
+ "371522": "莘县",
+ "371523": "茌平县",
+ "371524": "东阿县",
+ "371525": "冠县",
+ "371526": "高唐县",
+ "371581": "临清市"
+ }
+ },
+ "371600": {
+ code: "371600",
+ name: "滨州市",
+ districts: {
+ "371602": "滨城区",
+ "371603": "沾化区",
+ "371621": "惠民县",
+ "371622": "阳信县",
+ "371623": "无棣县",
+ "371625": "博兴县",
+ "371681": "邹平市"
+ }
+ },
+ "371700": {
+ code: "371700",
+ name: "菏泽市",
+ districts: {
+ "371702": "牡丹区",
+ "371703": "定陶区",
+ "371721": "曹县",
+ "371722": "单县",
+ "371723": "成武县",
+ "371724": "巨野县",
+ "371725": "郓城县",
+ "371726": "鄄城县",
+ "371728": "东明县"
+ }
+ }
+ }
+},
+ "410000": {
+ code: "410000",
+ name: "河南省",
+ cities: {
+ "410100": {
+ code: "410100",
+ name: "郑州市",
+ districts: {
+ "410102": "中原区",
+ "410103": "二七区",
+ "410104": "管城回族区",
+ "410105": "金水区",
+ "410106": "上街区",
+ "410108": "惠济区",
+ "410122": "中牟县",
+ "410181": "巩义市",
+ "410182": "荥阳市",
+ "410183": "新密市",
+ "410184": "新郑市",
+ "410185": "登封市"
+ }
+ },
+ "410200": {
+ code: "410200",
+ name: "开封市",
+ districts: {
+ "410202": "龙亭区",
+ "410203": "顺河回族区",
+ "410204": "鼓楼区",
+ "410205": "禹王台区",
+ "410212": "祥符区",
+ "410221": "杞县",
+ "410222": "通许县",
+ "410223": "尉氏县",
+ "410225": "兰考县"
+ }
+ },
+ "410300": {
+ code: "410300",
+ name: "洛阳市",
+ districts: {
+ "410302": "老城区",
+ "410303": "西工区",
+ "410304": "瀍河回族区",
+ "410305": "涧西区",
+ "410306": "吉利区",
+ "410311": "洛龙区",
+ "410322": "孟津县",
+ "410323": "新安县",
+ "410324": "栾川县",
+ "410325": "嵩县",
+ "410326": "汝阳县",
+ "410327": "宜阳县",
+ "410328": "洛宁县",
+ "410329": "伊川县",
+ "410381": "偃师市"
+ }
+ },
+ "410400": {
+ code: "410400",
+ name: "平顶山市",
+ districts: {
+ "410402": "新华区",
+ "410403": "卫东区",
+ "410404": "石龙区",
+ "410411": "湛河区",
+ "410421": "宝丰县",
+ "410422": "叶县",
+ "410423": "鲁山县",
+ "410425": "郏县",
+ "410481": "舞钢市",
+ "410482": "汝州市"
+ }
+ },
+ "410500": {
+ code: "410500",
+ name: "安阳市",
+ districts: {
+ "410502": "文峰区",
+ "410503": "北关区",
+ "410505": "殷都区",
+ "410506": "龙安区",
+ "410522": "安阳县",
+ "410523": "汤阴县",
+ "410526": "滑县",
+ "410527": "内黄县",
+ "410581": "林州市"
+ }
+ },
+ "410600": {
+ code: "410600",
+ name: "鹤壁市",
+ districts: {
+ "410602": "鹤山区",
+ "410603": "山城区",
+ "410611": "淇滨区",
+ "410621": "浚县",
+ "410622": "淇县"
+ }
+ },
+ "410700": {
+ code: "410700",
+ name: "新乡市",
+ districts: {
+ "410702": "红旗区",
+ "410703": "卫滨区",
+ "410704": "凤泉区",
+ "410711": "牧野区",
+ "410721": "新乡县",
+ "410724": "获嘉县",
+ "410725": "原阳县",
+ "410726": "延津县",
+ "410727": "封丘县",
+ "410728": "长垣县",
+ "410781": "卫辉市",
+ "410782": "辉县市"
+ }
+ },
+ "410800": {
+ code: "410800",
+ name: "焦作市",
+ districts: {
+ "410802": "解放区",
+ "410803": "中站区",
+ "410804": "马村区",
+ "410811": "山阳区",
+ "410821": "修武县",
+ "410822": "博爱县",
+ "410823": "武陟县",
+ "410825": "温县",
+ "410882": "沁阳市",
+ "410883": "孟州市"
+ }
+ },
+ "410900": {
+ code: "410900",
+ name: "濮阳市",
+ districts: {
+ "410902": "华龙区",
+ "410922": "清丰县",
+ "410923": "南乐县",
+ "410926": "范县",
+ "410927": "台前县",
+ "410928": "濮阳县"
+ }
+ },
+ "411000": {
+ code: "411000",
+ name: "许昌市",
+ districts: {
+ "411002": "魏都区",
+ "411003": "建安区",
+ "411024": "鄢陵县",
+ "411025": "襄城县",
+ "411081": "禹州市",
+ "411082": "长葛市"
+ }
+ },
+ "411100": {
+ code: "411100",
+ name: "漯河市",
+ districts: {
+ "411102": "源汇区",
+ "411103": "郾城区",
+ "411104": "召陵区",
+ "411121": "舞阳县",
+ "411122": "临颍县"
+ }
+ },
+ "411200": {
+ code: "411200",
+ name: "三门峡市",
+ districts: {
+ "411202": "湖滨区",
+ "411203": "陕州区",
+ "411221": "渑池县",
+ "411224": "卢氏县",
+ "411281": "义马市",
+ "411282": "灵宝市"
+ }
+ },
+ "411300": {
+ code: "411300",
+ name: "南阳市",
+ districts: {
+ "411302": "宛城区",
+ "411303": "卧龙区",
+ "411321": "南召县",
+ "411322": "方城县",
+ "411323": "西峡县",
+ "411324": "镇平县",
+ "411325": "内乡县",
+ "411326": "淅川县",
+ "411327": "社旗县",
+ "411328": "唐河县",
+ "411329": "新野县",
+ "411330": "桐柏县",
+ "411381": "邓州市"
+ }
+ },
+ "411400": {
+ code: "411400",
+ name: "商丘市",
+ districts: {
+ "411402": "梁园区",
+ "411403": "睢阳区",
+ "411421": "民权县",
+ "411422": "睢县",
+ "411423": "宁陵县",
+ "411424": "柘城县",
+ "411425": "虞城县",
+ "411426": "夏邑县",
+ "411481": "永城市"
+ }
+ },
+ "411500": {
+ code: "411500",
+ name: "信阳市",
+ districts: {
+ "411502": "浉河区",
+ "411503": "平桥区",
+ "411521": "罗山县",
+ "411522": "光山县",
+ "411523": "新县",
+ "411524": "商城县",
+ "411525": "固始县",
+ "411526": "潢川县",
+ "411527": "淮滨县",
+ "411528": "息县"
+ }
+ },
+ "411600": {
+ code: "411600",
+ name: "周口市",
+ districts: {
+ "411602": "川汇区",
+ "411621": "扶沟县",
+ "411622": "西华县",
+ "411623": "商水县",
+ "411624": "沈丘县",
+ "411625": "郸城县",
+ "411626": "淮阳县",
+ "411627": "太康县",
+ "411628": "鹿邑县",
+ "411681": "项城市"
+ }
+ },
+ "411700": {
+ code: "411700",
+ name: "驻马店市",
+ districts: {
+ "411702": "驿城区",
+ "411721": "西平县",
+ "411722": "上蔡县",
+ "411723": "平舆县",
+ "411724": "正阳县",
+ "411725": "确山县",
+ "411726": "泌阳县",
+ "411727": "汝南县",
+ "411728": "遂平县",
+ "411729": "新蔡县"
+ }
+ }
+ }
+},
+ "420000": {
+ code: "420000",
+ name: "湖北省",
+ cities: {
+ "420100": {
+ code: "420100",
+ name: "武汉市",
+ districts: {
+ "420102": "江岸区",
+ "420103": "江汉区",
+ "420104": "硚口区",
+ "420105": "汉阳区",
+ "420106": "武昌区",
+ "420107": "青山区",
+ "420111": "洪山区",
+ "420112": "东西湖区",
+ "420113": "汉南区",
+ "420114": "蔡甸区",
+ "420115": "江夏区",
+ "420116": "黄陂区",
+ "420117": "新洲区"
+ }
+ },
+ "420200": {
+ code: "420200",
+ name: "黄石市",
+ districts: {
+ "420202": "黄石港区",
+ "420203": "西塞山区",
+ "420204": "下陆区",
+ "420205": "铁山区",
+ "420222": "阳新县",
+ "420281": "大冶市"
+ }
+ },
+ "420300": {
+ code: "420300",
+ name: "十堰市",
+ districts: {
+ "420302": "茅箭区",
+ "420303": "张湾区",
+ "420304": "郧阳区",
+ "420322": "郧西县",
+ "420323": "竹山县",
+ "420324": "竹溪县",
+ "420325": "房县",
+ "420381": "丹江口市"
+ }
+ },
+ "420500": {
+ code: "420500",
+ name: "宜昌市",
+ districts: {
+ "420502": "西陵区",
+ "420503": "伍家岗区",
+ "420504": "点军区",
+ "420505": "猇亭区",
+ "420506": "夷陵区",
+ "420525": "远安县",
+ "420526": "兴山县",
+ "420527": "秭归县",
+ "420528": "长阳土家族自治县",
+ "420529": "五峰土家族自治县",
+ "420581": "宜都市",
+ "420582": "当阳市",
+ "420583": "枝江市"
+ }
+ },
+ "420600": {
+ code: "420600",
+ name: "襄阳市",
+ districts: {
+ "420602": "襄城区",
+ "420606": "樊城区",
+ "420607": "襄州区",
+ "420624": "南漳县",
+ "420625": "谷城县",
+ "420626": "保康县",
+ "420682": "老河口市",
+ "420683": "枣阳市",
+ "420684": "宜城市"
+ }
+ },
+ "420700": {
+ code: "420700",
+ name: "鄂州市",
+ districts: {
+ "420702": "梁子湖区",
+ "420703": "华容区",
+ "420704": "鄂城区"
+ }
+ },
+ "420800": {
+ code: "420800",
+ name: "荆门市",
+ districts: {
+ "420802": "东宝区",
+ "420804": "掇刀区",
+ "420822": "沙洋县",
+ "420881": "钟祥市",
+ "420882": "京山市"
+ }
+ },
+ "420900": {
+ code: "420900",
+ name: "孝感市",
+ districts: {
+ "420902": "孝南区",
+ "420921": "孝昌县",
+ "420922": "大悟县",
+ "420923": "云梦县",
+ "420981": "应城市",
+ "420982": "安陆市",
+ "420984": "汉川市"
+ }
+ },
+ "421000": {
+ code: "421000",
+ name: "荆州市",
+ districts: {
+ "421002": "沙市区",
+ "421003": "荆州区",
+ "421022": "公安县",
+ "421023": "监利县",
+ "421024": "江陵县",
+ "421081": "石首市",
+ "421083": "洪湖市",
+ "421087": "松滋市"
+ }
+ },
+ "421100": {
+ code: "421100",
+ name: "黄冈市",
+ districts: {
+ "421102": "黄州区",
+ "421121": "团风县",
+ "421122": "红安县",
+ "421123": "罗田县",
+ "421124": "英山县",
+ "421125": "浠水县",
+ "421126": "蕲春县",
+ "421127": "黄梅县",
+ "421181": "麻城市",
+ "421182": "武穴市"
+ }
+ },
+ "421200": {
+ code: "421200",
+ name: "咸宁市",
+ districts: {
+ "421202": "咸安区",
+ "421221": "嘉鱼县",
+ "421222": "通城县",
+ "421223": "崇阳县",
+ "421224": "通山县",
+ "421281": "赤壁市"
+ }
+ },
+ "421300": {
+ code: "421300",
+ name: "随州市",
+ districts: {
+ "421303": "曾都区",
+ "421321": "随县",
+ "421381": "广水市"
+ }
+ },
+ "422800": {
+ code: "422800",
+ name: "恩施土家族苗族自治州",
+ districts: {
+ "422801": "恩施市",
+ "422802": "利川市",
+ "422822": "建始县",
+ "422823": "巴东县",
+ "422825": "宣恩县",
+ "422826": "咸丰县",
+ "422827": "来凤县",
+ "422828": "鹤峰县"
+ }
+ }
+ }
+},
+ "430000": {
+ code: "430000",
+ name: "湖南省",
+ cities: {
+ "430100": {
+ code: "430100",
+ name: "长沙市",
+ districts: {
+ "430102": "芙蓉区",
+ "430103": "天心区",
+ "430104": "岳麓区",
+ "430105": "开福区",
+ "430111": "雨花区",
+ "430112": "望城区",
+ "430121": "长沙县",
+ "430181": "浏阳市",
+ "430182": "宁乡市"
+ }
+ },
+ "430200": {
+ code: "430200",
+ name: "株洲市",
+ districts: {
+ "430202": "荷塘区",
+ "430203": "芦淞区",
+ "430204": "石峰区",
+ "430211": "天元区",
+ "430212": "渌口区",
+ "430223": "攸县",
+ "430224": "茶陵县",
+ "430225": "炎陵县",
+ "430281": "醴陵市"
+ }
+ },
+ "430300": {
+ code: "430300",
+ name: "湘潭市",
+ districts: {
+ "430302": "雨湖区",
+ "430304": "岳塘区",
+ "430321": "湘潭县",
+ "430381": "湘乡市",
+ "430382": "韶山市"
+ }
+ },
+ "430400": {
+ code: "430400",
+ name: "衡阳市",
+ districts: {
+ "430405": "珠晖区",
+ "430406": "雁峰区",
+ "430407": "石鼓区",
+ "430408": "蒸湘区",
+ "430412": "南岳区",
+ "430421": "衡阳县",
+ "430422": "衡南县",
+ "430423": "衡山县",
+ "430424": "衡东县",
+ "430426": "祁东县",
+ "430481": "耒阳市",
+ "430482": "常宁市"
+ }
+ },
+ "430500": {
+ code: "430500",
+ name: "邵阳市",
+ districts: {
+ "430502": "双清区",
+ "430503": "大祥区",
+ "430511": "北塔区",
+ "430521": "邵东县",
+ "430522": "新邵县",
+ "430523": "邵阳县",
+ "430524": "隆回县",
+ "430525": "洞口县",
+ "430527": "绥宁县",
+ "430528": "新宁县",
+ "430529": "城步苗族自治县",
+ "430581": "武冈市"
+ }
+ },
+ "430600": {
+ code: "430600",
+ name: "岳阳市",
+ districts: {
+ "430602": "岳阳楼区",
+ "430603": "云溪区",
+ "430611": "君山区",
+ "430621": "岳阳县",
+ "430623": "华容县",
+ "430624": "湘阴县",
+ "430626": "平江县",
+ "430681": "汨罗市",
+ "430682": "临湘市"
+ }
+ },
+ "430700": {
+ code: "430700",
+ name: "常德市",
+ districts: {
+ "430702": "武陵区",
+ "430703": "鼎城区",
+ "430721": "安乡县",
+ "430722": "汉寿县",
+ "430723": "澧县",
+ "430724": "临澧县",
+ "430725": "桃源县",
+ "430726": "石门县",
+ "430781": "津市市"
+ }
+ },
+ "430800": {
+ code: "430800",
+ name: "张家界市",
+ districts: {
+ "430802": "永定区",
+ "430811": "武陵源区",
+ "430821": "慈利县",
+ "430822": "桑植县"
+ }
+ },
+ "430900": {
+ code: "430900",
+ name: "益阳市",
+ districts: {
+ "430902": "资阳区",
+ "430903": "赫山区",
+ "430921": "南县",
+ "430922": "桃江县",
+ "430923": "安化县",
+ "430981": "沅江市"
+ }
+ },
+ "431000": {
+ code: "431000",
+ name: "郴州市",
+ districts: {
+ "431002": "北湖区",
+ "431003": "苏仙区",
+ "431021": "桂阳县",
+ "431022": "宜章县",
+ "431023": "永兴县",
+ "431024": "嘉禾县",
+ "431025": "临武县",
+ "431026": "汝城县",
+ "431027": "桂东县",
+ "431028": "安仁县",
+ "431081": "资兴市"
+ }
+ },
+ "431100": {
+ code: "431100",
+ name: "永州市",
+ districts: {
+ "431102": "零陵区",
+ "431103": "冷水滩区",
+ "431121": "祁阳县",
+ "431122": "东安县",
+ "431123": "双牌县",
+ "431124": "道县",
+ "431125": "江永县",
+ "431126": "宁远县",
+ "431127": "蓝山县",
+ "431128": "新田县",
+ "431129": "江华瑶族自治县"
+ }
+ },
+ "431200": {
+ code: "431200",
+ name: "怀化市",
+ districts: {
+ "431202": "鹤城区",
+ "431221": "中方县",
+ "431222": "沅陵县",
+ "431223": "辰溪县",
+ "431224": "溆浦县",
+ "431225": "会同县",
+ "431226": "麻阳苗族自治县",
+ "431227": "新晃侗族自治县",
+ "431228": "芷江侗族自治县",
+ "431229": "靖州苗族侗族自治县",
+ "431230": "通道侗族自治县",
+ "431281": "洪江市"
+ }
+ },
+ "431300": {
+ code: "431300",
+ name: "娄底市",
+ districts: {
+ "431302": "娄星区",
+ "431321": "双峰县",
+ "431322": "新化县",
+ "431381": "冷水江市",
+ "431382": "涟源市"
+ }
+ },
+ "433100": {
+ code: "433100",
+ name: "湘西土家族苗族自治州",
+ districts: {
+ "433101": "吉首市",
+ "433122": "泸溪县",
+ "433123": "凤凰县",
+ "433124": "花垣县",
+ "433125": "保靖县",
+ "433126": "古丈县",
+ "433127": "永顺县",
+ "433130": "龙山县"
+ }
+ }
+ }
+},
+ "440000": {
+ code: "440000",
+ name: "广东省",
+ cities: {
+ "440100": {
+ code: "440100",
+ name: "广州市",
+ districts: {
+ "440103": "荔湾区",
+ "440104": "越秀区",
+ "440105": "海珠区",
+ "440106": "天河区",
+ "440111": "白云区",
+ "440112": "黄埔区",
+ "440113": "番禺区",
+ "440114": "花都区",
+ "440115": "南沙区",
+ "440117": "从化区",
+ "440118": "增城区"
+ }
+ },
+ "440200": {
+ code: "440200",
+ name: "韶关市",
+ districts: {
+ "440203": "武江区",
+ "440204": "浈江区",
+ "440205": "曲江区",
+ "440222": "始兴县",
+ "440224": "仁化县",
+ "440229": "翁源县",
+ "440232": "乳源瑶族自治县",
+ "440233": "新丰县",
+ "440281": "乐昌市",
+ "440282": "南雄市"
+ }
+ },
+ "440300": {
+ code: "440300",
+ name: "深圳市",
+ districts: {
+ "440303": "罗湖区",
+ "440304": "福田区",
+ "440305": "南山区",
+ "440306": "宝安区",
+ "440307": "龙岗区",
+ "440308": "盐田区",
+ "440309": "龙华区",
+ "440310": "坪山区",
+ "440311": "光明区"
+ }
+ },
+ "440400": {
+ code: "440400",
+ name: "珠海市",
+ districts: {
+ "440402": "香洲区",
+ "440403": "斗门区",
+ "440404": "金湾区"
+ }
+ },
+ "440500": {
+ code: "440500",
+ name: "汕头市",
+ districts: {
+ "440507": "龙湖区",
+ "440511": "金平区",
+ "440512": "濠江区",
+ "440513": "潮阳区",
+ "440514": "潮南区",
+ "440515": "澄海区",
+ "440523": "南澳县"
+ }
+ },
+ "440600": {
+ code: "440600",
+ name: "佛山市",
+ districts: {
+ "440604": "禅城区",
+ "440605": "南海区",
+ "440606": "顺德区",
+ "440607": "三水区",
+ "440608": "高明区"
+ }
+ },
+ "440700": {
+ code: "440700",
+ name: "江门市",
+ districts: {
+ "440703": "蓬江区",
+ "440704": "江海区",
+ "440705": "新会区",
+ "440781": "台山市",
+ "440783": "开平市",
+ "440784": "鹤山市",
+ "440785": "恩平市"
+ }
+ },
+ "440800": {
+ code: "440800",
+ name: "湛江市",
+ districts: {
+ "440802": "赤坎区",
+ "440803": "霞山区",
+ "440804": "坡头区",
+ "440811": "麻章区",
+ "440823": "遂溪县",
+ "440825": "徐闻县",
+ "440881": "廉江市",
+ "440882": "雷州市",
+ "440883": "吴川市"
+ }
+ },
+ "440900": {
+ code: "440900",
+ name: "茂名市",
+ districts: {
+ "440902": "茂南区",
+ "440904": "电白区",
+ "440981": "高州市",
+ "440982": "化州市",
+ "440983": "信宜市"
+ }
+ },
+ "441200": {
+ code: "441200",
+ name: "肇庆市",
+ districts: {
+ "441202": "端州区",
+ "441203": "鼎湖区",
+ "441204": "高要区",
+ "441223": "广宁县",
+ "441224": "怀集县",
+ "441225": "封开县",
+ "441226": "德庆县",
+ "441284": "四会市"
+ }
+ },
+ "441300": {
+ code: "441300",
+ name: "惠州市",
+ districts: {
+ "441302": "惠城区",
+ "441303": "惠阳区",
+ "441322": "博罗县",
+ "441323": "惠东县",
+ "441324": "龙门县"
+ }
+ },
+ "441400": {
+ code: "441400",
+ name: "梅州市",
+ districts: {
+ "441402": "梅江区",
+ "441403": "梅县区",
+ "441422": "大埔县",
+ "441423": "丰顺县",
+ "441424": "五华县",
+ "441426": "平远县",
+ "441427": "蕉岭县",
+ "441481": "兴宁市"
+ }
+ },
+ "441500": {
+ code: "441500",
+ name: "汕尾市",
+ districts: {
+ "441502": "城区",
+ "441521": "海丰县",
+ "441523": "陆河县",
+ "441581": "陆丰市"
+ }
+ },
+ "441600": {
+ code: "441600",
+ name: "河源市",
+ districts: {
+ "441602": "源城区",
+ "441621": "紫金县",
+ "441622": "龙川县",
+ "441623": "连平县",
+ "441624": "和平县",
+ "441625": "东源县"
+ }
+ },
+ "441700": {
+ code: "441700",
+ name: "阳江市",
+ districts: {
+ "441702": "江城区",
+ "441704": "阳东区",
+ "441721": "阳西县",
+ "441781": "阳春市"
+ }
+ },
+ "441800": {
+ code: "441800",
+ name: "清远市",
+ districts: {
+ "441802": "清城区",
+ "441803": "清新区",
+ "441821": "佛冈县",
+ "441823": "阳山县",
+ "441825": "连山壮族瑶族自治县",
+ "441826": "连南瑶族自治县",
+ "441881": "英德市",
+ "441882": "连州市"
+ }
+ },
+ "441900": {
+ code: "441900",
+ name: "东莞市",
+ districts: {
+ }
+ },
+ "442000": {
+ code: "442000",
+ name: "中山市",
+ districts: {
+ }
+ },
+ "445100": {
+ code: "445100",
+ name: "潮州市",
+ districts: {
+ "445102": "湘桥区",
+ "445103": "潮安区",
+ "445122": "饶平县"
+ }
+ },
+ "445200": {
+ code: "445200",
+ name: "揭阳市",
+ districts: {
+ "445202": "榕城区",
+ "445203": "揭东区",
+ "445222": "揭西县",
+ "445224": "惠来县",
+ "445281": "普宁市"
+ }
+ },
+ "445300": {
+ code: "445300",
+ name: "云浮市",
+ districts: {
+ "445302": "云城区",
+ "445303": "云安区",
+ "445321": "新兴县",
+ "445322": "郁南县",
+ "445381": "罗定市"
+ }
+ }
+ }
+},
+ "450000": {
+ code: "450000",
+ name: "广西壮族自治区",
+ cities: {
+ "450100": {
+ code: "450100",
+ name: "南宁市",
+ districts: {
+ "450102": "兴宁区",
+ "450103": "青秀区",
+ "450105": "江南区",
+ "450107": "西乡塘区",
+ "450108": "良庆区",
+ "450109": "邕宁区",
+ "450110": "武鸣区",
+ "450123": "隆安县",
+ "450124": "马山县",
+ "450125": "上林县",
+ "450126": "宾阳县",
+ "450127": "横县"
+ }
+ },
+ "450200": {
+ code: "450200",
+ name: "柳州市",
+ districts: {
+ "450202": "城中区",
+ "450203": "鱼峰区",
+ "450204": "柳南区",
+ "450205": "柳北区",
+ "450206": "柳江区",
+ "450222": "柳城县",
+ "450223": "鹿寨县",
+ "450224": "融安县",
+ "450225": "融水苗族自治县",
+ "450226": "三江侗族自治县"
+ }
+ },
+ "450300": {
+ code: "450300",
+ name: "桂林市",
+ districts: {
+ "450302": "秀峰区",
+ "450303": "叠彩区",
+ "450304": "象山区",
+ "450305": "七星区",
+ "450311": "雁山区",
+ "450312": "临桂区",
+ "450321": "阳朔县",
+ "450323": "灵川县",
+ "450324": "全州县",
+ "450325": "兴安县",
+ "450326": "永福县",
+ "450327": "灌阳县",
+ "450328": "龙胜各族自治县",
+ "450329": "资源县",
+ "450330": "平乐县",
+ "450332": "恭城瑶族自治县",
+ "450381": "荔浦市"
+ }
+ },
+ "450400": {
+ code: "450400",
+ name: "梧州市",
+ districts: {
+ "450403": "万秀区",
+ "450405": "长洲区",
+ "450406": "龙圩区",
+ "450421": "苍梧县",
+ "450422": "藤县",
+ "450423": "蒙山县",
+ "450481": "岑溪市"
+ }
+ },
+ "450500": {
+ code: "450500",
+ name: "北海市",
+ districts: {
+ "450502": "海城区",
+ "450503": "银海区",
+ "450512": "铁山港区",
+ "450521": "合浦县"
+ }
+ },
+ "450600": {
+ code: "450600",
+ name: "防城港市",
+ districts: {
+ "450602": "港口区",
+ "450603": "防城区",
+ "450621": "上思县",
+ "450681": "东兴市"
+ }
+ },
+ "450700": {
+ code: "450700",
+ name: "钦州市",
+ districts: {
+ "450702": "钦南区",
+ "450703": "钦北区",
+ "450721": "灵山县",
+ "450722": "浦北县"
+ }
+ },
+ "450800": {
+ code: "450800",
+ name: "贵港市",
+ districts: {
+ "450802": "港北区",
+ "450803": "港南区",
+ "450804": "覃塘区",
+ "450821": "平南县",
+ "450881": "桂平市"
+ }
+ },
+ "450900": {
+ code: "450900",
+ name: "玉林市",
+ districts: {
+ "450902": "玉州区",
+ "450903": "福绵区",
+ "450921": "容县",
+ "450922": "陆川县",
+ "450923": "博白县",
+ "450924": "兴业县",
+ "450981": "北流市"
+ }
+ },
+ "451000": {
+ code: "451000",
+ name: "百色市",
+ districts: {
+ "451002": "右江区",
+ "451021": "田阳县",
+ "451022": "田东县",
+ "451023": "平果县",
+ "451024": "德保县",
+ "451026": "那坡县",
+ "451027": "凌云县",
+ "451028": "乐业县",
+ "451029": "田林县",
+ "451030": "西林县",
+ "451031": "隆林各族自治县",
+ "451081": "靖西市"
+ }
+ },
+ "451100": {
+ code: "451100",
+ name: "贺州市",
+ districts: {
+ "451102": "八步区",
+ "451103": "平桂区",
+ "451121": "昭平县",
+ "451122": "钟山县",
+ "451123": "富川瑶族自治县"
+ }
+ },
+ "451200": {
+ code: "451200",
+ name: "河池市",
+ districts: {
+ "451202": "金城江区",
+ "451203": "宜州区",
+ "451221": "南丹县",
+ "451222": "天峨县",
+ "451223": "凤山县",
+ "451224": "东兰县",
+ "451225": "罗城仫佬族自治县",
+ "451226": "环江毛南族自治县",
+ "451227": "巴马瑶族自治县",
+ "451228": "都安瑶族自治县",
+ "451229": "大化瑶族自治县"
+ }
+ },
+ "451300": {
+ code: "451300",
+ name: "来宾市",
+ districts: {
+ "451302": "兴宾区",
+ "451321": "忻城县",
+ "451322": "象州县",
+ "451323": "武宣县",
+ "451324": "金秀瑶族自治县",
+ "451381": "合山市"
+ }
+ },
+ "451400": {
+ code: "451400",
+ name: "崇左市",
+ districts: {
+ "451402": "江州区",
+ "451421": "扶绥县",
+ "451422": "宁明县",
+ "451423": "龙州县",
+ "451424": "大新县",
+ "451425": "天等县",
+ "451481": "凭祥市"
+ }
+ }
+ }
+},
+ "460000": {
+ code: "460000",
+ name: "海南省",
+ cities: {
+ "460100": {
+ code: "460100",
+ name: "海口市",
+ districts: {
+ "460105": "秀英区",
+ "460106": "龙华区",
+ "460107": "琼山区",
+ "460108": "美兰区"
+ }
+ },
+ "460200": {
+ code: "460200",
+ name: "三亚市",
+ districts: {
+ "460202": "海棠区",
+ "460203": "吉阳区",
+ "460204": "天涯区",
+ "460205": "崖州区"
+ }
+ },
+ "460300": {
+ code: "460300",
+ name: "三沙市",
+ districts: {
+ "460321": "西沙群岛",
+ "460322": "南沙群岛",
+ "460323": "中沙群岛的岛礁及其海域",
+ "460324": "永乐群岛"
+ }
+ },
+ "460400": {
+ code: "460400",
+ name: "儋州市",
+ districts: {
+ }
+ }
+ }
+},
+ "500000": {
+ code: "500000",
+ name: "重庆市",
+ cities: {
+ "500000": {
+ code: "500000",
+ name: "重庆市",
+ districts: {
+ "500101": "万州区",
+ "500102": "涪陵区",
+ "500103": "渝中区",
+ "500104": "大渡口区",
+ "500105": "江北区",
+ "500106": "沙坪坝区",
+ "500107": "九龙坡区",
+ "500108": "南岸区",
+ "500109": "北碚区",
+ "500110": "綦江区",
+ "500111": "大足区",
+ "500112": "渝北区",
+ "500113": "巴南区",
+ "500114": "黔江区",
+ "500115": "长寿区",
+ "500116": "江津区",
+ "500117": "合川区",
+ "500118": "永川区",
+ "500119": "南川区",
+ "500120": "璧山区",
+ "500151": "铜梁区",
+ "500152": "潼南区",
+ "500153": "荣昌区",
+ "500154": "开州区",
+ "500155": "梁平区",
+ "500156": "武隆区",
+ "500229": "城口县",
+ "500230": "丰都县",
+ "500231": "垫江县",
+ "500233": "忠县",
+ "500235": "云阳县",
+ "500236": "奉节县",
+ "500237": "巫山县",
+ "500238": "巫溪县",
+ "500240": "石柱土家族自治县",
+ "500241": "秀山土家族苗族自治县",
+ "500242": "酉阳土家族苗族自治县",
+ "500243": "彭水苗族土家族自治县"
+ }
+ }
+ }
+},
+ "510000": {
+ code: "510000",
+ name: "四川省",
+ cities: {
+ "510100": {
+ code: "510100",
+ name: "成都市",
+ districts: {
+ "510104": "锦江区",
+ "510105": "青羊区",
+ "510106": "金牛区",
+ "510107": "武侯区",
+ "510108": "成华区",
+ "510112": "龙泉驿区",
+ "510113": "青白江区",
+ "510114": "新都区",
+ "510115": "温江区",
+ "510116": "双流区",
+ "510117": "郫都区",
+ "510121": "金堂县",
+ "510129": "大邑县",
+ "510131": "蒲江县",
+ "510132": "新津县",
+ "510181": "都江堰市",
+ "510182": "彭州市",
+ "510183": "邛崃市",
+ "510184": "崇州市",
+ "510185": "简阳市"
+ }
+ },
+ "510300": {
+ code: "510300",
+ name: "自贡市",
+ districts: {
+ "510302": "自流井区",
+ "510303": "贡井区",
+ "510304": "大安区",
+ "510311": "沿滩区",
+ "510321": "荣县",
+ "510322": "富顺县"
+ }
+ },
+ "510400": {
+ code: "510400",
+ name: "攀枝花市",
+ districts: {
+ "510402": "东区",
+ "510403": "西区",
+ "510411": "仁和区",
+ "510421": "米易县",
+ "510422": "盐边县"
+ }
+ },
+ "510500": {
+ code: "510500",
+ name: "泸州市",
+ districts: {
+ "510502": "江阳区",
+ "510503": "纳溪区",
+ "510504": "龙马潭区",
+ "510521": "泸县",
+ "510522": "合江县",
+ "510524": "叙永县",
+ "510525": "古蔺县"
+ }
+ },
+ "510600": {
+ code: "510600",
+ name: "德阳市",
+ districts: {
+ "510603": "旌阳区",
+ "510604": "罗江区",
+ "510623": "中江县",
+ "510681": "广汉市",
+ "510682": "什邡市",
+ "510683": "绵竹市"
+ }
+ },
+ "510700": {
+ code: "510700",
+ name: "绵阳市",
+ districts: {
+ "510703": "涪城区",
+ "510704": "游仙区",
+ "510705": "安州区",
+ "510722": "三台县",
+ "510723": "盐亭县",
+ "510725": "梓潼县",
+ "510726": "北川羌族自治县",
+ "510727": "平武县",
+ "510781": "江油市"
+ }
+ },
+ "510800": {
+ code: "510800",
+ name: "广元市",
+ districts: {
+ "510802": "利州区",
+ "510811": "昭化区",
+ "510812": "朝天区",
+ "510821": "旺苍县",
+ "510822": "青川县",
+ "510823": "剑阁县",
+ "510824": "苍溪县"
+ }
+ },
+ "510900": {
+ code: "510900",
+ name: "遂宁市",
+ districts: {
+ "510903": "船山区",
+ "510904": "安居区",
+ "510921": "蓬溪县",
+ "510922": "射洪县",
+ "510923": "大英县"
+ }
+ },
+ "511000": {
+ code: "511000",
+ name: "内江市",
+ districts: {
+ "511002": "市中区",
+ "511011": "东兴区",
+ "511024": "威远县",
+ "511025": "资中县",
+ "511083": "隆昌市"
+ }
+ },
+ "511100": {
+ code: "511100",
+ name: "乐山市",
+ districts: {
+ "511102": "市中区",
+ "511111": "沙湾区",
+ "511112": "五通桥区",
+ "511113": "金口河区",
+ "511123": "犍为县",
+ "511124": "井研县",
+ "511126": "夹江县",
+ "511129": "沐川县",
+ "511132": "峨边彝族自治县",
+ "511133": "马边彝族自治县",
+ "511181": "峨眉山市"
+ }
+ },
+ "511300": {
+ code: "511300",
+ name: "南充市",
+ districts: {
+ "511302": "顺庆区",
+ "511303": "高坪区",
+ "511304": "嘉陵区",
+ "511321": "南部县",
+ "511322": "营山县",
+ "511323": "蓬安县",
+ "511324": "仪陇县",
+ "511325": "西充县",
+ "511381": "阆中市"
+ }
+ },
+ "511400": {
+ code: "511400",
+ name: "眉山市",
+ districts: {
+ "511402": "东坡区",
+ "511403": "彭山区",
+ "511421": "仁寿县",
+ "511423": "洪雅县",
+ "511424": "丹棱县",
+ "511425": "青神县"
+ }
+ },
+ "511500": {
+ code: "511500",
+ name: "宜宾市",
+ districts: {
+ "511502": "翠屏区",
+ "511503": "南溪区",
+ "511504": "叙州区",
+ "511523": "江安县",
+ "511524": "长宁县",
+ "511525": "高县",
+ "511526": "珙县",
+ "511527": "筠连县",
+ "511528": "兴文县",
+ "511529": "屏山县"
+ }
+ },
+ "511600": {
+ code: "511600",
+ name: "广安市",
+ districts: {
+ "511602": "广安区",
+ "511603": "前锋区",
+ "511621": "岳池县",
+ "511622": "武胜县",
+ "511623": "邻水县",
+ "511681": "华蓥市"
+ }
+ },
+ "511700": {
+ code: "511700",
+ name: "达州市",
+ districts: {
+ "511702": "通川区",
+ "511703": "达川区",
+ "511722": "宣汉县",
+ "511723": "开江县",
+ "511724": "大竹县",
+ "511725": "渠县",
+ "511781": "万源市"
+ }
+ },
+ "511800": {
+ code: "511800",
+ name: "雅安市",
+ districts: {
+ "511802": "雨城区",
+ "511803": "名山区",
+ "511822": "荥经县",
+ "511823": "汉源县",
+ "511824": "石棉县",
+ "511825": "天全县",
+ "511826": "芦山县",
+ "511827": "宝兴县"
+ }
+ },
+ "511900": {
+ code: "511900",
+ name: "巴中市",
+ districts: {
+ "511902": "巴州区",
+ "511903": "恩阳区",
+ "511921": "通江县",
+ "511922": "南江县",
+ "511923": "平昌县"
+ }
+ },
+ "512000": {
+ code: "512000",
+ name: "资阳市",
+ districts: {
+ "512002": "雁江区",
+ "512021": "安岳县",
+ "512022": "乐至县"
+ }
+ },
+ "513200": {
+ code: "513200",
+ name: "阿坝藏族羌族自治州",
+ districts: {
+ "513201": "马尔康市",
+ "513221": "汶川县",
+ "513222": "理县",
+ "513223": "茂县",
+ "513224": "松潘县",
+ "513225": "九寨沟县",
+ "513226": "金川县",
+ "513227": "小金县",
+ "513228": "黑水县",
+ "513230": "壤塘县",
+ "513231": "阿坝县",
+ "513232": "若尔盖县",
+ "513233": "红原县"
+ }
+ },
+ "513300": {
+ code: "513300",
+ name: "甘孜藏族自治州",
+ districts: {
+ "513301": "康定市",
+ "513322": "泸定县",
+ "513323": "丹巴县",
+ "513324": "九龙县",
+ "513325": "雅江县",
+ "513326": "道孚县",
+ "513327": "炉霍县",
+ "513328": "甘孜县",
+ "513329": "新龙县",
+ "513330": "德格县",
+ "513331": "白玉县",
+ "513332": "石渠县",
+ "513333": "色达县",
+ "513334": "理塘县",
+ "513335": "巴塘县",
+ "513336": "乡城县",
+ "513337": "稻城县",
+ "513338": "得荣县"
+ }
+ },
+ "513400": {
+ code: "513400",
+ name: "凉山彝族自治州",
+ districts: {
+ "513401": "西昌市",
+ "513422": "木里藏族自治县",
+ "513423": "盐源县",
+ "513424": "德昌县",
+ "513425": "会理县",
+ "513426": "会东县",
+ "513427": "宁南县",
+ "513428": "普格县",
+ "513429": "布拖县",
+ "513430": "金阳县",
+ "513431": "昭觉县",
+ "513432": "喜德县",
+ "513433": "冕宁县",
+ "513434": "越西县",
+ "513435": "甘洛县",
+ "513436": "美姑县",
+ "513437": "雷波县"
+ }
+ }
+ }
+},
+ "520000": {
+ code: "520000",
+ name: "贵州省",
+ cities: {
+ "520100": {
+ code: "520100",
+ name: "贵阳市",
+ districts: {
+ "520102": "南明区",
+ "520103": "云岩区",
+ "520111": "花溪区",
+ "520112": "乌当区",
+ "520113": "白云区",
+ "520115": "观山湖区",
+ "520121": "开阳县",
+ "520122": "息烽县",
+ "520123": "修文县",
+ "520181": "清镇市"
+ }
+ },
+ "520200": {
+ code: "520200",
+ name: "六盘水市",
+ districts: {
+ "520201": "钟山区",
+ "520203": "六枝特区",
+ "520221": "水城县",
+ "520281": "盘州市"
+ }
+ },
+ "520300": {
+ code: "520300",
+ name: "遵义市",
+ districts: {
+ "520302": "红花岗区",
+ "520303": "汇川区",
+ "520304": "播州区",
+ "520322": "桐梓县",
+ "520323": "绥阳县",
+ "520324": "正安县",
+ "520325": "道真仡佬族苗族自治县",
+ "520326": "务川仡佬族苗族自治县",
+ "520327": "凤冈县",
+ "520328": "湄潭县",
+ "520329": "余庆县",
+ "520330": "习水县",
+ "520381": "赤水市",
+ "520382": "仁怀市"
+ }
+ },
+ "520400": {
+ code: "520400",
+ name: "安顺市",
+ districts: {
+ "520402": "西秀区",
+ "520403": "平坝区",
+ "520422": "普定县",
+ "520423": "镇宁布依族苗族自治县",
+ "520424": "关岭布依族苗族自治县",
+ "520425": "紫云苗族布依族自治县"
+ }
+ },
+ "520500": {
+ code: "520500",
+ name: "毕节市",
+ districts: {
+ "520502": "七星关区",
+ "520521": "大方县",
+ "520522": "黔西县",
+ "520523": "金沙县",
+ "520524": "织金县",
+ "520525": "纳雍县",
+ "520526": "威宁彝族回族苗族自治县",
+ "520527": "赫章县"
+ }
+ },
+ "520600": {
+ code: "520600",
+ name: "铜仁市",
+ districts: {
+ "520602": "碧江区",
+ "520603": "万山区",
+ "520621": "江口县",
+ "520622": "玉屏侗族自治县",
+ "520623": "石阡县",
+ "520624": "思南县",
+ "520625": "印江土家族苗族自治县",
+ "520626": "德江县",
+ "520627": "沿河土家族自治县",
+ "520628": "松桃苗族自治县"
+ }
+ },
+ "522300": {
+ code: "522300",
+ name: "黔西南布依族苗族自治州",
+ districts: {
+ "522301": "兴义市",
+ "522302": "兴仁市",
+ "522323": "普安县",
+ "522324": "晴隆县",
+ "522325": "贞丰县",
+ "522326": "望谟县",
+ "522327": "册亨县",
+ "522328": "安龙县"
+ }
+ },
+ "522600": {
+ code: "522600",
+ name: "黔东南苗族侗族自治州",
+ districts: {
+ "522601": "凯里市",
+ "522622": "黄平县",
+ "522623": "施秉县",
+ "522624": "三穗县",
+ "522625": "镇远县",
+ "522626": "岑巩县",
+ "522627": "天柱县",
+ "522628": "锦屏县",
+ "522629": "剑河县",
+ "522630": "台江县",
+ "522631": "黎平县",
+ "522632": "榕江县",
+ "522633": "从江县",
+ "522634": "雷山县",
+ "522635": "麻江县",
+ "522636": "丹寨县"
+ }
+ },
+ "522700": {
+ code: "522700",
+ name: "黔南布依族苗族自治州",
+ districts: {
+ "522701": "都匀市",
+ "522702": "福泉市",
+ "522722": "荔波县",
+ "522723": "贵定县",
+ "522725": "瓮安县",
+ "522726": "独山县",
+ "522727": "平塘县",
+ "522728": "罗甸县",
+ "522729": "长顺县",
+ "522730": "龙里县",
+ "522731": "惠水县",
+ "522732": "三都水族自治县"
+ }
+ }
+ }
+},
+ "530000": {
+ code: "530000",
+ name: "云南省",
+ cities: {
+ "530100": {
+ code: "530100",
+ name: "昆明市",
+ districts: {
+ "530102": "五华区",
+ "530103": "盘龙区",
+ "530111": "官渡区",
+ "530112": "西山区",
+ "530113": "东川区",
+ "530114": "呈贡区",
+ "530115": "晋宁区",
+ "530124": "富民县",
+ "530125": "宜良县",
+ "530126": "石林彝族自治县",
+ "530127": "嵩明县",
+ "530128": "禄劝彝族苗族自治县",
+ "530129": "寻甸回族彝族自治县",
+ "530181": "安宁市"
+ }
+ },
+ "530300": {
+ code: "530300",
+ name: "曲靖市",
+ districts: {
+ "530302": "麒麟区",
+ "530303": "沾益区",
+ "530304": "马龙区",
+ "530322": "陆良县",
+ "530323": "师宗县",
+ "530324": "罗平县",
+ "530325": "富源县",
+ "530326": "会泽县",
+ "530381": "宣威市"
+ }
+ },
+ "530400": {
+ code: "530400",
+ name: "玉溪市",
+ districts: {
+ "530402": "红塔区",
+ "530403": "江川区",
+ "530422": "澄江县",
+ "530423": "通海县",
+ "530424": "华宁县",
+ "530425": "易门县",
+ "530426": "峨山彝族自治县",
+ "530427": "新平彝族傣族自治县",
+ "530428": "元江哈尼族彝族傣族自治县"
+ }
+ },
+ "530500": {
+ code: "530500",
+ name: "保山市",
+ districts: {
+ "530502": "隆阳区",
+ "530521": "施甸县",
+ "530523": "龙陵县",
+ "530524": "昌宁县",
+ "530581": "腾冲市"
+ }
+ },
+ "530600": {
+ code: "530600",
+ name: "昭通市",
+ districts: {
+ "530602": "昭阳区",
+ "530621": "鲁甸县",
+ "530622": "巧家县",
+ "530623": "盐津县",
+ "530624": "大关县",
+ "530625": "永善县",
+ "530626": "绥江县",
+ "530627": "镇雄县",
+ "530628": "彝良县",
+ "530629": "威信县",
+ "530681": "水富市"
+ }
+ },
+ "530700": {
+ code: "530700",
+ name: "丽江市",
+ districts: {
+ "530702": "古城区",
+ "530721": "玉龙纳西族自治县",
+ "530722": "永胜县",
+ "530723": "华坪县",
+ "530724": "宁蒗彝族自治县"
+ }
+ },
+ "530800": {
+ code: "530800",
+ name: "普洱市",
+ districts: {
+ "530802": "思茅区",
+ "530821": "宁洱哈尼族彝族自治县",
+ "530822": "墨江哈尼族自治县",
+ "530823": "景东彝族自治县",
+ "530824": "景谷傣族彝族自治县",
+ "530825": "镇沅彝族哈尼族拉祜族自治县",
+ "530826": "江城哈尼族彝族自治县",
+ "530827": "孟连傣族拉祜族佤族自治县",
+ "530828": "澜沧拉祜族自治县",
+ "530829": "西盟佤族自治县"
+ }
+ },
+ "530900": {
+ code: "530900",
+ name: "临沧市",
+ districts: {
+ "530902": "临翔区",
+ "530921": "凤庆县",
+ "530922": "云县",
+ "530923": "永德县",
+ "530924": "镇康县",
+ "530925": "双江拉祜族佤族布朗族傣族自治县",
+ "530926": "耿马傣族佤族自治县",
+ "530927": "沧源佤族自治县"
+ }
+ },
+ "532300": {
+ code: "532300",
+ name: "楚雄彝族自治州",
+ districts: {
+ "532301": "楚雄市",
+ "532322": "双柏县",
+ "532323": "牟定县",
+ "532324": "南华县",
+ "532325": "姚安县",
+ "532326": "大姚县",
+ "532327": "永仁县",
+ "532328": "元谋县",
+ "532329": "武定县",
+ "532331": "禄丰县"
+ }
+ },
+ "532500": {
+ code: "532500",
+ name: "红河哈尼族彝族自治州",
+ districts: {
+ "532501": "个旧市",
+ "532502": "开远市",
+ "532503": "蒙自市",
+ "532504": "弥勒市",
+ "532523": "屏边苗族自治县",
+ "532524": "建水县",
+ "532525": "石屏县",
+ "532527": "泸西县",
+ "532528": "元阳县",
+ "532529": "红河县",
+ "532530": "金平苗族瑶族傣族自治县",
+ "532531": "绿春县",
+ "532532": "河口瑶族自治县"
+ }
+ },
+ "532600": {
+ code: "532600",
+ name: "文山壮族苗族自治州",
+ districts: {
+ "532601": "文山市",
+ "532622": "砚山县",
+ "532623": "西畴县",
+ "532624": "麻栗坡县",
+ "532625": "马关县",
+ "532626": "丘北县",
+ "532627": "广南县",
+ "532628": "富宁县"
+ }
+ },
+ "532800": {
+ code: "532800",
+ name: "西双版纳傣族自治州",
+ districts: {
+ "532801": "景洪市",
+ "532822": "勐海县",
+ "532823": "勐腊县"
+ }
+ },
+ "532900": {
+ code: "532900",
+ name: "大理白族自治州",
+ districts: {
+ "532901": "大理市",
+ "532922": "漾濞彝族自治县",
+ "532923": "祥云县",
+ "532924": "宾川县",
+ "532925": "弥渡县",
+ "532926": "南涧彝族自治县",
+ "532927": "巍山彝族回族自治县",
+ "532928": "永平县",
+ "532929": "云龙县",
+ "532930": "洱源县",
+ "532931": "剑川县",
+ "532932": "鹤庆县"
+ }
+ },
+ "533100": {
+ code: "533100",
+ name: "德宏傣族景颇族自治州",
+ districts: {
+ "533102": "瑞丽市",
+ "533103": "芒市",
+ "533122": "梁河县",
+ "533123": "盈江县",
+ "533124": "陇川县"
+ }
+ },
+ "533300": {
+ code: "533300",
+ name: "怒江傈僳族自治州",
+ districts: {
+ "533301": "泸水市",
+ "533323": "福贡县",
+ "533324": "贡山独龙族怒族自治县",
+ "533325": "兰坪白族普米族自治县"
+ }
+ },
+ "533400": {
+ code: "533400",
+ name: "迪庆藏族自治州",
+ districts: {
+ "533401": "香格里拉市",
+ "533422": "德钦县",
+ "533423": "维西傈僳族自治县"
+ }
+ }
+ }
+},
+ "540000": {
+ code: "540000",
+ name: "西藏自治区",
+ cities: {
+ "540100": {
+ code: "540100",
+ name: "拉萨市",
+ districts: {
+ "540102": "城关区",
+ "540103": "堆龙德庆区",
+ "540104": "达孜区",
+ "540121": "林周县",
+ "540122": "当雄县",
+ "540123": "尼木县",
+ "540124": "曲水县",
+ "540127": "墨竹工卡县"
+ }
+ },
+ "540200": {
+ code: "540200",
+ name: "日喀则市",
+ districts: {
+ "540202": "桑珠孜区",
+ "540221": "南木林县",
+ "540222": "江孜县",
+ "540223": "定日县",
+ "540224": "萨迦县",
+ "540225": "拉孜县",
+ "540226": "昂仁县",
+ "540227": "谢通门县",
+ "540228": "白朗县",
+ "540229": "仁布县",
+ "540230": "康马县",
+ "540231": "定结县",
+ "540232": "仲巴县",
+ "540233": "亚东县",
+ "540234": "吉隆县",
+ "540235": "聂拉木县",
+ "540236": "萨嘎县",
+ "540237": "岗巴县"
+ }
+ },
+ "540300": {
+ code: "540300",
+ name: "昌都市",
+ districts: {
+ "540302": "卡若区",
+ "540321": "江达县",
+ "540322": "贡觉县",
+ "540323": "类乌齐县",
+ "540324": "丁青县",
+ "540325": "察雅县",
+ "540326": "八宿县",
+ "540327": "左贡县",
+ "540328": "芒康县",
+ "540329": "洛隆县",
+ "540330": "边坝县"
+ }
+ },
+ "540400": {
+ code: "540400",
+ name: "林芝市",
+ districts: {
+ "540402": "巴宜区",
+ "540421": "工布江达县",
+ "540422": "米林县",
+ "540423": "墨脱县",
+ "540424": "波密县",
+ "540425": "察隅县",
+ "540426": "朗县"
+ }
+ },
+ "540500": {
+ code: "540500",
+ name: "山南市",
+ districts: {
+ "540502": "乃东区",
+ "540521": "扎囊县",
+ "540522": "贡嘎县",
+ "540523": "桑日县",
+ "540524": "琼结县",
+ "540525": "曲松县",
+ "540526": "措美县",
+ "540527": "洛扎县",
+ "540528": "加查县",
+ "540529": "隆子县",
+ "540530": "错那县",
+ "540531": "浪卡子县"
+ }
+ },
+ "540600": {
+ code: "540600",
+ name: "那曲市",
+ districts: {
+ "540602": "色尼区",
+ "540621": "嘉黎县",
+ "540622": "比如县",
+ "540623": "聂荣县",
+ "540624": "安多县",
+ "540625": "申扎县",
+ "540626": "索县",
+ "540627": "班戈县",
+ "540628": "巴青县",
+ "540629": "尼玛县",
+ "540630": "双湖县"
+ }
+ },
+ "542500": {
+ code: "542500",
+ name: "阿里地区",
+ districts: {
+ "542521": "普兰县",
+ "542522": "札达县",
+ "542523": "噶尔县",
+ "542524": "日土县",
+ "542525": "革吉县",
+ "542526": "改则县",
+ "542527": "措勤县"
+ }
+ }
+ }
+},
+ "610000": {
+ code: "610000",
+ name: "陕西省",
+ cities: {
+ "610100": {
+ code: "610100",
+ name: "西安市",
+ districts: {
+ "610102": "新城区",
+ "610103": "碑林区",
+ "610104": "莲湖区",
+ "610111": "灞桥区",
+ "610112": "未央区",
+ "610113": "雁塔区",
+ "610114": "阎良区",
+ "610115": "临潼区",
+ "610116": "长安区",
+ "610117": "高陵区",
+ "610118": "鄠邑区",
+ "610122": "蓝田县",
+ "610124": "周至县"
+ }
+ },
+ "610200": {
+ code: "610200",
+ name: "铜川市",
+ districts: {
+ "610202": "王益区",
+ "610203": "印台区",
+ "610204": "耀州区",
+ "610222": "宜君县"
+ }
+ },
+ "610300": {
+ code: "610300",
+ name: "宝鸡市",
+ districts: {
+ "610302": "渭滨区",
+ "610303": "金台区",
+ "610304": "陈仓区",
+ "610322": "凤翔县",
+ "610323": "岐山县",
+ "610324": "扶风县",
+ "610326": "眉县",
+ "610327": "陇县",
+ "610328": "千阳县",
+ "610329": "麟游县",
+ "610330": "凤县",
+ "610331": "太白县"
+ }
+ },
+ "610400": {
+ code: "610400",
+ name: "咸阳市",
+ districts: {
+ "610402": "秦都区",
+ "610403": "杨陵区",
+ "610404": "渭城区",
+ "610422": "三原县",
+ "610423": "泾阳县",
+ "610424": "乾县",
+ "610425": "礼泉县",
+ "610426": "永寿县",
+ "610428": "长武县",
+ "610429": "旬邑县",
+ "610430": "淳化县",
+ "610431": "武功县",
+ "610481": "兴平市",
+ "610482": "彬州市"
+ }
+ },
+ "610500": {
+ code: "610500",
+ name: "渭南市",
+ districts: {
+ "610502": "临渭区",
+ "610503": "华州区",
+ "610522": "潼关县",
+ "610523": "大荔县",
+ "610524": "合阳县",
+ "610525": "澄城县",
+ "610526": "蒲城县",
+ "610527": "白水县",
+ "610528": "富平县",
+ "610581": "韩城市",
+ "610582": "华阴市"
+ }
+ },
+ "610600": {
+ code: "610600",
+ name: "延安市",
+ districts: {
+ "610602": "宝塔区",
+ "610603": "安塞区",
+ "610621": "延长县",
+ "610622": "延川县",
+ "610623": "子长县",
+ "610625": "志丹县",
+ "610626": "吴起县",
+ "610627": "甘泉县",
+ "610628": "富县",
+ "610629": "洛川县",
+ "610630": "宜川县",
+ "610631": "黄龙县",
+ "610632": "黄陵县"
+ }
+ },
+ "610700": {
+ code: "610700",
+ name: "汉中市",
+ districts: {
+ "610702": "汉台区",
+ "610703": "南郑区",
+ "610722": "城固县",
+ "610723": "洋县",
+ "610724": "西乡县",
+ "610725": "勉县",
+ "610726": "宁强县",
+ "610727": "略阳县",
+ "610728": "镇巴县",
+ "610729": "留坝县",
+ "610730": "佛坪县"
+ }
+ },
+ "610800": {
+ code: "610800",
+ name: "榆林市",
+ districts: {
+ "610802": "榆阳区",
+ "610803": "横山区",
+ "610822": "府谷县",
+ "610824": "靖边县",
+ "610825": "定边县",
+ "610826": "绥德县",
+ "610827": "米脂县",
+ "610828": "佳县",
+ "610829": "吴堡县",
+ "610830": "清涧县",
+ "610831": "子洲县",
+ "610881": "神木市"
+ }
+ },
+ "610900": {
+ code: "610900",
+ name: "安康市",
+ districts: {
+ "610902": "汉滨区",
+ "610921": "汉阴县",
+ "610922": "石泉县",
+ "610923": "宁陕县",
+ "610924": "紫阳县",
+ "610925": "岚皋县",
+ "610926": "平利县",
+ "610927": "镇坪县",
+ "610928": "旬阳县",
+ "610929": "白河县"
+ }
+ },
+ "611000": {
+ code: "611000",
+ name: "商洛市",
+ districts: {
+ "611002": "商州区",
+ "611021": "洛南县",
+ "611022": "丹凤县",
+ "611023": "商南县",
+ "611024": "山阳县",
+ "611025": "镇安县",
+ "611026": "柞水县"
+ }
+ }
+ }
+},
+ "620000": {
+ code: "620000",
+ name: "甘肃省",
+ cities: {
+ "620100": {
+ code: "620100",
+ name: "兰州市",
+ districts: {
+ "620102": "城关区",
+ "620103": "七里河区",
+ "620104": "西固区",
+ "620105": "安宁区",
+ "620111": "红古区",
+ "620121": "永登县",
+ "620122": "皋兰县",
+ "620123": "榆中县"
+ }
+ },
+ "620200": {
+ code: "620200",
+ name: "嘉峪关市",
+ districts: {
+ }
+ },
+ "620300": {
+ code: "620300",
+ name: "金昌市",
+ districts: {
+ "620302": "金川区",
+ "620321": "永昌县"
+ }
+ },
+ "620400": {
+ code: "620400",
+ name: "白银市",
+ districts: {
+ "620402": "白银区",
+ "620403": "平川区",
+ "620421": "靖远县",
+ "620422": "会宁县",
+ "620423": "景泰县"
+ }
+ },
+ "620500": {
+ code: "620500",
+ name: "天水市",
+ districts: {
+ "620502": "秦州区",
+ "620503": "麦积区",
+ "620521": "清水县",
+ "620522": "秦安县",
+ "620523": "甘谷县",
+ "620524": "武山县",
+ "620525": "张家川回族自治县"
+ }
+ },
+ "620600": {
+ code: "620600",
+ name: "武威市",
+ districts: {
+ "620602": "凉州区",
+ "620621": "民勤县",
+ "620622": "古浪县",
+ "620623": "天祝藏族自治县"
+ }
+ },
+ "620700": {
+ code: "620700",
+ name: "张掖市",
+ districts: {
+ "620702": "甘州区",
+ "620721": "肃南裕固族自治县",
+ "620722": "民乐县",
+ "620723": "临泽县",
+ "620724": "高台县",
+ "620725": "山丹县"
+ }
+ },
+ "620800": {
+ code: "620800",
+ name: "平凉市",
+ districts: {
+ "620802": "崆峒区",
+ "620821": "泾川县",
+ "620822": "灵台县",
+ "620823": "崇信县",
+ "620825": "庄浪县",
+ "620826": "静宁县",
+ "620881": "华亭市"
+ }
+ },
+ "620900": {
+ code: "620900",
+ name: "酒泉市",
+ districts: {
+ "620902": "肃州区",
+ "620921": "金塔县",
+ "620922": "瓜州县",
+ "620923": "肃北蒙古族自治县",
+ "620924": "阿克塞哈萨克族自治县",
+ "620981": "玉门市",
+ "620982": "敦煌市"
+ }
+ },
+ "621000": {
+ code: "621000",
+ name: "庆阳市",
+ districts: {
+ "621002": "西峰区",
+ "621021": "庆城县",
+ "621022": "环县",
+ "621023": "华池县",
+ "621024": "合水县",
+ "621025": "正宁县",
+ "621026": "宁县",
+ "621027": "镇原县"
+ }
+ },
+ "621100": {
+ code: "621100",
+ name: "定西市",
+ districts: {
+ "621102": "安定区",
+ "621121": "通渭县",
+ "621122": "陇西县",
+ "621123": "渭源县",
+ "621124": "临洮县",
+ "621125": "漳县",
+ "621126": "岷县"
+ }
+ },
+ "621200": {
+ code: "621200",
+ name: "陇南市",
+ districts: {
+ "621202": "武都区",
+ "621221": "成县",
+ "621222": "文县",
+ "621223": "宕昌县",
+ "621224": "康县",
+ "621225": "西和县",
+ "621226": "礼县",
+ "621227": "徽县",
+ "621228": "两当县"
+ }
+ },
+ "622900": {
+ code: "622900",
+ name: "临夏回族自治州",
+ districts: {
+ "622901": "临夏市",
+ "622921": "临夏县",
+ "622922": "康乐县",
+ "622923": "永靖县",
+ "622924": "广河县",
+ "622925": "和政县",
+ "622926": "东乡族自治县",
+ "622927": "积石山保安族东乡族撒拉族自治县"
+ }
+ },
+ "623000": {
+ code: "623000",
+ name: "甘南藏族自治州",
+ districts: {
+ "623001": "合作市",
+ "623021": "临潭县",
+ "623022": "卓尼县",
+ "623023": "舟曲县",
+ "623024": "迭部县",
+ "623025": "玛曲县",
+ "623026": "碌曲县",
+ "623027": "夏河县"
+ }
+ }
+ }
+},
+ "630000": {
+ code: "630000",
+ name: "青海省",
+ cities: {
+ "630100": {
+ code: "630100",
+ name: "西宁市",
+ districts: {
+ "630102": "城东区",
+ "630103": "城中区",
+ "630104": "城西区",
+ "630105": "城北区",
+ "630121": "大通回族土族自治县",
+ "630122": "湟中县",
+ "630123": "湟源县"
+ }
+ },
+ "630200": {
+ code: "630200",
+ name: "海东市",
+ districts: {
+ "630202": "乐都区",
+ "630203": "平安区",
+ "630222": "民和回族土族自治县",
+ "630223": "互助土族自治县",
+ "630224": "化隆回族自治县",
+ "630225": "循化撒拉族自治县"
+ }
+ },
+ "632200": {
+ code: "632200",
+ name: "海北藏族自治州",
+ districts: {
+ "632221": "门源回族自治县",
+ "632222": "祁连县",
+ "632223": "海晏县",
+ "632224": "刚察县"
+ }
+ },
+ "632300": {
+ code: "632300",
+ name: "黄南藏族自治州",
+ districts: {
+ "632321": "同仁县",
+ "632322": "尖扎县",
+ "632323": "泽库县",
+ "632324": "河南蒙古族自治县"
+ }
+ },
+ "632500": {
+ code: "632500",
+ name: "海南藏族自治州",
+ districts: {
+ "632521": "共和县",
+ "632522": "同德县",
+ "632523": "贵德县",
+ "632524": "兴海县",
+ "632525": "贵南县"
+ }
+ },
+ "632600": {
+ code: "632600",
+ name: "果洛藏族自治州",
+ districts: {
+ "632621": "玛沁县",
+ "632622": "班玛县",
+ "632623": "甘德县",
+ "632624": "达日县",
+ "632625": "久治县",
+ "632626": "玛多县"
+ }
+ },
+ "632700": {
+ code: "632700",
+ name: "玉树藏族自治州",
+ districts: {
+ "632701": "玉树市",
+ "632722": "杂多县",
+ "632723": "称多县",
+ "632724": "治多县",
+ "632725": "囊谦县",
+ "632726": "曲麻莱县"
+ }
+ },
+ "632800": {
+ code: "632800",
+ name: "海西蒙古族藏族自治州",
+ districts: {
+ "632801": "格尔木市",
+ "632802": "德令哈市",
+ "632803": "茫崖市",
+ "632821": "乌兰县",
+ "632822": "都兰县",
+ "632823": "天峻县"
+ }
+ }
+ }
+},
+ "640000": {
+ code: "640000",
+ name: "宁夏回族自治区",
+ cities: {
+ "640100": {
+ code: "640100",
+ name: "银川市",
+ districts: {
+ "640104": "兴庆区",
+ "640105": "西夏区",
+ "640106": "金凤区",
+ "640121": "永宁县",
+ "640122": "贺兰县",
+ "640181": "灵武市"
+ }
+ },
+ "640200": {
+ code: "640200",
+ name: "石嘴山市",
+ districts: {
+ "640202": "大武口区",
+ "640205": "惠农区",
+ "640221": "平罗县"
+ }
+ },
+ "640300": {
+ code: "640300",
+ name: "吴忠市",
+ districts: {
+ "640302": "利通区",
+ "640303": "红寺堡区",
+ "640323": "盐池县",
+ "640324": "同心县",
+ "640381": "青铜峡市"
+ }
+ },
+ "640400": {
+ code: "640400",
+ name: "固原市",
+ districts: {
+ "640402": "原州区",
+ "640422": "西吉县",
+ "640423": "隆德县",
+ "640424": "泾源县",
+ "640425": "彭阳县"
+ }
+ },
+ "640500": {
+ code: "640500",
+ name: "中卫市",
+ districts: {
+ "640502": "沙坡头区",
+ "640521": "中宁县",
+ "640522": "海原县"
+ }
+ }
+ }
+},
+ "650000": {
+ code: "650000",
+ name: "新疆维吾尔自治区",
+ cities: {
+ "650100": {
+ code: "650100",
+ name: "乌鲁木齐市",
+ districts: {
+ "650102": "天山区",
+ "650103": "沙依巴克区",
+ "650104": "新市区",
+ "650105": "水磨沟区",
+ "650106": "头屯河区",
+ "650107": "达坂城区",
+ "650109": "米东区",
+ "650121": "乌鲁木齐县"
+ }
+ },
+ "650200": {
+ code: "650200",
+ name: "克拉玛依市",
+ districts: {
+ "650202": "独山子区",
+ "650203": "克拉玛依区",
+ "650204": "白碱滩区",
+ "650205": "乌尔禾区"
+ }
+ },
+ "650400": {
+ code: "650400",
+ name: "吐鲁番市",
+ districts: {
+ "650402": "高昌区",
+ "650421": "鄯善县",
+ "650422": "托克逊县"
+ }
+ },
+ "650500": {
+ code: "650500",
+ name: "哈密市",
+ districts: {
+ "650502": "伊州区",
+ "650521": "巴里坤哈萨克自治县",
+ "650522": "伊吾县"
+ }
+ },
+ "652300": {
+ code: "652300",
+ name: "昌吉回族自治州",
+ districts: {
+ "652301": "昌吉市",
+ "652302": "阜康市",
+ "652323": "呼图壁县",
+ "652324": "玛纳斯县",
+ "652325": "奇台县",
+ "652327": "吉木萨尔县",
+ "652328": "木垒哈萨克自治县"
+ }
+ },
+ "652700": {
+ code: "652700",
+ name: "博尔塔拉蒙古自治州",
+ districts: {
+ "652701": "博乐市",
+ "652702": "阿拉山口市",
+ "652722": "精河县",
+ "652723": "温泉县"
+ }
+ },
+ "652800": {
+ code: "652800",
+ name: "巴音郭楞蒙古自治州",
+ districts: {
+ "652801": "库尔勒市",
+ "652822": "轮台县",
+ "652823": "尉犁县",
+ "652824": "若羌县",
+ "652825": "且末县",
+ "652826": "焉耆回族自治县",
+ "652827": "和静县",
+ "652828": "和硕县",
+ "652829": "博湖县"
+ }
+ },
+ "652900": {
+ code: "652900",
+ name: "阿克苏地区",
+ districts: {
+ "652901": "阿克苏市",
+ "652922": "温宿县",
+ "652923": "库车县",
+ "652924": "沙雅县",
+ "652925": "新和县",
+ "652926": "拜城县",
+ "652927": "乌什县",
+ "652928": "阿瓦提县",
+ "652929": "柯坪县"
+ }
+ },
+ "653000": {
+ code: "653000",
+ name: "克孜勒苏柯尔克孜自治州",
+ districts: {
+ "653001": "阿图什市",
+ "653022": "阿克陶县",
+ "653023": "阿合奇县",
+ "653024": "乌恰县"
+ }
+ },
+ "653100": {
+ code: "653100",
+ name: "喀什地区",
+ districts: {
+ "653101": "喀什市",
+ "653121": "疏附县",
+ "653122": "疏勒县",
+ "653123": "英吉沙县",
+ "653124": "泽普县",
+ "653125": "莎车县",
+ "653126": "叶城县",
+ "653127": "麦盖提县",
+ "653128": "岳普湖县",
+ "653129": "伽师县",
+ "653130": "巴楚县",
+ "653131": "塔什库尔干塔吉克自治县"
+ }
+ },
+ "653200": {
+ code: "653200",
+ name: "和田地区",
+ districts: {
+ "653201": "和田市",
+ "653221": "和田县",
+ "653222": "墨玉县",
+ "653223": "皮山县",
+ "653224": "洛浦县",
+ "653225": "策勒县",
+ "653226": "于田县",
+ "653227": "民丰县"
+ }
+ },
+ "654000": {
+ code: "654000",
+ name: "伊犁哈萨克自治州",
+ districts: {
+ "654002": "伊宁市",
+ "654003": "奎屯市",
+ "654004": "霍尔果斯市",
+ "654021": "伊宁县",
+ "654022": "察布查尔锡伯自治县",
+ "654023": "霍城县",
+ "654024": "巩留县",
+ "654025": "新源县",
+ "654026": "昭苏县",
+ "654027": "特克斯县",
+ "654028": "尼勒克县"
+ }
+ },
+ "654200": {
+ code: "654200",
+ name: "塔城地区",
+ districts: {
+ "654201": "塔城市",
+ "654202": "乌苏市",
+ "654221": "额敏县",
+ "654223": "沙湾县",
+ "654224": "托里县",
+ "654225": "裕民县",
+ "654226": "和布克赛尔蒙古自治县"
+ }
+ },
+ "654300": {
+ code: "654300",
+ name: "阿勒泰地区",
+ districts: {
+ "654301": "阿勒泰市",
+ "654321": "布尔津县",
+ "654322": "富蕴县",
+ "654323": "福海县",
+ "654324": "哈巴河县",
+ "654325": "青河县",
+ "654326": "吉木乃县"
+ }
+ }
+ }
+},
+ "810000": {
+ code: "810000",
+ name: "香港特别行政区",
+ cities: {
+ "810000": {
+ code: "810000",
+ name: "香港特别行政区",
+ districts: {
+ "810101": "中西区",
+ "810102": "湾仔区",
+ "810103": "东区",
+ "810104": "南区",
+ "810105": "油尖旺区",
+ "810106": "深水埗区",
+ "810107": "九龙城区",
+ "810108": "黄大仙区",
+ "810109": "观塘区",
+ "810110": "北区",
+ "810111": "大埔区",
+ "810112": "沙田区",
+ "810113": "西贡区",
+ "810114": "荃湾区",
+ "810115": "屯门区",
+ "810116": "元朗区",
+ "810117": "葵青区",
+ "810118": "离岛区"
+ }
+ }
+ }
+},
+ "820000": {
+ code: "820000",
+ name: "澳门特别行政区",
+ cities: {
+ "820000": {
+ code: "820000",
+ name: "澳门特别行政区",
+ districts: {
+ "820101": "花地玛堂区",
+ "820102": "圣安多尼堂区",
+ "820103": "大堂区",
+ "820104": "望德堂区",
+ "820105": "风顺堂区",
+ "820106": "嘉模堂区",
+ "820107": "圣方济各堂区",
+ "820108": "路氹城",
+ "820109": "澳门新城"
+ }
+ }
+ }
+},
+ "830000": {
+ code: "830000",
+ name: "台湾省",
+ cities: {
+ "830100": {
+ code: "830100",
+ name: "台北市",
+ districts: {
+ "830101": "中正区",
+ "830102": "大同区",
+ "830103": "中山区",
+ "830104": "万华区",
+ "830105": "信义区",
+ "830106": "松山区",
+ "830107": "大安区",
+ "830108": "南港区",
+ "830109": "北投区",
+ "830110": "内湖区",
+ "830111": "士林区",
+ "830112": "文山区"
+ }
+ },
+ "830200": {
+ code: "830200",
+ name: "新北市",
+ districts: {
+ "830201": "板桥区",
+ "830202": "土城区",
+ "830203": "新庄区",
+ "830204": "新店区",
+ "830205": "深坑区",
+ "830206": "石碇区",
+ "830207": "坪林区",
+ "830208": "乌来区",
+ "830209": "五股区",
+ "830210": "八里区",
+ "830211": "林口区",
+ "830212": "淡水区",
+ "830213": "中和区",
+ "830214": "永和区",
+ "830215": "三重区",
+ "830216": "芦洲区",
+ "830217": "泰山区",
+ "830218": "树林区",
+ "830219": "莺歌区",
+ "830220": "三峡区",
+ "830221": "汐止区",
+ "830222": "金山区",
+ "830223": "万里区",
+ "830224": "三芝区",
+ "830225": "石门区",
+ "830226": "瑞芳区",
+ "830227": "贡寮区",
+ "830228": "双溪区",
+ "830229": "平溪区"
+ }
+ },
+ "830300": {
+ code: "830300",
+ name: "桃园市",
+ districts: {
+ "830301": "桃园区",
+ "830302": "中坜区",
+ "830303": "平镇区",
+ "830304": "八德区",
+ "830305": "杨梅区",
+ "830306": "芦竹区",
+ "830307": "大溪区",
+ "830308": "龙潭区",
+ "830309": "龟山区",
+ "830310": "大园区",
+ "830311": "观音区",
+ "830312": "新屋区",
+ "830313": "复兴区"
+ }
+ },
+ "830400": {
+ code: "830400",
+ name: "台中市",
+ districts: {
+ "830401": "中区",
+ "830402": "东区",
+ "830403": "西区",
+ "830404": "南区",
+ "830405": "北区",
+ "830406": "西屯区",
+ "830407": "南屯区",
+ "830408": "北屯区",
+ "830409": "丰原区",
+ "830410": "大里区",
+ "830411": "太平区",
+ "830412": "东势区",
+ "830413": "大甲区",
+ "830414": "清水区",
+ "830415": "沙鹿区",
+ "830416": "梧栖区",
+ "830417": "后里区",
+ "830418": "神冈区",
+ "830419": "潭子区",
+ "830420": "大雅区",
+ "830421": "新小区",
+ "830422": "石冈区",
+ "830423": "外埔区",
+ "830424": "大安区",
+ "830425": "乌日区",
+ "830426": "大肚区",
+ "830427": "龙井区",
+ "830428": "雾峰区",
+ "830429": "和平区"
+ }
+ },
+ "830500": {
+ code: "830500",
+ name: "台南市",
+ districts: {
+ "830501": "中西区",
+ "830502": "东区",
+ "830503": "南区",
+ "830504": "北区",
+ "830505": "安平区",
+ "830506": "安南区",
+ "830507": "永康区",
+ "830508": "归仁区",
+ "830509": "新化区",
+ "830510": "左镇区",
+ "830511": "玉井区",
+ "830512": "楠西区",
+ "830513": "南化区",
+ "830514": "仁德区",
+ "830515": "关庙区",
+ "830516": "龙崎区",
+ "830517": "官田区",
+ "830518": "麻豆区",
+ "830519": "佳里区",
+ "830520": "西港区",
+ "830521": "七股区",
+ "830522": "将军区",
+ "830523": "学甲区",
+ "830524": "北门区",
+ "830525": "新营区",
+ "830526": "后壁区",
+ "830527": "白河区",
+ "830528": "东山区",
+ "830529": "六甲区",
+ "830530": "下营区",
+ "830531": "柳营区",
+ "830532": "盐水区",
+ "830533": "善化区",
+ "830534": "大内区",
+ "830535": "山上区",
+ "830536": "新市区",
+ "830537": "安定区"
+ }
+ },
+ "830600": {
+ code: "830600",
+ name: "高雄市",
+ districts: {
+ "830601": "楠梓区",
+ "830602": "左营区",
+ "830603": "鼓山区",
+ "830604": "三民区",
+ "830605": "盐埕区",
+ "830606": "前金区",
+ "830607": "新兴区",
+ "830608": "苓雅区",
+ "830609": "前镇区",
+ "830610": "旗津区",
+ "830611": "小港区",
+ "830612": "凤山区",
+ "830613": "大寮区",
+ "830614": "鸟松区",
+ "830615": "林园区",
+ "830616": "仁武区",
+ "830617": "大树区",
+ "830618": "大社区",
+ "830619": "冈山区",
+ "830620": "路竹区",
+ "830621": "桥头区",
+ "830622": "梓官区",
+ "830623": "弥陀区",
+ "830624": "永安区",
+ "830625": "燕巢区",
+ "830626": "阿莲区",
+ "830627": "茄萣区",
+ "830628": "湖内区",
+ "830629": "旗山区",
+ "830630": "美浓区",
+ "830631": "内门区",
+ "830632": "杉林区",
+ "830633": "甲仙区",
+ "830634": "六龟区",
+ "830635": "茂林区",
+ "830636": "桃源区",
+ "830637": "那玛夏区"
+ }
+ },
+ "830700": {
+ code: "830700",
+ name: "基隆市",
+ districts: {
+ "830701": "中正区",
+ "830702": "七堵区",
+ "830703": "暖暖区",
+ "830704": "仁爱区",
+ "830705": "中山区",
+ "830706": "安乐区",
+ "830707": "信义区"
+ }
+ },
+ "830800": {
+ code: "830800",
+ name: "新竹市",
+ districts: {
+ "830801": "东区",
+ "830802": "北区",
+ "830803": "香山区"
+ }
+ },
+ "830900": {
+ code: "830900",
+ name: "嘉义市",
+ districts: {
+ "830901": "东区",
+ "830902": "西区"
+ }
+ }
+ }
+}
+};
+
+var REGION = ['东北', '华北', '华东', '华中', '华南', '西南', '西北'];
+var areas = location$1;
+// 随机生成一个大区。
+var region = function () {
+ return pick(REGION);
+};
+// 随机生成一个(中国)省(或直辖市、自治区、特别行政区)。
+var province = function () {
+ return pickMap(areas).name;
+};
+/**
+ * 随机生成一个(中国)市。
+ * @param prefix 是否有省前缀
+ */
+var city = function (prefix) {
+ if (prefix === void 0) { prefix = false; }
+ var province = pickMap(areas);
+ var city = pickMap(province.cities);
+ return prefix ? [province.name, city.name].join(' ') : city.name;
+};
+/**
+ * 随机生成一个(中国)县。
+ * @param prefix 是否有省/市前缀
+ */
+var county = function (prefix) {
+ if (prefix === void 0) { prefix = false; }
+ // 直筒子市,无区县
+ // https://baike.baidu.com/item/%E7%9B%B4%E7%AD%92%E5%AD%90%E5%B8%82
+ var specialCity = ['460400', '441900', '442000', '620200'];
+ var province = pickMap(areas);
+ var city = pickMap(province.cities);
+ /* istanbul ignore next */
+ if (specialCity.indexOf(city.code) !== -1) {
+ return county(prefix);
+ }
+ var district = pickMap(city.districts) || '-';
+ return prefix ? [province.name, city.name, district].join(' ') : district;
+};
+/**
+ * 随机生成一个邮政编码(默认6位数字)。
+ * @param len
+ */
+var zip = function (len) {
+ if (len === void 0) { len = 6; }
+ var zip = '';
+ for (var i = 0; i < len; i++) {
+ zip += natural(0, 9);
+ }
+ return zip;
+};
+
+var address = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ region: region,
+ province: province,
+ city: city,
+ county: county,
+ zip: zip
+});
+
+// Miscellaneous
+var areas$1 = location$1;
+// 随机生成一个 guid
+// http://www.broofa.com/2008/09/javascript-uuid-function/
+var guid = function () {
+ var pool = 'abcdefABCDEF1234567890';
+ return string(pool, 8) + '-' + string(pool, 4) + '-' + string(pool, 4) + '-' + string(pool, 4) + '-' + string(pool, 12);
+};
+var uuid = guid;
+// 随机生成一个 18 位身份证。
+// http://baike.baidu.com/view/1697.htm#4
+// [身份证](http://baike.baidu.com/view/1697.htm#4)
+// 地址码 6 + 出生日期码 8 + 顺序码 3 + 校验码 1
+// [《中华人民共和国行政区划代码》国家标准(GB/T2260)](http://zhidao.baidu.com/question/1954561.html)
+var id = function () {
+ var _id;
+ var _sum = 0;
+ var rank = ['7', '9', '10', '5', '8', '4', '2', '1', '6', '3', '7', '9', '10', '5', '8', '4', '2'];
+ var last = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];
+ // 直筒子市,无区县
+ // https://baike.baidu.com/item/%E7%9B%B4%E7%AD%92%E5%AD%90%E5%B8%82
+ var specialCity = ['460400', '441900', '442000', '620200'];
+ var province = pickMap(areas$1);
+ var city = pickMap(province.cities);
+ /* istanbul ignore next */
+ if (specialCity.indexOf(city.code) !== -1) {
+ return id();
+ }
+ var districts = city.districts;
+ var district = pick(keys(districts));
+ _id = district + date('yyyyMMdd') + string('number', 3);
+ for (var i = 0; i < _id.length; i++) {
+ _sum += _id[i] * Number(rank[i]);
+ }
+ _id += last[_sum % 11];
+ return _id;
+};
+// 生成一个全局的自增整数。
+// 类似自增主键(auto increment primary key)。
+var key = 0;
+var increment = function (step) {
+ return key += (Number(step) || 1); // step?
+};
+var inc = increment;
+/**
+ * 随机生成一个版本号
+ * @param depth 版本号的层级,默认为3
+ */
+var version = function (depth) {
+ if (depth === void 0) { depth = 3; }
+ var numbers = [];
+ for (var i = 0; i < depth; i++) {
+ numbers.push(natural(0, 10));
+ }
+ return numbers.join('.');
+};
+// 随机生成一个中国手机号
+var phone = function () {
+ var segments = [
+ // 移动号段
+ '134', '135', '136', '137', '138', '139', '147', '150', '151', '152', '157', '158', '159', '165', '172', '178', '182', '183', '184', '187', '188',
+ // 联通号段
+ '130', '131', '132', '145', '155', '156', '171', '175', '176', '185', '186',
+ // 电信号段
+ '133', '149', '153', '173', '174', '177', '180', '181', '189', '191'
+ ];
+ return pick(segments) + string('number', 8);
+};
+
+var misc = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ guid: guid,
+ uuid: uuid,
+ id: id,
+ increment: increment,
+ inc: inc,
+ version: version,
+ phone: phone
+});
+
+var random = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ extend: extendFunc }, basic), date$1), image$1), color$1), text), name$1), web), address), helper), misc);
+function extendFunc(source) {
+ if (isObject(source)) {
+ for (var key in source) {
+ random[key] = source[key];
+ }
+ }
+}
+
+// 解析数据模板(属性名部分)。
+var parse = function (name) {
+ name = name === undefined ? '' : (name + '');
+ var parameters = name.match(constant.RE_KEY);
+ // name|min-max, name|count
+ var range = parameters && parameters[3] && parameters[3].match(constant.RE_RANGE);
+ var min = range && range[1] && parseInt(range[1], 10);
+ var max = range && range[2] && parseInt(range[2], 10);
+ // 如果是 min-max, 返回 min-max 之间的一个数
+ // 如果是 count, 返回 count
+ var count = range
+ ? range[2]
+ ? random.integer(Number(min), Number(max))
+ : parseInt(range[1], 10)
+ : undefined;
+ var decimal = parameters && parameters[4] && parameters[4].match(constant.RE_RANGE);
+ var dmin = decimal && decimal[1] && parseInt(decimal[1], 10);
+ var dmax = decimal && decimal[2] && parseInt(decimal[2], 10);
+ // int || dmin-dmax
+ var dcount = decimal
+ ? decimal[2]
+ ? random.integer(Number(dmin), Number(dmax))
+ : parseInt(decimal[1], 10)
+ : undefined;
+ var result = {
+ // 1 name, 2 inc, 3 range, 4 decimal
+ parameters: parameters,
+ // 1 min, 2 max
+ range: range,
+ min: min,
+ max: max,
+ count: count,
+ decimal: decimal,
+ dmin: dmin,
+ dmax: dmax,
+ dcount: dcount
+ };
+ for (var r in result) {
+ if (result[r] != undefined) {
+ return result;
+ }
+ }
+ return {};
+};
+
+var number = Number;
+var boolean$1 = Boolean;
+var string$1 = String;
+var transfer = {
+ number: number,
+ boolean: boolean$1,
+ string: string$1,
+ extend: extend
+};
+function extend(source) {
+ if (isObject(source)) {
+ for (var key in source) {
+ transfer[key] = source[key];
+ }
+ }
+}
+
+// ## RegExp Handler
+// ASCII printable code chart
+var LOWER = ascii(97, 122);
+var UPPER = ascii(65, 90);
+var NUMBER = ascii(48, 57);
+var OTHER = ascii(32, 47) + ascii(58, 64) + ascii(91, 96) + ascii(123, 126); // 排除 95 _ ascii(91, 94) + ascii(96, 96)
+var PRINTABLE = ascii(32, 126);
+var SPACE = ' \f\n\r\t\v\u00A0\u2028\u2029';
+var CHARACTER_CLASSES = {
+ '\\w': LOWER + UPPER + NUMBER + '_',
+ '\\W': OTHER.replace('_', ''), '\\s': SPACE,
+ '\\S': function () {
+ var result = PRINTABLE;
+ for (var i = 0; i < SPACE.length; i++) {
+ result = result.replace(SPACE[i], '');
+ }
+ return result;
+ }(),
+ '\\d': NUMBER, '\\D': LOWER + UPPER + OTHER
+};
+function ascii(from, to) {
+ var result = '';
+ for (var i = from; i <= to; i++) {
+ result += String.fromCharCode(i);
+ }
+ return result;
+}
+var handler = {
+ // var ast = RegExpParser.parse(regexp.source)
+ gen: function (node, result, cache) {
+ cache = cache || {
+ guid: 1
+ };
+ return handler[node.type] ? handler[node.type](node, result, cache) : handler.token(node);
+ },
+ token: /* istanbul ignore next */ function (node) {
+ switch (node.type) {
+ case 'start':
+ case 'end':
+ return '';
+ case 'any-character':
+ return random.character();
+ case 'backspace':
+ return '';
+ case 'word-boundary': // TODO
+ return '';
+ case 'non-word-boundary': // TODO
+ break;
+ case 'digit':
+ return random.pick(NUMBER.split(''));
+ case 'non-digit':
+ return random.pick((LOWER + UPPER + OTHER).split(''));
+ case 'form-feed':
+ break;
+ case 'line-feed':
+ return node.body || node.text;
+ case 'carriage-return':
+ break;
+ case 'white-space':
+ return random.pick(SPACE.split(''));
+ case 'non-white-space':
+ return random.pick((LOWER + UPPER + NUMBER).split(''));
+ case 'tab':
+ break;
+ case 'vertical-tab':
+ break;
+ case 'word': // \w [a-zA-Z0-9]
+ return random.pick((LOWER + UPPER + NUMBER).split(''));
+ case 'non-word': // \W [^a-zA-Z0-9]
+ return random.pick(OTHER.replace('_', '').split(''));
+ }
+ return node.body || node.text;
+ },
+ // {
+ // type: 'alternate',
+ // offset: 0,
+ // text: '',
+ // left: {
+ // boyd: []
+ // },
+ // right: {
+ // boyd: []
+ // }
+ // }
+ alternate: function (node, result, cache) {
+ // node.left/right {}
+ return handler.gen(random.boolean() ? node.left : node.right, result, cache);
+ },
+ // {
+ // type: 'match',
+ // offset: 0,
+ // text: '',
+ // body: []
+ // }
+ match: function (node, result, cache) {
+ result = '';
+ // node.body []
+ for (var i = 0; i < node.body.length; i++) {
+ result += handler.gen(node.body[i], result, cache);
+ }
+ return result;
+ },
+ // ()
+ 'capture-group': function (node, result, cache) {
+ // node.body {}
+ result = handler.gen(node.body, result, cache);
+ cache[cache.guid++] = result;
+ return result;
+ },
+ // (?:...)
+ 'non-capture-group': function (node, result, cache) {
+ // node.body {}
+ return handler.gen(node.body, result, cache);
+ },
+ // (?=p)
+ 'positive-lookahead': function (node, result, cache) {
+ // node.body
+ return handler.gen(node.body, result, cache);
+ },
+ // (?!p)
+ 'negative-lookahead': function () {
+ // node.body
+ return '';
+ },
+ // {
+ // type: 'quantified',
+ // offset: 3,
+ // text: 'c*',
+ // body: {
+ // type: 'literal',
+ // offset: 3,
+ // text: 'c',
+ // body: 'c',
+ // escaped: false
+ // },
+ // quantifier: {
+ // type: 'quantifier',
+ // offset: 4,
+ // text: '*',
+ // min: 0,
+ // max: Infinity,
+ // greedy: true
+ // }
+ // }
+ quantified: function (node, result, cache) {
+ result = '';
+ // node.quantifier {}
+ var count = handler.quantifier(node.quantifier);
+ // node.body {}
+ for (var i = 0; i < count; i++) {
+ result += handler.gen(node.body, result, cache);
+ }
+ return result;
+ },
+ // quantifier: {
+ // type: 'quantifier',
+ // offset: 4,
+ // text: '*',
+ // min: 0,
+ // max: Infinity,
+ // greedy: true
+ // }
+ quantifier: function (node) {
+ var min = Math.max(node.min, 0);
+ var max = isFinite(node.max) ? node.max : min + random.integer(3, 7);
+ return random.integer(min, max);
+ },
+ charset: function (node, result, cache) {
+ // node.invert
+ if (node.invert) {
+ return handler['invert-charset'](node, result, cache);
+ }
+ // node.body []
+ var literal = random.pick(node.body);
+ return handler.gen(literal, result, cache);
+ },
+ 'invert-charset': function (node, result, cache) {
+ var pool = PRINTABLE;
+ var item;
+ for (var i = 0; i < node.body.length; i++) {
+ item = node.body[i];
+ switch (item.type) {
+ case 'literal':
+ pool = pool.replace(item.body, '');
+ break;
+ case 'range':
+ var min = handler.gen(item.start, result, cache).charCodeAt();
+ var max = handler.gen(item.end, result, cache).charCodeAt();
+ for (var ii = min; ii <= max; ii++) {
+ pool = pool.replace(String.fromCharCode(ii), '');
+ }
+ /* falls through */
+ default:
+ var characters = CHARACTER_CLASSES[item.text];
+ if (characters) {
+ for (var iii = 0; iii <= characters.length; iii++) {
+ pool = pool.replace(characters[iii], '');
+ }
+ }
+ }
+ }
+ return random.pick(pool.split(''));
+ },
+ range: function (node, result, cache) {
+ // node.start, node.end
+ var min = handler.gen(node.start, result, cache).charCodeAt();
+ var max = handler.gen(node.end, result, cache).charCodeAt();
+ return String.fromCharCode(random.integer(min, max));
+ },
+ literal: function (node) {
+ return node.escaped ? node.body : node.text;
+ },
+ // Unicode \u
+ unicode: function (node) {
+ return String.fromCharCode(parseInt(node.code, 16));
+ },
+ // 十六进制 \xFF
+ hex: function (node) {
+ return String.fromCharCode(parseInt(node.code, 16));
+ },
+ octal: function (node) {
+ return String.fromCharCode(parseInt(node.code, 8));
+ },
+ // 反向引用
+ 'back-reference': function (node, result, cache) {
+ return cache[node.code] || '';
+ },
+ // http://en.wikipedia.org/wiki/C0_and_C1_control_codes
+ CONTROL_CHARACTER_MAP: function () {
+ var CONTROL_CHARACTER = '@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _'.split(' ');
+ var CONTROL_CHARACTER_UNICODE = '\u0000 \u0001 \u0002 \u0003 \u0004 \u0005 \u0006 \u0007 \u0008 \u0009 \u000A \u000B \u000C \u000D \u000E \u000F \u0010 \u0011 \u0012 \u0013 \u0014 \u0015 \u0016 \u0017 \u0018 \u0019 \u001A \u001B \u001C \u001D \u001E \u001F'.split(' ');
+ var map = {};
+ for (var i = 0; i < CONTROL_CHARACTER.length; i++) {
+ map[CONTROL_CHARACTER[i]] = CONTROL_CHARACTER_UNICODE[i];
+ }
+ return map;
+ }(),
+ 'control-character': function (node) {
+ return this.CONTROL_CHARACTER_MAP[node.code];
+ }
+};
+
+// https://github.com/nuysoft/regexp
+// forked from https://github.com/ForbesLindesay/regexp
+function Token (n) {
+ this.type = n, this.offset = Token.offset(), this.text = Token.text();
+}
+
+function Alternate (n, l) {
+ Token.call(this, 'alternate'), this.left = n, this.right = l;
+}
+
+function Match (n) {
+ Token.call(this, 'match'), this.body = n.filter(Boolean);
+}
+
+function Group (n, l) {
+ Token.call(this, n), this.body = l;
+}
+
+function CaptureGroup (n) {
+ Group.call(this, 'capture-group'), this.index = cgs[this.offset] || (cgs[this.offset] = index++),
+ this.body = n;
+}
+
+function Quantified (n, l) {
+ Token.call(this, 'quantified'), this.body = n, this.quantifier = l;
+}
+
+function Quantifier (n, l) {
+ Token.call(this, 'quantifier'), this.min = n, this.max = l, this.greedy = !0;
+}
+
+function CharSet (n, l) {
+ Token.call(this, 'charset'), this.invert = n, this.body = l;
+}
+
+function CharacterRange (n, l) {
+ Token.call(this, 'range'), this.start = n, this.end = l;
+}
+
+function Literal (n) {
+ Token.call(this, 'literal'), this.body = n, this.escaped = this.body != this.text;
+}
+
+function Unicode (n) {
+ Token.call(this, 'unicode'), this.code = n.toUpperCase();
+}
+
+function Hex (n) {
+ Token.call(this, 'hex'), this.code = n.toUpperCase();
+}
+
+function Octal (n) {
+ Token.call(this, 'octal'), this.code = n.toUpperCase();
+}
+
+function BackReference (n) {
+ Token.call(this, 'back-reference'), this.code = n.toUpperCase();
+}
+
+function ControlCharacter (n) {
+ Token.call(this, 'control-character'), this.code = n.toUpperCase();
+}
+
+/* istanbul ignore next */
+var parser = function () {
+ function n (n, l) {
+ function u () {
+ this.constructor = n;
+ }
+
+ u.prototype = l.prototype, n.prototype = new u();
+ }
+
+ function l (n, l, u, t, r) {
+ function e (n, l) {
+ function u (n) {
+ function l (n) {
+ return n.charCodeAt(0).toString(16).toUpperCase()
+ }
+
+ return n.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\x08/g, '\\b').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\f/g, '\\f').replace(/\r/g, '\\r').replace(/[\x00-\x07\x0B\x0E\x0F]/g, function (n) {
+ return '\\x0' + l(n)
+ }).replace(/[\x10-\x1F\x80-\xFF]/g, function (n) {
+ return '\\x' + l(n)
+ }).replace(/[\u0180-\u0FFF]/g, function (n) {
+ return '\\u0' + l(n)
+ }).replace(/[\u1080-\uFFFF]/g, function (n) {
+ return '\\u' + l(n)
+ })
+ }
+
+ var t, r;
+ switch (n.length) {
+ case 0:
+ t = 'end of input';
+ break
+
+ case 1:
+ t = n[0];
+ break
+
+ default:
+ t = n.slice(0, -1).join(', ') + ' or ' + n[n.length - 1];
+ }
+ return r = l ? '"' + u(l) + '"' : 'end of input', 'Expected ' + t + ' but ' + r + ' found.'
+ }
+
+ this.expected = n, this.found = l, this.offset = u, this.line = t, this.column = r,
+ this.name = 'SyntaxError', this.message = e(n, l);
+ }
+
+ function u (n) {
+ function u () {
+ return n.substring(Lt, qt)
+ }
+
+ function t () {
+ return Lt
+ }
+
+ function r (l) {
+ function u (l, u, t) {
+ var r, e;
+ for (r = u; t > r; r++) e = n.charAt(r), '\n' === e ? (l.seenCR || l.line++, l.column = 1,
+ l.seenCR = !1) : '\r' === e || '\u2028' === e || '\u2029' === e ? (l.line++, l.column = 1,
+ l.seenCR = !0) : (l.column++, l.seenCR = !1);
+ }
+
+ return Mt !== l && (Mt > l && (Mt = 0, Dt = {
+ line: 1,
+ column: 1,
+ seenCR: !1
+ }), u(Dt, Mt, l), Mt = l), Dt
+ }
+
+ function e (n) {
+ Ht > qt || (qt > Ht && (Ht = qt, Ot = []), Ot.push(n));
+ }
+
+ function o (n) {
+ var l = 0;
+ for (n.sort(); l < n.length;) n[l - 1] === n[l] ? n.splice(l, 1) : l++;
+ }
+
+ function c () {
+ var l, u, t, r, o;
+ return l = qt, u = i(), null !== u ? (t = qt, 124 === n.charCodeAt(qt) ? (r = fl,
+ qt++) : (r = null, 0 === Wt && e(sl)), null !== r ? (o = c(), null !== o ? (r = [r, o],
+ t = r) : (qt = t, t = il)) : (qt = t, t = il), null === t && (t = al), null !== t ? (Lt = l,
+ u = hl(u, t), null === u ? (qt = l, l = u) : l = u) : (qt = l, l = il)) : (qt = l,
+ l = il), l
+ }
+
+ function i () {
+ var n, l, u, t, r;
+ if (n = qt, l = f(), null === l && (l = al), null !== l) if (u = qt, Wt++, t = d(),
+ Wt--, null === t ? u = al : (qt = u, u = il), null !== u) {
+ for (t = [], r = h(), null === r && (r = a()); null !== r;) t.push(r), r = h(),
+ null === r && (r = a());
+ null !== t ? (r = s(), null === r && (r = al), null !== r ? (Lt = n, l = dl(l, t, r),
+ null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il);
+ } else qt = n, n = il; else qt = n, n = il;
+ return n
+ }
+
+ function a () {
+ var n;
+ return n = x(), null === n && (n = Q(), null === n && (n = B())), n
+ }
+
+ function f () {
+ var l, u;
+ return l = qt, 94 === n.charCodeAt(qt) ? (u = pl, qt++) : (u = null, 0 === Wt && e(vl)),
+ null !== u && (Lt = l, u = wl()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function s () {
+ var l, u;
+ return l = qt, 36 === n.charCodeAt(qt) ? (u = Al, qt++) : (u = null, 0 === Wt && e(Cl)),
+ null !== u && (Lt = l, u = gl()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function h () {
+ var n, l, u;
+ return n = qt, l = a(), null !== l ? (u = d(), null !== u ? (Lt = n, l = bl(l, u),
+ null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il), n
+ }
+
+ function d () {
+ var n, l, u;
+ return Wt++, n = qt, l = p(), null !== l ? (u = k(), null === u && (u = al), null !== u ? (Lt = n,
+ l = Tl(l, u), null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n,
+ n = il), Wt--, null === n && (l = null, 0 === Wt && e(kl)), n
+ }
+
+ function p () {
+ var n;
+ return n = v(), null === n && (n = w(), null === n && (n = A(), null === n && (n = C(),
+ null === n && (n = g(), null === n && (n = b()))))), n
+ }
+
+ function v () {
+ var l, u, t, r, o, c;
+ return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
+ null !== u ? (t = T(), null !== t ? (44 === n.charCodeAt(qt) ? (r = ml, qt++) : (r = null,
+ 0 === Wt && e(Rl)), null !== r ? (o = T(), null !== o ? (125 === n.charCodeAt(qt) ? (c = Fl,
+ qt++) : (c = null, 0 === Wt && e(Ql)), null !== c ? (Lt = l, u = Sl(t, o), null === u ? (qt = l,
+ l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function w () {
+ var l, u, t, r;
+ return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
+ null !== u ? (t = T(), null !== t ? (n.substr(qt, 2) === Ul ? (r = Ul, qt += 2) : (r = null,
+ 0 === Wt && e(El)), null !== r ? (Lt = l, u = Gl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il)) : (qt = l, l = il), l
+ }
+
+ function A () {
+ var l, u, t, r;
+ return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
+ null !== u ? (t = T(), null !== t ? (125 === n.charCodeAt(qt) ? (r = Fl, qt++) : (r = null,
+ 0 === Wt && e(Ql)), null !== r ? (Lt = l, u = Bl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il)) : (qt = l, l = il), l
+ }
+
+ function C () {
+ var l, u;
+ return l = qt, 43 === n.charCodeAt(qt) ? (u = jl, qt++) : (u = null, 0 === Wt && e($l)),
+ null !== u && (Lt = l, u = ql()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function g () {
+ var l, u;
+ return l = qt, 42 === n.charCodeAt(qt) ? (u = Ll, qt++) : (u = null, 0 === Wt && e(Ml)),
+ null !== u && (Lt = l, u = Dl()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function b () {
+ var l, u;
+ return l = qt, 63 === n.charCodeAt(qt) ? (u = Hl, qt++) : (u = null, 0 === Wt && e(Ol)),
+ null !== u && (Lt = l, u = Wl()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function k () {
+ var l;
+ return 63 === n.charCodeAt(qt) ? (l = Hl, qt++) : (l = null, 0 === Wt && e(Ol)),
+ l
+ }
+
+ function T () {
+ var l, u, t;
+ if (l = qt, u = [], zl.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null,
+ 0 === Wt && e(Il)), null !== t) for (; null !== t;) u.push(t), zl.test(n.charAt(qt)) ? (t = n.charAt(qt),
+ qt++) : (t = null, 0 === Wt && e(Il)); else u = il;
+ return null !== u && (Lt = l, u = Jl(u)), null === u ? (qt = l, l = u) : l = u,
+ l
+ }
+
+ function x () {
+ var l, u, t, r;
+ return l = qt, 40 === n.charCodeAt(qt) ? (u = Kl, qt++) : (u = null, 0 === Wt && e(Nl)),
+ null !== u ? (t = R(), null === t && (t = F(), null === t && (t = m(), null === t && (t = y()))),
+ null !== t ? (41 === n.charCodeAt(qt) ? (r = Pl, qt++) : (r = null, 0 === Wt && e(Vl)),
+ null !== r ? (Lt = l, u = Xl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il)) : (qt = l, l = il), l
+ }
+
+ function y () {
+ var n, l;
+ return n = qt, l = c(), null !== l && (Lt = n, l = Yl(l)), null === l ? (qt = n,
+ n = l) : n = l, n
+ }
+
+ function m () {
+ var l, u, t;
+ return l = qt, n.substr(qt, 2) === Zl ? (u = Zl, qt += 2) : (u = null, 0 === Wt && e(_l)),
+ null !== u ? (t = c(), null !== t ? (Lt = l, u = nu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function R () {
+ var l, u, t;
+ return l = qt, n.substr(qt, 2) === lu ? (u = lu, qt += 2) : (u = null, 0 === Wt && e(uu)),
+ null !== u ? (t = c(), null !== t ? (Lt = l, u = tu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function F () {
+ var l, u, t;
+ return l = qt, n.substr(qt, 2) === ru ? (u = ru, qt += 2) : (u = null, 0 === Wt && e(eu)),
+ null !== u ? (t = c(), null !== t ? (Lt = l, u = ou(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function Q () {
+ var l, u, t, r, o;
+ if (Wt++, l = qt, 91 === n.charCodeAt(qt) ? (u = iu, qt++) : (u = null, 0 === Wt && e(au)),
+ null !== u) if (94 === n.charCodeAt(qt) ? (t = pl, qt++) : (t = null, 0 === Wt && e(vl)),
+ null === t && (t = al), null !== t) {
+ for (r = [], o = S(), null === o && (o = U()); null !== o;) r.push(o), o = S(),
+ null === o && (o = U());
+ null !== r ? (93 === n.charCodeAt(qt) ? (o = fu, qt++) : (o = null, 0 === Wt && e(su)),
+ null !== o ? (Lt = l, u = hu(t, r), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il);
+ } else qt = l, l = il; else qt = l, l = il;
+ return Wt--, null === l && (u = null, 0 === Wt && e(cu)), l
+ }
+
+ function S () {
+ var l, u, t, r;
+ return Wt++, l = qt, u = U(), null !== u ? (45 === n.charCodeAt(qt) ? (t = pu, qt++) : (t = null,
+ 0 === Wt && e(vu)), null !== t ? (r = U(), null !== r ? (Lt = l, u = wu(u, r), null === u ? (qt = l,
+ l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il), Wt--,
+ null === l && (u = null, 0 === Wt && e(du)), l
+ }
+
+ function U () {
+ var n;
+ return Wt++, n = G(), null === n && (n = E()), Wt--, null === n && (0 === Wt && e(Au)),
+ n
+ }
+
+ function E () {
+ var l, u;
+ return l = qt, Cu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null, 0 === Wt && e(gu)),
+ null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function G () {
+ var n;
+ return n = L(), null === n && (n = Y(), null === n && (n = H(), null === n && (n = O(),
+ null === n && (n = W(), null === n && (n = z(), null === n && (n = I(), null === n && (n = J(),
+ null === n && (n = K(), null === n && (n = N(), null === n && (n = P(), null === n && (n = V(),
+ null === n && (n = X(), null === n && (n = _(), null === n && (n = nl(), null === n && (n = ll(),
+ null === n && (n = ul(), null === n && (n = tl()))))))))))))))))), n
+ }
+
+ function B () {
+ var n;
+ return n = j(), null === n && (n = q(), null === n && (n = $())), n
+ }
+
+ function j () {
+ var l, u;
+ return l = qt, 46 === n.charCodeAt(qt) ? (u = ku, qt++) : (u = null, 0 === Wt && e(Tu)),
+ null !== u && (Lt = l, u = xu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function $ () {
+ var l, u;
+ return Wt++, l = qt, mu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null,
+ 0 === Wt && e(Ru)), null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u,
+ Wt--, null === l && (u = null, 0 === Wt && e(yu)), l
+ }
+
+ function q () {
+ var n;
+ return n = M(), null === n && (n = D(), null === n && (n = Y(), null === n && (n = H(),
+ null === n && (n = O(), null === n && (n = W(), null === n && (n = z(), null === n && (n = I(),
+ null === n && (n = J(), null === n && (n = K(), null === n && (n = N(), null === n && (n = P(),
+ null === n && (n = V(), null === n && (n = X(), null === n && (n = Z(), null === n && (n = _(),
+ null === n && (n = nl(), null === n && (n = ll(), null === n && (n = ul(), null === n && (n = tl()))))))))))))))))))),
+ n
+ }
+
+ function L () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
+ null !== u && (Lt = l, u = Su()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function M () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
+ null !== u && (Lt = l, u = Uu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function D () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Eu ? (u = Eu, qt += 2) : (u = null, 0 === Wt && e(Gu)),
+ null !== u && (Lt = l, u = Bu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function H () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === ju ? (u = ju, qt += 2) : (u = null, 0 === Wt && e($u)),
+ null !== u && (Lt = l, u = qu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function O () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Lu ? (u = Lu, qt += 2) : (u = null, 0 === Wt && e(Mu)),
+ null !== u && (Lt = l, u = Du()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function W () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Hu ? (u = Hu, qt += 2) : (u = null, 0 === Wt && e(Ou)),
+ null !== u && (Lt = l, u = Wu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function z () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === zu ? (u = zu, qt += 2) : (u = null, 0 === Wt && e(Iu)),
+ null !== u && (Lt = l, u = Ju()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function I () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Ku ? (u = Ku, qt += 2) : (u = null, 0 === Wt && e(Nu)),
+ null !== u && (Lt = l, u = Pu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function J () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Vu ? (u = Vu, qt += 2) : (u = null, 0 === Wt && e(Xu)),
+ null !== u && (Lt = l, u = Yu()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function K () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Zu ? (u = Zu, qt += 2) : (u = null, 0 === Wt && e(_u)),
+ null !== u && (Lt = l, u = nt()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function N () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === lt ? (u = lt, qt += 2) : (u = null, 0 === Wt && e(ut)),
+ null !== u && (Lt = l, u = tt()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function P () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === rt ? (u = rt, qt += 2) : (u = null, 0 === Wt && e(et)),
+ null !== u && (Lt = l, u = ot()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function V () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === ct ? (u = ct, qt += 2) : (u = null, 0 === Wt && e(it)),
+ null !== u && (Lt = l, u = at()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function X () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === ft ? (u = ft, qt += 2) : (u = null, 0 === Wt && e(st)),
+ null !== u && (Lt = l, u = ht()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function Y () {
+ var l, u, t;
+ return l = qt, n.substr(qt, 2) === dt ? (u = dt, qt += 2) : (u = null, 0 === Wt && e(pt)),
+ null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
+ null !== t ? (Lt = l, u = wt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function Z () {
+ var l, u, t;
+ return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
+ null !== u ? (gt.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(bt)),
+ null !== t ? (Lt = l, u = kt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+
+ function _ () {
+ var l, u, t, r;
+ if (l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
+ null !== u) {
+ if (t = [], yt.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(mt)),
+ null !== r) for (; null !== r;) t.push(r), yt.test(n.charAt(qt)) ? (r = n.charAt(qt),
+ qt++) : (r = null, 0 === Wt && e(mt)); else t = il;
+ null !== t ? (Lt = l, u = Rt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il);
+ } else qt = l, l = il;
+ return l
+ }
+
+ function nl () {
+ var l, u, t, r;
+ if (l = qt, n.substr(qt, 2) === Ft ? (u = Ft, qt += 2) : (u = null, 0 === Wt && e(Qt)),
+ null !== u) {
+ if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
+ null !== r) for (; null !== r;) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
+ qt++) : (r = null, 0 === Wt && e(Ut)); else t = il;
+ null !== t ? (Lt = l, u = Et(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il);
+ } else qt = l, l = il;
+ return l
+ }
+
+ function ll () {
+ var l, u, t, r;
+ if (l = qt, n.substr(qt, 2) === Gt ? (u = Gt, qt += 2) : (u = null, 0 === Wt && e(Bt)),
+ null !== u) {
+ if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
+ null !== r) for (; null !== r;) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
+ qt++) : (r = null, 0 === Wt && e(Ut)); else t = il;
+ null !== t ? (Lt = l, u = jt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il);
+ } else qt = l, l = il;
+ return l
+ }
+
+ function ul () {
+ var l, u;
+ return l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
+ null !== u && (Lt = l, u = $t()), null === u ? (qt = l, l = u) : l = u, l
+ }
+
+ function tl () {
+ var l, u, t;
+ return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
+ null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
+ null !== t ? (Lt = l, u = bu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
+ l = il)) : (qt = l, l = il), l
+ }
+ var rl, el = arguments.length > 1 ? arguments[1] : {}, ol = {
+ regexp: c
+ }, cl = c, il = null, al = '', fl = '|', sl = '"|"', hl = function (n, l) {
+ return l ? new Alternate(n, l[1]) : n
+ }, dl = function (n, l, u) {
+ return new Match([n].concat(l).concat([u]))
+ }, pl = '^', vl = '"^"', wl = function () {
+ return new Token('start')
+ }, Al = '$', Cl = '"$"', gl = function () {
+ return new Token('end')
+ }, bl = function (n, l) {
+ return new Quantified(n, l)
+ }, kl = 'Quantifier', Tl = function (n, l) {
+ return l && (n.greedy = !1), n
+ }, xl = '{', yl = '"{"', ml = ',', Rl = '","', Fl = '}', Ql = '"}"', Sl = function (n, l) {
+ return new Quantifier(n, l)
+ }, Ul = ',}', El = '",}"', Gl = function (n) {
+ return new Quantifier(n, 1 / 0)
+ }, Bl = function (n) {
+ return new Quantifier(n, n)
+ }, jl = '+', $l = '"+"', ql = function () {
+ return new Quantifier(1, 1 / 0)
+ }, Ll = '*', Ml = '"*"', Dl = function () {
+ return new Quantifier(0, 1 / 0)
+ }, Hl = '?', Ol = '"?"', Wl = function () {
+ return new Quantifier(0, 1)
+ }, zl = /^[0-9]/, Il = '[0-9]', Jl = function (n) {
+ return +n.join('')
+ }, Kl = '(', Nl = '"("', Pl = ')', Vl = '")"', Xl = function (n) {
+ return n
+ }, Yl = function (n) {
+ return new CaptureGroup(n)
+ }, Zl = '?:', _l = '"?:"', nu = function (n) {
+ return new Group('non-capture-group', n)
+ }, lu = '?=', uu = '"?="', tu = function (n) {
+ return new Group('positive-lookahead', n)
+ }, ru = '?!', eu = '"?!"', ou = function (n) {
+ return new Group('negative-lookahead', n)
+ }, cu = 'CharacterSet', iu = '[', au = '"["', fu = ']', su = '"]"', hu = function (n, l) {
+ return new CharSet(!!n, l)
+ }, du = 'CharacterRange', pu = '-', vu = '"-"', wu = function (n, l) {
+ return new CharacterRange(n, l)
+ }, Au = 'Character', Cu = /^[^\\\]]/, gu = '[^\\\\\\]]', bu = function (n) {
+ return new Literal(n)
+ }, ku = '.', Tu = '"."', xu = function () {
+ return new Token('any-character')
+ }, yu = 'Literal', mu = /^[^|\\\/.[()?+*$\^]/, Ru = '[^|\\\\\\/.[()?+*$\\^]', Fu = '\\b', Qu = '"\\\\b"',
+ Su = function () {
+ return new Token('backspace')
+ }, Uu = function () {
+ return new Token('word-boundary')
+ }, Eu = '\\B', Gu = '"\\\\B"', Bu = function () {
+ return new Token('non-word-boundary')
+ }, ju = '\\d', $u = '"\\\\d"', qu = function () {
+ return new Token('digit')
+ }, Lu = '\\D', Mu = '"\\\\D"', Du = function () {
+ return new Token('non-digit')
+ }, Hu = '\\f', Ou = '"\\\\f"', Wu = function () {
+ return new Token('form-feed')
+ }, zu = '\\n', Iu = '"\\\\n"', Ju = function () {
+ return new Token('line-feed')
+ }, Ku = '\\r', Nu = '"\\\\r"', Pu = function () {
+ return new Token('carriage-return')
+ }, Vu = '\\s', Xu = '"\\\\s"', Yu = function () {
+ return new Token('white-space')
+ }, Zu = '\\S', _u = '"\\\\S"', nt = function () {
+ return new Token('non-white-space')
+ }, lt = '\\t', ut = '"\\\\t"', tt = function () {
+ return new Token('tab')
+ }, rt = '\\v', et = '"\\\\v"', ot = function () {
+ return new Token('vertical-tab')
+ }, ct = '\\w', it = '"\\\\w"', at = function () {
+ return new Token('word')
+ }, ft = '\\W', st = '"\\\\W"', ht = function () {
+ return new Token('non-word')
+ }, dt = '\\c', pt = '"\\\\c"', vt = 'any character', wt = function (n) {
+ return new ControlCharacter(n)
+ }, At = '\\', Ct = '"\\\\"', gt = /^[1-9]/, bt = '[1-9]', kt = function (n) {
+ return new BackReference(n)
+ }, Tt = '\\0', xt = '"\\\\0"', yt = /^[0-7]/, mt = '[0-7]', Rt = function (n) {
+ return new Octal(n.join(''))
+ }, Ft = '\\x', Qt = '"\\\\x"', St = /^[0-9a-fA-F]/, Ut = '[0-9a-fA-F]', Et = function (n) {
+ return new Hex(n.join(''))
+ }, Gt = '\\u', Bt = '"\\\\u"', jt = function (n) {
+ return new Unicode(n.join(''))
+ }, $t = function () {
+ return new Token('null-character')
+ }, qt = 0, Lt = 0, Mt = 0, Dt = {
+ line: 1,
+ column: 1,
+ seenCR: !1
+ }, Ht = 0, Ot = [], Wt = 0;
+ if ('startRule' in el) {
+ if (!(el.startRule in ol)) throw new Error('Can\'t start parsing from rule "' + el.startRule + '".')
+ cl = ol[el.startRule];
+ }
+ if (Token.offset = t, Token.text = u, rl = cl(), null !== rl && qt === n.length) return rl
+ throw o(Ot), Lt = Math.max(qt, Ht), new l(Ot, Lt < n.length ? n.charAt(Lt) : null, Lt, r(Lt).line, r(Lt).column)
+ }
+
+ return n(l, Error), {
+ SyntaxError: l,
+ parse: u
+ }
+}(), index = 1, cgs = {};
+
+var RE = {
+ Parser: parser,
+ Handler: handler
+};
+
+// 处理数据模板。
+var handler$1 = {
+ // template 属性值(即数据模板)
+ // name 属性名
+ // context 数据上下文,生成后的数据
+ // templateContext 模板上下文,
+ //
+ // Handle.gen(template, name, options)
+ // context
+ // currentContext, templateCurrentContext,
+ // path, templatePath
+ // root, templateRoot
+ gen: function (template, name, context) {
+ name = name === undefined ? '' : name.toString();
+ context = context || {};
+ context = {
+ // 当前访问路径,只有属性名,不包括生成规则
+ path: context.path || [constant.GUID],
+ templatePath: context.templatePath || [constant.GUID++],
+ currentContext: context.currentContext,
+ templateCurrentContext: context.templateCurrentContext || template,
+ root: context.root || context.currentContext,
+ templateRoot: context.templateRoot || context.templateCurrentContext || template
+ };
+ var rule = parse(name);
+ var type$1 = type(template);
+ var data;
+ if (handler$1[type$1]) {
+ data = handler$1[type$1]({
+ type: type$1,
+ template: template,
+ name: name,
+ rule: rule,
+ context: context,
+ parsedName: name ? name.replace(constant.RE_KEY, '$1') : name,
+ });
+ if (!context.root) {
+ context.root = data;
+ }
+ return data;
+ }
+ return template;
+ },
+ array: function (options) {
+ var result = [];
+ // 'name|1': []
+ // 'name|count': []
+ // 'name|min-max': []
+ if (options.template.length === 0)
+ return result;
+ // 'arr': [{ 'email': '@EMAIL' }, { 'email': '@EMAIL' }]
+ if (!options.rule.parameters) {
+ for (var i = 0; i < options.template.length; i++) {
+ options.context.path.push(i);
+ options.context.templatePath.push(i);
+ result.push(handler$1.gen(options.template[i], i, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ }));
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ }
+ }
+ else {
+ // 'method|1': ['GET', 'POST', 'HEAD', 'DELETE']
+ if (options.rule.min === 1 && options.rule.max === undefined) {
+ // fix Mock.js#17
+ options.context.path.push(options.name);
+ options.context.templatePath.push(options.name);
+ result = random.pick(handler$1.gen(options.template, undefined, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ }));
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ }
+ else {
+ // 'data|+1': [{}, {}]
+ if (options.rule.parameters[2]) {
+ options.template.__order_index = options.template.__order_index || 0;
+ options.context.path.push(options.name);
+ options.context.templatePath.push(options.name);
+ result = handler$1.gen(options.template, undefined, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ })[options.template.__order_index % options.template.length];
+ options.template.__order_index += +options.rule.parameters[2];
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ }
+ else if (options.rule.count) {
+ // 'data|1-10': [{}]
+ for (var i = 0; i < options.rule.count; i++) {
+ // 'data|1-10': [{}, {}]
+ for (var ii = 0; ii < options.template.length; ii++) {
+ options.context.path.push(result.length);
+ options.context.templatePath.push(ii);
+ result.push(handler$1.gen(options.template[ii], result.length, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ }));
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ }
+ }
+ }
+ }
+ }
+ return result;
+ },
+ object: function (options) {
+ var result = {};
+ // 'obj|min-max': {}
+ if (options.rule.min != undefined) {
+ var keys$1 = keys(options.template);
+ keys$1 = random.shuffle(keys$1);
+ keys$1 = keys$1.slice(0, options.rule.count);
+ for (var i = 0; i < keys$1.length; i++) {
+ var key = keys$1[i];
+ var parsedKey = key.replace(constant.RE_KEY, '$1');
+ var transferTypeCtor = handler$1.getTransferTypeCtor(key);
+ if (transferTypeCtor) {
+ parsedKey = parsedKey.replace(constant.RE_TRANSFER_TYPE, '');
+ }
+ options.context.path.push(parsedKey);
+ options.context.templatePath.push(key);
+ var generatedValue = handler$1.gen(options.template[key], key, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ });
+ result[parsedKey] = transferTypeCtor(generatedValue);
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ }
+ }
+ else {
+ // 'obj': {}
+ var keys$1 = [];
+ var fnKeys = []; // Mock.js#25 改变了非函数属性的顺序,查找起来不方便
+ for (var key in options.template) {
+ var target = typeof options.template[key] === 'function' ? fnKeys : keys$1;
+ target.push(key);
+ }
+ keys$1 = keys$1.concat(fnKeys);
+ for (var i = 0; i < keys$1.length; i++) {
+ var key = keys$1[i];
+ var parsedKey = key.replace(constant.RE_KEY, '$1');
+ var transferTypeCtor = handler$1.getTransferTypeCtor(key);
+ if (transferTypeCtor) {
+ parsedKey = parsedKey.replace(constant.RE_TRANSFER_TYPE, '');
+ }
+ options.context.path.push(parsedKey);
+ options.context.templatePath.push(key);
+ var generatedValue = handler$1.gen(options.template[key], key, {
+ path: options.context.path,
+ templatePath: options.context.templatePath,
+ currentContext: result,
+ templateCurrentContext: options.template,
+ root: options.context.root || result,
+ templateRoot: options.context.templateRoot || options.template
+ });
+ result[parsedKey] = transferTypeCtor(generatedValue);
+ options.context.path.pop();
+ options.context.templatePath.pop();
+ // 'id|+1': 1
+ var inc = key.match(constant.RE_KEY);
+ if (inc && inc[2] && type(options.template[key]) === 'number') {
+ options.template[key] += parseInt(inc[2], 10);
+ }
+ }
+ }
+ return result;
+ },
+ number: function (options) {
+ var result;
+ var parts;
+ if (options.rule.decimal) {
+ // float
+ options.template += '';
+ parts = options.template.split('.');
+ // 'float1|.1-10': 10,
+ // 'float2|1-100.1-10': 1,
+ // 'float3|999.1-10': 1,
+ // 'float4|.3-10': 123.123,
+ parts[0] = options.rule.range ? options.rule.count : parts[0];
+ parts[1] = (parts[1] || '').slice(0, options.rule.dcount);
+ while (parts[1].length < options.rule.dcount) {
+ // 最后一位不能为 0:如果最后一位为 0,会被 JS 引擎忽略掉。
+ parts[1] += parts[1].length < options.rule.dcount - 1
+ ? random.character('number')
+ : random.character('123456789');
+ }
+ result = parseFloat(parts.join('.'));
+ }
+ else {
+ // integer
+ // 'grade1|1-100': 1,
+ result = options.rule.range && !options.rule.parameters[2] ? options.rule.count : options.template;
+ }
+ return result;
+ },
+ boolean: function (options) {
+ // 'prop|multiple': false, 当前值是相反值的概率倍数
+ // 'prop|probability-probability': false, 当前值与相反值的概率
+ var result = options.rule.parameters
+ ? random.bool(Number(options.rule.min), Number(options.rule.max), options.template)
+ : options.template;
+ return result;
+ },
+ string: function (options) {
+ var source = '';
+ var result = '';
+ var match;
+ var lastIndex = 0;
+ if (options.template.length) {
+ // 'foo': '★',
+ if (options.rule.count === undefined) {
+ source += options.template;
+ }
+ else {
+ // 'star|1-5': '★',
+ for (var i = 0; i < options.rule.count; i++) {
+ source += options.template;
+ }
+ }
+ // 'email|1-10': '@EMAIL, ',
+ constant.RE_PLACEHOLDER.exec('');
+ while (match = constant.RE_PLACEHOLDER.exec(source)) {
+ var index = match.index;
+ var input = match[0];
+ if (index >= lastIndex) {
+ // 遇到转义斜杠,不需要解析占位符
+ if (/^\\/.test(input)) {
+ result += source.slice(lastIndex, index) + input.slice(1);
+ lastIndex = index + input.length;
+ continue;
+ }
+ // console.log(input, options.context.currentContext, options.context.templateCurrentContext, options)
+ var replaced = handler$1.placeholder(input, options.context.currentContext, options.context.templateCurrentContext, options);
+ // 只有一个占位符,并且没有其他字符,例如:'name': '@EMAIL'
+ if (index === 0 && input.length === source.length) {
+ result = replaced;
+ }
+ else {
+ result += source.slice(lastIndex, index) + replaced;
+ }
+ lastIndex = index + input.length;
+ }
+ }
+ if (lastIndex < source.length) {
+ result += source.slice(lastIndex);
+ }
+ }
+ else {
+ // 'ASCII|1-10': '',
+ // 'ASCII': '',
+ result = options.rule.range ? random.string(options.rule.count) : options.template;
+ }
+ return result;
+ },
+ function: function (options) {
+ // ( context, options )
+ return options.template.call(options.context.currentContext, options);
+ },
+ regexp: function (options) {
+ var source = '';
+ // 'name': /regexp/,
+ if (options.rule.count === undefined) {
+ source += options.template.source; // regexp.source
+ }
+ else {
+ // 'name|1-5': /regexp/,
+ for (var i = 0; i < options.rule.count; i++) {
+ source += options.template.source;
+ }
+ }
+ return RE.Handler.gen(RE.Parser.parse(source));
+ },
+ _all: function () {
+ var re = {};
+ for (var key in random) {
+ re[key.toLowerCase()] = key;
+ }
+ return re;
+ },
+ // 处理占位符,转换为最终值
+ placeholder: function (placeholder, obj, templateContext, options) {
+ // 1 key, 2 params
+ // regexp init
+ constant.RE_PLACEHOLDER.exec('');
+ var parts = constant.RE_PLACEHOLDER.exec(placeholder);
+ var key = parts && parts[1];
+ var lkey = key && key.toLowerCase();
+ var okey = handler$1._all()[lkey];
+ var paramsInput = (parts && parts[2]) || '';
+ var pathParts = handler$1.splitPathToArray(key);
+ var params = [];
+ // 解析占位符的参数
+ try {
+ // 1. 尝试保持参数的类型
+ // #24 [Window Firefox 30.0 引用 占位符 抛错](https://github.com/nuysoft/Mock/issues/24)
+ // [BX9056: 各浏览器下 window.eval 方法的执行上下文存在差异](http://www.w3help.org/zh-cn/causes/BX9056)
+ // 应该属于 Window Firefox 30.0 的 BUG
+ params = eval('(function(){ return [].splice.call(arguments, 0 ) })(' + paramsInput + ')');
+ }
+ catch (error) {
+ // 2. 如果失败,先使用 `[]` 包裹,用 JSON.parse 尝试解析
+ try {
+ var paramsString = paramsInput.replace(/'/g, '"');
+ params = JSON.parse("[" + paramsString + "]");
+ }
+ catch (e) {
+ // 3. 逗号 split 方案兜底
+ params = paramsInput.split(/,\s*/);
+ }
+ }
+ // 占位符优先引用数据模板中的属性
+ // { first: '@EMAIL', full: '@first' } => { first: 'dsa@163.com', full: 'dsa@163.com' }
+ if (obj && key in obj) {
+ return obj[key];
+ }
+ // 绝对路径 or 相对路径
+ if (key.charAt(0) === '/' || pathParts.length > 1) {
+ return handler$1.getValueByKeyPath(key, options);
+ }
+ // 递归引用数据模板中的属性
+ // fix Mock.js#15 避免自己依赖自己)
+ if (templateContext && typeof templateContext === 'object' && key in templateContext && placeholder !== templateContext[key]) {
+ // 先计算被引用的属性值
+ templateContext[key] = handler$1.gen(templateContext[key], key, {
+ currentContext: obj, templateCurrentContext: templateContext
+ });
+ return templateContext[key];
+ }
+ // 如果未找到,则原样返回
+ if (!(key in random) && !(lkey in random) && !(okey in random)) {
+ return placeholder;
+ }
+ // 递归解析参数中的占位符
+ for (var i = 0; i < params.length; i++) {
+ constant.RE_PLACEHOLDER.exec('');
+ if (constant.RE_PLACEHOLDER.test(params[i])) {
+ params[i] = handler$1.placeholder(params[i], obj, templateContext, options);
+ }
+ }
+ var handle = random[key] || random[lkey] || random[okey];
+ if (isFunction(handle)) {
+ // 执行占位符方法(大多数情况)
+ handle.options = options;
+ var ret = handle.apply(random, params);
+ // 因为是在字符串中,所以默认为空字符串。
+ if (ret === undefined) {
+ ret = '';
+ }
+ delete handle.options;
+ return ret;
+ }
+ return '';
+ },
+ getValueByKeyPath: function (key, options) {
+ var originalKey = key;
+ var keyPathParts = handler$1.splitPathToArray(key);
+ var absolutePathParts = [];
+ // 绝对路径
+ if (key.charAt(0) === '/') {
+ absolutePathParts = [options.context.path[0]].concat(handler$1.normalizePath(keyPathParts));
+ }
+ else {
+ // 相对路径
+ if (keyPathParts.length > 1) {
+ absolutePathParts = options.context.path.slice(0);
+ absolutePathParts.pop();
+ absolutePathParts = handler$1.normalizePath(absolutePathParts.concat(keyPathParts));
+ }
+ }
+ try {
+ key = keyPathParts[keyPathParts.length - 1];
+ var currentContext = options.context.root;
+ var templateCurrentContext = options.context.templateRoot;
+ for (var i = 1; i < absolutePathParts.length - 1; i++) {
+ currentContext = currentContext[absolutePathParts[i]];
+ templateCurrentContext = templateCurrentContext[absolutePathParts[i]];
+ }
+ // 引用的值已经计算好
+ if (currentContext && key in currentContext) {
+ return currentContext[key];
+ }
+ // 尚未计算,递归引用数据模板中的属性
+ // fix #15 避免自己依赖自己
+ if (templateCurrentContext &&
+ typeof templateCurrentContext === 'object' &&
+ key in templateCurrentContext &&
+ originalKey !== templateCurrentContext[key]) {
+ // 先计算被引用的属性值
+ templateCurrentContext[key] = handler$1.gen(templateCurrentContext[key], key, {
+ currentContext: currentContext,
+ templateCurrentContext: templateCurrentContext
+ });
+ return templateCurrentContext[key];
+ }
+ }
+ catch (e) { }
+ return '@' + keyPathParts.join('/');
+ },
+ // https://github.com/kissyteam/kissy/blob/master/src/path/src/path.js
+ normalizePath: function (pathParts) {
+ var newPathParts = [];
+ for (var i = 0; i < pathParts.length; i++) {
+ switch (pathParts[i]) {
+ case '..':
+ newPathParts.pop();
+ break;
+ case '.':
+ break;
+ default:
+ newPathParts.push(pathParts[i]);
+ }
+ }
+ return newPathParts;
+ },
+ splitPathToArray: function (path) {
+ return path.split(/\/+/).filter(function (_) { return _; });
+ },
+ getTransferTypeCtor: function (key) {
+ var matched = key.match(constant.RE_TRANSFER_TYPE);
+ var type = matched && matched[1];
+ if (type && transfer.hasOwnProperty(type) && type !== 'extend') {
+ return transfer[type];
+ }
+ return function (value) { return value; };
+ }
+};
+
+// 把 Mock.js 风格的数据模板转换成 JSON Schema。
+function toJSONSchema(template, name, path) {
+ path = path || [];
+ var result = {
+ name: typeof name === 'string' ? name.replace(constant.RE_KEY, '$1') : name,
+ template: template,
+ type: type(template),
+ rule: parse(name),
+ path: path.slice(0)
+ };
+ result.path.push(name === undefined ? 'ROOT' : result.name);
+ if (isArray(template)) {
+ result.items = [];
+ template.forEach(function (item, index) {
+ result.items.push(toJSONSchema(item, index, result.path));
+ });
+ }
+ else if (isObject(template)) {
+ result.properties = [];
+ for (var key in template) {
+ result.properties.push(toJSONSchema(template[key], key, result.path));
+ }
+ }
+ return result;
+}
+
+// ## valid(template, data)
+var Diff = {
+ diff: function (schema, data, name) {
+ var result = [];
+ // 先检测名称 name 和类型 type,如果匹配,才有必要继续检测
+ if (Diff.name(schema, data, name, result) && Diff.type(schema, data, name, result)) {
+ Diff.value(schema, data, name, result);
+ Diff.properties(schema, data, name, result);
+ Diff.items(schema, data, name, result);
+ }
+ return result;
+ },
+ /* jshint unused:false */
+ name: function (schema, _data, name, result) {
+ var length = result.length;
+ Assert.equal('name', schema.path, name + '', schema.name + '', result);
+ return result.length === length;
+ },
+ type: function (schema, data, _name, result) {
+ var length = result.length;
+ if (isString(schema.template)) {
+ // 占位符类型处理
+ if (schema.template.match(constant.RE_PLACEHOLDER)) {
+ var actualValue = handler$1.gen(schema.template);
+ Assert.equal('type', schema.path, type(data), type(actualValue), result);
+ return result.length === length;
+ }
+ }
+ else if (isArray(schema.template)) {
+ if (schema.rule.parameters) {
+ // name|count: array
+ if (schema.rule.min !== undefined && schema.rule.max === undefined) {
+ // 跳过 name|1: array,因为最终值的类型(很可能)不是数组,也不一定与 `array` 中的类型一致
+ if (schema.rule.count === 1) {
+ return true;
+ }
+ }
+ // 跳过 name|+inc: array
+ if (schema.rule.parameters[2]) {
+ return true;
+ }
+ }
+ }
+ else if (isFunction(schema.template)) {
+ // 跳过 `'name': function`,因为函数可以返回任何类型的值。
+ return true;
+ }
+ Assert.equal('type', schema.path, type(data), schema.type, result);
+ return result.length === length;
+ },
+ value: function (schema, data, name, result) {
+ var length = result.length;
+ var rule = schema.rule;
+ var templateType = schema.type;
+ if (templateType === 'object' || templateType === 'array' || templateType === 'function') {
+ return true;
+ }
+ // 无生成规则
+ if (!rule.parameters) {
+ if (isRegExp(schema.template)) {
+ Assert.match('value', schema.path, data, schema.template, result);
+ return result.length === length;
+ }
+ if (isString(schema.template)) {
+ // 同样跳过含有『占位符』的属性值,因为『占位符』的返回值会通常会与模板不一致
+ if (schema.template.match(constant.RE_PLACEHOLDER)) {
+ return result.length === length;
+ }
+ }
+ Assert.equal('value', schema.path, data, schema.template, result);
+ return result.length === length;
+ }
+ // 有生成规则
+ var actualRepeatCount;
+ if (isNumber(schema.template)) {
+ var parts = (data + '').split('.');
+ var intPart = Number(parts[0]);
+ var floatPart = parts[1];
+ // 整数部分
+ // |min-max
+ if (rule.min !== undefined && rule.max !== undefined) {
+ Assert.greaterThanOrEqualTo('value', schema.path, intPart, Math.min(Number(rule.min), Number(rule.max)), result);
+ // , 'numeric instance is lower than the required minimum (minimum: {expected}, found: {actual})')
+ Assert.lessThanOrEqualTo('value', schema.path, intPart, Math.max(Number(rule.min), Number(rule.max)), result);
+ }
+ // |count
+ if (rule.min !== undefined && rule.max === undefined) {
+ Assert.equal('value', schema.path, intPart, Number(rule.min), result, '[value] ' + name);
+ }
+ // 小数部分
+ if (rule.decimal) {
+ // |dmin-dmax
+ if (rule.dmin !== undefined && rule.dmax !== undefined) {
+ Assert.greaterThanOrEqualTo('value', schema.path, floatPart.length, Number(rule.dmin), result);
+ Assert.lessThanOrEqualTo('value', schema.path, floatPart.length, Number(rule.dmax), result);
+ }
+ // |dcount
+ if (rule.dmin !== undefined && rule.dmax === undefined) {
+ Assert.equal('value', schema.path, floatPart.length, Number(rule.dmin), result);
+ }
+ }
+ }
+ else if (isString(schema.template)) {
+ // 'aaa'.match(/a/g)
+ actualRepeatCount = data.match(new RegExp(schema.template, 'g'));
+ actualRepeatCount = actualRepeatCount ? actualRepeatCount.length : 0;
+ // |min-max
+ if (rule.min !== undefined && rule.max !== undefined) {
+ Assert.greaterThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.min), result);
+ Assert.lessThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.max), result);
+ }
+ // |count
+ if (rule.min !== undefined && rule.max === undefined) {
+ Assert.equal('repeat count', schema.path, actualRepeatCount, rule.min, result);
+ }
+ }
+ else if (isRegExp(schema.template)) {
+ actualRepeatCount = data.match(new RegExp(schema.template.source.replace(/^\^|\$$/g, ''), 'g'));
+ actualRepeatCount = actualRepeatCount ? actualRepeatCount.length : 0;
+ // |min-max
+ if (rule.min !== undefined && rule.max !== undefined) {
+ Assert.greaterThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.min), result);
+ Assert.lessThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.max), result);
+ }
+ // |count
+ if (rule.min !== undefined && rule.max === undefined) {
+ Assert.equal('repeat count', schema.path, actualRepeatCount, rule.min, result);
+ }
+ }
+ return result.length === length;
+ },
+ properties: function (schema, data, _name, result) {
+ var length = result.length;
+ var rule = schema.rule;
+ var keys$1 = keys(data);
+ if (!schema.properties) {
+ return;
+ }
+ // 无生成规则
+ if (!schema.rule.parameters) {
+ Assert.equal('properties length', schema.path, keys$1.length, schema.properties.length, result);
+ }
+ else {
+ // 有生成规则
+ // |min-max
+ if (rule.min !== undefined && rule.max !== undefined) {
+ Assert.greaterThanOrEqualTo('properties length', schema.path, keys$1.length, Math.min(Number(rule.min), Number(rule.max)), result);
+ Assert.lessThanOrEqualTo('properties length', schema.path, keys$1.length, Math.max(Number(rule.min), Number(rule.max)), result);
+ }
+ // |count
+ if (rule.min !== undefined && rule.max === undefined) {
+ // |1, |>1
+ if (rule.count !== 1) {
+ Assert.equal('properties length', schema.path, keys$1.length, Number(rule.min), result);
+ }
+ }
+ }
+ if (result.length !== length) {
+ return false;
+ }
+ var _loop_1 = function (i) {
+ var property;
+ schema.properties.forEach(function (item) {
+ if (item.name === keys$1[i]) {
+ property = item;
+ }
+ });
+ property = property || schema.properties[i];
+ result.push.apply(result, Diff.diff(property, data[keys$1[i]], keys$1[i]));
+ };
+ for (var i = 0; i < keys$1.length; i++) {
+ _loop_1(i);
+ }
+ return result.length === length;
+ },
+ items: function (schema, data, _name, result) {
+ var length = result.length;
+ if (!schema.items) {
+ return;
+ }
+ var rule = schema.rule;
+ // 无生成规则
+ if (!schema.rule.parameters) {
+ Assert.equal('items length', schema.path, data.length, schema.items.length, result);
+ }
+ else {
+ // 有生成规则
+ // |min-max
+ if (rule.min !== undefined && rule.max !== undefined) {
+ Assert.greaterThanOrEqualTo('items', schema.path, data.length, Math.min(Number(rule.min), Number(rule.max)) * schema.items.length, result, '[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements');
+ Assert.lessThanOrEqualTo('items', schema.path, data.length, Math.max(Number(rule.min), Number(rule.max)) * schema.items.length, result, '[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements');
+ }
+ // |count
+ if (rule.min !== undefined && rule.max === undefined) {
+ // |1, |>1
+ if (rule.count === 1) {
+ return result.length === length;
+ }
+ else {
+ Assert.equal('items length', schema.path, data.length, (Number(rule.min) * schema.items.length), result);
+ }
+ }
+ // |+inc
+ if (rule.parameters && rule.parameters[2]) {
+ return result.length === length;
+ }
+ }
+ if (result.length !== length) {
+ return false;
+ }
+ for (var i = 0; i < data.length; i++) {
+ result.push.apply(result, Diff.diff(schema.items[i % schema.items.length], data[i], i % schema.items.length));
+ }
+ return result.length === length;
+ }
+};
+// 完善、友好的提示信息
+//
+// Equal, not equal to, greater than, less than, greater than or equal to, less than or equal to
+// 路径 验证类型 描述
+//
+// Expect path.name is less than or equal to expected, but path.name is actual.
+//
+// Expect path.name is less than or equal to expected, but path.name is actual.
+// Expect path.name is greater than or equal to expected, but path.name is actual.
+var Assert = {
+ message: function (item) {
+ if (item.message) {
+ return item.message;
+ }
+ var upperType = item.type.toUpperCase();
+ var lowerType = item.type.toLowerCase();
+ var path = isArray(item.path) && item.path.join('.') || item.path;
+ var action = item.action;
+ var expected = item.expected;
+ var actual = item.actual;
+ return "[" + upperType + "] Expect " + path + "'" + lowerType + " " + action + " " + expected + ", but is " + actual;
+ },
+ equal: function (type, path, actual, expected, result, message) {
+ if (actual === expected) {
+ return true;
+ }
+ // 正则模板 === 字符串最终值
+ if (type === 'type' && expected === 'regexp' && actual === 'string') {
+ return true;
+ }
+ result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is equal to'));
+ return false;
+ },
+ // actual matches expected
+ match: function (type, path, actual, expected, result, message) {
+ if (expected.test(actual)) {
+ return true;
+ }
+ result.push(Assert.createDiffResult(type, path, actual, expected, message, 'matches'));
+ return false;
+ },
+ greaterThanOrEqualTo: function (type, path, actual, expected, result, message) {
+ if (actual >= expected) {
+ return true;
+ }
+ result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is greater than or equal to'));
+ return false;
+ },
+ lessThanOrEqualTo: function (type, path, actual, expected, result, message) {
+ if (actual <= expected) {
+ return true;
+ }
+ result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is less than or equal to'));
+ return false;
+ },
+ createDiffResult: function (type, path, actual, expected, message, action) {
+ var item = {
+ path: path,
+ type: type,
+ actual: actual,
+ expected: expected,
+ action: action,
+ message: message
+ };
+ item.message = Assert.message(item);
+ return item;
+ }
+};
+var valid = function (template, data) {
+ var schema = toJSONSchema(template);
+ return Diff.diff(schema, data);
+};
+valid.Diff = Diff;
+valid.Assert = Assert;
+
+function rgx (str, loose) {
+ if (str instanceof RegExp) return { keys:false, pattern:str };
+ var c, o, tmp, ext, keys=[], pattern='', arr = str.split('/');
+ arr[0] || arr.shift();
+
+ while (tmp = arr.shift()) {
+ c = tmp[0];
+ if (c === '*') {
+ keys.push('wild');
+ pattern += '/(.*)';
+ } else if (c === ':') {
+ o = tmp.indexOf('?', 1);
+ ext = tmp.indexOf('.', 1);
+ keys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) );
+ pattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)';
+ if (!!~ext) pattern += (!!~o ? '?' : '') + '\\' + tmp.substring(ext);
+ } else {
+ pattern += '/' + tmp;
+ }
+ }
+
+ return {
+ keys: keys,
+ pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i')
+ };
+}
+
+var IMocked = /** @class */ (function () {
+ function IMocked() {
+ this._mocked = {};
+ }
+ IMocked.prototype.set = function (key, value) {
+ this._mocked[key] = value;
+ };
+ IMocked.prototype.getMocked = function () {
+ return this._mocked;
+ };
+ // 查找与请求参数匹配的数据模板:URL,Type
+ IMocked.prototype.find = function (url, type) {
+ var mockedItems = Object.values(this._mocked);
+ for (var i = 0; i < mockedItems.length; i++) {
+ var item = mockedItems[i];
+ var urlMatched = this._matchUrl(item.rurl, url);
+ var typeMatched = this._matchType(item.rtype, type);
+ if (!item.rtype && urlMatched) {
+ return item;
+ }
+ if (urlMatched && typeMatched) {
+ return item;
+ }
+ }
+ };
+ /**
+ * 数据模板转换成 mock 数据
+ * @param item 发请求时匹配到的 mock 数据源
+ * @param options 包含请求头,请求体,请求方法等
+ */
+ IMocked.prototype.convert = function (item, options) {
+ return isFunction(item.template) ? item.template(options) : handler$1.gen(item.template);
+ };
+ IMocked.prototype._matchUrl = function (expected, actual) {
+ if (isString(expected)) {
+ if (expected === actual) {
+ return true;
+ }
+ // expected: /hello/world
+ // actual: /hello/world?type=1
+ if (actual.indexOf(expected) === 0 && actual[expected.length] === '?') {
+ return true;
+ }
+ if (expected.indexOf('/') === 0) {
+ return rgx(expected).pattern.test(actual);
+ }
+ }
+ if (isRegExp(expected)) {
+ return expected.test(actual);
+ }
+ return false;
+ };
+ IMocked.prototype._matchType = function (expected, actual) {
+ if (isString(expected) || isRegExp(expected)) {
+ return new RegExp(expected, 'i').test(actual);
+ }
+ return false;
+ };
+ return IMocked;
+}());
+var mocked = new IMocked();
+
+var Setting = /** @class */ (function () {
+ function Setting() {
+ this._setting = {
+ timeout: '10-100'
+ };
+ }
+ Setting.prototype.setup = function (setting) {
+ Object.assign(this._setting, setting);
+ };
+ Setting.prototype.parseTimeout = function (timeout) {
+ if (timeout === void 0) { timeout = this._setting.timeout; }
+ if (typeof timeout === 'number') {
+ return timeout;
+ }
+ if (typeof timeout === 'string' && timeout.indexOf('-') === -1) {
+ return parseInt(timeout, 10);
+ }
+ if (typeof timeout === 'string' && timeout.indexOf('-') !== -1) {
+ var tmp = timeout.split('-');
+ var min = parseInt(tmp[0], 10);
+ var max = parseInt(tmp[1], 10);
+ return Math.round(Math.random() * (max - min)) + min;
+ }
+ return 0;
+ };
+ return Setting;
+}());
+var setting = new Setting();
+
+// 备份原生 XMLHttpRequest
+var _XMLHttpRequest = XMLHttpRequest;
+var XHR_STATES;
+(function (XHR_STATES) {
+ // The object has been constructed.
+ XHR_STATES[XHR_STATES["UNSENT"] = 0] = "UNSENT";
+ // The open() method has been successfully invoked.
+ XHR_STATES[XHR_STATES["OPENED"] = 1] = "OPENED";
+ // All redirects (if any) have been followed and all HTTP headers of the response have been received.
+ XHR_STATES[XHR_STATES["HEADERS_RECEIVED"] = 2] = "HEADERS_RECEIVED";
+ // The response's body is being received.
+ XHR_STATES[XHR_STATES["LOADING"] = 3] = "LOADING";
+ // The data transfer has been completed or something went wrong during the transfer (e.g. infinite redirects).
+ XHR_STATES[XHR_STATES["DONE"] = 4] = "DONE";
+})(XHR_STATES || (XHR_STATES = {}));
+var XHR_EVENTS = ['readystatechange', 'loadstart', 'progress', 'abort', 'error', 'load', 'timeout', 'loadend'];
+var XHR_REQUEST_PROPERTIES = ['timeout', 'withCredentials', 'responseType'];
+var XHR_RESPONSE_PROPERTIES = [
+ 'readyState',
+ 'responseURL',
+ 'status',
+ 'statusText',
+ 'response',
+ 'responseText',
+ 'responseXML'
+];
+var MockXMLHttpRequest = /** @class */ (function () {
+ function MockXMLHttpRequest() {
+ // 标记当前对象为 MockXMLHttpRequest
+ this.mock = true;
+ // 是否拦截 Ajax 请求
+ this.match = false;
+ this.timeout = 0;
+ this.readyState = XHR_STATES.UNSENT;
+ this.withCredentials = false;
+ this.responseURL = '';
+ this.status = XHR_STATES.UNSENT;
+ this.statusText = '';
+ // '', 'text', 'arraybuffer', 'blob', 'document', 'json'
+ this.responseType = '';
+ this.response = null;
+ this.responseText = '';
+ this.responseXML = '';
+ this.UNSENT = XHR_STATES.UNSENT;
+ this.OPENED = XHR_STATES.OPENED;
+ this.HEADERS_RECEIVED = XHR_STATES.HEADERS_RECEIVED;
+ this.LOADING = XHR_STATES.LOADING;
+ this.DONE = XHR_STATES.DONE;
+ // 初始化 custom 对象,用于存储自定义属性
+ this.custom = {
+ events: {},
+ requestHeaders: {},
+ responseHeaders: {},
+ timeout: 0,
+ options: {},
+ xhr: createNativeXHR(),
+ template: null,
+ async: true
+ };
+ this.upload = this.custom.xhr.upload;
+ }
+ MockXMLHttpRequest.prototype.open = function (method, url, async, username, password) {
+ var _this = this;
+ if (async === void 0) { async = true; }
+ Object.assign(this.custom, {
+ method: method,
+ url: url,
+ async: typeof async === 'boolean' ? async : true,
+ username: username,
+ password: password,
+ options: {
+ url: url,
+ type: method
+ }
+ });
+ this.custom.timeout = setting.parseTimeout();
+ // 查找与请求参数匹配的数据模板
+ var options = this.custom.options;
+ var item = mocked.find(options.url, options.type);
+ // 如果未找到匹配的数据模板,则采用原生 XHR 发送请求。
+ if (!item) {
+ var xhr_1 = this.custom.xhr;
+ // 初始化所有事件,用于监听原生 XHR 对象的事件
+ for (var i = 0; i < XHR_EVENTS.length; i++) {
+ xhr_1.addEventListener(XHR_EVENTS[i], function (event) {
+ // 同步属性 NativeXMLHttpRequest => MockXMLHttpRequest
+ XHR_RESPONSE_PROPERTIES.forEach(function (prop) {
+ try {
+ _this[prop] = xhr_1[prop];
+ }
+ catch (e) { }
+ });
+ // 触发 MockXMLHttpRequest 上的同名事件
+ _this.dispatchEvent(event);
+ });
+ }
+ // xhr.open()
+ if (username) {
+ xhr_1.open(method, url, async, username, password);
+ }
+ else {
+ xhr_1.open(method, url, async);
+ }
+ return;
+ }
+ // 找到了匹配的数据模板,开始拦截 XHR 请求
+ this.match = true;
+ this.custom.template = item;
+ this.readyState = XHR_STATES.OPENED;
+ this.dispatchEvent(createCustomEvent('readystatechange'));
+ };
+ // Combines a header in author request headers.
+ MockXMLHttpRequest.prototype.setRequestHeader = function (name, value) {
+ // 原生 XHR
+ if (!this.match) {
+ this.custom.xhr.setRequestHeader(name, value);
+ return;
+ }
+ // 拦截 XHR
+ var requestHeaders = this.custom.requestHeaders;
+ if (requestHeaders[name]) {
+ requestHeaders[name] += ',' + value;
+ }
+ else {
+ requestHeaders[name] = value;
+ }
+ };
+ // Initiates the request.
+ MockXMLHttpRequest.prototype.send = function (data) {
+ var _this = this;
+ this.custom.options.body = data;
+ this.custom.options.headers = this.custom.requestHeaders;
+ // 原生 XHR
+ if (!this.match) {
+ // 同步属性 MockXMLHttpRequest => NativeXMLHttpRequest
+ XHR_REQUEST_PROPERTIES.forEach(function (prop) {
+ try {
+ _this.custom.xhr[prop] = _this[prop];
+ }
+ catch (e) { }
+ });
+ this.custom.xhr.send(data);
+ return;
+ }
+ // 拦截 XHR
+ // X-Requested-With header
+ this.setRequestHeader('X-Requested-With', 'MockXMLHttpRequest');
+ // loadstart The fetch initiates.
+ this.dispatchEvent(createCustomEvent('loadstart'));
+ var done = function () { return __awaiter(_this, void 0, void 0, function () {
+ var mockResponse;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ this.readyState = XHR_STATES.HEADERS_RECEIVED;
+ this.dispatchEvent(createCustomEvent('readystatechange'));
+ this.readyState = XHR_STATES.LOADING;
+ this.dispatchEvent(createCustomEvent('readystatechange'));
+ this.status = 200;
+ this.statusText = 'OK';
+ return [4 /*yield*/, mocked.convert(this.custom.template, this.custom.options)];
+ case 1:
+ mockResponse = _a.sent();
+ this.response = this.responseText = JSON.stringify(mockResponse);
+ this.readyState = XHR_STATES.DONE;
+ this.dispatchEvent(createCustomEvent('readystatechange'));
+ this.dispatchEvent(createCustomEvent('load'));
+ this.dispatchEvent(createCustomEvent('loadend'));
+ return [2 /*return*/];
+ }
+ });
+ }); };
+ if (this.custom.async) {
+ // 异步
+ setTimeout(done, this.custom.timeout);
+ }
+ else {
+ // 同步
+ done();
+ }
+ };
+ // https://xhr.spec.whatwg.org/#the-abort()-method
+ // Cancels any network activity.
+ MockXMLHttpRequest.prototype.abort = function () {
+ // 原生 XHR
+ if (!this.match) {
+ this.custom.xhr.abort();
+ return;
+ }
+ // 拦截 XHR
+ this.readyState = XHR_STATES.UNSENT;
+ this.dispatchEvent(createCustomEvent('abort', false, false, this));
+ this.dispatchEvent(createCustomEvent('error', false, false, this));
+ };
+ // https://xhr.spec.whatwg.org/#the-getresponseheader()-method
+ MockXMLHttpRequest.prototype.getResponseHeader = function (name) {
+ // 原生 XHR
+ if (!this.match) {
+ return this.custom.xhr.getResponseHeader(name);
+ }
+ // 拦截 XHR
+ return this.custom.responseHeaders[name.toLowerCase()];
+ };
+ // https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method
+ // http://www.utf8-chartable.de/
+ MockXMLHttpRequest.prototype.getAllResponseHeaders = function () {
+ // 原生 XHR
+ if (!this.match) {
+ return this.custom.xhr.getAllResponseHeaders();
+ }
+ // 拦截 XHR
+ var responseHeaders = this.custom.responseHeaders;
+ var headers = '';
+ for (var h in responseHeaders) {
+ if (!responseHeaders.hasOwnProperty(h)) {
+ continue;
+ }
+ headers += h + ': ' + responseHeaders[h] + '\r\n';
+ }
+ return headers;
+ };
+ MockXMLHttpRequest.prototype.overrideMimeType = function () { };
+ MockXMLHttpRequest.prototype.addEventListener = function (type, handle) {
+ var events = this.custom.events;
+ if (!events[type]) {
+ events[type] = [];
+ }
+ events[type].push(handle);
+ };
+ MockXMLHttpRequest.prototype.removeEventListener = function (type, handle) {
+ var handles = this.custom.events[type] || [];
+ for (var i = 0; i < handles.length; i++) {
+ if (handles[i] === handle) {
+ handles.splice(i--, 1);
+ }
+ }
+ };
+ MockXMLHttpRequest.prototype.dispatchEvent = function (event) {
+ var handles = this.custom.events[event.type] || [];
+ for (var i = 0; i < handles.length; i++) {
+ handles[i].call(this, event);
+ }
+ var onType = 'on' + event.type;
+ if (this[onType]) {
+ this[onType](event);
+ }
+ };
+ MockXMLHttpRequest.UNSENT = XHR_STATES.UNSENT;
+ MockXMLHttpRequest.OPENED = XHR_STATES.OPENED;
+ MockXMLHttpRequest.HEADERS_RECEIVED = XHR_STATES.HEADERS_RECEIVED;
+ MockXMLHttpRequest.LOADING = XHR_STATES.LOADING;
+ MockXMLHttpRequest.DONE = XHR_STATES.DONE;
+ MockXMLHttpRequest.__MOCK__ = false;
+ return MockXMLHttpRequest;
+}());
+// Inspired by jQuery
+function createNativeXHR() {
+ var localProtocolRE = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/;
+ var isLocal = localProtocolRE.test(location.protocol);
+ return window.ActiveXObject
+ ? (!isLocal && createStandardXHR()) || createActiveXHR()
+ : createStandardXHR();
+ function createStandardXHR() {
+ try {
+ return new _XMLHttpRequest();
+ }
+ catch (e) { }
+ }
+ function createActiveXHR() {
+ try {
+ return new window.ActiveXObject('Microsoft.XMLHTTP');
+ }
+ catch (e) { }
+ }
+}
+function overrideXHR() {
+ if (!MockXMLHttpRequest.__MOCK__) {
+ MockXMLHttpRequest.__MOCK__ = true;
+ window.XMLHttpRequest = MockXMLHttpRequest;
+ }
+}
+
+var _nativeFetch = fetch;
+var _nativeRequest = Request;
+function extendRequest(request, input, init) {
+ if (isString(input)) {
+ request['_actualUrl'] = input;
+ }
+ if (init && init.body) {
+ request['_actualBody'] = init.body;
+ }
+ if (input instanceof _nativeRequest && !init) {
+ request['_actualUrl'] = input['_actualUrl'];
+ request['_actualBody'] = input['_actualBody'];
+ }
+ return request;
+}
+var MockRequest;
+/**
+ * 拦截 window.Request 实例化
+ * 原生 Request 对象被实例化后,对 request.url 取值得到的是拼接后的 url:
+ * const request = new Request('/path/to')
+ * console.log(request.url) => 'http://example.com/path/to'
+ * 原生 Request 对象被实例化后,对 request.body 取值得到的是 undefined:
+ * const request = new Request('/path/to', { method: 'POST', body: 'foo=1' })
+ * console.log(request.body) => undefined
+ */
+if (window.Proxy) {
+ MockRequest = new Proxy(_nativeRequest, {
+ construct: function (target, _a) {
+ var input = _a[0], init = _a[1];
+ var request = new target(input, init);
+ return extendRequest(request, input, init);
+ }
+ });
+} /* istanbul ignore next */
+else {
+ MockRequest = function MockRequest(input, init) {
+ var request = new _nativeRequest(input, init);
+ return extendRequest(request, input, init);
+ };
+ MockRequest.prototype = _nativeRequest.prototype;
+}
+// 拦截 fetch 方法
+// https://developer.mozilla.org/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/fetch
+function MockFetch(input, init) {
+ return __awaiter(this, void 0, void 0, function () {
+ var request, headers, options, item, result, body, response;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ if (input instanceof Request && !init) {
+ request = input;
+ }
+ else {
+ request = new Request(input, init);
+ }
+ headers = {};
+ request.headers.forEach(function (value, key) {
+ headers[key] = value;
+ });
+ options = {
+ url: request['_actualUrl'] || request.url,
+ type: request.method,
+ body: request['_actualBody'] || request.body || null,
+ headers: headers
+ };
+ item = mocked.find(options.url, options.type);
+ // 如果未找到匹配的数据模板,则采用原生 fetch 发送请求。
+ if (!item) {
+ return [2 /*return*/, _nativeFetch(input, init)];
+ }
+ return [4 /*yield*/, mocked.convert(item, options)];
+ case 1:
+ result = _a.sent();
+ body = JSON.stringify(result);
+ response = new Response(body, {
+ status: 200,
+ statusText: 'ok',
+ headers: request.headers
+ });
+ // 异步返回数据
+ return [2 /*return*/, new Promise(function (resolve) {
+ setTimeout(function () {
+ resolve(response);
+ }, setting.parseTimeout());
+ })];
+ }
+ });
+ });
+}
+function overrideFetchAndRequest() {
+ if (window.fetch && !MockRequest.__MOCK__) {
+ MockRequest.__MOCK__ = true;
+ window.Request = MockRequest;
+ window.fetch = MockFetch;
+ }
+}
+
+// For browser
+var Mock = {
+ Handler: handler$1,
+ Random: random,
+ Transfer: transfer,
+ Util: Util,
+ XHR: MockXMLHttpRequest,
+ RE: RE,
+ toJSONSchema: toJSONSchema,
+ valid: valid,
+ mock: mock,
+ heredoc: heredoc,
+ setup: setting.setup.bind(setting),
+ _mocked: mocked.getMocked(),
+ version: '0.3.6'
+};
+// 根据数据模板生成模拟数据。
+function mock(rurl, rtype, template) {
+ assert(arguments.length, 'The mock function needs to pass at least one parameter!');
+ // Mock.mock(template)
+ if (arguments.length === 1) {
+ return handler$1.gen(rurl);
+ }
+ // Mock.mock(url, template)
+ if (arguments.length === 2) {
+ template = rtype;
+ rtype = undefined;
+ }
+ // 拦截 XHR
+ overrideXHR();
+ // 拦截fetch
+ overrideFetchAndRequest();
+ var key = String(rurl) + String(rtype);
+ mocked.set(key, { rurl: rurl, rtype: rtype, template: template });
+ return Mock;
+}
+
+export default Mock;
diff --git a/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js b/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js
new file mode 100644
index 00000000..b7bb9249
--- /dev/null
+++ b/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js
@@ -0,0 +1,8 @@
+/**
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.17.1.
+ * Original file: /npm/detect-it@4.0.1/dist/detect-it.esm.js
+ *
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+var e="undefined"!=typeof window?window:{screen:{},navigator:{}},n=(e.matchMedia||function(){return{matches:!1}}).bind(e),t=!1,o={get passive(){return t=!0}},i=function(){};e.addEventListener&&e.addEventListener("p",i,o),e.removeEventListener&&e.removeEventListener("p",i,!1);var r=t,a="PointerEvent"in e,s="ontouchstart"in e,c=s||"TouchEvent"in e&&n("(any-pointer: coarse)").matches,h=(e.navigator.maxTouchPoints||0)>0||c,u=e.navigator.userAgent||"",m=n("(pointer: coarse)").matches&&/iPad|Macintosh/.test(u)&&Math.min(e.screen.width||0,e.screen.height||0)>=768,v=(n("(pointer: coarse)").matches||!n("(pointer: fine)").matches&&s)&&!/Windows.*Firefox/.test(u),d=n("(any-pointer: fine)").matches||n("(any-hover: hover)").matches||m||!s,p=!h||!d&&v?h?"touchOnly":"mouseOnly":"hybrid",y="mouseOnly"===p?"mouse":"touchOnly"===p||v?"touch":"mouse";export{p as deviceType,y as primaryInput,r as supportsPassiveEvents,a as supportsPointerEvents,c as supportsTouchEvents};export default null;
+//# sourceMappingURL=/sm/4280e12bc6c9669987adcde477eb6347c379a3a324091a23187d02e5284db1bb.map
\ No newline at end of file
diff --git a/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js b/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js
new file mode 100644
index 00000000..18d54eeb
--- /dev/null
+++ b/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js
@@ -0,0 +1,45 @@
+
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i);var r="12px sans-serif";var o,a,s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)h=u*t.length;else for(var c=0;c>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),a,o);if(s)return s(t,n,r),!0}return!1}function jt(t){return"CANVAS"===t.nodeName.toUpperCase()}var qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kt=[],$t=i.browser.firefox&&+i.browser.version.split(".")[0]<39;function Jt(t,e,n,i){return n=n||{},i?Qt(t,e,n):$t&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Qt(t,e,n),n}function Qt(t,e,n){if(i.domSupported&&t.getBoundingClientRect){var r=e.clientX,o=e.clientY;if(jt(t)){var a=t.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=o-a.top)}if(Zt(Kt,t,r,o))return n.zrX=Kt[0],void(n.zrY=Kt[1])}n.zrX=n.zrY=0}function te(t){return t||window.event}function ee(t,e,n){if(null!=(e=te(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Jt(t,r,e,n)}else{Jt(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&qt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ne(t,e,n,i){t.addEventListener(e,n,i)}var ie=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function re(t){return 2===t.which||3===t.which}var oe=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ae(r)/ae(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function le(){ie(this.event)}var ue=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Ht),he=function(t,e){this.x=t,this.y=e},ce=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pe=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o._hovered=new he(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new ue,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Gt(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(O(ce,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=fe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new he(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new he(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:le}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},n.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new he(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=de(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),"silent"!==a)){r.target=i[o];break}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new oe);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new he;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Ht);function de(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||"silent"}return!1}function fe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){pe.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=fe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Pt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function ge(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function ye(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function ve(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function me(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function xe(t,e){var n,i,r=7,o=0;t.length;var a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=me(t[h],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(c=ve(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[d+l]=t[p+l];return void(t[c]=a[h])}var f=r;for(;;){var g=0,y=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}}while((g|y)=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!==(y=s-ve(t[u],a,0,s,s-1,e))){for(s-=y,d=(c-=y)+1,p=(h-=y)+1,l=0;l=7||y>=7);if(v)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(d=(c-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ge(t,n,i,e))s&&(l=s),ye(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var be=!1;function we(){be||(be=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Se(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Me=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Se}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(we(),u.z=0),isNaN(u.z2)&&(we(),u.z2=0),isNaN(u.zlevel)&&(we(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ie=i.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Te={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Te.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Te.bounceIn(2*t):.5*Te.bounceOut(2*t-1)+.5}},Ce=Math.pow,De=Math.sqrt,Ae=De(3),ke=1/3,Le=mt(),Pe=mt(),Oe=mt();function Re(t){return t>-1e-8&&t<1e-8}function Ne(t){return t>1e-8||t<-1e-8}function Ee(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ze(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Be(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Re(h)&&Re(c)){if(Re(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[d++]=M)}else{var f=c*c-4*h*p;if(Re(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=De(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Ce(-m,ke):Ce(m,ke))+(x=x<0?-Ce(-x,ke):Ce(x,ke))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*De(h*h*h)),b=Math.acos(_)/3,w=De(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Ae*Math.sin(b)))/(3*a),(-s+w*(S-Ae*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),I>=0&&I<=1&&(o[d++]=I)}}return d}function Ve(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Re(a)){if(Ne(o))(h=-s/o)>=0&&h<=1&&(r[l++]=h)}else{var u=o*o-4*a*s;if(Re(u))r[0]=-o/(2*a);else if(u>0){var h,c=De(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Fe(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Ge(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;Le[0]=l,Le[1]=u;for(var m=0;m<1;m+=.05)Pe[0]=Ee(t,n,r,a,m),Pe[1]=Ee(e,i,o,s,m),(f=Rt(Le,Pe))=0&&f=0&&y=1?1:Be(0,i,o,1,t,s)&&Ee(0,r,a,1,s[0])}}}var $e=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||gt,this.ondestroy=t.ondestroy||gt,this.onrestart=t.onrestart||gt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=H(t)?t:Te[t]||Ke(t)},t}(),Je=function(t){this.value=t},Qe=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Je(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),tn=function(){function t(t){this._list=new Qe,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Je(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),en={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function nn(t){return(t=Math.round(t))<0?0:t>255?255:t}function rn(t){return t<0?0:t>1?1:t}function on(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?nn(parseFloat(e)/100*255):nn(parseInt(e,10))}function an(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?rn(parseFloat(e)/100):rn(parseFloat(e))}function sn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ln(t,e,n){return t+(e-t)*n}function un(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function hn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var cn=new tn(20),pn=null;function dn(t,e){pn&&hn(pn,e),pn=cn.put(t,pn||e.slice())}function fn(t,e){if(t){e=e||[];var n=cn.get(t);if(n)return hn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in en)return hn(e,en[i]),dn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(un(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),dn(t,e),e):void un(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(un(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),dn(t,e),e):void un(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?un(e,+u[0],+u[1],+u[2],1):un(e,0,0,0,1);h=an(u.pop());case"rgb":return 3!==u.length?void un(e,0,0,0,1):(un(e,on(u[0]),on(u[1]),on(u[2]),h),dn(t,e),e);case"hsla":return 4!==u.length?void un(e,0,0,0,1):(u[3]=an(u[3]),gn(u,e),dn(t,e),e);case"hsl":return 3!==u.length?void un(e,0,0,0,1):(gn(u,e),dn(t,e),e);default:return}}un(e,0,0,0,1)}}function gn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=an(t[1]),r=an(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return un(e=e||[],nn(255*sn(a,o,n+1/3)),nn(255*sn(a,o,n)),nn(255*sn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function yn(t,e){var n=fn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Sn(n,4===n.length?"rgba":"rgb")}}function vn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=nn(ln(a[0],s[0],l)),n[1]=nn(ln(a[1],s[1],l)),n[2]=nn(ln(a[2],s[2],l)),n[3]=rn(ln(a[3],s[3],l)),n}}var mn=vn;function xn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=fn(e[r]),s=fn(e[o]),l=i-r,u=Sn([nn(ln(a[0],s[0],l)),nn(ln(a[1],s[1],l)),nn(ln(a[2],s[2],l)),rn(ln(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var _n=xn;function bn(t,e,n,i){var r=fn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=an(n)),null!=i&&(r[2]=an(i)),Sn(gn(r),"rgba")}function wn(t,e){var n=fn(t);if(n&&null!=e)return n[3]=rn(e),Sn(n,"rgba")}function Sn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Mn(t,e){var n=fn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var In=Object.freeze({__proto__:null,parse:fn,lift:yn,toHex:function(t){var e=fn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:vn,fastMapToColor:mn,lerp:xn,mapToColor:_n,modifyHSL:bn,modifyAlpha:wn,stringify:Sn,lum:Mn,random:function(){return Sn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}}),Tn=Math.round;function Cn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=fn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Dn(t){return t<1e-4&&t>-1e-4}function An(t){return Tn(1e3*t)/1e3}function kn(t){return Tn(1e4*t)/1e4}var Ln={left:"start",right:"end",center:"middle",middle:"middle"};function Pn(t){return t&&!!t.image}function On(t){return"linear"===t.type}function Rn(t){return"radial"===t.type}function Nn(t){return"url(#"+t+")"}function En(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function zn(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*yt,r=et(t.scaleX,1),o=et(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Tn(a*yt)+"deg, "+Tn(s*yt)+"deg)"),l.join(" ")}var Bn=i.hasGlobalWindow&&H(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Vn=Array.prototype.slice;function Fn(t,e,n){return(e-t)*n+t}function Gn(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(P(e)){var l=function(t){return P(t&&t[0])?2:1}(e);a=l,(1===l&&!Y(e[0])||2===l&&!Y(e[0][0]))&&(o=!0)}else if(Y(e)&&!Q(e))a=0;else if(W(e))if(isNaN(+e)){var u=fn(e);u&&(s=u,a=3)}else a=0;else if(K(e)){var h=T({},s);h.colorStops=R(e.colorStops,(function(t){return{offset:t.offset,color:fn(t.color)}})),On(e)?a=4:Rn(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=H(n)?n:Te[n]||Ke(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=qn(i),l=jn(i),u=0;u=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;ne);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?Kn:t[h];if(!qn(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(qn(s))1===s?Gn(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Xn(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Xn(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Qn(){return(new Date).getTime()}var ti,ei,ni=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=Qn()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var t=this;this._running=!0,Ie((function e(){t._running&&(Ie(e),!t._paused&&t.update())}))},n.prototype.start=function(){this._running||(this._time=Qn(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=Qn(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=Qn()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Jn(t,e.loop);return this.addAnimator(n),n},n}(Ht),ii=i.domSupported,ri=(ei={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ti=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:R(ti,(function(t){var e=t.replace("mouse","pointer");return ei.hasOwnProperty(e)?e:t}))}),oi=["mousemove","mouseup"],ai=["pointermove","pointerup"],si=!1;function li(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ui(t){t&&(t.zrByTouch=!0)}function hi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var ci=function(t,e){this.stopPropagation=gt,this.stopImmediatePropagation=gt,this.preventDefault=gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},pi={mousedown:function(t){t=ee(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ee(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ee(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){hi(this,(t=ee(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){si=!0,t=ee(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){si||(t=ee(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){ui(t=ee(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),pi.mousemove.call(this,t),pi.mousedown.call(this,t)},touchmove:function(t){ui(t=ee(this.dom,t)),this.handler.processGesture(t,"change"),pi.mousemove.call(this,t)},touchend:function(t){ui(t=ee(this.dom,t)),this.handler.processGesture(t,"end"),pi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&pi.click.call(this,t)},pointerdown:function(t){pi.mousedown.call(this,t)},pointermove:function(t){li(t)||pi.mousemove.call(this,t)},pointerup:function(t){pi.mouseup.call(this,t)},pointerout:function(t){li(t)||pi.mouseout.call(this,t)}};O(["click","dblclick","contextmenu"],(function(t){pi[t]=function(e){e=ee(this.dom,e),this.trigger(t,e)}}));var di={pointermove:function(t){li(t)||di.mousemove.call(this,t)},pointerup:function(t){di.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function fi(t,e){var n=e.domHandlers;i.pointerEventsSupported?O(ri.pointer,(function(i){yi(e,i,(function(e){n[i].call(t,e)}))})):(i.touchEventsSupported&&O(ri.touch,(function(i){yi(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),O(ri.mouse,(function(i){yi(e,i,(function(r){r=te(r),e.touching||n[i].call(t,r)}))})))}function gi(t,e){function n(n){yi(e,n,(function(i){i=te(i),hi(t,i.target)||(i=function(t,e){return ee(t.dom,new ci(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.pointerEventsSupported?O(ai,n):i.touchEventsSupported||O(oi,n)}function yi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,ne(t.domTarget,e,n,i)}function vi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var mi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},xi=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new mi(e,pi),ii&&(i._globalHandlerScope=new mi(document,di)),fi(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){vi(this._localHandlerScope),ii&&vi(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ii&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?gi(this,e):vi(e)}},n}(Ht),_i=1;i.hasGlobalWindow&&(_i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bi=_i;function wi(){return[1,0,0,1,0,0]}function Si(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ii(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ti(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ci(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Di(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ai(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function ki(t){var e=[1,0,0,1,0,0];return Mi(e,t),e}var Li=Object.freeze({__proto__:null,create:wi,identity:Si,copy:Mi,mul:Ii,translate:Ti,rotate:Ci,scale:Di,invert:Ai,clone:ki}),Pi=Si;function Oi(t){return t>5e-5||t<-5e-5}var Ri=[],Ni=[],Ei=[1,0,0,1,0,0],zi=Math.abs,Bi=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Oi(this.rotation)||Oi(this.x)||Oi(this.y)||Oi(this.scaleX-1)||Oi(this.scaleY-1)||Oi(this.skewX)||Oi(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Pi(n),t&&(e?Ii(n,t,n):Mi(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Pi(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ri);var n=Ri[0]<0?-1:1,i=Ri[1]<0?-1:1,r=((Ri[0]-n)*e+n)/Ri[0]||0,o=((Ri[1]-i)*e+i)/Ri[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ai(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ii(Ni,t.invTransform,e),e=Ni);var n=this.originX,i=this.originY;(n||i)&&(Ei[4]=n,Ei[5]=i,Ii(Ni,e,Ei),Ni[4]-=n,Ni[5]-=i,e=Ni),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Et(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Et(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&zi(t[0]-1)>1e-10&&zi(t[3]-1)>1e-10?Math.sqrt(zi(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Fi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&Ci(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Vi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Fi(t,e){for(var n=0;nf&&(f=x,gf&&(f=_,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ui.x=Xi.x=n.x,Ui.y=Zi.y=n.y,Yi.x=Zi.x=n.x+n.width,Yi.y=Xi.y=n.y+n.height,Ui.transform(i),Zi.transform(i),Yi.transform(i),Xi.transform(i),e.x=Hi(Ui.x,Yi.x,Xi.x,Zi.x),e.y=Hi(Ui.y,Yi.y,Xi.y,Zi.y);var l=Wi(Ui.x,Yi.x,Xi.x,Zi.x),u=Wi(Ui.y,Yi.y,Xi.y,Zi.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),$i={};function Ji(t,e){var n=$i[e=e||r];n||(n=$i[e]=new tn(500));var i=n.get(t);return null==i&&(i=l.measureText(t,e).width,n.put(t,i)),i}function Qi(t,e,n,i){var r=Ji(t,e),o=ir(e),a=er(0,r,n),s=nr(0,o,i);return new Ki(a,s,r,o)}function tr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Qi(r[0],e,n,i);for(var o=new Ki(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function or(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=rr(i[0],n.width),u+=rr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var ar=Vi.concat(["ignore"]),sr=N(Vi,(function(t,e){return t[e]=!0,t}),{ignore:!1}),lr={},ur=new Ki(0,0,0,0),hr=function(){function t(t){this.id=b(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=ur;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(lr,n,u):or(lr,n,u),r.x=lr.x,r.y=lr.y,o=lr.align,a=lr.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=rr(h[0],u.width),p=rr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&fn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Sn(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},T(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(X(t))for(var n=B(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,n,i){var r="__zr_normal__"===t;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(A(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}w("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=A(i,t),o=A(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},p&&(S={});for(_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=A(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=A(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Sr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return W(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Mr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ir(t){return t.sort((function(t,e){return t-e})),t}function Tr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Cr(t)}function Cr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Dr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ar(t,e,n){if(!t[e])return 0;var i=N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var r=Math.pow(10,n),o=R(t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,s=R(o,(function(t){return Math.floor(t)})),l=N(s,(function(t,e){return t+e}),0),u=R(o,(function(t,e){return t-s[e]}));lh&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/r}function kr(t,e){var n=Math.max(Tr(t),Tr(e)),i=t+e;return n>20?i:Mr(i,n)}function Lr(t){var e=2*Math.PI;return(t%e+e)%e}function Pr(t){return t>-1e-4&&t<1e-4}var Or=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Rr(t){if(t instanceof Date)return t;if(W(t)){var e=Or.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Nr(t){return Math.pow(10,Er(t))}function Er(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function zr(t,e){var n=Er(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Br(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Vr(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&A(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var To=Io([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Co=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return To(this,t,e)},t}(),Do=new tn(50);function Ao(t){if("string"==typeof t){var e=Do.get(t);return e&&e.image}return t}function ko(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Do.get(t),a={hostEl:n,cb:i,cbPayload:r};if(o)!Po(e=o.image)&&o.pending.push(a);else{var s=l.loadImage(t,Lo,Lo);s.__zrImageSrc=t,Do.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function Lo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ji(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Eo(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ji(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?zo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Ji(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function zo(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=Uo(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=33&&e<=383}(t)||!!Ho[t]}function Uo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Yo="__zr_style_"+Math.round(10*Math.random()),Xo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Zo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xo[Yo]=!0;var jo=["z","z2","invisible"],qo=["invisible"],Ko=function(t){function n(e){return t.call(this,e)||this}var i;return e(n,t),n.prototype._init=function(e){for(var n=B(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(ra[0]=na(r)*n+t,ra[1]=ea(r)*i+e,oa[0]=na(o)*n+t,oa[1]=ea(o)*i+e,u(s,ra,oa),h(l,ra,oa),(r%=ia)<0&&(r+=ia),(o%=ia)<0&&(o+=ia),r>o&&!a?o+=ia:rr&&(aa[0]=na(d)*n+t,aa[1]=ea(d)*i+e,u(s,aa,s),h(l,aa,l))}var fa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ga=[],ya=[],va=[],ma=[],xa=[],_a=[],ba=Math.min,wa=Math.max,Sa=Math.cos,Ma=Math.sin,Ia=Math.abs,Ta=Math.PI,Ca=2*Ta,Da="undefined"!=typeof Float32Array,Aa=[];function ka(t){return Math.round(t/Ta*1e8)/1e8%2*Ta}function La(t,e){var n=ka(t[0]);n<0&&(n+=Ca);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Ca?r=n+Ca:e&&n-r>=Ca?r=n-Ca:!e&&n>r?r=n+(Ca-ka(n-r)):e&&n0&&(this._ux=Ia(n/bi/t)||0,this._uy=Ia(n/bi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(fa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Ia(t-this._xi),i=Ia(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(fa.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(fa.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(fa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Aa[0]=i,Aa[1]=r,La(Aa,o),i=Aa[0];var a=(r=Aa[1])-i;return this.addData(fa.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Sa(r)*n+t,this._yi=Ma(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(fa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(fa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Da||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){va[0]=va[1]=xa[0]=xa[1]=Number.MAX_VALUE,ma[0]=ma[1]=_a[0]=_a[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Ia(y)>i||c===e-1)&&(f=Math.sqrt(A*A+y*y),r=g,o=x);break;case fa.C:var v=t[c++],m=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=He(r,o,v,m,g,x,_,b,10),r=_,o=b;break;case fa.Q:f=je(r,o,v=t[c++],m=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case fa.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],D=C+T;c+=1;t[c++];d&&(a=Sa(T)*M+w,s=Ma(T)*I+S),f=wa(M,I)*ba(Ca,Math.abs(C)),r=Sa(D)*M+w,o=Ma(D)*I+S;break;case fa.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case fa.Z:var A=a-r;y=s-o;f=Math.sqrt(A*A+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case fa.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case fa.L:a=p[_++],s=p[_++];var S=Ia(a-r),M=Ia(s-o);if(S>d||M>f){if(y){if(v+(j=l[m++])>u){var I=(u-v)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}v+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case fa.C:var C=p[_++],D=p[_++],A=p[_++],k=p[_++],L=p[_++],P=p[_++];if(y){if(v+(j=l[m++])>u){Fe(r,C,A,L,I=(u-v)/j,ga),Fe(o,D,k,P,I,ya),t.bezierCurveTo(ga[1],ya[1],ga[2],ya[2],ga[3],ya[3]);break t}v+=j}t.bezierCurveTo(C,D,A,k,L,P),r=L,o=P;break;case fa.Q:C=p[_++],D=p[_++],A=p[_++],k=p[_++];if(y){if(v+(j=l[m++])>u){Xe(r,C,A,I=(u-v)/j,ga),Xe(o,D,k,I,ya),t.quadraticCurveTo(ga[1],ya[1],ga[2],ya[2]);break t}v+=j}t.quadraticCurveTo(C,D,A,k),r=A,o=k;break;case fa.A:var O=p[_++],R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=!p[_++],G=N>E?N:E,H=Ia(N-E)>.001,W=z+B,U=!1;if(y)v+(j=l[m++])>u&&(W=z+B*(u-v)/j,U=!0),v+=j;if(H&&t.ellipse?t.ellipse(O,R,N,E,V,z,W,F):t.arc(O,R,G,z,W,F),U)break t;w&&(n=Sa(z)*N+O,i=Ma(z)*E+R),r=Sa(W)*N+O,o=Ma(W)*E+R;break;case fa.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var Y=p[_++],X=p[_++];if(y){if(v+(j=l[m++])>u){var Z=u-v;t.moveTo(a,s),t.lineTo(a+ba(Z,Y),s),(Z-=Y)>0&&t.lineTo(a+Y,s+ba(Z,X)),(Z-=X)>0&&t.lineTo(a+wa(Y-Z,0),s+X),(Z-=Y)>0&&t.lineTo(a,s+wa(X-Z,0));break t}v+=j}t.rect(a,s,Y,X);break;case fa.Z:if(y){var j;if(v+(j=l[m++])>u){I=(u-v)/j;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}v+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=fa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Oa(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=Ba);var p=Math.atan2(l,s);return p<0&&(p+=Ba),p>=i&&p<=r||p+Ba>=i&&p+Ba<=r}function Fa(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var Ga=Pa.CMD,Ha=2*Math.PI;var Wa=[-1,-1,-1],Ua=[-1,-1];function Ya(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(h=void 0,h=Ua[0],Ua[0]=Ua[1],Ua[1]=h),f=Ee(e,i,o,s,Ua[0]),d>1&&(g=Ee(e,i,o,s,Ua[1]))),2===d?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(Re(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=De(u),p=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Wa);if(0===l)return 0;var u=Ye(e,i,o);if(u>=0&&u<=1){for(var h=0,c=We(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Wa[0]=-l,Wa[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ha-1e-4){i=0,r=Ha;var h=o?1:-1;return a>=Wa[0]+t&&a<=Wa[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Ha,r+=Ha);for(var p=0,d=0;d<2;d++){var f=Wa[d];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1;g<0&&(g=Ha+g),(g>=i&&g<=r||g+Ha>=i&&g+Ha<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function ja(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,p=0,d=0,f=0,g=0,y=0;y1&&(n||(c+=Fa(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case Ga.M:p=f=u[y++],d=g=u[y++];break;case Ga.L:if(n){if(Oa(p,d,u[y],u[y+1],e,i,r))return!0}else c+=Fa(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.C:if(n){if(Ra(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=Ya(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.Q:if(n){if(Na(p,d,u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=Xa(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=Fa(p,d,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(Va(x,_,w,S,S+M,I,e,T,r))return!0}else c+=Za(x,_,w,S,S+M,I,T,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case Ga.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],n){if(Oa(f,g,o,g,e,i,r)||Oa(o,g,o,a,e,i,r)||Oa(o,a,f,a,e,i,r)||Oa(f,a,f,g,e,i,r))return!0}else c+=Fa(o,g,o,a,i,r),c+=Fa(f,a,f,g,i,r);break;case Ga.Z:if(n){if(Oa(p,d,f,g,e,i,r))return!0}else c+=Fa(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(c+=Fa(p,d,f,g,i,r)||0),0!==c}var qa=C({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xo),Ka={style:C({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zo.style)},$a=Vi.concat(["invisible","culling","z","z2","zlevel","parent"]),Ja=function(t){function n(e){return t.call(this,e)||this}var i;return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<$a.length;++s)r[$a[s]]=this[$a[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=B(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(W(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Mn(t,0)<.4)return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new Pa(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ja(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ja(t,0,!1,e,n)}(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:T(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return pt(qa,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=T({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=T({},i.shape),T(s,n.shape)):(s=T({},r?this.shape:i.shape),T(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=T({},this.shape);for(var u={},h=B(s),c=0;c0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.createStyle=function(t){return pt(Qa,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=tr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=void(n.prototype.dirtyRectTolerance=10),n}(Ko);ts.prototype.type="tspan";var es=C({x:0,y:0},Xo),ns={style:C({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zo.style)};var is=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return pt(es,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return ns},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ki(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Ko);is.prototype.type="image";var rs=Math.round;function os(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(rs(2*i)===rs(2*r)&&(t.x1=t.x2=ss(i,s,!0)),rs(2*o)===rs(2*a)&&(t.y1=t.y2=ss(o,s,!0)),t):t}}function as(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ss(i,s,!0),t.y=ss(r,s,!0),t.width=Math.max(ss(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ss(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ss(t,e,n){if(!e)return t;var i=rs(2*t);return(i+rs(e))%2==0?i/2:(i+(n?1:-1))/2}var ls=function(){this.x=0,this.y=0,this.width=0,this.height=0},us={},hs=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new ls},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=as(us,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(Ja);hs.prototype.type="rect";var cs={fill:"#000"},ps={style:C({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Zo.style)},ds=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=cs,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&h){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=No(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,D=0;Dl&&Go(n,t.substring(l,u),e,s),Go(n,i[2],e,s,i[1]),l=Oo.lastIndex}lo){b>0?(m.tokens=m.tokens.slice(0,b),y(m,_,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var C=w.width,D=null==C||"auto"===C;if("string"==typeof C&&"%"===C.charAt(C.length-1))P.percentWidth=C,h.push(P),P.contentWidth=Ji(P.text,I);else{if(D){var A=w.backgroundColor,k=A&&A.image;k&&Po(k=Ao(k))&&(P.width=Math.max(P.width,k.width*T/k.height))}var L=f&&null!=r?r-_:null;null!=L&&L=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(n-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},n.prototype._placeToken=function(t,e,n,i,o,a,s){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,h=i+n/2;"top"===u?h=i+t.height/2:"bottom"===u&&(h=i+n-t.height/2),!t.isLineHolder&&Is(l)&&this._renderBackground(l,e,"right"===a?o-t.width:"center"===a?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!l.backgroundColor,p=t.textPadding;p&&(o=Ss(o,a,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(ts),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=ws("fill"in l?l.fill:"fill"in e?e.fill:(y=!0,g.fill)),x=bs("stroke"in l?l.stroke:"stroke"in e?e.stroke:c||s||g.autoStroke&&!y?null:(v=2,g.stroke)),_=l.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=o,f.y=h,_&&(f.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,f.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=a,f.textBaseline="middle",f.font=t.font||r,f.opacity=nt(l.opacity,e.opacity,1),ms(f,l),x&&(f.lineWidth=nt(l.lineWidth,e.lineWidth,v),f.lineDash=et(l.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new Ki(er(f.x,b,f.textAlign),nr(f.y,w,f.textBaseline),b,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||h&&c){(a=this._getOrCreateChild(hs)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=i,y.width=r,y.height=o,y.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=et(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(is)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=et(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=nt(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return xs(t)&&(e=[t.fontStyle,t.fontWeight,vs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&at(e)||t.textFont||t.font},n}(Ko),fs={left:!0,right:1,center:1},gs={top:1,bottom:1,middle:1},ys=["fontStyle","fontWeight","fontSize","fontFamily"];function vs(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function ms(t,e){for(var n=0;n=0,o=!1;if(t instanceof Ja){var a=ks(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Rs(s)||Rs(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=T({},i),(u=T({},u)).fill=s):!Rs(u.fill)&&Rs(s)?(o=!0,i=T({},i),(u=T({},u)).fill=Es(s)):!Rs(u.stroke)&&Rs(l)&&(o||(i=T({},i),u=T({},u)),u.stroke=Es(l)),i.style=u}}if(i&&null==i.z2){o||(i=T({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=A(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function hl(t,e,n){yl(t,!0),Ys(t,js),pl(t,e,n)}function cl(t,e,n,i){i?function(t){yl(t,!1)}(t):hl(t,e,n)}function pl(t,e,n){var i=Ts(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var dl=["emphasis","blur","select"],fl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gl(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=Il(f),s*=Il(f));var g=(r===o?-1:1)*Il((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+Cl(c)*y-Tl(c)*v,x=(e+i)/2+Tl(c)*y+Cl(c)*v,_=Ll([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Ll(b,w);if(kl(b,w)<=-1&&(S=Dl),kl(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Dl*1e6)/1e6;S=2*Dl+M%2*Dl}h.addData(u,m,x,a,s,_,S,c,o)}var Ol=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Rl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Nl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(t){},n}(Ja);function El(t){return null!=t.setData}function zl(t,e){var n=function(t){var e=new Pa;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Pa.CMD,l=t.match(Ol);if(!l)return e;for(var u=0;uk*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}function nu(t,e){var n,i=Jl(e.r,0),r=Jl(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,p=Kl(l-s),d=p>Yl&&p%Yl;if(d>tu&&(p=d),i>tu)if(p>Yl-tu)t.moveTo(u+i*Zl(s),h+i*Xl(s)),t.arc(u,h,i,s,l,!c),r>tu&&(t.moveTo(u+r*Zl(l),h+r*Xl(l)),t.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,k=i*Zl(s),L=i*Xl(s),P=r*Zl(l),O=r*Xl(l),R=p>tu;if(R){var N=e.cornerRadius;N&&(f=(n=function(t){var e;if(G(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],g=n[1],y=n[2],v=n[3]);var E=Kl(i-r)/2;if(m=Ql(E,y),x=Ql(E,v),_=Ql(E,f),b=Ql(E,g),M=w=Jl(m,x),I=S=Jl(_,b),(w>tu||S>tu)&&(T=i*Zl(l),C=i*Xl(l),D=r*Zl(s),A=r*Xl(s),ptu){var Y=Ql(y,M),X=Ql(v,M),Z=eu(D,A,k,L,i,Y,c),j=eu(T,C,P,O,i,X,c);t.moveTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),M0&&t.arc(u+Z.cx,h+Z.cy,Y,ql(Z.y0,Z.x0),ql(Z.y1,Z.x1),!c),t.arc(u,h,i,ql(Z.cy+Z.y1,Z.cx+Z.x1),ql(j.cy+j.y1,j.cx+j.x1),!c),X>0&&t.arc(u+j.cx,h+j.cy,X,ql(j.y1,j.x1),ql(j.y0,j.x0),!c))}else t.moveTo(u+k,h+L),t.arc(u,h,i,s,l,!c);else t.moveTo(u+k,h+L);if(r>tu&&R)if(I>tu){Y=Ql(f,I),Z=eu(P,O,T,C,r,-(X=Ql(g,I)),c),j=eu(k,L,D,A,r,-Y,c);t.lineTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),I0&&t.arc(u+Z.cx,h+Z.cy,X,ql(Z.y0,Z.x0),ql(Z.y1,Z.x1),!c),t.arc(u,h,r,ql(Z.cy+Z.y1,Z.cx+Z.x1),ql(j.cy+j.y1,j.cx+j.x1),c),Y>0&&t.arc(u+j.cx,h+j.cy,Y,ql(j.y1,j.x1),ql(j.y0,j.x0),!c))}else t.lineTo(u+P,h+O),t.arc(u,h,r,l,s,c);else t.lineTo(u+P,h+O)}else t.moveTo(u,h);t.closePath()}}}var iu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},ru=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new iu},n.prototype.buildPath=function(t,e){nu(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(Ja);ru.prototype.type="sector";var ou=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},au=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new ou},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(Ja);function su(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pTu[1]){if(a=!1,r)return a;var u=Math.abs(Tu[0]-Iu[1]),h=Math.abs(Iu[0]-Tu[1]);Math.min(u,h)>i.len()&&(u0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Nu(t,e,n,i,r,o){Ru("update",t,e,n,i,r,o)}function Eu(t,e,n,i,r,o){Ru("enter",t,e,n,i,r,o)}function zu(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function oh(t){return!t.isGroup}function ah(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){oh(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(oh(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Nu(t,i,n,Ts(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=T({},t.shape)),e}}function sh(t,e){return R(t,(function(t){var n=t[0];n=Hu(n,e.x),n=Wu(n,e.x+e.width);var i=t[1];return i=Hu(i,e.y),[n,i=Wu(i,e.y+e.height)]}))}function lh(t,e){var n=Hu(t.x,e.x),i=Wu(t.x+t.width,e.x+e.width),r=Hu(t.y,e.y),o=Wu(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function uh(t,e,n){var i=T({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),C(r,n),new is(i)):Ku(t.replace("path://",""),i,n,"center")}function hh(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=ph(f,g,u,h)/d;if(y<0||y>1)return!1;var v=ph(f,g,c,p)/d;return!(v<0||v>1)}function ph(t,e,n,i){return t*i-n*e}function dh(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=W(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&O(B(l),(function(t){ft(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Ts(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:C({content:i,formatterParams:s},r)}}function fh(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function gh(t,e){if(t)if(G(t))for(var n=0;n-1?"ZH":"EN";function $h(t,e){t=t.toUpperCase(),qh[t]=new Uh(e),jh[t]=e}function Jh(t){return qh[t]}$h("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),$h("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Qh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tc={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Qh.hour,minute:"{yyyy}-{MM}-{dd} "+Qh.minute,second:"{yyyy}-{MM}-{dd} "+Qh.second,millisecond:Qh.none},ec=["year","month","day","hour","minute","second","millisecond"],nc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ic(t,e){return"0000".substr(0,e-(t+="").length)+t}function rc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function oc(t){return t===rc(t)}function ac(t,e,n,i){var r=Rr(t),o=r[uc(n)](),a=r[hc(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[cc(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[pc(n)](),c=(h-1)%12+1,p=r[dc(n)](),d=r[fc(n)](),f=r[gc(n)](),g=(i instanceof Uh?i:Jh(i||Kh)||qh.EN).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,ic(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ic(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ic(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ic(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ic(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ic(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ic(f,3)).replace(/{S}/g,f+"")}function sc(t,e){var n=Rr(t),i=n[hc(e)]()+1,r=n[cc(e)](),o=n[pc(e)](),a=n[dc(e)](),s=n[fc(e)](),l=0===n[gc(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;return p&&1===i?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function lc(t,e,n){var i=Y(t)?Rr(t):t;switch(e=e||sc(t,n)){case"year":return i[uc(n)]();case"half-year":return i[hc(n)]()>=6?1:0;case"quarter":return Math.floor((i[hc(n)]()+1)/4);case"month":return i[hc(n)]();case"day":return i[cc(n)]();case"half-day":return i[pc(n)]()/24;case"hour":return i[pc(n)]();case"minute":return i[dc(n)]();case"second":return i[fc(n)]();case"millisecond":return i[gc(n)]()}}function uc(t){return t?"getUTCFullYear":"getFullYear"}function hc(t){return t?"getUTCMonth":"getMonth"}function cc(t){return t?"getUTCDate":"getDate"}function pc(t){return t?"getUTCHours":"getHours"}function dc(t){return t?"getUTCMinutes":"getMinutes"}function fc(t){return t?"getUTCSeconds":"getSeconds"}function gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function yc(t){return t?"setUTCFullYear":"setFullYear"}function vc(t){return t?"setUTCMonth":"setMonth"}function mc(t){return t?"setUTCDate":"setDate"}function xc(t){return t?"setUTCHours":"setHours"}function _c(t){return t?"setUTCMinutes":"setMinutes"}function bc(t){return t?"setUTCSeconds":"setSeconds"}function wc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Sc(t){if(!Gr(t))return W(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Mc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ic=rt,Tc=/([&<>"'])/g,Cc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Dc(t){return null==t?"":(t+"").replace(Tc,(function(t,e){return Cc[e]}))}function Ac(t,e,n){function i(t){return t&&at(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Rr(t):t;if(!isNaN(+s))return ac(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return U(t)?i(t):Y(t)&&r(t)?t+"":"-";var l=Fr(t);return r(l)?Sc(l):U(t)?i(t):"boolean"==typeof t?t+"":"-"}var kc=["a","b","c","d","e","f","g"],Lc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Pc(t,e,n){G(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Rc(t,e){return e=e||"transparent",W(t)?t:X(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Nc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Ec=O,zc=["left","right","top","bottom","width","height"],Bc=[["width","left","right"],["height","top","bottom"]];function Vc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var Fc=Vc;F(Vc,"vertical"),F(Vc,"horizontal");function Gc(t,e,n){n=Ic(n||0);var i=e.width,r=e.height,o=Sr(t.left,i),a=Sr(t.top,r),s=Sr(t.right,i),l=Sr(t.bottom,r),u=Sr(t.width,i),h=Sr(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new Ki(o+n[3],a+n[0],u,h);return f.margin=n,f}function Hc(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Ki(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=Gc(C({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function Wc(t){var e=t.layoutMode||t.constructor.layoutMode;return X(e)?e:e?{type:e}:null}function Uc(t,e,n){var i=n&&n.ignoreSize;!G(i)&&(i=[i,i]);var r=a(Bc[0],0),o=a(Bc[1],1);function a(n,r){var o={},a=0,u={},h=0;if(Ec(n,(function(e){u[e]=t[e]})),Ec(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=M(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return po(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(Uh);_o(jc,Uh),Mo(jc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=mo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=mo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(jc),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return O(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return O(t,(function(t){A(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),O(s,(function(t){A(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);A(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(O(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],p=!!u[h];p&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),O(c.successor,p?f:d)}O(u,(function(){var t="";throw new Error(t)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(jc,(function(t){var e=[];O(jc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=R(e,(function(t){return mo(t).main})),"dataset"!==t&&A(e,"dataset")<=0&&e.unshift("dataset");return e}));var qc="";"undefined"!=typeof navigator&&(qc=navigator.platform||"");var Kc="rgba(0, 0, 0, 0.2)",$c={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Kc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Jc=ht(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Qc=1,tp=2,ep=3,np=ao();function ip(t,e,n){var i={},r=op(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=np(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;O(t=t.slice(),(function(e,n){var r=X(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var vp=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Uh(i),this._locale=new Uh(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=_p(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,_p(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):cp(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&O(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ht(),s=e&&e.replaceMergeMainTypeMap;np(this).datasetMap=ht(),O(t,(function(t,e){null!=t&&(jc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?S(t):M(n[e],t,!0))})),s&&s.each((function(t,e){jc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),jc.topologicalTravel(o,jc.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=lp.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,jr(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Qr(a,o,l);(function(t,e,n){O(t,(function(t){var i=t.newOption;X(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,jc),n[e]=null,i.set(e,null),r.set(e,0);var h,c=[],p=[],d=0;O(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=jc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=T({componentIndex:n},t.keyInfo);T(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))}),this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&up(this)}),this),this._seriesIndices||up(this)},n.prototype.getOption=function(){var t=S(this.option);return O(t,(function(e,n){if(jc.hasClass(n)){for(var i=jr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ro(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t["\0_ec_inner"],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}var Dp=O,Ap=X,kp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=kp.length;n=0;f--){var g=t[f];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var y=g.data.getByRawIndex(g.stackResultDimension,c);if(p>=0&&y>0||p<=0&&y<0){p=kr(p,y),d=y;break}}}return i[0]=p,i[1]=d,i}))}))}var qp,Kp,$p,Jp,Qp,td=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return xd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function wd(t){var e,n;return X(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Sd(t){return new Md(t)}var Md=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},kd=function(){function t(t,e){if(!Y(e)){var n="";0,Xr(n)}this._opFn=Ad[t],this._rvalFloat=Fr(e)}return t.prototype.evaluate=function(t){return Y(t)?this._opFn(t,this._rvalFloat):this._opFn(Fr(t),this._rvalFloat)},t}(),Ld=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Y(t)?t:Fr(t),i=Y(e)?e:Fr(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=W(t),s=W(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),Pd=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Fr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Fr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Od(t,e){return"eq"===t||"ne"===t?new Pd("eq"===t,e):ft(Ad,t)?new kd(t,e):null}var Rd=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Td(t,e)},t}();function Nd(t){var e=t.sourceFormat;if(!Gd(e)){var n="";0,Xr(n)}return t.data}function Ed(t){var e=t.sourceFormat,n=t.data;if(!Gd(e)){var i="";0,Xr(i)}if("arrayRows"===e){for(var r=[],o=0,a=n.length;o65535?Wd:Ud}function qd(t,e,n,i,r){var o=Zd[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=R(o,(function(t){return t.property})),u=0;uy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&x<=h||isNaN(x))&&(a[s++]=d),d++}p=!0}else if(2===r){f=c[i[0]];var y=c[i[1]],v=t[i[1]][0],m=t[i[1]][1];for(g=0;g=u&&x<=h||isNaN(x))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g=u&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(jd(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var p=1;pn&&(n=i,r=I)}M>0&&M<_-x&&(c[l++]=Math.min(S,r),r=Math.max(S,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=[1/0,-1/0],c=new(jd(this._rawCount))(Math.ceil(u/s)),p=0,d=0;du-d&&(s=u-d,a.length=s);for(var f=0;fh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Td(t[i],this._dimensions[i])}Hd={arrayRows:t,objectRows:function(t,e,n,i){return Td(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Td(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),$d=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Qd(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=j(a=o.get("data",!0))?"typedArray":"original",e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=et(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=et(h.sourceHeader,c.sourceHeader),f=et(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f?[nd(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{t=[nd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&tf(o)}var a,s=[],l=[];return O(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||tf(n),s.push(e),l.push(t._getVersionSign())})),i?e=function(t,e,n){var i=jr(t),r=i.length,o="";r||Xr(o);for(var a=0,s=r;a1||n>0&&!t.noHeader;return O(t.blocks,(function(t){var n=lf(t);n>=e&&(e=n+ +(i&&(!n||af(t)&&!t.noHeader)))})),e}return 0}function uf(t,e,n,i){var r,o=e.noHeader,a=(r=lf(e),{html:nf[r],richText:rf[r]}),s=[],l=e.blocks||[];ot(!l||G(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(ft(h,u)){var c=new Ld(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}O(l,(function(n,r){var o=e.valueFormatter,l=sf(n)(o?T(T({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):pf(s.join(""),o?n:a.html);if(o)return p;var d=Ac(e.header,"ordinal",t.useUTC),f=ef(i,t.renderMode).nameStyle;return"richText"===t.renderMode?df(t,d,f)+a.richText+p:pf(''+Dc(d)+"
"+p,n)}function hf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return R(t=G(t)?t:[t],(function(t,e){return Ac(t,G(d)?d[e]:d,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Ac(l,"ordinal",u),d=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,v=ef(i,r),m=v.nameStyle,x=v.valueStyle;return"richText"===r?(s?"":c)+(o?"":df(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,o)}(t,f,g,y,x)):pf((s?"":c)+(o?"":function(t,e,n){return''+Dc(t)+""}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=G(t)?t:[t],''+R(t,(function(t){return Dc(t)})).join(" ")+""}(f,g,y,x)),n)}}function cf(t,e,n,i,r,o){if(t)return sf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function pf(t,e){return''}function df(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function ff(t,e){return Rc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function gf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var yf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Hr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Oc({color:e,type:t,renderMode:n,markerId:i});return W(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};G(e)?O(e,(function(t){return T(n,t)})):T(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function vf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=G(c),d=ff(o,a);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=N(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(of("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?O(i,(function(t){h(xd(o,n,t),t)})):O(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=xd(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=io(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return of("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[of("nameValue",{markerType:"item",markerColor:d,name:x,noName:!at(x),value:e,valueType:n})].concat(i||[])})}var mf=ao();function xf(t,e){return t.getName(e)||t.getId(e)}var _f=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Sd({count:wf,reset:Sf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(mf(this).sourceManager=new $d(this)).prepareSource();var i=this.getInitialData(t,n);If(i,this),this.dataTask.context.data=i,mf(this).dataBeforeProcessed=i,bf(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Wc(this),i=n?Yc(t):{},r=this.subType;jc.hasClass(r)&&(r+="Series"),M(t,e.getTheme().get(this.subType)),M(t,this.getDefaultOption()),qr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Uc(t,i,n)},n.prototype.mergeOption=function(t,e){t=M(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Wc(this);n&&Uc(this.option,t,n);var i=mf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);If(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,mf(this).dataBeforeProcessed=r,bf(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!j(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=fp.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[xf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){X(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},n.registerClass=function(t){return jc.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(jc);function bf(t){var e=t.name;io(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return O(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function wf(t){return t.model.getRawData().count()}function Sf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Mf}function Mf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function If(t,e){O(ct(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,F(Tf,e))}))}function Tf(t,e){var n=Cf(t);return n&&n.setOutputEnd((e||this).count()),e}function Cf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}L(_f,bd),L(_f,fp),_o(_f,jc);var Df=function(){function t(){this.group=new gr,this.uid=Xh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function Af(){var t=ao();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}xo(Df),Mo(Df);var kf=ao(),Lf=Af(),Pf=function(){function t(){this.group=new gr,this.uid=Xh("viewChart"),this.renderTask=Sd({plan:Nf,reset:Ef}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Rf(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Rf(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){gh(this.group,t)},t.markUpdateMethod=function(t,e){kf(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Of(t,e,n){t&&vl(t)&&("emphasis"===e?$s:Js)(t,n)}function Rf(t,e,n){var i=oo(t,e),r=e&&null!=e.highlightKey?function(t){var e=As[t];return null==e&&Ds<=32&&(e=As[t]=Ds++),e}(e.highlightKey):null;null!=i?O(jr(i),(function(e){Of(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Of(t,n,r)}))}function Nf(t){return Lf(t.model)}function Ef(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&kf(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),zf[l]}xo(Pf),Mo(Pf);var zf={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Bf="\0__throttleOriginMethod",Vf="\0__throttleRate";function Ff(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=(new Date).getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function Gf(t,e,n,i){var r=t[e];if(r){var o=r[Bf]||r,a=r["\0__throttleType"];if(r[Vf]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Ff(o,n,"debounce"===i))[Bf]=o,r["\0__throttleType"]=i,r[Vf]=n}return r}}function Hf(t,e){var n=t[e];n&&n[Bf]&&(n.clear&&n.clear(),t[e]=n[Bf])}var Wf=ao(),Uf={itemStyle:Io(Gh,!0),lineStyle:Io(Bh,!0)},Yf={lineStyle:"stroke",itemStyle:"fill"};function Xf(t,e){var n=t.visualStyleMapper||Uf[e];return n||(console.warn("Unkown style type '"+e+"'."),Uf.itemStyle)}function Zf(t,e){var n=t.visualDrawType||Yf[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var jf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Xf(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Zf(t,i),l=o[s],u=H(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||H(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||H(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=T({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},qf=new Uh,Kf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Xf(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){qf.option=n[i];var a=r(qf);T(t.ensureUniqueItemVisual(e,"style"),a),qf.option.decal&&(t.setItemVisual(e,"decal",qf.option.decal),qf.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},$f={performRawSeries:!0,overallReset:function(t){var e=ht();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Wf(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Wf(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Zf(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},Jf=Math.PI;var Qf=function(){function t(t,e,n,i){this._stageTaskMap=ht(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;O(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";ot(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}O(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each((function(t){t.perform(d)})),h.perform(d)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ht(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Sd({plan:rg,reset:og,count:lg}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Sd({reset:tg});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ht(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1,p="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,Sd({reset:eg,onDirty:ig})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}ot(!t.createOnAllSeries,p),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(h=!1,O(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return H(t)&&(t={overallReset:t,seriesType:ug(t)}),t.uid=Xh("stageHandler"),e&&(t.visualType=e),t},t}();function tg(t){t.overallReset(t.ecModel,t.api,t.payload)}function eg(t){return t.overallProgress&&ng}function ng(){this.agent.dirty(),this.getDownstream().dirty()}function ig(){this.agent&&this.agent.dirty()}function rg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function og(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=jr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?R(e,(function(t,e){return sg(e)})):ag}var ag=sg(0);function sg(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),xg=["symbol","symbolSize","symbolRotate","symbolOffset"],_g=xg.concat(["symbolKeepAspect"]),bg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Y(e)?[e]:G(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=R(r,(function(t){return t/a})),o/=a)}return[r,o]}var Zg=new Pa(!0);function jg(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function qg(t){return"string"==typeof t&&"none"!==t}function Kg(t){var e=t.fill;return null!=e&&"none"!==e}function $g(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Jg(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Qg(t,e,n){var i=ko(e.image,e.__image,n);if(Po(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*yt),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var ty=["shadowBlur","shadowOffsetX","shadowOffsetY"],ey=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ny(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){oy(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Xo.opacity:a}(i||e.blend!==n.blend)&&(o||(oy(t,r),o=!0),t.globalCompositeOperation=e.blend||Xo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)Ky(this.id);else{var i,r,o;if(X(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new Tp(this._api),s=this._theme,l=this._model=new vp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},tv);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Cy(this),ky.update.call(this,null,u)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Ry.call(this,i),Ny.call(this,i)}}},n.prototype.setTheme=function(){Yr()},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xy&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(i.svgSupported){var t=this._zr;return O(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;O(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return O(i,(function(t){t.group.ignore=!1})),o}Ky(this.id)},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(ov[n]){var a=o,s=o,u=-1/0,h=-1/0,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();O(rv,(function(o,l){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(S(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}));var d=(u*=p)-(a*=p),f=(h*=p)-(s*=p),g=l.createCanvas(),y=xr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:d,height:f}),e){var v="";return O(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),y.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new hs({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),O(c,(function(t){var e=new is({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});y.add(e)})),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Ky(this.id)},n.prototype.convertToPixel=function(t,e){return Ly(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return Ly(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){var n;if(!this._disposed)return O(lo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&O(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n;Ky(this.id)},n.prototype.getVisual=function(t,e){var n=lo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel;var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?Sg(r,o,e):Mg(r,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t,e,n,i=this;O(qy,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&Dg(o,(function(t){var e=Ts(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=T({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),h=u&&i["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:h},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),O(Jy,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),O(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Cg("map","selectchanged",e,i,t),Cg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Cg("map","selected",e,i,t),Cg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Cg("map","unselected",e,i,t),Cg("pie","unselected",e,i,t))}))},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed?Ky(this.id):this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(this._disposed)Ky(this.id);else{this._disposed=!0,this.getDom()&&fo(this.getDom(),lv,"");var t=this,e=t._api,n=t._model;O(t._componentsViews,(function(t){t.dispose(n,e)})),O(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete rv[t.id]}},n.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)Ky(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&Cy(this),ky.update.call(this,{type:"resize",animation:T({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,Ry.call(this,i),Ny.call(this,i)}}},n.prototype.showLoading=function(t,e){if(this._disposed)Ky(this.id);else if(X(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),iv[t]){var n=iv[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed?Ky(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=T({},t);return e.type=Jy[t.type],e},n.prototype.dispatchAction=function(t,e){if(this._disposed)Ky(this.id);else if(X(e)||(e={silent:!!e}),$y[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Oy.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&i.browser.weChat&&this._throttledZrFlush(),Ry.call(this,n),Ny.call(this,n)}},n.prototype.updateLabelLayout=function(){yy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(this._disposed)Ky(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function n(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(zu(t))return;if(t instanceof Ja&&function(t){var e=ks(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Cy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Dy(t,!0),Dy(t,!1),e.plan()},Dy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!i.node&&!i.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),yy.trigger("series:afterupdate",e,n,l)},Wy=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Uy=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){zu(t)||n(t)})),t.__needsUpdateStatus=!1)},Gy=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){$s(e,n),Wy(t)},i.prototype.leaveEmphasis=function(e,n){Js(e,n),Wy(t)},i.prototype.enterBlur=function(e){Qs(e),Wy(t)},i.prototype.leaveBlur=function(e){tl(e),Wy(t)},i.prototype.enterSelect=function(e){el(e),Wy(t)},i.prototype.leaveSelect=function(e){nl(e),Wy(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(wp))(t)},Hy=function(t){function e(t,e){for(var n=0;n=0)){Cv.push(n);var o=Qf.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Av(t,e){iv[t]=e}function kv(t){u({createCanvas:t})}function Lv(t,e,n){var i=my("registerMap");i&&i(t,e,n)}function Pv(t){var e=my("getMap");return e&&e(t)}var Ov=function(t){var e=(t=S(t)).type,n="";e||Xr(n);var i=e.split(":");2!==i.length&&Xr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,Vd.set(e,t)};Tv(2e3,jf),Tv(4500,Kf),Tv(4500,$f),Tv(2e3,bg),Tv(4500,wg),Tv(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=py(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=py(r,e)}}))})),vv(Zp),mv(900,(function(t){var e=ht();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(jp)})),Av("default",(function(t,e){C(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new gr,i=new hs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ds({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new hs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new _u({shape:{startAngle:-Jf/2,endAngle:-Jf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jf/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jf/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),wv({type:"highlight",event:"highlight",update:"highlight"},gt),wv({type:"downplay",event:"downplay",update:"downplay"},gt),wv({type:"select",event:"select",update:"select"},gt),wv({type:"unselect",event:"unselect",update:"unselect"},gt),wv({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},gt),yv("light",gg),yv("dark",vg);var Rv={},Nv=[],Ev={registerPreprocessor:vv,registerProcessor:mv,registerPostInit:xv,registerPostUpdate:_v,registerUpdateLifecycle:bv,registerAction:wv,registerCoordinateSystem:Sv,registerLayout:Iv,registerVisual:Tv,registerTransform:Ov,registerLoading:Av,registerMap:Lv,registerImpl:function(t,e){vy[t]=e},PRIORITY:wy,ComponentModel:jc,ComponentView:Df,SeriesModel:_f,ChartView:Pf,registerComponentModel:function(t){jc.registerClass(t)},registerComponentView:function(t){Df.registerClass(t)},registerSeriesModel:function(t){_f.registerClass(t)},registerChartView:function(t){Pf.registerClass(t)},registerSubTypeDefaulter:function(t,e){jc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_r(t,e)}};function zv(t){G(t)?O(t,(function(t){zv(t)})):A(Nv,t)>=0||(Nv.push(t),H(t)&&(t={install:t}),t.install(Ev))}function Bv(t){return null==t?0:t.length||1}function Vv(t){return t}var Fv=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Vv,this._newKeyGetter=i||Vv,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30}var Jv,Qv,tm,em,nm,im,rm,om=X,am=R,sm="undefined"==typeof Int32Array?Array:Int32Array,lm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],um=["_approximateExtent"],hm=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;jv(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(G(r=this.getVisual(e))?r=r.slice():om(r)&&(r=T({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,om(e)?T(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){om(t)?T(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?T(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Cs(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){O(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:am(this.dimensions,this._getDimInfo,this),this.hostModel)),nm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(it(arguments)))})},t.internalField=(Jv=function(t){var e=t._invertedIndicesMap;O(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new sm(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();function cm(t,e){ed(t)||(t=id(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=ht(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return O(e,(function(t){var e;X(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&$v(a),l=i===t.dimensionsDefine,u=l?Kv(t):qv(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=ht(h),p=new Yd(a),d=0;d0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Zv({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function pm(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}var dm=function(t){this.coordSysDims=[],this.axisMap=ht(),this.categoryAxisMap=ht(),this.coordSysName=t};var fm={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ho).models[0],o=t.getReferringComponents("yAxis",ho).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),gm(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),gm(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",ho).models[0];e.coordSysDims=["single"],n.set("single",r),gm(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",ho).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),gm(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),gm(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();O(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),gm(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function gm(t){return"category"===t.get("type")}function ym(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!jv(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p=!(!t||!t.get("stack"));if(O(i,(function(t,e){W(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;O(i,(function(t){t.coordDim===d&&g++}));var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function vm(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function mm(t,e){return vm(t,e)?t.getCalculationInfo("stackResultDimension"):e}function xm(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=id(t)):o="original"===(i=r.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),n=new dm(e),i=fm[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Mp.get(i);return e&&e.coordSysDims&&(n=R(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Wv(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=H(l)?l:l?F(ip,s,e):null,h=cm(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&O(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=ym(e,{schema:h,store:p}),f=new hm(h,e);f.setCalculationInfo(d);var g=null!=c&&function(t){if("original"===t.sourceFormat){return!G($r(function(t){var e=0;for(;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Mo(_m);var bm=0,wm=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bm}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&R(i,Sm);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ht(this.categories))},t}();function Sm(t){return X(t)&&null!=t.value?t.value:t+""}function Mm(t){return"interval"===t.type||"log"===t.type}function Im(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=zr(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=Cm(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Dm(t,0,e),Dm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Mr(Math.ceil(t[0]/a)*a,s),Mr(Math.floor(t[1]/a)*a,s)],t),r}function Tm(t){var e=Math.pow(10,Er(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Mr(n*e)}function Cm(t){return Tr(t)+2}function Dm(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Am(t,e){return t>=e[0]&&t<=e[1]}function km(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Lm(t,e){return t*(e[1]-e[0])+e[0]}var Pm=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new wm({})),G(i)&&(i=new wm({categories:R(i,(function(t){return X(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?NaN:W(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return Am(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return km(t=this._getTickNumber(this.parse(t)),this._extent)},n.prototype.scale=function(t){return t=Math.round(Lm(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(t){},n.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(_m);_m.registerClass(Pm);var Om=Mr,Rm=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Am(t,this._extent)},n.prototype.normalize=function(t){return km(t,this._extent)},n.prototype.scale=function(t){return Lm(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cm(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:Om(s+e,r)}):o.push({value:n[1]})),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return O(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var p=Sr(t.get("barWidth"),i),d=Sr(t.get("barMaxWidth"),i),f=Sr(t.get("barMinWidth")||(Xm(t)?.5:1),i),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:Vm(r),stackId:Bm(t)})})),Hm(n)}function Hm(t){var e={};O(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return O(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=B(i).length;o=Math.max(35-4*a,15)+"%"}var s=Sr(o,r),l=Sr(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),O(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;O(i,(function(t,e){t.width||(t.width=c),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;O(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Wm(t,e){var n=Fm(t,e),i=Gm(n);O(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Bm(t),o=i[Vm(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Um(t){return{seriesType:t,plan:Af(),reset:function(t){if(Ym(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=vm(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=Xm(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&zm(3*r),u=d&&s&&zm(3*r),m=d&&zm(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=p,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,D=void 0,A=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);if(h)I=n.dataToPoint([T,M])[0];C=I,D=L[1]+v,A=L[0]-I,k=y,Math.abs(A)0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(G(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return ac(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=nc,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&v<=i[1]&&c++)}var m=(i[1]-i[0])/e;if(c>1.5*m&&p>m/1.5)break;if(u.push(g),c>m||t===o[d])break}h=[]}}0;var x=E(R(u,(function(t){return E(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;dn&&(this._approxInterval=n);var o=jm.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Km(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function $m(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Jm(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Qm(t){return zr(t,!0)}function tx(t,e,n){var i=new Date(t);switch(rc(e)){case"year":case"month":i[vc(n)](0);case"day":i[mc(n)](1);case"hour":i[xc(n)](0);case"minute":i[_c(n)](0);case"second":i[bc(n)](0),i[wc(n)](0)}return i.getTime()}_m.registerClass(Zm);var ex=_m.prototype,nx=Rm.prototype,ix=Mr,rx=Math.floor,ox=Math.ceil,ax=Math.pow,sx=Math.log,lx=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Rm,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return R(nx.getTicks.call(this,t),(function(t){var e=t.value,r=Mr(ax(this.base,e));return r=e===n[0]&&this._fixMin?hx(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?hx(r,i[1]):r}}),this)},n.prototype.setExtent=function(t,e){var n=this.base;t=sx(t)/sx(n),e=sx(e)/sx(n),nx.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=ex.getExtent.call(this);e[0]=ax(t,e[0]),e[1]=ax(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=hx(e[0],n[0])),this._fixMax&&(e[1]=hx(e[1],n[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=sx(t[0])/sx(e),t[1]=sx(t[1])/sx(e),ex.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Nr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Mr(ox(e[0]/i)*i),Mr(rx(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},n.prototype.calcNiceExtent=function(t){nx.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Am(t=sx(t)/sx(this.base),this._extent)},n.prototype.normalize=function(t){return km(t=sx(t)/sx(this.base),this._extent)},n.prototype.scale=function(t){return t=Lm(t,this._extent),ax(this.base,t)},n.type="log",n}(_m),ux=lx.prototype;function hx(t,e){return ix(t,Tr(e))}ux.getMinorTicks=nx.getMinorTicks,ux.getLabel=nx.getLabel,_m.registerClass(lx);var cx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[dx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=px[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),px={min:"_determinedMin",max:"_determinedMax"},dx={min:"_dataMin",max:"_dataMax"};function fx(t,e,n){var i=t.rawExtentInfo;return i||(i=new cx(t,e,n),t.rawExtentInfo=i,i)}function gx(t,e){return null==e?null:Q(e)?NaN:t.parse(e)}function yx(t,e){var n=t.type,i=fx(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Fm("bar",a),l=!1;if(O(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Gm(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[Vm(e)];return null!=i&&null!=n?i[Bm(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;O(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;O(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function vx(t,e){var n=e,i=yx(t,n),r=i.extent,o=n.get("splitNumber");t instanceof lx&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function mx(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pm({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Zm({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_m.getClass(e)||Rm)}}function xx(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):W(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):H(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(_x(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function _x(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function bx(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Ki(t.x,t.y,o,a)}function Sx(t){var e=t.get("interval");return null==e?"auto":e}function Mx(t){return"category"===t.type&&0===Sx(t.getLabelModel())}function Ix(t,e){var n={};return O(t.mapDimensionsAll(e),(function(e){n[mm(t,e)]=!0})),B(n)}var Tx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();var Cx={isDimensionStacked:vm,enableDataStack:ym,getStackedDimension:mm};var Dx=Object.freeze({__proto__:null,createList:function(t){return xm(null,t)},getLayoutRect:Gc,dataStack:Cx,createScale:function(t,e){var n=e;e instanceof Uh||(n=new Uh(e));var i=mx(n);return i.setExtent(t[0],t[1]),vx(i,n),i},mixinAxisModelCommonMethods:function(t){L(t,Tx)},getECData:Ts,createTextStyle:function(t,e){return wh(t,null,null,"normal"!==(e=e||{}).state)},createDimensions:function(t,e){return cm(t,e).dimensions},createSymbol:Fg,enableHoverEmphasis:hl});function Ax(t,e){return Math.abs(t-e)<1e-8}function kx(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;on&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Gx(t,e){return R(E((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),O(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Fx(r,i,n);break;case"Polygon":case"MultiLineString":Vx(r,i,n);break;case"MultiPolygon":O(r,(function(t,e){return Vx(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Nx(o[0],o.slice(1)));break;case"MultiPolygon":O(i.coordinates,(function(t){t[0]&&r.push(new Nx(t[0],t.slice(1)))}));break;case"LineString":r.push(new Ex([i.coordinates]));break;case"MultiLineString":r.push(new Ex(i.coordinates))}var a=new zx(n[e||"name"],r,n.cp);return a.properties=n,a}))}var Hx=Object.freeze({__proto__:null,linearMap:wr,round:Mr,asc:Ir,getPrecision:Tr,getPrecisionSafe:Cr,getPixelPrecision:Dr,getPercentWithPrecision:Ar,MAX_SAFE_INTEGER:9007199254740991,remRadian:Lr,isRadianAroundZero:Pr,parseDate:Rr,quantity:Nr,quantityExponent:Er,nice:zr,quantile:Br,reformIntervals:Vr,isNumeric:Gr,numericToNumber:Fr}),Wx=Object.freeze({__proto__:null,parse:Rr,format:ac}),Ux=Object.freeze({__proto__:null,extendShape:Yu,extendPath:Zu,makePath:Ku,makeImage:$u,mergePath:Qu,resizePath:th,createIcon:uh,updateProps:Nu,initProps:Eu,getTransform:nh,clipPointsByRect:sh,clipRectByRect:lh,registerShape:ju,getShapeClass:qu,Group:gr,Image:is,Text:ds,Circle:Gl,Ellipse:Wl,Sector:ru,Ring:au,Polygon:uu,Polyline:cu,Rect:hs,Line:fu,BezierCurve:mu,Arc:_u,IncrementalDisplayable:Lu,CompoundPath:bu,LinearGradient:Su,RadialGradient:Mu,BoundingRect:Ki}),Yx=Object.freeze({__proto__:null,addCommas:Sc,toCamelCase:Mc,normalizeCssArray:Ic,encodeHTML:Dc,formatTpl:Pc,getTooltipMarker:Oc,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Rr(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",ic(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",ic(s,2)).replace("d",s).replace("hh",ic(l,2)).replace("h",l).replace("mm",ic(u,2)).replace("m",u).replace("ss",ic(h,2)).replace("s",h).replace("SSS",ic(c,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:Ro,getTextRect:function(t,e,n,i,r,o,a,s){return new ds({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),Xx=Object.freeze({__proto__:null,map:R,each:O,indexOf:A,inherits:k,reduce:N,filter:E,bind:V,curry:F,isArray:G,isString:W,isObject:X,isFunction:H,extend:T,defaults:C,clone:S,merge:M}),Zx=ao();function jx(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=Kx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=xx(t);return{labels:R(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function qx(t,e){return"category"===t.type?function(t,e){var n,i,r=$x(t,"ticks"),o=Sx(e),a=Jx(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(H(o))n=e_(t,o,!0);else if("auto"===o){var s=Kx(t,t.getLabelModel());i=s.labelCategoryInterval,n=R(s.labels,(function(t){return t.tickValue}))}else n=t_(t,i=o,!0);return Qx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:R(t.scale.getTicks(),(function(t){return t.value}))}}function Kx(t,e){var n,i,r=$x(t,"labels"),o=Sx(e),a=Jx(r,o);return a||(H(o)?n=e_(t,o):(i="auto"===o?function(t){var e=Zx(t).autoInterval;return null!=e?e:Zx(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=t_(t,i)),Qx(r,o,{labels:n,labelCategoryInterval:i}))}function $x(t,e){return Zx(t)[e]||(Zx(t)[e]=[])}function Jx(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Mx(t),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function e_(t,e,n){var i=t.scale,r=xx(t),o=[];return O(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var n_=[0,1],i_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Dr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&r_(n=n.slice(),i.count()),wr(t,n_,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&r_(n=n.slice(),i.count());var r=wr(t,n,n_,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=R(qx(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;O(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var h=s[0]>s[1];c(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&c(s[0],e[0].coord)&&e.unshift({coord:s[0]});c(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&c(o.coord,s[1])&&e.push({coord:s[1]});function c(t,e){return t=Mr(t),e=Mr(e),h?t>e:t0&&t<100||(t=5),R(this.scale.getMinorTicks(t),(function(t){return R(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return jx(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=xx(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,y=tr(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=Zx(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function r_(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function o_(t){var e=jc.extend(t);return jc.registerClass(e),e}function a_(t){var e=Df.extend(t);return Df.registerClass(e),e}function s_(t){var e=_f.extend(t);return _f.registerClass(e),e}function l_(t){var e=Pf.extend(t);return Pf.registerClass(e),e}var u_=2*Math.PI,h_=Pa.CMD,c_=["top","right","bottom","left"];function p_(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function d_(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%u_<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=za(r),r=za(p)}else i=za(i),r=za(r);i>r&&(r+=u_);var d=Math.atan2(s,a);if(d<0&&(d+=u_),d>=i&&d<=r||d+u_>=i&&d+u_<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,x_.fromArray(t[0]),__.fromArray(t[1]),b_.fromArray(t[2]),Gi.sub(w_,x_,__),Gi.sub(S_,b_,__);var n=w_.len(),i=S_.len();if(!(n<.001||i<.001)){w_.scale(1/n),S_.scale(1/i);var r=w_.dot(S_);if(Math.cos(e)1&&Gi.copy(T_,b_),T_.toArray(t[1])}}}}function D_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,x_.fromArray(t[0]),__.fromArray(t[1]),b_.fromArray(t[2]),Gi.sub(w_,__,x_),Gi.sub(S_,b_,__);var i=w_.len(),r=S_.len();if(!(i<.001||r<.001))if(w_.scale(1/i),S_.scale(1/r),w_.dot(e)=a)Gi.copy(T_,b_);else{T_.scaleAndAdd(S_,o/Math.tan(Math.PI/2-s));var l=b_.x!==__.x?(T_.x-__.x)/(b_.x-__.x):(T_.y-__.y)/(b_.y-__.y);if(isNaN(l))return;l<0?Gi.copy(T_,__):l>1&&Gi.copy(T_,b_)}T_.toArray(t[1])}}}function A_(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function k_(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Pt(i[0],i[1]),o=Pt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Nt([],i[1],i[0],a/r),l=Nt([],i[1],i[2],a/o),u=Nt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&_(-h/a,0,a);var f,g,y=t[0],v=t[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[e]-i,g=r-v.rect[e]-v.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){_(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function _(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){_(-(o[l-1]*c),l,a)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?_(n,0,i+1):_(-n,a-i-1,a),(t-=n)<=0)return}}function N_(t,e,n,i){return R_(t,"y","height",e,n,i)}function E_(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ki(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(d.oldLayoutSelect),A(u,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),Nu(n,s,e,a)}else if(n.attr(s),!Ah(n).valueAnimation){var h=et(n.style.opacity,1);n.style.opacity=0,Eu(n,{style:{opacity:h}},e,a)}if(d.oldLayout=s,n.states.select){var c=d.oldLayoutSelect={};W_(c,s,U_),W_(c,n.states.select,U_)}if(n.states.emphasis){var p=d.oldLayoutEmphasis={};W_(p,s,U_),W_(p,n.states.emphasis,U_)}Lh(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(d=H_(i)).oldLayout;var d,f={points:i.shape.points};r?(i.attr({shape:r}),Nu(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,Eu(i,{style:{strokePercent:1}},e)),d.oldLayout=f}},t}(),X_=ao();var Z_=Math.sin,j_=Math.cos,q_=Math.PI,K_=2*Math.PI,$_=180/q_,J_=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=Dn(h-K_)||(u?l>=K_:-l>=K_),p=l>0?l%K_:l%K_+K_,d=!1;d=!!c||!Dn(h)&&p>=q_==!!u;var f=t+n*j_(o),g=e+i*Z_(o);this._start&&this._add("M",f,g);var y=Math.round(r*$_);if(c){var v=1/this._p,m=(u?1:-1)*(K_-v);this._add("A",n,i,y,1,+u,t+n*j_(o+m),e+i*Z_(o+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var x=t+n*j_(a),_=e+i*Z_(a);this._add("A",n,i,y,+d,+u,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+R(i,(function(e){return t(e)})).join(n)+n:"")+(""+r+">")}(t)}function sb(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lb(t,e,n,i){return ob("svg","root",{width:t,height:e,xmlns:nb,"xmlns:xlink":ib,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var ub={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function hb(t,e,n){var i=T({},t.shape);T(i,e),t.buildPath(n,i);var r=new J_;return r.reset(En(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function cb(t,e){var n=e.originX,i=e.originY;(n||i)&&(t["transform-origin"]=n+"px "+i+"px")}var pb={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function db(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function fb(t){return W(t)?ub[t]?"cubic-bezier("+ub[t]+")":Ke(t)?t:"":""}function gb(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof bu){if(y=function(t,e,n){var i,r,o=t.shape.paths,a={};if(O(o,(function(t){var e=sb(n.zrId);e.animation=!0,gb(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=B(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=db(a,n);return i.replace(r,s)}}(t,e,n))a.push(y);else if(!o)return}else if(!o)return;for(var s={},l=0;l0})).length)return db(h,n)+" "+r[0]+" both"}for(var g in s){var y;(y=f(s[g]))&&a.push(y)}if(a.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}var yb=Math.round;function vb(t){return t&&W(t.src)}function mb(t){return t&&H(t.toDataURL)}function xb(t,e,n,i){!function(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof is)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var o=Cn(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=Cn(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||h<1)&&t("stroke-opacity",h),e.lineDash){var p=Xg(n),d=p[0],f=p[1];d&&(f=Q_(f||0),t("stroke-dasharray",d.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray","none");for(var g=0;gl?Wb(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Ub(t,e,a,l))}(n,i,r):Vb(r)?(Vb(t.text)&&Eb(n,""),Wb(n,null,r,0,r.length-1)):Vb(i)?Ub(n,i,0,i.length-1):Vb(t.text)&&Eb(n,""):t.text!==e.text&&(Vb(i)&&Ub(n,i,0,i.length-1),Eb(n,e.text)))}var Zb=0,jb=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=qb("refreshHover"),this.configLayer=qb("configLayer"),this.storage=e,this._opts=n=T({},n),this.root=t,this._id="zr"+Zb++,this._oldVNode=lb(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=rb("svg");Yb(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Gb(t,e))Xb(t,e);else{var n=t.elm,i=Rb(n);Hb(e),null!==i&&(Lb(i,e.elm,Nb(n)),Ub(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Db(t,sb(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=sb(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Cn(n),l=s.color,u=s.opacity;this._bgVNode=ob("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=ob("g","main",{},[]);this._paintList(e,o,h?h.children:a),h&&a.push(h);var c=R(B(o.defs),(function(t){return o.defs[t]}));if(c.length&&a.push(ob("defs","defs",{},c)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=R(B(t),(function(e){return e+r+R(B(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=R(B(e),(function(t){return"@keyframes "+t+r+R(B(e[t]),(function(n){return n+r+R(B(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(o.cssNodes,o.cssAnims,{newline:!0});if(p){var d=ob("style","stl",{},[],p);a.push(d)}}return lb(i,r,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ab(this.renderToVNode({animation:et(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:et(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Cn(t),i=n.color,r=n.opacity;e.elm.setAttribute("fill",i),r<1&&e.elm.setAttribute("fill-opacity",r)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?.01:0),this._needsManuallyCompositing),u.__builtin__||w("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?M(n[t],e,!0):n[t]=e;for(var i=0;i-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},n}(_f);function tw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=xd(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var nw=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Fg(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=iw,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){$s(this.childAt(0))},n.prototype.downplay=function(){Js(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{(p=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(c):Nu(p,c,a,e),Gu(p)}if(this._updateCommon(t,e,s,i,r),l){var p=this.childAt(0);if(!u){c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Eu(p,c,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=bh(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=Hg(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof is){var w=f.style;f.useStyle(T({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(T({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;_h(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):tw(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");if(C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,p){var D=Math.max(Y(p)?p:1.1,3/this._sizeY);C.scaleX=this._sizeX*D,C.scaleY=this._sizeY*D}this.setSymbolScale(1),cl(this,l,u,h)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ts(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Bu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Bu(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return Gg(t.getItemVisual(e,"symbolSize"))},n}(gr);function iw(t,e){this.parent.drift(t,e)}function rw(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ow(t){return null==t||X(t)||(t={isIgnore:t}),t||{}}function aw(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:bh(e),cursorStyle:e.get("cursor")}}var sw=function(){function t(t){this.group=new gr,this._SymbolCtor=t||nw}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ow(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=aw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(rw(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(rw(t,d,h,e)){var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):Nu(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aw(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ow(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=R(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return vm(e,c[0])&&(p=!0,c[0]=d),vm(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function uw(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var hw=Math.min,cw=Math.max;function pw(t,e){return isNaN(t)||isNaN(e)}function dw(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y=r||g<0)break;if(pw(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||pw(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if("x"===s){var E=T>0?1:-1;d=v-E*(R=Math.abs(k))*a,f=m,D=v+E*(N=Math.abs(L))*a,A=m}else if("y"===s){var z=C>0?1:-1;d=v,f=m-z*(R=Math.abs(P))*a,D=v,A=m+z*(N=Math.abs(O))*a}else R=Math.sqrt(k*k+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(L*L+O*O))/(N+R))),f=m-C*a*(1-I),A=m+C*a*I,D=hw(D=v+T*a*I,cw(w,v)),A=hw(A,cw(S,m)),D=cw(D,hw(w,v)),f=m-(C=(A=cw(A,hw(S,m)))-m)*R/N,d=hw(d=v-(T=D-v)*R/N,cw(u,v)),f=hw(f,cw(h,m)),D=v+(T=v-(d=cw(d,hw(u,v))))*N/R,A=m+(C=m-(f=cw(f,hw(h,m))))*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=A}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var fw=function(){this.smooth=0,this.smoothConstraint=!0},gw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new fw},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&pw(n[2*r-2],n[2*r-1]);r--);for(;i=0){var y=a?(h-i)*g+i:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],p=r[l++],d=r[l++],f=r[l++];var v=a?Be(n,u,c,d,t,s):Be(i,h,p,f,t,s);if(v>0)for(var m=0;m=0){y=a?Ee(i,h,p,f,x):Ee(n,u,c,d,x);return a?[t,y]:[y,t]}}n=d,i=f}}},n}(Ja),yw=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(fw),vw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new yw},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&pw(n[2*o-2],n[2*o-1]);o--);for(;r=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=R(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:xn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";O(p,(function(t){t.offset=(t.coord-f)/y})),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new Su(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}}}function Dw(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return O(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Aw(t,e){return[t[2*e],t[2*e+1]]}function kw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Ts(d).seriesIndex=t.seriesIndex,cl(d,L,P,O);var R=Iw(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:w}),f){var E=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(C(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(z=Iw(E.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),gl(f,t,"areaStyle"),Ts(f).seriesIndex=t.seriesIndex,cl(f,L,P,O)}var B=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},n.prototype.packEventData=function(t,e){Ts(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=oo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel"),c=t.get("z");(s=new nw(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Pf.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=oo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Pf.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;Xs(this._polyline,t),e&&Xs(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new gw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new vw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");H(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=H(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=H(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(kw(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ds({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(_h(o,bh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?ew(r,n):tw(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=Aw(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{(T=l.getPointOn(m,b))&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(I=yo(n,p,C,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;T=Aw(u,A);r&&(I=h.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}r&&Ah(s).setLabelText(I)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],h=[],c=[],p=[],d=[],f=[],g=[],y=lw(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x3e3||l&&Mw(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),Nu(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),Nu(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;W(r)?d=Rw[r]:H(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,Nw))}}}}}var zw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(t,e){return xm(null,this,{useEncodeDefaulter:!0})},n.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},n.type="series.__base_bar__",n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},n}(_f);_f.registerClass(zw);var Bw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return xm(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},n.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},n.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=Zh(zw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),n}(zw),Vw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new Vw},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},n.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Fu(e,t,Ts(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type="bar",n}(Pf),Xw={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Ww(e.x,t.x),s=Uw(e.x+e.width,r),l=Ww(e.y,t.y),u=Uw(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=Uw(e.r,t.r),o=Ww(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},Zw={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new hs({shape:T({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?Fw:ru,h=new u({shape:i,z2:1});h.name="item";var c,p,d=tS(r);if(h.calculateTextPosition=(c=d,p=({isRoundCap:u===Fw}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return or(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,d=(u+h)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=p?Math.abs(u-h)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+Gw(f,o+v,!1),b=l+d*x(f)+Hw(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+Gw(f,-o+v,!1),b=l+d*x(f)+Hw(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(y),b=l+(u+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(y),b=l+(u-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+Gw(g,o+v,!0),b=l+d*x(g)+Hw(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+Gw(g,-o+v,!0),b=l+d*x(g)+Hw(g,-o+v,!0),w="right",S="middle";break;default:return or(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?0:i.startAngle,g[f]=i[f],(s?Nu:Eu)(h,{shape:g},o)}return h}};function jw(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Nu:Eu)(n,{shape:l},e,r,null),(a?Nu:Eu)(n,{shape:u},e?t.baseAxis.model:null,r)}function qw(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function tS(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function eS(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var h=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",c=bh(i);_h(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:tw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var d=i.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(G(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===d?h:d,tS(a),i.get(["label","rotate"]))}kh(p,c,o.getRawValue(n),(function(t){return ew(e,t)}));var f=i.getModel(["emphasis"]);cl(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),gl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",O(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var nS=function(){},iS=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return e(n,t),n.prototype.getDefaultShape=function(){return new nS},n.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);Ts(this).dataIndex=e>=0?e:null}),30,!1);function aS(t,e,n){if(bw(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var sS=2*Math.PI,lS=Math.PI/180;function uS(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hS(t,e){var n=uS(t,e),i=t.get("center"),r=t.get("radius");G(r)||(r=[0,r]),G(i)||(i=[i,i]);var o=Sr(n.width,e.getWidth()),a=Sr(n.height,e.getHeight()),s=Math.min(o,a);return{cx:Sr(i[0],o)+n.x,cy:Sr(i[1],a)+n.y,r0:Sr(r[0],s/2),r:Sr(r[1],s/2)}}function cS(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=uS(t,n),o=hS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*lS,c=t.get("minAngle")*lS,p=0;e.each(i,(function(t){!isNaN(t)&&p++}));var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),y=t.get("roseType"),v=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var x=sS,_=0,b=h,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===d&&v?f:t*f:sS/p)n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(c)t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function yS(t){return"center"===t.position}function vS(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*dS,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),c=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Sr(y.get("edgeDistance"),u),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Sr(S,u);var M=w.get("length2");if(M=Sr(M,u),Math.abs(c.endAngle-c.startAngle)0?"right":"left":k>0?"left":"right"}var V=Math.PI,F=0,G=y.get("rotate");if(Y(G))F=G*(V/180);else if("center"===v)F=0;else if("radial"===G||!0===G){F=k<0?-A+V:-A}else if("tangential"===G&&"outside"!==v&&"outer"!==v){var H=Math.atan2(k,L);H<0&&(H=2*V+H),L>0&&(H=V+H),F=H-V}if(o=!!F,p.x=I,p.y=T,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:D});var W=p.states.select;W&&(W.x+=p.x,W.y+=p.y)}else{var U=p.getBoundingRect().clone();U.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;U.y-=X/2,U.height+=X,r.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Gi(k,L),linePoints:C,textAlign:D,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:U,unconstrainedWidth:U.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},n.type="pie",n}(Pf);function bS(t,e,n){e=G(e)&&{coordDimensions:e}||T({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=cm(i,e).dimensions,o=new hm(r,t);return o.initData(i,n),o}var wS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),SS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new wS(V(this.getData,this),V(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return bS(this,{coordDimensions:["value"],encodeDefaulter:F(rp,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=Ar(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},n.prototype._defaultLabelLine=function(t){qr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(_f);var MS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){return xm(null,this,{useEncodeDefaulter:!0})},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},n.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},n.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},n.type="series.scatter",n.dependencies=["grid","polar","geo","singleAxis","calendar"],n.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},n}(_f),IS=function(){},TS=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.getDefaultShape=function(){return new IS},n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),DS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},n.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},n.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},n.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Ow("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},n.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},n.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},n.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new CS:new sw,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},n.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},n.prototype.dispose=function(){},n.type="scatter",n}(Pf),AS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(jc),kS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ho).models[0]},n.type="cartesian2dAxis",n}(jc);L(kS,Tx);var LS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},PS=M({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},LS),OS=M({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},LS),RS={category:PS,value:OS,time:M({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},OS),log:C({logBase:10},OS)},NS={value:1,category:1,time:1,log:1};function ES(t,n,i,r){O(NS,(function(o,a){var s=M(M({},RS[a],!0),r,!0),l=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Wc(this),i=n?Yc(t):{};M(t,e.getTheme().get(a+"Axis")),M(t,this.getDefaultOption()),t.type=zS(t),n&&Uc(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=wm.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(n+"Axis",zS)}function zS(t){return t.type||(t.data?"category":"value")}var BS=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return R(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),E(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),VS=["x","y"];function FS(t){return"interval"===t.type||"time"===t.type}var GS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=VS,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(FS(t)&&FS(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ai([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Et(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Et(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Ki(n,i,r,o)},n}(BS),HS=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},n}(i_);function WS(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),tt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function US(t){return"cartesian2d"===t.get("coordinateSystem")}function YS(t){var e={xAxisModel:null,yAxisModel:null};return O(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ho).models[0];e[i]=o})),e}var XS=Math.log;function ZS(t,e,n){var i=Rm.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=yx(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=XS(t.base);u=[XS(u[0])/p,XS(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=Tm(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Tm(f));var v=f*a;(g=Mr((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Mr(v)):y>0&&u[1]<=0&&(y=0,g=-Mr(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var jS=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VS,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=B(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Mm(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(vx(l,s),Mm(l)&&(e=a))}r.length&&(e||vx((e=r.pop()).scale,e.model),O(r,(function(t){ZS(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};O(n.x,(function(t){KS(n,"y",t,r)})),O(n.y,(function(t){KS(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Gc(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){O(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(O(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Pm?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=xx(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h0&&i>0||n<0&&i<0)}(t)}var JS=Math.PI,QS=function(){function t(t,e){this.group=new gr,this.opt=e,this.axisModel=t,C(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new gr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!tM[t]},t.prototype.add=function(t){tM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Lr(e-t);return Pr(o)?(r=n>0?"top":"bottom",i="center"):Pr(o-JS)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),tM={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Et(s,s,a),Et(l,l,a));var u=T({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new fu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var c=e.get(["axisLine","symbol"]);if(null!=c){var p=e.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(p)||Y(p))&&(p=[p,p]);var d=Hg(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],g=p[1];O([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==c[i]&&null!=c[i]){var r=Fg(c[i],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=rM(r.getTicksCoords(),e.transform,l,C(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,d=["start"===s?c[0]-p*h:"end"===s?c[1]+p*h:(c[0]+c[1])/2,iM(s)?t.labelOffset+l*h:0],f=e.get("nameRotate");null!=f&&(f=f*JS/180),iM(s)?o=QS.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=Lr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;Pr(a-JS/2)?(o=l?"bottom":"top",r="center"):Pr(a-1.5*JS)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*JS&&a>JS/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=tt(t.nameTruncateMaxWidth,y.maxWidth,a),x=new ds({x:d[0],y:d[1],rotation:o.rotation,silent:QS.isLabelSilent(e),style:wh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(dh({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=QS.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,Ts(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function eM(t){t&&(t.ignore=!0)}function nM(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Si([]);return Ci(r,r,-t.rotation),n.applyTransform(Ii([],r,t.getLocalTransform())),i.applyTransform(Ii([],r,e.getLocalTransform())),n.intersect(i)}}function iM(t){return"middle"===t||"center"===t}function rM(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function sM(t){var e=lM(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=uM(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=C({color:c.color},a));var d=M(S(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(s||(d.name=""),W(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else H(l)&&(d.name=l(d.name,d));var g=new Uh(d,null,this.ecModel);return L(g,Tx.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=c},n.prototype.getIndicatorModels=function(){return this._indicatorModels},n.type="radar",n.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:M({lineStyle:{color:"#bbb"}},LM.axisLine),axisLabel:PM(LM.axisLabel,!1),axisTick:PM(LM.axisTick,!1),splitLine:PM(LM.splitLine,!0),splitArea:PM(LM.splitArea,!0),indicator:[]},n}(jc),RM=["axisLine","axisTickLabel","axisName"],NM=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},n.prototype._buildAxes=function(t){var e=t.coordinateSystem;O(R(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new QS(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){O(RM,t.add,t),this.group.add(t.getGroup())}),this)},n.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=G(h)?h:[h],d=G(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x3?1.4:r>1?1.2:1.1;WM(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);WM(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){FM(this._zr,"globalPan")||WM(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},n}(Ht);function WM(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(ie(i.event),UM(t,e,n,i,r))}function UM(t,e,n,i,r){r.isAvailableBehavior=V(YM,null,n,i),t.trigger(e,r)}function YM(t,e,n){var i=n[t];return!t||i&&(!W(i)||e.event[i+"Key"])}function XM(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function ZM(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var jM,qM={axisPointer:1,tooltip:1,brush:1};function KM(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!qM.hasOwnProperty(i.mainType)&&r&&r.model!==n}function $M(t){W(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var JM={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},QM=B(JM),tI={"alignment-baseline":"textBaseline","stop-color":"stopColor"},eI=B(tI),nI=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=$M(t);this._defsUsePending=[];var i=new gr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),lI(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=vI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new gr).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new hs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=jM[s];if(u&&ft(jM,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=iI[s];if(p&&ft(iI,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new ts({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});aI(e,n),lI(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(jM={g:function(t,e){var n=new gr;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new hs;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Gl;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new fu;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Wl;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=sI(i));var r=new uu({shape:{points:n||[]},silent:!0});return aI(e,r),lI(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=sI(i));var r=new cu({shape:{points:n||[]},silent:!0});return aI(e,r),lI(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new is;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new gr;return aI(e,a),lI(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new gr;return aI(e,a),lI(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Bl(t.getAttribute("d")||"");return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),iI={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Su(e,n,i,r);return rI(t,o),oI(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Mu(e,n,i);return rI(t,r),oI(t,r),r}};function rI(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function oI(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};yI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function aI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),C(e.__inheritedStyle,t.__inheritedStyle))}function sI(t){for(var e=pI(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=pI(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":Ti(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Di(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ci(r,r,-parseFloat(l[0])*fI);break;case"skewX":Ii(r,[1,0,Math.tan(parseFloat(l[0])*fI),1,0,0],r);break;case"skewY":Ii(r,[1,Math.tan(parseFloat(l[0])*fI),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),yI(t,a,s),i||function(t,e,n){for(var i=0;i0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ht(),n=ht(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;_h(e,bh(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(zI(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function WI(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Ts(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function UI(t,e,n,i,r){t.data||dh({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function YI(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return cl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=Ts(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function XI(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),O(t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},n.type="series.map",n.dependencies=["geo"],n.layoutMode="box",n.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},n}(_f);function qI(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),O(e,(function(t,e){for(var n,i,r,o=(n=R(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},O(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=Gc(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}L(nT,JI);var oT=new(function(){function t(){this.dimensions=eT}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new nT(o+r,o,T({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=rT,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),O(r,(function(t,r){var o=R(t,(function(t){return t.get("nameMap")})),a=new nT(r,r,T({nameMap:I(o)},i(t[0])));a.zoomLimit=tt.apply(null,R(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=rT,a.resize(t[0],e),O(t,(function(t){t.coordinateSystem=a,function(t,e){O(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=ht(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=yT(s),o=vT(o),s&&o;){r=yT(r),a=vT(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(xT(mT(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!yT(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!vT(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function dT(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function fT(t){return arguments.length?t:_T}function gT(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function yT(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function vT(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function mT(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function xT(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function _T(t,e){return t.parentNode===e.parentNode?1:2}var bT=function(){this.parentPoint=[],this.childPoints=[]},wT=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new bT},n.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=Sr(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;pm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),k="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;k&&(Ts(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new mu({shape:AT(h,c,p,r,r)})),Nu(g,{shape:AT(h,c,p,o,a)},t));else if("polyline"===u)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(W(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function HT(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function WT(t,e){return A(HT(t),e)>=0}function UT(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var YT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return e(n,t),n.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Uh(n,this,this.ecModel),r=FT.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},n.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return of("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UT(i,this),n.collapsed=!i.isExpand,n},n.type="series.tree",n.layoutMode="box",n.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},n}(_f);function XT(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ZT(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=fT((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=fT());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),XT(l,(function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=gT(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),XT(l,(function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),XT(l,(function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function jT(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();T(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var qT=["treemapZoomToNode","treemapRender","treemapMove"];function KT(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=gp(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var $T=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventUsingHoverLayer=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};JT(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Uh({itemStyle:r},this,e),a=R((i=t.levels=function(t,e){var n,i,r=jr(e.get("color")),o=jr(e.get(["aria","decal","decals"]));if(!r)return;O(t=t||[],(function(t){var e=new Uh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e))||[],(function(t){return new Uh(t,o,e)}),this),s=FT.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return of("nameValue",{name:i.getName(t),value:r})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UT(i,this),n.treePathInfo=n.treeAncestors,n},n.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},T(this.layoutInfo,t)},n.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},n.prototype.getViewRoot=function(){return this._viewRoot},n.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},n.prototype.enableAriaDecal=function(){KT(this)},n.type="series.treemap",n.layoutMode="box",n.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},n}(_f);function JT(t){var e=0;O(t.children,(function(t){JT(t);var n=t.value;G(n)&&(n=n[0]),e+=n}));var n=t.value;G(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),G(t.value)?t.value[0]=n:t.value=n}var QT=function(){function t(t){this.group=new gr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),Hc(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=no(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o,a,s,l,u,h,c,p,d,f=0,g=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=Sr(o.left,l),c=Sr(o.top,u),p=Sr(o.right,l),d=Sr(o.bottom,u),(isNaN(h)||isNaN(parseFloat(o.left)))&&(h=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=l),(isNaN(c)||isNaN(parseFloat(o.top)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.bottom)))&&(d=u),s=Ic(s||0),{width:Math.max(p-h-s[1]-s[3],0),height:Math.max(d-c-s[0]-s[2],0)}),m=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,S=b.width,M=b.text;m>v.width&&(m-=S-g,S=g,M=null);var I=new uu({shape:{points:tC(f,0,S,y,_===x.length-1,0===_)},style:C(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ds({style:{text:M,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:F(r,w)});I.disableLabelAnimation=!0,this.group.add(I),eC(I,t,w),f+=S+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function tC(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function eC(t,e,n){Ts(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&UT(n,e)}}var nC=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},n.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Ki(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Ti(s,s,[-(e-=a.x),-(n-=a.y)]),Di(s,s,[t.scale,t.scale]),Ti(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},n.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Nc(a,s)}}}}}),this)},n.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new QT(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(WT(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},n.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},n.prototype.dispose=function(){this._clearController()},n.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},n.type="treemap",n}(Pf);var uC=O,hC=X,cC=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=S(e);this.type=i,this.mappingMethod=n,this._normalizeData=bC[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(pC(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,O(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(uC(e,(function(t,e){n[t]=e})),!G(i)){var r=[];X(i)?uC(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=_C(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):pC(r,!0):(ot("linear"!==n||r.dataExtent),pC(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return V(this._normalizeData,this)},t.listVisualTypes=function(){return B(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){X(t)?O(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=G(e)?[]:X(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&uC(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(G(t))t=t.slice();else{if(!hC(t))return[];var e=[];uC(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var p=new cC(c);return SC(p).drColorMappingBy=h,p}(0,r,o,0,u,d);O(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=T({},e);if(r){var s=r.type,l="color"===s&&SC(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);IC(t,o,n,i)}}))}else s=TC(u),h.fill=s}}function TC(t){var e=CC(t,"color");if(e){var n=CC(t,"colorAlpha"),i=CC(t,"colorSaturation");return i&&(e=bn(e,null,null,i)),n&&(e=wn(e,n)),e}}function CC(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function DC(t,e){var n=t.get(e);return G(n)&&n.length?{name:e,range:n}:null}var AC=Math.max,kC=Math.min,LC=tt,PC=O,OC=["itemStyle","borderWidth"],RC=["itemStyle","gapWidth"],NC=["upperLabel","show"],EC=["upperLabel","height"],zC={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Gc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Sr(LC(s.width,l[0]),r),h=Sr(LC(s.height,l[1]),o),c=i&&i.type,p=GT(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=HT(f);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var h=0,c=o.children,p=0,d=c.length;p9007199254740991&&(u=9007199254740991),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?AC(u*i/l,l/(u*r)):1/0}function FC(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);u[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*f+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,c=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,c=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},n}(gr),wD=function(){function t(t){this.group=new gr,this._LineCtor=t||bD}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=SD(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=SD(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i