<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ray Fajar on Medium]]></title>
        <description><![CDATA[Stories by Ray Fajar on Medium]]></description>
        <link>https://medium.com/@rayfajars?source=rss-ecbc0098471a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NkAgP01BqjSKQCDN</url>
            <title>Stories by Ray Fajar on Medium</title>
            <link>https://medium.com/@rayfajars?source=rss-ecbc0098471a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:11:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rayfajars/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fullstack with Nuxt]]></title>
            <link>https://medium.com/@rayfajars/fullstack-with-nuxt-b95fdfa74bfd?source=rss-ecbc0098471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b95fdfa74bfd</guid>
            <category><![CDATA[nuxthub]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <dc:creator><![CDATA[Ray Fajar]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 14:10:44 GMT</pubDate>
            <atom:updated>2026-09-26T14:10:44.018Z</atom:updated>
            <content:encoded><![CDATA[<p>Sebagai Vue &amp; Nuxt enthusiast wkwk, akhirnya my framework favorit bisa fullstack juga. Biasanya kalau fullstack, lari ke Laravel, Codeigniter, atau pernah juga Express, dan sekarang lagi nyobain pakai Golang sebagai Backend nya. Nuxt-nya sendiri cuma kebagian frontend tok. Nuxt sekarang ternyata bisa jadi Fullstack, dengan menggunakan NuxtHub.</p><h3>NuxtHub</h3><p><strong>NuxtHub</strong> adalah platform backend <em>full-stack</em> yang dibangun langsung di atas ekosistem Nuxt untuk menyederhanakan pembuatan aplikasi web modern tanpa terikat pada satu penyedia infrastruktur (<em>cloud vendor lock-in</em>).</p><p>Arsitekturnya memanfaatkan fondasi dasar Nuxt, khususnya <strong>Nitro</strong> (server engine), <strong>unstorage</strong> (layer penyimpanan universal), dan <strong>db0</strong> (layer database agnostic). Berkat pendekatan ini, kode backend yang ditulis di NuxtHub dapat berjalan di berbagai lingkungan cloud seperti Cloudflare, Vercel, Netlify, AWS, hingga server mandiri (<em>self-hosted</em>) tanpa perlu mengubah logika aplikasi.</p><h3>Fitur Utama</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8z5Nb4p71TDO_789aBlLg.png" /></figure><ul><li><strong>SQL Database</strong></li></ul><p>Menyediakan integrasi database relasional bawaan (berbasis db0). Pengembang bisa melakukan <em>query</em>, migrasi <em>schema</em>, dan manipulasi data langsung dari fungsi server Nuxt tanpa setup konektor database yang rumit.</p><ul><li><strong>Blob Storage</strong></li></ul><p>Penyimpanan objek untuk aset media seperti gambar, video, atau dokumen. Fitur ini mempermudah proses unggah (<em>upload</em>) dan penyajian media secara otomatis lewat API seragam.</p><ul><li><strong>Cache &amp; Key-Value System</strong></li></ul><p>Sistem <em>caching</em> berkinerja tinggi yang dibangun dengan unstorage. Fitur ini digunakan untuk menyimpan sesi pengguna, mempercepat pemuatan API route, <em>render</em> halaman Nuxt, atau menyimpan data sementara secara efisien.</p><h3>A. Setup Project</h3><ol><li>Init Project</li></ol><pre>npx nuxi@latest init FullstackNuxtHub</pre><pre>cd FullstackNuxtHub<br>npm install</pre><p>2. Add &amp; Config NuxtHub</p><pre>npx nuxi module add hub</pre><p>Config optionsnuxt.config.ts :</p><pre>export default defineNuxtConfig({<br>  modules: [&#39;@nuxthub/core&#39;],<br>  hub: {<br>    // NuxtHub options<br>  }<br>})</pre><p>3. Setup Nuxt SQL Database</p><p>NuxtHub menyediakan integrasi database SQL berbasis <a href="https://orm.drizzle.team/?utm_source=gemini">Drizzle ORM</a> untuk Nuxt. Fitur ini mendukung PostgreSQL, MySQL, dan SQLite dengan kemampuan <em>smart driver detection</em> dan migrasi otomatis saat <em>build</em>.</p><pre>//PostgresSQL<br>pnpm install drizzle-orm drizzle-kit postgres @electric-sql/pglite<br><br>//MySQL<br>pnpm add drizzle-orm drizzle-kit mysql2<br><br>//SQLLite<br>pnpm add drizzle-orm drizzle-kit @libsql/client</pre><p>Aktifkan opsi db pada nuxt.config.ts:</p><pre>export default defineNuxtConfig({<br>  modules: [&#39;@nuxthub/core&#39;],<br>  hub: {<br>    db: &#39;postgresql&#39; // Pilihan: &#39;postgresql&#39; | &#39;mysql&#39; | &#39;sqlite&#39;<br>  }<br>})</pre><p>NuxtHub secara otomatis mendeteksi koneksi database menggunakan <em>environment variables</em>:</p><ul><li><strong>Lokal (tanpa env variable):</strong> Otomatis menggunakan PGlite (embedded PostgreSQL) atau file SQLite lokal di .data/db/sqlite.db.</li><li><strong>Production:</strong> Otomatis membaca DATABASE_URL atau POSTGRES_URL untuk terhubung ke database luar.</li></ul><p>4. Definisikan Schema Database</p><p>Buat file schema di server/db/schema.ts menggunakan Drizzle ORM:</p><pre>import { pgTable, text, serial, timestamp } from &#39;drizzle-orm/pg-core&#39;<br><br>export const users = pgTable(&#39;users&#39;, {<br>  id: serial().primaryKey(),<br>  name: text().notNull(),<br>  email: text().notNull().unique(),<br>  phone: text(),<br>  avatar: text().notNull(),<br>  createdAt: timestamp().notNull().defaultNow(),<br>})</pre><p>5. Generate Migration Files</p><pre>npx nuxt db generate</pre><p>Perintah ini akan membaca file schema.ts lalu membuat file migrasi .sql baru di folder server/db/migrations/postgresql/.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYiVdvENXwVO7OZLzTXi5Q.png" /></figure><blockquote><strong><em>Catatan:</em></strong><em> Perintah </em><em>generate </em><strong><em>hanya membuat file SQL</em></strong><em>, belum mengubah struktur tabel apa pun di database.</em></blockquote><p>6. Jalankan Migrasi ke Database</p><pre>npx nuxt db migrate</pre><p>Perintah inilah yang mengeksekusi script SQL ke database asli sehingga struktur tabel benar-benar terbarui.</p><blockquote><strong>npx nuxt db generate</strong> → hanya membuat file SQL dari <em>schema</em>. <strong>Belum</strong> ngubah isi database.</blockquote><blockquote><strong>npx nuxt db migrate</strong> → Eksekusi file SQL untuk mengubah isi database secara manual.</blockquote><blockquote><strong>npm run dev</strong> → Saat <em>local development</em>, NuxtHub secara otomatis bakal menjalankan migrasi saat server <em>dev</em> dinyalakan.</blockquote><p>Custom Migration &amp; Bug di NuxtHub 0.10.8</p><p>Secara standar, cukup menjalankan:</p><pre>npx nuxt db generate --custom --name nama_migrasi</pre><p>Pada versi 0.10.8, perintah nuxt db generate --custom mengalami kendala/bug saat dijalankan.</p><p>Solusi sementara bisa buat migrasi kustom menggunakan drizzle-kit langsung dengan memanfaatkan konfigurasi dari NuxtHub:</p><pre>npx drizzle-kit generate --config=./.nuxt/hub/db/drizzle.config.ts --custom --name nama_migrasi</pre><p>Setelah perintah di atas menghasilkan file migrasi .sql . Buka file .sql baru yang terbentuk di folder server/db/migrations/, lalu tulis query SQL kustom dan eksekusi migrasi seperti biasa.</p><h3>B. Create CRUD API</h3><p>Setelah schema + migration siap, giliran API. Di Nuxt, API route di simpan di server/api/. Satu file = satu endpoint atau satu method, jika menggunakan convention (index.get.ts, index.post.ts, dst).</p><p>Di FullstackNuxtHub, CRUD users disimpan diserver/api/users/:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*WBU-TTG9aSntbdN6BXEmdA.png" /></figure><ul><li>GET /api/users → list semua user (index.get.ts)</li><li>POST /api/users → create (index.post.ts)</li><li>GET /api/users/:id → detail ([id].get.ts)</li><li>PUT /api/users/:id → update ([id].put.ts)</li><li>DELETE /api/users/:id → delete ([id].delete.ts)</li></ul><p>Semua query menggunakandb + schema dari @nuxthub/db (Drizzle). Filter by id menggunakaneq dari drizzle-orm dan setiap endpoint selalu mengirimkan message error.</p><h4>1. List users (GET)</h4><p>File: server/api/users/index.get.ts</p><pre>import { db, schema } from &#39;@nuxthub/db&#39;<br>import { eq } from &#39;drizzle-orm&#39;<br><br>export default eventHandler(async (event) =&gt; {<br>  const id = Number(getRouterParam(event, &#39;id&#39;))<br>  if (!Number.isFinite(id) || id &lt;= 0) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;invalid id&#39; })<br>  }<br><br>  const [user] = await db.select().from(schema.users).where(eq(schema.users.id, id)).limit(1)<br>  if (!user) {<br>    throw createError({ statusCode: 404, statusMessage: &#39;user not found&#39; })<br>  }<br><br>  return user<br>})export default eventHandler(async () =&gt; {<br>  return await db.select().from(schema.users)<br>})</pre><h4>2. Create user (POST)</h4><p>Di index.post.ts: baca body (name, email, phone, avatar), validasi, insert, return row yang baru dibuat.</p><pre>import { db, schema } from &#39;@nuxthub/db&#39;<br><br>const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/<br>const DEFAULT_AVATAR = &#39;https://api.dicebear.com/9.x/initials/svg?seed=User&#39;<br><br>function isUniqueViolation(err: unknown): boolean {<br>  const seen = new Set&lt;unknown&gt;()<br>  let cur: unknown = err<br>  while (cur &amp;&amp; typeof cur === &#39;object&#39; &amp;&amp; !seen.has(cur)) {<br>    seen.add(cur)<br>    const e = cur as { code?: string; message?: string; cause?: unknown; constraint_name?: string; constraint?: string }<br>    if (e.code === &#39;23505&#39;) return true<br>    const msg = `${e.message || &#39;&#39;} ${e.constraint_name || &#39;&#39;} ${e.constraint || &#39;&#39;}`.toLowerCase()<br>    if (msg.includes(&#39;unique&#39;) || msg.includes(&#39;duplicate&#39;) || msg.includes(&#39;users_email_unique&#39;)) return true<br>    cur = e.cause<br>  }<br>  return false<br>}<br><br>export default eventHandler(async (event) =&gt; {<br>  const body = await readBody&lt;{<br>    name?: string<br>    email?: string<br>    phone?: string | null<br>    avatar?: string<br>  }&gt;(event)<br><br>  const name = body?.name?.trim()<br>  const email = body?.email?.trim()<br>  const phone = body?.phone?.trim() || null<br>  const avatar = body?.avatar?.trim() || DEFAULT_AVATAR<br><br>  if (!name) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;name is required&#39; })<br>  }<br>  if (!email) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;email is required&#39; })<br>  }<br>  if (!EMAIL_RE.test(email)) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;email is invalid&#39; })<br>  }<br><br>  try {<br>    const [user] = await db<br>      .insert(schema.users)<br>      .values({ name, email, phone, avatar })<br>      .returning()<br><br>    return user<br>  }<br>  catch (err: unknown) {<br>    if (isUniqueViolation(err)) {<br>      throw createError({ statusCode: 409, statusMessage: &#39;email already exists&#39; })<br>    }<br>    throw err<br>  }<br>})</pre><p>Validasi :</p><ul><li>name dan email wajib.</li><li>Format email dicek regex.</li><li>phone boleh kosong → disimpan null .</li><li>avatar kosong → default (https://api.dicebear.com/9.x/initials/svg?seed=User )</li></ul><h4>3. Detail by Id (GET)</h4><p>File: server/api/users/[id].get.ts</p><pre>import { db, schema } from &#39;@nuxthub/db&#39;<br>import { eq } from &#39;drizzle-orm&#39;<br><br>export default eventHandler(async (event) =&gt; {<br>  const id = Number(getRouterParam(event, &#39;id&#39;))<br>  if (!Number.isFinite(id) || id &lt;= 0) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;invalid id&#39; })<br>  }<br><br>  const [user] = await db.select().from(schema.users).where(eq(schema.users.id, id)).limit(1)<br>  if (!user) {<br>    throw createError({ statusCode: 404, statusMessage: &#39;user not found&#39; })<br>  }<br><br>  return user<br>})</pre><h4>4. Delete by Id (GET)</h4><p>File: server/api/users/[id].delete.ts</p><pre>import { db, schema } from &#39;@nuxthub/db&#39;<br>import { eq } from &#39;drizzle-orm&#39;<br><br>export default eventHandler(async (event) =&gt; {<br>  const id = Number(getRouterParam(event, &#39;id&#39;))<br>  if (!Number.isFinite(id) || id &lt;= 0) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;invalid id&#39; })<br>  }<br><br>  const [deleted] = await db<br>    .delete(schema.users)<br>    .where(eq(schema.users.id, id))<br>    .returning({ id: schema.users.id })<br><br>  if (!deleted) {<br>    throw createError({ statusCode: 404, statusMessage: &#39;user not found&#39; })<br>  }<br><br>  return { ok: true, id: deleted.id }<br>})</pre><h4>5. Update by Id (PUT)</h4><p>File: server/api/users/[id].put.ts</p><pre>import { db, schema } from &#39;@nuxthub/db&#39;<br>import { eq } from &#39;drizzle-orm&#39;<br><br>const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/<br><br>function isUniqueViolation(err: unknown): boolean {<br>  const seen = new Set&lt;unknown&gt;()<br>  let cur: unknown = err<br>  while (cur &amp;&amp; typeof cur === &#39;object&#39; &amp;&amp; !seen.has(cur)) {<br>    seen.add(cur)<br>    const e = cur as { code?: string; message?: string; cause?: unknown; constraint_name?: string; constraint?: string }<br>    if (e.code === &#39;23505&#39;) return true<br>    const msg = `${e.message || &#39;&#39;} ${e.constraint_name || &#39;&#39;} ${e.constraint || &#39;&#39;}`.toLowerCase()<br>    if (msg.includes(&#39;unique&#39;) || msg.includes(&#39;duplicate&#39;) || msg.includes(&#39;users_email_unique&#39;)) return true<br>    cur = e.cause<br>  }<br>  return false<br>}<br><br>export default eventHandler(async (event) =&gt; {<br>  const id = Number(getRouterParam(event, &#39;id&#39;))<br>  if (!Number.isFinite(id) || id &lt;= 0) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;invalid id&#39; })<br>  }<br><br>  const body = await readBody&lt;{<br>    name?: string<br>    email?: string<br>    phone?: string | null<br>    avatar?: string<br>  }&gt;(event)<br><br>  const [existing] = await db.select().from(schema.users).where(eq(schema.users.id, id)).limit(1)<br>  if (!existing) {<br>    throw createError({ statusCode: 404, statusMessage: &#39;user not found&#39; })<br>  }<br><br>  const updates: {<br>    name?: string<br>    email?: string<br>    phone?: string | null<br>    avatar?: string<br>  } = {}<br><br>  if (body?.name !== undefined) {<br>    const name = body.name.trim()<br>    if (!name) {<br>      throw createError({ statusCode: 400, statusMessage: &#39;name cannot be empty&#39; })<br>    }<br>    updates.name = name<br>  }<br><br>  if (body?.email !== undefined) {<br>    const email = body.email.trim()<br>    if (!email) {<br>      throw createError({ statusCode: 400, statusMessage: &#39;email cannot be empty&#39; })<br>    }<br>    if (!EMAIL_RE.test(email)) {<br>      throw createError({ statusCode: 400, statusMessage: &#39;email is invalid&#39; })<br>    }<br>    updates.email = email<br>  }<br><br>  if (body?.avatar !== undefined) {<br>    const avatar = body.avatar.trim()<br>    if (!avatar) {<br>      throw createError({ statusCode: 400, statusMessage: &#39;avatar cannot be empty&#39; })<br>    }<br>    updates.avatar = avatar<br>  }<br><br>  if (body?.phone !== undefined) {<br>    const phone = typeof body.phone === &#39;string&#39; ? body.phone.trim() : body.phone<br>    updates.phone = phone || null<br>  }<br><br>  if (Object.keys(updates).length === 0) {<br>    throw createError({ statusCode: 400, statusMessage: &#39;no fields to update&#39; })<br>  }<br><br>  try {<br>    const [user] = await db<br>      .update(schema.users)<br>      .set(updates)<br>      .where(eq(schema.users.id, id))<br>      .returning()<br><br>    return user<br>  }<br>  catch (err: unknown) {<br>    if (isUniqueViolation(err)) {<br>      throw createError({ statusCode: 409, statusMessage: &#39;email already exists&#39; })<br>    }<br>    throw err<br>  }<br>})</pre><h3>C. Integrasi Frontend dengan API</h3><p>Backend sudah ready, endpoint CRUD sudah lengkap. Sekarang tinggal bikin halaman Vue buat konsumsi API-nya.</p><p>File: app/pages/index.vue</p><h4>1. Fetch data awal dengan useFetch</h4><pre>type User = {<br>  id: number<br>  name: string<br>  email: string<br>  phone: string | null<br>  avatar: string<br>  createdAt: string<br>}</pre><pre>const { data: users, refresh, error: listError, pending } = await useFetch&lt;User[]&gt;(&#39;/api/users&#39;)</pre><p>useFetch dipanggil saat komponen pertama kali di-render, langsung hit GET /api/users yang sudah dibuat pada bagian B. Ada 4 hal yang kita ambil dari sini:</p><ul><li>users → data list-nya</li><li>pending → status loading</li><li>listError → kalau request gagal</li><li>refresh → buat re-fetch manual, dipanggil lagi tiap habis create/update/delete biar list-nya update</li></ul><h4>2. State untuk form create &amp; edit</h4><pre>const form = reactive({<br>  name: &#39;&#39;,<br>  email: &#39;&#39;,<br>  phone: &#39;&#39;,<br>  avatar: &#39;&#39;,<br>})<br><br>const editingId = ref&lt;number | null&gt;(null)<br><br>const editForm = reactive({<br>  name: &#39;&#39;,<br>  email: &#39;&#39;,<br>  phone: &#39;&#39;,<br>  avatar: &#39;&#39;,<br>})</pre><h4>3. Create user dengan $fetch</h4><pre>async function createUser() {<br>  formError.value = &#39;&#39;<br>  actionPending.value = true<br>  try {<br>    await $fetch(&#39;/api/users&#39;, {<br>      method: &#39;POST&#39;,<br>      body: {<br>        name: form.name,<br>        email: form.email,<br>        phone: form.phone || undefined,<br>        avatar: form.avatar || undefined,<br>      },<br>    })<br>    form.name = &#39;&#39;<br>    form.email = &#39;&#39;<br>    form.phone = &#39;&#39;<br>    form.avatar = &#39;&#39;<br>    await refresh()<br>  }<br>  catch (err: unknown) {<br>    formError.value = extractError(err)<br>  }<br>  finally {<br>    actionPending.value = false<br>  }<br>}</pre><ol><li>Reset error dulu</li><li>POST ke /api/users</li><li>sukses → reset form + refresh() list ke-update</li><li>gagal → tangkap error-nya lewat extractError()</li></ol><h4>4. Edit user</h4><pre>function startEdit(user: User) {<br>  editingId.value = user.id<br>  editForm.name = user.name<br>  editForm.email = user.email<br>  editForm.phone = user.phone || &#39;&#39;<br>  editForm.avatar = user.avatar<br>  editError.value = &#39;&#39;<br>}</pre><pre>function cancelEdit() {<br>  editingId.value = null<br>  editError.value = &#39;&#39;<br>}<br><br>async function saveEdit() {<br>  if (editingId.value == null) return<br>  editError.value = &#39;&#39;<br>  actionPending.value = true<br>  try {<br>    await $fetch(`/api/users/${editingId.value}`, {<br>      method: &#39;PUT&#39;,<br>      body: {<br>        name: editForm.name,<br>        email: editForm.email,<br>        phone: editForm.phone,<br>        avatar: editForm.avatar,<br>      },<br>    })<br>    editingId.value = null<br>    await refresh()<br>  }<br>  catch (err: unknown) {<br>    editError.value = extractError(err)<br>  }<br>  finally {<br>    actionPending.value = false<br>  }<br>}</pre><h4>5. Delete user</h4><pre>async function removeUser(id: number) {<br>  if (!confirm(`Delete user #${id}?`)) return<br>  formError.value = &#39;&#39;<br>  actionPending.value = true<br>  try {<br>    await $fetch(`/api/users/${id}`, { method: &#39;DELETE&#39; })<br>    if (editingId.value === id) cancelEdit()<br>    await refresh()<br>  }<br>  catch (err: unknown) {<br>    formError.value = extractError(err)<br>  }<br>  finally {<br>    actionPending.value = false<br>  }<br>}</pre><h4>6. Helper extract error message</h4><pre>function extractError(err: unknown): string {<br>  const e = err as { data?: { statusMessage?: string; message?: string }; statusMessage?: string; message?: string }<br>  return e?.data?.statusMessage || e?.data?.message || e?.statusMessage || e?.message || &#39;Request failed&#39;<br>}</pre><h4>7. Template Frontend</h4><pre>&lt;template&gt;<br>  &lt;main class=&quot;wrap&quot;&gt;<br><br>    &lt;section class=&quot;card&quot;&gt;<br>      &lt;h2&gt;Create user&lt;/h2&gt;<br>      &lt;form class=&quot;form&quot; @submit.prevent=&quot;createUser&quot;&gt;<br>        &lt;label&gt;Name &lt;input v-model=&quot;form.name&quot;  /&gt;&lt;/label&gt;<br>        &lt;label&gt;Email &lt;input v-model=&quot;form.email&quot; type=&quot;email&quot;  /&gt;&lt;/label&gt;<br>        &lt;label&gt;Phone &lt;input v-model=&quot;form.phone&quot; type=&quot;tel&quot; placeholder=&quot;optional&quot; /&gt;&lt;/label&gt;<br>        &lt;label&gt;Avatar URL &lt;input v-model=&quot;form.avatar&quot; placeholder=&quot;optional&quot; /&gt;&lt;/label&gt;<br>        &lt;button type=&quot;submit&quot; :disabled=&quot;actionPending&quot;&gt;Create&lt;/button&gt;<br>      &lt;/form&gt;<br>      &lt;p v-if=&quot;formError&quot; class=&quot;error&quot;&gt;{{ formError }}&lt;/p&gt;<br>    &lt;/section&gt;<br><br>    &lt;section class=&quot;card&quot;&gt;<br>      &lt;h2&gt;Users&lt;/h2&gt;<br>      &lt;p v-if=&quot;pending&quot;&gt;Loading…&lt;/p&gt;<br>      &lt;p v-else-if=&quot;listError&quot; class=&quot;error&quot;&gt;{{ listError.message || &#39;Failed to load users&#39; }}&lt;/p&gt;<br>      &lt;p v-else-if=&quot;!users?.length&quot;&gt;No users yet.&lt;/p&gt;<br>      &lt;ul v-else class=&quot;list&quot;&gt;<br>        &lt;li v-for=&quot;user in users&quot; :key=&quot;user.id&quot; class=&quot;item&quot;&gt;<br>          &lt;div v-if=&quot;editingId !== user.id&quot; class=&quot;row&quot;&gt;<br>            &lt;img :src=&quot;user.avatar&quot; alt=&quot;&quot; class=&quot;avatar&quot; width=&quot;40&quot; height=&quot;40&quot; /&gt;<br>            &lt;div class=&quot;meta&quot;&gt;<br>              &lt;strong&gt;#{{ user.id }} {{ user.name }}&lt;/strong&gt;<br>              &lt;span&gt;{{ user.email }}&lt;/span&gt;<br>              &lt;span v-if=&quot;user.phone&quot;&gt;{{ user.phone }}&lt;/span&gt;<br>              &lt;small&gt;{{ user.createdAt }}&lt;/small&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;actions&quot;&gt;<br>              &lt;button type=&quot;button&quot; @click=&quot;startEdit(user)&quot;&gt;Edit&lt;/button&gt;<br>              &lt;button type=&quot;button&quot; class=&quot;danger&quot; :disabled=&quot;actionPending&quot; @click=&quot;removeUser(user.id)&quot;&gt;Delete&lt;/button&gt;<br>            &lt;/div&gt;<br>          &lt;/div&gt;<br>          &lt;form v-else class=&quot;form edit&quot; @submit.prevent=&quot;saveEdit&quot;&gt;<br>            &lt;label&gt;Name &lt;input v-model=&quot;editForm.name&quot;  /&gt;&lt;/label&gt;<br>            &lt;label&gt;Email &lt;input v-model=&quot;editForm.email&quot; type=&quot;email&quot;  /&gt;&lt;/label&gt;<br>            &lt;label&gt;Phone &lt;input v-model=&quot;editForm.phone&quot; type=&quot;tel&quot; placeholder=&quot;optional&quot; /&gt;&lt;/label&gt;<br>            &lt;label&gt;Avatar URL &lt;input v-model=&quot;editForm.avatar&quot;  /&gt;&lt;/label&gt;<br>            &lt;div class=&quot;actions&quot;&gt;<br>              &lt;button type=&quot;submit&quot; :disabled=&quot;actionPending&quot;&gt;Save&lt;/button&gt;<br>              &lt;button type=&quot;button&quot; @click=&quot;cancelEdit&quot;&gt;Cancel&lt;/button&gt;<br>            &lt;/div&gt;<br>            &lt;p v-if=&quot;editError&quot; class=&quot;error&quot;&gt;{{ editError }}&lt;/p&gt;<br>          &lt;/form&gt;<br>        &lt;/li&gt;<br>      &lt;/ul&gt;<br>    &lt;/section&gt;<br>  &lt;/main&gt;<br>&lt;/template&gt;<br><br>&lt;style scoped&gt;<br>.wrap { max-width: 720px; margin: 2rem auto; padding: 0 1rem; font-family: system-ui, sans-serif; }<br>.card { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }<br>.form { display: grid; gap: 0.5rem; }<br>.form label { display: grid; gap: 0.25rem; font-size: 0.9rem; }<br>input { padding: 0.4rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; }<br>button { padding: 0.4rem 0.75rem; cursor: pointer; }<br>.danger { color: #b00020; }<br>.error { color: #b00020; margin: 0.5rem 0 0; }<br>.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }<br>.item { border-top: 1px solid #eee; padding-top: 0.75rem; }<br>.item:first-child { border-top: 0; padding-top: 0; }<br>.row { display: flex; gap: 0.75rem; align-items: center; }<br>.avatar { border-radius: 50%; object-fit: cover; background: #f0f0f0; }<br>.meta { display: grid; flex: 1; gap: 0.15rem; }<br>.meta small { color: #666; }<br>.actions { display: flex; gap: 0.4rem; }<br>.edit { margin-top: 0.25rem; }<br>&lt;/style&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VSUvlQUR1_eTKkKLwSr8g.png" /><figcaption>No Data List</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQIWAMGsEag0uG0NFADbOg.png" /><figcaption>List &amp; Edit User</figcaption></figure><h3>D. Catatan</h3><p>Ada dua halmenarik dari NuxtHub ini, walau gak masuk ke alur utama CRUD di atas.</p><ol><li><strong>Soal CORS — gak perlu setup</strong></li></ol><p>Biasanya kalau FE dan BE terpisah (misal FE Vue/React di port 5173, BE Express/Golang di port 3000), kita wajib setting CORS di backend biar browser gak nge-block request cross-origin. Nah di NuxtHub, ini otomatis gak jadi masalah, karena FE (app/pages/) dan BE (server/api/) sama-sama di-build dan di-serve dari satu Nitro server yang sama. Request kayak $fetch(&#39;/api/users&#39;) itu dipanggil pakai path relatif, bukan full URL ke domain lain, jadi browser nganggepnya same-origin — gak ada preflight OPTIONS, gak ada header Access-Control-Allow-Origin yang perlu diatur manual.</p><p><strong>2. Bisa cek database langsung lewat Nuxt DevTools.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ldTsbCvdbB6ZEdizy-biQQ.png" /><figcaption>Nuxt DevTools</figcaption></figure><p>Gak perlu buka pgAdmin, DBeaver, atau query manual di terminal buat ngecek isi database. Tinggal jalankan npm run dev, buka Nuxt DevTools (icon Nuxt di pojok bawah browser, atau Shift + Option/Alt + D), lalu masuk ke tab <strong>Hub</strong> → sub-menu <strong>Database</strong>. Di situ semua tabel dari schema (server/db/schema.ts) ke-list, isi data per-row bisa di-browse real-time, jadi abis POST/PUT/DELETE lewat FE tinggal refresh panel ini buat verifikasi data beneran ke-update — gak perlu bolak-balik ke tool DB terpisah. Bisa run query SQL manual juga kalau butuh cek sesuatu yang lebih spesifik.</p><p>Refrensi :</p><p><a href="https://hub.nuxt.com/">Build full-stack Nuxt applications. · NuxtHub</a></p><p>Repository :</p><p><a href="https://github.com/rayfajars/fullstack-with-nuxt-hub">https://github.com/rayfajars/fullstack-with-nuxt-hub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b95fdfa74bfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Browser Monitoring pada New Relic]]></title>
            <link>https://medium.com/@rayfajars/browser-monitoring-pada-new-relic-117868bf72ff?source=rss-ecbc0098471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/117868bf72ff</guid>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[new-relic]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[nuxt]]></category>
            <dc:creator><![CDATA[Ray Fajar]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 14:48:55 GMT</pubDate>
            <atom:updated>2023-03-28T14:48:55.815Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>New Relic</strong> adalah tools yang membantu memonitoring kinerja perangkat lunak. Salah satu fitur yang ada pada <strong>New Relic</strong> adalah <strong>Browser Monitoring</strong>. <strong>Browser Monitoring</strong> dapat memeriksa performace dari aplikasi website yang dikembangkan. <strong>Browser Monitoring </strong>bisa memberitahukan dimana dan kapan website berjalan lancar atau lambat dan dengan menggunakan <strong>Browser Monitoring</strong> kita dapat mengetahui waktu muat halaman, waktu pemrosesan di sisi klien dan mendeteksi error yang terjadi pada aplikasi website yang sedang dikembangkan, <strong>New Relic</strong> akan mengirimkan notifikasi / pesan error pada Dashboard <strong>Browser Monitoring</strong> yang terdapat pada <strong>New Relic</strong>. Ini memungkinkan pengembang untuk dengan cepat mengidentifikasi masalah dan memperbaikinya sebelum memengaruhi pengguna.</p><p><strong>New Relic Browser Monitoring</strong> juga menyediakan data tentang penggunaan <strong>perangkat </strong>dan <strong>browser</strong>, yang dapat membantu pengembang untuk mengetahui apakah aplikasi mereka kompatibel dengan berbagai perangkat dan platform. Dengan data ini, pengembang dapat membuat perubahan yang diperlukan untuk memastikan bahwa aplikasi mereka dapat diakses oleh semua pengguna.</p><h3>Setup New Relic Browser pada Nuxt JS</h3><ol><li><strong>Create Project Browser Monitoring pada New Relic</strong></li></ol><ul><li>Login <a href="https://one.newrelic.com/">Newrelic</a></li><li>Masuk ke menu Browser</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*j1X1O7LGbt6FAE3XkYR-Mw.png" /></figure><ul><li>Pilih <strong>+ Add Data, </strong>akan muncul pop menu dan pilih <strong>Browser &amp; Mobile, pada menu Browser</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3RUkq-ir54ZWILuppQtaw.png" /></figure><ul><li>pada menu <strong>Browser &amp; Mobile</strong>, klik <strong>Browser Monitoring</strong> , maka akan muncul pop up menu Cara <strong>Setup New Relic Browser.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwAp6NFWVFiC6O2FbJQcPg.png" /></figure><p><strong>2. Setup New Relic Browse</strong></p><ul><li>Pada Tahap Pertama, Pilih <strong>Deployment Method</strong> dengan cara <strong>Copy/Paste Javascript Code </strong>dan posisi kan <strong>Distributed Tracing</strong> dan <strong>Cookie Collection</strong> pada posisi ON.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNKRFR7gxB7Fu6FdbLDrtA.png" /></figure><ul><li>Pada tahap ketiga, pilih Penamaan <strong>Appilcation Monitoring</strong> dengan <strong>Standalone App</strong> dan Masukan <strong>Nama Project</strong>, Setelah nama project diisi , klik <strong>Enable</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*mBNhBJvc9xxPJ4cP471KQw.png" /></figure><p>pada proses enable akan memerlukan beberapa waktu , ketika selesai akan muncul notifikasi <strong>Success, </strong>setelah sukses akan muncul tahapan keempat, yang berisi script agent monitoring New Relic.</p><ul><li>Copy atau Simpan script yg digenerate oleh New Relic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*zUD_sddGCOXr5PWJqDzmuA.png" /></figure><p>script yang dihasilkan mencakup beberapa data yang sangat panjang, tetapi kita hanya perlu memperhatikan beberapa data penting pada script ini, yaitu :</p><ul><li><strong>AccountID</strong></li><li><strong>licenseKey</strong></li><li><strong>ApplicationID</strong></li></ul><p>karena ketiga data berikut merupakan data unik yang dihasilkan oleh New Relic.</p><p><strong>accountID</strong> dan <strong>licenseKey</strong> adalah data unik yang dihasilkan oleh akun <strong>New Relic</strong> anda , sementara <strong>applicationID</strong> merupakan data unik yang dihasilkan dari project monitoring browser yang kalian buat, sehingga setiap application monitoring yang kalian buat akan berbeda-beda.</p><p>apakah data berikut boleh kepublish ? sampai saat ini boleh-boleh saja, hehe</p><p>selama kita sudah melakukan <strong>Domain Condition</strong> pada <strong>application monitoring</strong> <strong>browser</strong> kita, agar script kita tidak dapat berjalan diproject lain dan hanya berjalan pada project / domain yang sudah kita tentukan. karena script ini bisa berjalan diproject mana pun dan akan membaca proses browser monitoring pada project tersebut, selama kita mengetahui 3 data unik tersebut.</p><p>bagaimana cara melakukan Domain Condition tersebut ?</p><p><strong>3. Setup New Relic Browser Monitoring pada Nuxt JS</strong></p><ul><li>Buat file newrelic-browser-script.js pada folder static.</li><li>Copy Script berikut dan masukan pada file tersebut</li></ul><pre>/*eslint-disable*/<br>// for get data from environment<br>const tagScript = document.querySelector(&#39;script[data-account-id][data-browser-license-key][data-application-id]&#39;)<br><br>    ; window.NREUM || (NREUM = {}); NREUM.init = { distributed_tracing: { enabled: true }, privacy: { cookies_enabled: true }, ajax: { deny_list: [&quot;bam.nr-data.net&quot;] } };<br><br>; NREUM.loader_config = { accountID: tagScript.geadsatAttribute(&#39;data-account-id&#39;), trustKey: tagScript.getAttribute(&#39;data-browser-license-key&#39;), agentID: tagScript.getAttribute(&#39;data-application-id&#39;), licenseKey: tagScript.getAttribute(&#39;data-browser-license-key&#39;), applicationID: tagScript.getAttribute(&#39;data-application-id&#39;) };<br>; NREUM.info = { beacon: &quot;bam.nr-data.net&quot;, errorBeacon: &quot;bam.nr-data.net&quot;, licenseKey: tagScript.getAttribute(&#39;data-browser-license-key&#39;), applicationID: tagScript.getAttribute(&#39;data-application-id&#39;), sa: 1 };<br>; (() =&gt; { var e, t, r = { 9071: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { I: () =&gt; n }); var n = 0, i = navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/); i &amp;&amp; (n = +i[1]) }, 6900: (e, t, r) =&gt; { &quot;use strict&quot;; let n; if (r.d(t, { H: () =&gt; i }), r(2374).il) { const e = document.createElement(&quot;div&quot;); e.innerHTML = &quot;\x3c!--[if lte IE 6]&gt;&lt;div&gt;&lt;/div&gt;&lt;![endif]--\x3e\x3c!--[if lte IE 7]&gt;&lt;div&gt;&lt;/div&gt;&lt;![endif]--\x3e\x3c!--[if lte IE 8]&gt;&lt;div&gt;&lt;/div&gt;&lt;![endif]--\x3e\x3c!--[if lte IE 9]&gt;&lt;div&gt;&lt;/div&gt;&lt;![endif]--\x3e&quot;, n = e.getElementsByTagName(&quot;div&quot;).length } var i; i = 4 === n ? 6 : 3 === n ? 7 : 2 === n ? 8 : 1 === n ? 9 : 0 }, 6562: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { P_: () =&gt; p, Mt: () =&gt; v, C5: () =&gt; d, DL: () =&gt; y, OP: () =&gt; L, lF: () =&gt; H, Yu: () =&gt; E, Dg: () =&gt; g, CX: () =&gt; f, GE: () =&gt; w, sU: () =&gt; M }); var n = {}; r.r(n), r.d(n, { agent: () =&gt; O, match: () =&gt; N, version: () =&gt; A }); var i = r(6797), o = r(909), a = r(8610); class s { constructor(e, t) { try { if (!e || &quot;object&quot; != typeof e) return (0, a.Z)(&quot;New setting a Configurable requires an object as input&quot;); if (!t || &quot;object&quot; != typeof t) return (0, a.Z)(&quot;Setting a Configurable requires a model to set its initial properties&quot;); Object.assign(this, t), Object.entries(e).forEach((e =&gt; { let [t, r] = e; const n = (0, o.q)(t); n.length &amp;&amp; r &amp;&amp; &quot;object&quot; == typeof r &amp;&amp; n.forEach((e =&gt; { e in r &amp;&amp; ((0, a.Z)(`&quot;${e}&quot; is a protected attribute and can not be changed in feature ${t}.  It will have no effect.`), delete r[e]) })), this[t] = r })) } catch (e) { (0, a.Z)(&quot;An error occured while setting a Configurable&quot;, e) } } } const c = { beacon: i.ce.beacon, errorBeacon: i.ce.errorBeacon, licenseKey: void 0, applicationID: void 0, sa: void 0, queueTime: void 0, applicationTime: void 0, ttGuid: void 0, user: void 0, account: void 0, product: void 0, extra: void 0, jsAttributes: {}, userAttributes: void 0, atts: void 0, transactionName: void 0, tNamePlain: void 0 }, u = {}; function d(e) { if (!e) throw new Error(&quot;All info objects require an agent identifier!&quot;); if (!u[e]) throw new Error(`Info for ${e} was never set`); return u[e] } function f(e, t) { if (!e) throw new Error(&quot;All info objects require an agent identifier!&quot;); u[e] = new s(t, c), (0, i.Qy)(e, u[e], &quot;info&quot;) } const l = { allow_bfcache: !1, privacy: { cookies_enabled: !0 }, ajax: { deny_list: void 0, enabled: !0, harvestTimeSeconds: 10 }, distributed_tracing: { enabled: void 0, exclude_newrelic_header: void 0, cors_use_newrelic_header: void 0, cors_use_tracecontext_headers: void 0, allowed_origins: void 0 }, ssl: void 0, obfuscate: void 0, jserrors: { enabled: !0, harvestTimeSeconds: 10 }, metrics: { enabled: !0, harvestTimeSeconds: 10 }, page_action: { enabled: !0, harvestTimeSeconds: 30 }, page_view_event: { enabled: !0 }, page_view_timing: { enabled: !0, harvestTimeSeconds: 30 }, session_trace: { enabled: !0, harvestTimeSeconds: 10 }, spa: { enabled: !0, harvestTimeSeconds: 10 } }, h = {}; function p(e) { if (!e) throw new Error(&quot;All configuration objects require an agent identifier!&quot;); if (!h[e]) throw new Error(`Configuration for ${e} was never set`); return h[e] } function g(e, t) { if (!e) throw new Error(&quot;All configuration objects require an agent identifier!&quot;); h[e] = new s(t, l), (0, i.Qy)(e, h[e], &quot;config&quot;) } function v(e, t) { if (!e) throw new Error(&quot;All configuration objects require an agent identifier!&quot;); var r = p(e); if (r) { for (var n = t.split(&quot;.&quot;), i = 0; i &lt; n.length - 1; i++)if (&quot;object&quot; != typeof (r = r[n[i]])) return; r = r[n[n.length - 1]] } return r } const m = { accountID: void 0, trustKey: void 0, agentID: void 0, licenseKey: void 0, applicationID: void 0, xpid: void 0 }, b = {}; function y(e) { if (!e) throw new Error(&quot;All loader-config objects require an agent identifier!&quot;); if (!b[e]) throw new Error(`LoaderConfig for ${e} was never set`); return b[e] } function w(e, t) { if (!e) throw new Error(&quot;All loader-config objects require an agent identifier!&quot;); b[e] = new s(t, m), (0, i.Qy)(e, b[e], &quot;loader_config&quot;) } const E = (0, i.mF)().o; var T = r(6900), x = r(2053), O = null, A = null; if (navigator.userAgent) { var _ = navigator.userAgent, S = _.match(/Version\/(\S+)\s+Safari/); S &amp;&amp; -1 === _.indexOf(&quot;Chrome&quot;) &amp;&amp; -1 === _.indexOf(&quot;Chromium&quot;) &amp;&amp; (O = &quot;Safari&quot;, A = S[1]) } function N(e, t) { if (!O) return !1; if (e !== O) return !1; if (!t) return !0; if (!A) return !1; for (var r = A.split(&quot;.&quot;), n = t.split(&quot;.&quot;), i = 0; i &lt; n.length; i++)if (n[i] !== r[i]) return !1; return !0 } var D = r(5526), P = r(2374); const I = &quot;NRBA_SESSION_ID&quot;; function R() { if (!P.il) return null; try { let e; return null === (e = window.sessionStorage.getItem(I)) &amp;&amp; (e = (0, D.ky)(16), window.sessionStorage.setItem(I, e)), e } catch (e) { return null } } var C = P._A?.XMLHttpRequest, j = C &amp;&amp; C.prototype; const k = {}; function L(e) { if (!e) throw new Error(&quot;All runtime objects require an agent identifier!&quot;); if (!k[e]) throw new Error(`Runtime for ${e} was never set`); return k[e] } function M(e, t) { if (!e) throw new Error(&quot;All runtime objects require an agent identifier!&quot;); var r; k[e] = new s(t, (r = e, { customTransaction: void 0, disabled: !1, features: {}, isolatedBacklog: !1, loaderType: void 0, maxBytes: 6 === T.H ? 2e3 : 3e4, offset: (0, x.yf)(), onerror: void 0, origin: &quot;&quot; + P._A?.location, ptid: void 0, releaseIds: {}, sessionId: 1 == v(r, &quot;privacy.cookies_enabled&quot;) ? R() : null, xhrWrappable: C &amp;&amp; j &amp;&amp; j.addEventListener &amp;&amp; !/CriOS/.test(navigator.userAgent), userAgent: n })), (0, i.Qy)(e, k[e], &quot;runtime&quot;) } function H(e) { return function (e) { try { const t = d(e); return !!t.licenseKey &amp;&amp; !!t.errorBeacon &amp;&amp; !!t.applicationID } catch (e) { return !1 } }(e) } }, 8226: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { q: () =&gt; n }); const n = &quot;1223.PROD&quot; }, 9557: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { w: () =&gt; o }); var n = r(8610); const i = { agentIdentifier: &quot;&quot; }; class o { constructor(e) { try { if (&quot;object&quot; != typeof e) return (0, n.Z)(&quot;shared context requires an object as input&quot;); this.sharedContext = {}, Object.assign(this.sharedContext, i), Object.entries(e).forEach((e =&gt; { let [t, r] = e; Object.keys(i).includes(t) &amp;&amp; (this.sharedContext[t] = r) })) } catch (e) { (0, n.Z)(&quot;An error occured while setting SharedContext&quot;, e) } } } }, 4329: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { L: () =&gt; d, R: () =&gt; c }); var n = r(3752), i = r(7022), o = r(4045), a = r(2325); const s = {}; function c(e, t) { const r = { staged: !1, priority: a.p[t] || 0 }; u(e), s[e].get(t) || s[e].set(t, r) } function u(e) { e &amp;&amp; (s[e] || (s[e] = new Map)) } function d() { let e = arguments.length &gt; 0 &amp;&amp; void 0 !== arguments[0] ? arguments[0] : &quot;&quot;, t = arguments.length &gt; 1 &amp;&amp; void 0 !== arguments[1] ? arguments[1] : &quot;feature&quot;; if (u(e), !e || !s[e].get(t)) return a(t); s[e].get(t).staged = !0; const r = Array.from(s[e]); function a(t) { const r = e ? n.ee.get(e) : n.ee, a = o.X.handlers; if (r.backlog &amp;&amp; a) { var s = r.backlog[t], c = a[t]; if (c) { for (var u = 0; s &amp;&amp; u &lt; s.length; ++u)f(s[u], c); (0, i.D)(c, (function (e, t) { (0, i.D)(t, (function (t, r) { r[0].on(e, r[1]) })) })) } delete a[t], r.backlog[t] = null, r.emit(&quot;drain-&quot; + t, []) } } r.every((e =&gt; { let [t, r] = e; return r.staged })) &amp;&amp; (r.sort(((e, t) =&gt; e[1].priority - t[1].priority)), r.forEach((e =&gt; { let [t] = e; a(t) }))) } function f(e, t) { var r = e[1]; (0, i.D)(t[r], (function (t, r) { var n = e[0]; if (r[0] === n) { var i = r[1], o = e[3], a = e[2]; i.apply(o, a) } })) } }, 3752: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { c: () =&gt; f, ee: () =&gt; u }); var n = r(6797), i = r(3916), o = r(7022), a = r(6562), s = &quot;nr@context&quot;; let c = (0, n.fP)(); var u; function d() { } function f(e) { return (0, i.X)(e, s, l) } function l() { return new d } function h() { (u.backlog.api || u.backlog.feature) &amp;&amp; (u.aborted = !0, u.backlog = {}) } c.ee ? u = c.ee : (u = function e(t, r) { var n = {}, c = {}, f = {}, p = !1; try { p = 16 === r.length &amp;&amp; (0, a.OP)(r).isolatedBacklog } catch (e) { } var g = { on: b, addEventListener: b, removeEventListener: y, emit: m, get: E, listeners: w, context: v, buffer: T, abort: h, aborted: !1, isBuffering: x, debugId: r, backlog: p ? {} : t &amp;&amp; &quot;object&quot; == typeof t.backlog ? t.backlog : {} }; return g; function v(e) { return e &amp;&amp; e instanceof d ? e : e ? (0, i.X)(e, s, l) : l() } function m(e, r, n, i, o) { if (!1 !== o &amp;&amp; (o = !0), !u.aborted || i) { t &amp;&amp; o &amp;&amp; t.emit(e, r, n); for (var a = v(n), s = w(e), d = s.length, f = 0; f &lt; d; f++)s[f].apply(a, r); var l = O()[c[e]]; return l &amp;&amp; l.push([g, e, r, a]), a } } function b(e, t) { n[e] = w(e).concat(t) } function y(e, t) { var r = n[e]; if (r) for (var i = 0; i &lt; r.length; i++)r[i] === t &amp;&amp; r.splice(i, 1) } function w(e) { return n[e] || [] } function E(t) { return f[t] = f[t] || e(g, t) } function T(e, t) { var r = O(); g.aborted || (0, o.D)(e, (function (e, n) { t = t || &quot;feature&quot;, c[n] = t, t in r || (r[t] = []) })) } function x(e) { return !!O()[c[e]] } function O() { return g.backlog } }(void 0, &quot;globalEE&quot;), c.ee = u) }, 9252: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { E: () =&gt; n, p: () =&gt; i }); var n = r(3752).ee.get(&quot;handle&quot;); function i(e, t, r, i, o) { o ? (o.buffer([e], i), o.emit(e, t, r)) : (n.buffer([e], i), n.emit(e, t, r)) } }, 4045: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { X: () =&gt; o }); var n = r(9252); o.on = a; var i = o.handlers = {}; function o(e, t, r, o) { a(o || n.E, i, e, t, r) } function a(e, t, r, i, o) { o || (o = &quot;feature&quot;), e || (e = n.E); var a = t[o] = t[o] || {}; (a[r] = a[r] || []).push([e, i]) } }, 8544: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { bP: () =&gt; s, iz: () =&gt; c, m$: () =&gt; a }); var n = r(2374), i = !1; try { var o = Object.defineProperty({}, &quot;passive&quot;, { get: function () { i = !0 } }); n._A?.addEventListener(&quot;testPassive&quot;, null, o), n._A?.removeEventListener(&quot;testPassive&quot;, null, o) } catch (e) { } function a(e) { return i ? { passive: !0, capture: !!e } : !!e } function s(e, t) { let r = arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2] &amp;&amp; arguments[2]; window.addEventListener(e, t, a(r)) } function c(e, t) { let r = arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2] &amp;&amp; arguments[2]; document.addEventListener(e, t, a(r)) } }, 5526: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { Ht: () =&gt; a, M: () =&gt; o, Rl: () =&gt; i, ky: () =&gt; s }); var n = r(2374); function i() { var e = null, t = 0, r = n._A?.crypto || n._A?.msCrypto; function i() { return e ? 15 &amp; e[t++] : 16 * Math.random() | 0 } r &amp;&amp; r.getRandomValues &amp;&amp; (e = r.getRandomValues(new Uint8Array(31))); for (var o, a = &quot;xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx&quot;, s = &quot;&quot;, c = 0; c &lt; a.length; c++)s += &quot;x&quot; === (o = a[c]) ? i().toString(16) : &quot;y&quot; === o ? (o = 3 &amp; i() | 8).toString(16) : o; return s } function o() { return s(16) } function a() { return s(32) } function s(e) { var t = null, r = 0, n = self.crypto || self.msCrypto; n &amp;&amp; n.getRandomValues &amp;&amp; Uint8Array &amp;&amp; (t = n.getRandomValues(new Uint8Array(31))); for (var i = [], o = 0; o &lt; e; o++)i.push(a().toString(16)); return i.join(&quot;&quot;); function a() { return t ? 15 &amp; t[r++] : 16 * Math.random() | 0 } } }, 2053: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { nb: () =&gt; c, os: () =&gt; u, yf: () =&gt; s, zO: () =&gt; a }); var n = r(7145), i = (new Date).getTime(), o = i; function a() { return n.G &amp;&amp; performance.now ? Math.round(performance.now()) : (i = Math.max((new Date).getTime(), i)) - o } function s() { return i } function c(e) { o = e } function u() { return o } }, 7145: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { G: () =&gt; n }); const n = void 0 !== r(2374)._A?.performance?.timing?.navigationStart }, 6625: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { s: () =&gt; c, v: () =&gt; u }); var n = r(8283), i = r(9071), o = r(2053), a = r(7145), s = r(2374); let c = !0; function u(e) { var t = function () { if (i.I &amp;&amp; i.I &lt; 9) return; if (a.G) return c = !1, s._A?.performance?.timing?.navigationStart }(); t &amp;&amp; ((0, n.B)(e, &quot;starttime&quot;, t), (0, o.nb)(t)) } }, 8283: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { B: () =&gt; o, L: () =&gt; a }); var n = r(2053), i = {}; function o(e, t, r) { void 0 === r &amp;&amp; (r = (0, n.zO)() + (0, n.os)()), i[e] = i[e] || {}, i[e][t] = r } function a(e, t, r, n) { const o = e.sharedContext.agentIdentifier; var a = i[o]?.[r], s = i[o]?.[n]; void 0 !== a &amp;&amp; void 0 !== s &amp;&amp; e.store(&quot;measures&quot;, t, { value: s - a }) } }, 6368: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { e: () =&gt; o }); var n = r(2374), i = {}; function o(e) { if (e in i) return i[e]; if (0 === (e || &quot;&quot;).indexOf(&quot;data:&quot;)) return { protocol: &quot;data&quot; }; let t; var r = n._A?.location, o = {}; if (n.il) t = document.createElement(&quot;a&quot;), t.href = e; else try { t = new URL(e, r.href) } catch (e) { return o } o.port = t.port; var a = t.href.split(&quot;://&quot;); !o.port &amp;&amp; a[1] &amp;&amp; (o.port = a[1].split(&quot;/&quot;)[0].split(&quot;@&quot;).pop().split(&quot;:&quot;)[1]), o.port &amp;&amp; &quot;0&quot; !== o.port || (o.port = &quot;https&quot; === a[0] ? &quot;443&quot; : &quot;80&quot;), o.hostname = t.hostname || r.hostname, o.pathname = t.pathname, o.protocol = a[0], &quot;/&quot; !== o.pathname.charAt(0) &amp;&amp; (o.pathname = &quot;/&quot; + o.pathname); var s = !t.protocol || &quot;:&quot; === t.protocol || t.protocol === r.protocol, c = t.hostname === r.hostname &amp;&amp; t.port === r.port; return o.sameOrigin = s &amp;&amp; (!t.hostname || c), &quot;/&quot; === o.pathname &amp;&amp; (i[e] = o), o } }, 9548: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { T: () =&gt; i }); var n = r(2374); const i = { isFileProtocol: function () { let e = Boolean(&quot;file:&quot; === (0, n.lW)()?.location?.protocol); e &amp;&amp; (i.supportabilityMetricSent = !0); return e }, supportabilityMetricSent: !1 } }, 8610: (e, t, r) =&gt; { &quot;use strict&quot;; function n(e, t) { console &amp;&amp; console.warn &amp;&amp; &quot;function&quot; == typeof console.warn &amp;&amp; (console.warn(`New Relic: ${e}`), t &amp;&amp; console.warn(t)) } r.d(t, { Z: () =&gt; n }) }, 3916: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { X: () =&gt; i }); var n = Object.prototype.hasOwnProperty; function i(e, t, r) { if (n.call(e, t)) return e[t]; var i = r(); if (Object.defineProperty &amp;&amp; Object.keys) try { return Object.defineProperty(e, t, { value: i, writable: !0, enumerable: !1 }), i } catch (e) { } return e[t] = i, i } }, 2374: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { _A: () =&gt; o, il: () =&gt; n, lW: () =&gt; a, v6: () =&gt; i }); const n = Boolean(&quot;undefined&quot; != typeof window &amp;&amp; window.document), i = Boolean(&quot;undefined&quot; != typeof WorkerGlobalScope &amp;&amp; self.navigator instanceof WorkerNavigator); let o = (() =&gt; { if (n) return window; if (i) { if (&quot;undefined&quot; != typeof globalThis &amp;&amp; globalThis instanceof WorkerGlobalScope) return globalThis; if (self instanceof WorkerGlobalScope) return self } throw new Error(&quot;New Relic browser agent shutting down due to error: Unable to locate global scope. This is possibly due to code redefining browser global variables like `self` and `window`.&quot;) })(); function a() { return o } }, 7022: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { D: () =&gt; i }); var n = Object.prototype.hasOwnProperty; function i(e, t) { var r = [], i = &quot;&quot;, o = 0; for (i in e) n.call(e, i) &amp;&amp; (r[o] = t(i, e[i]), o += 1); return r } }, 9226: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { $c: () =&gt; u, Ng: () =&gt; d, RR: () =&gt; c }); var n = r(6562), i = r(9557), o = r(9548), a = r(8610), s = { regex: /^file:\/\/(.*)/, replacement: &quot;file://OBFUSCATED&quot; }; class c extends i.w { constructor(e) { super(e) } shouldObfuscate() { return u(this.sharedContext.agentIdentifier).length &gt; 0 } obfuscateString(e) { if (!e || &quot;string&quot; != typeof e) return e; for (var t = u(this.sharedContext.agentIdentifier), r = e, n = 0; n &lt; t.length; n++) { var i = t[n].regex, o = t[n].replacement || &quot;*&quot;; r = r.replace(i, o) } return r } } function u(e) { var t = [], r = (0, n.Mt)(e, &quot;obfuscate&quot;) || []; return t = t.concat(r), o.T.isFileProtocol() &amp;&amp; t.push(s), t } function d(e) { for (var t = !1, r = !1, n = 0; n &lt; e.length; n++) { &quot;regex&quot; in e[n] ? &quot;string&quot; != typeof e[n].regex &amp;&amp; e[n].regex.constructor !== RegExp &amp;&amp; ((0, a.Z)(&#39;An obfuscation replacement rule contains a &quot;regex&quot; value with an invalid type (must be a string or RegExp)&#39;), r = !0) : ((0, a.Z)(&#39;An obfuscation replacement rule was detected missing a &quot;regex&quot; value.&#39;), r = !0); var i = e[n].replacement; i &amp;&amp; &quot;string&quot; != typeof i &amp;&amp; ((0, a.Z)(&#39;An obfuscation replacement rule contains a &quot;replacement&quot; value with an invalid type (must be a string)&#39;), t = !0) } return !t &amp;&amp; !r } }, 2650: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { K: () =&gt; a, b: () =&gt; o }); var n = r(8544); function i() { return &quot;undefined&quot; == typeof document || &quot;complete&quot; === document.readyState } function o(e, t) { if (i()) return e(); (0, n.bP)(&quot;load&quot;, e, t) } function a(e) { if (i()) return e(); (0, n.iz)(&quot;DOMContentLoaded&quot;, e) } }, 6797: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { EZ: () =&gt; u, Qy: () =&gt; c, ce: () =&gt; o, fP: () =&gt; a, gG: () =&gt; d, mF: () =&gt; s }); var n = r(2053), i = r(2374); const o = { beacon: &quot;bam.nr-data.net&quot;, errorBeacon: &quot;bam.nr-data.net&quot; }; function a() { return i._A.NREUM || (i._A.NREUM = {}), void 0 === i._A.newrelic &amp;&amp; (i._A.newrelic = i._A.NREUM), i._A.NREUM } function s() { let e = a(); return e.o || (e.o = { ST: i._A.setTimeout, SI: i._A.setImmediate, CT: i._A.clearTimeout, XHR: i._A.XMLHttpRequest, REQ: i._A.Request, EV: i._A.Event, PR: i._A.Promise, MO: i._A.MutationObserver, FETCH: i._A.fetch }), e } function c(e, t, r) { let i = a(); const o = i.initializedAgents || {}, s = o[e] || {}; return Object.keys(s).length || (s.initializedAt = { ms: (0, n.zO)(), date: new Date }), i.initializedAgents = { ...o, [e]: { ...s, [r]: t } }, i } function u(e, t) { a()[e] = t } function d() { return function () { let e = a(); const t = e.info || {}; e.info = { beacon: o.beacon, errorBeacon: o.errorBeacon, ...t } }(), function () { let e = a(); const t = e.init || {}; e.init = { ...t } }(), s(), function () { let e = a(); const t = e.loader_config || {}; e.loader_config = { ...t } }(), a() } }, 6998: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { N: () =&gt; i, e: () =&gt; o }); var n = r(8544); function i(e) { let t = arguments.length &gt; 1 &amp;&amp; void 0 !== arguments[1] &amp;&amp; arguments[1]; return void (0, n.iz)(&quot;visibilitychange&quot;, r); function r() { if (t) { if (&quot;hidden&quot; != document.visibilityState) return; e() } e(document.visibilityState) } } function o() { return &quot;hidden&quot; === document.visibilityState ? -1 : 1 / 0 } }, 6408: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { W: () =&gt; i }); var n = r(2374); function i() { return &quot;function&quot; == typeof n._A?.PerformanceObserver } }, 8675: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { t: () =&gt; n }); const n = r(2325).D.ajax }, 8322: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { A: () =&gt; i, t: () =&gt; n }); const n = r(2325).D.jserrors, i = &quot;nr@seenError&quot; }, 6034: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { t: () =&gt; n }); const n = r(2325).D.metrics }, 6486: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { t: () =&gt; n }); const n = r(2325).D.pageAction }, 2484: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { t: () =&gt; n }); const n = r(2325).D.pageViewEvent }, 6382: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { t: () =&gt; n }); const n = r(2325).D.pageViewTiming }, 2628: (e, t, r) =&gt; { &quot;use strict&quot;; r.r(t), r.d(t, { ADD_EVENT_LISTENER: () =&gt; a, BST_RESOURCE: () =&gt; u, BST_TIMER: () =&gt; g, END: () =&gt; l, FEATURE_NAME: () =&gt; i, FN_END: () =&gt; p, FN_START: () =&gt; h, ORIG_EVENT: () =&gt; m, PUSH_STATE: () =&gt; v, REMOVE_EVENT_LISTENER: () =&gt; s, RESOURCE: () =&gt; d, RESOURCE_TIMING_BUFFER_FULL: () =&gt; c, START: () =&gt; f, learResourceTimings: () =&gt; o }); var n = r(6562); const i = r(2325).D.sessionTrace, o = &quot;learResourceTimings&quot;, a = &quot;addEventListener&quot;, s = &quot;removeEventListener&quot;, c = &quot;resourcetimingbufferfull&quot;, u = &quot;bstResource&quot;, d = &quot;resource&quot;, f = &quot;-start&quot;, l = &quot;-end&quot;, h = &quot;fn&quot; + f, p = &quot;fn&quot; + l, g = &quot;bstTimer&quot;, v = &quot;pushState&quot;, m = n.Yu.EV }, 755: (e, t, r) =&gt; { &quot;use strict&quot;; r.r(t), r.d(t, { ADD_EVENT_LISTENER: () =&gt; S, BODY: () =&gt; x, CB_END: () =&gt; O, CB_START: () =&gt; d, END: () =&gt; T, FEATURE_NAME: () =&gt; o, FETCH: () =&gt; _, FETCH_BODY: () =&gt; b, FETCH_DONE: () =&gt; m, FETCH_START: () =&gt; v, FN_END: () =&gt; u, FN_START: () =&gt; c, INTERACTION: () =&gt; h, INTERACTION_API: () =&gt; f, INTERACTION_EVENTS: () =&gt; a, JSONP_END: () =&gt; y, JSONP_NODE: () =&gt; g, JS_TIME: () =&gt; A, LOCATION: () =&gt; D, MAX_TIMER_BUDGET: () =&gt; s, REMAINING: () =&gt; l, SPA_NODE: () =&gt; p, START: () =&gt; E, WIN: () =&gt; N, originalSetTimeout: () =&gt; w }); var n = r(6562), i = r(2374); const o = r(2325).D.spa, a = [&quot;click&quot;, &quot;submit&quot;, &quot;keypress&quot;, &quot;keydown&quot;, &quot;keyup&quot;, &quot;change&quot;], s = 999, c = &quot;fn-start&quot;, u = &quot;fn-end&quot;, d = &quot;cb-start&quot;, f = &quot;api-ixn-&quot;, l = &quot;remaining&quot;, h = &quot;interaction&quot;, p = &quot;spaNode&quot;, g = &quot;jsonpNode&quot;, v = &quot;fetch-start&quot;, m = &quot;fetch-done&quot;, b = &quot;fetch-body-&quot;, y = &quot;jsonp-end&quot;, w = n.Yu.ST, E = &quot;-start&quot;, T = &quot;-end&quot;, x = &quot;-body&quot;, O = &quot;cb&quot; + T, A = &quot;jsTime&quot;, _ = &quot;fetch&quot;, S = &quot;addEventListener&quot;, N = i._A, D = N.location }, 1509: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { W: () =&gt; s }); var n = r(6562), i = r(3752), o = r(2384), a = r(6797); class s { constructor(e, t, r) { this.agentIdentifier = e, this.aggregator = t, this.ee = i.ee.get(e, (0, n.OP)(this.agentIdentifier).isolatedBacklog), this.featureName = r, this.blocked = !1, this.checkConfiguration() } checkConfiguration() { if (!(0, n.lF)(this.agentIdentifier)) { let e = { ...(0, a.gG)().info?.jsAttributes }; try { e = { ...e, ...(0, n.C5)(this.agentIdentifier)?.jsAttributes } } catch (e) { } (0, o.j)(this.agentIdentifier, { ...(0, a.gG)(), info: { ...(0, a.gG)().info, jsAttributes: e } }) } } } }, 2384: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { j: () =&gt; y }); var n = r(8683), i = r.n(n), o = r(2325), a = r(6562), s = r(9252), c = r(7022), u = r(3752), d = r(2053), f = r(4329), l = r(2650), h = r(2374); function p(e, t, n) { n || (0, f.R)(e, &quot;api&quot;), function (e) { function t(t) { for (var r = arguments.length, n = new Array(r &gt; 1 ? r - 1 : 0), i = 1; i &lt; r; i++)n[i - 1] = arguments[i]; Object.values(e.initializedAgents).forEach((e =&gt; { e.exposed &amp;&amp; e.api[t] &amp;&amp; e.api[t](...n) })) } [&quot;setErrorHandler&quot;, &quot;finished&quot;, &quot;addToTrace&quot;, &quot;inlineHit&quot;, &quot;addRelease&quot;, &quot;addPageAction&quot;, &quot;setCurrentRouteName&quot;, &quot;setPageViewName&quot;, &quot;setCustomAttribute&quot;, &quot;interaction&quot;, &quot;noticeError&quot;].forEach((r =&gt; { e[r] = function () { for (var e = arguments.length, n = new Array(e), i = 0; i &lt; e; i++)n[i] = arguments[i]; return t(r, ...n) } })) }(t); var p = u.ee.get(e), g = p.get(&quot;tracer&quot;), v = &quot;api-&quot;, m = &quot;api-ixn-&quot;; function b() { } (0, c.D)([&quot;setErrorHandler&quot;, &quot;finished&quot;, &quot;addToTrace&quot;, &quot;inlineHit&quot;, &quot;addRelease&quot;], (function (e, r) { t[r] = w(v, r, !0, &quot;api&quot;) })), t.addPageAction = w(v, &quot;addPageAction&quot;, !0, o.D.pageAction), t.setCurrentRouteName = w(v, &quot;routeName&quot;, !0, o.D.spa), t.setPageViewName = function (t, r) { if (&quot;string&quot; == typeof t) return &quot;/&quot; !== t.charAt(0) &amp;&amp; (t = &quot;/&quot; + t), (0, a.OP)(e).customTransaction = (r || &quot;http://custom.transaction&quot;) + t, w(v, &quot;setPageViewName&quot;, !0, &quot;api&quot;)() }, t.setCustomAttribute = function (t, r) { const n = (0, a.C5)(e); return (0, a.CX)(e, { ...n, jsAttributes: { ...n.jsAttributes, [t]: r } }), w(v, &quot;setCustomAttribute&quot;, !0, &quot;api&quot;)() }, t.interaction = function () { return (new b).get() }; var y = b.prototype = { createTracer: function (e, t) { var r = {}, n = this, i = &quot;function&quot; == typeof t; return (0, s.p)(&quot;api-ixn-tracer&quot;, [(0, d.zO)(), e, r], n, o.D.spa, p), function () { if (g.emit((i ? &quot;&quot; : &quot;no-&quot;) + &quot;fn-start&quot;, [(0, d.zO)(), n, i], r), i) try { return t.apply(this, arguments) } catch (e) { throw g.emit(&quot;fn-err&quot;, [arguments, this, &quot;string&quot; == typeof e ? new Error(e) : e], r), e } finally { g.emit(&quot;fn-end&quot;, [(0, d.zO)()], r) } } } }; function w(e, t, r, n) { return function () { return (0, s.p)(&quot;record-supportability&quot;, [&quot;API/&quot; + t + &quot;/called&quot;], void 0, o.D.metrics, p), (0, s.p)(e + t, [(0, d.zO)()].concat(i()(arguments)), r ? null : this, n, p), r ? void 0 : this } } function E() { r.e(692).then(r.bind(r, 5692)).then((t =&gt; { let { setAPI: r } = t; r(e), (0, f.L)(e, &quot;api&quot;) })) } (0, c.D)(&quot;actionText,setName,setAttribute,save,ignore,onEnd,getContext,end,get&quot;.split(&quot;,&quot;), (function (e, t) { y[t] = w(m, t, void 0, o.D.spa) })), t.noticeError = function (e, t) { &quot;string&quot; == typeof e &amp;&amp; (e = new Error(e)), (0, s.p)(&quot;record-supportability&quot;, [&quot;API/noticeError/called&quot;], void 0, o.D.metrics, p), (0, s.p)(&quot;err&quot;, [e, (0, d.zO)(), !1, t], void 0, o.D.jserrors, p) }, h.v6 ? E() : (0, l.b)((() =&gt; E()), !0) } var g = r(6797); const v = { stn: o.D.sessionTrace, err: o.D.jserrors, ins: o.D.pageAction, spa: o.D.spa }; function m(e, t) { var r = u.ee.get(t); e &amp;&amp; &quot;object&quot; == typeof e &amp;&amp; ((0, c.D)(e, (function (e, t) { if (!t) return (0, s.p)(&quot;block-&quot; + e, [], void 0, v[e], r); t &amp;&amp; !b[e] &amp;&amp; ((0, s.p)(&quot;feat-&quot; + e, [], void 0, v[e], r), b[e] = !0) })), (0, f.L)(t, o.D.pageViewEvent)) } const b = {}; function y(e) { let t = arguments.length &gt; 1 &amp;&amp; void 0 !== arguments[1] ? arguments[1] : {}, r = arguments.length &gt; 2 ? arguments[2] : void 0, n = arguments.length &gt; 3 ? arguments[3] : void 0, { init: i, info: o, loader_config: s, runtime: c = { loaderType: r }, exposed: u = !0 } = t; const d = (0, g.gG)(); let f = {}; return o || (i = d.init, o = d.info, s = d.loader_config, f = d), h.v6 &amp;&amp; (o.jsAttributes = { ...o.jsAttributes, isWorker: !0 }), (0, a.CX)(e, o), (0, a.Dg)(e, i || {}), (0, a.GE)(e, s || {}), (0, a.sU)(e, c), p(e, f, n), (0, g.Qy)(e, d, &quot;api&quot;), (0, g.Qy)(e, u, &quot;exposed&quot;), h.v6 || ((0, g.EZ)(&quot;activatedFeatures&quot;, b), (0, g.EZ)(&quot;setToken&quot;, (t =&gt; m(t, e)))), f } }, 909: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { Z: () =&gt; i, q: () =&gt; o }); var n = r(2325); function i(e) { switch (e) { case n.D.ajax: return [n.D.jserrors]; case n.D.sessionTrace: return [n.D.ajax, n.D.pageViewEvent]; case n.D.pageViewTiming: return [n.D.pageViewEvent]; default: return [] } } function o(e) { return e === n.D.jserrors ? [] : [&quot;auto&quot;] } }, 2325: (e, t, r) =&gt; { &quot;use strict&quot;; r.d(t, { D: () =&gt; n, p: () =&gt; i }); const n = { ajax: &quot;ajax&quot;, jserrors: &quot;jserrors&quot;, metrics: &quot;metrics&quot;, pageAction: &quot;page_action&quot;, pageViewEvent: &quot;page_view_event&quot;, pageViewTiming: &quot;page_view_timing&quot;, sessionTrace: &quot;session_trace&quot;, spa: &quot;spa&quot; }, i = { [n.pageViewEvent]: 1, [n.pageViewTiming]: 2, [n.metrics]: 3, [n.jserrors]: 4, [n.ajax]: 5, [n.sessionTrace]: 6, [n.pageAction]: 7, [n.spa]: 8 } }, 8683: e =&gt; { e.exports = function (e, t, r) { t || (t = 0), void 0 === r &amp;&amp; (r = e ? e.length : 0); for (var n = -1, i = r - t || 0, o = Array(i &lt; 0 ? 0 : i); ++n &lt; i;)o[n] = e[t + n]; return o } }, 4992: (e, t, r) =&gt; { var n = { &quot;./ajax/aggregate&quot;: [960, 779, 960], &quot;./jserrors/aggregate&quot;: [6112, 779, 112], &quot;./metrics/aggregate&quot;: [4325, 779, 325], &quot;./page_action/aggregate&quot;: [6817, 779, 817], &quot;./page_view_event/aggregate&quot;: [4823, 779, 823], &quot;./page_view_timing/aggregate&quot;: [8785, 779, 785], &quot;./session_trace/aggregate&quot;: [1307, 779, 307], &quot;./spa/aggregate&quot;: [9378, 779, 378] }; function i(e) { if (!r.o(n, e)) return Promise.resolve().then((() =&gt; { var t = new Error(&quot;Cannot find module &#39;&quot; + e + &quot;&#39;&quot;); throw t.code = &quot;MODULE_NOT_FOUND&quot;, t })); var t = n[e], i = t[0]; return Promise.all(t.slice(1).map(r.e)).then((() =&gt; r(i))) } i.keys = () =&gt; Object.keys(n), i.id = 4992, e.exports = i } }, n = {}; function i(e) { var t = n[e]; if (void 0 !== t) return t.exports; var o = n[e] = { exports: {} }; return r[e](o, o.exports, i), o.exports } i.m = r, i.n = e =&gt; { var t = e &amp;&amp; e.__esModule ? () =&gt; e.default : () =&gt; e; return i.d(t, { a: t }), t }, i.d = (e, t) =&gt; { for (var r in t) i.o(t, r) &amp;&amp; !i.o(e, r) &amp;&amp; Object.defineProperty(e, r, { enumerable: !0, get: t[r] }) }, i.f = {}, i.e = e =&gt; Promise.all(Object.keys(i.f).reduce(((t, r) =&gt; (i.f[r](e, t), t)), [])), i.u = e =&gt; e + &quot;.&quot; + i.h().slice(0, 8) + &quot;-1223.js&quot;, i.h = () =&gt; &quot;215647de1097144af948&quot;, i.o = (e, t) =&gt; Object.prototype.hasOwnProperty.call(e, t), e = {}, t = &quot;NRBA:&quot;, i.l = (r, n, o, a) =&gt; { if (e[r]) e[r].push(n); else { var s, c; if (void 0 !== o) for (var u = document.getElementsByTagName(&quot;script&quot;), d = 0; d &lt; u.length; d++) { var f = u[d]; if (f.getAttribute(&quot;src&quot;) == r || f.getAttribute(&quot;data-webpack&quot;) == t + o) { s = f; break } } s || (c = !0, (s = document.createElement(&quot;script&quot;)).charset = &quot;utf-8&quot;, s.timeout = 120, i.nc &amp;&amp; s.setAttribute(&quot;nonce&quot;, i.nc), s.setAttribute(&quot;data-webpack&quot;, t + o), s.src = r), e[r] = [n]; var l = (t, n) =&gt; { s.onerror = s.onload = null, clearTimeout(h); var i = e[r]; if (delete e[r], s.parentNode &amp;&amp; s.parentNode.removeChild(s), i &amp;&amp; i.forEach((e =&gt; e(n))), t) return t(n) }, h = setTimeout(l.bind(null, void 0, { type: &quot;timeout&quot;, target: s }), 12e4); s.onerror = l.bind(null, s.onerror), s.onload = l.bind(null, s.onload), c &amp;&amp; document.head.appendChild(s) } }, i.r = e =&gt; { &quot;undefined&quot; != typeof Symbol &amp;&amp; Symbol.toStringTag &amp;&amp; Object.defineProperty(e, Symbol.toStringTag, { value: &quot;Module&quot; }), Object.defineProperty(e, &quot;__esModule&quot;, { value: !0 }) }, i.p = &quot;https://js-agent.newrelic.com/&quot;, (() =&gt; { var e = { 939: 0, 866: 0 }; i.f.j = (t, r) =&gt; { var n = i.o(e, t) ? e[t] : void 0; if (0 !== n) if (n) r.push(n[2]); else { var o = new Promise(((r, i) =&gt; n = e[t] = [r, i])); r.push(n[2] = o); var a = i.p + i.u(t), s = new Error; i.l(a, (r =&gt; { if (i.o(e, t) &amp;&amp; (0 !== (n = e[t]) &amp;&amp; (e[t] = void 0), n)) { var o = r &amp;&amp; (&quot;load&quot; === r.type ? &quot;missing&quot; : r.type), a = r &amp;&amp; r.target &amp;&amp; r.target.src; s.message = &quot;Loading chunk &quot; + t + &quot; failed.\n(&quot; + o + &quot;: &quot; + a + &quot;)&quot;, s.name = &quot;ChunkLoadError&quot;, s.type = o, s.request = a, n[1](s) } }), &quot;chunk-&quot; + t, t) } }; var t = (t, r) =&gt; { var n, o, [a, s, c] = r, u = 0; if (a.some((t =&gt; 0 !== e[t]))) { for (n in s) i.o(s, n) &amp;&amp; (i.m[n] = s[n]); if (c) c(i) } for (t &amp;&amp; t(r); u &lt; a.length; u++)o = a[u], i.o(e, o) &amp;&amp; e[o] &amp;&amp; e[o][0](), e[o] = 0 }, r = window.webpackChunkNRBA = window.webpackChunkNRBA || []; r.forEach(t.bind(null, 0)), r.push = t.bind(null, r.push.bind(r)) })(); var o = {}; (() =&gt; { &quot;use strict&quot;; i.r(o); var e = i(2325), t = i(6562); const r = Object.values(e.D); function n(e) { const n = {}; return r.forEach((r =&gt; { n[r] = function (e, r) { return !1 !== (0, t.Mt)(r, `${e}.enabled`) }(r, e) })), n } var a = i(2384), s = i(909), c = i(9557), u = i(7022); class d extends c.w { constructor(e) { super(e), this.aggregatedData = {} } store(e, t, r, n, i) { var o = this.getBucket(e, t, r, i); return o.metrics = function (e, t) { t || (t = { count: 0 }); return t.count += 1, (0, u.D)(e, (function (e, r) { t[e] = f(r, t[e]) })), t }(n, o.metrics), o } merge(e, t, r, n, i) { var o = this.getBucket(e, t, n, i); if (o.metrics) { var a = o.metrics; a.count += r.count, (0, u.D)(r, (function (e, t) { if (&quot;count&quot; !== e) { var n = a[e], i = r[e]; i &amp;&amp; !i.c ? a[e] = f(i.t, n) : a[e] = function (e, t) { if (!t) return e; t.c || (t = l(t.t)); return t.min = Math.min(e.min, t.min), t.max = Math.max(e.max, t.max), t.t += e.t, t.sos += e.sos, t.c += e.c, t }(i, a[e]) } })) } else o.metrics = r } storeMetric(e, t, r, n) { var i = this.getBucket(e, t, r); return i.stats = f(n, i.stats), i } getBucket(e, t, r, n) { this.aggregatedData[e] || (this.aggregatedData[e] = {}); var i = this.aggregatedData[e][t]; return i || (i = this.aggregatedData[e][t] = { params: r || {} }, n &amp;&amp; (i.custom = n)), i } get(e, t) { return t ? this.aggregatedData[e] &amp;&amp; this.aggregatedData[e][t] : this.aggregatedData[e] } take(e) { for (var t = {}, r = &quot;&quot;, n = !1, i = 0; i &lt; e.length; i++)t[r = e[i]] = h(this.aggregatedData[r]), t[r].length &amp;&amp; (n = !0), delete this.aggregatedData[r]; return n ? t : null } } function f(e, t) { return null == e ? function (e) { e ? e.c++ : e = { c: 1 }; return e }(t) : t ? (t.c || (t = l(t.t)), t.c += 1, t.t += e, t.sos += e * e, e &gt; t.max &amp;&amp; (t.max = e), e &lt; t.min &amp;&amp; (t.min = e), t) : { t: e } } function l(e) { return { t: e, min: e, max: e, sos: e * e, c: 1 } } function h(e) { return &quot;object&quot; != typeof e ? [] : (0, u.D)(e, p) } function p(e, t) { return t } var g = i(6797), v = i(5526), m = i(8610); var b = i(9252), y = i(2053), w = i(8283), E = i(6625), T = i(4329), x = i(1509), O = i(2650), A = i(2374); class _ extends x.W { constructor(e, t, r) { let n = !(arguments.length &gt; 3 &amp;&amp; void 0 !== arguments[3]) || arguments[3]; super(e, t, r), this.completed = new Promise(((e, t) =&gt; { this.resolve = e, this.reject = t })), this.hasAggregator = !1, this.auto = n, n &amp;&amp; (0, T.R)(e, r) } importAggregator() { try { if (this.hasAggregator || !this.auto) return; this.hasAggregator = !0; const e = async () =&gt; { try { const { Aggregate: e } = await i(4992)(`./${this.featureName}/aggregate`); new e(this.agentIdentifier, this.aggregator), this.resolve() } catch (e) { (0, m.Z)(`Failed to import aggregator class for ${this.featureName}`, e) } }; A.v6 ? e() : (0, O.b)((() =&gt; e()), !0) } catch (e) { this.reject(e) } } } var S, N, D, P = i(2484); class I extends _ { constructor(e, t) { let r = !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]; super(e, t, P.t, r), A.il &amp;&amp; ((0, E.v)(e), (0, w.B)(e, &quot;firstbyte&quot;, (0, y.yf)()), (0, O.K)((() =&gt; this.measureDomContentLoaded())), (0, O.b)((() =&gt; this.measureWindowLoaded()), !0), this.importAggregator()) } measureWindowLoaded() { var t = (0, y.zO)(); (0, w.B)(this.agentIdentifier, &quot;onload&quot;, t + (0, y.os)()), (0, b.p)(&quot;timing&quot;, [&quot;load&quot;, t], void 0, e.D.pageViewTiming, this.ee) } measureDomContentLoaded() { (0, w.B)(this.agentIdentifier, &quot;domContent&quot;, (0, y.zO)() + (0, y.os)()) } } S = I, N = &quot;featureName&quot;, D = P.t, N in S ? Object.defineProperty(S, N, { value: D, enumerable: !0, configurable: !0, writable: !0 }) : S[N] = D; var R = i(6998), C = i(8544), j = i(6382); class k extends _ { constructor(t, r) { var n; let i = !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]; if (super(t, r, j.t, i), n = this, A.il) { if (this.pageHiddenTime = (0, R.e)(), this.performanceObserver, this.lcpPerformanceObserver, this.clsPerformanceObserver, this.fiRecorded = !1, &quot;PerformanceObserver&quot; in window &amp;&amp; &quot;function&quot; == typeof window.PerformanceObserver) { this.performanceObserver = new PerformanceObserver((function () { return n.perfObserver(...arguments) })); try { this.performanceObserver.observe({ entryTypes: [&quot;paint&quot;] }) } catch (e) { } this.lcpPerformanceObserver = new PerformanceObserver((function () { return n.lcpObserver(...arguments) })); try { this.lcpPerformanceObserver.observe({ entryTypes: [&quot;largest-contentful-paint&quot;] }) } catch (e) { } this.clsPerformanceObserver = new PerformanceObserver((function () { return n.clsObserver(...arguments) })); try { this.clsPerformanceObserver.observe({ type: &quot;layout-shift&quot;, buffered: !0 }) } catch (e) { } } this.fiRecorded = !1;[&quot;click&quot;, &quot;keydown&quot;, &quot;mousedown&quot;, &quot;pointerdown&quot;, &quot;touchstart&quot;].forEach((e =&gt; { (0, C.iz)(e, (function () { return n.captureInteraction(...arguments) })) })), (0, R.N)((() =&gt; { this.pageHiddenTime = (0, y.zO)(), (0, b.p)(&quot;docHidden&quot;, [this.pageHiddenTime], void 0, e.D.pageViewTiming, this.ee) }), !0), (0, C.bP)(&quot;pagehide&quot;, (() =&gt; (0, b.p)(&quot;winPagehide&quot;, [(0, y.zO)()], void 0, e.D.pageViewTiming, this.ee))), this.importAggregator() } } perfObserver(t, r) { t.getEntries().forEach((t =&gt; { &quot;first-paint&quot; === t.name ? (0, b.p)(&quot;timing&quot;, [&quot;fp&quot;, Math.floor(t.startTime)], void 0, e.D.pageViewTiming, this.ee) : &quot;first-contentful-paint&quot; === t.name &amp;&amp; (0, b.p)(&quot;timing&quot;, [&quot;fcp&quot;, Math.floor(t.startTime)], void 0, e.D.pageViewTiming, this.ee) })) } lcpObserver(t, r) { var n = t.getEntries(); if (n.length &gt; 0) { var i = n[n.length - 1]; if (this.pageHiddenTime &lt; i.startTime) return; var o = [i], a = this.addConnectionAttributes({}); a &amp;&amp; o.push(a), (0, b.p)(&quot;lcp&quot;, o, void 0, e.D.pageViewTiming, this.ee) } } clsObserver(t) { t.getEntries().forEach((t =&gt; { t.hadRecentInput || (0, b.p)(&quot;cls&quot;, [t], void 0, e.D.pageViewTiming, this.ee) })) } addConnectionAttributes(e) { var t = navigator.connection || navigator.mozConnection || navigator.webkitConnection; if (t) return t.type &amp;&amp; (e[&quot;net-type&quot;] = t.type), t.effectiveType &amp;&amp; (e[&quot;net-etype&quot;] = t.effectiveType), t.rtt &amp;&amp; (e[&quot;net-rtt&quot;] = t.rtt), t.downlink &amp;&amp; (e[&quot;net-dlink&quot;] = t.downlink), e } captureInteraction(r) { if (r instanceof t.Yu.EV &amp;&amp; !this.fiRecorded) { var n = Math.round(r.timeStamp), i = { type: r.type }; this.addConnectionAttributes(i), n &lt;= (0, y.zO)() ? i.fid = (0, y.zO)() - n : n &gt; (0, y.os)() &amp;&amp; n &lt;= Date.now() ? (n -= (0, y.os)(), i.fid = (0, y.zO)() - n) : n = (0, y.zO)(), this.fiRecorded = !0, (0, b.p)(&quot;timing&quot;, [&quot;fi&quot;, n, i], void 0, e.D.pageViewTiming, this.ee) } } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(k, &quot;featureName&quot;, j.t); var L = i(4045), M = &quot;React&quot;, H = &quot;Angular&quot;, z = &quot;AngularJS&quot;, B = &quot;Backbone&quot;, F = &quot;Ember&quot;, $ = &quot;Vue&quot;, U = &quot;Meteor&quot;, V = &quot;Zepto&quot;, G = &quot;Jquery&quot;; function q() { if (!A.il) return []; var e = []; try { (function () { try { if (window.React || window.ReactDOM || window.ReactRedux) return !0; if (document.querySelector(&quot;[data-reactroot], [data-reactid]&quot;)) return !0; for (var e = document.querySelectorAll(&quot;body &gt; div&quot;), t = 0; t &lt; e.length; t++)if (Object.keys(e[t]).indexOf(&quot;_reactRootContainer&quot;) &gt;= 0) return !0; return !1 } catch (e) { return !1 } })() &amp;&amp; e.push(M), function () { try { return !!window.angular || (!!document.querySelector(&quot;.ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]&quot;) || !!document.querySelector(&#39;script[src*=&quot;angular.js&quot;], script[src*=&quot;angular.min.js&quot;]&#39;)) } catch (e) { return !1 } }() &amp;&amp; e.push(z), function () { try { return !!(window.hasOwnProperty(&quot;ng&quot;) &amp;&amp; window.ng.hasOwnProperty(&quot;coreTokens&quot;) &amp;&amp; window.ng.coreTokens.hasOwnProperty(&quot;NgZone&quot;)) || !!document.querySelectorAll(&quot;[ng-version]&quot;).length } catch (e) { return !1 } }() &amp;&amp; e.push(H), window.Backbone &amp;&amp; e.push(B), window.Ember &amp;&amp; e.push(F), window.Vue &amp;&amp; e.push($), window.Meteor &amp;&amp; e.push(U), window.Zepto &amp;&amp; e.push(V), window.jQuery &amp;&amp; e.push(G) } catch (e) { } return e } var W = i(9548), X = i(9226), Z = i(8226); const Y = Boolean(A._A?.Worker), J = Boolean(A._A?.SharedWorker), Q = Boolean(A._A?.navigator?.serviceWorker); let K, ee, te; var re = i(6034); class ne extends _ { constructor(e, t) { var r; let n = arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2] ? arguments[2] : {}, i = !(arguments.length &gt; 3 &amp;&amp; void 0 !== arguments[3]) || arguments[3]; super(e, t, re.t, i), r = this, this.PfFeatStatusEnum = n, this.singleChecks(), this.eachSessionChecks(), (0, L.X)(&quot;record-supportability&quot;, (function () { return r.recordSupportability(...arguments) }), this.featureName, this.ee), (0, L.X)(&quot;record-custom&quot;, (function () { return r.recordCustom(...arguments) }), this.featureName, this.ee), this.importAggregator() } recordSupportability(e, t) { var r = [&quot;sm&quot;, e, { name: e }, t]; return (0, b.p)(&quot;storeMetric&quot;, r, null, this.featureName, this.ee), r } recordCustom(e, t) { var r = [&quot;cm&quot;, e, { name: e }, t]; return (0, b.p)(&quot;storeEventMetrics&quot;, r, null, this.featureName, this.ee), r } singleChecks() { this.recordSupportability(`Generic/Version/${Z.q}/Detected`); const { loaderType: e } = (0, t.OP)(this.agentIdentifier); e &amp;&amp; this.recordSupportability(`Generic/LoaderType/${e}/Detected`), A.il &amp;&amp; (0, O.K)((() =&gt; { q().forEach((e =&gt; { this.recordSupportability(&quot;Framework/&quot; + e + &quot;/Detected&quot;) })) })), W.T.isFileProtocol() &amp;&amp; (this.recordSupportability(&quot;Generic/FileProtocol/Detected&quot;), W.T.supportabilityMetricSent = !0); const r = (0, X.$c)(this.agentIdentifier); r.length &gt; 0 &amp;&amp; this.recordSupportability(&quot;Generic/Obfuscate/Detected&quot;), r.length &gt; 0 &amp;&amp; !(0, X.Ng)(r) &amp;&amp; this.recordSupportability(&quot;Generic/Obfuscate/Invalid&quot;), A.il &amp;&amp; this.reportPolyfillsNeeded(), function (e) { if (!K) { if (Y) { K = Worker; try { A._A.Worker = r(K, &quot;Dedicated&quot;) } catch (e) { o(e, &quot;Dedicated&quot;) } if (J) { ee = SharedWorker; try { A._A.SharedWorker = r(ee, &quot;Shared&quot;) } catch (e) { o(e, &quot;Shared&quot;) } } else n(&quot;Shared&quot;); if (Q) { te = navigator.serviceWorker.register; try { A._A.navigator.serviceWorker.register = (t = te, function () { for (var e = arguments.length, r = new Array(e), n = 0; n &lt; e; n++)r[n] = arguments[n]; return i(&quot;Service&quot;, r[1]?.type), t.apply(navigator.serviceWorker, r) }) } catch (e) { o(e, &quot;Service&quot;) } } else n(&quot;Service&quot;); var t; return } n(&quot;All&quot;) } function r(e, t) { return new Proxy(e, { construct: (e, r) =&gt; (i(t, r[1]?.type), new e(...r)) }) } function n(t) { A.v6 || e(`Workers/${t}/Unavailable`) } function i(t, r) { e(&quot;module&quot; === r ? `Workers/${t}/Module` : `Workers/${t}/Classic`) } function o(t, r) { e(`Workers/${r}/SM/Unsupported`), (0, m.Z)(`NR Agent: Unable to capture ${r} workers.`, t) } }(this.recordSupportability.bind(this)) } reportPolyfillsNeeded() { this.recordSupportability(`Generic/Polyfill/Promise/${this.PfFeatStatusEnum.PROMISE}`), this.recordSupportability(`Generic/Polyfill/ArrayIncludes/${this.PfFeatStatusEnum.ARRAY_INCLUDES}`), this.recordSupportability(`Generic/Polyfill/ObjectAssign/${this.PfFeatStatusEnum.OBJECT_ASSIGN}`), this.recordSupportability(`Generic/Polyfill/ObjectEntries/${this.PfFeatStatusEnum.OBJECT_ENTRIES}`) } eachSessionChecks() { A.il &amp;&amp; (0, C.bP)(&quot;pageshow&quot;, (e =&gt; { e.persisted &amp;&amp; this.recordCustom(&quot;Custom/BFCache/PageRestored&quot;) })) } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(ne, &quot;featureName&quot;, re.t); var ie = i(3916), oe = i(3752), ae = i(8683), se = i.n(ae), ce = A._A, ue = &quot;fetch-&quot;, de = &quot;fetch-body-&quot;, fe = [&quot;arrayBuffer&quot;, &quot;blob&quot;, &quot;json&quot;, &quot;text&quot;, &quot;formData&quot;], le = ce.Request, he = ce.Response, pe = &quot;prototype&quot;, ge = &quot;nr@context&quot;; const ve = {}; function me(e) { const t = function (e) { return (e || oe.ee).get(&quot;fetch&quot;) }(e); if (!(le &amp;&amp; he &amp;&amp; ce.fetch)) return t; if (ve[t.debugId]) return t; function r(e, r, n) { var i = e[r]; &quot;function&quot; == typeof i &amp;&amp; (e[r] = function () { var e, r = se()(arguments), o = {}; t.emit(n + &quot;before-start&quot;, [r], o), o[ge] &amp;&amp; o[ge].dt &amp;&amp; (e = o[ge].dt); var a = i.apply(this, r); return t.emit(n + &quot;start&quot;, [r, e], a), a.then((function (e) { return t.emit(n + &quot;end&quot;, [null, e], a), e }), (function (e) { throw t.emit(n + &quot;end&quot;, [e], a), e })) }) } return ve[t.debugId] = !0, (0, u.D)(fe, (function (e, t) { r(le[pe], t, de), r(he[pe], t, de) })), r(ce, &quot;fetch&quot;, ue), t.on(&quot;fetch-end&quot;, (function (e, r) { var n = this; if (r) { var i = r.headers.get(&quot;content-length&quot;); null !== i &amp;&amp; (n.rxSize = i), t.emit(&quot;fetch-done&quot;, [null, r], n) } else t.emit(&quot;fetch-done&quot;, [e], n) })), t } var be = &quot;nr@original&quot;, ye = Object.prototype.hasOwnProperty, we = !1; function Ee(e, t) { return e || (e = oe.ee), r.inPlace = function (e, t, n, i, o) { n || (n = &quot;&quot;); var a, s, c, u = &quot;-&quot; === n.charAt(0); for (c = 0; c &lt; t.length; c++)s = t[c], Oe(a = e[s]) || (e[s] = r(a, u ? s + n : n, i, s, o)) }, r.flag = be, r; function r(t, r, i, o, a) { return Oe(t) ? t : (r || (r = &quot;&quot;), nrWrapper[be] = t, xe(t, nrWrapper, e), nrWrapper); function nrWrapper() { var s, c, u, d; try { c = this, s = se()(arguments), u = &quot;function&quot; == typeof i ? i(s, c) : i || {} } catch (t) { Te([t, &quot;&quot;, [s, c, o], u], e) } n(r + &quot;start&quot;, [s, c, o], u, a); try { return d = t.apply(c, s) } catch (e) { throw n(r + &quot;err&quot;, [s, c, e], u, a), e } finally { n(r + &quot;end&quot;, [s, c, d], u, a) } } } function n(r, n, i, o) { if (!we || t) { var a = we; we = !0; try { e.emit(r, n, i, t, o) } catch (t) { Te([t, r, n, i], e) } we = a } } } function Te(e, t) { t || (t = oe.ee); try { t.emit(&quot;internal-error&quot;, e) } catch (e) { } } function xe(e, t, r) { if (Object.defineProperty &amp;&amp; Object.keys) try { return Object.keys(e).forEach((function (r) { Object.defineProperty(t, r, { get: function () { return e[r] }, set: function (t) { return e[r] = t, t } }) })), t } catch (e) { Te([e], r) } for (var n in e) ye.call(e, n) &amp;&amp; (t[n] = e[n]); return t } function Oe(e) { return !(e &amp;&amp; e instanceof Function &amp;&amp; e.apply &amp;&amp; !e[be]) } function Ae(e, t, r) { var n = e[t]; e[t] = function (e, t) { var r = t(e); return r[be] = e, xe(e, r, oe.ee), r }(n, r) } function _e() { for (var e = arguments.length, t = new Array(e), r = 0; r &lt; e; ++r)t[r] = arguments[r]; return t } const Se = {}; function Ne(e) { const t = function (e) { return (e || oe.ee).get(&quot;timer&quot;) }(e); if (Se[t.debugId]) return t; Se[t.debugId] = !0; var r = Ee(t), n = &quot;setTimeout&quot;, i = &quot;setInterval&quot;, o = &quot;clearTimeout&quot;, a = &quot;-start&quot;; return r.inPlace(A._A, [n, &quot;setImmediate&quot;], &quot;setTimeout-&quot;), r.inPlace(A._A, [i], &quot;setInterval-&quot;), r.inPlace(A._A, [o, &quot;clearImmediate&quot;], &quot;clearTimeout-&quot;), t.on(i + a, (function (e, t, n) { e[0] = r(e[0], &quot;fn-&quot;, null, n) })), t.on(n + a, (function (e, t, n) { this.method = n, this.timerDuration = isNaN(e[1]) ? 0 : +e[1], e[0] = r(e[0], &quot;fn-&quot;, this, n) })), t } const De = {}; function Pe(e) { const t = function (e) { return (e || oe.ee).get(&quot;raf&quot;) }(e); if (De[t.debugId] || !A.il) return t; De[t.debugId] = !0; var r = Ee(t); return r.inPlace(window, [&quot;requestAnimationFrame&quot;, &quot;mozRequestAnimationFrame&quot;, &quot;webkitRequestAnimationFrame&quot;, &quot;msRequestAnimationFrame&quot;], &quot;raf-&quot;), t.on(&quot;raf-start&quot;, (function (e) { e[0] = r(e[0], &quot;fn-&quot;) })), t } const Ie = {}; function Re(e) { const t = function (e) { return (e || oe.ee).get(&quot;history&quot;) }(e); if (Ie[t.debugId] || !A.il) return t; Ie[t.debugId] = !0; var r = Ee(t), n = window.history &amp;&amp; window.history.constructor &amp;&amp; window.history.constructor.prototype, i = window.history; return n &amp;&amp; n.pushState &amp;&amp; n.replaceState &amp;&amp; (i = n), r.inPlace(i, [&quot;pushState&quot;, &quot;replaceState&quot;], &quot;-&quot;), t } const Ce = {}; function je(e) { const t = function (e) { return (e || oe.ee).get(&quot;jsonp&quot;) }(e); if (Ce[t.debugId] || !A.il) return t; Ce[t.debugId] = !0; var r = Ee(t), n = /[?&amp;](?:callback|cb)=([^&amp;#]+)/, i = /(.*)\.([^.]+)/, o = /^(\w+)(\.|$)(.*)$/, a = [&quot;appendChild&quot;, &quot;insertBefore&quot;, &quot;replaceChild&quot;]; function s(e, t) { var r = e.match(o), n = r[1], i = r[3]; return i ? s(i, t[n]) : t[n] } return &quot;addEventListener&quot; in window &amp;&amp; (Node &amp;&amp; Node.prototype &amp;&amp; Node.prototype.appendChild ? r.inPlace(Node.prototype, a, &quot;dom-&quot;) : (r.inPlace(HTMLElement.prototype, a, &quot;dom-&quot;), r.inPlace(HTMLHeadElement.prototype, a, &quot;dom-&quot;), r.inPlace(HTMLBodyElement.prototype, a, &quot;dom-&quot;))), t.on(&quot;dom-start&quot;, (function (e) { !function (e) { if (!e || &quot;string&quot; != typeof e.nodeName || &quot;script&quot; !== e.nodeName.toLowerCase()) return; if (&quot;function&quot; != typeof e.addEventListener) return; var o = (a = e.src, c = a.match(n), c ? c[1] : null); var a, c; if (!o) return; var u = function (e) { var t = e.match(i); if (t &amp;&amp; t.length &gt;= 3) return { key: t[2], parent: s(t[1], window) }; return { key: e, parent: window } }(o); if (&quot;function&quot; != typeof u.parent[u.key]) return; var d = {}; function f() { t.emit(&quot;jsonp-end&quot;, [], d), e.removeEventListener(&quot;load&quot;, f, (0, C.m$)(!1)), e.removeEventListener(&quot;error&quot;, l, (0, C.m$)(!1)) } function l() { t.emit(&quot;jsonp-error&quot;, [], d), t.emit(&quot;jsonp-end&quot;, [], d), e.removeEventListener(&quot;load&quot;, f, (0, C.m$)(!1)), e.removeEventListener(&quot;error&quot;, l, (0, C.m$)(!1)) } r.inPlace(u.parent, [u.key], &quot;cb-&quot;, d), e.addEventListener(&quot;load&quot;, f, (0, C.m$)(!1)), e.addEventListener(&quot;error&quot;, l, (0, C.m$)(!1)), t.emit(&quot;new-jsonp&quot;, [e.src], d) }(e[0]) })), t } const ke = {}; function Le(e) { const r = function (e) { return (e || oe.ee).get(&quot;mutation&quot;) }(e); if (ke[r.debugId] || !A.il) return r; ke[r.debugId] = !0; var n = Ee(r), i = t.Yu.MO; return i &amp;&amp; (window.MutationObserver = function (e) { return this instanceof i ? new i(n(e, &quot;fn-&quot;)) : i.apply(this, arguments) }, MutationObserver.prototype = i.prototype), r } const Me = {}; function He(e) { const r = function (e) { return (e || oe.ee).get(&quot;promise&quot;) }(e); if (Me[r.debugId]) return r; Me[r.debugId] = !0; var n = oe.c, i = Ee(r), o = t.Yu.PR; return o &amp;&amp; function () { function e(e) { var t = r.context(), n = i(e, &quot;executor-&quot;, t, null, !1), a = new o(n); return r.context(a).getCtx = function () { return t }, a } A._A.Promise = e, Object.defineProperty(A._A.Promise, &quot;name&quot;, { value: &quot;Promise&quot; }), [&quot;all&quot;, &quot;race&quot;].forEach((function (e) { var t = o[e]; o[e] = function (n) { var i = !1; (0, u.D)(n, (function (t, r) { Promise.resolve(r).then(s(&quot;all&quot; === e), s(!1)) })); var a = t.apply(o, arguments); return o.resolve(a); function s(e) { return function () { r.emit(&quot;propagate&quot;, [null, !i], a, !1, !1), i = i || !e } } } })), [&quot;resolve&quot;, &quot;reject&quot;].forEach((function (e) { var t = o[e]; o[e] = function (e) { var n = t.apply(o, arguments); return e !== n &amp;&amp; r.emit(&quot;propagate&quot;, [e, !0], n, !1, !1), n } })), o.prototype.catch = function (e) { return this.then(null, e) }, Object.assign(o.prototype, { constructor: { value: e } }), (0, u.D)(Object.getOwnPropertyNames(o), (function (t, r) { try { e[r] = o[r] } catch (e) { } })), Ae(o.prototype, &quot;then&quot;, (function (e) { return function () { var t = this, o = _e.apply(this, arguments), a = n(t); a.promise = t, o[0] = i(o[0], &quot;cb-&quot;, a, null, !1), o[1] = i(o[1], &quot;cb-&quot;, a, null, !1); var s = e.apply(this, o); return a.nextPromise = s, r.emit(&quot;propagate&quot;, [t, !0], s, !1, !1), s } })), r.on(&quot;executor-start&quot;, (function (e) { e[0] = i(e[0], &quot;resolve-&quot;, this, null, !1), e[1] = i(e[1], &quot;resolve-&quot;, this, null, !1) })), r.on(&quot;executor-err&quot;, (function (e, t, r) { e[1](r) })), r.on(&quot;cb-end&quot;, (function (e, t, n) { r.emit(&quot;propagate&quot;, [n, !0], this.nextPromise, !1, !1) })), r.on(&quot;propagate&quot;, (function (e, t, n) { this.getCtx &amp;&amp; !t || (this.getCtx = function () { if (e instanceof Promise) var t = r.context(e); return t &amp;&amp; t.getCtx ? t.getCtx() : this }) })), e.toString = function () { return &quot;&quot; + o } }(), r } const ze = {}; function Be(e) { var t = function (e) { return (e || oe.ee).get(&quot;events&quot;) }(e); if (ze[t.debugId]) return t; ze[t.debugId] = !0; var r = Ee(t, !0), n = XMLHttpRequest, i = &quot;addEventListener&quot;, o = &quot;removeEventListener&quot;; function a(e) { for (var t = e; t &amp;&amp; !t.hasOwnProperty(i);)t = Object.getPrototypeOf(t); t &amp;&amp; s(t) } function s(e) { r.inPlace(e, [i, o], &quot;-&quot;, c) } function c(e, t) { return e[1] } return &quot;getPrototypeOf&quot; in Object ? (A.il &amp;&amp; a(document), a(A._A), a(n.prototype)) : n.prototype.hasOwnProperty(i) &amp;&amp; (s(A._A), s(n.prototype)), t.on(&quot;addEventListener-start&quot;, (function (e, t) { var n = e[1]; if (null !== n &amp;&amp; (&quot;function&quot; == typeof n || &quot;object&quot; == typeof n)) { var i = (0, ie.X)(n, &quot;nr@wrapped&quot;, (function () { var e = { object: function () { if (&quot;function&quot; != typeof n.handleEvent) return; return n.handleEvent.apply(n, arguments) }, function: n }[typeof n]; return e ? r(e, &quot;fn-&quot;, null, e.name || &quot;anonymous&quot;) : n })); this.wrapped = e[1] = i } })), t.on(&quot;removeEventListener-start&quot;, (function (e) { e[1] = this.wrapped || e[1] })), t } const Fe = {}; function $e(e) { var r = e || oe.ee; const n = function (e) { return (e || oe.ee).get(&quot;xhr&quot;) }(r); if (Fe[n.debugId]) return n; Fe[n.debugId] = !0, Be(r); var i = Ee(n), o = t.Yu.XHR, a = t.Yu.MO, s = t.Yu.PR, c = t.Yu.SI, u = &quot;readystatechange&quot;, d = [&quot;onload&quot;, &quot;onerror&quot;, &quot;onabort&quot;, &quot;onloadstart&quot;, &quot;onloadend&quot;, &quot;onprogress&quot;, &quot;ontimeout&quot;], f = [], l = A._A.XMLHttpRequest.listeners, h = A._A.XMLHttpRequest = function (e) { var t = new o(e); function r() { try { n.emit(&quot;new-xhr&quot;, [t], t), t.addEventListener(u, g, (0, C.m$)(!1)) } catch (e) { (0, m.Z)(&quot;An error occured while intercepting XHR&quot;, e); try { n.emit(&quot;internal-error&quot;, [e]) } catch (e) { } } } return this.listeners = l ? [...l, r] : [r], this.listeners.forEach((e =&gt; e())), t }; function p(e, t) { i.inPlace(t, [&quot;onreadystatechange&quot;], &quot;fn-&quot;, E) } function g() { var e = this, t = n.context(e); e.readyState &gt; 3 &amp;&amp; !t.resolved &amp;&amp; (t.resolved = !0, n.emit(&quot;xhr-resolved&quot;, [], e)), i.inPlace(e, d, &quot;fn-&quot;, E) } if (function (e, t) { for (var r in e) t[r] = e[r] }(o, h), h.prototype = o.prototype, i.inPlace(h.prototype, [&quot;open&quot;, &quot;send&quot;], &quot;-xhr-&quot;, E), n.on(&quot;send-xhr-start&quot;, (function (e, t) { p(e, t), function (e) { f.push(e), a &amp;&amp; (v ? v.then(w) : c ? c(w) : (b = -b, y.data = b)) }(t) })), n.on(&quot;open-xhr-start&quot;, p), a) { var v = s &amp;&amp; s.resolve(); if (!c &amp;&amp; !s) { var b = 1, y = document.createTextNode(b); new a(w).observe(y, { characterData: !0 }) } } else r.on(&quot;fn-end&quot;, (function (e) { e[0] &amp;&amp; e[0].type === u || w() })); function w() { for (var e = 0; e &lt; f.length; e++)p(0, f[e]); f.length &amp;&amp; (f = []) } function E(e, t) { return t } return n } function Ue(e) { return Be(e) } function Ve(e) { return me(e) } function Ge(e) { return Re(e) } function qe(e) { return Pe(e) } function We(e) { return Ne(e) } function Xe(e) { return $e(e) } var Ze, Ye = {}; try { Ze = localStorage.getItem(&quot;__nr_flags&quot;).split(&quot;,&quot;), console &amp;&amp; &quot;function&quot; == typeof console.log &amp;&amp; (Ye.console = !0, -1 !== Ze.indexOf(&quot;dev&quot;) &amp;&amp; (Ye.dev = !0), -1 !== Ze.indexOf(&quot;nr_dev&quot;) &amp;&amp; (Ye.nrDev = !0)) } catch (e) { } function Je(e) { try { Ye.console &amp;&amp; Je(e) } catch (e) { } } Ye.nrDev &amp;&amp; oe.ee.on(&quot;internal-error&quot;, (function (e) { Je(e.stack) })), Ye.dev &amp;&amp; oe.ee.on(&quot;fn-err&quot;, (function (e, t, r) { Je(r.stack) })), Ye.dev &amp;&amp; (Je(&quot;NR AGENT IN DEVELOPMENT MODE&quot;), Je(&quot;flags: &quot; + (0, u.D)(Ye, (function (e, t) { return e })).join(&quot;, &quot;))); var Qe = i(8322); class Ke extends _ { constructor(r, n) { var i; let o = !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]; super(r, n, Qe.t, o), i = this, this.skipNext = 0, this.handleErrors = !1, this.origOnerror = A._A?.onerror; const a = this, s = (0, t.OP)(this.agentIdentifier); s.features.err = !0, a.ee.on(&quot;fn-start&quot;, (function (e, t, r) { a.handleErrors &amp;&amp; (a.skipNext += 1) })), a.ee.on(&quot;fn-err&quot;, (function (e, t, r) { a.handleErrors &amp;&amp; !r[Qe.A] &amp;&amp; ((0, ie.X)(r, Qe.A, (function () { return !0 })), this.thrown = !0, tt(r, void 0, a.ee)) })), a.ee.on(&quot;fn-end&quot;, (function () { a.handleErrors &amp;&amp; !this.thrown &amp;&amp; a.skipNext &gt; 0 &amp;&amp; (a.skipNext -= 1) })), a.ee.on(&quot;internal-error&quot;, (t =&gt; { (0, b.p)(&quot;ierr&quot;, [t, (0, y.zO)(), !0], void 0, e.D.jserrors, a.ee) })); const c = A._A?.onerror; A._A.onerror = function () { return c &amp;&amp; c(...arguments), i.onerrorHandler(...arguments), !1 }; try { A._A?.addEventListener(&quot;unhandledrejection&quot;, (t =&gt; { const r = new Error(`${t.reason}`); (0, b.p)(&quot;err&quot;, [r, (0, y.zO)(), !1, { unhandledPromiseRejection: 1 }], void 0, e.D.jserrors, this.ee) })) } catch (e) { } try { throw new Error } catch (e) { &quot;stack&quot; in e &amp;&amp; (We(this.ee), qe(this.ee), &quot;addEventListener&quot; in A._A &amp;&amp; Ue(this.ee), s.xhrWrappable &amp;&amp; Xe(this.ee), a.handleErrors = !0) } this.importAggregator() } onerrorHandler(t, r, n, i, o) { try { this.skipNext ? this.skipNext -= 1 : tt(o || new et(t, r, n), !0, this.ee) } catch (t) { try { (0, b.p)(&quot;ierr&quot;, [t, (0, y.zO)(), !0], void 0, e.D.jserrors, this.ee) } catch (e) { } } return &quot;function&quot; == typeof this.origOnerror &amp;&amp; this.origOnerror.apply(this, se()(arguments)) } } function et(e, t, r) { this.message = e || &quot;Uncaught error with no additional information&quot;, this.sourceURL = t, this.line = r } function tt(t, r, n) { var i = r ? null : (0, y.zO)(); (0, b.p)(&quot;err&quot;, [t, i], void 0, e.D.jserrors, n) } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(Ke, &quot;featureName&quot;, Qe.t); var rt = 1; function nt(e) { var t = typeof e; return !e || &quot;object&quot; !== t &amp;&amp; &quot;function&quot; !== t ? -1 : e === A._A ? 0 : (0, ie.X)(e, &quot;nr@id&quot;, (function () { return rt++ })) } var it = i(9071); function ot(e) { if (&quot;string&quot; == typeof e &amp;&amp; e.length) return e.length; if (&quot;object&quot; == typeof e) { if (&quot;undefined&quot; != typeof ArrayBuffer &amp;&amp; e instanceof ArrayBuffer &amp;&amp; e.byteLength) return e.byteLength; if (&quot;undefined&quot; != typeof Blob &amp;&amp; e instanceof Blob &amp;&amp; e.size) return e.size; if (!(&quot;undefined&quot; != typeof FormData &amp;&amp; e instanceof FormData)) try { return JSON.stringify(e).length } catch (e) { return } } } var at = i(6368); class st { constructor(e) { this.agentIdentifier = e, this.generateTracePayload = this.generateTracePayload.bind(this), this.shouldGenerateTrace = this.shouldGenerateTrace.bind(this) } generateTracePayload(e) { if (!this.shouldGenerateTrace(e)) return null; var r = (0, t.DL)(this.agentIdentifier); if (!r) return null; var n = (r.accountID || &quot;&quot;).toString() || null, i = (r.agentID || &quot;&quot;).toString() || null, o = (r.trustKey || &quot;&quot;).toString() || null; if (!n || !i) return null; var a = (0, v.M)(), s = (0, v.Ht)(), c = Date.now(), u = { spanId: a, traceId: s, timestamp: c }; return (e.sameOrigin || this.isAllowedOrigin(e) &amp;&amp; this.useTraceContextHeadersForCors()) &amp;&amp; (u.traceContextParentHeader = this.generateTraceContextParentHeader(a, s), u.traceContextStateHeader = this.generateTraceContextStateHeader(a, c, n, i, o)), (e.sameOrigin &amp;&amp; !this.excludeNewrelicHeader() || !e.sameOrigin &amp;&amp; this.isAllowedOrigin(e) &amp;&amp; this.useNewrelicHeaderForCors()) &amp;&amp; (u.newrelicHeader = this.generateTraceHeader(a, s, c, n, i, o)), u } generateTraceContextParentHeader(e, t) { return &quot;00-&quot; + t + &quot;-&quot; + e + &quot;-01&quot; } generateTraceContextStateHeader(e, t, r, n, i) { return i + &quot;@nr=0-1-&quot; + r + &quot;-&quot; + n + &quot;-&quot; + e + &quot;----&quot; + t } generateTraceHeader(e, t, r, n, i, o) { if (!(&quot;function&quot; == typeof A._A?.btoa)) return null; var a = { v: [0, 1], d: { ty: &quot;Browser&quot;, ac: n, ap: i, id: e, tr: t, ti: r } }; return o &amp;&amp; n !== o &amp;&amp; (a.d.tk = o), btoa(JSON.stringify(a)) } shouldGenerateTrace(e) { return this.isDtEnabled() &amp;&amp; this.isAllowedOrigin(e) } isAllowedOrigin(e) { var r = !1, n = {}; if ((0, t.Mt)(this.agentIdentifier, &quot;distributed_tracing&quot;) &amp;&amp; (n = (0, t.P_)(this.agentIdentifier).distributed_tracing), e.sameOrigin) r = !0; else if (n.allowed_origins instanceof Array) for (var i = 0; i &lt; n.allowed_origins.length; i++) { var o = (0, at.e)(n.allowed_origins[i]); if (e.hostname === o.hostname &amp;&amp; e.protocol === o.protocol &amp;&amp; e.port === o.port) { r = !0; break } } return r } isDtEnabled() { var e = (0, t.Mt)(this.agentIdentifier, &quot;distributed_tracing&quot;); return !!e &amp;&amp; !!e.enabled } excludeNewrelicHeader() { var e = (0, t.Mt)(this.agentIdentifier, &quot;distributed_tracing&quot;); return !!e &amp;&amp; !!e.exclude_newrelic_header } useNewrelicHeaderForCors() { var e = (0, t.Mt)(this.agentIdentifier, &quot;distributed_tracing&quot;); return !!e &amp;&amp; !1 !== e.cors_use_newrelic_header } useTraceContextHeadersForCors() { var e = (0, t.Mt)(this.agentIdentifier, &quot;distributed_tracing&quot;); return !!e &amp;&amp; !!e.cors_use_tracecontext_headers } } var ct = i(8675); var ut = [&quot;load&quot;, &quot;error&quot;, &quot;abort&quot;, &quot;timeout&quot;], dt = ut.length, ft = t.Yu.REQ, lt = A._A?.XMLHttpRequest; class ht extends _ { constructor(r, n) { let i = !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]; super(r, n, ct.t, i); const o = (0, t.OP)(this.agentIdentifier); o.xhrWrappable &amp;&amp; (o.features.xhr = !0, this.dt = new st(this.agentIdentifier), this.handler = (e, t, r, n) =&gt; (0, b.p)(e, t, r, n, this.ee), this.wrappedFetch = Ve(this.ee), Xe(this.ee), function (r, n, i, o) { function a(e) { var t = this; t.totalCbs = 0, t.called = 0, t.cbTime = 0, t.end = T, t.ended = !1, t.xhrGuids = {}, t.lastSize = null, t.loadCaptureCalled = !1, t.params = this.params || {}, t.metrics = this.metrics || {}, e.addEventListener(&quot;load&quot;, (function (r) { O(t, e) }), (0, C.m$)(!1)), it.I &amp;&amp; (it.I &gt; 34 || it.I &lt; 10) || e.addEventListener(&quot;progress&quot;, (function (e) { t.lastSize = e.loaded }), (0, C.m$)(!1)) } function s(e) { this.params = { method: e[0] }, x(this, e[1]), this.metrics = {} } function c(e, n) { var i = (0, t.DL)(r); &quot;xpid&quot; in i &amp;&amp; this.sameOrigin &amp;&amp; n.setRequestHeader(&quot;X-NewRelic-ID&quot;, i.xpid); var a = o.generateTracePayload(this.parsedOrigin); if (a) { var s = !1; a.newrelicHeader &amp;&amp; (n.setRequestHeader(&quot;newrelic&quot;, a.newrelicHeader), s = !0), a.traceContextParentHeader &amp;&amp; (n.setRequestHeader(&quot;traceparent&quot;, a.traceContextParentHeader), a.traceContextStateHeader &amp;&amp; n.setRequestHeader(&quot;tracestate&quot;, a.traceContextStateHeader), s = !0), s &amp;&amp; (this.dt = a) } } function u(e, t) { var r = this.metrics, i = e[0], o = this; if (r &amp;&amp; i) { var a = ot(i); a &amp;&amp; (r.txSize = a) } this.startTime = (0, y.zO)(), this.listener = function (e) { try { &quot;abort&quot; !== e.type || o.loadCaptureCalled || (o.params.aborted = !0), (&quot;load&quot; !== e.type || o.called === o.totalCbs &amp;&amp; (o.onloadCalled || &quot;function&quot; != typeof t.onload)) &amp;&amp; o.end(t) } catch (e) { try { n.emit(&quot;internal-error&quot;, [e]) } catch (e) { } } }; for (var s = 0; s &lt; dt; s++)t.addEventListener(ut[s], this.listener, (0, C.m$)(!1)) } function d(e, t, r) { this.cbTime += e, t ? this.onloadCalled = !0 : this.called += 1, this.called !== this.totalCbs || !this.onloadCalled &amp;&amp; &quot;function&quot; == typeof r.onload || this.end(r) } function f(e, t) { var r = &quot;&quot; + nt(e) + !!t; this.xhrGuids &amp;&amp; !this.xhrGuids[r] &amp;&amp; (this.xhrGuids[r] = !0, this.totalCbs += 1) } function l(e, t) { var r = &quot;&quot; + nt(e) + !!t; this.xhrGuids &amp;&amp; this.xhrGuids[r] &amp;&amp; (delete this.xhrGuids[r], this.totalCbs -= 1) } function h() { this.endTime = (0, y.zO)() } function p(e, t) { t instanceof lt &amp;&amp; &quot;load&quot; === e[0] &amp;&amp; n.emit(&quot;xhr-load-added&quot;, [e[1], e[2]], t) } function g(e, t) { t instanceof lt &amp;&amp; &quot;load&quot; === e[0] &amp;&amp; n.emit(&quot;xhr-load-removed&quot;, [e[1], e[2]], t) } function v(e, t, r) { t instanceof lt &amp;&amp; (&quot;onload&quot; === r &amp;&amp; (this.onload = !0), (&quot;load&quot; === (e[0] &amp;&amp; e[0].type) || this.onload) &amp;&amp; (this.xhrCbStart = (0, y.zO)())) } function m(e, t) { this.xhrCbStart &amp;&amp; n.emit(&quot;xhr-cb-time&quot;, [(0, y.zO)() - this.xhrCbStart, this.onload, t], t) } function b(e) { var t, r = e[1] || {}; &quot;string&quot; == typeof e[0] ? t = e[0] : e[0] &amp;&amp; e[0].url ? t = e[0].url : A._A?.URL &amp;&amp; e[0] &amp;&amp; e[0] instanceof URL &amp;&amp; (t = e[0].href), t &amp;&amp; (this.parsedOrigin = (0, at.e)(t), this.sameOrigin = this.parsedOrigin.sameOrigin); var n = o.generateTracePayload(this.parsedOrigin); if (n &amp;&amp; (n.newrelicHeader || n.traceContextParentHeader)) if (&quot;string&quot; == typeof e[0] || A._A?.URL &amp;&amp; e[0] &amp;&amp; e[0] instanceof URL) { var i = {}; for (var a in r) i[a] = r[a]; i.headers = new Headers(r.headers || {}), s(i.headers, n) &amp;&amp; (this.dt = n), e.length &gt; 1 ? e[1] = i : e.push(i) } else e[0] &amp;&amp; e[0].headers &amp;&amp; s(e[0].headers, n) &amp;&amp; (this.dt = n); function s(e, t) { var r = !1; return t.newrelicHeader &amp;&amp; (e.set(&quot;newrelic&quot;, t.newrelicHeader), r = !0), t.traceContextParentHeader &amp;&amp; (e.set(&quot;traceparent&quot;, t.traceContextParentHeader), t.traceContextStateHeader &amp;&amp; e.set(&quot;tracestate&quot;, t.traceContextStateHeader), r = !0), r } } function w(e, t) { this.params = {}, this.metrics = {}, this.startTime = (0, y.zO)(), this.dt = t, e.length &gt;= 1 &amp;&amp; (this.target = e[0]), e.length &gt;= 2 &amp;&amp; (this.opts = e[1]); var r, n = this.opts || {}, i = this.target; &quot;string&quot; == typeof i ? r = i : &quot;object&quot; == typeof i &amp;&amp; i instanceof ft ? r = i.url : A._A?.URL &amp;&amp; &quot;object&quot; == typeof i &amp;&amp; i instanceof URL &amp;&amp; (r = i.href), x(this, r); var o = (&quot;&quot; + (i &amp;&amp; i instanceof ft &amp;&amp; i.method || n.method || &quot;GET&quot;)).toUpperCase(); this.params.method = o, this.txSize = ot(n.body) || 0 } function E(t, r) { var n; this.endTime = (0, y.zO)(), this.params || (this.params = {}), this.params.status = r ? r.status : 0, &quot;string&quot; == typeof this.rxSize &amp;&amp; this.rxSize.length &gt; 0 &amp;&amp; (n = +this.rxSize); var o = { txSize: this.txSize, rxSize: n, duration: (0, y.zO)() - this.startTime }; i(&quot;xhr&quot;, [this.params, o, this.startTime, this.endTime, &quot;fetch&quot;], this, e.D.ajax) } function T(t) { var r = this.params, n = this.metrics; if (!this.ended) { this.ended = !0; for (var o = 0; o &lt; dt; o++)t.removeEventListener(ut[o], this.listener, !1); r.aborted || (n.duration = (0, y.zO)() - this.startTime, this.loadCaptureCalled || 4 !== t.readyState ? null == r.status &amp;&amp; (r.status = 0) : O(this, t), n.cbTime = this.cbTime, i(&quot;xhr&quot;, [r, n, this.startTime, this.endTime, &quot;xhr&quot;], this, e.D.ajax)) } } function x(e, t) { var r = (0, at.e)(t), n = e.params; n.hostname = r.hostname, n.port = r.port, n.protocol = r.protocol, n.host = r.hostname + &quot;:&quot; + r.port, n.pathname = r.pathname, e.parsedOrigin = r, e.sameOrigin = r.sameOrigin } function O(e, t) { e.params.status = t.status; var r = function (e, t) { var r = e.responseType; return &quot;json&quot; === r &amp;&amp; null !== t ? t : &quot;arraybuffer&quot; === r || &quot;blob&quot; === r || &quot;json&quot; === r ? ot(e.response) : &quot;text&quot; === r || &quot;&quot; === r || void 0 === r ? ot(e.responseText) : void 0 }(t, e.lastSize); if (r &amp;&amp; (e.metrics.rxSize = r), e.sameOrigin) { var n = t.getResponseHeader(&quot;X-NewRelic-App-Data&quot;); n &amp;&amp; (e.params.cat = n.split(&quot;, &quot;).pop()) } e.loadCaptureCalled = !0 } n.on(&quot;new-xhr&quot;, a), n.on(&quot;open-xhr-start&quot;, s), n.on(&quot;open-xhr-end&quot;, c), n.on(&quot;send-xhr-start&quot;, u), n.on(&quot;xhr-cb-time&quot;, d), n.on(&quot;xhr-load-added&quot;, f), n.on(&quot;xhr-load-removed&quot;, l), n.on(&quot;xhr-resolved&quot;, h), n.on(&quot;addEventListener-end&quot;, p), n.on(&quot;removeEventListener-end&quot;, g), n.on(&quot;fn-end&quot;, m), n.on(&quot;fetch-before-start&quot;, b), n.on(&quot;fetch-start&quot;, w), n.on(&quot;fn-start&quot;, v), n.on(&quot;fetch-done&quot;, E) }(this.agentIdentifier, this.ee, this.handler, this.dt), this.importAggregator()) } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(ht, &quot;featureName&quot;, ct.t); var pt = i(6408), gt = i(2628); const { ADD_EVENT_LISTENER: vt, BST_RESOURCE: mt, BST_TIMER: bt, END: yt, FEATURE_NAME: wt, FN_END: Et, FN_START: Tt, learResourceTimings: xt, PUSH_STATE: Ot, REMOVE_EVENT_LISTENER: At, RESOURCE: _t, RESOURCE_TIMING_BUFFER_FULL: St, START: Nt, ORIG_EVENT: Dt } = gt; class Pt extends _ { constructor(r, n) { if (super(r, n, wt, !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]), !A.il) return; if (!(window.performance &amp;&amp; window.performance.timing &amp;&amp; window.performance.getEntriesByType)) return; (0, t.OP)(this.agentIdentifier).features.stn = !0; const i = this.ee; function o(t) { if ((0, b.p)(mt, [window.performance.getEntriesByType(_t)], void 0, e.D.sessionTrace, i), window.performance[&quot;c&quot; + xt]) try { window.performance[At](St, o, !1) } catch (t) { } else try { window.performance[At](&quot;webkit&quot; + St, o, !1) } catch (t) { } } this.timerEE = We(this.ee), this.rafEE = qe(this.ee), Ge(this.ee), Ue(this.ee), this.ee.on(Tt, (function (e, t) { e[0] instanceof Dt &amp;&amp; (this.bstStart = (0, y.zO)()) })), this.ee.on(Et, (function (t, r) { var n = t[0]; n instanceof Dt &amp;&amp; (0, b.p)(&quot;bst&quot;, [n, r, this.bstStart, (0, y.zO)()], void 0, e.D.sessionTrace, i) })), this.timerEE.on(Tt, (function (e, t, r) { this.bstStart = (0, y.zO)(), this.bstType = r })), this.timerEE.on(Et, (function (t, r) { (0, b.p)(bt, [r, this.bstStart, (0, y.zO)(), this.bstType], void 0, e.D.sessionTrace, i) })), this.rafEE.on(Tt, (function () { this.bstStart = (0, y.zO)() })), this.rafEE.on(Et, (function (t, r) { (0, b.p)(bt, [r, this.bstStart, (0, y.zO)(), &quot;requestAnimationFrame&quot;], void 0, e.D.sessionTrace, i) })), this.ee.on(Ot + Nt, (function (e) { this.time = (0, y.zO)(), this.startPath = location.pathname + location.hash })), this.ee.on(Ot + yt, (function (t) { (0, b.p)(&quot;bstHist&quot;, [location.pathname + location.hash, this.startPath, this.time], void 0, e.D.sessionTrace, i) })), (0, pt.W)() ? ((0, b.p)(mt, [window.performance.getEntriesByType(&quot;resource&quot;)], void 0, e.D.sessionTrace, i), function () { var t = new PerformanceObserver(((t, r) =&gt; { var n = t.getEntries(); (0, b.p)(mt, [n], void 0, e.D.sessionTrace, i) })); try { t.observe({ entryTypes: [&quot;resource&quot;] }) } catch (e) { } }()) : vt in window.performance &amp;&amp; (window.performance[&quot;c&quot; + xt] ? window.performance[vt](St, o, (0, C.m$)(!1)) : window.performance[vt](&quot;webkit&quot; + St, o, (0, C.m$)(!1))), document[vt](&quot;scroll&quot;, this.noOp, (0, C.m$)(!1)), document[vt](&quot;keypress&quot;, this.noOp, (0, C.m$)(!1)), document[vt](&quot;click&quot;, this.noOp, (0, C.m$)(!1)), this.importAggregator() } noOp(e) { } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(Pt, &quot;featureName&quot;, wt); var It = i(755); const { FEATURE_NAME: Rt, START: Ct, END: jt, BODY: kt, CB_END: Lt, JS_TIME: Mt, FETCH: Ht, ADD_EVENT_LISTENER: zt, WIN: Bt, LOCATION: Ft, FN_START: $t, CB_START: Ut, FN_END: Vt } = It; class Gt extends _ { constructor(e, r) { if (super(e, r, Rt, !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]), !A.il) return; const n = (0, t.OP)(this.agentIdentifier); if (!Bt[zt] || !n.xhrWrappable) return; n.features.spa = !0; let i, o = 0; const a = this.ee.get(&quot;tracer&quot;), s = je(this.ee); const c = function (e) { return He(e) }(this.ee), u = Ue(this.ee), d = We(this.ee), f = Xe(this.ee), l = Ve(this.ee), h = Ge(this.ee), p = function (e) { return Le(e) }(this.ee); function g(e, t) { h.emit(&quot;newURL&quot;, [&quot;&quot; + Ft, t]) } function v() { o++, i = Ft.hash, this[$t] = (0, y.zO)() } function m() { o--, Ft.hash !== i &amp;&amp; g(0, !0); var e = (0, y.zO)(); this[Mt] = ~~this[Mt] + e - this[$t], this[Vt] = e } function b(e, t) { e.on(t, (function () { this[t] = (0, y.zO)() })) } this.ee.on($t, v), c.on(Ut, v), s.on(Ut, v), this.ee.on(Vt, m), c.on(Lt, m), s.on(Lt, m), this.ee.buffer([$t, Vt, &quot;xhr-resolved&quot;], this.featureName), u.buffer([$t], this.featureName), d.buffer([&quot;setTimeout&quot; + jt, &quot;clearTimeout&quot; + Ct, $t], this.featureName), f.buffer([$t, &quot;new-xhr&quot;, &quot;send-xhr&quot; + Ct], this.featureName), l.buffer([Ht + Ct, Ht + &quot;-done&quot;, Ht + kt + Ct, Ht + kt + jt], this.featureName), h.buffer([&quot;newURL&quot;], this.featureName), p.buffer([$t], this.featureName), c.buffer([&quot;propagate&quot;, Ut, Lt, &quot;executor-err&quot;, &quot;resolve&quot; + Ct], this.featureName), a.buffer([$t, &quot;no-&quot; + $t], this.featureName), s.buffer([&quot;new-jsonp&quot;, &quot;cb-start&quot;, &quot;jsonp-error&quot;, &quot;jsonp-end&quot;], this.featureName), b(l, Ht + Ct), b(l, Ht + &quot;-done&quot;), b(s, &quot;new-jsonp&quot;), b(s, &quot;jsonp-end&quot;), b(s, &quot;cb-start&quot;), h.on(&quot;pushState-end&quot;, g), h.on(&quot;replaceState-end&quot;, g), Bt[zt](&quot;hashchange&quot;, g, (0, C.m$)(!0)), Bt[zt](&quot;load&quot;, g, (0, C.m$)(!0)), Bt[zt](&quot;popstate&quot;, (function () { g(0, o &gt; 1) }), (0, C.m$)(!0)), this.importAggregator() } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(Gt, &quot;featureName&quot;, Rt); var qt = i(6486); class Wt extends _ { constructor(e, t) { let r = !(arguments.length &gt; 2 &amp;&amp; void 0 !== arguments[2]) || arguments[2]; super(e, t, qt.t, r), this.importAggregator() } } !function (e, t, r) { t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r }(Wt, &quot;featureName&quot;, qt.t), new class { constructor(t) { let r = arguments.length &gt; 1 &amp;&amp; void 0 !== arguments[1] ? arguments[1] : (0, v.ky)(16); this.agentIdentifier = r, this.sharedAggregator = new d({ agentIdentifier: this.agentIdentifier }), this.features = {}, this.desiredFeatures = t.features || [], this.desiredFeatures.sort(((t, r) =&gt; e.p[t.featureName] - e.p[r.featureName])), Object.assign(this, (0, a.j)(this.agentIdentifier, t, t.loaderType || &quot;agent&quot;)), this.start() } get config() { return { info: (0, t.C5)(this.agentIdentifier), init: (0, t.P_)(this.agentIdentifier), loader_config: (0, t.DL)(this.agentIdentifier), runtime: (0, t.OP)(this.agentIdentifier) } } start() { try { const e = n(this.agentIdentifier); this.desiredFeatures.forEach((t =&gt; { if (e[t.featureName]) { const r = (0, s.Z)(t.featureName); r.every((t =&gt; e[t])) || (0, m.Z)(`${t.featureName} is enabled but one or more dependent features has been disabled (${JSON.stringify(r)}). This may cause unintended consequences or missing data...`), this.features[t.featureName] = new t(this.agentIdentifier, this.sharedAggregator) } })), (0, g.Qy)(this.agentIdentifier, this.features, &quot;features&quot;) } catch (e) { return (0, m.Z)(&quot;Failed to initialize instrument classes&quot;, e), !1 } } }({ features: [ht, I, k, Pt, ne, Wt, Ke, Gt], loaderType: &quot;spa&quot; }) })(), window.NRBA = o })();</pre><ul><li>Masukan code berikut kedalam nuxt.config.js didalam object head</li></ul><pre>head:{ <br>   script: [<br>      {<br>        src: &#39;/newrelic-browser-script.js&#39;,<br>        &#39;data-account-id&#39;: `${process.env.ACCOUNT_ID_NEW_RELIC}`,<br>        &#39;data-browser-license-key&#39;: `${process.env.LICENSE_KEY_NEW_RELIC_ACCOUNT}`,<br>        &#39;data-application-id&#39;: `${process.env.APPLICATION_ID_NEW_RELIC}`<br>      }<br>    ]<br>}</pre><ul><li>isi data berikut pada file env , ACCOUNT_ID_NEWRELIC dengan AccountID , LICENSE_KEY_NEW_RELIC_ACCOUNT dengan licenseKEY dan APPLICATION_ID_NEW_RELIC dengan ApplicationID yang terdapat pada script New Relic yg telah digenerate.</li><li>lakukan pengecekan pada project, jika proses setup berhasil maka akan muncul proses transaksi pada network browser seperti berikut :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IS6w6TunBpOyGdUetbv1Nw.png" /></figure><p>proses ini otomatis dijalankan ketika kita menggunakan script browser monitoring dari New Relic, proses ini mengirimkan Data Log ke New Relic, dari client. jika data tersebut belum muncul, lakukan refresh pada halaman atau restart project.</p><ul><li>lakukan pengecekan pada project browser monitoring New Relic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dajmYltMXZXA4KluDInsDQ.png" /></figure><p>Masuk kembali ke menu browser dan pilih project monitoring yang telah kita buat, masuk kehalaman menu summary.</p><p>jika data dari <strong>User time in the site , LCP, FID, Dll</strong> atau data seperti gambar diatas sudah muncul, maka bisa dikatakan proses Setup New Relic sudah berhasil.</p><p><strong>4. Domain Conditions</strong></p><p>Domain Condition berfungsi untuk membatasi monitoring hanya pada aktivitas project yang akan di monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KXUSmbh69B54S-ss-VNgA.png" /></figure><ol><li>Masuk kehalaman <strong>Browser</strong> &gt; pilih project monitoring browser &gt; <strong>Settings</strong> &gt; <strong>Domain Conditions</strong>.</li><li>aktifkan <strong>Enable Conditions</strong>.</li><li>Pilih <strong>Condition Type</strong> , ada 2 pilihan untuk condition type, pilih sesuai kebutuhan anda.</li></ol><ul><li><strong>Deny data from these domains</strong> : type ini akan menolak data monitoring dari domain yang sudah ditentukan.</li><li><strong>Allow data from these domains</strong> : type ini hanya akan menerima data monitoring dari domain yang sudah ditentukan</li></ul><p>4. masukan nama <strong>Domain</strong> yang akan dilakukan pengkondisian &gt; kemudian tekan <strong>Add Condition</strong> &gt; dan tekan <strong>Apply Settings, </strong>agar menyimpan perubahaan pada settingan<strong> Domain Conditions.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hfc7MY7NvnFirHUcOinbxA.png" /></figure><p>saat penambahaan domain, status <strong>Matches Found</strong> akan bergambar tanda seru seperti berikut :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/22/1*Sgq_fAtpaQgwfLWDmt6tkA.png" /></figure><p>ketika status seperti berikut, lakukan refresh halaman browser project yang akan di monitoring, agar terbaca oleh newrelic, hingga statusnya <strong>Matches Found</strong> berubah seperti berikut :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/26/1*Ow8xdSfi77q3I4YumAgxcg.png" /></figure><p>jika status belum berubah dan sudah melakukan refresh pada halaman browser project, coba refresh halaman new relic.</p><p>5. Selesai.</p><p>untuk memastikan apakah <strong>Domain Condition</strong> sudah berjalan, bisa gunakan script <strong>New Relic</strong> yang digunakan pada <strong>domain A</strong> dan simpan pada <strong>domain B</strong>, seharusnya jika sudah sukses monitoring <strong>domain B</strong> tidak akan terbaca pada <strong>Project Monitoring Browser New Relic</strong> yang anda buat tadi.</p><p><strong>refrensi :</strong></p><ul><li><a href="https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/">https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/</a></li><li><a href="https://docs.newrelic.com/docs/browser/browser-monitoring/getting-started/introduction-browser-monitoring/">https://docs.newrelic.com/docs/browser/browser-monitoring/getting-started/introduction-browser-monitoring/</a></li><li><a href="https://www.youtube.com/watch?v=blPC5R5l7C8">https://www.youtube.com/watch?v=blPC5R5l7C8</a></li><li><a href="https://docs.newrelic.com/docs/browser/new-relic-browser/configuration/monitor-or-block-specific-domains-subdomains/#:~:text=Configure%20domain%20conditions,conditions%20exist%2C%20select%20Edit%20conditions">https://docs.newrelic.com/docs/browser/new-relic-browser/configuration/monitor-or-block-specific-domains-subdomains/#:~:text=Configure%20domain%20conditions,conditions%20exist%2C%20select%20Edit%20conditions</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=117868bf72ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Link pada Nuxt JS]]></title>
            <link>https://medium.com/@rayfajars/deep-link-pada-nuxt-js-294294c2b03b?source=rss-ecbc0098471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/294294c2b03b</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[deep-linking]]></category>
            <category><![CDATA[nuxt]]></category>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <dc:creator><![CDATA[Ray Fajar]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 15:54:07 GMT</pubDate>
            <atom:updated>2026-08-03T07:56:44.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iW-AAQWRl_8BC8VAtEpu5w.png" /></figure><p>Deep link (tautan dalam atau tautan dalam aplikasi) adalah tautan yang mengarahkan pengguna langsung ke halaman atau konten spesifik dalam suatu aplikasi seluler.</p><h3><strong>Karakteristik Deep Link</strong></h3><ol><li><strong>Mengarahkan ke Halaman Internal Aplikasi:</strong></li></ol><p>Deep link mengizinkan pengguna untuk membuka aplikasi seluler dan diarahkan langsung ke halaman atau konten tertentu dalam aplikasi tersebut.</p><p><strong>2. Integrasi Aplikasi:</strong></p><p>Deep link memungkinkan aplikasi seluler berinteraksi lebih baik dengan aplikasi lain atau platform lain. Misalnya, Anda dapat mengklik tautan dalam email atau pesan teks untuk membuka aplikasi yang terkait dan menampilkan informasi spesifik.</p><p><strong>3. Parameter:</strong></p><p>Deep link dapat membawa parameter atau data tambahan yang diperlukan oleh halaman atau fungsi dalam aplikasi. Parameter ini dapat digunakan untuk mengkustomisasi pengalaman pengguna.</p><h3>Implementasi Deep Link</h3><p><strong>Contoh 1:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hxfkp2KJiyx7d0YB.png" /></figure><p>Deep Link dapat mengarahkan pengguna ke konten aplikasi, selama aplikasi sudah terpasang. Artinya Deep Link tidak berfungsi jika pengguna belum memasang aplikasi, dan akan menampilkan kesalahan atau menuju ke halaman semisal pada browser.</p><p><strong>Contoh 2:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i5c1GAUdbAl8aUN_.png" /></figure><p>Deep Link dapat mengarahkan pengguna ke konten meskipun aplikasi tidak diinstal saat tautan di klik. tautan akan mengarahkan ke App Store atau Play Store untuk meminta anda mengunduh dan menginstal aplikasi tersebut dan kemudian membawa pengguna ke konten tertentu setelah aplikasi dijalankan.</p><p>Penjelasan diatas merupakan pengertian dan implementasi dari Deep Link, selanjutnya, bagaimana mengimplementasikan Deep Link pada Web ? mari kita bahas !</p><p>Berikutnya adalah mengonfigurasi situs web / domain dengan Deep Link, untuk melakukan konfigurasi tersebut kita membutuhkan kolaborasi dengan team Mobile, karena ada beberapa kebutuhan informasi dan data yang kita perlukan. Disini saya menggap yang membaca artikel ini sudah memiliki informasi yang dibutuhkan dari team Mobile seperti file <strong>AASA (Apple App Site Association) </strong>untuk <strong>IOS </strong>dan<strong> assetlinks.json </strong>untuk <strong>Android</strong>.</p><h3>Konfigurasi Deep Link dengan Web (Nuxt JS)</h3><p>Deep Link adalah link yang mengarahkan Anda langsung ke tujuan tertentu dalam aplikasi berdasarkan pada URL situs / domain yang telah diverifikasi.</p><h4>Android</h4><p>Deep Link pada android menggunakan file <strong>assetlinks.json</strong> yang didapatkan dari hasil generate <strong>App Links Assistant Android</strong> yang di develop oleh parah mobile engineer untuk lengkapnya anda bisa baca pada <a href="https://developer.android.com/studio/write/app-link-indexing?hl=id">dokumentasi ini</a>. Sehingga kita dapat meminta file tersebut kepada ahli nya :). Pada file tersebut terdapat beberapa data seperti <strong>sha256_cert_fingerprints, package_name, dan lain-lain </strong>yang bisa kalian tanyakan kembali ke ahli nya hehe, untuk apa data tersebut :)<strong>.</strong></p><p>Untuk generate assetlinks.json<strong> </strong>kita sebagai web developer diperlukan untuk memberitahu URL mana saja yang akan diverifikasi oleh Deep Link.</p><p>Untuk mengaitkan aplikasi android dengan situs web adalah dengan perlu menyimpan file assetlinks.json<strong> </strong>ke direktori web anda, dengan akses yang dapat dibaca oleh public.</p><pre>https://domain.anda/.well-known/assetlinks.json</pre><p>untuk NUXT JS anda bisa simpan pada folder /static/.well-known/assetlinks.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*5g6WKUEM5G4CgugnyCMAyA.png" /></figure><p>Pastikan hal-hal berikut saat menyimpan file assetlinks.json<strong> :</strong></p><ul><li>File assetlinks.json disimpan dengan tipe fileapplication/json.</li><li>File assetlinks.json harus dapat diakses melalui sambungan HTTPS.</li><li>File assetlinks.json harus dapat diakses tanpa pengalihan apa pun (tanpa pengalihan 301 atau 302) dan dapat diakses oleh bot (robots.txt Anda harus mengizinkan crawling /.well-known/assetlinks.json</li></ul><p>jika sudah menyimpan file assetlinks.jsonpada direktori anda dapat melakukan pengecekan domain anda, apakah sudah terkonfirguras dan tervalidasi dengan benar dengan melakukan pengecekan menggunakan <a href="https://developers.google.com/digital-asset-links/tools/generator">link berikut</a> <strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*Xstvco6pI9xopVWxWkOT8A.png" /></figure><p>masukan data-data tersebut dan klik Test Statement, jika muncul pesan berikut maka konfigurasi Deep Link sudah berhasil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S6NL355clc6WPA8xt0lz-w.png" /></figure><h4>Apple</h4><p>berbeda dengan Android, Deep Link <strong>Apple / IOS </strong>menggunakan file tidak format atau sistem komputer biasanya membaca dengan format aplikasi, file itu bernama <strong>Apple App Site Association </strong>atau disingkat AASA. File AASA adalah file yg berada dalam web dan dapat menghubungkan domain web dengan aplikasi mobile (ios).</p><p>File AASA tidak berformat file dan berisi objek JSON dengan daftar appID dan url <em>paths </em>untuk menentukan <em>paths </em>mana yang diizinkan atau dikecualikan saat diakses. untuk file AASA ini kalian bisa minta atau kalian bisa tanyakan appID nya ke team yang bersangkutan, karena appID terdapat pada akun<strong> </strong><a href="https://developer.apple.com/"><strong>developer apple </strong></a><strong>.</strong></p><pre>{<br>    &quot;applinks&quot;: {<br>        &quot;apps&quot;: [],<br>        &quot;details&quot;: [<br>            {<br>                &quot;appID&quot;: &quot;K233FSKCSD.com.appskamu.apps&quot;,<br>                &quot;paths&quot;: [ &quot;/verifikasi&quot;, &quot;/ganti-password&quot;]<br>            }<br>        ]<br>    }<br>}</pre><pre>// gunakan * jika path ingin dapat diakses seluruhnya.</pre><p>simpan file AASA tanpa format file ke dalam direktori yang dapat diakses oleh publik dengan nama file <strong>apple-app-site-association</strong>.</p><pre>https://domain.anda/.well-known/apple-app-site-association</pre><p>atau</p><pre>https://domain.anda/apple-app-site-association</pre><p>untuk NUXT JS anda bisa simpan pada folder /static/.well-known/apple-app-site-association</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*hjh5Nq_XUZfFh2A_fKhdkw.png" /></figure><p>jika sudah menyimpan file AASA pada direktori anda dapat melakukan pengecekan domain anda, apakah sudah terkonfirguras dan tervalidasi dengan benar dengan melakukan pengecekan menggunakan <a href="https://branch.io/resources/aasa-validator/"><strong>AASA Validator</strong></a><strong>.</strong></p><p>Masukan domain, perfiks dan bundle ID pada AASA Validator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*C51SxWCtgyg7kY0Hns6wAA.png" /></figure><p>Jika muncul seperti gambar berikut dan keseleruhan pesan berwarna hijau, maka konfigurasi Deep Link sudah berhasil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*w7qVYVBBirDdMC_NexrzbA.png" /></figure><p>pada Nuxt JS saat mengakses file JSON ASSA pada domain akan melakukan auto download file ASSA</p><pre>https://domain.anda/.well-known/apple-app-site-association</pre><p>karena file tersebut dianggap berformat aplikasi, sehingga pada Nuxt JS bisa menambahkan konfigurasi berikut pada file nuxt.config.js agar memunculkan file tersebut dalam bentuk JSON saat file AASA diakses pada domain.</p><pre>render: {<br>    static: {<br>      setHeaders: (resp, path) =&gt; {<br>        if (<br>          resp.req.originalUrl ===<br>          &#39;/.well-known/apple-app-site-association&#39;<br>        ) {<br>          resp.setHeader(&#39;Content-Type&#39;, &#39;application/json&#39;)<br>        }<br>      }<br>    }<br>  },</pre><p>Pastikan hal-hal berikut saat menyimpan file apple-app-site-association<strong> :</strong></p><ul><li>File apple-app-site-association harus dapat diakses melalui sambungan HTTPS.</li><li>jangan berikan format file pada file apple-app-site-association .</li><li>file ukuran tidak melebihi melebihi 128 Kb (persyaratan di iOS 9.3.1 dan seterusnya).</li></ul><p><strong>Referensi</strong></p><ul><li><a href="https://www.simicart.com/blog/mobile-deep-link/">https://www.simicart.com/blog/mobile-deep-link/</a></li><li><a href="https://developer.android.com/training/app-links/verify-android-applinks?hl=id">https://developer.android.com/training/app-links/verify-android-applinks?hl=id</a></li><li><a href="https://developer.android.com/training/app-links/verify-android-applinks?hl=id#web-assoc">https://developer.android.com/training/app-links/verify-android-applinks?hl=id#web-assoc</a></li><li><a href="https://branch.io/resources/aasa-validator/">https://branch.io/resources/aasa-validator/</a></li><li><a href="https://developer.apple.com/documentation/xcode/supporting-associated-domains">https://developer.apple.com/documentation/xcode/supporting-associated-domains</a></li><li><a href="https://www.branch.io/resources/blog/what-is-an-aasa-apple-app-site-association-file/">https://www.branch.io/resources/blog/what-is-an-aasa-apple-app-site-association-file/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=294294c2b03b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Tailwind CSS di Nuxt JS]]></title>
            <link>https://medium.com/@rayfajars/setup-tailwind-css-di-nuxt-js-2c52d03e9b83?source=rss-ecbc0098471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c52d03e9b83</guid>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ray Fajar]]></dc:creator>
            <pubDate>Thu, 19 Jan 2023 14:28:46 GMT</pubDate>
            <atom:updated>2023-01-19T14:28:46.464Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Rz5Us216z8FNJs-X.png" /><figcaption>Tailwind dan Nuxt JS</figcaption></figure><p>sebelum kita menginstall Tailwind CSS di Nuxt JS, saya akan mengulas sedikit tentang apa itu Tailwind CSS dan Nuxt JS .</p><h3><strong>Tailwind CSS</strong></h3><p>Tailwind CSS adalah suatu framework CSS yang <em>berbasis utility, </em>maksudnya adalah Tailwind hanya terdiri dari 100% class dan tidak menyedikan komponen yang dapat langsung kita gunakan untuk membangun sebuah UI atau tampilan dari website.</p><p>Kita bisa bandingkan dengan bootstrap yang memiliki komponen utuh dan bisa langsung kita gunakan, sementara tailwind hanya menyediakan class class yang bisa kita gunakan dengan sangat fleksibel untuk membangun UI yang sesuai keinginan kita.</p><h3><strong>Nuxt JS</strong></h3><p>Nuxt JS adalah sebuah framework yang dibangun di atas Vue JS, yang memiliki kelebihan seperti:</p><ol><li>Membangun website yang mendukung <em>SSR (Server Side Rendering) </em>dan <em>PWA (Progressive Web App).</em></li><li>Struktur folder yang lebih rapih.</li><li>Membuat Router secara otomatis</li><li>dan masih banyak lagi</li></ol><p><strong>Install Nuxt JS</strong></p><pre>npm init nuxt-app &lt;nama-project&gt;</pre><p>kemudian akan muncul beberapa pertanyaan dan pilihan yang akan ditemui selama proses instalasi, seperti pemilihan <strong>Package Manager</strong>, <strong>UI Framework</strong>, <strong>Linting Tools</strong>, dll.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*obh3NE7V91p9bYqd.jpeg" /></figure><p>setelah itu, tunggu proses installasi Nuxt JS sampai selasai. untuk <strong>UI framework </strong>saya pilih none, karena saya ingin melakukan instalasi Tailwind CSS secara manual.</p><p><strong>Install Tailwind CSS</strong></p><pre>npm install -D tailwindcss postcss@latest autoprefixer@latest @nuxt/postcss8</pre><p>enter dan tunggu hinggal selesai. kemudian buat file konfigurasi Tailwind dengan perintah di bawah ini;</p><pre>npx tailwindcss init</pre><p>enter dan perintah tersebut akan membuat file <strong><em>tailwind.config.js</em></strong></p><p>kemudian buat file css <strong><em>‘main.css’ </em></strong>pada direktori ‘/<strong><em>assets</em></strong>’ dan isi file tersebut dengan text dibawah ini:</p><pre>@tailwind base; <br>@tailwind components; <br>@tailwind utilities;</pre><p>lakukan konfigurasi pada file ‘<strong><em>nuxt.config.js’</em></strong> dengan menambahkan beberapa text pada baris code tertentu;</p><p>pada <em>buildModules</em></p><pre>export defjault {<br>  buildModules: [<br>    &#39;@nuxt/postcss8&#39;,<br>    // ...<br>  ],<br>}</pre><p>pada <em>build</em></p><pre>export default {<br>  build: {<br>    postcss: {<br>      plugins: {<br>        tailwindcss: {},<br>        autoprefixer: {},<br>      },<br>    },<br>  }<br>}</pre><p>pada <em>css</em></p><pre> export default {<br>  css: [<br>    &#39;@/assets/css/main.css&#39;,<br>  ],<br>}</pre><p>dan lakukan konfigurasi pada file ‘<strong><em>tailwind.config.js’ </em></strong>dengan menambahkan beberapa text pada baris code tertentu;</p><pre>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  content: [<br>    &quot;./components/**/*.{js,vue,ts}&quot;,<br>    &quot;./layouts/**/*.vue&quot;,<br>    &quot;./pages/**/*.vue&quot;,<br>    &quot;./plugins/**/*.{js,ts}&quot;,<br>    &quot;./nuxt.config.{js,ts}&quot;,<br>  ],<br>  theme: {<br>    extend: {},<br>  },<br>  plugins: [],<br>}</pre><p>setelah ini anda dapat melakukan testing untuk memastikan apakah “<strong><em>tailwind CSS”</em></strong> sudah terpasang pada project anda dengan menambahkan class tertentu, seperti mengubah warna font dll.</p><pre> &lt;div class=&quot;bg-blue-900&quot;&gt;<br>    &lt;h1 class=&quot;text-red-500 font-bold&quot;&gt;Ini adalah Tailwind pada Nuxt JS&lt;/h1&gt;<br>    &lt;h2 class=&quot;text-teal-500&quot;&gt;Ini adalah Tailwind pada Nuxt JS&lt;/h2&gt;<br>    &lt;h2 class=&quot;text-yellow-500&quot;&gt;Ini adalah Tailwind pada Nuxt JS&lt;/h2&gt;<br>  &lt;/div&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*lPuHA4NYwnRzXr_Jgn5dLw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c52d03e9b83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruang Kerja Landing Page]]></title>
            <link>https://medium.com/@rayfajars/ruang-kerja-landing-page-e209ad0bc6ed?source=rss-ecbc0098471a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e209ad0bc6ed</guid>
            <category><![CDATA[frontend-engineer]]></category>
            <category><![CDATA[slicing]]></category>
            <dc:creator><![CDATA[Ray Fajar]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 02:12:23 GMT</pubDate>
            <atom:updated>2023-01-16T02:57:00.059Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYzrYfMIjNizvtHdoU7KSQ.png" /></figure><p>Gambar diatas adalah salah satu tampilan landing page yang telah saya slicing dari design mas <a href="https://medium.com/u/83bdaec00031">Dwinawan</a>.</p><p>mas <a href="https://medium.com/u/83bdaec00031">Dwinawan</a> merupakan seorang UI designer, beliau sering membagikan tips tentang UI/UX di <a href="https://twitter.com/dwinawan_">twitternya </a>dan suka membagikan hasil designnya untuk dijadikan bahan ajar bagi teman-teman yang ingin melakukan SLICING dengan design beliau, untuk teman-teman yang ingin ngepoin design mas <a href="https://medium.com/u/83bdaec00031">Dwinawan</a> bisa klik link <a href="https://www.figma.com/@dwinawan">ini</a>.</p><p>sedikit cerita, sebenernya saya udah ingin slicing design dari beliau dari tahun lalu, hanya saja belum dapat waktu nya hehe. karena design beliau menurut saya sangat bagus dan menarik.</p><p>mungkin segitu aja kali ya basa-basi nyaa….</p><p>Pada artikel kali ini saya ingin menceritakan proses slicing landing page yang saya lakukan. Disini sebelum kita memulai project, saya akan membagikan Tech Stack dan Tools yang saya gunakan :</p><ol><li><strong>Nuxt JS</strong></li><li><strong>Vue JS</strong></li><li><strong>Tailwind CSS</strong></li><li><strong>Netlify</strong></li><li><strong>Node Js v16.17.0</strong></li><li><strong>NPM</strong></li><li><strong>Eslint</strong></li><li><strong>Prettier</strong></li></ol><h3>Membuat Project Baru</h3><h4>Install Nuxt JS</h4><p>buka terminal di dalam folder yang akan dijadikan tempat penyimpanan project. lakukan instalasi project dengan memasukan perintah berikut;</p><pre>npm init nuxt-app &lt;nama-project&gt;</pre><p>kemudian akan muncul beberapa pertanyaan dan pilihan yang akan ditemui selama proses instalasi, seperti pemilihan <strong>Package Manager</strong>, <strong>UI Framework</strong>, <strong>Linting Tools</strong>, dll. Adapun pilihan saya sebagai berikut;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*kG3kCfQz2QSkfnWm-gNw4A.jpeg" /><figcaption>Konfigurasi Project</figcaption></figure><p>setelah itu, tunggu proses installasi Nuxt JS sampai selasai. untuk UI framework saya pilih none, karena saya ingin melakukan instalasi Tailwind CSS secara manual.</p><h4>Install Tailwind CSS</h4><p>Pemilihan Tailwind CSS sendiri karena tailwind akan mempermudah proses slicing dan styling tampilan web. jalankan perintah berikut pada terminal.</p><pre>npm install -D tailwindcss postcss@latest autoprefixer@latest @nuxt/postcss8</pre><p>enter dan tunggu hinggal selesai. kemudian buat file konfigurasi Tailwind dengan perintah di bawah ini;</p><pre>npx tailwindcss init</pre><p>enter dan perintah tersebut akan membuat file <strong><em>tailwind.config.js</em></strong></p><p>kemudian buat file css <strong><em>‘main.css’ </em></strong>pada direktori ‘/<strong><em>assets</em></strong>’ dan isi file tersebut dengan text dibawah ini;</p><pre>@tailwind base; <br>@tailwind components; <br>@tailwind utilities;</pre><p>lakukan konfigurasi pada file ‘<strong><em>nuxt.config.js’</em></strong> dengan menambahkan beberapa text pada baris code tertentu;</p><p>pada <em>buildModules</em></p><pre>export default {<br>  buildModules: [<br>    &#39;@nuxt/postcss8&#39;,<br>    // ...<br>  ],<br>}</pre><p>pada <em>build</em></p><pre>export default {<br>  build: {<br>    postcss: {<br>      plugins: {<br>        tailwindcss: {},<br>        autoprefixer: {},<br>      },<br>    },<br>  }<br>}</pre><p>pada <em>css</em></p><pre> export default {<br>  css: [<br>    &#39;@/assets/css/main.css&#39;,<br>  ],<br>}</pre><p>dan lakukan konfigurasi pada file ‘<strong><em>tailwind.config.js’ </em></strong>dengan menambahkan beberapa text pada baris code tertentu;</p><pre>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>module.exports = {<br>  content: [<br>    &quot;./components/**/*.{js,vue,ts}&quot;,<br>    &quot;./layouts/**/*.vue&quot;,<br>    &quot;./pages/**/*.vue&quot;,<br>    &quot;./plugins/**/*.{js,ts}&quot;,<br>    &quot;./nuxt.config.{js,ts}&quot;,<br>  ],<br>  theme: {<br>    extend: {},<br>  },<br>  plugins: [],<br>}</pre><p>setelah ini anda dapat melakukan testing untuk memastikan apakah “<strong><em>tailwind CSS”</em></strong> sudah terpasang pada project anda dengan menambahkan class tertentu.</p><p>saya juga menambahkan plugin automatis penyusun class tailwind dengan prettier, agar class yg digunakan terlihat lebih rapi dan konsisten penulisan classnya. masukan perintah ini ke dalam terminal project.</p><pre>npm install -D prettier prettier-plugin-tailwindcss</pre><p>hasil dari penggunanaan plugin ini akan menghasilkan class seperti ini:</p><pre>&lt;!-- Before --&gt;<br>&lt;button class=&quot;text-white px-4 sm:px-8 py-2 sm:py-3 bg-sky-700 hover:bg-sky-800&quot;&gt;...&lt;/button&gt;<br><br>&lt;!-- After --&gt;<br>&lt;button class=&quot;bg-sky-700 px-4 py-2 text-white hover:bg-sky-800 sm:px-8 sm:py-3&quot;&gt;...&lt;/button&gt;</pre><h3>Slicing Layout</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kssto2YrmMapxfAEoSO9yA.png" /></figure><p><strong>Component dan Image</strong></p><p>Dari desain tersebut, saya membaginya kedalam beberapa <em>section </em>dengan menjadikannya beberapa komponen yang ditempatkan pada direktori <em>/component</em>s;</p><ul><li>Navbar Section</li><li>Hero Section</li><li>Select Work Space Section</li><li>Info Section</li><li>List Section</li><li>Footer Section</li></ul><p>sehingga struktur file pada folder tersebut menjadi seperti berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*Au30IkRzcGeoYZwmCoZ3aA.png" /><figcaption>Struktur Folder Project</figcaption></figure><p>selanjutnya siapkan file gambar dan icon yang dibagi berdasarkan kegunaannya dan simpan pada folder <em>static.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*RMiZvQPaE3LMMnBLfYQ2XA.png" /><figcaption>Struktur Folder Gambar dan Icon</figcaption></figure><p><strong>Layouts</strong></p><p>untuk component <em>NavbarSection </em>dan <em>FooterSection</em>, saya panggil kedalam file layouts yang ada pada direktori <em>/.nuxt/layouts/, </em>seperti berikut.</p><pre>&lt;template&gt;<br>  &lt;div&gt; <br>    &lt;NavbarSection /&gt;<br>    &lt;Nuxt /&gt;<br>    &lt;FooterSection/&gt;<br>  &lt;/div&gt;<br><br>&lt;/template&gt;</pre><p>tag <em>&lt;Nuxt /&gt;</em> secara langsung membuat <em>layout </em>serta memanggil komponen halaman.</p><p>karena setiap section memilik lebar dan jarak yang sama, disini saya mengatur ukuran dengan menggunakan class <em>container </em>pada setiap section dengan catatan saya mengubah ukuran padding dari <em>container </em>tersebut dengan menambahkan extend pada file <em>tailwind.config.js, </em>seperti berikut:</p><pre> theme: {<br>    extend: {<br>      container: {<br>        center: true,<br>        padding: &#39;200px&#39;,<br>      },<br>    },<br>  },</pre><p>class container sendiri sudah memiliki default ukurannya sendiri sehingga kita harus mengubahnya.</p><p><strong>Swiper JS</strong></p><p>Pada design yang digunakan, ada beberapa <em>section </em>yang menggunakan slider, yaitu pada section <em>footer </em>dan <em>list working space. </em>untuk membantu proses slicing untuk slider saya menggunakan library <strong>Swiper JS. </strong>ikut perintah berikut untuk menggunakan<strong> Swiper JS.</strong></p><pre>npm install swiper</pre><p>setelah proses install selesai, import <strong>Swiper JS</strong> pada project</p><pre>import { Swiper, Navigation, Pagination, Autoplay } from &#39;swiper&#39;<br>import &#39;swiper/swiper-bundle.min.css&#39;</pre><p>untuk konfigurasi <strong>Swiper JS </strong>pada <em>footer section</em></p><pre>      direction: &#39;horizontal&#39;,<br>      loop: true,<br>      pagination: {<br>        el: &#39;.swiper-pagination&#39;,<br>        clickable: true,<br>      },<br>      loopFillGroupWithBlank: false,<br>      slidesPerView: 5,<br>      slidesPerGroup: 1,<br>      slidesOffsetAfter:100,<br>      slidesOffsetBefore:100,<br>      autoplay: {<br>        delay: 3000,<br>      },<br>      navigation: {<br>        nextEl: &#39;&#39;,<br>        prevEl: &#39;&#39;,<br>      },</pre><p>dan hasilnya seperti berikut</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ekc9jd--hn5a99t_px57A.gif" /></figure><p>untuk konfigurasi <strong>Swiper JS</strong> pada <em>footer section</em></p><pre>      direction: &#39;horizontal&#39;,<br>      loop: true,<br>      pagination: {<br>        el: &#39;.swiper-pagination&#39;,<br>        clickable: true,<br>      },<br>      loopFillGroupWithBlank: false,<br>      slidesPerView: 5,<br>      centeredSlides: true,<br>      autoplay: {<br>        delay: 5000,<br>      },<br>      navigation: {<br>        nextEl: &#39;&#39;,<br>        prevEl: &#39;&#39;,<br>      },</pre><p>untuk <em>footer section</em> ada penambahaan styling yaitu efek blur, ketika gambar tidak muncul ditengah maka akan blur dan css nya seperti berikut</p><pre>.swiper {<br>  height: 300px;<br>  overflow: hidden;<br>  position: relative;<br>  width: 500px;<br>}<br>.swiper-slide {<br>  align-items: center;<br>  display: flex;<br>  justify-content: center;<br>}<br><br>.swiper-slide-prev,<br>.swiper-slide-next {<br>  @apply !blur-[1px];<br>}<br><br>.swiper-slide {<br>  /* filter: blur(1px); */<br>  @apply !blur-[2px];<br>}<br><br>.swiper-slide-active {<br>  @apply !blur-none;<br>}<br>.swiper-slide-active .slider-content img {<br>  @apply !h-24 !w-24;<br>}<br><br>.swiper-slide-next .slider-content img,<br>.swiper-slide-prev .slider-content img {<br>  @apply !h-20 !w-20;<br>}<br><br>.swiper-slide .slider-content img {<br>  /* filter: blur(1px); */<br>  @apply h-12 w-12;<br>}<br><br>.swiper-slide-active .slider-content .text-swiper {<br>  @apply !visible;<br>}<br><br>.swiper-slide-next .slider-content .text-swiper,<br>.swiper-slide-prev .slider-content .text-swiper {<br>  @apply !invisible;<br>}<br><br>.swiper-slide .slider-content .text-swiper {<br>  /* filter: blur(1px); */<br>  @apply invisible;<br>}</pre><p>hasilnya akan seperti ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nthAoiJdAcmDFRuEvX7Cw.gif" /></figure><p><strong>Hasil Slicing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcQKfy40OkkKmOqQc6oBfg.png" /></figure><p>Sekian tulisan yang saya dapat saya bagikan. Mohon maaf bila ada kekurangan dan kesalahan dalam penulisan. Semoga tulisan ini bermanfaat bagi yang membaca.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e209ad0bc6ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>