Files
Shifted/node_modules/@prisma/client/runtime/query_engine_bg.cockroachdb.mjs
2026-02-10 01:14:19 +00:00

3 lines
13 KiB
JavaScript

var T=()=>{};T.prototype=T;let r;function $(e){r=e}let A=null;function y(){return(A===null||A.byteLength===0)&&(A=new Uint8Array(r.memory.buffer)),A}let S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();const R=2146435072;let F=0;function j(e,t){return F+=t,F>=R&&(S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),S.decode(),F=t),S.decode(y().subarray(e,e+t))}function w(e,t){return e=e>>>0,j(e,t)}let s=0;const m=new TextEncoder;"encodeInto"in m||(m.encodeInto=function(e,t){const n=m.encode(e);return t.set(n),{read:e.length,written:n.length}});function b(e,t,n){if(n===void 0){const u=m.encode(e),f=t(u.length,1)>>>0;return y().subarray(f,f+u.length).set(u),s=u.length,f}let _=e.length,o=t(_,1)>>>0;const i=y();let c=0;for(;c<_;c++){const u=e.charCodeAt(c);if(u>127)break;i[o+c]=u}if(c!==_){c!==0&&(e=e.slice(c)),o=n(o,_,_=c+e.length*3,1)>>>0;const u=y().subarray(o+c,o+_),f=m.encodeInto(e,u);c+=f.written,o=n(o,_,c,1)>>>0}return s=c,o}let p=null;function l(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==r.memory.buffer)&&(p=new DataView(r.memory.buffer)),p}function a(e){return e==null}function I(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const o=e.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){const o=e.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(e)){const o=e.length;let i="[";o>0&&(i+=I(e[0]));for(let c=1;c<o;c++)i+=", "+I(e[c]);return i+="]",i}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(n&&n.length>1)_=n[1];else return toString.call(e);if(_=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
${e.stack}`:_}function x(e){const t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function g(e,t){try{return e.apply(this,t)}catch(n){const _=x(n);r.__wbindgen_exn_store(_)}}function q(e,t){return e=e>>>0,y().subarray(e/1,e/1+t)}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function B(e,t,n,_){const o={a:e,b:t,cnt:1,dtor:n},i=(...c)=>{o.cnt++;const u=o.a;o.a=0;try{return _(u,o.b,...c)}finally{o.a=u,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--o.cnt===0&&(o.dtor(o.a,o.b),o.a=0,E.unregister(o))},E.register(i,o,o),i}function k(e){const t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}function V(e){var t=a(e)?0:b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=s;const _=r.debug_panic(t,n);if(_[1])throw k(_[0])}function W(){return r.getBuildTimeInfo()}function U(e,t,n){r.wasm_bindgen__convert__closures_____invoke__ha235f3ea55a06a09(e,t,n)}function L(e,t,n,_){r.wasm_bindgen__convert__closures_____invoke__h1a2f20be69ab8911(e,t,n,_)}const O=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_queryengine_free(e>>>0,1));class M{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_queryengine_free(t,0)}disconnect(t,n){const _=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s,i=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s;return r.queryengine_disconnect(this.__wbg_ptr,_,o,i,c)}startTransaction(t,n,_){const o=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,f=b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_startTransaction(this.__wbg_ptr,o,i,c,u,f,d)}commitTransaction(t,n,_){const o=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,f=b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_commitTransaction(this.__wbg_ptr,o,i,c,u,f,d)}rollbackTransaction(t,n,_){const o=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,f=b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_rollbackTransaction(this.__wbg_ptr,o,i,c,u,f,d)}constructor(t,n,_){const o=r.queryengine_new(t,n,_);if(o[2])throw k(o[1]);return this.__wbg_ptr=o[0]>>>0,O.register(this,this.__wbg_ptr,this),this}query(t,n,_,o){const i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s,u=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),f=s;var d=a(_)?0:b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),h=s;const v=b(o,r.__wbindgen_malloc,r.__wbindgen_realloc),D=s;return r.queryengine_query(this.__wbg_ptr,i,c,u,f,d,h,v,D)}trace(t){const n=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s;return r.queryengine_trace(this.__wbg_ptr,n,_)}connect(t,n){const _=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s,i=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s;return r.queryengine_connect(this.__wbg_ptr,_,o,i,c)}metrics(t){const n=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s;return r.queryengine_metrics(this.__wbg_ptr,n,_)}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);function z(e,t){return Error(w(e,t))}function P(e){return Number(e)}function G(e,t){const n=String(t),_=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s;l().setInt32(e+4*1,o,!0),l().setInt32(e+4*0,_,!0)}function Q(e,t){const n=t,_=typeof n=="bigint"?n:void 0;l().setBigInt64(e+8*1,a(_)?BigInt(0):_,!0),l().setInt32(e+4*0,!a(_),!0)}function H(e){const t=e,n=typeof t=="boolean"?t:void 0;return a(n)?16777215:n?1:0}function J(e,t){const n=I(t),_=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s;l().setInt32(e+4*1,o,!0),l().setInt32(e+4*0,_,!0)}function X(e,t){return e in t}function Y(e){return typeof e=="bigint"}function K(e){return typeof e=="function"}function Z(e){const t=e;return typeof t=="object"&&t!==null}function ee(e){return typeof e=="string"}function te(e){return e===void 0}function ne(e,t){return e===t}function re(e,t){return e==t}function _e(e,t){const n=t,_=typeof n=="number"?n:void 0;l().setFloat64(e+8*1,a(_)?0:_,!0),l().setInt32(e+4*0,!a(_),!0)}function oe(e,t){const n=t,_=typeof n=="string"?n:void 0;var o=a(_)?0:b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s;l().setInt32(e+4*1,i,!0),l().setInt32(e+4*0,o,!0)}function ce(e,t){throw new Error(w(e,t))}function ie(e){e._wbg_cb_unref()}function ue(){return g(function(e,t,n){return e.call(t,n)},arguments)}function se(){return g(function(e,t){return e.call(t)},arguments)}function be(e){return e.crypto}function fe(e){return e.done}function ae(e){return Object.entries(e)}function ge(e,t,n){const _=e.exec(w(t,n));return a(_)?0:x(_)}function le(){return g(function(e,t){e.getRandomValues(t)},arguments)}function de(e){return e.getTime()}function we(e,t){return e[t>>>0]}function pe(){return g(function(e,t){return e[t]},arguments)}function xe(){return g(function(e,t){return Reflect.get(e,t)},arguments)}function ye(e,t){return e[t]}function me(){return g(function(e,t){return Reflect.has(e,t)},arguments)}function he(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function Te(e){let t;try{t=e instanceof Map}catch{t=!1}return t}function Ae(e){let t;try{t=e instanceof Promise}catch{t=!1}return t}function Se(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function Fe(e){return Array.isArray(e)}function Ie(e){return Number.isSafeInteger(e)}function qe(){return Symbol.iterator}function Ee(e){return Object.keys(e)}function ke(e){return e.length}function Oe(e){return e.length}function Me(e){return e.msCrypto}function ve(){return new Date}function De(){return new Object}function Re(e,t,n,_){return new RegExp(w(e,t),w(n,_))}function je(e,t){try{var n={a:e,b:t},_=(i,c)=>{const u=n.a;n.a=0;try{return L(u,n.b,i,c)}finally{n.a=u}};return new Promise(_)}finally{n.a=n.b=0}}function Be(e){return new Uint8Array(e)}function Ue(){return new Map}function Le(){return new Array}function Ne(e,t){return new Uint8Array(q(e,t))}function Ce(e,t){return new T(w(e,t))}function $e(e){return new Uint8Array(e>>>0)}function Ve(){return g(function(e){return e.next()},arguments)}function We(e){return e.next}function ze(e){return e.node}function Pe(){return Date.now()}function Ge(e){return e.now()}function Qe(){return g(function(){return Date.now()},arguments)}function He(e){return e.process}function Je(e,t,n){Uint8Array.prototype.set.call(q(e,t),n)}function Xe(e,t){return e.push(t)}function Ye(e){return e.queueMicrotask}function Ke(e){queueMicrotask(e)}function Ze(){return g(function(e,t){e.randomFillSync(t)},arguments)}function et(){return g(function(){return module.require},arguments)}function tt(e){return Promise.resolve(e)}function nt(e,t){return setTimeout(e,t>>>0)}function rt(e,t,n){e[t]=n}function _t(e,t,n){return e.set(t,n)}function ot(e,t,n){e[t>>>0]=n}function ct(){return g(function(e,t,n){return Reflect.set(e,t,n)},arguments)}function it(){const e=typeof global>"u"?null:global;return a(e)?0:x(e)}function ut(){const e=typeof globalThis>"u"?null:globalThis;return a(e)?0:x(e)}function st(){const e=typeof self>"u"?null:self;return a(e)?0:x(e)}function bt(){const e=typeof window>"u"?null:window;return a(e)?0:x(e)}function ft(e,t,n){return e.subarray(t>>>0,n>>>0)}function at(e,t){return e.then(t)}function gt(e,t,n){return e.then(t,n)}function lt(e){return e.valueOf()}function dt(e){return e.value}function wt(e){return e.versions}function pt(e,t){return w(e,t)}function xt(e,t){return B(e,t,r.wasm_bindgen__closure__destroy__hf9ae564cf31e91c2,U)}function yt(e){return BigInt.asUintN(64,e)}function mt(e){return e}function ht(e,t){return q(e,t)}function Tt(e){return e}function At(){const e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}export{M as QueryEngine,z as __wbg_Error_e83987f665cf5504,P as __wbg_Number_bb48ca12f395cd08,G as __wbg_String_8f0eb39a4a4c2f66,Q as __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd,H as __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68,J as __wbg___wbindgen_debug_string_df47ffb5e35e6763,X as __wbg___wbindgen_in_bb933bd9e1b3bc0f,Y as __wbg___wbindgen_is_bigint_cb320707dcd35f0b,K as __wbg___wbindgen_is_function_ee8a6c5833c90377,Z as __wbg___wbindgen_is_object_c818261d21f283a4,ee as __wbg___wbindgen_is_string_fbb76cb2940daafd,te as __wbg___wbindgen_is_undefined_2d472862bd29a478,ne as __wbg___wbindgen_jsval_eq_6b13ab83478b1c50,re as __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147,_e as __wbg___wbindgen_number_get_a20bf9b85341449d,oe as __wbg___wbindgen_string_get_e4f06c90489ad01b,ce as __wbg___wbindgen_throw_b855445ff6a94295,ie as __wbg__wbg_cb_unref_2454a539ea5790d9,ue as __wbg_call_525440f72fbfc0ea,se as __wbg_call_e762c39fa8ea36bf,be as __wbg_crypto_805be4ce92f1e370,fe as __wbg_done_2042aa2670fb1db1,ae as __wbg_entries_e171b586f8f6bdbf,ge as __wbg_exec_fdeec61d47617356,le as __wbg_getRandomValues_f6a868620c8bab49,de as __wbg_getTime_14776bfb48a1bff9,we as __wbg_get_7bed016f185add81,pe as __wbg_get_ece95cf6585650d9,xe as __wbg_get_efcb449f58ec27c2,ye as __wbg_get_with_ref_key_1dc361bd10053bfe,me as __wbg_has_787fafc980c3ccdb,he as __wbg_instanceof_ArrayBuffer_70beb1189ca63b38,Te as __wbg_instanceof_Map_8579b5e2ab5437c7,Ae as __wbg_instanceof_Promise_001fdd42afa1b7ef,Se as __wbg_instanceof_Uint8Array_20c8e73002f7af98,Fe as __wbg_isArray_96e0af9891d0945d,Ie as __wbg_isSafeInteger_d216eda7911dde36,qe as __wbg_iterator_e5822695327a3c39,Ee as __wbg_keys_b4d27b02ad14f4be,ke as __wbg_length_69bca3cb64fc8748,Oe as __wbg_length_cdd215e10d9dd507,Me as __wbg_msCrypto_2ac4d17c4748234a,ve as __wbg_new_0_f9740686d739025c,De as __wbg_new_1acc0b6eea89d040,Re as __wbg_new_23fa8b12a239f036,je as __wbg_new_3c3d849046688a66,Be as __wbg_new_5a79be3ab53b8aa5,Ue as __wbg_new_68651c719dcda04e,Le as __wbg_new_e17d9f43105b08be,Ne as __wbg_new_from_slice_92f4d78ca282a2d2,Ce as __wbg_new_no_args_ee98eee5275000a4,$e as __wbg_new_with_length_01aa0dc35aa13543,Ve as __wbg_next_020810e0ae8ebcb0,We as __wbg_next_2c826fe5dfec6b6a,ze as __wbg_node_ecc8306b9857f33d,Pe as __wbg_now_793306c526e2e3b6,Ge as __wbg_now_7fd00a794a07d388,Qe as __wbg_now_b3f7572f6ef3d3a9,He as __wbg_process_5cff2739921be718,Je as __wbg_prototypesetcall_2a6620b6922694b2,Xe as __wbg_push_df81a39d04db858c,Ye as __wbg_queueMicrotask_5a8a9131f3f0b37b,Ke as __wbg_queueMicrotask_6d79674585219521,Ze as __wbg_randomFillSync_d3c85af7e31cf1f8,et as __wbg_require_0c566c6f2eef6c79,tt as __wbg_resolve_caf97c30b83f7053,nt as __wbg_setTimeout_5d6a1d4fc51ea450,rt as __wbg_set_3f1d0b984ed272ed,_t as __wbg_set_907fb406c34a251d,ot as __wbg_set_c213c871859d6500,ct as __wbg_set_c2abbebe8b9ebee1,$ as __wbg_set_wasm,it as __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e,ut as __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac,st as __wbg_static_accessor_SELF_6fdf4b64710cc91b,bt as __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2,ft as __wbg_subarray_480600f3d6a9f26c,at as __wbg_then_4f46f6544e6b4a28,gt as __wbg_then_70d05cf780a18d77,lt as __wbg_valueOf_9eee4828c11458ca,dt as __wbg_value_692627309814bb8c,wt as __wbg_versions_a8e5a362e1f16442,pt as __wbindgen_cast_2241b6af4c4b2941,xt as __wbindgen_cast_3d295003f458b237,yt as __wbindgen_cast_4625c577ab2ec9ee,mt as __wbindgen_cast_9ae0607507abb057,ht as __wbindgen_cast_cb9088102bce6b30,Tt as __wbindgen_cast_d6cd19b81560fd6e,At as __wbindgen_init_externref_table,V as debug_panic,W as getBuildTimeInfo};