altcha 2.3.0 → 3.0.0-beta.2
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/LICENSE.txt +1 -1
- package/README.md +201 -204
- package/dist/external/altcha.css +1 -0
- package/dist/external/altcha.js +6825 -0
- package/dist/external/altcha.min.js +1 -0
- package/dist/external/altcha.umd.cjs +6831 -0
- package/dist/external/altcha.umd.min.cjs +1 -0
- package/dist/external/index.d.ts +1 -0
- package/dist/i18n/419.d.ts +1 -0
- package/dist/i18n/af.d.ts +1 -0
- package/dist/i18n/af.js +22 -0
- package/dist/i18n/af.umd.cjs +27 -0
- package/dist/i18n/africa.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/africa.js +52 -97
- package/dist/i18n/africa.umd.cjs +159 -0
- package/dist/i18n/all.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/all.js +487 -299
- package/dist/i18n/all.umd.cjs +1347 -0
- package/dist/i18n/am.d.ts +1 -0
- package/dist/i18n/am.js +22 -0
- package/dist/i18n/am.umd.cjs +27 -0
- package/dist/i18n/americas.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/americas.js +24 -85
- package/dist/i18n/americas.umd.cjs +71 -0
- package/dist/i18n/ar.d.ts +1 -0
- package/dist/i18n/ar.js +22 -0
- package/dist/i18n/ar.umd.cjs +27 -0
- package/dist/i18n/asia.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/asia.js +199 -158
- package/dist/i18n/asia.umd.cjs +533 -0
- package/dist/i18n/az.d.ts +1 -0
- package/dist/i18n/az.js +22 -0
- package/dist/i18n/az.umd.cjs +27 -0
- package/dist/i18n/be.d.ts +1 -0
- package/dist/i18n/be.js +22 -0
- package/dist/i18n/be.umd.cjs +27 -0
- package/dist/i18n/bg.d.ts +1 -0
- package/dist/i18n/bg.js +22 -0
- package/dist/i18n/bg.umd.cjs +27 -0
- package/dist/i18n/bn.d.ts +1 -0
- package/dist/i18n/bn.js +22 -0
- package/dist/i18n/bn.umd.cjs +27 -0
- package/dist/i18n/br.d.ts +1 -0
- package/dist/i18n/bs.d.ts +1 -0
- package/dist/i18n/bs.js +22 -0
- package/dist/i18n/bs.umd.cjs +27 -0
- package/dist/i18n/ca.d.ts +1 -0
- package/dist/i18n/ca.js +22 -0
- package/dist/i18n/ca.umd.cjs +27 -0
- package/dist/i18n/cn.d.ts +1 -0
- package/dist/i18n/cs.d.ts +1 -0
- package/dist/i18n/cs.js +22 -0
- package/dist/i18n/cs.umd.cjs +27 -0
- package/dist/i18n/da.d.ts +1 -0
- package/dist/i18n/da.js +22 -0
- package/dist/i18n/da.umd.cjs +27 -0
- package/dist/i18n/de.d.ts +1 -0
- package/dist/i18n/de.js +22 -0
- package/dist/i18n/de.umd.cjs +27 -0
- package/dist/i18n/el.d.ts +1 -0
- package/dist/i18n/el.js +22 -0
- package/dist/i18n/el.umd.cjs +27 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/en.js +22 -0
- package/dist/i18n/en.umd.cjs +27 -0
- package/dist/i18n/es-419.js +22 -0
- package/dist/i18n/es-419.umd.cjs +27 -0
- package/dist/i18n/es-es.js +22 -0
- package/dist/i18n/es-es.umd.cjs +27 -0
- package/dist/i18n/es.d.ts +1 -0
- package/dist/i18n/et.d.ts +1 -0
- package/dist/i18n/et.js +22 -0
- package/dist/i18n/et.umd.cjs +27 -0
- package/dist/i18n/eu.d.ts +1 -0
- package/dist/i18n/eu.js +22 -0
- package/dist/i18n/eu.umd.cjs +27 -0
- package/dist/i18n/europe.d.ts +1 -0
- package/{dist_i18n → dist/i18n}/europe.js +283 -209
- package/dist/i18n/europe.umd.cjs +819 -0
- package/dist/i18n/fa.d.ts +1 -0
- package/dist/i18n/fa.js +22 -0
- package/dist/i18n/fa.umd.cjs +27 -0
- package/dist/i18n/fi.d.ts +1 -0
- package/dist/i18n/fi.js +22 -0
- package/dist/i18n/fi.umd.cjs +27 -0
- package/dist/i18n/fr-ca.js +22 -0
- package/dist/i18n/fr-ca.umd.cjs +27 -0
- package/dist/i18n/fr-fr.js +22 -0
- package/dist/i18n/fr-fr.umd.cjs +27 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/ga.d.ts +1 -0
- package/dist/i18n/ga.js +22 -0
- package/dist/i18n/ga.umd.cjs +27 -0
- package/dist/i18n/he.d.ts +1 -0
- package/dist/i18n/he.js +22 -0
- package/dist/i18n/he.umd.cjs +27 -0
- package/dist/i18n/hi.d.ts +1 -0
- package/dist/i18n/hi.js +22 -0
- package/dist/i18n/hi.umd.cjs +27 -0
- package/dist/i18n/hk.d.ts +1 -0
- package/dist/i18n/hr.d.ts +1 -0
- package/dist/i18n/hr.js +22 -0
- package/dist/i18n/hr.umd.cjs +27 -0
- package/dist/i18n/hu.d.ts +1 -0
- package/dist/i18n/hu.js +22 -0
- package/dist/i18n/hu.umd.cjs +27 -0
- package/dist/i18n/hy.d.ts +1 -0
- package/dist/i18n/hy.js +22 -0
- package/dist/i18n/hy.umd.cjs +27 -0
- package/dist/i18n/id.d.ts +1 -0
- package/dist/i18n/id.js +22 -0
- package/dist/i18n/id.umd.cjs +27 -0
- package/dist/i18n/is.d.ts +1 -0
- package/dist/i18n/is.js +22 -0
- package/dist/i18n/is.umd.cjs +27 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/it.js +22 -0
- package/dist/i18n/it.umd.cjs +27 -0
- package/dist/i18n/ja.d.ts +1 -0
- package/dist/i18n/ja.js +22 -0
- package/dist/i18n/ja.umd.cjs +27 -0
- package/dist/i18n/ka.d.ts +1 -0
- package/dist/i18n/ka.js +22 -0
- package/dist/i18n/ka.umd.cjs +27 -0
- package/dist/i18n/kk.d.ts +1 -0
- package/dist/i18n/kk.js +22 -0
- package/dist/i18n/kk.umd.cjs +27 -0
- package/dist/i18n/ko.d.ts +1 -0
- package/dist/i18n/ko.js +22 -0
- package/dist/i18n/ko.umd.cjs +27 -0
- package/dist/i18n/lb.d.ts +1 -0
- package/dist/i18n/lb.js +22 -0
- package/dist/i18n/lb.umd.cjs +27 -0
- package/dist/i18n/lt.d.ts +1 -0
- package/dist/i18n/lt.js +22 -0
- package/dist/i18n/lt.umd.cjs +27 -0
- package/dist/i18n/lv.d.ts +1 -0
- package/dist/i18n/lv.js +22 -0
- package/dist/i18n/lv.umd.cjs +27 -0
- package/dist/i18n/me.d.ts +1 -0
- package/dist/i18n/me.js +22 -0
- package/dist/i18n/me.umd.cjs +27 -0
- package/dist/i18n/mk.d.ts +1 -0
- package/dist/i18n/mk.js +22 -0
- package/dist/i18n/mk.umd.cjs +27 -0
- package/dist/i18n/mr.d.ts +1 -0
- package/dist/i18n/mr.js +22 -0
- package/dist/i18n/mr.umd.cjs +27 -0
- package/dist/i18n/mt.d.ts +1 -0
- package/dist/i18n/mt.js +22 -0
- package/dist/i18n/mt.umd.cjs +27 -0
- package/dist/i18n/nb.d.ts +1 -0
- package/dist/i18n/nb.js +22 -0
- package/dist/i18n/nb.umd.cjs +27 -0
- package/dist/i18n/nl.d.ts +1 -0
- package/dist/i18n/nl.js +22 -0
- package/dist/i18n/nl.umd.cjs +27 -0
- package/dist/i18n/pl.d.ts +1 -0
- package/dist/i18n/pl.js +22 -0
- package/dist/i18n/pl.umd.cjs +27 -0
- package/dist/i18n/pt-br.js +22 -0
- package/dist/i18n/pt-br.umd.cjs +27 -0
- package/dist/i18n/pt-pt.js +22 -0
- package/dist/i18n/pt-pt.umd.cjs +27 -0
- package/dist/i18n/pt.d.ts +1 -0
- package/dist/i18n/ro.d.ts +1 -0
- package/dist/i18n/ro.js +22 -0
- package/dist/i18n/ro.umd.cjs +27 -0
- package/dist/i18n/ru.d.ts +1 -0
- package/dist/i18n/ru.js +22 -0
- package/dist/i18n/ru.umd.cjs +27 -0
- package/dist/i18n/sk.d.ts +1 -0
- package/dist/i18n/sk.js +22 -0
- package/dist/i18n/sk.umd.cjs +27 -0
- package/dist/i18n/sl.d.ts +1 -0
- package/dist/i18n/sl.js +22 -0
- package/dist/i18n/sl.umd.cjs +27 -0
- package/dist/i18n/sq.d.ts +1 -0
- package/dist/i18n/sq.js +22 -0
- package/dist/i18n/sq.umd.cjs +27 -0
- package/dist/i18n/sr.d.ts +1 -0
- package/dist/i18n/sr.js +22 -0
- package/dist/i18n/sr.umd.cjs +27 -0
- package/dist/i18n/sv.d.ts +1 -0
- package/dist/i18n/sv.js +22 -0
- package/dist/i18n/sv.umd.cjs +27 -0
- package/dist/i18n/sw.d.ts +1 -0
- package/dist/i18n/sw.js +22 -0
- package/dist/i18n/sw.umd.cjs +27 -0
- package/dist/i18n/ta.d.ts +1 -0
- package/dist/i18n/ta.js +22 -0
- package/dist/i18n/ta.umd.cjs +27 -0
- package/dist/i18n/te.d.ts +1 -0
- package/dist/i18n/te.js +22 -0
- package/dist/i18n/te.umd.cjs +27 -0
- package/dist/i18n/th.d.ts +1 -0
- package/dist/i18n/th.js +22 -0
- package/dist/i18n/th.umd.cjs +27 -0
- package/dist/i18n/tk.d.ts +1 -0
- package/dist/i18n/tk.js +22 -0
- package/dist/i18n/tk.umd.cjs +27 -0
- package/dist/i18n/tr.d.ts +1 -0
- package/dist/i18n/tr.js +22 -0
- package/dist/i18n/tr.umd.cjs +27 -0
- package/dist/i18n/tw.d.ts +1 -0
- package/dist/i18n/uk.d.ts +1 -0
- package/dist/i18n/uk.js +22 -0
- package/dist/i18n/uk.umd.cjs +27 -0
- package/dist/i18n/ur.d.ts +1 -0
- package/dist/i18n/ur.js +22 -0
- package/dist/i18n/ur.umd.cjs +27 -0
- package/dist/i18n/uz.d.ts +1 -0
- package/dist/i18n/uz.js +22 -0
- package/dist/i18n/uz.umd.cjs +27 -0
- package/dist/i18n/vi.d.ts +1 -0
- package/dist/i18n/vi.js +22 -0
- package/dist/i18n/vi.umd.cjs +27 -0
- package/dist/i18n/yo.d.ts +1 -0
- package/dist/i18n/yo.js +22 -0
- package/dist/i18n/yo.umd.cjs +27 -0
- package/dist/i18n/zh-cn.js +22 -0
- package/dist/i18n/zh-cn.umd.cjs +27 -0
- package/dist/i18n/zh-hk.js +22 -0
- package/dist/i18n/zh-hk.umd.cjs +27 -0
- package/dist/i18n/zh-tw.js +22 -0
- package/dist/i18n/zh-tw.umd.cjs +27 -0
- package/dist/lib/index.d.ts +468 -0
- package/dist/lib/index.js +1416 -0
- package/dist/lib/index.min.js +1 -0
- package/dist/lib/index.umd.cjs +1420 -0
- package/dist/lib/index.umd.min.cjs +1 -0
- package/dist/main/altcha.i18n.js +8565 -0
- package/dist/main/altcha.i18n.min.js +1 -0
- package/dist/main/altcha.i18n.umd.cjs +8568 -0
- package/dist/main/altcha.i18n.umd.min.cjs +1 -0
- package/dist/main/altcha.js +7223 -0
- package/dist/main/altcha.min.js +1 -0
- package/dist/main/altcha.umd.cjs +7226 -0
- package/dist/main/altcha.umd.min.cjs +1 -0
- package/dist/plugins/obfuscation.plugin.d.ts +1 -0
- package/dist/plugins/obfuscation.plugin.js +320 -0
- package/dist/plugins/obfuscation.plugin.min.js +1 -0
- package/dist/plugins/obfuscation.plugin.umd.cjs +325 -0
- package/dist/plugins/obfuscation.plugin.umd.min.cjs +1 -0
- package/dist/themes/aqua.css +19 -0
- package/dist/themes/aqua.min.css +1 -0
- package/dist/themes/business.css +15 -0
- package/dist/themes/business.min.css +1 -0
- package/dist/themes/caramel.css +19 -0
- package/dist/themes/caramel.min.css +1 -0
- package/dist/themes/cupcake.css +16 -0
- package/dist/themes/cupcake.min.css +1 -0
- package/dist/themes/cyberpunk.css +24 -0
- package/dist/themes/cyberpunk.min.css +1 -0
- package/dist/themes/lime.css +14 -0
- package/dist/themes/lime.min.css +1 -0
- package/dist/themes/wireframe.css +17 -0
- package/dist/themes/wireframe.min.css +1 -0
- package/dist/types/generic.d.ts +25 -0
- package/dist/types/generic.js +1 -0
- package/dist/types/global.d.ts +5 -0
- package/dist/types/global.js +1 -0
- package/dist/types/index.d.ts +397 -0
- package/dist/types/index.js +23 -0
- package/dist/types/jsx.d.ts +13 -0
- package/dist/types/jsx.js +1 -0
- package/dist/types/react.d.ts +35 -0
- package/dist/types/react.js +1 -0
- package/dist/types/svelte.d.ts +26 -0
- package/dist/types/svelte.js +1 -0
- package/dist/workers/argon2id.js +786 -0
- package/dist/workers/pbkdf2.js +176 -0
- package/dist/workers/scrypt.js +739 -0
- package/dist/workers/sha.js +160 -0
- package/package.json +146 -112
- package/dist/altcha.d.ts +0 -183
- package/dist/altcha.i18n.d.ts +0 -183
- package/dist/altcha.i18n.js +0 -4182
- package/dist/altcha.i18n.umd.js +0 -4
- package/dist/altcha.js +0 -3105
- package/dist/altcha.umd.cjs +0 -4
- package/dist_external/altcha.css +0 -1
- package/dist_external/altcha.d.ts +0 -183
- package/dist_external/altcha.js +0 -3075
- package/dist_external/altcha.umd.cjs +0 -3
- package/dist_external/worker.js +0 -1
- package/dist_i18n/af.d.ts +0 -1
- package/dist_i18n/af.js +0 -94
- package/dist_i18n/af.umd.cjs +0 -1
- package/dist_i18n/africa.d.ts +0 -1
- package/dist_i18n/africa.umd.cjs +0 -1
- package/dist_i18n/all.d.ts +0 -1
- package/dist_i18n/all.umd.cjs +0 -1
- package/dist_i18n/am.d.ts +0 -1
- package/dist_i18n/am.js +0 -94
- package/dist_i18n/am.umd.cjs +0 -1
- package/dist_i18n/americas.d.ts +0 -1
- package/dist_i18n/americas.umd.cjs +0 -1
- package/dist_i18n/ar.d.ts +0 -1
- package/dist_i18n/ar.js +0 -94
- package/dist_i18n/ar.umd.cjs +0 -1
- package/dist_i18n/asia.d.ts +0 -1
- package/dist_i18n/asia.umd.cjs +0 -1
- package/dist_i18n/az.d.ts +0 -1
- package/dist_i18n/az.js +0 -94
- package/dist_i18n/az.umd.cjs +0 -1
- package/dist_i18n/be.d.ts +0 -1
- package/dist_i18n/be.js +0 -94
- package/dist_i18n/be.umd.cjs +0 -1
- package/dist_i18n/bg.d.ts +0 -1
- package/dist_i18n/bg.js +0 -94
- package/dist_i18n/bg.umd.cjs +0 -1
- package/dist_i18n/bn.d.ts +0 -1
- package/dist_i18n/bn.js +0 -94
- package/dist_i18n/bn.umd.cjs +0 -1
- package/dist_i18n/bs.d.ts +0 -1
- package/dist_i18n/bs.js +0 -94
- package/dist_i18n/bs.umd.cjs +0 -1
- package/dist_i18n/ca.d.ts +0 -1
- package/dist_i18n/ca.js +0 -94
- package/dist_i18n/ca.umd.cjs +0 -1
- package/dist_i18n/cs.d.ts +0 -1
- package/dist_i18n/cs.js +0 -94
- package/dist_i18n/cs.umd.cjs +0 -1
- package/dist_i18n/da.d.ts +0 -1
- package/dist_i18n/da.js +0 -94
- package/dist_i18n/da.umd.cjs +0 -1
- package/dist_i18n/de.d.ts +0 -1
- package/dist_i18n/de.js +0 -94
- package/dist_i18n/de.umd.cjs +0 -1
- package/dist_i18n/el.d.ts +0 -1
- package/dist_i18n/el.js +0 -94
- package/dist_i18n/el.umd.cjs +0 -1
- package/dist_i18n/en.d.ts +0 -1
- package/dist_i18n/en.js +0 -94
- package/dist_i18n/en.umd.cjs +0 -1
- package/dist_i18n/es-419.d.ts +0 -1
- package/dist_i18n/es-419.js +0 -94
- package/dist_i18n/es-419.umd.cjs +0 -1
- package/dist_i18n/es-es.d.ts +0 -1
- package/dist_i18n/es-es.js +0 -94
- package/dist_i18n/es-es.umd.cjs +0 -1
- package/dist_i18n/et.d.ts +0 -1
- package/dist_i18n/et.js +0 -94
- package/dist_i18n/et.umd.cjs +0 -1
- package/dist_i18n/eu.d.ts +0 -1
- package/dist_i18n/eu.js +0 -94
- package/dist_i18n/eu.umd.cjs +0 -1
- package/dist_i18n/europe.d.ts +0 -1
- package/dist_i18n/europe.umd.cjs +0 -1
- package/dist_i18n/fa.d.ts +0 -1
- package/dist_i18n/fa.js +0 -94
- package/dist_i18n/fa.umd.cjs +0 -1
- package/dist_i18n/fi.d.ts +0 -1
- package/dist_i18n/fi.js +0 -94
- package/dist_i18n/fi.umd.cjs +0 -1
- package/dist_i18n/fr-ca.d.ts +0 -1
- package/dist_i18n/fr-ca.js +0 -94
- package/dist_i18n/fr-ca.umd.cjs +0 -1
- package/dist_i18n/fr-fr.d.ts +0 -1
- package/dist_i18n/fr-fr.js +0 -94
- package/dist_i18n/fr-fr.umd.cjs +0 -1
- package/dist_i18n/ga.d.ts +0 -1
- package/dist_i18n/ga.js +0 -94
- package/dist_i18n/ga.umd.cjs +0 -1
- package/dist_i18n/he.d.ts +0 -1
- package/dist_i18n/he.js +0 -94
- package/dist_i18n/he.umd.cjs +0 -1
- package/dist_i18n/hi.d.ts +0 -1
- package/dist_i18n/hi.js +0 -94
- package/dist_i18n/hi.umd.cjs +0 -1
- package/dist_i18n/hr.d.ts +0 -1
- package/dist_i18n/hr.js +0 -94
- package/dist_i18n/hr.umd.cjs +0 -1
- package/dist_i18n/hu.d.ts +0 -1
- package/dist_i18n/hu.js +0 -94
- package/dist_i18n/hu.umd.cjs +0 -1
- package/dist_i18n/hy.d.ts +0 -1
- package/dist_i18n/hy.js +0 -94
- package/dist_i18n/hy.umd.cjs +0 -1
- package/dist_i18n/id.d.ts +0 -1
- package/dist_i18n/id.js +0 -94
- package/dist_i18n/id.umd.cjs +0 -1
- package/dist_i18n/is.d.ts +0 -1
- package/dist_i18n/is.js +0 -94
- package/dist_i18n/is.umd.cjs +0 -1
- package/dist_i18n/it.d.ts +0 -1
- package/dist_i18n/it.js +0 -94
- package/dist_i18n/it.umd.cjs +0 -1
- package/dist_i18n/ja.d.ts +0 -1
- package/dist_i18n/ja.js +0 -94
- package/dist_i18n/ja.umd.cjs +0 -1
- package/dist_i18n/ka.d.ts +0 -1
- package/dist_i18n/ka.js +0 -94
- package/dist_i18n/ka.umd.cjs +0 -1
- package/dist_i18n/kk.d.ts +0 -1
- package/dist_i18n/kk.js +0 -94
- package/dist_i18n/kk.umd.cjs +0 -1
- package/dist_i18n/ko.d.ts +0 -1
- package/dist_i18n/ko.js +0 -94
- package/dist_i18n/ko.umd.cjs +0 -1
- package/dist_i18n/lb.d.ts +0 -1
- package/dist_i18n/lb.js +0 -94
- package/dist_i18n/lb.umd.cjs +0 -1
- package/dist_i18n/lt.d.ts +0 -1
- package/dist_i18n/lt.js +0 -94
- package/dist_i18n/lt.umd.cjs +0 -1
- package/dist_i18n/lv.d.ts +0 -1
- package/dist_i18n/lv.js +0 -94
- package/dist_i18n/lv.umd.cjs +0 -1
- package/dist_i18n/me.d.ts +0 -1
- package/dist_i18n/me.js +0 -94
- package/dist_i18n/me.umd.cjs +0 -1
- package/dist_i18n/mk.d.ts +0 -1
- package/dist_i18n/mk.js +0 -94
- package/dist_i18n/mk.umd.cjs +0 -1
- package/dist_i18n/mr.d.ts +0 -1
- package/dist_i18n/mr.js +0 -94
- package/dist_i18n/mr.umd.cjs +0 -1
- package/dist_i18n/mt.d.ts +0 -1
- package/dist_i18n/mt.js +0 -94
- package/dist_i18n/mt.umd.cjs +0 -1
- package/dist_i18n/nb.d.ts +0 -1
- package/dist_i18n/nb.js +0 -95
- package/dist_i18n/nb.umd.cjs +0 -1
- package/dist_i18n/nl.d.ts +0 -1
- package/dist_i18n/nl.js +0 -94
- package/dist_i18n/nl.umd.cjs +0 -1
- package/dist_i18n/pl.d.ts +0 -1
- package/dist_i18n/pl.js +0 -94
- package/dist_i18n/pl.umd.cjs +0 -1
- package/dist_i18n/pt-br.d.ts +0 -1
- package/dist_i18n/pt-br.js +0 -94
- package/dist_i18n/pt-br.umd.cjs +0 -1
- package/dist_i18n/pt-pt.d.ts +0 -1
- package/dist_i18n/pt-pt.js +0 -94
- package/dist_i18n/pt-pt.umd.cjs +0 -1
- package/dist_i18n/ro.d.ts +0 -1
- package/dist_i18n/ro.js +0 -94
- package/dist_i18n/ro.umd.cjs +0 -1
- package/dist_i18n/ru.d.ts +0 -1
- package/dist_i18n/ru.js +0 -94
- package/dist_i18n/ru.umd.cjs +0 -1
- package/dist_i18n/sk.d.ts +0 -1
- package/dist_i18n/sk.js +0 -94
- package/dist_i18n/sk.umd.cjs +0 -1
- package/dist_i18n/sl.d.ts +0 -1
- package/dist_i18n/sl.js +0 -94
- package/dist_i18n/sl.umd.cjs +0 -1
- package/dist_i18n/sq.d.ts +0 -1
- package/dist_i18n/sq.js +0 -94
- package/dist_i18n/sq.umd.cjs +0 -1
- package/dist_i18n/sr.d.ts +0 -1
- package/dist_i18n/sr.js +0 -94
- package/dist_i18n/sr.umd.cjs +0 -1
- package/dist_i18n/sv.d.ts +0 -1
- package/dist_i18n/sv.js +0 -94
- package/dist_i18n/sv.umd.cjs +0 -1
- package/dist_i18n/sw.d.ts +0 -1
- package/dist_i18n/sw.js +0 -94
- package/dist_i18n/sw.umd.cjs +0 -1
- package/dist_i18n/ta.d.ts +0 -1
- package/dist_i18n/ta.js +0 -94
- package/dist_i18n/ta.umd.cjs +0 -1
- package/dist_i18n/te.d.ts +0 -1
- package/dist_i18n/te.js +0 -94
- package/dist_i18n/te.umd.cjs +0 -1
- package/dist_i18n/th.d.ts +0 -1
- package/dist_i18n/th.js +0 -94
- package/dist_i18n/th.umd.cjs +0 -1
- package/dist_i18n/tk.d.ts +0 -1
- package/dist_i18n/tk.js +0 -94
- package/dist_i18n/tk.umd.cjs +0 -1
- package/dist_i18n/tr.d.ts +0 -1
- package/dist_i18n/tr.js +0 -94
- package/dist_i18n/tr.umd.cjs +0 -1
- package/dist_i18n/uk.d.ts +0 -1
- package/dist_i18n/uk.js +0 -94
- package/dist_i18n/uk.umd.cjs +0 -1
- package/dist_i18n/ur.d.ts +0 -1
- package/dist_i18n/ur.js +0 -94
- package/dist_i18n/ur.umd.cjs +0 -1
- package/dist_i18n/uz.d.ts +0 -1
- package/dist_i18n/uz.js +0 -94
- package/dist_i18n/uz.umd.cjs +0 -1
- package/dist_i18n/vi.d.ts +0 -1
- package/dist_i18n/vi.js +0 -94
- package/dist_i18n/vi.umd.cjs +0 -1
- package/dist_i18n/yo.d.ts +0 -1
- package/dist_i18n/yo.js +0 -94
- package/dist_i18n/yo.umd.cjs +0 -1
- package/dist_i18n/zh-cn.d.ts +0 -1
- package/dist_i18n/zh-cn.js +0 -94
- package/dist_i18n/zh-cn.umd.cjs +0 -1
- package/dist_i18n/zh-tw.d.ts +0 -1
- package/dist_i18n/zh-tw.js +0 -94
- package/dist_i18n/zh-tw.umd.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.keys,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,u=Object.getPrototypeOf,f=Object.isExtensible;const d=()=>{};function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const v=1<<24,p=16,g=32,m=64,y=512,b=1024,w=2048,_=4096,$=8192,C=16384,E=32768,k=1<<25,S=65536,x=1<<17,O=1<<19,R=65536,A=1<<21,I=1<<23,P=Symbol("$state"),L=Symbol("legacy props"),T=Symbol(""),N=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},M=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function V(e){return e===this.v}function D(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function j(e){return!D(e,this.v)}const F={},U=Symbol(),q="http://www.w3.org/1999/xhtml";let H=null;function G(e){H=e}function B(e,t=!1,n){H={p:H,i:!1,c:null,e:null,s:e,x:null,r:Qn,l:null}}function Z(e){var t=H,n=t.e;if(null!==n)for(var r of(t.e=null,n))xr(r);return void 0!==e&&(t.x=e),t.i=!0,H=t.p,e??{}}let J=[];function Y(){var e=J;J=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function W(e){if(0===J.length&&!Cn){var t=J;queueMicrotask(()=>{t===J&&Y()})}J.push(e)}function z(){for(;J.length>0;)Y()}function K(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let X,Q=!1;function ee(e){Q=e}function te(e){if(null===e)throw K(),F;return X=e}function ne(){return te(ye(X))}function re(e){if(Q){if(null!==ye(X))throw K(),F;X=e}}function ie(e=1){if(Q){for(var t=e,n=X;t--;)n=ye(n);X=n}}function oe(e=!0){for(var t=0,n=X;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ye(n);e&&n.remove(),n=i}}function ae(e){if(!e||8!==e.nodeType)throw K(),F;return e.data}function le(t){if("object"!=typeof t||null===t||P in t)return t;const n=u(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=Un(0),l=sr,f=e=>{if(sr===l)return e();var t=zn,n=sr;Xn(null),cr(l);var r=e();return Xn(t),cr(n),r};return i&&r.set("length",Un(t.length)),new Proxy(t,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=r.get(t);return void 0===i?f(()=>{var e=Un(n.value);return r.set(t,e),e}):Hn(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=f(()=>Un(U));r.set(t,e),Bn(o)}}else Hn(n,U),Bn(o);return!0},get(e,n,i){if(n===P)return t;var o=r.get(n),l=n in e;if(void 0!==o||l&&!a(e,n)?.writable||(o=f(()=>Un(le(l?e[n]:U))),r.set(n,o)),void 0!==o){var s=yr(o);return s===U?void 0:s}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var i=r.get(t);i&&(n.value=yr(i))}else if(void 0===n){var o=r.get(t),a=o?.v;if(void 0!==o&&a!==U)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return n},has(e,t){if(t===P)return!0;var n=r.get(t),i=void 0!==n&&n.v!==U||Reflect.has(e,t);if((void 0!==n||null!==Qn&&(!i||a(e,t)?.writable))&&(void 0===n&&(n=f(()=>Un(i?le(e[t]):U)),r.set(t,n)),yr(n)===U))return!1;return i},set(e,t,n,l){var s=r.get(t),c=t in e;if(i&&"length"===t)for(var u=n;u<s.v;u+=1){var d=r.get(u+"");void 0!==d?Hn(d,U):u in e&&(d=f(()=>Un(U)),r.set(u+"",d))}void 0===s?c&&!a(e,t)?.writable||(Hn(s=f(()=>Un(void 0)),le(n)),r.set(t,s)):(c=s.v!==U,Hn(s,f(()=>le(n))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(l,n),!c){if(i&&"string"==typeof t){var v=r.get("length"),p=Number(t);Number.isInteger(p)&&p>=v.v&&Hn(v,p+1)}Bn(o)}return!0},ownKeys(e){yr(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==U});for(var[n,i]of r)i.v===U||n in e||t.push(n);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function se(e){try{if(null!==e&&"object"==typeof e&&P in e)return e[P]}catch{}return e}function ce(e,t){return Object.is(se(e),se(t))}var ue,fe,de,he,ve;function pe(){if(void 0===ue){ue=window,fe=document,de=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;he=a(t,"firstChild").get,ve=a(t,"nextSibling").get,f(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),f(n)&&(n.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function me(e){return he.call(e)}function ye(e){return ve.call(e)}function be(e,t){if(!Q)return me(e);var n=me(X);if(null===n)n=X.appendChild(ge());else if(t&&3!==n.nodeType){var r=ge();return n?.before(r),te(r),r}return t&&Ce(n),te(n),n}function we(e,t=!1){if(!Q){var n=me(e);return n instanceof Comment&&""===n.data?ye(n):n}if(t){if(3!==X?.nodeType){var r=ge();return X?.before(r),te(r),r}Ce(X)}return X}function _e(e,t=1,n=!1){let r=Q?X:e;for(var i;t--;)i=r,r=ye(r);if(!Q)return r;if(n){if(3!==r?.nodeType){var o=ge();return null===r?i?.after(o):r.before(o),te(o),o}Ce(r)}return te(r),r}function $e(e,t,n){let r;return document.createElementNS(t??q,e,r)}function Ce(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Ee(e){var t=Qn;if(null===t)return zn.f|=I,e;if(0===(t.f&E)&&!(4&t.f))throw e;ke(e,t)}function ke(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&E))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}const Se=-7169;function xe(e,t){e.f=e.f&Se|t}function Oe(e){0!==(e.f&y)||null===e.deps?xe(e,b):xe(e,_)}function Re(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&R)&&(t.f^=R,Re(t.deps))}function Ae(e,t,n){0!==(e.f&w)?t.add(e):0!==(e.f&_)&&n.add(e),Re(e.deps),xe(e,b)}function Ie(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Pe=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Le(e){return Pe.includes(e)}const Te={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ne(e){return e=e.toLowerCase(),Te[e]??e}const Me=["touchstart","touchmove"];function Ve(e){return Me.includes(e)}function De(e,t){if(t){const t=document.body;e.autofocus=!0,W(()=>{document.activeElement===t&&e.focus()})}}let je=!1;function Fe(){je||(je=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ue(e){var t=zn,n=Qn;Xn(null),er(null);try{return e()}finally{Xn(t),er(n)}}const qe=Symbol("events"),He=new Set,Ge=new Set;function Be(e,t,n,r={}){function i(e){if(r.capture||ze.call(t,e),!e.cancelBubble)return Ue(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?W(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ze(e,t,n,r,i){var o={capture:r,passive:i},a=Be(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&kr(()=>{t.removeEventListener(e,a,o)})}function Je(e,t,n){(t[qe]??={})[e]=n}function Ye(e){for(var t=0;t<e.length;t++)He.add(e[t]);for(var n of Ge)n(e)}let We=null;function ze(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;We=e;var l=0,s=We===e&&e[qe];if(s){var c=i.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[qe]=t);var u=i.indexOf(t);if(-1===u)return;c<=u&&(l=c)}if((a=i[l]||e.target)!==t){o(e,"currentTarget",{configurable:!0,get:()=>a||n});var f=zn,d=Qn;Xn(null),er(null);try{for(var h,v=[];null!==a;){var p=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[qe]?.[r];null==g||a.disabled&&e.target!==a||g.call(a,e)}catch(e){h?v.push(e):h=e}if(e.cancelBubble||p===t||null===p)break;a=p}if(h){for(let e of v)queueMicrotask(()=>{throw e});throw h}}finally{e[qe]=t,delete e.currentTarget,Xn(f),er(d)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Xe(e){var t=$e("template");return t.innerHTML=function(e){return Ke?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Qe(e,t){var n=Qn;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function et(e,t){var n,r=!!(1&t),i=!!(2&t),o=!e.startsWith("<!>");return()=>{if(Q)return Qe(X,null),X;void 0===n&&(n=Xe(o?e:"<!>"+e),r||(n=me(n)));var t=i||de?document.importNode(n,!0):n.cloneNode(!0);r?Qe(me(t),t.lastChild):Qe(t,t);return t}}function tt(e,t,n="svg"){var r,i=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(Q)return Qe(X,null),X;if(!r){var e=Xe(i);r=me(me(e))}var t=r.cloneNode(!0);return Qe(t,t),t}}function nt(e,t){return tt(e,0,"svg")}function rt(e=""){if(!Q){var t=ge(e+"");return Qe(t,t),t}var n=X;return 3!==n.nodeType?(n.before(n=ge()),te(n)):Ce(n),Qe(n,n),n}function it(){if(Q)return Qe(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),n=ge();return e.append(t,n),Qe(t,n),e}function ot(e,t){if(Q){var n=Qn;return 0!==(n.f&E)&&null!==n.nodes.end||(n.nodes.end=X),void ne()}null!==e&&e.before(t)}class at{parent;is_pending=!1;transform_error;#e;#t=Q?X:null;#n;#r;#i;#o=null;#a=null;#l=null;#s=null;#c=0;#u=0;#f=!1;#d=new Set;#h=new Set;#v=null;#p=function(e){let t,n=0,r=Fn(0);return()=>{Er()&&(yr(r),Rr(()=>(0===n&&(t=_r(()=>e(()=>Bn(r)))),n+=1,()=>{W(()=>{n-=1,0===n&&(t?.(),t=void 0,Bn(r))})})))}}(()=>(this.#v=Fn(this.#c),()=>{this.#v=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Qn;t.b=this,t.f|=128,n(e)},this.parent=Qn.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Ir(()=>{if(Q){const e=this.#t;ne();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#g(t)}else t?this.#m():this.#y()}else this.#b()},589824),Q&&(this.#e=X)}#y(){try{this.#o=Lr(()=>this.#r(this.#e))}catch(e){this.error(e)}}#g(e){const t=this.#n.failed;t&&(this.#l=Lr(()=>{t(this.#e,()=>e,()=>()=>{})}))}#m(){const e=this.#n.pending;if(e){this.is_pending=!0,this.#a=Lr(()=>e(this.#e));var t=wn;W(()=>{var e=this.#s=document.createDocumentFragment(),n=ge();e.append(n),this.#o=this.#w(()=>Lr(()=>this.#r(n))),0===this.#u&&(this.#e.before(e),this.#s=null,jr(this.#a,()=>{this.#a=null}),this.#_(t))})}}#b(){var e=wn;try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#o=Lr(()=>{this.#r(this.#e)}),this.#u>0){var t=this.#s=document.createDocumentFragment();qr(this.#o,t);const e=this.#n.pending;this.#a=Lr(()=>e(this.#e))}else this.#_(e)}catch(e){this.error(e)}}#_(e){this.is_pending=!1;for(const t of this.#d)xe(t,w),e.schedule(t);for(const t of this.#h)xe(t,_),e.schedule(t);this.#d.clear(),this.#h.clear()}defer_effect(e){Ae(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#w(e){var t=Qn,n=zn,r=H;er(this.#i),Xn(this.#i),G(this.#i.ctx);try{return Rn.ensure(),e()}catch(e){return Ee(e),null}finally{er(t),Xn(n),G(r)}}#$(e,t){this.has_pending_snippet()?(this.#u+=e,0===this.#u&&(this.#_(t),this.#a&&jr(this.#a,()=>{this.#a=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))):this.parent&&this.parent.#$(e,t)}update_pending_count(e,t){this.#$(e,t),this.#c+=e,this.#v&&!this.#f&&(this.#f=!0,W(()=>{this.#f=!1,this.#v&&Gn(this.#v,this.#c)}))}get_effect_pending(){return this.#p(),yr(this.#v)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#o&&(Mr(this.#o),this.#o=null),this.#a&&(Mr(this.#a),this.#a=null),this.#l&&(Mr(this.#l),this.#l=null),Q&&(te(this.#t),ie(),te(oe()));var r=!1,i=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#l&&jr(this.#l,()=>{this.#l=null}),this.#w(()=>{this.#b()}))},a=e=>{try{i=!0,t?.(e,o),i=!1}catch(e){ke(e,this.#i&&this.#i.parent)}n&&(this.#l=this.#w(()=>{try{return Lr(()=>{var t=Qn;t.b=this,t.f|=128,n(this.#e,()=>e,()=>o)})}catch(e){return ke(e,this.#i.parent),null}}))};W(()=>{var t;try{t=this.transform_error(e)}catch(e){return void ke(e,this.#i&&this.#i.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>ke(e,this.#i&&this.#i.parent)):a(t)})}}function lt(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function st(e,t){return ft(e,t)}function ct(e,t){pe(),t.intro=t.intro??!1;const n=t.target,r=Q,i=X;try{for(var o=me(n);o&&(8!==o.nodeType||"["!==o.data);)o=ye(o);if(!o)throw F;ee(!0),te(o);const r=ft(e,{...t,anchor:o});return ee(!1),r}catch(r){if(r instanceof Error&&r.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw r;return r!==F&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),pe(),n.textContent="",ee(!1),st(e,t)}finally{ee(r),te(i)}}const ut=new Map;function ft(e,{target:t,anchor:n,props:i={},events:o,context:a,intro:l=!0,transformError:s}){pe();var c=void 0,u=function(e){Rn.ensure();const t=Cr(524352,e);return(e={})=>new Promise(n=>{e.outro?jr(t,()=>{Mr(t),n(void 0)}):(Mr(t),n(void 0))})}(()=>{var l=n??t.appendChild(ge());!function(e,t,n,r){new at(e,t,n,r)}(l,{pending:()=>{}},t=>{if(B({}),a&&(H.c=a),o&&(i.$$events=o),Q&&Qe(t,null),c=e(t,i)||{},Q&&(Qn.nodes.end=X,null===X||8!==X.nodeType||"]"!==X.data))throw K(),F;Z()},s);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Ve(r);for(const e of[t,document]){var o=ut.get(e);void 0===o&&(o=new Map,ut.set(e,o));var a=o.get(r);void 0===a?(e.addEventListener(r,ze,{passive:i}),o.set(r,1)):o.set(r,a+1)}}}};return f(r(He)),Ge.add(f),()=>{for(var e of u)for(const n of[t,document]){var r=ut.get(n),i=r.get(e);0==--i?(n.removeEventListener(e,ze),r.delete(e),0===r.size&&ut.delete(n)):r.set(e,i)}Ge.delete(f),l!==n&&l.parentNode?.removeChild(l)}});return dt.set(c,u),c}let dt=new WeakMap;function ht(e){var t=null!==zn&&2&zn.f?zn:null;null!==Qn&&(Qn.f|=O);return{ctx:H,deps:null,effects:null,equals:V,f:2050,fn:e,reactions:null,rv:0,v:U,wv:0,parent:t??Qn,ac:null}}function vt(e,t,n){let r=Qn;null===r&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var i=void 0,o=Fn(U),a=!zn,l=new Map;return function(e){Cr(4718592,e)}(()=>{var t=Qn,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(wt)}catch(e){n.reject(e),wt()}var s=wn;if(a){if(0!==(t.f&E))var c=_t();if(r.b.is_rendered())l.get(s)?.reject(N),l.delete(s);else{for(const e of l.values())e.reject(N);l.clear()}l.set(s,n)}const u=(e,n=void 0)=>{c&&c(n===N);if(n!==N&&0===(t.f&C)){if(s.activate(),n)o.f|=I,Gn(o,n);else{0!==(o.f&I)&&(o.f^=I),Gn(o,e);for(const[e,t]of l){if(l.delete(e),e===s)break;t.reject(N)}}s.deactivate()}};n.promise.then(u,e=>u(null,e||"unknown"))}),kr(()=>{for(const e of l.values())e.reject(N)}),new Promise(e=>{!function t(n){function r(){n===i?e(o):t(i)}n.then(r,r)}(i)})}function pt(e){const t=ht(e);return nr(t),t}function gt(e){var t,n=Qn;er(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&C)?t:null;t=t.parent}return null}(e));try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Mr(t[n])}}(e),t=hr(e)}finally{er(n)}return t}function mt(e){var t=gt(e);e.equals(t)||(e.wv=ur(),wn?.is_fork&&null!==e.deps||(e.v=t,null!==e.deps))?Yn||(null!==_n?(Er()||wn?.is_fork)&&_n.set(e,t):Oe(e)):xe(e,b)}function yt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&gr(t)}function bt(e,t,n,r){const i=ht;var o=e.filter(e=>!e.settled);if(0!==n.length||0!==o.length){var a,l,s,c,u=Qn,f=(a=Qn,l=zn,s=H,c=wn,function(e=!0){er(a),Xn(l),G(s),e&&0===(a.f&C)&&(c?.activate(),c?.apply())}),d=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null;if(0!==n.length){var h=_t();d?d.then(()=>{f(),p(),wt()}):p()}else d.then(()=>v(t.map(i)))}else r(t.map(i));function v(e){f();try{r(e)}catch(e){0===(u.f&C)&&ke(e,u)}wt()}function p(){Promise.all(n.map(e=>vt(e))).then(e=>v([...t.map(i),...e])).catch(e=>ke(e,u)).finally(()=>h())}}function wt(e=!0){er(null),Xn(null),G(null),e&&wn?.deactivate()}function _t(){var e=Qn.b,t=wn,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}class $t{anchor;#C=new Map;#E=new Map;#k=new Map;#S=new Set;#x=!0;constructor(e,t=!0){this.anchor=e,this.#x=t}#O=e=>{if(this.#C.has(e)){var t=this.#C.get(e),n=this.#E.get(t);if(n)Ur(n,!0),this.#S.delete(t);else{var r=this.#k.get(t);r&&(this.#E.set(t,r.effect),this.#k.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#C){if(this.#C.delete(t),t===e)break;const r=this.#k.get(n);r&&(Mr(r.effect),this.#k.delete(n))}for(const[e,r]of this.#E){if(e===t||this.#S.has(e))continue;const i=()=>{if(Array.from(this.#C.values()).includes(e)){var t=document.createDocumentFragment();qr(r,t),t.append(ge()),this.#k.set(e,{effect:r,fragment:t})}else Mr(r);this.#S.delete(e),this.#E.delete(e)};this.#x||!n?(this.#S.add(e),jr(r,i,!1)):i()}}};#R=e=>{this.#C.delete(e);const t=Array.from(this.#C.values());for(const[e,n]of this.#k)t.includes(e)||(Mr(n.effect),this.#k.delete(e))};ensure(e,t){var n=wn;!t||this.#E.has(e)||this.#k.has(e)||this.#E.set(e,Lr(()=>t(this.anchor)));this.#C.set(n,e),Q&&(this.anchor=X),this.#O(n)}}function Ct(e,t,n=!1){var r;Q&&(r=X,ne());var i=new $t(e);function o(e,t){if(Q){var n=ae(r);if(e!==parseInt(n.substring(1))){var o=oe();return te(o),i.anchor=o,ee(!1),i.ensure(e,t),void ee(!0)}}i.ensure(e,t)}Ir(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},n?S:0)}const Et=Symbol("NaN");function kt(e,t,n=!1,r=!1,i=!1,o=!1){var a=e,l="";if(n){var s=e;Q&&(a=te(me(s)))}Ar(()=>{var e=Qn;if(l!==(l=t()??"")){if(n&&!Q)return e.nodes=null,s.innerHTML=l,void(""!==l&&Qe(me(s),s.lastChild));if(null!==e.nodes&&(Vr(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(Q){X.data;for(var o=ne(),c=o;null!==o&&(8!==o.nodeType||""!==o.data);)c=o,o=ye(o);if(null===o)throw K(),F;return Qe(X,c),void(a=te(o))}var u=$e(r?"svg":i?"math":"template",r?"http://www.w3.org/2000/svg":i?"http://www.w3.org/1998/Math/MathML":void 0);u.innerHTML=l;var f=r||i?u:u.content;if(Qe(me(f),f.lastChild),r||i)for(;me(f);)a.before(me(f));else a.before(f)}}else Q&&ne()})}function St(e,t){var n,r=void 0;Pr(()=>{r!==(r=t())&&(n&&(Mr(n),n=null),r&&(n=Lr(()=>{Or(()=>r(e))})))})}function xt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ot(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xt(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const Rt=[..." \t\n\r\f \v\ufeff"];function At(e,t=!1){var n=t?" !important;":";",r="";for(var i of Object.keys(e)){var o=e[i];null!=o&&""!==o&&(r+=" "+i+": "+o+n)}return r}function It(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function Pt(e,t,n,r,i,o){var a=e.__className;if(Q||a!==n||void 0===a){var l=function(e,t,n){var r=null==e?"":""+e;if(n)for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var l=a+o;0!==a&&!Rt.includes(r[a-1])||l!==r.length&&!Rt.includes(r[l])?a=l:r=(0===a?"":r.substring(0,a))+r.substring(l+1)}return""===r?null:r}(n,0,o);Q&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=n}else if(o&&i!==o)for(var s in o){var c=!!o[s];null!=i&&c===!!i[s]||e.classList.toggle(s,c)}return o}function Lt(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(null==n[i]?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function Tt(e,t,n,r){var i=e.__style;if(Q||i!==t){var o=function(e,t){if(t){var n,r,i="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,a=0,l=!1,s=[];n&&s.push(...Object.keys(n).map(It)),r&&s.push(...Object.keys(r).map(It));var c=0,u=-1;const t=e.length;for(var f=0;f<t;f++){var d=e[f];if(l?"/"===d&&"*"===e[f-1]&&(l=!1):o?o===d&&(o=!1):"/"===d&&"*"===e[f+1]?l=!0:'"'===d||"'"===d?o=d:"("===d?a++:")"===d&&a--,!l&&!1===o&&0===a)if(":"===d&&-1===u)u=f;else if(";"===d||f===t-1){if(-1!==u){var h=It(e.substring(c,u).trim());s.includes(h)||(";"!==d&&f++,i+=" "+e.substring(c,f).trim()+";")}c=f+1,u=-1}}}return n&&(i+=At(n)),r&&(i+=At(r,!0)),""===(i=i.trim())?null:i}return null==e?null:String(e)}(t,r);Q&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else r&&(Array.isArray(r)?(Lt(e,n?.[0],r[0]),Lt(e,n?.[1],r[1],"important")):Lt(e,n,r));return r}function Nt(t,n,r=!1){if(t.multiple){if(null==n)return;if(!e(n))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var i of t.options)i.selected=n.includes(Mt(i))}else{for(i of t.options){if(ce(Mt(i),n))return void(i.selected=!0)}r&&void 0===n||(t.selectedIndex=-1)}}function Mt(e){return"__value"in e?e.__value:e.value}const Vt=Symbol("class"),Dt=Symbol("style"),jt=Symbol("is custom element"),Ft=Symbol("is html"),Ut=M?"link":"LINK",qt=M?"input":"INPUT",Ht=M?"option":"OPTION",Gt=M?"select":"SELECT",Bt=M?"progress":"PROGRESS";function Zt(e){if(Q){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Yt(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;Yt(e,"checked",null),e.checked=r}}};e.__on_r=n,W(n),Fe()}}function Jt(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Yt(e,t,n,r){var i=zt(e);Q&&(i[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===Ut)||i[t]!==(i[t]=n)&&("loading"===t&&(e[T]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Xt(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wt(e,t,n=[],r=[],i=[],o,a=!1,l=!1){bt(i,n,r,n=>{var r=void 0,i={},o=e.nodeName===Gt,s=!1;if(Pr(()=>{var c=t(...n.map(yr)),u=function(e,t,n,r,i=!1){if(Q&&i&&e.nodeName===qt){var o=e;("checkbox"===o.type?"defaultChecked":"defaultValue")in n||Zt(o)}var a=zt(e),l=a[jt],s=!a[Ft];let c=Q&&l;c&&ee(!1);var u=t||{},f=e.nodeName===Ht;for(var d in t)d in n||(n[d]=null);n.class?n.class=Ot(n.class):n[Vt]&&(n.class=null),n[Dt]&&(n.style??=null);var h=Xt(e);for(const r in n){let i=n[r];if(f&&"value"===r&&null==i)e.value=e.__value="",u[r]=i;else if("class"!==r)if("style"!==r){var v=u[r];if(i!==v||void 0===i&&e.hasAttribute(r)){u[r]=i;var p=r[0]+r[1];if("$$"!==p)if("on"===p){const t={},n="$$"+r;let o=r.slice(2);var g=Le(o);if(Ie(o)&&(o=o.slice(0,-7),t.capture=!0),!g&&v){if(null!=i)continue;e.removeEventListener(o,u[n],t),u[n]=null}if(g)Je(o,e,i),Ye([o]);else if(null!=i){let i=function(e){u[r].call(this,e)};u[n]=Be(o,e,i,t)}}else if("style"===r)Yt(e,r,i);else if("autofocus"===r)De(e,Boolean(i));else if(l||"__value"!==r&&("value"!==r||null==i))if("selected"===r&&f)Jt(e,i);else{var m=r;s||(m=Ne(m));var y="defaultValue"===m||"defaultChecked"===m;if(null!=i||l||y)y||h.includes(m)&&(l||"string"!=typeof i)?(e[m]=i,m in a&&(a[m]=U)):"function"!=typeof i&&Yt(e,m,i);else if(a[r]=null,"value"===m||"checked"===m){let n=e;const r=void 0===t;if("value"===m){let e=n.defaultValue;n.removeAttribute(m),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(m),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(r)}else e.value=e.__value=i}}else Tt(e,i,t?.[Dt],n[Dt]),u[r]=i,u[Dt]=n[Dt];else Pt(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,i,0,t?.[Vt],n[Vt]),u[r]=i,u[Vt]=n[Vt]}return c&&ee(!0),u}(e,r,c,0,a,l);s&&o&&"value"in c&&Nt(e,c.value);for(let e of Object.getOwnPropertySymbols(i))c[e]||Mr(i[e]);for(let t of Object.getOwnPropertySymbols(c)){var f=c[t];"@attach"!==t.description||r&&f===r[t]||(i[t]&&Mr(i[t]),i[t]=Lr(()=>St(e,()=>f))),u[t]=f}r=u}),o){var c=e;Or(()=>{Nt(c,r.value,!0),function(e){var t=new MutationObserver(()=>{Nt(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),kr(()=>{t.disconnect()})}(c)})}s=!0})}function zt(e){return e.__attributes??={[jt]:e.nodeName.includes("-"),[Ft]:e.namespaceURI===q}}var Kt=new Map;function Xt(e){var t,n=e.getAttribute("is")||e.nodeName,r=Kt.get(n);if(r)return r;Kt.set(n,r=[]);for(var i=e,o=Element.prototype;o!==i;){for(var a in t=l(i))t[a].set&&r.push(a);i=u(i)}return r}function Qt(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>Ue(n));const i=e.__on_r;e.__on_r=i?()=>{i(),r(!0)}:()=>r(!0),Fe()}(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=en(e)?tn(o):o,n(o),null!==wn&&r.add(wn),await mr(),o!==(o=t())){var a=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=o??"",null!==l){var c=e.value.length;a===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),(Q&&e.defaultValue!==e.value||null==_r(t)&&e.value)&&(n(en(e)?tn(e.value):e.value),null!==wn&&r.add(wn)),Rr(()=>{var n=t();if(e===document.activeElement){var i=wn;if(r.has(i))return}en(e)&&n===tn(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}function en(e){var t=e.type;return"number"===t||"range"===t}function tn(e){return""===e?null:+e}function nn(e,t){return e===t||e?.[P]===t}function rn(e={},t,n,r){var i=H.r,o=Qn;return Or(()=>{var r,a;return Rr(()=>{r=a,a=[],_r(()=>{e!==n(...a)&&(t(e,...a),r&&nn(n(...r),e)&&t(null,...r))})}),()=>{let r=o;for(;r!==i&&null!==r.parent&&r.parent.f&k;)r=r.parent;const l=r.teardown;r.teardown=()=>{a&&nn(n(...a),e)&&t(null,...a),l?.()}}}),e}const on={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function an(e,t,n){return new Proxy({props:e,exclude:t},on)}function ln(e,t,n,r){var i,o=r,a=!0,l=()=>(a&&(a=!1,o=r),o);void 0===e[t]&&void 0!==r&&l(),i=()=>{var n=e[t];return void 0===n?l():(a=!0,n)};var s=!1,c=ht(()=>(s=!1,i())),u=Qn;return function(e,t){if(arguments.length>0){const n=t?yr(c):e;return Hn(c,n),s=!0,void 0!==o&&(o=n),e}return Yn&&s||0!==(u.f&C)?c.v:yr(c)}}class sn{#A;#I;constructor(e){var t=new Map,n=(e,n)=>{var r=qn(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>yr(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===L||(yr(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(Hn(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#I=(e.hydrate?ct:st)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||An(),this.#A=r.$$events;for(const e of Object.keys(this.#I))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&o(this,e,{get(){return this.#I[e]},set(t){this.#I[e]=t},enumerable:!0});this.#I.$set=e=>{Object.assign(r,e)},this.#I.$destroy=()=>{!function(e,t){const n=dt.get(e);n?(dt.delete(e),n(t)):Promise.resolve()}(this.#I)}}$set(e){this.#I.$set(e)}$on(e,t){this.#A[e]=this.#A[e]||[];const n=(...e)=>t.call(this,...e);return this.#A[e].push(n),()=>{this.#A[e]=this.#A[e].filter(e=>e!==n)}}$destroy(){this.#I.$destroy()}}let cn=class{};function un(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function fn(e,t,n,r,l,s){let c=class extends cn{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return i(t).map(e=>(t[e].attribute||e).toLowerCase())}};return i(t).forEach(e=>{o(c.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=un(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var i=a(r,e)?.get;i?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{o(c.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=c,c}function dn(e){null===H&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),Sr(()=>{const t=_r(e);if("function"==typeof t)return t})}function hn(e,t,n){if(null==e)return t(void 0),d;const r=_r(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}"function"==typeof HTMLElement&&(cn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(e){return t=>{const n=$e("slot");"default"!==e&&(n.name=e),ot(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const e of this.$$s)e in r&&("default"!==e||this.$$d.children?n[e]=t(e):(this.$$d.children=t(e),n.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=un(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new sn(e)),this.$$me=function(e){Rn.ensure();const t=Cr(524352,e);return()=>{Mr(t)}}(()=>{Rr(()=>{this.$$r=!0;for(const e of i(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=un(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const e in this.$$l)for(const t of this.$$l[e]){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=un(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return i(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});const vn=[];function pn(e,t=d){let n=null;const r=new Set;function i(t){if(D(e,t)&&(e=t,n)){const t=!vn.length;for(const t of r)t[1](),vn.push(t,e);if(t){for(let e=0;e<vn.length;e+=2)vn[e][0](vn[e+1]);vn.length=0}}}function o(t){i(t(e))}return{set:i,update:o,subscribe:function(a,l=d){const s=[a,l];return r.add(s),1===r.size&&(n=t(i,o)||d),a(e),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function gn(e){let t;return hn(e,e=>t=e)(),t}let mn=Symbol();function yn(e,t,n){const r=n[t]??={store:null,source:qn(void 0),unsubscribe:d};if(r.store!==e&&!(mn in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=d;else{var i=!0;r.unsubscribe=hn(e,e=>{i?r.source.v=e:Hn(r.source,e)}),i=!1}return e&&mn in n?gn(e):yr(r.source)}const bn=new Set;let wn=null,_n=null,$n=null,Cn=!1,En=!1,kn=null,Sn=null;var xn=0;let On=1;class Rn{id=On++;current=new Map;previous=new Map;#P=new Set;#L=new Set;#T=0;#N=0;#M=null;#V=[];#d=new Set;#h=new Set;#D=new Map;is_fork=!1;#j=!1;#F(){return this.is_fork||this.#N>0}skip_effect(e){this.#D.has(e)||this.#D.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#D.get(e);if(t){for(var n of(this.#D.delete(e),t.d))xe(n,w),this.schedule(n);for(n of t.m)xe(n,_),this.schedule(n)}}#U(){xn++>1e3&&function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){ke(e,$n)}}();const e=this.#V;this.#V=[],this.apply();var t=kn=[],n=[],r=Sn=[];for(const r of e)this.#q(r,t,n);if(wn=null,r.length>0){var i=Rn.ensure();for(const e of r)i.schedule(e)}if(kn=null,Sn=null,this.#F()){this.#H(n),this.#H(t);for(const[e,t]of this.#D)Mn(e,t)}else{this.#d.clear(),this.#h.clear();for(const e of this.#P)e(this);this.#P.clear(),Pn(n),Pn(t),0===this.#T&&this.#O(),this.#M?.resolve()}var o=wn;if(this.#V.length>0){const e=o??=this;e.#V.push(...this.#V.filter(t=>!e.#V.includes(t)))}null!==o&&(bn.add(o),o.#U())}#q(e,t,n){e.f^=b;for(var r=e.first;null!==r;){var i=r.f,o=!!(96&i);if(!(o&&0!==(i&b)||0!==(i&$)||this.#D.has(r))&&null!==r.fn){o?r.f^=b:4&i?t.push(r):fr(r)&&(0!==(i&p)&&this.#h.add(r),gr(r));var a=r.first;if(null!==a){r=a;continue}}for(;null!==r;){var l=r.next;if(null!==l){r=l;break}r=r.parent}}}#H(e){for(var t=0;t<e.length;t+=1)Ae(e[t],this.#d,this.#h)}capture(e,t){t===U||this.previous.has(e)||this.previous.set(e,t),0===(e.f&I)&&(this.current.set(e,e.v),_n?.set(e,e.v))}activate(){wn=this}deactivate(){wn=null,_n=null}flush(){try{if(En=!0,wn=this,!this.#F()){for(const e of this.#d)this.#h.delete(e),xe(e,w),this.schedule(e);for(const e of this.#h)xe(e,_),this.schedule(e)}this.#U()}finally{xn=0,$n=null,kn=null,Sn=null,En=!1,wn=null,_n=null,Dn.clear()}}discard(){for(const e of this.#L)e(this);this.#L.clear()}#O(){if(bn.size>1){this.previous.clear();var e=wn,t=_n,n=!0;for(const e of bn){if(e===this){n=!1;continue}const t=[];for(const[r,i]of this.current){if(e.current.has(r)){if(!n||i===e.current.get(r))continue;e.current.set(r,i)}t.push(r)}if(0===t.length)continue;const r=[...e.current.keys()].filter(e=>!this.current.has(e));if(r.length>0){e.activate();const n=new Set,i=new Map;for(const e of t)Ln(e,r,n,i);if(e.#V.length>0){e.apply();for(const t of e.#V)e.#q(t,[],[])}e.deactivate()}}wn=e,_n=t}this.#D.clear(),bn.delete(this)}increment(e){this.#T+=1,e&&(this.#N+=1)}decrement(e,t){this.#T-=1,e&&(this.#N-=1),this.#j||t||(this.#j=!0,W(()=>{this.#j=!1,this.flush()}))}oncommit(e){this.#P.add(e)}ondiscard(e){this.#L.add(e)}settled(){return(this.#M??=h()).promise}static ensure(){if(null===wn){const e=wn=new Rn;En||(bn.add(wn),Cn||W(()=>{wn===e&&e.flush()}))}return wn}apply(){}schedule(e){if($n=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&E))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===kn||t!==Qn||null!==zn&&2&zn.f))return;if(96&n){if(0===(n&b))return;t.f^=b}}this.#V.push(t)}}}function An(e){var t=Cn;Cn=!0;try{for(;;){if(z(),null===wn)return;wn.flush()}}finally{Cn=t}}let In=null;function Pn(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&fr(r)&&(In=new Set,gr(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&Dr(r),In?.size>0)){Dn.clear();for(const e of In){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)In.has(n)&&(In.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||gr(n)}}In.clear()}}In=null}}function Ln(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?Ln(i,t,n,r):4194320&e&&0===(e&w)&&Tn(i,t,r)&&(xe(i,w),Nn(i))}}function Tn(e,t,r){const i=r.get(e);if(void 0!==i)return i;if(null!==e.deps)for(const i of e.deps){if(n.call(t,i))return!0;if(2&i.f&&Tn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Nn(e){wn.schedule(e)}function Mn(e,t){if(0===(e.f&g)||0===(e.f&b)){0!==(e.f&w)?t.d.push(e):0!==(e.f&_)&&t.m.push(e),xe(e,b);for(var n=e.first;null!==n;)Mn(n,t),n=n.next}}let Vn=new Set;const Dn=new Map;let jn=!1;function Fn(e,t){return{f:0,v:e,reactions:null,equals:V,rv:0,wv:0}}function Un(e,t){const n=Fn(e);return nr(n),n}function qn(e,t=!1,n=!0){const r=Fn(e);return t||(r.equals=j),r}function Hn(e,t,r=!1){return null===zn||Kn&&0===(zn.f&x)||!(4325394&zn.f)||null!==tr&&n.call(tr,e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Gn(e,r?le(t):t,Sn)}function Gn(e,t,n=null){if(!e.equals(t)){var r=e.v;Yn?Dn.set(e,t):Dn.set(e,r),e.v=t;var i=Rn.ensure();if(i.capture(e,r),2&e.f){const t=e;0!==(e.f&w)&>(t),Oe(t)}e.wv=ur(),Zn(e,w,n),null===Qn||0===(Qn.f&b)||96&Qn.f||(null===or?function(e){or=e}([e]):or.push(e)),!i.is_fork&&Vn.size>0&&!jn&&function(){jn=!1;for(const e of Vn)0!==(e.f&b)&&xe(e,_),fr(e)&&gr(e);Vn.clear()}()}return t}function Bn(e){Hn(e,e.v+1)}function Zn(e,t,n){var r=e.reactions;if(null!==r)for(var i=r.length,o=0;o<i;o++){var a=r[o],l=a.f,s=0===(l&w);if(s&&xe(a,t),2&l){var c=a;_n?.delete(c),0===(l&R)&&(l&y&&(a.f|=R),Zn(c,_,n))}else if(s){var u=a;0!==(l&p)&&null!==In&&In.add(u),null!==n?n.push(u):Nn(u)}}}let Jn=!1,Yn=!1;function Wn(e){Yn=e}let zn=null,Kn=!1;function Xn(e){zn=e}let Qn=null;function er(e){Qn=e}let tr=null;function nr(e){null!==zn&&(null===tr?tr=[e]:tr.push(e))}let rr=null,ir=0,or=null;let ar=1,lr=0,sr=lr;function cr(e){sr=e}function ur(){return++ar}function fr(e){var t=e.f;if(0!==(t&w))return!0;if(2&t&&(e.f&=-65537),0!==(t&_)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(fr(o)&&mt(o),o.wv>e.wv)return!0}0!==(t&y)&&null===_n&&xe(e,b)}return!1}function dr(e,t,r=!0){var i=e.reactions;if(null!==i&&(null===tr||!n.call(tr,e)))for(var o=0;o<i.length;o++){var a=i[o];2&a.f?dr(a,t,!1):t===a&&(r?xe(a,w):0!==(a.f&b)&&xe(a,_),Nn(a))}}function hr(e){var t=rr,n=ir,r=or,i=zn,o=tr,a=H,l=Kn,s=sr,c=e.f;rr=null,ir=0,or=null,zn=96&c?null:e,tr=null,G(e.ctx),Kn=!1,sr=++lr,null!==e.ac&&(Ue(()=>{e.ac.abort(N)}),e.ac=null);try{e.f|=A;var u=(0,e.fn)();e.f|=E;var f=e.deps,d=wn?.is_fork;if(null!==rr){var h;if(d||pr(e,ir),null!==f&&ir>0)for(f.length=ir+rr.length,h=0;h<rr.length;h++)f[ir+h]=rr[h];else e.deps=f=rr;if(Er()&&0!==(e.f&y))for(h=ir;h<f.length;h++)(f[h].reactions??=[]).push(e)}else!d&&null!==f&&ir<f.length&&(pr(e,ir),f.length=ir);if(!(null===or||Kn||null===f||6146&e.f))for(h=0;h<or.length;h++)dr(or[h],e);if(null!==i&&i!==e){if(lr++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=lr;if(null!==t)for(const e of t)e.rv=lr;null!==or&&(null===r?r=or:r.push(...or))}return 0!==(e.f&I)&&(e.f^=I),u}catch(e){return Ee(e)}finally{e.f^=A,rr=t,ir=n,or=r,zn=i,tr=o,G(a),Kn=l,sr=s}}function vr(e,r){let i=r.reactions;if(null!==i){var o=t.call(i,e);if(-1!==o){var a=i.length-1;0===a?i=r.reactions=null:(i[o]=i[a],i.pop())}}if(null===i&&2&r.f&&(null===rr||!n.call(rr,r))){var l=r;0!==(l.f&y)&&(l.f^=y,l.f&=-65537),Oe(l),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(N),t.teardown=d,t.ac=null,pr(t,0),Nr(t))}(l),pr(l,0)}}function pr(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)vr(e,n[r])}function gr(e){var t=e.f;if(0===(t&C)){xe(e,b);var n=Qn,r=Jn;Qn=e,Jn=!0;try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&g)&&Mr(t),t=n}}(e):Nr(e),Tr(e);var i=hr(e);e.teardown="function"==typeof i?i:null,e.wv=ar}finally{Jn=r,Qn=n}}}async function mr(){await Promise.resolve(),An()}function yr(e){var t=!!(2&e.f);if(null!==zn&&!Kn&&!(null!==Qn&&0!==(Qn.f&C)||null!==tr&&n.call(tr,e))){var r=zn.deps;if(0!==(zn.f&A))e.rv<lr&&(e.rv=lr,null===rr&&null!==r&&r[ir]===e?ir++:null===rr?rr=[e]:rr.push(e));else{(zn.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[zn]:n.call(i,zn)||i.push(zn)}}if(Yn&&Dn.has(e))return Dn.get(e);if(t){var o=e;if(Yn){var a=o.v;return(0===(o.f&b)&&null!==o.reactions||wr(o))&&(a=gt(o)),Dn.set(o,a),a}var l=0===(o.f&y)&&!Kn&&null!==zn&&(Jn||0!==(zn.f&y)),s=0===(o.f&E);fr(o)&&(l&&(o.f|=y),mt(o)),l&&!s&&(yt(o),br(o))}if(_n?.has(e))return _n.get(e);if(0!==(e.f&I))throw e.v;return e.v}function br(e){if(e.f|=y,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&y)&&(yt(t),br(t))}function wr(e){if(e.v===U)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Dn.has(t))return!0;if(2&t.f&&wr(t))return!0}return!1}function _r(e){var t=Kn;try{return Kn=!0,e()}finally{Kn=t}}function $r(e){null===Qn&&(null===zn&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Yn&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Cr(e,t){var n=Qn;null!==n&&0!==(n.f&$)&&(e|=$);var r={ctx:H,deps:null,nodes:null,f:e|w|y,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(4&e)null!==kn?kn.push(r):Rn.ensure().schedule(r);else if(null!==t){try{gr(r)}catch(e){throw Mr(r),e}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&O)&&(i=i.first,0!==(e&p)&&0!==(e&S)&&null!==i&&(i.f|=S))}if(null!==i&&(i.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==zn&&2&zn.f&&0===(e&m))){var o=zn;(o.effects??=[]).push(i)}return r}function Er(){return null!==zn&&!Kn}function kr(e){const t=Cr(8,null);return xe(t,b),t.teardown=e,t}function Sr(e){$r();var t=Qn.f;if(!(!zn&&0!==(t&g)&&0===(t&E)))return xr(e);var n=H;(n.e??=[]).push(e)}function xr(e){return Cr(1048580,e)}function Or(e){return Cr(4,e)}function Rr(e,t=0){return Cr(8|t,e)}function Ar(e,t=[],n=[],r=[]){bt(r,t,n,t=>{Cr(8,()=>e(...t.map(yr)))})}function Ir(e,t=0){return Cr(p|t,e)}function Pr(e,t=0){return Cr(v|t,e)}function Lr(e){return Cr(524320,e)}function Tr(e){var t=e.teardown;if(null!==t){const e=Yn,n=zn;Wn(!0),Xn(null);try{t.call(null)}finally{Wn(e),Xn(n)}}}function Nr(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Ue(()=>{e.abort(N)});var r=n.next;0!==(n.f&m)?n.parent=null:Mr(n,t),n=r}}function Mr(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Vr(e.nodes.start,e.nodes.end),n=!0),xe(e,k),Nr(e,t&&!n),pr(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();Tr(e),e.f^=k,e.f|=C;var i=e.parent;null!==i&&null!==i.first&&Dr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Vr(e,t){for(;null!==e;){var n=e===t?null:ye(e);e.remove(),e=n}}function Dr(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jr(e,t,n=!0){var r=[];Fr(e,r,!0);var i=()=>{n&&Mr(e),t&&t()},o=r.length;if(o>0){var a=()=>--o||i();for(var l of r)l.out(a)}else i()}function Fr(e,t,n){if(0===(e.f&$)){e.f^=$;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var o=i.next;Fr(i,t,!!(0!==(i.f&S)||0!==(i.f&g)&&0!==(e.f&p))&&n),i=o}}}function Ur(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&b)&&(xe(e,w),Rn.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;Ur(n,!!(0!==(n.f&S)||0!==(n.f&g))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function qr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:ye(n);t.append(n),n=i}}function Hr(e){const t={get:e=>gn(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(gn(t.store),{[e]:n}):Object.assign(gn(t.store),e),t.store.set(gn(t.store))},store:pn(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:Hr({}),i18n:Hr({}),instances:new Set,plugins:new Set};const Gr={ariaLinkLabel:"Visit Altcha.org",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."};"$altcha"in globalThis&&globalThis.$altcha.i18n.set("en",Gr);"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");var Br=et('<label class="altcha-checkbox"><input/> <svg width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></label>');function Zr(e,t){B(t,!0);let n=ln(t,"loading"),r=an(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),An()}},o=Br();return Wt(be(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ie(4),re(o),Ar(()=>Yt(o,"data-loading",n())),ot(e,o),Z(i)}fn(Zr,{loading:{}},[],[],{mode:"open"});var Jr=et('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function Yr(e,t){B(t,!0);let n=ln(t,"loading"),r=an(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),An()}},o=Jr();return Wt(be(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ie(2),re(o),Ar(()=>Yt(o,"data-loading",n())),ot(e,o),Z(i)}fn(Yr,{loading:{}},[],[],{mode:"open"});var Wr=et('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function zr(e,t){B(t,!0);let n=ln(t,"strings");var r={get strings(){return n()},set strings(e){n(e),An()}},i=Wr(),o=be(i);return Yt(o,"href","https://altcha.org"),re(i),Ar(()=>Yt(o,"aria-label",n().ariaLinkLabel)),ot(e,i),Z(r)}fn(zr,{strings:{}},[],[],{mode:"open"});var Kr=et('<div class="altcha-footer"><div></div> <!></div>');function Xr(e,t){B(t,!0);let n=ln(t,"logo"),r=ln(t,"strings");var i={get logo(){return n()},set logo(e){n(e),An()},get strings(){return r()},set strings(e){r(e),An()}},o=Kr(),a=be(o);kt(a,()=>r().footer,!0),re(a);var l=_e(a,2),s=e=>{zr(e,{get strings(){return r()}})};return Ct(l,e=>{n()&&e(s)}),re(o),ot(e,o),Z(i)}fn(Xr,{logo:{},strings:{}},[],[],{mode:"open"});var Qr=et('<label class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></label>');function ei(e,t){B(t,!0);let n=ln(t,"loading"),r=an(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i={get loading(){return n()},set loading(e){n(e),An()}},o=Qr();return Wt(be(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),ie(2),re(o),Ar(()=>Yt(o,"data-loading",n())),ot(e,o),Z(i)}fn(ei,{loading:{}},[],[],{mode:"open"});var ti=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(ti||{}),ni=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(ni||{}),ri=et('<div class="altcha-code-challenge-title"> </div>'),ii=et('<div class="altcha-spinner"></div>'),oi=nt('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ai=nt('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),li=nt('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),si=et('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),ci=et('<audio hidden="" autoplay=""></audio>'),ui=et('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function fi(e,t){B(t,!0);let n=ln(t,"audioUrl"),r=ln(t,"codeChallenge"),i=ln(t,"config"),o=ln(t,"imageUrl"),a=ln(t,"onCancel"),l=ln(t,"onReload"),s=ln(t,"onSubmit"),c=ln(t,"strings"),u=Un(void 0),f=Un(void 0),d=Un(void 0),h=Un(!1),v=Un(""),p=Un(!1);function g(){Hn(u,ti.PAUSED,!0)}function m(e){Hn(u,ti.ERROR,!0)}function y(){Hn(u,ti.READY,!0)}function b(){Hn(u,ti.LOADING,!0)}function w(){Hn(u,ti.PLAYING,!0)}function _(){Hn(u,ti.PAUSED,!0)}function $(){yr(f)?yr(u)===ti.LOADING||(yr(f).paused?(n()&&yr(f).src!==n()&&(yr(f).src=n()),yr(f).currentTime=0,yr(f).play()):yr(f).pause()):(Hn(p,!0),requestAnimationFrame(()=>{yr(f)&&n()&&(yr(f).src=n(),yr(f).play())}))}dn(()=>(i().disableAutoFocus||mr().then(()=>{yr(d)?.focus()}),()=>{yr(f)&&(yr(f).pause(),Hn(f,void 0))}));var C={get audioUrl(){return n()},set audioUrl(e){n(e),An()},get codeChallenge(){return r()},set codeChallenge(e){r(e),An()},get config(){return i()},set config(e){i(e),An()},get imageUrl(){return o()},set imageUrl(e){o(e),An()},get onCancel(){return a()},set onCancel(e){a(e),An()},get onReload(){return l()},set onReload(e){l(e),An()},get onSubmit(){return s()},set onSubmit(e){s(e),An()},get strings(){return c()},set strings(e){c(e),An()}},E=ui(),k=be(E),S=be(k),x=e=>{var t=ri(),n=be(t,!0);re(t),Ar(()=>lt(n,c().verificationRequired)),ot(e,t)};Ct(S,e=>{"standard"!==i().codeChallengeDisplay&&e(x)});var O=_e(S,2),R=be(O,!0);re(O);var A=_e(O,2),I=_e(A,2),P=be(I);Zt(P),P.disabled=yr(h),rn(P,e=>Hn(d,e),()=>yr(d));var L=_e(P,2),T=e=>{var t=si(),n=be(t),r=e=>{ot(e,ii())},i=e=>{ot(e,oi())},o=e=>{ot(e,ai())},a=e=>{ot(e,li())};Ct(n,e=>{yr(u)===ti.LOADING?e(r):yr(u)===ti.ERROR?e(i,1):yr(u)===ti.PLAYING?e(o,2):e(a,-1)}),re(t),Ar(()=>{Yt(t,"title",c().getAudioChallenge),t.disabled=yr(u)===ti.LOADING||yr(u)===ti.ERROR,Yt(t,"aria-label",yr(u)===ti.LOADING?c().loading:c().getAudioChallenge)}),Je("click",t,()=>$()),ot(e,t)};Ct(L,e=>{r().audio&&e(T)});var N=_e(L,2);re(I);var M=_e(I,2),V=be(M),D=be(V,!0);re(V);var j=_e(V,2),F=be(j,!0);re(j),re(M),re(k);var U=_e(k,2),q=e=>{var t=ci();rn(t,e=>Hn(f,e),()=>yr(f)),Ze("error",t,m),Ze("loadstart",t,b),Ze("canplay",t,y),Ze("pause",t,_),Ze("playing",t,w),Ze("ended",t,g),ot(e,t)};return Ct(U,e=>{yr(p)&&e(q)}),re(E),Ar(()=>{lt(R,c().enterCodeFromImage),Yt(A,"src",o()),Yt(P,"minlength",r().length||1),Yt(P,"maxlength",r().length),Yt(P,"placeholder",c().enterCode),Yt(P,"aria-label",yr(u)===ti.LOADING?c().loading:yr(u)===ti.PLAYING?"":c().enterCodeAria),Yt(P,"aria-live",yr(u)?"assertive":"polite"),Yt(P,"aria-busy",yr(u)===ti.LOADING),Yt(N,"title",c().reload),Yt(N,"aria-label",c().reload),Yt(V,"aria-label",c().verify),lt(D,c().verify),Yt(j,"aria-label",c().cancel),lt(F,c().cancel)}),Ze("submit",k,function(e){e.preventDefault(),e.stopPropagation(),s()?.(yr(v))},!0),Je("keydown",P,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),$()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),a()?.())}),Qt(P,()=>yr(v),e=>Hn(v,e)),Je("click",N,()=>l()?.()),Je("click",j,()=>a()?.()),ot(e,E),Z(C)}Ye(["keydown","click"]),fn(fi,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var di=et('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),hi=et('<div class="altcha-popover-arrow"></div>'),vi=et('<div role="button" class="altcha-popover-close">×</div>'),pi=et('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function gi(e,t){B(t,!0);let n=ln(t,"anchor"),r=ln(t,"children"),i=ln(t,"display",0,"standard"),o=ln(t,"backdrop",0,!1),a=ln(t,"onClickOutside"),l=ln(t,"onClickOutsideDelay",0,600),s=ln(t,"onClose"),c=ln(t,"variant",0,"neutral"),u=an(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","variant"]),f=Un(void 0),h=Un(void 0),v=Un(!1),p=Un(0);function g(){s()?.()}function m(){if(n()&&yr(f)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<yr(f).clientHeight;yr(v)!==t&&Hn(v,t)}}dn(()=>{const e="bottomsheet"===i()||"overlay"===i();return e&&(yr(h)&&document.body.append(yr(h)),yr(f)&&document.body.append(yr(f))),m(),mr().then(()=>{Hn(p,Date.now(),!0)}),()=>{e&&(yr(h)&&document.body.removeChild(yr(h)),yr(f)&&document.body.removeChild(yr(f)))}});var y={get anchor(){return n()},set anchor(e){n(e),An()},get children(){return r()},set children(e){r(e),An()},get display(){return i()},set display(e="standard"){i(e),An()},get backdrop(){return o()},set backdrop(e=!1){o(e),An()},get onClickOutside(){return a()},set onClickOutside(e){a(e),An()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),An()},get onClose(){return s()},set onClose(e){s(e),An()},get variant(){return c()},set variant(e="neutral"){c(e),An()}},b=pi();Ze("click",ue,function(e){const t=e.target;!yr(f)?.contains(t)&&yr(p)&&yr(p)+l()<Date.now()&&a()?.()}),Ze("resize",ue,function(){m()}),Ze("scroll",ue,function(){m()});var w=we(b),_=e=>{var t=di();rn(t,e=>Hn(h,e),()=>yr(h)),ot(e,t)};Ct(w,e=>{o()&&e(_)});var $=_e(w,2);Wt($,()=>({...u,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":c(),"data-top":yr(v),"data-display":i()}));var C=be($),E=e=>{ot(e,hi())};Ct(C,e=>{"standard"===i()&&e(E)});var k=_e(C,2),x=e=>{var t=vi();Je("click",t,g),ot(e,t)};Ct(k,e=>{"standard"!==i()&&e(x)});var O=_e(k,2);return function(e,t,...n){var r=new $t(e);Ir(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},S)}(be(O),()=>r()??d),re(O),re($),rn($,e=>Hn(f,e),()=>yr(f)),ot(e,b),Z(y)}async function mi(e){const{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:i,onOutOfMemory:o=e=>e>1?Math.floor(e/2):0,counterMode:a}=e,l=Math.min(16,Math.max(1,n)),s=[],c=()=>{for(const e of s)e.terminate()};for(let e=0;e<l;e++)s.push(await i(t.parameters.algorithm));let u=null;try{u=await Promise.race(s.map((e,n)=>(r.signal.addEventListener("abort",()=>{e.postMessage({type:"abort"})}),new Promise((r,i)=>{e.addEventListener("error",e=>{i(e)}),e.addEventListener("message",t=>{if(t.data){for(const t of s)t!==e&&t.postMessage({type:"abort"});if(t.data.error)return i(new Error(t.data.error))}r(t.data)}),e.postMessage({challenge:t,counterMode:a,counterStart:n,counterStep:l,type:"work"})}))))}catch(n){if(n instanceof Error&&!!n?.message?.includes("Out of memory")&&o){c();const n=o(l);if(n)return mi({...e,challenge:t,controller:r,concurrency:n,createWorker:i})}throw n}finally{c()}return r.signal.aborted?null:u||null}Ye(["click"]),fn(gi,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},variant:{}},[],[],{mode:"open"});var yi=et('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),bi=et('<div class="altcha-overlay-content"></div>'),wi=et('<div role="button" class="altcha-overlay-close">×</div> <!>',1),_i=et('<div class="altcha-floating-arrow"></div>'),$i=et('<input type="hidden"/>'),Ci=et('<div class="altcha-error">Secure context (HTTPS) required.</div>'),Ei=et('<div class="altcha-error"> </div>'),ki=et('<div class="altcha-error"> </div>'),Si=et("<!> <!>",1),xi=et('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <!></div> <!></div>',1);Ye(["click"]),"undefined"!=typeof window&&window.customElements&&customElements.define("altcha-widget",fn(function(e,t){B(t,!0);const[n,r]=function(){const e={};return[e,function(){kr(()=>{for(var t in e)e[t].unsubscribe();o(e,mn,{enumerable:!1,value:!0})})}]}(),i=["ar","fa","he","ur"],{isSecureContext:a}=globalThis,{store:l}=globalThis.$altcha.defaults,s=navigator.hardwareConcurrency||2,c=navigator.deviceMemory||0,u=c&&c<=4?Math.min(4,s):s,f=globalThis.$altcha.i18n.store,d=t.$$host,h=(e,t)=>{mr().then(()=>{d?.dispatchEvent(new CustomEvent(e,{detail:t}))})};let v=Un(le(new URL(location.origin))),p=Un(!1),g=Un(null),m=Un(null),y=Un(le(ni.UNVERIFIED)),b=Un(void 0),w=Un(void 0),_=Un(null),$=Un(void 0),C=Un(null),E=Un(null),k=Un(null),x=Un(null),O=Un(le([])),R=Un(le({})),A=Un(!0);const I=pt(()=>({fetch:(e,t)=>fetch(e,t),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",retryOnOutOfMemoryError:!0,setCookie:null,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:u,...yn(l,"$altchaDefaults",n),...yr(R)})),P=pt(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),L=pt(()=>function(e){switch(e){case"checkbox":return Zr;case"switch":return ei;default:return Yr}}(yr(I).type)),T=pt(()=>yr(y)===ni.VERIFYING),N=pt(()=>!yr(I).hideFooter),M=pt(()=>!yr(I).hideLogo&&"bar"!==yr(I).display),V=pt(()=>function(e,t){const n=Object.keys(e).map(e=>e.toLowerCase());let r=t.reduce((t,r)=>(r=r.toLowerCase(),t||(e[r]?r:null)||n.find(e=>r.split("-")[0]===e.split("-")[0])||null),null);e[r||""]||(r="en");return{language:r,strings:e[r]}}(yn(f,"$altchaI18nStore",n),[yr(I).language,document.documentElement.lang,...navigator.languages])),D=pt(()=>i.includes(yr(V).language)?"rtl":void 0),j=pt(()=>({...yr(V).strings})),F=pt(()=>yr(g)?.audio?.match(/^(https?:)?\//)?W(yr(g).audio,yr(v),{language:yr(I).audioChallengeLanguage||yr(V).language}).toString():yr(g)?.audio),U=pt(()=>yr(g)?.image?.match(/^(https?:)?\//)?W(yr(g).image,yr(v)):yr(g)?.image);async function q(e,...t){let n;for(const r of yr(O))n=await r[e].call(r,...t);return n}async function H(e){await new Promise(t=>setTimeout(t,e))}async function G(e=yr(I).challenge){const t=await q("onFetchChallenge",e);if(void 0!==t)return t;if("string"==typeof e){let t=null;if(e.match(/^(https?:)?\//)){$e("fetching challenge from",e),Hn(v,new URL(e,location.origin),!0);const n=await yr(I).fetch(e,{credentials:yr(I).credentials||void 0});pe(n);const r=n.headers.get("x-altcha-config");r&&function(e){try{const t=JSON.parse(e);t&&"object"==typeof t&&me({serverVerificationFields:t?.sentinel?.fields,serverVerificationTimeZone:t?.sentinel?.timeZone,verifyUrl:t.verifyurl,...t})}catch(e){$e("unable to configure from x-altcha-config header",e)}}(r),t=await n.json()}else{$e("parsing JSON challenge");try{t=JSON.parse(e)}catch{throw new Error("Unable to parse JSON challenge.")}}if("object"==typeof t&&"challenge"in t&&(t=function(e){const[t,n]=e.salt.split("?"),r={};if(n)try{Object.assign(r,Object.fromEntries(new URLSearchParams(n).entries()))}catch{}const i={codeChallenge:e.codeChallenge,parameters:{algorithm:e.algorithm,cost:1,data:r,expiresAt:r?.expires?parseInt(r.expires,10):void 0,keyLength:"SHA-512"===e.algorithm?64:"SHA-384"===e.algorithm?48:32,nonce:(o=(new TextEncoder).encode(e.salt),Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")),keyPrefix:e.challenge,salt:""},signature:e.signature};var o;return Object.defineProperties(i,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),i}(t)),!function(e){return!!e&&"object"==typeof e&&"parameters"in e&&"signature"in e&&!!e.parameters&&"object"==typeof e.parameters&&"algorithm"in e.parameters&&"nonce"in e.parameters&&"salt"in e.parameters&&"keyPrefix"in e.parameters}(t))throw new Error("Challenge validation failed.");return t}return e&&"object"==typeof e?JSON.parse(JSON.stringify(e)):null}function J(){return document.getElementById(yr(P))}function Y(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function W(e,t,n){const r=new URL(e,t);if(r.search||(r.search=t.search),n)for(const e in n)void 0!==n[e]&&null!==n[e]&&r.searchParams.set(e,n[e]);return r.toString()}function z(e){!yr(p)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,yr(y)!==ni.VERIFYING&&xe()):e.currentTarget.checked||(e.preventDefault(),Ce())}function K(e){yr(y)===ni.VERIFYING?e.currentTarget.setCustomValidity(yr(j).waitAlert):yr(I).validationMessage&&e.currentTarget.setCustomValidity(yr(I).validationMessage)}function ie(){yr(m)&&yr(m).abort(),ve(yr(I).display),Ce()}function se(e){"onfocus"===yr(I).auto&&yr(y)===ni.UNVERIFIED&&xe()}function ce(){yr(m)&&yr(m).abort(),ve(yr(I).display),Ce()}function de(e){Hn(C,e.submitter,!0),"onsubmit"===yr(I).auto&&yr(y)===ni.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),ke(),xe().then(e=>{e&&!yr(g)&&mr().then(()=>{he(yr(C))})}))}function he(e){yr(_)&&"requestSubmit"in yr(_)?yr(_).requestSubmit(e):yr(_)?.reportValidity()&&(e?e.click():yr(_).submit())}function ve(e){switch(e){case"bar":case"floating":case"overlay":ye(),yr(I).auto&&"off"!==yr(I).auto||(yr(R).auto="onsubmit");break;case"standard":ke()}}function pe(e){if(e.status>=400)throw new Error(`Server responded with ${e.status}.`);const t=e.headers.get("content-type");if(!t||!t.includes("/json"))throw new Error(`Server responded with invalid content-type. Expected application/json, received ${t}.`)}async function ge(e){if(!yr(x))return void Ee(ni.ERROR,"Cannot verify code challenge without PoW payload.");Ee(ni.VERIFYING);let t=null;if(yr(I).verifyUrl)t=await async function(e,t){const n=await q("onRequestServerVerification",e,t);if(void 0!==n)return n;if($e("requesting server verification from",yr(I).verifyUrl),!yr(I).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await yr(I).fetch(W(yr(I).verifyUrl,yr(v)),{body:JSON.stringify({code:t,fields:yr(I).serverVerificationFields?[...yr(_)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{const n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e},{}):void 0,payload:e,timeZone:yr(I).serverVerificationTimeZone?Y():void 0}),credentials:yr(I).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});pe(r);const i=await r.json();return i&&"object"==typeof i&&"payload"in i&&i.payload&&h("serververification",i),i}(yr(x),e);else{if(!yr(I).verifyFunction)return void Ee(ni.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await yr(I).verifyFunction(yr(x),e)}t?.payload&&(Hn(x,t.payload,!0),$e("server payload",yr(x))),!0===t?.verified?($e("verified"),Ee(ni.VERIFIED),h("verified",{payload:yr(x)}),"onsubmit"===yr(I).auto&&mr().then(()=>{he(yr(C))})):Ee(ni.ERROR,t?.reason||"Verification failed."),yr(I).disableAutoFocus||J()?.focus()}function me(e){Object.assign(yr(R),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function ye(){Hn(A,!1)}function $e(...e){(yr(I).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${yr(I).name}]`,...e)}function Ce(e=ni.UNVERIFIED,t=null){Hn(p,!1),Hn(E,t,!0),Hn(x,null),yr(k)&&(clearTimeout(yr(k)),Hn(k,null)),Ee(e)}function Ee(e,t=null){Hn(y,e,!0),Hn(E,t,!0),h("statechange",{payload:yr(x),state:yr(y)})}function ke(){Hn(A,!0),mr().then(()=>{Se()})}function Se(){if("floating"===yr(I).display)return function(e=20){if(!yr($))return;const t=yr(I).floatingPlacement;if(!yr(w)&&(Hn(w,(yr(I).floatingAnchor instanceof HTMLElement?yr(I).floatingAnchor:yr(I).floatingAnchor?document.querySelector(yr(I).floatingAnchor):yr(_)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||yr(_),!0),!yr(w)))return void $e("unable to find floating anchor element");const n=parseInt(yr(I).floatingOffset,10)||12,r=yr(w).getBoundingClientRect(),i=yr($).getBoundingClientRect(),o=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l=t&&"auto"!==t?"top"===t:r.bottom+i.height+n+e>o,s=Math.max(e,Math.min(a-e-i.width,r.left+r.width/2-i.width/2));if(yr($).style.setProperty("--altcha-floating-left",`${s}px`),yr($).style.setProperty("--altcha-floating-top",l?r.top-(i.height+n)+"px":`${r.bottom+n}px`),yr($).setAttribute("data-floating-position",l?"top":"bottom"),yr(b)){const e=yr(b).getBoundingClientRect();yr(b).style.left=r.left-s+r.width/2-e.width/2+"px"}}()}async function xe(e={}){const{concurrency:t=Math.max(1,yr(I).workers),controller:n=new AbortController,minDuration:r=yr(I).minDuration}=e,i=performance.now();let o=null,l=null,s=!1;const c=await q("onVerify",e);if(void 0!==c)return c;Hn(m,n,!0),Ce(ni.VERIFYING);try{if(!a)throw new Error("Secure context (HTTPS) required.");if(yr(I).mockError)throw new Error("Mock error.");if(yr(I).test)return $e("running test mode with null challenge"),await H(Math.max(0,r-(performance.now()-i))),Hn(x,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),$e("verified"),Ee(ni.VERIFIED),h("vefified",{payload:yr(x)}),{payload:yr(x)};if(o=await G(),!o)throw new Error("Failed to fetch challenge.");$e("challenge",o),"configuration"in o&&($e("re-configuring from challenge",o.configuration),me(o.configuration)),o.parameters.expiresAt&&function(e){yr(k)&&clearTimeout(yr(k));const t=()=>{yr(y)!==ni.UNVERIFIED?(Hn(p,!1),Ee(ni.EXPIRED)):Ce(),h("expired")},n=1e3*e-Date.now();n>=1?Hn(k,setTimeout(t,n),!0):t()}(o.parameters.expiresAt),s="_version"in o&&1===o._version;const e=globalThis.$altcha.algorithms.get(o.parameters.algorithm);if(!e)throw new Error(`Unsupported algorithm ${o.parameters.algorithm}.`);if(l=await mi({challenge:o,concurrency:t,controller:n,createWorker:e,counterMode:s?"string":"uint32",onOutOfMemory:e=>{if($e("out of memory error received"),h("outofmemory"),yr(I).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return $e(`retrying with ${t} workers...`),t}}}),yr(m)?.signal.aborted)return Ce(),null;if(!l)throw new Error("Failed to find solution.");$e("solution",l),await H(Math.max(0,r-(performance.now()-i))),Hn(g,o.codeChallenge||yr(I).codeChallenge||null,!0),Hn(x,s?btoa(JSON.stringify(function(e,t){return{algorithm:e.parameters.algorithm,challenge:e.parameters.keyPrefix,number:t.counter,salt:"_originalSalt"in e?e._originalSalt:e.parameters.nonce,signature:e.signature,took:t.time||0}}(o,l))):btoa(JSON.stringify({challenge:{...o,codeChallenge:void 0},solution:l})),!0),yr(g)?($e("requesting code verification"),Ee(ni.CODE),h("codechallenge",{codeChallenge:yr(g)})):yr(I).verifyUrl?await ge():($e("verified"),Ee(ni.VERIFIED),h("vefified",{payload:yr(x)}))}catch(e){return $e("verification failed",e),Ee(ni.ERROR,String(e)),null}finally{Hn(m,null)}return{challenge:o,payload:yr(x),solution:l}}Sr(()=>{me({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})}),Sr(()=>{if(t.configuration)try{me(JSON.parse(t.configuration))}catch{$e("unable to parse the `configuration` attribute (JSON expected)")}}),Sr(()=>{ve(yr(I).display)}),Sr(()=>{yr(p)&&yr(y)===ni.VERIFYING&&Hn(p,!1)}),Sr(()=>{yr(p)||yr(y)!==ni.VERIFIED||Hn(p,!0)}),Sr(()=>{if(!yr(p)){const e=J();e&&e.checked&&(e.checked=!1)}}),Sr(()=>{yr(y)===ni.VERIFIED&&J()?.setCustomValidity("")}),Sr(()=>{if("onload"===yr(I).auto){const e=setTimeout(()=>{xe()},1);return()=>{e&&clearTimeout(e)}}}),Sr(()=>{yr(E)&&$e("error:",yr(E))}),Sr(()=>{yr(x)&&yr(I).setCookie&&function(e,t={}){const{domain:n,name:r=yr(I).name,maxAge:i,path:o,sameSite:a,secure:l}=t;let s=`${encodeURIComponent(r)}=${encodeURIComponent(e)}`;n&&(s+=`; Domain=${n}`);null!=i&&(s+=`; Max-Age=${i}`);o&&(s+=`; Path=${o}`);a&&(s+=`; SameSite=${a}`);l&&(s+="; Secure");document.cookie=s}(yr(x),yr(I).setCookie)}),dn(()=>($e("mounted","3.0.0-beta.2"),d&&globalThis.$altcha.instances.add(d),Hn(_,yr($)?.closest("form"),!0),yr(_)?.addEventListener("reset",ce),yr(_)?.addEventListener("submit",de),yr(_)?.addEventListener("focusin",se),function(){Hn(O,[...globalThis.$altcha.plugins].map(e=>new e(d)),!0),$e("activating plugins",yr(O).map(e=>e.constructor.name));for(const e of yr(O))e.activate()}(),h("load"),a||$e("secure context (HTTPS) required"),()=>{!function(){for(const e of yr(O))e.destroy()}(),d&&globalThis.$altcha.instances.delete(d),yr(k)&&clearTimeout(yr(k)),yr(_)?.removeEventListener("reset",ce),yr(_)?.removeEventListener("submit",de),yr(_)?.removeEventListener("focusin",se)}));var Oe={configure:me,getConfiguration:function(){return{...yr(I)}},getState:function(){return yr(y)},hide:ye,log:$e,reset:Ce,setState:Ee,show:ke,updateUI:Se,verify:xe},Re=xi();Ze("scroll",fe,function(){Se()}),Ze("click",fe,function(e){const t=e.target;"floating"!==yr(I).display||!t||d?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||yr(y)===ni.VERIFIED||yr(I).floatingPersist||ye()}),Ze("pageshow",ue,function(){Ce()}),Ze("resize",ue,function(){Se()});var Ae=we(Re),Ie=e=>{ot(e,yi())};Ct(Ae,e=>{"overlay"===yr(I).display&&yr(A)&&e(Ie)});var Pe=_e(Ae,2),Le=be(Pe),Te=e=>{var t=wi(),n=we(t),r=_e(n,2),i=e=>{var t=bi();kt(t,()=>document.querySelector(yr(I).overlayContent)?.innerHTML,!0),re(t),ot(e,t)};Ct(r,e=>{yr(I).overlayContent&&e(i)}),Je("click",n,ie),ot(e,t)};Ct(Le,e=>{"overlay"===yr(I).display&&yr(A)&&e(Te)});var Ne=_e(Le,2),Me=be(Ne),Ve=be(Me),De=be(Ve);{let e=pt(()=>"standard"===yr(I).display&&"onsubmit"!==yr(I).auto||yr(y)===ni.VERIFYING);!function(e,t,n){var r;Q&&(r=X,ne());var i=new $t(e);Ir(()=>{var e=t()??null;if(Q&&"["===ae(r)!=(null!==e)){var o=oe();return te(o),i.anchor=o,ee(!1),i.ensure(e,e&&(t=>n(t,e))),void ee(!0)}i.ensure(e,e&&(t=>n(t,e)))},S)}(De,()=>yr(L),(t,n)=>{n(t,{get id(){return yr(P)},name:"",get required(){return yr(e)},get loading(){return yr(T)},get checked(){return yr(p)},onchange:z,oninvalid:K})})}var je=_e(De,2),Fe=be(je),Ue=e=>{var t=rt();Ar(()=>lt(t,yr(j).verificationRequired)),ot(e,t)},qe=e=>{var t=rt();Ar(()=>lt(t,yr(j).verifying)),ot(e,t)},He=e=>{var t=rt();Ar(()=>lt(t,yr(j).verified)),ot(e,t)},Ge=e=>{var t=rt();Ar(()=>lt(t,yr(j).label)),ot(e,t)};Ct(Fe,e=>{yr(y)===ni.CODE&&yr(g)?e(Ue):yr(y)===ni.VERIFYING?e(qe,1):yr(y)===ni.VERIFIED?e(He,2):e(Ge,-1)}),re(je),re(Ve);var Be=_e(Ve,2),Ye=e=>{zr(e,{get strings(){return yr(j)}})};Ct(Be,e=>{yr(M)&&e(Ye)}),re(Me);var We=_e(Me,2),ze=e=>{{let t=pt(()=>"bar"===yr(I).display&&yr(M));Xr(e,{get logo(){return yr(t)},get strings(){return yr(j)}})}};Ct(We,e=>{yr(N)&&e(ze)});var Ke=_e(We,2),Xe=e=>{var t=_i();rn(t,e=>Hn(b,e),()=>yr(b)),ot(e,t)};Ct(Ke,e=>{"floating"===yr(I).display&&e(Xe)});var Qe=_e(Ke,2),et=e=>{var t=$i();Zt(t),Ar(()=>{var e,n,r;Yt(t,"name",yr(I).name),e=t,n=yr(x),(r=zt(e)).value!==(r.value=n??void 0)&&(e.value!==n||0===n&&e.nodeName===Bt)&&(e.value=n??"")}),ot(e,t)};Ct(Qe,e=>{yr(I).setCookie||e(et)}),re(Ne);var tt=_e(Ne,2),nt=e=>{gi(e,{get anchor(){return yr($)},onClickOutside:()=>{a&&Ce()},role:"alert",variant:"error",get dir(){return yr(D)},children:(e,t)=>{var n=it(),r=we(n),i=e=>{ot(e,Ci())},o=e=>{var t=Ei(),n=be(t,!0);re(t),Ar(()=>lt(n,yr(j).expired)),ot(e,t)},l=e=>{var t=ki(),n=be(t,!0);re(t),Ar(()=>{Yt(t,"title",yr(E)),lt(n,yr(j).error)}),ot(e,t)};Ct(r,e=>{yr(E)||a?yr(E)||yr(y)!==ni.EXPIRED?e(l,-1):e(o,1):e(i)}),ot(e,n)},$$slots:{default:!0}})},at=e=>{var t=it();!function(e,t,n){Q&&ne();var r=new $t(e);Ir(()=>{var e=t();e!=e&&(e=Et),r.ensure(e,n)})}(we(t),()=>yr(g),e=>{{let t=pt(()=>"standard"!==yr(I).codeChallengeDisplay);gi(e,{get anchor(){return yr($)},get backdrop(){return yr(t)},get display(){return yr(I).codeChallengeDisplay},onClose:()=>{Ce()},role:"dialog",get"aria-label"(){return yr(j).verificationRequired},get dir(){return yr(D)},children:(e,t)=>{var n=Si(),r=we(n);fi(r,{get audioUrl(){return yr(F)},get imageUrl(){return yr(U)},onCancel:()=>Ce(),onReload:()=>xe(),onSubmit:e=>ge(e),get codeChallenge(){return yr(g)},get config(){return yr(I)},get strings(){return yr(j)}});var i=_e(r,2),o=e=>{Xr(e,{get logo(){return yr(M)},get strings(){return yr(j)}})};Ct(i,e=>{yr(N)&&"standard"!==yr(I).codeChallengeDisplay&&e(o)}),ot(e,n)},$$slots:{default:!0}})}}),ot(e,t)};Ct(tt,e=>{yr(E)||yr(y)===ni.EXPIRED||!a?e(nt):yr(g)&&yr(y)===ni.CODE&&e(at,1)}),re(Pe),rn(Pe,e=>Hn($,e),()=>yr($)),Ar(e=>{Yt(Pe,"data-state",yr(y)),Yt(Pe,"data-display",yr(I).display||void 0),Yt(Pe,"data-placement",e),Yt(Pe,"data-visible",yr(A)||void 0),Yt(Pe,"dir",yr(D)),Yt(je,"for",yr(P)),Pe.dir=Pe.dir},[()=>function(e){switch(e){case"bar":return yr(I).barPlacement||"bottom";case"floating":return yr(I).floatingPlacement||"auto";default:return}}(yr(I).display)]),ot(e,Re);var st=Z(Oe);return r(),st},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));
|