@webwriter/deep-learning-model 1.0.1 → 1.0.2
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/README.md +3 -3
- package/components/model-editor.ts +22 -7
- package/custom-elements.json +24 -0
- package/dist/widgets/webwriter-feature-engineering.js +1381 -859
- package/dist/widgets/webwriter-model-designing.js +1500 -880
- package/dist/widgets/webwriter-model-evaluation.js +515 -524
- package/dist/widgets/webwriter-model-prediction.js +503 -512
- package/dist/widgets/webwriter-model-training.js +633 -559
- package/lib/layers/index.ts +77 -15
- package/lib/tflib.ts +9 -5
- package/localization/ar.xlf +28 -7
- package/localization/bg.xlf +28 -7
- package/localization/cs.xlf +28 -7
- package/localization/da.xlf +28 -7
- package/localization/de.xlf +28 -7
- package/localization/el.xlf +28 -7
- package/localization/es.xlf +28 -7
- package/localization/et.xlf +28 -7
- package/localization/fi.xlf +28 -7
- package/localization/fr.xlf +28 -7
- package/localization/generated/ar.ts +1 -0
- package/localization/generated/bg.ts +1 -0
- package/localization/generated/cs.ts +1 -0
- package/localization/generated/da.ts +1 -0
- package/localization/generated/de.ts +1 -0
- package/localization/generated/el.ts +1 -0
- package/localization/generated/es.ts +1 -0
- package/localization/generated/et.ts +1 -0
- package/localization/generated/fi.ts +1 -0
- package/localization/generated/fr.ts +1 -0
- package/localization/generated/hu.ts +1 -0
- package/localization/generated/id.ts +1 -0
- package/localization/generated/it.ts +1 -0
- package/localization/generated/ja.ts +1 -0
- package/localization/generated/ko.ts +1 -0
- package/localization/generated/lt.ts +1 -0
- package/localization/generated/lv.ts +1 -0
- package/localization/generated/nb.ts +1 -0
- package/localization/generated/nl.ts +1 -0
- package/localization/generated/pl.ts +1 -0
- package/localization/generated/pt-BR.ts +1 -0
- package/localization/generated/pt-PT.ts +1 -0
- package/localization/generated/ro.ts +1 -0
- package/localization/generated/ru.ts +1 -0
- package/localization/generated/sk.ts +1 -0
- package/localization/generated/sl.ts +1 -0
- package/localization/generated/sv.ts +1 -0
- package/localization/generated/tr.ts +1 -0
- package/localization/generated/uk.ts +1 -0
- package/localization/generated/zh-hans.ts +1 -0
- package/localization/generated/zh-hant.ts +1 -0
- package/localization/hu.xlf +28 -7
- package/localization/id.xlf +28 -7
- package/localization/it.xlf +28 -7
- package/localization/ja.xlf +28 -7
- package/localization/ko.xlf +28 -7
- package/localization/lt.xlf +28 -7
- package/localization/lv.xlf +28 -7
- package/localization/nb.xlf +28 -7
- package/localization/nl.xlf +28 -7
- package/localization/pkg/ar.xliff +1 -1
- package/localization/pkg/bg.xliff +1 -1
- package/localization/pkg/cs.xliff +1 -1
- package/localization/pkg/da.xliff +1 -1
- package/localization/pkg/de.xliff +1 -1
- package/localization/pkg/el.xliff +1 -1
- package/localization/pkg/es.xliff +1 -1
- package/localization/pkg/et.xliff +1 -1
- package/localization/pkg/fi.xliff +1 -1
- package/localization/pkg/fr.xliff +1 -1
- package/localization/pkg/hu.xliff +1 -1
- package/localization/pkg/id.xliff +1 -1
- package/localization/pkg/it.xliff +1 -1
- package/localization/pkg/ja.xliff +1 -1
- package/localization/pkg/ko.xliff +1 -1
- package/localization/pkg/lt.xliff +1 -1
- package/localization/pkg/lv.xliff +1 -1
- package/localization/pkg/nb.xliff +1 -1
- package/localization/pkg/nl.xliff +1 -1
- package/localization/pkg/pl.xliff +1 -1
- package/localization/pkg/pt-BR.xliff +1 -1
- package/localization/pkg/pt-PT.xliff +1 -1
- package/localization/pkg/ro.xliff +1 -1
- package/localization/pkg/ru.xliff +1 -1
- package/localization/pkg/sk.xliff +1 -1
- package/localization/pkg/sl.xliff +1 -1
- package/localization/pkg/sv.xliff +1 -1
- package/localization/pkg/tr.xliff +1 -1
- package/localization/pkg/uk.xliff +1 -1
- package/localization/pkg/zh-hans.xliff +2 -2
- package/localization/pkg/zh-hant.xliff +2 -2
- package/localization/pl.xlf +28 -7
- package/localization/pt-BR.xlf +28 -7
- package/localization/pt-PT.xlf +28 -7
- package/localization/ro.xlf +28 -7
- package/localization/ru.xlf +28 -7
- package/localization/sk.xlf +28 -7
- package/localization/sl.xlf +28 -7
- package/localization/snippets/ar.xliff +1 -1
- package/localization/snippets/bg.xliff +1 -1
- package/localization/snippets/cs.xliff +1 -1
- package/localization/snippets/da.xliff +1 -1
- package/localization/snippets/de.xliff +1 -1
- package/localization/snippets/el.xliff +1 -1
- package/localization/snippets/es.xliff +1 -1
- package/localization/snippets/et.xliff +1 -1
- package/localization/snippets/fi.xliff +1 -1
- package/localization/snippets/fr.xliff +1 -1
- package/localization/snippets/hu.xliff +1 -1
- package/localization/snippets/id.xliff +1 -1
- package/localization/snippets/it.xliff +1 -1
- package/localization/snippets/ja.xliff +1 -1
- package/localization/snippets/ko.xliff +1 -1
- package/localization/snippets/lt.xliff +1 -1
- package/localization/snippets/lv.xliff +1 -1
- package/localization/snippets/nb.xliff +1 -1
- package/localization/snippets/nl.xliff +1 -1
- package/localization/snippets/pl.xliff +1 -1
- package/localization/snippets/pt-BR.xliff +1 -1
- package/localization/snippets/pt-PT.xliff +1 -1
- package/localization/snippets/ro.xliff +1 -1
- package/localization/snippets/ru.xliff +1 -1
- package/localization/snippets/sk.xliff +1 -1
- package/localization/snippets/sl.xliff +1 -1
- package/localization/snippets/sv.xliff +1 -1
- package/localization/snippets/tr.xliff +1 -1
- package/localization/snippets/uk.xliff +1 -1
- package/localization/snippets/zh-hans.xliff +2 -2
- package/localization/snippets/zh-hant.xliff +2 -2
- package/localization/sv.xlf +28 -7
- package/localization/tr.xlf +28 -7
- package/localization/uk.xlf +28 -7
- package/localization/zh-hans.xlf +28 -7
- package/localization/zh-hant.xlf +28 -7
- package/package.json +2 -2
- package/snippets/MNIST.html +1 -1
- package/widgets/webwriter-model-designing.ts +25 -2
- package/widgets/webwriter-model-training.ts +45 -20
|
@@ -638,18 +638,18 @@ function squeezeShape(shape, axis) {
|
|
|
638
638
|
const keptDims = [];
|
|
639
639
|
const isEmptyArray = axis != null && Array.isArray(axis) && axis.length === 0;
|
|
640
640
|
const axes = axis == null || isEmptyArray ? null : parseAxisParam(axis, shape).sort();
|
|
641
|
-
let
|
|
641
|
+
let j2 = 0;
|
|
642
642
|
for (let i10 = 0; i10 < shape.length; ++i10) {
|
|
643
643
|
if (axes != null) {
|
|
644
|
-
if (axes[
|
|
644
|
+
if (axes[j2] === i10 && shape[i10] !== 1) {
|
|
645
645
|
throw new Error(`Can't squeeze axis ${i10} since its dim '${shape[i10]}' is not 1`);
|
|
646
646
|
}
|
|
647
|
-
if ((axes[
|
|
647
|
+
if ((axes[j2] == null || axes[j2] > i10) && shape[i10] === 1) {
|
|
648
648
|
newShape.push(shape[i10]);
|
|
649
649
|
keptDims.push(i10);
|
|
650
650
|
}
|
|
651
|
-
if (axes[
|
|
652
|
-
|
|
651
|
+
if (axes[j2] <= i10) {
|
|
652
|
+
j2++;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
if (shape[i10] !== 1) {
|
|
@@ -2615,7 +2615,7 @@ function getFilteredNodesXToY(tape, xs, y4) {
|
|
|
2615
2615
|
for (const inputName in nodeInputs) {
|
|
2616
2616
|
const input2 = nodeInputs[inputName];
|
|
2617
2617
|
let anyInputFromX = false;
|
|
2618
|
-
for (let
|
|
2618
|
+
for (let j2 = 0; j2 < xs.length; j2++) {
|
|
2619
2619
|
if (tensorsFromX[input2.id]) {
|
|
2620
2620
|
node.outputs.forEach((output) => tensorsFromX[output.id] = true);
|
|
2621
2621
|
anyInputFromX = true;
|
|
@@ -2634,8 +2634,8 @@ function getFilteredNodesXToY(tape, xs, y4) {
|
|
|
2634
2634
|
for (let i10 = tape.length - 1; i10 >= 0; i10--) {
|
|
2635
2635
|
const node = tape[i10];
|
|
2636
2636
|
const nodeInputs = node.inputs;
|
|
2637
|
-
for (let
|
|
2638
|
-
if (tensorsLeadToY[node.outputs[
|
|
2637
|
+
for (let j2 = 0; j2 < node.outputs.length; j2++) {
|
|
2638
|
+
if (tensorsLeadToY[node.outputs[j2].id]) {
|
|
2639
2639
|
for (const inputName in nodeInputs) {
|
|
2640
2640
|
tensorsLeadToY[nodeInputs[inputName].id] = true;
|
|
2641
2641
|
nodesToY[node.id] = true;
|
|
@@ -2732,8 +2732,8 @@ function computeMaxSizePerColumn(vals, shape, dtype, strides) {
|
|
|
2732
2732
|
if (rank > 1) {
|
|
2733
2733
|
for (let row = 0; row < n13 / numCols; row++) {
|
|
2734
2734
|
const offset3 = row * numCols;
|
|
2735
|
-
for (let
|
|
2736
|
-
padPerCol[
|
|
2735
|
+
for (let j2 = 0; j2 < numCols; j2++) {
|
|
2736
|
+
padPerCol[j2] = Math.max(padPerCol[j2], valToString(valuesOrTuples[offset3 + j2], 0, dtype).length);
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
@@ -6863,10 +6863,10 @@ function basicLSTMCell_(forgetBias, lstmKernel, lstmBias, data, c8, h7) {
|
|
|
6863
6863
|
const sliceCols = res.shape[1] / 4;
|
|
6864
6864
|
const sliceSize = [batchSize, sliceCols];
|
|
6865
6865
|
const i10 = slice(res, [0, 0], sliceSize);
|
|
6866
|
-
const
|
|
6866
|
+
const j2 = slice(res, [0, sliceCols], sliceSize);
|
|
6867
6867
|
const f5 = slice(res, [0, sliceCols * 2], sliceSize);
|
|
6868
6868
|
const o15 = slice(res, [0, sliceCols * 3], sliceSize);
|
|
6869
|
-
const newC = add2(mul(sigmoid(i10), tanh2(
|
|
6869
|
+
const newC = add2(mul(sigmoid(i10), tanh2(j2)), mul($c, sigmoid(add2($forgetBias, f5))));
|
|
6870
6870
|
const newH = mul(tanh2(newC), sigmoid(o15));
|
|
6871
6871
|
return [newC, newH];
|
|
6872
6872
|
}
|
|
@@ -10173,22 +10173,22 @@ var require_xorshift7 = __commonJS({
|
|
|
10173
10173
|
return v3;
|
|
10174
10174
|
};
|
|
10175
10175
|
function init(me2, seed2) {
|
|
10176
|
-
var
|
|
10176
|
+
var j2, w3, X = [];
|
|
10177
10177
|
if (seed2 === (seed2 | 0)) {
|
|
10178
10178
|
w3 = X[0] = seed2;
|
|
10179
10179
|
} else {
|
|
10180
10180
|
seed2 = "" + seed2;
|
|
10181
|
-
for (
|
|
10182
|
-
X[
|
|
10181
|
+
for (j2 = 0; j2 < seed2.length; ++j2) {
|
|
10182
|
+
X[j2 & 7] = X[j2 & 7] << 15 ^ seed2.charCodeAt(j2) + X[j2 + 1 & 7] << 13;
|
|
10183
10183
|
}
|
|
10184
10184
|
}
|
|
10185
10185
|
while (X.length < 8) X.push(0);
|
|
10186
|
-
for (
|
|
10187
|
-
if (
|
|
10188
|
-
else w3 = X[
|
|
10186
|
+
for (j2 = 0; j2 < 8 && X[j2] === 0; ++j2) ;
|
|
10187
|
+
if (j2 == 8) w3 = X[7] = -1;
|
|
10188
|
+
else w3 = X[j2];
|
|
10189
10189
|
me2.x = X;
|
|
10190
10190
|
me2.i = 0;
|
|
10191
|
-
for (
|
|
10191
|
+
for (j2 = 256; j2 > 0; --j2) {
|
|
10192
10192
|
me2.next();
|
|
10193
10193
|
}
|
|
10194
10194
|
}
|
|
@@ -10259,7 +10259,7 @@ var require_xor4096 = __commonJS({
|
|
|
10259
10259
|
return v3 + (w3 ^ w3 >>> 16) | 0;
|
|
10260
10260
|
};
|
|
10261
10261
|
function init(me2, seed2) {
|
|
10262
|
-
var t8, v3, i10,
|
|
10262
|
+
var t8, v3, i10, j2, w3, X = [], limit = 128;
|
|
10263
10263
|
if (seed2 === (seed2 | 0)) {
|
|
10264
10264
|
v3 = seed2;
|
|
10265
10265
|
seed2 = null;
|
|
@@ -10268,16 +10268,16 @@ var require_xor4096 = __commonJS({
|
|
|
10268
10268
|
v3 = 0;
|
|
10269
10269
|
limit = Math.max(limit, seed2.length);
|
|
10270
10270
|
}
|
|
10271
|
-
for (i10 = 0,
|
|
10272
|
-
if (seed2) v3 ^= seed2.charCodeAt((
|
|
10273
|
-
if (
|
|
10271
|
+
for (i10 = 0, j2 = -32; j2 < limit; ++j2) {
|
|
10272
|
+
if (seed2) v3 ^= seed2.charCodeAt((j2 + 32) % seed2.length);
|
|
10273
|
+
if (j2 === 0) w3 = v3;
|
|
10274
10274
|
v3 ^= v3 << 10;
|
|
10275
10275
|
v3 ^= v3 >>> 15;
|
|
10276
10276
|
v3 ^= v3 << 4;
|
|
10277
10277
|
v3 ^= v3 >>> 13;
|
|
10278
|
-
if (
|
|
10278
|
+
if (j2 >= 0) {
|
|
10279
10279
|
w3 = w3 + 1640531527 | 0;
|
|
10280
|
-
t8 = X[
|
|
10280
|
+
t8 = X[j2 & 127] ^= v3 + w3;
|
|
10281
10281
|
i10 = 0 == t8 ? i10 + 1 : 0;
|
|
10282
10282
|
}
|
|
10283
10283
|
}
|
|
@@ -10285,7 +10285,7 @@ var require_xor4096 = __commonJS({
|
|
|
10285
10285
|
X[(seed2 && seed2.length || 0) & 127] = -1;
|
|
10286
10286
|
}
|
|
10287
10287
|
i10 = 127;
|
|
10288
|
-
for (
|
|
10288
|
+
for (j2 = 4 * 128; j2 > 0; --j2) {
|
|
10289
10289
|
v3 = X[i10 + 34 & 127];
|
|
10290
10290
|
t8 = X[i10 = i10 + 1 & 127];
|
|
10291
10291
|
v3 ^= v3 << 13;
|
|
@@ -10489,7 +10489,7 @@ var require_seedrandom = __commonJS({
|
|
|
10489
10489
|
);
|
|
10490
10490
|
}
|
|
10491
10491
|
function ARC4(key) {
|
|
10492
|
-
var t8, keylen = key.length, me = this, i10 = 0,
|
|
10492
|
+
var t8, keylen = key.length, me = this, i10 = 0, j2 = me.i = me.j = 0, s7 = me.S = [];
|
|
10493
10493
|
if (!keylen) {
|
|
10494
10494
|
key = [keylen++];
|
|
10495
10495
|
}
|
|
@@ -10497,17 +10497,17 @@ var require_seedrandom = __commonJS({
|
|
|
10497
10497
|
s7[i10] = i10++;
|
|
10498
10498
|
}
|
|
10499
10499
|
for (i10 = 0; i10 < width; i10++) {
|
|
10500
|
-
s7[i10] = s7[
|
|
10501
|
-
s7[
|
|
10500
|
+
s7[i10] = s7[j2 = mask & j2 + key[i10 % keylen] + (t8 = s7[i10])];
|
|
10501
|
+
s7[j2] = t8;
|
|
10502
10502
|
}
|
|
10503
10503
|
(me.g = function(count2) {
|
|
10504
|
-
var t9, r11 = 0, i11 = me.i,
|
|
10504
|
+
var t9, r11 = 0, i11 = me.i, j3 = me.j, s8 = me.S;
|
|
10505
10505
|
while (count2--) {
|
|
10506
10506
|
t9 = s8[i11 = mask & i11 + 1];
|
|
10507
|
-
r11 = r11 * width + s8[mask & (s8[i11] = s8[
|
|
10507
|
+
r11 = r11 * width + s8[mask & (s8[i11] = s8[j3 = mask & j3 + t9]) + (s8[j3] = t9)];
|
|
10508
10508
|
}
|
|
10509
10509
|
me.i = i11;
|
|
10510
|
-
me.j =
|
|
10510
|
+
me.j = j3;
|
|
10511
10511
|
return r11;
|
|
10512
10512
|
})(width);
|
|
10513
10513
|
}
|
|
@@ -10531,9 +10531,9 @@ var require_seedrandom = __commonJS({
|
|
|
10531
10531
|
return result.length ? result : typ == "string" ? obj : obj + "\0";
|
|
10532
10532
|
}
|
|
10533
10533
|
function mixkey(seed, key) {
|
|
10534
|
-
var stringseed = seed + "", smear,
|
|
10535
|
-
while (
|
|
10536
|
-
key[mask &
|
|
10534
|
+
var stringseed = seed + "", smear, j2 = 0;
|
|
10535
|
+
while (j2 < stringseed.length) {
|
|
10536
|
+
key[mask & j2] = mask & (smear ^= key[mask & j2] * 19) + stringseed.charCodeAt(j2++);
|
|
10537
10537
|
}
|
|
10538
10538
|
return tostring(key);
|
|
10539
10539
|
}
|
|
@@ -13357,8 +13357,8 @@ function nonMaxSuppressionImpl_(boxes, scores, maxOutputSize, iouThreshold, scor
|
|
|
13357
13357
|
break;
|
|
13358
13358
|
}
|
|
13359
13359
|
let ignoreCandidate = false;
|
|
13360
|
-
for (let
|
|
13361
|
-
const iou = intersectionOverUnion(boxes, boxIndex, selectedIndices[
|
|
13360
|
+
for (let j2 = selectedIndices.length - 1; j2 >= suppressBeginIndex; --j2) {
|
|
13361
|
+
const iou = intersectionOverUnion(boxes, boxIndex, selectedIndices[j2]);
|
|
13362
13362
|
if (iou >= iouThreshold) {
|
|
13363
13363
|
ignoreCandidate = true;
|
|
13364
13364
|
break;
|
|
@@ -13393,9 +13393,9 @@ function nonMaxSuppressionImpl_(boxes, scores, maxOutputSize, iouThreshold, scor
|
|
|
13393
13393
|
}
|
|
13394
13394
|
return result;
|
|
13395
13395
|
}
|
|
13396
|
-
function intersectionOverUnion(boxes, i10,
|
|
13396
|
+
function intersectionOverUnion(boxes, i10, j2) {
|
|
13397
13397
|
const iCoord = boxes.subarray(i10 * 4, i10 * 4 + 4);
|
|
13398
|
-
const jCoord = boxes.subarray(
|
|
13398
|
+
const jCoord = boxes.subarray(j2 * 4, j2 * 4 + 4);
|
|
13399
13399
|
const yminI = Math.min(iCoord[0], iCoord[2]);
|
|
13400
13400
|
const xminI = Math.min(iCoord[1], iCoord[3]);
|
|
13401
13401
|
const ymaxI = Math.max(iCoord[0], iCoord[2]);
|
|
@@ -13800,8 +13800,8 @@ function bandPart_(a6, numLower, numUpper) {
|
|
|
13800
13800
|
$numUpper = where(less(numUpper, 0), N3, minimum(numUpper, N3));
|
|
13801
13801
|
}
|
|
13802
13802
|
const i10 = reshape(range(0, M3, 1, "int32"), [-1, 1]);
|
|
13803
|
-
const
|
|
13804
|
-
const ij = sub(i10,
|
|
13803
|
+
const j2 = range(0, N3, 1, "int32");
|
|
13804
|
+
const ij = sub(i10, j2);
|
|
13805
13805
|
const inBand = logicalAnd(lessEqual(ij, $numLower), greaterEqual(ij, neg($numUpper)));
|
|
13806
13806
|
const zero = zeros([M3, N3], $a.dtype);
|
|
13807
13807
|
return reshape(stack(unstack(reshape($a, [-1, M3, N3])).map((mat) => where(inBand, mat, zero))), shape);
|
|
@@ -13850,8 +13850,8 @@ function gramSchmidt_(xs) {
|
|
|
13850
13850
|
ys.push(ENGINE.tidy(() => {
|
|
13851
13851
|
let x3 = xs1d[i10];
|
|
13852
13852
|
if (i10 > 0) {
|
|
13853
|
-
for (let
|
|
13854
|
-
const proj = mul(sum2(mul(ys[
|
|
13853
|
+
for (let j2 = 0; j2 < i10; ++j2) {
|
|
13854
|
+
const proj = mul(sum2(mul(ys[j2], x3)), ys[j2]);
|
|
13855
13855
|
x3 = sub(x3, proj);
|
|
13856
13856
|
}
|
|
13857
13857
|
}
|
|
@@ -13916,14 +13916,14 @@ function qr2d(x3, fullMatrices = false) {
|
|
|
13916
13916
|
const one2D = tensor2d([[1]], [1, 1]);
|
|
13917
13917
|
let w3 = clone(one2D);
|
|
13918
13918
|
const iters = m5 >= n13 ? n13 : m5;
|
|
13919
|
-
for (let
|
|
13919
|
+
for (let j2 = 0; j2 < iters; ++j2) {
|
|
13920
13920
|
const rTemp = r11;
|
|
13921
13921
|
const wTemp = w3;
|
|
13922
13922
|
const qTemp = q;
|
|
13923
13923
|
[w3, r11, q] = ENGINE.tidy(() => {
|
|
13924
|
-
const rjEnd1 = slice(r11, [
|
|
13924
|
+
const rjEnd1 = slice(r11, [j2, j2], [m5 - j2, 1]);
|
|
13925
13925
|
const normX = norm(rjEnd1);
|
|
13926
|
-
const rjj = slice(r11, [
|
|
13926
|
+
const rjj = slice(r11, [j2, j2], [1, 1]);
|
|
13927
13927
|
const s7 = where(greater(rjj, 0), tensor2d([[-1]]), tensor2d([[1]]));
|
|
13928
13928
|
const u1 = sub(rjj, mul(s7, normX));
|
|
13929
13929
|
const wPre = div(rjEnd1, u1);
|
|
@@ -13936,22 +13936,22 @@ function qr2d(x3, fullMatrices = false) {
|
|
|
13936
13936
|
], 0);
|
|
13937
13937
|
}
|
|
13938
13938
|
const tau = neg(div(matMul(s7, u1), normX));
|
|
13939
|
-
const rjEndAll = slice(r11, [
|
|
13939
|
+
const rjEndAll = slice(r11, [j2, 0], [m5 - j2, n13]);
|
|
13940
13940
|
const tauTimesW = mul(tau, w3);
|
|
13941
13941
|
const wT = transpose(w3);
|
|
13942
|
-
if (
|
|
13942
|
+
if (j2 === 0) {
|
|
13943
13943
|
r11 = sub(rjEndAll, matMul(tauTimesW, matMul(wT, rjEndAll)));
|
|
13944
13944
|
} else {
|
|
13945
13945
|
const rTimesTau = sub(rjEndAll, matMul(tauTimesW, matMul(wT, rjEndAll)));
|
|
13946
|
-
r11 = concat([slice(r11, [0, 0], [
|
|
13946
|
+
r11 = concat([slice(r11, [0, 0], [j2, n13]), rTimesTau], 0);
|
|
13947
13947
|
}
|
|
13948
13948
|
const tawTimesWT = transpose(tauTimesW);
|
|
13949
|
-
const qAllJEnd = slice(q, [0,
|
|
13950
|
-
if (
|
|
13949
|
+
const qAllJEnd = slice(q, [0, j2], [m5, q.shape[1] - j2]);
|
|
13950
|
+
if (j2 === 0) {
|
|
13951
13951
|
q = sub(qAllJEnd, matMul(matMul(qAllJEnd, w3), tawTimesWT));
|
|
13952
13952
|
} else {
|
|
13953
13953
|
const qTimesTau = sub(qAllJEnd, matMul(matMul(qAllJEnd, w3), tawTimesWT));
|
|
13954
|
-
q = concat([slice(q, [0, 0], [m5,
|
|
13954
|
+
q = concat([slice(q, [0, 0], [m5, j2]), qTimesTau], 1);
|
|
13955
13955
|
}
|
|
13956
13956
|
return [w3, r11, q];
|
|
13957
13957
|
});
|
|
@@ -16674,11 +16674,11 @@ async function toPixels(img, canvas) {
|
|
|
16674
16674
|
rgba[d4] = value * multiplier;
|
|
16675
16675
|
}
|
|
16676
16676
|
}
|
|
16677
|
-
const
|
|
16678
|
-
bytes[
|
|
16679
|
-
bytes[
|
|
16680
|
-
bytes[
|
|
16681
|
-
bytes[
|
|
16677
|
+
const j2 = i10 * 4;
|
|
16678
|
+
bytes[j2 + 0] = Math.round(rgba[0]);
|
|
16679
|
+
bytes[j2 + 1] = Math.round(rgba[1]);
|
|
16680
|
+
bytes[j2 + 2] = Math.round(rgba[2]);
|
|
16681
|
+
bytes[j2 + 3] = Math.round(rgba[3]);
|
|
16682
16682
|
}
|
|
16683
16683
|
if (canvas != null) {
|
|
16684
16684
|
if (!hasToPixelsWarned) {
|
|
@@ -17801,8 +17801,8 @@ function decodeEinsumEquation(equation, numTensors) {
|
|
|
17801
17801
|
throw new Error(`Found duplicate axes in input component ${inputTerms[i10]}. Support for duplicate axes in input is not implemented yet.`);
|
|
17802
17802
|
}
|
|
17803
17803
|
idDims[i10] = [];
|
|
17804
|
-
for (let
|
|
17805
|
-
idDims[i10].push(allDims.indexOf(inputTerms[i10][
|
|
17804
|
+
for (let j2 = 0; j2 < inputTerms[i10].length; ++j2) {
|
|
17805
|
+
idDims[i10].push(allDims.indexOf(inputTerms[i10][j2]));
|
|
17806
17806
|
}
|
|
17807
17807
|
}
|
|
17808
17808
|
const numDims = allDims.length;
|
|
@@ -17832,11 +17832,11 @@ function checkEinsumDimSizes(nDims, idDims, tensors) {
|
|
|
17832
17832
|
const dimSizes = new Array(nDims);
|
|
17833
17833
|
for (let i10 = 0; i10 < tensors.length; ++i10) {
|
|
17834
17834
|
const shape = tensors[i10].shape;
|
|
17835
|
-
for (let
|
|
17836
|
-
if (dimSizes[idDims[i10][
|
|
17837
|
-
dimSizes[idDims[i10][
|
|
17835
|
+
for (let j2 = 0; j2 < idDims[i10].length; ++j2) {
|
|
17836
|
+
if (dimSizes[idDims[i10][j2]] === void 0) {
|
|
17837
|
+
dimSizes[idDims[i10][j2]] = shape[j2];
|
|
17838
17838
|
} else {
|
|
17839
|
-
assert(dimSizes[idDims[i10][
|
|
17839
|
+
assert(dimSizes[idDims[i10][j2]] === shape[j2], () => `Expected dimension ${dimSizes[idDims[i10][j2]]} at axis ${j2} of input shaped ${JSON.stringify(shape)}, but got dimension ${shape[j2]}`);
|
|
17840
17840
|
}
|
|
17841
17841
|
}
|
|
17842
17842
|
}
|
|
@@ -19323,8 +19323,8 @@ function arrayRange(start, stop) {
|
|
|
19323
19323
|
function arrayConcat(arrays) {
|
|
19324
19324
|
const result = [];
|
|
19325
19325
|
for (let i10 = 0; i10 < arrays.length; ++i10) {
|
|
19326
|
-
for (let
|
|
19327
|
-
result.push(arrays[i10][
|
|
19326
|
+
for (let j2 = 0; j2 < arrays[i10].length; ++j2) {
|
|
19327
|
+
result.push(arrays[i10][j2]);
|
|
19328
19328
|
}
|
|
19329
19329
|
}
|
|
19330
19330
|
return result;
|
|
@@ -20839,8 +20839,8 @@ var init_Tile_grad = __esm({
|
|
|
20839
20839
|
}
|
|
20840
20840
|
} else if (x3.rank === 2) {
|
|
20841
20841
|
for (let i10 = 0; i10 < reps[0]; ++i10) {
|
|
20842
|
-
for (let
|
|
20843
|
-
xGrad = add2(xGrad, slice(dy, [i10 * x3.shape[0],
|
|
20842
|
+
for (let j2 = 0; j2 < reps[1]; ++j2) {
|
|
20843
|
+
xGrad = add2(xGrad, slice(dy, [i10 * x3.shape[0], j2 * x3.shape[1]], [
|
|
20844
20844
|
x3.shape[0],
|
|
20845
20845
|
x3.shape[1]
|
|
20846
20846
|
]));
|
|
@@ -20848,20 +20848,20 @@ var init_Tile_grad = __esm({
|
|
|
20848
20848
|
}
|
|
20849
20849
|
} else if (x3.rank === 3) {
|
|
20850
20850
|
for (let i10 = 0; i10 < reps[0]; ++i10) {
|
|
20851
|
-
for (let
|
|
20851
|
+
for (let j2 = 0; j2 < reps[1]; ++j2) {
|
|
20852
20852
|
for (let k3 = 0; k3 < reps[2]; ++k3) {
|
|
20853
|
-
xGrad = add2(xGrad, slice(dy, [i10 * x3.shape[0],
|
|
20853
|
+
xGrad = add2(xGrad, slice(dy, [i10 * x3.shape[0], j2 * x3.shape[1], k3 * x3.shape[2]], [x3.shape[0], x3.shape[1], x3.shape[2]]));
|
|
20854
20854
|
}
|
|
20855
20855
|
}
|
|
20856
20856
|
}
|
|
20857
20857
|
} else if (x3.rank === 4) {
|
|
20858
20858
|
for (let i10 = 0; i10 < reps[0]; ++i10) {
|
|
20859
|
-
for (let
|
|
20859
|
+
for (let j2 = 0; j2 < reps[1]; ++j2) {
|
|
20860
20860
|
for (let k3 = 0; k3 < reps[2]; ++k3) {
|
|
20861
20861
|
for (let l7 = 0; l7 < reps[3]; ++l7) {
|
|
20862
20862
|
xGrad = add2(xGrad, slice(dy, [
|
|
20863
20863
|
i10 * x3.shape[0],
|
|
20864
|
-
|
|
20864
|
+
j2 * x3.shape[1],
|
|
20865
20865
|
k3 * x3.shape[2],
|
|
20866
20866
|
l7 * x3.shape[3]
|
|
20867
20867
|
], [x3.shape[0], x3.shape[1], x3.shape[2], x3.shape[3]]));
|
|
@@ -27711,10 +27711,10 @@ var init_container = __esm({
|
|
|
27711
27711
|
continue;
|
|
27712
27712
|
}
|
|
27713
27713
|
const inputShapes2 = [];
|
|
27714
|
-
for (let
|
|
27715
|
-
const inboundLayer = node.inboundLayers[
|
|
27716
|
-
const nodeIndex2 = node.nodeIndices[
|
|
27717
|
-
const tensorIndex = node.tensorIndices[
|
|
27714
|
+
for (let j2 = 0; j2 < node.inboundLayers.length; j2++) {
|
|
27715
|
+
const inboundLayer = node.inboundLayers[j2];
|
|
27716
|
+
const nodeIndex2 = node.nodeIndices[j2];
|
|
27717
|
+
const tensorIndex = node.tensorIndices[j2];
|
|
27718
27718
|
const shapeKey = `${inboundLayer.name}_${nodeIndex2}_${tensorIndex}`;
|
|
27719
27719
|
const inputShape2 = layersToOutputShapes[shapeKey];
|
|
27720
27720
|
inputShapes2.push(inputShape2);
|
|
@@ -27722,9 +27722,9 @@ var init_container = __esm({
|
|
|
27722
27722
|
const outputShape = layer.computeOutputShape(singletonOrArray(inputShapes2));
|
|
27723
27723
|
const outputShapes2 = normalizeShapeList(outputShape);
|
|
27724
27724
|
const nodeIndex = layer.inboundNodes.indexOf(node);
|
|
27725
|
-
for (let
|
|
27726
|
-
const shapeKey = `${layer.name}_${nodeIndex}_${
|
|
27727
|
-
layersToOutputShapes[shapeKey] = outputShapes2[
|
|
27725
|
+
for (let j2 = 0; j2 < outputShapes2.length; j2++) {
|
|
27726
|
+
const shapeKey = `${layer.name}_${nodeIndex}_${j2}`;
|
|
27727
|
+
layersToOutputShapes[shapeKey] = outputShapes2[j2];
|
|
27728
27728
|
}
|
|
27729
27729
|
}
|
|
27730
27730
|
}
|
|
@@ -28626,12 +28626,12 @@ function standardizeInputData(data, names2, shapes, checkBatchAxis = true, excep
|
|
|
28626
28626
|
if (array2.shape.length !== shapes[i10].length) {
|
|
28627
28627
|
throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i10]} to have ${shapes[i10].length} dimension(s). but got array with shape ${array2.shape}`);
|
|
28628
28628
|
}
|
|
28629
|
-
for (let
|
|
28630
|
-
if (
|
|
28629
|
+
for (let j2 = 0; j2 < shapes[i10].length; ++j2) {
|
|
28630
|
+
if (j2 === 0 && !checkBatchAxis) {
|
|
28631
28631
|
continue;
|
|
28632
28632
|
}
|
|
28633
|
-
const dim = array2.shape[
|
|
28634
|
-
const refDim = shapes[i10][
|
|
28633
|
+
const dim = array2.shape[j2];
|
|
28634
|
+
const refDim = shapes[i10][j2];
|
|
28635
28635
|
if (refDim != null && refDim >= 0 && dim !== refDim) {
|
|
28636
28636
|
throw new ValueError(`${exceptionPrefix} expected a batch of elements where each example has shape [${shapes[i10].slice(1, shapes[i10].length)}] (i.e.,tensor shape [*,${shapes[i10].slice(1, shapes[i10].length)}]) but the ${exceptionPrefix} received an input with ${array2.shape[0]} examples, each with shape [${array2.shape.slice(1, array2.shape.length)}] (tensor shape [${array2.shape}])`);
|
|
28637
28637
|
}
|
|
@@ -28676,9 +28676,9 @@ function checkLossAndTargetCompatibility(targets, lossFns, outputShapes) {
|
|
|
28676
28676
|
if (keyLosses.indexOf(loss) !== -1) {
|
|
28677
28677
|
const slicedYShape = y4.shape.slice(1);
|
|
28678
28678
|
const slicedShape = shape.slice(1);
|
|
28679
|
-
for (let
|
|
28680
|
-
const targetDim = slicedYShape[
|
|
28681
|
-
const outDim = slicedShape[
|
|
28679
|
+
for (let j2 = 0; j2 < slicedYShape.length; ++j2) {
|
|
28680
|
+
const targetDim = slicedYShape[j2];
|
|
28681
|
+
const outDim = slicedShape[j2];
|
|
28682
28682
|
if (outDim != null && targetDim !== outDim) {
|
|
28683
28683
|
throw new ValueError(`A target Tensor with shape ${y4.shape} was passed for an output of shape ${shape}, while using a loss function that expects targets to have the same shape as the output.`);
|
|
28684
28684
|
}
|
|
@@ -28708,12 +28708,12 @@ function checkInputData(data, names2, shapes, checkBatchAxis = true, exceptionPr
|
|
|
28708
28708
|
if (array2.shape.length !== shapes[i10].length) {
|
|
28709
28709
|
throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i10]} to have ${shapes[i10].length} dimension(s), but got array with shape ${JSON.stringify(array2.shape)}`);
|
|
28710
28710
|
}
|
|
28711
|
-
for (let
|
|
28712
|
-
if (
|
|
28711
|
+
for (let j2 = 0; j2 < shapes[i10].length; ++j2) {
|
|
28712
|
+
if (j2 === 0 && !checkBatchAxis) {
|
|
28713
28713
|
continue;
|
|
28714
28714
|
}
|
|
28715
|
-
const dim = array2.shape[
|
|
28716
|
-
const refDim = shapes[i10][
|
|
28715
|
+
const dim = array2.shape[j2];
|
|
28716
|
+
const refDim = shapes[i10][j2];
|
|
28717
28717
|
if (refDim != null) {
|
|
28718
28718
|
if (refDim !== dim) {
|
|
28719
28719
|
throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i10]} to have shape ${JSON.stringify(shapes[i10])} but got array with shape ${JSON.stringify(array2.shape)}.`);
|
|
@@ -34296,15 +34296,15 @@ var init_merge = __esm({
|
|
|
34296
34296
|
const outputShape = shape1.slice(0, shape1.length - shape2.length);
|
|
34297
34297
|
for (let k3 = 0; k3 < shape2.length; ++k3) {
|
|
34298
34298
|
const i10 = shape1[shape1.length - shape2.length + k3];
|
|
34299
|
-
const
|
|
34300
|
-
if (i10 == null ||
|
|
34299
|
+
const j2 = shape2[k3];
|
|
34300
|
+
if (i10 == null || j2 == null || i10 < 0 || j2 < 0) {
|
|
34301
34301
|
outputShape.push(null);
|
|
34302
34302
|
} else if (i10 === 1) {
|
|
34303
|
-
outputShape.push(
|
|
34304
|
-
} else if (
|
|
34303
|
+
outputShape.push(j2);
|
|
34304
|
+
} else if (j2 === 1) {
|
|
34305
34305
|
outputShape.push(i10);
|
|
34306
34306
|
} else {
|
|
34307
|
-
if (i10 !==
|
|
34307
|
+
if (i10 !== j2) {
|
|
34308
34308
|
throw new ValueError("Operands could not be broadcast together with shapes " + JSON.stringify(shape1) + " " + JSON.stringify(shape2));
|
|
34309
34309
|
}
|
|
34310
34310
|
outputShape.push(i10);
|
|
@@ -51201,8 +51201,8 @@ function bincountReduceImpl(xBuf, weightsBuf, size3, binaryOutput = false) {
|
|
|
51201
51201
|
const numCols = xBuf.shape[1];
|
|
51202
51202
|
const outBuf = buffer([numRows, size3], weightsBuf.dtype);
|
|
51203
51203
|
for (let i10 = 0; i10 < numRows; i10++) {
|
|
51204
|
-
for (let
|
|
51205
|
-
const value = xBuf.get(i10,
|
|
51204
|
+
for (let j2 = 0; j2 < numCols; j2++) {
|
|
51205
|
+
const value = xBuf.get(i10, j2);
|
|
51206
51206
|
if (value < 0) {
|
|
51207
51207
|
throw new Error("Input x must be non-negative!");
|
|
51208
51208
|
}
|
|
@@ -51213,7 +51213,7 @@ function bincountReduceImpl(xBuf, weightsBuf, size3, binaryOutput = false) {
|
|
|
51213
51213
|
outBuf.set(1, i10, value);
|
|
51214
51214
|
} else {
|
|
51215
51215
|
if (weightsBuf.size > 0) {
|
|
51216
|
-
outBuf.set(outBuf.get(i10, value) + weightsBuf.get(i10,
|
|
51216
|
+
outBuf.set(outBuf.get(i10, value) + weightsBuf.get(i10, j2), i10, value);
|
|
51217
51217
|
} else {
|
|
51218
51218
|
outBuf.set(outBuf.get(i10, value) + 1, i10, value);
|
|
51219
51219
|
}
|
|
@@ -51434,9 +51434,9 @@ function gatherNdImpl(indicesData, paramsBuf, dtype, numSlices, sliceRank, slice
|
|
|
51434
51434
|
for (let i10 = 0; i10 < numSlices; i10++) {
|
|
51435
51435
|
const index = [];
|
|
51436
51436
|
let flattenIndex = 0;
|
|
51437
|
-
for (let
|
|
51438
|
-
const dim = indicesData[i10 * sliceRank +
|
|
51439
|
-
flattenIndex += dim * strides[
|
|
51437
|
+
for (let j2 = 0; j2 < sliceRank; j2++) {
|
|
51438
|
+
const dim = indicesData[i10 * sliceRank + j2];
|
|
51439
|
+
flattenIndex += dim * strides[j2];
|
|
51440
51440
|
index.push(dim);
|
|
51441
51441
|
}
|
|
51442
51442
|
if (flattenIndex < 0 || flattenIndex >= paramsSize / sliceSize) {
|
|
@@ -51584,8 +51584,8 @@ function maxImpl(aVals, reduceSize, outShape, dtype) {
|
|
|
51584
51584
|
for (let i10 = 0; i10 < vals.length; ++i10) {
|
|
51585
51585
|
const offset3 = i10 * reduceSize;
|
|
51586
51586
|
let max6 = aVals[offset3];
|
|
51587
|
-
for (let
|
|
51588
|
-
const value = aVals[offset3 +
|
|
51587
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
51588
|
+
const value = aVals[offset3 + j2];
|
|
51589
51589
|
if (Number.isNaN(value) || value > max6) {
|
|
51590
51590
|
max6 = value;
|
|
51591
51591
|
}
|
|
@@ -51764,8 +51764,8 @@ function prodImpl(xShape, xDtype, xVals, reductionAxes) {
|
|
|
51764
51764
|
for (let i10 = 0; i10 < outVals.length; ++i10) {
|
|
51765
51765
|
const offset3 = i10 * reduceSize;
|
|
51766
51766
|
let prod4 = 1;
|
|
51767
|
-
for (let
|
|
51768
|
-
prod4 *= xVals[offset3 +
|
|
51767
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
51768
|
+
prod4 *= xVals[offset3 + j2];
|
|
51769
51769
|
}
|
|
51770
51770
|
outVals[i10] = prod4;
|
|
51771
51771
|
}
|
|
@@ -51862,8 +51862,8 @@ function makeSplits(indices, indicesShape, paramsNestedSplits, numParamsDenseVal
|
|
|
51862
51862
|
if (outDim >= 0) {
|
|
51863
51863
|
const outSplitsOutDim = outSplits[outDim];
|
|
51864
51864
|
const delta = outSplitsOutDim[outSplitsOutDim.length - 1] - splits[start];
|
|
51865
|
-
for (let
|
|
51866
|
-
outSplits[outDim].push(splits[
|
|
51865
|
+
for (let j2 = start; j2 < limit; ++j2) {
|
|
51866
|
+
outSplits[outDim].push(splits[j2 + 1] + delta);
|
|
51867
51867
|
}
|
|
51868
51868
|
}
|
|
51869
51869
|
start = splits[start];
|
|
@@ -51882,7 +51882,7 @@ function getSplits(outSplits) {
|
|
|
51882
51882
|
const numSplits = outSplits[i10].length;
|
|
51883
51883
|
const splits = util_exports.getArrayFromDType("int32", numSplits);
|
|
51884
51884
|
splitsOut.push(splits);
|
|
51885
|
-
outSplits[i10].forEach((value,
|
|
51885
|
+
outSplits[i10].forEach((value, j2) => splits[j2] = value);
|
|
51886
51886
|
}
|
|
51887
51887
|
return splitsOut;
|
|
51888
51888
|
}
|
|
@@ -51902,8 +51902,8 @@ function writeValueSlices(paramsDenseValues, paramsDenseValuesShape, valueSlices
|
|
|
51902
51902
|
let outPos = 0;
|
|
51903
51903
|
for (const slice4 of valueSlices) {
|
|
51904
51904
|
for (let i10 = slice4[0]; i10 < slice4[1]; ++i10) {
|
|
51905
|
-
for (let
|
|
51906
|
-
values[outPos * valuesM +
|
|
51905
|
+
for (let j2 = 0; j2 < valueSize; ++j2) {
|
|
51906
|
+
values[outPos * valuesM + j2] = paramsDenseValues[i10 * denseM + j2];
|
|
51907
51907
|
}
|
|
51908
51908
|
++outPos;
|
|
51909
51909
|
}
|
|
@@ -52175,11 +52175,11 @@ var init_RaggedTensorToTensor_impl = __esm({
|
|
|
52175
52175
|
if (parentOutputIndexCurrent === -1) {
|
|
52176
52176
|
realLength = 0;
|
|
52177
52177
|
}
|
|
52178
|
-
for (let
|
|
52178
|
+
for (let j2 = 0; j2 < realLength; ++j2) {
|
|
52179
52179
|
result.push(parentOutputIndexCurrent);
|
|
52180
52180
|
parentOutputIndexCurrent += outputIndexMultiplier;
|
|
52181
52181
|
}
|
|
52182
|
-
for (let
|
|
52182
|
+
for (let j2 = 0; j2 < rowLength - realLength; ++j2) {
|
|
52183
52183
|
result.push(-1);
|
|
52184
52184
|
}
|
|
52185
52185
|
}
|
|
@@ -52430,10 +52430,10 @@ function scatterImpl(indices, updates, shape, outputSize, sliceSize, numUpdates,
|
|
|
52430
52430
|
for (let i10 = 0; i10 < numUpdates; i10++) {
|
|
52431
52431
|
const index = [];
|
|
52432
52432
|
let flattenIndex = 0;
|
|
52433
|
-
for (let
|
|
52434
|
-
const dim = indicesData[i10 * sliceRank +
|
|
52433
|
+
for (let j2 = 0; j2 < sliceRank; j2++) {
|
|
52434
|
+
const dim = indicesData[i10 * sliceRank + j2];
|
|
52435
52435
|
index.push(dim);
|
|
52436
|
-
flattenIndex += dim * strides[
|
|
52436
|
+
flattenIndex += dim * strides[j2];
|
|
52437
52437
|
}
|
|
52438
52438
|
if (flattenIndex < 0 || flattenIndex >= outputSize / sliceSize) {
|
|
52439
52439
|
throw new Error(`Invalid indices: ${index} does not index into ${shape}`);
|
|
@@ -52488,7 +52488,7 @@ function sliceImpl(vals, begin, size3, shape, dtype) {
|
|
|
52488
52488
|
const outBuf = buffer(size3, dtype);
|
|
52489
52489
|
for (let i10 = 0; i10 < outBuf.size; ++i10) {
|
|
52490
52490
|
const outLoc = outBuf.indexToLoc(i10);
|
|
52491
|
-
const inLoc = outLoc.map((idx,
|
|
52491
|
+
const inLoc = outLoc.map((idx, j2) => idx + begin[j2]);
|
|
52492
52492
|
outBuf.set(inBuf.get(...inLoc), ...outLoc);
|
|
52493
52493
|
}
|
|
52494
52494
|
if (dtype === "string") {
|
|
@@ -52589,8 +52589,8 @@ function sparseFillEmptyRowsImpl(indices, indicesShape, indicesDType, values, va
|
|
|
52589
52589
|
const offset3 = filledCount[row];
|
|
52590
52590
|
const outputI = (row === 0 ? 0 : csrOffset[row - 1]) + offset3;
|
|
52591
52591
|
filledCount[row]++;
|
|
52592
|
-
for (let
|
|
52593
|
-
outputIndices[outputI * rank +
|
|
52592
|
+
for (let j2 = 0; j2 < rank; ++j2) {
|
|
52593
|
+
outputIndices[outputI * rank + j2] = indices[i10 * rank + j2];
|
|
52594
52594
|
}
|
|
52595
52595
|
outputValues[outputI] = values[i10];
|
|
52596
52596
|
reverseIndexMap[i10] = outputI;
|
|
@@ -52677,12 +52677,12 @@ function sparseReshapeImpl(inputIndices, inputIndicesShape, inputDType, inputSha
|
|
|
52677
52677
|
const newIndices = util_exports.getArrayFromDType(inputDType, nnz * outputRank);
|
|
52678
52678
|
for (let i10 = 0; i10 < nnz; ++i10) {
|
|
52679
52679
|
let id3 = 0;
|
|
52680
|
-
for (let
|
|
52681
|
-
id3 += inputIndices[i10 * inputRank +
|
|
52680
|
+
for (let j2 = 0; j2 < inputRank; ++j2) {
|
|
52681
|
+
id3 += inputIndices[i10 * inputRank + j2] * inputStrides[j2];
|
|
52682
52682
|
}
|
|
52683
|
-
for (let
|
|
52684
|
-
newIndices[i10 * outputRank +
|
|
52685
|
-
id3 %= outputStrides[
|
|
52683
|
+
for (let j2 = 0; j2 < outputRank; ++j2) {
|
|
52684
|
+
newIndices[i10 * outputRank + j2] = Math.trunc(id3 / outputStrides[j2]);
|
|
52685
|
+
id3 %= outputStrides[j2];
|
|
52686
52686
|
}
|
|
52687
52687
|
}
|
|
52688
52688
|
return [newIndices, [nnz, outputRank], outputShape];
|
|
@@ -52742,13 +52742,13 @@ function sparseSegmentReductionImpl(input2, inputShape, inputDType, indices, seg
|
|
|
52742
52742
|
if (index < 0 || index >= inputFlat[0]) {
|
|
52743
52743
|
throw new Error(backend_util_exports.getSparseSegmentReductionIndicesOutOfRangeErrorMessage(i10, indices[i10], inputFlat[0]));
|
|
52744
52744
|
}
|
|
52745
|
-
for (let
|
|
52746
|
-
output[outIndex * numCol +
|
|
52745
|
+
for (let j2 = 0; j2 < numCol; j2++) {
|
|
52746
|
+
output[outIndex * numCol + j2] += input2[index * numCol + j2];
|
|
52747
52747
|
}
|
|
52748
52748
|
}
|
|
52749
52749
|
if (isMean) {
|
|
52750
|
-
for (let
|
|
52751
|
-
output[outIndex * numCol +
|
|
52750
|
+
for (let j2 = 0; j2 < numCol; j2++) {
|
|
52751
|
+
output[outIndex * numCol + j2] /= end - start;
|
|
52752
52752
|
}
|
|
52753
52753
|
}
|
|
52754
52754
|
start = end;
|
|
@@ -52833,8 +52833,8 @@ function stridedSliceImpl(outShape, xBuf, strides, begin) {
|
|
|
52833
52833
|
for (let i10 = 0; i10 < outBuf.size; i10++) {
|
|
52834
52834
|
const loc = outBuf.indexToLoc(i10);
|
|
52835
52835
|
const newLoc = new Array(loc.length);
|
|
52836
|
-
for (let
|
|
52837
|
-
newLoc[
|
|
52836
|
+
for (let j2 = 0; j2 < newLoc.length; j2++) {
|
|
52837
|
+
newLoc[j2] = loc[j2] * strides[j2] + begin[j2];
|
|
52838
52838
|
}
|
|
52839
52839
|
outBuf.set(xBuf.get(...newLoc), ...loc);
|
|
52840
52840
|
}
|
|
@@ -53039,9 +53039,9 @@ function stringSplitImpl(input2, delimiter, skipEmpty) {
|
|
|
53039
53039
|
const shape = [batchSize, maxNumEntries];
|
|
53040
53040
|
let c8 = 0;
|
|
53041
53041
|
for (let i10 = 0; i10 < batchSize; ++i10) {
|
|
53042
|
-
for (let
|
|
53042
|
+
for (let j2 = 0; j2 < numIndices[i10]; ++j2) {
|
|
53043
53043
|
indices[c8 * 2] = i10;
|
|
53044
|
-
indices[c8 * 2 + 1] =
|
|
53044
|
+
indices[c8 * 2 + 1] = j2;
|
|
53045
53045
|
values[c8] = tokens[c8];
|
|
53046
53046
|
++c8;
|
|
53047
53047
|
}
|
|
@@ -53098,8 +53098,8 @@ function tileImpl(xBuf, reps) {
|
|
|
53098
53098
|
for (let i10 = 0; i10 < result.values.length; ++i10) {
|
|
53099
53099
|
const newLoc = result.indexToLoc(i10);
|
|
53100
53100
|
const originalLoc = new Array(xBuf.rank);
|
|
53101
|
-
for (let
|
|
53102
|
-
originalLoc[
|
|
53101
|
+
for (let j2 = 0; j2 < originalLoc.length; j2++) {
|
|
53102
|
+
originalLoc[j2] = newLoc[j2] % xBuf.shape[j2];
|
|
53103
53103
|
}
|
|
53104
53104
|
const originalIndex = xBuf.locToIndex(originalLoc);
|
|
53105
53105
|
result.values[i10] = xBuf.values[originalIndex];
|
|
@@ -53127,33 +53127,33 @@ function select(array2, k3, left = 0, right = array2.length - 1) {
|
|
|
53127
53127
|
}
|
|
53128
53128
|
const t8 = array2[k3];
|
|
53129
53129
|
let i10 = left;
|
|
53130
|
-
let
|
|
53130
|
+
let j2 = right;
|
|
53131
53131
|
util_exports.swap(array2, left, k3);
|
|
53132
53132
|
if (comparePair(array2[right], t8) > 0) {
|
|
53133
53133
|
util_exports.swap(array2, left, right);
|
|
53134
53134
|
}
|
|
53135
|
-
while (i10 <
|
|
53136
|
-
util_exports.swap(array2, i10,
|
|
53135
|
+
while (i10 < j2) {
|
|
53136
|
+
util_exports.swap(array2, i10, j2);
|
|
53137
53137
|
i10++;
|
|
53138
|
-
|
|
53138
|
+
j2--;
|
|
53139
53139
|
while (comparePair(array2[i10], t8) < 0) {
|
|
53140
53140
|
i10 = i10 + 1;
|
|
53141
53141
|
}
|
|
53142
|
-
while (comparePair(array2[
|
|
53143
|
-
|
|
53142
|
+
while (comparePair(array2[j2], t8) > 0) {
|
|
53143
|
+
j2 = j2 - 1;
|
|
53144
53144
|
}
|
|
53145
53145
|
}
|
|
53146
53146
|
if (comparePair(array2[left], t8) === 0) {
|
|
53147
|
-
util_exports.swap(array2, left,
|
|
53147
|
+
util_exports.swap(array2, left, j2);
|
|
53148
53148
|
} else {
|
|
53149
|
-
|
|
53150
|
-
util_exports.swap(array2,
|
|
53149
|
+
j2 = j2 + 1;
|
|
53150
|
+
util_exports.swap(array2, j2, right);
|
|
53151
53151
|
}
|
|
53152
|
-
if (
|
|
53153
|
-
left =
|
|
53152
|
+
if (j2 <= k3) {
|
|
53153
|
+
left = j2 + 1;
|
|
53154
53154
|
}
|
|
53155
|
-
if (k3 <=
|
|
53156
|
-
right =
|
|
53155
|
+
if (k3 <= j2) {
|
|
53156
|
+
right = j2 - 1;
|
|
53157
53157
|
}
|
|
53158
53158
|
}
|
|
53159
53159
|
}
|
|
@@ -53604,7 +53604,7 @@ function batchMatMul(args) {
|
|
|
53604
53604
|
for (let k02 = 0; k02 < sharedDim; k02 += blockSize) {
|
|
53605
53605
|
const kBlock = Math.min(k02 + blockSize, sharedDim);
|
|
53606
53606
|
for (let i10 = i0; i10 < iBlock; i10++) {
|
|
53607
|
-
for (let
|
|
53607
|
+
for (let j2 = j0; j2 < jBlock; j2++) {
|
|
53608
53608
|
let sum5 = 0;
|
|
53609
53609
|
for (let k3 = k02; k3 < kBlock; k3++) {
|
|
53610
53610
|
const aVal = (
|
|
@@ -53613,11 +53613,11 @@ function batchMatMul(args) {
|
|
|
53613
53613
|
);
|
|
53614
53614
|
const bVal = (
|
|
53615
53615
|
// tslint:disable-next-line: max-line-length
|
|
53616
|
-
b3dValues[k3 * bInnerStep +
|
|
53616
|
+
b3dValues[k3 * bInnerStep + j2 * bOuterStep + batchIndexB * bBatch]
|
|
53617
53617
|
);
|
|
53618
53618
|
sum5 += aVal * bVal;
|
|
53619
53619
|
}
|
|
53620
|
-
resVals[bi * size3 + (i10 * rightDim +
|
|
53620
|
+
resVals[bi * size3 + (i10 * rightDim + j2)] += sum5;
|
|
53621
53621
|
}
|
|
53622
53622
|
}
|
|
53623
53623
|
}
|
|
@@ -53723,8 +53723,8 @@ function addN2(args) {
|
|
|
53723
53723
|
const outVals = outBuf.values;
|
|
53724
53724
|
for (let i10 = 0; i10 < tensors.length; i10++) {
|
|
53725
53725
|
const currVals = vals[i10];
|
|
53726
|
-
for (let
|
|
53727
|
-
outVals[
|
|
53726
|
+
for (let j2 = 0; j2 < outVals.length; j2++) {
|
|
53727
|
+
outVals[j2] += currVals[j2];
|
|
53728
53728
|
}
|
|
53729
53729
|
}
|
|
53730
53730
|
return backend2.makeTensorInfo(outBuf.shape, outBuf.dtype, outBuf.values);
|
|
@@ -53764,8 +53764,8 @@ function all2(args) {
|
|
|
53764
53764
|
for (let i10 = 0; i10 < vals.length; ++i10) {
|
|
53765
53765
|
const offset3 = i10 * reduceSize;
|
|
53766
53766
|
let all4 = aVals[offset3];
|
|
53767
|
-
for (let
|
|
53768
|
-
const value = aVals[offset3 +
|
|
53767
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
53768
|
+
const value = aVals[offset3 + j2];
|
|
53769
53769
|
all4 = all4 && value;
|
|
53770
53770
|
}
|
|
53771
53771
|
vals[i10] = all4;
|
|
@@ -53819,8 +53819,8 @@ function any2(args) {
|
|
|
53819
53819
|
for (let i10 = 0; i10 < vals.length; ++i10) {
|
|
53820
53820
|
const offset3 = i10 * reduceSize;
|
|
53821
53821
|
let anyVal = aVals[offset3];
|
|
53822
|
-
for (let
|
|
53823
|
-
const value = aVals[offset3 +
|
|
53822
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
53823
|
+
const value = aVals[offset3 + j2];
|
|
53824
53824
|
anyVal = anyVal || value;
|
|
53825
53825
|
}
|
|
53826
53826
|
vals[i10] = anyVal;
|
|
@@ -53878,11 +53878,11 @@ function argMax2(args) {
|
|
|
53878
53878
|
const offset3 = i10 * reduceSize;
|
|
53879
53879
|
let max6 = aVals[offset3];
|
|
53880
53880
|
let maxIndex = 0;
|
|
53881
|
-
for (let
|
|
53882
|
-
const value = aVals[offset3 +
|
|
53881
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
53882
|
+
const value = aVals[offset3 + j2];
|
|
53883
53883
|
if (value > max6) {
|
|
53884
53884
|
max6 = value;
|
|
53885
|
-
maxIndex =
|
|
53885
|
+
maxIndex = j2;
|
|
53886
53886
|
}
|
|
53887
53887
|
}
|
|
53888
53888
|
vals[i10] = maxIndex;
|
|
@@ -53930,11 +53930,11 @@ function argMin2(args) {
|
|
|
53930
53930
|
const offset3 = i10 * reduceSize;
|
|
53931
53931
|
let min6 = aVals[offset3];
|
|
53932
53932
|
let minIndex = 0;
|
|
53933
|
-
for (let
|
|
53934
|
-
const value = aVals[offset3 +
|
|
53933
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
53934
|
+
const value = aVals[offset3 + j2];
|
|
53935
53935
|
if (value < min6) {
|
|
53936
53936
|
min6 = value;
|
|
53937
|
-
minIndex =
|
|
53937
|
+
minIndex = j2;
|
|
53938
53938
|
}
|
|
53939
53939
|
}
|
|
53940
53940
|
vals[i10] = minIndex;
|
|
@@ -55364,14 +55364,14 @@ function cumprod2(args) {
|
|
|
55364
55364
|
const vals = util_exports.makeOnesTypedArray(util_exports.sizeFromShape($x.shape), resultDtype);
|
|
55365
55365
|
const aVals = backend2.data.get($x.dataId).values;
|
|
55366
55366
|
const finalDim = $x.shape[$x.shape.length - 1];
|
|
55367
|
-
const indexAdjuster = reverse4 ? (i10,
|
|
55367
|
+
const indexAdjuster = reverse4 ? (i10, j2) => i10 + finalDim - j2 - 1 : (i10, j2) => i10 + j2;
|
|
55368
55368
|
for (let i10 = 0; i10 < aVals.length; i10 += finalDim) {
|
|
55369
|
-
for (let
|
|
55370
|
-
const idx = indexAdjuster(i10,
|
|
55371
|
-
if (
|
|
55369
|
+
for (let j2 = 0; j2 < finalDim; j2++) {
|
|
55370
|
+
const idx = indexAdjuster(i10, j2);
|
|
55371
|
+
if (j2 === 0) {
|
|
55372
55372
|
vals[idx] = exclusive ? 1 : aVals[idx];
|
|
55373
55373
|
} else {
|
|
55374
|
-
const prevIdx = indexAdjuster(i10,
|
|
55374
|
+
const prevIdx = indexAdjuster(i10, j2 - 1);
|
|
55375
55375
|
vals[idx] = exclusive ? aVals[prevIdx] * vals[prevIdx] : aVals[idx] * vals[prevIdx];
|
|
55376
55376
|
}
|
|
55377
55377
|
}
|
|
@@ -55419,14 +55419,14 @@ function cumsum2(args) {
|
|
|
55419
55419
|
const vals = util_exports.makeZerosTypedArray(util_exports.sizeFromShape($x.shape), resultDtype);
|
|
55420
55420
|
const aVals = backend2.data.get($x.dataId).values;
|
|
55421
55421
|
const finalDim = $x.shape[$x.shape.length - 1];
|
|
55422
|
-
const indexAdjuster = reverse4 ? (i10,
|
|
55422
|
+
const indexAdjuster = reverse4 ? (i10, j2) => i10 + finalDim - j2 - 1 : (i10, j2) => i10 + j2;
|
|
55423
55423
|
for (let i10 = 0; i10 < aVals.length; i10 += finalDim) {
|
|
55424
|
-
for (let
|
|
55425
|
-
const idx = indexAdjuster(i10,
|
|
55426
|
-
if (
|
|
55424
|
+
for (let j2 = 0; j2 < finalDim; j2++) {
|
|
55425
|
+
const idx = indexAdjuster(i10, j2);
|
|
55426
|
+
if (j2 === 0) {
|
|
55427
55427
|
vals[idx] = exclusive ? 0 : aVals[idx];
|
|
55428
55428
|
} else {
|
|
55429
|
-
const prevIdx = indexAdjuster(i10,
|
|
55429
|
+
const prevIdx = indexAdjuster(i10, j2 - 1);
|
|
55430
55430
|
vals[idx] = exclusive ? aVals[prevIdx] + vals[prevIdx] : aVals[idx] + vals[prevIdx];
|
|
55431
55431
|
}
|
|
55432
55432
|
}
|
|
@@ -55986,11 +55986,11 @@ function draw2(args) {
|
|
|
55986
55986
|
rgba[d4] = value * multiplier;
|
|
55987
55987
|
}
|
|
55988
55988
|
}
|
|
55989
|
-
const
|
|
55990
|
-
bytes[
|
|
55991
|
-
bytes[
|
|
55992
|
-
bytes[
|
|
55993
|
-
bytes[
|
|
55989
|
+
const j2 = i10 * 4;
|
|
55990
|
+
bytes[j2 + 0] = Math.round(rgba[0]);
|
|
55991
|
+
bytes[j2 + 1] = Math.round(rgba[1]);
|
|
55992
|
+
bytes[j2 + 2] = Math.round(rgba[2]);
|
|
55993
|
+
bytes[j2 + 3] = Math.round(rgba[3]);
|
|
55994
55994
|
}
|
|
55995
55995
|
canvas.width = width;
|
|
55996
55996
|
canvas.height = height;
|
|
@@ -56041,8 +56041,8 @@ function sum3(args) {
|
|
|
56041
56041
|
for (let i10 = 0; i10 < vals.length; ++i10) {
|
|
56042
56042
|
const offset3 = i10 * reduceSize;
|
|
56043
56043
|
let sum5 = 0;
|
|
56044
|
-
for (let
|
|
56045
|
-
sum5 += aVals[offset3 +
|
|
56044
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
56045
|
+
sum5 += aVals[offset3 + j2];
|
|
56046
56046
|
}
|
|
56047
56047
|
vals[i10] = sum5;
|
|
56048
56048
|
}
|
|
@@ -57354,8 +57354,8 @@ function min4(args) {
|
|
|
57354
57354
|
for (let i10 = 0; i10 < vals.length; ++i10) {
|
|
57355
57355
|
const offset3 = i10 * reduceSize;
|
|
57356
57356
|
let min6 = aVals[offset3];
|
|
57357
|
-
for (let
|
|
57358
|
-
const value = aVals[offset3 +
|
|
57357
|
+
for (let j2 = 0; j2 < reduceSize; ++j2) {
|
|
57358
|
+
const value = aVals[offset3 + j2];
|
|
57359
57359
|
if (Number.isNaN(value) || value < min6) {
|
|
57360
57360
|
min6 = value;
|
|
57361
57361
|
}
|
|
@@ -58488,7 +58488,7 @@ function select2(args) {
|
|
|
58488
58488
|
let index = 0;
|
|
58489
58489
|
const offset3 = conditionRank === 0 || conditionRank > 1 || t8.shape.length === 1 ? 1 : util_exports.sizeFromShape(t8.shape.slice(1));
|
|
58490
58490
|
for (let i10 = 0; i10 < values.length; i10++) {
|
|
58491
|
-
for (let
|
|
58491
|
+
for (let j2 = 0; j2 < offset3; j2++) {
|
|
58492
58492
|
if (values[i10] === 1) {
|
|
58493
58493
|
newValues[index++] = tValues[i10];
|
|
58494
58494
|
} else {
|
|
@@ -72154,12 +72154,12 @@ var init_gather_nd_gpu = __esm({
|
|
|
72154
72154
|
const dtype = getCoordsDataType(shape.length);
|
|
72155
72155
|
let mainLoop = `
|
|
72156
72156
|
int index;`;
|
|
72157
|
-
for (let
|
|
72157
|
+
for (let j2 = 0; j2 < this.sliceDim; j2++) {
|
|
72158
72158
|
mainLoop += `
|
|
72159
|
-
index = round(getIndices(coords[0], ${
|
|
72159
|
+
index = round(getIndices(coords[0], ${j2}));
|
|
72160
72160
|
out_of_bounds = out_of_bounds || index < 0;
|
|
72161
|
-
out_of_bounds = out_of_bounds || index >= ${this.paramsShape[
|
|
72162
|
-
flattenIndex += index * ${this.strides[
|
|
72161
|
+
out_of_bounds = out_of_bounds || index >= ${this.paramsShape[j2]};
|
|
72162
|
+
flattenIndex += index * ${this.strides[j2]};`;
|
|
72163
72163
|
}
|
|
72164
72164
|
this.userCode = `
|
|
72165
72165
|
void main() {
|
|
@@ -74219,7 +74219,7 @@ var init_pad_packed_gpu = __esm({
|
|
|
74219
74219
|
];
|
|
74220
74220
|
const paddingArea = rank === 1 ? "rc < start || rc >= end" : "any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))";
|
|
74221
74221
|
let mainLoop = "";
|
|
74222
|
-
for (let i10 = 0,
|
|
74222
|
+
for (let i10 = 0, j2 = rank === 1 ? 2 : 4; i10 < j2; i10++) {
|
|
74223
74223
|
mainLoop += `
|
|
74224
74224
|
${componentSetup[i10]}
|
|
74225
74225
|
if (${paddingArea}) {
|
|
@@ -78222,6 +78222,7 @@ var init_ar = __esm({
|
|
|
78222
78222
|
"s32f2fa78e3267c4e": `\u0627\u0644\u062E\u0635\u0627\u0626\u0635 \u0641\u0642\u0637`,
|
|
78223
78223
|
"s334f9922638204ab": `\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0629`,
|
|
78224
78224
|
"s34af392b321cbfa6": `\u062A\u062D\u0631\u064A\u0631 \u0643\u0644 \u0634\u064A\u0621`,
|
|
78225
|
+
"s38c7b3d048d88c07": `\u062D\u0630\u0641 \u0627\u0644\u0645\u062D\u062F\u062F`,
|
|
78225
78226
|
"s38ddf839c081bbaf": str`
|
|
78226
78227
|
${0} الضباب
|
|
78227
78228
|
`,
|
|
@@ -78381,6 +78382,7 @@ var init_bg = __esm({
|
|
|
78381
78382
|
"s32f2fa78e3267c4e": `\u0441\u0430\u043C\u043E \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430`,
|
|
78382
78383
|
"s334f9922638204ab": `\u0418\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u0430\u0431\u043E\u0440 \u043E\u0442 \u0434\u0430\u043D\u043D\u0438`,
|
|
78383
78384
|
"s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u0432\u0441\u0438\u0447\u043A\u043E`,
|
|
78385
|
+
"s38c7b3d048d88c07": `\u0418\u0437\u0442\u0440\u0438\u0439 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0442\u043E`,
|
|
78384
78386
|
"s38ddf839c081bbaf": str`
|
|
78385
78387
|
${0} th измерение
|
|
78386
78388
|
`,
|
|
@@ -78539,6 +78541,7 @@ var init_cs = __esm({
|
|
|
78539
78541
|
"s32f2fa78e3267c4e": `pouze vlastnosti`,
|
|
78540
78542
|
"s334f9922638204ab": `Dataset pou\u017E\xEDvaj\xEDc\xED`,
|
|
78541
78543
|
"s34af392b321cbfa6": `upravit v\u0161e`,
|
|
78544
|
+
"s38c7b3d048d88c07": `Odstranit vybran\xE9`,
|
|
78542
78545
|
"s38ddf839c081bbaf": str`
|
|
78543
78546
|
${0} th dim
|
|
78544
78547
|
`,
|
|
@@ -78698,6 +78701,7 @@ var init_da = __esm({
|
|
|
78698
78701
|
"s32f2fa78e3267c4e": `kun egenskaber`,
|
|
78699
78702
|
"s334f9922638204ab": `Dataset ved hj\xE6lp af`,
|
|
78700
78703
|
"s34af392b321cbfa6": `rediger alt`,
|
|
78704
|
+
"s38c7b3d048d88c07": `Slet det valgte`,
|
|
78701
78705
|
"s38ddf839c081bbaf": str`
|
|
78702
78706
|
${0} th dim
|
|
78703
78707
|
`,
|
|
@@ -78856,6 +78860,7 @@ var init_de = __esm({
|
|
|
78856
78860
|
"s32f2fa78e3267c4e": `nur Eigenschaften`,
|
|
78857
78861
|
"s334f9922638204ab": `Datensatz unter Verwendung von`,
|
|
78858
78862
|
"s34af392b321cbfa6": `alles bearbeiten`,
|
|
78863
|
+
"s38c7b3d048d88c07": `Ausgew\xE4hltes l\xF6schen`,
|
|
78859
78864
|
"s38ddf839c081bbaf": str`
|
|
78860
78865
|
${0} Dim.
|
|
78861
78866
|
`,
|
|
@@ -79014,6 +79019,7 @@ var init_el = __esm({
|
|
|
79014
79019
|
"s32f2fa78e3267c4e": `\u03B9\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03BC\u03CC\u03BD\u03BF`,
|
|
79015
79020
|
"s334f9922638204ab": `\u03A7\u03C1\u03AE\u03C3\u03B7 \u03C3\u03C5\u03BD\u03CC\u03BB\u03BF\u03C5 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD`,
|
|
79016
79021
|
"s34af392b321cbfa6": `\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03CC\u03BB\u03C9\u03BD`,
|
|
79022
|
+
"s38c7b3d048d88c07": `\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03C9\u03BD`,
|
|
79017
79023
|
"s38ddf839c081bbaf": str`
|
|
79018
79024
|
${0} η διάσταση
|
|
79019
79025
|
`,
|
|
@@ -79174,6 +79180,7 @@ var init_es = __esm({
|
|
|
79174
79180
|
"s32f2fa78e3267c4e": `solo propiedades`,
|
|
79175
79181
|
"s334f9922638204ab": `Conjunto de datos utilizando`,
|
|
79176
79182
|
"s34af392b321cbfa6": `editar todo`,
|
|
79183
|
+
"s38c7b3d048d88c07": `Eliminar los elementos seleccionados`,
|
|
79177
79184
|
"s38ddf839c081bbaf": str`
|
|
79178
79185
|
${0} la dimensión
|
|
79179
79186
|
`,
|
|
@@ -79333,6 +79340,7 @@ var init_et = __esm({
|
|
|
79333
79340
|
"s32f2fa78e3267c4e": `ainult omadused`,
|
|
79334
79341
|
"s334f9922638204ab": `Andmekogum kasutades`,
|
|
79335
79342
|
"s34af392b321cbfa6": `k\xF5ike muuta`,
|
|
79343
|
+
"s38c7b3d048d88c07": `Kustuta valitud`,
|
|
79336
79344
|
"s38ddf839c081bbaf": str`
|
|
79337
79345
|
${0} th dim
|
|
79338
79346
|
`,
|
|
@@ -79492,6 +79500,7 @@ var init_fi = __esm({
|
|
|
79492
79500
|
"s32f2fa78e3267c4e": `vain ominaisuudet`,
|
|
79493
79501
|
"s334f9922638204ab": `K\xE4ytt\xE4m\xE4si tietojoukko`,
|
|
79494
79502
|
"s34af392b321cbfa6": `muokkaa kaikkea`,
|
|
79503
|
+
"s38c7b3d048d88c07": `Poista valitut`,
|
|
79495
79504
|
"s38ddf839c081bbaf": str`
|
|
79496
79505
|
${0} th dim
|
|
79497
79506
|
`,
|
|
@@ -79650,6 +79659,7 @@ var init_fr = __esm({
|
|
|
79650
79659
|
"s32f2fa78e3267c4e": `propri\xE9t\xE9s uniquement`,
|
|
79651
79660
|
"s334f9922638204ab": `Ensemble de donn\xE9es utilisant`,
|
|
79652
79661
|
"s34af392b321cbfa6": `modifier tout`,
|
|
79662
|
+
"s38c7b3d048d88c07": `Supprimer la s\xE9lection`,
|
|
79653
79663
|
"s38ddf839c081bbaf": str`
|
|
79654
79664
|
${0} th dim
|
|
79655
79665
|
`,
|
|
@@ -79809,6 +79819,7 @@ var init_hu = __esm({
|
|
|
79809
79819
|
"s32f2fa78e3267c4e": `csak tulajdons\xE1gok`,
|
|
79810
79820
|
"s334f9922638204ab": `Adatk\xE9szlet haszn\xE1lata`,
|
|
79811
79821
|
"s34af392b321cbfa6": `mindent szerkeszteni`,
|
|
79822
|
+
"s38c7b3d048d88c07": `A kijel\xF6ltek t\xF6rl\xE9se`,
|
|
79812
79823
|
"s38ddf839c081bbaf": str`
|
|
79813
79824
|
${0} th dim
|
|
79814
79825
|
`,
|
|
@@ -79967,6 +79978,7 @@ var init_id = __esm({
|
|
|
79967
79978
|
"s32f2fa78e3267c4e": `hanya properti`,
|
|
79968
79979
|
"s334f9922638204ab": `Dataset yang menggunakan`,
|
|
79969
79980
|
"s34af392b321cbfa6": `edit semuanya`,
|
|
79981
|
+
"s38c7b3d048d88c07": `Hapus yang dipilih`,
|
|
79970
79982
|
"s38ddf839c081bbaf": str`
|
|
79971
79983
|
${0} dimensi ke-th
|
|
79972
79984
|
`,
|
|
@@ -80126,6 +80138,7 @@ var init_it = __esm({
|
|
|
80126
80138
|
"s32f2fa78e3267c4e": `solo propriet\xE0`,
|
|
80127
80139
|
"s334f9922638204ab": `Set di dati utilizzando`,
|
|
80128
80140
|
"s34af392b321cbfa6": `modifica tutto`,
|
|
80141
|
+
"s38c7b3d048d88c07": `Elimina selezionati`,
|
|
80129
80142
|
"s38ddf839c081bbaf": str`
|
|
80130
80143
|
${0} la dimensione
|
|
80131
80144
|
`,
|
|
@@ -80285,6 +80298,7 @@ var init_ja = __esm({
|
|
|
80285
80298
|
"s32f2fa78e3267c4e": `\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u307F`,
|
|
80286
80299
|
"s334f9922638204ab": `\u4F7F\u7528\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8`,
|
|
80287
80300
|
"s34af392b321cbfa6": `\u3059\u3079\u3066\u3092\u7DE8\u96C6\u3059\u308B`,
|
|
80301
|
+
"s38c7b3d048d88c07": `\u9078\u629E\u3057\u305F\u9805\u76EE\u3092\u524A\u9664`,
|
|
80288
80302
|
"s38ddf839c081bbaf": str`
|
|
80289
80303
|
${0} 第
|
|
80290
80304
|
`,
|
|
@@ -80443,6 +80457,7 @@ var init_ko = __esm({
|
|
|
80443
80457
|
"s32f2fa78e3267c4e": `\uC18D\uC131\uB9CC`,
|
|
80444
80458
|
"s334f9922638204ab": `\uB370\uC774\uD130\uC14B \uC0AC\uC6A9`,
|
|
80445
80459
|
"s34af392b321cbfa6": `\uBAA8\uB4E0 \uAC83\uC744 \uC218\uC815\uD558\uB2E4`,
|
|
80460
|
+
"s38c7b3d048d88c07": `\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0AD\uC81C`,
|
|
80446
80461
|
"s38ddf839c081bbaf": str`
|
|
80447
80462
|
${0} th 차원
|
|
80448
80463
|
`,
|
|
@@ -80601,6 +80616,7 @@ var init_lt = __esm({
|
|
|
80601
80616
|
"s32f2fa78e3267c4e": `tik savyb\u0117s`,
|
|
80602
80617
|
"s334f9922638204ab": `Duomen\u0173 rinkinys, naudojantis`,
|
|
80603
80618
|
"s34af392b321cbfa6": `redaguoti visk\u0105`,
|
|
80619
|
+
"s38c7b3d048d88c07": `I\u0161trinti pa\u017Eym\u0117tus`,
|
|
80604
80620
|
"s38ddf839c081bbaf": str`
|
|
80605
80621
|
${0} th dim
|
|
80606
80622
|
`,
|
|
@@ -80759,6 +80775,7 @@ var init_lv = __esm({
|
|
|
80759
80775
|
"s32f2fa78e3267c4e": `tikai \u012Bpa\u0161\u012Bbas`,
|
|
80760
80776
|
"s334f9922638204ab": `Datu kopa, izmantojot`,
|
|
80761
80777
|
"s34af392b321cbfa6": `redi\u0123\u0113t visu`,
|
|
80778
|
+
"s38c7b3d048d88c07": `Dz\u0113st atlas\u012Bto`,
|
|
80762
80779
|
"s38ddf839c081bbaf": str`
|
|
80763
80780
|
${0} th dim
|
|
80764
80781
|
`,
|
|
@@ -80917,6 +80934,7 @@ var init_nb = __esm({
|
|
|
80917
80934
|
"s32f2fa78e3267c4e": `egenskaper kun`,
|
|
80918
80935
|
"s334f9922638204ab": `Dataset ved bruk av`,
|
|
80919
80936
|
"s34af392b321cbfa6": `rediger alt`,
|
|
80937
|
+
"s38c7b3d048d88c07": `Slett det valgte`,
|
|
80920
80938
|
"s38ddf839c081bbaf": str`
|
|
80921
80939
|
${0} th dim
|
|
80922
80940
|
`,
|
|
@@ -81075,6 +81093,7 @@ var init_nl = __esm({
|
|
|
81075
81093
|
"s32f2fa78e3267c4e": `alleen eigenschappen`,
|
|
81076
81094
|
"s334f9922638204ab": `Gebruikte dataset`,
|
|
81077
81095
|
"s34af392b321cbfa6": `alles bewerken`,
|
|
81096
|
+
"s38c7b3d048d88c07": `Geselecteerde items verwijderen`,
|
|
81078
81097
|
"s38ddf839c081bbaf": str`
|
|
81079
81098
|
${0} th dim
|
|
81080
81099
|
`,
|
|
@@ -81233,6 +81252,7 @@ var init_pl = __esm({
|
|
|
81233
81252
|
"s32f2fa78e3267c4e": `tylko w\u0142a\u015Bciwo\u015Bci`,
|
|
81234
81253
|
"s334f9922638204ab": `Zbi\xF3r danych wykorzystuj\u0105cy`,
|
|
81235
81254
|
"s34af392b321cbfa6": `edytuj wszystko`,
|
|
81255
|
+
"s38c7b3d048d88c07": `Usu\u0144 zaznaczone`,
|
|
81236
81256
|
"s38ddf839c081bbaf": str`
|
|
81237
81257
|
${0} th dim
|
|
81238
81258
|
`,
|
|
@@ -81392,6 +81412,7 @@ var init_pt_BR = __esm({
|
|
|
81392
81412
|
"s32f2fa78e3267c4e": `apenas propriedades`,
|
|
81393
81413
|
"s334f9922638204ab": `Conjunto de dados utilizando`,
|
|
81394
81414
|
"s34af392b321cbfa6": `editar tudo`,
|
|
81415
|
+
"s38c7b3d048d88c07": `Excluir os itens selecionados`,
|
|
81395
81416
|
"s38ddf839c081bbaf": str`
|
|
81396
81417
|
${0} a dimensão
|
|
81397
81418
|
`,
|
|
@@ -81551,6 +81572,7 @@ var init_pt_PT = __esm({
|
|
|
81551
81572
|
"s32f2fa78e3267c4e": `apenas propriedades`,
|
|
81552
81573
|
"s334f9922638204ab": `Conjunto de dados utilizando`,
|
|
81553
81574
|
"s34af392b321cbfa6": `editar tudo`,
|
|
81575
|
+
"s38c7b3d048d88c07": `Apagar os elementos selecionados`,
|
|
81554
81576
|
"s38ddf839c081bbaf": str`
|
|
81555
81577
|
${0} a dimensão
|
|
81556
81578
|
`,
|
|
@@ -81710,6 +81732,7 @@ var init_ro = __esm({
|
|
|
81710
81732
|
"s32f2fa78e3267c4e": `numai propriet\u0103\u021Bi`,
|
|
81711
81733
|
"s334f9922638204ab": `Set de date utilizat`,
|
|
81712
81734
|
"s34af392b321cbfa6": `editeaz\u0103 totul`,
|
|
81735
|
+
"s38c7b3d048d88c07": `\u0218terge elementele selectate`,
|
|
81713
81736
|
"s38ddf839c081bbaf": str`
|
|
81714
81737
|
${0} dim
|
|
81715
81738
|
`,
|
|
@@ -81869,6 +81892,7 @@ var init_ru = __esm({
|
|
|
81869
81892
|
"s32f2fa78e3267c4e": `\u0442\u043E\u043B\u044C\u043A\u043E \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430`,
|
|
81870
81893
|
"s334f9922638204ab": `\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430\u0431\u043E\u0440\u0430 \u0434\u0430\u043D\u043D\u044B\u0445`,
|
|
81871
81894
|
"s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435`,
|
|
81895
|
+
"s38c7b3d048d88c07": `\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435`,
|
|
81872
81896
|
"s38ddf839c081bbaf": str`
|
|
81873
81897
|
${0} th измерение
|
|
81874
81898
|
`,
|
|
@@ -82028,6 +82052,7 @@ var init_sk = __esm({
|
|
|
82028
82052
|
"s32f2fa78e3267c4e": `len vlastnosti`,
|
|
82029
82053
|
"s334f9922638204ab": `Dataset pou\u017E\xEDvaj\xFAci`,
|
|
82030
82054
|
"s34af392b321cbfa6": `upravi\u0165 v\u0161etko`,
|
|
82055
|
+
"s38c7b3d048d88c07": `Odstr\xE1ni\u0165 vybran\xE9`,
|
|
82031
82056
|
"s38ddf839c081bbaf": str`
|
|
82032
82057
|
${0} th dim
|
|
82033
82058
|
`,
|
|
@@ -82187,6 +82212,7 @@ var init_sl = __esm({
|
|
|
82187
82212
|
"s32f2fa78e3267c4e": `samo lastnosti`,
|
|
82188
82213
|
"s334f9922638204ab": `Podatkovna zbirka, ki uporablja`,
|
|
82189
82214
|
"s34af392b321cbfa6": `uredi vse`,
|
|
82215
|
+
"s38c7b3d048d88c07": `Izbri\u0161i izbrano`,
|
|
82190
82216
|
"s38ddf839c081bbaf": str`
|
|
82191
82217
|
${0} th dim
|
|
82192
82218
|
`,
|
|
@@ -82346,6 +82372,7 @@ var init_sv = __esm({
|
|
|
82346
82372
|
"s32f2fa78e3267c4e": `endast egenskaper`,
|
|
82347
82373
|
"s334f9922638204ab": `Dataset som anv\xE4nder`,
|
|
82348
82374
|
"s34af392b321cbfa6": `redigera allt`,
|
|
82375
|
+
"s38c7b3d048d88c07": `Ta bort det markerade`,
|
|
82349
82376
|
"s38ddf839c081bbaf": str`
|
|
82350
82377
|
${0} th dim
|
|
82351
82378
|
`,
|
|
@@ -82504,6 +82531,7 @@ var init_tr = __esm({
|
|
|
82504
82531
|
"s32f2fa78e3267c4e": `sadece \xF6zellikler`,
|
|
82505
82532
|
"s334f9922638204ab": `Kullan\u0131lan veri k\xFCmesi`,
|
|
82506
82533
|
"s34af392b321cbfa6": `her \u015Feyi d\xFCzenle`,
|
|
82534
|
+
"s38c7b3d048d88c07": `Se\xE7ilenleri sil`,
|
|
82507
82535
|
"s38ddf839c081bbaf": str`
|
|
82508
82536
|
${0} th dim
|
|
82509
82537
|
`,
|
|
@@ -82662,6 +82690,7 @@ var init_uk = __esm({
|
|
|
82662
82690
|
"s32f2fa78e3267c4e": `\u0442\u0456\u043B\u044C\u043A\u0438 \u0432\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456`,
|
|
82663
82691
|
"s334f9922638204ab": `\u041D\u0430\u0431\u0456\u0440 \u0434\u0430\u043D\u0438\u0445, \u0449\u043E \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F`,
|
|
82664
82692
|
"s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0435`,
|
|
82693
|
+
"s38c7b3d048d88c07": `\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043D\u0435`,
|
|
82665
82694
|
"s38ddf839c081bbaf": str`
|
|
82666
82695
|
${0} th dim
|
|
82667
82696
|
`,
|
|
@@ -82871,6 +82900,7 @@ var init_zh_hans = __esm({
|
|
|
82871
82900
|
"s6c5b5757b7756775": `Center View`,
|
|
82872
82901
|
"s22fde937cb709859": `Zoom In`,
|
|
82873
82902
|
"sb05582ce916894da": `Zoom Out`,
|
|
82903
|
+
"s38c7b3d048d88c07": `Delete selected`,
|
|
82874
82904
|
"sdab07807ff1b6b12": `Model Design Widget hidden from students.`,
|
|
82875
82905
|
"s026fba1543d336b2": `Feature Source`,
|
|
82876
82906
|
"s32f2fa78e3267c4e": `properties only`,
|
|
@@ -83012,6 +83042,7 @@ var init_zh_hant = __esm({
|
|
|
83012
83042
|
"s6c5b5757b7756775": `Center View`,
|
|
83013
83043
|
"s22fde937cb709859": `Zoom In`,
|
|
83014
83044
|
"sb05582ce916894da": `Zoom Out`,
|
|
83045
|
+
"s38c7b3d048d88c07": `Delete selected`,
|
|
83015
83046
|
"sdab07807ff1b6b12": `Model Design Widget hidden from students.`,
|
|
83016
83047
|
"s026fba1543d336b2": `Feature Source`,
|
|
83017
83048
|
"s32f2fa78e3267c4e": `properties only`,
|
|
@@ -83730,13 +83761,13 @@ var N = (t8, i10) => {
|
|
|
83730
83761
|
}
|
|
83731
83762
|
return [V(t8, l7 + (t8[s7] || "<?>") + (2 === i10 ? "</svg>" : 3 === i10 ? "</math>" : "")), e12];
|
|
83732
83763
|
};
|
|
83733
|
-
var S2 = class
|
|
83764
|
+
var S2 = class _S2 {
|
|
83734
83765
|
constructor({ strings: t8, _$litType$: i10 }, e12) {
|
|
83735
83766
|
let r11;
|
|
83736
83767
|
this.parts = [];
|
|
83737
83768
|
let l7 = 0, a6 = 0;
|
|
83738
83769
|
const u5 = t8.length - 1, d4 = this.parts, [f5, v3] = N(t8, i10);
|
|
83739
|
-
if (this.el =
|
|
83770
|
+
if (this.el = _S2.createElement(f5, e12), P.currentNode = this.el.content, 2 === i10 || 3 === i10) {
|
|
83740
83771
|
const t9 = this.el.content.firstChild;
|
|
83741
83772
|
t9.replaceWith(...t9.childNodes);
|
|
83742
83773
|
}
|
|
@@ -83801,7 +83832,7 @@ var R = class {
|
|
|
83801
83832
|
for (const s7 of this._$AV) void 0 !== s7 && (void 0 !== s7.strings ? (s7._$AI(t8, s7, i10), i10 += s7.strings.length - 2) : s7._$AI(t8[i10])), i10++;
|
|
83802
83833
|
}
|
|
83803
83834
|
};
|
|
83804
|
-
var k = class
|
|
83835
|
+
var k = class _k2 {
|
|
83805
83836
|
get _$AU() {
|
|
83806
83837
|
return this._$AM?._$AU ?? this._$Cv;
|
|
83807
83838
|
}
|
|
@@ -83847,7 +83878,7 @@ var k = class _k {
|
|
|
83847
83878
|
u2(this._$AH) || (this._$AH = [], this._$AR());
|
|
83848
83879
|
const i10 = this._$AH;
|
|
83849
83880
|
let s7, e12 = 0;
|
|
83850
|
-
for (const h7 of t8) e12 === i10.length ? i10.push(s7 = new
|
|
83881
|
+
for (const h7 of t8) e12 === i10.length ? i10.push(s7 = new _k2(this.O(c3()), this.O(c3()), this, this.options)) : s7 = i10[e12], s7._$AI(h7), e12++;
|
|
83851
83882
|
e12 < i10.length && (this._$AR(s7 && s7._$AB.nextSibling, e12), i10.length = e12);
|
|
83852
83883
|
}
|
|
83853
83884
|
_$AR(t8 = this._$AA.nextSibling, s7) {
|
|
@@ -83927,7 +83958,7 @@ var Z = class {
|
|
|
83927
83958
|
};
|
|
83928
83959
|
var j = { M: h2, P: o3, A: n3, C: 1, L: N, R, D: d2, V: M, I: k, H, N: L, U: z, B: I, F: Z };
|
|
83929
83960
|
var B = t2.litHtmlPolyfillSupport;
|
|
83930
|
-
B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.
|
|
83961
|
+
B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.3");
|
|
83931
83962
|
var D = (t8, i10, s7) => {
|
|
83932
83963
|
const e12 = s7?.renderBefore ?? i10;
|
|
83933
83964
|
let h7 = e12._$litPart$;
|
|
@@ -85342,9 +85373,14 @@ var LocalizeController = class {
|
|
|
85342
85373
|
}
|
|
85343
85374
|
getTranslationData(lang) {
|
|
85344
85375
|
var _a2, _b;
|
|
85345
|
-
|
|
85346
|
-
|
|
85347
|
-
|
|
85376
|
+
let locale;
|
|
85377
|
+
try {
|
|
85378
|
+
locale = new Intl.Locale(lang.replace(/_/g, "-"));
|
|
85379
|
+
} catch (_c) {
|
|
85380
|
+
return { locale: void 0, language: "", region: "", primary: void 0, secondary: void 0 };
|
|
85381
|
+
}
|
|
85382
|
+
const language = locale.language.toLowerCase();
|
|
85383
|
+
const region = (_b = (_a2 = locale.region) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
85348
85384
|
const primary = translations.get(`${language}-${region}`);
|
|
85349
85385
|
const secondary = translations.get(language);
|
|
85350
85386
|
return { locale, language, region, primary, secondary };
|
|
@@ -85931,10 +85967,6 @@ var oppositeSideMap = {
|
|
|
85931
85967
|
bottom: "top",
|
|
85932
85968
|
top: "bottom"
|
|
85933
85969
|
};
|
|
85934
|
-
var oppositeAlignmentMap = {
|
|
85935
|
-
start: "end",
|
|
85936
|
-
end: "start"
|
|
85937
|
-
};
|
|
85938
85970
|
function clamp(start, value, end) {
|
|
85939
85971
|
return max(start, min(value, end));
|
|
85940
85972
|
}
|
|
@@ -85953,9 +85985,9 @@ function getOppositeAxis(axis) {
|
|
|
85953
85985
|
function getAxisLength(axis) {
|
|
85954
85986
|
return axis === "y" ? "height" : "width";
|
|
85955
85987
|
}
|
|
85956
|
-
var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
85957
85988
|
function getSideAxis(placement) {
|
|
85958
|
-
|
|
85989
|
+
const firstChar = placement[0];
|
|
85990
|
+
return firstChar === "t" || firstChar === "b" ? "y" : "x";
|
|
85959
85991
|
}
|
|
85960
85992
|
function getAlignmentAxis(placement) {
|
|
85961
85993
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -85978,7 +86010,7 @@ function getExpandedPlacements(placement) {
|
|
|
85978
86010
|
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
85979
86011
|
}
|
|
85980
86012
|
function getOppositeAlignmentPlacement(placement) {
|
|
85981
|
-
return placement.replace(
|
|
86013
|
+
return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
|
|
85982
86014
|
}
|
|
85983
86015
|
var lrPlacement = ["left", "right"];
|
|
85984
86016
|
var rlPlacement = ["right", "left"];
|
|
@@ -86009,7 +86041,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
|
86009
86041
|
return list;
|
|
86010
86042
|
}
|
|
86011
86043
|
function getOppositePlacement(placement) {
|
|
86012
|
-
|
|
86044
|
+
const side = getSide(placement);
|
|
86045
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
86013
86046
|
}
|
|
86014
86047
|
function expandPaddingObject(padding) {
|
|
86015
86048
|
return {
|
|
@@ -86103,6 +86136,63 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
86103
86136
|
}
|
|
86104
86137
|
return coords2;
|
|
86105
86138
|
}
|
|
86139
|
+
async function detectOverflow(state, options) {
|
|
86140
|
+
var _await$platform$isEle;
|
|
86141
|
+
if (options === void 0) {
|
|
86142
|
+
options = {};
|
|
86143
|
+
}
|
|
86144
|
+
const {
|
|
86145
|
+
x: x3,
|
|
86146
|
+
y: y4,
|
|
86147
|
+
platform: platform2,
|
|
86148
|
+
rects,
|
|
86149
|
+
elements,
|
|
86150
|
+
strategy
|
|
86151
|
+
} = state;
|
|
86152
|
+
const {
|
|
86153
|
+
boundary = "clippingAncestors",
|
|
86154
|
+
rootBoundary = "viewport",
|
|
86155
|
+
elementContext = "floating",
|
|
86156
|
+
altBoundary = false,
|
|
86157
|
+
padding = 0
|
|
86158
|
+
} = evaluate(options, state);
|
|
86159
|
+
const paddingObject = getPaddingObject(padding);
|
|
86160
|
+
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
86161
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
86162
|
+
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
86163
|
+
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
86164
|
+
boundary,
|
|
86165
|
+
rootBoundary,
|
|
86166
|
+
strategy
|
|
86167
|
+
}));
|
|
86168
|
+
const rect = elementContext === "floating" ? {
|
|
86169
|
+
x: x3,
|
|
86170
|
+
y: y4,
|
|
86171
|
+
width: rects.floating.width,
|
|
86172
|
+
height: rects.floating.height
|
|
86173
|
+
} : rects.reference;
|
|
86174
|
+
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
86175
|
+
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
86176
|
+
x: 1,
|
|
86177
|
+
y: 1
|
|
86178
|
+
} : {
|
|
86179
|
+
x: 1,
|
|
86180
|
+
y: 1
|
|
86181
|
+
};
|
|
86182
|
+
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
86183
|
+
elements,
|
|
86184
|
+
rect,
|
|
86185
|
+
offsetParent,
|
|
86186
|
+
strategy
|
|
86187
|
+
}) : rect);
|
|
86188
|
+
return {
|
|
86189
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
86190
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
86191
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
86192
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
86193
|
+
};
|
|
86194
|
+
}
|
|
86195
|
+
var MAX_RESET_COUNT = 50;
|
|
86106
86196
|
var computePosition = async (reference, floating, config) => {
|
|
86107
86197
|
const {
|
|
86108
86198
|
placement = "bottom",
|
|
@@ -86110,7 +86200,10 @@ var computePosition = async (reference, floating, config) => {
|
|
|
86110
86200
|
middleware = [],
|
|
86111
86201
|
platform: platform2
|
|
86112
86202
|
} = config;
|
|
86113
|
-
const
|
|
86203
|
+
const platformWithDetectOverflow = platform2.detectOverflow ? platform2 : {
|
|
86204
|
+
...platform2,
|
|
86205
|
+
detectOverflow
|
|
86206
|
+
};
|
|
86114
86207
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
86115
86208
|
let rects = await platform2.getElementRects({
|
|
86116
86209
|
reference,
|
|
@@ -86122,13 +86215,17 @@ var computePosition = async (reference, floating, config) => {
|
|
|
86122
86215
|
y: y4
|
|
86123
86216
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
86124
86217
|
let statefulPlacement = placement;
|
|
86125
|
-
let middlewareData = {};
|
|
86126
86218
|
let resetCount = 0;
|
|
86127
|
-
|
|
86219
|
+
const middlewareData = {};
|
|
86220
|
+
for (let i10 = 0; i10 < middleware.length; i10++) {
|
|
86221
|
+
const currentMiddleware = middleware[i10];
|
|
86222
|
+
if (!currentMiddleware) {
|
|
86223
|
+
continue;
|
|
86224
|
+
}
|
|
86128
86225
|
const {
|
|
86129
86226
|
name,
|
|
86130
86227
|
fn
|
|
86131
|
-
} =
|
|
86228
|
+
} = currentMiddleware;
|
|
86132
86229
|
const {
|
|
86133
86230
|
x: nextX,
|
|
86134
86231
|
y: nextY,
|
|
@@ -86142,7 +86239,7 @@ var computePosition = async (reference, floating, config) => {
|
|
|
86142
86239
|
strategy,
|
|
86143
86240
|
middlewareData,
|
|
86144
86241
|
rects,
|
|
86145
|
-
platform:
|
|
86242
|
+
platform: platformWithDetectOverflow,
|
|
86146
86243
|
elements: {
|
|
86147
86244
|
reference,
|
|
86148
86245
|
floating
|
|
@@ -86150,14 +86247,11 @@ var computePosition = async (reference, floating, config) => {
|
|
|
86150
86247
|
});
|
|
86151
86248
|
x3 = nextX != null ? nextX : x3;
|
|
86152
86249
|
y4 = nextY != null ? nextY : y4;
|
|
86153
|
-
middlewareData = {
|
|
86154
|
-
...middlewareData,
|
|
86155
|
-
|
|
86156
|
-
...middlewareData[name],
|
|
86157
|
-
...data
|
|
86158
|
-
}
|
|
86250
|
+
middlewareData[name] = {
|
|
86251
|
+
...middlewareData[name],
|
|
86252
|
+
...data
|
|
86159
86253
|
};
|
|
86160
|
-
if (reset && resetCount
|
|
86254
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
86161
86255
|
resetCount++;
|
|
86162
86256
|
if (typeof reset === "object") {
|
|
86163
86257
|
if (reset.placement) {
|
|
@@ -86186,62 +86280,6 @@ var computePosition = async (reference, floating, config) => {
|
|
|
86186
86280
|
middlewareData
|
|
86187
86281
|
};
|
|
86188
86282
|
};
|
|
86189
|
-
async function detectOverflow(state, options) {
|
|
86190
|
-
var _await$platform$isEle;
|
|
86191
|
-
if (options === void 0) {
|
|
86192
|
-
options = {};
|
|
86193
|
-
}
|
|
86194
|
-
const {
|
|
86195
|
-
x: x3,
|
|
86196
|
-
y: y4,
|
|
86197
|
-
platform: platform2,
|
|
86198
|
-
rects,
|
|
86199
|
-
elements,
|
|
86200
|
-
strategy
|
|
86201
|
-
} = state;
|
|
86202
|
-
const {
|
|
86203
|
-
boundary = "clippingAncestors",
|
|
86204
|
-
rootBoundary = "viewport",
|
|
86205
|
-
elementContext = "floating",
|
|
86206
|
-
altBoundary = false,
|
|
86207
|
-
padding = 0
|
|
86208
|
-
} = evaluate(options, state);
|
|
86209
|
-
const paddingObject = getPaddingObject(padding);
|
|
86210
|
-
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
86211
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
86212
|
-
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
86213
|
-
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
86214
|
-
boundary,
|
|
86215
|
-
rootBoundary,
|
|
86216
|
-
strategy
|
|
86217
|
-
}));
|
|
86218
|
-
const rect = elementContext === "floating" ? {
|
|
86219
|
-
x: x3,
|
|
86220
|
-
y: y4,
|
|
86221
|
-
width: rects.floating.width,
|
|
86222
|
-
height: rects.floating.height
|
|
86223
|
-
} : rects.reference;
|
|
86224
|
-
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
86225
|
-
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
86226
|
-
x: 1,
|
|
86227
|
-
y: 1
|
|
86228
|
-
} : {
|
|
86229
|
-
x: 1,
|
|
86230
|
-
y: 1
|
|
86231
|
-
};
|
|
86232
|
-
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
86233
|
-
elements,
|
|
86234
|
-
rect,
|
|
86235
|
-
offsetParent,
|
|
86236
|
-
strategy
|
|
86237
|
-
}) : rect);
|
|
86238
|
-
return {
|
|
86239
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
86240
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
86241
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
86242
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
86243
|
-
};
|
|
86244
|
-
}
|
|
86245
86283
|
var arrow = (options) => ({
|
|
86246
86284
|
name: "arrow",
|
|
86247
86285
|
options,
|
|
@@ -86343,7 +86381,7 @@ var flip = function(options) {
|
|
|
86343
86381
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
86344
86382
|
}
|
|
86345
86383
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
86346
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
86384
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
86347
86385
|
const overflows = [];
|
|
86348
86386
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
86349
86387
|
if (checkMainAxis) {
|
|
@@ -86492,7 +86530,8 @@ var shift = function(options) {
|
|
|
86492
86530
|
const {
|
|
86493
86531
|
x: x3,
|
|
86494
86532
|
y: y4,
|
|
86495
|
-
placement
|
|
86533
|
+
placement,
|
|
86534
|
+
platform: platform2
|
|
86496
86535
|
} = state;
|
|
86497
86536
|
const {
|
|
86498
86537
|
mainAxis: checkMainAxis = true,
|
|
@@ -86515,7 +86554,7 @@ var shift = function(options) {
|
|
|
86515
86554
|
x: x3,
|
|
86516
86555
|
y: y4
|
|
86517
86556
|
};
|
|
86518
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
86557
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
86519
86558
|
const crossAxis = getSideAxis(getSide(placement));
|
|
86520
86559
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
86521
86560
|
let mainAxisCoord = coords2[mainAxis];
|
|
@@ -86573,7 +86612,7 @@ var size = function(options) {
|
|
|
86573
86612
|
},
|
|
86574
86613
|
...detectOverflowOptions
|
|
86575
86614
|
} = evaluate(options, state);
|
|
86576
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
86615
|
+
const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
|
|
86577
86616
|
const side = getSide(placement);
|
|
86578
86617
|
const alignment = getAlignment(placement);
|
|
86579
86618
|
const isYAxis = getSideAxis(placement) === "y";
|
|
@@ -86674,7 +86713,6 @@ function isShadowRoot(value) {
|
|
|
86674
86713
|
}
|
|
86675
86714
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
86676
86715
|
}
|
|
86677
|
-
var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
86678
86716
|
function isOverflowElement(element) {
|
|
86679
86717
|
const {
|
|
86680
86718
|
overflow,
|
|
@@ -86682,29 +86720,31 @@ function isOverflowElement(element) {
|
|
|
86682
86720
|
overflowY,
|
|
86683
86721
|
display
|
|
86684
86722
|
} = getComputedStyle2(element);
|
|
86685
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) &&
|
|
86723
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
|
|
86686
86724
|
}
|
|
86687
|
-
var tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
86688
86725
|
function isTableElement(element) {
|
|
86689
|
-
return
|
|
86726
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
86690
86727
|
}
|
|
86691
|
-
var topLayerSelectors = [":popover-open", ":modal"];
|
|
86692
86728
|
function isTopLayer(element) {
|
|
86693
|
-
|
|
86694
|
-
|
|
86695
|
-
return
|
|
86696
|
-
} catch (_e) {
|
|
86697
|
-
return false;
|
|
86729
|
+
try {
|
|
86730
|
+
if (element.matches(":popover-open")) {
|
|
86731
|
+
return true;
|
|
86698
86732
|
}
|
|
86699
|
-
})
|
|
86733
|
+
} catch (_e) {
|
|
86734
|
+
}
|
|
86735
|
+
try {
|
|
86736
|
+
return element.matches(":modal");
|
|
86737
|
+
} catch (_e) {
|
|
86738
|
+
return false;
|
|
86739
|
+
}
|
|
86700
86740
|
}
|
|
86701
|
-
var
|
|
86702
|
-
var
|
|
86703
|
-
var
|
|
86741
|
+
var willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
86742
|
+
var containRe = /paint|layout|strict|content/;
|
|
86743
|
+
var isNotNone = (value) => !!value && value !== "none";
|
|
86744
|
+
var isWebKitValue;
|
|
86704
86745
|
function isContainingBlock(elementOrCss) {
|
|
86705
|
-
const webkit = isWebKit();
|
|
86706
86746
|
const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
|
|
86707
|
-
return
|
|
86747
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
|
|
86708
86748
|
}
|
|
86709
86749
|
function getContainingBlock(element) {
|
|
86710
86750
|
let currentNode = getParentNode(element);
|
|
@@ -86719,12 +86759,13 @@ function getContainingBlock(element) {
|
|
|
86719
86759
|
return null;
|
|
86720
86760
|
}
|
|
86721
86761
|
function isWebKit() {
|
|
86722
|
-
if (
|
|
86723
|
-
|
|
86762
|
+
if (isWebKitValue == null) {
|
|
86763
|
+
isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
|
|
86764
|
+
}
|
|
86765
|
+
return isWebKitValue;
|
|
86724
86766
|
}
|
|
86725
|
-
var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
86726
86767
|
function isLastTraversableNode(node) {
|
|
86727
|
-
return
|
|
86768
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
86728
86769
|
}
|
|
86729
86770
|
function getComputedStyle2(element) {
|
|
86730
86771
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -86778,8 +86819,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
86778
86819
|
if (isBody) {
|
|
86779
86820
|
const frameElement = getFrameElement(win);
|
|
86780
86821
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
86822
|
+
} else {
|
|
86823
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
86781
86824
|
}
|
|
86782
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
86783
86825
|
}
|
|
86784
86826
|
function getFrameElement(win) {
|
|
86785
86827
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
@@ -86943,7 +86985,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
86943
86985
|
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
86944
86986
|
scroll = getNodeScroll(offsetParent);
|
|
86945
86987
|
}
|
|
86946
|
-
if (
|
|
86988
|
+
if (isOffsetParentAnElement) {
|
|
86947
86989
|
const offsetRect = getBoundingClientRect(offsetParent);
|
|
86948
86990
|
scale2 = getScale(offsetParent);
|
|
86949
86991
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
@@ -87017,7 +87059,6 @@ function getViewportRect(element, strategy) {
|
|
|
87017
87059
|
y: y4
|
|
87018
87060
|
};
|
|
87019
87061
|
}
|
|
87020
|
-
var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
87021
87062
|
function getInnerBoundingClientRect(element, strategy) {
|
|
87022
87063
|
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
87023
87064
|
const top = clientRect.top + element.clientTop;
|
|
@@ -87075,7 +87116,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
87075
87116
|
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
87076
87117
|
currentContainingBlockComputedStyle = null;
|
|
87077
87118
|
}
|
|
87078
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle &&
|
|
87119
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
87079
87120
|
if (shouldDropCurrentNode) {
|
|
87080
87121
|
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
87081
87122
|
} else {
|
|
@@ -87095,20 +87136,23 @@ function getClippingRect(_ref) {
|
|
|
87095
87136
|
} = _ref;
|
|
87096
87137
|
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
87097
87138
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
87098
|
-
const
|
|
87099
|
-
|
|
87100
|
-
|
|
87101
|
-
|
|
87102
|
-
|
|
87103
|
-
|
|
87104
|
-
|
|
87105
|
-
|
|
87106
|
-
|
|
87139
|
+
const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
|
|
87140
|
+
let top = firstRect.top;
|
|
87141
|
+
let right = firstRect.right;
|
|
87142
|
+
let bottom = firstRect.bottom;
|
|
87143
|
+
let left = firstRect.left;
|
|
87144
|
+
for (let i10 = 1; i10 < clippingAncestors.length; i10++) {
|
|
87145
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i10], strategy);
|
|
87146
|
+
top = max(rect.top, top);
|
|
87147
|
+
right = min(rect.right, right);
|
|
87148
|
+
bottom = min(rect.bottom, bottom);
|
|
87149
|
+
left = max(rect.left, left);
|
|
87150
|
+
}
|
|
87107
87151
|
return {
|
|
87108
|
-
width:
|
|
87109
|
-
height:
|
|
87110
|
-
x:
|
|
87111
|
-
y:
|
|
87152
|
+
width: right - left,
|
|
87153
|
+
height: bottom - top,
|
|
87154
|
+
x: left,
|
|
87155
|
+
y: top
|
|
87112
87156
|
};
|
|
87113
87157
|
}
|
|
87114
87158
|
function getDimensions(element) {
|
|
@@ -87317,7 +87361,7 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
87317
87361
|
animationFrame = false
|
|
87318
87362
|
} = options;
|
|
87319
87363
|
const referenceEl = unwrapElement(reference);
|
|
87320
|
-
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
87364
|
+
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
|
|
87321
87365
|
ancestors.forEach((ancestor) => {
|
|
87322
87366
|
ancestorScroll && ancestor.addEventListener("scroll", update2, {
|
|
87323
87367
|
passive: true
|
|
@@ -87330,7 +87374,7 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
87330
87374
|
if (elementResize) {
|
|
87331
87375
|
resizeObserver = new ResizeObserver((_ref) => {
|
|
87332
87376
|
let [firstEntry] = _ref;
|
|
87333
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
87377
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
|
|
87334
87378
|
resizeObserver.unobserve(floating);
|
|
87335
87379
|
cancelAnimationFrame(reobserveFrame);
|
|
87336
87380
|
reobserveFrame = requestAnimationFrame(() => {
|
|
@@ -87343,7 +87387,9 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
87343
87387
|
if (referenceEl && !animationFrame) {
|
|
87344
87388
|
resizeObserver.observe(referenceEl);
|
|
87345
87389
|
}
|
|
87346
|
-
|
|
87390
|
+
if (floating) {
|
|
87391
|
+
resizeObserver.observe(floating);
|
|
87392
|
+
}
|
|
87347
87393
|
}
|
|
87348
87394
|
let frameId;
|
|
87349
87395
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -94644,8 +94690,8 @@ self.QrCreator = H2;
|
|
|
94644
94690
|
h7 = c8.size / e12;
|
|
94645
94691
|
a6.beginPath();
|
|
94646
94692
|
for (r11 = 0; r11 < e12; r11 += 1) for (b4 = 0; b4 < e12; b4 += 1) {
|
|
94647
|
-
var g3 = a6, x3 = c8.left + b4 * h7, u5 = c8.top + r11 * h7, p6 = r11, q = b4, f5 = d4.a, k3 = x3 + h7, m5 = u5 + h7,
|
|
94648
|
-
|
|
94693
|
+
var g3 = a6, x3 = c8.left + b4 * h7, u5 = c8.top + r11 * h7, p6 = r11, q = b4, f5 = d4.a, k3 = x3 + h7, m5 = u5 + h7, D3 = p6 - 1, E3 = p6 + 1, n13 = q - 1, l7 = q + 1, y5 = Math.floor(Math.min(0.5, Math.max(0, c8.R)) * h7), v4 = f5(p6, q), I3 = f5(D3, n13), w4 = f5(D3, q);
|
|
94694
|
+
D3 = f5(D3, l7);
|
|
94649
94695
|
var F = f5(p6, l7);
|
|
94650
94696
|
l7 = f5(E3, l7);
|
|
94651
94697
|
q = f5(
|
|
@@ -94658,7 +94704,7 @@ self.QrCreator = H2;
|
|
|
94658
94704
|
u5 = Math.round(u5);
|
|
94659
94705
|
k3 = Math.round(k3);
|
|
94660
94706
|
m5 = Math.round(m5);
|
|
94661
|
-
v4 ? C3(g3, x3, u5, k3, m5, y5, !w4 && !p6, !w4 && !F, !q && !F, !q && !p6) : z3(g3, x3, u5, k3, m5, y5, w4 && p6 && I3, w4 && F &&
|
|
94707
|
+
v4 ? C3(g3, x3, u5, k3, m5, y5, !w4 && !p6, !w4 && !F, !q && !F, !q && !p6) : z3(g3, x3, u5, k3, m5, y5, w4 && p6 && I3, w4 && F && D3, q && F && l7, q && p6 && E3);
|
|
94662
94708
|
}
|
|
94663
94709
|
A3(a6, c8);
|
|
94664
94710
|
a6.fill();
|
|
@@ -97043,10 +97089,10 @@ var n10 = e6(class extends f3 {
|
|
|
97043
97089
|
}
|
|
97044
97090
|
update(i10, [s7]) {
|
|
97045
97091
|
const e12 = s7 !== this.G;
|
|
97046
|
-
return e12 &&
|
|
97092
|
+
return e12 && this.rt(void 0), (e12 || this.lt !== this.ct) && (this.G = s7, this.ht = i10.options?.host, this.rt(this.ct = i10.element)), A;
|
|
97047
97093
|
}
|
|
97048
97094
|
rt(t8) {
|
|
97049
|
-
if (this.isConnected || (t8 = void 0), "function" == typeof this.G) {
|
|
97095
|
+
if (void 0 !== this.G) if (this.isConnected || (t8 = void 0), "function" == typeof this.G) {
|
|
97050
97096
|
const i10 = this.ht ?? globalThis;
|
|
97051
97097
|
let s7 = o11.get(i10);
|
|
97052
97098
|
void 0 === s7 && (s7 = /* @__PURE__ */ new WeakMap(), o11.set(i10, s7)), void 0 !== s7.get(this.G) && this.G.call(this.ht, void 0), s7.set(this.G, t8), void 0 !== t8 && this.G.call(this.ht, t8);
|
|
@@ -105716,8 +105762,8 @@ var __runInitializers = (array2, flags, self2, value) => {
|
|
|
105716
105762
|
};
|
|
105717
105763
|
var __decorateElement = (array2, flags, name, decorators, target, extra) => {
|
|
105718
105764
|
var fn, it, done, ctx, access, k23 = flags & 7, s42 = !!(flags & 8), p32 = !!(flags & 16);
|
|
105719
|
-
var
|
|
105720
|
-
var initializers = k23 > 3 && (array2[
|
|
105765
|
+
var j2 = k23 > 3 ? array2.length + 1 : k23 ? s42 ? 1 : 2 : 0, key = __decoratorStrings[k23 + 5];
|
|
105766
|
+
var initializers = k23 > 3 && (array2[j2 - 1] = []), extraInitializers = array2[j2] || (array2[j2] = []);
|
|
105721
105767
|
var desc = k23 && (!p32 && !s42 && (target = target.prototype), k23 < 5 && (k23 > 3 || !p32) && __getOwnPropDesc3(k23 < 4 ? target : { get [name]() {
|
|
105722
105768
|
return __privateGet2(this, extra);
|
|
105723
105769
|
}, set [name](x22) {
|
|
@@ -105923,13 +105969,15 @@ var y3 = class extends HTMLElement {
|
|
|
105923
105969
|
const i52 = this.constructor, e52 = i52._$Eh.get(t32);
|
|
105924
105970
|
if (void 0 !== e52 && this._$Em !== e52) {
|
|
105925
105971
|
const t42 = i52.getPropertyOptions(e52), h32 = "function" == typeof t42.converter ? { fromAttribute: t42.converter } : void 0 !== t42.converter?.fromAttribute ? t42.converter : u4;
|
|
105926
|
-
this._$Em = e52
|
|
105972
|
+
this._$Em = e52;
|
|
105973
|
+
const r52 = h32.fromAttribute(s42, t42.type);
|
|
105974
|
+
this[e52] = r52 ?? this._$Ej?.get(e52) ?? r52, this._$Em = null;
|
|
105927
105975
|
}
|
|
105928
105976
|
}
|
|
105929
|
-
requestUpdate(t32, s42, i52) {
|
|
105977
|
+
requestUpdate(t32, s42, i52, e52 = false, h32) {
|
|
105930
105978
|
if (void 0 !== t32) {
|
|
105931
|
-
const
|
|
105932
|
-
if (i52 ??=
|
|
105979
|
+
const r52 = this.constructor;
|
|
105980
|
+
if (false === e52 && (h32 = this[t32]), i52 ??= r52.getPropertyOptions(t32), !((i52.hasChanged ?? f4)(h32, s42) || i52.useDefault && i52.reflect && h32 === this._$Ej?.get(t32) && !this.hasAttribute(r52._$Eu(t32, i52)))) return;
|
|
105933
105981
|
this.C(t32, s42, i52);
|
|
105934
105982
|
}
|
|
105935
105983
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -105997,96 +106045,97 @@ var y3 = class extends HTMLElement {
|
|
|
105997
106045
|
firstUpdated(t32) {
|
|
105998
106046
|
}
|
|
105999
106047
|
};
|
|
106000
|
-
y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p4?.({ ReactiveElement: y3 }), (a4.reactiveElementVersions ??= []).push("2.1.
|
|
106048
|
+
y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p4?.({ ReactiveElement: y3 }), (a4.reactiveElementVersions ??= []).push("2.1.2");
|
|
106001
106049
|
var t22 = globalThis;
|
|
106002
|
-
var i32 =
|
|
106003
|
-
var s22 =
|
|
106004
|
-
var e32 = "
|
|
106005
|
-
var h22 =
|
|
106006
|
-
var o32 =
|
|
106007
|
-
var n32 =
|
|
106008
|
-
var r32 =
|
|
106009
|
-
var l22 =
|
|
106010
|
-
var c32 = (
|
|
106011
|
-
var a22 =
|
|
106012
|
-
var u22 =
|
|
106013
|
-
var d22 = "[
|
|
106014
|
-
var f22 =
|
|
106015
|
-
var v2 =
|
|
106016
|
-
var _2 =
|
|
106017
|
-
var m3 =
|
|
106050
|
+
var i32 = (t32) => t32;
|
|
106051
|
+
var s22 = t22.trustedTypes;
|
|
106052
|
+
var e32 = s22 ? s22.createPolicy("lit-html", { createHTML: (t32) => t32 }) : void 0;
|
|
106053
|
+
var h22 = "$lit$";
|
|
106054
|
+
var o32 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
106055
|
+
var n32 = "?" + o32;
|
|
106056
|
+
var r32 = `<${n32}>`;
|
|
106057
|
+
var l22 = document;
|
|
106058
|
+
var c32 = () => l22.createComment("");
|
|
106059
|
+
var a22 = (t32) => null === t32 || "object" != typeof t32 && "function" != typeof t32;
|
|
106060
|
+
var u22 = Array.isArray;
|
|
106061
|
+
var d22 = (t32) => u22(t32) || "function" == typeof t32?.[Symbol.iterator];
|
|
106062
|
+
var f22 = "[ \n\f\r]";
|
|
106063
|
+
var v2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
106064
|
+
var _2 = /-->/g;
|
|
106065
|
+
var m3 = />/g;
|
|
106066
|
+
var p22 = RegExp(`>|${f22}(?:([^\\s"'>=/]+)(${f22}*=${f22}*(?:[^
|
|
106018
106067
|
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
106019
|
-
var
|
|
106020
|
-
var
|
|
106021
|
-
var
|
|
106022
|
-
var
|
|
106023
|
-
var
|
|
106024
|
-
var
|
|
106025
|
-
var
|
|
106026
|
-
var
|
|
106027
|
-
var
|
|
106028
|
-
var
|
|
106029
|
-
var
|
|
106030
|
-
function
|
|
106031
|
-
if (!
|
|
106032
|
-
return void 0 !==
|
|
106033
|
-
}
|
|
106034
|
-
var
|
|
106035
|
-
const s42 = t32.length - 1,
|
|
106036
|
-
let
|
|
106068
|
+
var g2 = /'/g;
|
|
106069
|
+
var $3 = /"/g;
|
|
106070
|
+
var y22 = /^(?:script|style|textarea|title)$/i;
|
|
106071
|
+
var x2 = (t32) => (i52, ...s42) => ({ _$litType$: t32, strings: i52, values: s42 });
|
|
106072
|
+
var b22 = x2(1);
|
|
106073
|
+
var w2 = x2(2);
|
|
106074
|
+
var T2 = x2(3);
|
|
106075
|
+
var E2 = Symbol.for("lit-noChange");
|
|
106076
|
+
var A2 = Symbol.for("lit-nothing");
|
|
106077
|
+
var C2 = /* @__PURE__ */ new WeakMap();
|
|
106078
|
+
var P2 = l22.createTreeWalker(l22, 129);
|
|
106079
|
+
function V2(t32, i52) {
|
|
106080
|
+
if (!u22(t32) || !t32.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
106081
|
+
return void 0 !== e32 ? e32.createHTML(i52) : i52;
|
|
106082
|
+
}
|
|
106083
|
+
var N2 = (t32, i52) => {
|
|
106084
|
+
const s42 = t32.length - 1, e52 = [];
|
|
106085
|
+
let n52, l32 = 2 === i52 ? "<svg>" : 3 === i52 ? "<math>" : "", c42 = v2;
|
|
106037
106086
|
for (let i62 = 0; i62 < s42; i62++) {
|
|
106038
106087
|
const s52 = t32[i62];
|
|
106039
|
-
let a33, u32, d32 = -1,
|
|
106040
|
-
for (;
|
|
106041
|
-
const x22 = c42 ===
|
|
106042
|
-
l32 += c42 ===
|
|
106088
|
+
let a33, u32, d32 = -1, f32 = 0;
|
|
106089
|
+
for (; f32 < s52.length && (c42.lastIndex = f32, u32 = c42.exec(s52), null !== u32); ) f32 = c42.lastIndex, c42 === v2 ? "!--" === u32[1] ? c42 = _2 : void 0 !== u32[1] ? c42 = m3 : void 0 !== u32[2] ? (y22.test(u32[2]) && (n52 = RegExp("</" + u32[2], "g")), c42 = p22) : void 0 !== u32[3] && (c42 = p22) : c42 === p22 ? ">" === u32[0] ? (c42 = n52 ?? v2, d32 = -1) : void 0 === u32[1] ? d32 = -2 : (d32 = c42.lastIndex - u32[2].length, a33 = u32[1], c42 = void 0 === u32[3] ? p22 : '"' === u32[3] ? $3 : g2) : c42 === $3 || c42 === g2 ? c42 = p22 : c42 === _2 || c42 === m3 ? c42 = v2 : (c42 = p22, n52 = void 0);
|
|
106090
|
+
const x22 = c42 === p22 && t32[i62 + 1].startsWith("/>") ? " " : "";
|
|
106091
|
+
l32 += c42 === v2 ? s52 + r32 : d32 >= 0 ? (e52.push(a33), s52.slice(0, d32) + h22 + s52.slice(d32) + o32 + x22) : s52 + o32 + (-2 === d32 ? i62 : x22);
|
|
106043
106092
|
}
|
|
106044
|
-
return [
|
|
106093
|
+
return [V2(t32, l32 + (t32[s42] || "<?>") + (2 === i52 ? "</svg>" : 3 === i52 ? "</math>" : "")), e52];
|
|
106045
106094
|
};
|
|
106046
|
-
var
|
|
106047
|
-
constructor({ strings: t32, _$litType$:
|
|
106095
|
+
var S22 = class _S {
|
|
106096
|
+
constructor({ strings: t32, _$litType$: i52 }, e52) {
|
|
106048
106097
|
let r52;
|
|
106049
106098
|
this.parts = [];
|
|
106050
|
-
let
|
|
106051
|
-
const u32 = t32.length - 1, d32 = this.parts, [f32, v22] =
|
|
106052
|
-
if (this.el =
|
|
106099
|
+
let l32 = 0, a33 = 0;
|
|
106100
|
+
const u32 = t32.length - 1, d32 = this.parts, [f32, v22] = N2(t32, i52);
|
|
106101
|
+
if (this.el = _S.createElement(f32, e52), P2.currentNode = this.el.content, 2 === i52 || 3 === i52) {
|
|
106053
106102
|
const t42 = this.el.content.firstChild;
|
|
106054
106103
|
t42.replaceWith(...t42.childNodes);
|
|
106055
106104
|
}
|
|
106056
|
-
for (; null !== (r52 =
|
|
106105
|
+
for (; null !== (r52 = P2.nextNode()) && d32.length < u32; ) {
|
|
106057
106106
|
if (1 === r52.nodeType) {
|
|
106058
|
-
if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(
|
|
106059
|
-
const
|
|
106060
|
-
d32.push({ type: 1, index:
|
|
106061
|
-
} else t42.startsWith(
|
|
106062
|
-
if (
|
|
106063
|
-
const t42 = r52.textContent.split(
|
|
106064
|
-
if (
|
|
106065
|
-
r52.textContent =
|
|
106066
|
-
for (let
|
|
106067
|
-
r52.append(t42[
|
|
106068
|
-
}
|
|
106069
|
-
}
|
|
106070
|
-
} else if (8 === r52.nodeType) if (r52.data ===
|
|
106107
|
+
if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(h22)) {
|
|
106108
|
+
const i62 = v22[a33++], s42 = r52.getAttribute(t42).split(o32), e62 = /([.?@])?(.*)/.exec(i62);
|
|
106109
|
+
d32.push({ type: 1, index: l32, name: e62[2], strings: s42, ctor: "." === e62[1] ? I2 : "?" === e62[1] ? L2 : "@" === e62[1] ? z2 : H3 }), r52.removeAttribute(t42);
|
|
106110
|
+
} else t42.startsWith(o32) && (d32.push({ type: 6, index: l32 }), r52.removeAttribute(t42));
|
|
106111
|
+
if (y22.test(r52.tagName)) {
|
|
106112
|
+
const t42 = r52.textContent.split(o32), i62 = t42.length - 1;
|
|
106113
|
+
if (i62 > 0) {
|
|
106114
|
+
r52.textContent = s22 ? s22.emptyScript : "";
|
|
106115
|
+
for (let s42 = 0; s42 < i62; s42++) r52.append(t42[s42], c32()), P2.nextNode(), d32.push({ type: 2, index: ++l32 });
|
|
106116
|
+
r52.append(t42[i62], c32());
|
|
106117
|
+
}
|
|
106118
|
+
}
|
|
106119
|
+
} else if (8 === r52.nodeType) if (r52.data === n32) d32.push({ type: 2, index: l32 });
|
|
106071
106120
|
else {
|
|
106072
106121
|
let t42 = -1;
|
|
106073
|
-
for (; -1 !== (t42 = r52.data.indexOf(
|
|
106122
|
+
for (; -1 !== (t42 = r52.data.indexOf(o32, t42 + 1)); ) d32.push({ type: 7, index: l32 }), t42 += o32.length - 1;
|
|
106074
106123
|
}
|
|
106075
|
-
|
|
106124
|
+
l32++;
|
|
106076
106125
|
}
|
|
106077
106126
|
}
|
|
106078
106127
|
static createElement(t32, i52) {
|
|
106079
|
-
const s42 =
|
|
106128
|
+
const s42 = l22.createElement("template");
|
|
106080
106129
|
return s42.innerHTML = t32, s42;
|
|
106081
106130
|
}
|
|
106082
106131
|
};
|
|
106083
|
-
function
|
|
106084
|
-
if (i52 ===
|
|
106132
|
+
function M2(t32, i52, s42 = t32, e52) {
|
|
106133
|
+
if (i52 === E2) return i52;
|
|
106085
106134
|
let h32 = void 0 !== e52 ? s42._$Co?.[e52] : s42._$Cl;
|
|
106086
|
-
const o62 =
|
|
106087
|
-
return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i52 =
|
|
106135
|
+
const o62 = a22(i52) ? void 0 : i52._$litDirective$;
|
|
106136
|
+
return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i52 = M2(t32, h32._$AS(t32, i52.values), h32, e52)), i52;
|
|
106088
106137
|
}
|
|
106089
|
-
var
|
|
106138
|
+
var R2 = class {
|
|
106090
106139
|
constructor(t32, i52) {
|
|
106091
106140
|
this._$AV = [], this._$AN = void 0, this._$AD = t32, this._$AM = i52;
|
|
106092
106141
|
}
|
|
@@ -106097,29 +106146,29 @@ var M2 = class {
|
|
|
106097
106146
|
return this._$AM._$AU;
|
|
106098
106147
|
}
|
|
106099
106148
|
u(t32) {
|
|
106100
|
-
const { el: { content: i52 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ??
|
|
106101
|
-
|
|
106102
|
-
let h32 =
|
|
106103
|
-
for (; void 0 !==
|
|
106104
|
-
if (o62 ===
|
|
106149
|
+
const { el: { content: i52 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ?? l22).importNode(i52, true);
|
|
106150
|
+
P2.currentNode = e52;
|
|
106151
|
+
let h32 = P2.nextNode(), o62 = 0, n52 = 0, r52 = s42[0];
|
|
106152
|
+
for (; void 0 !== r52; ) {
|
|
106153
|
+
if (o62 === r52.index) {
|
|
106105
106154
|
let i62;
|
|
106106
|
-
2 ===
|
|
106155
|
+
2 === r52.type ? i62 = new k2(h32, h32.nextSibling, this, t32) : 1 === r52.type ? i62 = new r52.ctor(h32, r52.name, r52.strings, this, t32) : 6 === r52.type && (i62 = new Z2(h32, this, t32)), this._$AV.push(i62), r52 = s42[++n52];
|
|
106107
106156
|
}
|
|
106108
|
-
o62 !==
|
|
106157
|
+
o62 !== r52?.index && (h32 = P2.nextNode(), o62++);
|
|
106109
106158
|
}
|
|
106110
|
-
return
|
|
106159
|
+
return P2.currentNode = l22, e52;
|
|
106111
106160
|
}
|
|
106112
106161
|
p(t32) {
|
|
106113
106162
|
let i52 = 0;
|
|
106114
106163
|
for (const s42 of this._$AV) void 0 !== s42 && (void 0 !== s42.strings ? (s42._$AI(t32, s42, i52), i52 += s42.strings.length - 2) : s42._$AI(t32[i52])), i52++;
|
|
106115
106164
|
}
|
|
106116
106165
|
};
|
|
106117
|
-
var
|
|
106166
|
+
var k2 = class _k {
|
|
106118
106167
|
get _$AU() {
|
|
106119
106168
|
return this._$AM?._$AU ?? this._$Cv;
|
|
106120
106169
|
}
|
|
106121
106170
|
constructor(t32, i52, s42, e52) {
|
|
106122
|
-
this.type = 2, this._$AH =
|
|
106171
|
+
this.type = 2, this._$AH = A2, this._$AN = void 0, this._$AA = t32, this._$AB = i52, this._$AM = s42, this.options = e52, this._$Cv = e52?.isConnected ?? true;
|
|
106123
106172
|
}
|
|
106124
106173
|
get parentNode() {
|
|
106125
106174
|
let t32 = this._$AA.parentNode;
|
|
@@ -106133,7 +106182,7 @@ var R2 = class _R {
|
|
|
106133
106182
|
return this._$AB;
|
|
106134
106183
|
}
|
|
106135
106184
|
_$AI(t32, i52 = this) {
|
|
106136
|
-
t32 =
|
|
106185
|
+
t32 = M2(this, t32, i52), a22(t32) ? t32 === A2 || null == t32 || "" === t32 ? (this._$AH !== A2 && this._$AR(), this._$AH = A2) : t32 !== this._$AH && t32 !== E2 && this._(t32) : void 0 !== t32._$litType$ ? this.$(t32) : void 0 !== t32.nodeType ? this.T(t32) : d22(t32) ? this.k(t32) : this._(t32);
|
|
106137
106186
|
}
|
|
106138
106187
|
O(t32) {
|
|
106139
106188
|
return this._$AA.parentNode.insertBefore(t32, this._$AB);
|
|
@@ -106142,38 +106191,38 @@ var R2 = class _R {
|
|
|
106142
106191
|
this._$AH !== t32 && (this._$AR(), this._$AH = this.O(t32));
|
|
106143
106192
|
}
|
|
106144
106193
|
_(t32) {
|
|
106145
|
-
this._$AH !==
|
|
106194
|
+
this._$AH !== A2 && a22(this._$AH) ? this._$AA.nextSibling.data = t32 : this.T(l22.createTextNode(t32)), this._$AH = t32;
|
|
106146
106195
|
}
|
|
106147
106196
|
$(t32) {
|
|
106148
|
-
const { values: i52, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el =
|
|
106197
|
+
const { values: i52, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el = S22.createElement(V2(s42.h, s42.h[0]), this.options)), s42);
|
|
106149
106198
|
if (this._$AH?._$AD === e52) this._$AH.p(i52);
|
|
106150
106199
|
else {
|
|
106151
|
-
const t42 = new
|
|
106200
|
+
const t42 = new R2(e52, this), s52 = t42.u(this.options);
|
|
106152
106201
|
t42.p(i52), this.T(s52), this._$AH = t42;
|
|
106153
106202
|
}
|
|
106154
106203
|
}
|
|
106155
106204
|
_$AC(t32) {
|
|
106156
|
-
let i52 =
|
|
106157
|
-
return void 0 === i52 &&
|
|
106205
|
+
let i52 = C2.get(t32.strings);
|
|
106206
|
+
return void 0 === i52 && C2.set(t32.strings, i52 = new S22(t32)), i52;
|
|
106158
106207
|
}
|
|
106159
106208
|
k(t32) {
|
|
106160
|
-
|
|
106209
|
+
u22(this._$AH) || (this._$AH = [], this._$AR());
|
|
106161
106210
|
const i52 = this._$AH;
|
|
106162
106211
|
let s42, e52 = 0;
|
|
106163
|
-
for (const h32 of t32) e52 === i52.length ? i52.push(s42 = new
|
|
106212
|
+
for (const h32 of t32) e52 === i52.length ? i52.push(s42 = new _k(this.O(c32()), this.O(c32()), this, this.options)) : s42 = i52[e52], s42._$AI(h32), e52++;
|
|
106164
106213
|
e52 < i52.length && (this._$AR(s42 && s42._$AB.nextSibling, e52), i52.length = e52);
|
|
106165
106214
|
}
|
|
106166
|
-
_$AR(t32 = this._$AA.nextSibling,
|
|
106167
|
-
for (this._$AP?.(false, true,
|
|
106168
|
-
const
|
|
106169
|
-
t32.remove(), t32 =
|
|
106215
|
+
_$AR(t32 = this._$AA.nextSibling, s42) {
|
|
106216
|
+
for (this._$AP?.(false, true, s42); t32 !== this._$AB; ) {
|
|
106217
|
+
const s52 = i32(t32).nextSibling;
|
|
106218
|
+
i32(t32).remove(), t32 = s52;
|
|
106170
106219
|
}
|
|
106171
106220
|
}
|
|
106172
106221
|
setConnected(t32) {
|
|
106173
106222
|
void 0 === this._$AM && (this._$Cv = t32, this._$AP?.(t32));
|
|
106174
106223
|
}
|
|
106175
106224
|
};
|
|
106176
|
-
var
|
|
106225
|
+
var H3 = class {
|
|
106177
106226
|
get tagName() {
|
|
106178
106227
|
return this.element.tagName;
|
|
106179
106228
|
}
|
|
@@ -106181,53 +106230,53 @@ var k2 = class {
|
|
|
106181
106230
|
return this._$AM._$AU;
|
|
106182
106231
|
}
|
|
106183
106232
|
constructor(t32, i52, s42, e52, h32) {
|
|
106184
|
-
this.type = 1, this._$AH =
|
|
106233
|
+
this.type = 1, this._$AH = A2, this._$AN = void 0, this.element = t32, this.name = i52, this._$AM = e52, this.options = h32, s42.length > 2 || "" !== s42[0] || "" !== s42[1] ? (this._$AH = Array(s42.length - 1).fill(new String()), this.strings = s42) : this._$AH = A2;
|
|
106185
106234
|
}
|
|
106186
106235
|
_$AI(t32, i52 = this, s42, e52) {
|
|
106187
106236
|
const h32 = this.strings;
|
|
106188
106237
|
let o62 = false;
|
|
106189
|
-
if (void 0 === h32) t32 =
|
|
106238
|
+
if (void 0 === h32) t32 = M2(this, t32, i52, 0), o62 = !a22(t32) || t32 !== this._$AH && t32 !== E2, o62 && (this._$AH = t32);
|
|
106190
106239
|
else {
|
|
106191
106240
|
const e62 = t32;
|
|
106192
106241
|
let n52, r52;
|
|
106193
|
-
for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 =
|
|
106242
|
+
for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 = M2(this, e62[s42 + n52], i52, n52), r52 === E2 && (r52 = this._$AH[n52]), o62 ||= !a22(r52) || r52 !== this._$AH[n52], r52 === A2 ? t32 = A2 : t32 !== A2 && (t32 += (r52 ?? "") + h32[n52 + 1]), this._$AH[n52] = r52;
|
|
106194
106243
|
}
|
|
106195
106244
|
o62 && !e52 && this.j(t32);
|
|
106196
106245
|
}
|
|
106197
106246
|
j(t32) {
|
|
106198
|
-
t32 ===
|
|
106247
|
+
t32 === A2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t32 ?? "");
|
|
106199
106248
|
}
|
|
106200
106249
|
};
|
|
106201
|
-
var
|
|
106250
|
+
var I2 = class extends H3 {
|
|
106202
106251
|
constructor() {
|
|
106203
106252
|
super(...arguments), this.type = 3;
|
|
106204
106253
|
}
|
|
106205
106254
|
j(t32) {
|
|
106206
|
-
this.element[this.name] = t32 ===
|
|
106255
|
+
this.element[this.name] = t32 === A2 ? void 0 : t32;
|
|
106207
106256
|
}
|
|
106208
106257
|
};
|
|
106209
|
-
var
|
|
106258
|
+
var L2 = class extends H3 {
|
|
106210
106259
|
constructor() {
|
|
106211
106260
|
super(...arguments), this.type = 4;
|
|
106212
106261
|
}
|
|
106213
106262
|
j(t32) {
|
|
106214
|
-
this.element.toggleAttribute(this.name, !!t32 && t32 !==
|
|
106263
|
+
this.element.toggleAttribute(this.name, !!t32 && t32 !== A2);
|
|
106215
106264
|
}
|
|
106216
106265
|
};
|
|
106217
|
-
var
|
|
106266
|
+
var z2 = class extends H3 {
|
|
106218
106267
|
constructor(t32, i52, s42, e52, h32) {
|
|
106219
106268
|
super(t32, i52, s42, e52, h32), this.type = 5;
|
|
106220
106269
|
}
|
|
106221
106270
|
_$AI(t32, i52 = this) {
|
|
106222
|
-
if ((t32 =
|
|
106223
|
-
const s42 = this._$AH, e52 = t32 ===
|
|
106271
|
+
if ((t32 = M2(this, t32, i52, 0) ?? A2) === E2) return;
|
|
106272
|
+
const s42 = this._$AH, e52 = t32 === A2 && s42 !== A2 || t32.capture !== s42.capture || t32.once !== s42.once || t32.passive !== s42.passive, h32 = t32 !== A2 && (s42 === A2 || e52);
|
|
106224
106273
|
e52 && this.element.removeEventListener(this.name, this, s42), h32 && this.element.addEventListener(this.name, this, t32), this._$AH = t32;
|
|
106225
106274
|
}
|
|
106226
106275
|
handleEvent(t32) {
|
|
106227
106276
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t32) : this._$AH.handleEvent(t32);
|
|
106228
106277
|
}
|
|
106229
106278
|
};
|
|
106230
|
-
var
|
|
106279
|
+
var Z2 = class {
|
|
106231
106280
|
constructor(t32, i52, s42) {
|
|
106232
106281
|
this.element = t32, this.type = 6, this._$AN = void 0, this._$AM = i52, this.options = s42;
|
|
106233
106282
|
}
|
|
@@ -106235,17 +106284,17 @@ var z2 = class {
|
|
|
106235
106284
|
return this._$AM._$AU;
|
|
106236
106285
|
}
|
|
106237
106286
|
_$AI(t32) {
|
|
106238
|
-
|
|
106287
|
+
M2(this, t32);
|
|
106239
106288
|
}
|
|
106240
106289
|
};
|
|
106241
|
-
var
|
|
106242
|
-
|
|
106243
|
-
var
|
|
106290
|
+
var B2 = t22.litHtmlPolyfillSupport;
|
|
106291
|
+
B2?.(S22, k2), (t22.litHtmlVersions ??= []).push("3.3.2");
|
|
106292
|
+
var D2 = (t32, i52, s42) => {
|
|
106244
106293
|
const e52 = s42?.renderBefore ?? i52;
|
|
106245
106294
|
let h32 = e52._$litPart$;
|
|
106246
106295
|
if (void 0 === h32) {
|
|
106247
106296
|
const t42 = s42?.renderBefore ?? null;
|
|
106248
|
-
e52._$litPart$ = h32 = new
|
|
106297
|
+
e52._$litPart$ = h32 = new k2(i52.insertBefore(c32(), t42), t42, void 0, s42 ?? {});
|
|
106249
106298
|
}
|
|
106250
106299
|
return h32._$AI(t32), h32;
|
|
106251
106300
|
};
|
|
@@ -106260,7 +106309,7 @@ var i42 = class extends y3 {
|
|
|
106260
106309
|
}
|
|
106261
106310
|
update(t32) {
|
|
106262
106311
|
const r52 = this.render();
|
|
106263
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t32), this._$Do =
|
|
106312
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t32), this._$Do = D2(r52, this.renderRoot, this.renderOptions);
|
|
106264
106313
|
}
|
|
106265
106314
|
connectedCallback() {
|
|
106266
106315
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -106269,13 +106318,13 @@ var i42 = class extends y3 {
|
|
|
106269
106318
|
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
106270
106319
|
}
|
|
106271
106320
|
render() {
|
|
106272
|
-
return
|
|
106321
|
+
return E2;
|
|
106273
106322
|
}
|
|
106274
106323
|
};
|
|
106275
106324
|
i42._$litElement$ = true, i42["finalized"] = true, s32.litElementHydrateSupport?.({ LitElement: i42 });
|
|
106276
106325
|
var o42 = s32.litElementPolyfillSupport;
|
|
106277
106326
|
o42?.({ LitElement: i42 });
|
|
106278
|
-
(s32.litElementVersions ??= []).push("4.2.
|
|
106327
|
+
(s32.litElementVersions ??= []).push("4.2.2");
|
|
106279
106328
|
var o52 = { attribute: true, type: String, converter: u4, reflect: false, hasChanged: f4 };
|
|
106280
106329
|
var r42 = (t32 = o52, e52, r52) => {
|
|
106281
106330
|
const { kind: n52, metadata: i52 } = r52;
|
|
@@ -106284,7 +106333,7 @@ var r42 = (t32 = o52, e52, r52) => {
|
|
|
106284
106333
|
const { name: o62 } = r52;
|
|
106285
106334
|
return { set(r62) {
|
|
106286
106335
|
const n62 = e52.get.call(this);
|
|
106287
|
-
e52.set.call(this, r62), this.requestUpdate(o62, n62, t32);
|
|
106336
|
+
e52.set.call(this, r62), this.requestUpdate(o62, n62, t32, true, r62);
|
|
106288
106337
|
}, init(e62) {
|
|
106289
106338
|
return void 0 !== e62 && this.C(o62, void 0, t32, e62), e62;
|
|
106290
106339
|
} };
|
|
@@ -106293,7 +106342,7 @@ var r42 = (t32 = o52, e52, r52) => {
|
|
|
106293
106342
|
const { name: o62 } = r52;
|
|
106294
106343
|
return function(r62) {
|
|
106295
106344
|
const n62 = this[o62];
|
|
106296
|
-
e52.call(this, r62), this.requestUpdate(o62, n62, t32);
|
|
106345
|
+
e52.call(this, r62), this.requestUpdate(o62, n62, t32, true, r62);
|
|
106297
106346
|
};
|
|
106298
106347
|
}
|
|
106299
106348
|
throw Error("Unsupported decorator location: " + n52);
|
|
@@ -106419,13 +106468,19 @@ var LitElementWw = class extends (_a = ScopedElementsMixin2(i42), _contentEditab
|
|
|
106419
106468
|
constructor() {
|
|
106420
106469
|
super(...arguments);
|
|
106421
106470
|
__runInitializers(_init, 5, this);
|
|
106422
|
-
__publicField2(this, "options");
|
|
106423
|
-
__publicField2(this, "actions", {});
|
|
106424
106471
|
__publicField2(this, "localize");
|
|
106425
106472
|
__privateAdd2(this, _contentEditable, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
|
|
106426
106473
|
__privateAdd2(this, _lang, "");
|
|
106427
106474
|
__publicField2(this, "_inTransaction", false);
|
|
106428
106475
|
}
|
|
106476
|
+
/** Declare attributes as options. Used by WebWriter to auto-generate input fields to modify these attributes. As the name suggests, this is mostly suited to simple attributes (boolean, string, etc.). As this is a getter, you can dynamically change options depending on the state of the widget. */
|
|
106477
|
+
get dynamicOptions() {
|
|
106478
|
+
return {};
|
|
106479
|
+
}
|
|
106480
|
+
/** Declare methods as actions. Used by WebWriter to treat all DOM changes triggered by the method as a single change (as a transaction). As this is a getter, you can dynamically change actions depending on the state of the widget. */
|
|
106481
|
+
get dynamicActions() {
|
|
106482
|
+
return {};
|
|
106483
|
+
}
|
|
106429
106484
|
get lang() {
|
|
106430
106485
|
return (__privateGet2(this, _lang) || this.parentElement?.closest("[lang]")?.lang) ?? "";
|
|
106431
106486
|
}
|
|
@@ -106637,10 +106692,12 @@ var c7 = class extends f3 {
|
|
|
106637
106692
|
var m4 = e6(c7);
|
|
106638
106693
|
|
|
106639
106694
|
// lib/tflib.ts
|
|
106640
|
-
|
|
106641
|
-
|
|
106642
|
-
|
|
106643
|
-
|
|
106695
|
+
function getTF() {
|
|
106696
|
+
const w3 = window;
|
|
106697
|
+
if (w3.__TFPromise == null) {
|
|
106698
|
+
w3.__TFPromise = w3.TF != null ? Promise.resolve(w3.TF) : Promise.resolve().then(() => (init_dist7(), dist_exports4)).then((tf9) => w3.TF = tf9);
|
|
106699
|
+
}
|
|
106700
|
+
return w3.__TFPromise;
|
|
106644
106701
|
}
|
|
106645
106702
|
|
|
106646
106703
|
// components/inference-fields/inference-interfaces.ts
|
|
@@ -109160,86 +109217,27 @@ lit-html/directives/style-map.js:
|
|
|
109160
109217
|
*)
|
|
109161
109218
|
|
|
109162
109219
|
@lit/reactive-element/reactive-element.js:
|
|
109163
|
-
(**
|
|
109164
|
-
* @license
|
|
109165
|
-
* Copyright 2017 Google LLC
|
|
109166
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109167
|
-
*)
|
|
109168
|
-
|
|
109169
109220
|
lit-html/lit-html.js:
|
|
109170
|
-
(**
|
|
109171
|
-
* @license
|
|
109172
|
-
* Copyright 2017 Google LLC
|
|
109173
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109174
|
-
*)
|
|
109175
|
-
|
|
109176
109221
|
lit-element/lit-element.js:
|
|
109177
|
-
(**
|
|
109178
|
-
* @license
|
|
109179
|
-
* Copyright 2017 Google LLC
|
|
109180
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109181
|
-
*)
|
|
109182
|
-
|
|
109183
|
-
lit-html/is-server.js:
|
|
109184
|
-
(**
|
|
109185
|
-
* @license
|
|
109186
|
-
* Copyright 2022 Google LLC
|
|
109187
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109188
|
-
*)
|
|
109189
|
-
|
|
109190
109222
|
@lit/reactive-element/decorators/custom-element.js:
|
|
109191
|
-
(**
|
|
109192
|
-
* @license
|
|
109193
|
-
* Copyright 2017 Google LLC
|
|
109194
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109195
|
-
*)
|
|
109196
|
-
|
|
109197
109223
|
@lit/reactive-element/decorators/property.js:
|
|
109198
|
-
(**
|
|
109199
|
-
* @license
|
|
109200
|
-
* Copyright 2017 Google LLC
|
|
109201
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109202
|
-
*)
|
|
109203
|
-
|
|
109204
109224
|
@lit/reactive-element/decorators/state.js:
|
|
109205
|
-
(**
|
|
109206
|
-
* @license
|
|
109207
|
-
* Copyright 2017 Google LLC
|
|
109208
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109209
|
-
*)
|
|
109210
|
-
|
|
109211
109225
|
@lit/reactive-element/decorators/event-options.js:
|
|
109212
|
-
(**
|
|
109213
|
-
* @license
|
|
109214
|
-
* Copyright 2017 Google LLC
|
|
109215
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109216
|
-
*)
|
|
109217
|
-
|
|
109218
109226
|
@lit/reactive-element/decorators/base.js:
|
|
109219
|
-
(**
|
|
109220
|
-
* @license
|
|
109221
|
-
* Copyright 2017 Google LLC
|
|
109222
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109223
|
-
*)
|
|
109224
|
-
|
|
109225
109227
|
@lit/reactive-element/decorators/query.js:
|
|
109226
|
-
(**
|
|
109227
|
-
* @license
|
|
109228
|
-
* Copyright 2017 Google LLC
|
|
109229
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109230
|
-
*)
|
|
109231
|
-
|
|
109232
109228
|
@lit/reactive-element/decorators/query-all.js:
|
|
109229
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
109230
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
109233
109231
|
(**
|
|
109234
109232
|
* @license
|
|
109235
109233
|
* Copyright 2017 Google LLC
|
|
109236
109234
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109237
109235
|
*)
|
|
109238
109236
|
|
|
109239
|
-
|
|
109237
|
+
lit-html/is-server.js:
|
|
109240
109238
|
(**
|
|
109241
109239
|
* @license
|
|
109242
|
-
* Copyright
|
|
109240
|
+
* Copyright 2022 Google LLC
|
|
109243
109241
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109244
109242
|
*)
|
|
109245
109243
|
|
|
@@ -109249,12 +109247,5 @@ lit-html/directives/style-map.js:
|
|
|
109249
109247
|
* Copyright 2021 Google LLC
|
|
109250
109248
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109251
109249
|
*)
|
|
109252
|
-
|
|
109253
|
-
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
109254
|
-
(**
|
|
109255
|
-
* @license
|
|
109256
|
-
* Copyright 2017 Google LLC
|
|
109257
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
109258
|
-
*)
|
|
109259
109250
|
*)
|
|
109260
109251
|
*/
|