@synnaxlabs/x 0.38.0 → 0.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.turbo/turbo-build.log +19 -19
  2. package/dist/binary.js +1 -1
  3. package/dist/{box-Cto-5Uxu.js → box-DPJAbf32.js} +64 -64
  4. package/dist/box-Daep7oxr.cjs +1 -0
  5. package/dist/box.cjs +1 -1
  6. package/dist/box.js +1 -1
  7. package/dist/caseconv.js +1 -1
  8. package/dist/{external-vFGUdZf6.js → external-CtAt3tnU.js} +14 -15
  9. package/dist/external-DSKjMZ7J.cjs +1 -0
  10. package/dist/{index-OHIRoCei.js → index-C3QzbIwt.js} +1 -1
  11. package/dist/{index-BfDeGfej.js → index-DizUWH6z.js} +8 -2
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +9 -9
  14. package/dist/{location-C5Ot4MVG.js → location-BVkZhfQG.js} +1 -1
  15. package/dist/location.js +1 -1
  16. package/dist/{position-CvSNZkSD.cjs → position-96CBRKEd.cjs} +1 -1
  17. package/dist/{position-GeF1oEYk.js → position-uVDP52PM.js} +2 -2
  18. package/dist/position.cjs +1 -1
  19. package/dist/position.js +1 -1
  20. package/dist/runtime.cjs +1 -1
  21. package/dist/runtime.js +1 -1
  22. package/dist/{scale-BTgf0Mr-.cjs → scale-Bzjm1mhv.cjs} +1 -1
  23. package/dist/{scale-Dh1UNRoC.js → scale-D_UMXSZN.js} +2 -2
  24. package/dist/scale.cjs +1 -1
  25. package/dist/scale.js +1 -1
  26. package/dist/{series-DxDIugLj.js → series-Cwc_z2OS.js} +5 -5
  27. package/dist/{series-BMhEEJZL.cjs → series-DuOxifEy.cjs} +1 -1
  28. package/dist/spatial.cjs +1 -1
  29. package/dist/spatial.js +4 -4
  30. package/dist/src/breaker/breaker.d.ts.map +1 -1
  31. package/dist/src/breaker/index.d.ts.map +1 -1
  32. package/dist/src/caseconv/caseconv.d.ts.map +1 -1
  33. package/dist/src/runtime/os.d.ts +7 -7
  34. package/dist/src/runtime/os.d.ts.map +1 -1
  35. package/dist/src/sleep/index.d.ts.map +1 -1
  36. package/dist/src/sleep/sleep.d.ts.map +1 -1
  37. package/dist/src/testutil/index.d.ts +2 -0
  38. package/dist/src/testutil/index.d.ts.map +1 -0
  39. package/dist/src/testutil/testutil.d.ts +2 -0
  40. package/dist/src/testutil/testutil.d.ts.map +1 -0
  41. package/dist/src/url/url.d.ts +1 -1
  42. package/dist/src/url/url.d.ts.map +1 -1
  43. package/dist/src/zodutil/zodutil.d.ts.map +1 -1
  44. package/dist/telem.cjs +1 -1
  45. package/dist/telem.js +1 -1
  46. package/eslint.config.js +1 -1
  47. package/package.json +3 -3
  48. package/src/binary/encoder.spec.ts +1 -1
  49. package/src/binary/encoder.ts +1 -1
  50. package/src/binary/index.ts +1 -1
  51. package/src/breaker/breaker.spec.ts +9 -0
  52. package/src/breaker/breaker.ts +9 -0
  53. package/src/breaker/index.ts +9 -0
  54. package/src/caseconv/caseconv.spec.ts +1 -1
  55. package/src/caseconv/caseconv.ts +16 -8
  56. package/src/caseconv/index.ts +1 -1
  57. package/src/change/change.ts +1 -1
  58. package/src/change/index.ts +1 -1
  59. package/src/clamp/clamp.ts +1 -1
  60. package/src/clamp/index.ts +1 -1
  61. package/src/compare/compare.spec.ts +1 -1
  62. package/src/compare/compare.ts +1 -1
  63. package/src/compare/index.ts +1 -1
  64. package/src/control/control.ts +1 -1
  65. package/src/control/index.ts +1 -1
  66. package/src/debounce/debounce.spec.ts +1 -1
  67. package/src/debounce/debounce.ts +1 -1
  68. package/src/debounce/index.ts +1 -1
  69. package/src/deep/copy.ts +1 -1
  70. package/src/deep/delete.spec.ts +1 -1
  71. package/src/deep/delete.ts +1 -1
  72. package/src/deep/difference.spec.ts +1 -1
  73. package/src/deep/difference.ts +1 -1
  74. package/src/deep/equal.spec.ts +1 -1
  75. package/src/deep/equal.ts +1 -1
  76. package/src/deep/external.ts +1 -1
  77. package/src/deep/index.ts +1 -1
  78. package/src/deep/merge.spec.ts +1 -1
  79. package/src/deep/merge.ts +1 -1
  80. package/src/deep/partial.ts +1 -1
  81. package/src/deep/path.spec.ts +2 -3
  82. package/src/deep/path.ts +3 -3
  83. package/src/destructor.ts +1 -1
  84. package/src/errors/errors.ts +1 -1
  85. package/src/errors/index.ts +1 -1
  86. package/src/id/id.ts +6 -6
  87. package/src/id/index.ts +1 -1
  88. package/src/identity.ts +1 -1
  89. package/src/index.ts +1 -1
  90. package/src/invert.ts +1 -1
  91. package/src/join.ts +1 -1
  92. package/src/kv/external.ts +1 -1
  93. package/src/kv/index.ts +1 -1
  94. package/src/kv/mock.ts +1 -1
  95. package/src/kv/types.ts +1 -1
  96. package/src/link/index.ts +1 -1
  97. package/src/link/link.spec.ts +1 -1
  98. package/src/link/link.ts +1 -1
  99. package/src/math/index.ts +1 -1
  100. package/src/math/math.spec.ts +1 -1
  101. package/src/math/math.ts +1 -1
  102. package/src/migrate/index.ts +1 -1
  103. package/src/migrate/migrate.spec.ts +1 -1
  104. package/src/migrate/migrate.ts +1 -1
  105. package/src/mock/MockGLBufferController.ts +1 -1
  106. package/src/mock/index.ts +1 -1
  107. package/src/numeric/index.ts +1 -1
  108. package/src/numeric/numeric.ts +1 -1
  109. package/src/observe/index.ts +1 -1
  110. package/src/observe/observe.ts +1 -1
  111. package/src/observe/obsever.spec.ts +1 -1
  112. package/src/optional.ts +1 -1
  113. package/src/primitive.ts +1 -1
  114. package/src/record.spec.ts +9 -0
  115. package/src/record.ts +1 -1
  116. package/src/renderable.ts +1 -1
  117. package/src/runtime/detect.ts +3 -3
  118. package/src/runtime/external.ts +1 -1
  119. package/src/runtime/index.ts +1 -1
  120. package/src/runtime/os.ts +20 -20
  121. package/src/search.ts +1 -1
  122. package/src/shallowCopy.ts +1 -1
  123. package/src/sleep/index.ts +9 -0
  124. package/src/sleep/sleep.ts +9 -0
  125. package/src/spatial/base.ts +1 -1
  126. package/src/spatial/bounds/bounds.spec.ts +4 -3
  127. package/src/spatial/bounds/bounds.ts +4 -4
  128. package/src/spatial/bounds/index.ts +1 -1
  129. package/src/spatial/box/box.spec.ts +1 -1
  130. package/src/spatial/box/box.ts +2 -2
  131. package/src/spatial/box/index.ts +1 -1
  132. package/src/spatial/dimensions/dimensions.spec.ts +1 -1
  133. package/src/spatial/dimensions/dimensions.ts +1 -1
  134. package/src/spatial/dimensions/index.ts +1 -1
  135. package/src/spatial/direction/direction.spec.ts +1 -1
  136. package/src/spatial/direction/direction.ts +1 -1
  137. package/src/spatial/direction/index.ts +1 -1
  138. package/src/spatial/external.ts +1 -1
  139. package/src/spatial/index.ts +1 -1
  140. package/src/spatial/location/index.ts +1 -1
  141. package/src/spatial/location/location.spec.ts +1 -1
  142. package/src/spatial/location/location.ts +2 -2
  143. package/src/spatial/position/index.ts +1 -1
  144. package/src/spatial/position/position.spec.ts +1 -1
  145. package/src/spatial/position/position.ts +1 -1
  146. package/src/spatial/scale/index.ts +1 -1
  147. package/src/spatial/scale/scale.spec.ts +1 -1
  148. package/src/spatial/scale/scale.ts +2 -2
  149. package/src/spatial/spatial.ts +1 -1
  150. package/src/spatial/xy/index.ts +1 -1
  151. package/src/spatial/xy/xy.spec.ts +1 -1
  152. package/src/spatial/xy/xy.ts +1 -1
  153. package/src/strings/index.ts +1 -1
  154. package/src/strings/strings.spec.ts +1 -1
  155. package/src/strings/strings.ts +1 -1
  156. package/src/telem/generate.ts +1 -1
  157. package/src/telem/gl.ts +1 -1
  158. package/src/telem/index.ts +1 -1
  159. package/src/telem/series.spec.ts +1 -1
  160. package/src/telem/series.ts +4 -4
  161. package/src/telem/telem.spec.ts +2 -2
  162. package/src/telem/telem.ts +1 -1
  163. package/src/testutil/index.ts +10 -0
  164. package/src/testutil/testutil.ts +14 -0
  165. package/src/toArray.ts +1 -1
  166. package/src/transform.ts +1 -1
  167. package/src/unique/index.ts +1 -1
  168. package/src/unique/unique.spec.ts +1 -1
  169. package/src/unique/unique.ts +1 -1
  170. package/src/url/index.ts +1 -1
  171. package/src/url/url.spec.ts +1 -1
  172. package/src/url/url.ts +2 -2
  173. package/src/worker/index.ts +1 -1
  174. package/src/worker/worker.spec.ts +1 -1
  175. package/src/worker/worker.ts +1 -1
  176. package/src/zodutil/index.ts +1 -1
  177. package/src/zodutil/zodutil.spec.ts +1 -1
  178. package/src/zodutil/zodutil.ts +2 -2
  179. package/tsconfig.tsbuildinfo +1 -1
  180. package/vite.config.ts +1 -1
  181. package/dist/box-BZ6d2d5A.cjs +0 -1
  182. package/dist/external-Cax-LfQW.cjs +0 -1
