Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

View file

@ -0,0 +1 @@
"use strict";var y=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var c in t)y(e,c,{get:t[c],enumerable:!0})},x=(e,t,c,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of m(t))!k.call(e,r)&&r!==c&&y(e,r,{get:()=>t[r],enumerable:!(s=g(t,r))||s.enumerable});return e};var A=e=>x(y({},"__esModule",{value:!0}),e);var S={};w(S,{initialValue:()=>f,isMap:()=>l,isMapInstance:()=>T,isObjectLiteral:()=>u,isSet:()=>b,isSetInstance:()=>j,merge:()=>M,objectKeys:()=>p});module.exports=A(S);var f={};function l(e){return T(e)}function T(e){return e instanceof Map}function b(e){return j(e)}function j(e){return e instanceof Set}function u(e){return!!e&&e.constructor===Object}function p(e){return Object.keys(e)}function M(e,t,...c){let s=f;for(let r of[e,t,...c]){if(!u(r))throw new TypeError("Expected all arguments to be object literals.");let o={...s},O=p(r);for(let i of O){let a=o[i],n=r[i];if(a!==n){if(u(a)&&u(n)){o[i]=M(a,n);continue}if(Array.isArray(a)&&Array.isArray(n)){o[i]=[...new Set([...a,...n])];continue}if(l(a)&&l(n)){o[i]=new Map([...a,...n]);continue}if(b(a)&&b(n)){o[i]=new Set([...a,...n]);continue}o[i]=n}}s=o}return s}0&&(module.exports={initialValue,isMap,isMapInstance,isObjectLiteral,isSet,isSetInstance,merge,objectKeys});

View file

@ -0,0 +1,12 @@
type MergeableObject = Record<string | number | symbol, any>;
declare const initialValue: MergeableObject;
declare function isMap<TKey = unknown, TValue = unknown>(input: any): input is Map<TKey, TValue>;
declare function isMapInstance(input: any): boolean;
declare function isSet<T = unknown>(input: any): input is Set<T>;
declare function isSetInstance(input: any): boolean;
declare function isObjectLiteral(input: any): boolean;
declare function objectKeys<T extends object>(object: T): Array<keyof T>;
declare function merge<TData extends MergeableObject = MergeableObject, TResult extends MergeableObject = TData>(source: TData, target: TData, ...targets: Array<TData>): TResult;
export { type MergeableObject, initialValue, isMap, isMapInstance, isObjectLiteral, isSet, isSetInstance, merge, objectKeys };

View file

@ -0,0 +1,12 @@
type MergeableObject = Record<string | number | symbol, any>;
declare const initialValue: MergeableObject;
declare function isMap<TKey = unknown, TValue = unknown>(input: any): input is Map<TKey, TValue>;
declare function isMapInstance(input: any): boolean;
declare function isSet<T = unknown>(input: any): input is Set<T>;
declare function isSetInstance(input: any): boolean;
declare function isObjectLiteral(input: any): boolean;
declare function objectKeys<T extends object>(object: T): Array<keyof T>;
declare function merge<TData extends MergeableObject = MergeableObject, TResult extends MergeableObject = TData>(source: TData, target: TData, ...targets: Array<TData>): TResult;
export { type MergeableObject, initialValue, isMap, isMapInstance, isObjectLiteral, isSet, isSetInstance, merge, objectKeys };

View file

@ -0,0 +1 @@
var l={};function s(e){return T(e)}function T(e){return e instanceof Map}function u(e){return j(e)}function j(e){return e instanceof Set}function o(e){return!!e&&e.constructor===Object}function b(e){return Object.keys(e)}function M(e,y,...f){let i=l;for(let c of[e,y,...f]){if(!o(c))throw new TypeError("Expected all arguments to be object literals.");let r={...i},p=b(c);for(let a of p){let n=r[a],t=c[a];if(n!==t){if(o(n)&&o(t)){r[a]=M(n,t);continue}if(Array.isArray(n)&&Array.isArray(t)){r[a]=[...new Set([...n,...t])];continue}if(s(n)&&s(t)){r[a]=new Map([...n,...t]);continue}if(u(n)&&u(t)){r[a]=new Set([...n,...t]);continue}r[a]=t}}i=r}return i}export{l as initialValue,s as isMap,T as isMapInstance,o as isObjectLiteral,u as isSet,j as isSetInstance,M as merge,b as objectKeys};