@tscircuit/pcb-viewer 1.10.17 → 1.10.18
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/dist/index.js +516 -2521
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -555,2407 +555,6 @@ var __toCommonJS = function(mod) {
|
|
|
555
555
|
value: true
|
|
556
556
|
}), mod);
|
|
557
557
|
};
|
|
558
|
-
// node_modules/lodash._objecttypes/index.js
|
|
559
|
-
var require_lodash = __commonJS({
|
|
560
|
-
"node_modules/lodash._objecttypes/index.js": function(exports2, module2) {
|
|
561
|
-
var objectTypes = {
|
|
562
|
-
"boolean": false,
|
|
563
|
-
"function": true,
|
|
564
|
-
"object": true,
|
|
565
|
-
"number": false,
|
|
566
|
-
"string": false,
|
|
567
|
-
"undefined": false
|
|
568
|
-
};
|
|
569
|
-
module2.exports = objectTypes;
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
// node_modules/lodash.isobject/index.js
|
|
573
|
-
var require_lodash2 = __commonJS({
|
|
574
|
-
"node_modules/lodash.isobject/index.js": function(exports2, module2) {
|
|
575
|
-
var objectTypes = require_lodash();
|
|
576
|
-
function isObject(value) {
|
|
577
|
-
return !!(value && objectTypes[typeof value === "undefined" ? "undefined" : _type_of(value)]);
|
|
578
|
-
}
|
|
579
|
-
module2.exports = isObject;
|
|
580
|
-
}
|
|
581
|
-
});
|
|
582
|
-
// node_modules/lodash._renative/index.js
|
|
583
|
-
var require_lodash3 = __commonJS({
|
|
584
|
-
"node_modules/lodash._renative/index.js": function(exports2, module2) {
|
|
585
|
-
var objectProto = Object.prototype;
|
|
586
|
-
var toString = objectProto.toString;
|
|
587
|
-
var reNative = RegExp("^" + String(toString).replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/toString| for [^\]]+/g, ".*?") + "$");
|
|
588
|
-
module2.exports = reNative;
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
// node_modules/lodash._shimkeys/index.js
|
|
592
|
-
var require_lodash4 = __commonJS({
|
|
593
|
-
"node_modules/lodash._shimkeys/index.js": function(exports2, module2) {
|
|
594
|
-
var objectTypes = require_lodash();
|
|
595
|
-
var objectProto = Object.prototype;
|
|
596
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
597
|
-
var shimKeys = function shimKeys(object) {
|
|
598
|
-
var index, iterable = object, result = [];
|
|
599
|
-
if (!iterable) return result;
|
|
600
|
-
if (!objectTypes[typeof object === "undefined" ? "undefined" : _type_of(object)]) return result;
|
|
601
|
-
for(index in iterable){
|
|
602
|
-
if (hasOwnProperty.call(iterable, index)) {
|
|
603
|
-
result.push(index);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
return result;
|
|
607
|
-
};
|
|
608
|
-
module2.exports = shimKeys;
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
// node_modules/lodash.keys/index.js
|
|
612
|
-
var require_lodash5 = __commonJS({
|
|
613
|
-
"node_modules/lodash.keys/index.js": function(exports2, module2) {
|
|
614
|
-
var isObject = require_lodash2();
|
|
615
|
-
var reNative = require_lodash3();
|
|
616
|
-
var shimKeys = require_lodash4();
|
|
617
|
-
var nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys;
|
|
618
|
-
var keys = !nativeKeys ? shimKeys : function keys(object) {
|
|
619
|
-
if (!isObject(object)) {
|
|
620
|
-
return [];
|
|
621
|
-
}
|
|
622
|
-
return nativeKeys(object);
|
|
623
|
-
};
|
|
624
|
-
module2.exports = keys;
|
|
625
|
-
}
|
|
626
|
-
});
|
|
627
|
-
// node_modules/lodash.noop/index.js
|
|
628
|
-
var require_lodash6 = __commonJS({
|
|
629
|
-
"node_modules/lodash.noop/index.js": function(exports2, module2) {
|
|
630
|
-
function noop2() {}
|
|
631
|
-
module2.exports = noop2;
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
// node_modules/lodash._basecreate/index.js
|
|
635
|
-
var require_lodash7 = __commonJS({
|
|
636
|
-
"node_modules/lodash._basecreate/index.js": function(exports2, module2) {
|
|
637
|
-
var isObject = require_lodash2();
|
|
638
|
-
var noop2 = require_lodash6();
|
|
639
|
-
var reNative = require_lodash3();
|
|
640
|
-
var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate;
|
|
641
|
-
function baseCreate(prototype, properties) {
|
|
642
|
-
return isObject(prototype) ? nativeCreate(prototype) : {};
|
|
643
|
-
}
|
|
644
|
-
if (!nativeCreate) {
|
|
645
|
-
baseCreate = /* @__PURE__ */ function() {
|
|
646
|
-
function Object2() {}
|
|
647
|
-
return function(prototype) {
|
|
648
|
-
if (isObject(prototype)) {
|
|
649
|
-
Object2.prototype = prototype;
|
|
650
|
-
var result = new Object2();
|
|
651
|
-
Object2.prototype = null;
|
|
652
|
-
}
|
|
653
|
-
return result || global.Object();
|
|
654
|
-
};
|
|
655
|
-
}();
|
|
656
|
-
}
|
|
657
|
-
module2.exports = baseCreate;
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
// node_modules/lodash._setbinddata/index.js
|
|
661
|
-
var require_lodash8 = __commonJS({
|
|
662
|
-
"node_modules/lodash._setbinddata/index.js": function(exports2, module2) {
|
|
663
|
-
var noop2 = require_lodash6();
|
|
664
|
-
var reNative = require_lodash3();
|
|
665
|
-
var descriptor = {
|
|
666
|
-
"configurable": false,
|
|
667
|
-
"enumerable": false,
|
|
668
|
-
"value": null,
|
|
669
|
-
"writable": false
|
|
670
|
-
};
|
|
671
|
-
var defineProperty = function() {
|
|
672
|
-
try {
|
|
673
|
-
var o = {}, func = reNative.test(func = Object.defineProperty) && func, result = func(o, o, o) && func;
|
|
674
|
-
} catch (e) {}
|
|
675
|
-
return result;
|
|
676
|
-
}();
|
|
677
|
-
var setBindData = !defineProperty ? noop2 : function setBindData(func, value) {
|
|
678
|
-
descriptor.value = value;
|
|
679
|
-
defineProperty(func, "__bindData__", descriptor);
|
|
680
|
-
};
|
|
681
|
-
module2.exports = setBindData;
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
// node_modules/lodash._basebind/index.js
|
|
685
|
-
var require_lodash9 = __commonJS({
|
|
686
|
-
"node_modules/lodash._basebind/index.js": function(exports2, module2) {
|
|
687
|
-
var baseCreate = require_lodash7();
|
|
688
|
-
var isObject = require_lodash2();
|
|
689
|
-
var setBindData = require_lodash8();
|
|
690
|
-
var arrayRef = [];
|
|
691
|
-
var push = arrayRef.push;
|
|
692
|
-
function baseBind(bindData) {
|
|
693
|
-
var func = bindData[0], partialArgs = bindData[2], thisArg = bindData[4];
|
|
694
|
-
function bound() {
|
|
695
|
-
if (partialArgs) {
|
|
696
|
-
var args = partialArgs.slice();
|
|
697
|
-
push.apply(args, arguments);
|
|
698
|
-
}
|
|
699
|
-
if (_instanceof(this, bound)) {
|
|
700
|
-
var thisBinding = baseCreate(func.prototype), result = func.apply(thisBinding, args || arguments);
|
|
701
|
-
return isObject(result) ? result : thisBinding;
|
|
702
|
-
}
|
|
703
|
-
return func.apply(thisArg, args || arguments);
|
|
704
|
-
}
|
|
705
|
-
setBindData(bound, bindData);
|
|
706
|
-
return bound;
|
|
707
|
-
}
|
|
708
|
-
module2.exports = baseBind;
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
// node_modules/lodash._slice/index.js
|
|
712
|
-
var require_lodash10 = __commonJS({
|
|
713
|
-
"node_modules/lodash._slice/index.js": function(exports2, module2) {
|
|
714
|
-
function slice(array, start, end) {
|
|
715
|
-
start || (start = 0);
|
|
716
|
-
if (typeof end == "undefined") {
|
|
717
|
-
end = array ? array.length : 0;
|
|
718
|
-
}
|
|
719
|
-
var index = -1, length2 = end - start || 0, result = Array(length2 < 0 ? 0 : length2);
|
|
720
|
-
while(++index < length2){
|
|
721
|
-
result[index] = array[start + index];
|
|
722
|
-
}
|
|
723
|
-
return result;
|
|
724
|
-
}
|
|
725
|
-
module2.exports = slice;
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
// node_modules/lodash._basecreatewrapper/index.js
|
|
729
|
-
var require_lodash11 = __commonJS({
|
|
730
|
-
"node_modules/lodash._basecreatewrapper/index.js": function(exports2, module2) {
|
|
731
|
-
var baseCreate = require_lodash7();
|
|
732
|
-
var isObject = require_lodash2();
|
|
733
|
-
var setBindData = require_lodash8();
|
|
734
|
-
var slice = require_lodash10();
|
|
735
|
-
var arrayRef = [];
|
|
736
|
-
var push = arrayRef.push;
|
|
737
|
-
function baseCreateWrapper(bindData) {
|
|
738
|
-
var func = bindData[0], bitmask = bindData[1], partialArgs = bindData[2], partialRightArgs = bindData[3], thisArg = bindData[4], arity = bindData[5];
|
|
739
|
-
var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, key = func;
|
|
740
|
-
function bound() {
|
|
741
|
-
var thisBinding = isBind ? thisArg : this;
|
|
742
|
-
if (partialArgs) {
|
|
743
|
-
var args = partialArgs.slice();
|
|
744
|
-
push.apply(args, arguments);
|
|
745
|
-
}
|
|
746
|
-
if (partialRightArgs || isCurry) {
|
|
747
|
-
args || (args = slice(arguments));
|
|
748
|
-
if (partialRightArgs) {
|
|
749
|
-
push.apply(args, partialRightArgs);
|
|
750
|
-
}
|
|
751
|
-
if (isCurry && args.length < arity) {
|
|
752
|
-
bitmask |= 16 & ~32;
|
|
753
|
-
return baseCreateWrapper([
|
|
754
|
-
func,
|
|
755
|
-
isCurryBound ? bitmask : bitmask & ~3,
|
|
756
|
-
args,
|
|
757
|
-
null,
|
|
758
|
-
thisArg,
|
|
759
|
-
arity
|
|
760
|
-
]);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
args || (args = arguments);
|
|
764
|
-
if (isBindKey) {
|
|
765
|
-
func = thisBinding[key];
|
|
766
|
-
}
|
|
767
|
-
if (_instanceof(this, bound)) {
|
|
768
|
-
thisBinding = baseCreate(func.prototype);
|
|
769
|
-
var result = func.apply(thisBinding, args);
|
|
770
|
-
return isObject(result) ? result : thisBinding;
|
|
771
|
-
}
|
|
772
|
-
return func.apply(thisBinding, args);
|
|
773
|
-
}
|
|
774
|
-
setBindData(bound, bindData);
|
|
775
|
-
return bound;
|
|
776
|
-
}
|
|
777
|
-
module2.exports = baseCreateWrapper;
|
|
778
|
-
}
|
|
779
|
-
});
|
|
780
|
-
// node_modules/lodash.isfunction/index.js
|
|
781
|
-
var require_lodash12 = __commonJS({
|
|
782
|
-
"node_modules/lodash.isfunction/index.js": function(exports2, module2) {
|
|
783
|
-
function isFunction(value) {
|
|
784
|
-
return typeof value == "function";
|
|
785
|
-
}
|
|
786
|
-
module2.exports = isFunction;
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
// node_modules/lodash._createwrapper/index.js
|
|
790
|
-
var require_lodash13 = __commonJS({
|
|
791
|
-
"node_modules/lodash._createwrapper/index.js": function(exports2, module2) {
|
|
792
|
-
var baseBind = require_lodash9();
|
|
793
|
-
var baseCreateWrapper = require_lodash11();
|
|
794
|
-
var isFunction = require_lodash12();
|
|
795
|
-
var arrayRef = [];
|
|
796
|
-
var push = arrayRef.push;
|
|
797
|
-
function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
|
|
798
|
-
var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, isPartial = bitmask & 16, isPartialRight = bitmask & 32;
|
|
799
|
-
if (!isBindKey && !isFunction(func)) {
|
|
800
|
-
throw new TypeError();
|
|
801
|
-
}
|
|
802
|
-
if (isPartial && !partialArgs.length) {
|
|
803
|
-
bitmask &= ~16;
|
|
804
|
-
isPartial = partialArgs = false;
|
|
805
|
-
}
|
|
806
|
-
if (isPartialRight && !partialRightArgs.length) {
|
|
807
|
-
bitmask &= ~32;
|
|
808
|
-
isPartialRight = partialRightArgs = false;
|
|
809
|
-
}
|
|
810
|
-
var bindData = func && func.__bindData__;
|
|
811
|
-
if (bindData && bindData !== true) {
|
|
812
|
-
bindData = bindData.slice();
|
|
813
|
-
if (isBind && !(bindData[1] & 1)) {
|
|
814
|
-
bindData[4] = thisArg;
|
|
815
|
-
}
|
|
816
|
-
if (!isBind && bindData[1] & 1) {
|
|
817
|
-
bitmask |= 8;
|
|
818
|
-
}
|
|
819
|
-
if (isCurry && !(bindData[1] & 4)) {
|
|
820
|
-
bindData[5] = arity;
|
|
821
|
-
}
|
|
822
|
-
if (isPartial) {
|
|
823
|
-
push.apply(bindData[2] || (bindData[2] = []), partialArgs);
|
|
824
|
-
}
|
|
825
|
-
if (isPartialRight) {
|
|
826
|
-
push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
|
|
827
|
-
}
|
|
828
|
-
bindData[1] |= bitmask;
|
|
829
|
-
return createWrapper.apply(null, bindData);
|
|
830
|
-
}
|
|
831
|
-
var creater = bitmask == 1 || bitmask === 17 ? baseBind : baseCreateWrapper;
|
|
832
|
-
return creater([
|
|
833
|
-
func,
|
|
834
|
-
bitmask,
|
|
835
|
-
partialArgs,
|
|
836
|
-
partialRightArgs,
|
|
837
|
-
thisArg,
|
|
838
|
-
arity
|
|
839
|
-
]);
|
|
840
|
-
}
|
|
841
|
-
module2.exports = createWrapper;
|
|
842
|
-
}
|
|
843
|
-
});
|
|
844
|
-
// node_modules/lodash.bind/index.js
|
|
845
|
-
var require_lodash14 = __commonJS({
|
|
846
|
-
"node_modules/lodash.bind/index.js": function(exports2, module2) {
|
|
847
|
-
var createWrapper = require_lodash13();
|
|
848
|
-
var reNative = require_lodash3();
|
|
849
|
-
var slice = require_lodash10();
|
|
850
|
-
function bind(func, thisArg) {
|
|
851
|
-
return arguments.length > 2 ? createWrapper(func, 17, slice(arguments, 2), null, thisArg) : createWrapper(func, 1, null, null, thisArg);
|
|
852
|
-
}
|
|
853
|
-
module2.exports = bind;
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
// node_modules/lodash.identity/index.js
|
|
857
|
-
var require_lodash15 = __commonJS({
|
|
858
|
-
"node_modules/lodash.identity/index.js": function(exports2, module2) {
|
|
859
|
-
function identity7(value) {
|
|
860
|
-
return value;
|
|
861
|
-
}
|
|
862
|
-
module2.exports = identity7;
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
// node_modules/lodash.support/index.js
|
|
866
|
-
var require_lodash16 = __commonJS({
|
|
867
|
-
"node_modules/lodash.support/index.js": function(exports2, module2) {
|
|
868
|
-
var reNative = require_lodash3();
|
|
869
|
-
var reThis = /\bthis\b/;
|
|
870
|
-
var support = {};
|
|
871
|
-
support.funcDecomp = !reNative.test(global.WinRTError) && reThis.test(function() {
|
|
872
|
-
return this;
|
|
873
|
-
});
|
|
874
|
-
support.funcNames = typeof Function.name == "string";
|
|
875
|
-
module2.exports = support;
|
|
876
|
-
}
|
|
877
|
-
});
|
|
878
|
-
// node_modules/lodash._basecreatecallback/index.js
|
|
879
|
-
var require_lodash17 = __commonJS({
|
|
880
|
-
"node_modules/lodash._basecreatecallback/index.js": function(exports2, module2) {
|
|
881
|
-
var bind = require_lodash14();
|
|
882
|
-
var identity7 = require_lodash15();
|
|
883
|
-
var setBindData = require_lodash8();
|
|
884
|
-
var support = require_lodash16();
|
|
885
|
-
var reFuncName = /^\s*function[ \n\r\t]+\w/;
|
|
886
|
-
var reThis = /\bthis\b/;
|
|
887
|
-
var fnToString = Function.prototype.toString;
|
|
888
|
-
function baseCreateCallback(func, thisArg, argCount) {
|
|
889
|
-
if (typeof func != "function") {
|
|
890
|
-
return identity7;
|
|
891
|
-
}
|
|
892
|
-
if (typeof thisArg == "undefined" || !("prototype" in func)) {
|
|
893
|
-
return func;
|
|
894
|
-
}
|
|
895
|
-
var bindData = func.__bindData__;
|
|
896
|
-
if (typeof bindData == "undefined") {
|
|
897
|
-
if (support.funcNames) {
|
|
898
|
-
bindData = !func.name;
|
|
899
|
-
}
|
|
900
|
-
bindData = bindData || !support.funcDecomp;
|
|
901
|
-
if (!bindData) {
|
|
902
|
-
var source = fnToString.call(func);
|
|
903
|
-
if (!support.funcNames) {
|
|
904
|
-
bindData = !reFuncName.test(source);
|
|
905
|
-
}
|
|
906
|
-
if (!bindData) {
|
|
907
|
-
bindData = reThis.test(source);
|
|
908
|
-
setBindData(func, bindData);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
if (bindData === false || bindData !== true && bindData[1] & 1) {
|
|
913
|
-
return func;
|
|
914
|
-
}
|
|
915
|
-
switch(argCount){
|
|
916
|
-
case 1:
|
|
917
|
-
return function(value) {
|
|
918
|
-
return func.call(thisArg, value);
|
|
919
|
-
};
|
|
920
|
-
case 2:
|
|
921
|
-
return function(a, b) {
|
|
922
|
-
return func.call(thisArg, a, b);
|
|
923
|
-
};
|
|
924
|
-
case 3:
|
|
925
|
-
return function(value, index, collection) {
|
|
926
|
-
return func.call(thisArg, value, index, collection);
|
|
927
|
-
};
|
|
928
|
-
case 4:
|
|
929
|
-
return function(accumulator, value, index, collection) {
|
|
930
|
-
return func.call(thisArg, accumulator, value, index, collection);
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
return bind(func, thisArg);
|
|
934
|
-
}
|
|
935
|
-
module2.exports = baseCreateCallback;
|
|
936
|
-
}
|
|
937
|
-
});
|
|
938
|
-
// node_modules/lodash.forown/index.js
|
|
939
|
-
var require_lodash18 = __commonJS({
|
|
940
|
-
"node_modules/lodash.forown/index.js": function(exports2, module2) {
|
|
941
|
-
var baseCreateCallback = require_lodash17();
|
|
942
|
-
var keys = require_lodash5();
|
|
943
|
-
var objectTypes = require_lodash();
|
|
944
|
-
var forOwn = function forOwn(collection, callback, thisArg) {
|
|
945
|
-
var index, iterable = collection, result = iterable;
|
|
946
|
-
if (!iterable) return result;
|
|
947
|
-
if (!objectTypes[typeof iterable === "undefined" ? "undefined" : _type_of(iterable)]) return result;
|
|
948
|
-
callback = callback && typeof thisArg == "undefined" ? callback : baseCreateCallback(callback, thisArg, 3);
|
|
949
|
-
var ownIndex = -1, ownProps = objectTypes[typeof iterable === "undefined" ? "undefined" : _type_of(iterable)] && keys(iterable), length2 = ownProps ? ownProps.length : 0;
|
|
950
|
-
while(++ownIndex < length2){
|
|
951
|
-
index = ownProps[ownIndex];
|
|
952
|
-
if (callback(iterable[index], index, collection) === false) return result;
|
|
953
|
-
}
|
|
954
|
-
return result;
|
|
955
|
-
};
|
|
956
|
-
module2.exports = forOwn;
|
|
957
|
-
}
|
|
958
|
-
});
|
|
959
|
-
// node_modules/lodash.foreach/index.js
|
|
960
|
-
var require_lodash19 = __commonJS({
|
|
961
|
-
"node_modules/lodash.foreach/index.js": function(exports2, module2) {
|
|
962
|
-
var baseCreateCallback = require_lodash17();
|
|
963
|
-
var forOwn = require_lodash18();
|
|
964
|
-
function forEach(collection, callback, thisArg) {
|
|
965
|
-
var index = -1, length2 = collection ? collection.length : 0;
|
|
966
|
-
callback = callback && typeof thisArg == "undefined" ? callback : baseCreateCallback(callback, thisArg, 3);
|
|
967
|
-
if (typeof length2 == "number") {
|
|
968
|
-
while(++index < length2){
|
|
969
|
-
if (callback(collection[index], index, collection) === false) {
|
|
970
|
-
break;
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
} else {
|
|
974
|
-
forOwn(collection, callback);
|
|
975
|
-
}
|
|
976
|
-
return collection;
|
|
977
|
-
}
|
|
978
|
-
module2.exports = forEach;
|
|
979
|
-
}
|
|
980
|
-
});
|
|
981
|
-
// node_modules/convert-units/lib/definitions/length.js
|
|
982
|
-
var require_length = __commonJS({
|
|
983
|
-
"node_modules/convert-units/lib/definitions/length.js": function(exports2, module2) {
|
|
984
|
-
var metric;
|
|
985
|
-
var imperial;
|
|
986
|
-
metric = {
|
|
987
|
-
mm: {
|
|
988
|
-
name: {
|
|
989
|
-
singular: "Millimeter",
|
|
990
|
-
plural: "Millimeters"
|
|
991
|
-
},
|
|
992
|
-
to_anchor: 1 / 1e3
|
|
993
|
-
},
|
|
994
|
-
cm: {
|
|
995
|
-
name: {
|
|
996
|
-
singular: "Centimeter",
|
|
997
|
-
plural: "Centimeters"
|
|
998
|
-
},
|
|
999
|
-
to_anchor: 1 / 100
|
|
1000
|
-
},
|
|
1001
|
-
m: {
|
|
1002
|
-
name: {
|
|
1003
|
-
singular: "Meter",
|
|
1004
|
-
plural: "Meters"
|
|
1005
|
-
},
|
|
1006
|
-
to_anchor: 1
|
|
1007
|
-
},
|
|
1008
|
-
km: {
|
|
1009
|
-
name: {
|
|
1010
|
-
singular: "Kilometer",
|
|
1011
|
-
plural: "Kilometers"
|
|
1012
|
-
},
|
|
1013
|
-
to_anchor: 1e3
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
imperial = {
|
|
1017
|
-
"in": {
|
|
1018
|
-
name: {
|
|
1019
|
-
singular: "Inch",
|
|
1020
|
-
plural: "Inches"
|
|
1021
|
-
},
|
|
1022
|
-
to_anchor: 1 / 12
|
|
1023
|
-
},
|
|
1024
|
-
yd: {
|
|
1025
|
-
name: {
|
|
1026
|
-
singular: "Yard",
|
|
1027
|
-
plural: "Yards"
|
|
1028
|
-
},
|
|
1029
|
-
to_anchor: 3
|
|
1030
|
-
},
|
|
1031
|
-
"ft-us": {
|
|
1032
|
-
name: {
|
|
1033
|
-
singular: "US Survey Foot",
|
|
1034
|
-
plural: "US Survey Feet"
|
|
1035
|
-
},
|
|
1036
|
-
to_anchor: 1.000002
|
|
1037
|
-
},
|
|
1038
|
-
ft: {
|
|
1039
|
-
name: {
|
|
1040
|
-
singular: "Foot",
|
|
1041
|
-
plural: "Feet"
|
|
1042
|
-
},
|
|
1043
|
-
to_anchor: 1
|
|
1044
|
-
},
|
|
1045
|
-
mi: {
|
|
1046
|
-
name: {
|
|
1047
|
-
singular: "Mile",
|
|
1048
|
-
plural: "Miles"
|
|
1049
|
-
},
|
|
1050
|
-
to_anchor: 5280
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
module2.exports = {
|
|
1054
|
-
metric: metric,
|
|
1055
|
-
imperial: imperial,
|
|
1056
|
-
_anchors: {
|
|
1057
|
-
metric: {
|
|
1058
|
-
unit: "m",
|
|
1059
|
-
ratio: 3.28084
|
|
1060
|
-
},
|
|
1061
|
-
imperial: {
|
|
1062
|
-
unit: "ft",
|
|
1063
|
-
ratio: 1 / 3.28084
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
// node_modules/convert-units/lib/definitions/area.js
|
|
1070
|
-
var require_area = __commonJS({
|
|
1071
|
-
"node_modules/convert-units/lib/definitions/area.js": function(exports2, module2) {
|
|
1072
|
-
var metric;
|
|
1073
|
-
var imperial;
|
|
1074
|
-
metric = {
|
|
1075
|
-
mm2: {
|
|
1076
|
-
name: {
|
|
1077
|
-
singular: "Square Millimeter",
|
|
1078
|
-
plural: "Square Millimeters"
|
|
1079
|
-
},
|
|
1080
|
-
to_anchor: 1 / 1e6
|
|
1081
|
-
},
|
|
1082
|
-
cm2: {
|
|
1083
|
-
name: {
|
|
1084
|
-
singular: "Centimeter",
|
|
1085
|
-
plural: "Centimeters"
|
|
1086
|
-
},
|
|
1087
|
-
to_anchor: 1 / 1e4
|
|
1088
|
-
},
|
|
1089
|
-
m2: {
|
|
1090
|
-
name: {
|
|
1091
|
-
singular: "Square Meter",
|
|
1092
|
-
plural: "Square Meters"
|
|
1093
|
-
},
|
|
1094
|
-
to_anchor: 1
|
|
1095
|
-
},
|
|
1096
|
-
ha: {
|
|
1097
|
-
name: {
|
|
1098
|
-
singular: "Hectare",
|
|
1099
|
-
plural: "Hectares"
|
|
1100
|
-
},
|
|
1101
|
-
to_anchor: 1e4
|
|
1102
|
-
},
|
|
1103
|
-
km2: {
|
|
1104
|
-
name: {
|
|
1105
|
-
singular: "Square Kilometer",
|
|
1106
|
-
plural: "Square Kilometers"
|
|
1107
|
-
},
|
|
1108
|
-
to_anchor: 1e6
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
imperial = {
|
|
1112
|
-
"in2": {
|
|
1113
|
-
name: {
|
|
1114
|
-
singular: "Square Inch",
|
|
1115
|
-
plural: "Square Inches"
|
|
1116
|
-
},
|
|
1117
|
-
to_anchor: 1 / 144
|
|
1118
|
-
},
|
|
1119
|
-
yd2: {
|
|
1120
|
-
name: {
|
|
1121
|
-
singular: "Square Yard",
|
|
1122
|
-
plural: "Square Yards"
|
|
1123
|
-
},
|
|
1124
|
-
to_anchor: 9
|
|
1125
|
-
},
|
|
1126
|
-
ft2: {
|
|
1127
|
-
name: {
|
|
1128
|
-
singular: "Square Foot",
|
|
1129
|
-
plural: "Square Feet"
|
|
1130
|
-
},
|
|
1131
|
-
to_anchor: 1
|
|
1132
|
-
},
|
|
1133
|
-
ac: {
|
|
1134
|
-
name: {
|
|
1135
|
-
singular: "Acre",
|
|
1136
|
-
plural: "Acres"
|
|
1137
|
-
},
|
|
1138
|
-
to_anchor: 43560
|
|
1139
|
-
},
|
|
1140
|
-
mi2: {
|
|
1141
|
-
name: {
|
|
1142
|
-
singular: "Square Mile",
|
|
1143
|
-
plural: "Square Miles"
|
|
1144
|
-
},
|
|
1145
|
-
to_anchor: 27878400
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
module2.exports = {
|
|
1149
|
-
metric: metric,
|
|
1150
|
-
imperial: imperial,
|
|
1151
|
-
_anchors: {
|
|
1152
|
-
metric: {
|
|
1153
|
-
unit: "m2",
|
|
1154
|
-
ratio: 10.7639
|
|
1155
|
-
},
|
|
1156
|
-
imperial: {
|
|
1157
|
-
unit: "ft2",
|
|
1158
|
-
ratio: 1 / 10.7639
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
});
|
|
1164
|
-
// node_modules/convert-units/lib/definitions/mass.js
|
|
1165
|
-
var require_mass = __commonJS({
|
|
1166
|
-
"node_modules/convert-units/lib/definitions/mass.js": function(exports2, module2) {
|
|
1167
|
-
var metric;
|
|
1168
|
-
var imperial;
|
|
1169
|
-
metric = {
|
|
1170
|
-
mcg: {
|
|
1171
|
-
name: {
|
|
1172
|
-
singular: "Microgram",
|
|
1173
|
-
plural: "Micrograms"
|
|
1174
|
-
},
|
|
1175
|
-
to_anchor: 1 / 1e6
|
|
1176
|
-
},
|
|
1177
|
-
mg: {
|
|
1178
|
-
name: {
|
|
1179
|
-
singular: "Milligram",
|
|
1180
|
-
plural: "Milligrams"
|
|
1181
|
-
},
|
|
1182
|
-
to_anchor: 1 / 1e3
|
|
1183
|
-
},
|
|
1184
|
-
g: {
|
|
1185
|
-
name: {
|
|
1186
|
-
singular: "Gram",
|
|
1187
|
-
plural: "Grams"
|
|
1188
|
-
},
|
|
1189
|
-
to_anchor: 1
|
|
1190
|
-
},
|
|
1191
|
-
kg: {
|
|
1192
|
-
name: {
|
|
1193
|
-
singular: "Kilogram",
|
|
1194
|
-
plural: "Kilograms"
|
|
1195
|
-
},
|
|
1196
|
-
to_anchor: 1e3
|
|
1197
|
-
},
|
|
1198
|
-
mt: {
|
|
1199
|
-
name: {
|
|
1200
|
-
singular: "Metric Tonne",
|
|
1201
|
-
plural: "Metric Tonnes"
|
|
1202
|
-
},
|
|
1203
|
-
to_anchor: 1e6
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
imperial = {
|
|
1207
|
-
oz: {
|
|
1208
|
-
name: {
|
|
1209
|
-
singular: "Ounce",
|
|
1210
|
-
plural: "Ounces"
|
|
1211
|
-
},
|
|
1212
|
-
to_anchor: 1 / 16
|
|
1213
|
-
},
|
|
1214
|
-
lb: {
|
|
1215
|
-
name: {
|
|
1216
|
-
singular: "Pound",
|
|
1217
|
-
plural: "Pounds"
|
|
1218
|
-
},
|
|
1219
|
-
to_anchor: 1
|
|
1220
|
-
},
|
|
1221
|
-
t: {
|
|
1222
|
-
name: {
|
|
1223
|
-
singular: "Ton",
|
|
1224
|
-
plural: "Tons"
|
|
1225
|
-
},
|
|
1226
|
-
to_anchor: 2e3
|
|
1227
|
-
}
|
|
1228
|
-
};
|
|
1229
|
-
module2.exports = {
|
|
1230
|
-
metric: metric,
|
|
1231
|
-
imperial: imperial,
|
|
1232
|
-
_anchors: {
|
|
1233
|
-
metric: {
|
|
1234
|
-
unit: "g",
|
|
1235
|
-
ratio: 1 / 453.592
|
|
1236
|
-
},
|
|
1237
|
-
imperial: {
|
|
1238
|
-
unit: "lb",
|
|
1239
|
-
ratio: 453.592
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
});
|
|
1245
|
-
// node_modules/convert-units/lib/definitions/volume.js
|
|
1246
|
-
var require_volume = __commonJS({
|
|
1247
|
-
"node_modules/convert-units/lib/definitions/volume.js": function(exports2, module2) {
|
|
1248
|
-
var metric;
|
|
1249
|
-
var imperial;
|
|
1250
|
-
metric = {
|
|
1251
|
-
mm3: {
|
|
1252
|
-
name: {
|
|
1253
|
-
singular: "Cubic Millimeter",
|
|
1254
|
-
plural: "Cubic Millimeters"
|
|
1255
|
-
},
|
|
1256
|
-
to_anchor: 1 / 1e6
|
|
1257
|
-
},
|
|
1258
|
-
cm3: {
|
|
1259
|
-
name: {
|
|
1260
|
-
singular: "Cubic Centimeter",
|
|
1261
|
-
plural: "Cubic Centimeters"
|
|
1262
|
-
},
|
|
1263
|
-
to_anchor: 1 / 1e3
|
|
1264
|
-
},
|
|
1265
|
-
ml: {
|
|
1266
|
-
name: {
|
|
1267
|
-
singular: "Millilitre",
|
|
1268
|
-
plural: "Millilitres"
|
|
1269
|
-
},
|
|
1270
|
-
to_anchor: 1 / 1e3
|
|
1271
|
-
},
|
|
1272
|
-
cl: {
|
|
1273
|
-
name: {
|
|
1274
|
-
singular: "Centilitre",
|
|
1275
|
-
plural: "Centilitres"
|
|
1276
|
-
},
|
|
1277
|
-
to_anchor: 1 / 100
|
|
1278
|
-
},
|
|
1279
|
-
dl: {
|
|
1280
|
-
name: {
|
|
1281
|
-
singular: "Decilitre",
|
|
1282
|
-
plural: "Decilitres"
|
|
1283
|
-
},
|
|
1284
|
-
to_anchor: 1 / 10
|
|
1285
|
-
},
|
|
1286
|
-
l: {
|
|
1287
|
-
name: {
|
|
1288
|
-
singular: "Litre",
|
|
1289
|
-
plural: "Litres"
|
|
1290
|
-
},
|
|
1291
|
-
to_anchor: 1
|
|
1292
|
-
},
|
|
1293
|
-
kl: {
|
|
1294
|
-
name: {
|
|
1295
|
-
singular: "Kilolitre",
|
|
1296
|
-
plural: "Kilolitres"
|
|
1297
|
-
},
|
|
1298
|
-
to_anchor: 1e3
|
|
1299
|
-
},
|
|
1300
|
-
m3: {
|
|
1301
|
-
name: {
|
|
1302
|
-
singular: "Cubic meter",
|
|
1303
|
-
plural: "Cubic meters"
|
|
1304
|
-
},
|
|
1305
|
-
to_anchor: 1e3
|
|
1306
|
-
},
|
|
1307
|
-
km3: {
|
|
1308
|
-
name: {
|
|
1309
|
-
singular: "Cubic kilometer",
|
|
1310
|
-
plural: "Cubic kilometers"
|
|
1311
|
-
},
|
|
1312
|
-
to_anchor: 1e12
|
|
1313
|
-
},
|
|
1314
|
-
krm: {
|
|
1315
|
-
name: {
|
|
1316
|
-
singular: "Matsked",
|
|
1317
|
-
plural: "Matskedar"
|
|
1318
|
-
},
|
|
1319
|
-
to_anchor: 1 / 1e3
|
|
1320
|
-
},
|
|
1321
|
-
tsk: {
|
|
1322
|
-
name: {
|
|
1323
|
-
singular: "Tesked",
|
|
1324
|
-
plural: "Teskedar"
|
|
1325
|
-
},
|
|
1326
|
-
to_anchor: 5 / 1e3
|
|
1327
|
-
},
|
|
1328
|
-
msk: {
|
|
1329
|
-
name: {
|
|
1330
|
-
singular: "Matsked",
|
|
1331
|
-
plural: "Matskedar"
|
|
1332
|
-
},
|
|
1333
|
-
to_anchor: 15 / 1e3
|
|
1334
|
-
},
|
|
1335
|
-
kkp: {
|
|
1336
|
-
name: {
|
|
1337
|
-
singular: "Kaffekopp",
|
|
1338
|
-
plural: "Kaffekoppar"
|
|
1339
|
-
},
|
|
1340
|
-
to_anchor: 150 / 1e3
|
|
1341
|
-
},
|
|
1342
|
-
glas: {
|
|
1343
|
-
name: {
|
|
1344
|
-
singular: "Glas",
|
|
1345
|
-
plural: "Glas"
|
|
1346
|
-
},
|
|
1347
|
-
to_anchor: 200 / 1e3
|
|
1348
|
-
},
|
|
1349
|
-
kanna: {
|
|
1350
|
-
name: {
|
|
1351
|
-
singular: "Kanna",
|
|
1352
|
-
plural: "Kannor"
|
|
1353
|
-
},
|
|
1354
|
-
to_anchor: 2.617
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
imperial = {
|
|
1358
|
-
tsp: {
|
|
1359
|
-
name: {
|
|
1360
|
-
singular: "Teaspoon",
|
|
1361
|
-
plural: "Teaspoons"
|
|
1362
|
-
},
|
|
1363
|
-
to_anchor: 1 / 6
|
|
1364
|
-
},
|
|
1365
|
-
Tbs: {
|
|
1366
|
-
name: {
|
|
1367
|
-
singular: "Tablespoon",
|
|
1368
|
-
plural: "Tablespoons"
|
|
1369
|
-
},
|
|
1370
|
-
to_anchor: 1 / 2
|
|
1371
|
-
},
|
|
1372
|
-
in3: {
|
|
1373
|
-
name: {
|
|
1374
|
-
singular: "Cubic inch",
|
|
1375
|
-
plural: "Cubic inches"
|
|
1376
|
-
},
|
|
1377
|
-
to_anchor: 0.55411
|
|
1378
|
-
},
|
|
1379
|
-
"fl-oz": {
|
|
1380
|
-
name: {
|
|
1381
|
-
singular: "Fluid Ounce",
|
|
1382
|
-
plural: "Fluid Ounces"
|
|
1383
|
-
},
|
|
1384
|
-
to_anchor: 1
|
|
1385
|
-
},
|
|
1386
|
-
cup: {
|
|
1387
|
-
name: {
|
|
1388
|
-
singular: "Cup",
|
|
1389
|
-
plural: "Cups"
|
|
1390
|
-
},
|
|
1391
|
-
to_anchor: 8
|
|
1392
|
-
},
|
|
1393
|
-
pnt: {
|
|
1394
|
-
name: {
|
|
1395
|
-
singular: "Pint",
|
|
1396
|
-
plural: "Pints"
|
|
1397
|
-
},
|
|
1398
|
-
to_anchor: 16
|
|
1399
|
-
},
|
|
1400
|
-
qt: {
|
|
1401
|
-
name: {
|
|
1402
|
-
singular: "Quart",
|
|
1403
|
-
plural: "Quarts"
|
|
1404
|
-
},
|
|
1405
|
-
to_anchor: 32
|
|
1406
|
-
},
|
|
1407
|
-
gal: {
|
|
1408
|
-
name: {
|
|
1409
|
-
singular: "Gallon",
|
|
1410
|
-
plural: "Gallons"
|
|
1411
|
-
},
|
|
1412
|
-
to_anchor: 128
|
|
1413
|
-
},
|
|
1414
|
-
ft3: {
|
|
1415
|
-
name: {
|
|
1416
|
-
singular: "Cubic foot",
|
|
1417
|
-
plural: "Cubic feet"
|
|
1418
|
-
},
|
|
1419
|
-
to_anchor: 957.506
|
|
1420
|
-
},
|
|
1421
|
-
yd3: {
|
|
1422
|
-
name: {
|
|
1423
|
-
singular: "Cubic yard",
|
|
1424
|
-
plural: "Cubic yards"
|
|
1425
|
-
},
|
|
1426
|
-
to_anchor: 25852.7
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
module2.exports = {
|
|
1430
|
-
metric: metric,
|
|
1431
|
-
imperial: imperial,
|
|
1432
|
-
_anchors: {
|
|
1433
|
-
metric: {
|
|
1434
|
-
unit: "l",
|
|
1435
|
-
ratio: 33.8140226
|
|
1436
|
-
},
|
|
1437
|
-
imperial: {
|
|
1438
|
-
unit: "fl-oz",
|
|
1439
|
-
ratio: 1 / 33.8140226
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
|
-
}
|
|
1444
|
-
});
|
|
1445
|
-
// node_modules/convert-units/lib/definitions/each.js
|
|
1446
|
-
var require_each = __commonJS({
|
|
1447
|
-
"node_modules/convert-units/lib/definitions/each.js": function(exports2, module2) {
|
|
1448
|
-
var metric;
|
|
1449
|
-
metric = {
|
|
1450
|
-
ea: {
|
|
1451
|
-
name: {
|
|
1452
|
-
singular: "Each",
|
|
1453
|
-
plural: "Each"
|
|
1454
|
-
},
|
|
1455
|
-
to_anchor: 1
|
|
1456
|
-
},
|
|
1457
|
-
dz: {
|
|
1458
|
-
name: {
|
|
1459
|
-
singular: "Dozen",
|
|
1460
|
-
plural: "Dozens"
|
|
1461
|
-
},
|
|
1462
|
-
to_anchor: 12
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
module2.exports = {
|
|
1466
|
-
metric: metric,
|
|
1467
|
-
imperial: {},
|
|
1468
|
-
_anchors: {
|
|
1469
|
-
metric: {
|
|
1470
|
-
unit: "ea",
|
|
1471
|
-
ratio: 1
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
// node_modules/convert-units/lib/definitions/temperature.js
|
|
1478
|
-
var require_temperature = __commonJS({
|
|
1479
|
-
"node_modules/convert-units/lib/definitions/temperature.js": function(exports2, module2) {
|
|
1480
|
-
var metric;
|
|
1481
|
-
var imperial;
|
|
1482
|
-
metric = {
|
|
1483
|
-
C: {
|
|
1484
|
-
name: {
|
|
1485
|
-
singular: "degree Celsius",
|
|
1486
|
-
plural: "degrees Celsius"
|
|
1487
|
-
},
|
|
1488
|
-
to_anchor: 1,
|
|
1489
|
-
anchor_shift: 0
|
|
1490
|
-
},
|
|
1491
|
-
K: {
|
|
1492
|
-
name: {
|
|
1493
|
-
singular: "degree Kelvin",
|
|
1494
|
-
plural: "degrees Kelvin"
|
|
1495
|
-
},
|
|
1496
|
-
to_anchor: 1,
|
|
1497
|
-
anchor_shift: 273.15
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
imperial = {
|
|
1501
|
-
F: {
|
|
1502
|
-
name: {
|
|
1503
|
-
singular: "degree Fahrenheit",
|
|
1504
|
-
plural: "degrees Fahrenheit"
|
|
1505
|
-
},
|
|
1506
|
-
to_anchor: 1
|
|
1507
|
-
},
|
|
1508
|
-
R: {
|
|
1509
|
-
name: {
|
|
1510
|
-
singular: "degree Rankine",
|
|
1511
|
-
plural: "degrees Rankine"
|
|
1512
|
-
},
|
|
1513
|
-
to_anchor: 1,
|
|
1514
|
-
anchor_shift: 459.67
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
module2.exports = {
|
|
1518
|
-
metric: metric,
|
|
1519
|
-
imperial: imperial,
|
|
1520
|
-
_anchors: {
|
|
1521
|
-
metric: {
|
|
1522
|
-
unit: "C",
|
|
1523
|
-
transform: function transform(C) {
|
|
1524
|
-
return C / (5 / 9) + 32;
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
imperial: {
|
|
1528
|
-
unit: "F",
|
|
1529
|
-
transform: function transform(F) {
|
|
1530
|
-
return (F - 32) * (5 / 9);
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
// node_modules/convert-units/lib/definitions/time.js
|
|
1538
|
-
var require_time = __commonJS({
|
|
1539
|
-
"node_modules/convert-units/lib/definitions/time.js": function(exports2, module2) {
|
|
1540
|
-
var time2;
|
|
1541
|
-
var daysInYear = 365.25;
|
|
1542
|
-
time2 = {
|
|
1543
|
-
ns: {
|
|
1544
|
-
name: {
|
|
1545
|
-
singular: "Nanosecond",
|
|
1546
|
-
plural: "Nanoseconds"
|
|
1547
|
-
},
|
|
1548
|
-
to_anchor: 1 / 1e9
|
|
1549
|
-
},
|
|
1550
|
-
mu: {
|
|
1551
|
-
name: {
|
|
1552
|
-
singular: "Microsecond",
|
|
1553
|
-
plural: "Microseconds"
|
|
1554
|
-
},
|
|
1555
|
-
to_anchor: 1 / 1e6
|
|
1556
|
-
},
|
|
1557
|
-
ms: {
|
|
1558
|
-
name: {
|
|
1559
|
-
singular: "Millisecond",
|
|
1560
|
-
plural: "Milliseconds"
|
|
1561
|
-
},
|
|
1562
|
-
to_anchor: 1 / 1e3
|
|
1563
|
-
},
|
|
1564
|
-
s: {
|
|
1565
|
-
name: {
|
|
1566
|
-
singular: "Second",
|
|
1567
|
-
plural: "Seconds"
|
|
1568
|
-
},
|
|
1569
|
-
to_anchor: 1
|
|
1570
|
-
},
|
|
1571
|
-
min: {
|
|
1572
|
-
name: {
|
|
1573
|
-
singular: "Minute",
|
|
1574
|
-
plural: "Minutes"
|
|
1575
|
-
},
|
|
1576
|
-
to_anchor: 60
|
|
1577
|
-
},
|
|
1578
|
-
h: {
|
|
1579
|
-
name: {
|
|
1580
|
-
singular: "Hour",
|
|
1581
|
-
plural: "Hours"
|
|
1582
|
-
},
|
|
1583
|
-
to_anchor: 60 * 60
|
|
1584
|
-
},
|
|
1585
|
-
d: {
|
|
1586
|
-
name: {
|
|
1587
|
-
singular: "Day",
|
|
1588
|
-
plural: "Days"
|
|
1589
|
-
},
|
|
1590
|
-
to_anchor: 60 * 60 * 24
|
|
1591
|
-
},
|
|
1592
|
-
week: {
|
|
1593
|
-
name: {
|
|
1594
|
-
singular: "Week",
|
|
1595
|
-
plural: "Weeks"
|
|
1596
|
-
},
|
|
1597
|
-
to_anchor: 60 * 60 * 24 * 7
|
|
1598
|
-
},
|
|
1599
|
-
month: {
|
|
1600
|
-
name: {
|
|
1601
|
-
singular: "Month",
|
|
1602
|
-
plural: "Months"
|
|
1603
|
-
},
|
|
1604
|
-
to_anchor: 60 * 60 * 24 * daysInYear / 12
|
|
1605
|
-
},
|
|
1606
|
-
year: {
|
|
1607
|
-
name: {
|
|
1608
|
-
singular: "Year",
|
|
1609
|
-
plural: "Years"
|
|
1610
|
-
},
|
|
1611
|
-
to_anchor: 60 * 60 * 24 * daysInYear
|
|
1612
|
-
}
|
|
1613
|
-
};
|
|
1614
|
-
module2.exports = {
|
|
1615
|
-
metric: time2,
|
|
1616
|
-
_anchors: {
|
|
1617
|
-
metric: {
|
|
1618
|
-
unit: "s",
|
|
1619
|
-
ratio: 1
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
});
|
|
1625
|
-
// node_modules/convert-units/lib/definitions/digital.js
|
|
1626
|
-
var require_digital = __commonJS({
|
|
1627
|
-
"node_modules/convert-units/lib/definitions/digital.js": function(exports2, module2) {
|
|
1628
|
-
var bits;
|
|
1629
|
-
var bytes;
|
|
1630
|
-
bits = {
|
|
1631
|
-
b: {
|
|
1632
|
-
name: {
|
|
1633
|
-
singular: "Bit",
|
|
1634
|
-
plural: "Bits"
|
|
1635
|
-
},
|
|
1636
|
-
to_anchor: 1
|
|
1637
|
-
},
|
|
1638
|
-
Kb: {
|
|
1639
|
-
name: {
|
|
1640
|
-
singular: "Kilobit",
|
|
1641
|
-
plural: "Kilobits"
|
|
1642
|
-
},
|
|
1643
|
-
to_anchor: 1024
|
|
1644
|
-
},
|
|
1645
|
-
Mb: {
|
|
1646
|
-
name: {
|
|
1647
|
-
singular: "Megabit",
|
|
1648
|
-
plural: "Megabits"
|
|
1649
|
-
},
|
|
1650
|
-
to_anchor: 1048576
|
|
1651
|
-
},
|
|
1652
|
-
Gb: {
|
|
1653
|
-
name: {
|
|
1654
|
-
singular: "Gigabit",
|
|
1655
|
-
plural: "Gigabits"
|
|
1656
|
-
},
|
|
1657
|
-
to_anchor: 1073741824
|
|
1658
|
-
},
|
|
1659
|
-
Tb: {
|
|
1660
|
-
name: {
|
|
1661
|
-
singular: "Terabit",
|
|
1662
|
-
plural: "Terabits"
|
|
1663
|
-
},
|
|
1664
|
-
to_anchor: 1099511627776
|
|
1665
|
-
}
|
|
1666
|
-
};
|
|
1667
|
-
bytes = {
|
|
1668
|
-
B: {
|
|
1669
|
-
name: {
|
|
1670
|
-
singular: "Byte",
|
|
1671
|
-
plural: "Bytes"
|
|
1672
|
-
},
|
|
1673
|
-
to_anchor: 1
|
|
1674
|
-
},
|
|
1675
|
-
KB: {
|
|
1676
|
-
name: {
|
|
1677
|
-
singular: "Kilobyte",
|
|
1678
|
-
plural: "Kilobytes"
|
|
1679
|
-
},
|
|
1680
|
-
to_anchor: 1024
|
|
1681
|
-
},
|
|
1682
|
-
MB: {
|
|
1683
|
-
name: {
|
|
1684
|
-
singular: "Megabyte",
|
|
1685
|
-
plural: "Megabytes"
|
|
1686
|
-
},
|
|
1687
|
-
to_anchor: 1048576
|
|
1688
|
-
},
|
|
1689
|
-
GB: {
|
|
1690
|
-
name: {
|
|
1691
|
-
singular: "Gigabyte",
|
|
1692
|
-
plural: "Gigabytes"
|
|
1693
|
-
},
|
|
1694
|
-
to_anchor: 1073741824
|
|
1695
|
-
},
|
|
1696
|
-
TB: {
|
|
1697
|
-
name: {
|
|
1698
|
-
singular: "Terabyte",
|
|
1699
|
-
plural: "Terabytes"
|
|
1700
|
-
},
|
|
1701
|
-
to_anchor: 1099511627776
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
|
-
module2.exports = {
|
|
1705
|
-
bits: bits,
|
|
1706
|
-
bytes: bytes,
|
|
1707
|
-
_anchors: {
|
|
1708
|
-
bits: {
|
|
1709
|
-
unit: "b",
|
|
1710
|
-
ratio: 1 / 8
|
|
1711
|
-
},
|
|
1712
|
-
bytes: {
|
|
1713
|
-
unit: "B",
|
|
1714
|
-
ratio: 8
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
};
|
|
1718
|
-
}
|
|
1719
|
-
});
|
|
1720
|
-
// node_modules/convert-units/lib/definitions/partsPer.js
|
|
1721
|
-
var require_partsPer = __commonJS({
|
|
1722
|
-
"node_modules/convert-units/lib/definitions/partsPer.js": function(exports2, module2) {
|
|
1723
|
-
var metric;
|
|
1724
|
-
metric = {
|
|
1725
|
-
ppm: {
|
|
1726
|
-
name: {
|
|
1727
|
-
singular: "Part-per Million",
|
|
1728
|
-
plural: "Parts-per Million"
|
|
1729
|
-
},
|
|
1730
|
-
to_anchor: 1
|
|
1731
|
-
},
|
|
1732
|
-
ppb: {
|
|
1733
|
-
name: {
|
|
1734
|
-
singular: "Part-per Billion",
|
|
1735
|
-
plural: "Parts-per Billion"
|
|
1736
|
-
},
|
|
1737
|
-
to_anchor: 1e-3
|
|
1738
|
-
},
|
|
1739
|
-
ppt: {
|
|
1740
|
-
name: {
|
|
1741
|
-
singular: "Part-per Trillion",
|
|
1742
|
-
plural: "Parts-per Trillion"
|
|
1743
|
-
},
|
|
1744
|
-
to_anchor: 1e-6
|
|
1745
|
-
},
|
|
1746
|
-
ppq: {
|
|
1747
|
-
name: {
|
|
1748
|
-
singular: "Part-per Quadrillion",
|
|
1749
|
-
plural: "Parts-per Quadrillion"
|
|
1750
|
-
},
|
|
1751
|
-
to_anchor: 1e-9
|
|
1752
|
-
}
|
|
1753
|
-
};
|
|
1754
|
-
module2.exports = {
|
|
1755
|
-
metric: metric,
|
|
1756
|
-
imperial: {},
|
|
1757
|
-
_anchors: {
|
|
1758
|
-
metric: {
|
|
1759
|
-
unit: "ppm",
|
|
1760
|
-
ratio: 1e-6
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
}
|
|
1765
|
-
});
|
|
1766
|
-
// node_modules/convert-units/lib/definitions/speed.js
|
|
1767
|
-
var require_speed = __commonJS({
|
|
1768
|
-
"node_modules/convert-units/lib/definitions/speed.js": function(exports2, module2) {
|
|
1769
|
-
var metric;
|
|
1770
|
-
var imperial;
|
|
1771
|
-
metric = {
|
|
1772
|
-
"m/s": {
|
|
1773
|
-
name: {
|
|
1774
|
-
singular: "Metre per second",
|
|
1775
|
-
plural: "Metres per second"
|
|
1776
|
-
},
|
|
1777
|
-
to_anchor: 3.6
|
|
1778
|
-
},
|
|
1779
|
-
"km/h": {
|
|
1780
|
-
name: {
|
|
1781
|
-
singular: "Kilometre per hour",
|
|
1782
|
-
plural: "Kilometres per hour"
|
|
1783
|
-
},
|
|
1784
|
-
to_anchor: 1
|
|
1785
|
-
}
|
|
1786
|
-
};
|
|
1787
|
-
imperial = {
|
|
1788
|
-
"m/h": {
|
|
1789
|
-
name: {
|
|
1790
|
-
singular: "Mile per hour",
|
|
1791
|
-
plural: "Miles per hour"
|
|
1792
|
-
},
|
|
1793
|
-
to_anchor: 1
|
|
1794
|
-
},
|
|
1795
|
-
knot: {
|
|
1796
|
-
name: {
|
|
1797
|
-
singular: "Knot",
|
|
1798
|
-
plural: "Knots"
|
|
1799
|
-
},
|
|
1800
|
-
to_anchor: 1.150779
|
|
1801
|
-
},
|
|
1802
|
-
"ft/s": {
|
|
1803
|
-
name: {
|
|
1804
|
-
singular: "Foot per second",
|
|
1805
|
-
plural: "Feet per second"
|
|
1806
|
-
},
|
|
1807
|
-
to_anchor: 0.681818
|
|
1808
|
-
}
|
|
1809
|
-
};
|
|
1810
|
-
module2.exports = {
|
|
1811
|
-
metric: metric,
|
|
1812
|
-
imperial: imperial,
|
|
1813
|
-
_anchors: {
|
|
1814
|
-
metric: {
|
|
1815
|
-
unit: "km/h",
|
|
1816
|
-
ratio: 1 / 1.609344
|
|
1817
|
-
},
|
|
1818
|
-
imperial: {
|
|
1819
|
-
unit: "m/h",
|
|
1820
|
-
ratio: 1.609344
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
|
-
}
|
|
1825
|
-
});
|
|
1826
|
-
// node_modules/convert-units/lib/definitions/pace.js
|
|
1827
|
-
var require_pace = __commonJS({
|
|
1828
|
-
"node_modules/convert-units/lib/definitions/pace.js": function(exports2, module2) {
|
|
1829
|
-
var metric;
|
|
1830
|
-
var imperial;
|
|
1831
|
-
metric = {
|
|
1832
|
-
"min/km": {
|
|
1833
|
-
name: {
|
|
1834
|
-
singular: "Minute per kilometre",
|
|
1835
|
-
plural: "Minutes per kilometre"
|
|
1836
|
-
},
|
|
1837
|
-
to_anchor: 0.06
|
|
1838
|
-
},
|
|
1839
|
-
"s/m": {
|
|
1840
|
-
name: {
|
|
1841
|
-
singular: "Second per metre",
|
|
1842
|
-
plural: "Seconds per metre"
|
|
1843
|
-
},
|
|
1844
|
-
to_anchor: 1
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
imperial = {
|
|
1848
|
-
"min/mi": {
|
|
1849
|
-
name: {
|
|
1850
|
-
singular: "Minute per mile",
|
|
1851
|
-
plural: "Minutes per mile"
|
|
1852
|
-
},
|
|
1853
|
-
to_anchor: 0.0113636
|
|
1854
|
-
},
|
|
1855
|
-
"s/ft": {
|
|
1856
|
-
name: {
|
|
1857
|
-
singular: "Second per foot",
|
|
1858
|
-
plural: "Seconds per foot"
|
|
1859
|
-
},
|
|
1860
|
-
to_anchor: 1
|
|
1861
|
-
}
|
|
1862
|
-
};
|
|
1863
|
-
module2.exports = {
|
|
1864
|
-
metric: metric,
|
|
1865
|
-
imperial: imperial,
|
|
1866
|
-
_anchors: {
|
|
1867
|
-
metric: {
|
|
1868
|
-
unit: "s/m",
|
|
1869
|
-
ratio: 0.3048
|
|
1870
|
-
},
|
|
1871
|
-
imperial: {
|
|
1872
|
-
unit: "s/ft",
|
|
1873
|
-
ratio: 1 / 0.3048
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
};
|
|
1877
|
-
}
|
|
1878
|
-
});
|
|
1879
|
-
// node_modules/convert-units/lib/definitions/pressure.js
|
|
1880
|
-
var require_pressure = __commonJS({
|
|
1881
|
-
"node_modules/convert-units/lib/definitions/pressure.js": function(exports2, module2) {
|
|
1882
|
-
var metric;
|
|
1883
|
-
var imperial;
|
|
1884
|
-
metric = {
|
|
1885
|
-
Pa: {
|
|
1886
|
-
name: {
|
|
1887
|
-
singular: "pascal",
|
|
1888
|
-
plural: "pascals"
|
|
1889
|
-
},
|
|
1890
|
-
to_anchor: 1 / 1e3
|
|
1891
|
-
},
|
|
1892
|
-
kPa: {
|
|
1893
|
-
name: {
|
|
1894
|
-
singular: "kilopascal",
|
|
1895
|
-
plural: "kilopascals"
|
|
1896
|
-
},
|
|
1897
|
-
to_anchor: 1
|
|
1898
|
-
},
|
|
1899
|
-
MPa: {
|
|
1900
|
-
name: {
|
|
1901
|
-
singular: "megapascal",
|
|
1902
|
-
plural: "megapascals"
|
|
1903
|
-
},
|
|
1904
|
-
to_anchor: 1e3
|
|
1905
|
-
},
|
|
1906
|
-
hPa: {
|
|
1907
|
-
name: {
|
|
1908
|
-
singular: "hectopascal",
|
|
1909
|
-
plural: "hectopascals"
|
|
1910
|
-
},
|
|
1911
|
-
to_anchor: 1 / 10
|
|
1912
|
-
},
|
|
1913
|
-
bar: {
|
|
1914
|
-
name: {
|
|
1915
|
-
singular: "bar",
|
|
1916
|
-
plural: "bar"
|
|
1917
|
-
},
|
|
1918
|
-
to_anchor: 100
|
|
1919
|
-
},
|
|
1920
|
-
torr: {
|
|
1921
|
-
name: {
|
|
1922
|
-
singular: "torr",
|
|
1923
|
-
plural: "torr"
|
|
1924
|
-
},
|
|
1925
|
-
to_anchor: 101325 / 76e4
|
|
1926
|
-
}
|
|
1927
|
-
};
|
|
1928
|
-
imperial = {
|
|
1929
|
-
psi: {
|
|
1930
|
-
name: {
|
|
1931
|
-
singular: "pound per square inch",
|
|
1932
|
-
plural: "pounds per square inch"
|
|
1933
|
-
},
|
|
1934
|
-
to_anchor: 1 / 1e3
|
|
1935
|
-
},
|
|
1936
|
-
ksi: {
|
|
1937
|
-
name: {
|
|
1938
|
-
singular: "kilopound per square inch",
|
|
1939
|
-
plural: "kilopound per square inch"
|
|
1940
|
-
},
|
|
1941
|
-
to_anchor: 1
|
|
1942
|
-
}
|
|
1943
|
-
};
|
|
1944
|
-
module2.exports = {
|
|
1945
|
-
metric: metric,
|
|
1946
|
-
imperial: imperial,
|
|
1947
|
-
_anchors: {
|
|
1948
|
-
metric: {
|
|
1949
|
-
unit: "kPa",
|
|
1950
|
-
ratio: 14503768078e-14
|
|
1951
|
-
},
|
|
1952
|
-
imperial: {
|
|
1953
|
-
unit: "psi",
|
|
1954
|
-
ratio: 1 / 14503768078e-14
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
});
|
|
1960
|
-
// node_modules/convert-units/lib/definitions/current.js
|
|
1961
|
-
var require_current = __commonJS({
|
|
1962
|
-
"node_modules/convert-units/lib/definitions/current.js": function(exports2, module2) {
|
|
1963
|
-
var current2;
|
|
1964
|
-
current2 = {
|
|
1965
|
-
A: {
|
|
1966
|
-
name: {
|
|
1967
|
-
singular: "Ampere",
|
|
1968
|
-
plural: "Amperes"
|
|
1969
|
-
},
|
|
1970
|
-
to_anchor: 1
|
|
1971
|
-
},
|
|
1972
|
-
mA: {
|
|
1973
|
-
name: {
|
|
1974
|
-
singular: "Milliampere",
|
|
1975
|
-
plural: "Milliamperes"
|
|
1976
|
-
},
|
|
1977
|
-
to_anchor: 1e-3
|
|
1978
|
-
},
|
|
1979
|
-
kA: {
|
|
1980
|
-
name: {
|
|
1981
|
-
singular: "Kiloampere",
|
|
1982
|
-
plural: "Kiloamperes"
|
|
1983
|
-
},
|
|
1984
|
-
to_anchor: 1e3
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
module2.exports = {
|
|
1988
|
-
metric: current2,
|
|
1989
|
-
_anchors: {
|
|
1990
|
-
metric: {
|
|
1991
|
-
unit: "A",
|
|
1992
|
-
ratio: 1
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
};
|
|
1996
|
-
}
|
|
1997
|
-
});
|
|
1998
|
-
// node_modules/convert-units/lib/definitions/voltage.js
|
|
1999
|
-
var require_voltage = __commonJS({
|
|
2000
|
-
"node_modules/convert-units/lib/definitions/voltage.js": function(exports2, module2) {
|
|
2001
|
-
var voltage2;
|
|
2002
|
-
voltage2 = {
|
|
2003
|
-
V: {
|
|
2004
|
-
name: {
|
|
2005
|
-
singular: "Volt",
|
|
2006
|
-
plural: "Volts"
|
|
2007
|
-
},
|
|
2008
|
-
to_anchor: 1
|
|
2009
|
-
},
|
|
2010
|
-
mV: {
|
|
2011
|
-
name: {
|
|
2012
|
-
singular: "Millivolt",
|
|
2013
|
-
plural: "Millivolts"
|
|
2014
|
-
},
|
|
2015
|
-
to_anchor: 1e-3
|
|
2016
|
-
},
|
|
2017
|
-
kV: {
|
|
2018
|
-
name: {
|
|
2019
|
-
singular: "Kilovolt",
|
|
2020
|
-
plural: "Kilovolts"
|
|
2021
|
-
},
|
|
2022
|
-
to_anchor: 1e3
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
module2.exports = {
|
|
2026
|
-
metric: voltage2,
|
|
2027
|
-
_anchors: {
|
|
2028
|
-
metric: {
|
|
2029
|
-
unit: "V",
|
|
2030
|
-
ratio: 1
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
};
|
|
2034
|
-
}
|
|
2035
|
-
});
|
|
2036
|
-
// node_modules/convert-units/lib/definitions/power.js
|
|
2037
|
-
var require_power = __commonJS({
|
|
2038
|
-
"node_modules/convert-units/lib/definitions/power.js": function(exports2, module2) {
|
|
2039
|
-
var power;
|
|
2040
|
-
power = {
|
|
2041
|
-
W: {
|
|
2042
|
-
name: {
|
|
2043
|
-
singular: "Watt",
|
|
2044
|
-
plural: "Watts"
|
|
2045
|
-
},
|
|
2046
|
-
to_anchor: 1
|
|
2047
|
-
},
|
|
2048
|
-
mW: {
|
|
2049
|
-
name: {
|
|
2050
|
-
singular: "Milliwatt",
|
|
2051
|
-
plural: "Milliwatts"
|
|
2052
|
-
},
|
|
2053
|
-
to_anchor: 1e-3
|
|
2054
|
-
},
|
|
2055
|
-
kW: {
|
|
2056
|
-
name: {
|
|
2057
|
-
singular: "Kilowatt",
|
|
2058
|
-
plural: "Kilowatts"
|
|
2059
|
-
},
|
|
2060
|
-
to_anchor: 1e3
|
|
2061
|
-
},
|
|
2062
|
-
MW: {
|
|
2063
|
-
name: {
|
|
2064
|
-
singular: "Megawatt",
|
|
2065
|
-
plural: "Megawatts"
|
|
2066
|
-
},
|
|
2067
|
-
to_anchor: 1e6
|
|
2068
|
-
},
|
|
2069
|
-
GW: {
|
|
2070
|
-
name: {
|
|
2071
|
-
singular: "Gigawatt",
|
|
2072
|
-
plural: "Gigawatts"
|
|
2073
|
-
},
|
|
2074
|
-
to_anchor: 1e9
|
|
2075
|
-
}
|
|
2076
|
-
};
|
|
2077
|
-
module2.exports = {
|
|
2078
|
-
metric: power,
|
|
2079
|
-
_anchors: {
|
|
2080
|
-
metric: {
|
|
2081
|
-
unit: "W",
|
|
2082
|
-
ratio: 1
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
}
|
|
2087
|
-
});
|
|
2088
|
-
// node_modules/convert-units/lib/definitions/reactivePower.js
|
|
2089
|
-
var require_reactivePower = __commonJS({
|
|
2090
|
-
"node_modules/convert-units/lib/definitions/reactivePower.js": function(exports2, module2) {
|
|
2091
|
-
var reactivePower;
|
|
2092
|
-
reactivePower = {
|
|
2093
|
-
VAR: {
|
|
2094
|
-
name: {
|
|
2095
|
-
singular: "Volt-Ampere Reactive",
|
|
2096
|
-
plural: "Volt-Amperes Reactive"
|
|
2097
|
-
},
|
|
2098
|
-
to_anchor: 1
|
|
2099
|
-
},
|
|
2100
|
-
mVAR: {
|
|
2101
|
-
name: {
|
|
2102
|
-
singular: "Millivolt-Ampere Reactive",
|
|
2103
|
-
plural: "Millivolt-Amperes Reactive"
|
|
2104
|
-
},
|
|
2105
|
-
to_anchor: 1e-3
|
|
2106
|
-
},
|
|
2107
|
-
kVAR: {
|
|
2108
|
-
name: {
|
|
2109
|
-
singular: "Kilovolt-Ampere Reactive",
|
|
2110
|
-
plural: "Kilovolt-Amperes Reactive"
|
|
2111
|
-
},
|
|
2112
|
-
to_anchor: 1e3
|
|
2113
|
-
},
|
|
2114
|
-
MVAR: {
|
|
2115
|
-
name: {
|
|
2116
|
-
singular: "Megavolt-Ampere Reactive",
|
|
2117
|
-
plural: "Megavolt-Amperes Reactive"
|
|
2118
|
-
},
|
|
2119
|
-
to_anchor: 1e6
|
|
2120
|
-
},
|
|
2121
|
-
GVAR: {
|
|
2122
|
-
name: {
|
|
2123
|
-
singular: "Gigavolt-Ampere Reactive",
|
|
2124
|
-
plural: "Gigavolt-Amperes Reactive"
|
|
2125
|
-
},
|
|
2126
|
-
to_anchor: 1e9
|
|
2127
|
-
}
|
|
2128
|
-
};
|
|
2129
|
-
module2.exports = {
|
|
2130
|
-
metric: reactivePower,
|
|
2131
|
-
_anchors: {
|
|
2132
|
-
metric: {
|
|
2133
|
-
unit: "VAR",
|
|
2134
|
-
ratio: 1
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
};
|
|
2138
|
-
}
|
|
2139
|
-
});
|
|
2140
|
-
// node_modules/convert-units/lib/definitions/apparentPower.js
|
|
2141
|
-
var require_apparentPower = __commonJS({
|
|
2142
|
-
"node_modules/convert-units/lib/definitions/apparentPower.js": function(exports2, module2) {
|
|
2143
|
-
var apparentPower;
|
|
2144
|
-
apparentPower = {
|
|
2145
|
-
VA: {
|
|
2146
|
-
name: {
|
|
2147
|
-
singular: "Volt-Ampere",
|
|
2148
|
-
plural: "Volt-Amperes"
|
|
2149
|
-
},
|
|
2150
|
-
to_anchor: 1
|
|
2151
|
-
},
|
|
2152
|
-
mVA: {
|
|
2153
|
-
name: {
|
|
2154
|
-
singular: "Millivolt-Ampere",
|
|
2155
|
-
plural: "Millivolt-Amperes"
|
|
2156
|
-
},
|
|
2157
|
-
to_anchor: 1e-3
|
|
2158
|
-
},
|
|
2159
|
-
kVA: {
|
|
2160
|
-
name: {
|
|
2161
|
-
singular: "Kilovolt-Ampere",
|
|
2162
|
-
plural: "Kilovolt-Amperes"
|
|
2163
|
-
},
|
|
2164
|
-
to_anchor: 1e3
|
|
2165
|
-
},
|
|
2166
|
-
MVA: {
|
|
2167
|
-
name: {
|
|
2168
|
-
singular: "Megavolt-Ampere",
|
|
2169
|
-
plural: "Megavolt-Amperes"
|
|
2170
|
-
},
|
|
2171
|
-
to_anchor: 1e6
|
|
2172
|
-
},
|
|
2173
|
-
GVA: {
|
|
2174
|
-
name: {
|
|
2175
|
-
singular: "Gigavolt-Ampere",
|
|
2176
|
-
plural: "Gigavolt-Amperes"
|
|
2177
|
-
},
|
|
2178
|
-
to_anchor: 1e9
|
|
2179
|
-
}
|
|
2180
|
-
};
|
|
2181
|
-
module2.exports = {
|
|
2182
|
-
metric: apparentPower,
|
|
2183
|
-
_anchors: {
|
|
2184
|
-
metric: {
|
|
2185
|
-
unit: "VA",
|
|
2186
|
-
ratio: 1
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
|
-
}
|
|
2191
|
-
});
|
|
2192
|
-
// node_modules/convert-units/lib/definitions/energy.js
|
|
2193
|
-
var require_energy = __commonJS({
|
|
2194
|
-
"node_modules/convert-units/lib/definitions/energy.js": function(exports2, module2) {
|
|
2195
|
-
var energy;
|
|
2196
|
-
energy = {
|
|
2197
|
-
Wh: {
|
|
2198
|
-
name: {
|
|
2199
|
-
singular: "Watt-hour",
|
|
2200
|
-
plural: "Watt-hours"
|
|
2201
|
-
},
|
|
2202
|
-
to_anchor: 3600
|
|
2203
|
-
},
|
|
2204
|
-
mWh: {
|
|
2205
|
-
name: {
|
|
2206
|
-
singular: "Milliwatt-hour",
|
|
2207
|
-
plural: "Milliwatt-hours"
|
|
2208
|
-
},
|
|
2209
|
-
to_anchor: 3.6
|
|
2210
|
-
},
|
|
2211
|
-
kWh: {
|
|
2212
|
-
name: {
|
|
2213
|
-
singular: "Kilowatt-hour",
|
|
2214
|
-
plural: "Kilowatt-hours"
|
|
2215
|
-
},
|
|
2216
|
-
to_anchor: 36e5
|
|
2217
|
-
},
|
|
2218
|
-
MWh: {
|
|
2219
|
-
name: {
|
|
2220
|
-
singular: "Megawatt-hour",
|
|
2221
|
-
plural: "Megawatt-hours"
|
|
2222
|
-
},
|
|
2223
|
-
to_anchor: 36e8
|
|
2224
|
-
},
|
|
2225
|
-
GWh: {
|
|
2226
|
-
name: {
|
|
2227
|
-
singular: "Gigawatt-hour",
|
|
2228
|
-
plural: "Gigawatt-hours"
|
|
2229
|
-
},
|
|
2230
|
-
to_anchor: 36e11
|
|
2231
|
-
},
|
|
2232
|
-
J: {
|
|
2233
|
-
name: {
|
|
2234
|
-
singular: "Joule",
|
|
2235
|
-
plural: "Joules"
|
|
2236
|
-
},
|
|
2237
|
-
to_anchor: 1
|
|
2238
|
-
},
|
|
2239
|
-
kJ: {
|
|
2240
|
-
name: {
|
|
2241
|
-
singular: "Kilojoule",
|
|
2242
|
-
plural: "Kilojoules"
|
|
2243
|
-
},
|
|
2244
|
-
to_anchor: 1e3
|
|
2245
|
-
}
|
|
2246
|
-
};
|
|
2247
|
-
module2.exports = {
|
|
2248
|
-
metric: energy,
|
|
2249
|
-
_anchors: {
|
|
2250
|
-
metric: {
|
|
2251
|
-
unit: "J",
|
|
2252
|
-
ratio: 1
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
|
-
}
|
|
2257
|
-
});
|
|
2258
|
-
// node_modules/convert-units/lib/definitions/reactiveEnergy.js
|
|
2259
|
-
var require_reactiveEnergy = __commonJS({
|
|
2260
|
-
"node_modules/convert-units/lib/definitions/reactiveEnergy.js": function(exports2, module2) {
|
|
2261
|
-
var reactiveEnergy;
|
|
2262
|
-
reactiveEnergy = {
|
|
2263
|
-
VARh: {
|
|
2264
|
-
name: {
|
|
2265
|
-
singular: "Volt-Ampere Reactive Hour",
|
|
2266
|
-
plural: "Volt-Amperes Reactive Hour"
|
|
2267
|
-
},
|
|
2268
|
-
to_anchor: 1
|
|
2269
|
-
},
|
|
2270
|
-
mVARh: {
|
|
2271
|
-
name: {
|
|
2272
|
-
singular: "Millivolt-Ampere Reactive Hour",
|
|
2273
|
-
plural: "Millivolt-Amperes Reactive Hour"
|
|
2274
|
-
},
|
|
2275
|
-
to_anchor: 1e-3
|
|
2276
|
-
},
|
|
2277
|
-
kVARh: {
|
|
2278
|
-
name: {
|
|
2279
|
-
singular: "Kilovolt-Ampere Reactive Hour",
|
|
2280
|
-
plural: "Kilovolt-Amperes Reactive Hour"
|
|
2281
|
-
},
|
|
2282
|
-
to_anchor: 1e3
|
|
2283
|
-
},
|
|
2284
|
-
MVARh: {
|
|
2285
|
-
name: {
|
|
2286
|
-
singular: "Megavolt-Ampere Reactive Hour",
|
|
2287
|
-
plural: "Megavolt-Amperes Reactive Hour"
|
|
2288
|
-
},
|
|
2289
|
-
to_anchor: 1e6
|
|
2290
|
-
},
|
|
2291
|
-
GVARh: {
|
|
2292
|
-
name: {
|
|
2293
|
-
singular: "Gigavolt-Ampere Reactive Hour",
|
|
2294
|
-
plural: "Gigavolt-Amperes Reactive Hour"
|
|
2295
|
-
},
|
|
2296
|
-
to_anchor: 1e9
|
|
2297
|
-
}
|
|
2298
|
-
};
|
|
2299
|
-
module2.exports = {
|
|
2300
|
-
metric: reactiveEnergy,
|
|
2301
|
-
_anchors: {
|
|
2302
|
-
metric: {
|
|
2303
|
-
unit: "VARh",
|
|
2304
|
-
ratio: 1
|
|
2305
|
-
}
|
|
2306
|
-
}
|
|
2307
|
-
};
|
|
2308
|
-
}
|
|
2309
|
-
});
|
|
2310
|
-
// node_modules/convert-units/lib/definitions/volumeFlowRate.js
|
|
2311
|
-
var require_volumeFlowRate = __commonJS({
|
|
2312
|
-
"node_modules/convert-units/lib/definitions/volumeFlowRate.js": function(exports2, module2) {
|
|
2313
|
-
var metric;
|
|
2314
|
-
var imperial;
|
|
2315
|
-
metric = {
|
|
2316
|
-
"mm3/s": {
|
|
2317
|
-
name: {
|
|
2318
|
-
singular: "Cubic Millimeter per second",
|
|
2319
|
-
plural: "Cubic Millimeters per second"
|
|
2320
|
-
},
|
|
2321
|
-
to_anchor: 1 / 1e6
|
|
2322
|
-
},
|
|
2323
|
-
"cm3/s": {
|
|
2324
|
-
name: {
|
|
2325
|
-
singular: "Cubic Centimeter per second",
|
|
2326
|
-
plural: "Cubic Centimeters per second"
|
|
2327
|
-
},
|
|
2328
|
-
to_anchor: 1 / 1e3
|
|
2329
|
-
},
|
|
2330
|
-
"ml/s": {
|
|
2331
|
-
name: {
|
|
2332
|
-
singular: "Millilitre per second",
|
|
2333
|
-
plural: "Millilitres per second"
|
|
2334
|
-
},
|
|
2335
|
-
to_anchor: 1 / 1e3
|
|
2336
|
-
},
|
|
2337
|
-
"cl/s": {
|
|
2338
|
-
name: {
|
|
2339
|
-
singular: "Centilitre per second",
|
|
2340
|
-
plural: "Centilitres per second"
|
|
2341
|
-
},
|
|
2342
|
-
to_anchor: 1 / 100
|
|
2343
|
-
},
|
|
2344
|
-
"dl/s": {
|
|
2345
|
-
name: {
|
|
2346
|
-
singular: "Decilitre per second",
|
|
2347
|
-
plural: "Decilitres per second"
|
|
2348
|
-
},
|
|
2349
|
-
to_anchor: 1 / 10
|
|
2350
|
-
},
|
|
2351
|
-
"l/s": {
|
|
2352
|
-
name: {
|
|
2353
|
-
singular: "Litre per second",
|
|
2354
|
-
plural: "Litres per second"
|
|
2355
|
-
},
|
|
2356
|
-
to_anchor: 1
|
|
2357
|
-
},
|
|
2358
|
-
"l/min": {
|
|
2359
|
-
name: {
|
|
2360
|
-
singular: "Litre per minute",
|
|
2361
|
-
plural: "Litres per minute"
|
|
2362
|
-
},
|
|
2363
|
-
to_anchor: 1 / 60
|
|
2364
|
-
},
|
|
2365
|
-
"l/h": {
|
|
2366
|
-
name: {
|
|
2367
|
-
singular: "Litre per hour",
|
|
2368
|
-
plural: "Litres per hour"
|
|
2369
|
-
},
|
|
2370
|
-
to_anchor: 1 / 3600
|
|
2371
|
-
},
|
|
2372
|
-
"kl/s": {
|
|
2373
|
-
name: {
|
|
2374
|
-
singular: "Kilolitre per second",
|
|
2375
|
-
plural: "Kilolitres per second"
|
|
2376
|
-
},
|
|
2377
|
-
to_anchor: 1e3
|
|
2378
|
-
},
|
|
2379
|
-
"kl/min": {
|
|
2380
|
-
name: {
|
|
2381
|
-
singular: "Kilolitre per minute",
|
|
2382
|
-
plural: "Kilolitres per minute"
|
|
2383
|
-
},
|
|
2384
|
-
to_anchor: 50 / 3
|
|
2385
|
-
},
|
|
2386
|
-
"kl/h": {
|
|
2387
|
-
name: {
|
|
2388
|
-
singular: "Kilolitre per hour",
|
|
2389
|
-
plural: "Kilolitres per hour"
|
|
2390
|
-
},
|
|
2391
|
-
to_anchor: 5 / 18
|
|
2392
|
-
},
|
|
2393
|
-
"m3/s": {
|
|
2394
|
-
name: {
|
|
2395
|
-
singular: "Cubic meter per second",
|
|
2396
|
-
plural: "Cubic meters per second"
|
|
2397
|
-
},
|
|
2398
|
-
to_anchor: 1e3
|
|
2399
|
-
},
|
|
2400
|
-
"m3/min": {
|
|
2401
|
-
name: {
|
|
2402
|
-
singular: "Cubic meter per minute",
|
|
2403
|
-
plural: "Cubic meters per minute"
|
|
2404
|
-
},
|
|
2405
|
-
to_anchor: 50 / 3
|
|
2406
|
-
},
|
|
2407
|
-
"m3/h": {
|
|
2408
|
-
name: {
|
|
2409
|
-
singular: "Cubic meter per hour",
|
|
2410
|
-
plural: "Cubic meters per hour"
|
|
2411
|
-
},
|
|
2412
|
-
to_anchor: 5 / 18
|
|
2413
|
-
},
|
|
2414
|
-
"km3/s": {
|
|
2415
|
-
name: {
|
|
2416
|
-
singular: "Cubic kilometer per second",
|
|
2417
|
-
plural: "Cubic kilometers per second"
|
|
2418
|
-
},
|
|
2419
|
-
to_anchor: 1e12
|
|
2420
|
-
}
|
|
2421
|
-
};
|
|
2422
|
-
imperial = {
|
|
2423
|
-
"tsp/s": {
|
|
2424
|
-
name: {
|
|
2425
|
-
singular: "Teaspoon per second",
|
|
2426
|
-
plural: "Teaspoons per second"
|
|
2427
|
-
},
|
|
2428
|
-
to_anchor: 1 / 6
|
|
2429
|
-
},
|
|
2430
|
-
"Tbs/s": {
|
|
2431
|
-
name: {
|
|
2432
|
-
singular: "Tablespoon per second",
|
|
2433
|
-
plural: "Tablespoons per second"
|
|
2434
|
-
},
|
|
2435
|
-
to_anchor: 1 / 2
|
|
2436
|
-
},
|
|
2437
|
-
"in3/s": {
|
|
2438
|
-
name: {
|
|
2439
|
-
singular: "Cubic inch per second",
|
|
2440
|
-
plural: "Cubic inches per second"
|
|
2441
|
-
},
|
|
2442
|
-
to_anchor: 0.55411
|
|
2443
|
-
},
|
|
2444
|
-
"in3/min": {
|
|
2445
|
-
name: {
|
|
2446
|
-
singular: "Cubic inch per minute",
|
|
2447
|
-
plural: "Cubic inches per minute"
|
|
2448
|
-
},
|
|
2449
|
-
to_anchor: 0.55411 / 60
|
|
2450
|
-
},
|
|
2451
|
-
"in3/h": {
|
|
2452
|
-
name: {
|
|
2453
|
-
singular: "Cubic inch per hour",
|
|
2454
|
-
plural: "Cubic inches per hour"
|
|
2455
|
-
},
|
|
2456
|
-
to_anchor: 0.55411 / 3600
|
|
2457
|
-
},
|
|
2458
|
-
"fl-oz/s": {
|
|
2459
|
-
name: {
|
|
2460
|
-
singular: "Fluid Ounce per second",
|
|
2461
|
-
plural: "Fluid Ounces per second"
|
|
2462
|
-
},
|
|
2463
|
-
to_anchor: 1
|
|
2464
|
-
},
|
|
2465
|
-
"fl-oz/min": {
|
|
2466
|
-
name: {
|
|
2467
|
-
singular: "Fluid Ounce per minute",
|
|
2468
|
-
plural: "Fluid Ounces per minute"
|
|
2469
|
-
},
|
|
2470
|
-
to_anchor: 1 / 60
|
|
2471
|
-
},
|
|
2472
|
-
"fl-oz/h": {
|
|
2473
|
-
name: {
|
|
2474
|
-
singular: "Fluid Ounce per hour",
|
|
2475
|
-
plural: "Fluid Ounces per hour"
|
|
2476
|
-
},
|
|
2477
|
-
to_anchor: 1 / 3600
|
|
2478
|
-
},
|
|
2479
|
-
"cup/s": {
|
|
2480
|
-
name: {
|
|
2481
|
-
singular: "Cup per second",
|
|
2482
|
-
plural: "Cups per second"
|
|
2483
|
-
},
|
|
2484
|
-
to_anchor: 8
|
|
2485
|
-
},
|
|
2486
|
-
"pnt/s": {
|
|
2487
|
-
name: {
|
|
2488
|
-
singular: "Pint per second",
|
|
2489
|
-
plural: "Pints per second"
|
|
2490
|
-
},
|
|
2491
|
-
to_anchor: 16
|
|
2492
|
-
},
|
|
2493
|
-
"pnt/min": {
|
|
2494
|
-
name: {
|
|
2495
|
-
singular: "Pint per minute",
|
|
2496
|
-
plural: "Pints per minute"
|
|
2497
|
-
},
|
|
2498
|
-
to_anchor: 4 / 15
|
|
2499
|
-
},
|
|
2500
|
-
"pnt/h": {
|
|
2501
|
-
name: {
|
|
2502
|
-
singular: "Pint per hour",
|
|
2503
|
-
plural: "Pints per hour"
|
|
2504
|
-
},
|
|
2505
|
-
to_anchor: 1 / 225
|
|
2506
|
-
},
|
|
2507
|
-
"qt/s": {
|
|
2508
|
-
name: {
|
|
2509
|
-
singular: "Quart per second",
|
|
2510
|
-
plural: "Quarts per second"
|
|
2511
|
-
},
|
|
2512
|
-
to_anchor: 32
|
|
2513
|
-
},
|
|
2514
|
-
"gal/s": {
|
|
2515
|
-
name: {
|
|
2516
|
-
singular: "Gallon per second",
|
|
2517
|
-
plural: "Gallons per second"
|
|
2518
|
-
},
|
|
2519
|
-
to_anchor: 128
|
|
2520
|
-
},
|
|
2521
|
-
"gal/min": {
|
|
2522
|
-
name: {
|
|
2523
|
-
singular: "Gallon per minute",
|
|
2524
|
-
plural: "Gallons per minute"
|
|
2525
|
-
},
|
|
2526
|
-
to_anchor: 32 / 15
|
|
2527
|
-
},
|
|
2528
|
-
"gal/h": {
|
|
2529
|
-
name: {
|
|
2530
|
-
singular: "Gallon per hour",
|
|
2531
|
-
plural: "Gallons per hour"
|
|
2532
|
-
},
|
|
2533
|
-
to_anchor: 8 / 225
|
|
2534
|
-
},
|
|
2535
|
-
"ft3/s": {
|
|
2536
|
-
name: {
|
|
2537
|
-
singular: "Cubic foot per second",
|
|
2538
|
-
plural: "Cubic feet per second"
|
|
2539
|
-
},
|
|
2540
|
-
to_anchor: 957.506
|
|
2541
|
-
},
|
|
2542
|
-
"ft3/min": {
|
|
2543
|
-
name: {
|
|
2544
|
-
singular: "Cubic foot per minute",
|
|
2545
|
-
plural: "Cubic feet per minute"
|
|
2546
|
-
},
|
|
2547
|
-
to_anchor: 957.506 / 60
|
|
2548
|
-
},
|
|
2549
|
-
"ft3/h": {
|
|
2550
|
-
name: {
|
|
2551
|
-
singular: "Cubic foot per hour",
|
|
2552
|
-
plural: "Cubic feet per hour"
|
|
2553
|
-
},
|
|
2554
|
-
to_anchor: 957.506 / 3600
|
|
2555
|
-
},
|
|
2556
|
-
"yd3/s": {
|
|
2557
|
-
name: {
|
|
2558
|
-
singular: "Cubic yard per second",
|
|
2559
|
-
plural: "Cubic yards per second"
|
|
2560
|
-
},
|
|
2561
|
-
to_anchor: 25852.7
|
|
2562
|
-
},
|
|
2563
|
-
"yd3/min": {
|
|
2564
|
-
name: {
|
|
2565
|
-
singular: "Cubic yard per minute",
|
|
2566
|
-
plural: "Cubic yards per minute"
|
|
2567
|
-
},
|
|
2568
|
-
to_anchor: 25852.7 / 60
|
|
2569
|
-
},
|
|
2570
|
-
"yd3/h": {
|
|
2571
|
-
name: {
|
|
2572
|
-
singular: "Cubic yard per hour",
|
|
2573
|
-
plural: "Cubic yards per hour"
|
|
2574
|
-
},
|
|
2575
|
-
to_anchor: 25852.7 / 3600
|
|
2576
|
-
}
|
|
2577
|
-
};
|
|
2578
|
-
module2.exports = {
|
|
2579
|
-
metric: metric,
|
|
2580
|
-
imperial: imperial,
|
|
2581
|
-
_anchors: {
|
|
2582
|
-
metric: {
|
|
2583
|
-
unit: "l/s",
|
|
2584
|
-
ratio: 33.8140227
|
|
2585
|
-
},
|
|
2586
|
-
imperial: {
|
|
2587
|
-
unit: "fl-oz/s",
|
|
2588
|
-
ratio: 1 / 33.8140227
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
|
-
};
|
|
2592
|
-
}
|
|
2593
|
-
});
|
|
2594
|
-
// node_modules/convert-units/lib/definitions/illuminance.js
|
|
2595
|
-
var require_illuminance = __commonJS({
|
|
2596
|
-
"node_modules/convert-units/lib/definitions/illuminance.js": function(exports2, module2) {
|
|
2597
|
-
var metric;
|
|
2598
|
-
var imperial;
|
|
2599
|
-
metric = {
|
|
2600
|
-
"lx": {
|
|
2601
|
-
name: {
|
|
2602
|
-
singular: "Lux",
|
|
2603
|
-
plural: "Lux"
|
|
2604
|
-
},
|
|
2605
|
-
to_anchor: 1
|
|
2606
|
-
}
|
|
2607
|
-
};
|
|
2608
|
-
imperial = {
|
|
2609
|
-
"ft-cd": {
|
|
2610
|
-
name: {
|
|
2611
|
-
singular: "Foot-candle",
|
|
2612
|
-
plural: "Foot-candles"
|
|
2613
|
-
},
|
|
2614
|
-
to_anchor: 1
|
|
2615
|
-
}
|
|
2616
|
-
};
|
|
2617
|
-
module2.exports = {
|
|
2618
|
-
metric: metric,
|
|
2619
|
-
imperial: imperial,
|
|
2620
|
-
_anchors: {
|
|
2621
|
-
metric: {
|
|
2622
|
-
unit: "lx",
|
|
2623
|
-
ratio: 1 / 10.76391
|
|
2624
|
-
},
|
|
2625
|
-
imperial: {
|
|
2626
|
-
unit: "ft-cd",
|
|
2627
|
-
ratio: 10.76391
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
};
|
|
2631
|
-
}
|
|
2632
|
-
});
|
|
2633
|
-
// node_modules/convert-units/lib/definitions/frequency.js
|
|
2634
|
-
var require_frequency = __commonJS({
|
|
2635
|
-
"node_modules/convert-units/lib/definitions/frequency.js": function(exports2, module2) {
|
|
2636
|
-
var frequency;
|
|
2637
|
-
frequency = {
|
|
2638
|
-
mHz: {
|
|
2639
|
-
name: {
|
|
2640
|
-
singular: "millihertz",
|
|
2641
|
-
plural: "millihertz"
|
|
2642
|
-
},
|
|
2643
|
-
to_anchor: 1 / 1e3
|
|
2644
|
-
},
|
|
2645
|
-
Hz: {
|
|
2646
|
-
name: {
|
|
2647
|
-
singular: "hertz",
|
|
2648
|
-
plural: "hertz"
|
|
2649
|
-
},
|
|
2650
|
-
to_anchor: 1
|
|
2651
|
-
},
|
|
2652
|
-
kHz: {
|
|
2653
|
-
name: {
|
|
2654
|
-
singular: "kilohertz",
|
|
2655
|
-
plural: "kilohertz"
|
|
2656
|
-
},
|
|
2657
|
-
to_anchor: 1e3
|
|
2658
|
-
},
|
|
2659
|
-
MHz: {
|
|
2660
|
-
name: {
|
|
2661
|
-
singular: "megahertz",
|
|
2662
|
-
plural: "megahertz"
|
|
2663
|
-
},
|
|
2664
|
-
to_anchor: 1e3 * 1e3
|
|
2665
|
-
},
|
|
2666
|
-
GHz: {
|
|
2667
|
-
name: {
|
|
2668
|
-
singular: "gigahertz",
|
|
2669
|
-
plural: "gigahertz"
|
|
2670
|
-
},
|
|
2671
|
-
to_anchor: 1e3 * 1e3 * 1e3
|
|
2672
|
-
},
|
|
2673
|
-
THz: {
|
|
2674
|
-
name: {
|
|
2675
|
-
singular: "terahertz",
|
|
2676
|
-
plural: "terahertz"
|
|
2677
|
-
},
|
|
2678
|
-
to_anchor: 1e3 * 1e3 * 1e3 * 1e3
|
|
2679
|
-
},
|
|
2680
|
-
rpm: {
|
|
2681
|
-
name: {
|
|
2682
|
-
singular: "rotation per minute",
|
|
2683
|
-
plural: "rotations per minute"
|
|
2684
|
-
},
|
|
2685
|
-
to_anchor: 1 / 60
|
|
2686
|
-
},
|
|
2687
|
-
"deg/s": {
|
|
2688
|
-
name: {
|
|
2689
|
-
singular: "degree per second",
|
|
2690
|
-
plural: "degrees per second"
|
|
2691
|
-
},
|
|
2692
|
-
to_anchor: 1 / 360
|
|
2693
|
-
},
|
|
2694
|
-
"rad/s": {
|
|
2695
|
-
name: {
|
|
2696
|
-
singular: "radian per second",
|
|
2697
|
-
plural: "radians per second"
|
|
2698
|
-
},
|
|
2699
|
-
to_anchor: 1 / (Math.PI * 2)
|
|
2700
|
-
}
|
|
2701
|
-
};
|
|
2702
|
-
module2.exports = {
|
|
2703
|
-
metric: frequency,
|
|
2704
|
-
_anchors: {
|
|
2705
|
-
frequency: {
|
|
2706
|
-
unit: "hz",
|
|
2707
|
-
ratio: 1
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
};
|
|
2711
|
-
}
|
|
2712
|
-
});
|
|
2713
|
-
// node_modules/convert-units/lib/definitions/angle.js
|
|
2714
|
-
var require_angle = __commonJS({
|
|
2715
|
-
"node_modules/convert-units/lib/definitions/angle.js": function(exports2, module2) {
|
|
2716
|
-
var angle;
|
|
2717
|
-
angle = {
|
|
2718
|
-
rad: {
|
|
2719
|
-
name: {
|
|
2720
|
-
singular: "radian",
|
|
2721
|
-
plural: "radians"
|
|
2722
|
-
},
|
|
2723
|
-
to_anchor: 180 / Math.PI
|
|
2724
|
-
},
|
|
2725
|
-
deg: {
|
|
2726
|
-
name: {
|
|
2727
|
-
singular: "degree",
|
|
2728
|
-
plural: "degrees"
|
|
2729
|
-
},
|
|
2730
|
-
to_anchor: 1
|
|
2731
|
-
},
|
|
2732
|
-
grad: {
|
|
2733
|
-
name: {
|
|
2734
|
-
singular: "gradian",
|
|
2735
|
-
plural: "gradians"
|
|
2736
|
-
},
|
|
2737
|
-
to_anchor: 9 / 10
|
|
2738
|
-
},
|
|
2739
|
-
arcmin: {
|
|
2740
|
-
name: {
|
|
2741
|
-
singular: "arcminute",
|
|
2742
|
-
plural: "arcminutes"
|
|
2743
|
-
},
|
|
2744
|
-
to_anchor: 1 / 60
|
|
2745
|
-
},
|
|
2746
|
-
arcsec: {
|
|
2747
|
-
name: {
|
|
2748
|
-
singular: "arcsecond",
|
|
2749
|
-
plural: "arcseconds"
|
|
2750
|
-
},
|
|
2751
|
-
to_anchor: 1 / 3600
|
|
2752
|
-
}
|
|
2753
|
-
};
|
|
2754
|
-
module2.exports = {
|
|
2755
|
-
metric: angle,
|
|
2756
|
-
_anchors: {
|
|
2757
|
-
metric: {
|
|
2758
|
-
unit: "deg",
|
|
2759
|
-
ratio: 1
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
};
|
|
2763
|
-
}
|
|
2764
|
-
});
|
|
2765
|
-
// node_modules/convert-units/lib/index.js
|
|
2766
|
-
var require_lib = __commonJS({
|
|
2767
|
-
"node_modules/convert-units/lib/index.js": function(exports2, module2) {
|
|
2768
|
-
var convert;
|
|
2769
|
-
var keys = require_lodash5();
|
|
2770
|
-
var each = require_lodash19();
|
|
2771
|
-
var measures = {
|
|
2772
|
-
length: require_length(),
|
|
2773
|
-
area: require_area(),
|
|
2774
|
-
mass: require_mass(),
|
|
2775
|
-
volume: require_volume(),
|
|
2776
|
-
each: require_each(),
|
|
2777
|
-
temperature: require_temperature(),
|
|
2778
|
-
time: require_time(),
|
|
2779
|
-
digital: require_digital(),
|
|
2780
|
-
partsPer: require_partsPer(),
|
|
2781
|
-
speed: require_speed(),
|
|
2782
|
-
pace: require_pace(),
|
|
2783
|
-
pressure: require_pressure(),
|
|
2784
|
-
current: require_current(),
|
|
2785
|
-
voltage: require_voltage(),
|
|
2786
|
-
power: require_power(),
|
|
2787
|
-
reactivePower: require_reactivePower(),
|
|
2788
|
-
apparentPower: require_apparentPower(),
|
|
2789
|
-
energy: require_energy(),
|
|
2790
|
-
reactiveEnergy: require_reactiveEnergy(),
|
|
2791
|
-
volumeFlowRate: require_volumeFlowRate(),
|
|
2792
|
-
illuminance: require_illuminance(),
|
|
2793
|
-
frequency: require_frequency(),
|
|
2794
|
-
angle: require_angle()
|
|
2795
|
-
};
|
|
2796
|
-
var Converter;
|
|
2797
|
-
Converter = function Converter(numerator, denominator) {
|
|
2798
|
-
if (denominator) this.val = numerator / denominator;
|
|
2799
|
-
else this.val = numerator;
|
|
2800
|
-
};
|
|
2801
|
-
Converter.prototype.from = function(from) {
|
|
2802
|
-
if (this.destination) throw new Error(".from must be called before .to");
|
|
2803
|
-
this.origin = this.getUnit(from);
|
|
2804
|
-
if (!this.origin) {
|
|
2805
|
-
this.throwUnsupportedUnitError(from);
|
|
2806
|
-
}
|
|
2807
|
-
return this;
|
|
2808
|
-
};
|
|
2809
|
-
Converter.prototype.to = function(to) {
|
|
2810
|
-
if (!this.origin) throw new Error(".to must be called after .from");
|
|
2811
|
-
this.destination = this.getUnit(to);
|
|
2812
|
-
var result, transform;
|
|
2813
|
-
if (!this.destination) {
|
|
2814
|
-
this.throwUnsupportedUnitError(to);
|
|
2815
|
-
}
|
|
2816
|
-
if (this.origin.abbr === this.destination.abbr) {
|
|
2817
|
-
return this.val;
|
|
2818
|
-
}
|
|
2819
|
-
if (this.destination.measure != this.origin.measure) {
|
|
2820
|
-
throw new Error("Cannot convert incompatible measures of " + this.destination.measure + " and " + this.origin.measure);
|
|
2821
|
-
}
|
|
2822
|
-
result = this.val * this.origin.unit.to_anchor;
|
|
2823
|
-
if (this.origin.unit.anchor_shift) {
|
|
2824
|
-
result -= this.origin.unit.anchor_shift;
|
|
2825
|
-
}
|
|
2826
|
-
if (this.origin.system != this.destination.system) {
|
|
2827
|
-
transform = measures[this.origin.measure]._anchors[this.origin.system].transform;
|
|
2828
|
-
if (typeof transform === "function") {
|
|
2829
|
-
result = transform(result);
|
|
2830
|
-
} else {
|
|
2831
|
-
result *= measures[this.origin.measure]._anchors[this.origin.system].ratio;
|
|
2832
|
-
}
|
|
2833
|
-
}
|
|
2834
|
-
if (this.destination.unit.anchor_shift) {
|
|
2835
|
-
result += this.destination.unit.anchor_shift;
|
|
2836
|
-
}
|
|
2837
|
-
return result / this.destination.unit.to_anchor;
|
|
2838
|
-
};
|
|
2839
|
-
Converter.prototype.toBest = function(options) {
|
|
2840
|
-
if (!this.origin) throw new Error(".toBest must be called after .from");
|
|
2841
|
-
var options = Object.assign({
|
|
2842
|
-
exclude: [],
|
|
2843
|
-
cutOffNumber: 1
|
|
2844
|
-
}, options);
|
|
2845
|
-
var best;
|
|
2846
|
-
each(this.possibilities(), (function(possibility) {
|
|
2847
|
-
var unit = this.describe(possibility);
|
|
2848
|
-
var isIncluded = options.exclude.indexOf(possibility) === -1;
|
|
2849
|
-
if (isIncluded && unit.system === this.origin.system) {
|
|
2850
|
-
var result = this.to(possibility);
|
|
2851
|
-
if (!best || result >= options.cutOffNumber && result < best.val) {
|
|
2852
|
-
best = {
|
|
2853
|
-
val: result,
|
|
2854
|
-
unit: possibility,
|
|
2855
|
-
singular: unit.singular,
|
|
2856
|
-
plural: unit.plural
|
|
2857
|
-
};
|
|
2858
|
-
}
|
|
2859
|
-
}
|
|
2860
|
-
}).bind(this));
|
|
2861
|
-
return best;
|
|
2862
|
-
};
|
|
2863
|
-
Converter.prototype.getUnit = function(abbr) {
|
|
2864
|
-
var found;
|
|
2865
|
-
each(measures, function(systems, measure) {
|
|
2866
|
-
each(systems, function(units, system) {
|
|
2867
|
-
if (system == "_anchors") return false;
|
|
2868
|
-
each(units, function(unit, testAbbr) {
|
|
2869
|
-
if (testAbbr == abbr) {
|
|
2870
|
-
found = {
|
|
2871
|
-
abbr: abbr,
|
|
2872
|
-
measure: measure,
|
|
2873
|
-
system: system,
|
|
2874
|
-
unit: unit
|
|
2875
|
-
};
|
|
2876
|
-
return false;
|
|
2877
|
-
}
|
|
2878
|
-
});
|
|
2879
|
-
if (found) return false;
|
|
2880
|
-
});
|
|
2881
|
-
if (found) return false;
|
|
2882
|
-
});
|
|
2883
|
-
return found;
|
|
2884
|
-
};
|
|
2885
|
-
var describe = function describe(resp) {
|
|
2886
|
-
return {
|
|
2887
|
-
abbr: resp.abbr,
|
|
2888
|
-
measure: resp.measure,
|
|
2889
|
-
system: resp.system,
|
|
2890
|
-
singular: resp.unit.name.singular,
|
|
2891
|
-
plural: resp.unit.name.plural
|
|
2892
|
-
};
|
|
2893
|
-
};
|
|
2894
|
-
Converter.prototype.describe = function(abbr) {
|
|
2895
|
-
var resp = Converter.prototype.getUnit(abbr);
|
|
2896
|
-
var desc = null;
|
|
2897
|
-
try {
|
|
2898
|
-
desc = describe(resp);
|
|
2899
|
-
} catch (err) {
|
|
2900
|
-
this.throwUnsupportedUnitError(abbr);
|
|
2901
|
-
}
|
|
2902
|
-
return desc;
|
|
2903
|
-
};
|
|
2904
|
-
Converter.prototype.list = function(measure) {
|
|
2905
|
-
var list = [];
|
|
2906
|
-
each(measures, function(systems, testMeasure) {
|
|
2907
|
-
if (measure && measure !== testMeasure) return;
|
|
2908
|
-
each(systems, function(units, system) {
|
|
2909
|
-
if (system == "_anchors") return false;
|
|
2910
|
-
each(units, function(unit, abbr) {
|
|
2911
|
-
list = list.concat(describe({
|
|
2912
|
-
abbr: abbr,
|
|
2913
|
-
measure: testMeasure,
|
|
2914
|
-
system: system,
|
|
2915
|
-
unit: unit
|
|
2916
|
-
}));
|
|
2917
|
-
});
|
|
2918
|
-
});
|
|
2919
|
-
});
|
|
2920
|
-
return list;
|
|
2921
|
-
};
|
|
2922
|
-
Converter.prototype.throwUnsupportedUnitError = function(what) {
|
|
2923
|
-
var validUnits = [];
|
|
2924
|
-
each(measures, function(systems, measure) {
|
|
2925
|
-
each(systems, function(units, system) {
|
|
2926
|
-
if (system == "_anchors") return false;
|
|
2927
|
-
validUnits = validUnits.concat(keys(units));
|
|
2928
|
-
});
|
|
2929
|
-
});
|
|
2930
|
-
throw new Error("Unsupported unit " + what + ", use one of: " + validUnits.join(", "));
|
|
2931
|
-
};
|
|
2932
|
-
Converter.prototype.possibilities = function(measure) {
|
|
2933
|
-
var possibilities = [];
|
|
2934
|
-
if (!this.origin && !measure) {
|
|
2935
|
-
each(keys(measures), function(measure2) {
|
|
2936
|
-
each(measures[measure2], function(units, system) {
|
|
2937
|
-
if (system == "_anchors") return false;
|
|
2938
|
-
possibilities = possibilities.concat(keys(units));
|
|
2939
|
-
});
|
|
2940
|
-
});
|
|
2941
|
-
} else {
|
|
2942
|
-
measure = measure || this.origin.measure;
|
|
2943
|
-
each(measures[measure], function(units, system) {
|
|
2944
|
-
if (system == "_anchors") return false;
|
|
2945
|
-
possibilities = possibilities.concat(keys(units));
|
|
2946
|
-
});
|
|
2947
|
-
}
|
|
2948
|
-
return possibilities;
|
|
2949
|
-
};
|
|
2950
|
-
Converter.prototype.measures = function() {
|
|
2951
|
-
return keys(measures);
|
|
2952
|
-
};
|
|
2953
|
-
convert = function convert(value) {
|
|
2954
|
-
return new Converter(value);
|
|
2955
|
-
};
|
|
2956
|
-
module2.exports = convert;
|
|
2957
|
-
}
|
|
2958
|
-
});
|
|
2959
558
|
// node_modules/use-mouse-matrix-transform/dist/index.js
|
|
2960
559
|
var require_dist = __commonJS({
|
|
2961
560
|
"node_modules/use-mouse-matrix-transform/dist/index.js": function(exports2, module2) {
|
|
@@ -3191,6 +790,9 @@ __export(dist_exports, {
|
|
|
3191
790
|
any_source_component: function() {
|
|
3192
791
|
return any_source_component;
|
|
3193
792
|
},
|
|
793
|
+
battery_capacity: function() {
|
|
794
|
+
return battery_capacity;
|
|
795
|
+
},
|
|
3194
796
|
cad_component: function() {
|
|
3195
797
|
return cad_component;
|
|
3196
798
|
},
|
|
@@ -3203,6 +805,9 @@ __export(dist_exports, {
|
|
|
3203
805
|
distance: function() {
|
|
3204
806
|
return distance;
|
|
3205
807
|
},
|
|
808
|
+
frequency: function() {
|
|
809
|
+
return frequency;
|
|
810
|
+
},
|
|
3206
811
|
getZodPrefixedIdWithDefault: function() {
|
|
3207
812
|
return getZodPrefixedIdWithDefault;
|
|
3208
813
|
},
|
|
@@ -3242,6 +847,9 @@ __export(dist_exports, {
|
|
|
3242
847
|
pcb_keepout: function() {
|
|
3243
848
|
return pcb_keepout;
|
|
3244
849
|
},
|
|
850
|
+
pcb_missing_footprint_error: function() {
|
|
851
|
+
return pcb_missing_footprint_error;
|
|
852
|
+
},
|
|
3245
853
|
pcb_placement_error: function() {
|
|
3246
854
|
return pcb_placement_error;
|
|
3247
855
|
},
|
|
@@ -3281,6 +889,9 @@ __export(dist_exports, {
|
|
|
3281
889
|
pcb_smtpad: function() {
|
|
3282
890
|
return pcb_smtpad;
|
|
3283
891
|
},
|
|
892
|
+
pcb_solder_paste: function() {
|
|
893
|
+
return pcb_solder_paste;
|
|
894
|
+
},
|
|
3284
895
|
pcb_text: function() {
|
|
3285
896
|
return pcb_text;
|
|
3286
897
|
},
|
|
@@ -3311,6 +922,9 @@ __export(dist_exports, {
|
|
|
3311
922
|
point3: function() {
|
|
3312
923
|
return point3;
|
|
3313
924
|
},
|
|
925
|
+
port_arrangement: function() {
|
|
926
|
+
return port_arrangement;
|
|
927
|
+
},
|
|
3314
928
|
position: function() {
|
|
3315
929
|
return position;
|
|
3316
930
|
},
|
|
@@ -3332,6 +946,27 @@ __export(dist_exports, {
|
|
|
3332
946
|
schematic_component: function() {
|
|
3333
947
|
return schematic_component;
|
|
3334
948
|
},
|
|
949
|
+
schematic_component_port_arrangement_by_sides: function() {
|
|
950
|
+
return schematic_component_port_arrangement_by_sides;
|
|
951
|
+
},
|
|
952
|
+
schematic_component_port_arrangement_by_size: function() {
|
|
953
|
+
return schematic_component_port_arrangement_by_size;
|
|
954
|
+
},
|
|
955
|
+
schematic_debug_line: function() {
|
|
956
|
+
return schematic_debug_line;
|
|
957
|
+
},
|
|
958
|
+
schematic_debug_object: function() {
|
|
959
|
+
return schematic_debug_object;
|
|
960
|
+
},
|
|
961
|
+
schematic_debug_object_base: function() {
|
|
962
|
+
return schematic_debug_object_base;
|
|
963
|
+
},
|
|
964
|
+
schematic_debug_point: function() {
|
|
965
|
+
return schematic_debug_point;
|
|
966
|
+
},
|
|
967
|
+
schematic_debug_rect: function() {
|
|
968
|
+
return schematic_debug_rect;
|
|
969
|
+
},
|
|
3335
970
|
schematic_error: function() {
|
|
3336
971
|
return schematic_error;
|
|
3337
972
|
},
|
|
@@ -3374,6 +1009,9 @@ __export(dist_exports, {
|
|
|
3374
1009
|
source_port: function() {
|
|
3375
1010
|
return source_port;
|
|
3376
1011
|
},
|
|
1012
|
+
source_simple_battery: function() {
|
|
1013
|
+
return source_simple_battery;
|
|
1014
|
+
},
|
|
3377
1015
|
source_simple_bug: function() {
|
|
3378
1016
|
return source_simple_bug;
|
|
3379
1017
|
},
|
|
@@ -3383,15 +1021,27 @@ __export(dist_exports, {
|
|
|
3383
1021
|
source_simple_chip: function() {
|
|
3384
1022
|
return source_simple_chip;
|
|
3385
1023
|
},
|
|
1024
|
+
source_simple_crystal: function() {
|
|
1025
|
+
return source_simple_crystal;
|
|
1026
|
+
},
|
|
3386
1027
|
source_simple_diode: function() {
|
|
3387
1028
|
return source_simple_diode;
|
|
3388
1029
|
},
|
|
3389
1030
|
source_simple_ground: function() {
|
|
3390
1031
|
return source_simple_ground;
|
|
3391
1032
|
},
|
|
1033
|
+
source_simple_inductor: function() {
|
|
1034
|
+
return source_simple_inductor;
|
|
1035
|
+
},
|
|
1036
|
+
source_simple_potentiometer: function() {
|
|
1037
|
+
return source_simple_potentiometer;
|
|
1038
|
+
},
|
|
3392
1039
|
source_simple_power_source: function() {
|
|
3393
1040
|
return source_simple_power_source;
|
|
3394
1041
|
},
|
|
1042
|
+
source_simple_push_button: function() {
|
|
1043
|
+
return source_simple_push_button;
|
|
1044
|
+
},
|
|
3395
1045
|
source_simple_resistor: function() {
|
|
3396
1046
|
return source_simple_resistor;
|
|
3397
1047
|
},
|
|
@@ -3411,7 +1061,6 @@ __export(dist_exports, {
|
|
|
3411
1061
|
return voltage;
|
|
3412
1062
|
}
|
|
3413
1063
|
});
|
|
3414
|
-
var import_convert_units = __toESM(require_lib(), 1);
|
|
3415
1064
|
// node_modules/zod/lib/index.mjs
|
|
3416
1065
|
var util;
|
|
3417
1066
|
(function(util2) {
|
|
@@ -9617,44 +7266,159 @@ function nanoid() {
|
|
|
9617
7266
|
return id;
|
|
9618
7267
|
}
|
|
9619
7268
|
// node_modules/circuit-json/dist/index.mjs
|
|
9620
|
-
var
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
7269
|
+
var unitMappings = {
|
|
7270
|
+
Hz: {
|
|
7271
|
+
baseUnit: "Hz",
|
|
7272
|
+
variants: {
|
|
7273
|
+
MHz: 1e6,
|
|
7274
|
+
kHz: 1e3,
|
|
7275
|
+
Hz: 1
|
|
7276
|
+
}
|
|
7277
|
+
},
|
|
7278
|
+
g: {
|
|
7279
|
+
baseUnit: "g",
|
|
7280
|
+
variants: {
|
|
7281
|
+
kg: 1e3,
|
|
7282
|
+
g: 1
|
|
7283
|
+
}
|
|
7284
|
+
},
|
|
7285
|
+
Ω: {
|
|
7286
|
+
baseUnit: "Ω",
|
|
7287
|
+
variants: {
|
|
7288
|
+
mΩ: 1e-3,
|
|
7289
|
+
Ω: 1,
|
|
7290
|
+
kΩ: 1e3,
|
|
7291
|
+
MΩ: 1e6,
|
|
7292
|
+
GΩ: 1e9,
|
|
7293
|
+
TΩ: 1e12
|
|
7294
|
+
}
|
|
7295
|
+
},
|
|
7296
|
+
V: {
|
|
7297
|
+
baseUnit: "V",
|
|
7298
|
+
variants: {
|
|
7299
|
+
mV: 1e-3,
|
|
7300
|
+
V: 1,
|
|
7301
|
+
kV: 1e3,
|
|
7302
|
+
MV: 1e6,
|
|
7303
|
+
GV: 1e9,
|
|
7304
|
+
TV: 1e12
|
|
7305
|
+
}
|
|
7306
|
+
},
|
|
7307
|
+
A: {
|
|
7308
|
+
baseUnit: "A",
|
|
7309
|
+
variants: {
|
|
7310
|
+
µA: 1e-6,
|
|
7311
|
+
mA: 1e-3,
|
|
7312
|
+
ma: 1e-3,
|
|
7313
|
+
A: 1,
|
|
7314
|
+
kA: 1e3,
|
|
7315
|
+
MA: 1e6
|
|
7316
|
+
}
|
|
7317
|
+
},
|
|
7318
|
+
F: {
|
|
7319
|
+
baseUnit: "F",
|
|
7320
|
+
variants: {
|
|
7321
|
+
pF: 1e-12,
|
|
7322
|
+
nF: 1e-9,
|
|
7323
|
+
µF: 1e-6,
|
|
7324
|
+
uF: 1e-6,
|
|
7325
|
+
mF: 1e-3,
|
|
7326
|
+
F: 1
|
|
7327
|
+
}
|
|
7328
|
+
},
|
|
7329
|
+
ml: {
|
|
7330
|
+
baseUnit: "ml",
|
|
7331
|
+
variants: {
|
|
7332
|
+
ml: 1,
|
|
7333
|
+
mL: 1,
|
|
7334
|
+
l: 1e3,
|
|
7335
|
+
L: 1e3
|
|
7336
|
+
}
|
|
7337
|
+
},
|
|
7338
|
+
deg: {
|
|
7339
|
+
baseUnit: "deg",
|
|
7340
|
+
variants: {
|
|
7341
|
+
rad: 180 / Math.PI
|
|
7342
|
+
}
|
|
7343
|
+
},
|
|
7344
|
+
ms: {
|
|
7345
|
+
baseUnit: "ms",
|
|
7346
|
+
variants: {
|
|
7347
|
+
s: 1e3
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
mm: {
|
|
7351
|
+
baseUnit: "mm",
|
|
7352
|
+
variants: {
|
|
7353
|
+
nm: 1e-6,
|
|
7354
|
+
µm: 1e-3,
|
|
7355
|
+
um: 1e-3,
|
|
7356
|
+
mm: 1,
|
|
7357
|
+
cm: 10,
|
|
7358
|
+
dm: 100,
|
|
7359
|
+
m: 1e3,
|
|
7360
|
+
km: 1e6,
|
|
7361
|
+
in: 25.4,
|
|
7362
|
+
ft: 304.8,
|
|
7363
|
+
IN: 25.4,
|
|
7364
|
+
FT: 304.8,
|
|
7365
|
+
yd: 914.4,
|
|
7366
|
+
mi: 1609344,
|
|
7367
|
+
mil: 0.0254
|
|
7368
|
+
}
|
|
7369
|
+
}
|
|
9650
7370
|
};
|
|
9651
|
-
|
|
7371
|
+
var unitMappingAndVariantSuffixes = /* @__PURE__ */ new Set();
|
|
7372
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
7373
|
+
try {
|
|
7374
|
+
for(var _iterator = Object.entries(unitMappings)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
7375
|
+
var _step_value = _sliced_to_array(_step.value, 2), baseUnit = _step_value[0], info = _step_value[1];
|
|
7376
|
+
unitMappingAndVariantSuffixes.add(baseUnit);
|
|
7377
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
7378
|
+
try {
|
|
7379
|
+
for(var _iterator1 = Object.keys(info.variants)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
7380
|
+
var variant = _step1.value;
|
|
7381
|
+
unitMappingAndVariantSuffixes.add(variant);
|
|
7382
|
+
}
|
|
7383
|
+
} catch (err) {
|
|
7384
|
+
_didIteratorError1 = true;
|
|
7385
|
+
_iteratorError1 = err;
|
|
7386
|
+
} finally{
|
|
7387
|
+
try {
|
|
7388
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
7389
|
+
_iterator1.return();
|
|
7390
|
+
}
|
|
7391
|
+
} finally{
|
|
7392
|
+
if (_didIteratorError1) {
|
|
7393
|
+
throw _iteratorError1;
|
|
7394
|
+
}
|
|
7395
|
+
}
|
|
7396
|
+
}
|
|
7397
|
+
}
|
|
7398
|
+
} catch (err) {
|
|
7399
|
+
_didIteratorError = true;
|
|
7400
|
+
_iteratorError = err;
|
|
7401
|
+
} finally{
|
|
7402
|
+
try {
|
|
7403
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
7404
|
+
_iterator.return();
|
|
7405
|
+
}
|
|
7406
|
+
} finally{
|
|
7407
|
+
if (_didIteratorError) {
|
|
7408
|
+
throw _iteratorError;
|
|
7409
|
+
}
|
|
7410
|
+
}
|
|
7411
|
+
}
|
|
7412
|
+
function getBaseTscircuitUnit(unit) {
|
|
9652
7413
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9653
7414
|
try {
|
|
9654
|
-
for(var _iterator =
|
|
9655
|
-
var
|
|
9656
|
-
if (
|
|
9657
|
-
return
|
|
7415
|
+
for(var _iterator = Object.entries(unitMappings)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
7416
|
+
var _step_value = _sliced_to_array(_step.value, 2), baseUnit = _step_value[0], info = _step_value[1];
|
|
7417
|
+
if (unit in info.variants) {
|
|
7418
|
+
return {
|
|
7419
|
+
baseUnit: info.baseUnit,
|
|
7420
|
+
conversionFactor: info.variants[unit]
|
|
7421
|
+
};
|
|
9658
7422
|
}
|
|
9659
7423
|
}
|
|
9660
7424
|
} catch (err) {
|
|
@@ -9671,57 +7435,83 @@ function getSiPrefixMultiplierFromUnit(v) {
|
|
|
9671
7435
|
}
|
|
9672
7436
|
}
|
|
9673
7437
|
}
|
|
9674
|
-
return
|
|
7438
|
+
return {
|
|
7439
|
+
baseUnit: unit,
|
|
7440
|
+
conversionFactor: 1
|
|
7441
|
+
};
|
|
9675
7442
|
}
|
|
7443
|
+
var si_prefix_multiplier = {
|
|
7444
|
+
tera: 1e12,
|
|
7445
|
+
T: 1e12,
|
|
7446
|
+
giga: 1e9,
|
|
7447
|
+
G: 1e9,
|
|
7448
|
+
mega: 1e6,
|
|
7449
|
+
M: 1e6,
|
|
7450
|
+
kilo: 1e3,
|
|
7451
|
+
k: 1e3,
|
|
7452
|
+
deci: 0.1,
|
|
7453
|
+
d: 0.1,
|
|
7454
|
+
centi: 0.01,
|
|
7455
|
+
c: 0.01,
|
|
7456
|
+
milli: 1e-3,
|
|
7457
|
+
m: 1e-3,
|
|
7458
|
+
micro: 1e-6,
|
|
7459
|
+
u: 1e-6,
|
|
7460
|
+
µ: 1e-6,
|
|
7461
|
+
nano: 1e-9,
|
|
7462
|
+
n: 1e-9,
|
|
7463
|
+
pico: 1e-12,
|
|
7464
|
+
p: 1e-12
|
|
7465
|
+
};
|
|
9676
7466
|
var parseAndConvertSiUnit = function(v) {
|
|
9677
|
-
var
|
|
7467
|
+
var _reversed_input_string_match;
|
|
9678
7468
|
if (typeof v === "undefined") return {
|
|
9679
|
-
|
|
7469
|
+
parsedUnit: null,
|
|
7470
|
+
unitOfValue: null,
|
|
9680
7471
|
value: null
|
|
9681
7472
|
};
|
|
9682
7473
|
if (typeof v === "string" && v.match(/^[\d\.]+$/)) return {
|
|
9683
|
-
value: parseFloat(v),
|
|
9684
|
-
|
|
7474
|
+
value: Number.parseFloat(v),
|
|
7475
|
+
parsedUnit: null,
|
|
7476
|
+
unitOfValue: null
|
|
9685
7477
|
};
|
|
9686
7478
|
if (typeof v === "number") return {
|
|
9687
7479
|
value: v,
|
|
9688
|
-
|
|
7480
|
+
parsedUnit: null,
|
|
7481
|
+
unitOfValue: null
|
|
9689
7482
|
};
|
|
9690
7483
|
if (typeof v === "object" && "x" in v && "y" in v) {
|
|
7484
|
+
var _parseAndConvertSiUnit = parseAndConvertSiUnit(v.x), parsedUnit = _parseAndConvertSiUnit.parsedUnit, unitOfValue = _parseAndConvertSiUnit.unitOfValue;
|
|
9691
7485
|
return {
|
|
9692
|
-
|
|
7486
|
+
parsedUnit: parsedUnit,
|
|
7487
|
+
unitOfValue: unitOfValue,
|
|
9693
7488
|
value: {
|
|
9694
7489
|
x: parseAndConvertSiUnit(v.x).value,
|
|
9695
7490
|
y: parseAndConvertSiUnit(v.y).value
|
|
9696
7491
|
}
|
|
9697
7492
|
};
|
|
9698
7493
|
}
|
|
9699
|
-
var
|
|
7494
|
+
var reversed_input_string = v.toString().split("").reverse().join("");
|
|
7495
|
+
var unit_reversed = (_reversed_input_string_match = reversed_input_string.match(/[^\d\s]+/)) === null || _reversed_input_string_match === void 0 ? void 0 : _reversed_input_string_match[0];
|
|
9700
7496
|
if (!unit_reversed) {
|
|
9701
7497
|
throw new Error('Could not determine unit: "'.concat(v, '"'));
|
|
9702
7498
|
}
|
|
9703
7499
|
var unit = unit_reversed.split("").reverse().join("");
|
|
9704
|
-
var
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
var _describe;
|
|
9708
|
-
measure = (_describe = (0, import_convert_units.default)().describe(unit)) === null || _describe === void 0 ? void 0 : _describe.measure;
|
|
9709
|
-
} catch (e) {}
|
|
9710
|
-
if (measure) {
|
|
9711
|
-
var target_unit = target_conversion[measure];
|
|
9712
|
-
if (!target_unit) {
|
|
9713
|
-
throw new Error('Could not determine target unit for measure: "'.concat(measure, '"'));
|
|
9714
|
-
}
|
|
9715
|
-
return {
|
|
9716
|
-
unit: unit,
|
|
9717
|
-
value: (0, import_convert_units.default)(parseFloat(value)).from(unit).to(target_unit)
|
|
9718
|
-
};
|
|
9719
|
-
} else {
|
|
7500
|
+
var numberPart = v.slice(0, -unit.length);
|
|
7501
|
+
if (unit in si_prefix_multiplier && !unitMappingAndVariantSuffixes.has(unit)) {
|
|
7502
|
+
var siMultiplier = si_prefix_multiplier[unit];
|
|
9720
7503
|
return {
|
|
9721
|
-
|
|
9722
|
-
|
|
7504
|
+
parsedUnit: null,
|
|
7505
|
+
unitOfValue: null,
|
|
7506
|
+
value: Number.parseFloat(numberPart) * siMultiplier
|
|
9723
7507
|
};
|
|
9724
7508
|
}
|
|
7509
|
+
var _getBaseTscircuitUnit = getBaseTscircuitUnit(unit), baseUnit = _getBaseTscircuitUnit.baseUnit, conversionFactor = _getBaseTscircuitUnit.conversionFactor;
|
|
7510
|
+
return {
|
|
7511
|
+
parsedUnit: unit,
|
|
7512
|
+
unitOfValue: baseUnit,
|
|
7513
|
+
value: conversionFactor * Number.parseFloat(numberPart)
|
|
7514
|
+
};
|
|
9725
7515
|
};
|
|
9726
7516
|
var resistance = z.string().or(z.number()).transform(function(v) {
|
|
9727
7517
|
return parseAndConvertSiUnit(v).value;
|
|
@@ -9738,6 +7528,9 @@ var voltage = z.string().or(z.number()).transform(function(v) {
|
|
|
9738
7528
|
var length = z.string().or(z.number()).transform(function(v) {
|
|
9739
7529
|
return parseAndConvertSiUnit(v).value;
|
|
9740
7530
|
});
|
|
7531
|
+
var frequency = z.string().or(z.number()).transform(function(v) {
|
|
7532
|
+
return parseAndConvertSiUnit(v).value;
|
|
7533
|
+
});
|
|
9741
7534
|
var distance = length;
|
|
9742
7535
|
var current = z.string().or(z.number()).transform(function(v) {
|
|
9743
7536
|
return parseAndConvertSiUnit(v).value;
|
|
@@ -9755,6 +7548,17 @@ var rotation = z.string().or(z.number()).transform(function(arg) {
|
|
|
9755
7548
|
}
|
|
9756
7549
|
return Number.parseFloat(arg);
|
|
9757
7550
|
});
|
|
7551
|
+
var battery_capacity = z.number().or(z.string().endsWith("mAh")).transform(function(v) {
|
|
7552
|
+
if (typeof v === "string") {
|
|
7553
|
+
var valString = v.replace("mAh", "");
|
|
7554
|
+
var num = Number.parseFloat(valString);
|
|
7555
|
+
if (Number.isNaN(num)) {
|
|
7556
|
+
throw new Error("Invalid capacity");
|
|
7557
|
+
}
|
|
7558
|
+
return num;
|
|
7559
|
+
}
|
|
7560
|
+
return v;
|
|
7561
|
+
}).describe("Battery capacity in mAh");
|
|
9758
7562
|
var point = z.object({
|
|
9759
7563
|
x: distance,
|
|
9760
7564
|
y: distance
|
|
@@ -9783,14 +7587,20 @@ var supplier_name = z.enum([
|
|
|
9783
7587
|
"mouser",
|
|
9784
7588
|
"lcsc"
|
|
9785
7589
|
]);
|
|
7590
|
+
var expectTypesMatch = function(shouldBe) {};
|
|
7591
|
+
expectTypesMatch("extra props b");
|
|
7592
|
+
expectTypesMatch("missing props b");
|
|
7593
|
+
expectTypesMatch(true);
|
|
9786
7594
|
var source_component_base = z.object({
|
|
9787
7595
|
type: z.literal("source_component"),
|
|
9788
7596
|
ftype: z.string().optional(),
|
|
9789
7597
|
source_component_id: z.string(),
|
|
9790
7598
|
name: z.string(),
|
|
9791
7599
|
manufacturer_part_number: z.string().optional(),
|
|
9792
|
-
supplier_part_numbers: z.record(supplier_name, z.array(z.string())).optional()
|
|
7600
|
+
supplier_part_numbers: z.record(supplier_name, z.array(z.string())).optional(),
|
|
7601
|
+
display_value: z.string().optional()
|
|
9793
7602
|
});
|
|
7603
|
+
expectTypesMatch(true);
|
|
9794
7604
|
var source_simple_capacitor = source_component_base.extend({
|
|
9795
7605
|
ftype: z.literal("simple_capacitor"),
|
|
9796
7606
|
capacitance: capacitance
|
|
@@ -9811,10 +7621,6 @@ var source_simple_bug = source_component_base.extend({
|
|
|
9811
7621
|
var source_simple_chip = source_component_base.extend({
|
|
9812
7622
|
ftype: z.literal("simple_chip")
|
|
9813
7623
|
});
|
|
9814
|
-
var source_simple_inductor = source_component_base.extend({
|
|
9815
|
-
ftype: z.literal("simple_inductor"),
|
|
9816
|
-
inductance: inductance
|
|
9817
|
-
});
|
|
9818
7624
|
var source_led = source_simple_diode.extend({
|
|
9819
7625
|
ftype: z.literal("led")
|
|
9820
7626
|
});
|
|
@@ -9822,6 +7628,26 @@ var source_simple_power_source = source_component_base.extend({
|
|
|
9822
7628
|
ftype: z.literal("simple_power_source"),
|
|
9823
7629
|
voltage: voltage
|
|
9824
7630
|
});
|
|
7631
|
+
var source_simple_battery = source_component_base.extend({
|
|
7632
|
+
ftype: z.literal("simple_battery"),
|
|
7633
|
+
capacity: battery_capacity
|
|
7634
|
+
});
|
|
7635
|
+
var source_simple_inductor = source_component_base.extend({
|
|
7636
|
+
ftype: z.literal("simple_inductor"),
|
|
7637
|
+
inductance: inductance
|
|
7638
|
+
});
|
|
7639
|
+
var source_simple_push_button = source_component_base.extend({
|
|
7640
|
+
ftype: z.literal("simple_push_button")
|
|
7641
|
+
});
|
|
7642
|
+
var source_simple_potentiometer = source_component_base.extend({
|
|
7643
|
+
ftype: z.literal("simple_potentiometer"),
|
|
7644
|
+
max_resistance: resistance
|
|
7645
|
+
});
|
|
7646
|
+
var source_simple_crystal = source_component_base.extend({
|
|
7647
|
+
ftype: z.literal("simple_crystal"),
|
|
7648
|
+
frequency: z.number().describe("Frequency in Hz"),
|
|
7649
|
+
load_capacitance: z.number().optional().describe("Load capacitance in pF")
|
|
7650
|
+
});
|
|
9825
7651
|
var any_source_component = z.union([
|
|
9826
7652
|
source_simple_resistor,
|
|
9827
7653
|
source_simple_capacitor,
|
|
@@ -9830,7 +7656,12 @@ var any_source_component = z.union([
|
|
|
9830
7656
|
source_simple_chip,
|
|
9831
7657
|
source_simple_bug,
|
|
9832
7658
|
source_led,
|
|
9833
|
-
source_simple_power_source
|
|
7659
|
+
source_simple_power_source,
|
|
7660
|
+
source_simple_battery,
|
|
7661
|
+
source_simple_inductor,
|
|
7662
|
+
source_simple_push_button,
|
|
7663
|
+
source_simple_potentiometer,
|
|
7664
|
+
source_simple_crystal
|
|
9834
7665
|
]);
|
|
9835
7666
|
var source_port = z.object({
|
|
9836
7667
|
type: z.literal("source_port"),
|
|
@@ -9844,8 +7675,10 @@ var source_trace = z.object({
|
|
|
9844
7675
|
type: z.literal("source_trace"),
|
|
9845
7676
|
source_trace_id: z.string(),
|
|
9846
7677
|
connected_source_port_ids: z.array(z.string()),
|
|
9847
|
-
connected_source_net_ids: z.array(z.string())
|
|
7678
|
+
connected_source_net_ids: z.array(z.string()),
|
|
7679
|
+
subcircuit_connectivity_map_key: z.string().optional()
|
|
9848
7680
|
});
|
|
7681
|
+
expectTypesMatch(true);
|
|
9849
7682
|
var source_group = z.object({
|
|
9850
7683
|
type: z.literal("source_group"),
|
|
9851
7684
|
source_group_id: z.string(),
|
|
@@ -9886,6 +7719,48 @@ var schematic_pin_styles = z.record(z.object({
|
|
|
9886
7719
|
top_margin: length.optional(),
|
|
9887
7720
|
bottom_margin: length.optional()
|
|
9888
7721
|
}));
|
|
7722
|
+
var schematic_component_port_arrangement_by_size = z.object({
|
|
7723
|
+
left_size: z.number(),
|
|
7724
|
+
right_size: z.number(),
|
|
7725
|
+
top_size: z.number().optional(),
|
|
7726
|
+
bottom_size: z.number().optional()
|
|
7727
|
+
});
|
|
7728
|
+
expectTypesMatch(true);
|
|
7729
|
+
var schematic_component_port_arrangement_by_sides = z.object({
|
|
7730
|
+
left_side: z.object({
|
|
7731
|
+
pins: z.array(z.number()),
|
|
7732
|
+
direction: z.enum([
|
|
7733
|
+
"top-to-bottom",
|
|
7734
|
+
"bottom-to-top"
|
|
7735
|
+
]).optional()
|
|
7736
|
+
}).optional(),
|
|
7737
|
+
right_side: z.object({
|
|
7738
|
+
pins: z.array(z.number()),
|
|
7739
|
+
direction: z.enum([
|
|
7740
|
+
"top-to-bottom",
|
|
7741
|
+
"bottom-to-top"
|
|
7742
|
+
]).optional()
|
|
7743
|
+
}).optional(),
|
|
7744
|
+
top_side: z.object({
|
|
7745
|
+
pins: z.array(z.number()),
|
|
7746
|
+
direction: z.enum([
|
|
7747
|
+
"left-to-right",
|
|
7748
|
+
"right-to-left"
|
|
7749
|
+
]).optional()
|
|
7750
|
+
}).optional(),
|
|
7751
|
+
bottom_side: z.object({
|
|
7752
|
+
pins: z.array(z.number()),
|
|
7753
|
+
direction: z.enum([
|
|
7754
|
+
"left-to-right",
|
|
7755
|
+
"right-to-left"
|
|
7756
|
+
]).optional()
|
|
7757
|
+
}).optional()
|
|
7758
|
+
});
|
|
7759
|
+
expectTypesMatch(true);
|
|
7760
|
+
var port_arrangement = z.union([
|
|
7761
|
+
schematic_component_port_arrangement_by_size,
|
|
7762
|
+
schematic_component_port_arrangement_by_sides
|
|
7763
|
+
]);
|
|
9889
7764
|
var schematic_component = z.object({
|
|
9890
7765
|
type: z.literal("schematic_component"),
|
|
9891
7766
|
rotation: rotation.default(0),
|
|
@@ -9897,46 +7772,11 @@ var schematic_component = z.object({
|
|
|
9897
7772
|
pin_styles: schematic_pin_styles.optional(),
|
|
9898
7773
|
box_width: length.optional(),
|
|
9899
7774
|
symbol_name: z.string().optional(),
|
|
9900
|
-
port_arrangement:
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
right_size: z.number(),
|
|
9904
|
-
top_size: z.number().optional(),
|
|
9905
|
-
bottom_size: z.number().optional()
|
|
9906
|
-
}),
|
|
9907
|
-
z.object({
|
|
9908
|
-
left_side: z.object({
|
|
9909
|
-
pins: z.array(z.number()),
|
|
9910
|
-
direction: z.enum([
|
|
9911
|
-
"top-to-bottom",
|
|
9912
|
-
"bottom-to-top"
|
|
9913
|
-
]).optional()
|
|
9914
|
-
}).optional(),
|
|
9915
|
-
right_side: z.object({
|
|
9916
|
-
pins: z.array(z.number()),
|
|
9917
|
-
direction: z.enum([
|
|
9918
|
-
"top-to-bottom",
|
|
9919
|
-
"bottom-to-top"
|
|
9920
|
-
]).optional()
|
|
9921
|
-
}).optional(),
|
|
9922
|
-
top_side: z.object({
|
|
9923
|
-
pins: z.array(z.number()),
|
|
9924
|
-
direction: z.enum([
|
|
9925
|
-
"left-to-right",
|
|
9926
|
-
"right-to-left"
|
|
9927
|
-
]).optional()
|
|
9928
|
-
}).optional(),
|
|
9929
|
-
bottom_side: z.object({
|
|
9930
|
-
pins: z.array(z.number()),
|
|
9931
|
-
direction: z.enum([
|
|
9932
|
-
"left-to-right",
|
|
9933
|
-
"right-to-left"
|
|
9934
|
-
]).optional()
|
|
9935
|
-
}).optional()
|
|
9936
|
-
})
|
|
9937
|
-
]).optional(),
|
|
9938
|
-
port_labels: z.record(z.string()).optional()
|
|
7775
|
+
port_arrangement: port_arrangement.optional(),
|
|
7776
|
+
port_labels: z.record(z.string()).optional(),
|
|
7777
|
+
symbol_display_value: z.string().optional()
|
|
9939
7778
|
});
|
|
7779
|
+
expectTypesMatch(true);
|
|
9940
7780
|
var schematic_line = z.object({
|
|
9941
7781
|
type: z.literal("schematic_line"),
|
|
9942
7782
|
schematic_component_id: z.string(),
|
|
@@ -9949,6 +7789,10 @@ var schematic_trace = z.object({
|
|
|
9949
7789
|
type: z.literal("schematic_trace"),
|
|
9950
7790
|
schematic_trace_id: z.string(),
|
|
9951
7791
|
source_trace_id: z.string(),
|
|
7792
|
+
junctions: z.array(z.object({
|
|
7793
|
+
x: z.number(),
|
|
7794
|
+
y: z.number()
|
|
7795
|
+
})),
|
|
9952
7796
|
edges: z.array(z.object({
|
|
9953
7797
|
from: z.object({
|
|
9954
7798
|
x: z.number(),
|
|
@@ -9958,10 +7802,12 @@ var schematic_trace = z.object({
|
|
|
9958
7802
|
x: z.number(),
|
|
9959
7803
|
y: z.number()
|
|
9960
7804
|
}),
|
|
7805
|
+
is_crossing: z.boolean().optional(),
|
|
9961
7806
|
from_schematic_port_id: z.string().optional(),
|
|
9962
7807
|
to_schematic_port_id: z.string().optional()
|
|
9963
7808
|
}))
|
|
9964
7809
|
});
|
|
7810
|
+
expectTypesMatch(true);
|
|
9965
7811
|
var schematic_text = z.object({
|
|
9966
7812
|
type: z.literal("schematic_text"),
|
|
9967
7813
|
schematic_component_id: z.string(),
|
|
@@ -9978,7 +7824,8 @@ var schematic_text = z.object({
|
|
|
9978
7824
|
"right",
|
|
9979
7825
|
"top",
|
|
9980
7826
|
"bottom"
|
|
9981
|
-
]).default("center")
|
|
7827
|
+
]).default("center"),
|
|
7828
|
+
color: z.string().default("#000000")
|
|
9982
7829
|
});
|
|
9983
7830
|
var schematic_port = z.object({
|
|
9984
7831
|
type: z.literal("schematic_port"),
|
|
@@ -9991,19 +7838,32 @@ var schematic_port = z.object({
|
|
|
9991
7838
|
"down",
|
|
9992
7839
|
"left",
|
|
9993
7840
|
"right"
|
|
9994
|
-
]).optional()
|
|
7841
|
+
]).optional(),
|
|
7842
|
+
distance_from_component_edge: z.number().optional(),
|
|
7843
|
+
side_of_component: z.enum([
|
|
7844
|
+
"top",
|
|
7845
|
+
"bottom",
|
|
7846
|
+
"left",
|
|
7847
|
+
"right"
|
|
7848
|
+
]).optional(),
|
|
7849
|
+
true_ccw_index: z.number().optional(),
|
|
7850
|
+
pin_number: z.number().optional(),
|
|
7851
|
+
display_pin_label: z.string().optional()
|
|
9995
7852
|
}).describe("Defines a port on a schematic component");
|
|
7853
|
+
expectTypesMatch(true);
|
|
9996
7854
|
var schematic_net_label = z.object({
|
|
9997
7855
|
type: z.literal("schematic_net_label"),
|
|
9998
7856
|
source_net_id: z.string(),
|
|
9999
7857
|
center: point,
|
|
7858
|
+
anchor_position: point.optional(),
|
|
10000
7859
|
anchor_side: z.enum([
|
|
10001
7860
|
"top",
|
|
10002
7861
|
"bottom",
|
|
10003
7862
|
"left",
|
|
10004
7863
|
"right"
|
|
10005
7864
|
]),
|
|
10006
|
-
text: z.string()
|
|
7865
|
+
text: z.string(),
|
|
7866
|
+
symbol_name: z.string().optional()
|
|
10007
7867
|
});
|
|
10008
7868
|
var schematic_error = z.object({
|
|
10009
7869
|
schematic_error_id: z.string(),
|
|
@@ -10012,6 +7872,30 @@ var schematic_error = z.object({
|
|
|
10012
7872
|
error_type: z.literal("schematic_port_not_found"),
|
|
10013
7873
|
message: z.string()
|
|
10014
7874
|
}).describe("Defines a schematic error on the schematic");
|
|
7875
|
+
var schematic_debug_object_base = z.object({
|
|
7876
|
+
type: z.literal("schematic_debug_object"),
|
|
7877
|
+
label: z.string().optional()
|
|
7878
|
+
});
|
|
7879
|
+
var schematic_debug_rect = schematic_debug_object_base.extend({
|
|
7880
|
+
shape: z.literal("rect"),
|
|
7881
|
+
center: point,
|
|
7882
|
+
size: size
|
|
7883
|
+
});
|
|
7884
|
+
var schematic_debug_line = schematic_debug_object_base.extend({
|
|
7885
|
+
shape: z.literal("line"),
|
|
7886
|
+
start: point,
|
|
7887
|
+
end: point
|
|
7888
|
+
});
|
|
7889
|
+
var schematic_debug_point = schematic_debug_object_base.extend({
|
|
7890
|
+
shape: z.literal("point"),
|
|
7891
|
+
center: point
|
|
7892
|
+
});
|
|
7893
|
+
var schematic_debug_object = z.discriminatedUnion("shape", [
|
|
7894
|
+
schematic_debug_rect,
|
|
7895
|
+
schematic_debug_line,
|
|
7896
|
+
schematic_debug_point
|
|
7897
|
+
]);
|
|
7898
|
+
expectTypesMatch(true);
|
|
10015
7899
|
var all_layers = [
|
|
10016
7900
|
"top",
|
|
10017
7901
|
"bottom",
|
|
@@ -10049,7 +7933,6 @@ var route_hint_point = z.object({
|
|
|
10049
7933
|
to_layer: layer_ref.optional(),
|
|
10050
7934
|
trace_width: distance.optional()
|
|
10051
7935
|
});
|
|
10052
|
-
var expectTypesMatch = function(shouldBe) {};
|
|
10053
7936
|
var pcb_component = z.object({
|
|
10054
7937
|
type: z.literal("pcb_component"),
|
|
10055
7938
|
pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
|
|
@@ -10158,12 +8041,57 @@ var pcb_smtpad_rect = z.object({
|
|
|
10158
8041
|
pcb_component_id: z.string().optional(),
|
|
10159
8042
|
pcb_port_id: z.string().optional()
|
|
10160
8043
|
});
|
|
8044
|
+
var pcb_smtpad_rotated_rect = z.object({
|
|
8045
|
+
type: z.literal("pcb_smtpad"),
|
|
8046
|
+
shape: z.literal("rotated_rect"),
|
|
8047
|
+
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
8048
|
+
x: distance,
|
|
8049
|
+
y: distance,
|
|
8050
|
+
width: z.number(),
|
|
8051
|
+
height: z.number(),
|
|
8052
|
+
ccw_rotation: rotation,
|
|
8053
|
+
layer: layer_ref,
|
|
8054
|
+
port_hints: z.array(z.string()).optional(),
|
|
8055
|
+
pcb_component_id: z.string().optional(),
|
|
8056
|
+
pcb_port_id: z.string().optional()
|
|
8057
|
+
});
|
|
10161
8058
|
var pcb_smtpad = z.union([
|
|
10162
8059
|
pcb_smtpad_circle,
|
|
10163
|
-
pcb_smtpad_rect
|
|
8060
|
+
pcb_smtpad_rect,
|
|
8061
|
+
pcb_smtpad_rotated_rect
|
|
10164
8062
|
]).describe("Defines an SMT pad on the PCB");
|
|
10165
8063
|
expectTypesMatch(true);
|
|
10166
8064
|
expectTypesMatch(true);
|
|
8065
|
+
expectTypesMatch(true);
|
|
8066
|
+
var pcb_solder_paste_circle = z.object({
|
|
8067
|
+
type: z.literal("pcb_solder_paste"),
|
|
8068
|
+
shape: z.literal("circle"),
|
|
8069
|
+
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
8070
|
+
x: distance,
|
|
8071
|
+
y: distance,
|
|
8072
|
+
radius: z.number(),
|
|
8073
|
+
layer: layer_ref,
|
|
8074
|
+
pcb_component_id: z.string().optional(),
|
|
8075
|
+
pcb_smtpad_id: z.string().optional()
|
|
8076
|
+
});
|
|
8077
|
+
var pcb_solder_paste_rect = z.object({
|
|
8078
|
+
type: z.literal("pcb_solder_paste"),
|
|
8079
|
+
shape: z.literal("rect"),
|
|
8080
|
+
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
8081
|
+
x: distance,
|
|
8082
|
+
y: distance,
|
|
8083
|
+
width: z.number(),
|
|
8084
|
+
height: z.number(),
|
|
8085
|
+
layer: layer_ref,
|
|
8086
|
+
pcb_component_id: z.string().optional(),
|
|
8087
|
+
pcb_smtpad_id: z.string().optional()
|
|
8088
|
+
});
|
|
8089
|
+
var pcb_solder_paste = z.union([
|
|
8090
|
+
pcb_solder_paste_circle,
|
|
8091
|
+
pcb_solder_paste_rect
|
|
8092
|
+
]).describe("Defines solderpaste on the PCB");
|
|
8093
|
+
expectTypesMatch(true);
|
|
8094
|
+
expectTypesMatch(true);
|
|
10167
8095
|
var pcb_text = z.object({
|
|
10168
8096
|
type: z.literal("pcb_text"),
|
|
10169
8097
|
pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
|
|
@@ -10207,6 +8135,7 @@ var pcb_trace = z.object({
|
|
|
10207
8135
|
"constant",
|
|
10208
8136
|
"interpolated"
|
|
10209
8137
|
]).default("constant").optional(),
|
|
8138
|
+
route_order_index: z.number().optional(),
|
|
10210
8139
|
should_round_corners: z.boolean().optional(),
|
|
10211
8140
|
route: z.array(z.union([
|
|
10212
8141
|
z.object({
|
|
@@ -10257,7 +8186,8 @@ var pcb_via = z.object({
|
|
|
10257
8186
|
hole_diameter: distance.default("0.25mm"),
|
|
10258
8187
|
/** @deprecated */ from_layer: layer_ref.optional(),
|
|
10259
8188
|
/** @deprecated */ to_layer: layer_ref.optional(),
|
|
10260
|
-
layers: z.array(layer_ref)
|
|
8189
|
+
layers: z.array(layer_ref),
|
|
8190
|
+
pcb_trace_id: z.string().optional()
|
|
10261
8191
|
}).describe("Defines a via on the PCB");
|
|
10262
8192
|
expectTypesMatch(true);
|
|
10263
8193
|
var pcb_board = z.object({
|
|
@@ -10266,6 +8196,8 @@ var pcb_board = z.object({
|
|
|
10266
8196
|
width: length,
|
|
10267
8197
|
height: length,
|
|
10268
8198
|
center: point,
|
|
8199
|
+
thickness: length.optional().default(1.4),
|
|
8200
|
+
num_layers: z.number().optional().default(4),
|
|
10269
8201
|
outline: z.array(point).optional()
|
|
10270
8202
|
}).describe("Defines the board outline of the PCB");
|
|
10271
8203
|
expectTypesMatch(true);
|
|
@@ -10312,6 +8244,7 @@ var pcb_silkscreen_text = z.object({
|
|
|
10312
8244
|
pcb_component_id: z.string(),
|
|
10313
8245
|
text: z.string(),
|
|
10314
8246
|
layer: layer_ref,
|
|
8247
|
+
is_mirrored: z.boolean().default(false).optional(),
|
|
10315
8248
|
anchor_position: point.default({
|
|
10316
8249
|
x: 0,
|
|
10317
8250
|
y: 0
|
|
@@ -10406,6 +8339,14 @@ var pcb_keepout = z.object({
|
|
|
10406
8339
|
// Specify layers where the keepout applies
|
|
10407
8340
|
description: z.string().optional()
|
|
10408
8341
|
}));
|
|
8342
|
+
var pcb_missing_footprint_error = z.object({
|
|
8343
|
+
type: z.literal("pcb_missing_footprint_error"),
|
|
8344
|
+
pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault("pcb_missing_footprint_error"),
|
|
8345
|
+
error_type: z.literal("pcb_missing_footprint_error"),
|
|
8346
|
+
source_component_id: z.string(),
|
|
8347
|
+
message: z.string()
|
|
8348
|
+
}).describe("Defines a missing footprint error on the PCB");
|
|
8349
|
+
expectTypesMatch(true);
|
|
10409
8350
|
var cad_component = z.object({
|
|
10410
8351
|
type: z.literal("cad_component"),
|
|
10411
8352
|
cad_component_id: z.string(),
|
|
@@ -10435,8 +8376,13 @@ var any_circuit_element = z.union([
|
|
|
10435
8376
|
source_simple_diode,
|
|
10436
8377
|
source_simple_resistor,
|
|
10437
8378
|
source_simple_power_source,
|
|
8379
|
+
source_simple_battery,
|
|
8380
|
+
source_simple_inductor,
|
|
8381
|
+
source_simple_potentiometer,
|
|
8382
|
+
source_simple_push_button,
|
|
10438
8383
|
pcb_component,
|
|
10439
8384
|
pcb_hole,
|
|
8385
|
+
pcb_missing_footprint_error,
|
|
10440
8386
|
pcb_plated_hole,
|
|
10441
8387
|
pcb_keepout,
|
|
10442
8388
|
pcb_port,
|
|
@@ -10444,6 +8390,7 @@ var any_circuit_element = z.union([
|
|
|
10444
8390
|
pcb_trace,
|
|
10445
8391
|
pcb_via,
|
|
10446
8392
|
pcb_smtpad,
|
|
8393
|
+
pcb_solder_paste,
|
|
10447
8394
|
pcb_board,
|
|
10448
8395
|
pcb_trace_hint,
|
|
10449
8396
|
pcb_silkscreen_line,
|
|
@@ -10466,6 +8413,7 @@ var any_circuit_element = z.union([
|
|
|
10466
8413
|
schematic_path,
|
|
10467
8414
|
schematic_error,
|
|
10468
8415
|
schematic_net_label,
|
|
8416
|
+
schematic_debug_object,
|
|
10469
8417
|
cad_component
|
|
10470
8418
|
]);
|
|
10471
8419
|
var any_soup_element = any_circuit_element;
|
|
@@ -11970,7 +9918,6 @@ var LAYER_NAME_TO_COLOR = _object_spread({
|
|
|
11970
9918
|
top: colors_default.board.copper.f,
|
|
11971
9919
|
inner1: colors_default.board.copper.in1,
|
|
11972
9920
|
inner2: colors_default.board.copper.in2,
|
|
11973
|
-
inner3: colors_default.board.copper.in3,
|
|
11974
9921
|
inner4: colors_default.board.copper.in4,
|
|
11975
9922
|
inner5: colors_default.board.copper.in5,
|
|
11976
9923
|
inner6: colors_default.board.copper.in6,
|
|
@@ -12115,6 +10062,39 @@ var Drawer = /*#__PURE__*/ function() {
|
|
|
12115
10062
|
}
|
|
12116
10063
|
}
|
|
12117
10064
|
},
|
|
10065
|
+
{
|
|
10066
|
+
key: "rotatedRect",
|
|
10067
|
+
value: function rotatedRect(x, y, w, h, ccw_rotation, mesh_fill) {
|
|
10068
|
+
var ctx = this.getLayerCtx();
|
|
10069
|
+
this.applyAperture();
|
|
10070
|
+
var _ref = _sliced_to_array((0, import_transformation_matrix3.applyToPoint)(this.transform, [
|
|
10071
|
+
x - w / 2,
|
|
10072
|
+
y - h / 2
|
|
10073
|
+
]), 2), x1$ = _ref[0], y1$ = _ref[1];
|
|
10074
|
+
var _ref1 = _sliced_to_array((0, import_transformation_matrix3.applyToPoint)(this.transform, [
|
|
10075
|
+
x + w / 2,
|
|
10076
|
+
y + h / 2
|
|
10077
|
+
]), 2), x2$ = _ref1[0], y2$ = _ref1[1];
|
|
10078
|
+
ctx.save();
|
|
10079
|
+
var _ref2 = _sliced_to_array((0, import_transformation_matrix3.applyToPoint)(this.transform, [
|
|
10080
|
+
x,
|
|
10081
|
+
y
|
|
10082
|
+
]), 2), centerX = _ref2[0], centerY = _ref2[1];
|
|
10083
|
+
ctx.translate(centerX, centerY);
|
|
10084
|
+
ctx.rotate(ccw_rotation * Math.PI / 180);
|
|
10085
|
+
ctx.translate(-centerX, -centerY);
|
|
10086
|
+
if (mesh_fill) {
|
|
10087
|
+
ctx.beginPath();
|
|
10088
|
+
ctx.rect(x1$, y1$, x2$ - x1$, y2$ - y1$);
|
|
10089
|
+
ctx.clip();
|
|
10090
|
+
this.drawMeshPattern(x - w / 2, y - h / 2, w, h, 0.15);
|
|
10091
|
+
ctx.strokeRect(x1$, y1$, x2$ - x1$, y2$ - y1$);
|
|
10092
|
+
} else {
|
|
10093
|
+
ctx.fillRect(x1$, y1$, x2$ - x1$, y2$ - y1$);
|
|
10094
|
+
}
|
|
10095
|
+
ctx.restore();
|
|
10096
|
+
}
|
|
10097
|
+
},
|
|
12118
10098
|
{
|
|
12119
10099
|
key: "circle",
|
|
12120
10100
|
value: function circle(x, y, r, mesh_fill) {
|
|
@@ -12185,7 +10165,6 @@ var Drawer = /*#__PURE__*/ function() {
|
|
|
12185
10165
|
value: function polygon(points) {
|
|
12186
10166
|
var _this = this;
|
|
12187
10167
|
if (points.length < 3) {
|
|
12188
|
-
console.warn("Polygon must have at least 3 points");
|
|
12189
10168
|
return;
|
|
12190
10169
|
}
|
|
12191
10170
|
this.applyAperture();
|
|
@@ -12506,6 +10485,13 @@ var drawRect = function(drawer, rect) {
|
|
|
12506
10485
|
});
|
|
12507
10486
|
drawer.rect(rect.x, rect.y, rect.w, rect.h, rect.mesh_fill);
|
|
12508
10487
|
};
|
|
10488
|
+
var drawRotatedRect = function(drawer, rect) {
|
|
10489
|
+
drawer.equip({
|
|
10490
|
+
color: getColor(rect),
|
|
10491
|
+
layer: rect.layer
|
|
10492
|
+
});
|
|
10493
|
+
drawer.rotatedRect(rect.x, rect.y, rect.w, rect.h, rect.ccw_rotation);
|
|
10494
|
+
};
|
|
12509
10495
|
var drawCircle = function(drawer, circle) {
|
|
12510
10496
|
drawer.equip({
|
|
12511
10497
|
color: getColor(circle),
|
|
@@ -12541,6 +10527,13 @@ var drawPrimitive = function(drawer, primitive) {
|
|
|
12541
10527
|
case "text":
|
|
12542
10528
|
return drawText(drawer, primitive);
|
|
12543
10529
|
case "rect":
|
|
10530
|
+
var _primitive__element;
|
|
10531
|
+
if (((_primitive__element = primitive._element) === null || _primitive__element === void 0 ? void 0 : _primitive__element.shape) === "rotated_rect") {
|
|
10532
|
+
return drawRotatedRect(drawer, _object_spread_props(_object_spread({}, primitive), {
|
|
10533
|
+
ccw_rotation: primitive._element.ccw_rotation,
|
|
10534
|
+
mesh_fill: primitive.mesh_fill
|
|
10535
|
+
}));
|
|
10536
|
+
}
|
|
12544
10537
|
return drawRect(drawer, primitive);
|
|
12545
10538
|
case "circle":
|
|
12546
10539
|
return drawCircle(drawer, primitive);
|
|
@@ -12804,7 +10797,7 @@ var convertElementToPrimitives = function(element, allElements) {
|
|
|
12804
10797
|
}
|
|
12805
10798
|
case "pcb_smtpad":
|
|
12806
10799
|
{
|
|
12807
|
-
if (element.shape === "rect") {
|
|
10800
|
+
if (element.shape === "rect" || element.shape === "rotated_rect") {
|
|
12808
10801
|
var shape = element.shape, x = element.x, y = element.y, width1 = element.width, height1 = element.height, layer = element.layer;
|
|
12809
10802
|
return [
|
|
12810
10803
|
{
|
|
@@ -13747,7 +11740,7 @@ var import_css = require("@emotion/css");
|
|
|
13747
11740
|
// package.json
|
|
13748
11741
|
var package_default = {
|
|
13749
11742
|
name: "@tscircuit/pcb-viewer",
|
|
13750
|
-
version: "1.10.
|
|
11743
|
+
version: "1.10.17",
|
|
13751
11744
|
main: "dist/index.js",
|
|
13752
11745
|
repository: "tscircuit/pcb-viewer",
|
|
13753
11746
|
license: "MIT",
|
|
@@ -13756,7 +11749,9 @@ var package_default = {
|
|
|
13756
11749
|
build: "tsup ./src/index.tsx --dts --sourcemap --outDir dist",
|
|
13757
11750
|
yalc: "npm run build && yalc push",
|
|
13758
11751
|
storybook: "storybook dev -p 6006",
|
|
13759
|
-
"build-storybook": "storybook build"
|
|
11752
|
+
"build-storybook": "storybook build",
|
|
11753
|
+
format: "biome format . --write",
|
|
11754
|
+
"format:check": "biome format ."
|
|
13760
11755
|
},
|
|
13761
11756
|
files: [
|
|
13762
11757
|
"dist"
|
|
@@ -13777,7 +11772,7 @@ var package_default = {
|
|
|
13777
11772
|
"@types/color": "^3.0.6",
|
|
13778
11773
|
"@types/node": "18.7.23",
|
|
13779
11774
|
"@types/react": "^18.3.3",
|
|
13780
|
-
"circuit-json": "^0.0.
|
|
11775
|
+
"circuit-json": "^0.0.106",
|
|
13781
11776
|
next: "^14.1.4",
|
|
13782
11777
|
react: "^18.2.0",
|
|
13783
11778
|
"react-dom": "^18.2.0",
|