asterui 0.12.1 → 0.12.3
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/components/Checkbox.d.ts +10 -0
- package/dist/components/Dock.d.ts +38 -0
- package/dist/components/Mask.d.ts +14 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +173 -169
- package/dist/index.js.map +1 -1
- package/dist/index10.js +85 -59
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +12 -7
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +13 -11
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +7 -30
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +11 -16
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +30 -10792
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +18 -5
- package/dist/index105.js.map +1 -1
- package/dist/index15.js +3 -3
- package/dist/index21.js +1 -1
- package/dist/index24.js +43 -32
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +32 -41
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +41 -12
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +12 -33
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +33 -63
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +60 -77
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +80 -18
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +15 -217
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +216 -1078
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1081 -17
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +17 -121
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +119 -37
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +31 -182
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +191 -97
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +93 -158
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +155 -139
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +146 -15
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +14 -17
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +18 -21
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +18 -116
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +116 -10
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +13 -35
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +33 -114
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +10 -176
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +114 -145
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +176 -12
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +146 -21
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +12 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +20 -5
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +14 -266
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +7 -17
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +257 -113
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +17 -110
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +121 -169
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +110 -32
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +163 -115
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +30 -84
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +121 -19
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +81 -69
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +19 -56
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +72 -43
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +54 -49
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +41 -58
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +50 -105
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +62 -41
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +99 -60
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +41 -21
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +66 -44
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +19 -132
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +40 -46
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +134 -22
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +50 -29
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +19 -19
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +31 -329
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +19 -53
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +328 -39
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +56 -23
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +40 -95
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +22 -129
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +86 -152
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +125 -60
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +160 -34
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +65 -234
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +35 -34
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +222 -198
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +34 -213
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +190 -275
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +202 -167
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +263 -226
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +176 -12
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +257 -32
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +13 -5
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +31 -12
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -45
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +13 -12
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +44 -13
- package/dist/index99.js.map +1 -1
- package/package.json +11 -4
- package/dist/index106.js +0 -45
- package/dist/index106.js.map +0 -1
- package/dist/index107.js +0 -5
- package/dist/index107.js.map +0 -1
- package/dist/index108.js +0 -10
- package/dist/index108.js.map +0 -1
- package/dist/index109.js +0 -155
- package/dist/index109.js.map +0 -1
- package/dist/index110.js +0 -33
- package/dist/index110.js.map +0 -1
- package/dist/index111.js +0 -33
- package/dist/index111.js.map +0 -1
- package/dist/index112.js +0 -5
- package/dist/index112.js.map +0 -1
- package/dist/index113.js +0 -75
- package/dist/index113.js.map +0 -1
- package/dist/index114.js +0 -42
- package/dist/index114.js.map +0 -1
- package/dist/index115.js +0 -29
- package/dist/index115.js.map +0 -1
- package/dist/index116.js +0 -24
- package/dist/index116.js.map +0 -1
- package/dist/index117.js +0 -27
- package/dist/index117.js.map +0 -1
- package/dist/index118.js +0 -23
- package/dist/index118.js.map +0 -1
- package/dist/index119.js +0 -103
- package/dist/index119.js.map +0 -1
- package/dist/index120.js +0 -363
- package/dist/index120.js.map +0 -1
- package/dist/index121.js +0 -28
- package/dist/index121.js.map +0 -1
- package/dist/index122.js +0 -76
- package/dist/index122.js.map +0 -1
- package/dist/index123.js +0 -19
- package/dist/index123.js.map +0 -1
- package/dist/index124.js +0 -69
- package/dist/index124.js.map +0 -1
- package/dist/index125.js +0 -147
- package/dist/index125.js.map +0 -1
- package/dist/index126.js +0 -5
- package/dist/index126.js.map +0 -1
- package/dist/index127.js +0 -59
- package/dist/index127.js.map +0 -1
- package/dist/index128.js +0 -5
- package/dist/index128.js.map +0 -1
- package/dist/index129.js +0 -5
- package/dist/index129.js.map +0 -1
- package/dist/index130.js +0 -5
- package/dist/index130.js.map +0 -1
- package/dist/index131.js +0 -5
- package/dist/index131.js.map +0 -1
- package/dist/index132.js +0 -5
- package/dist/index132.js.map +0 -1
- package/dist/index133.js +0 -5
- package/dist/index133.js.map +0 -1
- package/dist/index134.js +0 -5
- package/dist/index134.js.map +0 -1
- package/dist/index135.js +0 -5
- package/dist/index135.js.map +0 -1
- package/dist/index136.js +0 -35
- package/dist/index136.js.map +0 -1
- package/dist/index137.js +0 -5
- package/dist/index137.js.map +0 -1
- package/dist/index138.js +0 -11
- package/dist/index138.js.map +0 -1
- package/dist/index139.js +0 -5
- package/dist/index139.js.map +0 -1
- package/dist/index140.js +0 -5
- package/dist/index140.js.map +0 -1
- package/dist/index141.js +0 -24
- package/dist/index141.js.map +0 -1
- package/dist/index142.js +0 -5
- package/dist/index142.js.map +0 -1
- package/dist/index143.js +0 -27
- package/dist/index143.js.map +0 -1
- package/dist/index144.js +0 -74
- package/dist/index144.js.map +0 -1
- package/dist/index145.js +0 -24
- package/dist/index145.js.map +0 -1
- package/dist/index146.js +0 -37
- package/dist/index146.js.map +0 -1
- package/dist/index147.js +0 -73
- package/dist/index147.js.map +0 -1
- package/dist/index148.js +0 -5
- package/dist/index148.js.map +0 -1
- package/dist/index149.js +0 -25
- package/dist/index149.js.map +0 -1
- package/dist/index150.js +0 -5
- package/dist/index150.js.map +0 -1
- package/dist/index151.js +0 -5
- package/dist/index151.js.map +0 -1
- package/dist/index152.js +0 -5
- package/dist/index152.js.map +0 -1
- package/dist/index153.js +0 -5
- package/dist/index153.js.map +0 -1
- package/dist/index154.js +0 -7
- package/dist/index154.js.map +0 -1
package/dist/index146.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __require as u } from "./index124.js";
|
|
2
|
-
import { __require as h } from "./index113.js";
|
|
3
|
-
var a, n;
|
|
4
|
-
function c() {
|
|
5
|
-
if (n) return a;
|
|
6
|
-
n = 1;
|
|
7
|
-
const o = u(), s = h();
|
|
8
|
-
function r(i) {
|
|
9
|
-
this.mode = o.KANJI, this.data = i;
|
|
10
|
-
}
|
|
11
|
-
return r.getBitsLength = function(e) {
|
|
12
|
-
return e * 13;
|
|
13
|
-
}, r.prototype.getLength = function() {
|
|
14
|
-
return this.data.length;
|
|
15
|
-
}, r.prototype.getBitsLength = function() {
|
|
16
|
-
return r.getBitsLength(this.data.length);
|
|
17
|
-
}, r.prototype.write = function(i) {
|
|
18
|
-
let e;
|
|
19
|
-
for (e = 0; e < this.data.length; e++) {
|
|
20
|
-
let t = s.toSJIS(this.data[e]);
|
|
21
|
-
if (t >= 33088 && t <= 40956)
|
|
22
|
-
t -= 33088;
|
|
23
|
-
else if (t >= 57408 && t <= 60351)
|
|
24
|
-
t -= 49472;
|
|
25
|
-
else
|
|
26
|
-
throw new Error(
|
|
27
|
-
"Invalid SJIS character: " + this.data[e] + `
|
|
28
|
-
Make sure your charset is UTF-8`
|
|
29
|
-
);
|
|
30
|
-
t = (t >>> 8 & 255) * 192 + (t & 255), i.put(t, 13);
|
|
31
|
-
}
|
|
32
|
-
}, a = r, a;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
c as __require
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=index146.js.map
|
package/dist/index146.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index146.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js"],"sourcesContent":["const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n"],"names":["Mode","require$$0","Utils","require$$1","KanjiData","data","length","bitBuffer","i","value","kanjiData"],"mappings":";;;;;;AAAA,QAAMA,IAAOC,EAAA,GACPC,IAAQC,EAAA;AAEd,WAASC,EAAWC,GAAM;AACxB,SAAK,OAAOL,EAAK,OACjB,KAAK,OAAOK;AAAA,EACd;AAEA,SAAAD,EAAU,gBAAgB,SAAwBE,GAAQ;AACxD,WAAOA,IAAS;AAAA,EAClB,GAEAF,EAAU,UAAU,YAAY,WAAsB;AACpD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAU,UAAU,gBAAgB,WAA0B;AAC5D,WAAOA,EAAU,cAAc,KAAK,KAAK,MAAM;AAAA,EACjD,GAEAA,EAAU,UAAU,QAAQ,SAAUG,GAAW;AAC/C,QAAIC;AAKJ,SAAKA,IAAI,GAAGA,IAAI,KAAK,KAAK,QAAQA,KAAK;AACrC,UAAIC,IAAQP,EAAM,OAAO,KAAK,KAAKM,CAAC,CAAC;AAGrC,UAAIC,KAAS,SAAUA,KAAS;AAE9B,QAAAA,KAAS;AAAA,eAGAA,KAAS,SAAUA,KAAS;AAErC,QAAAA,KAAS;AAAA;AAET,cAAM,IAAI;AAAA,UACR,6BAA6B,KAAK,KAAKD,CAAC,IAAI;AAAA;AAAA,QACX;AAKrC,MAAAC,KAAWA,MAAU,IAAK,OAAQ,OAASA,IAAQ,MAGnDF,EAAU,IAAIE,GAAO,EAAE;AAAA,IAC3B;AAAA,EACA,GAEAC,IAAiBN;;","x_google_ignoreList":[0]}
|
package/dist/index147.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { __module as c } from "./index152.js";
|
|
2
|
-
var m;
|
|
3
|
-
function j() {
|
|
4
|
-
return m ? c.exports : (m = 1, (function(y) {
|
|
5
|
-
var u = {
|
|
6
|
-
single_source_shortest_paths: function(o, t, e) {
|
|
7
|
-
var r = {}, i = {};
|
|
8
|
-
i[t] = 0;
|
|
9
|
-
var n = u.PriorityQueue.make();
|
|
10
|
-
n.push(t, 0);
|
|
11
|
-
for (var f, p, s, h, _, d, a, v, l; !n.empty(); ) {
|
|
12
|
-
f = n.pop(), p = f.value, h = f.cost, _ = o[p] || {};
|
|
13
|
-
for (s in _)
|
|
14
|
-
_.hasOwnProperty(s) && (d = _[s], a = h + d, v = i[s], l = typeof i[s] > "u", (l || v > a) && (i[s] = a, n.push(s, a), r[s] = p));
|
|
15
|
-
}
|
|
16
|
-
if (typeof e < "u" && typeof i[e] > "u") {
|
|
17
|
-
var q = ["Could not find a path from ", t, " to ", e, "."].join("");
|
|
18
|
-
throw new Error(q);
|
|
19
|
-
}
|
|
20
|
-
return r;
|
|
21
|
-
},
|
|
22
|
-
extract_shortest_path_from_predecessor_list: function(o, t) {
|
|
23
|
-
for (var e = [], r = t; r; )
|
|
24
|
-
e.push(r), o[r], r = o[r];
|
|
25
|
-
return e.reverse(), e;
|
|
26
|
-
},
|
|
27
|
-
find_path: function(o, t, e) {
|
|
28
|
-
var r = u.single_source_shortest_paths(o, t, e);
|
|
29
|
-
return u.extract_shortest_path_from_predecessor_list(
|
|
30
|
-
r,
|
|
31
|
-
e
|
|
32
|
-
);
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* A very naive priority queue implementation.
|
|
36
|
-
*/
|
|
37
|
-
PriorityQueue: {
|
|
38
|
-
make: function(o) {
|
|
39
|
-
var t = u.PriorityQueue, e = {}, r;
|
|
40
|
-
o = o || {};
|
|
41
|
-
for (r in t)
|
|
42
|
-
t.hasOwnProperty(r) && (e[r] = t[r]);
|
|
43
|
-
return e.queue = [], e.sorter = o.sorter || t.default_sorter, e;
|
|
44
|
-
},
|
|
45
|
-
default_sorter: function(o, t) {
|
|
46
|
-
return o.cost - t.cost;
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* Add a new item to the queue and ensure the highest priority element
|
|
50
|
-
* is at the front of the queue.
|
|
51
|
-
*/
|
|
52
|
-
push: function(o, t) {
|
|
53
|
-
var e = { value: o, cost: t };
|
|
54
|
-
this.queue.push(e), this.queue.sort(this.sorter);
|
|
55
|
-
},
|
|
56
|
-
/**
|
|
57
|
-
* Return the highest priority element in the queue.
|
|
58
|
-
*/
|
|
59
|
-
pop: function() {
|
|
60
|
-
return this.queue.shift();
|
|
61
|
-
},
|
|
62
|
-
empty: function() {
|
|
63
|
-
return this.queue.length === 0;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
y.exports = u;
|
|
68
|
-
})(c), c.exports);
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
j as __require
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=index147.js.map
|
package/dist/index147.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index147.js","sources":["../../../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js"],"sourcesContent":["'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n"],"names":["dijkstra","graph","s","d","predecessors","costs","open","closest","u","v","cost_of_s_to_u","adjacent_nodes","cost_of_e","cost_of_s_to_u_plus_cost_of_e","cost_of_s_to_v","first_visit","msg","nodes","opts","T","t","key","a","b","value","cost","item","module"],"mappings":";;;;AAuBA,QAAIA,IAAW;AAAA,MACb,8BAA8B,SAASC,GAAOC,GAAGC,GAAG;AAGlD,YAAIC,IAAe,CAAA,GAIfC,IAAQ,CAAA;AACZ,QAAAA,EAAMH,CAAC,IAAI;AAMX,YAAII,IAAON,EAAS,cAAc,KAAI;AACtC,QAAAM,EAAK,KAAKJ,GAAG,CAAC;AAUd,iBARIK,GACAC,GAAGC,GACHC,GACAC,GACAC,GACAC,GACAC,GACAC,GACG,CAACT,EAAK,WAAS;AAGpB,UAAAC,IAAUD,EAAK,IAAG,GAClBE,IAAID,EAAQ,OACZG,IAAiBH,EAAQ,MAGzBI,IAAiBV,EAAMO,CAAC,KAAK,CAAA;AAK7B,eAAKC,KAAKE;AACR,YAAIA,EAAe,eAAeF,CAAC,MAEjCG,IAAYD,EAAeF,CAAC,GAK5BI,IAAgCH,IAAiBE,GAMjDE,IAAiBT,EAAMI,CAAC,GACxBM,IAAe,OAAOV,EAAMI,CAAC,IAAM,MAC/BM,KAAeD,IAAiBD,OAClCR,EAAMI,CAAC,IAAII,GACXP,EAAK,KAAKG,GAAGI,CAA6B,GAC1CT,EAAaK,CAAC,IAAID;AAAA,QAI9B;AAEI,YAAI,OAAOL,IAAM,OAAe,OAAOE,EAAMF,CAAC,IAAM,KAAa;AAC/D,cAAIa,IAAM,CAAC,+BAA+Bd,GAAG,QAAQC,GAAG,GAAG,EAAE,KAAK,EAAE;AACpE,gBAAM,IAAI,MAAMa,CAAG;AAAA,QACzB;AAEI,eAAOZ;AAAA,MACX;AAAA,MAEE,6CAA6C,SAASA,GAAcD,GAAG;AAIrE,iBAHIc,IAAQ,CAAA,GACRT,IAAIL,GAEDK;AACL,UAAAS,EAAM,KAAKT,CAAC,GACEJ,EAAaI,CAAC,GAC5BA,IAAIJ,EAAaI,CAAC;AAEpB,eAAAS,EAAM,QAAO,GACNA;AAAA,MACX;AAAA,MAEE,WAAW,SAAShB,GAAOC,GAAGC,GAAG;AAC/B,YAAIC,IAAeJ,EAAS,6BAA6BC,GAAOC,GAAGC,CAAC;AACpE,eAAOH,EAAS;AAAA,UACdI;AAAA,UAAcD;AAAA,QAAC;AAAA,MACrB;AAAA;AAAA;AAAA;AAAA,MAKE,eAAe;AAAA,QACb,MAAM,SAAUe,GAAM;AACpB,cAAIC,IAAInB,EAAS,eACboB,IAAI,CAAA,GACJC;AACJ,UAAAH,IAAOA,KAAQ,CAAA;AACf,eAAKG,KAAOF;AACV,YAAIA,EAAE,eAAeE,CAAG,MACtBD,EAAEC,CAAG,IAAIF,EAAEE,CAAG;AAGlB,iBAAAD,EAAE,QAAQ,CAAA,GACVA,EAAE,SAASF,EAAK,UAAUC,EAAE,gBACrBC;AAAA,QACb;AAAA,QAEI,gBAAgB,SAAUE,GAAGC,GAAG;AAC9B,iBAAOD,EAAE,OAAOC,EAAE;AAAA,QACxB;AAAA;AAAA;AAAA;AAAA;AAAA,QAMI,MAAM,SAAUC,GAAOC,GAAM;AAC3B,cAAIC,IAAO,EAAC,OAAOF,GAAO,MAAMC,EAAI;AACpC,eAAK,MAAM,KAAKC,CAAI,GACpB,KAAK,MAAM,KAAK,KAAK,MAAM;AAAA,QACjC;AAAA;AAAA;AAAA;AAAA,QAKI,KAAK,WAAY;AACf,iBAAO,KAAK,MAAM,MAAK;AAAA,QAC7B;AAAA,QAEI,OAAO,WAAY;AACjB,iBAAO,KAAK,MAAM,WAAW;AAAA,QACnC;AAAA,MACA;AAAA;AAME,IAAAC,YAAiB3B;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index148.js
DELETED
package/dist/index148.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index148.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index149.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __exports as t } from "./index153.js";
|
|
2
|
-
var u;
|
|
3
|
-
function f() {
|
|
4
|
-
if (u) return t;
|
|
5
|
-
u = 1;
|
|
6
|
-
const i = new Uint8Array(512), n = new Uint8Array(256);
|
|
7
|
-
return (function() {
|
|
8
|
-
let r = 1;
|
|
9
|
-
for (let e = 0; e < 255; e++)
|
|
10
|
-
i[e] = r, n[r] = e, r <<= 1, r & 256 && (r ^= 285);
|
|
11
|
-
for (let e = 255; e < 512; e++)
|
|
12
|
-
i[e] = i[e - 255];
|
|
13
|
-
})(), t.log = function(r) {
|
|
14
|
-
if (r < 1) throw new Error("log(" + r + ")");
|
|
15
|
-
return n[r];
|
|
16
|
-
}, t.exp = function(r) {
|
|
17
|
-
return i[r];
|
|
18
|
-
}, t.mul = function(r, e) {
|
|
19
|
-
return r === 0 || e === 0 ? 0 : i[n[r] + n[e]];
|
|
20
|
-
}, t;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
f as __require
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index149.js.map
|
package/dist/index149.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index149.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js"],"sourcesContent":["const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n"],"names":["EXP_TABLE","LOG_TABLE","x","i","galoisField","n","y"],"mappings":";;;;;AAAA,QAAMA,IAAY,IAAI,WAAW,GAAG,GAC9BC,IAAY,IAAI,WAAW,GAAG;AASnC,UAAC,WAAuB;AACvB,QAAIC,IAAI;AACR,aAASC,IAAI,GAAGA,IAAI,KAAKA;AACvB,MAAAH,EAAUG,CAAC,IAAID,GACfD,EAAUC,CAAC,IAAIC,GAEfD,MAAM,GAIFA,IAAI,QACNA,KAAK;AAQT,aAASC,IAAI,KAAKA,IAAI,KAAKA;AACzB,MAAAH,EAAUG,CAAC,IAAIH,EAAUG,IAAI,GAAG;AAAA,EAEpC,GAAC,GAQDC,EAAA,MAAc,SAAcC,GAAG;AAC7B,QAAIA,IAAI,EAAG,OAAM,IAAI,MAAM,SAASA,IAAI,GAAG;AAC3C,WAAOJ,EAAUI,CAAC;AAAA,EACpB,GAQAD,EAAA,MAAc,SAAcC,GAAG;AAC7B,WAAOL,EAAUK,CAAC;AAAA,EACpB,GASAD,EAAA,MAAc,SAAcF,GAAGI,GAAG;AAChC,WAAIJ,MAAM,KAAKI,MAAM,IAAU,IAIxBN,EAAUC,EAAUC,CAAC,IAAID,EAAUK,CAAC,CAAC;AAAA,EAC9C;;","x_google_ignoreList":[0]}
|
package/dist/index150.js
DELETED
package/dist/index150.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index150.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index151.js
DELETED
package/dist/index151.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index151.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index152.js
DELETED
package/dist/index152.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index152.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index153.js
DELETED
package/dist/index153.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index153.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index154.js
DELETED
package/dist/index154.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index154.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|