diff --git a/index.html b/index.html index 470262f..5864413 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ + + +``` + +Available CDN: + +- https://unpkg.com/vconsole@latest/dist/vconsole.min.js +- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js + +--- + +## Preview + +[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html) + +![](./doc/screenshot/qrcode.png) + +--- + +## Screenshots + +### Overview + +
+ Light theme + +![](./doc/screenshot/overview_light.jpg) +
+ +
+ Dark theme + +![](./doc/screenshot/overview_dark.jpg) +
+ +### Log Panel + +
+ Log styling + +![](./doc/screenshot/plugin_log_types.jpg) +
+ +
+ Command line + +![](./doc/screenshot/plugin_log_command.jpg) +
+ +### System Panel + +
+ Performance info + +![](./doc/screenshot/plugin_system.jpg) +
+ +
+ Output logs to different panel + +```javascript +console.log('output to Log panel.') +console.log('[system]', 'output to System panel.') +``` +
+ +### Network Panel + +
+ Request details + +![](./doc/screenshot/plugin_network.jpg) +
+ +### Element Panel + +
+ Realtime HTML elements structure + +![](./doc/screenshot/plugin_element.jpg) +
+ +### Storage Panel + +
+ Add, edit, delete or copy Cookies / LocalStorage / SessionStorage + +![](./doc/screenshot/plugin_storage.jpg) +
+ +--- + +## Documentation + +vConsole: + + - [Tutorial](./doc/tutorial.md) + - [Public Properties & Methods](./doc/public_properties_methods.md) + - [Builtin Plugin: Properties & Methods](./doc/plugin_properties_methods.md) + +Custom Plugin: + + - [Plugin: Getting Started](./doc/plugin_getting_started.md) + - [Plugin: Building a Plugin](./doc/plugin_building_a_plugin.md) + - [Plugin: Event List](./doc/plugin_event_list.md) + +--- + +## Third-party Plugins + + - [vConsole-sources](https://github.com/WechatFE/vConsole-sources) + - [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin) + - [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats) + - [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools) + - [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin) + - [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole) + +--- + +## Feedback + +QQ Group: 497430533 + +![](./doc/screenshot/qq_group.png) + +--- + +## License + +[The MIT License](./LICENSE) diff --git a/node_modules/vconsole/README_CN.md b/node_modules/vconsole/README_CN.md new file mode 100644 index 0000000..01fdddb --- /dev/null +++ b/node_modules/vconsole/README_CN.md @@ -0,0 +1,199 @@ +[English](./README.md) | 简体中文 + +vConsole +=== + +一个轻量、可拓展、针对手机网页的前端开发者调试面板。 + +vConsole 是框架无关的,可以在 Vue、React 或其他任何框架中使用。 + +现在 vConsole 是微信小程序的官方调试工具。 + +--- + +## 功能特性 + +- 日志(Logs): `console.log|info|error|...` +- 网络(Network): `XMLHttpRequest`, `Fetch`, `sendBeacon` +- 节点(Element): HTML 节点树 +- 存储(Storage): `Cookies`, `LocalStorage`, `SessionStorage` +- 手动执行 JS 命令行 +- 自定义插件 + +详情可参考下方的截图。 + +--- + +## 版本说明 + +最新版本: [![npm version](https://img.shields.io/npm/v/vconsole/latest.svg)](https://www.npmjs.com/package/vconsole) + +每个版本的详细说明请参阅 [Changelog](./CHANGELOG_CN.md)。 + +--- + +## 上手 + +详细使用方法请参阅[使用教程](./doc/tutorial_CN.md)。 + +将 vConsole 添加到项目中主要有以下方式: + +#### 方法一:使用 npm(推荐) + +```bash +$ npm install vconsole +``` + +Import 并初始化后,即可使用 `console.log` 功能,如 Chrome devtools 上一样。 + +```javascript +import VConsole from 'vconsole'; + +const vConsole = new VConsole(); +// 或者使用配置参数来初始化,详情见文档 +const vConsole = new VConsole({ theme: 'dark' }); + +// 接下来即可照常使用 `console` 等方法 +console.log('Hello world'); + +// 结束调试后,可移除掉 +vConsole.destroy(); +``` + +#### 方法二:使用 CDN 直接插入到 HTML + +```html + + +``` + +可用的 CDN: + +- https://unpkg.com/vconsole@latest/dist/vconsole.min.js +- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js + +--- + +## 手机预览 + +[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html) + +![](./doc/screenshot/qrcode.png) + +--- + +## 截图 + +### 概览 + +
+ 浅色主题 + +![](./doc/screenshot/overview_light.jpg) +
+ +
+ 深色主题 + +![](./doc/screenshot/overview_dark.jpg) +
+ +### Log 面板 + +
+ Log 样式 + +![](./doc/screenshot/plugin_log_types.jpg) +
+ +
+ 命令行 + +![](./doc/screenshot/plugin_log_command.jpg) +
+ +### System 面板 + +
+ Performance 信息 + +![](./doc/screenshot/plugin_system.jpg) +
+ +
+ 输入日志到不同的 log 面板 + +```javascript +console.log('output to Log panel.') +console.log('[system]', 'output to System panel.') +``` +
+ +### Network 面板 + +
+ 请求、回包的详情 + +![](./doc/screenshot/plugin_network.jpg) +
+ +### Element 面板 + +
+ 查看 HTML 对象结构 + +![](./doc/screenshot/plugin_element.jpg) +
+ +### Storage 面板 + +
+ 添加、编辑、删除、复制 Cookies / LocalStorage / SessionStorage + +![](./doc/screenshot/plugin_storage.jpg) +
+ +--- + +## 文档 + + +vConsole 本体: + + - [使用教程](./doc/tutorial_CN.md) + - [公共属性及方法](./doc/public_properties_methods_CN.md) + - [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md) + +自定义插件: + + - [插件:入门](./doc/plugin_getting_started_CN.md) + - [插件:编写插件](./doc/plugin_building_a_plugin_CN.md) + - [插件:Event 事件列表](./doc/plugin_event_list_CN.md) + +--- + +## 第三方插件列表 + + - [vConsole-sources](https://github.com/WechatFE/vConsole-sources) + - [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin) + - [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats) + - [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools) + - [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin) + - [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole) + +--- + +## 交流反馈 + +QQ 群:497430533 + +![](./doc/screenshot/qq_group.png) + +--- + +## License + +[The MIT License](./LICENSE) diff --git a/node_modules/vconsole/build/vendor.d.ts b/node_modules/vconsole/build/vendor.d.ts new file mode 100644 index 0000000..9b94861 --- /dev/null +++ b/node_modules/vconsole/build/vendor.d.ts @@ -0,0 +1,24 @@ +declare module 'vendor/core-js/stable/symbol' { +} + +declare module 'vendor/mutation-observer' { + export class MutationObserver { + } +} + +declare module 'vendor/svelte' { + export class SvelteComponent { + } +} + +declare module 'vendor/svelte/store' { + export interface Subscriber { + } + export interface Unsubscriber { + } + export interface Updater { + } + export interface Writable { + } +} + diff --git a/node_modules/vconsole/dist/vconsole.min.d.ts b/node_modules/vconsole/dist/vconsole.min.d.ts new file mode 100644 index 0000000..7d60069 --- /dev/null +++ b/node_modules/vconsole/dist/vconsole.min.d.ts @@ -0,0 +1,1237 @@ +/// + +declare module "core/options.interface" { + export interface VConsoleLogOptions { + maxLogNumber?: number; + showTimestamps?: boolean; + } + export interface VConsoleNetworkOptions { + maxNetworkNumber?: number; + ignoreUrlRegExp?: RegExp; + } + export type VConsoleAvailableStorage = 'cookies' | 'localStorage' | 'sessionStorage' | 'wxStorage'; + export interface VConsoleStorageOptions { + defaultStorages?: VConsoleAvailableStorage[]; + } + export interface VConsoleOptions { + target?: string | HTMLElement; + defaultPlugins?: ('system' | 'network' | 'element' | 'storage')[]; + theme?: '' | 'dark' | 'light'; + disableLogScrolling?: boolean; + pluginOrder?: string[]; + onReady?: () => void; + log?: VConsoleLogOptions; + network?: VConsoleNetworkOptions; + storage?: VConsoleStorageOptions; + /** + * @deprecated Since v3.12.0, use `log.maxLogNumber`. + */ + maxLogNumber?: number; + /** + * @deprecated Since v3.12.0, use `network.maxNetworkNumber`. + */ + maxNetworkNumber?: number; + /** + * @deprecated Since v3.12.0. + */ + onClearLog?: () => void; + } +} +declare module "lib/tool" { + /** + * Utility Functions + */ + /** + * get formatted date by timestamp + */ + export function getDate(time: number): { + time: number; + year: number; + month: string | number; + day: string | number; + hour: string | number; + minute: string | number; + second: string | number; + millisecond: string | number; + }; + /** + * Determine whether a value is of a specific type. + */ + export function isNumber(value: any): boolean; + export function isBigInt(value: any): boolean; + export function isString(value: any): boolean; + export function isArray(value: any): boolean; + export function isBoolean(value: any): boolean; + export function isUndefined(value: any): boolean; + export function isNull(value: any): boolean; + export function isSymbol(value: any): boolean; + export function isObject(value: any): boolean; + export function isFunction(value: any): boolean; + export function isElement(value: any): boolean; + export function isWindow(value: any): boolean; + export function isIterable(value: any): boolean; + /** + * Get the prototype name of an object + */ + export function getPrototypeName(value: any): string; + /** + * Get an object's constructor name. + */ + export function getObjName(obj: any): string; + /** + * check whether an object is plain (using {}) + * @param object obj + * @return boolean + */ + export function isPlainObject(obj: any): boolean; + /** + * Escape HTML to XSS-safe text. + */ + export function htmlEncode(text: string | number): string; + /** + * Convert a text's invisible characters to visible characters. + */ + export function getVisibleText(text: string): string; + /** + * A safe `JSON.stringify` method. + */ + export function safeJSONStringify(obj: any, opt?: { + maxDepth?: number; + keyMaxLen?: number; + pretty?: boolean; + standardJSON?: boolean; + }): string; + /** + * Call original `JSON.stringify` and catch unknown exceptions. + */ + export function JSONStringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; + /** + * Get the bytes of a string. + * @example 'a' = 1 + * @example '好' = 3 + */ + export function getStringBytes(str: string): number; + /** + * Convert bytes number to 'MB' or 'KB' string. + */ + export function getBytesText(bytes: number): string; + /** + * Get a string within a limited max length. + * The byte size of the string will be appended to the string when reached the limit. + * @return 'some string...(3.1 MB)' + */ + export function getStringWithinLength(str: string, maxLen: number): string; + /** + * Sore an `string[]` by string. + */ + export function sortArray(arr: string[]): string[]; + /** + * Get enumerable keys of an object or array. + */ + export function getEnumerableKeys(obj: any): string[]; + /** + * Get enumerable and non-enumerable keys of an object or array. + */ + export function getEnumerableAndNonEnumerableKeys(obj: any): string[]; + /** + * Get non-enumerable keys of an object or array. + */ + export function getNonEnumerableKeys(obj: any): string[]; + export function getSymbolKeys(obj: any): symbol[]; + /** + * localStorage methods + */ + export function setStorage(key: string, value: string): void; + export function getStorage(key: string): string; + /** + * Generate a 6-digit unique string with prefix `"__vc_" + ${prefix}` + */ + export function getUniqueID(prefix?: string): string; + /** + * Determine whether it is inside a WeChat Miniprogram. + */ + export function isWxEnv(): boolean; + /** + * Call a WeChat Miniprogram method. E.g: `wx.getStorageSync()`. + */ + export function callWx(method: string, ...args: any[]): any; +} +declare module "lib/query" { + const $: { + /** + * get single element + * @public + */ + one: (selector: string, contextElement?: Element | Document) => HTMLElement; + /** + * get multiple elements + * @public + */ + all: (selector: string, contextElement?: Element | Document) => HTMLElement[]; + /** + * add className(s) to an or multiple element(s) + * @public + */ + addClass: ($el: Element | Element[], className: string) => void; + /** + * remove className(s) from an or multiple element(s) + * @public + */ + removeClass: ($el: Element | Element[], className: string) => void; + /** + * see whether an element contains a className + * @public + */ + hasClass: ($el: Element, className: string) => boolean; + /** + * bind an event to element(s) + * @public + */ + bind: ($el: Element | Element[], eventType: any, fn: any, useCapture?: boolean) => void; + /** + * delegate an event to a parent element + * @public + * @param $el parent element + * @param eventType name of the event + * @param selector target's selector + * @param fn callback function + */ + delegate: ($el: Element, eventType: string, selector: string, fn: (event: Event, $target: HTMLElement) => void) => void; + /** + * Remove all child elements of an element. + */ + removeChildren($el: Element): Element; + }; + /** + * export + */ + export default $; +} +declare module "lib/model" { + type AConstructorTypeOf = new (...args: U) => T; + export class VConsoleModel { + static singleton: { + [ctorName: string]: VConsoleModel; + }; + protected _onDataUpdateCallbacks: Function[]; + /** + * Get a singleton of a model. + */ + static getSingleton(ctor: AConstructorTypeOf, ctorName: string): T; + } + export default VConsoleModel; +} +declare module "lib/pluginExporter" { + import type { VConsoleModel } from "lib/model"; + export class VConsolePluginExporter { + protected model: VConsoleModel; + protected pluginId: string; + constructor(pluginId: string); + destroy(): void; + } +} +declare module "lib/plugin" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import type { VConsole } from "core/core"; + export type IVConsolePluginEvent = (data?: any) => void; + export type IVConsolePluginEventName = 'init' | 'renderTab' | 'addTopBar' | 'addTool' | 'ready' | 'remove' | 'updateOption' | 'showConsole' | 'hideConsole' | 'show' | 'hide'; + export interface IVConsoleTopbarOptions { + name: string; + className: string; + actived?: boolean; + data?: { + [key: string]: string; + }; + onClick?: (e: Event, data?: any) => any; + } + export interface IVConsoleToolbarOptions { + name: string; + global?: boolean; + data?: { + [key: string]: string; + }; + onClick?: (e: Event, data?: any) => any; + } + export interface IVConsoleTabOptions { + fixedHeight?: boolean; + } + /** + * vConsole Plugin Base Class + */ + export class VConsolePlugin { + isReady: boolean; + eventMap: Map; + exporter?: VConsolePluginExporter; + protected _id: string; + protected _name: string; + protected _vConsole: VConsole; + constructor(...args: any[]); + get id(): string; + set id(value: string); + get name(): string; + set name(value: string); + get vConsole(): VConsole; + set vConsole(value: VConsole); + /** + * Register an event + * @public + * @param IVConsolePluginEventName + * @param IVConsolePluginEvent + */ + on(eventName: IVConsolePluginEventName, callback: IVConsolePluginEvent): this; + onRemove(): void; + /** + * Trigger an event. + */ + trigger(eventName: IVConsolePluginEventName, data?: any): this; + protected bindExporter(): void; + protected unbindExporter(): void; + protected getUniqueID(prefix?: string): string; + } + export default VConsolePlugin; +} +declare module "lib/sveltePlugin" { + import VConsolePlugin from "lib/plugin"; + import { SvelteComponent } from "vendor/svelte"; + export class VConsoleSveltePlugin extends VConsolePlugin { + CompClass: typeof SvelteComponent; + compInstance?: SvelteComponent; + initialProps: T; + constructor(id: string, name: string, CompClass: typeof SvelteComponent, initialProps: T); + onReady(): void; + onRenderTab(callback: any): void; + onRemove(): void; + } +} +declare module "core/core.model" { + export const contentStore: { + subscribe: (this: void, run: import("vendor/svelte/store").Subscriber<{ + updateTime: number; + }>, invalidate?: (value?: { + updateTime: number; + }) => void) => import("vendor/svelte/store").Unsubscriber; + set: (this: void, value: { + updateTime: number; + }) => void; + update: (this: void, updater: import("vendor/svelte/store").Updater<{ + updateTime: number; + }>) => void; + updateTime: () => void; + }; +} +declare module "log/logTool" { + import type { IVConsoleLog, IVConsoleLogData } from "log/log.model"; + /** + * Get a value's text content and its type. + */ + export const getValueTextAndType: (val: any, wrapString?: boolean) => { + text: any; + valueType: string; + }; + /** + * A simple parser to get `[` or `]` information. + */ + export const getLastIdentifier: (text: string) => { + front: { + text: string; + pos: number; + before: string; + after: string; + }; + back: { + text: string; + pos: number; + before: string; + after: string; + }; + }; + export const isMatchedFilterText: (log: IVConsoleLog, filterText: string) => boolean; + /** + * Styling log output (`%c`), or string substitutions (`%s`, `%d`, `%o`). + * Apply to the first log only. + */ + export const getLogDatasWithFormatting: (origDatas: any[]) => IVConsoleLogData[]; + /** + * An empty class for rendering views. + */ + export class VConsoleUninvocatableObject { + } +} +declare module "log/log.store" { + import type { Writable } from "vendor/svelte/store"; + import type { IVConsoleLog } from "log/log.model"; + export interface IVConsoleLogStore { + logList: IVConsoleLog[]; + } + /** + * Log Store Factory + */ + export class VConsoleLogStore { + static storeMap: { + [pluginId: string]: Writable; + }; + /** + * Create a store. + */ + static create(pluginId: string): Writable; + /** + * Delete a store. + */ + static delete(pluginId: string): void; + /** + * Get a store by pluginId, + */ + static get(pluginId: string): Writable; + /** + * Get a store's raw data. + */ + static getRaw(pluginId: string): IVConsoleLogStore; + /** + * Get all stores. + */ + static getAll(): { + [pluginId: string]: Writable; + }; + } +} +declare module "log/log.model" { + import { VConsoleModel } from "lib/model"; + /********************************** + * Interfaces + **********************************/ + export type IConsoleLogMethod = 'log' | 'info' | 'debug' | 'warn' | 'error'; + export interface IVConsoleLogData { + origData: any; + style?: string; + } + export interface IVConsoleLog { + _id: string; + type: IConsoleLogMethod; + cmdType?: 'input' | 'output'; + repeated: number; + toggle: Record; + date: number; + data: IVConsoleLogData[]; + groupLevel: number; + groupLabel?: symbol; + groupHeader?: 0 | 1 | 2; + groupCollapsed?: boolean; + } + export type IVConsoleLogListMap = { + [pluginId: string]: IVConsoleLog[]; + }; + export type IVConsoleLogFilter = { + [pluginId: string]: string; + }; + export interface IVConsoleAddLogOptions { + noOrig?: boolean; + cmdType?: 'input' | 'output'; + } + /********************************** + * Model + **********************************/ + export class VConsoleLogModel extends VConsoleModel { + readonly LOG_METHODS: IConsoleLogMethod[]; + ADDED_LOG_PLUGIN_ID: string[]; + maxLogNumber: number; + protected logCounter: number; + protected groupLevel: number; + protected groupLabelCollapsedStack: { + label: symbol; + collapsed: boolean; + }[]; + protected pluginPattern: RegExp; + protected logQueue: IVConsoleLog[]; + protected flushLogScheduled: boolean; + /** + * The original `window.console` methods. + */ + origConsole: { + [method: string]: Function; + }; + /** + * Bind a Log plugin. + * When binding first plugin, `window.console` will be hooked. + */ + bindPlugin(pluginId: string): boolean; + /** + * Unbind a Log plugin. + * When no binded plugin exists, hooked `window.console` will be recovered. + */ + unbindPlugin(pluginId: string): boolean; + /** + * Hook `window.console` with vConsole log method. + * Methods will be hooked only once. + */ + mockConsole(): void; + protected _mockConsoleLog(): void; + protected _mockConsoleTime(): void; + protected _mockConsoleGroup(): void; + protected _mockConsoleClear(): void; + /** + * Recover `window.console`. + */ + unmockConsole(): void; + /** + * Call origin `window.console[method](...args)` + */ + callOriginalConsole(method: string, ...args: any[]): void; + /** + * Reset groups by `console.group()`. + */ + resetGroup(): void; + /** + * Remove all logs. + */ + clearLog(): void; + /** + * Remove a plugin's logs. + */ + clearPluginLog(pluginId: string): void; + /** + * Add a vConsole log. + */ + addLog(item?: { + type: IConsoleLogMethod; + origData: any[]; + isGroupHeader?: 0 | 1 | 2; + isGroupCollapsed?: boolean; + }, opt?: IVConsoleAddLogOptions): void; + /** + * Execute a JS command. + */ + evalCommand(cmd: string): void; + protected _signalLog(log: IVConsoleLog): void; + protected _flushLogs(): void; + protected _extractPluginIdByLog(log: IVConsoleLog): string; + protected _isRepeatedLog(logList: IVConsoleLog[], log: IVConsoleLog): boolean; + protected _updateLastLogRepeated(logList: IVConsoleLog[]): IVConsoleLog[]; + protected _limitLogListLength(logList: IVConsoleLog[]): IVConsoleLog[]; + } +} +declare module "log/log.exporter" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import { VConsoleLogModel } from "log/log.model"; + import type { IConsoleLogMethod } from "log/log.model"; + export class VConsoleLogExporter extends VConsolePluginExporter { + model: VConsoleLogModel; + log(...args: any[]): void; + info(...args: any[]): void; + debug(...args: any[]): void; + warn(...args: any[]): void; + error(...args: any[]): void; + clear(): void; + protected addLog(method: IConsoleLogMethod, ...args: any[]): void; + } +} +declare module "log/log" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleLogModel } from "log/log.model"; + /** + * vConsole Log Plugin (base class). + */ + export class VConsoleLogPlugin extends VConsoleSveltePlugin { + model: VConsoleLogModel; + isReady: boolean; + isShow: boolean; + isInBottom: boolean; + constructor(id: string, name: string); + onReady(): void; + onRemove(): void; + onAddTopBar(callback: Function): void; + onAddTool(callback: Function): void; + onUpdateOption(): void; + } + export default VConsoleLogPlugin; +} +declare module "log/default" { + import { VConsoleLogPlugin } from "log/log"; + export class VConsoleDefaultPlugin extends VConsoleLogPlugin { + protected onErrorHandler: any; + protected resourceErrorHandler: any; + protected rejectionHandler: any; + onReady(): void; + onRemove(): void; + /** + * Catch window errors. + */ + protected bindErrors(): void; + /** + * Not catch window errors. + */ + protected unbindErrors(): void; + /** + * Catch `window.onerror`. + */ + protected catchWindowOnError(): void; + /** + * Catch resource loading error: image, video, link, script. + */ + protected catchResourceError(): void; + /** + * Catch `Promise.reject`. + * @reference https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event + */ + private catchUnhandledRejection; + } + export default VConsoleDefaultPlugin; +} +declare module "log/system" { + import { VConsoleLogPlugin } from "log/log"; + export class VConsoleSystemPlugin extends VConsoleLogPlugin { + onReady(): void; + printSystemInfo(): void; + } + export default VConsoleSystemPlugin; +} +declare module "network/helper" { + import type { VConsoleNetworkRequestItem } from "network/requestItem"; + export type IOnUpdateCallback = (item: VConsoleNetworkRequestItem) => void; + /** + * Generate `getData` by url. + */ + export const genGetDataByUrl: (url: string, getData?: {}) => {}; + /** + * Generate formatted response data by responseType. + */ + export const genResonseByResponseType: (responseType: string, response: any) => string; + /** + * Generate formatted response body by XMLHttpRequestBodyInit. + */ + export const genFormattedBody: (body?: BodyInit) => string | { + [key: string]: string; + }; + /** + * Get formatted URL object by string. + */ + export const getURL: (urlString?: string) => URL; +} +declare module "network/requestItem" { + export type VConsoleRequestMethod = '' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; + export class VConsoleNetworkRequestItem { + id: string; + name?: string; + method: VConsoleRequestMethod; + url: string; + status: number | string; + statusText?: string; + cancelState?: 0 | 1 | 2 | 3; + readyState?: XMLHttpRequest['readyState']; + header: { + [key: string]: string; + }; + responseType: XMLHttpRequest['responseType']; + requestType: 'xhr' | 'fetch' | 'ping' | 'custom'; + requestHeader: HeadersInit; + response: any; + responseSize: number; + responseSizeText: string; + startTime: number; + startTimeText: string; + endTime: number; + costTime?: number; + getData: { + [key: string]: string; + }; + postData: { + [key: string]: string; + } | string; + actived: boolean; + noVConsole?: boolean; + constructor(); + } + export class VConsoleNetworkRequestItemProxy extends VConsoleNetworkRequestItem { + static Handler: { + get(item: VConsoleNetworkRequestItemProxy, prop: string): any; + set(item: VConsoleNetworkRequestItemProxy, prop: string, value: any): boolean; + }; + protected _response?: any; + constructor(item: VConsoleNetworkRequestItem); + } +} +declare module "network/xhr.proxy" { + import { VConsoleNetworkRequestItem } from "network/requestItem"; + import type { IOnUpdateCallback } from "network/helper"; + export class XHRProxyHandler implements ProxyHandler { + XMLReq: XMLHttpRequest; + item: VConsoleNetworkRequestItem; + protected onUpdateCallback: IOnUpdateCallback; + constructor(XMLReq: XMLHttpRequest, onUpdateCallback: IOnUpdateCallback); + get(target: T, key: string): any; + set(target: T, key: string, value: any): boolean; + onReadyStateChange(): void; + onAbort(): void; + onTimeout(): void; + protected triggerUpdate(): void; + protected getOpen(target: T): (...args: any[]) => any; + protected getSend(target: T): (...args: any[]) => any; + protected getSetRequestHeader(target: T): (...args: any[]) => any; + protected setOnReadyStateChange(target: T, key: string, value: any): boolean; + protected setOnAbort(target: T, key: string, value: any): boolean; + protected setOnTimeout(target: T, key: string, value: any): boolean; + /** + * Update item's properties according to readyState. + */ + protected updateItemByReadyState(): void; + } + export class XHRProxy { + static origXMLHttpRequest: { + new (): XMLHttpRequest; + prototype: XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + }; + static create(onUpdateCallback: IOnUpdateCallback): { + new (): XMLHttpRequest; + prototype: XMLHttpRequest; + readonly DONE: number; + readonly HEADERS_RECEIVED: number; + readonly LOADING: number; + readonly OPENED: number; + readonly UNSENT: number; + }; + } +} +declare module "network/fetch.proxy" { + import { VConsoleNetworkRequestItem } from "network/requestItem"; + import type { IOnUpdateCallback } from "network/helper"; + export class ResponseProxyHandler implements ProxyHandler { + resp: Response; + item: VConsoleNetworkRequestItem; + protected onUpdateCallback: IOnUpdateCallback; + constructor(resp: T, item: VConsoleNetworkRequestItem, onUpdateCallback: IOnUpdateCallback); + set(target: T, key: string, value: any): boolean; + get(target: T, key: string): any; + protected mockReader(): void; + } + export class FetchProxyHandler implements ProxyHandler { + protected onUpdateCallback: IOnUpdateCallback; + constructor(onUpdateCallback: IOnUpdateCallback); + apply(target: T, thisArg: typeof window, argsList: any): Promise; + protected beforeFetch(item: VConsoleNetworkRequestItem, input: RequestInfo, init?: RequestInit): void; + protected afterFetch(item: any): (resp: Response) => Response; + protected handleResponseBody(resp: Response, item: VConsoleNetworkRequestItem): Promise | Promise; + } + export class FetchProxy { + static origFetch: typeof fetch; + static create(onUpdateCallback: IOnUpdateCallback): typeof fetch; + } +} +declare module "network/beacon.proxy" { + import type { IOnUpdateCallback } from "network/helper"; + export class BeaconProxyHandler implements ProxyHandler { + protected onUpdateCallback: IOnUpdateCallback; + constructor(onUpdateCallback: IOnUpdateCallback); + apply(target: T, thisArg: T, argsList: any[]): any; + } + export class BeaconProxy { + static origSendBeacon: (url: string | URL, data?: BodyInit) => boolean; + static create(onUpdateCallback: IOnUpdateCallback): any; + } +} +declare module "network/network.model" { + import { VConsoleModel } from "lib/model"; + import { VConsoleNetworkRequestItem } from "network/requestItem"; + /** + * Network Store + */ + export const requestList: import("vendor/svelte/store").Writable<{ + [id: string]: VConsoleNetworkRequestItem; + }>; + /** + * Network Model + */ + export class VConsoleNetworkModel extends VConsoleModel { + maxNetworkNumber: number; + ignoreUrlRegExp: RegExp; + protected itemCounter: number; + constructor(); + unMock(): void; + clearLog(): void; + /** + * Add or update a request item by request ID. + */ + updateRequest(id: string, data: VConsoleNetworkRequestItem): void; + /** + * mock XMLHttpRequest + * @private + */ + private mockXHR; + /** + * mock fetch request + * @private + */ + private mockFetch; + /** + * mock navigator.sendBeacon + * @private + */ + private mockSendBeacon; + protected limitListLength(): void; + } + export default VConsoleNetworkModel; +} +declare module "network/network.exporter" { + import { VConsolePluginExporter } from "lib/pluginExporter"; + import { VConsoleNetworkModel } from "network/network.model"; + import { VConsoleNetworkRequestItem, VConsoleNetworkRequestItemProxy } from "network/requestItem"; + export class VConsoleNetworkExporter extends VConsolePluginExporter { + model: VConsoleNetworkModel; + add(item: VConsoleNetworkRequestItem): VConsoleNetworkRequestItemProxy; + update(id: string, item: VConsoleNetworkRequestItem): void; + clear(): void; + } +} +declare module "network/network" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleNetworkModel } from "network/network.model"; + import { VConsoleNetworkExporter } from "network/network.exporter"; + export class VConsoleNetworkPlugin extends VConsoleSveltePlugin { + model: VConsoleNetworkModel; + exporter: VConsoleNetworkExporter; + constructor(id: string, name: string, renderProps?: {}); + onReady(): void; + onAddTool(callback: any): void; + onRemove(): void; + onUpdateOption(): void; + } +} +declare module "element/element.model" { + export interface IVConsoleNode { + nodeType: typeof Node.prototype.nodeType; + nodeName: typeof Node.prototype.nodeName; + textContent: typeof Node.prototype.textContent; + id: typeof Element.prototype.id; + className: typeof Element.prototype.className; + attributes: { + [name: string]: string; + }[]; + childNodes: IVConsoleNode[]; + _isExpand?: boolean; + _isActived?: boolean; + _isSingleLine?: boolean; + _isNullEndTag?: boolean; + } + /** + * Element Store + */ + export const rootNode: import("vendor/svelte/store").Writable; + export const activedNode: import("vendor/svelte/store").Writable; +} +declare module "element/element" { + import MutationObserver from "vendor/mutation-observer"; + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import type { IVConsoleNode } from "element/element.model"; + /** + * vConsole Element Panel + */ + export class VConsoleElementPlugin extends VConsoleSveltePlugin { + protected isInited: boolean; + protected observer: MutationObserver; + protected nodeMap: WeakMap; + constructor(id: string, name: string, renderProps?: {}); + onShow(): void; + onRemove(): void; + onAddTool(callback: any): void; + protected _init(): void; + protected _handleMutation(mutation: MutationRecord): void; + protected _onChildRemove(mutation: MutationRecord): void; + protected _onChildAdd(mutation: MutationRecord): void; + protected _onAttributesChange(mutation: MutationRecord): void; + protected _onCharacterDataChange(mutation: MutationRecord): void; + /** + * Generate an VNode for rendering views. VNode will be updated if existing. + * VNode will be stored in a WeakMap. + */ + protected _generateVNode(elem: Node): IVConsoleNode; + protected _updateVNodeAttributes(elem: Node): void; + /** + * Expand the actived node. + * If the node is collapsed, expand it. + * If the node is expanded, expand it's child nodes. + */ + protected _expandActivedNode(): void; + /** + * Collapse the actived node. + * If the node is expanded, and has expanded child nodes, collapse it's child nodes. + * If the node is expanded, and has no expanded child node, collapse it self. + * If the node is collapsed, do nothing. + */ + protected _collapseActivedNode(): void; + protected _isIgnoredNode(elem: Node): boolean; + protected _isInVConsole(elem: Element): boolean; + protected _refreshStore(): void; + } +} +declare module "storage/storage.cookie" { + import type { IStorage } from "storage/storage.model"; + export interface CookieOptions { + path?: string | null; + domain?: string | null; + expires?: Date | null; + secure?: boolean; + sameSite?: 'Strict' | 'Lax' | 'None'; + } + export class CookieStorage implements IStorage { + get length(): number; + /** + * Returns sorted keys. + */ + get keys(): string[]; + key(index: number): string; + setItem(key: string, data: string, cookieOptions?: CookieOptions): void; + getItem(key: string): string; + removeItem(key: string, cookieOptions?: CookieOptions): void; + clear(): void; + } +} +declare module "storage/storage.wx" { + import type { IStorage } from "storage/storage.model"; + export class WxStorage implements IStorage { + keys: string[]; + currentSize: number; + limitSize: number; + get length(): number; + key(index: number): string; + /** + * Prepare for async data. + */ + prepare(): Promise; + getItem(key: string): Promise; + setItem(key: string, data: any): Promise; + removeItem(key: string): Promise; + clear(): Promise; + } +} +declare module "storage/storage.model" { + import type { VConsoleAvailableStorage } from "core/options.interface"; + import { VConsoleModel } from "lib/model"; + export interface IStorage { + length: number; + key: (index: number) => string | null; + getItem: (key: string) => string | null | Promise; + setItem: (key: string, data: any) => void | Promise; + removeItem: (key: string) => void | Promise; + clear: () => void | Promise; + prepare?: () => Promise; + } + /** + * Storage Store + */ + export const storageStore: { + updateTime: import("vendor/svelte/store").Writable; + activedName: import("vendor/svelte/store").Writable; + defaultStorages: import("vendor/svelte/store").Writable; + }; + export class VConsoleStorageModel extends VConsoleModel { + protected storage: Map; + constructor(); + get activedStorage(): IStorage; + getItem(key: string): Promise; + setItem(key: string, data: any): Promise; + removeItem(key: string): Promise; + clear(): Promise; + refresh(): void; + /** + * Get key-value data. + */ + getEntries(): Promise<[string, string][]>; + updateEnabledStorages(): void; + protected promisify(ret: T | Promise): T | Promise; + protected deleteStorage(key: VConsoleAvailableStorage): void; + } +} +declare module "storage/storage" { + import { VConsoleSveltePlugin } from "lib/sveltePlugin"; + import { VConsoleStorageModel } from "storage/storage.model"; + export class VConsoleStoragePlugin extends VConsoleSveltePlugin { + protected model: VConsoleStorageModel; + protected onAddTopBarCallback: Function; + constructor(id: string, name: string, renderProps?: {}); + onReady(): void; + onShow(): void; + onAddTopBar(callback: Function): void; + onAddTool(callback: Function): void; + onUpdateOption(): void; + protected updateTopBar(): void; + } +} +declare module "core/core" { + /** + * vConsole core class + */ + import type { SvelteComponent } from "vendor/svelte"; + import type { VConsoleOptions } from "core/options.interface"; + import { VConsolePlugin } from "lib/plugin"; + import { VConsoleLogPlugin } from "log/log"; + import { VConsoleDefaultPlugin } from "log/default"; + import { VConsoleSystemPlugin } from "log/system"; + import { VConsoleNetworkPlugin } from "network/network"; + import { VConsoleElementPlugin } from "element/element"; + import { VConsoleStoragePlugin } from "storage/storage"; + import { VConsoleLogExporter } from "log/log.exporter"; + import { VConsoleNetworkExporter } from "network/network.exporter"; + export class VConsole { + version: string; + isInited: boolean; + option: VConsoleOptions; + protected compInstance: SvelteComponent; + protected pluginList: { + [id: string]: VConsolePlugin; + }; + log: VConsoleLogExporter; + system: VConsoleLogExporter; + network: VConsoleNetworkExporter; + static VConsolePlugin: typeof VConsolePlugin; + static VConsoleLogPlugin: typeof VConsoleLogPlugin; + static VConsoleDefaultPlugin: typeof VConsoleDefaultPlugin; + static VConsoleSystemPlugin: typeof VConsoleSystemPlugin; + static VConsoleNetworkPlugin: typeof VConsoleNetworkPlugin; + static VConsoleElementPlugin: typeof VConsoleElementPlugin; + static VConsoleStoragePlugin: typeof VConsoleStoragePlugin; + constructor(opt?: VConsoleOptions); + /** + * Get singleton instance. + **/ + static get instance(): VConsole | undefined; + /** + * Set singleton instance. + **/ + static set instance(value: VConsole | undefined); + /** + * Add built-in plugins. + */ + private _addBuiltInPlugins; + /** + * Init svelte component. + */ + private _initComponent; + private _updateComponentByOptions; + /** + * Update the position of Switch button. + */ + setSwitchPosition(x: number, y: number): void; + /** + * Auto run after initialization. + * @private + */ + private _autoRun; + private _showFirstPluginWhenEmpty; + /** + * Trigger a `vConsole.option` event. + */ + triggerEvent(eventName: string, param?: any): void; + /** + * Init a plugin. + */ + private _initPlugin; + /** + * Trigger an event for each plugin. + */ + private _triggerPluginsEvent; + /** + * Trigger an event by plugin's id. + * @private + */ + private _triggerPluginEvent; + /** + * Sorting plugin list by option `pluginOrder`. + * Plugin not listed in `pluginOrder` will be put last. + */ + private _reorderPluginList; + /** + * Add a new plugin. + */ + addPlugin(plugin: VConsolePlugin): boolean; + /** + * Remove a plugin. + */ + removePlugin(pluginID: string): boolean; + /** + * Show console panel. + */ + show(): void; + /** + * Hide console panel. + */ + hide(): void; + /** + * Show switch button + */ + showSwitch(): void; + /** + * Hide switch button. + */ + hideSwitch(): void; + /** + * Show a plugin panel. + */ + showPlugin(pluginId: string): void; + /** + * Update option(s). + * @example `setOption('log.maxLogNumber', 20)`: set 'maxLogNumber' field only. + * @example `setOption({ log: { maxLogNumber: 20 }})`: overwrite 'log' object. + */ + setOption(keyOrObj: any, value?: any): void; + /** + * Remove vConsole. + */ + destroy(): void; + } +} +declare module "vconsole" { + /** + * A Front-End Console Panel for Mobile Webpage + */ + import "vendor/core-js/stable/symbol"; + import 'core-js/stable/promise'; + import { VConsole } from "core/core"; + export default VConsole; +} +declare module "component/recycleScroller/recycleManager" { + const createRecycleManager: () => (itemCount: number, start: number, end: number) => { + key: number; + index: number; + show: boolean; + }[]; + export default createRecycleManager; +} +declare module "component/recycleScroller/resizeObserver" { + /** + * A ResizeObserver polyfill. + * ResizeObserver is not support in iOS 13.3 + */ + class EmptyResizeObserver { + constructor(callback: (entries: any[], observer?: EmptyResizeObserver) => void); + disconnect(): void; + observe(target: Element | SVGElement, options?: any): void; + unobserve(target: Element | SVGElement): void; + } + export const hasResizeObserver: () => boolean; + export const useResizeObserver: () => { + new (callback: ResizeObserverCallback): ResizeObserver; + prototype: ResizeObserver; + } | typeof EmptyResizeObserver; +} +declare module "component/recycleScroller/scroll/friction" { + /** * + * Friction physics simulation. Friction is actually just a simple + * power curve; the only trick is taking the natural log of the + * initial drag so that we can express the answer in terms of time. + */ + class Friction { + private _drag; + private _dragLog; + private _x; + private _v; + private _startTime; + constructor(drag: number); + set(x: number, v: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Friction; +} +declare module "component/recycleScroller/scroll/linear" { + class Linear { + private _x; + private _endX; + private _v; + private _startTime; + private _endTime; + set(x: number, endX: number, dt: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Linear; +} +declare module "component/recycleScroller/scroll/spring" { + class Spring { + private _solver; + private _solution; + private _endPosition; + private _startTime; + constructor(mass: number, springConstant: number, damping: number); + x(t: number): number; + dx(t: number): number; + set(endPosition: number, x: number, velocity: number, t?: number): void; + done(t: number): boolean; + } + export default Spring; +} +declare module "component/recycleScroller/scroll/scroll" { + /** * + * Scroll combines Friction and Spring to provide the + * classic "flick-with-bounce" behavior. + */ + class Scroll { + private _enableSpring; + private _getExtend; + private _friction; + private _spring; + private _toEdge; + constructor(getExtend: () => number, _enableSpring: boolean); + set(x: number, v: number, t?: number): void; + x(t: number): number; + dx(t: number): number; + done(t: number): boolean; + } + export default Scroll; +} +declare module "component/recycleScroller/scroll/touchTracker" { + export interface TrackerHandler { + onTouchStart(): void; + onTouchMove(x: number, y: number): void; + onTouchEnd(x: number, y: number, velocityX: number, velocityY: number): void; + onTouchCancel(): void; + onWheel(x: number, y: number): void; + } + class TouchTracker { + private _handler; + private _touchId; + private _startX; + private _startY; + private _historyX; + private _historyY; + private _historyTime; + private _wheelDeltaX; + private _wheelDeltaY; + constructor(_handler: TrackerHandler); + private _getTouchDelta; + private _onTouchMove; + private _onWheel; + handleTouchStart: (e: TouchEvent) => void; + handleTouchMove: (e: TouchEvent) => void; + handleTouchEnd: (e: TouchEvent) => void; + handleTouchCancel: (e: TouchEvent) => void; + handleWheel: (e: WheelEvent) => void; + } + export default TouchTracker; +} +declare module "component/recycleScroller/scroll/scrollHandler" { + import { TrackerHandler } from "component/recycleScroller/scroll/touchTracker"; + class ScrollHandler implements TrackerHandler { + private _updatePosition; + private _scrollModel; + private _linearModel; + private _startPosition; + private _position; + private _animate; + private _getExtent; + constructor(getExtent: () => number, _updatePosition: (pos: number) => void); + onTouchStart(): void; + onTouchMove(dx: number, dy: number): void; + onTouchEnd(dx: number, dy: number, velocityX: number, velocityY: number): void; + onTouchCancel(): void; + onWheel(x: number, y: number): void; + getPosition(): number; + updatePosition(position: number): void; + scrollTo(position: number, duration?: number): void; + } + export default ScrollHandler; +} diff --git a/node_modules/vconsole/dist/vconsole.min.js b/node_modules/vconsole/dist/vconsole.min.js new file mode 100644 index 0000000..ff1f2b9 --- /dev/null +++ b/node_modules/vconsole/dist/vconsole.min.js @@ -0,0 +1,10 @@ +/*! + * vConsole v3.15.1 (https://github.com/Tencent/vConsole) + * + * Tencent is pleased to support the open source community by making vConsole available. + * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * 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. + */ +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("VConsole",[],n):"object"==typeof exports?exports.VConsole=n():t.VConsole=n()}(this||self,(function(){return function(){var __webpack_modules__={4264:function(t,n,e){t.exports=e(7588)},5036:function(t,n,e){e(1719),e(5677),e(6394),e(5334),e(6969),e(2021),e(8328),e(2129);var o=e(1287);t.exports=o.Promise},2582:function(t,n,e){e(1646),e(6394),e(2004),e(462),e(8407),e(2429),e(1172),e(8288),e(1274),e(8201),e(6626),e(3211),e(9952),e(15),e(9831),e(7521),e(2972),e(6956),e(5222),e(2257);var o=e(1287);t.exports=o.Symbol},8257:function(t,n,e){var o=e(7583),r=e(9212),i=e(5637),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},1186:function(t,n,e){var o=e(7583),r=e(2097),i=e(5637),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a constructor")}},9882:function(t,n,e){var o=e(7583),r=e(9212),i=o.String,a=o.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},6288:function(t,n,e){var o=e(3649),r=e(3590),i=e(4615),a=o("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:r(null)}),t.exports=function(t){c[a][t]=!0}},4761:function(t,n,e){var o=e(7583),r=e(2447),i=o.TypeError;t.exports=function(t,n){if(r(n,t))return t;throw i("Incorrect invocation")}},2569:function(t,n,e){var o=e(7583),r=e(794),i=o.String,a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},5766:function(t,n,e){var o=e(2977),r=e(6782),i=e(1825),a=function(t){return function(n,e,a){var c,u=o(n),s=i(u),l=r(a,s);if(t&&e!=e){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===e)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4805:function(t,n,e){var o=e(2938),r=e(7386),i=e(5044),a=e(1324),c=e(1825),u=e(4822),s=r([].push),l=function(t){var n=1==t,e=2==t,r=3==t,l=4==t,f=6==t,d=7==t,v=5==t||f;return function(p,h,g,m){for(var _,b,y=a(p),w=i(y),E=o(h,g),L=c(w),T=0,x=m||u,C=n?x(p,L):e||d?x(p,0):void 0;L>T;T++)if((v||T in w)&&(b=E(_=w[T],T,y),t))if(n)C[T]=b;else if(b)switch(t){case 3:return!0;case 5:return _;case 6:return T;case 2:s(C,_)}else switch(t){case 4:return!1;case 7:s(C,_)}return f?-1:r||l?l:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9269:function(t,n,e){var o=e(6544),r=e(3649),i=e(4061),a=r("species");t.exports=function(t){return i>=51||!o((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},4546:function(t,n,e){var o=e(7583),r=e(6782),i=e(1825),a=e(5999),c=o.Array,u=Math.max;t.exports=function(t,n,e){for(var o=i(t),s=r(n,o),l=r(void 0===e?o:e,o),f=c(u(l-s,0)),d=0;s0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),t.exports=r},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(t,n,e){var o=e(6544),r=e(4677);t.exports=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},7263:function(t,n,e){var o=e(7583),r=e(6683).f,i=e(57),a=e(1270),c=e(460),u=e(3478),s=e(4451);t.exports=function(t,n){var e,l,f,d,v,p=t.target,h=t.global,g=t.stat;if(e=h?o:g?o[p]||c(p,{}):(o[p]||{}).prototype)for(l in n){if(d=n[l],f=t.noTargetGet?(v=r(e,l))&&v.value:e[l],!s(h?l:p+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(e,l,d,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1611:function(t,n,e){var o=e(8987),r=Function.prototype,i=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},2938:function(t,n,e){var o=e(7386),r=e(8257),i=e(8987),a=o(o.bind);t.exports=function(t,n){return r(t),void 0===n?t:i?a(t,n):function(){return t.apply(n,arguments)}}},8987:function(t,n,e){var o=e(6544);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8262:function(t,n,e){var o=e(8987),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},4340:function(t,n,e){var o=e(8494),r=e(2870),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,c=r(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!o||o&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},7386:function(t,n,e){var o=e(8987),r=Function.prototype,i=r.bind,a=r.call,c=o&&i.bind(a,a);t.exports=o?function(t){return t&&c(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5897:function(t,n,e){var o=e(7583),r=e(9212),i=function(t){return r(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(o[t]):o[t]&&o[t][n]}},8272:function(t,n,e){var o=e(3058),r=e(911),i=e(339),a=e(3649)("iterator");t.exports=function(t){if(null!=t)return r(t,a)||r(t,"@@iterator")||i[o(t)]}},6307:function(t,n,e){var o=e(7583),r=e(8262),i=e(8257),a=e(2569),c=e(5637),u=e(8272),s=o.TypeError;t.exports=function(t,n){var e=arguments.length<2?u(t):n;if(i(e))return a(r(e,t));throw s(c(t)+" is not iterable")}},911:function(t,n,e){var o=e(8257);t.exports=function(t,n){var e=t[n];return null==e?void 0:o(e)}},7583:function(t,n,e){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},2870:function(t,n,e){var o=e(7386),r=e(1324),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(r(t),n)}},4639:function(t){t.exports={}},2716:function(t,n,e){var o=e(7583);t.exports=function(t,n){var e=o.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,n))}},482:function(t,n,e){var o=e(5897);t.exports=o("document","documentElement")},275:function(t,n,e){var o=e(8494),r=e(6544),i=e(6668);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5044:function(t,n,e){var o=e(7583),r=e(7386),i=e(6544),a=e(9624),c=o.Object,u=r("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):c(t)}:c},9734:function(t,n,e){var o=e(7386),r=e(9212),i=e(1314),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},4402:function(t,n,e){var o=e(794),r=e(57);t.exports=function(t,n){o(n)&&"cause"in n&&r(t,"cause",n.cause)}},2743:function(t,n,e){var o,r,i,a=e(9491),c=e(7583),u=e(7386),s=e(794),l=e(57),f=e(2870),d=e(1314),v=e(9137),p=e(4639),h="Object already initialized",g=c.TypeError,m=c.WeakMap;if(a||d.state){var _=d.state||(d.state=new m),b=u(_.get),y=u(_.has),w=u(_.set);o=function(t,n){if(y(_,t))throw new g(h);return n.facade=t,w(_,t,n),n},r=function(t){return b(_,t)||{}},i=function(t){return y(_,t)}}else{var E=v("state");p[E]=!0,o=function(t,n){if(f(t,E))throw new g(h);return n.facade=t,l(t,E,n),n},r=function(t){return f(t,E)?t[E]:{}},i=function(t){return f(t,E)}}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(n){var e;if(!s(n)||(e=r(n)).type!==t)throw g("Incompatible receiver, "+t+" required");return e}}}},114:function(t,n,e){var o=e(3649),r=e(339),i=o("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},4521:function(t,n,e){var o=e(9624);t.exports=Array.isArray||function(t){return"Array"==o(t)}},9212:function(t){t.exports=function(t){return"function"==typeof t}},2097:function(t,n,e){var o=e(7386),r=e(6544),i=e(9212),a=e(3058),c=e(5897),u=e(9734),s=function(){},l=[],f=c("Reflect","construct"),d=/^\s*(?:class|function)\b/,v=o(d.exec),p=!d.exec(s),h=function(t){if(!i(t))return!1;try{return f(s,l,t),!0}catch(t){return!1}},g=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!v(d,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!f||r((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?g:h},4451:function(t,n,e){var o=e(6544),r=e(9212),i=/#|\.prototype\./,a=function(t,n){var e=u[c(t)];return e==l||e!=s&&(r(n)?o(n):!!n)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},794:function(t,n,e){var o=e(9212);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},6268:function(t){t.exports=!1},5871:function(t,n,e){var o=e(7583),r=e(5897),i=e(9212),a=e(2447),c=e(7786),u=o.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return i(n)&&a(n.prototype,u(t))}},4026:function(t,n,e){var o=e(7583),r=e(2938),i=e(8262),a=e(2569),c=e(5637),u=e(114),s=e(1825),l=e(2447),f=e(6307),d=e(8272),v=e(7093),p=o.TypeError,h=function(t,n){this.stopped=t,this.result=n},g=h.prototype;t.exports=function(t,n,e){var o,m,_,b,y,w,E,L=e&&e.that,T=!(!e||!e.AS_ENTRIES),x=!(!e||!e.IS_ITERATOR),C=!(!e||!e.INTERRUPTED),O=r(n,L),I=function(t){return o&&v(o,"normal",t),new h(!0,t)},D=function(t){return T?(a(t),C?O(t[0],t[1],I):O(t[0],t[1])):C?O(t,I):O(t)};if(x)o=t;else{if(!(m=d(t)))throw p(c(t)+" is not iterable");if(u(m)){for(_=0,b=s(t);b>_;_++)if((y=D(t[_]))&&l(g,y))return y;return new h(!1)}o=f(t,m)}for(w=o.next;!(E=i(w,o)).done;){try{y=D(E.value)}catch(t){v(o,"throw",t)}if("object"==typeof y&&y&&l(g,y))return y}return new h(!1)}},7093:function(t,n,e){var o=e(8262),r=e(2569),i=e(911);t.exports=function(t,n,e){var a,c;r(t);try{if(!(a=i(t,"return"))){if("throw"===n)throw e;return e}a=o(a,t)}catch(t){c=!0,a=t}if("throw"===n)throw e;if(c)throw a;return r(a),e}},2365:function(t,n,e){"use strict";var o,r,i,a=e(6544),c=e(9212),u=e(3590),s=e(729),l=e(1270),f=e(3649),d=e(6268),v=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(r=s(s(i)))!==Object.prototype&&(o=r):p=!0),null==o||a((function(){var t={};return o[v].call(t)!==t}))?o={}:d&&(o=u(o)),c(o[v])||l(o,v,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,n,e){var o=e(97);t.exports=function(t){return o(t.length)}},2095:function(t,n,e){var o,r,i,a,c,u,s,l,f=e(7583),d=e(2938),v=e(6683).f,p=e(8117).set,h=e(7020),g=e(3256),m=e(6846),_=e(5354),b=f.MutationObserver||f.WebKitMutationObserver,y=f.document,w=f.process,E=f.Promise,L=v(f,"queueMicrotask"),T=L&&L.value;T||(o=function(){var t,n;for(_&&(t=w.domain)&&t.exit();r;){n=r.fn,r=r.next;try{n()}catch(t){throw r?a():i=void 0,t}}i=void 0,t&&t.enter()},h||_||m||!b||!y?!g&&E&&E.resolve?((s=E.resolve(void 0)).constructor=E,l=d(s.then,s),a=function(){l(o)}):_?a=function(){w.nextTick(o)}:(p=d(p,f),a=function(){p(o)}):(c=!0,u=y.createTextNode(""),new b(o).observe(u,{characterData:!0}),a=function(){u.data=c=!c})),t.exports=T||function(t){var n={fn:t,next:void 0};i&&(i.next=n),r||(r=n,a()),i=n}},783:function(t,n,e){var o=e(7583);t.exports=o.Promise},8640:function(t,n,e){var o=e(4061),r=e(6544);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},9491:function(t,n,e){var o=e(7583),r=e(9212),i=e(9734),a=o.WeakMap;t.exports=r(a)&&/native code/.test(i(a))},5084:function(t,n,e){"use strict";var o=e(8257),r=function(t){var n,e;this.promise=new t((function(t,o){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=o})),this.resolve=o(n),this.reject=o(e)};t.exports.f=function(t){return new r(t)}},2764:function(t,n,e){var o=e(8320);t.exports=function(t,n){return void 0===t?arguments.length<2?"":n:o(t)}},3590:function(t,n,e){var o,r=e(2569),i=e(8728),a=e(5690),c=e(4639),u=e(482),s=e(6668),l=e(9137),f=l("IE_PROTO"),d=function(){},v=function(t){return" + diff --git a/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html b/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html new file mode 100644 index 0000000..9206497 --- /dev/null +++ b/node_modules/vue-qrcode-reader/docs/.vuepress/public/select-camera-demo.html @@ -0,0 +1,76 @@ + + + + + + + + + +cameras:
+
    +
    + + + + + diff --git a/node_modules/vue-qrcode-reader/shell.nix b/node_modules/vue-qrcode-reader/shell.nix new file mode 100644 index 0000000..49f4a83 --- /dev/null +++ b/node_modules/vue-qrcode-reader/shell.nix @@ -0,0 +1,12 @@ +{ pkgs ? import {} }: + +pkgs.mkShell { + + buildInputs = with pkgs; [ + nodejs_18 + nodePackages.pnpm + nodePackages.typescript-language-server + nodePackages.volar + ]; + +} diff --git a/node_modules/zxing-wasm/LICENSE b/node_modules/zxing-wasm/LICENSE new file mode 100644 index 0000000..5dd3d5b --- /dev/null +++ b/node_modules/zxing-wasm/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Ze-Zheng Wu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/zxing-wasm/README.md b/node_modules/zxing-wasm/README.md new file mode 100644 index 0000000..035fb87 --- /dev/null +++ b/node_modules/zxing-wasm/README.md @@ -0,0 +1,248 @@ +# zxing-wasm + +[![npm](https://img.shields.io/npm/v/zxing-wasm)](https://www.npmjs.com/package/zxing-wasm/v/latest) [![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/zxing-wasm)](https://www.npmjs.com/package/zxing-wasm/v/latest) [![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/zxing-wasm?color=%23ff5627)](https://cdn.jsdelivr.net/npm/zxing-wasm@latest/) [![deploy status](https://github.com/Sec-ant/zxing-wasm/actions/workflows/deploy.yml/badge.svg)](https://github.com/Sec-ant/zxing-wasm/actions/workflows/deploy.yml) + +[ZXing-C++](https://github.com/zxing-cpp/zxing-cpp) WebAssembly as an ES/CJS module with types. Read or write barcodes in various JS runtimes: web, node, bun and deno. + +Visit [this online demo](https://zxing-wasm-demo.deno.dev/) to quickly explore its basic functions. It works best on the latest chromium browsers. + +## Build + +```bash +git clone --recurse-submodules https://github.com/Sec-ant/zxing-wasm +cd zxing-wasm +# install pnpm first: +# https://pnpm.io/installation +pnpm i --frozen-lockfile +# install cmake first: +# https://cmake.org/download/ +pnpm cmake +# install emscripten first: +# https://emscripten.org/docs/getting_started/downloads.html +pnpm build:wasm +pnpm build +``` + +## Install + +``` +npm i zxing-wasm +``` + +## Documentation + +https://zxing-wasm.deno.dev/ + +## Demo + +Demo page: https://zxing-wasm-demo.deno.dev/ + +Demo source: https://github.com/Sec-ant/zxing-wasm-demo + +## Usage + +This package exports 3 subpaths: `full`, `reader` and `writer`. You can choose whichever fits your needs. If you use TypeScript, you should set [`moduleResolution`](https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution) to [`bundler`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler), [`node16` or `nodenext`](https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext-1) in your `tsconfig.json` file to properly resolve the exported module. + +### `zxing-wasm` or `zxing-wasm/full` + +These 2 subpaths include functions to both read and write barcodes. The wasm binary size is ~1.19 MB. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + writeBarcodeToImageFile, +} from "zxing-wasm"; +``` + +or + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + writeBarcodeToImageFile, +} from "zxing-wasm/full"; +``` + +### `zxing-wasm/reader` + +This subpath only includes functions to read barcodes. The wasm binary size is ~917 KB. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, +} from "zxing-wasm/reader"; +``` + +### `zxing-wasm/writer` + +This subpath only includes a function to write barcodes. The wasm binary size is ~366 KB. + +```ts +import { writeBarcodeToImageFile } from "zxing-wasm/writer"; +``` + +### IIFE Scripts + +Apart from ES and CJS modules, this package also ships IIFE scripts. The registered global variable is named `ZXingWASM`. + +```html + + + + + + + + +``` + +### [`readBarcodesFromImageFile`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageFile.html) and [`readBarcodesFromImageData`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageData.html) + +These 2 functions are for reading barcodes. + +[`readBarcodesFromImageFile`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageFile.html) accepts an image [`Blob`](https://developer.mozilla.org/docs/Web/API/Blob) or an image [`File`](https://developer.mozilla.org/docs/Web/API/File) as the first input. They're encoded images, e.g. `.png` `.jpg` files. + +[`readBarcodesFromImageData`](https://zxing-wasm.deno.dev/functions/full.readBarcodesFromImageData.html) accepts an [`ImageData`](https://developer.mozilla.org/docs/Web/API/ImageData) as the first input. They're raw pixels that usually acquired from [``](https://developer.mozilla.org/docs/Web/HTML/Element/canvas) or related APIs. + +Both of these 2 functions optionally accept the same second input: [`ReaderOptions`](https://zxing-wasm.deno.dev/interfaces/full.ReaderOptions.html). + +The return result of these 2 functions is a `Promise` of an array of [`ReadResult`](https://zxing-wasm.deno.dev/interfaces/full.ReadResult.html)s. + +e.g. + +```ts +import { + readBarcodesFromImageFile, + readBarcodesFromImageData, + type ReaderOptions, +} from "zxing-wasm/reader"; + +const readerOptions: ReaderOptions = { + tryHarder: true, + formats: ["QRCode"], + maxNumberOfSymbols: 1, +}; + +/** + * Read from image file/blob + */ +const imageFile = await fetch( + "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!", +).then((resp) => resp.blob()); + +const imageFileReadResults = await readBarcodesFromImageFile( + imageFile, + readerOptions, +); + +console.log(imageFileReadResults[0].text); // Hello world! + +/** + * Read from image data + */ +const imageData = await createImageBitmap(imageFile).then((imageBitmap) => { + const { width, height } = imageBitmap; + const context = new OffscreenCanvas(width, height).getContext( + "2d", + ) as OffscreenCanvasRenderingContext2D; + context.drawImage(imageBitmap, 0, 0, width, height); + return context.getImageData(0, 0, width, height); +}); + +const imageDataReadResults = await readBarcodesFromImageData( + imageData, + readerOptions, +); + +console.log(imageDataReadResults[0].text); // Hello world! +``` + +### [`writeBarcodeToImageFile`](https://zxing-wasm.deno.dev/functions/full.writeBarcodeToImageFile.html) + +This function is used to write barcodes. The first argument of this function is a text string to be encoded and the optional second argument is an [`WriterOptions`](https://zxing-wasm.deno.dev/interfaces/full.WriterOptions.html). + +The return result of this function is a `Promise` of a [`WriteResult`](https://zxing-wasm.deno.dev/interfaces/full.WriteResult.html). + +e.g. + +```ts +import { writeBarcodeToImageFile, type WriterOptions } from "zxing-wasm/writer"; + +const writerOptions: WriterOptions = { + format: "QRCode", + width: 150, + height: 150, + margin: 10, + eccLevel: 2, +}; + +const writeOutput = await writeBarcodeToImageFile( + "Hello world!", + writerOptions, +); + +console.log(writeOutput.image); +``` + +## Notes + +When using this package, the `.wasm` binary needs to be served along with the JS glue code. In order to provide a smooth dev experience, the serve path is automatically assigned the [jsDelivr CDN](https://fastly.jsdelivr.net/npm/zxing-wasm/) url upon build. + +If you would like to change the serve path (to one of your local network hosts, some other CDNs, or just Base64 encoded data URIs), please use [`setZXingModuleOverrides`](https://zxing-wasm.deno.dev/functions/full.setZXingModuleOverrides.html) to override the [`locateFile`](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#Module.locateFile) function in advance. `locateFile` is one of the [Emscripten `Module` attribute hooks](https://emscripten.org/docs/api_reference/module.html?highlight=locatefile#affecting-execution) that can affect the code execution of the `Module` object during its lifecycles. + +e.g. + +```ts +import { setZXingModuleOverrides, writeBarcodeToImageFile } from "zxing-wasm"; + +// override the locateFile function +setZXingModuleOverrides({ + locateFile: (path, prefix) => { + if (path.endsWith(".wasm")) { + return `https://unpkg.com/zxing-wasm@1/dist/full/${path}`; + } + return prefix + path; + }, +}); + +// call read or write functions afterwards +const writeOutput = await writeBarcodeToImageFile("Hello world!"); +``` + +The wasm binary won't be fetched or instantiated unless a [read](#readbarcodesfromimagefile-and-readbarcodesfromimagedata) or [write](#writebarcodetoimagefile) function is firstly called, and will only be instantiated once given the same ([`Object.is`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/is)) [ZXingModuleOverrides](https://zxing-wasm.deno.dev/types/full.ZXingModuleOverrides). If you want to manually trigger the download and instantiation of the wasm binary prior to any read or write functions, you can use [`getZXingModule`](https://zxing-wasm.deno.dev/functions/full.getZXingModule). This function will also return a `Promise` that resolves to a [`ZXingModule`](https://zxing-wasm.deno.dev/types/full.ZXingModule). + +```ts +import { getZXingModule } from "zxing-wasm"; + +/** + * This function will trigger the download and + * instantiation of the wasm binary immediately + */ +const zxingModulePromise1 = getZXingModule(); + +const zxingModulePromise2 = getZXingModule(); + +console.log(zxingModulePromise1 === zxingModulePromise2); // true +``` + +[`getZXingModule`](https://zxing-wasm.deno.dev/functions/full.getZXingModule) can also optionally accept a [`ZXingModuleOverrides`](https://zxing-wasm.deno.dev/types/full.ZXingModuleOverrides.html) argument. + +```ts +import { getZXingModule } from "zxing-wasm"; + +getZXingModule({ + locateFile: (path, prefix) => { + if (path.endsWith(".wasm")) { + return `https://unpkg.com/zxing-wasm@1/dist/full/${path}`; + } + return prefix + path; + }, +}); +``` + +## License + +MIT diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts new file mode 100644 index 0000000..287560e --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/barcodeFormat.d.ts @@ -0,0 +1,21 @@ +export declare const barcodeFormats: readonly ["Aztec", "Codabar", "Code128", "Code39", "Code93", "DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge", "EAN-13", "EAN-8", "ITF", "Linear-Codes", "Matrix-Codes", "MaxiCode", "MicroQRCode", "None", "PDF417", "QRCode", "rMQRCode", "UPC-A", "UPC-E"]; +/** + * @internal + */ +export type BarcodeFormat = (typeof barcodeFormats)[number]; +/** + * Barcode formats that can be used in {@link ReaderOptions.formats | `ReaderOptions.formats`} to read barcodes. + */ +export type ReadInputBarcodeFormat = Exclude; +/** + * Barcode formats that can be used in {@link WriterOptions.format | `WriterOptions.format`} to write barcodes. + */ +export type WriteInputBarcodeFormat = Exclude; +/** + * Barcode formats that may be returned in {@link ReadResult.format} in read functions. + */ +export type ReadOutputBarcodeFormat = Exclude; +export declare function formatsToString(formats: BarcodeFormat[]): string; +export declare function formatsFromString(formatString: string): BarcodeFormat[]; +export declare function formatFromString(format: string): BarcodeFormat; +export declare function normalizeFormatString(format: string): string; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts new file mode 100644 index 0000000..294133d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/binarizer.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const binarizers: readonly ["LocalAverage", "GlobalHistogram", "FixedThreshold", "BoolCast"]; +export type Binarizer = (typeof binarizers)[number]; +/** + * @internal + */ +export type ZXingBinarizer = Record; +export declare function binarizerToZXingEnum(zxingModule: ZXingModule, binarizer: Binarizer): ZXingEnum; +export declare function zxingEnumToBinarizer(zxingEnum: ZXingEnum): Binarizer; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts new file mode 100644 index 0000000..bff72f8 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/characterSet.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule, ZXingModuleType } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const characterSets: readonly ["Unknown", "ASCII", "ISO8859_1", "ISO8859_2", "ISO8859_3", "ISO8859_4", "ISO8859_5", "ISO8859_6", "ISO8859_7", "ISO8859_8", "ISO8859_9", "ISO8859_10", "ISO8859_11", "ISO8859_13", "ISO8859_14", "ISO8859_15", "ISO8859_16", "Cp437", "Cp1250", "Cp1251", "Cp1252", "Cp1256", "Shift_JIS", "Big5", "GB2312", "GB18030", "EUC_JP", "EUC_KR", "UTF16BE", "UTF8", "UTF16LE", "UTF32BE", "UTF32LE", "BINARY"]; +export type CharacterSet = (typeof characterSets)[number]; +/** + * @internal + */ +export type ZXingCharacterSet = Record; +export declare function characterSetToZXingEnum(zxingModule: ZXingModule, characterSet: CharacterSet): ZXingEnum; +export declare function zxingEnumToCharacterSet(zxingEnum: ZXingEnum): CharacterSet; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts new file mode 100644 index 0000000..a18e62d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/contentType.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const contentTypes: readonly ["Text", "Binary", "Mixed", "GS1", "ISO15434", "UnknownECI"]; +export type ContentType = (typeof contentTypes)[number]; +/** + * @internal + */ +export type ZXingContentType = Record; +export declare function contentTypeToZXingEnum(zxingModule: ZXingModule, contentType: ContentType): ZXingEnum; +export declare function zxingEnumToContentType(zxingEnum: ZXingEnum): ContentType; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts new file mode 100644 index 0000000..ed3a5b2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/eanAddOnSymbol.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"]; +export type EanAddOnSymbol = (typeof eanAddOnSymbols)[number]; +/** + * @internal + */ +export type ZXingEanAddOnSymbol = Record; +export declare function eanAddOnSymbolToZXingEnum(zxingModule: ZXingModule, eanAddOnSymbol: EanAddOnSymbol): ZXingEnum; +export declare function zxingEnumToEanAddOnSymbol(zxingEnum: ZXingEnum): EanAddOnSymbol; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts new file mode 100644 index 0000000..bbfb1bc --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/eccLevel.d.ts @@ -0,0 +1,4 @@ +export declare const writeInputEccLevels: readonly [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8]; +export type WriteInputEccLevel = (typeof writeInputEccLevels)[number]; +export declare const readOutputEccLevels: readonly ["L", "M", "Q", "H"]; +export type ReadOutputEccLevel = (typeof readOutputEccLevels)[number]; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts new file mode 100644 index 0000000..7d42d60 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/enum.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export interface ZXingEnum { + value: number; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts new file mode 100644 index 0000000..5876088 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/exposedReaderBindings.d.ts @@ -0,0 +1,17 @@ +import { type ReaderOptions } from "./index.js"; +export declare const defaultReaderOptions: Required; +export { barcodeFormats, type BarcodeFormat, type ReadInputBarcodeFormat, type ReadOutputBarcodeFormat, binarizers, type ZXingBinarizer, type Binarizer, characterSets, type ZXingCharacterSet, type CharacterSet, contentTypes, type ZXingContentType, type ContentType, type ZXingReaderOptions, type ReaderOptions, eanAddOnSymbols, type ZXingEanAddOnSymbol, type EanAddOnSymbol, readOutputEccLevels, type ReadOutputEccLevel, type ZXingEnum, type ZXingPoint, type ZXingPosition, type Point, type Position, type ZXingReadResult, type ReadResult, textModes, type ZXingTextMode, type TextMode, type ZXingVector, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultReaderOptions` + */ +defaultReaderOptions as defaultDecodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingReaderOptions` + */ +ZXingReaderOptions as ZXingDecodeHints, +/** + * @deprecated renamed as `ReaderOptions` + */ +ReaderOptions as DecodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts new file mode 100644 index 0000000..dfc4b5d --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/exposedWriterBindings.d.ts @@ -0,0 +1,17 @@ +import { type WriterOptions } from "./index.js"; +export declare const defaultWriterOptions: Required; +export { barcodeFormats, type BarcodeFormat, type WriteInputBarcodeFormat, characterSets, type ZXingCharacterSet, type CharacterSet, writeInputEccLevels, type WriteInputEccLevel, type ZXingWriterOptions, type WriterOptions, type ZXingEnum, type ZXingWriteResult, type WriteResult, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultWriterOptions` + */ +defaultWriterOptions as defaultEncodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingWriterOptions` + */ +ZXingWriterOptions as ZXingEncodeHints, +/** + * @deprecated renamed as `WriterOptions` + */ +WriterOptions as EncodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts new file mode 100644 index 0000000..0081c44 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/index.d.ts @@ -0,0 +1,14 @@ +export * from "./barcodeFormat.js"; +export * from "./binarizer.js"; +export * from "./characterSet.js"; +export * from "./contentType.js"; +export * from "./readerOptions.js"; +export * from "./eanAddOnSymbol.js"; +export * from "./eccLevel.js"; +export * from "./writerOptions.js"; +export * from "./enum.js"; +export * from "./position.js"; +export * from "./readResult.js"; +export * from "./textMode.js"; +export * from "./vector.js"; +export * from "./writeResult.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts new file mode 100644 index 0000000..2cbe76c --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/position.d.ts @@ -0,0 +1,55 @@ +/** + * @internal + */ +export interface ZXingPoint { + x: number; + y: number; +} +/** + * @internal + */ +export interface ZXingPosition { + topLeft: ZXingPoint; + topRight: ZXingPoint; + bottomLeft: ZXingPoint; + bottomRight: ZXingPoint; +} +/** + * X, Y coordinates to describe a point. + * + * @property x X coordinate. + * @property y Y coordinate. + * + * @see {@link Position | `Position`} + */ +export interface Point extends ZXingPoint { +} +/** + * Position of the decoded barcode. + */ +export interface Position { + /** + * Top-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topLeft: Point; + /** + * Top-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topRight: Point; + /** + * Bottom-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomLeft: Point; + /** + * Bottom-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomRight: Point; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts new file mode 100644 index 0000000..ae40842 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/readResult.d.ts @@ -0,0 +1,123 @@ +import { type ReadOutputBarcodeFormat } from "./barcodeFormat.js"; +import { type ContentType } from "./contentType.js"; +import type { ReadOutputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +import type { Position, ZXingPosition } from "./position.js"; +/** + * @internal + */ +export interface ZXingReadResult { + /** + * Whether the barcode is valid. + */ + isValid: boolean; + /** + * Error message (if any). + * + * @see {@link ReaderOptions.returnErrors | `ReaderOptions.returnErrors`} + */ + error: string; + format: string; + /** + * Raw / Standard content without any modifications like character set conversions. + */ + bytes: Uint8Array; + /** + * Raw / Standard content following the ECI protocol. + */ + bytesECI: Uint8Array; + /** + * The {@link ReadResult.bytes | `ReadResult.bytes`} content rendered to unicode / utf8 text + * accoring to specified {@link ReaderOptions.textMode | `ReaderOptions.textMode`}. + */ + text: string; + eccLevel: string; + contentType: ZXingEnum; + /** + * Whether or not an ECI tag was found. + */ + hasECI: boolean; + position: ZXingPosition; + /** + * Orientation of the barcode in degree. + */ + orientation: number; + /** + * Whether the symbol is mirrored (currently only supported by QRCode and DataMatrix). + */ + isMirrored: boolean; + /** + * Whether the symbol is inverted / has reveresed reflectance. + * + * @see {@link ReaderOptions.tryInvert | `ReaderOptions.tryInvert`} + */ + isInverted: boolean; + /** + * Symbology identifier `"]cm"` where `"c"` is the symbology code character, `"m"` the modifier. + */ + symbologyIdentifier: string; + /** + * Number of symbols in a structured append sequence. + * + * If this is not part of a structured append sequence, the returned value is `-1`. + * If it is a structured append symbol but the total number of symbols is unknown, the + * returned value is `0` (see PDF417 if optional "Segment Count" not given). + */ + sequenceSize: number; + /** + * The 0-based index of this symbol in a structured append sequence. + */ + sequenceIndex: number; + /** + * ID to check if a set of symbols belongs to the same structured append sequence. + * + * If the symbology does not support this feature, the returned value is empty (see MaxiCode). + * For QR Code, this is the parity integer converted to a string. + * For PDF417 and DataMatrix, this is the `"fileId"`. + */ + sequenceId: string; + /** + * Set if this is the reader initialisation / programming symbol. + */ + readerInit: boolean; + /** + * Number of lines have been detected with this code (applies only to linear symbologies). + */ + lineCount: number; + /** + * QRCode / DataMatrix / Aztec version or size. + * + * This property will be removed in the future. + * + * @deprecated + */ + version: string; +} +export interface ReadResult extends Omit { + /** + * Format of the barcode, should be one of {@link ReadOutputBarcodeFormat | `ReadOutputBarcodeFormat`}. + * + * Possible values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"None"`, + * `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + */ + format: ReadOutputBarcodeFormat; + /** + * Error correction level of the symbol (empty string if not applicable). + * + * This property may be renamed to `ecLevel` in the future. + */ + eccLevel: ReadOutputEccLevel; + /** + * A hint to the type of the content found. + */ + contentType: ContentType; + /** + * Position of the detected barcode. + */ + position: Position; +} +export declare function zxingReadResultToReadResult(zxingReadResult: ZXingReadResult): ReadResult; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts new file mode 100644 index 0000000..ba5e9e7 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/readerOptions.d.ts @@ -0,0 +1,207 @@ +import type { ZXingModule } from "../core.js"; +import { type ReadInputBarcodeFormat } from "./barcodeFormat.js"; +import { type Binarizer } from "./binarizer.js"; +import { type CharacterSet } from "./characterSet.js"; +import { type EanAddOnSymbol } from "./eanAddOnSymbol.js"; +import type { ZXingEnum } from "./enum.js"; +import { type TextMode } from "./textMode.js"; +/** + * @internal + */ +export interface ZXingReaderOptions { + formats: string; + /** + * Spend more time to try to find a barcode. Optimize for accuracy, not speed. + * + * @defaultValue `true` + */ + tryHarder: boolean; + /** + * Try detecting code in 90, 180 and 270 degree rotated images. + * + * @defaultValue `true` + */ + tryRotate: boolean; + /** + * Try detecting inverted (reversed reflectance) codes if the format allows for those. + * + * @defaultValue `true` + */ + tryInvert: boolean; + /** + * Try detecting code in downscaled images (depending on image size). + * + * @defaultValue `true` + * @see {@link downscaleFactor | `downscaleFactor`} {@link downscaleThreshold | `downscaleThreshold`} + */ + tryDownscale: boolean; + binarizer: ZXingEnum; + /** + * Set to `true` if the input contains nothing but a single perfectly aligned barcode (usually generated images). + * + * @defaultValue `false` + */ + isPure: boolean; + /** + * Image size ( min(width, height) ) threshold at which to start downscaled scanning + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `500` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleFactor | `downscaleFactor`} + */ + downscaleThreshold: number; + /** + * Scale factor to use during downscaling, meaningful values are `2`, `3` and `4`. + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `3` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleThreshold | `downscaleThreshold`} + */ + downscaleFactor: number; + /** + * The number of scan lines in a linear barcode that have to be equal to accept the result. + * + * @defaultValue `2` + */ + minLineCount: number; + /** + * The maximum number of symbols / barcodes to detect / look for in the image. + * The upper limit of this number is 255. + * + * @defaultValue `255` + */ + maxNumberOfSymbols: number; + /** + * If `true`, the Code-39 reader will try to read extended mode. + * + * @defaultValue `false` + */ + tryCode39ExtendedMode: boolean; + /** + * Assume Code-39 codes employ a check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateCode39CheckSum: boolean; + /** + * Assume ITF codes employ a GS1 check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateITFCheckSum: boolean; + /** + * If `true`, return the start and end chars in a Codabar barcode instead of stripping them. + * + * @defaultValue `false` + * @deprecated upstream + */ + returnCodabarStartEnd: boolean; + /** + * If `true`, return the barcodes with errors as well (e.g. checksum errors). + * + * @defaultValue `false` + */ + returnErrors: boolean; + eanAddOnSymbol: ZXingEnum; + textMode: ZXingEnum; + characterSet: ZXingEnum; +} +/** + * Reader options for reading barcodes. + */ +export interface ReaderOptions extends Partial> { + /** + * A set of {@link ReadInputBarcodeFormat | `ReadInputBarcodeFormat`}s that should be searched for. + * An empty list `[]` indicates all supported formats. + * + * Supported values in this list are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, `"Linear-Codes"`, `"Matrix-Codes"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `[]` + */ + formats?: ReadInputBarcodeFormat[]; + /** + * Algorithm to use for the grayscale to binary transformation. + * The difference is how to get to a threshold value T + * which results in a bit value R = L <= T. + * + * - `"LocalAverage"` + * + * T = average of neighboring pixels for matrix and GlobalHistogram for linear + * + * - `"GlobalHistogram"` + * + * T = valley between the 2 largest peaks in the histogram (per line in linear case) + * + * - `"FixedThreshold"` + * + * T = 127 + * + * - `"BoolCast"` + * + * T = 0, fastest possible + * + * @defaultValue `"LocalAverage"` + */ + binarizer?: Binarizer; + /** + * Specify whether to ignore, read or require EAN-2 / 5 add-on symbols while scanning EAN / UPC codes. + * + * - `"Ignore"` + * + * Ignore any Add-On symbol during read / scan + * + * - `"Read"` + * + * Read EAN-2 / EAN-5 Add-On symbol if found + * + * - `"Require"` + * + * Require EAN-2 / EAN-5 Add-On symbol to be present + * + * @defaultValue `"Read"` + */ + eanAddOnSymbol?: EanAddOnSymbol; + /** + * Specifies the `TextMode` that controls the result of {@link ReadResult.text | `ReadResult.text`}. + * + * - `"Plain"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to unicode based on ECI info or guessed character set + * + * - `"ECI"` + * + * Standard content following the ECI protocol with every character set ECI segment transcoded to unicode + * + * - `"HRI"` + * + * Human Readable Interpretation (dependent on the ContentType) + * + * - `"Hex"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to ASCII string of HEX values + * + * - `"Escaped"` + * + * Escape non-graphical characters in angle brackets (e.g. ASCII `29` will be transcoded to `""`) + * + * @defaultValue `"Plain"` + */ + textMode?: TextMode; + /** + * Character set to use (when applicable). + * If this is set to `"Unknown"`, auto-detecting will be used. + * + * @defaultValue `"Unknown"` + */ + characterSet?: CharacterSet; +} +export declare const defaultReaderOptions: Required; +export declare function readerOptionsToZXingReaderOptions(zxingModule: ZXingModule, readerOptions: Required): ZXingReaderOptions; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts new file mode 100644 index 0000000..ec52783 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/textMode.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const textModes: readonly ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +export type TextMode = (typeof textModes)[number]; +/** + * @internal + */ +export type ZXingTextMode = Record; +export declare function textModeToZXingEnum(zxingModule: ZXingModule, textMode: TextMode): ZXingEnum; +export declare function zxingEnumToTextMode(zxingEnum: ZXingEnum): TextMode; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts new file mode 100644 index 0000000..034bd5a --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/vector.d.ts @@ -0,0 +1,7 @@ +/** + * @internal + */ +export interface ZXingVector { + size: () => number; + get: (i: number) => T | undefined; +} diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts new file mode 100644 index 0000000..ac46b1f --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/writeResult.d.ts @@ -0,0 +1,24 @@ +/** + * @internal + */ +export interface ZXingWriteResult { + image: Uint8Array; + /** + * Encoding error. + * If there's no error, this will be an empty string `""`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + error: string; + delete: () => void; +} +export interface WriteResult extends Omit { + /** + * The encoded barcode as an image blob. + * If some error happens, this will be `null`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + image: Blob | null; +} +export declare function zxingWriteResultToWriteResult(zxingWriteResult: ZXingWriteResult): WriteResult; diff --git a/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts b/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts new file mode 100644 index 0000000..8a777af --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/bindings/writerOptions.d.ts @@ -0,0 +1,64 @@ +import type { ZXingModule } from "../core.js"; +import type { WriteInputBarcodeFormat } from "./barcodeFormat.js"; +import { type CharacterSet } from "./characterSet.js"; +import type { WriteInputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +/** + * @internal + */ +export interface ZXingWriterOptions { + /** + * Width of the barcode. + * + * @defaultValue `200` + */ + width: number; + /** + * Height of the barcode. + * + * @defaultValue `200` + */ + height: number; + format: string; + characterSet: ZXingEnum; + eccLevel: number; + /** + * The minimum number of quiet zone pixels. + * + * @defaultValue `10` + */ + margin: number; +} +/** + * Writer options for writing barcodes. + */ +export interface WriterOptions extends Partial> { + /** + * The format of the barcode to write. + * + * Supported values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataMatrix"`, `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"PDF417"`, `"QRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `"QRCode"` + */ + format?: WriteInputBarcodeFormat; + /** + * Character set to use for encoding the text. + * Used for Aztec, PDF417, and QRCode only. + * + * @defaultValue `"UTF8"` + */ + characterSet?: CharacterSet; + /** + * Error correction level of the symbol. + * Used for Aztec, PDF417, and QRCode only. + * `-1` means auto. + * + * @defaultValue `-1` + */ + eccLevel?: WriteInputEccLevel; +} +export declare const defaultWriterOptions: Required; +export declare function writerOptionsToZXingWriterOptions(zxingModule: ZXingModule, writerOptions: Required): ZXingWriterOptions; diff --git a/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js b/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js new file mode 100644 index 0000000..8468d45 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/core-CzvqAd2a.js @@ -0,0 +1 @@ +"use strict";const g=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function E(e){return e.join("|")}function T(e){const t=y(e);let r=0,n=g.length-1;for(;r<=n;){const o=Math.floor((r+n)/2),a=g[o],i=y(a);if(i===t)return a;i{const r=e.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${r[1]}/${e}`:t+e}};let m=new WeakMap;function f(e,t){var a;const r=m.get(e);if(r!=null&&r.modulePromise&&(t===void 0||Object.is(t,r.moduleOverrides)))return r.modulePromise;const n=(a=t!=null?t:r==null?void 0:r.moduleOverrides)!=null?a:X,o=e({...n});return m.set(e,{moduleOverrides:n,modulePromise:o}),o}function x(){m=new WeakMap}function Z(e,t){m.set(e,{moduleOverrides:t})}async function z(e,t,r=d){const n={...d,...r},o=await f(e),{size:a}=t,i=new Uint8Array(await t.arrayBuffer()),u=o._malloc(a);o.HEAPU8.set(i,u);const l=o.readBarcodesFromImage(u,a,C(o,n));o._free(u);const c=[];for(let s=0;s; + readBarcodesFromPixmap(bufferPtr: number, imgWidth: number, imgHeight: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; +} +/** + * @internal + */ +export interface ZXingWriterModule extends ZXingBaseModule { + writeBarcodeToImage(text: string, zxingWriterOptions: ZXingWriterOptions): ZXingWriteResult; +} +/** + * @internal + */ +export interface ZXingFullModule extends ZXingReaderModule, ZXingWriterModule { +} +export type ZXingModule = T extends "reader" ? ZXingReaderModule : T extends "writer" ? ZXingWriterModule : T extends "full" ? ZXingFullModule : ZXingReaderModule | ZXingWriterModule | ZXingFullModule; +export type ZXingReaderModuleFactory = EmscriptenModuleFactory; +export type ZXingWriterModuleFactory = EmscriptenModuleFactory; +export type ZXingFullModuleFactory = EmscriptenModuleFactory; +export type ZXingModuleFactory = T extends "reader" ? ZXingReaderModuleFactory : T extends "writer" ? ZXingWriterModuleFactory : T extends "full" ? ZXingFullModuleFactory : ZXingReaderModuleFactory | ZXingWriterModuleFactory | ZXingFullModuleFactory; +export type ZXingModuleOverrides = Partial; +export declare function getZXingModuleWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides?: ZXingModuleOverrides): Promise>; +export declare function purgeZXingModule(): void; +export declare function setZXingModuleOverridesWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageDataWithFactory(zxingModuleFactory: ZXingModuleFactory, imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, text: string, writerOptions?: WriterOptions): Promise; +export {}; diff --git a/node_modules/zxing-wasm/dist/cjs/full/index.d.ts b/node_modules/zxing-wasm/dist/cjs/full/index.d.ts new file mode 100644 index 0000000..ae019d0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/full/index.d.ts @@ -0,0 +1,10 @@ +import type { ReaderOptions, WriterOptions } from "../bindings/index.js"; +import { type ZXingFullModule, type ZXingModuleOverrides } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingFullModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/full/index.js b/node_modules/zxing-wasm/dist/cjs/full/index.js new file mode 100644 index 0000000..aacef85 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/full/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../core-CzvqAd2a.js");var ar=(()=>{var V;var k=typeof document<"u"&&((V=document.currentScript)==null?void 0:V.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(Ve={}){var Zr,c=Ve,Xr,or,Be=new Promise((r,e)=>{Xr=r,or=e}),Ne=typeof window=="object",Le=typeof Bun<"u",Pr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Gr=Object.assign({},c),qr="./this.program",j="";function ze(r){return c.locateFile?c.locateFile(r,j):j+r}var Kr,Ar;if(Ne||Pr||Le){var Fr;Pr?j=self.location.href:typeof document<"u"&&((Fr=document.currentScript)===null||Fr===void 0?void 0:Fr.tagName.toUpperCase())==="SCRIPT"&&(j=document.currentScript.src),k&&(j=k),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1),Pr&&(Ar=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Kr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ze=c.print||console.log.bind(console),X=c.printErr||console.error.bind(console);Object.assign(c,Gr),Gr=null,c.arguments&&c.arguments,c.thisProgram&&(qr=c.thisProgram);var sr=c.wasmBinary,ur,Qr=!1,W,E,G,Q,B,$,Yr,Jr;function re(){var r=ur.buffer;c.HEAP8=W=new Int8Array(r),c.HEAP16=G=new Int16Array(r),c.HEAPU8=E=new Uint8Array(r),c.HEAPU16=Q=new Uint16Array(r),c.HEAP32=B=new Int32Array(r),c.HEAPU32=$=new Uint32Array(r),c.HEAPF32=Yr=new Float32Array(r),c.HEAPF64=Jr=new Float64Array(r)}var ee=[],te=[],ne=[];function Xe(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ke)),Rr(ee)}function Ge(){Rr(te)}function qe(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ye)),Rr(ne)}function Ke(r){ee.unshift(r)}function Qe(r){te.unshift(r)}function Ye(r){ne.unshift(r)}var N=0,Y=null;function Je(r){var e;N++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,N)}function rt(r){var e;if(N--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,N),N==0&&Y){var t=Y;Y=null,t()}}function Er(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",X(r),Qr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw or(t),t}var et="data:application/octet-stream;base64,",ie=r=>r.startsWith(et);function tt(){var r="zxing_full.wasm";return ie(r)?r:ze(r)}var lr;function ae(r){if(r==lr&&sr)return new Uint8Array(sr);if(Ar)return Ar(r);throw"both async and sync fetching of the wasm failed"}function nt(r){return sr?Promise.resolve().then(()=>ae(r)):Kr(r).then(e=>new Uint8Array(e),()=>ae(r))}function oe(r,e,t){return nt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{X(`failed to asynchronously prepare wasm: ${n}`),Er(n)})}function it(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ie(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return X(`wasm streaming compile failed: ${s}`),X("falling back to ArrayBuffer instantiation"),oe(e,t,n)})}):oe(e,t,n)}function at(){return{a:qn}}function ot(){var r,e=at();function t(i,a){return w=i.exports,ur=w.za,re(),_e=w.Da,Qe(w.Aa),rt(),w}Je();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){X(`Module.instantiateWasm callback failed with error: ${i}`),or(i)}return(r=lr)!==null&&r!==void 0||(lr=tt()),it(sr,lr,e,n).catch(or),{}}var Rr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var h=r=>Ee(r),_=()=>Re(),cr=[],fr=0,st=r=>{var e=new kr(r);return e.get_caught()||(e.set_caught(!0),fr--),e.set_rethrown(!1),cr.push(e),Se(r),Ae(r)},I=0,ut=()=>{d(0,0);var r=cr.pop();ke(r.excPtr),I=0};class kr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,W[this.ptr+12]=e}get_caught(){return W[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,W[this.ptr+13]=e}get_rethrown(){return W[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}}var lt=r=>{throw I||(I=r),I},vr=r=>Fe(r),Sr=r=>{var e=I;if(!e)return vr(0),0;var t=new kr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return vr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Oe(i,n,a))return vr(i),e}return vr(n),e},ct=()=>Sr([]),ft=r=>Sr([r]),vt=(r,e)=>Sr([r,e]),dt=()=>{var r=cr.pop();r||Er("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(cr.push(r),r.set_rethrown(!0),r.set_caught(!1),fr++),I=e,I},pt=(r,e,t)=>{var n=new kr(r);throw n.init(e,t),I=r,fr++,I},ht=()=>fr,_t=()=>{Er("")},dr={},Or=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function J(r){return this.fromWireType($[r>>2])}var q={},L={},pr={},se,hr=r=>{throw new se(r)},z=(r,e,t)=>{r.forEach(o=>pr[o]=e);function n(o){var u=t(o);u.length!==r.length&&hr("Mismatched type converter count");for(var l=0;l{L.hasOwnProperty(o)?i[u]=L[o]:(a.push(o),q.hasOwnProperty(o)||(q[o]=[]),q[o].push(()=>{i[u]=L[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},gt=r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));z([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],p=u.getter,m=u.getterContext,b=s[l+i.length],P=u.setter,T=u.setterContext;o[f]={read:C=>v.fromWireType(p(m,C)),write:(C,Z)=>{var R=[];P(T,C,b.toWireType(R,Z)),Or(R)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:D,readValueFromPointer:J,destructorFunction:n}]})},yt=(r,e,t,n,i)=>{},mt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);ue=r},ue,F=r=>{for(var e="",t=r;E[t];)e+=ue[E[t++]];return e},K,y=r=>{throw new K(r)};function $t(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(L[r]=e,delete pr[r],q.hasOwnProperty(r)){var i=q[r];delete q[r],i.forEach(a=>a())}}function S(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $t(r,e,t)}var D=8,bt=(r,e,t,n)=>{e=F(e),S(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:D,readValueFromPointer:function(i){return this.fromWireType(E[i])},destructorFunction:null})},wt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),jr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Wr=!1,le=r=>{},Tt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Tt(r)},fe=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=fe(r,e,t.baseClass);return n===null?null:t.downcast(n)},ve={},Ct={},Pt=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},At=(r,e)=>(e=Pt(r,e),Ct[e]),_r=(r,e)=>{(!e.ptrType||!e.ptr)&&hr("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&hr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},rr(Object.create(r,{$$:{value:e,writable:!0}}))};function Ft(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=At(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?_r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):_r(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=ve[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=fe(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?_r(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):_r(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var rr=r=>typeof FinalizationRegistry>"u"?(rr=e=>e,r):(Wr=new FinalizationRegistry(e=>{ce(e.$$)}),rr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Wr.register(e,i,e)}return e},le=e=>Wr.unregister(e),rr(r)),gr=[],Et=()=>{for(;gr.length;){var r=gr.pop();r.$$.deleteScheduled=!1,r.delete()}},de,Rt=()=>{Object.assign(yr.prototype,{isAliasOf(r){if(!(this instanceof yr)||!(r instanceof yr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=rr(Object.create(Object.getPrototypeOf(this),{$$:{value:wt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),le(this),ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),gr.push(this),gr.length===1&&de&&de(Et),this.$$.deleteScheduled=!0,this}})};function yr(){}var er=(r,e)=>Object.defineProperty(e,"name",{value:r}),pe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),pe(c,r,r),c.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},kt=48,St=57,Ot=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=kt&&e<=St?`_${r}`:r};function jt(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Ir=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Wt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Ir(e.$$.ptr,t,this.registeredClass);return n}function Dt(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Ir(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,U.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function It(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Ir(e.$$.ptr,t,this.registeredClass);return n}var Mt=()=>{Object.assign(mr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:D,readValueFromPointer:J,fromWireType:Ft})};function mr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=It,this.destructorFunction=null):this.toWireType=Dt}var he=(r,e,t)=>{c.hasOwnProperty(r)||hr("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},Ut=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},$r=[],_e,g=r=>{var e=$r[r];return e||(r>=$r.length&&($r.length=r+1),$r[r]=e=_e.get(r)),e},xt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return Ut(r,e,t);var n=g(e)(...t);return n},Ht=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=F(r);function t(){return r.includes("j")?Ht(r,e):g(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Vt=(r,e)=>{var t=er(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},ge,ye=r=>{var e=Pe(r),t=F(e);return x(e),t},br=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!L[a]){if(pr[a]){pr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new ge(`${r}: `+t.map(ye).join([", "]))},Bt=(r,e,t,n,i,a,s,o,u,l,f,v,p)=>{f=F(f),a=O(i,a),o&&(o=O(s,o)),l&&(l=O(u,l)),p=O(v,p);var m=Ot(f);Dr(m,function(){br(`Cannot construct ${f} due to unbound types`,[n])}),z([r,e,t],n?[n]:[],b=>{b=b[0];var P,T;n?(P=b.registeredClass,T=P.instancePrototype):T=yr.prototype;var C=er(f,function(){if(Object.getPrototypeOf(this)!==Z)throw new K("Use 'new' to construct "+f);if(R.constructor_body===void 0)throw new K(f+" has no accessible constructor");for(var xe=arguments.length,Tr=new Array(xe),Cr=0;Cr{for(var t=[],n=0;n>2]);return t};function Nt(r){for(var e=1;e{var s=Mr(e,t);i=O(n,i),z([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{br(`Cannot construct ${o.name} due to unbound types`,s)},z([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=Ur(u,l,null,i,a),[])),[]})},me=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},zt=(r,e,t,n,i,a,s,o,u,l)=>{var f=Mr(t,n);e=F(e),e=me(e),a=O(i,a),z([],[r],v=>{v=v[0];var p=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function m(){br(`Cannot call ${p} due to unbound types`,f)}var b=v.registeredClass.instancePrototype,P=b[e];return P===void 0||P.overloadTable===void 0&&P.className!==v.name&&P.argCount===t-2?(m.argCount=t-2,m.className=v.name,b[e]=m):(pe(b,e,p),b[e].overloadTable[t-2]=m),z([],f,T=>{var C=Ur(p,T,v,a,s);return b[e].overloadTable===void 0?(C.argCount=t-2,b[e]=C):b[e].overloadTable[t-2]=C,[]}),[]})},xr=[],M=[],Hr=r=>{r>9&&--M[r+1]===0&&(M[r]=void 0,xr.push(r))},Zt=()=>M.length/2-5-xr.length,Xt=()=>{M.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zt},U={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),M[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=xr.pop()||M.length;return M[e]=r,M[e+1]=1,e}}}},$e={name:"emscripten::val",fromWireType:r=>{var e=U.toValue(r);return Hr(r),e},toWireType:(r,e)=>U.toHandle(e),argPackAdvance:D,readValueFromPointer:J,destructorFunction:null},Gt=r=>S(r,$e),qt=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(W[n])}:function(n){return this.fromWireType(E[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(B[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Kt=(r,e,t,n)=>{e=F(e);function i(){}i.values={},S(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:D,readValueFromPointer:qt(e,t,n),destructorFunction:null}),Dr(e,i)},Vr=(r,e)=>{var t=L[r];return t===void 0&&y(`${e} has unknown type ${ye(r)}`),t},Qt=(r,e,t)=>{var n=Vr(r,"enum");e=F(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:er(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},Br=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Yt=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Yr[t>>2])};case 8:return function(t){return this.fromWireType(Jr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Jt=(r,e,t)=>{e=F(e),S(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:D,readValueFromPointer:Yt(e,t),destructorFunction:null})},rn=(r,e,t,n,i,a,s,o)=>{var u=Mr(e,t);r=F(r),r=me(r),i=O(n,i),Dr(r,function(){br(`Cannot call ${r} due to unbound types`,u)},e-1),z([],u,l=>{var f=[l[0],null].concat(l.slice(1));return he(r,Ur(r,f,null,i,a),e-1),[]})},en=(r,e,t)=>{switch(e){case 1:return t?n=>W[n]:n=>E[n];case 2:return t?n=>G[n>>1]:n=>Q[n>>1];case 4:return t?n=>B[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},tn=(r,e,t,n,i)=>{e=F(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},S(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:D,readValueFromPointer:en(e,t,n!==0),destructorFunction:null})},nn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=$[s>>2],u=$[s+4>>2];return new i(W.buffer,u,o)}t=F(t),S(r,{name:t,fromWireType:a,argPackAdvance:D,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},an=Object.assign({optional:!0},$e),on=(r,e)=>{S(r,an)},sn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},tr=(r,e,t)=>sn(r,E,e,t),un=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},be=typeof TextDecoder<"u"?new TextDecoder:void 0,we=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&be)return be.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},ln=(r,e)=>r?we(E,r,e):"",cn=(r,e)=>{e=F(e);var t=e==="std::string";S(r,{name:e,fromWireType(n){var i=$[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||E[l]==0){var f=l-o,v=ln(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var p=new Array(i),u=0;u>2]=a,t&&s)tr(i,u,a+1);else if(s)for(var l=0;l255&&(x(u),y("String has UTF-16 code units that do not fit in 8 bits")),E[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&Q[n];)++n;if(t=n<<1,t-r>32&&Te)return Te.decode(E.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=G[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return G[e>>1]=0,e-i},dn=r=>r.length*2,pn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=B[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},hn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(B[e>>2]=o,e+=4,e+4>a)break}return B[e>>2]=0,e-i},_n=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},gn=(r,e,t)=>{t=F(t);var n,i,a,s;e===2?(n=fn,i=vn,s=dn,a=o=>Q[o>>1]):e===4&&(n=pn,i=hn,s=_n,a=o=>$[o>>2]),S(r,{name:t,fromWireType:o=>{for(var u=$[o>>2],l,f=o+4,v=0;v<=u;++v){var p=o+4+v*e;if(v==u||a(p)==0){var m=p-f,b=n(f,m);l===void 0?l=b:(l+="\0",l+=b),f=p+e}}return x(o),l},toWireType:(o,u)=>{typeof u!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=zr(4+l+e);return $[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(x,f),f},argPackAdvance:D,readValueFromPointer:J,destructorFunction(o){x(o)}})},yn=(r,e,t,n,i,a)=>{dr[r]={name:F(e),rawConstructor:O(t,n),rawDestructor:O(i,a),fields:[]}},mn=(r,e,t,n,i,a,s,o,u,l)=>{dr[r].fields.push({fieldName:F(e),getterReturnType:t,getter:O(n,i),getterContext:a,setterArgumentType:s,setter:O(o,u),setterContext:l})},$n=(r,e)=>{e=F(e),S(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},bn=(r,e,t)=>E.copyWithin(r,e,e+t),Nr=[],wn=(r,e,t,n)=>(r=Nr[r],e=U.toValue(e),r(null,e,t,n)),Tn={},Cn=r=>{var e=Tn[r];return e===void 0?F(r):e},Ce=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Pn=r=>r===0?U.toHandle(Ce()):(r=Cn(r),U.toHandle(Ce()[r])),An=r=>{var e=Nr.length;return Nr.push(r),e},Fn=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},En=Reflect.construct,Rn=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&($[e>>2]=U.toHandle(n)),i},kn=(r,e,t)=>{var n=Fn(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var p=0,m=0;mu.name).join(", ")}) => ${i.name}>`;return An(er(o,s))},Sn=r=>{r>9&&(M[r+1]+=1)},On=r=>{var e=U.toValue(r);Or(e),Hr(r)},jn=(r,e)=>{r=Vr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return U.toHandle(t)},Wn=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);$[r>>2]=l*60,B[e>>2]=+(o!=u);var f=m=>{var b=m>=0?"-":"+",P=Math.abs(m),T=String(Math.floor(P/60)).padStart(2,"0"),C=String(P%60).padStart(2,"0");return`UTC${b}${T}${C}`},v=f(o),p=f(u);u2147483648,In=(r,e)=>Math.ceil(r/e)*e,Mn=r=>{var e=ur.buffer,t=(r-e.byteLength+65535)/65536|0;try{return ur.grow(t),re(),1}catch{}},Un=r=>{var e=E.length;r>>>=0;var t=Dn();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,In(Math.max(r,i),65536)),s=Mn(a);if(s)return!0}return!1},Lr={},xn=()=>qr||"./this.program",nr=()=>{if(!nr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:xn()};for(var t in Lr)Lr[t]===void 0?delete e[t]:e[t]=Lr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);nr.strings=n}return nr.strings},Hn=(r,e)=>{for(var t=0;t{var t=0;return nr().forEach((n,i)=>{var a=e+t;$[r+i*4>>2]=a,Hn(n,a),t+=n.length+1}),0},Bn=(r,e)=>{var t=nr();$[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),$[e>>2]=n,0},Nn=r=>52;function Ln(r,e,t,n,i){return 70}var zn=[null,[],[]],Zn=(r,e)=>{var t=zn[r];e===0||e===10?((r===1?Ze:X)(we(t)),t.length=0):t.push(e)},Xn=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=$[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Gn=r=>r;se=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},mt(),K=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Rt(),Mt(),ge=c.UnboundTypeError=Vt(Error,"UnboundTypeError"),Xt();var qn={t:st,x:ut,a:ct,j:ft,k:vt,Q:dt,r:pt,ia:ht,d:lt,ea:_t,wa:gt,da:yt,qa:bt,ua:Bt,ta:Lt,G:zt,pa:Gt,H:Kt,q:Qt,Y:Jt,S:rn,z:tn,v:nn,va:on,W:cn,R:gn,E:yn,xa:mn,ra:$n,la:bn,V:wn,ya:Hr,_:Pn,X:kn,Z:Sn,$:On,sa:jn,fa:Wn,ja:Un,ga:Vn,ha:Bn,ka:Nn,ba:Ln,U:Xn,L:_i,D:yi,N:ri,T:Pi,s:vi,b:Kn,F:hi,na:$i,c:ti,ma:bi,i:Jn,h:si,n:ui,P:pi,w:li,K:Ti,M:di,B:mi,J:Ai,ca:Ei,aa:Ri,m:ni,g:ei,e:Yn,f:Qn,O:Ci,l:ai,oa:gi,o:ii,u:ci,y:fi,C:wi,p:oi,I:Fi,A:Gn},w=ot(),Pe=r=>(Pe=w.Ba)(r),x=c._free=r=>(x=c._free=w.Ca)(r),zr=c._malloc=r=>(zr=c._malloc=w.Ea)(r),Ae=r=>(Ae=w.Fa)(r),d=(r,e)=>(d=w.Ga)(r,e),Fe=r=>(Fe=w.Ha)(r),Ee=r=>(Ee=w.Ia)(r),Re=()=>(Re=w.Ja)(),ke=r=>(ke=w.Ka)(r),Se=r=>(Se=w.La)(r),Oe=(r,e,t)=>(Oe=w.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=w.Na)(r,e,t,n,i,a,s);var je=c.dynCall_jiii=(r,e,t,n)=>(je=c.dynCall_jiii=w.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=w.Pa)(r,e,t,n,i);var We=c.dynCall_jiiii=(r,e,t,n,i)=>(We=c.dynCall_jiiii=w.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=w.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=w.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=w.Ta)(r,e,t,n,i,a,s,o,u,l);function Kn(r,e){var t=_();try{return g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function Qn(r,e,t,n){var i=_();try{g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Yn(r,e,t){var n=_();try{g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function Jn(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function ri(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ei(r,e){var t=_();try{g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function ti(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function ni(r){var e=_();try{g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function ii(r,e,t,n,i,a){var s=_();try{g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function ai(r,e,t,n,i){var a=_();try{g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function oi(r,e,t,n,i,a,s,o,u,l,f){var v=_();try{g(r)(e,t,n,i,a,s,o,u,l,f)}catch(p){if(h(v),p!==p+0)throw p;d(1,0)}}function si(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ui(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function li(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function ci(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function fi(r,e,t,n,i,a,s,o,u){var l=_();try{g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function vi(r){var e=_();try{return g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function di(r,e,t,n,i,a,s,o,u){var l=_();try{return g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function pi(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function hi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function _i(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function gi(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function yi(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function mi(r,e,t,n,i,a,s,o,u,l){var f=_();try{return g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function $i(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function bi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function wi(r,e,t,n,i,a,s,o,u,l){var f=_();try{g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function Ti(r,e,t,n,i,a,s,o){var u=_();try{return g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function Ci(r,e,t,n,i,a,s){var o=_();try{g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function Pi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ai(r,e,t,n,i,a,s,o,u,l,f,v){var p=_();try{return g(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(m){if(h(p),m!==m+0)throw m;d(1,0)}}function Fi(r,e,t,n,i,a,s,o,u,l,f,v,p,m,b,P){var T=_();try{g(r)(e,t,n,i,a,s,o,u,l,f,v,p,m,b,P)}catch(C){if(h(T),C!==C+0)throw C;d(1,0)}}function Ei(r,e,t,n){var i=_();try{return je(r,e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ri(r,e,t,n,i){var a=_();try{return We(r,e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}var wr,De;Y=function r(){wr||Ie(),wr||(Y=r)};function Ie(){if(N>0||!De&&(De=1,Xe(),N>0))return;function r(){var e;wr||(wr=1,c.calledRun=1,!Qr&&(Ge(),Xr(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),qe()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Ie(),Zr=Be,Zr}})();function Si(k){return A.getZXingModuleWithFactory(ar,k)}function Oi(k){return A.setZXingModuleOverridesWithFactory(ar,k)}async function ji(k,V){return A.readBarcodesFromImageFileWithFactory(ar,k,V)}async function Wi(k,V){return A.readBarcodesFromImageDataWithFactory(ar,k,V)}async function Di(k,V){return A.writeBarcodeToImageFileWithFactory(ar,k,V)}exports.barcodeFormats=A.barcodeFormats;exports.binarizers=A.binarizers;exports.characterSets=A.characterSets;exports.contentTypes=A.contentTypes;exports.defaultDecodeHints=A.defaultReaderOptions;exports.defaultEncodeHints=A.defaultWriterOptions;exports.defaultReaderOptions=A.defaultReaderOptions;exports.defaultWriterOptions=A.defaultWriterOptions;exports.eanAddOnSymbols=A.eanAddOnSymbols;exports.purgeZXingModule=A.purgeZXingModule;exports.readOutputEccLevels=A.readOutputEccLevels;exports.textModes=A.textModes;exports.writeInputEccLevels=A.writeInputEccLevels;exports.getZXingModule=Si;exports.readBarcodesFromImageData=Wi;exports.readBarcodesFromImageFile=ji;exports.setZXingModuleOverrides=Oi;exports.writeBarcodeToImageFile=Di; diff --git a/node_modules/zxing-wasm/dist/cjs/package.json b/node_modules/zxing-wasm/dist/cjs/package.json new file mode 100644 index 0000000..5bbefff --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts b/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts new file mode 100644 index 0000000..2d31960 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/reader/index.d.ts @@ -0,0 +1,8 @@ +import type { ReaderOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingReaderModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export { purgeZXingModule, type ZXingReaderModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/reader/index.js b/node_modules/zxing-wasm/dist/cjs/reader/index.js new file mode 100644 index 0000000..c099fbd --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/reader/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("../core-CzvqAd2a.js");var Cr=(()=>{var Z;var j=typeof document<"u"&&((Z=document.currentScript)==null?void 0:Z.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(Ve={}){var Zr,c=Ve,Xr,ar,Be=new Promise((r,e)=>{Xr=r,ar=e}),Ne=typeof window=="object",ze=typeof Bun<"u",Pr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Gr=Object.assign({},c),qr="./this.program",O="";function Le(r){return c.locateFile?c.locateFile(r,O):O+r}var Kr,Ar;if(Ne||Pr||ze){var Fr;Pr?O=self.location.href:typeof document<"u"&&((Fr=document.currentScript)===null||Fr===void 0?void 0:Fr.tagName.toUpperCase())==="SCRIPT"&&(O=document.currentScript.src),j&&(O=j),O.startsWith("blob:")?O="":O=O.substr(0,O.replace(/[?#].*/,"").lastIndexOf("/")+1),Pr&&(Ar=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Kr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ze=c.print||console.log.bind(console),X=c.printErr||console.error.bind(console);Object.assign(c,Gr),Gr=null,c.arguments&&c.arguments,c.thisProgram&&(qr=c.thisProgram);var or=c.wasmBinary,sr,Qr=!1,W,F,G,Q,V,$,Yr,Jr;function re(){var r=sr.buffer;c.HEAP8=W=new Int8Array(r),c.HEAP16=G=new Int16Array(r),c.HEAPU8=F=new Uint8Array(r),c.HEAPU16=Q=new Uint16Array(r),c.HEAP32=V=new Int32Array(r),c.HEAPU32=$=new Uint32Array(r),c.HEAPF32=Yr=new Float32Array(r),c.HEAPF64=Jr=new Float64Array(r)}var ee=[],te=[],ne=[];function Xe(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ke)),Rr(ee)}function Ge(){Rr(te)}function qe(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ye)),Rr(ne)}function Ke(r){ee.unshift(r)}function Qe(r){te.unshift(r)}function Ye(r){ne.unshift(r)}var B=0,Y=null;function Je(r){var e;B++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,B)}function rt(r){var e;if(B--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,B),B==0&&Y){var t=Y;Y=null,t()}}function Er(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",X(r),Qr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw ar(t),t}var et="data:application/octet-stream;base64,",ie=r=>r.startsWith(et);function tt(){var r="zxing_reader.wasm";return ie(r)?r:Le(r)}var ur;function ae(r){if(r==ur&&or)return new Uint8Array(or);if(Ar)return Ar(r);throw"both async and sync fetching of the wasm failed"}function nt(r){return or?Promise.resolve().then(()=>ae(r)):Kr(r).then(e=>new Uint8Array(e),()=>ae(r))}function oe(r,e,t){return nt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{X(`failed to asynchronously prepare wasm: ${n}`),Er(n)})}function it(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ie(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return X(`wasm streaming compile failed: ${s}`),X("falling back to ArrayBuffer instantiation"),oe(e,t,n)})}):oe(e,t,n)}function at(){return{a:qn}}function ot(){var r,e=at();function t(i,a){return w=i.exports,sr=w.za,re(),_e=w.Da,Qe(w.Aa),rt(),w}Je();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){X(`Module.instantiateWasm callback failed with error: ${i}`),ar(i)}return(r=ur)!==null&&r!==void 0||(ur=tt()),it(or,ur,e,n).catch(ar),{}}var Rr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var h=r=>Ee(r),_=()=>Re(),lr=[],cr=0,st=r=>{var e=new kr(r);return e.get_caught()||(e.set_caught(!0),cr--),e.set_rethrown(!1),lr.push(e),Se(r),Ae(r)},M=0,ut=()=>{d(0,0);var r=lr.pop();ke(r.excPtr),M=0};class kr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,W[this.ptr+12]=e}get_caught(){return W[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,W[this.ptr+13]=e}get_rethrown(){return W[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}}var lt=r=>{throw M||(M=r),M},fr=r=>Fe(r),Sr=r=>{var e=M;if(!e)return fr(0),0;var t=new kr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return fr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(je(i,n,a))return fr(i),e}return fr(n),e},ct=()=>Sr([]),ft=r=>Sr([r]),vt=(r,e)=>Sr([r,e]),dt=()=>{var r=lr.pop();r||Er("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(lr.push(r),r.set_rethrown(!0),r.set_caught(!1),cr++),M=e,M},pt=(r,e,t)=>{var n=new kr(r);throw n.init(e,t),M=r,cr++,M},ht=()=>cr,_t=()=>{Er("")},vr={},jr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function J(r){return this.fromWireType($[r>>2])}var q={},N={},dr={},se,pr=r=>{throw new se(r)},z=(r,e,t)=>{r.forEach(o=>dr[o]=e);function n(o){var u=t(o);u.length!==r.length&&pr("Mismatched type converter count");for(var l=0;l{N.hasOwnProperty(o)?i[u]=N[o]:(a.push(o),q.hasOwnProperty(o)||(q[o]=[]),q[o].push(()=>{i[u]=N[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},gt=r=>{var e=vr[r];delete vr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));z([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],p=u.getter,m=u.getterContext,b=s[l+i.length],P=u.setter,T=u.setterContext;o[f]={read:C=>v.fromWireType(p(m,C)),write:(C,L)=>{var E=[];P(T,C,b.toWireType(E,L)),jr(E)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:D,readValueFromPointer:J,destructorFunction:n}]})},yt=(r,e,t,n,i)=>{},mt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);ue=r},ue,A=r=>{for(var e="",t=r;F[t];)e+=ue[F[t++]];return e},K,y=r=>{throw new K(r)};function $t(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),N.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(N[r]=e,delete dr[r],q.hasOwnProperty(r)){var i=q[r];delete q[r],i.forEach(a=>a())}}function k(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $t(r,e,t)}var D=8,bt=(r,e,t,n)=>{e=A(e),k(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:D,readValueFromPointer:function(i){return this.fromWireType(F[i])},destructorFunction:null})},wt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Or=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Wr=!1,le=r=>{},Tt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Tt(r)},fe=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=fe(r,e,t.baseClass);return n===null?null:t.downcast(n)},ve={},Ct={},Pt=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},At=(r,e)=>(e=Pt(r,e),Ct[e]),hr=(r,e)=>{(!e.ptrType||!e.ptr)&&pr("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&pr("Both smartPtrType and smartPtr must be specified"),e.count={value:1},rr(Object.create(r,{$$:{value:e,writable:!0}}))};function Ft(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=At(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?hr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):hr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=ve[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=fe(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?hr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):hr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var rr=r=>typeof FinalizationRegistry>"u"?(rr=e=>e,r):(Wr=new FinalizationRegistry(e=>{ce(e.$$)}),rr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Wr.register(e,i,e)}return e},le=e=>Wr.unregister(e),rr(r)),_r=[],Et=()=>{for(;_r.length;){var r=_r.pop();r.$$.deleteScheduled=!1,r.delete()}},de,Rt=()=>{Object.assign(gr.prototype,{isAliasOf(r){if(!(this instanceof gr)||!(r instanceof gr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=rr(Object.create(Object.getPrototypeOf(this),{$$:{value:wt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),le(this),ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),_r.push(this),_r.length===1&&de&&de(Et),this.$$.deleteScheduled=!0,this}})};function gr(){}var er=(r,e)=>Object.defineProperty(e,"name",{value:r}),pe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),pe(c,r,r),c.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},kt=48,St=57,jt=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=kt&&e<=St?`_${r}`:r};function Ot(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Mr=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function Wt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Mr(e.$$.ptr,t,this.registeredClass);return n}function Dt(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Mr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,x.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function Mt(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${Br(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Mr(e.$$.ptr,t,this.registeredClass);return n}var Ut=()=>{Object.assign(yr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:D,readValueFromPointer:J,fromWireType:Ft})};function yr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=Dt}var he=(r,e,t)=>{c.hasOwnProperty(r)||pr("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},xt=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},mr=[],_e,g=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=_e.get(r)),e},It=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return xt(r,e,t);var n=g(e)(...t);return n},Ht=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=A(r);function t(){return r.includes("j")?Ht(r,e):g(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Vt=(r,e)=>{var t=er(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},ge,ye=r=>{var e=Pe(r),t=A(e);return I(e),t},$r=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!N[a]){if(dr[a]){dr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new ge(`${r}: `+t.map(ye).join([", "]))},Bt=(r,e,t,n,i,a,s,o,u,l,f,v,p)=>{f=A(f),a=S(i,a),o&&(o=S(s,o)),l&&(l=S(u,l)),p=S(v,p);var m=jt(f);Dr(m,function(){$r(`Cannot construct ${f} due to unbound types`,[n])}),z([r,e,t],n?[n]:[],b=>{b=b[0];var P,T;n?(P=b.registeredClass,T=P.instancePrototype):T=gr.prototype;var C=er(f,function(){if(Object.getPrototypeOf(this)!==L)throw new K("Use 'new' to construct "+f);if(E.constructor_body===void 0)throw new K(f+" has no accessible constructor");for(var Ie=arguments.length,wr=new Array(Ie),Tr=0;Tr{for(var t=[],n=0;n>2]);return t};function Nt(r){for(var e=1;e{var s=Ur(e,t);i=S(n,i),z([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{$r(`Cannot construct ${o.name} due to unbound types`,s)},z([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=xr(u,l,null,i,a),[])),[]})},me=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Lt=(r,e,t,n,i,a,s,o,u,l)=>{var f=Ur(t,n);e=A(e),e=me(e),a=S(i,a),z([],[r],v=>{v=v[0];var p=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function m(){$r(`Cannot call ${p} due to unbound types`,f)}var b=v.registeredClass.instancePrototype,P=b[e];return P===void 0||P.overloadTable===void 0&&P.className!==v.name&&P.argCount===t-2?(m.argCount=t-2,m.className=v.name,b[e]=m):(pe(b,e,p),b[e].overloadTable[t-2]=m),z([],f,T=>{var C=xr(p,T,v,a,s);return b[e].overloadTable===void 0?(C.argCount=t-2,b[e]=C):b[e].overloadTable[t-2]=C,[]}),[]})},Ir=[],U=[],Hr=r=>{r>9&&--U[r+1]===0&&(U[r]=void 0,Ir.push(r))},Zt=()=>U.length/2-5-Ir.length,Xt=()=>{U.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Zt},x={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),U[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ir.pop()||U.length;return U[e]=r,U[e+1]=1,e}}}},$e={name:"emscripten::val",fromWireType:r=>{var e=x.toValue(r);return Hr(r),e},toWireType:(r,e)=>x.toHandle(e),argPackAdvance:D,readValueFromPointer:J,destructorFunction:null},Gt=r=>k(r,$e),qt=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(W[n])}:function(n){return this.fromWireType(F[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(V[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Kt=(r,e,t,n)=>{e=A(e);function i(){}i.values={},k(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:D,readValueFromPointer:qt(e,t,n),destructorFunction:null}),Dr(e,i)},Vr=(r,e)=>{var t=N[r];return t===void 0&&y(`${e} has unknown type ${ye(r)}`),t},Qt=(r,e,t)=>{var n=Vr(r,"enum");e=A(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:er(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},Br=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Yt=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Yr[t>>2])};case 8:return function(t){return this.fromWireType(Jr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Jt=(r,e,t)=>{e=A(e),k(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:D,readValueFromPointer:Yt(e,t),destructorFunction:null})},rn=(r,e,t,n,i,a,s,o)=>{var u=Ur(e,t);r=A(r),r=me(r),i=S(n,i),Dr(r,function(){$r(`Cannot call ${r} due to unbound types`,u)},e-1),z([],u,l=>{var f=[l[0],null].concat(l.slice(1));return he(r,xr(r,f,null,i,a),e-1),[]})},en=(r,e,t)=>{switch(e){case 1:return t?n=>W[n]:n=>F[n];case 2:return t?n=>G[n>>1]:n=>Q[n>>1];case 4:return t?n=>V[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},tn=(r,e,t,n,i)=>{e=A(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},k(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:D,readValueFromPointer:en(e,t,n!==0),destructorFunction:null})},nn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=$[s>>2],u=$[s+4>>2];return new i(W.buffer,u,o)}t=A(t),k(r,{name:t,fromWireType:a,argPackAdvance:D,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},an=Object.assign({optional:!0},$e),on=(r,e)=>{k(r,an)},sn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},tr=(r,e,t)=>sn(r,F,e,t),un=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},be=typeof TextDecoder<"u"?new TextDecoder:void 0,we=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&be)return be.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},ln=(r,e)=>r?we(F,r,e):"",cn=(r,e)=>{e=A(e);var t=e==="std::string";k(r,{name:e,fromWireType(n){var i=$[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||F[l]==0){var f=l-o,v=ln(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var p=new Array(i),u=0;u>2]=a,t&&s)tr(i,u,a+1);else if(s)for(var l=0;l255&&(I(u),y("String has UTF-16 code units that do not fit in 8 bits")),F[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&Q[n];)++n;if(t=n<<1,t-r>32&&Te)return Te.decode(F.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=G[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return G[e>>1]=0,e-i},dn=r=>r.length*2,pn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=V[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},hn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(V[e>>2]=o,e+=4,e+4>a)break}return V[e>>2]=0,e-i},_n=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},gn=(r,e,t)=>{t=A(t);var n,i,a,s;e===2?(n=fn,i=vn,s=dn,a=o=>Q[o>>1]):e===4&&(n=pn,i=hn,s=_n,a=o=>$[o>>2]),k(r,{name:t,fromWireType:o=>{for(var u=$[o>>2],l,f=o+4,v=0;v<=u;++v){var p=o+4+v*e;if(v==u||a(p)==0){var m=p-f,b=n(f,m);l===void 0?l=b:(l+="\0",l+=b),f=p+e}}return I(o),l},toWireType:(o,u)=>{typeof u!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=Lr(4+l+e);return $[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(I,f),f},argPackAdvance:D,readValueFromPointer:J,destructorFunction(o){I(o)}})},yn=(r,e,t,n,i,a)=>{vr[r]={name:A(e),rawConstructor:S(t,n),rawDestructor:S(i,a),fields:[]}},mn=(r,e,t,n,i,a,s,o,u,l)=>{vr[r].fields.push({fieldName:A(e),getterReturnType:t,getter:S(n,i),getterContext:a,setterArgumentType:s,setter:S(o,u),setterContext:l})},$n=(r,e)=>{e=A(e),k(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},bn=(r,e,t)=>F.copyWithin(r,e,e+t),Nr=[],wn=(r,e,t,n)=>(r=Nr[r],e=x.toValue(e),r(null,e,t,n)),Tn={},Cn=r=>{var e=Tn[r];return e===void 0?A(r):e},Ce=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Pn=r=>r===0?x.toHandle(Ce()):(r=Cn(r),x.toHandle(Ce()[r])),An=r=>{var e=Nr.length;return Nr.push(r),e},Fn=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},En=Reflect.construct,Rn=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&($[e>>2]=x.toHandle(n)),i},kn=(r,e,t)=>{var n=Fn(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var p=0,m=0;mu.name).join(", ")}) => ${i.name}>`;return An(er(o,s))},Sn=r=>{r>9&&(U[r+1]+=1)},jn=r=>{var e=x.toValue(r);jr(e),Hr(r)},On=(r,e)=>{r=Vr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return x.toHandle(t)},Wn=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);$[r>>2]=l*60,V[e>>2]=+(o!=u);var f=m=>{var b=m>=0?"-":"+",P=Math.abs(m),T=String(Math.floor(P/60)).padStart(2,"0"),C=String(P%60).padStart(2,"0");return`UTC${b}${T}${C}`},v=f(o),p=f(u);u2147483648,Mn=(r,e)=>Math.ceil(r/e)*e,Un=r=>{var e=sr.buffer,t=(r-e.byteLength+65535)/65536|0;try{return sr.grow(t),re(),1}catch{}},xn=r=>{var e=F.length;r>>>=0;var t=Dn();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,Mn(Math.max(r,i),65536)),s=Un(a);if(s)return!0}return!1},zr={},In=()=>qr||"./this.program",nr=()=>{if(!nr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:In()};for(var t in zr)zr[t]===void 0?delete e[t]:e[t]=zr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);nr.strings=n}return nr.strings},Hn=(r,e)=>{for(var t=0;t{var t=0;return nr().forEach((n,i)=>{var a=e+t;$[r+i*4>>2]=a,Hn(n,a),t+=n.length+1}),0},Bn=(r,e)=>{var t=nr();$[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),$[e>>2]=n,0},Nn=r=>52;function zn(r,e,t,n,i){return 70}var Ln=[null,[],[]],Zn=(r,e)=>{var t=Ln[r];e===0||e===10?((r===1?Ze:X)(we(t)),t.length=0):t.push(e)},Xn=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=$[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Gn=r=>r;se=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},mt(),K=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Rt(),Ut(),ge=c.UnboundTypeError=Vt(Error,"UnboundTypeError"),Xt();var qn={t:st,x:ut,a:ct,j:ft,k:vt,O:dt,q:pt,ga:ht,d:lt,ca:_t,va:gt,ba:yt,pa:bt,ta:Bt,sa:zt,E:Lt,oa:Gt,F:Kt,n:Qt,W:Jt,X:rn,y:tn,u:nn,ua:on,V:cn,P:gn,L:yn,wa:mn,qa:$n,ja:bn,T:wn,xa:Hr,ya:Pn,U:kn,Y:Sn,Z:jn,ra:On,da:Wn,ha:xn,ea:Vn,fa:Bn,ia:Nn,$:zn,S:Xn,J:_i,C:yi,Q:ri,R:Pi,r:vi,b:Kn,D:hi,la:$i,c:ti,ka:bi,h:Jn,i:oi,s:si,N:pi,w:li,I:Ti,K:di,z:mi,H:Ai,aa:Ei,_:Ri,l:ni,f:ei,e:Yn,g:Qn,M:Ci,m:ai,ma:gi,p:ui,v:ci,na:fi,B:wi,o:ii,G:Fi,A:Gn},w=ot(),Pe=r=>(Pe=w.Ba)(r),I=c._free=r=>(I=c._free=w.Ca)(r),Lr=c._malloc=r=>(Lr=c._malloc=w.Ea)(r),Ae=r=>(Ae=w.Fa)(r),d=(r,e)=>(d=w.Ga)(r,e),Fe=r=>(Fe=w.Ha)(r),Ee=r=>(Ee=w.Ia)(r),Re=()=>(Re=w.Ja)(),ke=r=>(ke=w.Ka)(r),Se=r=>(Se=w.La)(r),je=(r,e,t)=>(je=w.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=w.Na)(r,e,t,n,i,a,s);var Oe=c.dynCall_jiii=(r,e,t,n)=>(Oe=c.dynCall_jiii=w.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=w.Pa)(r,e,t,n,i);var We=c.dynCall_jiiii=(r,e,t,n,i)=>(We=c.dynCall_jiiii=w.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=w.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=w.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=w.Ta)(r,e,t,n,i,a,s,o,u,l);function Kn(r,e){var t=_();try{return g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function Qn(r,e,t,n){var i=_();try{g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Yn(r,e,t){var n=_();try{g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function Jn(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function ri(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function ei(r,e){var t=_();try{g(r)(e)}catch(n){if(h(t),n!==n+0)throw n;d(1,0)}}function ti(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function ni(r){var e=_();try{g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function ii(r,e,t,n,i,a,s,o,u,l,f){var v=_();try{g(r)(e,t,n,i,a,s,o,u,l,f)}catch(p){if(h(v),p!==p+0)throw p;d(1,0)}}function ai(r,e,t,n,i){var a=_();try{g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function oi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function si(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function ui(r,e,t,n,i,a){var s=_();try{g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function li(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function ci(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function fi(r,e,t,n,i,a,s,o,u){var l=_();try{g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function vi(r){var e=_();try{return g(r)()}catch(t){if(h(e),t!==t+0)throw t;d(1,0)}}function di(r,e,t,n,i,a,s,o,u){var l=_();try{return g(r)(e,t,n,i,a,s,o,u)}catch(f){if(h(l),f!==f+0)throw f;d(1,0)}}function pi(r,e,t,n,i,a,s){var o=_();try{return g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function hi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function _i(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function gi(r,e,t,n,i,a,s,o){var u=_();try{g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function yi(r,e,t,n,i,a){var s=_();try{return g(r)(e,t,n,i,a)}catch(o){if(h(s),o!==o+0)throw o;d(1,0)}}function mi(r,e,t,n,i,a,s,o,u,l){var f=_();try{return g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function $i(r,e,t){var n=_();try{return g(r)(e,t)}catch(i){if(h(n),i!==i+0)throw i;d(1,0)}}function bi(r,e,t,n,i){var a=_();try{return g(r)(e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}function wi(r,e,t,n,i,a,s,o,u,l){var f=_();try{g(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(h(f),v!==v+0)throw v;d(1,0)}}function Ti(r,e,t,n,i,a,s,o){var u=_();try{return g(r)(e,t,n,i,a,s,o)}catch(l){if(h(u),l!==l+0)throw l;d(1,0)}}function Ci(r,e,t,n,i,a,s){var o=_();try{g(r)(e,t,n,i,a,s)}catch(u){if(h(o),u!==u+0)throw u;d(1,0)}}function Pi(r,e,t,n){var i=_();try{return g(r)(e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ai(r,e,t,n,i,a,s,o,u,l,f,v){var p=_();try{return g(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(m){if(h(p),m!==m+0)throw m;d(1,0)}}function Fi(r,e,t,n,i,a,s,o,u,l,f,v,p,m,b,P){var T=_();try{g(r)(e,t,n,i,a,s,o,u,l,f,v,p,m,b,P)}catch(C){if(h(T),C!==C+0)throw C;d(1,0)}}function Ei(r,e,t,n){var i=_();try{return Oe(r,e,t,n)}catch(a){if(h(i),a!==a+0)throw a;d(1,0)}}function Ri(r,e,t,n,i){var a=_();try{return We(r,e,t,n,i)}catch(s){if(h(a),s!==s+0)throw s;d(1,0)}}var br,De;Y=function r(){br||Me(),br||(Y=r)};function Me(){if(B>0||!De&&(De=1,Xe(),B>0))return;function r(){var e;br||(br=1,c.calledRun=1,!Qr&&(Ge(),Xr(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),qe()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Me(),Zr=Be,Zr}})();function Si(j){return R.getZXingModuleWithFactory(Cr,j)}function ji(j){return R.setZXingModuleOverridesWithFactory(Cr,j)}async function Oi(j,Z){return R.readBarcodesFromImageFileWithFactory(Cr,j,Z)}async function Wi(j,Z){return R.readBarcodesFromImageDataWithFactory(Cr,j,Z)}exports.barcodeFormats=R.barcodeFormats;exports.binarizers=R.binarizers;exports.characterSets=R.characterSets;exports.contentTypes=R.contentTypes;exports.defaultDecodeHints=R.defaultReaderOptions;exports.defaultReaderOptions=R.defaultReaderOptions;exports.eanAddOnSymbols=R.eanAddOnSymbols;exports.purgeZXingModule=R.purgeZXingModule;exports.readOutputEccLevels=R.readOutputEccLevels;exports.textModes=R.textModes;exports.getZXingModule=Si;exports.readBarcodesFromImageData=Wi;exports.readBarcodesFromImageFile=Oi;exports.setZXingModuleOverrides=ji; diff --git a/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts b/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts new file mode 100644 index 0000000..a312e07 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/writer/index.d.ts @@ -0,0 +1,13 @@ +/** + * The writer part API of this package is subject to change a lot. + * Please track the status of [this issue](https://github.com/zxing-cpp/zxing-cpp/issues/332). + * + * @packageDocumentation + */ +import type { WriterOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingWriterModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingWriterModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/cjs/writer/index.js b/node_modules/zxing-wasm/dist/cjs/writer/index.js new file mode 100644 index 0000000..ae03bd1 --- /dev/null +++ b/node_modules/zxing-wasm/dist/cjs/writer/index.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../core-CzvqAd2a.js");var wr=(()=>{var G;var S=typeof document<"u"&&((G=document.currentScript)==null?void 0:G.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(ie={}){var Tr,f=ie,$r,K,oe=new Promise((r,e)=>{$r=r,K=e}),se=typeof window=="object",ue=typeof Bun<"u",ur=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Ar=Object.assign({},f),A="";function fe(r){return f.locateFile?f.locateFile(r,A):A+r}var Er,fr;if(se||ur||ue){var cr;ur?A=self.location.href:typeof document<"u"&&((cr=document.currentScript)===null||cr===void 0?void 0:cr.tagName.toUpperCase())==="SCRIPT"&&(A=document.currentScript.src),S&&(A=S),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),ur&&(fr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Er=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}f.print||console.log.bind(console);var B=f.printErr||console.error.bind(console);Object.assign(f,Ar),Ar=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram;var J=f.wasmBinary,Q,Cr=!1,U,b,j,N,D,_,Fr,Rr;function Pr(){var r=Q.buffer;f.HEAP8=U=new Int8Array(r),f.HEAP16=j=new Int16Array(r),f.HEAPU8=b=new Uint8Array(r),f.HEAPU16=N=new Uint16Array(r),f.HEAP32=D=new Int32Array(r),f.HEAPU32=_=new Uint32Array(r),f.HEAPF32=Fr=new Float32Array(r),f.HEAPF64=Rr=new Float64Array(r)}var Wr=[],kr=[],Sr=[];function ce(){var r=f.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(de)),lr(Wr)}function ve(){lr(kr)}function le(){var r=f.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(he)),lr(Sr)}function de(r){Wr.unshift(r)}function _e(r){kr.unshift(r)}function he(r){Sr.unshift(r)}var x=0,X=null;function pe(r){var e;x++,(e=f.monitorRunDependencies)===null||e===void 0||e.call(f,x)}function ge(r){var e;if(x--,(e=f.monitorRunDependencies)===null||e===void 0||e.call(f,x),x==0&&X){var t=X;X=null,t()}}function vr(r){var e;(e=f.onAbort)===null||e===void 0||e.call(f,r),r="Aborted("+r+")",B(r),Cr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw K(t),t}var me="data:application/octet-stream;base64,",Ur=r=>r.startsWith(me);function ye(){var r="zxing_writer.wasm";return Ur(r)?r:fe(r)}var Y;function Mr(r){if(r==Y&&J)return new Uint8Array(J);if(fr)return fr(r);throw"both async and sync fetching of the wasm failed"}function be(r){return J?Promise.resolve().then(()=>Mr(r)):Er(r).then(e=>new Uint8Array(e),()=>Mr(r))}function xr(r,e,t){return be(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{B(`failed to asynchronously prepare wasm: ${n}`),vr(n)})}function we(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Ur(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return B(`wasm streaming compile failed: ${o}`),B("falling back to ArrayBuffer instantiation"),xr(e,t,n)})}):xr(e,t,n)}function Te(){return{a:Ht}}function $e(){var r,e=Te();function t(a,i){return y=a.exports,Q=y.Y,Pr(),Xr=y.$,_e(y.Z),ge(),y}pe();function n(a){t(a.instance)}if(f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(a){B(`Module.instantiateWasm callback failed with error: ${a}`),K(a)}return(r=Y)!==null&&r!==void 0||(Y=ye()),we(J,Y,e,n).catch(K),{}}var lr=r=>{r.forEach(e=>e(f))};f.noExitRuntime;var g=r=>Qr(r),m=()=>Yr(),z=[],Ae=r=>{var e=new dr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),z.push(e),re(r),te(r)},F=0,Ee=()=>{p(0,0);var r=z.pop();zr(r.excPtr),F=0};class dr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){_[this.ptr+4>>2]=e}get_type(){return _[this.ptr+4>>2]}set_destructor(e){_[this.ptr+8>>2]=e}get_destructor(){return _[this.ptr+8>>2]}set_caught(e){e=e?1:0,U[this.ptr+12]=e}get_caught(){return U[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,U[this.ptr+13]=e}get_rethrown(){return U[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){_[this.ptr+16>>2]=e}get_adjusted_ptr(){return _[this.ptr+16>>2]}}var Ce=r=>{throw F||(F=r),F},rr=r=>Jr(r),_r=r=>{var e=F;if(!e)return rr(0),0;var t=new dr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return rr(0),e;for(var a of r){if(a===0||a===n)break;var i=t.ptr+16;if(ee(a,n,i))return rr(a),e}return rr(n),e},Fe=()=>_r([]),Re=r=>_r([r]),Pe=(r,e)=>_r([r,e]),We=()=>{var r=z.pop();r||vr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(z.push(r),r.set_rethrown(!0),r.set_caught(!1)),F=e,F},ke=(r,e,t)=>{var n=new dr(r);throw n.init(e,t),F=r,F},Se=()=>{vr("")},er={},hr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(_[r>>2])}var V={},I={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(s=>nr[s]=e);function n(s){var u=t(s);u.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c{I.hasOwnProperty(s)?a[u]=I[s]:(i.push(s),V.hasOwnProperty(s)||(V[s]=[]),V[s].push(()=>{a[u]=I[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Ue=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));jr([r],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,l=o[c],d=u.getter,T=u.getterContext,M=o[c+a.length],L=u.setter,C=u.setterContext;s[v]={read:q=>l.fromWireType(d(T,q)),write:(q,br)=>{var sr=[];L(C,q,M.toWireType(sr,br)),hr(sr)}}}),[{name:e.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in s)s[v].write(l,c[v]);return u!==null&&u.push(n,l),l},argPackAdvance:R,readValueFromPointer:tr,destructorFunction:n}]})},Me=(r,e,t,n,a)=>{},xe=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,w=r=>{for(var e="",t=r;b[t];)e+=Dr[b[t++]];return e},Vr,$=r=>{throw new Vr(r)};function Ie(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),I.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(I[r]=e,delete nr[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ie(r,e,t)}var R=8,Oe=(r,e,t,n)=>{e=w(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:R,readValueFromPointer:function(a){return this.fromWireType(b[a])},destructorFunction:null})},pr=[],P=[],gr=r=>{r>9&&--P[r+1]===0&&(P[r]=void 0,pr.push(r))},je=()=>P.length/2-5-pr.length,De=()=>{P.push(0,1,void 0,1,null,1,!0,1,!1,1),f.count_emval_handles=je},O={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),P[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=pr.pop()||P.length;return P[e]=r,P[e+1]=1,e}}}},Ve={name:"emscripten::val",fromWireType:r=>{var e=O.toValue(r);return gr(r),e},toWireType:(r,e)=>O.toHandle(e),argPackAdvance:R,readValueFromPointer:tr,destructorFunction:null},He=r=>E(r,Ve),Be=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o{f.hasOwnProperty(r)?((t===void 0||f[r].overloadTable!==void 0&&f[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Be(f,r,r),f.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),f[r].overloadTable[t]=e):(f[r]=e,t!==void 0&&(f[r].numArguments=t))},Ne=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(U[n])}:function(n){return this.fromWireType(b[n])};case 2:return t?function(n){return this.fromWireType(j[n>>1])}:function(n){return this.fromWireType(N[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(_[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Xe=(r,e,t,n)=>{e=w(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:R,readValueFromPointer:Ne(e,t,n),destructorFunction:null}),Hr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Br=r=>{var e=Kr(r),t=w(e);return W(e),t},Nr=(r,e)=>{var t=I[r];return t===void 0&&$(`${e} has unknown type ${Br(r)}`),t},Ze=(r,e,t)=>{var n=Nr(r,"enum");e=w(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Le=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Fr[t>>2])};case 8:return function(t){return this.fromWireType(Rr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},qe=(r,e,t)=>{e=w(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:R,readValueFromPointer:Le(e,t),destructorFunction:null})};function Ge(r){for(var e=1;e{for(var t=[],n=0;n>2]);return t},Qe=(r,e,t)=>{f.hasOwnProperty(r)||Or("Replacing nonexistent public symbol"),f[r].overloadTable!==void 0&&t!==void 0?f[r].overloadTable[t]=e:(f[r]=e,f[r].argCount=t)},Ye=(r,e,t)=>{r=r.replace(/p/g,"i");var n=f["dynCall_"+r];return n(e,...t)},ir=[],Xr,h=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Xr.get(r)),e},ze=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return Ye(r,e,t);var n=h(e)(...t);return n},rt=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a{r=w(r);function t(){return r.includes("j")?rt(r,e):h(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},et=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Zr,tt=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!I[i]){if(nr[i]){nr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Zr(`${r}: `+t.map(Br).join([", "]))},nt=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},at=(r,e,t,n,a,i,o,s)=>{var u=Je(e,t);r=w(r),r=nt(r),a=Z(n,a),Hr(r,function(){tt(`Cannot call ${r} due to unbound types`,u)},e-1),jr([],u,c=>{var v=[c[0],null].concat(c.slice(1));return Qe(r,Ke(r,v,null,a,i),e-1),[]})},it=(r,e,t)=>{switch(e){case 1:return t?n=>U[n]:n=>b[n];case 2:return t?n=>j[n>>1]:n=>N[n>>1];case 4:return t?n=>D[n>>2]:n=>_[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},ot=(r,e,t,n,a)=>{e=w(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<>>o}var s=e.includes("unsigned"),u=(v,l)=>{},c;s?c=function(v,l){return u(l,this.name),l>>>0}:c=function(v,l){return u(l,this.name),l},E(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:R,readValueFromPointer:it(e,t,n!==0),destructorFunction:null})},st=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=_[o>>2],u=_[o+4>>2];return new a(U.buffer,u,s)}t=w(t),E(r,{name:t,fromWireType:i,argPackAdvance:R,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},ut=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o=55296&&s<=57343){var u=r.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},ft=(r,e,t)=>ut(r,b,e,t),ct=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},Lr=typeof TextDecoder<"u"?new TextDecoder:void 0,vt=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Lr)return Lr.decode(r.subarray(e,a));for(var i="";e>10,56320|c&1023)}}return i},lt=(r,e)=>r?vt(b,r,e):"",dt=(r,e)=>{e=w(e);var t=e==="std::string";E(r,{name:e,fromWireType(n){var a=_[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||b[c]==0){var v=c-s,l=lt(s,v);o===void 0?o=l:(o+="\0",o+=l),s=c+1}}else{for(var d=new Array(a),u=0;u>2]=i,t&&o)ft(a,u,i+1);else if(o)for(var c=0;c255&&(W(u),$("String has UTF-16 code units that do not fit in 8 bits")),b[u+c]=v}else for(var c=0;c{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&N[n];)++n;if(t=n<<1,t-r>32&&qr)return qr.decode(b.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=j[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},ht=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t>1]=s,e+=2}return j[e>>1]=0,e-a},pt=r=>r.length*2,gt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=D[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},mt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o=55296&&s<=57343){var u=r.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[e>>2]=s,e+=4,e+4>i)break}return D[e>>2]=0,e-a},yt=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},bt=(r,e,t)=>{t=w(t);var n,a,i,o;e===2?(n=_t,a=ht,o=pt,i=s=>N[s>>1]):e===4&&(n=gt,a=mt,o=yt,i=s=>_[s>>2]),E(r,{name:t,fromWireType:s=>{for(var u=_[s>>2],c,v=s+4,l=0;l<=u;++l){var d=s+4+l*e;if(l==u||i(d)==0){var T=d-v,M=n(v,T);c===void 0?c=M:(c+="\0",c+=M),v=d+e}}return W(s),c},toWireType:(s,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=yr(4+c+e);return _[v>>2]=c/e,a(u,v+4,c+e),s!==null&&s.push(W,v),v},argPackAdvance:R,readValueFromPointer:tr,destructorFunction(s){W(s)}})},wt=(r,e,t,n,a,i)=>{er[r]={name:w(e),rawConstructor:Z(t,n),rawDestructor:Z(a,i),fields:[]}},Tt=(r,e,t,n,a,i,o,s,u,c)=>{er[r].fields.push({fieldName:w(e),getterReturnType:t,getter:Z(n,a),getterContext:i,setterArgumentType:o,setter:Z(s,u),setterContext:c})},$t=(r,e)=>{e=w(e),E(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},At=(r,e,t)=>b.copyWithin(r,e,e+t),mr=[],Et=(r,e,t,n)=>(r=mr[r],e=O.toValue(e),r(null,e,t,n)),Ct={},Ft=r=>{var e=Ct[r];return e===void 0?w(r):e},Gr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Rt=r=>r===0?O.toHandle(Gr()):(r=Ft(r),O.toHandle(Gr()[r])),Pt=r=>{var e=mr.length;return mr.push(r),e},Wt=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},kt=Reflect.construct,St=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(_[e>>2]=O.toHandle(n)),a},Ut=(r,e,t)=>{var n=Wt(r,e),a=n.shift();r--;var i=new Array(r),o=(u,c,v,l)=>{for(var d=0,T=0;Tu.name).join(", ")}) => ${a.name}>`;return Pt(ar(s,o))},Mt=r=>{r>9&&(P[r+1]+=1)},xt=r=>{var e=O.toValue(r);hr(e),gr(r)},It=()=>2147483648,Ot=(r,e)=>Math.ceil(r/e)*e,jt=r=>{var e=Q.buffer,t=(r-e.byteLength+65535)/65536|0;try{return Q.grow(t),Pr(),1}catch{}},Dt=r=>{var e=b.length;r>>>=0;var t=It();if(r>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var i=Math.min(t,Ot(Math.max(r,a),65536)),o=jt(i);if(o)return!0}return!1},Vt=r=>r;Ir=f.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},xe(),Vr=f.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},De(),Zr=f.UnboundTypeError=et(Error,"UnboundTypeError");var Ht={x:Ae,y:Ee,a:Fe,l:Re,u:Pe,N:We,n:ke,f:Ce,J:Se,T:Ue,I:Me,P:Oe,O:He,R:Xe,k:Ze,B:qe,S:at,s:ot,o:st,A:dt,z:bt,C:wt,U:Tt,Q:$t,L:At,F:Et,W:gr,H:Rt,G:Ut,D:Mt,X:xt,K:Dt,E:qt,v:nn,e:Bt,c:Gt,m:Lt,h:tn,i:zt,M:rn,q:Kt,g:Nt,d:Yt,b:Qt,j:Zt,p:Xt,w:en,r:an,t:Jt,V:Vt},y=$e(),Kr=r=>(Kr=y._)(r),yr=f._malloc=r=>(yr=f._malloc=y.aa)(r),W=f._free=r=>(W=f._free=y.ba)(r),p=(r,e)=>(p=y.ca)(r,e),Jr=r=>(Jr=y.da)(r),Qr=r=>(Qr=y.ea)(r),Yr=()=>(Yr=y.fa)(),zr=r=>(zr=y.ga)(r),re=r=>(re=y.ha)(r),ee=(r,e,t)=>(ee=y.ia)(r,e,t),te=r=>(te=y.ja)(r);function Bt(r,e){var t=m();try{return h(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Nt(r,e){var t=m();try{h(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Xt(r,e,t,n,a,i){var o=m();try{h(r)(e,t,n,a,i)}catch(s){if(g(o),s!==s+0)throw s;p(1,0)}}function Zt(r,e,t,n,a){var i=m();try{h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function Lt(r,e,t,n){var a=m();try{return h(r)(e,t,n)}catch(i){if(g(a),i!==i+0)throw i;p(1,0)}}function qt(r,e,t,n,a){var i=m();try{return h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function Gt(r,e,t){var n=m();try{return h(r)(e,t)}catch(a){if(g(n),a!==a+0)throw a;p(1,0)}}function Kt(r){var e=m();try{h(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Jt(r,e,t,n,a,i,o,s,u,c,v){var l=m();try{h(r)(e,t,n,a,i,o,s,u,c,v)}catch(d){if(g(l),d!==d+0)throw d;p(1,0)}}function Qt(r,e,t,n){var a=m();try{h(r)(e,t,n)}catch(i){if(g(a),i!==i+0)throw i;p(1,0)}}function Yt(r,e,t){var n=m();try{h(r)(e,t)}catch(a){if(g(n),a!==a+0)throw a;p(1,0)}}function zt(r,e,t,n,a,i){var o=m();try{return h(r)(e,t,n,a,i)}catch(s){if(g(o),s!==s+0)throw s;p(1,0)}}function rn(r,e,t,n,a,i,o){var s=m();try{return h(r)(e,t,n,a,i,o)}catch(u){if(g(s),u!==u+0)throw u;p(1,0)}}function en(r,e,t,n,a,i,o,s){var u=m();try{h(r)(e,t,n,a,i,o,s)}catch(c){if(g(u),c!==c+0)throw c;p(1,0)}}function tn(r,e,t,n,a){var i=m();try{return h(r)(e,t,n,a)}catch(o){if(g(i),o!==o+0)throw o;p(1,0)}}function nn(r){var e=m();try{return h(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function an(r,e,t,n,a,i,o,s,u){var c=m();try{h(r)(e,t,n,a,i,o,s,u)}catch(v){if(g(c),v!==v+0)throw v;p(1,0)}}var or,ne;X=function r(){or||ae(),or||(X=r)};function ae(){if(x>0||!ne&&(ne=1,ce(),x>0))return;function r(){var e;or||(or=1,f.calledRun=1,!Cr&&(ve(),$r(f),(e=f.onRuntimeInitialized)===null||e===void 0||e.call(f),le()))}f.setStatus?(f.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>f.setStatus(""),1),r()},1)):r()}if(f.preInit)for(typeof f.preInit=="function"&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();return ae(),Tr=oe,Tr}})();function sn(S){return k.getZXingModuleWithFactory(wr,S)}function un(S){return k.setZXingModuleOverridesWithFactory(wr,S)}async function fn(S,G){return k.writeBarcodeToImageFileWithFactory(wr,S,G)}exports.barcodeFormats=k.barcodeFormats;exports.characterSets=k.characterSets;exports.defaultEncodeHints=k.defaultWriterOptions;exports.defaultWriterOptions=k.defaultWriterOptions;exports.purgeZXingModule=k.purgeZXingModule;exports.writeInputEccLevels=k.writeInputEccLevels;exports.getZXingModule=sn;exports.setZXingModuleOverrides=un;exports.writeBarcodeToImageFile=fn; diff --git a/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts b/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts new file mode 100644 index 0000000..287560e --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/barcodeFormat.d.ts @@ -0,0 +1,21 @@ +export declare const barcodeFormats: readonly ["Aztec", "Codabar", "Code128", "Code39", "Code93", "DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge", "EAN-13", "EAN-8", "ITF", "Linear-Codes", "Matrix-Codes", "MaxiCode", "MicroQRCode", "None", "PDF417", "QRCode", "rMQRCode", "UPC-A", "UPC-E"]; +/** + * @internal + */ +export type BarcodeFormat = (typeof barcodeFormats)[number]; +/** + * Barcode formats that can be used in {@link ReaderOptions.formats | `ReaderOptions.formats`} to read barcodes. + */ +export type ReadInputBarcodeFormat = Exclude; +/** + * Barcode formats that can be used in {@link WriterOptions.format | `WriterOptions.format`} to write barcodes. + */ +export type WriteInputBarcodeFormat = Exclude; +/** + * Barcode formats that may be returned in {@link ReadResult.format} in read functions. + */ +export type ReadOutputBarcodeFormat = Exclude; +export declare function formatsToString(formats: BarcodeFormat[]): string; +export declare function formatsFromString(formatString: string): BarcodeFormat[]; +export declare function formatFromString(format: string): BarcodeFormat; +export declare function normalizeFormatString(format: string): string; diff --git a/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts b/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts new file mode 100644 index 0000000..294133d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/binarizer.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const binarizers: readonly ["LocalAverage", "GlobalHistogram", "FixedThreshold", "BoolCast"]; +export type Binarizer = (typeof binarizers)[number]; +/** + * @internal + */ +export type ZXingBinarizer = Record; +export declare function binarizerToZXingEnum(zxingModule: ZXingModule, binarizer: Binarizer): ZXingEnum; +export declare function zxingEnumToBinarizer(zxingEnum: ZXingEnum): Binarizer; diff --git a/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts b/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts new file mode 100644 index 0000000..bff72f8 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/characterSet.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule, ZXingModuleType } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const characterSets: readonly ["Unknown", "ASCII", "ISO8859_1", "ISO8859_2", "ISO8859_3", "ISO8859_4", "ISO8859_5", "ISO8859_6", "ISO8859_7", "ISO8859_8", "ISO8859_9", "ISO8859_10", "ISO8859_11", "ISO8859_13", "ISO8859_14", "ISO8859_15", "ISO8859_16", "Cp437", "Cp1250", "Cp1251", "Cp1252", "Cp1256", "Shift_JIS", "Big5", "GB2312", "GB18030", "EUC_JP", "EUC_KR", "UTF16BE", "UTF8", "UTF16LE", "UTF32BE", "UTF32LE", "BINARY"]; +export type CharacterSet = (typeof characterSets)[number]; +/** + * @internal + */ +export type ZXingCharacterSet = Record; +export declare function characterSetToZXingEnum(zxingModule: ZXingModule, characterSet: CharacterSet): ZXingEnum; +export declare function zxingEnumToCharacterSet(zxingEnum: ZXingEnum): CharacterSet; diff --git a/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts b/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts new file mode 100644 index 0000000..a18e62d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/contentType.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const contentTypes: readonly ["Text", "Binary", "Mixed", "GS1", "ISO15434", "UnknownECI"]; +export type ContentType = (typeof contentTypes)[number]; +/** + * @internal + */ +export type ZXingContentType = Record; +export declare function contentTypeToZXingEnum(zxingModule: ZXingModule, contentType: ContentType): ZXingEnum; +export declare function zxingEnumToContentType(zxingEnum: ZXingEnum): ContentType; diff --git a/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts b/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts new file mode 100644 index 0000000..ed3a5b2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/eanAddOnSymbol.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const eanAddOnSymbols: readonly ["Ignore", "Read", "Require"]; +export type EanAddOnSymbol = (typeof eanAddOnSymbols)[number]; +/** + * @internal + */ +export type ZXingEanAddOnSymbol = Record; +export declare function eanAddOnSymbolToZXingEnum(zxingModule: ZXingModule, eanAddOnSymbol: EanAddOnSymbol): ZXingEnum; +export declare function zxingEnumToEanAddOnSymbol(zxingEnum: ZXingEnum): EanAddOnSymbol; diff --git a/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts b/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts new file mode 100644 index 0000000..bbfb1bc --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/eccLevel.d.ts @@ -0,0 +1,4 @@ +export declare const writeInputEccLevels: readonly [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8]; +export type WriteInputEccLevel = (typeof writeInputEccLevels)[number]; +export declare const readOutputEccLevels: readonly ["L", "M", "Q", "H"]; +export type ReadOutputEccLevel = (typeof readOutputEccLevels)[number]; diff --git a/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts b/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts new file mode 100644 index 0000000..7d42d60 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/enum.d.ts @@ -0,0 +1,6 @@ +/** + * @internal + */ +export interface ZXingEnum { + value: number; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts b/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts new file mode 100644 index 0000000..5876088 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/exposedReaderBindings.d.ts @@ -0,0 +1,17 @@ +import { type ReaderOptions } from "./index.js"; +export declare const defaultReaderOptions: Required; +export { barcodeFormats, type BarcodeFormat, type ReadInputBarcodeFormat, type ReadOutputBarcodeFormat, binarizers, type ZXingBinarizer, type Binarizer, characterSets, type ZXingCharacterSet, type CharacterSet, contentTypes, type ZXingContentType, type ContentType, type ZXingReaderOptions, type ReaderOptions, eanAddOnSymbols, type ZXingEanAddOnSymbol, type EanAddOnSymbol, readOutputEccLevels, type ReadOutputEccLevel, type ZXingEnum, type ZXingPoint, type ZXingPosition, type Point, type Position, type ZXingReadResult, type ReadResult, textModes, type ZXingTextMode, type TextMode, type ZXingVector, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultReaderOptions` + */ +defaultReaderOptions as defaultDecodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingReaderOptions` + */ +ZXingReaderOptions as ZXingDecodeHints, +/** + * @deprecated renamed as `ReaderOptions` + */ +ReaderOptions as DecodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts b/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts new file mode 100644 index 0000000..dfc4b5d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/exposedWriterBindings.d.ts @@ -0,0 +1,17 @@ +import { type WriterOptions } from "./index.js"; +export declare const defaultWriterOptions: Required; +export { barcodeFormats, type BarcodeFormat, type WriteInputBarcodeFormat, characterSets, type ZXingCharacterSet, type CharacterSet, writeInputEccLevels, type WriteInputEccLevel, type ZXingWriterOptions, type WriterOptions, type ZXingEnum, type ZXingWriteResult, type WriteResult, } from "./index.js"; +export { +/** + * @deprecated renamed as `defaultWriterOptions` + */ +defaultWriterOptions as defaultEncodeHints, }; +export type { +/** + * @deprecated renamed as `ZXingWriterOptions` + */ +ZXingWriterOptions as ZXingEncodeHints, +/** + * @deprecated renamed as `WriterOptions` + */ +WriterOptions as EncodeHints, } from "./index.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/index.d.ts b/node_modules/zxing-wasm/dist/es/bindings/index.d.ts new file mode 100644 index 0000000..0081c44 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/index.d.ts @@ -0,0 +1,14 @@ +export * from "./barcodeFormat.js"; +export * from "./binarizer.js"; +export * from "./characterSet.js"; +export * from "./contentType.js"; +export * from "./readerOptions.js"; +export * from "./eanAddOnSymbol.js"; +export * from "./eccLevel.js"; +export * from "./writerOptions.js"; +export * from "./enum.js"; +export * from "./position.js"; +export * from "./readResult.js"; +export * from "./textMode.js"; +export * from "./vector.js"; +export * from "./writeResult.js"; diff --git a/node_modules/zxing-wasm/dist/es/bindings/position.d.ts b/node_modules/zxing-wasm/dist/es/bindings/position.d.ts new file mode 100644 index 0000000..2cbe76c --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/position.d.ts @@ -0,0 +1,55 @@ +/** + * @internal + */ +export interface ZXingPoint { + x: number; + y: number; +} +/** + * @internal + */ +export interface ZXingPosition { + topLeft: ZXingPoint; + topRight: ZXingPoint; + bottomLeft: ZXingPoint; + bottomRight: ZXingPoint; +} +/** + * X, Y coordinates to describe a point. + * + * @property x X coordinate. + * @property y Y coordinate. + * + * @see {@link Position | `Position`} + */ +export interface Point extends ZXingPoint { +} +/** + * Position of the decoded barcode. + */ +export interface Position { + /** + * Top-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topLeft: Point; + /** + * Top-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + topRight: Point; + /** + * Bottom-left point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomLeft: Point; + /** + * Bottom-right point of the decoded barcode. + * + * @see {@link Point | `Point`} + */ + bottomRight: Point; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts b/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts new file mode 100644 index 0000000..ae40842 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/readResult.d.ts @@ -0,0 +1,123 @@ +import { type ReadOutputBarcodeFormat } from "./barcodeFormat.js"; +import { type ContentType } from "./contentType.js"; +import type { ReadOutputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +import type { Position, ZXingPosition } from "./position.js"; +/** + * @internal + */ +export interface ZXingReadResult { + /** + * Whether the barcode is valid. + */ + isValid: boolean; + /** + * Error message (if any). + * + * @see {@link ReaderOptions.returnErrors | `ReaderOptions.returnErrors`} + */ + error: string; + format: string; + /** + * Raw / Standard content without any modifications like character set conversions. + */ + bytes: Uint8Array; + /** + * Raw / Standard content following the ECI protocol. + */ + bytesECI: Uint8Array; + /** + * The {@link ReadResult.bytes | `ReadResult.bytes`} content rendered to unicode / utf8 text + * accoring to specified {@link ReaderOptions.textMode | `ReaderOptions.textMode`}. + */ + text: string; + eccLevel: string; + contentType: ZXingEnum; + /** + * Whether or not an ECI tag was found. + */ + hasECI: boolean; + position: ZXingPosition; + /** + * Orientation of the barcode in degree. + */ + orientation: number; + /** + * Whether the symbol is mirrored (currently only supported by QRCode and DataMatrix). + */ + isMirrored: boolean; + /** + * Whether the symbol is inverted / has reveresed reflectance. + * + * @see {@link ReaderOptions.tryInvert | `ReaderOptions.tryInvert`} + */ + isInverted: boolean; + /** + * Symbology identifier `"]cm"` where `"c"` is the symbology code character, `"m"` the modifier. + */ + symbologyIdentifier: string; + /** + * Number of symbols in a structured append sequence. + * + * If this is not part of a structured append sequence, the returned value is `-1`. + * If it is a structured append symbol but the total number of symbols is unknown, the + * returned value is `0` (see PDF417 if optional "Segment Count" not given). + */ + sequenceSize: number; + /** + * The 0-based index of this symbol in a structured append sequence. + */ + sequenceIndex: number; + /** + * ID to check if a set of symbols belongs to the same structured append sequence. + * + * If the symbology does not support this feature, the returned value is empty (see MaxiCode). + * For QR Code, this is the parity integer converted to a string. + * For PDF417 and DataMatrix, this is the `"fileId"`. + */ + sequenceId: string; + /** + * Set if this is the reader initialisation / programming symbol. + */ + readerInit: boolean; + /** + * Number of lines have been detected with this code (applies only to linear symbologies). + */ + lineCount: number; + /** + * QRCode / DataMatrix / Aztec version or size. + * + * This property will be removed in the future. + * + * @deprecated + */ + version: string; +} +export interface ReadResult extends Omit { + /** + * Format of the barcode, should be one of {@link ReadOutputBarcodeFormat | `ReadOutputBarcodeFormat`}. + * + * Possible values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"None"`, + * `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + */ + format: ReadOutputBarcodeFormat; + /** + * Error correction level of the symbol (empty string if not applicable). + * + * This property may be renamed to `ecLevel` in the future. + */ + eccLevel: ReadOutputEccLevel; + /** + * A hint to the type of the content found. + */ + contentType: ContentType; + /** + * Position of the detected barcode. + */ + position: Position; +} +export declare function zxingReadResultToReadResult(zxingReadResult: ZXingReadResult): ReadResult; diff --git a/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts b/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts new file mode 100644 index 0000000..ba5e9e7 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/readerOptions.d.ts @@ -0,0 +1,207 @@ +import type { ZXingModule } from "../core.js"; +import { type ReadInputBarcodeFormat } from "./barcodeFormat.js"; +import { type Binarizer } from "./binarizer.js"; +import { type CharacterSet } from "./characterSet.js"; +import { type EanAddOnSymbol } from "./eanAddOnSymbol.js"; +import type { ZXingEnum } from "./enum.js"; +import { type TextMode } from "./textMode.js"; +/** + * @internal + */ +export interface ZXingReaderOptions { + formats: string; + /** + * Spend more time to try to find a barcode. Optimize for accuracy, not speed. + * + * @defaultValue `true` + */ + tryHarder: boolean; + /** + * Try detecting code in 90, 180 and 270 degree rotated images. + * + * @defaultValue `true` + */ + tryRotate: boolean; + /** + * Try detecting inverted (reversed reflectance) codes if the format allows for those. + * + * @defaultValue `true` + */ + tryInvert: boolean; + /** + * Try detecting code in downscaled images (depending on image size). + * + * @defaultValue `true` + * @see {@link downscaleFactor | `downscaleFactor`} {@link downscaleThreshold | `downscaleThreshold`} + */ + tryDownscale: boolean; + binarizer: ZXingEnum; + /** + * Set to `true` if the input contains nothing but a single perfectly aligned barcode (usually generated images). + * + * @defaultValue `false` + */ + isPure: boolean; + /** + * Image size ( min(width, height) ) threshold at which to start downscaled scanning + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `500` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleFactor | `downscaleFactor`} + */ + downscaleThreshold: number; + /** + * Scale factor to use during downscaling, meaningful values are `2`, `3` and `4`. + * **WARNING**: this API is experimental and may change / disappear + * + * @experimental + * @defaultValue `3` + * @see {@link tryDownscale | `tryDownscale`} {@link downscaleThreshold | `downscaleThreshold`} + */ + downscaleFactor: number; + /** + * The number of scan lines in a linear barcode that have to be equal to accept the result. + * + * @defaultValue `2` + */ + minLineCount: number; + /** + * The maximum number of symbols / barcodes to detect / look for in the image. + * The upper limit of this number is 255. + * + * @defaultValue `255` + */ + maxNumberOfSymbols: number; + /** + * If `true`, the Code-39 reader will try to read extended mode. + * + * @defaultValue `false` + */ + tryCode39ExtendedMode: boolean; + /** + * Assume Code-39 codes employ a check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateCode39CheckSum: boolean; + /** + * Assume ITF codes employ a GS1 check digit and validate it. + * + * @defaultValue `false` + * @deprecated upstream + */ + validateITFCheckSum: boolean; + /** + * If `true`, return the start and end chars in a Codabar barcode instead of stripping them. + * + * @defaultValue `false` + * @deprecated upstream + */ + returnCodabarStartEnd: boolean; + /** + * If `true`, return the barcodes with errors as well (e.g. checksum errors). + * + * @defaultValue `false` + */ + returnErrors: boolean; + eanAddOnSymbol: ZXingEnum; + textMode: ZXingEnum; + characterSet: ZXingEnum; +} +/** + * Reader options for reading barcodes. + */ +export interface ReaderOptions extends Partial> { + /** + * A set of {@link ReadInputBarcodeFormat | `ReadInputBarcodeFormat`}s that should be searched for. + * An empty list `[]` indicates all supported formats. + * + * Supported values in this list are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataBar"`, `"DataBarExpanded"`, `"DataBarLimited"`, `"DataMatrix"`, `"DXFilmEdge"`, + * `"EAN-13"`, `"EAN-8"`, `"ITF"`, `"Linear-Codes"`, `"Matrix-Codes"`, + * `"MaxiCode"`, `"MicroQRCode"`, `"PDF417"`, `"QRCode"`, `"rMQRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `[]` + */ + formats?: ReadInputBarcodeFormat[]; + /** + * Algorithm to use for the grayscale to binary transformation. + * The difference is how to get to a threshold value T + * which results in a bit value R = L <= T. + * + * - `"LocalAverage"` + * + * T = average of neighboring pixels for matrix and GlobalHistogram for linear + * + * - `"GlobalHistogram"` + * + * T = valley between the 2 largest peaks in the histogram (per line in linear case) + * + * - `"FixedThreshold"` + * + * T = 127 + * + * - `"BoolCast"` + * + * T = 0, fastest possible + * + * @defaultValue `"LocalAverage"` + */ + binarizer?: Binarizer; + /** + * Specify whether to ignore, read or require EAN-2 / 5 add-on symbols while scanning EAN / UPC codes. + * + * - `"Ignore"` + * + * Ignore any Add-On symbol during read / scan + * + * - `"Read"` + * + * Read EAN-2 / EAN-5 Add-On symbol if found + * + * - `"Require"` + * + * Require EAN-2 / EAN-5 Add-On symbol to be present + * + * @defaultValue `"Read"` + */ + eanAddOnSymbol?: EanAddOnSymbol; + /** + * Specifies the `TextMode` that controls the result of {@link ReadResult.text | `ReadResult.text`}. + * + * - `"Plain"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to unicode based on ECI info or guessed character set + * + * - `"ECI"` + * + * Standard content following the ECI protocol with every character set ECI segment transcoded to unicode + * + * - `"HRI"` + * + * Human Readable Interpretation (dependent on the ContentType) + * + * - `"Hex"` + * + * {@link ReadResult.bytes | `ReadResult.bytes`} transcoded to ASCII string of HEX values + * + * - `"Escaped"` + * + * Escape non-graphical characters in angle brackets (e.g. ASCII `29` will be transcoded to `""`) + * + * @defaultValue `"Plain"` + */ + textMode?: TextMode; + /** + * Character set to use (when applicable). + * If this is set to `"Unknown"`, auto-detecting will be used. + * + * @defaultValue `"Unknown"` + */ + characterSet?: CharacterSet; +} +export declare const defaultReaderOptions: Required; +export declare function readerOptionsToZXingReaderOptions(zxingModule: ZXingModule, readerOptions: Required): ZXingReaderOptions; diff --git a/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts b/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts new file mode 100644 index 0000000..ec52783 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/textMode.d.ts @@ -0,0 +1,10 @@ +import type { ZXingModule } from "../core.js"; +import type { ZXingEnum } from "./enum.js"; +export declare const textModes: readonly ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +export type TextMode = (typeof textModes)[number]; +/** + * @internal + */ +export type ZXingTextMode = Record; +export declare function textModeToZXingEnum(zxingModule: ZXingModule, textMode: TextMode): ZXingEnum; +export declare function zxingEnumToTextMode(zxingEnum: ZXingEnum): TextMode; diff --git a/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts b/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts new file mode 100644 index 0000000..034bd5a --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/vector.d.ts @@ -0,0 +1,7 @@ +/** + * @internal + */ +export interface ZXingVector { + size: () => number; + get: (i: number) => T | undefined; +} diff --git a/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts b/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts new file mode 100644 index 0000000..ac46b1f --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/writeResult.d.ts @@ -0,0 +1,24 @@ +/** + * @internal + */ +export interface ZXingWriteResult { + image: Uint8Array; + /** + * Encoding error. + * If there's no error, this will be an empty string `""`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + error: string; + delete: () => void; +} +export interface WriteResult extends Omit { + /** + * The encoded barcode as an image blob. + * If some error happens, this will be `null`. + * + * @see {@link WriteResult.error | `WriteResult.error`} + */ + image: Blob | null; +} +export declare function zxingWriteResultToWriteResult(zxingWriteResult: ZXingWriteResult): WriteResult; diff --git a/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts b/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts new file mode 100644 index 0000000..8a777af --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/bindings/writerOptions.d.ts @@ -0,0 +1,64 @@ +import type { ZXingModule } from "../core.js"; +import type { WriteInputBarcodeFormat } from "./barcodeFormat.js"; +import { type CharacterSet } from "./characterSet.js"; +import type { WriteInputEccLevel } from "./eccLevel.js"; +import type { ZXingEnum } from "./enum.js"; +/** + * @internal + */ +export interface ZXingWriterOptions { + /** + * Width of the barcode. + * + * @defaultValue `200` + */ + width: number; + /** + * Height of the barcode. + * + * @defaultValue `200` + */ + height: number; + format: string; + characterSet: ZXingEnum; + eccLevel: number; + /** + * The minimum number of quiet zone pixels. + * + * @defaultValue `10` + */ + margin: number; +} +/** + * Writer options for writing barcodes. + */ +export interface WriterOptions extends Partial> { + /** + * The format of the barcode to write. + * + * Supported values are: + * `"Aztec"`, `"Codabar"`, `"Code128"`, `"Code39"`, `"Code93"`, + * `"DataMatrix"`, `"EAN-13"`, `"EAN-8"`, `"ITF"`, + * `"PDF417"`, `"QRCode"`, `"UPC-A"`, `"UPC-E"` + * + * @defaultValue `"QRCode"` + */ + format?: WriteInputBarcodeFormat; + /** + * Character set to use for encoding the text. + * Used for Aztec, PDF417, and QRCode only. + * + * @defaultValue `"UTF8"` + */ + characterSet?: CharacterSet; + /** + * Error correction level of the symbol. + * Used for Aztec, PDF417, and QRCode only. + * `-1` means auto. + * + * @defaultValue `-1` + */ + eccLevel?: WriteInputEccLevel; +} +export declare const defaultWriterOptions: Required; +export declare function writerOptionsToZXingWriterOptions(zxingModule: ZXingModule, writerOptions: Required): ZXingWriterOptions; diff --git a/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js b/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js new file mode 100644 index 0000000..47ca9e2 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/core-C2hxqLt7.js @@ -0,0 +1,287 @@ +const C = [ + "Aztec", + "Codabar", + "Code128", + "Code39", + "Code93", + "DataBar", + "DataBarExpanded", + "DataBarLimited", + "DataMatrix", + "DXFilmEdge", + "EAN-13", + "EAN-8", + "ITF", + "Linear-Codes", + "Matrix-Codes", + "MaxiCode", + "MicroQRCode", + "None", + "PDF417", + "QRCode", + "rMQRCode", + "UPC-A", + "UPC-E" +]; +function T(e) { + return e.join("|"); +} +function p(e) { + const t = I(e); + let r = 0, o = C.length - 1; + for (; r <= o; ) { + const n = Math.floor((r + o) / 2), a = C[n], s = I(a); + if (s === t) + return a; + s < t ? r = n + 1 : o = n - 1; + } + return "None"; +} +function I(e) { + return e.toLowerCase().replace(/_-\[\]/g, ""); +} +const v = [ + "LocalAverage", + "GlobalHistogram", + "FixedThreshold", + "BoolCast" +]; +function b(e, t) { + return e.Binarizer[t]; +} +const L = [ + "Unknown", + "ASCII", + "ISO8859_1", + "ISO8859_2", + "ISO8859_3", + "ISO8859_4", + "ISO8859_5", + "ISO8859_6", + "ISO8859_7", + "ISO8859_8", + "ISO8859_9", + "ISO8859_10", + "ISO8859_11", + "ISO8859_13", + "ISO8859_14", + "ISO8859_15", + "ISO8859_16", + "Cp437", + "Cp1250", + "Cp1251", + "Cp1252", + "Cp1256", + "Shift_JIS", + "Big5", + "GB2312", + "GB18030", + "EUC_JP", + "EUC_KR", + "UTF16BE", + "UTF8", + "UTF16LE", + "UTF32BE", + "UTF32LE", + "BINARY" +]; +function O(e, t) { + return e.CharacterSet[t]; +} +const w = [ + "Text", + "Binary", + "Mixed", + "GS1", + "ISO15434", + "UnknownECI" +]; +function F(e) { + return w[e.value]; +} +const P = ["Ignore", "Read", "Require"]; +function _(e, t) { + return e.EanAddOnSymbol[t]; +} +const M = ["Plain", "ECI", "HRI", "Hex", "Escaped"]; +function R(e, t) { + return e.TextMode[t]; +} +const d = { + formats: [], + tryHarder: !0, + tryRotate: !0, + tryInvert: !0, + tryDownscale: !0, + binarizer: "LocalAverage", + isPure: !1, + downscaleFactor: 3, + downscaleThreshold: 500, + minLineCount: 2, + maxNumberOfSymbols: 255, + tryCode39ExtendedMode: !1, + validateCode39CheckSum: !1, + validateITFCheckSum: !1, + returnCodabarStartEnd: !1, + returnErrors: !1, + eanAddOnSymbol: "Read", + textMode: "Plain", + characterSet: "Unknown" +}; +function y(e, t) { + return { + ...t, + formats: T(t.formats), + binarizer: b(e, t.binarizer), + eanAddOnSymbol: _( + e, + t.eanAddOnSymbol + ), + textMode: R(e, t.textMode), + characterSet: O( + e, + t.characterSet + ) + }; +} +const x = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8], W = ["L", "M", "Q", "H"], S = { + width: 200, + height: 200, + format: "QRCode", + characterSet: "UTF8", + eccLevel: -1, + margin: 10 +}; +function B(e, t) { + return { + ...t, + characterSet: O( + e, + t.characterSet + ) + }; +} +function E(e) { + return { + ...e, + format: p(e.format), + eccLevel: e.eccLevel, + contentType: F(e.contentType) + }; +} +function A(e) { + const { image: t, error: r } = e; + return t ? { + image: new Blob([new Uint8Array(t)], { + type: "image/png" + }), + error: "" + } : { + image: null, + error: r + }; +} +const U = { + locateFile: (e, t) => { + const r = e.match(/_(.+?)\.wasm$/); + return r ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${r[1]}/${e}` : t + e; + } +}; +let m = /* @__PURE__ */ new WeakMap(); +function h(e, t) { + var a; + const r = m.get(e); + if (r != null && r.modulePromise && (t === void 0 || Object.is(t, r.moduleOverrides))) + return r.modulePromise; + const o = (a = t != null ? t : r == null ? void 0 : r.moduleOverrides) != null ? a : U, n = e({ + ...o + }); + return m.set(e, { + moduleOverrides: o, + modulePromise: n + }), n; +} +function X() { + m = /* @__PURE__ */ new WeakMap(); +} +function Z(e, t) { + m.set(e, { + moduleOverrides: t + }); +} +async function z(e, t, r = d) { + const o = { + ...d, + ...r + }, n = await h(e), { size: a } = t, s = new Uint8Array(await t.arrayBuffer()), u = n._malloc(a); + n.HEAPU8.set(s, u); + const l = n.readBarcodesFromImage( + u, + a, + y(n, o) + ); + n._free(u); + const i = []; + for (let c = 0; c < l.size(); ++c) + i.push( + E(l.get(c)) + ); + return i; +} +async function D(e, t, r = d) { + const o = { + ...d, + ...r + }, n = await h(e), { + data: a, + width: s, + height: u, + data: { byteLength: l } + } = t, i = n._malloc(l); + n.HEAPU8.set(a, i); + const c = n.readBarcodesFromPixmap( + i, + s, + u, + y(n, o) + ); + n._free(i); + const g = []; + for (let f = 0; f < c.size(); ++f) + g.push( + E(c.get(f)) + ); + return g; +} +async function H(e, t, r = S) { + const o = { + ...S, + ...r + }, n = await h(e), a = n.writeBarcodeToImage( + t, + B(n, o) + ); + return A(a); +} +const k = { + ...d, + formats: [...d.formats] +}, N = { ...S }; +export { + D as a, + C as b, + v as c, + k as d, + L as e, + w as f, + h as g, + P as h, + W as i, + N as j, + x as k, + X as p, + z as r, + Z as s, + M as t, + H as w +}; diff --git a/node_modules/zxing-wasm/dist/es/core.d.ts b/node_modules/zxing-wasm/dist/es/core.d.ts new file mode 100644 index 0000000..f3d913d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/core.d.ts @@ -0,0 +1,40 @@ +import { type ReadResult, type ReaderOptions, type WriterOptions, type ZXingBinarizer, type ZXingCharacterSet, type ZXingContentType, type ZXingEanAddOnSymbol, type ZXingReadResult, type ZXingReaderOptions, type ZXingTextMode, type ZXingVector, type ZXingWriteResult, type ZXingWriterOptions } from "./bindings/index.js"; +export type ZXingModuleType = "reader" | "writer" | "full"; +interface ZXingBaseModule extends EmscriptenModule { + CharacterSet: ZXingCharacterSet; +} +/** + * @internal + */ +export interface ZXingReaderModule extends ZXingBaseModule { + Binarizer: ZXingBinarizer; + ContentType: ZXingContentType; + EanAddOnSymbol: ZXingEanAddOnSymbol; + TextMode: ZXingTextMode; + readBarcodesFromImage(bufferPtr: number, bufferLength: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; + readBarcodesFromPixmap(bufferPtr: number, imgWidth: number, imgHeight: number, zxingReaderOptions: ZXingReaderOptions): ZXingVector; +} +/** + * @internal + */ +export interface ZXingWriterModule extends ZXingBaseModule { + writeBarcodeToImage(text: string, zxingWriterOptions: ZXingWriterOptions): ZXingWriteResult; +} +/** + * @internal + */ +export interface ZXingFullModule extends ZXingReaderModule, ZXingWriterModule { +} +export type ZXingModule = T extends "reader" ? ZXingReaderModule : T extends "writer" ? ZXingWriterModule : T extends "full" ? ZXingFullModule : ZXingReaderModule | ZXingWriterModule | ZXingFullModule; +export type ZXingReaderModuleFactory = EmscriptenModuleFactory; +export type ZXingWriterModuleFactory = EmscriptenModuleFactory; +export type ZXingFullModuleFactory = EmscriptenModuleFactory; +export type ZXingModuleFactory = T extends "reader" ? ZXingReaderModuleFactory : T extends "writer" ? ZXingWriterModuleFactory : T extends "full" ? ZXingFullModuleFactory : ZXingReaderModuleFactory | ZXingWriterModuleFactory | ZXingFullModuleFactory; +export type ZXingModuleOverrides = Partial; +export declare function getZXingModuleWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides?: ZXingModuleOverrides): Promise>; +export declare function purgeZXingModule(): void; +export declare function setZXingModuleOverridesWithFactory(zxingModuleFactory: ZXingModuleFactory, zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageDataWithFactory(zxingModuleFactory: ZXingModuleFactory, imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFileWithFactory(zxingModuleFactory: ZXingModuleFactory, text: string, writerOptions?: WriterOptions): Promise; +export {}; diff --git a/node_modules/zxing-wasm/dist/es/full/index.d.ts b/node_modules/zxing-wasm/dist/es/full/index.d.ts new file mode 100644 index 0000000..ae019d0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/full/index.d.ts @@ -0,0 +1,10 @@ +import type { ReaderOptions, WriterOptions } from "../bindings/index.js"; +import { type ZXingFullModule, type ZXingModuleOverrides } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingFullModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/full/index.js b/node_modules/zxing-wasm/dist/es/full/index.js new file mode 100644 index 0000000..9db029d --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/full/index.js @@ -0,0 +1,1646 @@ +import { g as ki, s as Si, r as ji, a as Wi, w as Oi } from "../core-C2hxqLt7.js"; +import { b as Li, c as Zi, e as Gi, f as Xi, d as qi, j as Ki, d as Qi, j as Yi, h as Ji, p as ra, i as ea, t as ta, k as na } from "../core-C2hxqLt7.js"; +var ir = (() => { + var H; + var R = typeof document < "u" && ((H = document.currentScript) == null ? void 0 : H.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(He = {}) { + var Lr, f = He, Zr, ar, Ve = new Promise((r, e) => { + Zr = r, ar = e; + }), Be = typeof window == "object", Ne = typeof Bun < "u", Cr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var Gr = Object.assign({}, f), Xr = "./this.program", j = ""; + function ze(r) { + return f.locateFile ? f.locateFile(r, j) : j + r; + } + var qr, Pr; + if (Be || Cr || Ne) { + var Ar; + Cr ? j = self.location.href : typeof document < "u" && ((Ar = document.currentScript) === null || Ar === void 0 ? void 0 : Ar.tagName.toUpperCase()) === "SCRIPT" && (j = document.currentScript.src), R && (j = R), j.startsWith("blob:") ? j = "" : j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1), Cr && (Pr = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), qr = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + var Le = f.print || console.log.bind(console), Z = f.printErr || console.error.bind(console); + Object.assign(f, Gr), Gr = null, f.arguments && f.arguments, f.thisProgram && (Xr = f.thisProgram); + var or = f.wasmBinary, sr, Kr = !1, W, E, G, K, V, $, Qr, Yr; + function Jr() { + var r = sr.buffer; + f.HEAP8 = W = new Int8Array(r), f.HEAP16 = G = new Int16Array(r), f.HEAPU8 = E = new Uint8Array(r), f.HEAPU16 = K = new Uint16Array(r), f.HEAP32 = V = new Int32Array(r), f.HEAPU32 = $ = new Uint32Array(r), f.HEAPF32 = Qr = new Float32Array(r), f.HEAPF64 = Yr = new Float64Array(r); + } + var re = [], ee = [], te = []; + function Ze() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(qe)), Fr(re); + } + function Ge() { + Fr(ee); + } + function Xe() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(Qe)), Fr(te); + } + function qe(r) { + re.unshift(r); + } + function Ke(r) { + ee.unshift(r); + } + function Qe(r) { + te.unshift(r); + } + var B = 0, Q = null; + function Ye(r) { + var e; + B++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, B); + } + function Je(r) { + var e; + if (B--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, B), B == 0 && Q) { + var t = Q; + Q = null, t(); + } + } + function Er(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", Z(r), Kr = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw ar(t), t; + } + var rt = "data:application/octet-stream;base64,", ne = (r) => r.startsWith(rt); + function et() { + var r = "zxing_full.wasm"; + return ne(r) ? r : ze(r); + } + var ur; + function ie(r) { + if (r == ur && or) + return new Uint8Array(or); + if (Pr) + return Pr(r); + throw "both async and sync fetching of the wasm failed"; + } + function tt(r) { + return or ? Promise.resolve().then(() => ie(r)) : qr(r).then((e) => new Uint8Array(e), () => ie(r)); + } + function ae(r, e, t) { + return tt(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + Z(`failed to asynchronously prepare wasm: ${n}`), Er(n); + }); + } + function nt(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !ne(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((i) => { + var a = WebAssembly.instantiateStreaming(i, t); + return a.then(n, function(s) { + return Z(`wasm streaming compile failed: ${s}`), Z("falling back to ArrayBuffer instantiation"), ae(e, t, n); + }); + }) : ae(e, t, n); + } + function it() { + return { + a: Xn + }; + } + function at() { + var r, e = it(); + function t(i, a) { + return w = i.exports, sr = w.za, Jr(), he = w.Da, Ke(w.Aa), Je(), w; + } + Ye(); + function n(i) { + t(i.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (i) { + Z(`Module.instantiateWasm callback failed with error: ${i}`), ar(i); + } + return (r = ur) !== null && r !== void 0 || (ur = et()), nt(or, ur, e, n).catch(ar), {}; + } + var Fr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var h = (r) => Ee(r), _ = () => Fe(), lr = [], fr = 0, ot = (r) => { + var e = new Rr(r); + return e.get_caught() || (e.set_caught(!0), fr--), e.set_rethrown(!1), lr.push(e), ke(r), Pe(r); + }, D = 0, st = () => { + d(0, 0); + var r = lr.pop(); + Re(r.excPtr), D = 0; + }; + class Rr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + $[this.ptr + 4 >> 2] = e; + } + get_type() { + return $[this.ptr + 4 >> 2]; + } + set_destructor(e) { + $[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return $[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, W[this.ptr + 12] = e; + } + get_caught() { + return W[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, W[this.ptr + 13] = e; + } + get_rethrown() { + return W[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + $[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return $[this.ptr + 16 >> 2]; + } + } + var ut = (r) => { + throw D || (D = r), D; + }, cr = (r) => Ae(r), kr = (r) => { + var e = D; + if (!e) + return cr(0), 0; + var t = new Rr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return cr(0), e; + for (var i of r) { + if (i === 0 || i === n) + break; + var a = t.ptr + 16; + if (Se(i, n, a)) + return cr(i), e; + } + return cr(n), e; + }, lt = () => kr([]), ft = (r) => kr([r]), ct = (r, e) => kr([r, e]), vt = () => { + var r = lr.pop(); + r || Er("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (lr.push(r), r.set_rethrown(!0), r.set_caught(!1), fr++), D = e, D; + }, dt = (r, e, t) => { + var n = new Rr(r); + throw n.init(e, t), D = r, fr++, D; + }, pt = () => fr, ht = () => { + Er(""); + }, vr = {}, Sr = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function Y(r) { + return this.fromWireType($[r >> 2]); + } + var X = {}, N = {}, dr = {}, oe, pr = (r) => { + throw new oe(r); + }, z = (r, e, t) => { + r.forEach((o) => dr[o] = e); + function n(o) { + var u = t(o); + u.length !== r.length && pr("Mismatched type converter count"); + for (var l = 0; l < r.length; ++l) + k(r[l], u[l]); + } + var i = new Array(e.length), a = [], s = 0; + e.forEach((o, u) => { + N.hasOwnProperty(o) ? i[u] = N[o] : (a.push(o), X.hasOwnProperty(o) || (X[o] = []), X[o].push(() => { + i[u] = N[o], ++s, s === a.length && n(i); + })); + }), a.length === 0 && n(i); + }, _t = (r) => { + var e = vr[r]; + delete vr[r]; + var t = e.rawConstructor, n = e.rawDestructor, i = e.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType)); + z([r], a, (s) => { + var o = {}; + return i.forEach((u, l) => { + var c = u.fieldName, v = s[l], p = u.getter, m = u.getterContext, b = s[l + i.length], P = u.setter, T = u.setterContext; + o[c] = { + read: (C) => v.fromWireType(p(m, C)), + write: (C, L) => { + var F = []; + P(T, C, b.toWireType(F, L)), Sr(F); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var l = {}; + for (var c in o) + l[c] = o[c].read(u); + return n(u), l; + }, + toWireType: (u, l) => { + for (var c in o) + if (!(c in l)) + throw new TypeError(`Missing field: "${c}"`); + var v = t(); + for (c in o) + o[c].write(v, l[c]); + return u !== null && u.push(n, v), v; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: n + }]; + }); + }, gt = (r, e, t, n, i) => { + }, yt = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + se = r; + }, se, A = (r) => { + for (var e = "", t = r; E[t]; ) + e += se[E[t++]]; + return e; + }, q, y = (r) => { + throw new q(r); + }; + function mt(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || y(`type "${n}" must have a positive integer typeid pointer`), N.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + y(`Cannot register type '${n}' twice`); + } + if (N[r] = e, delete dr[r], X.hasOwnProperty(r)) { + var i = X[r]; + delete X[r], i.forEach((a) => a()); + } + } + function k(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return mt(r, e, t); + } + var O = 8, $t = (r, e, t, n) => { + e = A(e), k(r, { + name: e, + fromWireType: function(i) { + return !!i; + }, + toWireType: function(i, a) { + return a ? t : n; + }, + argPackAdvance: O, + readValueFromPointer: function(i) { + return this.fromWireType(E[i]); + }, + destructorFunction: null + }); + }, bt = (r) => ({ + count: r.count, + deleteScheduled: r.deleteScheduled, + preservePointerOnDelete: r.preservePointerOnDelete, + ptr: r.ptr, + ptrType: r.ptrType, + smartPtr: r.smartPtr, + smartPtrType: r.smartPtrType + }), jr = (r) => { + function e(t) { + return t.$$.ptrType.registeredClass.name; + } + y(e(r) + " instance already deleted"); + }, Wr = !1, ue = (r) => { + }, wt = (r) => { + r.smartPtr ? r.smartPtrType.rawDestructor(r.smartPtr) : r.ptrType.registeredClass.rawDestructor(r.ptr); + }, le = (r) => { + r.count.value -= 1; + var e = r.count.value === 0; + e && wt(r); + }, fe = (r, e, t) => { + if (e === t) + return r; + if (t.baseClass === void 0) + return null; + var n = fe(r, e, t.baseClass); + return n === null ? null : t.downcast(n); + }, ce = {}, Tt = {}, Ct = (r, e) => { + for (e === void 0 && y("ptr should not be undefined"); r.baseClass; ) + e = r.upcast(e), r = r.baseClass; + return e; + }, Pt = (r, e) => (e = Ct(r, e), Tt[e]), hr = (r, e) => { + (!e.ptrType || !e.ptr) && pr("makeClassHandle requires ptr and ptrType"); + var t = !!e.smartPtrType, n = !!e.smartPtr; + return t !== n && pr("Both smartPtrType and smartPtr must be specified"), e.count = { + value: 1 + }, J(Object.create(r, { + $$: { + value: e, + writable: !0 + } + })); + }; + function At(r) { + var e = this.getPointee(r); + if (!e) + return this.destructor(r), null; + var t = Pt(this.registeredClass, e); + if (t !== void 0) { + if (t.$$.count.value === 0) + return t.$$.ptr = e, t.$$.smartPtr = r, t.clone(); + var n = t.clone(); + return this.destructor(r), n; + } + function i() { + return this.isSmartPointer ? hr(this.registeredClass.instancePrototype, { + ptrType: this.pointeeType, + ptr: e, + smartPtrType: this, + smartPtr: r + }) : hr(this.registeredClass.instancePrototype, { + ptrType: this, + ptr: r + }); + } + var a = this.registeredClass.getActualType(e), s = ce[a]; + if (!s) + return i.call(this); + var o; + this.isConst ? o = s.constPointerType : o = s.pointerType; + var u = fe(e, this.registeredClass, o.registeredClass); + return u === null ? i.call(this) : this.isSmartPointer ? hr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u, + smartPtrType: this, + smartPtr: r + }) : hr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u + }); + } + var J = (r) => typeof FinalizationRegistry > "u" ? (J = (e) => e, r) : (Wr = new FinalizationRegistry((e) => { + le(e.$$); + }), J = (e) => { + var t = e.$$, n = !!t.smartPtr; + if (n) { + var i = { + $$: t + }; + Wr.register(e, i, e); + } + return e; + }, ue = (e) => Wr.unregister(e), J(r)), _r = [], Et = () => { + for (; _r.length; ) { + var r = _r.pop(); + r.$$.deleteScheduled = !1, r.delete(); + } + }, ve, Ft = () => { + Object.assign(gr.prototype, { + isAliasOf(r) { + if (!(this instanceof gr) || !(r instanceof gr)) + return !1; + var e = this.$$.ptrType.registeredClass, t = this.$$.ptr; + r.$$ = r.$$; + for (var n = r.$$.ptrType.registeredClass, i = r.$$.ptr; e.baseClass; ) + t = e.upcast(t), e = e.baseClass; + for (; n.baseClass; ) + i = n.upcast(i), n = n.baseClass; + return e === n && t === i; + }, + clone() { + if (this.$$.ptr || jr(this), this.$$.preservePointerOnDelete) + return this.$$.count.value += 1, this; + var r = J(Object.create(Object.getPrototypeOf(this), { + $$: { + value: bt(this.$$) + } + })); + return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r; + }, + delete() { + this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), ue(this), le(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); + }, + isDeleted() { + return !this.$$.ptr; + }, + deleteLater() { + return this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), _r.push(this), _r.length === 1 && ve && ve(Et), this.$$.deleteScheduled = !0, this; + } + }); + }; + function gr() { + } + var rr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), de = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++) + a[s] = arguments[s]; + return r[e].overloadTable.hasOwnProperty(a.length) || y(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[a.length].apply(this, a); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Or = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), de(f, r, r), f.hasOwnProperty(t) && y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[r].overloadTable[t] = e) : (f[r] = e, t !== void 0 && (f[r].numArguments = t)); + }, Rt = 48, kt = 57, St = (r) => { + r = r.replace(/[^a-zA-Z0-9_]/g, "$"); + var e = r.charCodeAt(0); + return e >= Rt && e <= kt ? `_${r}` : r; + }; + function jt(r, e, t, n, i, a, s, o) { + this.name = r, this.constructor = e, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; + } + var Dr = (r, e, t) => { + for (; e !== t; ) + e.upcast || y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`), r = e.upcast(r), e = e.baseClass; + return r; + }; + function Wt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + function Ot(r, e) { + var t; + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), r !== null && r.push(this.rawDestructor, t), t) : 0; + (!e || !e.$$) && y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + var n = e.$$.ptrType.registeredClass; + if (t = Dr(e.$$.ptr, n, this.registeredClass), this.isSmartPointer) + switch (e.$$.smartPtr === void 0 && y("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { + case 0: + e.$$.smartPtrType === this ? t = e.$$.smartPtr : y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + break; + case 1: + t = e.$$.smartPtr; + break; + case 2: + if (e.$$.smartPtrType === this) + t = e.$$.smartPtr; + else { + var i = e.clone(); + t = this.rawShare(t, x.toHandle(() => i.delete())), r !== null && r.push(this.rawDestructor, t); + } + break; + default: + y("Unsupporting sharing policy"); + } + return t; + } + function Dt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + var Ut = () => { + Object.assign(yr.prototype, { + getPointee(r) { + return this.rawGetPointee && (r = this.rawGetPointee(r)), r; + }, + destructor(r) { + var e; + (e = this.rawDestructor) === null || e === void 0 || e.call(this, r); + }, + argPackAdvance: O, + readValueFromPointer: Y, + fromWireType: At + }); + }; + function yr(r, e, t, n, i, a, s, o, u, l, c) { + this.name = r, this.registeredClass = e, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = c, !i && e.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = Dt, this.destructorFunction = null) : this.toWireType = Ot; + } + var pe = (r, e, t) => { + f.hasOwnProperty(r) || pr("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, xt = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, mr = [], he, g = (r) => { + var e = mr[r]; + return e || (r >= mr.length && (mr.length = r + 1), mr[r] = e = he.get(r)), e; + }, It = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return xt(r, e, t); + var n = g(e)(...t); + return n; + }, Mt = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) + n[i] = arguments[i]; + return It(r, e, n); + }, S = (r, e) => { + r = A(r); + function t() { + return r.includes("j") ? Mt(r, e) : g(e); + } + var n = t(); + return typeof n != "function" && y(`unknown function pointer with signature ${r}: ${e}`), n; + }, Ht = (r, e) => { + var t = rr(e, function(n) { + this.name = e, this.message = n; + var i = new Error(n).stack; + i !== void 0 && (this.stack = this.toString() + ` +` + i.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, _e, ge = (r) => { + var e = Ce(r), t = A(e); + return I(e), t; + }, $r = (r, e) => { + var t = [], n = {}; + function i(a) { + if (!n[a] && !N[a]) { + if (dr[a]) { + dr[a].forEach(i); + return; + } + t.push(a), n[a] = !0; + } + } + throw e.forEach(i), new _e(`${r}: ` + t.map(ge).join([", "])); + }, Vt = (r, e, t, n, i, a, s, o, u, l, c, v, p) => { + c = A(c), a = S(i, a), o && (o = S(s, o)), l && (l = S(u, l)), p = S(v, p); + var m = St(c); + Or(m, function() { + $r(`Cannot construct ${c} due to unbound types`, [n]); + }), z([r, e, t], n ? [n] : [], (b) => { + b = b[0]; + var P, T; + n ? (P = b.registeredClass, T = P.instancePrototype) : T = gr.prototype; + var C = rr(c, function() { + if (Object.getPrototypeOf(this) !== L) + throw new q("Use 'new' to construct " + c); + if (F.constructor_body === void 0) + throw new q(c + " has no accessible constructor"); + for (var Ie = arguments.length, wr = new Array(Ie), Tr = 0; Tr < Ie; Tr++) + wr[Tr] = arguments[Tr]; + var Me = F.constructor_body[wr.length]; + if (Me === void 0) + throw new q(`Tried to invoke ctor of ${c} with invalid number of parameters (${wr.length}) - expected (${Object.keys(F.constructor_body).toString()}) parameters instead!`); + return Me.apply(this, wr); + }), L = Object.create(T, { + constructor: { + value: C + } + }); + C.prototype = L; + var F = new jt(c, C, L, p, P, a, o, l); + if (F.baseClass) { + var M, nr; + (nr = (M = F.baseClass).__derivedClasses) !== null && nr !== void 0 || (M.__derivedClasses = []), F.baseClass.__derivedClasses.push(F); + } + var Ri = new yr(c, F, !0, !1, !1), Ue = new yr(c + "*", F, !1, !1, !1), xe = new yr(c + " const*", F, !1, !0, !1); + return ce[r] = { + pointerType: Ue, + constPointerType: xe + }, pe(m, C), [Ri, Ue, xe]; + }); + }, Ur = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push($[e + n * 4 >> 2]); + return t; + }; + function Bt(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function xr(r, e, t, n, i, a) { + var s = e.length; + s < 2 && y("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var o = e[1] !== null && t !== null, u = Bt(e), l = e[0].name !== "void", c = s - 2, v = new Array(c), p = [], m = [], b = function() { + m.length = 0; + var P; + p.length = o ? 2 : 1, p[0] = i, o && (P = e[1].toWireType(m, this), p[1] = P); + for (var T = 0; T < c; ++T) + v[T] = e[T + 2].toWireType(m, T < 0 || arguments.length <= T ? void 0 : arguments[T]), p.push(v[T]); + var C = n(...p); + function L(F) { + if (u) + Sr(m); + else + for (var M = o ? 1 : 2; M < e.length; M++) { + var nr = M === 1 ? P : v[M - 2]; + e[M].destructorFunction !== null && e[M].destructorFunction(nr); + } + if (l) + return e[0].fromWireType(F); + } + return L(C); + }; + return rr(r, b); + } + var Nt = (r, e, t, n, i, a) => { + var s = Ur(e, t); + i = S(n, i), z([], [r], (o) => { + o = o[0]; + var u = `constructor ${o.name}`; + if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[e - 1] !== void 0) + throw new q(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`); + return o.registeredClass.constructor_body[e - 1] = () => { + $r(`Cannot construct ${o.name} due to unbound types`, s); + }, z([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[e - 1] = xr(u, l, null, i, a), [])), []; + }); + }, ye = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, zt = (r, e, t, n, i, a, s, o, u, l) => { + var c = Ur(t, n); + e = A(e), e = ye(e), a = S(i, a), z([], [r], (v) => { + v = v[0]; + var p = `${v.name}.${e}`; + e.startsWith("@@") && (e = Symbol[e.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(e); + function m() { + $r(`Cannot call ${p} due to unbound types`, c); + } + var b = v.registeredClass.instancePrototype, P = b[e]; + return P === void 0 || P.overloadTable === void 0 && P.className !== v.name && P.argCount === t - 2 ? (m.argCount = t - 2, m.className = v.name, b[e] = m) : (de(b, e, p), b[e].overloadTable[t - 2] = m), z([], c, (T) => { + var C = xr(p, T, v, a, s); + return b[e].overloadTable === void 0 ? (C.argCount = t - 2, b[e] = C) : b[e].overloadTable[t - 2] = C, []; + }), []; + }); + }, Ir = [], U = [], Mr = (r) => { + r > 9 && --U[r + 1] === 0 && (U[r] = void 0, Ir.push(r)); + }, Lt = () => U.length / 2 - 5 - Ir.length, Zt = () => { + U.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = Lt; + }, x = { + toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), U[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = Ir.pop() || U.length; + return U[e] = r, U[e + 1] = 1, e; + } + } + } + }, me = { + name: "emscripten::val", + fromWireType: (r) => { + var e = x.toValue(r); + return Mr(r), e; + }, + toWireType: (r, e) => x.toHandle(e), + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: null + }, Gt = (r) => k(r, me), Xt = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(W[n]); + } : function(n) { + return this.fromWireType(E[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(G[n >> 1]); + } : function(n) { + return this.fromWireType(K[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(V[n >> 2]); + } : function(n) { + return this.fromWireType($[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, qt = (r, e, t, n) => { + e = A(e); + function i() { + } + i.values = {}, k(r, { + name: e, + constructor: i, + fromWireType: function(a) { + return this.constructor.values[a]; + }, + toWireType: (a, s) => s.value, + argPackAdvance: O, + readValueFromPointer: Xt(e, t, n), + destructorFunction: null + }), Or(e, i); + }, Hr = (r, e) => { + var t = N[r]; + return t === void 0 && y(`${e} has unknown type ${ge(r)}`), t; + }, Kt = (r, e, t) => { + var n = Hr(r, "enum"); + e = A(e); + var i = n.constructor, a = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: rr(`${n.name}_${e}`, function() { + }) + } + }); + i.values[t] = a, i[e] = a; + }, Vr = (r) => { + if (r === null) + return "null"; + var e = typeof r; + return e === "object" || e === "array" || e === "function" ? r.toString() : "" + r; + }, Qt = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Qr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Yr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Yt = (r, e, t) => { + e = A(e), k(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, i) => i, + argPackAdvance: O, + readValueFromPointer: Qt(e, t), + destructorFunction: null + }); + }, Jt = (r, e, t, n, i, a, s, o) => { + var u = Ur(e, t); + r = A(r), r = ye(r), i = S(n, i), Or(r, function() { + $r(`Cannot call ${r} due to unbound types`, u); + }, e - 1), z([], u, (l) => { + var c = [l[0], null].concat(l.slice(1)); + return pe(r, xr(r, c, null, i, a), e - 1), []; + }); + }, rn = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => W[n] : (n) => E[n]; + case 2: + return t ? (n) => G[n >> 1] : (n) => K[n >> 1]; + case 4: + return t ? (n) => V[n >> 2] : (n) => $[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, en = (r, e, t, n, i) => { + e = A(e); + var a = (c) => c; + if (n === 0) { + var s = 32 - 8 * t; + a = (c) => c << s >>> s; + } + var o = e.includes("unsigned"), u = (c, v) => { + }, l; + o ? l = function(c, v) { + return u(v, this.name), v >>> 0; + } : l = function(c, v) { + return u(v, this.name), v; + }, k(r, { + name: e, + fromWireType: a, + toWireType: l, + argPackAdvance: O, + readValueFromPointer: rn(e, t, n !== 0), + destructorFunction: null + }); + }, tn = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[e]; + function a(s) { + var o = $[s >> 2], u = $[s + 4 >> 2]; + return new i(W.buffer, u, o); + } + t = A(t), k(r, { + name: t, + fromWireType: a, + argPackAdvance: O, + readValueFromPointer: a + }, { + ignoreDuplicateRegistrations: !0 + }); + }, nn = Object.assign({ + optional: !0 + }, me), an = (r, e) => { + k(r, nn); + }, on = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var i = t, a = t + n - 1, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (o <= 127) { + if (t >= a) break; + e[t++] = o; + } else if (o <= 2047) { + if (t + 1 >= a) break; + e[t++] = 192 | o >> 6, e[t++] = 128 | o & 63; + } else if (o <= 65535) { + if (t + 2 >= a) break; + e[t++] = 224 | o >> 12, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } else { + if (t + 3 >= a) break; + e[t++] = 240 | o >> 18, e[t++] = 128 | o >> 12 & 63, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } + } + return e[t] = 0, t - i; + }, er = (r, e, t) => on(r, E, e, t), sn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, $e = typeof TextDecoder < "u" ? new TextDecoder() : void 0, be = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, i = e; r[i] && !(i >= n); ) ++i; + if (i - e > 16 && r.buffer && $e) + return $e.decode(r.subarray(e, i)); + for (var a = ""; e < i; ) { + var s = r[e++]; + if (!(s & 128)) { + a += String.fromCharCode(s); + continue; + } + var o = r[e++] & 63; + if ((s & 224) == 192) { + a += String.fromCharCode((s & 31) << 6 | o); + continue; + } + var u = r[e++] & 63; + if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | r[e++] & 63, s < 65536) + a += String.fromCharCode(s); + else { + var l = s - 65536; + a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023); + } + } + return a; + }, un = (r, e) => r ? be(E, r, e) : "", ln = (r, e) => { + e = A(e); + var t = e === "std::string"; + k(r, { + name: e, + fromWireType(n) { + var i = $[n >> 2], a = n + 4, s; + if (t) + for (var o = a, u = 0; u <= i; ++u) { + var l = a + u; + if (u == i || E[l] == 0) { + var c = l - o, v = un(o, c); + s === void 0 ? s = v : (s += "\0", s += v), o = l + 1; + } + } + else { + for (var p = new Array(i), u = 0; u < i; ++u) + p[u] = String.fromCharCode(E[a + u]); + s = p.join(""); + } + return I(n), s; + }, + toWireType(n, i) { + i instanceof ArrayBuffer && (i = new Uint8Array(i)); + var a, s = typeof i == "string"; + s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? a = sn(i) : a = i.length; + var o = zr(4 + a + 1), u = o + 4; + if ($[o >> 2] = a, t && s) + er(i, u, a + 1); + else if (s) + for (var l = 0; l < a; ++l) { + var c = i.charCodeAt(l); + c > 255 && (I(u), y("String has UTF-16 code units that do not fit in 8 bits")), E[u + l] = c; + } + else + for (var l = 0; l < a; ++l) + E[u + l] = i[l]; + return n !== null && n.push(I, o), o; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(n) { + I(n); + } + }); + }, we = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, fn = (r, e) => { + for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && K[n]; ) ++n; + if (t = n << 1, t - r > 32 && we) return we.decode(E.subarray(r, t)); + for (var a = "", s = 0; !(s >= e / 2); ++s) { + var o = G[r + s * 2 >> 1]; + if (o == 0) break; + a += String.fromCharCode(o); + } + return a; + }, cn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var i = e, a = t < r.length * 2 ? t / 2 : r.length, s = 0; s < a; ++s) { + var o = r.charCodeAt(s); + G[e >> 1] = o, e += 2; + } + return G[e >> 1] = 0, e - i; + }, vn = (r) => r.length * 2, dn = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var i = V[r + t * 4 >> 2]; + if (i == 0) break; + if (++t, i >= 65536) { + var a = i - 65536; + n += String.fromCharCode(55296 | a >> 10, 56320 | a & 1023); + } else + n += String.fromCharCode(i); + } + return n; + }, pn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var i = e, a = i + t - 4, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (V[e >> 2] = o, e += 4, e + 4 > a) break; + } + return V[e >> 2] = 0, e - i; + }, hn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, _n = (r, e, t) => { + t = A(t); + var n, i, a, s; + e === 2 ? (n = fn, i = cn, s = vn, a = (o) => K[o >> 1]) : e === 4 && (n = dn, i = pn, s = hn, a = (o) => $[o >> 2]), k(r, { + name: t, + fromWireType: (o) => { + for (var u = $[o >> 2], l, c = o + 4, v = 0; v <= u; ++v) { + var p = o + 4 + v * e; + if (v == u || a(p) == 0) { + var m = p - c, b = n(c, m); + l === void 0 ? l = b : (l += "\0", l += b), c = p + e; + } + } + return I(o), l; + }, + toWireType: (o, u) => { + typeof u != "string" && y(`Cannot pass non-string to C++ string type ${t}`); + var l = s(u), c = zr(4 + l + e); + return $[c >> 2] = l / e, i(u, c + 4, l + e), o !== null && o.push(I, c), c; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(o) { + I(o); + } + }); + }, gn = (r, e, t, n, i, a) => { + vr[r] = { + name: A(e), + rawConstructor: S(t, n), + rawDestructor: S(i, a), + fields: [] + }; + }, yn = (r, e, t, n, i, a, s, o, u, l) => { + vr[r].fields.push({ + fieldName: A(e), + getterReturnType: t, + getter: S(n, i), + getterContext: a, + setterArgumentType: s, + setter: S(o, u), + setterContext: l + }); + }, mn = (r, e) => { + e = A(e), k(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $n = (r, e, t) => E.copyWithin(r, e, e + t), Br = [], bn = (r, e, t, n) => (r = Br[r], e = x.toValue(e), r(null, e, t, n)), wn = {}, Tn = (r) => { + var e = wn[r]; + return e === void 0 ? A(r) : e; + }, Te = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Cn = (r) => r === 0 ? x.toHandle(Te()) : (r = Tn(r), x.toHandle(Te()[r])), Pn = (r) => { + var e = Br.length; + return Br.push(r), e; + }, An = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Hr($[e + n * 4 >> 2], "parameter " + n); + return t; + }, En = Reflect.construct, Fn = (r, e, t) => { + var n = [], i = r.toWireType(n, t); + return n.length && ($[e >> 2] = x.toHandle(n)), i; + }, Rn = (r, e, t) => { + var n = An(r, e), i = n.shift(); + r--; + var a = new Array(r), s = (u, l, c, v) => { + for (var p = 0, m = 0; m < r; ++m) + a[m] = n[m].readValueFromPointer(v + p), p += n[m].argPackAdvance; + var b = t === 1 ? En(l, a) : l.apply(u, a); + return Fn(i, c, b); + }, o = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${i.name}>`; + return Pn(rr(o, s)); + }, kn = (r) => { + r > 9 && (U[r + 1] += 1); + }, Sn = (r) => { + var e = x.toValue(r); + Sr(e), Mr(r); + }, jn = (r, e) => { + r = Hr(r, "_emval_take_value"); + var t = r.readValueFromPointer(e); + return x.toHandle(t); + }, Wn = (r, e, t, n) => { + var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), s = new Date(i, 6, 1), o = a.getTimezoneOffset(), u = s.getTimezoneOffset(), l = Math.max(o, u); + $[r >> 2] = l * 60, V[e >> 2] = +(o != u); + var c = (m) => { + var b = m >= 0 ? "-" : "+", P = Math.abs(m), T = String(Math.floor(P / 60)).padStart(2, "0"), C = String(P % 60).padStart(2, "0"); + return `UTC${b}${T}${C}`; + }, v = c(o), p = c(u); + u < o ? (er(v, t, 17), er(p, n, 17)) : (er(v, n, 17), er(p, t, 17)); + }, On = () => 2147483648, Dn = (r, e) => Math.ceil(r / e) * e, Un = (r) => { + var e = sr.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return sr.grow(t), Jr(), 1; + } catch { + } + }, xn = (r) => { + var e = E.length; + r >>>= 0; + var t = On(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var i = e * (1 + 0.2 / n); + i = Math.min(i, r + 100663296); + var a = Math.min(t, Dn(Math.max(r, i), 65536)), s = Un(a); + if (s) + return !0; + } + return !1; + }, Nr = {}, In = () => Xr || "./this.program", tr = () => { + if (!tr.strings) { + var r = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { + USER: "web_user", + LOGNAME: "web_user", + PATH: "/", + PWD: "/", + HOME: "/home/web_user", + LANG: r, + _: In() + }; + for (var t in Nr) + Nr[t] === void 0 ? delete e[t] : e[t] = Nr[t]; + var n = []; + for (var t in e) + n.push(`${t}=${e[t]}`); + tr.strings = n; + } + return tr.strings; + }, Mn = (r, e) => { + for (var t = 0; t < r.length; ++t) + W[e++] = r.charCodeAt(t); + W[e] = 0; + }, Hn = (r, e) => { + var t = 0; + return tr().forEach((n, i) => { + var a = e + t; + $[r + i * 4 >> 2] = a, Mn(n, a), t += n.length + 1; + }), 0; + }, Vn = (r, e) => { + var t = tr(); + $[r >> 2] = t.length; + var n = 0; + return t.forEach((i) => n += i.length + 1), $[e >> 2] = n, 0; + }, Bn = (r) => 52; + function Nn(r, e, t, n, i) { + return 70; + } + var zn = [null, [], []], Ln = (r, e) => { + var t = zn[r]; + e === 0 || e === 10 ? ((r === 1 ? Le : Z)(be(t)), t.length = 0) : t.push(e); + }, Zn = (r, e, t, n) => { + for (var i = 0, a = 0; a < t; a++) { + var s = $[e >> 2], o = $[e + 4 >> 2]; + e += 8; + for (var u = 0; u < o; u++) + Ln(r, E[s + u]); + i += o; + } + return $[n >> 2] = i, 0; + }, Gn = (r) => r; + oe = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, yt(), q = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, Ft(), Ut(), _e = f.UnboundTypeError = Ht(Error, "UnboundTypeError"), Zt(); + var Xn = { + t: ot, + x: st, + a: lt, + j: ft, + k: ct, + Q: vt, + r: dt, + ia: pt, + d: ut, + ea: ht, + wa: _t, + da: gt, + qa: $t, + ua: Vt, + ta: Nt, + G: zt, + pa: Gt, + H: qt, + q: Kt, + Y: Yt, + S: Jt, + z: en, + v: tn, + va: an, + W: ln, + R: _n, + E: gn, + xa: yn, + ra: mn, + la: $n, + V: bn, + ya: Mr, + _: Cn, + X: Rn, + Z: kn, + $: Sn, + sa: jn, + fa: Wn, + ja: xn, + ga: Hn, + ha: Vn, + ka: Bn, + ba: Nn, + U: Zn, + L: hi, + D: gi, + N: Jn, + T: Ci, + s: ci, + b: qn, + F: pi, + na: mi, + c: ei, + ma: $i, + i: Yn, + h: oi, + n: si, + P: di, + w: ui, + K: wi, + M: vi, + B: yi, + J: Pi, + ca: Ei, + aa: Fi, + m: ti, + g: ri, + e: Qn, + f: Kn, + O: Ti, + l: ii, + oa: _i, + o: ni, + u: li, + y: fi, + C: bi, + p: ai, + I: Ai, + A: Gn + }, w = at(), Ce = (r) => (Ce = w.Ba)(r), I = f._free = (r) => (I = f._free = w.Ca)(r), zr = f._malloc = (r) => (zr = f._malloc = w.Ea)(r), Pe = (r) => (Pe = w.Fa)(r), d = (r, e) => (d = w.Ga)(r, e), Ae = (r) => (Ae = w.Ha)(r), Ee = (r) => (Ee = w.Ia)(r), Fe = () => (Fe = w.Ja)(), Re = (r) => (Re = w.Ka)(r), ke = (r) => (ke = w.La)(r), Se = (r, e, t) => (Se = w.Ma)(r, e, t); + f.dynCall_viijii = (r, e, t, n, i, a, s) => (f.dynCall_viijii = w.Na)(r, e, t, n, i, a, s); + var je = f.dynCall_jiii = (r, e, t, n) => (je = f.dynCall_jiii = w.Oa)(r, e, t, n); + f.dynCall_jiji = (r, e, t, n, i) => (f.dynCall_jiji = w.Pa)(r, e, t, n, i); + var We = f.dynCall_jiiii = (r, e, t, n, i) => (We = f.dynCall_jiiii = w.Qa)(r, e, t, n, i); + f.dynCall_iiiiij = (r, e, t, n, i, a, s) => (f.dynCall_iiiiij = w.Ra)(r, e, t, n, i, a, s), f.dynCall_iiiiijj = (r, e, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = w.Sa)(r, e, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (r, e, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = w.Ta)(r, e, t, n, i, a, s, o, u, l); + function qn(r, e) { + var t = _(); + try { + return g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function Kn(r, e, t, n) { + var i = _(); + try { + g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Qn(r, e, t) { + var n = _(); + try { + g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function Yn(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Jn(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ri(r, e) { + var t = _(); + try { + g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function ei(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function ti(r) { + var e = _(); + try { + g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function ni(r, e, t, n, i, a) { + var s = _(); + try { + g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ii(r, e, t, n, i) { + var a = _(); + try { + g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ai(r, e, t, n, i, a, s, o, u, l, c) { + var v = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c); + } catch (p) { + if (h(v), p !== p + 0) throw p; + d(1, 0); + } + } + function oi(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function si(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ui(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function li(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function fi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function ci(r) { + var e = _(); + try { + return g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function vi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + return g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function di(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function pi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function hi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function _i(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function gi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function yi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function mi(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function $i(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function bi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function wi(r, e, t, n, i, a, s, o) { + var u = _(); + try { + return g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function Ti(r, e, t, n, i, a, s) { + var o = _(); + try { + g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function Ci(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Pi(r, e, t, n, i, a, s, o, u, l, c, v) { + var p = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l, c, v); + } catch (m) { + if (h(p), m !== m + 0) throw m; + d(1, 0); + } + } + function Ai(r, e, t, n, i, a, s, o, u, l, c, v, p, m, b, P) { + var T = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c, v, p, m, b, P); + } catch (C) { + if (h(T), C !== C + 0) throw C; + d(1, 0); + } + } + function Ei(r, e, t, n) { + var i = _(); + try { + return je(r, e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Fi(r, e, t, n, i) { + var a = _(); + try { + return We(r, e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + var br, Oe; + Q = function r() { + br || De(), br || (Q = r); + }; + function De() { + if (B > 0 || !Oe && (Oe = 1, Ze(), B > 0)) + return; + function r() { + var e; + br || (br = 1, f.calledRun = 1, !Kr && (Ge(), Zr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), Xe())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return De(), Lr = Ve, Lr; + }; +})(); +function Ii(R) { + return ki( + ir, + R + ); +} +function Mi(R) { + return Si( + ir, + R + ); +} +async function Hi(R, H) { + return ji( + ir, + R, + H + ); +} +async function Vi(R, H) { + return Wi( + ir, + R, + H + ); +} +async function Bi(R, H) { + return Oi( + ir, + R, + H + ); +} +export { + Li as barcodeFormats, + Zi as binarizers, + Gi as characterSets, + Xi as contentTypes, + qi as defaultDecodeHints, + Ki as defaultEncodeHints, + Qi as defaultReaderOptions, + Yi as defaultWriterOptions, + Ji as eanAddOnSymbols, + Ii as getZXingModule, + ra as purgeZXingModule, + Vi as readBarcodesFromImageData, + Hi as readBarcodesFromImageFile, + ea as readOutputEccLevels, + Mi as setZXingModuleOverrides, + ta as textModes, + Bi as writeBarcodeToImageFile, + na as writeInputEccLevels +}; diff --git a/node_modules/zxing-wasm/dist/es/reader/index.d.ts b/node_modules/zxing-wasm/dist/es/reader/index.d.ts new file mode 100644 index 0000000..2d31960 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/reader/index.d.ts @@ -0,0 +1,8 @@ +import type { ReaderOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingReaderModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function readBarcodesFromImageFile(imageFile: Blob, readerOptions?: ReaderOptions): Promise; +export declare function readBarcodesFromImageData(imageData: ImageData, readerOptions?: ReaderOptions): Promise; +export * from "../bindings/exposedReaderBindings.js"; +export { purgeZXingModule, type ZXingReaderModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/reader/index.js b/node_modules/zxing-wasm/dist/es/reader/index.js new file mode 100644 index 0000000..a78b7c9 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/reader/index.js @@ -0,0 +1,1635 @@ +import { g as ki, s as Si, r as ji, a as Wi } from "../core-C2hxqLt7.js"; +import { b as Ni, c as zi, e as Li, f as Zi, d as Gi, d as Xi, h as qi, p as Ki, i as Qi, t as Yi } from "../core-C2hxqLt7.js"; +var Cr = (() => { + var L; + var S = typeof document < "u" && ((L = document.currentScript) == null ? void 0 : L.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(He = {}) { + var Lr, f = He, Zr, ir, Ve = new Promise((r, e) => { + Zr = r, ir = e; + }), Be = typeof window == "object", Ne = typeof Bun < "u", Tr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var Gr = Object.assign({}, f), Xr = "./this.program", j = ""; + function ze(r) { + return f.locateFile ? f.locateFile(r, j) : j + r; + } + var qr, Pr; + if (Be || Tr || Ne) { + var Ar; + Tr ? j = self.location.href : typeof document < "u" && ((Ar = document.currentScript) === null || Ar === void 0 ? void 0 : Ar.tagName.toUpperCase()) === "SCRIPT" && (j = document.currentScript.src), S && (j = S), j.startsWith("blob:") ? j = "" : j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1), Tr && (Pr = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), qr = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + var Le = f.print || console.log.bind(console), Z = f.printErr || console.error.bind(console); + Object.assign(f, Gr), Gr = null, f.arguments && f.arguments, f.thisProgram && (Xr = f.thisProgram); + var ar = f.wasmBinary, or, Kr = !1, W, E, G, K, H, $, Qr, Yr; + function Jr() { + var r = or.buffer; + f.HEAP8 = W = new Int8Array(r), f.HEAP16 = G = new Int16Array(r), f.HEAPU8 = E = new Uint8Array(r), f.HEAPU16 = K = new Uint16Array(r), f.HEAP32 = H = new Int32Array(r), f.HEAPU32 = $ = new Uint32Array(r), f.HEAPF32 = Qr = new Float32Array(r), f.HEAPF64 = Yr = new Float64Array(r); + } + var re = [], ee = [], te = []; + function Ze() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(qe)), Fr(re); + } + function Ge() { + Fr(ee); + } + function Xe() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(Qe)), Fr(te); + } + function qe(r) { + re.unshift(r); + } + function Ke(r) { + ee.unshift(r); + } + function Qe(r) { + te.unshift(r); + } + var V = 0, Q = null; + function Ye(r) { + var e; + V++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, V); + } + function Je(r) { + var e; + if (V--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, V), V == 0 && Q) { + var t = Q; + Q = null, t(); + } + } + function Er(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", Z(r), Kr = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw ir(t), t; + } + var rt = "data:application/octet-stream;base64,", ne = (r) => r.startsWith(rt); + function et() { + var r = "zxing_reader.wasm"; + return ne(r) ? r : ze(r); + } + var sr; + function ie(r) { + if (r == sr && ar) + return new Uint8Array(ar); + if (Pr) + return Pr(r); + throw "both async and sync fetching of the wasm failed"; + } + function tt(r) { + return ar ? Promise.resolve().then(() => ie(r)) : qr(r).then((e) => new Uint8Array(e), () => ie(r)); + } + function ae(r, e, t) { + return tt(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + Z(`failed to asynchronously prepare wasm: ${n}`), Er(n); + }); + } + function nt(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !ne(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((i) => { + var a = WebAssembly.instantiateStreaming(i, t); + return a.then(n, function(s) { + return Z(`wasm streaming compile failed: ${s}`), Z("falling back to ArrayBuffer instantiation"), ae(e, t, n); + }); + }) : ae(e, t, n); + } + function it() { + return { + a: Xn + }; + } + function at() { + var r, e = it(); + function t(i, a) { + return w = i.exports, or = w.za, Jr(), he = w.Da, Ke(w.Aa), Je(), w; + } + Ye(); + function n(i) { + t(i.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (i) { + Z(`Module.instantiateWasm callback failed with error: ${i}`), ir(i); + } + return (r = sr) !== null && r !== void 0 || (sr = et()), nt(ar, sr, e, n).catch(ir), {}; + } + var Fr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var h = (r) => Ee(r), _ = () => Fe(), ur = [], lr = 0, ot = (r) => { + var e = new Rr(r); + return e.get_caught() || (e.set_caught(!0), lr--), e.set_rethrown(!1), ur.push(e), ke(r), Pe(r); + }, D = 0, st = () => { + d(0, 0); + var r = ur.pop(); + Re(r.excPtr), D = 0; + }; + class Rr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + $[this.ptr + 4 >> 2] = e; + } + get_type() { + return $[this.ptr + 4 >> 2]; + } + set_destructor(e) { + $[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return $[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, W[this.ptr + 12] = e; + } + get_caught() { + return W[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, W[this.ptr + 13] = e; + } + get_rethrown() { + return W[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + $[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return $[this.ptr + 16 >> 2]; + } + } + var ut = (r) => { + throw D || (D = r), D; + }, fr = (r) => Ae(r), kr = (r) => { + var e = D; + if (!e) + return fr(0), 0; + var t = new Rr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return fr(0), e; + for (var i of r) { + if (i === 0 || i === n) + break; + var a = t.ptr + 16; + if (Se(i, n, a)) + return fr(i), e; + } + return fr(n), e; + }, lt = () => kr([]), ft = (r) => kr([r]), ct = (r, e) => kr([r, e]), vt = () => { + var r = ur.pop(); + r || Er("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (ur.push(r), r.set_rethrown(!0), r.set_caught(!1), lr++), D = e, D; + }, dt = (r, e, t) => { + var n = new Rr(r); + throw n.init(e, t), D = r, lr++, D; + }, pt = () => lr, ht = () => { + Er(""); + }, cr = {}, Sr = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function Y(r) { + return this.fromWireType($[r >> 2]); + } + var X = {}, B = {}, vr = {}, oe, dr = (r) => { + throw new oe(r); + }, N = (r, e, t) => { + r.forEach((o) => vr[o] = e); + function n(o) { + var u = t(o); + u.length !== r.length && dr("Mismatched type converter count"); + for (var l = 0; l < r.length; ++l) + R(r[l], u[l]); + } + var i = new Array(e.length), a = [], s = 0; + e.forEach((o, u) => { + B.hasOwnProperty(o) ? i[u] = B[o] : (a.push(o), X.hasOwnProperty(o) || (X[o] = []), X[o].push(() => { + i[u] = B[o], ++s, s === a.length && n(i); + })); + }), a.length === 0 && n(i); + }, _t = (r) => { + var e = cr[r]; + delete cr[r]; + var t = e.rawConstructor, n = e.rawDestructor, i = e.fields, a = i.map((s) => s.getterReturnType).concat(i.map((s) => s.setterArgumentType)); + N([r], a, (s) => { + var o = {}; + return i.forEach((u, l) => { + var c = u.fieldName, v = s[l], p = u.getter, m = u.getterContext, b = s[l + i.length], P = u.setter, C = u.setterContext; + o[c] = { + read: (T) => v.fromWireType(p(m, T)), + write: (T, z) => { + var F = []; + P(C, T, b.toWireType(F, z)), Sr(F); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var l = {}; + for (var c in o) + l[c] = o[c].read(u); + return n(u), l; + }, + toWireType: (u, l) => { + for (var c in o) + if (!(c in l)) + throw new TypeError(`Missing field: "${c}"`); + var v = t(); + for (c in o) + o[c].write(v, l[c]); + return u !== null && u.push(n, v), v; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: n + }]; + }); + }, gt = (r, e, t, n, i) => { + }, yt = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + se = r; + }, se, A = (r) => { + for (var e = "", t = r; E[t]; ) + e += se[E[t++]]; + return e; + }, q, y = (r) => { + throw new q(r); + }; + function mt(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || y(`type "${n}" must have a positive integer typeid pointer`), B.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + y(`Cannot register type '${n}' twice`); + } + if (B[r] = e, delete vr[r], X.hasOwnProperty(r)) { + var i = X[r]; + delete X[r], i.forEach((a) => a()); + } + } + function R(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return mt(r, e, t); + } + var O = 8, $t = (r, e, t, n) => { + e = A(e), R(r, { + name: e, + fromWireType: function(i) { + return !!i; + }, + toWireType: function(i, a) { + return a ? t : n; + }, + argPackAdvance: O, + readValueFromPointer: function(i) { + return this.fromWireType(E[i]); + }, + destructorFunction: null + }); + }, bt = (r) => ({ + count: r.count, + deleteScheduled: r.deleteScheduled, + preservePointerOnDelete: r.preservePointerOnDelete, + ptr: r.ptr, + ptrType: r.ptrType, + smartPtr: r.smartPtr, + smartPtrType: r.smartPtrType + }), jr = (r) => { + function e(t) { + return t.$$.ptrType.registeredClass.name; + } + y(e(r) + " instance already deleted"); + }, Wr = !1, ue = (r) => { + }, wt = (r) => { + r.smartPtr ? r.smartPtrType.rawDestructor(r.smartPtr) : r.ptrType.registeredClass.rawDestructor(r.ptr); + }, le = (r) => { + r.count.value -= 1; + var e = r.count.value === 0; + e && wt(r); + }, fe = (r, e, t) => { + if (e === t) + return r; + if (t.baseClass === void 0) + return null; + var n = fe(r, e, t.baseClass); + return n === null ? null : t.downcast(n); + }, ce = {}, Ct = {}, Tt = (r, e) => { + for (e === void 0 && y("ptr should not be undefined"); r.baseClass; ) + e = r.upcast(e), r = r.baseClass; + return e; + }, Pt = (r, e) => (e = Tt(r, e), Ct[e]), pr = (r, e) => { + (!e.ptrType || !e.ptr) && dr("makeClassHandle requires ptr and ptrType"); + var t = !!e.smartPtrType, n = !!e.smartPtr; + return t !== n && dr("Both smartPtrType and smartPtr must be specified"), e.count = { + value: 1 + }, J(Object.create(r, { + $$: { + value: e, + writable: !0 + } + })); + }; + function At(r) { + var e = this.getPointee(r); + if (!e) + return this.destructor(r), null; + var t = Pt(this.registeredClass, e); + if (t !== void 0) { + if (t.$$.count.value === 0) + return t.$$.ptr = e, t.$$.smartPtr = r, t.clone(); + var n = t.clone(); + return this.destructor(r), n; + } + function i() { + return this.isSmartPointer ? pr(this.registeredClass.instancePrototype, { + ptrType: this.pointeeType, + ptr: e, + smartPtrType: this, + smartPtr: r + }) : pr(this.registeredClass.instancePrototype, { + ptrType: this, + ptr: r + }); + } + var a = this.registeredClass.getActualType(e), s = ce[a]; + if (!s) + return i.call(this); + var o; + this.isConst ? o = s.constPointerType : o = s.pointerType; + var u = fe(e, this.registeredClass, o.registeredClass); + return u === null ? i.call(this) : this.isSmartPointer ? pr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u, + smartPtrType: this, + smartPtr: r + }) : pr(o.registeredClass.instancePrototype, { + ptrType: o, + ptr: u + }); + } + var J = (r) => typeof FinalizationRegistry > "u" ? (J = (e) => e, r) : (Wr = new FinalizationRegistry((e) => { + le(e.$$); + }), J = (e) => { + var t = e.$$, n = !!t.smartPtr; + if (n) { + var i = { + $$: t + }; + Wr.register(e, i, e); + } + return e; + }, ue = (e) => Wr.unregister(e), J(r)), hr = [], Et = () => { + for (; hr.length; ) { + var r = hr.pop(); + r.$$.deleteScheduled = !1, r.delete(); + } + }, ve, Ft = () => { + Object.assign(_r.prototype, { + isAliasOf(r) { + if (!(this instanceof _r) || !(r instanceof _r)) + return !1; + var e = this.$$.ptrType.registeredClass, t = this.$$.ptr; + r.$$ = r.$$; + for (var n = r.$$.ptrType.registeredClass, i = r.$$.ptr; e.baseClass; ) + t = e.upcast(t), e = e.baseClass; + for (; n.baseClass; ) + i = n.upcast(i), n = n.baseClass; + return e === n && t === i; + }, + clone() { + if (this.$$.ptr || jr(this), this.$$.preservePointerOnDelete) + return this.$$.count.value += 1, this; + var r = J(Object.create(Object.getPrototypeOf(this), { + $$: { + value: bt(this.$$) + } + })); + return r.$$.count.value += 1, r.$$.deleteScheduled = !1, r; + }, + delete() { + this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), ue(this), le(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0); + }, + isDeleted() { + return !this.$$.ptr; + }, + deleteLater() { + return this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && y("Object already scheduled for deletion"), hr.push(this), hr.length === 1 && ve && ve(Et), this.$$.deleteScheduled = !0, this; + } + }); + }; + function _r() { + } + var rr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), de = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++) + a[s] = arguments[s]; + return r[e].overloadTable.hasOwnProperty(a.length) || y(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[a.length].apply(this, a); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Or = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), de(f, r, r), f.hasOwnProperty(t) && y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[r].overloadTable[t] = e) : (f[r] = e, t !== void 0 && (f[r].numArguments = t)); + }, Rt = 48, kt = 57, St = (r) => { + r = r.replace(/[^a-zA-Z0-9_]/g, "$"); + var e = r.charCodeAt(0); + return e >= Rt && e <= kt ? `_${r}` : r; + }; + function jt(r, e, t, n, i, a, s, o) { + this.name = r, this.constructor = e, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = i, this.getActualType = a, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = []; + } + var Dr = (r, e, t) => { + for (; e !== t; ) + e.upcast || y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`), r = e.upcast(r), e = e.baseClass; + return r; + }; + function Wt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + function Ot(r, e) { + var t; + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), this.isSmartPointer ? (t = this.rawConstructor(), r !== null && r.push(this.rawDestructor, t), t) : 0; + (!e || !e.$$) && y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + var n = e.$$.ptrType.registeredClass; + if (t = Dr(e.$$.ptr, n, this.registeredClass), this.isSmartPointer) + switch (e.$$.smartPtr === void 0 && y("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) { + case 0: + e.$$.smartPtrType === this ? t = e.$$.smartPtr : y(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`); + break; + case 1: + t = e.$$.smartPtr; + break; + case 2: + if (e.$$.smartPtrType === this) + t = e.$$.smartPtr; + else { + var i = e.clone(); + t = this.rawShare(t, x.toHandle(() => i.delete())), r !== null && r.push(this.rawDestructor, t); + } + break; + default: + y("Unsupporting sharing policy"); + } + return t; + } + function Dt(r, e) { + if (e === null) + return this.isReference && y(`null is not a valid ${this.name}`), 0; + e.$$ || y(`Cannot pass "${Vr(e)}" as a ${this.name}`), e.$$.ptr || y(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`); + var t = e.$$.ptrType.registeredClass, n = Dr(e.$$.ptr, t, this.registeredClass); + return n; + } + var Ut = () => { + Object.assign(gr.prototype, { + getPointee(r) { + return this.rawGetPointee && (r = this.rawGetPointee(r)), r; + }, + destructor(r) { + var e; + (e = this.rawDestructor) === null || e === void 0 || e.call(this, r); + }, + argPackAdvance: O, + readValueFromPointer: Y, + fromWireType: At + }); + }; + function gr(r, e, t, n, i, a, s, o, u, l, c) { + this.name = r, this.registeredClass = e, this.isReference = t, this.isConst = n, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = l, this.rawDestructor = c, !i && e.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = Dt, this.destructorFunction = null) : this.toWireType = Ot; + } + var pe = (r, e, t) => { + f.hasOwnProperty(r) || dr("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, xt = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, yr = [], he, g = (r) => { + var e = yr[r]; + return e || (r >= yr.length && (yr.length = r + 1), yr[r] = e = he.get(r)), e; + }, Mt = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return xt(r, e, t); + var n = g(e)(...t); + return n; + }, It = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) + n[i] = arguments[i]; + return Mt(r, e, n); + }, k = (r, e) => { + r = A(r); + function t() { + return r.includes("j") ? It(r, e) : g(e); + } + var n = t(); + return typeof n != "function" && y(`unknown function pointer with signature ${r}: ${e}`), n; + }, Ht = (r, e) => { + var t = rr(e, function(n) { + this.name = e, this.message = n; + var i = new Error(n).stack; + i !== void 0 && (this.stack = this.toString() + ` +` + i.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, _e, ge = (r) => { + var e = Te(r), t = A(e); + return M(e), t; + }, mr = (r, e) => { + var t = [], n = {}; + function i(a) { + if (!n[a] && !B[a]) { + if (vr[a]) { + vr[a].forEach(i); + return; + } + t.push(a), n[a] = !0; + } + } + throw e.forEach(i), new _e(`${r}: ` + t.map(ge).join([", "])); + }, Vt = (r, e, t, n, i, a, s, o, u, l, c, v, p) => { + c = A(c), a = k(i, a), o && (o = k(s, o)), l && (l = k(u, l)), p = k(v, p); + var m = St(c); + Or(m, function() { + mr(`Cannot construct ${c} due to unbound types`, [n]); + }), N([r, e, t], n ? [n] : [], (b) => { + b = b[0]; + var P, C; + n ? (P = b.registeredClass, C = P.instancePrototype) : C = _r.prototype; + var T = rr(c, function() { + if (Object.getPrototypeOf(this) !== z) + throw new q("Use 'new' to construct " + c); + if (F.constructor_body === void 0) + throw new q(c + " has no accessible constructor"); + for (var Me = arguments.length, br = new Array(Me), wr = 0; wr < Me; wr++) + br[wr] = arguments[wr]; + var Ie = F.constructor_body[br.length]; + if (Ie === void 0) + throw new q(`Tried to invoke ctor of ${c} with invalid number of parameters (${br.length}) - expected (${Object.keys(F.constructor_body).toString()}) parameters instead!`); + return Ie.apply(this, br); + }), z = Object.create(C, { + constructor: { + value: T + } + }); + T.prototype = z; + var F = new jt(c, T, z, p, P, a, o, l); + if (F.baseClass) { + var I, nr; + (nr = (I = F.baseClass).__derivedClasses) !== null && nr !== void 0 || (I.__derivedClasses = []), F.baseClass.__derivedClasses.push(F); + } + var Ri = new gr(c, F, !0, !1, !1), Ue = new gr(c + "*", F, !1, !1, !1), xe = new gr(c + " const*", F, !1, !0, !1); + return ce[r] = { + pointerType: Ue, + constPointerType: xe + }, pe(m, T), [Ri, Ue, xe]; + }); + }, Ur = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push($[e + n * 4 >> 2]); + return t; + }; + function Bt(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function xr(r, e, t, n, i, a) { + var s = e.length; + s < 2 && y("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var o = e[1] !== null && t !== null, u = Bt(e), l = e[0].name !== "void", c = s - 2, v = new Array(c), p = [], m = [], b = function() { + m.length = 0; + var P; + p.length = o ? 2 : 1, p[0] = i, o && (P = e[1].toWireType(m, this), p[1] = P); + for (var C = 0; C < c; ++C) + v[C] = e[C + 2].toWireType(m, C < 0 || arguments.length <= C ? void 0 : arguments[C]), p.push(v[C]); + var T = n(...p); + function z(F) { + if (u) + Sr(m); + else + for (var I = o ? 1 : 2; I < e.length; I++) { + var nr = I === 1 ? P : v[I - 2]; + e[I].destructorFunction !== null && e[I].destructorFunction(nr); + } + if (l) + return e[0].fromWireType(F); + } + return z(T); + }; + return rr(r, b); + } + var Nt = (r, e, t, n, i, a) => { + var s = Ur(e, t); + i = k(n, i), N([], [r], (o) => { + o = o[0]; + var u = `constructor ${o.name}`; + if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[e - 1] !== void 0) + throw new q(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`); + return o.registeredClass.constructor_body[e - 1] = () => { + mr(`Cannot construct ${o.name} due to unbound types`, s); + }, N([], s, (l) => (l.splice(1, 0, null), o.registeredClass.constructor_body[e - 1] = xr(u, l, null, i, a), [])), []; + }); + }, ye = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, zt = (r, e, t, n, i, a, s, o, u, l) => { + var c = Ur(t, n); + e = A(e), e = ye(e), a = k(i, a), N([], [r], (v) => { + v = v[0]; + var p = `${v.name}.${e}`; + e.startsWith("@@") && (e = Symbol[e.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(e); + function m() { + mr(`Cannot call ${p} due to unbound types`, c); + } + var b = v.registeredClass.instancePrototype, P = b[e]; + return P === void 0 || P.overloadTable === void 0 && P.className !== v.name && P.argCount === t - 2 ? (m.argCount = t - 2, m.className = v.name, b[e] = m) : (de(b, e, p), b[e].overloadTable[t - 2] = m), N([], c, (C) => { + var T = xr(p, C, v, a, s); + return b[e].overloadTable === void 0 ? (T.argCount = t - 2, b[e] = T) : b[e].overloadTable[t - 2] = T, []; + }), []; + }); + }, Mr = [], U = [], Ir = (r) => { + r > 9 && --U[r + 1] === 0 && (U[r] = void 0, Mr.push(r)); + }, Lt = () => U.length / 2 - 5 - Mr.length, Zt = () => { + U.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = Lt; + }, x = { + toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), U[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = Mr.pop() || U.length; + return U[e] = r, U[e + 1] = 1, e; + } + } + } + }, me = { + name: "emscripten::val", + fromWireType: (r) => { + var e = x.toValue(r); + return Ir(r), e; + }, + toWireType: (r, e) => x.toHandle(e), + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction: null + }, Gt = (r) => R(r, me), Xt = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(W[n]); + } : function(n) { + return this.fromWireType(E[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(G[n >> 1]); + } : function(n) { + return this.fromWireType(K[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(H[n >> 2]); + } : function(n) { + return this.fromWireType($[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, qt = (r, e, t, n) => { + e = A(e); + function i() { + } + i.values = {}, R(r, { + name: e, + constructor: i, + fromWireType: function(a) { + return this.constructor.values[a]; + }, + toWireType: (a, s) => s.value, + argPackAdvance: O, + readValueFromPointer: Xt(e, t, n), + destructorFunction: null + }), Or(e, i); + }, Hr = (r, e) => { + var t = B[r]; + return t === void 0 && y(`${e} has unknown type ${ge(r)}`), t; + }, Kt = (r, e, t) => { + var n = Hr(r, "enum"); + e = A(e); + var i = n.constructor, a = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: rr(`${n.name}_${e}`, function() { + }) + } + }); + i.values[t] = a, i[e] = a; + }, Vr = (r) => { + if (r === null) + return "null"; + var e = typeof r; + return e === "object" || e === "array" || e === "function" ? r.toString() : "" + r; + }, Qt = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Qr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Yr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Yt = (r, e, t) => { + e = A(e), R(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, i) => i, + argPackAdvance: O, + readValueFromPointer: Qt(e, t), + destructorFunction: null + }); + }, Jt = (r, e, t, n, i, a, s, o) => { + var u = Ur(e, t); + r = A(r), r = ye(r), i = k(n, i), Or(r, function() { + mr(`Cannot call ${r} due to unbound types`, u); + }, e - 1), N([], u, (l) => { + var c = [l[0], null].concat(l.slice(1)); + return pe(r, xr(r, c, null, i, a), e - 1), []; + }); + }, rn = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => W[n] : (n) => E[n]; + case 2: + return t ? (n) => G[n >> 1] : (n) => K[n >> 1]; + case 4: + return t ? (n) => H[n >> 2] : (n) => $[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, en = (r, e, t, n, i) => { + e = A(e); + var a = (c) => c; + if (n === 0) { + var s = 32 - 8 * t; + a = (c) => c << s >>> s; + } + var o = e.includes("unsigned"), u = (c, v) => { + }, l; + o ? l = function(c, v) { + return u(v, this.name), v >>> 0; + } : l = function(c, v) { + return u(v, this.name), v; + }, R(r, { + name: e, + fromWireType: a, + toWireType: l, + argPackAdvance: O, + readValueFromPointer: rn(e, t, n !== 0), + destructorFunction: null + }); + }, tn = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], i = n[e]; + function a(s) { + var o = $[s >> 2], u = $[s + 4 >> 2]; + return new i(W.buffer, u, o); + } + t = A(t), R(r, { + name: t, + fromWireType: a, + argPackAdvance: O, + readValueFromPointer: a + }, { + ignoreDuplicateRegistrations: !0 + }); + }, nn = Object.assign({ + optional: !0 + }, me), an = (r, e) => { + R(r, nn); + }, on = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var i = t, a = t + n - 1, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (o <= 127) { + if (t >= a) break; + e[t++] = o; + } else if (o <= 2047) { + if (t + 1 >= a) break; + e[t++] = 192 | o >> 6, e[t++] = 128 | o & 63; + } else if (o <= 65535) { + if (t + 2 >= a) break; + e[t++] = 224 | o >> 12, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } else { + if (t + 3 >= a) break; + e[t++] = 240 | o >> 18, e[t++] = 128 | o >> 12 & 63, e[t++] = 128 | o >> 6 & 63, e[t++] = 128 | o & 63; + } + } + return e[t] = 0, t - i; + }, er = (r, e, t) => on(r, E, e, t), sn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, $e = typeof TextDecoder < "u" ? new TextDecoder() : void 0, be = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, i = e; r[i] && !(i >= n); ) ++i; + if (i - e > 16 && r.buffer && $e) + return $e.decode(r.subarray(e, i)); + for (var a = ""; e < i; ) { + var s = r[e++]; + if (!(s & 128)) { + a += String.fromCharCode(s); + continue; + } + var o = r[e++] & 63; + if ((s & 224) == 192) { + a += String.fromCharCode((s & 31) << 6 | o); + continue; + } + var u = r[e++] & 63; + if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | r[e++] & 63, s < 65536) + a += String.fromCharCode(s); + else { + var l = s - 65536; + a += String.fromCharCode(55296 | l >> 10, 56320 | l & 1023); + } + } + return a; + }, un = (r, e) => r ? be(E, r, e) : "", ln = (r, e) => { + e = A(e); + var t = e === "std::string"; + R(r, { + name: e, + fromWireType(n) { + var i = $[n >> 2], a = n + 4, s; + if (t) + for (var o = a, u = 0; u <= i; ++u) { + var l = a + u; + if (u == i || E[l] == 0) { + var c = l - o, v = un(o, c); + s === void 0 ? s = v : (s += "\0", s += v), o = l + 1; + } + } + else { + for (var p = new Array(i), u = 0; u < i; ++u) + p[u] = String.fromCharCode(E[a + u]); + s = p.join(""); + } + return M(n), s; + }, + toWireType(n, i) { + i instanceof ArrayBuffer && (i = new Uint8Array(i)); + var a, s = typeof i == "string"; + s || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? a = sn(i) : a = i.length; + var o = zr(4 + a + 1), u = o + 4; + if ($[o >> 2] = a, t && s) + er(i, u, a + 1); + else if (s) + for (var l = 0; l < a; ++l) { + var c = i.charCodeAt(l); + c > 255 && (M(u), y("String has UTF-16 code units that do not fit in 8 bits")), E[u + l] = c; + } + else + for (var l = 0; l < a; ++l) + E[u + l] = i[l]; + return n !== null && n.push(M, o), o; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(n) { + M(n); + } + }); + }, we = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, fn = (r, e) => { + for (var t = r, n = t >> 1, i = n + e / 2; !(n >= i) && K[n]; ) ++n; + if (t = n << 1, t - r > 32 && we) return we.decode(E.subarray(r, t)); + for (var a = "", s = 0; !(s >= e / 2); ++s) { + var o = G[r + s * 2 >> 1]; + if (o == 0) break; + a += String.fromCharCode(o); + } + return a; + }, cn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var i = e, a = t < r.length * 2 ? t / 2 : r.length, s = 0; s < a; ++s) { + var o = r.charCodeAt(s); + G[e >> 1] = o, e += 2; + } + return G[e >> 1] = 0, e - i; + }, vn = (r) => r.length * 2, dn = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var i = H[r + t * 4 >> 2]; + if (i == 0) break; + if (++t, i >= 65536) { + var a = i - 65536; + n += String.fromCharCode(55296 | a >> 10, 56320 | a & 1023); + } else + n += String.fromCharCode(i); + } + return n; + }, pn = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var i = e, a = i + t - 4, s = 0; s < r.length; ++s) { + var o = r.charCodeAt(s); + if (o >= 55296 && o <= 57343) { + var u = r.charCodeAt(++s); + o = 65536 + ((o & 1023) << 10) | u & 1023; + } + if (H[e >> 2] = o, e += 4, e + 4 > a) break; + } + return H[e >> 2] = 0, e - i; + }, hn = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, _n = (r, e, t) => { + t = A(t); + var n, i, a, s; + e === 2 ? (n = fn, i = cn, s = vn, a = (o) => K[o >> 1]) : e === 4 && (n = dn, i = pn, s = hn, a = (o) => $[o >> 2]), R(r, { + name: t, + fromWireType: (o) => { + for (var u = $[o >> 2], l, c = o + 4, v = 0; v <= u; ++v) { + var p = o + 4 + v * e; + if (v == u || a(p) == 0) { + var m = p - c, b = n(c, m); + l === void 0 ? l = b : (l += "\0", l += b), c = p + e; + } + } + return M(o), l; + }, + toWireType: (o, u) => { + typeof u != "string" && y(`Cannot pass non-string to C++ string type ${t}`); + var l = s(u), c = zr(4 + l + e); + return $[c >> 2] = l / e, i(u, c + 4, l + e), o !== null && o.push(M, c), c; + }, + argPackAdvance: O, + readValueFromPointer: Y, + destructorFunction(o) { + M(o); + } + }); + }, gn = (r, e, t, n, i, a) => { + cr[r] = { + name: A(e), + rawConstructor: k(t, n), + rawDestructor: k(i, a), + fields: [] + }; + }, yn = (r, e, t, n, i, a, s, o, u, l) => { + cr[r].fields.push({ + fieldName: A(e), + getterReturnType: t, + getter: k(n, i), + getterContext: a, + setterArgumentType: s, + setter: k(o, u), + setterContext: l + }); + }, mn = (r, e) => { + e = A(e), R(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $n = (r, e, t) => E.copyWithin(r, e, e + t), Br = [], bn = (r, e, t, n) => (r = Br[r], e = x.toValue(e), r(null, e, t, n)), wn = {}, Cn = (r) => { + var e = wn[r]; + return e === void 0 ? A(r) : e; + }, Ce = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Tn = (r) => r === 0 ? x.toHandle(Ce()) : (r = Cn(r), x.toHandle(Ce()[r])), Pn = (r) => { + var e = Br.length; + return Br.push(r), e; + }, An = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Hr($[e + n * 4 >> 2], "parameter " + n); + return t; + }, En = Reflect.construct, Fn = (r, e, t) => { + var n = [], i = r.toWireType(n, t); + return n.length && ($[e >> 2] = x.toHandle(n)), i; + }, Rn = (r, e, t) => { + var n = An(r, e), i = n.shift(); + r--; + var a = new Array(r), s = (u, l, c, v) => { + for (var p = 0, m = 0; m < r; ++m) + a[m] = n[m].readValueFromPointer(v + p), p += n[m].argPackAdvance; + var b = t === 1 ? En(l, a) : l.apply(u, a); + return Fn(i, c, b); + }, o = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${i.name}>`; + return Pn(rr(o, s)); + }, kn = (r) => { + r > 9 && (U[r + 1] += 1); + }, Sn = (r) => { + var e = x.toValue(r); + Sr(e), Ir(r); + }, jn = (r, e) => { + r = Hr(r, "_emval_take_value"); + var t = r.readValueFromPointer(e); + return x.toHandle(t); + }, Wn = (r, e, t, n) => { + var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), s = new Date(i, 6, 1), o = a.getTimezoneOffset(), u = s.getTimezoneOffset(), l = Math.max(o, u); + $[r >> 2] = l * 60, H[e >> 2] = +(o != u); + var c = (m) => { + var b = m >= 0 ? "-" : "+", P = Math.abs(m), C = String(Math.floor(P / 60)).padStart(2, "0"), T = String(P % 60).padStart(2, "0"); + return `UTC${b}${C}${T}`; + }, v = c(o), p = c(u); + u < o ? (er(v, t, 17), er(p, n, 17)) : (er(v, n, 17), er(p, t, 17)); + }, On = () => 2147483648, Dn = (r, e) => Math.ceil(r / e) * e, Un = (r) => { + var e = or.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return or.grow(t), Jr(), 1; + } catch { + } + }, xn = (r) => { + var e = E.length; + r >>>= 0; + var t = On(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var i = e * (1 + 0.2 / n); + i = Math.min(i, r + 100663296); + var a = Math.min(t, Dn(Math.max(r, i), 65536)), s = Un(a); + if (s) + return !0; + } + return !1; + }, Nr = {}, Mn = () => Xr || "./this.program", tr = () => { + if (!tr.strings) { + var r = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { + USER: "web_user", + LOGNAME: "web_user", + PATH: "/", + PWD: "/", + HOME: "/home/web_user", + LANG: r, + _: Mn() + }; + for (var t in Nr) + Nr[t] === void 0 ? delete e[t] : e[t] = Nr[t]; + var n = []; + for (var t in e) + n.push(`${t}=${e[t]}`); + tr.strings = n; + } + return tr.strings; + }, In = (r, e) => { + for (var t = 0; t < r.length; ++t) + W[e++] = r.charCodeAt(t); + W[e] = 0; + }, Hn = (r, e) => { + var t = 0; + return tr().forEach((n, i) => { + var a = e + t; + $[r + i * 4 >> 2] = a, In(n, a), t += n.length + 1; + }), 0; + }, Vn = (r, e) => { + var t = tr(); + $[r >> 2] = t.length; + var n = 0; + return t.forEach((i) => n += i.length + 1), $[e >> 2] = n, 0; + }, Bn = (r) => 52; + function Nn(r, e, t, n, i) { + return 70; + } + var zn = [null, [], []], Ln = (r, e) => { + var t = zn[r]; + e === 0 || e === 10 ? ((r === 1 ? Le : Z)(be(t)), t.length = 0) : t.push(e); + }, Zn = (r, e, t, n) => { + for (var i = 0, a = 0; a < t; a++) { + var s = $[e >> 2], o = $[e + 4 >> 2]; + e += 8; + for (var u = 0; u < o; u++) + Ln(r, E[s + u]); + i += o; + } + return $[n >> 2] = i, 0; + }, Gn = (r) => r; + oe = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, yt(), q = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, Ft(), Ut(), _e = f.UnboundTypeError = Ht(Error, "UnboundTypeError"), Zt(); + var Xn = { + t: ot, + x: st, + a: lt, + j: ft, + k: ct, + O: vt, + q: dt, + ga: pt, + d: ut, + ca: ht, + va: _t, + ba: gt, + pa: $t, + ta: Vt, + sa: Nt, + E: zt, + oa: Gt, + F: qt, + n: Kt, + W: Yt, + X: Jt, + y: en, + u: tn, + ua: an, + V: ln, + P: _n, + L: gn, + wa: yn, + qa: mn, + ja: $n, + T: bn, + xa: Ir, + ya: Tn, + U: Rn, + Y: kn, + Z: Sn, + ra: jn, + da: Wn, + ha: xn, + ea: Hn, + fa: Vn, + ia: Bn, + $: Nn, + S: Zn, + J: hi, + C: gi, + Q: Jn, + R: Ti, + r: ci, + b: qn, + D: pi, + la: mi, + c: ei, + ka: $i, + h: Yn, + i: ai, + s: oi, + N: di, + w: ui, + I: wi, + K: vi, + z: yi, + H: Pi, + aa: Ei, + _: Fi, + l: ti, + f: ri, + e: Qn, + g: Kn, + M: Ci, + m: ii, + ma: _i, + p: si, + v: li, + na: fi, + B: bi, + o: ni, + G: Ai, + A: Gn + }, w = at(), Te = (r) => (Te = w.Ba)(r), M = f._free = (r) => (M = f._free = w.Ca)(r), zr = f._malloc = (r) => (zr = f._malloc = w.Ea)(r), Pe = (r) => (Pe = w.Fa)(r), d = (r, e) => (d = w.Ga)(r, e), Ae = (r) => (Ae = w.Ha)(r), Ee = (r) => (Ee = w.Ia)(r), Fe = () => (Fe = w.Ja)(), Re = (r) => (Re = w.Ka)(r), ke = (r) => (ke = w.La)(r), Se = (r, e, t) => (Se = w.Ma)(r, e, t); + f.dynCall_viijii = (r, e, t, n, i, a, s) => (f.dynCall_viijii = w.Na)(r, e, t, n, i, a, s); + var je = f.dynCall_jiii = (r, e, t, n) => (je = f.dynCall_jiii = w.Oa)(r, e, t, n); + f.dynCall_jiji = (r, e, t, n, i) => (f.dynCall_jiji = w.Pa)(r, e, t, n, i); + var We = f.dynCall_jiiii = (r, e, t, n, i) => (We = f.dynCall_jiiii = w.Qa)(r, e, t, n, i); + f.dynCall_iiiiij = (r, e, t, n, i, a, s) => (f.dynCall_iiiiij = w.Ra)(r, e, t, n, i, a, s), f.dynCall_iiiiijj = (r, e, t, n, i, a, s, o, u) => (f.dynCall_iiiiijj = w.Sa)(r, e, t, n, i, a, s, o, u), f.dynCall_iiiiiijj = (r, e, t, n, i, a, s, o, u, l) => (f.dynCall_iiiiiijj = w.Ta)(r, e, t, n, i, a, s, o, u, l); + function qn(r, e) { + var t = _(); + try { + return g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function Kn(r, e, t, n) { + var i = _(); + try { + g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Qn(r, e, t) { + var n = _(); + try { + g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function Yn(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Jn(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ri(r, e) { + var t = _(); + try { + g(r)(e); + } catch (n) { + if (h(t), n !== n + 0) throw n; + d(1, 0); + } + } + function ei(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function ti(r) { + var e = _(); + try { + g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function ni(r, e, t, n, i, a, s, o, u, l, c) { + var v = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c); + } catch (p) { + if (h(v), p !== p + 0) throw p; + d(1, 0); + } + } + function ii(r, e, t, n, i) { + var a = _(); + try { + g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function ai(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function oi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function si(r, e, t, n, i, a) { + var s = _(); + try { + g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function ui(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function li(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function fi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function ci(r) { + var e = _(); + try { + return g(r)(); + } catch (t) { + if (h(e), t !== t + 0) throw t; + d(1, 0); + } + } + function vi(r, e, t, n, i, a, s, o, u) { + var l = _(); + try { + return g(r)(e, t, n, i, a, s, o, u); + } catch (c) { + if (h(l), c !== c + 0) throw c; + d(1, 0); + } + } + function di(r, e, t, n, i, a, s) { + var o = _(); + try { + return g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function pi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function hi(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function _i(r, e, t, n, i, a, s, o) { + var u = _(); + try { + g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function gi(r, e, t, n, i, a) { + var s = _(); + try { + return g(r)(e, t, n, i, a); + } catch (o) { + if (h(s), o !== o + 0) throw o; + d(1, 0); + } + } + function yi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function mi(r, e, t) { + var n = _(); + try { + return g(r)(e, t); + } catch (i) { + if (h(n), i !== i + 0) throw i; + d(1, 0); + } + } + function $i(r, e, t, n, i) { + var a = _(); + try { + return g(r)(e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + function bi(r, e, t, n, i, a, s, o, u, l) { + var c = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l); + } catch (v) { + if (h(c), v !== v + 0) throw v; + d(1, 0); + } + } + function wi(r, e, t, n, i, a, s, o) { + var u = _(); + try { + return g(r)(e, t, n, i, a, s, o); + } catch (l) { + if (h(u), l !== l + 0) throw l; + d(1, 0); + } + } + function Ci(r, e, t, n, i, a, s) { + var o = _(); + try { + g(r)(e, t, n, i, a, s); + } catch (u) { + if (h(o), u !== u + 0) throw u; + d(1, 0); + } + } + function Ti(r, e, t, n) { + var i = _(); + try { + return g(r)(e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Pi(r, e, t, n, i, a, s, o, u, l, c, v) { + var p = _(); + try { + return g(r)(e, t, n, i, a, s, o, u, l, c, v); + } catch (m) { + if (h(p), m !== m + 0) throw m; + d(1, 0); + } + } + function Ai(r, e, t, n, i, a, s, o, u, l, c, v, p, m, b, P) { + var C = _(); + try { + g(r)(e, t, n, i, a, s, o, u, l, c, v, p, m, b, P); + } catch (T) { + if (h(C), T !== T + 0) throw T; + d(1, 0); + } + } + function Ei(r, e, t, n) { + var i = _(); + try { + return je(r, e, t, n); + } catch (a) { + if (h(i), a !== a + 0) throw a; + d(1, 0); + } + } + function Fi(r, e, t, n, i) { + var a = _(); + try { + return We(r, e, t, n, i); + } catch (s) { + if (h(a), s !== s + 0) throw s; + d(1, 0); + } + } + var $r, Oe; + Q = function r() { + $r || De(), $r || (Q = r); + }; + function De() { + if (V > 0 || !Oe && (Oe = 1, Ze(), V > 0)) + return; + function r() { + var e; + $r || ($r = 1, f.calledRun = 1, !Kr && (Ge(), Zr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), Xe())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return De(), Lr = Ve, Lr; + }; +})(); +function xi(S) { + return ki( + Cr, + S + ); +} +function Mi(S) { + return Si( + Cr, + S + ); +} +async function Ii(S, L) { + return ji( + Cr, + S, + L + ); +} +async function Hi(S, L) { + return Wi( + Cr, + S, + L + ); +} +export { + Ni as barcodeFormats, + zi as binarizers, + Li as characterSets, + Zi as contentTypes, + Gi as defaultDecodeHints, + Xi as defaultReaderOptions, + qi as eanAddOnSymbols, + xi as getZXingModule, + Ki as purgeZXingModule, + Hi as readBarcodesFromImageData, + Ii as readBarcodesFromImageFile, + Qi as readOutputEccLevels, + Mi as setZXingModuleOverrides, + Yi as textModes +}; diff --git a/node_modules/zxing-wasm/dist/es/writer/index.d.ts b/node_modules/zxing-wasm/dist/es/writer/index.d.ts new file mode 100644 index 0000000..a312e07 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/writer/index.d.ts @@ -0,0 +1,13 @@ +/** + * The writer part API of this package is subject to change a lot. + * Please track the status of [this issue](https://github.com/zxing-cpp/zxing-cpp/issues/332). + * + * @packageDocumentation + */ +import type { WriterOptions } from "../bindings/index.js"; +import { type ZXingModuleOverrides, type ZXingWriterModule } from "../core.js"; +export declare function getZXingModule(zxingModuleOverrides?: ZXingModuleOverrides): Promise; +export declare function setZXingModuleOverrides(zxingModuleOverrides: ZXingModuleOverrides): void; +export declare function writeBarcodeToImageFile(text: string, writerOptions?: WriterOptions): Promise; +export * from "../bindings/exposedWriterBindings.js"; +export { purgeZXingModule, type ZXingWriterModule, type ZXingModuleOverrides, } from "../core.js"; diff --git a/node_modules/zxing-wasm/dist/es/writer/index.js b/node_modules/zxing-wasm/dist/es/writer/index.js new file mode 100644 index 0000000..c2de1f0 --- /dev/null +++ b/node_modules/zxing-wasm/dist/es/writer/index.js @@ -0,0 +1,1099 @@ +import { g as on, s as sn, w as un } from "../core-C2hxqLt7.js"; +import { b as gn, e as mn, j as yn, j as bn, p as wn, k as Tn } from "../core-C2hxqLt7.js"; +var br = (() => { + var G; + var k = typeof document < "u" && ((G = document.currentScript) == null ? void 0 : G.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0; + return function(ae = {}) { + var wr, f = ae, Tr, K, ie = new Promise((r, e) => { + Tr = r, K = e; + }), oe = typeof window == "object", se = typeof Bun < "u", sr = typeof importScripts == "function"; + typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer"; + var $r = Object.assign({}, f), A = ""; + function ue(r) { + return f.locateFile ? f.locateFile(r, A) : A + r; + } + var Ar, ur; + if (oe || sr || se) { + var fr; + sr ? A = self.location.href : typeof document < "u" && ((fr = document.currentScript) === null || fr === void 0 ? void 0 : fr.tagName.toUpperCase()) === "SCRIPT" && (A = document.currentScript.src), k && (A = k), A.startsWith("blob:") ? A = "" : A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1), sr && (ur = (r) => { + var e = new XMLHttpRequest(); + return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response); + }), Ar = (r) => fetch(r, { + credentials: "same-origin" + }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url))); + } + f.print || console.log.bind(console); + var H = f.printErr || console.error.bind(console); + Object.assign(f, $r), $r = null, f.arguments && f.arguments, f.thisProgram && f.thisProgram; + var q = f.wasmBinary, J, Er = !1, U, b, j, N, D, _, Cr, Rr; + function Fr() { + var r = J.buffer; + f.HEAP8 = U = new Int8Array(r), f.HEAP16 = j = new Int16Array(r), f.HEAPU8 = b = new Uint8Array(r), f.HEAPU16 = N = new Uint16Array(r), f.HEAP32 = D = new Int32Array(r), f.HEAPU32 = _ = new Uint32Array(r), f.HEAPF32 = Cr = new Float32Array(r), f.HEAPF64 = Rr = new Float64Array(r); + } + var Pr = [], Wr = [], kr = []; + function fe() { + var r = f.preRun; + r && (typeof r == "function" && (r = [r]), r.forEach(le)), cr(Pr); + } + function ve() { + cr(Wr); + } + function ce() { + var r = f.postRun; + r && (typeof r == "function" && (r = [r]), r.forEach(_e)), cr(kr); + } + function le(r) { + Pr.unshift(r); + } + function de(r) { + Wr.unshift(r); + } + function _e(r) { + kr.unshift(r); + } + var x = 0, B = null; + function he(r) { + var e; + x++, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, x); + } + function pe(r) { + var e; + if (x--, (e = f.monitorRunDependencies) === null || e === void 0 || e.call(f, x), x == 0 && B) { + var t = B; + B = null, t(); + } + } + function vr(r) { + var e; + (e = f.onAbort) === null || e === void 0 || e.call(f, r), r = "Aborted(" + r + ")", H(r), Er = !0, r += ". Build with -sASSERTIONS for more info."; + var t = new WebAssembly.RuntimeError(r); + throw K(t), t; + } + var ge = "data:application/octet-stream;base64,", Ur = (r) => r.startsWith(ge); + function me() { + var r = "zxing_writer.wasm"; + return Ur(r) ? r : ue(r); + } + var Q; + function Sr(r) { + if (r == Q && q) + return new Uint8Array(q); + if (ur) + return ur(r); + throw "both async and sync fetching of the wasm failed"; + } + function ye(r) { + return q ? Promise.resolve().then(() => Sr(r)) : Ar(r).then((e) => new Uint8Array(e), () => Sr(r)); + } + function xr(r, e, t) { + return ye(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => { + H(`failed to asynchronously prepare wasm: ${n}`), vr(n); + }); + } + function be(r, e, t, n) { + return !r && typeof WebAssembly.instantiateStreaming == "function" && !Ur(e) && typeof fetch == "function" ? fetch(e, { + credentials: "same-origin" + }).then((a) => { + var i = WebAssembly.instantiateStreaming(a, t); + return i.then(n, function(o) { + return H(`wasm streaming compile failed: ${o}`), H("falling back to ArrayBuffer instantiation"), xr(e, t, n); + }); + }) : xr(e, t, n); + } + function we() { + return { + a: Vt + }; + } + function Te() { + var r, e = we(); + function t(a, i) { + return y = a.exports, J = y.Y, Fr(), Br = y.$, de(y.Z), pe(), y; + } + he(); + function n(a) { + t(a.instance); + } + if (f.instantiateWasm) + try { + return f.instantiateWasm(e, t); + } catch (a) { + H(`Module.instantiateWasm callback failed with error: ${a}`), K(a); + } + return (r = Q) !== null && r !== void 0 || (Q = me()), be(q, Q, e, n).catch(K), {}; + } + var cr = (r) => { + r.forEach((e) => e(f)); + }; + f.noExitRuntime; + var g = (r) => Jr(r), m = () => Qr(), Y = [], $e = (r) => { + var e = new lr(r); + return e.get_caught() || e.set_caught(!0), e.set_rethrown(!1), Y.push(e), zr(r), ee(r); + }, R = 0, Ae = () => { + p(0, 0); + var r = Y.pop(); + Yr(r.excPtr), R = 0; + }; + class lr { + constructor(e) { + this.excPtr = e, this.ptr = e - 24; + } + set_type(e) { + _[this.ptr + 4 >> 2] = e; + } + get_type() { + return _[this.ptr + 4 >> 2]; + } + set_destructor(e) { + _[this.ptr + 8 >> 2] = e; + } + get_destructor() { + return _[this.ptr + 8 >> 2]; + } + set_caught(e) { + e = e ? 1 : 0, U[this.ptr + 12] = e; + } + get_caught() { + return U[this.ptr + 12] != 0; + } + set_rethrown(e) { + e = e ? 1 : 0, U[this.ptr + 13] = e; + } + get_rethrown() { + return U[this.ptr + 13] != 0; + } + init(e, t) { + this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t); + } + set_adjusted_ptr(e) { + _[this.ptr + 16 >> 2] = e; + } + get_adjusted_ptr() { + return _[this.ptr + 16 >> 2]; + } + } + var Ee = (r) => { + throw R || (R = r), R; + }, z = (r) => qr(r), dr = (r) => { + var e = R; + if (!e) + return z(0), 0; + var t = new lr(e); + t.set_adjusted_ptr(e); + var n = t.get_type(); + if (!n) + return z(0), e; + for (var a of r) { + if (a === 0 || a === n) + break; + var i = t.ptr + 16; + if (re(a, n, i)) + return z(a), e; + } + return z(n), e; + }, Ce = () => dr([]), Re = (r) => dr([r]), Fe = (r, e) => dr([r, e]), Pe = () => { + var r = Y.pop(); + r || vr("no exception to throw"); + var e = r.excPtr; + throw r.get_rethrown() || (Y.push(r), r.set_rethrown(!0), r.set_caught(!1)), R = e, R; + }, We = (r, e, t) => { + var n = new lr(r); + throw n.init(e, t), R = r, R; + }, ke = () => { + vr(""); + }, rr = {}, _r = (r) => { + for (; r.length; ) { + var e = r.pop(), t = r.pop(); + t(e); + } + }; + function er(r) { + return this.fromWireType(_[r >> 2]); + } + var O = {}, M = {}, tr = {}, Mr, Ir = (r) => { + throw new Mr(r); + }, jr = (r, e, t) => { + r.forEach((s) => tr[s] = e); + function n(s) { + var u = t(s); + u.length !== r.length && Ir("Mismatched type converter count"); + for (var v = 0; v < r.length; ++v) + E(r[v], u[v]); + } + var a = new Array(e.length), i = [], o = 0; + e.forEach((s, u) => { + M.hasOwnProperty(s) ? a[u] = M[s] : (i.push(s), O.hasOwnProperty(s) || (O[s] = []), O[s].push(() => { + a[u] = M[s], ++o, o === i.length && n(a); + })); + }), i.length === 0 && n(a); + }, Ue = (r) => { + var e = rr[r]; + delete rr[r]; + var t = e.rawConstructor, n = e.rawDestructor, a = e.fields, i = a.map((o) => o.getterReturnType).concat(a.map((o) => o.setterArgumentType)); + jr([r], i, (o) => { + var s = {}; + return a.forEach((u, v) => { + var c = u.fieldName, l = o[v], d = u.getter, T = u.getterContext, S = o[v + a.length], L = u.setter, C = u.setterContext; + s[c] = { + read: (Z) => l.fromWireType(d(T, Z)), + write: (Z, yr) => { + var or = []; + L(C, Z, S.toWireType(or, yr)), _r(or); + } + }; + }), [{ + name: e.name, + fromWireType: (u) => { + var v = {}; + for (var c in s) + v[c] = s[c].read(u); + return n(u), v; + }, + toWireType: (u, v) => { + for (var c in s) + if (!(c in v)) + throw new TypeError(`Missing field: "${c}"`); + var l = t(); + for (c in s) + s[c].write(l, v[c]); + return u !== null && u.push(n, l), l; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction: n + }]; + }); + }, Se = (r, e, t, n, a) => { + }, xe = () => { + for (var r = new Array(256), e = 0; e < 256; ++e) + r[e] = String.fromCharCode(e); + Dr = r; + }, Dr, w = (r) => { + for (var e = "", t = r; b[t]; ) + e += Dr[b[t++]]; + return e; + }, Or, $ = (r) => { + throw new Or(r); + }; + function Me(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + var n = e.name; + if (r || $(`type "${n}" must have a positive integer typeid pointer`), M.hasOwnProperty(r)) { + if (t.ignoreDuplicateRegistrations) + return; + $(`Cannot register type '${n}' twice`); + } + if (M[r] = e, delete tr[r], O.hasOwnProperty(r)) { + var a = O[r]; + delete O[r], a.forEach((i) => i()); + } + } + function E(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + return Me(r, e, t); + } + var F = 8, Ie = (r, e, t, n) => { + e = w(e), E(r, { + name: e, + fromWireType: function(a) { + return !!a; + }, + toWireType: function(a, i) { + return i ? t : n; + }, + argPackAdvance: F, + readValueFromPointer: function(a) { + return this.fromWireType(b[a]); + }, + destructorFunction: null + }); + }, hr = [], P = [], pr = (r) => { + r > 9 && --P[r + 1] === 0 && (P[r] = void 0, hr.push(r)); + }, je = () => P.length / 2 - 5 - hr.length, De = () => { + P.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), f.count_emval_handles = je; + }, I = { + toValue: (r) => (r || $("Cannot use deleted val. handle = " + r), P[r]), + toHandle: (r) => { + switch (r) { + case void 0: + return 2; + case null: + return 4; + case !0: + return 6; + case !1: + return 8; + default: { + const e = hr.pop() || P.length; + return P[e] = r, P[e + 1] = 1, e; + } + } + } + }, Oe = { + name: "emscripten::val", + fromWireType: (r) => { + var e = I.toValue(r); + return pr(r), e; + }, + toWireType: (r, e) => I.toHandle(e), + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction: null + }, Ve = (r) => E(r, Oe), He = (r, e, t) => { + if (r[e].overloadTable === void 0) { + var n = r[e]; + r[e] = function() { + for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++) + i[o] = arguments[o]; + return r[e].overloadTable.hasOwnProperty(i.length) || $(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`), r[e].overloadTable[i.length].apply(this, i); + }, r[e].overloadTable = [], r[e].overloadTable[n.argCount] = n; + } + }, Vr = (r, e, t) => { + f.hasOwnProperty(r) ? ((t === void 0 || f[r].overloadTable !== void 0 && f[r].overloadTable[t] !== void 0) && $(`Cannot register public name '${r}' twice`), He(f, r, r), f.hasOwnProperty(t) && $(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), f[r].overloadTable[t] = e) : (f[r] = e, t !== void 0 && (f[r].numArguments = t)); + }, Ne = (r, e, t) => { + switch (e) { + case 1: + return t ? function(n) { + return this.fromWireType(U[n]); + } : function(n) { + return this.fromWireType(b[n]); + }; + case 2: + return t ? function(n) { + return this.fromWireType(j[n >> 1]); + } : function(n) { + return this.fromWireType(N[n >> 1]); + }; + case 4: + return t ? function(n) { + return this.fromWireType(D[n >> 2]); + } : function(n) { + return this.fromWireType(_[n >> 2]); + }; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, Be = (r, e, t, n) => { + e = w(e); + function a() { + } + a.values = {}, E(r, { + name: e, + constructor: a, + fromWireType: function(i) { + return this.constructor.values[i]; + }, + toWireType: (i, o) => o.value, + argPackAdvance: F, + readValueFromPointer: Ne(e, t, n), + destructorFunction: null + }), Vr(e, a); + }, nr = (r, e) => Object.defineProperty(e, "name", { + value: r + }), Hr = (r) => { + var e = Kr(r), t = w(e); + return W(e), t; + }, Nr = (r, e) => { + var t = M[r]; + return t === void 0 && $(`${e} has unknown type ${Hr(r)}`), t; + }, Xe = (r, e, t) => { + var n = Nr(r, "enum"); + e = w(e); + var a = n.constructor, i = Object.create(n.constructor.prototype, { + value: { + value: t + }, + constructor: { + value: nr(`${n.name}_${e}`, function() { + }) + } + }); + a.values[t] = i, a[e] = i; + }, Le = (r, e) => { + switch (e) { + case 4: + return function(t) { + return this.fromWireType(Cr[t >> 2]); + }; + case 8: + return function(t) { + return this.fromWireType(Rr[t >> 3]); + }; + default: + throw new TypeError(`invalid float width (${e}): ${r}`); + } + }, Ze = (r, e, t) => { + e = w(e), E(r, { + name: e, + fromWireType: (n) => n, + toWireType: (n, a) => a, + argPackAdvance: F, + readValueFromPointer: Le(e, t), + destructorFunction: null + }); + }; + function Ge(r) { + for (var e = 1; e < r.length; ++e) + if (r[e] !== null && r[e].destructorFunction === void 0) + return !0; + return !1; + } + function Ke(r, e, t, n, a, i) { + var o = e.length; + o < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!"); + var s = e[1] !== null && t !== null, u = Ge(e), v = e[0].name !== "void", c = o - 2, l = new Array(c), d = [], T = [], S = function() { + T.length = 0; + var L; + d.length = s ? 2 : 1, d[0] = a, s && (L = e[1].toWireType(T, this), d[1] = L); + for (var C = 0; C < c; ++C) + l[C] = e[C + 2].toWireType(T, C < 0 || arguments.length <= C ? void 0 : arguments[C]), d.push(l[C]); + var Z = n(...d); + function yr(or) { + if (u) + _r(T); + else + for (var V = s ? 1 : 2; V < e.length; V++) { + var an = V === 1 ? L : l[V - 2]; + e[V].destructorFunction !== null && e[V].destructorFunction(an); + } + if (v) + return e[0].fromWireType(or); + } + return yr(Z); + }; + return nr(r, S); + } + var qe = (r, e) => { + for (var t = [], n = 0; n < r; n++) + t.push(_[e + n * 4 >> 2]); + return t; + }, Je = (r, e, t) => { + f.hasOwnProperty(r) || Ir("Replacing nonexistent public symbol"), f[r].overloadTable !== void 0 && t !== void 0 ? f[r].overloadTable[t] = e : (f[r] = e, f[r].argCount = t); + }, Qe = (r, e, t) => { + r = r.replace(/p/g, "i"); + var n = f["dynCall_" + r]; + return n(e, ...t); + }, ar = [], Br, h = (r) => { + var e = ar[r]; + return e || (r >= ar.length && (ar.length = r + 1), ar[r] = e = Br.get(r)), e; + }, Ye = function(r, e) { + let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + if (r.includes("j")) + return Qe(r, e, t); + var n = h(e)(...t); + return n; + }, ze = (r, e) => function() { + for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++) + n[a] = arguments[a]; + return Ye(r, e, n); + }, X = (r, e) => { + r = w(r); + function t() { + return r.includes("j") ? ze(r, e) : h(e); + } + var n = t(); + return typeof n != "function" && $(`unknown function pointer with signature ${r}: ${e}`), n; + }, rt = (r, e) => { + var t = nr(e, function(n) { + this.name = e, this.message = n; + var a = new Error(n).stack; + a !== void 0 && (this.stack = this.toString() + ` +` + a.replace(/^Error(:[^\n]*)?\n/, "")); + }); + return t.prototype = Object.create(r.prototype), t.prototype.constructor = t, t.prototype.toString = function() { + return this.message === void 0 ? this.name : `${this.name}: ${this.message}`; + }, t; + }, Xr, et = (r, e) => { + var t = [], n = {}; + function a(i) { + if (!n[i] && !M[i]) { + if (tr[i]) { + tr[i].forEach(a); + return; + } + t.push(i), n[i] = !0; + } + } + throw e.forEach(a), new Xr(`${r}: ` + t.map(Hr).join([", "])); + }, tt = (r) => { + r = r.trim(); + const e = r.indexOf("("); + return e !== -1 ? r.substr(0, e) : r; + }, nt = (r, e, t, n, a, i, o, s) => { + var u = qe(e, t); + r = w(r), r = tt(r), a = X(n, a), Vr(r, function() { + et(`Cannot call ${r} due to unbound types`, u); + }, e - 1), jr([], u, (v) => { + var c = [v[0], null].concat(v.slice(1)); + return Je(r, Ke(r, c, null, a, i), e - 1), []; + }); + }, at = (r, e, t) => { + switch (e) { + case 1: + return t ? (n) => U[n] : (n) => b[n]; + case 2: + return t ? (n) => j[n >> 1] : (n) => N[n >> 1]; + case 4: + return t ? (n) => D[n >> 2] : (n) => _[n >> 2]; + default: + throw new TypeError(`invalid integer width (${e}): ${r}`); + } + }, it = (r, e, t, n, a) => { + e = w(e); + var i = (c) => c; + if (n === 0) { + var o = 32 - 8 * t; + i = (c) => c << o >>> o; + } + var s = e.includes("unsigned"), u = (c, l) => { + }, v; + s ? v = function(c, l) { + return u(l, this.name), l >>> 0; + } : v = function(c, l) { + return u(l, this.name), l; + }, E(r, { + name: e, + fromWireType: i, + toWireType: v, + argPackAdvance: F, + readValueFromPointer: at(e, t, n !== 0), + destructorFunction: null + }); + }, ot = (r, e, t) => { + var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e]; + function i(o) { + var s = _[o >> 2], u = _[o + 4 >> 2]; + return new a(U.buffer, u, s); + } + t = w(t), E(r, { + name: t, + fromWireType: i, + argPackAdvance: F, + readValueFromPointer: i + }, { + ignoreDuplicateRegistrations: !0 + }); + }, st = (r, e, t, n) => { + if (!(n > 0)) return 0; + for (var a = t, i = t + n - 1, o = 0; o < r.length; ++o) { + var s = r.charCodeAt(o); + if (s >= 55296 && s <= 57343) { + var u = r.charCodeAt(++o); + s = 65536 + ((s & 1023) << 10) | u & 1023; + } + if (s <= 127) { + if (t >= i) break; + e[t++] = s; + } else if (s <= 2047) { + if (t + 1 >= i) break; + e[t++] = 192 | s >> 6, e[t++] = 128 | s & 63; + } else if (s <= 65535) { + if (t + 2 >= i) break; + e[t++] = 224 | s >> 12, e[t++] = 128 | s >> 6 & 63, e[t++] = 128 | s & 63; + } else { + if (t + 3 >= i) break; + e[t++] = 240 | s >> 18, e[t++] = 128 | s >> 12 & 63, e[t++] = 128 | s >> 6 & 63, e[t++] = 128 | s & 63; + } + } + return e[t] = 0, t - a; + }, ut = (r, e, t) => st(r, b, e, t), ft = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++t) : e += 3; + } + return e; + }, Lr = typeof TextDecoder < "u" ? new TextDecoder() : void 0, vt = function(r) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : NaN; + for (var n = e + t, a = e; r[a] && !(a >= n); ) ++a; + if (a - e > 16 && r.buffer && Lr) + return Lr.decode(r.subarray(e, a)); + for (var i = ""; e < a; ) { + var o = r[e++]; + if (!(o & 128)) { + i += String.fromCharCode(o); + continue; + } + var s = r[e++] & 63; + if ((o & 224) == 192) { + i += String.fromCharCode((o & 31) << 6 | s); + continue; + } + var u = r[e++] & 63; + if ((o & 240) == 224 ? o = (o & 15) << 12 | s << 6 | u : o = (o & 7) << 18 | s << 12 | u << 6 | r[e++] & 63, o < 65536) + i += String.fromCharCode(o); + else { + var v = o - 65536; + i += String.fromCharCode(55296 | v >> 10, 56320 | v & 1023); + } + } + return i; + }, ct = (r, e) => r ? vt(b, r, e) : "", lt = (r, e) => { + e = w(e); + var t = e === "std::string"; + E(r, { + name: e, + fromWireType(n) { + var a = _[n >> 2], i = n + 4, o; + if (t) + for (var s = i, u = 0; u <= a; ++u) { + var v = i + u; + if (u == a || b[v] == 0) { + var c = v - s, l = ct(s, c); + o === void 0 ? o = l : (o += "\0", o += l), s = v + 1; + } + } + else { + for (var d = new Array(a), u = 0; u < a; ++u) + d[u] = String.fromCharCode(b[i + u]); + o = d.join(""); + } + return W(n), o; + }, + toWireType(n, a) { + a instanceof ArrayBuffer && (a = new Uint8Array(a)); + var i, o = typeof a == "string"; + o || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || $("Cannot pass non-string to std::string"), t && o ? i = ft(a) : i = a.length; + var s = mr(4 + i + 1), u = s + 4; + if (_[s >> 2] = i, t && o) + ut(a, u, i + 1); + else if (o) + for (var v = 0; v < i; ++v) { + var c = a.charCodeAt(v); + c > 255 && (W(u), $("String has UTF-16 code units that do not fit in 8 bits")), b[u + v] = c; + } + else + for (var v = 0; v < i; ++v) + b[u + v] = a[v]; + return n !== null && n.push(W, s), s; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction(n) { + W(n); + } + }); + }, Zr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, dt = (r, e) => { + for (var t = r, n = t >> 1, a = n + e / 2; !(n >= a) && N[n]; ) ++n; + if (t = n << 1, t - r > 32 && Zr) return Zr.decode(b.subarray(r, t)); + for (var i = "", o = 0; !(o >= e / 2); ++o) { + var s = j[r + o * 2 >> 1]; + if (s == 0) break; + i += String.fromCharCode(s); + } + return i; + }, _t = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2) return 0; + t -= 2; + for (var a = e, i = t < r.length * 2 ? t / 2 : r.length, o = 0; o < i; ++o) { + var s = r.charCodeAt(o); + j[e >> 1] = s, e += 2; + } + return j[e >> 1] = 0, e - a; + }, ht = (r) => r.length * 2, pt = (r, e) => { + for (var t = 0, n = ""; !(t >= e / 4); ) { + var a = D[r + t * 4 >> 2]; + if (a == 0) break; + if (++t, a >= 65536) { + var i = a - 65536; + n += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023); + } else + n += String.fromCharCode(a); + } + return n; + }, gt = (r, e, t) => { + var n; + if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4) return 0; + for (var a = e, i = a + t - 4, o = 0; o < r.length; ++o) { + var s = r.charCodeAt(o); + if (s >= 55296 && s <= 57343) { + var u = r.charCodeAt(++o); + s = 65536 + ((s & 1023) << 10) | u & 1023; + } + if (D[e >> 2] = s, e += 4, e + 4 > i) break; + } + return D[e >> 2] = 0, e - a; + }, mt = (r) => { + for (var e = 0, t = 0; t < r.length; ++t) { + var n = r.charCodeAt(t); + n >= 55296 && n <= 57343 && ++t, e += 4; + } + return e; + }, yt = (r, e, t) => { + t = w(t); + var n, a, i, o; + e === 2 ? (n = dt, a = _t, o = ht, i = (s) => N[s >> 1]) : e === 4 && (n = pt, a = gt, o = mt, i = (s) => _[s >> 2]), E(r, { + name: t, + fromWireType: (s) => { + for (var u = _[s >> 2], v, c = s + 4, l = 0; l <= u; ++l) { + var d = s + 4 + l * e; + if (l == u || i(d) == 0) { + var T = d - c, S = n(c, T); + v === void 0 ? v = S : (v += "\0", v += S), c = d + e; + } + } + return W(s), v; + }, + toWireType: (s, u) => { + typeof u != "string" && $(`Cannot pass non-string to C++ string type ${t}`); + var v = o(u), c = mr(4 + v + e); + return _[c >> 2] = v / e, a(u, c + 4, v + e), s !== null && s.push(W, c), c; + }, + argPackAdvance: F, + readValueFromPointer: er, + destructorFunction(s) { + W(s); + } + }); + }, bt = (r, e, t, n, a, i) => { + rr[r] = { + name: w(e), + rawConstructor: X(t, n), + rawDestructor: X(a, i), + fields: [] + }; + }, wt = (r, e, t, n, a, i, o, s, u, v) => { + rr[r].fields.push({ + fieldName: w(e), + getterReturnType: t, + getter: X(n, a), + getterContext: i, + setterArgumentType: o, + setter: X(s, u), + setterContext: v + }); + }, Tt = (r, e) => { + e = w(e), E(r, { + isVoid: !0, + name: e, + argPackAdvance: 0, + fromWireType: () => { + }, + toWireType: (t, n) => { + } + }); + }, $t = (r, e, t) => b.copyWithin(r, e, e + t), gr = [], At = (r, e, t, n) => (r = gr[r], e = I.toValue(e), r(null, e, t, n)), Et = {}, Ct = (r) => { + var e = Et[r]; + return e === void 0 ? w(r) : e; + }, Gr = () => { + if (typeof globalThis == "object") + return globalThis; + function r(e) { + e.$$$embind_global$$$ = e; + var t = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e; + return t || delete e.$$$embind_global$$$, t; + } + if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && r(global) ? $$$embind_global$$$ = global : typeof self == "object" && r(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) + return $$$embind_global$$$; + throw Error("unable to get global object."); + }, Rt = (r) => r === 0 ? I.toHandle(Gr()) : (r = Ct(r), I.toHandle(Gr()[r])), Ft = (r) => { + var e = gr.length; + return gr.push(r), e; + }, Pt = (r, e) => { + for (var t = new Array(r), n = 0; n < r; ++n) + t[n] = Nr(_[e + n * 4 >> 2], "parameter " + n); + return t; + }, Wt = Reflect.construct, kt = (r, e, t) => { + var n = [], a = r.toWireType(n, t); + return n.length && (_[e >> 2] = I.toHandle(n)), a; + }, Ut = (r, e, t) => { + var n = Pt(r, e), a = n.shift(); + r--; + var i = new Array(r), o = (u, v, c, l) => { + for (var d = 0, T = 0; T < r; ++T) + i[T] = n[T].readValueFromPointer(l + d), d += n[T].argPackAdvance; + var S = t === 1 ? Wt(v, i) : v.apply(u, i); + return kt(a, c, S); + }, s = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${a.name}>`; + return Ft(nr(s, o)); + }, St = (r) => { + r > 9 && (P[r + 1] += 1); + }, xt = (r) => { + var e = I.toValue(r); + _r(e), pr(r); + }, Mt = () => 2147483648, It = (r, e) => Math.ceil(r / e) * e, jt = (r) => { + var e = J.buffer, t = (r - e.byteLength + 65535) / 65536 | 0; + try { + return J.grow(t), Fr(), 1; + } catch { + } + }, Dt = (r) => { + var e = b.length; + r >>>= 0; + var t = Mt(); + if (r > t) + return !1; + for (var n = 1; n <= 4; n *= 2) { + var a = e * (1 + 0.2 / n); + a = Math.min(a, r + 100663296); + var i = Math.min(t, It(Math.max(r, a), 65536)), o = jt(i); + if (o) + return !0; + } + return !1; + }, Ot = (r) => r; + Mr = f.InternalError = class extends Error { + constructor(e) { + super(e), this.name = "InternalError"; + } + }, xe(), Or = f.BindingError = class extends Error { + constructor(e) { + super(e), this.name = "BindingError"; + } + }, De(), Xr = f.UnboundTypeError = rt(Error, "UnboundTypeError"); + var Vt = { + x: $e, + y: Ae, + a: Ce, + l: Re, + u: Fe, + N: Pe, + n: We, + f: Ee, + J: ke, + T: Ue, + I: Se, + P: Ie, + O: Ve, + R: Be, + k: Xe, + B: Ze, + S: nt, + s: it, + o: ot, + A: lt, + z: yt, + C: bt, + U: wt, + Q: Tt, + L: $t, + F: At, + W: pr, + H: Rt, + G: Ut, + D: St, + X: xt, + K: Dt, + E: Zt, + v: tn, + e: Ht, + c: Gt, + m: Lt, + h: en, + i: Yt, + M: zt, + q: Kt, + g: Nt, + d: Qt, + b: Jt, + j: Xt, + p: Bt, + w: rn, + r: nn, + t: qt, + V: Ot + }, y = Te(), Kr = (r) => (Kr = y._)(r), mr = f._malloc = (r) => (mr = f._malloc = y.aa)(r), W = f._free = (r) => (W = f._free = y.ba)(r), p = (r, e) => (p = y.ca)(r, e), qr = (r) => (qr = y.da)(r), Jr = (r) => (Jr = y.ea)(r), Qr = () => (Qr = y.fa)(), Yr = (r) => (Yr = y.ga)(r), zr = (r) => (zr = y.ha)(r), re = (r, e, t) => (re = y.ia)(r, e, t), ee = (r) => (ee = y.ja)(r); + function Ht(r, e) { + var t = m(); + try { + return h(r)(e); + } catch (n) { + if (g(t), n !== n + 0) throw n; + p(1, 0); + } + } + function Nt(r, e) { + var t = m(); + try { + h(r)(e); + } catch (n) { + if (g(t), n !== n + 0) throw n; + p(1, 0); + } + } + function Bt(r, e, t, n, a, i) { + var o = m(); + try { + h(r)(e, t, n, a, i); + } catch (s) { + if (g(o), s !== s + 0) throw s; + p(1, 0); + } + } + function Xt(r, e, t, n, a) { + var i = m(); + try { + h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function Lt(r, e, t, n) { + var a = m(); + try { + return h(r)(e, t, n); + } catch (i) { + if (g(a), i !== i + 0) throw i; + p(1, 0); + } + } + function Zt(r, e, t, n, a) { + var i = m(); + try { + return h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function Gt(r, e, t) { + var n = m(); + try { + return h(r)(e, t); + } catch (a) { + if (g(n), a !== a + 0) throw a; + p(1, 0); + } + } + function Kt(r) { + var e = m(); + try { + h(r)(); + } catch (t) { + if (g(e), t !== t + 0) throw t; + p(1, 0); + } + } + function qt(r, e, t, n, a, i, o, s, u, v, c) { + var l = m(); + try { + h(r)(e, t, n, a, i, o, s, u, v, c); + } catch (d) { + if (g(l), d !== d + 0) throw d; + p(1, 0); + } + } + function Jt(r, e, t, n) { + var a = m(); + try { + h(r)(e, t, n); + } catch (i) { + if (g(a), i !== i + 0) throw i; + p(1, 0); + } + } + function Qt(r, e, t) { + var n = m(); + try { + h(r)(e, t); + } catch (a) { + if (g(n), a !== a + 0) throw a; + p(1, 0); + } + } + function Yt(r, e, t, n, a, i) { + var o = m(); + try { + return h(r)(e, t, n, a, i); + } catch (s) { + if (g(o), s !== s + 0) throw s; + p(1, 0); + } + } + function zt(r, e, t, n, a, i, o) { + var s = m(); + try { + return h(r)(e, t, n, a, i, o); + } catch (u) { + if (g(s), u !== u + 0) throw u; + p(1, 0); + } + } + function rn(r, e, t, n, a, i, o, s) { + var u = m(); + try { + h(r)(e, t, n, a, i, o, s); + } catch (v) { + if (g(u), v !== v + 0) throw v; + p(1, 0); + } + } + function en(r, e, t, n, a) { + var i = m(); + try { + return h(r)(e, t, n, a); + } catch (o) { + if (g(i), o !== o + 0) throw o; + p(1, 0); + } + } + function tn(r) { + var e = m(); + try { + return h(r)(); + } catch (t) { + if (g(e), t !== t + 0) throw t; + p(1, 0); + } + } + function nn(r, e, t, n, a, i, o, s, u) { + var v = m(); + try { + h(r)(e, t, n, a, i, o, s, u); + } catch (c) { + if (g(v), c !== c + 0) throw c; + p(1, 0); + } + } + var ir, te; + B = function r() { + ir || ne(), ir || (B = r); + }; + function ne() { + if (x > 0 || !te && (te = 1, fe(), x > 0)) + return; + function r() { + var e; + ir || (ir = 1, f.calledRun = 1, !Er && (ve(), Tr(f), (e = f.onRuntimeInitialized) === null || e === void 0 || e.call(f), ce())); + } + f.setStatus ? (f.setStatus("Running..."), setTimeout(() => { + setTimeout(() => f.setStatus(""), 1), r(); + }, 1)) : r(); + } + if (f.preInit) + for (typeof f.preInit == "function" && (f.preInit = [f.preInit]); f.preInit.length > 0; ) + f.preInit.pop()(); + return ne(), wr = ie, wr; + }; +})(); +function ln(k) { + return on( + br, + k + ); +} +function dn(k) { + return sn( + br, + k + ); +} +async function _n(k, G) { + return un( + br, + k, + G + ); +} +export { + gn as barcodeFormats, + mn as characterSets, + yn as defaultEncodeHints, + bn as defaultWriterOptions, + ln as getZXingModule, + wn as purgeZXingModule, + dn as setZXingModuleOverrides, + _n as writeBarcodeToImageFile, + Tn as writeInputEccLevels +}; diff --git a/node_modules/zxing-wasm/dist/full/zxing_full.wasm b/node_modules/zxing-wasm/dist/full/zxing_full.wasm new file mode 100644 index 0000000..3d48bb0 Binary files /dev/null and b/node_modules/zxing-wasm/dist/full/zxing_full.wasm differ diff --git a/node_modules/zxing-wasm/dist/iife/full/index.js b/node_modules/zxing-wasm/dist/iife/full/index.js new file mode 100644 index 0000000..965e98b --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/full/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(A){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function nt(v){return v.join("|")}function it(v){const h=ae(v);let C=0,k=Dr.length-1;for(;C<=k;){const c=Math.floor((C+k)/2),I=Dr[c],j=ae(I);if(j===h)return I;j{const C=v.match(/_(.+?)\.wasm$/);return C?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${C[1]}/${v}`:h+v}};let gr=new WeakMap;function mr(v,h){var I;const C=gr.get(v);if(C!=null&&C.modulePromise&&(h===void 0||Object.is(h,C.moduleOverrides)))return C.modulePromise;const k=(I=h!=null?h:C==null?void 0:C.moduleOverrides)!=null?I:gt,c=v({...k});return gr.set(v,{moduleOverrides:k,modulePromise:c}),c}function mt(){gr=new WeakMap}function yt(v,h){gr.set(v,{moduleOverrides:h})}async function $t(v,h,C=rr){const k={...rr,...C},c=await mr(v),{size:I}=h,j=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(j,G);const er=c.readBarcodesFromImage(G,I,ue(c,k));c._free(G);const Z=[];for(let M=0;M{var h;var v=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(C={}){var k,c=C,I,j,G=new Promise((r,e)=>{I=r,j=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var ur=Object.assign({},c),tr="./this.program",B="";function St(r){return c.locateFile?c.locateFile(r,B):B+r}var ve,Br;if(er||M||Z){var Hr;M?B=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(B=document.currentScript.src),v&&(B=v),B.startsWith("blob:")?B="":B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Br=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ve=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var Ft=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,ur),ur=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var yr=c.wasmBinary,$r,de=!1,H,O,ir,cr,Q,w,he,pe;function _e(){var r=$r.buffer;c.HEAP8=H=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=cr=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=he=new Float32Array(r),c.HEAPF64=pe=new Float64Array(r)}var ge=[],me=[],ye=[];function Rt(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(It)),Vr(ge)}function Ot(){Vr(me)}function kt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(jt)),Vr(ye)}function It(r){ge.unshift(r)}function Wt(r){me.unshift(r)}function jt(r){ye.unshift(r)}var q=0,lr=null;function Ut(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Dt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&lr){var t=lr;lr=null,t()}}function xr(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),de=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw j(t),t}var Mt="data:application/octet-stream;base64,",$e=r=>r.startsWith(Mt);function Bt(){var r="zxing_full.wasm";return $e(r)?r:St(r)}var br;function be(r){if(r==br&&yr)return new Uint8Array(yr);if(Br)return Br(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return yr?Promise.resolve().then(()=>be(r)):ve(r).then(e=>new Uint8Array(e),()=>be(r))}function we(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),xr(n)})}function xt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$e(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),we(e,t,n)})}):we(e,t,n)}function Vt(){return{a:ki}}function Lt(){var r,e=Vt();function t(i,a){return P=i.exports,$r=P.za,_e(),ke=P.Da,Wt(P.Aa),Dt(),P}Ut();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),j(i)}return(r=br)!==null&&r!==void 0||(br=Bt()),xt(yr,br,e,n).catch(j),{}}var Vr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>Ne(r),m=()=>ze(),wr=[],Cr=0,Nt=r=>{var e=new Lr(r);return e.get_caught()||(e.set_caught(!0),Cr--),e.set_rethrown(!1),wr.push(e),Ze(r),Ve(r)},V=0,zt=()=>{p(0,0);var r=wr.pop();Xe(r.excPtr),V=0};class Lr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,H[this.ptr+12]=e}get_caught(){return H[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,H[this.ptr+13]=e}get_rethrown(){return H[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Xt=r=>{throw V||(V=r),V},Tr=r=>Le(r),Nr=r=>{var e=V;if(!e)return Tr(0),0;var t=new Lr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Tr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(Ge(i,n,a))return Tr(i),e}return Tr(n),e},Zt=()=>Nr([]),Gt=r=>Nr([r]),Qt=(r,e)=>Nr([r,e]),qt=()=>{var r=wr.pop();r||xr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(wr.push(r),r.set_rethrown(!0),r.set_caught(!1),Cr++),V=e,V},Jt=(r,e,t)=>{var n=new Lr(r);throw n.init(e,t),V=r,Cr++,V},Kt=()=>Cr,Yt=()=>{xr("")},Pr={},zr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function fr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Ar={},Ce,Er=r=>{throw new Ce(r)},K=(r,e,t)=>{r.forEach(o=>Ar[o]=e);function n(o){var u=t(o);u.length!==r.length&&Er("Mismatched type converter count");for(var l=0;l{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},rn=r=>{var e=Pr[r];delete Pr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,d=s[l],_=u.getter,b=u.getterContext,T=s[l+i.length],F=u.setter,E=u.setterContext;o[f]={read:S=>d.fromWireType(_(b,S)),write:(S,Y)=>{var W=[];F(E,S,T.toWireType(W,Y)),zr(W)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var d=t();for(f in o)o[f].write(d,l[f]);return u!==null&&u.push(n,d),d},argPackAdvance:x,readValueFromPointer:fr,destructorFunction:n}]})},en=(r,e,t,n,i)=>{},tn=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Te=r},Te,R=r=>{for(var e="",t=r;O[t];)e+=Te[O[t++]];return e},or,$=r=>{throw new or(r)};function nn(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Ar[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function U(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(r,e,t)}var x=8,an=(r,e,t,n)=>{e=R(e),U(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:x,readValueFromPointer:function(i){return this.fromWireType(O[i])},destructorFunction:null})},on=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Zr=!1,Pe=r=>{},sn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ae=r=>{r.count.value-=1;var e=r.count.value===0;e&&sn(r)},Ee=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ee(r,e,t.baseClass);return n===null?null:t.downcast(n)},Se={},un={},cn=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},ln=(r,e)=>(e=cn(r,e),un[e]),Sr=(r,e)=>{(!e.ptrType||!e.ptr)&&Er("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Er("Both smartPtrType and smartPtr must be specified"),e.count={value:1},vr(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ln(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Sr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Sr(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Se[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Ee(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Sr(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var vr=r=>typeof FinalizationRegistry>"u"?(vr=e=>e,r):(Zr=new FinalizationRegistry(e=>{Ae(e.$$)}),vr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Zr.register(e,i,e)}return e},Pe=e=>Zr.unregister(e),vr(r)),Fr=[],vn=()=>{for(;Fr.length;){var r=Fr.pop();r.$$.deleteScheduled=!1,r.delete()}},Fe,dn=()=>{Object.assign(Rr.prototype,{isAliasOf(r){if(!(this instanceof Rr)||!(r instanceof Rr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||Xr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=vr(Object.create(Object.getPrototypeOf(this),{$$:{value:on(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Pe(this),Ae(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Fr.push(this),Fr.length===1&&Fe&&Fe(vn),this.$$.deleteScheduled=!0,this}})};function Rr(){}var dr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Re=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Re(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},hn=48,pn=57,_n=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=hn&&e<=pn?`_${r}`:r};function gn(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Qr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function mn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}function yn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Qr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,N.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function $n(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${ee(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qr(e.$$.ptr,t,this.registeredClass);return n}var bn=()=>{Object.assign(Or.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:fr,fromWireType:fn})};function Or(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=mn,this.destructorFunction=null):(this.toWireType=$n,this.destructorFunction=null):this.toWireType=yn}var Oe=(r,e,t)=>{c.hasOwnProperty(r)||Er("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},wn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},kr=[],ke,y=r=>{var e=kr[r];return e||(r>=kr.length&&(kr.length=r+1),kr[r]=e=ke.get(r)),e},Cn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return wn(r,e,t);var n=y(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=R(r);function t(){return r.includes("j")?Tn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},Pn=(r,e)=>{var t=dr(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Ie,We=r=>{var e=xe(r),t=R(e);return z(e),t},Ir=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!J[a]){if(Ar[a]){Ar[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Ie(`${r}: `+t.map(We).join([", "]))},An=(r,e,t,n,i,a,s,o,u,l,f,d,_)=>{f=R(f),a=D(i,a),o&&(o=D(s,o)),l&&(l=D(u,l)),_=D(d,_);var b=_n(f);Gr(b,function(){Ir(`Cannot construct ${f} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],T=>{T=T[0];var F,E;n?(F=T.registeredClass,E=F.instancePrototype):E=Rr.prototype;var S=dr(f,function(){if(Object.getPrototypeOf(this)!==Y)throw new or("Use 'new' to construct "+f);if(W.constructor_body===void 0)throw new or(f+" has no accessible constructor");for(var et=arguments.length,jr=new Array(et),Ur=0;Ur{for(var t=[],n=0;n>2]);return t};function En(r){for(var e=1;e{var s=qr(e,t);i=D(n,i),K([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new or(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{Ir(`Cannot construct ${o.name} due to unbound types`,s)},K([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=Jr(u,l,null,i,a),[])),[]})},je=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Fn=(r,e,t,n,i,a,s,o,u,l)=>{var f=qr(t,n);e=R(e),e=je(e),a=D(i,a),K([],[r],d=>{d=d[0];var _=`${d.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&d.registeredClass.pureVirtualFunctions.push(e);function b(){Ir(`Cannot call ${_} due to unbound types`,f)}var T=d.registeredClass.instancePrototype,F=T[e];return F===void 0||F.overloadTable===void 0&&F.className!==d.name&&F.argCount===t-2?(b.argCount=t-2,b.className=d.name,T[e]=b):(Re(T,e,_),T[e].overloadTable[t-2]=b),K([],f,E=>{var S=Jr(_,E,d,a,s);return T[e].overloadTable===void 0?(S.argCount=t-2,T[e]=S):T[e].overloadTable[t-2]=S,[]}),[]})},Kr=[],L=[],Yr=r=>{r>9&&--L[r+1]===0&&(L[r]=void 0,Kr.push(r))},Rn=()=>L.length/2-5-Kr.length,On=()=>{L.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Rn},N={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),L[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Kr.pop()||L.length;return L[e]=r,L[e+1]=1,e}}}},Ue={name:"emscripten::val",fromWireType:r=>{var e=N.toValue(r);return Yr(r),e},toWireType:(r,e)=>N.toHandle(e),argPackAdvance:x,readValueFromPointer:fr,destructorFunction:null},kn=r=>U(r,Ue),In=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(H[n])}:function(n){return this.fromWireType(O[n])};case 2:return t?function(n){return this.fromWireType(ir[n>>1])}:function(n){return this.fromWireType(cr[n>>1])};case 4:return t?function(n){return this.fromWireType(Q[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Wn=(r,e,t,n)=>{e=R(e);function i(){}i.values={},U(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:x,readValueFromPointer:In(e,t,n),destructorFunction:null}),Gr(e,i)},re=(r,e)=>{var t=J[r];return t===void 0&&$(`${e} has unknown type ${We(r)}`),t},jn=(r,e,t)=>{var n=re(r,"enum");e=R(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:dr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},ee=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Un=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(he[t>>2])};case 8:return function(t){return this.fromWireType(pe[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Dn=(r,e,t)=>{e=R(e),U(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Un(e,t),destructorFunction:null})},Mn=(r,e,t,n,i,a,s,o)=>{var u=qr(e,t);r=R(r),r=je(r),i=D(n,i),Gr(r,function(){Ir(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,l=>{var f=[l[0],null].concat(l.slice(1));return Oe(r,Jr(r,f,null,i,a),e-1),[]})},Bn=(r,e,t)=>{switch(e){case 1:return t?n=>H[n]:n=>O[n];case 2:return t?n=>ir[n>>1]:n=>cr[n>>1];case 4:return t?n=>Q[n>>2]:n=>w[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Hn=(r,e,t,n,i)=>{e=R(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,d)=>{},l;o?l=function(f,d){return u(d,this.name),d>>>0}:l=function(f,d){return u(d,this.name),d},U(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:x,readValueFromPointer:Bn(e,t,n!==0),destructorFunction:null})},xn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=w[s>>2],u=w[s+4>>2];return new i(H.buffer,u,o)}t=R(t),U(r,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Vn=Object.assign({optional:!0},Ue),Ln=(r,e)=>{U(r,Vn)},Nn=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},hr=(r,e,t)=>Nn(r,O,e,t),zn=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},De=typeof TextDecoder<"u"?new TextDecoder:void 0,Me=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&De)return De.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},Xn=(r,e)=>r?Me(O,r,e):"",Zn=(r,e)=>{e=R(e);var t=e==="std::string";U(r,{name:e,fromWireType(n){var i=w[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||O[l]==0){var f=l-o,d=Xn(o,f);s===void 0?s=d:(s+="\0",s+=d),o=l+1}}else{for(var _=new Array(i),u=0;u>2]=a,t&&s)hr(i,u,a+1);else if(s)for(var l=0;l255&&(z(u),$("String has UTF-16 code units that do not fit in 8 bits")),O[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&cr[n];)++n;if(t=n<<1,t-r>32&&Be)return Be.decode(O.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=ir[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},Qn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return ir[e>>1]=0,e-i},qn=r=>r.length*2,Jn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=Q[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},Kn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(Q[e>>2]=o,e+=4,e+4>a)break}return Q[e>>2]=0,e-i},Yn=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},ri=(r,e,t)=>{t=R(t);var n,i,a,s;e===2?(n=Gn,i=Qn,s=qn,a=o=>cr[o>>1]):e===4&&(n=Jn,i=Kn,s=Yn,a=o=>w[o>>2]),U(r,{name:t,fromWireType:o=>{for(var u=w[o>>2],l,f=o+4,d=0;d<=u;++d){var _=o+4+d*e;if(d==u||a(_)==0){var b=_-f,T=n(f,b);l===void 0?l=T:(l+="\0",l+=T),f=_+e}}return z(o),l},toWireType:(o,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=ie(4+l+e);return w[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(z,f),f},argPackAdvance:x,readValueFromPointer:fr,destructorFunction(o){z(o)}})},ei=(r,e,t,n,i,a)=>{Pr[r]={name:R(e),rawConstructor:D(t,n),rawDestructor:D(i,a),fields:[]}},ti=(r,e,t,n,i,a,s,o,u,l)=>{Pr[r].fields.push({fieldName:R(e),getterReturnType:t,getter:D(n,i),getterContext:a,setterArgumentType:s,setter:D(o,u),setterContext:l})},ni=(r,e)=>{e=R(e),U(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ii=(r,e,t)=>O.copyWithin(r,e,e+t),te=[],ai=(r,e,t,n)=>(r=te[r],e=N.toValue(e),r(null,e,t,n)),oi={},si=r=>{var e=oi[r];return e===void 0?R(r):e},He=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ui=r=>r===0?N.toHandle(He()):(r=si(r),N.toHandle(He()[r])),ci=r=>{var e=te.length;return te.push(r),e},li=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},fi=Reflect.construct,vi=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&(w[e>>2]=N.toHandle(n)),i},di=(r,e,t)=>{var n=li(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,d)=>{for(var _=0,b=0;bu.name).join(", ")}) => ${i.name}>`;return ci(dr(o,s))},hi=r=>{r>9&&(L[r+1]+=1)},pi=r=>{var e=N.toValue(r);zr(e),Yr(r)},_i=(r,e)=>{r=re(r,"_emval_take_value");var t=r.readValueFromPointer(e);return N.toHandle(t)},gi=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);w[r>>2]=l*60,Q[e>>2]=+(o!=u);var f=b=>{var T=b>=0?"-":"+",F=Math.abs(b),E=String(Math.floor(F/60)).padStart(2,"0"),S=String(F%60).padStart(2,"0");return`UTC${T}${E}${S}`},d=f(o),_=f(u);u2147483648,yi=(r,e)=>Math.ceil(r/e)*e,$i=r=>{var e=$r.buffer,t=(r-e.byteLength+65535)/65536|0;try{return $r.grow(t),_e(),1}catch{}},bi=r=>{var e=O.length;r>>>=0;var t=mi();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,yi(Math.max(r,i),65536)),s=$i(a);if(s)return!0}return!1},ne={},wi=()=>tr||"./this.program",pr=()=>{if(!pr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:wi()};for(var t in ne)ne[t]===void 0?delete e[t]:e[t]=ne[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);pr.strings=n}return pr.strings},Ci=(r,e)=>{for(var t=0;t{var t=0;return pr().forEach((n,i)=>{var a=e+t;w[r+i*4>>2]=a,Ci(n,a),t+=n.length+1}),0},Pi=(r,e)=>{var t=pr();w[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),w[e>>2]=n,0},Ai=r=>52;function Ei(r,e,t,n,i){return 70}var Si=[null,[],[]],Fi=(r,e)=>{var t=Si[r];e===0||e===10?((r===1?Ft:nr)(Me(t)),t.length=0):t.push(e)},Ri=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=w[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Oi=r=>r;Ce=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},tn(),or=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},dn(),bn(),Ie=c.UnboundTypeError=Pn(Error,"UnboundTypeError"),On();var ki={t:Nt,x:zt,a:Zt,j:Gt,k:Qt,Q:qt,r:Jt,ia:Kt,d:Xt,ea:Yt,wa:rn,da:en,qa:an,ua:An,ta:Sn,G:Fn,pa:kn,H:Wn,q:jn,Y:Dn,S:Mn,z:Hn,v:xn,va:Ln,W:Zn,R:ri,E:ei,xa:ti,ra:ni,la:ii,V:ai,ya:Yr,_:ui,X:di,Z:hi,$:pi,sa:_i,fa:gi,ja:bi,ga:Ti,ha:Pi,ka:Ai,ba:Ei,U:Ri,L:Yi,D:ea,N:Di,T:ua,s:Qi,b:Ii,F:Ki,na,c:Bi,ma:ia,i:Ui,h:Ni,n:zi,P:Ji,w:Xi,K:oa,M:qi,B:ta,J:ca,ca:fa,aa:va,m:Hi,g:Mi,e:ji,f:Wi,O:sa,l:Vi,oa:ra,o:xi,u:Zi,y:Gi,C:aa,p:Li,I:la,A:Oi},P=Lt(),xe=r=>(xe=P.Ba)(r),z=c._free=r=>(z=c._free=P.Ca)(r),ie=c._malloc=r=>(ie=c._malloc=P.Ea)(r),Ve=r=>(Ve=P.Fa)(r),p=(r,e)=>(p=P.Ga)(r,e),Le=r=>(Le=P.Ha)(r),Ne=r=>(Ne=P.Ia)(r),ze=()=>(ze=P.Ja)(),Xe=r=>(Xe=P.Ka)(r),Ze=r=>(Ze=P.La)(r),Ge=(r,e,t)=>(Ge=P.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=P.Na)(r,e,t,n,i,a,s);var Qe=c.dynCall_jiii=(r,e,t,n)=>(Qe=c.dynCall_jiii=P.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=P.Pa)(r,e,t,n,i);var qe=c.dynCall_jiiii=(r,e,t,n,i)=>(qe=c.dynCall_jiiii=P.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=P.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=P.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=P.Ta)(r,e,t,n,i,a,s,o,u,l);function Ii(r,e){var t=m();try{return y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Wi(r,e,t,n){var i=m();try{y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ji(r,e,t){var n=m();try{y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Ui(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Di(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Mi(r,e){var t=m();try{y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Bi(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Hi(r){var e=m();try{y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function xi(r,e,t,n,i,a){var s=m();try{y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Vi(r,e,t,n,i){var a=m();try{y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Li(r,e,t,n,i,a,s,o,u,l,f){var d=m();try{y(r)(e,t,n,i,a,s,o,u,l,f)}catch(_){if(g(d),_!==_+0)throw _;p(1,0)}}function Ni(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function zi(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Xi(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Zi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function Gi(r,e,t,n,i,a,s,o,u){var l=m();try{y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Qi(r){var e=m();try{return y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function qi(r,e,t,n,i,a,s,o,u){var l=m();try{return y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Ji(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Ki(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Yi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ra(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function ea(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function ta(r,e,t,n,i,a,s,o,u,l){var f=m();try{return y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function na(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function ia(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function aa(r,e,t,n,i,a,s,o,u,l){var f=m();try{y(r)(e,t,n,i,a,s,o,u,l)}catch(d){if(g(f),d!==d+0)throw d;p(1,0)}}function oa(r,e,t,n,i,a,s,o){var u=m();try{return y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function sa(r,e,t,n,i,a,s){var o=m();try{y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function ua(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ca(r,e,t,n,i,a,s,o,u,l,f,d){var _=m();try{return y(r)(e,t,n,i,a,s,o,u,l,f,d)}catch(b){if(g(_),b!==b+0)throw b;p(1,0)}}function la(r,e,t,n,i,a,s,o,u,l,f,d,_,b,T,F){var E=m();try{y(r)(e,t,n,i,a,s,o,u,l,f,d,_,b,T,F)}catch(S){if(g(E),S!==S+0)throw S;p(1,0)}}function fa(r,e,t,n){var i=m();try{return Qe(r,e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function va(r,e,t,n,i){var a=m();try{return qe(r,e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}var Wr,Je;lr=function r(){Wr||Ke(),Wr||(lr=r)};function Ke(){if(q>0||!Je&&(Je=1,Rt(),q>0))return;function r(){var e;Wr||(Wr=1,c.calledRun=1,!de&&(Ot(),I(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),kt()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Ke(),k=G,k}})();const le={...rr,formats:[...rr.formats]},fe={...Mr};function Ct(v){return mr(sr,v)}function Tt(v){return yt(sr,v)}async function Pt(v,h){return $t(sr,v,h)}async function At(v,h){return bt(sr,v,h)}async function Et(v,h){return wt(sr,v,h)}return A.barcodeFormats=Dr,A.binarizers=at,A.characterSets=st,A.contentTypes=se,A.defaultDecodeHints=le,A.defaultEncodeHints=fe,A.defaultReaderOptions=le,A.defaultWriterOptions=fe,A.eanAddOnSymbols=ct,A.getZXingModule=Ct,A.purgeZXingModule=mt,A.readBarcodesFromImageData=At,A.readBarcodesFromImageFile=Pt,A.readOutputEccLevels=ht,A.setZXingModuleOverrides=Tt,A.textModes=ft,A.writeBarcodeToImageFile=Et,A.writeInputEccLevels=dt,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),A}({}); diff --git a/node_modules/zxing-wasm/dist/iife/reader/index.js b/node_modules/zxing-wasm/dist/iife/reader/index.js new file mode 100644 index 0000000..a85d204 --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/reader/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(R){"use strict";const Dr=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function rt(d){return d.join("|")}function et(d){const h=ie(d);let P=0,j=Dr.length-1;for(;P<=j;){const c=Math.floor((P+j)/2),I=Dr[c],W=ie(I);if(W===h)return I;W{const P=d.match(/_(.+?)\.wasm$/);return P?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${P[1]}/${d}`:h+d}};let _r=new WeakMap;function Ur(d,h){var I;const P=_r.get(d);if(P!=null&&P.modulePromise&&(h===void 0||Object.is(h,P.moduleOverrides)))return P.modulePromise;const j=(I=h!=null?h:P==null?void 0:P.moduleOverrides)!=null?I:vt,c=d({...j});return _r.set(d,{moduleOverrides:j,modulePromise:c}),c}function dt(){_r=new WeakMap}function ht(d,h){_r.set(d,{moduleOverrides:h})}async function pt(d,h,P=rr){const j={...rr,...P},c=await Ur(d),{size:I}=h,W=new Uint8Array(await h.arrayBuffer()),G=c._malloc(I);c.HEAPU8.set(W,G);const er=c.readBarcodesFromImage(G,I,oe(c,j));c._free(G);const Z=[];for(let M=0;M{var h;var d=typeof document<"u"&&((h=document.currentScript)==null?void 0:h.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(P={}){var j,c=P,I,W,G=new Promise((r,e)=>{I=r,W=e}),er=typeof window=="object",Z=typeof Bun<"u",M=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var sr=Object.assign({},c),tr="./this.program",H="";function bt(r){return c.locateFile?c.locateFile(r,H):H+r}var ce,Mr;if(er||M||Z){var Hr;M?H=self.location.href:typeof document<"u"&&((Hr=document.currentScript)===null||Hr===void 0?void 0:Hr.tagName.toUpperCase())==="SCRIPT"&&(H=document.currentScript.src),d&&(H=d),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),M&&(Mr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ce=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}var wt=c.print||console.log.bind(console),nr=c.printErr||console.error.bind(console);Object.assign(c,sr),sr=null,c.arguments&&c.arguments,c.thisProgram&&(tr=c.thisProgram);var mr=c.wasmBinary,yr,le=!1,B,O,ir,ur,Q,w,fe,ve;function de(){var r=yr.buffer;c.HEAP8=B=new Int8Array(r),c.HEAP16=ir=new Int16Array(r),c.HEAPU8=O=new Uint8Array(r),c.HEAPU16=ur=new Uint16Array(r),c.HEAP32=Q=new Int32Array(r),c.HEAPU32=w=new Uint32Array(r),c.HEAPF32=fe=new Float32Array(r),c.HEAPF64=ve=new Float64Array(r)}var he=[],pe=[],_e=[];function Ct(){var r=c.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(At)),xr(he)}function Tt(){xr(pe)}function Pt(){var r=c.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(St)),xr(_e)}function At(r){he.unshift(r)}function Et(r){pe.unshift(r)}function St(r){_e.unshift(r)}var q=0,cr=null;function Ft(r){var e;q++,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q)}function Rt(r){var e;if(q--,(e=c.monitorRunDependencies)===null||e===void 0||e.call(c,q),q==0&&cr){var t=cr;cr=null,t()}}function Br(r){var e;(e=c.onAbort)===null||e===void 0||e.call(c,r),r="Aborted("+r+")",nr(r),le=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw W(t),t}var Ot="data:application/octet-stream;base64,",ge=r=>r.startsWith(Ot);function kt(){var r="zxing_reader.wasm";return ge(r)?r:bt(r)}var $r;function me(r){if(r==$r&&mr)return new Uint8Array(mr);if(Mr)return Mr(r);throw"both async and sync fetching of the wasm failed"}function jt(r){return mr?Promise.resolve().then(()=>me(r)):ce(r).then(e=>new Uint8Array(e),()=>me(r))}function ye(r,e,t){return jt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{nr(`failed to asynchronously prepare wasm: ${n}`),Br(n)})}function It(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!ge(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(i=>{var a=WebAssembly.instantiateStreaming(i,t);return a.then(n,function(s){return nr(`wasm streaming compile failed: ${s}`),nr("falling back to ArrayBuffer instantiation"),ye(e,t,n)})}):ye(e,t,n)}function Wt(){return{a:Pi}}function Dt(){var r,e=Wt();function t(i,a){return T=i.exports,yr=T.za,de(),Fe=T.Da,Et(T.Aa),Rt(),T}Ft();function n(i){t(i.instance)}if(c.instantiateWasm)try{return c.instantiateWasm(e,t)}catch(i){nr(`Module.instantiateWasm callback failed with error: ${i}`),W(i)}return(r=$r)!==null&&r!==void 0||($r=kt()),It(mr,$r,e,n).catch(W),{}}var xr=r=>{r.forEach(e=>e(c))};c.noExitRuntime;var g=r=>xe(r),m=()=>Ve(),br=[],wr=0,Ut=r=>{var e=new Vr(r);return e.get_caught()||(e.set_caught(!0),wr--),e.set_rethrown(!1),br.push(e),Le(r),He(r)},V=0,Mt=()=>{p(0,0);var r=br.pop();Ne(r.excPtr),V=0};class Vr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){w[this.ptr+4>>2]=e}get_type(){return w[this.ptr+4>>2]}set_destructor(e){w[this.ptr+8>>2]=e}get_destructor(){return w[this.ptr+8>>2]}set_caught(e){e=e?1:0,B[this.ptr+12]=e}get_caught(){return B[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,B[this.ptr+13]=e}get_rethrown(){return B[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){w[this.ptr+16>>2]=e}get_adjusted_ptr(){return w[this.ptr+16>>2]}}var Ht=r=>{throw V||(V=r),V},Cr=r=>Be(r),Nr=r=>{var e=V;if(!e)return Cr(0),0;var t=new Vr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Cr(0),e;for(var i of r){if(i===0||i===n)break;var a=t.ptr+16;if(ze(i,n,a))return Cr(i),e}return Cr(n),e},Bt=()=>Nr([]),xt=r=>Nr([r]),Vt=(r,e)=>Nr([r,e]),Nt=()=>{var r=br.pop();r||Br("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(br.push(r),r.set_rethrown(!0),r.set_caught(!1),wr++),V=e,V},Lt=(r,e,t)=>{var n=new Vr(r);throw n.init(e,t),V=r,wr++,V},zt=()=>wr,Xt=()=>{Br("")},Tr={},Lr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function lr(r){return this.fromWireType(w[r>>2])}var ar={},J={},Pr={},$e,Ar=r=>{throw new $e(r)},K=(r,e,t)=>{r.forEach(o=>Pr[o]=e);function n(o){var u=t(o);u.length!==r.length&&Ar("Mismatched type converter count");for(var l=0;l{J.hasOwnProperty(o)?i[u]=J[o]:(a.push(o),ar.hasOwnProperty(o)||(ar[o]=[]),ar[o].push(()=>{i[u]=J[o],++s,s===a.length&&n(i)}))}),a.length===0&&n(i)},Zt=r=>{var e=Tr[r];delete Tr[r];var t=e.rawConstructor,n=e.rawDestructor,i=e.fields,a=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));K([r],a,s=>{var o={};return i.forEach((u,l)=>{var f=u.fieldName,v=s[l],_=u.getter,b=u.getterContext,C=s[l+i.length],S=u.setter,A=u.setterContext;o[f]={read:E=>v.fromWireType(_(b,E)),write:(E,Y)=>{var k=[];S(A,E,C.toWireType(k,Y)),Lr(k)}}}),[{name:e.name,fromWireType:u=>{var l={};for(var f in o)l[f]=o[f].read(u);return n(u),l},toWireType:(u,l)=>{for(var f in o)if(!(f in l))throw new TypeError(`Missing field: "${f}"`);var v=t();for(f in o)o[f].write(v,l[f]);return u!==null&&u.push(n,v),v},argPackAdvance:x,readValueFromPointer:lr,destructorFunction:n}]})},Gt=(r,e,t,n,i)=>{},Qt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);be=r},be,F=r=>{for(var e="",t=r;O[t];)e+=be[O[t++]];return e},or,$=r=>{throw new or(r)};function qt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||$(`type "${n}" must have a positive integer typeid pointer`),J.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;$(`Cannot register type '${n}' twice`)}if(J[r]=e,delete Pr[r],ar.hasOwnProperty(r)){var i=ar[r];delete ar[r],i.forEach(a=>a())}}function D(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return qt(r,e,t)}var x=8,Jt=(r,e,t,n)=>{e=F(e),D(r,{name:e,fromWireType:function(i){return!!i},toWireType:function(i,a){return a?t:n},argPackAdvance:x,readValueFromPointer:function(i){return this.fromWireType(O[i])},destructorFunction:null})},Kt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),zr=r=>{function e(t){return t.$$.ptrType.registeredClass.name}$(e(r)+" instance already deleted")},Xr=!1,we=r=>{},Yt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Ce=r=>{r.count.value-=1;var e=r.count.value===0;e&&Yt(r)},Te=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Te(r,e,t.baseClass);return n===null?null:t.downcast(n)},Pe={},rn={},en=(r,e)=>{for(e===void 0&&$("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},tn=(r,e)=>(e=en(r,e),rn[e]),Er=(r,e)=>{(!e.ptrType||!e.ptr)&&Ar("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Ar("Both smartPtrType and smartPtr must be specified"),e.count={value:1},fr(Object.create(r,{$$:{value:e,writable:!0}}))};function nn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=tn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function i(){return this.isSmartPointer?Er(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Er(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a=this.registeredClass.getActualType(e),s=Pe[a];if(!s)return i.call(this);var o;this.isConst?o=s.constPointerType:o=s.pointerType;var u=Te(e,this.registeredClass,o.registeredClass);return u===null?i.call(this):this.isSmartPointer?Er(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:r}):Er(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}var fr=r=>typeof FinalizationRegistry>"u"?(fr=e=>e,r):(Xr=new FinalizationRegistry(e=>{Ce(e.$$)}),fr=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var i={$$:t};Xr.register(e,i,e)}return e},we=e=>Xr.unregister(e),fr(r)),Sr=[],an=()=>{for(;Sr.length;){var r=Sr.pop();r.$$.deleteScheduled=!1,r.delete()}},Ae,on=()=>{Object.assign(Fr.prototype,{isAliasOf(r){if(!(this instanceof Fr)||!(r instanceof Fr))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,i=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&t===i},clone(){if(this.$$.ptr||zr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=fr(Object.create(Object.getPrototypeOf(this),{$$:{value:Kt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),we(this),Ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||zr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$("Object already scheduled for deletion"),Sr.push(this),Sr.length===1&&Ae&&Ae(an),this.$$.deleteScheduled=!0,this}})};function Fr(){}var vr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Ee=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var i=arguments.length,a=new Array(i),s=0;s{c.hasOwnProperty(r)?((t===void 0||c[r].overloadTable!==void 0&&c[r].overloadTable[t]!==void 0)&&$(`Cannot register public name '${r}' twice`),Ee(c,r,r),c.hasOwnProperty(t)&&$(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),c[r].overloadTable[t]=e):(c[r]=e,t!==void 0&&(c[r].numArguments=t))},sn=48,un=57,cn=r=>{r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=sn&&e<=un?`_${r}`:r};function ln(r,e,t,n,i,a,s,o){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var Gr=(r,e,t)=>{for(;e!==t;)e.upcast||$(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function fn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Gr(e.$$.ptr,t,this.registeredClass);return n}function vn(r,e){var t;if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Gr(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&$("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:$(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var i=e.clone();t=this.rawShare(t,L.toHandle(()=>i.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:$("Unsupporting sharing policy")}return t}function dn(r,e){if(e===null)return this.isReference&&$(`null is not a valid ${this.name}`),0;e.$$||$(`Cannot pass "${re(e)}" as a ${this.name}`),e.$$.ptr||$(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&$(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Gr(e.$$.ptr,t,this.registeredClass);return n}var hn=()=>{Object.assign(Rr.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:x,readValueFromPointer:lr,fromWireType:nn})};function Rr(r,e,t,n,i,a,s,o,u,l,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=f,!i&&e.baseClass===void 0?n?(this.toWireType=fn,this.destructorFunction=null):(this.toWireType=dn,this.destructorFunction=null):this.toWireType=vn}var Se=(r,e,t)=>{c.hasOwnProperty(r)||Ar("Replacing nonexistent public symbol"),c[r].overloadTable!==void 0&&t!==void 0?c[r].overloadTable[t]=e:(c[r]=e,c[r].argCount=t)},pn=(r,e,t)=>{r=r.replace(/p/g,"i");var n=c["dynCall_"+r];return n(e,...t)},Or=[],Fe,y=r=>{var e=Or[r];return e||(r>=Or.length&&(Or.length=r+1),Or[r]=e=Fe.get(r)),e},_n=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return pn(r,e,t);var n=y(e)(...t);return n},gn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),i=0;i{r=F(r);function t(){return r.includes("j")?gn(r,e):y(e)}var n=t();return typeof n!="function"&&$(`unknown function pointer with signature ${r}: ${e}`),n},mn=(r,e)=>{var t=vr(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Re,Oe=r=>{var e=Me(r),t=F(e);return z(e),t},kr=(r,e)=>{var t=[],n={};function i(a){if(!n[a]&&!J[a]){if(Pr[a]){Pr[a].forEach(i);return}t.push(a),n[a]=!0}}throw e.forEach(i),new Re(`${r}: `+t.map(Oe).join([", "]))},yn=(r,e,t,n,i,a,s,o,u,l,f,v,_)=>{f=F(f),a=U(i,a),o&&(o=U(s,o)),l&&(l=U(u,l)),_=U(v,_);var b=cn(f);Zr(b,function(){kr(`Cannot construct ${f} due to unbound types`,[n])}),K([r,e,t],n?[n]:[],C=>{C=C[0];var S,A;n?(S=C.registeredClass,A=S.instancePrototype):A=Fr.prototype;var E=vr(f,function(){if(Object.getPrototypeOf(this)!==Y)throw new or("Use 'new' to construct "+f);if(k.constructor_body===void 0)throw new or(f+" has no accessible constructor");for(var Ke=arguments.length,Ir=new Array(Ke),Wr=0;Wr{for(var t=[],n=0;n>2]);return t};function $n(r){for(var e=1;e{var s=Qr(e,t);i=U(n,i),K([],[r],o=>{o=o[0];var u=`constructor ${o.name}`;if(o.registeredClass.constructor_body===void 0&&(o.registeredClass.constructor_body=[]),o.registeredClass.constructor_body[e-1]!==void 0)throw new or(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return o.registeredClass.constructor_body[e-1]=()=>{kr(`Cannot construct ${o.name} due to unbound types`,s)},K([],s,l=>(l.splice(1,0,null),o.registeredClass.constructor_body[e-1]=qr(u,l,null,i,a),[])),[]})},ke=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},wn=(r,e,t,n,i,a,s,o,u,l)=>{var f=Qr(t,n);e=F(e),e=ke(e),a=U(i,a),K([],[r],v=>{v=v[0];var _=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),o&&v.registeredClass.pureVirtualFunctions.push(e);function b(){kr(`Cannot call ${_} due to unbound types`,f)}var C=v.registeredClass.instancePrototype,S=C[e];return S===void 0||S.overloadTable===void 0&&S.className!==v.name&&S.argCount===t-2?(b.argCount=t-2,b.className=v.name,C[e]=b):(Ee(C,e,_),C[e].overloadTable[t-2]=b),K([],f,A=>{var E=qr(_,A,v,a,s);return C[e].overloadTable===void 0?(E.argCount=t-2,C[e]=E):C[e].overloadTable[t-2]=E,[]}),[]})},Jr=[],N=[],Kr=r=>{r>9&&--N[r+1]===0&&(N[r]=void 0,Jr.push(r))},Cn=()=>N.length/2-5-Jr.length,Tn=()=>{N.push(0,1,void 0,1,null,1,!0,1,!1,1),c.count_emval_handles=Cn},L={toValue:r=>(r||$("Cannot use deleted val. handle = "+r),N[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Jr.pop()||N.length;return N[e]=r,N[e+1]=1,e}}}},je={name:"emscripten::val",fromWireType:r=>{var e=L.toValue(r);return Kr(r),e},toWireType:(r,e)=>L.toHandle(e),argPackAdvance:x,readValueFromPointer:lr,destructorFunction:null},Pn=r=>D(r,je),An=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(B[n])}:function(n){return this.fromWireType(O[n])};case 2:return t?function(n){return this.fromWireType(ir[n>>1])}:function(n){return this.fromWireType(ur[n>>1])};case 4:return t?function(n){return this.fromWireType(Q[n>>2])}:function(n){return this.fromWireType(w[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},En=(r,e,t,n)=>{e=F(e);function i(){}i.values={},D(r,{name:e,constructor:i,fromWireType:function(a){return this.constructor.values[a]},toWireType:(a,s)=>s.value,argPackAdvance:x,readValueFromPointer:An(e,t,n),destructorFunction:null}),Zr(e,i)},Yr=(r,e)=>{var t=J[r];return t===void 0&&$(`${e} has unknown type ${Oe(r)}`),t},Sn=(r,e,t)=>{var n=Yr(r,"enum");e=F(e);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:vr(`${n.name}_${e}`,function(){})}});i.values[t]=a,i[e]=a},re=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Fn=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(fe[t>>2])};case 8:return function(t){return this.fromWireType(ve[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Rn=(r,e,t)=>{e=F(e),D(r,{name:e,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:x,readValueFromPointer:Fn(e,t),destructorFunction:null})},On=(r,e,t,n,i,a,s,o)=>{var u=Qr(e,t);r=F(r),r=ke(r),i=U(n,i),Zr(r,function(){kr(`Cannot call ${r} due to unbound types`,u)},e-1),K([],u,l=>{var f=[l[0],null].concat(l.slice(1));return Se(r,qr(r,f,null,i,a),e-1),[]})},kn=(r,e,t)=>{switch(e){case 1:return t?n=>B[n]:n=>O[n];case 2:return t?n=>ir[n>>1]:n=>ur[n>>1];case 4:return t?n=>Q[n>>2]:n=>w[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},jn=(r,e,t,n,i)=>{e=F(e);var a=f=>f;if(n===0){var s=32-8*t;a=f=>f<>>s}var o=e.includes("unsigned"),u=(f,v)=>{},l;o?l=function(f,v){return u(v,this.name),v>>>0}:l=function(f,v){return u(v,this.name),v},D(r,{name:e,fromWireType:a,toWireType:l,argPackAdvance:x,readValueFromPointer:kn(e,t,n!==0),destructorFunction:null})},In=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function a(s){var o=w[s>>2],u=w[s+4>>2];return new i(B.buffer,u,o)}t=F(t),D(r,{name:t,fromWireType:a,argPackAdvance:x,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},Wn=Object.assign({optional:!0},je),Dn=(r,e)=>{D(r,Wn)},Un=(r,e,t,n)=>{if(!(n>0))return 0;for(var i=t,a=t+n-1,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(o<=127){if(t>=a)break;e[t++]=o}else if(o<=2047){if(t+1>=a)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=a)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=a)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-i},dr=(r,e,t)=>Un(r,O,e,t),Mn=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},Ie=typeof TextDecoder<"u"?new TextDecoder:void 0,We=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,i=e;r[i]&&!(i>=n);)++i;if(i-e>16&&r.buffer&&Ie)return Ie.decode(r.subarray(e,i));for(var a="";e>10,56320|l&1023)}}return a},Hn=(r,e)=>r?We(O,r,e):"",Bn=(r,e)=>{e=F(e);var t=e==="std::string";D(r,{name:e,fromWireType(n){var i=w[n>>2],a=n+4,s;if(t)for(var o=a,u=0;u<=i;++u){var l=a+u;if(u==i||O[l]==0){var f=l-o,v=Hn(o,f);s===void 0?s=v:(s+="\0",s+=v),o=l+1}}else{for(var _=new Array(i),u=0;u>2]=a,t&&s)dr(i,u,a+1);else if(s)for(var l=0;l255&&(z(u),$("String has UTF-16 code units that do not fit in 8 bits")),O[u+l]=f}else for(var l=0;l{for(var t=r,n=t>>1,i=n+e/2;!(n>=i)&&ur[n];)++n;if(t=n<<1,t-r>32&&De)return De.decode(O.subarray(r,t));for(var a="",s=0;!(s>=e/2);++s){var o=ir[r+s*2>>1];if(o==0)break;a+=String.fromCharCode(o)}return a},Vn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var i=e,a=t>1]=o,e+=2}return ir[e>>1]=0,e-i},Nn=r=>r.length*2,Ln=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var i=Q[r+t*4>>2];if(i==0)break;if(++t,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|a&1023)}else n+=String.fromCharCode(i)}return n},zn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var i=e,a=i+t-4,s=0;s=55296&&o<=57343){var u=r.charCodeAt(++s);o=65536+((o&1023)<<10)|u&1023}if(Q[e>>2]=o,e+=4,e+4>a)break}return Q[e>>2]=0,e-i},Xn=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},Zn=(r,e,t)=>{t=F(t);var n,i,a,s;e===2?(n=xn,i=Vn,s=Nn,a=o=>ur[o>>1]):e===4&&(n=Ln,i=zn,s=Xn,a=o=>w[o>>2]),D(r,{name:t,fromWireType:o=>{for(var u=w[o>>2],l,f=o+4,v=0;v<=u;++v){var _=o+4+v*e;if(v==u||a(_)==0){var b=_-f,C=n(f,b);l===void 0?l=C:(l+="\0",l+=C),f=_+e}}return z(o),l},toWireType:(o,u)=>{typeof u!="string"&&$(`Cannot pass non-string to C++ string type ${t}`);var l=s(u),f=ne(4+l+e);return w[f>>2]=l/e,i(u,f+4,l+e),o!==null&&o.push(z,f),f},argPackAdvance:x,readValueFromPointer:lr,destructorFunction(o){z(o)}})},Gn=(r,e,t,n,i,a)=>{Tr[r]={name:F(e),rawConstructor:U(t,n),rawDestructor:U(i,a),fields:[]}},Qn=(r,e,t,n,i,a,s,o,u,l)=>{Tr[r].fields.push({fieldName:F(e),getterReturnType:t,getter:U(n,i),getterContext:a,setterArgumentType:s,setter:U(o,u),setterContext:l})},qn=(r,e)=>{e=F(e),D(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Jn=(r,e,t)=>O.copyWithin(r,e,e+t),ee=[],Kn=(r,e,t,n)=>(r=ee[r],e=L.toValue(e),r(null,e,t,n)),Yn={},ri=r=>{var e=Yn[r];return e===void 0?F(r):e},Ue=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ei=r=>r===0?L.toHandle(Ue()):(r=ri(r),L.toHandle(Ue()[r])),ti=r=>{var e=ee.length;return ee.push(r),e},ni=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},ii=Reflect.construct,ai=(r,e,t)=>{var n=[],i=r.toWireType(n,t);return n.length&&(w[e>>2]=L.toHandle(n)),i},oi=(r,e,t)=>{var n=ni(r,e),i=n.shift();r--;var a=new Array(r),s=(u,l,f,v)=>{for(var _=0,b=0;bu.name).join(", ")}) => ${i.name}>`;return ti(vr(o,s))},si=r=>{r>9&&(N[r+1]+=1)},ui=r=>{var e=L.toValue(r);Lr(e),Kr(r)},ci=(r,e)=>{r=Yr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return L.toHandle(t)},li=(r,e,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),u=s.getTimezoneOffset(),l=Math.max(o,u);w[r>>2]=l*60,Q[e>>2]=+(o!=u);var f=b=>{var C=b>=0?"-":"+",S=Math.abs(b),A=String(Math.floor(S/60)).padStart(2,"0"),E=String(S%60).padStart(2,"0");return`UTC${C}${A}${E}`},v=f(o),_=f(u);u2147483648,vi=(r,e)=>Math.ceil(r/e)*e,di=r=>{var e=yr.buffer,t=(r-e.byteLength+65535)/65536|0;try{return yr.grow(t),de(),1}catch{}},hi=r=>{var e=O.length;r>>>=0;var t=fi();if(r>t)return!1;for(var n=1;n<=4;n*=2){var i=e*(1+.2/n);i=Math.min(i,r+100663296);var a=Math.min(t,vi(Math.max(r,i),65536)),s=di(a);if(s)return!0}return!1},te={},pi=()=>tr||"./this.program",hr=()=>{if(!hr.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:pi()};for(var t in te)te[t]===void 0?delete e[t]:e[t]=te[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);hr.strings=n}return hr.strings},_i=(r,e)=>{for(var t=0;t{var t=0;return hr().forEach((n,i)=>{var a=e+t;w[r+i*4>>2]=a,_i(n,a),t+=n.length+1}),0},mi=(r,e)=>{var t=hr();w[r>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),w[e>>2]=n,0},yi=r=>52;function $i(r,e,t,n,i){return 70}var bi=[null,[],[]],wi=(r,e)=>{var t=bi[r];e===0||e===10?((r===1?wt:nr)(We(t)),t.length=0):t.push(e)},Ci=(r,e,t,n)=>{for(var i=0,a=0;a>2],o=w[e+4>>2];e+=8;for(var u=0;u>2]=i,0},Ti=r=>r;$e=c.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Qt(),or=c.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},on(),hn(),Re=c.UnboundTypeError=mn(Error,"UnboundTypeError"),Tn();var Pi={t:Ut,x:Mt,a:Bt,j:xt,k:Vt,O:Nt,q:Lt,ga:zt,d:Ht,ca:Xt,va:Zt,ba:Gt,pa:Jt,ta:yn,sa:bn,E:wn,oa:Pn,F:En,n:Sn,W:Rn,X:On,y:jn,u:In,ua:Dn,V:Bn,P:Zn,L:Gn,wa:Qn,qa:qn,ja:Jn,T:Kn,xa:Kr,ya:ei,U:oi,Y:si,Z:ui,ra:ci,da:li,ha:hi,ea:gi,fa:mi,ia:yi,$:$i,S:Ci,J:Xi,C:Gi,Q:Ri,R:ea,r:Vi,b:Ai,D:zi,la:qi,c:ki,ka:Ji,h:Fi,i:Di,s:Ui,N:Li,w:Hi,I:Yi,K:Ni,z:Qi,H:ta,aa:ia,_:aa,l:ji,f:Oi,e:Si,g:Ei,M:ra,m:Wi,ma:Zi,p:Mi,v:Bi,na:xi,B:Ki,o:Ii,G:na,A:Ti},T=Dt(),Me=r=>(Me=T.Ba)(r),z=c._free=r=>(z=c._free=T.Ca)(r),ne=c._malloc=r=>(ne=c._malloc=T.Ea)(r),He=r=>(He=T.Fa)(r),p=(r,e)=>(p=T.Ga)(r,e),Be=r=>(Be=T.Ha)(r),xe=r=>(xe=T.Ia)(r),Ve=()=>(Ve=T.Ja)(),Ne=r=>(Ne=T.Ka)(r),Le=r=>(Le=T.La)(r),ze=(r,e,t)=>(ze=T.Ma)(r,e,t);c.dynCall_viijii=(r,e,t,n,i,a,s)=>(c.dynCall_viijii=T.Na)(r,e,t,n,i,a,s);var Xe=c.dynCall_jiii=(r,e,t,n)=>(Xe=c.dynCall_jiii=T.Oa)(r,e,t,n);c.dynCall_jiji=(r,e,t,n,i)=>(c.dynCall_jiji=T.Pa)(r,e,t,n,i);var Ze=c.dynCall_jiiii=(r,e,t,n,i)=>(Ze=c.dynCall_jiiii=T.Qa)(r,e,t,n,i);c.dynCall_iiiiij=(r,e,t,n,i,a,s)=>(c.dynCall_iiiiij=T.Ra)(r,e,t,n,i,a,s),c.dynCall_iiiiijj=(r,e,t,n,i,a,s,o,u)=>(c.dynCall_iiiiijj=T.Sa)(r,e,t,n,i,a,s,o,u),c.dynCall_iiiiiijj=(r,e,t,n,i,a,s,o,u,l)=>(c.dynCall_iiiiiijj=T.Ta)(r,e,t,n,i,a,s,o,u,l);function Ai(r,e){var t=m();try{return y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function Ei(r,e,t,n){var i=m();try{y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Si(r,e,t){var n=m();try{y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Fi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Ri(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Oi(r,e){var t=m();try{y(r)(e)}catch(n){if(g(t),n!==n+0)throw n;p(1,0)}}function ki(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function ji(r){var e=m();try{y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Ii(r,e,t,n,i,a,s,o,u,l,f){var v=m();try{y(r)(e,t,n,i,a,s,o,u,l,f)}catch(_){if(g(v),_!==_+0)throw _;p(1,0)}}function Wi(r,e,t,n,i){var a=m();try{y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Di(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Ui(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Mi(r,e,t,n,i,a){var s=m();try{y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Hi(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function Bi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function xi(r,e,t,n,i,a,s,o,u){var l=m();try{y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Vi(r){var e=m();try{return y(r)()}catch(t){if(g(e),t!==t+0)throw t;p(1,0)}}function Ni(r,e,t,n,i,a,s,o,u){var l=m();try{return y(r)(e,t,n,i,a,s,o,u)}catch(f){if(g(l),f!==f+0)throw f;p(1,0)}}function Li(r,e,t,n,i,a,s){var o=m();try{return y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function zi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Xi(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function Zi(r,e,t,n,i,a,s,o){var u=m();try{y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function Gi(r,e,t,n,i,a){var s=m();try{return y(r)(e,t,n,i,a)}catch(o){if(g(s),o!==o+0)throw o;p(1,0)}}function Qi(r,e,t,n,i,a,s,o,u,l){var f=m();try{return y(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(g(f),v!==v+0)throw v;p(1,0)}}function qi(r,e,t){var n=m();try{return y(r)(e,t)}catch(i){if(g(n),i!==i+0)throw i;p(1,0)}}function Ji(r,e,t,n,i){var a=m();try{return y(r)(e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}function Ki(r,e,t,n,i,a,s,o,u,l){var f=m();try{y(r)(e,t,n,i,a,s,o,u,l)}catch(v){if(g(f),v!==v+0)throw v;p(1,0)}}function Yi(r,e,t,n,i,a,s,o){var u=m();try{return y(r)(e,t,n,i,a,s,o)}catch(l){if(g(u),l!==l+0)throw l;p(1,0)}}function ra(r,e,t,n,i,a,s){var o=m();try{y(r)(e,t,n,i,a,s)}catch(u){if(g(o),u!==u+0)throw u;p(1,0)}}function ea(r,e,t,n){var i=m();try{return y(r)(e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function ta(r,e,t,n,i,a,s,o,u,l,f,v){var _=m();try{return y(r)(e,t,n,i,a,s,o,u,l,f,v)}catch(b){if(g(_),b!==b+0)throw b;p(1,0)}}function na(r,e,t,n,i,a,s,o,u,l,f,v,_,b,C,S){var A=m();try{y(r)(e,t,n,i,a,s,o,u,l,f,v,_,b,C,S)}catch(E){if(g(A),E!==E+0)throw E;p(1,0)}}function ia(r,e,t,n){var i=m();try{return Xe(r,e,t,n)}catch(a){if(g(i),a!==a+0)throw a;p(1,0)}}function aa(r,e,t,n,i){var a=m();try{return Ze(r,e,t,n,i)}catch(s){if(g(a),s!==s+0)throw s;p(1,0)}}var jr,Ge;cr=function r(){jr||Qe(),jr||(cr=r)};function Qe(){if(q>0||!Ge&&(Ge=1,Ct(),q>0))return;function r(){var e;jr||(jr=1,c.calledRun=1,!le&&(Tt(),I(c),(e=c.onRuntimeInitialized)===null||e===void 0||e.call(c),Pt()))}c.setStatus?(c.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>c.setStatus(""),1),r()},1)):r()}if(c.preInit)for(typeof c.preInit=="function"&&(c.preInit=[c.preInit]);c.preInit.length>0;)c.preInit.pop()();return Qe(),j=G,j}})();const ue={...rr,formats:[...rr.formats]};function gt(d){return Ur(gr,d)}function mt(d){return ht(gr,d)}async function yt(d,h){return pt(gr,d,h)}async function $t(d,h){return _t(gr,d,h)}return R.barcodeFormats=Dr,R.binarizers=tt,R.characterSets=it,R.contentTypes=ae,R.defaultDecodeHints=ue,R.defaultReaderOptions=ue,R.eanAddOnSymbols=st,R.getZXingModule=gt,R.purgeZXingModule=dt,R.readBarcodesFromImageData=$t,R.readBarcodesFromImageFile=yt,R.readOutputEccLevels=ft,R.setZXingModuleOverrides=mt,R.textModes=ct,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({}); diff --git a/node_modules/zxing-wasm/dist/iife/writer/index.js b/node_modules/zxing-wasm/dist/iife/writer/index.js new file mode 100644 index 0000000..76d4e6a --- /dev/null +++ b/node_modules/zxing-wasm/dist/iife/writer/index.js @@ -0,0 +1,2 @@ +var ZXingWASM=function(F){"use strict";const fe=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataBarLimited","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],ve=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function le(d,_){return d.CharacterSet[_]}const de=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function _e(d,_){return{..._,characterSet:le(d,_.characterSet)}}function he(d){const{image:_,error:y}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:y}}const pe={locateFile:(d,_)=>{const y=d.match(/_(.+?)\.wasm$/);return y?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.3.4/dist/${y[1]}/${d}`:_+d}};let Y=new WeakMap;function Fr(d,_){var j;const y=Y.get(d);if(y!=null&&y.modulePromise&&(_===void 0||Object.is(_,y.moduleOverrides)))return y.modulePromise;const D=(j=_!=null?_:y==null?void 0:y.moduleOverrides)!=null?j:pe,u=d({...D});return Y.set(d,{moduleOverrides:D,modulePromise:u}),u}function ge(){Y=new WeakMap}function me(d,_){Y.set(d,{moduleOverrides:_})}async function ye(d,_,y=lr){const D={...lr,...y},u=await Fr(d),j=u.writeBarcodeToImage(_,_e(u,D));return he(j)}var dr=(()=>{var _;var d=typeof document<"u"&&((_=document.currentScript)==null?void 0:_.tagName.toUpperCase())==="SCRIPT"?document.currentScript.src:void 0;return function(y={}){var D,u=y,j,z,$e=new Promise((r,e)=>{j=r,z=e}),Ae=typeof window=="object",Ce=typeof Bun<"u",_r=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";var Pr=Object.assign({},u),R="";function Ee(r){return u.locateFile?u.locateFile(r,R):R+r}var Sr,hr;if(Ae||_r||Ce){var pr;_r?R=self.location.href:typeof document<"u"&&((pr=document.currentScript)===null||pr===void 0?void 0:pr.tagName.toUpperCase())==="SCRIPT"&&(R=document.currentScript.src),d&&(R=d),R.startsWith("blob:")?R="":R=R.substr(0,R.replace(/[?#].*/,"").lastIndexOf("/")+1),_r&&(hr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Sr=r=>fetch(r,{credentials:"same-origin"}).then(e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))}u.print||console.log.bind(console);var Z=u.printErr||console.error.bind(console);Object.assign(u,Pr),Pr=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram;var rr=u.wasmBinary,er,Wr=!1,O,$,N,Q,x,p,Ir,Ur;function kr(){var r=er.buffer;u.HEAP8=O=new Int8Array(r),u.HEAP16=N=new Int16Array(r),u.HEAPU8=$=new Uint8Array(r),u.HEAPU16=Q=new Uint16Array(r),u.HEAP32=x=new Int32Array(r),u.HEAPU32=p=new Uint32Array(r),u.HEAPF32=Ir=new Float32Array(r),u.HEAPF64=Ur=new Float64Array(r)}var Or=[],Mr=[],Dr=[];function Fe(){var r=u.preRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Se)),mr(Or)}function Re(){mr(Mr)}function Pe(){var r=u.postRun;r&&(typeof r=="function"&&(r=[r]),r.forEach(Ie)),mr(Dr)}function Se(r){Or.unshift(r)}function We(r){Mr.unshift(r)}function Ie(r){Dr.unshift(r)}var B=0,G=null;function Ue(r){var e;B++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,B)}function ke(r){var e;if(B--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,B),B==0&&G){var t=G;G=null,t()}}function gr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",Z(r),Wr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw z(t),t}var Oe="data:application/octet-stream;base64,",jr=r=>r.startsWith(Oe);function Me(){var r="zxing_writer.wasm";return jr(r)?r:Ee(r)}var tr;function Br(r){if(r==tr&&rr)return new Uint8Array(rr);if(hr)return hr(r);throw"both async and sync fetching of the wasm failed"}function De(r){return rr?Promise.resolve().then(()=>Br(r)):Sr(r).then(e=>new Uint8Array(e),()=>Br(r))}function Hr(r,e,t){return De(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),gr(n)})}function je(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!jr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),Hr(e,t,n)})}):Hr(e,t,n)}function Be(){return{a:an}}function He(){var r,e=Be();function t(a,i){return T=a.exports,er=T.Y,kr(),Jr=T.$,We(T.Z),ke(),T}Ue();function n(a){t(a.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,t)}catch(a){Z(`Module.instantiateWasm callback failed with error: ${a}`),z(a)}return(r=tr)!==null&&r!==void 0||(tr=Me()),je(rr,tr,e,n).catch(z),{}}var mr=r=>{r.forEach(e=>e(u))};u.noExitRuntime;var b=r=>te(r),w=()=>ne(),nr=[],Ve=r=>{var e=new yr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),nr.push(e),ie(r),se(r)},W=0,Ne=()=>{m(0,0);var r=nr.pop();ae(r.excPtr),W=0};class yr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){p[this.ptr+4>>2]=e}get_type(){return p[this.ptr+4>>2]}set_destructor(e){p[this.ptr+8>>2]=e}get_destructor(){return p[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){p[this.ptr+16>>2]=e}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var xe=r=>{throw W||(W=r),W},ar=r=>ee(r),br=r=>{var e=W;if(!e)return ar(0),0;var t=new yr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return ar(0),e;for(var a of r){if(a===0||a===n)break;var i=t.ptr+16;if(oe(a,n,i))return ar(a),e}return ar(n),e},Xe=()=>br([]),Le=r=>br([r]),Ze=(r,e)=>br([r,e]),Qe=()=>{var r=nr.pop();r||gr("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(nr.push(r),r.set_rethrown(!0),r.set_caught(!1)),W=e,W},Ge=(r,e,t)=>{var n=new yr(r);throw n.init(e,t),W=r,W},Je=()=>{gr("")},ir={},wr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function or(r){return this.fromWireType(p[r>>2])}var X={},H={},sr={},Vr,Nr=r=>{throw new Vr(r)},xr=(r,e,t)=>{r.forEach(s=>sr[s]=e);function n(s){var c=t(s);c.length!==r.length&&Nr("Mismatched type converter count");for(var f=0;f{H.hasOwnProperty(s)?a[c]=H[s]:(i.push(s),X.hasOwnProperty(s)||(X[s]=[]),X[s].push(()=>{a[c]=H[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Ke=r=>{var e=ir[r];delete ir[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));xr([r],i,o=>{var s={};return a.forEach((c,f)=>{var v=c.fieldName,l=o[f],h=c.getter,C=c.getterContext,M=o[f+a.length],K=c.setter,S=c.setterContext;s[v]={read:q=>l.fromWireType(h(C,q)),write:(q,Er)=>{var vr=[];K(S,q,M.toWireType(vr,Er)),wr(vr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var v in s)f[v]=s[v].read(c);return n(c),f},toWireType:(c,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in s)s[v].write(l,f[v]);return c!==null&&c.push(n,l),l},argPackAdvance:I,readValueFromPointer:or,destructorFunction:n}]})},qe=(r,e,t,n,a)=>{},Ye=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Xr=r},Xr,A=r=>{for(var e="",t=r;$[t];)e+=Xr[$[t++]];return e},Lr,E=r=>{throw new Lr(r)};function ze(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||E(`type "${n}" must have a positive integer typeid pointer`),H.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;E(`Cannot register type '${n}' twice`)}if(H[r]=e,delete sr[r],X.hasOwnProperty(r)){var a=X[r];delete X[r],a.forEach(i=>i())}}function P(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ze(r,e,t)}var I=8,rt=(r,e,t,n)=>{e=A(e),P(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:I,readValueFromPointer:function(a){return this.fromWireType($[a])},destructorFunction:null})},Tr=[],U=[],$r=r=>{r>9&&--U[r+1]===0&&(U[r]=void 0,Tr.push(r))},et=()=>U.length/2-5-Tr.length,tt=()=>{U.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=et},V={toValue:r=>(r||E("Cannot use deleted val. handle = "+r),U[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Tr.pop()||U.length;return U[e]=r,U[e+1]=1,e}}}},nt={name:"emscripten::val",fromWireType:r=>{var e=V.toValue(r);return $r(r),e},toWireType:(r,e)=>V.toHandle(e),argPackAdvance:I,readValueFromPointer:or,destructorFunction:null},at=r=>P(r,nt),it=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&E(`Cannot register public name '${r}' twice`),it(u,r,r),u.hasOwnProperty(t)&&E(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},ot=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType($[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(Q[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(p[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},st=(r,e,t,n)=>{e=A(e);function a(){}a.values={},P(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:I,readValueFromPointer:ot(e,t,n),destructorFunction:null}),Zr(e,a)},ur=(r,e)=>Object.defineProperty(e,"name",{value:r}),Qr=r=>{var e=re(r),t=A(e);return k(e),t},Gr=(r,e)=>{var t=H[r];return t===void 0&&E(`${e} has unknown type ${Qr(r)}`),t},ut=(r,e,t)=>{var n=Gr(r,"enum");e=A(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},ct=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Ir[t>>2])};case 8:return function(t){return this.fromWireType(Ur[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ft=(r,e,t)=>{e=A(e),P(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:I,readValueFromPointer:ct(e,t),destructorFunction:null})};function vt(r){for(var e=1;e{for(var t=[],n=0;n>2]);return t},_t=(r,e,t)=>{u.hasOwnProperty(r)||Nr("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},ht=(r,e,t)=>{r=r.replace(/p/g,"i");var n=u["dynCall_"+r];return n(e,...t)},cr=[],Jr,g=r=>{var e=cr[r];return e||(r>=cr.length&&(cr.length=r+1),cr[r]=e=Jr.get(r)),e},pt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return ht(r,e,t);var n=g(e)(...t);return n},gt=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a{r=A(r);function t(){return r.includes("j")?gt(r,e):g(e)}var n=t();return typeof n!="function"&&E(`unknown function pointer with signature ${r}: ${e}`),n},mt=(r,e)=>{var t=ur(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` +`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Kr,yt=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!H[i]){if(sr[i]){sr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Kr(`${r}: `+t.map(Qr).join([", "]))},bt=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},wt=(r,e,t,n,a,i,o,s)=>{var c=dt(e,t);r=A(r),r=bt(r),a=J(n,a),Zr(r,function(){yt(`Cannot call ${r} due to unbound types`,c)},e-1),xr([],c,f=>{var v=[f[0],null].concat(f.slice(1));return _t(r,lt(r,v,null,a,i),e-1),[]})},Tt=(r,e,t)=>{switch(e){case 1:return t?n=>O[n]:n=>$[n];case 2:return t?n=>N[n>>1]:n=>Q[n>>1];case 4:return t?n=>x[n>>2]:n=>p[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},$t=(r,e,t,n,a)=>{e=A(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<>>o}var s=e.includes("unsigned"),c=(v,l)=>{},f;s?f=function(v,l){return c(l,this.name),l>>>0}:f=function(v,l){return c(l,this.name),l},P(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:I,readValueFromPointer:Tt(e,t,n!==0),destructorFunction:null})},At=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=p[o>>2],c=p[o+4>>2];return new a(O.buffer,c,s)}t=A(t),P(r,{name:t,fromWireType:i,argPackAdvance:I,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Ct=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o=55296&&s<=57343){var c=r.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},Et=(r,e,t)=>Ct(r,$,e,t),Ft=r=>{for(var e=0,t=0;t=55296&&n<=57343?(e+=4,++t):e+=3}return e},qr=typeof TextDecoder<"u"?new TextDecoder:void 0,Rt=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN;for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&qr)return qr.decode(r.subarray(e,a));for(var i="";e>10,56320|f&1023)}}return i},Pt=(r,e)=>r?Rt($,r,e):"",St=(r,e)=>{e=A(e);var t=e==="std::string";P(r,{name:e,fromWireType(n){var a=p[n>>2],i=n+4,o;if(t)for(var s=i,c=0;c<=a;++c){var f=i+c;if(c==a||$[f]==0){var v=f-s,l=Pt(s,v);o===void 0?o=l:(o+="\0",o+=l),s=f+1}}else{for(var h=new Array(a),c=0;c>2]=i,t&&o)Et(a,c,i+1);else if(o)for(var f=0;f255&&(k(c),E("String has UTF-16 code units that do not fit in 8 bits")),$[c+f]=v}else for(var f=0;f{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&Q[n];)++n;if(t=n<<1,t-r>32&&Yr)return Yr.decode($.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=N[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},It=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t>1]=s,e+=2}return N[e>>1]=0,e-a},Ut=r=>r.length*2,kt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Ot=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o=55296&&s<=57343){var c=r.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(x[e>>2]=s,e+=4,e+4>i)break}return x[e>>2]=0,e-a},Mt=r=>{for(var e=0,t=0;t=55296&&n<=57343&&++t,e+=4}return e},Dt=(r,e,t)=>{t=A(t);var n,a,i,o;e===2?(n=Wt,a=It,o=Ut,i=s=>Q[s>>1]):e===4&&(n=kt,a=Ot,o=Mt,i=s=>p[s>>2]),P(r,{name:t,fromWireType:s=>{for(var c=p[s>>2],f,v=s+4,l=0;l<=c;++l){var h=s+4+l*e;if(l==c||i(h)==0){var C=h-v,M=n(v,C);f===void 0?f=M:(f+="\0",f+=M),v=h+e}}return k(s),f},toWireType:(s,c)=>{typeof c!="string"&&E(`Cannot pass non-string to C++ string type ${t}`);var f=o(c),v=Cr(4+f+e);return p[v>>2]=f/e,a(c,v+4,f+e),s!==null&&s.push(k,v),v},argPackAdvance:I,readValueFromPointer:or,destructorFunction(s){k(s)}})},jt=(r,e,t,n,a,i)=>{ir[r]={name:A(e),rawConstructor:J(t,n),rawDestructor:J(a,i),fields:[]}},Bt=(r,e,t,n,a,i,o,s,c,f)=>{ir[r].fields.push({fieldName:A(e),getterReturnType:t,getter:J(n,a),getterContext:i,setterArgumentType:o,setter:J(s,c),setterContext:f})},Ht=(r,e)=>{e=A(e),P(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Vt=(r,e,t)=>$.copyWithin(r,e,e+t),Ar=[],Nt=(r,e,t,n)=>(r=Ar[r],e=V.toValue(e),r(null,e,t,n)),xt={},Xt=r=>{var e=xt[r];return e===void 0?A(r):e},zr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Lt=r=>r===0?V.toHandle(zr()):(r=Xt(r),V.toHandle(zr()[r])),Zt=r=>{var e=Ar.length;return Ar.push(r),e},Qt=(r,e)=>{for(var t=new Array(r),n=0;n>2],"parameter "+n);return t},Gt=Reflect.construct,Jt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(p[e>>2]=V.toHandle(n)),a},Kt=(r,e,t)=>{var n=Qt(r,e),a=n.shift();r--;var i=new Array(r),o=(c,f,v,l)=>{for(var h=0,C=0;Cc.name).join(", ")}) => ${a.name}>`;return Zt(ur(s,o))},qt=r=>{r>9&&(U[r+1]+=1)},Yt=r=>{var e=V.toValue(r);wr(e),$r(r)},zt=()=>2147483648,rn=(r,e)=>Math.ceil(r/e)*e,en=r=>{var e=er.buffer,t=(r-e.byteLength+65535)/65536|0;try{return er.grow(t),kr(),1}catch{}},tn=r=>{var e=$.length;r>>>=0;var t=zt();if(r>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var i=Math.min(t,rn(Math.max(r,a),65536)),o=en(i);if(o)return!0}return!1},nn=r=>r;Vr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ye(),Lr=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},tt(),Kr=u.UnboundTypeError=mt(Error,"UnboundTypeError");var an={x:Ve,y:Ne,a:Xe,l:Le,u:Ze,N:Qe,n:Ge,f:xe,J:Je,T:Ke,I:qe,P:rt,O:at,R:st,k:ut,B:ft,S:wt,s:$t,o:At,A:St,z:Dt,C:jt,U:Bt,Q:Ht,L:Vt,F:Nt,W:$r,H:Lt,G:Kt,D:qt,X:Yt,K:tn,E:vn,v:wn,e:on,c:ln,m:fn,h:bn,i:gn,M:mn,q:dn,g:sn,d:pn,b:hn,j:cn,p:un,w:yn,r:Tn,t:_n,V:nn},T=He(),re=r=>(re=T._)(r),Cr=u._malloc=r=>(Cr=u._malloc=T.aa)(r),k=u._free=r=>(k=u._free=T.ba)(r),m=(r,e)=>(m=T.ca)(r,e),ee=r=>(ee=T.da)(r),te=r=>(te=T.ea)(r),ne=()=>(ne=T.fa)(),ae=r=>(ae=T.ga)(r),ie=r=>(ie=T.ha)(r),oe=(r,e,t)=>(oe=T.ia)(r,e,t),se=r=>(se=T.ja)(r);function on(r,e){var t=w();try{return g(r)(e)}catch(n){if(b(t),n!==n+0)throw n;m(1,0)}}function sn(r,e){var t=w();try{g(r)(e)}catch(n){if(b(t),n!==n+0)throw n;m(1,0)}}function un(r,e,t,n,a,i){var o=w();try{g(r)(e,t,n,a,i)}catch(s){if(b(o),s!==s+0)throw s;m(1,0)}}function cn(r,e,t,n,a){var i=w();try{g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function fn(r,e,t,n){var a=w();try{return g(r)(e,t,n)}catch(i){if(b(a),i!==i+0)throw i;m(1,0)}}function vn(r,e,t,n,a){var i=w();try{return g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function ln(r,e,t){var n=w();try{return g(r)(e,t)}catch(a){if(b(n),a!==a+0)throw a;m(1,0)}}function dn(r){var e=w();try{g(r)()}catch(t){if(b(e),t!==t+0)throw t;m(1,0)}}function _n(r,e,t,n,a,i,o,s,c,f,v){var l=w();try{g(r)(e,t,n,a,i,o,s,c,f,v)}catch(h){if(b(l),h!==h+0)throw h;m(1,0)}}function hn(r,e,t,n){var a=w();try{g(r)(e,t,n)}catch(i){if(b(a),i!==i+0)throw i;m(1,0)}}function pn(r,e,t){var n=w();try{g(r)(e,t)}catch(a){if(b(n),a!==a+0)throw a;m(1,0)}}function gn(r,e,t,n,a,i){var o=w();try{return g(r)(e,t,n,a,i)}catch(s){if(b(o),s!==s+0)throw s;m(1,0)}}function mn(r,e,t,n,a,i,o){var s=w();try{return g(r)(e,t,n,a,i,o)}catch(c){if(b(s),c!==c+0)throw c;m(1,0)}}function yn(r,e,t,n,a,i,o,s){var c=w();try{g(r)(e,t,n,a,i,o,s)}catch(f){if(b(c),f!==f+0)throw f;m(1,0)}}function bn(r,e,t,n,a){var i=w();try{return g(r)(e,t,n,a)}catch(o){if(b(i),o!==o+0)throw o;m(1,0)}}function wn(r){var e=w();try{return g(r)()}catch(t){if(b(e),t!==t+0)throw t;m(1,0)}}function Tn(r,e,t,n,a,i,o,s,c){var f=w();try{g(r)(e,t,n,a,i,o,s,c)}catch(v){if(b(f),v!==v+0)throw v;m(1,0)}}var fr,ue;G=function r(){fr||ce(),fr||(G=r)};function ce(){if(B>0||!ue&&(ue=1,Fe(),B>0))return;function r(){var e;fr||(fr=1,u.calledRun=1,!Wr&&(Re(),j(u),(e=u.onRuntimeInitialized)===null||e===void 0||e.call(u),Pe()))}u.setStatus?(u.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>u.setStatus(""),1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return ce(),D=$e,D}})();const Rr={...lr};function be(d){return Fr(dr,d)}function we(d){return me(dr,d)}async function Te(d,_){return ye(dr,d,_)}return F.barcodeFormats=fe,F.characterSets=ve,F.defaultEncodeHints=Rr,F.defaultWriterOptions=Rr,F.getZXingModule=be,F.purgeZXingModule=ge,F.setZXingModuleOverrides=we,F.writeBarcodeToImageFile=Te,F.writeInputEccLevels=de,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),F}({}); diff --git a/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm b/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm new file mode 100644 index 0000000..19cb444 Binary files /dev/null and b/node_modules/zxing-wasm/dist/reader/zxing_reader.wasm differ diff --git a/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm b/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm new file mode 100644 index 0000000..fe9fccd Binary files /dev/null and b/node_modules/zxing-wasm/dist/writer/zxing_writer.wasm differ diff --git a/node_modules/zxing-wasm/package.json b/node_modules/zxing-wasm/package.json new file mode 100644 index 0000000..8da6ae1 --- /dev/null +++ b/node_modules/zxing-wasm/package.json @@ -0,0 +1,155 @@ +{ + "_from": "zxing-wasm@1.3.4", + "_id": "zxing-wasm@1.3.4", + "_inBundle": false, + "_integrity": "sha512-9l0QymyATF19FmI92QHe7Dayb+BUN7P7zFAt5iDgTnUf0dFWokz6GVA/W9EepjW5q8s3e89fIE/7uxpX27yqEQ==", + "_location": "/zxing-wasm", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "zxing-wasm@1.3.4", + "name": "zxing-wasm", + "escapedName": "zxing-wasm", + "rawSpec": "1.3.4", + "saveSpec": null, + "fetchSpec": "1.3.4" + }, + "_requiredBy": [ + "/barcode-detector" + ], + "_resolved": "https://registry.npmmirror.com/zxing-wasm/-/zxing-wasm-1.3.4.tgz", + "_shasum": "4bc45b78dc3594278bb0c24233bfb035ca9efab1", + "_spec": "zxing-wasm@1.3.4", + "_where": "D:\\work\\tourGuide\\node_modules\\barcode-detector", + "author": { + "name": "Ze-Zheng Wu" + }, + "bugs": { + "url": "https://github.com/Sec-ant/zxing-wasm/issues", + "email": "zezhengwu@proton.me" + }, + "bundleDependencies": false, + "dependencies": { + "@types/emscripten": "^1.39.13" + }, + "deprecated": false, + "description": "ZXing-C++ WebAssembly as an ES/CJS module with types", + "devDependencies": { + "@babel/core": "^7.26.0", + "@babel/types": "^7.26.0", + "@biomejs/biome": "1.9.4", + "@changesets/cli": "^2.27.9", + "@types/babel__core": "^7.20.5", + "@types/node": "^22.9.0", + "@vitest/ui": "^2.1.4", + "concurrently": "^9.1.0", + "copy-files-from-to": "^3.11.0", + "jimp": "^1.6.0", + "lint-staged": "^15.2.10", + "nano-memoize": "^3.0.16", + "prettier": "^3.3.3", + "pretty-quick": "^4.0.0", + "rimraf": "^6.0.1", + "simple-git-hooks": "^2.11.1", + "tinyglobby": "^0.2.10", + "tsx": "^4.19.2", + "typedoc": "^0.26.11", + "typescript": "^5.6.3", + "vite": "^5.4.10", + "vite-plugin-babel": "^1.2.0", + "vitest": "^2.1.4" + }, + "exports": { + ".": { + "import": "./dist/es/full/index.js", + "require": "./dist/cjs/full/index.js", + "default": "./dist/es/full/index.js" + }, + "./full": { + "import": "./dist/es/full/index.js", + "require": "./dist/cjs/full/index.js", + "default": "./dist/es/full/index.js" + }, + "./reader": { + "import": "./dist/es/reader/index.js", + "require": "./dist/cjs/reader/index.js", + "default": "./dist/es/reader/index.js" + }, + "./writer": { + "import": "./dist/es/writer/index.js", + "require": "./dist/cjs/writer/index.js", + "default": "./dist/es/writer/index.js" + }, + "./reader/zxing_reader.wasm": "./dist/reader/zxing_reader.wasm", + "./writer/zxing_writer.wasm": "./dist/writer/zxing_writer.wasm", + "./full/zxing_full.wasm": "./dist/full/zxing_full.wasm" + }, + "files": [ + "./dist" + ], + "homepage": "https://github.com/Sec-ant/zxing-wasm", + "keywords": [ + "qrcode", + "barcode", + "wasm", + "zxing", + "zxing-cpp", + "esmodule", + "webassembly" + ], + "license": "MIT", + "main": "./dist/cjs/full/index.js", + "module": "./dist/es/full/index.js", + "name": "zxing-wasm", + "overrides": { + "typedoc": { + "typescript": "$typescript" + } + }, + "private": false, + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Sec-ant/zxing-wasm.git" + }, + "scripts": { + "build": "conc \"pnpm:build:es\" \"pnpm:build:cjs\" \"pnpm:build:iife\"", + "build:all": "pnpm -s submodule:init && pnpm -s cmake && pnpm -s build:wasm && pnpm -s build", + "build:cjs": "tsx ./scripts/build-cjs.ts", + "build:es": "vite build", + "build:iife": "tsx ./scripts/build-iife.ts", + "build:wasm": "cmake --build build -j$(($(nproc 2>/dev/null || sysctl -n hw.logicalcpu) - 1))", + "bump-biome:latest": "pnpm add -DE @biomejs/biome@latest", + "bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly", + "check": "pnpm -s format:prettier && pnpm -s check:biome", + "check:biome": "biome check --write .", + "clear:dist": "rimraf dist", + "cmake": "emcmake cmake -S src/cpp -B build", + "copy:wasm": "copy-files-from-to", + "dev": "vite", + "docs:build": "typedoc --excludeInternal", + "docs:dev": "conc \"pnpm:docs:preview\" \"typedoc --watch --excludeInternal\"", + "docs:preview": "vite preview --outDir ./docs", + "format": "pnpm -s format:prettier && pnpm -s format:biome", + "format:biome": "biome format . --write", + "format:prettier": "pretty-quick", + "lint": "biome lint .", + "postbuild": "conc \"pnpm:copy:wasm\" \"pnpm:docs:build\"", + "postbuild:cjs": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/cjs", + "postbuild:es": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/es", + "prebuild": "pnpm -s check && pnpm -s type-check && pnpm -s clear:dist", + "preview": "vite preview", + "submodule:init": "git submodule update --init", + "submodule:update": "git submodule update --remote", + "sync-emsdk": "./scripts/sync-emsdk.sh", + "test": "vitest --hideSkippedTests", + "test:ui": "vitest --hideSkippedTests --ui", + "type-check": "tsc -p ./tsconfig.pkg.json --noEmit --emitDeclarationOnly false", + "update-hooks": "simple-git-hooks" + }, + "type": "module", + "version": "1.3.4" +} diff --git a/pages/index/index.vue b/pages/index/index.vue index afb3a88..143b7f5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@ @@ -39,7 +43,9 @@
    \ No newline at end of file + document.write('')
    \ No newline at end of file diff --git a/unpackage/dist/build/web/static/js/CommonFunction.js b/unpackage/dist/build/web/static/js/CommonFunction.js index 7b9045c..68291ab 100644 --- a/unpackage/dist/build/web/static/js/CommonFunction.js +++ b/unpackage/dist/build/web/static/js/CommonFunction.js @@ -167,6 +167,22 @@ Vue.prototype.ShowDateDay = day => { } // 手机号显示加密 -Vue.prototype.encryptPhone = (phone) =>{ +Vue.prototype.encryptPhone = (phone) => { return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); +} + +// 计算两个经纬度间的距离 +Vue.prototype.calculateDistance = (lat1, lon1, lat2, lon2) => { + const R = 6371e3; // 地球半径,单位:米 + const φ1 = lat1 * (Math.PI / 180); + const φ2 = lat2 * (Math.PI / 180); + const Δφ = (lat2 - lat1) * (Math.PI / 180); + const Δλ = (lon2 - lon1) * (Math.PI / 180); + + const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) + + Math.cos(φ1) * Math.cos(φ2) * + Math.sin(Δλ / 2) * Math.sin(Δλ / 2); + const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); + + return R * c; } \ No newline at end of file diff --git a/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js b/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js new file mode 100644 index 0000000..5bc71be --- /dev/null +++ b/unpackage/dist/build/web/static/js/chunk-vendors.27f6cb6a.js @@ -0,0 +1,13 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00c2":function(t,e,n){"use strict";var r=n("bb80"),i=n("338c"),o=n("f660"),a=n("036b").indexOf,c=n("11bf"),s=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(c,n)&&i(r,n)&&s(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||s(l,n));return l}},"00ca":function(t,e,n){var r=n("56c8"),i=n("da1d"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"0173":function(t,e,n){"use strict";var r,i,o=n("85c1"),a=n("29d8"),c=o.process,s=o.Deno,u=c&&c.versions||s&&s.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"01a2":function(t,e,n){"use strict";n("223c"),n("e5d4"),n("0768"),n("d4b5"),n("6994")},"036b":function(t,e,n){"use strict";var r=n("f660"),i=n("e34c"),o=n("1fc1"),a=function(t){return function(e,n,a){var c=r(e),s=o(c);if(0===s)return!t&&-1;var u,l=i(a,s);if(t&&n!==n){while(s>l)if(u=c[l++],u!==u)return!0}else for(;s>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"03a0":function(t,e,n){"use strict";var r=n("bb80"),i=n("497b"),o=n("9e70"),a=n("862c"),c=r("".charAt),s=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),d=i(n),h=f.length;return d<0||d>=h?t?"":void 0:(r=s(f,d),r<55296||r>56319||d+1===h||(l=s(f,d+1))<56320||l>57343?t?c(f,d):r:t?u(f,d,d+2):l-56320+(r-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},"03dc":function(t,e,n){"use strict";var r=n("03a0").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0506":function(t,e,n){"use strict";n("5c47");var r=n("8bdb"),i=n("71e9"),o=n("474f"),a=n("e7e3"),c=n("9e70"),s=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=/./.test;r({target:"RegExp",proto:!0,forced:!s},{test:function(t){var e=a(this),n=c(t),r=e.exec;if(!o(r))return i(u,e,n);var s=i(r,e,n);return null!==s&&(a(s),!0)}})},"0699":function(t,e,n){var r=n("d191"),i=n("d5ca"),o=n("c646"),a=n("29d5"),c=a("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||o(n=r(a)[c])?e:i(n)}},"0768":function(t,e,n){"use strict";var r=n("8bdb"),i=n("338c"),o=n("ddd3"),a=n("52df"),c=n("8b3b"),s=n("5b2c"),u=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(u,t))return u[t]}})},"07da":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("474f"),a=n("ada5"),c=n("9ad8"),s=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return r(c,t,e);throw new s("RegExp#exec called on incompatible receiver")}},"0829":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ea07").entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},"08eb":function(t,e,n){"use strict";var r=n("8bdb"),i=n("3d77"),o=n("29ba"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},"0931":function(t,e,n){"use strict";var r=n("8c08"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"0b5a":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"0c26":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ee98").trim,o=n("8b27");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"0cc2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("a734"),a=n("8945"),c=n("474f"),s=n("4afb"),u=n("c337"),l=n("8c4f"),f=n("181d"),d=n("6aca"),h=n("81a9"),p=n("8c08"),v=n("799d"),g=n("5057"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,k){s(n,e,a);var S,C,T,O=function(t){if(t===p&&j)return j;if(!_&&t&&t in I)return I[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,I=t.prototype,L=I[w]||I["@@iterator"]||p&&I[p],j=!_&&L||O(p),M="Array"===e&&I.entries||L;if(M&&(S=u(M.call(new t)),S!==Object.prototype&&S.next&&(o||u(S)===y||(l?l(S,y):c(S[w])||h(S,w,x)),f(S,E,!0,!0),o&&(v[E]=x))),m&&"values"===p&&L&&"values"!==L.name&&(!o&&b?d(I,"name","values"):(A=!0,j=function(){return i(L,this)})),p)if(C={values:O("values"),keys:g?j:O("keys"),entries:O("entries")},k)for(T in C)(_||A||!(T in I))&&h(I,T,C[T]);else r({target:e,proto:!0,forced:_||A},C);return o&&!k||I[w]===j||h(I,w,j,{name:p}),v[e]=j,C}},"0e36":function(t,e,n){var r=n("d95b"),i=n("d970"),o=n("1e5d"),a=function(t){return function(e,n,a){var c,s=r(e),u=o(s),l=i(a,u);if(t&&n!=n){while(u>l)if(c=s[l++],c!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"0e40":function(t,e,n){"use strict";var r=n("86ca");t.exports=Math.fround||function(t){return r(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},"0ee4":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},1001:function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=Math.floor,a=r("".charAt),c=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,d){var h=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=u),c(d,v,(function(i,c){var u;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,h);case"<":u=f[s(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>p){var d=o(l/10);return 0===d?i:d<=p?void 0===r[d-1]?a(c,1):r[d-1]+a(c,1):i}u=r[l-1]}return void 0===u?"":u}))}},1099:function(t,e,n){"use strict";var r=n("862c"),i=Object;t.exports=function(t){return i(r(t))}},"114e":function(t,e,n){"use strict";var r=n("85c1"),i=n("181d");i(r.JSON,"JSON",!0)},"11bf":function(t,e,n){"use strict";t.exports={}},1297:function(t,e,n){"use strict";var r=n("bb80");t.exports=r({}.isPrototypeOf)},12973:function(t,e,n){"use strict";var r=n("7ddb"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=i(this).length,n=a(e/2),r=0;while(r0?i(r(t),9007199254740991):0}},1535:function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=/#|\.prototype\./,a=function(t,e){var n=s[c(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},c=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},"15ab":function(t,e,n){"use strict";var r=n("7658"),i=n("57e7");r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},"15d1":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("bb80"),c=n("71e9"),s=n("af9e"),u=n("9e70"),l=n("7f28"),f=n("3b19").c2i,d=/[^\d+/a-z]/i,h=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,m=a("".charAt),b=a("".replace),y=a(d.exec),_=!!v&&!s((function(){return"hi"!==v("aGk=")})),w=_&&s((function(){return""!==v(" ")})),x=_&&!s((function(){v("a")})),k=_&&!s((function(){v()})),S=_&&1!==v.length,C=!_||w||x||k||S;r({global:!0,bind:!0,enumerable:!0,forced:C},{atob:function(t){if(l(arguments.length,1),_&&!w&&!x)return c(v,i,t);var e,n,r,a=b(u(t),h,""),s="",k=0,S=0;if(a.length%4===0&&(a=b(a,p,"")),e=a.length,e%4===1||y(d,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(k>(-2*S&6)));return s}})},"175f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("338c"),o=n("6aca"),a=n("1297"),c=n("8c4f"),s=n("3d8a"),u=n("e157"),l=n("dcda"),f=n("e7da"),d=n("5330"),h=n("8cb1"),p=n("ab4a"),v=n("a734");t.exports=function(t,e,n,g){var m=g?2:1,b=t.split("."),y=b[b.length-1],_=r.apply(null,b);if(_){var w=_.prototype;if(!v&&i(w,"cause")&&delete w.cause,!n)return _;var x=r("Error"),k=e((function(t,e){var n=f(g?e:t,void 0),r=g?new _(t):new _;return void 0!==n&&o(r,"message",n),h(r,k,r.stack,2),this&&a(w,this)&&l(r,this,k),arguments.length>m&&d(r,arguments[m]),r}));if(k.prototype=w,"Error"!==y?c?c(k,x):s(k,x,{name:!0}):p&&"stackTraceLimit"in _&&(u(k,_,"stackTraceLimit"),u(k,_,"prepareStackTrace")),s(k,_),!v)try{w.name!==y&&o(w,"name",y),w.constructor=k}catch(S){}return k}}},"177f":function(t,e,n){var r=n("85e5"),i=n("d10a");t.exports=function(t){if("Function"===r(t))return i(t)}},"17fc":function(t,e,n){"use strict";var r=n("ac5f"),i=n("8ae2"),o=n("1c06"),a=n("8c08"),c=a("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===s||r(e.prototype))?e=void 0:o(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?s:e}},"181d":function(t,e,n){"use strict";var r=n("d6b1").f,i=n("338c"),o=n("8c08"),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},1851:function(t,e,n){"use strict";var r=n("8bdb"),i=n("84d6"),o=n("1cb5");r({target:"Array",proto:!0},{fill:i}),o("fill")},"18e4":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t,"string");return"symbol"===(0,r.default)(e)?e:String(e)};var r=o(n("fcf3")),i=o(n("fab0"));function o(t){return t&&t.__esModule?t:{default:t}}},"18f7":function(t,e,n){"use strict";var r=n("03a0").charAt,i=n("9e70"),o=n("235c"),a=n("0cc2"),c=n("97ed"),s=o.set,u=o.getterFor("String Iterator");a(String,"String",(function(t){s(this,{type:"String Iterator",string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?c(void 0,!0):(t=r(n,i),e.index+=t.length,c(t,!1))}))},1954:function(t,e,n){"use strict";var r=n("85c1"),i=n("9f9e"),o=n("7ddb"),a=n("af9e"),c=n("37ad"),s=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!s&&a((function(){f.call(new s(1))})),h=a((function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(f,d?c(u(this)):u(this),c(arguments))}),h)},1959:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f0b5"),a=n("f439"),c=n("a5c6"),s=n("7c26"),u=n("59f8");r({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,l=c((function(){var n=o(e.resolve),a=[],c=0,l=1;s(t,(function(t){var o=c++,s=!1;l++,i(n,e,t).then((function(t){s||(s=!0,a[o]=t,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},"198e":function(t,e,n){"use strict";var r=n("7ddb"),i=n("323c"),o=n("af9e"),a=n("37ad"),c=r.aTypedArray,s=r.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));s("slice",(function(t,e){var n=a(c(this),t,e),r=i(this),o=0,s=n.length,u=new r(s);while(s>o)u[o]=n[o++];return u}),u)},"1aad":function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},"1ad7":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"1ae3":function(t,e,n){var r=n("fdca"),i=n("c2d7"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},"1b8e":function(t,e,n){var r=n("720d"),i=n("218d"),o=n("c646"),a=n("d459"),c=n("29d5"),s=c("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},"1c06":function(t,e,n){"use strict";var r=n("474f");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},"1c16":function(t,e,n){"use strict";var r=n("3c7a"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw new i("Wrong offset");return n}},"1cb5":function(t,e,n){"use strict";var r=n("8c08"),i=n("e37c"),o=n("d6b1").f,a=r("unscopables"),c=Array.prototype;void 0===c[a]&&o(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"1cf1":function(t,e,n){"use strict";var r=n("7ddb").exportTypedArrayMethod,i=n("af9e"),o=n("85c1"),a=n("bb80"),c=o.Uint8Array,s=c&&c.prototype||{},u=[].toString,l=a([].join);i((function(){u.call({})}))&&(u=function(){return l(this)});var f=s.toString!==u;r("toString",u,f)},"1d18":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);s=!0);}catch(l){u=!0,i=l}finally{try{if(!s&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return c}},n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("aa9c")},"1d57":function(t,e,n){"use strict";var r=n("af9e");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"1ded":function(t,e,n){"use strict";var r=n("ab4a"),i=n("71e9"),o=n("346b"),a=n("0b5a"),c=n("f660"),s=n("f9ed"),u=n("338c"),l=n("2ba7"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=s(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"1e4f":function(t,e,n){var r=n("29d5"),i=n("d459"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},"1e5d":function(t,e,n){var r=n("1501");t.exports=function(t){return r(t.length)}},"1ea2":function(t,e,n){"use strict";var r=n("af9e"),i=n("1c06"),o=n("ada5"),a=n("5d6e"),c=Object.isExtensible,s=r((function(){c(1)}));t.exports=s||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!c||c(t)))}:c},"1eb8":function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},"1faa":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1fc1":function(t,e,n){"use strict";var r=n("c435");t.exports=function(t){return r(t.length)}},"218d":function(t,e,n){var r=n("f0b5"),i=n("c646");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"223c":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("bb80"),c=n("a734"),s=n("ab4a"),u=n("af71"),l=n("af9e"),f=n("338c"),d=n("1297"),h=n("e7e3"),p=n("f660"),v=n("f9ed"),g=n("9e70"),m=n("0b5a"),b=n("e37c"),y=n("ff4f"),_=n("80bb"),w=n("8449"),x=n("7d3c"),k=n("1ded"),S=n("d6b1"),C=n("a3fb"),T=n("346b"),O=n("81a9"),E=n("e4ca"),A=n("8b3b"),I=n("b223"),L=n("11bf"),j=n("d7b4"),M=n("8c08"),P=n("9917"),$=n("f259"),R=n("effb"),D=n("181d"),B=n("235c"),N=n("4d16").forEach,U=I("hidden"),V=B.set,F=B.getterFor("Symbol"),W=Object["prototype"],q=i.Symbol,z=q&&q["prototype"],H=i.RangeError,G=i.TypeError,X=i.QObject,Y=k.f,K=S.f,Z=w.f,J=T.f,Q=a([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!X||!X["prototype"]||!X["prototype"].findChild,it=function(t,e,n){var r=Y(W,e);r&&delete W[e],K(t,e,n),r&&t!==W&&K(W,e,r)},ot=s&&l((function(){return 7!==b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?it:K,at=function(t,e){var n=tt[t]=b(z);return V(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},ct=function(t,e,n){t===W&&ct(et,e,n),h(t);var r=v(e);return h(n),f(tt,r)?(n.enumerable?(f(t,U)&&t[U][r]&&(t[U][r]=!1),n=b(n,{enumerable:m(0,!1)})):(f(t,U)||K(t,U,m(1,b(null))),t[U][r]=!0),ot(t,r,n)):K(t,r,n)},st=function(t,e){h(t);var n=p(e),r=y(n).concat(dt(n));return N(r,(function(e){s&&!o(ut,n,e)||ct(t,e,n[e])})),t},ut=function(t){var e=v(t),n=o(J,this,e);return!(this===W&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,U)&&this[U][e])||n)},lt=function(t,e){var n=p(t),r=v(e);if(n!==W||!f(tt,r)||f(et,r)){var i=Y(n,r);return!i||!f(tt,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},ft=function(t){var e=Z(p(t)),n=[];return N(e,(function(t){f(tt,t)||f(L,t)||Q(n,t)})),n},dt=function(t){var e=t===W,n=Z(e?et:p(t)),r=[];return N(n,(function(t){!f(tt,t)||e&&!f(W,t)||Q(r,tt[t])})),r};u||(q=function(){if(d(z,this))throw new G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=j(t),n=function(t){var r=void 0===this?i:this;r===W&&o(n,et,t),f(r,U)&&f(r[U],e)&&(r[U][e]=!1);var a=m(1,t);try{ot(r,e,a)}catch(c){if(!(c instanceof H))throw c;it(r,e,a)}};return s&&rt&&ot(W,e,{configurable:!0,set:n}),at(e,t)},z=q["prototype"],O(z,"toString",(function(){return F(this).tag})),O(q,"withoutSetter",(function(t){return at(j(t),t)})),T.f=ut,S.f=ct,C.f=st,k.f=lt,_.f=w.f=ft,x.f=dt,P.f=function(t){return at(M(t),t)},s&&(E(z,"description",{configurable:!0,get:function(){return F(this).description}}),c||O(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),N(y(nt),(function(t){$(t)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:ct,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft}),R(),D(q,"Symbol"),L[U]=!0},"22b6":function(t,e,n){"use strict";var r=n("8bdb"),i=n("ea07").values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},"235c":function(t,e,n){"use strict";var r,i,o,a=n("a20b"),c=n("85c1"),s=n("1c06"),u=n("6aca"),l=n("338c"),f=n("9b55"),d=n("b223"),h=n("11bf"),p=c.TypeError,v=c.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw new p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},2378:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"23f4":function(t,e,n){"use strict";var r=n("ab4a"),i=n("85c1"),o=n("bb80"),a=n("8466"),c=n("dcda"),s=n("6aca"),u=n("e37c"),l=n("80bb").f,f=n("1297"),d=n("e629"),h=n("9e70"),p=n("52ac"),v=n("edb7"),g=n("e157"),m=n("81a9"),b=n("af9e"),y=n("338c"),_=n("235c").enforce,w=n("437f"),x=n("8c08"),k=n("b0a8"),S=n("cca9"),C=x("match"),T=i.RegExp,O=T.prototype,E=i.SyntaxError,A=o(O.exec),I=o("".charAt),L=o("".replace),j=o("".indexOf),M=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,R=/a/g,D=new T($)!==$,B=v.MISSED_STICKY,N=v.UNSUPPORTED_Y,U=r&&(!D||B||k||S||b((function(){return R[C]=!1,T($)!==$||T(R)===R||"/a/i"!==String(T($,"i"))})));if(a("RegExp",U)){for(var V=function(t,e){var n,r,i,o,a,l,v=f(O,this),g=d(t),m=void 0===e,b=[],w=t;if(!v&&g&&m&&t.constructor===V)return t;if((g||f(O,t))&&(t=t.source,m&&(e=p(w))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),w=t,k&&"dotAll"in $&&(r=!!e&&j(e,"s")>-1,r&&(e=L(e,/s/g,""))),n=e,B&&"sticky"in $&&(i=!!e&&j(e,"y")>-1,i&&N&&(e=L(e,/y/g,""))),S&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a=u(null),c=!1,s=!1,l=0,f="";r<=n;r++){if(e=I(t,r),"\\"===e)e+=I(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:A(P,M(t,r+1))&&(r+=2,s=!0),i+=e,l++;continue;case">"===e&&s:if(""===f||y(a,f))throw new E("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],s=!1,f="";continue}s?f+=e:i+=e}return[i,o]}(t),t=o[0],b=o[1]),a=c(T(t,e),v?this:O,V),(r||i||b.length)&&(l=_(a),r&&(l.dotAll=!0,l.raw=V(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=I(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+I(t,++r);return i}(t),n)),i&&(l.sticky=!0),b.length&&(l.groups=b)),t!==w)try{s(a,"source",""===w?"(?:)":w)}catch(x){}return a},F=l(T),W=0;F.length>W;)g(V,T,F[W++]);O.constructor=V,V.prototype=O,m(i,"RegExp",V,{constructor:!0})}w("RegExp")},2425:function(t,e,n){"use strict";n("e7d8")},"266a":function(t,e,n){"use strict";var r=n("af9e"),i=n("8c08"),o=n("ab4a"),a=n("a734"),c=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e["delete"]("b"),r+=n+t})),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2779:function(t,e,n){"use strict";var r=n("508d"),i=n("c86b"),o=n("3a4b"),a=n("3c5d"),c=n("83b3").CONSTRUCTOR,s=n("7478"),u=i("Promise"),l=o&&!c;r({target:"Promise",stat:!0,forced:o||c},{resolve:function(t){return s(l&&this===u?a:this,t)}})},2797:function(t,e,n){"use strict";var r=n("85c1"),i=n("3de7"),o=n("fb6b"),a=n("f3f2"),c=n("6aca"),s=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&s(r[u]&&r[u].prototype);s(o)},"27cc":function(t,e,n){var r=n("fdca"),i=n("415b"),o=n("472b"),a=n("a030");t.exports=function(t,e,n,c){c||(c={});var s=c.enumerable,u=void 0!==c.name?c.name:e;if(r(n)&&o(n,u,c),c.global)s?t[e]=n:a(e,n);else{try{c.unsafe?t[e]&&(s=!0):delete t[e]}catch(l){}s?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},"29ba":function(t,e,n){"use strict";var r=n("8c08"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(s){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"29d5":function(t,e,n){var r=n("8394"),i=n("c62a"),o=n("77cd"),a=n("8fa1"),c=n("d9a7"),s=n("344f"),u=i("wks"),l=r.Symbol,f=l&&l["for"],d=s?l:l&&l.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!c&&"string"!=typeof u[t]){var e="Symbol."+t;c&&o(l,t)?u[t]=l[t]:u[t]=s&&f?f(e):d(e)}return u[t]}},"29d8":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"2b04":function(t,e,n){"use strict";var r=n("af9e");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"2ba7":function(t,e,n){"use strict";var r=n("ab4a"),i=n("af9e"),o=n("3f57");t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"2c10":function(t,e,n){"use strict";var r=n("71e9"),i=n("7edc"),o=n("e7e3"),a=n("1eb8"),c=n("c435"),s=n("9e70"),u=n("862c"),l=n("60bc"),f=n("03dc"),d=n("07da");i("match",(function(t,e,n){return[function(e){var n=u(this),i=a(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),a=n(e,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var u=r.unicode;r.lastIndex=0;var l,h=[],p=0;while(null!==(l=d(r,i))){var v=s(l[0]);h[p]=v,""===v&&(r.lastIndex=f(i,c(r.lastIndex),u)),p++}return 0===p?null:h}]}))},"2c57":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("9e70"),c=n("ee98").trim,s=n("f072"),u=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,h=o(d.exec),p=8!==u(s+"08")||22!==u(s+"0x16")||f&&!i((function(){u(Object(f))}));t.exports=p?function(t,e){var n=c(a(t));return u(n,e>>>0||(h(d,n)?16:10))}:u},"2c6b":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"2e66":function(t,e,n){var r=n("fdca"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"323c":function(t,e,n){"use strict";var r=n("7ddb"),i=n("5dfa"),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;t.exports=function(t){return o(i(t,a(t)))}},3242:function(t,e,n){"use strict";var r=n("17fc");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"330d":function(t,e,n){var r=n("1ad7"),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"335a":function(t,e,n){var r=n("d10a"),i=n("d191"),o=n("2e66");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"338c":function(t,e,n){"use strict";var r=n("bb80"),i=n("1099"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"344f":function(t,e,n){var r=n("d9a7");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3462:function(t,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=n},"346b":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},3487:function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("3a4b"),a=n("9360"),c=n("fdca"),s=n("9320"),u=n("8a29"),l=n("335a"),f=n("ebe8"),d=n("d1a8"),h=n("27cc"),p=n("29d5"),v=n("d459"),g=n("4c77"),m=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(t,e,n,a,p,g,k){s(n,e,a);var S,C,T,O=function(t){if(t===p&&j)return j;if(!_&&t in I)return I[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)};case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,I=t.prototype,L=I[w]||I["@@iterator"]||p&&I[p],j=!_&&L||O(p),M="Array"==e&&I.entries||L;if(M&&(S=u(M.call(new t)),S!==Object.prototype&&S.next&&(o||u(S)===y||(l?l(S,y):c(S[w])||h(S,w,x)),f(S,E,!0,!0),o&&(v[E]=x))),m&&"values"==p&&L&&"values"!==L.name&&(!o&&b?d(I,"name","values"):(A=!0,j=function(){return i(L,this)})),p)if(C={values:O("values"),keys:g?j:O("keys"),entries:O("entries")},k)for(T in C)(_||A||!(T in I))&&h(I,T,C[T]);else r({target:e,proto:!0,forced:_||A},C);return o&&!k||I[w]===j||h(I,w,j,{name:p}),v[e]=j,C}},3671:function(t,e,n){var r=n("c86b");t.exports=r("document","documentElement")},3794:function(t,e,n){"use strict";var r=n("6aa6");t.exports=r("document","documentElement")},"37ad":function(t,e,n){"use strict";var r=n("bb80");t.exports=r([].slice)},3840:function(t,e,n){"use strict";var r,i,o,a=n("508d"),c=n("3a4b"),s=n("e8b8"),u=n("8394"),l=n("d7b8"),f=n("27cc"),d=n("335a"),h=n("ebe8"),p=n("f82c"),v=n("f0b5"),g=n("fdca"),m=n("1ae3"),b=n("9b8f"),y=n("0699"),_=n("fd1d").set,w=n("fac1"),x=n("4743"),k=n("a5c6"),S=n("3462"),C=n("7b05"),T=n("3c5d"),O=n("83b3"),E=n("f439"),A=O.CONSTRUCTOR,I=O.REJECTION_EVENT,L=O.SUBCLASSING,j=C.getterFor("Promise"),M=C.set,P=T&&T.prototype,$=T,R=P,D=u.TypeError,B=u.document,N=u.process,U=E.f,V=U,F=!!(B&&B.createEvent&&u.dispatchEvent),W=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},q=function(t,e){var n,r,i,o=e.value,a=1==e.state,c=a?t.ok:t.fail,s=t.resolve,u=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&Y(e),e.rejection=1),!0===c?n=o:(f&&f.enter(),n=c(o),f&&(f.exit(),i=!0)),n===t.promise?u(D("Promise-chain cycle")):(r=W(n))?l(r,n,s,u):s(n)):u(o)}catch(d){f&&!i&&f.exit(),u(d)}},z=function(t,e){t.notified||(t.notified=!0,w((function(){var n,r=t.reactions;while(n=r.get())q(n,t);t.notified=!1,e&&!t.rejection&&G(t)})))},H=function(t,e,n){var r,i;F?(r=B.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!I&&(i=u["on"+t])?i(r):"unhandledrejection"===t&&x("Unhandled promise rejection",n)},G=function(t){l(_,u,(function(){var e,n=t.facade,r=t.value,i=X(t);if(i&&(e=k((function(){s?N.emit("unhandledRejection",r,n):H("unhandledrejection",n,r)})),t.rejection=s||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){l(_,u,(function(){var e=t.facade;s?N.emit("rejectionHandled",e):H("rejectionhandled",e,t.value)}))},K=function(t,e,n){return function(r){t(e,r,n)}},Z=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,z(t,!0))},J=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw D("Promise can't be resolved itself");var r=W(e);r?w((function(){var n={done:!1};try{l(r,e,K(J,n,t),K(Z,n,t))}catch(i){Z(n,i,t)}})):(t.value=e,t.state=1,z(t,!1))}catch(i){Z({done:!1},i,t)}}};if(A&&($=function(t){b(this,R),v(t),l(r,this);var e=j(this);try{t(K(J,e),K(Z,e))}catch(n){Z(e,n)}},R=$.prototype,r=function(t){M(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})},r.prototype=f(R,"then",(function(t,e){var n=j(this),r=U(y(this,$));return n.parent=!0,r.ok=!g(t)||t,r.fail=g(e)&&e,r.domain=s?N.domain:void 0,0==n.state?n.reactions.add(r):w((function(){q(r,n)})),r.promise})),i=function(){var t=new r,e=j(t);this.promise=t,this.resolve=K(J,e),this.reject=K(Z,e)},E.f=U=function(t){return t===$||void 0===t?new i(t):V(t)},!c&&g(T)&&P!==Object.prototype)){o=P.then,L||f(P,"then",(function(t,e){var n=this;return new $((function(t,e){l(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete P.constructor}catch(Q){}d&&d(P,R)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:$}),h($,"Promise",!1,!0),p("Promise")},3872:function(t,e,n){var r=n("c62a"),i=n("8fa1"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"3872e":function(t,e,n){"use strict";var r=n("f259");r("asyncIterator")},"39d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){e=(0,r.default)(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;return t},n("6a54");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("18e4"))},"3a4b":function(t,e){t.exports=!1},"3b19":function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(t){for(var e={},n=0;n<64;n++)e[t.charAt(n)]=n;return e};t.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},"3b78":function(t,e,n){var r=n("8394"),i=n("1ae3"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},"3c5d":function(t,e,n){var r=n("8394");t.exports=r.Promise},"3c7a":function(t,e,n){"use strict";var r=n("497b"),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw new i("The argument can't be less than 0");return e}},"3d77":function(t,e,n){"use strict";var r=n("ae5c"),i=n("71e9"),o=n("1099"),a=n("7f5f"),c=n("81a7"),s=n("8ae2"),u=n("1fc1"),l=n("85f7"),f=n("d67c"),d=n("5112"),h=Array;t.exports=function(t){var e=o(t),n=s(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,p>2?arguments[2]:void 0));var m,b,y,_,w,x,k=d(e),S=0;if(!k||this===h&&c(k))for(m=u(e),b=n?new this(m):h(m);m>S;S++)x=g?v(e[S],S):e[S],l(b,S,x);else for(b=n?new this:[],_=f(e,k),w=_.next;!(y=i(w,_)).done;S++)x=g?a(_,v,[y.value,S],!0):y.value,l(b,S,x);return b.length=S,b}},"3d8a":function(t,e,n){"use strict";var r=n("338c"),i=n("6ac9"),o=n("1ded"),a=n("d6b1");t.exports=function(t,e,n){for(var c=i(e),s=a.f,u=o.f,l=0;l=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{c(p,"name",{value:"values"})}catch(v){}},"3de7":function(t,e,n){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"3efd":function(t,e,n){"use strict";var r=n("8bdb"),i=n("1099"),o=n("1fc1"),a=n("b2b1"),c=n("a830"),s=n("41c7"),u=1!==[].unshift(0),l=u||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){s(n+r);var u=n;while(u--){var l=u+r;u in e?e[l]=e[u]:c(e,l)}for(var f=0;f3)){if(p)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}}(t)),n=c(i),r=0;while(r9007199254740991)throw r("Maximum allowed index exceeded");return t}},4379:function(t,e,n){"use strict";var r=n("ac38"),i=n("323c");t.exports=function(t,e){return r(i(t),e)}},"437f":function(t,e,n){"use strict";var r=n("6aa6"),i=n("e4ca"),o=n("8c08"),a=n("ab4a"),c=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&i(e,c,{configurable:!0,get:function(){return this}})}},"45da":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("bb80"),a=n("862c"),c=n("474f"),s=n("1eb8"),u=n("e629"),l=n("9e70"),f=n("60bc"),d=n("52ac"),h=n("1001"),p=n("8c08"),v=n("a734"),g=p("replace"),m=TypeError,b=o("".indexOf),y=o("".replace),_=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,x,k,S,C,T,O=a(this),E=0,A=0,I="";if(!s(t)){if(n=u(t),n&&(r=l(a(d(t))),!~b(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(o=f(t,g),o)return i(o,t,O,e);if(v&&n)return y(l(O),t,e)}p=l(O),x=l(t),k=c(e),k||(e=l(e)),S=x.length,C=w(1,S),E=b(p,x);while(-1!==E)T=k?l(e(x,E,p)):h(x,p,E,[],void 0,e),I+=_(p,A,E)+T,A=E+S,E=E+C>p.length?-1:b(p,x,E+C);return A1?arguments[1]:void 0)}}),a("includes")},"471d":function(t,e,n){"use strict";var r=n("e7e3");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"472b":function(t,e,n){var r=n("7aa6"),i=n("fdca"),o=n("77cd"),a=n("1faa"),c=n("9360").CONFIGURABLE,s=n("97cf"),u=n("7b05"),l=u.enforce,f=u.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&f(this).source||s(this)}),"toString")},"473f":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9a51").left,o=n("2b04"),a=n("0173"),c=n("db06"),s=!c&&a>79&&a<83,u=s||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},4743:function(t,e,n){var r=n("8394");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"474f":function(t,e,n){"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4825:function(t,e,n){var r=n("d10a"),i=n("7aa6"),o=n("fdca"),a=n("720d"),c=n("c86b"),s=n("97cf"),u=function(){},l=[],f=c("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(u),v=function(t){if(!o(t))return!1;try{return f(u,l,t),!0}catch(e){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,s(t))}catch(e){return!0}};g.sham=!0,t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},"497b":function(t,e,n){"use strict";var r=n("1aad");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"49a5":function(t,e,n){var r=n("8394"),i=n("a030"),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},"49fc":function(t,e,n){"use strict";var r=n("bb80"),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=RangeError,s=r(o.exec),u=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),h=r([].push),p=r("".replace),v=r("".split),g=r("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;t=n?u(t/700):t>>1,t+=u(t/e);while(t>455)t=u(t/35),r+=36;return u(r+36*t/(t+38))},y=function(t){var e=[];t=function(t){var e=[],n=0,r=t.length;while(n=55296&&i<=56319&&n=o&&ru((2147483647-s)/_))throw new c(a);for(s+=(y-o)*_,o=y,n=0;n2147483647)throw new c(a);if(r===o){var w=s,x=36;while(1){var k=x<=p?1:x>=p+26?26:x-p;if(wS;S++)if((h||S in w)&&(b=w[S],y=k(b,S,_),t))if(e)T[S]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:u(T,b)}else switch(t){case 4:return!1;case 7:u(T,b)}return f?-1:i||l?l:T}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},"4d4a":function(t,e,n){"use strict";var r=n("8bdb"),i=n("338c");r({target:"Object",stat:!0},{hasOwn:i})},"4d8f":function(t,e,n){"use strict";var r=n("7ddb"),i=n("1fc1"),o=n("497b"),a=r.aTypedArray,c=r.exportTypedArrayMethod;c("at",(function(t){var e=a(this),n=i(e),r=o(t),c=r>=0?r:n+r;return c<0||c>=n?void 0:e[c]}))},"4db2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("af9e"),a=n("efa5"),c=n("e7e3"),s=n("e34c"),u=n("c435"),l=n("5dfa"),f=a.ArrayBuffer,d=a.DataView,h=d.prototype,p=i(f.prototype.slice),v=i(h.getUint8),g=i(h.setUint8),m=o((function(){return!new f(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:m},{slice:function(t,e){if(p&&void 0===e)return p(c(this),t);var n=c(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(l(this,f))(u(i-r)),a=new d(this),h=new d(o),m=0;while(rb;b++)if(_=I(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=I(x.value)}catch(L){d(g,"throw",L)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"508d":function(t,e,n){var r=n("8394"),i=n("d953").f,o=n("d1a8"),a=n("27cc"),c=n("a030"),s=n("c199"),u=n("1535");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||c(v,{}):(r[v]||{}).prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"50d5":function(t,e,n){"use strict";var r=n("c215"),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new i("Can't convert number to bigint");return BigInt(e)}},5112:function(t,e,n){"use strict";var r=n("8e02"),i=n("60bc"),o=n("1eb8"),a=n("799d"),c=n("8c08"),s=c("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},5145:function(t,e,n){"use strict";var r=n("9f9e"),i=n("f660"),o=n("497b"),a=n("1fc1"),c=n("2b04"),s=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,f=c("lastIndexOf"),d=l||!f;t.exports=d?function(t){if(l)return r(u,this,arguments)||0;var e=i(this),n=a(e);if(0===n)return-1;var c=n-1;for(arguments.length>1&&(c=s(c,o(arguments[1]))),c<0&&(c=n+c);c>=0;c--)if(c in e&&e[c]===t)return c||0;return-1}:u},"52ac":function(t,e,n){"use strict";var r=n("71e9"),i=n("338c"),o=n("1297"),a=n("471d"),c=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in c||i(t,"flags")||!o(c,t)?e:r(a,t)}},"52df":function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},5330:function(t,e,n){"use strict";var r=n("1c06"),i=n("6aca");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},"53f7":function(t,e,n){"use strict";var r=n("7658"),i=n("57e7");r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},5628:function(t,e,n){var r=n("1faa"),i=n("632d"),o=n("415b"),a=n("d191"),c=n("d95b"),s=n("9105");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=c(e),i=s(e),u=i.length,l=0;while(u>l)o.f(t,n=i[l++],r[n]);return t}},"569b":function(t,e,n){"use strict";var r=n("8c08"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"56c8":function(t,e,n){var r=n("d10a"),i=n("77cd"),o=n("d95b"),a=n("0e36").indexOf,c=n("bd8a"),s=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(c,n)&&i(r,n)&&s(l,n);while(e.length>u)i(r,n=e[u++])&&(~a(l,n)||s(l,n));return l}},"57e2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},"57e7":function(t,e,n){"use strict";var r=n("e37c"),i=n("e4ca"),o=n("a74c"),a=n("ae5c"),c=n("b720"),s=n("1eb8"),u=n("5075"),l=n("0cc2"),f=n("97ed"),d=n("437f"),h=n("ab4a"),p=n("d0b1").fastKey,v=n("235c"),g=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,i){c(t,d),g(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),h||(t.size=0),s(i)||u(i,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=m(e),b=function(t,e,n){var r,i,o=v(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=v(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return o(d,{clear:function(){var t=v(this),e=t.first;while(e)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=r(null),h?t.size=0:this.size=0},delete:function(t){var e=v(this),n=y(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first===n&&(e.first=r),e.last===n&&(e.last=i),h?e.size--:this.size--}return!!n},forEach:function(t){var e,n=v(this),r=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!y(this,t)}}),o(d,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),h&&i(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=m(e),o=m(r);l(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"59f8":function(t,e,n){var r=n("3c5d"),i=n("d47e"),o=n("83b3").CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},"5a56":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("6aa6"),a=n("0b5a"),c=n("d6b1").f,s=n("338c"),u=n("b720"),l=n("dcda"),f=n("e7da"),d=n("e6a2"),h=n("7e87"),p=n("ab4a"),v=n("a734"),g=o("Error"),m=o("DOMException"),b=function(){u(this,y);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new m(e,n),i=new g(e);return i.name="DOMException",c(r,"stack",a(1,h(i.stack,1))),l(r,this,b),r},y=b.prototype=m.prototype,_="stack"in new g("DOMException"),w="stack"in new m(1,2),x=m&&p&&Object.getOwnPropertyDescriptor(i,"DOMException"),k=!!x&&!(x.writable&&x.configurable),S=_&&!k&&!w;r({global:!0,constructor:!0,forced:v||S},{DOMException:S?b:m});var C=o("DOMException"),T=C.prototype;if(T.constructor!==C)for(var O in v||c(T,"constructor",a(1,C)),d)if(s(d,O)){var E=d[O],A=E.s;s(C,A)||c(C,A,a(6,E.c))}},"5ac7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("bb80"),o=n("b6a1"),a=n("862c"),c=n("9e70"),s=n("0931"),u=i("".indexOf);r({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~u(c(a(this)),c(o(t)),arguments.length>1?arguments[1]:void 0)}})},"5b2c":function(t,e,n){"use strict";var r=n("af71");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"5c47":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9ad8");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},"5d56":function(t,e,n){"use strict";var r=n("bb80"),i=n("ac5f"),o=n("474f"),a=n("ada5"),c=n("9e70"),s=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},"5ee2":function(t,e,n){"use strict";var r=n("8ae2"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},"5ef2":function(t,e,n){"use strict";var r=n("8bdb"),i=n("9f69"),o=n("036b").indexOf,a=n("2b04"),c=i([].indexOf),s=!!c&&1/c([1],1,-0)<0,u=s||!a("indexOf");r({target:"Array",proto:!0,forced:u},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return s?c(this,t,e)||0:o(this,t,e)}})},"5fd9":function(t,e,n){"use strict";var r=n("29d8"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"60bc":function(t,e,n){"use strict";var r=n("7992"),i=n("1eb8");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},6158:function(t,e,n){"use strict";var r=n("ae5c"),i=n("7e41"),o=n("1099"),a=n("1fc1"),c=function(t){var e=1===t;return function(n,c,s){var u,l,f=o(n),d=i(f),h=a(d),p=r(c,s);while(h-- >0)if(u=d[h],l=p(u,h,f),l)switch(t){case 0:return u;case 1:return h}return e?-1:void 0}};t.exports={findLast:c(0),findLastIndex:c(1)}},"61a3":function(t,e,n){"use strict";var r=n("508d"),i=n("d7b8"),o=n("f439"),a=n("83b3").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},6242:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return t}},"62f7":function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6314:function(t,e,n){var r=n("c86b"),i=n("d10a"),o=n("00ca"),a=n("ed01"),c=n("d191"),s=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=a.f;return n?s(e,n(t)):e}},"632d":function(t,e,n){var r=n("1faa"),i=n("7aa6");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"63b1":function(t,e,n){"use strict";var r=n("85c1"),i=n("9f69"),o=n("af9e"),a=n("7992"),c=n("b643"),s=n("7ddb"),u=n("5fd9"),l=n("8d24"),f=n("0173"),d=n("a700"),h=s.aTypedArray,p=s.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),m=!!g&&!(o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),b=!!g&&!o((function(){if(f)return f<74;if(u)return u<67;if(l)return!0;if(d)return d<602;var t,e,n=new v(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(g(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),b?g(this,t):c(h(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!b||m)},"641a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"64aa":function(t,e,n){"use strict";var r=n("8bdb"),i=n("a734"),o=n("ab4a"),a=n("85c1"),c=n("a1d4"),s=n("bb80"),u=n("8466"),l=n("338c"),f=n("dcda"),d=n("1297"),h=n("ddd3"),p=n("c215"),v=n("af9e"),g=n("80bb").f,m=n("1ded").f,b=n("d6b1").f,y=n("83fa"),_=n("ee98").trim,w=a["Number"],x=c["Number"],k=w.prototype,S=a.TypeError,C=s("".slice),T=s("".charCodeAt),O=function(t){var e=p(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,r,i,o,a,c,s,u=p(t,"number");if(h(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=_(u),e=T(u,0),43===e||45===e){if(n=T(u,2),88===n||120===n)return NaN}else if(48===e){switch(T(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=C(u,2),a=o.length,c=0;ci)return NaN;return parseInt(o,r)}return+u},A=u("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),I=function(t){return d(k,t)&&v((function(){y(t)}))},L=function(t){var e=arguments.length<1?0:w(O(t));return I(this)?f(Object(e),this,L):e};L.prototype=k,A&&!i&&(k.constructor=L),r({global:!0,constructor:!0,wrap:!0,forced:A},{Number:L});var j=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&b(t,n,m(e,n))};i&&x&&j(c["Number"],x),(A||i)&&j(c["Number"],w)},"64e0":function(t,e,n){"use strict";var r=n("7ddb"),i=n("6158").findLast,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"668a":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"66b1":function(t,e,n){var r=n("57e2");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"66ee":function(t,e,n){var r=n("7aa6");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"68fd":function(t,e,n){"use strict";var r=n("8e02");t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},6994:function(t,e,n){"use strict";var r=n("8bdb"),i=n("af71"),o=n("af9e"),a=n("7d3c"),c=n("1099"),s=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},"6a2b":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1"),a=n("a830"),c=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n),u=i(t,s),l=i(e,s),f=arguments.length>2?arguments[2]:void 0,d=c((void 0===f?s:i(f,s))-l,s-u),h=1;l0)l in n?n[u]=n[l]:a(n,u),u+=h,l+=h;return n}},"6a50":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("71e9"),a=n("ab4a"),c=n("9839"),s=n("7ddb"),u=n("efa5"),l=n("b720"),f=n("0b5a"),d=n("6aca"),h=n("f221"),p=n("c435"),v=n("cc36"),g=n("1c16"),m=n("7df8"),b=n("f9ed"),y=n("338c"),_=n("8e02"),w=n("1c06"),x=n("ddd3"),k=n("e37c"),S=n("1297"),C=n("8c4f"),T=n("80bb").f,O=n("b32e"),E=n("4d16").forEach,A=n("437f"),I=n("e4ca"),L=n("d6b1"),j=n("1ded"),M=n("ac38"),P=n("235c"),$=n("dcda"),R=P.get,D=P.set,B=P.enforce,N=L.f,U=j.f,V=i.RangeError,F=u.ArrayBuffer,W=F.prototype,q=u.DataView,z=s.NATIVE_ARRAY_BUFFER_VIEWS,H=s.TYPED_ARRAY_TAG,G=s.TypedArray,X=s.TypedArrayPrototype,Y=s.isTypedArray,K=function(t,e){I(t,e,{configurable:!0,get:function(){return R(this)[e]}})},Z=function(t){var e;return S(W,t)||"ArrayBuffer"===(e=_(t))||"SharedArrayBuffer"===e},J=function(t,e){return Y(t)&&!x(e)&&e in t&&h(+e)&&e>=0},Q=function(t,e){return e=b(e),J(t,e)?f(2,t[e]):U(t,e)},tt=function(t,e,n){return e=b(e),!(J(t,e)&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(t,e,n):(t[e]=n.value,t)};a?(z||(j.f=Q,L.f=tt,K(X,"buffer"),K(X,"byteOffset"),K(X,"byteLength"),K(X,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:Q,defineProperty:tt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,s=t+(n?"Clamped":"")+"Array",u="get"+t,f="set"+t,h=i[s],b=h,y=b&&b.prototype,_={},x=function(t,e){N(t,e,{get:function(){return function(t,e){var n=R(t);return n.view[u](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=R(t);i.view[f](e*a+i.byteOffset,n?m(r):r,!0)}(this,e,t)},enumerable:!0})};z?c&&(b=e((function(t,e,n,r){return l(t,y),$(function(){return w(e)?Z(e)?void 0!==r?new h(e,g(n,a),r):void 0!==n?new h(e,g(n,a)):new h(e):Y(e)?M(b,e):o(O,b,e):new h(v(e))}(),t,b)})),C&&C(b,G),E(T(h),(function(t){t in b||d(b,t,h[t])})),b.prototype=y):(b=e((function(t,e,n,r){l(t,y);var i,c,s,u=0,f=0;if(w(e)){if(!Z(e))return Y(e)?M(b,e):o(O,b,e);i=e,f=g(n,a);var d=e.byteLength;if(void 0===r){if(d%a)throw new V("Wrong length");if(c=d-f,c<0)throw new V("Wrong length")}else if(c=p(r)*a,c+f>d)throw new V("Wrong length");s=c/a}else s=v(e),c=s*a,i=new F(c);D(t,{buffer:i,byteOffset:f,byteLength:c,length:s,view:new q(i)});while(u?@[\\\]^|]/,Q=/[\0\t\n\r #/:<>?@[\\\]^|]/,tt=/^[\u0000-\u0020]+/,et=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nt=/[\t\n\r]/g,rt=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)q(e,t%256),t=L(t/256);return $(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=R(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},it={},ot=p({},it,{" ":1,'"':1,"<":1,">":1,"`":1}),at=p({},ot,{"#":1,"?":1,"{":1,"}":1}),ct=p({},at,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),st=function(t,e){var n=m(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},ut={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lt=function(t,e){var n;return 2===t.length&&P(z,M(t,0))&&(":"===(n=M(t,1))||!e&&"|"===n)},ft=function(t){var e;return t.length>1&<(F(t,0,2))&&(2===t.length||"/"===(e=M(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===W(t)},ht=function(t){return t=W(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},pt={},vt={},gt={},mt={},bt={},yt={},_t={},wt={},xt={},kt={},St={},Ct={},Tt={},Ot={},Et={},At={},It={},Lt={},jt={},Mt={},Pt={},$t=function(t,e,n){var r,i,o,a=y(t);if(e){if(i=this.parse(a),i)throw new A(i);this.searchParams=null}else{if(void 0!==n&&(r=new $t(n,!0)),i=this.parse(a,null,r),i)throw new A(i);o=O(new T),o.bindURL(this),this.searchParams=o}};$t.prototype={type:"URL",parse:function(t,e,n){var i,o,a,c,s=this,u=e||pt,l=0,f="",d=!1,p=!1,m=!1;t=y(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=N(t,tt,""),t=N(t,et,"$1")),t=N(t,nt,""),i=v(t);while(l<=i.length){switch(o=i[l],u){case pt:if(!o||!P(z,o)){if(e)return"Invalid scheme";u=gt;continue}f+=W(o),u=vt;break;case vt:if(o&&(P(H,o)||"+"===o||"-"===o||"."===o))f+=W(o);else{if(":"!==o){if(e)return"Invalid scheme";f="",u=gt,l=0;continue}if(e&&(s.isSpecial()!==h(ut,f)||"file"===f&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=f,e)return void(s.isSpecial()&&ut[s.scheme]===s.port&&(s.port=null));f="","file"===s.scheme?u=Ot:s.isSpecial()&&n&&n.scheme===s.scheme?u=mt:s.isSpecial()?u=wt:"/"===i[l+1]?(u=bt,l++):(s.cannotBeABaseURL=!0,B(s.path,""),u=jt)}break;case gt:if(!n||n.cannotBeABaseURL&&"#"!==o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===o){s.scheme=n.scheme,s.path=g(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,u=Pt;break}u="file"===n.scheme?Ot:yt;continue;case mt:if("/"!==o||"/"!==i[l+1]){u=yt;continue}u=xt,l++;break;case bt:if("/"===o){u=kt;break}u=Lt;continue;case yt:if(s.scheme=n.scheme,o===r)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query;else if("/"===o||"\\"===o&&s.isSpecial())u=_t;else if("?"===o)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query="",u=Mt;else{if("#"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.path.length--,u=Lt;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=g(n.path),s.query=n.query,s.fragment="",u=Pt}break;case _t:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,u=Lt;continue}u=kt}else u=xt;break;case wt:if(u=xt,"/"!==o||"/"!==M(f,l+1))continue;l++;break;case xt:if("/"!==o&&"\\"!==o){u=kt;continue}break;case kt:if("@"===o){d&&(f="%40"+f),d=!0,a=v(f);for(var b=0;b65535)return"Invalid port";s.port=s.isSpecial()&&x===ut[s.scheme]?null:x,f=""}if(e)return;u=It;continue}return"Invalid port"}f+=o;break;case Ot:if(s.scheme="file","/"===o||"\\"===o)u=Et;else{if(!n||"file"!==n.scheme){u=Lt;continue}switch(o){case r:s.host=n.host,s.path=g(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=g(n.path),s.query="",u=Mt;break;case"#":s.host=n.host,s.path=g(n.path),s.query=n.query,s.fragment="",u=Pt;break;default:ft($(g(i,l),""))||(s.host=n.host,s.path=g(n.path),s.shortenPath()),u=Lt;continue}}break;case Et:if("/"===o||"\\"===o){u=At;break}n&&"file"===n.scheme&&!ft($(g(i,l),""))&&(lt(n.path[0],!0)?B(s.path,n.path[0]):s.host=n.host),u=Lt;continue;case At:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&<(f))u=Lt;else if(""===f){if(s.host="",e)return;u=It}else{if(c=s.parseHost(f),c)return c;if("localhost"===s.host&&(s.host=""),e)return;f="",u=It}continue}f+=o;break;case It:if(s.isSpecial()){if(u=Lt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(u=Lt,"/"!==o))continue}else s.fragment="",u=Pt;else s.query="",u=Mt;break;case Lt:if(o===r||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(ht(f)?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||B(s.path,"")):dt(f)?"/"===o||"\\"===o&&s.isSpecial()||B(s.path,""):("file"===s.scheme&&!s.path.length&<(f)&&(s.host&&(s.host=""),f=M(f,0)+":"),B(s.path,f)),f="","file"===s.scheme&&(o===r||"?"===o||"#"===o))while(s.path.length>1&&""===s.path[0])U(s.path);"?"===o?(s.query="",u=Mt):"#"===o&&(s.fragment="",u=Pt)}else f+=st(o,at);break;case jt:"?"===o?(s.query="",u=Mt):"#"===o?(s.fragment="",u=Pt):o!==r&&(s.path[0]+=st(o,it));break;case Mt:e||"#"!==o?o!==r&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":st(o,it)):(s.fragment="",u=Pt);break;case Pt:o!==r&&(s.fragment+=st(o,ot));break}l++}},parseHost:function(t){var e,n,r;if("["===M(t,0)){if("]"!==M(t,t.length-1))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,c,s=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,d=function(){return M(t,f)};if(":"===d()){if(":"!==M(t,1))return;f+=2,u++,l=u}while(d()){if(8===u)return;if(":"!==d()){e=n=0;while(n<4&&P(Z,d()))e=16*e+I(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!P(G,d()))return;while(P(G,d())){if(o=I(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}s[u]=256*s[u]+i,r++,2!==r&&4!==r||u++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;s[u++]=e}else{if(null!==l)return;f++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!==u&&a>0)c=s[u],s[u--]=s[l+a-1],s[l+--a]=c}else if(8!==u)return;return s}(F(t,1,-1)),!e)return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=b(t),P(J,t))return"Invalid host";if(e=function(t){var e,n,r,i,o,a,c,s=V(t,".");if(s.length&&""===s[s.length-1]&&s.length--,e=s.length,e>4)return t;for(n=[],r=0;r1&&"0"===M(i,0)&&(o=P(X,i)?16:8,i=F(i,8===o?1:2)),""===i)a=0;else{if(!P(10===o?K:8===o?Y:Z,i))return t;a=I(i,o)}B(n,a)}for(r=0;r=j(256,5-e))return null}else if(a>255)return null;for(c=D(n),r=0;r1?arguments[1]:void 0,r=S(e,new $t(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Dt=Rt.prototype,Bt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(f(Dt,"href",Bt("serialize","setHref")),f(Dt,"origin",Bt("getOrigin")),f(Dt,"protocol",Bt("getProtocol","setProtocol")),f(Dt,"username",Bt("getUsername","setUsername")),f(Dt,"password",Bt("getPassword","setPassword")),f(Dt,"host",Bt("getHost","setHost")),f(Dt,"hostname",Bt("getHostname","setHostname")),f(Dt,"port",Bt("getPort","setPort")),f(Dt,"pathname",Bt("getPathname","setPathname")),f(Dt,"search",Bt("getSearch","setSearch")),f(Dt,"searchParams",Bt("getSearchParams")),f(Dt,"hash",Bt("getHash","setHash"))),l(Dt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(Dt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),E){var Nt=E.createObjectURL,Ut=E.revokeObjectURL;Nt&&l(Rt,"createObjectURL",s(Nt,E)),Ut&&l(Rt,"revokeObjectURL",s(Ut,E))}_(Rt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Rt})},"6be7":function(t,e,n){"use strict";var r=n("8bdb"),i=n("71e9"),o=n("1c06"),a=n("e7e3"),c=n("cfaf"),s=n("1ded"),u=n("c337");r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return a(e)===f?e[n]:(r=s.f(e,n),r?c(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=u(e))?t(l,n,f):void 0)}})},"6bfa":function(t,e,n){"use strict";var r=n("f660"),i=n("1cb5"),o=n("799d"),a=n("235c"),c=n("d6b1").f,s=n("0cc2"),u=n("97ed"),l=n("a734"),f=n("ab4a"),d=a.set,h=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){d(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{c(p,"name",{value:"values"})}catch(v){}},"6c13":function(t,e,n){var r=n("c86b");t.exports=r("navigator","userAgent")||""},"6e4a":function(t,e,n){"use strict";var r=n("508d"),i=n("3a4b"),o=n("3c5d"),a=n("7aa6"),c=n("c86b"),s=n("fdca"),u=n("0699"),l=n("7478"),f=n("27cc"),d=o&&o.prototype,h=!!o&&a((function(){d["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=u(this,c("Promise")),n=s(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&s(o)){var p=c("Promise").prototype["finally"];d["finally"]!==p&&f(d,"finally",p,{unsafe:!0})}},"6f19":function(t,e,n){var r=n("6c13");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},7054:function(t,e,n){"use strict";var r=n("e7e3"),i=n("df92"),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},"70a5":function(t,e,n){var r=n("6c13"),i=n("8394");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},"71e9":function(t,e,n){"use strict";var r=n("8f26"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},"720d":function(t,e,n){var r=n("d456"),i=n("fdca"),o=n("85e5"),a=n("29d5"),c=a("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=s(t),c))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},7257:function(t,e,n){"use strict";var r=n("db06");t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},7478:function(t,e,n){var r=n("d191"),i=n("1ae3"),o=n("f439");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},7658:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("bb80"),a=n("8466"),c=n("81a9"),s=n("d0b1"),u=n("5075"),l=n("b720"),f=n("474f"),d=n("1eb8"),h=n("1c06"),p=n("af9e"),v=n("29ba"),g=n("181d"),m=n("dcda");t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),_=b?"set":"add",w=i[t],x=w&&w.prototype,k=w,S={},C=function(t){var e=o(x[t]);c(x,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return y&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(y&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},T=a(t,!f(w)||!(y||x.forEach&&!p((function(){(new w).entries().next()}))));if(T)k=n.getConstructor(e,t,b,_),s.enable();else if(a(t,!0)){var O=new k,E=O[_](y?{}:-0,1)!==O,A=p((function(){O.has(1)})),I=v((function(t){new w(t)})),L=!y&&p((function(){var t=new w,e=5;while(e--)t[_](e,e);return!t.has(-0)}));I||(k=e((function(t,e){l(t,x);var n=m(new w,t,k);return d(e)||u(e,n[_],{that:n,AS_ENTRIES:b}),n})),k.prototype=x,x.constructor=k),(A||L)&&(C("delete"),C("has"),b&&C("get")),(L||E)&&C(_),y&&x.clear&&delete x.clear}return S[t]=k,r({global:!0,constructor:!0,forced:k!==w},S),g(k,t),y||n.setStrong(k,t,b),k}},"77b2":function(t,e,n){var r=n("d10a");t.exports=r({}.isPrototypeOf)},"77cd":function(t,e,n){var r=n("d10a"),i=n("b510"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7934:function(t,e,n){"use strict";var r=n("569b"),i=n("8e02");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},7992:function(t,e,n){"use strict";var r=n("474f"),i=n("52df"),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},7996:function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("181d");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},"799d":function(t,e,n){"use strict";t.exports={}},"7a76":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("9f9e"),a=n("175f"),c=i["WebAssembly"],s=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,s),r({global:!0,constructor:!0,arity:1,forced:s},n)},l=function(t,e){if(c&&c[t]){var n={};n[t]=a("WebAssembly."+t,e,s),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:s},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),l("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),l("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),l("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},"7aa6":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7b05":function(t,e,n){var r,i,o,a=n("c7dd"),c=n("8394"),s=n("1ae3"),u=n("d1a8"),l=n("77cd"),f=n("49a5"),d=n("3872"),h=n("bd8a"),p=c.TypeError,v=c.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw p("Object already initialized");return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");h[m]=!0,r=function(t,e){if(l(t,m))throw p("Object already initialized");return e.facade=t,u(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},"7b97":function(t,e,n){"use strict";var r=n("bb80"),i=n("7ddb"),o=n("6a2b"),a=r(o),c=i.aTypedArray,s=i.exportTypedArrayMethod;s("copyWithin",(function(t,e){return a(c(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"7c26":function(t,e,n){var r=n("dbc3"),i=n("d7b8"),o=n("d191"),a=n("e158"),c=n("1e4f"),s=n("1e5d"),u=n("77b2"),l=n("bef2"),f=n("1b8e"),d=n("e39d"),h=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,n){var g,m,b,y,_,w,x,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),E=r(e,k),A=function(t){return g&&d(g,"normal",t),new p(!0,t)},I=function(t){return S?(o(t),O?E(t[0],t[1],A):E(t[0],t[1])):O?E(t,A):E(t)};if(C)g=t.iterator;else if(T)g=t;else{if(m=f(t),!m)throw h(a(t)+" is not iterable");if(c(m)){for(b=0,y=s(t);y>b;b++)if(_=I(t[b]),_&&u(v,_))return _;return new p(!1)}g=l(t,m)}w=C?t.next:g.next;while(!(x=i(w,g)).done){try{_=I(x.value)}catch(L){d(g,"throw",L)}if("object"==typeof _&&_&&u(v,_))return _}return new p(!1)}},"7d2f":function(t,e,n){"use strict";var r=n("ab4a"),i=n("b0a8"),o=n("ada5"),a=n("e4ca"),c=n("235c").get,s=RegExp.prototype,u=TypeError;r&&i&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===o(this))return!!c(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})},"7d3c":function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"7ddb":function(t,e,n){"use strict";var r,i,o,a=n("c89b"),c=n("ab4a"),s=n("85c1"),u=n("474f"),l=n("1c06"),f=n("338c"),d=n("8e02"),h=n("52df"),p=n("6aca"),v=n("81a9"),g=n("e4ca"),m=n("1297"),b=n("c337"),y=n("8c4f"),_=n("8c08"),w=n("d7b4"),x=n("235c"),k=x.enforce,S=x.get,C=s.Int8Array,T=C&&C.prototype,O=s.Uint8ClampedArray,E=O&&O.prototype,A=C&&b(C),I=T&&b(T),L=Object.prototype,j=s.TypeError,M=_("toStringTag"),P=w("TYPED_ARRAY_TAG"),$=a&&!!y&&"Opera"!==d(s.opera),R=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},N=function(t){var e=b(t);if(l(e)){var n=S(e);return n&&f(n,"TypedArrayConstructor")?n["TypedArrayConstructor"]:N(e)}},U=function(t){if(!l(t))return!1;var e=d(t);return f(D,e)||f(B,e)};for(r in D)i=s[r],o=i&&i.prototype,o?k(o)["TypedArrayConstructor"]=i:$=!1;for(r in B)i=s[r],o=i&&i.prototype,o&&(k(o)["TypedArrayConstructor"]=i);if((!$||!u(A)||A===Function.prototype)&&(A=function(){throw new j("Incorrect invocation")},$))for(r in D)s[r]&&y(s[r],A);if((!$||!I||I===L)&&(I=A.prototype,$))for(r in D)s[r]&&y(s[r].prototype,I);if($&&b(E)!==I&&y(E,I),c&&!f(I,M))for(r in R=!0,g(I,M,{configurable:!0,get:function(){return l(this)?this[P]:void 0}}),D)s[r]&&p(s[r],P,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:R&&P,aTypedArray:function(t){if(U(t))return t;throw new j("Target is not a typed array")},aTypedArrayConstructor:function(t){if(u(t)&&(!y||m(A,t)))return t;throw new j(h(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(c){if(n)for(var i in D){var o=s[i];if(o&&f(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(u){}}}I[t]&&!n||v(I,t,n?e:$&&T[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(c){if(y){if(n)for(r in D)if(i=s[r],i&&f(i,t))try{delete i[t]}catch(o){}if(A[t]&&!n)return;try{return v(A,t,n?e:$&&A[t]||e)}catch(o){}}for(r in D)i=s[r],!i||i[t]&&!n||v(i,t,e)}},getTypedArrayConstructor:N,isView:function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||f(D,e)||f(B,e)},isTypedArray:U,TypedArray:A,TypedArrayPrototype:I}},"7df8":function(t,e,n){"use strict";var r=Math.round;t.exports=function(t){var e=r(t);return e<0?0:e>255?255:255&e}},"7e41":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("ada5"),a=Object,c=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):a(t)}:a},"7e87":function(t,e,n){"use strict";var r=n("bb80"),i=Error,o=r("".replace),a=function(t){return String(new i("zxcasd").stack)}(),c=/\n\s*at [^:]*:[^\n]*/,s=c.test(a);t.exports=function(t,e){if(s&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,c,"");return t}},"7e91":function(t,e,n){"use strict";var r=n("71e9"),i=n("e7e3"),o=n("60bc");t.exports=function(t,e,n){var a,c;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(s){c=!0,a=s}if("throw"===e)throw n;if(c)throw a;return i(a),n}},"7edc":function(t,e,n){"use strict";n("5c47");var r=n("71e9"),i=n("81a9"),o=n("9ad8"),a=n("af9e"),c=n("8c08"),s=n("6aca"),u=c("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=c(t),h=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),p=h&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!h||!p||n){var v=/./[d],g=e(d,""[t],(function(t,e,n,i,a){var c=e.exec;return c===o||c===l.exec?h&&!a?{done:!0,value:r(v,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(l,d,g[1])}f&&s(l[d],"sham",!0)}},"7edd":function(t,e,n){"use strict";var r=n("85c1"),i=n("af9e"),o=n("bb80"),a=n("7ddb"),c=n("6bfa"),s=n("8c08"),u=s("iterator"),l=r.Uint8Array,f=o(c.values),d=o(c.keys),h=o(c.entries),p=a.aTypedArray,v=a.exportTypedArrayMethod,g=l&&l.prototype,m=!i((function(){g[u].call([1])})),b=!!g&&g.values&&g[u]===g.values&&"values"===g.values.name,y=function(){return f(p(this))};v("entries",(function(){return h(p(this))}),m),v("keys",(function(){return d(p(this))}),m),v("values",y,m||!b,{name:"values"}),v(u,y,m||!b,{name:"values"})},"7f28":function(t,e,n){"use strict";var r=TypeError;t.exports=function(t,e){if(t"+t+"<\/script>"},p=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&r?p(r):function(){var t,e=u("iframe");return e.style.display="none",s.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(h("document.F=Object")),t.close(),t.F}():p(r);var t=a.length;while(t--)delete v["prototype"][a[t]];return v()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d["prototype"]=i(t),n=new d,d["prototype"]=null,n[f]=t):n=v(),void 0===e?n:o.f(n,e)}},"84d6":function(t,e,n){"use strict";var r=n("1099"),i=n("e34c"),o=n("1fc1");t.exports=function(t){var e=r(this),n=o(e),a=arguments.length,c=i(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=void 0===s?n:i(s,n);while(u>c)e[c++]=t;return e}},8557:function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},8598:function(t,e,n){"use strict";var r=n("bb80"),i=n("7992"),o=n("1c06"),a=n("338c"),c=n("37ad"),s=n("8f26"),u=Function,l=r([].concat),f=r([].join),d={},h=function(t,e,n){if(!a(d,e)){for(var r=[],i=0;in||l!==l?s*(1/0):s*l}},"884b":function(t,e,n){"use strict";var r=n("338c"),i=n("81a9"),o=n("7054"),a=n("8c08"),c=a("toPrimitive"),s=Date.prototype;r(s,c)||i(s,c,o)},8945:function(t,e,n){"use strict";var r=n("ab4a"),i=n("338c"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),s=c&&"something"===function(){}.name,u=c&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:u}},"8a29":function(t,e,n){var r=n("77cd"),i=n("fdca"),o=n("b510"),a=n("3872"),c=n("66ee"),s=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=c?u.getPrototypeOf:function(t){var e=o(t);if(r(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},"8a8d":function(t,e,n){"use strict";var r=n("8bdb"),i=n("8c4f");r({target:"Object",stat:!0},{setPrototypeOf:i})},"8ae2":function(t,e,n){"use strict";var r=n("bb80"),i=n("af9e"),o=n("474f"),a=n("8e02"),c=n("6aa6"),s=n("ca99"),u=function(){},l=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.test(u),p=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,s(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},"8b27":function(t,e,n){"use strict";var r=n("8945").PROPER,i=n("af9e"),o=n("f072");t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},"8b3b":function(t,e,n){"use strict";var r=n("9b55");t.exports=function(t,e){return r[t]||(r[t]=e||{})}},"8bdb":function(t,e,n){"use strict";var r=n("85c1"),i=n("1ded").f,o=n("6aca"),a=n("81a9"),c=n("c9b7"),s=n("3d8a"),u=n("8466");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||c(v,{}):r[v]&&r[v].prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(g?f:v+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(l,f,h,t)}}},"8c08":function(t,e,n){"use strict";var r=n("85c1"),i=n("8b3b"),o=n("338c"),a=n("d7b4"),c=n("af71"),s=n("4f04"),u=r.Symbol,l=i("wks"),f=s?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=c&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},"8c18":function(t,e,n){"use strict";var r=n("7ddb"),i=n("9a51").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},"8c4f":function(t,e,n){"use strict";var r=n("960c"),i=n("1c06"),o=n("862c"),a=n("a048");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(c){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},"8cb1":function(t,e,n){"use strict";var r=n("6aca"),i=n("7e87"),o=n("417a"),a=Error.captureStackTrace;t.exports=function(t,e,n,c){o&&(a?a(t,e):r(t,"stack",i(n,c)))}},"8d0b":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&e.splice(n,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;g(t,n,[],t._modules.root,!0),v(t,n,e)}function v(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};o(i,(function(e,n){a[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var c=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:a}),l.config.silent=c,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function g(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var c=m(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit((function(){l.set(c,s,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=b(n,r,i),a=o.payload,c=o.options,s=o.type;return c&&c.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,i){var o=b(n,r,i),a=o.payload,c=o.options,s=o.type;c&&c.root||(s=e+s),t.commit(s,a,c)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),i}(t,a,n);r.forEachMutation((function(e,n){var r=a+n;(function(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))})(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;(function(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"===typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))})(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;(function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}})(t,r,e,u)})),r.forEachChild((function(r,o){g(t,e,n.concat(o),r,i)}))}function m(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,n){return a(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function y(t){l&&t===l||(l=t, +/*! + * vuex v3.6.2 + * (c) 2021 Evan You + * @license MIT + */ +function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,i=b(t,e,n),o=i.type,a=i.payload,c=(i.options,{type:o,payload:a}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(c,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=b(t,e),i=r.type,o=r.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var s=c.length>1?Promise.all(c.map((function(t){return t(o)}))):c[0](o);return new Promise((function(t,e){s.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return h(n,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),n.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),p(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),p(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=T(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),w=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),x=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),k=C((function(t,e){var n={};return S(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n}));function S(t){return function(t){return Array.isArray(t)||a(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function T(t,e,n){var r=t._modulesNamespaceMap[n];return r}function O(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function E(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function A(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var L={Store:f,install:y,version:"3.6.2",mapState:_,mapMutations:w,mapGetters:x,mapActions:k,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:x.bind(null,t),mapMutations:w.bind(null,t),mapActions:k.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var c=t.actionTransformer;void 0===c&&(c=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=i(t.state);"undefined"!==typeof l&&(s&&t.subscribe((function(t,a){var c=i(a);if(n(t,f,c)){var s=A(),u=o(t),d="mutation "+t.type+s;O(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(c)),E(l)}f=c})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=A(),i=c(t),o="action "+t.type+r;O(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),E(l)}})))}}};t.exports=L}).call(this,n("0ee4"))},"8f71":function(t,e,n){"use strict";var r=n("8bdb"),i=n("4d16").filter,o=n("a554"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"8fa1":function(t,e,n){var r=n("d10a"),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},"8ff5":function(t,e,n){"use strict";var r=n("7ddb"),i=n("4d16").filter,o=n("4379"),a=r.aTypedArray,c=r.exportTypedArrayMethod;c("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},9105:function(t,e,n){var r=n("56c8"),i=n("da1d");t.exports=Object.keys||function(t){return r(t,i)}},"911a":function(t,e,n){"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}},"926e":function(t,e,n){"use strict";var r=n("8bdb"),i=n("af9e"),o=n("1099"),a=n("c337"),c=n("1d57"),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:s,sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},"92b3":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9320:function(t,e,n){"use strict";var r=n("4c77").IteratorPrototype,i=n("849d"),o=n("92b3"),a=n("ebe8"),c=n("d459"),s=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,l,!1,!0),c[l]=s,t}},9337:function(t,e,n){(function(t){var r=n("bdbb").default;n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("4e9b"),n("114e"),n("c240"),n("5ef2"),n("23f4"),n("7d2f"),n("5c47"),n("9c4e"),n("ab80"),n("0506"),n("e838"),n("2c10"),n("a1c1"),n("0c26"),n("e966"),n("c223"),n("dc8a"),n("2797"),n("aa9c"),n("8f71"),n("fd3c"),n("dd2b"),n("64aa"),n("de6c"),n("7a76"),n("c9b5"),n("4626"),n("22b6"),n("80e3"),n("4db2"),n("f7a5"),n("18f7"),n("9db6"),n("aa77"),n("d4b5"),n("473f"),n("15d1"),n("d5c6"),n("5a56"),n("f074"),n("4100"),n("08eb"),n("844d"),n("9a2c"),n("a644"),n("a03a"),n("3efd"),n("3872e"),n("926e"),n("8a8d"),n("dc69"),n("9480"),n("4d8f"),n("7b97"),n("668a"),n("c5b7"),n("8ff5"),n("2378"),n("641a"),n("64e0"),n("cce3"),n("efba"),n("d009"),n("bd7d"),n("7edd"),n("d798"),n("f547"),n("5e54"),n("b60a"),n("8c18"),n("12973"),n("f991"),n("198e"),n("8557"),n("63b1"),n("1954"),n("1cf1"),n("5ac7"),n("af8f"),n("c976"),n("dfcf"),n("bd06"),n("dc89"),n("2425"),n("6a88"),n("7996"),n("6be7"),n("45da"),function(i,o){"object"===r(e)&&"object"===r(t)?t.exports=o(n("d3b4"),n("9b8e"),n("bcdb")):n("2c6b")([,,],o)}("undefined"!==typeof self&&self,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===r(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="393d")}({"0071":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("340d"),i=n("71a4");function o(t){var e={};for(var n in t){var o=t[n];Object(r["k"])(o)&&(e[n]=Object(i["a"])(o),delete t[n])}return e}},"0126":function(t,e,n){"use strict";n.r(e),n.d(e,"getLaunchOptionsSync",(function(){return i})),n.d(e,"getEnterOptionsSync",(function(){return o}));var r=n("3d1e");function i(){return Object(r["e"])()}function o(){return Object(r["d"])()}},"01aa":function(t,e,n){"use strict";var r=n("e32e"),i=n.n(r);i.a},"01fd":function(t,e,n){"use strict";n.r(e),n.d(e,"getTheme",(function(){return i})),n.d(e,"getBrowserInfo",(function(){return d}));var r=n("340d");function i(){if(!0!==__uniConfig.darkmode)return Object(r["m"])(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(t){return"light"}}var o=navigator.userAgent,a=/android/i.test(o),c=/iphone|ipad|ipod/i.test(o),s=o.match(/Windows NT ([\d|\d.\d]*)/i),u=/Macintosh|Mac/i.test(o),l=/Linux|X11/i.test(o),f=u&&navigator.maxTouchPoints>0;function d(){var t,e,n,r=navigator.language,d="phone";if(c){t="iOS";var h=o.match(/OS\s([\w_]+)\slike/);h&&(e=h[1].replace(/_/g,"."));var p=o.match(/\(([a-zA-Z]+);/);p&&(n=p[1])}else if(a){t="Android";var v=o.match(/Android[\s/]([\w\.]+)[;\s]/);v&&(e=v[1]);for(var g=o.match(/\((.+?)\)/),m=g?g[1].split(";"):o.split(" "),b=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],y=0;y0){n=_.split("Build")[0].trim();break}for(var w=void 0,x=0;x-1&&t.indexOf("MSIE")>-1,n=t.indexOf("Edge")>-1&&!e,r=t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1;if(e){var i=new RegExp("MSIE (\\d+\\.\\d+);");i.test(t);var o=parseFloat(RegExp.$1);return o>6?o:6}return n?-1:r?11:-1}());if("-1"!==A)E="IE";else for(var I=["Version","Firefox","Chrome","Edge{0,1}"],L=["Safari","Firefox","Chrome","Edge"],j=0;j=0&&a.splice(e,1)}}function l(e){c.push(e),t.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(i["d"])(o["b"],(function(t){a.forEach((function(e){Object(r["a"])(e,t)}))})),Object(i["d"])("onUIStyleChange",(function(t){c.forEach((function(e){Object(r["a"])(e,t)}))}))}.call(this,n("418b")["default"])},"04d4":function(t,e,n){"use strict";var r=n("340d"),i=n("b435");e["a"]={props:{dashArray:{type:Array,default:function(){return[0,0]}},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},mounted:function(){var t=this,e=this.$parent;e.mapReady((function(){t.drawPolygon(),Object.keys(t.$props).forEach((function(e){t.$watch(e,(function(){t.drawPolygon()}),{deep:!0})}))}))},methods:{drawPolygon:function(){var t=this.points,e=this.strokeWidth,n=this.strokeColor,o=this.dashArray,a=this.fillColor,c=this.zIndex,s=this.$parent,u=s._maps,l=s._map,f=t.map((function(t){var e=t.latitude,n=t.longitude;return i["c"]?[n,e]:new u.LatLng(e,n)})),d=Object(r["j"])(a),h=d.r,p=d.g,v=d.b,g=d.a,m=Object(r["j"])(n),b=m.r,y=m.g,_=m.b,w=m.a,x={clickable:!0,cursor:"crosshair",editable:!1,map:l,fillColor:"",path:f,strokeColor:"",strokeDashStyle:o.some((function(t){return t>0}))?"dash":"solid",strokeWeight:e,visible:!0,zIndex:c};u.Color?(x.fillColor=new u.Color(h,p,v,g),x.strokeColor=new u.Color(b,y,_,w)):(x.fillColor="rgb(".concat(h,", ").concat(p,", ").concat(v,")"),x.fillOpacity=g,x.strokeColor="rgb(".concat(b,", ").concat(y,", ").concat(_,")"),x.strokeOpacity=w),this.polygonIns?this.polygonIns.setOptions(x):this.polygonIns=new u.Polygon(x)}},beforeDestroy:function(){this.polygonIns.setMap(null),this.polygonIns=null},render:function(){return null}}},"04ed":function(t,e,n){},"050f":function(t,e,n){"use strict";var r=Object.create(null),i=n("1fe9");i.keys().forEach((function(t){Object.assign(r,i(t))}));var o=r,a=n("b15e");e["a"]=Object.assign(Object.create(null),o,a["a"])},"0671":function(t,e,n){"use strict";var r=n("24f2"),i=n.n(r);i.a},"0680":function(t,e,n){"use strict";(function(t,e,r){var i=n("951c"),o=n.n(i),a=n("eeff");function c(t,e){for(var n=0;n.5&&e._A<=.5?o.forEach((function(t){t.color=a})):c<=.5&&e._A>.5&&o.forEach((function(t){t.color="#fff"})),e._A=c,r&&(r.style.opacity=c),n.backgroundColor="rgba(".concat(e._R,",").concat(e._G,",").concat(e._B,",").concat(c,")"),l.forEach((function(t,e){var n=u[e],r=n.match(/[\d+\.]+/g);r[3]=(1-c)*(4===r.length?r[3]:1),t.backgroundColor="rgba(".concat(r,")")})))}))}else if("float"===this.type){for(var h=this.$el.querySelectorAll(".uni-btn-icon"),p=[],v=0;v-1&&this.selectionEndNumber>-1&&"number"!==t.type&&(t.selectionStart=this.selectionStartNumber,t.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var t=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==t.type&&(t.selectionEnd=t.selectionStart=this.cursorNumber)}}}}).call(this,n("31d2"))},"0c61":function(t,e,n){},"0cac":function(t,e,n){},"0db3":function(t,e,n){"use strict";(function(t){function r(e,n){return n?e?e.$el:n.$el:t.error("page is not ready")}function i(t){return t.matches||(t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;while(--n>=0&&e.item(n)!==this);return n>-1}),t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"0db8":function(t,e,n){"use strict";function r(t,e){for(var n=this.$children,i=n.length,o=arguments.length,a=new Array(o>2?o-2:0),c=2;c2?i-2:0),a=2;a2?n-2:0),o=2;o0&&(n.currentTime=t)}));var i=["canplay","pause","seeking","seeked","timeUpdate"];["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"].forEach((function(t){n.addEventListener(t.toLowerCase(),(function(){e._stoping&&i.indexOf(t)>=0||e._events["on".concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))].forEach((function(t){t()}))}),!1)}))}return function(t,e,n){e&&i(t.prototype,e),n&&i(t,n)}(t,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(t){t()}))}},{key:"seek",value:function(t){this._stoping=!1,t=Number(t),"number"!==typeof t||isNaN(t)||(this._audio.currentTime=t)}},{key:"destroy",value:function(){this.stop()}}]),t}();function s(){return new c}a.forEach((function(t){c.prototype[t]=function(e){"function"===typeof e&&this._events[t].push(e)}})),["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"].forEach((function(t){c.prototype[t]=function(e){var n=this._events[t.replace("off","on")],r=n.indexOf(e);r>=0&&n.splice(r,1)}}))},1332:function(t,e,n){},1720:function(t,e,n){"use strict";var r=n("a187"),i=n.n(r);i.a},1867:function(t,e,n){"use strict";var r=n("9a78"),i=n.n(r);i.a},"1c3e":function(t,e,n){"use strict";n.r(e),n.d(e,"onNetworkStatusChange",(function(){return a})),n.d(e,"offNetworkStatusChange",(function(){return c}));var r=n("9131"),i=n("745a"),o=[];function a(t){o.push(t)}function c(t){if(t){var e=o.indexOf(t);e>=0&&o.splice(e,1)}}Object(i["d"])("onNetworkStatusChange",(function(t){o.forEach((function(e){Object(r["a"])(e,t)}))}))},"1d2e":function(t,e,n){"use strict";n.r(e),function(t,r){var i=n("0372");e["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var e=this,n="",o=function(t){return function(r){n=t,setTimeout((function(){e.showToast=r}),10)}};t.on("onShowToast",o("onShowToast")),t.on("onShowLoading",o("onShowLoading"));var a=function(t){return function(){if(n){var o="";if("onHideToast"===t&&"onShowToast"!==n?o=Object(i["g"])("uni.showToast.unpaired"):"onHideLoading"===t&&"onShowLoading"!==n&&(o=Object(i["g"])("uni.showLoading.unpaired")),o)return r.warn(o);n="",setTimeout((function(){e.showToast.visible=!1}),10)}}};t.on("onHidePopup",a("onHidePopup")),t.on("onHideToast",a("onHideToast")),t.on("onHideLoading",a("onHideLoading"))}}}.call(this,n("2c9f"),n("418b")["default"])},"1da9":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.startSoterAuthentication.waitingContent":"无法识别","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},"1daa":function(t,e,n){"use strict";function r(t,e,n,r){var i,o=document.createElement("script"),a=e.callback||"callback",c="__callback"+Date.now()+Math.random().toString().slice(2),s=e.timeout||3e4;function u(){clearTimeout(i),delete window[c],o.remove()}window[c]=function(t){"function"===typeof n&&n(t),u()},o.onerror=function(){"function"===typeof r&&r(),u()},i=setTimeout((function(){"function"===typeof r&&r(),u()}),s),o.src=t+(t.indexOf("?")>=0?"&":"?")+a+"="+c,document.body.appendChild(o)}n.d(e,"a",(function(){return r}))},"1efd":function(t,e,n){"use strict";n.r(e),n.d(e,"getWindowInfo",(function(){return a}));var r=n("8d7d"),i=n("f621"),o=n.n(i);function a(){var t=window.screen,e=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,i=n&&90===Math.abs(window.orientation),a=n?Math[i?"max":"min"](t.width,t.height):t.width,c=n?Math[i?"min":"max"](t.height,t.width):t.height,s=Math.min(window.innerWidth,document.documentElement.clientWidth,a)||a,u=window.innerHeight,l=o.a.top,f={left:o.a.left,right:s-o.a.right,top:o.a.top,bottom:u-o.a.bottom,width:s-o.a.left-o.a.right,height:u-o.a.top-o.a.bottom},d=Object(r["a"])(),h=d.top,p=d.bottom;return u-=h,u-=p,{windowTop:h,windowBottom:p,windowWidth:s,windowHeight:u,pixelRatio:e,screenWidth:a,screenHeight:c,statusBarHeight:l,safeArea:f,safeAreaInsets:{top:o.a.top,right:o.a.right,bottom:o.a.bottom,left:o.a.left},screenTop:c-u}}},"1f8a":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"Radio",mixins:[r["a"],r["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007AFF"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{radioStyle:function(){if(this.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};var t={};return this.radioChecked?(t.color=this.iconColor,t.backgroundColor=this.activeBackgroundColor||this.color,t.borderColor=this.activeBorderColor||t.backgroundColor):(this.borderColor&&(t.borderColor=this.borderColor),this.backgroundColor&&(t.backgroundColor=this.backgroundColor)),t}},watch:{checked:function(t){this.radioChecked=t},value:function(t){this.radioValue=t}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(t){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",t,this))},_resetFormData:function(){this.radioChecked=this.min}}},o=i,a=(n("9854"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio",t._g({attrs:{disabled:t.disabled},on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":t.radioChecked?t.radioStyle.borderColor:t.activeBorderColor}},[n("div",{staticClass:"uni-radio-input",class:{"uni-radio-input-checked":t.radioChecked,"uni-radio-input-disabled":t.disabled},style:t.radioStyle}),t._t("default")],2)])}),[],!1,null,null,null);e["default"]=c.exports},"1fdf":function(t,e,n){},"1fe9":function(t,e,n){var r={"./base/base64.js":"78b7","./base/can-i-use.js":"9bd9","./base/interceptor.js":"c9da","./base/upx2px.js":"c165","./context/audio.js":"e748","./context/background-audio.js":"86d3","./context/canvas.js":"6352","./context/create-map-context.js":"ed2c","./context/create-video-context.js":"e68a","./context/editor.js":"5883","./context/inner-audio.js":"beab","./device/network.js":"1c3e","./device/theme.js":"0426","./keyboard/get-selected-text-range.js":"7958","./keyboard/keyboard.js":"7068","./media/preview-image.js":"7317","./media/recorder.js":"d91a","./network/download-file.js":"cf97","./network/request.js":"dc02","./network/socket.js":"32a0","./network/update.js":"c4cd","./network/upload-file.js":"bceb","./plugin/__f__.js":"61a5","./plugin/push.js":"9f56","./ui/create-animation.js":"a2f6","./ui/create-intersection-observer.js":"a6f2","./ui/create-media-query-observer.js":"a874","./ui/create-selector-query.js":"8379","./ui/load-font-face.js":"fdcd","./ui/locale.js":"ebda","./ui/page-scroll-to.js":"3313","./ui/set-page-meta.js":"be92","./ui/tab-bar.js":"e87f","./ui/window.js":"ccdf"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="1fe9"},2066:function(t,e,n){"use strict";n.r(e);var r={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var t=this.$el;t.style.position="absolute",t.style.width="100%",t.style.height="100%";var e=this.$vnode._callbacks;e&&e.forEach((function(t){t()}))}},i=r,o=(n("95bd"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-swiper-item",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"211f":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"uploadFile",(function(){return c}));var r=n("bdee");function i(t,e){for(var n=0;n=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function c(e,n){var i=e.url,o=e.file,c=e.filePath,s=e.name,u=e.files,l=e.header,f=e.formData,d=e.timeout,h=void 0===d?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:d,p=t,v=p.invokeCallbackHandler,g=new a(null,n);return Array.isArray(u)&&u.length||(u=[{name:s,file:o,uri:c}]),Promise.all(u.map((function(t){var e=t.file,n=t.uri;return e instanceof Blob?Promise.resolve(Object(r["a"])(e)):Object(r["f"])(n)}))).then((function(t){var e,r=new XMLHttpRequest,o=new FormData;Object.keys(f).forEach((function(t){o.append(t,f[t])})),Object.values(u).forEach((function(e,n){var r=e.name,i=t[n];o.append(r||"file",i,i.name||"file-".concat(Date.now()))})),r.open("POST",i),Object.keys(l).forEach((function(t){r.setRequestHeader(t,l[t])})),r.upload.onprogress=function(t){g._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesSent:n,totalBytesExpectedToSend:r})}))},r.onerror=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail"})},r.onabort=function(){clearTimeout(e),v(n,{errMsg:"uploadFile:fail abort"})},r.onload=function(){clearTimeout(e);var t=r.status;v(n,{errMsg:"uploadFile:ok",statusCode:t,data:r.responseText||r.response})},g._isAbort?v(n,{errMsg:"uploadFile:fail abort"}):(e=setTimeout((function(){r.upload.onprogress=r.onload=r.onabort=r.onerror=null,g.abort(),v(n,{errMsg:"uploadFile:fail timeout"})}),h),r.send(o),g._xhr=r)})).catch((function(){setTimeout((function(){v(n,{errMsg:"uploadFile:fail file error"})}),0)})),g}}.call(this,n("2c9f"))},"21f5":function(t,e,n){},2214:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return S}));var r=n("340d"),i=n("71a4"),o=n("d334"),a=n("0071"),c=n("8b82"),s=n("41cb");function u(t,e,n){var r="".concat(e,":fail ").concat(t);if(-1===n)throw new Error(r);return"number"===typeof n&&y(n,{errMsg:r}),!1}var l=[{name:"callback",type:Function,required:!0}],f=["beforeValidate","beforeAll","beforeSuccess"];function d(t,e,n){var i=c["a"][t];if(!i&&Object(o["a"])(t)&&(i=l),i){if(Array.isArray(i)&&Array.isArray(e)){var a=Object.create(null),d=Object.create(null),h=e.length;i.forEach((function(t,n){a[t.name]=t,h>n&&(d[t.name]=e[n])})),i=a,e=d}if(Object(r["k"])(i.beforeValidate)){var p=i.beforeValidate(e);if(p)return u(p,t,n)}for(var v=Object.keys(i),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(r["l"])(e))return{params:e};e=Object.assign({},e);var o=Object(a["a"])(e),c=o.success,s=o.fail,u=o.cancel,l=o.complete,f=Object(r["k"])(c),d=Object(r["k"])(s),v=Object(r["k"])(u),g=Object(r["k"])(l);if(!f&&!d&&!v&&!g)return{params:e};var m={};for(var b in n){var y=n[b];Object(r["k"])(y)&&(m[b]=Object(i["b"])(y))}var _=m.beforeSuccess,w=m.afterSuccess,x=m.beforeFail,k=m.afterFail,S=m.beforeCancel,C=m.afterCancel,T=m.beforeAll,O=m.afterAll,E=h++,A="api."+t+"."+E,I=function(n){if(n.errMsg=n.errMsg||t+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=t+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=t+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var i="",o=n.errMsg.indexOf(" ");o>-1&&(i=n.errMsg.substr(o)),n.errMsg=t+":fail"+i}Object(r["k"])(T)&&T(n);var a=n.errMsg;0===a.indexOf(t+":ok")?(Object(r["k"])(_)&&_(n,e),f&&c(n),Object(r["k"])(w)&&w(n)):0===a.indexOf(t+":cancel")?(n.errMsg=n.errMsg.replace(t+":cancel",t+":fail cancel"),d&&s(n),Object(r["k"])(S)&&S(n),v&&u(n),Object(r["k"])(C)&&C(n)):0===a.indexOf(t+":fail")&&(Object(r["k"])(x)&&x(n),d&&s(n),Object(r["k"])(k)&&k(n)),g&&l(n),Object(r["k"])(O)&&O(n)};return p[E]={name:A,callback:I},{params:e,callbackId:E}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=m(t,e,n),o=i.params,a=i.callbackId;return Object(r["l"])(o)&&!d(t,o,a)?{params:o,callbackId:!1}:{params:o,callbackId:a}}function y(t,e,n){if("number"===typeof t){var r=p[t];if(r)return r.keepAlive||delete p[t],r.callback(e,n)}return e}function _(t){delete p[t]}function w(e){return function(n){t.error("API `"+e+"` is not yet implemented")}}function x(t,e){var n=c["a"][t];n&&(Object(r["k"])(n.beforeAll)&&(e.beforeAll=n.beforeAll),Object(r["k"])(n.beforeSuccess)&&(e.beforeSuccess=n.beforeSuccess))}var k=["getPushClientId","onPushMessage","offPushMessage"];function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k.indexOf(t)>-1||!Object(r["k"])(e)?e:(x(t,n),function(){for(var i=arguments.length,a=new Array(i),c=0;c0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=a();if(!i)return n&&t.error("app is not ready"),[];var o=i.$children[0];if(o&&o.$children.length){var c=o.$children.find((function(t){return"TabBar"===t.$options.name})),s=o.$children.find((function(t){return"Layout"===t.$options.name}));s&&(o=s),o.$children.forEach((function(t){if(c!==t&&t.$children.length&&"Page"===t.$children[0].$options.name&&t.$children[0].$slots.page){var n=t.$children[0].$children.find((function(t){return"PageBody"===t.$options.name})),o=n&&n.$children.find((function(t){return!!t.$page}));if(o){var a=!0;!e&&c&&o.$page&&o.$page.meta.isTabBar&&(i.$route.meta&&i.$route.meta.isTabBar?i.$route.path!==o.$page.path&&(a=!1):c.__path__!==o.$page.path&&(a=!1)),a&&r.push(o)}}}))}var u=r.length;if(u>1){var l=r[u-1];l.$page.path!==i.$route.path&&r.splice(u-1,1)}return r}function s(t,e,n){o=e,o.$vm=e,o.globalData=o.$options.globalData||{},Object(r["d"])(t,o),Object(i["a"])(o,n)}}).call(this,n("418b")["default"])},"27d2":function(t,e,n){},"283d":function(t,e,n){"use strict";var r=n("b62a"),i=n.n(r);i.a},"286e":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getFileInfo",(function(){return a}));var r=n("bdee"),i=t,o=i.invokeCallbackHandler;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.filePath,n=arguments.length>1?arguments[1]:void 0;Object(r["f"])(e).then((function(t){o(n,{errMsg:"getFileInfo:ok",size:t.size})})).catch((function(t){o(n,{errMsg:"getFileInfo:fail "+t.message})}))}}.call(this,n("2c9f"))},"2a78":function(t,e,n){"use strict";n.r(e);var r=n("9f62"),i=r["a"],o=(n("d638"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-label",t._g({class:{"uni-label-pointer":t.pointer},on:{click:t._onClick}},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=a.exports},"2ace":function(t,e,n){"use strict";(function(t){var r=n("340d");e["a"]={props:{id:{type:String,default:""}},created:function(){var t=this;this._addListeners(this.id),this.$watch("id",(function(e,n){t._removeListeners(n,!0),t._addListeners(e,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$on("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.on(r,i[o[r]]):e&&t.on("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}},_removeListeners:function(e,n){var i=this;if(!n||e){var o=this.$options.listeners;Object(r["l"])(o)&&Object.keys(o).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]]):0===r.indexOf("@")?i.$off("uni-".concat(r.substr(1)),i[o[r]]):0===r.indexOf("uni-")?t.off(r,i[o[r]]):e&&t.off("uni-".concat(r,"-").concat(i.$page.id,"-").concat(e),i[o[r]])}))}}}}}).call(this,n("31d2"))},"2be0":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("340d"),i=n("909e");function o(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var c={name:"uni://form-field",init:function(t,e){e.constructor.options.props&&e.constructor.options.props.name&&e.constructor.options.props.value||(e.constructor.options.props||(e.constructor.options.props={}),e.constructor.options.props.name||(e.constructor.options.props.name=t.props.name={type:String}),e.constructor.options.props.value||(e.constructor.options.props.value=t.props.value={type:null})),t.propsData||(t.propsData={});var n=e.$vnode;if(n&&n.data&&n.data.attrs&&(Object(r["i"])(n.data.attrs,"name")&&(t.propsData.name=n.data.attrs.name),Object(r["i"])(n.data.attrs,"value")&&(t.propsData.value=n.data.attrs.value)),!e.constructor.options.methods||!e.constructor.options.methods._getFormData){e.constructor.options.methods||(e.constructor.options.methods={}),t.methods||(t.methods={});var c={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(e.constructor.options.methods,c),Object.assign(t.methods,c),Object.assign(e.constructor.options.methods,i["a"].methods),Object.assign(t.methods,i["a"].methods);var s=t.created;e.constructor.options.created=t.created=s?[].concat(o,s):[o];var u=t.beforeDestroy;e.constructor.options.beforeDestroy=t.beforeDestroy=u?[].concat(a,u):[a]}}};var s=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},c.name,c);function u(t,e){t.behaviors.forEach((function(n){var r=s[n];r&&r.init(t,e)}))}},"2c9f":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return s})),n.d(e,"off",(function(){return u})),n.d(e,"once",(function(){return l})),n.d(e,"emit",(function(){return f})),n.d(e,"subscribe",(function(){return d})),n.d(e,"unsubscribe",(function(){return h})),n.d(e,"subscribeHandler",(function(){return p}));var r=n("951c"),i=n.n(r),o=n("2214");n.d(e,"invokeCallbackHandler",(function(){return o["a"]})),n.d(e,"removeCallbackHandler",(function(){return o["b"]}));var a=n("89ec");n.d(e,"publishHandler",(function(){return a["b"]}));var c=new i.a,s=c.$on.bind(c),u=c.$off.bind(c),l=c.$once.bind(c),f=c.$emit.bind(c);function d(t,e){return s("view."+t,e)}function h(t,e){return u("view."+t,e)}function p(t,e,n){return f("view."+t,e,n)}},"2d10":function(t,e,n){},"2daf":function(t,e,n){"use strict";n.r(e),function(t){function r(){return window.location.protocol+"//"+window.location.host}function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler,c=new Image,s=i;c.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:c.naturalWidth,height:c.naturalHeight,path:0===s.indexOf("/")?r()+s:s})},c.onerror=function(t){a(n,{errMsg:"getImageInfo:fail"})},c.src=i}n.d(e,"getImageInfo",(function(){return i}))}.call(this,n("2c9f"))},"2eb1":function(t,e,n){"use strict";var r=n("0c61"),i=n.n(r);i.a},"2f5c":function(t,e,n){"use strict";n.r(e),n.d(e,"TEMP_PATH",(function(){return r}));var r=""},"31d2":function(t,e,n){"use strict";n.r(e),n.d(e,"on",(function(){return p})),n.d(e,"off",(function(){return v})),n.d(e,"once",(function(){return g})),n.d(e,"emit",(function(){return m})),n.d(e,"subscribe",(function(){return b})),n.d(e,"unsubscribe",(function(){return y})),n.d(e,"subscribeHandler",(function(){return _})),n.d(e,"publishHandler",(function(){return d["a"]}));var r=n("951c"),i=n.n(r);var o=n("49c2"),a=n("d661"),c=n("c08f"),s={setPageMeta:function(t){var e=t.pageStyle,n=t.rootFontSize,r=document.querySelector("uni-page-body")||document.body;r.setAttribute("style",e),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)},requestComponentInfo:o["a"],requestComponentObserver:a["b"],destroyComponentObserver:a["a"],requestMediaQueryObserver:c["b"],destroyMediaQueryObserver:c["a"]},u=n("493f"),l=n("fa95"),f=n("83ee");var d=n("a805"),h=new i.a,p=h.$on.bind(h),v=h.$off.bind(h),g=h.$once.bind(h),m=h.$emit.bind(h);function b(t,e){return p("service."+t,e)}function y(t,e){return v("service."+t,e)}function _(t,e,n){m("service."+t,e,n)}(function(t){Object.keys(s).forEach((function(e){t(e,s[e])})),t("pageScrollTo",u["c"]),t("loadFontFace",l["a"]),Object(f["a"])(t)})(b)},"32a0":function(t,e,n){"use strict";n.r(e),n.d(e,"connectSocket",(function(){return l})),n.d(e,"sendSocketMessage",(function(){return f})),n.d(e,"closeSocket",(function(){return d})),n.d(e,"onSocketOpen",(function(){return h})),n.d(e,"onSocketError",(function(){return p})),n.d(e,"onSocketMessage",(function(){return v})),n.d(e,"onSocketClose",(function(){return g}));var r=n("9131"),i=n("745a");function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.success,n=t.fail,r=t.complete,i=arguments.length>1?arguments[1]:void 0,o={errMsg:i};/:ok$/.test(i)?"function"===typeof e&&e(o):"function"===typeof n&&n(o),"function"===typeof r&&r(o)}}]),t}(),c=Object.create(null),s=[],u=Object.create(null);function l(t,e){var n=Object(i["c"])("createSocketTask",t),o=n.socketTaskId,u=new a(o);return c[o]=u,s.push(u),setTimeout((function(){Object(r["a"])(e,{errMsg:"connectSocket:ok"})}),0),u}function f(t,e){var n=s[0];if(n&&n.readyState===n.OPEN)return Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"send",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function d(t,e){var n=s[0];if(n)return n.readyState=n.CLOSING,Object(i["c"])("operateSocketTask",Object.assign({},t,{operationType:"close",socketTaskId:n.id}));Object(r["a"])(e,{errMsg:"closeSocket:fail WebSocket is not connected"})}function h(t){u.open=t}function p(t){u.error=t}function v(t){u.message=t}function g(t){u.close=t}Object(i["d"])("onSocketTaskStateChange",(function(t){var e=t.socketTaskId,n=t.state,i=t.data,o=t.code,a=t.reason,l=(t.errMsg,c[e]);if(l){var f="message"===n?{data:i}:"close"===n?{code:o,reason:a}:{};if("open"===n&&(l.readyState=l.OPEN),l===s[0]&&u[n]&&Object(r["a"])(u[n],f),"error"===n||"close"===n){l.readyState=l.CLOSED,delete c[e];var d=s.indexOf(l);d>=0&&s.splice(d,1)}l._callbacks[n].forEach((function(t){"function"===typeof t&&t(f)}))}}))},3313:function(t,e,n){"use strict";n.r(e),function(t){function r(e){var n=getCurrentPages();return n.length&&t.publishHandler("pageScrollTo",e,n[n.length-1].$page.id),{}}n.d(e,"pageScrollTo",(function(){return r}))}.call(this,n("2c9f"))},"33b2":function(t,e,n){"use strict";function r(t){var e=t.service;return{service:e,provider:[]}}n.r(e),n.d(e,"getProvider",(function(){return r}))},"33e2":function(t,e,n){"use strict";n.r(e);var r=n("44f1"),i=n.n(r),o=n("909e");function a(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,i)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;nthis.CACHE_TIME}}]),t}();l(f,"IC",0),l(f,"IS",0),Object.assign(f.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var d=function(){function t(){c(this,t),this._instance=null,this._adConfig=null,this._guid=null}return u(t,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new t,this._instance._init()),this._instance}}]),u(t,[{key:"_init",value:function(){var t=this._getConfig();null!==t&&t.guid?this._guid=t.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(t){this._process(Object.assign(t,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(t){uni.request({url:this.URL,method:"GET",data:t,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var t="",e="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;nparseInt(this.widescreenWidth),this._loadData(),d.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:f.IC,is:f.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(t){this._report(41)},_reset:function(){this._pd={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(t){var e=this;this._reset();var n=t||this.adpid,r=this._isWidescreen&&this.adpidWidescreen||n;f.instance.get(r,(function(t,n){e._ab=t,e._pl=n,e._renderAd()}),(function(t){e.$trigger("error",{},t)}))},_renderAd:function(){var t=this;if(!(this._pi>this._pl.length-1)){var e=this._pl[this._pi],n=this._ab[e.a1][e.t],r=n.script;this._currentChannel=e.a1;var i=this._randomId(),o=this._createView(i);"10023"===e.a1?h.instance.load(e.t,r,(function(){t._renderShanhu(i,e)}),(function(e){t.$trigger("error",{},e)})):"10010"===e.a1?h.instance.load(e.t,r,(function(){t._renderBaidu(i,e.a2)}),(function(e){t.$trigger("error",{},e)})):"10012"===e.a1?this._renderScript(o,r):h.instance.load(e.t,r,(function(){t._renderAdView(i,r.s,e)}),(function(e){t.$trigger("error",{},e)}))}},_createView:function(t){var e=document.createElement("div");return e.setAttribute("id",t),e.setAttribute("class",t),this.$refs.container.innerHTML="",this.$refs.container.append(e),e},_renderScript:function(t,e){var n=document.createElement("script");for(var r in e)n.setAttribute(r,e[r]);t.appendChild(n),this._startCheckTimer()},_renderBaidu:function(t,e){(window.slotbydup=window.slotbydup||[]).push({id:e,container:t,async:!0}),this._startCheckTimer()},_renderAdView:function(t,e,n){var r=window;e.split(".").reduce((function(t,e){return r=t,t[e]}),window).bind(r)(n.a2,t,2),this._startCheckTimer()},_renderShanhu:function(t,e){var n=this,r=new window.CoralAdv({app_id:e.a2,placement_id:e.a3,type:e.a4,display_type:e.a5,container_id:t,count:e.a6||1});r.ready().then(function(){var t=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function c(t){a(o,r,i,c,s,"next",t)}function s(t){a(o,r,i,c,s,"throw",t)}c(void 0)}))}}(i.a.mark((function t(e){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:0===e.ret?n.$trigger("load",{},{}):n.$trigger("error",{},e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.$trigger("error",{},t)})),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var t=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return t&&this._report(40,this._currentChannel),t},_startCheckTimer:function(){var t=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(t._checkTimerCount++,t._checkTimerCount>=5)return t._clearCheckTimer(),void t._renderNext();t._checkRender()&&t._clearCheckTimer()}),1e3)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(t,e){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:t};e&&(n.t=e),d.instance.get(n)},_randomId:function(){for(var t="",e=0;e<4;e++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+t}}},v=p,g=(n("c885"),n("8844")),m=Object(g["a"])(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-ad",t._g(t._b({},"uni-ad",t.attrs,!1),t.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:t._onhandle}})])}),[],!1,null,null,null);e["default"]=m.exports},"340d":function(t,e,n){"use strict";n.d(e,"t",(function(){return o})),n.d(e,"k",(function(){return p})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"i",(function(){return b})),n.d(e,"v",(function(){return y})),n.d(e,"p",(function(){return w})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return S})),n.d(e,"r",(function(){return C})),n.d(e,"h",(function(){return T})),n.d(e,"g",(function(){return O})),n.d(e,"x",(function(){return E})),n.d(e,"d",(function(){return A})),n.d(e,"u",(function(){return I})),n.d(e,"n",(function(){return L})),n.d(e,"f",(function(){return j})),n.d(e,"w",(function(){return l})),n.d(e,"s",(function(){return M})),n.d(e,"j",(function(){return R})),n.d(e,"e",(function(){return B})),n.d(e,"q",(function(){return N})),n.d(e,"a",(function(){return W})),n.d(e,"o",(function(){return G}));var i,o=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,a)}catch(X){}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function u(){var t,e=uni.getStorageSync("uni_id_token")||"",n=e.split(".");if(!e||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(t){return decodeURIComponent(i(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}function l(t){t.prototype.uniIDHasRole=function(t){var e=u(),n=e.role;return n.indexOf(t)>-1},t.prototype.uniIDHasPermission=function(t){var e=u(),n=e.permission;return this.uniIDHasRole("admin")||n.indexOf(t)>-1},t.prototype.uniIDTokenValid=function(){var t=u(),e=t.tokenExpired;return e>Date.now()}}i="function"!==typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!s.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var f=Object.prototype.toString,d=Object.prototype.hasOwnProperty,h=function(t){return t>9?t:"0"+t};function p(t){return"function"===typeof t}function v(t){return"string"===typeof t}Array.isArray,Object.assign;var g=v;function m(t){return"[object Object]"===f.call(t)}function b(t,e){return d.call(t,e)}function y(t){return f.call(t).slice(8,-1)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function w(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){if(t){for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:"";return(""+t).replace(/[^\x00-\xff]/g,"**").length}function O(t){var e=t.date,n=void 0===e?new Date:e,r=t.mode,i=void 0===r?"date":r;return"time"===i?h(n.getHours())+":"+h(n.getMinutes()):n.getFullYear()+"-"+h(n.getMonth()+1)+"-"+h(n.getDate())}function E(t,e){for(var n in e)t.style[n]=e[n]}function A(t,e){var n,r=function(){var r=arguments,i=this;clearTimeout(n);var o=function(){return t.apply(i,r)};n=setTimeout(o,e)};return r.cancel=function(){clearTimeout(n)},r}function I(t,e){var n,r,i=0,o=function(){for(var o=this,a=arguments.length,c=new Array(a),s=0;st.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach((function(n){try{e[n]=D(t[n])}catch(X){e[n]=t[n]}})),e}function N(t){if("function"===typeof t)return window.plus?t():void document.addEventListener("plusready",t)}var U=0,V={};function F(t,e){var n=V[t]||{};delete V[t];var r=e.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(e):n.success&&n.success(e),n.complete&&n.complete(e)}var W={warp:function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(U++);V[n]={success:e.success,fail:e.fail,complete:e.complete};var r=Object.assign({},e),i=t.bind(this)(r,n);i&&F(n,i)}},invoke:F};function q(t){return q="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},q(t)}var z={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function H(t,e,n){if(g(e)&&e.startsWith("@")){var r=e.replace("@",""),i=t[r]||e;switch(n){case"titleColor":i=function(t){return"black"===t?"#000000":"#ffffff"}(i);break;case"borderStyle":i=function(t){return t&&t in z?z[t]:t}(i);break;default:break}return i}return e}function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"light",r=e[n],i={};return"undefined"===typeof r?t:(Object.keys(t).forEach((function(o){var a=t[o];i[o]=function(){return m(a)?G(a,e,n):Array.isArray(a)?a.map((function(t){return"object"===q(t)?G(t,e,n):H(r,t)})):H(r,a,o)}()})),i)}},3596:function(t,e,n){},"36a6":function(t,e,n){},"383e":function(t,e,n){"use strict";n.r(e);var r=n("39bd"),i=n("340d");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;ethis.displayMultipleItemsNumber},circularEnabled:function(){return this.circular&&this.swiperEnabled}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(t){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(t){this._currentCheck()},currentSync:function(t,e){this._currentChanged(t,e),this.$emit("update:current",t),this._setNavigationState()},currentItemId:function(t){this._currentCheck()},currentItemIdSync:function(t){this.$emit("update:currentItemId",t)},displayMultipleItemsNumber:function(){this._resetLayout()},navigation:{immediate:!0,handler:function(t){this.isNavigationAuto="auto"===t,this.hideNavigation=!0!==t||this.isNavigationAuto,this._navigationSwiperAddMouseEvent()}},items:function(){this._setNavigationState()},swiperEnabled:function(t){t||(this.prevDisabled=!0,this.nextDisabled=!0,this.isNavigationAuto&&(this.hideNavigation=!0))}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var t=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return t.autoplay&&!t.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout),this._navigationSwiperAddMouseEvent()},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(t){t?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var t=-1;if(this.currentItemId)for(var e=0,n=this.items;ei/2?1:0)}var o=this.items[t];o&&this._itemReady(o,(function(){var t=n.currentItemIdSync=o.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:t,source:r})}))},_scheduleAutoplay:function(){var t=this;this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout((function e(){t._timer=null,t.currentChangeSource="autoplay",t.circularEnabled?t.currentSync=t._normalizeCurrentValue(t.currentSync+1):t.currentSync=t.currentSync+t.displayMultipleItemsNumbere-this.displayMultipleItemsNumber)return e-this.displayMultipleItemsNumber;return n},_upx2px:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return"".concat(uni.upx2px(parseFloat(t)),"px")})),t||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var t=this.items,e=0;e0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var i=this._viewportPosition;this._viewportPosition=-2;var o=this.currentSync;o>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(i+o-this._contentTrackViewport),this._contentTrackViewport=o):(this._updateViewport(o),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(t){if(!this._invalid)for(var e=this.items,n=e.length,r=t+this.displayMultipleItemsNumber,i=0;i=this.items.length&&(t-=this.items.length),t=this._transitionStart%1>.5||this._transitionStart<0?t-1:t,this.$trigger("transition",{},{dx:this.vertical?0:t*i.offsetWidth,dy:this.vertical?t*i.offsetHeight:0})},_animateFrameFuncProto:function(){var t=this;if(this._animating){var e=this._animating,n=e.toPos,r=e.acc,i=e.endTime,o=e.source,a=i-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var c=this.items[this.currentSync];c&&this._itemReady(c,(function(){var e=c.componentInstance.itemId||"";t.$trigger("animationfinish",{},{current:t.currentSync,currentItemId:e,source:o})}))}else{var s=r*a*a/2,u=n+s;this._updateViewport(u),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(t,e,n){this._cancelViewportAnimation();var r=this.durationNumber,i=this.items.length,o=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;ot;)o-=i}else if(n>0){for(;o>t;)o-=i;for(;o+it;)o-=i;o+i-ti)&&(r<0?r=-o(-r):r>i&&(r=i+o(r-i)),e._contentTrackSpeed=0),e._updateViewport(r)}var c=this._contentTrackT-n||1;this.vertical?a(-t.dy/this.$refs.slideFrame.offsetHeight,-t.ddy/c):a(-t.dx/this.$refs.slideFrame.offsetWidth,-t.ddx/c)},_handleTrackEnd:function(t){this.userTracking=!1;var e=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!t&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*e);var r=this._normalizeCurrentValue(this._viewportPosition+n);t?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=r,this._animateViewport(r,"touch",0!==n?n:0===r&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(t){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===t.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===t.detail.state)return this._handleTrackEnd(!1);if("cancel"===t.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var e=Math.abs(t.detail.dx),n=Math.abs(t.detail.dy);if((e>=n&&this.vertical||e<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(t.detail),!1}}},_onSwiperDotClick:function(t){this._animateViewport(this.currentSync=t,this.currentChangeSource="click",this.circularEnabled?1:0)},_navigationClick:function(t,e,n){if(t.stopPropagation(),!n){var r=this.items.length,i=this.currentSync;switch(e){case"prev":i--,i<0&&this.circularEnabled&&(i=r-1);break;case"next":i++,i>=r&&this.circularEnabled&&(i=0);break}this._onSwiperDotClick(i)}},_navigationMouseMove:function(t){var e=this;clearTimeout(this.hideNavigationTimer);var n,r=t.clientX,i=t.clientY,o=this.$refs.slidesWrapper.getBoundingClientRect(),a=o.left,c=o.right,s=o.top,u=o.bottom,l=o.width,f=o.height;n=this.vertical?!(i-s=t}},render:function(t){var e=this,n=[],r=[];this.$slots.default&&Object(i["f"])(this.$slots.default,t).forEach((function(t){t.componentOptions&&"v-uni-swiper-item"===t.componentOptions.tag&&r.push(t)}));for(var o=function(r,i){var o=e.currentSync;n.push(t("div",{on:{click:function(){return e._onSwiperDotClick(r)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":r=o||r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t[e])&&t[e].length}function c(t){var e={},n=t.__vue__;function i(t,n){var i=t.$attrs;for(var o in i)if(o.startsWith("data-")){var a=Object(r["b"])(o.substr(5).toLowerCase()),c=i[o];e[a]=n?c:e[a]||c}}if(n){var o=n;while(o&&o.$el===t)i(o),o=o.$children[0];var a=n.$parent;while(a&&a.$el===t)i(a,!0),a=a.$parent}else e=Object.assign({},t.dataset,t.__uniDataset);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t)),n=Object.keys(e),r=n.length;if(r)for(var i=0;i=0&&i.splice(e,1)}i.length||a()}}.call(this,n("2c9f"))},"39bd":function(t,e,n){"use strict";var r=function(t,e,n,r){t.addEventListener(e,(function(t){"function"===typeof n&&!1===n(t)&&(t.preventDefault(),t.stopPropagation())}),{capture:r,passive:!1})};e["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(t,e,n){var i,o,a,c=this,s=this,u=0,l=0,f=0,d=0,h=function(t,n,r,i){if(!1===s[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:n,x:r,y:i,dx:r-u,dy:i-l,ddx:r-f,ddy:i-d,timeStamp:t.timeStamp}}))return!1},p=null;r(t,"touchstart",(function(t){if(o=!0,1===t.touches.length&&!p)return p=t,u=f=t.touches[0].pageX,l=d=t.touches[0].pageY,h(t,"start",u,l)})),r(t,"mousedown",(function(t){if(a=!0,!o&&!p)return p=t,u=f=t.pageX,l=d=t.pageY,h(t,"start",u,l)})),r(t,"touchmove",(function(t){if(1===t.touches.length&&p){var e=h(t,"move",t.touches[0].pageX,t.touches[0].pageY);return f=t.touches[0].pageX,d=t.touches[0].pageY,e}}));var v=this.__clickEventListener=function(t){t.preventDefault(),t.stopPropagation()},g=this.__mouseMoveEventListener=function(t){if(!o&&a&&p){!i&&(Math.abs(f-u)>2||Math.abs(d-l)>2)&&(document.addEventListener("click",v,!0),i=!0);var e=h(t,"move",t.pageX,t.pageY);return f=t.pageX,d=t.pageY,e}};document.addEventListener("mousemove",g),r(t,"touchend",(function(t){if(0===t.touches.length&&p)return o=!1,p=null,h(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)}));var m=this.__mouseUpEventListener=function(t){if(a=!1,!o&&p)return i&&setTimeout((function(){document.removeEventListener("click",c.__clickEventListener,!0),i=!1}),0),p=null,h(t,"end",t.pageX,t.pageY)};document.addEventListener("mouseup",m),r(t,"touchcancel",(function(t){if(p){o=!1;var e=p;return p=null,h(t,n?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}}},"3a3e":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i={name:"RadioGroup",mixins:[r["a"],r["f"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(t,e){var n=this.radioList.indexOf(e);this._resetRadioGroupValue(n,!0),this.$trigger("change",t,{value:e.radioValue})},_radioGroupUpdateHandler:function(t){if("add"===t.type)this.radioList.push(t.vm);else{var e=this.radioList.indexOf(t.vm);this.radioList.splice(e,1)}},_resetRadioGroupValue:function(t,e){var n=this;this.radioList.forEach((function(r,i){i!==t&&(e?n.radioList[i].radioChecked=!1:n.radioList.forEach((function(t,e){i>=e||n.radioList[e].radioChecked&&(n.radioList[i].radioChecked=!1)})))}))},_getFormData:function(){var t={};if(""!==this.name){var e="";this.radioList.forEach((function(t){t.radioChecked&&(e=t.value)})),t.value=e,t.key=this.name}return t}}},o=i,a=(n("01aa"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-radio-group",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null);e["default"]=c.exports},"3acf":function(t,e,n){"use strict";n.r(e),n.d(e,"pageScrollTo",(function(){return r}));var r={scrollTop:{type:Number},duration:{type:Number,default:300,validator:function(t,e){e.duration=Math.max(0,t)}}}},"3b2d":function(t,e,n){"use strict";n.r(e),n.d(e,"$on",(function(){return c})),n.d(e,"$off",(function(){return s})),n.d(e,"$once",(function(){return u})),n.d(e,"$emit",(function(){return l}));var r=n("951c"),i=n.n(r),o=new i.a;function a(t,e,n){return t[e].apply(t,n)}function c(){return a(o,"$on",Array.prototype.slice.call(arguments))}function s(){return a(o,"$off",Array.prototype.slice.call(arguments))}function u(){return a(o,"$once",Array.prototype.slice.call(arguments))}function l(){return a(o,"$emit",Array.prototype.slice.call(arguments))}},"3b8d":function(t,e,n){"use strict";n.r(e),n.d(e,"scanCode",(function(){return r}));var r={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean},sound:{type:String,default:"none"},autoZoom:{type:Boolean,default:!0}}},"3bbb":function(t,e,n){"use strict";n.r(e),n.d(e,"compressVideo",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},"3bd6":function(t,e,n){"use strict";n.r(e),n.d(e,"setTabBarItem",(function(){return a})),n.d(e,"setTabBarStyle",(function(){return c})),n.d(e,"hideTabBar",(function(){return s})),n.d(e,"showTabBar",(function(){return u})),n.d(e,"hideTabBarRedDot",(function(){return l})),n.d(e,"showTabBarRedDot",(function(){return f})),n.d(e,"removeTabBarBadge",(function(){return d})),n.d(e,"setTabBarBadge",(function(){return h}));var r=n("340d"),i=n("4738"),o={type:Number,required:!0},a={index:o,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},c={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(t,e){t&&!/^(linear|radial)-gradient\(.+?\);?$/.test(t)&&(e.backgroundImage=Object(i["a"])(t))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(t,e){t&&(e.borderStyle="black"===t?"black":"white")}}},s={animation:{type:Boolean,default:!1}},u={animation:{type:Boolean,default:!1}},l={index:o},f={index:o},d={index:o},h={index:o,text:{type:String,required:!0,validator:function(t,e){Object(r["h"])(t)>=4&&(e.text="...")}}}},"3c5f":function(t,e,n){"use strict";var r=n("df50"),i=n.n(r);i.a},"3d1e":function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return d}));var r=n("cff9"),i=n("2626");n.d(e,"b",(function(){return i["b"]})),n.d(e,"c",(function(){return i["c"]}));var o=Object.assign;function a(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}var c=a(),s=a();function u(){return s}function l(){return c}function f(t){var e=t.path,n=t.query,r=t.referrerInfo;return o(s,{path:e,query:n||{},referrerInfo:r||{}}),o(c,s),s}function d(e,n,o){return{created:function(){Object(i["a"])(e,this,n),o.meta.name||t.emit("onPageNotFound",{path:o.path,query:o.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){f({path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query}),Object(r["a"])(this,"onLaunch",s),Object(r["a"])(this,"onShow",c)}}}}).call(this,n("2c9f"))},"3d8f":function(t,e,n){"use strict";var r=n("f5e7"),i=n.n(r);i.a},"3e92":function(t,e,n){"use strict";var r=n("d0aa"),i=n.n(r);i.a},"3fc5":function(t,e,n){"use strict";n.r(e),n.d(e,"downloadFile",(function(){return r}));var r={url:{type:String,required:!0},header:{type:Object,validator:function(t,e){e.header=t||{}}}}},"418b":function(t,e,n){"use strict";n.r(e),function(t){var n=Array.prototype.unshift;function r(t){return n.call(t,"[system]"),t}function i(e){return function(){var n=!0;"debug"!==e||__uniConfig.debug||(n=!1),n&&t.console[e].apply(t.console,r(arguments))}}e["default"]={log:i("log"),info:i("info"),warn:i("warn"),debug:i("debug"),error:i("error")}}.call(this,n("0ee4"))},"418c":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"setNavigationBarColor",(function(){return o})),n.d(e,"showNavigationBarLoading",(function(){return a})),n.d(e,"hideNavigationBarLoading",(function(){return c})),n.d(e,"setNavigationBarTitle",(function(){return s}));var r=n("d4ee");function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object(r["getPageHolder"])(n.__page__);if(i)switch(e){case"setNavigationBarColor":var o=n.frontColor,a=n.backgroundColor,c=n.animation,s=c.duration,u=c.timingFunc;o&&(i.navigationBar.textColor="#000000"===o?"black":"white"),a&&(i.navigationBar.backgroundColor=a),t.emit("onNavigationBarChange",{textColor:"#000000"===o?"#000":"#fff",backgroundColor:i.navigationBar.backgroundColor}),i.navigationBar.duration=s+"ms",i.navigationBar.timingFunc=u;break;case"showNavigationBarLoading":i.navigationBar.loading=!0;break;case"hideNavigationBarLoading":i.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;i.navigationBar.titleText=l,Object(r["isCurrentPage"])(i)&&(document.title=l),t.emit("onNavigationBarChange",{titleText:l});break}return{}}function o(t){return i("setNavigationBarColor",t)}function a(t){return i("showNavigationBarLoading",t)}function c(t){return i("hideNavigationBarLoading",t)}function s(t){return i("setNavigationBarTitle",t)}}.call(this,n("2c9f"))},"41cb":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("340d");function o(t){return o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},o(t)}function a(t,e,n){var r=e[t],o=!Object(i["i"])(n,t),a=n[t],s=function(t,e){if(!Array.isArray(e))return f(e,t)?0:-1;for(var n=0,r=e.length;n-1&&o&&!Object(i["i"])(r,"default")&&(a=!1),void 0===a&&Object(i["i"])(r,"default")){var u=r.default;a=Object(i["k"])(u)?u():u,n[t]=a}return c(r,t,a,o,n)}function c(t,e,n,r,i){if(t.required&&r)return"Missing required parameter `".concat(e,"`");if(null==n&&!t.required){var o=t.validator;return o?o(n,i):void 0}var a=t.type,c=!a||!0===a,s=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l=0||("Object"===r?Object(i["l"])(t):"Array"===r?Array.isArray(t):t instanceof e||Object(i["v"])(t)===l(e));return{valid:n,expectedType:r}}function l(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function f(t,e){return l(t)===l(e)}function d(t,e,n){var r="parameter `".concat(t,"`.")+" Expected ".concat(n.join(", ")),o=n[0],a=Object(i["v"])(e),c=h(e,o),s=h(e,a);return 1===n.length&&v(o)&&!function(){for(var t=arguments.length,e=new Array(t),n=0;n1||this._handleHoverStart(t)},_hoverMousedown:function(t){this._hoverTouch||(this._handleHoverStart(t),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(t){var e=this;t._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(t._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){e.hovering=!0,e._hoverTouch||e._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var t=this;requestAnimationFrame((function(){clearTimeout(t._hoverStayTimer),t._hoverStayTimer=setTimeout((function(){t.hovering=!1}),t.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"43df":function(t,e,n){"use strict";n.r(e),n.d(e,"saveFile",(function(){return i})),n.d(e,"getFileInfo",(function(){return a})),n.d(e,"getSavedFileInfo",(function(){return c})),n.d(e,"removeSavedFile",(function(){return s}));var r=n("4738"),i={tempFilePath:{type:String,required:!0,validator:function(t,e){e.tempFilePath=Object(r["a"])(t)}}},o=["md5","sha1"],a={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}},digestAlgorithm:{type:String,validator:function(t,e){e.digestAlgorithm=o.includes(t)?t:o[0]},default:o[0]}},c={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}},s={filePath:{type:String,required:!0,validator:function(t,e){e.filePath=Object(r["a"])(t)}}}},4442:function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=l(t,e,n);if("normal"===s.type){if(r=n.done?h:"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=u;var f="suspendedStart",d="executing",h="completed",p={};function v(){}function g(){}function m(){}var b={};b[a]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(E([])));_&&_!==n&&i.call(_,a)&&(b=_);var w=m.prototype=v.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t,e){function n(o,a,c,s){var u=l(t[o],t,a);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"===r(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(d).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var n=t[a];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){while(++r=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=i}catch(o){Function("r","regeneratorRuntime = r")(i)}},4498:function(t,e,n){"use strict";function r(){var t=document.getElementById("#clipboard"),e=t?t.value:void 0;return e?{data:e,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function i(t){var e=t.data,n=document.getElementById("#clipboard");n&&n.remove();var r=document.createElement("textarea");r.setAttribute("inputmode","none"),r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);var i=document.execCommand("Copy",!1,null);return r.blur(),i?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(e),n.d(e,"getClipboardData",(function(){return r})),n.d(e,"setClipboardData",(function(){return i}))},"44b9":function(t,e,n){"use strict";n.r(e),n.d(e,"compressImage",(function(){return i}));var r=n("4738"),i={src:{type:String,required:!0,validator:function(t,e){e.src=Object(r["a"])(t)}}}},"44f1":function(t,e,n){t.exports=n("4442")},"45a2":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("7d96"),a=o["a"],c=(n("8a24"),n("8844")),s=Object(c["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-app",{class:{"uni-app--showtabbar":t.showTabBar,"uni-app--maxwidth":t.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":t.key,"keep-alive-include":t.keepAliveInclude},on:{maxWidth:t.onMaxWidth,layout:t.onLayout}}),t.hasTabBar?n("tab-bar",t._b({directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",t.tabBarOptions,!1)):t._e(),t.$options.components.Toast?n("toast",t._b({},"toast",t.showToast,!1)):t._e(),t.$options.components.ActionSheet?n("action-sheet",t._b({on:{close:t._onActionSheetClose}},"action-sheet",t.showActionSheet,!1)):t._e(),t.$options.components.Modal?n("modal",t._b({on:{close:t._onModalClose}},"modal",t.showModal,!1)):t._e(),t.$options.components.PreviewImage?n("preview-image",t._b({on:{close:t._onPreviewClose}},"preview-image",t.previewImage,!1)):t._e(),t.sysComponents&&t.sysComponents.length?t._l(t.sysComponents,(function(t,e){return n(t,{key:e,tag:"component"})})):t._e()],2)}),[],!1,null,null,null),u=s.exports,l=n("e5b3"),f=l["a"],d=(n("fc7c"),Object(c["a"])(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page",{attrs:{"data-page":t.$route.meta.pagePath}},["none"!==t.navigationBar.type?n("page-head",t._b({},"page-head",t.navigationBar,!1)):t._e(),t.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:t.refreshOptions.color,offset:t.refreshOptions.offset}}):t._e(),t.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(e){return t._touchstart(e)},touchmove:function(e){return t._touchmove(e)},touchend:function(e){return t._touchend(e)},touchcancel:function(e){return t._touchend(e)}}},[t._t("page")],2):n("page-body",[t._t("page")],2)],1)}),[],!1,null,null,null)),h=d.exports,p=n("0372"),v={name:"AsyncError",mixins:[p["c"]],methods:{_onClick:function(){window.location.reload()}}},g=v,m=(n("5505"),Object(c["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-async-error",on:{click:t._onClick}},[t._v(" "+t._s(t.$$t("uni.async.error"))+" ")])}),[],!1,null,null,null)),b=m.exports,y={name:"AsyncLoading"},_=(n("d937"),Object(c["a"])(y,(function(){var t=this;t.$createElement;return t._self._c,t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"uni-async-loading"},[e("i",{staticClass:"uni-loading"})])}],!1,null,null,null)),w=_.exports,x=n("8b77"),k=x["a"],S=Object(c["a"])(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:t.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===t.direction?"column":"row",backgroundColor:t.tabBarOptions.backgroundColor}},[t._l(t.tabBarOptions.list,(function(e,r){return[!1!==e.visible?n("div",{key:e.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return t._switchTab(e,r)}}},[n("div",{staticClass:"uni-tabbar__bd"},[t.showIcon&&e.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text}},[n("img",{attrs:{src:t._getRealPath(t.selectedIndex===r?e.selectedIconPath:e.iconPath)}}),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.tabBarOptions.selectedColor:t.tabBarOptions.color,fontSize:t.showIcon&&e.iconPath?"10px":"14px"}},[t._v(" "+t._s(e.text)+" "),!e.redDot||t.showIcon&&e.iconPath?t._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")])]):t._e()])]):t._e()]}))],2)]):t._e()}),[],!1,null,null,null),C=S.exports,T=n("4ed4"),O=T["a"],E=(n("b16b"),Object(c["a"])(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.latitude,longitude:t.longitude,"show-location":"",libraries:["places"]},on:{updated:t.getList,regionchange:t.onRegionChange}},[n("div",{staticClass:"map-location",style:t.locationStyle}),n("div",{staticClass:"map-move",on:{click:t.moveToLocation}},[n("i",[t._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!t.selected},on:{click:t.choose}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:t.$$t("uni.chooseLocation.search")},on:{focus:function(e){t.searching=!0},input:t.input},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t.searching?n("div",{staticClass:"search-btn",on:{click:function(e){t.searching=!1,t.keyword=""}}},[t._v(" "+t._s(t.$$t("uni.chooseLocation.cancel"))+" ")]):t._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:t.loadMore}},[t.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):t._e(),t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"list-item",class:{selected:t.selectedIndex===r},on:{click:function(n){t.selectedIndex=r,t.latitude=e.latitude,t.longitude=e.longitude}}},[n("div",{staticClass:"list-item-title"},[t._v(" "+t._s(e.name)+" ")]),n("div",{staticClass:"list-item-detail"},[t._v(" "+t._s(t._f("distance")(e.distance))+t._s(e.address)+" ")])])}))],2)],1)],1)}),[],!1,null,null,null)),A=E.exports,I=n("b435"),L={name:"SystemOpenLocation",data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude,r=t.scale,i=void 0===r?18:r,o=t.name,a=void 0===o?"":o,c=t.address,s=void 0===c?"":c;return{latitude:e,longitude:n,scale:i,name:a,address:s,center:{latitude:e,longitude:n},marker:{id:1,latitude:e,longitude:n,iconPath:I["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:I["a"],width:44,height:44}}},mounted:function(){var t=this;uni.getLocation({type:"gcj02",success:function(e){var n=e.latitude,r=e.longitude;t.location.latitude=n,t.location.longitude=r}})},methods:{onRegionChange:function(t){var e=t.detail.centerLocation;e&&(this.center.latitude=e.latitude,this.center.longitude=e.longitude)},setCenter:function(t){var e=t.latitude,n=t.longitude;this.center.latitude=e,this.center.longitude=n},back:function(){getApp().$router.back()},nav:function(){var t=Object(I["e"])(),e="";if(t.type===I["d"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";e="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(t.type===I["d"].QQ){var r=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude,"&from=").concat(encodeURIComponent("我的位置")):"";e="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(r,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(t.key)}else if(t.type===I["d"].AMAP){var i=this.location.latitude?"from=".concat(this.location.longitude,",").concat(this.location.latitude,",").concat(encodeURIComponent("我的位置"),"&"):"";e="https://uri.amap.com/navigation?".concat(i,"to=").concat(this.longitude,",").concat(this.latitude,",").concat(encodeURIComponent(this.name||"目的地"))}window.open(e)}}},j=L,M=(n("724c"),Object(c["a"])(j,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:t.center.latitude,longitude:t.center.longitude,markers:[t.marker,t.location]},on:{regionchange:t.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:function(e){return t.setCenter(t.location)}}},[n("i",[t._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"address",on:{click:function(e){return t.setCenter(t.marker)}}},[t._v(" "+t._s(t.address)+" ")]),n("div",{staticClass:"nav",on:{click:t.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:t.back}},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])],1)}),[],!1,null,null,null)),P=M.exports,$={ChooseLocation:A,OpenLocation:P};i.a.component(u.name,u),i.a.component(h.name,h),i.a.component(b.name,b),i.a.component(w.name,w),i.a.component(C.name,C),Object.keys($).forEach((function(t){var e=$[t];i.a.component(e.name,e)}))},"466b":function(t,e,n){},4705:function(t,e,n){"use strict";(function(t){var r,i=n("909e"),o=n("7cce"),a=n("dfa7"),c=n("bdee");function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r||(r=document.createElement("canvas")),r.width=t,r.height=e,r}e["a"]={name:"Canvas",mixins:[i["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var t=this,e=Object.assign({},this.$listeners);return["touchstart","touchmove","touchend"].forEach((function(n){var r=e[n],i=[];r&&i.push((function(e){t.$trigger(n,Object.assign({},e,{touches:f(e.currentTarget,e.touches),changedTouches:f(e.currentTarget,e.changedTouches)}))})),t.disableScroll&&"touchmove"===n&&i.push(t._touchmove),e[n]=i})),e},pixelRatio:function(){return this.hidpi?o["a"]:1}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var t=this.$refs.canvas;t.height=t.width=0},methods:{_handleSubscribe:function(t){var e=t.type,n=t.data,r=void 0===n?{}:n,i=this[e];0!==e.indexOf("_")&&"function"===typeof i&&i(r)},_resize:function(t){var e=this.$refs.canvas,n=!t||e.width!==Math.floor(t.width*this.pixelRatio)||e.height!==Math.floor(t.height*this.pixelRatio);if(n)if(e.width>0&&e.height>0){var r=e.getContext("2d"),i=r.getImageData(0,0,e.width,e.height);Object(o["b"])(e,this.hidpi),r.putImageData(i,0,0)}else Object(o["b"])(e,this.hidpi)},_touchmove:function(t){t.preventDefault()},actionsChanged:function(e){var n=this,r=e.actions,i=e.reserve,o=e.callbackId,a=this;if(r)if(this.actionsWaiting)this._actionsDefer.push([r,i,o]);else{var c=this.$refs.canvas,u=c.getContext("2d");i||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,c.width,c.height)),this.preloadImage(r);var f=function(t){var e=r[t],i=e.method,c=e.data;if(/^set/.test(i)&&"setTransform"!==i){var f,d=i[3].toLowerCase()+i.slice(4);if("fillStyle"===d||"strokeStyle"===d){if("normal"===c[0])f=l(c[1]);else if("linear"===c[0]){var v=u.createLinearGradient.apply(u,s(c[1]));c[2].forEach((function(t){var e=t[0],n=l(t[1]);v.addColorStop(e,n)})),f=v}else if("radial"===c[0]){var g=c[1][0],m=c[1][1],b=c[1][2],y=u.createRadialGradient(g,m,0,g,m,b);c[2].forEach((function(t){var e=t[0],n=l(t[1]);y.addColorStop(e,n)})),f=y}else if("pattern"===c[0]){var _=n.checkImageLoaded(c[1],r.slice(t+1),o,(function(t){t&&(u[d]=u.createPattern(t,c[2]))}));return _?"continue":"break"}u[d]=f}else if("globalAlpha"===d)u[d]=c[0]/255;else if("shadow"===d)h=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],c.forEach((function(t,e){u[h[e]]="shadowColor"===h[e]?l(t):t}));else if("fontSize"===d){var w=u.__font__||u.font;u.__font__=u.font=w.replace(/\d+\.?\d*px/,c[0]+"px")}else"lineDash"===d?(u.setLineDash(c[0]),u.lineDashOffset=c[1]||0):"textBaseline"===d?("normal"===c[0]&&(c[0]="alphabetic"),u[d]=c[0]):"font"===d?u.__font__=u.font=c[0]:u[d]=c[0]}else if("fillPath"===i||"strokePath"===i)i=i.replace(/Path/,""),u.beginPath(),c.forEach((function(t){u[t.method].apply(u,t.data)})),u[i]();else if("fillText"===i)u.fillText.apply(u,c);else if("drawImage"===i){if(p=function(){var e=s(c),n=e[0],i=e.slice(1);if(a._images=a._images||{},!a.checkImageLoaded(n,r.slice(t+1),o,(function(t){t&&u.drawImage.apply(u,[t].concat(s(i.slice(4,8)),s(i.slice(0,4))))})))return"break"}(),"break"===p)return"break"}else"clip"===i?(c.forEach((function(t){u[t.method].apply(u,t.data)})),u.clip()):u[i].apply(u,c)};t:for(var d=0;d1&&(c.multiple="multiple"),1===n.length&&"camera"===n[0]&&(c.capture="camera"),c}},"493f":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var r,i=n("a805");function o(t){t.preventDefault()}function a(t){var e=t.scrollTop,n=t.selector,r=t.duration;if("undefined"===typeof e){var i=document.querySelector(n);if(i){var o=i.getBoundingClientRect(),a=o.top,c=o.height;e=a+window.pageYOffset,e-=c}}var s=document.documentElement,u=s.clientHeight,l=s.scrollHeight;e=Math.min(e,l-u),0!==r?window.scrollY!==e&&function t(n){if(n<=0)window.scrollTo(0,e);else{var r=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+r/n*10),t(n-10)}))}}(r):s.scrollTop=document.body.scrollTop=e}var c=0;function s(e,n){var o=n.enablePageScroll,a=n.enablePageReachBottom,s=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,f=!1,d=!0;function h(){var t=document.documentElement.scrollHeight,e=window.innerHeight,n=window.scrollY,r=n>0&&t>e&&n+e+s>=t,i=Math.abs(t-c)>s;return!r||f&&!i?(!r&&f&&(f=!1),!1):(c=t,f=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===e){var c=window.pageYOffset;o&&Object(i["a"])("onPageScroll",{scrollTop:c},e),u&&t.emit("onPageScroll",{scrollTop:c}),a&&d&&(s()||(r=setTimeout(s,300))),l=!1}function s(){if(h())return Object(i["a"])("onReachBottom",{},e),d=!1,setTimeout((function(){d=!0}),350),!0}}return function(){clearTimeout(r),l||requestAnimationFrame(p),l=!0}}}).call(this,n("31d2"))},"49c2":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n("38ce"),i=n("340d"),o=n("8d7d"),a=n("0db3");function c(t,e){var n={},a=Object(o["a"])(),c=a.top;if(e.id&&(n.id=t.id),e.dataset&&(n.dataset=Object(r["b"])(t)),e.rect||e.size){var s=t.getBoundingClientRect();e.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-c,n.bottom=s.bottom-c),e.size&&(n.width=s.width,n.height=s.height)}if(Array.isArray(e.properties)){var u=t.__vue__&&t.__vue__.$props;u&&e.properties.forEach((function(t){"string"===typeof t&&(t=Object(i["b"])(t),null!=u[t]&&(n[t]=u[t]))}))}if(e.scrollOffset&&("UNI-SCROLL-VIEW"===t.tagName&&t.__vue__&&t.__vue__.getScrollPosition?Object.assign(n,t.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(e.computedStyle)){var l=getComputedStyle(t);e.computedStyle.forEach((function(t){n[t]=l[t]}))}return e.context&&t.__vue__&&t.__vue__._getContextInfo&&(n.context=t.__vue__._getContextInfo()),n}function s(t,e,n,r,i){var o=Object(a["a"])(Object(a["b"])(e,t));if(!o||o&&8===o.nodeType)return r?null:[];if(r){var s=o.matches(n)?o:o.querySelector(n);return s?c(s,i):null}var u=[],l=o.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(t){return c(t,i)}))),o.matches(n)&&u.unshift(c(o,i)),u}function u(e,n){var r,i=e.reqId,o=e.reqs;if(n._isVue)r=n;else{var a=getCurrentPages(),c=a.find((function(t){return t.$page.id===n}));if(!c)throw new Error("Not Found:Page[".concat(n,"]"));r=c.$vm}var u=[];o.forEach((function(t){var e=t.component,n=t.selector,i=t.single,o=t.fields;0===e?u.push(function(t){var e={};if(t.id&&(e.id=""),t.dataset&&(e.dataset={}),t.rect&&(e.left=0,e.right=0,e.top=0,e.bottom=0),t.size&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight),t.scrollOffset){var n=document.documentElement,r=document.body;e.scrollLeft=n.scrollLeft||r.scrollLeft||0,e.scrollTop=n.scrollTop||r.scrollTop||0,e.scrollHeight=n.scrollHeight||r.scrollHeight||0,e.scrollWidth=n.scrollWidth||r.scrollWidth||0}return e}(o)):u.push(s(r,e,n,i,o))})),t.publishHandler("onRequestComponentInfo",{reqId:i,res:u})}}).call(this,n("31d2"))},"49df":function(t,e,n){"use strict";n.r(e);var r=[],i=n("2432");i.keys().forEach((function(t){"./index.js"!==t&&r.push(i(t).default)})),e["default"]=r},"4a3f":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=e.filePath,i=t,o=i.invokeCallbackHandler;window.open(r),o(n,{errMsg:"openDocument:ok"})}n.d(e,"openDocument",(function(){return r}))}.call(this,n("2c9f"))},"4b21":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n("d97d");function i(e){e=function(t){return t.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);var n=[],i={node:"root",children:[]};return Object(r["a"])(e,{start:function(t,e,r){var o={name:t};if(0!==e.length&&(o.attrs=function(t){return t.reduce((function(t,e){var n=e.value,r=e.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),t[r]?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n,t}),{})}(e)),r){var a=n[0]||i;a.children||(a.children=[]),a.children.push(o)}else n.unshift(o)},end:function(e){var r=n.shift();if(r.name!==e&&t.error("invalid state: mismatch end tag"),0===n.length)i.children.push(r);else{var o=n[0];o.children||(o.children=[]),o.children.push(r)}},chars:function(t){var e={type:"text",text:t};if(0===n.length)i.children.push(e);else{var r=n[0];r.children||(r.children=[]),r.children.push(e)}},comment:function(t){var e={node:"comment",text:t},r=n[0];r&&(r.children||(r.children=[]),r.children.push(e))}}),i.children}}).call(this,n("418b")["default"])},"4b7e":function(t,e,n){var r={"./base/base64.js":"53f9","./base/can-i-use.js":"5bcf","./base/event-bus.js":"fd5d","./base/interceptor.js":"9879","./base/upx2px.js":"6856","./context/canvas.js":"e0ec","./context/context.js":"6625","./device/add-phone-contact.js":"cedc","./device/make-phone-call.js":"6f73","./device/scan-code.js":"3b8d","./device/set-clipboard-data.js":"51e5","./file/file.js":"43df","./file/open-document.js":"09f0","./location/choose-location.js":"ec60","./location/get-location.js":"e0f9","./location/open-location.js":"d280","./media/choose-file.js":"925f","./media/choose-image.js":"dac9","./media/choose-video.js":"a111","./media/compress-image.js":"44b9","./media/compress-video.js":"3bbb","./media/get-image-info.js":"61d8","./media/get-video-info.js":"9bfe","./media/preview-image.js":"4ca1","./media/save-image-to-photos-album.js":"03d0","./network/download-file.js":"3fc5","./network/request.js":"b32f","./network/socket.js":"123c","./network/upload-file.js":"b75a","./plugin/get-provider.js":"90f0","./plugin/load-sub-package.js":"a8a7","./plugin/pre-login.js":"5f30","./route/route.js":"6bd7","./storage/storage.js":"67c3","./ui/load-font-face.js":"c6eb","./ui/navigation-bar.js":"796c","./ui/page-scroll-to.js":"3acf","./ui/popup.js":"f60b","./ui/tab-bar.js":"3bd6"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="4b7e"},"4ba6":function(t,e,n){"use strict";function r(t,e,n){return t>e-n&&t0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},o.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},o.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},o.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!i(e,.4)){e=e||0;var r=this._endPosition;this._solution&&(i(e,.4)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),i(e,.4)&&(e=0),i(r,.4)&&(r=0),r+=this._endPosition),this._solution&&i(r-t,.4)&&i(e,.4)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},o.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},o.prototype.done=function(t){return t||(t=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&i(this.dx(),.4)},o.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},o.prototype.springConstant=function(){return this._k},o.prototype.damping=function(){return this._c},o.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]}},"4c68":function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("340d"),o=n("0372"),a=!!i["t"]&&{passive:!1},c={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},s={name:"Video",filters:{time:function(t){t=t>0&&t<1/0?t:0;var e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%3600%60);e=(e<10?"0":"")+e,n=(n<10?"0":"")+n,r=(r<10?"0":"")+r;var i=n+":"+r;return"00"!==e&&(i=e+":"+i),i}},mixins:[o["c"],r["g"],r["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:c.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(t){this.$emit("update:enableDanmu",t)},autoHideContorls:function(t){t?this.autoHideStart():this.autoHideEnd()},srcSync:function(t){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(t){0!==t&&this.$trigger("progress",{},{buffered:t})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var t=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));t.sort((function(t,e){return(t.time||0)-(e.time||0)}))},mounted:function(){var t,e,n,r=this,i=this,o=!0,c=this.$refs.ball;function s(r){var a=r.targetTouches[0],c=a.pageX,s=a.pageY;if(o&&Math.abs(c-t)100&&(f=100),i.progress=f,r.preventDefault(),r.stopPropagation()}}function u(t){i.controlsTouching=!1,i.touching&&(c.removeEventListener("touchmove",s,a),o||(t.preventDefault(),t.stopPropagation(),i.seek(i.$refs.video.duration*i.progress/100)),i.touching=!1)}c.addEventListener("touchstart",(function(i){r.controlsTouching=!0;var u=i.targetTouches[0];t=u.pageX,e=u.pageY,n=r.progress,o=!0,r.touching=!0,c.addEventListener("touchmove",s,a)})),c.addEventListener("touchend",u),c.addEventListener("touchcancel",u)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(t){var e,n=t.type,r=t.data,i=void 0===r?{}:r;switch(n){case"seek":e=i.position;break;case"sendDanmu":e=i;break;case"playbackRate":e=i.rate;break}["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"].indexOf(n)>=0&&this[n](e)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(t){t=Number(t),"number"!==typeof t||isNaN(t)||(this.$refs.video.currentTime=t)},clickProgress:function(t){var e=this.$refs.progress,n=t.target,r=t.offsetX;while(n!==e)r+=n.offsetLeft,n=n.parentNode;var i=e.offsetWidth,o=0;r>=0&&r<=i&&(o=r/i,this.seek(this.$refs.video.duration*o))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(t){var e=document.createElement("p");e.className="uni-video-danmu-item",e.innerText=t.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(t.color,";");e.setAttribute("style",n),this.$refs.danmu.appendChild(e),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",e.setAttribute("style",n),setTimeout((function(){e.remove()}),4e3)}),17)},sendDanmu:function(t){var e=this.otherData;e.danmuList.splice(e.danmuIndex.index+1,0,{text:String(t.text),color:t.color,time:this.$refs.video.currentTime||0})},playbackRate:function(t){this.$refs.video.playbackRate=t},triggerFullscreen:function(t){var e,n=this.$refs.container,r=this.$refs.video;t?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?r.webkitEnterFullScreen?r.webkitEnterFullScreen():(e=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():r.webkitExitFullScreen?r.webkitExitFullScreen():(e=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),e&&this.emitFullscreenChange(t)},onFullscreenChange:function(t,e){e&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(t){this.fullscreen=t,this.$trigger("fullscreenchange",{},{fullScreen:t,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(t){var e=t.target;this.durationTime=e.duration},onLoadedMetadata:function(t){var e=Number(this.initialTime)||0,n=t.target;e>0&&(n.currentTime=e),this.$trigger("loadedmetadata",t,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(t)},onProgress:function(t){var e=t.target,n=e.buffered;n.length&&(this.buffered=n.end(n.length-1)/e.duration*100)},onWaiting:function(t){this.$trigger("waiting",t,{})},onVideoError:function(t){this.playing=!1,this.$trigger("error",t,{})},onPlay:function(t){this.start=!0,this.playing=!0,this.$trigger("play",t,{})},onPause:function(t){this.playing=!1,this.$trigger("pause",t,{})},onEnded:function(t){this.playing=!1,this.$trigger("ended",t,{})},onTimeUpdate:function(t){var e=t.target,n=this.otherData,r=this.currentTime=e.currentTime,i=n.danmuIndex,o={time:r,index:i.index},a=n.danmuList;if(r>i.time)for(var c=i.index+1;c=(s.time||0)))break;o.index=c,this.playing&&this.enableDanmuSync&&this.playDanmu(s)}else if(r-1;u--){var l=a[u];if(!(r<=(l.time||0)))break;o.index=u-1}n.danmuIndex=o,this.$trigger("timeupdate",t,{currentTime:r,duration:e.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(t){var e=t.targetTouches[0];this.touchStartOrigin={x:e.pageX,y:e.pageY},this.gestureType=c.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(t){function e(){t.stopPropagation(),t.preventDefault()}this.fullscreen&&e();var n=this.gestureType;if(n!==c.STOP){var r=t.targetTouches[0],i=r.pageX,o=r.pageY,a=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(i-a.x):n===c.VOLUME&&this.changeVolume(o-a.y),n===c.NONE)if(Math.abs(i-a.x)>Math.abs(o-a.y)){if(!this.enableProgressGesture)return void(this.gestureType=c.STOP);this.gestureType=c.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||e()}else{if(!this.pageGesture)return void(this.gestureType=c.STOP);this.gestureType=c.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||e()}}},touchend:function(t){this.gestureType!==c.NONE&&this.gestureType!==c.STOP&&(t.stopPropagation(),t.preventDefault()),this.gestureType===c.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=c.NONE},changeProgress:function(t){var e=this.$refs.video.duration,n=t/600*e+this.currentTimeOld;n<0?n=0:n>e&&(n=e),this.currentTimeNew=n},changeVolume:function(t){var e,n=this.volumeOld;"number"===typeof n&&(e=n-t/200,e<0?e=0:e>1&&(e=1),this.$refs.video.volume=e,this.volumeNew=e)},autoHideStart:function(){var t=this;this.otherData.hideTiming=setTimeout((function(){t.controlsVisible=!1}),3e3)},autoHideEnd:function(){var t=this.otherData;t.hideTiming&&(clearTimeout(t.hideTiming),t.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},u=s,l=(n("a61d"),n("8844")),f=Object(l["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-video",t._g({attrs:{id:t.id}},t.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:t.touchstart,touchend:t.touchend,touchmove:t.touchmove,fullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e)},webkitfullscreenchange:function(e){return e.stopPropagation(),t.onFullscreenChange(e,!0)}}},[n("video",t._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:t.objectFit},attrs:{loop:t.loop,src:t.srcSync,poster:t.poster,autoplay:t.autoplay,"webkit-playsinline":"",playsinline:""},domProps:{muted:t.muted},on:{click:t.triggerControls,durationchange:t.onDurationChange,loadedmetadata:t.onLoadedMetadata,progress:t.onProgress,waiting:t.onWaiting,error:t.onVideoError,play:t.onPlay,pause:t.onPause,ended:t.onEnded,timeupdate:t.onTimeUpdate,webkitbeginfullscreen:function(e){return t.emitFullscreenChange(!0)},x5videoenterfullscreen:function(e){return t.emitFullscreenChange(!0)},webkitendfullscreen:function(e){return t.emitFullscreenChange(!1)},x5videoexitfullscreen:function(e){return t.emitFullscreenChange(!1)}}},"video",t.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:t.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!t.playing,"uni-video-control-button-pause":t.playing},on:{click:function(e){return e.stopPropagation(),t.trigger(e)}}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-current-time"},[t._v(" "+t._s(t._f("time")(t.currentTime))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(e){return e.stopPropagation(),t.clickProgress(e)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:t.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:t.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showProgress,expression:"showProgress"}],staticClass:"uni-video-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]),t.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":t.enableDanmuSync},on:{click:function(e){return e.stopPropagation(),t.triggerDanmu(e)}}},[t._v(" "+t._s(t.$$t("uni.video.danmu"))+" ")]):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":t.fullscreen},on:{click:function(e){return e.stopPropagation(),t.triggerFullscreen(!t.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.start&&t.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),t.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(e){return e.stopPropagation(),t.play(e)}}}),n("p",{staticClass:"uni-video-cover-duration"},[t._v(" "+t._s(t._f("time")(t.duration||t.durationTime))+" ")])]):t._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t.$$t("uni.video.volume"))+" ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*t.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},t._l(10,(function(t,e){return n("div",{key:e,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==t.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[t._v(" "+t._s(t._f("time")(t.currentTimeNew))+" / "+t._s(t._f("time")(t.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[t._t("default")],2)])])}),[],!1,null,null,null);e["default"]=f.exports},"4ca1":function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return i}));var r=n("4738"),i={urls:{type:Array,required:!0,validator:function(t,e){var n;if(e.urls=t.map((function(t){if("string"===typeof t)return Object(r["a"])(t);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(t,e){"number"===typeof t?e.current=t>0&&t=0&&this._callbacks.splice(e,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),t}();function c(e,n){var i,o=e.url,c=e.header,s=e.timeout,u=void 0===s?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:s,l=t,f=l.invokeCallbackHandler,d=new XMLHttpRequest,h=new a(d);return d.open("GET",o,!0),Object.keys(c).forEach((function(t){d.setRequestHeader(t,c[t])})),d.responseType="blob",d.onload=function(){clearTimeout(i);var t,e=d.status,a=this.response,c=d.getResponseHeader("content-disposition");if(c){var s=c.match(/filename="?(\S+)"?\b/);s&&(t=s[1])}a.name=t||Object(r["c"])(o),f(n,{errMsg:"downloadFile:ok",statusCode:e,tempFilePath:Object(r["b"])(a)})},d.onabort=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail abort"})},d.onerror=function(){clearTimeout(i),f(n,{errMsg:"downloadFile:fail"})},d.onprogress=function(t){h._callbacks.forEach((function(e){var n=t.loaded,r=t.total,i=Math.round(n/r*100);e({progress:i,totalBytesWritten:n,totalBytesExpectedToWrite:r})}))},d.send(),i=setTimeout((function(){d.onprogress=d.onload=d.onabort=d.onerror=null,h.abort(),f(n,{errMsg:"downloadFile:fail timeout"})}),u),h}}.call(this,n("2c9f"))},"4d5a":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"redirectTo",(function(){return s})),n.d(e,"navigateTo",(function(){return u})),n.d(e,"navigateBack",(function(){return l})),n.d(e,"reLaunch",(function(){return f})),n.d(e,"switchTab",(function(){return d})),n.d(e,"preloadPage",(function(){return h}));var r=n("38ce"),i=n("c879"),o=t,a=o.invokeCallbackHandler;function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,o=e.delta,a=e.events,s=e.exists,u=e.animationType,l=e.animationDuration,f=e.from,d=void 0===f?"navigateBack":f,h=e.detail,p=getApp().$router;switch(delete p.$eventChannel,t){case"redirectTo":if("back"===s){var v=Object(r["a"])(n);if(-1!==v){var g=getCurrentPages().length-1-v;if(g>0)return c("navigateBack",{delta:g})}}p.replace({type:t,path:n});break;case"navigateTo":return p.$eventChannel=Object(i["a"])(a),p.push({type:t,path:n,animationType:u,animationDuration:l}),{errMsg:t+":ok",eventChannel:p.$eventChannel};case"navigateBack":var m=!0,b=getCurrentPages();if(b.length){var y=b[b.length-1];Object(r["c"])(y.$options,"onBackPress")&&!0===y.__call_hook("onBackPress",{from:d})&&(m=!1)}m&&(o>1&&(p._$delta=o),p.go(-o,{animationType:u,animationDuration:l}));break;case"reLaunch":p.replace({type:t,path:n});break;case"switchTab":p.replace({type:t,path:n,params:{detail:h}});break}return{errMsg:t+":ok"}}function s(t){return c("redirectTo",t)}function u(t){return c("navigateTo",t)}function l(t){return c("navigateBack",t)}function f(t){return c("reLaunch",t)}function d(t){return c("switchTab",t)}function h(t,e){var n=t.url,r=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(r.substr(1)).then((function(){a(e,{url:n,errMsg:"preloadPage:ok"})})).catch((function(t){a(e,{url:n,errMsg:"preloadPage:fail "+t})}))}}.call(this,n("2c9f"))},"4dc6":function(t,e,n){"use strict";var r=n("655d"),i=n.n(r);i.a},"4e46":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("951c"),i=n.n(r),o=n("0372"),a=n("b405"),c=__uniConfig.tabBar||{};__uniConfig.tabBar=i.a.observable(Object(a["d"])(Object(o["f"])(c))),Object(a["c"])((function(){var t=Object(a["d"])(Object(o["f"])(c));__uniConfig.tabBar.backgroundColor=t.backgroundColor,__uniConfig.tabBar.borderStyle=t.borderStyle,__uniConfig.tabBar.color=t.color,__uniConfig.tabBar.selectedColor=t.selectedColor,__uniConfig.tabBar.blurEffect=t.blurEffect,__uniConfig.tabBar.midButton=t.midButton,t.list&&t.list.length&&__uniConfig.tabBar.list.length&&t.list.forEach((function(t,e){__uniConfig.tabBar.list[e].iconPath=t.iconPath,__uniConfig.tabBar.list[e].selectedIconPath=t.selectedIconPath}))}));var s=__uniConfig.tabBar},"4ed4":function(t,e,n){"use strict";(function(t,r){var i=n("340d"),o=n("1daa"),a=n("0372"),c=n("b435");e["a"]={name:"SystemChooseLocation",filters:{distance:function(t){return t>100?"".concat(t>1e3?(t/1e3).toFixed(1)+"k":t.toFixed(0),"m | "):t>0?"<100m | ":""}},mixins:[a["c"]],data:function(){var t=this.$route.query,e=t.latitude,n=t.longitude;return{latitude:e,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(c["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var t=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(i["d"])((function(){t.reset(),t.keyword&&t.getList()}),1e3),this.$watch("searching",(function(e){t.reset(),e||t.getList()}))},methods:{choose:function(){this.selected&&(t.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){t.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(t){var e=t.detail.centerLocation;e&&this.move(e)},pushData:function(t){var e=this;t.forEach((function(t){e.list.push({name:t.title||t.name,address:t.address,distance:t._distance||t.distance,latitude:t.location.lat,longitude:t.location.lng})}))},getList:function(){var t=this;this.loading=!0;var e=Object(c["e"])();if(e.type===c["d"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(e,n,r){t.loading=!1,e&&e.length&&e.forEach((function(e){t.list.push({name:e.name||"",address:e.vicinity||e.formatted_address||"",distance:0,latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()})})),r&&(r.hasNextPage?t.nextPage=function(){r.nextPage()}:t.hasNextPage=!1)}))}else if(e.type===c["d"].QQ){var i=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(e.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(e.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(o["a"])(i,{callback:"callback"},(function(e){if(t.loading=!1,t.searching&&"data"in e&&e.data.length)t.pushData(e.data);else if("result"in e){var n=e.result;t.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&t.pushData(n.pois),t.list.length===t.pageSize*t.pageIndex&&(t.hasNextPage=!1)}}),(function(){t.loading=!1}))}else if(e.type===c["d"].AMAP){var a=this;window.AMap.plugin("AMap.PlaceSearch",(function(){if(a.longitude&&a.latitude){var t=new window.AMap.PlaceSearch({city:"全国",pageSize:10,pageIndex:a.pageIndex}),e=a.searching?a.keyword:"",n=a.searching?5e4:5e3;t.searchNearBy(e,[a.longitude,a.latitude],n,(function(t,e){"error"===t?r.error(e):"no_data"===t?a.hasNextPage=!1:a.pushData(e.poiList.pois)}))}a.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(t){var e=t.latitude,n=t.longitude;this.latitude=e,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("31d2"),n("418b")["default"])},"4ef5":function(t){t.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.startSoterAuthentication.waitingContent":"無法識別","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},"4f2e":function(t,e,n){"use strict";n.r(e);var r={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(t){this.setScrollTop(t)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(t){var e=this.$refs.content;"scroll"===getComputedStyle(e).overflowY&&(e.scrollTop=this._upx2pxNum(t))},_upx2pxNum:function(t){return/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(function(t){return uni.upx2px(parseFloat(t))})),parseFloat(t)||0}}},i=r,o=(n("ca54"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-cover-view",t._g({attrs:{"scroll-top":t.scrollTop}},t.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[t._t("default")],2)])}),[],!1,null,null,null);e["default"]=a.exports},"4fcb":function(t,e,n){"use strict";n.r(e),function(t){var r=n("340d");e["default"]={data:function(){return{showModal:{visible:!1}}},created:function(){var e=this;t.on("onShowModal",(function(t,n){e.showModal=t,e.onModalCloseCallback=n})),t.on("onHidePopup",(function(t){e.showModal.visible=!1}))},methods:{_onModalClose:function(t){this.showModal.visible=!1,Object(r["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(t)}}}}.call(this,n("2c9f"))},"508e":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("cff9"),i=n("6564");function o(t,e){var n=t.name,r=t.arg;"postMessage"===n||uni[n](r)}function a(t,e){var n=e.getApp,a=e.getCurrentPages;function c(t,e){var n=a();n.length&&Object(r["b"])(n[n.length-1],t,e)}function s(t){return function(e){c(t,e)}}t("onError",(function(t){Object(r["a"])(n(),"onError",t)})),t("onPageNotFound",(function(t){Object(r["a"])(n(),"onPageNotFound",t)})),t("onAppEnterBackground",(function(){Object(r["a"])(n(),"onHide"),c("onHide")})),t("onAppEnterForeground",(function(t){Object(r["a"])(n(),"onShow",t);var e=a();0!==e.length&&c("onShow")})),t("onResize",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&Object(r["b"])(n,"onResize",t)})),t("onPullDownRefresh",(function(t,e){var n=a().find((function(t){return t.$page.id===e}));n&&(Object(i["setPullDownRefreshPageId"])(e),Object(r["b"])(n,"onPullDownRefresh"))})),t("onTabItemTap",s("onTabItemTap")),t("onNavigationBarButtonTap",s("onNavigationBarButtonTap")),t("onNavigationBarSearchInputChanged",s("onNavigationBarSearchInputChanged")),t("onNavigationBarSearchInputConfirmed",s("onNavigationBarSearchInputConfirmed")),t("onNavigationBarSearchInputClicked",s("onNavigationBarSearchInputClicked")),t("onNavigationBarSearchInputFocusChanged",s("onNavigationBarSearchInputFocusChanged")),t("onWebInvokeAppService",o)}},"50d3":function(t,e,n){"use strict";n.r(e);var r=n("951c"),i=n.n(r),o=n("4738"),a=n("cce2"),c={methods:{$getRealPath:function(t){return t?Object(o["a"])(t):t},$trigger:function(t,e,n){this.$emit(t,a["b"].call(this,t,e,n,this.$el,this.$el))}}};function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&(a.length=1),f.push("".concat(o,"(").concat(a.join(","),")"));else if(r.concat(i).includes(a[0])){o=a[0];var c=a[1];u[o]=i.includes(o)?l(c):c}})),u.transform=u.webkitTransform=f.join(" "),u.transition=u.webkitTransition=Object.keys(u).map((function(t){return"".concat(function(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})).replace("webkit","-webkit")}(t)," ").concat(c.duration,"ms ").concat(c.timingFunction," ").concat(c.delay,"ms")})).join(","),u.transformOrigin=u.webkitTransformOrigin=a.transformOrigin,u}(e);Object.keys(c).forEach((function(e){t.$el.style[e]=c[e]})),n+=1,n0&&void 0!==arguments[0]?arguments[0]:"/",e=decodeURI(window.location.pathname),n=window.location.search,r=window.location.hash;return"/"===t[t.length-1]&&e===t.substring(0,t.length-1)&&(e=t,window.history.replaceState({},"",t+n+r)),t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+n+r}e["default"]={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.routes;e.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(e.config.devtools=!1),Object(u["a"])(e),Object(s["a"])(e),Object(f["w"])(e),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var v=d(r),g=new i.a({id:v,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:r,scrollBehavior:function(t,e,n){if(n)return n;if(t&&e&&t.meta.isTabBar&&e.meta.isTabBar){var r=Object(l["b"])(t.params.__id__);if(r)return r}return{x:0,y:0}}}),m=[],b=g.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):h());if(b.meta.name&&(b.meta.id?m.push(b.meta.name+"-"+b.meta.id):m.push(b.meta.name+"-"+(v+1))),b.meta&&b.meta.name&&(document.body.className="uni-body "+b.meta.name,b.meta.isNVue)){var y="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(y,"")}e.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:m}};var i=Object(a["a"])(e,r,b);Object.keys(i).forEach((function(t){n[t]=n[t]?[].concat(i[t],n[t]):[i[t]]})),n.router=g,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(e){t.error(e)}])}else if(Object(o["d"])(this)){var s=Object(c["a"])();Object.keys(s).forEach((function(t){n.mpOptions?n[t]=n[t]?[].concat(n[t],s[t]):[s[t]]:n[t]=n[t]?[].concat(s[t],n[t]):[s[t]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(e.prototype,"$page",{get:function(){return this.__page__}}),e.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},e.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},e.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},e.use(i.a)}}}.call(this,n("418b")["default"])},"51e5":function(t,e,n){"use strict";n.r(e),n.d(e,"setClipboardData",(function(){return i}));var r=n("0372"),i={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(t,e){if(e.showToast){var n=Object(r["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},"526c":function(t,e,n){"use strict";var r=n("b91d"),i=n.n(r);i.a},"53f9":function(t,e,n){"use strict";n.r(e),n.d(e,"base64ToArrayBuffer",(function(){return r})),n.d(e,"arrayBufferToBase64",(function(){return i}));var r=[{name:"base64",type:String,required:!0}],i=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},"541c":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n,r,i){var o=n.$page.id;t.publishHandler(o+"-map-"+e,{mapId:e,type:r,data:i},o)}n.d(e,"operateMapPlayer",(function(){return r}))}.call(this,n("2c9f"))},5505:function(t,e,n){"use strict";var r=n("c93f"),i=n.n(r);i.a},5556:function(t,e,n){"use strict";var r=n("68d2"),i=n.n(r);i.a},"56ae":function(t,e,n){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)},i(t)}n.r(e),n.d(e,"setStorage",(function(){return a})),n.d(e,"setStorageSync",(function(){return c})),n.d(e,"getStorage",(function(){return s})),n.d(e,"getStorageSync",(function(){return u})),n.d(e,"removeStorage",(function(){return l})),n.d(e,"removeStorageSync",(function(){return f})),n.d(e,"clearStorage",(function(){return d})),n.d(e,"clearStorageSync",(function(){return h})),n.d(e,"getStorageInfo",(function(){return p})),n.d(e,"getStorageInfoSync",(function(){return v}));function o(t){try{var e="string"===typeof t?JSON.parse(t):t,n=e.type;if(["object","string","number","boolean","undefined"].indexOf(n)>=0){var r=Object.keys(e);if(2===r.length&&"data"in e){if(i(e.data)===n)return e.data;if("object"===n&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(e.data))return new Date(e.data)}else if(1===r.length)return""}}catch(a){}}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=t.data,r=i(n),o="string"===r?n:JSON.stringify({type:r,data:n});try{localStorage.setItem(e,o)}catch(a){return{errMsg:"setStorage:fail ".concat(a)}}return{errMsg:"setStorage:ok"}}function c(t,e){a({key:t,data:e})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key,n=localStorage&&localStorage.getItem(e);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var r=n;try{var i=JSON.parse(n),a=o(i);void 0!==a&&(r=a)}catch(c){}return{data:r,errMsg:"getStorage:ok"}}function u(t){var e=s({key:t});return e.data}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key;return localStorage&&localStorage.removeItem(e),{errMsg:"removeStorage:ok"}}function f(t){l({key:t})}function d(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){d()}function p(){for(var t=localStorage&&localStorage.length||0,e=[],n=0,r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("418b")["default"])},"5db9":function(t,e,n){"use strict";var r=n("ea72"),i=r["a"],o=(n("5f77"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-tabbar",{class:["uni-tabbar-"+t.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:t.tabbarBackgroundColor,"backdrop-filter":"none"!==t.blurEffect?"blur(10px)":t.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:t.borderColor}}),t._l(t.visibleList,(function(e,r){return n("div",{key:e.isMidButton?r:e.pagePath,staticClass:"uni-tabbar__item",style:e.isMidButton?{flex:"0 0 "+e.width,position:"relative"}:{},on:{click:function(n){return t._switchTab(e,r)}}},[e.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:t._uniTabbarBdStyle(e)},[e.iconPath?n("img",{style:{width:e.iconWidth,height:e.iconWidth},attrs:{src:t._getRealPath(e.iconPath)}}):t._e()]):t._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:t.height}},[t.getIconPath(e,r)||e.iconfont||e.iconPath||e.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!e.text},style:{width:t.iconWidth,height:t.iconWidth}},[e.iconfont?n("div",{staticClass:"uni-tabbar__iconfont",style:{color:t.selectedIndex===r?e.iconfont.selectedColor:e.iconfont.color,fontSize:e.iconfont.fontSize||t.iconWidth}},[t._v(" "+t._s(t.selectedIndex===r?e.iconfont.selectedText:e.iconfont.text)+" ")]):e.isMidButton?t._e():n("img",{attrs:{src:t._getRealPath(t.getIconPath(e,r))}})]):t._e(),e.text?n("div",{staticClass:"uni-tabbar__label",style:{color:t.selectedIndex===r?t.selectedColor:t.color,fontSize:t.fontSize,lineHeight:e.iconPath?"normal":1.8,marginTop:e.iconPath?t.spacing:"inherit"}},[t._v(" "+t._s(e.text)+" ")]):t._e(),e.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!e.badge}},[t._v(" "+t._s(e.badge)+" ")]):t._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:t.height}})])}),[],!1,null,null,null),c=a.exports,s=n("e16e"),u=s["a"],l=(n("5556"),Object(o["a"])(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.responsive?n("uni-layout",{class:{"uni-app--showlayout":t.showLayout,"uni-app--showtopwindow":t.showTopWindow,"uni-app--showleftwindow":t.showLeftWindow,"uni-app--showrightwindow":t.showRightWindow}},[t.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:t.showTopWindow||t.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:t.topWindowStyle},[n("v-uni-top-window",t._b({ref:"top",attrs:{"navigation-bar-title-text":t.navigationBarTitleText},on:{"hook:mounted":t.onTopWindowInit}},"v-uni-top-window",t.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:t.topWindowHeight}})]):t._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)],1),t.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:t.showLeftWindow||t.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:t.leftWindowStyle,attrs:{"data-show":t.apiShowLeftWindow}},[t.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowLeftWindow=!1}}}):t._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",t._b({ref:"left",on:{"hook:mounted":t.onLeftWindowInit}},"v-uni-left-window",t.bindWindow,!1))],1)]):t._e(),t.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:t.showRightWindow||t.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:t.rightWindowStyle,attrs:{"data-show":t.apiShowRightWindow}},[t.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(e){t.apiShowRightWindow=!1}}}):t._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",t._b({ref:"right",on:{"hook:mounted":t.onRightWindowInit}},"v-uni-right-window",t.bindWindow,!1))],1)]):t._e()],1)],1):n("keep-alive",{attrs:{include:t.keepAliveInclude}},[n("router-view",{key:t.routerKey})],1)}),[],!1,null,null,null)),f=l.exports,d=n("dad6"),h=d["a"],p=(n("cbd0"),Object(o["a"])(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[t.visible?n("uni-toast",{attrs:{"data-duration":t.duration}},[t.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(t){t.preventDefault()}}}):t._e(),t.image||t.iconClass?n("div",{staticClass:"uni-toast"},[t.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:t.image}}):n("i",{staticClass:"uni-icon_toast",class:t.iconClass}),n("p",{staticClass:"uni-toast__content"},[t._v(" "+t._s(t.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[t._v(" "+t._s(t.title)+" ")])])]):t._e()],1)}),[],!1,null,null,null)),v=p.exports,g=n("a409"),m=n("7687"),b=n("b405");var y={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}};function _(t){this.cancelColor_=y[t].cancelColor}var w={name:"Modal",components:{keypress:m["a"]},mixins:[g["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},data:function(){return{cancelColor_:"#000"}},watch:{visible:function(t){t?(this.cancelColor_=this.$parent.showModal.cancelColor,"#000"===this.$parent.showModal.cancelColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},methods:{_onThemeChange:function(t){var e=t.theme;_.call(this,e)},_close:function(t){var e=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,!0);this.editable&&"confirm"===t&&(e.content=this.$refs.editContent.value),this.$emit("close",e)}}},x=w,k=(n("96b9"),Object(o["a"])(x,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[t.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:t._s(t.title)}})]):t._e(),t.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:t.placeholderText},domProps:{value:t.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:t._s(t.content)},on:{touchmove:function(t){t.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[t.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:t.cancelColor_},on:{click:function(e){return t._close("cancel")}}},[t._v(" "+t._s(t.cancelText)+" ")]):t._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:t.confirmColor},on:{click:function(e){return t._close("confirm")}}},[t._v(" "+t._s(t.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close("cancel")},enter:function(e){!t.editable&&t._close("confirm")}}})],1)],1)}),[],!1,null,null,null)),S=k.exports,C=n("a202"),T=n("0372"),O=n("39bd"),E=n("c700"),A=n("d4c9"),I=n("4ba6"),L=n("6f75");var j={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};function M(t){var e=this;["listItemColor","cancelItemColor"].forEach((function(n){e[n]=j[t][n]}))}var P={name:"ActionSheet",components:{keypress:m["a"]},mixins:[T["c"],C["default"],O["a"],E["a"]],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0,listItemColor:"#000000",cancelItemColor:"#000000"}},watch:{visible:function(t){var e=this;t?(this.$nextTick((function(){e.title&&(e.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),e._scroller.update(),e.contentHeight=e.$refs.content.clientHeight-e.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(t){(function(t){var e=0,n=0;t.addEventListener("touchstart",(function(t){var r=t.changedTouches[0];e=r.clientX,n=r.clientY})),t.addEventListener("touchend",(function(t){var r=t.changedTouches[0];if(Math.abs(r.clientX-e)<20&&Math.abs(r.clientY-n)<20){var i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t.target,currentTarget:t.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(t){i[t]=r[t]})),t.target.dispatchEvent(i)}}))})(t)}))})),this.listItemColor=this.cancelItemColor=this.itemColor,"#000"===this.$parent.showActionSheet.itemColor&&("dark"===Object(b["a"])()&&this._onThemeChange({theme:"dark"}),Object(b["c"])(this._onThemeChange))):Object(b["b"])(this._onThemeChange)}},mounted:function(){var t=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){t.initScroller(t.$refs.content,{enableY:!0,friction:new A["a"](1e-4),spring:new I["a"](2,90,20),onScroll:function(e){t.scrollTop=e.target.scrollTop}})})),Object(L["b"])()},methods:{_onThemeChange:function(t){var e=t.theme;M.call(this,e)},_close:function(t){this.$emit("close",t)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t),Object(L["a"])({disable:!0});break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t),Object(L["a"])({disable:!1})}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;Math.abs(e)>10?(this.scrollTop+=e/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=e,t.preventDefault()}}},$=P,R=(n("5fe8"),Object(o["a"])($,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-actionsheet",{on:{touchmove:function(t){t.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(e){return t._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":t.visible},style:t.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:t._handleWheel}},[t.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:t.titleHeight+"px"}}):t._e(),t.title?n("div",{staticClass:"uni-actionsheet__title"},[t._v(" "+t._s(t.title)+" ")]):t._e(),n("div",{style:{maxHeight:t.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},t._l(t.itemList,(function(e,r){return n("div",{key:r,staticClass:"uni-actionsheet__cell",style:{color:t.listItemColor},on:{click:function(e){return t._close(r)}}},[t._v(" "+t._s(e)+" ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:t.cancelItemColor},on:{click:function(e){return t._close(-1)}}},[t._v(" "+t._s(t.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:t.popupStyle.triangle})]),n("keypress",{attrs:{disable:!t.visible},on:{esc:function(e){return t._close(-1)}}})],1)}),[],!1,null,null,null)),D=R.exports,B={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(t){var e=t.detail.scale;this.scale=e},onImgLoad:function(t){var e=t.target,n=e.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(t){var e=this.$el,n=e.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(t)},onTouchEnd:function(t){var e=this.scale,n=e*this.imgWidth>this.width,r=e*this.imgHeight>this.height;this.direction=n&&r?"all":n?"horizontal":r?"vertical":"none",this.checkDirection(t)},checkDirection:function(t){var e=this.direction;"all"!==e&&"horizontal"!==e||t.stopPropagation()}}},N=B,U=(n("1867"),Object(o["a"])(N,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(e){return t.onTouchStart(e)},touchmove:function(e){return t.checkDirection(e)},touchend:function(e){return t.onTouchEnd(e)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:t.direction,inertia:"",scale:"","scale-min":"1","scale-max":"4"},on:{scale:t.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:t.src},on:{load:t.onImgLoad}})])],1)}),[],!1,null,null,null)),V=U.exports,F={name:"PreviewImage",components:{imageView:V},props:{visible:{type:Boolean,default:!1},urls:{type:Array,default:function(){return[]}},current:{type:[String,Number],default:0}},data:function(){return{index:0}},watch:{visible:function(t){if(t){var e="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=e<0?0:e}}},mounted:function(){var t=this,e=0,n=0;this.$el.addEventListener("mousedown",(function(r){t.preventDefault=!1,e=r.clientX,n=r.clientY})),this.$el.addEventListener("mouseup",(function(r){(Math.abs(r.clientX-e)>20||Math.abs(r.clientY-n)>20)&&(t.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||this.$emit("close")}}},W=F,q=(n("4213"),Object(o["a"])(W,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"uni-system-preview-image",on:{click:t._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{navigation:"auto",current:t.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(e){t.index=e}}},t._l(t.urls,(function(t,e){return n("v-uni-swiper-item",{key:e},[n("image-view",{attrs:{src:t}})],1)})),1),t._m(0)],1):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-btn-back"},[n("i",{staticClass:"uni-btn-icon"},[t._v("")])])}],!1,null,null,null)),z=q.exports,H={Toast:v,Modal:S,ActionSheet:D,PreviewImage:z};function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e["a"]=function(t){for(var e=1;e1?n-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?p:255,[f,d,h,p]}return i.error("unsupported color:"+t),[0,0,0,255]}function _(t,e){this.type="pattern",this.data=t,this.colorStop=e}var w=function(){function t(e,n){h(this,t),this.type=e,this.data=n,this.colorStop=[]}return v(t,[{key:"addColorStop",value:function(t,e){this.colorStop.push([t,y(e)])}}]),t}();function x(t){this.width=t}var k=function(){function t(e,n){h(this,t),this.id=e,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return v(t,[{key:"draw",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=f(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(t=g.push(n)),m(this.id,this.pageId,"actionsChanged",{actions:r,reserve:e,callbackId:t})}},{key:"createLinearGradient",value:function(t,e,n,r){return new w("linear",[t,e,n,r])}},{key:"createCircularGradient",value:function(t,e,n){return new w("radial",[t,e,n])}},{key:"createPattern",value:function(t,e){if(void 0===e)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(e)<0))return new _(t,e);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+e+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(t){var e,n=this.state.font;return e=function(t,e){var n=document.createElement("canvas"),r=n.getContext("2d");return r.font=e,r.measureText(t).width||0}(t,n),new x(e)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}},{key:"moveTo",value:function(t,e){this.path.push({method:"moveTo",data:[t,e]}),this.subpath=[[t,e]]}},{key:"lineTo",value:function(t,e){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[t,e]}):this.path.push({method:"lineTo",data:[t,e]}),this.subpath.push([t,e])}},{key:"quadraticCurveTo",value:function(t,e,n,r){this.path.push({method:"quadraticCurveTo",data:[t,e,n,r]}),this.subpath.push([n,r])}},{key:"bezierCurveTo",value:function(t,e,n,r,i,o){this.path.push({method:"bezierCurveTo",data:[t,e,n,r,i,o]}),this.subpath.push([i,o])}},{key:"arc",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[t,e,n,r,i,o]}),this.subpath.push([t,e])}},{key:"rect",value:function(t,e,n,r){this.path.push({method:"rect",data:[t,e,n,r]}),this.subpath=[[t,e]]}},{key:"arcTo",value:function(t,e,n,r,i){this.path.push({method:"arcTo",data:[t,e,n,r,i]}),this.subpath.push([n,r])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:f(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var t=f(this.actions);return this.clearActions(),t}},{key:"lineDashOffset",set:function(t){this.actions.push({method:"setLineDashOffset",data:[t]})}},{key:"globalCompositeOperation",set:function(t){this.actions.push({method:"setGlobalCompositeOperation",data:[t]})}},{key:"shadowBlur",set:function(t){this.actions.push({method:"setShadowBlur",data:[t]})}},{key:"shadowColor",set:function(t){this.actions.push({method:"setShadowColor",data:[t]})}},{key:"shadowOffsetX",set:function(t){this.actions.push({method:"setShadowOffsetX",data:[t]})}},{key:"shadowOffsetY",set:function(t){this.actions.push({method:"setShadowOffsetY",data:[t]})}},{key:"font",set:function(t){var e=this;this.state.font=t;var n=t.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),o=parseFloat(n[3]),a=n[7],c=[];r.forEach((function(t,n){["italic","oblique","normal"].indexOf(t)>-1?(c.push({method:"setFontStyle",data:[t]}),e.state.fontStyle=t):["bold","normal"].indexOf(t)>-1?(c.push({method:"setFontWeight",data:[t]}),e.state.fontWeight=t):0===n?(c.push({method:"setFontStyle",data:["normal"]}),e.state.fontStyle="normal"):1===n&&s()})),1===r.length&&s(),r=c.map((function(t){return t.data[0]})).join(" "),this.state.fontSize=o,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(r," ").concat(o,"px ").concat(a)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){c.push({method:"setFontWeight",data:["normal"]}),e.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(t){this.setFillStyle(t)}},{key:"strokeStyle",set:function(t){this.setStrokeStyle(t)}},{key:"globalAlpha",set:function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:"setGlobalAlpha",data:[t]})}},{key:"textAlign",set:function(t){this.actions.push({method:"setTextAlign",data:[t]})}},{key:"lineCap",set:function(t){this.actions.push({method:"setLineCap",data:[t]})}},{key:"lineJoin",set:function(t){this.actions.push({method:"setLineJoin",data:[t]})}},{key:"lineWidth",set:function(t){this.actions.push({method:"setLineWidth",data:[t]})}},{key:"miterLimit",set:function(t){this.actions.push({method:"setMiterLimit",data:[t]})}},{key:"textBaseline",set:function(t){this.actions.push({method:"setTextBaseline",data:[t]})}}]),t}();function S(e,n){if(n)return new k(e,n.$page.id);var r=Object(c["a"])();if(r)return new k(e,r);t.emit("onError","createCanvasContext:fail")}function C(t,e){var n=t.canvasId,r=t.x,i=t.y,o=t.width,a=t.height,u=Object(c["a"])();if(u){var l=g.push((function(t){var n=t.data;n&&n.length&&(t.data=new Uint8ClampedArray(n)),Object(s["a"])(e,t)}));m(n,u,"getImageData",{x:r,y:i,width:o,height:a,callbackId:l})}else Object(s["a"])(e,{errMsg:"canvasGetImageData:fail"})}function T(t,e){var n=t.canvasId,r=t.data,i=t.x,o=t.y,a=t.width,u=t.height,l=Object(c["a"])();if(l){var f=g.push((function(t){Object(s["a"])(e,t)}));r=Array.prototype.slice.call(r),m(n,l,"putImageData",{data:r,x:i,y:o,width:a,height:u,compressed:void 0,callbackId:f})}else Object(s["a"])(e,{errMsg:"canvasPutImageData:fail"})}function O(t,e){var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.width,l=t.height,f=t.destWidth,d=t.destHeight,h=t.canvasId,p=t.fileType,v=t.quality,b=Object(c["a"])();if(b){var y=g.push((function(t){Object(s["a"])(e,t)})),_="".concat(u["TEMP_PATH"],"/canvas");m(h,b,"toTempFilePath",{x:r,y:o,width:a,height:l,destWidth:f,destHeight:d,fileType:p,quality:v,dirname:_,callbackId:y})}else Object(s["a"])(e,{errMsg:"canvasToTempFilePath:fail"})}[].concat(["scale","rotate","translate","setTransform","transform"],["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"]).forEach((function(t){k.prototype[t]=function(t){switch(t){case"fill":case"stroke":return function(){this.actions.push({method:t+"Path",data:f(this.path)})};case"fillRect":return function(t,e,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[t,e,n,r]}]})};case"strokeRect":return function(t,e,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[t,e,n,r]}]})};case"fillText":case"strokeText":return function(e,n,r,i){var o=[e.toString(),n,r];"number"===typeof i&&o.push(i),this.actions.push({method:t,data:o})};case"drawImage":return function(e,n,r,i,o,a,c,s,u){var l;function f(t){return"number"===typeof t}void 0===u&&(a=n,c=r,s=i,u=o,n=void 0,r=void 0,i=void 0,o=void 0),l=f(n)&&f(r)&&f(i)&&f(o)?[e,a,c,s,u,n,r,i,o]:f(s)&&f(u)?[e,a,c,s,u]:[e,a,c],this.actions.push({method:t,data:l})};default:return function(){for(var e=arguments.length,n=new Array(e),r=0;re-n&&tthis._t&&(t=this._t,this._lastDt=t);var e=this._x_v*t+.5*this._x_a*Math.pow(t,2)+this._x_s,n=this._y_v*t+.5*this._y_a*Math.pow(t,2)+this._y_s;return(this._x_a>0&&ethis._endPositionX)&&(e=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:e,y:n}},c.prototype.ds=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),t>this._t&&(t=this._t),{dx:this._x_v+this._x_a*t,dy:this._y_v+this._y_a*t}},c.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},c.prototype.dt=function(){return-this._x_v/this._x_a},c.prototype.done=function(){var t=i(this.s().x,this._endPositionX)||i(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},c.prototype.setEnd=function(t,e){this._endPositionX=t,this._endPositionY=e},c.prototype.reconfigure=function(t,e){this._m=t,this._f=1e3*e},s.prototype._solve=function(t,e){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0===o){var a=-n/(2*r),c=t,s=e/(a*t);return{x:function(t){return(c+s*t)*Math.pow(Math.E,a*t)},dx:function(t){var e=Math.pow(Math.E,a*t);return a*(c+s*t)*e+s*e}}}if(o>0){var u=(-n-Math.sqrt(o))/(2*r),l=(-n+Math.sqrt(o))/(2*r),f=(e-u*t)/(l-u),d=t-f;return{x:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*e+f*n},dx:function(t){var e,n;return t===this._t&&(e=this._powER1T,n=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,u*t)),n||(n=this._powER2T=Math.pow(Math.E,l*t)),d*u*e+f*l*n}}}var h=Math.sqrt(4*r*i-n*n)/(2*r),p=-n/2*r,v=t,g=(e-p*t)/h;return{x:function(t){return Math.pow(Math.E,p*t)*(v*Math.cos(h*t)+g*Math.sin(h*t))},dx:function(t){var e=Math.pow(Math.E,p*t),n=Math.cos(h*t),r=Math.sin(h*t);return e*(g*h*n-v*h*r)+p*e*(g*r+v*n)}}},s.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},s.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},s.prototype.setEnd=function(t,e,n){if(n||(n=(new Date).getTime()),t!==this._endPosition||!o(e,.1)){e=e||0;var r=this._endPosition;this._solution&&(o(e,.1)&&(e=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),o(e,.1)&&(e=0),o(r,.1)&&(r=0),r+=this._endPosition),this._solution&&o(r-t,.1)&&o(e,.1)||(this._endPosition=t,this._solution=this._solve(r-this._endPosition,e),this._startTime=n)}},s.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},s.prototype.done=function(t){return t||(t=(new Date).getTime()),i(this.x(),this._endPosition,.1)&&o(this.dx(),.1)},s.prototype.reconfigure=function(t,e,n){this._m=t,this._k=e,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},s.prototype.springConstant=function(){return this._k},s.prototype.damping=function(){return this._c},s.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]},u.prototype.setEnd=function(t,e,n,r){var i=(new Date).getTime();this._springX.setEnd(t,r,i),this._springY.setEnd(e,r,i),this._springScale.setEnd(n,r,i),this._startTime=i},u.prototype.x=function(){var t=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(t),y:this._springY.x(t),scale:this._springScale.x(t)}},u.prototype.done=function(){var t=(new Date).getTime();return this._springX.done(t)&&this._springY.done(t)&&this._springScale.done(t)},u.prototype.reconfigure=function(t,e,n){this._springX.reconfigure(t,e,n),this._springY.reconfigure(t,e,n),this._springScale.reconfigure(t,e,n)};var l=n("6f75"),f=!1;function d(t){f||(f=!0,requestAnimationFrame((function(){t(),f=!1})))}function h(t,e){return+((1e3*t-1e3*e)/1e3).toFixed(1)}function p(t,e,n){var r={id:0,cancelled:!1};return function e(n,r,i,o){if(!n||!n.cancelled){i(r);var a=t.done();a||n.cancelled||(n.id=requestAnimationFrame(e.bind(null,n,r,i,o))),a&&o&&o(r)}}(r,t,e,n),{cancel:function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}.bind(null,r),model:t}}var v={name:"MovableView",mixins:[r["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var t=Number(this.damping);return isNaN(t)?20:t},frictionNumber:function(){var t=Number(this.friction);return isNaN(t)||t<=0?2:t},scaleMinNumber:function(){var t=Number(this.scaleMin);return isNaN(t)?.1:t},scaleMaxNumber:function(){var t=Number(this.scaleMax);return isNaN(t)?10:t},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(t){this.xSync=this._getPx(t)},xSync:function(t){this._setX(t)},y:function(t){this.ySync=this._getPx(t)},ySync:function(t){this._setY(t)},disabled:function(){this.__handleTouchStart()},scaleValue:function(t){this.scaleValueSync=Number(t)||0},scaleValueSync:function(t){this._setScaleValue(t)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new u(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new c(1,this.frictionNumber),this._declineX=new a,this._declineY=new a,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(l["b"])()},methods:{_getPx:function(t){return/\d+[ur]px$/i.test(t)?uni.upx2px(parseFloat(t)):Number(t)||0},_setX:function(t){if(this.xMove){if(t+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(t+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return t},_setY:function(t){if(this.yMove){if(t+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,t+this._scaleOffset.y,this._scale)}return t},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(t){return!!this.scale&&(t=this._adjustScale(t),this._updateScale(t,!0),this._updateOldScale(t),t)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(l["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(t){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,r=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=t.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dx/t.detail.dy)<1)),this.yMove&&(r=t.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(t.detail.dy/t.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(t.detail.timeStamp),!this._checkCanMove){t.preventDefault();var i="touch";nthis.maxX&&(this.outOfBounds?(i="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),rthis.maxY&&(this.outOfBounds?(i="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),d((function(){e._setTransform(n,r,e._scale,i)}))}}},__handleTouchEnd:function(){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(l["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var e=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(e,n),this._friction.setS(this._translateX,this._translateY);var r=this._friction.delta().x,i=this._friction.delta().y,o=r+this._translateX,a=i+this._translateY;othis.maxX&&(o=this.maxX,a=this._translateY+(this.maxX-this._translateX)*i/r),athis.maxY&&(a=this.maxY,o=this._translateX+(this.maxY-this._translateY)*r/i),this._friction.setEnd(o,a),this._FA=p(this._friction,(function(){var e=t._friction.s(),n=e.x,r=e.y;t._setTransform(n,r,t._scale,"friction")}),(function(){t._FA.cancel()}))}},_onTrack:function(t){switch(t.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(t);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(t,e){var n=!1;return t>this.maxX?(t=this.maxX,n=!0):tthis.maxY?(e=this.maxY,n=!0):e3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateX||0),null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateY||0),t=Number(t.toFixed(1)),e=Number(e.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===t&&this._translateY===e||i||this.$trigger("change",{},{x:h(t,this._scaleOffset.x),y:h(e,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),o&&n!==this._scale&&this.$trigger("scale",{},{x:t,y:e,scale:n});var a="translateX("+t+"px) translateY("+e+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=t,this._translateY=e,this._scale=n}}},g=v,m=(n("5e27"),n("8844")),b=Object(m["a"])(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-movable-view",t._g({},t.$listeners),[n("v-uni-resize-sensor",{on:{resize:t.setParent}}),t._t("default")],2)}),[],!1,null,null,null);e["default"]=b.exports},"65db":function(t,e,n){},6625:function(t,e,n){"use strict";n.r(e),n.d(e,"createAudioContext",(function(){return i})),n.d(e,"createVideoContext",(function(){return o})),n.d(e,"createMapContext",(function(){return a})),n.d(e,"createCanvasContext",(function(){return c}));var r=[{name:"id",type:String,required:!0}],i=r,o=r,a=r,c=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},6729:function(t,e,n){},6773:function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseImage",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),c=n("909e"),s=t,u=s.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,s=t.sourceType,f=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:s,extension:f,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:o(t)},beforeAll:function(){r=""}},e)}function c(t){return{animationType:{type:String,validator:function(e){if(e&&-1===t.indexOf(e))return"`"+e+"` is not supported for `animationType` (supported values are: `"+t.join("`|`")+"`)"}},animationDuration:{type:Number}}}var s=a("redirectTo"),u=a("reLaunch"),l=a("navigateTo",c(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),f=a("switchTab"),d=Object.assign({delta:{type:Number,validator:function(t,e){t=parseInt(t)||1,e.delta=Math.min(getCurrentPages().length-1,t)}}},c(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),h={url:{type:String,required:!0,validator:o("preloadPage")}},p={url:{type:String,required:!0,validator:o("unPreloadPage")}}},"6c36":function(t,e,n){"use strict";n.r(e),function(t){function r(e,n){var r=t,i=r.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location",query:e},(function(){t.subscribe("onChooseLocation",(function e(r){t.unsubscribe("onChooseLocation",e),i(n,r?Object.assign(r,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})}))}),(function(){i(n,{errMsg:"chooseLocation:fail"})}))}n.d(e,"chooseLocation",(function(){return r}))}.call(this,n("2c9f"))},"6d4b":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r,i=n("b435"),o=n("d359"),a={};function c(e,n){var c=Object(i["e"])();if(c.key){var s=a[c.type]=a[c.type]||[];if(r)n(r);else if(window[c.type]&&window[c.type].maps)r=i["c"]?window[c.type]:window[c.type].maps,r.Callout=r.Callout||Object(o["a"])(r),n(r);else if(s.length)s.push(n);else{s.push(n);var u=window,l="__map_callback__"+c.type;u[l]=function(){delete u[l],r=i["c"]?window[c.type]:window[c.type].maps,r.Callout=Object(o["a"])(r),s.forEach((function(t){return t(r)})),s.length=0};var f=document.createElement("script"),d=function(t){return{qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&"}[t]}(c.type);c.type===i["d"].QQ&&e.push("geometry"),e.length&&(d+="libraries=".concat(e.join("%2C"),"&")),i["c"]&&function(t){window._AMapSecurityConfig={securityJsCode:t.securityJsCode||"",serviceHost:t.serviceHost||""}}(c),f.src="".concat(d,"key=").concat(c.key,"&callback=").concat(l),f.onerror=function(){t.error("Map load failed.")},document.body.appendChild(f)}}else t.error("Map key not configured.")}}).call(this,n("418b")["default"])},"6ddd":function(t,e,n){},"6f73":function(t,e,n){"use strict";n.r(e),n.d(e,"makePhoneCall",(function(){return r}));var r={phoneNumber:{type:String,required:!0,validator:function(t){if(!t)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},"6f75":function(t,e,n){"use strict";function r(){}function i(t){t.disable}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},7068:function(t,e,n){"use strict";n.r(e),n.d(e,"onKeyboardHeightChange",(function(){return a})),n.d(e,"offKeyboardHeightChange",(function(){return c}));var r,i=n("9131"),o=n("745a");function a(t){Object(i["b"])(r),r=t}function c(){r=null}Object(o["d"])("onKeyboardHeightChange",(function(t){r&&Object(i["a"])(r,t)}))},"70bc":function(t,e,n){},"71a4":function(t,e,n){"use strict";(function(t){function r(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}function i(e){return function(){try{return e.apply(e,arguments)}catch(n){t.error(n)}}}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))}).call(this,n("418b")["default"])},"71be":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("340d"),i=n("cff9"),o=n("9798");function a(){return{created:function(){var t=Object(r["e"])(this.$route.query);(function(t,e){var n=t.$route;t.route=n.meta.pagePath,t.options||(t.options=e);var i=Object(r["i"])(n.params,"__id__")?n.params.__id__:n.meta.id,a=n.fullPath;n.meta.isEntry&&-1===a.indexOf(n.meta.pagePath)&&(a="/"+n.meta.pagePath+a.replace("/","")),t.__page__={id:i,path:n.path,route:n.meta.pagePath,fullPath:a,options:e,meta:Object.assign({},n.meta)};var c=t.$router.$eventChannel||new o["a"];t.getOpenerEventChannel=function(){return c},t.$vm=t,t.$root=t,t.$holder=t.$parent.$parent,t.$mp={mpType:"page",page:t,query:{},status:""}})(this,t),Object(i["b"])(this,"onLoad",t),Object(i["b"])(this,"onShow")}}}},"724c":function(t,e,n){"use strict";var r=n("5a2d"),i=n.n(r);i.a},7317:function(t,e,n){"use strict";n.r(e),n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return c}));var r=n("745a"),i="longPressActionsCallback",o={};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o=t.longPressActions||{},(o.success||o.fail||o.complete)&&(o.callbackId=i),Object(r["c"])("previewImagePlus",t)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("closePreviewImagePlus",t)}Object(r["d"])(i,(function(t){var e=t.errMsg||"";new RegExp("\\:\\s*fail").test(e)?o.fail&&o.fail(t):o.success&&o.success(t),o.complete&&o.complete(t)}))},"745a":function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("b15e");function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?v.PICKER:v.SELECT},system:function(){if(this.mode===h.DATE&&!Object.values(p).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(t){var e=this;t?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=t,this._select()):this.__contentVisibleDelay=setTimeout((function(){e.contentVisible=t}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(t){var e=this;if(this.mode===h.TIME||this.mode===h.DATE){var n=this.mode===h.TIME?this._getTimeValue:this._getDateValue,r=this.valueArray,i=this.startArray,o=this.endArray;if(this.mode===h.DATE){var a=this.dateArray,c=a[2].length,s=Number(a[2][r[2]])||1,u=new Date("".concat(a[0][r[0]],"/").concat(a[1][r[1]],"/").concat(s)).getDate();un(o)&&this._cloneArray(r,o)}t.forEach((function(t,n){t!==e.oldValueArray[n]&&(e.oldValueArray[n]=t,e.mode===h.MULTISELECTOR&&e.$trigger("columnchange",{},{column:n,value:t}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(t){var e=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var r=t.currentTarget.getBoundingClientRect();this.popover={top:r.top,left:r.left,width:r.width,height:r.height},setTimeout((function(){e.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case h.SELECTOR:this.valueSync=0;break;case h.MULTISELECTOR:this.valueSync=this.value.map((function(t){return 0}));break;case h.DATE:case h.TIME:this.valueSync="";break;default:break}},_createTime:function(){var t=[],e=[];t.splice(0,t.length);for(var n=0;n<24;n++)t.push((n<10?"0":"")+n);e.splice(0,e.length);for(var r=0;r<60;r++)e.push((r<10?"0":"")+r);this.timeArray.push(t,e)},_createDate:function(){for(var t=[],e=function(t){var e=(new Date).getFullYear(),n=e-150,r=e+150;if(t.start){var i=new Date(t.start).getFullYear();!isNaN(i)&&ir&&(r=o)}return{start:n,end:r}}(this),n=e.start,r=e.end;n<=r;n++)t.push(String(n));for(var i=[],o=1;o<=12;o++)i.push((o<10?"0":"")+o);for(var a=[],c=1;c<=31;c++)a.push((c<10?"0":"")+c);this.dateArray.push(t,i,a)},_getTimeValue:function(t){return 60*t[0]+t[1]},_getDateValue:function(t){return 31*t[0]*12+31*(t[1]||0)+(t[2]||0)},_cloneArray:function(t,e){for(var n=0;na?0:o)}break;case h.TIME:case h.DATE:this.valueSync=String(t);break;default:var c=Number(t);this.valueSync=c<0?0:c;break}},_setValueArray:function(){var t,e=this.valueSync;switch(this.mode){case h.MULTISELECTOR:t=u(e);break;case h.TIME:t=this._getDateValueArray(e,Object(o["g"])({mode:h.TIME}));break;case h.DATE:t=this._getDateValueArray(e,Object(o["g"])({mode:h.DATE}));break;default:t=[e];break}this.oldValueArray=u(t),this.valueArray=u(t)},_getValue:function(){var t=this,e=this.valueArray;switch(this.mode){case h.SELECTOR:return e[0];case h.MULTISELECTOR:return e.map((function(t){return t}));case h.TIME:return this.valueArray.map((function(e,n){return t.timeArray[n][e]})).join(":");case h.DATE:return this.valueArray.map((function(e,n){return t.dateArray[n][e]})).join("-")}},_getDateValueArray:function(t,e){var n,r=this.mode===h.DATE?"-":":",i=this.mode===h.DATE?this.dateArray:this.timeArray;if(this.mode===h.TIME)n=2;else switch(this.fields){case p.YEAR:n=1;break;case p.MONTH:n=2;break;default:n=3;break}for(var o=String(t).split(r),a=[],c=0;c=0&&(a=e?this._getDateValueArray(e):a.map((function(){return 0}))),a},_change:function(){this._close(),this.valueChangeSource="click";var t=this._getValue();this.valueSync=Array.isArray(t)?t.map((function(t){return t})):t,this.$trigger("change",{},{value:t})},_cancel:function(t){if("firefox"===this.system){var e=this.popover,n=e.top,r=e.left,i=e.width,o=e.height,a=t.pageX,c=t.pageY;if(a>r&&an&&c0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e.animation={duration:t.duration||0,timingFunc:t.timingFunc||"linear"}}}},o={title:{type:String,required:!0}}},"7aa4":function(t,e,n){},"7aa9":function(t,e,n){"use strict";n.r(e);var r=n("4b21"),i=n("340d"),o=n("4738"),a={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},c={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function s(t){return t.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(t,e){if(Object(i["i"])(c,e)&&c[e])return c[e];if(/^#[0-9]{1,4}$/.test(e))return String.fromCharCode(e.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(e))return String.fromCharCode("0"+e.slice(1));var n=document.createElement("div");return n.innerHTML=t,n.innerText||n.textContent}))}function u(t,e,n){return"img"===t&&"src"===e?Object(o["a"])(n):n}function l(t,e,n,r){return t.forEach((function(t){if(Object(i["l"])(t))if(Object(i["i"])(t,"type")&&"node"!==t.type)"text"===t.type&&"string"===typeof t.text&&""!==t.text&&e.appendChild(document.createTextNode(s(t.text)));else{if("string"!==typeof t.name||!t.name)return;var o=t.name.toLowerCase();if(!Object(i["i"])(a,o))return;var c=document.createElement(o);if(!c)return;var f=t.attrs;if(n&&c.setAttribute(n,""),Object(i["l"])(f)){var d=a[o]||[];Object.keys(f).forEach((function(t){var e=f[t];switch(t){case"class":Array.isArray(e)&&(e=e.join(" "));case"style":c.setAttribute(t,e);break;default:-1!==d.indexOf(t)&&c.setAttribute(t,u(o,t,e))}}))}(function(t,e,n){["a","img"].includes(t.name)&&n&&(e.setAttribute("onClick","return false;"),e.addEventListener("click",(function(e){n(e,{node:t}),e.stopPropagation()}),!0))})(t,c,r);var h=t.children;Array.isArray(h)&&h.length&&l(t.children,c,n,r),e.appendChild(c)}})),e}var f={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(t){this._renderNodes(t)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(t){var e="",n=this;while(n)!e&&(e=n.$options._scopeId),n=n.$parent;var i=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof t&&(t=Object(r["a"])(t));var o=l(t,document.createDocumentFragment(),e,i&&this.triggerItemClick);o.appendChild(this.$refs.sensor.$el);var a=this.$refs.content;a.innerHTML="",a.appendChild(o)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",t,e)}}},d=f,h=n("8844"),p=Object(h["a"])(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-rich-text",t._g({},t.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._updateView()}}})],1)])}),[],!1,null,null,null);e["default"]=p.exports},"7cce":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("340d"),i=function(){var t=document.createElement("canvas");t.height=t.width=0;var e=t.getContext("2d"),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),o=CanvasRenderingContext2D.prototype;function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.width=t.offsetWidth*(e?i:1),t.height=t.offsetHeight*(e?i:1),t.__hidpi__=e,t.__context2d__=t.getContext("2d"),t.__context2d__.__hidpi__=e}o.drawImageByCanvas=function(t){return function(e,n,r,o,a,c,s,u,l,f){if(!this.__hidpi__)return t.apply(this,arguments);n*=i,r*=i,o*=i,a*=i,c*=i,s*=i,u=f?u*i:u,l=f?l*i:l,t.call(this,e,n,r,o,a,c,s,u,l)}}(o.drawImage),1!==i&&(function(t,e){for(var n in t)Object(r["i"])(t,n)&&e(t[n],n)}({fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},(function(t,e){o[e]=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===t)n=n.map((function(t){return t*i}));else if(Array.isArray(t))for(var r=0;r10&&(t=2*Math.round(t/2)),t}var a={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var t="auto",e="";switch(this.mode){case"aspectFit":t="contain",e="center center";break;case"aspectFill":t="cover",e="center center";break;case"widthFix":case"heightFix":t="100% 100%";break;case"top":e="center top";break;case"bottom":e="center bottom";break;case"center":e="center center";break;case"left":e="left center";break;case"right":e="right center";break;case"top left":e="left top";break;case"top right":e="right top";break;case"bottom left":e="left bottom";break;case"bottom right":e="right bottom";break;default:t="100% 100%",e="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":e,"background-size":t,"background-repeat":"no-repeat"}}},watch:{src:function(t,e){this._loadImage()},mode:function(t,e){"widthFix"!==e&&"heightFix"!==e||this._resetSize(),"widthFix"!==t&&"heightFix"!==t||this._fixSize()},contentPath:function(t){!t&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var t=this.$el;if("widthFix"===this.mode){var e=t.offsetWidth;e&&(t.style.height=o(e/this.ratio)+"px")}else if("heightFix"===this.mode){var n=t.offsetHeight;n&&(t.style.width=o(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var t=this,e=this.$getRealPath(this.src);if(e){var n=this._img=this._img||new Image;n.onload=function(r){t._img=null;var i=t.originalWidth=n.width,o=t.originalHeight=n.height;t._fixSize(),t.contentPath=e,n.draggable=t.draggable,t.__img&&t.__img.remove(),t.__img=n,t.$el.appendChild(n),t.$trigger("load",r,{width:i,height:o})},n.onerror=function(e){t._img=null,t._resetData(),t.$trigger("error",e,{errMsg:"GET ".concat(t.src," 404 (Not Found)")})},n.src=e}else this._clearImage(),this._resetData()},_clearImage:function(){var t=this._img;t&&(t.onload=null,t.onerror=null,this._img=null)}}},c=a,s=(n("4dc6"),n("8844")),u=Object(s["a"])(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-image",t._g({},t.$listeners),[n("div",{ref:"content",style:t.style}),"widthFix"===t.mode||"heightFix"===t.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(e){return t._fixSize()}}}):t._e()],1)}),[],!1,null,null,null);e["default"]=u.exports},"7fd2":function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"chooseFile",(function(){return f}));var i=n("bdee"),o=n("0372"),a=n("493d"),c=n("909e"),s=t,u=s.invokeCallbackHandler,l=null;function f(t,e){var n=t.count,s=t.sourceType,f=t.type,d=t.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:s,type:f,extension:d}),document.body.appendChild(l),l.addEventListener("change",(function(t){for(var r=[],o=t.target.files.length,a=function(e){var o=t.target.files[e],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||Object(i["b"])(o),a}}),e100&&(t=100),t}},watch:{realPercent:function(t,e){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=e||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var t=this;this.active?(this.currentPercent=this.activeMode===r.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){t.currentPercent+1>t.realPercent?(t.currentPercent=t.realPercent,t.strokeTimer&&clearInterval(t.strokeTimer)):t.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},o=i,a=(n("a18d"),n("8844")),c=Object(a["a"])(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-progress",t._g({staticClass:"uni-progress"},t.$listeners),[n("div",{staticClass:"uni-progress-bar",style:t.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:t.innerBarStyle})]),t.showInfo?[n("p",{staticClass:"uni-progress-info"},[t._v(" "+t._s(t.currentPercent)+"% ")])]:t._e()],2)}),[],!1,null,null,null);e["default"]=c.exports},8076:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"previewImage",(function(){return a})),n.d(e,"closePreviewImage",(function(){return c}));var r=t,i=r.emit,o=r.invokeCallbackHandler;function a(t,e){i("onShowPreviewImage",t,(function(t){o(e,{errMsg:"previewImage:ok"})}))}function c(t,e){i("onClosePreviewImage",(function(){o(e,{errMsg:"closePreviewImage:ok"})}))}}.call(this,n("2c9f"))},"81ff":function(t,e,n){"use strict";n.r(e),n.d(e,"vibrateLong",(function(){return i})),n.d(e,"vibrateShort",(function(){return o}));var r=!!window.navigator.vibrate;function i(){return r&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function o(){return r&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"82f1":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"getVideoInfo",(function(){return i}));var r=n("bdee");function i(e,n){var i=e.src,o=t,a=o.invokeCallbackHandler;Object(r["f"])(i,!0).then((function(t){return t})).catch((function(){return{}})).then((function(t){var e=t.size?{size:t.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},r=document.createElement("video");if(void 0!==r.onloadedmetadata){var o=setTimeout((function(){r.onloadedmetadata=null,r.onerror=null,a(n,e)}),i.startsWith("data:")||i.startsWith("blob:")?300:3e3);r.onloadedmetadata=function(){clearTimeout(o),r.onerror=null,a(n,Object.assign(e,{size:Math.ceil((t?t.size:0)/1024),duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0,errMsg:"getVideoInfo:ok"}))},r.onerror=function(){clearTimeout(o),r.onloadedmetadata=null,a(n,e)},r.src=i}else a(n,e)}))}}.call(this,n("2c9f"))},8379:function(t,e,n){"use strict";n.r(e),n.d(e,"createSelectorQuery",(function(){return g}));var r=n("340d"),i=n("745a"),o=n("6352"),a=n("ed2c"),c=n("e68a"),s=n("5883");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=document.getElementById(e);r&&n&&(r.parentNode.removeChild(r),r=null),r||(r=document.createElement("style"),r.type="text/css",e&&(r.id=e),document.getElementsByTagName("head")[0].appendChild(r)),r.appendChild(document.createTextNode(t))}n.d(e,"a",(function(){return r}))},"86d3":function(t,e,n){"use strict";n.r(e),n.d(e,"getBackgroundAudioManager",(function(){return f}));var r=n("745a");function i(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(!r){var e=["touchstart","touchmove","touchend","mousedown","mouseup"];e.forEach((function(t){document.addEventListener(t,(function(){!c&&s(!0),c++,setTimeout((function(){!--c&&s(!1)}),0)}),o)})),r=!0}a.push(t)}e["a"]={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){(function(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)})(this)},addInteractListener:u,getStatus:function(){return!!c}}},"89ce":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"request",(function(){return c}));var r=n("340d");function i(t,e){for(var n=0;n-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(t){return/^([a-z-]+:)?\/\//i.test(t)||/^data:.*,.*/.test(t)||0===t.indexOf("/")||(t="/"+t),Object(r["a"])(t)},_switchTab:function(e,n){var r=e.text,i=e.pagePath;this.selectedIndex=n;var o="/"+i;o===__uniRoutes[0].alias&&(o="/");var a={index:n,text:r,pagePath:i};this.$emit("onTabItemTap",a),this.$route.path===o&&t.emit("onTabItemTap",a)}}}}).call(this,n("2c9f"))},"8b82":function(t,e,n){"use strict";var r=Object.create(null),i=n("4b7e");i.keys().forEach((function(t){Object.assign(r,i(t))})),e["a"]=r},"8c7c":function(e,n){e.exports=t},"8cbb":function(t,e,n){"use strict";var r=n("27d2"),i=n.n(r);i.a},"8d7d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("c80c"),i=n("f621"),o=n.n(i);function a(){if(uni.canIUse("css.var")){var t=document.documentElement.style,e=parseInt((t.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((t.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),i=parseInt((t.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),a=parseInt((t.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),c=parseInt((t.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(e?e+o.a.top:0)+(c||0),bottom:n?n+o.a.bottom:0,left:i?i+o.a.left:0,right:a?a+o.a.right:0}}var s=0,u=0,l=getCurrentPages();if(l.length){var f=l[l.length-1].$parent.$parent,d=f.navigationBar.type;s="default"===d||"float"===d?r["a"]:0}var h=getApp();return h&&(u=h.$children[0]&&h.$children[0].showTabBar?r["d"]:0),{top:s,bottom:u,left:0,right:0}}},"8def":function(t,e,n){"use strict";var r=n("70bc"),i=n.n(r);i.a},"8f2f":function(t,e,n){"use strict";function r(t,e){if(e){if(0===e.indexOf("/"))return e}else{if(e=t,0===e.indexOf("/"))return e;var n=getCurrentPages();t=n.length?n[n.length-1].$page.route:""}if(0===e.indexOf("./"))return r(t,e.substr(2));for(var i=e.split("/"),o=i.length,a=0;a0?t.split("/"):[];return c.splice(c.length-a-1,a+1),"/"+c.concat(i).join("/")}n.d(e,"a",(function(){return r}))},"8f80":function(t,e,n){"use strict";n.r(e);var r=n("fa54"),i=r["a"],o=(n("f08e"),n("8844")),a=Object(o["a"])(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-scroll-view",t._g({},t.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":t.scrollX?"auto":"hidden","overflow-y":t.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[t.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":t.refresherBackground,height:t.refresherHeight+"px"}},["none"!==t.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==t.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+t.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):t._e(),"refreshing"==t.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):t._e()])]):t._e(),"none"==t.refresherDefaultStyle?t._t("refresher"):t._e()],2):t._e(),t._t("default")],2)])])])}),[],!1,null,null,null);e["default"]=a.exports},"8fc6":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7553"),i=n("cff9");function o(t,e){e.getApp;var n=e.getCurrentPages;function o(t){return function(e,r){r=parseInt(r);var o=n(),a=o.find((function(t){return t.$page.id===r}));a&&Object(i["b"])(a,t,e)}}var a=Object(r["a"])("requestComponentInfo");var c=Object(r["a"])("requestComponentObserver");var s=Object(r["a"])("requestMediaQueryObserver");t("onPageReady",o("onReady")),t("onPageScroll",o("onPageScroll")),t("onReachBottom",o("onReachBottom")),t("onRequestComponentInfo",(function(t){var e=t.reqId,n=t.res,r=a.pop(e);r&&r(n)})),t("onRequestComponentObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=c.get(e);if(i){if(n)return void c.pop(e);i(r)}})),t("onRequestMediaQueryObserver",(function(t){var e=t.reqId,n=t.reqEnd,r=t.res,i=s.get(e);if(i){if(n)return void s.pop(e);i(r)}}))}},"909e":function(t,e,n){"use strict";var r=n("0db8");n.d(e,"a",(function(){return r["a"]}));var i=n("2ace");n.d(e,"f",(function(){return i["a"]}));var o=n("4335");n.d(e,"c",(function(){return o["a"]}));var a=n("23a1");n.d(e,"g",(function(){return a["a"]}));var c=n("0e4a");n.d(e,"e",(function(){return c["a"]}));var s=n("0c40");n.d(e,"b",(function(){return s["a"]}));var u=n("88a8");n.d(e,"d",(function(){return u["a"]}))},"90f0":function(t,e,n){"use strict";n.r(e),n.d(e,"getProvider",(function(){return i}));var r={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},i={service:{type:String,required:!0,validator:function(t,e){if(t=(t||"").toUpperCase(),t&&Object.values(r).indexOf(t)<0)return"service error"}}}},9131:function(t,e,n){"use strict";(function(t){function r(){var e;return(e=t).invokeCallbackHandler.apply(e,arguments)}function i(e){return t.removeCallbackHandler(e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))}).call(this,n("2c9f"))},9151:function(t,e){(function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,a,c=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(c--,"="===t[t.length-2]&&c--);var l=new ArrayBuffer(c),f=new Uint8Array(l);for(e=0;e>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&a;return l}})()},"923d":function(t,e,n){"use strict";(function(t){var r=n("84ed"),i=n("4738"),o=n("0854"),a={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""};e["a"]={name:"PageHead",mixins:[o["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(t){return-1!==["default","transparent","float"].indexOf(t)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var t=this,e=[],n={};return this.buttons.length&&this.buttons.forEach((function(o){var a=Object.assign({},o);if(a.fontSrc&&!a.fontFamily){var c,s=a.fontSrc=Object(i["a"])(a.fontSrc);if(s in n)c=n[s];else{c="font".concat(Date.now()),n[s]=c;var u='@font-face{font-family: "'.concat(c,'";src: url("').concat(s,'") format("truetype")}');Object(r["a"])(u,"uni-btn-font-"+c)}a.fontFamily=c}a.color="transparent"===t.type?"#fff":a.color||t.textColor;var l=a.fontSize||("transparent"===t.type||/\\u/.test(a.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),a.fontSize=l,a.fontWeight=a.fontWeight||"normal",e.push(a)})),e},headClass:function(){var t=this.shadow.colorType,e={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":t};return t&&(e["uni-page-head-shadow-".concat(t)]=t),e}},mounted:function(){var e=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(t){e.composing=t})),n.$watch("valueSync",(function(t){e.showPlaceholder=!!t})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){t.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&t.emit("onNavigationBarSearchInputConfirmed",{text:e.text})})),n.$refs.input.addEventListener("focus",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){t.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(e){t.emit("onNavigationBarButtonTap",Object.assign({},this.btns[e],{index:e}))},_formatBtnFontText:function(t){return t.fontSrc&&t.fontFamily?t.text.replace("\\u","&#x"):a[t.type]?a[t.type]:t.text||""},_formatBtnStyle:function(t){var e={color:t.color,fontSize:t.fontSize,fontWeight:t.fontWeight};return t.fontFamily&&(e.fontFamily=t.fontFamily),e},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(e){t.emit("onNavigationBarSearchInputChanged",{text:e})},_clearInput:function(){this.text="",this._input(this.text)}}}}).call(this,n("2c9f"))},"925f":function(t,e,n){"use strict";n.r(e),n.d(e,"chooseFile",(function(){return o}));var r=["all","image","video"],i=["album","camera"],o={count:{type:Number,required:!1,default:100,validator:function(t,e){t<=0&&(e.count=100)}},sourceType:{type:Array,required:!1,default:i,validator:function(t,e){t=t.filter((function(t){return i.includes(t)})),e.sourceType=t.length?t:i}},type:{type:String,required:!1,default:"all",validator:function(t,e){r.includes(t)||(e.type=r[0]),e.type="all"===e.type?e.type="*":e.type}},extension:{type:Array,validator:function(t,e){if(t){if(0===t.length)return"param extension should not be empty."}else"all"!==e.type&&"*"!==e.type&&e.type?e.extension=["*"]:e.extension=[""]}}}},"951c":function(t,n){t.exports=e},9593:function(t,e,n){"use strict";var r=n("83c2"),i=n.n(r);i.a},"95bd":function(t,e,n){"use strict";var r=n("1fdf"),i=n.n(r);i.a},9602:function(t,e,n){"use strict";n.r(e),function(t){var r=n("38ce"),i=n("cce2"),o=n("2be0"),a=n("f98c");function c(){t.publishHandler("onPageReady",{},this.$page.id)}e["default"]={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.routes,Object(i["a"])();var n=function(t,e){for(var n=t.target;n&&n!==e;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};t.prototype.$handleEvent=function(t){if(t instanceof Event){var e=n(t,this.$el);t=i["b"].call(this,t.type,t,{},e||t.target,t.currentTarget)}return t},t.prototype.$getComponentDescriptor=function(t,e){return Object(a["a"])(t||this,e)},Object.defineProperty(t.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),t.prototype.$handleWxsEvent=function(t){if(t instanceof Event){var e=t.currentTarget,r=e&&(e.__vue__||e),o=e&&r.$getComponentDescriptor&&r.$getComponentDescriptor(r,!1),a=t;t=i["b"].call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),t.instance=o,t.preventDefault=function(){return a.preventDefault()},t.stopPropagation=function(){return a.stopPropagation()}}return t},t.mixin({beforeCreate:function(){var t=this,e=this.$options,n=e.wxs;n&&Object.keys(n).forEach((function(e){t[e]=n[e]})),e.behaviors&&e.behaviors.length&&Object(o["a"])(e,this),Object(r["d"])(this)&&(e.mounted=e.mounted?[].concat(c,e.mounted):[c])}})}}}.call(this,n("31d2"))},"96b9":function(t,e,n){"use strict";var r=n("c194"),i=n.n(r);i.a},9798:function(t,e,n){"use strict";function r(t,e){for(var n=0;n1?e-1:0),r=1;r0;)this.emit.apply(this,[t].concat(e.shift()))}},{key:"_addListener",value:function(t,e,n){(this.listener[t]||(this.listener[t]=[])).push({fn:n,type:e})}}]),t}()},"97af":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return v}));var r=n("cff9");function i(t){-1===this.keepAliveInclude.indexOf(t)&&this.keepAliveInclude.push(t)}var o=[];function a(t){if("number"===typeof t)o=this.keepAliveInclude.splice(-(t-1)).map((function(t){return parseInt(t.split("-").pop())}));else{var e=this.keepAliveInclude.indexOf(t);-1!==e&&this.keepAliveInclude.splice(e,1)}}var c=Object.create(null);function s(t){return c[t]}function u(t){c[t]={x:window.pageXOffset,y:window.pageYOffset}}function l(t,e,n){e&&n&&e.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var i=getCurrentPages(),o=i.length-1;o>=0;o--){var c=i[o],s=c.$page.meta;s.isTabBar||(a.call(this,s.name+"-"+c.$page.id),Object(r["b"])(c,"onUnload"))}}function f(t){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var e=getCurrentPages(!0),n=e.length-1;n>=0;n--)Object(r["b"])(e[n],"onUnload"),e[n].$destroy();this.keepAliveInclude=[],c=Object.create(null)}var d=[];function h(t,e,n,r){d=getCurrentPages(!0);var o=e.params.__id__,c=t.params.__id__,s=t.meta.name+"-"+c;if(c===o&&"reLaunch"!==t.type)t.fullPath!==e.fullPath?(i.call(this,s),n()):n(!1);else if(t.meta.id&&t.meta.id!==c)n({path:t.path,replace:!0});else{var u=e.meta.name+"-"+o;switch(t.type){case"navigateTo":break;case"redirectTo":a.call(this,u),e.meta&&e.meta.isQuit&&(t.meta.isQuit=!0,t.meta.isEntry=!!e.meta.isEntry);break;case"switchTab":l.call(this,r,t,e);break;case"reLaunch":f.call(this,s),t.meta.isQuit=!0;break;default:o&&o>c&&(a.call(this,u),this.$router._$delta>1&&a.call(this,this.$router._$delta));break}if("reLaunch"!==t.type&&"redirectTo"!==t.type&&e.meta.id&&i.call(this,u),i.call(this,s),t.meta&&t.meta.name){document.body.className="uni-body "+t.meta.name;var h="nvue-dir-"+__uniConfig.nvue["flex-direction"];t.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(h,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(h))}n()}}function p(e,n){var i,a=n.params.__id__,c=e.params.__id__;function s(t){if(t){Object(r["b"])(t,"onUnload");var e=d.indexOf(t);e>=0&&d.splice(e,1)}}switch(i=n.meta.isSet?d.find((function(t){return t.$page.meta.pagePath===n.meta.pagePath})):d.find((function(t){return t.$page.id===a})),e.type){case"navigateTo":i&&Object(r["b"])(i,"onHide");break;case"redirectTo":s(i);break;case"switchTab":n.meta.isTabBar&&i&&Object(r["b"])(i,"onHide");break;case"reLaunch":break;default:a&&a>c&&(s(i),this.$router._$delta>1&&o.reverse().forEach((function(t){var e=d.find((function(e){return e.$page.id===t}));s(e)})));break}if(delete this.$router._$delta,o.length=0,"reLaunch"!==e.type){var u,l=getCurrentPages(!0);u=e.meta.isSet?l.find((function(t){return t.$page.meta.pagePath===e.meta.pagePath})):l.find((function(t){return t.$page.id===c})),u&&(setTimeout((function(){t.emit("onNavigationBarChange",u.$parent.$parent.navigationBar),Object(r["b"])(u,"onShow")}),0),document.title=u.$parent.$parent.navigationBar.titleText)}}function v(t,e){t.$router.beforeEach((function(n,r,i){h.call(t,n,r,i,e)})),t.$router.afterEach((function(e,n){p.call(t,e,n)}))}}).call(this,n("2c9f"))},"97c3":function(t,e,n){"use strict";function r(t){if(0===t.indexOf("#")){var e=t.substr(1);return function(t){return!(!t.componentInstance||t.componentInstance.id!==e)||!(!t.data||!t.data.attrs||t.data.attrs.id!==e)}}if(0===t.indexOf(".")){var n=t.substr(1);return function(t){return t.data&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?-1!==e.split(i).indexOf(t):n&&"string"===typeof n?-1!==n.split(i).indexOf(t):void 0}(n,t.data.staticClass,t.data.class)}}}n.d(e,"a",(function(){return o}));var i=/\s+/;function o(t){t.prototype.createIntersectionObserver=function(t){return uni.createIntersectionObserver(this,t)},t.prototype.createMediaQueryObserver=function(t){return uni.createMediaQueryObserver(this,t)},t.prototype.selectComponent=function(t){return function t(e,n){if(n(e.$vnode||e._vnode))return e;for(var r=e.$children,i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1&&h.splice(e,1)}else h.length=0}},"9f62":function(t,e,n){"use strict";(function(t){var r=n("909e");e["a"]={name:"Label",mixins:[r["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(e){var n=/^uni-(checkbox|radio|switch)-/.test(e.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(e.target.tagName)),n||(this.for?t.emit("uni-label-click-"+this.$page.id+"-"+this.for,e,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",e,!0))}}}}).call(this,n("31d2"))},"9f69":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"startLocationUpdate",(function(){return l})),n.d(e,"stopLocationUpdate",(function(){return f})),n.d(e,"onLocationChange",(function(){return d})),n.d(e,"offLocationChange",(function(){return h})),n.d(e,"onLocationChangeError",(function(){return p})),n.d(e,"offLocationChangeError",(function(){return v}));var r=n("b435"),i=t,o=i.invokeCallbackHandler,a=[],c=[],s=!1,u=0;function l(t,e){var n=t.type,i=void 0===n?"gcj02":n;if(!navigator.geolocation)return{errMsg:"startLocationUpdate:fail"};u=u||navigator.geolocation.watchPosition((function(t){s=!0,Object(r["f"])(i,t.coords).then((function(t){a.forEach((function(e){o(e,t)}))})).catch((function(t){c.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))}))}),(function(t){s||(o(e,{errMsg:"startLocationUpdate:fail ".concat(t.message)}),s=!0),c.forEach((function(e){o(e,{errMsg:"onLocationChange:fail ".concat(t.message)})}))})),setTimeout((function(){o(e,{errMsg:"startLocationUpdate:ok"})}),100)}function f(){return 0!==u&&(navigator.geolocation.clearWatch(u),s=!1,u=0),{}}function d(t){a.push(t)}function h(t){if(t){var e=a.indexOf(t);e>=0&&a.splice(e,1)}else a=[]}function p(t){c.push(t)}function v(t){if(t){var e=c.indexOf(t);e>=0&&c.splice(e,1)}else c=[]}}.call(this,n("2c9f"))},a004:function(t,e){t.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},a050:function(t,e,n){"use strict";n.r(e);var r=n("909e"),i=n("39bd"),o={add:function(t){var e,n,r;try{e=this.toString().split(".")[1].length}catch(i){e=0}try{n=t.toString().split(".")[1].length}catch(i){n=0}return r=Math.pow(10,Math.max(e,n)),(this*r+t*r)/r},sub:function(t){return this.add(-t)},mul:function(t){var e=0,n=this.toString(),r=t.toString();try{e+=n.split(".")[1].length}catch(i){}try{e+=r.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,e)},div:function(t){var e,n,i=0,o=0;try{i=this.toString().split(".")[1].length}catch(r){}try{o=t.toString().split(".")[1].length}catch(r){}return e=Number(this.toString().replace(".","")),n=Number(t.toString().replace(".","")),e/n*Math.pow(10,o-i)},mod:function(t){var e,n,r=0,i=0;try{r=this.toString().split(".")[1].length}catch(o){}try{i=t.toString().split(".")[1].length}catch(o){}var a=Math.pow(10,Math.abs(r-i));1==a&&(a=Math.pow(10,r)),e=(this*a).toString().split(".")[0],n=t*a;var c=(this*a).toString().split(".")[1]?(this*a).toString().split(".")[1]:"";return(e%n+c)/a}},a={name:"Slider",mixins:[r["a"],r["f"],i["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(t){this.sliderValue=Number(t)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(t){var e=this.$refs["uni-slider-value"],n=getComputedStyle(e,null).marginLeft,r=e.offsetWidth;r+=parseInt(n);var i=this.$refs["uni-slider"],o=i.offsetWidth-(this.showValue?r:0),a=i.getBoundingClientRect().left,c=(t.x-a)*(this.max-this.min)/o+Number(this.min);this.sliderValue=this._filterValue(c)},_filterValue:function(t){var e=Number(this.max),n=Number(this.min);return te?e:o.mul.call(Math.round((t-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(t){if(!this.disabled)return"move"===t.detail.state?(this._onUserChangedValue({x:t.detail.x}),this.$trigger("changing",t,{value:this.sliderValue}),!1):"end"===t.detail.state&&this.$trigger("change",t,{value:this.sliderValue})},_onClick:function(t){this.disabled||(this._onUserChangedValue(t),this.$trigger("change",t,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var t={};return""!==this.name&&(t.value=this.sliderValue,t.key=this.name),t}}},c=a,s=(n("f2a9"),n("8844")),u=Object(s["a"])(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-slider",t._g({ref:"uni-slider",on:{click:t._onClick}},t.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:t.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:t.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:t.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:t.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[t._v(t._s(t.sliderValue))])]),t._t("default")],2)}),[],!1,null,null,null);e["default"]=u.exports},a111:function(t,e,n){"use strict";n.r(e),n.d(e,"chooseVideo",(function(){return i}));var r=["album","camera"],i={sourceType:{type:Array,required:!1,default:r,validator:function(t,e){t=t.filter((function(t){return r.includes(t)})),e.sourceType=t.length?t:r}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(t,e){if(0===t.length)return"param extension should not be empty."}}}},a187:function(t,e,n){},a18d:function(t,e,n){"use strict";var r=n("07b5"),i=n.n(r);i.a},a1d7:function(t,e,n){var r={"./audio/index.vue":"d55f","./button/index.vue":"d6fb","./canvas/index.vue":"63b1","./checkbox-group/index.vue":"d514","./checkbox/index.vue":"ca37","./editor/index.vue":"b1d2","./form/index.vue":"baa1","./icon/index.vue":"0abb","./image/index.vue":"7efa","./input/index.vue":"e0e1","./label/index.vue":"2a78","./movable-area/index.vue":"dbe8","./movable-view/index.vue":"65ce","./navigator/index.vue":"5c1f","./picker-view-column/index.vue":"e510","./picker-view/index.vue":"9eba","./progress/index.vue":"801b","./radio-group/index.vue":"3a3e","./radio/index.vue":"1f8a","./resize-sensor/index.vue":"120f","./rich-text/index.vue":"7aa9","./scroll-view/index.vue":"8f80","./slider/index.vue":"a050","./swiper-item/index.vue":"2066","./swiper/index.vue":"383e","./switch/index.vue":"c1f1","./text/index.vue":"e9d1","./textarea/index.vue":"da9d"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id="a1d7"},a202:function(t,e,n){"use strict";n.r(e),e["default"]={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var t={},e=t.content={},n=t.triangle={},r=this.popover;function i(t){return Number(t)||0}if(this.isDesktop&&r){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var o=i(r.left),a=i(r.width),c=i(r.top),s=i(r.height),u=o+a/2;e.transform="none !important";var l=Math.max(0,u-150);e.left="".concat(l,"px");var f=Math.max(12,u-l);f=Math.min(288,f),n.left="".concat(f,"px");var d=this.popupHeight/2;c+s-d>d-c?(e.top="auto",e.bottom="".concat(this.popupHeight-c+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(e.top="".concat(c+s+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return t}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),n=e.windowWidth,r=e.windowHeight,i=e.windowTop;t.popupWidth=n,t.popupHeight=r+i};window.addEventListener("resize",e),e(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",e)}))}}},a22f:function(t,e,n){"use strict";var r=n("21f5"),i=n.n(r);i.a},a2f6:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(e){return"".concat(Number(t[e])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(t,e){return this.options.relativeToSelector=t,this._makeRootMargin(e),this}},{key:"relativeToViewport",value:function(t){return this.options.relativeToSelector=null,this._makeRootMargin(t),this}},{key:"observe",value:function(e,n){"function"===typeof n&&(this.options.selector=e,this.reqId=c.push(n),t.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(i["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){t.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(i["a"])(this.component)?this.component:this.pageId)}}]),e}();function l(t,e){return t._isVue||(e=t,t=null),new u(t||Object(o["b"])("createIntersectionObserver"),e)}}.call(this,n("2c9f"))},a770:function(t,e){(function(){"use strict";if("object"===("undefined"===typeof window?"undefined":r(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(!e){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,c(window,"resize",this._checkForIntersections,!0),c(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():l();this._observationTargets.forEach((function(r){var i=r.element,a=u(i),c=this._rootContainsTarget(i),s=r.entry,l=t&&c&&this._computeTargetAndRootIntersection(i,e),f=r.entry=new n({time:o(),target:i,boundingClientRect:a,rootBounds:e,intersectionRect:l});s?t&&c?this._hasCrossedThreshold(s,f)&&this._queuedEntries.push(f):s&&s.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){var r=u(e),i=r,o=d(e),a=!1;while(!a){var c=null,l=1==o.nodeType?window.getComputedStyle(o):{};if("none"==l.display)return;if(o==this.root||o==t?(a=!0,c=n):o!=t.body&&o!=t.documentElement&&"visible"!=l.overflow&&(c=u(o)),c&&(i=s(c,i),!i))break;o=d(o)}return i}},i.prototype._getRootRect=function(){var e;if(this.root)e=u(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:a,height:c}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t,e){var n=e;while(n){if(n==t)return!0;n=d(n)}return!1}function d(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}})()},a7fb:function(t,e,n){"use strict";var r=n("84ed"),i=n("4e46"),o={name:"PageBody",mounted:function(){var t=i["a"].height||"50px",e=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(t,");\n height: calc(100% - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(t," - env(safe-area-inset-bottom));\n }");e+="\n",e+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(t,";\n height: calc(").concat(t," + constant(safe-area-inset-bottom));\n height: calc(").concat(t," + env(safe-area-inset-bottom));\n }"),e+="\n",e+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(t,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(t," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(t," - env(safe-area-inset-bottom));\n }"),Object(r["a"])(e)}},a=o,c=(n("8cbb"),n("8844")),s=Object(c["a"])(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("uni-page-wrapper",[n("uni-page-body",[t._t("default")],2)],1)}),[],!1,null,null,null);e["a"]=s.exports},a805:function(t,e,n){"use strict";(function(t){function r(e,n,r){t.UniServiceJSBridge.subscribeHandler(e,n,r)}n.d(e,"a",(function(){return r}))}).call(this,n("0ee4"))},a874:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"createMediaQueryObserver",(function(){return u}));var r=n("7553"),i=n("745a"),o=n("0795");function a(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=!1,u=getCurrentPages();if(u.length?u[u.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(t,":fail not TabBar page")};var l=e.index,f=__uniConfig.tabBar;if(l>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(t,":fail tabbar item not found")};switch(t){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":e.iconfont&&(Object(r["r"])(f.list[l].iconfont,c,e.iconfont),e.iconfont=f.list[l].iconfont),Object(r["r"])(f.list[l],i,e);var d=e.pagePath,h=d&&__uniRoutes.find((function(t){var e=t.path;return e===d}));if(h){var p=h.meta;p.isTabBar=!0,p.tabBarIndex=l,p.isQuit=!0,p.isSet=!0,p.id=l+1;var v=__uniConfig.tabBar;v&&v.list&&v.list[l]&&(v.list[l].pagePath=d.startsWith("/")?d.substring(1):d)}break;case"setTabBarStyle":Object(r["r"])(f,o,e);break;case"showTabBarRedDot":Object(r["r"])(f.list[l],a,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(r["r"])(f.list[l],a,{badge:e.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(r["r"])(f.list[l],a,{badge:"",redDot:!1});break}}return{}}function u(t){return s("setTabBarItem",t)}function l(t){return s("setTabBarStyle",t)}function f(t){return s("hideTabBar",t)}function d(t){return s("showTabBar",t)}function h(t){return s("hideTabBarRedDot",t)}function p(t){return s("showTabBarRedDot",t)}function v(t){return s("removeTabBarBadge",t)}function g(t){return s("setTabBarBadge",t)}},a944:function(t,e,n){var r,i,o;(function(n,a){i=[],r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(u.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(u.stack),i=r&&r[1]||!1,o=r&&r[2]||!1,a=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");i===a&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*