screenreader-speech-capture 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js +179 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js +4 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js +34 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{0.CJdYHfX8.js → 0.kO9a4iA1.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js +50 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +39 -5
- package/dist/ui/server/_app/immutable/assets/_page.CK2Biket.css +1 -0
- package/dist/ui/server/chunks/bridge-api.js +12 -2
- package/dist/ui/server/chunks/bridge-api.js.map +1 -1
- package/dist/ui/server/chunks/composition.js +2615 -2
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/icon-button.js +31 -2389
- package/dist/ui/server/chunks/icon-button.js.map +1 -1
- package/dist/ui/server/chunks/index-server.js +2 -0
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/outlined-text-field.js +1864 -0
- package/dist/ui/server/chunks/outlined-text-field.js.map +1 -0
- package/dist/ui/server/chunks/src.js +24 -5
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/state.js +1 -0
- package/dist/ui/server/chunks/state.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +34 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +2 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +46 -1904
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +99 -3
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +8 -1
- package/dist/ui/server/manifest.js +8 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/2.js +1 -1
- package/dist/ui/server/nodes/3.js +2 -2
- package/dist/ui/server/server.js +8 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js +0 -37
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js +0 -228
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.BKNNVeb3.css +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { execFile, spawn, spawnSync } from "node:child_process";
|
|
|
13
13
|
import { once } from "node:events";
|
|
14
14
|
import readline from "node:readline";
|
|
15
15
|
// package.json
|
|
16
|
-
var version = "0.
|
|
16
|
+
var version = "0.8.0";
|
|
17
17
|
// ../shared/src/api-version.ts
|
|
18
18
|
/**
|
|
19
19
|
* `<major>.<minor>` of the HTTP API. Minor versions only add things
|
package/dist/ui/adapter-node.js
CHANGED
|
@@ -7,5 +7,5 @@ export const app_path = "ui/_app";
|
|
|
7
7
|
export const origin = undefined;
|
|
8
8
|
export const env_prefix = "";
|
|
9
9
|
export const mime_types = {".txt":"text/plain",".json":"application/json",".css":"text/css",".woff2":"font/woff2",".woff":"font/woff",".js":"text/javascript"};
|
|
10
|
-
export const assets = JSON.parse("{\"entries\":[[\"/ui/_app/immutable/assets/0.CnPCLsGJ.css\",{\"file\":\"_app/immutable/assets/0.CnPCLsGJ.css\",\"size\":24421,\"etag\":\"63_CqogufSf6SxHFC9Abmb0JjcPGkTjcaTgOwOYCSg4\",\"gz\":4599,\"br\":3882}],[\"/ui/_app/immutable/assets/2.IKhva0W0.css\",{\"file\":\"_app/immutable/assets/2.IKhva0W0.css\",\"size\":10017,\"etag\":\"CpTmXF9v8qGDb-qNOO95CcUtjZrxNKK_0GvabHp-Cl4\",\"gz\":2192,\"br\":1902}],[\"/ui/_app/immutable/assets/3.BKNNVeb3.css\",{\"file\":\"_app/immutable/assets/3.BKNNVeb3.css\",\"size\":3585,\"etag\":\"TZnoja67KoxnVCkCW3KVcu4c9IV6u1AI5RBSnUgDrxM\",\"gz\":967,\"br\":793}],[\"/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",{\"file\":\"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",\"size\":323332,\"etag\":\"lG4kWCQl2JTmBdetIXyis5jtAKLVXakHFHPge2GL-mo\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",\"size\":26636,\"etag\":\"Xo9rWKm47bD92r-jOEmIJ8e5WdPs2VkgglbEc34YnbA\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",\"size\":41732,\"etag\":\"NZscIuvjCi6aMmnVZK-qci8WjN47sM5_d44ADIayuo4\"}],[\"/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",\"size\":27412,\"etag\":\"Odr-I2_rbhJlwRMBOPvO73NumLHzS_DPn0Ml6aEznZc\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",\"size\":59020,\"etag\":\"AU13PKeSW6pmOn1_iyR1qBYj1q59NeZv3xAPJhq9ee0\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",\"size\":84304,\"etag\":\"6XypLOvPTfNTn2UUzWUqhKgnk55tXq9e3s5tg8gikTg\"}],[\"/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",\"size\":22784,\"etag\":\"ID6H6oY6dHzFa8f-IQZnNzaJY68MmsJfugB1547NI_A\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",\"size\":9100,\"etag\":\"2bbrZbKWjtunnR214mXtGBGgmZyiT-eB020Ll--S77s\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",\"size\":7456,\"etag\":\"4-mr9gth2_iRYOitbLxgugEWptcpf1Fzx4eq62pnctw\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",\"size\":7512,\"etag\":\"EX-navsvNJ2dPomPJOtSYxUXBSHtdJac8Wuc8p0QUwg\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",\"size\":9208,\"etag\":\"FhEru93Qje-NX6qsnUdZjS0CnJ5HsTgFEsAv1xyE2Dc\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",\"size\":13732,\"etag\":\"3p2daccUDrC6lRmGsRgf8XJcFMeane_8E8xkXP0xKj4\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",\"size\":17112,\"etag\":\"GNVjaNsWsBA7myTwjGib6Nb3b4TcTxNItWs5gkyOAlo\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",\"size\":17496,\"etag\":\"invqlJk1nekhGuwr5uqzb1snlNTpp2Am_ip80XcHygY\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",\"size\":14056,\"etag\":\"lv8BDhBsrjCzO7wvS2w_YEOSjZkbTvQmXCzbB3EwOxQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",\"size\":5940,\"etag\":\"SxybC6KcPzLAoEkVeSrqudYU0UfYxpXZVdwGnChbMp4\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",\"size\":7176,\"etag\":\"PQAVb05w6pSja5LRrTBLylAkD3MVh-uNENv8ebI6H5E\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",\"size\":7188,\"etag\":\"p3BI7KcIZ0SWGLKndgFG6hyMOngc4I3px7_Hjl_7YPE\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",\"size\":5984,\"etag\":\"liRoYrZFP7YtW6bc-gQ8AnIT0kBaGmyJkvZePjmaF-4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",\"size\":15720,\"etag\":\"lpDzxusG0KTns95CTaphZhLjFxjPVECz_Fl323JnPSQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",\"size\":12680,\"etag\":\"4DAT4LqlaQqAPBiNoiFNkgwyRbJa14Qh7Miuhs2EKuk\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",\"size\":15932,\"etag\":\"ro2pPd-tN7NEqm9hW9JnccWOOzvjo3GmI-kKfNKPQy0\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",\"size\":12936,\"etag\":\"znAn76XIlOiyRLDKBewSG2qFZVlXr9nHbFm1aRDefU4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",\"size\":12164,\"etag\":\"O_6UIV4oXuPaNMvdZIYsP4nuJzuAtNveQ5_6GpErn3E\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",\"size\":9592,\"etag\":\"PR5yvy9_V55WgOh6SSvxTxVsAdCdp0HVu2V_KEF4cVc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",\"size\":12308,\"etag\":\"XA3Zvhj7NOPdc8lSi6O-rw8TxTUA8GRd90jz7DIZyZc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",\"size\":9808,\"etag\":\"-ZQwN9c0zgo9yoctoninfM7ABdtyG3ZKf_l34FlCYxY\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",\"size\":5800,\"etag\":\"H0NM4VrxKgHcQ0OY-LyagnHydK1STuDSUwCrsQwZOfU\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",\"size\":4636,\"etag\":\"kCN-rZCF7823V7pJii1GRg4AnCkHyDKR7Fb1mBOXZZM\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",\"size\":4708,\"etag\":\"5rrj9ghzh6IqWJf-9EGJt7gqHsdS3jeoEpTKzmHzZCA\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",\"size\":5920,\"etag\":\"wU_brpryo9P6DBrH_Az7x92c85LNrD747cA5w4p8oJg\"}],[\"/ui/_app/immutable/chunks/Bjy-W4x2.js\",{\"file\":\"_app/immutable/chunks/Bjy-W4x2.js\",\"size\":1365,\"etag\":\"8HQkdYMY3WtfMrD-jenS_7jZehfIQXWGJtGLoPqgRWo\",\"gz\":654,\"br\":499}],[\"/ui/_app/immutable/chunks/C67ohLw_.js\",{\"file\":\"_app/immutable/chunks/C67ohLw_.js\",\"size\":1600,\"etag\":\"UsSK4AkoREWLhWRgGwKu-eEgiuP1sIiY20-OhqpDa5E\",\"gz\":702,\"br\":603}],[\"/ui/_app/immutable/chunks/CEzmqEHD.js\",{\"file\":\"_app/immutable/chunks/CEzmqEHD.js\",\"size\":44037,\"etag\":\"le0cB5WBFxxHPhjYN37uaEt2XulukwJmGdQLX-HQLqI\",\"gz\":13491,\"br\":12087}],[\"/ui/_app/immutable/chunks/CKeiBgOI.js\",{\"file\":\"_app/immutable/chunks/CKeiBgOI.js\",\"size\":52,\"etag\":\"ZtRwTd0iC2aKryvATbMbtmHXQxwalVcr2nf5QQ3Sa10\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/CVUOwNb5.js\",{\"file\":\"_app/immutable/chunks/CVUOwNb5.js\",\"size\":43354,\"etag\":\"exgyJ34vR6uCh8NGT_fkGZxRzFhY1eA-ZP_br2N8Too\",\"gz\":15800,\"br\":14336}],[\"/ui/_app/immutable/chunks/DclECHGd.js\",{\"file\":\"_app/immutable/chunks/DclECHGd.js\",\"size\":1630,\"etag\":\"hnTfcMv_1XU3cajdWwisO27CnBFwRo5GhIdgoP_upVA\",\"gz\":828,\"br\":714}],[\"/ui/_app/immutable/chunks/Dksil5Gu.js\",{\"file\":\"_app/immutable/chunks/Dksil5Gu.js\",\"size\":4249,\"etag\":\"oExGw9C8zjSk27zDAPt7LOFboSN3l2UJxI3qk09tzSg\",\"gz\":1867,\"br\":1678}],[\"/ui/_app/immutable/chunks/DnL0kOQY.js\",{\"file\":\"_app/immutable/chunks/DnL0kOQY.js\",\"size\":22,\"etag\":\"wq40sVnOFkuIZkJfsRIwm8LsKnvdrZkHJFyza_QVKUM\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/h7UQ89-l.js\",{\"file\":\"_app/immutable/chunks/h7UQ89-l.js\",\"size\":41313,\"etag\":\"RB2subHqnfP26r1Ji74YrsQEYZYL0uivrmd0pdnWHr8\",\"gz\":15890,\"br\":14417}],[\"/ui/_app/immutable/chunks/vjU7Kh7P.js\",{\"file\":\"_app/immutable/chunks/vjU7Kh7P.js\",\"size\":20314,\"etag\":\"OVOxNSNBj-KF-8p5pwcMOJrt5AEpeJX-CVmoC9V9xVU\",\"gz\":7129,\"br\":6284}],[\"/ui/_app/immutable/entry/app.DkG_UKpo.js\",{\"file\":\"_app/immutable/entry/app.DkG_UKpo.js\",\"size\":1559,\"etag\":\"WhZA9Ickm05GVC11JEvZrxpW93K-ixDSJGCxlGLl1QE\",\"gz\":711,\"br\":655}],[\"/ui/_app/immutable/entry/payload.DSmR2FwN.js\",{\"file\":\"_app/immutable/entry/payload.DSmR2FwN.js\",\"size\":65,\"etag\":\"t8untEsjl8fSj320o07HNKmF5k_yfXTd-NlkXPgU8J8\",\"gz\":77,\"br\":60}],[\"/ui/_app/immutable/entry/start.uodUAHNT.js\",{\"file\":\"_app/immutable/entry/start.uodUAHNT.js\",\"size\":574,\"etag\":\"O4snkUzjjjOka7jfFPN26hQrBOyuiK-KBZNclShvqkE\",\"gz\":330,\"br\":309}],[\"/ui/_app/immutable/nodes/0.CJdYHfX8.js\",{\"file\":\"_app/immutable/nodes/0.CJdYHfX8.js\",\"size\":5431,\"etag\":\"QGQ_OP6Rmr3zVuxAD2UTnnf9KAcj3_6iWWo48Kd8kLA\",\"gz\":2522,\"br\":2211}],[\"/ui/_app/immutable/nodes/1.jZ-iBVjE.js\",{\"file\":\"_app/immutable/nodes/1.jZ-iBVjE.js\",\"size\":352,\"etag\":\"iYrHjurSTZqrBhI5TBxo1qpRsm_9XcJJN57ESmyuseg\",\"gz\":261,\"br\":215}],[\"/ui/_app/immutable/nodes/2.CKUmeq5l.js\",{\"file\":\"_app/immutable/nodes/2.CKUmeq5l.js\",\"size\":112402,\"etag\":\"42YliR8_7gk2Bfpya3dmPVEeH8nBYrcygIBEMTdqCmU\",\"gz\":24060,\"br\":20328}],[\"/ui/_app/immutable/nodes/3.D74ClOwr.js\",{\"file\":\"_app/immutable/nodes/3.D74ClOwr.js\",\"size\":2256,\"etag\":\"3Yk3Ync64KpEWjDKhGZWBE3wme6FQh8xaNtxbcetwhU\",\"gz\":1024,\"br\":861}],[\"/ui/_app/immutable/nodes/4.DY8qq4Io.js\",{\"file\":\"_app/immutable/nodes/4.DY8qq4Io.js\",\"size\":208,\"etag\":\"ie8yHIIwYlnejxernDH8mSGlgs9vC2BxgKR_nDf6Pdw\",\"gz\":190,\"br\":142}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"udQ0_DisLushSmBB0a1FmtmZMtUsz0IoM7ZEPw1Jl78\",\"gz\":47,\"br\":29}],[\"/ui/robots.txt\",{\"file\":\"robots.txt\",\"size\":63,\"etag\":\"sDMkMme8vauEywHpQIEdbXeolNePBHD6rw60P45O_Mk\",\"gz\":77,\"br\":67}]],\"aliases\":[]}");
|
|
10
|
+
export const assets = JSON.parse("{\"entries\":[[\"/ui/_app/immutable/assets/0.CnPCLsGJ.css\",{\"file\":\"_app/immutable/assets/0.CnPCLsGJ.css\",\"size\":24421,\"etag\":\"63_CqogufSf6SxHFC9Abmb0JjcPGkTjcaTgOwOYCSg4\",\"gz\":4599,\"br\":3882}],[\"/ui/_app/immutable/assets/2.IKhva0W0.css\",{\"file\":\"_app/immutable/assets/2.IKhva0W0.css\",\"size\":10017,\"etag\":\"CpTmXF9v8qGDb-qNOO95CcUtjZrxNKK_0GvabHp-Cl4\",\"gz\":2192,\"br\":1902}],[\"/ui/_app/immutable/assets/3.CK2Biket.css\",{\"file\":\"_app/immutable/assets/3.CK2Biket.css\",\"size\":4417,\"etag\":\"BpBpRBYyls27Wm8_wno444Kz3xNH848SDaTnRXA02Z4\",\"gz\":1122,\"br\":936}],[\"/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",{\"file\":\"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",\"size\":323332,\"etag\":\"lG4kWCQl2JTmBdetIXyis5jtAKLVXakHFHPge2GL-mo\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",\"size\":26636,\"etag\":\"Xo9rWKm47bD92r-jOEmIJ8e5WdPs2VkgglbEc34YnbA\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",\"size\":41732,\"etag\":\"NZscIuvjCi6aMmnVZK-qci8WjN47sM5_d44ADIayuo4\"}],[\"/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",\"size\":27412,\"etag\":\"Odr-I2_rbhJlwRMBOPvO73NumLHzS_DPn0Ml6aEznZc\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",\"size\":59020,\"etag\":\"AU13PKeSW6pmOn1_iyR1qBYj1q59NeZv3xAPJhq9ee0\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",\"size\":84304,\"etag\":\"6XypLOvPTfNTn2UUzWUqhKgnk55tXq9e3s5tg8gikTg\"}],[\"/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",\"size\":22784,\"etag\":\"ID6H6oY6dHzFa8f-IQZnNzaJY68MmsJfugB1547NI_A\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",\"size\":9100,\"etag\":\"2bbrZbKWjtunnR214mXtGBGgmZyiT-eB020Ll--S77s\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",\"size\":7456,\"etag\":\"4-mr9gth2_iRYOitbLxgugEWptcpf1Fzx4eq62pnctw\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",\"size\":7512,\"etag\":\"EX-navsvNJ2dPomPJOtSYxUXBSHtdJac8Wuc8p0QUwg\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",\"size\":9208,\"etag\":\"FhEru93Qje-NX6qsnUdZjS0CnJ5HsTgFEsAv1xyE2Dc\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",\"size\":13732,\"etag\":\"3p2daccUDrC6lRmGsRgf8XJcFMeane_8E8xkXP0xKj4\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",\"size\":17112,\"etag\":\"GNVjaNsWsBA7myTwjGib6Nb3b4TcTxNItWs5gkyOAlo\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",\"size\":17496,\"etag\":\"invqlJk1nekhGuwr5uqzb1snlNTpp2Am_ip80XcHygY\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",\"size\":14056,\"etag\":\"lv8BDhBsrjCzO7wvS2w_YEOSjZkbTvQmXCzbB3EwOxQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",\"size\":5940,\"etag\":\"SxybC6KcPzLAoEkVeSrqudYU0UfYxpXZVdwGnChbMp4\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",\"size\":7176,\"etag\":\"PQAVb05w6pSja5LRrTBLylAkD3MVh-uNENv8ebI6H5E\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",\"size\":7188,\"etag\":\"p3BI7KcIZ0SWGLKndgFG6hyMOngc4I3px7_Hjl_7YPE\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",\"size\":5984,\"etag\":\"liRoYrZFP7YtW6bc-gQ8AnIT0kBaGmyJkvZePjmaF-4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",\"size\":15720,\"etag\":\"lpDzxusG0KTns95CTaphZhLjFxjPVECz_Fl323JnPSQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",\"size\":12680,\"etag\":\"4DAT4LqlaQqAPBiNoiFNkgwyRbJa14Qh7Miuhs2EKuk\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",\"size\":15932,\"etag\":\"ro2pPd-tN7NEqm9hW9JnccWOOzvjo3GmI-kKfNKPQy0\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",\"size\":12936,\"etag\":\"znAn76XIlOiyRLDKBewSG2qFZVlXr9nHbFm1aRDefU4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",\"size\":12164,\"etag\":\"O_6UIV4oXuPaNMvdZIYsP4nuJzuAtNveQ5_6GpErn3E\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",\"size\":9592,\"etag\":\"PR5yvy9_V55WgOh6SSvxTxVsAdCdp0HVu2V_KEF4cVc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",\"size\":12308,\"etag\":\"XA3Zvhj7NOPdc8lSi6O-rw8TxTUA8GRd90jz7DIZyZc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",\"size\":9808,\"etag\":\"-ZQwN9c0zgo9yoctoninfM7ABdtyG3ZKf_l34FlCYxY\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",\"size\":5800,\"etag\":\"H0NM4VrxKgHcQ0OY-LyagnHydK1STuDSUwCrsQwZOfU\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",\"size\":4636,\"etag\":\"kCN-rZCF7823V7pJii1GRg4AnCkHyDKR7Fb1mBOXZZM\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",\"size\":4708,\"etag\":\"5rrj9ghzh6IqWJf-9EGJt7gqHsdS3jeoEpTKzmHzZCA\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",\"size\":5920,\"etag\":\"wU_brpryo9P6DBrH_Az7x92c85LNrD747cA5w4p8oJg\"}],[\"/ui/_app/immutable/chunks/Bjy-W4x2.js\",{\"file\":\"_app/immutable/chunks/Bjy-W4x2.js\",\"size\":1365,\"etag\":\"8HQkdYMY3WtfMrD-jenS_7jZehfIQXWGJtGLoPqgRWo\",\"gz\":654,\"br\":499}],[\"/ui/_app/immutable/chunks/C67ohLw_.js\",{\"file\":\"_app/immutable/chunks/C67ohLw_.js\",\"size\":1600,\"etag\":\"UsSK4AkoREWLhWRgGwKu-eEgiuP1sIiY20-OhqpDa5E\",\"gz\":702,\"br\":603}],[\"/ui/_app/immutable/chunks/CKeiBgOI.js\",{\"file\":\"_app/immutable/chunks/CKeiBgOI.js\",\"size\":52,\"etag\":\"ZtRwTd0iC2aKryvATbMbtmHXQxwalVcr2nf5QQ3Sa10\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/CM9WugkD.js\",{\"file\":\"_app/immutable/chunks/CM9WugkD.js\",\"size\":73719,\"etag\":\"kTB2Ui9Fac_Mgx_PKYF5iZHG5T3NdiJb3Dckm-FHyI4\",\"gz\":13857,\"br\":11790}],[\"/ui/_app/immutable/chunks/CVUOwNb5.js\",{\"file\":\"_app/immutable/chunks/CVUOwNb5.js\",\"size\":43354,\"etag\":\"exgyJ34vR6uCh8NGT_fkGZxRzFhY1eA-ZP_br2N8Too\",\"gz\":15800,\"br\":14336}],[\"/ui/_app/immutable/chunks/CXrPUR7p.js\",{\"file\":\"_app/immutable/chunks/CXrPUR7p.js\",\"size\":57746,\"etag\":\"gAYWRLTn2oZmf6NiWoO-yQZKYKjLFfzBUu8_OacK0ns\",\"gz\":19129,\"br\":17062}],[\"/ui/_app/immutable/chunks/DclECHGd.js\",{\"file\":\"_app/immutable/chunks/DclECHGd.js\",\"size\":1630,\"etag\":\"hnTfcMv_1XU3cajdWwisO27CnBFwRo5GhIdgoP_upVA\",\"gz\":828,\"br\":714}],[\"/ui/_app/immutable/chunks/Dksil5Gu.js\",{\"file\":\"_app/immutable/chunks/Dksil5Gu.js\",\"size\":4249,\"etag\":\"oExGw9C8zjSk27zDAPt7LOFboSN3l2UJxI3qk09tzSg\",\"gz\":1867,\"br\":1678}],[\"/ui/_app/immutable/chunks/DnL0kOQY.js\",{\"file\":\"_app/immutable/chunks/DnL0kOQY.js\",\"size\":22,\"etag\":\"wq40sVnOFkuIZkJfsRIwm8LsKnvdrZkHJFyza_QVKUM\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/Fimt9aTv.js\",{\"file\":\"_app/immutable/chunks/Fimt9aTv.js\",\"size\":10442,\"etag\":\"TU_NqWjL1UuOstB_tUMF8OlTjVureeJloe6035Xw9Uo\",\"gz\":2695,\"br\":2323}],[\"/ui/_app/immutable/chunks/h7UQ89-l.js\",{\"file\":\"_app/immutable/chunks/h7UQ89-l.js\",\"size\":41313,\"etag\":\"RB2subHqnfP26r1Ji74YrsQEYZYL0uivrmd0pdnWHr8\",\"gz\":15890,\"br\":14417}],[\"/ui/_app/immutable/entry/app.D_WMpF1j.js\",{\"file\":\"_app/immutable/entry/app.D_WMpF1j.js\",\"size\":1589,\"etag\":\"6_jqRik54H0pFlUOP4TcIKPiNKiOgztdeo_9OjnsxCM\",\"gz\":727,\"br\":694}],[\"/ui/_app/immutable/entry/payload.DSmR2FwN.js\",{\"file\":\"_app/immutable/entry/payload.DSmR2FwN.js\",\"size\":65,\"etag\":\"t8untEsjl8fSj320o07HNKmF5k_yfXTd-NlkXPgU8J8\",\"gz\":77,\"br\":60}],[\"/ui/_app/immutable/entry/start.uodUAHNT.js\",{\"file\":\"_app/immutable/entry/start.uodUAHNT.js\",\"size\":574,\"etag\":\"O4snkUzjjjOka7jfFPN26hQrBOyuiK-KBZNclShvqkE\",\"gz\":330,\"br\":309}],[\"/ui/_app/immutable/nodes/0.kO9a4iA1.js\",{\"file\":\"_app/immutable/nodes/0.kO9a4iA1.js\",\"size\":5431,\"etag\":\"9aomk3gR4JgLJNQrZN6Cs5kfY3O5k0ptwurGwNhK8pE\",\"gz\":2520,\"br\":2212}],[\"/ui/_app/immutable/nodes/1.jZ-iBVjE.js\",{\"file\":\"_app/immutable/nodes/1.jZ-iBVjE.js\",\"size\":352,\"etag\":\"iYrHjurSTZqrBhI5TBxo1qpRsm_9XcJJN57ESmyuseg\",\"gz\":261,\"br\":215}],[\"/ui/_app/immutable/nodes/2.Y_rJeHBb.js\",{\"file\":\"_app/immutable/nodes/2.Y_rJeHBb.js\",\"size\":38691,\"etag\":\"CElYDosQb8QHT_zsW5XowGRGb-J3qYUbdVbIbyfXsNY\",\"gz\":10713,\"br\":9374}],[\"/ui/_app/immutable/nodes/3.DcigOv3T.js\",{\"file\":\"_app/immutable/nodes/3.DcigOv3T.js\",\"size\":10348,\"etag\":\"JCQUv28AWxw-GK06r_UDUrgUcujVat3ysypgUDMBWJU\",\"gz\":3221,\"br\":2823}],[\"/ui/_app/immutable/nodes/4.DY8qq4Io.js\",{\"file\":\"_app/immutable/nodes/4.DY8qq4Io.js\",\"size\":208,\"etag\":\"ie8yHIIwYlnejxernDH8mSGlgs9vC2BxgKR_nDf6Pdw\",\"gz\":190,\"br\":142}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"l7aD501-BtdvK0C_X5MJgay3gha3X1sFdUuhFfePgn8\",\"gz\":47,\"br\":29}],[\"/ui/robots.txt\",{\"file\":\"robots.txt\",\"size\":63,\"etag\":\"sDMkMme8vauEywHpQIEdbXeolNePBHD6rw60P45O_Mk\",\"gz\":77,\"br\":67}]],\"aliases\":[]}");
|
|
11
11
|
export const prerendered_assets = JSON.parse("{\"entries\":[],\"aliases\":[]}");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
form.svelte-1oos7l{flex-direction:column;gap:12px;max-width:480px;display:flex}.actions.svelte-1oos7l{gap:8px;display:flex}.note.svelte-1oos7l{color:var(--md-sys-color-on-surface-variant);margin:0;font-size:13px;line-height:18px}.pending.svelte-1oos7l{background:var(--app-warning-container);color:var(--app-on-warning-container);border-radius:12px;padding:12px 16px;font-size:14px;line-height:20px}.failure.svelte-1oos7l{color:var(--md-sys-color-error);margin:0;font-size:14px;line-height:20px}code.svelte-1oos7l{font-family:var(--app-mono-font,monospace);font-size:.95em}fieldset.svelte-15x0123{border:0;min-width:0;margin:0;padding:0}legend.svelte-15x0123{color:var(--md-sys-color-on-surface);padding:0;font-size:14px;font-weight:500;line-height:20px}.hint.svelte-15x0123{color:var(--md-sys-color-on-surface-variant);margin:2px 0 12px;font-size:13px;line-height:18px}.options.svelte-15x0123{flex-direction:column;gap:8px;display:flex}.option.svelte-15x0123{border:1px solid var(--md-sys-color-outline);box-sizing:border-box;background:var(--md-sys-color-surface);min-height:64px;color:var(--md-sys-color-on-surface);cursor:pointer;border-radius:12px;align-items:center;gap:12px;padding:8px 16px 8px 12px;display:flex;position:relative}.option.svelte-15x0123:hover{background:var(--md-sys-color-surface-container-high)}input.svelte-15x0123{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.mark.svelte-15x0123{border:2px solid var(--md-sys-color-outline);box-sizing:border-box;border-radius:50%;flex:none;place-items:center;width:20px;height:20px;display:grid}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked){border:3px solid var(--md-sys-color-primary);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);padding:6px 14px 6px 10px}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .mark:where(.svelte-15x0123){border-color:var(--md-sys-color-primary)}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .mark:where(.svelte-15x0123):after{background:var(--md-sys-color-primary);content:"";border-radius:50%;width:10px;height:10px}.option.svelte-15x0123:has(input:where(.svelte-15x0123):focus-visible){outline:var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-primary);outline-offset:2px}.text.svelte-15x0123{flex-direction:column;flex:1;min-width:0;display:flex}.label.svelte-15x0123{font-size:16px;font-weight:500;line-height:24px}.description.svelte-15x0123{font-size:13px;line-height:18px}.option.svelte-15x0123:not(:has(input:checked)) .description:where(.svelte-15x0123){color:var(--md-sys-color-on-surface-variant)}.selected.svelte-15x0123{color:var(--md-sys-color-on-primary-container);align-items:center;gap:4px;font-size:12px;font-weight:600;display:none}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .selected:where(.svelte-15x0123){display:inline-flex}.swatch.svelte-15x0123{border:2px solid var(--md-sys-color-outline);box-sizing:border-box;background:var(--md-sys-color-surface);border-radius:8px;flex:none;width:72px;height:44px;display:block;position:relative;overflow:hidden}.bar.svelte-15x0123{background:var(--md-sys-color-primary);height:10px;position:absolute;inset:0 0 auto}.aa.svelte-15x0123{color:var(--md-sys-color-on-surface);font:600 15px/16px system-ui,sans-serif;position:absolute;bottom:5px;left:8px}.chip.svelte-15x0123{background:var(--md-sys-color-primary);border-radius:6px;width:20px;height:12px;position:absolute;bottom:7px;right:7px}.page.svelte-1i19ct2{box-sizing:border-box;height:100%;padding:var(--app-gutter) 0}.pane.svelte-1i19ct2{box-sizing:border-box;border:1px solid var(--md-sys-color-outline-variant);border-width:max(1px, var(--app-border-width));background:var(--md-sys-color-surface-container-lowest);border-radius:16px;height:100%;min-height:0;padding:16px 24px 24px;overflow:auto}section.svelte-1i19ct2{max-width:720px}section.svelte-1i19ct2+section:where(.svelte-1i19ct2){border-top:1px solid var(--md-sys-color-outline-variant);margin-top:32px;padding-top:24px}.scope.svelte-1i19ct2{color:var(--md-sys-color-on-surface-variant);margin:0 0 12px;font-size:13px;line-height:18px}h2.svelte-1i19ct2{color:var(--md-sys-color-on-surface);margin:0 0 8px;font-size:22px;font-weight:500;line-height:28px}.visually-hidden.svelte-1i19ct2{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import{A as e,B as t,C as n,D as r,E as i,F as a,H as o,I as s,L as c,M as l,N as u,O as d,P as f,R as p,T as m,U as h,V as g,_ as ee,b as te,g as ne,j as _,k as v,v as y,w as b,y as x,z as S}from"./CXrPUR7p.js";function C(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return p(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var re=class extends _{connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return a`<span class="shadow"></span>`}},w=g`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}
|
|
2
|
+
`;w.styleSheet;var T=class extends re{};T.styles=[w],T=h([o(`md-elevation`)],T);function ie(e){let t=new MouseEvent(`click`,{bubbles:!0});return e.dispatchEvent(t),t}function ae(e){return e.currentTarget!==e.target||e.composedPath()[0]!==e.target||e.target.disabled?!1:!oe(e)}function oe(e){let t=E;return t&&(e.preventDefault(),e.stopImmediatePropagation()),se(),t}var E=!1;async function se(){E=!0,await null,E=!1}var ce=n(ne(y(te(_)))),D=class extends ce{constructor(){super(),this.softDisabled=!1,this.href=``,this.download=``,this.target=``,this.trailingIcon=!1,this.hasIcon=!1,this.addEventListener(`click`,this.handleClick.bind(this))}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}render(){let e=this.disabled||this.softDisabled,t=this.href?this.renderLink():this.renderButton(),n=this.href?`link`:`button`;return a`
|
|
3
|
+
${this.renderElevationOrOutline?.()}
|
|
4
|
+
<div class="background"></div>
|
|
5
|
+
<md-focus-ring part="focus-ring" for=${n}></md-focus-ring>
|
|
6
|
+
<md-ripple
|
|
7
|
+
part="ripple"
|
|
8
|
+
for=${n}
|
|
9
|
+
?disabled="${e}"></md-ripple>
|
|
10
|
+
${t}
|
|
11
|
+
`}renderButton(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return a`<button
|
|
12
|
+
id="button"
|
|
13
|
+
class="button"
|
|
14
|
+
?disabled=${this.disabled}
|
|
15
|
+
aria-disabled=${this.softDisabled||l}
|
|
16
|
+
aria-label="${e||l}"
|
|
17
|
+
aria-haspopup="${t||l}"
|
|
18
|
+
aria-expanded="${n||l}">
|
|
19
|
+
${this.renderContent()}
|
|
20
|
+
</button>`}renderLink(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return a`<a
|
|
21
|
+
id="link"
|
|
22
|
+
class="button"
|
|
23
|
+
aria-label="${e||l}"
|
|
24
|
+
aria-haspopup="${t||l}"
|
|
25
|
+
aria-expanded="${n||l}"
|
|
26
|
+
aria-disabled=${this.disabled||this.softDisabled||l}
|
|
27
|
+
tabindex="${this.disabled&&!this.softDisabled?-1:l}"
|
|
28
|
+
href=${this.href}
|
|
29
|
+
download=${this.download||l}
|
|
30
|
+
target=${this.target||l}
|
|
31
|
+
>${this.renderContent()}
|
|
32
|
+
</a>`}renderContent(){let e=a`<slot
|
|
33
|
+
name="icon"
|
|
34
|
+
@slotchange="${this.handleSlotChange}"></slot>`;return a`
|
|
35
|
+
<span class="touch"></span>
|
|
36
|
+
${this.trailingIcon?l:e}
|
|
37
|
+
<span class="label"><slot></slot></span>
|
|
38
|
+
${this.trailingIcon?e:l}
|
|
39
|
+
`}handleClick(e){this.softDisabled||this.disabled&&this.href?(e.stopImmediatePropagation(),e.preventDefault()):ae(e)&&this.buttonElement&&(this.focus(),ie(this.buttonElement))}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}};D.shadowRootOptions={mode:`open`,delegatesFocus:!0},h([t({type:Boolean,attribute:`soft-disabled`,reflect:!0})],D.prototype,`softDisabled`,void 0),h([t()],D.prototype,`href`,void 0),h([t()],D.prototype,`download`,void 0),h([t()],D.prototype,`target`,void 0),h([t({type:Boolean,attribute:`trailing-icon`,reflect:!0})],D.prototype,`trailingIcon`,void 0),h([t({type:Boolean,attribute:`has-icon`,reflect:!0})],D.prototype,`hasIcon`,void 0),h([c(`.button`)],D.prototype,`buttonElement`,void 0),h([C({slot:`icon`,flatten:!0})],D.prototype,`assignedIcons`,void 0);var le=g`md-elevation{transition-duration:280ms}:host(:is([disabled],[soft-disabled])) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host(:is([disabled],[soft-disabled])) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)}
|
|
40
|
+
`;le.styleSheet;var O=g`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
|
|
41
|
+
`;O.styleSheet;var ue=class extends D{},k=g`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
|
|
42
|
+
`;k.styleSheet;var A=class extends ue{};A.styles=[O,k],A=h([o(`md-text-button`)],A);function j(e,t){t.bubbles&&(!e.shadowRoot||t.composed)&&t.stopPropagation();let n=Reflect.construct(t.constructor,[t.type,t]),r=e.dispatchEvent(n);return r||t.preventDefault(),r}var M=class extends _{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label=``,this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText=``,this.errorText=``,this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){let e=this.count??-1,t=this.max??-1;return e<0||t<=0?``:`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has(`disabled`)&&e.get(`disabled`)!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set(`focused`,!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get(`focused`),wasPopulated:e.get(`populated`)}),super.update(e)}render(){let e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),i={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return a`
|
|
43
|
+
<div class="field ${r(i)}">
|
|
44
|
+
<div class="container-overflow">
|
|
45
|
+
${this.renderBackground?.()}
|
|
46
|
+
<slot name="container"></slot>
|
|
47
|
+
${this.renderStateLayer?.()} ${this.renderIndicator?.()} ${n}
|
|
48
|
+
<div class="container">
|
|
49
|
+
<div class="start">
|
|
50
|
+
<slot name="start"></slot>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="middle">
|
|
53
|
+
<div class="label-wrapper">
|
|
54
|
+
${t} ${n?l:e}
|
|
55
|
+
</div>
|
|
56
|
+
<div class="content">
|
|
57
|
+
<slot></slot>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="end">
|
|
61
|
+
<slot name="end"></slot>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
${this.renderSupportingText()}
|
|
66
|
+
</div>
|
|
67
|
+
`}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return l;let n=a`<span>${e}</span>`,r=t?a`<span class="counter">${t}</span>`:l,i=this.error&&this.errorText&&!this.refreshErrorAlert?`alert`:l;return a`
|
|
68
|
+
<div class="supporting-text" role=${i}>${n}${r}</div>
|
|
69
|
+
<slot
|
|
70
|
+
name="aria-describedby"
|
|
71
|
+
@slotchange=${this.updateSlottedAriaDescribedBy}></slot>
|
|
72
|
+
`}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)u(a`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute(`hidden`,``)}renderLabel(e){if(!this.label)return l;let t;t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating;let n={hidden:!t,floating:e,resting:!e},i=`${this.label}${this.required&&!this.noAsterisk?`*`:``}`;return a`
|
|
73
|
+
<span class="label ${r(n)}" aria-hidden=${!t}
|
|
74
|
+
>${i}</span
|
|
75
|
+
>
|
|
76
|
+
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){if(!this.label||(e??=this.focused,t??=this.populated,(e||t)===(this.focused||this.populated)))return;let n=this.getLabelKeyframes();n.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(n,{duration:150,easing:i.STANDARD}),this.labelAnimation?.addEventListener(`finish`,()=>{this.isAnimating=!1}))}getLabelKeyframes(){let{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];let{x:n,y:r,height:i}=e.getBoundingClientRect(),{x:a,y:o,height:s}=t.getBoundingClientRect(),c=e.scrollWidth,l=t.scrollWidth;if(c===0||l===0)return[];let u=l/c,d=`translateX(${a-n}px) translateY(${o-r+Math.round((s-i*u)/2)}px) scale(${u})`,f=`translateX(0) translateY(0) scale(1)`,p=t.clientWidth,m=l>p?`${p/u}px`:``;return this.focused||this.populated?[{transform:d,width:m},{transform:f,width:m}]:[{transform:f,width:m},{transform:d,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}};h([t({type:Boolean})],M.prototype,`disabled`,void 0),h([t({type:Boolean})],M.prototype,`error`,void 0),h([t({type:Boolean})],M.prototype,`focused`,void 0),h([t()],M.prototype,`label`,void 0),h([t({type:Boolean,attribute:`no-asterisk`})],M.prototype,`noAsterisk`,void 0),h([t({type:Boolean})],M.prototype,`populated`,void 0),h([t({type:Boolean})],M.prototype,`required`,void 0),h([t({type:Boolean})],M.prototype,`resizable`,void 0),h([t({attribute:`supporting-text`})],M.prototype,`supportingText`,void 0),h([t({attribute:`error-text`})],M.prototype,`errorText`,void 0),h([t({type:Number})],M.prototype,`count`,void 0),h([t({type:Number})],M.prototype,`max`,void 0),h([t({type:Boolean,attribute:`has-start`})],M.prototype,`hasStart`,void 0),h([t({type:Boolean,attribute:`has-end`})],M.prototype,`hasEnd`,void 0),h([C({slot:`aria-describedby`})],M.prototype,`slottedAriaDescribedBy`,void 0),h([S()],M.prototype,`isAnimating`,void 0),h([S()],M.prototype,`refreshErrorAlert`,void 0),h([S()],M.prototype,`disableTransitions`,void 0),h([c(`.label.floating`)],M.prototype,`floatingLabelEl`,void 0),h([c(`.label.resting`)],M.prototype,`restingLabelEl`,void 0),h([c(`.container`)],M.prototype,`containerEl`,void 0);var de=class extends M{renderOutline(e){return a`
|
|
77
|
+
<div class="outline">
|
|
78
|
+
<div class="outline-start"></div>
|
|
79
|
+
<div class="outline-notch">
|
|
80
|
+
<div class="outline-panel-inactive"></div>
|
|
81
|
+
<div class="outline-panel-active"></div>
|
|
82
|
+
<div class="outline-label">${e}</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="outline-end"></div>
|
|
85
|
+
</div>
|
|
86
|
+
`}},N=g`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
87
|
+
`;N.styleSheet;var P=g`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
|
|
88
|
+
`;P.styleSheet;var F=class extends de{};F.styles=[P,N],F=h([o(`md-outlined-field`)],F);var I=g`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
|
|
89
|
+
`;I.styleSheet;var{I:fe}=s,pe=e=>e.strings===void 0,me={},he=(e,t=me)=>e._$AH=t,L=d(class extends v{constructor(t){if(super(t),t.type!==e.PROPERTY&&t.type!==e.ATTRIBUTE&&t.type!==e.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pe(t))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(t,[n]){if(n===f||n===l)return n;let r=t.element,i=t.name;if(t.type===e.PROPERTY){if(n===r[i])return f}else if(t.type===e.BOOLEAN_ATTRIBUTE){if(!!n===r.hasAttribute(i))return f}else if(t.type===e.ATTRIBUTE&&r.getAttribute(i)===n+``)return f;return he(t),n}}),R=`important`,ge=` !`+R,z=d(class extends v{constructor(t){if(super(t),t.type!==e.ATTRIBUTE||t.name!==`style`||t.strings?.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,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(ge);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?R:``):n[e]=r}}return f}}),_e={fromAttribute(e){return e??``},toAttribute(e){return e||null}},B=Symbol(`createValidator`),V=Symbol(`getValidityAnchor`),H=Symbol(`privateValidator`),U=Symbol(`privateSyncValidity`),W=Symbol(`privateCustomValidationMessage`);function ve(e){var t;class n extends e{constructor(){super(...arguments),this[t]=``}get validity(){return this[U](),this[x].validity}get validationMessage(){return this[U](),this[x].validationMessage}get willValidate(){return this[U](),this[x].willValidate}checkValidity(){return this[U](),this[x].checkValidity()}reportValidity(){return this[U](),this[x].reportValidity()}setCustomValidity(e){this[W]=e,this[U]()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[U]()}firstUpdated(e){super.firstUpdated(e),this[U]()}[(t=W,U)](){this[H]||(this[H]=this[B]());let{validity:e,validationMessage:t}=this[H].getValidity(),n=!!this[W],r=this[W]||t;this[x].setValidity({...e,customError:n},r,this[V]()??void 0)}[B](){throw Error(`Implement [createValidator]`)}[V](){throw Error(`Implement [getValidityAnchor]`)}}return n}var G=Symbol(`onReportValidity`),K=Symbol(`privateCleanupFormListeners`),q=Symbol(`privateDoNotReportInvalid`),J=Symbol(`privateIsSelfReportingValidity`),Y=Symbol(`privateCallOnReportValidity`);function ye(e){var t,n,r;class i extends e{constructor(...e){super(...e),this[t]=new AbortController,this[n]=!1,this[r]=!1,this.addEventListener(`invalid`,e=>{!this[q]&&e.isTrusted&&this.addEventListener(`invalid`,()=>{this[Y](e)},{once:!0})},{capture:!0})}checkValidity(){this[q]=!0;let e=super.checkValidity();return this[q]=!1,e}reportValidity(){this[J]=!0;let e=super.reportValidity();return e&&this[Y](null),this[J]=!1,e}[(t=K,n=q,r=J,Y)](e){let t=e?.defaultPrevented;t||(this[G](e),!t&&e?.defaultPrevented&&(this[J]||Se(this[x].form,this))&&this.focus())}[G](e){throw Error(`Implement [onReportValidity]`)}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[K].abort(),e&&(this[K]=new AbortController,be(this,e,()=>{this[Y](null)},this[K].signal))}}return i}function be(e,t,n,r){let i=xe(t),a=!1,o,s=!1;i.addEventListener(`before`,()=>{s=!0,o=new AbortController,a=!1,e.addEventListener(`invalid`,()=>{a=!0},{signal:o.signal})},{signal:r}),i.addEventListener(`after`,()=>{s=!1,o?.abort(),a||n()},{signal:r}),t.addEventListener(`submit`,()=>{s||n()},{signal:r})}var X=new WeakMap;function xe(e){if(!X.has(e)){let t=new EventTarget;X.set(e,t);for(let n of[`reportValidity`,`requestSubmit`]){let r=e[n];e[n]=function(){t.dispatchEvent(new Event(`before`));let e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event(`after`)),e}}}return X.get(e)}function Se(e,t){if(!e)return!0;let n;for(let t of e.elements)if(t.matches(`:invalid`)){n=t;break}return n===t}var Ce=class{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:``}}getValidity(){let e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;let{validity:t,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}},we=class extends Ce{computeValidity({state:e,renderedControl:t}){let n=t;Z(e)&&!n?(n=this.inputControl||document.createElement(`input`),this.inputControl=n):n||(n=this.textAreaControl||document.createElement(`textarea`),this.textAreaControl=n);let r=Z(e)?n:null;if(r&&(r.type=e.type),n.value!==e.value&&(n.value=e.value),n.required=e.required,r){let t=e;t.pattern?r.pattern=t.pattern:r.removeAttribute(`pattern`),t.min?r.min=t.min:r.removeAttribute(`min`),t.max?r.max=t.max:r.removeAttribute(`max`),t.step?r.step=t.step:r.removeAttribute(`step`)}return(e.minLength??-1)>-1?n.setAttribute(`minlength`,String(e.minLength)):n.removeAttribute(`minlength`),(e.maxLength??-1)>-1?n.setAttribute(`maxlength`,String(e.maxLength)):n.removeAttribute(`maxlength`),{validity:n.validity,validationMessage:n.validationMessage}}equals({state:e},{state:t}){let n=e.type===t.type&&e.value===t.value&&e.required===t.required&&e.minLength===t.minLength&&e.maxLength===t.maxLength;return!Z(e)||!Z(t)?n:n&&e.pattern===t.pattern&&e.min===t.min&&e.max===t.max&&e.step===t.step}copy({state:e}){return{state:Z(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){let{type:t,pattern:n,min:r,max:i,step:a}=e;return{...this.copySharedState(e),type:t,pattern:n,min:r,max:i,step:a}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:t,minLength:n,maxLength:r}){return{value:e,required:t,minLength:n,maxLength:r}}};function Z(e){return e.type!==`textarea`}var Te=n(ye(ve(y(te(_))))),Q=class extends Te{constructor(){super(...arguments),this.error=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.required=!1,this.value=``,this.prefixText=``,this.suffixText=``,this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText=``,this.textDirection=``,this.rows=2,this.cols=20,this.inputMode=``,this.max=``,this.maxLength=-1,this.min=``,this.minLength=-1,this.noSpinner=!1,this.pattern=``,this.placeholder=``,this.readOnly=!1,this.multiple=!1,this.step=``,this.type=`text`,this.autocomplete=``,this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=``}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){let e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){let t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){let e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){let t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,n){this.getInputOrTextarea().setSelectionRange(e,t,n)}showPicker(){let e=this.getInput();e&&e.showPicker()}stepDown(e){let t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){let t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute(`value`)??``,this.nativeError=!1,this.nativeErrorText=``}attributeChangedCallback(e,t,n){e===`value`&&this.dirty||super.attributeChangedCallback(e,t,n)}render(){let e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type===`textarea`,"no-spinner":this.noSpinner};return a`
|
|
90
|
+
<span class="text-field ${r(e)}">
|
|
91
|
+
${this.renderField()}
|
|
92
|
+
</span>
|
|
93
|
+
`}updated(e){let t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return m`<${this.fieldTag}
|
|
94
|
+
class="field"
|
|
95
|
+
count=${this.value.length}
|
|
96
|
+
?disabled=${this.disabled}
|
|
97
|
+
?error=${this.hasError}
|
|
98
|
+
error-text=${this.getErrorText()}
|
|
99
|
+
?focused=${this.focused}
|
|
100
|
+
?has-end=${this.hasTrailingIcon}
|
|
101
|
+
?has-start=${this.hasLeadingIcon}
|
|
102
|
+
label=${this.label}
|
|
103
|
+
?no-asterisk=${this.noAsterisk}
|
|
104
|
+
max=${this.maxLength}
|
|
105
|
+
?populated=${!!this.value}
|
|
106
|
+
?required=${this.required}
|
|
107
|
+
?resizable=${this.type===`textarea`}
|
|
108
|
+
supporting-text=${this.supportingText}
|
|
109
|
+
>
|
|
110
|
+
${this.renderLeadingIcon()}
|
|
111
|
+
${this.renderInputOrTextarea()}
|
|
112
|
+
${this.renderTrailingIcon()}
|
|
113
|
+
<div id="description" slot="aria-describedby"></div>
|
|
114
|
+
<slot name="container" slot="container"></slot>
|
|
115
|
+
</${this.fieldTag}>`}renderLeadingIcon(){return a`
|
|
116
|
+
<span class="icon leading" slot="start">
|
|
117
|
+
<slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
|
|
118
|
+
</span>
|
|
119
|
+
`}renderTrailingIcon(){return a`
|
|
120
|
+
<span class="icon trailing" slot="end">
|
|
121
|
+
<slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
|
|
122
|
+
</span>
|
|
123
|
+
`}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||l,n=this.autocomplete,r=(this.maxLength??-1)>-1,i=(this.minLength??-1)>-1;if(this.type===`textarea`)return a`
|
|
124
|
+
<textarea
|
|
125
|
+
class="input"
|
|
126
|
+
style=${z(e)}
|
|
127
|
+
aria-describedby="description"
|
|
128
|
+
aria-invalid=${this.hasError}
|
|
129
|
+
aria-label=${t}
|
|
130
|
+
autocomplete=${n||l}
|
|
131
|
+
name=${this.name||l}
|
|
132
|
+
?disabled=${this.disabled}
|
|
133
|
+
maxlength=${r?this.maxLength:l}
|
|
134
|
+
minlength=${i?this.minLength:l}
|
|
135
|
+
placeholder=${this.placeholder||l}
|
|
136
|
+
?readonly=${this.readOnly}
|
|
137
|
+
?required=${this.required}
|
|
138
|
+
rows=${this.rows}
|
|
139
|
+
cols=${this.cols}
|
|
140
|
+
.value=${L(this.value)}
|
|
141
|
+
@change=${this.redispatchEvent}
|
|
142
|
+
@focus=${this.handleFocusChange}
|
|
143
|
+
@blur=${this.handleFocusChange}
|
|
144
|
+
@input=${this.handleInput}
|
|
145
|
+
@select=${this.redispatchEvent}></textarea>
|
|
146
|
+
`;let o=this.renderPrefix(),s=this.renderSuffix(),c=this.inputMode;return a`
|
|
147
|
+
<div class="input-wrapper">
|
|
148
|
+
${o}
|
|
149
|
+
<input
|
|
150
|
+
class="input"
|
|
151
|
+
style=${z(e)}
|
|
152
|
+
aria-describedby="description"
|
|
153
|
+
aria-invalid=${this.hasError}
|
|
154
|
+
aria-label=${t}
|
|
155
|
+
autocomplete=${n||l}
|
|
156
|
+
name=${this.name||l}
|
|
157
|
+
?disabled=${this.disabled}
|
|
158
|
+
inputmode=${c||l}
|
|
159
|
+
max=${this.max||l}
|
|
160
|
+
maxlength=${r?this.maxLength:l}
|
|
161
|
+
min=${this.min||l}
|
|
162
|
+
minlength=${i?this.minLength:l}
|
|
163
|
+
pattern=${this.pattern||l}
|
|
164
|
+
placeholder=${this.placeholder||l}
|
|
165
|
+
?readonly=${this.readOnly}
|
|
166
|
+
?required=${this.required}
|
|
167
|
+
?multiple=${this.multiple}
|
|
168
|
+
step=${this.step||l}
|
|
169
|
+
type=${this.type}
|
|
170
|
+
.value=${L(this.value)}
|
|
171
|
+
@change=${this.redispatchEvent}
|
|
172
|
+
@focus=${this.handleFocusChange}
|
|
173
|
+
@blur=${this.handleFocusChange}
|
|
174
|
+
@input=${this.handleInput}
|
|
175
|
+
@select=${this.redispatchEvent} />
|
|
176
|
+
${s}
|
|
177
|
+
</div>
|
|
178
|
+
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?a`<span class="${r({suffix:t,prefix:!t})}">${e}</span>`:l}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){this.focused=this.inputOrTextarea?.matches(`:focus`)??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){j(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type===`textarea`?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[ee](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[B](){return new we(()=>({state:this,renderedControl:this.inputOrTextarea}))}[V](){return this.inputOrTextarea}[G](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}};Q.shadowRootOptions={..._.shadowRootOptions,delegatesFocus:!0},h([t({type:Boolean,reflect:!0})],Q.prototype,`error`,void 0),h([t({attribute:`error-text`})],Q.prototype,`errorText`,void 0),h([t()],Q.prototype,`label`,void 0),h([t({type:Boolean,attribute:`no-asterisk`})],Q.prototype,`noAsterisk`,void 0),h([t({type:Boolean,reflect:!0})],Q.prototype,`required`,void 0),h([t()],Q.prototype,`value`,void 0),h([t({attribute:`prefix-text`})],Q.prototype,`prefixText`,void 0),h([t({attribute:`suffix-text`})],Q.prototype,`suffixText`,void 0),h([t({type:Boolean,attribute:`has-leading-icon`})],Q.prototype,`hasLeadingIcon`,void 0),h([t({type:Boolean,attribute:`has-trailing-icon`})],Q.prototype,`hasTrailingIcon`,void 0),h([t({attribute:`supporting-text`})],Q.prototype,`supportingText`,void 0),h([t({attribute:`text-direction`})],Q.prototype,`textDirection`,void 0),h([t({type:Number})],Q.prototype,`rows`,void 0),h([t({type:Number})],Q.prototype,`cols`,void 0),h([t({reflect:!0})],Q.prototype,`inputMode`,void 0),h([t()],Q.prototype,`max`,void 0),h([t({type:Number})],Q.prototype,`maxLength`,void 0),h([t()],Q.prototype,`min`,void 0),h([t({type:Number})],Q.prototype,`minLength`,void 0),h([t({type:Boolean,attribute:`no-spinner`})],Q.prototype,`noSpinner`,void 0),h([t()],Q.prototype,`pattern`,void 0),h([t({reflect:!0,converter:_e})],Q.prototype,`placeholder`,void 0),h([t({type:Boolean,reflect:!0})],Q.prototype,`readOnly`,void 0),h([t({type:Boolean,reflect:!0})],Q.prototype,`multiple`,void 0),h([t()],Q.prototype,`step`,void 0),h([t({reflect:!0})],Q.prototype,`type`,void 0),h([t({reflect:!0})],Q.prototype,`autocomplete`,void 0),h([S()],Q.prototype,`dirty`,void 0),h([S()],Q.prototype,`focused`,void 0),h([S()],Q.prototype,`nativeError`,void 0),h([S()],Q.prototype,`nativeErrorText`,void 0),h([c(`.input`)],Q.prototype,`inputOrTextarea`,void 0),h([c(`.field`)],Q.prototype,`field`,void 0),h([C({slot:`leading-icon`})],Q.prototype,`leadingIcons`,void 0),h([C({slot:`trailing-icon`})],Q.prototype,`trailingIcons`,void 0);var Ee=class extends Q{constructor(){super(...arguments),this.fieldTag=b`md-outlined-field`}},De=g`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
|
|
179
|
+
`;De.styleSheet;var $=class extends Ee{constructor(){super(...arguments),this.fieldTag=b`md-outlined-field`}};$.styles=[De,I],$=h([o(`md-outlined-text-field`)],$);export{D as i,O as n,le as r,j as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{B as e,H as t,O as n,V as r}from"./h7UQ89-l.js";import{t as i}from"./Dksil5Gu.js";function a(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var o=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},s=globalThis,c=s.ShadowRoot&&(s.ShadyCSS===void 0||s.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,l=Symbol(),u=new WeakMap,d=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(c&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=u.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&u.set(t,e))}return e}toString(){return this.cssText}},ee=e=>new d(typeof e==`string`?e:e+``,void 0,l),f=(e,...t)=>new d(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,l),p=(e,t)=>{if(c)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=s.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},te=c?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ee(t)})(e):e,{is:ne,defineProperty:re,getOwnPropertyDescriptor:ie,getOwnPropertyNames:ae,getOwnPropertySymbols:oe,getPrototypeOf:se}=Object,ce=globalThis,le=ce.trustedTypes,ue=le?le.emptyScript:``,de=ce.reactiveElementPolyfillSupport,m=(e,t)=>e,fe={toAttribute(e,t){switch(t){case Boolean:e=e?ue:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},pe=(e,t)=>!ne(e,t),me={attribute:!0,type:String,converter:fe,reflect:!1,useDefault:!1,hasChanged:pe};Symbol.metadata??=Symbol(`metadata`),ce.litPropertyMetadata??=new WeakMap;var h=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=me){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&re(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=ie(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??me}static _$Ei(){if(this.hasOwnProperty(m(`elementProperties`)))return;let e=se(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m(`properties`))){let e=this.properties,t=[...ae(e),...oe(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(te(e))}else e!==void 0&&t.push(te(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return p(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?fe:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?fe:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??pe)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};h.elementStyles=[],h.shadowRootOptions={mode:`open`},h[m(`elementProperties`)]=new Map,h[m(`finalized`)]=new Map,de?.({ReactiveElement:h}),(ce.reactiveElementVersions??=[]).push(`2.1.2`);var he={attribute:!0,type:String,converter:fe,reflect:!1,hasChanged:pe},ge=(e=he,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function g(e){return(t,n)=>typeof n==`object`?ge(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function _e(e){return g({...e,state:!0,attribute:!1})}var ve=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function ye(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ve(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return ve(n,r,{get(){return a(this)}})}}var be=globalThis,xe=e=>e,Se=be.trustedTypes,Ce=Se?Se.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,we=`$lit$`,_=`lit$${Math.random().toFixed(9).slice(2)}$`,Te=`?`+_,Ee=`<${Te}>`,v=document,y=()=>v.createComment(``),b=e=>e===null||typeof e!=`object`&&typeof e!=`function`,De=Array.isArray,Oe=e=>De(e)||typeof e?.[Symbol.iterator]==`function`,ke=`[
|
|
2
|
+
\f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ae=/-->/g,je=/>/g,S=RegExp(`>|${ke}(?:([^\\s"'>=/]+)(${ke}*=${ke}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Me=/'/g,Ne=/"/g,Pe=/^(?:script|style|textarea|title)$/i,Fe=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),C=Symbol.for(`lit-noChange`),w=Symbol.for(`lit-nothing`),Ie=new WeakMap,T=v.createTreeWalker(v,129);function Le(e,t){if(!De(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Ce===void 0?t:Ce.createHTML(t)}var Re=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=x;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===x?c[1]===`!--`?o=Ae:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=S):(Pe.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=S):o=je:o===S?c[0]===`>`?(o=i??x,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?S:c[3]===`"`?Ne:Me):o===Ne||o===Me?o=S:o===Ae||o===je?o=x:(o=S,i=void 0);let d=o===S&&e[t+1].startsWith(`/>`)?` `:``;a+=o===x?n+Ee:l>=0?(r.push(s),n.slice(0,l)+we+n.slice(l)+_+d):n+_+(l===-2?t:d)}return[Le(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},ze=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Re(t,n);if(this.el=e.createElement(l,r),T.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=T.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(we)){let t=u[o++],n=i.getAttribute(e).split(_),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ve:r[1]===`?`?He:r[1]===`@`?Ue:O}),i.removeAttribute(e)}else e.startsWith(_)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Pe.test(i.tagName)){let e=i.textContent.split(_),t=e.length-1;if(t>0){i.textContent=Se?Se.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],y()),T.nextNode(),c.push({type:2,index:++a});i.append(e[t],y())}}}else if(i.nodeType===8){if(i.data===Te)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(_,e+1))!==-1;)c.push({type:7,index:a}),e+=_.length-1}}a++}}static createElement(e,t){let n=v.createElement(`template`);return n.innerHTML=e,n}};function E(e,t,n=e,r){if(t===C)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=b(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=E(e,i._$AS(e,t.values),i,r)),t}var Be=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??v).importNode(t,!0);T.currentNode=r;let i=T.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new D(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new We(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=T.nextNode(),a++)}return T.currentNode=v,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},D=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=E(this,e,t),b(e)?e===w||e==null||e===``?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==C&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Oe(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&b(this._$AH)?this._$AA.nextSibling.data=e:this.T(v.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=ze.createElement(Le(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Be(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Ie.get(e.strings);return t===void 0&&Ie.set(e.strings,t=new ze(e)),t}k(t){De(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(y()),this.O(y()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=xe(e).nextSibling;xe(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=w}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=E(this,e,t,0),a=!b(e)||e!==this._$AH&&e!==C,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=E(this,r[n+o],t,o),s===C&&(s=this._$AH[o]),a||=!b(s)||s!==this._$AH[o],s===w?e=w:e!==w&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ve=class extends O{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}},He=class extends O{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}},Ue=class extends O{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=E(this,e,t,0)??w)===C)return;let n=this._$AH,r=e===w&&n!==w||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==w&&(n===w||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},We=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){E(this,e)}},Ge={M:we,P:_,A:Te,C:1,L:Re,R:Be,D:Oe,V:E,I:D,H:O,N:He,U:Ue,B:Ve,F:We},Ke=be.litHtmlPolyfillSupport;Ke?.(ze,D),(be.litHtmlVersions??=[]).push(`3.3.3`);var qe=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new D(t.insertBefore(y(),e),e,void 0,n??{})}return i._$AI(e),i},Je=globalThis,k=class extends h{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};k._$litElement$=!0,k.finalized=!0,Je.litElementHydrateSupport?.({LitElement:k});var Ye=Je.litElementPolyfillSupport;Ye?.({LitElement:k}),(Je.litElementVersions??=[]).push(`4.2.2`);var Xe=Symbol(`attachableController`),Ze=new MutationObserver(e=>{for(let t of e)t.target[Xe]?.hostConnected()}),Qe=class{get htmlFor(){return this.host.getAttribute(`for`)}set htmlFor(e){e===null?this.host.removeAttribute(`for`):this.host.setAttribute(`for`,e)}get control(){return this.host.hasAttribute(`for`)?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[Xe]=this,Ze?.observe(e,{attributeFilter:[`for`]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute(`for`))}detach(){this.setCurrentControl(null),this.host.setAttribute(`for`,``)}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}},$e=[`focusin`,`focusout`,`pointerdown`],et=class extends k{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Qe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}handleEvent(e){if(!e[tt]){switch(e.type){default:return;case`focusin`:this.visible=this.control?.matches(`:focus-visible`)??!1;break;case`focusout`:case`pointerdown`:this.visible=!1}e[tt]=!0}}onControlChange(e,t){for(let n of $e)e?.removeEventListener(n,this),t?.addEventListener(n,this)}update(e){e.has(`visible`)&&this.dispatchEvent(new Event(`visibility-changed`)),super.update(e)}};a([g({type:Boolean,reflect:!0})],et.prototype,`visible`,void 0),a([g({type:Boolean,reflect:!0})],et.prototype,`inward`,void 0);var tt=Symbol(`handledByFocusRing`),nt=f`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
3
|
+
`;nt.styleSheet;var rt=class extends et{};rt.styles=[nt],rt=a([o(`md-focus-ring`)],rt);var it={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},at=e=>(...t)=>({_$litDirective$:e,values:t}),ot=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},st=at(class extends ot{constructor(e){if(super(e),e.type!==it.ATTRIBUTE||e.name!==`class`||e.strings?.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]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return C}}),ct={STANDARD:`cubic-bezier(0.2, 0, 0, 1)`,STANDARD_ACCELERATE:`cubic-bezier(.3,0,1,1)`,STANDARD_DECELERATE:`cubic-bezier(0,0,0,1)`,EMPHASIZED:`cubic-bezier(.3,0,0,1)`,EMPHASIZED_ACCELERATE:`cubic-bezier(.3,0,.8,.15)`,EMPHASIZED_DECELERATE:`cubic-bezier(.05,.7,.1,1)`},lt=450,ut=225,dt=.2,ft=10,pt=75,mt=.35,ht=`::after`,gt=`forwards`,A;(function(e){e[e.INACTIVE=0]=`INACTIVE`,e[e.TOUCH_DELAY=1]=`TOUCH_DELAY`,e[e.HOLDING=2]=`HOLDING`,e[e.WAITING_FOR_CLICK=3]=`WAITING_FOR_CLICK`})(A||={});var _t=[`click`,`contextmenu`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointerup`],vt=150,yt=window.matchMedia(`(forced-colors: active)`),j=class extends k{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize=``,this.rippleScale=``,this.initialSize=0,this.state=A.INACTIVE,this.attachableController=new Qe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return Fe`<div class="surface ${st({hovered:this.hovered,pressed:this.pressed})}"></div>`}update(e){e.has(`disabled`)&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==A.INACTIVE&&this.endPressAnimation())}handlePointerup(e){this.shouldReactToEvent(e)&&(this.state===A.HOLDING?this.state=A.WAITING_FOR_CLICK:this.state===A.TOUCH_DELAY&&(this.state=A.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent)))}async handlePointerdown(e){this.shouldReactToEvent(e)&&(this.rippleStartEvent=e,this.isTouch(e)?(this.state=A.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,vt)}),this.state===A.TOUCH_DELAY&&(this.state=A.HOLDING,this.startPressAnimation(e))):(this.state=A.WAITING_FOR_CLICK,this.startPressAnimation(e)))}handleClick(){this.disabled||(this.state===A.WAITING_FOR_CLICK?this.endPressAnimation():this.state===A.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()))}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||this.endPressAnimation()}determineRippleSize(){let{height:e,width:t}=this.getBoundingClientRect(),n=Math.max(e,t),r=Math.max(mt*n,pt),i=this.currentCSSZoom??1,a=Math.floor(n*dt/i),o=Math.sqrt(t**2+e**2)+ft;this.initialSize=a;let s=(o+r)/a;this.rippleScale=`${s/i}`,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(e){let{scrollX:t,scrollY:n}=window,{left:r,top:i}=this.getBoundingClientRect(),a=t+r,o=n+i,{pageX:s,pageY:c}=e,l=this.currentCSSZoom??1;return{x:(s-a)/l,y:(c-o)/l}}getTranslationCoordinates(e){let{height:t,width:n}=this.getBoundingClientRect(),r=this.currentCSSZoom??1,i={x:(n/r-this.initialSize)/2,y:(t/r-this.initialSize)/2},a;return a=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:n/r/2,y:t/r/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:i}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();let{startPoint:t,endPoint:n}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,i=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:ht,duration:lt,easing:ct.STANDARD,fill:gt})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=A.INACTIVE;let e=this.growAnimation,t=1/0;typeof e?.currentTime==`number`?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to(`ms`).value),t>=ut?this.pressed=!1:(await new Promise(e=>{setTimeout(e,ut-t)}),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type===`pointerenter`||e.type===`pointerleave`)return!this.isTouch(e);let t=e.buttons===1;return this.isTouch(e)||t}isTouch({pointerType:e}){return e===`touch`}async handleEvent(e){if(!yt?.matches)switch(e.type){case`click`:this.handleClick();break;case`contextmenu`:this.handleContextmenu();break;case`pointercancel`:this.handlePointercancel(e);break;case`pointerdown`:await this.handlePointerdown(e);break;case`pointerenter`:this.handlePointerenter(e);break;case`pointerleave`:this.handlePointerleave(e);break;case`pointerup`:this.handlePointerup(e)}}onControlChange(e,t){for(let n of _t)e?.removeEventListener(n,this),t?.addEventListener(n,this)}};a([g({type:Boolean,reflect:!0})],j.prototype,`disabled`,void 0),a([_e()],j.prototype,`hovered`,void 0),a([_e()],j.prototype,`pressed`,void 0),a([ye(`.surface`)],j.prototype,`mdRoot`,void 0);var bt=f`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
4
|
+
`;bt.styleSheet;var xt=class extends j{};xt.styles=[bt],xt=a([o(`md-ripple`)],xt);var St=Symbol.for(``),Ct=e=>{if(e?.r===St)return e?._$litStatic$},wt=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:St}),Tt=new Map,Et=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l<r;){for(c=t[l];l<r&&(a=n[l],(i=Ct(a))!==void 0);)c+=i+t[++l],u=!0;l!==r&&s.push(a),o.push(c),l++}if(l===r&&o.push(t[r]),u){let e=o.join(`$$lit$$`);(t=Tt.get(e))===void 0&&(o.raw=o,Tt.set(e,t=o)),n=s}return e(t,...n)})(Fe),Dt=`role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColSpan.ariaCurrent.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText`.split(`.`),Ot=Dt.map(At);function kt(e){return Ot.includes(e)}function At(e){return e.replace(`aria`,`aria-`).replace(/Elements?/g,``).toLowerCase()}var jt=Symbol(`privateIgnoreAttributeChangesFor`);function Mt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,n){if(!kt(e)){super.attributeChangedCallback(e,t,n);return}if(this[jt].has(e))return;this[jt].add(e),this.removeAttribute(e),this[jt].delete(e);let r=Ft(e);n===null?delete this.dataset[r]:this.dataset[r]=n,this.requestUpdate(Ft(e),t)}getAttribute(e){return kt(e)?super.getAttribute(Pt(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),kt(e)&&(super.removeAttribute(Pt(e)),this.requestUpdate())}}return t=jt,Nt(n),n}function Nt(e){for(let t of Dt){let n=At(t),r=Pt(n),i=Ft(n);e.createProperty(t,{attribute:n,noAccessor:!0}),e.createProperty(Symbol(r),{attribute:r,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(e){let n=this.dataset[i]??null;e!==n&&(e===null?delete this.dataset[i]:this.dataset[i]=e,this.requestUpdate(t,n))}})}}function Pt(e){return`data-${e}`}function Ft(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}var It=Symbol(`dispatchHooks`);function Lt(e,t){let n=e[It];if(!n)throw Error(`'${e.type}' event needs setupDispatchHooks().`);n.addEventListener(`after`,t,{once:!0})}var Rt=new WeakMap;function zt(e,...t){let n=Rt.get(e);n||(n=new Set,Rt.set(e,n));for(let r of t)n.has(r)||(e.addEventListener(r,e=>{let t=new EventTarget;e[It]=t;let n=new AbortController,i=()=>{n.abort(),t.dispatchEvent(new Event(`after`))},a=e=>function(){e.call(this),i()};e.stopPropagation=a(e.stopPropagation),e.stopImmediatePropagation=a(e.stopImmediatePropagation);let o=e.composedPath(),s;s=e.composed&&e.bubbles?o[o.length-1]:e.bubbles?o[0].getRootNode():o[0],s.addEventListener(r,()=>{i()},{once:!0,signal:n.signal})},{capture:!0}),n.add(r))}var M=Symbol(`internals`),Bt=Symbol(`privateInternals`);function Vt(e){class t extends e{get[M](){return this[Bt]||(this[Bt]=this.attachInternals()),this[Bt]}}return t}var Ht=Symbol(`getFormValue`),Ut=Symbol(`getFormState`);function Wt(e){class t extends e{get form(){return this[M].form}get labels(){return this[M].labels}get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.hasAttribute(`disabled`)}set disabled(e){this.toggleAttribute(`disabled`,!!e)}attributeChangedCallback(e,t,n){if(e===`name`||e===`disabled`){let n=e===`disabled`?t!==null:t;this.requestUpdate(e,n)}else super.attributeChangedCallback(e,t,n)}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[M].setFormValue(this[Ht](),this[Ut]())}[Ht](){return this.getAttribute(`value`)}[Ut](){return this[Ht]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,a([g({noAccessor:!0})],t.prototype,`name`,null),a([g({type:Boolean,noAccessor:!0})],t.prototype,`disabled`,null),t}function Gt(e){class t extends e{get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}constructor(...e){super(...e),this.type=`submit`,this.value=``,zt(this,`click`),this.addEventListener(`click`,async e=>{let t=this.type===`reset`,n=this.type===`submit`,r=this[M],{form:i}=r;i&&(n||t)&&Lt(e,()=>{e.defaultPrevented||(t?i.reset():(i.addEventListener(`submit`,e=>{Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this})},{capture:!0,once:!0}),r.setFormValue(this.value),i.requestSubmit()))})})}}return a([g()],t.prototype,`type`,void 0),a([g({reflect:!0})],t.prototype,`value`,void 0),t}var Kt=`light`,qt=[{value:`light`,label:`Light`,description:`Default light scheme.`},{value:`dark`,label:`Dark`,description:`Default dark scheme.`},{value:`high-contrast`,label:`High contrast`,description:`White surface, black text, 2px outlines.`},{value:`dark-high-contrast`,label:`Dark high contrast`,description:`Black surface, white text, 2px outlines.`}];function Jt(e){return qt.find(t=>t.value===e)?.value??null}var Yt=`sr-theme`,Xt=class{read(){try{return Jt(localStorage.getItem(Yt))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(Yt,e)}catch{}}},Zt={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Qt(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:Zt}function N(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function P(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??N(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??(e.reference,c.lang,void 0)??(l?(c.lang,void 0):null)??r.message??(c.lang,void 0);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function $t(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function en(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function F(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},Qt())},e}function tn(e){if(e.path){let t=``;for(let n of e.path)if(typeof n.key==`string`||typeof n.key==`number`)t+=t?`.${n.key}`:n.key;else return null;return t}return null}var nn=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function rn(e,t){return{kind:`validation`,type:`check`,reference:rn,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&P(this,`input`,e,t),e}}}function I(e){return{kind:`metadata`,type:`description`,reference:I,description:e}}function L(e){return{kind:`metadata`,type:`examples`,reference:L,examples:e}}function R(e){return{kind:`validation`,type:`integer`,reference:R,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&P(this,`integer`,e,t),e}}}function an(e){return{kind:`validation`,type:`iso_timestamp`,reference:an,async:!1,expects:null,requirement:nn,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&P(this,`timestamp`,e,t),e}}}function on(e,t){return{kind:`validation`,type:`max_value`,reference:on,async:!1,expects:`<=${e instanceof Date?e.toJSON():N(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&P(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():N(e.value)}),e}}}function z(e,t){return{kind:`validation`,type:`min_value`,reference:z,async:!1,expects:`>=${e instanceof Date?e.toJSON():N(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&P(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():N(e.value)}),e}}}function sn(e,t){return{kind:`validation`,type:`regex`,reference:sn,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&P(this,`format`,e,t),e}}}function cn(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function ln(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function B(e,t){return F({kind:`schema`,type:`array`,reference:B,expects:`Array`,async:!1,item:e,message:t,"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else P(this,`type`,e,t);return e}})}function V(e){return F({kind:`schema`,type:`boolean`,reference:V,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:P(this,`type`,e,t),e}})}function H(e,t){return F({kind:`schema`,type:`nullable`,reference:H,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=ln(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function U(e){return F({kind:`schema`,type:`number`,reference:U,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:P(this,`type`,e,t),e}})}function W(e,t){return F({kind:`schema`,type:`object`,reference:W,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ln(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=cn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(P(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else P(this,`type`,e,t);return e}})}function un(e,t){return F({kind:`schema`,type:`optional`,reference:un,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=ln(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function G(e,t){return F({kind:`schema`,type:`picklist`,reference:G,expects:en(e.map(N),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:P(this,`type`,e,t),e}})}function dn(e,t,n){return F({kind:`schema`,type:`record`,reference:dn,expects:`Object`,async:!1,key:e,value:t,message:n,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in n)if($t(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}a.typed&&o.typed||(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else P(this,`type`,e,t);return e}})}function fn(e,t){return F({kind:`schema`,type:`strict_object`,reference:fn,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ln(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=cn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(P(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let r in n)if(!Object.prototype.hasOwnProperty.call(this.entries,r)){P(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else P(this,`type`,e,t);return e}})}function K(e){return F({kind:`schema`,type:`string`,reference:K,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:P(this,`type`,e,t),e}})}function q(...e){return F({...e[0],pipe:e,"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}t.issues&&(n.abortEarly||n.abortPipeEarly)||(t=r[`~run`](t,n))}return t}})}function pn(e,t,n){let r=e[`~run`]({value:t},Qt(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var J={list:{default:1e3,max:1e4},wait:{timeoutMs:{default:5e3,max:3e5},seen:1e3,regexLength:500},markerLength:1e3,sessionLabelLength:1e3,input:{coordinate:1e5,delayMs:{default:50,max:1e4},maxKeys:100}},mn={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},hn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,gn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,_n=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t};function vn(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var yn=[`error`,`warn`,`info`,`debug`],bn=({min:e,max:t})=>q(U(),R(),z(e),on(t)),xn=bn(mn.port),Sn=bn({min:1,max:mn.port.max}),Cn=q(K(),sn(/\S/),I(`Not empty or blank.`)),wn=q(B(q(K(),sn(gn))),I('Host names the API answers to besides IP addresses, `localhost` and the machine\'s name. Without port or scheme. `["*"]` accepts any name. Added in API 1.5.')),Tn=W({enabled:V(),port:Sn,version:q(H(q(K(),sn(hn))),I("`null` = bundled version. Otherwise an exact version like `1.65.0`."))}),En=q(W({enabled:V(),port:Sn}),I("No `version`: the bridge runs its bundled `@playwright/mcp`.")),Y={tcp:{host:Cn,port:xn,encoding:q(K(),rn(vn),I("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:bn(mn.maxLineBytes)},http:{host:Cn,port:xn,allowedHosts:wn},buffer:{maxEntries:bn(mn.maxEntries)},log:{level:G(yn),file:q(H(Cn),I("Bridge log file, `null` = default path.")),consoleSpeech:q(V(),I(`Also write the speech text to the console.`))}},Dn=q(W({tcp:W(Y.tcp),http:W(Y.http),playwright:Tn,mcp:En,buffer:W(Y.buffer),log:W(Y.log)}),I(`The bridge configuration (docs/usage/configuration.md).`)),On=q(W({overrides:q(dn(K(),K()),I("Settings a flag or environment variable sets at startup, by their dotted path (`tcp.port`), with what sets each (`--tcp-port` or `SR_SPEECH_TCP_PORT`). They win over the config file on every start, so a saved value of them has no effect."))}),I("The settings the config file cannot change (`GET /config/overrides`).")),X=e=>fn(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,un(t)])));X(Tn.entries),X({enabled:V(),port:Sn}),X(Y.tcp),X(Y.http),X(Y.buffer),X(Y.log);var{coordinate:kn,delayMs:An,maxKeys:jn}=J.input;-kn,-kn,`${jn}`,An.max,`${An.default}`;var Z=e=>q(U(),R(),z(e)),Mn=q(K(),an()),Nn=e=>q(K(),rn(e=>_n(e,J.sessionLabelLength)),I(`${e} Trimmed, must not be empty, at most ${J.sessionLabelLength} characters.`)),Pn={id:q(Z(1),I(`Increasing, restarts at 1 with the bridge.`)),name:K(),run:q(H(K()),I(`Optional label that groups sessions.`)),client:q(H(K()),I("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Mn,endedAt:q(H(Mn),I("`null` while the session is current.")),startSeq:q(Z(0),I("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:q(H(Z(1)),I("First entry still in the buffer, `null` if none.")),lastSeq:q(H(Z(1)),I("Last entry still in the buffer, `null` if none.")),entries:q(Z(0),I(`Entries of this session still in the buffer.`))},Fn=q(W(Pn),I(`A session (docs/usage/speech-capture.md#sessions). Added in API 1.3.`),L([{id:7,name:`form › submit button is announced`,run:`nightly-42`,client:`ci-runner pid 4242`,startedAt:`2026-11-12T09:31:04.120Z`,endedAt:null,startSeq:339,firstSeq:340,lastSeq:342,entries:3}]));Nn(`For example the test title.`),Nn(`Optional label that groups sessions, for example one per test run.`);var In=q(W({...Pn,replaced:q(H(Fn),I("The session this start ended if another client had started it, `null` otherwise. Added in API 1.10."))}),I("`POST /sessions`: the new session, plus `replaced`.")),Ln=q(W({sessions:B(Fn),currentId:H(Z(1)),outsideEntries:q(Z(0),I("Entries in the buffer that were recorded outside any session (`session=none`). Added in API 1.15."))}),I("`GET /sessions`: the current session and the ended ones with entries in the buffer, newest first, and how many entries lie outside any session.")),Rn=e=>q(U(),R(),z(e)),zn=q(K(),an()),Bn=q(W({seq:q(Rn(1),I(`Increasing sequence number. Survives clear and keeps rising across restarts: the first entry of a bridge run gets the run's start time in milliseconds.`)),kind:G([`speech`,`marker`]),text:K(),receivedAt:q(zn,I(`When the bridge received the line (UTC).`)),source:q(G([`tcp`,`api`]),I("`tcp` for speech, `api` for markers.")),voice:q(H(K()),I("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:q(H(Rn(1)),I("TCP connection that delivered it, `null` for markers.")),sessionId:q(un(H(Rn(1))),I("The session that was current, `null` outside any session. Added in API 1.3."))}),I(`One recorded speech line or a marker.`),L([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}])),Vn=q(W({entries:B(Bn),truncated:q(V(),I("`true` when entries after `since` were dropped because the buffer was full.")),hasMore:q(V(),I("`true` when more entries follow: ask again with the last entry's `seq` as `since`."))}),I("`GET /speech`: a page of entries after `since`, oldest first."));J.wait.seen,`${J.wait.seen}`,`${J.markerLength}`;var Q=e=>q(U(),R(),z(e)),Hn=q(K(),an()),Un=[`starting`,`ready`,`stopping`],Wn=q(W({state:q(G([`stopped`,`starting`,`running`,`crashed`,`failed`]),I("`starting` includes the install. `crashed`: it exited and restarts after a delay. `failed`: 5 crashes in a row; restart the bridge (or change the service's settings).")),version:q(K(),I(`The version that runs (configured or bundled).`),L([`1.65.0`])),port:Q(0),restarts:q(Q(0),I(`Restarts after crashes since the service was last started (bridge start or config change).`)),exitCode:q(H(q(U(),R())),I("Exit code of the last unexpected exit. `null` if none, or killed by a signal."))}),I(`A child service (docs/usage/operations.md#child-service-crashes).`)),Gn=W({id:Q(1),voice:H(K()),connectedAt:Hn}),Kn=q(W({bridge:W({version:q(K(),I(`Package version of the bridge.`),L([`0.3.0`])),apiVersion:q(K(),I("`<major>.<minor>` of this API."),L([`1.13`])),state:G(Un),startedAt:q(Hn,I(`When this bridge run started. Added in API 1.4.`))}),tcp:W({listening:V(),host:K(),port:Q(0),encoding:q(K(),I(`Code page used to decode the socket voice.`)),connections:q(B(Gn),I(`Open connections, oldest first.`))}),buffer:W({size:Q(0),maxEntries:Q(1),firstSeq:H(Q(1)),lastSeq:H(Q(1))}),playwright:Wn,mcp:Wn,session:q(W({current:H(Fn),count:q(Q(0),I("Number of sessions `GET /sessions` lists."))}),I(`Added in API 1.3.`))}),I("`GET /status`. `playwright` since API 1.1, `mcp` since 1.2, `session` since 1.3."));function $(e,t){let n=pn(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:tn(r)??`(body)`,message:r.message}}var qn=class extends Error{field;constructor(e,t){super(e),this.field=t,this.name=`SettingRejected`}};function Jn(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e))for(let[r,i]of Object.entries(e))Jn(i,t===``?r:`${t}.${r}`,n);else n.set(t,JSON.stringify(e));return n}function Yn(e,t){let n=Jn(e,``,new Map);return[...Jn(t,``,new Map)].filter(([e,t])=>n.get(e)!==t).map(([e])=>e)}var Xn=`Enter a port from 1 to 65535.`;function Zn(e){let t=e.trim();if(!/^\d{1,5}$/.test(t))return{ok:!1,message:Xn};let n=Number(t);return n>=1&&n<=65535?{ok:!0,port:n}:{ok:!1,message:Xn}}var Qn=class{url;constructor(e){this.url=e}async fetch(){let e=await fetch(this.url,{headers:{accept:`application/json`}});if(!e.ok)throw await $n(e);let t=await e.json(),n=$(Dn,t.active),r=$(Dn,t.saved),i=$(On,{overrides:t.overrides});if(!n.ok||!r.ok||!i.ok)throw Error(`Unexpected configuration answer from the bridge`);return{active:n.value,saved:r.value,overrides:i.value.overrides}}async update(e){let t=await fetch(this.url,{method:`PUT`,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw await $n(t);let n=$(Dn,await t.json());if(!n.ok)throw Error(`Unexpected answer at ${n.field}: ${n.message}`);return n.value}};async function $n(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t,n=`field`in t&&typeof t.field==`string`?t.field:void 0;if(typeof e==`string`)return new qn(e,n)}return Error(`The request answered ${e.status}`)}var er=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){let t=await fetch(this.markersUrl,{method:`POST`,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify({label:e})});if(!t.ok)throw Error(await tr(t))}async clear(e){let t=await fetch(`${this.speechUrl}?session=${encodeURIComponent(String(e))}`,{method:`DELETE`,headers:{accept:`application/json`}});if(!t.ok)throw Error(await tr(t))}};async function tr(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t;if(typeof e==`string`)return e}return`The request answered ${e.status}`}var nr=class{url;constructor(e){this.url=e}list(){return this.send(`GET`,this.url,void 0,Ln)}start(e,t){return this.send(`POST`,this.url,{name:e,run:t},In)}async end(){await this.send(`POST`,`${this.url}/end`,void 0,void 0)}async delete(e){await this.send(`DELETE`,`${this.url}/${e}`,void 0,void 0)}async send(e,t,n,r){let i=await fetch(t,{method:e,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)});if(!i.ok)throw Error(await rr(i));if(r===void 0)return;let a=$(r,await i.json());if(!a.ok)throw Error(`Unexpected answer at ${a.field}: ${a.message}`);return a.value}};async function rr(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t;if(typeof e==`string`)return e}return`The request answered ${e.status}`}var ir=1e3,ar=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}follow(e,t){let n=new EventSource(`${this.streamUrl}?session=${encodeURIComponent(String(e))}&since=0`);return n.onopen=()=>t.onState(`live`),n.onerror=()=>t.onState(`reconnecting`),n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=$(Bn,n);r.ok&&t.onEntry(r.value)}),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(ir)}),a=await fetch(`${this.speechUrl}?${i}`,{headers:{accept:`application/json`},signal:n.signal});if(!a.ok)throw Error(`The request answered ${a.status}`);let o=$(Vn,await a.json());if(!o.ok)throw Error(`Unexpected answer at ${o.field}`);let{entries:s,hasMore:c}=o.value;t.onEntries(s);let l=s.at(-1);if(!c||l===void 0)return;r=l.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},or=class{url;constructor(e){this.url=e}async fetch(){let e=await fetch(this.url,{headers:{accept:`application/json`}});if(!e.ok)throw Error(`The status request answered ${e.status}`);let t=$(Kn,await e.json());if(!t.ok)throw Error(`Unexpected status at ${t.field}: ${t.message}`);return t.value}};function sr(e){return e===`1`||e!==`0`&&null}function cr(e){return e?`1`:`0`}var lr=`sr-sessions-collapsed`,ur=class{read(){try{return sr(localStorage.getItem(lr))}catch{return null}}write(e){try{localStorage.setItem(lr,cr(e))}catch{}}};function dr(e){let i=t(null),a=t(!0),o=null;function s(){return o||(o=e.fetch().then(e=>{r(i,e,!0),r(a,!0)}).catch(()=>{r(a,!1)}).finally(()=>{o=null}),o)}return{get loaded(){return n(i)!==null},get reachable(){return n(a)},get active(){return n(i)?.active??null},get saved(){return n(i)?.saved??null},get overrides(){return n(i)?.overrides??{}},get pending(){return n(i)===null?[]:Yn(n(i).active,n(i).saved)},refresh(){return s()},async save(t){await e.update(t),await o,await s()}}}function fr(e){let i=t(!0);return{get collapsed(){return n(i)},init(){r(i,e.read()??!1,!0)},toggle(){r(i,!n(i)),e.write(n(i))}}}var pr=3e3;function mr(i){let a=t(e([])),o=t(null),s=t(0),c=t(!0),l=t(!1),u=t(e(Date.now())),d=null;function ee(e){r(a,e.sessions,!0),r(o,e.currentId,!0),r(s,e.outsideEntries,!0),r(u,Date.now(),!0),r(l,!0)}function f(){return d||(d=i.list().then(e=>{ee(e),r(c,!0)}).catch(()=>{r(c,!1)}).finally(()=>{d=null}),d)}async function p(){await d,await f()}return{get sessions(){return n(a)},get currentId(){return n(o)},get outsideEntries(){return n(s)},get loaded(){return n(l)},get reachable(){return n(c)},get now(){return n(u)},init(e){e&&n(a).length===0&&ee(e),f();let t=setInterval(()=>{n(o)!==null&&r(u,Date.now(),!0)},1e3),i=setInterval(()=>void f(),pr);return()=>{clearInterval(t),clearInterval(i)}},refresh(){return p()},async start(e,t){let n=await i.start(e,t);return await p(),n},async end(){await i.end(),await p()},async delete(e){await i.delete(e),await p()}}}var hr=5e3;function gr(e,t){return t===null?e===`none`:e===t}function _r(e,t){return yr(e,t)}function vr(e,t){return e!==`none`&&e!==t}function yr(e,t){return e===`none`||e===t}function br(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`),r=String(t.getMilliseconds()).padStart(3,`0`);return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}.${r}`}function xr(e,t){if(e===`none`)return`Outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`#${n.id} ${n.name}`}function Sr(e,i){let a=t([]),o=t(`connecting`),s=null;function c(){s?.(),s=null}function l(e){let t=n(a).at(-1)?.seq??0,i=[];for(let n of e)n.seq<=t||(i.push(n),t=n.seq);if(i.length===0)return;let o=[...n(a),...i];r(a,o.length>5e3?o.slice(o.length-hr):o)}return{get entries(){return n(a)},get connection(){return n(o)},open(t,n){return c(),r(a,[]),r(o,`connecting`),s=e.open(t,n,{onEntry:e=>l([e]),onEntries:l,onClear(){r(a,[])},onState(e){r(o,e,!0)}}),c},clear(e){return i.clear(e)},addMarker(e){return i.addMarker(e)}}}function Cr(e){let i=t(null),a=t(!0),o=t(!1),s=null;function c(){return s||(r(o,!0),s=e.fetch().then(e=>{r(i,e,!0),r(a,!0)}).catch(()=>{r(a,!1)}).finally(()=>{r(o,!1),s=null}),s)}return{get status(){return n(i)},get reachable(){return n(a)},get loading(){return n(o)},init(e){e&&n(i)===null&&r(i,e,!0),c()},retry(){return c()}}}function wr(i){let a=t(e(Kt));return{get current(){return n(a)},init(){r(a,i.read()??`light`,!0)},set(e){r(a,e,!0),i.write(e)}}}var Tr=wr(new Xt),Er=Cr(new or(i(`/api/status`))),Dr=dr(new Qn(i(`/api/config`))),Or=mr(new nr(i(`/api/sessions`))),kr=Sr(new ar(i(`/api/speech/stream`),i(`/api/speech`)),new er(i(`/api/markers`),i(`/api/speech`))),Ar=fr(new ur);export{it as A,g as B,Mt as C,st as D,ct as E,Fe as F,o as H,Ge as I,ye as L,w as M,qe as N,at as O,C as P,ve as R,zt as S,Et as T,a as U,f as V,Ht as _,Er as a,Vt as b,_r as c,yr as d,xr as f,Gt as g,qt as h,kr as i,k as j,ot as k,vr as l,J as m,Ar as n,Tr as o,Zn as p,Or as r,gr as s,Dr as t,br as u,Wt as v,wt as w,Lt as x,M as y,_e as z};
|
|
Binary file
|
|
Binary file
|