1:I[64777,[],"HTTPAccessFallbackBoundary"]
4:"$Sreact.fragment"
5:I[57121,[],""]
6:I[74581,[],""]
8:I[90484,[],"OutletBoundary"]
9:"$Sreact.suspense"
b:I[90484,[],"ViewportBoundary"]
d:I[90484,[],"MetadataBoundary"]
:HL["/_next/static/css/ebb241c1666ffa5e.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","style"]
:HL["/_next/static/css/2029d598c49834f7.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","style"]
0:{"f":[[["",{"children":["(business-marketing)",{"children":["business",{"children":["__PAGE__",{},"$undefined","$undefined",4096]},"$undefined","$undefined",4096]},"$undefined","$undefined",4096],"auth":["__DEFAULT__",{},"$undefined","$undefined",4096],"businessAuth":["__DEFAULT__",{},"$undefined","$undefined",4096]},"$undefined","$undefined",4112],[["$","$L1","c",{"notFound":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ebb241c1666ffa5e.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/2029d598c49834f7.css?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],"$L2"],"children":["$0:f:0:1:0:props:notFound:0","$L3"]}],{"children":[["$","$4","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$4","c",{"children":[null,["$","div",null,{"className":"yb-business-marketing min-h-screen","children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],{"children":[["$","$4","c",{"children":["$L7",null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,null]},null,false,null],"auth":[["$","$4","c",{"children":[null,null,null]}],{},null,false,null],"businessAuth":[["$","$4","c",{"children":[null,null,null]}],{},null,false,null]},null,false,null],["$","$4","h",{"children":[null,["$","$Lb","SClvDsrYpLS_oRb1zR2ZAv",{"children":"$Lc"}],["$","div","SClvDsrYpLS_oRb1zR2ZAm",{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}]]}],false]],"q":"","i":false,"S":false,"h":null,"r":"$undefined"}
f:T10160,
    (function (config) {
      "use strict";

      var root = document.documentElement;
      var now = function () {
        return window.performance && typeof window.performance.now === "function"
          ? window.performance.now()
          : Date.now();
      };
      var bootStartedAt = now();
      var bootStartedEpochMs = Date.now();
      var standalone = false;
      try {
        standalone =
          (window.matchMedia && window.matchMedia("(display-mode: standalone)").matches) ||
          window.navigator.standalone === true;
      } catch (_) {}

      window.__ybStandaloneMode = standalone;
      window.__ybBootStartedAt = bootStartedAt;
      root.classList.add(standalone ? "yb-standalone-mode" : "yb-browser-mode");
      if (!standalone) root.classList.remove("yb-app-booting");

      var allowedEvents = {
        activation_deferred: true,
        activation_request_sent: true,
        boot_ready_signal: true,
        cache_metadata: true,
        deployment_check: true,
        deployment_recovery: true,
        controller_change: true,
        inline_script_executed: true,
        javascript_error: true,
        long_task: true,
        long_task_observer: true,
        network_change: true,
        page_show: true,
        promise_rejection: true,
        react_hydrated: true,
        registration_error: true,
        registration_ready: true,
        reload_deferred: true,
        reload_loop_prevented: true,
        reload_requested: true,
        splash_failsafe_fired: true,
        splash_failsafe_scheduled: true,
        stable_fallback: true,
        visibility_change: true,
        worker_check: true,
        worker_state: true,
        worker_status: true,
        worker_unavailable: true
      };
      var allowedDetailKeys = {
        activeContract: true,
        activeState: true,
        activeVersion: true,
        activationRequestSent: true,
        autoReload: true,
        bootStartedEpochMs: true,
        cacheNames: true,
        contractVersion: true,
        controllerChangeCount: true,
        controllerContract: true,
        controllerPresent: true,
        controllerVersion: true,
        count: true,
        durationMs: true,
        automaticReloadCount: true,
        automaticOwner: true,
        automaticOwnerSuppressed: true,
        chunkDpl: true,
        chunkPath: true,
        currentVersion: true,
        documentVersion: true,
        episodeId: true,
        errorType: true,
        expectedVersion: true,
        hydrated: true,
        inlineExecuted: true,
        longTaskSupported: true,
        navigationType: true,
        online: true,
        pathCategory: true,
        persisted: true,
        previousEventCount: true,
        prefetch: true,
        promiseReasonType: true,
        reloadDeferred: true,
        reloadPrevented: true,
        recoveryAction: true,
        recoveryActive: true,
        recoveryKey: true,
        latchPresent: true,
        latchSource: true,
        manualReloadCount: true,
        responseCategory: true,
        scriptPath: true,
        source: true,
        standalone: true,
        storageAvailable: true,
        versionCategory: true,
        state: true,
        trigger: true,
        visibility: true,
        waitingContract: true,
        waitingState: true,
        waitingVersion: true,
        workerEnabled: true
      };
      var events = [];
      var snapshot = {
        activationRequestSent: false,
        activeContract: null,
        activeState: null,
        activeVersion: null,
        automaticReloadCount: 0,
        automaticRecoveryLatchPresent: false,
        automaticRecoveryLatchSource: null,
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerChangeCount: 0,
        controllerContract: null,
        controllerPresent: Boolean(navigator.serviceWorker && navigator.serviceWorker.controller),
        controllerVersion: null,
        currentProductionVersion: null,
        deploymentRecoveryActive: false,
        deploymentRecoveryEpisodeId: null,
        expectedVersion: config.expectedVersion,
        hydrated: false,
        inlineExecuted: true,
        longTaskSupported: false,
        online: navigator.onLine !== false,
        pathCategory: "general",
        manualReloadCount: 0,
        reloadDeferred: false,
        reloadPrevented: false,
        standalone: standalone,
        visibility: document.visibilityState || "unknown",
        waitingContract: null,
        waitingState: null,
        waitingVersion: null,
        workerEnabled: config.workerEnabled
      };
      var registration = null;
      var registrationPromise = null;
      var checkPromise = null;
      var lastCheckAt = 0;
      var observedRegistration = null;
      var observedWorkers = [];
      var statusWorkers = [];
      var activationRequestKey = null;
      var activationRequestedAt = 0;
      var controllerDecisionMade = false;
      var errorListenersInstalled = false;
      var longTaskObserver = null;
      var workerRecoveryNavigation = false;
      var deploymentRecoveryFromQuery = null;
      var deploymentManualRecovery = false;
      var deploymentDecisionPending = null;
      var deploymentCheckPending = null;
      var stableFallbackActive = false;
      var automaticRecoveryLatchMemory = null;
      var automaticRecoveryLatchSource = null;
      var automaticRecoveryFromQuery = false;
      var automaticRecoveryFromHistory = false;
      function sanitizeRecoveryIdentifier(value, fallback) {
        var normalized = String(value == null ? "" : value).trim().slice(0, 160);
        return normalized && /^[a-zA-Z0-9._:-]+$/.test(normalized)
          ? normalized
          : (fallback === undefined ? "unknown" : fallback);
      }
      function hashRecoveryIdentity(value) {
        var hash = 2166136261;
        for (var index = 0; index < value.length; index += 1) {
          hash ^= value.charCodeAt(index);
          hash = Math.imul(hash, 16777619);
        }
        return (hash >>> 0).toString(36);
      }
      try {
        var recoveryParameters = new URLSearchParams(window.location.search);
        if (
          window.location.pathname === "/" &&
          recoveryParameters.get(config.recoveryNavigationQueryKey) ===
            config.contractVersion
        ) {
          workerRecoveryNavigation = true;
          automaticRecoveryFromQuery = true;
          deploymentRecoveryFromQuery = "legacy_worker";
          recoveryParameters.delete(config.recoveryNavigationQueryKey);
          var recoveredSearch = recoveryParameters.toString();
          window.history.replaceState(
            window.history.state,
            "",
            window.location.pathname +
              (recoveredSearch ? "?" + recoveredSearch : "") +
              window.location.hash
          );
        }
        var deploymentQueryRecovery = sanitizeRecoveryIdentifier(
          recoveryParameters.get(config.deploymentRecoveryQueryKey),
          ""
        ) || null;
        if (deploymentQueryRecovery) {
          deploymentRecoveryFromQuery = deploymentQueryRecovery;
          automaticRecoveryFromQuery = true;
        }
        deploymentManualRecovery =
          recoveryParameters.get(config.deploymentManualQueryKey) === "1";
        var deploymentHistoryState =
          window.history &&
          window.history.state &&
          window.history.state.__ybPwaDeploymentRecovery;
        if (
          !automaticRecoveryFromQuery &&
          !deploymentManualRecovery &&
          deploymentHistoryState &&
          typeof deploymentHistoryState.at === "number" &&
          Date.now() >= deploymentHistoryState.at &&
          Date.now() - deploymentHistoryState.at <= config.deploymentRecoveryTtlMs
        ) {
          automaticRecoveryFromHistory =
            deploymentHistoryState.automaticAttempted === true ||
            Boolean(deploymentHistoryState.episodeId);
          deploymentRecoveryFromQuery =
            sanitizeRecoveryIdentifier(deploymentHistoryState.episodeId, "") ||
            (automaticRecoveryFromHistory ? "attempted" : null);
          deploymentManualRecovery = deploymentHistoryState.manual === true;
        }
        if (
          automaticRecoveryFromQuery ||
          automaticRecoveryFromHistory ||
          deploymentManualRecovery
        ) {
          recoveryParameters.delete(config.deploymentManualQueryKey);
          var cleanedRecoverySearch = recoveryParameters.toString();
          var nextRecoveryHistoryState = Object.assign({}, window.history.state || {});
          nextRecoveryHistoryState.__ybPwaDeploymentRecovery = {
            at: Date.now(),
            automaticAttempted:
              automaticRecoveryFromQuery || automaticRecoveryFromHistory,
            episodeId: deploymentRecoveryFromQuery || "manual",
            manual: deploymentManualRecovery
          };
          window.history.replaceState(
            nextRecoveryHistoryState,
            "",
            window.location.pathname +
              (cleanedRecoverySearch ? "?" + cleanedRecoverySearch : "") +
              window.location.hash
          );
        }
      } catch (_) {}
      if (
        automaticRecoveryFromQuery ||
        automaticRecoveryFromHistory ||
        deploymentManualRecovery
      ) {
        snapshot.deploymentRecoveryActive = true;
        snapshot.deploymentRecoveryEpisodeId =
          deploymentRecoveryFromQuery || "manual";
        snapshot.automaticReloadCount =
          automaticRecoveryFromQuery || automaticRecoveryFromHistory ? 1 : 0;
      }
      try { sessionStorage.removeItem("yb_chunk_recovered"); } catch (_) {}
      var initialController = navigator.serviceWorker && navigator.serviceWorker.controller;
      var initialControllerMetadata = workerMetadata(initialController);
      var recoveryReloadRequired =
        Boolean(initialController) &&
        !isExpectedWorker(initialController) &&
        !workerRecoveryNavigation;

      function safeString(value) {
        var stringValue = String(value == null ? "" : value);
        if (!/^[a-zA-Z0-9._:/ -]{0,160}$/.test(stringValue)) return null;
        return stringValue;
      }

      function safeDetails(details) {
        var result = {};
        if (!details || typeof details !== "object") return result;
        Object.keys(details).forEach(function (key) {
          if (!allowedDetailKeys[key]) return;
          var value = details[key];
          if (key === "cacheNames") {
            if (!Array.isArray(value)) return;
            result.cacheNames = value
              .filter(function (name) {
                return (
                  typeof name === "string" &&
                  name.indexOf("yb-pwa-") === 0 &&
                  /^[a-zA-Z0-9._-]{1,120}$/.test(name)
                );
              })
              .slice(0, 20);
            return;
          }
          if (typeof value === "boolean") {
            result[key] = value;
            return;
          }
          if (typeof value === "number" && isFinite(value)) {
            result[key] =
              key === "bootStartedEpochMs"
                ? Math.max(0, Math.min(Number.MAX_SAFE_INTEGER, Math.round(value)))
                : Math.max(-1, Math.min(86400000, Math.round(value)));
            return;
          }
          if (typeof value === "string") {
            var sanitized = safeString(value);
            if (sanitized !== null) result[key] = sanitized;
          }
        });
        return result;
      }

      function readPreviousBoot() {
        try {
          var previous = JSON.parse(sessionStorage.getItem(config.diagnosticsKey) || "null");
          if (!previous || previous.version !== config.diagnosticsVersion) return null;
          var previousEvents = Array.isArray(previous.events)
            ? previous.events.slice(-20).map(function (entry) {
                return {
                  data: safeDetails(entry && entry.data),
                  t:
                    entry && typeof entry.t === "number" && isFinite(entry.t)
                      ? Math.max(0, Math.min(86400000, Math.round(entry.t)))
                      : 0,
                  type:
                    entry && allowedEvents[entry.type]
                      ? entry.type
                      : "worker_state"
                };
              })
            : [];
          return {
            events: previousEvents,
            snapshot: safeDetails(previous.snapshot),
            version: config.diagnosticsVersion
          };
        } catch (_) {
          return null;
        }
      }

      var prior = readPreviousBoot();

      function persist() {
        try {
          sessionStorage.setItem(
            config.diagnosticsKey,
            JSON.stringify({
              events: events.slice(-config.maxEvents),
              previousBoot: prior,
              snapshot: safeDetails(snapshot),
              version: config.diagnosticsVersion
            })
          );
        } catch (_) {}
      }

      function emitState() {
        try {
          window.dispatchEvent(new CustomEvent(config.stateEvent));
        } catch (_) {}
      }

      function record(type, details) {
        var safeType = allowedEvents[type] ? type : "worker_state";
        events.push({
          data: safeDetails(details),
          t: Math.max(0, Math.round(now() - bootStartedAt)),
          type: safeType
        });
        if (events.length > config.maxEvents) {
          events.splice(0, events.length - config.maxEvents);
        }
        persist();
        emitState();
      }

      function queryHasAny(keys) {
        if (!window.location.search) return false;
        try {
          var params = new URLSearchParams(window.location.search);
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function fragmentHasAny(keys) {
        if (!window.location.hash) return false;
        try {
          var params = new URLSearchParams(
            String(window.location.hash).replace(/^#/, "")
          );
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function pathCategory() {
        var path = String(window.location.pathname || "/").replace(/\/+$/, "") || "/";
        var rules = config.routeRules;
        if (
          rules.authCallbackPaths.some(function (candidate) {
            return path === candidate || path.indexOf(candidate + "/") === 0;
          }) ||
          (
            path === "/" &&
            (
              queryHasAny(rules.authCallbackQueryKeys) ||
              fragmentHasAny(rules.authCallbackQueryKeys)
            )
          )
        ) return "auth_callback";
        if (path === "/business/pos" || path.indexOf("/business/pos/") === 0) return "pos";
        if (path === "/checkout" || path.indexOf("/checkout/") === 0 || path === "/cart") {
          return "checkout";
        }
        if (
          path === "/business/dashboard" &&
          queryHasAny(["billing", "checkout", "stripe"])
        ) return "payment_callback";
        if (
          path.indexOf("/orders/") === 0 ||
          path === "/business/orders" ||
          path === "/account/orders" ||
          path === "/account/purchase-history"
        ) return "receipt";
        if (
          rules.businessFormPatternSources.some(function (source) {
            return new RegExp(source).test(path);
          })
        ) return "business_form";
        if (
          path === "/" &&
          !window.location.search &&
          !window.location.hash
        ) return "startup";
        if (path === "/") {
          return window.location.search ? "root_query" : "root_fragment";
        }
        return "general";
      }

      function routeSafety() {
        var category = pathCategory();
        var unsafe = {
          auth_callback: true,
          business_form: true,
          checkout: true,
          payment_callback: true,
          pos: true,
          receipt: true
        };
        return {
          autoReload: category === "startup",
          category: category,
          safe: !unsafe[category]
        };
      }

      function refreshRouteState(trigger) {
        var safety = routeSafety();
        snapshot.pathCategory = safety.category;
        record("worker_state", {
          autoReload: safety.autoReload,
          pathCategory: safety.category,
          trigger: trigger || "route_change"
        });
        return safety;
      }

      function workerMetadata(worker) {
        if (!worker || !worker.scriptURL) {
          return {
            contract: null,
            present: Boolean(worker),
            scriptPath: null,
            state: worker && worker.state ? String(worker.state) : null,
            version: null
          };
        }
        try {
          var url = new URL(worker.scriptURL, window.location.origin);
          return {
            contract: url.searchParams.get("c"),
            present: true,
            scriptPath: url.pathname,
            state: worker.state ? String(worker.state) : null,
            version: url.searchParams.get("v")
          };
        } catch (_) {
          return {
            contract: null,
            present: true,
            scriptPath: null,
            state: worker.state ? String(worker.state) : null,
            version: null
          };
        }
      }

      function isExpectedWorker(worker) {
        var metadata = workerMetadata(worker);
        return (
          metadata.present &&
          metadata.scriptPath === "/sw.js" &&
          metadata.contract === config.contractVersion &&
          metadata.version === config.expectedVersion
        );
      }

      function recordWorkerStatus(worker, source) {
        if (!worker || typeof MessageChannel !== "function") return;
        if (statusWorkers.indexOf(worker) !== -1) return;
        statusWorkers.push(worker);
        if (statusWorkers.length > 20) statusWorkers.shift();
        var channel = new MessageChannel();
        var settled = false;
        var timer = window.setTimeout(function () {
          if (settled) return;
          settled = true;
          try { channel.port1.close(); } catch (_) {}
        }, 750);
        channel.port1.onmessage = function (event) {
          if (settled) return;
          settled = true;
          window.clearTimeout(timer);
          var data = event && event.data;
          record("worker_status", {
            activeContract: data && data.contract,
            activeVersion: data && data.version,
            source: source,
            state: data && data.activationMode
          });
          try { channel.port1.close(); } catch (_) {}
        };
        try {
          worker.postMessage({ type: "GET_STATUS" }, [channel.port2]);
        } catch (_) {
          window.clearTimeout(timer);
          try { channel.port1.close(); } catch (_) {}
        }
      }

      function collectCacheMetadata() {
        if (!("caches" in window) || !window.caches || typeof window.caches.keys !== "function") {
          return;
        }
        Promise.resolve(window.caches.keys()).then(function (names) {
          var cacheNames = Array.isArray(names)
            ? names.filter(function (name) {
                return typeof name === "string" && name.indexOf("yb-pwa-") === 0;
              })
            : [];
          record("cache_metadata", { cacheNames: cacheNames });
        }).catch(function () {});
      }

      function updateWorkerSnapshot(nextRegistration, trigger) {
        var active = workerMetadata(nextRegistration && nextRegistration.active);
        var waiting = workerMetadata(nextRegistration && nextRegistration.waiting);
        snapshot.activeContract = active.contract;
        snapshot.activeState = active.state;
        snapshot.activeVersion = active.version;
        snapshot.waitingContract = waiting.contract;
        snapshot.waitingState = waiting.state;
        snapshot.waitingVersion = waiting.version;
        snapshot.pathCategory = routeSafety().category;
        record("worker_state", {
          activeContract: active.contract || "",
          activeState: active.state || "",
          activeVersion: active.version || "",
          pathCategory: snapshot.pathCategory,
          trigger: trigger,
          waitingContract: waiting.contract || "",
          waitingState: waiting.state || "",
          waitingVersion: waiting.version || ""
        });
        recordWorkerStatus(nextRegistration && nextRegistration.active, "active");
        recordWorkerStatus(nextRegistration && nextRegistration.waiting, "waiting");
      }

      function requestActivation(candidate, options) {
        options = options || {};
        if (!candidate || !isExpectedWorker(candidate)) {
          record("activation_deferred", {
            pathCategory: routeSafety().category,
            source: "unverified_worker",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var safety = routeSafety();
        if (navigator.onLine === false) {
          record("activation_deferred", {
            online: false,
            pathCategory: safety.category,
            source: "offline",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        if (!options.force && !safety.safe) {
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            pathCategory: safety.category,
            source: "unsafe_route",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var metadata = workerMetadata(candidate);
        var requestKey = String(metadata.contract || "") + ":" + String(metadata.version || "");
        if (
          activationRequestKey === requestKey &&
          Date.now() - activationRequestedAt < 10000
        ) return true;
        try {
          candidate.postMessage({ type: "SKIP_WAITING", contract: config.contractVersion });
          activationRequestKey = requestKey;
          activationRequestedAt = Date.now();
          snapshot.activationRequestSent = true;
          record("activation_request_sent", {
            activationRequestSent: true,
            pathCategory: safety.category,
            trigger: options.trigger || "unknown",
            waitingContract: metadata.contract || "",
            waitingVersion: metadata.version || ""
          });
          return true;
        } catch (_) {
          return false;
        }
      }

      function observeWorker(worker, nextRegistration) {
        if (!worker || observedWorkers.indexOf(worker) !== -1) return;
        observedWorkers.push(worker);
        if (observedWorkers.length > 20) observedWorkers.shift();
        var handleStateChange = function () {
          updateWorkerSnapshot(nextRegistration, "statechange");
          if (worker.state === "installed") {
            if (isExpectedWorker(worker)) {
              requestActivation(worker, { trigger: "installed" });
            } else if (nextRegistration && typeof nextRegistration.update === "function") {
              Promise.resolve(nextRegistration.update()).catch(function () {});
            }
          }
        };
        worker.addEventListener("statechange", handleStateChange);
      }

      function attachRegistration(nextRegistration, trigger) {
        registration = nextRegistration;
        runtime.registration = nextRegistration;
        updateWorkerSnapshot(nextRegistration, trigger);
        collectCacheMetadata();

        if (nextRegistration.waiting) {
          if (isExpectedWorker(nextRegistration.waiting)) {
            requestActivation(nextRegistration.waiting, { trigger: trigger });
          } else if (navigator.onLine !== false && typeof nextRegistration.update === "function") {
            Promise.resolve(nextRegistration.update()).catch(function () {});
          }
        }
        if (nextRegistration.installing) observeWorker(nextRegistration.installing, nextRegistration);

        if (observedRegistration !== nextRegistration) {
          observedRegistration = nextRegistration;
          nextRegistration.addEventListener("updatefound", function () {
            if (nextRegistration.installing) {
              observeWorker(nextRegistration.installing, nextRegistration);
              updateWorkerSnapshot(nextRegistration, "updatefound");
            }
          });
        }
      }

      function checkWorker(trigger, force) {
        if (!config.workerEnabled || !navigator.serviceWorker) {
          record("worker_unavailable", {
            trigger: trigger,
            workerEnabled: config.workerEnabled
          });
          return Promise.resolve(null);
        }
        var checkedAt = Date.now();
        if (!force && checkedAt - lastCheckAt < 2000) return checkPromise || registrationPromise;
        if (checkPromise) return checkPromise;
        lastCheckAt = checkedAt;
        record("worker_check", {
          online: navigator.onLine !== false,
          pathCategory: routeSafety().category,
          trigger: trigger
        });

        if (!registrationPromise) {
          registrationPromise = Promise.resolve(
            navigator.serviceWorker.register(config.workerUrl, {
              scope: "/",
              updateViaCache: "none"
            })
          );
          runtime.registrationPromise = registrationPromise;
        }

        checkPromise = registrationPromise
          .then(function (nextRegistration) {
            attachRegistration(nextRegistration, trigger);
            record("registration_ready", {
              activeVersion: workerMetadata(nextRegistration.active).version || "",
              trigger: trigger,
              waitingVersion: workerMetadata(nextRegistration.waiting).version || ""
            });
            if (
              navigator.onLine !== false &&
              typeof nextRegistration.update === "function" &&
              (force || nextRegistration.waiting && !isExpectedWorker(nextRegistration.waiting))
            ) {
              return Promise.resolve(nextRegistration.update())
                .catch(function () {})
                .then(function () {
                  attachRegistration(nextRegistration, trigger + "_updated");
                  return nextRegistration;
                });
            }
            return nextRegistration;
          })
          .catch(function () {
            registrationPromise = null;
            runtime.registrationPromise = null;
            record("registration_error", {
              online: navigator.onLine !== false,
              trigger: trigger
            });
            return null;
          })
          .then(function (result) {
            checkPromise = null;
            return result;
          });
        return checkPromise;
      }

      function validAutomaticRecoveryLatch(value) {
        return Boolean(
          value &&
          value.version === 1 &&
          typeof value.attemptedAt === "number" &&
          Date.now() >= value.attemptedAt &&
          Date.now() - value.attemptedAt <= config.deploymentRecoveryTtlMs
        );
      }

      function readAutomaticRecoveryLatchFrom(storage, source) {
        try {
          if (!storage) return null;
          var raw = storage.getItem(config.automaticRecoveryLatchStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (!validAutomaticRecoveryLatch(parsed)) {
            storage.removeItem(config.automaticRecoveryLatchStorageKey);
            return null;
          }
          return { record: parsed, source: source };
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchTo(storage, value) {
        try {
          if (!storage) return false;
          storage.setItem(
            config.automaticRecoveryLatchStorageKey,
            JSON.stringify(value)
          );
          return storage.getItem(config.automaticRecoveryLatchStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function safeWindowStorage(name) {
        try {
          return window[name] || null;
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchCopies(value) {
        return {
          local: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("localStorage"),
            value
          ),
          session: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("sessionStorage"),
            value
          )
        };
      }

      function setAutomaticRecoverySnapshot(source) {
        snapshot.automaticRecoveryLatchPresent = true;
        snapshot.automaticRecoveryLatchSource = source;
        snapshot.automaticReloadCount = 1;
      }

      function readAutomaticRecoveryLatch() {
        if (validAutomaticRecoveryLatch(automaticRecoveryLatchMemory)) {
          setAutomaticRecoverySnapshot(automaticRecoveryLatchSource || "memory");
          return {
            record: automaticRecoveryLatchMemory,
            source: automaticRecoveryLatchSource || "memory"
          };
        }
        var local = readAutomaticRecoveryLatchFrom(
          safeWindowStorage("localStorage"),
          "storage"
        );
        var session = local || readAutomaticRecoveryLatchFrom(
          safeWindowStorage("sessionStorage"),
          "storage"
        );
        var stored = local || session;
        if (!stored) return null;
        automaticRecoveryLatchMemory = stored.record;
        automaticRecoveryLatchSource = stored.source;
        setAutomaticRecoverySnapshot(stored.source);
        return stored;
      }

      function transferAutomaticRecoveryHandoff() {
        if (!automaticRecoveryFromQuery && !automaticRecoveryFromHistory) {
          return readAutomaticRecoveryLatch();
        }
        var source = automaticRecoveryFromQuery ? "query" : "history";
        var existing =
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("localStorage"),
            "storage"
          ) ||
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("sessionStorage"),
            "storage"
          );
        var value = existing
          ? existing.record
          : {
              version: 1,
              attemptedAt: Date.now(),
              owner: sanitizeRecoveryIdentifier(
                deploymentRecoveryFromQuery,
                "handoff"
              )
            };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = source;
        setAutomaticRecoverySnapshot(source);
        var writes = writeAutomaticRecoveryLatchCopies(value);

        // A local-storage transfer survives a new WebKit session namespace.
        // Until that succeeds, retain the fixed query handoff in the URL.
        if (automaticRecoveryFromQuery && writes.local) {
          try {
            var parameters = new URLSearchParams(window.location.search);
            parameters.delete(config.deploymentRecoveryQueryKey);
            var cleaned = parameters.toString();
            window.history.replaceState(
              window.history.state,
              "",
              window.location.pathname +
                (cleaned ? "?" + cleaned : "") +
                window.location.hash
            );
          } catch (_) {}
        }
        record("deployment_recovery", {
          automaticReloadCount: 1,
          automaticOwner: value.owner,
          latchPresent: true,
          latchSource: source,
          recoveryAction: writes.local || writes.session
            ? "query_handoff_transferred"
            : "storage_unavailable",
          storageAvailable: writes.local || writes.session
        });
        return { record: value, source: source };
      }

      function claimAutomaticRecoveryNavigation(owner) {
        var existing = readAutomaticRecoveryLatch();
        if (existing) {
          return {
            allowed: false,
            record: existing.record,
            source: existing.source
          };
        }
        var value = {
          version: 1,
          attemptedAt: Date.now(),
          owner: sanitizeRecoveryIdentifier(owner, "unknown")
        };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = "memory";
        setAutomaticRecoverySnapshot("memory");
        var writes = writeAutomaticRecoveryLatchCopies(value);
        if (writes.local || writes.session) {
          automaticRecoveryLatchSource = "storage";
          snapshot.automaticRecoveryLatchSource = "storage";
        }
        return {
          allowed: true,
          record: value,
          source: writes.local || writes.session ? "storage" : "memory",
          storageAvailable: writes.local || writes.session
        };
      }

      function automaticRecoveryTarget() {
        var target = new URL("/", location.origin);
        target.searchParams.set(config.deploymentRecoveryQueryKey, "attempted");
        return target;
      }

      function requestAutomaticRecoveryNavigation(owner, details) {
        if (!config.deploymentRecoveryEnabled) return false;
        record("deployment_recovery", {
          automaticOwner: owner,
          latchPresent: Boolean(readAutomaticRecoveryLatch()),
          recoveryAction: "automatic_owner_requested",
          routeCategory: routeSafety().category
        });
        var claim = claimAutomaticRecoveryNavigation(owner);
        if (!claim.allowed) {
          snapshot.reloadPrevented = true;
          record("reload_loop_prevented", {
            automaticOwnerSuppressed: owner,
            latchPresent: true,
            latchSource: claim.source,
            pathCategory: routeSafety().category,
            reloadPrevented: true
          });
          showStableFallback("automatic_owner_suppressed", details || {});
          return false;
        }
        if (claim.storageAvailable === false) {
          record("deployment_recovery", {
            automaticOwner: owner,
            latchPresent: true,
            latchSource: claim.source,
            recoveryAction: "storage_unavailable"
          });
        }
        snapshot.deploymentRecoveryActive = true;
        record("reload_requested", {
          automaticOwner: owner,
          autoReload: true,
          latchPresent: true,
          latchSource: claim.source,
          pathCategory: routeSafety().category,
          storageAvailable: claim.storageAvailable !== false
        });
        var target = automaticRecoveryTarget();
        window.setTimeout(function () {
          window.location.replace(target.href);
        }, 0);
        return true;
      }

      transferAutomaticRecoveryHandoff();

      function decideRecoveryReload(controller, source) {
        if (controllerDecisionMade) return;
        if (!isExpectedWorker(controller)) return;
        if (!recoveryReloadRequired) return;

        var safety = routeSafety();
        if (navigator.onLine === false) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: safety.autoReload,
            online: false,
            pathCategory: safety.category,
            source: source === "online" ? "offline_reconnect" : "offline"
          });
          return;
        }
        controllerDecisionMade = true;
        snapshot.reloadDeferred = false;
        if (!safety.autoReload) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: false,
            pathCategory: safety.category,
            source: safety.safe ? "manual_route" : "unsafe_route"
          });
          return;
        }
        requestAutomaticRecoveryNavigation(
          source === "pageshow_persisted"
            ? "controller_pageshow"
            : "controller_change",
          { responseCategory: "worker_recovery" }
        );
      }

      function handleControllerChange() {
        snapshot.controllerChangeCount += 1;
        var controller = navigator.serviceWorker && navigator.serviceWorker.controller;
        var metadata = workerMetadata(controller);
        snapshot.controllerPresent = Boolean(controller);
        snapshot.controllerContract = metadata.contract;
        snapshot.controllerVersion = metadata.version;
        record("controller_change", {
          controllerChangeCount: snapshot.controllerChangeCount,
          controllerContract: metadata.contract || "",
          controllerPresent: Boolean(controller),
          controllerVersion: metadata.version || ""
        });
        if (registration) updateWorkerSnapshot(registration, "controllerchange");

        if (!isExpectedWorker(controller)) {
          void checkWorker("controller_change_unverified", true);
          return;
        }
        decideRecoveryReload(controller, "controller_change");
      }

      function handleWorkerMessage(event) {
        var data = event && event.data;
        if (
          data &&
          data.type === "YB_AUTOMATIC_RECOVERY_REQUEST" &&
          data.contract === config.contractVersion
        ) {
          var safety = routeSafety();
          if (!safety.autoReload || navigator.onLine === false) {
            record("reload_deferred", {
              automaticOwner: "legacy_worker",
              autoReload: safety.autoReload,
              online: navigator.onLine !== false,
              pathCategory: safety.category
            });
            return;
          }
          requestAutomaticRecoveryNavigation("legacy_worker", {
            responseCategory: "worker_recovery"
          });
          return;
        }
        if (
          !data ||
          data.type !== "YB_WORKER_ACTIVATION" ||
          data.contract !== config.contractVersion
        ) return;
        var state = String(data.state || "");
        if (state.indexOf("deferred_") === 0) {
          activationRequestKey = null;
          activationRequestedAt = 0;
          snapshot.activationRequestSent = false;
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            activationRequestSent: false,
            pathCategory: routeSafety().category,
            source: "other_client",
            state: state
          });
          return;
        }
        record("worker_state", {
          activationRequestSent: snapshot.activationRequestSent,
          source: "activation_response",
          state: state
        });
      }

      function readDeploymentRecoveryRecord() {
        try {
          var raw = sessionStorage.getItem(config.deploymentRecoveryStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (
            !parsed ||
            parsed.version !== 1 ||
            typeof parsed.firstAttemptAt !== "number" ||
            Date.now() < parsed.firstAttemptAt ||
            Date.now() - parsed.firstAttemptAt > config.deploymentRecoveryTtlMs
          ) {
            sessionStorage.removeItem(config.deploymentRecoveryStorageKey);
            return null;
          }
          return parsed;
        } catch (_) {
          return null;
        }
      }

      function writeDeploymentRecoveryRecord(next) {
        try {
          sessionStorage.setItem(
            config.deploymentRecoveryStorageKey,
            JSON.stringify(next)
          );
          return sessionStorage.getItem(config.deploymentRecoveryStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function deploymentStorageAvailable() {
        try {
          var key = config.deploymentRecoveryStorageKey + ":probe";
          sessionStorage.setItem(key, "1");
          sessionStorage.removeItem(key);
          return true;
        } catch (_) {
          return false;
        }
      }

      function recoveryNavigationType() {
        try {
          var entries = performance.getEntriesByType("navigation");
          return entries.length ? String(entries[0].type || "unknown") : "unknown";
        } catch (_) {
          return "unknown";
        }
      }

      function privacySafeChunkDetails(details) {
        var chunkPath = null;
        try {
          var parsed = new URL(String(details && details.chunkUrl || ""), location.origin);
          if (parsed.origin === location.origin && parsed.pathname.indexOf("/_next/static/") === 0) {
            chunkPath = parsed.pathname.slice(0, 240);
          }
        } catch (_) {}
        return {
          chunkDpl: sanitizeRecoveryIdentifier(details && details.chunkDpl, "unknown"),
          chunkPath: chunkPath,
          prefetch: Boolean(details && details.prefetch),
          responseCategory: sanitizeRecoveryIdentifier(
            details && details.responseCategory,
            "unknown"
          )
        };
      }

      function createStableFallback() {
        var fallback = document.getElementById("yb-pwa-recovery-fallback");
        if (fallback) {
          fallback.setAttribute("data-state", "visible");
          return true;
        }
        if (!document.body) return false;

        fallback = document.createElement("section");
        fallback.id = "yb-pwa-recovery-fallback";
        fallback.className = "yb-pwa-recovery-fallback";
        fallback.setAttribute("data-state", "visible");
        fallback.setAttribute("role", "alertdialog");
        fallback.setAttribute("aria-modal", "true");
        fallback.setAttribute("aria-labelledby", "yb-pwa-recovery-title");
        fallback.setAttribute("aria-describedby", "yb-pwa-recovery-message");

        var inner = document.createElement("div");
        inner.className = "yb-pwa-recovery-fallback__inner";

        var logo = document.createElement("img");
        logo.src = "/brand/logo-mark-white.svg";
        logo.alt = "YourBarrio";
        logo.className = "yb-pwa-recovery-fallback__logo";

        var title = document.createElement("h1");
        title.id = "yb-pwa-recovery-title";
        title.textContent = "YourBarrio needs a quick refresh";

        var message = document.createElement("p");
        message.id = "yb-pwa-recovery-message";
        message.textContent =
          "YourBarrio needs to reload to continue. You’ll stay signed in.";

        var reload = document.createElement("button");
        reload.type = "button";
        reload.textContent = "Refresh YourBarrio";
        reload.className = "yb-pwa-recovery-fallback__reload";
        reload.addEventListener("click", function () {
          snapshot.manualReloadCount += 1;
          record("deployment_recovery", {
            manualReloadCount: snapshot.manualReloadCount,
            recoveryAction: "manual_reload",
            source: "stable_fallback"
          });
          var target = new URL("/", location.origin);
          target.searchParams.set(config.deploymentManualQueryKey, "1");
          location.replace(target.href);
        });

        var rootLink = document.createElement("a");
        rootLink.href = "/";
        rootLink.textContent = "Go to YourBarrio home";
        rootLink.className = "yb-pwa-recovery-fallback__home";

        inner.appendChild(logo);
        inner.appendChild(title);
        inner.appendChild(message);
        inner.appendChild(reload);
        inner.appendChild(rootLink);
        fallback.appendChild(inner);
        document.body.appendChild(fallback);
        return true;
      }

      function showStableFallback(reason, details) {
        if (stableFallbackActive) {
          createStableFallback();
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            recoveryAction: "fallback_preserved",
            source: reason || "repeated_error"
          });
          return;
        }
        stableFallbackActive = true;
        snapshot.deploymentRecoveryActive = true;
        var activate = function () {
          if (!createStableFallback()) return;
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            chunkDpl: details && details.chunkDpl,
            chunkPath: details && details.chunkPath,
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: reason || "failed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable(),
            latchPresent: Boolean(readAutomaticRecoveryLatch()),
            latchSource: snapshot.automaticRecoveryLatchSource || "memory"
          });
        };
        if (document.body) activate();
        else document.addEventListener("DOMContentLoaded", activate, { once: true });
      }

      function fetchCurrentProductionVersion() {
        if (deploymentCheckPending) return deploymentCheckPending;
        if (typeof fetch !== "function") return Promise.resolve(null);
        var controller =
          typeof AbortController === "function" ? new AbortController() : null;
        var timeout = window.setTimeout(function () {
          try { controller && controller.abort(); } catch (_) {}
        }, 4000);
        deploymentCheckPending = fetch("/api/app-version", {
          cache: "no-store",
          credentials: "same-origin",
          signal: controller ? controller.signal : undefined
        })
          .then(function (response) {
            if (!response.ok) return null;
            return response.json();
          })
          .then(function (payload) {
            var version = sanitizeRecoveryIdentifier(payload && payload.version, "");
            snapshot.currentProductionVersion = version || null;
            return version || null;
          })
          .catch(function () { return null; })
          .finally(function () {
            window.clearTimeout(timeout);
            deploymentCheckPending = null;
          });
        return deploymentCheckPending;
      }

      function coordinateDeploymentRecovery(input) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve({ action: "ignore", automaticNavigation: false });
        }
        var details = privacySafeChunkDetails(input || {});
        if (details.prefetch) {
          record("deployment_recovery", {
            chunkDpl: details.chunkDpl,
            chunkPath: details.chunkPath,
            documentVersion: config.expectedVersion,
            recoveryAction: "prefetch_ignored",
            routeCategory: routeSafety().category
          });
          return Promise.resolve({ action: "prefetch_ignored", automaticNavigation: false });
        }
        if (deploymentDecisionPending) return deploymentDecisionPending;

        var suppliedCurrentVersion =
          input && sanitizeRecoveryIdentifier(input.currentVersion, "");
        var currentVersionRequest = suppliedCurrentVersion
          ? Promise.resolve(suppliedCurrentVersion)
          : fetchCurrentProductionVersion();
        deploymentDecisionPending = currentVersionRequest
          .then(function (currentVersion) {
            var safety = routeSafety();
            var documentVersion = sanitizeRecoveryIdentifier(config.expectedVersion);
            var safeCurrentVersion = sanitizeRecoveryIdentifier(
              currentVersion || input && input.currentVersion,
              "unknown"
            );
            var identity = [
              documentVersion,
              safeCurrentVersion,
              details.chunkDpl,
              safety.category
            ].join("|");
            var episodeId = hashRecoveryIdentity(identity);
            var recoveryKey = hashRecoveryIdentity(
              identity + "|" + (details.chunkPath || "unknown")
            );
            var prior = readDeploymentRecoveryRecord();
            var storageAvailable = deploymentStorageAvailable();
            var latch = readAutomaticRecoveryLatch();
            var alreadyRecovered = Boolean(latch);
            var versionCategory =
              safeCurrentVersion === "unknown" ? "unknown" : "known";
            if (versionCategory === "unknown") {
              record("deployment_check", {
                currentVersion: "",
                documentVersion: documentVersion,
                recoveryAction: "version_unavailable",
                source: "deployment_recovery",
                versionCategory: "unknown"
              });
            }

            snapshot.deploymentRecoveryActive = true;
            snapshot.deploymentRecoveryEpisodeId =
              deploymentRecoveryFromQuery || episodeId;
            if (!safety.safe || navigator.onLine === false) {
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "deferred",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                versionCategory: versionCategory
              });
              if (input && input.failure === true) {
                showStableFallback("deferred", details);
              }
              return { action: "deferred", automaticNavigation: false };
            }

            if (alreadyRecovered) {
              if (prior) {
                prior.lastFailureAt = Date.now();
                prior.failureCount = Number(prior.failureCount || 1) + 1;
                writeDeploymentRecoveryRecord(prior);
              }
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "stable_fallback",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                latchPresent: true,
                latchSource: latch && latch.source,
                versionCategory: versionCategory
              });
              showStableFallback("automatic_recovery_exhausted", details);
              return { action: "failed", automaticNavigation: false };
            }

            var automaticNavigation = requestAutomaticRecoveryNavigation(
              "deployment_coordinator",
              details
            );
            if (!automaticNavigation) {
              return { action: "failed", automaticNavigation: false };
            }
            writeDeploymentRecoveryRecord({
              version: 1,
              episodeId: episodeId,
              documentVersion: documentVersion,
              currentVersion: safeCurrentVersion,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              recoveryKey: recoveryKey,
              routeCategory: safety.category,
              firstAttemptAt: Date.now(),
              lastFailureAt: Date.now(),
              failureCount: 1,
              automaticReloadCount: 1
            });
            record("deployment_recovery", {
              automaticReloadCount: 1,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              currentVersion: safeCurrentVersion,
              documentVersion: documentVersion,
              episodeId: episodeId,
              navigationType: recoveryNavigationType(),
              recoveryAction: "navigate_root",
              recoveryKey: recoveryKey,
              responseCategory: details.responseCategory,
              routeCategory: safety.category,
              storageAvailable: storageAvailable,
              latchPresent: true,
              latchSource: snapshot.automaticRecoveryLatchSource || "memory",
              versionCategory: versionCategory
            });
            return { action: "refreshing", automaticNavigation: true };
          })
          .finally(function () {
            deploymentDecisionPending = null;
          });
        return deploymentDecisionPending;
      }

      function checkDeploymentSkew(source, persisted) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve(null);
        }
        if (!standalone || document.visibilityState === "hidden") {
          return Promise.resolve(null);
        }
        return fetchCurrentProductionVersion().then(function (currentVersion) {
          var mismatch =
            Boolean(currentVersion) &&
            String(currentVersion) !== String(config.expectedVersion);
          record("deployment_check", {
            currentVersion: currentVersion || "",
            documentVersion: config.expectedVersion,
            persisted: Boolean(persisted),
            recoveryAction: mismatch ? "mismatch" : "match",
            source: source,
            storageAvailable: deploymentStorageAvailable()
          });
          return { mismatch: mismatch };
        });
      }

      function removePreHydrationErrorListeners() {
        if (!errorListenersInstalled) return;
        errorListenersInstalled = false;
        window.removeEventListener("error", handleJavaScriptError, true);
        window.removeEventListener("unhandledrejection", handlePromiseRejection);
        if (longTaskObserver) {
          try { longTaskObserver.disconnect(); } catch (_) {}
          longTaskObserver = null;
        }
      }

      function safeErrorType(value) {
        var name = value && typeof value.name === "string" ? value.name : "";
        var known = {
          AbortError: true,
          Error: true,
          EvalError: true,
          NetworkError: true,
          RangeError: true,
          ReferenceError: true,
          SecurityError: true,
          SyntaxError: true,
          TypeError: true,
          URIError: true
        };
        if (known[name]) return name;
        return value == null ? "unknown" : typeof value;
      }

      function preHydrationChunkFailure(event, reason) {
        var target = event && event.target;
        var candidateUrl =
          target && typeof target.src === "string"
            ? target.src
            : target && typeof target.href === "string"
              ? target.href
              : "";
        var message = String(
          reason && (reason.message || reason.name) ||
          event && event.message ||
          ""
        );
        var isNextAsset =
          candidateUrl.indexOf("/_next/static/") !== -1 ||
          message.indexOf("/_next/static/") !== -1;
        var explicitChunkFailure =
          /ChunkLoadError|Loading (?:CSS )?chunk|dynamically imported module|module script failed/i.test(
            message
          );
        if (!isNextAsset && !explicitChunkFailure) return null;
        var prefetch =
          Boolean(target && /^(?:prefetch|modulepreload)$/i.test(target.rel || "")) ||
          Boolean(reason && (reason.prefetch === true || reason.isPrefetch === true));
        var chunkDpl = "unknown";
        try {
          chunkDpl = new URL(candidateUrl, location.origin).searchParams.get("dpl") || "unknown";
        } catch (_) {}
        return {
          chunkDpl: chunkDpl,
          chunkUrl: candidateUrl,
          failure: true,
          prefetch: prefetch,
          responseCategory: "network"
        };
      }

      function handleJavaScriptError(event) {
        record("javascript_error", {
          errorType: safeErrorType(event && event.error),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, event && event.error);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function handlePromiseRejection(event) {
        var reason = event && event.reason;
        record("promise_rejection", {
          promiseReasonType: safeErrorType(reason),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, reason);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function installPreHydrationDiagnostics() {
        errorListenersInstalled = true;
        window.addEventListener("error", handleJavaScriptError, true);
        window.addEventListener("unhandledrejection", handlePromiseRejection);
        if (typeof PerformanceObserver !== "function") {
          record("long_task_observer", { longTaskSupported: false });
          return;
        }
        try {
          longTaskObserver = new PerformanceObserver(function (list) {
            list.getEntries().slice(0, 10).forEach(function (entry) {
              record("long_task", {
                durationMs: entry.duration,
                source: "pre_hydration"
              });
            });
          });
          longTaskObserver.observe({ entryTypes: ["longtask"] });
          snapshot.longTaskSupported = true;
          record("long_task_observer", { longTaskSupported: true });
        } catch (_) {
          longTaskObserver = null;
          record("long_task_observer", { longTaskSupported: false });
        }
      }

      var runtime = {
        checkWorker: checkWorker,
        checkDeploymentSkew: checkDeploymentSkew,
        coordinateDeploymentRecovery: coordinateDeploymentRecovery,
        contractVersion: config.contractVersion,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        expectedWorkerVersion: config.expectedVersion,
        getDiagnostics: function () {
          return {
            events: events.slice(),
            previousBoot: prior
              ? {
                  events: prior.events.slice(),
                  snapshot: Object.assign({}, prior.snapshot),
                  version: prior.version
                }
              : null,
            snapshot: Object.assign({}, snapshot),
            version: config.diagnosticsVersion
          };
        },
        markHydrated: function () {
          if (snapshot.hydrated) return;
          snapshot.hydrated = true;
          record("react_hydrated", {
            hydrated: true,
            pathCategory: routeSafety().category
          });
          removePreHydrationErrorListeners();
        },
        isDeploymentRecoveryActive: function () {
          return Boolean(
            snapshot.deploymentRecoveryActive ||
            deploymentDecisionPending
          );
        },
        recordSessionExpirySuppressed: function () {
          snapshot.deploymentRecoveryActive = true;
          record("deployment_recovery", {
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: "session_expired_suppressed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable()
          });
        },
        record: record,
        refreshRouteState: refreshRouteState,
        registration: null,
        registrationPromise: null,
        requestActivation: requestActivation,
        snapshot: snapshot,
        showStableFallback: showStableFallback,
        workerUrl: config.workerUrl
      };
      window.__ybPwaStartup = runtime;

      snapshot.pathCategory = routeSafety().category;
      var currentControllerMetadata = initialControllerMetadata;
      snapshot.controllerContract = currentControllerMetadata.contract;
      snapshot.controllerVersion = currentControllerMetadata.version;
      installPreHydrationDiagnostics();
      record("inline_script_executed", {
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerContract: currentControllerMetadata.contract || "",
        controllerPresent: Boolean(initialController),
        controllerVersion: currentControllerMetadata.version || "",
        expectedVersion: config.expectedVersion,
        inlineExecuted: true,
        online: snapshot.online,
        pathCategory: snapshot.pathCategory,
        previousEventCount: prior ? prior.events.length : 0,
        source: workerRecoveryNavigation ? "worker_recovery_navigation" : "document",
        standalone: standalone,
        visibility: snapshot.visibility,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        workerEnabled: config.workerEnabled
      });

      if (navigator.serviceWorker) {
        navigator.serviceWorker.addEventListener("controllerchange", handleControllerChange);
        navigator.serviceWorker.addEventListener("message", handleWorkerMessage);
      }
      window.addEventListener("pageshow", function (event) {
        record("page_show", {
          persisted: Boolean(event && event.persisted),
          visibility: document.visibilityState || "unknown"
        });
        if (event && event.persisted) {
          void checkDeploymentSkew("pageshow_persisted", true);
          var restoredController =
            navigator.serviceWorker && navigator.serviceWorker.controller;
          var restoredMetadata = workerMetadata(restoredController);
          var controllerChangedWhileFrozen =
            snapshot.controllerPresent !== Boolean(restoredController) ||
            snapshot.controllerContract !== restoredMetadata.contract ||
            snapshot.controllerVersion !== restoredMetadata.version;
          if (controllerChangedWhileFrozen) {
            snapshot.controllerChangeCount += 1;
            snapshot.controllerPresent = Boolean(restoredController);
            snapshot.controllerContract = restoredMetadata.contract;
            snapshot.controllerVersion = restoredMetadata.version;
            record("controller_change", {
              controllerChangeCount: snapshot.controllerChangeCount,
              controllerContract: restoredMetadata.contract || "",
              controllerPresent: Boolean(restoredController),
              controllerVersion: restoredMetadata.version || "",
              source: "pageshow_persisted"
            });
            if (isExpectedWorker(restoredController)) {
              decideRecoveryReload(restoredController, "pageshow_persisted");
            }
          }
        }
        void checkWorker(event && event.persisted ? "pageshow_persisted" : "pageshow", Boolean(event && event.persisted));
      });
      window.addEventListener("online", function () {
        snapshot.online = true;
        record("network_change", { online: true });
        void checkWorker("online", true);
        if (
          snapshot.reloadDeferred &&
          recoveryReloadRequired &&
          !controllerDecisionMade &&
          isExpectedWorker(navigator.serviceWorker && navigator.serviceWorker.controller)
        ) {
          decideRecoveryReload(
            navigator.serviceWorker && navigator.serviceWorker.controller,
            "online"
          );
        }
      });
      window.addEventListener("offline", function () {
        snapshot.online = false;
        record("network_change", { online: false });
      });
      document.addEventListener("visibilitychange", function () {
        snapshot.visibility = document.visibilityState || "unknown";
        record("visibility_change", { visibility: snapshot.visibility });
        if (snapshot.visibility === "visible") {
          void checkWorker("visibility", false);
          void checkDeploymentSkew("visibility", false);
        }
      });

      void checkWorker("inline", true);
    })({"contractVersion":"legacy-recovery-v1","diagnosticsKey":"yb:pwa-startup:v1","diagnosticsVersion":1,"deploymentRecoveryEnabled":true,"automaticRecoveryLatchStorageKey":"yb:pwa-automatic-recovery:v1","deploymentManualQueryKey":"yb_pwa_manual_recovery","deploymentRecoveryQueryKey":"yb_pwa_chunk_recovery","deploymentRecoveryStorageKey":"yb:pwa-deployment-recovery:v1","deploymentRecoveryTtlMs":604800000,"expectedVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","maxEvents":80,"recoveryNavigationQueryKey":"yb_pwa_recovery","routeRules":{"authCallbackPaths":["/api/auth/callback","/auth/callback","/auth/confirm","/auth/confirm-start","/auth/handoff","/auth/update-password","/business-auth/post-confirm","/oauth/callback","/set-password"],"authCallbackQueryKeys":["access_token","code","refresh_token","token_hash"],"businessFormPatternSources":["^/onboarding(?:/|$)","^/business/listings/new(?:/|$)","^/business/listings/[^/]+/edit(?:/|$)","^/business-auth/create-password(?:/|$)","^/business-auth/register(?:/|$)","^/business/onboarding(?:/|$)","^/business/profile(?:/|$)","^/business/settings(?:/|$)","^/business/staff/profile(?:/|$)"]},"stateEvent":"yb:pwa-startup-state","workerEnabled":true,"workerUrl":"/sw.js?c=legacy-recovery-v1\u0026v=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"});
  1d:I[6429,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
1f:I[54935,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
20:I[48179,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
21:I[75190,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"Analytics"]
22:I[34917,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3203","static/chunks/3203-bae609dbadb12380.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","2298","static/chunks/2298-0fc890afef11634d.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8947","static/chunks/8947-087d1c7a88406fb9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","3268","static/chunks/3268-be27a1176854440e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","4806","static/chunks/4806-1dcfd08eed7f07a0.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9239","static/chunks/9239-970bbea75568eef2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1405","static/chunks/1405-2a2ba701035a7ccc.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1848","static/chunks/1848-ef55ca3b0afd22a6.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5482","static/chunks/5482-996dbf6a7dc27a8e.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","9551","static/chunks/9551-0ecd922b9a1eced2.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1379","static/chunks/1379-375ae1062ab7c061.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","7177","static/chunks/app/layout-15b045da8540dc0a.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"SpeedInsights"]
32:I[67756,["5290","static/chunks/5290-daaa85413451ad4b.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8039","static/chunks/app/error-80ca68a0029eb2c9.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
33:I[98500,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8437","static/chunks/8437-a84858f2040dc3e1.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1008","static/chunks/app/(business-marketing)/business/page-e239f731f57502b3.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],""]
34:I[75807,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8437","static/chunks/8437-a84858f2040dc3e1.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1008","static/chunks/app/(business-marketing)/business/page-e239f731f57502b3.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"default"]
3d:I[38437,["8500","static/chunks/8500-b9146379e8b7902f.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","8437","static/chunks/8437-a84858f2040dc3e1.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","1008","static/chunks/app/(business-marketing)/business/page-e239f731f57502b3.js?dpl=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"],"Image"]
45:I[86869,[],"IconMark"]
:HL["/brand/logo-mark-white.svg","image",{"fetchPriority":"high"}]
:HL["/brand/navbar-logo-dark.svg","image",{"fetchPriority":"high","media":"(min-width: 1024px)"}]
:HL["/brand/logo-mark-purple.svg","image",{"fetchPriority":"high","media":"(max-width: 1023.98px)"}]
2:["$","html",null,{"lang":"en","className":"theme-light yb-app-booting __variable_f5347a","data-theme":"light","data-scroll-behavior":"auto","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$f"}}],"$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17",["$L18"],["$L19"]]}],"$L1a"]}]
10:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n              try {\n                if (\"scrollRestoration\" in history) {\n                  history.scrollRestoration = \"manual\";\n                }\n              } catch (_) {}\n            "}}]
1b:T462,
    (function () {
      var root = document.documentElement;
      var done = false;
      function record(type, details) {
        try {
          if (window.__ybPwaStartup && typeof window.__ybPwaStartup.record === "function") {
            window.__ybPwaStartup.record(type, details);
          }
        } catch (_) {}
      }
      function markBootReady(source) {
        if (done) return;
        done = true;
        record("boot_ready_signal", { source: source || "unknown" });
        root.classList.add("yb-app-ready");
        root.classList.remove("yb-app-booting");
        if (document.getElementById("yb-pwa-recovery-fallback")) {
          record("stable_fallback", {
            recoveryAction: "fallback_preserved",
            source: source || "unknown"
          });
        }
      }
      window.__ybMarkBootReady = markBootReady;
      record("splash_failsafe_scheduled", { durationMs: 3000 });
      window.__ybBootSplashTimer = window.setTimeout(function () {
        record("splash_failsafe_fired", { durationMs: 3000 });
        markBootReady("splash_failsafe");
      }, 3000);
    })();
  11:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$1b"}}]
12:["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}]
13:["$","meta",null,{"name":"theme-color","content":"#411991"}]
1c:T102a,
              html.yb-standalone-mode.yb-app-booting,
              html.yb-standalone-mode.yb-app-booting body {
                background: #411991;
              }

              #yb-boot-splash {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                opacity: 0;
                visibility: hidden;
                transition: opacity 320ms ease, visibility 320ms ease;
                pointer-events: none;
                contain: strict;
              }

              html.yb-standalone-mode.yb-app-booting #yb-boot-splash[data-state="visible"] {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
              }

              #yb-boot-splash[data-state="hidden"],
              html.yb-app-ready #yb-boot-splash,
              html.yb-browser-mode #yb-boot-splash {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
              }

              .yb-boot-splash__inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 24px;
              }

              .yb-boot-splash__logo {
                display: block;
                width: clamp(92px, 26vw, 132px);
                height: auto;
              }

              #yb-pwa-recovery-fallback {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                overflow: auto;
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                color: #ffffff;
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
              }

              .yb-pwa-recovery-fallback__inner {
                display: flex;
                width: min(100%, 460px);
                flex-direction: column;
                align-items: center;
                gap: 18px;
                padding: 28px;
                text-align: center;
              }

              .yb-pwa-recovery-fallback__logo {
                display: block;
                width: 88px;
                height: auto;
              }

              .yb-pwa-recovery-fallback__inner h1 {
                max-width: 420px;
                margin: 0;
                font-size: 22px;
                line-height: 1.3;
              }

              .yb-pwa-recovery-fallback__inner p {
                max-width: 420px;
                margin: 0;
                color: rgba(255, 255, 255, 0.86);
                font-size: 15px;
                line-height: 1.55;
              }

              .yb-pwa-recovery-fallback__reload {
                border: 0;
                border-radius: 12px;
                padding: 12px 20px;
                background: #ffffff;
                color: #411991;
                cursor: pointer;
                font-size: 15px;
                font-weight: 700;
              }

              .yb-pwa-recovery-fallback__home {
                color: #ffffff;
                font-size: 14px;
                text-decoration: underline;
                text-underline-offset: 3px;
              }

              @media (prefers-reduced-motion: reduce) {
                #yb-boot-splash {
                  transition: none;
                }
              }
            14:["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$1c"}}]
15:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-white.svg","fetchPriority":"high"}]
16:["$","link",null,{"rel":"preload","as":"image","href":"/brand/navbar-logo-dark.svg","media":"(min-width: 1024px)","fetchPriority":"high"}]
17:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-purple.svg","media":"(max-width: 1023.98px)","fetchPriority":"high"}]
18:["$","link","preconnect-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"preconnect","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
19:["$","link","dns-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"dns-prefetch","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
1a:["$","body",null,{"className":"min-h-screen w-full overflow-x-hidden bg-[#f6f7fb] antialiased text-[var(--yb-text)]","children":[["$","$L1d",null,{}],["$","$9",null,{"fallback":null,"children":"$L1e"}],["$","$L1f",null,{"initialLocation":{"source":"default","city":"Long Beach","region":"CA","country":"US","zip":"$undefined","lat":33.7701,"lng":-118.1937,"placeId":"$undefined","label":"Long Beach, CA","kind":"$undefined","updatedAt":1787782839794},"initialAuth":null,"initialAuthResolved":true,"children":[[[],[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:1:children:0:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:1:children:0:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:1:children:0:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:1:children:0:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],"$1a:props:children:2:props:children:0:0"]],"$undefined","$undefined"]}],null,["$","$L20",null,{"currentVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"}],["$","$L21",null,{}],["$","$L22",null,{}]]}]
c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
1e:null
23:T10160,
    (function (config) {
      "use strict";

      var root = document.documentElement;
      var now = function () {
        return window.performance && typeof window.performance.now === "function"
          ? window.performance.now()
          : Date.now();
      };
      var bootStartedAt = now();
      var bootStartedEpochMs = Date.now();
      var standalone = false;
      try {
        standalone =
          (window.matchMedia && window.matchMedia("(display-mode: standalone)").matches) ||
          window.navigator.standalone === true;
      } catch (_) {}

      window.__ybStandaloneMode = standalone;
      window.__ybBootStartedAt = bootStartedAt;
      root.classList.add(standalone ? "yb-standalone-mode" : "yb-browser-mode");
      if (!standalone) root.classList.remove("yb-app-booting");

      var allowedEvents = {
        activation_deferred: true,
        activation_request_sent: true,
        boot_ready_signal: true,
        cache_metadata: true,
        deployment_check: true,
        deployment_recovery: true,
        controller_change: true,
        inline_script_executed: true,
        javascript_error: true,
        long_task: true,
        long_task_observer: true,
        network_change: true,
        page_show: true,
        promise_rejection: true,
        react_hydrated: true,
        registration_error: true,
        registration_ready: true,
        reload_deferred: true,
        reload_loop_prevented: true,
        reload_requested: true,
        splash_failsafe_fired: true,
        splash_failsafe_scheduled: true,
        stable_fallback: true,
        visibility_change: true,
        worker_check: true,
        worker_state: true,
        worker_status: true,
        worker_unavailable: true
      };
      var allowedDetailKeys = {
        activeContract: true,
        activeState: true,
        activeVersion: true,
        activationRequestSent: true,
        autoReload: true,
        bootStartedEpochMs: true,
        cacheNames: true,
        contractVersion: true,
        controllerChangeCount: true,
        controllerContract: true,
        controllerPresent: true,
        controllerVersion: true,
        count: true,
        durationMs: true,
        automaticReloadCount: true,
        automaticOwner: true,
        automaticOwnerSuppressed: true,
        chunkDpl: true,
        chunkPath: true,
        currentVersion: true,
        documentVersion: true,
        episodeId: true,
        errorType: true,
        expectedVersion: true,
        hydrated: true,
        inlineExecuted: true,
        longTaskSupported: true,
        navigationType: true,
        online: true,
        pathCategory: true,
        persisted: true,
        previousEventCount: true,
        prefetch: true,
        promiseReasonType: true,
        reloadDeferred: true,
        reloadPrevented: true,
        recoveryAction: true,
        recoveryActive: true,
        recoveryKey: true,
        latchPresent: true,
        latchSource: true,
        manualReloadCount: true,
        responseCategory: true,
        scriptPath: true,
        source: true,
        standalone: true,
        storageAvailable: true,
        versionCategory: true,
        state: true,
        trigger: true,
        visibility: true,
        waitingContract: true,
        waitingState: true,
        waitingVersion: true,
        workerEnabled: true
      };
      var events = [];
      var snapshot = {
        activationRequestSent: false,
        activeContract: null,
        activeState: null,
        activeVersion: null,
        automaticReloadCount: 0,
        automaticRecoveryLatchPresent: false,
        automaticRecoveryLatchSource: null,
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerChangeCount: 0,
        controllerContract: null,
        controllerPresent: Boolean(navigator.serviceWorker && navigator.serviceWorker.controller),
        controllerVersion: null,
        currentProductionVersion: null,
        deploymentRecoveryActive: false,
        deploymentRecoveryEpisodeId: null,
        expectedVersion: config.expectedVersion,
        hydrated: false,
        inlineExecuted: true,
        longTaskSupported: false,
        online: navigator.onLine !== false,
        pathCategory: "general",
        manualReloadCount: 0,
        reloadDeferred: false,
        reloadPrevented: false,
        standalone: standalone,
        visibility: document.visibilityState || "unknown",
        waitingContract: null,
        waitingState: null,
        waitingVersion: null,
        workerEnabled: config.workerEnabled
      };
      var registration = null;
      var registrationPromise = null;
      var checkPromise = null;
      var lastCheckAt = 0;
      var observedRegistration = null;
      var observedWorkers = [];
      var statusWorkers = [];
      var activationRequestKey = null;
      var activationRequestedAt = 0;
      var controllerDecisionMade = false;
      var errorListenersInstalled = false;
      var longTaskObserver = null;
      var workerRecoveryNavigation = false;
      var deploymentRecoveryFromQuery = null;
      var deploymentManualRecovery = false;
      var deploymentDecisionPending = null;
      var deploymentCheckPending = null;
      var stableFallbackActive = false;
      var automaticRecoveryLatchMemory = null;
      var automaticRecoveryLatchSource = null;
      var automaticRecoveryFromQuery = false;
      var automaticRecoveryFromHistory = false;
      function sanitizeRecoveryIdentifier(value, fallback) {
        var normalized = String(value == null ? "" : value).trim().slice(0, 160);
        return normalized && /^[a-zA-Z0-9._:-]+$/.test(normalized)
          ? normalized
          : (fallback === undefined ? "unknown" : fallback);
      }
      function hashRecoveryIdentity(value) {
        var hash = 2166136261;
        for (var index = 0; index < value.length; index += 1) {
          hash ^= value.charCodeAt(index);
          hash = Math.imul(hash, 16777619);
        }
        return (hash >>> 0).toString(36);
      }
      try {
        var recoveryParameters = new URLSearchParams(window.location.search);
        if (
          window.location.pathname === "/" &&
          recoveryParameters.get(config.recoveryNavigationQueryKey) ===
            config.contractVersion
        ) {
          workerRecoveryNavigation = true;
          automaticRecoveryFromQuery = true;
          deploymentRecoveryFromQuery = "legacy_worker";
          recoveryParameters.delete(config.recoveryNavigationQueryKey);
          var recoveredSearch = recoveryParameters.toString();
          window.history.replaceState(
            window.history.state,
            "",
            window.location.pathname +
              (recoveredSearch ? "?" + recoveredSearch : "") +
              window.location.hash
          );
        }
        var deploymentQueryRecovery = sanitizeRecoveryIdentifier(
          recoveryParameters.get(config.deploymentRecoveryQueryKey),
          ""
        ) || null;
        if (deploymentQueryRecovery) {
          deploymentRecoveryFromQuery = deploymentQueryRecovery;
          automaticRecoveryFromQuery = true;
        }
        deploymentManualRecovery =
          recoveryParameters.get(config.deploymentManualQueryKey) === "1";
        var deploymentHistoryState =
          window.history &&
          window.history.state &&
          window.history.state.__ybPwaDeploymentRecovery;
        if (
          !automaticRecoveryFromQuery &&
          !deploymentManualRecovery &&
          deploymentHistoryState &&
          typeof deploymentHistoryState.at === "number" &&
          Date.now() >= deploymentHistoryState.at &&
          Date.now() - deploymentHistoryState.at <= config.deploymentRecoveryTtlMs
        ) {
          automaticRecoveryFromHistory =
            deploymentHistoryState.automaticAttempted === true ||
            Boolean(deploymentHistoryState.episodeId);
          deploymentRecoveryFromQuery =
            sanitizeRecoveryIdentifier(deploymentHistoryState.episodeId, "") ||
            (automaticRecoveryFromHistory ? "attempted" : null);
          deploymentManualRecovery = deploymentHistoryState.manual === true;
        }
        if (
          automaticRecoveryFromQuery ||
          automaticRecoveryFromHistory ||
          deploymentManualRecovery
        ) {
          recoveryParameters.delete(config.deploymentManualQueryKey);
          var cleanedRecoverySearch = recoveryParameters.toString();
          var nextRecoveryHistoryState = Object.assign({}, window.history.state || {});
          nextRecoveryHistoryState.__ybPwaDeploymentRecovery = {
            at: Date.now(),
            automaticAttempted:
              automaticRecoveryFromQuery || automaticRecoveryFromHistory,
            episodeId: deploymentRecoveryFromQuery || "manual",
            manual: deploymentManualRecovery
          };
          window.history.replaceState(
            nextRecoveryHistoryState,
            "",
            window.location.pathname +
              (cleanedRecoverySearch ? "?" + cleanedRecoverySearch : "") +
              window.location.hash
          );
        }
      } catch (_) {}
      if (
        automaticRecoveryFromQuery ||
        automaticRecoveryFromHistory ||
        deploymentManualRecovery
      ) {
        snapshot.deploymentRecoveryActive = true;
        snapshot.deploymentRecoveryEpisodeId =
          deploymentRecoveryFromQuery || "manual";
        snapshot.automaticReloadCount =
          automaticRecoveryFromQuery || automaticRecoveryFromHistory ? 1 : 0;
      }
      try { sessionStorage.removeItem("yb_chunk_recovered"); } catch (_) {}
      var initialController = navigator.serviceWorker && navigator.serviceWorker.controller;
      var initialControllerMetadata = workerMetadata(initialController);
      var recoveryReloadRequired =
        Boolean(initialController) &&
        !isExpectedWorker(initialController) &&
        !workerRecoveryNavigation;

      function safeString(value) {
        var stringValue = String(value == null ? "" : value);
        if (!/^[a-zA-Z0-9._:/ -]{0,160}$/.test(stringValue)) return null;
        return stringValue;
      }

      function safeDetails(details) {
        var result = {};
        if (!details || typeof details !== "object") return result;
        Object.keys(details).forEach(function (key) {
          if (!allowedDetailKeys[key]) return;
          var value = details[key];
          if (key === "cacheNames") {
            if (!Array.isArray(value)) return;
            result.cacheNames = value
              .filter(function (name) {
                return (
                  typeof name === "string" &&
                  name.indexOf("yb-pwa-") === 0 &&
                  /^[a-zA-Z0-9._-]{1,120}$/.test(name)
                );
              })
              .slice(0, 20);
            return;
          }
          if (typeof value === "boolean") {
            result[key] = value;
            return;
          }
          if (typeof value === "number" && isFinite(value)) {
            result[key] =
              key === "bootStartedEpochMs"
                ? Math.max(0, Math.min(Number.MAX_SAFE_INTEGER, Math.round(value)))
                : Math.max(-1, Math.min(86400000, Math.round(value)));
            return;
          }
          if (typeof value === "string") {
            var sanitized = safeString(value);
            if (sanitized !== null) result[key] = sanitized;
          }
        });
        return result;
      }

      function readPreviousBoot() {
        try {
          var previous = JSON.parse(sessionStorage.getItem(config.diagnosticsKey) || "null");
          if (!previous || previous.version !== config.diagnosticsVersion) return null;
          var previousEvents = Array.isArray(previous.events)
            ? previous.events.slice(-20).map(function (entry) {
                return {
                  data: safeDetails(entry && entry.data),
                  t:
                    entry && typeof entry.t === "number" && isFinite(entry.t)
                      ? Math.max(0, Math.min(86400000, Math.round(entry.t)))
                      : 0,
                  type:
                    entry && allowedEvents[entry.type]
                      ? entry.type
                      : "worker_state"
                };
              })
            : [];
          return {
            events: previousEvents,
            snapshot: safeDetails(previous.snapshot),
            version: config.diagnosticsVersion
          };
        } catch (_) {
          return null;
        }
      }

      var prior = readPreviousBoot();

      function persist() {
        try {
          sessionStorage.setItem(
            config.diagnosticsKey,
            JSON.stringify({
              events: events.slice(-config.maxEvents),
              previousBoot: prior,
              snapshot: safeDetails(snapshot),
              version: config.diagnosticsVersion
            })
          );
        } catch (_) {}
      }

      function emitState() {
        try {
          window.dispatchEvent(new CustomEvent(config.stateEvent));
        } catch (_) {}
      }

      function record(type, details) {
        var safeType = allowedEvents[type] ? type : "worker_state";
        events.push({
          data: safeDetails(details),
          t: Math.max(0, Math.round(now() - bootStartedAt)),
          type: safeType
        });
        if (events.length > config.maxEvents) {
          events.splice(0, events.length - config.maxEvents);
        }
        persist();
        emitState();
      }

      function queryHasAny(keys) {
        if (!window.location.search) return false;
        try {
          var params = new URLSearchParams(window.location.search);
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function fragmentHasAny(keys) {
        if (!window.location.hash) return false;
        try {
          var params = new URLSearchParams(
            String(window.location.hash).replace(/^#/, "")
          );
          return keys.some(function (key) { return params.has(key); });
        } catch (_) {
          return true;
        }
      }

      function pathCategory() {
        var path = String(window.location.pathname || "/").replace(/\/+$/, "") || "/";
        var rules = config.routeRules;
        if (
          rules.authCallbackPaths.some(function (candidate) {
            return path === candidate || path.indexOf(candidate + "/") === 0;
          }) ||
          (
            path === "/" &&
            (
              queryHasAny(rules.authCallbackQueryKeys) ||
              fragmentHasAny(rules.authCallbackQueryKeys)
            )
          )
        ) return "auth_callback";
        if (path === "/business/pos" || path.indexOf("/business/pos/") === 0) return "pos";
        if (path === "/checkout" || path.indexOf("/checkout/") === 0 || path === "/cart") {
          return "checkout";
        }
        if (
          path === "/business/dashboard" &&
          queryHasAny(["billing", "checkout", "stripe"])
        ) return "payment_callback";
        if (
          path.indexOf("/orders/") === 0 ||
          path === "/business/orders" ||
          path === "/account/orders" ||
          path === "/account/purchase-history"
        ) return "receipt";
        if (
          rules.businessFormPatternSources.some(function (source) {
            return new RegExp(source).test(path);
          })
        ) return "business_form";
        if (
          path === "/" &&
          !window.location.search &&
          !window.location.hash
        ) return "startup";
        if (path === "/") {
          return window.location.search ? "root_query" : "root_fragment";
        }
        return "general";
      }

      function routeSafety() {
        var category = pathCategory();
        var unsafe = {
          auth_callback: true,
          business_form: true,
          checkout: true,
          payment_callback: true,
          pos: true,
          receipt: true
        };
        return {
          autoReload: category === "startup",
          category: category,
          safe: !unsafe[category]
        };
      }

      function refreshRouteState(trigger) {
        var safety = routeSafety();
        snapshot.pathCategory = safety.category;
        record("worker_state", {
          autoReload: safety.autoReload,
          pathCategory: safety.category,
          trigger: trigger || "route_change"
        });
        return safety;
      }

      function workerMetadata(worker) {
        if (!worker || !worker.scriptURL) {
          return {
            contract: null,
            present: Boolean(worker),
            scriptPath: null,
            state: worker && worker.state ? String(worker.state) : null,
            version: null
          };
        }
        try {
          var url = new URL(worker.scriptURL, window.location.origin);
          return {
            contract: url.searchParams.get("c"),
            present: true,
            scriptPath: url.pathname,
            state: worker.state ? String(worker.state) : null,
            version: url.searchParams.get("v")
          };
        } catch (_) {
          return {
            contract: null,
            present: true,
            scriptPath: null,
            state: worker.state ? String(worker.state) : null,
            version: null
          };
        }
      }

      function isExpectedWorker(worker) {
        var metadata = workerMetadata(worker);
        return (
          metadata.present &&
          metadata.scriptPath === "/sw.js" &&
          metadata.contract === config.contractVersion &&
          metadata.version === config.expectedVersion
        );
      }

      function recordWorkerStatus(worker, source) {
        if (!worker || typeof MessageChannel !== "function") return;
        if (statusWorkers.indexOf(worker) !== -1) return;
        statusWorkers.push(worker);
        if (statusWorkers.length > 20) statusWorkers.shift();
        var channel = new MessageChannel();
        var settled = false;
        var timer = window.setTimeout(function () {
          if (settled) return;
          settled = true;
          try { channel.port1.close(); } catch (_) {}
        }, 750);
        channel.port1.onmessage = function (event) {
          if (settled) return;
          settled = true;
          window.clearTimeout(timer);
          var data = event && event.data;
          record("worker_status", {
            activeContract: data && data.contract,
            activeVersion: data && data.version,
            source: source,
            state: data && data.activationMode
          });
          try { channel.port1.close(); } catch (_) {}
        };
        try {
          worker.postMessage({ type: "GET_STATUS" }, [channel.port2]);
        } catch (_) {
          window.clearTimeout(timer);
          try { channel.port1.close(); } catch (_) {}
        }
      }

      function collectCacheMetadata() {
        if (!("caches" in window) || !window.caches || typeof window.caches.keys !== "function") {
          return;
        }
        Promise.resolve(window.caches.keys()).then(function (names) {
          var cacheNames = Array.isArray(names)
            ? names.filter(function (name) {
                return typeof name === "string" && name.indexOf("yb-pwa-") === 0;
              })
            : [];
          record("cache_metadata", { cacheNames: cacheNames });
        }).catch(function () {});
      }

      function updateWorkerSnapshot(nextRegistration, trigger) {
        var active = workerMetadata(nextRegistration && nextRegistration.active);
        var waiting = workerMetadata(nextRegistration && nextRegistration.waiting);
        snapshot.activeContract = active.contract;
        snapshot.activeState = active.state;
        snapshot.activeVersion = active.version;
        snapshot.waitingContract = waiting.contract;
        snapshot.waitingState = waiting.state;
        snapshot.waitingVersion = waiting.version;
        snapshot.pathCategory = routeSafety().category;
        record("worker_state", {
          activeContract: active.contract || "",
          activeState: active.state || "",
          activeVersion: active.version || "",
          pathCategory: snapshot.pathCategory,
          trigger: trigger,
          waitingContract: waiting.contract || "",
          waitingState: waiting.state || "",
          waitingVersion: waiting.version || ""
        });
        recordWorkerStatus(nextRegistration && nextRegistration.active, "active");
        recordWorkerStatus(nextRegistration && nextRegistration.waiting, "waiting");
      }

      function requestActivation(candidate, options) {
        options = options || {};
        if (!candidate || !isExpectedWorker(candidate)) {
          record("activation_deferred", {
            pathCategory: routeSafety().category,
            source: "unverified_worker",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var safety = routeSafety();
        if (navigator.onLine === false) {
          record("activation_deferred", {
            online: false,
            pathCategory: safety.category,
            source: "offline",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        if (!options.force && !safety.safe) {
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            pathCategory: safety.category,
            source: "unsafe_route",
            trigger: options.trigger || "unknown"
          });
          return false;
        }
        var metadata = workerMetadata(candidate);
        var requestKey = String(metadata.contract || "") + ":" + String(metadata.version || "");
        if (
          activationRequestKey === requestKey &&
          Date.now() - activationRequestedAt < 10000
        ) return true;
        try {
          candidate.postMessage({ type: "SKIP_WAITING", contract: config.contractVersion });
          activationRequestKey = requestKey;
          activationRequestedAt = Date.now();
          snapshot.activationRequestSent = true;
          record("activation_request_sent", {
            activationRequestSent: true,
            pathCategory: safety.category,
            trigger: options.trigger || "unknown",
            waitingContract: metadata.contract || "",
            waitingVersion: metadata.version || ""
          });
          return true;
        } catch (_) {
          return false;
        }
      }

      function observeWorker(worker, nextRegistration) {
        if (!worker || observedWorkers.indexOf(worker) !== -1) return;
        observedWorkers.push(worker);
        if (observedWorkers.length > 20) observedWorkers.shift();
        var handleStateChange = function () {
          updateWorkerSnapshot(nextRegistration, "statechange");
          if (worker.state === "installed") {
            if (isExpectedWorker(worker)) {
              requestActivation(worker, { trigger: "installed" });
            } else if (nextRegistration && typeof nextRegistration.update === "function") {
              Promise.resolve(nextRegistration.update()).catch(function () {});
            }
          }
        };
        worker.addEventListener("statechange", handleStateChange);
      }

      function attachRegistration(nextRegistration, trigger) {
        registration = nextRegistration;
        runtime.registration = nextRegistration;
        updateWorkerSnapshot(nextRegistration, trigger);
        collectCacheMetadata();

        if (nextRegistration.waiting) {
          if (isExpectedWorker(nextRegistration.waiting)) {
            requestActivation(nextRegistration.waiting, { trigger: trigger });
          } else if (navigator.onLine !== false && typeof nextRegistration.update === "function") {
            Promise.resolve(nextRegistration.update()).catch(function () {});
          }
        }
        if (nextRegistration.installing) observeWorker(nextRegistration.installing, nextRegistration);

        if (observedRegistration !== nextRegistration) {
          observedRegistration = nextRegistration;
          nextRegistration.addEventListener("updatefound", function () {
            if (nextRegistration.installing) {
              observeWorker(nextRegistration.installing, nextRegistration);
              updateWorkerSnapshot(nextRegistration, "updatefound");
            }
          });
        }
      }

      function checkWorker(trigger, force) {
        if (!config.workerEnabled || !navigator.serviceWorker) {
          record("worker_unavailable", {
            trigger: trigger,
            workerEnabled: config.workerEnabled
          });
          return Promise.resolve(null);
        }
        var checkedAt = Date.now();
        if (!force && checkedAt - lastCheckAt < 2000) return checkPromise || registrationPromise;
        if (checkPromise) return checkPromise;
        lastCheckAt = checkedAt;
        record("worker_check", {
          online: navigator.onLine !== false,
          pathCategory: routeSafety().category,
          trigger: trigger
        });

        if (!registrationPromise) {
          registrationPromise = Promise.resolve(
            navigator.serviceWorker.register(config.workerUrl, {
              scope: "/",
              updateViaCache: "none"
            })
          );
          runtime.registrationPromise = registrationPromise;
        }

        checkPromise = registrationPromise
          .then(function (nextRegistration) {
            attachRegistration(nextRegistration, trigger);
            record("registration_ready", {
              activeVersion: workerMetadata(nextRegistration.active).version || "",
              trigger: trigger,
              waitingVersion: workerMetadata(nextRegistration.waiting).version || ""
            });
            if (
              navigator.onLine !== false &&
              typeof nextRegistration.update === "function" &&
              (force || nextRegistration.waiting && !isExpectedWorker(nextRegistration.waiting))
            ) {
              return Promise.resolve(nextRegistration.update())
                .catch(function () {})
                .then(function () {
                  attachRegistration(nextRegistration, trigger + "_updated");
                  return nextRegistration;
                });
            }
            return nextRegistration;
          })
          .catch(function () {
            registrationPromise = null;
            runtime.registrationPromise = null;
            record("registration_error", {
              online: navigator.onLine !== false,
              trigger: trigger
            });
            return null;
          })
          .then(function (result) {
            checkPromise = null;
            return result;
          });
        return checkPromise;
      }

      function validAutomaticRecoveryLatch(value) {
        return Boolean(
          value &&
          value.version === 1 &&
          typeof value.attemptedAt === "number" &&
          Date.now() >= value.attemptedAt &&
          Date.now() - value.attemptedAt <= config.deploymentRecoveryTtlMs
        );
      }

      function readAutomaticRecoveryLatchFrom(storage, source) {
        try {
          if (!storage) return null;
          var raw = storage.getItem(config.automaticRecoveryLatchStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (!validAutomaticRecoveryLatch(parsed)) {
            storage.removeItem(config.automaticRecoveryLatchStorageKey);
            return null;
          }
          return { record: parsed, source: source };
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchTo(storage, value) {
        try {
          if (!storage) return false;
          storage.setItem(
            config.automaticRecoveryLatchStorageKey,
            JSON.stringify(value)
          );
          return storage.getItem(config.automaticRecoveryLatchStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function safeWindowStorage(name) {
        try {
          return window[name] || null;
        } catch (_) {
          return null;
        }
      }

      function writeAutomaticRecoveryLatchCopies(value) {
        return {
          local: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("localStorage"),
            value
          ),
          session: writeAutomaticRecoveryLatchTo(
            safeWindowStorage("sessionStorage"),
            value
          )
        };
      }

      function setAutomaticRecoverySnapshot(source) {
        snapshot.automaticRecoveryLatchPresent = true;
        snapshot.automaticRecoveryLatchSource = source;
        snapshot.automaticReloadCount = 1;
      }

      function readAutomaticRecoveryLatch() {
        if (validAutomaticRecoveryLatch(automaticRecoveryLatchMemory)) {
          setAutomaticRecoverySnapshot(automaticRecoveryLatchSource || "memory");
          return {
            record: automaticRecoveryLatchMemory,
            source: automaticRecoveryLatchSource || "memory"
          };
        }
        var local = readAutomaticRecoveryLatchFrom(
          safeWindowStorage("localStorage"),
          "storage"
        );
        var session = local || readAutomaticRecoveryLatchFrom(
          safeWindowStorage("sessionStorage"),
          "storage"
        );
        var stored = local || session;
        if (!stored) return null;
        automaticRecoveryLatchMemory = stored.record;
        automaticRecoveryLatchSource = stored.source;
        setAutomaticRecoverySnapshot(stored.source);
        return stored;
      }

      function transferAutomaticRecoveryHandoff() {
        if (!automaticRecoveryFromQuery && !automaticRecoveryFromHistory) {
          return readAutomaticRecoveryLatch();
        }
        var source = automaticRecoveryFromQuery ? "query" : "history";
        var existing =
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("localStorage"),
            "storage"
          ) ||
          readAutomaticRecoveryLatchFrom(
            safeWindowStorage("sessionStorage"),
            "storage"
          );
        var value = existing
          ? existing.record
          : {
              version: 1,
              attemptedAt: Date.now(),
              owner: sanitizeRecoveryIdentifier(
                deploymentRecoveryFromQuery,
                "handoff"
              )
            };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = source;
        setAutomaticRecoverySnapshot(source);
        var writes = writeAutomaticRecoveryLatchCopies(value);

        // A local-storage transfer survives a new WebKit session namespace.
        // Until that succeeds, retain the fixed query handoff in the URL.
        if (automaticRecoveryFromQuery && writes.local) {
          try {
            var parameters = new URLSearchParams(window.location.search);
            parameters.delete(config.deploymentRecoveryQueryKey);
            var cleaned = parameters.toString();
            window.history.replaceState(
              window.history.state,
              "",
              window.location.pathname +
                (cleaned ? "?" + cleaned : "") +
                window.location.hash
            );
          } catch (_) {}
        }
        record("deployment_recovery", {
          automaticReloadCount: 1,
          automaticOwner: value.owner,
          latchPresent: true,
          latchSource: source,
          recoveryAction: writes.local || writes.session
            ? "query_handoff_transferred"
            : "storage_unavailable",
          storageAvailable: writes.local || writes.session
        });
        return { record: value, source: source };
      }

      function claimAutomaticRecoveryNavigation(owner) {
        var existing = readAutomaticRecoveryLatch();
        if (existing) {
          return {
            allowed: false,
            record: existing.record,
            source: existing.source
          };
        }
        var value = {
          version: 1,
          attemptedAt: Date.now(),
          owner: sanitizeRecoveryIdentifier(owner, "unknown")
        };
        automaticRecoveryLatchMemory = value;
        automaticRecoveryLatchSource = "memory";
        setAutomaticRecoverySnapshot("memory");
        var writes = writeAutomaticRecoveryLatchCopies(value);
        if (writes.local || writes.session) {
          automaticRecoveryLatchSource = "storage";
          snapshot.automaticRecoveryLatchSource = "storage";
        }
        return {
          allowed: true,
          record: value,
          source: writes.local || writes.session ? "storage" : "memory",
          storageAvailable: writes.local || writes.session
        };
      }

      function automaticRecoveryTarget() {
        var target = new URL("/", location.origin);
        target.searchParams.set(config.deploymentRecoveryQueryKey, "attempted");
        return target;
      }

      function requestAutomaticRecoveryNavigation(owner, details) {
        if (!config.deploymentRecoveryEnabled) return false;
        record("deployment_recovery", {
          automaticOwner: owner,
          latchPresent: Boolean(readAutomaticRecoveryLatch()),
          recoveryAction: "automatic_owner_requested",
          routeCategory: routeSafety().category
        });
        var claim = claimAutomaticRecoveryNavigation(owner);
        if (!claim.allowed) {
          snapshot.reloadPrevented = true;
          record("reload_loop_prevented", {
            automaticOwnerSuppressed: owner,
            latchPresent: true,
            latchSource: claim.source,
            pathCategory: routeSafety().category,
            reloadPrevented: true
          });
          showStableFallback("automatic_owner_suppressed", details || {});
          return false;
        }
        if (claim.storageAvailable === false) {
          record("deployment_recovery", {
            automaticOwner: owner,
            latchPresent: true,
            latchSource: claim.source,
            recoveryAction: "storage_unavailable"
          });
        }
        snapshot.deploymentRecoveryActive = true;
        record("reload_requested", {
          automaticOwner: owner,
          autoReload: true,
          latchPresent: true,
          latchSource: claim.source,
          pathCategory: routeSafety().category,
          storageAvailable: claim.storageAvailable !== false
        });
        var target = automaticRecoveryTarget();
        window.setTimeout(function () {
          window.location.replace(target.href);
        }, 0);
        return true;
      }

      transferAutomaticRecoveryHandoff();

      function decideRecoveryReload(controller, source) {
        if (controllerDecisionMade) return;
        if (!isExpectedWorker(controller)) return;
        if (!recoveryReloadRequired) return;

        var safety = routeSafety();
        if (navigator.onLine === false) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: safety.autoReload,
            online: false,
            pathCategory: safety.category,
            source: source === "online" ? "offline_reconnect" : "offline"
          });
          return;
        }
        controllerDecisionMade = true;
        snapshot.reloadDeferred = false;
        if (!safety.autoReload) {
          snapshot.reloadDeferred = true;
          record("reload_deferred", {
            autoReload: false,
            pathCategory: safety.category,
            source: safety.safe ? "manual_route" : "unsafe_route"
          });
          return;
        }
        requestAutomaticRecoveryNavigation(
          source === "pageshow_persisted"
            ? "controller_pageshow"
            : "controller_change",
          { responseCategory: "worker_recovery" }
        );
      }

      function handleControllerChange() {
        snapshot.controllerChangeCount += 1;
        var controller = navigator.serviceWorker && navigator.serviceWorker.controller;
        var metadata = workerMetadata(controller);
        snapshot.controllerPresent = Boolean(controller);
        snapshot.controllerContract = metadata.contract;
        snapshot.controllerVersion = metadata.version;
        record("controller_change", {
          controllerChangeCount: snapshot.controllerChangeCount,
          controllerContract: metadata.contract || "",
          controllerPresent: Boolean(controller),
          controllerVersion: metadata.version || ""
        });
        if (registration) updateWorkerSnapshot(registration, "controllerchange");

        if (!isExpectedWorker(controller)) {
          void checkWorker("controller_change_unverified", true);
          return;
        }
        decideRecoveryReload(controller, "controller_change");
      }

      function handleWorkerMessage(event) {
        var data = event && event.data;
        if (
          data &&
          data.type === "YB_AUTOMATIC_RECOVERY_REQUEST" &&
          data.contract === config.contractVersion
        ) {
          var safety = routeSafety();
          if (!safety.autoReload || navigator.onLine === false) {
            record("reload_deferred", {
              automaticOwner: "legacy_worker",
              autoReload: safety.autoReload,
              online: navigator.onLine !== false,
              pathCategory: safety.category
            });
            return;
          }
          requestAutomaticRecoveryNavigation("legacy_worker", {
            responseCategory: "worker_recovery"
          });
          return;
        }
        if (
          !data ||
          data.type !== "YB_WORKER_ACTIVATION" ||
          data.contract !== config.contractVersion
        ) return;
        var state = String(data.state || "");
        if (state.indexOf("deferred_") === 0) {
          activationRequestKey = null;
          activationRequestedAt = 0;
          snapshot.activationRequestSent = false;
          snapshot.reloadDeferred = true;
          record("activation_deferred", {
            activationRequestSent: false,
            pathCategory: routeSafety().category,
            source: "other_client",
            state: state
          });
          return;
        }
        record("worker_state", {
          activationRequestSent: snapshot.activationRequestSent,
          source: "activation_response",
          state: state
        });
      }

      function readDeploymentRecoveryRecord() {
        try {
          var raw = sessionStorage.getItem(config.deploymentRecoveryStorageKey);
          if (!raw) return null;
          var parsed = JSON.parse(raw);
          if (
            !parsed ||
            parsed.version !== 1 ||
            typeof parsed.firstAttemptAt !== "number" ||
            Date.now() < parsed.firstAttemptAt ||
            Date.now() - parsed.firstAttemptAt > config.deploymentRecoveryTtlMs
          ) {
            sessionStorage.removeItem(config.deploymentRecoveryStorageKey);
            return null;
          }
          return parsed;
        } catch (_) {
          return null;
        }
      }

      function writeDeploymentRecoveryRecord(next) {
        try {
          sessionStorage.setItem(
            config.deploymentRecoveryStorageKey,
            JSON.stringify(next)
          );
          return sessionStorage.getItem(config.deploymentRecoveryStorageKey) !== null;
        } catch (_) {
          return false;
        }
      }

      function deploymentStorageAvailable() {
        try {
          var key = config.deploymentRecoveryStorageKey + ":probe";
          sessionStorage.setItem(key, "1");
          sessionStorage.removeItem(key);
          return true;
        } catch (_) {
          return false;
        }
      }

      function recoveryNavigationType() {
        try {
          var entries = performance.getEntriesByType("navigation");
          return entries.length ? String(entries[0].type || "unknown") : "unknown";
        } catch (_) {
          return "unknown";
        }
      }

      function privacySafeChunkDetails(details) {
        var chunkPath = null;
        try {
          var parsed = new URL(String(details && details.chunkUrl || ""), location.origin);
          if (parsed.origin === location.origin && parsed.pathname.indexOf("/_next/static/") === 0) {
            chunkPath = parsed.pathname.slice(0, 240);
          }
        } catch (_) {}
        return {
          chunkDpl: sanitizeRecoveryIdentifier(details && details.chunkDpl, "unknown"),
          chunkPath: chunkPath,
          prefetch: Boolean(details && details.prefetch),
          responseCategory: sanitizeRecoveryIdentifier(
            details && details.responseCategory,
            "unknown"
          )
        };
      }

      function createStableFallback() {
        var fallback = document.getElementById("yb-pwa-recovery-fallback");
        if (fallback) {
          fallback.setAttribute("data-state", "visible");
          return true;
        }
        if (!document.body) return false;

        fallback = document.createElement("section");
        fallback.id = "yb-pwa-recovery-fallback";
        fallback.className = "yb-pwa-recovery-fallback";
        fallback.setAttribute("data-state", "visible");
        fallback.setAttribute("role", "alertdialog");
        fallback.setAttribute("aria-modal", "true");
        fallback.setAttribute("aria-labelledby", "yb-pwa-recovery-title");
        fallback.setAttribute("aria-describedby", "yb-pwa-recovery-message");

        var inner = document.createElement("div");
        inner.className = "yb-pwa-recovery-fallback__inner";

        var logo = document.createElement("img");
        logo.src = "/brand/logo-mark-white.svg";
        logo.alt = "YourBarrio";
        logo.className = "yb-pwa-recovery-fallback__logo";

        var title = document.createElement("h1");
        title.id = "yb-pwa-recovery-title";
        title.textContent = "YourBarrio needs a quick refresh";

        var message = document.createElement("p");
        message.id = "yb-pwa-recovery-message";
        message.textContent =
          "YourBarrio needs to reload to continue. You’ll stay signed in.";

        var reload = document.createElement("button");
        reload.type = "button";
        reload.textContent = "Refresh YourBarrio";
        reload.className = "yb-pwa-recovery-fallback__reload";
        reload.addEventListener("click", function () {
          snapshot.manualReloadCount += 1;
          record("deployment_recovery", {
            manualReloadCount: snapshot.manualReloadCount,
            recoveryAction: "manual_reload",
            source: "stable_fallback"
          });
          var target = new URL("/", location.origin);
          target.searchParams.set(config.deploymentManualQueryKey, "1");
          location.replace(target.href);
        });

        var rootLink = document.createElement("a");
        rootLink.href = "/";
        rootLink.textContent = "Go to YourBarrio home";
        rootLink.className = "yb-pwa-recovery-fallback__home";

        inner.appendChild(logo);
        inner.appendChild(title);
        inner.appendChild(message);
        inner.appendChild(reload);
        inner.appendChild(rootLink);
        fallback.appendChild(inner);
        document.body.appendChild(fallback);
        return true;
      }

      function showStableFallback(reason, details) {
        if (stableFallbackActive) {
          createStableFallback();
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            recoveryAction: "fallback_preserved",
            source: reason || "repeated_error"
          });
          return;
        }
        stableFallbackActive = true;
        snapshot.deploymentRecoveryActive = true;
        var activate = function () {
          if (!createStableFallback()) return;
          record("stable_fallback", {
            automaticReloadCount: snapshot.automaticReloadCount,
            chunkDpl: details && details.chunkDpl,
            chunkPath: details && details.chunkPath,
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: reason || "failed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable(),
            latchPresent: Boolean(readAutomaticRecoveryLatch()),
            latchSource: snapshot.automaticRecoveryLatchSource || "memory"
          });
        };
        if (document.body) activate();
        else document.addEventListener("DOMContentLoaded", activate, { once: true });
      }

      function fetchCurrentProductionVersion() {
        if (deploymentCheckPending) return deploymentCheckPending;
        if (typeof fetch !== "function") return Promise.resolve(null);
        var controller =
          typeof AbortController === "function" ? new AbortController() : null;
        var timeout = window.setTimeout(function () {
          try { controller && controller.abort(); } catch (_) {}
        }, 4000);
        deploymentCheckPending = fetch("/api/app-version", {
          cache: "no-store",
          credentials: "same-origin",
          signal: controller ? controller.signal : undefined
        })
          .then(function (response) {
            if (!response.ok) return null;
            return response.json();
          })
          .then(function (payload) {
            var version = sanitizeRecoveryIdentifier(payload && payload.version, "");
            snapshot.currentProductionVersion = version || null;
            return version || null;
          })
          .catch(function () { return null; })
          .finally(function () {
            window.clearTimeout(timeout);
            deploymentCheckPending = null;
          });
        return deploymentCheckPending;
      }

      function coordinateDeploymentRecovery(input) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve({ action: "ignore", automaticNavigation: false });
        }
        var details = privacySafeChunkDetails(input || {});
        if (details.prefetch) {
          record("deployment_recovery", {
            chunkDpl: details.chunkDpl,
            chunkPath: details.chunkPath,
            documentVersion: config.expectedVersion,
            recoveryAction: "prefetch_ignored",
            routeCategory: routeSafety().category
          });
          return Promise.resolve({ action: "prefetch_ignored", automaticNavigation: false });
        }
        if (deploymentDecisionPending) return deploymentDecisionPending;

        var suppliedCurrentVersion =
          input && sanitizeRecoveryIdentifier(input.currentVersion, "");
        var currentVersionRequest = suppliedCurrentVersion
          ? Promise.resolve(suppliedCurrentVersion)
          : fetchCurrentProductionVersion();
        deploymentDecisionPending = currentVersionRequest
          .then(function (currentVersion) {
            var safety = routeSafety();
            var documentVersion = sanitizeRecoveryIdentifier(config.expectedVersion);
            var safeCurrentVersion = sanitizeRecoveryIdentifier(
              currentVersion || input && input.currentVersion,
              "unknown"
            );
            var identity = [
              documentVersion,
              safeCurrentVersion,
              details.chunkDpl,
              safety.category
            ].join("|");
            var episodeId = hashRecoveryIdentity(identity);
            var recoveryKey = hashRecoveryIdentity(
              identity + "|" + (details.chunkPath || "unknown")
            );
            var prior = readDeploymentRecoveryRecord();
            var storageAvailable = deploymentStorageAvailable();
            var latch = readAutomaticRecoveryLatch();
            var alreadyRecovered = Boolean(latch);
            var versionCategory =
              safeCurrentVersion === "unknown" ? "unknown" : "known";
            if (versionCategory === "unknown") {
              record("deployment_check", {
                currentVersion: "",
                documentVersion: documentVersion,
                recoveryAction: "version_unavailable",
                source: "deployment_recovery",
                versionCategory: "unknown"
              });
            }

            snapshot.deploymentRecoveryActive = true;
            snapshot.deploymentRecoveryEpisodeId =
              deploymentRecoveryFromQuery || episodeId;
            if (!safety.safe || navigator.onLine === false) {
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "deferred",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                versionCategory: versionCategory
              });
              if (input && input.failure === true) {
                showStableFallback("deferred", details);
              }
              return { action: "deferred", automaticNavigation: false };
            }

            if (alreadyRecovered) {
              if (prior) {
                prior.lastFailureAt = Date.now();
                prior.failureCount = Number(prior.failureCount || 1) + 1;
                writeDeploymentRecoveryRecord(prior);
              }
              record("deployment_recovery", {
                automaticReloadCount: snapshot.automaticReloadCount,
                chunkDpl: details.chunkDpl,
                chunkPath: details.chunkPath,
                currentVersion: safeCurrentVersion,
                documentVersion: documentVersion,
                episodeId: episodeId,
                navigationType: recoveryNavigationType(),
                recoveryAction: "stable_fallback",
                recoveryKey: recoveryKey,
                responseCategory: details.responseCategory,
                routeCategory: safety.category,
                storageAvailable: storageAvailable,
                latchPresent: true,
                latchSource: latch && latch.source,
                versionCategory: versionCategory
              });
              showStableFallback("automatic_recovery_exhausted", details);
              return { action: "failed", automaticNavigation: false };
            }

            var automaticNavigation = requestAutomaticRecoveryNavigation(
              "deployment_coordinator",
              details
            );
            if (!automaticNavigation) {
              return { action: "failed", automaticNavigation: false };
            }
            writeDeploymentRecoveryRecord({
              version: 1,
              episodeId: episodeId,
              documentVersion: documentVersion,
              currentVersion: safeCurrentVersion,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              recoveryKey: recoveryKey,
              routeCategory: safety.category,
              firstAttemptAt: Date.now(),
              lastFailureAt: Date.now(),
              failureCount: 1,
              automaticReloadCount: 1
            });
            record("deployment_recovery", {
              automaticReloadCount: 1,
              chunkDpl: details.chunkDpl,
              chunkPath: details.chunkPath,
              currentVersion: safeCurrentVersion,
              documentVersion: documentVersion,
              episodeId: episodeId,
              navigationType: recoveryNavigationType(),
              recoveryAction: "navigate_root",
              recoveryKey: recoveryKey,
              responseCategory: details.responseCategory,
              routeCategory: safety.category,
              storageAvailable: storageAvailable,
              latchPresent: true,
              latchSource: snapshot.automaticRecoveryLatchSource || "memory",
              versionCategory: versionCategory
            });
            return { action: "refreshing", automaticNavigation: true };
          })
          .finally(function () {
            deploymentDecisionPending = null;
          });
        return deploymentDecisionPending;
      }

      function checkDeploymentSkew(source, persisted) {
        if (!config.deploymentRecoveryEnabled) {
          return Promise.resolve(null);
        }
        if (!standalone || document.visibilityState === "hidden") {
          return Promise.resolve(null);
        }
        return fetchCurrentProductionVersion().then(function (currentVersion) {
          var mismatch =
            Boolean(currentVersion) &&
            String(currentVersion) !== String(config.expectedVersion);
          record("deployment_check", {
            currentVersion: currentVersion || "",
            documentVersion: config.expectedVersion,
            persisted: Boolean(persisted),
            recoveryAction: mismatch ? "mismatch" : "match",
            source: source,
            storageAvailable: deploymentStorageAvailable()
          });
          return { mismatch: mismatch };
        });
      }

      function removePreHydrationErrorListeners() {
        if (!errorListenersInstalled) return;
        errorListenersInstalled = false;
        window.removeEventListener("error", handleJavaScriptError, true);
        window.removeEventListener("unhandledrejection", handlePromiseRejection);
        if (longTaskObserver) {
          try { longTaskObserver.disconnect(); } catch (_) {}
          longTaskObserver = null;
        }
      }

      function safeErrorType(value) {
        var name = value && typeof value.name === "string" ? value.name : "";
        var known = {
          AbortError: true,
          Error: true,
          EvalError: true,
          NetworkError: true,
          RangeError: true,
          ReferenceError: true,
          SecurityError: true,
          SyntaxError: true,
          TypeError: true,
          URIError: true
        };
        if (known[name]) return name;
        return value == null ? "unknown" : typeof value;
      }

      function preHydrationChunkFailure(event, reason) {
        var target = event && event.target;
        var candidateUrl =
          target && typeof target.src === "string"
            ? target.src
            : target && typeof target.href === "string"
              ? target.href
              : "";
        var message = String(
          reason && (reason.message || reason.name) ||
          event && event.message ||
          ""
        );
        var isNextAsset =
          candidateUrl.indexOf("/_next/static/") !== -1 ||
          message.indexOf("/_next/static/") !== -1;
        var explicitChunkFailure =
          /ChunkLoadError|Loading (?:CSS )?chunk|dynamically imported module|module script failed/i.test(
            message
          );
        if (!isNextAsset && !explicitChunkFailure) return null;
        var prefetch =
          Boolean(target && /^(?:prefetch|modulepreload)$/i.test(target.rel || "")) ||
          Boolean(reason && (reason.prefetch === true || reason.isPrefetch === true));
        var chunkDpl = "unknown";
        try {
          chunkDpl = new URL(candidateUrl, location.origin).searchParams.get("dpl") || "unknown";
        } catch (_) {}
        return {
          chunkDpl: chunkDpl,
          chunkUrl: candidateUrl,
          failure: true,
          prefetch: prefetch,
          responseCategory: "network"
        };
      }

      function handleJavaScriptError(event) {
        record("javascript_error", {
          errorType: safeErrorType(event && event.error),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, event && event.error);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function handlePromiseRejection(event) {
        var reason = event && event.reason;
        record("promise_rejection", {
          promiseReasonType: safeErrorType(reason),
          source: "pre_hydration"
        });
        var failure = preHydrationChunkFailure(event, reason);
        if (config.deploymentRecoveryEnabled && failure) {
          void coordinateDeploymentRecovery(failure);
        }
      }

      function installPreHydrationDiagnostics() {
        errorListenersInstalled = true;
        window.addEventListener("error", handleJavaScriptError, true);
        window.addEventListener("unhandledrejection", handlePromiseRejection);
        if (typeof PerformanceObserver !== "function") {
          record("long_task_observer", { longTaskSupported: false });
          return;
        }
        try {
          longTaskObserver = new PerformanceObserver(function (list) {
            list.getEntries().slice(0, 10).forEach(function (entry) {
              record("long_task", {
                durationMs: entry.duration,
                source: "pre_hydration"
              });
            });
          });
          longTaskObserver.observe({ entryTypes: ["longtask"] });
          snapshot.longTaskSupported = true;
          record("long_task_observer", { longTaskSupported: true });
        } catch (_) {
          longTaskObserver = null;
          record("long_task_observer", { longTaskSupported: false });
        }
      }

      var runtime = {
        checkWorker: checkWorker,
        checkDeploymentSkew: checkDeploymentSkew,
        coordinateDeploymentRecovery: coordinateDeploymentRecovery,
        contractVersion: config.contractVersion,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        expectedWorkerVersion: config.expectedVersion,
        getDiagnostics: function () {
          return {
            events: events.slice(),
            previousBoot: prior
              ? {
                  events: prior.events.slice(),
                  snapshot: Object.assign({}, prior.snapshot),
                  version: prior.version
                }
              : null,
            snapshot: Object.assign({}, snapshot),
            version: config.diagnosticsVersion
          };
        },
        markHydrated: function () {
          if (snapshot.hydrated) return;
          snapshot.hydrated = true;
          record("react_hydrated", {
            hydrated: true,
            pathCategory: routeSafety().category
          });
          removePreHydrationErrorListeners();
        },
        isDeploymentRecoveryActive: function () {
          return Boolean(
            snapshot.deploymentRecoveryActive ||
            deploymentDecisionPending
          );
        },
        recordSessionExpirySuppressed: function () {
          snapshot.deploymentRecoveryActive = true;
          record("deployment_recovery", {
            currentVersion: snapshot.currentProductionVersion || "",
            documentVersion: config.expectedVersion,
            episodeId: snapshot.deploymentRecoveryEpisodeId || "",
            recoveryAction: "session_expired_suppressed",
            routeCategory: routeSafety().category,
            storageAvailable: deploymentStorageAvailable()
          });
        },
        record: record,
        refreshRouteState: refreshRouteState,
        registration: null,
        registrationPromise: null,
        requestActivation: requestActivation,
        snapshot: snapshot,
        showStableFallback: showStableFallback,
        workerUrl: config.workerUrl
      };
      window.__ybPwaStartup = runtime;

      snapshot.pathCategory = routeSafety().category;
      var currentControllerMetadata = initialControllerMetadata;
      snapshot.controllerContract = currentControllerMetadata.contract;
      snapshot.controllerVersion = currentControllerMetadata.version;
      installPreHydrationDiagnostics();
      record("inline_script_executed", {
        bootStartedEpochMs: bootStartedEpochMs,
        contractVersion: config.contractVersion,
        controllerContract: currentControllerMetadata.contract || "",
        controllerPresent: Boolean(initialController),
        controllerVersion: currentControllerMetadata.version || "",
        expectedVersion: config.expectedVersion,
        inlineExecuted: true,
        online: snapshot.online,
        pathCategory: snapshot.pathCategory,
        previousEventCount: prior ? prior.events.length : 0,
        source: workerRecoveryNavigation ? "worker_recovery_navigation" : "document",
        standalone: standalone,
        visibility: snapshot.visibility,
        deploymentRecoveryEnabled: config.deploymentRecoveryEnabled,
        workerEnabled: config.workerEnabled
      });

      if (navigator.serviceWorker) {
        navigator.serviceWorker.addEventListener("controllerchange", handleControllerChange);
        navigator.serviceWorker.addEventListener("message", handleWorkerMessage);
      }
      window.addEventListener("pageshow", function (event) {
        record("page_show", {
          persisted: Boolean(event && event.persisted),
          visibility: document.visibilityState || "unknown"
        });
        if (event && event.persisted) {
          void checkDeploymentSkew("pageshow_persisted", true);
          var restoredController =
            navigator.serviceWorker && navigator.serviceWorker.controller;
          var restoredMetadata = workerMetadata(restoredController);
          var controllerChangedWhileFrozen =
            snapshot.controllerPresent !== Boolean(restoredController) ||
            snapshot.controllerContract !== restoredMetadata.contract ||
            snapshot.controllerVersion !== restoredMetadata.version;
          if (controllerChangedWhileFrozen) {
            snapshot.controllerChangeCount += 1;
            snapshot.controllerPresent = Boolean(restoredController);
            snapshot.controllerContract = restoredMetadata.contract;
            snapshot.controllerVersion = restoredMetadata.version;
            record("controller_change", {
              controllerChangeCount: snapshot.controllerChangeCount,
              controllerContract: restoredMetadata.contract || "",
              controllerPresent: Boolean(restoredController),
              controllerVersion: restoredMetadata.version || "",
              source: "pageshow_persisted"
            });
            if (isExpectedWorker(restoredController)) {
              decideRecoveryReload(restoredController, "pageshow_persisted");
            }
          }
        }
        void checkWorker(event && event.persisted ? "pageshow_persisted" : "pageshow", Boolean(event && event.persisted));
      });
      window.addEventListener("online", function () {
        snapshot.online = true;
        record("network_change", { online: true });
        void checkWorker("online", true);
        if (
          snapshot.reloadDeferred &&
          recoveryReloadRequired &&
          !controllerDecisionMade &&
          isExpectedWorker(navigator.serviceWorker && navigator.serviceWorker.controller)
        ) {
          decideRecoveryReload(
            navigator.serviceWorker && navigator.serviceWorker.controller,
            "online"
          );
        }
      });
      window.addEventListener("offline", function () {
        snapshot.online = false;
        record("network_change", { online: false });
      });
      document.addEventListener("visibilitychange", function () {
        snapshot.visibility = document.visibilityState || "unknown";
        record("visibility_change", { visibility: snapshot.visibility });
        if (snapshot.visibility === "visible") {
          void checkWorker("visibility", false);
          void checkDeploymentSkew("visibility", false);
        }
      });

      void checkWorker("inline", true);
    })({"contractVersion":"legacy-recovery-v1","diagnosticsKey":"yb:pwa-startup:v1","diagnosticsVersion":1,"deploymentRecoveryEnabled":true,"automaticRecoveryLatchStorageKey":"yb:pwa-automatic-recovery:v1","deploymentManualQueryKey":"yb_pwa_manual_recovery","deploymentRecoveryQueryKey":"yb_pwa_chunk_recovery","deploymentRecoveryStorageKey":"yb:pwa-deployment-recovery:v1","deploymentRecoveryTtlMs":604800000,"expectedVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV","maxEvents":80,"recoveryNavigationQueryKey":"yb_pwa_recovery","routeRules":{"authCallbackPaths":["/api/auth/callback","/auth/callback","/auth/confirm","/auth/confirm-start","/auth/handoff","/auth/update-password","/business-auth/post-confirm","/oauth/callback","/set-password"],"authCallbackQueryKeys":["access_token","code","refresh_token","token_hash"],"businessFormPatternSources":["^/onboarding(?:/|$)","^/business/listings/new(?:/|$)","^/business/listings/[^/]+/edit(?:/|$)","^/business-auth/create-password(?:/|$)","^/business-auth/register(?:/|$)","^/business/onboarding(?:/|$)","^/business/profile(?:/|$)","^/business/settings(?:/|$)","^/business/staff/profile(?:/|$)"]},"stateEvent":"yb:pwa-startup-state","workerEnabled":true,"workerUrl":"/sw.js?c=legacy-recovery-v1\u0026v=dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"});
  3:["$","html",null,{"lang":"en","className":"theme-light yb-app-booting __variable_f5347a","data-theme":"light","data-scroll-behavior":"auto","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$23"}}],"$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b",["$L2c"],["$L2d"]]}],"$L2e"]}]
24:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n              try {\n                if (\"scrollRestoration\" in history) {\n                  history.scrollRestoration = \"manual\";\n                }\n              } catch (_) {}\n            "}}]
2f:T462,
    (function () {
      var root = document.documentElement;
      var done = false;
      function record(type, details) {
        try {
          if (window.__ybPwaStartup && typeof window.__ybPwaStartup.record === "function") {
            window.__ybPwaStartup.record(type, details);
          }
        } catch (_) {}
      }
      function markBootReady(source) {
        if (done) return;
        done = true;
        record("boot_ready_signal", { source: source || "unknown" });
        root.classList.add("yb-app-ready");
        root.classList.remove("yb-app-booting");
        if (document.getElementById("yb-pwa-recovery-fallback")) {
          record("stable_fallback", {
            recoveryAction: "fallback_preserved",
            source: source || "unknown"
          });
        }
      }
      window.__ybMarkBootReady = markBootReady;
      record("splash_failsafe_scheduled", { durationMs: 3000 });
      window.__ybBootSplashTimer = window.setTimeout(function () {
        record("splash_failsafe_fired", { durationMs: 3000 });
        markBootReady("splash_failsafe");
      }, 3000);
    })();
  25:["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2f"}}]
26:["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1"}]
27:["$","meta",null,{"name":"theme-color","content":"#411991"}]
30:T102a,
              html.yb-standalone-mode.yb-app-booting,
              html.yb-standalone-mode.yb-app-booting body {
                background: #411991;
              }

              #yb-boot-splash {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                opacity: 0;
                visibility: hidden;
                transition: opacity 320ms ease, visibility 320ms ease;
                pointer-events: none;
                contain: strict;
              }

              html.yb-standalone-mode.yb-app-booting #yb-boot-splash[data-state="visible"] {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
              }

              #yb-boot-splash[data-state="hidden"],
              html.yb-app-ready #yb-boot-splash,
              html.yb-browser-mode #yb-boot-splash {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
              }

              .yb-boot-splash__inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 24px;
              }

              .yb-boot-splash__logo {
                display: block;
                width: clamp(92px, 26vw, 132px);
                height: auto;
              }

              #yb-pwa-recovery-fallback {
                position: fixed;
                inset: 0;
                z-index: 2147483647;
                display: grid;
                place-items: center;
                min-height: 100vh;
                min-height: 100svh;
                padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
                overflow: auto;
                background:
                  radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%),
                  #411991;
                color: #ffffff;
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
              }

              .yb-pwa-recovery-fallback__inner {
                display: flex;
                width: min(100%, 460px);
                flex-direction: column;
                align-items: center;
                gap: 18px;
                padding: 28px;
                text-align: center;
              }

              .yb-pwa-recovery-fallback__logo {
                display: block;
                width: 88px;
                height: auto;
              }

              .yb-pwa-recovery-fallback__inner h1 {
                max-width: 420px;
                margin: 0;
                font-size: 22px;
                line-height: 1.3;
              }

              .yb-pwa-recovery-fallback__inner p {
                max-width: 420px;
                margin: 0;
                color: rgba(255, 255, 255, 0.86);
                font-size: 15px;
                line-height: 1.55;
              }

              .yb-pwa-recovery-fallback__reload {
                border: 0;
                border-radius: 12px;
                padding: 12px 20px;
                background: #ffffff;
                color: #411991;
                cursor: pointer;
                font-size: 15px;
                font-weight: 700;
              }

              .yb-pwa-recovery-fallback__home {
                color: #ffffff;
                font-size: 14px;
                text-decoration: underline;
                text-underline-offset: 3px;
              }

              @media (prefers-reduced-motion: reduce) {
                #yb-boot-splash {
                  transition: none;
                }
              }
            28:["$","style",null,{"dangerouslySetInnerHTML":{"__html":"$30"}}]
29:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-white.svg","fetchPriority":"high"}]
2a:["$","link",null,{"rel":"preload","as":"image","href":"/brand/navbar-logo-dark.svg","media":"(min-width: 1024px)","fetchPriority":"high"}]
2b:["$","link",null,{"rel":"preload","as":"image","href":"/brand/logo-mark-purple.svg","media":"(max-width: 1023.98px)","fetchPriority":"high"}]
2c:["$","link","preconnect-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"preconnect","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
2d:["$","link","dns-https://nbzqnjanqkzuwyxnkjtr.supabase.co",{"rel":"dns-prefetch","href":"https://nbzqnjanqkzuwyxnkjtr.supabase.co"}]
2e:["$","body",null,{"className":"min-h-screen w-full overflow-x-hidden bg-[#f6f7fb] antialiased text-[var(--yb-text)]","children":[["$","$L1d",null,{}],["$","$9",null,{"fallback":null,"children":"$L31"}],["$","$L1f",null,{"initialLocation":{"source":"default","city":"Long Beach","region":"CA","country":"US","zip":"$undefined","lat":33.7701,"lng":-118.1937,"placeId":"$undefined","label":"Long Beach, CA","kind":"$undefined","updatedAt":1787782839795},"initialAuth":null,"initialAuthResolved":true,"children":[["$","$L5",null,{"parallelRouterKey":"children","error":"$32","errorStyles":[],"errorScripts":null,"template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$1a:props:children:2:props:children:0:1","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{"parallelRouterKey":"auth","error":"$32","errorStyles":"$2e:props:children:2:props:children:0:props:errorStyles","errorScripts":null,"template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L5",null,{"parallelRouterKey":"businessAuth","error":"$32","errorStyles":"$2e:props:children:2:props:children:0:props:errorStyles","errorScripts":null,"template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],null,["$","$L20",null,{"currentVersion":"dpl_8UnTHm1Ph8PTT4qBhjrbKeLgtMHV"}],["$","$L21",null,{}],["$","$L22",null,{}]]}]
7:[["$","header",null,{"className":"fixed inset-x-0 top-0 z-50","style":{"backgroundColor":"#0F172A","borderBottom":"1px solid rgba(255,255,255,0.06)"},"data-business-public-header":"1","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 flex h-[72px] items-center justify-between gap-5 lg:h-[76px]","children":[["$","$L33",null,{"href":"/business","prefetch":false,"className":"flex shrink-0 items-center","children":[["$","img",null,{"src":"/brand/logo-mark-purple.svg","alt":"YourBarrio Logo","width":38,"height":38,"sizes":"$undefined","loading":"eager","decoding":"async","fetchPriority":"high","className":"block object-contain h-[38px] w-[38px] md:hidden"}],["$","img",null,{"src":"/brand/navbar-logo-dark.svg","alt":"YourBarrio Logo","width":245,"height":68,"sizes":"170px","loading":"eager","decoding":"async","fetchPriority":"high","className":"block object-contain hidden h-11 w-auto md:block"}]]}],["$","$L34",null,{}]]}]}],["$","div",null,{"className":"h-[72px] lg:h-[76px]","aria-hidden":"true"}],["$","main",null,{"className":"yb-business-marketing relative overflow-hidden bg-[linear-gradient(180deg,#fcfbf9_0%,#f8f3ec_42%,#ffffff_100%)] text-slate-900","children":[["$","div",null,{"className":"pointer-events-none absolute inset-x-0 top-0 h-[18rem] bg-[radial-gradient(circle_at_top_left,rgba(124,58,237,0.06),transparent_38%)]"}],["$","section",null,{"className":"relative pb-16 pt-12 md:pb-20 md:pt-16 lg:pb-[5.5rem]","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 grid gap-9 lg:grid-cols-[minmax(0,1.22fr)_minmax(0,0.78fr)] lg:items-center lg:gap-10","children":[["$","div",null,{"className":"max-w-[48rem]","children":[["$","h1",null,{"aria-label":"Get discovered, sell online, and manage pickup in one place.","className":"text-4xl font-semibold tracking-[-0.06em] text-slate-950 sm:text-[3.1rem] sm:leading-[1] lg:text-[2.95rem] xl:text-[3.15rem]","children":[["$","span",null,{"aria-hidden":"true","className":"block sm:hidden","children":"Get discovered,"}],["$","span",null,{"aria-hidden":"true","className":"block sm:hidden","children":"sell online,"}],["$","span",null,{"aria-hidden":"true","className":"block sm:hidden","children":"and manage pickup"}],["$","span",null,{"aria-hidden":"true","className":"block sm:hidden","children":"in one place."}],["$","span",null,{"aria-hidden":"true","className":"hidden sm:block","children":"Get discovered, sell online,"}],["$","span",null,{"aria-hidden":"true","className":"hidden sm:block","children":"and manage pickup in one place."}]]}],["$","p",null,{"className":"mt-4 max-w-[34rem] text-base leading-7 text-slate-600","children":"Create a local storefront, list products, accept online orders, and let nearby customers pick up directly from your shop."}],["$","div",null,{"className":"mt-5 flex flex-col gap-3 sm:flex-row","children":[["$","a",null,{"href":"/business-auth/register?popup=1","target":"_blank","rel":"noopener noreferrer","data-no-safe-nav":"1","className":"touch-manipulation yb-auth-cta inline-flex min-h-12 items-center justify-center rounded-xl bg-[linear-gradient(135deg,#7c3aed,#8b33ea)] px-6 py-3 text-sm font-semibold text-white hover:bg-[linear-gradient(135deg,#6d28d9,#7e22ce)] hover:text-white active:bg-[linear-gradient(135deg,#5b21b6,#6b21a8)] active:text-white shadow-[0_10px_24px_-18px_rgba(124,58,237,0.34)] yb-business-polish-transition hover:-translate-y-0.5 hover:shadow-[0_18px_34px_-22px_rgba(124,58,237,0.42)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7c3aed] focus-visible:ring-offset-0","style":"$undefined","children":"Create business account"}],["$","a",null,{"href":"/business/login?popup=1","target":"_blank","rel":"noopener noreferrer","data-no-safe-nav":"1","className":"touch-manipulation inline-flex min-h-12 items-center justify-center rounded-xl border border-slate-300 bg-white/88 px-6 py-3 text-sm font-semibold text-slate-800 yb-business-polish-transition hover:border-slate-400 hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-0","style":"$undefined","children":"Business login"}]]}],"$L35"]}],"$L36"]}]}],"$L37","$L38","$L39","$L3a","$L3b","$L3c"]}]]
35:["$","p",null,{"className":"mt-4 text-sm leading-6 text-slate-600","children":"Early Long Beach beta · Simple setup · Pickup-first local orders"}]
36:["$","div",null,{"className":"mx-auto w-full lg:mr-0","children":["$","div",null,{"className":"yb-business-polish-transition overflow-hidden rounded-[26px] border border-white/55 bg-white/45 shadow-[var(--yb-business-shadow-soft)]","children":["$","$L3d",null,{"src":"/business-pickup-woman-owner.png","alt":"YourBarrio for Business storefront preview","width":1200,"height":900,"priority":true,"className":"h-auto w-full object-cover","sizes":"(max-width: 1024px) 100vw, 608px"}]}]}]
37:["$","section",null,{"className":"pb-10 pt-4 md:pb-12 md:pt-8","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 ","children":[["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"How YourBarrio works"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"Start with a simple storefront, then add products and manage pickup orders as they come in."}]]}],["$","div",null,{"className":"mt-8 grid gap-4 md:grid-cols-3","children":[["$","article","Create your business profile",{"className":"rounded-[22px] border border-slate-200/70 bg-white/74 p-5 shadow-[0_18px_50px_-42px_rgba(15,23,42,0.26)]","children":[["$","div",null,{"className":"flex h-8 w-8 items-center justify-center rounded-full bg-[#7c3aed]/[0.08] text-xs font-semibold text-[#6d28d9]","children":1}],["$","h3",null,{"className":"mt-4 text-[1.05rem] font-semibold tracking-[-0.03em] text-slate-950","children":"Create your business profile"}],["$","p",null,{"className":"mt-2 text-[0.95rem] leading-6 text-slate-600","children":"Add your hours, location, photos, pickup details, and business story."}]]}],["$","article","List products",{"className":"rounded-[22px] border border-slate-200/70 bg-white/74 p-5 shadow-[0_18px_50px_-42px_rgba(15,23,42,0.26)]","children":[["$","div",null,{"className":"flex h-8 w-8 items-center justify-center rounded-full bg-[#7c3aed]/[0.08] text-xs font-semibold text-[#6d28d9]","children":2}],["$","h3",null,{"className":"mt-4 text-[1.05rem] font-semibold tracking-[-0.03em] text-slate-950","children":"List products"}],["$","p",null,{"className":"mt-2 text-[0.95rem] leading-6 text-slate-600","children":"Add photos, prices, inventory, and pickup availability."}]]}],["$","article","Receive local orders",{"className":"rounded-[22px] border border-slate-200/70 bg-white/74 p-5 shadow-[0_18px_50px_-42px_rgba(15,23,42,0.26)]","children":[["$","div",null,{"className":"flex h-8 w-8 items-center justify-center rounded-full bg-[#7c3aed]/[0.08] text-xs font-semibold text-[#6d28d9]","children":3}],["$","h3",null,{"className":"mt-4 text-[1.05rem] font-semibold tracking-[-0.03em] text-slate-950","children":"Receive local orders"}],["$","p",null,{"className":"mt-2 text-[0.95rem] leading-6 text-slate-600","children":"Customers pay online and pick up directly from your business."}]]}]]}]]}]}]
38:["$","section",null,{"className":"pt-10 pb-8 md:pt-12 md:pb-10","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 ","children":[["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"Everything you need to show up locally"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"YourBarrio gives local businesses the tools to be discovered, trusted, and ready for pickup orders."}]]}],["$","div",null,{"className":"mt-12 grid gap-x-10 gap-y-12 md:grid-cols-3 lg:gap-x-14","children":[["$","article","Reach nearby shoppers",{"className":"group yb-business-polish-transition flex w-full flex-col group-hover:-translate-y-0.5","children":[["$","div",null,{"className":"mx-auto w-full overflow-hidden rounded-[26px] bg-[#f3ede6] shadow-[var(--yb-business-shadow-soft)] yb-business-polish-transition group-hover:shadow-[var(--yb-business-shadow-hover)]","children":["$","div",null,{"className":"relative aspect-[4/3] overflow-hidden md:min-h-[18.5rem]","children":["$","$L3d",null,{"src":"/images/business-values/reach-nearby-customers.png","alt":"A customer browsing a refined local boutique storefront in warm natural light.","fill":true,"className":"h-full w-full object-cover object-center yb-business-polish-transition group-hover:scale-[1.02]","sizes":"(max-width: 767px) 100vw, (max-width: 1279px) 50vw, 360px"}]}]}],["$","h3",null,{"className":"mt-5 max-w-[17.5rem] text-[1.1rem] font-semibold tracking-[-0.03em] text-slate-950","children":"Reach nearby shoppers"}],["$","p",null,{"className":"mt-2.5 max-w-[22rem] text-[0.95rem] leading-6 text-slate-600","children":"Be found by customers looking for local products close to where they live, work, and shop."}]]}],["$","article","Create a polished storefront",{"className":"group yb-business-polish-transition flex w-full flex-col group-hover:-translate-y-0.5","children":[["$","div",null,{"className":"mx-auto w-full overflow-hidden rounded-[26px] bg-[#f3ede6] shadow-[var(--yb-business-shadow-soft)] yb-business-polish-transition group-hover:shadow-[var(--yb-business-shadow-hover)]","children":["$","div",null,{"className":"relative aspect-[4/3] overflow-hidden md:min-h-[18.5rem]","children":["$","$L3d",null,{"src":"/images/business-values/credible-local-presence.png","alt":"A business owner carefully arranging a polished storefront or product display.","fill":true,"className":"h-full w-full object-cover object-[center_44%] yb-business-polish-transition group-hover:scale-[1.02]","sizes":"(max-width: 767px) 100vw, (max-width: 1279px) 50vw, 360px"}]}]}],["$","h3",null,{"className":"mt-5 max-w-[17.5rem] text-[1.1rem] font-semibold tracking-[-0.03em] text-slate-950","children":"Create a polished storefront"}],["$","p",null,{"className":"mt-2.5 max-w-[22rem] text-[0.95rem] leading-6 text-slate-600","children":"Show your photos, hours, products, pickup details, and business story in one place."}]]}],["$","article","Manage listings and orders",{"className":"group yb-business-polish-transition flex w-full flex-col group-hover:-translate-y-0.5","children":[["$","div",null,{"className":"mx-auto w-full overflow-hidden rounded-[26px] bg-[#f3ede6] shadow-[var(--yb-business-shadow-soft)] yb-business-polish-transition group-hover:shadow-[var(--yb-business-shadow-hover)]","children":["$","div",null,{"className":"relative aspect-[4/3] overflow-hidden md:min-h-[18.5rem]","children":["$","$L3d",null,{"src":"/images/business-values/manage-everything-simply.png","alt":"A business owner using a laptop in a clean shop workspace with calm natural light.","fill":true,"className":"h-full w-full object-cover object-[center_38%] yb-business-polish-transition group-hover:scale-[1.02]","sizes":"(max-width: 767px) 100vw, (max-width: 1279px) 50vw, 360px"}]}]}],"$L3e","$L3f"]}]]}]]}]}]
39:["$","section",null,{"className":"pt-8 pb-10 md:pt-10 md:pb-12","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 grid gap-9 lg:grid-cols-[0.9fr_1.1fr] lg:items-center","children":[["$","div",null,{"children":[["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"Built for neighborhood businesses"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"YourBarrio is designed for local shops that want more visibility without adding unnecessary complexity."}]]}],["$","p",null,{"className":"mt-6 max-w-2xl text-sm font-medium leading-7 text-slate-500","children":"Boutiques · Florists · Gift shops · Thrift stores · Home goods · Bakeries · Local makers"}],["$","div",null,{"className":"mt-10","children":["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-2xl font-semibold tracking-[-0.045em] text-slate-950 sm:text-[1.9rem]","children":"A simple dashboard for local selling"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"Manage the essentials from one place, without needing a custom website or complicated setup."}]]}]}]]}],["$","div",null,{"className":"rounded-[28px] border border-slate-200/70 bg-white/82 p-3.5 shadow-[0_24px_70px_-48px_rgba(15,23,42,0.24)] sm:p-4","children":["$","div",null,{"className":"rounded-[22px] border border-slate-200 bg-[#fbfaf8] p-3","children":[["$","div",null,{"className":"flex flex-col gap-1.5 rounded-2xl border border-slate-200 bg-white px-3.5 py-2.5 sm:flex-row sm:items-center sm:justify-between","children":[["$","div",null,{"children":[["$","p",null,{"className":"text-[0.64rem] font-semibold uppercase tracking-[0.2em] text-[#6d28d9]","children":"Business dashboard"}],["$","h3",null,{"className":"mt-1 text-base font-semibold tracking-[-0.03em] text-slate-950","children":"Shoreline Market"}]]}],["$","span",null,{"className":"w-fit rounded-full border border-emerald-200 bg-emerald-50 px-2.5 py-0.5 text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-emerald-700","children":"Open today"}]]}],["$","div",null,{"className":"mt-2.5 grid gap-2.5 sm:grid-cols-2","children":[["$","div",null,{"className":"rounded-2xl border border-slate-200 bg-white p-3","children":[["$","p",null,{"className":"text-[0.62rem] font-semibold uppercase tracking-[0.18em] text-slate-400","children":"Sales"}],["$","h3",null,{"className":"mt-1 text-sm font-semibold text-slate-950","children":"Sales over time"}],["$","div",null,{"className":"mt-2.5 flex h-14 items-end gap-1.5 rounded-xl border border-slate-100 bg-slate-50/70 px-3 pb-2.5","children":[["$","div","Sales over time-0",{"className":"h-6 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.7}}],["$","div","Sales over time-1",{"className":"h-8 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.7}}],["$","div","Sales over time-2",{"className":"h-7 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.9}}],["$","div","Sales over time-3",{"className":"h-11 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.9}}],["$","div","Sales over time-4",{"className":"h-10 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.9}}],["$","div","Sales over time-5",{"className":"h-14 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.9}}],["$","div","Sales over time-6",{"className":"h-9 flex-1 rounded-t-md bg-[linear-gradient(180deg,#8b5cf6_0%,#7c3aed_100%)]","style":{"opacity":0.9}}]]}]]}],["$","div",null,{"className":"rounded-2xl border border-slate-200 bg-white p-3","children":["$L40","$L41","$L42"]}],"$L43","$L44"]}]]}]}]]}]}]
3a:["$","section",null,{"className":"pt-10 pb-12 md:pt-12 md:pb-14","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 ","children":["$","div",null,{"className":"grid w-full gap-8 rounded-[30px] border border-[#d9c6ff]/28 bg-[linear-gradient(135deg,rgba(249,244,255,0.78),rgba(255,255,255,0.86))] p-7 shadow-[0_24px_70px_-52px_rgba(15,23,42,0.22)] md:p-10 lg:grid-cols-[0.9fr_1.1fr] lg:items-center","children":[["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"Why join during the early beta?"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"Early businesses get more visibility, setup support, and a chance to shape how YourBarrio works for local shops."}]]}],["$","div",null,{"children":[["$","div",null,{"className":"space-y-3","children":[["$","div","Early local visibility",{"className":"flex items-start gap-3","children":[["$","span",null,{"className":"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[#7c3aed]"}],["$","p",null,{"className":"text-sm font-semibold leading-6 text-slate-900","children":"Early local visibility"}]]}],["$","div","Help setting up your first listings",{"className":"flex items-start gap-3","children":[["$","span",null,{"className":"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[#7c3aed]"}],["$","p",null,{"className":"text-sm font-semibold leading-6 text-slate-900","children":"Help setting up your first listings"}]]}],["$","div","Feedback prioritized during beta",{"className":"flex items-start gap-3","children":[["$","span",null,{"className":"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[#7c3aed]"}],["$","p",null,{"className":"text-sm font-semibold leading-6 text-slate-900","children":"Feedback prioritized during beta"}]]}]]}],["$","p",null,{"className":"mt-5 text-sm leading-6 text-slate-600","children":[["$","span",null,{"className":"block","children":"During beta, YourBarrio is waiving platform fees for founding local businesses."}],["$","span",null,{"className":"block","children":"Full pricing details are coming soon."}]]}]]}]]}]}]}]
3b:["$","section",null,{"className":"pt-8 pb-10 md:pt-10 md:pb-12","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 ","children":[["$","div",null,{"className":" max-w-3xl","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"Questions before you create your storefront"}],["$","p",null,{"className":"mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"A few quick answers. View the full FAQ for more details."}]]}],["$","div",null,{"className":"mt-8 grid gap-3 md:grid-cols-2","children":[["$","article","Do I need a website already?",{"className":"rounded-[20px] border border-slate-200/75 bg-white/78 p-4 shadow-[0_18px_50px_-44px_rgba(15,23,42,0.2)]","children":[["$","h3",null,{"className":"text-base font-semibold tracking-[-0.02em] text-slate-950","children":"Do I need a website already?"}],["$","p",null,{"className":"mt-2 text-sm leading-6 text-slate-600","children":"No. YourBarrio gives your business a local online storefront where customers can learn about your shop, browse products, and place pickup orders."}]]}],["$","article","Can customers pay online?",{"className":"rounded-[20px] border border-slate-200/75 bg-white/78 p-4 shadow-[0_18px_50px_-44px_rgba(15,23,42,0.2)]","children":[["$","h3",null,{"className":"text-base font-semibold tracking-[-0.02em] text-slate-950","children":"Can customers pay online?"}],["$","p",null,{"className":"mt-2 text-sm leading-6 text-slate-600","children":"Yes. Customers can place orders and pay online, then pick up directly from your business."}]]}],["$","article","Do I need to offer delivery?",{"className":"rounded-[20px] border border-slate-200/75 bg-white/78 p-4 shadow-[0_18px_50px_-44px_rgba(15,23,42,0.2)]","children":[["$","h3",null,{"className":"text-base font-semibold tracking-[-0.02em] text-slate-950","children":"Do I need to offer delivery?"}],["$","p",null,{"className":"mt-2 text-sm leading-6 text-slate-600","children":"No. YourBarrio is pickup-first during beta, so customers place orders online and pick them up directly from your business."}]]}],["$","article","How much does it cost?",{"className":"rounded-[20px] border border-slate-200/75 bg-white/78 p-4 shadow-[0_18px_50px_-44px_rgba(15,23,42,0.2)]","children":[["$","h3",null,{"className":"text-base font-semibold tracking-[-0.02em] text-slate-950","children":"How much does it cost?"}],["$","p",null,{"className":"mt-2 text-sm leading-6 text-slate-600","children":"During beta, YourBarrio is waiving platform fees for founding local businesses. Any future fees will be shared clearly before they apply."}]]}]]}],["$","div",null,{"className":"mt-6","children":["$","$L33",null,{"href":"/business/faq","className":"inline-flex min-h-11 items-center rounded-lg px-1 py-2 text-sm font-semibold text-[#6d28d9] yb-business-polish-transition hover:text-[#5b21b6] hover:underline hover:underline-offset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7c3aed] focus-visible:ring-offset-0","children":"View all business FAQs →"}]}]]}]}]
3c:["$","section",null,{"className":"pb-16 pt-4 md:pb-20 md:pt-6","children":["$","div",null,{"className":"mx-auto w-full max-w-[1280px] px-6 sm:px-8 lg:px-10 ","children":["$","div",null,{"className":"w-full overflow-hidden rounded-[30px] border border-[#d9c6ff]/30 bg-[linear-gradient(135deg,rgba(249,244,255,0.98),rgba(244,240,251,0.96)_48%,rgba(239,243,252,0.94))] p-8 text-center shadow-[0_24px_70px_-48px_rgba(15,23,42,0.18)] md:p-10","children":[["$","h2",null,{"className":"text-3xl font-semibold tracking-[-0.05em] text-slate-950 sm:text-[2.2rem]","children":"Start your local storefront today."}],["$","p",null,{"className":"mx-auto mt-4 max-w-3xl text-base leading-7 text-slate-600","children":"Join the early beta, create your profile, and start accepting pickup-ready local orders."}],["$","div",null,{"className":"mt-7 flex flex-col justify-center gap-3 sm:flex-row","children":[["$","a",null,{"href":"/business-auth/register?popup=1","target":"_blank","rel":"noopener noreferrer","data-no-safe-nav":"1","className":"touch-manipulation yb-auth-cta inline-flex min-h-12 items-center justify-center gap-2 rounded-2xl bg-[linear-gradient(135deg,#7c3aed,#9333ea)] px-6 py-3 text-sm font-semibold text-white hover:bg-[linear-gradient(135deg,#6d28d9,#7e22ce)] hover:text-white active:bg-[linear-gradient(135deg,#5b21b6,#6b21a8)] active:text-white shadow-[0_14px_34px_-16px_rgba(124,58,237,0.34)] yb-business-polish-transition hover:-translate-y-0.5 hover:shadow-[0_20px_40px_-20px_rgba(124,58,237,0.38)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7c3aed] focus-visible:ring-offset-0","style":"$undefined","children":"Create business account"}],["$","a",null,{"href":"/business/login?popup=1","target":"_blank","rel":"noopener noreferrer","data-no-safe-nav":"1","className":"touch-manipulation inline-flex min-h-12 items-center justify-center rounded-2xl border border-slate-300/90 bg-white/92 px-6 py-3 text-sm font-semibold text-slate-800 yb-business-polish-transition hover:border-slate-400 hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-300 focus-visible:ring-offset-0","style":"$undefined","children":"Business login"}]]}]]}]}]}]
3e:["$","h3",null,{"className":"mt-5 max-w-[17.5rem] text-[1.1rem] font-semibold tracking-[-0.03em] text-slate-950","children":"Manage listings and orders"}]
3f:["$","p",null,{"className":"mt-2.5 max-w-[22rem] text-[0.95rem] leading-6 text-slate-600","children":"Keep your profile, inventory, pickup windows, and incoming orders organized from one dashboard."}]
40:["$","p",null,{"className":"text-[0.62rem] font-semibold uppercase tracking-[0.18em] text-slate-400","children":"Traffic"}]
41:["$","h3",null,{"className":"mt-1 text-sm font-semibold text-slate-950","children":"Profile views"}]
42:["$","div",null,{"className":"mt-2.5 flex h-14 items-end gap-1.5 rounded-xl border border-slate-100 bg-slate-50/70 px-3 pb-2.5","children":[["$","div","Profile views-0",{"className":"h-8 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.7}}],["$","div","Profile views-1",{"className":"h-10 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.7}}],["$","div","Profile views-2",{"className":"h-7 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.9}}],["$","div","Profile views-3",{"className":"h-[3.25rem] flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.9}}],["$","div","Profile views-4",{"className":"h-11 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.9}}],["$","div","Profile views-5",{"className":"h-9 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.9}}],["$","div","Profile views-6",{"className":"h-12 flex-1 rounded-t-md bg-slate-800","style":{"opacity":0.9}}]]}]
43:["$","div",null,{"className":"rounded-2xl border border-slate-200 bg-white p-3","children":[["$","p",null,{"className":"text-[0.62rem] font-semibold uppercase tracking-[0.18em] text-slate-400","children":"Merchandising"}],["$","h3",null,{"className":"mt-1 text-sm font-semibold text-slate-950","children":"Top products"}],["$","div",null,{"className":"mt-2.5 overflow-hidden rounded-xl border border-slate-100 bg-slate-50/60","children":[["$","div",null,{"className":"grid grid-cols-[minmax(0,1fr)_72px_36px] gap-2 px-3 py-2 text-[0.58rem] font-semibold uppercase tracking-[0.14em] text-slate-400 [&>span:nth-child(1)]:text-left [&>span:nth-child(2)]:text-right [&>span:nth-child(3)]:text-right","children":[["$","span","Product",{"children":"Product"}],["$","span","Revenue",{"children":"Revenue"}],["$","span","Orders",{"children":"Orders"}]]}],[["$","div","Ceramic planter",{"className":"grid grid-cols-[minmax(0,1fr)_72px_36px] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"min-w-0 truncate text-left font-semibold text-slate-900","children":"Ceramic planter"}],["$","p",null,{"className":"text-right font-semibold tabular-nums text-slate-900","children":"$$220"}],["$","p",null,{"className":"text-right tabular-nums text-slate-600","children":"8"}]]}],["$","div","Market bouquet",{"className":"grid grid-cols-[minmax(0,1fr)_72px_36px] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"min-w-0 truncate text-left font-semibold text-slate-900","children":"Market bouquet"}],["$","p",null,{"className":"text-right font-semibold tabular-nums text-slate-900","children":"$$188"}],["$","p",null,{"className":"text-right tabular-nums text-slate-600","children":"6"}]]}],["$","div","Local honey",{"className":"hidden sm:grid grid-cols-[minmax(0,1fr)_72px_36px] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"min-w-0 truncate text-left font-semibold text-slate-900","children":"Local honey"}],["$","p",null,{"className":"text-right font-semibold tabular-nums text-slate-900","children":"$$149"}],["$","p",null,{"className":"text-right tabular-nums text-slate-600","children":"5"}]]}]]]}]]}]
44:["$","div",null,{"className":"rounded-2xl border border-slate-200 bg-white p-3","children":[["$","p",null,{"className":"text-[0.62rem] font-semibold uppercase tracking-[0.18em] text-slate-400","children":"Fulfillment"}],["$","h3",null,{"className":"mt-1 text-sm font-semibold text-slate-950","children":"Recent orders"}],["$","div",null,{"className":"mt-2.5 overflow-hidden rounded-xl border border-slate-100 bg-slate-50/60","children":[["$","div",null,{"className":"grid grid-cols-[0.65fr_1fr_auto_auto] gap-2 px-3 py-2 text-[0.58rem] font-semibold uppercase tracking-[0.14em] text-slate-400","children":[["$","span","Order",{"children":"Order"}],["$","span","Customer",{"children":"Customer"}],["$","span","Total",{"children":"Total"}],["$","span","Status",{"children":"Status"}]]}],[["$","div","#1842",{"className":"grid grid-cols-[0.65fr_1fr_auto_auto] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"font-semibold text-slate-900","children":"#1842"}],["$","p",null,{"className":"truncate text-slate-600","children":"Maya R."}],["$","p",null,{"className":"font-semibold text-slate-900","children":"$$42.00"}],["$","span",null,{"className":"rounded-full px-2 py-0.5 text-[0.68rem] font-semibold bg-amber-50 text-amber-700","children":"pending"}]]}],["$","div","#1841",{"className":"grid grid-cols-[0.65fr_1fr_auto_auto] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"font-semibold text-slate-900","children":"#1841"}],["$","p",null,{"className":"truncate text-slate-600","children":"Daniel K."}],["$","p",null,{"className":"font-semibold text-slate-900","children":"$$76.00"}],["$","span",null,{"className":"rounded-full px-2 py-0.5 text-[0.68rem] font-semibold bg-emerald-50 text-emerald-700","children":"fulfilled"}]]}],["$","div","#1840",{"className":"hidden sm:grid grid-cols-[0.65fr_1fr_auto_auto] items-center gap-2 border-t border-slate-100 bg-white px-3 py-1.5 text-xs","children":[["$","p",null,{"className":"font-semibold text-slate-900","children":"#1840"}],["$","p",null,{"className":"truncate text-slate-600","children":"Ari P."}],["$","p",null,{"className":"font-semibold text-slate-900","children":"$$31.00"}],["$","span",null,{"className":"rounded-full px-2 py-0.5 text-[0.68rem] font-semibold bg-slate-100 text-slate-600","children":"on hold"}]]}]]]}]]}]
31:null
a:null
e:[["$","title","0",{"children":"YourBarrio - Shop Local"}],["$","meta","1",{"name":"description","content":"YourBarrio neighborhood discovery landing page"}],["$","meta","2",{"name":"application-name","content":"YourBarrio"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest","crossOrigin":"$undefined"}],["$","meta","4",{"name":"yb-shell-root","content":"root"}],["$","meta","5",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"YourBarrio"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","8",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"yb-shell","content":"business-marketing"}],["$","meta","10",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","11",{"name":"apple-mobile-web-app-title","content":"YourBarrio"}],["$","meta","12",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","13",{"rel":"shortcut icon","href":"/favicon.ico?v=2"}],["$","link","14",{"rel":"shortcut icon","href":"/icons/favicon.ico?v=2"}],["$","link","15",{"rel":"icon","href":"/favicon.ico?v=2","sizes":"any"}],["$","link","16",{"rel":"icon","href":"/icons/favicon.ico?v=2","sizes":"any"}],["$","link","17",{"rel":"icon","href":"/icons/favicon.svg?v=2","type":"image/svg+xml"}],["$","link","18",{"rel":"icon","href":"/icons/favicon-32x32.png?v=2","sizes":"32x32","type":"image/png"}],["$","link","19",{"rel":"icon","href":"/icons/favicon-16x16.png?v=2","sizes":"16x16","type":"image/png"}],["$","link","20",{"rel":"apple-touch-icon","href":"/icons/apple-touch-icon.png?v=2","sizes":"180x180","type":"image/png"}],["$","$L45","21",{}]]
