diff --git a/.gitignore b/.gitignore index a79681c..bd3e354 100644 --- a/.gitignore +++ b/.gitignore @@ -1,37 +1,47 @@ # Rust -/target +/target/ -# Build artifacts -/dist +# UI build output +/ui/dist/ -# SQLite databases -*.db -*.db-wal -*.db-shm +# Release artifacts +/dist/ -# Configuration +# Runtime database +auth.db +auth.db-shm +auth.db-wal + +# Local configuration config.toml -.env -# Coverage -coverage/ -tarpaulin-report.html +# Scratch +scratch/ -# IDE -.idea/ -.vscode/ -*.iml - -# Operating System -.DS_Store -Thumbs.db +# Temporary +tree.txt +*.tmp +*.bak +*.orig +*.swp +*.swo +*~ # Logs *.log -# Local work directories -backups/ -scratch/ +# Coverage +*.profraw +*.profdata -# Benchmark output -benchmarks/ +# macOS +.DS_Store + +# Windows +Thumbs.db + +# Python +__pycache__/ + +# Node +node_modules/ \ No newline at end of file diff --git a/docs/images/about-page.png b/docs/images/about-page.png new file mode 100644 index 0000000..ce7b872 Binary files /dev/null and b/docs/images/about-page.png differ diff --git a/docs/images/api-tokens-management.png b/docs/images/api-tokens-management.png new file mode 100644 index 0000000..1bf1ef7 Binary files /dev/null and b/docs/images/api-tokens-management.png differ diff --git a/docs/images/applications-create-dialog.png b/docs/images/applications-create-dialog.png new file mode 100644 index 0000000..46b27db Binary files /dev/null and b/docs/images/applications-create-dialog.png differ diff --git a/docs/images/applications-management.png b/docs/images/applications-management.png new file mode 100644 index 0000000..36858e3 Binary files /dev/null and b/docs/images/applications-management.png differ diff --git a/docs/images/audit-log.png b/docs/images/audit-log.png new file mode 100644 index 0000000..f39fb41 Binary files /dev/null and b/docs/images/audit-log.png differ diff --git a/docs/images/dashboard-overview.png b/docs/images/dashboard-overview.png new file mode 100644 index 0000000..c08d9b6 Binary files /dev/null and b/docs/images/dashboard-overview.png differ diff --git a/docs/images/login-page.png b/docs/images/login-page.png new file mode 100644 index 0000000..7511dfb Binary files /dev/null and b/docs/images/login-page.png differ diff --git a/docs/images/permissions-management.png b/docs/images/permissions-management.png new file mode 100644 index 0000000..6016fc9 Binary files /dev/null and b/docs/images/permissions-management.png differ diff --git a/docs/images/roles-management.png b/docs/images/roles-management.png new file mode 100644 index 0000000..207c6ab Binary files /dev/null and b/docs/images/roles-management.png differ diff --git a/docs/images/service-accounts-create-dialog.png b/docs/images/service-accounts-create-dialog.png new file mode 100644 index 0000000..8730fbb Binary files /dev/null and b/docs/images/service-accounts-create-dialog.png differ diff --git a/docs/images/sessions-management.png b/docs/images/sessions-management.png new file mode 100644 index 0000000..32eabaa Binary files /dev/null and b/docs/images/sessions-management.png differ diff --git a/docs/images/settings-page.png b/docs/images/settings-page.png new file mode 100644 index 0000000..f2af6aa Binary files /dev/null and b/docs/images/settings-page.png differ diff --git a/docs/images/tenants-management.png b/docs/images/tenants-management.png new file mode 100644 index 0000000..06b28a7 Binary files /dev/null and b/docs/images/tenants-management.png differ diff --git a/patch_boot.js b/patch_boot.js deleted file mode 100644 index 6968e5e..0000000 --- a/patch_boot.js +++ /dev/null @@ -1,14 +0,0 @@ -const fs = require('fs'); -const file = 'ui/dist/assets/boot.js'; -let content = fs.readFileSync(file, 'utf8'); -content = ` -const originalError = console.error; -console.error = function(...args) { - originalError.apply(console, args); - const el = document.getElementById("main"); - if (el) { - el.innerHTML = "
" + args.map(a => String(a)).join(" ") + "
"; - } -}; -` + content; -fs.writeFileSync(file, content); diff --git a/ui/dist/assets/boot.js b/ui/dist/assets/boot.js deleted file mode 100644 index 73715db..0000000 --- a/ui/dist/assets/boot.js +++ /dev/null @@ -1,40 +0,0 @@ -// Bootstrap the Dioxus WASM UI (external file so CSP can stay strict). - -function showError(err) { - console.error("[nx9-auth-ui]", err); - const el = document.getElementById("main"); - if (!el) return; - const msg = err && err.stack ? err.stack : String(err); - el.innerHTML = - "
" + - "

UI failed to start

" + - "
" +
-    msg +
-    "
"; -} - -function setStatus(text) { - const el = document.getElementById("boot-loader"); - if (el) { - el.innerHTML = - "

" + - text + - "

