PageSourceSearch

https://www.netacad.com/workbox/workbox-sw.js

js netacad.com collected 2026-10-01 09:02:08 UTC 2,254 bytes, 64 lines download raw bytes

1!(function () {
2    'use strict'
3    try {
4        self['workbox:sw:7.1.0'] && _()
5    } catch (t) {}
6    const t = {
7        backgroundSync: 'background-sync',
8        broadcastUpdate: 'broadcast-update',
9        cacheableResponse: 'cacheable-response',
10        core: 'core',
11        expiration: 'expiration',
12        googleAnalytics: 'offline-ga',
13        navigationPreload: 'navigation-preload',
14        precaching: 'precaching',
15        rangeRequests: 'range-requests',
16        routing: 'routing',
17        strategies: 'strategies',
18        streams: 'streams',
19        recipes: 'recipes',
20    }
21    self.workbox = new (class {
22        constructor() {
23            return (
24                (this.v = {}),
25                (this.Pt = {
26                    debug: 'localhost' === self.location.hostname,
27                    modulePathPrefix: null,
28                    modulePathCb: null,
29                }),
30                (this.$t = this.Pt.debug ? 'dev' : 'prod'),
31                (this.jt = !1),
32                new Proxy(this, {
33                    get(e, s) {
34                        if (e[s]) return e[s]
35                        const o = t[s]
36                        return o && e.loadModule(`workbox-${o}`), e[s]
37                    },
38                })
39            )
40        }
41        setConfig(t = {}) {
42            if (this.jt) throw new Error('Config must be set before accessing workbox.* modules')
43            Object.assign(this.Pt, t), (this.$t = this.Pt.debug ? 'dev' : 'prod')
44        }
45        loadModule(t) {
46            const e = this.St(t)
47            try {
48                importScripts(e), (this.jt = !0)
49            } catch (s) {
50                throw (console.error(`Unable to import module '${t}' from '${e}'.`), s)
51            }
52        }
53        St(t) {
54            if (this.Pt.modulePathCb) return this.Pt.modulePathCb(t, this.Pt.debug)
55            let e = ['https://storage.googleapis.com/workbox-cdn/releases/7.1.0']
56            const s = `${t}.${this.$t}.js`,
57                o = this.Pt.modulePathPrefix
58            return (
59                o && ((e = o.split('/')), '' === e[e.length - 1] && e.splice(e.length - 1, 1)), e.push(s), e.join('/')
60            )
61        }
62    })()
63})()
64//# sourceMappingURL=workbox-sw.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.