PageSourceSearch

https://decode.casino/chunk-6FB4IR65.js

js decode.casino collected 2026-10-09 23:04:00 UTC 2,144 bytes, 1 lines download raw bytes

1import{d as K,e as h,h as I}from"./chunk-XNTCN5LM.js";import{jc as E}from"./chunk-5LGYDGR4.js";import{a}from"./chunk-HIUAR4UN.js";var d=(function(t){return t[t.None=0]="None",t[t.Entities=1]="Entities",t[t.Both=2]="Both",t})(d||{}),v=t=>t.id;function y(t){return t?.selectId??v}function u(t){let n=t?.collection,i=n===void 0?"entityMap":`${n}EntityMap`,s=n===void 0?"ids":`${n}Ids`,e=n===void 0?"entities":`${n}Entities`;return{entityMapKey:i,idsKey:s,entitiesKey:e}}function l(t,n){return{entityMap:a({},t[n.entityMapKey]),ids:[...t[n.idsKey]]}}function f(t,n,i){switch(i){case d.Both:return{[n.entityMapKey]:t.entityMap,[n.idsKey]:t.ids};case d.Entities:return{[n.entityMapKey]:t.entityMap};default:return{}}}function S(t,n,i,s=!0){let e=i(n);return t.entityMap[e]?(t.entityMap[e]=s?n:a(a({},t.entityMap[e]),n),d.Entities):(t.entityMap[e]=n,t.ids.push(e),d.Both)}function m(t,n,i,s=!0){let e=d.None;for(let o of n){let r=S(t,o,i,s);e!==d.Both&&(e=r)}return e}function w(t,n,i,s){let e=Array.isArray(n)?n:t.ids.filter(c=>n(t.entityMap[c])),o,r=d.None;for(let c of e){let p=t.entityMap[c];if(p){let B=typeof i=="function"?i(p):i;t.entityMap[c]=a(a({},p),B),r=d.Entities;let M=s(t.entityMap[c]);M!==c&&(t.entityMap[M]=t.entityMap[c],delete t.entityMap[c],o=o||{},o[c]=M)}}return o&&(t.ids=t.ids.map(c=>o[c]??c),r=d.Both),r}function N(t){let n=u(t);return()=>({[n.entityMapKey]:{},[n.idsKey]:[]})}function $(t,n){let i=y(n),s=u(n);return e=>{let o=l(e,s),r=S(o,t,i);return f(o,s,r)}}function g(t,n){let i=y(n),s=u(n);return e=>{let o=l(e,s),r=m(o,t,i);return f(o,s,r)}}function k(t,n){let i=y(n),s=u(n);return()=>{let e={entityMap:{},ids:[]};return m(e,t,i),{[s.entityMapKey]:e.entityMap,[s.idsKey]:e.ids}}}function x(t,n){let i=y(n),s=u(n);return e=>{let o=l(e,s),r=w(o,[t.id],t.changes,i);return f(o,s,r)}}function C(t,n){let i=y(n),s=u(n),e="ids"in t?t.ids:t.predicate;return o=>{let r=l(o,s),c=w(r,e,t.changes,i);return f(r,s,c)}}function R(t){let{entityMapKey:n,idsKey:i,entitiesKey:s}=u(t);return K(I({[n]:{},[i]:[]}),h(e=>({[s]:E(()=>{let o=e[n]();return e[i]().map(c=>o[c])})})))}export{N as a,$ as b,g as c,k as d,x as e,C as f,R as g};

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.