PageSourceSearch

https://jjums.notion.site/_assets/wasm-sqlite-worker-c10e52679154a6bb.js

js jjums.notion.site collected 2026-10-10 01:48:58 UTC 5,222 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t,r,o,i,n={522340(e,t,r){let o;r(533958),r(159952),r(435368),r(730330),r(976614),r(765324);let i=["notion-db.sqlite3","notion-db-v0.sqlite3","notion-db-v1.sqlite3","notion-db-v2.sqlite3","notion-db-v3.sqlite3","notion-db-v4.sqlite3"],n=console.warn;console.warn=(...e)=>{"sqlite3_step() rc="!==e[0]&&n(...e)},r(216430).p({async initialize(){o=await a.createInstance()},execSqliteBatch(e){if(!o)throw Error("Sqlite DB was not initialized");return o.execSqliteBatch(e)},execSqliteBatchV2(e){if(!o)throw Error("Sqlite DB was not initialized");return o.execSqliteBatchV2(e)},async completelyRebuildSqliteDb(){if(!o)throw Error("Sqlite DB was not initialized");await o.closeDbAndWipeAllData(),o=await a.createInstance()}});class a{implementation;constructor(e){this.implementation=e}static async createInstance(){let e=await (0,r(817695).A)(),t=await e.installOpfsSAHPoolVfs({});if(!("OpfsSAHPoolDb"in t))throw t;let o=new t.OpfsSAHPoolDb("/notion-db-v5.sqlite3"),i=new a({sqlite3:e,PoolUtil:t,db:o});return i.deleteDeprecatedFiles(),i}execSqliteBatch(e){return Promise.resolve(this.execSqliteBatchInternal(e))}execSqliteBatchV2(e){let{precondition:t,batch:r}=e;if(t){let[e]=this.execSqliteBatchInternal({body:[t],onError:void 0}).body;if("DataOk"===e.type){let{precondition_result:t}=function(e){if(1!==e.data.length)throw Error(`Expected exactly 1 result row, instead had ${e.data.length}.`);return e.data[0]}(e);if("number"!=typeof t)throw Error(`precondition_result must be 0/1, instead received: ${t} (type: ${typeof t})`);if(1===t)return Promise.resolve(this.execSqliteBatchInternal(r))}return Promise.resolve({body:r.body.map(()=>({type:"PreconditionFailed",sqliteCode:"Error"===e.type?e.sqliteCode:void 0})),onErrorResult:void 0})}return Promise.resolve(this.execSqliteBatchInternal(r))}async closeDbAndWipeAllData(){let{db:e,PoolUtil:t}=this.implementation;e.close(),await t.removeVfs()}deviceSupportsLoadPageChunk(){return!1}execSqliteBatchInternal(e){let{body:t,onError:r}=e,o=[],i=!1,n=Date.now();for(let[e,r]of t.entries()){if(i){o[e]={type:"ErrorBefore"};continue}let t=this.execSqliteStatement(r);o[e]=t,i="Error"===t.type||"ErrorBefore"===t.type||"PreconditionFailed"===t.type||"OutOfSpace"===t.type||"SharedWorkerFailedToDelegate"===t.type}return{body:o,onErrorResult:i&&r?this.execSqliteStatement(r):void 0,batchExecutionTimeMs:Date.now()-n}}execSqliteStatement(e){try{let{sql:t,args:r,getData:o}=e;if(!o)return this.implementation.db.exec({sql:t,bind:r}),{type:"Ok"};{let e=this.implementation.db.exec({sql:t,bind:r,rowMode:"object",returnValue:"resultRows"});return{type:"DataOk",data:e}}}catch(e){if(e instanceof this.implementation.sqlite3.SQLite3Error)return{type:"Error",message:e.message,name:e.name,sqliteCode:e.resultCode};if(e instanceof Error)return{type:"Error",message:e.message,name:e.name,sqliteCode:void 0};return{type:"Error",message:"Unknown error",name:"SqliteUnknownError",sqliteCode:void 0}}}deleteDeprecatedFiles(){for(let e of i)this.implementation.PoolUtil.unlink(`/${e}`)}}},324497(e,t,r){function o(e){if(e instanceof Error)return e;if("string"==typeof e)try{e=JSON.parse(e)}catch{}return"object"==typeof e&&null!==e?Object.assign(Error("Expected error, but caught non-error object"),e):"string"==typeof e?Object.assign(Error(e),{cause:e}):Object.assign(Error(`Expected error, but caught \`${String(e)}\` (${typeof e})`),{cause:e})}r(533958),r.d(t,{A:()=>o})}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return n[e].call(r.exports,r,r.exports,l),r.exports}l.m=n,l.x=()=>{var e=l.O(void 0,["95209","29013","4766","72963","52215","23386","18434"],()=>l(522340));return l.O(e)},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.tu=e=>e,l.d=(e,t,r)=>{var o=(t,r)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,[r]:t[o]})};o(t,"get"),o(r,"value")},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>95209===e?"95209-da5ed98f9c9e58df.js":29013===e?"29013-c582a878291fd719.js":""+e+"-"+({18434:"d4113c9f9777a4ca",23386:"18ab0af0d7168902",4766:"1b71a29eb300cf2c",52215:"db33f6b46964ea36",65625:"23951f4dd8b9c034",72963:"ecee293d24eb435a",74927:"0bf921e4837940cd"})[e]+".js",l.miniCssF=e=>
1""+e+".css",l.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e=[],l.O=(t,r,o,i)=>{if(r){i=i||0;for(var n=e.length;n>0&&e[n-1][2]>i;n--)e[n]=e[n-1];e[n]=[r,o,i];return}for(var a=1/0,n=0;n<e.length;n++){for(var[r,o,i]=e[n],s=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(l.O).every(e=>l.O[e](r[c]))?r.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(n--,1);var d=o();void 0!==d&&(t=d)}}return t},l.p="/_assets/",t=l.x,l.x=()=>Promise.all([95209,29013,4766,72963,52215,23386,18434].map(l.e,l)).then(t),l.b=self.location+"",r={21864:1},i=(o=globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push.bind(o),o.push=e=>{var[t,o,n]=e;for(var a in o)l.o(o,a)&&(l.m[a]=o[a]);for(n&&n(l);t.length;)r[t.pop()]=1;i(e)},l.f.i=(e,t)=>{r[e]||importScripts(l.p+l.u(e))},l.x()})();

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.