"; - } -} - -setStatus("Loading nx9-auth UI…"); - -import init from "/nx9_auth_ui.js"; - -// Call with no args: wasm-bindgen resolves nx9_auth_ui_bg.wasm next to -// nx9_auth_ui.js via import.meta.url (avoids the deprecated string form). -init() - .then(() => { - console.info("[nx9-auth-ui] WASM started"); - const el = document.getElementById("main"); - if (el) el.dataset.dioxusMounted = "1"; - const loader = document.getElementById("boot-loader"); - if (loader) loader.remove(); - }) - .catch(showError); diff --git a/ui/dist/assets/favicon.svg b/ui/dist/assets/favicon.svg deleted file mode 100644 index a6a699f..0000000 --- a/ui/dist/assets/favicon.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - N9 - diff --git a/ui/dist/assets/style.css b/ui/dist/assets/style.css deleted file mode 100644 index 6b94341..0000000 --- a/ui/dist/assets/style.css +++ /dev/null @@ -1,857 +0,0 @@ -/* ─── NX9-Auth Enterprise UI ─────────────────────────────────────────────── */ - -:root { - --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; - --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; - - --radius-sm: 6px; - --radius: 10px; - --radius-lg: 14px; - - --header-h: 56px; - --sidebar-w: 240px; - --sidebar-w-collapsed: 64px; - - --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06); - --shadow: 0 4px 16px rgba(0, 0, 0, 0.08); - --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12); - - --transition: 150ms ease; - - /* Light palette (GitHub / Linear inspired) */ - --bg: #f6f8fa; - --bg-elevated: #ffffff; - --bg-muted: #eef1f5; - --bg-hover: #e8ecf1; - --border: #d0d7de; - --border-muted: #e6ebf0; - - --text: #1f2328; - --text-secondary: #656d76; - --text-muted: #8b949e; - --text-inverse: #ffffff; - - --accent: #2563eb; - --accent-hover: #1d4ed8; - --accent-soft: rgba(37, 99, 235, 0.1); - - --success: #1a7f37; - --success-soft: rgba(26, 127, 55, 0.12); - --warning: #9a6700; - --warning-soft: rgba(154, 103, 0, 0.12); - --danger: #cf222e; - --danger-soft: rgba(207, 34, 46, 0.12); - --info: #0969da; - --info-soft: rgba(9, 105, 218, 0.12); - - --glass: rgba(255, 255, 255, 0.72); - --glass-border: rgba(255, 255, 255, 0.4); - --overlay: rgba(15, 23, 42, 0.45); - - --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35); -} - -[data-theme="dark"] { - --bg: #0d1117; - --bg-elevated: #161b22; - --bg-muted: #21262d; - --bg-hover: #2a3139; - --border: #30363d; - --border-muted: #21262d; - - --text: #e6edf3; - --text-secondary: #aab2bb; - --text-muted: #7d8590; - --text-inverse: #0d1117; - - --accent: #58a6ff; - --accent-hover: #79b8ff; - --accent-soft: rgba(88, 166, 255, 0.15); - - --success: #3fb950; - --success-soft: rgba(63, 185, 80, 0.15); - --warning: #d29922; - --warning-soft: rgba(210, 153, 34, 0.15); - --danger: #f85149; - --danger-soft: rgba(248, 81, 73, 0.15); - --info: #58a6ff; - --info-soft: rgba(88, 166, 255, 0.15); - - --glass: rgba(22, 27, 34, 0.78); - --glass-border: rgba(48, 54, 61, 0.8); - --overlay: rgba(0, 0, 0, 0.6); - - --focus-ring: 0 0 0 3px rgba(88, 166, 255, 0.4); - --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); - --shadow: 0 4px 16px rgba(0, 0, 0, 0.35); - --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45); -} - -@media (prefers-color-scheme: dark) { - :root:not([data-theme="light"]) { - --bg: #0d1117; - --bg-elevated: #161b22; - --bg-muted: #21262d; - --bg-hover: #2a3139; - --border: #30363d; - --border-muted: #21262d; - --text: #e6edf3; - --text-secondary: #aab2bb; - --text-muted: #7d8590; - --text-inverse: #0d1117; - --accent: #58a6ff; - --accent-hover: #79b8ff; - --accent-soft: rgba(88, 166, 255, 0.15); - --success: #3fb950; - --success-soft: rgba(63, 185, 80, 0.15); - --warning: #d29922; - --warning-soft: rgba(210, 153, 34, 0.15); - --danger: #f85149; - --danger-soft: rgba(248, 81, 73, 0.15); - --info: #58a6ff; - --info-soft: rgba(88, 166, 255, 0.15); - --glass: rgba(22, 27, 34, 0.78); - --glass-border: rgba(48, 54, 61, 0.8); - --overlay: rgba(0, 0, 0, 0.6); - --focus-ring: 0 0 0 3px rgba(88, 166, 255, 0.4); - } -} - -/* ─── Reset ──────────────────────────────────────────────────────────────── */ - -*, *::before, *::after { box-sizing: border-box; } -html, body { margin: 0; padding: 0; min-height: 100%; } -body { - font-family: var(--font); - font-size: 14px; - line-height: 1.5; - color: var(--text); - background: var(--bg); - -webkit-font-smoothing: antialiased; -} -a { color: var(--accent); text-decoration: none; } -a:hover { text-decoration: underline; } -button, input, select, textarea { font: inherit; color: inherit; } -button { cursor: pointer; } -h1, h2, h3, h4 { margin: 0 0 0.5rem; font-weight: 600; letter-spacing: -0.01em; } -h1 { font-size: 1.5rem; } -h2 { font-size: 1.25rem; } -h3 { font-size: 1.05rem; } -p { margin: 0 0 0.75rem; } -code, kbd { - font-family: var(--mono); - font-size: 0.9em; - background: var(--bg-muted); - padding: 0.1em 0.35em; - border-radius: 4px; -} - -/* ─── Shell ──────────────────────────────────────────────────────────────── */ - -.app-shell { - display: grid; - grid-template-rows: var(--header-h) 1fr; - grid-template-columns: var(--sidebar-w) 1fr; - grid-template-areas: - "header header" - "sidebar main"; - min-height: 100vh; -} -.app-shell.sidebar-collapsed { - grid-template-columns: var(--sidebar-w-collapsed) 1fr; -} - -.app-header { - grid-area: header; - position: sticky; - top: 0; - z-index: 50; - display: flex; - align-items: center; - gap: 1rem; - padding: 0 1rem; - height: var(--header-h); - background: var(--glass); - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); - border-bottom: 1px solid var(--border); -} -.app-header .brand { - display: flex; - align-items: center; - gap: 0.6rem; - font-weight: 700; - color: var(--text); - text-decoration: none; - min-width: 140px; -} -.app-header .brand:hover { text-decoration: none; } -.app-header .brand-mark { - width: 28px; height: 28px; - border-radius: 8px; - background: linear-gradient(135deg, var(--accent), #7c3aed); - display: grid; place-items: center; - color: white; font-size: 13px; font-weight: 800; -} -.app-header .search { - flex: 1; - max-width: 420px; -} -.app-header .header-actions { - margin-left: auto; - display: flex; - align-items: center; - gap: 0.5rem; -} - -.app-sidebar { - grid-area: sidebar; - border-right: 1px solid var(--border); - background: var(--bg-elevated); - padding: 0.75rem 0.5rem; - overflow-y: auto; - display: flex; - flex-direction: column; - gap: 0.25rem; -} -.nav-section { - margin: 0.75rem 0.5rem 0.35rem; - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.06em; - color: var(--text-muted); -} -.nav-link { - display: flex; - align-items: center; - gap: 0.65rem; - padding: 0.5rem 0.75rem; - border-radius: var(--radius-sm); - color: var(--text-secondary); - text-decoration: none; - transition: background var(--transition), color var(--transition); -} -.nav-link:hover { - background: var(--bg-hover); - color: var(--text); - text-decoration: none; -} -.nav-link.active { - background: var(--accent-soft); - color: var(--accent); - font-weight: 600; -} -.nav-link .icon { width: 18px; text-align: center; flex-shrink: 0; } - -.app-main { - grid-area: main; - display: flex; - flex-direction: column; - min-width: 0; -} -.main-inner { - flex: 1; - padding: 1.25rem 1.5rem 2rem; - max-width: 1280px; - width: 100%; - margin: 0 auto; -} -.breadcrumb { - display: flex; - align-items: center; - gap: 0.4rem; - flex-wrap: wrap; - font-size: 13px; - color: var(--text-muted); - margin-bottom: 1rem; -} -.breadcrumb a { color: var(--text-secondary); } -.breadcrumb .sep { opacity: 0.5; } -.breadcrumb .current { color: var(--text); font-weight: 500; } - -.app-footer { - padding: 1rem 1.5rem; - border-top: 1px solid var(--border-muted); - color: var(--text-muted); - font-size: 12px; - display: flex; - justify-content: space-between; - gap: 1rem; - flex-wrap: wrap; -} - -/* ─── Auth layout ────────────────────────────────────────────────────────── */ - -.auth-page { - min-height: 100vh; - display: grid; - place-items: center; - padding: 1.5rem; - background: - radial-gradient(ellipse at 20% 0%, var(--accent-soft), transparent 50%), - radial-gradient(ellipse at 80% 100%, rgba(124, 58, 237, 0.08), transparent 45%), - var(--bg); -} -.auth-card { - width: 100%; - max-width: 400px; - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-lg); - box-shadow: var(--shadow-lg); - padding: 2rem; -} -.auth-card .logo-row { - display: flex; - align-items: center; - gap: 0.75rem; - margin-bottom: 1.5rem; -} -.auth-card h1 { font-size: 1.35rem; margin-bottom: 0.25rem; } -.auth-card .subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; } - -/* ─── Components ─────────────────────────────────────────────────────────── */ - -.btn { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 0.4rem; - padding: 0.45rem 0.9rem; - border-radius: var(--radius-sm); - border: 1px solid transparent; - background: var(--bg-muted); - color: var(--text); - font-weight: 500; - transition: background var(--transition), border-color var(--transition), opacity var(--transition); - white-space: nowrap; -} -.btn:hover { background: var(--bg-hover); } -.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); } -.btn:disabled { opacity: 0.55; cursor: not-allowed; } -.btn-primary { - background: var(--accent); - color: #fff; - border-color: var(--accent); -} -.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } -.btn-danger { - background: var(--danger); - color: #fff; - border-color: var(--danger); -} -.btn-danger:hover { filter: brightness(1.05); } -.btn-ghost { - background: transparent; - border-color: transparent; - color: var(--text-secondary); -} -.btn-ghost:hover { background: var(--bg-hover); color: var(--text); } -.btn-outline { - background: transparent; - border-color: var(--border); -} -.btn-sm { padding: 0.25rem 0.6rem; font-size: 12px; } -.btn-icon { - width: 34px; height: 34px; padding: 0; - border-radius: var(--radius-sm); -} - -.form-group { margin-bottom: 1rem; } -.form-label { - display: block; - font-size: 13px; - font-weight: 500; - margin-bottom: 0.35rem; - color: var(--text); -} -.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 0.3rem; } -.form-error { font-size: 12px; color: var(--danger); margin-top: 0.3rem; } -.form-control { - width: 100%; - padding: 0.5rem 0.7rem; - border: 1px solid var(--border); - border-radius: var(--radius-sm); - background: var(--bg-elevated); - color: var(--text); - transition: border-color var(--transition), box-shadow var(--transition); -} -.form-control:focus { - outline: none; - border-color: var(--accent); - box-shadow: var(--focus-ring); -} -.form-control.is-invalid { border-color: var(--danger); } -.password-field { - position: relative; - display: flex; - align-items: center; -} -.password-field .form-control { padding-right: 2.5rem; } -.password-field .toggle { - position: absolute; - right: 0.35rem; - background: transparent; - border: none; - color: var(--text-muted); - padding: 0.35rem 0.5rem; - border-radius: 4px; -} -.password-field .toggle:hover { color: var(--text); background: var(--bg-hover); } - -.checkbox-row, .radio-row { - display: flex; - align-items: center; - gap: 0.5rem; - margin-bottom: 0.5rem; -} - -.card { - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius); - box-shadow: var(--shadow-sm); -} -.card-header { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - padding: 0.9rem 1.1rem; - border-bottom: 1px solid var(--border-muted); -} -.card-body { padding: 1.1rem; } -.card-footer { - padding: 0.75rem 1.1rem; - border-top: 1px solid var(--border-muted); - background: var(--bg-muted); - border-radius: 0 0 var(--radius) var(--radius); -} - -.stat-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); - gap: 0.85rem; - margin-bottom: 1.25rem; -} -.stat-card { - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius); - padding: 1rem; - box-shadow: var(--shadow-sm); -} -.stat-card .label { - font-size: 12px; - color: var(--text-muted); - font-weight: 500; - text-transform: uppercase; - letter-spacing: 0.04em; -} -.stat-card .value { - font-size: 1.65rem; - font-weight: 700; - margin-top: 0.25rem; - letter-spacing: -0.02em; -} -.stat-card .hint { font-size: 12px; color: var(--text-secondary); margin-top: 0.25rem; } - -.page-header { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 1rem; - flex-wrap: wrap; - margin-bottom: 1.25rem; -} -.page-header h1 { margin: 0; } -.page-header .desc { color: var(--text-secondary); margin: 0.25rem 0 0; } - -.toolbar { - display: flex; - align-items: center; - gap: 0.6rem; - flex-wrap: wrap; - margin-bottom: 1rem; -} -.toolbar .spacer { flex: 1; } -.toolbar .search-input { max-width: 280px; min-width: 180px; } - -.table-wrap { - overflow-x: auto; - border: 1px solid var(--border); - border-radius: var(--radius); - background: var(--bg-elevated); -} -table.data-table { - width: 100%; - border-collapse: collapse; - font-size: 13px; -} -table.data-table th, -table.data-table td { - text-align: left; - padding: 0.7rem 0.9rem; - border-bottom: 1px solid var(--border-muted); - vertical-align: middle; -} -table.data-table th { - font-size: 12px; - font-weight: 600; - color: var(--text-secondary); - background: var(--bg-muted); - white-space: nowrap; - user-select: none; -} -table.data-table th.sortable { cursor: pointer; } -table.data-table th.sortable:hover { color: var(--text); } -table.data-table tr:last-child td { border-bottom: none; } -table.data-table tbody tr:hover { background: var(--bg-hover); } -table.data-table .actions { - display: flex; - gap: 0.35rem; - justify-content: flex-end; - white-space: nowrap; -} - -.badge, .chip { - display: inline-flex; - align-items: center; - gap: 0.25rem; - padding: 0.15rem 0.5rem; - border-radius: 999px; - font-size: 12px; - font-weight: 500; - background: var(--bg-muted); - color: var(--text-secondary); - border: 1px solid transparent; -} -.badge-success, .chip-success { background: var(--success-soft); color: var(--success); } -.badge-warning, .chip-warning { background: var(--warning-soft); color: var(--warning); } -.badge-danger, .chip-danger { background: var(--danger-soft); color: var(--danger); } -.badge-info, .chip-info { background: var(--info-soft); color: var(--info); } -.badge-accent { background: var(--accent-soft); color: var(--accent); } - -.avatar { - width: 32px; height: 32px; - border-radius: 50%; - background: linear-gradient(135deg, var(--accent), #7c3aed); - color: #fff; - display: grid; place-items: center; - font-weight: 700; font-size: 12px; - flex-shrink: 0; -} -.avatar-sm { width: 24px; height: 24px; font-size: 10px; } -.avatar-lg { width: 48px; height: 48px; font-size: 16px; } - -.empty-state, .error-state { - text-align: center; - padding: 2.5rem 1.5rem; - color: var(--text-secondary); -} -.empty-state .icon, .error-state .icon { - font-size: 2rem; - margin-bottom: 0.75rem; - opacity: 0.7; -} -.error-state { color: var(--danger); } - -.spinner { - width: 20px; height: 20px; - border: 2px solid var(--border); - border-top-color: var(--accent); - border-radius: 50%; - animation: spin 0.7s linear infinite; - display: inline-block; -} -.spinner-lg { width: 36px; height: 36px; border-width: 3px; } -@keyframes spin { to { transform: rotate(360deg); } } - -.skeleton { - background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-hover) 50%, var(--bg-muted) 75%); - background-size: 200% 100%; - animation: shimmer 1.2s infinite; - border-radius: 4px; - height: 1em; -} -@keyframes shimmer { - 0% { background-position: 200% 0; } - 100% { background-position: -200% 0; } -} - -.loading-center { - display: grid; - place-items: center; - padding: 3rem; - gap: 0.75rem; - color: var(--text-muted); -} - -/* ─── Modal / Dialog ─────────────────────────────────────────────────────── */ - -.modal-backdrop { - position: fixed; - inset: 0; - z-index: 100; - background: var(--overlay); - display: grid; - place-items: center; - padding: 1rem; - animation: fadeIn 120ms ease; -} -.modal { - width: 100%; - max-width: 480px; - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-lg); - box-shadow: var(--shadow-lg); - max-height: 90vh; - overflow: auto; - animation: slideUp 150ms ease; -} -.modal-lg { max-width: 640px; } -.modal-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 1rem 1.15rem; - border-bottom: 1px solid var(--border-muted); -} -.modal-body { padding: 1.15rem; } -.modal-footer { - display: flex; - justify-content: flex-end; - gap: 0.5rem; - padding: 0.85rem 1.15rem; - border-top: 1px solid var(--border-muted); -} -@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } -@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } - -/* ─── Toast ──────────────────────────────────────────────────────────────── */ - -.toast-stack { - position: fixed; - top: calc(var(--header-h) + 0.75rem); - right: 1rem; - z-index: 200; - display: flex; - flex-direction: column; - gap: 0.5rem; - max-width: 360px; - width: calc(100% - 2rem); - pointer-events: none; -} -.toast { - pointer-events: auto; - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius); - box-shadow: var(--shadow); - padding: 0.75rem 1rem; - display: flex; - gap: 0.65rem; - align-items: flex-start; - animation: slideUp 150ms ease; -} -.toast.success { border-left: 3px solid var(--success); } -.toast.error { border-left: 3px solid var(--danger); } -.toast.info { border-left: 3px solid var(--info); } -.toast.warning { border-left: 3px solid var(--warning); } -.toast .msg { flex: 1; font-size: 13px; } -.toast .close { - background: none; border: none; color: var(--text-muted); padding: 0; - line-height: 1; font-size: 16px; -} - -/* ─── Dropdown / User menu ───────────────────────────────────────────────── */ - -.dropdown { - position: relative; -} -.dropdown-menu { - position: absolute; - right: 0; - top: calc(100% + 0.35rem); - min-width: 200px; - background: var(--bg-elevated); - border: 1px solid var(--border); - border-radius: var(--radius); - box-shadow: var(--shadow); - padding: 0.35rem; - z-index: 60; -} -.dropdown-item { - display: flex; - align-items: center; - gap: 0.5rem; - width: 100%; - padding: 0.5rem 0.7rem; - border: none; - background: transparent; - border-radius: var(--radius-sm); - color: var(--text); - text-align: left; - text-decoration: none; - font-size: 13px; -} -.dropdown-item:hover { - background: var(--bg-hover); - text-decoration: none; -} -.dropdown-divider { - height: 1px; - background: var(--border-muted); - margin: 0.3rem 0; -} - -/* ─── Permission matrix ──────────────────────────────────────────────────── */ - -.perm-group { - margin-bottom: 1.25rem; -} -.perm-group h3 { - font-size: 13px; - text-transform: uppercase; - letter-spacing: 0.04em; - color: var(--text-muted); - margin-bottom: 0.5rem; -} -.perm-list { - display: grid; - gap: 0.35rem; -} -.perm-item { - display: flex; - align-items: flex-start; - gap: 0.75rem; - padding: 0.65rem 0.85rem; - border: 1px solid var(--border-muted); - border-radius: var(--radius-sm); - background: var(--bg-elevated); -} -.perm-item code { color: var(--accent); } - -/* ─── Pagination ─────────────────────────────────────────────────────────── */ - -.pagination { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - flex-wrap: wrap; - padding: 0.75rem 0; - font-size: 13px; - color: var(--text-secondary); -} -.pagination .pages { - display: flex; - gap: 0.25rem; -} - -/* ─── Grid helpers ───────────────────────────────────────────────────────── */ - -.grid-2 { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 1rem; -} -@media (max-width: 800px) { - .grid-2 { grid-template-columns: 1fr; } - .app-shell { - grid-template-columns: 1fr; - grid-template-areas: - "header" - "main"; - } - .app-sidebar { - display: none; - } - .app-shell.mobile-nav-open .app-sidebar { - display: flex; - position: fixed; - top: var(--header-h); - left: 0; bottom: 0; - width: min(280px, 85vw); - z-index: 40; - box-shadow: var(--shadow-lg); - } -} - -.stack { display: flex; flex-direction: column; gap: 0.75rem; } -.row { display: flex; align-items: center; gap: 0.5rem; } -.gap-1 { gap: 0.5rem; } -.mt-1 { margin-top: 0.5rem; } -.mt-2 { margin-top: 1rem; } -.mb-1 { margin-bottom: 0.5rem; } -.mb-2 { margin-bottom: 1rem; } -.text-muted { color: var(--text-muted); } -.text-secondary { color: var(--text-secondary); } -.text-danger { color: var(--danger); } -.text-success { color: var(--success); } -.mono { font-family: var(--mono); font-size: 12px; } -.sr-only { - position: absolute; width: 1px; height: 1px; - padding: 0; margin: -1px; overflow: hidden; - clip: rect(0,0,0,0); border: 0; -} - -/* ─── Alert ──────────────────────────────────────────────────────────────── */ - -.alert { - padding: 0.75rem 1rem; - border-radius: var(--radius-sm); - border: 1px solid var(--border); - margin-bottom: 1rem; - font-size: 13px; -} -.alert-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); } -.alert-success { background: var(--success-soft); border-color: transparent; color: var(--success); } -.alert-warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); } -.alert-info { background: var(--info-soft); border-color: transparent; color: var(--info); } - -/* ─── Token reveal ───────────────────────────────────────────────────────── */ - -.secret-box { - background: var(--bg-muted); - border: 1px dashed var(--border); - border-radius: var(--radius-sm); - padding: 0.75rem; - font-family: var(--mono); - font-size: 12px; - word-break: break-all; - display: flex; - gap: 0.5rem; - align-items: flex-start; -} -.secret-box code { flex: 1; background: none; padding: 0; } - -/* Toggle switch */ -.toggle { - position: relative; - width: 40px; - height: 22px; - background: var(--bg-muted); - border: 1px solid var(--border); - border-radius: 999px; - cursor: pointer; - transition: background var(--transition); - flex-shrink: 0; -} -.toggle.on { - background: var(--accent); - border-color: var(--accent); -} -.toggle::after { - content: ""; - position: absolute; - top: 2px; left: 2px; - width: 16px; height: 16px; - border-radius: 50%; - background: #fff; - transition: transform var(--transition); - box-shadow: var(--shadow-sm); -} -.toggle.on::after { transform: translateX(18px); } diff --git a/ui/dist/index.html b/ui/dist/index.html deleted file mode 100644 index 928b4e2..0000000 --- a/ui/dist/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - nx9-auth - - - - - - -
-
- -
- - - - diff --git a/ui/dist/nx9_auth_ui.js b/ui/dist/nx9_auth_ui.js deleted file mode 100644 index a864603..0000000 --- a/ui/dist/nx9_auth_ui.js +++ /dev/null @@ -1,1723 +0,0 @@ -import { RawInterpreter } from './snippets/dioxus-interpreter-js-53424282ea002554/inline0.js'; -import { setAttributeInner } from './snippets/dioxus-interpreter-js-53424282ea002554/src/js/common.js'; -import { get_select_data } from './snippets/dioxus-web-bf44d47c344f35d0/inline1.js'; -import { WebDioxusChannel } from './snippets/dioxus-web-bf44d47c344f35d0/src/js/eval.js'; -import * as import1 from "./snippets/dioxus-web-bf44d47c344f35d0/inline0.js" - - -export class JSOwner { - static __wrap(ptr) { - const obj = Object.create(JSOwner.prototype); - obj.__wbg_ptr = ptr; - JSOwnerFinalization.register(obj, obj.__wbg_ptr, obj); - return obj; - } - __destroy_into_raw() { - const ptr = this.__wbg_ptr; - this.__wbg_ptr = 0; - JSOwnerFinalization.unregister(this); - return ptr; - } - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_jsowner_free(ptr, 0); - } -} -if (Symbol.dispose) JSOwner.prototype[Symbol.dispose] = JSOwner.prototype.free; -function __wbg_get_imports() { - const import0 = { - __proto__: null, - __wbg_Error_92b29b0548f8b746: function(arg0, arg1) { - const ret = Error(getStringFromWasm0(arg0, arg1)); - return ret; - }, - __wbg_String_b51de6b05a10845b: function(arg0, arg1) { - const ret = String(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) { - const v = arg1; - const ret = typeof(v) === 'bigint' ? v : undefined; - getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }, - __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? v : undefined; - return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; - }, - __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) { - const ret = debugString(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) { - const ret = arg0 in arg1; - return ret; - }, - __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) { - const ret = typeof(arg0) === 'bigint'; - return ret; - }, - __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }, - __wbg___wbindgen_is_object_a27215656b807791: function(arg0) { - const val = arg0; - const ret = typeof(val) === 'object' && val !== null; - return ret; - }, - __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) { - const ret = typeof(arg0) === 'string'; - return ret; - }, - __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) { - const ret = arg0 === undefined; - return ret; - }, - __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) { - const ret = arg0 === arg1; - return ret; - }, - __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) { - const ret = arg0 == arg1; - return ret; - }, - __wbg___wbindgen_memory_de265df8aadd6273: function() { - const ret = wasm.memory; - return ret; - }, - __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }, - __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }, - __wbg__wbg_cb_unref_fffb441def202758: function(arg0) { - arg0._wbg_cb_unref(); - }, - __wbg_abort_8bae0f33e7833997: function(arg0) { - arg0.abort(); - }, - __wbg_abort_eee9248a6d680839: function(arg0, arg1) { - arg0.abort(arg1); - }, - __wbg_addEventListener_d85450ee1320c989: function() { return handleError(function (arg0, arg1, arg2, arg3) { - arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3); - }, arguments); }, - __wbg_altKey_50f830d1793a2eea: function(arg0) { - const ret = arg0.altKey; - return ret; - }, - __wbg_altKey_c5e44fde6beb66ef: function(arg0) { - const ret = arg0.altKey; - return ret; - }, - __wbg_altKey_f3e24c4c9cfcf271: function(arg0) { - const ret = arg0.altKey; - return ret; - }, - __wbg_animationName_e80680fbfd3da8a2: function(arg0, arg1) { - const ret = arg1.animationName; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_appendChild_f553e8704c4f14a6: function() { return handleError(function (arg0, arg1) { - const ret = arg0.appendChild(arg1); - return ret; - }, arguments); }, - __wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_back_939cbdbdfad8aff7: function() { return handleError(function (arg0) { - arg0.back(); - }, arguments); }, - __wbg_blockSize_5af477b962b2b031: function(arg0) { - const ret = arg0.blockSize; - return ret; - }, - __wbg_blur_e902dcc79406e89c: function() { return handleError(function (arg0) { - arg0.blur(); - }, arguments); }, - __wbg_borderBoxSize_ff7f5405dcc6554e: function(arg0) { - const ret = arg0.borderBoxSize; - return ret; - }, - __wbg_boundingClientRect_0776888095b16b8c: function(arg0) { - const ret = arg0.boundingClientRect; - return ret; - }, - __wbg_bubbles_07bec919f30033ab: function(arg0) { - const ret = arg0.bubbles; - return ret; - }, - __wbg_button_f6a9a7b725f1838e: function(arg0) { - const ret = arg0.button; - return ret; - }, - __wbg_buttons_d8acd46cf8f40ae9: function(arg0) { - const ret = arg0.buttons; - return ret; - }, - __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) { - const ret = arg0.call(arg1); - return ret; - }, arguments); }, - __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.call(arg1, arg2); - return ret; - }, arguments); }, - __wbg_changedTouches_dbf6eeabddd3c2da: function(arg0) { - const ret = arg0.changedTouches; - return ret; - }, - __wbg_charCodeAt_2a30bc7c17474cc6: function(arg0, arg1) { - const ret = arg0.charCodeAt(arg1 >>> 0); - return ret; - }, - __wbg_checked_596d0d7b35f55a01: function(arg0) { - const ret = arg0.checked; - return ret; - }, - __wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) { - const ret = clearTimeout(arg0); - return ret; - }, - __wbg_clientX_a7dcb4081126cd4b: function(arg0) { - const ret = arg0.clientX; - return ret; - }, - __wbg_clientX_c396b0fb11d601d3: function(arg0) { - const ret = arg0.clientX; - return ret; - }, - __wbg_clientY_a4650836fdf58f01: function(arg0) { - const ret = arg0.clientY; - return ret; - }, - __wbg_clientY_c0560910b20ee192: function(arg0) { - const ret = arg0.clientY; - return ret; - }, - __wbg_clipboard_cc7335fcba1a9a80: function(arg0) { - const ret = arg0.clipboard; - return ret; - }, - __wbg_code_89c999e407c79eef: function(arg0, arg1) { - const ret = arg1.code; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_contentBoxSize_74fbbc51859ff90e: function(arg0) { - const ret = arg0.contentBoxSize; - return ret; - }, - __wbg_createComment_003419d0740789d4: function(arg0, arg1, arg2) { - const ret = arg0.createComment(getStringFromWasm0(arg1, arg2)); - return ret; - }, - __wbg_createElementNS_013b3fb26f4796ec: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - const ret = arg0.createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - return ret; - }, arguments); }, - __wbg_createElement_fcbc0805de826d62: function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); - return ret; - }, arguments); }, - __wbg_createTextNode_4dad5b18435dda7c: function(arg0, arg1, arg2) { - const ret = arg0.createTextNode(getStringFromWasm0(arg1, arg2)); - return ret; - }, - __wbg_ctrlKey_2e52816fa7160097: function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }, - __wbg_ctrlKey_50bd8324959ca786: function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }, - __wbg_ctrlKey_57171169eab54da6: function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }, - __wbg_dataTransfer_c1c4745cee7e05f1: function(arg0) { - const ret = arg0.dataTransfer; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_data_f994b1bb75d8337a: function(arg0, arg1) { - const ret = arg1.data; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_deltaMode_d869228efd74f393: function(arg0) { - const ret = arg0.deltaMode; - return ret; - }, - __wbg_deltaX_5d829ffba565ed10: function(arg0) { - const ret = arg0.deltaX; - return ret; - }, - __wbg_deltaY_6cfce8f8da250c23: function(arg0) { - const ret = arg0.deltaY; - return ret; - }, - __wbg_deltaZ_42c86f225c34aa04: function(arg0) { - const ret = arg0.deltaZ; - return ret; - }, - __wbg_detail_a90dcd774780ebf6: function(arg0) { - const ret = arg0.detail; - return ret; - }, - __wbg_documentElement_b7ec99417969bfbc: function(arg0) { - const ret = arg0.documentElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_document_179650d6cb13c263: function(arg0) { - const ret = arg0.document; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_done_89b2b13e91a60321: function(arg0) { - const ret = arg0.done; - return ret; - }, - __wbg_elapsedTime_0330f570ff694c6f: function(arg0) { - const ret = arg0.elapsedTime; - return ret; - }, - __wbg_elapsedTime_4c2a1fd1473438d6: function(arg0) { - const ret = arg0.elapsedTime; - return ret; - }, - __wbg_entries_00d7283394649868: function(arg0) { - const ret = arg0.entries(); - return ret; - }, - __wbg_entries_015dc610cd81ede0: function(arg0) { - const ret = Object.entries(arg0); - return ret; - }, - __wbg_error_657700d53a73881f: function(arg0, arg1, arg2, arg3) { - console.error(arg0, arg1, arg2, arg3); - }, - __wbg_error_744744ff0c9861e6: function(arg0) { - console.error(arg0); - }, - __wbg_error_7ed559cd7146b49d: function(arg0, arg1) { - console.error(arg0, arg1); - }, - __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_fetch_9dad4fe911207b37: function(arg0) { - const ret = fetch(arg0); - return ret; - }, - __wbg_fetch_b5951fc96f52f786: function(arg0, arg1) { - const ret = arg0.fetch(arg1); - return ret; - }, - __wbg_files_116196bc012ac3c8: function(arg0) { - const ret = arg0.files; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_files_a4eb87e5e4343c46: function(arg0) { - const ret = arg0.files; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_focus_2f77051f98540625: function() { return handleError(function (arg0) { - arg0.focus(); - }, arguments); }, - __wbg_force_368c1897f399d783: function(arg0) { - const ret = arg0.force; - return ret; - }, - __wbg_forward_4bb54c7f45451c64: function() { return handleError(function (arg0) { - arg0.forward(); - }, arguments); }, - __wbg_getAttribute_5a601ba4718b922a: function(arg0, arg1, arg2, arg3) { - const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3)); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_getBoundingClientRect_e828e6c31c66dea6: function(arg0) { - const ret = arg0.getBoundingClientRect(); - return ret; - }, - __wbg_getElementById_1cbd8f06dbe8eb8e: function(arg0, arg1, arg2) { - const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_getItem_b96269ddc16cf24a: function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getItem(getStringFromWasm0(arg2, arg3)); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_getNode_e4cbd5b2e3a6ab5a: function(arg0, arg1) { - const ret = arg0.getNode(arg1 >>> 0); - return ret; - }, - __wbg_get_507a50627bffa49b: function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return ret; - }, - __wbg_get_757c867e2520bbc4: function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) { - const ret = Reflect.get(arg0, arg1); - return ret; - }, arguments); }, - __wbg_get_select_data_473a79351dba5d30: function(arg0, arg1) { - const ret = get_select_data(arg1); - const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return ret; - }, - __wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) { - const ret = Reflect.has(arg0, arg1); - return ret; - }, arguments); }, - __wbg_hash_508149c4291ec8c2: function() { return handleError(function (arg0, arg1) { - const ret = arg1.hash; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_headers_cf9c80f30e2a4eff: function(arg0) { - const ret = arg0.headers; - return ret; - }, - __wbg_height_6f29ab40ae50636d: function(arg0) { - const ret = arg0.height; - return ret; - }, - __wbg_height_96c07d9559d0200a: function(arg0) { - const ret = arg0.height; - return ret; - }, - __wbg_height_9f27216001e3c804: function(arg0) { - const ret = arg0.height; - return ret; - }, - __wbg_history_e648b4314d9b256e: function() { return handleError(function (arg0) { - const ret = arg0.history; - return ret; - }, arguments); }, - __wbg_identifier_d30bb260fab6b02a: function(arg0) { - const ret = arg0.identifier; - return ret; - }, - __wbg_initialize_a21339c1084649a0: function(arg0, arg1, arg2) { - arg0.initialize(arg1, arg2); - }, - __wbg_inlineSize_3c8412828bef21eb: function(arg0) { - const ret = arg0.inlineSize; - return ret; - }, - __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) { - let result; - try { - result = arg0 instanceof ArrayBuffer; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_DragEvent_7bd2cb4c087838f2: function(arg0) { - let result; - try { - result = arg0 instanceof DragEvent; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Element_beebfaab75d12d9d: function(arg0) { - let result; - try { - result = arg0 instanceof Element; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) { - let result; - try { - result = arg0 instanceof Error; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_HtmlElement_4493a09212d3586f: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_HtmlFormElement_ebf2bd35b418e93e: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLFormElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_HtmlInputElement_ad3be04339d0e4df: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLInputElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_HtmlSelectElement_b4698f847dc49da5: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLSelectElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_HtmlTextAreaElement_37795f65e16b7ed0: function(arg0) { - let result; - try { - result = arg0 instanceof HTMLTextAreaElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Node_d29e7ded486fd76a: function(arg0) { - let result; - try { - result = arg0 instanceof Node; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) { - let result; - try { - result = arg0 instanceof Response; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) { - let result; - try { - result = arg0 instanceof Uint8Array; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_instanceof_Window_05ba1ee4f6781663: function(arg0) { - let result; - try { - result = arg0 instanceof Window; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }, - __wbg_intersectionRatio_7c65292cc5ad712c: function(arg0) { - const ret = arg0.intersectionRatio; - return ret; - }, - __wbg_intersectionRect_be1020a3be2ed245: function(arg0) { - const ret = arg0.intersectionRect; - return ret; - }, - __wbg_isArray_0677c962b281d01a: function(arg0) { - const ret = Array.isArray(arg0); - return ret; - }, - __wbg_isComposing_919a0fdf6ac030c9: function(arg0) { - const ret = arg0.isComposing; - return ret; - }, - __wbg_isIntersecting_fc6d9529a49c5d62: function(arg0) { - const ret = arg0.isIntersecting; - return ret; - }, - __wbg_isPrimary_e59b27f91017e844: function(arg0) { - const ret = arg0.isPrimary; - return ret; - }, - __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) { - const ret = Number.isSafeInteger(arg0); - return ret; - }, - __wbg_item_74998074fc497f92: function(arg0, arg1) { - const ret = arg0.item(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_iterator_6f722e4a93058b71: function() { - const ret = Symbol.iterator; - return ret; - }, - __wbg_key_803dca86cdcfa8dd: function(arg0, arg1) { - const ret = arg1.key; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_left_7e76a74d0db1754f: function(arg0) { - const ret = arg0.left; - return ret; - }, - __wbg_length_02c64e687322fa34: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_1f0964f4a5e2c6d8: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_370319915dc99107: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_eea4bfa35e75c87c: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_length_ef21514bf74fe712: function(arg0) { - const ret = arg0.length; - return ret; - }, - __wbg_localStorage_5bf6ce3f8e51412a: function() { return handleError(function (arg0) { - const ret = arg0.localStorage; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_location_8f24df2c257fb974: function(arg0) { - const ret = arg0.location; - return ret; - }, - __wbg_location_c9a2271428996698: function(arg0) { - const ret = arg0.location; - return ret; - }, - __wbg_log_0c201ade58bb55e1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_log_ce2c4456b290c5e7: function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.log(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }, - __wbg_mark_b4d943f3bc2d2404: function(arg0, arg1) { - performance.mark(getStringFromWasm0(arg0, arg1)); - }, - __wbg_measure_84362959e621a2c1: function() { return handleError(function (arg0, arg1, arg2, arg3) { - let deferred0_0; - let deferred0_1; - let deferred1_0; - let deferred1_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - deferred1_0 = arg2; - deferred1_1 = arg3; - performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); - } - }, arguments); }, - __wbg_message_8326fb1d549bebc5: function(arg0) { - const ret = arg0.message; - return ret; - }, - __wbg_metaKey_7a85debd51844822: function(arg0) { - const ret = arg0.metaKey; - return ret; - }, - __wbg_metaKey_d961c7572a9f84f5: function(arg0) { - const ret = arg0.metaKey; - return ret; - }, - __wbg_metaKey_f934f09e37889d70: function(arg0) { - const ret = arg0.metaKey; - return ret; - }, - __wbg_name_b0b4809690944614: function(arg0) { - const ret = arg0.name; - return ret; - }, - __wbg_name_d7d79f5466e37447: function(arg0, arg1) { - const ret = arg1.name; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_navigator_99621db14b3f1099: function(arg0) { - const ret = arg0.navigator; - return ret; - }, - __wbg_new_0d809930cd1354c6: function() { return handleError(function () { - const ret = new Headers(); - return ret; - }, arguments); }, - __wbg_new_227d7c05414eb861: function() { - const ret = new Error(); - return ret; - }, - __wbg_new_32b398fb48b6d94a: function() { - const ret = new Array(); - return ret; - }, - __wbg_new_372ce3c2fa948cf0: function(arg0) { - const ret = new RawInterpreter(arg0 >>> 0); - return ret; - }, - __wbg_new_41e6f99b2fd20423: function() { return handleError(function () { - const ret = new FileReader(); - return ret; - }, arguments); }, - __wbg_new_4339b2a2675a03e3: function() { return handleError(function () { - const ret = new AbortController(); - return ret; - }, arguments); }, - __wbg_new_7796ffc7ed656783: function() { - const ret = new Map(); - return ret; - }, - __wbg_new_8fa6587d8f37e50d: function(arg0) { - const ret = new WebDioxusChannel(JSOwner.__wrap(arg0)); - return ret; - }, - __wbg_new_cd45aabdf6073e84: function(arg0) { - const ret = new Uint8Array(arg0); - return ret; - }, - __wbg_new_da52cf8fe3429cb2: function() { - const ret = new Object(); - return ret; - }, - __wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) { - const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); - return ret; - }, - __wbg_new_with_args_200d82645b6544eb: function(arg0, arg1, arg2, arg3) { - const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3)); - return ret; - }, - __wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) { - const ret = new Request(getStringFromWasm0(arg0, arg1), arg2); - return ret; - }, arguments); }, - __wbg_next_6dbf2c0ac8cde20f: function(arg0) { - const ret = arg0.next; - return ret; - }, - __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) { - const ret = arg0.next(); - return ret; - }, arguments); }, - __wbg_offsetX_fdc5eb20edabaadb: function(arg0) { - const ret = arg0.offsetX; - return ret; - }, - __wbg_offsetY_0a05e99022d21c5b: function(arg0) { - const ret = arg0.offsetY; - return ret; - }, - __wbg_origin_ed66c06e67ad2049: function() { return handleError(function (arg0, arg1) { - const ret = arg1.origin; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_ownerDocument_5a7a5473f8709b3e: function(arg0) { - const ret = arg0.ownerDocument; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_pageX_56e23ef1ade65aa7: function(arg0) { - const ret = arg0.pageX; - return ret; - }, - __wbg_pageX_9c5f057472795ea1: function(arg0) { - const ret = arg0.pageX; - return ret; - }, - __wbg_pageY_12d134258ad141c4: function(arg0) { - const ret = arg0.pageY; - return ret; - }, - __wbg_pageY_d421aa8cfce954d6: function(arg0) { - const ret = arg0.pageY; - return ret; - }, - __wbg_parentElement_5030754e30795652: function(arg0) { - const ret = arg0.parentElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_pathname_d27a358088ce7b2b: function() { return handleError(function (arg0, arg1) { - const ret = arg1.pathname; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_pointerId_ea33d2695be12e7f: function(arg0) { - const ret = arg0.pointerId; - return ret; - }, - __wbg_pointerType_d5e932608aa61bb6: function(arg0, arg1) { - const ret = arg1.pointerType; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_pressure_9a7845d9744ae9f4: function(arg0) { - const ret = arg0.pressure; - return ret; - }, - __wbg_preventDefault_b64888c857500682: function(arg0) { - arg0.preventDefault(); - }, - __wbg_propertyName_835d4a18e8327b10: function(arg0, arg1) { - const ret = arg1.propertyName; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) { - Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); - }, - __wbg_pseudoElement_174adc902d41a1c1: function(arg0, arg1) { - const ret = arg1.pseudoElement; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_pseudoElement_6013088f8877903f: function(arg0, arg1) { - const ret = arg1.pseudoElement; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_pushState_3d01701623122bc8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.pushState(arg1, getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5)); - }, arguments); }, - __wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) { - const ret = arg0.push(arg1); - return ret; - }, - __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) { - const ret = arg0.queueMicrotask; - return ret; - }, - __wbg_queueMicrotask_6a09b7bc46549209: function(arg0) { - queueMicrotask(arg0); - }, - __wbg_radiusX_06f8dad66dfba7a4: function(arg0) { - const ret = arg0.radiusX; - return ret; - }, - __wbg_radiusY_0658ca1fd998f494: function(arg0) { - const ret = arg0.radiusY; - return ret; - }, - __wbg_readAsArrayBuffer_7db0a55c6c3a2b4e: function() { return handleError(function (arg0, arg1) { - arg0.readAsArrayBuffer(arg1); - }, arguments); }, - __wbg_readAsText_a8f6dfc210ba1a8e: function() { return handleError(function (arg0, arg1) { - arg0.readAsText(arg1); - }, arguments); }, - __wbg_removeAttribute_1e7d2c409776d836: function() { return handleError(function (arg0, arg1, arg2) { - arg0.removeAttribute(getStringFromWasm0(arg1, arg2)); - }, arguments); }, - __wbg_removeItem_78e03a38da96e0ae: function() { return handleError(function (arg0, arg1, arg2) { - arg0.removeItem(getStringFromWasm0(arg1, arg2)); - }, arguments); }, - __wbg_repeat_4e131e99bff9b9f4: function(arg0) { - const ret = arg0.repeat; - return ret; - }, - __wbg_replaceState_9a0a4a53d3bf3439: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) { - arg0.replaceState(arg1, getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5)); - }, arguments); }, - __wbg_requestAnimationFrame_1a85deeab66448c2: function() { return handleError(function (arg0, arg1) { - const ret = arg0.requestAnimationFrame(arg1); - return ret; - }, arguments); }, - __wbg_resolve_2191a4dfe481c25b: function(arg0) { - const ret = Promise.resolve(arg0); - return ret; - }, - __wbg_result_53fd7283ffc3cdb8: function() { return handleError(function (arg0) { - const ret = arg0.result; - return ret; - }, arguments); }, - __wbg_rootBounds_f45f30011740fdb2: function(arg0) { - const ret = arg0.rootBounds; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_rotationAngle_d0a0b686498034d7: function(arg0) { - const ret = arg0.rotationAngle; - return ret; - }, - __wbg_run_94b653013f67b6ee: function(arg0) { - arg0.run(); - }, - __wbg_rustRecv_8dcea8222613fb2d: function(arg0) { - const ret = arg0.rustRecv(); - return ret; - }, - __wbg_rustSend_9adbb7c626035edb: function(arg0, arg1) { - arg0.rustSend(arg1); - }, - __wbg_saveTemplate_fac2519b3ae9067e: function(arg0, arg1, arg2, arg3) { - var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice(); - wasm.__wbindgen_free(arg1, arg2 * 4, 4); - arg0.saveTemplate(v0, arg3); - }, - __wbg_screenX_0a3f7a47942676bd: function(arg0) { - const ret = arg0.screenX; - return ret; - }, - __wbg_screenX_bd1fb25d48033c9c: function(arg0) { - const ret = arg0.screenX; - return ret; - }, - __wbg_screenY_30eadec06612b80f: function(arg0) { - const ret = arg0.screenY; - return ret; - }, - __wbg_screenY_7e467250657a3c56: function(arg0) { - const ret = arg0.screenY; - return ret; - }, - __wbg_scrollHeight_8cf19eb16ebc9b9b: function(arg0) { - const ret = arg0.scrollHeight; - return ret; - }, - __wbg_scrollIntoView_d8b806f471b7418e: function(arg0, arg1) { - arg0.scrollIntoView(arg1); - }, - __wbg_scrollLeft_5be50f489b342a09: function(arg0) { - const ret = arg0.scrollLeft; - return ret; - }, - __wbg_scrollTo_cac0dff19f631942: function(arg0, arg1, arg2) { - arg0.scrollTo(arg1, arg2); - }, - __wbg_scrollTop_b3effa9c5de14d21: function(arg0) { - const ret = arg0.scrollTop; - return ret; - }, - __wbg_scrollWidth_38006a7134cdfeff: function(arg0) { - const ret = arg0.scrollWidth; - return ret; - }, - __wbg_scrollX_9da7f7defce2297e: function() { return handleError(function (arg0) { - const ret = arg0.scrollX; - return ret; - }, arguments); }, - __wbg_scrollY_b4c56e98c6d976ad: function() { return handleError(function (arg0) { - const ret = arg0.scrollY; - return ret; - }, arguments); }, - __wbg_search_af2555aa41bd23cc: function() { return handleError(function (arg0, arg1) { - const ret = arg1.search; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments); }, - __wbg_sessionStorage_812615d3ac31fa09: function() { return handleError(function (arg0) { - const ret = arg0.sessionStorage; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments); }, - __wbg_setAttributeInner_f7b6604f435d2990: function(arg0, arg1, arg2, arg3, arg4, arg5) { - setAttributeInner(arg0, getStringFromWasm0(arg1, arg2), arg3, arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5)); - }, - __wbg_setAttribute_71039043be82d098: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_setItem_364a11cf21db9039: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments); }, - __wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) { - const ret = setTimeout(arg0, arg1); - return ret; - }, - __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) { - const ret = arg0.set(arg1, arg2); - return ret; - }, - __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) { - arg0[arg1 >>> 0] = arg2; - }, - __wbg_set_behavior_af2ac621388b739f: function(arg0, arg1) { - arg0.behavior = __wbindgen_enum_ScrollBehavior[arg1]; - }, - __wbg_set_body_029f2d171e0a005f: function(arg0, arg1) { - arg0.body = arg1; - }, - __wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) { - arg0.cache = __wbindgen_enum_RequestCache[arg1]; - }, - __wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) { - arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; - }, - __wbg_set_f071dbb3bd088e0e: function(arg0, arg1, arg2) { - arg0[arg1] = arg2; - }, - __wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) { - arg0.headers = arg1; - }, - __wbg_set_href_960e4284e5cae151: function() { return handleError(function (arg0, arg1, arg2) { - arg0.href = getStringFromWasm0(arg1, arg2); - }, arguments); }, - __wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) { - arg0.method = getStringFromWasm0(arg1, arg2); - }, - __wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) { - arg0.mode = __wbindgen_enum_RequestMode[arg1]; - }, - __wbg_set_onload_4dc1f96725e4138c: function(arg0, arg1) { - arg0.onload = arg1; - }, - __wbg_set_scrollRestoration_29b3e9dc74898bc5: function() { return handleError(function (arg0, arg1) { - arg0.scrollRestoration = __wbindgen_enum_ScrollRestoration[arg1]; - }, arguments); }, - __wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) { - arg0.signal = arg1; - }, - __wbg_shiftKey_42866b295d317445: function(arg0) { - const ret = arg0.shiftKey; - return ret; - }, - __wbg_shiftKey_9bcb8bdd60c2f152: function(arg0) { - const ret = arg0.shiftKey; - return ret; - }, - __wbg_shiftKey_9f797da486b2ade8: function(arg0) { - const ret = arg0.shiftKey; - return ret; - }, - __wbg_signal_dad7cb35193abd31: function(arg0) { - const ret = arg0.signal; - return ret; - }, - __wbg_size_6304a694765921a9: function(arg0) { - const ret = arg0.size; - return ret; - }, - __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) { - const ret = arg1.stack; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_state_edcc5b2da67f07f2: function() { return handleError(function (arg0) { - const ret = arg0.state; - return ret; - }, arguments); }, - __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() { - const ret = typeof global === 'undefined' ? null : global; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() { - const ret = typeof globalThis === 'undefined' ? null : globalThis; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_SELF_146583524fe1469b: function() { - const ret = typeof self === 'undefined' ? null : self; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() { - const ret = typeof window === 'undefined' ? null : window; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_status_c45b3b9b3033184a: function(arg0) { - const ret = arg0.status; - return ret; - }, - __wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) { - const ret = JSON.stringify(arg0); - return ret; - }, arguments); }, - __wbg_tangentialPressure_979a239d3db31d90: function(arg0) { - const ret = arg0.tangentialPressure; - return ret; - }, - __wbg_targetTouches_3e9bdb053b2d5023: function(arg0) { - const ret = arg0.targetTouches; - return ret; - }, - __wbg_target_e759594a8d965ed7: function(arg0) { - const ret = arg0.target; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, - __wbg_textContent_37277f66248f39e6: function(arg0, arg1) { - const ret = arg1.textContent; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) { - const ret = arg0.text(); - return ret; - }, arguments); }, - __wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) { - const ret = arg0.then(arg1, arg2); - return ret; - }, - __wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }, - __wbg_tiltX_1327e8185e612854: function(arg0) { - const ret = arg0.tiltX; - return ret; - }, - __wbg_tiltY_b44744ee36b60a24: function(arg0) { - const ret = arg0.tiltY; - return ret; - }, - __wbg_time_2e33e99ff5e53342: function(arg0) { - const ret = arg0.time; - return ret; - }, - __wbg_toString_bac9199ff382784d: function(arg0) { - const ret = arg0.toString(); - return ret; - }, - __wbg_top_fe120acfa924a430: function(arg0) { - const ret = arg0.top; - return ret; - }, - __wbg_touches_a631c50f1b367753: function(arg0) { - const ret = arg0.touches; - return ret; - }, - __wbg_twist_6cc18194426f8a4f: function(arg0) { - const ret = arg0.twist; - return ret; - }, - __wbg_type_9d13c17ea2611dd0: function(arg0, arg1) { - const ret = arg1.type; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_type_c1987e7fbaf7340e: function(arg0, arg1) { - const ret = arg1.type; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_update_memory_e347a7fdedc3f923: function(arg0, arg1) { - arg0.update_memory(arg1); - }, - __wbg_url_abdb8fb08377f8c0: function(arg0, arg1) { - const ret = arg1.url; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_value_1f687dfa7d6c3d08: function(arg0, arg1) { - const ret = arg1.value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_value_a5d5488a9589444a: function(arg0) { - const ret = arg0.value; - return ret; - }, - __wbg_value_c40f8f7227bb3a9e: function(arg0, arg1) { - const ret = arg1.value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_value_d7621df0105931d8: function(arg0, arg1) { - const ret = arg1.value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, - __wbg_weak_1df2750a32313fd1: function(arg0) { - const ret = arg0.weak(); - return ret; - }, - __wbg_width_16032a5bda5e6fa9: function(arg0) { - const ret = arg0.width; - return ret; - }, - __wbg_width_20c45c895834b83f: function(arg0) { - const ret = arg0.width; - return ret; - }, - __wbg_width_219185400361db86: function(arg0) { - const ret = arg0.width; - return ret; - }, - __wbg_writeText_34bfead2ae78e5bb: function(arg0, arg1, arg2) { - const ret = arg0.writeText(getStringFromWasm0(arg1, arg2)); - return ret; - }, - __wbg_x_71553b4e719d215a: function(arg0) { - const ret = arg0.x; - return ret; - }, - __wbg_y_111b04aa46dc0f86: function(arg0) { - const ret = arg0.y; - return ret; - }, - __wbindgen_cast_0000000000000001: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1790, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___wasm_bindgen_f2b4252bf8142719___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f2b4252bf8142719___JsError___true_); - return ret; - }, - __wbindgen_cast_0000000000000002: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1426, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_); - return ret; - }, - __wbindgen_cast_0000000000000003: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Ref(NamedExternref("Event"))], shim_idx: 1424, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. - const ret = makeClosure(arg0, arg1, wasm_bindgen_f2b4252bf8142719___convert__closures________invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_); - return ret; - }, - __wbindgen_cast_0000000000000004: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true_); - return ret; - }, - __wbindgen_cast_0000000000000005: function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1428, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true__1_); - return ret; - }, - __wbindgen_cast_0000000000000006: function(arg0) { - // Cast intrinsic for `F64 -> Externref`. - const ret = arg0; - return ret; - }, - __wbindgen_cast_0000000000000007: function(arg0) { - // Cast intrinsic for `I64 -> Externref`. - const ret = arg0; - return ret; - }, - __wbindgen_cast_0000000000000008: function(arg0, arg1) { - // Cast intrinsic for `Ref(String) -> Externref`. - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }, - __wbindgen_cast_0000000000000009: function(arg0) { - // Cast intrinsic for `U64 -> Externref`. - const ret = BigInt.asUintN(64, arg0); - return ret; - }, - __wbindgen_init_externref_table: function() { - const table = wasm.__wbindgen_externrefs; - const offset = table.grow(4); - table.set(0, undefined); - table.set(offset + 0, undefined); - table.set(offset + 1, null); - table.set(offset + 2, true); - table.set(offset + 3, false); - }, - }; - return { - __proto__: null, - "./nx9_auth_ui_bg.js": import0, - "./snippets/dioxus-web-bf44d47c344f35d0/inline0.js": import1, - }; -} - -function wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true_(arg0, arg1) { - wasm.wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true_(arg0, arg1); -} - -function wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true__1_(arg0, arg1) { - wasm.wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke_______true__1_(arg0, arg1); -} - -function wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_(arg0, arg1, arg2) { - wasm.wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_(arg0, arg1, arg2); -} - -function wasm_bindgen_f2b4252bf8142719___convert__closures________invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_(arg0, arg1, arg2) { - wasm.wasm_bindgen_f2b4252bf8142719___convert__closures________invoke___web_sys_3092b8d4a093ad6a___features__gen_Event__Event______true_(arg0, arg1, arg2); -} - -function wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___wasm_bindgen_f2b4252bf8142719___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f2b4252bf8142719___JsError___true_(arg0, arg1, arg2) { - const ret = wasm.wasm_bindgen_f2b4252bf8142719___convert__closures_____invoke___wasm_bindgen_f2b4252bf8142719___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f2b4252bf8142719___JsError___true_(arg0, arg1, arg2); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } -} - - -const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"]; - - -const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"]; - - -const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; - - -const __wbindgen_enum_ScrollBehavior = ["auto", "instant", "smooth"]; - - -const __wbindgen_enum_ScrollRestoration = ["auto", "manual"]; -const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr, 1)); - -function addToExternrefTable0(obj) { - const idx = wasm.__externref_table_alloc(); - wasm.__wbindgen_externrefs.set(idx, obj); - return idx; -} - -const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b)); - -function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches && builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -function getArrayJsValueFromWasm0(ptr, len) { - ptr = ptr >>> 0; - const mem = getDataViewMemory0(); - const result = []; - for (let i = ptr; i < ptr + 4 * len; i += 4) { - result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true))); - } - wasm.__externref_drop_slice(ptr, len); - return result; -} - -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} - -let cachedDataViewMemory0 = null; -function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; -} - -function getStringFromWasm0(ptr, len) { - return decodeText(ptr >>> 0, len); -} - -let cachedUint8ArrayMemory0 = null; -function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; -} - -function handleError(f, args) { - try { - return f.apply(this, args); - } catch (e) { - const idx = addToExternrefTable0(e); - wasm.__wbindgen_exn_store(idx); - } -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -function makeClosure(arg0, arg1, f) { - const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - try { - return f(state.a, state.b, ...args); - } finally { - real._wbg_cb_unref(); - } - }; - real._wbg_cb_unref = () => { - if (--state.cnt === 0) { - wasm.__wbindgen_destroy_closure(state.a, state.b); - state.a = 0; - CLOSURE_DTORS.unregister(state); - } - }; - CLOSURE_DTORS.register(real, state, state); - return real; -} - -function makeMutClosure(arg0, arg1, f) { - const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - state.a = a; - real._wbg_cb_unref(); - } - }; - real._wbg_cb_unref = () => { - if (--state.cnt === 0) { - wasm.__wbindgen_destroy_closure(state.a, state.b); - state.a = 0; - CLOSURE_DTORS.unregister(state); - } - }; - CLOSURE_DTORS.register(real, state, state); - return real; -} - -function passArrayJsValueToWasm0(array, malloc) { - const ptr = malloc(array.length * 4, 4) >>> 0; - for (let i = 0; i < array.length; i++) { - const add = addToExternrefTable0(array[i]); - getDataViewMemory0().setUint32(ptr + 4 * i, add, true); - } - WASM_VECTOR_LEN = array.length; - return ptr; -} - -function passStringToWasm0(arg, malloc, realloc) { - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length, 1) >>> 0; - getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len, 1) >>> 0; - - const mem = getUint8ArrayMemory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; - const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = cachedTextEncoder.encodeInto(arg, view); - - offset += ret.written; - ptr = realloc(ptr, len, offset, 1) >>> 0; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -function takeFromExternrefTable0(idx) { - const value = wasm.__wbindgen_externrefs.get(idx); - wasm.__externref_table_dealloc(idx); - return value; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); -cachedTextDecoder.decode(); -const MAX_SAFARI_DECODE_BYTES = 2146435072; -let numBytesDecoded = 0; -function decodeText(ptr, len) { - numBytesDecoded += len; - if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { - cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - cachedTextDecoder.decode(); - numBytesDecoded = len; - } - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); -} - -const cachedTextEncoder = new TextEncoder(); - -if (!('encodeInto' in cachedTextEncoder)) { - cachedTextEncoder.encodeInto = function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; - }; -} - -let WASM_VECTOR_LEN = 0; - -let wasmModule, wasmInstance, wasm; -function __wbg_finalize_init(instance, module) { - wasmInstance = instance; - wasm = instance.exports; - wasmModule = module; - cachedDataViewMemory0 = null; - cachedUint8ArrayMemory0 = null; - wasm.__wbindgen_start(); - return wasm; -} - -async function __wbg_load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - } catch (e) { - const validResponse = module.ok && expectedResponseType(module.type); - - if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { throw e; } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - } else { - return instance; - } - } - - function expectedResponseType(type) { - switch (type) { - case 'basic': case 'cors': case 'default': return true; - } - return false; - } -} - -function initSync(module) { - if (wasm !== undefined) return wasm; - - - if (module !== undefined) { - if (Object.getPrototypeOf(module) === Object.prototype) { - ({module} = module) - } else { - console.warn('using deprecated parameters for `initSync()`; pass a single object instead') - } - } - - const imports = __wbg_get_imports(); - if (!(module instanceof WebAssembly.Module)) { - module = new WebAssembly.Module(module); - } - const instance = new WebAssembly.Instance(module, imports); - return __wbg_finalize_init(instance, module); -} - -async function __wbg_init(module_or_path) { - if (wasm !== undefined) return wasm; - - - if (module_or_path !== undefined) { - if (Object.getPrototypeOf(module_or_path) === Object.prototype) { - ({module_or_path} = module_or_path) - } else { - console.warn('using deprecated parameters for the initialization function; pass a single object instead') - } - } - - if (module_or_path === undefined) { - module_or_path = new URL('nx9_auth_ui_bg.wasm', import.meta.url); - } - const imports = __wbg_get_imports(); - - if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { - module_or_path = fetch(module_or_path); - } - - const { instance, module } = await __wbg_load(await module_or_path, imports); - - return __wbg_finalize_init(instance, module); -} - -export { initSync, __wbg_init as default }; diff --git a/ui/dist/nx9_auth_ui_bg.wasm b/ui/dist/nx9_auth_ui_bg.wasm deleted file mode 100644 index 04525c5..0000000 Binary files a/ui/dist/nx9_auth_ui_bg.wasm and /dev/null differ diff --git a/ui/dist/snippets/dioxus-cli-config-24e80746d3c500cd/inline0.js b/ui/dist/snippets/dioxus-cli-config-24e80746d3c500cd/inline0.js deleted file mode 100644 index 7c972c7..0000000 --- a/ui/dist/snippets/dioxus-cli-config-24e80746d3c500cd/inline0.js +++ /dev/null @@ -1,9 +0,0 @@ - - export function getMetaContents(meta_name) { - const selector = document.querySelector(`meta[name="${meta_name}"]`); - if (!selector) { - return null; - } - return selector.content; - } - \ No newline at end of file diff --git a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/inline0.js b/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/inline0.js deleted file mode 100644 index 322bd31..0000000 --- a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/inline0.js +++ /dev/null @@ -1,222 +0,0 @@ - - function setAttributeInner(node,field,value,ns){if(ns==="style"){node.style.setProperty(field,value);return}if(ns){node.setAttributeNS(ns,field,value);return}switch(field){case"value":if(node.value!==value)node.value=value;break;case"initial_value":node.defaultValue=value;break;case"checked":node.checked=truthy(value);break;case"initial_checked":node.defaultChecked=truthy(value);break;case"selected":node.selected=truthy(value);break;case"initial_selected":node.defaultSelected=truthy(value);break;case"dangerous_inner_html":node.innerHTML=value;break;default:if(!truthy(value)&&isBoolAttr(field))node.removeAttribute(field);else node.setAttribute(field,value)}}var truthy=function(val){return val==="true"||val===!0},isBoolAttr=function(field){switch(field){case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"playsinline":case"readonly":case"required":case"reversed":case"selected":case"truespeed":case"webkitdirectory":return!0;default:return!1}};class BaseInterpreter{global;local;root;handler;resizeObserver;intersectionObserver;nodes;stack;templates;m;constructor(){}initialize(root,handler=null){this.global={},this.local={},this.root=root,this.nodes=[root],this.stack=[root],this.templates={},this.handler=handler,root.setAttribute("data-dioxus-id","0")}handleResizeEvent(entry){const target=entry.target;let event=new CustomEvent("resize",{bubbles:!1,detail:entry});target.dispatchEvent(event)}createResizeObserver(element){if(!this.resizeObserver)this.resizeObserver=new ResizeObserver((entries)=>{for(let entry of entries)this.handleResizeEvent(entry)});this.resizeObserver.observe(element)}removeResizeObserver(element){if(this.resizeObserver)this.resizeObserver.unobserve(element)}handleIntersectionEvent(entry){const target=entry.target;let event=new CustomEvent("visible",{bubbles:!1,detail:entry});target.dispatchEvent(event)}createIntersectionObserver(element){if(!this.intersectionObserver)this.intersectionObserver=new IntersectionObserver((entries)=>{for(let entry of entries)this.handleIntersectionEvent(entry)});this.intersectionObserver.observe(element)}removeIntersectionObserver(element){if(this.intersectionObserver)this.intersectionObserver.unobserve(element)}createListener(event_name,element,bubbles){if(event_name=="resize")this.createResizeObserver(element);else if(event_name=="visible")this.createIntersectionObserver(element);if(bubbles)if(this.global[event_name]===void 0)this.global[event_name]={active:1,callback:this.handler},this.root.addEventListener(event_name,this.handler);else this.global[event_name].active++;else{const id=element.getAttribute("data-dioxus-id");if(!this.local[id])this.local[id]={};element.addEventListener(event_name,this.handler)}}removeListener(element,event_name,bubbles){if(event_name=="resize")this.removeResizeObserver(element);else if(event_name=="visible")this.removeIntersectionObserver(element);else if(bubbles)this.removeBubblingListener(event_name);else this.removeNonBubblingListener(element,event_name)}removeBubblingListener(event_name){if(this.global[event_name].active--,this.global[event_name].active===0)this.root.removeEventListener(event_name,this.global[event_name].callback),delete this.global[event_name]}removeNonBubblingListener(element,event_name){const id=element.getAttribute("data-dioxus-id");if(delete this.local[id][event_name],Object.keys(this.local[id]).length===0)delete this.local[id];element.removeEventListener(event_name,this.handler)}removeAllNonBubblingListeners(element){const id=element.getAttribute("data-dioxus-id");delete this.local[id]}getNode(id){return this.nodes[id]}pushRoot(node){this.stack.push(node)}appendChildren(id,many){const root=this.nodes[id],els=this.stack.splice(this.stack.length-many);for(let k=0;k0;end--)node=node.nextSibling}return node}saveTemplate(nodes,tmpl_id){this.templates[tmpl_id]=nodes}hydrate_node(hydrateNode,ids){const split=hydrateNode.getAttribute("data-node-hydration").split(","),id=ids[parseInt(split[0])];if(this.nodes[id]=hydrateNode,split.length>1){hydrateNode.listening=split.length-1,hydrateNode.setAttribute("data-dioxus-id",id.toString());for(let j=1;j{if(!treeWalker.nextNode())return!1;return treeWalker.currentNode!==nextSibling};while(treeWalker.currentNode){const currentNode=treeWalker.currentNode;if(currentNode.nodeType===Node.COMMENT_NODE){const id=currentNode.textContent,placeholderSplit=id.split("placeholder");if(placeholderSplit.length>1){if(this.nodes[ids[parseInt(placeholderSplit[1])]]=currentNode,!continueToNextNode())break;continue}const textNodeSplit=id.split("node-id");if(textNodeSplit.length>1){let next=currentNode.nextSibling;currentNode.remove();let commentAfterText,textNode;if(next.nodeType===Node.COMMENT_NODE){const newText=next.parentElement.insertBefore(document.createTextNode(""),next);commentAfterText=next,textNode=newText}else textNode=next,commentAfterText=textNode.nextSibling;treeWalker.currentNode=commentAfterText,this.nodes[ids[parseInt(textNodeSplit[1])]]=textNode;let exit=currentNode===under||!continueToNextNode();if(commentAfterText.remove(),exit)break;continue}}if(!continueToNextNode())break}}}setAttributeInner(node,field,value,ns){setAttributeInner(node,field,value,ns)}}export{BaseInterpreter}; - - let bubbles,field,id,many,ns; - export class RawInterpreter extends BaseInterpreter { - constructor(r) { - super(); - this.d=r; - this.m = null; - this.p = null; - this.ls = null; - this.t = null; - this.op = null; - this.e = null; - this.z = null; - this.metaflags = null; - this.u16buf=null;this.u16bufp=null;this.u32buf=null;this.u32bufp=null;this.u8buf=null;this.u8bufp=null;this.attr = []; - this.attr_cache_hit = null; - this.attr_cache_idx; - this.get_attr = function() { - this.attr_cache_idx = this.u8buf[this.u8bufp++]; - if(this.attr_cache_idx & 128){ - this.attr_cache_hit=this.s.substring(this.sp,this.sp+=this.u8buf[this.u8bufp++]); - this.attr[this.attr_cache_idx&4294967167]=this.attr_cache_hit; - return this.attr_cache_hit; - } - else{ - return this.attr[this.attr_cache_idx&4294967167]; - } - };this.el = []; - this.el_cache_hit = null; - this.el_cache_idx; - this.get_el = function() { - this.el_cache_idx = this.u8buf[this.u8bufp++]; - if(this.el_cache_idx & 128){ - this.el_cache_hit=this.s.substring(this.sp,this.sp+=this.u8buf[this.u8bufp++]); - this.el[this.el_cache_idx&4294967167]=this.el_cache_hit; - return this.el_cache_hit; - } - else{ - return this.el[this.el_cache_idx&4294967167]; - } - };this.evt = []; - this.evt_cache_hit = null; - this.evt_cache_idx; - this.get_evt = function() { - this.evt_cache_idx = this.u8buf[this.u8bufp++]; - if(this.evt_cache_idx & 128){ - this.evt_cache_hit=this.s.substring(this.sp,this.sp+=this.u8buf[this.u8bufp++]); - this.evt[this.evt_cache_idx&4294967167]=this.evt_cache_hit; - return this.evt_cache_hit; - } - else{ - return this.evt[this.evt_cache_idx&4294967167]; - } - };this.namespace = []; - this.namespace_cache_hit = null; - this.namespace_cache_idx; - this.get_namespace = function() { - this.namespace_cache_idx = this.u8buf[this.u8bufp++]; - if(this.namespace_cache_idx & 128){ - this.namespace_cache_hit=this.s.substring(this.sp,this.sp+=this.u8buf[this.u8bufp++]); - this.namespace[this.namespace_cache_idx&4294967167]=this.namespace_cache_hit; - return this.namespace_cache_hit; - } - else{ - return this.namespace[this.namespace_cache_idx&4294967167]; - } - };this.ns_cache = []; - this.ns_cache_cache_hit = null; - this.ns_cache_cache_idx; - this.get_ns_cache = function() { - this.ns_cache_cache_idx = this.u8buf[this.u8bufp++]; - if(this.ns_cache_cache_idx & 128){ - this.ns_cache_cache_hit=this.s.substring(this.sp,this.sp+=this.u8buf[this.u8bufp++]); - this.ns_cache[this.ns_cache_cache_idx&4294967167]=this.ns_cache_cache_hit; - return this.ns_cache_cache_hit; - } - else{ - return this.ns_cache[this.ns_cache_cache_idx&4294967167]; - } - };this.s = "";this.lsp = null;this.sp = null;this.sl = null;this.c = new TextDecoder(); - } - - update_memory(b){ - this.m=new DataView(b.buffer) - } - - run(){ - this.metaflags=this.m.getUint32(this.d,true); - if((this.metaflags>>>6)&1){ - this.ls=this.m.getUint32(this.d+6*4,true); - } - this.p=this.ls; - if ((this.metaflags>>>4)&1){ - this.t = this.m.getUint32(this.d+4*4,true); - this.u16buf=new Uint16Array(this.m.buffer,this.t,((this.m.buffer.byteLength-this.t)-(this.m.buffer.byteLength-this.t)%2)/2); - } - this.u16bufp=0;if ((this.metaflags>>>3)&1){ - this.t = this.m.getUint32(this.d+3*4,true); - this.u32buf=new Uint32Array(this.m.buffer,this.t,((this.m.buffer.byteLength-this.t)-(this.m.buffer.byteLength-this.t)%4)/4); - } - this.u32bufp=0;if ((this.metaflags>>>5)&1){ - this.t = this.m.getUint32(this.d+5*4,true); - this.u8buf=new Uint8Array(this.m.buffer,this.t,((this.m.buffer.byteLength-this.t)-(this.m.buffer.byteLength-this.t)%1)/1); - } - this.u8bufp=0;if (this.metaflags&1){ - this.lsp = this.m.getUint32(this.d+1*4,true); - } - if ((this.metaflags>>>2)&1) { - this.sl = this.m.getUint32(this.d+2*4,true); - if ((this.metaflags>>>1)&1) { - this.sp = this.lsp; - this.s = ""; - this.e = this.sp + ((this.sl / 4) | 0) * 4; - while (this.sp < this.e) { - this.t = this.m.getUint32(this.sp, true); - this.s += String.fromCharCode( - this.t & 255, - (this.t & 65280) >> 8, - (this.t & 16711680) >> 16, - this.t >> 24 - ); - this.sp += 4; - } - while (this.sp < this.lsp + this.sl) { - this.s += String.fromCharCode(this.m.getUint8(this.sp++)); - } - } else { - let buffer = new Uint8Array(this.m.buffer, this.lsp, this.sl); - // If the wasm buffer is a shared array buffer, we need to copy the data out before decoding https://github.com/DioxusLabs/dioxus/issues/2589 - // Note: We intentionally don't use instanceof here because SharedArrayBuffer can be created even when SharedArrayBuffer is not defined... - if (this.m.buffer.constructor.name === "SharedArrayBuffer") { - let arrayBuffer = new ArrayBuffer(this.sl); - new Uint8Array(arrayBuffer).set(buffer); - buffer = arrayBuffer; - } - this.s = this.c.decode(buffer); - } - } - this.sp=0; - for(;;){ - this.op=this.m.getUint32(this.p,true); - this.p+=4; - this.z=0; - while(this.z++<4){ - switch(this.op&255){ - case 0:{this.pushRoot(this.nodes[this.u32buf[this.u32bufp++]]);}break;case 1:{this.appendChildren(this.u32buf[this.u32bufp++], this.u16buf[this.u16bufp++]);}break;case 2:{this.stack.pop();}break;case 3:{const root = this.nodes[this.u32buf[this.u32bufp++]]; let els = this.stack.splice(this.stack.length-this.u16buf[this.u16bufp++]); if (root.listening) { this.removeAllNonBubblingListeners(root); } root.replaceWith(...els);}break;case 4:{let node = this.nodes[this.u32buf[this.u32bufp++]];node.after(...this.stack.splice(this.stack.length-this.u16buf[this.u16bufp++]));}break;case 5:{let node = this.nodes[this.u32buf[this.u32bufp++]];node.before(...this.stack.splice(this.stack.length-this.u16buf[this.u16bufp++]));}break;case 6:{let node = this.nodes[this.u32buf[this.u32bufp++]]; if (node !== undefined) { if (node.listening) { this.removeAllNonBubblingListeners(node); } node.remove(); }}break;case 7:{this.stack.push(document.createTextNode(this.s.substring(this.sp,this.sp+=this.u32buf[this.u32bufp++])));}break;case 8:{let node = document.createTextNode(this.s.substring(this.sp,this.sp+=this.u32buf[this.u32bufp++])); this.nodes[this.u32buf[this.u32bufp++]] = node; this.stack.push(node);}break;case 9:{let node = document.createComment('placeholder'); this.stack.push(node); this.nodes[this.u32buf[this.u32bufp++]] = node;}break;case 10:id=this.u32buf[this.u32bufp++]; - const node = this.nodes[id]; - if(node.listening){node.listening += 1;}else{node.listening = 1;} - node.setAttribute('data-dioxus-id', `${id}`); - this.createListener(this.get_evt(), node, this.u8buf[this.u8bufp++]); - break;case 11:{let node = this.nodes[this.u32buf[this.u32bufp++]]; node.listening -= 1; node.removeAttribute('data-dioxus-id'); this.removeListener(node, this.get_evt(), this.u8buf[this.u8bufp++]);}break;case 12:{this.nodes[this.u32buf[this.u32bufp++]].textContent = this.s.substring(this.sp,this.sp+=this.u32buf[this.u32bufp++]);}break;case 13:{let node = this.nodes[this.u32buf[this.u32bufp++]]; this.setAttributeInner(node, this.get_attr(), this.s.substring(this.sp,this.sp+=this.u32buf[this.u32bufp++]), this.get_ns_cache());}break;case 14:field=this.get_attr();ns=this.get_ns_cache();{ - let node = this.nodes[this.u32buf[this.u32bufp++]]; - if (!ns) { - switch (field) { - case "value": - node.value = ""; - node.removeAttribute("value"); - break; - case "checked": - node.checked = false; - break; - case "selected": - node.selected = false; - break; - case "dangerous_inner_html": - node.innerHTML = ""; - break; - default: - node.removeAttribute(field); - break; - } - } else if (ns == "style") { - node.style.removeProperty(field); - } else { - node.removeAttributeNS(ns, field); - } - }break;case 15:{this.nodes[this.u32buf[this.u32bufp++]] = this.loadChild(this.u32buf[this.u32bufp++], this.u8buf[this.u8bufp++]);}break;case 16:{let els = this.stack.splice(this.stack.length - this.u16buf[this.u16bufp++]); let node = this.loadChild(this.u32buf[this.u32bufp++], this.u8buf[this.u8bufp++]); node.replaceWith(...els);}break;case 17:{let node = this.templates[this.u16buf[this.u16bufp++]][this.u16buf[this.u16bufp++]].cloneNode(true); this.nodes[this.u32buf[this.u32bufp++]] = node; this.stack.push(node);}break;case 18:many=this.u16buf[this.u16bufp++];{ - let root = this.stack[this.stack.length-many-1]; - let els = this.stack.splice(this.stack.length-many); - for (let k = 0; k < many; k++) { - root.appendChild(els[k]); - } - }break;case 19:{this.setAttributeInner(this.stack[this.stack.length-1], this.get_attr(), this.s.substring(this.sp,this.sp+=this.u32buf[this.u32bufp++]), this.get_ns_cache());}break;case 20:{let node = document.createComment('placeholder'); this.stack.push(node);}break;case 21:{this.stack.push(document.createElement(this.get_el()))}break;case 22:{this.stack.push(document.createElementNS(this.get_namespace(), this.get_el()))}break;case 23:{this.templates[this.u16buf[this.u16bufp++]] = this.stack.splice(this.stack.length-this.u16buf[this.u16bufp++]);}break;case 24:id=this.u32buf[this.u32bufp++];bubbles=this.u8buf[this.u8bufp++]; - bubbles = bubbles == 1; - let this_node = this.nodes[id]; - if(this_node.listening){ - this_node.listening += 1; - } else { - this_node.listening = 1; - } - this_node.setAttribute('data-dioxus-id', `${id}`); - const event_name = this.get_evt(); - - // if this is a mounted listener, we send the event immediately - if (event_name === "mounted") { - window.ipc.postMessage( - this.sendSerializedEvent({ - name: event_name, - element: id, - data: null, - bubbles, - }) - ); - } else { - this.createListener(event_name, this_node, bubbles, (event) => { - this.handler(event, event_name, bubbles); - }); - }break;case 25:{this.nodes[this.u32buf[this.u32bufp++]] = this.loadChild((()=>{this.e=this.u8bufp+this.u32buf[this.u32bufp++];const final_array = this.u8buf.slice(this.u8bufp,this.e);this.u8bufp=this.e;return final_array;})());}break;case 26:{let els = this.stack.splice(this.stack.length - this.u16buf[this.u16bufp++]); let node = this.loadChild((()=>{this.e=this.u8bufp+this.u32buf[this.u32bufp++];const final_array = this.u8buf.slice(this.u8bufp,this.e);this.u8bufp=this.e;return final_array;})()); node.replaceWith(...els);}break;case 27:return true; - } - this.op>>>=8; - } - } - } - - run_from_bytes(bytes){ - this.d = 0; - this.update_memory(new Uint8Array(bytes)) - this.run() - } - } \ No newline at end of file diff --git a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/common.js b/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/common.js deleted file mode 100644 index 9b3af6c..0000000 --- a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/common.js +++ /dev/null @@ -1 +0,0 @@ -function setAttributeInner(node,field,value,ns){if(ns==="style"){node.style.setProperty(field,value);return}if(ns){node.setAttributeNS(ns,field,value);return}switch(field){case"value":if(node.value!==value)node.value=value;break;case"initial_value":node.defaultValue=value;break;case"checked":node.checked=truthy(value);break;case"initial_checked":node.defaultChecked=truthy(value);break;case"selected":node.selected=truthy(value);break;case"initial_selected":node.defaultSelected=truthy(value);break;case"dangerous_inner_html":node.innerHTML=value;break;default:if(!truthy(value)&&isBoolAttr(field))node.removeAttribute(field);else node.setAttribute(field,value)}}var truthy=function(val){return val==="true"||val===!0},isBoolAttr=function(field){switch(field){case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"playsinline":case"readonly":case"required":case"reversed":case"selected":case"truespeed":case"webkitdirectory":return!0;default:return!1}};function retrieveFormValues(form){const formData=new FormData(form),contents={};return formData.forEach((value,key)=>{if(contents[key])contents[key].push(value);else contents[key]=[value]}),{valid:form.checkValidity(),values:contents}}export{setAttributeInner,retrieveFormValues}; diff --git a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/hydrate.js b/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/hydrate.js deleted file mode 100644 index 1475a24..0000000 --- a/ui/dist/snippets/dioxus-interpreter-js-53424282ea002554/src/js/hydrate.js +++ /dev/null @@ -1 +0,0 @@ -function register_rehydrate_chunk_for_streaming(callback){return register_rehydrate_chunk_for_streaming_debug(callback)}function register_rehydrate_chunk_for_streaming_debug(callback){window.hydration_callback=callback;for(let i=0;i0){this.waiting.shift()(data);return}this.pending.push(data)}async recv(){return new Promise((resolve,_reject)=>{if(this.pending.length>0){resolve(this.pending.shift());return}this.waiting.push(resolve)})}}class WeakDioxusChannel{inner;constructor(channel){this.inner=new WeakRef(channel)}rustSend(data){let channel=this.inner.deref();if(channel)channel.rustSend(data)}async rustRecv(){let channel=this.inner.deref();if(channel)return await channel.rustRecv()}}class DioxusChannel{weak(){return new WeakDioxusChannel(this)}}class WebDioxusChannel extends DioxusChannel{js_to_rust;rust_to_js;owner;constructor(owner){super();this.owner=owner,this.js_to_rust=new Channel,this.rust_to_js=new Channel}weak(){return new WeakDioxusChannel(this)}async recv(){return await this.rust_to_js.recv()}send(data){this.js_to_rust.send(data)}rustSend(data){this.rust_to_js.send(data)}async rustRecv(){return await this.js_to_rust.recv()}}export{WebDioxusChannel};