1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82602,362790,54250,889333,321890,e=>{"use strict";let t;var n,r=e.i(765686),i=e.i(159514),a=e.i(294100),o=e.i(343699),s=e.i(174002),u=e.i(756259),l=e.i(142923),f=class extends s.Subscribable{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.hashKey)(t.mutationKey)!==(0,o.hashKey)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??(0,l.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){u.notifyManager.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function d(e,t){let n=(0,i.useQueryClient)(t),[r]=a.useState(()=>new f(n,e));a.useEffect(()=>{r.setOptions(e)},[r,e]);let s=a.useSyncExternalStore(a.useCallback(e=>r.subscribe(u.notifyManager.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=a.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(o.noop)},[r]);if(s.error&&(0,o.shouldThrowError)(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}e.s(["useMutation",0,d],362790);var c=e.i(557922);e.i(392092),e.i(383530),e.i(631931),e.i(923750);var p=e.i(259390),y=e.i(560600),m=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),h=function(){function e(e){this.generateIdentifier=e,this.kv=new m}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),g=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return g(t,e),t.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(h),v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o};function A(e,t){Object.entries(e).forEach(function(e){var n=v(e,2),r=n[0];return t(n[1],r)})}function I(e,t){return -1!==e.indexOf(t)}function k(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var w=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return function(e,t){var n=function(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);for(var r=0;r<n.length;r++){var i=n[r];if(t(i))return i}}(this.transfomers,function(t){return t.isApplicable(e)}
1)},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),O=function(e){return void 0===e},S=function(e){return"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype)},M=function(e){return S(e)&&0===Object.keys(e).length},E=function(e){return Array.isArray(e)},C=function(e){return e instanceof Map},T=function(e){return e instanceof Set},D=function(e){return"Symbol"===Object.prototype.toString.call(e).slice(8,-1)},B=function(e){return"number"==typeof e&&isNaN(e)},R=function(e){return"boolean"==typeof e||null===e||O(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||D(e)},U=function(e){return e.replace(/\./g,"\\.")},P=function(e){return e.map(String).map(U).join(".")},L=function(e){for(var t=[],n="",r=0;r<e.length;r++){var i=e.charAt(r);if("\\"===i&&"."===e.charAt(r+1)){n+=".",r++;continue}if("."===i){t.push(n),n="";continue}n+=i}var a=n;return t.push(a),t},j=function(){return(j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},x=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},_=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};function F(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var K=[F(O,"undefined",function(){return null},function(){}),F(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"u">typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),F(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),F(function(e){return e instanceof Error},"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n},function(e,t){var n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(t){n[t]=e[t]}),n}),F(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){return new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))}),F(T,"set",function(e){return _([],x(e.values()))},function(e){return new Set(e)}),F(C,"map",function(e){return _([],x(e.entries()))},function(e){return new Map(e)}),F(function(e){var t;return B(e)||(t=e)===1/0||t===-1/0},"number",function(e){return B(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),F(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),F(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function N(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var $=N(function(e,t){return!!D(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error("Trying to deserialize unknown symbol");return r}),z=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),V=N(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return _([],x(e))},function(e,t){var n=z[t[1]];if(!n)throw Error("Trying to deserialize unknown typed array");return new n(e)});function q(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var H=N(q,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return j({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);
1if(!r)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),J=N(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Q=[H,$,J,V],G=function(e,t){var n=k(Q,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=k(K,function(n){return n.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},Y={};K.forEach(function(e){Y[e.annotation]=e});var W=function(e,t,n){if(E(t))switch(t[0]){case"symbol":return $.untransform(e,t,n);case"class":return H.untransform(e,t,n);case"custom":return J.untransform(e,t,n);case"typed-array":return V.untransform(e,t,n);default:throw Error("Unknown transformation: "+t)}var r=Y[t];if(!r)throw Error("Unknown transformation: "+t);return r.untransform(e,n)},X=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function Z(e){if(I(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(I(e,"prototype"))throw Error("prototype is not allowed as a property");if(I(e,"constructor"))throw Error("constructor is not allowed as a property")}var ee=function(e,t){Z(t);for(var n=0;n<t.length;n++){var r=t[n];if(T(e))e=X(e,+r);else if(C(e)){var i=+r,a=0==+t[++n]?"key":"value",o=X(e,i);switch(a){case"key":e=o;break;case"value":e=e.get(o)}}else e=e[r]}return e},et=function(e,t,n){if(Z(t),0===t.length)return n(e);for(var r=e,i=0;i<t.length-1;i++){var a=t[i];if(E(r))r=r[+a];else if(S(r))r=r[a];else if(T(r)){var o=+a;r=X(r,o)}else if(C(r)){if(i===t.length-2)break;var o=+a,s=0==+t[++i]?"key":"value",u=X(r,o);switch(s){case"key":r=u;break;case"value":r=r.get(u)}}}var l=t[t.length-1];if(E(r)?r[+l]=n(r[+l]):S(r)&&(r[l]=n(r[l])),T(r)){var f=X(r,+l),d=n(f);f!==d&&(r.delete(f),r.add(d))}if(C(r)){var o=+t[t.length-2],c=X(r,o),s=0==+l?"key":"value";switch(s){case"key":var p=n(c);r.set(p,r.get(c)),p!==c&&r.delete(c);break;case"value":r.set(c,n(r.get(c)))}}return e},en=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},er=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},ei=function(e,t,n,r,i,a,o){void 0===i&&(i=[]),void 0===a&&(a=[]),void 0===o&&(o=new Map);var s,u=R(e);if(!u){l=i,(f=t.get(e))?f.push(l):t.set(e,[l]);var l,f,d=o.get(e);if(d)return r?{transformedValue:null}:d}if(!(S(e)||E(e)||C(e)||T(e)||q(e,n))){var c=G(e,n),p=c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e};return u||o.set(e,p),p}if(I(a,e))return{transformedValue:null};var y=G(e,n),m=null!=(s=null==y?void 0:y.value)?s:e,h=E(m)?[]:{},g={};A(m,function(s,u){var l=ei(s,t,n,r,er(er([],en(i)),[u]),er(er([],en(a)),[e]),o);h[u]=l.transformedValue,E(l.annotations)?g[u]=l.annotations:S(l.annotations)&&A(l.annotations,function(e,t){g[U(u)+"."+t]=e})});var b=M(g)?{transformedValue:h,annotations:y?[y.type]:void 0}:{transformedValue:h,annotations:y?[y.type,g]:g};return u||o.set(e,b),b};function ea(e){return Object.prototype.toString.call(e).slice(8,-1)}function eo(e){return"Array"===ea(e)}var es=function(){return(es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},el=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},ef=function(){function e(e){var t=(void 0===e?{}:e).dedupe;this.classRegistry=new b,this.symbolRegistry=new h(function(e){var t;return null!=(t=e.description)?t:""}),this.customTransformerRegistry=new w,this.allowedErrorProps=[],this.dedupe=void 0!==t&&t}return e.prototype.serialize=function(e){var t,n,r,i=new Map,a=ei(e,i,this,this.dedupe),o={json:a.transformedValue};
1a.annotations&&(o.meta=es(es({},o.meta),{values:a.annotations}));var s=(t=this.dedupe,n={},r=void 0,(i.forEach(function(e){if(!(e.length<=1)){t||(e=e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length}));var i=en(e),a=i[0],o=i.slice(1);0===a.length?r=o.map(P):n[P(a)]=o.map(P)}}),r)?M(n)?[r]:[r,n]:M(n)?void 0:n);return s&&(o.meta=es(es({},o.meta),{referentialEqualities:s})),o},e.prototype.deserialize=function(e){var t,n,r,i=e.json,a=e.meta,o=function e(t,n={}){return eo(t)?t.map(t=>e(t,n)):!function(e){if("Object"!==ea(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((r,i)=>{var a;let o;if(eo(n.props)&&!n.props.includes(i))return r;let s=e(t[i],n);return a=n.nonenumerable,"enumerable"==(o=({}).propertyIsEnumerable.call(t,i)?"enumerable":"nonenumerable")&&(r[i]=s),a&&"nonenumerable"===o&&Object.defineProperty(r,i,{value:s,enumerable:!1,writable:!0,configurable:!0}),r},{})}(i);return(null==a?void 0:a.values)&&(t=o,n=a.values,r=this,function e(t,n,r){if(void 0===r&&(r=[]),t){if(!E(t))return void A(t,function(t,i){return e(t,n,er(er([],en(r)),en(L(i))))});var i=en(t,2),a=i[0],o=i[1];o&&A(o,function(t,i){e(t,n,er(er([],en(r)),en(L(i))))}),n(a,r)}}(n,function(e,n){t=et(t,n,function(t){return W(t,e,r)})}),o=t),(null==a?void 0:a.referentialEqualities)&&(o=function(e,t){function n(t,n){var r=ee(e,L(n));t.map(L).forEach(function(t){e=et(e,t,function(){return r})})}if(E(t)){var r=en(t,2),i=r[0],a=r[1];i.forEach(function(t){e=et(e,L(t),function(){return e})}),a&&A(a,n)}else A(t,n);return e}(o,a.referentialEqualities)),o},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(es({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.allowedErrorProps).push.apply(e,el([],eu(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();function ed(e){let{json:t,meta:n}=ef.serialize(e);return{data:t,meta:n}}function ec(e,t){return ef.deserialize({json:e,meta:t})}ef.serialize,ef.deserialize,ef.stringify,ef.parse,ef.registerClass,ef.registerCustom,ef.registerSymbol,ef.allowErrorProps,ef.registerCustom({isApplicable:e=>e instanceof y.default||(null==e?void 0:e.toStringTag)==="[object Decimal]",serialize:e=>e.toJSON(),deserialize:e=>new y.default(e)},"Decimal"),ef.registerCustom({isApplicable:e=>p.Buffer.isBuffer(e),serialize:e=>e.toString("base64"),deserialize:e=>p.Buffer.from(e,"base64")},"Bytes"),e.s(["deserialize",0,ec,"serialize",0,ed],54250);let ep="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ey=new Uint8Array(16),em=[];for(let e=0;e<256;++e)em.push((e+256).toString(16).slice(1));let eh=function(e,n,r){if(ep&&!n&&!e)return ep();let i=(e=e||{}).random??e.rng?.()??function(){if(!t){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(ey)}();if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){if((r=r||0)<0||r+16>n.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)n[r+e]=i[e];return n}return function(e,t=0){return(em[e[t+0]]+em[e[t+1]]+em[e[t+2]]+em[e[t+3]]+"-"+em[e[t+4]]+em[e[t+5]]+"-"+em[e[t+6]]+em[e[t+7]]+"-"+em[e[t+8]]+em[e[t+9]]+"-"+em[e[t+10]]+em[e[t+11]]+em[e[t+12]]+em[e[t+13]]+em[e[t+14]]+em[e[t+15]]).toLowerCase()}(i)};var eg=Object.defineProperty,eb=Object.defineProperties,ev=Object.getOwnPropertyDescriptors,eA=Object.getOwnPropertySymbols,eI=Object.prototype.hasOwnProperty,ek=Object.prototype.propertyIsEnumerable,ew=(e,t,n)=>t in e?eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eO=(e,t)=>{for(var n in t||(t={}
1))eI.call(t,n)&&ew(e,n,t[n]);if(eA)for(var n of eA(t))ek.call(t,n)&&ew(e,n,t[n]);return e},eS=(e,t)=>eb(e,ev(t)),eM=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function eE(e){return"[object Object]"===Object.prototype.toString.call(e)}function eC(e){return e.charAt(0).toLowerCase()+e.slice(1)}function eT(e){if(Array.isArray(e))return e.map(e=>eT(e));if("object"==typeof e){if(!e||!function(e){if(!1===eE(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!1!==eE(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}(e))return e;let t={};for(let n of Object.keys(e))t[n]=eT(e[n]);return t}return e}function eD(e,t,n,r=!1){var i,a;let o=r?e.typeDefs:e.models;return null==(a=null==(i=null==o?void 0:o[eC(t)])?void 0:i.fields)?void 0:a[n]}function eB(e,t){var n;return null==(n=e.models[eC(t)])?void 0:n.fields}function eR(e,t,n,r,i,a,o,s){return eM(this,null,function*(){if(n&&("object"==typeof n||Array.isArray(n))&&t.startsWith("find"))return yield function e(t,n,r,i,a,o,s){return eM(this,null,function*(){let u=n,l=!1,f=new eN(o,{create:(e,n)=>{if(e===t&&Array.isArray(u)){let e=eU(t,u,n,o,s);e&&(u=e,l=!0)}},createMany:(e,n)=>{if(e===t&&(null==n?void 0:n.data)&&Array.isArray(u))for(let e of eF(n.data)){let n=eU(t,u,e,o,s);n&&(u=n,l=!0)}},update:(e,n)=>{if(e===t&&!Array.isArray(u)){let r=eP(t,u,e,n,o,s);r&&(u=r,l=!0)}},upsert:(e,n)=>{if(e===t&&(null==n?void 0:n.where)&&(null==n?void 0:n.create)&&(null==n?void 0:n.update)){let r=function(e,t,n,r,i,a){let o=!1,s=t;if(Array.isArray(s)){let t=s.findIndex(e=>eL(n,e,r.where,i));if(t>=0){let u=eP(e,s[t],n,{where:r.where,data:r.update},i,a);u&&(s=[...s.slice(0,t),u,...s.slice(t+1)],o=!0)}else{let t=eU(e,s,r.create,i,a);t&&(s=t,o=!0)}}else{let t=eP(e,s,n,{where:r.where,data:r.update},i,a);t&&(s=t,o=!0)}return o?s:void 0}(t,u,e,n,o,s);r&&(u=r,l=!0)}},delete:(e,n)=>{if(e===t){let r=function(e,t,n,r,i,a){if(!t||!r||e!==n)return;let o=!1,s=t;if(Array.isArray(t))for(let u of t)eL(n,u,r,i)&&(s=s.filter(e=>e!==u),o=!0,a&&console.log(`Optimistic delete for ${e}:`,u));else eL(n,t,r,i)&&(s=null,o=!0,a&&console.log(`Optimistic delete for ${e}:`,t));return o?s:void 0}(t,u,e,n,o,s);r&&(u=r,l=!0)}}});yield f.visit(r,i,a);let d=eB(o,t);if(Array.isArray(u)){let n=!1;for(let f=0;f<u.length;f++){let d=u[f];if(!d||"object"!=typeof d||d.$optimistic)continue;let c=yield e(t,d,r,i,a,o,s);c&&"object"==typeof c&&(n||(u=[...u],n=!0),u[f]=c,l=!0)}}else if(null!==u&&"object"==typeof u)for(let[t,n]of Object.entries(eO({},u))){let f=d[t];if(!(null==f?void 0:f.isDataModel))continue;let c=yield e(f.type,n,r,i,a,o,s);c&&"object"==typeof c&&(u=eS(eO({},u),{[t]:c}),l=!0)}return l?u:void 0})}(e,n,r,i,a,o,s)})}function eU(e,t,n,r,i){if(!n)return;let a=eB(r,e);if(!a)return;let o={},s=Object.keys(n);return Object.entries(a).forEach(([e,t])=>{var r,i,a,u;if(t.isDataModel&&n[e])return void ej(t,o,n[e]);if(s.includes(e))o[e]=eT(n[e]);else{let n=null==(r=t.attributes)?void 0:r.find(e=>"@default"===e.name);"DateTime"===t.type?(n||(null==(i=t.attributes)?void 0:i.some(e=>"@updatedAt"===e.name)))&&(o[e]=new Date):(null==(u=null==(a=null==n?void 0:n.args)?void 0:a[0])?void 0:u.value)!==void 0&&(o[e]=n.args[0].value)}}),eK(r,e,!1).forEach(e=>{if(void 0===o[e.name])if("Int"===e.type||"BigInt"===e.type){let n=Array.isArray(t)?Math.max(...[...t].map(t=>{let n=parseInt(t[e.name]);return isNaN(n)?0:n})):0;o[e.name]=n+1}else o[e.name]=eh()}),o.$optimistic=!0,i&&console.log(`Optimistic create for ${e}:`,o),[o,...Array.isArray(t)?t:[]]}function eP(e,t,n,r,i,a){if(!t||"object"!=typeof t||!(null==r?void 0:r.where)||"object"!=typeof r.where||!(null==r?void 0:r.data)||"object"!=typeof r.data||!eL(n,t,r.where,i))return;let o=eB(i,e);if(!o)return;let s=!1,u=t;for(let[n,i]of Object.entries(r.data)){let r=o[n];r&&(!r.isDataModel||(null==i?void 0:i.connect))&&(s||(u=eO({},t)),r.isDataModel?ej(r,u,i):u[n]=eT(i),u.$optimistic=!0,s=!0,a&&console.log(`Optimistic update for ${e}:`,u))}return s?u:void 0}function eL(e,t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return!1;let i=eK(r,e,!1);return 0!==i.length&&i.every(e=>t[e.name]===n[e.name])}
1function ej(e,t,n){if((null==n?void 0:n.connect)&&e.foreignKeyMapping)for(let[r,i]of Object.entries(e.foreignKeyMapping))r in n.connect&&(t[i]=n.connect[r])}var ex=class{constructor(e,t){this.modelMeta=e,this.callback=t}doVisit(e,t,n,r){let i,a;if((!this.callback.field||!1!==this.callback.field(e,t,n,r))&&r&&"object"==typeof r&&(r.select?(i=r.select,a="select"):r.include&&(i=r.include,a="include"),i&&"object"==typeof i))for(let[r,o]of Object.entries(i))if("_count"===r&&"object"==typeof o&&o)this.doVisit(e,t,n,o);else{let t=eD(this.modelMeta,e,r);t&&this.doVisit(t.type,t,a,o)}}visit(e,t){this.doVisit(e,void 0,void 0,t)}},e_=["create","createMany","createManyAndReturn","connectOrCreate","update","updateMany","updateManyAndReturn","upsert","connect","disconnect","set","delete","deleteMany"];function eF(e){return null==e?[]:Array.isArray(e)?e:[e]}function eK(e,t,n=!1){var r,i;let a=Object.values(null!=(i=null==(r=e.models[eC(t)])?void 0:r.uniqueConstraints)?i:{});if(0===a.length){if(n)throw Error(`Model ${t} does not have any id field`);return[]}return a[0].fields.map(n=>(function(e,t,n,r=!1){let i=eD(e,t,n,r);if(!i)throw Error(`Field ${t}.${n} cannot be resolved`);return i})(e,t,n))}var eN=class{constructor(e,t){this.modelMeta=e,this.callback=t}isPrismaWriteAction(e){return e_.includes(e)}visit(e,t,n){return eM(this,null,function*(){if(!n)return;let r=n;switch(t){case"create":r=r.data;break;case"delete":case"deleteMany":r=r.where}yield this.doVisit(e,t,r,void 0,void 0,[])})}doVisit(e,t,n,r,i,a){return eM(this,null,function*(){if(!n)return;let o=void 0==i,s={parent:r,field:i,nestingPath:[...a]},u=(e,t,n,r=!1)=>eS(eO({},s),{nestingPath:[...s.nestingPath,{field:e,model:t,where:n,unique:r}]});switch(t){case"create":for(let r of this.enumerateReverse(n)){let n,a=u(i,e,{});if(this.callback.create&&(n=yield this.callback.create(e,r,a)),!1!==n){let i="object"==typeof n?n:r;yield this.visitSubPayload(e,t,i,a.nestingPath)}}break;case"createMany":case"createManyAndReturn":if(n){let r,a=u(i,e,{});if(this.callback.createMany&&(r=yield this.callback.createMany(e,n,a)),!1!==r){let i="object"==typeof r?r:n.data;yield this.visitSubPayload(e,t,i,a.nestingPath)}}break;case"connectOrCreate":for(let r of this.enumerateReverse(n)){let n,a=u(i,e,r.where);if(this.callback.connectOrCreate&&(n=yield this.callback.connectOrCreate(e,r,a)),!1!==n){let i="object"==typeof n?n:r.create;yield this.visitSubPayload(e,t,i,a.nestingPath)}}break;case"connect":if(this.callback.connect)for(let t of this.enumerateReverse(n)){let n=u(i,e,t,!0);yield this.callback.connect(e,t,n)}break;case"disconnect":if(this.callback.disconnect)for(let t of this.enumerateReverse(n)){let n=u(i,e,t,"object"==typeof t);yield this.callback.disconnect(e,t,n)}break;case"set":if(this.callback.set)for(let t of this.enumerateReverse(n)){let n=u(i,e,t,!0);yield this.callback.set(e,t,n)}break;case"update":for(let r of this.enumerateReverse(n)){let n,a=u(i,e,r.where);if(this.callback.update&&(n=yield this.callback.update(e,r,a)),!1!==n){let i="object"==typeof n?n:"object"==typeof r.data?r.data:r;yield this.visitSubPayload(e,t,i,a.nestingPath)}}break;case"updateMany":case"updateManyAndReturn":for(let r of this.enumerateReverse(n)){let n,a=u(i,e,r.where);if(this.callback.updateMany&&(n=yield this.callback.updateMany(e,r,a)),!1!==n){let i="object"==typeof n?n:r;yield this.visitSubPayload(e,t,i,a.nestingPath)}}break;case"upsert":for(let r of this.enumerateReverse(n)){let n,a=u(i,e,r.where);this.callback.upsert&&(n=yield this.callback.upsert(e,r,a)),!1!==n&&("object"==typeof n?yield this.visitSubPayload(e,t,n,a.nestingPath):(yield this.visitSubPayload(e,t,r.create,a.nestingPath),yield this.visitSubPayload(e,t,r.update,a.nestingPath)))}break;case"delete":if(this.callback.delete)for(let t of this.enumerateReverse(n)){let n=u(i,e,o?t.where:t);yield this.callback.delete(e,t,n)}break;case"deleteMany":if(this.callback.deleteMany)for(let t of this.enumerateReverse(n)){let n=u(i,e,o?t.where:t);yield this.callback.deleteMany(e,t,n)}break;default:throw Error(`unhandled action type ${t}`)}})}visitSubPayload(e,t,n,r){return eM(this,null,function*(){for(let i of eF(n)){for(let n of i?Object.keys(i):[]){let a=eD(this.modelMeta,e,n);if(a)if(a.isDataModel){if(i[n])for(let[e,t]of Object.entries(i[n]))this.isPrismaWriteAction(e)&&t&&(yield this.doVisit(a.type,e,t,i[n],a,[...r]))}else this.callback.field&&(yield this.callback.field(a,t,i[n],{parent:i,nestingPath:r,field:a}))}}})}*enumerateReverse(e){if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)yield e[t];else yield e}};function e$(e,t,n){let r=new Set;return r.add(e),new ex(t,{field:e=>(r.add(e),!0)}).visit(e,n),[...r]}function ez(e,t,n,r){return eM(this,null,function*(){let i=new Set;if(i.add(e),n){let a=e=>void i.add(e),o=e=>{let t=new Set;(function e(t,n,r,i){var a;if(i.has(t))return;i.add(t);
1let o=null==(a=n.deleteCascade)?void 0:a[eC(t)];o&&o.forEach(t=>{r.add(t),e(t,n,r,i)})})(e,r,t,new Set),t.forEach(e=>a(e))},s=new eN(r,{create:a,createMany:a,connectOrCreate:a,connect:a,disconnect:a,set:a,update:a,updateMany:a,upsert:a,delete:e=>{a(e),o(e)},deleteMany:e=>{a(e),o(e)}});yield s.visit(e,t,n)}return i.forEach(e=>{!function e(t,n,r){var i;let a=null==(i=function(e,t,n=!1){let r=e.models[eC(t)];if(!r&&n)throw Error(`Unable to load info for ${t}`);return r}(n,t))?void 0:i.baseTypes;a&&a.forEach(t=>{r.add(t),e(t,n,r)})}(e,r,i)}),[...i]})}e.s(["applyMutation",0,eR,"getMutatedModels",0,ez,"getReadModels",0,e$],889333);var eV=Object.defineProperty,eq=Object.defineProperties,eH=Object.getOwnPropertyDescriptors,eJ=Object.getOwnPropertySymbols,eQ=Object.prototype.hasOwnProperty,eG=Object.prototype.propertyIsEnumerable,eY=(e,t,n)=>t in e?eV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eW=(e,t)=>{for(var n in t||(t={}))eQ.call(t,n)&&eY(e,n,t[n]);if(eJ)for(var n of eJ(t))eG.call(t,n)&&eY(e,n,t[n]);return e},eX=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),eZ="/api/model",e0="zenstack";function e1(t,n,r,i){return eX(this,null,function*(){var a,o,s;let u=null!=r?r:"function"==typeof fetch?fetch:(yield e.A(21008)).default,l=yield u(t,n);if(!l.ok){let e=e6((yield l.text()));if(!1!==i&&(null==(a=e.error)?void 0:a.prisma)&&(null==(o=e.error)?void 0:o.code)==="P2004"&&(null==(s=e.error)?void 0:s.reason)==="RESULT_NOT_READABLE")return;let t=Error("An error occurred while fetching the data.");throw t.info=e.error,t.status=l.status,t}let f=yield l.text();try{return e6(f).data}catch(e){throw console.error("Unable to deserialize data:",f),e}})}function e2(e,t,n,r={infinite:!1,optimisticUpdate:!0}){if(!t)throw Error("Invalid urlOrOperation");let i=t.split("/").pop();return[e0,e,i,n,{infinite:r.infinite,optimisticUpdate:!r.infinite&&r.optimisticUpdate}]}function e6(e){var t;let n=JSON.parse(e);if("object"!=typeof n||null==n||!n.data||null==(t=null==n?void 0:n.meta)||!t.serialization)return n;{let e=ec(n.data,n.meta.serialization);return eq(eW({},n),eH({data:e}))}}function e5(e,t){if(!t)return e;let{data:n,meta:r}=ed(t),i=`${e}?q=${encodeURIComponent(JSON.stringify(n))}`;return r&&(i+=`&meta=${encodeURIComponent(JSON.stringify({serialization:r}))}`),i}function e8(e,t,n,r,i=!1){return eX(this,null,function*(){let a=yield ez(e,t,n,r);return({queryKey:n})=>{var o,s;let u,[l,f,,d]=n;return!!(a.includes(f)||d&&(o=f,s=a,u=e$(o,r,d),s.some(e=>u.includes(e))))&&(i&&console.log(`Invalidating query ${JSON.stringify(n)} due to mutation "${e}.${t}"`),!0)}})}var e3=(0,a.createContext)({endpoint:eZ,fetch:void 0});e3.Provider,e.s(["getHooksContext",0,function(){let e=(0,a.useContext)(e3),{endpoint:t}=e;return eW({endpoint:null!=t?t:eZ},((e,t)=>{var n={};for(var r in e)eQ.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eJ)for(var r of eJ(e))0>t.indexOf(r)&&eG.call(e,r)&&(n[r]=e[r]);return n})(e,["endpoint"]))},"useInfiniteModelQuery",0,function(e,t,n,i,a){let o=e2(e,t,n,{infinite:!0,optimisticUpdate:!1});return eW({queryKey:o},(0,r.useInfiniteQuery)(eW({queryKey:o,queryFn:({pageParam:e,signal:r})=>e1(e5(t,null!=e?e:n),{signal:r},a,!1),initialPageParam:n},i)))},"useModelMutation",0,function(e,t,n,r,o,s,u){let l,f,c=(0,i.useQueryClient)(),p=(l=eW({},o),f={mutationFn:e=>e1("DELETE"===t?e5(n,e):n,eW({method:t},"DELETE"!==t&&{headers:{"content-type":"application/json"},body:function(e){let{data:t,meta:n}=ed(e);return n?JSON.stringify(eq(eW({},t),eH({meta:{serialization:n}}))):JSON.stringify(t)}(e)}),s,u)},eq(l,eH(f))),y=n.split("/").pop(),m=(null==o?void 0:o.invalidateQueries)!==!1,h=!!(null==o?void 0:o.optimisticUpdate);if(y){let{logging:t}=(0,a.useContext)(e3);m&&function(e,t,n,r,i,a=!1){let o=null==r?void 0:r.onSuccess;r.onSuccess=(...r)=>eX(this,null,function*(){let[s,u]=r,l=yield e8(e,t,u,n,a);return yield i(l),null==o?void 0:o(...r)})}(e,y,r,p,e=>c.invalidateQueries({predicate:e}),t),h&&function(e,t,n,r,i,a,o,s=!1){let u=null==r?void 0:r.onMutate,l=null==r?void 0:r.onSettled;r.onMutate=(...o)=>eX(this,null,function*(){let[l]=o;return yield function(e,t,n,r,i,a,o,s=!1){return eX(this,null,function*(){for(let l of a){var u;let{queryKey:a,state:{data:f,error:d}}=l;if((u=a).length<5||u[0]!==e0)continue;if(d){s&&console.warn(`Skipping optimistic update for ${JSON.stringify(a)} due to error:`,d);continue}let[c,p,y,m,h]=a;if(!(null==h?void 0:h.optimisticUpdate)){s&&console.log(`Skipping optimistic update for ${JSON.stringify(a)} due to opt-out`);continue}if(r.optimisticDataProvider){let e=yield r.optimisticDataProvider({queryModel:p,queryOperation:y,queryArgs:m,currentData:f,mutationArgs:n});if((null==e?void 0:e.kind)==="Skip"){s&&console.log(`Skipping optimistic update for ${JSON.stringify(a)} due to provider`);continue}if((null==e?void 0:e.kind)==="Update"){s&&console.log(`Optimistically updating query ${JSON.stringify(a)} due to provider`),o(a,e.data);continue}}let g=yield eR(p,y,f,e,t,n,i,s);void 0!==g&&(s&&console.log(`Optimistically updating query ${JSON.stringify(a)} due to mutation "${e}.${t}"`),o(a,g))}})}(e,t,l,r,n,i,a,s),null==u?void 0:u(...o)}),r.onSettled=(...r)=>eX(this,null,function*(){if(o){let[,,i]=r,a=yield e8(e,t,i,n,s);yield o(a)}return null==l?void 0:l(...r)})}(e,y,r,p,c.getQueryCache().getAll(),(e,t)=>{c.setQueryData(e,t),c.cancelQueries({queryKey:e},{revert:!1,silent:!0})},m?e=>c.invalidateQueries({predicate:e}):void 0,t)}return d(p)},"useModelQuery",0,function(e,t,n,r,i){let a=e5(t,n),o=e2(e,t,n,{infinite:!1,optimisticUpdate:(null==r?void 0:r.optimisticUpdate)!==!1});return eW({queryKey:o},(0,c.useQuery)(eW({queryKey:o,queryFn:({signal:e})=>e1(a,{signal:e},i,!1)},r)))}],82602);let e4={models:{user:{name:"User",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},name:{name:"name",type:"String",isOptional:!0},email:{name:"email",type:"String",isOptional:!0},emailVerified:{name:"emailVerified",type:"DateTime",isOptional:!0},phone:{name:"phone",type:"String",isOptional:!0},phoneVerified:{name:"phoneVerified",type:"DateTime",isOptional:!0},image:{name:"image",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},lastActivityAt:{name:"lastActivityAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},lastReactivationEmailSentAt:{name:"lastReactivationEmailSentAt",type:"DateTime",isOptional:!0},reactivationEmailSentCount:{name:"reactivationEmailSentCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},role:{name:"role",type:"UserRole",attributes:[{name:"@default",args:[{name:"value"}]}]},accounts:{name:"accounts",type:"Account",isDataModel:!0,isArray:!0,backLink:"user"},chatHistories:{name:"chatHistories",type:"ChatHistory",isDataModel:!0,isArray:!0,backLink:"user"},favorites:{name:"favorites",type:"Favorite",isDataModel:!0,isArray:!0,backLink:"user"},readingHistory:{name:"readingHistory",type:"ReadingHistory",isDataModel:!0,isArray:!0,backLink:"user"},sessions:{name:"sessions",type:"Session",isDataModel:!0,isArray:!0,backLink:"user"},subscriptions:{name:"subscriptions",type:"Subscription",isDataModel:!0,isArray:!0,backLink:"user"},translations:{name:"translations",type:"Translation",isDataModel:!0,isArray:!0,backLink:"user"},comments:{name:"comments",type:"Comment",isDataModel:!0,isArray:!0,backLink:"user"},commentLikes:{name:"commentLikes",type:"CommentLike",isDataModel:!0,isArray:!0,backLink:"user"},chatFeedbacks:{name:"chatFeedbacks",type:"ChatFeedback",isDataModel:!0,isArray:!0,backLink:"user"},highlights:{name:"highlights",type:"Highlight",isDataModel:!0,isArray:!0,backLink:"user"},userMemories:{name:"userMemories",type:"UserMemory",isDataModel:!0,isArray:!0,backLink:"user"}},uniqueConstraints:{id:{name:"id",fields:["id"]},email:{name:"email",fields:["email"]},phone:{name:"phone",fields:["phone"]}}},account:{name:"Account",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},type:{name:"type",type:"String"},provider:{name:"provider",type:"String"},providerAccountId:{name:"providerAccountId",type:"String"},refresh_token:{name:"refresh_token",type:"String",isOptional:!0},access_token:{name:"access_token",type:"String",isOptional:!0},expires_at:{name:"expires_at",type:"Int",isOptional:!0},token_type:{name:"token_type",type:"String",isOptional:!0},scope:{name:"scope",type:"String",isOptional:!0},id_token:{name:"id_token",type:"String",isOptional:!0},session_state:{name:"session_state",type:"String",isOptional:!0},user:{name:"user",type:"User",isDataModel:!0,backLink:"accounts",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]},provider_providerAccountId:{name:"provider_providerAccountId",fields:["provider","providerAccountId"]}}},session:{name:"Session",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},sessionToken:{name:"sessionToken",type:"String"},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},expires:{name:"expires",type:"DateTime"},user:{name:"user",type:"User",isDataModel:!0,backLink:"sessions",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]},sessionToken:{name:"sessionToken",fields:["sessionToken"]}}},collection:{name:"Collection",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},code:{name:"code",type:"String"},name:{name:"name",type:"String"},description:{name:"description",type:"String",isOptional:!0},type:{name:"type",type:"BookType"},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},books:{name:"books",type:"Book",isDataModel:!0,isArray:!0,backLink:"collection"}},uniqueConstraints:{id:{name:"id",fields:["id"]}
1,code:{name:"code",fields:["code"]}}},book:{name:"Book",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},collectionId:{name:"collectionId",type:"String",isForeignKey:!0,relationField:"collection"},code:{name:"code",type:"String",isOptional:!0},slug:{name:"slug",type:"String",isOptional:!0},title:{name:"title",type:"String"},alternateTitle:{name:"alternateTitle",type:"String",isArray:!0},author:{name:"author",type:"String",isOptional:!0},translator:{name:"translator",type:"String",isOptional:!0},dynasty:{name:"dynasty",type:"String",isOptional:!0},year:{name:"year",type:"String",isOptional:!0},language:{name:"language",type:"String",isOptional:!0,attributes:[{name:"@default",args:[{name:"value",value:"zh-CN"}]}]},category:{name:"category",type:"String",isOptional:!0},description:{name:"description",type:"String",isOptional:!0},type:{name:"type",type:"BookType"},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},collection:{name:"collection",type:"Collection",isDataModel:!0,backLink:"books",isRelationOwner:!0,foreignKeyMapping:{id:"collectionId"}},favorites:{name:"favorites",type:"Favorite",isDataModel:!0,isArray:!0,backLink:"book"},readingHistory:{name:"readingHistory",type:"ReadingHistory",isDataModel:!0,isArray:!0,backLink:"book"},volumes:{name:"volumes",type:"Volume",isDataModel:!0,isArray:!0,backLink:"book"},viewCount:{name:"viewCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},downloadCount:{name:"downloadCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},favoriteCount:{name:"favoriteCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},popularity:{name:"popularity",type:"Float",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},totalPages:{name:"totalPages",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},totalCharacters:{name:"totalCharacters",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]}},uniqueConstraints:{id:{name:"id",fields:["id"]},collectionId_code:{name:"collectionId_code",fields:["collectionId","code"]},slug:{name:"slug",fields:["slug"]}}},volume:{name:"Volume",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},bookId:{name:"bookId",type:"String",isForeignKey:!0,relationField:"book"},number:{name:"number",type:"Int"},title:{name:"title",type:"String",isOptional:!0},description:{name:"description",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},pages:{name:"pages",type:"Page",isDataModel:!0,isArray:!0,backLink:"volume"},book:{name:"book",type:"Book",isDataModel:!0,backLink:"volumes",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"bookId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},page:{name:"Page",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},volumeId:{name:"volumeId",type:"String",isForeignKey:!0,relationField:"volume"},number:{name:"number",type:"Int"},title:{name:"title",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},level:{name:"level",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:1}]}]},viewCount:{name:"viewCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},volume:{name:"volume",type:"Volume",isDataModel:!0,backLink:"pages",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"volumeId"}},paragraphs:{name:"paragraphs",type:"Paragraph",isDataModel:!0,isArray:!0,backLink:"page"},comments:{name:"comments",type:"Comment",isDataModel:!0,isArray:!0,backLink:"page"}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},paragraph:{name:"Paragraph",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},pageId:{name:"pageId",type:"String",isForeignKey:!0,relationField:"page"},position:{name:"position",type:"Int"},originalText:{name:"originalText",type:"String"},translation:{name:"translation",type:"String",isOptional:!0},referenceCode:{name:"referenceCode",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},type:{name:"type",type:"String",attributes:[{name:"@default",args:[{name:"value",value:"paragraph"}]}]},notes:{name:"notes",type:"Note",isDataModel:!0,isArray:!0,backLink:"paragraph"},page:{name:"page",type:"Page",isDataModel:!0,backLink:"paragraphs",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"pageId"}},translations:{name:"translations",type:"Translation",isDataModel:!0,isArray:!0,backLink:"paragraph"},highlights:{name:"highlights",type:"Highlight",isDataModel:!0,isArray:!0,backLink:"paragraph"}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},note:{name:"Note",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},paragraphId:{name:"paragraphId",type:"String",isForeignKey:!0,relationField:"paragraph"},type:{name:"type",type:"String"},content:{name:"content",type:"String"},sourceInfo:{name:"sourceInfo",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},paragraph:{name:"paragraph",type:"Paragraph",isDataModel:!0,backLink:"notes",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"paragraphId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},translation:{name:"Translation",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},paragraphId:{name:"paragraphId",type:"String",isForeignKey:!0,relationField:"paragraph"},translatedText:{name:"translatedText",type:"String"},userId:{name:"userId",type:"String",isOptional:!0,isForeignKey:!0,relationField:"user"},isAIGenerated:{name:"isAIGenerated",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!1}]}]},model:{name:"model",type:"String",isOptional:!0},language:{name:"language",type:"String",attributes:[{name:"@default",args:[{name:"value",value:"zh-CN"}
1]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},md5:{name:"md5",type:"String",isOptional:!0},embedding:{name:"embedding",type:"undefined",isOptional:!0},embeddingSkipped:{name:"embeddingSkipped",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!1}]}]},paragraph:{name:"paragraph",type:"Paragraph",isDataModel:!0,backLink:"translations",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"paragraphId"}},user:{name:"user",type:"User",isDataModel:!0,isOptional:!0,backLink:"translations",isRelationOwner:!0,foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},contentLocalization:{name:"ContentLocalization",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},resourceType:{name:"resourceType",type:"String"},resourceId:{name:"resourceId",type:"String"},field:{name:"field",type:"String"},language:{name:"language",type:"String"},localizedText:{name:"localizedText",type:"String"},isAIGenerated:{name:"isAIGenerated",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!1}]}]},model:{name:"model",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]}},uniqueConstraints:{id:{name:"id",fields:["id"]},resourceType_resourceId_field_language:{name:"resourceType_resourceId_field_language",fields:["resourceType","resourceId","field","language"]}}},buddhistTerm:{name:"BuddhistTerm",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},sanskrit:{name:"sanskrit",type:"String",isOptional:!0},pali:{name:"pali",type:"String",isOptional:!0},zh:{name:"zh",type:"String"},zhTraditional:{name:"zhTraditional",type:"String",isOptional:!0},en:{name:"en",type:"String"},ja:{name:"ja",type:"String"},ko:{name:"ko",type:"String"},category:{name:"category",type:"String"},frequency:{name:"frequency",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},favorite:{name:"Favorite",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},bookId:{name:"bookId",type:"String",isForeignKey:!0,relationField:"book"},volumeNumber:{name:"volumeNumber",type:"Int",isOptional:!0},pageNumber:{name:"pageNumber",type:"Int",isOptional:!0},paragraphNumber:{name:"paragraphNumber",type:"Int",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},book:{name:"book",type:"Book",isDataModel:!0,backLink:"favorites",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"bookId"}},user:{name:"user",type:"User",isDataModel:!0,backLink:"favorites",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},readingHistory:{name:"ReadingHistory",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},bookId:{name:"bookId",type:"String",isForeignKey:!0,relationField:"book"},progress:{name:"progress",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},lastRead:{name:"lastRead",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},pageId:{name:"pageId",type:"String",isOptional:!0},sectionId:{name:"sectionId",type:"String",isOptional:!0},book:{name:"book",type:"Book",isDataModel:!0,backLink:"readingHistory",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"bookId"}},user:{name:"user",type:"User",isDataModel:!0,backLink:"readingHistory",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]},userId_bookId:{name:"userId_bookId",fields:["userId","bookId"]}}},chatHistory:{name:"ChatHistory",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isOptional:!0,isForeignKey:!0,relationField:"user"},sessionId:{name:"sessionId",type:"String",isOptional:!0},title:{name:"title",type:"String"},isPublic:{name:"isPublic",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!1}]}]},publishedAt:{name:"publishedAt",type:"DateTime",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},user:{name:"user",type:"User",isDataModel:!0,isOptional:!0,backLink:"chatHistories",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}},messages:{name:"messages",type:"ChatMessage",isDataModel:!0,isArray:!0,backLink:"chatHistory"},userMemories:{name:"userMemories",type:"UserMemory",isDataModel:!0,isArray:!0,backLink:"chatHistory"}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},chatMessage:{name:"ChatMessage",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},chatHistoryId:{name:"chatHistoryId",type:"String",isForeignKey:!0,relationField:"chatHistory"},content:{name:"content",type:"String"},role:{name:"role",type:"String"},references:{name:"references",type:"String",isOptional:!0},uiMessage:{name:"uiMessage",type:"Json",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},chatHistory:{name:"chatHistory",type:"ChatHistory",isDataModel:!0,backLink:"messages",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"chatHistoryId"}},feedbacks:{name:"feedbacks",type:"ChatFeedback",isDataModel:!0,isArray:!0,backLink:"chatMessage"}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},chatFeedback:{name:"ChatFeedback",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},chatMessageId:{name:"chatMessageId",type:"String",isForeignKey:!0,relationField:"chatMessage"},userId:{name:"userId",type:"String",isOptional:!0,isForeignKey:!0,relationField:"user"},feedbackType:{name:"feedbackType",type:"FeedbackType"},sessionId:{name:"sessionId",type:"String",isOptional:!0},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},chatMessage:{name:"chatMessage",type:"ChatMessage",isDataModel:!0,backLink:"feedbacks",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"chatMessageId"}},user:{name:"user",type:"User",isDataModel:!0,isOptional:!0,backLink:"chatFeedbacks",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]},chatMessageId_userId:{name:"chatMessageId_userId",fields:["chatMessageId","userId"]},chatMessageId_sessionId:{name:"chatMessageId_sessionId",fields:["chatMessageId","sessionId"]}}},translationCache:{name:"TranslationCache",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},md5:{name:"md5",type:"String"},translatedText:{name:"translatedText",type:"String"},language:{name:"language",type:"String",attributes:[{name:"@default",args:[{name:"value",value:"zh-CN"}
1]}]},model:{name:"model",type:"String"},quality:{name:"quality",type:"Int",isOptional:!0},usageCount:{name:"usageCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]}},uniqueConstraints:{id:{name:"id",fields:["id"]},md5_language:{name:"md5_language",fields:["md5","language"]}}},subscription:{name:"Subscription",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},stripeCustomerId:{name:"stripeCustomerId",type:"String",isOptional:!0},stripePriceId:{name:"stripePriceId",type:"String",isOptional:!0},stripeSubscriptionId:{name:"stripeSubscriptionId",type:"String",isOptional:!0},status:{name:"status",type:"SubscriptionStatus",attributes:[{name:"@default",args:[{name:"value"}]}]},currentPeriodEnd:{name:"currentPeriodEnd",type:"DateTime",isOptional:!0},plan:{name:"plan",type:"SubscriptionPlan"},donationAmount:{name:"donationAmount",type:"Int",isOptional:!0},donatedAt:{name:"donatedAt",type:"DateTime",isOptional:!0},donorDisplayName:{name:"donorDisplayName",type:"String",isOptional:!0},donorMessage:{name:"donorMessage",type:"String",isOptional:!0},isPublic:{name:"isPublic",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!1}]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},user:{name:"user",type:"User",isDataModel:!0,backLink:"subscriptions",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},verificationToken:{name:"VerificationToken",fields:{identifier:{name:"identifier",type:"String"},token:{name:"token",type:"String",isId:!0},expires:{name:"expires",type:"DateTime"}},uniqueConstraints:{token:{name:"token",fields:["token"]},identifier_token:{name:"identifier_token",fields:["identifier","token"]}}},comment:{name:"Comment",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},pageId:{name:"pageId",type:"String",isForeignKey:!0,relationField:"page"},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},content:{name:"content",type:"String"},isPublic:{name:"isPublic",type:"Boolean",attributes:[{name:"@default",args:[{name:"value",value:!0}]}]},parentId:{name:"parentId",type:"String",isOptional:!0,isForeignKey:!0,relationField:"parent"},likeCount:{name:"likeCount",type:"Int",attributes:[{name:"@default",args:[{name:"value",value:0}]}]},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},page:{name:"page",type:"Page",isDataModel:!0,backLink:"comments",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"pageId"}},user:{name:"user",type:"User",isDataModel:!0,backLink:"comments",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}},parent:{name:"parent",type:"Comment",isDataModel:!0,isOptional:!0,backLink:"replies",isRelationOwner:!0,foreignKeyMapping:{id:"parentId"}},replies:{name:"replies",type:"Comment",isDataModel:!0,isArray:!0,backLink:"parent"},likes:{name:"likes",type:"CommentLike",isDataModel:!0,isArray:!0,backLink:"comment"}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},commentLike:{name:"CommentLike",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},commentId:{name:"commentId",type:"String",isForeignKey:!0,relationField:"comment"},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},comment:{name:"comment",type:"Comment",isDataModel:!0,backLink:"likes",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"commentId"}},user:{name:"user",type:"User",isDataModel:!0,backLink:"commentLikes",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}
1,commentId_userId:{name:"commentId_userId",fields:["commentId","userId"]}}},highlight:{name:"Highlight",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},paragraphId:{name:"paragraphId",type:"String",isForeignKey:!0,relationField:"paragraph"},startOffset:{name:"startOffset",type:"Int"},endOffset:{name:"endOffset",type:"Int"},selectedText:{name:"selectedText",type:"String"},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},user:{name:"user",type:"User",isDataModel:!0,backLink:"highlights",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}},paragraph:{name:"paragraph",type:"Paragraph",isDataModel:!0,backLink:"highlights",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"paragraphId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]}}},userMemory:{name:"UserMemory",fields:{id:{name:"id",type:"String",isId:!0,attributes:[{name:"@default",args:[{name:"value"}]}]},userId:{name:"userId",type:"String",isForeignKey:!0,relationField:"user"},category:{name:"category",type:"String"},key:{name:"key",type:"String"},value:{name:"value",type:"String"},source:{name:"source",type:"String",attributes:[{name:"@default",args:[{name:"value",value:"inferred"}]}]},confidence:{name:"confidence",type:"Float",attributes:[{name:"@default",args:[{name:"value",value:1}]}]},conversationId:{name:"conversationId",type:"String",isOptional:!0,isForeignKey:!0,relationField:"chatHistory"},createdAt:{name:"createdAt",type:"DateTime",attributes:[{name:"@default",args:[{name:"value"}]}]},updatedAt:{name:"updatedAt",type:"DateTime",attributes:[{name:"@updatedAt",args:[]}]},user:{name:"user",type:"User",isDataModel:!0,backLink:"userMemories",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"userId"}},chatHistory:{name:"chatHistory",type:"ChatHistory",isDataModel:!0,isOptional:!0,backLink:"userMemories",isRelationOwner:!0,onDeleteAction:"Cascade",foreignKeyMapping:{id:"conversationId"}}},uniqueConstraints:{id:{name:"id",fields:["id"]},userId_category_key:{name:"userId_category_key",fields:["userId","category","key"]}}}},deleteCascade:{user:["Account","Session","Favorite","ReadingHistory","ChatHistory","ChatFeedback","Subscription","Comment","CommentLike","Highlight","UserMemory"],book:["Volume","Favorite","ReadingHistory"],volume:["Page"],page:["Paragraph","Comment"],paragraph:["Note","Translation","Highlight"],chatHistory:["ChatMessage","UserMemory"],chatMessage:["ChatFeedback"],comment:["CommentLike"]},authModel:"User"};e.s(["default",0,e4],321890)},210102,(e,t,n)=>{"use strict";n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},n.toByteArray=function(e){var t,n,r=l(e),o=r[0],s=r[1],u=new a((o+s)*3/4-s),f=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[f++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(function(e,t,n){for(var i,a=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],a="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}i[45]=62,i[95]=63},962866,(e,t,n)=>{n.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<<s)-1,l=u>>1,f=-7,d=n?i-1:0,c=n?-1:1,p=e[t+d];for(d+=c,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+e[t+d],d+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=256*o+e[t+d],d+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},n.write=function(e,t,n,r,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,d=f>>
11,c=5960464477539062e-23*(23===i),p=r?0:a-1,y=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=c/u:t+=c*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=f?(s=0,o=f):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=y,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=255&o,p+=y,o/=256,l-=8);e[n+p-y]|=128*m}},259390,(e,t,n)=>{"use strict";let r=e.r(210102),i=e.r(962866),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);let n=0|y(r,i),a=o(n),u=a.write(r,i);return u!==n&&(a=a.slice(0,u)),a}if(ArrayBuffer.isView(e)){var a=e;if(x(a,Uint8Array)){let e=new Uint8Array(a);return c(e.buffer,e.byteOffset,e.byteLength)}return d(a)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(x(e,ArrayBuffer)||e&&x(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(x(e,SharedArrayBuffer)||e&&x(e.buffer,SharedArrayBuffer)))return c(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return s.from(u,t,n);let l=function(e){if(s.isBuffer(e)){let t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(l)return l;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),o(e<0?0:0|p(e))}function d(e){let t=e.length<0?0:0|p(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||x(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(i)return r?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=_[e[r]];return i}(this,t,n);case"utf8":case"utf-8":return v(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":var a,o,s;return a=this,o=t,s=n,0===o&&s===a.length?r.fromByteArray(a):r.fromByteArray(a.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function h(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return b(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===u)return r*o}else -1!==r&&(a-=a-r),r=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){let n=!0;for(let r=0;r<u;r++)if(l(e,a+r)!==l(t,r)){n=!1;break}if(n)return a}return -1}function v(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,u;switch(o){case 1:t<128&&(a=t);break;case 2:(192&(n=e[i+1]))==128&&(u=(31&t)<<6|63&n)>127&&(a=u);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(u=(15&t)<<12|(63&n)<<6|63&r)>
vendor: 18,639 bytes, line 1
12047&&(u<55296||u>57343)&&(a=u);break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&u<1114112&&(a=u)}}null===a?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}var a=r;let o=a.length;if(o<=4096)return String.fromCharCode.apply(String,a);let s="",u=0;for(;u<o;)s+=String.fromCharCode.apply(String,a.slice(u,u+=4096));return s}function A(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i){D(t,r,i,e,n,7);let a=Number(t&BigInt(0xffffffff));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function w(e,t,n,r,i){D(t,r,i,e,n,7);let a=Number(t&BigInt(0xffffffff));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function O(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,a){return t*=1,n>>>=0,a||O(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,a){return t*=1,n>>>=0,a||O(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}n.Buffer=s,n.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(x(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),x(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(x(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)h(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(x(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,u=Math.min(a,o),l=this.slice(r,i),f=e.slice(t,n);for(let e=0;e<u;++e)if(l[e]!==f[e]){a=l[e],o=f[e];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){var i,a,o,s,u,l,f,d;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let c=this.length-t;if((void 0===n||n>c)&&(n=c),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let p=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;let o=t.length;for(r>o/2&&(r=o/2),i=0;i<r;++i){var s;let r=parseInt(t.substr(2*i,2),16);if((s=r)!=s)break;e[n+i]=r}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,j(P(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=t,s=n,j(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,o,s);case"base64":return u=t,l=n,j(L(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,d=n,j(function(e,t){let n,r,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=F(function(e){B(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&R(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*n;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=F(function(e){B(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&R(e,this.length-8);let r=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||A(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=F(function(e){B(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&R(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),s.prototype.readBigInt64BE=F(function(e){B(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&R(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;I(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;I(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=F(function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=F(function(e,t=0){return w(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){let r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){let r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||I(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=F(function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=F(function(e,t=0){return w(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){let i;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let E={};function C(e,t,n){E[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function T(e){let t="",n=e.length,r=+("-"===e[0]);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function D(e,t,n,r,i,a){if(e>n||e<t){let r,i="bigint"==typeof t?"n":"";throw r=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new E.ERR_OUT_OF_RANGE("value",r,e)}B(i,"offset"),(void 0===r[i]||void 0===r[i+a])&&R(i,r.length-(a+1))}function B(e,t){if("number"!=typeof e)throw new E.ERR_INVALID_ARG_TYPE(t,"number",e)}function R(e,t,n){if(Math.floor(e)!==e)throw B(e,n),new E.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new E.ERR_BUFFER_OUT_OF_BOUNDS;throw new E.ERR_OUT_OF_RANGE(n||"offset",`>= ${+!!n} and <= ${t}`,e)}C("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),C("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>0x100000000?i=T(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let U=/[^+/0-9A-Za-z-_]/g;function P(e,t){let n;t=t||1/0;let r=e.length,i=null,a=[];for(let o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function x(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let _=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function F(e){return"u"<typeof BigInt?K:e}function K(){throw Error("BigInt not supported")}}]);
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.