@athrio/loom 0.0.11 → 0.0.13

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.
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as __require, t as __commonJSMin } from "./rolldown-runtime-YU9U6SYh.js";
3
+ import { t as require_umd } from "./umd-BiUxa7B7.js";
3
4
  //#region ../../node_modules/@volar/source-map/lib/binarySearch.js
4
5
  var require_binarySearch = /* @__PURE__ */ __commonJSMin(((exports) => {
5
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -607,433 +608,6 @@ var require_language_core = /* @__PURE__ */ __commonJSMin(((exports) => {
607
608
  }
608
609
  }));
609
610
  //#endregion
610
- //#region ../../node_modules/vscode-uri/lib/umd/index.js
611
- var require_umd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
612
- (function(t, e) {
613
- if ("object" == typeof exports && "object" == typeof module) module.exports = e();
614
- else if ("function" == typeof define && define.amd) define([], e);
615
- else {
616
- var r = e();
617
- for (var n in r) ("object" == typeof exports ? exports : t)[n] = r[n];
618
- }
619
- })(exports, (() => (() => {
620
- "use strict";
621
- var t = {
622
- 975: (t) => {
623
- function e(t) {
624
- if ("string" != typeof t) throw new TypeError("Path must be a string. Received " + JSON.stringify(t));
625
- }
626
- function r(t, e) {
627
- for (var r, n = "", i = 0, o = -1, s = 0, a = 0; a <= t.length; ++a) {
628
- if (a < t.length) r = t.charCodeAt(a);
629
- else {
630
- if (47 === r) break;
631
- r = 47;
632
- }
633
- if (47 === r) {
634
- if (o === a - 1 || 1 === s);
635
- else if (o !== a - 1 && 2 === s) {
636
- if (n.length < 2 || 2 !== i || 46 !== n.charCodeAt(n.length - 1) || 46 !== n.charCodeAt(n.length - 2)) {
637
- if (n.length > 2) {
638
- var h = n.lastIndexOf("/");
639
- if (h !== n.length - 1) {
640
- -1 === h ? (n = "", i = 0) : i = (n = n.slice(0, h)).length - 1 - n.lastIndexOf("/"), o = a, s = 0;
641
- continue;
642
- }
643
- } else if (2 === n.length || 1 === n.length) {
644
- n = "", i = 0, o = a, s = 0;
645
- continue;
646
- }
647
- }
648
- e && (n.length > 0 ? n += "/.." : n = "..", i = 2);
649
- } else n.length > 0 ? n += "/" + t.slice(o + 1, a) : n = t.slice(o + 1, a), i = a - o - 1;
650
- o = a, s = 0;
651
- } else 46 === r && -1 !== s ? ++s : s = -1;
652
- }
653
- return n;
654
- }
655
- var n = {
656
- resolve: function() {
657
- for (var t, n = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
658
- var s;
659
- o >= 0 ? s = arguments[o] : (void 0 === t && (t = process.cwd()), s = t), e(s), 0 !== s.length && (n = s + "/" + n, i = 47 === s.charCodeAt(0));
660
- }
661
- return n = r(n, !i), i ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
662
- },
663
- normalize: function(t) {
664
- if (e(t), 0 === t.length) return ".";
665
- var n = 47 === t.charCodeAt(0), i = 47 === t.charCodeAt(t.length - 1);
666
- return 0 !== (t = r(t, !n)).length || n || (t = "."), t.length > 0 && i && (t += "/"), n ? "/" + t : t;
667
- },
668
- isAbsolute: function(t) {
669
- return e(t), t.length > 0 && 47 === t.charCodeAt(0);
670
- },
671
- join: function() {
672
- if (0 === arguments.length) return ".";
673
- for (var t, r = 0; r < arguments.length; ++r) {
674
- var i = arguments[r];
675
- e(i), i.length > 0 && (void 0 === t ? t = i : t += "/" + i);
676
- }
677
- return void 0 === t ? "." : n.normalize(t);
678
- },
679
- relative: function(t, r) {
680
- if (e(t), e(r), t === r) return "";
681
- if ((t = n.resolve(t)) === (r = n.resolve(r))) return "";
682
- for (var i = 1; i < t.length && 47 === t.charCodeAt(i); ++i);
683
- for (var o = t.length, s = o - i, a = 1; a < r.length && 47 === r.charCodeAt(a); ++a);
684
- for (var h = r.length - a, c = s < h ? s : h, f = -1, u = 0; u <= c; ++u) {
685
- if (u === c) {
686
- if (h > c) {
687
- if (47 === r.charCodeAt(a + u)) return r.slice(a + u + 1);
688
- if (0 === u) return r.slice(a + u);
689
- } else s > c && (47 === t.charCodeAt(i + u) ? f = u : 0 === u && (f = 0));
690
- break;
691
- }
692
- var l = t.charCodeAt(i + u);
693
- if (l !== r.charCodeAt(a + u)) break;
694
- 47 === l && (f = u);
695
- }
696
- var d = "";
697
- for (u = i + f + 1; u <= o; ++u) u !== o && 47 !== t.charCodeAt(u) || (0 === d.length ? d += ".." : d += "/..");
698
- return d.length > 0 ? d + r.slice(a + f) : (a += f, 47 === r.charCodeAt(a) && ++a, r.slice(a));
699
- },
700
- _makeLong: function(t) {
701
- return t;
702
- },
703
- dirname: function(t) {
704
- if (e(t), 0 === t.length) return ".";
705
- for (var r = t.charCodeAt(0), n = 47 === r, i = -1, o = !0, s = t.length - 1; s >= 1; --s) if (47 === (r = t.charCodeAt(s))) {
706
- if (!o) {
707
- i = s;
708
- break;
709
- }
710
- } else o = !1;
711
- return -1 === i ? n ? "/" : "." : n && 1 === i ? "//" : t.slice(0, i);
712
- },
713
- basename: function(t, r) {
714
- if (void 0 !== r && "string" != typeof r) throw new TypeError("\"ext\" argument must be a string");
715
- e(t);
716
- var n, i = 0, o = -1, s = !0;
717
- if (void 0 !== r && r.length > 0 && r.length <= t.length) {
718
- if (r.length === t.length && r === t) return "";
719
- var a = r.length - 1, h = -1;
720
- for (n = t.length - 1; n >= 0; --n) {
721
- var c = t.charCodeAt(n);
722
- if (47 === c) {
723
- if (!s) {
724
- i = n + 1;
725
- break;
726
- }
727
- } else -1 === h && (s = !1, h = n + 1), a >= 0 && (c === r.charCodeAt(a) ? -1 == --a && (o = n) : (a = -1, o = h));
728
- }
729
- return i === o ? o = h : -1 === o && (o = t.length), t.slice(i, o);
730
- }
731
- for (n = t.length - 1; n >= 0; --n) if (47 === t.charCodeAt(n)) {
732
- if (!s) {
733
- i = n + 1;
734
- break;
735
- }
736
- } else -1 === o && (s = !1, o = n + 1);
737
- return -1 === o ? "" : t.slice(i, o);
738
- },
739
- extname: function(t) {
740
- e(t);
741
- for (var r = -1, n = 0, i = -1, o = !0, s = 0, a = t.length - 1; a >= 0; --a) {
742
- var h = t.charCodeAt(a);
743
- if (47 !== h) -1 === i && (o = !1, i = a + 1), 46 === h ? -1 === r ? r = a : 1 !== s && (s = 1) : -1 !== r && (s = -1);
744
- else if (!o) {
745
- n = a + 1;
746
- break;
747
- }
748
- }
749
- return -1 === r || -1 === i || 0 === s || 1 === s && r === i - 1 && r === n + 1 ? "" : t.slice(r, i);
750
- },
751
- format: function(t) {
752
- if (null === t || "object" != typeof t) throw new TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof t);
753
- return function(t, e) {
754
- var r = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
755
- return r ? r === e.root ? r + n : r + "/" + n : n;
756
- }(0, t);
757
- },
758
- parse: function(t) {
759
- e(t);
760
- var r = {
761
- root: "",
762
- dir: "",
763
- base: "",
764
- ext: "",
765
- name: ""
766
- };
767
- if (0 === t.length) return r;
768
- var n, i = t.charCodeAt(0), o = 47 === i;
769
- o ? (r.root = "/", n = 1) : n = 0;
770
- for (var s = -1, a = 0, h = -1, c = !0, f = t.length - 1, u = 0; f >= n; --f) if (47 !== (i = t.charCodeAt(f))) -1 === h && (c = !1, h = f + 1), 46 === i ? -1 === s ? s = f : 1 !== u && (u = 1) : -1 !== s && (u = -1);
771
- else if (!c) {
772
- a = f + 1;
773
- break;
774
- }
775
- return -1 === s || -1 === h || 0 === u || 1 === u && s === h - 1 && s === a + 1 ? -1 !== h && (r.base = r.name = 0 === a && o ? t.slice(1, h) : t.slice(a, h)) : (0 === a && o ? (r.name = t.slice(1, s), r.base = t.slice(1, h)) : (r.name = t.slice(a, s), r.base = t.slice(a, h)), r.ext = t.slice(s, h)), a > 0 ? r.dir = t.slice(0, a - 1) : o && (r.dir = "/"), r;
776
- },
777
- sep: "/",
778
- delimiter: ":",
779
- win32: null,
780
- posix: null
781
- };
782
- n.posix = n, t.exports = n;
783
- },
784
- 70: (t, e) => {
785
- if (Object.defineProperty(e, "__esModule", { value: !0 }), e.isWindows = void 0, "object" == typeof process) e.isWindows = "win32" === process.platform;
786
- else if ("object" == typeof navigator) e.isWindows = navigator.userAgent.indexOf("Windows") >= 0;
787
- },
788
- 231: (t, e, r) => {
789
- Object.defineProperty(e, "__esModule", { value: !0 }), e.uriToFsPath = e.URI = void 0;
790
- const n = r(70), i = /^\w[\w\d+.-]*$/, o = /^\//, s = /^\/\//;
791
- function a(t, e) {
792
- if (!t.scheme && e) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);
793
- if (t.scheme && !i.test(t.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
794
- if (t.path) {
795
- if (t.authority) {
796
- if (!o.test(t.path)) throw new Error("[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character");
797
- } else if (s.test(t.path)) throw new Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
798
- }
799
- }
800
- const h = "", c = "/", f = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
801
- class u {
802
- static isUri(t) {
803
- return t instanceof u || !!t && "string" == typeof t.authority && "string" == typeof t.fragment && "string" == typeof t.path && "string" == typeof t.query && "string" == typeof t.scheme && "string" == typeof t.fsPath && "function" == typeof t.with && "function" == typeof t.toString;
804
- }
805
- scheme;
806
- authority;
807
- path;
808
- query;
809
- fragment;
810
- constructor(t, e, r, n, i, o = !1) {
811
- "object" == typeof t ? (this.scheme = t.scheme || h, this.authority = t.authority || h, this.path = t.path || h, this.query = t.query || h, this.fragment = t.fragment || h) : (this.scheme = function(t, e) {
812
- return t || e ? t : "file";
813
- }(t, o), this.authority = e || h, this.path = function(t, e) {
814
- switch (t) {
815
- case "https":
816
- case "http":
817
- case "file": e ? e[0] !== c && (e = c + e) : e = c;
818
- }
819
- return e;
820
- }(this.scheme, r || h), this.query = n || h, this.fragment = i || h, a(this, o));
821
- }
822
- get fsPath() {
823
- return v(this, !1);
824
- }
825
- with(t) {
826
- if (!t) return this;
827
- let { scheme: e, authority: r, path: n, query: i, fragment: o } = t;
828
- return void 0 === e ? e = this.scheme : null === e && (e = h), void 0 === r ? r = this.authority : null === r && (r = h), void 0 === n ? n = this.path : null === n && (n = h), void 0 === i ? i = this.query : null === i && (i = h), void 0 === o ? o = this.fragment : null === o && (o = h), e === this.scheme && r === this.authority && n === this.path && i === this.query && o === this.fragment ? this : new d(e, r, n, i, o);
829
- }
830
- static parse(t, e = !1) {
831
- const r = f.exec(t);
832
- return r ? new d(r[2] || h, w(r[4] || h), w(r[5] || h), w(r[7] || h), w(r[9] || h), e) : new d(h, h, h, h, h);
833
- }
834
- static file(t) {
835
- let e = h;
836
- if (n.isWindows && (t = t.replace(/\\/g, c)), t[0] === c && t[1] === c) {
837
- const r = t.indexOf(c, 2);
838
- -1 === r ? (e = t.substring(2), t = c) : (e = t.substring(2, r), t = t.substring(r) || c);
839
- }
840
- return new d("file", e, t, h, h);
841
- }
842
- static from(t) {
843
- const e = new d(t.scheme, t.authority, t.path, t.query, t.fragment);
844
- return a(e, !0), e;
845
- }
846
- toString(t = !1) {
847
- return y(this, t);
848
- }
849
- toJSON() {
850
- return this;
851
- }
852
- static revive(t) {
853
- if (t) {
854
- if (t instanceof u) return t;
855
- {
856
- const e = new d(t);
857
- return e._formatted = t.external, e._fsPath = t._sep === l ? t.fsPath : null, e;
858
- }
859
- }
860
- return t;
861
- }
862
- }
863
- e.URI = u;
864
- const l = n.isWindows ? 1 : void 0;
865
- class d extends u {
866
- _formatted = null;
867
- _fsPath = null;
868
- get fsPath() {
869
- return this._fsPath || (this._fsPath = v(this, !1)), this._fsPath;
870
- }
871
- toString(t = !1) {
872
- return t ? y(this, !0) : (this._formatted || (this._formatted = y(this, !1)), this._formatted);
873
- }
874
- toJSON() {
875
- const t = { $mid: 1 };
876
- return this._fsPath && (t.fsPath = this._fsPath, t._sep = l), this._formatted && (t.external = this._formatted), this.path && (t.path = this.path), this.scheme && (t.scheme = this.scheme), this.authority && (t.authority = this.authority), this.query && (t.query = this.query), this.fragment && (t.fragment = this.fragment), t;
877
- }
878
- }
879
- const p = {
880
- 58: "%3A",
881
- 47: "%2F",
882
- 63: "%3F",
883
- 35: "%23",
884
- 91: "%5B",
885
- 93: "%5D",
886
- 64: "%40",
887
- 33: "%21",
888
- 36: "%24",
889
- 38: "%26",
890
- 39: "%27",
891
- 40: "%28",
892
- 41: "%29",
893
- 42: "%2A",
894
- 43: "%2B",
895
- 44: "%2C",
896
- 59: "%3B",
897
- 61: "%3D",
898
- 32: "%20"
899
- };
900
- function g(t, e, r) {
901
- let n, i = -1;
902
- for (let o = 0; o < t.length; o++) {
903
- const s = t.charCodeAt(o);
904
- if (s >= 97 && s <= 122 || s >= 65 && s <= 90 || s >= 48 && s <= 57 || 45 === s || 46 === s || 95 === s || 126 === s || e && 47 === s || r && 91 === s || r && 93 === s || r && 58 === s) -1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), void 0 !== n && (n += t.charAt(o));
905
- else {
906
- void 0 === n && (n = t.substr(0, o));
907
- const e = p[s];
908
- void 0 !== e ? (-1 !== i && (n += encodeURIComponent(t.substring(i, o)), i = -1), n += e) : -1 === i && (i = o);
909
- }
910
- }
911
- return -1 !== i && (n += encodeURIComponent(t.substring(i))), void 0 !== n ? n : t;
912
- }
913
- function m(t) {
914
- let e;
915
- for (let r = 0; r < t.length; r++) {
916
- const n = t.charCodeAt(r);
917
- 35 === n || 63 === n ? (void 0 === e && (e = t.substr(0, r)), e += p[n]) : void 0 !== e && (e += t[r]);
918
- }
919
- return void 0 !== e ? e : t;
920
- }
921
- function v(t, e) {
922
- let r;
923
- return r = t.authority && t.path.length > 1 && "file" === t.scheme ? `//${t.authority}${t.path}` : 47 === t.path.charCodeAt(0) && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && 58 === t.path.charCodeAt(2) ? e ? t.path.substr(1) : t.path[1].toLowerCase() + t.path.substr(2) : t.path, n.isWindows && (r = r.replace(/\//g, "\\")), r;
924
- }
925
- function y(t, e) {
926
- const r = e ? m : g;
927
- let n = "", { scheme: i, authority: o, path: s, query: a, fragment: h } = t;
928
- if (i && (n += i, n += ":"), (o || "file" === i) && (n += c, n += c), o) {
929
- let t = o.indexOf("@");
930
- if (-1 !== t) {
931
- const e = o.substr(0, t);
932
- o = o.substr(t + 1), t = e.lastIndexOf(":"), -1 === t ? n += r(e, !1, !1) : (n += r(e.substr(0, t), !1, !1), n += ":", n += r(e.substr(t + 1), !1, !0)), n += "@";
933
- }
934
- o = o.toLowerCase(), t = o.lastIndexOf(":"), -1 === t ? n += r(o, !1, !0) : (n += r(o.substr(0, t), !1, !0), n += o.substr(t));
935
- }
936
- if (s) {
937
- if (s.length >= 3 && 47 === s.charCodeAt(0) && 58 === s.charCodeAt(2)) {
938
- const t = s.charCodeAt(1);
939
- t >= 65 && t <= 90 && (s = `/${String.fromCharCode(t + 32)}:${s.substr(3)}`);
940
- } else if (s.length >= 2 && 58 === s.charCodeAt(1)) {
941
- const t = s.charCodeAt(0);
942
- t >= 65 && t <= 90 && (s = `${String.fromCharCode(t + 32)}:${s.substr(2)}`);
943
- }
944
- n += r(s, !0, !1);
945
- }
946
- return a && (n += "?", n += r(a, !1, !1)), h && (n += "#", n += e ? h : g(h, !1, !1)), n;
947
- }
948
- function b(t) {
949
- try {
950
- return decodeURIComponent(t);
951
- } catch {
952
- return t.length > 3 ? t.substr(0, 3) + b(t.substr(3)) : t;
953
- }
954
- }
955
- e.uriToFsPath = v;
956
- const C = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
957
- function w(t) {
958
- return t.match(C) ? t.replace(C, ((t) => b(t))) : t;
959
- }
960
- },
961
- 552: function(t, e, r) {
962
- var n = this && this.__createBinding || (Object.create ? function(t, e, r, n) {
963
- void 0 === n && (n = r);
964
- var i = Object.getOwnPropertyDescriptor(e, r);
965
- i && !("get" in i ? !e.__esModule : i.writable || i.configurable) || (i = {
966
- enumerable: !0,
967
- get: function() {
968
- return e[r];
969
- }
970
- }), Object.defineProperty(t, n, i);
971
- } : function(t, e, r, n) {
972
- void 0 === n && (n = r), t[n] = e[r];
973
- }), i = this && this.__setModuleDefault || (Object.create ? function(t, e) {
974
- Object.defineProperty(t, "default", {
975
- enumerable: !0,
976
- value: e
977
- });
978
- } : function(t, e) {
979
- t.default = e;
980
- }), o = this && this.__importStar || function(t) {
981
- if (t && t.__esModule) return t;
982
- var e = {};
983
- if (null != t) for (var r in t) "default" !== r && Object.prototype.hasOwnProperty.call(t, r) && n(e, t, r);
984
- return i(e, t), e;
985
- };
986
- Object.defineProperty(e, "__esModule", { value: !0 }), e.Utils = void 0;
987
- const s = o(r(975)), a = s.posix || s, h = "/";
988
- var c;
989
- (function(t) {
990
- t.joinPath = function(t, ...e) {
991
- return t.with({ path: a.join(t.path, ...e) });
992
- }, t.resolvePath = function(t, ...e) {
993
- let r = t.path, n = !1;
994
- r[0] !== h && (r = h + r, n = !0);
995
- let i = a.resolve(r, ...e);
996
- return n && i[0] === h && !t.authority && (i = i.substring(1)), t.with({ path: i });
997
- }, t.dirname = function(t) {
998
- if (0 === t.path.length || t.path === h) return t;
999
- let e = a.dirname(t.path);
1000
- return 1 === e.length && 46 === e.charCodeAt(0) && (e = ""), t.with({ path: e });
1001
- }, t.basename = function(t) {
1002
- return a.basename(t.path);
1003
- }, t.extname = function(t) {
1004
- return a.extname(t.path);
1005
- };
1006
- })(c || (e.Utils = c = {}));
1007
- }
1008
- }, e = {};
1009
- function r(n) {
1010
- var i = e[n];
1011
- if (void 0 !== i) return i.exports;
1012
- var o = e[n] = { exports: {} };
1013
- return t[n].call(o.exports, o, o.exports, r), o.exports;
1014
- }
1015
- var n = {};
1016
- return (() => {
1017
- var t = n;
1018
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Utils = t.URI = void 0;
1019
- const e = r(231);
1020
- Object.defineProperty(t, "URI", {
1021
- enumerable: !0,
1022
- get: function() {
1023
- return e.URI;
1024
- }
1025
- });
1026
- const i = r(552);
1027
- Object.defineProperty(t, "Utils", {
1028
- enumerable: !0,
1029
- get: function() {
1030
- return i.Utils;
1031
- }
1032
- });
1033
- })(), n;
1034
- })()));
1035
- }));
1036
- //#endregion
1037
611
  //#region ../../node_modules/@volar/language-service/lib/utils/cancellation.js
1038
612
  var require_cancellation$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1039
613
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -11952,6 +11526,6 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
11952
11526
  exports.createProtocolConnection = createProtocolConnection;
11953
11527
  }));
11954
11528
  //#endregion
11955
- export { require_umd as a, require_main$3 as i, require_language_service as n, require_language_core as o, require_types as r, require_types$1 as s, require_main as t };
11529
+ export { require_language_core as a, require_main$3 as i, require_language_service as n, require_types$1 as o, require_types as r, require_main as t };
11956
11530
 
11957
- //# sourceMappingURL=main-mXrU4uag.js.map
11531
+ //# sourceMappingURL=main-DIsWd5jt.js.map