@plattar/plattar-ar-adapter 1.178.2 → 1.183.1
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/build/es2015/plattar-ar-adapter.js +1927 -1608
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +361 -155
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/ar/scene-graph-ar.d.ts +33 -0
- package/dist/ar/scene-graph-ar.js +159 -0
- package/dist/embed/controllers/configurator-controller.js +15 -0
- package/dist/embed/controllers/launcher-controller.js +15 -0
- package/dist/embed/controllers/plattar-controller.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -170,7 +170,7 @@ class ConfiguratorAR extends launcher_ar_1.LauncherAR {
|
|
|
170
170
|
}
|
|
171
171
|
exports.ConfiguratorAR = ConfiguratorAR;
|
|
172
172
|
|
|
173
|
-
},{"../util/util":
|
|
173
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48,"@plattar/plattar-services":121}],2:[function(require,module,exports){
|
|
174
174
|
"use strict";
|
|
175
175
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176
176
|
exports.LauncherAR = void 0;
|
|
@@ -335,7 +335,7 @@ class ModelAR extends launcher_ar_1.LauncherAR {
|
|
|
335
335
|
}
|
|
336
336
|
exports.ModelAR = ModelAR;
|
|
337
337
|
|
|
338
|
-
},{"../util/util":
|
|
338
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/reality-viewer":23,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48}],4:[function(require,module,exports){
|
|
339
339
|
"use strict";
|
|
340
340
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
341
341
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -550,7 +550,7 @@ class ProductAR extends launcher_ar_1.LauncherAR {
|
|
|
550
550
|
}
|
|
551
551
|
exports.ProductAR = ProductAR;
|
|
552
552
|
|
|
553
|
-
},{"../util/util":
|
|
553
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/reality-viewer":23,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48}],5:[function(require,module,exports){
|
|
554
554
|
"use strict";
|
|
555
555
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
556
556
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -705,7 +705,7 @@ class RawAR extends launcher_ar_1.LauncherAR {
|
|
|
705
705
|
}
|
|
706
706
|
exports.RawAR = RawAR;
|
|
707
707
|
|
|
708
|
-
},{"../util/util":
|
|
708
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/reality-viewer":23,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48}],6:[function(require,module,exports){
|
|
709
709
|
"use strict";
|
|
710
710
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
711
711
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -916,7 +916,168 @@ class SceneAR extends launcher_ar_1.LauncherAR {
|
|
|
916
916
|
}
|
|
917
917
|
exports.SceneAR = SceneAR;
|
|
918
918
|
|
|
919
|
-
},{"../util/util":
|
|
919
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48,"@plattar/plattar-services":121}],7:[function(require,module,exports){
|
|
920
|
+
"use strict";
|
|
921
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
922
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
923
|
+
};
|
|
924
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
925
|
+
exports.SceneGraphAR = void 0;
|
|
926
|
+
const plattar_analytics_1 = require("@plattar/plattar-analytics");
|
|
927
|
+
const plattar_api_1 = require("@plattar/plattar-api");
|
|
928
|
+
const util_1 = require("../util/util");
|
|
929
|
+
const quicklook_viewer_1 = __importDefault(require("../viewers/quicklook-viewer"));
|
|
930
|
+
const scene_viewer_1 = __importDefault(require("../viewers/scene-viewer"));
|
|
931
|
+
const launcher_ar_1 = require("./launcher-ar");
|
|
932
|
+
const version_1 = __importDefault(require("../version"));
|
|
933
|
+
/**
|
|
934
|
+
* Performs AR functionality related to Plattar Scenes
|
|
935
|
+
*/
|
|
936
|
+
class SceneGraphAR extends launcher_ar_1.LauncherAR {
|
|
937
|
+
constructor(options) {
|
|
938
|
+
super();
|
|
939
|
+
// analytics instance
|
|
940
|
+
this._analytics = null;
|
|
941
|
+
this._options = options;
|
|
942
|
+
this._ar = null;
|
|
943
|
+
}
|
|
944
|
+
async _SetupAnalytics() {
|
|
945
|
+
const scene = new plattar_api_1.Scene(this._options.sceneID);
|
|
946
|
+
scene.include(plattar_api_1.Project);
|
|
947
|
+
const fetchedScene = await scene.get();
|
|
948
|
+
let analytics = null;
|
|
949
|
+
analytics = new plattar_analytics_1.Analytics(fetchedScene.attributes.application_id);
|
|
950
|
+
analytics.origin = plattar_api_1.Server.location().type;
|
|
951
|
+
this._analytics = analytics;
|
|
952
|
+
analytics.data.push("type", "scene-graph-ar");
|
|
953
|
+
analytics.data.push("sdkVersion", version_1.default);
|
|
954
|
+
analytics.data.push("sceneId", fetchedScene.id);
|
|
955
|
+
analytics.data.push("sceneTitle", fetchedScene.attributes.title);
|
|
956
|
+
const application = fetchedScene.relationships.find(plattar_api_1.Project);
|
|
957
|
+
// setup application stuff (if any)
|
|
958
|
+
if (application) {
|
|
959
|
+
analytics.data.push("applicationId", application.id);
|
|
960
|
+
analytics.data.push("applicationTitle", application.attributes.title);
|
|
961
|
+
if (this._options.useARBanner) {
|
|
962
|
+
this.options.banner = {
|
|
963
|
+
title: application.attributes.title,
|
|
964
|
+
subtitle: fetchedScene.attributes.title,
|
|
965
|
+
button: 'Visit'
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
return fetchedScene;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Composes a Scene into an AR Model (remote operation) that can be used to launch
|
|
973
|
+
* an AR File
|
|
974
|
+
*/
|
|
975
|
+
async _Compose(output) {
|
|
976
|
+
const type = output === 'glb' ? "viewer" : "reality";
|
|
977
|
+
const url = `https://xrutils.plattar.com/v3/scene/${this._options.sceneID}/${type}/${this._options.id}`;
|
|
978
|
+
// grab our existing scene-graph from the saved API
|
|
979
|
+
try {
|
|
980
|
+
const response = await fetch(url, {
|
|
981
|
+
method: "GET",
|
|
982
|
+
headers: {
|
|
983
|
+
"Content-Type": "application/json"
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
if (!response.ok) {
|
|
987
|
+
throw new Error(`ARAdapter - Fetching Existing Graph Error - network response was not ok ${response.status}`);
|
|
988
|
+
}
|
|
989
|
+
const data = await response.json();
|
|
990
|
+
return data.data.attributes.url;
|
|
991
|
+
}
|
|
992
|
+
catch (error) {
|
|
993
|
+
throw new Error(`ARAdapter - Fetching Existing Graph Error - there was a request error to ${url}, error was ${error.message}`);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Initialise the SceneAR instance. This returns a Promise that resolves
|
|
998
|
+
* successfully if initialisation is successful, otherwise it will fail.
|
|
999
|
+
*
|
|
1000
|
+
* filure can occur for a number of reasons but it generally means that AR
|
|
1001
|
+
* cannot be performed.
|
|
1002
|
+
*/
|
|
1003
|
+
async init() {
|
|
1004
|
+
if (!util_1.Util.canAugment()) {
|
|
1005
|
+
throw new Error("SceneGraphAR.init() - cannot proceed as AR not available in context");
|
|
1006
|
+
}
|
|
1007
|
+
const scene = await this._SetupAnalytics();
|
|
1008
|
+
const sceneOpt = scene.attributes.custom_json || {};
|
|
1009
|
+
// we need to define our AR module here
|
|
1010
|
+
// we are in Safari/Quicklook mode here
|
|
1011
|
+
if (util_1.Util.isSafari() || util_1.Util.isChromeOnIOS()) {
|
|
1012
|
+
// we need to launch a VTO experience here
|
|
1013
|
+
// VTO requires Reality Support
|
|
1014
|
+
if (sceneOpt.anchor === "face") {
|
|
1015
|
+
if (util_1.Util.canRealityViewer()) {
|
|
1016
|
+
const modelUrl = await this._Compose("vto");
|
|
1017
|
+
this._ar = new quicklook_viewer_1.default();
|
|
1018
|
+
this._ar.modelUrl = modelUrl;
|
|
1019
|
+
this._ar.banner = this.options.banner;
|
|
1020
|
+
return this;
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
throw new Error("SceneGraphAR.init() - cannot proceed as VTO AR requires Reality Viewer support");
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
// otherwise, load the USDZ stuff second if available
|
|
1027
|
+
if (util_1.Util.canQuicklook()) {
|
|
1028
|
+
const modelUrl = await this._Compose("usdz");
|
|
1029
|
+
this._ar = new quicklook_viewer_1.default();
|
|
1030
|
+
this._ar.modelUrl = modelUrl;
|
|
1031
|
+
this._ar.banner = this.options.banner;
|
|
1032
|
+
return this;
|
|
1033
|
+
}
|
|
1034
|
+
throw new Error("SceneGraphAR.init() - cannot proceed as IOS device does not support AR Mode");
|
|
1035
|
+
}
|
|
1036
|
+
// check android
|
|
1037
|
+
if (util_1.Util.canSceneViewer()) {
|
|
1038
|
+
const modelUrl = await this._Compose("glb");
|
|
1039
|
+
const arviewer = new scene_viewer_1.default();
|
|
1040
|
+
arviewer.modelUrl = modelUrl;
|
|
1041
|
+
arviewer.isVertical = this.options.anchor === "vertical" ? true : false;
|
|
1042
|
+
arviewer.banner = this.options.banner;
|
|
1043
|
+
if (sceneOpt.anchor === "vertical") {
|
|
1044
|
+
arviewer.isVertical = true;
|
|
1045
|
+
}
|
|
1046
|
+
this._ar = arviewer;
|
|
1047
|
+
return this;
|
|
1048
|
+
}
|
|
1049
|
+
// otherwise, we didn't have AR available - it should never really reach this stage as this should be caught
|
|
1050
|
+
// earlier in the process
|
|
1051
|
+
throw new Error("SceneGraphAR.init() - could not initialise AR correctly, check values");
|
|
1052
|
+
}
|
|
1053
|
+
start() {
|
|
1054
|
+
if (!this._ar) {
|
|
1055
|
+
throw new Error("SceneGraphAR.start() - cannot proceed as AR instance is null");
|
|
1056
|
+
}
|
|
1057
|
+
const analytics = this._analytics;
|
|
1058
|
+
if (analytics) {
|
|
1059
|
+
analytics.data.push("device", this._ar.device);
|
|
1060
|
+
analytics.data.push("eventCategory", this._ar.nodeType);
|
|
1061
|
+
analytics.data.push("eventAction", "Start Scene Augment");
|
|
1062
|
+
analytics.write();
|
|
1063
|
+
analytics.startRecordEngagement();
|
|
1064
|
+
}
|
|
1065
|
+
// this was initialised via the init() function
|
|
1066
|
+
this._ar.start();
|
|
1067
|
+
}
|
|
1068
|
+
canQuicklook() {
|
|
1069
|
+
return this._ar && this._ar.nodeType === "Quick Look" ? true : false;
|
|
1070
|
+
}
|
|
1071
|
+
canRealityViewer() {
|
|
1072
|
+
return this._ar && this._ar.nodeType === "Reality Viewer" ? true : false;
|
|
1073
|
+
}
|
|
1074
|
+
canSceneViewer() {
|
|
1075
|
+
return this._ar && this._ar.nodeType === "Scene Viewer" ? true : false;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
exports.SceneGraphAR = SceneGraphAR;
|
|
1079
|
+
|
|
1080
|
+
},{"../util/util":19,"../version":20,"../viewers/quicklook-viewer":22,"../viewers/scene-viewer":24,"./launcher-ar":2,"@plattar/plattar-analytics":44,"@plattar/plattar-api":48}],8:[function(require,module,exports){
|
|
920
1081
|
"use strict";
|
|
921
1082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
922
1083
|
exports.SceneProductAR = void 0;
|
|
@@ -967,7 +1128,7 @@ class SceneProductAR extends product_ar_1.ProductAR {
|
|
|
967
1128
|
}
|
|
968
1129
|
exports.SceneProductAR = SceneProductAR;
|
|
969
1130
|
|
|
970
|
-
},{"../util/util":
|
|
1131
|
+
},{"../util/util":19,"./product-ar":4,"@plattar/plattar-api":48}],9:[function(require,module,exports){
|
|
971
1132
|
"use strict";
|
|
972
1133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
973
1134
|
exports.ConfiguratorController = void 0;
|
|
@@ -976,6 +1137,7 @@ const scene_product_ar_1 = require("../../ar/scene-product-ar");
|
|
|
976
1137
|
const util_1 = require("../../util/util");
|
|
977
1138
|
const plattar_controller_1 = require("./plattar-controller");
|
|
978
1139
|
const configurator_ar_1 = require("../../ar/configurator-ar");
|
|
1140
|
+
const scene_graph_ar_1 = require("../../ar/scene-graph-ar");
|
|
979
1141
|
/**
|
|
980
1142
|
* Manages an instance of the <plattar-configurator> HTML Element
|
|
981
1143
|
*/
|
|
@@ -1112,6 +1274,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1112
1274
|
const showAR = this.getAttribute("show-ar");
|
|
1113
1275
|
const showUI = this.getAttribute("show-ui");
|
|
1114
1276
|
const showBanner = this.getAttribute("show-ar-banner");
|
|
1277
|
+
const sceneGraphID = this.getAttribute("scene-graph-id");
|
|
1115
1278
|
if (showUI && showUI === "true") {
|
|
1116
1279
|
dst = plattar_api_1.Server.location().base + "configurator/dist/index.html?scene_id=" + sceneID;
|
|
1117
1280
|
}
|
|
@@ -1124,6 +1287,9 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1124
1287
|
if (showBanner) {
|
|
1125
1288
|
dst += "&show_ar_banner=" + showBanner;
|
|
1126
1289
|
}
|
|
1290
|
+
if (sceneGraphID) {
|
|
1291
|
+
dst += "&scene_graph_id=" + sceneGraphID;
|
|
1292
|
+
}
|
|
1127
1293
|
viewer.setAttribute("url", opt.url || dst);
|
|
1128
1294
|
this._state = plattar_controller_1.ControllerState.QRCode;
|
|
1129
1295
|
this._prevQROpt = opt;
|
|
@@ -1263,6 +1429,16 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1263
1429
|
if (!sceneID) {
|
|
1264
1430
|
throw new Error("VTOController.initAR() - generated AR minimum required attributes not set, use scene-id as a minimum");
|
|
1265
1431
|
}
|
|
1432
|
+
const graphID = this.getAttribute("scene-graph-id");
|
|
1433
|
+
// use the scene-graph route if available
|
|
1434
|
+
if (graphID) {
|
|
1435
|
+
const configAR = new scene_graph_ar_1.SceneGraphAR({
|
|
1436
|
+
useARBanner: this.getBooleanAttribute("show-ar-banner"),
|
|
1437
|
+
id: graphID,
|
|
1438
|
+
sceneID: sceneID
|
|
1439
|
+
});
|
|
1440
|
+
return configAR.init();
|
|
1441
|
+
}
|
|
1266
1442
|
const configAR = new configurator_ar_1.ConfiguratorAR({ state: await this.getConfiguratorState(), useARBanner: this.getBooleanAttribute("show-ar-banner") });
|
|
1267
1443
|
return configAR.init();
|
|
1268
1444
|
}
|
|
@@ -1272,7 +1448,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
|
|
|
1272
1448
|
}
|
|
1273
1449
|
exports.ConfiguratorController = ConfiguratorController;
|
|
1274
1450
|
|
|
1275
|
-
},{"../../ar/configurator-ar":1,"../../ar/scene-
|
|
1451
|
+
},{"../../ar/configurator-ar":1,"../../ar/scene-graph-ar":7,"../../ar/scene-product-ar":8,"../../util/util":19,"./plattar-controller":12,"@plattar/plattar-api":48}],10:[function(require,module,exports){
|
|
1276
1452
|
"use strict";
|
|
1277
1453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1278
1454
|
exports.GalleryController = void 0;
|
|
@@ -1385,7 +1561,7 @@ class GalleryController extends plattar_controller_1.PlattarController {
|
|
|
1385
1561
|
}
|
|
1386
1562
|
exports.GalleryController = GalleryController;
|
|
1387
1563
|
|
|
1388
|
-
},{"./plattar-controller":
|
|
1564
|
+
},{"./plattar-controller":12,"@plattar/plattar-api":48}],11:[function(require,module,exports){
|
|
1389
1565
|
"use strict";
|
|
1390
1566
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1391
1567
|
exports.LauncherController = void 0;
|
|
@@ -1393,6 +1569,7 @@ const scene_product_ar_1 = require("../../ar/scene-product-ar");
|
|
|
1393
1569
|
const util_1 = require("../../util/util");
|
|
1394
1570
|
const plattar_controller_1 = require("./plattar-controller");
|
|
1395
1571
|
const configurator_ar_1 = require("../../ar/configurator-ar");
|
|
1572
|
+
const scene_graph_ar_1 = require("../../ar/scene-graph-ar");
|
|
1396
1573
|
/**
|
|
1397
1574
|
* Manages an instance of the <plattar-configurator> HTML Element
|
|
1398
1575
|
*/
|
|
@@ -1476,6 +1653,7 @@ class LauncherController extends plattar_controller_1.PlattarController {
|
|
|
1476
1653
|
const variationSKU = this.getAttribute("variation-sku");
|
|
1477
1654
|
const arMode = this.getAttribute("ar-mode");
|
|
1478
1655
|
const showBanner = this.getAttribute("show-ar-banner");
|
|
1656
|
+
const sceneGraphID = this.getAttribute("scene-graph-id");
|
|
1479
1657
|
// required attributes with defaults for plattar-launcher node
|
|
1480
1658
|
const width = this.getAttribute("width") || "500px";
|
|
1481
1659
|
const height = this.getAttribute("height") || "500px";
|
|
@@ -1514,6 +1692,9 @@ class LauncherController extends plattar_controller_1.PlattarController {
|
|
|
1514
1692
|
viewer.setAttribute("config-state", encodedState);
|
|
1515
1693
|
}
|
|
1516
1694
|
}
|
|
1695
|
+
if (sceneGraphID) {
|
|
1696
|
+
viewer.setAttribute("scene-graph-id", sceneGraphID);
|
|
1697
|
+
}
|
|
1517
1698
|
return new Promise((accept, reject) => {
|
|
1518
1699
|
this.append(viewer);
|
|
1519
1700
|
if (configState) {
|
|
@@ -1586,6 +1767,16 @@ class LauncherController extends plattar_controller_1.PlattarController {
|
|
|
1586
1767
|
if (!sceneID) {
|
|
1587
1768
|
throw new Error("LauncherController.initAR() - generated AR minimum required attributes not set, use scene-id as a minimum");
|
|
1588
1769
|
}
|
|
1770
|
+
const graphID = this.getAttribute("scene-graph-id");
|
|
1771
|
+
// use the scene-graph route if available
|
|
1772
|
+
if (graphID) {
|
|
1773
|
+
const configAR = new scene_graph_ar_1.SceneGraphAR({
|
|
1774
|
+
useARBanner: this.getBooleanAttribute("show-ar-banner"),
|
|
1775
|
+
id: graphID,
|
|
1776
|
+
sceneID: sceneID
|
|
1777
|
+
});
|
|
1778
|
+
return configAR.init();
|
|
1779
|
+
}
|
|
1589
1780
|
const configAR = new configurator_ar_1.ConfiguratorAR({ state: await this.getConfiguratorState(), useARBanner: this.getBooleanAttribute("show-ar-banner") });
|
|
1590
1781
|
return configAR.init();
|
|
1591
1782
|
}
|
|
@@ -1595,7 +1786,7 @@ class LauncherController extends plattar_controller_1.PlattarController {
|
|
|
1595
1786
|
}
|
|
1596
1787
|
exports.LauncherController = LauncherController;
|
|
1597
1788
|
|
|
1598
|
-
},{"../../ar/configurator-ar":1,"../../ar/scene-
|
|
1789
|
+
},{"../../ar/configurator-ar":1,"../../ar/scene-graph-ar":7,"../../ar/scene-product-ar":8,"../../util/util":19,"./plattar-controller":12}],12:[function(require,module,exports){
|
|
1599
1790
|
"use strict";
|
|
1600
1791
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1601
1792
|
exports.PlattarController = exports.ControllerState = void 0;
|
|
@@ -1769,6 +1960,7 @@ class PlattarController {
|
|
|
1769
1960
|
const variationSKU = this.getAttribute("variation-sku");
|
|
1770
1961
|
const arMode = this.getAttribute("ar-mode");
|
|
1771
1962
|
const showBanner = this.getAttribute("show-ar-banner");
|
|
1963
|
+
const sceneGraphID = this.getAttribute("scene-graph-id");
|
|
1772
1964
|
try {
|
|
1773
1965
|
configState = (await this.getConfiguratorState()).state.encode();
|
|
1774
1966
|
}
|
|
@@ -1803,6 +1995,9 @@ class PlattarController {
|
|
|
1803
1995
|
if (showBanner) {
|
|
1804
1996
|
dst += "&show_ar_banner=" + showBanner;
|
|
1805
1997
|
}
|
|
1998
|
+
if (sceneGraphID) {
|
|
1999
|
+
dst += "&scene_graph_id" + sceneGraphID;
|
|
2000
|
+
}
|
|
1806
2001
|
viewer.setAttribute("url", opt.url || dst);
|
|
1807
2002
|
this._state = ControllerState.QRCode;
|
|
1808
2003
|
this._prevQROpt = opt;
|
|
@@ -1905,7 +2100,7 @@ class PlattarController {
|
|
|
1905
2100
|
}
|
|
1906
2101
|
exports.PlattarController = PlattarController;
|
|
1907
2102
|
|
|
1908
|
-
},{"../../util/configurator-state":
|
|
2103
|
+
},{"../../util/configurator-state":18,"@plattar/plattar-api":48}],13:[function(require,module,exports){
|
|
1909
2104
|
"use strict";
|
|
1910
2105
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1911
2106
|
exports.ProductController = void 0;
|
|
@@ -2135,7 +2330,7 @@ class ProductController extends plattar_controller_1.PlattarController {
|
|
|
2135
2330
|
}
|
|
2136
2331
|
exports.ProductController = ProductController;
|
|
2137
2332
|
|
|
2138
|
-
},{"../../ar/product-ar":4,"../../util/util":
|
|
2333
|
+
},{"../../ar/product-ar":4,"../../util/util":19,"./plattar-controller":12,"@plattar/plattar-api":48}],14:[function(require,module,exports){
|
|
2139
2334
|
"use strict";
|
|
2140
2335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2141
2336
|
exports.VTOController = void 0;
|
|
@@ -2375,7 +2570,7 @@ class VTOController extends plattar_controller_1.PlattarController {
|
|
|
2375
2570
|
}
|
|
2376
2571
|
exports.VTOController = VTOController;
|
|
2377
2572
|
|
|
2378
|
-
},{"../..":
|
|
2573
|
+
},{"../..":17,"../../ar/configurator-ar":1,"../../util/util":19,"./plattar-controller":12,"@plattar/plattar-api":48}],15:[function(require,module,exports){
|
|
2379
2574
|
"use strict";
|
|
2380
2575
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2381
2576
|
exports.WebXRController = void 0;
|
|
@@ -2521,7 +2716,7 @@ class WebXRController extends plattar_controller_1.PlattarController {
|
|
|
2521
2716
|
}
|
|
2522
2717
|
exports.WebXRController = WebXRController;
|
|
2523
2718
|
|
|
2524
|
-
},{"../../util/util":
|
|
2719
|
+
},{"../../util/util":19,"./plattar-controller":12}],16:[function(require,module,exports){
|
|
2525
2720
|
"use strict";
|
|
2526
2721
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2527
2722
|
const plattar_api_1 = require("@plattar/plattar-api");
|
|
@@ -2812,7 +3007,7 @@ class PlattarEmbed extends HTMLElement {
|
|
|
2812
3007
|
}
|
|
2813
3008
|
exports.default = PlattarEmbed;
|
|
2814
3009
|
|
|
2815
|
-
},{"../util/util":
|
|
3010
|
+
},{"../util/util":19,"./controllers/configurator-controller":9,"./controllers/gallery-controller":10,"./controllers/launcher-controller":11,"./controllers/product-controller":13,"./controllers/vto-controller":14,"./controllers/webxr-controller":15,"@plattar/plattar-api":48}],17:[function(require,module,exports){
|
|
2816
3011
|
"use strict";
|
|
2817
3012
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2818
3013
|
if (k2 === undefined) k2 = k;
|
|
@@ -2880,7 +3075,7 @@ if (customElements) {
|
|
|
2880
3075
|
}
|
|
2881
3076
|
console.log("using @plattar/plattar-ar-adapter v" + version_1.default);
|
|
2882
3077
|
|
|
2883
|
-
},{"./ar/launcher-ar":2,"./ar/model-ar":3,"./ar/product-ar":4,"./ar/raw-ar":5,"./ar/scene-ar":6,"./ar/scene-product-ar":
|
|
3078
|
+
},{"./ar/launcher-ar":2,"./ar/model-ar":3,"./ar/product-ar":4,"./ar/raw-ar":5,"./ar/scene-ar":6,"./ar/scene-product-ar":8,"./embed/plattar-embed":16,"./util/configurator-state":18,"./util/util":19,"./version":20,"@plattar/plattar-qrcode":116,"@plattar/plattar-web":137}],18:[function(require,module,exports){
|
|
2884
3079
|
"use strict";
|
|
2885
3080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2886
3081
|
exports.ConfiguratorState = void 0;
|
|
@@ -3300,7 +3495,7 @@ class ConfiguratorState {
|
|
|
3300
3495
|
}
|
|
3301
3496
|
exports.ConfiguratorState = ConfiguratorState;
|
|
3302
3497
|
|
|
3303
|
-
},{"@plattar/plattar-api":
|
|
3498
|
+
},{"@plattar/plattar-api":48}],19:[function(require,module,exports){
|
|
3304
3499
|
"use strict";
|
|
3305
3500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3306
3501
|
exports.Util = void 0;
|
|
@@ -3398,12 +3593,12 @@ class Util {
|
|
|
3398
3593
|
}
|
|
3399
3594
|
exports.Util = Util;
|
|
3400
3595
|
|
|
3401
|
-
},{}],
|
|
3596
|
+
},{}],20:[function(require,module,exports){
|
|
3402
3597
|
"use strict";
|
|
3403
3598
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3404
|
-
exports.default = "1.
|
|
3599
|
+
exports.default = "1.183.1";
|
|
3405
3600
|
|
|
3406
|
-
},{}],
|
|
3601
|
+
},{}],21:[function(require,module,exports){
|
|
3407
3602
|
"use strict";
|
|
3408
3603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3409
3604
|
exports.ARViewer = void 0;
|
|
@@ -3420,7 +3615,7 @@ class ARViewer {
|
|
|
3420
3615
|
}
|
|
3421
3616
|
exports.ARViewer = ARViewer;
|
|
3422
3617
|
|
|
3423
|
-
},{}],
|
|
3618
|
+
},{}],22:[function(require,module,exports){
|
|
3424
3619
|
"use strict";
|
|
3425
3620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3426
3621
|
const ar_viewer_1 = require("./ar-viewer");
|
|
@@ -3461,7 +3656,7 @@ class QuicklookViewer extends ar_viewer_1.ARViewer {
|
|
|
3461
3656
|
}
|
|
3462
3657
|
exports.default = QuicklookViewer;
|
|
3463
3658
|
|
|
3464
|
-
},{"./ar-viewer":
|
|
3659
|
+
},{"./ar-viewer":21}],23:[function(require,module,exports){
|
|
3465
3660
|
"use strict";
|
|
3466
3661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3467
3662
|
const ar_viewer_1 = require("./ar-viewer");
|
|
@@ -3488,7 +3683,7 @@ class RealityViewer extends ar_viewer_1.ARViewer {
|
|
|
3488
3683
|
}
|
|
3489
3684
|
exports.default = RealityViewer;
|
|
3490
3685
|
|
|
3491
|
-
},{"./ar-viewer":
|
|
3686
|
+
},{"./ar-viewer":21}],24:[function(require,module,exports){
|
|
3492
3687
|
"use strict";
|
|
3493
3688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3494
3689
|
const ar_viewer_1 = require("./ar-viewer");
|
|
@@ -3527,7 +3722,7 @@ class SceneViewer extends ar_viewer_1.ARViewer {
|
|
|
3527
3722
|
}
|
|
3528
3723
|
exports.default = SceneViewer;
|
|
3529
3724
|
|
|
3530
|
-
},{"./ar-viewer":
|
|
3725
|
+
},{"./ar-viewer":21}],25:[function(require,module,exports){
|
|
3531
3726
|
"use strict";
|
|
3532
3727
|
const Messenger = require("./messenger/messenger.js");
|
|
3533
3728
|
const Memory = require("./memory/memory.js");
|
|
@@ -3561,7 +3756,7 @@ module.exports = {
|
|
|
3561
3756
|
memory: GlobalEventHandler.instance().memoryInstance,
|
|
3562
3757
|
version: Version
|
|
3563
3758
|
}
|
|
3564
|
-
},{"./memory/memory.js":
|
|
3759
|
+
},{"./memory/memory.js":26,"./messenger/global-event-handler.js":34,"./messenger/messenger.js":35,"./version":40}],26:[function(require,module,exports){
|
|
3565
3760
|
const PermanentMemory = require("./permanent-memory");
|
|
3566
3761
|
const TemporaryMemory = require("./temporary-memory");
|
|
3567
3762
|
|
|
@@ -3595,7 +3790,7 @@ class Memory {
|
|
|
3595
3790
|
}
|
|
3596
3791
|
|
|
3597
3792
|
module.exports = Memory;
|
|
3598
|
-
},{"./permanent-memory":
|
|
3793
|
+
},{"./permanent-memory":27,"./temporary-memory":28}],27:[function(require,module,exports){
|
|
3599
3794
|
const WrappedValue = require("./wrapped-value");
|
|
3600
3795
|
|
|
3601
3796
|
class PermanentMemory {
|
|
@@ -3664,7 +3859,7 @@ class PermanentMemory {
|
|
|
3664
3859
|
}
|
|
3665
3860
|
|
|
3666
3861
|
module.exports = PermanentMemory;
|
|
3667
|
-
},{"./wrapped-value":
|
|
3862
|
+
},{"./wrapped-value":29}],28:[function(require,module,exports){
|
|
3668
3863
|
const WrappedValue = require("./wrapped-value");
|
|
3669
3864
|
|
|
3670
3865
|
class TemporaryMemory {
|
|
@@ -3721,7 +3916,7 @@ class TemporaryMemory {
|
|
|
3721
3916
|
}
|
|
3722
3917
|
|
|
3723
3918
|
module.exports = TemporaryMemory;
|
|
3724
|
-
},{"./wrapped-value":
|
|
3919
|
+
},{"./wrapped-value":29}],29:[function(require,module,exports){
|
|
3725
3920
|
/**
|
|
3726
3921
|
* WrappedValue represents a generic value type with a callback function
|
|
3727
3922
|
* for when the value has changed
|
|
@@ -3833,7 +4028,7 @@ class WrappedValue {
|
|
|
3833
4028
|
}
|
|
3834
4029
|
|
|
3835
4030
|
module.exports = WrappedValue;
|
|
3836
|
-
},{}],
|
|
4031
|
+
},{}],30:[function(require,module,exports){
|
|
3837
4032
|
/**
|
|
3838
4033
|
* Broadcaster is used to call functions in multiple contexts at the
|
|
3839
4034
|
* same time. This can be useful without having to handle complex logic
|
|
@@ -3886,7 +4081,7 @@ class Broadcaster {
|
|
|
3886
4081
|
}
|
|
3887
4082
|
|
|
3888
4083
|
module.exports = Broadcaster;
|
|
3889
|
-
},{}],
|
|
4084
|
+
},{}],31:[function(require,module,exports){
|
|
3890
4085
|
const WrappedFunction = require("./wrapped-local-function");
|
|
3891
4086
|
|
|
3892
4087
|
class CurrentFunctionList {
|
|
@@ -3937,7 +4132,7 @@ class CurrentFunctionList {
|
|
|
3937
4132
|
}
|
|
3938
4133
|
|
|
3939
4134
|
module.exports = CurrentFunctionList;
|
|
3940
|
-
},{"./wrapped-local-function":
|
|
4135
|
+
},{"./wrapped-local-function":32}],32:[function(require,module,exports){
|
|
3941
4136
|
const Util = require("../util/util.js");
|
|
3942
4137
|
|
|
3943
4138
|
/**
|
|
@@ -4024,7 +4219,7 @@ class WrappedLocalFunction {
|
|
|
4024
4219
|
}
|
|
4025
4220
|
|
|
4026
4221
|
module.exports = WrappedLocalFunction;
|
|
4027
|
-
},{"../util/util.js":
|
|
4222
|
+
},{"../util/util.js":39}],33:[function(require,module,exports){
|
|
4028
4223
|
const Util = require("./util/util");
|
|
4029
4224
|
|
|
4030
4225
|
class FunctionObserver {
|
|
@@ -4112,7 +4307,7 @@ class FunctionObserver {
|
|
|
4112
4307
|
}
|
|
4113
4308
|
|
|
4114
4309
|
module.exports = FunctionObserver;
|
|
4115
|
-
},{"./util/util":
|
|
4310
|
+
},{"./util/util":39}],34:[function(require,module,exports){
|
|
4116
4311
|
const RemoteInterface = require("./remote-interface.js");
|
|
4117
4312
|
|
|
4118
4313
|
/**
|
|
@@ -4197,7 +4392,7 @@ GlobalEventHandler.instance = () => {
|
|
|
4197
4392
|
};
|
|
4198
4393
|
|
|
4199
4394
|
module.exports = GlobalEventHandler;
|
|
4200
|
-
},{"./remote-interface.js":
|
|
4395
|
+
},{"./remote-interface.js":36}],35:[function(require,module,exports){
|
|
4201
4396
|
const CurrentFunctionList = require("./current/current-function-list");
|
|
4202
4397
|
const RemoteInterface = require("./remote-interface");
|
|
4203
4398
|
const RemoteFunctionList = require("./remote/remote-function-list");
|
|
@@ -4509,7 +4704,7 @@ class Messenger {
|
|
|
4509
4704
|
}
|
|
4510
4705
|
|
|
4511
4706
|
module.exports = Messenger;
|
|
4512
|
-
},{"./broadcaster.js":
|
|
4707
|
+
},{"./broadcaster.js":30,"./current/current-function-list":31,"./function-observer.js":33,"./global-event-handler.js":34,"./remote-interface":36,"./remote/remote-function-list":37,"./util/util.js":39}],36:[function(require,module,exports){
|
|
4513
4708
|
/**
|
|
4514
4709
|
* Provides a single useful interface for performing remote function calls
|
|
4515
4710
|
*/
|
|
@@ -4568,7 +4763,7 @@ class RemoteInterface {
|
|
|
4568
4763
|
}
|
|
4569
4764
|
|
|
4570
4765
|
module.exports = RemoteInterface;
|
|
4571
|
-
},{}],
|
|
4766
|
+
},{}],37:[function(require,module,exports){
|
|
4572
4767
|
const WrappedFunction = require("./wrapped-remote-function");
|
|
4573
4768
|
|
|
4574
4769
|
class RemoteFunctionList {
|
|
@@ -4648,7 +4843,7 @@ class RemoteFunctionList {
|
|
|
4648
4843
|
}
|
|
4649
4844
|
|
|
4650
4845
|
module.exports = RemoteFunctionList;
|
|
4651
|
-
},{"./wrapped-remote-function":
|
|
4846
|
+
},{"./wrapped-remote-function":38}],38:[function(require,module,exports){
|
|
4652
4847
|
const Util = require("../util/util.js");
|
|
4653
4848
|
const GlobalEventHandler = require("../global-event-handler.js");
|
|
4654
4849
|
|
|
@@ -4751,7 +4946,7 @@ class WrappedRemoteFunction {
|
|
|
4751
4946
|
}
|
|
4752
4947
|
|
|
4753
4948
|
module.exports = WrappedRemoteFunction;
|
|
4754
|
-
},{"../global-event-handler.js":
|
|
4949
|
+
},{"../global-event-handler.js":34,"../util/util.js":39}],39:[function(require,module,exports){
|
|
4755
4950
|
class Util {
|
|
4756
4951
|
|
|
4757
4952
|
/**
|
|
@@ -4784,10 +4979,10 @@ class Util {
|
|
|
4784
4979
|
}
|
|
4785
4980
|
|
|
4786
4981
|
module.exports = Util;
|
|
4787
|
-
},{}],
|
|
4982
|
+
},{}],40:[function(require,module,exports){
|
|
4788
4983
|
module.exports = "1.153.3";
|
|
4789
4984
|
|
|
4790
|
-
},{}],
|
|
4985
|
+
},{}],41:[function(require,module,exports){
|
|
4791
4986
|
"use strict";
|
|
4792
4987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4793
4988
|
exports.AnalyticsData = void 0;
|
|
@@ -4840,7 +5035,7 @@ class AnalyticsData {
|
|
|
4840
5035
|
}
|
|
4841
5036
|
exports.AnalyticsData = AnalyticsData;
|
|
4842
5037
|
|
|
4843
|
-
},{"../util/util":
|
|
5038
|
+
},{"../util/util":46}],42:[function(require,module,exports){
|
|
4844
5039
|
"use strict";
|
|
4845
5040
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4846
5041
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4939,7 +5134,7 @@ class Analytics {
|
|
|
4939
5134
|
}
|
|
4940
5135
|
exports.Analytics = Analytics;
|
|
4941
5136
|
|
|
4942
|
-
},{"../util/basic-http":
|
|
5137
|
+
},{"../util/basic-http":45,"./analytics-data":41,"./google/google-analytics":43}],43:[function(require,module,exports){
|
|
4943
5138
|
"use strict";
|
|
4944
5139
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4945
5140
|
exports.GoogleAnalytics = void 0;
|
|
@@ -5011,7 +5206,7 @@ class GoogleAnalytics {
|
|
|
5011
5206
|
}
|
|
5012
5207
|
exports.GoogleAnalytics = GoogleAnalytics;
|
|
5013
5208
|
|
|
5014
|
-
},{}],
|
|
5209
|
+
},{}],44:[function(require,module,exports){
|
|
5015
5210
|
"use strict";
|
|
5016
5211
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5017
5212
|
if (k2 === undefined) k2 = k;
|
|
@@ -5049,7 +5244,7 @@ Object.defineProperty(exports, "AnalyticsData", { enumerable: true, get: functio
|
|
|
5049
5244
|
const version_1 = __importDefault(require("./version"));
|
|
5050
5245
|
console.log("using @plattar/plattar-analytics v" + version_1.default);
|
|
5051
5246
|
|
|
5052
|
-
},{"./analytics/analytics":
|
|
5247
|
+
},{"./analytics/analytics":42,"./analytics/analytics-data":41,"./version":47}],45:[function(require,module,exports){
|
|
5053
5248
|
"use strict";
|
|
5054
5249
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5055
5250
|
/**
|
|
@@ -5115,7 +5310,7 @@ class BasicHTTP {
|
|
|
5115
5310
|
}
|
|
5116
5311
|
exports.default = BasicHTTP;
|
|
5117
5312
|
|
|
5118
|
-
},{}],
|
|
5313
|
+
},{}],46:[function(require,module,exports){
|
|
5119
5314
|
"use strict";
|
|
5120
5315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5121
5316
|
exports.Util = void 0;
|
|
@@ -5141,12 +5336,12 @@ class Util {
|
|
|
5141
5336
|
}
|
|
5142
5337
|
exports.Util = Util;
|
|
5143
5338
|
|
|
5144
|
-
},{}],
|
|
5339
|
+
},{}],47:[function(require,module,exports){
|
|
5145
5340
|
"use strict";
|
|
5146
5341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5147
5342
|
exports.default = "1.152.2";
|
|
5148
5343
|
|
|
5149
|
-
},{}],
|
|
5344
|
+
},{}],48:[function(require,module,exports){
|
|
5150
5345
|
"use strict";
|
|
5151
5346
|
const Server = require("./server/plattar-server.js");
|
|
5152
5347
|
const Util = require("./util/plattar-util.js");
|
|
@@ -5305,7 +5500,7 @@ module.exports = {
|
|
|
5305
5500
|
version: Version
|
|
5306
5501
|
};
|
|
5307
5502
|
|
|
5308
|
-
},{"./server/plattar-server.js":
|
|
5503
|
+
},{"./server/plattar-server.js":50,"./types/application.js":51,"./types/content-pipeline/brief.js":52,"./types/content-pipeline/comment-brief.js":53,"./types/content-pipeline/comment-quote.js":54,"./types/content-pipeline/comment-solution.js":55,"./types/content-pipeline/folder.js":56,"./types/content-pipeline/pipeline-user.js":57,"./types/content-pipeline/quote.js":58,"./types/content-pipeline/rating.js":59,"./types/content-pipeline/solution.js":60,"./types/file/file-audio.js":61,"./types/file/file-base.js":62,"./types/file/file-image.js":63,"./types/file/file-model.js":64,"./types/file/file-script.js":65,"./types/file/file-video.js":66,"./types/misc/application-build.js":70,"./types/misc/asset-library.js":71,"./types/misc/async-job.js":72,"./types/misc/script-event.js":73,"./types/misc/tag.js":74,"./types/page/card-base.js":75,"./types/page/card-button.js":76,"./types/page/card-html.js":77,"./types/page/card-iframe.js":78,"./types/page/card-image.js":79,"./types/page/card-map.js":80,"./types/page/card-paragraph.js":81,"./types/page/card-row.js":82,"./types/page/card-slider.js":83,"./types/page/card-title.js":84,"./types/page/card-video.js":85,"./types/page/card-youtube.js":86,"./types/page/page.js":87,"./types/product/product-annotation.js":88,"./types/product/product-base.js":89,"./types/product/product-variation.js":90,"./types/product/product.js":91,"./types/scene/scene-annotation.js":92,"./types/scene/scene-audio.js":93,"./types/scene/scene-base.js":94,"./types/scene/scene-button.js":95,"./types/scene/scene-camera.js":96,"./types/scene/scene-carousel.js":97,"./types/scene/scene-gallery-image.js":98,"./types/scene/scene-gallery.js":99,"./types/scene/scene-image.js":100,"./types/scene/scene-model.js":101,"./types/scene/scene-panorama.js":102,"./types/scene/scene-poller.js":103,"./types/scene/scene-product.js":104,"./types/scene/scene-script.js":105,"./types/scene/scene-shadow.js":106,"./types/scene/scene-video.js":107,"./types/scene/scene-volumetric.js":108,"./types/scene/scene-youtube.js":109,"./types/scene/scene.js":110,"./types/trigger/trigger-image.js":111,"./util/plattar-util.js":112,"./version":113}],49:[function(require,module,exports){
|
|
5309
5504
|
const fetch = require("node-fetch");
|
|
5310
5505
|
|
|
5311
5506
|
class PlattarQuery {
|
|
@@ -5797,7 +5992,7 @@ PlattarQuery._DeleteGlobalCachedObject = (obj) => {
|
|
|
5797
5992
|
};
|
|
5798
5993
|
|
|
5799
5994
|
module.exports = PlattarQuery;
|
|
5800
|
-
},{"../util/plattar-util.js":
|
|
5995
|
+
},{"../util/plattar-util.js":112,"node-fetch":143}],50:[function(require,module,exports){
|
|
5801
5996
|
(function (process){(function (){
|
|
5802
5997
|
const fetch = require("node-fetch");
|
|
5803
5998
|
|
|
@@ -6022,7 +6217,7 @@ PlattarServer.location = () => {
|
|
|
6022
6217
|
|
|
6023
6218
|
module.exports = PlattarServer;
|
|
6024
6219
|
}).call(this)}).call(this,require('_process'))
|
|
6025
|
-
},{"_process":
|
|
6220
|
+
},{"_process":145,"node-fetch":143}],51:[function(require,module,exports){
|
|
6026
6221
|
const PlattarBase = require("./interfaces/plattar-base.js");
|
|
6027
6222
|
|
|
6028
6223
|
class Application extends PlattarBase {
|
|
@@ -6032,7 +6227,7 @@ class Application extends PlattarBase {
|
|
|
6032
6227
|
}
|
|
6033
6228
|
|
|
6034
6229
|
module.exports = Application;
|
|
6035
|
-
},{"./interfaces/plattar-base.js":
|
|
6230
|
+
},{"./interfaces/plattar-base.js":67}],52:[function(require,module,exports){
|
|
6036
6231
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6037
6232
|
|
|
6038
6233
|
class Brief extends PlattarBase {
|
|
@@ -6042,7 +6237,7 @@ class Brief extends PlattarBase {
|
|
|
6042
6237
|
}
|
|
6043
6238
|
|
|
6044
6239
|
module.exports = Brief;
|
|
6045
|
-
},{"../interfaces/plattar-base":
|
|
6240
|
+
},{"../interfaces/plattar-base":67}],53:[function(require,module,exports){
|
|
6046
6241
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6047
6242
|
|
|
6048
6243
|
class CommentBrief extends PlattarBase {
|
|
@@ -6052,7 +6247,7 @@ class CommentBrief extends PlattarBase {
|
|
|
6052
6247
|
}
|
|
6053
6248
|
|
|
6054
6249
|
module.exports = CommentBrief;
|
|
6055
|
-
},{"../interfaces/plattar-base":
|
|
6250
|
+
},{"../interfaces/plattar-base":67}],54:[function(require,module,exports){
|
|
6056
6251
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6057
6252
|
|
|
6058
6253
|
class CommentQuote extends PlattarBase {
|
|
@@ -6062,7 +6257,7 @@ class CommentQuote extends PlattarBase {
|
|
|
6062
6257
|
}
|
|
6063
6258
|
|
|
6064
6259
|
module.exports = CommentQuote;
|
|
6065
|
-
},{"../interfaces/plattar-base":
|
|
6260
|
+
},{"../interfaces/plattar-base":67}],55:[function(require,module,exports){
|
|
6066
6261
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6067
6262
|
|
|
6068
6263
|
class CommentSolution extends PlattarBase {
|
|
@@ -6072,7 +6267,7 @@ class CommentSolution extends PlattarBase {
|
|
|
6072
6267
|
}
|
|
6073
6268
|
|
|
6074
6269
|
module.exports = CommentSolution;
|
|
6075
|
-
},{"../interfaces/plattar-base":
|
|
6270
|
+
},{"../interfaces/plattar-base":67}],56:[function(require,module,exports){
|
|
6076
6271
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6077
6272
|
|
|
6078
6273
|
class Folder extends PlattarBase {
|
|
@@ -6082,7 +6277,7 @@ class Folder extends PlattarBase {
|
|
|
6082
6277
|
}
|
|
6083
6278
|
|
|
6084
6279
|
module.exports = Folder;
|
|
6085
|
-
},{"../interfaces/plattar-base":
|
|
6280
|
+
},{"../interfaces/plattar-base":67}],57:[function(require,module,exports){
|
|
6086
6281
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6087
6282
|
|
|
6088
6283
|
class PipelineUser extends PlattarBase {
|
|
@@ -6092,7 +6287,7 @@ class PipelineUser extends PlattarBase {
|
|
|
6092
6287
|
}
|
|
6093
6288
|
|
|
6094
6289
|
module.exports = PipelineUser;
|
|
6095
|
-
},{"../interfaces/plattar-base":
|
|
6290
|
+
},{"../interfaces/plattar-base":67}],58:[function(require,module,exports){
|
|
6096
6291
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6097
6292
|
|
|
6098
6293
|
class Quote extends PlattarBase {
|
|
@@ -6102,7 +6297,7 @@ class Quote extends PlattarBase {
|
|
|
6102
6297
|
}
|
|
6103
6298
|
|
|
6104
6299
|
module.exports = Quote;
|
|
6105
|
-
},{"../interfaces/plattar-base":
|
|
6300
|
+
},{"../interfaces/plattar-base":67}],59:[function(require,module,exports){
|
|
6106
6301
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6107
6302
|
|
|
6108
6303
|
class Rating extends PlattarBase {
|
|
@@ -6112,7 +6307,7 @@ class Rating extends PlattarBase {
|
|
|
6112
6307
|
}
|
|
6113
6308
|
|
|
6114
6309
|
module.exports = Rating;
|
|
6115
|
-
},{"../interfaces/plattar-base":
|
|
6310
|
+
},{"../interfaces/plattar-base":67}],60:[function(require,module,exports){
|
|
6116
6311
|
const PlattarBase = require("../interfaces/plattar-base");
|
|
6117
6312
|
|
|
6118
6313
|
class Solution extends PlattarBase {
|
|
@@ -6122,7 +6317,7 @@ class Solution extends PlattarBase {
|
|
|
6122
6317
|
}
|
|
6123
6318
|
|
|
6124
6319
|
module.exports = Solution;
|
|
6125
|
-
},{"../interfaces/plattar-base":
|
|
6320
|
+
},{"../interfaces/plattar-base":67}],61:[function(require,module,exports){
|
|
6126
6321
|
const FileBase = require("./file-base.js");
|
|
6127
6322
|
|
|
6128
6323
|
class FileAudio extends FileBase {
|
|
@@ -6132,7 +6327,7 @@ class FileAudio extends FileBase {
|
|
|
6132
6327
|
}
|
|
6133
6328
|
|
|
6134
6329
|
module.exports = FileAudio;
|
|
6135
|
-
},{"./file-base.js":
|
|
6330
|
+
},{"./file-base.js":62}],62:[function(require,module,exports){
|
|
6136
6331
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6137
6332
|
const Server = require("../../server/plattar-server.js");
|
|
6138
6333
|
|
|
@@ -6192,7 +6387,7 @@ class FileBase extends PlattarBase {
|
|
|
6192
6387
|
}
|
|
6193
6388
|
|
|
6194
6389
|
module.exports = FileBase;
|
|
6195
|
-
},{"../../server/plattar-server.js":
|
|
6390
|
+
},{"../../server/plattar-server.js":50,"../interfaces/plattar-base.js":67,"./file-audio.js":61,"./file-image.js":63,"./file-model.js":64,"./file-video.js":66}],63:[function(require,module,exports){
|
|
6196
6391
|
const FileBase = require("./file-base.js");
|
|
6197
6392
|
|
|
6198
6393
|
class FileImage extends FileBase {
|
|
@@ -6202,7 +6397,7 @@ class FileImage extends FileBase {
|
|
|
6202
6397
|
}
|
|
6203
6398
|
|
|
6204
6399
|
module.exports = FileImage;
|
|
6205
|
-
},{"./file-base.js":
|
|
6400
|
+
},{"./file-base.js":62}],64:[function(require,module,exports){
|
|
6206
6401
|
const FileBase = require("./file-base.js");
|
|
6207
6402
|
|
|
6208
6403
|
class FileModel extends FileBase {
|
|
@@ -6212,7 +6407,7 @@ class FileModel extends FileBase {
|
|
|
6212
6407
|
}
|
|
6213
6408
|
|
|
6214
6409
|
module.exports = FileModel;
|
|
6215
|
-
},{"./file-base.js":
|
|
6410
|
+
},{"./file-base.js":62}],65:[function(require,module,exports){
|
|
6216
6411
|
const FileBase = require("./file-base.js");
|
|
6217
6412
|
|
|
6218
6413
|
class FileScript extends FileBase {
|
|
@@ -6222,7 +6417,7 @@ class FileScript extends FileBase {
|
|
|
6222
6417
|
}
|
|
6223
6418
|
|
|
6224
6419
|
module.exports = FileScript;
|
|
6225
|
-
},{"./file-base.js":
|
|
6420
|
+
},{"./file-base.js":62}],66:[function(require,module,exports){
|
|
6226
6421
|
const FileBase = require("./file-base.js");
|
|
6227
6422
|
|
|
6228
6423
|
class FileVideo extends FileBase {
|
|
@@ -6232,7 +6427,7 @@ class FileVideo extends FileBase {
|
|
|
6232
6427
|
}
|
|
6233
6428
|
|
|
6234
6429
|
module.exports = FileVideo;
|
|
6235
|
-
},{"./file-base.js":
|
|
6430
|
+
},{"./file-base.js":62}],67:[function(require,module,exports){
|
|
6236
6431
|
const PlattarObject = require("./plattar-object.js");
|
|
6237
6432
|
const Server = require("../../server/plattar-server.js");
|
|
6238
6433
|
|
|
@@ -6247,7 +6442,7 @@ class PlattarBase extends PlattarObject {
|
|
|
6247
6442
|
}
|
|
6248
6443
|
|
|
6249
6444
|
module.exports = PlattarBase;
|
|
6250
|
-
},{"../../server/plattar-server.js":
|
|
6445
|
+
},{"../../server/plattar-server.js":50,"./plattar-object.js":69}],68:[function(require,module,exports){
|
|
6251
6446
|
/**
|
|
6252
6447
|
* Handles the list of relationships for the provided object
|
|
6253
6448
|
*/
|
|
@@ -6368,7 +6563,7 @@ class PlattarObjectRelations {
|
|
|
6368
6563
|
}
|
|
6369
6564
|
|
|
6370
6565
|
module.exports = PlattarObjectRelations;
|
|
6371
|
-
},{"../../util/plattar-util.js":
|
|
6566
|
+
},{"../../util/plattar-util.js":112}],69:[function(require,module,exports){
|
|
6372
6567
|
const PlattarQuery = require("../../server/plattar-query.js");
|
|
6373
6568
|
const PlattarObjectRelations = require("./plattar-object-relations.js");
|
|
6374
6569
|
|
|
@@ -6511,7 +6706,7 @@ class PlattarObject {
|
|
|
6511
6706
|
}
|
|
6512
6707
|
|
|
6513
6708
|
module.exports = PlattarObject;
|
|
6514
|
-
},{"../../server/plattar-query.js":
|
|
6709
|
+
},{"../../server/plattar-query.js":49,"./plattar-object-relations.js":68}],70:[function(require,module,exports){
|
|
6515
6710
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6516
6711
|
|
|
6517
6712
|
class ApplicationBuild extends PlattarBase {
|
|
@@ -6521,7 +6716,7 @@ class ApplicationBuild extends PlattarBase {
|
|
|
6521
6716
|
}
|
|
6522
6717
|
|
|
6523
6718
|
module.exports = ApplicationBuild;
|
|
6524
|
-
},{"../interfaces/plattar-base.js":
|
|
6719
|
+
},{"../interfaces/plattar-base.js":67}],71:[function(require,module,exports){
|
|
6525
6720
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6526
6721
|
|
|
6527
6722
|
class AssetLibrary extends PlattarBase {
|
|
@@ -6531,7 +6726,7 @@ class AssetLibrary extends PlattarBase {
|
|
|
6531
6726
|
}
|
|
6532
6727
|
|
|
6533
6728
|
module.exports = AssetLibrary;
|
|
6534
|
-
},{"../interfaces/plattar-base.js":
|
|
6729
|
+
},{"../interfaces/plattar-base.js":67}],72:[function(require,module,exports){
|
|
6535
6730
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6536
6731
|
|
|
6537
6732
|
class AsyncJob extends PlattarBase {
|
|
@@ -6545,7 +6740,7 @@ class AsyncJob extends PlattarBase {
|
|
|
6545
6740
|
}
|
|
6546
6741
|
|
|
6547
6742
|
module.exports = AsyncJob;
|
|
6548
|
-
},{"../interfaces/plattar-base.js":
|
|
6743
|
+
},{"../interfaces/plattar-base.js":67}],73:[function(require,module,exports){
|
|
6549
6744
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6550
6745
|
|
|
6551
6746
|
class ScriptEvent extends PlattarBase {
|
|
@@ -6555,7 +6750,7 @@ class ScriptEvent extends PlattarBase {
|
|
|
6555
6750
|
}
|
|
6556
6751
|
|
|
6557
6752
|
module.exports = ScriptEvent;
|
|
6558
|
-
},{"../interfaces/plattar-base.js":
|
|
6753
|
+
},{"../interfaces/plattar-base.js":67}],74:[function(require,module,exports){
|
|
6559
6754
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6560
6755
|
|
|
6561
6756
|
class Tag extends PlattarBase {
|
|
@@ -6565,7 +6760,7 @@ class Tag extends PlattarBase {
|
|
|
6565
6760
|
}
|
|
6566
6761
|
|
|
6567
6762
|
module.exports = Tag;
|
|
6568
|
-
},{"../interfaces/plattar-base.js":
|
|
6763
|
+
},{"../interfaces/plattar-base.js":67}],75:[function(require,module,exports){
|
|
6569
6764
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6570
6765
|
const Server = require("../../server/plattar-server.js");
|
|
6571
6766
|
|
|
@@ -6596,7 +6791,7 @@ class CardBase extends PlattarBase {
|
|
|
6596
6791
|
}
|
|
6597
6792
|
|
|
6598
6793
|
module.exports = CardBase;
|
|
6599
|
-
},{"../../server/plattar-server.js":
|
|
6794
|
+
},{"../../server/plattar-server.js":50,"../interfaces/plattar-base.js":67,"./card-button.js":76,"./card-html.js":77,"./card-iframe.js":78,"./card-image.js":79,"./card-map.js":80,"./card-paragraph.js":81,"./card-row.js":82,"./card-slider.js":83,"./card-title.js":84,"./card-video.js":85,"./card-youtube.js":86}],76:[function(require,module,exports){
|
|
6600
6795
|
const CardBase = require("./card-base.js");
|
|
6601
6796
|
|
|
6602
6797
|
class CardButton extends CardBase {
|
|
@@ -6606,7 +6801,7 @@ class CardButton extends CardBase {
|
|
|
6606
6801
|
}
|
|
6607
6802
|
|
|
6608
6803
|
module.exports = CardButton;
|
|
6609
|
-
},{"./card-base.js":
|
|
6804
|
+
},{"./card-base.js":75}],77:[function(require,module,exports){
|
|
6610
6805
|
const CardBase = require("./card-base.js");
|
|
6611
6806
|
|
|
6612
6807
|
class CardHTML extends CardBase {
|
|
@@ -6616,7 +6811,7 @@ class CardHTML extends CardBase {
|
|
|
6616
6811
|
}
|
|
6617
6812
|
|
|
6618
6813
|
module.exports = CardHTML;
|
|
6619
|
-
},{"./card-base.js":
|
|
6814
|
+
},{"./card-base.js":75}],78:[function(require,module,exports){
|
|
6620
6815
|
const CardBase = require("./card-base.js");
|
|
6621
6816
|
|
|
6622
6817
|
class CardIFrame extends CardBase {
|
|
@@ -6626,7 +6821,7 @@ class CardIFrame extends CardBase {
|
|
|
6626
6821
|
}
|
|
6627
6822
|
|
|
6628
6823
|
module.exports = CardIFrame;
|
|
6629
|
-
},{"./card-base.js":
|
|
6824
|
+
},{"./card-base.js":75}],79:[function(require,module,exports){
|
|
6630
6825
|
const CardBase = require("./card-base.js");
|
|
6631
6826
|
|
|
6632
6827
|
class CardImage extends CardBase {
|
|
@@ -6636,7 +6831,7 @@ class CardImage extends CardBase {
|
|
|
6636
6831
|
}
|
|
6637
6832
|
|
|
6638
6833
|
module.exports = CardImage;
|
|
6639
|
-
},{"./card-base.js":
|
|
6834
|
+
},{"./card-base.js":75}],80:[function(require,module,exports){
|
|
6640
6835
|
const CardBase = require("./card-base.js");
|
|
6641
6836
|
|
|
6642
6837
|
class CardMap extends CardBase {
|
|
@@ -6646,7 +6841,7 @@ class CardMap extends CardBase {
|
|
|
6646
6841
|
}
|
|
6647
6842
|
|
|
6648
6843
|
module.exports = CardMap;
|
|
6649
|
-
},{"./card-base.js":
|
|
6844
|
+
},{"./card-base.js":75}],81:[function(require,module,exports){
|
|
6650
6845
|
const CardBase = require("./card-base.js");
|
|
6651
6846
|
|
|
6652
6847
|
class CardParagraph extends CardBase {
|
|
@@ -6656,7 +6851,7 @@ class CardParagraph extends CardBase {
|
|
|
6656
6851
|
}
|
|
6657
6852
|
|
|
6658
6853
|
module.exports = CardParagraph;
|
|
6659
|
-
},{"./card-base.js":
|
|
6854
|
+
},{"./card-base.js":75}],82:[function(require,module,exports){
|
|
6660
6855
|
const CardBase = require("./card-base.js");
|
|
6661
6856
|
|
|
6662
6857
|
class CardRow extends CardBase {
|
|
@@ -6666,7 +6861,7 @@ class CardRow extends CardBase {
|
|
|
6666
6861
|
}
|
|
6667
6862
|
|
|
6668
6863
|
module.exports = CardRow;
|
|
6669
|
-
},{"./card-base.js":
|
|
6864
|
+
},{"./card-base.js":75}],83:[function(require,module,exports){
|
|
6670
6865
|
const CardBase = require("./card-base.js");
|
|
6671
6866
|
|
|
6672
6867
|
class CardSlider extends CardBase {
|
|
@@ -6676,7 +6871,7 @@ class CardSlider extends CardBase {
|
|
|
6676
6871
|
}
|
|
6677
6872
|
|
|
6678
6873
|
module.exports = CardSlider;
|
|
6679
|
-
},{"./card-base.js":
|
|
6874
|
+
},{"./card-base.js":75}],84:[function(require,module,exports){
|
|
6680
6875
|
const CardBase = require("./card-base.js");
|
|
6681
6876
|
|
|
6682
6877
|
class CardTitle extends CardBase {
|
|
@@ -6686,7 +6881,7 @@ class CardTitle extends CardBase {
|
|
|
6686
6881
|
}
|
|
6687
6882
|
|
|
6688
6883
|
module.exports = CardTitle;
|
|
6689
|
-
},{"./card-base.js":
|
|
6884
|
+
},{"./card-base.js":75}],85:[function(require,module,exports){
|
|
6690
6885
|
const CardBase = require("./card-base.js");
|
|
6691
6886
|
|
|
6692
6887
|
class CardVideo extends CardBase {
|
|
@@ -6696,7 +6891,7 @@ class CardVideo extends CardBase {
|
|
|
6696
6891
|
}
|
|
6697
6892
|
|
|
6698
6893
|
module.exports = CardVideo;
|
|
6699
|
-
},{"./card-base.js":
|
|
6894
|
+
},{"./card-base.js":75}],86:[function(require,module,exports){
|
|
6700
6895
|
const CardBase = require("./card-base.js");
|
|
6701
6896
|
|
|
6702
6897
|
class CardYoutube extends CardBase {
|
|
@@ -6706,7 +6901,7 @@ class CardYoutube extends CardBase {
|
|
|
6706
6901
|
}
|
|
6707
6902
|
|
|
6708
6903
|
module.exports = CardYoutube;
|
|
6709
|
-
},{"./card-base.js":
|
|
6904
|
+
},{"./card-base.js":75}],87:[function(require,module,exports){
|
|
6710
6905
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6711
6906
|
|
|
6712
6907
|
class Page extends PlattarBase {
|
|
@@ -6716,7 +6911,7 @@ class Page extends PlattarBase {
|
|
|
6716
6911
|
}
|
|
6717
6912
|
|
|
6718
6913
|
module.exports = Page;
|
|
6719
|
-
},{"../interfaces/plattar-base.js":
|
|
6914
|
+
},{"../interfaces/plattar-base.js":67}],88:[function(require,module,exports){
|
|
6720
6915
|
const ProductBase = require("./product-base.js");
|
|
6721
6916
|
|
|
6722
6917
|
class ProductAnnotation extends ProductBase {
|
|
@@ -6726,7 +6921,7 @@ class ProductAnnotation extends ProductBase {
|
|
|
6726
6921
|
}
|
|
6727
6922
|
|
|
6728
6923
|
module.exports = ProductAnnotation;
|
|
6729
|
-
},{"./product-base.js":
|
|
6924
|
+
},{"./product-base.js":89}],89:[function(require,module,exports){
|
|
6730
6925
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6731
6926
|
const Server = require("../../server/plattar-server.js");
|
|
6732
6927
|
|
|
@@ -6748,7 +6943,7 @@ class ProductBase extends PlattarBase {
|
|
|
6748
6943
|
}
|
|
6749
6944
|
|
|
6750
6945
|
module.exports = ProductBase;
|
|
6751
|
-
},{"../../server/plattar-server.js":
|
|
6946
|
+
},{"../../server/plattar-server.js":50,"../interfaces/plattar-base.js":67,"./product-annotation.js":88,"./product-variation.js":90}],90:[function(require,module,exports){
|
|
6752
6947
|
const ProductBase = require("./product-base.js");
|
|
6753
6948
|
|
|
6754
6949
|
class ProductVariation extends ProductBase {
|
|
@@ -6758,7 +6953,7 @@ class ProductVariation extends ProductBase {
|
|
|
6758
6953
|
}
|
|
6759
6954
|
|
|
6760
6955
|
module.exports = ProductVariation;
|
|
6761
|
-
},{"./product-base.js":
|
|
6956
|
+
},{"./product-base.js":89}],91:[function(require,module,exports){
|
|
6762
6957
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6763
6958
|
|
|
6764
6959
|
class Product extends PlattarBase {
|
|
@@ -6768,7 +6963,7 @@ class Product extends PlattarBase {
|
|
|
6768
6963
|
}
|
|
6769
6964
|
|
|
6770
6965
|
module.exports = Product;
|
|
6771
|
-
},{"../interfaces/plattar-base.js":
|
|
6966
|
+
},{"../interfaces/plattar-base.js":67}],92:[function(require,module,exports){
|
|
6772
6967
|
const SceneBase = require("./scene-base.js");
|
|
6773
6968
|
|
|
6774
6969
|
class SceneAnnotation extends SceneBase {
|
|
@@ -6778,7 +6973,7 @@ class SceneAnnotation extends SceneBase {
|
|
|
6778
6973
|
}
|
|
6779
6974
|
|
|
6780
6975
|
module.exports = SceneAnnotation;
|
|
6781
|
-
},{"./scene-base.js":
|
|
6976
|
+
},{"./scene-base.js":94}],93:[function(require,module,exports){
|
|
6782
6977
|
const SceneBase = require("./scene-base.js");
|
|
6783
6978
|
|
|
6784
6979
|
class SceneAudio extends SceneBase {
|
|
@@ -6788,7 +6983,7 @@ class SceneAudio extends SceneBase {
|
|
|
6788
6983
|
}
|
|
6789
6984
|
|
|
6790
6985
|
module.exports = SceneAudio;
|
|
6791
|
-
},{"./scene-base.js":
|
|
6986
|
+
},{"./scene-base.js":94}],94:[function(require,module,exports){
|
|
6792
6987
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6793
6988
|
const Server = require("../../server/plattar-server.js");
|
|
6794
6989
|
|
|
@@ -6822,7 +7017,7 @@ class SceneBase extends PlattarBase {
|
|
|
6822
7017
|
}
|
|
6823
7018
|
|
|
6824
7019
|
module.exports = SceneBase;
|
|
6825
|
-
},{"../../server/plattar-server.js":
|
|
7020
|
+
},{"../../server/plattar-server.js":50,"../interfaces/plattar-base.js":67,"./scene-annotation.js":92,"./scene-audio.js":93,"./scene-button.js":95,"./scene-camera.js":96,"./scene-carousel.js":97,"./scene-image.js":100,"./scene-model.js":101,"./scene-panorama.js":102,"./scene-poller.js":103,"./scene-product.js":104,"./scene-shadow.js":106,"./scene-video.js":107,"./scene-volumetric.js":108,"./scene-youtube.js":109}],95:[function(require,module,exports){
|
|
6826
7021
|
const SceneBase = require("./scene-base.js");
|
|
6827
7022
|
|
|
6828
7023
|
class SceneButton extends SceneBase {
|
|
@@ -6832,7 +7027,7 @@ class SceneButton extends SceneBase {
|
|
|
6832
7027
|
}
|
|
6833
7028
|
|
|
6834
7029
|
module.exports = SceneButton;
|
|
6835
|
-
},{"./scene-base.js":
|
|
7030
|
+
},{"./scene-base.js":94}],96:[function(require,module,exports){
|
|
6836
7031
|
const SceneBase = require("./scene-base.js");
|
|
6837
7032
|
|
|
6838
7033
|
class SceneCamera extends SceneBase {
|
|
@@ -6842,7 +7037,7 @@ class SceneCamera extends SceneBase {
|
|
|
6842
7037
|
}
|
|
6843
7038
|
|
|
6844
7039
|
module.exports = SceneCamera;
|
|
6845
|
-
},{"./scene-base.js":
|
|
7040
|
+
},{"./scene-base.js":94}],97:[function(require,module,exports){
|
|
6846
7041
|
const SceneBase = require("./scene-base.js");
|
|
6847
7042
|
|
|
6848
7043
|
class SceneCarousel extends SceneBase {
|
|
@@ -6852,7 +7047,7 @@ class SceneCarousel extends SceneBase {
|
|
|
6852
7047
|
}
|
|
6853
7048
|
|
|
6854
7049
|
module.exports = SceneCarousel;
|
|
6855
|
-
},{"./scene-base.js":
|
|
7050
|
+
},{"./scene-base.js":94}],98:[function(require,module,exports){
|
|
6856
7051
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6857
7052
|
|
|
6858
7053
|
class SceneGalleryImage extends PlattarBase {
|
|
@@ -6862,7 +7057,7 @@ class SceneGalleryImage extends PlattarBase {
|
|
|
6862
7057
|
}
|
|
6863
7058
|
|
|
6864
7059
|
module.exports = SceneGalleryImage;
|
|
6865
|
-
},{"../interfaces/plattar-base.js":
|
|
7060
|
+
},{"../interfaces/plattar-base.js":67}],99:[function(require,module,exports){
|
|
6866
7061
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6867
7062
|
|
|
6868
7063
|
class SceneGallery extends PlattarBase {
|
|
@@ -6872,7 +7067,7 @@ class SceneGallery extends PlattarBase {
|
|
|
6872
7067
|
}
|
|
6873
7068
|
|
|
6874
7069
|
module.exports = SceneGallery;
|
|
6875
|
-
},{"../interfaces/plattar-base.js":
|
|
7070
|
+
},{"../interfaces/plattar-base.js":67}],100:[function(require,module,exports){
|
|
6876
7071
|
const SceneBase = require("./scene-base.js");
|
|
6877
7072
|
|
|
6878
7073
|
class SceneImage extends SceneBase {
|
|
@@ -6882,7 +7077,7 @@ class SceneImage extends SceneBase {
|
|
|
6882
7077
|
}
|
|
6883
7078
|
|
|
6884
7079
|
module.exports = SceneImage;
|
|
6885
|
-
},{"./scene-base.js":
|
|
7080
|
+
},{"./scene-base.js":94}],101:[function(require,module,exports){
|
|
6886
7081
|
const SceneBase = require("./scene-base.js");
|
|
6887
7082
|
|
|
6888
7083
|
class SceneModel extends SceneBase {
|
|
@@ -6892,7 +7087,7 @@ class SceneModel extends SceneBase {
|
|
|
6892
7087
|
}
|
|
6893
7088
|
|
|
6894
7089
|
module.exports = SceneModel;
|
|
6895
|
-
},{"./scene-base.js":
|
|
7090
|
+
},{"./scene-base.js":94}],102:[function(require,module,exports){
|
|
6896
7091
|
const SceneBase = require("./scene-base.js");
|
|
6897
7092
|
|
|
6898
7093
|
class ScenePanorama extends SceneBase {
|
|
@@ -6902,7 +7097,7 @@ class ScenePanorama extends SceneBase {
|
|
|
6902
7097
|
}
|
|
6903
7098
|
|
|
6904
7099
|
module.exports = ScenePanorama;
|
|
6905
|
-
},{"./scene-base.js":
|
|
7100
|
+
},{"./scene-base.js":94}],103:[function(require,module,exports){
|
|
6906
7101
|
const SceneBase = require("./scene-base.js");
|
|
6907
7102
|
|
|
6908
7103
|
class ScenePoller extends SceneBase {
|
|
@@ -6912,7 +7107,7 @@ class ScenePoller extends SceneBase {
|
|
|
6912
7107
|
}
|
|
6913
7108
|
|
|
6914
7109
|
module.exports = ScenePoller;
|
|
6915
|
-
},{"./scene-base.js":
|
|
7110
|
+
},{"./scene-base.js":94}],104:[function(require,module,exports){
|
|
6916
7111
|
const SceneBase = require("./scene-base.js");
|
|
6917
7112
|
|
|
6918
7113
|
class SceneProduct extends SceneBase {
|
|
@@ -6922,7 +7117,7 @@ class SceneProduct extends SceneBase {
|
|
|
6922
7117
|
}
|
|
6923
7118
|
|
|
6924
7119
|
module.exports = SceneProduct;
|
|
6925
|
-
},{"./scene-base.js":
|
|
7120
|
+
},{"./scene-base.js":94}],105:[function(require,module,exports){
|
|
6926
7121
|
const SceneBase = require("./scene-base.js");
|
|
6927
7122
|
|
|
6928
7123
|
class SceneScript extends SceneBase {
|
|
@@ -6932,7 +7127,7 @@ class SceneScript extends SceneBase {
|
|
|
6932
7127
|
}
|
|
6933
7128
|
|
|
6934
7129
|
module.exports = SceneScript;
|
|
6935
|
-
},{"./scene-base.js":
|
|
7130
|
+
},{"./scene-base.js":94}],106:[function(require,module,exports){
|
|
6936
7131
|
const SceneBase = require("./scene-base.js");
|
|
6937
7132
|
|
|
6938
7133
|
class SceneShadow extends SceneBase {
|
|
@@ -6942,7 +7137,7 @@ class SceneShadow extends SceneBase {
|
|
|
6942
7137
|
}
|
|
6943
7138
|
|
|
6944
7139
|
module.exports = SceneShadow;
|
|
6945
|
-
},{"./scene-base.js":
|
|
7140
|
+
},{"./scene-base.js":94}],107:[function(require,module,exports){
|
|
6946
7141
|
const SceneBase = require("./scene-base.js");
|
|
6947
7142
|
|
|
6948
7143
|
class SceneVideo extends SceneBase {
|
|
@@ -6952,7 +7147,7 @@ class SceneVideo extends SceneBase {
|
|
|
6952
7147
|
}
|
|
6953
7148
|
|
|
6954
7149
|
module.exports = SceneVideo;
|
|
6955
|
-
},{"./scene-base.js":
|
|
7150
|
+
},{"./scene-base.js":94}],108:[function(require,module,exports){
|
|
6956
7151
|
const SceneBase = require("./scene-base.js");
|
|
6957
7152
|
|
|
6958
7153
|
class SceneVolumetric extends SceneBase {
|
|
@@ -6962,7 +7157,7 @@ class SceneVolumetric extends SceneBase {
|
|
|
6962
7157
|
}
|
|
6963
7158
|
|
|
6964
7159
|
module.exports = SceneVolumetric;
|
|
6965
|
-
},{"./scene-base.js":
|
|
7160
|
+
},{"./scene-base.js":94}],109:[function(require,module,exports){
|
|
6966
7161
|
const SceneBase = require("./scene-base.js");
|
|
6967
7162
|
|
|
6968
7163
|
class SceneYoutube extends SceneBase {
|
|
@@ -6972,7 +7167,7 @@ class SceneYoutube extends SceneBase {
|
|
|
6972
7167
|
}
|
|
6973
7168
|
|
|
6974
7169
|
module.exports = SceneYoutube;
|
|
6975
|
-
},{"./scene-base.js":
|
|
7170
|
+
},{"./scene-base.js":94}],110:[function(require,module,exports){
|
|
6976
7171
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6977
7172
|
|
|
6978
7173
|
class Scene extends PlattarBase {
|
|
@@ -6982,7 +7177,7 @@ class Scene extends PlattarBase {
|
|
|
6982
7177
|
}
|
|
6983
7178
|
|
|
6984
7179
|
module.exports = Scene;
|
|
6985
|
-
},{"../interfaces/plattar-base.js":
|
|
7180
|
+
},{"../interfaces/plattar-base.js":67}],111:[function(require,module,exports){
|
|
6986
7181
|
const PlattarBase = require("../interfaces/plattar-base.js");
|
|
6987
7182
|
|
|
6988
7183
|
class TriggerImage extends PlattarBase {
|
|
@@ -6992,7 +7187,7 @@ class TriggerImage extends PlattarBase {
|
|
|
6992
7187
|
}
|
|
6993
7188
|
|
|
6994
7189
|
module.exports = TriggerImage;
|
|
6995
|
-
},{"../interfaces/plattar-base.js":
|
|
7190
|
+
},{"../interfaces/plattar-base.js":67}],112:[function(require,module,exports){
|
|
6996
7191
|
const Application = require("../types/application.js");
|
|
6997
7192
|
|
|
6998
7193
|
// import Scene types and its children
|
|
@@ -7236,10 +7431,10 @@ PlattarUtil.match = (type) => {
|
|
|
7236
7431
|
|
|
7237
7432
|
|
|
7238
7433
|
module.exports = PlattarUtil;
|
|
7239
|
-
},{"../types/application.js":
|
|
7434
|
+
},{"../types/application.js":51,"../types/content-pipeline/brief.js":52,"../types/content-pipeline/comment-brief.js":53,"../types/content-pipeline/comment-quote.js":54,"../types/content-pipeline/comment-solution.js":55,"../types/content-pipeline/folder.js":56,"../types/content-pipeline/pipeline-user.js":57,"../types/content-pipeline/quote.js":58,"../types/content-pipeline/rating.js":59,"../types/content-pipeline/solution.js":60,"../types/file/file-audio.js":61,"../types/file/file-image.js":63,"../types/file/file-model.js":64,"../types/file/file-script.js":65,"../types/file/file-video.js":66,"../types/interfaces/plattar-object.js":69,"../types/misc/application-build.js":70,"../types/misc/asset-library":71,"../types/misc/async-job.js":72,"../types/misc/script-event.js":73,"../types/misc/tag.js":74,"../types/page/card-button.js":76,"../types/page/card-html.js":77,"../types/page/card-iframe.js":78,"../types/page/card-image.js":79,"../types/page/card-map.js":80,"../types/page/card-paragraph.js":81,"../types/page/card-row.js":82,"../types/page/card-slider.js":83,"../types/page/card-title.js":84,"../types/page/card-video.js":85,"../types/page/card-youtube.js":86,"../types/page/page.js":87,"../types/product/product-annotation.js":88,"../types/product/product-variation.js":90,"../types/product/product.js":91,"../types/scene/scene-annotation.js":92,"../types/scene/scene-audio.js":93,"../types/scene/scene-button.js":95,"../types/scene/scene-camera.js":96,"../types/scene/scene-carousel.js":97,"../types/scene/scene-gallery-image.js":98,"../types/scene/scene-gallery.js":99,"../types/scene/scene-image.js":100,"../types/scene/scene-model.js":101,"../types/scene/scene-panorama.js":102,"../types/scene/scene-poller.js":103,"../types/scene/scene-product.js":104,"../types/scene/scene-script.js":105,"../types/scene/scene-shadow.js":106,"../types/scene/scene-video.js":107,"../types/scene/scene-volumetric.js":108,"../types/scene/scene-youtube.js":109,"../types/scene/scene.js":110,"../types/trigger/trigger-image.js":111}],113:[function(require,module,exports){
|
|
7240
7435
|
module.exports = "1.178.1";
|
|
7241
7436
|
|
|
7242
|
-
},{}],
|
|
7437
|
+
},{}],114:[function(require,module,exports){
|
|
7243
7438
|
const QRCodeStyling = require("qr-code-styling");
|
|
7244
7439
|
const hash = require("object-hash");
|
|
7245
7440
|
|
|
@@ -7530,7 +7725,7 @@ class BaseElement extends HTMLElement {
|
|
|
7530
7725
|
}
|
|
7531
7726
|
|
|
7532
7727
|
module.exports = BaseElement;
|
|
7533
|
-
},{"object-hash":
|
|
7728
|
+
},{"object-hash":144,"qr-code-styling":146}],115:[function(require,module,exports){
|
|
7534
7729
|
const BaseElement = require("./base/base-element.js");
|
|
7535
7730
|
|
|
7536
7731
|
class QRCodeElement extends BaseElement {
|
|
@@ -7540,7 +7735,7 @@ class QRCodeElement extends BaseElement {
|
|
|
7540
7735
|
}
|
|
7541
7736
|
|
|
7542
7737
|
module.exports = QRCodeElement;
|
|
7543
|
-
},{"./base/base-element.js":
|
|
7738
|
+
},{"./base/base-element.js":114}],116:[function(require,module,exports){
|
|
7544
7739
|
"use strict";
|
|
7545
7740
|
const QRCodeElement = require("./elements/qrcode-element.js");
|
|
7546
7741
|
const Version = require("./version");
|
|
@@ -7556,9 +7751,9 @@ console.log("using @plattar/plattar-qrcode v" + Version);
|
|
|
7556
7751
|
module.exports = {
|
|
7557
7752
|
version: Version
|
|
7558
7753
|
};
|
|
7559
|
-
},{"./elements/qrcode-element.js":
|
|
7560
|
-
arguments[4][
|
|
7561
|
-
},{"dup":
|
|
7754
|
+
},{"./elements/qrcode-element.js":115,"./version":117}],117:[function(require,module,exports){
|
|
7755
|
+
arguments[4][113][0].apply(exports,arguments)
|
|
7756
|
+
},{"dup":113}],118:[function(require,module,exports){
|
|
7562
7757
|
"use strict";
|
|
7563
7758
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7564
7759
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7715,7 +7910,7 @@ class Configurator {
|
|
|
7715
7910
|
}
|
|
7716
7911
|
exports.Configurator = Configurator;
|
|
7717
7912
|
|
|
7718
|
-
},{"./remote-request":
|
|
7913
|
+
},{"./remote-request":120,"@plattar/plattar-api":48,"object-hash":144}],119:[function(require,module,exports){
|
|
7719
7914
|
"use strict";
|
|
7720
7915
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7721
7916
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7779,7 +7974,7 @@ class ModelConverter {
|
|
|
7779
7974
|
}
|
|
7780
7975
|
exports.ModelConverter = ModelConverter;
|
|
7781
7976
|
|
|
7782
|
-
},{"./remote-request":
|
|
7977
|
+
},{"./remote-request":120,"@plattar/plattar-api":48,"object-hash":144}],120:[function(require,module,exports){
|
|
7783
7978
|
"use strict";
|
|
7784
7979
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7785
7980
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7847,7 +8042,7 @@ class RemoteRequest {
|
|
|
7847
8042
|
}
|
|
7848
8043
|
exports.RemoteRequest = RemoteRequest;
|
|
7849
8044
|
|
|
7850
|
-
},{"node-fetch":
|
|
8045
|
+
},{"node-fetch":143}],121:[function(require,module,exports){
|
|
7851
8046
|
"use strict";
|
|
7852
8047
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7853
8048
|
if (k2 === undefined) k2 = k;
|
|
@@ -7885,12 +8080,12 @@ exports.version = __importStar(require("./version"));
|
|
|
7885
8080
|
const version_1 = __importDefault(require("./version"));
|
|
7886
8081
|
console.log("using @plattar/plattar-services v" + version_1.default);
|
|
7887
8082
|
|
|
7888
|
-
},{"./core/configurator":
|
|
8083
|
+
},{"./core/configurator":118,"./core/model-converter":119,"./version":122}],122:[function(require,module,exports){
|
|
7889
8084
|
"use strict";
|
|
7890
8085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7891
8086
|
exports.default = "1.157.1";
|
|
7892
8087
|
|
|
7893
|
-
},{}],
|
|
8088
|
+
},{}],123:[function(require,module,exports){
|
|
7894
8089
|
const Util = require("../../util/util");
|
|
7895
8090
|
const ElementController = require("../controllers/element-controller");
|
|
7896
8091
|
const { messenger } = require("@plattar/context-messenger");
|
|
@@ -8059,7 +8254,7 @@ class BaseElement extends HTMLElement {
|
|
|
8059
8254
|
}
|
|
8060
8255
|
|
|
8061
8256
|
module.exports = BaseElement;
|
|
8062
|
-
},{"../../util/util":
|
|
8257
|
+
},{"../../util/util":138,"../controllers/element-controller":125,"@plattar/context-messenger":25}],124:[function(require,module,exports){
|
|
8063
8258
|
const BaseElement = require("./base/base-element.js");
|
|
8064
8259
|
|
|
8065
8260
|
class ConfiguratorElement extends BaseElement {
|
|
@@ -8086,18 +8281,25 @@ class ConfiguratorElement extends BaseElement {
|
|
|
8086
8281
|
}
|
|
8087
8282
|
|
|
8088
8283
|
get optionalAttributes() {
|
|
8089
|
-
return [
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8284
|
+
return [
|
|
8285
|
+
{
|
|
8286
|
+
key: "config-state",
|
|
8287
|
+
map: "config_state"
|
|
8288
|
+
},
|
|
8289
|
+
{
|
|
8290
|
+
key: "show-ar",
|
|
8291
|
+
map: "show_ar"
|
|
8292
|
+
},
|
|
8293
|
+
{
|
|
8294
|
+
key: "scene-graph-id",
|
|
8295
|
+
map: "scene_graph_id"
|
|
8296
|
+
}
|
|
8297
|
+
];
|
|
8096
8298
|
}
|
|
8097
8299
|
}
|
|
8098
8300
|
|
|
8099
8301
|
module.exports = ConfiguratorElement;
|
|
8100
|
-
},{"./base/base-element.js":
|
|
8302
|
+
},{"./base/base-element.js":123}],125:[function(require,module,exports){
|
|
8101
8303
|
const Util = require("../../util/util.js");
|
|
8102
8304
|
const { messenger } = require("@plattar/context-messenger");
|
|
8103
8305
|
const IFrameController = require("./iframe-controller.js");
|
|
@@ -8194,7 +8396,7 @@ class ElementController {
|
|
|
8194
8396
|
}
|
|
8195
8397
|
|
|
8196
8398
|
module.exports = ElementController;
|
|
8197
|
-
},{"../../util/util.js":
|
|
8399
|
+
},{"../../util/util.js":138,"./iframe-controller.js":126,"@plattar/context-messenger":25}],126:[function(require,module,exports){
|
|
8198
8400
|
const Util = require("../../util/util.js");
|
|
8199
8401
|
|
|
8200
8402
|
class IFrameController {
|
|
@@ -8296,7 +8498,7 @@ class IFrameController {
|
|
|
8296
8498
|
}
|
|
8297
8499
|
|
|
8298
8500
|
module.exports = IFrameController;
|
|
8299
|
-
},{"../../util/util.js":
|
|
8501
|
+
},{"../../util/util.js":138}],127:[function(require,module,exports){
|
|
8300
8502
|
const BaseElement = require("./base/base-element.js");
|
|
8301
8503
|
|
|
8302
8504
|
class EditorElement extends BaseElement {
|
|
@@ -8314,7 +8516,7 @@ class EditorElement extends BaseElement {
|
|
|
8314
8516
|
}
|
|
8315
8517
|
|
|
8316
8518
|
module.exports = EditorElement;
|
|
8317
|
-
},{"./base/base-element.js":
|
|
8519
|
+
},{"./base/base-element.js":123}],128:[function(require,module,exports){
|
|
8318
8520
|
const BaseElement = require("./base/base-element.js");
|
|
8319
8521
|
|
|
8320
8522
|
class EWallElement extends BaseElement {
|
|
@@ -8332,7 +8534,7 @@ class EWallElement extends BaseElement {
|
|
|
8332
8534
|
}
|
|
8333
8535
|
|
|
8334
8536
|
module.exports = EWallElement;
|
|
8335
|
-
},{"./base/base-element.js":
|
|
8537
|
+
},{"./base/base-element.js":123}],129:[function(require,module,exports){
|
|
8336
8538
|
const BaseElement = require("./base/base-element.js");
|
|
8337
8539
|
|
|
8338
8540
|
class FaceARElement extends BaseElement {
|
|
@@ -8369,7 +8571,7 @@ class FaceARElement extends BaseElement {
|
|
|
8369
8571
|
}
|
|
8370
8572
|
|
|
8371
8573
|
module.exports = FaceARElement;
|
|
8372
|
-
},{"./base/base-element.js":
|
|
8574
|
+
},{"./base/base-element.js":123}],130:[function(require,module,exports){
|
|
8373
8575
|
const BaseElement = require("./base/base-element.js");
|
|
8374
8576
|
|
|
8375
8577
|
class GalleryElement extends BaseElement {
|
|
@@ -8391,7 +8593,7 @@ class GalleryElement extends BaseElement {
|
|
|
8391
8593
|
}
|
|
8392
8594
|
|
|
8393
8595
|
module.exports = GalleryElement;
|
|
8394
|
-
},{"./base/base-element.js":
|
|
8596
|
+
},{"./base/base-element.js":123}],131:[function(require,module,exports){
|
|
8395
8597
|
const BaseElement = require("./base/base-element.js");
|
|
8396
8598
|
|
|
8397
8599
|
class LauncherElement extends BaseElement {
|
|
@@ -8444,13 +8646,17 @@ class LauncherElement extends BaseElement {
|
|
|
8444
8646
|
{
|
|
8445
8647
|
key: "show-ar-banner",
|
|
8446
8648
|
map: "show_ar_banner"
|
|
8649
|
+
},
|
|
8650
|
+
{
|
|
8651
|
+
key: "scene-graph-id",
|
|
8652
|
+
map: "scene_graph_id"
|
|
8447
8653
|
}
|
|
8448
8654
|
];
|
|
8449
8655
|
}
|
|
8450
8656
|
}
|
|
8451
8657
|
|
|
8452
8658
|
module.exports = LauncherElement;
|
|
8453
|
-
},{"./base/base-element.js":
|
|
8659
|
+
},{"./base/base-element.js":123}],132:[function(require,module,exports){
|
|
8454
8660
|
const BaseElement = require("./base/base-element.js");
|
|
8455
8661
|
|
|
8456
8662
|
class ModelElement extends BaseElement {
|
|
@@ -8485,7 +8691,7 @@ class ModelElement extends BaseElement {
|
|
|
8485
8691
|
}
|
|
8486
8692
|
|
|
8487
8693
|
module.exports = ModelElement;
|
|
8488
|
-
},{"./base/base-element.js":
|
|
8694
|
+
},{"./base/base-element.js":123}],133:[function(require,module,exports){
|
|
8489
8695
|
const BaseElement = require("./base/base-element.js");
|
|
8490
8696
|
|
|
8491
8697
|
class ProductElement extends BaseElement {
|
|
@@ -8523,7 +8729,7 @@ class ProductElement extends BaseElement {
|
|
|
8523
8729
|
}
|
|
8524
8730
|
|
|
8525
8731
|
module.exports = ProductElement;
|
|
8526
|
-
},{"./base/base-element.js":
|
|
8732
|
+
},{"./base/base-element.js":123}],134:[function(require,module,exports){
|
|
8527
8733
|
const BaseElement = require("./base/base-element.js");
|
|
8528
8734
|
|
|
8529
8735
|
class StudioElement extends BaseElement {
|
|
@@ -8551,7 +8757,7 @@ class StudioElement extends BaseElement {
|
|
|
8551
8757
|
}
|
|
8552
8758
|
|
|
8553
8759
|
module.exports = StudioElement;
|
|
8554
|
-
},{"./base/base-element.js":
|
|
8760
|
+
},{"./base/base-element.js":123}],135:[function(require,module,exports){
|
|
8555
8761
|
const BaseElement = require("./base/base-element.js");
|
|
8556
8762
|
|
|
8557
8763
|
class ViewerElement extends BaseElement {
|
|
@@ -8585,7 +8791,7 @@ class ViewerElement extends BaseElement {
|
|
|
8585
8791
|
}
|
|
8586
8792
|
|
|
8587
8793
|
module.exports = ViewerElement;
|
|
8588
|
-
},{"./base/base-element.js":
|
|
8794
|
+
},{"./base/base-element.js":123}],136:[function(require,module,exports){
|
|
8589
8795
|
const BaseElement = require("./base/base-element.js");
|
|
8590
8796
|
|
|
8591
8797
|
class WebXRElement extends BaseElement {
|
|
@@ -8603,7 +8809,7 @@ class WebXRElement extends BaseElement {
|
|
|
8603
8809
|
}
|
|
8604
8810
|
|
|
8605
8811
|
module.exports = WebXRElement;
|
|
8606
|
-
},{"./base/base-element.js":
|
|
8812
|
+
},{"./base/base-element.js":123}],137:[function(require,module,exports){
|
|
8607
8813
|
"use strict";
|
|
8608
8814
|
const WebXRElement = require("./elements/webxr-element.js");
|
|
8609
8815
|
const ViewerElement = require("./elements/viewer-element.js");
|
|
@@ -8667,7 +8873,7 @@ console.log("using @plattar/plattar-web v" + Version);
|
|
|
8667
8873
|
module.exports = {
|
|
8668
8874
|
version: Version
|
|
8669
8875
|
};
|
|
8670
|
-
},{"./elements/configurator-element.js":
|
|
8876
|
+
},{"./elements/configurator-element.js":124,"./elements/editor-element.js":127,"./elements/ewall-element.js":128,"./elements/facear-element.js":129,"./elements/gallery-element.js":130,"./elements/launcher-element.js":131,"./elements/model-element.js":132,"./elements/product-element.js":133,"./elements/studio-element.js":134,"./elements/viewer-element.js":135,"./elements/webxr-element.js":136,"./version":139}],138:[function(require,module,exports){
|
|
8671
8877
|
class Util {
|
|
8672
8878
|
static getServerLocation(server) {
|
|
8673
8879
|
switch (server) {
|
|
@@ -8727,10 +8933,10 @@ class Util {
|
|
|
8727
8933
|
}
|
|
8728
8934
|
|
|
8729
8935
|
module.exports = Util;
|
|
8730
|
-
},{}],138:[function(require,module,exports){
|
|
8731
|
-
module.exports = "1.178.2";
|
|
8732
|
-
|
|
8733
8936
|
},{}],139:[function(require,module,exports){
|
|
8937
|
+
module.exports = "1.182.2";
|
|
8938
|
+
|
|
8939
|
+
},{}],140:[function(require,module,exports){
|
|
8734
8940
|
'use strict'
|
|
8735
8941
|
|
|
8736
8942
|
exports.byteLength = byteLength
|
|
@@ -8882,7 +9088,7 @@ function fromByteArray (uint8) {
|
|
|
8882
9088
|
return parts.join('')
|
|
8883
9089
|
}
|
|
8884
9090
|
|
|
8885
|
-
},{}],
|
|
9091
|
+
},{}],141:[function(require,module,exports){
|
|
8886
9092
|
(function (Buffer){(function (){
|
|
8887
9093
|
/*!
|
|
8888
9094
|
* The buffer module from node.js, for the browser.
|
|
@@ -10663,7 +10869,7 @@ function numberIsNaN (obj) {
|
|
|
10663
10869
|
}
|
|
10664
10870
|
|
|
10665
10871
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
10666
|
-
},{"base64-js":
|
|
10872
|
+
},{"base64-js":140,"buffer":141,"ieee754":142}],142:[function(require,module,exports){
|
|
10667
10873
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10668
10874
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
10669
10875
|
var e, m
|
|
@@ -10750,7 +10956,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
10750
10956
|
buffer[offset + i - d] |= s * 128
|
|
10751
10957
|
}
|
|
10752
10958
|
|
|
10753
|
-
},{}],
|
|
10959
|
+
},{}],143:[function(require,module,exports){
|
|
10754
10960
|
(function (global){(function (){
|
|
10755
10961
|
"use strict";
|
|
10756
10962
|
|
|
@@ -10779,11 +10985,11 @@ exports.Request = globalObject.Request;
|
|
|
10779
10985
|
exports.Response = globalObject.Response;
|
|
10780
10986
|
|
|
10781
10987
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
10782
|
-
},{}],
|
|
10988
|
+
},{}],144:[function(require,module,exports){
|
|
10783
10989
|
(function (global){(function (){
|
|
10784
10990
|
!function(e){var t;"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):("undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.objectHash=e())}(function(){return function r(o,i,u){function s(n,e){if(!i[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(a)return a(n,!0);throw new Error("Cannot find module '"+n+"'")}e=i[n]={exports:{}};o[n][0].call(e.exports,function(e){var t=o[n][1][e];return s(t||e)},e,e.exports,r,o,i,u)}return i[n].exports}for(var a="function"==typeof require&&require,e=0;e<u.length;e++)s(u[e]);return s}({1:[function(w,b,m){!function(e,n,s,c,d,h,p,g,y){"use strict";var r=w("crypto");function t(e,t){t=u(e,t);var n;return void 0===(n="passthrough"!==t.algorithm?r.createHash(t.algorithm):new l).write&&(n.write=n.update,n.end=n.update),f(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(m=b.exports=t).sha1=function(e){return t(e)},m.keys=function(e){return t(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},m.MD5=function(e){return t(e,{algorithm:"md5",encoding:"hex"})},m.keysMD5=function(e){return t(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=r.getHashes?r.getHashes().slice():["sha1","md5"],i=(o.push("passthrough"),["buffer","hex","binary","base64"]);function u(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<o.length;++r)o[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=o[r]);if(-1===o.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+o.join(", "));if(-1===i.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+i.join(", "));return n}function a(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function f(o,t,i){i=i||[];function u(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return{dispatch:function(e){return this["_"+(null===(e=o.replacer?o.replacer(e):e)?"null":typeof e)](e)},_object:function(t){var n,e=Object.prototype.toString.call(t),r=/\[object (.*)\]/i.exec(e);r=(r=r?r[1]:"unknown:["+e+"]").toLowerCase();if(0<=(e=i.indexOf(t)))return this.dispatch("[CIRCULAR:"+e+"]");if(i.push(t),void 0!==s&&s.isBuffer&&s.isBuffer(t))return u("buffer:"),u(t);if("object"===r||"function"===r||"asyncfunction"===r)return e=Object.keys(t),o.unorderedObjects&&(e=e.sort()),!1===o.respectType||a(t)||e.splice(0,0,"prototype","__proto__","constructor"),o.excludeKeys&&(e=e.filter(function(e){return!o.excludeKeys(e)})),u("object:"+e.length+":"),n=this,e.forEach(function(e){n.dispatch(e),u(":"),o.excludeValues||n.dispatch(t[e]),u(",")});if(!this["_"+r]){if(o.ignoreUnknown)return u("["+r+"]");throw new Error('Unknown object type "'+r+'"')}this["_"+r](t)},_array:function(e,t){t=void 0!==t?t:!1!==o.unorderedArrays;var n=this;if(u("array:"+e.length+":"),!t||e.length<=1)return e.forEach(function(e){return n.dispatch(e)});var r=[],t=e.map(function(e){var t=new l,n=i.slice();return f(o,t,n).dispatch(e),r=r.concat(n.slice(i.length)),t.read().toString()});return i=i.concat(r),t.sort(),this._array(t,!1)},_date:function(e){return u("date:"+e.toJSON())},_symbol:function(e){return u("symbol:"+e.toString())},_error:function(e){return u("error:"+e.toString())},_boolean:function(e){return u("bool:"+e.toString())},_string:function(e){u("string:"+e.length+":"),u(e.toString())},_function:function(e){u("fn:"),a(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==o.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),o.respectFunctionProperties&&this._object(e)},_number:function(e){return u("number:"+e.toString())},_xml:function(e){return u("xml:"+e.toString())},_null:function(){return u("Null")},_undefined:function(){return u("Undefined")},_regexp:function(e){return u("regex:"+e.toString())},_uint8array:function(e){return u("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return u("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return u("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return u("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return u("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return u("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return u("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return u("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return u("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return u("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return u("url:"+e.toString())},_map:function(e){u("map:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_set:function(e){u("set:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_file:function(e){return u("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(o.ignoreUnknown)return u("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return u("domwindow")},_bigint:function(e){return u("bigint:"+e.toString())},_process:function(){return u("process")},_timer:function(){return u("timer")},_pipe:function(){return u("pipe")},_tcp:function(){return u("tcp")},_udp:function(){return u("udp")},_tty:function(){return u("tty")},_statwatcher:function(){return u("statwatcher")},_securecontext:function(){return u("securecontext")},_connection:function(){return u("connection")},_zlib:function(){return u("zlib")},_context:function(){return u("context")},_nodescript:function(){return u("nodescript")},_httpparser:function(){return u("httpparser")},_dataview:function(){return u("dataview")},_signal:function(){return u("signal")},_fsevent:function(){return u("fsevent")},_tlswrap:function(){return u("tlswrap")}}}function l(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}m.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),f(t=u(e,t),n).dispatch(e)}}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){!function(e){"use strict";var a="undefined"!=typeof Uint8Array?Uint8Array:Array,t="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),o="a".charCodeAt(0),i="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function f(e){e=e.charCodeAt(0);return e===t||e===u?62:e===n||e===s?63:e<r?-1:e<r+10?e-r+26+26:e<i+26?e-i:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var t,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,r="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,o=new a(3*e.length/4-r),i=0<r?e.length-4:e.length,u=0;function s(e){o[u++]=e}for(t=0;t<i;t+=4,0)s((16711680&(n=f(e.charAt(t))<<18|f(e.charAt(t+1))<<12|f(e.charAt(t+2))<<6|f(e.charAt(t+3))))>>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=f(e.charAt(t))<<2|f(e.charAt(t+1))>>4)):1==r&&(s((n=f(e.charAt(t))<<10|f(e.charAt(t+1))<<4|f(e.charAt(t+2))>>2)>>8&255),s(255&n)),o},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],u+=s((o=n)>>18&63)+s(o>>12&63)+s(o>>6&63)+s(63&o);switch(i){case 1:u=(u+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:u=(u=(u+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return u}}(void 0===f?this.base64js={}:f)}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(O,e,H){!function(e,n,f,r,h,p,g,y,w){var a=O("base64-js"),i=O("ieee754");function f(e,t,n){if(!(this instanceof f))return new f(e,t,n);var r,o,i,u,s=typeof e;if("base64"===t&&"string"==s)for(e=(u=e).trim?u.trim():u.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)r=j(e);else if("string"==s)r=f.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");r=j(e.length)}if(f._useTypedArrays?o=f._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),f._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(C(u=e)||f.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(i=0;i<r;i++)f.isBuffer(e)?o[i]=e.readUInt8(i):o[i]=e[i];else if("string"==s)o.write(e,0,t);else if("number"==s&&!f._useTypedArrays&&!n)for(i=0;i<r;i++)o[i]=0;return o}function b(e,t,n,r){return f._charsWritten=c(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function m(e,t,n,r){return f._charsWritten=c(function(e){for(var t,n,r=[],o=0;o<e.length;o++)n=e.charCodeAt(o),t=n>>8,n=n%256,r.push(n),r.push(t);return r}(t),e,n,r)}function v(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function o(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(o=e[t],t+1<r&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<r&&(o|=e[t+1])),o}function u(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(t+2<r&&(o=e[t+2]<<16),t+1<r&&(o|=e[t+1]<<8),o|=e[t],t+3<r&&(o+=e[t+3]<<24>>>0)):(t+1<r&&(o=e[t+1]<<16),t+2<r&&(o|=e[t+2]<<8),t+3<r&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function _(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=o(e,t,n,!0),32768&r?-1*(65535-r+1):r}function E(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=u(e,t,n,!0),2147483648&r?-1*(4294967295-r+1):r}function I(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+3<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,23,4)}function A(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+7<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,52,8)}function s(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"trying to write beyond buffer length"),Y(t,65535));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,2);i<u;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function l(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"trying to write beyond buffer length"),Y(t,4294967295));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,4);i<u;i++)e[n+i]=t>>>8*(r?i:3-i)&255}function B(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"Trying to write beyond buffer length"),F(t,32767,-32768)),e.length<=n||s(e,0<=t?t:65535+t+1,n,r,o)}function L(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),F(t,2147483647,-2147483648)),e.length<=n||l(e,0<=t?t:4294967295+t+1,n,r,o)}function U(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||i.write(e,t,n,r,23,4)}function x(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||i.write(e,t,n,r,52,8)}H.Buffer=f,H.SlowBuffer=f,H.INSPECT_MAX_BYTES=50,f.poolSize=8192,f._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=T(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=M(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},f.concat=function(e,t){if(d(C(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new f(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new f(t),r=0,o=0;o<e.length;o++){var i=e[o];i.copy(n,r),r+=i.length}return n},f.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(a=r,r=t,t=n,n=a),t=Number(t)||0;var o,i,u,s,a=this.length-t;switch((!n||a<(n=Number(n)))&&(n=a),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),d((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var i=0;i<r;i++){var u=parseInt(t.substr(2*i,2),16);d(!isNaN(u),"Invalid hex string"),e[n+i]=u}return f._charsWritten=2*i,i}(this,e,t,n);break;case"utf8":case"utf-8":i=this,u=t,s=n,o=f._charsWritten=c(T(e),i,u,s);break;case"ascii":case"binary":o=b(this,e,t,n);break;case"base64":i=this,u=t,s=n,o=f._charsWritten=c(M(e),i,u,s);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=m(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},f.prototype.toString=function(e,t,n){var r,o,i,u,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):s.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=k(e[i]);return o}(s,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=N(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+N(o)}(s,t,n);break;case"ascii":case"binary":r=v(s,t,n);break;case"base64":o=s,u=n,r=0===(i=t)&&u===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(i,u));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(s,t,n);break;default:throw new Error("Unknown encoding")}return r},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){d(n<=r,"sourceEnd < sourceStart"),d(0<=t&&t<e.length,"targetStart out of bounds"),d(0<=n&&n<this.length,"sourceStart out of bounds"),d(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!f._useTypedArrays)for(var i=0;i<o;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+o),t)}},f.prototype.slice=function(e,t){var n=this.length;if(e=S(e,n,0),t=S(t,n,n),f._useTypedArrays)return f._augment(this.subarray(e,t));for(var r=t-e,o=new f(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},f.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},f.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},f.prototype.readUInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},f.prototype.readUInt16LE=function(e,t){return o(this,e,!0,t)},f.prototype.readUInt16BE=function(e,t){return o(this,e,!1,t)},f.prototype.readUInt32LE=function(e,t){return u(this,e,!0,t)},f.prototype.readUInt32BE=function(e,t){return u(this,e,!1,t)},f.prototype.readInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){return _(this,e,!0,t)},f.prototype.readInt16BE=function(e,t){return _(this,e,!1,t)},f.prototype.readInt32LE=function(e,t){return E(this,e,!0,t)},f.prototype.readInt32BE=function(e,t){return E(this,e,!1,t)},f.prototype.readFloatLE=function(e,t){return I(this,e,!0,t)},f.prototype.readFloatBE=function(e,t){return I(this,e,!1,t)},f.prototype.readDoubleLE=function(e,t){return A(this,e,!0,t)},f.prototype.readDoubleBE=function(e,t){return A(this,e,!1,t)},f.prototype.writeUInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"trying to write beyond buffer length"),Y(e,255)),t>=this.length||(this[t]=e)},f.prototype.writeUInt16LE=function(e,t,n){s(this,e,t,!0,n)},f.prototype.writeUInt16BE=function(e,t,n){s(this,e,t,!1,n)},f.prototype.writeUInt32LE=function(e,t,n){l(this,e,t,!0,n)},f.prototype.writeUInt32BE=function(e,t,n){l(this,e,t,!1,n)},f.prototype.writeInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"Trying to write beyond buffer length"),F(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},f.prototype.writeInt16LE=function(e,t,n){B(this,e,t,!0,n)},f.prototype.writeInt16BE=function(e,t,n){B(this,e,t,!1,n)},f.prototype.writeInt32LE=function(e,t,n){L(this,e,t,!0,n)},f.prototype.writeInt32BE=function(e,t,n){L(this,e,t,!1,n)},f.prototype.writeFloatLE=function(e,t,n){U(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){U(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){x(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){x(this,e,t,!1,n)},f.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,d("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),d(t<=n,"end < start"),n!==t&&0!==this.length){d(0<=t&&t<this.length,"start out of bounds"),d(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},f.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=k(this[n]),n===H.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},f.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(f._useTypedArrays)return new f(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var t=f.prototype;function S(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function j(e){return(e=~~Math.ceil(+e))<0?0:e}function C(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function k(e){return e<16?"0"+e.toString(16):e.toString(16)}function T(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var o=n,i=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(o,n+1)).substr(1).split("%")),u=0;u<i.length;u++)t.push(parseInt(i[u],16))}return t}function M(e){return a.toByteArray(e)}function c(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function Y(e,t){d("number"==typeof e,"cannot write a non-number as a number"),d(0<=e,"specified a negative value for writing an unsigned value"),d(e<=t,"value is larger than maximum value for type"),d(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value"),d(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value")}function d(e,t){if(!e)throw new Error(t||"Failed assertion")}f._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=t.get,e.set=t.set,e.write=t.write,e.toString=t.toString,e.toLocaleString=t.toString,e.toJSON=t.toJSON,e.copy=t.copy,e.slice=t.slice,e.readUInt8=t.readUInt8,e.readUInt16LE=t.readUInt16LE,e.readUInt16BE=t.readUInt16BE,e.readUInt32LE=t.readUInt32LE,e.readUInt32BE=t.readUInt32BE,e.readInt8=t.readInt8,e.readInt16LE=t.readInt16LE,e.readInt16BE=t.readInt16BE,e.readInt32LE=t.readInt32LE,e.readInt32BE=t.readInt32BE,e.readFloatLE=t.readFloatLE,e.readFloatBE=t.readFloatBE,e.readDoubleLE=t.readDoubleLE,e.readDoubleBE=t.readDoubleBE,e.writeUInt8=t.writeUInt8,e.writeUInt16LE=t.writeUInt16LE,e.writeUInt16BE=t.writeUInt16BE,e.writeUInt32LE=t.writeUInt32LE,e.writeUInt32BE=t.writeUInt32BE,e.writeInt8=t.writeInt8,e.writeInt16LE=t.writeInt16LE,e.writeInt16BE=t.writeInt16BE,e.writeInt32LE=t.writeInt32LE,e.writeInt32BE=t.writeInt32BE,e.writeFloatLE=t.writeFloatLE,e.writeFloatBE=t.writeFloatBE,e.writeDoubleLE=t.writeDoubleLE,e.writeDoubleBE=t.writeDoubleBE,e.fill=t.fill,e.inspect=t.inspect,e.toArrayBuffer=t.toArrayBuffer,e}}.call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(c,d,e){!function(e,t,a,n,r,o,i,u,s){var a=c("buffer").Buffer,f=4,l=new a(f);l.fill(0);d.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%f!=0&&(n=e.length+(f-e.length%f),e=a.concat([e,l],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)r.push(o.call(e,i));return r}(e=a.isBuffer(e)?e:new a(e),r),8*e.length),t=r,i=new a(n),u=t?i.writeInt32BE:i.writeInt32LE,s=0;s<o.length;s++)u.call(i,o[s],4*s,!0);return i}}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(v,e,_){!function(l,c,u,d,h,p,g,y,w){var u=v("buffer").Buffer,e=v("./sha"),t=v("./sha256"),n=v("./rng"),b={sha1:e,sha256:t,md5:v("./md5")},s=64,a=new u(s);function r(e,n){var r=b[e=e||"sha1"],o=[];return r||i("algorithm:",e,"is not yet supported"),{update:function(e){return u.isBuffer(e)||(e=new u(e)),o.push(e),e.length,this},digest:function(e){var t=u.concat(o),t=n?function(e,t,n){u.isBuffer(t)||(t=new u(t)),u.isBuffer(n)||(n=new u(n)),t.length>s?t=e(t):t.length<s&&(t=u.concat([t,a],s));for(var r=new u(s),o=new u(s),i=0;i<s;i++)r[i]=54^t[i],o[i]=92^t[i];return n=e(u.concat([r,n])),e(u.concat([o,n]))}(r,n,t):r(t);return o=null,e?t.toString(e):t}}}function i(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}a.fill(0),_.createHash=function(e){return r(e)},_.createHmac=r,_.randomBytes=function(e,t){if(!t||!t.call)return new u(n(e));try{t.call(this,void 0,new u(n(e)))}catch(e){t(e)}};var o,f=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],m=function(e){_[e]=function(){i("sorry,",e,"is not implemented yet")}};for(o in f)m(f[o],o)}.call(this,v("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},v("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(w,b,e){!function(e,r,o,i,u,a,f,l,y){var t=w("./helpers");function n(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var s=n,a=r,f=o,l=i,n=c(n,r,o,i,e[u+0],7,-680876936),i=c(i,n,r,o,e[u+1],12,-389564586),o=c(o,i,n,r,e[u+2],17,606105819),r=c(r,o,i,n,e[u+3],22,-1044525330);n=c(n,r,o,i,e[u+4],7,-176418897),i=c(i,n,r,o,e[u+5],12,1200080426),o=c(o,i,n,r,e[u+6],17,-1473231341),r=c(r,o,i,n,e[u+7],22,-45705983),n=c(n,r,o,i,e[u+8],7,1770035416),i=c(i,n,r,o,e[u+9],12,-1958414417),o=c(o,i,n,r,e[u+10],17,-42063),r=c(r,o,i,n,e[u+11],22,-1990404162),n=c(n,r,o,i,e[u+12],7,1804603682),i=c(i,n,r,o,e[u+13],12,-40341101),o=c(o,i,n,r,e[u+14],17,-1502002290),n=d(n,r=c(r,o,i,n,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=d(i,n,r,o,e[u+6],9,-1069501632),o=d(o,i,n,r,e[u+11],14,643717713),r=d(r,o,i,n,e[u+0],20,-373897302),n=d(n,r,o,i,e[u+5],5,-701558691),i=d(i,n,r,o,e[u+10],9,38016083),o=d(o,i,n,r,e[u+15],14,-660478335),r=d(r,o,i,n,e[u+4],20,-405537848),n=d(n,r,o,i,e[u+9],5,568446438),i=d(i,n,r,o,e[u+14],9,-1019803690),o=d(o,i,n,r,e[u+3],14,-187363961),r=d(r,o,i,n,e[u+8],20,1163531501),n=d(n,r,o,i,e[u+13],5,-1444681467),i=d(i,n,r,o,e[u+2],9,-51403784),o=d(o,i,n,r,e[u+7],14,1735328473),n=h(n,r=d(r,o,i,n,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=h(i,n,r,o,e[u+8],11,-2022574463),o=h(o,i,n,r,e[u+11],16,1839030562),r=h(r,o,i,n,e[u+14],23,-35309556),n=h(n,r,o,i,e[u+1],4,-1530992060),i=h(i,n,r,o,e[u+4],11,1272893353),o=h(o,i,n,r,e[u+7],16,-155497632),r=h(r,o,i,n,e[u+10],23,-1094730640),n=h(n,r,o,i,e[u+13],4,681279174),i=h(i,n,r,o,e[u+0],11,-358537222),o=h(o,i,n,r,e[u+3],16,-722521979),r=h(r,o,i,n,e[u+6],23,76029189),n=h(n,r,o,i,e[u+9],4,-640364487),i=h(i,n,r,o,e[u+12],11,-421815835),o=h(o,i,n,r,e[u+15],16,530742520),n=p(n,r=h(r,o,i,n,e[u+2],23,-995338651),o,i,e[u+0],6,-198630844),i=p(i,n,r,o,e[u+7],10,1126891415),o=p(o,i,n,r,e[u+14],15,-1416354905),r=p(r,o,i,n,e[u+5],21,-57434055),n=p(n,r,o,i,e[u+12],6,1700485571),i=p(i,n,r,o,e[u+3],10,-1894986606),o=p(o,i,n,r,e[u+10],15,-1051523),r=p(r,o,i,n,e[u+1],21,-2054922799),n=p(n,r,o,i,e[u+8],6,1873313359),i=p(i,n,r,o,e[u+15],10,-30611744),o=p(o,i,n,r,e[u+6],15,-1560198380),r=p(r,o,i,n,e[u+13],21,1309151649),n=p(n,r,o,i,e[u+4],6,-145523070),i=p(i,n,r,o,e[u+11],10,-1120210379),o=p(o,i,n,r,e[u+2],15,718787259),r=p(r,o,i,n,e[u+9],21,-343485551),n=g(n,s),r=g(r,a),o=g(o,f),i=g(i,l)}return Array(n,r,o,i)}function s(e,t,n,r,o,i){return g((t=g(g(t,e),g(r,i)))<<o|t>>>32-o,n)}function c(e,t,n,r,o,i,u){return s(t&n|~t&r,e,t,o,i,u)}function d(e,t,n,r,o,i,u){return s(t&r|n&~r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return s(t^n^r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return s(n^(t|~r),e,t,o,i,u)}function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return t.hash(e,n,16)}}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,l,t){!function(e,t,n,r,o,i,u,s,f){var a;l.exports=a||function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(c,d,e){!function(e,t,n,r,o,s,a,f,l){var i=c("./helpers");function u(l,c){l[c>>5]|=128<<24-c%32,l[15+(c+64>>9<<4)]=c;for(var e,t,n,r=Array(80),o=1732584193,i=-271733879,u=-1732584194,s=271733878,d=-1009589776,h=0;h<l.length;h+=16){for(var p=o,g=i,y=u,w=s,b=d,a=0;a<80;a++){r[a]=a<16?l[h+a]:v(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var f=m(m(v(o,5),(f=i,t=u,n=s,(e=a)<20?f&t|~f&n:!(e<40)&&e<60?f&t|f&n|t&n:f^t^n)),m(m(d,r[a]),(e=a)<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514)),d=s,s=u,u=v(i,30),i=o,o=f}o=m(o,p),i=m(i,g),u=m(u,y),s=m(s,w),d=m(d,b)}return Array(o,i,u,s,d)}function m(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t){return e<<t|e>>>32-t}d.exports=function(e){return i.hash(e,u,20,!0)}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(c,d,e){!function(e,t,n,r,u,s,a,f,l){function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,l){var c,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),t=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);e[l>>5]|=128<<24-l%32,e[15+(l+64>>9<<4)]=l;for(var r,o,h=0;h<e.length;h+=16){for(var i=t[0],u=t[1],s=t[2],p=t[3],a=t[4],g=t[5],y=t[6],w=t[7],f=0;f<64;f++)n[f]=f<16?e[f+h]:b(b(b((o=n[f-2],m(o,17)^m(o,19)^v(o,10)),n[f-7]),(o=n[f-15],m(o,7)^m(o,18)^v(o,3))),n[f-16]),c=b(b(b(b(w,m(o=a,6)^m(o,11)^m(o,25)),a&g^~a&y),d[f]),n[f]),r=b(m(r=i,2)^m(r,13)^m(r,22),i&u^i&s^u&s),w=y,y=g,g=a,a=b(p,c),p=s,s=u,u=i,i=b(c,r);t[0]=b(i,t[0]),t[1]=b(u,t[1]),t[2]=b(s,t[2]),t[3]=b(p,t[3]),t[4]=b(a,t[4]),t[5]=b(g,t[5]),t[6]=b(y,t[6]),t[7]=b(w,t[7])}return t}var i=c("./helpers"),m=function(e,t){return e>>>t|e<<32-t},v=function(e,t){return e>>>t};d.exports=function(e){return i.hash(e,o,32,!0)}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){f.read=function(e,t,n,r,o){var i,u,l=8*o-r-1,c=(1<<l)-1,d=c>>1,s=-7,a=n?o-1:0,f=n?-1:1,o=e[t+a];for(a+=f,i=o&(1<<-s)-1,o>>=-s,s+=l;0<s;i=256*i+e[t+a],a+=f,s-=8);for(u=i&(1<<-s)-1,i>>=-s,s+=r;0<s;u=256*u+e[t+a],a+=f,s-=8);if(0===i)i=1-d;else{if(i===c)return u?NaN:1/0*(o?-1:1);u+=Math.pow(2,r),i-=d}return(o?-1:1)*u*Math.pow(2,i-r)},f.write=function(e,t,l,n,r,c){var o,i,u=8*c-r-1,s=(1<<u)-1,a=s>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:c-1,h=n?1:-1,c=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+a?d/n:d*Math.pow(2,1-a))*n&&(o++,n/=2),s<=o+a?(i=0,o=s):1<=o+a?(i=(t*n-1)*Math.pow(2,r),o+=a):(i=t*Math.pow(2,a-1)*Math.pow(2,r),o=0));8<=r;e[l+f]=255&i,f+=h,i/=256,r-=8);for(o=o<<r|i,u+=r;0<u;e[l+f]=255&o,f+=h,o/=256,u-=8);e[l+f-h]|=128*c}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,h,t){!function(e,t,n,r,o,f,l,c,d){var i,u,s;function a(){}(e=h.exports={}).nextTick=(u="undefined"!=typeof window&&window.setImmediate,s="undefined"!=typeof window&&window.postMessage&&window.addEventListener,u?function(e){return window.setImmediate(e)}:s?(i=[],window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<i.length&&i.shift()())},!0),function(e){i.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=a,e.addListener=a,e.once=a,e.off=a,e.removeListener=a,e.removeAllListeners=a,e.emit=a,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)});
|
|
10785
10991
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
10786
|
-
},{}],
|
|
10992
|
+
},{}],145:[function(require,module,exports){
|
|
10787
10993
|
// shim for using process in browser
|
|
10788
10994
|
var process = module.exports = {};
|
|
10789
10995
|
|
|
@@ -10969,10 +11175,10 @@ process.chdir = function (dir) {
|
|
|
10969
11175
|
};
|
|
10970
11176
|
process.umask = function() { return 0; };
|
|
10971
11177
|
|
|
10972
|
-
},{}],
|
|
11178
|
+
},{}],146:[function(require,module,exports){
|
|
10973
11179
|
(function (Buffer){(function (){
|
|
10974
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.QRCodeStyling=e():t.QRCodeStyling=e()}(this,(()=>(()=>{var t={873:(t,e)=>{var i,r,n=function(){var t=function(t,e){var i=t,r=s[e],n=null,o=0,h=null,p=[],v={},m=function(t,e){n=function(t){for(var e=new Array(t),i=0;i<t;i+=1){e[i]=new Array(t);for(var r=0;r<t;r+=1)e[i][r]=null}return e}(o=4*i+17),b(0,0),b(o-7,0),b(0,o-7),x(),y(),C(t,e),i>=7&&S(t),null==h&&(h=M(i,r,p)),A(h,e)},b=function(t,e){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)e+r<=-1||o<=e+r||(n[t+i][e+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},y=function(){for(var t=8;t<o-8;t+=1)null==n[t][6]&&(n[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==n[6][e]&&(n[6][e]=e%2==0)},x=function(){for(var t=a.getPatternPosition(i),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var o=t[e],s=t[r];if(null==n[o][s])for(var h=-2;h<=2;h+=1)for(var d=-2;d<=2;d+=1)n[o+h][s+d]=-2==h||2==h||-2==d||2==d||0==h&&0==d}},S=function(t){for(var e=a.getBCHTypeNumber(i),r=0;r<18;r+=1){var s=!t&&1==(e>>r&1);n[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(e>>r&1),n[r%3+o-8-3][Math.floor(r/3)]=s},C=function(t,e){for(var i=r<<3|e,s=a.getBCHTypeInfo(i),h=0;h<15;h+=1){var d=!t&&1==(s>>h&1);h<6?n[h][8]=d:h<8?n[h+1][8]=d:n[o-15+h][8]=d}for(h=0;h<15;h+=1)d=!t&&1==(s>>h&1),h<8?n[8][o-h-1]=d:h<9?n[8][15-h-1+1]=d:n[8][15-h-1]=d;n[o-8][8]=!t},A=function(t,e){for(var i=-1,r=o-1,s=7,h=0,d=a.getMaskFunction(e),u=o-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var c=0;c<2;c+=1)if(null==n[r][u-c]){var l=!1;h<t.length&&(l=1==(t[h]>>>s&1)),d(r,u-c)&&(l=!l),n[r][u-c]=l,-1==(s-=1)&&(h+=1,s=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},M=function(t,e,i){for(var r=u.getRSBlocks(t,e),n=c(),o=0;o<i.length;o+=1){var s=i[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<r.length;o+=1)h+=r[o].dataCount;if(n.getLengthInBits()>8*h)throw"code length overflow. ("+n.getLengthInBits()+">"+8*h+")";for(n.getLengthInBits()+4<=8*h&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*h||(n.put(236,8),n.getLengthInBits()>=8*h));)n.put(17,8);return function(t,e){for(var i=0,r=0,n=0,o=new Array(e.length),s=new Array(e.length),h=0;h<e.length;h+=1){var u=e[h].dataCount,c=e[h].totalCount-u;r=Math.max(r,u),n=Math.max(n,c),o[h]=new Array(u);for(var l=0;l<o[h].length;l+=1)o[h][l]=255&t.getBuffer()[l+i];i+=u;var g=a.getErrorCorrectPolynomial(c),f=d(o[h],g.getLength()-1).mod(g);for(s[h]=new Array(g.getLength()-1),l=0;l<s[h].length;l+=1){var w=l+f.getLength()-s[h].length;s[h][l]=w>=0?f.getAt(w):0}}var p=0;for(l=0;l<e.length;l+=1)p+=e[l].totalCount;var v=new Array(p),_=0;for(l=0;l<r;l+=1)for(h=0;h<e.length;h+=1)l<o[h].length&&(v[_]=o[h][l],_+=1);for(l=0;l<n;l+=1)for(h=0;h<e.length;h+=1)l<s[h].length&&(v[_]=s[h][l],_+=1);return v}(n,r)};v.addData=function(t,e){var i=null;switch(e=e||"Byte"){case"Numeric":i=l(t);break;case"Alphanumeric":i=g(t);break;case"Byte":i=f(t);break;case"Kanji":i=w(t);break;default:throw"mode:"+e}p.push(i),h=null},v.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw t+","+e;return n[t][e]},v.getModuleCount=function(){return o},v.make=function(){if(i<1){for(var t=1;t<40;t++){for(var e=u.getRSBlocks(t,r),n=c(),o=0;o<p.length;o++){var s=p[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<e.length;o++)h+=e[o].dataCount;if(n.getLengthInBits()<=8*h)break}i=t}m(!1,function(){for(var t=0,e=0,i=0;i<8;i+=1){m(!0,i);var r=a.getLostPoint(v);(0==i||t>r)&&(t=r,e=i)}return e}())},v.createTableTag=function(t,e){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",i+='">',i+="<tbody>";for(var r=0;r<v.getModuleCount();r+=1){i+="<tr>";for(var n=0;n<v.getModuleCount();n+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=v.isDark(r,n)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},v.createSvgTag=function(t,e,i,r){var n={};"object"==typeof arguments[0]&&(t=(n=arguments[0]).cellSize,e=n.margin,i=n.alt,r=n.title),t=t||2,e=void 0===e?4*t:e,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,s,a,h,d=v.getModuleCount()*t+2*e,u="";for(h="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=n.scalable?"":' width="'+d+'px" height="'+d+'px"',u+=' viewBox="0 0 '+d+" "+d+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=r.text||i.text?' role="img" aria-labelledby="'+$([r.id,i.id].join(" ").trim())+'"':"",u+=">",u+=r.text?'<title id="'+$(r.id)+'">'+$(r.text)+"</title>":"",u+=i.text?'<description id="'+$(i.id)+'">'+$(i.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',s=0;s<v.getModuleCount();s+=1)for(a=s*t+e,o=0;o<v.getModuleCount();o+=1)v.isDark(s,o)&&(u+="M"+(o*t+e)+","+a+h);return(u+='" stroke="transparent" fill="black"/>')+"</svg>"},v.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var i=v.getModuleCount()*t+2*e,r=e,n=i-e;return _(i,i,(function(e,i){if(r<=e&&e<n&&r<=i&&i<n){var o=Math.floor((e-r)/t),s=Math.floor((i-r)/t);return v.isDark(s,o)?0:1}return 1}))},v.createImgTag=function(t,e,i){t=t||2,e=void 0===e?4*t:e;var r=v.getModuleCount()*t+2*e,n="";return n+="<img",n+=' src="',n+=v.createDataURL(t,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',i&&(n+=' alt="',n+=$(i),n+='"'),n+"/>"};var $=function(t){for(var e="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=r}}return e};return v.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,i,r,n,o,s=1*v.getModuleCount()+2*t,a=t,h=s-t,d={"██":"█","█ ":"▀"," █":"▄"," ":" "},u={"██":"▀","█ ":"▀"," █":" "," ":" "},c="";for(e=0;e<s;e+=2){for(r=Math.floor((e-a)/1),n=Math.floor((e+1-a)/1),i=0;i<s;i+=1)o="█",a<=i&&i<h&&a<=e&&e<h&&v.isDark(r,Math.floor((i-a)/1))&&(o=" "),a<=i&&i<h&&a<=e+1&&e+1<h&&v.isDark(n,Math.floor((i-a)/1))?o+=" ":o+="█",c+=t<1&&e+1>=h?u[o]:d[o];c+="\n"}return s%2&&t>0?c.substring(0,c.length-s-1)+Array(s+1).join("▀"):c.substring(0,c.length-1)}(e);t-=1,e=void 0===e?2*t:e;var i,r,n,o,s=v.getModuleCount()*t+2*e,a=e,h=s-e,d=Array(t+1).join("██"),u=Array(t+1).join(" "),c="",l="";for(i=0;i<s;i+=1){for(n=Math.floor((i-a)/t),l="",r=0;r<s;r+=1)o=1,a<=r&&r<h&&a<=i&&i<h&&v.isDark(n,Math.floor((r-a)/t))&&(o=0),l+=o?d:u;for(n=0;n<t;n+=1)c+=l+"\n"}return c.substring(0,c.length-1)},v.renderTo2dContext=function(t,e){e=e||2;for(var i=v.getModuleCount(),r=0;r<i;r++)for(var n=0;n<i;n++)t.fillStyle=v.isDark(r,n)?"black":"white",t.fillRect(r*e,n*e,e,e)},v};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);e.push(255&r)}return e}}).default,t.createStringToBytes=function(t,e){var i=function(){for(var i=v(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},n=0,o={};;){var s=i.read();if(-1==s)break;var a=r(),h=r()<<8|r();o[String.fromCharCode(s<<8|a)]=h,n+=1}if(n!=e)throw n+" != "+e;return o}(),r="?".charCodeAt(0);return function(t){for(var e=[],n=0;n<t.length;n+=1){var o=t.charCodeAt(n);if(o<128)e.push(o);else{var s=i[t.charAt(n)];"number"==typeof s?(255&s)==s?e.push(s):(e.push(s>>>8),e.push(255&s)):e.push(r)}}return e}};var e,i,r,n,o,s={L:1,M:0,Q:3,H:2},a=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,r=7973,o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(i)>=0;)e^=i<<o(e)-o(i);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(r)>=0;)e^=r<<o(e)-o(r);return t<<12|e},n.getPatternPosition=function(t){return e[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=d([1],0),i=0;i<t;i+=1)e=e.multiply(d([1,h.gexp(i)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),i=0,r=0;r<e;r+=1)for(var n=0;n<e;n+=1){for(var o=0,s=t.isDark(r,n),a=-1;a<=1;a+=1)if(!(r+a<0||e<=r+a))for(var h=-1;h<=1;h+=1)n+h<0||e<=n+h||0==a&&0==h||s==t.isDark(r+a,n+h)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<e-1;r+=1)for(n=0;n<e-1;n+=1){var d=0;t.isDark(r,n)&&(d+=1),t.isDark(r+1,n)&&(d+=1),t.isDark(r,n+1)&&(d+=1),t.isDark(r+1,n+1)&&(d+=1),0!=d&&4!=d||(i+=3)}for(r=0;r<e;r+=1)for(n=0;n<e-6;n+=1)t.isDark(r,n)&&!t.isDark(r,n+1)&&t.isDark(r,n+2)&&t.isDark(r,n+3)&&t.isDark(r,n+4)&&!t.isDark(r,n+5)&&t.isDark(r,n+6)&&(i+=40);for(n=0;n<e;n+=1)for(r=0;r<e-6;r+=1)t.isDark(r,n)&&!t.isDark(r+1,n)&&t.isDark(r+2,n)&&t.isDark(r+3,n)&&t.isDark(r+4,n)&&!t.isDark(r+5,n)&&t.isDark(r+6,n)&&(i+=40);var u=0;for(n=0;n<e;n+=1)for(r=0;r<e;r+=1)t.isDark(r,n)&&(u+=1);return i+Math.abs(100*u/e/e-50)/5*10},n),h=function(){for(var t=new Array(256),e=new Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)e[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function d(t,e){if(void 0===t.length)throw t.length+"/"+e;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=new Array(t.length-i+e),n=0;n<t.length-i;n+=1)r[n]=t[n+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var e=new Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var n=0;n<t.getLength();n+=1)e[i+n]^=h.gexp(h.glog(r.getAt(i))+h.glog(t.getAt(n)));return d(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=h.glog(r.getAt(0))-h.glog(t.getAt(0)),i=new Array(r.getLength()),n=0;n<r.getLength();n+=1)i[n]=r.getAt(n);for(n=0;n<t.getLength();n+=1)i[n]^=h.gexp(h.glog(t.getAt(n))+e);return d(i,0).mod(t)}};return r}var u=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var i={};return i.totalCount=t,i.dataCount=e,i},i={getRSBlocks:function(i,r){var n=function(e,i){switch(i){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}}(i,r);if(void 0===n)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=n.length/3,a=[],h=0;h<o;h+=1)for(var d=n[3*h+0],u=n[3*h+1],c=n[3*h+2],l=0;l<d;l+=1)a.push(e(u,c));return a}};return i}(),c=function(){var t=[],e=0,i={getBuffer:function(){return t},getAt:function(e){var i=Math.floor(e/8);return 1==(t[i]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)i.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(i){var r=Math.floor(e/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>e%8),e+=1}};return i},l=function(t){var e=t,i={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+2<i.length;)t.put(r(i.substring(n,n+3)),10),n+=3;n<i.length&&(i.length-n==1?t.put(r(i.substring(n,n+1)),4):i.length-n==2&&t.put(r(i.substring(n,n+2)),7))}},r=function(t){for(var e=0,i=0;i<t.length;i+=1)e=10*e+n(t.charAt(i));return e},n=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return i},g=function(t){var e=t,i={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+1<i.length;)t.put(45*r(i.charAt(n))+r(i.charAt(n+1)),11),n+=2;n<i.length&&t.put(r(i.charAt(n)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return i},f=function(e){var i=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return i.length},write:function(t){for(var e=0;e<i.length;e+=1)t.put(i[e],8)}}},w=function(e){var i=t.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";!function(){var t=i("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var r=i(e),n={getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var e=r,i=0;i+1<e.length;){var n=(255&e[i])<<8|255&e[i+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(i+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13),i+=2}if(i<e.length)throw"illegal char at "+(i+1)}};return n},p=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var n=0;n<r;n+=1)e.writeByte(t[n+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+"]"}};return e},v=function(t){var e=t,i=0,r=0,n=0,o={read:function(){for(;n<8;){if(i>=e.length){if(0==n)return-1;throw"unexpected end of file./"+n}var t=e.charAt(i);if(i+=1,"="==t)return n=0,-1;t.match(/^\s$/)||(r=r<<6|s(t.charCodeAt(0)),n+=6)}var o=r>>>n-8&255;return n-=8,o}},s=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return o},_=function(t,e,i){for(var r=function(t,e){var i=t,r=e,n=new Array(t*e),o={setPixel:function(t,e,r){n[e*i+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(r),t.writeByte(0);var e=s(2);t.writeByte(2);for(var n=0;e.length-n>255;)t.writeByte(255),t.writeBytes(e,n,255),n+=255;t.writeByte(e.length-n),t.writeBytes(e,n,e.length-n),t.writeByte(0),t.writeString(";")}},s=function(t){for(var e=1<<t,i=1+(1<<t),r=t+1,o=a(),s=0;s<e;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(e)),o.add(String.fromCharCode(i));var h,d,u,c=p(),l=(h=c,d=0,u=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;d+e>=8;)h.writeByte(255&(t<<d|u)),e-=8-d,t>>>=8-d,u=0,d=0;u|=t<<d,d+=e},flush:function(){d>0&&h.writeByte(u)}});l.write(e,r);var g=0,f=String.fromCharCode(n[g]);for(g+=1;g<n.length;){var w=String.fromCharCode(n[g]);g+=1,o.contains(f+w)?f+=w:(l.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+w)),f=w)}return l.write(o.indexOf(f),r),l.write(i,r),l.flush(),c.toByteArray()},a=function(){var t={},e=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return i};return o}(t,e),n=0;n<e;n+=1)for(var o=0;o<t;o+=1)r.setPixel(o,n,i(o,n));var s=p();r.write(s);for(var a=function(){var t=0,e=0,i=0,r="",n={},o=function(t){r+=String.fromCharCode(s(63&t))},s=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return n.writeByte=function(r){for(t=t<<8|255&r,e+=8,i+=1;e>=6;)o(t>>>e-6),e-=6},n.flush=function(){if(e>0&&(o(t<<6-e),t=0,e=0),i%3!=0)for(var n=3-i%3,s=0;s<n;s+=1)r+="="},n.toString=function(){return r},n}(),h=s.toByteArray(),d=0;d<h.length;d+=1)a.writeByte(h[d]);return a.flush(),"data:image/gif;base64,"+a};return t}();n.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||r>=57344?e.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}(t)},void 0===(r="function"==typeof(i=function(){return n})?i.apply(e,[]):i)||(t.exports=r)}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";i.d(r,{default:()=>S});const t=t=>!!t&&"object"==typeof t&&!Array.isArray(t);function e(i,...r){if(!r.length)return i;const n=r.shift();return void 0!==n&&t(i)&&t(n)?(i=Object.assign({},i),Object.keys(n).forEach((r=>{const o=i[r],s=n[r];Array.isArray(o)&&Array.isArray(s)?i[r]=s:t(o)&&t(s)?i[r]=e(Object.assign({},o),s):i[r]=s})),e(i,...r)):i}function n(t,e){const i=document.createElement("a");i.download=e,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}const o={L:.07,M:.15,Q:.25,H:.3};class s{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case"dots":n=this._drawDot;break;case"classy":n=this._drawClassy;break;case"classy-rounded":n=this._drawClassyRounded;break;case"rounded":n=this._drawRounded;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawSquare}n.call(this,{x:t,y:e,size:i,getNeighbor:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_basicSideRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, 0 ${-e}`)}}))}_basicCornerRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_basicCornerExtraRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}a ${e} ${e}, 0, 0, 0, ${-e} ${-e}`)}}))}_basicCornersRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${e/2} ${e/2}h `+e/2+"v "+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_drawDot({x:t,y:e,size:i}){this._basicDot({x:t,y:e,size:i,rotation:0})}_drawSquare({x:t,y:e,size:i}){this._basicSquare({x:t,y:e,size:i,rotation:0})}_drawRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawExtraRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawClassy({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}_drawClassyRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}}class a{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case"square":n=this._drawSquare;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawDot}n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i+e/2} ${r}a ${e/2} ${e/2} 0 1 0 0.1 0zm 0 ${n}a ${e/2-n} ${e/2-n} 0 1 1 -0.1 0Z`)}}))}_basicSquare(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e+"z"+`M ${i+n} ${r+n}h `+(e-2*n)+"v "+(e-2*n)+"h "+(2*n-e)+"z")}}))}_basicExtraRounded(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r+2.5*n}v `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*n}h `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*-n}v `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*-n}h `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*n}`+`M ${i+2.5*n} ${r+n}h `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*n}v `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*n}h `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*-n}v `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*-n}`)}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}_drawExtraRounded({x:t,y:e,size:i,rotation:r}){this._basicExtraRounded({x:t,y:e,size:i,rotation:r})}}class h{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;n="square"===this._type?this._drawSquare:this._drawDot,n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}}const d="circle",u=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],c=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class l{constructor(t,e){this._roundSize=t=>this._options.dotsOptions.roundSize?Math.floor(t):t,this._window=e,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${t.width} ${t.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=t.image,this._instanceId=l.instanceCount++,this._options=t}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(t){const e=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===d?i/Math.sqrt(2):i,n=this._roundSize(r/e);let s={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:t,qrOptions:i}=this._options,r=t.imageSize*o[i.errorCorrectionLevel],a=Math.floor(r*e*e);s=function({originalHeight:t,originalWidth:e,maxHiddenDots:i,maxHiddenAxisDots:r,dotSize:n}){const o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||i<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const a=t/e;return o.x=Math.floor(Math.sqrt(i/a)),o.x<=0&&(o.x=1),r&&r<o.x&&(o.x=r),o.x%2==0&&o.x--,s.x=o.x*n,o.y=1+2*Math.ceil((o.x*a-1)/2),s.y=Math.round(s.x*a),(o.y*o.x>i||r&&r<o.y)&&(r&&r<o.y?(o.y=r,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*n,o.x=1+2*Math.ceil((o.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:a,maxHiddenAxisDots:e-14,dotSize:n})}this.drawBackground(),this.drawDots(((t,i)=>{var r,n,o,a,h,d;return!(this._options.imageOptions.hideBackgroundDots&&t>=(e-s.hideYDots)/2&&t<(e+s.hideYDots)/2&&i>=(e-s.hideXDots)/2&&i<(e+s.hideXDots)/2||(null===(r=u[t])||void 0===r?void 0:r[i])||(null===(n=u[t-e+7])||void 0===n?void 0:n[i])||(null===(o=u[t])||void 0===o?void 0:o[i-e+7])||(null===(a=c[t])||void 0===a?void 0:a[i])||(null===(h=c[t-e+7])||void 0===h?void 0:h[i])||(null===(d=c[t])||void 0===d?void 0:d[i-e+7]))})),this.drawCorners(),this._options.image&&await this.drawImage({width:s.width,height:s.height,count:e,dotSize:n})}drawBackground(){var t,e,i;const r=this._element,n=this._options;if(r){const r=null===(t=n.backgroundOptions)||void 0===t?void 0:t.gradient,o=null===(e=n.backgroundOptions)||void 0===e?void 0:e.color;let s=n.height,a=n.width;if(r||o){const t=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),(null===(i=n.backgroundOptions)||void 0===i?void 0:i.round)&&(s=a=Math.min(n.width,n.height),t.setAttribute("rx",String(s/2*n.backgroundOptions.round))),t.setAttribute("x",String(this._roundSize((n.width-a)/2))),t.setAttribute("y",String(this._roundSize((n.height-s)/2))),t.setAttribute("width",String(a)),t.setAttribute("height",String(s)),this._backgroundClipPath.appendChild(t),this._createColor({options:r,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:`background-color-${this._instanceId}`})}}}drawDots(t){var e,i;if(!this._qr)throw"QR code is not defined";const r=this._options,n=this._qr.getModuleCount();if(n>r.width||n>r.height)throw"The canvas is too small.";const o=Math.min(r.width,r.height)-2*r.margin,a=r.shape===d?o/Math.sqrt(2):o,h=this._roundSize(a/n),u=this._roundSize((r.width-n*h)/2),c=this._roundSize((r.height-n*h)/2),l=new s({svg:this._element,type:r.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(e=r.dotsOptions)||void 0===e?void 0:e.gradient,color:r.dotsOptions.color,additionalRotation:0,x:0,y:0,height:r.height,width:r.width,name:`dot-color-${this._instanceId}`});for(let e=0;e<n;e++)for(let r=0;r<n;r++)t&&!t(e,r)||(null===(i=this._qr)||void 0===i?void 0:i.isDark(e,r))&&(l.draw(u+r*h,c+e*h,h,((i,o)=>!(r+i<0||e+o<0||r+i>=n||e+o>=n)&&!(t&&!t(e+o,r+i))&&!!this._qr&&this._qr.isDark(e+o,r+i))),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element));if(r.shape===d){const t=this._roundSize((o/h-n)/2),e=n+2*t,i=u-t*h,r=c-t*h,s=[],a=this._roundSize(e/2);for(let i=0;i<e;i++){s[i]=[];for(let r=0;r<e;r++)i>=t-1&&i<=e-t&&r>=t-1&&r<=e-t||Math.sqrt((i-a)*(i-a)+(r-a)*(r-a))>a?s[i][r]=0:s[i][r]=this._qr.isDark(r-2*t<0?r:r>=n?r-2*t:r-t,i-2*t<0?i:i>=n?i-2*t:i-t)?1:0}for(let t=0;t<e;t++)for(let n=0;n<e;n++)s[t][n]&&(l.draw(i+n*h,r+t*h,h,((e,i)=>{var r;return!!(null===(r=s[t+i])||void 0===r?void 0:r[n+e])})),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const t=this._element,e=this._options;if(!t)throw"Element code is not defined";const i=this._qr.getModuleCount(),r=Math.min(e.width,e.height)-2*e.margin,n=e.shape===d?r/Math.sqrt(2):r,o=this._roundSize(n/i),l=7*o,g=3*o,f=this._roundSize((e.width-i*o)/2),w=this._roundSize((e.height-i*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([t,r,n])=>{var d,p,v,_,m,b,y,x,S,C,A,M;const $=f+t*o*(i-7),O=w+r*o*(i-7);let D=this._dotsClipPath,z=this._dotsClipPath;if(((null===(d=e.cornersSquareOptions)||void 0===d?void 0:d.gradient)||(null===(p=e.cornersSquareOptions)||void 0===p?void 0:p.color))&&(D=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),D.setAttribute("id",`clip-path-corners-square-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(D),this._cornersSquareClipPath=this._cornersDotClipPath=z=D,this._createColor({options:null===(v=e.cornersSquareOptions)||void 0===v?void 0:v.gradient,color:null===(_=e.cornersSquareOptions)||void 0===_?void 0:_.color,additionalRotation:n,x:$,y:O,height:l,width:l,name:`corners-square-color-${t}-${r}-${this._instanceId}`})),null===(m=e.cornersSquareOptions)||void 0===m?void 0:m.type){const t=new a({svg:this._element,type:e.cornersSquareOptions.type,window:this._window});t.draw($,O,l,n),t._element&&D&&D.appendChild(t._element)}else{const t=new s({svg:this._element,type:e.dotsOptions.type,window:this._window});for(let e=0;e<u.length;e++)for(let i=0;i<u[e].length;i++)(null===(b=u[e])||void 0===b?void 0:b[i])&&(t.draw($+i*o,O+e*o,o,((t,r)=>{var n;return!!(null===(n=u[e+r])||void 0===n?void 0:n[i+t])})),t._element&&D&&D.appendChild(t._element))}if(((null===(y=e.cornersDotOptions)||void 0===y?void 0:y.gradient)||(null===(x=e.cornersDotOptions)||void 0===x?void 0:x.color))&&(z=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),z.setAttribute("id",`clip-path-corners-dot-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(z),this._cornersDotClipPath=z,this._createColor({options:null===(S=e.cornersDotOptions)||void 0===S?void 0:S.gradient,color:null===(C=e.cornersDotOptions)||void 0===C?void 0:C.color,additionalRotation:n,x:$+2*o,y:O+2*o,height:g,width:g,name:`corners-dot-color-${t}-${r}-${this._instanceId}`})),null===(A=e.cornersDotOptions)||void 0===A?void 0:A.type){const t=new h({svg:this._element,type:e.cornersDotOptions.type,window:this._window});t.draw($+2*o,O+2*o,g,n),t._element&&z&&z.appendChild(t._element)}else{const t=new s({svg:this._element,type:e.dotsOptions.type,window:this._window});for(let e=0;e<c.length;e++)for(let i=0;i<c[e].length;i++)(null===(M=c[e])||void 0===M?void 0:M[i])&&(t.draw($+i*o,O+e*o,o,((t,r)=>{var n;return!!(null===(n=c[e+r])||void 0===n?void 0:n[i+t])})),t._element&&z&&z.appendChild(t._element))}}))}loadImage(){return new Promise(((t,e)=>{var i;const r=this._options;if(!r.image)return e("Image is not defined");if(null===(i=r.nodeCanvas)||void 0===i?void 0:i.loadImage)r.nodeCanvas.loadImage(r.image).then((e=>{var i,n;if(this._image=e,this._options.imageOptions.saveAsBlob){const t=null===(i=r.nodeCanvas)||void 0===i?void 0:i.createCanvas(this._image.width,this._image.height);null===(n=null==t?void 0:t.getContext("2d"))||void 0===n||n.drawImage(e,0,0),this._imageUri=null==t?void 0:t.toDataURL()}t()})).catch(e);else{const e=new this._window.Image;"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),this._image=e,e.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(t,e){return new Promise((i=>{const r=new e.XMLHttpRequest;r.onload=function(){const t=new e.FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(r.response)},r.open("GET",t),r.responseType="blob",r.send()}))}(r.image||"",this._window)),t()},e.src=r.image}}))}async drawImage({width:t,height:e,count:i,dotSize:r}){const n=this._options,o=this._roundSize((n.width-i*r)/2),s=this._roundSize((n.height-i*r)/2),a=o+this._roundSize(n.imageOptions.margin+(i*r-t)/2),h=s+this._roundSize(n.imageOptions.margin+(i*r-e)/2),d=t-2*n.imageOptions.margin,u=e-2*n.imageOptions.margin,c=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");c.setAttribute("href",this._imageUri||""),c.setAttribute("x",String(a)),c.setAttribute("y",String(h)),c.setAttribute("width",`${d}px`),c.setAttribute("height",`${u}px`),this._element.appendChild(c)}_createColor({options:t,color:e,additionalRotation:i,x:r,y:n,height:o,width:s,name:a}){const h=s>o?s:o,d=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(d.setAttribute("x",String(r)),d.setAttribute("y",String(n)),d.setAttribute("height",String(o)),d.setAttribute("width",String(s)),d.setAttribute("clip-path",`url('#clip-path-${a}')`),t){let e;if("radial"===t.type)e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(r+s/2)),e.setAttribute("fy",String(n+o/2)),e.setAttribute("cx",String(r+s/2)),e.setAttribute("cy",String(n+o/2)),e.setAttribute("r",String(h/2));else{const h=((t.rotation||0)+i)%(2*Math.PI),d=(h+2*Math.PI)%(2*Math.PI);let u=r+s/2,c=n+o/2,l=r+s/2,g=n+o/2;d>=0&&d<=.25*Math.PI||d>1.75*Math.PI&&d<=2*Math.PI?(u-=s/2,c-=o/2*Math.tan(h),l+=s/2,g+=o/2*Math.tan(h)):d>.25*Math.PI&&d<=.75*Math.PI?(c-=o/2,u-=s/2/Math.tan(h),g+=o/2,l+=s/2/Math.tan(h)):d>.75*Math.PI&&d<=1.25*Math.PI?(u+=s/2,c+=o/2*Math.tan(h),l-=s/2,g-=o/2*Math.tan(h)):d>1.25*Math.PI&&d<=1.75*Math.PI&&(c+=o/2,u+=s/2/Math.tan(h),g-=o/2,l-=s/2/Math.tan(h)),e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(u))),e.setAttribute("y1",String(Math.round(c))),e.setAttribute("x2",String(Math.round(l))),e.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((({offset:t,color:i})=>{const r=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",i),e.appendChild(r)})),d.setAttribute("fill",`url('#${a}')`),this._defs.appendChild(e)}else e&&d.setAttribute("fill",e);this._element.appendChild(d)}}l.instanceCount=0;const g=l,f="canvas",w={};for(let t=0;t<=40;t++)w[t]=t;const p={type:f,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:w[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function v(t){const e=Object.assign({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((t=>Object.assign(Object.assign({},t),{offset:Number(t.offset)}))),e}function _(t){const e=Object.assign({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=Object.assign(Object.assign({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=Object.assign({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=v(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=Object.assign({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=v(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=Object.assign({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=v(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=Object.assign({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=v(e.backgroundOptions.gradient))),e}var m=i(873),b=i.n(m);function y(t){if(!t)throw new Error("Extension must be defined");"."===t[0]&&(t=t.substring(1));const e={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[t.toLowerCase()];if(!e)throw new Error(`Extension "${t}" is not supported`);return e}class x{constructor(t){(null==t?void 0:t.jsdom)?this._window=new t.jsdom("",{resources:"usable"}).window:this._window=window,this._options=t?_(e(p,t)):p,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}_setupSvg(){if(!this._qr)return;const t=new g(this._options,this._window);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((()=>{var e;this._svg&&(null===(e=this._extension)||void 0===e||e.call(this,t.getElement(),this._options))}))}_setupCanvas(){var t,e;this._qr&&((null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((()=>{var t;if(!this._svg)return;const e=this._svg,i=(new this._window.XMLSerializer).serializeToString(e),r=btoa(i),n=`data:${y("svg")};base64,${r}`;if(null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.loadImage)return this._options.nodeCanvas.loadImage(n).then((t=>{var e,i;t.width=this._options.width,t.height=this._options.height,null===(i=null===(e=this._nodeCanvas)||void 0===e?void 0:e.getContext("2d"))||void 0===i||i.drawImage(t,0,0)}));{const t=new this._window.Image;return new Promise((e=>{t.onload=()=>{var i,r;null===(r=null===(i=this._domCanvas)||void 0===i?void 0:i.getContext("2d"))||void 0===r||r.drawImage(t,0,0),e()},t.src=n}))}})))}async _getElement(t="png"){if(!this._qr)throw"QR code is empty";return"svg"===t.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(t){x._clearContainer(this._container),this._options=t?_(e(this._options,t)):this._options,this._options.data&&(this._qr=b()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===f?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===f?this._domCanvas&&t.appendChild(this._domCanvas):this._svg&&t.appendChild(this._svg),this._container=t}}applyExtension(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(t="png"){if(!this._qr)throw"QR code is empty";const e=await this._getElement(t),i=y(t);if(!e)return null;if("svg"===t.toLowerCase()){const t=`<?xml version="1.0" standalone="no"?>\r\n${(new this._window.XMLSerializer).serializeToString(e)}`;return"undefined"==typeof Blob||this._options.jsdom?Buffer.from(t):new Blob([t],{type:i})}return new Promise((t=>{const r=e;if("toBuffer"in r)if("image/png"===i)t(r.toBuffer(i));else if("image/jpeg"===i)t(r.toBuffer(i));else{if("application/pdf"!==i)throw Error("Unsupported extension");t(r.toBuffer(i))}else"toBlob"in r&&r.toBlob(t,i,1)}))}async download(t){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let e="png",i="qr";"string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(e=t.extension));const r=await this._getElement(e);if(r)if("svg"===e.toLowerCase()){let t=(new XMLSerializer).serializeToString(r);t='<?xml version="1.0" standalone="no"?>\r\n'+t,n(`data:${y(e)};charset=utf-8,${encodeURIComponent(t)}`,`${i}.svg`)}else n(r.toDataURL(y(e)),`${i}.${e}`)}}const S=x})(),r.default})()));
|
|
11180
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.QRCodeStyling=e():t.QRCodeStyling=e()}(this,(()=>(()=>{var t={873:(t,e)=>{var i,r,n=function(){var t=function(t,e){var i=t,r=s[e],n=null,o=0,h=null,p=[],v={},m=function(t,e){n=function(t){for(var e=new Array(t),i=0;i<t;i+=1){e[i]=new Array(t);for(var r=0;r<t;r+=1)e[i][r]=null}return e}(o=4*i+17),b(0,0),b(o-7,0),b(0,o-7),x(),y(),C(t,e),i>=7&&S(t),null==h&&(h=M(i,r,p)),A(h,e)},b=function(t,e){for(var i=-1;i<=7;i+=1)if(!(t+i<=-1||o<=t+i))for(var r=-1;r<=7;r+=1)e+r<=-1||o<=e+r||(n[t+i][e+r]=0<=i&&i<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=r&&r<=4)},y=function(){for(var t=8;t<o-8;t+=1)null==n[t][6]&&(n[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==n[6][e]&&(n[6][e]=e%2==0)},x=function(){for(var t=a.getPatternPosition(i),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var o=t[e],s=t[r];if(null==n[o][s])for(var h=-2;h<=2;h+=1)for(var d=-2;d<=2;d+=1)n[o+h][s+d]=-2==h||2==h||-2==d||2==d||0==h&&0==d}},S=function(t){for(var e=a.getBCHTypeNumber(i),r=0;r<18;r+=1){var s=!t&&1==(e>>r&1);n[Math.floor(r/3)][r%3+o-8-3]=s}for(r=0;r<18;r+=1)s=!t&&1==(e>>r&1),n[r%3+o-8-3][Math.floor(r/3)]=s},C=function(t,e){for(var i=r<<3|e,s=a.getBCHTypeInfo(i),h=0;h<15;h+=1){var d=!t&&1==(s>>h&1);h<6?n[h][8]=d:h<8?n[h+1][8]=d:n[o-15+h][8]=d}for(h=0;h<15;h+=1)d=!t&&1==(s>>h&1),h<8?n[8][o-h-1]=d:h<9?n[8][15-h-1+1]=d:n[8][15-h-1]=d;n[o-8][8]=!t},A=function(t,e){for(var i=-1,r=o-1,s=7,h=0,d=a.getMaskFunction(e),u=o-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var c=0;c<2;c+=1)if(null==n[r][u-c]){var l=!1;h<t.length&&(l=1==(t[h]>>>s&1)),d(r,u-c)&&(l=!l),n[r][u-c]=l,-1==(s-=1)&&(h+=1,s=7)}if((r+=i)<0||o<=r){r-=i,i=-i;break}}},M=function(t,e,i){for(var r=u.getRSBlocks(t,e),n=c(),o=0;o<i.length;o+=1){var s=i[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<r.length;o+=1)h+=r[o].dataCount;if(n.getLengthInBits()>8*h)throw"code length overflow. ("+n.getLengthInBits()+">"+8*h+")";for(n.getLengthInBits()+4<=8*h&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*h||(n.put(236,8),n.getLengthInBits()>=8*h));)n.put(17,8);return function(t,e){for(var i=0,r=0,n=0,o=new Array(e.length),s=new Array(e.length),h=0;h<e.length;h+=1){var u=e[h].dataCount,c=e[h].totalCount-u;r=Math.max(r,u),n=Math.max(n,c),o[h]=new Array(u);for(var l=0;l<o[h].length;l+=1)o[h][l]=255&t.getBuffer()[l+i];i+=u;var g=a.getErrorCorrectPolynomial(c),f=d(o[h],g.getLength()-1).mod(g);for(s[h]=new Array(g.getLength()-1),l=0;l<s[h].length;l+=1){var w=l+f.getLength()-s[h].length;s[h][l]=w>=0?f.getAt(w):0}}var p=0;for(l=0;l<e.length;l+=1)p+=e[l].totalCount;var v=new Array(p),_=0;for(l=0;l<r;l+=1)for(h=0;h<e.length;h+=1)l<o[h].length&&(v[_]=o[h][l],_+=1);for(l=0;l<n;l+=1)for(h=0;h<e.length;h+=1)l<s[h].length&&(v[_]=s[h][l],_+=1);return v}(n,r)};v.addData=function(t,e){var i=null;switch(e=e||"Byte"){case"Numeric":i=l(t);break;case"Alphanumeric":i=g(t);break;case"Byte":i=f(t);break;case"Kanji":i=w(t);break;default:throw"mode:"+e}p.push(i),h=null},v.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw t+","+e;return n[t][e]},v.getModuleCount=function(){return o},v.make=function(){if(i<1){for(var t=1;t<40;t++){for(var e=u.getRSBlocks(t,r),n=c(),o=0;o<p.length;o++){var s=p[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<e.length;o++)h+=e[o].dataCount;if(n.getLengthInBits()<=8*h)break}i=t}m(!1,function(){for(var t=0,e=0,i=0;i<8;i+=1){m(!0,i);var r=a.getLostPoint(v);(0==i||t>r)&&(t=r,e=i)}return e}())},v.createTableTag=function(t,e){t=t||2;var i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",i+='">',i+="<tbody>";for(var r=0;r<v.getModuleCount();r+=1){i+="<tr>";for(var n=0;n<v.getModuleCount();n+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+t+"px;",i+=" height: "+t+"px;",i+=" background-color: ",i+=v.isDark(r,n)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return(i+="</tbody>")+"</table>"},v.createSvgTag=function(t,e,i,r){var n={};"object"==typeof arguments[0]&&(t=(n=arguments[0]).cellSize,e=n.margin,i=n.alt,r=n.title),t=t||2,e=void 0===e?4*t:e,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,s,a,h,d=v.getModuleCount()*t+2*e,u="";for(h="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=n.scalable?"":' width="'+d+'px" height="'+d+'px"',u+=' viewBox="0 0 '+d+" "+d+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=r.text||i.text?' role="img" aria-labelledby="'+$([r.id,i.id].join(" ").trim())+'"':"",u+=">",u+=r.text?'<title id="'+$(r.id)+'">'+$(r.text)+"</title>":"",u+=i.text?'<description id="'+$(i.id)+'">'+$(i.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',s=0;s<v.getModuleCount();s+=1)for(a=s*t+e,o=0;o<v.getModuleCount();o+=1)v.isDark(s,o)&&(u+="M"+(o*t+e)+","+a+h);return(u+='" stroke="transparent" fill="black"/>')+"</svg>"},v.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var i=v.getModuleCount()*t+2*e,r=e,n=i-e;return _(i,i,(function(e,i){if(r<=e&&e<n&&r<=i&&i<n){var o=Math.floor((e-r)/t),s=Math.floor((i-r)/t);return v.isDark(s,o)?0:1}return 1}))},v.createImgTag=function(t,e,i){t=t||2,e=void 0===e?4*t:e;var r=v.getModuleCount()*t+2*e,n="";return n+="<img",n+=' src="',n+=v.createDataURL(t,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',i&&(n+=' alt="',n+=$(i),n+='"'),n+"/>"};var $=function(t){for(var e="",i=0;i<t.length;i+=1){var r=t.charAt(i);switch(r){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=r}}return e};return v.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,i,r,n,o,s=1*v.getModuleCount()+2*t,a=t,h=s-t,d={"██":"█","█ ":"▀"," █":"▄"," ":" "},u={"██":"▀","█ ":"▀"," █":" "," ":" "},c="";for(e=0;e<s;e+=2){for(r=Math.floor((e-a)/1),n=Math.floor((e+1-a)/1),i=0;i<s;i+=1)o="█",a<=i&&i<h&&a<=e&&e<h&&v.isDark(r,Math.floor((i-a)/1))&&(o=" "),a<=i&&i<h&&a<=e+1&&e+1<h&&v.isDark(n,Math.floor((i-a)/1))?o+=" ":o+="█",c+=t<1&&e+1>=h?u[o]:d[o];c+="\n"}return s%2&&t>0?c.substring(0,c.length-s-1)+Array(s+1).join("▀"):c.substring(0,c.length-1)}(e);t-=1,e=void 0===e?2*t:e;var i,r,n,o,s=v.getModuleCount()*t+2*e,a=e,h=s-e,d=Array(t+1).join("██"),u=Array(t+1).join(" "),c="",l="";for(i=0;i<s;i+=1){for(n=Math.floor((i-a)/t),l="",r=0;r<s;r+=1)o=1,a<=r&&r<h&&a<=i&&i<h&&v.isDark(n,Math.floor((r-a)/t))&&(o=0),l+=o?d:u;for(n=0;n<t;n+=1)c+=l+"\n"}return c.substring(0,c.length-1)},v.renderTo2dContext=function(t,e){e=e||2;for(var i=v.getModuleCount(),r=0;r<i;r++)for(var n=0;n<i;n++)t.fillStyle=v.isDark(r,n)?"black":"white",t.fillRect(r*e,n*e,e,e)},v};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],i=0;i<t.length;i+=1){var r=t.charCodeAt(i);e.push(255&r)}return e}}).default,t.createStringToBytes=function(t,e){var i=function(){for(var i=v(t),r=function(){var t=i.read();if(-1==t)throw"eof";return t},n=0,o={};;){var s=i.read();if(-1==s)break;var a=r(),h=r()<<8|r();o[String.fromCharCode(s<<8|a)]=h,n+=1}if(n!=e)throw n+" != "+e;return o}(),r="?".charCodeAt(0);return function(t){for(var e=[],n=0;n<t.length;n+=1){var o=t.charCodeAt(n);if(o<128)e.push(o);else{var s=i[t.charAt(n)];"number"==typeof s?(255&s)==s?e.push(s):(e.push(s>>>8),e.push(255&s)):e.push(r)}}return e}};var e,i,r,n,o,s={L:1,M:0,Q:3,H:2},a=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,r=7973,o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(i)>=0;)e^=i<<o(e)-o(i);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(r)>=0;)e^=r<<o(e)-o(r);return t<<12|e},n.getPatternPosition=function(t){return e[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=d([1],0),i=0;i<t;i+=1)e=e.multiply(d([1,h.gexp(i)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),i=0,r=0;r<e;r+=1)for(var n=0;n<e;n+=1){for(var o=0,s=t.isDark(r,n),a=-1;a<=1;a+=1)if(!(r+a<0||e<=r+a))for(var h=-1;h<=1;h+=1)n+h<0||e<=n+h||0==a&&0==h||s==t.isDark(r+a,n+h)&&(o+=1);o>5&&(i+=3+o-5)}for(r=0;r<e-1;r+=1)for(n=0;n<e-1;n+=1){var d=0;t.isDark(r,n)&&(d+=1),t.isDark(r+1,n)&&(d+=1),t.isDark(r,n+1)&&(d+=1),t.isDark(r+1,n+1)&&(d+=1),0!=d&&4!=d||(i+=3)}for(r=0;r<e;r+=1)for(n=0;n<e-6;n+=1)t.isDark(r,n)&&!t.isDark(r,n+1)&&t.isDark(r,n+2)&&t.isDark(r,n+3)&&t.isDark(r,n+4)&&!t.isDark(r,n+5)&&t.isDark(r,n+6)&&(i+=40);for(n=0;n<e;n+=1)for(r=0;r<e-6;r+=1)t.isDark(r,n)&&!t.isDark(r+1,n)&&t.isDark(r+2,n)&&t.isDark(r+3,n)&&t.isDark(r+4,n)&&!t.isDark(r+5,n)&&t.isDark(r+6,n)&&(i+=40);var u=0;for(n=0;n<e;n+=1)for(r=0;r<e;r+=1)t.isDark(r,n)&&(u+=1);return i+Math.abs(100*u/e/e-50)/5*10},n),h=function(){for(var t=new Array(256),e=new Array(256),i=0;i<8;i+=1)t[i]=1<<i;for(i=8;i<256;i+=1)t[i]=t[i-4]^t[i-5]^t[i-6]^t[i-8];for(i=0;i<255;i+=1)e[t[i]]=i;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function d(t,e){if(void 0===t.length)throw t.length+"/"+e;var i=function(){for(var i=0;i<t.length&&0==t[i];)i+=1;for(var r=new Array(t.length-i+e),n=0;n<t.length-i;n+=1)r[n]=t[n+i];return r}(),r={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){for(var e=new Array(r.getLength()+t.getLength()-1),i=0;i<r.getLength();i+=1)for(var n=0;n<t.getLength();n+=1)e[i+n]^=h.gexp(h.glog(r.getAt(i))+h.glog(t.getAt(n)));return d(e,0)},mod:function(t){if(r.getLength()-t.getLength()<0)return r;for(var e=h.glog(r.getAt(0))-h.glog(t.getAt(0)),i=new Array(r.getLength()),n=0;n<r.getLength();n+=1)i[n]=r.getAt(n);for(n=0;n<t.getLength();n+=1)i[n]^=h.gexp(h.glog(t.getAt(n))+e);return d(i,0).mod(t)}};return r}var u=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var i={};return i.totalCount=t,i.dataCount=e,i},i={getRSBlocks:function(i,r){var n=function(e,i){switch(i){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}}(i,r);if(void 0===n)throw"bad rs block @ typeNumber:"+i+"/errorCorrectionLevel:"+r;for(var o=n.length/3,a=[],h=0;h<o;h+=1)for(var d=n[3*h+0],u=n[3*h+1],c=n[3*h+2],l=0;l<d;l+=1)a.push(e(u,c));return a}};return i}(),c=function(){var t=[],e=0,i={getBuffer:function(){return t},getAt:function(e){var i=Math.floor(e/8);return 1==(t[i]>>>7-e%8&1)},put:function(t,e){for(var r=0;r<e;r+=1)i.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return e},putBit:function(i){var r=Math.floor(e/8);t.length<=r&&t.push(0),i&&(t[r]|=128>>>e%8),e+=1}};return i},l=function(t){var e=t,i={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+2<i.length;)t.put(r(i.substring(n,n+3)),10),n+=3;n<i.length&&(i.length-n==1?t.put(r(i.substring(n,n+1)),4):i.length-n==2&&t.put(r(i.substring(n,n+2)),7))}},r=function(t){for(var e=0,i=0;i<t.length;i+=1)e=10*e+n(t.charAt(i));return e},n=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return i},g=function(t){var e=t,i={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var i=e,n=0;n+1<i.length;)t.put(45*r(i.charAt(n))+r(i.charAt(n+1)),11),n+=2;n<i.length&&t.put(r(i.charAt(n)),6)}},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return i},f=function(e){var i=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return i.length},write:function(t){for(var e=0;e<i.length;e+=1)t.put(i[e],8)}}},w=function(e){var i=t.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";!function(){var t=i("友");if(2!=t.length||38726!=(t[0]<<8|t[1]))throw"sjis not supported."}();var r=i(e),n={getMode:function(){return 8},getLength:function(t){return~~(r.length/2)},write:function(t){for(var e=r,i=0;i+1<e.length;){var n=(255&e[i])<<8|255&e[i+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(i+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13),i+=2}if(i<e.length)throw"illegal char at "+(i+1)}};return n},p=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,r){i=i||0,r=r||t.length;for(var n=0;n<r;n+=1)e.writeByte(t[n+i])},writeString:function(t){for(var i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+"]"}};return e},v=function(t){var e=t,i=0,r=0,n=0,o={read:function(){for(;n<8;){if(i>=e.length){if(0==n)return-1;throw"unexpected end of file./"+n}var t=e.charAt(i);if(i+=1,"="==t)return n=0,-1;t.match(/^\s$/)||(r=r<<6|s(t.charCodeAt(0)),n+=6)}var o=r>>>n-8&255;return n-=8,o}},s=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return o},_=function(t,e,i){for(var r=function(t,e){var i=t,r=e,n=new Array(t*e),o={setPixel:function(t,e,r){n[e*i+t]=r},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(r),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(r),t.writeByte(0);var e=s(2);t.writeByte(2);for(var n=0;e.length-n>255;)t.writeByte(255),t.writeBytes(e,n,255),n+=255;t.writeByte(e.length-n),t.writeBytes(e,n,e.length-n),t.writeByte(0),t.writeString(";")}},s=function(t){for(var e=1<<t,i=1+(1<<t),r=t+1,o=a(),s=0;s<e;s+=1)o.add(String.fromCharCode(s));o.add(String.fromCharCode(e)),o.add(String.fromCharCode(i));var h,d,u,c=p(),l=(h=c,d=0,u=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;d+e>=8;)h.writeByte(255&(t<<d|u)),e-=8-d,t>>>=8-d,u=0,d=0;u|=t<<d,d+=e},flush:function(){d>0&&h.writeByte(u)}});l.write(e,r);var g=0,f=String.fromCharCode(n[g]);for(g+=1;g<n.length;){var w=String.fromCharCode(n[g]);g+=1,o.contains(f+w)?f+=w:(l.write(o.indexOf(f),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(f+w)),f=w)}return l.write(o.indexOf(f),r),l.write(i,r),l.flush(),c.toByteArray()},a=function(){var t={},e=0,i={add:function(r){if(i.contains(r))throw"dup key:"+r;t[r]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return i};return o}(t,e),n=0;n<e;n+=1)for(var o=0;o<t;o+=1)r.setPixel(o,n,i(o,n));var s=p();r.write(s);for(var a=function(){var t=0,e=0,i=0,r="",n={},o=function(t){r+=String.fromCharCode(s(63&t))},s=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return n.writeByte=function(r){for(t=t<<8|255&r,e+=8,i+=1;e>=6;)o(t>>>e-6),e-=6},n.flush=function(){if(e>0&&(o(t<<6-e),t=0,e=0),i%3!=0)for(var n=3-i%3,s=0;s<n;s+=1)r+="="},n.toString=function(){return r},n}(),h=s.toByteArray(),d=0;d<h.length;d+=1)a.writeByte(h[d]);return a.flush(),"data:image/gif;base64,"+a};return t}();n.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||r>=57344?e.push(224|r>>12,128|r>>6&63,128|63&r):(i++,r=65536+((1023&r)<<10|1023&t.charCodeAt(i)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}(t)},void 0===(r="function"==typeof(i=function(){return n})?i.apply(e,[]):i)||(t.exports=r)}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";i.d(r,{default:()=>$});const t=t=>!!t&&"object"==typeof t&&!Array.isArray(t);function e(i,...r){if(!r.length)return i;const n=r.shift();return void 0!==n&&t(i)&&t(n)?(i=Object.assign({},i),Object.keys(n).forEach((r=>{const o=i[r],s=n[r];Array.isArray(o)&&Array.isArray(s)?i[r]=s:t(o)&&t(s)?i[r]=e(Object.assign({},o),s):i[r]=s})),e(i,...r)):i}function n(t,e){const i=document.createElement("a");i.download=e,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}const o={L:.07,M:.15,Q:.25,H:.3};class s{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case"dots":n=this._drawDot;break;case"classy":n=this._drawClassy;break;case"classy-rounded":n=this._drawClassyRounded;break;case"rounded":n=this._drawRounded;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawSquare}n.call(this,{x:t,y:e,size:i,getNeighbor:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_basicSideRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, 0 ${-e}`)}}))}_basicCornerRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_basicCornerExtraRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}a ${e} ${e}, 0, 0, 0, ${-e} ${-e}`)}}))}_basicCornersRounded(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${i} ${r}v `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${e/2} ${e/2}h `+e/2+"v "+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_drawDot({x:t,y:e,size:i}){this._basicDot({x:t,y:e,size:i,rotation:0})}_drawSquare({x:t,y:e,size:i}){this._basicSquare({x:t,y:e,size:i,rotation:0})}_drawRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawExtraRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:i,rotation:0});else{if(2===h){let r=0;return n&&s?r=Math.PI/2:s&&o?r=Math.PI:o&&a&&(r=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:r})}if(1===h){let r=0;return s?r=Math.PI/2:o?r=Math.PI:a&&(r=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:i,rotation:r})}}else this._basicDot({x:t,y:e,size:i,rotation:0})}_drawClassy({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}_drawClassyRounded({x:t,y:e,size:i,getNeighbor:r}){const n=r?+r(-1,0):0,o=r?+r(1,0):0,s=r?+r(0,-1):0,a=r?+r(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:i,rotation:0}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:e,size:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:i,rotation:Math.PI/2})}}const a={dot:"dot",square:"square",extraRounded:"extra-rounded"},h=Object.values(a);class d{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;switch(this._type){case a.square:n=this._drawSquare;break;case a.extraRounded:n=this._drawExtraRounded;break;default:n=this._drawDot}n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i+e/2} ${r}a ${e/2} ${e/2} 0 1 0 0.1 0zm 0 ${n}a ${e/2-n} ${e/2-n} 0 1 1 -0.1 0Z`)}}))}_basicSquare(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r}v ${e}h ${e}v `+-e+"z"+`M ${i+n} ${r+n}h `+(e-2*n)+"v "+(e-2*n)+"h "+(2*n-e)+"z")}}))}_basicExtraRounded(t){const{size:e,x:i,y:r}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${i} ${r+2.5*n}v `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*n}h `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*-n}v `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*-n}h `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*-n} ${2.5*n}`+`M ${i+2.5*n} ${r+n}h `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*n}v `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*n}h `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*-n} ${1.5*-n}v `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*-n}`)}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}_drawExtraRounded({x:t,y:e,size:i,rotation:r}){this._basicExtraRounded({x:t,y:e,size:i,rotation:r})}}const u={dot:"dot",square:"square"},c=Object.values(u);class l{constructor({svg:t,type:e,window:i}){this._svg=t,this._type=e,this._window=i}draw(t,e,i,r){let n;n=this._type===u.square?this._drawSquare:this._drawDot,n.call(this,{x:t,y:e,size:i,rotation:r})}_rotateFigure({x:t,y:e,size:i,rotation:r=0,draw:n}){var o;const s=t+i/2,a=e+i/2;n(),null===(o=this._element)||void 0===o||o.setAttribute("transform",`rotate(${180*r/Math.PI},${s},${a})`)}_basicDot(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(i+e/2)),this._element.setAttribute("cy",String(r+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){const{size:e,x:i,y:r}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(i)),this._element.setAttribute("y",String(r)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_drawDot({x:t,y:e,size:i,rotation:r}){this._basicDot({x:t,y:e,size:i,rotation:r})}_drawSquare({x:t,y:e,size:i,rotation:r}){this._basicSquare({x:t,y:e,size:i,rotation:r})}}const g="circle",f=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],w=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class p{constructor(t,e){this._roundSize=t=>this._options.dotsOptions.roundSize?Math.floor(t):t,this._window=e,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${t.width} ${t.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=t.image,this._instanceId=p.instanceCount++,this._options=t}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(t){const e=t.getModuleCount(),i=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=this._options.shape===g?i/Math.sqrt(2):i,n=this._roundSize(r/e);let s={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:t,qrOptions:i}=this._options,r=t.imageSize*o[i.errorCorrectionLevel],a=Math.floor(r*e*e);s=function({originalHeight:t,originalWidth:e,maxHiddenDots:i,maxHiddenAxisDots:r,dotSize:n}){const o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||i<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const a=t/e;return o.x=Math.floor(Math.sqrt(i/a)),o.x<=0&&(o.x=1),r&&r<o.x&&(o.x=r),o.x%2==0&&o.x--,s.x=o.x*n,o.y=1+2*Math.ceil((o.x*a-1)/2),s.y=Math.round(s.x*a),(o.y*o.x>i||r&&r<o.y)&&(r&&r<o.y?(o.y=r,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*n,o.x=1+2*Math.ceil((o.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:a,maxHiddenAxisDots:e-14,dotSize:n})}this.drawBackground(),this.drawDots(((t,i)=>{var r,n,o,a,h,d;return!(this._options.imageOptions.hideBackgroundDots&&t>=(e-s.hideYDots)/2&&t<(e+s.hideYDots)/2&&i>=(e-s.hideXDots)/2&&i<(e+s.hideXDots)/2||(null===(r=f[t])||void 0===r?void 0:r[i])||(null===(n=f[t-e+7])||void 0===n?void 0:n[i])||(null===(o=f[t])||void 0===o?void 0:o[i-e+7])||(null===(a=w[t])||void 0===a?void 0:a[i])||(null===(h=w[t-e+7])||void 0===h?void 0:h[i])||(null===(d=w[t])||void 0===d?void 0:d[i-e+7]))})),this.drawCorners(),this._options.image&&await this.drawImage({width:s.width,height:s.height,count:e,dotSize:n})}drawBackground(){var t,e,i;const r=this._element,n=this._options;if(r){const r=null===(t=n.backgroundOptions)||void 0===t?void 0:t.gradient,o=null===(e=n.backgroundOptions)||void 0===e?void 0:e.color;let s=n.height,a=n.width;if(r||o){const t=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),(null===(i=n.backgroundOptions)||void 0===i?void 0:i.round)&&(s=a=Math.min(n.width,n.height),t.setAttribute("rx",String(s/2*n.backgroundOptions.round))),t.setAttribute("x",String(this._roundSize((n.width-a)/2))),t.setAttribute("y",String(this._roundSize((n.height-s)/2))),t.setAttribute("width",String(a)),t.setAttribute("height",String(s)),this._backgroundClipPath.appendChild(t),this._createColor({options:r,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:`background-color-${this._instanceId}`})}}}drawDots(t){var e,i;if(!this._qr)throw"QR code is not defined";const r=this._options,n=this._qr.getModuleCount();if(n>r.width||n>r.height)throw"The canvas is too small.";const o=Math.min(r.width,r.height)-2*r.margin,a=r.shape===g?o/Math.sqrt(2):o,h=this._roundSize(a/n),d=this._roundSize((r.width-n*h)/2),u=this._roundSize((r.height-n*h)/2),c=new s({svg:this._element,type:r.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(e=r.dotsOptions)||void 0===e?void 0:e.gradient,color:r.dotsOptions.color,additionalRotation:0,x:0,y:0,height:r.height,width:r.width,name:`dot-color-${this._instanceId}`});for(let e=0;e<n;e++)for(let r=0;r<n;r++)t&&!t(e,r)||(null===(i=this._qr)||void 0===i?void 0:i.isDark(e,r))&&(c.draw(d+r*h,u+e*h,h,((i,o)=>!(r+i<0||e+o<0||r+i>=n||e+o>=n)&&!(t&&!t(e+o,r+i))&&!!this._qr&&this._qr.isDark(e+o,r+i))),c._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(c._element));if(r.shape===g){const t=this._roundSize((o/h-n)/2),e=n+2*t,i=d-t*h,r=u-t*h,s=[],a=this._roundSize(e/2);for(let i=0;i<e;i++){s[i]=[];for(let r=0;r<e;r++)i>=t-1&&i<=e-t&&r>=t-1&&r<=e-t||Math.sqrt((i-a)*(i-a)+(r-a)*(r-a))>a?s[i][r]=0:s[i][r]=this._qr.isDark(r-2*t<0?r:r>=n?r-2*t:r-t,i-2*t<0?i:i>=n?i-2*t:i-t)?1:0}for(let t=0;t<e;t++)for(let n=0;n<e;n++)s[t][n]&&(c.draw(i+n*h,r+t*h,h,((e,i)=>{var r;return!!(null===(r=s[t+i])||void 0===r?void 0:r[n+e])})),c._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(c._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const t=this._element,e=this._options;if(!t)throw"Element code is not defined";const i=this._qr.getModuleCount(),r=Math.min(e.width,e.height)-2*e.margin,n=e.shape===g?r/Math.sqrt(2):r,o=this._roundSize(n/i),a=7*o,u=3*o,p=this._roundSize((e.width-i*o)/2),v=this._roundSize((e.height-i*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((([t,r,n])=>{var g,_,m,b,y,x,S,C,A,M,$,O,D,z;const k=p+t*o*(i-7),B=v+r*o*(i-7);let P=this._dotsClipPath,I=this._dotsClipPath;if(((null===(g=e.cornersSquareOptions)||void 0===g?void 0:g.gradient)||(null===(_=e.cornersSquareOptions)||void 0===_?void 0:_.color))&&(P=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),P.setAttribute("id",`clip-path-corners-square-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(P),this._cornersSquareClipPath=this._cornersDotClipPath=I=P,this._createColor({options:null===(m=e.cornersSquareOptions)||void 0===m?void 0:m.gradient,color:null===(b=e.cornersSquareOptions)||void 0===b?void 0:b.color,additionalRotation:n,x:k,y:B,height:a,width:a,name:`corners-square-color-${t}-${r}-${this._instanceId}`})),(null===(y=e.cornersSquareOptions)||void 0===y?void 0:y.type)&&h.includes(e.cornersSquareOptions.type)){const t=new d({svg:this._element,type:e.cornersSquareOptions.type,window:this._window});t.draw(k,B,a,n),t._element&&P&&P.appendChild(t._element)}else{const t=new s({svg:this._element,type:(null===(x=e.cornersSquareOptions)||void 0===x?void 0:x.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<f.length;e++)for(let i=0;i<f[e].length;i++)(null===(S=f[e])||void 0===S?void 0:S[i])&&(t.draw(k+i*o,B+e*o,o,((t,r)=>{var n;return!!(null===(n=f[e+r])||void 0===n?void 0:n[i+t])})),t._element&&P&&P.appendChild(t._element))}if(((null===(C=e.cornersDotOptions)||void 0===C?void 0:C.gradient)||(null===(A=e.cornersDotOptions)||void 0===A?void 0:A.color))&&(I=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),I.setAttribute("id",`clip-path-corners-dot-color-${t}-${r}-${this._instanceId}`),this._defs.appendChild(I),this._cornersDotClipPath=I,this._createColor({options:null===(M=e.cornersDotOptions)||void 0===M?void 0:M.gradient,color:null===($=e.cornersDotOptions)||void 0===$?void 0:$.color,additionalRotation:n,x:k+2*o,y:B+2*o,height:u,width:u,name:`corners-dot-color-${t}-${r}-${this._instanceId}`})),(null===(O=e.cornersDotOptions)||void 0===O?void 0:O.type)&&c.includes(e.cornersDotOptions.type)){const t=new l({svg:this._element,type:e.cornersDotOptions.type,window:this._window});t.draw(k+2*o,B+2*o,u,n),t._element&&I&&I.appendChild(t._element)}else{const t=new s({svg:this._element,type:(null===(D=e.cornersDotOptions)||void 0===D?void 0:D.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<w.length;e++)for(let i=0;i<w[e].length;i++)(null===(z=w[e])||void 0===z?void 0:z[i])&&(t.draw(k+i*o,B+e*o,o,((t,r)=>{var n;return!!(null===(n=w[e+r])||void 0===n?void 0:n[i+t])})),t._element&&I&&I.appendChild(t._element))}}))}loadImage(){return new Promise(((t,e)=>{var i;const r=this._options;if(!r.image)return e("Image is not defined");if(null===(i=r.nodeCanvas)||void 0===i?void 0:i.loadImage)r.nodeCanvas.loadImage(r.image).then((e=>{var i,n;if(this._image=e,this._options.imageOptions.saveAsBlob){const t=null===(i=r.nodeCanvas)||void 0===i?void 0:i.createCanvas(this._image.width,this._image.height);null===(n=null==t?void 0:t.getContext("2d"))||void 0===n||n.drawImage(e,0,0),this._imageUri=null==t?void 0:t.toDataURL()}t()})).catch(e);else{const e=new this._window.Image;"string"==typeof r.imageOptions.crossOrigin&&(e.crossOrigin=r.imageOptions.crossOrigin),this._image=e,e.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(t,e){return new Promise((i=>{const r=new e.XMLHttpRequest;r.onload=function(){const t=new e.FileReader;t.onloadend=function(){i(t.result)},t.readAsDataURL(r.response)},r.open("GET",t),r.responseType="blob",r.send()}))}(r.image||"",this._window)),t()},e.src=r.image}}))}async drawImage({width:t,height:e,count:i,dotSize:r}){const n=this._options,o=this._roundSize((n.width-i*r)/2),s=this._roundSize((n.height-i*r)/2),a=o+this._roundSize(n.imageOptions.margin+(i*r-t)/2),h=s+this._roundSize(n.imageOptions.margin+(i*r-e)/2),d=t-2*n.imageOptions.margin,u=e-2*n.imageOptions.margin,c=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");c.setAttribute("href",this._imageUri||""),c.setAttribute("x",String(a)),c.setAttribute("y",String(h)),c.setAttribute("width",`${d}px`),c.setAttribute("height",`${u}px`),this._element.appendChild(c)}_createColor({options:t,color:e,additionalRotation:i,x:r,y:n,height:o,width:s,name:a}){const h=s>o?s:o,d=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(d.setAttribute("x",String(r)),d.setAttribute("y",String(n)),d.setAttribute("height",String(o)),d.setAttribute("width",String(s)),d.setAttribute("clip-path",`url('#clip-path-${a}')`),t){let e;if("radial"===t.type)e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(r+s/2)),e.setAttribute("fy",String(n+o/2)),e.setAttribute("cx",String(r+s/2)),e.setAttribute("cy",String(n+o/2)),e.setAttribute("r",String(h/2));else{const h=((t.rotation||0)+i)%(2*Math.PI),d=(h+2*Math.PI)%(2*Math.PI);let u=r+s/2,c=n+o/2,l=r+s/2,g=n+o/2;d>=0&&d<=.25*Math.PI||d>1.75*Math.PI&&d<=2*Math.PI?(u-=s/2,c-=o/2*Math.tan(h),l+=s/2,g+=o/2*Math.tan(h)):d>.25*Math.PI&&d<=.75*Math.PI?(c-=o/2,u-=s/2/Math.tan(h),g+=o/2,l+=s/2/Math.tan(h)):d>.75*Math.PI&&d<=1.25*Math.PI?(u+=s/2,c+=o/2*Math.tan(h),l-=s/2,g-=o/2*Math.tan(h)):d>1.25*Math.PI&&d<=1.75*Math.PI&&(c+=o/2,u+=s/2/Math.tan(h),g-=o/2,l-=s/2/Math.tan(h)),e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),e.setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(u))),e.setAttribute("y1",String(Math.round(c))),e.setAttribute("x2",String(Math.round(l))),e.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach((({offset:t,color:i})=>{const r=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",i),e.appendChild(r)})),d.setAttribute("fill",`url('#${a}')`),this._defs.appendChild(e)}else e&&d.setAttribute("fill",e);this._element.appendChild(d)}}p.instanceCount=0;const v=p,_="canvas",m={};for(let t=0;t<=40;t++)m[t]=t;const b={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:m[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function y(t){const e=Object.assign({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((t=>Object.assign(Object.assign({},t),{offset:Number(t.offset)}))),e}function x(t){const e=Object.assign({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=Object.assign(Object.assign({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=Object.assign({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=y(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=Object.assign({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=y(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=Object.assign({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=y(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=Object.assign({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=y(e.backgroundOptions.gradient))),e}var S=i(873),C=i.n(S);function A(t){if(!t)throw new Error("Extension must be defined");"."===t[0]&&(t=t.substring(1));const e={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[t.toLowerCase()];if(!e)throw new Error(`Extension "${t}" is not supported`);return e}class M{constructor(t){(null==t?void 0:t.jsdom)?this._window=new t.jsdom("",{resources:"usable"}).window:this._window=window,this._options=t?x(e(b,t)):b,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}_setupSvg(){if(!this._qr)return;const t=new v(this._options,this._window);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then((()=>{var e;this._svg&&(null===(e=this._extension)||void 0===e||e.call(this,t.getElement(),this._options))}))}_setupCanvas(){var t,e;this._qr&&((null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then((()=>{var t;if(!this._svg)return;const e=this._svg,i=(new this._window.XMLSerializer).serializeToString(e),r=btoa(i),n=`data:${A("svg")};base64,${r}`;if(null===(t=this._options.nodeCanvas)||void 0===t?void 0:t.loadImage)return this._options.nodeCanvas.loadImage(n).then((t=>{var e,i;t.width=this._options.width,t.height=this._options.height,null===(i=null===(e=this._nodeCanvas)||void 0===e?void 0:e.getContext("2d"))||void 0===i||i.drawImage(t,0,0)}));{const t=new this._window.Image;return new Promise((e=>{t.onload=()=>{var i,r;null===(r=null===(i=this._domCanvas)||void 0===i?void 0:i.getContext("2d"))||void 0===r||r.drawImage(t,0,0),e()},t.src=n}))}})))}async _getElement(t="png"){if(!this._qr)throw"QR code is empty";return"svg"===t.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(t){M._clearContainer(this._container),this._options=t?x(e(this._options,t)):this._options,this._options.data&&(this._qr=C()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===_?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===_?this._domCanvas&&t.appendChild(this._domCanvas):this._svg&&t.appendChild(this._svg),this._container=t}}applyExtension(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(t="png"){if(!this._qr)throw"QR code is empty";const e=await this._getElement(t),i=A(t);if(!e)return null;if("svg"===t.toLowerCase()){const t=`<?xml version="1.0" standalone="no"?>\r\n${(new this._window.XMLSerializer).serializeToString(e)}`;return"undefined"==typeof Blob||this._options.jsdom?Buffer.from(t):new Blob([t],{type:i})}return new Promise((t=>{const r=e;if("toBuffer"in r)if("image/png"===i)t(r.toBuffer(i));else if("image/jpeg"===i)t(r.toBuffer(i));else{if("application/pdf"!==i)throw Error("Unsupported extension");t(r.toBuffer(i))}else"toBlob"in r&&r.toBlob(t,i,1)}))}async download(t){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let e="png",i="qr";"string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(i=t.name),t.extension&&(e=t.extension));const r=await this._getElement(e);if(r)if("svg"===e.toLowerCase()){let t=(new XMLSerializer).serializeToString(r);t='<?xml version="1.0" standalone="no"?>\r\n'+t,n(`data:${A(e)};charset=utf-8,${encodeURIComponent(t)}`,`${i}.svg`)}else n(r.toDataURL(A(e)),`${i}.${e}`)}}const $=M})(),r.default})()));
|
|
10975
11181
|
|
|
10976
11182
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
10977
|
-
},{"buffer":
|
|
11183
|
+
},{"buffer":141}]},{},[17])(17)
|
|
10978
11184
|
});
|