@synnaxlabs/x 0.36.0 → 0.37.0
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.
- package/.turbo/turbo-build.log +20 -20
- package/dist/binary.cjs +1 -1
- package/dist/binary.js +1 -1
- package/dist/{box-BpSX4si6.cjs → box-BHIyGhI_.cjs} +1 -1
- package/dist/{box-CYXc9-qp.js → box-CfhGfJJH.js} +1 -1
- package/dist/box.cjs +1 -1
- package/dist/box.js +1 -1
- package/dist/caseconv.cjs +1 -1
- package/dist/caseconv.js +1 -1
- package/dist/external-CghVMqCA.cjs +1 -0
- package/dist/external-DKQKvgIi.js +30 -0
- package/dist/index-BfDeGfej.js +41 -0
- package/dist/{index-CYxQwEdX.cjs → index-CnclyYpG.cjs} +1 -1
- package/dist/index-Dd8DLyMx.cjs +1 -0
- package/dist/{index-BBa2mWG1.js → index-OHIRoCei.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +82 -82
- package/dist/{location-DLP2ZS0o.cjs → location-BIet4Mig.cjs} +1 -1
- package/dist/{location-Cn1ByVTZ.js → location-C5Ot4MVG.js} +1 -1
- package/dist/location.cjs +1 -1
- package/dist/location.js +1 -1
- package/dist/{position-DJXB-pDS.js → position-BXFz7I9G.js} +2 -2
- package/dist/{position-JCN6-sJC.cjs → position-CFiSGTz9.cjs} +1 -1
- package/dist/position.cjs +1 -1
- package/dist/position.js +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{scale-BI4wJF3b.cjs → scale-BESJN9LG.cjs} +1 -1
- package/dist/{scale-rZ1YKDFy.js → scale-CV3O6tkY.js} +2 -2
- package/dist/scale.cjs +1 -1
- package/dist/scale.js +1 -1
- package/dist/series-BbxR21uO.cjs +11 -0
- package/dist/{series-CnEQe1dh.js → series-C_B2hAp9.js} +6 -6
- package/dist/spatial.cjs +1 -1
- package/dist/spatial.js +4 -4
- package/dist/src/breaker/breaker.d.ts +1 -1
- package/dist/src/breaker/breaker.d.ts.map +1 -1
- package/dist/src/caseconv/caseconv.d.ts +12 -6
- package/dist/src/caseconv/caseconv.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/runtime/os.d.ts +1 -1
- package/dist/src/runtime/os.d.ts.map +1 -1
- package/dist/src/sleep/sleep.d.ts.map +1 -1
- package/dist/src/telem/series.d.ts.map +1 -1
- package/dist/telem.cjs +1 -1
- package/dist/telem.js +1 -1
- package/package.json +7 -7
- package/src/breaker/breaker.spec.ts +3 -4
- package/src/breaker/breaker.ts +3 -2
- package/src/caseconv/caseconv.spec.ts +16 -0
- package/src/caseconv/caseconv.ts +34 -5
- package/src/index.ts +1 -1
- package/src/runtime/os.ts +17 -1
- package/src/sleep/sleep.ts +1 -1
- package/src/telem/series.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/external-B3XSLDq5.cjs +0 -1
- package/dist/external-sVtvYJS6.js +0 -23
- package/dist/index-YsO0EMN8.cjs +0 -1
- package/dist/index-eue4dSQX.js +0 -45
- package/dist/series-BN9CILsQ.cjs +0 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/x@0.
|
|
2
|
+
> @synnaxlabs/x@0.37.0 build /home/runner/work/synnax/synnax/x/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[34m Synnax - Production mode[0m
|
|
@@ -39,27 +39,27 @@ computing gzip size...
|
|
|
39
39
|
[2mdist/[22m[36mtelem.js [39m[1m[2m 0.45 kB[22m[1m[22m[2m │ gzip: 0.26 kB[22m
|
|
40
40
|
[2mdist/[22m[36mspatial.js [39m[1m[2m 0.58 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
|
|
41
41
|
[2mdist/[22m[36mdirection-CScbfCdT.js [39m[1m[2m 0.65 kB[22m[1m[22m[2m │ gzip: 0.37 kB[22m
|
|
42
|
-
[2mdist/[22m[36mexternal-sVtvYJS6.js [39m[1m[2m 0.86 kB[22m[1m[22m[2m │ gzip: 0.51 kB[22m
|
|
43
42
|
[2mdist/[22m[36mzodutil-DI4gVZkT.js [39m[1m[2m 0.91 kB[22m[1m[22m[2m │ gzip: 0.54 kB[22m
|
|
43
|
+
[2mdist/[22m[36mexternal-DKQKvgIi.js [39m[1m[2m 1.03 kB[22m[1m[22m[2m │ gzip: 0.57 kB[22m
|
|
44
44
|
[2mdist/[22m[36mworker.js [39m[1m[2m 1.17 kB[22m[1m[22m[2m │ gzip: 0.53 kB[22m
|
|
45
45
|
[2mdist/[22m[36mbase-DnZzEvvz.js [39m[1m[2m 1.21 kB[22m[1m[22m[2m │ gzip: 0.51 kB[22m
|
|
46
46
|
[2mdist/[22m[36mobserve.js [39m[1m[2m 1.41 kB[22m[1m[22m[2m │ gzip: 0.60 kB[22m
|
|
47
47
|
[2mdist/[22m[36mdimensions-D-1PnJVI.js [39m[1m[2m 1.49 kB[22m[1m[22m[2m │ gzip: 0.66 kB[22m
|
|
48
48
|
[2mdist/[22m[36mpath-DD6ytXzr.js [39m[1m[2m 1.79 kB[22m[1m[22m[2m │ gzip: 0.72 kB[22m
|
|
49
|
-
[2mdist/[22m[36mindex-
|
|
49
|
+
[2mdist/[22m[36mindex-BfDeGfej.js [39m[1m[2m 1.87 kB[22m[1m[22m[2m │ gzip: 0.87 kB[22m
|
|
50
50
|
[2mdist/[22m[36murl.js [39m[1m[2m 1.98 kB[22m[1m[22m[2m │ gzip: 0.87 kB[22m
|
|
51
|
-
[2mdist/[22m[36mposition-
|
|
52
|
-
[2mdist/[22m[36mlocation-
|
|
51
|
+
[2mdist/[22m[36mposition-BXFz7I9G.js [39m[1m[2m 2.25 kB[22m[1m[22m[2m │ gzip: 1.06 kB[22m
|
|
52
|
+
[2mdist/[22m[36mlocation-C5Ot4MVG.js [39m[1m[2m 2.81 kB[22m[1m[22m[2m │ gzip: 1.16 kB[22m
|
|
53
53
|
[2mdist/[22m[36mindex-HQonyH7n.js [39m[1m[2m 2.90 kB[22m[1m[22m[2m │ gzip: 1.14 kB[22m
|
|
54
|
-
[2mdist/[22m[36mindex-
|
|
54
|
+
[2mdist/[22m[36mindex-OHIRoCei.js [39m[1m[2m 2.95 kB[22m[1m[22m[2m │ gzip: 1.12 kB[22m
|
|
55
55
|
[2mdist/[22m[36mdeep.js [39m[1m[2m 3.23 kB[22m[1m[22m[2m │ gzip: 1.28 kB[22m
|
|
56
56
|
[2mdist/[22m[36mxy-DQdccWlc.js [39m[1m[2m 3.76 kB[22m[1m[22m[2m │ gzip: 1.43 kB[22m
|
|
57
|
-
[2mdist/[22m[36mbox-
|
|
57
|
+
[2mdist/[22m[36mbox-CfhGfJJH.js [39m[1m[2m 6.14 kB[22m[1m[22m[2m │ gzip: 2.17 kB[22m
|
|
58
58
|
[2mdist/[22m[36mbounds-BtccGJW0.js [39m[1m[2m 6.52 kB[22m[1m[22m[2m │ gzip: 2.06 kB[22m
|
|
59
|
-
[2mdist/[22m[36mscale-
|
|
60
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m 8.96 kB[22m[1m[22m[2m │ gzip: 3.
|
|
61
|
-
[2mdist/[22m[36mseries-
|
|
62
|
-
[vite:dts] Declaration files built in
|
|
59
|
+
[2mdist/[22m[36mscale-CV3O6tkY.js [39m[1m[2m 6.82 kB[22m[1m[22m[2m │ gzip: 2.03 kB[22m
|
|
60
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m 8.96 kB[22m[1m[22m[2m │ gzip: 3.33 kB[22m
|
|
61
|
+
[2mdist/[22m[36mseries-C_B2hAp9.js [39m[1m[2m63.13 kB[22m[1m[22m[2m │ gzip: 13.87 kB[22m
|
|
62
|
+
[vite:dts] Declaration files built in 4053ms.
|
|
63
63
|
|
|
64
64
|
Generated an empty chunk: "destructor".
|
|
65
65
|
[2mdist/[22m[36mdestructor.cjs [39m[1m[2m 0.01 kB[22m[1m[22m[2m │ gzip: 0.03 kB[22m
|
|
@@ -90,24 +90,24 @@ Generated an empty chunk: "destructor".
|
|
|
90
90
|
[2mdist/[22m[36mdirection-D7qoo_GJ.cjs [39m[1m[2m 0.53 kB[22m[1m[22m[2m │ gzip: 0.34 kB[22m
|
|
91
91
|
[2mdist/[22m[36mtelem.cjs [39m[1m[2m 0.58 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
|
|
92
92
|
[2mdist/[22m[36mspatial.cjs [39m[1m[2m 0.63 kB[22m[1m[22m[2m │ gzip: 0.33 kB[22m
|
|
93
|
-
[2mdist/[22m[36mexternal-B3XSLDq5.cjs [39m[1m[2m 0.68 kB[22m[1m[22m[2m │ gzip: 0.45 kB[22m
|
|
94
93
|
[2mdist/[22m[36mzodutil-BRjUdYAv.cjs [39m[1m[2m 0.72 kB[22m[1m[22m[2m │ gzip: 0.46 kB[22m
|
|
94
|
+
[2mdist/[22m[36mexternal-CghVMqCA.cjs [39m[1m[2m 0.82 kB[22m[1m[22m[2m │ gzip: 0.50 kB[22m
|
|
95
95
|
[2mdist/[22m[36mworker.cjs [39m[1m[2m 0.94 kB[22m[1m[22m[2m │ gzip: 0.49 kB[22m
|
|
96
96
|
[2mdist/[22m[36mobserve.cjs [39m[1m[2m 1.00 kB[22m[1m[22m[2m │ gzip: 0.47 kB[22m
|
|
97
97
|
[2mdist/[22m[36murl.cjs [39m[1m[2m 1.10 kB[22m[1m[22m[2m │ gzip: 0.60 kB[22m
|
|
98
98
|
[2mdist/[22m[36mdimensions-zMcb9pMk.cjs [39m[1m[2m 1.17 kB[22m[1m[22m[2m │ gzip: 0.58 kB[22m
|
|
99
|
-
[2mdist/[22m[36mindex-YsO0EMN8.cjs [39m[1m[2m 1.34 kB[22m[1m[22m[2m │ gzip: 0.72 kB[22m
|
|
100
99
|
[2mdist/[22m[36mpath-1tZLZ4AN.cjs [39m[1m[2m 1.35 kB[22m[1m[22m[2m │ gzip: 0.66 kB[22m
|
|
101
100
|
[2mdist/[22m[36mbase-B48bPNx5.cjs [39m[1m[2m 1.38 kB[22m[1m[22m[2m │ gzip: 0.57 kB[22m
|
|
102
|
-
[2mdist/[22m[
|
|
101
|
+
[2mdist/[22m[36mindex-Dd8DLyMx.cjs [39m[1m[2m 1.38 kB[22m[1m[22m[2m │ gzip: 0.71 kB[22m
|
|
102
|
+
[2mdist/[22m[36mposition-CFiSGTz9.cjs [39m[1m[2m 1.71 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m
|
|
103
103
|
[2mdist/[22m[36mindex-h-QAL9T1.cjs [39m[1m[2m 2.23 kB[22m[1m[22m[2m │ gzip: 1.02 kB[22m
|
|
104
|
-
[2mdist/[22m[36mindex-
|
|
104
|
+
[2mdist/[22m[36mindex-CnclyYpG.cjs [39m[1m[2m 2.30 kB[22m[1m[22m[2m │ gzip: 1.01 kB[22m
|
|
105
105
|
[2mdist/[22m[36mdeep.cjs [39m[1m[2m 2.39 kB[22m[1m[22m[2m │ gzip: 1.08 kB[22m
|
|
106
|
-
[2mdist/[22m[36mlocation-
|
|
106
|
+
[2mdist/[22m[36mlocation-BIet4Mig.cjs [39m[1m[2m 2.40 kB[22m[1m[22m[2m │ gzip: 1.05 kB[22m
|
|
107
107
|
[2mdist/[22m[36mxy-LADI2wVU.cjs [39m[1m[2m 2.75 kB[22m[1m[22m[2m │ gzip: 1.28 kB[22m
|
|
108
|
-
[2mdist/[22m[36mscale-
|
|
109
|
-
[2mdist/[22m[36mbox-
|
|
108
|
+
[2mdist/[22m[36mscale-BESJN9LG.cjs [39m[1m[2m 4.37 kB[22m[1m[22m[2m │ gzip: 1.60 kB[22m
|
|
109
|
+
[2mdist/[22m[36mbox-BHIyGhI_.cjs [39m[1m[2m 4.75 kB[22m[1m[22m[2m │ gzip: 1.95 kB[22m
|
|
110
110
|
[2mdist/[22m[36mbounds-8aFLdbEj.cjs [39m[1m[2m 4.89 kB[22m[1m[22m[2m │ gzip: 1.80 kB[22m
|
|
111
111
|
[2mdist/[22m[36mindex.cjs [39m[1m[2m 7.38 kB[22m[1m[22m[2m │ gzip: 2.91 kB[22m
|
|
112
|
-
[2mdist/[22m[36mseries-
|
|
113
|
-
[32m✓ built in
|
|
112
|
+
[2mdist/[22m[36mseries-BbxR21uO.cjs [39m[1m[2m36.01 kB[22m[1m[22m[2m │ gzip: 9.57 kB[22m
|
|
113
|
+
[32m✓ built in 4.62s[39m
|
package/dist/binary.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CnclyYpG.cjs");exports.binary=e.encoder;
|
package/dist/binary.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("zod"),z=require("./direction-D7qoo_GJ.cjs"),y=require("./location-
|
|
1
|
+
"use strict";const u=require("zod"),z=require("./direction-D7qoo_GJ.cjs"),y=require("./location-BIet4Mig.cjs"),i=require("./xy-LADI2wVU.cjs"),p=require("./base-B48bPNx5.cjs"),O=u.z.union([u.z.number(),u.z.string()]),H=u.z.object({top:O,left:O,width:O,height:O}),S=u.z.object({left:u.z.number(),top:u.z.number(),right:u.z.number(),bottom:u.z.number()}),N=u.z.object({one:p.xy,two:p.xy,root:y.corner}),I={one:i.ZERO,two:i.ZERO,root:y.TOP_LEFT},v={one:i.ZERO,two:i.ONE,root:y.BOTTOM_LEFT},R=(t,o)=>({one:t.one,two:t.two,root:o??t.root}),c=(t,o,e=0,n=0,s)=>{const r={one:{...i.ZERO},two:{...i.ZERO},root:s??y.TOP_LEFT};if(typeof t=="number"){if(typeof o!="number")throw new Error("Box constructor called with invalid arguments");return r.one={x:t,y:o},r.two={x:r.one.x+e,y:r.one.y+n},r}return"one"in t&&"two"in t&&"root"in t?{...t,root:s??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(r.one={x:t.left,y:t.top},r.two={x:t.right,y:t.bottom},r):(r.one=t,o==null?r.two={x:r.one.x+e,y:r.one.y+n}:typeof o=="number"?r.two={x:r.one.x+o,y:r.one.y+e}:"width"in o?r.two={x:r.one.x+o.width,y:r.one.y+o.height}:"signedWidth"in o?r.two={x:r.one.x+o.signedWidth,y:r.one.y+o.signedHeight}:r.two=o,r))},D=(t,o,e)=>{const n=c(t);if(typeof o=="string"){if(e==null)throw new Error("Invalid arguments for resize");const s=z.construct(o);return c(n.one,void 0,s==="x"?e:l(n),s==="y"?e:w(n),n.root)}return c(n.one,o,void 0,void 0,n.root)},G=(t,o,e=!0)=>{const n=c(t);let s=(r,x)=>r<x;return e&&(s=(r,x)=>r<=x),"one"in o?s(d(n),d(o))&&s(f(o),f(n))&&s(a(n),a(o))&&s(h(o),h(n)):s(d(n),o.x)&&s(o.x,f(n))&&s(a(n),o.y)&&s(o.y,h(n))},X=(t,o)=>i.equals(t.one,o.one)&&i.equals(t.two,o.two)&&y.xyEquals(t.root,o.root),q=t=>({width:l(t),height:w(t)}),$=t=>({signedWidth:b(t),signedHeight:T(t)}),U=t=>({top:a(t),left:d(t),width:l(t),height:w(t)}),M=(t,o,e=!1)=>{const n=z.construct(o)==="y"?T(t):b(t);return e?n:Math.abs(n)},_=(t,o)=>{const e=c(t);return{x:o.x==="center"?E(e).x:g(e,o.x),y:o.y==="center"?E(e).y:g(e,o.y)}},g=(t,o)=>{const e=c(t),n=y.xyCouple(e.root).includes(o)?Math.min:Math.max;return p.X_LOCATIONS.includes(o)?n(e.one.x,e.two.x):n(e.one.y,e.two.y)},Y=t=>t.one.x===t.two.x&&t.one.y===t.two.y,l=t=>M(t,"x"),w=t=>M(t,"y"),b=t=>{const o=c(t);return o.two.x-o.one.x},T=t=>{const o=c(t);return o.two.y-o.one.y},C=t=>_(t,y.TOP_LEFT),k=t=>_(t,y.TOP_RIGHT),J=t=>_(t,y.BOTTOM_LEFT),K=t=>_(t,y.BOTTOM_RIGHT),f=t=>g(t,"right"),h=t=>g(t,"bottom"),d=t=>g(t,"left"),a=t=>g(t,"top"),E=t=>i.translate(C(t),{x:b(t)/2,y:T(t)/2}),B=t=>{const o=c(t);return o.root.x==="left"?d(o):f(o)},L=t=>{const o=c(t);return o.root.y==="top"?a(o):h(o)},Q=t=>({x:B(t),y:L(t)}),P=t=>{const o=c(t);return{lower:o.one.x,upper:o.two.x}},Z=t=>{const o=c(t);return{lower:o.one.y,upper:o.two.y}},V=(t,o)=>R(t,o),tt=(t,o)=>{const e=c(t),n=p.X_LOCATIONS.includes(o)?"x":p.Y_LOCATIONS.includes(o)?"y":null;if(n===null)throw new Error(`Invalid location: ${y.location}`);const s=o==="top"||o==="left"?Math.min:Math.max,r={...e.one},x={...e.two};return r[n]=s(e.one[n],e.two[n]),x[n]=s(e.one[n],e.two[n]),[r,x]},ot=(t,o)=>{const e=c(t),n=c(o),s=B(n)+(l(n)-l(e))/2,r=L(n)+(w(n)-w(e))/2;return c({x:s,y:r},q(e))},j=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,nt=t=>l(t)/w(t),et=(t,o,e)=>{if(typeof o=="string"){if(e==null)throw new Error("Undefined amount passed into box.translate");const s=z.construct(o);o=i.construct(s,e)}const n=c(t);return c(i.translate(n.one,o),i.translate(n.two,o),void 0,void 0,n.root)},A=(t,o)=>{const e=Math.max(d(t),d(o)),n=Math.max(a(t),a(o)),s=Math.min(f(t),f(o)),r=Math.min(h(t),h(o));return e>s||n>r?I:c({x:e,y:n},{x:s,y:r},void 0,void 0,t.root)},W=t=>l(t)*w(t),rt=(t,o)=>{const e=c(t);return c(i.truncate(e.one,o),i.truncate(e.two,o),void 0,void 0,e.root)},F=(t,o,e,n,s,r)=>{const x={x:t,y:o},m={x:t+e,y:o+n};return s.x!==r.x&&(s.x==="center"?(x.x-=e/2,m.x-=e/2):(x.x-=e,m.x-=e)),s.y!==r.y&&(s.y==="center"?(x.y-=n/2,m.y-=n/2):(x.y-=n,m.y-=n)),c(x,m,void 0,void 0,r)},st=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:v,ZERO:I,area:W,areaIsZero:Y,aspect:nt,bottom:h,bottomLeft:J,bottomRight:K,box:N,center:E,construct:c,constructWithAlternateRoot:F,contains:G,copy:R,css:U,cssBox:H,dim:M,dims:q,domRect:S,edgePoints:tt,equals:X,height:w,intersection:A,isBox:j,left:d,loc:g,positionInCenter:ot,reRoot:V,resize:D,right:f,root:Q,signedDims:$,signedHeight:T,signedWidth:b,top:a,topLeft:C,topRight:k,translate:et,truncate:rt,width:l,x:B,xBounds:P,xyLoc:_,y:L,yBounds:Z},Symbol.toStringTag,{value:"Module"}));exports.area=W;exports.box=st;exports.construct=c;exports.constructWithAlternateRoot=F;exports.height=w;exports.intersection=A;exports.isBox=j;exports.width=l;exports.xBounds=P;exports.xyLoc=_;exports.yBounds=Z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as x } from "zod";
|
|
2
2
|
import { c as M } from "./direction-CScbfCdT.js";
|
|
3
|
-
import { c as S, T as E, B as H, b as Z, d as q, e as v, f as N, l as D } from "./location-
|
|
3
|
+
import { c as S, T as E, B as H, b as Z, d as q, e as v, f as N, l as D } from "./location-C5Ot4MVG.js";
|
|
4
4
|
import { Z as p, O as F, e as $, t as O, c as G, a as C } from "./xy-DQdccWlc.js";
|
|
5
5
|
import { x as j, X as P, Y as X } from "./base-DnZzEvvz.js";
|
|
6
6
|
const h = x.union([x.number(), x.string()]), Y = x.object({
|
package/dist/box.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./box-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./box-BHIyGhI_.cjs");exports.box=e.box;
|
package/dist/box.js
CHANGED
package/dist/caseconv.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dd8DLyMx.cjs");exports.caseconv=e.caseconv;
|
package/dist/caseconv.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("zod"),t=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",u=t(),s=["MacOS","Windows","Linux","Docker"],c=["macos","windows","linux","docker"],d={macos:"MacOS",windows:"Windows",linux:"Linux",docker:"Docker"},l=r.z.enum(s).or(r.z.enum(c).transform(e=>d[e]));let n;const f=()=>{if(typeof window>"u")return;const e=window.navigator.userAgent.toLowerCase();if(e.includes("mac"))return"MacOS";if(e.includes("win"))return"Windows";if(e.includes("linux"))return"Linux"},w=(e={})=>{const{force:o,default:i}=e;return o??n??(n=f(),n??i)},a=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:s,RUNTIME:u,detect:t,getOS:w,osZ:l},Symbol.toStringTag,{value:"Module"}));exports.external=a;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z as r } from "zod";
|
|
2
|
+
const t = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", u = t(), i = ["MacOS", "Windows", "Linux", "Docker"], c = ["macos", "windows", "linux", "docker"], d = {
|
|
3
|
+
macos: "MacOS",
|
|
4
|
+
windows: "Windows",
|
|
5
|
+
linux: "Linux",
|
|
6
|
+
docker: "Docker"
|
|
7
|
+
}, l = r.enum(i).or(
|
|
8
|
+
r.enum(c).transform((e) => d[e])
|
|
9
|
+
);
|
|
10
|
+
let n;
|
|
11
|
+
const f = () => {
|
|
12
|
+
if (typeof window > "u") return;
|
|
13
|
+
const e = window.navigator.userAgent.toLowerCase();
|
|
14
|
+
if (e.includes("mac")) return "MacOS";
|
|
15
|
+
if (e.includes("win")) return "Windows";
|
|
16
|
+
if (e.includes("linux")) return "Linux";
|
|
17
|
+
}, w = (e = {}) => {
|
|
18
|
+
const { force: o, default: s } = e;
|
|
19
|
+
return o ?? n ?? (n = f(), n ?? s);
|
|
20
|
+
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
OPERATING_SYSTEMS: i,
|
|
23
|
+
RUNTIME: u,
|
|
24
|
+
detect: t,
|
|
25
|
+
getOS: w,
|
|
26
|
+
osZ: l
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
28
|
+
export {
|
|
29
|
+
S as e
|
|
30
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const m = (e) => {
|
|
2
|
+
const r = e.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
|
|
3
|
+
return r.length > 1 && r[0] === r[0].toUpperCase() && r[1] === r[1].toUpperCase() || r.length === 0 ? r : r[0].toLowerCase() + r.slice(1);
|
|
4
|
+
}, u = (e) => {
|
|
5
|
+
const r = (n, s = o) => {
|
|
6
|
+
if (typeof n == "string") return e(n);
|
|
7
|
+
if (Array.isArray(n)) return n.map((c) => r(c, s));
|
|
8
|
+
if (!l(n)) return n;
|
|
9
|
+
s = v(s);
|
|
10
|
+
const y = {}, f = n;
|
|
11
|
+
return Object.keys(f).forEach((c) => {
|
|
12
|
+
let t = f[c];
|
|
13
|
+
const g = e(c);
|
|
14
|
+
s.recursive && (l(t) ? A(t, s.keepTypesOnRecursion) || (t = r(t, s)) : s.recursiveInArray && p(t) && (t = [...t].map((a) => {
|
|
15
|
+
let i = a;
|
|
16
|
+
return l(a) ? A(i, s.keepTypesOnRecursion) || (i = r(a, s)) : p(a) && (i = r({ key: a }, s).key), i;
|
|
17
|
+
}))), y[g] = t;
|
|
18
|
+
}), y;
|
|
19
|
+
};
|
|
20
|
+
return r;
|
|
21
|
+
}, C = u(m), O = (e) => (
|
|
22
|
+
// Don't convert the first character and don't convert a character that is after a
|
|
23
|
+
// non-alphanumeric character
|
|
24
|
+
e.replace(/([a-z0-9])([A-Z])/g, (r, n, s) => `${n}_${s.toLowerCase()}`)
|
|
25
|
+
), k = u(O), T = (e) => e.length === 0 ? e : e[0].toUpperCase() + e.slice(1), o = {
|
|
26
|
+
recursive: !0,
|
|
27
|
+
recursiveInArray: !0,
|
|
28
|
+
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
29
|
+
}, v = (e = o) => (e.recursive == null ? e = o : e.recursiveInArray ?? (e.recursiveInArray = !1), e), p = (e) => e != null && Array.isArray(e), l = (e) => e != null && typeof e == "object" && !Array.isArray(e), A = (e, r) => (r || []).some((n) => e instanceof n), S = (e) => e.replace(/\s+/g, "-").replace(/([a-z0-9])([A-Z])/g, (r, n, s) => `${n}-${s.toLowerCase()}`).toLowerCase(), _ = u(S), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
|
+
__proto__: null,
|
|
31
|
+
camelToSnake: k,
|
|
32
|
+
capitalize: T,
|
|
33
|
+
snakeToCamel: C,
|
|
34
|
+
toKebab: _
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
36
|
+
export {
|
|
37
|
+
d as a,
|
|
38
|
+
k as b,
|
|
39
|
+
T as c,
|
|
40
|
+
C as s
|
|
41
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var O=(o,e,t)=>e in o?y(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>O(o,typeof e!="symbol"?e+"":e,t);const f=require("./index-
|
|
1
|
+
"use strict";var y=Object.defineProperty;var O=(o,e,t)=>e in o?y(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>O(o,typeof e!="symbol"?e+"":e,t);const f=require("./index-Dd8DLyMx.cjs"),p=require("./identity.cjs");class S{constructor(){i(this,"contentType","application/json");i(this,"decoder");i(this,"encoder");this.decoder=new TextDecoder,this.encoder=new TextEncoder}encode(e){return this.encoder.encode(this.encodeString(e)).buffer}decode(e,t){return this.decodeString(this.decoder.decode(e),t)}decodeString(e,t){const r=JSON.parse(e),n=f.snakeToCamel(r);return t!=null?t.parse(n):n}encodeString(e){const t=f.camelToSnake(e);return JSON.stringify(t,(r,n)=>ArrayBuffer.isView(n)?Array.from(n):p.isObject(n)&&"encode_value"in n?typeof n.value=="bigint"?n.value.toString():n.value:typeof n=="bigint"?n.toString():n)}static registerCustomType(){}}class g{constructor(){i(this,"contentType","text/csv")}encode(e){const t=this.encodeString(e);return new TextEncoder().encode(t).buffer}decode(e,t){const r=new TextDecoder().decode(e);return this.decodeString(r,t)}encodeString(e){if(!Array.isArray(e)||e.length===0||!p.isObject(e[0]))throw new Error("Payload must be an array of objects");const t=Object.keys(e[0]),r=[t.join(",")];return e.forEach(n=>{const d=t.map(s=>JSON.stringify(n[s]??""));r.push(d.join(","))}),r.join(`
|
|
2
2
|
`)}decodeString(e,t){const[r,...n]=e.trim().split(`
|
|
3
3
|
`).map(c=>c.trim());if(r.length===0)return t!=null?t.parse({}):{};const d=r.split(",").map(c=>c.trim()),s={};return d.forEach(c=>{s[c]=[]}),n.forEach(c=>{const C=c.split(",").map(u=>u.trim());d.forEach((u,T)=>{const l=this.parseValue(C[T]);l!=null&&s[u].push(l)})}),t!=null?t.parse(s):s}parseValue(e){if(e==null||e.length===0)return null;const t=Number(e);return isNaN(t)?e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e:t}static registerCustomType(){}}class h{constructor(){i(this,"contentType","text/plain")}encode(e){return new TextEncoder().encode(e).buffer}decode(e,t){const r=new TextDecoder().decode(e);return t!=null?t.parse(r):r}}const a=new S,E=new g,b=new h,w=[a],m=Object.freeze(Object.defineProperty({__proto__:null,CSVCodec:g,CSV_CODEC:E,ENCODERS:w,JSONCodec:S,JSON_CODEC:a,TEXT_CODEC:b,TextCodec:h},Symbol.toStringTag,{value:"Module"}));exports.JSON_CODEC=a;exports.encoder=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const T=e=>{const r=e.replace(/_[a-z]/g,n=>n[1].toUpperCase());return r.length>1&&r[0]===r[0].toUpperCase()&&r[1]===r[1].toUpperCase()||r.length===0?r:r[0].toLowerCase()+r.slice(1)},u=e=>{const r=(n,s=o)=>{if(typeof n=="string")return e(n);if(Array.isArray(n))return n.map(c=>r(c,s));if(!l(n))return n;s=v(s);const y={},f=n;return Object.keys(f).forEach(c=>{let t=f[c];const C=e(c);s.recursive&&(l(t)?m(t,s.keepTypesOnRecursion)||(t=r(t,s)):s.recursiveInArray&&p(t)&&(t=[...t].map(a=>{let i=a;return l(a)?m(i,s.keepTypesOnRecursion)||(i=r(a,s)):p(a)&&(i=r({key:a},s).key),i}))),y[C]=t}),y};return r},A=u(T),O=e=>e.replace(/([a-z0-9])([A-Z])/g,(r,n,s)=>`${n}_${s.toLowerCase()}`),g=u(O),k=e=>e.length===0?e:e[0].toUpperCase()+e.slice(1),o={recursive:!0,recursiveInArray:!0,keepTypesOnRecursion:[Number,String,Uint8Array]},v=(e=o)=>(e.recursive==null?e=o:e.recursiveInArray??(e.recursiveInArray=!1),e),p=e=>e!=null&&Array.isArray(e),l=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),m=(e,r)=>(r||[]).some(n=>e instanceof n),S=e=>e.replace(/\s+/g,"-").replace(/([a-z0-9])([A-Z])/g,(r,n,s)=>`${n}-${s.toLowerCase()}`).toLowerCase(),_=u(S),z=Object.freeze(Object.defineProperty({__proto__:null,camelToSnake:g,capitalize:k,snakeToCamel:A,toKebab:_},Symbol.toStringTag,{value:"Module"}));exports.camelToSnake=g;exports.capitalize=k;exports.caseconv=z;exports.snakeToCamel=A;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var C = (o, e, t) => e in o ? m(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var i = (o, e, t) => C(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { s as y, b } from "./index-
|
|
4
|
+
import { s as y, b } from "./index-BfDeGfej.js";
|
|
5
5
|
import { isObject as l } from "./identity.js";
|
|
6
6
|
class f {
|
|
7
7
|
constructor() {
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var x=Object.defineProperty;var _=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var b=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-
|
|
1
|
+
"use strict";var x=Object.defineProperty;var _=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var b=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-CnclyYpG.cjs"),u=require("zod"),i=require("./series-BbxR21uO.cjs"),N=require("./index-Dd8DLyMx.cjs"),L=require("./change-C-YELKx6.cjs"),A=require("./scale-BESJN9LG.cjs"),l=require("./index-h-QAL9T1.cjs"),w=require("./debounce.cjs"),P=require("./deep.cjs"),C=require("./identity.cjs"),Z=require("./types-zRwnQ1hc.cjs"),z=require("./bounds-8aFLdbEj.cjs"),D=require("./observe.cjs"),E=require("./record.cjs"),G=require("./external-CghVMqCA.cjs"),V=require("./search.cjs"),W=require("./box-BHIyGhI_.cjs"),H=require("./dimensions-zMcb9pMk.cjs"),I=require("./direction-D7qoo_GJ.cjs"),Q=require("./location-BIet4Mig.cjs"),U=require("./position-CFiSGTz9.cjs"),B=require("./spatial-BOhaO8xN.cjs"),F=require("./xy-LADI2wVU.cjs"),j=require("./toArray.cjs"),J=require("./unique.cjs"),k=require("./url.cjs"),$=require("./worker.cjs"),K=require("./zodutil-BRjUdYAv.cjs"),X=async e=>await new Promise(t=>setTimeout(t,i.TimeSpan.fromMilliseconds(e).milliseconds)),Y=u.z.object({interval:i.TimeSpan.z.optional(),maxRetries:u.z.number().optional(),scale:u.z.number().optional()}),ee=(e={})=>{const t=e.sleepFn||X,r=e.maxRetries??5,o=e.scale??1;let s=0,d=new i.TimeSpan(e.interval??i.TimeSpan.milliseconds(1));return async()=>s>=r?!1:(await t(d),d=d.mult(o),s++,!0)},re=Object.freeze(Object.defineProperty({__proto__:null,breakerConfig:Y,create:ee},Symbol.toStringTag,{value:"Module"})),m=class m extends Number{};b(m,"Absolute",255),b(m,"Default",1),b(m,"z",u.z.union([u.z.instanceof(m),u.z.number().int().min(0).max(255).transform(t=>new m(t)),u.z.instanceof(Number).transform(t=>new m(t))]));let h=m;const M=u.z.object({name:u.z.string(),key:u.z.string()}),te=e=>u.z.object({subject:M,resource:e,authority:h.z}),ne=(...e)=>t=>t.filter(r=>{let o=!1;return r.to!=null&&(o=e.includes(r.to.resource)),r.from!=null&&!o&&(o=e.includes(r.from.resource)),o}),oe=Object.freeze(Object.defineProperty({__proto__:null,Authority:h,filterTransfersByChannelKey:ne,stateZ:te,subjectZ:M},Symbol.toStringTag,{value:"Module"})),g=class g extends Error{constructor(){super(g.MESSAGE)}matches(t){return typeof t=="string"?t.includes(g.MESSAGE):t instanceof g||t.message.includes(g.MESSAGE)}};b(g,"MESSAGE","canceled");let v=g;const ie=new v,se=Object.freeze(Object.defineProperty({__proto__:null,CANCELED:ie},Symbol.toStringTag,{value:"Module"})),ce=e=>e?-1:1,q=u.z.string().regex(/^\d+\.\d+\.\d+$/),S=(e,t,r={})=>{r.checkMajor??(r.checkMajor=!0),r.checkMinor??(r.checkMinor=!0),r.checkPatch??(r.checkPatch=!0);const o=q.parse(e),s=q.parse(t),[d,f,p]=o.split(".").map(Number),[c,n,a]=s.split(".").map(Number);if(r.checkMajor){if(d<c)return l.LESS_THAN;if(d>c)return l.GREATER_THAN}if(r.checkMinor){if(f<n)return l.LESS_THAN;if(f>n)return l.GREATER_THAN}if(r.checkPatch){if(p<a)return l.LESS_THAN;if(p>a)return l.GREATER_THAN}return l.EQUAL},ae=(e,t,r={})=>l.isEqualTo(S(e,t,r)),R=(e,t,r={})=>l.isGreaterThan(S(e,t,r)),le=(e,t,r={})=>l.isLessThan(S(e,t,r)),ue=({name:e,migrate:t})=>r=>{try{const o=t(r);return console.log(`${e} migrated: ${r.version} -> ${o.version}`),o}catch(o){throw console.log(`${e} failed to migrate from ${r.version}`),console.error(o),o}},de=({name:e,migrations:t,targetSchema:r,defaultVersion:o,def:s})=>{const d=Object.keys(t).sort(S).pop();if(d==null)return n=>{if(n.version??(n.version=o),n.version!==s.version)return console.log(`${e} version ${n.version} is newer than latest version of ${s.version}.
|
|
2
2
|
Returning default instead.
|
|
3
|
-
`),s;try{return r!=null?r.parse(n):n}catch(a){return console.log(`${e} failed to parse default. Exiting with default`),console.error(a),s}};const f=Object.keys(t).length;let p=!1;const c=n=>{try{if(f===0||R(n.version,d))return console.log(p?`${e} ${n.version} now up to date`:`${e} version ${n.version} is up to date with target version ${s.version}`),n;const a=n.version,y=t[a],T=y(n);return p=!0,c(T)}catch(a){return console.log(`${e} failed to migrate from ${n.version} to ${d}`),console.error(a),s}};return n=>{try{if(n.version==null)if(o!=null)console.log(`${e} version is null. Setting version to default of ${o}`),n.version=o;else return console.log(`${e} version is null and no default version set. Exiting with default`),s;return c(n)}catch(a){return console.log(`${e} failed to parse final result. Exiting with default`),console.error(a),s}}},
|
|
3
|
+
`),s;try{return r!=null?r.parse(n):n}catch(a){return console.log(`${e} failed to parse default. Exiting with default`),console.error(a),s}};const f=Object.keys(t).length;let p=!1;const c=n=>{try{if(f===0||R(n.version,d))return console.log(p?`${e} ${n.version} now up to date`:`${e} version ${n.version} is up to date with target version ${s.version}`),n;const a=n.version,y=t[a],T=y(n);return p=!0,c(T)}catch(a){return console.log(`${e} failed to migrate from ${n.version} to ${d}`),console.error(a),s}};return n=>{try{if(n.version==null)if(o!=null)console.log(`${e} version is null. Setting version to default of ${o}`),n.version=o;else return console.log(`${e} version is null and no default version set. Exiting with default`),s;return c(n)}catch(a){return console.log(`${e} failed to parse final result. Exiting with default`),console.error(a),s}}},me=Object.freeze(Object.defineProperty({__proto__:null,compareSemVer:S,createMigration:ue,migrator:de,semVerNewer:R,semVerOlder:le,semVerZ:q,versionsEqual:ae},Symbol.toStringTag,{value:"Module"})),fe=e=>{if(e===void 0||typeof e=="string"||typeof e=="number")return e;if(e.toString===void 0)throw new Error("invalid renderer");return e.toString()},ge=e=>Array.isArray(e)?[...e]:typeof e=="object"&&e!==null?{...e}:e,pe=(e,t="")=>{const r=e.length;return r===0?t:r===1?e[0]:r===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[r-1]}`},be=e=>{const t=e.split(" "),r=new Set,o=t.map(c=>c.charAt(0).toLowerCase()).join("");r.add(o),r.add(o.replace(/(.)(.)/g,"$1_$2"));const s=/\d+/g;e.match(s)&&t.forEach((c,n)=>{if(s.test(c)){const a=t.map((y,T)=>T!==n?y.charAt(0).toLowerCase():y).join("");r.add(a),r.add(a.replace(/(.)(.)/g,"$1_$2"))}});const f=t.map(c=>(c.length>3?c.substring(0,3):c).toLowerCase());return r.add(f.join("")),r.add(f.join("_")),Array.from(r).filter(c=>c.length>=2&&c.length<=12)},Se=Object.freeze(Object.defineProperty({__proto__:null,generateShortIdentifiers:be,naturalLanguageJoin:pe},Symbol.toStringTag,{value:"Module"}));exports.binary=O.encoder;exports.DataType=i.DataType;exports.Density=i.Density;exports.MultiSeries=i.MultiSeries;exports.Rate=i.Rate;exports.Series=i.Series;exports.Size=i.Size;exports.TimeRange=i.TimeRange;exports.TimeSpan=i.TimeSpan;exports.TimeStamp=i.TimeStamp;exports.addSamples=i.addSamples;exports.convertDataType=i.convertDataType;exports.id=i.id;exports.isCrudeSeries=i.isCrudeSeries;exports.isTelemValue=i.isTelemValue;exports.sortTimeRange=i.sortTimeRange;exports.typedArrayZ=i.typedArrayZ;exports.caseconv=N.caseconv;exports.change=L.change;exports.clamp=A.clamp;exports.scale=A.scale;exports.compare=l.compare;exports.isStringer=l.isStringer;exports.primitiveIsZero=l.primitiveIsZero;exports.debounce=w.debounce;exports.throttle=w.throttle;exports.deep=P.deep;exports.isObject=C.isObject;exports.kv=Z.types;exports.bounds=z.bounds;exports.math=z.math;exports.observe=D.observe;exports.getEntries=E.getEntries;exports.mapValues=E.mapValues;exports.unknownRecordZ=E.unknownRecordZ;exports.runtime=G.external;exports.Search=V.Search;exports.box=W.box;exports.dimensions=H.dimensions;exports.direction=I.direction;exports.location=Q.location;exports.position=U.position;exports.spatial=B.spatial;exports.xy=F.xy;exports.nullToArr=j.nullToArr;exports.toArray=j.toArray;exports.unique=J.unique;exports.URL=k.URL;exports.buildQueryString=k.buildQueryString;exports.RoutedWorker=$.RoutedWorker;exports.TypedWorker=$.TypedWorker;exports.createMockWorkers=$.createMockWorkers;exports.zodutil=K.zodutil;exports.breaker=re;exports.control=oe;exports.convertRenderV=fe;exports.errors=se;exports.invert=ce;exports.migrate=me;exports.shallowCopy=ge;exports.strings=Se;
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var T = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var p = (e, t, r) => T(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { e as ne } from "./index-
|
|
5
|
-
import { a as ie } from "./index-eue4dSQX.js";
|
|
6
|
-
import { c as ce } from "./change-DLl6DccR.js";
|
|
7
|
-
import { c as ue, s as fe } from "./scale-rZ1YKDFy.js";
|
|
8
|
-
import { L as S, G as v, E as k, i as A, a as _, b as O } from "./index-HQonyH7n.js";
|
|
9
|
-
import { c as de, d as pe, p as ge } from "./index-HQonyH7n.js";
|
|
4
|
+
import { e as ne } from "./index-OHIRoCei.js";
|
|
10
5
|
import { z as c } from "zod";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import { b as x } from "./series-C_B2hAp9.js";
|
|
7
|
+
import { d as ie, D as ae, M as ce, R as le, S as ue, e as fe, c as me, T as de, a as pe, g as ge, h as be, i as xe, f as he, s as ye, t as Se } from "./series-C_B2hAp9.js";
|
|
8
|
+
import { a as $e } from "./index-BfDeGfej.js";
|
|
9
|
+
import { c as je } from "./change-DLl6DccR.js";
|
|
10
|
+
import { c as Me, s as Te } from "./scale-CV3O6tkY.js";
|
|
11
|
+
import { L as S, G as v, E as k, i as A, a as _, b as O } from "./index-HQonyH7n.js";
|
|
12
|
+
import { c as Ae, d as _e, p as Oe } from "./index-HQonyH7n.js";
|
|
13
|
+
import { debounce as ze, throttle as Le } from "./debounce.js";
|
|
14
|
+
import { deep as Pe } from "./deep.js";
|
|
15
15
|
import { isObject as Ge } from "./identity.js";
|
|
16
16
|
import { t as Ze } from "./types-BpAJW2TM.js";
|
|
17
17
|
import { b as Ie, f as We } from "./bounds-BtccGJW0.js";
|
|
18
18
|
import { observe as Be } from "./observe.js";
|
|
19
19
|
import { getEntries as He, mapValues as Qe, unknownRecordZ as Ue } from "./record.js";
|
|
20
|
-
import { e as Ke } from "./external-
|
|
20
|
+
import { e as Ke } from "./external-DKQKvgIi.js";
|
|
21
21
|
import { Search as Ye } from "./search.js";
|
|
22
|
-
import { b as rr } from "./box-
|
|
22
|
+
import { b as rr } from "./box-CfhGfJJH.js";
|
|
23
23
|
import { d as or } from "./dimensions-D-1PnJVI.js";
|
|
24
24
|
import { d as sr } from "./direction-CScbfCdT.js";
|
|
25
|
-
import { l as ar } from "./location-
|
|
26
|
-
import { p as lr } from "./position-
|
|
25
|
+
import { l as ar } from "./location-C5Ot4MVG.js";
|
|
26
|
+
import { p as lr } from "./position-BXFz7I9G.js";
|
|
27
27
|
import { s as fr } from "./spatial-DozyssiN.js";
|
|
28
28
|
import { x as dr } from "./xy-DQdccWlc.js";
|
|
29
29
|
import { nullToArr as gr, toArray as br } from "./toArray.js";
|
|
@@ -31,7 +31,21 @@ import { unique as hr } from "./unique.js";
|
|
|
31
31
|
import { URL as Sr, buildQueryString as vr } from "./url.js";
|
|
32
32
|
import { RoutedWorker as Er, TypedWorker as jr, createMockWorkers as wr } from "./worker.js";
|
|
33
33
|
import { z as Tr } from "./zodutil-DI4gVZkT.js";
|
|
34
|
-
const
|
|
34
|
+
const R = async (e) => await new Promise(
|
|
35
|
+
(t) => setTimeout(t, x.fromMilliseconds(e).milliseconds)
|
|
36
|
+
), z = c.object({
|
|
37
|
+
interval: x.z.optional(),
|
|
38
|
+
maxRetries: c.number().optional(),
|
|
39
|
+
scale: c.number().optional()
|
|
40
|
+
}), L = (e = {}) => {
|
|
41
|
+
const t = e.sleepFn || R, r = e.maxRetries ?? 5, n = e.scale ?? 1;
|
|
42
|
+
let s = 0, l = new x(e.interval ?? x.milliseconds(1));
|
|
43
|
+
return async () => s >= r ? !1 : (await t(l), l = l.mult(n), s++, !0);
|
|
44
|
+
}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
|
+
__proto__: null,
|
|
46
|
+
breakerConfig: z,
|
|
47
|
+
create: L
|
|
48
|
+
}, Symbol.toStringTag, { value: "Module" })), u = class u extends Number {
|
|
35
49
|
};
|
|
36
50
|
p(u, "Absolute", 255), p(u, "Default", 1), p(u, "z", c.union([
|
|
37
51
|
c.instanceof(u),
|
|
@@ -42,18 +56,18 @@ let h = u;
|
|
|
42
56
|
const j = c.object({
|
|
43
57
|
name: c.string(),
|
|
44
58
|
key: c.string()
|
|
45
|
-
}),
|
|
59
|
+
}), N = (e) => c.object({
|
|
46
60
|
subject: j,
|
|
47
61
|
resource: e,
|
|
48
62
|
authority: h.z
|
|
49
|
-
}),
|
|
63
|
+
}), P = (...e) => (t) => t.filter((r) => {
|
|
50
64
|
let n = !1;
|
|
51
65
|
return r.to != null && (n = e.includes(r.to.resource)), r.from != null && !n && (n = e.includes(r.from.resource)), n;
|
|
52
|
-
}),
|
|
66
|
+
}), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53
67
|
__proto__: null,
|
|
54
68
|
Authority: h,
|
|
55
|
-
filterTransfersByChannelKey:
|
|
56
|
-
stateZ:
|
|
69
|
+
filterTransfersByChannelKey: P,
|
|
70
|
+
stateZ: N,
|
|
57
71
|
subjectZ: j
|
|
58
72
|
}, Symbol.toStringTag, { value: "Module" })), m = class m extends Error {
|
|
59
73
|
constructor() {
|
|
@@ -66,10 +80,10 @@ const j = c.object({
|
|
|
66
80
|
};
|
|
67
81
|
p(m, "MESSAGE", "canceled");
|
|
68
82
|
let $ = m;
|
|
69
|
-
const
|
|
83
|
+
const C = new $(), J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
84
|
__proto__: null,
|
|
71
|
-
CANCELED:
|
|
72
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
85
|
+
CANCELED: C
|
|
86
|
+
}, Symbol.toStringTag, { value: "Module" })), K = (e) => e ? -1 : 1, E = c.string().regex(/^\d+\.\d+\.\d+$/), g = (e, t, r = {}) => {
|
|
73
87
|
r.checkMajor ?? (r.checkMajor = !0), r.checkMinor ?? (r.checkMinor = !0), r.checkPatch ?? (r.checkPatch = !0);
|
|
74
88
|
const n = E.parse(e), s = E.parse(t), [l, f, d] = n.split(".").map(Number), [i, o, a] = s.split(".").map(Number);
|
|
75
89
|
if (r.checkMajor) {
|
|
@@ -85,7 +99,7 @@ const L = new $(), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
85
99
|
if (d > a) return v;
|
|
86
100
|
}
|
|
87
101
|
return k;
|
|
88
|
-
},
|
|
102
|
+
}, G = (e, t, r = {}) => A(g(e, t, r)), w = (e, t, r = {}) => _(g(e, t, r)), D = (e, t, r = {}) => O(g(e, t, r)), Z = ({
|
|
89
103
|
name: e,
|
|
90
104
|
migrate: t
|
|
91
105
|
}) => (r) => {
|
|
@@ -95,7 +109,7 @@ const L = new $(), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
95
109
|
} catch (n) {
|
|
96
110
|
throw console.log(`${e} failed to migrate from ${r.version}`), console.error(n), n;
|
|
97
111
|
}
|
|
98
|
-
},
|
|
112
|
+
}, V = ({
|
|
99
113
|
name: e,
|
|
100
114
|
migrations: t,
|
|
101
115
|
targetSchema: r,
|
|
@@ -147,24 +161,24 @@ const L = new $(), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
147
161
|
return console.log(`${e} failed to parse final result. Exiting with default`), console.error(a), s;
|
|
148
162
|
}
|
|
149
163
|
};
|
|
150
|
-
},
|
|
164
|
+
}, X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
151
165
|
__proto__: null,
|
|
152
166
|
compareSemVer: g,
|
|
153
|
-
createMigration:
|
|
154
|
-
migrator:
|
|
167
|
+
createMigration: Z,
|
|
168
|
+
migrator: V,
|
|
155
169
|
semVerNewer: w,
|
|
156
|
-
semVerOlder:
|
|
170
|
+
semVerOlder: D,
|
|
157
171
|
semVerZ: E,
|
|
158
|
-
versionsEqual:
|
|
159
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
172
|
+
versionsEqual: G
|
|
173
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = (e) => {
|
|
160
174
|
if (e === void 0 || typeof e == "string" || typeof e == "number")
|
|
161
175
|
return e;
|
|
162
176
|
if (e.toString === void 0) throw new Error("invalid renderer");
|
|
163
177
|
return e.toString();
|
|
164
|
-
},
|
|
178
|
+
}, ee = (e) => Array.isArray(e) ? [...e] : typeof e == "object" && e !== null ? { ...e } : e, I = (e, t = "") => {
|
|
165
179
|
const r = e.length;
|
|
166
180
|
return r === 0 ? t : r === 1 ? e[0] : r === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")}, and ${e[r - 1]}`;
|
|
167
|
-
},
|
|
181
|
+
}, W = (e) => {
|
|
168
182
|
const t = e.split(" "), r = /* @__PURE__ */ new Set(), n = t.map((i) => i.charAt(0).toLowerCase()).join("");
|
|
169
183
|
r.add(n), r.add(n.replace(/(.)(.)/g, "$1_$2"));
|
|
170
184
|
const s = /\d+/g;
|
|
@@ -180,83 +194,69 @@ const L = new $(), U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
180
194
|
return r.add(f.join("")), r.add(f.join("_")), Array.from(r).filter(
|
|
181
195
|
(i) => i.length >= 2 && i.length <= 12
|
|
182
196
|
);
|
|
183
|
-
}, ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
184
|
-
__proto__: null,
|
|
185
|
-
generateShortIdentifiers: Z,
|
|
186
|
-
naturalLanguageJoin: D
|
|
187
|
-
}, Symbol.toStringTag, { value: "Module" })), V = async (e) => await new Promise(
|
|
188
|
-
(t) => setTimeout(t, x.fromMilliseconds(e).milliseconds)
|
|
189
|
-
), I = c.object({
|
|
190
|
-
interval: x.z.optional(),
|
|
191
|
-
maxRetries: c.number().optional(),
|
|
192
|
-
scale: c.number().optional()
|
|
193
|
-
}), W = (e = {}) => {
|
|
194
|
-
const t = e.sleepFn || V, r = e.maxRetries ?? 5, n = e.scale ?? 1;
|
|
195
|
-
let s = 0, l = new x(e.interval ?? x.milliseconds(1));
|
|
196
|
-
return async () => s >= r ? !1 : (await t(l), l = l.mult(n), s++, !0);
|
|
197
197
|
}, re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
198
198
|
__proto__: null,
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
generateShortIdentifiers: W,
|
|
200
|
+
naturalLanguageJoin: I
|
|
201
201
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
202
202
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
ie as DataType,
|
|
204
|
+
ae as Density,
|
|
205
|
+
ce as MultiSeries,
|
|
206
|
+
le as Rate,
|
|
207
207
|
Er as RoutedWorker,
|
|
208
208
|
Ye as Search,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
ue as Series,
|
|
210
|
+
fe as Size,
|
|
211
|
+
me as TimeRange,
|
|
212
212
|
x as TimeSpan,
|
|
213
|
-
|
|
213
|
+
de as TimeStamp,
|
|
214
214
|
jr as TypedWorker,
|
|
215
215
|
Sr as URL,
|
|
216
|
-
|
|
216
|
+
pe as addSamples,
|
|
217
217
|
ne as binary,
|
|
218
218
|
Ie as bounds,
|
|
219
219
|
rr as box,
|
|
220
|
-
|
|
220
|
+
Q as breaker,
|
|
221
221
|
vr as buildQueryString,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
$e as caseconv,
|
|
223
|
+
je as change,
|
|
224
|
+
Me as clamp,
|
|
225
|
+
Ae as compare,
|
|
226
|
+
U as control,
|
|
227
|
+
ge as convertDataType,
|
|
228
|
+
Y as convertRenderV,
|
|
229
229
|
wr as createMockWorkers,
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
ze as debounce,
|
|
231
|
+
Pe as deep,
|
|
232
232
|
or as dimensions,
|
|
233
233
|
sr as direction,
|
|
234
|
-
|
|
234
|
+
J as errors,
|
|
235
235
|
He as getEntries,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
be as id,
|
|
237
|
+
K as invert,
|
|
238
|
+
xe as isCrudeSeries,
|
|
239
239
|
Ge as isObject,
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
_e as isStringer,
|
|
241
|
+
he as isTelemValue,
|
|
242
242
|
Ze as kv,
|
|
243
243
|
ar as location,
|
|
244
244
|
Qe as mapValues,
|
|
245
245
|
We as math,
|
|
246
|
-
|
|
246
|
+
X as migrate,
|
|
247
247
|
gr as nullToArr,
|
|
248
248
|
Be as observe,
|
|
249
249
|
lr as position,
|
|
250
|
-
|
|
250
|
+
Oe as primitiveIsZero,
|
|
251
251
|
Ke as runtime,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
Te as scale,
|
|
253
|
+
ee as shallowCopy,
|
|
254
|
+
ye as sortTimeRange,
|
|
255
255
|
fr as spatial,
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
re as strings,
|
|
257
|
+
Le as throttle,
|
|
258
258
|
br as toArray,
|
|
259
|
-
|
|
259
|
+
Se as typedArrayZ,
|
|
260
260
|
hr as unique,
|
|
261
261
|
Ue as unknownRecordZ,
|
|
262
262
|
dr as xy,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("zod"),I=require("./index-
|
|
1
|
+
"use strict";const u=require("zod"),I=require("./index-Dd8DLyMx.cjs"),o=require("./base-B48bPNx5.cjs"),R=o.xLocation,g=o.yLocation,h=o.centerLocation,d={top:"bottom",right:"left",bottom:"top",left:"right",center:"center"},m={top:"left",right:"top",bottom:"right",left:"bottom",center:"center"},A=o.crudeLocation,s=t=>t instanceof String||!o.DIRECTIONS.includes(t)?t:t==="x"?"left":"top",_=t=>d[s(t)],M=t=>m[s(t)],i=t=>{const n=s(t);return n==="top"||n==="bottom"?"y":"x"},E=u.z.object({x:o.xLocation.or(o.centerLocation),y:o.yLocation.or(o.centerLocation)}),l=u.z.object({x:o.xLocation,y:o.yLocation}),O=Object.freeze({x:"left",y:"top"}),f=Object.freeze({x:"right",y:"top"}),x=Object.freeze({x:"left",y:"bottom"}),a=Object.freeze({x:"right",y:"bottom"}),T=Object.freeze({x:"center",y:"center"}),b=Object.freeze({x:"center",y:"top"}),L=Object.freeze({x:"center",y:"bottom"}),p=Object.freeze({x:"right",y:"center"}),C=Object.freeze({x:"left",y:"center"}),N=Object.freeze([C,p,b,L,O,f,x,a,T]),j=(t,n)=>t.x===n.x&&t.y===n.y,S=(t,n)=>{if(typeof n=="object"){let e=!0;return"x"in n&&(t.x===n.x||(e=!1)),"y"in n&&(t.y===n.y||(e=!1)),e}return t.x===n||t.y===n},z=t=>[t.x,t.y],y=t=>i(s(t))==="x",P=t=>i(s(t))==="y",X=t=>`${t.x}${I.capitalize(t.y)}`,Y=(t,n)=>{let e,c;if(typeof t=="object"&&"x"in t?(e=t.x,c=t.y):(e=s(t),c=s(n??t)),i(e)===i(c)&&e!=="center"&&c!=="center")throw new Error(`[XYLocation] - encountered two locations with the same direction: ${e.toString()} - ${c.toString()}`);const r={...T};return e==="center"?y(c)?[r.x,r.y]=[c,e]:[r.x,r.y]=[e,c]:c==="center"?y(e)?[r.x,r.y]=[e,c]:[r.x,r.y]=[c,e]:y(e)?[r.x,r.y]=[e,c]:[r.x,r.y]=[c,e],r},w=Object.freeze(Object.defineProperty({__proto__:null,BOTTOM_CENTER:L,BOTTOM_LEFT:x,BOTTOM_RIGHT:a,CENTER:T,CENTER_LOCATIONS:o.CENTER_LOCATIONS,LEFT_CENTER:C,RIGHT_CENTER:p,TOP_CENTER:b,TOP_LEFT:O,TOP_RIGHT:f,XY_LOCATIONS:N,X_LOCATIONS:o.X_LOCATIONS,Y_LOCATIONS:o.Y_LOCATIONS,center:h,construct:s,constructXY:Y,corner:l,crude:A,direction:i,isX:y,isY:P,location:o.location,outer:o.outerLocation,rotate90:M,swap:_,x:R,xy:E,xyCouple:z,xyEquals:j,xyMatches:S,xyToString:X,y:g},Symbol.toStringTag,{value:"Module"}));exports.BOTTOM_LEFT=x;exports.BOTTOM_RIGHT=a;exports.CENTER=T;exports.TOP_LEFT=O;exports.TOP_RIGHT=f;exports.XY_LOCATIONS=N;exports.corner=l;exports.location=w;exports.swap=_;exports.xy=E;exports.xyCouple=z;exports.xyEquals=j;exports.xyMatches=S;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as O } from "zod";
|
|
2
|
-
import { c as m } from "./index-
|
|
2
|
+
import { c as m } from "./index-BfDeGfej.js";
|
|
3
3
|
import { e as a, f, y, g, D as C, C as z, X as L, Y as h, l as S, h as d } from "./base-DnZzEvvz.js";
|
|
4
4
|
const N = a, R = y, I = f, X = {
|
|
5
5
|
top: "bottom",
|
package/dist/location.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./location-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./location-BIet4Mig.cjs");exports.location=o.location;
|
package/dist/location.js
CHANGED