From 6b827a2832b3bfdc7e4f0a08c57fb08f7042b6a5 Mon Sep 17 00:00:00 2001 From: SheepChef Date: Fri, 11 Apr 2025 00:22:42 +0800 Subject: [PATCH 1/4] Update V3.1.0 --- JavyInputAppendix.js | 22 +- package-lock.json | 4 +- package.json | 2 +- src/javascript/main.js | 16 +- src/javascript/mapping_next.json | 378 ++++++++++++++++--------------- src/javascript/utils_next.js | 273 ++++++++++++++++++++-- 6 files changed, 481 insertions(+), 214 deletions(-) diff --git a/JavyInputAppendix.js b/JavyInputAppendix.js index 1d66a71..d69b43a 100644 --- a/JavyInputAppendix.js +++ b/JavyInputAppendix.js @@ -26,6 +26,8 @@ "key":"", //加密密钥,一个字符串 //如果缺省,自动使用默认值 "q":bool, //OLD模式下,决定是否添加标志位 | NEXT模式下,决定输出密文是否有标点符号 "r":number, //仅NEXT模式下需要:算法的随机程度,越大随机性越强,默认 50,最大100,超过100将会出错; + "p":bool, //仅NEXT模式下需要:尽可能使用对仗的骈文句式; 与逻辑句式冲突 + "l":bool, //仅NEXT模式下需要:尽可能使用逻辑句式; 与骈文句式冲突 } @@ -63,7 +65,15 @@ function index(input) { if (input.method == "NEXT") { if (input.inputType == "TEXT") { let Abra = new Abracadabra(input.inputType, input.outputType); - Abra.Input_Next(input.input, input.mode, input.key, input.q, input.r); + Abra.Input_Next( + input.input, + input.mode, + input.key, + input.q, + input.r, + input.p, + input.l + ); let Output = Abra.Output(); if (input.outputType == "UINT8") { Output = uint8ArrayToBase64(Output); @@ -72,7 +82,15 @@ function index(input) { } else if (input.inputType == "UINT8") { let Abra = new Abracadabra(input.inputType, input.outputType); let UINT8In = base64ToUint8Array(input.input); - Abra.Input_Next(UINT8In, input.mode, input.key, input.q, input.r); + Abra.Input_Next( + UINT8In, + input.mode, + input.key, + input.q, + input.r, + input.p, + input.l + ); let Output = Abra.Output(); if (input.outputType == "UINT8") { Output = uint8ArrayToBase64(Output); diff --git a/package-lock.json b/package-lock.json index aef6c8d..0f03091 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "abracadabra-cn", - "version": "3.0.11", + "version": "3.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "abracadabra-cn", - "version": "3.0.11", + "version": "3.1.0", "dependencies": { "crypto-js": "^4.2.0", "js-base64": "^3.7.7", diff --git a/package.json b/package.json index d9685d5..5a5713c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "abracadabra-cn", "description": "Use Chinese to Encode Everything", "private": false, - "version": "3.0.11", + "version": "3.1.0", "main": "./dist/abracadabra-cn.js", "type": "module", "scripts": { diff --git a/src/javascript/main.js b/src/javascript/main.js index 2108da8..c274537 100644 --- a/src/javascript/main.js +++ b/src/javascript/main.js @@ -184,8 +184,18 @@ export class Abracadabra { * @param{string}key 指定密钥,默认是 ABRACADABRA; * @param{bool}q 指定是否为密文添加标点符号,默认 true/添加; * @param{int}r 密文算法的随机程度,越大随机性越强,默认 50,最大100,超过100将会出错; + * @param{bool}p 指定是否强制生成骈文密文,默认 false; + * @param{bool}l 指定是否强制生成逻辑密文,默认 false; */ - Input_Next(input, mode, key = "ABRACADABRA", q = true, r = 50) { + Input_Next( + input, + mode, + key = "ABRACADABRA", + q = true, + r = 50, + p = false, + l = false + ) { if (this.#input == Abracadabra.UINT8) { //如果指定输入类型是UINT8 if (Object.prototype.toString.call(input) != "[object Uint8Array]") { @@ -194,7 +204,7 @@ export class Abracadabra { if (mode == Abracadabra.ENCRYPT) { let Nextinput = new Object(); Nextinput.output = input; - this.#res = Util_Next.enMap(Nextinput, key, q, r); + this.#res = Util_Next.enMap(Nextinput, key, q, r, p, l); } else if (mode == Abracadabra.DECRYPT) { let Nextinput = new Object(); Nextinput.output = input; @@ -209,7 +219,7 @@ export class Abracadabra { let Nextinput = new Object(); Nextinput.output = Util.stringToUint8Array(input); if (mode == Abracadabra.ENCRYPT) { - this.#res = Util_Next.enMap(Nextinput, key, q, r); + this.#res = Util_Next.enMap(Nextinput, key, q, r, p, l); } else if (mode == Abracadabra.DECRYPT) { this.#res = Util_Next.deMap(Nextinput, key); } diff --git a/src/javascript/mapping_next.json b/src/javascript/mapping_next.json index 90fd26c..6b2f8d5 100644 --- a/src/javascript/mapping_next.json +++ b/src/javascript/mapping_next.json @@ -328,205 +328,211 @@ }, "Sentences": { "Begin": [ - "1/非/N/ye", - "1/N/曰", - "1/若夫/N", - "1/anti/MV/V/ye/P", - "2/A/N/曰", - "2/N/以/A", - "2/N/anti/在/A", - "2/N/make/N/zhi", - "2/MV/N/zhe/A", - "2/有/N/则/A", - "2/V/zhe/V/zhi", - "2/but/MV/A/zhe/A", - "3/初,/N/V/by/N", - "3/夫/N/anti/V/by/N", - "3/AD/V/zhi/谓/A", - "3/V/而/V/zhi/zhi/谓/A", - "3/N/,/N/zhi/N/ye/P", - "3/A/之/V/者/必/有/N/P", - "4/非/N/不/A/,/V/不/A", - "4/A/N/AD/V", - "4/V/N/以/V/N", - "4/N/不在/A/,/有/N/则/A/P", - "4/A/N/常有/,/而/A/N/不常有/P", - "4/N/有/MV/V/,/N/有/AD/然/P", - "4/N/无/N/,/无以/V/N", - "5/V/N/而/V/A/,/V/zhi/道/ye/P", - "5/N/zhi/V/V/,/实为/A/A/P", - "5/本/MV/V/A/,/anti/V/N/N", - "5/今/V/N/以/V/A/N", - "5/N/乃/V/V/N/zhi/N", - "5/今/N/乃/A/N/A/N", - "5/A/N/V/A/N", - "5/夫/N/、/N/不/MV/AD/V/N", - "5/不/有/A/N/,/何/V/A/N/Q", - "6/以/N/V/,/like/V/N/V/N", - "6/A/N/zhi/N/,/V/zhi/以/V/其/N", - "6/A/N/V/于/N/而/V/N", - "6/A/N/未/V/N/、/N/之/N", - "7/N/以/A/A/,/AD/V/A/N", - "7/V/N/A/,/A/N/V/N", - "7/N/V/以/N/V/,/V/不/V/N", - "7/N/N/V/N/,/A/于/N/N", - "7/MV/AD/V/A/N/,/but/V/V/不/A", - "7/或/V/N/V/N/,/V/N/于/N", - "7/则有/N/A/N/A/,/N/N/具/V", - "7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P", - "7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", - "8/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P", - "8/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P", - "8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", - "8/V/N/A/A/,/V/N/A/A", - "8/N/V/A/N/,/N/V/A/N", - "8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", - "8/A/N/AD/V/,/N/N/AD/V", - "8/A/N/V/N/,/N/N/V/N/P", - "8/尝/V/A/N/,/AD/V/A/N/zhi/N", - "8/予/V/夫/A/N/A/N/,/在/A/N/之/N", - "8/N/V/于/A/N/,/而/N/V/于/A/N", - "8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", - "9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", - "9/N/MV/V/N/V/V/,/but/N/N/AD/V/P", - "9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", - "9/此/N/有/A/N/A/N/,/A/N/A/N/P", - "9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P" + "1D/非/N/ye", + "1B/N/曰", + "1B/若夫/N", + "1C/anti/MV/V/ye/P", + "2B/A/N/曰", + "2B/N/以/A", + "2C/N/anti/在/A", + "2C/N/make/N/zhi", + "2C/MV/N/zhe/A", + "2E/有/N/则/A", + "2C/V/zhe/V/zhi", + "2D/but/MV/A/zhe/A", + "3C/N/V/by/N", + "3B/初,/N/V/by/N", + "3B/夫/N/anti/V/by/N", + "3B/AD/V/zhi/谓/A", + "3B/V/而/V/zhi/zhi/谓/A", + "3B/N/,/N/zhi/N/ye/P", + "3D/A/之/V/者/必/有/N/P", + "4D/非/N/不/A/,/V/不/A", + "4C/A/N/AD/V", + "4C/V/N/以/V/N", + "4E/N/不在/A/,/有/N/则/A/P", + "4D/A/N/常有/,/而/A/N/不常有/P", + "4E/N/有/MV/V/,/N/有/AD/然/P", + "4D/N/无/N/,/无以/V/N", + "5D/V/N/而/V/A/,/V/zhi/道/ye/P", + "5E/N/zhi/V/V/,/实为/A/A/P", + "5C/本/MV/V/A/,/anti/V/N/N", + "5B/今/V/N/以/V/A/N", + "5B/N/乃/V/V/N/zhi/N", + "5B/今/N/乃/A/N/A/N", + "5C/A/N/V/A/N", + "5B/夫/N/、/N/不/MV/AD/V/N", + "5D/不/有/A/N/,/何/V/A/N/Q", + "6B/以/N/V/,/like/V/N/V/N", + "6B/A/N/zhi/N/,/V/zhi/以/V/其/N", + "6B/A/N/V/于/N/而/V/N", + "6B/A/N/未/V/N/、/N/之/N", + "7C/N/以/A/A/,/AD/V/A/N", + "7B/V/N/A/,/A/N/V/N", + "7B/N/V/以/N/V/,/V/不/V/N", + "7C/N/N/V/N/,/A/于/N/N", + "7D/MV/AD/V/A/N/,/but/V/V/不/A", + "7C/或/V/N/V/N/,/V/N/于/N", + "7E/则有/N/A/N/A/,/N/N/具/V", + "7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P", + "7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", + "8D/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P", + "8D/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P", + "8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", + "8C/V/N/A/A/,/V/N/A/A", + "8C/N/V/A/N/,/N/V/A/N", + "8C/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", + "8C/A/N/AD/V/,/N/N/AD/V", + "8C/A/N/V/N/,/N/N/V/N/P", + "8B/尝/V/A/N/,/AD/V/A/N/zhi/N", + "8D/予/V/夫/A/N/A/N/,/在/A/N/之/N", + "8D/N/V/于/A/N/,/而/N/V/于/A/N", + "8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", + "9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", + "9D/N/MV/V/N/V/V/,/but/N/N/AD/V/P", + "9B/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", + "9C/此/N/有/A/N/A/N/,/A/N/A/N/P", + "9D/是/N/ye/,/N/A/N/A/,/N/A/N/A/P" ], "Main": [ - "1/非/N/ye", - "1/anti/MV/V/ye", - "2/N/make/N/zhi", - "2/MV/N/zhe/A", - "2/有/N/则/A", - "2/V/zhe/V/zhi", - "2/but/MV/A/zhe/A", - "3/N/with/N/V", - "3/N/曰,何/A/zhi/V/Q", - "4/A/N/AD/V", - "4/V/N/以/V/N", - "4/N/无/N/,/无以/V/N/P", - "4/N/不在/A/,/有/N/则/A/P", - "4/N/有/MV/V/,/N/有/AD/然/P", - "4/N/非/V/而/V/之/者/,/孰/MV/无/N/P", - "4/A/N/常有/,/而/A/N/不常有/P", - "4/不/以/N/V/,/不/以/N/V/P", - "5/今/V/N/以/V/A/N", - "5/N/乃/V/V/N/zhi/N", - "5/本/MV/V/A/,/anti/V/N/N", - "5/今/N/乃/A/N/A/N", - "5/每/有/V/N/,/便/AD/然/V/N/P", - "5/N/V/而/A/N/V/也", - "5/不/有/A/N/,/何/V/A/N/Q", - "6/以/N/V/,/like/V/N/V/N", - "6/N/V/,/V/N/V/N", - "6/虽/V/V/A/A/,/A/A/不/同/P", - "6/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P", - "6/A/N/V/于/N/而/V/N", - "6/A/N/未/V/N/、/N/之/N", - "6/V/A/N/,/V/A/N", - "6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P", - "6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P", - "6/将/有/V/,/则/V/A/N/以/V/N/P", - "7/N/V/以/N/V/,/V/不/V/N", - "7/N/N/V/N/,/A/于/N/N", - "7/MV/AD/V/A/N/,/but/V/V/不/A", - "7/或/V/N/V/N/,/V/N/于/N", - "7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P", - "7/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P", - "7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", - "7/A/N/之/N/,/V/之/N/而/V/之/N/也/P", - "7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P", - "7/有/A/N/、/A/N/、/A/N/之/N/P", - "8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", - "8/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P", - "8/V/N/A/A/,/V/N/A/A", - "8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", - "8/A/N/AD/V/,/N/N/AD/V", - "8/A/N/V/N/,/N/N/V/N/P", - "8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", - "8/予/V/夫/A/N/A/N/,/在/A/N/之/N", - "8/故/V/A/N/者/,/当/V/A/N/之/A/N/P", - "8/N/V/于/A/N/,/而/N/V/于/A/N", - "8/A/N/MV/A/N/之/A/,/V/N/中/之/A", - "8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P", - "8/使/其/A/N/AD/V/,/A/N/AD/V/P", - "9/N/MV/V/N/V/V/,/but/N/N/AD/V", - "9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", - "9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", - "9/此/N/有/A/N/A/N/,/A/N/A/N/P", - "9/是/N/ye/,/N/A/N/A/,/N/A/N/A", - "9/V/A/N/,/N/A/N/A/,/乃/AD/V" + "1B/非/N/ye", + "1C/anti/MV/V/ye", + "2C/N/make/N/zhi", + "2C/MV/N/zhe/A", + "2E/有/N/则/A", + "2C/V/zhe/V/zhi", + "2C/but/MV/A/zhe/A", + "3C/N/with/N/V", + "3B/N/曰,何/A/zhi/V/Q", + "4C/A/N/AD/V", + "4C/V/N/以/V/N", + "4D/N/无/N/,/无以/V/N/P", + "4E/N/不在/A/,/有/N/则/A/P", + "4C/N/有/MV/V/,/N/有/AD/然/P", + "4D/N/非/V/而/V/之/者/,/孰/MV/无/N/P", + "4D/A/N/常有/,/而/A/N/不常有/P", + "4C/不/以/N/V/,/不/以/N/V/P", + "5B/今/V/N/以/V/A/N", + "5B/N/乃/V/V/N/zhi/N", + "5C/本/MV/V/A/,/anti/V/N/N", + "5B/今/N/乃/A/N/A/N", + "5E/每/有/V/N/,/便/AD/然/V/N/P", + "5D/N/V/而/A/N/V/也", + "5E/不/有/A/N/,/何/V/A/N/Q", + "6B/以/N/V/,/like/V/N/V/N", + "6C/N/V/,/V/N/V/N", + "6E/虽/V/V/A/A/,/A/A/不/同/P", + "6D/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P", + "6B/A/N/V/于/N/而/V/N", + "6B/A/N/未/V/N/、/N/之/N", + "6C/V/A/N/,/V/A/N", + "6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P", + "6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P", + "6D/将/有/V/,/则/V/A/N/以/V/N/P", + "7B/N/V/以/N/V/,/V/不/V/N", + "7C/N/N/V/N/,/A/于/N/N", + "7D/MV/AD/V/A/N/,/but/V/V/不/A", + "7C/或/V/N/V/N/,/V/N/于/N", + "7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P", + "7D/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P", + "7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", + "7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P", + "7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P", + "7B/有/A/N/、/A/N/、/A/N/之/N/P", + "8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", + "8E/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P", + "8C/V/N/A/A/,/V/N/A/A", + "8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", + "8C/A/N/AD/V/,/N/N/AD/V", + "8C/A/N/V/N/,/N/N/V/N/P", + "8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", + "8D/予/V/夫/A/N/A/N/,/在/A/N/之/N", + "8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P", + "8D/N/V/于/A/N/,/而/N/V/于/A/N", + "8B/A/N/MV/A/N/之/A/,/V/N/中/之/A", + "8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P", + "8B/使/其/A/N/AD/V/,/A/N/AD/V/P", + "9B/N/MV/V/N/V/V/,/but/N/N/AD/V", + "9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", + "9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", + "9C/此/N/有/A/N/A/N/,/A/N/A/N/P", + "9E/是/N/ye/,/N/A/N/A/,/N/A/N/A", + "9E/V/A/N/,/N/A/N/A/,/乃/AD/V" ], "End": [ - "1/非/N/ye", - "1/anti/MV/V/ye", - "2/唯/N/V/zhi", - "2/V/by/N", - "2/其/also/A/hu/其/V/ye/P", - "2/N/make/N/zhi", - "2/MV/N/zhe/A", - "2/有/N/则/A", - "2/V/zhe/V/zhi", - "2/but/MV/A/zhe/A", - "3/V/在/A/N", - "3/今/zhi/V/zhe/,/亦将有/V/于/this/N/P", - "3/某也/A/,/某也/A/,/可/不/A/哉", - "4/V/N/zhi/N/by/N", - "4/A/N/AD/V", - "4/V/N/以/V/N", - "4/N/无/N/,/无以/V/N", - "4/噫/,/A/N/ye/,/N/谁/与/V/Q", - "4/不/以/N/V/,/不/以/N/V/P", - "5/请/V/N/zhi/N/中/,/是/N/zhi/N/P", - "5/今/V/N/以/V/A/N", - "5/N/乃/V/V/N/zhi/N", - "5/本/MV/V/A/,/anti/V/N/N", - "5/今/N/乃/A/N/A/N", - "5/N/V/而/A/N/V/也", - "5/不/有/A/N/,/何/V/A/N/Q", - "6/以/N/V/,/like/V/N/V/N", - "6/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P", - "6/N/V/,/V/N/V/N", - "6/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P", - "6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P", - "6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P", - "6/虽/V/V/A/A/,/A/A/不/同/P", - "6/将/有/V/,/则/V/A/N/以/V/N/P", - "7/N/V/以/N/V/,/V/不/V/N", - "7/N/N/V/N/,/A/于/N/N", - "7/MV/AD/V/A/N/,/but/V/V/不/A", - "7/或/V/N/V/N/,/V/N/于/N", - "7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", - "7/A/N/之/N/,/V/之/N/而/V/之/N/也/P", - "7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P", - "7/有/A/N/、/A/N/、/A/N/之/N/P", - "8/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P", - "8/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P", - "8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", - "8/V/N/A/A/,/V/N/A/A", - "8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", - "8/A/N/AD/V/,/N/N/AD/V", - "8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", - "8/故/V/A/N/者/,/当/V/A/N/之/A/N/P", - "8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P", - "8/使/其/A/N/AD/V/,/A/N/AD/V/P", - "9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", - "9/N/MV/V/N/V/V/,/but/N/N/AD/V", - "9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", - "9/此/N/有/A/N/A/N/,/A/N/A/N/P", - "9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P" + "1B/非/N/ye", + "1C/anti/MV/V/ye", + "2C/唯/N/V/zhi", + "2B/V/by/N", + "2D/其/also/A/hu/其/V/ye/P", + "2C/N/make/N/zhi", + "2C/MV/N/zhe/A", + "2E/有/N/则/A", + "2C/V/zhe/V/zhi", + "2C/but/MV/A/zhe/A", + "3C/V/在/A/N", + "3D/今/zhi/V/zhe/,/亦将有/V/于/this/N/P", + "3D/某也/A/,/某也/A/,/可/不/A/哉", + "4B/V/N/zhi/N/by/N", + "4C/A/N/AD/V", + "4C/V/N/以/V/N", + "4D/N/无/N/,/无以/V/N", + "4D/噫/,/A/N/ye/,/N/谁/与/V/Q", + "4C/不/以/N/V/,/不/以/N/V/P", + "5B/请/V/N/zhi/N/中/,/是/N/zhi/N/P", + "5D/今/V/N/以/V/A/N", + "5B/N/乃/V/V/N/zhi/N", + "5C/本/MV/V/A/,/anti/V/N/N", + "5B/今/N/乃/A/N/A/N", + "5D/N/V/而/A/N/V/也", + "5E/不/有/A/N/,/何/V/A/N/Q", + "6D/以/N/V/,/like/V/N/V/N", + "6D/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P", + "6B/N/V/,/V/N/V/N", + "6E/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P", + "6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P", + "6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P", + "6E/虽/V/V/A/A/,/A/A/不/同/P", + "6D/将/有/V/,/则/V/A/N/以/V/N/P", + "7D/N/V/以/N/V/,/V/不/V/N", + "7C/N/N/V/N/,/A/于/N/N", + "7D/MV/AD/V/A/N/,/but/V/V/不/A", + "7E/或/V/N/V/N/,/V/N/于/N", + "7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P", + "7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P", + "7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P", + "7B/有/A/N/、/A/N/、/A/N/之/N/P", + "8E/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P", + "8D/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P", + "8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P", + "8C/V/N/A/A/,/V/N/A/A", + "8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P", + "8C/A/N/AD/V/,/N/N/AD/V", + "8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P", + "8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P", + "8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P", + "8C/使/其/A/N/AD/V/,/A/N/AD/V/P", + "9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P", + "9B/N/MV/V/N/V/V/,/but/N/N/AD/V", + "9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P", + "9C/此/N/有/A/N/A/N/,/A/N/A/N/P", + "9B/是/N/ye/,/N/A/N/A/,/N/A/N/A/P" ] } } // 句式模板语法 -// e.g. 3/初,/N/V/by/N +// e.g. 3B/初,/N/V/by/P // 3 -> 载荷数量 // "/" ->语素分隔符 -// N->名词 V->动词 A->形容词或者副词 +// N->名词 V->动词 A->形容词 AD->副词 + +// B -> 一般句式 +// C -> 四字骈文句式 +// D -> 逻辑句式 +// E-> 既是四字句式,又有逻辑 //P 句号 //Q 问号 diff --git a/src/javascript/utils_next.js b/src/javascript/utils_next.js index 4ac0ffc..5acb1a6 100644 --- a/src/javascript/utils_next.js +++ b/src/javascript/utils_next.js @@ -17,7 +17,7 @@ * Some of its code need to be altered in order to achieve certain purposes. * Unishox2 was Licensed under the Apache License, Version 2.0. * Copyright (C) 2020 Siara Logics (cc) - * + * * 本作品中包含的 Unishox2 不适用 AIPL-1.1 许可证。 * 使用 Unishox2 须遵守其原始许可证。 * @@ -31,7 +31,7 @@ import "pako"; import MersenneTwister from "mersenne-twister"; const Map = - '{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1/非/N/ye","1/N/曰","1/若夫/N","1/anti/MV/V/ye/P","2/A/N/曰","2/N/以/A","2/N/anti/在/A","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/初,/N/V/by/N","3/夫/N/anti/V/by/N","3/AD/V/zhi/谓/A","3/V/而/V/zhi/zhi/谓/A","3/N/,/N/zhi/N/ye/P","3/A/之/V/者/必/有/N/P","4/非/N/不/A/,/V/不/A","4/A/N/AD/V","4/V/N/以/V/N","4/N/不在/A/,/有/N/则/A/P","4/A/N/常有/,/而/A/N/不常有/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/无/N/,/无以/V/N","5/V/N/而/V/A/,/V/zhi/道/ye/P","5/N/zhi/V/V/,/实为/A/A/P","5/本/MV/V/A/,/anti/V/N/N","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/今/N/乃/A/N/A/N","5/A/N/V/A/N","5/夫/N/、/N/不/MV/AD/V/N","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/N/zhi/N/,/V/zhi/以/V/其/N","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","7/N/以/A/A/,/AD/V/A/N","7/V/N/A/,/A/N/V/N","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/则有/N/A/N/A/,/N/N/具/V","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/V/A/N/,/N/V/A/N","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/尝/V/A/N/,/AD/V/A/N/zhi/N","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/N/V/于/A/N/,/而/N/V/于/A/N","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1/非/N/ye","1/anti/MV/V/ye","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/N/with/N/V","3/N/曰,何/A/zhi/V/Q","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N/P","4/N/不在/A/,/有/N/则/A/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4/A/N/常有/,/而/A/N/不常有/P","4/不/以/N/V/,/不/以/N/V/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/每/有/V/N/,/便/AD/然/V/N/P","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/N/V/,/V/N/V/N","6/虽/V/V/A/A/,/A/A/不/同/P","6/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","6/V/A/N/,/V/A/N","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/,/而/N/V/于/A/N","8/A/N/MV/A/N/之/A/,/V/N/中/之/A","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A","9/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1/非/N/ye","1/anti/MV/V/ye","2/唯/N/V/zhi","2/V/by/N","2/其/also/A/hu/其/V/ye/P","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/V/在/A/N","3/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3/某也/A/,/某也/A/,/可/不/A/哉","4/V/N/zhi/N/by/N","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N","4/噫/,/A/N/ye/,/N/谁/与/V/Q","4/不/以/N/V/,/不/以/N/V/P","5/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6/N/V/,/V/N/V/N","6/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/虽/V/V/A/A/,/A/A/不/同/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}'; + '{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1D/非/N/ye","1B/N/曰","1B/若夫/N","1C/anti/MV/V/ye/P","2B/A/N/曰","2B/N/以/A","2C/N/anti/在/A","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2D/but/MV/A/zhe/A","3C/N/V/by/N","3B/初,/N/V/by/N","3B/夫/N/anti/V/by/N","3B/AD/V/zhi/谓/A","3B/V/而/V/zhi/zhi/谓/A","3B/N/,/N/zhi/N/ye/P","3D/A/之/V/者/必/有/N/P","4D/非/N/不/A/,/V/不/A","4C/A/N/AD/V","4C/V/N/以/V/N","4E/N/不在/A/,/有/N/则/A/P","4D/A/N/常有/,/而/A/N/不常有/P","4E/N/有/MV/V/,/N/有/AD/然/P","4D/N/无/N/,/无以/V/N","5D/V/N/而/V/A/,/V/zhi/道/ye/P","5E/N/zhi/V/V/,/实为/A/A/P","5C/本/MV/V/A/,/anti/V/N/N","5B/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5B/今/N/乃/A/N/A/N","5C/A/N/V/A/N","5B/夫/N/、/N/不/MV/AD/V/N","5D/不/有/A/N/,/何/V/A/N/Q","6B/以/N/V/,/like/V/N/V/N","6B/A/N/zhi/N/,/V/zhi/以/V/其/N","6B/A/N/V/于/N/而/V/N","6B/A/N/未/V/N/、/N/之/N","7C/N/以/A/A/,/AD/V/A/N","7B/V/N/A/,/A/N/V/N","7B/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7C/或/V/N/V/N/,/V/N/于/N","7E/则有/N/A/N/A/,/N/N/具/V","7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8D/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8D/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8C/V/N/A/A/,/V/N/A/A","8C/N/V/A/N/,/N/V/A/N","8C/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8C/A/N/V/N/,/N/N/V/N/P","8B/尝/V/A/N/,/AD/V/A/N/zhi/N","8D/予/V/夫/A/N/A/N/,/在/A/N/之/N","8D/N/V/于/A/N/,/而/N/V/于/A/N","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9D/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9B/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9D/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1B/非/N/ye","1C/anti/MV/V/ye","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2C/but/MV/A/zhe/A","3C/N/with/N/V","3B/N/曰,何/A/zhi/V/Q","4C/A/N/AD/V","4C/V/N/以/V/N","4D/N/无/N/,/无以/V/N/P","4E/N/不在/A/,/有/N/则/A/P","4C/N/有/MV/V/,/N/有/AD/然/P","4D/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4D/A/N/常有/,/而/A/N/不常有/P","4C/不/以/N/V/,/不/以/N/V/P","5B/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5C/本/MV/V/A/,/anti/V/N/N","5B/今/N/乃/A/N/A/N","5E/每/有/V/N/,/便/AD/然/V/N/P","5D/N/V/而/A/N/V/也","5E/不/有/A/N/,/何/V/A/N/Q","6B/以/N/V/,/like/V/N/V/N","6C/N/V/,/V/N/V/N","6E/虽/V/V/A/A/,/A/A/不/同/P","6D/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6B/A/N/V/于/N/而/V/N","6B/A/N/未/V/N/、/N/之/N","6C/V/A/N/,/V/A/N","6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6D/将/有/V/,/则/V/A/N/以/V/N/P","7B/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7C/或/V/N/V/N/,/V/N/于/N","7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7D/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7B/有/A/N/、/A/N/、/A/N/之/N/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8E/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8C/V/N/A/A/,/V/N/A/A","8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8C/A/N/V/N/,/N/N/V/N/P","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8D/予/V/夫/A/N/A/N/,/在/A/N/之/N","8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8D/N/V/于/A/N/,/而/N/V/于/A/N","8B/A/N/MV/A/N/之/A/,/V/N/中/之/A","8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8B/使/其/A/N/AD/V/,/A/N/AD/V/P","9B/N/MV/V/N/V/V/,/but/N/N/AD/V","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9E/是/N/ye/,/N/A/N/A/,/N/A/N/A","9E/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1B/非/N/ye","1C/anti/MV/V/ye","2C/唯/N/V/zhi","2B/V/by/N","2D/其/also/A/hu/其/V/ye/P","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2C/but/MV/A/zhe/A","3C/V/在/A/N","3D/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3D/某也/A/,/某也/A/,/可/不/A/哉","4B/V/N/zhi/N/by/N","4C/A/N/AD/V","4C/V/N/以/V/N","4D/N/无/N/,/无以/V/N","4D/噫/,/A/N/ye/,/N/谁/与/V/Q","4C/不/以/N/V/,/不/以/N/V/P","5B/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5D/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5C/本/MV/V/A/,/anti/V/N/N","5B/今/N/乃/A/N/A/N","5D/N/V/而/A/N/V/也","5E/不/有/A/N/,/何/V/A/N/Q","6D/以/N/V/,/like/V/N/V/N","6D/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6B/N/V/,/V/N/V/N","6E/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6E/虽/V/V/A/A/,/A/A/不/同/P","6D/将/有/V/,/则/V/A/N/以/V/N/P","7D/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7E/或/V/N/V/N/,/V/N/于/N","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7B/有/A/N/、/A/N/、/A/N/之/N/P","8E/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8D/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8C/V/N/A/A/,/V/N/A/A","8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8C/使/其/A/N/AD/V/,/A/N/AD/V/P","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9B/N/MV/V/N/V/V/,/but/N/N/AD/V","9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9B/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}'; var RoundFlip = 0; //标志现在到哪了 var RoundControl = new Uint8Array(32); //一个数组,用密钥哈希来控制轮转的行为 @@ -49,8 +49,6 @@ var NUMBERSYMBOL_ROUND_1 = "0123456789+/="; var NUMBERSYMBOL_ROUND_2 = "5=0764+389/12"; //手动随机打乱的乱序轮 var NUMBERSYMBOL_ROUND_3 = "0123456789+/="; -//const SIG_DECRYPT_JP = "桜込凪雫実沢"; -//const SIG_DECRYPT_CN = "玚俟玊欤瞐珏"; const NULL_STR = "孎"; //默认忽略的占位字符,一个生僻字。 const CHINESE_WEBPAN_LIB = [ @@ -783,6 +781,21 @@ function distributeInteger(num) { return result; } +function distributePayload(n) { + if (n === 0) return [0]; + const k = Math.ceil(n / 100); + const base = Math.floor(n / k); + const remainder = n % k; + const parts = []; + for (let i = 0; i < remainder; i++) { + parts.push(base + 1); + } + for (let i = remainder; i < k; i++) { + parts.push(base); + } + return parts; +} + export class PreCheckResult { constructor(output, isEncrypted = false) { this.output = output; @@ -790,9 +803,31 @@ export class PreCheckResult { } } -export function selectSentence(PayloadLength, RandomIndex = 0) { +export function selectSentence(PayloadLength, RandomIndex = 0, p, l) { + //P 强制对仗骈文 + //L 强制多用逻辑句式 //句式选择算法 //RandomIndex 随机指数,越大,给出的句式越随机,最大100。 + if (RandomIndex > 100 || RandomIndex < 0) { + //错误的输入。 + throw "Incorrect Random Index"; + } + if (p && l) { + throw "Contradictory Mode Setting"; + } + + if (PayloadLength > 100) { + //如果密文太长了,那么自动分段 + let distributedPayload = distributePayload(PayloadLength); + let Result = []; + distributedPayload.forEach((Payload) => { + Result = Result.concat(selectSentence(Payload, RandomIndex, p, l)); + Result[Result.length - 1].push("Z"); + }); + + return Result; + } + let selectRand; let DividedPayload = distributeInteger(PayloadLength); //把Payload平均分配给三个部分。 @@ -845,17 +880,81 @@ export function selectSentence(PayloadLength, RandomIndex = 0) { ); } - let PossibleSentences = []; //所有挑选出来的可能句式,选择时任选其一。 + let PossibleSentences = []; // 所有挑选出来的可能句式,选择时任选其一。 + let PossiblePianSentences = []; // 所有可能的骈文句式。 + let PossibleLogicSentences = []; // 所有可能的逻辑句式 for (let c = 0; c < Map_Obj["Sentences"]["Begin"].length; c++) { //开始选择句式 let Sentence = Map_Obj["Sentences"]["Begin"][c].split("/"); //Sentence是列表,按照/分割的句式 if (parseInt(Sentence[0]) == TargetPayload) { - PossibleSentences.push(Sentence.slice(1)); + PossibleSentences.push(Sentence.slice(1)); //把当前句式的类型附加到末尾 + if (Sentence[0][1] == "C" || Sentence[0][1] == "E") { + PossiblePianSentences.push(Sentence.slice(1)); + } + if (Sentence[0][1] == "D" || Sentence[0][1] == "E") { + PossibleLogicSentences.push(Sentence.slice(1)); + } + } + } + + let TargetSentence; + if (p) { + if (PossiblePianSentences.length != 0) { + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else if (l) { + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + let LogiRand = GetRandomIndex(101); //给骈文和逻辑句式一个直接的插入概率 + //LogiRand max 200 + if (LogiRand > 25) { + // 如果大于25,也就是说进入此的概率是75% + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; //随机选句子 + } else { + let PianOrLogi = GetRandomIndex(2); //0 or 1 + + if (PianOrLogi == 0) { + //选骈文。 + if (PossiblePianSentences.length != 0) { + //没有可用句式就随机选 + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + //选逻辑句式 + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } } } - let TargetSentence = - PossibleSentences[GetRandomIndex(PossibleSentences.length)]; ElementResult.push(TargetSentence); a = a + TargetPayload; @@ -900,17 +999,81 @@ export function selectSentence(PayloadLength, RandomIndex = 0) { ); } - let PossibleSentences = []; //所有挑选出来的可能句式,选择时任选其一。 + let PossibleSentences = []; // 所有挑选出来的可能句式,选择时任选其一。 + let PossiblePianSentences = []; // 所有可能的骈文句式。 + let PossibleLogicSentences = []; // 所有可能的逻辑句式 for (let c = 0; c < Map_Obj["Sentences"]["Main"].length; c++) { //开始选择句式 let Sentence = Map_Obj["Sentences"]["Main"][c].split("/"); //Sentence是列表,按照/分割的句式 if (parseInt(Sentence[0]) == TargetPayload) { - PossibleSentences.push(Sentence.slice(1)); + PossibleSentences.push(Sentence.slice(1)); //把当前句式的类型附加到末尾 + if (Sentence[0][1] == "C" || Sentence[0][1] == "E") { + PossiblePianSentences.push(Sentence.slice(1)); + } + if (Sentence[0][1] == "D" || Sentence[0][1] == "E") { + PossibleLogicSentences.push(Sentence.slice(1)); + } + } + } + + let TargetSentence; + if (p) { + if (PossiblePianSentences.length != 0) { + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else if (l) { + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + let LogiRand = GetRandomIndex(101); //给骈文和逻辑句式一个直接的插入概率 + //LogiRand max 200 + if (LogiRand > 25) { + // 如果大于25,也就是说,进入此的概率是75% + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; //随机选句子 + } else { + let PianOrLogi = GetRandomIndex(2); //0 or 1 + + if (PianOrLogi == 0) { + //选骈文。 + if (PossiblePianSentences.length != 0) { + //没有可用句式就随机选 + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + //选逻辑句式 + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } } } - let TargetSentence = - PossibleSentences[GetRandomIndex(PossibleSentences.length)]; ElementResult.push(TargetSentence); a = a + TargetPayload; @@ -955,19 +1118,81 @@ export function selectSentence(PayloadLength, RandomIndex = 0) { ); } - let PossibleSentences = []; //所有挑选出来的可能句式,选择时任选其一。 + let PossibleSentences = []; // 所有挑选出来的可能句式,选择时任选其一。 + let PossiblePianSentences = []; // 所有可能的骈文句式。 + let PossibleLogicSentences = []; // 所有可能的逻辑句式 for (let c = 0; c < Map_Obj["Sentences"]["End"].length; c++) { //开始选择句式 let Sentence = Map_Obj["Sentences"]["End"][c].split("/"); //Sentence是列表,按照/分割的句式 if (parseInt(Sentence[0]) == TargetPayload) { - PossibleSentences.push(Sentence.slice(1)); + PossibleSentences.push(Sentence.slice(1)); //把当前句式的类型附加到末尾 + if (Sentence[0][1] == "C" || Sentence[0][1] == "E") { + PossiblePianSentences.push(Sentence.slice(1)); + } + if (Sentence[0][1] == "D" || Sentence[0][1] == "E") { + PossibleLogicSentences.push(Sentence.slice(1)); + } } } - let TargetSentence = - PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + let TargetSentence; + if (p) { + if (PossiblePianSentences.length != 0) { + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else if (l) { + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + let LogiRand = GetRandomIndex(101); //给骈文和逻辑句式一个直接的插入概率 + //LogiRand max 200 + if (LogiRand > 25) { + // 如果大于25,也就是说进入此的概率是75% + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; //随机选句子 + } else { + let PianOrLogi = GetRandomIndex(2); //0 or 1 + + if (PianOrLogi == 0) { + //选骈文。 + if (PossiblePianSentences.length != 0) { + //没有可用句式就随机选 + TargetSentence = + PossiblePianSentences[ + GetRandomIndex(PossiblePianSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } else { + //选逻辑句式 + if (PossibleLogicSentences.length != 0) { + TargetSentence = + PossibleLogicSentences[ + GetRandomIndex(PossibleLogicSentences.length) + ]; + } else { + TargetSentence = + PossibleSentences[GetRandomIndex(PossibleSentences.length)]; + } + } + } + } ElementResult.push(TargetSentence); - a = a + TargetPayload; } } @@ -976,7 +1201,7 @@ export function selectSentence(PayloadLength, RandomIndex = 0) { return ElementResult; } -export function enMap(input, key, q, r) { +export function enMap(input, key, q, r, p, l) { //input.output Uint8Array RoundReset(); RoundControlInit(key); @@ -1024,7 +1249,7 @@ export function enMap(input, key, q, r) { //从这里开始做文章。。 - let Sentence = selectSentence(OriginStr.length, r); //选择句式 + let Sentence = selectSentence(OriginStr.length, r, p, l); //选择句式 let i = 0; let Finished = false; let hasSpecialEndSymbol = false; //标记,此短句是否有特殊符号 @@ -1071,6 +1296,14 @@ export function enMap(input, key, q, r) { } hasSpecialEndSymbol = true; TempStr1 = TempStr1 + "。"; + } else if (Sentence[j][k] == "Z") { + //识别到段落分隔符 + if (!hasSpecialEndSymbol) { + hasSpecialEndSymbol = true; + TempStr1 = TempStr1 + "。\n\n"; + } else { + TempStr1 = TempStr1 + "\n\n"; + } } else if (Sentence[j][k] == "Q") { //倒数第二个句式禁止出现句号和问号 if (j == Sentence.length - 2) { From 85970eaa79625498f204887ab9c9b95e94c310f8 Mon Sep 17 00:00:00 2001 From: SheepChef Date: Fri, 11 Apr 2025 18:36:22 +0800 Subject: [PATCH 2/4] Update README --- DEPLOY.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/DEPLOY.md b/DEPLOY.md index 3f11445..6a09623 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -100,7 +100,7 @@ Abracadabra.DECRYPT = "DECRYPT"; 强制解密 */ -Abra.Input_Next(input,mode,key,q,r) +Abra.Input_Next(input,mode,key,q,r,p,l) ``` 第一个参数 `input` 接受两种类型的输入,分别是 `String` 和 `Uint8Array`,这是此前在实例化的时候指定的输入类型。 @@ -113,11 +113,17 @@ Abra.Input_Next(input,mode,key,q,r) 如果指定了错误的密码,那么在解码/解密数据校验过程中会抛出错误。 -第四个参数 `q` 接受布尔值的输入,如果传入 `true`,则加密结果中将不含标点符号,解密时可以忽略这个参数。 +第四个参数 `q` 接受布尔值的输入,默认为 `true`。如果传入 `false`,则加密结果中将不含标点符号,解密时可以忽略这个参数。 -第五个参数 `r` 接受整数值的输入,最小值`0`,最大值`100`,超过 100 的输入将会报错。输入值越大,句式选择算法的随机性越大;输入值为 0 时,句式选择步骤将只选择载荷字最多的那个。 +第五个参数 `r` 接受整数值的输入,默认为`50`,最小值`0`,最大值`100`,超过 100 的输入将会报错。输入值越大,载荷量选择算法的随机性越大;输入值为 0 时,句式选择步骤将只选择载荷字较多的那个。解密时可以忽略这个参数。 -在无错误的情况下, `Input()` 函数的返回值通常是 `0`。 +第六个参数 `p` 接受布尔值的输入,默认为 `false`。如果传入 `true`,则加密结果会优先使用骈文句式,呈现四字到五字一组的对仗格律,这有助于减少密文的总体长度。解密时可以忽略这个参数。 + +第七个参数 `l` 接受布尔值的输入,默认为 `false`。如果传入 `true`,则加密结果会优先使用逻辑句式,呈现强论述类逻辑风格。解密时可以忽略这个参数。 + +`p` 和 `l` 不能同时指定为 `true`,否则会抛出错误。 + +在无错误的情况下, `Input_Next()` 函数的返回值通常是 `0`。 #### Output() @@ -150,14 +156,16 @@ let Result = Abra.Output() //获取输出 ```json { - "method":"", // NEXT | OLD //前者是仿真加密,后者是传统加密 + "method":"", // NEXT | OLD "inputType":"", // TEXT | UINT8 "outputType":"", // TEXT | UINT8 "input":"", //输入的数据,如果是TEXT请直接输入纯文本,如果是任意字节,请输入Base64编码字符串 "mode":"", // ENCRYPT | DECRYPT | AUTO // AUTO 仅在 method 指定 OLD 时合法 - "key":"", //加密密钥,一个字符串,不可缺省,JavaScript实现的默认值为 ABRACADABRA - "q":bool, //OLD模式下,决定是否去除标志位 | NEXT模式下,决定输出密文是否有标点符号 + "key":"", //加密密钥,一个字符串 //如果缺省,自动使用默认值 + "q":bool, //OLD模式下,决定是否添加标志位 | NEXT模式下,决定输出密文是否有标点符号 "r":number, //仅NEXT模式下需要:算法的随机程度,越大随机性越强,默认 50,最大100,超过100将会出错; + "p":bool, //仅NEXT模式下需要:尽可能使用对仗的骈文句式; 与逻辑句式冲突 + "l":bool, //仅NEXT模式下需要:尽可能使用逻辑句式; 与骈文句式冲突 } From 8c073452320200f9044d59e054573a0925d29198 Mon Sep 17 00:00:00 2001 From: SheepChef Date: Fri, 11 Apr 2025 18:54:17 +0800 Subject: [PATCH 3/4] V3.1.0 Final --- src/javascript/utils_next.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/javascript/utils_next.js b/src/javascript/utils_next.js index 5acb1a6..d1a17c4 100644 --- a/src/javascript/utils_next.js +++ b/src/javascript/utils_next.js @@ -1300,9 +1300,14 @@ export function enMap(input, key, q, r, p, l) { //识别到段落分隔符 if (!hasSpecialEndSymbol) { hasSpecialEndSymbol = true; - TempStr1 = TempStr1 + "。\n\n"; + TempStr1 = TempStr1 + "。"; + if (i != size) { + TempStr1 = TempStr1 + "\n\n"; + } } else { - TempStr1 = TempStr1 + "\n\n"; + if (i != size) { + TempStr1 = TempStr1 + "\n\n"; + } } } else if (Sentence[j][k] == "Q") { //倒数第二个句式禁止出现句号和问号 From 2397fa0968090f690324a81c7a09a39a6270ad21 Mon Sep 17 00:00:00 2001 From: SheepChef Date: Fri, 11 Apr 2025 19:18:22 +0800 Subject: [PATCH 4/4] Update README --- DEPLOY.md | 2 +- README.md | 2 +- .../{index-Y14zB65A.js => index-DzyBey0l.js} | 158 +++++++++--------- docs/index.html | 2 +- docs/sw.js | 2 +- 5 files changed, 84 insertions(+), 82 deletions(-) rename docs/assets/{index-Y14zB65A.js => index-DzyBey0l.js} (56%) diff --git a/DEPLOY.md b/DEPLOY.md index 6a09623..e2334f1 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -179,7 +179,7 @@ let Result = Abra.Output() //获取输出 ```shell -echo '{"method":"NEXT","mode":"ENCRYPT","inputType":"TEXT","outputType":"TEXT","input":"测试","key":"ABRACADABRA","q":true,"r":50}' | wasmtime abracadabra-cn.wasm +echo '{"method":"NEXT","mode":"ENCRYPT","inputType":"TEXT","outputType":"TEXT","input":"愿青空的祝福,与我的羽翼同在","key":"ABRACADABRA","q":true,"r":50,"p":false,"l":false}' | wasmtime abracadabra-cn.wasm ``` diff --git a/README.md b/README.md index 6020693..b002a8d 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ import { Abracadabra } from "abracadabra-cn"; ```shell -echo '{"method":"NEXT","mode":"ENCRYPT","inputType":"TEXT","outputType":"TEXT","input":"测试","key":"ABRACADABRA","q":true,"r":50}' | wasmtime abracadabra-cn.wasm +echo '{"method":"NEXT","mode":"ENCRYPT","inputType":"TEXT","outputType":"TEXT","input":"愿青空的祝福,与我的羽翼同在","key":"ABRACADABRA","q":true,"r":50,"p":false,"l":false}' | wasmtime abracadabra-cn.wasm ``` diff --git a/docs/assets/index-Y14zB65A.js b/docs/assets/index-DzyBey0l.js similarity index 56% rename from docs/assets/index-Y14zB65A.js rename to docs/assets/index-DzyBey0l.js index df40ce3..ba13e46 100644 --- a/docs/assets/index-Y14zB65A.js +++ b/docs/assets/index-DzyBey0l.js @@ -2,87 +2,87 @@ * @vue/shared v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Gi(e,t){const i=new Set(e.split(","));return t?r=>i.has(r.toLowerCase()):r=>i.has(r)}const Fe={},wo=[],Nt=()=>{},xc=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kp=e=>e.startsWith("onUpdate:"),Be=Object.assign,Cp=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},M4=Object.prototype.hasOwnProperty,Ve=(e,t)=>M4.call(e,t),ne=Array.isArray,_o=e=>ra(e)==="[object Map]",Gs=e=>ra(e)==="[object Set]",lm=e=>ra(e)==="[object Date]",V4=e=>ra(e)==="[object RegExp]",ge=e=>typeof e=="function",Ae=e=>typeof e=="string",dr=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ap=e=>(We(e)||ge(e))&&ge(e.then)&&ge(e.catch),Lv=Object.prototype.toString,ra=e=>Lv.call(e),F4=e=>ra(e).slice(8,-1),Bv=e=>ra(e)==="[object Object]",Ep=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z4=Gi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Nd=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},H4=/-(\w)/g,lt=Nd(e=>e.replace(H4,(t,i)=>i?i.toUpperCase():"")),U4=/\B([A-Z])/g,Wi=Nd(e=>e.replace(U4,"-$1").toLowerCase()),Qs=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Nd(e=>e?`on${Qs(e)}`:""),Cr=(e,t)=>!Object.is(e,t),Co=(e,...t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})},Hc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uc=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let cm;const Mv=()=>cm||(cm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),K4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",W4=Gi(K4);function Os(e){if(ne(e)){const t={};for(let i=0;i{if(i){const r=i.split(j4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Il(e){let t="";if(Ae(e))t=e;else if(ne(e))for(let i=0;iVn(i,t))}const zv=e=>Ae(e)?e:e==null?"":ne(e)||We(e)&&(e.toString===Lv||!ge(e.toString))?JSON.stringify(e,Hv,2):String(e),Hv=(e,t)=>t&&t.__v_isRef?Hv(e,t.value):_o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,n],s)=>(i[lu(r,s)+" =>"]=n,i),{})}:Gs(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>lu(i))}:dr(t)?lu(t):We(t)&&!ne(t)&&!Bv(t)?String(t):t,lu=(e,t="")=>{var i;return dr(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Ji(e,t){const i=new Set(e.split(","));return t?r=>i.has(r.toLowerCase()):r=>i.has(r)}const ze={},wo=[],Pt=()=>{},Sc=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cp=e=>e.startsWith("onUpdate:"),Oe=Object.assign,kp=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},V4=Object.prototype.hasOwnProperty,Fe=(e,t)=>V4.call(e,t),se=Array.isArray,_o=e=>ra(e)==="[object Map]",Gs=e=>ra(e)==="[object Set]",lm=e=>ra(e)==="[object Date]",F4=e=>ra(e)==="[object RegExp]",ve=e=>typeof e=="function",Ae=e=>typeof e=="string",hr=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",Ap=e=>(je(e)||ve(e))&&ve(e.then)&&ve(e.catch),Bv=Object.prototype.toString,ra=e=>Bv.call(e),z4=e=>ra(e).slice(8,-1),Lv=e=>ra(e)==="[object Object]",Ep=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pn=Ji(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),H4=Ji("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Rd=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},U4=/-(\w)/g,ut=Rd(e=>e.replace(U4,(t,i)=>i?i.toUpperCase():"")),K4=/\B([A-Z])/g,qi=Rd(e=>e.replace(K4,"-$1").toLowerCase()),Qs=Rd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=Rd(e=>e?`on${Qs(e)}`:""),Er=(e,t)=>!Object.is(e,t),ko=(e,...t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})},Uc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kc=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let cm;const Mv=()=>cm||(cm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),W4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",j4=Ji(W4);function Os(e){if(se(e)){const t={};for(let i=0;i{if(i){const r=i.split(Y4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Il(e){let t="";if(Ae(e))t=e;else if(se(e))for(let i=0;iFn(i,t))}const zv=e=>Ae(e)?e:e==null?"":se(e)||je(e)&&(e.toString===Bv||!ve(e.toString))?JSON.stringify(e,Hv,2):String(e),Hv=(e,t)=>t&&t.__v_isRef?Hv(e,t.value):_o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,n],s)=>(i[lu(r,s)+" =>"]=n,i),{})}:Gs(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>lu(i))}:hr(t)?lu(t):je(t)&&!se(t)&&!Lv(t)?String(t):t,lu=(e,t="")=>{var i;return hr(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/** * @vue/reactivity v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Hi;class xp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hi,!t&&Hi&&(this.index=(Hi.scopes||(Hi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Hi;try{return Hi=this,t()}finally{Hi=i}}}on(){Hi=this}off(){Hi=this.parent}stop(t){if(this._active){let i,r;for(i=0,r=this.effects.length;i=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),jn()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Pn,i=Ns;try{return Pn=!0,Ns=this,this._runnings++,dm(this),this.fn()}finally{um(this),this._runnings--,Ns=i,Pn=t}}stop(){this.active&&(dm(this),um(this),this.onStop&&this.onStop(),this.active=!1)}}function c3(e){return e.value}function dm(e){e._trackId++,e._depsLength=0}function um(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{i.dirty&&i.run()});t&&(Be(i,t),t.scope&&Uv(i,t.scope)),(!t||!t.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function u3(e){e.effect.stop()}let Pn=!0,Lh=0;const qv=[];function qn(){qv.push(Pn),Pn=!1}function jn(){const e=qv.pop();Pn=e===void 0?!0:e}function Sp(){Lh++}function Tp(){for(Lh--;!Lh&&Bh.length;)Bh.shift()()}function jv(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Wv(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Bh=[];function Yv(e,t,i){Sp();for(const r of e.keys()){if(!e.computed&&r.computed&&e.get(r)===r._trackId&&r._runnings>0){r._dirtyLevel=2;continue}let n;r._dirtyLevel{const i=new Map;return i.cleanup=e,i.computed=t,i},Kc=new WeakMap,Rs=Symbol(""),Oh=Symbol("");function Pi(e,t,i){if(Pn&&Ns){let r=Kc.get(e);r||Kc.set(e,r=new Map);let n=r.get(i);n||r.set(i,n=Xv(()=>r.delete(i))),jv(Ns,n)}}function nn(e,t,i,r,n,s){const o=Kc.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(i==="length"&&ne(e)){const l=Number(r);o.forEach((c,d)=>{(d==="length"||!dr(d)&&d>=l)&&a.push(c)})}else switch(i!==void 0&&a.push(o.get(i)),t){case"add":ne(e)?Ep(i)&&a.push(o.get("length")):(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"delete":ne(e)||(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"set":_o(e)&&a.push(o.get(Rs));break}Sp();for(const l of a)l&&Yv(l,5);Tp()}function h3(e,t){const i=Kc.get(e);return i&&i.get(t)}const f3=Gi("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dr)),hm=p3();function p3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const r=Oe(this);for(let s=0,o=this.length;s{e[t]=function(...i){qn(),Sp();const r=Oe(this)[t].apply(this,i);return Tp(),jn(),r}}),e}function m3(e){dr(e)||(e=String(e));const t=Oe(this);return Pi(t,"has",e),t.hasOwnProperty(e)}class Gv{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,r){const n=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return s;if(i==="__v_raw")return r===(n?s?r2:i2:s?t2:e2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ne(t);if(!n){if(o&&Ve(hm,i))return Reflect.get(hm,i,r);if(i==="hasOwnProperty")return m3}const a=Reflect.get(t,i,r);return(dr(i)?Zv.has(i):f3(i))||(n||Pi(t,"get",i),s)?a:Xt(a)?o&&Ep(i)?a:a.value:We(a)?n?Rp(a):Pd(a):a}}class Qv extends Gv{constructor(t=!1){super(!1,t)}set(t,i,r,n){let s=t[i];if(!this._isShallow){const l=Bo(s);if(!Ga(r)&&!Bo(r)&&(s=Oe(s),r=Oe(r)),!ne(t)&&Xt(s)&&!Xt(r))return l?!1:(s.value=r,!0)}const o=ne(t)&&Ep(i)?Number(i)e,Id=e=>Reflect.getPrototypeOf(e);function Ql(e,t,i=!1,r=!1){e=e.__v_raw;const n=Oe(e),s=Oe(t);i||(Cr(t,s)&&Pi(n,"get",t),Pi(n,"get",s));const{has:o}=Id(n),a=r?Np:i?$p:Qa;if(o.call(n,t))return a(e.get(t));if(o.call(n,s))return a(e.get(s));e!==n&&e.get(t)}function Jl(e,t=!1){const i=this.__v_raw,r=Oe(i),n=Oe(e);return t||(Cr(e,n)&&Pi(r,"has",e),Pi(r,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function ec(e,t=!1){return e=e.__v_raw,!t&&Pi(Oe(e),"iterate",Rs),Reflect.get(e,"size",e)}function fm(e){e=Oe(e);const t=Oe(this);return Id(t).has.call(t,e)||(t.add(e),nn(t,"add",e,e)),this}function pm(e,t){t=Oe(t);const i=Oe(this),{has:r,get:n}=Id(i);let s=r.call(i,e);s||(e=Oe(e),s=r.call(i,e));const o=n.call(i,e);return i.set(e,t),s?Cr(t,o)&&nn(i,"set",e,t):nn(i,"add",e,t),this}function mm(e){const t=Oe(this),{has:i,get:r}=Id(t);let n=i.call(t,e);n||(e=Oe(e),n=i.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return n&&nn(t,"delete",e,void 0),s}function gm(){const e=Oe(this),t=e.size!==0,i=e.clear();return t&&nn(e,"clear",void 0,void 0),i}function tc(e,t){return function(r,n){const s=this,o=s.__v_raw,a=Oe(o),l=t?Np:e?$p:Qa;return!e&&Pi(a,"iterate",Rs),o.forEach((c,d)=>r.call(n,l(c),l(d),s))}}function ic(e,t,i){return function(...r){const n=this.__v_raw,s=Oe(n),o=_o(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=n[e](...r),d=i?Np:t?$p:Qa;return!t&&Pi(s,"iterate",l?Oh:Rs),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function w3(){const e={get(s){return Ql(this,s)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!1)},t={get(s){return Ql(this,s,!1,!0)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!0)},i={get(s){return Ql(this,s,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!1)},r={get(s){return Ql(this,s,!0,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ic(s,!1,!1),i[s]=ic(s,!0,!1),t[s]=ic(s,!1,!0),r[s]=ic(s,!0,!0)}),[e,i,t,r]}const[_3,k3,C3,A3]=w3();function $d(e,t){const i=t?e?A3:C3:e?k3:_3;return(r,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Ve(i,n)&&n in r?i:r,n,s)}const E3={get:$d(!1,!1)},x3={get:$d(!1,!0)},S3={get:$d(!0,!1)},T3={get:$d(!0,!0)},e2=new WeakMap,t2=new WeakMap,i2=new WeakMap,r2=new WeakMap;function N3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function R3(e){return e.__v_skip||!Object.isExtensible(e)?0:N3(F4(e))}function Pd(e){return Bo(e)?e:Dd(e,!1,g3,E3,e2)}function n2(e){return Dd(e,!1,y3,x3,t2)}function Rp(e){return Dd(e,!0,v3,S3,i2)}function I3(e){return Dd(e,!0,b3,T3,r2)}function Dd(e,t,i,r,n){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=n.get(e);if(s)return s;const o=R3(e);if(o===0)return e;const a=new Proxy(e,o===2?r:i);return n.set(e,a),a}function Ao(e){return Bo(e)?Ao(e.__v_raw):!!(e&&e.__v_isReactive)}function Bo(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Ip(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function s2(e){return Object.isExtensible(e)&&Ov(e,"__v_skip",!0),e}const Qa=e=>We(e)?Pd(e):e,$p=e=>We(e)?Rp(e):e;class o2{constructor(t,i,r,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Lo(()=>t(this._value),()=>Eo(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Oe(this);return(!t._cacheable||t.effect.dirty)&&Cr(t._value,t._value=t.effect.run())&&Eo(t,5),Pp(t),t.effect._dirtyLevel>=2&&Eo(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function $3(e,t,i=!1){let r,n;const s=ge(e);return s?(r=e,n=Nt):(r=e.get,n=e.set),new o2(r,n,s||!n,i)}function Pp(e){var t;Pn&&Ns&&(e=Oe(e),jv(Ns,(t=e.dep)!=null?t:e.dep=Xv(()=>e.dep=void 0,e instanceof o2?e:void 0)))}function Eo(e,t=5,i,r){e=Oe(e);const n=e.dep;n&&Yv(n,t)}function Xt(e){return!!(e&&e.__v_isRef===!0)}function dt(e){return a2(e,!1)}function P3(e){return a2(e,!0)}function a2(e,t){return Xt(e)?e:new D3(e,t)}class D3{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Oe(t),this._value=i?t:Qa(t)}get value(){return Pp(this),this._value}set value(t){const i=this.__v_isShallow||Ga(t)||Bo(t);t=i?t:Oe(t),Cr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=i?t:Qa(t),Eo(this,5))}}function L3(e){Eo(e,5)}function Dp(e){return Xt(e)?e.value:e}function B3(e){return ge(e)?e():Dp(e)}const O3={get:(e,t,i)=>Dp(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const n=e[t];return Xt(n)&&!Xt(i)?(n.value=i,!0):Reflect.set(e,t,i,r)}};function Lp(e){return Ao(e)?e:new Proxy(e,O3)}class M3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:i,set:r}=t(()=>Pp(this),()=>Eo(this));this._get=i,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function l2(e){return new M3(e)}function V3(e){const t=ne(e)?new Array(e.length):{};for(const i in e)t[i]=c2(e,i);return t}class F3{constructor(t,i,r){this._object=t,this._key=i,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return h3(Oe(this._object),this._key)}}class z3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function H3(e,t,i){return Xt(e)?e:ge(e)?new z3(e):We(e)&&arguments.length>1?c2(e,t,i):dt(e)}function c2(e,t,i){const r=e[t];return Xt(r)?r:new F3(e,t,i)}const U3={GET:"get",HAS:"has",ITERATE:"iterate"},K3={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** +**/let Ki;class xp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ki,!t&&Ki&&(this.index=(Ki.scopes||(Ki.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Ki;try{return Ki=this,t()}finally{Ki=i}}}on(){Ki=this}off(){Ki=this.parent}stop(t){if(this._active){let i,r;for(i=0,r=this.effects.length;i=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Yn()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Dn,i=Ts;try{return Dn=!0,Ts=this,this._runnings++,dm(this),this.fn()}finally{um(this),this._runnings--,Ts=i,Dn=t}}stop(){this.active&&(dm(this),um(this),this.onStop&&this.onStop(),this.active=!1)}}function d3(e){return e.value}function dm(e){e._trackId++,e._depsLength=0}function um(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{i.dirty&&i.run()});t&&(Oe(i,t),t.scope&&Uv(i,t.scope)),(!t||!t.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function h3(e){e.effect.stop()}let Dn=!0,Bh=0;const jv=[];function qn(){jv.push(Dn),Dn=!1}function Yn(){const e=jv.pop();Dn=e===void 0?!0:e}function Sp(){Bh++}function Np(){for(Bh--;!Bh&&Lh.length;)Lh.shift()()}function qv(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Wv(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Lh=[];function Yv(e,t,i){Sp();for(const r of e.keys()){if(!e.computed&&r.computed&&e.get(r)===r._trackId&&r._runnings>0){r._dirtyLevel=2;continue}let n;r._dirtyLevel{const i=new Map;return i.cleanup=e,i.computed=t,i},Wc=new WeakMap,Rs=Symbol(""),Oh=Symbol("");function Bi(e,t,i){if(Dn&&Ts){let r=Wc.get(e);r||Wc.set(e,r=new Map);let n=r.get(i);n||r.set(i,n=Xv(()=>r.delete(i))),qv(Ts,n)}}function sn(e,t,i,r,n,s){const o=Wc.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(i==="length"&&se(e)){const l=Number(r);o.forEach((c,d)=>{(d==="length"||!hr(d)&&d>=l)&&a.push(c)})}else switch(i!==void 0&&a.push(o.get(i)),t){case"add":se(e)?Ep(i)&&a.push(o.get("length")):(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"delete":se(e)||(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"set":_o(e)&&a.push(o.get(Rs));break}Sp();for(const l of a)l&&Yv(l,5);Np()}function f3(e,t){const i=Wc.get(e);return i&&i.get(t)}const p3=Ji("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr)),hm=m3();function m3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const r=Me(this);for(let s=0,o=this.length;s{e[t]=function(...i){qn(),Sp();const r=Me(this)[t].apply(this,i);return Np(),Yn(),r}}),e}function g3(e){hr(e)||(e=String(e));const t=Me(this);return Bi(t,"has",e),t.hasOwnProperty(e)}class Gv{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,r){const n=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return s;if(i==="__v_raw")return r===(n?s?r2:i2:s?t2:e2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=se(t);if(!n){if(o&&Fe(hm,i))return Reflect.get(hm,i,r);if(i==="hasOwnProperty")return g3}const a=Reflect.get(t,i,r);return(hr(i)?Zv.has(i):p3(i))||(n||Bi(t,"get",i),s)?a:Jt(a)?o&&Ep(i)?a:a.value:je(a)?n?Rp(a):Dd(a):a}}class Qv extends Gv{constructor(t=!1){super(!1,t)}set(t,i,r,n){let s=t[i];if(!this._isShallow){const l=Lo(s);if(!Ga(r)&&!Lo(r)&&(s=Me(s),r=Me(r)),!se(t)&&Jt(s)&&!Jt(r))return l?!1:(s.value=r,!0)}const o=se(t)&&Ep(i)?Number(i)e,$d=e=>Reflect.getPrototypeOf(e);function Jl(e,t,i=!1,r=!1){e=e.__v_raw;const n=Me(e),s=Me(t);i||(Er(t,s)&&Bi(n,"get",t),Bi(n,"get",s));const{has:o}=$d(n),a=r?Tp:i?$p:Qa;if(o.call(n,t))return a(e.get(t));if(o.call(n,s))return a(e.get(s));e!==n&&e.get(t)}function ec(e,t=!1){const i=this.__v_raw,r=Me(i),n=Me(e);return t||(Er(e,n)&&Bi(r,"has",e),Bi(r,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function tc(e,t=!1){return e=e.__v_raw,!t&&Bi(Me(e),"iterate",Rs),Reflect.get(e,"size",e)}function fm(e){e=Me(e);const t=Me(this);return $d(t).has.call(t,e)||(t.add(e),sn(t,"add",e,e)),this}function pm(e,t){t=Me(t);const i=Me(this),{has:r,get:n}=$d(i);let s=r.call(i,e);s||(e=Me(e),s=r.call(i,e));const o=n.call(i,e);return i.set(e,t),s?Er(t,o)&&sn(i,"set",e,t):sn(i,"add",e,t),this}function mm(e){const t=Me(this),{has:i,get:r}=$d(t);let n=i.call(t,e);n||(e=Me(e),n=i.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return n&&sn(t,"delete",e,void 0),s}function gm(){const e=Me(this),t=e.size!==0,i=e.clear();return t&&sn(e,"clear",void 0,void 0),i}function ic(e,t){return function(r,n){const s=this,o=s.__v_raw,a=Me(o),l=t?Tp:e?$p:Qa;return!e&&Bi(a,"iterate",Rs),o.forEach((c,d)=>r.call(n,l(c),l(d),s))}}function rc(e,t,i){return function(...r){const n=this.__v_raw,s=Me(n),o=_o(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=n[e](...r),d=i?Tp:t?$p:Qa;return!t&&Bi(s,"iterate",l?Oh:Rs),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _3(){const e={get(s){return Jl(this,s)},get size(){return tc(this)},has:ec,add:fm,set:pm,delete:mm,clear:gm,forEach:ic(!1,!1)},t={get(s){return Jl(this,s,!1,!0)},get size(){return tc(this)},has:ec,add:fm,set:pm,delete:mm,clear:gm,forEach:ic(!1,!0)},i={get(s){return Jl(this,s,!0)},get size(){return tc(this,!0)},has(s){return ec.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:ic(!0,!1)},r={get(s){return Jl(this,s,!0,!0)},get size(){return tc(this,!0)},has(s){return ec.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:ic(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=rc(s,!1,!1),i[s]=rc(s,!0,!1),t[s]=rc(s,!1,!0),r[s]=rc(s,!0,!0)}),[e,i,t,r]}const[C3,k3,A3,E3]=_3();function Pd(e,t){const i=t?e?E3:A3:e?k3:C3;return(r,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Fe(i,n)&&n in r?i:r,n,s)}const x3={get:Pd(!1,!1)},S3={get:Pd(!1,!0)},N3={get:Pd(!0,!1)},T3={get:Pd(!0,!0)},e2=new WeakMap,t2=new WeakMap,i2=new WeakMap,r2=new WeakMap;function R3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function I3(e){return e.__v_skip||!Object.isExtensible(e)?0:R3(z4(e))}function Dd(e){return Lo(e)?e:Bd(e,!1,v3,x3,e2)}function n2(e){return Bd(e,!1,b3,S3,t2)}function Rp(e){return Bd(e,!0,y3,N3,i2)}function $3(e){return Bd(e,!0,w3,T3,r2)}function Bd(e,t,i,r,n){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=n.get(e);if(s)return s;const o=I3(e);if(o===0)return e;const a=new Proxy(e,o===2?r:i);return n.set(e,a),a}function Ao(e){return Lo(e)?Ao(e.__v_raw):!!(e&&e.__v_isReactive)}function Lo(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Ip(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function s2(e){return Object.isExtensible(e)&&Ov(e,"__v_skip",!0),e}const Qa=e=>je(e)?Dd(e):e,$p=e=>je(e)?Rp(e):e;class o2{constructor(t,i,r,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Bo(()=>t(this._value),()=>Eo(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Me(this);return(!t._cacheable||t.effect.dirty)&&Er(t._value,t._value=t.effect.run())&&Eo(t,5),Pp(t),t.effect._dirtyLevel>=2&&Eo(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function P3(e,t,i=!1){let r,n;const s=ve(e);return s?(r=e,n=Pt):(r=e.get,n=e.set),new o2(r,n,s||!n,i)}function Pp(e){var t;Dn&&Ts&&(e=Me(e),qv(Ts,(t=e.dep)!=null?t:e.dep=Xv(()=>e.dep=void 0,e instanceof o2?e:void 0)))}function Eo(e,t=5,i,r){e=Me(e);const n=e.dep;n&&Yv(n,t)}function Jt(e){return!!(e&&e.__v_isRef===!0)}function it(e){return a2(e,!1)}function D3(e){return a2(e,!0)}function a2(e,t){return Jt(e)?e:new B3(e,t)}class B3{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Me(t),this._value=i?t:Qa(t)}get value(){return Pp(this),this._value}set value(t){const i=this.__v_isShallow||Ga(t)||Lo(t);t=i?t:Me(t),Er(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=i?t:Qa(t),Eo(this,5))}}function L3(e){Eo(e,5)}function Dp(e){return Jt(e)?e.value:e}function O3(e){return ve(e)?e():Dp(e)}const M3={get:(e,t,i)=>Dp(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const n=e[t];return Jt(n)&&!Jt(i)?(n.value=i,!0):Reflect.set(e,t,i,r)}};function Bp(e){return Ao(e)?e:new Proxy(e,M3)}class V3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:i,set:r}=t(()=>Pp(this),()=>Eo(this));this._get=i,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function l2(e){return new V3(e)}function F3(e){const t=se(e)?new Array(e.length):{};for(const i in e)t[i]=c2(e,i);return t}class z3{constructor(t,i,r){this._object=t,this._key=i,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return f3(Me(this._object),this._key)}}class H3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function U3(e,t,i){return Jt(e)?e:ve(e)?new H3(e):je(e)&&arguments.length>1?c2(e,t,i):it(e)}function c2(e,t,i){const r=e[t];return Jt(r)?r:new z3(e,t,i)}const K3={GET:"get",HAS:"has",ITERATE:"iterate"},W3={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function W3(e,t){}const q3={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},j3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function sn(e,t,i,r){try{return r?e(...r):e()}catch(n){Js(n,t,i)}}function ji(e,t,i,r){if(ge(e)){const n=sn(e,t,i,r);return n&&Ap(n)&&n.catch(s=>{Js(s,t,i)}),n}if(ne(e)){const n=[];for(let s=0;s>>1,n=ai[r],s=el(n);sIr&&ai.splice(t,1)}function Wc(e){ne(e)?xo.push(...e):(!Cn||!Cn.includes(e,e.allowRecurse?os+1:os))&&xo.push(e),u2()}function vm(e,t,i=Ja?Ir+1:0){for(;iel(i)-el(r));if(xo.length=0,Cn){Cn.push(...t);return}for(Cn=t,os=0;ose.id==null?1/0:e.id,G3=(e,t)=>{const i=el(e)-el(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function h2(e){Mh=!1,Ja=!0,ai.sort(G3);try{for(Ir=0;Irgo.emit(n,...s)),rc=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{f2(s,t)}),setTimeout(()=>{go||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rc=[])},3e3)):rc=[]}function Q3(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||Fe;h&&(n=i.map(f=>Ae(f)?f.trim():f)),u&&(n=i.map(Hc))}let a,l=r[a=ko(t)]||r[a=ko(lt(t))];!l&&s&&(l=r[a=ko(Wi(t))]),l&&ji(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ji(c,e,6,n)}}function p2(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!ge(e)){const l=c=>{const d=p2(c,t,!0);d&&(a=!0,Be(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(We(e)&&r.set(e,null),null):(ne(s)?s.forEach(l=>o[l]=null):Be(o,s),We(e)&&r.set(e,o),o)}function Od(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Wi(t))||Ve(e,t))}let Rt=null,Md=null;function tl(e){const t=Rt;return Rt=e,Md=e&&e.type.__scopeId||null,t}function J3(e){Md=e}function e6(){Md=null}const t6=e=>ls;function ls(e,t=Rt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&jh(-1);const s=tl(t);let o;try{o=e(...n)}finally{tl(s),r._d&&jh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Sc(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:m,inheritAttrs:b}=e,w=tl(e);let _,g;try{if(i.shapeFlag&4){const y=n||r,C=y;_=Ki(c.call(C,y,d,u,f,h,m)),g=a}else{const y=t;_=Ki(y.length>1?y(u,{attrs:a,slots:o,emit:l}):y(u,null)),g=t.props?a:r6(a)}}catch(y){$a.length=0,Js(y,e,1),_=Ue(zt)}let p=_;if(g&&b!==!1){const y=Object.keys(g),{shapeFlag:C}=p;y.length&&C&7&&(s&&y.some(kp)&&(g=n6(g,s)),p=Br(p,g,!1,!0))}return i.dirs&&(p=Br(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),_=p,tl(w),_}function i6(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||Zs(i))&&((t||(t={}))[i]=e[i]);return t},n6=(e,t)=>{const i={};for(const r in e)(!kp(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function s6(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?ym(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let Fh=0;const d6={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)h6(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}f6(e,t,i,r,n,o,a,l,c)}},hydrate:p6,create:Fp,normalize:m6},u6=d6;function il(e,t){const i=e.props&&e.props[t];ge(i)&&i()}function h6(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Fp(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(il(e,"onPending"),il(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),So(h,e.ssFallback)):h.resolve(!1,!0)}function f6(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:b,isInFallback:w,isHydrating:_}=u;if(b)u.pendingBranch=h,wr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():w&&(_||(l(m,f,i,r,n,null,s,o,a),So(u,f)))):(u.pendingId=Fh++,_?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),w?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(m,f,i,r,n,null,s,o,a),So(u,f))):m&&wr(h,m)?(l(m,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(m&&wr(h,m))l(m,h,i,r,n,u,s,o,a),So(u,h);else if(il(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=Fh++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:g,pendingId:p}=u;g>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},g):g===0&&u.fallback(f)}}function Fp(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:m,o:{parentNode:b,remove:w}}=c;let _;const g=g6(e);g&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const p=e.props?Uc(e.props.timeout):void 0,y=s,C={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:Fh++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:x,activeBranch:S,pendingBranch:k,pendingId:N,effects:I,parentComponent:T,container:P}=C;let O=!1;C.isHydrating?C.isHydrating=!1:E||(O=S&&k.transition&&k.transition.mode==="out-in",O&&(S.transition.afterLeave=()=>{N===C.pendingId&&(h(k,P,s===y?m(S):s,0),Wc(I))}),S&&(b(S.el)!==C.hiddenContainer&&(s=m(S)),f(S,T,C,!0)),O||h(k,P,s,0)),So(C,k),C.pendingBranch=null,C.isInFallback=!1;let M=C.parent,H=!1;for(;M;){if(M.pendingBranch){M.effects.push(...I),H=!0;break}M=M.parent}!H&&!O&&Wc(I),C.effects=[],g&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),il(x,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:S,container:k,namespace:N}=C;il(A,"onFallback");const I=m(x),T=()=>{C.isInFallback&&(u(null,E,k,I,S,null,N,a,l),So(C,E))},P=E.transition&&E.transition.mode==="out-in";P&&(x.transition.afterLeave=T),C.isInFallback=!0,f(x,S,null,!0),P||T()},move(E,A,x){C.activeBranch&&h(C.activeBranch,E,A,x),C.container=E},next(){return C.activeBranch&&m(C.activeBranch)},registerDep(E,A,x){const S=!!C.pendingBranch;S&&C.deps++;const k=E.vnode.el;E.asyncDep.catch(N=>{Js(N,E,0)}).then(N=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:I}=E;Zh(E,N,!1),k&&(I.el=k);const T=!k&&E.subTree.el;A(E,I,b(k||E.subTree.el),k?null:m(E.subTree),C,o,x),T&&w(T),Op(E,I.el),S&&--C.deps===0&&C.resolve()})},unmount(E,A){C.isUnmounted=!0,C.activeBranch&&f(C.activeBranch,i,E,A),C.pendingBranch&&f(C.pendingBranch,i,E,A)}};return C}function p6(e,t,i,r,n,s,o,a,l){const c=t.suspense=Fp(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function m6(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=wm(r?i.default:i),e.ssFallback=r?wm(i.fallback):Ue(zt)}function wm(e){let t;if(ge(e)){const i=Vs&&e._c;i&&(e._d=!1,vi()),e=e(),i&&(e._d=!0,t=Ni,J2())}return ne(e)&&(e=i6(e)),e=Ki(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function g2(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Wc(e)}function So(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,Op(r,n))}function g6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Vd(e,t,i=Tt,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{qn();const a=Fs(i),l=ji(t,i,e,o);return a(),jn(),l});return r?n.unshift(s):n.push(s),s}}const un=e=>(t,i=Tt)=>{(!Ll||e==="sp")&&Vd(e,(...r)=>t(...r),i)},zp=un("bm"),hn=un("m"),v2=un("bu"),Fd=un("u"),$l=un("bum"),zd=un("um"),y2=un("sp"),b2=un("rtg"),w2=un("rtc");function _2(e,t=Tt){Vd("ec",e,t)}function v6(e,t){if(Rt===null)return e;const i=Bl(Rt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Hp(e,t){return ge(e)?Be({name:e.name},t,{setup:e}):e}const Is=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function w6(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((b,w)=>{a(m,()=>b(u()),()=>w(m),d+1)});throw m}).then(m=>f!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Hp({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=Tt;if(c)return()=>cu(c,f);const m=g=>{l=null,Js(g,f,13,!r)};if(o&&f.suspense||Ll)return h().then(g=>()=>cu(g,f)).catch(g=>(m(g),()=>r?Ue(r,{error:g}):null));const b=dt(!1),w=dt(),_=dt(!!n);return n&&setTimeout(()=>{_.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const g=new Error(`Async component timed out after ${s}ms.`);m(g),w.value=g}},s),h().then(()=>{b.value=!0,f.parent&&Dl(f.parent.vnode)&&(f.parent.effect.dirty=!0,Bd(f.parent.update))}).catch(g=>{m(g),w.value=g}),()=>{if(b.value&&c)return cu(c,f);if(w.value&&r)return Ue(r,{error:w.value});if(i&&!_.value)return Ue(i)}}})}function cu(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ue(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function k2(e,t,i={},r,n){if(Rt.isCE||Rt.parent&&Is(Rt.parent)&&Rt.parent.isCE)return t!=="default"&&(i.name=t),Ue("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),vi();const o=s&&C2(s(i)),a=nl(xt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function C2(e){return e.some(t=>zn(t)?!(t.type===zt||t.type===xt&&!C2(t.children)):!0)?e:null}function _6(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:ko(r)]=e[r];return i}const zh=e=>e?sy(e)?Bl(e):zh(e.parent):null,Na=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zh(e.parent),$root:e=>zh(e.root),$emit:e=>e.emit,$options:e=>Up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bd(e.update)}),$nextTick:e=>e.n||(e.n=Ld.bind(e.proxy)),$watch:e=>e8.bind(e)}),du=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Ve(e,t),Hh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(du(r,t))return o[t]=1,r[t];if(n!==Fe&&Ve(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Ve(c,t))return o[t]=3,s[t];if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];Uh&&(o[t]=0)}}const d=Na[t];let u,h;if(d)return t==="$attrs"&&Pi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Ve(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return du(n,t)?(n[t]=i,!0):r!==Fe&&Ve(r,t)?(r[t]=i,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==Fe&&Ve(e,o)||du(t,o)||(a=s[0])&&Ve(a,o)||Ve(r,o)||Ve(Na,o)||Ve(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Ve(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},k6=Be({},Hh,{get(e,t){if(t!==Symbol.unscopables)return Hh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!W4(t)}});function C6(){return null}function A6(){return null}function E6(e){}function x6(e){}function S6(){return null}function T6(){}function N6(e,t){return null}function R6(){return A2().slots}function I6(){return A2().attrs}function A2(){const e=fn();return e.setupContext||(e.setupContext=cy(e))}function rl(e){return ne(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function $6(e,t){const i=rl(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?ne(n)||ge(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function P6(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):Be({},rl(e),rl(t))}function D6(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function L6(e){const t=fn();let i=e();return Xh(),Ap(i)&&(i=i.catch(r=>{throw Fs(t),r})),[i,()=>Fs(t)]}let Uh=!0;function B6(e){const t=Up(e),i=e.proxy,r=e.ctx;Uh=!1,t.beforeCreate&&_m(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:m,activated:b,deactivated:w,beforeDestroy:_,beforeUnmount:g,destroyed:p,unmounted:y,render:C,renderTracked:E,renderTriggered:A,errorCaptured:x,serverPrefetch:S,expose:k,inheritAttrs:N,components:I,directives:T,filters:P}=t;if(c&&O6(c,r,null),o)for(const H in o){const U=o[H];ge(U)&&(r[H]=U.bind(i))}if(n){const H=n.call(i,i);We(H)&&(e.data=Pd(H))}if(Uh=!0,s)for(const H in s){const U=s[H],me=ge(U)?U.bind(i,i):ge(U.get)?U.get.bind(i,i):Nt,ye=!ge(U)&&ge(U.set)?U.set.bind(i):Nt,F=dy({get:me,set:ye});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>F.value,set:W=>F.value=W})}if(a)for(const H in a)E2(a[H],r,i,H);if(l){const H=ge(l)?l.call(i):l;Reflect.ownKeys(H).forEach(U=>{S2(U,H[U])})}d&&_m(d,e,"c");function M(H,U){ne(U)?U.forEach(me=>H(me.bind(i))):U&&H(U.bind(i))}if(M(zp,u),M(hn,h),M(v2,f),M(Fd,m),M(q2,b),M(j2,w),M(_2,x),M(w2,E),M(b2,A),M($l,g),M(zd,y),M(y2,S),ne(k))if(k.length){const H=e.exposed||(e.exposed={});k.forEach(U=>{Object.defineProperty(H,U,{get:()=>i[U],set:me=>i[U]=me})})}else e.exposed||(e.exposed={});C&&e.render===Nt&&(e.render=C),N!=null&&(e.inheritAttrs=N),I&&(e.components=I),T&&(e.directives=T)}function O6(e,t,i=Nt){ne(e)&&(e=Kh(e));for(const r in e){const n=e[r];let s;We(n)?"default"in n?s=Ra(n.from||r,n.default,!0):s=Ra(n.from||r):s=Ra(n),Xt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _m(e,t,i){ji(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function E2(e,t,i,r){const n=r.includes(".")?W2(i,r):()=>i[r];if(Ae(e)){const s=t[e];ge(s)&&No(n,s)}else if(ge(e))No(n,e.bind(i));else if(We(e))if(ne(e))e.forEach(s=>E2(s,t,i,r));else{const s=ge(e.handler)?e.handler.bind(i):t[e.handler];ge(s)&&No(n,s,e)}}function Up(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>jc(l,c,o,!0)),jc(l,t,o)),We(t)&&s.set(t,l),l}function jc(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&jc(e,s,i,!0),n&&n.forEach(o=>jc(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=M6[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const M6={data:km,props:Cm,emits:Cm,methods:wa,computed:wa,beforeCreate:pi,created:pi,beforeMount:pi,mounted:pi,beforeUpdate:pi,updated:pi,beforeDestroy:pi,beforeUnmount:pi,destroyed:pi,unmounted:pi,activated:pi,deactivated:pi,errorCaptured:pi,serverPrefetch:pi,components:wa,directives:wa,watch:F6,provide:km,inject:V6};function km(e,t){return t?e?function(){return Be(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function V6(e,t){return wa(Kh(e),Kh(t))}function Kh(e){if(ne(e)){const t={};for(let i=0;i1)return i&&ge(t)?t.call(r&&r.proxy):t}}function U6(){return!!(Tt||Rt||To)}const T2={},N2=()=>Object.create(T2),R2=e=>Object.getPrototypeOf(e)===T2;function K6(e,t,i,r=!1){const n={},s=N2();e.propsDefaults=Object.create(null),I2(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:n2(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function W6(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Oe(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$2(u,t,!0);Be(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return We(e)&&r.set(e,wo),wo;if(ne(s))for(let d=0;d-1,f[1]=b<0||m-1||Ve(f,"default"))&&a.push(u)}}}const c=[o,a];return We(e)&&r.set(e,c),c}function Am(e){return e[0]!=="$"&&!$n(e)}function Em(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xm(e,t){return Em(e)===Em(t)}function Sm(e,t){return ne(t)?t.findIndex(i=>xm(i,e)):ge(t)&&xm(t,e)?0:-1}const P2=e=>e[0]==="_"||e==="$stable",Kp=e=>ne(e)?e.map(Ki):[Ki(e)],q6=(e,t,i)=>{if(t._n)return t;const r=ls((...n)=>Kp(t(...n)),i);return r._c=!1,r},D2=(e,t,i)=>{const r=e._ctx;for(const n in e){if(P2(n))continue;const s=e[n];if(ge(s))t[n]=q6(n,s,r);else if(s!=null){const o=Kp(s);t[n]=()=>o}}},L2=(e,t)=>{const i=Kp(t);e.slots.default=()=>i},j6=(e,t)=>{const i=e.slots=N2();if(e.vnode.shapeFlag&32){const r=t._;r?(Be(i,t),Ov(i,"_",r,!0)):D2(t,i)}else t&&L2(e,t)},Y6=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Be(n,t),!i&&a===1&&delete n._):(s=!t.$stable,D2(t,n)),o=t}else t&&(L2(e,t),o={default:1});if(s)for(const a in n)!P2(a)&&o[a]==null&&delete n[a]};function Yc(e,t,i,r,n=!1){if(ne(e)){e.forEach((h,f)=>Yc(h,t&&(ne(t)?t[f]:t),i,r,n));return}if(Is(r)&&!n)return;const s=r.shapeFlag&4?Bl(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Fe?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(Ae(c)?(d[c]=null,Ve(u,c)&&(u[c]=null)):Xt(c)&&(c.value=null)),ge(l))sn(l,a,12,[o,d]);else{const h=Ae(l),f=Xt(l);if(h||f){const m=()=>{if(e.f){const b=h?Ve(u,l)?u[l]:d[l]:l.value;n?ne(b)&&Cp(b,s):ne(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Ve(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Ve(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(m.id=-1,Lt(m,i)):m()}}}let Tm=!1;const oo=()=>{Tm||(console.error("Hydration completed but contains mismatches."),Tm=!0)},X6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Z6=e=>e.namespaceURI.includes("MathML"),nc=e=>{if(X6(e))return"svg";if(Z6(e))return"mathml"},sc=e=>e.nodeType===8;function G6(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,y)=>{if(!y.hasChildNodes()){i(null,p,y),qc(),y._vnode=p;return}u(y.firstChild,p,null,null,null),qc(),y._vnode=p},u=(p,y,C,E,A,x=!1)=>{x=x||!!y.dynamicChildren;const S=sc(p)&&p.data==="[",k=()=>b(p,y,C,E,A,S),{type:N,ref:I,shapeFlag:T,patchFlag:P}=y;let O=p.nodeType;y.el=p,P===-2&&(x=!1,y.dynamicChildren=null);let M=null;switch(N){case Ms:O!==3?y.children===""?(l(y.el=n(""),o(p),p),M=p):M=k():(p.data!==y.children&&(oo(),p.data=y.children),M=s(p));break;case zt:g(p)?(M=s(p),_(y.el=p.content.firstChild,p,C)):O!==8||S?M=k():M=s(p);break;case $s:if(S&&(p=s(p),O=p.nodeType),O===1||O===3){M=p;const H=!y.children.length;for(let U=0;U{x=x||!!y.dynamicChildren;const{type:S,props:k,patchFlag:N,shapeFlag:I,dirs:T,transition:P}=y,O=S==="input"||S==="option";if(O||N!==-1){T&&Nr(y,null,C,"created");let M=!1;if(g(p)){M=V2(E,P)&&C&&C.vnode.props&&C.vnode.props.appear;const U=p.content.firstChild;M&&P.beforeEnter(U),_(U,p,C),y.el=p=U}if(I&16&&!(k&&(k.innerHTML||k.textContent))){let U=f(p.firstChild,y,p,C,E,A,x);for(;U;){oo();const me=U;U=U.nextSibling,a(me)}}else I&8&&p.textContent!==y.children&&(oo(),p.textContent=y.children);if(k)if(O||!x||N&48)for(const U in k)(O&&(U.endsWith("value")||U==="indeterminate")||Zs(U)&&!$n(U)||U[0]===".")&&r(p,U,null,k[U],void 0,void 0,C);else k.onClick&&r(p,"onClick",null,k.onClick,void 0,void 0,C);let H;(H=k&&k.onVnodeBeforeMount)&&Si(H,C,y),T&&Nr(y,null,C,"beforeMount"),((H=k&&k.onVnodeMounted)||T||M)&&g2(()=>{H&&Si(H,C,y),M&&P.enter(p),T&&Nr(y,null,C,"mounted")},E)}return p.nextSibling},f=(p,y,C,E,A,x,S)=>{S=S||!!y.dynamicChildren;const k=y.children,N=k.length;for(let I=0;I{const{slotScopeIds:S}=y;S&&(A=A?A.concat(S):S);const k=o(p),N=f(s(p),y,k,C,E,A,x);return N&&sc(N)&&N.data==="]"?s(y.anchor=N):(oo(),l(y.anchor=c("]"),k,N),N)},b=(p,y,C,E,A,x)=>{if(oo(),y.el=null,x){const N=w(p);for(;;){const I=s(p);if(I&&I!==N)a(I);else break}}const S=s(p),k=o(p);return a(p),i(null,y,k,S,C,E,nc(k),A),S},w=(p,y="[",C="]")=>{let E=0;for(;p;)if(p=s(p),p&&sc(p)&&(p.data===y&&E++,p.data===C)){if(E===0)return s(p);E--}return p},_=(p,y,C)=>{const E=y.parentNode;E&&E.replaceChild(p,y);let A=C;for(;A;)A.vnode.el===y&&(A.vnode.el=A.subTree.el=p),A=A.parent},g=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Lt=g2;function B2(e){return M2(e)}function O2(e){return M2(e,G6)}function M2(e,t){const i=Mv();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=Nt,insertStaticContent:m}=e,b=($,L,z,j=null,X=null,J=null,ee=void 0,Q=null,G=!!L.dynamicChildren)=>{if($===L)return;$&&!wr($,L)&&(j=pt($),W($,X,J,!0),$=null),L.patchFlag===-2&&(G=!1,L.dynamicChildren=null);const{type:q,ref:te,shapeFlag:le}=L;switch(q){case Ms:w($,L,z,j);break;case zt:_($,L,z,j);break;case $s:$==null&&g(L,z,j,ee);break;case xt:I($,L,z,j,X,J,ee,Q,G);break;default:le&1?C($,L,z,j,X,J,ee,Q,G):le&6?T($,L,z,j,X,J,ee,Q,G):(le&64||le&128)&&q.process($,L,z,j,X,J,ee,Q,G,ui)}te!=null&&X&&Yc(te,$&&$.ref,J,L||$,!L)},w=($,L,z,j)=>{if($==null)r(L.el=a(L.children),z,j);else{const X=L.el=$.el;L.children!==$.children&&c(X,L.children)}},_=($,L,z,j)=>{$==null?r(L.el=l(L.children||""),z,j):L.el=$.el},g=($,L,z,j)=>{[$.el,$.anchor]=m($.children,L,z,j,$.el,$.anchor)},p=({el:$,anchor:L},z,j)=>{let X;for(;$&&$!==L;)X=h($),r($,z,j),$=X;r(L,z,j)},y=({el:$,anchor:L})=>{let z;for(;$&&$!==L;)z=h($),n($),$=z;n(L)},C=($,L,z,j,X,J,ee,Q,G)=>{L.type==="svg"?ee="svg":L.type==="math"&&(ee="mathml"),$==null?E(L,z,j,X,J,ee,Q,G):S($,L,X,J,ee,Q,G)},E=($,L,z,j,X,J,ee,Q)=>{let G,q;const{props:te,shapeFlag:le,transition:ae,dirs:fe}=$;if(G=$.el=o($.type,J,te&&te.is,te),le&8?d(G,$.children):le&16&&x($.children,G,null,j,X,uu($,J),ee,Q),fe&&Nr($,null,j,"created"),A(G,$,$.scopeId,ee,j),te){for(const Ge in te)Ge!=="value"&&!$n(Ge)&&s(G,Ge,null,te[Ge],J,$.children,j,X,xe);"value"in te&&s(G,"value",null,te.value,J),(q=te.onVnodeBeforeMount)&&Si(q,j,$)}fe&&Nr($,null,j,"beforeMount");const ke=V2(X,ae);ke&&ae.beforeEnter(G),r(G,L,z),((q=te&&te.onVnodeMounted)||ke||fe)&&Lt(()=>{q&&Si(q,j,$),ke&&ae.enter(G),fe&&Nr($,null,j,"mounted")},X)},A=($,L,z,j,X)=>{if(z&&f($,z),j)for(let J=0;J{for(let q=G;q<$.length;q++){const te=$[q]=Q?En($[q]):Ki($[q]);b(null,te,L,z,j,X,J,ee,Q)}},S=($,L,z,j,X,J,ee)=>{const Q=L.el=$.el;let{patchFlag:G,dynamicChildren:q,dirs:te}=L;G|=$.patchFlag&16;const le=$.props||Fe,ae=L.props||Fe;let fe;if(z&&es(z,!1),(fe=ae.onVnodeBeforeUpdate)&&Si(fe,z,L,$),te&&Nr(L,$,z,"beforeUpdate"),z&&es(z,!0),q?k($.dynamicChildren,q,Q,z,j,uu(L,X),J):ee||U($,L,Q,null,z,j,uu(L,X),J,!1),G>0){if(G&16)N(Q,L,le,ae,z,j,X);else if(G&2&&le.class!==ae.class&&s(Q,"class",null,ae.class,X),G&4&&s(Q,"style",le.style,ae.style,X),G&8){const ke=L.dynamicProps;for(let Ge=0;Ge{fe&&Si(fe,z,L,$),te&&Nr(L,$,z,"updated")},j)},k=($,L,z,j,X,J,ee)=>{for(let Q=0;Q{if(z!==j){if(z!==Fe)for(const Q in z)!$n(Q)&&!(Q in j)&&s($,Q,z[Q],null,ee,L.children,X,J,xe);for(const Q in j){if($n(Q))continue;const G=j[Q],q=z[Q];G!==q&&Q!=="value"&&s($,Q,q,G,ee,L.children,X,J,xe)}"value"in j&&s($,"value",z.value,j.value,ee)}},I=($,L,z,j,X,J,ee,Q,G)=>{const q=L.el=$?$.el:a(""),te=L.anchor=$?$.anchor:a("");let{patchFlag:le,dynamicChildren:ae,slotScopeIds:fe}=L;fe&&(Q=Q?Q.concat(fe):fe),$==null?(r(q,z,j),r(te,z,j),x(L.children||[],z,te,X,J,ee,Q,G)):le>0&&le&64&&ae&&$.dynamicChildren?(k($.dynamicChildren,ae,z,X,J,ee,Q),(L.key!=null||X&&L===X.subTree)&&Wp($,L,!0)):U($,L,z,te,X,J,ee,Q,G)},T=($,L,z,j,X,J,ee,Q,G)=>{L.slotScopeIds=Q,$==null?L.shapeFlag&512?X.ctx.activate(L,z,j,ee,G):P(L,z,j,X,J,ee,G):O($,L,G)},P=($,L,z,j,X,J,ee)=>{const Q=$.component=ny($,j,X);if(Dl($)&&(Q.ctx.renderer=ui),oy(Q),Q.asyncDep){if(X&&X.registerDep(Q,M,ee),!$.el){const G=Q.subTree=Ue(zt);_(null,G,L,z)}}else M(Q,$,L,z,X,J,ee)},O=($,L,z)=>{const j=L.component=$.component;if(s6($,L,z))if(j.asyncDep&&!j.asyncResolved){H(j,L,z);return}else j.next=L,Z3(j.update),j.effect.dirty=!0,j.update();else L.el=$.el,j.vnode=L},M=($,L,z,j,X,J,ee)=>{const Q=()=>{if($.isMounted){let{next:te,bu:le,u:ae,parent:fe,vnode:ke}=$;{const tr=F2($);if(tr){te&&(te.el=ke.el,H($,te,ee)),tr.asyncDep.then(()=>{$.isUnmounted||Q()});return}}let Ge=te,Me;es($,!1),te?(te.el=ke.el,H($,te,ee)):te=ke,le&&Co(le),(Me=te.props&&te.props.onVnodeBeforeUpdate)&&Si(Me,fe,te,ke),es($,!0);const mt=Sc($),$t=$.subTree;$.subTree=mt,b($t,mt,u($t.el),pt($t),$,X,J),te.el=mt.el,Ge===null&&Op($,mt.el),ae&&Lt(ae,X),(Me=te.props&&te.props.onVnodeUpdated)&&Lt(()=>Si(Me,fe,te,ke),X)}else{let te;const{el:le,props:ae}=L,{bm:fe,m:ke,parent:Ge}=$,Me=Is(L);if(es($,!1),fe&&Co(fe),!Me&&(te=ae&&ae.onVnodeBeforeMount)&&Si(te,Ge,L),es($,!0),le&&Hr){const mt=()=>{$.subTree=Sc($),Hr(le,$.subTree,$,X,null)};Me?L.type.__asyncLoader().then(()=>!$.isUnmounted&&mt()):mt()}else{const mt=$.subTree=Sc($);b(null,mt,z,j,$,X,J),L.el=mt.el}if(ke&&Lt(ke,X),!Me&&(te=ae&&ae.onVnodeMounted)){const mt=L;Lt(()=>Si(te,Ge,mt),X)}(L.shapeFlag&256||Ge&&Is(Ge.vnode)&&Ge.vnode.shapeFlag&256)&&$.a&&Lt($.a,X),$.isMounted=!0,L=z=j=null}},G=$.effect=new Lo(Q,Nt,()=>Bd(q),$.scope),q=$.update=()=>{G.dirty&&G.run()};q.id=$.uid,es($,!0),q()},H=($,L,z)=>{L.component=$;const j=$.vnode.props;$.vnode=L,$.next=null,W6($,L.props,j,z),Y6($,L.children,z),qn(),vm($),jn()},U=($,L,z,j,X,J,ee,Q,G=!1)=>{const q=$&&$.children,te=$?$.shapeFlag:0,le=L.children,{patchFlag:ae,shapeFlag:fe}=L;if(ae>0){if(ae&128){ye(q,le,z,j,X,J,ee,Q,G);return}else if(ae&256){me(q,le,z,j,X,J,ee,Q,G);return}}fe&8?(te&16&&xe(q,X,J),le!==q&&d(z,le)):te&16?fe&16?ye(q,le,z,j,X,J,ee,Q,G):xe(q,X,J,!0):(te&8&&d(z,""),fe&16&&x(le,z,j,X,J,ee,Q,G))},me=($,L,z,j,X,J,ee,Q,G)=>{$=$||wo,L=L||wo;const q=$.length,te=L.length,le=Math.min(q,te);let ae;for(ae=0;aete?xe($,X,J,!0,!1,le):x(L,z,j,X,J,ee,Q,G,le)},ye=($,L,z,j,X,J,ee,Q,G)=>{let q=0;const te=L.length;let le=$.length-1,ae=te-1;for(;q<=le&&q<=ae;){const fe=$[q],ke=L[q]=G?En(L[q]):Ki(L[q]);if(wr(fe,ke))b(fe,ke,z,null,X,J,ee,Q,G);else break;q++}for(;q<=le&&q<=ae;){const fe=$[le],ke=L[ae]=G?En(L[ae]):Ki(L[ae]);if(wr(fe,ke))b(fe,ke,z,null,X,J,ee,Q,G);else break;le--,ae--}if(q>le){if(q<=ae){const fe=ae+1,ke=feae)for(;q<=le;)W($[q],X,J,!0),q++;else{const fe=q,ke=q,Ge=new Map;for(q=ke;q<=ae;q++){const hi=L[q]=G?En(L[q]):Ki(L[q]);hi.key!=null&&Ge.set(hi.key,q)}let Me,mt=0;const $t=ae-ke+1;let tr=!1,Gl=0;const gn=new Array($t);for(q=0;q<$t;q++)gn[q]=0;for(q=fe;q<=le;q++){const hi=$[q];if(mt>=$t){W(hi,X,J,!0);continue}let ir;if(hi.key!=null)ir=Ge.get(hi.key);else for(Me=ke;Me<=ae;Me++)if(gn[Me-ke]===0&&wr(hi,L[Me])){ir=Me;break}ir===void 0?W(hi,X,J,!0):(gn[ir-ke]=q+1,ir>=Gl?Gl=ir:tr=!0,b(hi,L[ir],z,null,X,J,ee,Q,G),mt++)}const ha=tr?Q6(gn):wo;for(Me=ha.length-1,q=$t-1;q>=0;q--){const hi=ke+q,ir=L[hi],fa=hi+1{const{el:J,type:ee,transition:Q,children:G,shapeFlag:q}=$;if(q&6){F($.component.subTree,L,z,j);return}if(q&128){$.suspense.move(L,z,j);return}if(q&64){ee.move($,L,z,ui);return}if(ee===xt){r(J,L,z);for(let le=0;leQ.enter(J),X);else{const{leave:le,delayLeave:ae,afterLeave:fe}=Q,ke=()=>r(J,L,z),Ge=()=>{le(J,()=>{ke(),fe&&fe()})};ae?ae(J,ke,Ge):Ge()}else r(J,L,z)},W=($,L,z,j=!1,X=!1)=>{const{type:J,props:ee,ref:Q,children:G,dynamicChildren:q,shapeFlag:te,patchFlag:le,dirs:ae,memoIndex:fe}=$;if(Q!=null&&Yc(Q,null,z,$,!0),fe!=null&&(L.renderCache[fe]=void 0),te&256){L.ctx.deactivate($);return}const ke=te&1&&ae,Ge=!Is($);let Me;if(Ge&&(Me=ee&&ee.onVnodeBeforeUnmount)&&Si(Me,L,$),te&6)De($.component,z,j);else{if(te&128){$.suspense.unmount(z,j);return}ke&&Nr($,null,L,"beforeUnmount"),te&64?$.type.remove($,L,z,X,ui,j):q&&(J!==xt||le>0&&le&64)?xe(q,L,z,!1,!0):(J===xt&&le&384||!X&&te&16)&&xe(G,L,z),j&&Z($)}(Ge&&(Me=ee&&ee.onVnodeUnmounted)||ke)&&Lt(()=>{Me&&Si(Me,L,$),ke&&Nr($,null,L,"unmounted")},z)},Z=$=>{const{type:L,el:z,anchor:j,transition:X}=$;if(L===xt){K(z,j);return}if(L===$s){y($);return}const J=()=>{n(z),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if($.shapeFlag&1&&X&&!X.persisted){const{leave:ee,delayLeave:Q}=X,G=()=>ee(z,J);Q?Q($.el,J,G):G()}else J()},K=($,L)=>{let z;for(;$!==L;)z=h($),n($),$=z;n(L)},De=($,L,z)=>{const{bum:j,scope:X,update:J,subTree:ee,um:Q,m:G,a:q}=$;Xc(G),Xc(q),j&&Co(j),X.stop(),J&&(J.active=!1,W(ee,$,L,z)),Q&&Lt(Q,L),Lt(()=>{$.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},xe=($,L,z,j=!1,X=!1,J=0)=>{for(let ee=J;ee<$.length;ee++)W($[ee],L,z,j,X)},pt=$=>$.shapeFlag&6?pt($.component.subTree):$.shapeFlag&128?$.suspense.next():h($.anchor||$.el);let we=!1;const xr=($,L,z)=>{$==null?L._vnode&&W(L._vnode,null,null,!0):b(L._vnode||null,$,L,null,null,null,z),we||(we=!0,vm(),qc(),we=!1),L._vnode=$},ui={p:b,um:W,m:F,r:Z,mt:P,mc:x,pc:U,pbc:k,n:pt,o:e};let Jn,Hr;return t&&([Jn,Hr]=t(ui)),{render:xr,hydrate:Jn,createApp:H6(xr,Jn)}}function uu({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function es({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function V2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wp(e,t,i=!1){const r=e.children,n=t.children;if(ne(r)&&ne(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function F2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:F2(t)}function Xc(e){if(e)for(let t=0;tRa(z2);function J6(e,t){return Pl(e,null,t)}function U2(e,t){return Pl(e,null,{flush:"post"})}function K2(e,t){return Pl(e,null,{flush:"sync"})}const oc={};function No(e,t,i){return Pl(e,t,i)}function Pl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=Fe){if(t&&s){const E=t;t=(...A)=>{E(...A),C()}}const l=Tt,c=E=>r===!0?E:Sn(E,r===!1?1:void 0);let d,u=!1,h=!1;if(Xt(e)?(d=()=>e.value,u=Ga(e)):Ao(e)?(d=()=>c(e),u=!0):ne(e)?(h=!0,u=e.some(E=>Ao(E)||Ga(E)),d=()=>e.map(E=>{if(Xt(E))return E.value;if(Ao(E))return c(E);if(ge(E))return sn(E,l,2)})):ge(e)?t?d=()=>sn(e,l,2):d=()=>(f&&f(),ji(e,l,3,[m])):d=Nt,t&&r){const E=d;d=()=>Sn(E())}let f,m=E=>{f=p.onStop=()=>{sn(E,l,4),f=p.onStop=void 0}},b;if(Ll)if(m=Nt,t?i&&ji(t,l,3,[d(),h?[]:void 0,m]):d(),n==="sync"){const E=H2();b=E.__watcherHandles||(E.__watcherHandles=[])}else return Nt;let w=h?new Array(e.length).fill(oc):oc;const _=()=>{if(!(!p.active||!p.dirty))if(t){const E=p.run();(r||u||(h?E.some((A,x)=>Cr(A,w[x])):Cr(E,w)))&&(f&&f(),ji(t,l,3,[E,w===oc?void 0:h&&w[0]===oc?[]:w,m]),w=E)}else p.run()};_.allowRecurse=!!t;let g;n==="sync"?g=_:n==="post"?g=()=>Lt(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),g=()=>Bd(_));const p=new Lo(d,Nt,g),y=Kv(),C=()=>{p.stop(),y&&Cp(y.effects,p)};return t?i?_():w=p.run():n==="post"?Lt(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(C),C}function e8(e,t,i){const r=this.proxy,n=Ae(e)?e.includes(".")?W2(r,e):()=>r[e]:e.bind(r,r);let s;ge(t)?s=t:(s=t.handler,i=t);const o=Fs(this),a=Pl(n,s.bind(r),i);return o(),a}function W2(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{Sn(r,t,i)});else if(Bv(e)){for(const r in e)Sn(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sn(e[r],t,i)}return e}const Dl=e=>e.type.__isKeepAlive,t8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=fn(),r=i.ctx;if(!r.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(g,p,y,C,E)=>{const A=g.component;c(g,p,y,0,a),l(A.vnode,g,p,y,A,a,C,g.slotScopeIds,E),Lt(()=>{A.isDeactivated=!1,A.a&&Co(A.a);const x=g.props&&g.props.onVnodeMounted;x&&Si(x,A.parent,g)},a)},r.deactivate=g=>{const p=g.component;Xc(p.m),Xc(p.a),c(g,h,null,1,a),Lt(()=>{p.da&&Co(p.da);const y=g.props&&g.props.onVnodeUnmounted;y&&Si(y,p.parent,g),p.isDeactivated=!0},a)};function f(g){hu(g),d(g,i,a,!0)}function m(g){n.forEach((p,y)=>{const C=Qh(p.type);C&&(!g||!g(C))&&b(y)})}function b(g){const p=n.get(g);!o||!wr(p,o)?f(p):o&&hu(o),n.delete(g),s.delete(g)}No(()=>[e.include,e.exclude],([g,p])=>{g&&m(y=>_a(g,y)),p&&m(y=>!_a(p,y))},{flush:"post",deep:!0});let w=null;const _=()=>{w!=null&&(Vh(i.subTree.type)?Lt(()=>{n.set(w,ac(i.subTree))},i.subTree.suspense):n.set(w,ac(i.subTree)))};return hn(_),Fd(_),$l(()=>{n.forEach(g=>{const{subTree:p,suspense:y}=i,C=ac(p);if(g.type===C.type&&g.key===C.key){hu(C);const E=C.component.da;E&&Lt(E,y);return}f(g)})}),()=>{if(w=null,!t.default)return null;const g=t.default(),p=g[0];if(g.length>1)return o=null,g;if(!zn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=ac(p);const C=y.type,E=Qh(Is(y)?y.type.__asyncResolved||{}:C),{include:A,exclude:x,max:S}=e;if(A&&(!E||!_a(A,E))||x&&E&&_a(x,E))return o=y,p;const k=y.key==null?C:y.key,N=n.get(k);return y.el&&(y=Br(y),p.shapeFlag&128&&(p.ssContent=y)),w=k,N?(y.el=N.el,y.component=N.component,y.transition&&Fn(y,y.transition),y.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),S&&s.size>parseInt(S,10)&&b(s.values().next().value)),y.shapeFlag|=256,o=y,Vh(p.type)?p:y}}},i8=t8;function _a(e,t){return ne(e)?e.some(i=>_a(i,t)):Ae(e)?e.split(",").includes(t):V4(e)?e.test(t):!1}function q2(e,t){Y2(e,"a",t)}function j2(e,t){Y2(e,"da",t)}function Y2(e,t,i=Tt){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Vd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)Dl(n.parent.vnode)&&r8(r,t,i,n),n=n.parent}}function r8(e,t,i,r){const n=Vd(t,e,r,!0);zd(()=>{Cp(r[t],n)},i)}function hu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ac(e){return e.shapeFlag&128?e.ssContent:e}const An=Symbol("_leaveCb"),lc=Symbol("_enterCb");function qp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hn(()=>{e.isMounted=!0}),$l(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],jp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},X2=e=>{const t=e.subTree;return t.component?X2(t.component):t},n8={name:"BaseTransition",props:jp,setup(e,{slots:t}){const i=fn(),r=qp();return()=>{const n=t.default&&Hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==zt){s=h;break}}const o=Oe(e),{mode:a}=o;if(r.isLeaving)return fu(s);const l=Nm(s);if(!l)return fu(s);let c=Oo(l,o,r,i,h=>c=h);Fn(l,c);const d=i.subTree,u=d&&Nm(d);if(u&&u.type!==zt&&!wr(l,u)&&X2(i).type!==zt){const h=Oo(u,o,r,i);if(Fn(u,h),a==="out-in"&&l.type!==zt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},fu(s);a==="in-out"&&l.type!==zt&&(h.delayLeave=(f,m,b)=>{const w=G2(r,u);w[String(u.key)]=u,f[An]=()=>{m(),f[An]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},Z2=n8;function G2(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function Oo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:w,onAppear:_,onAfterAppear:g,onAppearCancelled:p}=t,y=String(e.key),C=G2(i,e),E=(S,k)=>{S&&ji(S,r,9,k)},A=(S,k)=>{const N=k[1];E(S,k),ne(S)?S.every(I=>I.length<=1)&&N():S.length<=1&&N()},x={mode:o,persisted:a,beforeEnter(S){let k=l;if(!i.isMounted)if(s)k=w||l;else return;S[An]&&S[An](!0);const N=C[y];N&&wr(e,N)&&N.el[An]&&N.el[An](),E(k,[S])},enter(S){let k=c,N=d,I=u;if(!i.isMounted)if(s)k=_||c,N=g||d,I=p||u;else return;let T=!1;const P=S[lc]=O=>{T||(T=!0,O?E(I,[S]):E(N,[S]),x.delayedLeave&&x.delayedLeave(),S[lc]=void 0)};k?A(k,[S,P]):P()},leave(S,k){const N=String(e.key);if(S[lc]&&S[lc](!0),i.isUnmounting)return k();E(h,[S]);let I=!1;const T=S[An]=P=>{I||(I=!0,k(),P?E(b,[S]):E(m,[S]),S[An]=void 0,C[N]===e&&delete C[N])};C[N]=e,f?A(f,[S,T]):T()},clone(S){const k=Oo(S,t,i,r,n);return n&&n(k),k}};return x}function fu(e){if(Dl(e))return e=Br(e),e.children=null,e}function Nm(e){if(!Dl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&ge(i.default))return i.default()}}function Fn(e,t){e.shapeFlag&6&&e.component?Fn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,Ia=e=>e&&(e.disabled||e.disabled===""),Rm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qh=(e,t)=>{const i=e&&e.to;return Ae(i)?t?t(i):null:i},o8={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:m,createText:b,createComment:w}}=c,_=Ia(t.props);let{shapeFlag:g,children:p,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),E=t.anchor=b("");f(C,i,r),f(E,i,r);const A=t.target=qh(t.props,m),x=t.targetAnchor=b("");A&&(f(x,A),o==="svg"||Rm(A)?o="svg":(o==="mathml"||Im(A))&&(o="mathml"));const S=(k,N)=>{g&16&&d(p,k,N,n,s,o,a,l)};_?S(i,E):A&&S(A,x)}else{t.el=e.el;const C=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,x=Ia(e.props),S=x?i:E,k=x?C:A;if(o==="svg"||Rm(E)?o="svg":(o==="mathml"||Im(E))&&(o="mathml"),y?(h(e.dynamicChildren,y,S,n,s,o,a),Wp(e,t,!0)):l||u(e,t,S,k,n,s,o,a,!1),_)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cc(t,i,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=qh(t.props,m);N&&cc(t,N,null,c,0)}else x&&cc(t,E,A,c,1)}Q2(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!Ia(h);for(let m=0;m0?Ni||wo:null,J2(),Vs>0&&Ni&&Ni.push(e),e}function Pr(e,t,i,r,n,s){return ey(ve(e,t,i,r,n,s,!0))}function nl(e,t,i,r,n){return ey(Ue(e,t,i,r,n,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function wr(e,t){return e.type===t.type&&e.key===t.key}function c8(e){}const ty=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Xt(e)||ge(e)?{i:Rt,r:e,k:t,f:!!i}:e:null);function ve(e,t=null,i=null,r=0,n=null,s=e===xt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ty(t),ref:t&&Tc(t),scopeId:Md,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Rt};return a?(Yp(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=Ae(i)?8:16),Vs>0&&!o&&Ni&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ni.push(l),l}const Ue=d8;function d8(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===m2)&&(e=zt),zn(e)){const a=Br(e,t,!0);return i&&Yp(a,i),Vs>0&&!s&&Ni&&(a.shapeFlag&6?Ni[Ni.indexOf(e)]=a:Ni.push(a)),a.patchFlag=-2,a}if(v8(e)&&(e=e.__vccOpts),t){t=iy(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Il(a)),We(l)&&(Ip(l)&&!ne(l)&&(l=Be({},l)),t.style=Os(l))}const o=Ae(e)?1:Vh(e)?128:s8(e)?64:We(e)?4:ge(e)?2:0;return ve(e,t,i,r,n,o,s,!0)}function iy(e){return e?Ip(e)||R2(e)?Be({},e):e:null}function Br(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?ry(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ty(c),ref:t&&t.ref?i&&s?ne(s)?s.concat(Tc(t)):[s,Tc(t)]:Tc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fn(d,l.clone(d)),d}function Ud(e=" ",t=0){return Ue(Ms,null,e,t)}function u8(e,t){const i=Ue($s,null,e);return i.staticCount=t,i}function as(e="",t=!1){return t?(vi(),nl(zt,null,e)):Ue(zt,null,e)}function Ki(e){return e==null||typeof e=="boolean"?Ue(zt):ne(e)?Ue(xt,null,e.slice()):typeof e=="object"?En(e):Ue(Ms,null,String(e))}function En(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function Yp(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Yp(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!R2(t)?t._ctx=Rt:n===3&&Rt&&(Rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Rt},i=32):(t=String(t),r&64?(i=16,t=[Ud(t)]):i=8);e.children=t,e.shapeFlag|=i}function ry(...e){const t={};for(let i=0;iTt||Rt;let Zc,Yh;{const e=Mv(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Zc=t("__VUE_INSTANCE_SETTERS__",i=>Tt=i),Yh=t("__VUE_SSR_SETTERS__",i=>Ll=i)}const Fs=e=>{const t=Tt;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},Xh=()=>{Tt&&Tt.scope.off(),Zc(null)};function sy(e){return e.vnode.shapeFlag&4}let Ll=!1;function oy(e,t=!1){t&&Yh(t);const{props:i,children:r}=e.vnode,n=sy(e);K6(e,i,n,t),j6(e,r);const s=n?p8(e,t):void 0;return t&&Yh(!1),s}function p8(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?cy(e):null,s=Fs(e);qn();const o=sn(r,e,0,[e.props,n]);if(jn(),s(),Ap(o)){if(o.then(Xh,Xh),t)return o.then(a=>{Zh(e,a,t)}).catch(a=>{Js(a,e,0)});e.asyncDep=o}else Zh(e,o,t)}else ly(e,t)}function Zh(e,t,i){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Lp(t)),ly(e,i)}let Gc,Gh;function ay(e){Gc=e,Gh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,k6))}}const m8=()=>!Gc;function ly(e,t,i){const r=e.type;if(!e.render){if(!t&&Gc&&!r.render){const n=r.template||Up(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:s,delimiters:a},o),l);r.render=Gc(n,c)}}e.render=r.render||Nt,Gh&&Gh(e)}{const n=Fs(e);qn();try{B6(e)}finally{jn(),n()}}}const g8={get(e,t){return Pi(e,"get",""),e[t]}};function cy(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,g8),slots:e.slots,emit:e.emit,expose:t}}function Bl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lp(s2(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Na)return Na[i](e)},has(t,i){return i in t||i in Na}})):e.proxy}function Qh(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function v8(e){return ge(e)&&"__vccOpts"in e}const dy=(e,t)=>$3(e,t,Ll);function y8(e,t,i=Fe){const r=fn(),n=lt(t),s=Wi(t),o=l2((l,c)=>{let d;return K2(()=>{const u=e[t];Cr(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&Cr(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function uy(e,t,i){const r=arguments.length;return r===2?We(t)&&!ne(t)?zn(t)?Ue(e,null,[t]):Ue(e,t):Ue(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&zn(i)&&(i=[i]),Ue(e,t,i))}function b8(){}function w8(e,t,i,r){const n=i[r];if(n&&hy(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function hy(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&Ni&&Ni.push(e),!0}const fy="3.4.29",_8=Nt,k8=j3,C8=go,A8=f2,E8={createComponentInstance:ny,setupComponent:oy,renderComponentRoot:Sc,setCurrentRenderingInstance:tl,isVNode:zn,normalizeVNode:Ki,getComponentPublicInstance:Bl},x8=E8,S8=null,T8=null,N8=null;/** +**/function j3(e,t){}const q3={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Y3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function on(e,t,i,r){try{return r?e(...r):e()}catch(n){Js(n,t,i)}}function Xi(e,t,i,r){if(ve(e)){const n=on(e,t,i,r);return n&&Ap(n)&&n.catch(s=>{Js(s,t,i)}),n}if(se(e)){const n=[];for(let s=0;s>>1,n=di[r],s=el(n);sPr&&di.splice(t,1)}function jc(e){se(e)?xo.push(...e):(!An||!An.includes(e,e.allowRecurse?as+1:as))&&xo.push(e),u2()}function vm(e,t,i=Ja?Pr+1:0){for(;iel(i)-el(r));if(xo.length=0,An){An.push(...t);return}for(An=t,as=0;ase.id==null?1/0:e.id,Q3=(e,t)=>{const i=el(e)-el(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function h2(e){Mh=!1,Ja=!0,di.sort(Q3);try{for(Pr=0;Prgo.emit(n,...s)),nc=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{f2(s,t)}),setTimeout(()=>{go||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,nc=[])},3e3)):nc=[]}function J3(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||ze;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||ze;h&&(n=i.map(f=>Ae(f)?f.trim():f)),u&&(n=i.map(Uc))}let a,l=r[a=Co(t)]||r[a=Co(ut(t))];!l&&s&&(l=r[a=Co(qi(t))]),l&&Xi(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Xi(c,e,6,n)}}function p2(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!ve(e)){const l=c=>{const d=p2(c,t,!0);d&&(a=!0,Oe(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(je(e)&&r.set(e,null),null):(se(s)?s.forEach(l=>o[l]=null):Oe(o,s),je(e)&&r.set(e,o),o)}function Od(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,qi(t))||Fe(e,t))}let Dt=null,Md=null;function tl(e){const t=Dt;return Dt=e,Md=e&&e.type.__scopeId||null,t}function e6(e){Md=e}function t6(){Md=null}const i6=e=>ls;function ls(e,t=Dt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&qh(-1);const s=tl(t);let o;try{o=e(...n)}finally{tl(s),r._d&&qh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Nc(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:m,inheritAttrs:b}=e,v=tl(e);let _,w;try{if(i.shapeFlag&4){const g=n||r,k=g;_=ji(c.call(k,g,d,u,f,h,m)),w=a}else{const g=t;_=ji(g.length>1?g(u,{attrs:a,slots:o,emit:l}):g(u,null)),w=t.props?a:n6(a)}}catch(g){$a.length=0,Js(g,e,1),_=Ke(Wt)}let p=_;if(w&&b!==!1){const g=Object.keys(w),{shapeFlag:k}=p;g.length&&k&7&&(s&&g.some(Cp)&&(w=s6(w,s)),p=Or(p,w,!1,!0))}return i.dirs&&(p=Or(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),_=p,tl(v),_}function r6(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||Zs(i))&&((t||(t={}))[i]=e[i]);return t},s6=(e,t)=>{const i={};for(const r in e)(!Cp(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function o6(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?ym(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let Fh=0;const u6={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)f6(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}p6(e,t,i,r,n,o,a,l,c)}},hydrate:m6,create:Fp,normalize:g6},h6=u6;function il(e,t){const i=e.props&&e.props[t];ve(i)&&i()}function f6(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Fp(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(il(e,"onPending"),il(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),So(h,e.ssFallback)):h.resolve(!1,!0)}function p6(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:b,isInFallback:v,isHydrating:_}=u;if(b)u.pendingBranch=h,Cr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():v&&(_||(l(m,f,i,r,n,null,s,o,a),So(u,f)))):(u.pendingId=Fh++,_?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),v?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(m,f,i,r,n,null,s,o,a),So(u,f))):m&&Cr(h,m)?(l(m,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(m&&Cr(h,m))l(m,h,i,r,n,u,s,o,a),So(u,h);else if(il(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=Fh++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:w,pendingId:p}=u;w>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},w):w===0&&u.fallback(f)}}function Fp(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:m,o:{parentNode:b,remove:v}}=c;let _;const w=v6(e);w&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const p=e.props?Kc(e.props.timeout):void 0,g=s,k={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:Fh++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:x,activeBranch:S,pendingBranch:C,pendingId:N,effects:R,parentComponent:I,container:O}=k;let F=!1;k.isHydrating?k.isHydrating=!1:E||(F=S&&C.transition&&C.transition.mode==="out-in",F&&(S.transition.afterLeave=()=>{N===k.pendingId&&(h(C,O,s===g?m(S):s,0),jc(R))}),S&&(b(S.el)!==k.hiddenContainer&&(s=m(S)),f(S,I,k,!0)),F||h(C,O,s,0)),So(k,C),k.pendingBranch=null,k.isInFallback=!1;let L=k.parent,M=!1;for(;L;){if(L.pendingBranch){L.effects.push(...R),M=!0;break}L=L.parent}!M&&!F&&jc(R),k.effects=[],w&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),il(x,"onResolve")},fallback(E){if(!k.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:S,container:C,namespace:N}=k;il(A,"onFallback");const R=m(x),I=()=>{k.isInFallback&&(u(null,E,C,R,S,null,N,a,l),So(k,E))},O=E.transition&&E.transition.mode==="out-in";O&&(x.transition.afterLeave=I),k.isInFallback=!0,f(x,S,null,!0),O||I()},move(E,A,x){k.activeBranch&&h(k.activeBranch,E,A,x),k.container=E},next(){return k.activeBranch&&m(k.activeBranch)},registerDep(E,A,x){const S=!!k.pendingBranch;S&&k.deps++;const C=E.vnode.el;E.asyncDep.catch(N=>{Js(N,E,0)}).then(N=>{if(E.isUnmounted||k.isUnmounted||k.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:R}=E;Zh(E,N,!1),C&&(R.el=C);const I=!C&&E.subTree.el;A(E,R,b(C||E.subTree.el),C?null:m(E.subTree),k,o,x),I&&v(I),Op(E,R.el),S&&--k.deps===0&&k.resolve()})},unmount(E,A){k.isUnmounted=!0,k.activeBranch&&f(k.activeBranch,i,E,A),k.pendingBranch&&f(k.pendingBranch,i,E,A)}};return k}function m6(e,t,i,r,n,s,o,a,l){const c=t.suspense=Fp(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function g6(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=wm(r?i.default:i),e.ssFallback=r?wm(i.fallback):Ke(Wt)}function wm(e){let t;if(ve(e)){const i=Vs&&e._c;i&&(e._d=!1,Je()),e=e(),i&&(e._d=!0,t=Ii,J2())}return se(e)&&(e=r6(e)),e=ji(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function g2(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):jc(e)}function So(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,Op(r,n))}function v6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Vd(e,t,i=$t,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{qn();const a=Fs(i),l=Xi(t,i,e,o);return a(),Yn(),l});return r?n.unshift(s):n.push(s),s}}const hn=e=>(t,i=$t)=>{(!Ll||e==="sp")&&Vd(e,(...r)=>t(...r),i)},zp=hn("bm"),fn=hn("m"),v2=hn("bu"),Fd=hn("u"),Pl=hn("bum"),zd=hn("um"),y2=hn("sp"),b2=hn("rtg"),w2=hn("rtc");function _2(e,t=$t){Vd("ec",e,t)}function y6(e,t){if(Dt===null)return e;const i=Ol(Dt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Hp(e,t){return ve(e)?Oe({name:e.name},t,{setup:e}):e}const Is=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function _6(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((b,v)=>{a(m,()=>b(u()),()=>v(m),d+1)});throw m}).then(m=>f!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Hp({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=$t;if(c)return()=>cu(c,f);const m=w=>{l=null,Js(w,f,13,!r)};if(o&&f.suspense||Ll)return h().then(w=>()=>cu(w,f)).catch(w=>(m(w),()=>r?Ke(r,{error:w}):null));const b=it(!1),v=it(),_=it(!!n);return n&&setTimeout(()=>{_.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!v.value){const w=new Error(`Async component timed out after ${s}ms.`);m(w),v.value=w}},s),h().then(()=>{b.value=!0,f.parent&&Bl(f.parent.vnode)&&(f.parent.effect.dirty=!0,Ld(f.parent.update))}).catch(w=>{m(w),v.value=w}),()=>{if(b.value&&c)return cu(c,f);if(v.value&&r)return Ke(r,{error:v.value});if(i&&!_.value)return Ke(i)}}})}function cu(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ke(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function C2(e,t,i={},r,n){if(Dt.isCE||Dt.parent&&Is(Dt.parent)&&Dt.parent.isCE)return t!=="default"&&(i.name=t),Ke("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),Je();const o=s&&k2(s(i)),a=nl(Rt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function k2(e){return e.some(t=>Hn(t)?!(t.type===Wt||t.type===Rt&&!k2(t.children)):!0)?e:null}function C6(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:Co(r)]=e[r];return i}const zh=e=>e?sy(e)?Ol(e):zh(e.parent):null,Ta=Oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zh(e.parent),$root:e=>zh(e.root),$emit:e=>e.emit,$options:e=>Up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ld(e.update)}),$nextTick:e=>e.n||(e.n=$l.bind(e.proxy)),$watch:e=>t8.bind(e)}),du=(e,t)=>e!==ze&&!e.__isScriptSetup&&Fe(e,t),Hh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(du(r,t))return o[t]=1,r[t];if(n!==ze&&Fe(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Fe(c,t))return o[t]=3,s[t];if(i!==ze&&Fe(i,t))return o[t]=4,i[t];Uh&&(o[t]=0)}}const d=Ta[t];let u,h;if(d)return t==="$attrs"&&Bi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==ze&&Fe(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Fe(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return du(n,t)?(n[t]=i,!0):r!==ze&&Fe(r,t)?(r[t]=i,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==ze&&Fe(e,o)||du(t,o)||(a=s[0])&&Fe(a,o)||Fe(r,o)||Fe(Ta,o)||Fe(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Fe(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},k6=Oe({},Hh,{get(e,t){if(t!==Symbol.unscopables)return Hh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!j4(t)}});function A6(){return null}function E6(){return null}function x6(e){}function S6(e){}function N6(){return null}function T6(){}function R6(e,t){return null}function I6(){return A2().slots}function $6(){return A2().attrs}function A2(){const e=pn();return e.setupContext||(e.setupContext=cy(e))}function rl(e){return se(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function P6(e,t){const i=rl(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?se(n)||ve(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function D6(e,t){return!e||!t?e||t:se(e)&&se(t)?e.concat(t):Oe({},rl(e),rl(t))}function B6(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function L6(e){const t=pn();let i=e();return Xh(),Ap(i)&&(i=i.catch(r=>{throw Fs(t),r})),[i,()=>Fs(t)]}let Uh=!0;function O6(e){const t=Up(e),i=e.proxy,r=e.ctx;Uh=!1,t.beforeCreate&&_m(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:m,activated:b,deactivated:v,beforeDestroy:_,beforeUnmount:w,destroyed:p,unmounted:g,render:k,renderTracked:E,renderTriggered:A,errorCaptured:x,serverPrefetch:S,expose:C,inheritAttrs:N,components:R,directives:I,filters:O}=t;if(c&&M6(c,r,null),o)for(const M in o){const V=o[M];ve(V)&&(r[M]=V.bind(i))}if(n){const M=n.call(i,i);je(M)&&(e.data=Dd(M))}if(Uh=!0,s)for(const M in s){const V=s[M],ee=ve(V)?V.bind(i,i):ve(V.get)?V.get.bind(i,i):Pt,ae=!ve(V)&&ve(V.set)?V.set.bind(i):Pt,z=dy({get:ee,set:ae});Object.defineProperty(r,M,{enumerable:!0,configurable:!0,get:()=>z.value,set:K=>z.value=K})}if(a)for(const M in a)E2(a[M],r,i,M);if(l){const M=ve(l)?l.call(i):l;Reflect.ownKeys(M).forEach(V=>{S2(V,M[V])})}d&&_m(d,e,"c");function L(M,V){se(V)?V.forEach(ee=>M(ee.bind(i))):V&&M(V.bind(i))}if(L(zp,u),L(fn,h),L(v2,f),L(Fd,m),L(j2,b),L(q2,v),L(_2,x),L(w2,E),L(b2,A),L(Pl,w),L(zd,g),L(y2,S),se(C))if(C.length){const M=e.exposed||(e.exposed={});C.forEach(V=>{Object.defineProperty(M,V,{get:()=>i[V],set:ee=>i[V]=ee})})}else e.exposed||(e.exposed={});k&&e.render===Pt&&(e.render=k),N!=null&&(e.inheritAttrs=N),R&&(e.components=R),I&&(e.directives=I)}function M6(e,t,i=Pt){se(e)&&(e=Kh(e));for(const r in e){const n=e[r];let s;je(n)?"default"in n?s=Ra(n.from||r,n.default,!0):s=Ra(n.from||r):s=Ra(n),Jt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _m(e,t,i){Xi(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function E2(e,t,i,r){const n=r.includes(".")?W2(i,r):()=>i[r];if(Ae(e)){const s=t[e];ve(s)&&To(n,s)}else if(ve(e))To(n,e.bind(i));else if(je(e))if(se(e))e.forEach(s=>E2(s,t,i,r));else{const s=ve(e.handler)?e.handler.bind(i):t[e.handler];ve(s)&&To(n,s,e)}}function Up(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>Yc(l,c,o,!0)),Yc(l,t,o)),je(t)&&s.set(t,l),l}function Yc(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&Yc(e,s,i,!0),n&&n.forEach(o=>Yc(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=V6[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const V6={data:Cm,props:km,emits:km,methods:wa,computed:wa,beforeCreate:vi,created:vi,beforeMount:vi,mounted:vi,beforeUpdate:vi,updated:vi,beforeDestroy:vi,beforeUnmount:vi,destroyed:vi,unmounted:vi,activated:vi,deactivated:vi,errorCaptured:vi,serverPrefetch:vi,components:wa,directives:wa,watch:z6,provide:Cm,inject:F6};function Cm(e,t){return t?e?function(){return Oe(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function F6(e,t){return wa(Kh(e),Kh(t))}function Kh(e){if(se(e)){const t={};for(let i=0;i1)return i&&ve(t)?t.call(r&&r.proxy):t}}function K6(){return!!($t||Dt||No)}const N2={},T2=()=>Object.create(N2),R2=e=>Object.getPrototypeOf(e)===N2;function W6(e,t,i,r=!1){const n={},s=T2();e.propsDefaults=Object.create(null),I2(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:n2(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function j6(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Me(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$2(u,t,!0);Oe(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return je(e)&&r.set(e,wo),wo;if(se(s))for(let d=0;d-1,f[1]=b<0||m-1||Fe(f,"default"))&&a.push(u)}}}const c=[o,a];return je(e)&&r.set(e,c),c}function Am(e){return e[0]!=="$"&&!Pn(e)}function Em(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xm(e,t){return Em(e)===Em(t)}function Sm(e,t){return se(t)?t.findIndex(i=>xm(i,e)):ve(t)&&xm(t,e)?0:-1}const P2=e=>e[0]==="_"||e==="$stable",Kp=e=>se(e)?e.map(ji):[ji(e)],q6=(e,t,i)=>{if(t._n)return t;const r=ls((...n)=>Kp(t(...n)),i);return r._c=!1,r},D2=(e,t,i)=>{const r=e._ctx;for(const n in e){if(P2(n))continue;const s=e[n];if(ve(s))t[n]=q6(n,s,r);else if(s!=null){const o=Kp(s);t[n]=()=>o}}},B2=(e,t)=>{const i=Kp(t);e.slots.default=()=>i},Y6=(e,t)=>{const i=e.slots=T2();if(e.vnode.shapeFlag&32){const r=t._;r?(Oe(i,t),Ov(i,"_",r,!0)):D2(t,i)}else t&&B2(e,t)},X6=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=ze;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Oe(n,t),!i&&a===1&&delete n._):(s=!t.$stable,D2(t,n)),o=t}else t&&(B2(e,t),o={default:1});if(s)for(const a in n)!P2(a)&&o[a]==null&&delete n[a]};function Xc(e,t,i,r,n=!1){if(se(e)){e.forEach((h,f)=>Xc(h,t&&(se(t)?t[f]:t),i,r,n));return}if(Is(r)&&!n)return;const s=r.shapeFlag&4?Ol(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===ze?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(Ae(c)?(d[c]=null,Fe(u,c)&&(u[c]=null)):Jt(c)&&(c.value=null)),ve(l))on(l,a,12,[o,d]);else{const h=Ae(l),f=Jt(l);if(h||f){const m=()=>{if(e.f){const b=h?Fe(u,l)?u[l]:d[l]:l.value;n?se(b)&&kp(b,s):se(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Fe(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Fe(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(m.id=-1,Vt(m,i)):m()}}}let Nm=!1;const oo=()=>{Nm||(console.error("Hydration completed but contains mismatches."),Nm=!0)},Z6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",G6=e=>e.namespaceURI.includes("MathML"),sc=e=>{if(Z6(e))return"svg";if(G6(e))return"mathml"},oc=e=>e.nodeType===8;function Q6(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,g)=>{if(!g.hasChildNodes()){i(null,p,g),qc(),g._vnode=p;return}u(g.firstChild,p,null,null,null),qc(),g._vnode=p},u=(p,g,k,E,A,x=!1)=>{x=x||!!g.dynamicChildren;const S=oc(p)&&p.data==="[",C=()=>b(p,g,k,E,A,S),{type:N,ref:R,shapeFlag:I,patchFlag:O}=g;let F=p.nodeType;g.el=p,O===-2&&(x=!1,g.dynamicChildren=null);let L=null;switch(N){case Ms:F!==3?g.children===""?(l(g.el=n(""),o(p),p),L=p):L=C():(p.data!==g.children&&(oo(),p.data=g.children),L=s(p));break;case Wt:w(p)?(L=s(p),_(g.el=p.content.firstChild,p,k)):F!==8||S?L=C():L=s(p);break;case $s:if(S&&(p=s(p),F=p.nodeType),F===1||F===3){L=p;const M=!g.children.length;for(let V=0;V{x=x||!!g.dynamicChildren;const{type:S,props:C,patchFlag:N,shapeFlag:R,dirs:I,transition:O}=g,F=S==="input"||S==="option";if(F||N!==-1){I&&Ir(g,null,k,"created");let L=!1;if(w(p)){L=V2(E,O)&&k&&k.vnode.props&&k.vnode.props.appear;const V=p.content.firstChild;L&&O.beforeEnter(V),_(V,p,k),g.el=p=V}if(R&16&&!(C&&(C.innerHTML||C.textContent))){let V=f(p.firstChild,g,p,k,E,A,x);for(;V;){oo();const ee=V;V=V.nextSibling,a(ee)}}else R&8&&p.textContent!==g.children&&(oo(),p.textContent=g.children);if(C)if(F||!x||N&48)for(const V in C)(F&&(V.endsWith("value")||V==="indeterminate")||Zs(V)&&!Pn(V)||V[0]===".")&&r(p,V,null,C[V],void 0,void 0,k);else C.onClick&&r(p,"onClick",null,C.onClick,void 0,void 0,k);let M;(M=C&&C.onVnodeBeforeMount)&&Ti(M,k,g),I&&Ir(g,null,k,"beforeMount"),((M=C&&C.onVnodeMounted)||I||L)&&g2(()=>{M&&Ti(M,k,g),L&&O.enter(p),I&&Ir(g,null,k,"mounted")},E)}return p.nextSibling},f=(p,g,k,E,A,x,S)=>{S=S||!!g.dynamicChildren;const C=g.children,N=C.length;for(let R=0;R{const{slotScopeIds:S}=g;S&&(A=A?A.concat(S):S);const C=o(p),N=f(s(p),g,C,k,E,A,x);return N&&oc(N)&&N.data==="]"?s(g.anchor=N):(oo(),l(g.anchor=c("]"),C,N),N)},b=(p,g,k,E,A,x)=>{if(oo(),g.el=null,x){const N=v(p);for(;;){const R=s(p);if(R&&R!==N)a(R);else break}}const S=s(p),C=o(p);return a(p),i(null,g,C,S,k,E,sc(C),A),S},v=(p,g="[",k="]")=>{let E=0;for(;p;)if(p=s(p),p&&oc(p)&&(p.data===g&&E++,p.data===k)){if(E===0)return s(p);E--}return p},_=(p,g,k)=>{const E=g.parentNode;E&&E.replaceChild(p,g);let A=k;for(;A;)A.vnode.el===g&&(A.vnode.el=A.subTree.el=p),A=A.parent},w=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Vt=g2;function L2(e){return M2(e)}function O2(e){return M2(e,Q6)}function M2(e,t){const i=Mv();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=Pt,insertStaticContent:m}=e,b=($,D,U,q=null,X=null,J=null,te=void 0,Q=null,G=!!D.dynamicChildren)=>{if($===D)return;$&&!Cr($,D)&&(q=vt($),K($,X,J,!0),$=null),D.patchFlag===-2&&(G=!1,D.dynamicChildren=null);const{type:j,ref:ie,shapeFlag:de}=D;switch(j){case Ms:v($,D,U,q);break;case Wt:_($,D,U,q);break;case $s:$==null&&w(D,U,q,te);break;case Rt:R($,D,U,q,X,J,te,Q,G);break;default:de&1?k($,D,U,q,X,J,te,Q,G):de&6?I($,D,U,q,X,J,te,Q,G):(de&64||de&128)&&j.process($,D,U,q,X,J,te,Q,G,pi)}ie!=null&&X&&Xc(ie,$&&$.ref,J,D||$,!D)},v=($,D,U,q)=>{if($==null)r(D.el=a(D.children),U,q);else{const X=D.el=$.el;D.children!==$.children&&c(X,D.children)}},_=($,D,U,q)=>{$==null?r(D.el=l(D.children||""),U,q):D.el=$.el},w=($,D,U,q)=>{[$.el,$.anchor]=m($.children,D,U,q,$.el,$.anchor)},p=({el:$,anchor:D},U,q)=>{let X;for(;$&&$!==D;)X=h($),r($,U,q),$=X;r(D,U,q)},g=({el:$,anchor:D})=>{let U;for(;$&&$!==D;)U=h($),n($),$=U;n(D)},k=($,D,U,q,X,J,te,Q,G)=>{D.type==="svg"?te="svg":D.type==="math"&&(te="mathml"),$==null?E(D,U,q,X,J,te,Q,G):S($,D,X,J,te,Q,G)},E=($,D,U,q,X,J,te,Q)=>{let G,j;const{props:ie,shapeFlag:de,transition:ce,dirs:me}=$;if(G=$.el=o($.type,J,ie&&ie.is,ie),de&8?d(G,$.children):de&16&&x($.children,G,null,q,X,uu($,J),te,Q),me&&Ir($,null,q,"created"),A(G,$,$.scopeId,te,q),ie){for(const Qe in ie)Qe!=="value"&&!Pn(Qe)&&s(G,Qe,null,ie[Qe],J,$.children,q,X,xe);"value"in ie&&s(G,"value",null,ie.value,J),(j=ie.onVnodeBeforeMount)&&Ti(j,q,$)}me&&Ir($,null,q,"beforeMount");const Ce=V2(X,ce);Ce&&ce.beforeEnter(G),r(G,D,U),((j=ie&&ie.onVnodeMounted)||Ce||me)&&Vt(()=>{j&&Ti(j,q,$),Ce&&ce.enter(G),me&&Ir($,null,q,"mounted")},X)},A=($,D,U,q,X)=>{if(U&&f($,U),q)for(let J=0;J{for(let j=G;j<$.length;j++){const ie=$[j]=Q?xn($[j]):ji($[j]);b(null,ie,D,U,q,X,J,te,Q)}},S=($,D,U,q,X,J,te)=>{const Q=D.el=$.el;let{patchFlag:G,dynamicChildren:j,dirs:ie}=D;G|=$.patchFlag&16;const de=$.props||ze,ce=D.props||ze;let me;if(U&&ts(U,!1),(me=ce.onVnodeBeforeUpdate)&&Ti(me,U,D,$),ie&&Ir(D,$,U,"beforeUpdate"),U&&ts(U,!0),j?C($.dynamicChildren,j,Q,U,q,uu(D,X),J):te||V($,D,Q,null,U,q,uu(D,X),J,!1),G>0){if(G&16)N(Q,D,de,ce,U,q,X);else if(G&2&&de.class!==ce.class&&s(Q,"class",null,ce.class,X),G&4&&s(Q,"style",de.style,ce.style,X),G&8){const Ce=D.dynamicProps;for(let Qe=0;Qe{me&&Ti(me,U,D,$),ie&&Ir(D,$,U,"updated")},q)},C=($,D,U,q,X,J,te)=>{for(let Q=0;Q{if(U!==q){if(U!==ze)for(const Q in U)!Pn(Q)&&!(Q in q)&&s($,Q,U[Q],null,te,D.children,X,J,xe);for(const Q in q){if(Pn(Q))continue;const G=q[Q],j=U[Q];G!==j&&Q!=="value"&&s($,Q,j,G,te,D.children,X,J,xe)}"value"in q&&s($,"value",U.value,q.value,te)}},R=($,D,U,q,X,J,te,Q,G)=>{const j=D.el=$?$.el:a(""),ie=D.anchor=$?$.anchor:a("");let{patchFlag:de,dynamicChildren:ce,slotScopeIds:me}=D;me&&(Q=Q?Q.concat(me):me),$==null?(r(j,U,q),r(ie,U,q),x(D.children||[],U,ie,X,J,te,Q,G)):de>0&&de&64&&ce&&$.dynamicChildren?(C($.dynamicChildren,ce,U,X,J,te,Q),(D.key!=null||X&&D===X.subTree)&&Wp($,D,!0)):V($,D,U,ie,X,J,te,Q,G)},I=($,D,U,q,X,J,te,Q,G)=>{D.slotScopeIds=Q,$==null?D.shapeFlag&512?X.ctx.activate(D,U,q,te,G):O(D,U,q,X,J,te,G):F($,D,G)},O=($,D,U,q,X,J,te)=>{const Q=$.component=ny($,q,X);if(Bl($)&&(Q.ctx.renderer=pi),oy(Q),Q.asyncDep){if(X&&X.registerDep(Q,L,te),!$.el){const G=Q.subTree=Ke(Wt);_(null,G,D,U)}}else L(Q,$,D,U,X,J,te)},F=($,D,U)=>{const q=D.component=$.component;if(o6($,D,U))if(q.asyncDep&&!q.asyncResolved){M(q,D,U);return}else q.next=D,G3(q.update),q.effect.dirty=!0,q.update();else D.el=$.el,q.vnode=D},L=($,D,U,q,X,J,te)=>{const Q=()=>{if($.isMounted){let{next:ie,bu:de,u:ce,parent:me,vnode:Ce}=$;{const rr=F2($);if(rr){ie&&(ie.el=Ce.el,M($,ie,te)),rr.asyncDep.then(()=>{$.isUnmounted||Q()});return}}let Qe=ie,Ve;ts($,!1),ie?(ie.el=Ce.el,M($,ie,te)):ie=Ce,de&&ko(de),(Ve=ie.props&&ie.props.onVnodeBeforeUpdate)&&Ti(Ve,me,ie,Ce),ts($,!0);const yt=Nc($),Lt=$.subTree;$.subTree=yt,b(Lt,yt,u(Lt.el),vt(Lt),$,X,J),ie.el=yt.el,Qe===null&&Op($,yt.el),ce&&Vt(ce,X),(Ve=ie.props&&ie.props.onVnodeUpdated)&&Vt(()=>Ti(Ve,me,ie,Ce),X)}else{let ie;const{el:de,props:ce}=D,{bm:me,m:Ce,parent:Qe}=$,Ve=Is(D);if(ts($,!1),me&&ko(me),!Ve&&(ie=ce&&ce.onVnodeBeforeMount)&&Ti(ie,Qe,D),ts($,!0),de&&Ur){const yt=()=>{$.subTree=Nc($),Ur(de,$.subTree,$,X,null)};Ve?D.type.__asyncLoader().then(()=>!$.isUnmounted&&yt()):yt()}else{const yt=$.subTree=Nc($);b(null,yt,U,q,$,X,J),D.el=yt.el}if(Ce&&Vt(Ce,X),!Ve&&(ie=ce&&ce.onVnodeMounted)){const yt=D;Vt(()=>Ti(ie,Qe,yt),X)}(D.shapeFlag&256||Qe&&Is(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&$.a&&Vt($.a,X),$.isMounted=!0,D=U=q=null}},G=$.effect=new Bo(Q,Pt,()=>Ld(j),$.scope),j=$.update=()=>{G.dirty&&G.run()};j.id=$.uid,ts($,!0),j()},M=($,D,U)=>{D.component=$;const q=$.vnode.props;$.vnode=D,$.next=null,j6($,D.props,q,U),X6($,D.children,U),qn(),vm($),Yn()},V=($,D,U,q,X,J,te,Q,G=!1)=>{const j=$&&$.children,ie=$?$.shapeFlag:0,de=D.children,{patchFlag:ce,shapeFlag:me}=D;if(ce>0){if(ce&128){ae(j,de,U,q,X,J,te,Q,G);return}else if(ce&256){ee(j,de,U,q,X,J,te,Q,G);return}}me&8?(ie&16&&xe(j,X,J),de!==j&&d(U,de)):ie&16?me&16?ae(j,de,U,q,X,J,te,Q,G):xe(j,X,J,!0):(ie&8&&d(U,""),me&16&&x(de,U,q,X,J,te,Q,G))},ee=($,D,U,q,X,J,te,Q,G)=>{$=$||wo,D=D||wo;const j=$.length,ie=D.length,de=Math.min(j,ie);let ce;for(ce=0;ceie?xe($,X,J,!0,!1,de):x(D,U,q,X,J,te,Q,G,de)},ae=($,D,U,q,X,J,te,Q,G)=>{let j=0;const ie=D.length;let de=$.length-1,ce=ie-1;for(;j<=de&&j<=ce;){const me=$[j],Ce=D[j]=G?xn(D[j]):ji(D[j]);if(Cr(me,Ce))b(me,Ce,U,null,X,J,te,Q,G);else break;j++}for(;j<=de&&j<=ce;){const me=$[de],Ce=D[ce]=G?xn(D[ce]):ji(D[ce]);if(Cr(me,Ce))b(me,Ce,U,null,X,J,te,Q,G);else break;de--,ce--}if(j>de){if(j<=ce){const me=ce+1,Ce=mece)for(;j<=de;)K($[j],X,J,!0),j++;else{const me=j,Ce=j,Qe=new Map;for(j=Ce;j<=ce;j++){const mi=D[j]=G?xn(D[j]):ji(D[j]);mi.key!=null&&Qe.set(mi.key,j)}let Ve,yt=0;const Lt=ce-Ce+1;let rr=!1,Ql=0;const vn=new Array(Lt);for(j=0;j=Lt){K(mi,X,J,!0);continue}let nr;if(mi.key!=null)nr=Qe.get(mi.key);else for(Ve=Ce;Ve<=ce;Ve++)if(vn[Ve-Ce]===0&&Cr(mi,D[Ve])){nr=Ve;break}nr===void 0?K(mi,X,J,!0):(vn[nr-Ce]=j+1,nr>=Ql?Ql=nr:rr=!0,b(mi,D[nr],U,null,X,J,te,Q,G),yt++)}const ha=rr?J6(vn):wo;for(Ve=ha.length-1,j=Lt-1;j>=0;j--){const mi=Ce+j,nr=D[mi],fa=mi+1{const{el:J,type:te,transition:Q,children:G,shapeFlag:j}=$;if(j&6){z($.component.subTree,D,U,q);return}if(j&128){$.suspense.move(D,U,q);return}if(j&64){te.move($,D,U,pi);return}if(te===Rt){r(J,D,U);for(let de=0;deQ.enter(J),X);else{const{leave:de,delayLeave:ce,afterLeave:me}=Q,Ce=()=>r(J,D,U),Qe=()=>{de(J,()=>{Ce(),me&&me()})};ce?ce(J,Ce,Qe):Qe()}else r(J,D,U)},K=($,D,U,q=!1,X=!1)=>{const{type:J,props:te,ref:Q,children:G,dynamicChildren:j,shapeFlag:ie,patchFlag:de,dirs:ce,memoIndex:me}=$;if(Q!=null&&Xc(Q,null,U,$,!0),me!=null&&(D.renderCache[me]=void 0),ie&256){D.ctx.deactivate($);return}const Ce=ie&1&&ce,Qe=!Is($);let Ve;if(Qe&&(Ve=te&&te.onVnodeBeforeUnmount)&&Ti(Ve,D,$),ie&6)Be($.component,U,q);else{if(ie&128){$.suspense.unmount(U,q);return}Ce&&Ir($,null,D,"beforeUnmount"),ie&64?$.type.remove($,D,U,X,pi,q):j&&(J!==Rt||de>0&&de&64)?xe(j,D,U,!1,!0):(J===Rt&&de&384||!X&&ie&16)&&xe(G,D,U),q&&Z($)}(Qe&&(Ve=te&&te.onVnodeUnmounted)||Ce)&&Vt(()=>{Ve&&Ti(Ve,D,$),Ce&&Ir($,null,D,"unmounted")},U)},Z=$=>{const{type:D,el:U,anchor:q,transition:X}=$;if(D===Rt){W(U,q);return}if(D===$s){g($);return}const J=()=>{n(U),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if($.shapeFlag&1&&X&&!X.persisted){const{leave:te,delayLeave:Q}=X,G=()=>te(U,J);Q?Q($.el,J,G):G()}else J()},W=($,D)=>{let U;for(;$!==D;)U=h($),n($),$=U;n(D)},Be=($,D,U)=>{const{bum:q,scope:X,update:J,subTree:te,um:Q,m:G,a:j}=$;Zc(G),Zc(j),q&&ko(q),X.stop(),J&&(J.active=!1,K(te,$,D,U)),Q&&Vt(Q,D),Vt(()=>{$.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},xe=($,D,U,q=!1,X=!1,J=0)=>{for(let te=J;te<$.length;te++)K($[te],D,U,q,X)},vt=$=>$.shapeFlag&6?vt($.component.subTree):$.shapeFlag&128?$.suspense.next():h($.anchor||$.el);let we=!1;const Nr=($,D,U)=>{$==null?D._vnode&&K(D._vnode,null,null,!0):b(D._vnode||null,$,D,null,null,null,U),we||(we=!0,vm(),qc(),we=!1),D._vnode=$},pi={p:b,um:K,m:z,r:Z,mt:O,mc:x,pc:V,pbc:C,n:vt,o:e};let es,Ur;return t&&([es,Ur]=t(pi)),{render:Nr,hydrate:es,createApp:U6(Nr,es)}}function uu({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function ts({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function V2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wp(e,t,i=!1){const r=e.children,n=t.children;if(se(r)&&se(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function F2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:F2(t)}function Zc(e){if(e)for(let t=0;tRa(z2);function e8(e,t){return Dl(e,null,t)}function U2(e,t){return Dl(e,null,{flush:"post"})}function K2(e,t){return Dl(e,null,{flush:"sync"})}const ac={};function To(e,t,i){return Dl(e,t,i)}function Dl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=ze){if(t&&s){const E=t;t=(...A)=>{E(...A),k()}}const l=$t,c=E=>r===!0?E:Nn(E,r===!1?1:void 0);let d,u=!1,h=!1;if(Jt(e)?(d=()=>e.value,u=Ga(e)):Ao(e)?(d=()=>c(e),u=!0):se(e)?(h=!0,u=e.some(E=>Ao(E)||Ga(E)),d=()=>e.map(E=>{if(Jt(E))return E.value;if(Ao(E))return c(E);if(ve(E))return on(E,l,2)})):ve(e)?t?d=()=>on(e,l,2):d=()=>(f&&f(),Xi(e,l,3,[m])):d=Pt,t&&r){const E=d;d=()=>Nn(E())}let f,m=E=>{f=p.onStop=()=>{on(E,l,4),f=p.onStop=void 0}},b;if(Ll)if(m=Pt,t?i&&Xi(t,l,3,[d(),h?[]:void 0,m]):d(),n==="sync"){const E=H2();b=E.__watcherHandles||(E.__watcherHandles=[])}else return Pt;let v=h?new Array(e.length).fill(ac):ac;const _=()=>{if(!(!p.active||!p.dirty))if(t){const E=p.run();(r||u||(h?E.some((A,x)=>Er(A,v[x])):Er(E,v)))&&(f&&f(),Xi(t,l,3,[E,v===ac?void 0:h&&v[0]===ac?[]:v,m]),v=E)}else p.run()};_.allowRecurse=!!t;let w;n==="sync"?w=_:n==="post"?w=()=>Vt(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),w=()=>Ld(_));const p=new Bo(d,Pt,w),g=Kv(),k=()=>{p.stop(),g&&kp(g.effects,p)};return t?i?_():v=p.run():n==="post"?Vt(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(k),k}function t8(e,t,i){const r=this.proxy,n=Ae(e)?e.includes(".")?W2(r,e):()=>r[e]:e.bind(r,r);let s;ve(t)?s=t:(s=t.handler,i=t);const o=Fs(this),a=Dl(n,s.bind(r),i);return o(),a}function W2(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{Nn(r,t,i)});else if(Lv(e)){for(const r in e)Nn(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Nn(e[r],t,i)}return e}const Bl=e=>e.type.__isKeepAlive,i8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=pn(),r=i.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(w,p,g,k,E)=>{const A=w.component;c(w,p,g,0,a),l(A.vnode,w,p,g,A,a,k,w.slotScopeIds,E),Vt(()=>{A.isDeactivated=!1,A.a&&ko(A.a);const x=w.props&&w.props.onVnodeMounted;x&&Ti(x,A.parent,w)},a)},r.deactivate=w=>{const p=w.component;Zc(p.m),Zc(p.a),c(w,h,null,1,a),Vt(()=>{p.da&&ko(p.da);const g=w.props&&w.props.onVnodeUnmounted;g&&Ti(g,p.parent,w),p.isDeactivated=!0},a)};function f(w){hu(w),d(w,i,a,!0)}function m(w){n.forEach((p,g)=>{const k=Qh(p.type);k&&(!w||!w(k))&&b(g)})}function b(w){const p=n.get(w);!o||!Cr(p,o)?f(p):o&&hu(o),n.delete(w),s.delete(w)}To(()=>[e.include,e.exclude],([w,p])=>{w&&m(g=>_a(w,g)),p&&m(g=>!_a(p,g))},{flush:"post",deep:!0});let v=null;const _=()=>{v!=null&&(Vh(i.subTree.type)?Vt(()=>{n.set(v,lc(i.subTree))},i.subTree.suspense):n.set(v,lc(i.subTree)))};return fn(_),Fd(_),Pl(()=>{n.forEach(w=>{const{subTree:p,suspense:g}=i,k=lc(p);if(w.type===k.type&&w.key===k.key){hu(k);const E=k.component.da;E&&Vt(E,g);return}f(w)})}),()=>{if(v=null,!t.default)return null;const w=t.default(),p=w[0];if(w.length>1)return o=null,w;if(!Hn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let g=lc(p);const k=g.type,E=Qh(Is(g)?g.type.__asyncResolved||{}:k),{include:A,exclude:x,max:S}=e;if(A&&(!E||!_a(A,E))||x&&E&&_a(x,E))return o=g,p;const C=g.key==null?k:g.key,N=n.get(C);return g.el&&(g=Or(g),p.shapeFlag&128&&(p.ssContent=g)),v=C,N?(g.el=N.el,g.component=N.component,g.transition&&zn(g,g.transition),g.shapeFlag|=512,s.delete(C),s.add(C)):(s.add(C),S&&s.size>parseInt(S,10)&&b(s.values().next().value)),g.shapeFlag|=256,o=g,Vh(p.type)?p:g}}},r8=i8;function _a(e,t){return se(e)?e.some(i=>_a(i,t)):Ae(e)?e.split(",").includes(t):F4(e)?e.test(t):!1}function j2(e,t){Y2(e,"a",t)}function q2(e,t){Y2(e,"da",t)}function Y2(e,t,i=$t){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Vd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)Bl(n.parent.vnode)&&n8(r,t,i,n),n=n.parent}}function n8(e,t,i,r){const n=Vd(t,e,r,!0);zd(()=>{kp(r[t],n)},i)}function hu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function lc(e){return e.shapeFlag&128?e.ssContent:e}const En=Symbol("_leaveCb"),cc=Symbol("_enterCb");function jp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fn(()=>{e.isMounted=!0}),Pl(()=>{e.isUnmounting=!0}),e}const sr=[Function,Array],qp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},X2=e=>{const t=e.subTree;return t.component?X2(t.component):t},s8={name:"BaseTransition",props:qp,setup(e,{slots:t}){const i=pn(),r=jp();return()=>{const n=t.default&&Hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==Wt){s=h;break}}const o=Me(e),{mode:a}=o;if(r.isLeaving)return fu(s);const l=Tm(s);if(!l)return fu(s);let c=Oo(l,o,r,i,h=>c=h);zn(l,c);const d=i.subTree,u=d&&Tm(d);if(u&&u.type!==Wt&&!Cr(l,u)&&X2(i).type!==Wt){const h=Oo(u,o,r,i);if(zn(u,h),a==="out-in"&&l.type!==Wt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},fu(s);a==="in-out"&&l.type!==Wt&&(h.delayLeave=(f,m,b)=>{const v=G2(r,u);v[String(u.key)]=u,f[En]=()=>{m(),f[En]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},Z2=s8;function G2(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function Oo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:_,onAfterAppear:w,onAppearCancelled:p}=t,g=String(e.key),k=G2(i,e),E=(S,C)=>{S&&Xi(S,r,9,C)},A=(S,C)=>{const N=C[1];E(S,C),se(S)?S.every(R=>R.length<=1)&&N():S.length<=1&&N()},x={mode:o,persisted:a,beforeEnter(S){let C=l;if(!i.isMounted)if(s)C=v||l;else return;S[En]&&S[En](!0);const N=k[g];N&&Cr(e,N)&&N.el[En]&&N.el[En](),E(C,[S])},enter(S){let C=c,N=d,R=u;if(!i.isMounted)if(s)C=_||c,N=w||d,R=p||u;else return;let I=!1;const O=S[cc]=F=>{I||(I=!0,F?E(R,[S]):E(N,[S]),x.delayedLeave&&x.delayedLeave(),S[cc]=void 0)};C?A(C,[S,O]):O()},leave(S,C){const N=String(e.key);if(S[cc]&&S[cc](!0),i.isUnmounting)return C();E(h,[S]);let R=!1;const I=S[En]=O=>{R||(R=!0,C(),O?E(b,[S]):E(m,[S]),S[En]=void 0,k[N]===e&&delete k[N])};k[N]=e,f?A(f,[S,I]):I()},clone(S){const C=Oo(S,t,i,r,n);return n&&n(C),C}};return x}function fu(e){if(Bl(e))return e=Or(e),e.children=null,e}function Tm(e){if(!Bl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&ve(i.default))return i.default()}}function zn(e,t){e.shapeFlag&6&&e.component?zn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,Ia=e=>e&&(e.disabled||e.disabled===""),Rm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jh=(e,t)=>{const i=e&&e.to;return Ae(i)?t?t(i):null:i},a8={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:m,createText:b,createComment:v}}=c,_=Ia(t.props);let{shapeFlag:w,children:p,dynamicChildren:g}=t;if(e==null){const k=t.el=b(""),E=t.anchor=b("");f(k,i,r),f(E,i,r);const A=t.target=jh(t.props,m),x=t.targetAnchor=b("");A&&(f(x,A),o==="svg"||Rm(A)?o="svg":(o==="mathml"||Im(A))&&(o="mathml"));const S=(C,N)=>{w&16&&d(p,C,N,n,s,o,a,l)};_?S(i,E):A&&S(A,x)}else{t.el=e.el;const k=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,x=Ia(e.props),S=x?i:E,C=x?k:A;if(o==="svg"||Rm(E)?o="svg":(o==="mathml"||Im(E))&&(o="mathml"),g?(h(e.dynamicChildren,g,S,n,s,o,a),Wp(e,t,!0)):l||u(e,t,S,C,n,s,o,a,!1),_)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):dc(t,i,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=jh(t.props,m);N&&dc(t,N,null,c,0)}else x&&dc(t,E,A,c,1)}Q2(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!Ia(h);for(let m=0;m0?Ii||wo:null,J2(),Vs>0&&Ii&&Ii.push(e),e}function ht(e,t,i,r,n,s){return ey(Se(e,t,i,r,n,s,!0))}function nl(e,t,i,r,n){return ey(Ke(e,t,i,r,n,!0))}function Hn(e){return e?e.__v_isVNode===!0:!1}function Cr(e,t){return e.type===t.type&&e.key===t.key}function d8(e){}const ty=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Jt(e)||ve(e)?{i:Dt,r:e,k:t,f:!!i}:e:null);function Se(e,t=null,i=null,r=0,n=null,s=e===Rt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ty(t),ref:t&&Tc(t),scopeId:Md,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Dt};return a?(Yp(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=Ae(i)?8:16),Vs>0&&!o&&Ii&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ii.push(l),l}const Ke=u8;function u8(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===m2)&&(e=Wt),Hn(e)){const a=Or(e,t,!0);return i&&Yp(a,i),Vs>0&&!s&&Ii&&(a.shapeFlag&6?Ii[Ii.indexOf(e)]=a:Ii.push(a)),a.patchFlag=-2,a}if(y8(e)&&(e=e.__vccOpts),t){t=iy(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Il(a)),je(l)&&(Ip(l)&&!se(l)&&(l=Oe({},l)),t.style=Os(l))}const o=Ae(e)?1:Vh(e)?128:o8(e)?64:je(e)?4:ve(e)?2:0;return Se(e,t,i,r,n,o,s,!0)}function iy(e){return e?Ip(e)||R2(e)?Oe({},e):e:null}function Or(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?ry(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ty(c),ref:t&&t.ref?i&&s?se(s)?s.concat(Tc(t)):[s,Tc(t)]:Tc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Or(e.ssContent),ssFallback:e.ssFallback&&Or(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&zn(d,l.clone(d)),d}function Ud(e=" ",t=0){return Ke(Ms,null,e,t)}function h8(e,t){const i=Ke($s,null,e);return i.staticCount=t,i}function Nt(e="",t=!1){return t?(Je(),nl(Wt,null,e)):Ke(Wt,null,e)}function ji(e){return e==null||typeof e=="boolean"?Ke(Wt):se(e)?Ke(Rt,null,e.slice()):typeof e=="object"?xn(e):Ke(Ms,null,String(e))}function xn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Or(e)}function Yp(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Yp(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!R2(t)?t._ctx=Dt:n===3&&Dt&&(Dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:Dt},i=32):(t=String(t),r&64?(i=16,t=[Ud(t)]):i=8);e.children=t,e.shapeFlag|=i}function ry(...e){const t={};for(let i=0;i$t||Dt;let Gc,Yh;{const e=Mv(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Gc=t("__VUE_INSTANCE_SETTERS__",i=>$t=i),Yh=t("__VUE_SSR_SETTERS__",i=>Ll=i)}const Fs=e=>{const t=$t;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},Xh=()=>{$t&&$t.scope.off(),Gc(null)};function sy(e){return e.vnode.shapeFlag&4}let Ll=!1;function oy(e,t=!1){t&&Yh(t);const{props:i,children:r}=e.vnode,n=sy(e);W6(e,i,n,t),Y6(e,r);const s=n?m8(e,t):void 0;return t&&Yh(!1),s}function m8(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?cy(e):null,s=Fs(e);qn();const o=on(r,e,0,[e.props,n]);if(Yn(),s(),Ap(o)){if(o.then(Xh,Xh),t)return o.then(a=>{Zh(e,a,t)}).catch(a=>{Js(a,e,0)});e.asyncDep=o}else Zh(e,o,t)}else ly(e,t)}function Zh(e,t,i){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=Bp(t)),ly(e,i)}let Qc,Gh;function ay(e){Qc=e,Gh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,k6))}}const g8=()=>!Qc;function ly(e,t,i){const r=e.type;if(!e.render){if(!t&&Qc&&!r.render){const n=r.template||Up(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Oe(Oe({isCustomElement:s,delimiters:a},o),l);r.render=Qc(n,c)}}e.render=r.render||Pt,Gh&&Gh(e)}{const n=Fs(e);qn();try{O6(e)}finally{Yn(),n()}}}const v8={get(e,t){return Bi(e,"get",""),e[t]}};function cy(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,v8),slots:e.slots,emit:e.emit,expose:t}}function Ol(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bp(s2(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ta)return Ta[i](e)},has(t,i){return i in t||i in Ta}})):e.proxy}function Qh(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function y8(e){return ve(e)&&"__vccOpts"in e}const dy=(e,t)=>P3(e,t,Ll);function b8(e,t,i=ze){const r=pn(),n=ut(t),s=qi(t),o=l2((l,c)=>{let d;return K2(()=>{const u=e[t];Er(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&Er(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function uy(e,t,i){const r=arguments.length;return r===2?je(t)&&!se(t)?Hn(t)?Ke(e,null,[t]):Ke(e,t):Ke(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&Hn(i)&&(i=[i]),Ke(e,t,i))}function w8(){}function _8(e,t,i,r){const n=i[r];if(n&&hy(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function hy(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&Ii&&Ii.push(e),!0}const fy="3.4.29",C8=Pt,k8=Y3,A8=go,E8=f2,x8={createComponentInstance:ny,setupComponent:oy,renderComponentRoot:Nc,setCurrentRenderingInstance:tl,isVNode:Hn,normalizeVNode:ji,getComponentPublicInstance:Ol},S8=x8,N8=null,T8=null,R8=null;/** * @vue/runtime-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const R8="http://www.w3.org/2000/svg",I8="http://www.w3.org/1998/Math/MathML",Xr=typeof document<"u"?document:null,$m=Xr&&Xr.createElement("template"),$8={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Xr.createElementNS(R8,e):t==="mathml"?Xr.createElementNS(I8,e):i?Xr.createElement(e,{is:i}):Xr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Xr.createTextNode(e),createComment:e=>Xr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{$m.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=$m.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},bn="transition",pa="animation",Mo=Symbol("_vtc"),Xp=(e,{slots:t})=>uy(Z2,my(e),t);Xp.displayName="Transition";const py={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},P8=Xp.props=Be({},jp,py),ts=(e,t=[])=>{ne(e)?e.forEach(i=>i(...t)):e&&e(...t)},Pm=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const I in e)I in py||(t[I]=e[I]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,m=D8(n),b=m&&m[0],w=m&&m[1],{onBeforeEnter:_,onEnter:g,onEnterCancelled:p,onLeave:y,onLeaveCancelled:C,onBeforeAppear:E=_,onAppear:A=g,onAppearCancelled:x=p}=t,S=(I,T,P)=>{kn(I,T?d:a),kn(I,T?c:o),P&&P()},k=(I,T)=>{I._isLeaving=!1,kn(I,u),kn(I,f),kn(I,h),T&&T()},N=I=>(T,P)=>{const O=I?A:g,M=()=>S(T,I,P);ts(O,[T,M]),Dm(()=>{kn(T,I?l:s),qr(T,I?d:a),Pm(O)||Lm(T,r,b,M)})};return Be(t,{onBeforeEnter(I){ts(_,[I]),qr(I,s),qr(I,o)},onBeforeAppear(I){ts(E,[I]),qr(I,l),qr(I,c)},onEnter:N(!1),onAppear:N(!0),onLeave(I,T){I._isLeaving=!0;const P=()=>k(I,T);qr(I,u),qr(I,h),vy(),Dm(()=>{I._isLeaving&&(kn(I,u),qr(I,f),Pm(y)||Lm(I,r,w,P))}),ts(y,[I,P])},onEnterCancelled(I){S(I,!1),ts(p,[I])},onAppearCancelled(I){S(I,!0),ts(x,[I])},onLeaveCancelled(I){k(I),ts(C,[I])}})}function D8(e){if(e==null)return null;if(We(e))return[pu(e.enter),pu(e.leave)];{const t=pu(e);return[t,t]}}function pu(e){return Uc(e)}function qr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Mo]||(e[Mo]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[Mo];i&&(i.delete(t),i.size||(e[Mo]=void 0))}function Dm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let L8=0;function Lm(e,t,i,r){const n=e._endId=++L8,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=gy(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[m]||"").split(", "),n=r(`${bn}Delay`),s=r(`${bn}Duration`),o=Bm(n,s),a=r(`${pa}Delay`),l=r(`${pa}Duration`),c=Bm(a,l);let d=null,u=0,h=0;t===bn?o>0&&(d=bn,u=o,h=s.length):t===pa?c>0&&(d=pa,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?bn:pa:null,h=d?d===bn?s.length:l.length:0);const f=d===bn&&/\b(transform|all)(,|$)/.test(r(`${bn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Bm(e,t){for(;e.lengthOm(i)+Om(e[r])))}function Om(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vy(){return document.body.offsetHeight}function B8(e,t,i){const r=e[Mo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Qc=Symbol("_vod"),yy=Symbol("_vsh"),by={beforeMount(e,{value:t},{transition:i}){e[Qc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ma(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ma(e,!0),r.enter(e)):r.leave(e,()=>{ma(e,!1)}):ma(e,t))},beforeUnmount(e,{value:t}){ma(e,t)}};function ma(e,t){e.style.display=t?e[Qc]:"none",e[yy]=!t}function O8(){by.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wy=Symbol("");function M8(e){const t=fn();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ef(s,n))},r=()=>{const n=e(t.proxy);Jh(t.subTree,n),i(n)};hn(()=>{U2(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),zd(()=>n.disconnect())})}function Jh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{Jh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ef(e.el,t);else if(e.type===xt)e.children.forEach(i=>Jh(i,t));else if(e.type===$s){let{el:i,anchor:r}=e;for(;i&&(ef(i,t),i!==r);)i=i.nextSibling}}function ef(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[wy]=r}}const V8=/(^|;)\s*display\s*:/;function F8(e,t,i){const r=e.style,n=Ae(i);let s=!1;if(i&&!n){if(t)if(Ae(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&Nc(r,a,"")}else for(const o in t)i[o]==null&&Nc(r,o,"");for(const o in i)o==="display"&&(s=!0),Nc(r,o,i[o])}else if(n){if(t!==i){const o=r[wy];o&&(i+=";"+o),r.cssText=i,s=V8.test(i)}}else t&&e.removeAttribute("style");Qc in e&&(e[Qc]=s?r.display:"",e[yy]&&(r.display="none"))}const Mm=/\s*!important$/;function Nc(e,t,i){if(ne(i))i.forEach(r=>Nc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=z8(e,t);Mm.test(i)?e.setProperty(Wi(r),i.replace(Mm,""),"important"):e[r]=i}}const Vm=["Webkit","Moz","ms"],mu={};function z8(e,t){const i=mu[t];if(i)return i;let r=lt(t);if(r!=="filter"&&r in e)return mu[t]=r;r=Qs(r);for(let n=0;ngu||(q8.then(()=>gu=0),gu=Date.now());function Y8(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;ji(X8(r,i.value),t,5,[r])};return i.value=e,i.attached=j8(),i}function X8(e,t){if(ne(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const Km=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z8=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?B8(e,r,c):t==="style"?F8(e,i,r):Zs(t)?kp(t)||K8(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G8(e,t,r,c))?(H8(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&zm(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zm(e,t,r,c))};function G8(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Km(t)&&ge(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Km(t)&&Ae(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function _y(e,t,i){const r=Hp(e,t);class n extends Kd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const Q8=(e,t)=>_y(e,t,$y),J8=typeof HTMLElement<"u"?HTMLElement:class{};class Kd extends J8{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ld(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),tf(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!ne(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Uc(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=ne(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(lt))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=lt(t);this._numberProps&&this._numberProps[r]&&(i=Uc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(Wi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Wi(t),i+""):i||this.removeAttribute(Wi(t))))}_update(){tf(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ue(this._def,Be({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),Wi(s)!==s&&r(Wi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function e7(e="$style"){{const t=fn();if(!t)return Fe;const i=t.type.__cssModules;if(!i)return Fe;const r=i[e];return r||Fe}}const ky=new WeakMap,Cy=new WeakMap,Jc=Symbol("_moveCb"),Wm=Symbol("_enterCb"),Ay={name:"TransitionGroup",props:Be({},P8,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=fn(),r=qp();let n,s;return Fd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!o7(n[0].el,i.vnode.el,o))return;n.forEach(r7),n.forEach(n7);const a=n.filter(s7);vy(),a.forEach(l=>{const c=l.el,d=c.style;qr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Jc]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[Jc]=null,kn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Oe(e),a=my(o);let l=o.tag||xt;if(n=[],s)for(let c=0;cdelete e.mode;Ay.props;const i7=Ay;function r7(e){const t=e.el;t[Jc]&&t[Jc](),t[Wm]&&t[Wm]()}function n7(e){Cy.set(e,e.el.getBoundingClientRect())}function s7(e){const t=ky.get(e),i=Cy.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function o7(e,t,i){const r=e.cloneNode(),n=e[Mo];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=gy(r);return s.removeChild(r),o}const Hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?i=>Co(t,i):t};function a7(e){e.target.composing=!0}function qm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cr=Symbol("_assign"),ed={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[cr]=Hn(n);const s=r||n.props&&n.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=Hc(a)),e[cr](a)}),i&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",a7),en(e,"compositionend",qm),en(e,"change",qm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[cr]=Hn(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Hc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Zp={deep:!0,created(e,t,i){e[cr]=Hn(i),en(e,"change",()=>{const r=e._modelValue,n=Vo(e),s=e.checked,o=e[cr];if(ne(r)){const a=Rd(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Gs(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(xy(e,s))})},mounted:jm,beforeUpdate(e,t,i){e[cr]=Hn(i),jm(e,t,i)}};function jm(e,{value:t,oldValue:i},r){e._modelValue=t,ne(t)?e.checked=Rd(t,r.props.value)>-1:Gs(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Vn(t,xy(e,!0)))}const Gp={created(e,{value:t},i){e.checked=Vn(t,i.props.value),e[cr]=Hn(i),en(e,"change",()=>{e[cr](Vo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[cr]=Hn(r),t!==i&&(e.checked=Vn(t,r.props.value))}},Ey={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Gs(t);en(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?Hc(Vo(o)):Vo(o));e[cr](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,Ld(()=>{e._assigning=!1})}),e[cr]=Hn(r)},mounted(e,{value:t,modifiers:{number:i}}){Ym(e,t)},beforeUpdate(e,t,i){e[cr]=Hn(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Ym(e,t)}};function Ym(e,t,i){const r=e.multiple,n=ne(t);if(!(r&&!n&&!Gs(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=Rd(t,l)>-1}else a.selected=t.has(l);else if(Vn(Vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}function xy(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Sy={created(e,t,i){dc(e,t,i,null,"created")},mounted(e,t,i){dc(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){dc(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){dc(e,t,i,r,"updated")}};function Ty(e,t){switch(e){case"SELECT":return Ey;case"TEXTAREA":return ed;default:switch(t){case"checkbox":return Zp;case"radio":return Gp;default:return ed}}}function dc(e,t,i,r,n){const o=Ty(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function l7(){ed.getSSRProps=({value:e})=>({value:e}),Gp.getSSRProps=({value:e},t)=>{if(t.props&&Vn(t.props.value,e))return{checked:!0}},Zp.getSSRProps=({value:e},t)=>{if(ne(e)){if(t.props&&Rd(e,t.props.value)>-1)return{checked:!0}}else if(Gs(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sy.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Ty(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const c7=["ctrl","shift","alt","meta"],d7={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>c7.some(i=>e[`${i}Key`]&&!t.includes(i))},u7=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=Wi(n.key);if(t.some(o=>o===s||h7[o]===s))return e(n)})},Ny=Be({patchProp:Z8},$8);let Pa,Xm=!1;function Ry(){return Pa||(Pa=B2(Ny))}function Iy(){return Pa=Xm?Pa:O2(Ny),Xm=!0,Pa}const tf=(...e)=>{Ry().render(...e)},$y=(...e)=>{Iy().hydrate(...e)},Py=(...e)=>{const t=Ry().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=Ly(r);if(!n)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,Dy(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},p7=(...e)=>{const t=Iy().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=Ly(r);if(n)return i(n,!0,Dy(n))},t};function Dy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ly(e){return Ae(e)?document.querySelector(e):e}let Zm=!1;const m7=()=>{Zm||(Zm=!0,l7(),O8())},g7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Z2,BaseTransitionPropsValidators:jp,Comment:zt,DeprecationTypes:N8,EffectScope:xp,ErrorCodes:q3,ErrorTypeStrings:k8,Fragment:xt,KeepAlive:i8,ReactiveEffect:Lo,Static:$s,Suspense:u6,Teleport:l8,Text:Ms,TrackOpTypes:U3,Transition:Xp,TransitionGroup:i7,TriggerOpTypes:K3,VueElement:Kd,assertNumber:W3,callWithAsyncErrorHandling:ji,callWithErrorHandling:sn,camelize:lt,capitalize:Qs,cloneVNode:Br,compatUtils:T8,computed:dy,createApp:Py,createBlock:nl,createCommentVNode:as,createElementBlock:Pr,createElementVNode:ve,createHydrationRenderer:O2,createPropsRestProxy:D6,createRenderer:B2,createSSRApp:p7,createSlots:b6,createStaticVNode:u8,createTextVNode:Ud,createVNode:Ue,customRef:l2,defineAsyncComponent:w6,defineComponent:Hp,defineCustomElement:_y,defineEmits:A6,defineExpose:E6,defineModel:T6,defineOptions:x6,defineProps:C6,defineSSRCustomElement:Q8,defineSlots:S6,devtools:C8,effect:d3,effectScope:a3,getCurrentInstance:fn,getCurrentScope:Kv,getTransitionRawChildren:Hd,guardReactiveProps:iy,h:uy,handleError:Js,hasInjectionContext:U6,hydrate:$y,initCustomFormatter:b8,initDirectivesForSSR:m7,inject:Ra,isMemoSame:hy,isProxy:Ip,isReactive:Ao,isReadonly:Bo,isRef:Xt,isRuntimeOnly:m8,isShallow:Ga,isVNode:zn,markRaw:s2,mergeDefaults:$6,mergeModels:P6,mergeProps:ry,nextTick:Ld,normalizeClass:Il,normalizeProps:X4,normalizeStyle:Os,onActivated:q2,onBeforeMount:zp,onBeforeUnmount:$l,onBeforeUpdate:v2,onDeactivated:j2,onErrorCaptured:_2,onMounted:hn,onRenderTracked:w2,onRenderTriggered:b2,onScopeDispose:l3,onServerPrefetch:y2,onUnmounted:zd,onUpdated:Fd,openBlock:vi,popScopeId:e6,provide:S2,proxyRefs:Lp,pushScopeId:J3,queuePostFlushCb:Wc,reactive:Pd,readonly:Rp,ref:dt,registerRuntimeCompiler:ay,render:tf,renderList:y6,renderSlot:k2,resolveComponent:a6,resolveDirective:c6,resolveDynamicComponent:l6,resolveFilter:S8,resolveTransitionHooks:Oo,setBlockTracking:jh,setDevtoolsHook:A8,setTransitionHooks:Fn,shallowReactive:n2,shallowReadonly:I3,shallowRef:P3,ssrContextKey:z2,ssrUtils:x8,stop:u3,toDisplayString:zv,toHandlerKey:ko,toHandlers:_6,toRaw:Oe,toRef:H3,toRefs:V3,toValue:B3,transformVNodeArgs:c8,triggerRef:L3,unref:Dp,useAttrs:I6,useCssModule:e7,useCssVars:M8,useModel:y8,useSSRContext:H2,useSlots:R6,useTransitionState:qp,vModelCheckbox:Zp,vModelDynamic:Sy,vModelRadio:Gp,vModelSelect:Ey,vModelText:ed,vShow:by,version:fy,warn:_8,watch:No,watchEffect:J6,watchPostEffect:U2,watchSyncEffect:K2,withAsyncContext:L6,withCtx:ls,withDefaults:N6,withDirectives:v6,withKeys:f7,withMemo:w8,withModifiers:u7,withScopeId:t6},Symbol.toStringTag,{value:"Module"}));/** +**/const I8="http://www.w3.org/2000/svg",$8="http://www.w3.org/1998/Math/MathML",Zr=typeof document<"u"?document:null,$m=Zr&&Zr.createElement("template"),P8={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Zr.createElementNS(I8,e):t==="mathml"?Zr.createElementNS($8,e):i?Zr.createElement(e,{is:i}):Zr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Zr.createTextNode(e),createComment:e=>Zr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{$m.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=$m.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},wn="transition",pa="animation",Mo=Symbol("_vtc"),Xp=(e,{slots:t})=>uy(Z2,my(e),t);Xp.displayName="Transition";const py={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D8=Xp.props=Oe({},qp,py),is=(e,t=[])=>{se(e)?e.forEach(i=>i(...t)):e&&e(...t)},Pm=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const R in e)R in py||(t[R]=e[R]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,m=B8(n),b=m&&m[0],v=m&&m[1],{onBeforeEnter:_,onEnter:w,onEnterCancelled:p,onLeave:g,onLeaveCancelled:k,onBeforeAppear:E=_,onAppear:A=w,onAppearCancelled:x=p}=t,S=(R,I,O)=>{kn(R,I?d:a),kn(R,I?c:o),O&&O()},C=(R,I)=>{R._isLeaving=!1,kn(R,u),kn(R,f),kn(R,h),I&&I()},N=R=>(I,O)=>{const F=R?A:w,L=()=>S(I,R,O);is(F,[I,L]),Dm(()=>{kn(I,R?l:s),qr(I,R?d:a),Pm(F)||Bm(I,r,b,L)})};return Oe(t,{onBeforeEnter(R){is(_,[R]),qr(R,s),qr(R,o)},onBeforeAppear(R){is(E,[R]),qr(R,l),qr(R,c)},onEnter:N(!1),onAppear:N(!0),onLeave(R,I){R._isLeaving=!0;const O=()=>C(R,I);qr(R,u),qr(R,h),vy(),Dm(()=>{R._isLeaving&&(kn(R,u),qr(R,f),Pm(g)||Bm(R,r,v,O))}),is(g,[R,O])},onEnterCancelled(R){S(R,!1),is(p,[R])},onAppearCancelled(R){S(R,!0),is(x,[R])},onLeaveCancelled(R){C(R),is(k,[R])}})}function B8(e){if(e==null)return null;if(je(e))return[pu(e.enter),pu(e.leave)];{const t=pu(e);return[t,t]}}function pu(e){return Kc(e)}function qr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Mo]||(e[Mo]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[Mo];i&&(i.delete(t),i.size||(e[Mo]=void 0))}function Dm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let L8=0;function Bm(e,t,i,r){const n=e._endId=++L8,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=gy(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[m]||"").split(", "),n=r(`${wn}Delay`),s=r(`${wn}Duration`),o=Lm(n,s),a=r(`${pa}Delay`),l=r(`${pa}Duration`),c=Lm(a,l);let d=null,u=0,h=0;t===wn?o>0&&(d=wn,u=o,h=s.length):t===pa?c>0&&(d=pa,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?wn:pa:null,h=d?d===wn?s.length:l.length:0);const f=d===wn&&/\b(transform|all)(,|$)/.test(r(`${wn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Lm(e,t){for(;e.lengthOm(i)+Om(e[r])))}function Om(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vy(){return document.body.offsetHeight}function O8(e,t,i){const r=e[Mo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Jc=Symbol("_vod"),yy=Symbol("_vsh"),by={beforeMount(e,{value:t},{transition:i}){e[Jc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ma(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ma(e,!0),r.enter(e)):r.leave(e,()=>{ma(e,!1)}):ma(e,t))},beforeUnmount(e,{value:t}){ma(e,t)}};function ma(e,t){e.style.display=t?e[Jc]:"none",e[yy]=!t}function M8(){by.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wy=Symbol("");function V8(e){const t=pn();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ef(s,n))},r=()=>{const n=e(t.proxy);Jh(t.subTree,n),i(n)};fn(()=>{U2(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),zd(()=>n.disconnect())})}function Jh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{Jh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ef(e.el,t);else if(e.type===Rt)e.children.forEach(i=>Jh(i,t));else if(e.type===$s){let{el:i,anchor:r}=e;for(;i&&(ef(i,t),i!==r);)i=i.nextSibling}}function ef(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[wy]=r}}const F8=/(^|;)\s*display\s*:/;function z8(e,t,i){const r=e.style,n=Ae(i);let s=!1;if(i&&!n){if(t)if(Ae(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&Rc(r,a,"")}else for(const o in t)i[o]==null&&Rc(r,o,"");for(const o in i)o==="display"&&(s=!0),Rc(r,o,i[o])}else if(n){if(t!==i){const o=r[wy];o&&(i+=";"+o),r.cssText=i,s=F8.test(i)}}else t&&e.removeAttribute("style");Jc in e&&(e[Jc]=s?r.display:"",e[yy]&&(r.display="none"))}const Mm=/\s*!important$/;function Rc(e,t,i){if(se(i))i.forEach(r=>Rc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=H8(e,t);Mm.test(i)?e.setProperty(qi(r),i.replace(Mm,""),"important"):e[r]=i}}const Vm=["Webkit","Moz","ms"],mu={};function H8(e,t){const i=mu[t];if(i)return i;let r=ut(t);if(r!=="filter"&&r in e)return mu[t]=r;r=Qs(r);for(let n=0;ngu||(q8.then(()=>gu=0),gu=Date.now());function X8(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;Xi(Z8(r,i.value),t,5,[r])};return i.value=e,i.attached=Y8(),i}function Z8(e,t){if(se(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const Km=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,G8=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?O8(e,r,c):t==="style"?z8(e,i,r):Zs(t)?Cp(t)||W8(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q8(e,t,r,c))?(U8(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&zm(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zm(e,t,r,c))};function Q8(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Km(t)&&ve(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Km(t)&&Ae(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function _y(e,t,i){const r=Hp(e,t);class n extends Kd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const J8=(e,t)=>_y(e,t,$y),e7=typeof HTMLElement<"u"?HTMLElement:class{};class Kd extends e7{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,$l(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),tf(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!se(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Kc(this._props[l])),(a||(a=Object.create(null)))[ut(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=se(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(ut))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=ut(t);this._numberProps&&this._numberProps[r]&&(i=Kc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(qi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(qi(t),i+""):i||this.removeAttribute(qi(t))))}_update(){tf(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ke(this._def,Oe({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),qi(s)!==s&&r(qi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function t7(e="$style"){{const t=pn();if(!t)return ze;const i=t.type.__cssModules;if(!i)return ze;const r=i[e];return r||ze}}const Cy=new WeakMap,ky=new WeakMap,ed=Symbol("_moveCb"),Wm=Symbol("_enterCb"),Ay={name:"TransitionGroup",props:Oe({},D8,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=pn(),r=jp();let n,s;return Fd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!a7(n[0].el,i.vnode.el,o))return;n.forEach(n7),n.forEach(s7);const a=n.filter(o7);vy(),a.forEach(l=>{const c=l.el,d=c.style;qr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[ed]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[ed]=null,kn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Me(e),a=my(o);let l=o.tag||Rt;if(n=[],s)for(let c=0;cdelete e.mode;Ay.props;const r7=Ay;function n7(e){const t=e.el;t[ed]&&t[ed](),t[Wm]&&t[Wm]()}function s7(e){ky.set(e,e.el.getBoundingClientRect())}function o7(e){const t=Cy.get(e),i=ky.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function a7(e,t,i){const r=e.cloneNode(),n=e[Mo];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=gy(r);return s.removeChild(r),o}const Un=e=>{const t=e.props["onUpdate:modelValue"]||!1;return se(t)?i=>ko(t,i):t};function l7(e){e.target.composing=!0}function jm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),td={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[ur]=Un(n);const s=r||n.props&&n.props.type==="number";tn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=Uc(a)),e[ur](a)}),i&&tn(e,"change",()=>{e.value=e.value.trim()}),t||(tn(e,"compositionstart",l7),tn(e,"compositionend",jm),tn(e,"change",jm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[ur]=Un(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Uc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Zp={deep:!0,created(e,t,i){e[ur]=Un(i),tn(e,"change",()=>{const r=e._modelValue,n=Vo(e),s=e.checked,o=e[ur];if(se(r)){const a=Id(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Gs(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(xy(e,s))})},mounted:qm,beforeUpdate(e,t,i){e[ur]=Un(i),qm(e,t,i)}};function qm(e,{value:t,oldValue:i},r){e._modelValue=t,se(t)?e.checked=Id(t,r.props.value)>-1:Gs(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Fn(t,xy(e,!0)))}const Gp={created(e,{value:t},i){e.checked=Fn(t,i.props.value),e[ur]=Un(i),tn(e,"change",()=>{e[ur](Vo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[ur]=Un(r),t!==i&&(e.checked=Fn(t,r.props.value))}},Ey={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Gs(t);tn(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?Uc(Vo(o)):Vo(o));e[ur](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,$l(()=>{e._assigning=!1})}),e[ur]=Un(r)},mounted(e,{value:t,modifiers:{number:i}}){Ym(e,t)},beforeUpdate(e,t,i){e[ur]=Un(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Ym(e,t)}};function Ym(e,t,i){const r=e.multiple,n=se(t);if(!(r&&!n&&!Gs(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=Id(t,l)>-1}else a.selected=t.has(l);else if(Fn(Vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}function xy(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Sy={created(e,t,i){uc(e,t,i,null,"created")},mounted(e,t,i){uc(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){uc(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){uc(e,t,i,r,"updated")}};function Ny(e,t){switch(e){case"SELECT":return Ey;case"TEXTAREA":return td;default:switch(t){case"checkbox":return Zp;case"radio":return Gp;default:return td}}}function uc(e,t,i,r,n){const o=Ny(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function c7(){td.getSSRProps=({value:e})=>({value:e}),Gp.getSSRProps=({value:e},t)=>{if(t.props&&Fn(t.props.value,e))return{checked:!0}},Zp.getSSRProps=({value:e},t)=>{if(se(e)){if(t.props&&Id(e,t.props.value)>-1)return{checked:!0}}else if(Gs(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sy.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Ny(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const d7=["ctrl","shift","alt","meta"],u7={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>d7.some(i=>e[`${i}Key`]&&!t.includes(i))},h7=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=qi(n.key);if(t.some(o=>o===s||f7[o]===s))return e(n)})},Ty=Oe({patchProp:G8},P8);let Pa,Xm=!1;function Ry(){return Pa||(Pa=L2(Ty))}function Iy(){return Pa=Xm?Pa:O2(Ty),Xm=!0,Pa}const tf=(...e)=>{Ry().render(...e)},$y=(...e)=>{Iy().hydrate(...e)},Py=(...e)=>{const t=Ry().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=By(r);if(!n)return;const s=t._component;!ve(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,Dy(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},m7=(...e)=>{const t=Iy().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=By(r);if(n)return i(n,!0,Dy(n))},t};function Dy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function By(e){return Ae(e)?document.querySelector(e):e}let Zm=!1;const g7=()=>{Zm||(Zm=!0,c7(),M8())},v7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Z2,BaseTransitionPropsValidators:qp,Comment:Wt,DeprecationTypes:R8,EffectScope:xp,ErrorCodes:q3,ErrorTypeStrings:k8,Fragment:Rt,KeepAlive:r8,ReactiveEffect:Bo,Static:$s,Suspense:h6,Teleport:c8,Text:Ms,TrackOpTypes:K3,Transition:Xp,TransitionGroup:r7,TriggerOpTypes:W3,VueElement:Kd,assertNumber:j3,callWithAsyncErrorHandling:Xi,callWithErrorHandling:on,camelize:ut,capitalize:Qs,cloneVNode:Or,compatUtils:T8,computed:dy,createApp:Py,createBlock:nl,createCommentVNode:Nt,createElementBlock:ht,createElementVNode:Se,createHydrationRenderer:O2,createPropsRestProxy:B6,createRenderer:L2,createSSRApp:m7,createSlots:w6,createStaticVNode:h8,createTextVNode:Ud,createVNode:Ke,customRef:l2,defineAsyncComponent:_6,defineComponent:Hp,defineCustomElement:_y,defineEmits:E6,defineExpose:x6,defineModel:T6,defineOptions:S6,defineProps:A6,defineSSRCustomElement:J8,defineSlots:N6,devtools:A8,effect:u3,effectScope:l3,getCurrentInstance:pn,getCurrentScope:Kv,getTransitionRawChildren:Hd,guardReactiveProps:iy,h:uy,handleError:Js,hasInjectionContext:K6,hydrate:$y,initCustomFormatter:w8,initDirectivesForSSR:g7,inject:Ra,isMemoSame:hy,isProxy:Ip,isReactive:Ao,isReadonly:Lo,isRef:Jt,isRuntimeOnly:g8,isShallow:Ga,isVNode:Hn,markRaw:s2,mergeDefaults:P6,mergeModels:D6,mergeProps:ry,nextTick:$l,normalizeClass:Il,normalizeProps:Z4,normalizeStyle:Os,onActivated:j2,onBeforeMount:zp,onBeforeUnmount:Pl,onBeforeUpdate:v2,onDeactivated:q2,onErrorCaptured:_2,onMounted:fn,onRenderTracked:w2,onRenderTriggered:b2,onScopeDispose:c3,onServerPrefetch:y2,onUnmounted:zd,onUpdated:Fd,openBlock:Je,popScopeId:t6,provide:S2,proxyRefs:Bp,pushScopeId:e6,queuePostFlushCb:jc,reactive:Dd,readonly:Rp,ref:it,registerRuntimeCompiler:ay,render:tf,renderList:b6,renderSlot:C2,resolveComponent:l6,resolveDirective:d6,resolveDynamicComponent:c6,resolveFilter:N8,resolveTransitionHooks:Oo,setBlockTracking:qh,setDevtoolsHook:E8,setTransitionHooks:zn,shallowReactive:n2,shallowReadonly:$3,shallowRef:D3,ssrContextKey:z2,ssrUtils:S8,stop:h3,toDisplayString:zv,toHandlerKey:Co,toHandlers:C6,toRaw:Me,toRef:U3,toRefs:F3,toValue:O3,transformVNodeArgs:d8,triggerRef:L3,unref:Dp,useAttrs:$6,useCssModule:t7,useCssVars:V8,useModel:b8,useSSRContext:H2,useSlots:I6,useTransitionState:jp,vModelCheckbox:Zp,vModelDynamic:Sy,vModelRadio:Gp,vModelSelect:Ey,vModelText:td,vShow:by,version:fy,warn:C8,watch:To,watchEffect:e8,watchPostEffect:U2,watchSyncEffect:K2,withAsyncContext:L6,withCtx:ls,withDefaults:R6,withDirectives:y6,withKeys:p7,withMemo:_8,withModifiers:h7,withScopeId:i6},Symbol.toStringTag,{value:"Module"}));/** * @vue/compiler-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const sl=Symbol(""),Da=Symbol(""),Qp=Symbol(""),td=Symbol(""),By=Symbol(""),zs=Symbol(""),Oy=Symbol(""),My=Symbol(""),Jp=Symbol(""),e0=Symbol(""),Ol=Symbol(""),t0=Symbol(""),Vy=Symbol(""),i0=Symbol(""),r0=Symbol(""),n0=Symbol(""),s0=Symbol(""),o0=Symbol(""),a0=Symbol(""),Fy=Symbol(""),zy=Symbol(""),Wd=Symbol(""),id=Symbol(""),l0=Symbol(""),c0=Symbol(""),ol=Symbol(""),Ml=Symbol(""),d0=Symbol(""),rf=Symbol(""),v7=Symbol(""),nf=Symbol(""),rd=Symbol(""),y7=Symbol(""),b7=Symbol(""),u0=Symbol(""),w7=Symbol(""),_7=Symbol(""),h0=Symbol(""),Hy=Symbol(""),Fo={[sl]:"Fragment",[Da]:"Teleport",[Qp]:"Suspense",[td]:"KeepAlive",[By]:"BaseTransition",[zs]:"openBlock",[Oy]:"createBlock",[My]:"createElementBlock",[Jp]:"createVNode",[e0]:"createElementVNode",[Ol]:"createCommentVNode",[t0]:"createTextVNode",[Vy]:"createStaticVNode",[i0]:"resolveComponent",[r0]:"resolveDynamicComponent",[n0]:"resolveDirective",[s0]:"resolveFilter",[o0]:"withDirectives",[a0]:"renderList",[Fy]:"renderSlot",[zy]:"createSlots",[Wd]:"toDisplayString",[id]:"mergeProps",[l0]:"normalizeClass",[c0]:"normalizeStyle",[ol]:"normalizeProps",[Ml]:"guardReactiveProps",[d0]:"toHandlers",[rf]:"camelize",[v7]:"capitalize",[nf]:"toHandlerKey",[rd]:"setBlockTracking",[y7]:"pushScopeId",[b7]:"popScopeId",[u0]:"withCtx",[w7]:"unref",[_7]:"isRef",[h0]:"withMemo",[Hy]:"isMemoSame"};function k7(e){Object.getOwnPropertySymbols(e).forEach(t=>{Fo[t]=e[t]})}const Qi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function C7(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Qi}}function al(e,t,i,r,n,s,o,a=!1,l=!1,c=!1,d=Qi){return e&&(a?(e.helper(zs),e.helper(Uo(e.inSSR,c))):e.helper(Ho(e.inSSR,c)),o&&e.helper(o0)),{type:13,tag:t,props:i,children:r,patchFlag:n,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function Vl(e,t=Qi){return{type:17,loc:t,elements:e}}function ar(e,t=Qi){return{type:15,loc:t,properties:e}}function bt(e,t){return{type:16,loc:Qi,key:Ae(e)?Se(e,!0):e,value:t}}function Se(e,t=!1,i=Qi,r=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:r}}function kr(e,t=Qi){return{type:8,loc:t,children:e}}function St(e,t=[],i=Qi){return{type:14,loc:i,callee:e,arguments:t}}function zo(e,t=void 0,i=!1,r=!1,n=Qi){return{type:18,params:e,returns:t,newline:i,isSlot:r,loc:n}}function sf(e,t,i,r=!0){return{type:19,test:e,consequent:t,alternate:i,newline:r,loc:Qi}}function A7(e,t,i=!1){return{type:20,index:e,value:t,isVNode:i,loc:Qi}}function E7(e){return{type:21,body:e,loc:Qi}}function Ho(e,t){return e||t?Jp:e0}function Uo(e,t){return e||t?Oy:My}function f0(e,{helper:t,removeHelper:i,inSSR:r}){e.isBlock||(e.isBlock=!0,i(Ho(r,e.isComponent)),t(zs),t(Uo(r,e.isComponent)))}const Gm=new Uint8Array([123,123]),Qm=new Uint8Array([125,125]);function Jm(e){return e>=97&&e<=122||e>=65&&e<=90}function Ui(e){return e===32||e===10||e===9||e===12||e===13}function wn(e){return e===47||e===62||Ui(e)}function nd(e){const t=new Uint8Array(e.length);for(let i=0;i=0;n--){const s=this.newlines[n];if(t>s){i=n+2,r=t-s;break}}return{column:r,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?wn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ui(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===ii.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function e1(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function Ps(e,t){const i=e1("MODE",t),r=e1(e,t);return i===3?r===!0:r!==!1}function ll(e,t,i,...r){return Ps(e,t)}function p0(e){throw e}function Uy(e){}function st(e,t,i,r){const n=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(n));return s.code=e,s.loc=t,s}const Ri=e=>e.type===4&&e.isStatic;function Ky(e){switch(e){case"Teleport":case"teleport":return Da;case"Suspense":case"suspense":return Qp;case"KeepAlive":case"keep-alive":return td;case"BaseTransition":case"base-transition":return By}}const S7=/^\d|[^\$\w\xA0-\uFFFF]/,m0=e=>!S7.test(e),T7=/[A-Za-z_$\xA0-\uFFFF]/,N7=/[\.\?\w$\xA0-\uFFFF]/,R7=/\s+[.[]\s*|\s*[.[]\s+/g,I7=e=>{e=e.trim().replace(R7,o=>o.trim());let t=0,i=[],r=0,n=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function vu(e){return e.type===5||e.type===2}function P7(e){return e.type===7&&e.name==="slot"}function sd(e){return e.type===1&&e.tagType===3}function od(e){return e.type===1&&e.tagType===2}const D7=new Set([ol,Ml]);function qy(e,t=[]){if(e&&!Ae(e)&&e.type===14){const i=e.callee;if(!Ae(i)&&D7.has(i))return qy(e.arguments[0],t.concat(e))}return[e,t]}function ad(e,t,i){let r,n=e.type===13?e.props:e.arguments[2],s=[],o;if(n&&!Ae(n)&&n.type===14){const a=qy(n);n=a[0],s=a[1],o=s[s.length-1]}if(n==null||Ae(n))r=ar([t]);else if(n.type===14){const a=n.arguments[0];!Ae(a)&&a.type===15?t1(t,a)||a.properties.unshift(t):n.callee===d0?r=St(i.helper(id),[ar([t]),n]):n.arguments.unshift(ar([t])),!r&&(r=n)}else n.type===15?(t1(t,n)||n.properties.unshift(t),r=n):(r=St(i.helper(id),[ar([t]),n]),o&&o.callee===Ml&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function t1(e,t){let i=!1;if(e.key.type===4){const r=e.key.content;i=t.properties.some(n=>n.key.type===4&&n.key.content===r)}return i}function cl(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,r)=>i==="-"?"_":e.charCodeAt(r).toString())}`}function L7(e){return e.type===14&&e.callee===h0?e.arguments[1].returns:e}const B7=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,jy={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xc,isPreTag:xc,isCustomElement:xc,onError:p0,onWarn:Uy,comments:!1,prefixIdentifiers:!1};let He=jy,dl=null,on="",si=null,Le=null,Ei="",jr=-1,ns=-1,ld=0,xn=!1,of=null;const rt=[],ut=new x7(rt,{onerr:Ur,ontext(e,t){uc(Wt(e,t),e,t)},ontextentity(e,t,i){uc(e,t,i)},oninterpolation(e,t){if(xn)return uc(Wt(e,t),e,t);let i=e+ut.delimiterOpen.length,r=t-ut.delimiterClose.length;for(;Ui(on.charCodeAt(i));)i++;for(;Ui(on.charCodeAt(r-1));)r--;let n=Wt(i,r);n.includes("&")&&(n=He.decodeEntities(n,!1)),af({type:5,content:Ic(n,!1,Et(i,r)),loc:Et(e,t)})},onopentagname(e,t){const i=Wt(e,t);si={type:1,tag:i,ns:He.getNamespace(i,rt[0],He.ns),tagType:0,props:[],children:[],loc:Et(e-1,t),codegenNode:void 0}},onopentagend(e){r1(e)},onclosetag(e,t){const i=Wt(e,t);if(!He.isVoidTag(i)){let r=!1;for(let n=0;n0&&Ur(24,rt[0].loc.start.offset);for(let o=0;o<=n;o++){const a=rt.shift();Rc(a,t,o(r.type===7?r.rawName:r.name)===i)&&Ur(2,t)},onattribend(e,t){if(si&&Le){if(ds(Le.loc,t),e!==0)if(Ei.includes("&")&&(Ei=He.decodeEntities(Ei,!0)),Le.type===6)Le.name==="class"&&(Ei=Zy(Ei).trim()),e===1&&!Ei&&Ur(13,t),Le.value={type:2,content:Ei,loc:e===1?Et(jr,ns):Et(jr-1,ns+1)},ut.inSFCRoot&&si.tag==="template"&&Le.name==="lang"&&Ei&&Ei!=="html"&&ut.enterRCDATA(nd("-1&&ll("COMPILER_V_BIND_SYNC",He,Le.loc,Le.rawName)&&(Le.name="model",Le.modifiers.splice(r,1))}(Le.type!==7||Le.name!=="pre")&&si.props.push(Le)}Ei="",jr=ns=-1},oncomment(e,t){He.comments&&af({type:3,content:Wt(e,t),loc:Et(e-4,t+3)})},onend(){const e=on.length;for(let t=0;t{const m=t.start.offset+h,b=m+u.length;return Ic(u,!1,Et(m,b),0,f?1:0)},a={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(O7,"").trim();const c=n.indexOf(l),d=l.match(i1);if(d){l=l.replace(i1,"").trim();const u=d[1].trim();let h;if(u&&(h=i.indexOf(u,c+l.length),a.key=o(u,h,!0)),d[2]){const f=d[2].trim();f&&(a.index=o(f,i.indexOf(f,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Wt(e,t){return on.slice(e,t)}function r1(e){ut.inSFCRoot&&(si.innerLoc=Et(e+1,e+1)),af(si);const{tag:t,ns:i}=si;i===0&&He.isPreTag(t)&&ld++,He.isVoidTag(t)?Rc(si,e):(rt.unshift(si),(i===1||i===2)&&(ut.inXML=!0)),si=null}function uc(e,t,i){{const s=rt[0]&&rt[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=He.decodeEntities(e,!1))}const r=rt[0]||dl,n=r.children[r.children.length-1];n&&n.type===2?(n.content+=e,ds(n.loc,i)):r.children.push({type:2,content:e,loc:Et(t,i)})}function Rc(e,t,i=!1){i?ds(e.loc,Yy(t,60)):ds(e.loc,V7(t,62)+1),ut.inSFCRoot&&(e.children.length?e.innerLoc.end=Be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Be({},e.innerLoc.start),e.innerLoc.source=Wt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:n}=e;xn||(r==="slot"?e.tagType=2:n1(e)?e.tagType=3:z7(e)&&(e.tagType=1)),ut.inRCDATA||(e.children=Xy(e.children,e.tag)),n===0&&He.isPreTag(r)&&ld--,of===e&&(xn=ut.inVPre=!1,of=null),ut.inXML&&(rt[0]?rt[0].ns:He.ns)===0&&(ut.inXML=!1);{const s=e.props;if(!ut.inSFCRoot&&Ps("COMPILER_NATIVE_TEMPLATE",He)&&e.tag==="template"&&!n1(e)){const a=rt[0]||dl,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&ll("COMPILER_INLINE_TEMPLATE",He,o.loc)&&e.children.length&&(o.value={type:2,content:Wt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function V7(e,t){let i=e;for(;on.charCodeAt(i)!==t&&i=0;)i--;return i}const F7=new Set(["if","else","else-if","for","slot"]);function n1({tag:e,props:t}){if(e==="template"){for(let i=0;i64&&e<91}const U7=/\r\n/g;function Xy(e,t){const i=He.whitespace!=="preserve";let r=!1;for(let n=0;n0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=tb(c);if((!d||d===512||d===1)&&Jy(a,t)>=2){const u=eb(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,$c(a,t),l&&t.scopes.vSlot--}else if(a.type===11)$c(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cN&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(N,1)},onNodeRemoved:Nt,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Ae(S)&&(S=Se(S)),x.hoists.push(S);const k=Se(`_hoisted_${x.hoists.length}`,!1,S.loc,2);return k.hoisted=S,k},cache(S,k=!1){return A7(x.cached++,S,k)}};return x.filters=new Set,x}function Q7(e,t){const i=G7(e,t);jd(e,i),t.hoistStatic&&X7(e,i),t.ssr||J7(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function J7(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Gy(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&f0(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=al(t,i(sl),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function ew(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(P7))return;const o=[];for(let a=0;a`${Fo[e]}: _${Fo[e]}`;function tw(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${Fo[b]}`},push(b,w=-2,_){f.code+=b},indent(){m(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(b){f.push(` -`+" ".repeat(b),0)}return f}function iw(e,t={}){const i=tw(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:r,push:n,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),h=u.length>0,f=!s&&r!=="module";rw(e,i);const b=d?"ssrRender":"render",_=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(n(`function ${b}(${_}) {`),o(),f&&(n("with (_ctx) {"),o(),h&&(n(`const { ${u.map(rb).join(", ")} } = _Vue -`,-1),l())),e.components.length&&(yu(e.components,"component",i),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(yu(e.directives,"directive",i),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),yu(e.filters,"filter",i),l()),e.temps>0){n("let ");for(let g=0;g0?", ":""}_temp${g}`)}return(e.components.length||e.directives.length||e.temps)&&(n(` -`,0),l()),d||n("return "),e.codegenNode?li(e.codegenNode,i):n("null"),f&&(a(),n("}")),a(),n("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function rw(e,t){const{ssr:i,prefixIdentifiers:r,push:n,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);if(d.length>0&&(n(`const _Vue = ${c} -`,-1),e.hoists.length)){const u=[Jp,e0,Ol,t0,Vy].filter(h=>d.includes(h)).map(rb).join(", ");n(`const { ${u} } = _Vue -`,-1)}nw(e.hoists,t),s(),n("return ")}function yu(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?s0:t==="component"?i0:n0);for(let a=0;a3||!1;t.push("["),i&&t.indent(),Fl(e,t,i),i&&t.deindent(),t.push("]")}function Fl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function uw(e,t){const{push:i,helper:r,pure:n}=t,s=Ae(e.callee)?e.callee:r(e.callee);n&&i(Yd),i(s+"(",-2,e),Fl(e.arguments,t),i(")")}function hw(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),ne(o)?g0(o,t):li(o,t)):a&&li(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function mw(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!m0(i.content);u&&o("("),nb(i,t),u&&o(")")}else o("("),li(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),li(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,li(n,t),d||t.indentLevel--,s&&l(!0)}function gw(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(rd)}(-1),`),o()),i(`_cache[${e.index}] = `),li(e.value,t),e.isVNode&&(i(","),o(),i(`${r(rd)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const vw=ib(/^(if|else|else-if)$/,(e,t,i)=>yw(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=o1(n,l,i);else{const c=bw(r.codegenNode);c.alternate=o1(n,l+r.branches.length-1,i)}}}));function yw(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(st(28,t.loc)),t.exp=Se("true",!1,n)}if(t.name==="if"){const n=s1(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(st(30,e.loc)),i.removeNode();const a=s1(e,t);o.branches.push(a);const l=r&&r(o,a,!1);jd(a,i),l&&l(),i.currentNode=null}else i.onError(st(30,e.loc));break}}}function s1(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!yr(e,"for")?e.children:[e],userKey:qd(e,"key"),isTemplateIf:i}}function o1(e,t,i){return e.condition?sf(e.condition,a1(e,t,i),St(i.helper(Ol),['""',"true"])):a1(e,t,i)}function a1(e,t,i){const{helper:r}=i,n=bt("key",Se(`${t}`,!1,Qi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return ad(l,n,i),l}else return al(i,r(sl),ar([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=L7(l);return c.type===13&&f0(c,i),ad(c,n,i),l}}function bw(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ww=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(st(52,s.loc)),{props:[bt(s,Se("",!0,n))]};ob(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=lt(s.content):s.content=`${i.helperString(rf)}(${s.content})`:(s.children.unshift(`${i.helperString(rf)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&l1(s,"."),r.includes("attr")&&l1(s,"^")),{props:[bt(s,o)]}},ob=(e,t)=>{const i=e.arg,r=lt(i.content);e.exp=Se(r,!1,i.loc)},l1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_w=ib("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return kw(e,t,i,s=>{const o=St(r(a0),[s.source]),a=sd(e),l=yr(e,"memo"),c=qd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ob(c);const d=c&&(c.type===6?c.value?Se(c.value.content,!0):void 0:c.exp),u=c&&d?bt("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=al(i,r(sl),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:b}=s,w=b.length!==1||b[0].type!==1,_=od(e)?e:a&&e.children.length===1&&od(e.children[0])?e.children[0]:null;if(_?(m=_.codegenNode,a&&u&&ad(m,u,i)):w?m=al(i,r(sl),u?ar([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(m=b[0].codegenNode,a&&u&&ad(m,u,i),m.isBlock!==!h&&(m.isBlock?(n(zs),n(Uo(i.inSSR,m.isComponent))):n(Ho(i.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(zs),r(Uo(i.inSSR,m.isComponent))):r(Ho(i.inSSR,m.isComponent))),l){const g=zo(lf(s.parseResult,[Se("_cached")]));g.body=E7([kr(["const _memo = (",l.exp,")"]),kr(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(Hy)}(_cached, _memo)) return _cached`]),kr(["const _item = ",m]),Se("_item.memo = _memo"),Se("return _item")]),o.arguments.push(g,Se("_cache"),Se(String(i.cached++)))}else o.arguments.push(zo(lf(s.parseResult),m,!0))}})});function kw(e,t,i,r){if(!t.exp){i.onError(st(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(st(32,t.loc));return}ab(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:sd(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function ab(e,t){e.finalized||(e.finalized=!0)}function lf({value:e,key:t,index:i},r=[]){return Cw([e,t,i,...r])}function Cw(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Se("_".repeat(r+1),!1))}const c1=Se("undefined",!1),Aw=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=yr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Ew=(e,t,i,r)=>zo(e,i,!1,!0,i.length?i[0].loc:r);function xw(e,t,i=Ew){t.helper(u0);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=yr(e,"slot",!0);if(l){const{arg:w,exp:_}=l;w&&!Ri(w)&&(a=!0),s.push(bt(w||Se("default",!0),i(_,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let w=0;w{const p=i(_,void 0,g,n);return t.compatConfig&&(p.isNonScopedSlot=!0),bt("default",p)};c?u.length&&u.some(_=>lb(_))&&(d?t.onError(st(39,u[0].loc)):s.push(w(void 0,u))):s.push(w(void 0,r))}const m=a?2:Pc(e.children)?3:1;let b=ar(s.concat(bt("_",Se(m+"",!1))),n);return o.length&&(b=St(t.helper(zy),[b,Vl(o)])),{slots:b,hasDynamicSlots:a}}function hc(e,t,i){const r=[bt("name",e),bt("fn",t)];return i!=null&&r.push(bt("key",Se(String(i),!0))),ar(r)}function Pc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?Tw(e,t):`"${r}"`;const a=We(o)&&o.callee===r0;let l,c,d,u=0,h,f,m,b=a||o===Da||o===Qp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const w=db(e,t,void 0,s,a);l=w.props,u=w.patchFlag,f=w.dynamicPropNames;const _=w.directives;m=_&&_.length?Vl(_.map(g=>Rw(g,t))):void 0,w.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===td&&(b=!0,u|=1024),s&&o!==Da&&o!==td){const{slots:_,hasDynamicSlots:g}=xw(e,t);c=_,g&&(u|=1024)}else if(e.children.length===1&&o!==Da){const _=e.children[0],g=_.type,p=g===5||g===8;p&&lr(_,t)===0&&(u|=1),p||g===2?c=_:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=Iw(f))),e.codegenNode=al(t,o,l,c,d,h,m,!!b,!1,s,e.loc)};function Tw(e,t,i=!1){let{tag:r}=e;const n=cf(r),s=qd(e,"is",!1,!0);if(s)if(n||Ps("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Se(s.value.content,!0):(a=s.exp,a||(a=Se("is",!1,s.loc))),a)return St(t.helper(r0),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=Ky(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(i0),t.components.add(r),cl(r,"component"))}function db(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,m=0,b=!1,w=!1,_=!1,g=!1,p=!1,y=!1;const C=[],E=k=>{c.length&&(d.push(ar(d1(c),a)),c=[]),k&&d.push(k)},A=()=>{t.scopes.vFor>0&&c.push(bt(Se("ref_for",!0),Se("true")))},x=({key:k,value:N})=>{if(Ri(k)){const I=k.content,T=Zs(I);if(T&&(!r||n)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!$n(I)&&(g=!0),T&&$n(I)&&(y=!0),T&&N.type===14&&(N=N.arguments[0]),N.type===20||(N.type===4||N.type===8)&&lr(N,t)>0)return;I==="ref"?b=!0:I==="class"?w=!0:I==="style"?_=!0:I!=="key"&&!C.includes(I)&&C.push(I),r&&(I==="class"||I==="style")&&!C.includes(I)&&C.push(I)}else p=!0};for(let k=0;k1?S=St(t.helper(id),d,a):S=d[0]):c.length&&(S=ar(d1(c),a)),p?m|=16:(w&&!r&&(m|=2),_&&!r&&(m|=4),C.length&&(m|=8),g&&(m|=32)),!f&&(m===0||m===32)&&(b||y||u.length>0)&&(m|=512),!t.inSSR&&S)switch(S.type){case 15:let k=-1,N=-1,I=!1;for(let O=0;Obt(o,s)),n))}return Vl(i,e.loc)}function Iw(e){let t="[";for(let i=0,r=e.length;i{if(od(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=Pw(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=zo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=St(t.helper(Fy),o,r)}};function Pw(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=db(e,t,n,!1,!1);r=s,o.length&&t.onError(st(36,o[0].loc))}return{slotName:i,slotProps:r}}const Dw=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ub=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(st(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?ko(lt(u)):`on:${u}`;a=Se(h,!0,o.loc)}else a=kr([`${i.helperString(nf)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(nf)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=Wy(l.content),h=!(u||Dw.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=kr([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[bt(a,l||Se("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},Lw=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&yr(e,"once",!0))return u1.has(e)||t.inVOnce||t.inSSR?void 0:(u1.add(e),t.inVOnce=!0,t.helper(rd),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},hb=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(st(41,e.loc)),fc();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(st(44,r.loc)),fc();if(!o.trim()||!Wy(o)&&!!1)return i.onError(st(42,r.loc)),fc();const c=n||Se("modelValue",!0),d=n?Ri(n)?`onUpdate:${lt(n.content)}`:kr(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=kr([`${h} => ((`,r,") = $event)"]);const f=[bt(c,e.exp),bt(d,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(w=>(m0(w)?w:JSON.stringify(w))+": true").join(", "),b=n?Ri(n)?`${n.content}Modifiers`:kr([n,' + "Modifiers"']):"modelModifiers";f.push(bt(b,Se(`{ ${m} }`,!1,e.loc,2)))}return fc(f)};function fc(e=[]){return{props:e}}const Ow=/[\w).+\-_$\]]/,Mw=(e,t)=>{Ps("COMPILER_FILTERS",t)&&(e.type===5&&cd(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&cd(i.exp,t)}))};function cd(e,t){if(e.type===4)h1(e,t);else for(let i=0;i=0&&(g=i.charAt(_),g===" ");_--);(!g||!Ow.test(g))&&(o=!0)}}m===void 0?m=i.slice(0,f).trim():d!==0&&w();function w(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=yr(e,"memo");return!i||f1.has(e)?void 0:(f1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&f0(r,t),e.codegenNode=St(t.helper(h0),[i.exp,zo(void 0,r),"_cache",String(t.cached++)]))})}};function zw(e){return[[Bw,vw,Fw,_w,Mw,$w,Sw,Aw,Lw],{on:ub,bind:ww,model:hb}]}function Hw(e,t={}){const i=t.onError||p0,r=t.mode==="module";t.prefixIdentifiers===!0?i(st(47)):r&&i(st(48));const n=!1;t.cacheHandlers&&i(st(49)),t.scopeId&&!r&&i(st(50));const s=Be({},t,{prefixIdentifiers:n}),o=Ae(e)?Y7(e,s):e,[a,l]=zw();return Q7(o,Be({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},l,t.directiveTransforms||{})})),iw(o,s)}const Uw=()=>({props:[]});/** +**/const sl=Symbol(""),Da=Symbol(""),Qp=Symbol(""),id=Symbol(""),Ly=Symbol(""),zs=Symbol(""),Oy=Symbol(""),My=Symbol(""),Jp=Symbol(""),e0=Symbol(""),Ml=Symbol(""),t0=Symbol(""),Vy=Symbol(""),i0=Symbol(""),r0=Symbol(""),n0=Symbol(""),s0=Symbol(""),o0=Symbol(""),a0=Symbol(""),Fy=Symbol(""),zy=Symbol(""),Wd=Symbol(""),rd=Symbol(""),l0=Symbol(""),c0=Symbol(""),ol=Symbol(""),Vl=Symbol(""),d0=Symbol(""),rf=Symbol(""),y7=Symbol(""),nf=Symbol(""),nd=Symbol(""),b7=Symbol(""),w7=Symbol(""),u0=Symbol(""),_7=Symbol(""),C7=Symbol(""),h0=Symbol(""),Hy=Symbol(""),Fo={[sl]:"Fragment",[Da]:"Teleport",[Qp]:"Suspense",[id]:"KeepAlive",[Ly]:"BaseTransition",[zs]:"openBlock",[Oy]:"createBlock",[My]:"createElementBlock",[Jp]:"createVNode",[e0]:"createElementVNode",[Ml]:"createCommentVNode",[t0]:"createTextVNode",[Vy]:"createStaticVNode",[i0]:"resolveComponent",[r0]:"resolveDynamicComponent",[n0]:"resolveDirective",[s0]:"resolveFilter",[o0]:"withDirectives",[a0]:"renderList",[Fy]:"renderSlot",[zy]:"createSlots",[Wd]:"toDisplayString",[rd]:"mergeProps",[l0]:"normalizeClass",[c0]:"normalizeStyle",[ol]:"normalizeProps",[Vl]:"guardReactiveProps",[d0]:"toHandlers",[rf]:"camelize",[y7]:"capitalize",[nf]:"toHandlerKey",[nd]:"setBlockTracking",[b7]:"pushScopeId",[w7]:"popScopeId",[u0]:"withCtx",[_7]:"unref",[C7]:"isRef",[h0]:"withMemo",[Hy]:"isMemoSame"};function k7(e){Object.getOwnPropertySymbols(e).forEach(t=>{Fo[t]=e[t]})}const er={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function A7(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:er}}function al(e,t,i,r,n,s,o,a=!1,l=!1,c=!1,d=er){return e&&(a?(e.helper(zs),e.helper(Uo(e.inSSR,c))):e.helper(Ho(e.inSSR,c)),o&&e.helper(o0)),{type:13,tag:t,props:i,children:r,patchFlag:n,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function Fl(e,t=er){return{type:17,loc:t,elements:e}}function cr(e,t=er){return{type:15,loc:t,properties:e}}function Ct(e,t){return{type:16,loc:er,key:Ae(e)?Ne(e,!0):e,value:t}}function Ne(e,t=!1,i=er,r=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:r}}function Ar(e,t=er){return{type:8,loc:t,children:e}}function It(e,t=[],i=er){return{type:14,loc:i,callee:e,arguments:t}}function zo(e,t=void 0,i=!1,r=!1,n=er){return{type:18,params:e,returns:t,newline:i,isSlot:r,loc:n}}function sf(e,t,i,r=!0){return{type:19,test:e,consequent:t,alternate:i,newline:r,loc:er}}function E7(e,t,i=!1){return{type:20,index:e,value:t,isVNode:i,loc:er}}function x7(e){return{type:21,body:e,loc:er}}function Ho(e,t){return e||t?Jp:e0}function Uo(e,t){return e||t?Oy:My}function f0(e,{helper:t,removeHelper:i,inSSR:r}){e.isBlock||(e.isBlock=!0,i(Ho(r,e.isComponent)),t(zs),t(Uo(r,e.isComponent)))}const Gm=new Uint8Array([123,123]),Qm=new Uint8Array([125,125]);function Jm(e){return e>=97&&e<=122||e>=65&&e<=90}function Wi(e){return e===32||e===10||e===9||e===12||e===13}function _n(e){return e===47||e===62||Wi(e)}function sd(e){const t=new Uint8Array(e.length);for(let i=0;i=0;n--){const s=this.newlines[n];if(t>s){i=n+2,r=t-s;break}}return{column:r,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?_n(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Wi(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===oi.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function e1(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function Ps(e,t){const i=e1("MODE",t),r=e1(e,t);return i===3?r===!0:r!==!1}function ll(e,t,i,...r){return Ps(e,t)}function p0(e){throw e}function Uy(e){}function lt(e,t,i,r){const n=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(n));return s.code=e,s.loc=t,s}const $i=e=>e.type===4&&e.isStatic;function Ky(e){switch(e){case"Teleport":case"teleport":return Da;case"Suspense":case"suspense":return Qp;case"KeepAlive":case"keep-alive":return id;case"BaseTransition":case"base-transition":return Ly}}const N7=/^\d|[^\$\w\xA0-\uFFFF]/,m0=e=>!N7.test(e),T7=/[A-Za-z_$\xA0-\uFFFF]/,R7=/[\.\?\w$\xA0-\uFFFF]/,I7=/\s+[.[]\s*|\s*[.[]\s+/g,$7=e=>{e=e.trim().replace(I7,o=>o.trim());let t=0,i=[],r=0,n=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function vu(e){return e.type===5||e.type===2}function D7(e){return e.type===7&&e.name==="slot"}function od(e){return e.type===1&&e.tagType===3}function ad(e){return e.type===1&&e.tagType===2}const B7=new Set([ol,Vl]);function jy(e,t=[]){if(e&&!Ae(e)&&e.type===14){const i=e.callee;if(!Ae(i)&&B7.has(i))return jy(e.arguments[0],t.concat(e))}return[e,t]}function ld(e,t,i){let r,n=e.type===13?e.props:e.arguments[2],s=[],o;if(n&&!Ae(n)&&n.type===14){const a=jy(n);n=a[0],s=a[1],o=s[s.length-1]}if(n==null||Ae(n))r=cr([t]);else if(n.type===14){const a=n.arguments[0];!Ae(a)&&a.type===15?t1(t,a)||a.properties.unshift(t):n.callee===d0?r=It(i.helper(rd),[cr([t]),n]):n.arguments.unshift(cr([t])),!r&&(r=n)}else n.type===15?(t1(t,n)||n.properties.unshift(t),r=n):(r=It(i.helper(rd),[cr([t]),n]),o&&o.callee===Vl&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function t1(e,t){let i=!1;if(e.key.type===4){const r=e.key.content;i=t.properties.some(n=>n.key.type===4&&n.key.content===r)}return i}function cl(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,r)=>i==="-"?"_":e.charCodeAt(r).toString())}`}function L7(e){return e.type===14&&e.callee===h0?e.arguments[1].returns:e}const O7=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,qy={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Sc,isPreTag:Sc,isCustomElement:Sc,onError:p0,onWarn:Uy,comments:!1,prefixIdentifiers:!1};let Ue=qy,dl=null,an="",li=null,Le=null,Si="",Yr=-1,ss=-1,cd=0,Sn=!1,of=null;const ot=[],pt=new S7(ot,{onerr:Kr,ontext(e,t){hc(Xt(e,t),e,t)},ontextentity(e,t,i){hc(e,t,i)},oninterpolation(e,t){if(Sn)return hc(Xt(e,t),e,t);let i=e+pt.delimiterOpen.length,r=t-pt.delimiterClose.length;for(;Wi(an.charCodeAt(i));)i++;for(;Wi(an.charCodeAt(r-1));)r--;let n=Xt(i,r);n.includes("&")&&(n=Ue.decodeEntities(n,!1)),af({type:5,content:$c(n,!1,Tt(i,r)),loc:Tt(e,t)})},onopentagname(e,t){const i=Xt(e,t);li={type:1,tag:i,ns:Ue.getNamespace(i,ot[0],Ue.ns),tagType:0,props:[],children:[],loc:Tt(e-1,t),codegenNode:void 0}},onopentagend(e){r1(e)},onclosetag(e,t){const i=Xt(e,t);if(!Ue.isVoidTag(i)){let r=!1;for(let n=0;n0&&Kr(24,ot[0].loc.start.offset);for(let o=0;o<=n;o++){const a=ot.shift();Ic(a,t,o(r.type===7?r.rawName:r.name)===i)&&Kr(2,t)},onattribend(e,t){if(li&&Le){if(ds(Le.loc,t),e!==0)if(Si.includes("&")&&(Si=Ue.decodeEntities(Si,!0)),Le.type===6)Le.name==="class"&&(Si=Zy(Si).trim()),e===1&&!Si&&Kr(13,t),Le.value={type:2,content:Si,loc:e===1?Tt(Yr,ss):Tt(Yr-1,ss+1)},pt.inSFCRoot&&li.tag==="template"&&Le.name==="lang"&&Si&&Si!=="html"&&pt.enterRCDATA(sd("-1&&ll("COMPILER_V_BIND_SYNC",Ue,Le.loc,Le.rawName)&&(Le.name="model",Le.modifiers.splice(r,1))}(Le.type!==7||Le.name!=="pre")&&li.props.push(Le)}Si="",Yr=ss=-1},oncomment(e,t){Ue.comments&&af({type:3,content:Xt(e,t),loc:Tt(e-4,t+3)})},onend(){const e=an.length;for(let t=0;t{const m=t.start.offset+h,b=m+u.length;return $c(u,!1,Tt(m,b),0,f?1:0)},a={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(M7,"").trim();const c=n.indexOf(l),d=l.match(i1);if(d){l=l.replace(i1,"").trim();const u=d[1].trim();let h;if(u&&(h=i.indexOf(u,c+l.length),a.key=o(u,h,!0)),d[2]){const f=d[2].trim();f&&(a.index=o(f,i.indexOf(f,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Xt(e,t){return an.slice(e,t)}function r1(e){pt.inSFCRoot&&(li.innerLoc=Tt(e+1,e+1)),af(li);const{tag:t,ns:i}=li;i===0&&Ue.isPreTag(t)&&cd++,Ue.isVoidTag(t)?Ic(li,e):(ot.unshift(li),(i===1||i===2)&&(pt.inXML=!0)),li=null}function hc(e,t,i){{const s=ot[0]&&ot[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=Ue.decodeEntities(e,!1))}const r=ot[0]||dl,n=r.children[r.children.length-1];n&&n.type===2?(n.content+=e,ds(n.loc,i)):r.children.push({type:2,content:e,loc:Tt(t,i)})}function Ic(e,t,i=!1){i?ds(e.loc,Yy(t,60)):ds(e.loc,F7(t,62)+1),pt.inSFCRoot&&(e.children.length?e.innerLoc.end=Oe({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Oe({},e.innerLoc.start),e.innerLoc.source=Xt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:n}=e;Sn||(r==="slot"?e.tagType=2:n1(e)?e.tagType=3:H7(e)&&(e.tagType=1)),pt.inRCDATA||(e.children=Xy(e.children,e.tag)),n===0&&Ue.isPreTag(r)&&cd--,of===e&&(Sn=pt.inVPre=!1,of=null),pt.inXML&&(ot[0]?ot[0].ns:Ue.ns)===0&&(pt.inXML=!1);{const s=e.props;if(!pt.inSFCRoot&&Ps("COMPILER_NATIVE_TEMPLATE",Ue)&&e.tag==="template"&&!n1(e)){const a=ot[0]||dl,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&ll("COMPILER_INLINE_TEMPLATE",Ue,o.loc)&&e.children.length&&(o.value={type:2,content:Xt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function F7(e,t){let i=e;for(;an.charCodeAt(i)!==t&&i=0;)i--;return i}const z7=new Set(["if","else","else-if","for","slot"]);function n1({tag:e,props:t}){if(e==="template"){for(let i=0;i64&&e<91}const K7=/\r\n/g;function Xy(e,t){const i=Ue.whitespace!=="preserve";let r=!1;for(let n=0;n0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=tb(c);if((!d||d===512||d===1)&&Jy(a,t)>=2){const u=eb(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,Pc(a,t),l&&t.scopes.vSlot--}else if(a.type===11)Pc(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cN&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(N,1)},onNodeRemoved:Pt,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Ae(S)&&(S=Ne(S)),x.hoists.push(S);const C=Ne(`_hoisted_${x.hoists.length}`,!1,S.loc,2);return C.hoisted=S,C},cache(S,C=!1){return E7(x.cached++,S,C)}};return x.filters=new Set,x}function J7(e,t){const i=Q7(e,t);qd(e,i),t.hoistStatic&&Z7(e,i),t.ssr||ew(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function ew(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Gy(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&f0(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=al(t,i(sl),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function tw(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(D7))return;const o=[];for(let a=0;a`${Fo[e]}: _${Fo[e]}`;function iw(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${Fo[b]}`},push(b,v=-2,_){f.code+=b},indent(){m(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(b){f.push(` +`+" ".repeat(b),0)}return f}function rw(e,t={}){const i=iw(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:r,push:n,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),h=u.length>0,f=!s&&r!=="module";nw(e,i);const b=d?"ssrRender":"render",_=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(n(`function ${b}(${_}) {`),o(),f&&(n("with (_ctx) {"),o(),h&&(n(`const { ${u.map(rb).join(", ")} } = _Vue +`,-1),l())),e.components.length&&(yu(e.components,"component",i),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(yu(e.directives,"directive",i),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),yu(e.filters,"filter",i),l()),e.temps>0){n("let ");for(let w=0;w0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(n(` +`,0),l()),d||n("return "),e.codegenNode?ui(e.codegenNode,i):n("null"),f&&(a(),n("}")),a(),n("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function nw(e,t){const{ssr:i,prefixIdentifiers:r,push:n,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);if(d.length>0&&(n(`const _Vue = ${c} +`,-1),e.hoists.length)){const u=[Jp,e0,Ml,t0,Vy].filter(h=>d.includes(h)).map(rb).join(", ");n(`const { ${u} } = _Vue +`,-1)}sw(e.hoists,t),s(),n("return ")}function yu(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?s0:t==="component"?i0:n0);for(let a=0;a3||!1;t.push("["),i&&t.indent(),zl(e,t,i),i&&t.deindent(),t.push("]")}function zl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function hw(e,t){const{push:i,helper:r,pure:n}=t,s=Ae(e.callee)?e.callee:r(e.callee);n&&i(Yd),i(s+"(",-2,e),zl(e.arguments,t),i(")")}function fw(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),se(o)?g0(o,t):ui(o,t)):a&&ui(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function gw(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!m0(i.content);u&&o("("),nb(i,t),u&&o(")")}else o("("),ui(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),ui(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,ui(n,t),d||t.indentLevel--,s&&l(!0)}function vw(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(nd)}(-1),`),o()),i(`_cache[${e.index}] = `),ui(e.value,t),e.isVNode&&(i(","),o(),i(`${r(nd)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const yw=ib(/^(if|else|else-if)$/,(e,t,i)=>bw(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=o1(n,l,i);else{const c=ww(r.codegenNode);c.alternate=o1(n,l+r.branches.length-1,i)}}}));function bw(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(lt(28,t.loc)),t.exp=Ne("true",!1,n)}if(t.name==="if"){const n=s1(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(lt(30,e.loc)),i.removeNode();const a=s1(e,t);o.branches.push(a);const l=r&&r(o,a,!1);qd(a,i),l&&l(),i.currentNode=null}else i.onError(lt(30,e.loc));break}}}function s1(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!wr(e,"for")?e.children:[e],userKey:jd(e,"key"),isTemplateIf:i}}function o1(e,t,i){return e.condition?sf(e.condition,a1(e,t,i),It(i.helper(Ml),['""',"true"])):a1(e,t,i)}function a1(e,t,i){const{helper:r}=i,n=Ct("key",Ne(`${t}`,!1,er,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return ld(l,n,i),l}else return al(i,r(sl),cr([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=L7(l);return c.type===13&&f0(c,i),ld(c,n,i),l}}function ww(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const _w=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(lt(52,s.loc)),{props:[Ct(s,Ne("",!0,n))]};ob(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=ut(s.content):s.content=`${i.helperString(rf)}(${s.content})`:(s.children.unshift(`${i.helperString(rf)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&l1(s,"."),r.includes("attr")&&l1(s,"^")),{props:[Ct(s,o)]}},ob=(e,t)=>{const i=e.arg,r=ut(i.content);e.exp=Ne(r,!1,i.loc)},l1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cw=ib("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return kw(e,t,i,s=>{const o=It(r(a0),[s.source]),a=od(e),l=wr(e,"memo"),c=jd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ob(c);const d=c&&(c.type===6?c.value?Ne(c.value.content,!0):void 0:c.exp),u=c&&d?Ct("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=al(i,r(sl),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:b}=s,v=b.length!==1||b[0].type!==1,_=ad(e)?e:a&&e.children.length===1&&ad(e.children[0])?e.children[0]:null;if(_?(m=_.codegenNode,a&&u&&ld(m,u,i)):v?m=al(i,r(sl),u?cr([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(m=b[0].codegenNode,a&&u&&ld(m,u,i),m.isBlock!==!h&&(m.isBlock?(n(zs),n(Uo(i.inSSR,m.isComponent))):n(Ho(i.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(zs),r(Uo(i.inSSR,m.isComponent))):r(Ho(i.inSSR,m.isComponent))),l){const w=zo(lf(s.parseResult,[Ne("_cached")]));w.body=x7([Ar(["const _memo = (",l.exp,")"]),Ar(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(Hy)}(_cached, _memo)) return _cached`]),Ar(["const _item = ",m]),Ne("_item.memo = _memo"),Ne("return _item")]),o.arguments.push(w,Ne("_cache"),Ne(String(i.cached++)))}else o.arguments.push(zo(lf(s.parseResult),m,!0))}})});function kw(e,t,i,r){if(!t.exp){i.onError(lt(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(lt(32,t.loc));return}ab(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:od(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function ab(e,t){e.finalized||(e.finalized=!0)}function lf({value:e,key:t,index:i},r=[]){return Aw([e,t,i,...r])}function Aw(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Ne("_".repeat(r+1),!1))}const c1=Ne("undefined",!1),Ew=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=wr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},xw=(e,t,i,r)=>zo(e,i,!1,!0,i.length?i[0].loc:r);function Sw(e,t,i=xw){t.helper(u0);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=wr(e,"slot",!0);if(l){const{arg:v,exp:_}=l;v&&!$i(v)&&(a=!0),s.push(Ct(v||Ne("default",!0),i(_,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let v=0;v{const p=i(_,void 0,w,n);return t.compatConfig&&(p.isNonScopedSlot=!0),Ct("default",p)};c?u.length&&u.some(_=>lb(_))&&(d?t.onError(lt(39,u[0].loc)):s.push(v(void 0,u))):s.push(v(void 0,r))}const m=a?2:Dc(e.children)?3:1;let b=cr(s.concat(Ct("_",Ne(m+"",!1))),n);return o.length&&(b=It(t.helper(zy),[b,Fl(o)])),{slots:b,hasDynamicSlots:a}}function fc(e,t,i){const r=[Ct("name",e),Ct("fn",t)];return i!=null&&r.push(Ct("key",Ne(String(i),!0))),cr(r)}function Dc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?Tw(e,t):`"${r}"`;const a=je(o)&&o.callee===r0;let l,c,d,u=0,h,f,m,b=a||o===Da||o===Qp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const v=db(e,t,void 0,s,a);l=v.props,u=v.patchFlag,f=v.dynamicPropNames;const _=v.directives;m=_&&_.length?Fl(_.map(w=>Iw(w,t))):void 0,v.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===id&&(b=!0,u|=1024),s&&o!==Da&&o!==id){const{slots:_,hasDynamicSlots:w}=Sw(e,t);c=_,w&&(u|=1024)}else if(e.children.length===1&&o!==Da){const _=e.children[0],w=_.type,p=w===5||w===8;p&&dr(_,t)===0&&(u|=1),p||w===2?c=_:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=$w(f))),e.codegenNode=al(t,o,l,c,d,h,m,!!b,!1,s,e.loc)};function Tw(e,t,i=!1){let{tag:r}=e;const n=cf(r),s=jd(e,"is",!1,!0);if(s)if(n||Ps("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Ne(s.value.content,!0):(a=s.exp,a||(a=Ne("is",!1,s.loc))),a)return It(t.helper(r0),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=Ky(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(i0),t.components.add(r),cl(r,"component"))}function db(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,m=0,b=!1,v=!1,_=!1,w=!1,p=!1,g=!1;const k=[],E=C=>{c.length&&(d.push(cr(d1(c),a)),c=[]),C&&d.push(C)},A=()=>{t.scopes.vFor>0&&c.push(Ct(Ne("ref_for",!0),Ne("true")))},x=({key:C,value:N})=>{if($i(C)){const R=C.content,I=Zs(R);if(I&&(!r||n)&&R.toLowerCase()!=="onclick"&&R!=="onUpdate:modelValue"&&!Pn(R)&&(w=!0),I&&Pn(R)&&(g=!0),I&&N.type===14&&(N=N.arguments[0]),N.type===20||(N.type===4||N.type===8)&&dr(N,t)>0)return;R==="ref"?b=!0:R==="class"?v=!0:R==="style"?_=!0:R!=="key"&&!k.includes(R)&&k.push(R),r&&(R==="class"||R==="style")&&!k.includes(R)&&k.push(R)}else p=!0};for(let C=0;C1?S=It(t.helper(rd),d,a):S=d[0]):c.length&&(S=cr(d1(c),a)),p?m|=16:(v&&!r&&(m|=2),_&&!r&&(m|=4),k.length&&(m|=8),w&&(m|=32)),!f&&(m===0||m===32)&&(b||g||u.length>0)&&(m|=512),!t.inSSR&&S)switch(S.type){case 15:let C=-1,N=-1,R=!1;for(let F=0;FCt(o,s)),n))}return Fl(i,e.loc)}function $w(e){let t="[";for(let i=0,r=e.length;i{if(ad(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=Dw(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=zo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=It(t.helper(Fy),o,r)}};function Dw(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=db(e,t,n,!1,!1);r=s,o.length&&t.onError(lt(36,o[0].loc))}return{slotName:i,slotProps:r}}const Bw=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ub=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(lt(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Co(ut(u)):`on:${u}`;a=Ne(h,!0,o.loc)}else a=Ar([`${i.helperString(nf)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(nf)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=Wy(l.content),h=!(u||Bw.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=Ar([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[Ct(a,l||Ne("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},Lw=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&wr(e,"once",!0))return u1.has(e)||t.inVOnce||t.inSSR?void 0:(u1.add(e),t.inVOnce=!0,t.helper(nd),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},hb=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(lt(41,e.loc)),pc();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(lt(44,r.loc)),pc();if(!o.trim()||!Wy(o)&&!!1)return i.onError(lt(42,r.loc)),pc();const c=n||Ne("modelValue",!0),d=n?$i(n)?`onUpdate:${ut(n.content)}`:Ar(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=Ar([`${h} => ((`,r,") = $event)"]);const f=[Ct(c,e.exp),Ct(d,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(v=>(m0(v)?v:JSON.stringify(v))+": true").join(", "),b=n?$i(n)?`${n.content}Modifiers`:Ar([n,' + "Modifiers"']):"modelModifiers";f.push(Ct(b,Ne(`{ ${m} }`,!1,e.loc,2)))}return pc(f)};function pc(e=[]){return{props:e}}const Mw=/[\w).+\-_$\]]/,Vw=(e,t)=>{Ps("COMPILER_FILTERS",t)&&(e.type===5&&dd(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&dd(i.exp,t)}))};function dd(e,t){if(e.type===4)h1(e,t);else for(let i=0;i=0&&(w=i.charAt(_),w===" ");_--);(!w||!Mw.test(w))&&(o=!0)}}m===void 0?m=i.slice(0,f).trim():d!==0&&v();function v(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=wr(e,"memo");return!i||f1.has(e)?void 0:(f1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&f0(r,t),e.codegenNode=It(t.helper(h0),[i.exp,zo(void 0,r),"_cache",String(t.cached++)]))})}};function Hw(e){return[[Ow,yw,zw,Cw,Vw,Pw,Nw,Ew,Lw],{on:ub,bind:_w,model:hb}]}function Uw(e,t={}){const i=t.onError||p0,r=t.mode==="module";t.prefixIdentifiers===!0?i(lt(47)):r&&i(lt(48));const n=!1;t.cacheHandlers&&i(lt(49)),t.scopeId&&!r&&i(lt(50));const s=Oe({},t,{prefixIdentifiers:n}),o=Ae(e)?X7(e,s):e,[a,l]=Hw();return J7(o,Oe({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Oe({},l,t.directiveTransforms||{})})),rw(o,s)}const Kw=()=>({props:[]});/** * @vue/compiler-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const fb=Symbol(""),pb=Symbol(""),mb=Symbol(""),gb=Symbol(""),df=Symbol(""),vb=Symbol(""),yb=Symbol(""),bb=Symbol(""),wb=Symbol(""),_b=Symbol("");k7({[fb]:"vModelRadio",[pb]:"vModelCheckbox",[mb]:"vModelText",[gb]:"vModelSelect",[df]:"vModelDynamic",[vb]:"withModifiers",[yb]:"withKeys",[bb]:"vShow",[wb]:"Transition",[_b]:"TransitionGroup"});let ao;function Kw(e,t=!1){return ao||(ao=document.createElement("div")),t?(ao.innerHTML=`
`,ao.children[0].getAttribute("foo")):(ao.innerHTML=e,ao.textContent)}const Ww={parseMode:"html",isVoidTag:r3,isNativeTag:e=>e3(e)||t3(e)||i3(e),isPreTag:e=>e==="pre",decodeEntities:Kw,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return wb;if(e==="TransitionGroup"||e==="transition-group")return _b},getNamespace(e,t,i){let r=t?t.ns:i;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(n=>n.type===6&&n.name==="encoding"&&n.value!=null&&(n.value.content==="text/html"||n.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},qw=e=>{e.type===1&&e.props.forEach((t,i)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[i]={type:7,name:"bind",arg:Se("style",!0,t.loc),exp:jw(t.value.content,t.loc),modifiers:[],loc:t.loc})})},jw=(e,t)=>{const i=Vv(e);return Se(JSON.stringify(i),!1,t,3)};function Dn(e,t){return st(e,t)}const Yw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(53,n)),t.children.length&&(i.onError(Dn(54,n)),t.children.length=0),{props:[bt(Se("innerHTML",!0,n),r||Se("",!0))]}},Xw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(55,n)),t.children.length&&(i.onError(Dn(56,n)),t.children.length=0),{props:[bt(Se("textContent",!0),r?lr(r,i)>0?r:St(i.helperString(Wd),[r],n):Se("",!0))]}},Zw=(e,t,i)=>{const r=hb(e,t,i);if(!r.props.length||t.tagType===1)return r;e.arg&&i.onError(Dn(58,e.arg.loc));const{tag:n}=t,s=i.isCustomElement(n);if(n==="input"||n==="textarea"||n==="select"||s){let o=mb,a=!1;if(n==="input"||s){const l=qd(t,"type");if(l){if(l.type===7)o=df;else if(l.value)switch(l.value.content){case"radio":o=fb;break;case"checkbox":o=pb;break;case"file":a=!0,i.onError(Dn(59,e.loc));break}}else $7(t)&&(o=df)}else n==="select"&&(o=gb);a||(r.needRuntime=i.helper(o))}else i.onError(Dn(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},Gw=Gi("passive,once,capture"),Qw=Gi("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Jw=Gi("left,right"),kb=Gi("onkeyup,onkeydown,onkeypress",!0),e_=(e,t,i,r)=>{const n=[],s=[],o=[];for(let a=0;aRi(e)&&e.content.toLowerCase()==="onclick"?Se(t,!0):e.type!==4?kr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,t_=(e,t,i)=>ub(e,t,i,r=>{const{modifiers:n}=e;if(!n.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=e_(s,n,i,e.loc);if(l.includes("right")&&(s=p1(s,"onContextmenu")),l.includes("middle")&&(s=p1(s,"onMouseup")),l.length&&(o=St(i.helper(vb),[o,JSON.stringify(l)])),a.length&&(!Ri(s)||kb(s.content))&&(o=St(i.helper(yb),[o,JSON.stringify(a)])),c.length){const d=c.map(Qs).join("");s=Ri(s)?Se(`${s.content}${d}`,!0):kr(["(",s,`) + "${d}"`])}return{props:[bt(s,o)]}}),i_=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(61,n)),{props:[],needRuntime:i.helper(bb)}},r_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},n_=[qw],s_={cloak:Uw,html:Yw,text:Xw,model:Zw,on:t_,show:i_};function o_(e,t={}){return Hw(e,Be({},Ww,t,{nodeTransforms:[r_,...n_,...t.nodeTransforms||[]],directiveTransforms:Be({},s_,t.directiveTransforms||{}),transformHoist:null}))}/** +**/const fb=Symbol(""),pb=Symbol(""),mb=Symbol(""),gb=Symbol(""),df=Symbol(""),vb=Symbol(""),yb=Symbol(""),bb=Symbol(""),wb=Symbol(""),_b=Symbol("");k7({[fb]:"vModelRadio",[pb]:"vModelCheckbox",[mb]:"vModelText",[gb]:"vModelSelect",[df]:"vModelDynamic",[vb]:"withModifiers",[yb]:"withKeys",[bb]:"vShow",[wb]:"Transition",[_b]:"TransitionGroup"});let ao;function Ww(e,t=!1){return ao||(ao=document.createElement("div")),t?(ao.innerHTML=`
`,ao.children[0].getAttribute("foo")):(ao.innerHTML=e,ao.textContent)}const jw={parseMode:"html",isVoidTag:n3,isNativeTag:e=>t3(e)||i3(e)||r3(e),isPreTag:e=>e==="pre",decodeEntities:Ww,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return wb;if(e==="TransitionGroup"||e==="transition-group")return _b},getNamespace(e,t,i){let r=t?t.ns:i;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(n=>n.type===6&&n.name==="encoding"&&n.value!=null&&(n.value.content==="text/html"||n.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},qw=e=>{e.type===1&&e.props.forEach((t,i)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[i]={type:7,name:"bind",arg:Ne("style",!0,t.loc),exp:Yw(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Yw=(e,t)=>{const i=Vv(e);return Ne(JSON.stringify(i),!1,t,3)};function Bn(e,t){return lt(e,t)}const Xw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Bn(53,n)),t.children.length&&(i.onError(Bn(54,n)),t.children.length=0),{props:[Ct(Ne("innerHTML",!0,n),r||Ne("",!0))]}},Zw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Bn(55,n)),t.children.length&&(i.onError(Bn(56,n)),t.children.length=0),{props:[Ct(Ne("textContent",!0),r?dr(r,i)>0?r:It(i.helperString(Wd),[r],n):Ne("",!0))]}},Gw=(e,t,i)=>{const r=hb(e,t,i);if(!r.props.length||t.tagType===1)return r;e.arg&&i.onError(Bn(58,e.arg.loc));const{tag:n}=t,s=i.isCustomElement(n);if(n==="input"||n==="textarea"||n==="select"||s){let o=mb,a=!1;if(n==="input"||s){const l=jd(t,"type");if(l){if(l.type===7)o=df;else if(l.value)switch(l.value.content){case"radio":o=fb;break;case"checkbox":o=pb;break;case"file":a=!0,i.onError(Bn(59,e.loc));break}}else P7(t)&&(o=df)}else n==="select"&&(o=gb);a||(r.needRuntime=i.helper(o))}else i.onError(Bn(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},Qw=Ji("passive,once,capture"),Jw=Ji("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),e_=Ji("left,right"),Cb=Ji("onkeyup,onkeydown,onkeypress",!0),t_=(e,t,i,r)=>{const n=[],s=[],o=[];for(let a=0;a$i(e)&&e.content.toLowerCase()==="onclick"?Ne(t,!0):e.type!==4?Ar(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,i_=(e,t,i)=>ub(e,t,i,r=>{const{modifiers:n}=e;if(!n.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=t_(s,n,i,e.loc);if(l.includes("right")&&(s=p1(s,"onContextmenu")),l.includes("middle")&&(s=p1(s,"onMouseup")),l.length&&(o=It(i.helper(vb),[o,JSON.stringify(l)])),a.length&&(!$i(s)||Cb(s.content))&&(o=It(i.helper(yb),[o,JSON.stringify(a)])),c.length){const d=c.map(Qs).join("");s=$i(s)?Ne(`${s.content}${d}`,!0):Ar(["(",s,`) + "${d}"`])}return{props:[Ct(s,o)]}}),r_=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Bn(61,n)),{props:[],needRuntime:i.helper(bb)}},n_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},s_=[qw],o_={cloak:Kw,html:Xw,text:Zw,model:Gw,on:i_,show:r_};function a_(e,t={}){return Uw(e,Oe({},jw,t,{nodeTransforms:[n_,...s_,...t.nodeTransforms||[]],directiveTransforms:Oe({},o_,t.directiveTransforms||{}),transformHoist:null}))}/** * vue v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const m1=new WeakMap;function a_(e){let t=m1.get(e??Fe);return t||(t=Object.create(null),m1.set(e??Fe,t)),t}function l_(e,t){if(!Ae(e))if(e.nodeType)e=e.innerHTML;else return Nt;const i=e,r=a_(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:Nt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=o_(e,s),a=new Function("Vue",o)(g7);return a._rc=!0,r[i]=a}ay(l_);function g1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function v0(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:g1(t[i])&&g1(e[i])&&Object.keys(t[i]).length>0&&v0(e[i],t[i])})}const Cb={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wi(){const e=typeof document<"u"?document:{};return v0(e,Cb),e}const c_={document:Cb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Yn(){const e=typeof window<"u"?window:{};return v0(e,c_),e}const d_=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",zl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),Ct=e=>typeof e=="function",At=e=>typeof e=="string",Xd=e=>typeof e=="number",u_=e=>typeof e=="boolean",ot=e=>typeof e>"u",y0=e=>e===null,b0=e=>typeof Window<"u"&&e instanceof Window,w0=e=>typeof Document<"u"&&e instanceof Document,ln=e=>typeof Element<"u"&&e instanceof Element,h_=e=>typeof Node<"u"&&e instanceof Node,bo=e=>!Ct(e)&&!b0(e)&&Xd(e.length),an=e=>typeof e=="object"&&e!==null,dd=e=>w0(e)?e.documentElement:e,Zd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),ul=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Ab=()=>!1,f_=()=>!0,at=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const ud=(e=wi())=>/complete|interactive/.test(e.readyState),Gd=e=>wi().createElement(e),_0=(e,t)=>e.appendChild(t),k0=e=>e.parentNode?e.parentNode.removeChild(e):e,Eb=(e,t)=>{const i=Gd(t);return i.innerHTML=e,[].slice.call(i.childNodes)},p_=()=>{const e=function(t){if(!t)return new oi;if(t instanceof oi)return t;if(Ct(t)){const i=wi();return ud(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new oi([i])}if(At(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return _i({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new oi(Eb(i,n))}const r=wi();return new oi(r.querySelectorAll(t))}return bo(t)&&!h_(t)?new oi(t):new oi([t])};return e.fn=oi.prototype,e},B=p_(),C0=(e,t)=>(at(t,i=>{e.push(i)}),e),na=e=>[...new Set(e)];B.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};B.fn.add=function(e){return new oi(na(C0(this.get(),B(e).get())))};const xb=(e,t,i)=>{const r=e.getAttribute(t);return y0(r)?i:r},Sb=(e,t)=>{e.removeAttribute(t)},Tb=(e,t,i)=>{y0(i)?Sb(e,t):e.setAttribute(t,i)};B.fn.each=function(e){return at(this,(t,i)=>e.call(t,i,t))};at(["add","remove","toggle"],e=>{B.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{Tb(r,"class","")}):this.each((i,r)=>{if(!ln(r))return;const n=(Ct(t)?t.call(r,i,xb(r,"class","")):t).split(" ").filter(s=>s);at(n,s=>{r.classList[e](s)})})}});at(["insertBefore","insertAfter"],(e,t)=>{B.fn[e]=function(i){const r=t?B(this.get().reverse()):this,n=B(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),B(t?s.reverse():s)}});const m_=e=>At(e)&&!(e.startsWith("<")&&e.endsWith(">"));at(["before","after"],(e,t)=>{B.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;at(s,o=>{let a;m_(o)?a=B(Eb(o,"div")):r&&ln(o)?a=B(o.cloneNode(!0)):a=B(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Nb(e,t){return bo(e)?at(e,(i,r)=>t.call(i,r,i)):_i(e,t)}function La(e,t){const i=Yn();let r;const n=[];return Nb(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}B.fn.map=function(e){return new oi(La(this,(t,i)=>e.call(t,i,t)))};B.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};B.fn.is=function(e){let t=!1;if(Ct(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(At(e))return this.each((r,n)=>{w0(n)||b0(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=B(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};B.fn.remove=function(e){return this.each((t,i)=>{(!e||B(i).is(e))&&k0(i)})};at(["prepend","append"],(e,t)=>{B.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:Gd("div");o||_0(n,a);let l=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>At(c)?c:B(c).clone())),B(a)[t?"after":"before"](...l),o||k0(a)})}});at(["appendTo","prependTo"],(e,t)=>{B.fn[e]=function(i){const r=[],n=B(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=Gd("div");return _0(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return B(r).remove(),s}});const Qd=(e,t)=>Yn().getComputedStyle(e).getPropertyValue(ul(t)),Rb=e=>Qd(e,"box-sizing")==="border-box",uf=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(Qd(e,a)||"0")},0)},Jd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Rb(e)?`${i}px`:`${i-uf(e,t,"border")-uf(e,t,"padding")}px`}return Qd(e,t)},g_=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];at(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(ot(o))return;if(t===0)return Tb(n,s,o);if(t===1){n[s]=o;return}s=ul(s);const a=()=>s.startsWith("--")||g_.includes(s)?"":"px";n.style.setProperty(s,Xd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?xb(n,s):t===1?n[s]:Jd(n,s);B.fn[e]=function(n,s){if(an(n))return _i(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return ln(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,Ct(s)?s.call(a,o,r(a,n)):s)})}});B.fn.children=function(e){const t=[];return this.each((i,r)=>{at(r.childNodes,n=>{ln(n)&&(!e||B(n).is(e))&&t.push(n)})}),new oi(na(t))};B.fn.slice=function(...e){return new oi([].slice.apply(this,e))};B.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new oi(t)};const A0=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&ln(o);){if(t===2){if(r&&B(o).is(r))break;(!n||B(o).is(n))&&s.push(o)}else if(t===0){(!r||B(o).is(r))&&s.push(o);break}else(!r||B(o).is(r))&&s.push(o);o=o[i]}}),new oi(na(s))};at(["","s","sUntil"],(e,t)=>{B.fn[`parent${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"parentNode",i,r)}});B.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(B(r).is(e))return t.push(r),!1}),new oi(t)};const eu=new WeakMap,Hl=e=>eu.get(e)??{},Ib=(e,t)=>{const i=Hl(e),r=Zd(t);return r in i?i[r]:void 0},E0=(e,t)=>{const i=Hl(e);_i(t,(r,n)=>{i[Zd(r)]=n}),eu.set(e,i)},$b=(e,t,i)=>{E0(e,{[t]:i})},v_=e=>{eu.delete(e)},y_=(e,t)=>{const i=Hl(e);at(t,r=>{const n=Zd(r);delete i[n]}),eu.set(e,i)},b_=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,w_=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:b_.test(e)?JSON.parse(e):e,v1=(e,t,i)=>{if(ot(i)&&e.nodeType===1&&(i=e.dataset[t],At(i)))try{i=w_(i)}catch{}return i};B.fn.data=function(e,t){if(ot(e)){if(!this.length)return;const i=this[0],r=Hl(i);return i.nodeType!==1||_i(i.dataset,n=>{r[n]=v1(i,n,r[n])}),r}if(an(e))return this.each(function(){E0(this,e)});if(arguments.length===2&&ot(t))return this;if(!ot(t))return this.each(function(){$b(this,e,t)});if(this.length)return v1(this[0],Zd(e),Ib(this[0],e))};B.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};B.fn.extend=function(e){return _i(e,(t,i)=>{B.fn[t]=i}),this};B.fn.filter=function(e){if(Ct(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(At(e))return this.map((i,r)=>B(r).is(e)?r:void 0);const t=B(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};B.fn.find=function(e){const t=[];return this.each((i,r)=>{C0(t,B(r.querySelectorAll(e)).get())}),new oi(t)};B.fn.first=function(){return this.eq(0)};const x0=(e,t)=>e!==t&&dd(e).contains(t);B.fn.has=function(e){const t=At(e)?this.find(e):B(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>uf(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Rb(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Db=(e,t,i,r)=>{const n=wi(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(b0(e))return i===2?e[l]:dd(n)[s];if(w0(e)){const d=dd(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(Qd(e,t.toLowerCase())||"0");return Pb(e,t,c,i,r,1)},__=(e,t,i,r,n,s)=>{let o=Ct(s)?s.call(e,t,Db(e,i,r,n)):s;if(o==null)return;const a=B(e),l=i.toLowerCase();if(At(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=Pb(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};at(["Width","Height"],e=>{at([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{B.fn[t]=function(r,n){const s=arguments.length&&(i<2||!u_(r)),o=r===!0||n===!0;return s?this.each((a,l)=>__(l,a,e,i,o,r)):this.length?Db(this[0],e,i,o):void 0}})});B.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};at(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return La(o,c=>dd(c)[r]).join("");if(!o.length)return;const a=o[0],l=B(a);return t===0&&l.is("select[multiple]")?La(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(ot(a)){if(t!==0)return;a=""}t===1&&ln(a)&&(a=a.outerHTML),o[r]=a};B.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=B(l),d=Ct(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?La(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});B.fn.index=function(e){return arguments.length?At(e)?B(e).get().indexOf(this[0]):this.get().indexOf(B(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};B.fn.last=function(){return this.eq(-1)};at(["","All","Until"],(e,t)=>{B.fn[`next${e}`]=function(i,r){return A0(this,t,"nextElementSibling",i,r)}});B.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const k_=Yn().CustomEvent;class C_ extends k_{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const bu=new WeakMap;let A_=1;const hf=e=>(bu.has(e)||bu.set(e,++A_),bu.get(e)),y1=new Map,hd=e=>{const t=hf(e);return y1.get(t)||y1.set(t,[]).get(t)},S0=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Lb=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),E_=(e,t,i,r)=>{const n=S0(t);return hd(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Lb(n.namespace).test(s.namespace))&&(!i||hf(s.func)===hf(i))&&(!r||s.selector===r))},x_=(e,t,i,r,n)=>{let s=!1;an(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=S0(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Lb(u.namespace).test(a.namespace)||(u.data=r,n?B(e).find(n).get().reverse().forEach(h=>{(h===u.target||x0(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:hd(e).length,proxy:c};hd(e).push(d),e.addEventListener(d.type,c,s)})},S_=(e,t,i,r)=>{const n=hd(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&E_(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};B.fn.off=function(e,t,i){return an(e)?(_i(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||Ct(t))&&(i=t,t=void 0),i===!1&&(i=Ab),this.each(function(){S_(this,e,i,t)}))};function tu(e,...t){return at(t,i=>{_i(i,(r,n)=>{ot(n)||(e[r]=n)})}),e}B.fn.offsetParent=function(){const e=wi();return this.map(function(){let t=this.offsetParent;for(;t&&B(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const pc=(e,t)=>parseFloat(e.css(t));B.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=pc(r,"border-top-width"),i.left+=pc(r,"border-left-width")}return{top:t.top-i.top-pc(e,"margin-top"),left:t.left-i.left-pc(e,"margin-left")}};const Bb=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},T_=(e,t,i)=>{const r=B(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Bb(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=Ct(t)?t.call(e,i,tu({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};B.fn.offset=function(e){return arguments.length?this.each(function(t){T_(this,e,t)}):this.length?Bb(this[0]):void 0};B.fn.on=function(e,t,i,r,n){if(an(e))return At(t)||(i=i||t,t=void 0),_i(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(At(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=Ab;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){x_(this,e,r,i,t)})};B.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};at(["","All","Until"],(e,t)=>{B.fn[`prev${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"previousElementSibling",i,r)}});B.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){at(t,i=>{Sb(this,i)})})};const Ob=(e,t)=>{if(ot(t))return v_(e);const i=At(t)?t.split(" ").filter(r=>r):t;y_(e,i)};B.fn.removeData=function(e){return this.each((t,i)=>{Ob(i,e)})};B.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};B.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;Ct(r)?r=r.call(i,t,i.innerHTML):t&&!At(r)&&(r=B(r).clone()),B(i).before(r)}),this.remove()};B.fn.replaceAll=function(e){return B(e).map((t,i)=>(B(i).replaceWith(t?this.clone():this),this.get()))};const T0=e=>{if(!an(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;an(n)?_i(n,(o,a)=>{s=Array.isArray(n)&&!an(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?at(e,({name:r,value:n})=>i(r,n)):_i(e,i),t.join("&")},vo=new WeakMap,Mb=e=>{const t=[...e.elements],i=vo.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Vb=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Mb(r):[r];B(n).each((s,o)=>{const a=B(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};B.fn.serializeArray=function(){return Vb(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};B.fn.serialize=function(){return T0(this.serializeArray())};B.fn.serializeObject=function(){const e={};return Vb(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const wu={},N_=e=>{const t=wi();let i,r;return wu[e]||(i=Gd(e),_0(t.body,i),r=Jd(i,"display"),k0(i),r==="none"&&(r="block"),wu[e]=r),wu[e]};B.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Jd(t,"display")==="none"&&(t.style.display=N_(t.nodeName))})};B.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};B.fn.toggle=function(){return this.each((e,t)=>{Jd(t,"display")==="none"?B(t).show():B(t).hide()})};B.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=S0(e),s=new C_(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const R_="ajaxStart",b1="ajaxSuccess",mc="ajaxError",_u="ajaxComplete",Ba={},I_=e=>["GET","HEAD"].includes(e),w1=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),$_=e=>{const t=Yn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},P_=e=>e>=200&&e<300||[0,304].includes(e),D_=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return _i(Ba,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!ot(r)&&(t[i]=r)}),tu({},t,e)},Fb=e=>{const t=wi(),i=Yn();let r=!1;const n={},s={},o=D_(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:m,headers:b,xhrFields:w,statusCode:_,dataType:g,contentType:p,timeout:y,global:C}=o,E=I_(a);l&&(E||d)&&!At(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=T0(l)),l&&E&&(c=w1(c,l),l=null);const A=(S,k,...N)=>{C&&B(t).trigger(S,k==="success"?s:n);let I,T;k in Ba&&(I=Ba[k](...N)),o[k]&&(T=o[k](...N)),k==="beforeSend"&&[I,T].includes(!1)&&(r=!0)};return(()=>{let S;return new Promise((k,N)=>{const I=O=>N(new Error(O));E&&!h&&(c=w1(c,`_=${Date.now()}`));const T=new XMLHttpRequest;T.open(a,c,u,f,m),(p||l&&!E&&p!==!1)&&T.setRequestHeader("Content-Type",p),g==="json"&&T.setRequestHeader("Accept","application/json, text/javascript"),_i(b,(O,M)=>{ot(M)||T.setRequestHeader(O,M+"")}),$_(c)||T.setRequestHeader("X-Requested-With","XMLHttpRequest"),_i(w,(O,M)=>{T[O]=M}),n.xhr=s.xhr=T,n.options=s.options=o;let P;if(T.onload=()=>{P&&clearTimeout(P);const O=P_(T.status);let M;if(O)if(S=T.status===204||a==="HEAD"?"nocontent":T.status===304?"notmodified":"success",g==="json"||!g&&(T.getResponseHeader("content-type")||"").includes("json")){try{M=a==="HEAD"?void 0:JSON.parse(T.responseText),s.response=M}catch{S="parsererror",A(mc,"error",T,S),I(S)}S!=="parsererror"&&(A(b1,"success",M,S,T),k(M))}else M=a==="HEAD"?void 0:T.responseType==="text"||T.responseType===""?T.responseText:T.response,s.response=M,A(b1,"success",M,S,T),k(M);else S="error",A(mc,"error",T,S),I(S);at([Ba.statusCode??{},_],H=>{H[T.status]&&(O?H[T.status](M,S,T):H[T.status](T,S))}),A(_u,"complete",T,S)},T.onerror=()=>{P&&clearTimeout(P),A(mc,"error",T,T.statusText),A(_u,"complete",T,"error"),I(T.statusText)},T.onabort=()=>{let O="abort";P&&(O="timeout",clearTimeout(P)),A(mc,"error",T,O),A(_u,"complete",T,O),I(O)},A(R_,"beforeSend",T,o),r)return I("cancel");y>0&&(P=i.setTimeout(()=>T.abort(),y)),T.send(l)})})()};B.ajax=Fb;const L_=e=>tu(Ba,e);B.ajaxSetup=L_;B.contains=x0;function B_(e,t,i){return an(t)?(E0(e,t),t):ot(i)?ot(t)?Hl(e):Ib(e,t):($b(e,t,i),i)}B.data=B_;B.each=Nb;B.extend=function(e,...t){return t.length?tu(e,...t):(_i(e,(i,r)=>{this[i]=r}),this)};B.map=La;B.merge=C0;B.param=T0;B.removeData=Ob;B.unique=na;function v(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** +**/const m1=new WeakMap;function l_(e){let t=m1.get(e??ze);return t||(t=Object.create(null),m1.set(e??ze,t)),t}function c_(e,t){if(!Ae(e))if(e.nodeType)e=e.innerHTML;else return Pt;const i=e,r=l_(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Oe({hoistStatic:!0,onError:void 0,onWarn:Pt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=a_(e,s),a=new Function("Vue",o)(v7);return a._rc=!0,r[i]=a}ay(c_);function g1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function v0(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:g1(t[i])&&g1(e[i])&&Object.keys(t[i]).length>0&&v0(e[i],t[i])})}const kb={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ci(){const e=typeof document<"u"?document:{};return v0(e,kb),e}const d_={document:kb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Xn(){const e=typeof window<"u"?window:{};return v0(e,d_),e}const u_=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",Hl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),xt=e=>typeof e=="function",St=e=>typeof e=="string",Xd=e=>typeof e=="number",h_=e=>typeof e=="boolean",ct=e=>typeof e>"u",y0=e=>e===null,b0=e=>typeof Window<"u"&&e instanceof Window,w0=e=>typeof Document<"u"&&e instanceof Document,cn=e=>typeof Element<"u"&&e instanceof Element,f_=e=>typeof Node<"u"&&e instanceof Node,bo=e=>!xt(e)&&!b0(e)&&Xd(e.length),ln=e=>typeof e=="object"&&e!==null,ud=e=>w0(e)?e.documentElement:e,Zd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),ul=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Ab=()=>!1,p_=()=>!0,dt=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const hd=(e=Ci())=>/complete|interactive/.test(e.readyState),Gd=e=>Ci().createElement(e),_0=(e,t)=>e.appendChild(t),C0=e=>e.parentNode?e.parentNode.removeChild(e):e,Eb=(e,t)=>{const i=Gd(t);return i.innerHTML=e,[].slice.call(i.childNodes)},m_=()=>{const e=function(t){if(!t)return new ci;if(t instanceof ci)return t;if(xt(t)){const i=Ci();return hd(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new ci([i])}if(St(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return ki({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new ci(Eb(i,n))}const r=Ci();return new ci(r.querySelectorAll(t))}return bo(t)&&!f_(t)?new ci(t):new ci([t])};return e.fn=ci.prototype,e},B=m_(),k0=(e,t)=>(dt(t,i=>{e.push(i)}),e),na=e=>[...new Set(e)];B.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};B.fn.add=function(e){return new ci(na(k0(this.get(),B(e).get())))};const xb=(e,t,i)=>{const r=e.getAttribute(t);return y0(r)?i:r},Sb=(e,t)=>{e.removeAttribute(t)},Nb=(e,t,i)=>{y0(i)?Sb(e,t):e.setAttribute(t,i)};B.fn.each=function(e){return dt(this,(t,i)=>e.call(t,i,t))};dt(["add","remove","toggle"],e=>{B.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{Nb(r,"class","")}):this.each((i,r)=>{if(!cn(r))return;const n=(xt(t)?t.call(r,i,xb(r,"class","")):t).split(" ").filter(s=>s);dt(n,s=>{r.classList[e](s)})})}});dt(["insertBefore","insertAfter"],(e,t)=>{B.fn[e]=function(i){const r=t?B(this.get().reverse()):this,n=B(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),B(t?s.reverse():s)}});const g_=e=>St(e)&&!(e.startsWith("<")&&e.endsWith(">"));dt(["before","after"],(e,t)=>{B.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=xt(i[0])?[i[0].call(n,r,n.innerHTML)]:i;dt(s,o=>{let a;g_(o)?a=B(Eb(o,"div")):r&&cn(o)?a=B(o.cloneNode(!0)):a=B(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Tb(e,t){return bo(e)?dt(e,(i,r)=>t.call(i,r,i)):ki(e,t)}function Ba(e,t){const i=Xn();let r;const n=[];return Tb(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}B.fn.map=function(e){return new ci(Ba(this,(t,i)=>e.call(t,i,t)))};B.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};B.fn.is=function(e){let t=!1;if(xt(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(St(e))return this.each((r,n)=>{w0(n)||b0(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=B(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};B.fn.remove=function(e){return this.each((t,i)=>{(!e||B(i).is(e))&&C0(i)})};dt(["prepend","append"],(e,t)=>{B.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:Gd("div");o||_0(n,a);let l=xt(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>St(c)?c:B(c).clone())),B(a)[t?"after":"before"](...l),o||C0(a)})}});dt(["appendTo","prependTo"],(e,t)=>{B.fn[e]=function(i){const r=[],n=B(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=Gd("div");return _0(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return B(r).remove(),s}});const Qd=(e,t)=>Xn().getComputedStyle(e).getPropertyValue(ul(t)),Rb=e=>Qd(e,"box-sizing")==="border-box",uf=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(Qd(e,a)||"0")},0)},Jd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Rb(e)?`${i}px`:`${i-uf(e,t,"border")-uf(e,t,"padding")}px`}return Qd(e,t)},v_=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];dt(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(ct(o))return;if(t===0)return Nb(n,s,o);if(t===1){n[s]=o;return}s=ul(s);const a=()=>s.startsWith("--")||v_.includes(s)?"":"px";n.style.setProperty(s,Xd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?xb(n,s):t===1?n[s]:Jd(n,s);B.fn[e]=function(n,s){if(ln(n))return ki(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return cn(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,xt(s)?s.call(a,o,r(a,n)):s)})}});B.fn.children=function(e){const t=[];return this.each((i,r)=>{dt(r.childNodes,n=>{cn(n)&&(!e||B(n).is(e))&&t.push(n)})}),new ci(na(t))};B.fn.slice=function(...e){return new ci([].slice.apply(this,e))};B.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new ci(t)};const A0=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&cn(o);){if(t===2){if(r&&B(o).is(r))break;(!n||B(o).is(n))&&s.push(o)}else if(t===0){(!r||B(o).is(r))&&s.push(o);break}else(!r||B(o).is(r))&&s.push(o);o=o[i]}}),new ci(na(s))};dt(["","s","sUntil"],(e,t)=>{B.fn[`parent${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"parentNode",i,r)}});B.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(B(r).is(e))return t.push(r),!1}),new ci(t)};const eu=new WeakMap,Ul=e=>eu.get(e)??{},Ib=(e,t)=>{const i=Ul(e),r=Zd(t);return r in i?i[r]:void 0},E0=(e,t)=>{const i=Ul(e);ki(t,(r,n)=>{i[Zd(r)]=n}),eu.set(e,i)},$b=(e,t,i)=>{E0(e,{[t]:i})},y_=e=>{eu.delete(e)},b_=(e,t)=>{const i=Ul(e);dt(t,r=>{const n=Zd(r);delete i[n]}),eu.set(e,i)},w_=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,__=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:w_.test(e)?JSON.parse(e):e,v1=(e,t,i)=>{if(ct(i)&&e.nodeType===1&&(i=e.dataset[t],St(i)))try{i=__(i)}catch{}return i};B.fn.data=function(e,t){if(ct(e)){if(!this.length)return;const i=this[0],r=Ul(i);return i.nodeType!==1||ki(i.dataset,n=>{r[n]=v1(i,n,r[n])}),r}if(ln(e))return this.each(function(){E0(this,e)});if(arguments.length===2&&ct(t))return this;if(!ct(t))return this.each(function(){$b(this,e,t)});if(this.length)return v1(this[0],Zd(e),Ib(this[0],e))};B.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};B.fn.extend=function(e){return ki(e,(t,i)=>{B.fn[t]=i}),this};B.fn.filter=function(e){if(xt(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(St(e))return this.map((i,r)=>B(r).is(e)?r:void 0);const t=B(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};B.fn.find=function(e){const t=[];return this.each((i,r)=>{k0(t,B(r.querySelectorAll(e)).get())}),new ci(t)};B.fn.first=function(){return this.eq(0)};const x0=(e,t)=>e!==t&&ud(e).contains(t);B.fn.has=function(e){const t=St(e)?this.find(e):B(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>uf(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Rb(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Db=(e,t,i,r)=>{const n=Ci(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(b0(e))return i===2?e[l]:ud(n)[s];if(w0(e)){const d=ud(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(Qd(e,t.toLowerCase())||"0");return Pb(e,t,c,i,r,1)},C_=(e,t,i,r,n,s)=>{let o=xt(s)?s.call(e,t,Db(e,i,r,n)):s;if(o==null)return;const a=B(e),l=i.toLowerCase();if(St(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=Pb(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};dt(["Width","Height"],e=>{dt([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{B.fn[t]=function(r,n){const s=arguments.length&&(i<2||!h_(r)),o=r===!0||n===!0;return s?this.each((a,l)=>C_(l,a,e,i,o,r)):this.length?Db(this[0],e,i,o):void 0}})});B.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};dt(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return Ba(o,c=>ud(c)[r]).join("");if(!o.length)return;const a=o[0],l=B(a);return t===0&&l.is("select[multiple]")?Ba(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(ct(a)){if(t!==0)return;a=""}t===1&&cn(a)&&(a=a.outerHTML),o[r]=a};B.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=B(l),d=xt(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?Ba(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});B.fn.index=function(e){return arguments.length?St(e)?B(e).get().indexOf(this[0]):this.get().indexOf(B(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};B.fn.last=function(){return this.eq(-1)};dt(["","All","Until"],(e,t)=>{B.fn[`next${e}`]=function(i,r){return A0(this,t,"nextElementSibling",i,r)}});B.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const k_=Xn().CustomEvent;class A_ extends k_{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const bu=new WeakMap;let E_=1;const hf=e=>(bu.has(e)||bu.set(e,++E_),bu.get(e)),y1=new Map,fd=e=>{const t=hf(e);return y1.get(t)||y1.set(t,[]).get(t)},S0=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Bb=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),x_=(e,t,i,r)=>{const n=S0(t);return fd(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Bb(n.namespace).test(s.namespace))&&(!i||hf(s.func)===hf(i))&&(!r||s.selector===r))},S_=(e,t,i,r,n)=>{let s=!1;ln(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=S0(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Bb(u.namespace).test(a.namespace)||(u.data=r,n?B(e).find(n).get().reverse().forEach(h=>{(h===u.target||x0(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:fd(e).length,proxy:c};fd(e).push(d),e.addEventListener(d.type,c,s)})},N_=(e,t,i,r)=>{const n=fd(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&x_(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};B.fn.off=function(e,t,i){return ln(e)?(ki(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||xt(t))&&(i=t,t=void 0),i===!1&&(i=Ab),this.each(function(){N_(this,e,i,t)}))};function tu(e,...t){return dt(t,i=>{ki(i,(r,n)=>{ct(n)||(e[r]=n)})}),e}B.fn.offsetParent=function(){const e=Ci();return this.map(function(){let t=this.offsetParent;for(;t&&B(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const mc=(e,t)=>parseFloat(e.css(t));B.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=mc(r,"border-top-width"),i.left+=mc(r,"border-left-width")}return{top:t.top-i.top-mc(e,"margin-top"),left:t.left-i.left-mc(e,"margin-left")}};const Lb=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},T_=(e,t,i)=>{const r=B(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Lb(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=xt(t)?t.call(e,i,tu({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};B.fn.offset=function(e){return arguments.length?this.each(function(t){T_(this,e,t)}):this.length?Lb(this[0]):void 0};B.fn.on=function(e,t,i,r,n){if(ln(e))return St(t)||(i=i||t,t=void 0),ki(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(St(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=Ab;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){S_(this,e,r,i,t)})};B.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};dt(["","All","Until"],(e,t)=>{B.fn[`prev${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"previousElementSibling",i,r)}});B.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){dt(t,i=>{Sb(this,i)})})};const Ob=(e,t)=>{if(ct(t))return y_(e);const i=St(t)?t.split(" ").filter(r=>r):t;b_(e,i)};B.fn.removeData=function(e){return this.each((t,i)=>{Ob(i,e)})};B.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};B.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;xt(r)?r=r.call(i,t,i.innerHTML):t&&!St(r)&&(r=B(r).clone()),B(i).before(r)}),this.remove()};B.fn.replaceAll=function(e){return B(e).map((t,i)=>(B(i).replaceWith(t?this.clone():this),this.get()))};const N0=e=>{if(!ln(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;ln(n)?ki(n,(o,a)=>{s=Array.isArray(n)&&!ln(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?dt(e,({name:r,value:n})=>i(r,n)):ki(e,i),t.join("&")},vo=new WeakMap,Mb=e=>{const t=[...e.elements],i=vo.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Vb=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Mb(r):[r];B(n).each((s,o)=>{const a=B(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};B.fn.serializeArray=function(){return Vb(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};B.fn.serialize=function(){return N0(this.serializeArray())};B.fn.serializeObject=function(){const e={};return Vb(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const wu={},R_=e=>{const t=Ci();let i,r;return wu[e]||(i=Gd(e),_0(t.body,i),r=Jd(i,"display"),C0(i),r==="none"&&(r="block"),wu[e]=r),wu[e]};B.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Jd(t,"display")==="none"&&(t.style.display=R_(t.nodeName))})};B.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};B.fn.toggle=function(){return this.each((e,t)=>{Jd(t,"display")==="none"?B(t).show():B(t).hide()})};B.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=S0(e),s=new A_(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const I_="ajaxStart",b1="ajaxSuccess",gc="ajaxError",_u="ajaxComplete",La={},$_=e=>["GET","HEAD"].includes(e),w1=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),P_=e=>{const t=Xn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},D_=e=>e>=200&&e<300||[0,304].includes(e),B_=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return ki(La,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!ct(r)&&(t[i]=r)}),tu({},t,e)},Fb=e=>{const t=Ci(),i=Xn();let r=!1;const n={},s={},o=B_(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:m,headers:b,xhrFields:v,statusCode:_,dataType:w,contentType:p,timeout:g,global:k}=o,E=$_(a);l&&(E||d)&&!St(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=N0(l)),l&&E&&(c=w1(c,l),l=null);const A=(S,C,...N)=>{k&&B(t).trigger(S,C==="success"?s:n);let R,I;C in La&&(R=La[C](...N)),o[C]&&(I=o[C](...N)),C==="beforeSend"&&[R,I].includes(!1)&&(r=!0)};return(()=>{let S;return new Promise((C,N)=>{const R=F=>N(new Error(F));E&&!h&&(c=w1(c,`_=${Date.now()}`));const I=new XMLHttpRequest;I.open(a,c,u,f,m),(p||l&&!E&&p!==!1)&&I.setRequestHeader("Content-Type",p),w==="json"&&I.setRequestHeader("Accept","application/json, text/javascript"),ki(b,(F,L)=>{ct(L)||I.setRequestHeader(F,L+"")}),P_(c)||I.setRequestHeader("X-Requested-With","XMLHttpRequest"),ki(v,(F,L)=>{I[F]=L}),n.xhr=s.xhr=I,n.options=s.options=o;let O;if(I.onload=()=>{O&&clearTimeout(O);const F=D_(I.status);let L;if(F)if(S=I.status===204||a==="HEAD"?"nocontent":I.status===304?"notmodified":"success",w==="json"||!w&&(I.getResponseHeader("content-type")||"").includes("json")){try{L=a==="HEAD"?void 0:JSON.parse(I.responseText),s.response=L}catch{S="parsererror",A(gc,"error",I,S),R(S)}S!=="parsererror"&&(A(b1,"success",L,S,I),C(L))}else L=a==="HEAD"?void 0:I.responseType==="text"||I.responseType===""?I.responseText:I.response,s.response=L,A(b1,"success",L,S,I),C(L);else S="error",A(gc,"error",I,S),R(S);dt([La.statusCode??{},_],M=>{M[I.status]&&(F?M[I.status](L,S,I):M[I.status](I,S))}),A(_u,"complete",I,S)},I.onerror=()=>{O&&clearTimeout(O),A(gc,"error",I,I.statusText),A(_u,"complete",I,"error"),R(I.statusText)},I.onabort=()=>{let F="abort";O&&(F="timeout",clearTimeout(O)),A(gc,"error",I,F),A(_u,"complete",I,F),R(F)},A(I_,"beforeSend",I,o),r)return R("cancel");g>0&&(O=i.setTimeout(()=>I.abort(),g)),I.send(l)})})()};B.ajax=Fb;const L_=e=>tu(La,e);B.ajaxSetup=L_;B.contains=x0;function O_(e,t,i){return ln(t)?(E0(e,t),t):ct(i)?ct(t)?Ul(e):Ib(e,t):($b(e,t,i),i)}B.data=O_;B.each=Tb;B.extend=function(e,...t){return t.length?tu(e,...t):(ki(e,(i,r)=>{this[i]=r}),this)};B.map=Ba;B.merge=k0;B.param=N0;B.removeData=Ob;B.unique=na;function y(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Dc=globalThis,N0=Dc.ShadowRoot&&(Dc.ShadyCSS===void 0||Dc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R0=Symbol(),_1=new WeakMap;let zb=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==R0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(N0&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=_1.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_1.set(i,t))}return t}toString(){return this.cssText}};const O_=e=>new zb(typeof e=="string"?e:e+"",void 0,R0),pe=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((r,n,s)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new zb(i,e,R0)},M_=(e,t)=>{if(N0)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const r=document.createElement("style"),n=Dc.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,e.appendChild(r)}},k1=N0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return O_(i)})(e):e;/** + */const Bc=globalThis,T0=Bc.ShadowRoot&&(Bc.ShadyCSS===void 0||Bc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R0=Symbol(),_1=new WeakMap;let zb=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==R0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(T0&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=_1.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_1.set(i,t))}return t}toString(){return this.cssText}};const M_=e=>new zb(typeof e=="string"?e:e+"",void 0,R0),ge=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((r,n,s)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new zb(i,e,R0)},V_=(e,t)=>{if(T0)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const r=document.createElement("style"),n=Bc.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,e.appendChild(r)}},C1=T0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return M_(i)})(e):e;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:V_,defineProperty:F_,getOwnPropertyDescriptor:z_,getOwnPropertyNames:H_,getOwnPropertySymbols:U_,getPrototypeOf:K_}=Object,Ln=globalThis,C1=Ln.trustedTypes,W_=C1?C1.emptyScript:"",ku=Ln.reactiveElementPolyfillSupport,Oa=(e,t)=>e,Ko={toAttribute(e,t){switch(t){case Boolean:e=e?W_:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},I0=(e,t)=>!V_(e,t),A1={attribute:!0,type:String,converter:Ko,reflect:!1,hasChanged:I0};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ln.litPropertyMetadata??(Ln.litPropertyMetadata=new WeakMap);let yo=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=A1){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,i);n!==void 0&&F_(this.prototype,t,n)}}static getPropertyDescriptor(t,i,r){const{get:n,set:s}=z_(this.prototype,t)??{get(){return this[i]},set(o){this[i]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??A1}static _$Ei(){if(this.hasOwnProperty(Oa("elementProperties")))return;const t=K_(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Oa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Oa("properties"))){const i=this.properties,r=[...H_(i),...U_(i)];for(const n of r)this.createProperty(n,i[n])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)i.unshift(k1(n))}else t!==void 0&&i.push(k1(t));return i}static _$Eu(t,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return M_(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$EC(t,i){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Ko).toAttribute(i,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,i){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Ko;this._$Em=n,this[n]=a.fromAttribute(i,o.type),this._$Em=null}}requestUpdate(t,i,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??I0)(this[t],i))return;this.P(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,i,r){this._$AL.has(t)||this._$AL.set(t,i),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(i)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(t){}firstUpdated(t){}};yo.elementStyles=[],yo.shadowRootOptions={mode:"open"},yo[Oa("elementProperties")]=new Map,yo[Oa("finalized")]=new Map,ku==null||ku({ReactiveElement:yo}),(Ln.reactiveElementVersions??(Ln.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:F_,defineProperty:z_,getOwnPropertyDescriptor:H_,getOwnPropertyNames:U_,getOwnPropertySymbols:K_,getPrototypeOf:W_}=Object,Ln=globalThis,k1=Ln.trustedTypes,j_=k1?k1.emptyScript:"",Cu=Ln.reactiveElementPolyfillSupport,Oa=(e,t)=>e,Ko={toAttribute(e,t){switch(t){case Boolean:e=e?j_:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},I0=(e,t)=>!F_(e,t),A1={attribute:!0,type:String,converter:Ko,reflect:!1,hasChanged:I0};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ln.litPropertyMetadata??(Ln.litPropertyMetadata=new WeakMap);let yo=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=A1){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,i);n!==void 0&&z_(this.prototype,t,n)}}static getPropertyDescriptor(t,i,r){const{get:n,set:s}=H_(this.prototype,t)??{get(){return this[i]},set(o){this[i]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??A1}static _$Ei(){if(this.hasOwnProperty(Oa("elementProperties")))return;const t=W_(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Oa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Oa("properties"))){const i=this.properties,r=[...U_(i),...K_(i)];for(const n of r)this.createProperty(n,i[n])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)i.unshift(C1(n))}else t!==void 0&&i.push(C1(t));return i}static _$Eu(t,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return V_(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$EC(t,i){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Ko).toAttribute(i,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,i){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Ko;this._$Em=n,this[n]=a.fromAttribute(i,o.type),this._$Em=null}}requestUpdate(t,i,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??I0)(this[t],i))return;this.P(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,i,r){this._$AL.has(t)||this._$AL.set(t,i),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(i)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(t){}firstUpdated(t){}};yo.elementStyles=[],yo.shadowRootOptions={mode:"open"},yo[Oa("elementProperties")]=new Map,yo[Oa("finalized")]=new Map,Cu==null||Cu({ReactiveElement:yo}),(Ln.reactiveElementVersions??(Ln.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Ma=globalThis,fd=Ma.trustedTypes,E1=fd?fd.createPolicy("lit-html",{createHTML:e=>e}):void 0,Hb="$lit$",Tn=`lit$${Math.random().toFixed(9).slice(2)}$`,Ub="?"+Tn,q_=`<${Ub}>`,Hs=document,hl=()=>Hs.createComment(""),fl=e=>e===null||typeof e!="object"&&typeof e!="function",Kb=Array.isArray,j_=e=>Kb(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Cu=`[ -\f\r]`,ga=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x1=/-->/g,S1=/>/g,is=RegExp(`>|${Cu}(?:([^\\s"'>=/]+)(${Cu}*=${Cu}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),T1=/'/g,N1=/"/g,Wb=/^(?:script|style|textarea|title)$/i,Y_=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),D=Y_(1),yi=Symbol.for("lit-noChange"),Ze=Symbol.for("lit-nothing"),R1=new WeakMap,us=Hs.createTreeWalker(Hs,129);function qb(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return E1!==void 0?E1.createHTML(t):t}const X_=(e,t)=>{const i=e.length-1,r=[];let n,s=t===2?"":"",o=ga;for(let a=0;a"?(o=n??ga,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?is:d[3]==='"'?N1:T1):o===N1||o===T1?o=is:o===x1||o===S1?o=ga:(o=is,n=void 0);const f=o===is&&e[a+1].startsWith("/>")?" ":"";s+=o===ga?l+q_:u>=0?(r.push(c),l.slice(0,u)+Hb+l.slice(u)+Tn+f):l+Tn+(u===-2?a:f)}return[qb(e,s+(e[i]||"")+(t===2?"":"")),r]};class pl{constructor({strings:t,_$litType$:i},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,d]=X_(t,i);if(this.el=pl.createElement(c,r),us.currentNode=this.el.content,i===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=us.nextNode())!==null&&l.length0){n.textContent=fd?fd.emptyScript:"";for(let f=0;f2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ze}_$AI(t,i=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=Wo(this,t,i,0),o=!fl(t)||t!==this._$AH&&t!==yi,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l{const r=(i==null?void 0:i.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(i==null?void 0:i.renderBefore)??null;r._$litPart$=n=new Ul(t.insertBefore(hl(),s),s,void 0,i??{})}return n._$AI(e),n};/** + */const Ma=globalThis,pd=Ma.trustedTypes,E1=pd?pd.createPolicy("lit-html",{createHTML:e=>e}):void 0,Hb="$lit$",Tn=`lit$${Math.random().toFixed(9).slice(2)}$`,Ub="?"+Tn,q_=`<${Ub}>`,Hs=document,hl=()=>Hs.createComment(""),fl=e=>e===null||typeof e!="object"&&typeof e!="function",Kb=Array.isArray,Y_=e=>Kb(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",ku=`[ +\f\r]`,ga=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x1=/-->/g,S1=/>/g,rs=RegExp(`>|${ku}(?:([^\\s"'>=/]+)(${ku}*=${ku}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),N1=/'/g,T1=/"/g,Wb=/^(?:script|style|textarea|title)$/i,X_=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),P=X_(1),wi=Symbol.for("lit-noChange"),Ge=Symbol.for("lit-nothing"),R1=new WeakMap,us=Hs.createTreeWalker(Hs,129);function jb(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return E1!==void 0?E1.createHTML(t):t}const Z_=(e,t)=>{const i=e.length-1,r=[];let n,s=t===2?"":"",o=ga;for(let a=0;a"?(o=n??ga,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?rs:d[3]==='"'?T1:N1):o===T1||o===N1?o=rs:o===x1||o===S1?o=ga:(o=rs,n=void 0);const f=o===rs&&e[a+1].startsWith("/>")?" ":"";s+=o===ga?l+q_:u>=0?(r.push(c),l.slice(0,u)+Hb+l.slice(u)+Tn+f):l+Tn+(u===-2?a:f)}return[jb(e,s+(e[i]||"")+(t===2?"":"")),r]};class pl{constructor({strings:t,_$litType$:i},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,d]=Z_(t,i);if(this.el=pl.createElement(c,r),us.currentNode=this.el.content,i===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=us.nextNode())!==null&&l.length0){n.textContent=pd?pd.emptyScript:"";for(let f=0;f2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ge}_$AI(t,i=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=Wo(this,t,i,0),o=!fl(t)||t!==this._$AH&&t!==wi,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l{const r=(i==null?void 0:i.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(i==null?void 0:i.renderBefore)??null;r._$litPart$=n=new Kl(t.insertBefore(hl(),s),s,void 0,i??{})}return n._$AI(e),n};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let ht=class extends yo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const t=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=t.firstChild),t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=t9(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return yi}};var Dv;ht._$litElement$=!0,ht.finalized=!0,(Dv=globalThis.litElementHydrateSupport)==null||Dv.call(globalThis,{LitElement:ht});const Eu=globalThis.litElementPolyfillSupport;Eu==null||Eu({LitElement:ht});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** + */let mt=class extends yo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const t=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=t.firstChild),t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=i9(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return wi}};var Dv;mt._$litElement$=!0,mt.finalized=!0,(Dv=globalThis.litElementHydrateSupport)==null||Dv.call(globalThis,{LitElement:mt});const Eu=globalThis.litElementPolyfillSupport;Eu==null||Eu({LitElement:mt});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const se=e=>(t,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/** + */const oe=e=>(t,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const i9={attribute:!0,type:String,converter:Ko,reflect:!1,hasChanged:I0},r9=(e=i9,t,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(i.name,e),r==="accessor"){const{name:o}=i;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.P(o,void 0,e),a}}}if(r==="setter"){const{name:o}=i;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+r)};function R(e){return(t,i)=>typeof i=="object"?r9(e,t,i):((r,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...r,wrapped:!0}:r),o?Object.getOwnPropertyDescriptor(n,s):void 0})(e,t,i)}/** + */const r9={attribute:!0,type:String,converter:Ko,reflect:!1,hasChanged:I0},n9=(e=r9,t,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(i.name,e),r==="accessor"){const{name:o}=i;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.P(o,void 0,e),a}}}if(r==="setter"){const{name:o}=i;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+r)};function T(e){return(t,i)=>typeof i=="object"?n9(e,t,i):((r,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...r,wrapped:!0}:r),o?Object.getOwnPropertyDescriptor(n,s):void 0})(e,t,i)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function Ce(e){return R({...e,state:!0,attribute:!1})}/** + */function ke(e){return T({...e,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const n9=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,i),i);/** + */const s9=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,i),i);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function Ji(e){return(t,i)=>{const{slot:r,selector:n}=e??{},s="slot"+(r?`[name=${r}]`:":not([name])");return n9(t,i,{get(){var l;const o=(l=this.renderRoot)==null?void 0:l.querySelector(s),a=(o==null?void 0:o.assignedElements(e))??[];return n===void 0?a:a.filter(c=>c.matches(n))}})}}/** + */function tr(e){return(t,i)=>{const{slot:r,selector:n}=e??{},s="slot"+(r?`[name=${r}]`:":not([name])");return s9(t,i,{get(){var l;const o=(l=this.renderRoot)==null?void 0:l.querySelector(s),a=(o==null?void 0:o.assignedElements(e))??[];return n===void 0?a:a.filter(c=>c.matches(n))}})}}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const _e=e=>e??Ze;/** + */const _e=e=>e??Ge;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},eo=e=>(...t)=>({_$litDirective$:e,values:t});let Kl=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/** + */const _r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},eo=e=>(...t)=>({_$litDirective$:e,values:t});let Wl=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const jb="important",s9=" !"+jb,Ds=eo(class extends Kl{constructor(e){var t;if(super(e),e.type!==br.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(s9);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?jb:""):i[r]=n}}return yi}});class Re extends ht{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class Ut{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),ud()||B(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const Ke=D`${Ze}`,Ee=pe` + */const qb="important",o9=" !"+qb,Ds=eo(class extends Wl{constructor(e){var t;if(super(e),e.type!==_r.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(o9);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?qb:""):i[r]=n}}return wi}});class Ie extends mt{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class qt{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),hd()||B(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const We=P`${Ge}`,Ee=ge` :host { box-sizing: border-box; } @@ -104,7 +104,7 @@ * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let ff=class extends Kl{constructor(t){if(super(t),this.it=Ze,t.type!==br.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ze||t==null)return this._t=void 0,this.it=t;if(t===yi)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ff.directiveName="unsafeHTML",ff.resultType=1;/** + */let ff=class extends Wl{constructor(t){if(super(t),this.it=Ge,t.type!==_r.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ge||t==null)return this._t=void 0,this.it=t;if(t===wi)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ff.directiveName="unsafeHTML",ff.resultType=1;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -112,23 +112,23 @@ * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const o9=e=>e===null||typeof e!="object"&&typeof e!="function",Xb=e=>e.strings===void 0,a9={},l9=(e,t=a9)=>e._$AH=t;/** + */const a9=e=>e===null||typeof e!="object"&&typeof e!="function",Xb=e=>e.strings===void 0,l9={},c9=(e,t=l9)=>e._$AH=t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Va=(e,t)=>{var r;const i=e._$AN;if(i===void 0)return!1;for(const n of i)(r=n._$AO)==null||r.call(n,t,!1),Va(n,t);return!0},pd=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while((i==null?void 0:i.size)===0)},Zb=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),u9(t)}};function c9(e){this._$AN!==void 0?(pd(this),this._$AM=e,Zb(this)):this._$AM=e}function d9(e,t=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=i;s{e.type==br.CHILD&&(e._$AP??(e._$AP=d9),e._$AQ??(e._$AQ=c9))};class $0 extends Kl{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Zb(this),this.isConnected=t._$AU}_$AO(t,i=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),i&&(Va(this,t),pd(this))}setValue(t){if(Xb(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/** + */const Va=(e,t)=>{var r;const i=e._$AN;if(i===void 0)return!1;for(const n of i)(r=n._$AO)==null||r.call(n,t,!1),Va(n,t);return!0},md=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while((i==null?void 0:i.size)===0)},Zb=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),h9(t)}};function d9(e){this._$AN!==void 0?(md(this),this._$AM=e,Zb(this)):this._$AM=e}function u9(e,t=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=i;s{e.type==_r.CHILD&&(e._$AP??(e._$AP=u9),e._$AQ??(e._$AQ=d9))};class $0 extends Wl{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Zb(this),this.isConnected=t._$AU}_$AO(t,i=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),i&&(Va(this,t),md(this))}setValue(t){if(Xb(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class h9{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}let f9=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??(this.Z=new Promise(t=>this.q=t))}resume(){var t;(t=this.q)==null||t.call(this),this.Z=this.q=void 0}};/** + */class f9{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}let p9=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??(this.Z=new Promise(t=>this.q=t))}resume(){var t;(t=this.q)==null||t.call(this),this.Z=this.q=void 0}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const I1=e=>!o9(e)&&typeof e.then=="function",$1=1073741823;class p9 extends $0{constructor(){super(...arguments),this._$Cwt=$1,this._$Cbt=[],this._$CK=new h9(this),this._$CX=new f9}render(...t){return t.find(i=>!I1(i))??yi}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!I1(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return D`${i}`}return this.src?D`${m9(Fb({url:this.src}).then(Yb))}`:D``};return this.hasSlotController.test("[default]")?D``:t()}};ml.styles=[Ee,g9];v([R({reflect:!0})],ml.prototype,"name",void 0);v([R({reflect:!0})],ml.prototype,"src",void 0);ml=v([se("mdui-icon")],ml);const v9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let Us=class extends Re{constructor(){super(...arguments),this.hasSlotController=new Ut(this,"[default]")}render(){return this.hasSlotController.test("[default]")?D``:this.src?D`${_e(this.label)}`:this.icon?D``:Ke}};Us.styles=[Ee,v9];v([R({reflect:!0})],Us.prototype,"src",void 0);v([R({reflect:!0})],Us.prototype,"fit",void 0);v([R({reflect:!0})],Us.prototype,"icon",void 0);v([R({reflect:!0})],Us.prototype,"label",void 0);Us=v([se("mdui-avatar")],Us);const y9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let md=class extends Re{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?Ke:D``}};md.styles=[Ee,y9];v([R({reflect:!0})],md.prototype,"variant",void 0);md=v([se("mdui-badge")],md);const Y=e=>e!==null&&e!=="false";class Qt{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||ud())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=wi();this.needDomReady&&!ud(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...wi().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return na(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function re(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const P0=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new Qt(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=zl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(B(this).css("position"))?this.offsetHeight:null;B(n).css({[s]:o})}else B(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++b9;let _n,xu;const to=(e,t)=>{const i=B(e),r=Xn(),n={unobserve:()=>{i.each((s,o)=>{const a=_n.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?_n.set(o,a):(xu.unobserve(o),_n.delete(o))})}};return _n||(_n=new WeakMap,xu=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=_n.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=_n.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),_n.set(o,a),xu.observe(o)}),n};class w9{constructor(){this.states=[]}registerMain(t){this.$main=B(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=to(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,B(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Su.has(e)||Su.set(e,new w9),Su.get(e));class Zn extends Re{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=zl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Gb(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}v([R({type:Number,reflect:!0})],Zn.prototype,"order",void 0);v([re("order",!0)],Zn.prototype,"onOrderChange",null);const _9=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let qo=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};qo.styles=[Ee,_9];v([R({type:Boolean,reflect:!0,converter:Y})],qo.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],qo.prototype,"fabDetach",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],qo.prototype,"scrollBehavior",void 0);qo=v([se("mdui-bottom-app-bar")],qo);/** + */const I1=e=>!a9(e)&&typeof e.then=="function",$1=1073741823;class m9 extends $0{constructor(){super(...arguments),this._$Cwt=$1,this._$Cbt=[],this._$CK=new f9(this),this._$CX=new p9}render(...t){return t.find(i=>!I1(i))??wi}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!I1(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return P`${i}`}return this.src?P`${g9(Fb({url:this.src}).then(Yb))}`:P``};return this.hasSlotController.test("[default]")?P``:t()}};ml.styles=[Ee,v9];y([T({reflect:!0})],ml.prototype,"name",void 0);y([T({reflect:!0})],ml.prototype,"src",void 0);ml=y([oe("mdui-icon")],ml);const y9=ge`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let Us=class extends Ie{constructor(){super(...arguments),this.hasSlotController=new qt(this,"[default]")}render(){return this.hasSlotController.test("[default]")?P``:this.src?P`${_e(this.label)}`:this.icon?P``:We}};Us.styles=[Ee,y9];y([T({reflect:!0})],Us.prototype,"src",void 0);y([T({reflect:!0})],Us.prototype,"fit",void 0);y([T({reflect:!0})],Us.prototype,"icon",void 0);y([T({reflect:!0})],Us.prototype,"label",void 0);Us=y([oe("mdui-avatar")],Us);const b9=ge`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let gd=class extends Ie{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?We:P``}};gd.styles=[Ee,b9];y([T({reflect:!0})],gd.prototype,"variant",void 0);gd=y([oe("mdui-badge")],gd);const Y=e=>e!==null&&e!=="false";class ii{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||hd())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=Ci();this.needDomReady&&!hd(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...Ci().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return na(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function ne(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const P0=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new ii(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=Hl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(B(this).css("position"))?this.offsetHeight:null;B(n).css({[s]:o})}else B(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++w9;let Cn,xu;const to=(e,t)=>{const i=B(e),r=Zn(),n={unobserve:()=>{i.each((s,o)=>{const a=Cn.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?Cn.set(o,a):(xu.unobserve(o),Cn.delete(o))})}};return Cn||(Cn=new WeakMap,xu=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=Cn.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=Cn.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),Cn.set(o,a),xu.observe(o)}),n};class _9{constructor(){this.states=[]}registerMain(t){this.$main=B(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=to(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,B(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Su.has(e)||Su.set(e,new _9),Su.get(e));class Gn extends Ie{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=Hl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Gb(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}y([T({type:Number,reflect:!0})],Gn.prototype,"order",void 0);y([ne("order",!0)],Gn.prototype,"onOrderChange",null);const C9=ge`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let jo=class extends P0(Gn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};jo.styles=[Ee,C9];y([T({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"hide",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],jo.prototype,"fabDetach",void 0);y([T({reflect:!0,attribute:"scroll-behavior"})],jo.prototype,"scrollBehavior",void 0);jo=y([oe("mdui-bottom-app-bar")],jo);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const be=()=>new k9;class k9{}const Tu=new WeakMap,ue=eo(class extends $0{render(e){return Ze}update(e,[t]){var r;const i=t!==this.Y;return i&&this.Y!==void 0&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=e.options)==null?void 0:r.host,this.rt(this.ct=e.element)),Ze}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let i=Tu.get(t);i===void 0&&(i=new WeakMap,Tu.set(t,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=Tu.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function Or(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,r;i{const n=B(r).attr("form");return n?r.getRootNode().getElementById(n):r.closest("form")},name:r=>r.name,value:r=>r.value,defaultValue:r=>r.defaultValue,setValue:(r,n)=>r.value=n,disabled:r=>r.disabled,reportValidity:r=>Ct(r.reportValidity)?r.reportValidity():!0,...i},this.onFormData=this.onFormData.bind(this),this.onFormSubmit=this.onFormSubmit.bind(this),this.onFormReset=this.onFormReset.bind(this),this.reportFormValidity=this.reportFormValidity.bind(this)}hostConnected(){this.definedController.whenDefined().then(()=>{this.form=this.options.form(this.host),this.form&&this.attachForm(this.form)})}hostDisconnected(){this.detachForm()}hostUpdated(){this.definedController.whenDefined().then(()=>{const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t))})}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}attachForm(t){if(!t){this.form=void 0;return}this.form=t,vo.has(this.form)?vo.get(this.form).add(this.host):vo.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.onFormData),this.form.addEventListener("submit",this.onFormSubmit),this.form.addEventListener("reset",this.onFormReset),va.has(this.form)||(va.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())}detachForm(){this.form&&(vo.get(this.form).delete(this.host),this.form.removeEventListener("formdata",this.onFormData),this.form.removeEventListener("submit",this.onFormSubmit),this.form.removeEventListener("reset",this.onFormReset),va.has(this.form)&&!vo.get(this.form).size&&(this.form.reportValidity=va.get(this.form),va.delete(this.form)))}doAction(t,i){if(!this.form)return;const r=B(``}isButton(){return!this.href}}ft.styles=[Ee,E9];v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"loading",void 0);v([R({reflect:!0})],ft.prototype,"name",void 0);v([R({reflect:!0})],ft.prototype,"value",void 0);v([R({reflect:!0})],ft.prototype,"type",void 0);v([R({reflect:!0})],ft.prototype,"form",void 0);v([R({reflect:!0,attribute:"formaction"})],ft.prototype,"formAction",void 0);v([R({reflect:!0,attribute:"formenctype"})],ft.prototype,"formEnctype",void 0);v([R({reflect:!0,attribute:"formmethod"})],ft.prototype,"formMethod",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],ft.prototype,"formNoValidate",void 0);v([R({reflect:!0,attribute:"formtarget"})],ft.prototype,"formTarget",void 0);const x9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */const Et=eo(class extends Wl{constructor(e){var t;if(super(e),e.type!==_r.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,n;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}const i=e.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const o=!!t[s];o===this.st.has(s)||(n=this.nt)!=null&&n.has(s)||(o?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return wi}}),A9=ge`:host{position:relative;display:inline-block;width:2.5rem;height:2.5rem;stroke:rgb(var(--mdui-color-primary))}.progress{position:relative;display:inline-block;width:100%;height:100%;text-align:left;transition:opacity var(--mdui-motion-duration-medium1) var(--mdui-motion-easing-linear)}.determinate svg{transform:rotate(-90deg);fill:transparent}.determinate .track{stroke:transparent}.determinate .circle{stroke:inherit;transition:stroke-dashoffset var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate{font-size:0;letter-spacing:0;white-space:nowrap;animation:mdui-comp-circular-progress-rotate 1568ms var(--mdui-motion-easing-linear) infinite}.indeterminate .circle,.indeterminate .layer{position:absolute;width:100%;height:100%}.indeterminate .layer{animation:mdui-comp-circular-progress-layer-rotate 5332ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .circle{fill:transparent;stroke:inherit}.indeterminate .gap-patch{position:absolute;top:0;left:47.5%;width:5%;height:100%;overflow:hidden}.indeterminate .gap-patch .circle{left:-900%;width:2000%;transform:rotate(180deg)}.indeterminate .clipper{position:relative;display:inline-block;width:50%;height:100%;overflow:hidden}.indeterminate .clipper .circle{width:200%}.indeterminate .clipper.left .circle{animation:mdui-comp-circular-progress-left-spin 1333ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .clipper.right .circle{left:-100%;animation:mdui-comp-circular-progress-right-spin 1333ms var(--mdui-motion-easing-standard) infinite both}@keyframes mdui-comp-circular-progress-rotate{to{transform:rotate(360deg)}}@keyframes mdui-comp-circular-progress-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdui-comp-circular-progress-left-spin{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes mdui-comp-circular-progress-right-spin{0%{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}100%{transform:rotate(-265deg)}}`;let gl=class extends Ie{constructor(){super(...arguments),this.max=1}render(){const t=!ct(this.value);return P`
${t?this.renderDeterminate():this.renderInDeterminate()}
`}renderDeterminate(){const t=this.value,i=4,r=18,n=3.1415926,s=r+i/2,o=2*n*r,a=(1-t/Math.max(this.max??t,t))*o;return P``}renderInDeterminate(){const r=3.1415926,n=18+4/2,s=2*r*18,o=.5*s,a=l=>P``;return P`
${a(4)}
${a(4*.8)}
${a(4)}
`}};gl.styles=[Ee,A9];y([T({type:Number,reflect:!0})],gl.prototype,"max",void 0);y([T({type:Number})],gl.prototype,"value",void 0);gl=y([oe("mdui-circular-progress")],gl);const E9=ge`:host{position:absolute;top:0;left:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}.surface{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:280ms;transition-property:background-color;pointer-events:none;transition-timing-function:var(--mdui-motion-easing-standard)}.hover{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-hover))}:host-context([focus-visible]) .focused{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-focus))}.dragged{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-dragged))}.wave{position:absolute;z-index:1;background-color:rgb(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)));border-radius:50%;transform:translate3d(0,0,0) scale(.4);opacity:0;animation:225ms ease 0s 1 normal forwards running mdui-comp-ripple-radius-in,75ms ease 0s 1 normal forwards running mdui-comp-ripple-opacity-in;pointer-events:none}.out{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1);animation:150ms ease 0s 1 normal none running mdui-comp-ripple-opacity-out}@keyframes mdui-comp-ripple-radius-in{from{transform:translate3d(0,0,0) scale(.4);animation-timing-function:var(--mdui-motion-easing-standard)}to{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1)}}@keyframes mdui-comp-ripple-opacity-in{from{opacity:0;animation-timing-function:linear}to{opacity:var(--mdui-state-layer-pressed)}}@keyframes mdui-comp-ripple-opacity-out{from{animation-timing-function:linear;opacity:var(--mdui-state-layer-pressed)}to{opacity:0}}`;let Ks=class extends Ie{constructor(){super(...arguments),this.noRipple=!1,this.hover=!1,this.focused=!1,this.dragged=!1,this.surfaceRef=be()}startPress(t){if(this.noRipple)return;const i=B(this.surfaceRef.value),r=i.innerHeight(),n=i.innerWidth();let s,o;if(!t)s=n/2,o=r/2;else{const u=typeof TouchEvent<"u"&&t instanceof TouchEvent&&t.touches.length?t.touches[0]:t,h=i.offset();if(u.pageXh.left+n||u.pageYh.top+r)return;s=u.pageX-h.left,o=u.pageY-h.top}const a=Math.max(Math.pow(Math.pow(r,2)+Math.pow(n,2),.5),48),l=`${-s+n/2}px`,c=`${-o+r/2}px`,d=`translate3d(${l}, ${c}, 0) scale(1)`;B('
').css({width:a,height:a,marginTop:-a/2,marginLeft:-a/2,left:s,top:o}).each((u,h)=>{h.style.setProperty("--mdui-comp-ripple-transition-x",l),h.style.setProperty("--mdui-comp-ripple-transition-y",c)}).prependTo(this.surfaceRef.value).each((u,h)=>h.clientLeft).css("transform",d).on("animationend",function(u){u.animationName==="mdui-comp-ripple-radius-in"&&B(this).data("filled",!0)})}endPress(){const t=B(this.surfaceRef.value).children().filter((r,n)=>!B(n).data("removing")).data("removing",!0),i=r=>{r.addClass("out").each((n,s)=>s.clientLeft).on("animationend",function(){B(this).remove()})};t.filter((r,n)=>!B(n).data("filled")).on("animationend",function(r){r.animationName==="mdui-comp-ripple-radius-in"&&i(B(this))}),i(t.filter((r,n)=>!!B(n).data("filled")))}startHover(){this.hover=!0}endHover(){this.hover=!1}startFocus(){this.focused=!0}endFocus(){this.focused=!1}startDrag(){this.dragged=!0}endDrag(){this.dragged=!1}render(){return P`
`}};Ks.styles=[Ee,E9];y([T({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],Ks.prototype,"noRipple",void 0);y([ke()],Ks.prototype,"hover",void 0);y([ke()],Ks.prototype,"focused",void 0);y([ke()],Ks.prototype,"dragged",void 0);Ks=y([oe("mdui-ripple")],Ks);const Sr=e=>{class t extends e{constructor(){super(...arguments),this.noRipple=!1,this.rippleIndex=void 0,this.getRippleIndex=()=>this.rippleIndex}get rippleElement(){throw new Error("Must implement rippleElement getter!")}get rippleDisabled(){throw new Error("Must implement rippleDisabled getter!")}get rippleTarget(){return this}firstUpdated(r){super.firstUpdated(r);const n=B(this.rippleTarget),s=a=>{bo(this.rippleTarget)&&(this.rippleIndex=n.index(a.target))};(bo(this.rippleTarget)?this.rippleTarget:[this.rippleTarget]).forEach(a=>{a.addEventListener("pointerdown",l=>{s(l),this.startPress(l)}),a.addEventListener("pointerenter",l=>{s(l),this.startHover(l)}),a.addEventListener("pointerleave",l=>{s(l),this.endHover(l)}),a.addEventListener("focus",l=>{s(l),this.startFocus()}),a.addEventListener("blur",l=>{s(l),this.endFocus()})})}startHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().setAttribute("hover",""),this.getRippleElement().startHover())}endHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("hover"),this.getRippleElement().endHover())}isRippleDisabled(){const r=this.rippleDisabled;if(!Array.isArray(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r.length?r[0]:!1}getRippleElement(){const r=this.rippleElement;if(!bo(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}getRippleTarget(){const r=this.rippleTarget;if(!bo(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}startFocus(){this.isRippleDisabled()||this.getRippleElement().startFocus()}endFocus(){this.isRippleDisabled()||this.getRippleElement().endFocus()}startPress(r){if(this.isRippleDisabled()||r.button)return;const n=this.getRippleTarget();if(n.setAttribute("pressed",""),["touch","pen"].includes(r.pointerType)){let s=!1,o=setTimeout(()=>{o=0,this.getRippleElement().startPress(r)},70);const a=()=>{o&&(clearTimeout(o),o=0,this.getRippleElement().startPress(r)),s||(s=!0,this.endPress()),n.removeEventListener("pointerup",a),n.removeEventListener("pointercancel",a)},l=()=>{o&&(clearTimeout(o),o=0),n.removeEventListener("touchmove",l)};n.addEventListener("touchmove",l),n.addEventListener("pointerup",a),n.addEventListener("pointercancel",a)}if(r.pointerType==="mouse"&&r.button===0){const s=()=>{this.endPress(),n.removeEventListener("pointerup",s),n.removeEventListener("pointercancel",s),n.removeEventListener("pointerleave",s)};this.getRippleElement().startPress(r),n.addEventListener("pointerup",s),n.addEventListener("pointercancel",s),n.addEventListener("pointerleave",s)}}endPress(){this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("pressed"),this.getRippleElement().endPress())}startDrag(){this.isRippleDisabled()||this.getRippleElement().startDrag()}endDrag(){this.isRippleDisabled()||this.getRippleElement().endDrag()}}return y([T({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],t.prototype,"noRipple",void 0),t},x9=ge`.button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;letter-spacing:inherit;white-space:nowrap;text-align:center;text-decoration:none;vertical-align:middle;background:0 0;border:none;outline:0;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}`;class gt extends sa(Sr(ir(Ie))){constructor(){super(...arguments),this.disabled=!1,this.loading=!1,this.name="",this.value="",this.type="button",this.formNoValidate=!1,this.formController=new mn(this)}get validity(){if(this.isButton())return this.focusElement.validity}get validationMessage(){if(this.isButton())return this.focusElement.validationMessage}get rippleDisabled(){return this.disabled||this.loading}get focusElement(){var t,i;return this.isButton()?(t=this.renderRoot)==null?void 0:t.querySelector("._button"):this.focusDisabled?this:(i=this.renderRoot)==null?void 0:i.querySelector("._a")}get focusDisabled(){return this.disabled||this.loading}checkValidity(){if(this.isButton()){const t=this.focusElement.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}return!0}reportValidity(){if(this.isButton()){const t=!this.focusElement.reportValidity();return t&&this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),!t}return!0}setCustomValidity(t){this.isButton()&&this.focusElement.setCustomValidity(t)}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.type==="submit"&&this.formController.submit(this),this.type==="reset"&&this.formController.reset(this)})}renderLoading(){return this.loading?P``:We}renderButton({id:t,className:i,part:r,content:n=P``}){return P``}isButton(){return!this.href}}gt.styles=[Ee,x9];y([T({type:Boolean,reflect:!0,converter:Y})],gt.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],gt.prototype,"loading",void 0);y([T({reflect:!0})],gt.prototype,"name",void 0);y([T({reflect:!0})],gt.prototype,"value",void 0);y([T({reflect:!0})],gt.prototype,"type",void 0);y([T({reflect:!0})],gt.prototype,"form",void 0);y([T({reflect:!0,attribute:"formaction"})],gt.prototype,"formAction",void 0);y([T({reflect:!0,attribute:"formenctype"})],gt.prototype,"formEnctype",void 0);y([T({reflect:!0,attribute:"formmethod"})],gt.prototype,"formMethod",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],gt.prototype,"formNoValidate",void 0);y([T({reflect:!0,attribute:"formtarget"})],gt.prototype,"formTarget",void 0);const S9=ge`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Ws=class extends ft{constructor(){super(...arguments),this.variant="filled",this.fullWidth=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:"button",part:"button",content:this.renderInner()})}`}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Ws.styles=[ft.styles,x9];v([R({reflect:!0})],Ws.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ws.prototype,"fullWidth",void 0);v([R({reflect:!0})],Ws.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ws.prototype,"endIcon",void 0);Ws=v([se("mdui-button")],Ws);const S9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;min-width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + )}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Ws=class extends gt{constructor(){super(...arguments),this.variant="filled",this.fullWidth=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}render(){return P`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:"button",part:"button",content:this.renderInner()})}`}renderIcon(){return this.loading?this.renderLoading():P`${this.icon?P``:We}`}renderLabel(){return P``}renderEndIcon(){return P`${this.endIcon?P``:We}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Ws.styles=[gt.styles,S9];y([T({reflect:!0})],Ws.prototype,"variant",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ws.prototype,"fullWidth",void 0);y([T({reflect:!0})],Ws.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],Ws.prototype,"endIcon",void 0);Ws=y([oe("mdui-button")],Ws);const N9=ge`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;min-width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let cn=class extends ft{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?D`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?D``:this.icon?D``:Ke,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?D``:t();return this.selected?i():t()}};cn.styles=[ft.styles,S9];v([R({reflect:!0})],cn.prototype,"variant",void 0);v([R({reflect:!0})],cn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],cn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selected",void 0);v([re("selected",!0)],cn.prototype,"onSelectedChange",null);cn=v([se("mdui-button-icon")],cn);const T9=pe`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let jo=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return D`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:D``}):D``}`}};jo.styles=[Ee,T9];v([R({reflect:!0})],jo.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"clickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"disabled",void 0);jo=v([se("mdui-card")],jo);/** + )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let dn=class extends gt{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=be(),this.hasSlotController=new qt(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return P`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?P`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?P``:this.icon?P``:We,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?P``:t();return this.selected?i():t()}};dn.styles=[gt.styles,N9];y([T({reflect:!0})],dn.prototype,"variant",void 0);y([T({reflect:!0})],dn.prototype,"icon",void 0);y([T({reflect:!0,attribute:"selected-icon"})],dn.prototype,"selectedIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"selectable",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"selected",void 0);y([ne("selected",!0)],dn.prototype,"onSelectedChange",null);dn=y([oe("mdui-button-icon")],dn);const T9=ge`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let qo=class extends sa(Sr(ir(Ie))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return P`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:P``}):P``}`}};qo.styles=[Ee,T9];y([T({reflect:!0})],qo.prototype,"variant",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],qo.prototype,"clickable",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],qo.prototype,"disabled",void 0);qo=y([oe("mdui-card")],qo);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Yo=eo(class extends Kl{constructor(e){if(super(e),e.type!==br.PROPERTY&&e.type!==br.ATTRIBUTE&&e.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Xb(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===yi||t===Ze)return t;const i=e.element,r=e.name;if(e.type===br.PROPERTY){if(t===i[r])return yi}else if(e.type===br.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(r))return yi}else if(e.type===br.ATTRIBUTE&&i.getAttribute(r)===t+"")return yi;return l9(e),t}});function Gn(e="value"){return(t,i)=>{const r=t.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(s,o,a){const l=r.getPropertyOptions(e),c=At(l.attribute)?l.attribute:e;if(s===c){const d=l.converter||Ko,h=(Ct(d)?d:(d==null?void 0:d.fromAttribute)??Ko.fromAttribute)(a,l.type);this[e]!==h&&(this[i]=h)}n.call(this,s,o,a)}}}const Jt=pe` + */const Yo=eo(class extends Wl{constructor(e){if(super(e),e.type!==_r.PROPERTY&&e.type!==_r.ATTRIBUTE&&e.type!==_r.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Xb(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===wi||t===Ge)return t;const i=e.element,r=e.name;if(e.type===_r.PROPERTY){if(t===i[r])return wi}else if(e.type===_r.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(r))return wi}else if(e.type===_r.ATTRIBUTE&&i.getAttribute(r)===t+"")return wi;return c9(e),t}});function Qn(e="value"){return(t,i)=>{const r=t.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(s,o,a){const l=r.getPropertyOptions(e),c=St(l.attribute)?l.attribute:e;if(s===c){const d=l.converter||Ko,h=(xt(d)?d:(d==null?void 0:d.fromAttribute)??Ko.fromAttribute)(a,l.type);this[e]!==h&&(this[i]=h)}n.call(this,s,o,a)}}}const ri=ge` :host { display: inline-block; width: 1em; @@ -160,7 +160,7 @@ line-height: 1; font-size: 1.5rem; } -`,ei=e=>D`P` ${Yb(e)} - `;let mf=class extends ht{render(){return ei('')}};mf.styles=Jt;mf=v([se("mdui-icon-check-box-outline-blank")],mf);let gf=class extends ht{render(){return ei('')}};gf.styles=Jt;gf=v([se("mdui-icon-check-box")],gf);let vf=class extends ht{render(){return ei('')}};vf.styles=Jt;vf=v([se("mdui-icon-indeterminate-check-box")],vf);const N9=pe`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let Zt=class extends Er(er(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=be(),this.rippleRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`${this.uncheckedIcon?D``:D``}${this.checkedIcon?D``:D``}${this.indeterminateIcon?D``:D``}`}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};Zt.styles=[Ee,N9];v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"checked",void 0);v([Gn("checked")],Zt.prototype,"defaultChecked",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"indeterminate",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"required",void 0);v([R({reflect:!0})],Zt.prototype,"form",void 0);v([R({reflect:!0})],Zt.prototype,"name",void 0);v([R({reflect:!0})],Zt.prototype,"value",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zt.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zt.prototype,"checkedIcon",void 0);v([R({reflect:!0,attribute:"indeterminate-icon"})],Zt.prototype,"indeterminateIcon",void 0);v([Ce()],Zt.prototype,"invalid",void 0);v([re("disabled",!0),re("indeterminate",!0),re("required",!0)],Zt.prototype,"onDisabledChange",null);v([re("checked",!0)],Zt.prototype,"onCheckedChange",null);Zt=v([se("mdui-checkbox")],Zt);let yf=class extends ht{render(){return ei('')}};yf.styles=Jt;yf=v([se("mdui-icon-check")],yf);let bf=class extends ht{render(){return ei('')}};bf.styles=Jt;bf=v([se("mdui-icon-clear")],bf);const R9=pe`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( + `;let mf=class extends mt{render(){return ni('')}};mf.styles=ri;mf=y([oe("mdui-icon-check-box-outline-blank")],mf);let gf=class extends mt{render(){return ni('')}};gf.styles=ri;gf=y([oe("mdui-icon-check-box")],gf);let vf=class extends mt{render(){return ni('')}};vf.styles=ri;vf=y([oe("mdui-icon-indeterminate-check-box")],vf);const R9=ge`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let ei=class extends Sr(ir(Ie)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=be(),this.rippleRef=be(),this.formController=new mn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=Bt.get(t))!=null&&i.has(this))?(this.invalid=!1,Bt.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};ei.styles=[Ee,R9];y([T({type:Boolean,reflect:!0,converter:Y})],ei.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ei.prototype,"checked",void 0);y([Qn("checked")],ei.prototype,"defaultChecked",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ei.prototype,"indeterminate",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ei.prototype,"required",void 0);y([T({reflect:!0})],ei.prototype,"form",void 0);y([T({reflect:!0})],ei.prototype,"name",void 0);y([T({reflect:!0})],ei.prototype,"value",void 0);y([T({reflect:!0,attribute:"unchecked-icon"})],ei.prototype,"uncheckedIcon",void 0);y([T({reflect:!0,attribute:"checked-icon"})],ei.prototype,"checkedIcon",void 0);y([T({reflect:!0,attribute:"indeterminate-icon"})],ei.prototype,"indeterminateIcon",void 0);y([ke()],ei.prototype,"invalid",void 0);y([ne("disabled",!0),ne("indeterminate",!0),ne("required",!0)],ei.prototype,"onDisabledChange",null);y([ne("checked",!0)],ei.prototype,"onCheckedChange",null);ei=y([oe("mdui-checkbox")],ei);let yf=class extends mt{render(){return ni('')}};yf.styles=ri;yf=y([oe("mdui-icon-check")],yf);let bf=class extends mt{render(){return ni('')}};bf.styles=ri;bf=y([oe("mdui-icon-clear")],bf);const I9=ge`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Yi=class extends ft{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=Or({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return D`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?D``:Ke,i=()=>this.selectedIcon?D``:this.variant==="assist"||this.variant==="filter"?D``:t();return this.selected?D`${i()}`:D`${t()}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderDeleteIcon(){return this.deletable?D`${this.deleteIcon?D``:D``}`:Ke}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Yi.styles=[ft.styles,R9];v([R({reflect:!0})],Yi.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"elevated",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"deletable",void 0);v([R({reflect:!0})],Yi.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Yi.prototype,"selectedIcon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Yi.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"delete-icon"})],Yi.prototype,"deleteIcon",void 0);v([re("selected",!0)],Yi.prototype,"onSelectedChange",null);Yi=v([se("mdui-chip")],Yi);const Xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},I9=pe`:host{display:block}`;let Mr=class extends Re{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return D``}setActiveKeys(t){Xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>ln(s)&&B(s).is(r.trigger)))&&n.find(s=>ln(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};Mr.styles=[Ee,I9];v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"accordion",void 0);v([R()],Mr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"disabled",void 0);v([Ce()],Mr.prototype,"activeKeys",void 0);v([Ji({selector:"mdui-collapse-item",flatten:!0})],Mr.prototype,"items",void 0);v([re("activeKeys",!0)],Mr.prototype,"onActiveKeysChange",null);v([re("value")],Mr.prototype,"onValueChange",null);Mr=v([se("mdui-collapse")],Mr);const $9=pe`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let Vr=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Xn(),this.bodyRef=be()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return D`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(B(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),B(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};Vr.styles=[Ee,$9];v([R({reflect:!0})],Vr.prototype,"value",void 0);v([R({reflect:!0})],Vr.prototype,"header",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vr.prototype,"disabled",void 0);v([R()],Vr.prototype,"trigger",void 0);v([Ce()],Vr.prototype,"active",void 0);v([Ce()],Vr.prototype,"state",void 0);v([re("active")],Vr.prototype,"onActiveChange",null);Vr=v([se("mdui-collapse-item")],Vr);/** + )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Zi=class extends gt{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=be(),this.hasSlotController=new qt(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=Mr({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return P`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?P``:We,i=()=>this.selectedIcon?P``:this.variant==="assist"||this.variant==="filter"?P``:t();return this.selected?P`${i()}`:P`${t()}`}renderLabel(){return P``}renderEndIcon(){return P`${this.endIcon?P``:We}`}renderDeleteIcon(){return this.deletable?P`${this.deleteIcon?P``:P``}`:We}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Zi.styles=[gt.styles,I9];y([T({reflect:!0})],Zi.prototype,"variant",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"elevated",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"selectable",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"selected",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"deletable",void 0);y([T({reflect:!0})],Zi.prototype,"icon",void 0);y([T({reflect:!0,attribute:"selected-icon"})],Zi.prototype,"selectedIcon",void 0);y([T({reflect:!0,attribute:"end-icon"})],Zi.prototype,"endIcon",void 0);y([T({reflect:!0,attribute:"delete-icon"})],Zi.prototype,"deleteIcon",void 0);y([ne("selected",!0)],Zi.prototype,"onSelectedChange",null);Zi=y([oe("mdui-chip")],Zi);const Xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},$9=ge`:host{display:block}`;let Vr=class extends Ie{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new ii(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return P``}setActiveKeys(t){Xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||ct(this.value)||ct(t)?this.value=t:Xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>cn(s)&&B(s).is(r.trigger)))&&n.find(s=>cn(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};Vr.styles=[Ee,$9];y([T({type:Boolean,reflect:!0,converter:Y})],Vr.prototype,"accordion",void 0);y([T()],Vr.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Vr.prototype,"disabled",void 0);y([ke()],Vr.prototype,"activeKeys",void 0);y([tr({selector:"mdui-collapse-item",flatten:!0})],Vr.prototype,"items",void 0);y([ne("activeKeys",!0)],Vr.prototype,"onActiveKeysChange",null);y([ne("value")],Vr.prototype,"onValueChange",null);Vr=y([oe("mdui-collapse")],Vr);const P9=ge`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let Fr=class extends Ie{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Zn(),this.bodyRef=be()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return P`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(B(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),B(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};Fr.styles=[Ee,P9];y([T({reflect:!0})],Fr.prototype,"value",void 0);y([T({reflect:!0})],Fr.prototype,"header",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Fr.prototype,"disabled",void 0);y([T()],Fr.prototype,"trigger",void 0);y([ke()],Fr.prototype,"active",void 0);y([ke()],Fr.prototype,"state",void 0);y([ne("active")],Fr.prototype,"onActiveChange",null);Fr=y([oe("mdui-collapse-item")],Fr);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function et(e,t,i){return e?t(e):i==null?void 0:i(e)}function Xe(e,t,i){return e?new Promise(r=>{if(i.duration===1/0)throw new Error("Promise-based animations must be finite.");Xd(i.duration)&&isNaN(i.duration)&&(i.duration=0),i.easing===""&&(i.easing="linear");const n=e.animate(t,i);n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})}):Promise.resolve()}function Ii(e){return e?Promise.all(e.getAnimations().map(t=>new Promise(i=>{const r=requestAnimationFrame(i);t.addEventListener("cancel",()=>r,{once:!0}),t.addEventListener("finish",()=>r,{once:!0}),t.cancel()}))):Promise.resolve()}function P1(e){const t=Yn(),i=e.localName;return e.getAttribute("tabindex")==="-1"||e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&e.getAttribute("aria-disabled")!=="false"||i==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||e.offsetParent===null||t.getComputedStyle(e).visibility==="hidden"?!1:(i==="audio"||i==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function P9(e){const t=[];function i(s){s instanceof HTMLElement&&(t.push(s),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)),[...s.children].forEach(a=>i(a))}i(e);const r=t.find(s=>P1(s))??null,n=t.reverse().find(s=>P1(s))??null;return{start:r,end:n}}let ya=[];class Jb{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){ya.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){ya=ya.filter(t=>t!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return ya[ya.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:i}=P9(this.element),r=this.tabDirection==="forward"?t:i;typeof(r==null?void 0:r.focus)=="function"&&r.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backward"),requestAnimationFrame(()=>this.checkFocus())}handleKeyUp(){this.tabDirection="forward"}}const ci=(e,t)=>{const i=`--mdui-motion-easing-${t}`;return B(e).css(i).trim()},ur=(e,t)=>{const i=`--mdui-motion-duration-${t}`,r=B(e).css(i).trim().toLowerCase();return r.endsWith("ms")?parseFloat(r):parseFloat(r)*1e3};let Nu;const D9=e=>{if(ot(document))return 0;if(Nu===void 0){const t=B("
").css({width:"100%",height:"200px"}),i=B("
").css({position:"absolute",top:"0",left:"0",pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}).append(t).appendTo(document.body),r=t[0].offsetWidth;i.css("overflow","scroll");let n=t[0].offsetWidth;r===n&&(n=i[0].clientWidth),i.remove(),Nu=r-n}return Nu},L9=e=>e.scrollHeight>e.clientHeight,Fa=new WeakMap,e5="mdui-lock-screen",wf=(e,t)=>{const i=wi();t??(t=i.documentElement),Fa.has(t)||Fa.set(t,new Set),Fa.get(t).add(e);const n=B(t);L9(t)&&n.css("width",`calc(100% - ${D9()}px)`),n.addClass(e5)},za=(e,t)=>{const i=wi();t??(t=i.documentElement);const r=Fa.get(t);r&&(r.delete(e),r.size===0&&(Fa.delete(t),B(t).removeClass(e5).width("")))};/** + */function rt(e,t,i){return e?t(e):i==null?void 0:i(e)}function Ze(e,t,i){return e?new Promise(r=>{if(i.duration===1/0)throw new Error("Promise-based animations must be finite.");Xd(i.duration)&&isNaN(i.duration)&&(i.duration=0),i.easing===""&&(i.easing="linear");const n=e.animate(t,i);n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})}):Promise.resolve()}function Pi(e){return e?Promise.all(e.getAnimations().map(t=>new Promise(i=>{const r=requestAnimationFrame(i);t.addEventListener("cancel",()=>r,{once:!0}),t.addEventListener("finish",()=>r,{once:!0}),t.cancel()}))):Promise.resolve()}function P1(e){const t=Xn(),i=e.localName;return e.getAttribute("tabindex")==="-1"||e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&e.getAttribute("aria-disabled")!=="false"||i==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||e.offsetParent===null||t.getComputedStyle(e).visibility==="hidden"?!1:(i==="audio"||i==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function D9(e){const t=[];function i(s){s instanceof HTMLElement&&(t.push(s),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)),[...s.children].forEach(a=>i(a))}i(e);const r=t.find(s=>P1(s))??null,n=t.reverse().find(s=>P1(s))??null;return{start:r,end:n}}let ya=[];class Jb{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){ya.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){ya=ya.filter(t=>t!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return ya[ya.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:i}=D9(this.element),r=this.tabDirection==="forward"?t:i;typeof(r==null?void 0:r.focus)=="function"&&r.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backward"),requestAnimationFrame(()=>this.checkFocus())}handleKeyUp(){this.tabDirection="forward"}}const hi=(e,t)=>{const i=`--mdui-motion-easing-${t}`;return B(e).css(i).trim()},fr=(e,t)=>{const i=`--mdui-motion-duration-${t}`,r=B(e).css(i).trim().toLowerCase();return r.endsWith("ms")?parseFloat(r):parseFloat(r)*1e3};let Tu;const B9=e=>{if(ct(document))return 0;if(Tu===void 0){const t=B("
").css({width:"100%",height:"200px"}),i=B("
").css({position:"absolute",top:"0",left:"0",pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}).append(t).appendTo(document.body),r=t[0].offsetWidth;i.css("overflow","scroll");let n=t[0].offsetWidth;r===n&&(n=i[0].clientWidth),i.remove(),Tu=r-n}return Tu},L9=e=>e.scrollHeight>e.clientHeight,Fa=new WeakMap,e5="mdui-lock-screen",wf=(e,t)=>{const i=Ci();t??(t=i.documentElement),Fa.has(t)||Fa.set(t,new Set),Fa.get(t).add(e);const n=B(t);L9(t)&&n.css("width",`calc(100% - ${B9()}px)`),n.addClass(e5)},za=(e,t)=>{const i=Ci();t??(t=i.documentElement);const r=Fa.get(t);r&&(r.delete(e),r.size===0&&(Fa.delete(t),B(t).removeClass(e5).width("")))};/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const B9=e=>typeof e!="string"&&"strTag"in e,O9=(e,t,i)=>{let r=e[0];for(let n=1;ntypeof e!="string"&&"strTag"in e,M9=(e,t,i)=>{let r=e[0];for(let n=1;nB9(e)?O9(e.strings,e.values):e;/** + */const V9=e=>O9(e)?M9(e.strings,e.values):e;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const V9="lit-localize-status";/** + */const F9="lit-localize-status";/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class F9{constructor(){this.settled=!1,this.promise=new Promise((t,i)=>{this._resolve=t,this._reject=i})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}}/** + */class z9{constructor(){this.settled=!1,this.promise=new Promise((t,i)=>{this._resolve=t,this._reject=i})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}}/** * @license * Copyright 2014 Travis Webb * SPDX-License-Identifier: MIT @@ -198,25 +198,25 @@ * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let z9=new F9;z9.resolve();/** + */let H9=new z9;H9.resolve();/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let H9=M9,D1=!1;const Lc=new Map,U9=(e,t)=>{D1||(D1=!0,Yn().addEventListener(V9,n=>{n.detail.status==="ready"&&Lc.forEach(s=>{s.forEach(o=>o())})}));const i=Lc.get(e)||[];i.push(t),Lc.set(e,i)},Bc=e=>{Lc.delete(e)},K9=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Xi=class extends Re{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=be(),this.panelRef=be(),this.bodyRef=be(),this.hasSlotController=new Ut(this,"header","icon","headline","description","action","[default]"),this.definedController=new Qt(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=ci(this,"emphasized-accelerate"),o=()=>Promise.all([Ii(this.overlayRef.value),Ii(this.panelRef.value),...i.map(a=>Ii(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),wf(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=ur(this,"medium4");await Promise.all([Xe(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>Xe(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=ur(this,"short4");await Promise.all([Xe(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",za(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),za(this),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new Jb(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return D`
${et(o,()=>D`${et(r,()=>this.renderIcon())} ${et(n,()=>this.renderHeadline())}`)} ${et(a,()=>D`
${et(s,()=>this.renderDescription())}
`)} ${et(t,()=>D``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return D`${this.icon?D``:Ke}`}renderHeadline(){return D`${this.headline}`}renderDescription(){return D`${this.description}`}};Xi.styles=[Ee,K9];v([R({reflect:!0})],Xi.prototype,"icon",void 0);v([R({reflect:!0})],Xi.prototype,"headline",void 0);v([R({reflect:!0})],Xi.prototype,"description",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"fullscreen",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Xi.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Xi.prototype,"closeOnOverlayClick",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Xi.prototype,"stackedActions",void 0);v([Ji({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Xi.prototype,"topAppBarElements",void 0);v([re("open")],Xi.prototype,"onOpenChange",null);Xi=v([se("mdui-dialog")],Xi);const W9=pe`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let Zo=class extends Re{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return D``}};Zo.styles=[Ee,W9];v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"vertical",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"inset",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"middle",void 0);Zo=v([se("mdui-divider")],Zo);function t5(e){return i5(e)?(e.nodeName||"").toLowerCase():"#document"}function Wl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q9(e){var t;return(t=(i5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function i5(e){return e instanceof Node||e instanceof Wl(e).Node}function j9(e){return e instanceof HTMLElement||e instanceof Wl(e).HTMLElement}function L1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wl(e).ShadowRoot}function r5(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=X9(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Y9(e){return["html","body","#document"].includes(t5(e))}function X9(e){return Wl(e).getComputedStyle(e)}function Z9(e){if(t5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L1(e)&&e.host||q9(e);return L1(t)?t.host:t}function n5(e){const t=Z9(e);return Y9(t)?e.ownerDocument?e.ownerDocument.body:e.body:j9(t)&&r5(t)?t:n5(t)}function gd(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=n5(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=Wl(n);return s?t.concat(o,o.visualViewport||[],r5(n)?n:[],o.frameElement&&i?gd(o.frameElement):[]):t.concat(n,gd(n,[],i))}const G9=pe`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let ki=class extends Re{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=be(),this.definedController=new Qt(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>Ct(c.focus));setTimeout(()=>{a==null||a.focus()});const l=ur(this,"medium4");await Ii(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&Ct((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=ur(this,"short4");await Ii(this.panelRef.value),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=gd(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=to(this.triggerElement,()=>{this.updatePositioner()})})}render(){return D``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&Ct((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&B(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=B(this.panelRef.value),i=B(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,w)=>b+w,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),w=i.height();let _,g;w-o.top-o.height>n.height+a?_="bottom":o.top>n.height+a?_="top":b-o.left-o.width>n.width+a?_="right":o.left>n.width+a?_="left":_="bottom",["top","bottom"].includes(_)?b-o.left>n.width+a?g="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?g=void 0:o.left+o.width>n.width+a?g="end":g="start":w-o.top>n.height+a?g="start":o.top+o.height/2>n.height/2+a&&w-o.top-o.height/2>n.height/2+a?g=void 0:o.top+o.height>n.height+a?g="end":g="start",h=g?[_,g].join("-"):_}const[f,m]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",m){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",m){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};ki.styles=[Ee,G9];v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"disabled",void 0);v([R({reflect:!0})],ki.prototype,"trigger",void 0);v([R({reflect:!0})],ki.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],ki.prototype,"stayOpenOnClick",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],ki.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],ki.prototype,"closeDelay",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],ki.prototype,"openOnPointer",void 0);v([Ji({slot:"trigger",flatten:!0})],ki.prototype,"triggerElements",void 0);v([Ji({flatten:!0})],ki.prototype,"panelElements",void 0);v([re("placement",!0),re("openOnPointer",!0)],ki.prototype,"onPositionChange",null);v([re("open")],ki.prototype,"onOpenChange",null);ki=v([se("mdui-dropdown")],ki);const s5=(e=0)=>new Promise(t=>setTimeout(t,e)),Q9=pe`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( + */let U9=V9,D1=!1;const Lc=new Map,K9=(e,t)=>{D1||(D1=!0,Xn().addEventListener(F9,n=>{n.detail.status==="ready"&&Lc.forEach(s=>{s.forEach(o=>o())})}));const i=Lc.get(e)||[];i.push(t),Lc.set(e,i)},Oc=e=>{Lc.delete(e)},W9=ge`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Gi=class extends Ie{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=be(),this.panelRef=be(),this.bodyRef=be(),this.hasSlotController=new qt(this,"header","icon","headline","description","action","[default]"),this.definedController=new ii(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=hi(this,"linear"),n=hi(this,"emphasized-decelerate"),s=hi(this,"emphasized-accelerate"),o=()=>Promise.all([Pi(this.overlayRef.value),Pi(this.panelRef.value),...i.map(a=>Pi(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),wf(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=fr(this,"medium4");await Promise.all([Ze(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),Ze(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),Ze(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>Ze(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=fr(this,"short4");await Promise.all([Ze(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),Ze(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),Ze(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>Ze(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",za(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),za(this),Oc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new Jb(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return P`
${rt(o,()=>P`${rt(r,()=>this.renderIcon())} ${rt(n,()=>this.renderHeadline())}`)} ${rt(a,()=>P`
${rt(s,()=>this.renderDescription())}
`)} ${rt(t,()=>P``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return P`${this.icon?P``:We}`}renderHeadline(){return P`${this.headline}`}renderDescription(){return P`${this.description}`}};Gi.styles=[Ee,W9];y([T({reflect:!0})],Gi.prototype,"icon",void 0);y([T({reflect:!0})],Gi.prototype,"headline",void 0);y([T({reflect:!0})],Gi.prototype,"description",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Gi.prototype,"open",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Gi.prototype,"fullscreen",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Gi.prototype,"closeOnEsc",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Gi.prototype,"closeOnOverlayClick",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Gi.prototype,"stackedActions",void 0);y([tr({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Gi.prototype,"topAppBarElements",void 0);y([ne("open")],Gi.prototype,"onOpenChange",null);Gi=y([oe("mdui-dialog")],Gi);const j9=ge`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let Zo=class extends Ie{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return P``}};Zo.styles=[Ee,j9];y([T({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"vertical",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"inset",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"middle",void 0);Zo=y([oe("mdui-divider")],Zo);function t5(e){return i5(e)?(e.nodeName||"").toLowerCase():"#document"}function jl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q9(e){var t;return(t=(i5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function i5(e){return e instanceof Node||e instanceof jl(e).Node}function Y9(e){return e instanceof HTMLElement||e instanceof jl(e).HTMLElement}function B1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jl(e).ShadowRoot}function r5(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=Z9(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function X9(e){return["html","body","#document"].includes(t5(e))}function Z9(e){return jl(e).getComputedStyle(e)}function G9(e){if(t5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||B1(e)&&e.host||q9(e);return B1(t)?t.host:t}function n5(e){const t=G9(e);return X9(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y9(t)&&r5(t)?t:n5(t)}function vd(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=n5(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=jl(n);return s?t.concat(o,o.visualViewport||[],r5(n)?n:[],o.frameElement&&i?vd(o.frameElement):[]):t.concat(n,vd(n,[],i))}const Q9=ge`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let Ai=class extends Ie{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=be(),this.definedController=new ii(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=hi(this,"linear"),r=hi(this,"emphasized-decelerate"),n=hi(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>xt(c.focus));setTimeout(()=>{a==null||a.focus()});const l=fr(this,"medium4");await Pi(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([Ze(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),Ze(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&xt((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=fr(this,"short4");await Pi(this.panelRef.value),await Promise.all([Ze(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),Ze(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=vd(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=to(this.triggerElement,()=>{this.updatePositioner()})})}render(){return P``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&xt((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&B(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=B(this.panelRef.value),i=B(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,v)=>b+v,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),v=i.height();let _,w;v-o.top-o.height>n.height+a?_="bottom":o.top>n.height+a?_="top":b-o.left-o.width>n.width+a?_="right":o.left>n.width+a?_="left":_="bottom",["top","bottom"].includes(_)?b-o.left>n.width+a?w="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?w=void 0:o.left+o.width>n.width+a?w="end":w="start":v-o.top>n.height+a?w="start":o.top+o.height/2>n.height/2+a&&v-o.top-o.height/2>n.height/2+a?w=void 0:o.top+o.height>n.height+a?w="end":w="start",h=w?[_,w].join("-"):_}const[f,m]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",m){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",m){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};Ai.styles=[Ee,Q9];y([T({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"open",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"disabled",void 0);y([T({reflect:!0})],Ai.prototype,"trigger",void 0);y([T({reflect:!0})],Ai.prototype,"placement",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],Ai.prototype,"stayOpenOnClick",void 0);y([T({type:Number,reflect:!0,attribute:"open-delay"})],Ai.prototype,"openDelay",void 0);y([T({type:Number,reflect:!0,attribute:"close-delay"})],Ai.prototype,"closeDelay",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],Ai.prototype,"openOnPointer",void 0);y([tr({slot:"trigger",flatten:!0})],Ai.prototype,"triggerElements",void 0);y([tr({flatten:!0})],Ai.prototype,"panelElements",void 0);y([ne("placement",!0),ne("openOnPointer",!0)],Ai.prototype,"onPositionChange",null);y([ne("open")],Ai.prototype,"onOpenChange",null);Ai=y([oe("mdui-dropdown")],Ai);const s5=(e=0)=>new Promise(t=>setTimeout(t,e)),J9=ge`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-primary-container )}:host([variant=surface]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-high));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=surface][lowered]){background-color:rgb(var(--mdui-color-surface-container-low))}:host([variant=secondary]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container )}:host([variant=tertiary]){color:rgb(var(--mdui-color-on-tertiary-container));background-color:rgb(var(--mdui-color-tertiary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-tertiary-container - )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Un=class extends ft{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon"),this.definedController=new Qt(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await s5(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=Or({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return D``}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};Un.styles=[ft.styles,Q9];v([R({reflect:!0})],Un.prototype,"variant",void 0);v([R({reflect:!0})],Un.prototype,"size",void 0);v([R({reflect:!0})],Un.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Un.prototype,"extended",void 0);v([re("extended")],Un.prototype,"onExtendedChange",null);Un=v([se("mdui-fab")],Un);const J9=pe`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let vd=class extends Re{constructor(){super(...arguments),this.fullHeight=!1}render(){return D``}};vd.styles=[Ee,J9];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],vd.prototype,"fullHeight",void 0);vd=v([se("mdui-layout")],vd);const ek=pe`:host{display:flex;z-index:1}`;let vl=class extends Zn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return D``}};vl.styles=[Ee,ek];v([R({reflect:!0})],vl.prototype,"placement",void 0);v([re("placement",!0)],vl.prototype,"onPlacementChange",null);vl=v([se("mdui-layout-item")],vl);const tk=pe`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let _f=class extends Re{connectedCallback(){super.connectedCallback();const t=this.parentElement;zl(t,"mdui-layout")&&(this.layoutManager=Gb(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return D``}};_f.styles=[Ee,tk];_f=v([se("mdui-layout-main")],_f);const ik=pe`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let yl=class extends Re{constructor(){super(...arguments),this.max=1}render(){if(!ot(this.value)){const i=this.value;return D`
`}return D`
`}};yl.styles=[Ee,ik];v([R({type:Number,reflect:!0})],yl.prototype,"max",void 0);v([R({type:Number})],yl.prototype,"value",void 0);yl=v([se("mdui-linear-progress")],yl);const rk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Kn=class extends gt{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=be(),this.hasSlotController=new qt(this,"icon"),this.definedController=new ii(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await s5(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=Mr({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return P``}renderIcon(){return this.loading?this.renderLoading():P`${this.icon?P``:We}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};Kn.styles=[gt.styles,J9];y([T({reflect:!0})],Kn.prototype,"variant",void 0);y([T({reflect:!0})],Kn.prototype,"size",void 0);y([T({reflect:!0})],Kn.prototype,"icon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"extended",void 0);y([ne("extended")],Kn.prototype,"onExtendedChange",null);Kn=y([oe("mdui-fab")],Kn);const eC=ge`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let yd=class extends Ie{constructor(){super(...arguments),this.fullHeight=!1}render(){return P``}};yd.styles=[Ee,eC];y([T({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],yd.prototype,"fullHeight",void 0);yd=y([oe("mdui-layout")],yd);const tC=ge`:host{display:flex;z-index:1}`;let vl=class extends Gn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return P``}};vl.styles=[Ee,tC];y([T({reflect:!0})],vl.prototype,"placement",void 0);y([ne("placement",!0)],vl.prototype,"onPlacementChange",null);vl=y([oe("mdui-layout-item")],vl);const iC=ge`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let _f=class extends Ie{connectedCallback(){super.connectedCallback();const t=this.parentElement;Hl(t,"mdui-layout")&&(this.layoutManager=Gb(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return P``}};_f.styles=[Ee,iC];_f=y([oe("mdui-layout-main")],_f);const rC=ge`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let yl=class extends Ie{constructor(){super(...arguments),this.max=1}render(){if(!ct(this.value)){const i=this.value;return P`
`}return P`
`}};yl.styles=[Ee,rC];y([T({type:Number,reflect:!0})],yl.prototype,"max",void 0);y([T({type:Number})],yl.prototype,"value",void 0);yl=y([oe("mdui-linear-progress")],yl);const nC=ge`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let di=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=be(),this.itemRef=be(),this.hasSlotController=new Ut(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=Or({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":zl(this.iconElements[0],"mdui-icon"),"is-end-icon":d_(this.endIconElements[0]).startsWith("mdui-icon-")});return D`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:ue(this.itemRef)}):D`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return D`${this.icon?D``:Ke}
${t?D``:D`
${this.headline}
`}${this.description}
${this.endIcon?D``:Ke}
`}};di.styles=[Ee,rk];v([R({reflect:!0})],di.prototype,"headline",void 0);v([R({type:Number,reflect:!0,attribute:"headline-line"})],di.prototype,"headlineLine",void 0);v([R({reflect:!0})],di.prototype,"description",void 0);v([R({type:Number,reflect:!0,attribute:"description-line"})],di.prototype,"descriptionLine",void 0);v([R({reflect:!0})],di.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],di.prototype,"endIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"active",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"nonclickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"rounded",void 0);v([R({reflect:!0})],di.prototype,"alignment",void 0);v([Ji({slot:"icon",flatten:!0})],di.prototype,"iconElements",void 0);v([Ji({slot:"end-icon",flatten:!0})],di.prototype,"endIconElements",void 0);di=v([se("mdui-list-item")],di);const nk=pe`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let kf=class extends Re{render(){return D``}};kf.styles=[Ee,nk];kf=v([se("mdui-list-subheader")],kf);const sk=pe`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let Cf=class extends Re{render(){return D``}};Cf.styles=[Ee,sk];Cf=v([se("mdui-list")],Cf);let Af=class extends ht{render(){return ei('')}};Af.styles=Jt;Af=v([se("mdui-icon-arrow-right")],Af);const ok=pe`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ht=class extends sa(Er(er(Re))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Xn(),this.rippleRef=be(),this.containerRef=be(),this.submenuRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new Qt(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=ur(this,"medium4");await Ii(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),Xe(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=ur(this,"short4");await Ii(this.submenuRef.value),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),Xe(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!ot(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=Or({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return D`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:ue(this.containerRef),tabIndex:this.focusable?0:-1}):D`
${this.renderInner(n,o)}
`} ${et(t,()=>D``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!B.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=B(window),i=B(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),B(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return D`${this.selected?D`${this.selectedIcon?D``:D``}`:D`${i?D``:Ke}`}
${this.endText}${t?D``:D`${this.endIcon?D``:Ke}`}
`}};Ht.styles=[Ee,ok];v([R({reflect:!0})],Ht.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"disabled",void 0);v([R({reflect:!0})],Ht.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ht.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"end-text"})],Ht.prototype,"endText",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Ht.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],Ht.prototype,"submenuOpen",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"selected",void 0);v([Ce()],Ht.prototype,"dense",void 0);v([Ce()],Ht.prototype,"selects",void 0);v([Ce()],Ht.prototype,"submenuTrigger",void 0);v([Ce()],Ht.prototype,"submenuOpenDelay",void 0);v([Ce()],Ht.prototype,"submenuCloseDelay",void 0);v([Ce()],Ht.prototype,"focusable",void 0);v([re("submenuOpen")],Ht.prototype,"onOpenChange",null);Ht=v([se("mdui-menu-item")],Ht);const ak=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ci=class extends Re{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get items(){return B(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!B(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=B(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=B(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return D``}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return B(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await s5()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};Ci.styles=[Ee,ak];v([R({reflect:!0})],Ci.prototype,"selects",void 0);v([R()],Ci.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"dense",void 0);v([R({reflect:!0,attribute:"submenu-trigger"})],Ci.prototype,"submenuTrigger",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-open-delay"})],Ci.prototype,"submenuOpenDelay",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-close-delay"})],Ci.prototype,"submenuCloseDelay",void 0);v([Ce()],Ci.prototype,"selectedKeys",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Ci.prototype,"childrenItems",void 0);v([re("dense"),re("selects"),re("submenuTrigger"),re("submenuOpenDelay"),re("submenuCloseDelay")],Ci.prototype,"onSlotChange",null);v([re("selects",!0)],Ci.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Ci.prototype,"onSelectedKeysChange",null);v([re("value")],Ci.prototype,"onValueChange",null);Ci=v([se("mdui-menu")],Ci);const lk=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Fr=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=Or({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=Or([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):D`
${this.renderInner()}
`}`}renderInner(){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
`}};Fr.styles=[Ee,lk];v([R({reflect:!0})],Fr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Fr.prototype,"activeIcon",void 0);v([R({reflect:!0})],Fr.prototype,"value",void 0);v([Ce()],Fr.prototype,"labelVisibility",void 0);v([Ce()],Fr.prototype,"isInitial",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Fr.prototype,"active",void 0);v([Ce()],Fr.prototype,"disabled",void 0);Fr=v([se("mdui-navigation-bar-item")],Fr);const ck=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let hr=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};hr.styles=[Ee,ck];v([R({type:Boolean,reflect:!0,converter:Y})],hr.prototype,"hide",void 0);v([R({reflect:!0,attribute:"label-visibility"})],hr.prototype,"labelVisibility",void 0);v([R({reflect:!0})],hr.prototype,"value",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],hr.prototype,"scrollBehavior",void 0);v([Ce()],hr.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-bar-item",flatten:!0})],hr.prototype,"items",void 0);v([re("activeKey",!0)],hr.prototype,"onActiveKeyChange",null);v([re("value")],hr.prototype,"onValueChange",null);v([re("labelVisibility",!0)],hr.prototype,"onLabelVisibilityChange",null);hr=v([se("mdui-navigation-bar")],hr);const o5=e=>{const t=Yn(),i=wi(),r=t.getComputedStyle(i.documentElement),n=ln(e)?B(e).innerWidth():Xd(e)?e:B(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=o5(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(wf(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(za(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=ci(this,"linear"),s=ci(this,"emphasized"),o=(l,c)=>{B(this.layoutManager.getItemsAndMain()).css("transition",y0(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>Ii(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||wf(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=ur(this,"long2"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(Xe(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=ur(this,"short4"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(Xe(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&za(this,this.lockTarget);const u=this.originalTrigger;Ct(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new Jb(this)}disconnectedCallback(){var t;super.disconnectedCallback(),za(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return D`${et(this.isModal,()=>D`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=B(this.panelRef.value).innerWidth()+"px";return Xe(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:ci(this,"emphasized"),fill:"forwards"})}};Di.styles=[Ee,dk];v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"modal",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Di.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Di.prototype,"closeOnOverlayClick",void 0);v([R({reflect:!0})],Di.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"mobile",void 0);v([re("contained")],Di.prototype,"onContainedChange",null);v([re("placement",!0)],Di.prototype,"onPlacementChange",null);v([re("mobile",!0),re("modal",!0)],Di.prototype,"onMobileChange",null);v([re("open")],Di.prototype,"onOpenChange",null);Di=v([se("mdui-navigation-drawer")],Di);const uk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let Li=class extends Zn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new Ut(this,"top","bottom"),this.definedController=new Qt(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(B(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),B(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),B(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&B(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return D`${et(t,()=>D``)} ${et(i,()=>D``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Li.styles=[Ee,uk];v([R({reflect:!0})],Li.prototype,"value",void 0);v([R({reflect:!0})],Li.prototype,"placement",void 0);v([R({reflect:!0})],Li.prototype,"alignment",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"divider",void 0);v([Ce()],Li.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-rail-item",flatten:!0})],Li.prototype,"items",void 0);v([re("activeKey",!0)],Li.prototype,"onActiveKeyChange",null);v([re("value")],Li.prototype,"onValueChange",null);v([re("contained",!0)],Li.prototype,"onContainedChange",null);v([re("placement",!0)],Li.prototype,"onPlacementChange",null);Li=v([se("mdui-navigation-rail")],Li);const hk=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let zr=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=Or({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):D`
${this.renderInner(t)}
`}`}renderInner(t){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
${t?D``:Ze}`}};zr.styles=[Ee,hk];v([R({reflect:!0})],zr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],zr.prototype,"activeIcon",void 0);v([R({reflect:!0})],zr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],zr.prototype,"active",void 0);v([Ce()],zr.prototype,"isInitial",void 0);v([Ce()],zr.prototype,"placement",void 0);v([Ce()],zr.prototype,"disabled",void 0);zr=v([se("mdui-navigation-rail-item")],zr);let Ef=class extends ht{render(){return ei('')}};Ef.styles=Jt;Ef=v([se("mdui-icon-circle")],Ef);let xf=class extends ht{render(){return ei('')}};xf.styles=Jt;xf=v([se("mdui-icon-radio-button-unchecked")],xf);const fk=pe`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Zi=class extends Er(er(Re)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=kt({invalid:this.invalid,initial:this.isInitial});return D`${this.uncheckedIcon?D``:D``}${this.checkedIcon?D``:D``}`}isDisabled(){return this.disabled||this.groupDisabled}};Zi.styles=[Ee,fk];v([R({reflect:!0})],Zi.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"checked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zi.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zi.prototype,"checkedIcon",void 0);v([Ce()],Zi.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Zi.prototype,"groupDisabled",void 0);v([Ce()],Zi.prototype,"focusable",void 0);v([Ce()],Zi.prototype,"isInitial",void 0);v([re("checked",!0)],Zi.prototype,"onCheckedChange",null);Zi=v([se("mdui-radio")],Zi);const pk=pe`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let fr=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-radio").get()}get itemsEnabled(){return B(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};fr.styles=[Ee,pk];v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"disabled",void 0);v([R({reflect:!0})],fr.prototype,"form",void 0);v([R({reflect:!0})],fr.prototype,"name",void 0);v([R({reflect:!0})],fr.prototype,"value",void 0);v([Gn()],fr.prototype,"defaultValue",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"required",void 0);v([Ce()],fr.prototype,"invalid",void 0);v([re("value",!0)],fr.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],fr.prototype,"onInvalidChange",null);fr=v([se("mdui-radio-group")],fr);/** + )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let fi=class extends sa(Sr(ir(Ie))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=be(),this.itemRef=be(),this.hasSlotController=new qt(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=Mr({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":Hl(this.iconElements[0],"mdui-icon"),"is-end-icon":u_(this.endIconElements[0]).startsWith("mdui-icon-")});return P`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:fe(this.itemRef)}):P`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return P`${this.icon?P``:We}
${t?P``:P`
${this.headline}
`}${this.description}
${this.endIcon?P``:We}
`}};fi.styles=[Ee,nC];y([T({reflect:!0})],fi.prototype,"headline",void 0);y([T({type:Number,reflect:!0,attribute:"headline-line"})],fi.prototype,"headlineLine",void 0);y([T({reflect:!0})],fi.prototype,"description",void 0);y([T({type:Number,reflect:!0,attribute:"description-line"})],fi.prototype,"descriptionLine",void 0);y([T({reflect:!0})],fi.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],fi.prototype,"endIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],fi.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],fi.prototype,"active",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],fi.prototype,"nonclickable",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],fi.prototype,"rounded",void 0);y([T({reflect:!0})],fi.prototype,"alignment",void 0);y([tr({slot:"icon",flatten:!0})],fi.prototype,"iconElements",void 0);y([tr({slot:"end-icon",flatten:!0})],fi.prototype,"endIconElements",void 0);fi=y([oe("mdui-list-item")],fi);const sC=ge`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let Cf=class extends Ie{render(){return P``}};Cf.styles=[Ee,sC];Cf=y([oe("mdui-list-subheader")],Cf);const oC=ge`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let kf=class extends Ie{render(){return P``}};kf.styles=[Ee,oC];kf=y([oe("mdui-list")],kf);let Af=class extends mt{render(){return ni('')}};Af.styles=ri;Af=y([oe("mdui-icon-arrow-right")],Af);const aC=ge`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let jt=class extends sa(Sr(ir(Ie))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Zn(),this.rippleRef=be(),this.containerRef=be(),this.submenuRef=be(),this.hasSlotController=new qt(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new ii(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=hi(this,"linear"),r=hi(this,"emphasized-decelerate"),n=hi(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=fr(this,"medium4");await Pi(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([Ze(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),Ze(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=fr(this,"short4");await Pi(this.submenuRef.value),await Promise.all([Ze(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),Ze(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!ct(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=Mr({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return P`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:fe(this.containerRef),tabIndex:this.focusable?0:-1}):P`
${this.renderInner(n,o)}
`} ${rt(t,()=>P``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!B.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=B(window),i=B(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),B(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return P`${this.selected?P`${this.selectedIcon?P``:P``}`:P`${i?P``:We}`}
${this.endText}${t?P``:P`${this.endIcon?P``:We}`}
`}};jt.styles=[Ee,aC];y([T({reflect:!0})],jt.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],jt.prototype,"disabled",void 0);y([T({reflect:!0})],jt.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],jt.prototype,"endIcon",void 0);y([T({reflect:!0,attribute:"end-text"})],jt.prototype,"endText",void 0);y([T({reflect:!0,attribute:"selected-icon"})],jt.prototype,"selectedIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],jt.prototype,"submenuOpen",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],jt.prototype,"selected",void 0);y([ke()],jt.prototype,"dense",void 0);y([ke()],jt.prototype,"selects",void 0);y([ke()],jt.prototype,"submenuTrigger",void 0);y([ke()],jt.prototype,"submenuOpenDelay",void 0);y([ke()],jt.prototype,"submenuCloseDelay",void 0);y([ke()],jt.prototype,"focusable",void 0);y([ne("submenuOpen")],jt.prototype,"onOpenChange",null);jt=y([oe("mdui-menu-item")],jt);const lC=ge`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ei=class extends Ie{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new ii(this,{relatedElements:["mdui-menu-item"]})}get items(){return B(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!B(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:St(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=B(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=B(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return P``}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||ct(this.value)||ct(t)?this.value=t:Xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return B(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await s5()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};Ei.styles=[Ee,lC];y([T({reflect:!0})],Ei.prototype,"selects",void 0);y([T()],Ei.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Ei.prototype,"dense",void 0);y([T({reflect:!0,attribute:"submenu-trigger"})],Ei.prototype,"submenuTrigger",void 0);y([T({type:Number,reflect:!0,attribute:"submenu-open-delay"})],Ei.prototype,"submenuOpenDelay",void 0);y([T({type:Number,reflect:!0,attribute:"submenu-close-delay"})],Ei.prototype,"submenuCloseDelay",void 0);y([ke()],Ei.prototype,"selectedKeys",void 0);y([tr({flatten:!0,selector:"mdui-menu-item"})],Ei.prototype,"childrenItems",void 0);y([ne("dense"),ne("selects"),ne("submenuTrigger"),ne("submenuOpenDelay"),ne("submenuCloseDelay")],Ei.prototype,"onSlotChange",null);y([ne("selects",!0)],Ei.prototype,"onSelectsChange",null);y([ne("selectedKeys",!0)],Ei.prototype,"onSelectedKeysChange",null);y([ne("value")],Ei.prototype,"onValueChange",null);Ei=y([oe("mdui-menu")],Ei);const cC=ge`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let zr=class extends sa(Sr(ir(Ie))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Zn(),this.rippleRef=be(),this.hasSlotController=new qt(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=Mr({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=Mr([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):P`
${this.renderInner()}
`}`}renderInner(){return P`
${this.activeIcon?P``:We}${this.icon?P``:We}
`}};zr.styles=[Ee,cC];y([T({reflect:!0})],zr.prototype,"icon",void 0);y([T({reflect:!0,attribute:"active-icon"})],zr.prototype,"activeIcon",void 0);y([T({reflect:!0})],zr.prototype,"value",void 0);y([ke()],zr.prototype,"labelVisibility",void 0);y([ke()],zr.prototype,"isInitial",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],zr.prototype,"active",void 0);y([ke()],zr.prototype,"disabled",void 0);zr=y([oe("mdui-navigation-bar-item")],zr);const dC=ge`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let pr=class extends P0(Gn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new ii(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};pr.styles=[Ee,dC];y([T({type:Boolean,reflect:!0,converter:Y})],pr.prototype,"hide",void 0);y([T({reflect:!0,attribute:"label-visibility"})],pr.prototype,"labelVisibility",void 0);y([T({reflect:!0})],pr.prototype,"value",void 0);y([T({reflect:!0,attribute:"scroll-behavior"})],pr.prototype,"scrollBehavior",void 0);y([ke()],pr.prototype,"activeKey",void 0);y([tr({selector:"mdui-navigation-bar-item",flatten:!0})],pr.prototype,"items",void 0);y([ne("activeKey",!0)],pr.prototype,"onActiveKeyChange",null);y([ne("value")],pr.prototype,"onValueChange",null);y([ne("labelVisibility",!0)],pr.prototype,"onLabelVisibilityChange",null);pr=y([oe("mdui-navigation-bar")],pr);const o5=e=>{const t=Xn(),i=Ci(),r=t.getComputedStyle(i.documentElement),n=cn(e)?B(e).innerWidth():Xd(e)?e:B(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=o5(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(wf(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(za(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=hi(this,"linear"),s=hi(this,"emphasized"),o=(l,c)=>{B(this.layoutManager.getItemsAndMain()).css("transition",y0(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>Pi(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||wf(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=fr(this,"long2"),d=[];if(this.isModal?d.push(Ze(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(Ze(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=fr(this,"short4"),d=[];if(this.isModal?d.push(Ze(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(Ze(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&za(this,this.lockTarget);const u=this.originalTrigger;xt(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new Jb(this)}disconnectedCallback(){var t;super.disconnectedCallback(),za(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return P`${rt(this.isModal,()=>P`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=B(this.panelRef.value).innerWidth()+"px";return Ze(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:hi(this,"emphasized"),fill:"forwards"})}};Li.styles=[Ee,uC];y([T({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"open",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"modal",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Li.prototype,"closeOnEsc",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Li.prototype,"closeOnOverlayClick",void 0);y([T({reflect:!0})],Li.prototype,"placement",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"contained",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"mobile",void 0);y([ne("contained")],Li.prototype,"onContainedChange",null);y([ne("placement",!0)],Li.prototype,"onPlacementChange",null);y([ne("mobile",!0),ne("modal",!0)],Li.prototype,"onMobileChange",null);y([ne("open")],Li.prototype,"onOpenChange",null);Li=y([oe("mdui-navigation-drawer")],Li);const hC=ge`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let Oi=class extends Gn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new qt(this,"top","bottom"),this.definedController=new ii(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(B(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),B(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),B(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&B(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return P`${rt(t,()=>P``)} ${rt(i,()=>P``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Oi.styles=[Ee,hC];y([T({reflect:!0})],Oi.prototype,"value",void 0);y([T({reflect:!0})],Oi.prototype,"placement",void 0);y([T({reflect:!0})],Oi.prototype,"alignment",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Oi.prototype,"contained",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Oi.prototype,"divider",void 0);y([ke()],Oi.prototype,"activeKey",void 0);y([tr({selector:"mdui-navigation-rail-item",flatten:!0})],Oi.prototype,"items",void 0);y([ne("activeKey",!0)],Oi.prototype,"onActiveKeyChange",null);y([ne("value")],Oi.prototype,"onValueChange",null);y([ne("contained",!0)],Oi.prototype,"onContainedChange",null);y([ne("placement",!0)],Oi.prototype,"onPlacementChange",null);Oi=y([oe("mdui-navigation-rail")],Oi);const fC=ge`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Hr=class extends sa(Sr(ir(Ie))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Zn(),this.rippleRef=be(),this.hasSlotController=new qt(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=Mr({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return P`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):P`
${this.renderInner(t)}
`}`}renderInner(t){return P`
${this.activeIcon?P``:We}${this.icon?P``:We}
${t?P``:Ge}`}};Hr.styles=[Ee,fC];y([T({reflect:!0})],Hr.prototype,"icon",void 0);y([T({reflect:!0,attribute:"active-icon"})],Hr.prototype,"activeIcon",void 0);y([T({reflect:!0})],Hr.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Hr.prototype,"active",void 0);y([ke()],Hr.prototype,"isInitial",void 0);y([ke()],Hr.prototype,"placement",void 0);y([ke()],Hr.prototype,"disabled",void 0);Hr=y([oe("mdui-navigation-rail-item")],Hr);let Ef=class extends mt{render(){return ni('')}};Ef.styles=ri;Ef=y([oe("mdui-icon-circle")],Ef);let xf=class extends mt{render(){return ni('')}};xf.styles=ri;xf=y([oe("mdui-icon-radio-button-unchecked")],xf);const pC=ge`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Qi=class extends Sr(ir(Ie)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=Et({invalid:this.invalid,initial:this.isInitial});return P`${this.uncheckedIcon?P``:P``}${this.checkedIcon?P``:P``}`}isDisabled(){return this.disabled||this.groupDisabled}};Qi.styles=[Ee,pC];y([T({reflect:!0})],Qi.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Qi.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Qi.prototype,"checked",void 0);y([T({reflect:!0,attribute:"unchecked-icon"})],Qi.prototype,"uncheckedIcon",void 0);y([T({reflect:!0,attribute:"checked-icon"})],Qi.prototype,"checkedIcon",void 0);y([ke()],Qi.prototype,"invalid",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Qi.prototype,"groupDisabled",void 0);y([ke()],Qi.prototype,"focusable",void 0);y([ke()],Qi.prototype,"isInitial",void 0);y([ne("checked",!0)],Qi.prototype,"onCheckedChange",null);Qi=y([oe("mdui-radio")],Qi);const mC=ge`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let mr=class extends Ie{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new mn(this),this.definedController=new ii(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-radio").get()}get itemsEnabled(){return B(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=Bt.get(t))!=null&&i.has(this))?(this.invalid=!1,Bt.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};mr.styles=[Ee,mC];y([T({type:Boolean,reflect:!0,converter:Y})],mr.prototype,"disabled",void 0);y([T({reflect:!0})],mr.prototype,"form",void 0);y([T({reflect:!0})],mr.prototype,"name",void 0);y([T({reflect:!0})],mr.prototype,"value",void 0);y([Qn()],mr.prototype,"defaultValue",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],mr.prototype,"required",void 0);y([ke()],mr.prototype,"invalid",void 0);y([ne("value",!0)],mr.prototype,"onValueChange",null);y([ne("invalid",!0),ne("disabled")],mr.prototype,"onInvalidChange",null);mr=y([oe("mdui-radio-group")],mr);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*Ro(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const mk=pe`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class ti extends Er(er(Re)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=be(),this.trackActiveRef=be(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return et(!this.nolabel,()=>D`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}ti.styles=[Ee,mk];v([R({type:Number,reflect:!0})],ti.prototype,"min",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"max",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"step",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"tickmarks",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"nolabel",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"disabled",void 0);v([R({reflect:!0})],ti.prototype,"form",void 0);v([R({reflect:!0})],ti.prototype,"name",void 0);v([Ce()],ti.prototype,"invalid",void 0);v([Ce()],ti.prototype,"labelVisible",void 0);v([R({attribute:!1})],ti.prototype,"labelFormatter",void 0);v([re("disabled",!0)],ti.prototype,"onDisabledChange",null);let Go=class extends ti{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=be(),this.rippleEndRef=be(),this.handleStartRef=be(),this.handleEndRef=be(),this.formController=new pn(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=B(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return D``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Go.styles=[ti.styles];v([Gn()],Go.prototype,"defaultValue",void 0);v([Ce()],Go.prototype,"currentHandle",void 0);v([R({type:Array,attribute:!1})],Go.prototype,"value",null);Go=v([se("mdui-range-slider")],Go);const gk=pe`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */function*Ro(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const gC=ge`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class si extends Sr(ir(Ie)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=be(),this.trackActiveRef=be(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return rt(!this.nolabel,()=>P`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}si.styles=[Ee,gC];y([T({type:Number,reflect:!0})],si.prototype,"min",void 0);y([T({type:Number,reflect:!0})],si.prototype,"max",void 0);y([T({type:Number,reflect:!0})],si.prototype,"step",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],si.prototype,"tickmarks",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],si.prototype,"nolabel",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],si.prototype,"disabled",void 0);y([T({reflect:!0})],si.prototype,"form",void 0);y([T({reflect:!0})],si.prototype,"name",void 0);y([ke()],si.prototype,"invalid",void 0);y([ke()],si.prototype,"labelVisible",void 0);y([T({attribute:!1})],si.prototype,"labelFormatter",void 0);y([ne("disabled",!0)],si.prototype,"onDisabledChange",null);let Go=class extends si{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=be(),this.rippleEndRef=be(),this.handleStartRef=be(),this.handleEndRef=be(),this.formController=new mn(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=Bt.get(r))!=null&&n.has(this))?(this.invalid=!1,Bt.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=B(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return P``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Go.styles=[si.styles];y([Qn()],Go.prototype,"defaultValue",void 0);y([ke()],Go.prototype,"currentHandle",void 0);y([T({type:Array,attribute:!1})],Go.prototype,"value",null);Go=y([oe("mdui-range-slider")],Go);const vC=ge`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let dn=class extends ft{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=Or({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?D`${this.selectedIcon?D``:D``}`:D`${this.icon?D``:Ke}`}renderLabel(){return this.hasSlotController.test("[default]")?D``:Ke}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};dn.styles=[ft.styles,gk];v([R({reflect:!0})],dn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],dn.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],dn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],dn.prototype,"groupDisabled",void 0);dn=v([se("mdui-segmented-button")],dn);const vk=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let Gt=class extends Re{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-segmented-button").get()}get itemsEnabled(){return B(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=It.get(r))!=null&&i.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`${et(this.isSelectable&&this.isSingle,()=>D``)}${et(this.isSelectable&&this.isMultiple,()=>D``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:Xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};Gt.styles=[Ee,vk];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Gt.prototype,"fullWidth",void 0);v([R({reflect:!0})],Gt.prototype,"selects",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"required",void 0);v([R({reflect:!0})],Gt.prototype,"form",void 0);v([R({reflect:!0})],Gt.prototype,"name",void 0);v([R()],Gt.prototype,"value",void 0);v([Gn()],Gt.prototype,"defaultValue",void 0);v([Ce()],Gt.prototype,"selectedKeys",void 0);v([Ce()],Gt.prototype,"invalid",void 0);v([re("selects",!0)],Gt.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Gt.prototype,"onSelectedKeysChange",null);v([re("value")],Gt.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],Gt.prototype,"onInvalidChange",null);Gt=v([se("mdui-segmented-button-group")],Gt);const yk=new WeakMap;let B1=0;const Ru=new Map,O1=new WeakSet,M1=()=>new Promise(e=>requestAnimationFrame(e)),V1=(e,t)=>{const i=e-t;return i===0?void 0:i},F1=(e,t)=>{const i=e/t;return i===1?void 0:i},Iu={left:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},bk={duration:333,easing:"ease-in-out"},wk=["left","top","width","height","opacity","color","background"],z1=new WeakMap;class _k extends $0{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===br.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return Ze}getController(){return yk.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,z1.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=wk),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(Iu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await M1;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Ru.get(this.options.inId);if(s){Ru.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,B1++,t.forEach(l=>l.zIndex=B1)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Ru.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await M1(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=z1.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=O1.has(this.u);return t||this.u.updateComplete.then(()=>{O1.add(this.u)}),t}j(t,i=this.O()){const r={...bk};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in Iu){const u=Iu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const kk=eo(_k);let Sf=class extends ht{render(){return ei('')}};Sf.styles=Jt;Sf=v([se("mdui-icon-cancel--outlined")],Sf);let Tf=class extends ht{render(){return ei('')}};Tf.styles=Jt;Tf=v([se("mdui-icon-error")],Tf);let Nf=class extends ht{render(){return ei('')}};Nf.styles=Jt;Nf=v([se("mdui-icon-visibility-off")],Nf);let Rf=class extends ht{render(){return ei('')}};Rf.styles=Jt;Rf=v([se("mdui-icon-visibility")],Rf);const Ck=pe`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let ce=class extends er(Re){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=It.get(i))!=null&&t.has(this))?(this.invalid=!1,It.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),Bc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=to(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=kt({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return D`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${et(a,()=>D``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${et(s||n||o,()=>D`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),U9(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),Bc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return H9("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?D``:Ke}renderPrefix(){return D`${this.icon?D``:Ke}${this.prefix}`}renderSuffix(t){return D`${this.suffix}${t?D`${this.errorIcon?D``:D``}`:D`${this.endIcon?D``:Ke}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return et(t,()=>D`${this.clearIcon?D``:D``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return et(t,()=>D`${this.isPasswordVisible?D`${this.showPasswordIcon?D``:D``}`:D`${this.hidePasswordIcon?D``:D``}`}`)}renderInput(t){return D``}renderTextArea(t){return D``}renderHelper(t,i){return t?D`
${this.error||this.inputRef.value.validationMessage}
`:i?D`${this.helper}`:D``}renderCounter(t){return t?D`
${this.value.length}/${this.maxlength}
`:Ke}};ce.styles=[Ee,Ck];v([R({reflect:!0})],ce.prototype,"variant",void 0);v([R({reflect:!0})],ce.prototype,"type",void 0);v([R({reflect:!0})],ce.prototype,"name",void 0);v([R()],ce.prototype,"value",void 0);v([Gn()],ce.prototype,"defaultValue",void 0);v([R({reflect:!0})],ce.prototype,"label",void 0);v([R({reflect:!0})],ce.prototype,"placeholder",void 0);v([R({reflect:!0})],ce.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],ce.prototype,"helperOnFocus",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],ce.prototype,"clearIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],ce.prototype,"endAligned",void 0);v([R({reflect:!0})],ce.prototype,"prefix",void 0);v([R({reflect:!0})],ce.prototype,"suffix",void 0);v([R({reflect:!0})],ce.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],ce.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],ce.prototype,"errorIcon",void 0);v([R({reflect:!0})],ce.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"required",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"rows",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"autosize",void 0);v([R({type:Number,reflect:!0,attribute:"min-rows"})],ce.prototype,"minRows",void 0);v([R({type:Number,reflect:!0,attribute:"max-rows"})],ce.prototype,"maxRows",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"minlength",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"maxlength",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"counter",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"min",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"max",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"step",void 0);v([R({reflect:!0})],ce.prototype,"pattern",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],ce.prototype,"togglePassword",void 0);v([R({reflect:!0,attribute:"show-password-icon"})],ce.prototype,"showPasswordIcon",void 0);v([R({reflect:!0,attribute:"hide-password-icon"})],ce.prototype,"hidePasswordIcon",void 0);v([R({reflect:!0})],ce.prototype,"autocapitalize",void 0);v([R({reflect:!0})],ce.prototype,"autocorrect",void 0);v([R({reflect:!0})],ce.prototype,"autocomplete",void 0);v([R({reflect:!0})],ce.prototype,"enterkeyhint",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"spellcheck",void 0);v([R({reflect:!0})],ce.prototype,"inputmode",void 0);v([Ce()],ce.prototype,"invalid",void 0);v([Ce()],ce.prototype,"invalidStyle",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],ce.prototype,"focusedStyle",void 0);v([Ce()],ce.prototype,"isPasswordVisible",void 0);v([Ce()],ce.prototype,"hasValue",void 0);v([Ce()],ce.prototype,"error",void 0);v([re("disabled",!0)],ce.prototype,"onDisabledChange",null);v([re("value")],ce.prototype,"onValueChange",null);v([re("rows",!0)],ce.prototype,"onRowsChange",null);v([re("maxRows")],ce.prototype,"onMaxRowsChange",null);v([re("minRows")],ce.prototype,"onMinRowsChange",null);ce=v([se("mdui-text-field")],ce);const Ak=pe`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let Je=class extends er(Re){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=be(),this.textFieldRef=be(),this.hiddenInputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return D`${this.multiple?D``:D``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${Ro(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?D``:Ze)} ${et(this.multiple&&this.value.length,()=>D`
${Ro(this.value,r=>D``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};Je.styles=[Ee,Ak];v([R({reflect:!0})],Je.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"multiple",void 0);v([R({reflect:!0})],Je.prototype,"name",void 0);v([R()],Je.prototype,"value",void 0);v([Gn()],Je.prototype,"defaultValue",void 0);v([R({reflect:!0})],Je.prototype,"label",void 0);v([R({reflect:!0})],Je.prototype,"placeholder",void 0);v([R({reflect:!0})],Je.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],Je.prototype,"clearIcon",void 0);v([R({reflect:!0})],Je.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],Je.prototype,"endAligned",void 0);v([R({reflect:!0})],Je.prototype,"prefix",void 0);v([R({reflect:!0})],Je.prototype,"suffix",void 0);v([R({reflect:!0})],Je.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Je.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],Je.prototype,"errorIcon",void 0);v([R({reflect:!0})],Je.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"required",void 0);v([Ce()],Je.prototype,"invalid",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Je.prototype,"menuItems",void 0);Je=v([se("mdui-select")],Je);const Ek=pe`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let Qo=class extends ti{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=be(),this.handleRef=be(),this.formController=new pn(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return D``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};Qo.styles=[ti.styles,Ek];v([R({type:Number})],Qo.prototype,"value",void 0);v([Gn()],Qo.prototype,"defaultValue",void 0);v([re("value",!0)],Qo.prototype,"onValueChange",null);Qo=v([se("mdui-slider")],Qo);const xk=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Bi=class extends Re{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=o5().down("sm"),i=["top","bottom"].includes(this.placement),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),Xe(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return D`
${this.action?D`${this.action}`:Ke}${et(this.closeable,()=>D`${this.closeIcon?D``:D``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Bi.styles=[Ee,xk];v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"open",void 0);v([R({reflect:!0})],Bi.prototype,"placement",void 0);v([R({reflect:!0,attribute:"action"})],Bi.prototype,"action",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Bi.prototype,"actionLoading",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"closeable",void 0);v([R({reflect:!0,attribute:"close-icon"})],Bi.prototype,"closeIcon",void 0);v([R({type:Number,reflect:!0,attribute:"message-line"})],Bi.prototype,"messageLine",void 0);v([R({type:Number,reflect:!0,attribute:"auto-close-delay"})],Bi.prototype,"autoCloseDelay",void 0);v([R({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Bi.prototype,"closeOnOutsideClick",void 0);v([re("open")],Bi.prototype,"onOpenChange",null);Bi=v([se("mdui-snackbar")],Bi);const Sk=pe`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let Ai=class extends Er(er(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=be(),this.inputRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new Ut(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};Ai.styles=[Ee,Sk];v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"checked",void 0);v([Gn("checked")],Ai.prototype,"defaultChecked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Ai.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Ai.prototype,"checkedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"required",void 0);v([R({reflect:!0})],Ai.prototype,"form",void 0);v([R({reflect:!0})],Ai.prototype,"name",void 0);v([R({reflect:!0})],Ai.prototype,"value",void 0);v([Ce()],Ai.prototype,"invalid",void 0);v([re("disabled",!0),re("required",!0)],Ai.prototype,"onDisabledChange",null);v([re("checked",!0)],Ai.prototype,"onCheckedChange",null);Ai=v([se("mdui-switch")],Ai);const Tk=pe`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Kn=class extends Er(er(Re)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>D``;return D`
${et(t||this.icon,r)}${this.icon?D``:Ke}
${et(!t,r)}
`}};Kn.styles=[Ee,Tk];v([R({reflect:!0})],Kn.prototype,"value",void 0);v([R({reflect:!0})],Kn.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"inline",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"active",void 0);v([Ce()],Kn.prototype,"variant",void 0);Kn=v([se("mdui-tab")],Kn);const Nk=pe`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let bl=class extends Re{constructor(){super(...arguments),this.active=!1}render(){return D``}};bl.styles=[Ee,Nk];v([R({reflect:!0})],bl.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],bl.prototype,"active",void 0);bl=v([se("mdui-tab-panel")],bl);const Rk=pe`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Oi=class extends Re{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=be(),this.indicatorRef=be(),this.definedController=new Qt(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.containerRef.value,()=>this.updateIndicator())}render(){return D`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=B(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=B(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():B(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Oi.styles=[Ee,Rk];v([R({reflect:!0})],Oi.prototype,"variant",void 0);v([R({reflect:!0})],Oi.prototype,"value",void 0);v([R({reflect:!0})],Oi.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Oi.prototype,"fullWidth",void 0);v([Ce()],Oi.prototype,"activeKey",void 0);v([Ce()],Oi.prototype,"isInitial",void 0);v([Ji({selector:"mdui-tab",flatten:!0})],Oi.prototype,"tabs",void 0);v([Ji({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Oi.prototype,"panels",void 0);v([re("activeKey",!0)],Oi.prototype,"onActiveKeyChange",null);v([re("value")],Oi.prototype,"onValueChange",null);v([re("variant",!0),re("placement",!0),re("fullWidth",!0)],Oi.prototype,"onIndicatorChange",null);Oi=v([se("mdui-tabs")],Oi);class Ik{constructor(t,i){this.isHover=!1,this.uniqueID=Xn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{B(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){B(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const $k=pe`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let Mi=class extends Re{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=be(),this.hasSlotController=new Ut(this,"headline","action"),this.hoverController=new Ik(this,this.popupRef),this.definedController=new Qt(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=ur(this,"short4"),r=ci(this,"standard");if(this.open){if(await this.definedController.whenDefined(),B(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await Ii(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await Xe(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await Ii(this.popupRef.value),await Xe(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=gd(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=to(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return D``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=B(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,m,b,w,_=this.placement;if(_==="auto"){const y=B(window),C=s>h,E=y.height()-s-a>h,A=o>u,x=y.width()-o-l>u;this.isRich()?(_="bottom-right",E&&x?_="bottom-right":E&&A?_="bottom-left":C&&x?_="top-right":C&&A?_="top-left":E?_="bottom":C?_="top":x?_="right":A&&(_="left")):(_="top",C?_="top":E?_="bottom":A?_="left":x&&(_="right"))}const[g,p]=_.split("-");switch(g){case"top":m="bottom",b=s-c-i;break;case"bottom":m="top",b=s+a+i;break;default:switch(m="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(g){case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:switch(f="center",p){case"start":w=o;break;case"end":w=o+l-d;break;case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:w=o+l/2-d/2;break}break}t.css({top:b,left:w,transformOrigin:[f,m].join(" ")})}};Mi.styles=[Ee,$k];v([R({reflect:!0})],Mi.prototype,"variant",void 0);v([R({reflect:!0})],Mi.prototype,"placement",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],Mi.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],Mi.prototype,"closeDelay",void 0);v([R({reflect:!0})],Mi.prototype,"headline",void 0);v([R({reflect:!0})],Mi.prototype,"content",void 0);v([R({reflect:!0})],Mi.prototype,"trigger",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);v([re("placement",!0),re("content",!0)],Mi.prototype,"onPositionChange",null);v([re("open")],Mi.prototype,"onOpenChange",null);Mi=v([se("mdui-tooltip")],Mi);const Pk=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},Dk=pe`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let wl=class extends Re{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new Ut(this,"label-large"),this.labelLargeRef=be(),this.defaultSlotRef=be()}render(){const t=this.hasSlotController.test("label-large"),i=kt({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return D`${t?D``:D`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=Pk(this.defaultSlotRef.value))}};wl.styles=[Ee,Dk];v([Ce()],wl.prototype,"variant",void 0);v([Ce()],wl.prototype,"shrink",void 0);wl=v([se("mdui-top-app-bar-title")],wl);const Lk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let Ar=class extends P0(Zn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};Ar.styles=[Ee,Lk];v([R({reflect:!0})],Ar.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"shrink",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],Ar.prototype,"scrollBehavior",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"scrolling",void 0);v([Ji({selector:"mdui-top-app-bar-title",flatten:!0})],Ar.prototype,"titleElements",void 0);v([re("variant")],Ar.prototype,"onVariantChange",null);v([re("shrink")],Ar.prototype,"onShrinkChange",null);Ar=v([se("mdui-top-app-bar")],Ar);function Bk(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const hs={};function Ok(e,t){if(ot(hs[e])&&(hs[e]=[]),ot(t))return hs[e];hs[e].push(t)}function Mk(e){if(ot(hs[e])||!hs[e].length)return;hs[e].shift()()}/** + )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let un=class extends gt{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Zn(),this.rippleRef=be(),this.hasSlotController=new qt(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=Mr({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return P`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?P`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?P`${this.selectedIcon?P``:P``}`:P`${this.icon?P``:We}`}renderLabel(){return this.hasSlotController.test("[default]")?P``:We}renderEndIcon(){return P`${this.endIcon?P``:We}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};un.styles=[gt.styles,vC];y([T({reflect:!0})],un.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],un.prototype,"endIcon",void 0);y([T({reflect:!0,attribute:"selected-icon"})],un.prototype,"selectedIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],un.prototype,"selected",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],un.prototype,"invalid",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],un.prototype,"groupDisabled",void 0);un=y([oe("mdui-segmented-button")],un);const yC=ge`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let ti=class extends Ie{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new mn(this),this.definedController=new ii(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-segmented-button").get()}get itemsEnabled(){return B(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:St(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=Bt.get(r))!=null&&i.has(this))?(this.invalid=!1,Bt.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&St(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P`${rt(this.isSelectable&&this.isSingle,()=>P``)}${rt(this.isSelectable&&this.isMultiple,()=>P``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:Xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};ti.styles=[Ee,yC];y([T({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],ti.prototype,"fullWidth",void 0);y([T({reflect:!0})],ti.prototype,"selects",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"required",void 0);y([T({reflect:!0})],ti.prototype,"form",void 0);y([T({reflect:!0})],ti.prototype,"name",void 0);y([T()],ti.prototype,"value",void 0);y([Qn()],ti.prototype,"defaultValue",void 0);y([ke()],ti.prototype,"selectedKeys",void 0);y([ke()],ti.prototype,"invalid",void 0);y([ne("selects",!0)],ti.prototype,"onSelectsChange",null);y([ne("selectedKeys",!0)],ti.prototype,"onSelectedKeysChange",null);y([ne("value")],ti.prototype,"onValueChange",null);y([ne("invalid",!0),ne("disabled")],ti.prototype,"onInvalidChange",null);ti=y([oe("mdui-segmented-button-group")],ti);const bC=new WeakMap;let L1=0;const Ru=new Map,O1=new WeakSet,M1=()=>new Promise(e=>requestAnimationFrame(e)),V1=(e,t)=>{const i=e-t;return i===0?void 0:i},F1=(e,t)=>{const i=e/t;return i===1?void 0:i},Iu={left:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},wC={duration:333,easing:"ease-in-out"},_C=["left","top","width","height","opacity","color","background"],z1=new WeakMap;class CC extends $0{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===_r.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return Ge}getController(){return bC.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,z1.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=_C),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(Iu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await M1;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Ru.get(this.options.inId);if(s){Ru.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,L1++,t.forEach(l=>l.zIndex=L1)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Ru.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await M1(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=z1.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=O1.has(this.u);return t||this.u.updateComplete.then(()=>{O1.add(this.u)}),t}j(t,i=this.O()){const r={...wC};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in Iu){const u=Iu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const kC=eo(CC);let Sf=class extends mt{render(){return ni('')}};Sf.styles=ri;Sf=y([oe("mdui-icon-cancel--outlined")],Sf);let Nf=class extends mt{render(){return ni('')}};Nf.styles=ri;Nf=y([oe("mdui-icon-error")],Nf);let Tf=class extends mt{render(){return ni('')}};Tf.styles=ri;Tf=y([oe("mdui-icon-visibility-off")],Tf);let Rf=class extends mt{render(){return ni('')}};Rf.styles=ri;Rf=y([oe("mdui-icon-visibility")],Rf);const AC=ge`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let ue=class extends ir(Ie){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=be(),this.formController=new mn(this),this.hasSlotController=new qt(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=Bt.get(i))!=null&&t.has(this))?(this.invalid=!1,Bt.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),Oc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),Oc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=to(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=Et({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return P`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${rt(a,()=>P``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${rt(s||n||o,()=>P`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),K9(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),Oc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return U9("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?P``:We}renderPrefix(){return P`${this.icon?P``:We}${this.prefix}`}renderSuffix(t){return P`${this.suffix}${t?P`${this.errorIcon?P``:P``}`:P`${this.endIcon?P``:We}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return rt(t,()=>P`${this.clearIcon?P``:P``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return rt(t,()=>P`${this.isPasswordVisible?P`${this.showPasswordIcon?P``:P``}`:P`${this.hidePasswordIcon?P``:P``}`}`)}renderInput(t){return P``}renderTextArea(t){return P``}renderHelper(t,i){return t?P`
${this.error||this.inputRef.value.validationMessage}
`:i?P`${this.helper}`:P``}renderCounter(t){return t?P`
${this.value.length}/${this.maxlength}
`:We}};ue.styles=[Ee,AC];y([T({reflect:!0})],ue.prototype,"variant",void 0);y([T({reflect:!0})],ue.prototype,"type",void 0);y([T({reflect:!0})],ue.prototype,"name",void 0);y([T()],ue.prototype,"value",void 0);y([Qn()],ue.prototype,"defaultValue",void 0);y([T({reflect:!0})],ue.prototype,"label",void 0);y([T({reflect:!0})],ue.prototype,"placeholder",void 0);y([T({reflect:!0})],ue.prototype,"helper",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],ue.prototype,"helperOnFocus",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"clearable",void 0);y([T({reflect:!0,attribute:"clear-icon"})],ue.prototype,"clearIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],ue.prototype,"endAligned",void 0);y([T({reflect:!0})],ue.prototype,"prefix",void 0);y([T({reflect:!0})],ue.prototype,"suffix",void 0);y([T({reflect:!0})],ue.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],ue.prototype,"endIcon",void 0);y([T({reflect:!0,attribute:"error-icon"})],ue.prototype,"errorIcon",void 0);y([T({reflect:!0})],ue.prototype,"form",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"readonly",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"required",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"rows",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"autosize",void 0);y([T({type:Number,reflect:!0,attribute:"min-rows"})],ue.prototype,"minRows",void 0);y([T({type:Number,reflect:!0,attribute:"max-rows"})],ue.prototype,"maxRows",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"minlength",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"maxlength",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"counter",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"min",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"max",void 0);y([T({type:Number,reflect:!0})],ue.prototype,"step",void 0);y([T({reflect:!0})],ue.prototype,"pattern",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],ue.prototype,"togglePassword",void 0);y([T({reflect:!0,attribute:"show-password-icon"})],ue.prototype,"showPasswordIcon",void 0);y([T({reflect:!0,attribute:"hide-password-icon"})],ue.prototype,"hidePasswordIcon",void 0);y([T({reflect:!0})],ue.prototype,"autocapitalize",void 0);y([T({reflect:!0})],ue.prototype,"autocorrect",void 0);y([T({reflect:!0})],ue.prototype,"autocomplete",void 0);y([T({reflect:!0})],ue.prototype,"enterkeyhint",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],ue.prototype,"spellcheck",void 0);y([T({reflect:!0})],ue.prototype,"inputmode",void 0);y([ke()],ue.prototype,"invalid",void 0);y([ke()],ue.prototype,"invalidStyle",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],ue.prototype,"focusedStyle",void 0);y([ke()],ue.prototype,"isPasswordVisible",void 0);y([ke()],ue.prototype,"hasValue",void 0);y([ke()],ue.prototype,"error",void 0);y([ne("disabled",!0)],ue.prototype,"onDisabledChange",null);y([ne("value")],ue.prototype,"onValueChange",null);y([ne("rows",!0)],ue.prototype,"onRowsChange",null);y([ne("maxRows")],ue.prototype,"onMaxRowsChange",null);y([ne("minRows")],ue.prototype,"onMinRowsChange",null);ue=y([oe("mdui-text-field")],ue);const EC=ge`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let tt=class extends ir(Ie){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=be(),this.textFieldRef=be(),this.hiddenInputRef=be(),this.formController=new mn(this),this.hasSlotController=new qt(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new ii(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&St(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return P`${this.multiple?P``:P``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${Ro(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?P``:Ge)} ${rt(this.multiple&&this.value.length,()=>P`
${Ro(this.value,r=>P``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=Bt.get(r))!=null&&n.has(this))?(this.invalid=!1,Bt.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};tt.styles=[Ee,EC];y([T({reflect:!0})],tt.prototype,"variant",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],tt.prototype,"multiple",void 0);y([T({reflect:!0})],tt.prototype,"name",void 0);y([T()],tt.prototype,"value",void 0);y([Qn()],tt.prototype,"defaultValue",void 0);y([T({reflect:!0})],tt.prototype,"label",void 0);y([T({reflect:!0})],tt.prototype,"placeholder",void 0);y([T({reflect:!0})],tt.prototype,"helper",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],tt.prototype,"clearable",void 0);y([T({reflect:!0,attribute:"clear-icon"})],tt.prototype,"clearIcon",void 0);y([T({reflect:!0})],tt.prototype,"placement",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],tt.prototype,"endAligned",void 0);y([T({reflect:!0})],tt.prototype,"prefix",void 0);y([T({reflect:!0})],tt.prototype,"suffix",void 0);y([T({reflect:!0})],tt.prototype,"icon",void 0);y([T({reflect:!0,attribute:"end-icon"})],tt.prototype,"endIcon",void 0);y([T({reflect:!0,attribute:"error-icon"})],tt.prototype,"errorIcon",void 0);y([T({reflect:!0})],tt.prototype,"form",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],tt.prototype,"readonly",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],tt.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],tt.prototype,"required",void 0);y([ke()],tt.prototype,"invalid",void 0);y([tr({flatten:!0,selector:"mdui-menu-item"})],tt.prototype,"menuItems",void 0);tt=y([oe("mdui-select")],tt);const xC=ge`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let Qo=class extends si{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=be(),this.handleRef=be(),this.formController=new mn(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=Bt.get(t))!=null&&i.has(this))?(this.invalid=!1,Bt.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return P``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};Qo.styles=[si.styles,xC];y([T({type:Number})],Qo.prototype,"value",void 0);y([Qn()],Qo.prototype,"defaultValue",void 0);y([ne("value",!0)],Qo.prototype,"onValueChange",null);Qo=y([oe("mdui-slider")],Qo);const SC=ge`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Mi=class extends Ie{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=o5().down("sm"),i=["top","bottom"].includes(this.placement),r=hi(this,"linear"),n=hi(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([Pi(this),...s.map(d=>Pi(d))]);const l=fr(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([Ze(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),Ze(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>Ze(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([Pi(this),...s.map(d=>Pi(d))]);const l=fr(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([Ze(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>Ze(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return P`
${this.action?P`${this.action}`:We}${rt(this.closeable,()=>P`${this.closeIcon?P``:P``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Mi.styles=[Ee,SC];y([T({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);y([T({reflect:!0})],Mi.prototype,"placement",void 0);y([T({reflect:!0,attribute:"action"})],Mi.prototype,"action",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Mi.prototype,"actionLoading",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"closeable",void 0);y([T({reflect:!0,attribute:"close-icon"})],Mi.prototype,"closeIcon",void 0);y([T({type:Number,reflect:!0,attribute:"message-line"})],Mi.prototype,"messageLine",void 0);y([T({type:Number,reflect:!0,attribute:"auto-close-delay"})],Mi.prototype,"autoCloseDelay",void 0);y([T({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Mi.prototype,"closeOnOutsideClick",void 0);y([ne("open")],Mi.prototype,"onOpenChange",null);Mi=y([oe("mdui-snackbar")],Mi);const NC=ge`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let xi=class extends Sr(ir(Ie)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=be(),this.inputRef=be(),this.formController=new mn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new qt(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=Bt.get(t))!=null&&i.has(this))?(this.invalid=!1,Bt.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return P``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};xi.styles=[Ee,NC];y([T({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"checked",void 0);y([Qn("checked")],xi.prototype,"defaultChecked",void 0);y([T({reflect:!0,attribute:"unchecked-icon"})],xi.prototype,"uncheckedIcon",void 0);y([T({reflect:!0,attribute:"checked-icon"})],xi.prototype,"checkedIcon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],xi.prototype,"required",void 0);y([T({reflect:!0})],xi.prototype,"form",void 0);y([T({reflect:!0})],xi.prototype,"name",void 0);y([T({reflect:!0})],xi.prototype,"value",void 0);y([ke()],xi.prototype,"invalid",void 0);y([ne("disabled",!0),ne("required",!0)],xi.prototype,"onDisabledChange",null);y([ne("checked",!0)],xi.prototype,"onCheckedChange",null);xi=y([oe("mdui-switch")],xi);const TC=ge`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Wn=class extends Sr(ir(Ie)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Zn(),this.rippleRef=be(),this.hasSlotController=new qt(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>P``;return P`
${rt(t||this.icon,r)}${this.icon?P``:We}
${rt(!t,r)}
`}};Wn.styles=[Ee,TC];y([T({reflect:!0})],Wn.prototype,"value",void 0);y([T({reflect:!0})],Wn.prototype,"icon",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Wn.prototype,"inline",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Wn.prototype,"active",void 0);y([ke()],Wn.prototype,"variant",void 0);Wn=y([oe("mdui-tab")],Wn);const RC=ge`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let bl=class extends Ie{constructor(){super(...arguments),this.active=!1}render(){return P``}};bl.styles=[Ee,RC];y([T({reflect:!0})],bl.prototype,"value",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],bl.prototype,"active",void 0);bl=y([oe("mdui-tab-panel")],bl);const IC=ge`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Vi=class extends Ie{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=be(),this.indicatorRef=be(),this.definedController=new ii(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.containerRef.value,()=>this.updateIndicator())}render(){return P`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=B(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=B(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():B(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Vi.styles=[Ee,IC];y([T({reflect:!0})],Vi.prototype,"variant",void 0);y([T({reflect:!0})],Vi.prototype,"value",void 0);y([T({reflect:!0})],Vi.prototype,"placement",void 0);y([T({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Vi.prototype,"fullWidth",void 0);y([ke()],Vi.prototype,"activeKey",void 0);y([ke()],Vi.prototype,"isInitial",void 0);y([tr({selector:"mdui-tab",flatten:!0})],Vi.prototype,"tabs",void 0);y([tr({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Vi.prototype,"panels",void 0);y([ne("activeKey",!0)],Vi.prototype,"onActiveKeyChange",null);y([ne("value")],Vi.prototype,"onValueChange",null);y([ne("variant",!0),ne("placement",!0),ne("fullWidth",!0)],Vi.prototype,"onIndicatorChange",null);Vi=y([oe("mdui-tabs")],Vi);class $C{constructor(t,i){this.isHover=!1,this.uniqueID=Zn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{B(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){B(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const PC=ge`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let Fi=class extends Ie{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=be(),this.hasSlotController=new qt(this,"headline","action"),this.hoverController=new $C(this,this.popupRef),this.definedController=new ii(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=fr(this,"short4"),r=hi(this,"standard");if(this.open){if(await this.definedController.whenDefined(),B(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await Pi(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await Ze(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await Pi(this.popupRef.value),await Ze(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=vd(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=to(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return P``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=B(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,m,b,v,_=this.placement;if(_==="auto"){const g=B(window),k=s>h,E=g.height()-s-a>h,A=o>u,x=g.width()-o-l>u;this.isRich()?(_="bottom-right",E&&x?_="bottom-right":E&&A?_="bottom-left":k&&x?_="top-right":k&&A?_="top-left":E?_="bottom":k?_="top":x?_="right":A&&(_="left")):(_="top",k?_="top":E?_="bottom":A?_="left":x&&(_="right"))}const[w,p]=_.split("-");switch(w){case"top":m="bottom",b=s-c-i;break;case"bottom":m="top",b=s+a+i;break;default:switch(m="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(w){case"left":f="right",v=o-d-i;break;case"right":f="left",v=o+l+i;break;default:switch(f="center",p){case"start":v=o;break;case"end":v=o+l-d;break;case"left":f="right",v=o-d-i;break;case"right":f="left",v=o+l+i;break;default:v=o+l/2-d/2;break}break}t.css({top:b,left:v,transformOrigin:[f,m].join(" ")})}};Fi.styles=[Ee,PC];y([T({reflect:!0})],Fi.prototype,"variant",void 0);y([T({reflect:!0})],Fi.prototype,"placement",void 0);y([T({type:Number,reflect:!0,attribute:"open-delay"})],Fi.prototype,"openDelay",void 0);y([T({type:Number,reflect:!0,attribute:"close-delay"})],Fi.prototype,"closeDelay",void 0);y([T({reflect:!0})],Fi.prototype,"headline",void 0);y([T({reflect:!0})],Fi.prototype,"content",void 0);y([T({reflect:!0})],Fi.prototype,"trigger",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Fi.prototype,"disabled",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],Fi.prototype,"open",void 0);y([ne("placement",!0),ne("content",!0)],Fi.prototype,"onPositionChange",null);y([ne("open")],Fi.prototype,"onOpenChange",null);Fi=y([oe("mdui-tooltip")],Fi);const DC=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},BC=ge`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let wl=class extends Ie{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new qt(this,"label-large"),this.labelLargeRef=be(),this.defaultSlotRef=be()}render(){const t=this.hasSlotController.test("label-large"),i=Et({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return P`${t?P``:P`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=DC(this.defaultSlotRef.value))}};wl.styles=[Ee,BC];y([ke()],wl.prototype,"variant",void 0);y([ke()],wl.prototype,"shrink",void 0);wl=y([oe("mdui-top-app-bar-title")],wl);const LC=ge`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let xr=class extends P0(Gn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return P``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};xr.styles=[Ee,LC];y([T({reflect:!0})],xr.prototype,"variant",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],xr.prototype,"hide",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],xr.prototype,"shrink",void 0);y([T({reflect:!0,attribute:"scroll-behavior"})],xr.prototype,"scrollBehavior",void 0);y([T({type:Boolean,reflect:!0,converter:Y})],xr.prototype,"scrolling",void 0);y([tr({selector:"mdui-top-app-bar-title",flatten:!0})],xr.prototype,"titleElements",void 0);y([ne("variant")],xr.prototype,"onVariantChange",null);y([ne("shrink")],xr.prototype,"onShrinkChange",null);xr=y([oe("mdui-top-app-bar")],xr);function OC(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const hs={};function MC(e,t){if(ct(hs[e])&&(hs[e]=[]),ct(t))return hs[e];hs[e].push(t)}function VC(e){if(ct(hs[e])||!hs[e].length)return;hs[e].shift()()}/** * @license * Copyright 2021 Google LLC * @@ -231,7 +231,7 @@ * 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 xi(e){return e<0?-1:e===0?0:1}function Ha(e,t,i){return(1-i)*e+i*t}function Vk(e,t,i){return it?t:i}function yd(e,t,i){return it?t:i}function L0(e){return e=e%360,e<0&&(e=e+360),e}function Fk(e,t){return L0(t-e)<=180?1:-1}function zk(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function If(e,t){const i=e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],r=e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],n=e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2];return[i,r,n]}/** + */function Ni(e){return e<0?-1:e===0?0:1}function Ha(e,t,i){return(1-i)*e+i*t}function FC(e,t,i){return it?t:i}function bd(e,t,i){return it?t:i}function B0(e){return e=e%360,e<0&&(e=e+360),e}function zC(e,t){return B0(t-e)<=180?1:-1}function HC(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function If(e,t){const i=e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],r=e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],n=e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2];return[i,r,n]}/** * @license * Copyright 2021 Google LLC * @@ -246,7 +246,7 @@ * 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. - */const Hk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Uk=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Kk=[95.047,100,108.883];function B0(e,t,i){return(255<<24|(e&255)<<16|(t&255)<<8|i&255)>>>0}function H1(e){const t=Ls(e[0]),i=Ls(e[1]),r=Ls(e[2]);return B0(t,i,r)}function a5(e){return e>>16&255}function l5(e){return e>>8&255}function c5(e){return e&255}function Wk(e,t,i){const r=Uk,n=r[0][0]*e+r[0][1]*t+r[0][2]*i,s=r[1][0]*e+r[1][1]*t+r[1][2]*i,o=r[2][0]*e+r[2][1]*t+r[2][2]*i,a=Ls(n),l=Ls(s),c=Ls(o);return B0(a,l,c)}function qk(e){const t=Io(a5(e)),i=Io(l5(e)),r=Io(c5(e));return If([t,i,r],Hk)}function jk(e){const t=Rn(e),i=Ls(t);return B0(i,i,i)}function $f(e){const t=qk(e)[1];return 116*d5(t/100)-16}function Rn(e){return 100*Xk((e+16)/116)}function Pf(e){return d5(e/100)*116-16}function Io(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Ls(e){const t=e/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,Vk(0,255,Math.round(i*255))}function Yk(){return Kk}function d5(e){const t=.008856451679035631,i=24389/27;return e>t?Math.pow(e,1/3):(i*e+16)/116}function Xk(e){const t=.008856451679035631,i=24389/27,r=e*e*e;return r>t?r:(116*e-16)/i}/** + */const UC=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],KC=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],WC=[95.047,100,108.883];function L0(e,t,i){return(255<<24|(e&255)<<16|(t&255)<<8|i&255)>>>0}function H1(e){const t=Bs(e[0]),i=Bs(e[1]),r=Bs(e[2]);return L0(t,i,r)}function a5(e){return e>>16&255}function l5(e){return e>>8&255}function c5(e){return e&255}function jC(e,t,i){const r=KC,n=r[0][0]*e+r[0][1]*t+r[0][2]*i,s=r[1][0]*e+r[1][1]*t+r[1][2]*i,o=r[2][0]*e+r[2][1]*t+r[2][2]*i,a=Bs(n),l=Bs(s),c=Bs(o);return L0(a,l,c)}function qC(e){const t=Io(a5(e)),i=Io(l5(e)),r=Io(c5(e));return If([t,i,r],UC)}function YC(e){const t=In(e),i=Bs(t);return L0(i,i,i)}function $f(e){const t=qC(e)[1];return 116*d5(t/100)-16}function In(e){return 100*ZC((e+16)/116)}function Pf(e){return d5(e/100)*116-16}function Io(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Bs(e){const t=e/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,FC(0,255,Math.round(i*255))}function XC(){return WC}function d5(e){const t=.008856451679035631,i=24389/27;return e>t?Math.pow(e,1/3):(i*e+16)/116}function ZC(e){const t=.008856451679035631,i=24389/27,r=e*e*e;return r>t?r:(116*e-16)/i}/** * @license * Copyright 2021 Google LLC * @@ -261,7 +261,7 @@ * 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. - */class _r{static make(t=Yk(),i=200/Math.PI*Rn(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?Ha(.59,.69,(d-.9)*10):Ha(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,m=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),w=b*b*b*b,_=1-w,g=w*i+.1*_*_*Math.cbrt(5*i),p=Rn(r)/t[1],y=1.48+Math.sqrt(p),C=.725/Math.pow(p,.2),E=C,A=[Math.pow(g*m[0]*a/100,.42),Math.pow(g*m[1]*l/100,.42),Math.pow(g*m[2]*c/100,.42)],x=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)],S=(2*x[0]+x[1]+.05*x[2])*C;return new _r(p,S,C,E,u,f,m,g,Math.pow(g,.25),y)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}_r.DEFAULT=_r.make();/** + */class kr{static make(t=XC(),i=200/Math.PI*In(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?Ha(.59,.69,(d-.9)*10):Ha(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,m=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),v=b*b*b*b,_=1-v,w=v*i+.1*_*_*Math.cbrt(5*i),p=In(r)/t[1],g=1.48+Math.sqrt(p),k=.725/Math.pow(p,.2),E=k,A=[Math.pow(w*m[0]*a/100,.42),Math.pow(w*m[1]*l/100,.42),Math.pow(w*m[2]*c/100,.42)],x=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)],S=(2*x[0]+x[1]+.05*x[2])*k;return new kr(p,S,k,E,u,f,m,w,Math.pow(w,.25),g)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}kr.DEFAULT=kr.make();/** * @license * Copyright 2021 Google LLC * @@ -276,7 +276,7 @@ * 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. - */class Vt{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return Vt.fromIntInViewingConditions(t,_r.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=Io(r),a=Io(n),l=Io(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,m=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,w=i.rgbD[1]*f,_=i.rgbD[2]*m,g=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(w)/100,.42),y=Math.pow(i.fl*Math.abs(_)/100,.42),C=xi(b)*400*g/(g+27.13),E=xi(w)*400*p/(p+27.13),A=xi(_)*400*y/(y+27.13),x=(11*C+-12*E+A)/11,S=(C+E-2*A)/9,k=(20*C+20*E+21*A)/20,N=(40*C+20*E+A)/20,T=Math.atan2(S,x)*180/Math.PI,P=T<0?T+360:T>=360?T-360:T,O=P*Math.PI/180,M=N*i.nbb,H=100*Math.pow(M/i.aw,i.c*i.z),U=4/i.c*Math.sqrt(H/100)*(i.aw+4)*i.fLRoot,me=P<20.14?P+360:P,ye=.25*(Math.cos(me*Math.PI/180+2)+3.8),W=5e4/13*ye*i.nc*i.ncb*Math.sqrt(x*x+S*S)/(k+.305),Z=Math.pow(W,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),K=Z*Math.sqrt(H/100),De=K*i.fLRoot,xe=50*Math.sqrt(Z*i.c/(i.aw+4)),pt=(1+100*.007)*H/(1+.007*H),we=1/.0228*Math.log(1+.0228*De),xr=we*Math.cos(O),ui=we*Math.sin(O);return new Vt(P,K,H,U,De,xe,pt,xr,ui)}static fromJch(t,i,r){return Vt.fromJchInViewingConditions(t,i,r,_r.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new Vt(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return Vt.fromUcsInViewingConditions(t,i,r,_r.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return Vt.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(_r.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],x=y/t.rgbD[1],S=E/t.rgbD[2],k=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,I=-.0158415*A-.03412294*x+1.04996444*S;return Wk(k,N,I)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),m=xi(l)*400*u/(u+27.13),b=xi(c)*400*h/(h+27.13),w=xi(d)*400*f/(f+27.13),_=(11*m+-12*b+w)/11,g=(m+b-2*w)/9,p=(20*m+20*b+21*w)/20,y=(40*m+20*b+w)/20,E=Math.atan2(g,_)*180/Math.PI,A=E<0?E+360:E>=360?E-360:E,x=A*Math.PI/180,S=y*n.nbb,k=100*Math.pow(S/n.aw,n.c*n.z),N=4/n.c*Math.sqrt(k/100)*(n.aw+4)*n.fLRoot,I=A<20.14?A+360:A,T=1/4*(Math.cos(I*Math.PI/180+2)+3.8),O=5e4/13*T*n.nc*n.ncb*Math.sqrt(_*_+g*g)/(p+.305),M=Math.pow(O,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),H=M*Math.sqrt(k/100),U=H*n.fLRoot,me=50*Math.sqrt(M*n.c/(n.aw+4)),ye=(1+100*.007)*k/(1+.007*k),F=Math.log(1+.0228*U)/.0228,W=F*Math.cos(x),Z=F*Math.sin(x);return new Vt(A,H,k,N,U,me,ye,W,Z)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],x=y/t.rgbD[1],S=E/t.rgbD[2],k=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,I=-.0158415*A-.03412294*x+1.04996444*S;return[k,N,I]}}/** + */class Ut{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return Ut.fromIntInViewingConditions(t,kr.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=Io(r),a=Io(n),l=Io(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,m=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,v=i.rgbD[1]*f,_=i.rgbD[2]*m,w=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(v)/100,.42),g=Math.pow(i.fl*Math.abs(_)/100,.42),k=Ni(b)*400*w/(w+27.13),E=Ni(v)*400*p/(p+27.13),A=Ni(_)*400*g/(g+27.13),x=(11*k+-12*E+A)/11,S=(k+E-2*A)/9,C=(20*k+20*E+21*A)/20,N=(40*k+20*E+A)/20,I=Math.atan2(S,x)*180/Math.PI,O=I<0?I+360:I>=360?I-360:I,F=O*Math.PI/180,L=N*i.nbb,M=100*Math.pow(L/i.aw,i.c*i.z),V=4/i.c*Math.sqrt(M/100)*(i.aw+4)*i.fLRoot,ee=O<20.14?O+360:O,ae=.25*(Math.cos(ee*Math.PI/180+2)+3.8),K=5e4/13*ae*i.nc*i.ncb*Math.sqrt(x*x+S*S)/(C+.305),Z=Math.pow(K,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),W=Z*Math.sqrt(M/100),Be=W*i.fLRoot,xe=50*Math.sqrt(Z*i.c/(i.aw+4)),vt=(1+100*.007)*M/(1+.007*M),we=1/.0228*Math.log(1+.0228*Be),Nr=we*Math.cos(F),pi=we*Math.sin(F);return new Ut(O,W,M,V,Be,xe,vt,Nr,pi)}static fromJch(t,i,r){return Ut.fromJchInViewingConditions(t,i,r,kr.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new Ut(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return Ut.fromUcsInViewingConditions(t,i,r,kr.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return Ut.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(kr.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,v=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),w=Ni(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),g=Ni(b)*(100/t.fl)*Math.pow(p,1/.42),k=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),E=Ni(v)*(100/t.fl)*Math.pow(k,1/.42),A=w/t.rgbD[0],x=g/t.rgbD[1],S=E/t.rgbD[2],C=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,R=-.0158415*A-.03412294*x+1.04996444*S;return jC(C,N,R)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),m=Ni(l)*400*u/(u+27.13),b=Ni(c)*400*h/(h+27.13),v=Ni(d)*400*f/(f+27.13),_=(11*m+-12*b+v)/11,w=(m+b-2*v)/9,p=(20*m+20*b+21*v)/20,g=(40*m+20*b+v)/20,E=Math.atan2(w,_)*180/Math.PI,A=E<0?E+360:E>=360?E-360:E,x=A*Math.PI/180,S=g*n.nbb,C=100*Math.pow(S/n.aw,n.c*n.z),N=4/n.c*Math.sqrt(C/100)*(n.aw+4)*n.fLRoot,R=A<20.14?A+360:A,I=1/4*(Math.cos(R*Math.PI/180+2)+3.8),F=5e4/13*I*n.nc*n.ncb*Math.sqrt(_*_+w*w)/(p+.305),L=Math.pow(F,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),M=L*Math.sqrt(C/100),V=M*n.fLRoot,ee=50*Math.sqrt(L*n.c/(n.aw+4)),ae=(1+100*.007)*C/(1+.007*C),z=Math.log(1+.0228*V)/.0228,K=z*Math.cos(x),Z=z*Math.sin(x);return new Ut(A,M,C,N,V,ee,ae,K,Z)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,v=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),w=Ni(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),g=Ni(b)*(100/t.fl)*Math.pow(p,1/.42),k=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),E=Ni(v)*(100/t.fl)*Math.pow(k,1/.42),A=w/t.rgbD[0],x=g/t.rgbD[1],S=E/t.rgbD[2],C=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,R=-.0158415*A-.03412294*x+1.04996444*S;return[C,N,R]}}/** * @license * Copyright 2021 Google LLC * @@ -291,7 +291,7 @@ * 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. - */class he{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return xi(t)*400*i/(i+27.13)}static hueOf(t){const i=If(t,he.SCALED_DISCOUNT_FROM_LINRGB),r=he.chromaticAdaptation(i[0]),n=he.chromaticAdaptation(i[1]),s=he.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=he.sanitizeRadians(i-t),s=he.sanitizeRadians(r-t);return n100.01||k[1]>100.01||k[2]>100.01?0:H1(k);n=n-(P-r)*n/(2*P)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return jk(r);t=L0(t);const n=t/180*Math.PI,s=Rn(r),o=he.findResultByJ(n,i,s);if(o!==0)return o;const a=he.bisectToLimit(s,n);return H1(a)}static solveToCam(t,i,r){return Vt.fromInt(he.solveToInt(t,i,r))}}he.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];he.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];he.Y_FROM_LINRGB=[.2126,.7152,.0722];he.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** + */class pe{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return Ni(t)*400*i/(i+27.13)}static hueOf(t){const i=If(t,pe.SCALED_DISCOUNT_FROM_LINRGB),r=pe.chromaticAdaptation(i[0]),n=pe.chromaticAdaptation(i[1]),s=pe.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=pe.sanitizeRadians(i-t),s=pe.sanitizeRadians(r-t);return n100.01||C[1]>100.01||C[2]>100.01?0:H1(C);n=n-(O-r)*n/(2*O)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return YC(r);t=B0(t);const n=t/180*Math.PI,s=In(r),o=pe.findResultByJ(n,i,s);if(o!==0)return o;const a=pe.bisectToLimit(s,n);return H1(a)}static solveToCam(t,i,r){return Ut.fromInt(pe.solveToInt(t,i,r))}}pe.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];pe.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];pe.Y_FROM_LINRGB=[.2126,.7152,.0722];pe.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** * @license * Copyright 2021 Google LLC * @@ -306,7 +306,7 @@ * 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. - */class Ft{static from(t,i,r){return new Ft(he.solveToInt(t,i,r))}static fromInt(t){return new Ft(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(he.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(he.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(he.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}setInternalState(t){const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}inViewingConditions(t){const r=Vt.fromInt(this.toInt()).xyzInViewingConditions(t),n=Vt.fromXyzInViewingConditions(r[0],r[1],r[2],_r.make());return Ft.from(n.hue,n.chroma,Pf(r[1]))}}/** + */class Kt{static from(t,i,r){return new Kt(pe.solveToInt(t,i,r))}static fromInt(t){return new Kt(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(pe.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(pe.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(pe.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Ut.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}setInternalState(t){const i=Ut.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}inViewingConditions(t){const r=Ut.fromInt(this.toInt()).xyzInViewingConditions(t),n=Ut.fromXyzInViewingConditions(r[0],r[1],r[2],kr.make());return Kt.from(n.hue,n.chroma,Pf(r[1]))}}/** * @license * Copyright 2021 Google LLC * @@ -321,7 +321,7 @@ * 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. - */class O0{static harmonize(t,i){const r=Ft.fromInt(t),n=Ft.fromInt(i),s=zk(r.hue,n.hue),o=Math.min(s*.5,15),a=L0(r.hue+o*Fk(r.hue,n.hue));return Ft.from(a,r.chroma,r.tone).toInt()}static hctHue(t,i,r){const n=O0.cam16Ucs(t,i,r),s=Vt.fromInt(n),o=Vt.fromInt(t);return Ft.from(s.hue,o.chroma,$f(t)).toInt()}static cam16Ucs(t,i,r){const n=Vt.fromInt(t),s=Vt.fromInt(i),o=n.jstar,a=n.astar,l=n.bstar,c=s.jstar,d=s.astar,u=s.bstar,h=o+(c-o)*r,f=a+(d-a)*r,m=l+(u-l)*r;return Vt.fromUcs(h,f,m).toInt()}}/** + */class O0{static harmonize(t,i){const r=Kt.fromInt(t),n=Kt.fromInt(i),s=HC(r.hue,n.hue),o=Math.min(s*.5,15),a=B0(r.hue+o*zC(r.hue,n.hue));return Kt.from(a,r.chroma,r.tone).toInt()}static hctHue(t,i,r){const n=O0.cam16Ucs(t,i,r),s=Ut.fromInt(n),o=Ut.fromInt(t);return Kt.from(s.hue,o.chroma,$f(t)).toInt()}static cam16Ucs(t,i,r){const n=Ut.fromInt(t),s=Ut.fromInt(i),o=n.jstar,a=n.astar,l=n.bstar,c=s.jstar,d=s.astar,u=s.bstar,h=o+(c-o)*r,f=a+(d-a)*r,m=l+(u-l)*r;return Ut.fromUcs(h,f,m).toInt()}}/** * @license * Copyright 2022 Google LLC * @@ -336,7 +336,7 @@ * 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. - */class Dt{static ratioOfTones(t,i){return t=yd(0,100,t),i=yd(0,100,i),Dt.ratioOfYs(Rn(t),Rn(i))}static ratioOfYs(t,i){const r=t>i?t:i,n=r===i?t:i;return(r+5)/(n+5)}static lighter(t,i){if(t<0||t>100)return-1;const r=Rn(t),n=i*(r+5)-5,s=Dt.ratioOfYs(n,r),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)+.4;return a<0||a>100?-1:a}static darker(t,i){if(t<0||t>100)return-1;const r=Rn(t),n=(r+5)/i-5,s=Dt.ratioOfYs(r,n),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)-.4;return a<0||a>100?-1:a}static lighterUnsafe(t,i){const r=Dt.lighter(t,i);return r<0?100:r}static darkerUnsafe(t,i){const r=Dt.darker(t,i);return r<0?0:r}}/** + */class Mt{static ratioOfTones(t,i){return t=bd(0,100,t),i=bd(0,100,i),Mt.ratioOfYs(In(t),In(i))}static ratioOfYs(t,i){const r=t>i?t:i,n=r===i?t:i;return(r+5)/(n+5)}static lighter(t,i){if(t<0||t>100)return-1;const r=In(t),n=i*(r+5)-5,s=Mt.ratioOfYs(n,r),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)+.4;return a<0||a>100?-1:a}static darker(t,i){if(t<0||t>100)return-1;const r=In(t),n=(r+5)/i-5,s=Mt.ratioOfYs(r,n),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)-.4;return a<0||a>100?-1:a}static lighterUnsafe(t,i){const r=Mt.lighter(t,i);return r<0?100:r}static darkerUnsafe(t,i){const r=Mt.darker(t,i);return r<0?0:r}}/** * @license * Copyright 2023 Google LLC * @@ -351,7 +351,7 @@ * 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. - */class M0{static isDisliked(t){const i=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,r=Math.round(t.chroma)>16,n=Math.round(t.tone)<65;return i&&r&&n}static fixIfDisliked(t){return M0.isDisliked(t)?Ft.from(t.hue,t.chroma,70):t}}/** + */class M0{static isDisliked(t){const i=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,r=Math.round(t.chroma)>16,n=Math.round(t.tone)<65;return i&&r&&n}static fixIfDisliked(t){return M0.isDisliked(t)?Kt.from(t.hue,t.chroma,70):t}}/** * @license * Copyright 2022 Google LLC * @@ -366,7 +366,7 @@ * 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. - */class ie{static fromPalette(t){return new ie(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,r,n,s,o,a,l){if(this.name=t,this.palette=i,this.tone=r,this.isBackground=n,this.background=s,this.secondBackground=o,this.contrastCurve=a,this.toneDeltaPair=l,this.hctCache=new Map,!s&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!s&&a)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(s&&!a)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const r=this.getTone(t),n=this.palette(t).getHct(r);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,n),n}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const r=this.toneDeltaPair(t),n=r.roleA,s=r.roleB,o=r.delta,a=r.polarity,l=r.stayTogether,d=this.background(t).getTone(t),u=a==="nearer"||a==="lighter"&&!t.isDark||a==="darker"&&t.isDark,h=u?n:s,f=u?s:n,m=this.name===h.name,b=t.isDark?1:-1,w=h.contrastCurve.getContrast(t.contrastLevel),_=f.contrastCurve.getContrast(t.contrastLevel),g=h.tone(t);let p=Dt.ratioOfTones(d,g)>=w?g:ie.foregroundTone(d,w);const y=f.tone(t);let C=Dt.ratioOfTones(d,y)>=_?y:ie.foregroundTone(d,_);return i&&(p=ie.foregroundTone(d,w),C=ie.foregroundTone(d,_)),(C-p)*b>=o||(C=yd(0,100,p+o*b),(C-p)*b>=o||(p=yd(0,100,C-o*b))),50<=p&&p<60?b>0?(p=60,C=Math.max(C,p+o*b)):(p=49,C=Math.min(C,p+o*b)):50<=C&&C<60&&(l?b>0?(p=60,C=Math.max(C,p+o*b)):(p=49,C=Math.min(C,p+o*b)):b>0?C=60:C=49),m?p:C}else{let r=this.tone(t);if(this.background==null)return r;const n=this.background(t).getTone(t),s=this.contrastCurve.getContrast(t.contrastLevel);if(Dt.ratioOfTones(n,r)>=s||(r=ie.foregroundTone(n,s)),i&&(r=ie.foregroundTone(n,s)),this.isBackground&&50<=r&&r<60&&(Dt.ratioOfTones(49,n)>=s?r=49:r=60),this.secondBackground){const[o,a]=[this.background,this.secondBackground],[l,c]=[o(t).getTone(t),a(t).getTone(t)],[d,u]=[Math.max(l,c),Math.min(l,c)];if(Dt.ratioOfTones(d,r)>=s&&Dt.ratioOfTones(u,r)>=s)return r;const h=Dt.lighter(d,s),f=Dt.darker(u,s),m=[];return h!==-1&&m.push(h),f!==-1&&m.push(f),ie.tonePrefersLightForeground(l)||ie.tonePrefersLightForeground(c)?h<0?100:h:m.length===1?m[0]:f<0?0:f}return r}}static foregroundTone(t,i){const r=Dt.lighterUnsafe(t,i),n=Dt.darkerUnsafe(t,i),s=Dt.ratioOfTones(r,t),o=Dt.ratioOfTones(n,t);if(ie.tonePrefersLightForeground(t)){const l=Math.abs(s-o)<.1&&s=i||s>=o||l?r:n}else return o>=i||o>=s?n:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return ie.tonePrefersLightForeground(t)&&!ie.toneAllowsLightForeground(t)?49:t}}/** + */class re{static fromPalette(t){return new re(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,r,n,s,o,a,l){if(this.name=t,this.palette=i,this.tone=r,this.isBackground=n,this.background=s,this.secondBackground=o,this.contrastCurve=a,this.toneDeltaPair=l,this.hctCache=new Map,!s&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!s&&a)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(s&&!a)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const r=this.getTone(t),n=this.palette(t).getHct(r);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,n),n}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const r=this.toneDeltaPair(t),n=r.roleA,s=r.roleB,o=r.delta,a=r.polarity,l=r.stayTogether,d=this.background(t).getTone(t),u=a==="nearer"||a==="lighter"&&!t.isDark||a==="darker"&&t.isDark,h=u?n:s,f=u?s:n,m=this.name===h.name,b=t.isDark?1:-1,v=h.contrastCurve.getContrast(t.contrastLevel),_=f.contrastCurve.getContrast(t.contrastLevel),w=h.tone(t);let p=Mt.ratioOfTones(d,w)>=v?w:re.foregroundTone(d,v);const g=f.tone(t);let k=Mt.ratioOfTones(d,g)>=_?g:re.foregroundTone(d,_);return i&&(p=re.foregroundTone(d,v),k=re.foregroundTone(d,_)),(k-p)*b>=o||(k=bd(0,100,p+o*b),(k-p)*b>=o||(p=bd(0,100,k-o*b))),50<=p&&p<60?b>0?(p=60,k=Math.max(k,p+o*b)):(p=49,k=Math.min(k,p+o*b)):50<=k&&k<60&&(l?b>0?(p=60,k=Math.max(k,p+o*b)):(p=49,k=Math.min(k,p+o*b)):b>0?k=60:k=49),m?p:k}else{let r=this.tone(t);if(this.background==null)return r;const n=this.background(t).getTone(t),s=this.contrastCurve.getContrast(t.contrastLevel);if(Mt.ratioOfTones(n,r)>=s||(r=re.foregroundTone(n,s)),i&&(r=re.foregroundTone(n,s)),this.isBackground&&50<=r&&r<60&&(Mt.ratioOfTones(49,n)>=s?r=49:r=60),this.secondBackground){const[o,a]=[this.background,this.secondBackground],[l,c]=[o(t).getTone(t),a(t).getTone(t)],[d,u]=[Math.max(l,c),Math.min(l,c)];if(Mt.ratioOfTones(d,r)>=s&&Mt.ratioOfTones(u,r)>=s)return r;const h=Mt.lighter(d,s),f=Mt.darker(u,s),m=[];return h!==-1&&m.push(h),f!==-1&&m.push(f),re.tonePrefersLightForeground(l)||re.tonePrefersLightForeground(c)?h<0?100:h:m.length===1?m[0]:f<0?0:f}return r}}static foregroundTone(t,i){const r=Mt.lighterUnsafe(t,i),n=Mt.darkerUnsafe(t,i),s=Mt.ratioOfTones(r,t),o=Mt.ratioOfTones(n,t);if(re.tonePrefersLightForeground(t)){const l=Math.abs(s-o)<.1&&s=i||s>=o||l?r:n}else return o>=i||o>=s?n:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return re.tonePrefersLightForeground(t)&&!re.toneAllowsLightForeground(t)?49:t}}/** * @license * Copyright 2022 Google LLC * @@ -396,7 +396,7 @@ * 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. - */class $e{constructor(t,i,r,n){this.low=t,this.normal=i,this.medium=r,this.high=n}getContrast(t){return t<=-1?this.low:t<0?Ha(this.low,this.normal,(t- -1)/1):t<.5?Ha(this.normal,this.medium,(t-0)/.5):t<1?Ha(this.medium,this.high,(t-.5)/.5):this.high}}/** + */class Pe{constructor(t,i,r,n){this.low=t,this.normal=i,this.medium=r,this.high=n}getContrast(t){return t<=-1?this.low:t<0?Ha(this.low,this.normal,(t- -1)/1):t<.5?Ha(this.normal,this.medium,(t-0)/.5):t<1?Ha(this.medium,this.high,(t-.5)/.5):this.high}}/** * @license * Copyright 2023 Google LLC * @@ -411,7 +411,7 @@ * 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. - */class Vi{constructor(t,i,r,n,s){this.roleA=t,this.roleB=i,this.delta=r,this.polarity=n,this.stayTogether=s}}/** + */class zi{constructor(t,i,r,n,s){this.roleA=t,this.roleB=i,this.delta=r,this.polarity=n,this.stayTogether=s}}/** * @license * Copyright 2022 Google LLC * @@ -426,7 +426,7 @@ * 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 oa(e){return e.variant===_l.FIDELITY||e.variant===_l.CONTENT}function wt(e){return e.variant===_l.MONOCHROME}function Zk(e,t,i,r){let n=i,s=Ft.from(e,t,i);if(s.chromaa.chroma||Math.abs(a.chroma-t)<.4)break;const l=Math.abs(a.chroma-t),c=Math.abs(s.chroma-t);le.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});V.secondaryPaletteKeyColor=ie.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});V.tertiaryPaletteKeyColor=ie.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});V.neutralPaletteKeyColor=ie.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});V.neutralVariantPaletteKeyColor=ie.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});V.background=ie.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});V.onBackground=ie.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>V.background,contrastCurve:new $e(3,3,4.5,7)});V.surface=ie.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});V.surfaceDim=ie.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});V.surfaceBright=ie.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});V.surfaceContainerLowest=ie.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});V.surfaceContainerLow=ie.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});V.surfaceContainer=ie.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});V.surfaceContainerHigh=ie.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});V.surfaceContainerHighest=ie.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});V.onSurface=ie.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>V.highestSurface(e),contrastCurve:new $e(4.5,7,11,21)});V.surfaceVariant=ie.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});V.onSurfaceVariant=ie.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>V.highestSurface(e),contrastCurve:new $e(3,4.5,7,11)});V.inverseSurface=ie.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});V.inverseOnSurface=ie.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>V.inverseSurface,contrastCurve:new $e(4.5,7,11,21)});V.outline=ie.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>V.highestSurface(e),contrastCurve:new $e(1.5,3,4.5,7)});V.outlineVariant=ie.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7)});V.shadow=ie.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});V.scrim=ie.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});V.surfaceTint=ie.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});V.primary=ie.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>wt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(3,4.5,7,11),toneDeltaPair:e=>new Vi(V.primaryContainer,V.primary,15,"nearer",!1)});V.onPrimary=ie.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>wt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>V.primary,contrastCurve:new $e(4.5,7,11,21)});V.primaryContainer=ie.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>oa(e)?V0(e.sourceColorHct,e):wt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.primaryContainer,V.primary,15,"nearer",!1)});V.onPrimaryContainer=ie.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>oa(e)?ie.foregroundTone(V.primaryContainer.tone(e),4.5):wt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>V.primaryContainer,contrastCurve:new $e(4.5,7,11,21)});V.inversePrimary=ie.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>V.inverseSurface,contrastCurve:new $e(3,4.5,7,11)});V.secondary=ie.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(3,4.5,7,11),toneDeltaPair:e=>new Vi(V.secondaryContainer,V.secondary,15,"nearer",!1)});V.onSecondary=ie.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>wt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>V.secondary,contrastCurve:new $e(4.5,7,11,21)});V.secondaryContainer=ie.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(wt(e))return e.isDark?30:85;if(!oa(e))return t;let i=Zk(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return i=V0(e.secondaryPalette.getHct(i),e),i},isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.secondaryContainer,V.secondary,15,"nearer",!1)});V.onSecondaryContainer=ie.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>oa(e)?ie.foregroundTone(V.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>V.secondaryContainer,contrastCurve:new $e(4.5,7,11,21)});V.tertiary=ie.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(3,4.5,7,11),toneDeltaPair:e=>new Vi(V.tertiaryContainer,V.tertiary,15,"nearer",!1)});V.onTertiary=ie.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>V.tertiary,contrastCurve:new $e(4.5,7,11,21)});V.tertiaryContainer=ie.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(wt(e))return e.isDark?60:49;if(!oa(e))return e.isDark?30:90;const t=V0(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),i=e.tertiaryPalette.getHct(t);return M0.fixIfDisliked(i).tone},isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.tertiaryContainer,V.tertiary,15,"nearer",!1)});V.onTertiaryContainer=ie.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?e.isDark?0:100:oa(e)?ie.foregroundTone(V.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>V.tertiaryContainer,contrastCurve:new $e(4.5,7,11,21)});V.error=ie.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(3,4.5,7,11),toneDeltaPair:e=>new Vi(V.errorContainer,V.error,15,"nearer",!1)});V.onError=ie.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>V.error,contrastCurve:new $e(4.5,7,11,21)});V.errorContainer=ie.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.errorContainer,V.error,15,"nearer",!1)});V.onErrorContainer=ie.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>V.errorContainer,contrastCurve:new $e(4.5,7,11,21)});V.primaryFixed=ie.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>wt(e)?40:90,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0)});V.primaryFixedDim=ie.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>wt(e)?30:80,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0)});V.onPrimaryFixed=ie.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>wt(e)?100:10,background:e=>V.primaryFixedDim,secondBackground:e=>V.primaryFixed,contrastCurve:new $e(4.5,7,11,21)});V.onPrimaryFixedVariant=ie.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>wt(e)?90:30,background:e=>V.primaryFixedDim,secondBackground:e=>V.primaryFixed,contrastCurve:new $e(3,4.5,7,11)});V.secondaryFixed=ie.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>wt(e)?80:90,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0)});V.secondaryFixedDim=ie.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>wt(e)?70:80,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0)});V.onSecondaryFixed=ie.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>V.secondaryFixedDim,secondBackground:e=>V.secondaryFixed,contrastCurve:new $e(4.5,7,11,21)});V.onSecondaryFixedVariant=ie.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>wt(e)?25:30,background:e=>V.secondaryFixedDim,secondBackground:e=>V.secondaryFixed,contrastCurve:new $e(3,4.5,7,11)});V.tertiaryFixed=ie.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?40:90,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0)});V.tertiaryFixedDim=ie.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?30:80,isBackground:!0,background:e=>V.highestSurface(e),contrastCurve:new $e(1,1,3,7),toneDeltaPair:e=>new Vi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0)});V.onTertiaryFixed=ie.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?100:10,background:e=>V.tertiaryFixedDim,secondBackground:e=>V.tertiaryFixed,contrastCurve:new $e(4.5,7,11,21)});V.onTertiaryFixedVariant=ie.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>wt(e)?90:30,background:e=>V.tertiaryFixedDim,secondBackground:e=>V.tertiaryFixed,contrastCurve:new $e(3,4.5,7,11)});/** + */function oa(e){return e.variant===_l.FIDELITY||e.variant===_l.CONTENT}function kt(e){return e.variant===_l.MONOCHROME}function GC(e,t,i,r){let n=i,s=Kt.from(e,t,i);if(s.chromaa.chroma||Math.abs(a.chroma-t)<.4)break;const l=Math.abs(a.chroma-t),c=Math.abs(s.chroma-t);le.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});H.secondaryPaletteKeyColor=re.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});H.tertiaryPaletteKeyColor=re.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});H.neutralPaletteKeyColor=re.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});H.neutralVariantPaletteKeyColor=re.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});H.background=re.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});H.onBackground=re.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>H.background,contrastCurve:new Pe(3,3,4.5,7)});H.surface=re.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});H.surfaceDim=re.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});H.surfaceBright=re.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});H.surfaceContainerLowest=re.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});H.surfaceContainerLow=re.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});H.surfaceContainer=re.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});H.surfaceContainerHigh=re.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});H.surfaceContainerHighest=re.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});H.onSurface=re.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>H.highestSurface(e),contrastCurve:new Pe(4.5,7,11,21)});H.surfaceVariant=re.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});H.onSurfaceVariant=re.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>H.highestSurface(e),contrastCurve:new Pe(3,4.5,7,11)});H.inverseSurface=re.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});H.inverseOnSurface=re.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>H.inverseSurface,contrastCurve:new Pe(4.5,7,11,21)});H.outline=re.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>H.highestSurface(e),contrastCurve:new Pe(1.5,3,4.5,7)});H.outlineVariant=re.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7)});H.shadow=re.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});H.scrim=re.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});H.surfaceTint=re.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});H.primary=re.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>kt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(3,4.5,7,11),toneDeltaPair:e=>new zi(H.primaryContainer,H.primary,15,"nearer",!1)});H.onPrimary=re.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>kt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>H.primary,contrastCurve:new Pe(4.5,7,11,21)});H.primaryContainer=re.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>oa(e)?V0(e.sourceColorHct,e):kt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.primaryContainer,H.primary,15,"nearer",!1)});H.onPrimaryContainer=re.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>oa(e)?re.foregroundTone(H.primaryContainer.tone(e),4.5):kt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>H.primaryContainer,contrastCurve:new Pe(4.5,7,11,21)});H.inversePrimary=re.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>H.inverseSurface,contrastCurve:new Pe(3,4.5,7,11)});H.secondary=re.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(3,4.5,7,11),toneDeltaPair:e=>new zi(H.secondaryContainer,H.secondary,15,"nearer",!1)});H.onSecondary=re.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>kt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>H.secondary,contrastCurve:new Pe(4.5,7,11,21)});H.secondaryContainer=re.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(kt(e))return e.isDark?30:85;if(!oa(e))return t;let i=GC(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return i=V0(e.secondaryPalette.getHct(i),e),i},isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.secondaryContainer,H.secondary,15,"nearer",!1)});H.onSecondaryContainer=re.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>oa(e)?re.foregroundTone(H.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>H.secondaryContainer,contrastCurve:new Pe(4.5,7,11,21)});H.tertiary=re.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(3,4.5,7,11),toneDeltaPair:e=>new zi(H.tertiaryContainer,H.tertiary,15,"nearer",!1)});H.onTertiary=re.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>H.tertiary,contrastCurve:new Pe(4.5,7,11,21)});H.tertiaryContainer=re.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(kt(e))return e.isDark?60:49;if(!oa(e))return e.isDark?30:90;const t=V0(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),i=e.tertiaryPalette.getHct(t);return M0.fixIfDisliked(i).tone},isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.tertiaryContainer,H.tertiary,15,"nearer",!1)});H.onTertiaryContainer=re.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?e.isDark?0:100:oa(e)?re.foregroundTone(H.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>H.tertiaryContainer,contrastCurve:new Pe(4.5,7,11,21)});H.error=re.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(3,4.5,7,11),toneDeltaPair:e=>new zi(H.errorContainer,H.error,15,"nearer",!1)});H.onError=re.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>H.error,contrastCurve:new Pe(4.5,7,11,21)});H.errorContainer=re.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.errorContainer,H.error,15,"nearer",!1)});H.onErrorContainer=re.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>H.errorContainer,contrastCurve:new Pe(4.5,7,11,21)});H.primaryFixed=re.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>kt(e)?40:90,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.primaryFixed,H.primaryFixedDim,10,"lighter",!0)});H.primaryFixedDim=re.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>kt(e)?30:80,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.primaryFixed,H.primaryFixedDim,10,"lighter",!0)});H.onPrimaryFixed=re.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>kt(e)?100:10,background:e=>H.primaryFixedDim,secondBackground:e=>H.primaryFixed,contrastCurve:new Pe(4.5,7,11,21)});H.onPrimaryFixedVariant=re.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>kt(e)?90:30,background:e=>H.primaryFixedDim,secondBackground:e=>H.primaryFixed,contrastCurve:new Pe(3,4.5,7,11)});H.secondaryFixed=re.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>kt(e)?80:90,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.secondaryFixed,H.secondaryFixedDim,10,"lighter",!0)});H.secondaryFixedDim=re.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>kt(e)?70:80,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.secondaryFixed,H.secondaryFixedDim,10,"lighter",!0)});H.onSecondaryFixed=re.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>H.secondaryFixedDim,secondBackground:e=>H.secondaryFixed,contrastCurve:new Pe(4.5,7,11,21)});H.onSecondaryFixedVariant=re.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>kt(e)?25:30,background:e=>H.secondaryFixedDim,secondBackground:e=>H.secondaryFixed,contrastCurve:new Pe(3,4.5,7,11)});H.tertiaryFixed=re.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?40:90,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.tertiaryFixed,H.tertiaryFixedDim,10,"lighter",!0)});H.tertiaryFixedDim=re.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?30:80,isBackground:!0,background:e=>H.highestSurface(e),contrastCurve:new Pe(1,1,3,7),toneDeltaPair:e=>new zi(H.tertiaryFixed,H.tertiaryFixedDim,10,"lighter",!0)});H.onTertiaryFixed=re.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?100:10,background:e=>H.tertiaryFixedDim,secondBackground:e=>H.tertiaryFixed,contrastCurve:new Pe(4.5,7,11,21)});H.onTertiaryFixedVariant=re.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>kt(e)?90:30,background:e=>H.tertiaryFixedDim,secondBackground:e=>H.tertiaryFixed,contrastCurve:new Pe(3,4.5,7,11)});/** * @license * Copyright 2021 Google LLC * @@ -441,7 +441,7 @@ * 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. - */class ni{static fromInt(t){const i=Ft.fromInt(t);return ni.fromHct(i)}static fromHct(t){return new ni(t.hue,t.chroma,t)}static fromHueAndChroma(t,i){return new ni(t,i,ni.createKeyColor(t,i))}constructor(t,i,r){this.hue=t,this.chroma=i,this.keyColor=r,this.cache=new Map}static createKeyColor(t,i){let n=Ft.from(t,i,50),s=Math.abs(n.chroma-i);for(let o=1;o<50;o+=1){if(Math.round(i)===Math.round(n.chroma))return n;const a=Ft.from(t,i,50+o),l=Math.abs(a.chroma-i);l>>0}function Kr(e){return parseInt(e,16)}/** + */function u5(e){e=e.replace("#","");const t=e.length===3,i=e.length===6,r=e.length===8;if(!t&&!i&&!r)throw new Error("unexpected hex "+e);let n=0,s=0,o=0;return t?(n=Wr(e.slice(0,1).repeat(2)),s=Wr(e.slice(1,2).repeat(2)),o=Wr(e.slice(2,3).repeat(2))):i?(n=Wr(e.slice(0,2)),s=Wr(e.slice(2,4)),o=Wr(e.slice(4,6))):r&&(n=Wr(e.slice(2,4)),s=Wr(e.slice(4,6)),o=Wr(e.slice(6,8))),(255<<24|(n&255)<<16|(s&255)<<8|o&255)>>>0}function Wr(e){return parseInt(e,16)}/** * @license * Copyright 2021 Google LLC * @@ -501,7 +501,7 @@ * 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 Qk(e,t){let i=t.value;const r=i,n=e;t.blend&&(i=O0.harmonize(r,n));const o=jt.of(i).a1;return{color:t,value:i,light:{color:o.tone(40),onColor:o.tone(100),colorContainer:o.tone(90),onColorContainer:o.tone(10)},dark:{color:o.tone(80),onColor:o.tone(20),colorContainer:o.tone(30),onColorContainer:o.tone(90)}}}const Jk=["light","dark"],h5="mdui-custom-color-scheme-";let eC=0;const tC=e=>{const t=a5(e),i=l5(e),r=c5(e);return[t,i,r].join(", ")},iC=e=>{const t=B(e);let i=t.get().map(n=>Array.from(n.classList)).flat();i=na(i).filter(n=>n.startsWith(h5)),t.removeClass(i.join(" "));const r=i.filter(n=>B(`.${n}`).length===0);B(r.map(n=>`#${n}`).join(",")).remove()},rC=(e,t)=>{const i=wi(),r=B(i.documentElement),n={light:Zr.light(e).toJSON(),dark:Zr.dark(e).toJSON()},s=jt.of(e);Object.assign(n.light,{"surface-dim":s.n1.tone(87),"surface-bright":s.n1.tone(98),"surface-container-lowest":s.n1.tone(100),"surface-container-low":s.n1.tone(96),"surface-container":s.n1.tone(94),"surface-container-high":s.n1.tone(92),"surface-container-highest":s.n1.tone(90),"surface-tint-color":n.light.primary}),Object.assign(n.dark,{"surface-dim":s.n1.tone(6),"surface-bright":s.n1.tone(24),"surface-container-lowest":s.n1.tone(4),"surface-container-low":s.n1.tone(10),"surface-container":s.n1.tone(12),"surface-container-high":s.n1.tone(17),"surface-container-highest":s.n1.tone(22),"surface-tint-color":n.dark.primary}),[].map(c=>{const d=ul(c.name),u=Qk(e,{name:d,value:u5(c.value),blend:!0});Jk.forEach(h=>{n[h][d]=u[h].color,n[h][`on-${d}`]=u[h].onColor,n[h][`${d}-container`]=u[h].colorContainer,n[h][`on-${d}-container`]=u[h].onColorContainer})});const o=(c,d)=>Object.entries(n[c]).map(([u,h])=>d(ul(u),tC(h))).join(""),a=h5+`${e}-${eC++}`,l=`.${a} { + */function JC(e,t){let i=t.value;const r=i,n=e;t.blend&&(i=O0.harmonize(r,n));const o=Gt.of(i).a1;return{color:t,value:i,light:{color:o.tone(40),onColor:o.tone(100),colorContainer:o.tone(90),onColorContainer:o.tone(10)},dark:{color:o.tone(80),onColor:o.tone(20),colorContainer:o.tone(30),onColorContainer:o.tone(90)}}}const ek=["light","dark"],h5="mdui-custom-color-scheme-";let tk=0;const ik=e=>{const t=a5(e),i=l5(e),r=c5(e);return[t,i,r].join(", ")},rk=e=>{const t=B(e);let i=t.get().map(n=>Array.from(n.classList)).flat();i=na(i).filter(n=>n.startsWith(h5)),t.removeClass(i.join(" "));const r=i.filter(n=>B(`.${n}`).length===0);B(r.map(n=>`#${n}`).join(",")).remove()},nk=(e,t)=>{const i=Ci(),r=B(i.documentElement),n={light:Gr.light(e).toJSON(),dark:Gr.dark(e).toJSON()},s=Gt.of(e);Object.assign(n.light,{"surface-dim":s.n1.tone(87),"surface-bright":s.n1.tone(98),"surface-container-lowest":s.n1.tone(100),"surface-container-low":s.n1.tone(96),"surface-container":s.n1.tone(94),"surface-container-high":s.n1.tone(92),"surface-container-highest":s.n1.tone(90),"surface-tint-color":n.light.primary}),Object.assign(n.dark,{"surface-dim":s.n1.tone(6),"surface-bright":s.n1.tone(24),"surface-container-lowest":s.n1.tone(4),"surface-container-low":s.n1.tone(10),"surface-container":s.n1.tone(12),"surface-container-high":s.n1.tone(17),"surface-container-highest":s.n1.tone(22),"surface-tint-color":n.dark.primary}),[].map(c=>{const d=ul(c.name),u=JC(e,{name:d,value:u5(c.value),blend:!0});ek.forEach(h=>{n[h][d]=u[h].color,n[h][`on-${d}`]=u[h].onColor,n[h][`${d}-container`]=u[h].colorContainer,n[h][`on-${d}-container`]=u[h].onColorContainer})});const o=(c,d)=>Object.entries(n[c]).map(([u,h])=>d(ul(u),ik(h))).join(""),a=h5+`${e}-${tk++}`,l=`.${a} { ${o("light",(c,d)=>`--mdui-color-${c}-light: ${d};`)} ${o("dark",(c,d)=>`--mdui-color-${c}-dark: ${d};`)} ${o("light",c=>`--mdui-color-${c}: var(--mdui-color-${c}-light);`)} @@ -520,7 +520,7 @@ .mdui-theme-auto.${a} { ${o("dark",c=>`--mdui-color-${c}: var(--mdui-color-${c}-dark);`)} } -}`;iC(r),B(i.head).append(``),r.addClass(a)},nC=(e,t)=>{const i=u5(e);rC(i)},U1="mdui.functions.snackbar.";let gc;const Sr=e=>{const t=new Bi,i=B(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=ul(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??f_).call(t,t);Bk(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(gc=void 0,Mk(U1+e.queue))}),e.queue?gc?Ok(U1+e.queue,()=>{t.open=!0,gc=t}):(setTimeout(()=>{t.open=!0}),gc=t):setTimeout(()=>{t.open=!0}),t};let Df=class extends ht{render(){return ei('')}};Df.styles=Jt;Df=v([se("mdui-icon-menu")],Df);const sC=["id"],oC=ve("div",{class:"ImScrollBarThumb"},null,-1),aC=[oC],lC={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=dt(!1),r=dt(!1),n=dt(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return zp(()=>{}),hn(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=dt("0%");var d;const u=new ResizeObserver(E=>{E.forEach(A=>{const x=A.target;if(x.id==t.ContentContainerId){const U=l;var S=x.scrollHeight,k=x.scrollWidth,N=U.clientHeight,I=U.clientWidth}if(x.id==t.ContainerId){const U=a;var S=U.scrollHeight,k=U.scrollWidth,N=x.clientHeight,I=x.clientWidth}var T,P;t.Direction=="Left"||t.Direction=="Right"?(T=S,P=N):(t.Direction=="Top"||t.Direction=="Bottom")&&(T=k,P=I),T<=P?i.value=!0:i.value=!1;var O=P/T*100;if(T>P){var M=o.childNodes[0],H;t.Direction=="Left"||t.Direction=="Right"?(M.style.width="100%",M.style.height=O.toString()+"%",H=l.scrollTop/a.scrollHeight*100,M.style.top=H.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(M.style.width=O.toString()+"%",M.style.height="100%",H=l.scrollLeft/a.scrollWidth*100,M.style.left=H.toString()+"%"),c.value=H,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-M.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-M.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,m,b=!0,w,_,g;function p(){function E(x){b||(x.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?w=x.clientY-f+m:(t.Direction=="Top"||t.Direction=="Bottom")&&(w=x.clientX-f+m),w>=d&&(w=d),w<=0&&(w=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=w+"px",_=w/o.offsetHeight,g=a.scrollHeight*_,l.scrollTop=g):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=w+"px",_=w/o.offsetWidth,g=a.scrollWidth*_,l.scrollLeft=g))}function A(x){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",E),b=!0}document.addEventListener("mouseup",A,{once:!0}),document.addEventListener("mousemove",E)}h.addEventListener("mousedown",function(E){t.Direction=="Left"?(f=E.clientY,m=this.offsetTop):t.Direction=="Right"?(f=E.clientY,m=this.offsetTop):t.Direction=="Top"?(f=E.clientX,m=this.offsetLeft):t.Direction=="Bottom"&&(f=E.clientX,m=this.offsetLeft),b=!1,p()});var y=null;function C(E){var A;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(A=l.scrollTop/a.scrollHeight*100,h.style.top=A.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(A=l.scrollLeft/a.scrollWidth*100,h.style.left=A.toString()+"%"),b&&(clearTimeout(y),y=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",C)}),(o,a)=>(vi(),Pr("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},aC,40,sC))}},cC=["id"],dC=["name"],ka={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=dt({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(vi(),Pr("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:Os(i.value)},[t.icon?(vi(),Pr("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,dC)):as("",!0),ve("div",{class:"cardContent",style:Os({color:t.TextColor,"z-index":5})},[k2(r.$slots,"default")],4)],12,cC))}};let Lf=class extends ht{render(){return ei('')}};Lf.styles=Jt;Lf=v([se("mdui-icon-autorenew--rounded")],Lf);let Bf=class extends ht{render(){return ei('')}};Bf.styles=Jt;Bf=v([se("mdui-icon-do-not-disturb-alt--rounded")],Bf);let Of=class extends ht{render(){return ei('')}};Of.styles=Jt;Of=v([se("mdui-icon-explore")],Of);let Mf=class extends ht{render(){return ei('')}};Mf.styles=Jt;Mf=v([se("mdui-icon-done--rounded")],Mf);var uC=Object.defineProperty,f5=e=>{throw TypeError(e)},hC=(e,t,i)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ql=(e,t,i)=>hC(e,typeof t!="symbol"?t+"":t,i),p5=(e,t,i)=>t.has(e)||f5("Cannot "+i),fi=(e,t,i)=>(p5(e,t,"read from private field"),i?i.call(e):t.get(e)),$u=(e,t,i)=>t.has(e)?f5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),gr=(e,t,i,r)=>(p5(e,t,"write to private field"),t.set(e,i),i),ss,Ca,_t;const m5="3.7.7",fC=m5,aa=typeof Buffer=="function",K1=typeof TextDecoder=="function"?new TextDecoder:void 0,W1=typeof TextEncoder=="function"?new TextEncoder:void 0,pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Aa=Array.prototype.slice.call(pC),vc=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(Aa),mC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Yt=String.fromCharCode.bind(String),q1=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),g5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),v5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y5=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=Aa[t>>18&63]+Aa[t>>12&63]+Aa[t>>6&63]+Aa[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},F0=typeof btoa=="function"?e=>btoa(e):aa?e=>Buffer.from(e,"binary").toString("base64"):y5,Vf=aa?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?g5(Vf(e)):Vf(e),gC=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Yt(192|t>>>6)+Yt(128|t&63):Yt(224|t>>>12&15)+Yt(128|t>>>6&63)+Yt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Yt(240|t>>>18&7)+Yt(128|t>>>12&63)+Yt(128|t>>>6&63)+Yt(128|t&63)}},vC=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b5=e=>e.replace(vC,gC),j1=aa?e=>Buffer.from(e,"utf8").toString("base64"):W1?e=>Vf(W1.encode(e)):e=>F0(b5(e)),$o=(e,t=!1)=>t?g5(j1(e)):j1(e),Y1=e=>$o(e,!0),yC=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,bC=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Yt((i>>>10)+55296)+Yt((i&1023)+56320);case 3:return Yt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Yt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w5=e=>e.replace(yC,bC),_5=e=>{if(e=e.replace(/\s+/g,""),!mC.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Yt(t>>16&255,t>>8&255):Yt(t>>16&255,t>>8&255,t&255);return i},z0=typeof atob=="function"?e=>atob(v5(e)):aa?e=>Buffer.from(e,"base64").toString("binary"):_5,k5=aa?e=>q1(Buffer.from(e,"base64")):e=>q1(z0(e).split("").map(t=>t.charCodeAt(0))),C5=e=>k5(A5(e)),wC=aa?e=>Buffer.from(e,"base64").toString("utf8"):K1?e=>K1.decode(k5(e)):e=>w5(z0(e)),A5=e=>v5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ff=e=>wC(A5(e)),_C=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},E5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),x5=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,E5(i));e("fromBase64",function(){return Ff(this)}),e("toBase64",function(t){return $o(this,t)}),e("toBase64URI",function(){return $o(this,!0)}),e("toBase64URL",function(){return $o(this,!0)}),e("toUint8Array",function(){return C5(this)})},S5=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,E5(i));e("toBase64",function(t){return Oc(this,t)}),e("toBase64URI",function(){return Oc(this,!0)}),e("toBase64URL",function(){return Oc(this,!0)})},kC=()=>{x5(),S5()},pr={version:m5,VERSION:fC,atob:z0,atobPolyfill:_5,btoa:F0,btoaPolyfill:y5,fromBase64:Ff,toBase64:$o,encode:$o,encodeURI:Y1,encodeURL:Y1,utob:b5,btou:w5,decode:Ff,isValid:_C,fromUint8Array:Oc,toUint8Array:C5,extendString:x5,extendUint8Array:S5,extendBuiltins:kC};var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var N5={exports:{}};function AC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pu={exports:{}};const EC={},xC=Object.freeze(Object.defineProperty({__proto__:null,default:EC},Symbol.toStringTag,{value:"Module"})),SC=CC(xC);var X1;function Pe(){return X1||(X1=1,function(e,t){(function(i,r){e.exports=r()})(Te,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Te<"u"&&Te.crypto&&(s=Te.crypto),!s&&typeof AC=="function")try{s=SC}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(p){var y;return g.prototype=p,y=new g,g.prototype=null,y}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(g){var p=a(this);return g&&p.mixIn(g),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var p in g)g.hasOwnProperty(p)&&(this[p]=g[p]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(g,p){g=this.words=g||[],p!=n?this.sigBytes=p:this.sigBytes=g.length*4},toString:function(g){return(g||f).stringify(this)},concat:function(g){var p=this.words,y=g.words,C=this.sigBytes,E=g.sigBytes;if(this.clamp(),C%4)for(var A=0;A>>2]>>>24-A%4*8&255;p[C+A>>>2]|=x<<24-(C+A)%4*8}else for(var S=0;S>>2]=y[S>>>2];return this.sigBytes+=E,this},clamp:function(){var g=this.words,p=this.sigBytes;g[p>>>2]&=4294967295<<32-p%4*8,g.length=r.ceil(p/4)},clone:function(){var g=d.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var p=[],y=0;y>>2]>>>24-E%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>3]|=parseInt(g.substr(C,2),16)<<24-C%8*4;return new u.init(y,p/2)}},m=h.Latin1={stringify:function(g){for(var p=g.words,y=g.sigBytes,C=[],E=0;E>>2]>>>24-E%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>2]|=(g.charCodeAt(C)&255)<<24-C%4*8;return new u.init(y,p)}},b=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},w=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=b.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var p,y=this._data,C=y.words,E=y.sigBytes,A=this.blockSize,x=A*4,S=E/x;g?S=r.ceil(S):S=r.max((S|0)-this._minBufferSize,0);var k=S*A,N=r.min(k*4,E);if(k){for(var I=0;I>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(Lu)),Lu.exports}var Bu={exports:{}},Q1;function NC(){return Q1||(Q1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(Bu)),Bu.exports}var Ou={exports:{}},J1;function io(){return J1||(J1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,w=c[f+2>>>2]>>>24-(f+2)%4*8&255,_=m<<16|b<<8|w,g=0;g<4&&f+g*.75>>6*(3-g)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(Ou)),Ou.exports}var Mu={exports:{}},eg;function RC(){return eg||(eg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],m=0;m>>2]>>>24-m%4*8&255,w=d[m+1>>>2]>>>24-(m+1)%4*8&255,_=d[m+2>>>2]>>>24-(m+2)%4*8&255,g=b<<16|w<<8|_,p=0;p<4&&m+p*.75>>6*(3-p)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(Mu)),Mu.exports}var Vu={exports:{}},tg;function ro(){return tg||(tg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,w){for(var _=0;_<16;_++){var g=w+_,p=b[g];b[g]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,C=b[w+0],E=b[w+1],A=b[w+2],x=b[w+3],S=b[w+4],k=b[w+5],N=b[w+6],I=b[w+7],T=b[w+8],P=b[w+9],O=b[w+10],M=b[w+11],H=b[w+12],U=b[w+13],me=b[w+14],ye=b[w+15],F=y[0],W=y[1],Z=y[2],K=y[3];F=u(F,W,Z,K,C,7,c[0]),K=u(K,F,W,Z,E,12,c[1]),Z=u(Z,K,F,W,A,17,c[2]),W=u(W,Z,K,F,x,22,c[3]),F=u(F,W,Z,K,S,7,c[4]),K=u(K,F,W,Z,k,12,c[5]),Z=u(Z,K,F,W,N,17,c[6]),W=u(W,Z,K,F,I,22,c[7]),F=u(F,W,Z,K,T,7,c[8]),K=u(K,F,W,Z,P,12,c[9]),Z=u(Z,K,F,W,O,17,c[10]),W=u(W,Z,K,F,M,22,c[11]),F=u(F,W,Z,K,H,7,c[12]),K=u(K,F,W,Z,U,12,c[13]),Z=u(Z,K,F,W,me,17,c[14]),W=u(W,Z,K,F,ye,22,c[15]),F=h(F,W,Z,K,E,5,c[16]),K=h(K,F,W,Z,N,9,c[17]),Z=h(Z,K,F,W,M,14,c[18]),W=h(W,Z,K,F,C,20,c[19]),F=h(F,W,Z,K,k,5,c[20]),K=h(K,F,W,Z,O,9,c[21]),Z=h(Z,K,F,W,ye,14,c[22]),W=h(W,Z,K,F,S,20,c[23]),F=h(F,W,Z,K,P,5,c[24]),K=h(K,F,W,Z,me,9,c[25]),Z=h(Z,K,F,W,x,14,c[26]),W=h(W,Z,K,F,T,20,c[27]),F=h(F,W,Z,K,U,5,c[28]),K=h(K,F,W,Z,A,9,c[29]),Z=h(Z,K,F,W,I,14,c[30]),W=h(W,Z,K,F,H,20,c[31]),F=f(F,W,Z,K,k,4,c[32]),K=f(K,F,W,Z,T,11,c[33]),Z=f(Z,K,F,W,M,16,c[34]),W=f(W,Z,K,F,me,23,c[35]),F=f(F,W,Z,K,E,4,c[36]),K=f(K,F,W,Z,S,11,c[37]),Z=f(Z,K,F,W,I,16,c[38]),W=f(W,Z,K,F,O,23,c[39]),F=f(F,W,Z,K,U,4,c[40]),K=f(K,F,W,Z,C,11,c[41]),Z=f(Z,K,F,W,x,16,c[42]),W=f(W,Z,K,F,N,23,c[43]),F=f(F,W,Z,K,P,4,c[44]),K=f(K,F,W,Z,H,11,c[45]),Z=f(Z,K,F,W,ye,16,c[46]),W=f(W,Z,K,F,A,23,c[47]),F=m(F,W,Z,K,C,6,c[48]),K=m(K,F,W,Z,I,10,c[49]),Z=m(Z,K,F,W,me,15,c[50]),W=m(W,Z,K,F,k,21,c[51]),F=m(F,W,Z,K,H,6,c[52]),K=m(K,F,W,Z,x,10,c[53]),Z=m(Z,K,F,W,O,15,c[54]),W=m(W,Z,K,F,E,21,c[55]),F=m(F,W,Z,K,T,6,c[56]),K=m(K,F,W,Z,ye,10,c[57]),Z=m(Z,K,F,W,N,15,c[58]),W=m(W,Z,K,F,U,21,c[59]),F=m(F,W,Z,K,S,6,c[60]),K=m(K,F,W,Z,M,10,c[61]),Z=m(Z,K,F,W,A,15,c[62]),W=m(W,Z,K,F,P,21,c[63]),y[0]=y[0]+F|0,y[1]=y[1]+W|0,y[2]=y[2]+Z|0,y[3]=y[3]+K|0},_doFinalize:function(){var b=this._data,w=b.words,_=this._nDataBytes*8,g=b.sigBytes*8;w[g>>>5]|=128<<24-g%32;var p=r.floor(_/4294967296),y=_;w[(g+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(g+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var C=this._hash,E=C.words,A=0;A<4;A++){var x=E[A];E[A]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return C},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,w,_,g,p,y,C){var E=b+(w&_|~w&g)+p+C;return(E<>>32-y)+w}function h(b,w,_,g,p,y,C){var E=b+(w&g|_&~g)+p+C;return(E<>>32-y)+w}function f(b,w,_,g,p,y,C){var E=b+(w^_^g)+p+C;return(E<>>32-y)+w}function m(b,w,_,g,p,y,C){var E=b+(_^(w|~g))+p+C;return(E<>>32-y)+w}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(Vu)),Vu.exports}var Fu={exports:{}},ig;function R5(){return ig||(ig=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],m=h[1],b=h[2],w=h[3],_=h[4],g=0;g<80;g++){if(g<16)l[g]=d[u+g]|0;else{var p=l[g-3]^l[g-8]^l[g-14]^l[g-16];l[g]=p<<1|p>>>31}var y=(f<<5|f>>>27)+_+l[g];g<20?y+=(m&b|~m&w)+1518500249:g<40?y+=(m^b^w)+1859775393:g<60?y+=(m&b|m&w|b&w)-1894007588:y+=(m^b^w)-899497514,_=w,w=b,b=m<<30|m>>>2,m=f,f=y}h[0]=h[0]+f|0,h[1]=h[1]+m|0,h[2]=h[2]+b|0,h[3]=h[3]+w|0,h[4]=h[4]+_|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(Fu)),Fu.exports}var zu={exports:{}},rg;function H0(){return rg||(rg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(_){for(var g=r.sqrt(_),p=2;p<=g;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var b=2,w=0;w<64;)f(b)&&(w<8&&(c[w]=m(r.pow(b,1/2))),d[w]=m(r.pow(b,1/3)),w++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,m){for(var b=this._hash.words,w=b[0],_=b[1],g=b[2],p=b[3],y=b[4],C=b[5],E=b[6],A=b[7],x=0;x<64;x++){if(x<16)u[x]=f[m+x]|0;else{var S=u[x-15],k=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,N=u[x-2],I=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;u[x]=k+u[x-7]+I+u[x-16]}var T=y&C^~y&E,P=w&_^w&g^_&g,O=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),M=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),H=A+M+T+d[x]+u[x],U=O+P;A=E,E=C,C=y,y=p+H|0,p=g,g=_,_=w,w=H+U|0}b[0]=b[0]+w|0,b[1]=b[1]+_|0,b[2]=b[2]+g|0,b[3]=b[3]+p|0,b[4]=b[4]+y|0,b[5]=b[5]+C|0,b[6]=b[6]+E|0,b[7]=b[7]+A|0},_doFinalize:function(){var f=this._data,m=f.words,b=this._nDataBytes*8,w=f.sigBytes*8;return m[w>>>5]|=128<<24-w%32,m[(w+64>>>9<<4)+14]=r.floor(b/4294967296),m[(w+64>>>9<<4)+15]=b,f.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(zu)),zu.exports}var Hu={exports:{}},ng;function IC(){return ng||(ng=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),H0())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(Hu)),Hu.exports}var Uu={exports:{}},sg;function I5(){return sg||(sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,b){for(var w=this._hash.words,_=w[0],g=w[1],p=w[2],y=w[3],C=w[4],E=w[5],A=w[6],x=w[7],S=_.high,k=_.low,N=g.high,I=g.low,T=p.high,P=p.low,O=y.high,M=y.low,H=C.high,U=C.low,me=E.high,ye=E.low,F=A.high,W=A.low,Z=x.high,K=x.low,De=S,xe=k,pt=N,we=I,xr=T,ui=P,Jn=O,Hr=M,$=H,L=U,z=me,j=ye,X=F,J=W,ee=Z,Q=K,G=0;G<80;G++){var q,te,le=h[G];if(G<16)te=le.high=m[b+G*2]|0,q=le.low=m[b+G*2+1]|0;else{var ae=h[G-15],fe=ae.high,ke=ae.low,Ge=(fe>>>1|ke<<31)^(fe>>>8|ke<<24)^fe>>>7,Me=(ke>>>1|fe<<31)^(ke>>>8|fe<<24)^(ke>>>7|fe<<25),mt=h[G-2],$t=mt.high,tr=mt.low,Gl=($t>>>19|tr<<13)^($t<<3|tr>>>29)^$t>>>6,gn=(tr>>>19|$t<<13)^(tr<<3|$t>>>29)^(tr>>>6|$t<<26),ha=h[G-7],hi=ha.high,ir=ha.low,fa=h[G-16],N4=fa.high,im=fa.low;q=Me+ir,te=Ge+hi+(q>>>0>>0?1:0),q=q+gn,te=te+Gl+(q>>>0>>0?1:0),q=q+im,te=te+N4+(q>>>0>>0?1:0),le.high=te,le.low=q}var R4=$&z^~$&X,rm=L&j^~L&J,I4=De&pt^De&xr^pt&xr,$4=xe&we^xe&ui^we&ui,P4=(De>>>28|xe<<4)^(De<<30|xe>>>2)^(De<<25|xe>>>7),nm=(xe>>>28|De<<4)^(xe<<30|De>>>2)^(xe<<25|De>>>7),D4=($>>>14|L<<18)^($>>>18|L<<14)^($<<23|L>>>9),L4=(L>>>14|$<<18)^(L>>>18|$<<14)^(L<<23|$>>>9),sm=u[G],B4=sm.high,om=sm.low,Fi=Q+L4,vn=ee+D4+(Fi>>>0>>0?1:0),Fi=Fi+rm,vn=vn+R4+(Fi>>>0>>0?1:0),Fi=Fi+om,vn=vn+B4+(Fi>>>0>>0?1:0),Fi=Fi+q,vn=vn+te+(Fi>>>0>>0?1:0),am=nm+$4,O4=P4+I4+(am>>>0>>0?1:0);ee=X,Q=J,X=z,J=j,z=$,j=L,L=Hr+Fi|0,$=Jn+vn+(L>>>0
>>0?1:0)|0,Jn=xr,Hr=ui,xr=pt,ui=we,pt=De,we=xe,xe=Fi+am|0,De=vn+O4+(xe>>>0>>0?1:0)|0}k=_.low=k+xe,_.high=S+De+(k>>>0>>0?1:0),I=g.low=I+we,g.high=N+pt+(I>>>0>>0?1:0),P=p.low=P+ui,p.high=T+xr+(P>>>0>>0?1:0),M=y.low=M+Hr,y.high=O+Jn+(M>>>0
>>0?1:0),U=C.low=U+L,C.high=H+$+(U>>>0>>0?1:0),ye=E.low=ye+j,E.high=me+z+(ye>>>0>>0?1:0),W=A.low=W+J,A.high=F+X+(W>>>0>>0?1:0),K=x.low=K+Q,x.high=Z+ee+(K>>>0>>0?1:0)},_doFinalize:function(){var m=this._data,b=m.words,w=this._nDataBytes*8,_=m.sigBytes*8;b[_>>>5]|=128<<24-_%32,b[(_+128>>>10<<5)+30]=Math.floor(w/4294967296),b[(_+128>>>10<<5)+31]=w,m.sigBytes=b.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(Uu)),Uu.exports}var Ku={exports:{}},og;function $C(){return og||(og=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru(),I5())})(Te,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(Ku)),Ku.exports}var Wu={exports:{}},ag;function PC(){return ag||(ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var w=1,_=0,g=0;g<24;g++){u[w+5*_]=(g+1)*(g+2)/2%64;var p=_%5,y=(2*w+3*_)%5;w=p,_=y}for(var w=0;w<5;w++)for(var _=0;_<5;_++)h[w+5*_]=_+(2*w+3*_)%5*5;for(var C=1,E=0;E<24;E++){for(var A=0,x=0,S=0;S<7;S++){if(C&1){var k=(1<>>24)&16711935|(C<<24|C>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var A=g[y];A.high^=E,A.low^=C}for(var x=0;x<24;x++){for(var S=0;S<5;S++){for(var k=0,N=0,I=0;I<5;I++){var A=g[S+5*I];k^=A.high,N^=A.low}var T=m[S];T.high=k,T.low=N}for(var S=0;S<5;S++)for(var P=m[(S+4)%5],O=m[(S+1)%5],M=O.high,H=O.low,k=P.high^(M<<1|H>>>31),N=P.low^(H<<1|M>>>31),I=0;I<5;I++){var A=g[S+5*I];A.high^=k,A.low^=N}for(var U=1;U<25;U++){var k,N,A=g[U],me=A.high,ye=A.low,F=u[U];F<32?(k=me<>>32-F,N=ye<>>32-F):(k=ye<>>64-F,N=me<>>64-F);var W=m[h[U]];W.high=k,W.low=N}var Z=m[0],K=g[0];Z.high=K.high,Z.low=K.low;for(var S=0;S<5;S++)for(var I=0;I<5;I++){var U=S+5*I,A=g[U],De=m[U],xe=m[(S+1)%5+5*I],pt=m[(S+2)%5+5*I];A.high=De.high^~xe.high&pt.high,A.low=De.low^~xe.low&pt.low}var A=g[0],we=f[x];A.high^=we.high,A.low^=we.low}},_doFinalize:function(){var w=this._data,_=w.words;this._nDataBytes*8;var g=w.sigBytes*8,p=this.blockSize*32;_[g>>>5]|=1<<24-g%32,_[(r.ceil((g+1)/p)*p>>>5)-1]|=128,w.sigBytes=_.length*4,this._process();for(var y=this._state,C=this.cfg.outputLength/8,E=C/8,A=[],x=0;x>>24)&16711935|(k<<24|k>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,A.push(N),A.push(k)}return new o.init(A,C)},clone:function(){for(var w=a.clone.call(this),_=w._state=this._state.slice(0),g=0;g<25;g++)_[g]=_[g].clone();return w}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(Wu)),Wu.exports}var qu={exports:{}},lg;function DC(){return lg||(lg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){/** @preserve +}`;rk(r),B(i.head).append(``),r.addClass(a)},sk=(e,t)=>{const i=u5(e);nk(i)},U1="mdui.functions.snackbar.";let vc;const Tr=e=>{const t=new Mi,i=B(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=ul(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??p_).call(t,t);OC(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(vc=void 0,VC(U1+e.queue))}),e.queue?vc?MC(U1+e.queue,()=>{t.open=!0,vc=t}):(setTimeout(()=>{t.open=!0}),vc=t):setTimeout(()=>{t.open=!0}),t};let Df=class extends mt{render(){return ni('')}};Df.styles=ri;Df=y([oe("mdui-icon-menu")],Df);const ok=["id"],ak=Se("div",{class:"ImScrollBarThumb"},null,-1),lk=[ak],ck={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=it(!1),r=it(!1),n=it(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return zp(()=>{}),fn(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=it("0%");var d;const u=new ResizeObserver(E=>{E.forEach(A=>{const x=A.target;if(x.id==t.ContentContainerId){const V=l;var S=x.scrollHeight,C=x.scrollWidth,N=V.clientHeight,R=V.clientWidth}if(x.id==t.ContainerId){const V=a;var S=V.scrollHeight,C=V.scrollWidth,N=x.clientHeight,R=x.clientWidth}var I,O;t.Direction=="Left"||t.Direction=="Right"?(I=S,O=N):(t.Direction=="Top"||t.Direction=="Bottom")&&(I=C,O=R),I<=O?i.value=!0:i.value=!1;var F=O/I*100;if(I>O){var L=o.childNodes[0],M;t.Direction=="Left"||t.Direction=="Right"?(L.style.width="100%",L.style.height=F.toString()+"%",M=l.scrollTop/a.scrollHeight*100,L.style.top=M.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(L.style.width=F.toString()+"%",L.style.height="100%",M=l.scrollLeft/a.scrollWidth*100,L.style.left=M.toString()+"%"),c.value=M,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-L.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-L.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,m,b=!0,v,_,w;function p(){function E(x){b||(x.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?v=x.clientY-f+m:(t.Direction=="Top"||t.Direction=="Bottom")&&(v=x.clientX-f+m),v>=d&&(v=d),v<=0&&(v=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=v+"px",_=v/o.offsetHeight,w=a.scrollHeight*_,l.scrollTop=w):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=v+"px",_=v/o.offsetWidth,w=a.scrollWidth*_,l.scrollLeft=w))}function A(x){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",E),b=!0}document.addEventListener("mouseup",A,{once:!0}),document.addEventListener("mousemove",E)}h.addEventListener("mousedown",function(E){t.Direction=="Left"?(f=E.clientY,m=this.offsetTop):t.Direction=="Right"?(f=E.clientY,m=this.offsetTop):t.Direction=="Top"?(f=E.clientX,m=this.offsetLeft):t.Direction=="Bottom"&&(f=E.clientX,m=this.offsetLeft),b=!1,p()});var g=null;function k(E){var A;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(A=l.scrollTop/a.scrollHeight*100,h.style.top=A.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(A=l.scrollLeft/a.scrollWidth*100,h.style.left=A.toString()+"%"),b&&(clearTimeout(g),g=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",k)}),(o,a)=>(Je(),ht("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},lk,40,ok))}},dk=["id"],uk=["name"],Ca={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=it({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(Je(),ht("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:Os(i.value)},[t.icon?(Je(),ht("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,uk)):Nt("",!0),Se("div",{class:"cardContent",style:Os({color:t.TextColor,"z-index":5})},[C2(r.$slots,"default")],4)],12,dk))}};let Bf=class extends mt{render(){return ni('')}};Bf.styles=ri;Bf=y([oe("mdui-icon-autorenew--rounded")],Bf);let Lf=class extends mt{render(){return ni('')}};Lf.styles=ri;Lf=y([oe("mdui-icon-do-not-disturb-alt--rounded")],Lf);let Of=class extends mt{render(){return ni('')}};Of.styles=ri;Of=y([oe("mdui-icon-explore")],Of);let Mf=class extends mt{render(){return ni('')}};Mf.styles=ri;Mf=y([oe("mdui-icon-done--rounded")],Mf);var hk=Object.defineProperty,f5=e=>{throw TypeError(e)},fk=(e,t,i)=>t in e?hk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ql=(e,t,i)=>fk(e,typeof t!="symbol"?t+"":t,i),p5=(e,t,i)=>t.has(e)||f5("Cannot "+i),gi=(e,t,i)=>(p5(e,t,"read from private field"),i?i.call(e):t.get(e)),$u=(e,t,i)=>t.has(e)?f5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),yr=(e,t,i,r)=>(p5(e,t,"write to private field"),t.set(e,i),i),os,ka,At;const m5="3.7.7",pk=m5,aa=typeof Buffer=="function",K1=typeof TextDecoder=="function"?new TextDecoder:void 0,W1=typeof TextEncoder=="function"?new TextEncoder:void 0,mk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Aa=Array.prototype.slice.call(mk),yc=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(Aa),gk=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Qt=String.fromCharCode.bind(String),j1=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),g5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),v5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y5=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=Aa[t>>18&63]+Aa[t>>12&63]+Aa[t>>6&63]+Aa[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},F0=typeof btoa=="function"?e=>btoa(e):aa?e=>Buffer.from(e,"binary").toString("base64"):y5,Vf=aa?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?g5(Vf(e)):Vf(e),vk=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Qt(192|t>>>6)+Qt(128|t&63):Qt(224|t>>>12&15)+Qt(128|t>>>6&63)+Qt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Qt(240|t>>>18&7)+Qt(128|t>>>12&63)+Qt(128|t>>>6&63)+Qt(128|t&63)}},yk=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b5=e=>e.replace(yk,vk),q1=aa?e=>Buffer.from(e,"utf8").toString("base64"):W1?e=>Vf(W1.encode(e)):e=>F0(b5(e)),$o=(e,t=!1)=>t?g5(q1(e)):q1(e),Y1=e=>$o(e,!0),bk=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,wk=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Qt((i>>>10)+55296)+Qt((i&1023)+56320);case 3:return Qt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Qt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w5=e=>e.replace(bk,wk),_5=e=>{if(e=e.replace(/\s+/g,""),!gk.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Qt(t>>16&255,t>>8&255):Qt(t>>16&255,t>>8&255,t&255);return i},z0=typeof atob=="function"?e=>atob(v5(e)):aa?e=>Buffer.from(e,"base64").toString("binary"):_5,C5=aa?e=>j1(Buffer.from(e,"base64")):e=>j1(z0(e).split("").map(t=>t.charCodeAt(0))),k5=e=>C5(A5(e)),_k=aa?e=>Buffer.from(e,"base64").toString("utf8"):K1?e=>K1.decode(C5(e)):e=>w5(z0(e)),A5=e=>v5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ff=e=>_k(A5(e)),Ck=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},E5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),x5=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,E5(i));e("fromBase64",function(){return Ff(this)}),e("toBase64",function(t){return $o(this,t)}),e("toBase64URI",function(){return $o(this,!0)}),e("toBase64URL",function(){return $o(this,!0)}),e("toUint8Array",function(){return k5(this)})},S5=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,E5(i));e("toBase64",function(t){return Mc(this,t)}),e("toBase64URI",function(){return Mc(this,!0)}),e("toBase64URL",function(){return Mc(this,!0)})},kk=()=>{x5(),S5()},gr={version:m5,VERSION:pk,atob:z0,atobPolyfill:_5,btoa:F0,btoaPolyfill:y5,fromBase64:Ff,toBase64:$o,encode:$o,encodeURI:Y1,encodeURL:Y1,utob:b5,btou:w5,decode:Ff,isValid:Ck,fromUint8Array:Mc,toUint8Array:k5,extendString:x5,extendUint8Array:S5,extendBuiltins:kk};var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function N5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ak(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var T5={exports:{}};function Ek(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pu={exports:{}};const xk={},Sk=Object.freeze(Object.defineProperty({__proto__:null,default:xk},Symbol.toStringTag,{value:"Module"})),Nk=Ak(Sk);var X1;function De(){return X1||(X1=1,function(e,t){(function(i,r){e.exports=r()})(Te,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Te<"u"&&Te.crypto&&(s=Te.crypto),!s&&typeof Ek=="function")try{s=Nk}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(p){var g;return w.prototype=p,g=new w,w.prototype=null,g}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(w){var p=a(this);return w&&p.mixIn(w),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var p in w)w.hasOwnProperty(p)&&(this[p]=w[p]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(w,p){w=this.words=w||[],p!=n?this.sigBytes=p:this.sigBytes=w.length*4},toString:function(w){return(w||f).stringify(this)},concat:function(w){var p=this.words,g=w.words,k=this.sigBytes,E=w.sigBytes;if(this.clamp(),k%4)for(var A=0;A>>2]>>>24-A%4*8&255;p[k+A>>>2]|=x<<24-(k+A)%4*8}else for(var S=0;S>>2]=g[S>>>2];return this.sigBytes+=E,this},clamp:function(){var w=this.words,p=this.sigBytes;w[p>>>2]&=4294967295<<32-p%4*8,w.length=r.ceil(p/4)},clone:function(){var w=d.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var p=[],g=0;g>>2]>>>24-E%4*8&255;k.push((A>>>4).toString(16)),k.push((A&15).toString(16))}return k.join("")},parse:function(w){for(var p=w.length,g=[],k=0;k>>3]|=parseInt(w.substr(k,2),16)<<24-k%8*4;return new u.init(g,p/2)}},m=h.Latin1={stringify:function(w){for(var p=w.words,g=w.sigBytes,k=[],E=0;E>>2]>>>24-E%4*8&255;k.push(String.fromCharCode(A))}return k.join("")},parse:function(w){for(var p=w.length,g=[],k=0;k>>2]|=(w.charCodeAt(k)&255)<<24-k%4*8;return new u.init(g,p)}},b=h.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},v=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=b.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var p,g=this._data,k=g.words,E=g.sigBytes,A=this.blockSize,x=A*4,S=E/x;w?S=r.ceil(S):S=r.max((S|0)-this._minBufferSize,0);var C=S*A,N=r.min(C*4,E);if(C){for(var R=0;R>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(Bu)),Bu.exports}var Lu={exports:{}},Q1;function Rk(){return Q1||(Q1=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(Lu)),Lu.exports}var Ou={exports:{}},J1;function io(){return J1||(J1=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,v=c[f+2>>>2]>>>24-(f+2)%4*8&255,_=m<<16|b<<8|v,w=0;w<4&&f+w*.75>>6*(3-w)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,v=m|b;u[h>>>2]|=v<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(Ou)),Ou.exports}var Mu={exports:{}},eg;function Ik(){return eg||(eg=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],m=0;m>>2]>>>24-m%4*8&255,v=d[m+1>>>2]>>>24-(m+1)%4*8&255,_=d[m+2>>>2]>>>24-(m+2)%4*8&255,w=b<<16|v<<8|_,p=0;p<4&&m+p*.75>>6*(3-p)&63));var g=h.charAt(64);if(g)for(;f.length%4;)f.push(g);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,v=m|b;u[h>>>2]|=v<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(Mu)),Mu.exports}var Vu={exports:{}},tg;function ro(){return tg||(tg=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,v){for(var _=0;_<16;_++){var w=v+_,p=b[w];b[w]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var g=this._hash.words,k=b[v+0],E=b[v+1],A=b[v+2],x=b[v+3],S=b[v+4],C=b[v+5],N=b[v+6],R=b[v+7],I=b[v+8],O=b[v+9],F=b[v+10],L=b[v+11],M=b[v+12],V=b[v+13],ee=b[v+14],ae=b[v+15],z=g[0],K=g[1],Z=g[2],W=g[3];z=u(z,K,Z,W,k,7,c[0]),W=u(W,z,K,Z,E,12,c[1]),Z=u(Z,W,z,K,A,17,c[2]),K=u(K,Z,W,z,x,22,c[3]),z=u(z,K,Z,W,S,7,c[4]),W=u(W,z,K,Z,C,12,c[5]),Z=u(Z,W,z,K,N,17,c[6]),K=u(K,Z,W,z,R,22,c[7]),z=u(z,K,Z,W,I,7,c[8]),W=u(W,z,K,Z,O,12,c[9]),Z=u(Z,W,z,K,F,17,c[10]),K=u(K,Z,W,z,L,22,c[11]),z=u(z,K,Z,W,M,7,c[12]),W=u(W,z,K,Z,V,12,c[13]),Z=u(Z,W,z,K,ee,17,c[14]),K=u(K,Z,W,z,ae,22,c[15]),z=h(z,K,Z,W,E,5,c[16]),W=h(W,z,K,Z,N,9,c[17]),Z=h(Z,W,z,K,L,14,c[18]),K=h(K,Z,W,z,k,20,c[19]),z=h(z,K,Z,W,C,5,c[20]),W=h(W,z,K,Z,F,9,c[21]),Z=h(Z,W,z,K,ae,14,c[22]),K=h(K,Z,W,z,S,20,c[23]),z=h(z,K,Z,W,O,5,c[24]),W=h(W,z,K,Z,ee,9,c[25]),Z=h(Z,W,z,K,x,14,c[26]),K=h(K,Z,W,z,I,20,c[27]),z=h(z,K,Z,W,V,5,c[28]),W=h(W,z,K,Z,A,9,c[29]),Z=h(Z,W,z,K,R,14,c[30]),K=h(K,Z,W,z,M,20,c[31]),z=f(z,K,Z,W,C,4,c[32]),W=f(W,z,K,Z,I,11,c[33]),Z=f(Z,W,z,K,L,16,c[34]),K=f(K,Z,W,z,ee,23,c[35]),z=f(z,K,Z,W,E,4,c[36]),W=f(W,z,K,Z,S,11,c[37]),Z=f(Z,W,z,K,R,16,c[38]),K=f(K,Z,W,z,F,23,c[39]),z=f(z,K,Z,W,V,4,c[40]),W=f(W,z,K,Z,k,11,c[41]),Z=f(Z,W,z,K,x,16,c[42]),K=f(K,Z,W,z,N,23,c[43]),z=f(z,K,Z,W,O,4,c[44]),W=f(W,z,K,Z,M,11,c[45]),Z=f(Z,W,z,K,ae,16,c[46]),K=f(K,Z,W,z,A,23,c[47]),z=m(z,K,Z,W,k,6,c[48]),W=m(W,z,K,Z,R,10,c[49]),Z=m(Z,W,z,K,ee,15,c[50]),K=m(K,Z,W,z,C,21,c[51]),z=m(z,K,Z,W,M,6,c[52]),W=m(W,z,K,Z,x,10,c[53]),Z=m(Z,W,z,K,F,15,c[54]),K=m(K,Z,W,z,E,21,c[55]),z=m(z,K,Z,W,I,6,c[56]),W=m(W,z,K,Z,ae,10,c[57]),Z=m(Z,W,z,K,N,15,c[58]),K=m(K,Z,W,z,V,21,c[59]),z=m(z,K,Z,W,S,6,c[60]),W=m(W,z,K,Z,L,10,c[61]),Z=m(Z,W,z,K,A,15,c[62]),K=m(K,Z,W,z,O,21,c[63]),g[0]=g[0]+z|0,g[1]=g[1]+K|0,g[2]=g[2]+Z|0,g[3]=g[3]+W|0},_doFinalize:function(){var b=this._data,v=b.words,_=this._nDataBytes*8,w=b.sigBytes*8;v[w>>>5]|=128<<24-w%32;var p=r.floor(_/4294967296),g=_;v[(w+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(w+64>>>9<<4)+14]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,b.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,E=k.words,A=0;A<4;A++){var x=E[A];E[A]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return k},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,v,_,w,p,g,k){var E=b+(v&_|~v&w)+p+k;return(E<>>32-g)+v}function h(b,v,_,w,p,g,k){var E=b+(v&w|_&~w)+p+k;return(E<>>32-g)+v}function f(b,v,_,w,p,g,k){var E=b+(v^_^w)+p+k;return(E<>>32-g)+v}function m(b,v,_,w,p,g,k){var E=b+(_^(v|~w))+p+k;return(E<>>32-g)+v}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(Vu)),Vu.exports}var Fu={exports:{}},ig;function R5(){return ig||(ig=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],m=h[1],b=h[2],v=h[3],_=h[4],w=0;w<80;w++){if(w<16)l[w]=d[u+w]|0;else{var p=l[w-3]^l[w-8]^l[w-14]^l[w-16];l[w]=p<<1|p>>>31}var g=(f<<5|f>>>27)+_+l[w];w<20?g+=(m&b|~m&v)+1518500249:w<40?g+=(m^b^v)+1859775393:w<60?g+=(m&b|m&v|b&v)-1894007588:g+=(m^b^v)-899497514,_=v,v=b,b=m<<30|m>>>2,m=f,f=g}h[0]=h[0]+f|0,h[1]=h[1]+m|0,h[2]=h[2]+b|0,h[3]=h[3]+v|0,h[4]=h[4]+_|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(Fu)),Fu.exports}var zu={exports:{}},rg;function H0(){return rg||(rg=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(_){for(var w=r.sqrt(_),p=2;p<=w;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var b=2,v=0;v<64;)f(b)&&(v<8&&(c[v]=m(r.pow(b,1/2))),d[v]=m(r.pow(b,1/3)),v++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,m){for(var b=this._hash.words,v=b[0],_=b[1],w=b[2],p=b[3],g=b[4],k=b[5],E=b[6],A=b[7],x=0;x<64;x++){if(x<16)u[x]=f[m+x]|0;else{var S=u[x-15],C=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,N=u[x-2],R=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;u[x]=C+u[x-7]+R+u[x-16]}var I=g&k^~g&E,O=v&_^v&w^_&w,F=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),L=(g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25),M=A+L+I+d[x]+u[x],V=F+O;A=E,E=k,k=g,g=p+M|0,p=w,w=_,_=v,v=M+V|0}b[0]=b[0]+v|0,b[1]=b[1]+_|0,b[2]=b[2]+w|0,b[3]=b[3]+p|0,b[4]=b[4]+g|0,b[5]=b[5]+k|0,b[6]=b[6]+E|0,b[7]=b[7]+A|0},_doFinalize:function(){var f=this._data,m=f.words,b=this._nDataBytes*8,v=f.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=r.floor(b/4294967296),m[(v+64>>>9<<4)+15]=b,f.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(zu)),zu.exports}var Hu={exports:{}},ng;function $k(){return ng||(ng=1,function(e,t){(function(i,r,n){e.exports=r(De(),H0())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(Hu)),Hu.exports}var Uu={exports:{}},sg;function I5(){return sg||(sg=1,function(e,t){(function(i,r,n){e.exports=r(De(),ru())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,b){for(var v=this._hash.words,_=v[0],w=v[1],p=v[2],g=v[3],k=v[4],E=v[5],A=v[6],x=v[7],S=_.high,C=_.low,N=w.high,R=w.low,I=p.high,O=p.low,F=g.high,L=g.low,M=k.high,V=k.low,ee=E.high,ae=E.low,z=A.high,K=A.low,Z=x.high,W=x.low,Be=S,xe=C,vt=N,we=R,Nr=I,pi=O,es=F,Ur=L,$=M,D=V,U=ee,q=ae,X=z,J=K,te=Z,Q=W,G=0;G<80;G++){var j,ie,de=h[G];if(G<16)ie=de.high=m[b+G*2]|0,j=de.low=m[b+G*2+1]|0;else{var ce=h[G-15],me=ce.high,Ce=ce.low,Qe=(me>>>1|Ce<<31)^(me>>>8|Ce<<24)^me>>>7,Ve=(Ce>>>1|me<<31)^(Ce>>>8|me<<24)^(Ce>>>7|me<<25),yt=h[G-2],Lt=yt.high,rr=yt.low,Ql=(Lt>>>19|rr<<13)^(Lt<<3|rr>>>29)^Lt>>>6,vn=(rr>>>19|Lt<<13)^(rr<<3|Lt>>>29)^(rr>>>6|Lt<<26),ha=h[G-7],mi=ha.high,nr=ha.low,fa=h[G-16],R4=fa.high,im=fa.low;j=Ve+nr,ie=Qe+mi+(j>>>0>>0?1:0),j=j+vn,ie=ie+Ql+(j>>>0>>0?1:0),j=j+im,ie=ie+R4+(j>>>0>>0?1:0),de.high=ie,de.low=j}var I4=$&U^~$&X,rm=D&q^~D&J,$4=Be&vt^Be&Nr^vt&Nr,P4=xe&we^xe&pi^we&pi,D4=(Be>>>28|xe<<4)^(Be<<30|xe>>>2)^(Be<<25|xe>>>7),nm=(xe>>>28|Be<<4)^(xe<<30|Be>>>2)^(xe<<25|Be>>>7),B4=($>>>14|D<<18)^($>>>18|D<<14)^($<<23|D>>>9),L4=(D>>>14|$<<18)^(D>>>18|$<<14)^(D<<23|$>>>9),sm=u[G],O4=sm.high,om=sm.low,Hi=Q+L4,yn=te+B4+(Hi>>>0>>0?1:0),Hi=Hi+rm,yn=yn+I4+(Hi>>>0>>0?1:0),Hi=Hi+om,yn=yn+O4+(Hi>>>0>>0?1:0),Hi=Hi+j,yn=yn+ie+(Hi>>>0>>0?1:0),am=nm+P4,M4=D4+$4+(am>>>0>>0?1:0);te=X,Q=J,X=U,J=q,U=$,q=D,D=Ur+Hi|0,$=es+yn+(D>>>0>>0?1:0)|0,es=Nr,Ur=pi,Nr=vt,pi=we,vt=Be,we=xe,xe=Hi+am|0,Be=yn+M4+(xe>>>0>>0?1:0)|0}C=_.low=C+xe,_.high=S+Be+(C>>>0>>0?1:0),R=w.low=R+we,w.high=N+vt+(R>>>0>>0?1:0),O=p.low=O+pi,p.high=I+Nr+(O>>>0>>0?1:0),L=g.low=L+Ur,g.high=F+es+(L>>>0>>0?1:0),V=k.low=V+D,k.high=M+$+(V>>>0>>0?1:0),ae=E.low=ae+q,E.high=ee+U+(ae>>>0>>0?1:0),K=A.low=K+J,A.high=z+X+(K>>>0>>0?1:0),W=x.low=W+Q,x.high=Z+te+(W>>>0>>0?1:0)},_doFinalize:function(){var m=this._data,b=m.words,v=this._nDataBytes*8,_=m.sigBytes*8;b[_>>>5]|=128<<24-_%32,b[(_+128>>>10<<5)+30]=Math.floor(v/4294967296),b[(_+128>>>10<<5)+31]=v,m.sigBytes=b.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(Uu)),Uu.exports}var Ku={exports:{}},og;function Pk(){return og||(og=1,function(e,t){(function(i,r,n){e.exports=r(De(),ru(),I5())})(Te,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(Ku)),Ku.exports}var Wu={exports:{}},ag;function Dk(){return ag||(ag=1,function(e,t){(function(i,r,n){e.exports=r(De(),ru())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var v=1,_=0,w=0;w<24;w++){u[v+5*_]=(w+1)*(w+2)/2%64;var p=_%5,g=(2*v+3*_)%5;v=p,_=g}for(var v=0;v<5;v++)for(var _=0;_<5;_++)h[v+5*_]=_+(2*v+3*_)%5*5;for(var k=1,E=0;E<24;E++){for(var A=0,x=0,S=0;S<7;S++){if(k&1){var C=(1<>>24)&16711935|(k<<24|k>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var A=w[g];A.high^=E,A.low^=k}for(var x=0;x<24;x++){for(var S=0;S<5;S++){for(var C=0,N=0,R=0;R<5;R++){var A=w[S+5*R];C^=A.high,N^=A.low}var I=m[S];I.high=C,I.low=N}for(var S=0;S<5;S++)for(var O=m[(S+4)%5],F=m[(S+1)%5],L=F.high,M=F.low,C=O.high^(L<<1|M>>>31),N=O.low^(M<<1|L>>>31),R=0;R<5;R++){var A=w[S+5*R];A.high^=C,A.low^=N}for(var V=1;V<25;V++){var C,N,A=w[V],ee=A.high,ae=A.low,z=u[V];z<32?(C=ee<>>32-z,N=ae<>>32-z):(C=ae<>>64-z,N=ee<>>64-z);var K=m[h[V]];K.high=C,K.low=N}var Z=m[0],W=w[0];Z.high=W.high,Z.low=W.low;for(var S=0;S<5;S++)for(var R=0;R<5;R++){var V=S+5*R,A=w[V],Be=m[V],xe=m[(S+1)%5+5*R],vt=m[(S+2)%5+5*R];A.high=Be.high^~xe.high&vt.high,A.low=Be.low^~xe.low&vt.low}var A=w[0],we=f[x];A.high^=we.high,A.low^=we.low}},_doFinalize:function(){var v=this._data,_=v.words;this._nDataBytes*8;var w=v.sigBytes*8,p=this.blockSize*32;_[w>>>5]|=1<<24-w%32,_[(r.ceil((w+1)/p)*p>>>5)-1]|=128,v.sigBytes=_.length*4,this._process();for(var g=this._state,k=this.cfg.outputLength/8,E=k/8,A=[],x=0;x>>24)&16711935|(C<<24|C>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,A.push(N),A.push(C)}return new o.init(A,k)},clone:function(){for(var v=a.clone.call(this),_=v._state=this._state.slice(0),w=0;w<25;w++)_[w]=_[w].clone();return v}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(Wu)),Wu.exports}var ju={exports:{}},lg;function Bk(){return lg||(lg=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -529,13 +529,15 @@ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),m=o.create([1352829926,1548603684,1836072691,2053994217,0]),b=l.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,A){for(var x=0;x<16;x++){var S=A+x,k=E[S];E[S]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var N=this._hash.words,I=f.words,T=m.words,P=c.words,O=d.words,M=u.words,H=h.words,U,me,ye,F,W,Z,K,De,xe,pt;Z=U=N[0],K=me=N[1],De=ye=N[2],xe=F=N[3],pt=W=N[4];for(var we,x=0;x<80;x+=1)we=U+E[A+P[x]]|0,x<16?we+=w(me,ye,F)+I[0]:x<32?we+=_(me,ye,F)+I[1]:x<48?we+=g(me,ye,F)+I[2]:x<64?we+=p(me,ye,F)+I[3]:we+=y(me,ye,F)+I[4],we=we|0,we=C(we,M[x]),we=we+W|0,U=W,W=F,F=C(ye,10),ye=me,me=we,we=Z+E[A+O[x]]|0,x<16?we+=y(K,De,xe)+T[0]:x<32?we+=p(K,De,xe)+T[1]:x<48?we+=g(K,De,xe)+T[2]:x<64?we+=_(K,De,xe)+T[3]:we+=w(K,De,xe)+T[4],we=we|0,we=C(we,H[x]),we=we+pt|0,Z=pt,pt=xe,xe=C(De,10),De=K,K=we;we=N[1]+ye+xe|0,N[1]=N[2]+F+pt|0,N[2]=N[3]+W+Z|0,N[3]=N[4]+U+K|0,N[4]=N[0]+me+De|0,N[0]=we},_doFinalize:function(){var E=this._data,A=E.words,x=this._nDataBytes*8,S=E.sigBytes*8;A[S>>>5]|=128<<24-S%32,A[(S+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var k=this._hash,N=k.words,I=0;I<5;I++){var T=N[I];N[I]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return k},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function w(E,A,x){return E^A^x}function _(E,A,x){return E&A|~E&x}function g(E,A,x){return(E|~A)^x}function p(E,A,x){return E&x|A&~x}function y(E,A,x){return E^(A|~x)}function C(E,A){return E<>>32-A}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(qu)),qu.exports}var ju={exports:{}},cg;function U0(){return cg||(cg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),m=this._iKey=d.clone(),b=f.words,w=m.words,_=0;_>>2]&255;k.sigBytes-=N}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:w,padding:g}),reset:function(){var k;f.reset.call(this);var N=this.cfg,I=N.iv,T=N.mode;this._xformMode==this._ENC_XFORM_MODE?k=T.createEncryptor:(k=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,I&&I.words):(this._mode=k.call(T,this,I&&I.words),this._mode.__creator=k)},_doProcessBlock:function(k,N){this._mode.processBlock(k,N)},_doFinalize:function(){var k,N=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(N.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),N.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),y=n.format={},C=y.OpenSSL={stringify:function(k){var N,I=k.ciphertext,T=k.salt;return T?N=a.create([1398893684,1701076831]).concat(T).concat(I):N=I,N.toString(d)},parse:function(k){var N,I=d.parse(k),T=I.words;return T[0]==1398893684&&T[1]==1701076831&&(N=a.create(T.slice(2,4)),T.splice(0,4),I.sigBytes-=16),p.create({ciphertext:I,salt:N})}},E=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(k,N,I,T){T=this.cfg.extend(T);var P=k.createEncryptor(I,T),O=P.finalize(N),M=P.cfg;return p.create({ciphertext:O,key:I,iv:M.iv,algorithm:k,mode:M.mode,padding:M.padding,blockSize:k.blockSize,formatter:T.format})},decrypt:function(k,N,I,T){T=this.cfg.extend(T),N=this._parse(N,T.format);var P=k.createDecryptor(I,T).finalize(N.ciphertext);return P},_parse:function(k,N){return typeof k=="string"?N.parse(k,this):k}}),A=n.kdf={},x=A.OpenSSL={execute:function(k,N,I,T,P){if(T||(T=a.random(64/8)),P)var O=h.create({keySize:N+I,hasher:P}).compute(k,T);else var O=h.create({keySize:N+I}).compute(k,T);var M=a.create(O.words.slice(N),I*4);return O.sigBytes=N*4,p.create({key:O,iv:M,salt:T})}},S=s.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:x}),encrypt:function(k,N,I,T){T=this.cfg.extend(T);var P=T.kdf.execute(I,k.keySize,k.ivSize,T.salt,T.hasher);T.iv=P.iv;var O=E.encrypt.call(this,k,N,P.key,T);return O.mixIn(P),O},decrypt:function(k,N,I,T){T=this.cfg.extend(T),N=this._parse(N,T.format);var P=T.kdf.execute(I,k.keySize,k.ivSize,N.salt,T.hasher);T.iv=P.iv;var O=E.decrypt.call(this,k,N,P.key,T);return O}})}()})}(Zu)),Zu.exports}var Gu={exports:{}},fg;function BC(){return fg||(fg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>>24)&16711935|(C<<24|C>>>8)&4278255360}var N=this._hash.words,R=f.words,I=m.words,O=c.words,F=d.words,L=u.words,M=h.words,V,ee,ae,z,K,Z,W,Be,xe,vt;Z=V=N[0],W=ee=N[1],Be=ae=N[2],xe=z=N[3],vt=K=N[4];for(var we,x=0;x<80;x+=1)we=V+E[A+O[x]]|0,x<16?we+=v(ee,ae,z)+R[0]:x<32?we+=_(ee,ae,z)+R[1]:x<48?we+=w(ee,ae,z)+R[2]:x<64?we+=p(ee,ae,z)+R[3]:we+=g(ee,ae,z)+R[4],we=we|0,we=k(we,L[x]),we=we+K|0,V=K,K=z,z=k(ae,10),ae=ee,ee=we,we=Z+E[A+F[x]]|0,x<16?we+=g(W,Be,xe)+I[0]:x<32?we+=p(W,Be,xe)+I[1]:x<48?we+=w(W,Be,xe)+I[2]:x<64?we+=_(W,Be,xe)+I[3]:we+=v(W,Be,xe)+I[4],we=we|0,we=k(we,M[x]),we=we+vt|0,Z=vt,vt=xe,xe=k(Be,10),Be=W,W=we;we=N[1]+ae+xe|0,N[1]=N[2]+z+vt|0,N[2]=N[3]+K+Z|0,N[3]=N[4]+V+W|0,N[4]=N[0]+ee+Be|0,N[0]=we},_doFinalize:function(){var E=this._data,A=E.words,x=this._nDataBytes*8,S=E.sigBytes*8;A[S>>>5]|=128<<24-S%32,A[(S+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var C=this._hash,N=C.words,R=0;R<5;R++){var I=N[R];N[R]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return C},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function v(E,A,x){return E^A^x}function _(E,A,x){return E&A|~E&x}function w(E,A,x){return(E|~A)^x}function p(E,A,x){return E&x|A&~x}function g(E,A,x){return E^(A|~x)}function k(E,A){return E<>>32-A}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(ju)),ju.exports}var qu={exports:{}},cg;function U0(){return cg||(cg=1,function(e,t){(function(i,r){e.exports=r(De())})(Te,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),m=this._iKey=d.clone(),b=f.words,v=m.words,_=0;_>>2]&255;C.sigBytes-=N}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:v,padding:w}),reset:function(){var C;f.reset.call(this);var N=this.cfg,R=N.iv,I=N.mode;this._xformMode==this._ENC_XFORM_MODE?C=I.createEncryptor:(C=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,R&&R.words):(this._mode=C.call(I,this,R&&R.words),this._mode.__creator=C)},_doProcessBlock:function(C,N){this._mode.processBlock(C,N)},_doFinalize:function(){var C,N=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(N.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),N.unpad(C)),C},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),g=n.format={},k=g.OpenSSL={stringify:function(C){var N,R=C.ciphertext,I=C.salt;return I?N=a.create([1398893684,1701076831]).concat(I).concat(R):N=R,N.toString(d)},parse:function(C){var N,R=d.parse(C),I=R.words;return I[0]==1398893684&&I[1]==1701076831&&(N=a.create(I.slice(2,4)),I.splice(0,4),R.sigBytes-=16),p.create({ciphertext:R,salt:N})}},E=s.SerializableCipher=o.extend({cfg:o.extend({format:k}),encrypt:function(C,N,R,I){I=this.cfg.extend(I);var O=C.createEncryptor(R,I),F=O.finalize(N),L=O.cfg;return p.create({ciphertext:F,key:R,iv:L.iv,algorithm:C,mode:L.mode,padding:L.padding,blockSize:C.blockSize,formatter:I.format})},decrypt:function(C,N,R,I){I=this.cfg.extend(I),N=this._parse(N,I.format);var O=C.createDecryptor(R,I).finalize(N.ciphertext);return O},_parse:function(C,N){return typeof C=="string"?N.parse(C,this):C}}),A=n.kdf={},x=A.OpenSSL={execute:function(C,N,R,I,O){if(I||(I=a.random(64/8)),O)var F=h.create({keySize:N+R,hasher:O}).compute(C,I);else var F=h.create({keySize:N+R}).compute(C,I);var L=a.create(F.words.slice(N),R*4);return F.sigBytes=N*4,p.create({key:F,iv:L,salt:I})}},S=s.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:x}),encrypt:function(C,N,R,I){I=this.cfg.extend(I);var O=I.kdf.execute(R,C.keySize,C.ivSize,I.salt,I.hasher);I.iv=O.iv;var F=E.encrypt.call(this,C,N,O.key,I);return F.mixIn(O),F},decrypt:function(C,N,R,I){I=this.cfg.extend(I),N=this._parse(N,I.format);var O=I.kdf.execute(R,C.keySize,C.ivSize,N.salt,I.hasher);I.iv=O.iv;var F=E.decrypt.call(this,C,N,O.key,I);return F}})}()})}(Zu)),Zu.exports}var Gu={exports:{}},fg;function Ok(){return fg||(fg=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var m=0;m>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(ih)),ih.exports}var rh={exports:{}},bg;function HC(){return bg||(bg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(rh)),rh.exports}var nh={exports:{}},wg;function UC(){return wg||(wg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(nh)),nh.exports}var sh={exports:{}},_g;function KC(){return _g||(_g=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(sh)),sh.exports}var oh={exports:{}},kg;function WC(){return kg||(kg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(oh)),oh.exports}var ah={exports:{}},Cg;function qC(){return Cg||(Cg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(ah)),ah.exports}var lh={exports:{}},Ag;function jC(){return Ag||(Ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],m=[],b=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var C=0,E=0,y=0;y<256;y++){var A=E^E<<1^E<<2^E<<3^E<<4;A=A>>>8^A&255^99,a[C]=A,l[A]=C;var x=p[C],S=p[x],k=p[S],N=p[A]*257^A*16843008;c[C]=N<<24|N>>>8,d[C]=N<<16|N>>>16,u[C]=N<<8|N>>>24,h[C]=N;var N=k*16843009^S*65537^x*257^C*16843008;f[A]=N<<24|N>>>8,m[A]=N<<16|N>>>16,b[A]=N<<8|N>>>24,w[A]=N,C?(C=x^p[p[p[k^x]]],E^=p[p[E]]):C=E=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,C=y.words,E=y.sigBytes/4,A=this._nRounds=E+6,x=(A+1)*4,S=this._keySchedule=[],k=0;k6&&k%E==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=_[k/E|0]<<24),S[k]=S[k-E]^p);for(var N=this._invKeySchedule=[],I=0;I>>24]]^m[a[p>>>16&255]]^b[a[p>>>8&255]]^w[a[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,y){var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C,this._doCryptBlock(p,y,this._invKeySchedule,f,m,b,w,l);var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C},_doCryptBlock:function(p,y,C,E,A,x,S,k){for(var N=this._nRounds,I=p[y]^C[0],T=p[y+1]^C[1],P=p[y+2]^C[2],O=p[y+3]^C[3],M=4,H=1;H>>24]^A[T>>>16&255]^x[P>>>8&255]^S[O&255]^C[M++],me=E[T>>>24]^A[P>>>16&255]^x[O>>>8&255]^S[I&255]^C[M++],ye=E[P>>>24]^A[O>>>16&255]^x[I>>>8&255]^S[T&255]^C[M++],F=E[O>>>24]^A[I>>>16&255]^x[T>>>8&255]^S[P&255]^C[M++];I=U,T=me,P=ye,O=F}var U=(k[I>>>24]<<24|k[T>>>16&255]<<16|k[P>>>8&255]<<8|k[O&255])^C[M++],me=(k[T>>>24]<<24|k[P>>>16&255]<<16|k[O>>>8&255]<<8|k[I&255])^C[M++],ye=(k[P>>>24]<<24|k[O>>>16&255]<<16|k[I>>>8&255]<<8|k[T&255])^C[M++],F=(k[O>>>24]<<24|k[I>>>16&255]<<16|k[T>>>8&255]<<8|k[P&255])^C[M++];p[y]=U,p[y+1]=me,p[y+2]=ye,p[y+3]=F},keySize:256/32});r.AES=s._createHelper(g)}(),i.AES})}(lh)),lh.exports}var ch={exports:{}},Eg;function YC(){return Eg||(Eg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var _=this._key,g=_.words,p=[],y=0;y<56;y++){var C=l[y]-1;p[y]=g[C>>>5]>>>31-C%32&1}for(var E=this._subKeys=[],A=0;A<16;A++){for(var x=E[A]=[],S=d[A],y=0;y<24;y++)x[y/6|0]|=p[(c[y]-1+S)%28]<<31-y%6,x[4+(y/6|0)]|=p[28+(c[y+24]-1+S)%28]<<31-y%6;x[0]=x[0]<<1|x[0]>>>31;for(var y=1;y<7;y++)x[y]=x[y]>>>(y-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=E[15-y]},encryptBlock:function(_,g){this._doCryptBlock(_,g,this._subKeys)},decryptBlock:function(_,g){this._doCryptBlock(_,g,this._invSubKeys)},_doCryptBlock:function(_,g,p){this._lBlock=_[g],this._rBlock=_[g+1],m.call(this,4,252645135),m.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var C=p[y],E=this._lBlock,A=this._rBlock,x=0,S=0;S<8;S++)x|=u[S][((A^C[S])&h[S])>>>0];this._lBlock=A,this._rBlock=E^x}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,m.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),_[g]=this._lBlock,_[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,g){var p=(this._lBlock>>>_^this._rBlock)&g;this._rBlock^=p,this._lBlock^=p<<_}function b(_,g){var p=(this._rBlock>>>_^this._lBlock)&g;this._lBlock^=p,this._rBlock^=p<<_}r.DES=o._createHelper(f);var w=a.TripleDES=o.extend({_doReset:function(){var _=this._key,g=_.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=g.slice(0,2),y=g.length<4?g.slice(0,2):g.slice(2,4),C=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(y)),this._des3=f.createEncryptor(s.create(C))},encryptBlock:function(_,g){this._des1.encryptBlock(_,g),this._des2.decryptBlock(_,g),this._des3.encryptBlock(_,g)},decryptBlock:function(_,g){this._des3.decryptBlock(_,g),this._des2.encryptBlock(_,g),this._des1.decryptBlock(_,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(w)}(),i.TripleDES})}(ch)),ch.exports}var dh={exports:{}},xg;function XC(){return xg||(xg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],m=0;m<256;m++)f[m]=m;for(var m=0,b=0;m<256;m++){var w=m%h,_=u[w>>>2]>>>24-w%4*8&255;b=(b+f[m]+_)%256;var g=f[m];f[m]=f[b],f[b]=g}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,m=0;m<4;m++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-m*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(dh)),dh.exports}var uh={exports:{}},Sg;function ZC(){return Sg||(Sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],w=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)u.call(this);for(var m=0;m<8;m++)w[m]^=b[m+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;w[0]^=y,w[1]^=E,w[2]^=C,w[3]^=A,w[4]^=y,w[5]^=E,w[6]^=C,w[7]^=A;for(var m=0;m<4;m++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(uh)),uh.exports}var hh={exports:{}},Tg;function GC(){return Tg||(Tg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var w=0;w<4;w++)u.call(this);for(var w=0;w<8;w++)b[w]^=m[w+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;b[0]^=y,b[1]^=E,b[2]^=C,b[3]^=A,b[4]^=y,b[5]^=E,b[6]^=C,b[7]^=A;for(var w=0;w<4;w++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(hh)),hh.exports}var fh={exports:{}},Ng;function QC(){return Ng||(Ng=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(w,_){let g=_>>24&255,p=_>>16&255,y=_>>8&255,C=_&255,E=w.sbox[0][g]+w.sbox[1][p];return E=E^w.sbox[2][y],E=E+w.sbox[3][C],E}function h(w,_,g){let p=_,y=g,C;for(let E=0;E1;--E)p=p^w.pbox[E],y=u(w,p)^y,C=p,p=y,y=C;return C=p,p=y,y=C,y=y^w.pbox[1],p=p^w.pbox[0],{left:p,right:y}}function m(w,_,g){for(let A=0;A<4;A++){w.sbox[A]=[];for(let x=0;x<256;x++)w.sbox[A][x]=c[A][x]}let p=0;for(let A=0;A=g&&(p=0);let y=0,C=0,E=0;for(let A=0;A=0;)e[t]=0}const iA=0,$5=1,rA=2,nA=3,sA=258,K0=29,jl=256,kl=jl+1+K0,Po=30,W0=19,P5=2*kl+1,fs=15,ph=16,oA=7,q0=256,D5=16,L5=17,B5=18,zf=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Mc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),aA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),O5=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lA=512,Gr=new Array((kl+2)*2);la(Gr);const Ua=new Array(Po*2);la(Ua);const Cl=new Array(lA);la(Cl);const Al=new Array(sA-nA+1);la(Al);const j0=new Array(K0);la(j0);const bd=new Array(Po);la(bd);function mh(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let M5,V5,F5;function gh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const z5=e=>e<256?Cl[e]:Cl[256+(e>>>7)],El=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},$i=(e,t,i)=>{e.bi_valid>ph-i?(e.bi_buf|=t<>ph-e.bi_valid,e.bi_valid+=i-ph):(e.bi_buf|=t<{$i(e,i[t*2],i[t*2+1])},H5=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},cA=e=>{e.bi_valid===16?(El(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},dA=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,m,b=0;for(h=0;h<=fs;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),m=i[d*2],e.opt_len+=m*(h+f),s&&(e.static_len+=m*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},U5=(e,t,i)=>{const r=new Array(fs+1);let n=0,s,o;for(s=1;s<=fs;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=H5(r[a]++,a))}},uA=()=>{let e,t,i,r,n;const s=new Array(fs+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?El(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$g=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?$r(e,n,t):(o=Al[n],$r(e,o+jl+1,t),a=zf[o],a!==0&&(n-=j0[o],$i(e,n,a)),r--,o=z5(r),$r(e,o,i),a=Mc[o],a!==0&&(r-=bd[o],$i(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=P5,o=0;o>1;o>=1;o--)vh(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vh(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,vh(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],dA(e,t),U5(i,l,e.bl_count)},Dg=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(Dg(e,e.dyn_ltree,e.l_desc.max_code),Dg(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=W0-1;t>=3&&e.bl_tree[O5[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},fA=(e,t,i,r)=>{let n;for($i(e,t-257,5),$i(e,i-1,5),$i(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return Rg;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ig;for(i=32;i{Bg||(uA(),Bg=!0),e.l_desc=new gh(e.dyn_ltree,M5),e.d_desc=new gh(e.dyn_dtree,V5),e.bl_desc=new gh(e.bl_tree,F5),e.bi_buf=0,e.bi_valid=0,K5(e)},q5=(e,t,i,r)=>{$i(e,(iA<<1)+(r?1:0),3),W5(e),El(e,i),El(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},gA=e=>{$i(e,$5<<1,3),$r(e,q0,Gr),cA(e)},vA=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===tA&&(e.strm.data_type=pA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),o=hA(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?q5(e,t,i,r):e.strategy===eA||s===n?($i(e,($5<<1)+(r?1:0),3),Pg(e,Gr,Ua)):($i(e,(rA<<1)+(r?1:0),3),fA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Pg(e,e.dyn_ltree,e.dyn_dtree)),K5(e),r&&W5(e)},yA=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(Al[i]+jl+1)*2]++,e.dyn_dtree[z5(t)*2]++),e.sym_next===e.sym_end);var bA=mA,wA=q5,_A=vA,kA=yA,CA=gA,AA={_tr_init:bA,_tr_stored_block:wA,_tr_flush_block:_A,_tr_tally:kA,_tr_align:CA};const EA=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var xl=EA;const xA=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},SA=new Uint32Array(xA()),TA=(e,t,i,r)=>{const n=SA,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var Bt=TA,qs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},no={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:NA,_tr_stored_block:Uf,_tr_flush_block:RA,_tr_tally:Bn,_tr_align:IA}=AA,{Z_NO_FLUSH:On,Z_PARTIAL_FLUSH:$A,Z_FULL_FLUSH:PA,Z_FINISH:or,Z_BLOCK:Og,Z_OK:qt,Z_STREAM_END:Mg,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:DA,Z_BUF_ERROR:yh,Z_DEFAULT_COMPRESSION:LA,Z_FILTERED:BA,Z_HUFFMAN_ONLY:yc,Z_RLE:OA,Z_FIXED:MA,Z_DEFAULT_STRATEGY:VA,Z_UNKNOWN:FA,Z_DEFLATED:nu}=no,zA=9,HA=15,UA=8,KA=29,WA=256,Kf=WA+1+KA,qA=30,jA=19,YA=2*Kf+1,XA=15,Ie=3,In=258,Lr=In+Ie+1,ZA=32,Jo=42,Y0=57,Wf=69,qf=73,jf=91,Yf=103,ps=113,Ea=666,bi=1,ca=2,js=3,da=4,GA=3,ms=(e,t)=>(e.msg=qs[t],t),Vg=e=>e*2-(e>4?9:0),Nn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},QA=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let JA=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},qi=(e,t)=>{RA(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zi(e.strm)},ze=(e,t)=>{e.pending_buf[e.pending++]=t},ba=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Xf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=xl(e.adler,t,n,i):e.state.wrap===2&&(e.adler=Bt(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},j5=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Lr?e.strstart-(e.w_size-Lr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+In;let f=c[r+o-1],m=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==m||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],m=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},ea=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Lr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),QA(e),r+=t),e.strm.avail_in===0)break;if(i=Xf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=Ie)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=Mn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=Mn(e,e.ins_h,e.window[n+Ie-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,zi(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(Xf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Xf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===or)&&t!==On&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===or&&e.strm.avail_in===0&&r===n?1:0,Uf(e,e.block_start,r,o),e.block_start+=r,zi(e.strm)),o?js:bi)},bh=(e,t)=>{let i,r;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-Lr&&(e.match_length=j5(e,i)),e.match_length>=Ie)if(r=Bn(e,e.strstart-e.match_start,e.match_length-Ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ie){e.match_length--;do e.strstart++,e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+1]);else r=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=e.strstart{let i,r,n;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ie-1,i!==0&&e.prev_length4096)&&(e.match_length=Ie-1)),e.prev_length>=Ie&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-Ie,r=Bn(e,e.strstart-1-e.prev_match,e.prev_length-Ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ie-1,e.strstart++,r&&(qi(e,!1),e.strm.avail_out===0))return bi}else if(e.match_available){if(r=Bn(e,0,e.window[e.strstart-1]),r&&qi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return bi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Bn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=In){if(ea(e),e.lookahead<=In&&t===On)return bi;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ie&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+In;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ie?(i=Bn(e,1,e.match_length-Ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca},tE=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(ea(e),e.lookahead===0)){if(t===On)return bi;break}if(e.match_length=0,i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca};function Tr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const xa=[new Tr(0,0,0,0,Y5),new Tr(4,4,8,4,bh),new Tr(4,5,16,8,bh),new Tr(4,6,32,32,bh),new Tr(4,4,16,16,lo),new Tr(8,16,32,32,lo),new Tr(8,16,128,128,lo),new Tr(8,32,128,256,lo),new Tr(32,128,258,1024,lo),new Tr(32,258,258,4096,lo)],iE=e=>{e.window_size=2*e.w_size,Nn(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ie-1,e.match_available=0,e.ins_h=0};function rE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(YA*2),this.dyn_dtree=new Uint16Array((2*qA+1)*2),this.bl_tree=new Uint16Array((2*jA+1)*2),Nn(this.dyn_ltree),Nn(this.dyn_dtree),Nn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(XA+1),this.heap=new Uint16Array(2*Kf+1),Nn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Kf+1),Nn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Yl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Jo&&t.status!==Y0&&t.status!==Wf&&t.status!==qf&&t.status!==jf&&t.status!==Yf&&t.status!==ps&&t.status!==Ea?1:0},X5=e=>{if(Yl(e))return ms(e,Dr);e.total_in=e.total_out=0,e.data_type=FA;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Y0:t.wrap?Jo:ps,e.adler=t.wrap===2?0:1,t.last_flush=-2,NA(t),qt},Z5=e=>{const t=X5(e);return t===qt&&iE(e.state),t},nE=(e,t)=>Yl(e)||e.state.wrap!==2?Dr:(e.state.gzhead=t,qt),G5=(e,t,i,r,n,s)=>{if(!e)return Dr;let o=1;if(t===LA&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>zA||i!==nu||r<8||r>15||t<0||t>9||s<0||s>MA||r===8&&o!==1)return ms(e,Dr);r===8&&(r=9);const a=new rE;return e.state=a,a.strm=e,a.status=Jo,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<G5(e,t,nu,HA,UA,VA),oE=(e,t)=>{if(Yl(e)||t>Og||t<0)return e?ms(e,Dr):Dr;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===Ea&&t!==or)return ms(e,e.avail_out===0?yh:Dr);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(zi(e),e.avail_out===0)return i.last_flush=-1,qt}else if(e.avail_in===0&&Vg(t)<=Vg(r)&&t!==or)return ms(e,yh);if(i.status===Ea&&e.avail_in!==0)return ms(e,yh);if(i.status===Jo&&i.wrap===0&&(i.status=ps),i.status===Jo){let n=nu+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=yc||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=ZA),n+=31-n%31,ba(i,n),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1,i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Y0){if(e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead)ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Bt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Wf;else if(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,GA),i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Wf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=qf}if(i.status===qf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=jf}if(i.status===jf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n))}i.status=Yf}if(i.status===Yf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(zi(e),i.pending!==0))return i.last_flush=-1,qt;ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0}if(i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(e.avail_in!==0||i.lookahead!==0||t!==On&&i.status!==Ea){let n=i.level===0?Y5(i,t):i.strategy===yc?tE(i,t):i.strategy===OA?eE(i,t):xa[i.level].func(i,t);if((n===js||n===da)&&(i.status=Ea),n===bi||n===js)return e.avail_out===0&&(i.last_flush=-1),qt;if(n===ca&&(t===$A?IA(i):t!==Og&&(Uf(i,0,0,!1),t===PA&&(Nn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),zi(e),e.avail_out===0))return i.last_flush=-1,qt}return t!==or?qt:i.wrap<=0?Mg:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),zi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?qt:Mg)},aE=e=>{if(Yl(e))return Dr;const t=e.state.status;return e.state=null,t===ps?ms(e,DA):qt},lE=(e,t)=>{let i=t.length;if(Yl(e))return Dr;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==Jo||r.lookahead)return Dr;if(n===1&&(e.adler=xl(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(Nn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,ea(r);r.lookahead>=Ie;){let l=r.strstart,c=r.lookahead-(Ie-1);do r.ins_h=Mn(r,r.ins_h,r.window[l+Ie-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=Ie-1,ea(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ie-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,qt};var cE=sE,dE=G5,uE=Z5,hE=X5,fE=nE,pE=oE,mE=aE,gE=lE,vE="pako deflate (from Nodeca project)",Ka={deflateInit:cE,deflateInit2:dE,deflateReset:uE,deflateResetKeep:hE,deflateSetHeader:fE,deflate:pE,deflateEnd:mE,deflateSetDictionary:gE,deflateInfo:vE};const yE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var bE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)yE(i,r)&&(e[r]=i[r])}}return e},wE=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Sl[254]=Sl[254]=1;var _E=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const kE=(e,t)=>{if(t<65534&&e.subarray&&Q5)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return kE(s,n)},AE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+Sl[e[i]]>t?i:t},Tl={string2buf:_E,buf2string:CE,utf8border:AE};function EE(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var J5=EE;const e4=Object.prototype.toString,{Z_NO_FLUSH:xE,Z_SYNC_FLUSH:SE,Z_FULL_FLUSH:TE,Z_FINISH:NE,Z_OK:wd,Z_STREAM_END:RE,Z_DEFAULT_COMPRESSION:IE,Z_DEFAULT_STRATEGY:$E,Z_DEFLATED:PE}=no;function Xl(e){this.options=su.assign({level:IE,method:PE,chunkSize:16384,windowBits:15,memLevel:8,strategy:$E},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Ka.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==wd)throw new Error(qs[i]);if(t.header&&Ka.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Tl.string2buf(t.dictionary):e4.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=Ka.deflateSetDictionary(this.strm,r),i!==wd)throw new Error(qs[i]);this._dict_set=!0}}Xl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?NE:xE,typeof e=="string"?i.input=Tl.string2buf(e):e4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===SE||s===TE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=Ka.deflate(i,s),n===RE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ka.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===wd;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};Xl.prototype.onData=function(e){this.chunks.push(e)};Xl.prototype.onEnd=function(e){e===wd&&(this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function X0(e,t){const i=new Xl(t);if(i.push(e,!0),i.err)throw i.msg||qs[i.err];return i.result}function DE(e,t){return t=t||{},t.raw=!0,X0(e,t)}function LE(e,t){return t=t||{},t.gzip=!0,X0(e,t)}var BE=Xl,OE=X0,ME=DE,VE=LE,FE=no,zE={Deflate:BE,deflate:OE,deflateRaw:ME,gzip:VE,constants:FE};const bc=16209,HE=16191;var UE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,m,b,w,_,g,p,y,C,E,A,x,S,k;const N=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=N.dmax,c=N.wsize,d=N.whave,u=N.wnext,h=N.window,f=N.hold,m=N.bits,b=N.lencode,w=N.distcode,_=(1<>>24,f>>>=y,m-=y,y=p>>>16&255,y===0)k[s++]=p&65535;else if(y&16){C=p&65535,y&=15,y&&(m>>=y,m-=y),m<15&&(f+=S[r++]<>>24,f>>>=y,m-=y,y=p>>>16&255,y&16){if(E=p&65535,y&=15,ml){t.msg="invalid distance too far back",N.mode=bc;break e}if(f>>>=y,m-=y,y=s-o,E>y){if(y=E-y,y>d&&N.sane){t.msg="invalid distance too far back",N.mode=bc;break e}if(A=0,x=h,u===0){if(A+=c-y,y2;)k[s++]=x[A++],k[s++]=x[A++],k[s++]=x[A++],C-=3;C&&(k[s++]=x[A++],C>1&&(k[s++]=x[A++]))}else{A=s-E;do k[s++]=k[A++],k[s++]=k[A++],k[s++]=k[A++],C-=3;while(C>2);C&&(k[s++]=k[A++],C>1&&(k[s++]=k[A++]))}}else if(y&64){t.msg="invalid distance code",N.mode=bc;break e}else{p=w[(p&65535)+(f&(1<>3,r-=C,m-=C<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,m=0,b=0,w=0,_=0,g=0,p,y,C,E,A,x=null,S;const k=new Uint16Array(co+1),N=new Uint16Array(co+1);let I=null,T,P,O;for(c=0;c<=co;c++)k[c]=0;for(d=0;d=1&&k[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===Hg||h!==1))return-1;for(N[1]=0,c=1;cFg||e===Ug&&_>zg)return 1;for(;;){T=c-b,o[d]+1=S?(P=I[o[d]-S],O=x[o[d]-S]):(P=96,O=0),p=1<>b)+y]=T<<24|P<<16|O|0;while(y!==0);for(p=1<>=1;if(p!==0?(g&=p-1,g+=p):g=0,d++,--k[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(g&E)!==C){for(b===0&&(b=f),A+=u,m=c-b,w=1<Fg||e===Ug&&_>zg)return 1;C=g&E,n[C]=f<<24|m<<16|A-s|0}}return g!==0&&(n[A+g]=c-b<<24|64<<16|0),a.bits=f,0};var Wa=YE;const XE=0,t4=1,i4=2,{Z_FINISH:Kg,Z_BLOCK:ZE,Z_TREES:wc,Z_OK:Ys,Z_STREAM_END:GE,Z_NEED_DICT:QE,Z_STREAM_ERROR:mr,Z_DATA_ERROR:r4,Z_MEM_ERROR:n4,Z_BUF_ERROR:JE,Z_DEFLATED:Wg}=no,ou=16180,qg=16181,jg=16182,Yg=16183,Xg=16184,Zg=16185,Gg=16186,Qg=16187,Jg=16188,ev=16189,_d=16190,Wr=16191,_h=16192,tv=16193,kh=16194,iv=16195,rv=16196,nv=16197,sv=16198,_c=16199,kc=16200,ov=16201,av=16202,lv=16203,cv=16204,dv=16205,Ch=16206,uv=16207,hv=16208,tt=16209,s4=16210,o4=16211,ex=852,tx=592,ix=15,rx=ix,fv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function nx(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const so=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeo4?1:0},a4=e=>{if(so(e))return mr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ou,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ex),t.distcode=t.distdyn=new Int32Array(tx),t.sane=1,t.back=-1,Ys},l4=e=>{if(so(e))return mr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,a4(e)},c4=(e,t)=>{let i;if(so(e))return mr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?mr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,l4(e))},d4=(e,t)=>{if(!e)return mr;const i=new nx;e.state=i,i.strm=e,i.window=null,i.mode=ou;const r=c4(e,t);return r!==Ys&&(e.state=null),r},sx=e=>d4(e,rx);let pv=!0,Ah,Eh;const ox=e=>{if(pv){Ah=new Int32Array(512),Eh=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Wa(t4,e.lens,0,288,Ah,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Wa(i4,e.lens,0,32,Eh,0,e.work,{bits:5}),pv=!1}e.lencode=Ah,e.lenbits=9,e.distcode=Eh,e.distbits=5},u4=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,m,b,w=0,_,g,p,y,C,E,A,x;const S=new Uint8Array(4);let k,N;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(so(e)||!e.output||!e.input&&e.avail_in!==0)return mr;i=e.state,i.mode===Wr&&(i.mode=_h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,x=Ys;e:for(;;)switch(i.mode){case ou:if(i.wrap===0){i.mode=_h;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,S,2,0),c=0,d=0,i.mode=qg;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=tt;break}if((c&15)!==Wg){e.msg="unknown compression method",i.mode=tt;break}if(c>>>=4,d-=4,A=(c&15)+8,i.wbits===0&&(i.wbits=A),A>15||A>i.wbits){e.msg="invalid window size",i.mode=tt;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0,i.mode=jg;case jg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,i.check=Bt(i.check,S,4,0)),c=0,d=0,i.mode=Yg;case Yg:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0,i.mode=Xg;case Xg:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=Zg;case Zg:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(A=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),A)),i.flags&512&&i.wrap&4&&(i.check=Bt(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Gg;case Gg:if(i.flags&2048){if(a===0)break e;f=0;do A=r[s+f++],i.head&&A&&i.length<65536&&(i.head.name+=String.fromCharCode(A));while(A&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Wr;break;case ev:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=Ch;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=tv;break;case 1:if(ox(i),i.mode=_c,t===wc){c>>>=2,d-=2;break e}break;case 2:i.mode=rv;break;case 3:e.msg="invalid block type",i.mode=tt}c>>>=2,d-=2;break;case tv:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=tt;break}if(i.length=c&65535,c=0,d=0,i.mode=kh,t===wc)break e;case kh:i.mode=iv;case iv:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=Wr;break;case rv:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=tt;break}i.have=0,i.mode=nv;case nv:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[I[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,k={bits:i.lenbits},x=Wa(XE,i.lens,0,19,i.lencode,0,i.work,k),i.lenbits=k.bits,x){e.msg="invalid code lengths set",i.mode=tt;break}i.have=0,i.mode=sv;case sv:for(;i.have>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=_,d-=_,i.lens[i.have++]=p;else{if(p===16){for(N=_+2;d>>=_,d-=_,i.have===0){e.msg="invalid bit length repeat",i.mode=tt;break}A=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(N=_+3;d>>=_,d-=_,A=0,f=3+(c&7),c>>>=3,d-=3}else{for(N=_+7;d>>=_,d-=_,A=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=tt;break}for(;f--;)i.lens[i.have++]=A}}if(i.mode===tt)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=tt;break}if(i.lenbits=9,k={bits:i.lenbits},x=Wa(t4,i.lens,0,i.nlen,i.lencode,0,i.work,k),i.lenbits=k.bits,x){e.msg="invalid literal/lengths set",i.mode=tt;break}if(i.distbits=6,i.distcode=i.distdyn,k={bits:i.distbits},x=Wa(i4,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,k),i.distbits=k.bits,x){e.msg="invalid distances set",i.mode=tt;break}if(i.mode=_c,t===wc)break e;case _c:i.mode=kc;case kc:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,UE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===Wr&&(i.back=-1);break}for(i.back=0;w=i.lencode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,i.length=p,g===0){i.mode=dv;break}if(g&32){i.back=-1,i.mode=Wr;break}if(g&64){e.msg="invalid literal/length code",i.mode=tt;break}i.extra=g&15,i.mode=ov;case ov:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=av;case av:for(;w=i.distcode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,g&64){e.msg="invalid distance code",i.mode=tt;break}i.offset=p,i.extra=g&15,i.mode=lv;case lv:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=tt;break}i.mode=cv;case cv:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=tt;break}f>i.wnext?(f-=i.wnext,m=i.wsize-f):m=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,m=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[m++];while(--f);i.length===0&&(i.mode=kc);break;case dv:if(l===0)break e;n[o++]=i.length,l--,i.mode=kc;break;case Ch:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(so(e))return mr;let t=e.state;return t.window&&(t.window=null),e.state=null,Ys},cx=(e,t)=>{if(so(e))return mr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,Ys):mr},dx=(e,t)=>{const i=t.length;let r,n,s;return so(e)||(r=e.state,r.wrap!==0&&r.mode!==_d)?mr:r.mode===_d&&(n=1,n=xl(n,t,i,0),n!==r.check)?r4:(s=u4(e,t,i,i),s?(r.mode=s4,n4):(r.havedict=1,Ys))};var ux=l4,hx=c4,fx=a4,px=sx,mx=d4,gx=ax,vx=lx,yx=cx,bx=dx,wx="pako inflate (from Nodeca project)",Qr={inflateReset:ux,inflateReset2:hx,inflateResetKeep:fx,inflateInit:px,inflateInit2:mx,inflate:gx,inflateEnd:vx,inflateGetHeader:yx,inflateSetDictionary:bx,inflateInfo:wx};function _x(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var kx=_x;const h4=Object.prototype.toString,{Z_NO_FLUSH:Cx,Z_FINISH:Ax,Z_OK:Nl,Z_STREAM_END:xh,Z_NEED_DICT:Sh,Z_STREAM_ERROR:Ex,Z_DATA_ERROR:mv,Z_MEM_ERROR:xx}=no;function Zl(e){this.options=su.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Qr.inflateInit2(this.strm,t.windowBits);if(i!==Nl)throw new Error(qs[i]);if(this.header=new kx,Qr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tl.string2buf(t.dictionary):h4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Qr.inflateSetDictionary(this.strm,t.dictionary),i!==Nl)))throw new Error(qs[i])}Zl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Ax:Cx,h4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Qr.inflate(i,o),s===Sh&&n&&(s=Qr.inflateSetDictionary(i,n),s===Nl?s=Qr.inflate(i,o):s===mv&&(s=Sh));i.avail_in>0&&s===xh&&i.state.wrap>0&&e[i.next_in]!==0;)Qr.inflateReset(i),s=Qr.inflate(i,o);switch(s){case Ex:case mv:case Sh:case xx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===xh))if(this.options.to==="string"){let l=Tl.utf8border(i.output,i.next_out),c=i.next_out-l,d=Tl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===Nl&&a===0)){if(s===xh)return s=Qr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Zl.prototype.onData=function(e){this.chunks.push(e)};Zl.prototype.onEnd=function(e){e===Nl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Z0(e,t){const i=new Zl(t);if(i.push(e),i.err)throw i.msg||qs[i.err];return i.result}function Sx(e,t){return t=t||{},t.raw=!0,Z0(e,t)}var Tx=Zl,Nx=Z0,Rx=Sx,Ix=Z0,$x=no,Px={Inflate:Tx,inflate:Nx,inflateRaw:Rx,ungzip:Ix,constants:$x};const{Deflate:Dx,deflate:Lx,deflateRaw:Bx,gzip:Ox}=zE,{Inflate:Mx,inflate:Vx,inflateRaw:Fx,ungzip:zx}=Px;var Hx=Dx,Ux=Lx,Kx=Bx,Wx=Ox,qx=Mx,jx=Vx,Yx=Fx,Xx=zx,Zx=no,au={Deflate:Hx,deflate:Ux,deflateRaw:Kx,gzip:Wx,Inflate:qx,inflate:jx,inflateRaw:Yx,ungzip:Xx,constants:Zx},qe=new Uint8Array([0,64,128,192,224]),je=new Uint8Array([2,2,2,3,3]),G0=['": "','": ',": -\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],Vc=new Array(94),ja=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ya=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),gv=new Uint8Array([57,58,59,87,88,89]),Ti=5;const Gx=90,vv=91,Qx=39,Jx=40,eS=54,tS=46,yv=81,Zf=248,Gf=5,iS=128,rS=2,nS=0,f4=2,p4=0,m4=6,g4=4,bv=33;function sS(e,t,i){for(var r=0;r32&&(Vc[i-bv]=(e<<5)+t,i>=97&&i<=122&&(Vc[i-bv-32]=(e<<5)+t))}wv=1}}var oS=new Uint8Array([128,192,224,240,248,252,254,255]);function de(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&oS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function gi(e,t,i,r){return r==it?(i=de(e,t,i,Zf,Gf),i=de(e,t,i,iS,rS)):i=de(e,t,i,nS,f4),i}function rs(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Ne)return[i,n];switch(a){case Ne:n!=Ne&&(i=gi(e,t,i,n),i=de(e,t,i,s[Ne],o[Ne]),n=Ne);break;case qa:i=gi(e,t,i,n),i=de(e,t,i,s[qa],o[qa]);break;case yt:n!=yt&&(i=gi(e,t,i,n),i=de(e,t,i,s[yt],o[yt]),kd[a].charCodeAt(l)>=48&&kd[a].charCodeAt(l)<=57&&(n=yt))}return[de(e,t,i,ja[l],Ya[l]),n]}const gs=new Uint8Array([2,4,7,11,16]),Qf=[4,20,148,2196,67732],Cd=new Uint8Array([1,130,195,228,244]);function tn(e,t,i,r){for(var n=0;n<5;n++)if(r0?Qf[n-1]:0)<<16-gs[n];return gs[n]>8?(i=de(e,t,i,s>>8,8),i=de(e,t,i,s&255,gs[n]-8)):i=de(e,t,i,s>>8,gs[n]),i}return i}const sr=new Uint8Array([6,12,14,16,21]),y4=[0,64,4160,20544,86080];function aS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-y4[l];return sr[l]>16?(c<<=24-sr[l],i=de(e,t,i,c>>16,8),i=de(e,t,i,c>>8&255,8),i=de(e,t,i,c&255,sr[l]-16)):sr[l]>8?(c<<=16-sr[l],i=de(e,t,i,c>>8,8),i=de(e,t,i,c&255,sr[l]-8)):(c<<=8-sr[l],i=de(e,t,i,c&255,sr[l])),i}return i}function Th(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>Ti-1){var f=d-i-Ti,m=i-c-Ti+1;f>h&&(h=f,u=m)}}return h>0?(s=gi(r,n,s,o),s=de(r,n,s,a[Xs],l[Xs]),s=tn(r,n,s,h),s=tn(r,n,s,u),i+=h+Ti,i--,[i,s]):[-i,s]}function cS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,m=0,b=0,w=0;do for(var _,g,p=o[a-b],y=p.length,C=b==0?i:y;w>6==2;)g--;if(g-w>=Ti){if(h>0){if(w>f)continue;s=u}h=g-w,f=w,m=b,s=gi(r,n,s,l),s=de(r,n,s,c[Xs],d[Xs]),s=tn(r,n,s,h-Ti),s=tn(r,n,s,f),s=tn(r,n,s,m),w+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Nh(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Yr=0,Rr=1,ta=2,Jf=3;function Cc(e){return e>=48&&e<=57?Yr:e>=97&&e<=102?Rr:e>=65&&e<=70?ta:Jf}function Ac(e,t,i,r,n,s){return i=gi(e,t,i,r),i=de(e,t,i,n[yt],s[yt]),i=de(e,t,i,0,2),i}function dS(e,t,i,r,n,s,o){return o[Ne]?(yt!=r&&(i=gi(e,t,i,r),i=de(e,t,i,s[yt],o[yt])),i=de(e,t,i,ja[vv&31],Ya[vv&31])):i=de(e,t,i,p4,n?g4:m4),i=de(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function uS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&c0)continue;if(c<0&&u<0)return p+1;c=-c}else{if([c,u]=lS(e,t,c,i,p,u,l,r,n),c>0)continue;if(c<0&&u<0)return p+1;c=-c}if(h=e[c],c>0&&t>4&&c0&&h<=(y?"~":126)&&h==e[c-1]&&h==e[c+1]&&h==e[c+2]&&h==e[c+3]){for(var C=c+4;C0){var E=y?"-":45,A=Yr;if(e[c+8]===E&&e[c+13]===E&&e[c+18]===E&&e[c+23]===E){for(var x=c;x0){var A=Yr,N=0;do{var S=y?e.charCodeAt(c+N):e[c+N],k=Cc(S);if(k==Jf||a)break;if(k!=Yr){if(A!=Yr&&A!=k)break;A=k}N++}while(c+N10&&A==Yr&&(A=Rr),(A==Rr||A==ta)&&N>3){u=Ac(i,p,u,l,r,n),u=de(i,p,u,A==Rr?128:224,A==Rr?2:4),u=tn(i,p,u,N);do{var S=y?e.charCodeAt(c):e[c];u=de(i,p,u,Nh(S),4),c++}while(--N>0);c--;continue}}if(o!=null&&o!=null){var I;for(I=0;I<5;I++)if(typeof o[I]=="string"){for(var T=o[I].length,P=0;P(O==="r"?55:O==="t"?51:49))break}else if(O.charCodeAt(0)!==h)break}if(P/T>.66){T=T-P,u=Ac(i,p,u,l,r,n),u=de(i,p,u,0,1),u=de(i,p,u,Cd[I]&248,Cd[I]&7),u=tn(i,p,u,T);for(var M=0;M=0&&c<=t-H&&n[gv[I]>>5]&&uS(s[I].slice(0,H),e.slice(c,c+H),y)){[u,l]=rs(i,p,u,gv[I],l,r,n),c+=H,c--;break}}if(I<6)continue}if(h=y?e.charCodeAt(c):e[c],b=!1,h>=65&&h<=90?b=!0:w&&(w=!1,u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne),b&&!w&&(l==yt&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne),u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l==it&&(l=Ne,u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]))),f=0,c+1=32&&h<=126){if(b&&!w){for(d=c+4;d>=c&&d90)break}d==c-1&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne,w=!0)}if(l==it){var me=" .,".indexOf(String.fromCharCode(h));if(me!=-1){u=de(i,p,u,Zf,Gf),u=de(i,p,u,hS[me],fS[me]);continue}}h-=32,w&&b&&(h+=32),h===0?l==yt?u=de(i,p,u,ja[yv&31],Ya[yv&31]):u=de(i,p,u,ja[1],Ya[1]):(h=h-1,[u,l]=rs(i,p,u,Vc[h],l,r,n))}else if(h===13&&f===10)[u,l]=rs(i,p,u,Jx,l,r,n),c++;else if(h===10)l==it?(u=de(i,p,u,Zf,Gf),u=de(i,p,u,240,4)):[u,l]=rs(i,p,u,Qx,l,r,n);else if(h===13)[u,l]=rs(i,p,u,eS,l,r,n);else if(h===9)[u,l]=rs(i,p,u,tS,l,r,n);else{var ye,F,W;if([ye,F]=Th(e,t,c),ye>0)c+=F,l!=it&&([W,F]=Th(e,t,c),W>0?(l!=Ne&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne])),u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),u=de(i,p,u,ja[1],Ya[1]),l=it):(u=gi(i,p,u,l),u=de(i,p,u,r[it],n[it]))),u=aS(i,p,u,ye,m),m=ye,c--;else{for(var Z=1,K=c+1;K0||K0);c--}}}{var xe=(u+7)/8;return u=dS(i,xe,u,l,w,r,n),xe}}function nt(e,t,i,r=G0){let n=new Uint8Array(2048),s,o;return s=Ec(e,t,n,qe,je,r,Ye,!1),o=Ec(e,t,n,qe,je,r,Ye,!0),n=void 0,s>=o?Ec(e,t,i,qe,je,r,Ye,!0):Ec(e,t,i,qe,je,r,Ye,!1)}function Q0(e,t){return e[t>>3]&128>>t%8}function J0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const pS=5,mS=new Uint8Array([127,191,223,239,255]),gS=new Uint8Array([0,4,8,12,20]),vS=new Uint8Array([127,63,31,15,15]),yS=new Uint8Array([5,4,3,1,0]),bS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function Rh(e,t,i){if(i>yS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&wS[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function Rl(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function Xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=Xa(e,i,t,gs[r])+(r>0?Qf[r-1]:0);return t+=gs[r],[n,t]}function _S(e,t,i){var r=0;if([r,t]=Rl(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=Rl(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=Xa(e,i,t,sr[r]);return s+=y4[r],t+=sr[r],[n>0?-s:s,t]}return[0,t]}function _v(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=rn(e,n,t),u+=Ti,u=i.length);b++)i[r]=m[h+b],r++;return[n,r]}function kv(e,t,i,r,n){var s=0;if([s,n]=rn(e,n,t),s+=Ti,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function Cv(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function vr(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function Qe(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;v4(),l=1,a=c=Ne,u=0;var m=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var g=_&255;if(g==99)break;switch(g){case 0:b=vr(i,b," ");continue;case 1:if([c,l]=Ih(e,t,l,r,n),c==99){l=t;continue}if(c==it||c==Ne){a=c;continue}if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=vr(i,b,",");continue;case 3:b=vr(i,b,".");continue;case 4:b=vr(i,b,` -`);continue}}else m+=_,m>0&&(i==null?b+=String.fromCodePoint(m):b=kS(i,b,m));if(a==it&&c==it)continue}else c=a;var p="",y=u;if([d,l]=Rh(e,t,l),d==99||c==99){l=w;break}if(d==0&&c!=qa){if(l>=t)break;if((c!=yt||a!=it)&&([c,l]=Ih(e,t,l,r,n),c==99||l>=t)){l=w;break}if(c==Ne)if(a==Ne){if(n[Ne]==0&&p4==(J0(e,t,l-f4)&255<<8-(u?g4:m4)))break;if(u){y=u=0;continue}if([d,l]=Rh(e,t,l),d==99){l=w;break}if(d==0){if([c,l]=Ih(e,t,l,r,n),c==99){l=w;break}if(c==Ne){u=1;continue}}y=1}else{a=Ne;continue}else if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==it)continue;if((c!=yt||a!=it)&&([d,l]=Rh(e,t,l)),d==99){l=w;break}if(c==yt&&d==0){var C;if([C,l]=Rl(e,t,l,5),C==99)break;if(C==0){if([C,l]=Rl(e,t,l,4),C>=5)break;var E;if([E,l]=rn(e,l,t),E<0||o[C]==null)break;var A=o[C].length;if(E>A)break;E=A-E;for(var x=!1,S=0;S0)}else{var M=0;if(C==2||C==4)M=32;else if([M,l]=rn(e,l,t),M<0||M==0)break;do{var H=Xa(e,t,l,4);if(H<0)break;var T=Cv(H,C<3?Rr:ta);b=vr(i,b,T),(C==2||C==4)&&(M==25||M==21||M==17||M==13)&&(b=vr(i,b,"-")),l+=4}while(--M>0);if(M>0)break}a==it&&(c=it);continue}}}if(y&&d==1){c=a=it;continue}if(c<3&&d<28&&(p=kd[c].charAt(d)),p>="a"&&p<="z")a=Ne,y&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=yt;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=$h(i,b,`\r -`);else if(c==yt&&d==26){var U;if([U,l]=rn(e,l,t),U<0)break;U+=4;for(var me=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);U--;)b=vr(i,b,me)}else if(c==qa&&d>24)d-=25,b=$h(i,b,s[d]);else if(c==yt&&d>22&&d<26)d-=20,b=$h(i,b,s[d]);else break;a==it&&(c=it);continue}a==it&&(c=it),b=vr(i,b,p)}return b}var mn=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};mn.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};mn.prototype.init_by_array=function(e,t){var i,r,n;for(this.init_seed(19650218),i=1,r=0,n=this.N>t?this.N:t;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1664525<<16)+(s&65535)*1664525)+e[r]+r,this.mt[i]>>>=0,i++,r++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),r>=t&&(r=0)}for(n=this.N-1;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1566083941<<16)+(s&65535)*1566083941)-i,this.mt[i]>>>=0,i++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1)}this.mt[0]=2147483648};mn.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i>>1^t[e&1];for(;i>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};mn.prototype.random_int31=function(){return this.random_int()>>>1};mn.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};mn.prototype.random=function(){return this.random_int()*(1/4294967296)};mn.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};mn.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var CS=mn;const b4=T5(CS),AS='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var Sa=0,em=new Uint8Array(32);const Bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const ES="ABCDEFGHIJKLMNOPQRSTUVWXYZ",xS="1234567890",SS="+=_-/?.>,<|`~!@#$%^&*(){}[];:",Do="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const TS="桜込凪雫実沢",NS="玚俟玊欤瞐珏",Wn="孎",ep=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],tp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],ip=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],rp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],np=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],sp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],op=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],ap=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],lp=["https://",".cn",".com",".net",".org",".xyz"],cp=["https://",".info",".moe",".cc",".co",".dev"],dp=["https://",".io",".us",".eu",".jp",".de"],Ot=JSON.parse(AS);function w4(e,t,i){let r=Mt.SHA256(t),n=Fc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=Fc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return Fc(f.ciphertext)}function Av(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function RS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function IS(e){let t=new Uint8Array(2048),i=Ad(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(ep[a])!=-1){r=254;break}if(i.indexOf(tp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ip[a])!=-1){r=253;break}if(i.indexOf(rp[a])!=-1){r=252;break}if(i.indexOf(np[a])!=-1){r=244;break}if(i.indexOf(sp[a])!=-1){r=251;break}if(i.indexOf(op[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ap[a])!=-1){r=249;break}if(i.indexOf(lp[a])!=-1){r=248;break}if(i.indexOf(cp[a])!=-1){r=247;break}if(i.indexOf(dp[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,ep);break;case 245:n=nt(e,e.byteLength,t,tp);break;case 253:n=nt(e,e.byteLength,t,ip);break;case 252:n=nt(e,e.byteLength,t,rp);break;case 244:n=nt(e,e.byteLength,t,np);break;case 251:n=nt(e,e.byteLength,t,sp);break;case 250:n=nt(e,e.byteLength,t,op);break;case 249:n=nt(e,e.byteLength,t,ap);break;case 248:n=nt(e,e.byteLength,t,lp);break;case 247:n=nt(e,e.byteLength,t,cp);break;case 246:n=nt(e,e.byteLength,t,dp);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function $S(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,ep,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,tp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,ip,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,rp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,np,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,sp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,op,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,ap,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,lp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,cp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,dp,Ye);break}return s.subarray(0,o)}function _4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function PS(e){let t=e[e.byteLength-1];return _4(e.subarray(0,e.byteLength-1))==t}function DS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function LS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function Fc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function k4(e){let t=pr.encode(e);return pr.toUint8Array(t)}function Ad(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function Ev(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function Jr(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function xv(e,t,i){return e.slice(0,i)+t+e.slice(i)}function BS(e,t){return e.filter(i=>!t.includes(i))}function uo(e,t){return e.slice(t)+e.slice(0,t)}function ho(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function fo(e){let t,i,r,n,s,o;return t=Bs.indexOf(e),i=Do.indexOf(e),r=Bs.indexOf(vs[t]),n=Do.indexOf(ws[i]),s=Bs.indexOf(ys[r]),o=Do.indexOf(_s[n]),t!=-1?bs[s]:i!=-1?ks[o]:Wn}function Sv(e){let t,i,r,n,s,o;return t=bs.indexOf(e),i=ks.indexOf(e),r=ys.indexOf(Bs[t]),n=_s.indexOf(Do[i]),s=vs.indexOf(Bs[r]),o=ws.indexOf(Do[n]),t!=-1?Bs[s]:i!=-1?Do[o]:Wn}function Ed(){let e=0;Sa==32&&(Sa=0),e=em[Sa]%10,e==0&&(e=10),e%2==0?(vs=uo(vs,6),ws=uo(ws,6),ys=ho(ys,e*2),_s=ho(_s,e*2),bs=uo(bs,e/2+1),ks=uo(ks,e/2+1)):(vs=ho(vs,3),ws=ho(ws,3),ys=uo(ys,e),_s=uo(_s,e),bs=ho(bs,(e+7)/2),ks=ho(ks,(e+7)/2)),Sa++}function Za(){Sa=0,em=new Array(32),vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function C4(e){let t=Mt.SHA256(e);em=Fc(t)}class A4{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Tv(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Sv(r))});if(i)return i;for(let r in Ot.basic.numbersymbol)Ot.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Sv(r))});return i||Wn}const VS='{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1/非/N/ye","1/N/曰","1/若夫/N","1/anti/MV/V/ye/P","2/A/N/曰","2/N/以/A","2/N/anti/在/A","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/初,/N/V/by/N","3/夫/N/anti/V/by/N","3/AD/V/zhi/谓/A","3/V/而/V/zhi/zhi/谓/A","3/N/,/N/zhi/N/ye/P","3/A/之/V/者/必/有/N/P","4/非/N/不/A/,/V/不/A","4/A/N/AD/V","4/V/N/以/V/N","4/N/不在/A/,/有/N/则/A/P","4/A/N/常有/,/而/A/N/不常有/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/无/N/,/无以/V/N","5/V/N/而/V/A/,/V/zhi/道/ye/P","5/N/zhi/V/V/,/实为/A/A/P","5/本/MV/V/A/,/anti/V/N/N","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/今/N/乃/A/N/A/N","5/A/N/V/A/N","5/夫/N/、/N/不/MV/AD/V/N","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/N/zhi/N/,/V/zhi/以/V/其/N","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","7/N/以/A/A/,/AD/V/A/N","7/V/N/A/,/A/N/V/N","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/则有/N/A/N/A/,/N/N/具/V","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/V/A/N/,/N/V/A/N","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/尝/V/A/N/,/AD/V/A/N/zhi/N","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/N/V/于/A/N/,/而/N/V/于/A/N","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1/非/N/ye","1/anti/MV/V/ye","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/N/with/N/V","3/N/曰,何/A/zhi/V/Q","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N/P","4/N/不在/A/,/有/N/则/A/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4/A/N/常有/,/而/A/N/不常有/P","4/不/以/N/V/,/不/以/N/V/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/每/有/V/N/,/便/AD/然/V/N/P","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/N/V/,/V/N/V/N","6/虽/V/V/A/A/,/A/A/不/同/P","6/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","6/V/A/N/,/V/A/N","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/,/而/N/V/于/A/N","8/A/N/MV/A/N/之/A/,/V/N/中/之/A","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A","9/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1/非/N/ye","1/anti/MV/V/ye","2/唯/N/V/zhi","2/V/by/N","2/其/also/A/hu/其/V/ye/P","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/V/在/A/N","3/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3/某也/A/,/某也/A/,/可/不/A/哉","4/V/N/zhi/N/by/N","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N","4/噫/,/A/N/ye/,/N/谁/与/V/Q","4/不/以/N/V/,/不/以/N/V/P","5/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6/N/V/,/V/N/V/N","6/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/虽/V/V/A/A/,/A/A/不/同/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}';var Ta=0,tm=new Uint8Array(32);const ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const FS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",zS="1234567890",HS="+/=",vt="0123456789+/=";var xs="0123456789+/=",Ss="5=0764+389/12",Ts="0123456789+/=";const ia="孎",up=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],hp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],fp=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],pp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],mp=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],gp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],vp=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],yp=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],bp=["https://",".cn",".com",".net",".org",".xyz"],wp=["https://",".info",".moe",".cc",".co",".dev"],_p=["https://",".io",".us",".eu",".jp",".de"],oe=JSON.parse(VS);let mi={},Pt="";function US(){mi={},Pt="";for(let e=0;e<52;e++)mi[ct[e]]=[],mi[ct[e]].push(oe.Actual.N.alphabet[ct[e]]),mi[ct[e]].push(oe.Actual.A.alphabet[ct[e]]),mi[ct[e]].push(oe.Actual.V.alphabet[ct[e]]),Pt=Pt+oe.Actual.N.alphabet[ct[e]],Pt=Pt+oe.Actual.A.alphabet[ct[e]],Pt=Pt+oe.Actual.V.alphabet[ct[e]],oe.Actual.A.alphabet[ct[e]]!=oe.Actual.AD.alphabet[ct[e]]&&(mi[ct[e]].push(oe.Actual.AD.alphabet[ct[e]]),Pt=Pt+oe.Actual.AD.alphabet[ct[e]]);for(let e=0;e<13;e++)mi[vt[e]]=[],mi[vt[e]].push(oe.Actual.N.numbersymbol[vt[e]]),mi[vt[e]].push(oe.Actual.A.numbersymbol[vt[e]]),mi[vt[e]].push(oe.Actual.V.numbersymbol[vt[e]]),Pt=Pt+oe.Actual.N.numbersymbol[vt[e]],Pt=Pt+oe.Actual.A.numbersymbol[vt[e]],Pt=Pt+oe.Actual.V.numbersymbol[vt[e]],oe.Actual.A.numbersymbol[vt[e]]!=oe.Actual.AD.numbersymbol[vt[e]]&&(mi[vt[e]].push(oe.Actual.AD.numbersymbol[vt[e]]),Pt=Pt+oe.Actual.AD.numbersymbol[vt[e]])}function E4(e,t,i){let r=Mt.SHA256(t),n=zc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=zc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return zc(f.ciphertext)}function Rv(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function KS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function WS(e){let t=new Uint8Array(2048),i=xd(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(up[a])!=-1){r=254;break}if(i.indexOf(hp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(fp[a])!=-1){r=253;break}if(i.indexOf(pp[a])!=-1){r=252;break}if(i.indexOf(mp[a])!=-1){r=244;break}if(i.indexOf(gp[a])!=-1){r=251;break}if(i.indexOf(vp[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(yp[a])!=-1){r=249;break}if(i.indexOf(bp[a])!=-1){r=248;break}if(i.indexOf(wp[a])!=-1){r=247;break}if(i.indexOf(_p[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,up);break;case 245:n=nt(e,e.byteLength,t,hp);break;case 253:n=nt(e,e.byteLength,t,fp);break;case 252:n=nt(e,e.byteLength,t,pp);break;case 244:n=nt(e,e.byteLength,t,mp);break;case 251:n=nt(e,e.byteLength,t,gp);break;case 250:n=nt(e,e.byteLength,t,vp);break;case 249:n=nt(e,e.byteLength,t,yp);break;case 248:n=nt(e,e.byteLength,t,bp);break;case 247:n=nt(e,e.byteLength,t,wp);break;case 246:n=nt(e,e.byteLength,t,_p);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function qS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,up,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,hp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,fp,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,pp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,mp,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,gp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,vp,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,yp,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,bp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,wp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,_p,Ye);break}return s.subarray(0,o)}function x4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function jS(e){let t=e[e.byteLength-1];return x4(e.subarray(0,e.byteLength-1))==t}function YS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function XS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function zc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function xd(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function ri(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function po(e,t){return e.slice(t)+e.slice(0,t)}function mo(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function nr(e){let t,i,r,n,s,o;return t=ct.indexOf(e),i=vt.indexOf(e),r=ct.indexOf(Cs[t]),n=vt.indexOf(xs[i]),s=ct.indexOf(As[r]),o=vt.indexOf(Ss[n]),t!=-1?Es[s]:i!=-1?Ts[o]:ia}function Iv(e){let t,i,r,n,s,o;return t=Es.indexOf(e),i=Ts.indexOf(e),r=As.indexOf(ct[t]),n=Ss.indexOf(vt[i]),s=Cs.indexOf(ct[r]),o=xs.indexOf(vt[n]),t!=-1?ct[s]:i!=-1?vt[o]:ia}function Sd(){let e=0;Ta==32&&(Ta=0),e=tm[Ta]%10,e==0&&(e=10),e%2==0?(Cs=po(Cs,6),xs=po(xs,6),As=mo(As,e),Ss=mo(Ss,e),Es=po(Es,e/2+1),Ts=po(Ts,e/2+1)):(Cs=mo(Cs,3),xs=mo(xs,3),As=po(As,e),Ss=po(Ss,e),Es=mo(Es,(e+7)/2),Ts=mo(Ts,(e+7)/2)),Ta++}function Td(){Ta=0,tm=new Array(32),Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",xs="1234567890+/=",Ss="5=0764+389/12",Ts="1234567890+/="}function S4(e){let t=Mt.SHA256(e);tm=zc(t)}function ZS(e){if(e<=3)return[];let t=Math.floor(e*.2),i=e-2*t;return i<=0&&(t=Math.floor((e-2)/3),i=e-2*t,i<=0)?[]:[t,i,t]}function GS(e,t=0){let i,r=ZS(e),n=[];for(let s=0;s<3;s++){let o=r[s];if(s==0)for(let a=0;a6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h=3&&_!=u.length-2?(l=l+"。",b=0):(l=l+",",b+=w+1):(l=l+"。",b=0)}m&&(b=0)}}if(!i){let _="";for(let g=0;g{t==n&&(i=Iv(r))});if(i)return i;for(let r in mi)mi[r].forEach(n=>{t==n&&(i=Iv(r))});return i||ia}const ua=class gt{constructor(t=gt.TEXT,i=gt.TEXT){if($u(this,ss,""),$u(this,Ca,""),$u(this,_t,null),t!=gt.TEXT&&t!=gt.UINT8||i!=gt.TEXT&&i!=gt.UINT8)throw"Unexpected Argument";gr(this,ss,t),gr(this,Ca,i)}Input(t,i,r="ABRACADABRA",n=!1){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new A4(t,!0,!1),gr(this,_t,Ph(l,r,n))):(l=Tv(a),l.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Nv(l,r)):gr(this,_t,Ph(l,r,n)))}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Tv(t);s.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Nv(s,r)):gr(this,_t,Ph(s,r,n))}return 0}Output(){if(fi(this,_t)==null)throw"Null Output, please input some data at first.";if(typeof fi(this,_t)=="object")return fi(this,Ca)==gt.TEXT?fi(this,_t).output:fi(this,_t).output_B!=null?fi(this,_t).output_B:new TextEncoder().encode(fi(this,_t).output);if(typeof fi(this,_t)=="string")return fi(this,Ca)==gt.TEXT?fi(this,_t):new TextEncoder().encode(fi(this,_t))}Input_Next(t,i,r="ABRACADABRA",n=!0,s=50){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";if(i==gt.ENCRYPT){let o=new Object;o.output=t,gr(this,_t,$v(o,r,n,s))}else if(i==gt.DECRYPT){let o=new Object;o.output=t,gr(this,_t,Pv(o,r))}return 0}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let o=new Object;return o.output=k4(t),i==gt.ENCRYPT?gr(this,_t,$v(o,r,n,s)):i==gt.DECRYPT&&gr(this,_t,Pv(o,r)),0}return 0}};ss=new WeakMap;Ca=new WeakMap;_t=new WeakMap;ql(ua,"TEXT","TEXT");ql(ua,"UINT8","UINT8");ql(ua,"ENCRYPT","ENCRYPT");ql(ua,"DECRYPT","DECRYPT");ql(ua,"AUTO","AUTO");let Dh=ua;const eT=ve("div",{id:"MagicBadge",style:{}},[ve("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),ve("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),tT={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},iT={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},rT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),nT=ve("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),sT={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},oT=ve("mdui-text-field",{id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,-1),aT=ve("mdui-slider",{id:"Randomness",step:"25",value:"50",min:"0",max:"100",style:{background:"#0000003b",padding:"0 25px",width:"215px","margin-left":"5px","border-radius":"25px",height:"35px"}},null,-1),lT={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},cT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),dT={id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},uT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[Ud(" Abracadabra V3.0.11"),ve("br"),ve("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")],-1),hT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"98px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"0px","border-radius":"inherit",margin:"0px",right:"4px","justify-self":"end",opacity:"0.5"}}," SheepChef © ",-1),fT={id:"CryptControl"},pT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"雪藏话语",-1),mT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"探求真意",-1),gT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"去除标志",-1),vT=ve("div",{id:"PositionOccupie"},null,-1),yT={__name:"HomeView",setup(e){const t=dt("TEXT"),i=dt("TEXT"),r=dt("Next"),n=dt(!0),s=dt(!1),o=dt(!1),a=dt(!1);dt("#5b6169");var l=dt(new Array);const c=dt(null),d=dt("");No(()=>l.value[0],T=>{c.value=T,d.value=T.name,window.inputfile=T});function u(T){return new Promise((P,O)=>{const M=new FileReader;M.onload=H=>{const U=new Uint8Array(H.target.result);P(U)},M.onerror=O,M.readAsArrayBuffer(T)})}function h(T,P,O){const M=new Blob([T],{type:O});return new File([M],P,{type:O})}function f(T){T.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function m(T){T.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function b(T){T.preventDefault()}function w(T){T.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const P=T.dataTransfer.files;p(P)}function _(T){const P=T.target.files;p(P)}function g(T){document.querySelector("#fileIn").click()}function p(T){l.value=[];for(let P=0;P{var O;return["fullscreen","standalone","minimal-ui"].some(M=>window.matchMedia("(display-mode: "+M+")").matches)||((O=window.navigator)==null?void 0:O.standalone)||document.referrer.includes("android-app://")};function C(){if(r.value=="Next"){document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceDec").disabled=!0;return}else document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,s.value=!0,o.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,s.value=!1,o.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,s.value=!1,o.value=!1)}function E(){document.getElementById("Forceq").checked==!0?a.value=!0:a.value=!1}async function A(){r.value=="Normal"?(document.getElementById("NormalControlBar").style.display="none",document.getElementById("NextControlBar").style.display="grid",r.value="Next"):r.value=="Next"&&(document.getElementById("NormalControlBar").style.display="block",document.getElementById("NextControlBar").style.display="none",r.value="Normal"),C()}async function x(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,s.value?a.value?T.Input(document.getElementById("InputCard").value,"ENCRYPT",P,!0):T.Input(document.getElementById("InputCard").value,"ENCRYPT",P,!1):o.value?T.Input(document.getElementById("InputCard").value,"DECRYPT",P):T.Input(document.getElementById("InputCard").value,"AUTO",P,a.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);s.value?a.value?T.Input(O,"ENCRYPT",P,!0):T.Input(O,"ENCRYPT",P,!1):o.value?T.Input(O,"DECRYPT",P):T.Input(O,"AUTO",P,a.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function S(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,T.Input_Next(document.getElementById("InputCard").value,"ENCRYPT",P,!0,parseInt(document.querySelector("#Randomness").value))}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);T.Input_Next(O,"ENCRYPT",P,!0,parseInt(document.querySelector("#Randomness").value))}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function k(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,T.Input_Next(document.getElementById("InputCard").value,"DECRYPT",P)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);T.Input_Next(O,"DECRYPT",P)}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}function N(){document.getElementById("OutputText").value!=""&&(document.getElementById("OutputText").select(),navigator.clipboard.writeText(window.getSelection().toString()))}async function I(){window.deferredPrompt&&(window.deferredPrompt.prompt(),(await window.deferredPrompt.userChoice).outcome==="accepted"?Sr({message:"感谢你选择魔曰",placement:"top-end"}):console.log("PWA Install cancelled"))}return hn(()=>{y()&&(n.value=!1),C();const T=document.querySelector("#Randomness");T.labelFormatter=P=>P==0?"长句优先":P==25?"稍随机":P==50?"适中":P==75?"较随机":P==100?"完全随机":""}),$l(()=>{}),(T,P)=>(vi(),Pr(xt,null,[eT,Ue(ka,{id:"FunctionCard"},{default:ls(()=>[ve("div",tT,[t.value=="TEXT"?(vi(),Pr("mdui-text-field",iT)):as("",!0),t.value=="UINT8"?(vi(),nl(ka,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:f,onDragleave:m,onDragover:b,onDrop:w,onClick:g},{default:ls(()=>[rT,nT,ve("p",sT,zv(d.value),1),ve("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:_},null,32)]),_:1})):as("",!0),ve("div",{id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},[oT,ve("div",{id:"NormalControlBar",style:{"align-self":"center",display:"none"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px"}},"吟唱你的魔法"),ve("mdui-button",{variant:"elevated",icon:"auto_awesome--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"文言仿真")]),ve("div",{id:"NextControlBar",style:{"align-self":"center",display:"grid","grid-template-columns":"235px 124px"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px",display:"none"}},"吟唱你的魔法"),ve("div",{style:{display:"grid","grid-template-rows":"40px 33px"}},[ve("div",{style:{width:"fit-content","align-self":"center","justify-self":"center","margin-left":"-10px"}},[ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:S,style:{"align-self":"center",width:"105px","text-align":"center","margin-right":"5px"}},"加密"),ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:k,style:{"align-self":"center",width:"105px","text-align":"center"}},"解密")]),aT]),ve("mdui-button",{variant:"elevated",icon:"auto_fix_off--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"传统加密")])]),i.value=="TEXT"?(vi(),Pr("mdui-text-field",lT)):as("",!0),ve("mdui-button-icon",{icon:"content_copy--rounded",style:{position:"absolute",bottom:"95px",right:"22px",background:"rgb(11 11 11 / 25%)","backdrop-filter":"blur(2px)"},onClick:N}),i.value=="UINT8"?(vi(),nl(ka,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:ls(()=>[cT]),_:1})):as("",!0),ve("div",dT,[uT,n.value?(vi(),Pr("mdui-chip",{key:0,elevated:"",icon:"file_download--rounded",style:{position:"absolute",bottom:"40px",right:"15px",background:"rgba(11, 11, 11, 0.25)","backdrop-filter":"blur(2px)"},onClick:I},"安装应用")):as("",!0),hT])])]),_:1}),Ue(ka,{id:"FloatCard"},{default:ls(()=>[ve("div",fT,[pT,ve("mdui-switch",{id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),mT,ve("mdui-switch",{id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),gT,ve("mdui-switch",{id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:E},null,32)])]),_:1}),vT],64))}},bT={id:"ImWindowContainer",ref:"ImContainer"},wT={id:"ImContentContainer"},_T={id:"main_content",style:{height:"fit-content"}},kT={__name:"ImMainView",setup(e){const t=dt(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return hn(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(vi(),Pr("div",bT,[Ue(lC,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),ve("div",wT,[ve("div",_T,[Ue(yT)])])],512))}},CT=ve("header",null,[ve("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),AT={style:{width:"100% !important",height:"100%"}},ET={class:"InnerUI",fullHeight:""},xT={__name:"App",setup(e){return hn(()=>{}),(t,i)=>(vi(),Pr(xt,null,[CT,ve("mdui-layout",AT,[ve("mdui-layout-main",ET,[Ue(kT)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const T4=Py(xT);nC("#09355b");T4.component("Card",ka);T4.mount("body"); + */return i.mode.CTRGladman=function(){var r=i.lib.BlockCipherMode.extend();function n(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var m=0;m>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(ih)),ih.exports}var rh={exports:{}},bg;function Uk(){return bg||(bg=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(rh)),rh.exports}var nh={exports:{}},wg;function Kk(){return wg||(wg=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(nh)),nh.exports}var sh={exports:{}},_g;function Wk(){return _g||(_g=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(sh)),sh.exports}var oh={exports:{}},Cg;function jk(){return Cg||(Cg=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(oh)),oh.exports}var ah={exports:{}},kg;function qk(){return kg||(kg=1,function(e,t){(function(i,r,n){e.exports=r(De(),Yt())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(ah)),ah.exports}var lh={exports:{}},Ag;function Yk(){return Ag||(Ag=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],m=[],b=[],v=[];(function(){for(var p=[],g=0;g<256;g++)g<128?p[g]=g<<1:p[g]=g<<1^283;for(var k=0,E=0,g=0;g<256;g++){var A=E^E<<1^E<<2^E<<3^E<<4;A=A>>>8^A&255^99,a[k]=A,l[A]=k;var x=p[k],S=p[x],C=p[S],N=p[A]*257^A*16843008;c[k]=N<<24|N>>>8,d[k]=N<<16|N>>>16,u[k]=N<<8|N>>>24,h[k]=N;var N=C*16843009^S*65537^x*257^k*16843008;f[A]=N<<24|N>>>8,m[A]=N<<16|N>>>16,b[A]=N<<8|N>>>24,v[A]=N,k?(k=x^p[p[p[C^x]]],E^=p[p[E]]):k=E=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],w=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var g=this._keyPriorReset=this._key,k=g.words,E=g.sigBytes/4,A=this._nRounds=E+6,x=(A+1)*4,S=this._keySchedule=[],C=0;C6&&C%E==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=_[C/E|0]<<24),S[C]=S[C-E]^p);for(var N=this._invKeySchedule=[],R=0;R>>24]]^m[a[p>>>16&255]]^b[a[p>>>8&255]]^v[a[p&255]]}}},encryptBlock:function(p,g){this._doCryptBlock(p,g,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,g){var k=p[g+1];p[g+1]=p[g+3],p[g+3]=k,this._doCryptBlock(p,g,this._invKeySchedule,f,m,b,v,l);var k=p[g+1];p[g+1]=p[g+3],p[g+3]=k},_doCryptBlock:function(p,g,k,E,A,x,S,C){for(var N=this._nRounds,R=p[g]^k[0],I=p[g+1]^k[1],O=p[g+2]^k[2],F=p[g+3]^k[3],L=4,M=1;M>>24]^A[I>>>16&255]^x[O>>>8&255]^S[F&255]^k[L++],ee=E[I>>>24]^A[O>>>16&255]^x[F>>>8&255]^S[R&255]^k[L++],ae=E[O>>>24]^A[F>>>16&255]^x[R>>>8&255]^S[I&255]^k[L++],z=E[F>>>24]^A[R>>>16&255]^x[I>>>8&255]^S[O&255]^k[L++];R=V,I=ee,O=ae,F=z}var V=(C[R>>>24]<<24|C[I>>>16&255]<<16|C[O>>>8&255]<<8|C[F&255])^k[L++],ee=(C[I>>>24]<<24|C[O>>>16&255]<<16|C[F>>>8&255]<<8|C[R&255])^k[L++],ae=(C[O>>>24]<<24|C[F>>>16&255]<<16|C[R>>>8&255]<<8|C[I&255])^k[L++],z=(C[F>>>24]<<24|C[R>>>16&255]<<16|C[I>>>8&255]<<8|C[O&255])^k[L++];p[g]=V,p[g+1]=ee,p[g+2]=ae,p[g+3]=z},keySize:256/32});r.AES=s._createHelper(w)}(),i.AES})}(lh)),lh.exports}var ch={exports:{}},Eg;function Xk(){return Eg||(Eg=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var _=this._key,w=_.words,p=[],g=0;g<56;g++){var k=l[g]-1;p[g]=w[k>>>5]>>>31-k%32&1}for(var E=this._subKeys=[],A=0;A<16;A++){for(var x=E[A]=[],S=d[A],g=0;g<24;g++)x[g/6|0]|=p[(c[g]-1+S)%28]<<31-g%6,x[4+(g/6|0)]|=p[28+(c[g+24]-1+S)%28]<<31-g%6;x[0]=x[0]<<1|x[0]>>>31;for(var g=1;g<7;g++)x[g]=x[g]>>>(g-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var C=this._invSubKeys=[],g=0;g<16;g++)C[g]=E[15-g]},encryptBlock:function(_,w){this._doCryptBlock(_,w,this._subKeys)},decryptBlock:function(_,w){this._doCryptBlock(_,w,this._invSubKeys)},_doCryptBlock:function(_,w,p){this._lBlock=_[w],this._rBlock=_[w+1],m.call(this,4,252645135),m.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),m.call(this,1,1431655765);for(var g=0;g<16;g++){for(var k=p[g],E=this._lBlock,A=this._rBlock,x=0,S=0;S<8;S++)x|=u[S][((A^k[S])&h[S])>>>0];this._lBlock=A,this._rBlock=E^x}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,m.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),_[w]=this._lBlock,_[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,w){var p=(this._lBlock>>>_^this._rBlock)&w;this._rBlock^=p,this._lBlock^=p<<_}function b(_,w){var p=(this._rBlock>>>_^this._lBlock)&w;this._lBlock^=p,this._rBlock^=p<<_}r.DES=o._createHelper(f);var v=a.TripleDES=o.extend({_doReset:function(){var _=this._key,w=_.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=w.slice(0,2),g=w.length<4?w.slice(0,2):w.slice(2,4),k=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(g)),this._des3=f.createEncryptor(s.create(k))},encryptBlock:function(_,w){this._des1.encryptBlock(_,w),this._des2.decryptBlock(_,w),this._des3.encryptBlock(_,w)},decryptBlock:function(_,w){this._des3.decryptBlock(_,w),this._des2.encryptBlock(_,w),this._des1.decryptBlock(_,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(v)}(),i.TripleDES})}(ch)),ch.exports}var dh={exports:{}},xg;function Zk(){return xg||(xg=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],m=0;m<256;m++)f[m]=m;for(var m=0,b=0;m<256;m++){var v=m%h,_=u[v>>>2]>>>24-v%4*8&255;b=(b+f[m]+_)%256;var w=f[m];f[m]=f[b],f[b]=w}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,m=0;m<4;m++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-m*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(dh)),dh.exports}var uh={exports:{}},Sg;function Gk(){return Sg||(Sg=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)u.call(this);for(var m=0;m<8;m++)v[m]^=b[m+4&7];if(f){var _=f.words,w=_[0],p=_[1],g=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=g>>>16|k&4294901760,A=k<<16|g&65535;v[0]^=g,v[1]^=E,v[2]^=k,v[3]^=A,v[4]^=g,v[5]^=E,v[6]^=k,v[7]^=A;for(var m=0;m<4;m++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],v=b&65535,_=b>>>16,w=((v*v>>>17)+v*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=w^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(uh)),uh.exports}var hh={exports:{}},Ng;function Qk(){return Ng||(Ng=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)u.call(this);for(var v=0;v<8;v++)b[v]^=m[v+4&7];if(f){var _=f.words,w=_[0],p=_[1],g=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=g>>>16|k&4294901760,A=k<<16|g&65535;b[0]^=g,b[1]^=E,b[2]^=k,b[3]^=A,b[4]^=g,b[5]^=E,b[6]^=k,b[7]^=A;for(var v=0;v<4;v++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],v=b&65535,_=b>>>16,w=((v*v>>>17)+v*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=w^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(hh)),hh.exports}var fh={exports:{}},Tg;function Jk(){return Tg||(Tg=1,function(e,t){(function(i,r,n){e.exports=r(De(),io(),ro(),Jn(),Yt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(v,_){let w=_>>24&255,p=_>>16&255,g=_>>8&255,k=_&255,E=v.sbox[0][w]+v.sbox[1][p];return E=E^v.sbox[2][g],E=E+v.sbox[3][k],E}function h(v,_,w){let p=_,g=w,k;for(let E=0;E1;--E)p=p^v.pbox[E],g=u(v,p)^g,k=p,p=g,g=k;return k=p,p=g,g=k,g=g^v.pbox[1],p=p^v.pbox[0],{left:p,right:g}}function m(v,_,w){for(let A=0;A<4;A++){v.sbox[A]=[];for(let x=0;x<256;x++)v.sbox[A][x]=c[A][x]}let p=0;for(let A=0;A=w&&(p=0);let g=0,k=0,E=0;for(let A=0;A=0;)e[t]=0}const rA=0,$5=1,nA=2,sA=3,oA=258,K0=29,Yl=256,Cl=Yl+1+K0,Po=30,W0=19,P5=2*Cl+1,fs=15,ph=16,aA=7,j0=256,D5=16,B5=17,L5=18,zf=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Vc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),lA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),O5=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cA=512,Qr=new Array((Cl+2)*2);la(Qr);const Ua=new Array(Po*2);la(Ua);const kl=new Array(cA);la(kl);const Al=new Array(oA-sA+1);la(Al);const q0=new Array(K0);la(q0);const wd=new Array(Po);la(wd);function mh(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let M5,V5,F5;function gh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const z5=e=>e<256?kl[e]:kl[256+(e>>>7)],El=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Di=(e,t,i)=>{e.bi_valid>ph-i?(e.bi_buf|=t<>ph-e.bi_valid,e.bi_valid+=i-ph):(e.bi_buf|=t<{Di(e,i[t*2],i[t*2+1])},H5=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},dA=e=>{e.bi_valid===16?(El(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},uA=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,m,b=0;for(h=0;h<=fs;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),m=i[d*2],e.opt_len+=m*(h+f),s&&(e.static_len+=m*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},U5=(e,t,i)=>{const r=new Array(fs+1);let n=0,s,o;for(s=1;s<=fs;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=H5(r[a]++,a))}},hA=()=>{let e,t,i,r,n;const s=new Array(fs+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?El(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$g=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?Dr(e,n,t):(o=Al[n],Dr(e,o+Yl+1,t),a=zf[o],a!==0&&(n-=q0[o],Di(e,n,a)),r--,o=z5(r),Dr(e,o,i),a=Vc[o],a!==0&&(r-=wd[o],Di(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=P5,o=0;o>1;o>=1;o--)vh(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vh(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,vh(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],uA(e,t),U5(i,l,e.bl_count)},Dg=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(Dg(e,e.dyn_ltree,e.l_desc.max_code),Dg(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=W0-1;t>=3&&e.bl_tree[O5[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},pA=(e,t,i,r)=>{let n;for(Di(e,t-257,5),Di(e,i-1,5),Di(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return Rg;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ig;for(i=32;i{Lg||(hA(),Lg=!0),e.l_desc=new gh(e.dyn_ltree,M5),e.d_desc=new gh(e.dyn_dtree,V5),e.bl_desc=new gh(e.bl_tree,F5),e.bi_buf=0,e.bi_valid=0,K5(e)},j5=(e,t,i,r)=>{Di(e,(rA<<1)+(r?1:0),3),W5(e),El(e,i),El(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},vA=e=>{Di(e,$5<<1,3),Dr(e,j0,Qr),dA(e)},yA=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===iA&&(e.strm.data_type=mA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),o=fA(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?j5(e,t,i,r):e.strategy===tA||s===n?(Di(e,($5<<1)+(r?1:0),3),Pg(e,Qr,Ua)):(Di(e,(nA<<1)+(r?1:0),3),pA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Pg(e,e.dyn_ltree,e.dyn_dtree)),K5(e),r&&W5(e)},bA=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(Al[i]+Yl+1)*2]++,e.dyn_dtree[z5(t)*2]++),e.sym_next===e.sym_end);var wA=gA,_A=j5,CA=yA,kA=bA,AA=vA,EA={_tr_init:wA,_tr_stored_block:_A,_tr_flush_block:CA,_tr_tally:kA,_tr_align:AA};const xA=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var xl=xA;const SA=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},NA=new Uint32Array(SA()),TA=(e,t,i,r)=>{const n=NA,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var Ft=TA,js={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},no={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:RA,_tr_stored_block:Uf,_tr_flush_block:IA,_tr_tally:On,_tr_align:$A}=EA,{Z_NO_FLUSH:Mn,Z_PARTIAL_FLUSH:PA,Z_FULL_FLUSH:DA,Z_FINISH:lr,Z_BLOCK:Og,Z_OK:Zt,Z_STREAM_END:Mg,Z_STREAM_ERROR:Br,Z_DATA_ERROR:BA,Z_BUF_ERROR:yh,Z_DEFAULT_COMPRESSION:LA,Z_FILTERED:OA,Z_HUFFMAN_ONLY:bc,Z_RLE:MA,Z_FIXED:VA,Z_DEFAULT_STRATEGY:FA,Z_UNKNOWN:zA,Z_DEFLATED:nu}=no,HA=9,UA=15,KA=8,WA=29,jA=256,Kf=jA+1+WA,qA=30,YA=19,XA=2*Kf+1,ZA=15,$e=3,$n=258,Lr=$n+$e+1,GA=32,Jo=42,Y0=57,Wf=69,jf=73,qf=91,Yf=103,ps=113,Ea=666,_i=1,ca=2,qs=3,da=4,QA=3,ms=(e,t)=>(e.msg=js[t],t),Vg=e=>e*2-(e>4?9:0),Rn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},JA=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let eE=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},Yi=(e,t)=>{IA(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ui(e.strm)},He=(e,t)=>{e.pending_buf[e.pending++]=t},ba=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Xf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=xl(e.adler,t,n,i):e.state.wrap===2&&(e.adler=Ft(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},q5=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Lr?e.strstart-(e.w_size-Lr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+$n;let f=c[r+o-1],m=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==m||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],m=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},ea=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Lr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),JA(e),r+=t),e.strm.avail_in===0)break;if(i=Xf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=$e)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=Vn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=Vn(e,e.ins_h,e.window[n+$e-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<$e)););}while(e.lookahead{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ui(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(Xf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Xf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===lr)&&t!==Mn&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===lr&&e.strm.avail_in===0&&r===n?1:0,Uf(e,e.block_start,r,o),e.block_start+=r,Ui(e.strm)),o?qs:_i)},bh=(e,t)=>{let i,r;for(;;){if(e.lookahead=$e&&(e.ins_h=Vn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-Lr&&(e.match_length=q5(e,i)),e.match_length>=$e)if(r=On(e,e.strstart-e.match_start,e.match_length-$e),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=$e){e.match_length--;do e.strstart++,e.ins_h=Vn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Vn(e,e.ins_h,e.window[e.strstart+1]);else r=On(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Yi(e,!1),e.strm.avail_out===0))return _i}return e.insert=e.strstart<$e-1?e.strstart:$e-1,t===lr?(Yi(e,!0),e.strm.avail_out===0?qs:da):e.sym_next&&(Yi(e,!1),e.strm.avail_out===0)?_i:ca},lo=(e,t)=>{let i,r,n;for(;;){if(e.lookahead=$e&&(e.ins_h=Vn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=$e-1,i!==0&&e.prev_length4096)&&(e.match_length=$e-1)),e.prev_length>=$e&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-$e,r=On(e,e.strstart-1-e.prev_match,e.prev_length-$e),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=Vn(e,e.ins_h,e.window[e.strstart+$e-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=$e-1,e.strstart++,r&&(Yi(e,!1),e.strm.avail_out===0))return _i}else if(e.match_available){if(r=On(e,0,e.window[e.strstart-1]),r&&Yi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return _i}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=On(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<$e-1?e.strstart:$e-1,t===lr?(Yi(e,!0),e.strm.avail_out===0?qs:da):e.sym_next&&(Yi(e,!1),e.strm.avail_out===0)?_i:ca},tE=(e,t)=>{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=$n){if(ea(e),e.lookahead<=$n&&t===Mn)return _i;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=$e&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+$n;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=$e?(i=On(e,1,e.match_length-$e),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=On(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(Yi(e,!1),e.strm.avail_out===0))return _i}return e.insert=0,t===lr?(Yi(e,!0),e.strm.avail_out===0?qs:da):e.sym_next&&(Yi(e,!1),e.strm.avail_out===0)?_i:ca},iE=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(ea(e),e.lookahead===0)){if(t===Mn)return _i;break}if(e.match_length=0,i=On(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(Yi(e,!1),e.strm.avail_out===0))return _i}return e.insert=0,t===lr?(Yi(e,!0),e.strm.avail_out===0?qs:da):e.sym_next&&(Yi(e,!1),e.strm.avail_out===0)?_i:ca};function Rr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const xa=[new Rr(0,0,0,0,Y5),new Rr(4,4,8,4,bh),new Rr(4,5,16,8,bh),new Rr(4,6,32,32,bh),new Rr(4,4,16,16,lo),new Rr(8,16,32,32,lo),new Rr(8,16,128,128,lo),new Rr(8,32,128,256,lo),new Rr(32,128,258,1024,lo),new Rr(32,258,258,4096,lo)],rE=e=>{e.window_size=2*e.w_size,Rn(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=$e-1,e.match_available=0,e.ins_h=0};function nE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(XA*2),this.dyn_dtree=new Uint16Array((2*qA+1)*2),this.bl_tree=new Uint16Array((2*YA+1)*2),Rn(this.dyn_ltree),Rn(this.dyn_dtree),Rn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ZA+1),this.heap=new Uint16Array(2*Kf+1),Rn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Kf+1),Rn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Xl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Jo&&t.status!==Y0&&t.status!==Wf&&t.status!==jf&&t.status!==qf&&t.status!==Yf&&t.status!==ps&&t.status!==Ea?1:0},X5=e=>{if(Xl(e))return ms(e,Br);e.total_in=e.total_out=0,e.data_type=zA;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Y0:t.wrap?Jo:ps,e.adler=t.wrap===2?0:1,t.last_flush=-2,RA(t),Zt},Z5=e=>{const t=X5(e);return t===Zt&&rE(e.state),t},sE=(e,t)=>Xl(e)||e.state.wrap!==2?Br:(e.state.gzhead=t,Zt),G5=(e,t,i,r,n,s)=>{if(!e)return Br;let o=1;if(t===LA&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>HA||i!==nu||r<8||r>15||t<0||t>9||s<0||s>VA||r===8&&o!==1)return ms(e,Br);r===8&&(r=9);const a=new nE;return e.state=a,a.strm=e,a.status=Jo,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<G5(e,t,nu,UA,KA,FA),aE=(e,t)=>{if(Xl(e)||t>Og||t<0)return e?ms(e,Br):Br;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===Ea&&t!==lr)return ms(e,e.avail_out===0?yh:Br);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(Ui(e),e.avail_out===0)return i.last_flush=-1,Zt}else if(e.avail_in===0&&Vg(t)<=Vg(r)&&t!==lr)return ms(e,yh);if(i.status===Ea&&e.avail_in!==0)return ms(e,yh);if(i.status===Jo&&i.wrap===0&&(i.status=ps),i.status===Jo){let n=nu+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=bc||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=GA),n+=31-n%31,ba(i,n),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1,i.status=ps,Ui(e),i.pending!==0)return i.last_flush=-1,Zt}if(i.status===Y0){if(e.adler=0,He(i,31),He(i,139),He(i,8),i.gzhead)He(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),He(i,i.gzhead.time&255),He(i,i.gzhead.time>>8&255),He(i,i.gzhead.time>>16&255),He(i,i.gzhead.time>>24&255),He(i,i.level===9?2:i.strategy>=bc||i.level<2?4:0),He(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(He(i,i.gzhead.extra.length&255),He(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Ft(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Wf;else if(He(i,0),He(i,0),He(i,0),He(i,0),He(i,0),He(i,i.level===9?2:i.strategy>=bc||i.level<2?4:0),He(i,QA),i.status=ps,Ui(e),i.pending!==0)return i.last_flush=-1,Zt}if(i.status===Wf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,Ui(e),i.pending!==0)return i.last_flush=-1,Zt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=jf}if(i.status===jf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n)),Ui(e),i.pending!==0)return i.last_flush=-1,Zt;n=0}i.gzindexn&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=qf}if(i.status===qf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n)),Ui(e),i.pending!==0)return i.last_flush=-1,Zt;n=0}i.gzindexn&&(e.adler=Ft(e.adler,i.pending_buf,i.pending-n,n))}i.status=Yf}if(i.status===Yf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(Ui(e),i.pending!==0))return i.last_flush=-1,Zt;He(i,e.adler&255),He(i,e.adler>>8&255),e.adler=0}if(i.status=ps,Ui(e),i.pending!==0)return i.last_flush=-1,Zt}if(e.avail_in!==0||i.lookahead!==0||t!==Mn&&i.status!==Ea){let n=i.level===0?Y5(i,t):i.strategy===bc?iE(i,t):i.strategy===MA?tE(i,t):xa[i.level].func(i,t);if((n===qs||n===da)&&(i.status=Ea),n===_i||n===qs)return e.avail_out===0&&(i.last_flush=-1),Zt;if(n===ca&&(t===PA?$A(i):t!==Og&&(Uf(i,0,0,!1),t===DA&&(Rn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Ui(e),e.avail_out===0))return i.last_flush=-1,Zt}return t!==lr?Zt:i.wrap<=0?Mg:(i.wrap===2?(He(i,e.adler&255),He(i,e.adler>>8&255),He(i,e.adler>>16&255),He(i,e.adler>>24&255),He(i,e.total_in&255),He(i,e.total_in>>8&255),He(i,e.total_in>>16&255),He(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),Ui(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Zt:Mg)},lE=e=>{if(Xl(e))return Br;const t=e.state.status;return e.state=null,t===ps?ms(e,BA):Zt},cE=(e,t)=>{let i=t.length;if(Xl(e))return Br;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==Jo||r.lookahead)return Br;if(n===1&&(e.adler=xl(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(Rn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,ea(r);r.lookahead>=$e;){let l=r.strstart,c=r.lookahead-($e-1);do r.ins_h=Vn(r,r.ins_h,r.window[l+$e-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=$e-1,ea(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=$e-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,Zt};var dE=oE,uE=G5,hE=Z5,fE=X5,pE=sE,mE=aE,gE=lE,vE=cE,yE="pako deflate (from Nodeca project)",Ka={deflateInit:dE,deflateInit2:uE,deflateReset:hE,deflateResetKeep:fE,deflateSetHeader:pE,deflate:mE,deflateEnd:gE,deflateSetDictionary:vE,deflateInfo:yE};const bE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var wE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)bE(i,r)&&(e[r]=i[r])}}return e},_E=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Sl[254]=Sl[254]=1;var CE=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const kE=(e,t)=>{if(t<65534&&e.subarray&&Q5)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return kE(s,n)},EE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+Sl[e[i]]>t?i:t},Nl={string2buf:CE,buf2string:AE,utf8border:EE};function xE(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var J5=xE;const e4=Object.prototype.toString,{Z_NO_FLUSH:SE,Z_SYNC_FLUSH:NE,Z_FULL_FLUSH:TE,Z_FINISH:RE,Z_OK:_d,Z_STREAM_END:IE,Z_DEFAULT_COMPRESSION:$E,Z_DEFAULT_STRATEGY:PE,Z_DEFLATED:DE}=no;function Zl(e){this.options=su.assign({level:$E,method:DE,chunkSize:16384,windowBits:15,memLevel:8,strategy:PE},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Ka.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==_d)throw new Error(js[i]);if(t.header&&Ka.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Nl.string2buf(t.dictionary):e4.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=Ka.deflateSetDictionary(this.strm,r),i!==_d)throw new Error(js[i]);this._dict_set=!0}}Zl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?RE:SE,typeof e=="string"?i.input=Nl.string2buf(e):e4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===NE||s===TE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=Ka.deflate(i,s),n===IE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ka.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===_d;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};Zl.prototype.onData=function(e){this.chunks.push(e)};Zl.prototype.onEnd=function(e){e===_d&&(this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function X0(e,t){const i=new Zl(t);if(i.push(e,!0),i.err)throw i.msg||js[i.err];return i.result}function BE(e,t){return t=t||{},t.raw=!0,X0(e,t)}function LE(e,t){return t=t||{},t.gzip=!0,X0(e,t)}var OE=Zl,ME=X0,VE=BE,FE=LE,zE=no,HE={Deflate:OE,deflate:ME,deflateRaw:VE,gzip:FE,constants:zE};const wc=16209,UE=16191;var KE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,m,b,v,_,w,p,g,k,E,A,x,S,C;const N=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),s=t.next_out,C=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=N.dmax,c=N.wsize,d=N.whave,u=N.wnext,h=N.window,f=N.hold,m=N.bits,b=N.lencode,v=N.distcode,_=(1<>>24,f>>>=g,m-=g,g=p>>>16&255,g===0)C[s++]=p&65535;else if(g&16){k=p&65535,g&=15,g&&(m>>=g,m-=g),m<15&&(f+=S[r++]<>>24,f>>>=g,m-=g,g=p>>>16&255,g&16){if(E=p&65535,g&=15,ml){t.msg="invalid distance too far back",N.mode=wc;break e}if(f>>>=g,m-=g,g=s-o,E>g){if(g=E-g,g>d&&N.sane){t.msg="invalid distance too far back",N.mode=wc;break e}if(A=0,x=h,u===0){if(A+=c-g,g2;)C[s++]=x[A++],C[s++]=x[A++],C[s++]=x[A++],k-=3;k&&(C[s++]=x[A++],k>1&&(C[s++]=x[A++]))}else{A=s-E;do C[s++]=C[A++],C[s++]=C[A++],C[s++]=C[A++],k-=3;while(k>2);k&&(C[s++]=C[A++],k>1&&(C[s++]=C[A++]))}}else if(g&64){t.msg="invalid distance code",N.mode=wc;break e}else{p=v[(p&65535)+(f&(1<>3,r-=k,m-=k<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,m=0,b=0,v=0,_=0,w=0,p,g,k,E,A,x=null,S;const C=new Uint16Array(co+1),N=new Uint16Array(co+1);let R=null,I,O,F;for(c=0;c<=co;c++)C[c]=0;for(d=0;d=1&&C[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===Hg||h!==1))return-1;for(N[1]=0,c=1;cFg||e===Ug&&_>zg)return 1;for(;;){I=c-b,o[d]+1=S?(O=R[o[d]-S],F=x[o[d]-S]):(O=96,F=0),p=1<>b)+g]=I<<24|O<<16|F|0;while(g!==0);for(p=1<>=1;if(p!==0?(w&=p-1,w+=p):w=0,d++,--C[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(w&E)!==k){for(b===0&&(b=f),A+=u,m=c-b,v=1<Fg||e===Ug&&_>zg)return 1;k=w&E,n[k]=f<<24|m<<16|A-s|0}}return w!==0&&(n[A+w]=c-b<<24|64<<16|0),a.bits=f,0};var Wa=XE;const ZE=0,t4=1,i4=2,{Z_FINISH:Kg,Z_BLOCK:GE,Z_TREES:_c,Z_OK:Ys,Z_STREAM_END:QE,Z_NEED_DICT:JE,Z_STREAM_ERROR:vr,Z_DATA_ERROR:r4,Z_MEM_ERROR:n4,Z_BUF_ERROR:ex,Z_DEFLATED:Wg}=no,ou=16180,jg=16181,qg=16182,Yg=16183,Xg=16184,Zg=16185,Gg=16186,Qg=16187,Jg=16188,ev=16189,Cd=16190,jr=16191,_h=16192,tv=16193,Ch=16194,iv=16195,rv=16196,nv=16197,sv=16198,Cc=16199,kc=16200,ov=16201,av=16202,lv=16203,cv=16204,dv=16205,kh=16206,uv=16207,hv=16208,nt=16209,s4=16210,o4=16211,tx=852,ix=592,rx=15,nx=rx,fv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function sx(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const so=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeo4?1:0},a4=e=>{if(so(e))return vr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ou,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(tx),t.distcode=t.distdyn=new Int32Array(ix),t.sane=1,t.back=-1,Ys},l4=e=>{if(so(e))return vr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,a4(e)},c4=(e,t)=>{let i;if(so(e))return vr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?vr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,l4(e))},d4=(e,t)=>{if(!e)return vr;const i=new sx;e.state=i,i.strm=e,i.window=null,i.mode=ou;const r=c4(e,t);return r!==Ys&&(e.state=null),r},ox=e=>d4(e,nx);let pv=!0,Ah,Eh;const ax=e=>{if(pv){Ah=new Int32Array(512),Eh=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Wa(t4,e.lens,0,288,Ah,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Wa(i4,e.lens,0,32,Eh,0,e.work,{bits:5}),pv=!1}e.lencode=Ah,e.lenbits=9,e.distcode=Eh,e.distbits=5},u4=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,m,b,v=0,_,w,p,g,k,E,A,x;const S=new Uint8Array(4);let C,N;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(so(e)||!e.output||!e.input&&e.avail_in!==0)return vr;i=e.state,i.mode===jr&&(i.mode=_h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,x=Ys;e:for(;;)switch(i.mode){case ou:if(i.wrap===0){i.mode=_h;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Ft(i.check,S,2,0),c=0,d=0,i.mode=jg;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=nt;break}if((c&15)!==Wg){e.msg="unknown compression method",i.mode=nt;break}if(c>>>=4,d-=4,A=(c&15)+8,i.wbits===0&&(i.wbits=A),A>15||A>i.wbits){e.msg="invalid window size",i.mode=nt;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Ft(i.check,S,2,0)),c=0,d=0,i.mode=qg;case qg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,i.check=Ft(i.check,S,4,0)),c=0,d=0,i.mode=Yg;case Yg:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Ft(i.check,S,2,0)),c=0,d=0,i.mode=Xg;case Xg:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Ft(i.check,S,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=Zg;case Zg:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(A=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),A)),i.flags&512&&i.wrap&4&&(i.check=Ft(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Gg;case Gg:if(i.flags&2048){if(a===0)break e;f=0;do A=r[s+f++],i.head&&A&&i.length<65536&&(i.head.name+=String.fromCharCode(A));while(A&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=jr;break;case ev:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=kh;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=tv;break;case 1:if(ax(i),i.mode=Cc,t===_c){c>>>=2,d-=2;break e}break;case 2:i.mode=rv;break;case 3:e.msg="invalid block type",i.mode=nt}c>>>=2,d-=2;break;case tv:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=nt;break}if(i.length=c&65535,c=0,d=0,i.mode=Ch,t===_c)break e;case Ch:i.mode=iv;case iv:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=jr;break;case rv:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=nt;break}i.have=0,i.mode=nv;case nv:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[R[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,C={bits:i.lenbits},x=Wa(ZE,i.lens,0,19,i.lencode,0,i.work,C),i.lenbits=C.bits,x){e.msg="invalid code lengths set",i.mode=nt;break}i.have=0,i.mode=sv;case sv:for(;i.have>>24,w=v>>>16&255,p=v&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=_,d-=_,i.lens[i.have++]=p;else{if(p===16){for(N=_+2;d>>=_,d-=_,i.have===0){e.msg="invalid bit length repeat",i.mode=nt;break}A=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(N=_+3;d>>=_,d-=_,A=0,f=3+(c&7),c>>>=3,d-=3}else{for(N=_+7;d>>=_,d-=_,A=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=nt;break}for(;f--;)i.lens[i.have++]=A}}if(i.mode===nt)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=nt;break}if(i.lenbits=9,C={bits:i.lenbits},x=Wa(t4,i.lens,0,i.nlen,i.lencode,0,i.work,C),i.lenbits=C.bits,x){e.msg="invalid literal/lengths set",i.mode=nt;break}if(i.distbits=6,i.distcode=i.distdyn,C={bits:i.distbits},x=Wa(i4,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,C),i.distbits=C.bits,x){e.msg="invalid distances set",i.mode=nt;break}if(i.mode=Cc,t===_c)break e;case Cc:i.mode=kc;case kc:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,KE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===jr&&(i.back=-1);break}for(i.back=0;v=i.lencode[c&(1<>>24,w=v>>>16&255,p=v&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>g)],_=v>>>24,w=v>>>16&255,p=v&65535,!(g+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=g,d-=g,i.back+=g}if(c>>>=_,d-=_,i.back+=_,i.length=p,w===0){i.mode=dv;break}if(w&32){i.back=-1,i.mode=jr;break}if(w&64){e.msg="invalid literal/length code",i.mode=nt;break}i.extra=w&15,i.mode=ov;case ov:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=av;case av:for(;v=i.distcode[c&(1<>>24,w=v>>>16&255,p=v&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>g)],_=v>>>24,w=v>>>16&255,p=v&65535,!(g+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=g,d-=g,i.back+=g}if(c>>>=_,d-=_,i.back+=_,w&64){e.msg="invalid distance code",i.mode=nt;break}i.offset=p,i.extra=w&15,i.mode=lv;case lv:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=nt;break}i.mode=cv;case cv:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=nt;break}f>i.wnext?(f-=i.wnext,m=i.wsize-f):m=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,m=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[m++];while(--f);i.length===0&&(i.mode=kc);break;case dv:if(l===0)break e;n[o++]=i.length,l--,i.mode=kc;break;case kh:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(so(e))return vr;let t=e.state;return t.window&&(t.window=null),e.state=null,Ys},dx=(e,t)=>{if(so(e))return vr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,Ys):vr},ux=(e,t)=>{const i=t.length;let r,n,s;return so(e)||(r=e.state,r.wrap!==0&&r.mode!==Cd)?vr:r.mode===Cd&&(n=1,n=xl(n,t,i,0),n!==r.check)?r4:(s=u4(e,t,i,i),s?(r.mode=s4,n4):(r.havedict=1,Ys))};var hx=l4,fx=c4,px=a4,mx=ox,gx=d4,vx=lx,yx=cx,bx=dx,wx=ux,_x="pako inflate (from Nodeca project)",Jr={inflateReset:hx,inflateReset2:fx,inflateResetKeep:px,inflateInit:mx,inflateInit2:gx,inflate:vx,inflateEnd:yx,inflateGetHeader:bx,inflateSetDictionary:wx,inflateInfo:_x};function Cx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var kx=Cx;const h4=Object.prototype.toString,{Z_NO_FLUSH:Ax,Z_FINISH:Ex,Z_OK:Tl,Z_STREAM_END:xh,Z_NEED_DICT:Sh,Z_STREAM_ERROR:xx,Z_DATA_ERROR:mv,Z_MEM_ERROR:Sx}=no;function Gl(e){this.options=su.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Jr.inflateInit2(this.strm,t.windowBits);if(i!==Tl)throw new Error(js[i]);if(this.header=new kx,Jr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Nl.string2buf(t.dictionary):h4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Jr.inflateSetDictionary(this.strm,t.dictionary),i!==Tl)))throw new Error(js[i])}Gl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Ex:Ax,h4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Jr.inflate(i,o),s===Sh&&n&&(s=Jr.inflateSetDictionary(i,n),s===Tl?s=Jr.inflate(i,o):s===mv&&(s=Sh));i.avail_in>0&&s===xh&&i.state.wrap>0&&e[i.next_in]!==0;)Jr.inflateReset(i),s=Jr.inflate(i,o);switch(s){case xx:case mv:case Sh:case Sx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===xh))if(this.options.to==="string"){let l=Nl.utf8border(i.output,i.next_out),c=i.next_out-l,d=Nl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===Tl&&a===0)){if(s===xh)return s=Jr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Gl.prototype.onData=function(e){this.chunks.push(e)};Gl.prototype.onEnd=function(e){e===Tl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Z0(e,t){const i=new Gl(t);if(i.push(e),i.err)throw i.msg||js[i.err];return i.result}function Nx(e,t){return t=t||{},t.raw=!0,Z0(e,t)}var Tx=Gl,Rx=Z0,Ix=Nx,$x=Z0,Px=no,Dx={Inflate:Tx,inflate:Rx,inflateRaw:Ix,ungzip:$x,constants:Px};const{Deflate:Bx,deflate:Lx,deflateRaw:Ox,gzip:Mx}=HE,{Inflate:Vx,inflate:Fx,inflateRaw:zx,ungzip:Hx}=Dx;var Ux=Bx,Kx=Lx,Wx=Ox,jx=Mx,qx=Vx,Yx=Fx,Xx=zx,Zx=Hx,Gx=no,au={Deflate:Ux,deflate:Kx,deflateRaw:Wx,gzip:jx,Inflate:qx,inflate:Yx,inflateRaw:Xx,ungzip:Zx,constants:Gx},qe=new Uint8Array([0,64,128,192,224]),Ye=new Uint8Array([2,2,2,3,3]),G0=['": "','": ',": +\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],Fc=new Array(94),qa=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ya=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),gv=new Uint8Array([57,58,59,87,88,89]),Ri=5;const Qx=90,vv=91,Jx=39,eS=40,tS=54,iS=46,yv=81,Zf=248,Gf=5,rS=128,nS=2,sS=0,f4=2,p4=0,m4=6,g4=4,bv=33;function oS(e,t,i){for(var r=0;r32&&(Fc[i-bv]=(e<<5)+t,i>=97&&i<=122&&(Fc[i-bv-32]=(e<<5)+t))}wv=1}}var aS=new Uint8Array([128,192,224,240,248,252,254,255]);function he(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&aS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function bi(e,t,i,r){return r==st?(i=he(e,t,i,Zf,Gf),i=he(e,t,i,rS,nS)):i=he(e,t,i,sS,f4),i}function ns(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Re)return[i,n];switch(a){case Re:n!=Re&&(i=bi(e,t,i,n),i=he(e,t,i,s[Re],o[Re]),n=Re);break;case ja:i=bi(e,t,i,n),i=he(e,t,i,s[ja],o[ja]);break;case _t:n!=_t&&(i=bi(e,t,i,n),i=he(e,t,i,s[_t],o[_t]),kd[a].charCodeAt(l)>=48&&kd[a].charCodeAt(l)<=57&&(n=_t))}return[he(e,t,i,qa[l],Ya[l]),n]}const gs=new Uint8Array([2,4,7,11,16]),Qf=[4,20,148,2196,67732],Ad=new Uint8Array([1,130,195,228,244]);function rn(e,t,i,r){for(var n=0;n<5;n++)if(r0?Qf[n-1]:0)<<16-gs[n];return gs[n]>8?(i=he(e,t,i,s>>8,8),i=he(e,t,i,s&255,gs[n]-8)):i=he(e,t,i,s>>8,gs[n]),i}return i}const ar=new Uint8Array([6,12,14,16,21]),y4=[0,64,4160,20544,86080];function lS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-y4[l];return ar[l]>16?(c<<=24-ar[l],i=he(e,t,i,c>>16,8),i=he(e,t,i,c>>8&255,8),i=he(e,t,i,c&255,ar[l]-16)):ar[l]>8?(c<<=16-ar[l],i=he(e,t,i,c>>8,8),i=he(e,t,i,c&255,ar[l]-8)):(c<<=8-ar[l],i=he(e,t,i,c&255,ar[l])),i}return i}function Nh(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>Ri-1){var f=d-i-Ri,m=i-c-Ri+1;f>h&&(h=f,u=m)}}return h>0?(s=bi(r,n,s,o),s=he(r,n,s,a[Xs],l[Xs]),s=rn(r,n,s,h),s=rn(r,n,s,u),i+=h+Ri,i--,[i,s]):[-i,s]}function dS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,m=0,b=0,v=0;do for(var _,w,p=o[a-b],g=p.length,k=b==0?i:g;v>6==2;)w--;if(w-v>=Ri){if(h>0){if(v>f)continue;s=u}h=w-v,f=v,m=b,s=bi(r,n,s,l),s=he(r,n,s,c[Xs],d[Xs]),s=rn(r,n,s,h-Ri),s=rn(r,n,s,f),s=rn(r,n,s,m),v+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Th(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Xr=0,$r=1,ta=2,Jf=3;function Ac(e){return e>=48&&e<=57?Xr:e>=97&&e<=102?$r:e>=65&&e<=70?ta:Jf}function Ec(e,t,i,r,n,s){return i=bi(e,t,i,r),i=he(e,t,i,n[_t],s[_t]),i=he(e,t,i,0,2),i}function uS(e,t,i,r,n,s,o){return o[Re]?(_t!=r&&(i=bi(e,t,i,r),i=he(e,t,i,s[_t],o[_t])),i=he(e,t,i,qa[vv&31],Ya[vv&31])):i=he(e,t,i,p4,n?g4:m4),i=he(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function hS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&c0)continue;if(c<0&&u<0)return p+1;c=-c}else{if([c,u]=cS(e,t,c,i,p,u,l,r,n),c>0)continue;if(c<0&&u<0)return p+1;c=-c}if(h=e[c],c>0&&t>4&&c0&&h<=(g?"~":126)&&h==e[c-1]&&h==e[c+1]&&h==e[c+2]&&h==e[c+3]){for(var k=c+4;k0){var E=g?"-":45,A=Xr;if(e[c+8]===E&&e[c+13]===E&&e[c+18]===E&&e[c+23]===E){for(var x=c;x0){var A=Xr,N=0;do{var S=g?e.charCodeAt(c+N):e[c+N],C=Ac(S);if(C==Jf||a)break;if(C!=Xr){if(A!=Xr&&A!=C)break;A=C}N++}while(c+N10&&A==Xr&&(A=$r),(A==$r||A==ta)&&N>3){u=Ec(i,p,u,l,r,n),u=he(i,p,u,A==$r?128:224,A==$r?2:4),u=rn(i,p,u,N);do{var S=g?e.charCodeAt(c):e[c];u=he(i,p,u,Th(S),4),c++}while(--N>0);c--;continue}}if(o!=null&&o!=null){var R;for(R=0;R<5;R++)if(typeof o[R]=="string"){for(var I=o[R].length,O=0;O(F==="r"?55:F==="t"?51:49))break}else if(F.charCodeAt(0)!==h)break}if(O/I>.66){I=I-O,u=Ec(i,p,u,l,r,n),u=he(i,p,u,0,1),u=he(i,p,u,Ad[R]&248,Ad[R]&7),u=rn(i,p,u,I);for(var L=0;L=0&&c<=t-M&&n[gv[R]>>5]&&hS(s[R].slice(0,M),e.slice(c,c+M),g)){[u,l]=ns(i,p,u,gv[R],l,r,n),c+=M,c--;break}}if(R<6)continue}if(h=g?e.charCodeAt(c):e[c],b=!1,h>=65&&h<=90?b=!0:v&&(v=!1,u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]),l=Re),b&&!v&&(l==_t&&(u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]),l=Re),u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]),l==st&&(l=Re,u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]))),f=0,c+1=32&&h<=126){if(b&&!v){for(d=c+4;d>=c&&d90)break}d==c-1&&(u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]),l=Re,v=!0)}if(l==st){var ee=" .,".indexOf(String.fromCharCode(h));if(ee!=-1){u=he(i,p,u,Zf,Gf),u=he(i,p,u,fS[ee],pS[ee]);continue}}h-=32,v&&b&&(h+=32),h===0?l==_t?u=he(i,p,u,qa[yv&31],Ya[yv&31]):u=he(i,p,u,qa[1],Ya[1]):(h=h-1,[u,l]=ns(i,p,u,Fc[h],l,r,n))}else if(h===13&&f===10)[u,l]=ns(i,p,u,eS,l,r,n),c++;else if(h===10)l==st?(u=he(i,p,u,Zf,Gf),u=he(i,p,u,240,4)):[u,l]=ns(i,p,u,Jx,l,r,n);else if(h===13)[u,l]=ns(i,p,u,tS,l,r,n);else if(h===9)[u,l]=ns(i,p,u,iS,l,r,n);else{var ae,z,K;if([ae,z]=Nh(e,t,c),ae>0)c+=z,l!=st&&([K,z]=Nh(e,t,c),K>0?(l!=Re&&(u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re])),u=bi(i,p,u,l),u=he(i,p,u,r[Re],n[Re]),u=he(i,p,u,qa[1],Ya[1]),l=st):(u=bi(i,p,u,l),u=he(i,p,u,r[st],n[st]))),u=lS(i,p,u,ae,m),m=ae,c--;else{for(var Z=1,W=c+1;W0||W0);c--}}}{var xe=(u+7)/8;return u=uS(i,xe,u,l,v,r,n),xe}}function at(e,t,i,r=G0){let n=new Uint8Array(2048),s,o;return s=xc(e,t,n,qe,Ye,r,Xe,!1),o=xc(e,t,n,qe,Ye,r,Xe,!0),n=void 0,s>=o?xc(e,t,i,qe,Ye,r,Xe,!0):xc(e,t,i,qe,Ye,r,Xe,!1)}function Q0(e,t){return e[t>>3]&128>>t%8}function J0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const mS=5,gS=new Uint8Array([127,191,223,239,255]),vS=new Uint8Array([0,4,8,12,20]),yS=new Uint8Array([127,63,31,15,15]),bS=new Uint8Array([5,4,3,1,0]),wS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function Rh(e,t,i){if(i>bS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&_S[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function Rl(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function Xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=Xa(e,i,t,gs[r])+(r>0?Qf[r-1]:0);return t+=gs[r],[n,t]}function CS(e,t,i){var r=0;if([r,t]=Rl(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=Rl(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=Xa(e,i,t,ar[r]);return s+=y4[r],t+=ar[r],[n>0?-s:s,t]}return[0,t]}function _v(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=nn(e,n,t),u+=Ri,u=i.length);b++)i[r]=m[h+b],r++;return[n,r]}function Cv(e,t,i,r,n){var s=0;if([s,n]=nn(e,n,t),s+=Ri,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function kv(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function br(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function et(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;v4(),l=1,a=c=Re,u=0;var m=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var w=_&255;if(w==99)break;switch(w){case 0:b=br(i,b," ");continue;case 1:if([c,l]=Ih(e,t,l,r,n),c==99){l=t;continue}if(c==st||c==Re){a=c;continue}if(c==Xs){if(h==null?[l,b]=Cv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=br(i,b,",");continue;case 3:b=br(i,b,".");continue;case 4:b=br(i,b,` +`);continue}}else m+=_,m>0&&(i==null?b+=String.fromCodePoint(m):b=kS(i,b,m));if(a==st&&c==st)continue}else c=a;var p="",g=u;if([d,l]=Rh(e,t,l),d==99||c==99){l=v;break}if(d==0&&c!=ja){if(l>=t)break;if((c!=_t||a!=st)&&([c,l]=Ih(e,t,l,r,n),c==99||l>=t)){l=v;break}if(c==Re)if(a==Re){if(n[Re]==0&&p4==(J0(e,t,l-f4)&255<<8-(u?g4:m4)))break;if(u){g=u=0;continue}if([d,l]=Rh(e,t,l),d==99){l=v;break}if(d==0){if([c,l]=Ih(e,t,l,r,n),c==99){l=v;break}if(c==Re){u=1;continue}}g=1}else{a=Re;continue}else if(c==Xs){if(h==null?[l,b]=Cv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==st)continue;if((c!=_t||a!=st)&&([d,l]=Rh(e,t,l)),d==99){l=v;break}if(c==_t&&d==0){var k;if([k,l]=Rl(e,t,l,5),k==99)break;if(k==0){if([k,l]=Rl(e,t,l,4),k>=5)break;var E;if([E,l]=nn(e,l,t),E<0||o[k]==null)break;var A=o[k].length;if(E>A)break;E=A-E;for(var x=!1,S=0;S0)}else{var L=0;if(k==2||k==4)L=32;else if([L,l]=nn(e,l,t),L<0||L==0)break;do{var M=Xa(e,t,l,4);if(M<0)break;var I=kv(M,k<3?$r:ta);b=br(i,b,I),(k==2||k==4)&&(L==25||L==21||L==17||L==13)&&(b=br(i,b,"-")),l+=4}while(--L>0);if(L>0)break}a==st&&(c=st);continue}}}if(g&&d==1){c=a=st;continue}if(c<3&&d<28&&(p=kd[c].charAt(d)),p>="a"&&p<="z")a=Re,g&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=_t;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=$h(i,b,`\r +`);else if(c==_t&&d==26){var V;if([V,l]=nn(e,l,t),V<0)break;V+=4;for(var ee=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);V--;)b=br(i,b,ee)}else if(c==ja&&d>24)d-=25,b=$h(i,b,s[d]);else if(c==_t&&d>22&&d<26)d-=20,b=$h(i,b,s[d]);else break;a==st&&(c=st);continue}a==st&&(c=st),b=br(i,b,p)}return b}var gn=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};gn.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};gn.prototype.init_by_array=function(e,t){var i,r,n;for(this.init_seed(19650218),i=1,r=0,n=this.N>t?this.N:t;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1664525<<16)+(s&65535)*1664525)+e[r]+r,this.mt[i]>>>=0,i++,r++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),r>=t&&(r=0)}for(n=this.N-1;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1566083941<<16)+(s&65535)*1566083941)-i,this.mt[i]>>>=0,i++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1)}this.mt[0]=2147483648};gn.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i>>1^t[e&1];for(;i>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};gn.prototype.random_int31=function(){return this.random_int()>>>1};gn.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};gn.prototype.random=function(){return this.random_int()*(1/4294967296)};gn.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};gn.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var AS=gn;const b4=N5(AS),ES='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var Sa=0,em=new Uint8Array(32);const Ls="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const xS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",SS="1234567890",NS="+=_-/?.>,<|`~!@#$%^&*(){}[];:",Do="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",Cs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const TS="桜込凪雫実沢",RS="玚俟玊欤瞐珏",jn="孎",ep=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],tp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],ip=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],rp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],np=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],sp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],op=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],ap=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],lp=["https://",".cn",".com",".net",".org",".xyz"],cp=["https://",".info",".moe",".cc",".co",".dev"],dp=["https://",".io",".us",".eu",".jp",".de"],zt=JSON.parse(ES);function w4(e,t,i){let r=Ht.SHA256(t),n=zc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Ht.lib.WordArray.create(n),a=Ht.SHA256(o),l=zc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Ht.lib.WordArray.create(c),h=Ht.lib.WordArray.create(e),f=Ht.AES.encrypt(h,r,{mode:Ht.mode.CTR,padding:Ht.pad.NoPadding,iv:u});return zc(f.ciphertext)}function Av(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function IS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function $S(e){let t=new Uint8Array(2048),i=Ed(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(ep[a])!=-1){r=254;break}if(i.indexOf(tp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ip[a])!=-1){r=253;break}if(i.indexOf(rp[a])!=-1){r=252;break}if(i.indexOf(np[a])!=-1){r=244;break}if(i.indexOf(sp[a])!=-1){r=251;break}if(i.indexOf(op[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ap[a])!=-1){r=249;break}if(i.indexOf(lp[a])!=-1){r=248;break}if(i.indexOf(cp[a])!=-1){r=247;break}if(i.indexOf(dp[a])!=-1){r=246;break}}let n;switch(r){case 255:n=at(e,e.byteLength,t);break;case 254:n=at(e,e.byteLength,t,ep);break;case 245:n=at(e,e.byteLength,t,tp);break;case 253:n=at(e,e.byteLength,t,ip);break;case 252:n=at(e,e.byteLength,t,rp);break;case 244:n=at(e,e.byteLength,t,np);break;case 251:n=at(e,e.byteLength,t,sp);break;case 250:n=at(e,e.byteLength,t,op);break;case 249:n=at(e,e.byteLength,t,ap);break;case 248:n=at(e,e.byteLength,t,lp);break;case 247:n=at(e,e.byteLength,t,cp);break;case 246:n=at(e,e.byteLength,t,dp);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function PS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=et(n,n.byteLength,s,qe,Ye,G0,Xe);break;case 254:o=et(n,n.byteLength,s,qe,Ye,ep,Xe);break;case 245:o=et(n,n.byteLength,s,qe,Ye,tp,Xe);break;case 253:o=et(n,n.byteLength,s,qe,Ye,ip,Xe);break;case 252:o=et(n,n.byteLength,s,qe,Ye,rp,Xe);break;case 244:o=et(n,n.byteLength,s,qe,Ye,np,Xe);break;case 251:o=et(n,n.byteLength,s,qe,Ye,sp,Xe);break;case 250:o=et(n,n.byteLength,s,qe,Ye,op,Xe);break;case 249:o=et(n,n.byteLength,s,qe,Ye,ap,Xe);break;case 248:o=et(n,n.byteLength,s,qe,Ye,lp,Xe);break;case 247:o=et(n,n.byteLength,s,qe,Ye,cp,Xe);break;case 246:o=et(n,n.byteLength,s,qe,Ye,dp,Xe);break}return s.subarray(0,o)}function _4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function DS(e){let t=e[e.byteLength-1];return _4(e.subarray(0,e.byteLength-1))==t}function BS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function LS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function zc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function C4(e){let t=gr.encode(e);return gr.toUint8Array(t)}function Ed(e){let t=gr.fromUint8Array(e);return gr.decode(t)}function Ev(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function en(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function xv(e,t,i){return e.slice(0,i)+t+e.slice(i)}function OS(e,t){return e.filter(i=>!t.includes(i))}function uo(e,t){return e.slice(t)+e.slice(0,t)}function ho(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function fo(e){let t,i,r,n,s,o;return t=Ls.indexOf(e),i=Do.indexOf(e),r=Ls.indexOf(vs[t]),n=Do.indexOf(ws[i]),s=Ls.indexOf(ys[r]),o=Do.indexOf(_s[n]),t!=-1?bs[s]:i!=-1?Cs[o]:jn}function Sv(e){let t,i,r,n,s,o;return t=bs.indexOf(e),i=Cs.indexOf(e),r=ys.indexOf(Ls[t]),n=_s.indexOf(Do[i]),s=vs.indexOf(Ls[r]),o=ws.indexOf(Do[n]),t!=-1?Ls[s]:i!=-1?Do[o]:jn}function xd(){let e=0;Sa==32&&(Sa=0),e=em[Sa]%10,e==0&&(e=10),e%2==0?(vs=uo(vs,6),ws=uo(ws,6),ys=ho(ys,e*2),_s=ho(_s,e*2),bs=uo(bs,e/2+1),Cs=uo(Cs,e/2+1)):(vs=ho(vs,3),ws=ho(ws,3),ys=uo(ys,e),_s=uo(_s,e),bs=ho(bs,(e+7)/2),Cs=ho(Cs,(e+7)/2)),Sa++}function Za(){Sa=0,em=new Array(32),vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",Cs="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function k4(e){let t=Ht.SHA256(e);em=zc(t)}class A4{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Nv(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Sv(r))});if(i)return i;for(let r in zt.basic.numbersymbol)zt.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Sv(r))});return i||jn}const FS='{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1D/非/N/ye","1B/N/曰","1B/若夫/N","1C/anti/MV/V/ye/P","2B/A/N/曰","2B/N/以/A","2C/N/anti/在/A","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2D/but/MV/A/zhe/A","3C/N/V/by/N","3B/初,/N/V/by/N","3B/夫/N/anti/V/by/N","3B/AD/V/zhi/谓/A","3B/V/而/V/zhi/zhi/谓/A","3B/N/,/N/zhi/N/ye/P","3D/A/之/V/者/必/有/N/P","4D/非/N/不/A/,/V/不/A","4C/A/N/AD/V","4C/V/N/以/V/N","4E/N/不在/A/,/有/N/则/A/P","4D/A/N/常有/,/而/A/N/不常有/P","4E/N/有/MV/V/,/N/有/AD/然/P","4D/N/无/N/,/无以/V/N","5D/V/N/而/V/A/,/V/zhi/道/ye/P","5E/N/zhi/V/V/,/实为/A/A/P","5C/本/MV/V/A/,/anti/V/N/N","5B/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5B/今/N/乃/A/N/A/N","5C/A/N/V/A/N","5B/夫/N/、/N/不/MV/AD/V/N","5D/不/有/A/N/,/何/V/A/N/Q","6B/以/N/V/,/like/V/N/V/N","6B/A/N/zhi/N/,/V/zhi/以/V/其/N","6B/A/N/V/于/N/而/V/N","6B/A/N/未/V/N/、/N/之/N","7C/N/以/A/A/,/AD/V/A/N","7B/V/N/A/,/A/N/V/N","7B/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7C/或/V/N/V/N/,/V/N/于/N","7E/则有/N/A/N/A/,/N/N/具/V","7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8D/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8D/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8C/V/N/A/A/,/V/N/A/A","8C/N/V/A/N/,/N/V/A/N","8C/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8C/A/N/V/N/,/N/N/V/N/P","8B/尝/V/A/N/,/AD/V/A/N/zhi/N","8D/予/V/夫/A/N/A/N/,/在/A/N/之/N","8D/N/V/于/A/N/,/而/N/V/于/A/N","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9D/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9B/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9D/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1B/非/N/ye","1C/anti/MV/V/ye","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2C/but/MV/A/zhe/A","3C/N/with/N/V","3B/N/曰,何/A/zhi/V/Q","4C/A/N/AD/V","4C/V/N/以/V/N","4D/N/无/N/,/无以/V/N/P","4E/N/不在/A/,/有/N/则/A/P","4C/N/有/MV/V/,/N/有/AD/然/P","4D/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4D/A/N/常有/,/而/A/N/不常有/P","4C/不/以/N/V/,/不/以/N/V/P","5B/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5C/本/MV/V/A/,/anti/V/N/N","5B/今/N/乃/A/N/A/N","5E/每/有/V/N/,/便/AD/然/V/N/P","5D/N/V/而/A/N/V/也","5E/不/有/A/N/,/何/V/A/N/Q","6B/以/N/V/,/like/V/N/V/N","6C/N/V/,/V/N/V/N","6E/虽/V/V/A/A/,/A/A/不/同/P","6D/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6B/A/N/V/于/N/而/V/N","6B/A/N/未/V/N/、/N/之/N","6C/V/A/N/,/V/A/N","6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6D/将/有/V/,/则/V/A/N/以/V/N/P","7B/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7C/或/V/N/V/N/,/V/N/于/N","7D/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7D/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7B/有/A/N/、/A/N/、/A/N/之/N/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8E/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8C/V/N/A/A/,/V/N/A/A","8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8C/A/N/V/N/,/N/N/V/N/P","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8D/予/V/夫/A/N/A/N/,/在/A/N/之/N","8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8D/N/V/于/A/N/,/而/N/V/于/A/N","8B/A/N/MV/A/N/之/A/,/V/N/中/之/A","8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8B/使/其/A/N/AD/V/,/A/N/AD/V/P","9B/N/MV/V/N/V/V/,/but/N/N/AD/V","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9E/是/N/ye/,/N/A/N/A/,/N/A/N/A","9E/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1B/非/N/ye","1C/anti/MV/V/ye","2C/唯/N/V/zhi","2B/V/by/N","2D/其/also/A/hu/其/V/ye/P","2C/N/make/N/zhi","2C/MV/N/zhe/A","2E/有/N/则/A","2C/V/zhe/V/zhi","2C/but/MV/A/zhe/A","3C/V/在/A/N","3D/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3D/某也/A/,/某也/A/,/可/不/A/哉","4B/V/N/zhi/N/by/N","4C/A/N/AD/V","4C/V/N/以/V/N","4D/N/无/N/,/无以/V/N","4D/噫/,/A/N/ye/,/N/谁/与/V/Q","4C/不/以/N/V/,/不/以/N/V/P","5B/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5D/今/V/N/以/V/A/N","5B/N/乃/V/V/N/zhi/N","5C/本/MV/V/A/,/anti/V/N/N","5B/今/N/乃/A/N/A/N","5D/N/V/而/A/N/V/也","5E/不/有/A/N/,/何/V/A/N/Q","6D/以/N/V/,/like/V/N/V/N","6D/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6B/N/V/,/V/N/V/N","6E/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6D/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6D/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6E/虽/V/V/A/A/,/A/A/不/同/P","6D/将/有/V/,/则/V/A/N/以/V/N/P","7D/N/V/以/N/V/,/V/不/V/N","7C/N/N/V/N/,/A/于/N/N","7D/MV/AD/V/A/N/,/but/V/V/不/A","7E/或/V/N/V/N/,/V/N/于/N","7D/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7D/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7D/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7B/有/A/N/、/A/N/、/A/N/之/N/P","8E/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8D/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8D/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8C/V/N/A/A/,/V/N/A/A","8B/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8C/A/N/AD/V/,/N/N/AD/V","8D/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8D/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8D/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8C/使/其/A/N/AD/V/,/A/N/AD/V/P","9D/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9B/N/MV/V/N/V/V/,/but/N/N/AD/V","9D/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9C/此/N/有/A/N/A/N/,/A/N/A/N/P","9B/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}';var Na=0,tm=new Uint8Array(32);const ft="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var ks="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const zS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",HS="1234567890",US="+/=",wt="0123456789+/=";var xs="0123456789+/=",Ss="5=0764+389/12",Ns="0123456789+/=";const ia="孎",up=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],hp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],fp=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],pp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],mp=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],gp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],vp=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],yp=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],bp=["https://",".cn",".com",".net",".org",".xyz"],wp=["https://",".info",".moe",".cc",".co",".dev"],_p=["https://",".io",".us",".eu",".jp",".de"],le=JSON.parse(FS);let yi={},Ot="";function KS(){yi={},Ot="";for(let e=0;e<52;e++)yi[ft[e]]=[],yi[ft[e]].push(le.Actual.N.alphabet[ft[e]]),yi[ft[e]].push(le.Actual.A.alphabet[ft[e]]),yi[ft[e]].push(le.Actual.V.alphabet[ft[e]]),Ot=Ot+le.Actual.N.alphabet[ft[e]],Ot=Ot+le.Actual.A.alphabet[ft[e]],Ot=Ot+le.Actual.V.alphabet[ft[e]],le.Actual.A.alphabet[ft[e]]!=le.Actual.AD.alphabet[ft[e]]&&(yi[ft[e]].push(le.Actual.AD.alphabet[ft[e]]),Ot=Ot+le.Actual.AD.alphabet[ft[e]]);for(let e=0;e<13;e++)yi[wt[e]]=[],yi[wt[e]].push(le.Actual.N.numbersymbol[wt[e]]),yi[wt[e]].push(le.Actual.A.numbersymbol[wt[e]]),yi[wt[e]].push(le.Actual.V.numbersymbol[wt[e]]),Ot=Ot+le.Actual.N.numbersymbol[wt[e]],Ot=Ot+le.Actual.A.numbersymbol[wt[e]],Ot=Ot+le.Actual.V.numbersymbol[wt[e]],le.Actual.A.numbersymbol[wt[e]]!=le.Actual.AD.numbersymbol[wt[e]]&&(yi[wt[e]].push(le.Actual.AD.numbersymbol[wt[e]]),Ot=Ot+le.Actual.AD.numbersymbol[wt[e]])}function E4(e,t,i){let r=Ht.SHA256(t),n=Hc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Ht.lib.WordArray.create(n),a=Ht.SHA256(o),l=Hc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Ht.lib.WordArray.create(c),h=Ht.lib.WordArray.create(e),f=Ht.AES.encrypt(h,r,{mode:Ht.mode.CTR,padding:Ht.pad.NoPadding,iv:u});return Hc(f.ciphertext)}function Rv(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function WS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function jS(e){let t=new Uint8Array(2048),i=Sd(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(up[a])!=-1){r=254;break}if(i.indexOf(hp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(fp[a])!=-1){r=253;break}if(i.indexOf(pp[a])!=-1){r=252;break}if(i.indexOf(mp[a])!=-1){r=244;break}if(i.indexOf(gp[a])!=-1){r=251;break}if(i.indexOf(vp[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(yp[a])!=-1){r=249;break}if(i.indexOf(bp[a])!=-1){r=248;break}if(i.indexOf(wp[a])!=-1){r=247;break}if(i.indexOf(_p[a])!=-1){r=246;break}}let n;switch(r){case 255:n=at(e,e.byteLength,t);break;case 254:n=at(e,e.byteLength,t,up);break;case 245:n=at(e,e.byteLength,t,hp);break;case 253:n=at(e,e.byteLength,t,fp);break;case 252:n=at(e,e.byteLength,t,pp);break;case 244:n=at(e,e.byteLength,t,mp);break;case 251:n=at(e,e.byteLength,t,gp);break;case 250:n=at(e,e.byteLength,t,vp);break;case 249:n=at(e,e.byteLength,t,yp);break;case 248:n=at(e,e.byteLength,t,bp);break;case 247:n=at(e,e.byteLength,t,wp);break;case 246:n=at(e,e.byteLength,t,_p);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function qS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=et(n,n.byteLength,s,qe,Ye,G0,Xe);break;case 254:o=et(n,n.byteLength,s,qe,Ye,up,Xe);break;case 245:o=et(n,n.byteLength,s,qe,Ye,hp,Xe);break;case 253:o=et(n,n.byteLength,s,qe,Ye,fp,Xe);break;case 252:o=et(n,n.byteLength,s,qe,Ye,pp,Xe);break;case 244:o=et(n,n.byteLength,s,qe,Ye,mp,Xe);break;case 251:o=et(n,n.byteLength,s,qe,Ye,gp,Xe);break;case 250:o=et(n,n.byteLength,s,qe,Ye,vp,Xe);break;case 249:o=et(n,n.byteLength,s,qe,Ye,yp,Xe);break;case 248:o=et(n,n.byteLength,s,qe,Ye,bp,Xe);break;case 247:o=et(n,n.byteLength,s,qe,Ye,wp,Xe);break;case 246:o=et(n,n.byteLength,s,qe,Ye,_p,Xe);break}return s.subarray(0,o)}function x4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function YS(e){let t=e[e.byteLength-1];return x4(e.subarray(0,e.byteLength-1))==t}function XS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function ZS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function Hc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function Sd(e){let t=gr.fromUint8Array(e);return gr.decode(t)}function ye(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function po(e,t){return e.slice(t)+e.slice(0,t)}function mo(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function or(e){let t,i,r,n,s,o;return t=ft.indexOf(e),i=wt.indexOf(e),r=ft.indexOf(ks[t]),n=wt.indexOf(xs[i]),s=ft.indexOf(As[r]),o=wt.indexOf(Ss[n]),t!=-1?Es[s]:i!=-1?Ns[o]:ia}function Iv(e){let t,i,r,n,s,o;return t=Es.indexOf(e),i=Ns.indexOf(e),r=As.indexOf(ft[t]),n=Ss.indexOf(wt[i]),s=ks.indexOf(ft[r]),o=xs.indexOf(wt[n]),t!=-1?ft[s]:i!=-1?wt[o]:ia}function Nd(){let e=0;Na==32&&(Na=0),e=tm[Na]%10,e==0&&(e=10),e%2==0?(ks=po(ks,6),xs=po(xs,6),As=mo(As,e),Ss=mo(Ss,e),Es=po(Es,e/2+1),Ns=po(Ns,e/2+1)):(ks=mo(ks,3),xs=mo(xs,3),As=po(As,e),Ss=po(Ss,e),Es=mo(Es,(e+7)/2),Ns=mo(Ns,(e+7)/2)),Na++}function Td(){Na=0,tm=new Array(32),ks="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",xs="1234567890+/=",Ss="5=0764+389/12",Ns="1234567890+/="}function S4(e){let t=Ht.SHA256(e);tm=Hc(t)}function GS(e){if(e<=3)return[];let t=Math.floor(e*.2),i=e-2*t;return i<=0&&(t=Math.floor((e-2)/3),i=e-2*t,i<=0)?[]:[t,i,t]}function QS(e){if(e===0)return[0];const t=Math.ceil(e/100),i=Math.floor(e/t),r=e%t,n=[];for(let s=0;s100||t<0)throw"Incorrect Random Index";if(i&&r)throw"Contradictory Mode Setting";if(e>100){let a=QS(e),l=[];return a.forEach(c=>{l=l.concat(N4(c,t,i,r)),l[l.length-1].push("Z")}),l}let n,s=GS(e),o=[];for(let a=0;a<3;a++){let l=s[a];if(a==0)for(let c=0;c6){let v=ye(91);v<30?u=d[d.length-3]:v>=30&&v<60?u=d[d.length-2]:u=d[d.length-1]}else u=d.pop();else n>100&&n<=200&&(u=d[ye(d.length)],d=d.filter(v=>v>u));let h=[],f=[],m=[];for(let v=0;v25?b=h[ye(h.length)]:ye(2)==0?f.length!=0?b=f[ye(f.length)]:b=h[ye(h.length)]:m.length!=0?b=m[ye(m.length)]:b=h[ye(h.length)],o.push(b),c=c+u}else if(a==1)for(let c=0;c6){let v=ye(91);v<30?u=d[d.length-3]:v>=30&&v<60?u=d[d.length-2]:u=d[d.length-1]}else u=d.pop();else n>100&&n<=200&&(u=d[ye(d.length)],d=d.filter(v=>v>u));let h=[],f=[],m=[];for(let v=0;v25?b=h[ye(h.length)]:ye(2)==0?f.length!=0?b=f[ye(f.length)]:b=h[ye(h.length)]:m.length!=0?b=m[ye(m.length)]:b=h[ye(h.length)],o.push(b),c=c+u}else if(a==2)for(let c=0;c6){let v=ye(91);v<30?u=d[d.length-3]:v>=30&&v<60?u=d[d.length-2]:u=d[d.length-1]}else u=d.pop();else n>100&&n<=200&&(u=d[ye(d.length)],d=d.filter(v=>v>u));let h=[],f=[],m=[];for(let v=0;v25?b=h[ye(h.length)]:ye(2)==0?f.length!=0?b=f[ye(f.length)]:b=h[ye(h.length)]:m.length!=0?b=m[ye(m.length)]:b=h[ye(h.length)],o.push(b),c=c+u}}return o}function $v(e,t,i,r,n,s){Td(),S4(t);let o=new Uint8Array;o=e.output,Sd(o);let a=new Uint8Array(o.byteLength+1);if(a.set(o,0),a.set([x4(o)],o.byteLength),o=a,o.byteLength<=1024){let p=o.byteLength;o=jS(o),o.byteLength==p&&(o=Rv(o))}else o=Rv(o);let l=new Array;l.push(ye(256)),l.push(ye(256)),o=E4(o,t,l),a=new Uint8Array(o.byteLength+2),a.set(o,0),a.set(l,o.byteLength),o=a;let c=XS(gr.fromUint8Array(o)),d="",u="",h=c.length,f=N4(c.length,r,n,s),m=0,b=!1,v=!1,_=0,w=0;Nd();for(let p=0;p=3&&p!=f.length-2?(d=d+"。",_=0):(d=d+",",_+=w+1):(d=d+"。",_=0)}v&&(_=0)}}if(!i){let p="";for(let g=0;g{t==n&&(i=Iv(r))});if(i)return i;for(let r in yi)yi[r].forEach(n=>{t==n&&(i=Iv(r))});return i||ia}const ua=class bt{constructor(t=bt.TEXT,i=bt.TEXT){if($u(this,os,""),$u(this,ka,""),$u(this,At,null),t!=bt.TEXT&&t!=bt.UINT8||i!=bt.TEXT&&i!=bt.UINT8)throw"Unexpected Argument";yr(this,os,t),yr(this,ka,i)}Input(t,i,r="ABRACADABRA",n=!1){if(gi(this,os)==bt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new A4(t,!0,!1),yr(this,At,Ph(l,r,n))):(l=Nv(a),l.isEncrypted&&i!=bt.ENCRYPT||i==bt.DECRYPT?yr(this,At,Tv(l,r)):yr(this,At,Ph(l,r,n)))}else if(gi(this,os)==bt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Nv(t);s.isEncrypted&&i!=bt.ENCRYPT||i==bt.DECRYPT?yr(this,At,Tv(s,r)):yr(this,At,Ph(s,r,n))}return 0}Output(){if(gi(this,At)==null)throw"Null Output, please input some data at first.";if(typeof gi(this,At)=="object")return gi(this,ka)==bt.TEXT?gi(this,At).output:gi(this,At).output_B!=null?gi(this,At).output_B:new TextEncoder().encode(gi(this,At).output);if(typeof gi(this,At)=="string")return gi(this,ka)==bt.TEXT?gi(this,At):new TextEncoder().encode(gi(this,At))}Input_Next(t,i,r="ABRACADABRA",n=!0,s=50,o=!1,a=!1){if(gi(this,os)==bt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";if(i==bt.ENCRYPT){let l=new Object;l.output=t,yr(this,At,$v(l,r,n,s,o,a))}else if(i==bt.DECRYPT){let l=new Object;l.output=t,yr(this,At,Pv(l,r))}return 0}else if(gi(this,os)==bt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let l=new Object;return l.output=C4(t),i==bt.ENCRYPT?yr(this,At,$v(l,r,n,s,o,a)):i==bt.DECRYPT&&yr(this,At,Pv(l,r)),0}return 0}};os=new WeakMap;ka=new WeakMap;At=new WeakMap;ql(ua,"TEXT","TEXT");ql(ua,"UINT8","UINT8");ql(ua,"ENCRYPT","ENCRYPT");ql(ua,"DECRYPT","DECRYPT");ql(ua,"AUTO","AUTO");let Dh=ua;const tN=Se("div",{id:"MagicBadge",style:{}},[Se("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),Se("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),iN={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},rN={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},nN=Se("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),sN=Se("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),oN={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},aN=Se("mdui-text-field",{id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,-1),lN=Se("mdui-slider",{id:"Randomness",step:"25",value:"50",min:"0",max:"100",style:{background:"#0000003b",padding:"0 25px",width:"215px","margin-left":"5px","border-radius":"25px",height:"35px"}},null,-1),cN={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},dN=Se("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),uN={id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},hN=Se("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[Ud(" Abracadabra V3.1.0"),Se("br"),Se("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")],-1),fN=Se("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"98px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"0px","border-radius":"inherit",margin:"0px",right:"4px","justify-self":"end",opacity:"0.5"}}," SheepChef © ",-1),pN={id:"CryptControl"},mN={key:0,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},gN={key:2,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},vN={key:4,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},yN={key:6,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},bN={key:8,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},wN={key:10,style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},_N=Se("div",{id:"PositionOccupie"},null,-1),CN={__name:"HomeView",setup(e){const t=it("TEXT"),i=it("TEXT"),r=it("Next"),n=it(!0),s=it(!1),o=it(!1),a=it(!1),l=it(!1),c=it(!1),d=it(!1);it("#5b6169");var u=it(new Array);const h=it(null),f=it("");To(()=>u.value[0],M=>{h.value=M,f.value=M.name,window.inputfile=M});function m(M){return new Promise((V,ee)=>{const ae=new FileReader;ae.onload=z=>{const K=new Uint8Array(z.target.result);V(K)},ae.onerror=ee,ae.readAsArrayBuffer(M)})}function b(M,V,ee){const ae=new Blob([M],{type:ee});return new File([ae],V,{type:ee})}function v(M){M.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function _(M){M.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function w(M){M.preventDefault()}function p(M){M.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const V=M.dataTransfer.files;E(V)}function g(M){const V=M.target.files;E(V)}function k(M){document.querySelector("#fileIn").click()}function E(M){u.value=[];for(let V=0;V{var ee;return["fullscreen","standalone","minimal-ui"].some(ae=>window.matchMedia("(display-mode: "+ae+")").matches)||((ee=window.navigator)==null?void 0:ee.standalone)||document.referrer.includes("android-app://")};function x(){r.value=="Next"?document.getElementById("ForcePian").checked==!0?(document.getElementById("ForceLogi").disabled=!0,document.getElementById("ForceLogi").checked=!1,l.value=!0,c.value=!1):document.getElementById("ForceLogi").checked==!0?(document.getElementById("ForcePian").disabled=!0,document.getElementById("ForcePian").checked=!1,l.value=!1,c.value=!0):(document.getElementById("ForcePian").disabled=!1,document.getElementById("ForceLogi").disabled=!1,c.value=!1,l.value=!1):document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,s.value=!0,o.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,s.value=!1,o.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,s.value=!1,o.value=!1)}function S(){document.getElementById("Forceq").checked==!0?a.value=!0:a.value=!1}function C(){document.getElementById("ForceNoMark").checked==!0?d.value=!0:d.value=!1}async function N(){r.value=="Normal"?(document.getElementById("NormalControlBar").style.display="none",document.getElementById("NextControlBar").style.display="grid",r.value="Next"):r.value=="Next"&&(document.getElementById("NormalControlBar").style.display="block",document.getElementById("NextControlBar").style.display="none",r.value="Normal"),await $l(),x()}async function R(){let M=new Dh(t.value,i.value),V;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value,s.value?a.value?M.Input(document.getElementById("InputCard").value,"ENCRYPT",V,!0):M.Input(document.getElementById("InputCard").value,"ENCRYPT",V,!1):o.value?M.Input(document.getElementById("InputCard").value,"DECRYPT",V):M.Input(document.getElementById("InputCard").value,"AUTO",V,a.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value;let ee=await m(window.inputfile);s.value?a.value?M.Input(ee,"ENCRYPT",V,!0):M.Input(ee,"ENCRYPT",V,!1):o.value?M.Input(ee,"DECRYPT",V):M.Input(ee,"AUTO",V,a.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=M.Output();else if(i.value=="UINT8"){let ee=M.Output(),ae=b(ee,"Abracadabra_Result","application/octet-stream"),z=document.createElement("a");z.download=ae.name;let K=URL.createObjectURL(ae);z.href=K,z.click(),URL.revokeObjectURL(K)}}catch(ee){Tr({message:"发生错误, "+ee.toString()})}}async function I(){let M=new Dh(t.value,i.value),V;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value,M.Input_Next(document.getElementById("InputCard").value,"ENCRYPT",V,!d.value,parseInt(document.querySelector("#Randomness").value),l.value,c.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value;let ee=await m(window.inputfile);M.Input_Next(ee,"ENCRYPT",V,!d.value,parseInt(document.querySelector("#Randomness").value),l.value,c.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=M.Output();else if(i.value=="UINT8"){let ee=M.Output(),ae=b(ee,"Abracadabra_Result","application/octet-stream"),z=document.createElement("a");z.download=ae.name;let K=URL.createObjectURL(ae);z.href=K,z.click(),URL.revokeObjectURL(K)}}catch(ee){Tr({message:"发生错误, "+ee.toString()})}}async function O(){let M=new Dh(t.value,i.value),V;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value,M.Input_Next(document.getElementById("InputCard").value,"DECRYPT",V)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(V="ABRACADABRA",Tr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):V=document.getElementById("KeyCard").value;let ee=await m(window.inputfile);M.Input_Next(ee,"DECRYPT",V)}if(i.value=="TEXT")document.getElementById("OutputText").value=M.Output();else if(i.value=="UINT8"){let ee=M.Output(),ae=b(ee,"Abracadabra_Result","application/octet-stream"),z=document.createElement("a");z.download=ae.name;let K=URL.createObjectURL(ae);z.href=K,z.click(),URL.revokeObjectURL(K)}}catch(ee){Tr({message:"发生错误, "+ee.toString()})}}function F(){document.getElementById("OutputText").value!=""&&(document.getElementById("OutputText").select(),navigator.clipboard.writeText(window.getSelection().toString()))}async function L(){window.deferredPrompt&&(window.deferredPrompt.prompt(),(await window.deferredPrompt.userChoice).outcome==="accepted"?Tr({message:"感谢你选择魔曰",placement:"top-end"}):console.log("PWA Install cancelled"))}return fn(()=>{A()&&(n.value=!1),x();const M=document.querySelector("#Randomness");M.labelFormatter=V=>V==0?"长句优先":V==25?"稍随机":V==50?"适中":V==75?"较随机":V==100?"完全随机":""}),Pl(()=>{}),(M,V)=>(Je(),ht(Rt,null,[tN,Ke(Ca,{id:"FunctionCard"},{default:ls(()=>[Se("div",iN,[t.value=="TEXT"?(Je(),ht("mdui-text-field",rN)):Nt("",!0),t.value=="UINT8"?(Je(),nl(Ca,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:v,onDragleave:_,onDragover:w,onDrop:p,onClick:k},{default:ls(()=>[nN,sN,Se("p",oN,zv(f.value),1),Se("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:g},null,32)]),_:1})):Nt("",!0),Se("div",{id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},[aN,Se("div",{id:"NormalControlBar",style:{"align-self":"center",display:"none"}},[Se("mdui-button",{icon:"arrow_downward--rounded",onClick:R,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px"}},"吟唱你的魔法"),Se("mdui-button",{variant:"elevated",icon:"auto_awesome--rounded",onClick:N,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"文言仿真")]),Se("div",{id:"NextControlBar",style:{"align-self":"center",display:"grid","grid-template-columns":"235px 124px"}},[Se("mdui-button",{icon:"arrow_downward--rounded",onClick:R,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px",display:"none"}},"吟唱你的魔法"),Se("div",{style:{display:"grid","grid-template-rows":"40px 33px"}},[Se("div",{style:{width:"fit-content","align-self":"center","justify-self":"center","margin-left":"-10px"}},[Se("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:I,style:{"align-self":"center",width:"105px","text-align":"center","margin-right":"5px"}},"加密"),Se("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:O,style:{"align-self":"center",width:"105px","text-align":"center"}},"解密")]),lN]),Se("mdui-button",{variant:"elevated",icon:"auto_fix_off--rounded",onClick:N,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"传统加密")])]),i.value=="TEXT"?(Je(),ht("mdui-text-field",cN)):Nt("",!0),Se("mdui-button-icon",{icon:"content_copy--rounded",style:{position:"absolute",bottom:"95px",right:"22px",background:"rgb(11 11 11 / 25%)","backdrop-filter":"blur(2px)"},onClick:F}),i.value=="UINT8"?(Je(),nl(Ca,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:ls(()=>[dN]),_:1})):Nt("",!0),Se("div",uN,[hN,n.value?(Je(),ht("mdui-chip",{key:0,elevated:"",icon:"file_download--rounded",style:{position:"absolute",bottom:"40px",right:"15px",background:"rgba(11, 11, 11, 0.25)","backdrop-filter":"blur(2px)"},onClick:L},"安装应用")):Nt("",!0),fN])])]),_:1}),Ke(Ca,{id:"FloatCard"},{default:ls(()=>[Se("div",pN,[r.value=="Next"?(Je(),ht("span",mN,"骈文格律")):Nt("",!0),r.value=="Next"?(Je(),ht("mdui-switch",{key:1,id:"ForcePian",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:x},null,32)):Nt("",!0),r.value=="Next"?(Je(),ht("span",gN,"逻辑优先")):Nt("",!0),r.value=="Next"?(Je(),ht("mdui-switch",{key:3,id:"ForceLogi",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:x},null,32)):Nt("",!0),r.value=="Next"?(Je(),ht("span",vN,"去除标点")):Nt("",!0),r.value=="Next"?(Je(),ht("mdui-switch",{key:5,id:"ForceNoMark","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:C},null,32)):Nt("",!0),r.value=="Normal"?(Je(),ht("span",yN,"雪藏话语")):Nt("",!0),r.value=="Normal"?(Je(),ht("mdui-switch",{key:7,id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:x},null,32)):Nt("",!0),r.value=="Normal"?(Je(),ht("span",bN,"探求真意")):Nt("",!0),r.value=="Normal"?(Je(),ht("mdui-switch",{key:9,id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:x},null,32)):Nt("",!0),r.value=="Normal"?(Je(),ht("span",wN,"去除标志")):Nt("",!0),r.value=="Normal"?(Je(),ht("mdui-switch",{key:11,id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:S},null,32)):Nt("",!0)])]),_:1}),_N],64))}},kN={id:"ImWindowContainer",ref:"ImContainer"},AN={id:"ImContentContainer"},EN={id:"main_content",style:{height:"fit-content"}},xN={__name:"ImMainView",setup(e){const t=it(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return fn(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(Je(),ht("div",kN,[Ke(ck,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),Se("div",AN,[Se("div",EN,[Ke(CN)])])],512))}},SN=Se("header",null,[Se("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),NN={style:{width:"100% !important",height:"100%"}},TN={class:"InnerUI",fullHeight:""},RN={__name:"App",setup(e){return fn(()=>{}),(t,i)=>(Je(),ht(Rt,null,[SN,Se("mdui-layout",NN,[Se("mdui-layout-main",TN,[Ke(xN)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const T4=Py(RN);sk("#09355b");T4.component("Card",Ca);T4.mount("body"); diff --git a/docs/index.html b/docs/index.html index ee1e5e0..adab8ac 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,7 @@ return this._attachShadow({ mode: "open" }); }; - + diff --git a/docs/sw.js b/docs/sw.js index 0bd6f32..7448f07 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),u={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>u[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-kawgJGu9.css",revision:null},{url:"assets/index-Y14zB65A.js",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"f1e28b31ae068194f02388025c5c47cb"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")})); +if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),u={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>u[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-DzyBey0l.js",revision:null},{url:"assets/index-kawgJGu9.css",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"51e6aa9d96692cd73e36be78108e6068"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")}));