package/dist/scale.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s as e } from "./scale-Dh1UNRoC.js";
1
+ import { s as e } from "./scale-D_UMXSZN.js";
2
2
  export {
3
3
  e as scale
4
4
  };
@@ -2,15 +2,15 @@ var et = Object.defineProperty;
2
2
  var nt = (o, t, e) => t in o ? et(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
3
  var s = (o, t, e) => nt(o, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { z as l } from "zod";
5
- import { J as q } from "./index-OHIRoCei.js";
6
- import { s as rt } from "./index-BfDeGfej.js";
5
+ import { J as q } from "./index-C3QzbIwt.js";
6
+ import { s as rt } from "./index-DizUWH6z.js";
7
7
  import { n as st } from "./index-BVC_8Cg9.js";
8
8
  import { m as R, c as L, a as G, d as D, t as it, e as at } from "./bounds-BtccGJW0.js";
9
- import "./box-Cto-5Uxu.js";
9
+ import "./box-DPJAbf32.js";
10
10
  import "./dimensions-D-1PnJVI.js";
11
11
  import "./base-DnZzEvvz.js";
12
- import "./location-C5Ot4MVG.js";
13
- import "./scale-Dh1UNRoC.js";
12
+ import "./location-BVkZhfQG.js";
13
+ import "./scale-D_UMXSZN.js";
14
14
  import "./xy-DxjPL2DZ.js";
15
15
  import { b as ut } from "./zodutil-BfrF8jE3.js";
16
16
  let ot = (o, t = 21) => (e = t) => {
@@ -1,4 +1,4 @@
1
- "use strict";var tt=Object.defineProperty;var et=(o,t,e)=>t in o?tt(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var s=(o,t,e)=>et(o,typeof t!="symbol"?t+"":t,e);const l=require("zod"),D=require("./index-CnclyYpG.cjs"),nt=require("./index-Dd8DLyMx.cjs"),rt=require("./index-BG3Scw3G.cjs"),w=require("./bounds-8aFLdbEj.cjs");require("./box-BZ6d2d5A.cjs");require("./dimensions-zMcb9pMk.cjs");require("./base-B48bPNx5.cjs");require("./location-BIet4Mig.cjs");require("./scale-BTgf0Mr-.cjs");require("./xy-Budz-qz-.cjs");const st=require("./zodutil-DFJyyQd2.cjs");let it=(o,t=21)=>(e=t)=>{let n="",i=e|0;for(;i--;)n+=o[Math.random()*o.length|0];return n};const at="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",K=it(at,11),ut=Object.freeze(Object.defineProperty({__proto__:null,id:K},Symbol.toStringTag,{value:"Module"})),ot=l.z.enum(["static","dynamic"]),X=(o,t)=>{const e=new m(t);if(![O.DAY,O.HOUR,O.MINUTE,O.SECOND,O.MILLISECOND,O.MICROSECOND,O.NANOSECOND].some(i=>i.equals(e)))throw new Error("Invalid argument for remainder. Must be an even TimeSpan or Timestamp");const n=o.valueOf()%e.valueOf();return o instanceof m?new m(n):new O(n)},a=class a{constructor(t,e="UTC"){s(this,"value");s(this,"encodeValue",!0);if(t==null)this.value=a.now().valueOf();else if(t instanceof Date)this.value=BigInt(t.getTime())*a.MILLISECOND.valueOf();else if(typeof t=="string")this.value=a.parseDateTimeString(t,e).valueOf();else if(Array.isArray(t))this.value=a.parseDate(t);else{let n=BigInt(0);t instanceof Number&&(t=t.valueOf()),e==="local"&&(n=a.utcOffset.valueOf()),typeof t=="number"&&(isFinite(t)?t=Math.trunc(t):(isNaN(t)&&(t=0),t===1/0?t=a.MAX:t=a.MIN)),this.value=BigInt(t.valueOf())+n}}static parseDate([t=1970,e=1,n=1]){const i=new Date(t,e-1,n,0,0,0,0);return new a(BigInt(i.getTime())*a.MILLISECOND.valueOf()).truncate(a.DAY).valueOf()}encode(){return this.value.toString()}valueOf(){return this.value}static parseTimeString(t,e="UTC"){const[n,i,f]=t.split(":");let h="00",p="00";f!=null&&([h,p]=f.split("."));let y=a.hours(parseInt(n??"00")).add(a.minutes(parseInt(i??"00"))).add(a.seconds(parseInt(h??"00"))).add(a.milliseconds(parseInt(p??"00")));return e==="local"&&(y=y.add(a.utcOffset)),y.valueOf()}static parseDateTimeString(t,e="UTC"){if(!t.includes("/")&&!t.includes("-"))return a.parseTimeString(t,e);const n=new Date(t);return t.includes(":")||n.setUTCHours(0,0,0,0),new a(BigInt(n.getTime())*a.MILLISECOND.valueOf(),e).valueOf()}fString(t="ISO",e="UTC"){switch(t){case"ISODate":return this.toISOString(e).slice(0,10);case"ISOTime":return this.toISOString(e).slice(11,23);case"time":return this.timeString(!1,e);case"preciseTime":return this.timeString(!0,e);case"date":return this.dateString();case"preciseDate":return`${this.dateString()} ${this.timeString(!0,e)}`;case"dateTime":return`${this.dateString()} ${this.timeString(!1,e)}`;default:return this.toISOString(e)}}toISOString(t="UTC"){return t==="UTC"?this.date().toISOString():this.sub(a.utcOffset).date().toISOString()}timeString(t=!1,e="UTC"){const n=this.toISOString(e);return t?n.slice(11,23):n.slice(11,19)}dateString(){const t=this.date(),e=t.toLocaleString("default",{month:"short"}),n=t.toLocaleString("default",{day:"numeric"});return`${e} ${n}`}static get utcOffset(){return new O(BigInt(new Date().getTimezoneOffset())*a.MINUTE.valueOf())}static since(t){return new a().span(t)}date(){return new Date(this.milliseconds)}equals(t){return this.valueOf()===new a(t).valueOf()}span(t){return this.range(t).span}range(t){return new M(this,t).makeValid()}spanRange(t){return this.range(this.add(t)).makeValid()}get isZero(){return this.valueOf()===BigInt(0)}after(t){return this.valueOf()>new a(t).valueOf()}afterEq(t){return this.valueOf()>=new a(t).valueOf()}before(t){return this.valueOf()<new a(t).valueOf()}beforeEq(t){return this.valueOf()<=new a(t).valueOf()}add(t){return new a(this.valueOf()+BigInt(t.valueOf()))}sub(t){return new a(this.valueOf()-BigInt(t.valueOf()))}get hours(){return Number(this.valueOf())/Number(O.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(O.MINUTE.valueOf())}get days(){return Number(this.valueOf())/Number(O.DAY.valueOf())}get seconds(){return Number(this.valueOf())/Number(O.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(a.MILLISECOND.valueOf())}get year(){return this.date().getFullYear()}setYear(t){const e=this.date();return e.setFullYear(t),new a(e)}get month(){return this.date().getMonth()}setMonth(t){const e=this.date();return e.setMonth(t),new a(e)}get day(){return this.date().getDate()}setDay(t){const e=this.date();return e.setDate(t),new a(e)}get hour(){return this.date().getHours()}setHour(t){const e=this.date();return e.setHours(t),new a(e)}get minute(){return this.date().getMinutes()}setMinute(t){const e=this.date();return e.setMinutes(t),new a(e)}get second(){return this.date().getSeconds()}setSecond(t){const e=this.date();return e.setSeconds(t),new a(e)}get millisecond(){return this.date().getMilliseconds()}setMillisecond(t){const e=this.date();return e.setMilliseconds(t),new a(e)}toString(){return this.date().toISOString()}remainder(t){return X(this,t)}get isToday(){return this.truncate(O.DAY).equals(a.now().truncate(O.DAY))}truncate(t){return this.sub(this.remainder(t))}static now(){return new a(new Date)}static max(...t){let e=a.MIN;for(const n of t){const i=new a(n);i.after(e)&&(e=i)}return e}static min(...t){let e=a.MAX;for(const n of t){const i=new a(n);i.before(e)&&(e=i)}return e}static nanoseconds(t){return new a(t)}static microseconds(t){return a.nanoseconds(t*1e3)}static milliseconds(t){return a.microseconds(t*1e3)}static seconds(t){return a.milliseconds(t*1e3)}static minutes(t){return a.seconds(t*60)}static hours(t){return a.minutes(t*60)}static days(t){return a.hours(t*24)}};s(a,"NANOSECOND",a.nanoseconds(1)),s(a,"MICROSECOND",a.microseconds(1)),s(a,"MILLISECOND",a.milliseconds(1)),s(a,"SECOND",a.seconds(1)),s(a,"MINUTE",a.minutes(1)),s(a,"HOUR",a.hours(1)),s(a,"DAY",a.days(1)),s(a,"MAX",new a((1n<<63n)-1n)),s(a,"MIN",new a(0)),s(a,"ZERO",new a(0)),s(a,"z",l.z.union([l.z.object({value:l.z.bigint()}).transform(t=>new a(t.value)),l.z.string().transform(t=>new a(BigInt(t))),l.z.instanceof(Number).transform(t=>new a(t)),l.z.number().transform(t=>new a(t)),l.z.instanceof(a)]));let m=a;const u=class u{constructor(t){s(this,"value");s(this,"encodeValue",!0);typeof t=="number"&&(t=Math.trunc(t.valueOf())),this.value=BigInt(t.valueOf())}static fromSeconds(t){return t instanceof u?t:t instanceof L?t.period:t instanceof m?new u(t):["number","bigint"].includes(typeof t)?u.seconds(t):new u(t)}static fromMilliseconds(t){return t instanceof u?t:t instanceof L?t.period:t instanceof m?new u(t):["number","bigint"].includes(typeof t)?u.milliseconds(t):new u(t)}encode(){return this.value.toString()}valueOf(){return this.value}lessThan(t){return this.valueOf()<new u(t).valueOf()}greaterThan(t){return this.valueOf()>new u(t).valueOf()}lessThanOrEqual(t){return this.valueOf()<=new u(t).valueOf()}greaterThanOrEqual(t){return this.valueOf()>=new u(t).valueOf()}remainder(t){return X(this,t)}truncate(t){return new u(BigInt(Math.trunc(Number(this.valueOf()/t.valueOf())))*t.valueOf())}toString(){const t=this.truncate(u.DAY),e=this.truncate(u.HOUR),n=this.truncate(u.MINUTE),i=this.truncate(u.SECOND),f=this.truncate(u.MILLISECOND),h=this.truncate(u.MICROSECOND),p=this.truncate(u.NANOSECOND),y=t,S=e.sub(t),A=n.sub(e),c=i.sub(n),R=f.sub(i),C=h.sub(f),Y=p.sub(h);let B="";return y.isZero||(B+=`${y.days}d `),S.isZero||(B+=`${S.hours}h `),A.isZero||(B+=`${A.minutes}m `),c.isZero||(B+=`${c.seconds}s `),R.isZero||(B+=`${R.milliseconds}ms `),C.isZero||(B+=`${C.microseconds}µs `),Y.isZero||(B+=`${Y.nanoseconds}ns`),B.trim()}mult(t){return new u(this.valueOf()*BigInt(t))}get days(){return Number(this.valueOf())/Number(u.DAY.valueOf())}get hours(){return Number(this.valueOf())/Number(u.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(u.MINUTE.valueOf())}get seconds(){return Number(this.valueOf())/Number(u.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(u.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(u.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get isZero(){return this.valueOf()===BigInt(0)}equals(t){return this.valueOf()===new u(t).valueOf()}add(t){return new u(this.valueOf()+new u(t).valueOf())}sub(t){return new u(this.valueOf()-new u(t).valueOf())}static nanoseconds(t=1){return new u(t)}static microseconds(t=1){return u.nanoseconds(w.mult(t,1e3))}static milliseconds(t=1){return u.microseconds(w.mult(t,1e3))}static seconds(t=1){return u.milliseconds(w.mult(t,1e3))}static minutes(t=1){return u.seconds(w.mult(t,60))}static hours(t){return u.minutes(w.mult(t,60))}static days(t){return u.hours(w.mult(t,24))}};s(u,"NANOSECOND",u.nanoseconds(1)),s(u,"MICROSECOND",u.microseconds(1)),s(u,"MILLISECOND",u.milliseconds(1)),s(u,"SECOND",u.seconds(1)),s(u,"MINUTE",u.minutes(1)),s(u,"HOUR",u.hours(1)),s(u,"DAY",u.days(1)),s(u,"MAX",new u((1n<<63n)-1n)),s(u,"MIN",new u(0)),s(u,"ZERO",new u(0)),s(u,"z",l.z.union([l.z.object({value:l.z.bigint()}).transform(t=>new u(t.value)),l.z.string().transform(t=>new u(BigInt(t))),l.z.instanceof(Number).transform(t=>new u(t)),l.z.number().transform(t=>new u(t)),l.z.instanceof(u)]));let O=u;const v=class v extends Number{constructor(t){t instanceof Number?super(t.valueOf()):super(t)}toString(){return`${this.valueOf()} Hz`}equals(t){return this.valueOf()===new v(t).valueOf()}get period(){return O.seconds(1/this.valueOf())}sampleCount(t){return new O(t).seconds*this.valueOf()}byteCount(t,e){return this.sampleCount(t)*new I(e).valueOf()}span(t){return O.seconds(t/this.valueOf())}byteSpan(t,e){return this.span(t.valueOf()/e.valueOf())}static hz(t){return new v(t)}static khz(t){return v.hz(t*1e3)}};s(v,"z",l.z.union([l.z.number().transform(t=>new v(t)),l.z.instanceof(Number).transform(t=>new v(t)),l.z.instanceof(v)]));let L=v;const b=class b extends Number{constructor(t){t instanceof Number?super(t.valueOf()):super(t)}length(t){return t.valueOf()/this.valueOf()}size(t){return new U(t*this.valueOf())}};s(b,"UNKNOWN",new b(0)),s(b,"BIT128",new b(16)),s(b,"BIT64",new b(8)),s(b,"BIT32",new b(4)),s(b,"BIT16",new b(2)),s(b,"BIT8",new b(1)),s(b,"z",l.z.union([l.z.number().transform(t=>new b(t)),l.z.instanceof(Number).transform(t=>new b(t)),l.z.instanceof(b)]));let I=b;const N=class N{constructor(t,e){s(this,"start");s(this,"end");typeof t=="object"&&"start"in t?(this.start=new m(t.start),this.end=new m(t.end)):(this.start=new m(t),this.end=new m(e))}get span(){return new O(this.end.valueOf()-this.start.valueOf())}get isValid(){return this.start.valueOf()<=this.end.valueOf()}makeValid(){return this.isValid?this:this.swap()}get isZero(){return this.span.isZero}get numeric(){return{start:Number(this.start.valueOf()),end:Number(this.end.valueOf())}}swap(){return new N(this.end,this.start)}equals(t){return this.start.equals(t.start)&&this.end.equals(t.end)}toString(){return`${this.start.toString()} - ${this.end.toString()}`}toPrettyString(){return`${this.start.fString("preciseDate")} - ${this.span.toString()}`}overlapsWith(t,e=O.ZERO){t=t.makeValid();const n=this.makeValid();if(this.equals(t))return!0;if(t.end.equals(n.start)||n.end.equals(t.start))return!1;const i=m.max(n.start,t.start),f=m.min(n.end,t.end);return f.before(i)?!1:new O(f.sub(i)).greaterThanOrEqual(e)}roughlyEquals(t,e){let n=this.start.sub(t.start).valueOf(),i=this.end.sub(t.end).valueOf();return n<0&&(n=-n),i<0&&(i=-i),n<=e.valueOf()&&i<=e.valueOf()}contains(t){return t instanceof N?this.contains(t.start)&&this.contains(t.end):this.start.beforeEq(t)&&this.end.after(t)}boundBy(t){const e=new N(this.start,this.end);return t.start.after(this.start)&&(e.start=t.start),t.start.after(this.end)&&(e.end=t.start),t.end.before(this.end)&&(e.end=t.end),t.end.before(this.start)&&(e.start=t.end),e}};s(N,"MAX",new N(m.MIN,m.MAX)),s(N,"MIN",new N(m.MAX,m.MIN)),s(N,"ZERO",new N(m.ZERO,m.ZERO)),s(N,"z",l.z.union([l.z.object({start:m.z,end:m.z}).transform(t=>new N(t.start,t.end)),l.z.instanceof(N)]));let M=N;const lt=(o,t)=>o.start.before(t.start)?-1:o.start.after(t.start)?1:o.end.before(t.end)?-1:o.end.after(t.end)?1:0,r=class r extends String{constructor(t){if(t instanceof r||typeof t=="string"||typeof t.valueOf()=="string"){super(t.valueOf());return}const e=r.ARRAY_CONSTRUCTOR_DATA_TYPES.get(t.constructor.name);if(e!=null){super(e.valueOf());return}throw super(r.UNKNOWN.valueOf()),new Error(`unable to find data type for ${t.toString()}`)}get Array(){const t=r.ARRAY_CONSTRUCTORS.get(this.toString());if(t==null)throw new Error(`unable to find array constructor for ${this.valueOf()}`);return t}equals(t){return this.valueOf()===t.valueOf()}matches(...t){return t.some(e=>this.equals(e))}toString(){return this.valueOf()}get isVariable(){return this.equals(r.JSON)||this.equals(r.STRING)}get isNumeric(){return!this.isVariable&&!this.equals(r.UUID)}get isInteger(){const t=this.toString();return t.startsWith("int")||t.startsWith("uint")}get isFloat(){return this.toString().startsWith("float")}get density(){const t=r.DENSITIES.get(this.toString());if(t==null)throw new Error(`unable to find density for ${this.valueOf()}`);return t}get isUnsigned(){return this.equals(r.UINT8)||this.equals(r.UINT16)||this.equals(r.UINT32)||this.equals(r.UINT64)}get isSigned(){return this.equals(r.INT8)||this.equals(r.INT16)||this.equals(r.INT32)||this.equals(r.INT64)}canSafelyCastTo(t){return this.equals(t)?!0:!this.isNumeric||!t.isNumeric||this.isVariable||t.isVariable||this.isUnsigned&&t.isSigned?!1:this.isFloat?t.isFloat&&this.density.valueOf()<=t.density.valueOf():this.equals(r.INT32)&&t.equals(r.FLOAT64)||this.equals(r.INT8)&&t.equals(r.FLOAT32)?!0:this.isInteger&&t.isInteger?this.density.valueOf()<=t.density.valueOf()&&this.isUnsigned===t.isUnsigned:!1}canCastTo(t){return this.isNumeric&&t.isNumeric?!0:this.equals(t)}checkArray(t){return t.constructor===this.Array}toJSON(){return this.toString()}get usesBigInt(){return r.BIG_INT_TYPES.some(t=>t.equals(this))}};s(r,"UNKNOWN",new r("unknown")),s(r,"FLOAT64",new r("float64")),s(r,"FLOAT32",new r("float32")),s(r,"INT64",new r("int64")),s(r,"INT32",new r("int32")),s(r,"INT16",new r("int16")),s(r,"INT8",new r("int8")),s(r,"UINT64",new r("uint64")),s(r,"UINT32",new r("uint32")),s(r,"UINT16",new r("uint16")),s(r,"UINT8",new r("uint8")),s(r,"BOOLEAN",r.UINT8),s(r,"TIMESTAMP",new r("timestamp")),s(r,"UUID",new r("uuid")),s(r,"STRING",new r("string")),s(r,"JSON",new r("json")),s(r,"ARRAY_CONSTRUCTORS",new Map([[r.UINT8.toString(),Uint8Array],[r.UINT16.toString(),Uint16Array],[r.UINT32.toString(),Uint32Array],[r.UINT64.toString(),BigUint64Array],[r.FLOAT32.toString(),Float32Array],[r.FLOAT64.toString(),Float64Array],[r.INT8.toString(),Int8Array],[r.INT16.toString(),Int16Array],[r.INT32.toString(),Int32Array],[r.INT64.toString(),BigInt64Array],[r.TIMESTAMP.toString(),BigInt64Array],[r.STRING.toString(),Uint8Array],[r.JSON.toString(),Uint8Array],[r.UUID.toString(),Uint8Array]])),s(r,"ARRAY_CONSTRUCTOR_DATA_TYPES",new Map([[Uint8Array.name,r.UINT8],[Uint16Array.name,r.UINT16],[Uint32Array.name,r.UINT32],[BigUint64Array.name,r.UINT64],[Float32Array.name,r.FLOAT32],[Float64Array.name,r.FLOAT64],[Int8Array.name,r.INT8],[Int16Array.name,r.INT16],[Int32Array.name,r.INT32],[BigInt64Array.name,r.INT64]])),s(r,"DENSITIES",new Map([[r.UINT8.toString(),I.BIT8],[r.UINT16.toString(),I.BIT16],[r.UINT32.toString(),I.BIT32],[r.UINT64.toString(),I.BIT64],[r.FLOAT32.toString(),I.BIT32],[r.FLOAT64.toString(),I.BIT64],[r.INT8.toString(),I.BIT8],[r.INT16.toString(),I.BIT16],[r.INT32.toString(),I.BIT32],[r.INT64.toString(),I.BIT64],[r.TIMESTAMP.toString(),I.BIT64],[r.STRING.toString(),I.UNKNOWN],[r.JSON.toString(),I.UNKNOWN],[r.UUID.toString(),I.BIT128]])),s(r,"ALL",[r.UNKNOWN,r.FLOAT64,r.FLOAT32,r.INT64,r.INT32,r.INT16,r.INT8,r.UINT64,r.UINT32,r.UINT16,r.UINT8,r.TIMESTAMP,r.UUID,r.STRING,r.JSON]),s(r,"BIG_INT_TYPES",[r.INT64,r.UINT64,r.TIMESTAMP]),s(r,"z",l.z.union([l.z.string().transform(t=>new r(t)),l.z.instanceof(r)]));let g=r;const d=class d extends Number{constructor(t){super(t.valueOf())}largerThan(t){return this.valueOf()>t.valueOf()}smallerThan(t){return this.valueOf()<t.valueOf()}add(t){return d.bytes(this.valueOf()+t.valueOf())}sub(t){return d.bytes(this.valueOf()-t.valueOf())}truncate(t){return new d(Math.trunc(this.valueOf()/t.valueOf())*t.valueOf())}remainder(t){return d.bytes(this.valueOf()%t.valueOf())}get gigabytes(){return this.valueOf()/d.GIGABYTE.valueOf()}get megabytes(){return this.valueOf()/d.MEGABYTE.valueOf()}get kilobytes(){return this.valueOf()/d.KILOBYTE.valueOf()}get terabytes(){return this.valueOf()/d.TERABYTE.valueOf()}toString(){const t=this.truncate(d.TERABYTE),e=this.truncate(d.GIGABYTE),n=this.truncate(d.MEGABYTE),i=this.truncate(d.KILOBYTE),f=this.truncate(d.BYTE),h=t,p=e.sub(t),y=n.sub(e),S=i.sub(n),A=f.sub(i);let c="";return h.isZero||(c+=`${h.terabytes}TB `),p.isZero||(c+=`${p.gigabytes}GB `),y.isZero||(c+=`${y.megabytes}MB `),S.isZero||(c+=`${S.kilobytes}KB `),(!A.isZero||c==="")&&(c+=`${A.valueOf()}B`),c.trim()}static bytes(t=1){return new d(t)}static kilobytes(t=1){return d.bytes(t.valueOf()*1e3)}static megabytes(t=1){return d.kilobytes(t.valueOf()*1e3)}static gigabytes(t=1){return d.megabytes(t.valueOf()*1e3)}static terabytes(t){return d.gigabytes(t.valueOf()*1e3)}get isZero(){return this.valueOf()===0}};s(d,"BYTE",new d(1)),s(d,"KILOBYTE",d.kilobytes(1)),s(d,"MEGABYTE",d.megabytes(1)),s(d,"GIGABYTE",d.gigabytes(1)),s(d,"TERABYTE",d.terabytes(1)),s(d,"ZERO",new d(0)),s(d,"z",l.z.union([l.z.number().transform(t=>new d(t)),l.z.instanceof(d)]));let U=d;const ft=l.z.union([l.z.instanceof(Uint8Array),l.z.instanceof(Uint16Array),l.z.instanceof(Uint32Array),l.z.instanceof(BigUint64Array),l.z.instanceof(Float32Array),l.z.instanceof(Float64Array),l.z.instanceof(Int8Array),l.z.instanceof(Int16Array),l.z.instanceof(Int32Array),l.z.instanceof(BigInt64Array)]),P=o=>{const t=typeof o;return t==="string"||t==="number"||t==="boolean"||t==="bigint"||o instanceof m||o instanceof O||o instanceof Date},Q=(o,t,e,n=0)=>o.usesBigInt&&!t.usesBigInt?Number(e)-Number(n):!o.usesBigInt&&t.usesBigInt?BigInt(e.valueOf())-BigInt(n.valueOf()):x(e,-n).valueOf(),_=o=>o==null?!1:Array.isArray(o)||o instanceof ArrayBuffer||ArrayBuffer.isView(o)&&!(o instanceof DataView)||o instanceof q?!0:P(o),E=-1,$={[Symbol.iterator]:()=>$,next:()=>({done:!0,value:void 0})},ct=l.z.string().transform(o=>new Uint8Array(atob(o).split("").map(t=>t.charCodeAt(0))).buffer),ht=l.z.union([l.z.null(),l.z.undefined()]).transform(()=>new Uint8Array().buffer),F=10,T=class T{constructor(t){s(this,"key","");s(this,"isSynnaxSeries",!0);s(this,"dataType");s(this,"sampleOffset");s(this,"gl");s(this,"_data");s(this,"_timeRange");s(this,"alignment",0n);s(this,"_cachedMin");s(this,"_cachedMax");s(this,"writePos",E);s(this,"_refCount",0);s(this,"_cachedLength");s(this,"_cachedIndexes");_(t)&&(t={data:t});const{dataType:e,timeRange:n,sampleOffset:i=0,glBufferUsage:f="static",alignment:h=0n,key:p=K()}=t,y=t.data??[];if(y instanceof T||typeof y=="object"&&"isSynnaxSeries"in y&&y.isSynnaxSeries===!0){const c=y;this.key=c.key,this.dataType=c.dataType,this.sampleOffset=c.sampleOffset,this.gl=c.gl,this._data=c._data,this._timeRange=c._timeRange,this.alignment=c.alignment,this._cachedMin=c._cachedMin,this._cachedMax=c._cachedMax,this.writePos=c.writePos,this._refCount=c._refCount,this._cachedLength=c._cachedLength;return}const S=P(y),A=Array.isArray(y);if(e!=null)this.dataType=new g(e);else{if(y instanceof ArrayBuffer)throw new Error("cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type.");if(A||S){let c=y;if(!S){if(y.length===0)throw new Error("cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type.");c=y[0]}if(typeof c=="string")this.dataType=g.STRING;else if(typeof c=="number")this.dataType=g.FLOAT64;else if(typeof c=="bigint")this.dataType=g.INT64;else if(typeof c=="boolean")this.dataType=g.BOOLEAN;else if(c instanceof m||c instanceof Date||c instanceof m)this.dataType=g.TIMESTAMP;else if(typeof c=="object")this.dataType=g.JSON;else throw new Error(`cannot infer data type of ${typeof c} when constructing a Series from a JS array`)}else this.dataType=new g(y)}if(!A&&!S)this._data=y;else{let c=S?[y]:y;const R=c[0];(R instanceof m||R instanceof Date||R instanceof O)&&(c=c.map(C=>new m(C).valueOf())),this.dataType.equals(g.STRING)?(this._cachedLength=c.length,this._data=new TextEncoder().encode(`${c.join(`
1
+ "use strict";var tt=Object.defineProperty;var et=(o,t,e)=>t in o?tt(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var s=(o,t,e)=>et(o,typeof t!="symbol"?t+"":t,e);const l=require("zod"),D=require("./index-CnclyYpG.cjs"),nt=require("./index-Dd8DLyMx.cjs"),rt=require("./index-BG3Scw3G.cjs"),w=require("./bounds-8aFLdbEj.cjs");require("./box-Daep7oxr.cjs");require("./dimensions-zMcb9pMk.cjs");require("./base-B48bPNx5.cjs");require("./location-BIet4Mig.cjs");require("./scale-Bzjm1mhv.cjs");require("./xy-Budz-qz-.cjs");const st=require("./zodutil-DFJyyQd2.cjs");let it=(o,t=21)=>(e=t)=>{let n="",i=e|0;for(;i--;)n+=o[Math.random()*o.length|0];return n};const at="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",K=it(at,11),ut=Object.freeze(Object.defineProperty({__proto__:null,id:K},Symbol.toStringTag,{value:"Module"})),ot=l.z.enum(["static","dynamic"]),X=(o,t)=>{const e=new m(t);if(![O.DAY,O.HOUR,O.MINUTE,O.SECOND,O.MILLISECOND,O.MICROSECOND,O.NANOSECOND].some(i=>i.equals(e)))throw new Error("Invalid argument for remainder. Must be an even TimeSpan or Timestamp");const n=o.valueOf()%e.valueOf();return o instanceof m?new m(n):new O(n)},a=class a{constructor(t,e="UTC"){s(this,"value");s(this,"encodeValue",!0);if(t==null)this.value=a.now().valueOf();else if(t instanceof Date)this.value=BigInt(t.getTime())*a.MILLISECOND.valueOf();else if(typeof t=="string")this.value=a.parseDateTimeString(t,e).valueOf();else if(Array.isArray(t))this.value=a.parseDate(t);else{let n=BigInt(0);t instanceof Number&&(t=t.valueOf()),e==="local"&&(n=a.utcOffset.valueOf()),typeof t=="number"&&(isFinite(t)?t=Math.trunc(t):(isNaN(t)&&(t=0),t===1/0?t=a.MAX:t=a.MIN)),this.value=BigInt(t.valueOf())+n}}static parseDate([t=1970,e=1,n=1]){const i=new Date(t,e-1,n,0,0,0,0);return new a(BigInt(i.getTime())*a.MILLISECOND.valueOf()).truncate(a.DAY).valueOf()}encode(){return this.value.toString()}valueOf(){return this.value}static parseTimeString(t,e="UTC"){const[n,i,f]=t.split(":");let h="00",p="00";f!=null&&([h,p]=f.split("."));let y=a.hours(parseInt(n??"00")).add(a.minutes(parseInt(i??"00"))).add(a.seconds(parseInt(h??"00"))).add(a.milliseconds(parseInt(p??"00")));return e==="local"&&(y=y.add(a.utcOffset)),y.valueOf()}static parseDateTimeString(t,e="UTC"){if(!t.includes("/")&&!t.includes("-"))return a.parseTimeString(t,e);const n=new Date(t);return t.includes(":")||n.setUTCHours(0,0,0,0),new a(BigInt(n.getTime())*a.MILLISECOND.valueOf(),e).valueOf()}fString(t="ISO",e="UTC"){switch(t){case"ISODate":return this.toISOString(e).slice(0,10);case"ISOTime":return this.toISOString(e).slice(11,23);case"time":return this.timeString(!1,e);case"preciseTime":return this.timeString(!0,e);case"date":return this.dateString();case"preciseDate":return`${this.dateString()} ${this.timeString(!0,e)}`;case"dateTime":return`${this.dateString()} ${this.timeString(!1,e)}`;default:return this.toISOString(e)}}toISOString(t="UTC"){return t==="UTC"?this.date().toISOString():this.sub(a.utcOffset).date().toISOString()}timeString(t=!1,e="UTC"){const n=this.toISOString(e);return t?n.slice(11,23):n.slice(11,19)}dateString(){const t=this.date(),e=t.toLocaleString("default",{month:"short"}),n=t.toLocaleString("default",{day:"numeric"});return`${e} ${n}`}static get utcOffset(){return new O(BigInt(new Date().getTimezoneOffset())*a.MINUTE.valueOf())}static since(t){return new a().span(t)}date(){return new Date(this.milliseconds)}equals(t){return this.valueOf()===new a(t).valueOf()}span(t){return this.range(t).span}range(t){return new M(this,t).makeValid()}spanRange(t){return this.range(this.add(t)).makeValid()}get isZero(){return this.valueOf()===BigInt(0)}after(t){return this.valueOf()>new a(t).valueOf()}afterEq(t){return this.valueOf()>=new a(t).valueOf()}before(t){return this.valueOf()<new a(t).valueOf()}beforeEq(t){return this.valueOf()<=new a(t).valueOf()}add(t){return new a(this.valueOf()+BigInt(t.valueOf()))}sub(t){return new a(this.valueOf()-BigInt(t.valueOf()))}get hours(){return Number(this.valueOf())/Number(O.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(O.MINUTE.valueOf())}get days(){return Number(this.valueOf())/Number(O.DAY.valueOf())}get seconds(){return Number(this.valueOf())/Number(O.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(a.MILLISECOND.valueOf())}get year(){return this.date().getFullYear()}setYear(t){const e=this.date();return e.setFullYear(t),new a(e)}get month(){return this.date().getMonth()}setMonth(t){const e=this.date();return e.setMonth(t),new a(e)}get day(){return this.date().getDate()}setDay(t){const e=this.date();return e.setDate(t),new a(e)}get hour(){return this.date().getHours()}setHour(t){const e=this.date();return e.setHours(t),new a(e)}get minute(){return this.date().getMinutes()}setMinute(t){const e=this.date();return e.setMinutes(t),new a(e)}get second(){return this.date().getSeconds()}setSecond(t){const e=this.date();return e.setSeconds(t),new a(e)}get millisecond(){return this.date().getMilliseconds()}setMillisecond(t){const e=this.date();return e.setMilliseconds(t),new a(e)}toString(){return this.date().toISOString()}remainder(t){return X(this,t)}get isToday(){return this.truncate(O.DAY).equals(a.now().truncate(O.DAY))}truncate(t){return this.sub(this.remainder(t))}static now(){return new a(new Date)}static max(...t){let e=a.MIN;for(const n of t){const i=new a(n);i.after(e)&&(e=i)}return e}static min(...t){let e=a.MAX;for(const n of t){const i=new a(n);i.before(e)&&(e=i)}return e}static nanoseconds(t){return new a(t)}static microseconds(t){return a.nanoseconds(t*1e3)}static milliseconds(t){return a.microseconds(t*1e3)}static seconds(t){return a.milliseconds(t*1e3)}static minutes(t){return a.seconds(t*60)}static hours(t){return a.minutes(t*60)}static days(t){return a.hours(t*24)}};s(a,"NANOSECOND",a.nanoseconds(1)),s(a,"MICROSECOND",a.microseconds(1)),s(a,"MILLISECOND",a.milliseconds(1)),s(a,"SECOND",a.seconds(1)),s(a,"MINUTE",a.minutes(1)),s(a,"HOUR",a.hours(1)),s(a,"DAY",a.days(1)),s(a,"MAX",new a((1n<<63n)-1n)),s(a,"MIN",new a(0)),s(a,"ZERO",new a(0)),s(a,"z",l.z.union([l.z.object({value:l.z.bigint()}).transform(t=>new a(t.value)),l.z.string().transform(t=>new a(BigInt(t))),l.z.instanceof(Number).transform(t=>new a(t)),l.z.number().transform(t=>new a(t)),l.z.instanceof(a)]));let m=a;const u=class u{constructor(t){s(this,"value");s(this,"encodeValue",!0);typeof t=="number"&&(t=Math.trunc(t.valueOf())),this.value=BigInt(t.valueOf())}static fromSeconds(t){return t instanceof u?t:t instanceof L?t.period:t instanceof m?new u(t):["number","bigint"].includes(typeof t)?u.seconds(t):new u(t)}static fromMilliseconds(t){return t instanceof u?t:t instanceof L?t.period:t instanceof m?new u(t):["number","bigint"].includes(typeof t)?u.milliseconds(t):new u(t)}encode(){return this.value.toString()}valueOf(){return this.value}lessThan(t){return this.valueOf()<new u(t).valueOf()}greaterThan(t){return this.valueOf()>new u(t).valueOf()}lessThanOrEqual(t){return this.valueOf()<=new u(t).valueOf()}greaterThanOrEqual(t){return this.valueOf()>=new u(t).valueOf()}remainder(t){return X(this,t)}truncate(t){return new u(BigInt(Math.trunc(Number(this.valueOf()/t.valueOf())))*t.valueOf())}toString(){const t=this.truncate(u.DAY),e=this.truncate(u.HOUR),n=this.truncate(u.MINUTE),i=this.truncate(u.SECOND),f=this.truncate(u.MILLISECOND),h=this.truncate(u.MICROSECOND),p=this.truncate(u.NANOSECOND),y=t,S=e.sub(t),A=n.sub(e),c=i.sub(n),R=f.sub(i),C=h.sub(f),Y=p.sub(h);let B="";return y.isZero||(B+=`${y.days}d `),S.isZero||(B+=`${S.hours}h `),A.isZero||(B+=`${A.minutes}m `),c.isZero||(B+=`${c.seconds}s `),R.isZero||(B+=`${R.milliseconds}ms `),C.isZero||(B+=`${C.microseconds}µs `),Y.isZero||(B+=`${Y.nanoseconds}ns`),B.trim()}mult(t){return new u(this.valueOf()*BigInt(t))}get days(){return Number(this.valueOf())/Number(u.DAY.valueOf())}get hours(){return Number(this.valueOf())/Number(u.HOUR.valueOf())}get minutes(){return Number(this.valueOf())/Number(u.MINUTE.valueOf())}get seconds(){return Number(this.valueOf())/Number(u.SECOND.valueOf())}get milliseconds(){return Number(this.valueOf())/Number(u.MILLISECOND.valueOf())}get microseconds(){return Number(this.valueOf())/Number(u.MICROSECOND.valueOf())}get nanoseconds(){return Number(this.valueOf())}get isZero(){return this.valueOf()===BigInt(0)}equals(t){return this.valueOf()===new u(t).valueOf()}add(t){return new u(this.valueOf()+new u(t).valueOf())}sub(t){return new u(this.valueOf()-new u(t).valueOf())}static nanoseconds(t=1){return new u(t)}static microseconds(t=1){return u.nanoseconds(w.mult(t,1e3))}static milliseconds(t=1){return u.microseconds(w.mult(t,1e3))}static seconds(t=1){return u.milliseconds(w.mult(t,1e3))}static minutes(t=1){return u.seconds(w.mult(t,60))}static hours(t){return u.minutes(w.mult(t,60))}static days(t){return u.hours(w.mult(t,24))}};s(u,"NANOSECOND",u.nanoseconds(1)),s(u,"MICROSECOND",u.microseconds(1)),s(u,"MILLISECOND",u.milliseconds(1)),s(u,"SECOND",u.seconds(1)),s(u,"MINUTE",u.minutes(1)),s(u,"HOUR",u.hours(1)),s(u,"DAY",u.days(1)),s(u,"MAX",new u((1n<<63n)-1n)),s(u,"MIN",new u(0)),s(u,"ZERO",new u(0)),s(u,"z",l.z.union([l.z.object({value:l.z.bigint()}).transform(t=>new u(t.value)),l.z.string().transform(t=>new u(BigInt(t))),l.z.instanceof(Number).transform(t=>new u(t)),l.z.number().transform(t=>new u(t)),l.z.instanceof(u)]));let O=u;const v=class v extends Number{constructor(t){t instanceof Number?super(t.valueOf()):super(t)}toString(){return`${this.valueOf()} Hz`}equals(t){return this.valueOf()===new v(t).valueOf()}get period(){return O.seconds(1/this.valueOf())}sampleCount(t){return new O(t).seconds*this.valueOf()}byteCount(t,e){return this.sampleCount(t)*new I(e).valueOf()}span(t){return O.seconds(t/this.valueOf())}byteSpan(t,e){return this.span(t.valueOf()/e.valueOf())}static hz(t){return new v(t)}static khz(t){return v.hz(t*1e3)}};s(v,"z",l.z.union([l.z.number().transform(t=>new v(t)),l.z.instanceof(Number).transform(t=>new v(t)),l.z.instanceof(v)]));let L=v;const b=class b extends Number{constructor(t){t instanceof Number?super(t.valueOf()):super(t)}length(t){return t.valueOf()/this.valueOf()}size(t){return new U(t*this.valueOf())}};s(b,"UNKNOWN",new b(0)),s(b,"BIT128",new b(16)),s(b,"BIT64",new b(8)),s(b,"BIT32",new b(4)),s(b,"BIT16",new b(2)),s(b,"BIT8",new b(1)),s(b,"z",l.z.union([l.z.number().transform(t=>new b(t)),l.z.instanceof(Number).transform(t=>new b(t)),l.z.instanceof(b)]));let I=b;const N=class N{constructor(t,e){s(this,"start");s(this,"end");typeof t=="object"&&"start"in t?(this.start=new m(t.start),this.end=new m(t.end)):(this.start=new m(t),this.end=new m(e))}get span(){return new O(this.end.valueOf()-this.start.valueOf())}get isValid(){return this.start.valueOf()<=this.end.valueOf()}makeValid(){return this.isValid?this:this.swap()}get isZero(){return this.span.isZero}get numeric(){return{start:Number(this.start.valueOf()),end:Number(this.end.valueOf())}}swap(){return new N(this.end,this.start)}equals(t){return this.start.equals(t.start)&&this.end.equals(t.end)}toString(){return`${this.start.toString()} - ${this.end.toString()}`}toPrettyString(){return`${this.start.fString("preciseDate")} - ${this.span.toString()}`}overlapsWith(t,e=O.ZERO){t=t.makeValid();const n=this.makeValid();if(this.equals(t))return!0;if(t.end.equals(n.start)||n.end.equals(t.start))return!1;const i=m.max(n.start,t.start),f=m.min(n.end,t.end);return f.before(i)?!1:new O(f.sub(i)).greaterThanOrEqual(e)}roughlyEquals(t,e){let n=this.start.sub(t.start).valueOf(),i=this.end.sub(t.end).valueOf();return n<0&&(n=-n),i<0&&(i=-i),n<=e.valueOf()&&i<=e.valueOf()}contains(t){return t instanceof N?this.contains(t.start)&&this.contains(t.end):this.start.beforeEq(t)&&this.end.after(t)}boundBy(t){const e=new N(this.start,this.end);return t.start.after(this.start)&&(e.start=t.start),t.start.after(this.end)&&(e.end=t.start),t.end.before(this.end)&&(e.end=t.end),t.end.before(this.start)&&(e.start=t.end),e}};s(N,"MAX",new N(m.MIN,m.MAX)),s(N,"MIN",new N(m.MAX,m.MIN)),s(N,"ZERO",new N(m.ZERO,m.ZERO)),s(N,"z",l.z.union([l.z.object({start:m.z,end:m.z}).transform(t=>new N(t.start,t.end)),l.z.instanceof(N)]));let M=N;const lt=(o,t)=>o.start.before(t.start)?-1:o.start.after(t.start)?1:o.end.before(t.end)?-1:o.end.after(t.end)?1:0,r=class r extends String{constructor(t){if(t instanceof r||typeof t=="string"||typeof t.valueOf()=="string"){super(t.valueOf());return}const e=r.ARRAY_CONSTRUCTOR_DATA_TYPES.get(t.constructor.name);if(e!=null){super(e.valueOf());return}throw super(r.UNKNOWN.valueOf()),new Error(`unable to find data type for ${t.toString()}`)}get Array(){const t=r.ARRAY_CONSTRUCTORS.get(this.toString());if(t==null)throw new Error(`unable to find array constructor for ${this.valueOf()}`);return t}equals(t){return this.valueOf()===t.valueOf()}matches(...t){return t.some(e=>this.equals(e))}toString(){return this.valueOf()}get isVariable(){return this.equals(r.JSON)||this.equals(r.STRING)}get isNumeric(){return!this.isVariable&&!this.equals(r.UUID)}get isInteger(){const t=this.toString();return t.startsWith("int")||t.startsWith("uint")}get isFloat(){return this.toString().startsWith("float")}get density(){const t=r.DENSITIES.get(this.toString());if(t==null)throw new Error(`unable to find density for ${this.valueOf()}`);return t}get isUnsigned(){return this.equals(r.UINT8)||this.equals(r.UINT16)||this.equals(r.UINT32)||this.equals(r.UINT64)}get isSigned(){return this.equals(r.INT8)||this.equals(r.INT16)||this.equals(r.INT32)||this.equals(r.INT64)}canSafelyCastTo(t){return this.equals(t)?!0:!this.isNumeric||!t.isNumeric||this.isVariable||t.isVariable||this.isUnsigned&&t.isSigned?!1:this.isFloat?t.isFloat&&this.density.valueOf()<=t.density.valueOf():this.equals(r.INT32)&&t.equals(r.FLOAT64)||this.equals(r.INT8)&&t.equals(r.FLOAT32)?!0:this.isInteger&&t.isInteger?this.density.valueOf()<=t.density.valueOf()&&this.isUnsigned===t.isUnsigned:!1}canCastTo(t){return this.isNumeric&&t.isNumeric?!0:this.equals(t)}checkArray(t){return t.constructor===this.Array}toJSON(){return this.toString()}get usesBigInt(){return r.BIG_INT_TYPES.some(t=>t.equals(this))}};s(r,"UNKNOWN",new r("unknown")),s(r,"FLOAT64",new r("float64")),s(r,"FLOAT32",new r("float32")),s(r,"INT64",new r("int64")),s(r,"INT32",new r("int32")),s(r,"INT16",new r("int16")),s(r,"INT8",new r("int8")),s(r,"UINT64",new r("uint64")),s(r,"UINT32",new r("uint32")),s(r,"UINT16",new r("uint16")),s(r,"UINT8",new r("uint8")),s(r,"BOOLEAN",r.UINT8),s(r,"TIMESTAMP",new r("timestamp")),s(r,"UUID",new r("uuid")),s(r,"STRING",new r("string")),s(r,"JSON",new r("json")),s(r,"ARRAY_CONSTRUCTORS",new Map([[r.UINT8.toString(),Uint8Array],[r.UINT16.toString(),Uint16Array],[r.UINT32.toString(),Uint32Array],[r.UINT64.toString(),BigUint64Array],[r.FLOAT32.toString(),Float32Array],[r.FLOAT64.toString(),Float64Array],[r.INT8.toString(),Int8Array],[r.INT16.toString(),Int16Array],[r.INT32.toString(),Int32Array],[r.INT64.toString(),BigInt64Array],[r.TIMESTAMP.toString(),BigInt64Array],[r.STRING.toString(),Uint8Array],[r.JSON.toString(),Uint8Array],[r.UUID.toString(),Uint8Array]])),s(r,"ARRAY_CONSTRUCTOR_DATA_TYPES",new Map([[Uint8Array.name,r.UINT8],[Uint16Array.name,r.UINT16],[Uint32Array.name,r.UINT32],[BigUint64Array.name,r.UINT64],[Float32Array.name,r.FLOAT32],[Float64Array.name,r.FLOAT64],[Int8Array.name,r.INT8],[Int16Array.name,r.INT16],[Int32Array.name,r.INT32],[BigInt64Array.name,r.INT64]])),s(r,"DENSITIES",new Map([[r.UINT8.toString(),I.BIT8],[r.UINT16.toString(),I.BIT16],[r.UINT32.toString(),I.BIT32],[r.UINT64.toString(),I.BIT64],[r.FLOAT32.toString(),I.BIT32],[r.FLOAT64.toString(),I.BIT64],[r.INT8.toString(),I.BIT8],[r.INT16.toString(),I.BIT16],[r.INT32.toString(),I.BIT32],[r.INT64.toString(),I.BIT64],[r.TIMESTAMP.toString(),I.BIT64],[r.STRING.toString(),I.UNKNOWN],[r.JSON.toString(),I.UNKNOWN],[r.UUID.toString(),I.BIT128]])),s(r,"ALL",[r.UNKNOWN,r.FLOAT64,r.FLOAT32,r.INT64,r.INT32,r.INT16,r.INT8,r.UINT64,r.UINT32,r.UINT16,r.UINT8,r.TIMESTAMP,r.UUID,r.STRING,r.JSON]),s(r,"BIG_INT_TYPES",[r.INT64,r.UINT64,r.TIMESTAMP]),s(r,"z",l.z.union([l.z.string().transform(t=>new r(t)),l.z.instanceof(r)]));let g=r;const d=class d extends Number{constructor(t){super(t.valueOf())}largerThan(t){return this.valueOf()>t.valueOf()}smallerThan(t){return this.valueOf()<t.valueOf()}add(t){return d.bytes(this.valueOf()+t.valueOf())}sub(t){return d.bytes(this.valueOf()-t.valueOf())}truncate(t){return new d(Math.trunc(this.valueOf()/t.valueOf())*t.valueOf())}remainder(t){return d.bytes(this.valueOf()%t.valueOf())}get gigabytes(){return this.valueOf()/d.GIGABYTE.valueOf()}get megabytes(){return this.valueOf()/d.MEGABYTE.valueOf()}get kilobytes(){return this.valueOf()/d.KILOBYTE.valueOf()}get terabytes(){return this.valueOf()/d.TERABYTE.valueOf()}toString(){const t=this.truncate(d.TERABYTE),e=this.truncate(d.GIGABYTE),n=this.truncate(d.MEGABYTE),i=this.truncate(d.KILOBYTE),f=this.truncate(d.BYTE),h=t,p=e.sub(t),y=n.sub(e),S=i.sub(n),A=f.sub(i);let c="";return h.isZero||(c+=`${h.terabytes}TB `),p.isZero||(c+=`${p.gigabytes}GB `),y.isZero||(c+=`${y.megabytes}MB `),S.isZero||(c+=`${S.kilobytes}KB `),(!A.isZero||c==="")&&(c+=`${A.valueOf()}B`),c.trim()}static bytes(t=1){return new d(t)}static kilobytes(t=1){return d.bytes(t.valueOf()*1e3)}static megabytes(t=1){return d.kilobytes(t.valueOf()*1e3)}static gigabytes(t=1){return d.megabytes(t.valueOf()*1e3)}static terabytes(t){return d.gigabytes(t.valueOf()*1e3)}get isZero(){return this.valueOf()===0}};s(d,"BYTE",new d(1)),s(d,"KILOBYTE",d.kilobytes(1)),s(d,"MEGABYTE",d.megabytes(1)),s(d,"GIGABYTE",d.gigabytes(1)),s(d,"TERABYTE",d.terabytes(1)),s(d,"ZERO",new d(0)),s(d,"z",l.z.union([l.z.number().transform(t=>new d(t)),l.z.instanceof(d)]));let U=d;const ft=l.z.union([l.z.instanceof(Uint8Array),l.z.instanceof(Uint16Array),l.z.instanceof(Uint32Array),l.z.instanceof(BigUint64Array),l.z.instanceof(Float32Array),l.z.instanceof(Float64Array),l.z.instanceof(Int8Array),l.z.instanceof(Int16Array),l.z.instanceof(Int32Array),l.z.instanceof(BigInt64Array)]),P=o=>{const t=typeof o;return t==="string"||t==="number"||t==="boolean"||t==="bigint"||o instanceof m||o instanceof O||o instanceof Date},Q=(o,t,e,n=0)=>o.usesBigInt&&!t.usesBigInt?Number(e)-Number(n):!o.usesBigInt&&t.usesBigInt?BigInt(e.valueOf())-BigInt(n.valueOf()):x(e,-n).valueOf(),_=o=>o==null?!1:Array.isArray(o)||o instanceof ArrayBuffer||ArrayBuffer.isView(o)&&!(o instanceof DataView)||o instanceof q?!0:P(o),E=-1,$={[Symbol.iterator]:()=>$,next:()=>({done:!0,value:void 0})},ct=l.z.string().transform(o=>new Uint8Array(atob(o).split("").map(t=>t.charCodeAt(0))).buffer),ht=l.z.union([l.z.null(),l.z.undefined()]).transform(()=>new Uint8Array().buffer),F=10,T=class T{constructor(t){s(this,"key","");s(this,"isSynnaxSeries",!0);s(this,"dataType");s(this,"sampleOffset");s(this,"gl");s(this,"_data");s(this,"_timeRange");s(this,"alignment",0n);s(this,"_cachedMin");s(this,"_cachedMax");s(this,"writePos",E);s(this,"_refCount",0);s(this,"_cachedLength");s(this,"_cachedIndexes");_(t)&&(t={data:t});const{dataType:e,timeRange:n,sampleOffset:i=0,glBufferUsage:f="static",alignment:h=0n,key:p=K()}=t,y=t.data??[];if(y instanceof T||typeof y=="object"&&"isSynnaxSeries"in y&&y.isSynnaxSeries===!0){const c=y;this.key=c.key,this.dataType=c.dataType,this.sampleOffset=c.sampleOffset,this.gl=c.gl,this._data=c._data,this._timeRange=c._timeRange,this.alignment=c.alignment,this._cachedMin=c._cachedMin,this._cachedMax=c._cachedMax,this.writePos=c.writePos,this._refCount=c._refCount,this._cachedLength=c._cachedLength;return}const S=P(y),A=Array.isArray(y);if(e!=null)this.dataType=new g(e);else{if(y instanceof ArrayBuffer)throw new Error("cannot infer data type from an ArrayBuffer instance when constructing a Series. Please provide a data type.");if(A||S){let c=y;if(!S){if(y.length===0)throw new Error("cannot infer data type from a zero length JS array when constructing a Series. Please provide a data type.");c=y[0]}if(typeof c=="string")this.dataType=g.STRING;else if(typeof c=="number")this.dataType=g.FLOAT64;else if(typeof c=="bigint")this.dataType=g.INT64;else if(typeof c=="boolean")this.dataType=g.BOOLEAN;else if(c instanceof m||c instanceof Date||c instanceof m)this.dataType=g.TIMESTAMP;else if(typeof c=="object")this.dataType=g.JSON;else throw new Error(`cannot infer data type of ${typeof c} when constructing a Series from a JS array`)}else this.dataType=new g(y)}if(!A&&!S)this._data=y;else{let c=S?[y]:y;const R=c[0];(R instanceof m||R instanceof Date||R instanceof O)&&(c=c.map(C=>new m(C).valueOf())),this.dataType.equals(g.STRING)?(this._cachedLength=c.length,this._data=new TextEncoder().encode(`${c.join(`
2
2
  `)}
3
3
  `).buffer):this.dataType.equals(g.JSON)?(this._cachedLength=c.length,this._data=new TextEncoder().encode(`${c.map(C=>D.JSON_CODEC.encodeString(C)).join(`
4
4
  `)}
package/dist/spatial.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./bounds-8aFLdbEj.cjs"),i=require("./box-BZ6d2d5A.cjs"),e=require("./dimensions-zMcb9pMk.cjs"),n=require("./direction-D7qoo_GJ.cjs"),s=require("./location-BIet4Mig.cjs"),t=require("./position-CvSNZkSD.cjs"),r=require("./scale-BTgf0Mr-.cjs"),c=require("./spatial-BOhaO8xN.cjs"),u=require("./xy-Budz-qz-.cjs");exports.bounds=o.bounds;exports.box=i.box;exports.dimensions=e.dimensions;exports.direction=n.direction;exports.location=s.location;exports.position=t.position;exports.scale=r.scale;exports.spatial=c.spatial;exports.xy=u.xy;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./bounds-8aFLdbEj.cjs"),i=require("./box-Daep7oxr.cjs"),e=require("./dimensions-zMcb9pMk.cjs"),n=require("./direction-D7qoo_GJ.cjs"),s=require("./location-BIet4Mig.cjs"),t=require("./position-96CBRKEd.cjs"),r=require("./scale-Bzjm1mhv.cjs"),c=require("./spatial-BOhaO8xN.cjs"),u=require("./xy-Budz-qz-.cjs");exports.bounds=o.bounds;exports.box=i.box;exports.dimensions=e.dimensions;exports.direction=n.direction;exports.location=s.location;exports.position=t.position;exports.scale=r.scale;exports.spatial=c.spatial;exports.xy=u.xy;
package/dist/spatial.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { b as s } from "./bounds-BtccGJW0.js";
2
- import { b as t } from "./box-Cto-5Uxu.js";
2
+ import { b as t } from "./box-DPJAbf32.js";
3
3
  import { d as p } from "./dimensions-D-1PnJVI.js";
4
4
  import { d as m } from "./direction-CScbfCdT.js";
5
- import { l as i } from "./location-C5Ot4MVG.js";
6
- import { p as d } from "./position-GeF1oEYk.js";
7
- import { s as l } from "./scale-Dh1UNRoC.js";
5
+ import { l as i } from "./location-BVkZhfQG.js";
6
+ import { p as d } from "./position-uVDP52PM.js";
7
+ import { s as l } from "./scale-D_UMXSZN.js";
8
8
  import { s as u } from "./spatial-DozyssiN.js";
9
9
  import { x as g } from "./xy-DxjPL2DZ.js";
10
10
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"breaker.d.ts","sourceRoot":"","sources":["../../../src/breaker/breaker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;EAIxB,CAAC;AAEH,MAAM,WAAW,MAAO,SAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,EAAE,UAAU,CAAC;IAC7E,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,MAAM,aAAa,MAAM,KAAQ,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAcpE,CAAC"}
1
+ {"version":3,"file":"breaker.d.ts","sourceRoot":"","sources":["../../../src/breaker/breaker.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;EAIxB,CAAC;AAEH,MAAM,WAAW,MAAO,SAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,EAAE,UAAU,CAAC;IAC7E,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,MAAM,aAAa,MAAM,KAAQ,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAcpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/breaker/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/breaker/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"caseconv.d.ts","sourceRoot":"","sources":["../../../src/caseconv/caseconv.ts"],"names":[],"mappings":"AA+DA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAhDpB,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CAgD0B,CAAC;AAO7D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GA7DpB,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CA6D0B,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,MAGxC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;CAC9B;AAsCD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GArIf,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CAqIgB,CAAC"}
1
+ {"version":3,"file":"caseconv.d.ts","sourceRoot":"","sources":["../../../src/caseconv/caseconv.ts"],"names":[],"mappings":"AAiEA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAhDpB,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CAgD0B,CAAC;AAU7D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAhEpB,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CAgE0B,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,MAGxC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;CAC9B;AAyCD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GA3If,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK,CA2IgB,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
- export declare const OPERATING_SYSTEMS: readonly ["MacOS", "Windows", "Linux", "Docker"];
3
- export declare const osZ: z.ZodUnion<[z.ZodEnum<["MacOS", "Windows", "Linux", "Docker"]>, z.ZodEffects<z.ZodEnum<["macos", "windows", "linux", "docker"]>, "MacOS" | "Windows" | "Linux" | "Docker", "macos" | "windows" | "linux" | "docker">]>;
2
+ export declare const OPERATING_SYSTEMS: readonly ["macOS", "Windows", "Linux"];
3
+ export declare const osZ: z.ZodUnion<[z.ZodEnum<["macOS", "Windows", "Linux"]>, z.ZodEffects<z.ZodEnum<["macos", "windows", "linux"]>, "macOS" | "Windows" | "Linux", "macos" | "windows" | "linux">]>;
4
4
  export type OS = (typeof OPERATING_SYSTEMS)[number];
5
- export type RequiredGetOSProps = {
5
+ export interface RequiredGetOSProps {
6
6
  force?: OS;
7
7
  default?: OS;
8
- };
9
- export type OptionalGetOSProps = {
10
- force?: OS | undefined;
8
+ }
9
+ export interface OptionalGetOSProps {
10
+ force?: OS;
11
11
  default: OS;
12
- };
12
+ }
13
13
  export type GetOSProps = RequiredGetOSProps | OptionalGetOSProps;
14
14
  export interface GetOS {
15
15
  (props?: RequiredGetOSProps): OS;
@@ -1 +1 @@
1
- {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../src/runtime/os.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,kDAAmD,CAAC;AAWlF,eAAO,MAAM,GAAG,wNAMb,CAAC;AACJ,MAAM,MAAM,EAAE,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACvB,OAAO,EAAE,EAAE,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAajE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,CAAC;IACjC,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,KAAK,EAMZ,KAAK,CAAC"}
1
+ {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../src/runtime/os.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,wCAAyC,CAAC;AAWxE,eAAO,MAAM,GAAG,8KAMb,CAAC;AACJ,MAAM,MAAM,EAAE,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAWpD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,EAAE,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,EAAE,EAAE,CAAC;CACb;AAED,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAIjE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,CAAC;IACjC,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,KAAK,EAAE,KAMT,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sleep/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sleep/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../src/sleep/sleep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAY,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,KAAK,SAAgB,aAAa,KAAG,OAAO,CAAC,IAAI,CAG3D,CAAC"}
1
+ {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../src/sleep/sleep.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAY,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,KAAK,SAAgB,aAAa,KAAG,OAAO,CAAC,IAAI,CAG3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * as testutil from './testutil';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testutil/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const toString: (value: unknown) => string;
2
+ //# sourceMappingURL=testutil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testutil.d.ts","sourceRoot":"","sources":["../../../src/testutil/testutil.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,QAAQ,UAAW,OAAO,KAAG,MAItC,CAAC"}
@@ -11,7 +11,7 @@ interface URLProps {
11
11
  * an empty string is returned.
12
12
  * @returns the query string.
13
13
  */
14
- export declare const buildQueryString: (request: Record<string, unknown>, prefix?: string) => string;
14
+ export declare const buildQueryString: (request: Record<string, string>, prefix?: string) => string;
15
15
  /**
16
16
  * URL is a simple class for building and extending URLs.
17
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/url/url.ts"],"names":[],"mappings":"AASA,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,YAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACxB,MAAM,KACb,MAWF,CAAC;AAEF;;GAEG;AACH,qBAAa,GAAG;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;gBACS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAa,EAAE,UAAe,EAAE,EAAE,QAAQ;IAOpE;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG;IAStC;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;IAOxB,kDAAkD;IAClD,QAAQ,IAAI,MAAM;IAMlB,MAAM,CAAC,QAAQ,CAAC,OAAO,MAAyC;CACjE"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/url/url.ts"],"names":[],"mappings":"AASA,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,YAClB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WACvB,MAAM,KACb,MAWF,CAAC;AAEF;;GAEG;AACH,qBAAa,GAAG;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;gBACS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAa,EAAE,UAAe,EAAE,EAAE,QAAQ;IAOpE;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG;IAStC;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;IAOxB,kDAAkD;IAClD,QAAQ,IAAI,MAAM;IAMlB,MAAM,CAAC,QAAQ,CAAC,OAAO,MAAyC;CACjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"zodutil.d.ts","sourceRoot":"","sources":["../../../src/zodutil/zodutil.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,MAQ9C,CAAC;AAYL,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CASG,CAAC;AAEzE,eAAO,MAAM,MAAM,sEAA8C,CAAC"}
1
+ {"version":3,"file":"zodutil.d.ts","sourceRoot":"","sources":["../../../src/zodutil/zodutil.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,MAQ9C,CAAC;AAYL,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CASpB,CAAC;AAElD,eAAO,MAAM,MAAM,sEAA8C,CAAC"}
package/dist/telem.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./series-BMhEEJZL.cjs");exports.DataType=e.DataType;exports.Density=e.Density;exports.MultiSeries=e.MultiSeries;exports.Rate=e.Rate;exports.Series=e.Series;exports.Size=e.Size;exports.TimeRange=e.TimeRange;exports.TimeSpan=e.TimeSpan;exports.TimeStamp=e.TimeStamp;exports.addSamples=e.addSamples;exports.convertDataType=e.convertDataType;exports.isCrudeSeries=e.isCrudeSeries;exports.isTelemValue=e.isTelemValue;exports.sortTimeRange=e.sortTimeRange;exports.typedArrayZ=e.typedArrayZ;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./series-DuOxifEy.cjs");exports.DataType=e.DataType;exports.Density=e.Density;exports.MultiSeries=e.MultiSeries;exports.Rate=e.Rate;exports.Series=e.Series;exports.Size=e.Size;exports.TimeRange=e.TimeRange;exports.TimeSpan=e.TimeSpan;exports.TimeStamp=e.TimeStamp;exports.addSamples=e.addSamples;exports.convertDataType=e.convertDataType;exports.isCrudeSeries=e.isCrudeSeries;exports.isTelemValue=e.isTelemValue;exports.sortTimeRange=e.sortTimeRange;exports.typedArrayZ=e.typedArrayZ;
package/dist/telem.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as s, D as i, M as t, R as r, S as m, e as S, c as T, b as p, T as d, a as n, g as y, i as l, f as o, s as D, t as R } from "./series-DxDIugLj.js";
1
+ import { d as s, D as i, M as t, R as r, S as m, e as S, c as T, b as p, T as d, a as n, g as y, i as l, f as o, s as D, t as R } from "./series-Cwc_z2OS.js";
2
2
  export {
3
3
  s as DataType,
4
4
  i as Density,
package/eslint.config.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synnaxlabs/x",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "type": "module",
5
5
  "description": "Common Utilities for Synnax Labs",
6
6
  "repository": "https://github.com/synnaxlabs/synnax/tree/main/x/go",
@@ -23,8 +23,8 @@
23
23
  "vite": "^6.0.7",
24
24
  "vitest": "^2.1.8",
25
25
  "@synnaxlabs/tsconfig": "0.0.2",
26
- "@synnaxlabs/vite-plugin": "0.0.1",
27
- "eslint-config-synnaxlabs": "0.0.1"
26
+ "eslint-config-synnaxlabs": "0.0.1",
27
+ "@synnaxlabs/vite-plugin": "0.0.1"
28
28
  },
29
29
  "main": "./dist/index.cjs",
30
30
  "module": "./dist/index.js",
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,3 +1,12 @@
1
+ // Copyright 2025 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
1
10
  import { describe, expect, it, vi } from "vitest";
2
11
 
3
12
  import { breaker } from "@/breaker";
@@ -1,3 +1,12 @@
1
+ // Copyright 2025 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
1
10
  import { z } from "zod";
2
11
 
3
12
  import { sleep } from "@/sleep";
@@ -1 +1,10 @@
1
+ // Copyright 2025 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
1
10
  export * as breaker from "@/breaker/breaker";
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -7,6 +7,8 @@
7
7
  // License, use of this software will be governed by the Apache License, Version 2.0,
8
8
  // included in the file licenses/APL.txt.
9
9
 
10
+ import { type UnknownRecord } from "@/record";
11
+
10
12
  const snakeToCamelStr = (str: string): string => {
11
13
  const c = str.replace(/_[a-z]/g, (m) => m[1].toUpperCase());
12
14
  // if both first and second characters are upper case, leave as is
@@ -29,8 +31,8 @@ const createConverter = (
29
31
  if (Array.isArray(obj)) return obj.map((v) => converter(v, opt)) as V;
30
32
  if (!isValidObject(obj)) return obj;
31
33
  opt = validateOptions(opt);
32
- const res: any = {};
33
- const anyObj = obj as any;
34
+ const res: UnknownRecord = {};
35
+ const anyObj = obj as UnknownRecord;
34
36
  Object.keys(anyObj).forEach((key) => {
35
37
  let value = anyObj[key];
36
38
  const nkey = f(key);
@@ -39,7 +41,7 @@ const createConverter = (
39
41
  if (!belongToTypes(value, opt.keepTypesOnRecursion))
40
42
  value = converter(value, opt);
41
43
  } else if (opt.recursiveInArray && isArrayObject(value))
42
- value = [...value].map((v) => {
44
+ value = [...(value as unknown[])].map((v) => {
43
45
  let ret = v;
44
46
  if (isValidObject(v)) {
45
47
  // object in array
@@ -48,7 +50,7 @@ const createConverter = (
48
50
  } else if (isArrayObject(v)) {
49
51
  // array in array
50
52
  // workaround by using an object holding array value
51
- const temp: any = converter({ key: v }, opt);
53
+ const temp: UnknownRecord = converter({ key: v }, opt);
52
54
  ret = temp.key;
53
55
  }
54
56
  return ret;
@@ -56,7 +58,7 @@ const createConverter = (
56
58
  res[nkey] = value;
57
59
  });
58
60
 
59
- return res;
61
+ return res as V;
60
62
  };
61
63
  return converter;
62
64
  };
@@ -76,7 +78,10 @@ export const snakeToCamel = createConverter(snakeToCamelStr);
76
78
  const camelToSnakeStr = (str: string): string =>
77
79
  // Don't convert the first character and don't convert a character that is after a
78
80
  // non-alphanumeric character
79
- str.replace(/([a-z0-9])([A-Z])/g, (_, p1, p2) => `${p1}_${p2.toLowerCase()}`);
81
+ str.replace(
82
+ /([a-z0-9])([A-Z])/g,
83
+ (_, p1: string, p2: string) => `${p1}_${p2.toLowerCase()}`,
84
+ );
80
85
 
81
86
  /**
82
87
  * Converts a camelCase string to snake_case.
@@ -146,7 +151,10 @@ const belongToTypes = (obj: any, types?: any[]): boolean =>
146
151
  const toKebabStr = (str: string): string =>
147
152
  str
148
153
  .replace(/\s+/g, "-")
149
- .replace(/([a-z0-9])([A-Z])/g, (_, p1, p2) => `${p1}-${p2.toLowerCase()}`)
154
+ .replace(
155
+ /([a-z0-9])([A-Z])/g,
156
+ (_, p1: string, p2: string) => `${p1}-${p2.toLowerCase()}`,
157
+ )
150
158
  .toLowerCase();
151
159
 
152
160
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/deep/copy.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/deep/equal.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/deep/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Synnax Labs, Inc.
1
+ // Copyright 2025 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.