earthsdk3-ue 0.0.1-beta.0.10 → 0.0.1-beta.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-ue.js +40 -40
- package/dist/earthsdk3-ue.js.map +1 -1
- package/package.json +1 -1
package/dist/earthsdk3-ue.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! earthsdk3-ue(0.0.1-beta.0.
|
|
1
|
+
/*! earthsdk3-ue(0.0.1-beta.0.11-617fa414-2024-12-05T06:13:57.000Z) 版权所有@北京西部世界科技有限公司 */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
|
-
module.exports = factory(require("earthsdk3"));
|
|
4
|
+
module.exports = factory(require("earthsdk3"), require("xbsj-base"));
|
|
5
5
|
else if(typeof define === 'function' && define.amd)
|
|
6
|
-
define(["earthsdk3"], factory);
|
|
6
|
+
define(["earthsdk3", "xbsj-base"], factory);
|
|
7
7
|
else if(typeof exports === 'object')
|
|
8
|
-
exports["earthsdk3ue"] = factory(require("earthsdk3"));
|
|
8
|
+
exports["earthsdk3ue"] = factory(require("earthsdk3"), require("xbsj-base"));
|
|
9
9
|
else
|
|
10
|
-
root["earthsdk3ue"] = factory(root["earthsdk3"]);
|
|
11
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE_earthsdk3__) => {
|
|
10
|
+
root["earthsdk3ue"] = factory(root["earthsdk3"], root["xbsj-base"]);
|
|
11
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_earthsdk3__, __WEBPACK_EXTERNAL_MODULE_xbsj_base__) => {
|
|
12
12
|
return /******/ (() => { // webpackBootstrap
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
@@ -8763,7 +8763,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8763
8763
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8764
8764
|
/* harmony export */ UeCloudViewer: () => (/* binding */ UeCloudViewer)
|
|
8765
8765
|
/* harmony export */ });
|
|
8766
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
8766
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
8767
8767
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
8768
8768
|
/* harmony import */ var _uemsg_UeCloudViewerBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../uemsg/UeCloudViewerBase */ "./src/ESUeViewer/uemsg/UeCloudViewerBase.ts");
|
|
8769
8769
|
/* harmony import */ var _WebRtcManagerWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WebRtcManagerWrapper */ "./src/ESUeViewer/CustomPixelStream/WebRtcManagerWrapper.ts");
|
|
@@ -9118,7 +9118,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9118
9118
|
/* harmony export */ WebRtcManager: () => (/* binding */ WebRtcManager)
|
|
9119
9119
|
/* harmony export */ });
|
|
9120
9120
|
/* harmony import */ var _epicgames_ps_lib_pixelstreamingfrontend_ue5_4__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @epicgames-ps/lib-pixelstreamingfrontend-ue5.4 */ "../../node_modules/.pnpm/@epicgames-ps+lib-pixelstreamingfrontend-ue5.4@1.1.5/node_modules/@epicgames-ps/lib-pixelstreamingfrontend-ue5.4/dist/lib-pixelstreamingfrontend.esm.js");
|
|
9121
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
9121
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
9122
9122
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
9123
9123
|
/* harmony import */ var _createMsgInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createMsgInput */ "./src/ESUeViewer/CustomPixelStream/createMsgInput.ts");
|
|
9124
9124
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -9429,7 +9429,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9429
9429
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9430
9430
|
/* harmony export */ WebRtcManagerWrapper: () => (/* binding */ WebRtcManagerWrapper)
|
|
9431
9431
|
/* harmony export */ });
|
|
9432
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
9432
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
9433
9433
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
9434
9434
|
/* harmony import */ var _WebRtcManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./WebRtcManager */ "./src/ESUeViewer/CustomPixelStream/WebRtcManager.ts");
|
|
9435
9435
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -9601,7 +9601,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9601
9601
|
/* harmony export */ });
|
|
9602
9602
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
9603
9603
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
9604
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
9604
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
9605
9605
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
9606
9606
|
/* harmony import */ var _inner_ReactProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inner/ReactProps */ "./src/ESUeViewer/inner/ReactProps.ts");
|
|
9607
9607
|
/* harmony import */ var _inner_ViewerCreating__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inner/ViewerCreating */ "./src/ESUeViewer/inner/ViewerCreating.ts");
|
|
@@ -10921,7 +10921,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10921
10921
|
/* harmony export */ getGlobalPropsValue: () => (/* binding */ getGlobalPropsValue),
|
|
10922
10922
|
/* harmony export */ reactPropDefaults: () => (/* binding */ reactPropDefaults)
|
|
10923
10923
|
/* harmony export */ });
|
|
10924
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
10924
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
10925
10925
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
10926
10926
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../index */ "./src/ESUeViewer/index.ts");
|
|
10927
10927
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
@@ -10981,7 +10981,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10981
10981
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10982
10982
|
/* harmony export */ UeLocalViewer: () => (/* binding */ UeLocalViewer)
|
|
10983
10983
|
/* harmony export */ });
|
|
10984
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
10984
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
10985
10985
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
10986
10986
|
/* harmony import */ var _uemsg_UeCloudViewerBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../uemsg/UeCloudViewerBase */ "./src/ESUeViewer/uemsg/UeCloudViewerBase.ts");
|
|
10987
10987
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -11223,7 +11223,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11223
11223
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11224
11224
|
/* harmony export */ ViewerCreating: () => (/* binding */ ViewerCreating)
|
|
11225
11225
|
/* harmony export */ });
|
|
11226
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
11226
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
11227
11227
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
11228
11228
|
/* harmony import */ var _CustomPixelStream_UeCloudViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../CustomPixelStream/UeCloudViewer */ "./src/ESUeViewer/CustomPixelStream/UeCloudViewer.ts");
|
|
11229
11229
|
/* harmony import */ var _UeLocalViewer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UeLocalViewer */ "./src/ESUeViewer/inner/UeLocalViewer.ts");
|
|
@@ -11437,7 +11437,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11437
11437
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11438
11438
|
/* harmony export */ ViewerInstance: () => (/* binding */ ViewerInstance)
|
|
11439
11439
|
/* harmony export */ });
|
|
11440
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
11440
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
11441
11441
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
11442
11442
|
/* harmony import */ var _ReactProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReactProps */ "./src/ESUeViewer/inner/ReactProps.ts");
|
|
11443
11443
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -11612,7 +11612,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11612
11612
|
/* harmony export */ });
|
|
11613
11613
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
11614
11614
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
11615
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
11615
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
11616
11616
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
11617
11617
|
/* harmony import */ var _ReactProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ReactProps */ "./src/ESUeViewer/inner/ReactProps.ts");
|
|
11618
11618
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -12976,7 +12976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12976
12976
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12977
12977
|
/* harmony export */ UeCloudViewerBase: () => (/* binding */ UeCloudViewerBase)
|
|
12978
12978
|
/* harmony export */ });
|
|
12979
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "
|
|
12979
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
12980
12980
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_0__);
|
|
12981
12981
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
12982
12982
|
var extendStatics = function (d, b) {
|
|
@@ -13088,7 +13088,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13088
13088
|
/* harmony export */ UeESGeoVector: () => (/* binding */ UeESGeoVector)
|
|
13089
13089
|
/* harmony export */ });
|
|
13090
13090
|
/* harmony import */ var _UeESVisualObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../UeESVisualObject */ "./src/UeObjects/base/UeESVisualObject/index.ts");
|
|
13091
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
13091
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
13092
13092
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
13093
13093
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
13094
13094
|
var extendStatics = function (d, b) {
|
|
@@ -13357,7 +13357,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13357
13357
|
/* harmony export */ UeESObjectWithLocation: () => (/* binding */ UeESObjectWithLocation)
|
|
13358
13358
|
/* harmony export */ });
|
|
13359
13359
|
/* harmony import */ var _UeESVisualObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../UeESVisualObject */ "./src/UeObjects/base/UeESVisualObject/index.ts");
|
|
13360
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
13360
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
13361
13361
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
13362
13362
|
/* harmony import */ var _ESUeViewer_uemsg_CallUeFuncs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ESUeViewer/uemsg/CallUeFuncs */ "./src/ESUeViewer/uemsg/CallUeFuncs.ts");
|
|
13363
13363
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -13590,7 +13590,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13590
13590
|
/* harmony export */ });
|
|
13591
13591
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
13592
13592
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
13593
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
13593
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
13594
13594
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
13595
13595
|
/* harmony import */ var _ESUeViewer_uemsg_CallUeFuncs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ESUeViewer/uemsg/CallUeFuncs */ "./src/ESUeViewer/uemsg/CallUeFuncs.ts");
|
|
13596
13596
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -13894,7 +13894,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13894
13894
|
/* harmony export */ });
|
|
13895
13895
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
13896
13896
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
13897
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
13897
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
13898
13898
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
13899
13899
|
/* harmony import */ var _ESUeViewer_uemsg_CallUeFuncs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ESUeViewer/uemsg/CallUeFuncs */ "./src/ESUeViewer/uemsg/CallUeFuncs.ts");
|
|
13900
13900
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -14608,7 +14608,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14608
14608
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
14609
14609
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
14610
14610
|
/* harmony import */ var _UeESGeoPolygon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../UeESGeoPolygon */ "./src/UeObjects/general/UeESGeoPolygon/index.ts");
|
|
14611
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
14611
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
14612
14612
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
14613
14613
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
14614
14614
|
var extendStatics = function (d, b) {
|
|
@@ -14980,7 +14980,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14980
14980
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
14981
14981
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
14982
14982
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base */ "./src/UeObjects/base/index.ts");
|
|
14983
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
14983
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
14984
14984
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
14985
14985
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
14986
14986
|
var extendStatics = function (d, b) {
|
|
@@ -15121,7 +15121,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15121
15121
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
15122
15122
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
15123
15123
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base */ "./src/UeObjects/base/index.ts");
|
|
15124
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
15124
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
15125
15125
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
15126
15126
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
15127
15127
|
var extendStatics = function (d, b) {
|
|
@@ -15298,7 +15298,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15298
15298
|
/* harmony export */ });
|
|
15299
15299
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
15300
15300
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
15301
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
15301
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
15302
15302
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
15303
15303
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../base */ "./src/UeObjects/base/index.ts");
|
|
15304
15304
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -15602,7 +15602,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15602
15602
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
15603
15603
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
15604
15604
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base */ "./src/UeObjects/base/index.ts");
|
|
15605
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
15605
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
15606
15606
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
15607
15607
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
15608
15608
|
var extendStatics = function (d, b) {
|
|
@@ -15679,7 +15679,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15679
15679
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
15680
15680
|
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! html2canvas */ "../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.js");
|
|
15681
15681
|
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_1__);
|
|
15682
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
15682
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
15683
15683
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
15684
15684
|
/* harmony import */ var _ESUeViewer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../ESUeViewer */ "./src/ESUeViewer/index.ts");
|
|
15685
15685
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -16541,7 +16541,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16541
16541
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
16542
16542
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
16543
16543
|
/* harmony import */ var _ESUeViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ESUeViewer */ "./src/ESUeViewer/index.ts");
|
|
16544
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
16544
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
16545
16545
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
16546
16546
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
16547
16547
|
var extendStatics = function (d, b) {
|
|
@@ -17317,7 +17317,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17317
17317
|
/* harmony export */ });
|
|
17318
17318
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
17319
17319
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
17320
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "
|
|
17320
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
17321
17321
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
17322
17322
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
17323
17323
|
var extendStatics = function (d, b) {
|
|
@@ -18238,7 +18238,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18238
18238
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
18239
18239
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
18240
18240
|
/* harmony import */ var _UeObjects_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../UeObjects/base */ "./src/UeObjects/base/index.ts");
|
|
18241
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
18241
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
18242
18242
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
18243
18243
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
18244
18244
|
var extendStatics = function (d, b) {
|
|
@@ -18845,7 +18845,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18845
18845
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
18846
18846
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
18847
18847
|
/* harmony import */ var _ESUeViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ESUeViewer */ "./src/ESUeViewer/index.ts");
|
|
18848
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
18848
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
18849
18849
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
18850
18850
|
/* harmony import */ var _tipInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipInfo */ "./src/UeObjects/general/UeESUnrealActor/tipInfo.ts");
|
|
18851
18851
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
@@ -19462,7 +19462,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19462
19462
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! earthsdk3 */ "earthsdk3");
|
|
19463
19463
|
/* harmony import */ var earthsdk3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(earthsdk3__WEBPACK_IMPORTED_MODULE_0__);
|
|
19464
19464
|
/* harmony import */ var _ESUeViewer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ESUeViewer */ "./src/ESUeViewer/index.ts");
|
|
19465
|
-
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "
|
|
19465
|
+
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! xbsj-base */ "xbsj-base");
|
|
19466
19466
|
/* harmony import */ var xbsj_base__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(xbsj_base__WEBPACK_IMPORTED_MODULE_2__);
|
|
19467
19467
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
19468
19468
|
var extendStatics = function (d, b) {
|
|
@@ -20186,25 +20186,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20186
20186
|
|
|
20187
20187
|
/***/ }),
|
|
20188
20188
|
|
|
20189
|
-
/***/ "
|
|
20190
|
-
|
|
20191
|
-
!***
|
|
20192
|
-
|
|
20189
|
+
/***/ "earthsdk3":
|
|
20190
|
+
/*!****************************!*\
|
|
20191
|
+
!*** external "earthsdk3" ***!
|
|
20192
|
+
\****************************/
|
|
20193
20193
|
/***/ ((module) => {
|
|
20194
20194
|
|
|
20195
|
-
|
|
20196
|
-
!function(e,t){ true?module.exports=t():0}(self,(()=>(()=>{var e={5208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loop=t.conditional=t.parse=void 0,t.parse=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(r))r.forEach((function(r){return e(t,r,n,o)}));else if("function"==typeof r)r(t,n,o,e);else{var i=Object.keys(r)[0];Array.isArray(r[i])?(o[i]={},e(t,r[i],n,o[i])):o[i]=r[i](t,n,o,e)}return n},t.conditional=function(e,t){return function(r,n,o,i){t(r,n,o)&&i(r,e,n,o)}},t.loop=function(e,t){return function(r,n,o,i){for(var a=[],s=r.pos;t(r,n,o);){var c={};if(i(r,e,n,c),r.pos===s)break;s=r.pos,a.push(c)}return a}}},2515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readBits=t.readArray=t.readUnsigned=t.readString=t.peekBytes=t.readBytes=t.peekByte=t.readByte=t.buildStream=void 0,t.buildStream=function(e){return{data:e,pos:0}};t.readByte=function(){return function(e){return e.data[e.pos++]}},t.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t){return t.data[t.pos+e]}};var r=function(e){return function(t){return t.data.subarray(t.pos,t.pos+=e)}};t.readBytes=r,t.peekBytes=function(e){return function(t){return t.data.subarray(t.pos,t.pos+e)}},t.readString=function(e){return function(t){return Array.from(r(e)(t)).map((function(e){return String.fromCharCode(e)})).join("")}},t.readUnsigned=function(e){return function(t){var n=r(2)(t);return e?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}},t.readArray=function(e,t){return function(n,o,i){for(var a="function"==typeof t?t(n,o,i):t,s=r(e),c=new Array(a),u=0;u<a;u++)c[u]=s(n);return c}},t.readBits=function(e){return function(t){for(var r=function(e){return e.data[e.pos++]}(t),n=new Array(8),o=0;o<8;o++)n[7-o]=!!(r&1<<o);return Object.keys(e).reduce((function(t,r){var o=e[r];return o.length?t[r]=function(e,t,r){for(var n=0,o=0;o<r;o++)n+=e[t+o]&&Math.pow(2,r-o-1);return n}(n,o.index,o.length):t[r]=n[o.index],t}),{})}}},8841:(e,t,r)=>{"use strict";t.A=void 0;var n=r(5208),o=r(2515),i={blocks:function(e){for(var t=[],r=e.data.length,n=0,i=(0,o.readByte)()(e);0!==i&&i;i=(0,o.readByte)()(e)){if(e.pos+i>=r){var a=r-e.pos;t.push((0,o.readBytes)(a)(e)),n+=a;break}t.push((0,o.readBytes)(i)(e)),n+=i}for(var s=new Uint8Array(n),c=0,u=0;u<t.length;u++)s.set(t[u],c),c+=t[u].length;return s}},a=(0,n.conditional)({gce:[{codes:(0,o.readBytes)(2)},{byteSize:(0,o.readByte)()},{extras:(0,o.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,o.readUnsigned)(!0)},{transparentColorIndex:(0,o.readByte)()},{terminator:(0,o.readByte)()}]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&249===t[1]})),s=(0,n.conditional)({image:[{code:(0,o.readByte)()},{descriptor:[{left:(0,o.readUnsigned)(!0)},{top:(0,o.readUnsigned)(!0)},{width:(0,o.readUnsigned)(!0)},{height:(0,o.readUnsigned)(!0)},{lct:(0,o.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,n.conditional)({lct:(0,o.readArray)(3,(function(e,t,r){return Math.pow(2,r.descriptor.lct.size+1)}))},(function(e,t,r){return r.descriptor.lct.exists})),{data:[{minCodeSize:(0,o.readByte)()},i]}]},(function(e){return 44===(0,o.peekByte)()(e)})),c=(0,n.conditional)({text:[{codes:(0,o.readBytes)(2)},{blockSize:(0,o.readByte)()},{preData:function(e,t,r){return(0,o.readBytes)(r.text.blockSize)(e)}},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&1===t[1]})),u=(0,n.conditional)({application:[{codes:(0,o.readBytes)(2)},{blockSize:(0,o.readByte)()},{id:function(e,t,r){return(0,o.readString)(r.blockSize)(e)}},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&255===t[1]})),l=(0,n.conditional)({comment:[{codes:(0,o.readBytes)(2)},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&254===t[1]})),f=[{header:[{signature:(0,o.readString)(3)},{version:(0,o.readString)(3)}]},{lsd:[{width:(0,o.readUnsigned)(!0)},{height:(0,o.readUnsigned)(!0)},{gct:(0,o.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,o.readByte)()},{pixelAspectRatio:(0,o.readByte)()}]},(0,n.conditional)({gct:(0,o.readArray)(3,(function(e,t){return Math.pow(2,t.lsd.gct.size+1)}))},(function(e,t){return t.lsd.gct.exists})),{frames:(0,n.loop)([a,u,l,s,c],(function(e){var t=(0,o.peekByte)()(e);return 33===t||44===t}))}];t.A=f},9283:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.copyright=void 0;var n=null!==(r="".concat("xbsj-base"))&&void 0!==r?r:"-",o="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",i=((Date.now()-1728545576e3)/36e5).toFixed(1),a="%c🌏 ".concat(n,"%c ").concat("0.0.1-beta.0.10"," ").concat("1c1f77e74957847871f448c7dada4dcadecba3fb".slice(0,8)," ").concat("2024-10-10T07:32:56.000Z"," (距今").concat(i,"个小时)\n%c").concat(o?o+"\n":"","当前网站正在使用").concat(n,",此开发包版权归").concat("北京西部世界科技有限公司","所有。");t.copyright=Object.seal({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get info(){return a},get date(){return"2024-10-10T07:32:56.000Z"},get author(){return"vtxf,suplyang"},get version(){return"0.0.1-beta.0.10"},get name(){return"xbsj-base"},get commitId(){return"1c1f77e74957847871f448c7dada4dcadecba3fb"},print:function(){console.info(this.info,"\n font-size: 18px;\n font-weight: 1000;\n line-height: 1;\n color: rgb(0, 120, 215);\n padding-top: 20px;\n padding-bottom: 10px;\n ","\n font-size: 10px;\n font-weight: 1000;\n color: rgb(0, 120, 215);\n ","\n font-size: 10px;\n line-height: 1.5;\n color: rgb(0, 120, 215);\n padding-bottom: 2px;\n padding-left: 35px;\n ")}})},9198:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9283),t),o(r(8529),t),o(r(4866),t),o(r(7581),t)},6077:(e,t)=>{"use strict";function r(){return!0}function n(){throw new Error("throwOnDestroyed")}Object.defineProperty(t,"__esModule",{value:!0}),t.destroyObject=void 0,t.destroyObject=function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=n);e.isDestroyed=r}},1500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Destroyable=t.destroyObject=void 0;var n=r(6077);Object.defineProperty(t,"destroyObject",{enumerable:!0,get:function(){return n.destroyObject}});var o=function(){function e(){this._memId=++e._lastMemId}return Object.defineProperty(e.prototype,"__v_skip",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"memId",{get:function(){return this._memId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disposers",{get:function(){return this._disposers||(this._disposers=[]),this._disposers},enumerable:!1,configurable:!0}),e.prototype.dispose=function(e){return this.disposers.push(e),e},e.prototype.d=function(e){return this.dispose(e)},e.prototype.disposeVar=function(e){return this.disposers.push((function(){return e.destroy()})),e},e.prototype.dv=function(e){return this.disposeVar(e)},e.prototype.tryDisposeVar=function(e){return this.disposers.push((function(){return e.tryDestroy()})),e},e.prototype.tdv=function(e){return this.tryDisposeVar(e)},e.prototype.autoDispose=function(e){return"function"==typeof e?this.dispose(e):this.disposeVar(e)},e.prototype.ad=function(e){return"function"==typeof e?this.dispose(e):this.disposeVar(e)},e.prototype.isDestroyed=function(){return!1},e.prototype.destroyImp=function(){},e.prototype.destroy=function(){if(this._toDestroyEvent&&this._toDestroyEvent.emit(),this.destroyImp(),this._disposers)try{for(var e=this._disposers,t=e.length-1;t>=0;--t)e[t]();e.length=0,this._disposers=void 0}catch(e){console.error("destroy get error! ".concat(e))}return(0,n.destroyObject)(this)},e.prototype.tryDestory=function(){if(!this.isDestroyed())return this.destroy()},e._lastMemId=-1,e}();t.Destroyable=o;var i=r(2370);Object.defineProperties(o.prototype,{toDestroyEvent:{get:function(){return void 0===this._toDestroyEvent&&(this._toDestroyEvent=this.disposeVar(new i.Event)),this._toDestroyEvent}}})},6427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExtProp=t.setExtProp=void 0;var r=new WeakMap;t.setExtProp=function(e,t,n){r.has(e)||r.set(e,{}),r.get(e)[t]=n},t.getExtProp=function(e,t){if(r.has(e))return r.get(e)[t]}},3690:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.HasOwner=void 0;var i=function(e){function t(t){var r=e.call(this)||this;return r._owner=t,r}return o(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),t}(r(1500).Destroyable);t.HasOwner=i},1182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjPool=void 0;var r=function(){function e(e,t,r){void 0===r&&(r=!1),this._createDefaultFunc=e,this._destroyFunc=t,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],r&&(this._usedElements=[])}return Object.defineProperty(e.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),e.prototype._getCreateID=function(){return this._nextCreateID++},e.prototype._create=function(){var e;return(e=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),e},e.prototype.create=function(){return this._create()},e.prototype.multiCreate=function(e){this._scratchObjs.length=0;for(var t=0;t<e;++t)this._scratchObjs.push(this._create());return this._scratchObjs},e.prototype._destroy=function(e){this._destroyFunc&&this._destroyFunc(e),e._cid=void 0},e.prototype.destroy=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.length,n=0;n<r;++n)this._destroy(e[n])},e}();t.ObjPool=r},5783:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableArray=void 0;var s=r(1500),c=r(2370),u=function(e){function t(){var t=e.call(this)||this;return t._innerObj=[],t.dispose((function(){if(t.length=0,t._innerObj.length>0)throw new Error("this._innerObj.length > 0");t._toChangeEvent&&t._toChangeEvent.reset(),t._innerObj=void 0})),t}return o(t,e),Object.defineProperty(t.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new c.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new c.Event),this._changedEvent},enumerable:!1,configurable:!0}),t.prototype._resetArray=function(e){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:e}],this);var t=e.length;this._innerObj.length=t;for(var r=0;r<t;++r)this._innerObj[r]=e[r];this._changedEvent&&this._changedEvent.emit(this)},t.prototype.splice=function(e,t){for(var r,n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=this._innerObj.length;(e=e>this._innerObj.length?this._innerObj.length:e)>s?e=s:e<0&&(e+=s)<0&&(e=0);var c=this._innerObj.length-e;if(t>c?t=c:t<0&&(t=0),1===arguments.length){this._toChangeEvent&&this._toChangeEvent.emit([{start:e,deleteCount:this._innerObj.length-e,items:[]}],this);var u=this._innerObj.splice(e);return this._changedEvent&&this._changedEvent.emit(this),u}return 2===arguments.length?(this._toChangeEvent&&this._toChangeEvent.emit([{start:e,deleteCount:t,items:[]}],this),u=this._innerObj.splice(e,t),this._changedEvent&&this._changedEvent.emit(this),u):(this._toChangeEvent&&this._toChangeEvent.emit([{start:e,deleteCount:t,items:n}],this),u=(r=this._innerObj).splice.apply(r,a([e,t],i(n),!1)),this._changedEvent&&this._changedEvent.emit(this),u)},t.prototype.pop=function(){if(0!==this._innerObj.length){if(this._toChangeEvent){var e=this._innerObj.length-1;this._toChangeEvent.emit([{start:e,deleteCount:1,items:[]}],this)}var t=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),t}},t.prototype.push=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this._toChangeEvent){var n=this._innerObj.length;this._toChangeEvent.emit([{start:n,deleteCount:0,items:t}],this)}var o=(e=this._innerObj).push.apply(e,a([],i(t),!1));return this._changedEvent&&this._changedEvent.emit(this),o},Object.defineProperty(t.prototype,"length",{get:function(){return this._innerObj.length},set:function(e){if(e<0)throw new Error("value < 0");var t=this._innerObj.length;if(t!==e){if(this._toChangeEvent){var r=void 0,n=void 0,o=void 0;t>e?(r=e,n=t-e,o=[]):(r=t,n=0,o=new Array(e-t)),this._toChangeEvent.emit([{start:r,deleteCount:n,items:o}],this)}this._innerObj.length=e,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),t.prototype.get=function(e){return this._innerObj[e]},t.prototype.set=function(e,t){var r=this._innerObj.length;if(e<0||e>=r)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:e,deleteCount:1,items:[t]}],this),this._innerObj[e]=t,this._changedEvent&&this._changedEvent.emit(this)},t.prototype.indexOf=function(e){return this._innerObj.indexOf(e)},t.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},t}(s.Destroyable);t.ObservableArray=u},9354:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.reactPosition2DsSet=t.reactPositionsSet=t.reactPositions=t.reactJsonCollectionWithUndefined=t.reactJsonCollection=t.reactArrayCollectionWithUndefined=t.reactArrayCollection=t.reactPlainObjectWithUndefined=t.reactPlainObject=t.reactJsonWithUndefined=t.reactJson=t.reactDeepArrayWithUndefined=t.reactDeepArray=t.reactArrayWithUndefined=t.reactArray=t.react=t.ReactiveVariable=void 0;var c=r(1500),u=r(2370),l=function(e){function t(t,r,n){var o=e.call(this)||this;return o._equalsFunc=r,o._assignFunc=n,o._value=o._assignFunc&&o._assignFunc(t,void 0)||t,o}return o(t,e),Object.defineProperty(t.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return this._equalsFunc?this._equalsFunc(this._value,e):this._value===e},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){if(this._equalsFunc?!this._equalsFunc(this._value,e):this._value!==e){if(this.toChangeFunc&&!this.toChangeFunc(e,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(e,this._value)):(this._oldValue=this._value,this._value=e),this._changed&&this._changed.emit(e,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new u.Event)),this._changed},enumerable:!1,configurable:!0}),t.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},t}(c.Destroyable);function f(e,t,r){return new l(e,t,r)}function p(e,t,r){return f(e,(function(e,r){return e.length===r.length&&e.every((function(e,n){return t&&t(e,r[n])||e===r[n]}))}),(function(e,t){var n=t||new Array(e.length);return n.length=e.length,e.forEach((function(e,t){n[t]=r?r(e):e})),n}))}function d(e,t,r){return f(e,(function(e,r){return void 0===e||void 0===r?void 0===e&&void 0===r:e.length===r.length&&e.every((function(e,n){return t&&t(e,r[n])||e===r[n]}))}),(function(e,t){if(e){var n=t||new Array(e.length);return n.length=e.length,e.forEach((function(e,t){n[t]=r?r(e):e})),n}}))}function h(e){return d(e,(function(e,t){return e.every((function(e,r){return e===t[r]}))}),(function(e){return s([],a(e),!1)}))}t.ReactiveVariable=l,t.react=f,t.reactArray=function(e){return new l(e,(function(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))}),(function(e,t){var r=t||new Array(e.length);return r.length=e.length,e.forEach((function(e,t){return r[t]=e})),r}))},t.reactArrayWithUndefined=function(e){return f(e,(function(e,t){return void 0===e||void 0===t?void 0===e&&void 0===t:e.length===t.length&&e.every((function(e,r){return e===t[r]}))}),(function(e,t){if(e){var r=t||new Array(e.length);return r.length=e.length,e.forEach((function(e,t){return r[t]=e})),r}}))},t.reactDeepArray=p,t.reactDeepArrayWithUndefined=d,t.reactJson=function(e){return new l(e,(function(e,t){return e===t||void 0!==e&&void 0!==t&&JSON.stringify(e)===JSON.stringify(t)}),(function(e,t){if(void 0!==e)return JSON.parse(JSON.stringify(e))}))},t.reactJsonWithUndefined=function(e){return new l(e,(function(e,t){return e===t||void 0!==e&&void 0!==t&&JSON.stringify(e)===JSON.stringify(t)}),(function(e,t){if(void 0!==e)return JSON.parse(JSON.stringify(e))}))},t.reactPlainObject=function(e){return new l(e,(function(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((function(r,o){return r===n[o]&&e[r]===t[r]}))}),(function(e,t){return e&&i({},e)}))},t.reactPlainObjectWithUndefined=function(e){return new l(e,(function(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((function(r,o){return r===n[o]&&e[r]===t[r]}))}),(function(e,t){return e&&i({},e)}))},t.reactArrayCollection=function(e){return p(e,(function(e,t){return e.every((function(e,r){return e===t[r]}))}),(function(e){return s([],a(e),!1)}))},t.reactArrayCollectionWithUndefined=h,t.reactJsonCollection=function(e){return p(e,(function(e,t){return JSON.stringify(e)===JSON.stringify(t)}),(function(e){return JSON.parse(JSON.stringify(e))}))},t.reactJsonCollectionWithUndefined=function(e){return d(e,(function(e,t){return JSON.stringify(e)===JSON.stringify(t)}),(function(e){return JSON.parse(JSON.stringify(e))}))},t.reactPositions=function(e){return h(e)},t.reactPositionsSet=function(e){return d(e,(function(e,t){return e.length===t.length&&e.every((function(e,r){return e.every((function(e,n){return e===t[r][n]}))}))}),(function(e){return e.map((function(e){return s([],a(e),!1)}))}))},t.reactPosition2DsSet=function(e){return d(e,(function(e,t){return e.length===t.length&&e.every((function(e,r){return e.every((function(e,n){return e===t[r][n]}))}))}),(function(e){return e.map((function(e){return s([],a(e),!1)}))}))}},1185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.destroyScalableArray=t.createScalableArray=void 0;var n=r(2486),o=function(){function e(){this._array=[]}return Object.defineProperty(e.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),e}(),i=new n.ObjPool((function(){return new o})),a=new WeakMap;t.createScalableArray=function(){var e=i.create();return a.set(e.array,e),e.array},t.destroyScalableArray=function(e){var t=a.get(e);if(!t)throw console.warn("!obj"),new Error("!obj");i.destroy(t)}},5848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scalableBufferPool=t.ScalableBuffer=void 0;var n=r(2628),o=r(2486);r(3428);var i=function(){function e(){this._arrayBuffer=new ArrayBuffer(1024)}return Object.defineProperty(e.prototype,"byteLength",{get:function(){return this._arrayBuffer.byteLength},enumerable:!1,configurable:!0}),e.prototype.resize=function(e){if(this._arrayBuffer.byteLength<e){var t=(0,n.nextPow2)(e);this._arrayBuffer=ArrayBuffer.transfer(this._arrayBuffer,t)}},Object.defineProperty(e.prototype,"arrayBuffer",{get:function(){return this._arrayBuffer},enumerable:!1,configurable:!0}),e}();t.ScalableBuffer=i,t.scalableBufferPool=new o.ObjPool((function(){return new i}))},1210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStartUpdateFunc=t.requestAnimationFrameTimeStampTest=void 0,t.requestAnimationFrameTimeStampTest=function(){return new Promise((function(e,t){var r=performance.now();requestAnimationFrame((function(t){return e(t>r)}))}))},t.defaultStartUpdateFunc=function(e){var t,r;return r=function(n){n=performance.now(),t=requestAnimationFrame(r),e(n)},t=requestAnimationFrame(r),function(){cancelAnimationFrame(t)}}},5515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassStyle=void 0,t.addClassStyle=function(e){var t=document.createElement("style");return t.innerText=e,document.head.appendChild(t)}},554:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.bindu=t.bind=t.track=t.getCompleteReactParams=void 0;var i=r(8931),a=r(9354);function s(e){var t=e instanceof a.ReactiveVariable?[e,"value","changed"]:o([],n(e),!1);return t[2]=t[2]||t[1]+"Changed",t}function c(e,t,r,n){void 0===n&&(n=!1),t[2]=t[2]||t[1]+"Changed";var o=function(){var n=t[0][t[1]];e[0][e[1]]=r?r(n):n};return o(),n?t[0][t[2]].disposableWeakOn(o):t[0][t[2]].disposableOn(o)}function u(e,t,r,n,o){return void 0===o&&(o=!1),function(e,t,r,n,o){void 0===o&&(o=!1);var i=c(e,t,r,o),a=c(t,e,n,o);return function(){return i(),a()}}(s(e),s(t),r,n,o)}t.getCompleteReactParams=s,t.track=function(e,t,r,n){return void 0===n&&(n=!1),c(e instanceof a.ReactiveVariable?[e,"value","changed"]:e,t instanceof a.ReactiveVariable?[t,"value","changed"]:t,r,n)},t.bind=u,t.bindu=function(e,t,r,o){void 0===o&&(o=!1);var a=n((0,i.getReactFuncs)(t),1)[0];return u(e,t,(function(e){return null!=e?e:r}),(function(e){return e===r&&void 0===a()?void 0:e}),o)}},6196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGuid=void 0,t.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},9503:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.createProps=void 0;var i=r(1500),a=r(9354);t.createProps=function(e){var t,r,s=new i.Destroyable,c=function(e,t){var r,n=s.disposeVar(t instanceof a.ReactiveVariable?t:(0,a.react)(t));Object.defineProperties(s,((r={})[e]={get:function(){return n.value},set:function(e){n.value=e}},r["".concat(e,"Changed")]={get:function(){return n.changed}},r))};try{for(var u=n(Object.entries(e)),l=u.next();!l.done;l=u.next()){var f=o(l.value,2);c(f[0],f[1])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return s}},5086:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){if(!window||!window.setTimeout||!window.clearTimeout)throw new Error("目前只适合在浏览器中使用!");var o=0;function i(){o>0&&(window.clearTimeout(o),o=0)}return[function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];i(),o=window.setTimeout.apply(window,n([e,t],r(a),!1))},i]}},9262:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.encodeString=void 0,t.encodeString=function(e,t){var o,i=r=r||new TextEncoder,a=0;if(i.encodeInto){var s=void 0;if(t)s=t;else o=3*e.length,(!n||n.byteLength<o)&&(n=new Uint8Array(2*o)),s=new Uint8Array(n.buffer,0,o);var c=i.encodeInto(e,s);if(void 0===c.written)throw new Error("encodedResults.written === 'undefined'");a=c.written}else{var u=i.encode(e);t&&t.set(u),a=u.byteLength}return a}},7220:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createNextAnimateFrameWeakEvent=t.NextAnimateFrameWeakEvent=t.createNextAnimateFrameEvent=t.NextAnimateFrameEvent=t.createNextMicroTaskWeakEvent=t.NextMicroTaskWeakEvent=t.createNextMicroTaskEvent=t.NextMicroTaskEvent=void 0;var s=r(2370),c=r(9709),u=function(e){function t(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=e.call(this)||this;return i._nextFunc=t,i.dispose((function(){i._cancellFunc&&(i._cancellFunc(),i._cancellFunc=void 0)})),n.forEach((function(e){return i.dispose(e[r?"dwon":"don"]((function(){i.next()})))})),i}return o(t,e),t.prototype.next=function(){var e=this;this._cancellFunc||(this._cancellFunc=this._nextFunc((function(){return e._cancellFunc=void 0,e.emit()})))},t.prototype.flush=function(){this._cancellFunc&&(this._cancellFunc(),this._cancellFunc=void 0,this.emit())},t}(s.Event),l=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,a([c.nextMicroTask,!1],i(t),!1))||this}return o(t,e),t}(u);t.NextMicroTaskEvent=l,t.createNextMicroTaskEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,a([void 0],i(e),!1)))};var f=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,a([c.nextMicroTask,!0],i(t),!1))||this}return o(t,e),t}(u);t.NextMicroTaskWeakEvent=f,t.createNextMicroTaskWeakEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,a([void 0],i(e),!1)))};var p=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,a([c.nextAnimateFrame,!1],i(t),!1))||this}return o(t,e),t}(u);t.NextAnimateFrameEvent=p,t.createNextAnimateFrameEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(p.bind.apply(p,a([void 0],i(e),!1)))};var d=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,a([c.nextAnimateFrame,!0],i(t),!1))||this}return o(t,e),t}(u);t.NextAnimateFrameWeakEvent=d,t.createNextAnimateFrameWeakEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(d.bind.apply(d,a([void 0],i(e),!1)))}},2974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(4564);t.every=function(e,t){return!(0,n.forEachWithBreak)(e,(function(e,r){return!t(e,r)}))}},2403:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.extendClassProps=void 0;var i=r(9354);function a(e,t,r,o){var a=e;if(!a[t]){var s=o(),c=Object.fromEntries(Object.entries(s).filter((function(t){var o=n(t,2),a=o[0],s=o[1],c=a in Object.getPrototypeOf(r);if(c){var u=s instanceof i.ReactiveVariable?s.value:s;e[a]=u}return!c})).map((function(e){var t=n(e,2),r=t[0],o=t[1];return o instanceof i.ReactiveVariable?[r,o]:[r,Array.isArray(o)?(0,i.reactArrayWithUndefined)(o):(0,i.react)(o)]})));a[t]=c}return a[t]}t.extendClassProps=function(e,t){var r,i,s,c=Symbol("".concat(null===(s=null==e?void 0:e.constructor)||void 0===s?void 0:s.name,"-createDefaultProps"));e.constructor.__xbsj_dpSymbol=c,e.constructor.__xbsj_createDefaultProps=t;var u=function(r,n){var i;if(!Reflect.has(e,r)){var s=function(e){var t,r;if(!e[c]){for(var n=[],i=Object.getPrototypeOf(e);i;)n.push(i),i=Object.getPrototypeOf(i);n.reverse();try{for(var s=o(n),u=s.next();!u.done;u=s.next()){var l=u.value,f=l.constructor.__xbsj_dpSymbol;if(f){var p=l.constructor.__xbsj_createDefaultProps;p&&a(e,f,l,p)}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}};Object.defineProperties(e,((i={})[r]={get:function(){return s(this),a(this,c,e,t)[r].value},set:function(n){s(this);var o=a(this,c,e,t)[r];o||console.error("!propObj"),o.value=n}},i["".concat(r,"Changed")]={get:function(){return s(this),a(this,c,e,t)[r].changed}},i["".concat(r,"React")]={get:function(){return s(this),a(this,c,e,t)[r]}},i))}};try{for(var l=o(Object.entries(t())),f=l.next();!f.done;f=l.next()){var p=n(f.value,2),d=p[0];p[1],u(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}},4734:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchArrayBuffer=void 0,t.fetchArrayBuffer=function(e,t){return void 0===t&&(t=fetch),r(this,void 0,void 0,(function(){var r;return n(this,(function(n){switch(n.label){case 0:return[4,t(e)];case 1:return(r=n.sent()).ok?[4,r.arrayBuffer()]:[2,void 0];case 2:return[2,n.sent()]}}))}))}},1696:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchImage=void 0,t.fetchImage=function(e,t){return void 0===t&&(t=""),r(this,void 0,void 0,(function(){return n(this,(function(r){return[2,new Promise((function(r,n){var o=new Image;o.crossOrigin=t,o.src=e,o.onload=function(){return r(o)},o.onerror=function(e){return n(e)}}))]}))}))}},4151:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchJson=void 0,t.fetchJson=function(e,t){return void 0===t&&(t=fetch),r(this,void 0,void 0,(function(){var r;return n(this,(function(n){switch(n.label){case 0:return[4,t(e)];case 1:return(r=n.sent()).ok?[4,r.json()]:[2,void 0];case 2:return[2,n.sent()]}}))}))}},4564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEachWithBreak=void 0;var n=r(2851);t.forEachWithBreak=function(e,t){for(var r=!1,o=(0,n.getIterator)(e),i=-1;;){var a=o.next(),s=a.done,c=a.value;if(s)break;if(t(c,++i)){r=!0;break}}return r}},6182:(e,t)=>{"use strict";function r(e,t){return(new Array(t).join("0")+e).slice(-t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTime=t.formatInterger=void 0,t.formatInterger=r,t.getDateTime=function(){var e=function(e){return r(e,2)},t=new Date,n=t.getFullYear(),o=t.getMonth()+1,i=t.getDate(),a=t.getHours(),s=t.getMinutes(),c=t.getSeconds();return"".concat(n,"-").concat(e(o),"-").concat(e(i)," ").concat(e(a),":").concat(e(s),":").concat(e(c))}},5966:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase64UriData=void 0;var r=/^data:(.*?)(;base64)?,(.*)$/;function n(e,t){var r=decodeURIComponent(t);return e?atob(r):r}function o(e,t){for(var r=n(e,t),o=new ArrayBuffer(r.length),i=new Uint8Array(o),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return o}function i(e,t){void 0===t&&(t="text");var r=e[1],i=!!e[2],a=e[3];switch(t){case"text":return[n(i,a),r];case"arraybuffer":return[o(i,a),r];case"blob":var s=o(i,a);return[new Blob([s],{type:r}),r];case"document":return[(new DOMParser).parseFromString(n(i,a),r),r];case"json":return[JSON.parse(n(i,a)),r];default:throw new Error("Unhandled responseType: "+t)}}t.getBase64UriData=function(e,t){void 0===t&&(t="text");var n=r.exec(e);if(null!==n){if("document"===t)return i(n,t);if("blob"===t)return i(n,t);if("arraybuffer"===t)return i(n,t);if("text"===t)return i(n,t);if("json"===t)return i(n,t);throw new Error("responseType error!")}}},100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseUri=void 0,t.getBaseUri=function(e){return e.substr(0,e.lastIndexOf("/"))}},3563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFinalUri=void 0;var n=r(5239);t.getFinalUri=function(e,t){var r=(0,n.isAbsoluteUri)(e),o=e;return(0,n.isBase64Uri)(e)||r||t&&(o=t+"/"+e),o}},2851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIterator=void 0,t.getIterator=function(e){var t;if("function"==typeof e.next)t=e;else{if("function"!=typeof e[Symbol.iterator])throw new Error("iteratorOrIterable error!");t=e[Symbol.iterator]()}return t}},4876:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getMinMaxPosition=void 0;var o=r(2735);t.getMinMaxPosition=function(e,t){var r,i,a,s,c,u,l,f;if(e.length%3!=0)throw new Error("positions.length % 3 !== 0");var p=e.length/3;function d(t){var r;return n(this,(function(n){switch(n.label){case 0:r=0,n.label=1;case 1:return r<p?[4,e[3*r+t]]:[3,4];case 2:n.sent(),n.label=3;case 3:return++r,[3,1];case 4:return[2]}}))}var h=null!==(r=null==t?void 0:t.min)&&void 0!==r?r:[NaN,NaN,NaN],v=null!==(i=null==t?void 0:t.max)&&void 0!==i?i:[NaN,NaN,NaN];return h[0]=null!==(a=(0,o.min)(d(0)))&&void 0!==a?a:NaN,h[1]=null!==(s=(0,o.min)(d(1)))&&void 0!==s?s:NaN,h[2]=null!==(c=(0,o.min)(d(2)))&&void 0!==c?c:NaN,v[0]=null!==(u=(0,o.max)(d(0)))&&void 0!==u?u:NaN,v[1]=null!==(l=(0,o.max)(d(1)))&&void 0!==l?l:NaN,v[2]=null!==(f=(0,o.max)(d(2)))&&void 0!==f?f:NaN,{min:h,max:v}}},1014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByteLength=void 0,t.getPaddingByteLength=function(e,t){return 1!==t&&2!==t&&4!==t&&8!==t&&console.warn("getPaddingByteLength boundaryByteLength(".concat(t,") is not 2^")),(t-e%t)%t}},8931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReactFuncs=void 0;var n=r(554),o=r(1626);t.getReactFuncs=function(e){var t=(0,n.getCompleteReactParams)(e);return[function(){return t[0][t[1]]},function(e){try{t[0][t[1]]=e}catch(e){(0,o.oneTimeWarning)("setValue error, obj(".concat(t[0].constructor.name,") prop(").concat(t[1],") error(").concat(e,")"))}},t[0][t[2]]]}},8625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValueFromRatio=t.defaultLerpFunc=void 0;var n=r(2851);t.defaultLerpFunc=function(e,t,r){return e*(1-r)+t*r},t.getValueFromRatio=function(e,t,r,o,i){for(var a,s,c,u,l=(0,n.getIterator)(t);;){var f=l.next(),p=f.done,d=f.value;if(p)break;if(void 0===d)throw new Error("typeof value === 'undefined'");var h=d.ratio,v=d.value;if(a=c,s=u&&o?o(u,null!=i?i:s):u,c=h,u=v,(void 0===a||e>=a)&&(void 0===c||e<=c)){if(void 0===a)return u&&o?o(u,i):u;if(void 0===c||void 0===u)throw new Error("typeof rightRatio === 'undefined'");return r(s,u,(e-a)/(c-a),i)}u=u&&o?o(u,i):u}if(void 0===c)throw new Error("typeof rightRatio === 'undefined'");if(e>c)return u;throw new Error("!(ratio > rightRatio)")}},8529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1500),t),o(r(6427),t),o(r(3690),t),o(r(1182),t),o(r(2486),t),o(r(709),t),o(r(5783),t),o(r(9354),t),o(r(1185),t),o(r(5848),t),o(r(1210),t),o(r(5515),t),o(r(554),t),o(r(6196),t),o(r(9503),t),o(r(5086),t),o(r(9262),t),o(r(7220),t),o(r(2974),t),o(r(2403),t),o(r(4734),t),o(r(1696),t),o(r(4151),t),o(r(4564),t),o(r(6182),t),o(r(5966),t),o(r(100),t),o(r(3563),t),o(r(2851),t),o(r(4876),t),o(r(1014),t),o(r(8931),t),o(r(8625),t),o(r(8529),t),o(r(598),t),o(r(3433),t),o(r(5018),t),o(r(1081),t),o(r(5046),t),o(r(1233),t),o(r(4822),t),o(r(7008),t),o(r(2735),t),o(r(2628),t),o(r(7135),t),o(r(4101),t),o(r(8972),t),o(r(1626),t),o(r(2370),t),o(r(4257),t),o(r(3640),t),o(r(8554),t),o(r(5785),t),o(r(9483),t),o(r(6887),t),o(r(2949),t),o(r(1561),t),o(r(9709),t),o(r(5239),t),o(r(3712),t),r(3428)},598:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.isCrossOriginUrl=void 0,t.isCrossOriginUrl=function(e){(r=null!=r?r:document.createElement("a")).href=window.location.href;var t=r.host,n=r.protocol;return r.href=e,r.href=r.href,n!==r.protocol||t!==r.host}},3433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=void 0;var n=r(2851);t.forEach=function(e,t){for(var r=(0,n.getIterator)(e),o=0;;){var i=r.next(),a=i.done,s=i.value;if(a)break;t(s,o++)}}},5018:(e,t)=>{"use strict";function r(e){return JSON.stringify(e,void 0," ")}Object.defineProperty(t,"__esModule",{value:!0}),t.printJson=t.toJsonStr=void 0,t.toJsonStr=r,t.printJson=function(e){console.log(r(e))}},1081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.length=void 0;var n=r(9483),o=function(e){return++e};t.length=function(e){return(0,n.reduce)(e,o,0)}},5046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadJs=void 0;var r=[];function n(e,t,n){if(r.includes(e))return console.warn("_loadJs ".concat(e," has loaded before!")),void(t&&t());var o=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",e),i.onload=i.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState||(r.push(e),t&&t(),i.onload=i.onreadystatechange=null)},i.onerror=function(e,t,r,o,i){n(i)},o.appendChild(i)}t.loadJs=function(e,t){if(void 0===t&&(t=!0),t){var r=window.L;window.L&&(window.L=void 0);var o=window.define;return window.define&&(window.define=void 0),new Promise((function(t,r){n(e,t,r)})).then((function(){return window.define=o,window.L=r,Promise.resolve()}))}return new Promise((function(t,r){n(e,t,r)}))}},4822:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.magicStrToUint32=void 0,t.magicStrToUint32=function(e){if(e.length>4)throw new Error("getMagic error! str.length > 4");return function(e){return n([],r(e),!1).reverse().reduce((function(e,t){return(e<<=8)+t.codePointAt(0)}),0)}(e)}},2735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=t.max=void 0;var n=r(9483);t.max=function(e){return(0,n.reduce)(e,(function(e,t){return e>t?e:t}),Number.NEGATIVE_INFINITY)},t.min=function(e){return(0,n.reduce)(e,(function(e,t){return e<t?e:t}),Number.POSITIVE_INFINITY)}},2628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextPow2=void 0,t.nextPow2=function(e){return e|=0,e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}},7135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeBufferToUint8Array=void 0,t.nodeBufferToUint8Array=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},4101:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.objsIterator=void 0;var o=r(8554),i=r(2851);t.objsIterator=function(e,t){var r,a,s,c;return n(this,(function(n){switch(n.label){case 0:r=(0,i.getIterator)(e),n.label=1;case 1:return a=r.next(),s=a.done,c=a.value,s?[3,3]:[4,(0,o.getValueFromProps)(c,t)];case 2:return n.sent(),[3,1];case 3:return[2]}}))}},8972:(e,t)=>{"use strict";function r(e){var t=0|+e;if(t.toString()===e)return t}Object.defineProperty(t,"__esModule",{value:!0}),t.observeArray=void 0,t.observeArray=function(e,t){if(!Array.isArray(e))throw new Error("!Array.isArray(array)");return new Proxy(e,{set:function(e,n,o,i){var a=e;if("string"!=typeof n)throw new Error("typeof key !== string");var s=r(n);if(void 0===s)return Reflect.set(a,n,o,i);if(s<0)throw new Error("n < 0 || n >= array.length");return!!t({type:void 0===a[s]?"insert":"update",index:s,oldValue:a[s],value:o})&&Reflect.set(e,n,o,i)},deleteProperty:function(e,n){var o=e;if("string"!=typeof n)throw new Error("typeof key !== string");var i=r(n);if(void 0===i)return Reflect.deleteProperty(e,n);if(i<0||i>=o.length)throw new Error("n < 0 || n >= array.length");return!!t({type:"delete",index:i,oldValue:o[i],value:void 0})&&Reflect.deleteProperty(e,n)}})}},1626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oneTimeWarning=void 0;var r=new Set;t.oneTimeWarning=function(e,t){void 0===t&&(t=e),r.has(t)||(r.add(t),console.warn(e))}},1008:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DoublyLinkedList=void 0;var o=new(r(2486).ObjPool)((function(){return{item:void 0,previous:void 0,next:void 0}}),(function(e){e.item=void 0,e.previous=void 0,e.next=void 0}),!0);function i(e,t,r){var n=o.create();return n.item=e,n.previous=t,n.next=r,n}function a(e){if(!e)throw new Error("node is undefined!");o.destroy(e)}function s(e,t){t.previous&&t.next?(t.previous.next=t.next,t.next.previous=t.previous):t.previous?(t.previous.next=void 0,e.tail=t.previous):t.next?(t.next.previous=void 0,e.head=t.next):(e.head=void 0,e.tail=void 0),t.next=void 0,t.previous=void 0}var c=function(){function e(e){var t=(e||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,t&&(this._length=0)}return e.prototype._incrementLength=function(){"number"==typeof this._length&&++this._length},e.prototype._decrementLength=function(){"number"==typeof this._length&&--this._length},e.prototype._setLength=function(e){"number"==typeof this._length&&(this._length=e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),e.prototype[Symbol.iterator]=function(){var e;return n(this,(function(t){switch(t.label){case 0:e=this.head,t.label=1;case 1:return e?[4,e]:[3,3];case 2:return t.sent(),e=e.next,[3,1];case 3:return[2]}}))},e.prototype.remove=function(e){if(!e)throw new Error("node is undefined!");s(this,e),this._decrementLength(),a(e)},e.prototype.getNode=function(e){for(var t=this.head;null!==t;){if(!t)throw new Error("current is undefined!");if(t.item===e)return t;t=t.next}},e.prototype.moveAfter=function(e,t){if(e!==t){s(this,t);var r=e.next;e.next=t,this.tail===e?this.tail=t:r&&(r.previous=t),t.next=r,t.previous=e}},e.prototype.moveBefore=function(e,t){if(e!==t){s(this,t);var r=e.previous;e.previous=t,this.head===e?this.head=t:r&&(r.next=t),t.previous=r,t.next=e}},e.prototype.insertBefore=function(e,t){var r=i(t,e.previous,e);return e.previous&&(e.previous.next=r),e.previous=r,this.head===e&&(this.head=r),this._incrementLength(),r},e.prototype.insertAfter=function(e,t){var r=i(t,e,e.next);return e.next&&(e.next.previous=r),e.next=r,this.tail===e&&(this.tail=r),this._incrementLength(),r},e.prototype._setFirstNode=function(e){if(this.head||this.tail)throw new Error("_setFirstNode error!");var t=i(e,void 0,void 0);if(this.head=t,this.tail=t,this._incrementLength(),1!==this._length)throw new Error("_setFirstNode error! this._length !== 1");return t},e.prototype.push=function(e){return this.tail?this.insertAfter(this.tail,e):this._setFirstNode(e)},e.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var e=this.tail.item;return this.remove(this.tail),e},e.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var e=this.head.item;return this.remove(this.head),e},e.prototype.unshift=function(e){return this.head?this.insertBefore(this.head,e):this._setFirstNode(e)},e.prototype.removeAll=function(){for(var e=this.head;e;){var t=e.next;a(e),e=t}this.head=void 0,this.tail=void 0,this._setLength(0)},e}();t.DoublyLinkedList=c},1254:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Event=t.EventListenerHandler=void 0;var s=r(1500),c=r(1626),u=r(3476),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(5079).SmartListenerHandler);t.EventListenerHandler=l;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"_pipe",{get:function(){var e;return this.__pipe=null!==(e=this.__pipe)&&void 0!==e?e:new u.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),t.prototype.emit=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!this.isDestroyed()&&this.beforeCallback&&this.beforeCallback.apply(this,a([],i(t),!1)),!this.isDestroyed()&&(e=this._pipe).do.apply(e,a([],i(t),!1)),!this.isDestroyed()&&this.afterCallback&&this.afterCallback.apply(this,a([],i(t),!1))},t.prototype.on=function(e,t,r,n){void 0===r&&(r=!1);var o=r?this._pipe.unshift(e,t,!1):this._pipe.push(e,t,!1);return(n=null!=n?n:new l)._reset(o,o._cid),n},t.prototype.disposableOn=function(e,t,r,n){var o=this;void 0===r&&(r=!1);var i=this.on(e,t,r,n);return function(){i.valid&&o.off(i)}},t.prototype.don=function(e,t,r,n){return void 0===r&&(r=!1),this.disposableOn(e,t,r,n)},t.prototype.disposableWeakOn=function(e,t,r,n){void 0===r&&(r=!1);var o=new s.Destroyable,i=function(){!o.isDestroyed()&&o.destroy()};return o.dispose(this.disposableOn(e,t,r,n)),o.dispose(this.toDestroyEvent.disposableOn(i)),i},t.prototype.dwon=function(e,t,r,n){return void 0===r&&(r=!1),this.disposableWeakOn(e,t,r,n)},t.prototype.once=function(e,t,r,n){void 0===r&&(r=!1);var o=r?this._pipe.unshift(e,t,!0):this._pipe.push(e,t,!0);return(n=null!=n?n:new l)._reset(o,o._cid),n},t.prototype.disposableOnce=function(e,t,r,n){var o=this;void 0===r&&(r=!1);var i=this.once(e,t,r,n);return function(){return i.valid&&o.off(i)}},t.prototype.donce=function(e,t,r,n){var o=this;void 0===r&&(r=!1);var i=this.once(e,t,r,n);return function(){return i.valid&&o.off(i)}},t.prototype.off=function(e){if(!e.valid)throw new Error("handler is not valid!");this._pipe.remove(e._listenerHandler),e._reset()},t.prototype.reset=function(){this._pipe.removeAll()},t.prototype.destroyImp=function(){this.empty||((0,c.oneTimeWarning)("The event is destroying with listeners!"),this._pipe.removeAll())},t}(s.Destroyable);t.Event=f},3476:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerPipe=void 0;var i=r(1008),a=new(r(2486).ObjPool)((function(){return{func:void 0,scope:void 0,_hasRemoved:!1,_once:!1}}),(function(e){e.func=void 0,e.scope=void 0,e._hasRemoved=!1,e._once=!1}),!0),s=function(){function e(){}return Object.defineProperty(e.prototype,"_dll",{get:function(){var e;return this.__dll=null!==(e=this.__dll)&&void 0!==e?e:new i.DoublyLinkedList({needLength:!0}),this.__dll},enumerable:!1,configurable:!0}),e.prototype._pushCurrentListener=function(e){this.__currentListenerStack?Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.push(e):this.__currentListenerStack=[this.__currentListenerStack,e]:this.__currentListenerStack=e},e.prototype._popCurrentListener=function(){if(!this.__currentListenerStack)throw new Error("cannot pop!");Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.pop():this.__currentListenerStack=void 0},e.prototype._hasCurrentListener=function(e){return!!this.__currentListenerStack&&(Array.isArray(this.__currentListenerStack)?-1!==this.__currentListenerStack.indexOf(e):this.__currentListenerStack===e)},e.prototype.do=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.__dll&&!this._dll.empty)for(var i=this._dll.head;i;){var a=i.item;a._hasRemoved||(this._pushCurrentListener(a),(e=a.func).call.apply(e,o([a.scope],n(t),!1)),this._popCurrentListener());var s=i.next;a._once&&!a._hasRemoved&&(this.remove(i),i=void 0),i&&this._clearHasRemoved(i),i=s}},Object.defineProperty(e.prototype,"empty",{get:function(){if(!this.__dll||this._dll.empty)return!0;for(var e=!0,t=this._dll.head;t;){if(!t.item._hasRemoved){e=!1;break}t=t.next}return e},enumerable:!1,configurable:!0}),e.prototype.isHandlerValid=function(e){return!e.item._hasRemoved},e.prototype.nextHandler=function(e){if(!e.item._hasRemoved)throw new Error("handler has removed!");for(var t=e.next;t&&t.item._hasRemoved;)t=t.next;return t},e.prototype.prevHandler=function(e){if(!e.item._hasRemoved)throw new Error("handler has removed!");for(var t=e.previous;t&&t.item._hasRemoved;)t=t.previous;return t},e.prototype.moveAfter=function(e,t){if(e.item._hasRemoved||t.item._hasRemoved)throw new Error("handler or nextHandler has removed!");return this._dll.moveAfter(e,t)},e.prototype.moveBefore=function(e,t){if(e.item._hasRemoved||t.item._hasRemoved)throw new Error("handler or prevHandler has removed!");return this._dll.moveBefore(e,t)},e.prototype.insertBefore=function(e,t,r,n){if(void 0===n&&(n=!1),e.item._hasRemoved)throw new Error("handler has removed!");var o=a.create();return o.func=t,o.scope=r,o._once=n,this._dll.insertBefore(e,o)},e.prototype.insertAfter=function(e,t,r,n){if(void 0===n&&(n=!1),e.item._hasRemoved)throw new Error("handler has removed!");var o=a.create();return o.func=t,o.scope=r,o._once=n,this._dll.insertAfter(e,o)},e.prototype._clearHasRemoved=function(e){e.item._hasRemoved&&!this._hasCurrentListener(e.item)&&(a.destroy(e.item),this._dll.remove(e))},e.prototype.remove=function(e){if(!e.item||e.item._hasRemoved)throw new Error("handler has removed!");this._hasCurrentListener(e.item)?e.item._hasRemoved=!0:(a.destroy(e.item),this._dll.remove(e))},e.prototype.removeAll=function(){if(this.__dll&&!this._dll.empty)for(var e=this._dll.head;e;){var t=e.next;e.item._hasRemoved||this.remove(e),e=t}},e.prototype.destroy=function(){if(this.__dll){for(var e=this._dll.head;e;){var t=e.next,r=e;this._hasCurrentListener(r.item)||(console.warn("Event has remove item that on current stack!"),console.warn("".concat(r.item.func.toString()))),a.destroy(r.item),this._dll.remove(r),e=t}this.__dll=void 0,this.__currentListenerStack=void 0}},e.prototype.push=function(e,t,r){void 0===r&&(r=!1);var n=a.create();return n.func=e,n.scope=t,n._once=r,this._dll.push(n)},e.prototype.pop=function(){var e=this.tail;if(!e)throw new Error("pop error!");this.remove(e)},e.prototype.shift=function(){var e=this.head;if(!e)throw new Error("shift error!");this.remove(e)},e.prototype.unshift=function(e,t,r){void 0===r&&(r=!1);var n=a.create();return n.func=e,n.scope=t,n._once=r,this._dll.unshift(n)},Object.defineProperty(e.prototype,"tail",{get:function(){for(var e=this._dll.tail;e&&e.item._hasRemoved;)e=e.previous;return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){for(var e=this._dll.head;e&&e.item._hasRemoved;)e=e.previous;return e},enumerable:!1,configurable:!0}),e}();t.ListenerPipe=s},5079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartListenerHandler=void 0;var r=function(){function e(){}return e.prototype._reset=function(e,t){this._listenerHandler=e,this._cid=t},e.prototype.clone=function(t){return(t=null!=t?t:new e)._reset(this._listenerHandler,this._cid),t},Object.defineProperty(e.prototype,"valid",{get:function(){if(void 0!==this._listenerHandler&&"number"==typeof this._cid){var e=this._listenerHandler._cid;if(void 0!==e&&this._cid===e)return!0}return!1},enumerable:!1,configurable:!0}),e}();t.SmartListenerHandler=r},1123:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SmartListenerPipe=void 0;var i=r(3476),a=r(5079);function s(e,t){return(t=null!=t?t:new a.SmartListenerHandler)._reset(e,e._cid),t}var c=function(){function e(){}return Object.defineProperty(e.prototype,"_pipe",{get:function(){var e;return this.__pipe=null!==(e=this.__pipe)&&void 0!==e?e:new i.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),e.prototype.do=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._pipe).do.apply(e,o([],n(t),!1))},e.prototype.isHandlerValid=function(e){return!!e.valid&&this._pipe.isHandlerValid(e._listenerHandler)},e.prototype.moveAfter=function(e,t){if(!e.valid||!t.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(e._listenerHandler,t._listenerHandler)},e.prototype.moveBefore=function(e,t){if(!e.valid||!t.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(e._listenerHandler,t._listenerHandler)},e.prototype.insertBefore=function(e,t,r,n,o){if(void 0===n&&(n=!1),!e.valid)throw new Error("handler is not valid!");return s(this._pipe.insertBefore(e._listenerHandler,t,r,n),o)},e.prototype.insertAfter=function(e,t,r,n,o){if(void 0===n&&(n=!1),!e.valid)throw new Error("handler is not valid!");return s(this._pipe.insertAfter(e._listenerHandler,t,r,n),o)},e.prototype.remove=function(e){if(!e.valid)throw new Error("handler is not valid!");return this._pipe.remove(e._listenerHandler)},e.prototype.removeAll=function(){return this._pipe.removeAll()},e.prototype.push=function(e,t,r,n){return void 0===r&&(r=!1),s(this._pipe.push(e,t,r),n)},e.prototype.pop=function(){return this._pipe.pop()},e.prototype.shift=function(){return this._pipe.shift()},e.prototype.unshift=function(e,t,r,n){return void 0===r&&(r=!1),s(this._pipe.unshift(e,t,r),n)},e.prototype.getTail=function(e){var t=this._pipe.tail;return t?s(t,e):void 0},e.prototype.getHead=function(e){var t=this._pipe.head;return t?s(t,e):void 0},e}();t.SmartListenerPipe=c},2370:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1008),t),o(r(1254),t),o(r(3476),t),o(r(5079),t),o(r(1123),t)},4257:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.pluckProperty=void 0,t.pluckProperty=function(e,t){for(var n,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=e;try{for(var c=r(i),u=c.next();!u.done;u=c.next()){var l=u.value;if(!s[l]){if(!t)return;s[l]={}}s=s[l]}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return s}},3640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevPow2=void 0,t.prevPow2=function(e){return e|=0,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e>>1}},8554:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.setValueFromProps=t.getValueFromProps=void 0,t.getValueFromProps=function(e,t){var n,o,i=e;try{for(var a=r(t),s=a.next();!s.done;s=a.next())i=i[s.value]}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.setValueFromProps=function(e,t,r){if(0===t.length)throw new Error("props的数量必须大于0");for(var n=t.length-1,o=t[n],i=e,a=0;a<n;++a){var s=t[a];void 0===i[s]&&(i[s]={}),i=i[s]}i[o]=r}},5785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readFileFromBrowser=void 0,t.readFileFromBrowser=function(){return new Promise((function(e,t){var r=document.createElement("input");r.type="file",r.style.display="none";var n=new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window});r.dispatchEvent(n),r.addEventListener("change",(function(n){var o=r.files;o&&o.length>0?o[0].text().then((function(t){e(t)})):t()}))}))}},9483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(2851);t.reduce=function(e,t,r){for(var o=(0,n.getIterator)(e),i=r,a=0;;){var s=o.next(),c=s.done,u=s.value;if(c)break;i=t(i,u,a++)}return i}},6395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.downloadLink=void 0,t.downloadLink=function(e,t){var r=document.createElement("a"),n=new MouseEvent("click");r.download=t||"下载",r.href=e,r.dispatchEvent(n)}},6887:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1631),t),o(r(6395),t)},1631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveOnBrowser=void 0,t.saveOnBrowser=function(e,t,r){void 0===r&&(t.endsWith(".gltf")?r="model/gltf+json":t.endsWith(".bin")?r="application/octet-stream":t.endsWith(".glb")?r="model/gltf-binary":t.endsWith(".jpg")||t.endsWith(".jpeg")?r="image/jpeg":t.endsWith(".png")?r="image/png":t.endsWith(".glsl")?r="text/plain":t.endsWith(".json")?r="application/json":t.endsWith(".b3dm")||t.endsWith(".i3dm")?r="application/octet-stream":console.warn("save ".concat(t,": MimeType无法确定!")));var n=new Blob([e],{type:r||""}),o=URL.createObjectURL(n),i=document.createElement("a"),a=new MouseEvent("click");i.download=t,i.href=o,i.dispatchEvent(a),URL.revokeObjectURL(o)}},2949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.some=void 0;var n=r(4564);t.some=function(e,t){return(0,n.forEachWithBreak)(e,(function(e,r){return t(e,r)}))}},1561:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var i=r(1210);t.throttle=function(e,t,r){void 0===r&&(r=i.defaultStartUpdateFunc);var a=Number.NEGATIVE_INFINITY,s=void 0;return[function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s=e},r&&r((function(r){r-a>t&&s&&(e.apply(void 0,o([],n(s),!1)),s=void 0,a=r)}))||void 0]}},9709:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.nextMicroTask=t.nextAnimateFrame=t.animateFrame=t.timeout=t.interval=void 0,t.interval=function(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=setInterval.apply(void 0,n([e,t],r(o),!1));return function(){return clearInterval(a)}},t.timeout=function(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=setTimeout.apply(void 0,n([e,t],r(o),!1));return function(){return clearTimeout(a)}},t.animateFrame=function(e){for(var t,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a=function(){var i=performance.now();e.apply(void 0,n([i],r(o),!1)),t=requestAnimationFrame(a)};return a(),function(){return void 0!==t&&(cancelAnimationFrame(t),t=void 0)}},t.nextAnimateFrame=function(e){for(var t,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return t=requestAnimationFrame((function(){var t=performance.now();e.apply(void 0,n([t],r(o),!1))})),function(){return void 0!==t&&(cancelAnimationFrame(t),t=void 0)}},t.nextMicroTask=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var i,a=!1;return new Promise((function(e,t){i=t,e()})).then((function(){!a&&e.apply(void 0,n([],r(t),!1))})).catch((function(e){console.error(e)})),function(){return(a=!0)&&i&&(i("nextMicroTask cancelled!"),i=void 0)}}},5239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64Uri=t.isAbsoluteUri=void 0,t.isAbsoluteUri=function(e){return e.startsWith("http:")||e.startsWith("https:")},t.isBase64Uri=function(e){return e.startsWith("data:")}},3712:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.withoutUndefinedArray=t.withoutUndefined=void 0;var o=r(8931),i=r(9354);function a(e,t,r,a){var s=n((0,o.getReactFuncs)(e),3),c=s[0],u=s[1],l=s[2],f=(0,i.react)(t,r,a);return f.dispose(f.changed.dwon((function(){f.value!==t?u(f.value):u(void 0)}))),void 0!==c()&&(f.value=c()),f.dispose(l.don((function(e){f.value=void 0!==e?e:t}))),f}t.withoutUndefined=a,t.withoutUndefinedArray=function(e,t,r,n){return a(e,t,(function(e,t){return e.length===t.length&&e.every((function(e,n){return r&&r(e,t[n])||e===t[n]}))}),(function(e,t){for(var r=t||new Array(e.length),o=0;o<e.length;++o)r[o]=n?n(e[o]):e[o];return r.length=e.length,r}))}},8721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoundingSphere=void 0;var n=r(7839),o=r(1250),i=r(6800),a=r(3228),s=r(443);!function(e){function t(e,t){return t=t||(0,i.createNumbers)(3),s.Vector.set(t,e[0],e[1],e[2]),t}function r(e){return e[3]}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(e,t){e[3]=t}e.getCenter=t,e.getRadius=r,e.setCenter=c,e.setRadius=u,e.fromCenterRadius=function(e,t,r){return s.Vector.set(r,e[0],e[1],e[2],t)};var l=(0,i.createNumbers)(3),f=(0,i.createNumbers)(3);e.intersectPlane=function(e,o){var i=t(e,l),c=r(e),u=a.Plane.getNormal(o,f),p=s.Vector.dot(u,i)+a.Plane.getDistance(o);return p<-c?n.Intersect.OUTSIDE:p<c?n.Intersect.INTERSECTING:n.Intersect.INSIDE};var p=(0,i.createNumbers)(3);e.transform=function(e,n,a){a=a||(0,i.createNumbers)(4);var s=t(e,p),l=r(e);return o.Matrix4.affineMultiplyByPoint(n,s,s),l*=o.Matrix4.getMaximumScale(n),c(a,s),u(a,l),a};var d=(0,i.createNumbers)(3),h=(0,i.createNumbers)(3),v=(0,i.createNumbers)(3),y=(0,i.createNumbers)(3);e.union=function(e,t,r){r=r||(0,i.createNumbers)(4);var n=s.Vector.set(d,e[0],e[1],e[2]),o=e[3],a=s.Vector.set(h,t[0],t[1],t[2]),c=t[3],u=s.Vector.subtract(a,n,v),l=s.Vector.magnitude(u);if(o>=l+c)return s.Vector.clone(e,r),r;if(c>=l+o)return s.Vector.clone(t,r),r;var f=.5*(o+l+c),p=s.Vector.multiplyByScalar(u,(-o+f)/l,y);return s.Vector.add(p,n,p),s.Vector.set(r,p[0],p[1],p[2],f),r};var _=(0,i.createNumbers)(3);e.fromCornerPoints=function(e,t,r){var n=s.Vector.lerp(e,t,.5,_),o=s.Vector.distance(n,t);return s.Vector.set(r,n[0],n[1],n[2],o)}}(t.BoundingSphere||(t.BoundingSphere={}))},3960:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._getCullingVolumeFromProjectionMatrix=void 0;var i=o(r(7195)),a=r(6800),s=r(443);function c(e,t,r){return e[4*(r-1)+(t-1)]}t._getCullingVolumeFromProjectionMatrix=function(e,t){var r,o,u=e;if(6!==(t=t||new i.default([(0,a.createNumbers)(4),(0,a.createNumbers)(4),(0,a.createNumbers)(4),(0,a.createNumbers)(4),(0,a.createNumbers)(4),(0,a.createNumbers)(4)])).planes.length)throw new Error("!target.planes || target.planes.length !== 6");s.Vector.set(t.planes[0],c(u,4,1)+c(u,1,1),c(u,4,2)+c(u,1,2),c(u,4,3)+c(u,1,3),c(u,4,4)+c(u,1,4)),s.Vector.set(t.planes[1],c(u,4,1)-c(u,1,1),c(u,4,2)-c(u,1,2),c(u,4,3)-c(u,1,3),c(u,4,4)-c(u,1,4)),s.Vector.set(t.planes[2],c(u,4,1)+c(u,2,1),c(u,4,2)+c(u,2,2),c(u,4,3)+c(u,2,3),c(u,4,4)+c(u,2,4)),s.Vector.set(t.planes[3],c(u,4,1)-c(u,2,1),c(u,4,2)-c(u,2,2),c(u,4,3)-c(u,2,3),c(u,4,4)-c(u,2,4)),s.Vector.set(t.planes[4],c(u,4,1)+c(u,3,1),c(u,4,2)+c(u,3,2),c(u,4,3)+c(u,3,3),c(u,4,4)+c(u,3,4)),s.Vector.set(t.planes[5],c(u,4,1)-c(u,3,1),c(u,4,2)-c(u,3,2),c(u,4,3)-c(u,3,3),c(u,4,4)-c(u,3,4));try{for(var l=n(t.planes),f=l.next();!f.done;f=l.next()){var p=f.value;s.Vector.normalize(p,p)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t}},7195:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CullingVolume=void 0;var o=r(8721),i=r(7839),a=r(7987),s=r(3228),c=r(3960),u=function(){function e(e){void 0===e&&(e=[]),this.planes=e}return e.fromProjectionMatrix=function(e,t){return(0,c._getCullingVolumeFromProjectionMatrix)(e,t)},e.prototype.computeVisibilityWithPlaneMask=function(t,r,n){if(n===e.MASK_OUTSIDE||n===e.MASK_INSIDE)return n;var s=e.MASK_INSIDE,c=this.planes;if(c)for(var u=0,l=c.length;u<l;++u){var f=u<31?1<<u:0;if(!(u<31)||n&f){var p=void 0;if("box"===t?p=a.OrientedBoundingBox.intersectPlane(r,c[u]):"sphere"===t&&(p=o.BoundingSphere.intersectPlane(r,c[u])),p===i.Intersect.OUTSIDE)return e.MASK_OUTSIDE;p===i.Intersect.INTERSECTING&&(s|=f)}}return s},e.prototype.transform=function(e){var t,r;try{for(var o=n(this.planes),i=o.next();!i.done;i=o.next()){var a=i.value;s.Plane.transform(a,e,a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.MASK_OUTSIDE=4294967295,e.MASK_INSIDE=0,e.MASK_INDETERMINATE=2147483647,e}();t.CullingVolume=u,t.default=u},7839:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Intersect=void 0,(r=t.Intersect||(t.Intersect={})).OUTSIDE=-1,r.INTERSECTING=0,r.INSIDE=1},3114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InverseViewMatrix=void 0;var n=r(443),o=function(){function e(){}return e.getDirection=function(e,t){return n.Vector.set(t,-e[8],-e[9],-e[10])},e.getRight=function(e,t){return n.Vector.set(t,e[0],e[1],e[2])},e.getUp=function(e,t){return n.Vector.set(t,e[4],e[5],e[6])},e.getEye=function(e,t){return n.Vector.set(t,e[12],e[13],e[14])},e}();t.InverseViewMatrix=o},1812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Matrix3=void 0;var n,o=r(6800),i=r(443);(n=t.Matrix3||(t.Matrix3={})).multiply=function(e,t,r){var n=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],i=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],a=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],s=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],c=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],u=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],f=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],p=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return(r=r||(0,o.createNumbers)(9))[0]=n,r[1]=i,r[2]=a,r[3]=s,r[4]=c,r[5]=u,r[6]=l,r[7]=f,r[8]=p,r},n.multiplyByVector=function(e,t,r){var n=t[0],o=t[1],a=t[2],s=e[0]*n+e[3]*o+e[6]*a,c=e[1]*n+e[4]*o+e[7]*a,u=e[2]*n+e[5]*o+e[8]*a;return i.Vector.set(r,s,c,u)},n.fromQuaternion=function(e,t){var r=e[0]*e[0],n=e[0]*e[1],a=e[0]*e[2],s=e[0]*e[3],c=e[1]*e[1],u=e[1]*e[2],l=e[1]*e[3],f=e[2]*e[2],p=e[2]*e[3],d=e[3]*e[3],h=r-c-f+d,v=2*(n-p),y=2*(a+l),_=2*(n+p),b=-r+c-f+d,g=2*(u-s),m=2*(a-l),w=2*(u+s),O=-r-c+f+d;return t=t||(0,o.createNumbers)(9),i.Vector.set(t,h,_,m,v,b,w,y,g,O),t},n.getScale=function(e,t){return(t=t||(0,o.createNumbers)(3))[0]=i.Vector.magnitude([e[0],e[1],e[2]]),t[1]=i.Vector.magnitude([e[3],e[4],e[5]]),t[2]=i.Vector.magnitude([e[6],e[7],e[8]]),t},n.getElementIndex=function(e,t){return 3*e+t},n.IDENTITY=Object.freeze([1,0,0,0,1,0,0,0,1]),n.COLUMN0ROW0=0,n.COLUMN0ROW1=1,n.COLUMN0ROW2=2,n.COLUMN1ROW0=3,n.COLUMN1ROW1=4,n.COLUMN1ROW2=5,n.COLUMN2ROW0=6,n.COLUMN2ROW1=7,n.COLUMN2ROW2=8},1299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fromDirectionUpRightAndTranslation=t._fromMatrix3AndTranslation=t._fromTranslation=void 0;var n=r(6800),o=r(443),i=r(714);t._fromTranslation=function(e,t){return(t=t||(0,n.createNumbers)(16))[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},t._fromMatrix3AndTranslation=function(e,t,r){return t=t||i.Vector3.ZERO,(r=r||(0,n.createNumbers)(16))[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=0,r[4]=e[3],r[5]=e[4],r[6]=e[5],r[7]=0,r[8]=e[6],r[9]=e[7],r[10]=e[8],r[11]=0,r[12]=t[0],r[13]=t[1],r[14]=t[2],r[15]=1,r},t._fromDirectionUpRightAndTranslation=function(e,t,r,n,a){var s=null!=n?n:i.Vector3.ZERO;return o.Vector.set(a,r[0],r[1],r[2],0,t[0],t[1],t[2],0,-e[0],-e[1],-e[2],0,s[0],s[1],s[2],1)}},4302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._inverseTransformation=void 0;var n=r(6800);t._inverseTransformation=function(e,t){var r=e[0],o=e[1],i=e[2],a=e[4],s=e[5],c=e[6],u=e[8],l=e[9],f=e[10],p=e[12],d=e[13],h=e[14],v=-r*p-o*d-i*h,y=-a*p-s*d-c*h,_=-u*p-l*d-f*h;return(t=t||(0,n.createNumbers)(16))[0]=r,t[1]=a,t[2]=u,t[3]=0,t[4]=o,t[5]=s,t[6]=l,t[7]=0,t[8]=i,t[9]=c,t[10]=f,t[11]=0,t[12]=v,t[13]=y,t[14]=_,t[15]=1,t}},6653:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t._getMaximumScale=t._setScale=t._getScale=void 0;var i=r(6800),a=r(443),s=r(5884);function c(e,t){return(t=t||(0,i.createNumbers)(3))[0]=a.Vector.magnitude([e[0],e[1],e[2]]),t[1]=a.Vector.magnitude([e[4],e[5],e[6]]),t[2]=a.Vector.magnitude([e[8],e[9],e[10]]),t}t._getScale=c;var u=(0,i.createNumbers)(3);t._setScale=function(e,t,r){var n=c(e,u),o=a.Vector.divide(t,n,u);return(0,s._multiplyByScale)(e,o,r)};var l=(0,i.createNumbers)(3);t._getMaximumScale=function(e){var t=c(e,l);return Math.max.apply(Math,o([],n(a.Vector.itr(t)),!1))}},3946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setColumn=t._getColumn=void 0;var n=r(6800),o=r(443);t._getColumn=function(e,t,r){if(t<0||t>3)throw new Error("index < 0 || index > 3");var o=4*t,i=e[o],a=e[o+1],s=e[o+2],c=e[o+3];return(r=r||(0,n.createNumbers)(4))[0]=i,r[1]=a,r[2]=s,r[3]=c,r},t._setColumn=function(e,t,r,n){if(t<0||t>3)throw new Error("index < 0 || index > 3");var i=4*t;return(n=o.Vector.clone(e,n))[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n}},1250:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Matrix4=void 0;var i=r(1812),a=r(6800),s=r(4548),c=r(443),u=r(714),l=r(3946),f=r(2874),p=r(5884),d=r(8706),h=r(3869),v=r(2257),y=r(1299),_=r(4302),b=r(6653);!function(e){function t(e,t,r){return(0,y._fromMatrix3AndTranslation)(e,t,r)}e.getElementIndex=function(e,t){if(e<0||e>3||t<0||t>3)throw new Error("column < 0 || column > 3 || row < 0 || row > 3");return 4*e+t},e.getColumn=function(e,t,r){return(0,l._getColumn)(e,t,r)},e.setColumn=function(e,t,r,n){return(0,l._setColumn)(e,t,r,n)},e.getRow=function(e,t,r){return(0,d._getRow)(e,t,r)},e.setRow=function(e,t,r,n){(0,d._setRow)(e,t,r,n)},e.getTranslation=function(e,t){return(0,h._getTranslation)(e,t)},e.setTranslation=function(e,t,r){return(0,h._setTranslation)(e,t,r)},e.getScale=function(e,t){return(0,b._getScale)(e,t)},e.setScale=function(e,t,r){return(0,b._setScale)(e,t,r)},e.getMaximumScale=function(e){return(0,b._getMaximumScale)(e)},e.multiply=function(e,t,r){return(0,p._multiply)(e,t,r)},e.multiplyTransformation=function(e,t,r){return(0,p._multiplyTransformation)(e,t,r)},e.multiplyByMatrix3=function(e,t,r){return(0,p._multiplyByMatrix3)(e,t,r)},e.multiplyByTranslation=function(e,t,r){return(0,p._multiplyByTranslation)(e,t,r)},e.multiplyByUniformScale=function(e,t,r){(0,p._multiplyByUniformScale)(e,t,r)},e.multiplyByScale=function(e,t,r){return(0,p._multiplyByScale)(e,t,r)},e.multiplyByVector=function(e,t,r){return(0,p._multiplyByVector)(e,t,r)},e.multiplyByPointAsVector=function(e,t,r){return(0,p._multiplyByPointAsVector)(e,t,r)},e.affineMultiplyByPoint=function(e,t,r){return(0,p._affineMultiplyByPoint)(e,t,r)},e.multiplyByPoint=function(e,t,r){return(0,p._multiplyByPoint)(e,t,r)},e.continuousMultiply=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return p._continuousMultiply.apply(void 0,o([e,t],n(r),!1))},e.transpose=function(e,t){return(0,v._transpose)(e,t)},e.getMatrix3=function(e,t){return(t=t||(0,a.createNumbers)(9))[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.setMatrix3=function(t,r){(r=r||c.Vector.clone(e.IDENTITY))[0]=t[0],r[1]=t[1],r[2]=t[2],r[4]=t[3],r[5]=t[4],r[6]=t[5],r[8]=t[6],r[9]=t[7],r[10]=t[8]},e.inverse=function(e,t){return(0,f.inverse)(e,t)},e.inverseTransformation=function(e,t){return(0,_._inverseTransformation)(e,t)},e.IDENTITY=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),e.ZERO=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e.fromTranslation=function(e,t){return(0,y._fromTranslation)(e,t)},e.fromMatrix3AndTranslation=t;var r=(0,a.createNumbers)(9);e.fromRotateQuatAndTranslation=function(e,n,o){return i.Matrix3.fromQuaternion(e,r),t(r,n,o)},e.fromDirectionUpRightAndTranslation=function(e,t,r,n,o){return(0,y._fromDirectionUpRightAndTranslation)(e,t,r,n,o)},e.fromScale=function(e,t){return c.Vector.set(t,e[0],0,0,0,0,e[1],0,0,0,0,e[2],0,0,0,0,1)};var g=s.Quaternion.fromAxisAngle([1,0,0],.5*Math.PI),m=i.Matrix3.fromQuaternion(g);e.Z2NY=e.fromMatrix3AndTranslation(m);var w=(0,a.createNumbers)(4),O=(0,a.createNumbers)(9);e.fromAxisAngle=function(t,r,n){return s.Quaternion.fromAxisAngle(t,r,w),i.Matrix3.fromQuaternion(w,O),e.fromMatrix3AndTranslation(O,u.Vector3.ZERO,n)}}(t.Matrix4||(t.Matrix4={}))},2874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inverse=void 0;var n=r(1250),o=r(6800),i=r(443),a=(0,o.createNumbers)(9),s=(0,o.createNumbers)(9),c=(0,o.createNumbers)(4),u=(0,o.createNumbers)(4,0,0,0,1);t.inverse=function(e,t){var r=e[0],l=e[4],f=e[8],p=e[12],d=e[1],h=e[5],v=e[9],y=e[13],_=e[2],b=e[6],g=e[10],m=e[14],w=e[3],O=e[7],P=e[11],j=e[15],E=g*j,x=m*P,C=b*j,S=m*O,T=b*P,F=g*O,M=_*j,A=m*w,k=_*P,D=g*w,R=_*O,I=b*w,N=E*h+S*v+T*y-(x*h+C*v+F*y),V=x*d+M*v+D*y-(E*d+A*v+k*y),B=C*d+A*h+R*y-(S*d+M*h+I*y),L=F*d+k*h+I*v-(T*d+D*h+R*v),U=x*l+C*f+F*p-(E*l+S*f+T*p),W=E*r+A*f+k*p-(x*r+M*f+D*p),z=S*r+M*l+I*p-(C*r+A*l+R*p),H=T*r+D*l+R*f-(F*r+k*l+I*f),G=(E=f*y)*O+(S=p*h)*P+(T=l*v)*j-((x=p*v)*O+(C=l*y)*P+(F=f*h)*j),J=x*w+(M=r*y)*P+(D=f*d)*j-(E*w+(A=p*d)*P+(k=r*v)*j),Y=C*w+A*O+(R=r*h)*j-(S*w+M*O+(I=l*d)*j),q=F*w+k*O+I*P-(T*w+D*O+R*P),X=C*g+F*m+x*b-(T*m+E*b+S*g),K=k*m+E*_+A*g-(M*g+D*m+x*_),Q=M*b+I*m+S*_-(R*m+C*_+A*b),Z=R*g+T*_+D*b-(k*b+I*g+F*_),$=r*N+l*V+f*B+p*L;if(t=t||(0,o.createNumbers)(16),Math.abs($)<1e-21){if(i.Vector.equalsEpsilon(n.Matrix4.getMatrix3(e,a),s,1e-7)&&i.Vector.equals(n.Matrix4.getRow(e,3,c),u))return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=1,t;throw new Error("matrix is not invertible because its determinate is zero.")}return $=1/$,t[0]=N*$,t[1]=V*$,t[2]=B*$,t[3]=L*$,t[4]=U*$,t[5]=W*$,t[6]=z*$,t[7]=H*$,t[8]=G*$,t[9]=J*$,t[10]=Y*$,t[11]=q*$,t[12]=X*$,t[13]=K*$,t[14]=Q*$,t[15]=Z*$,t}},5884:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t._continuousMultiply=t._multiplyByPoint=t._affineMultiplyByPoint=t._multiplyByPointAsVector=t._multiplyByVector=t._multiplyByScale=t._multiplyByUniformScale=t._multiplyByTranslation=t._multiplyByMatrix3=t._multiplyTransformation=t._multiply=void 0;var o=r(6800),i=r(443);function a(e,t,r){var n=e[0],i=e[1],a=e[2],s=e[3],c=e[4],u=e[5],l=e[6],f=e[7],p=e[8],d=e[9],h=e[10],v=e[11],y=e[12],_=e[13],b=e[14],g=e[15],m=t[0],w=t[1],O=t[2],P=t[3],j=t[4],E=t[5],x=t[6],C=t[7],S=t[8],T=t[9],F=t[10],M=t[11],A=t[12],k=t[13],D=t[14],R=t[15],I=n*m+c*w+p*O+y*P,N=i*m+u*w+d*O+_*P,V=a*m+l*w+h*O+b*P,B=s*m+f*w+v*O+g*P,L=n*j+c*E+p*x+y*C,U=i*j+u*E+d*x+_*C,W=a*j+l*E+h*x+b*C,z=s*j+f*E+v*x+g*C,H=n*S+c*T+p*F+y*M,G=i*S+u*T+d*F+_*M,J=a*S+l*T+h*F+b*M,Y=s*S+f*T+v*F+g*M,q=n*A+c*k+p*D+y*R,X=i*A+u*k+d*D+_*R,K=a*A+l*k+h*D+b*R,Q=s*A+f*k+v*D+g*R;return(r=r||(0,o.createNumbers)(16))[0]=I,r[1]=N,r[2]=V,r[3]=B,r[4]=L,r[5]=U,r[6]=W,r[7]=z,r[8]=H,r[9]=G,r[10]=J,r[11]=Y,r[12]=q,r[13]=X,r[14]=K,r[15]=Q,r}t._multiply=a,t._multiplyTransformation=function(e,t,r){var n=e[0],i=e[1],a=e[2],s=e[4],c=e[5],u=e[6],l=e[8],f=e[9],p=e[10],d=e[12],h=e[13],v=e[14],y=t[0],_=t[1],b=t[2],g=t[4],m=t[5],w=t[6],O=t[8],P=t[9],j=t[10],E=t[12],x=t[13],C=t[14],S=n*y+s*_+l*b,T=i*y+c*_+f*b,F=a*y+u*_+p*b,M=n*g+s*m+l*w,A=i*g+c*m+f*w,k=a*g+u*m+p*w,D=n*O+s*P+l*j,R=i*O+c*P+f*j,I=a*O+u*P+p*j,N=n*E+s*x+l*C+d,V=i*E+c*x+f*C+h,B=a*E+u*x+p*C+v;return(r=r||(0,o.createNumbers)(16))[0]=S,r[1]=T,r[2]=F,r[3]=0,r[4]=M,r[5]=A,r[6]=k,r[7]=0,r[8]=D,r[9]=R,r[10]=I,r[11]=0,r[12]=N,r[13]=V,r[14]=B,r[15]=1,r},t._multiplyByMatrix3=function(e,t,r){var n=e[0],i=e[1],a=e[2],s=e[4],c=e[5],u=e[6],l=e[8],f=e[9],p=e[10],d=t[0],h=t[1],v=t[2],y=t[3],_=t[4],b=t[5],g=t[6],m=t[7],w=t[8],O=n*d+s*h+l*v,P=i*d+c*h+f*v,j=a*d+u*h+p*v,E=n*y+s*_+l*b,x=i*y+c*_+f*b,C=a*y+u*_+p*b,S=n*g+s*m+l*w,T=i*g+c*m+f*w,F=a*g+u*m+p*w;return(r=r||(0,o.createNumbers)(16))[0]=O,r[1]=P,r[2]=j,r[3]=0,r[4]=E,r[5]=x,r[6]=C,r[7]=0,r[8]=S,r[9]=T,r[10]=F,r[11]=0,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},t._multiplyByTranslation=function(e,t,r){var n=t[0],i=t[1],a=t[2],s=n*e[0]+i*e[4]+a*e[8]+e[12],c=n*e[1]+i*e[5]+a*e[9]+e[13],u=n*e[2]+i*e[6]+a*e[10]+e[14];return(r=r||(0,o.createNumbers)(16))[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=s,r[13]=c,r[14]=u,r[15]=e[15],r};var s=(0,o.createNumbers)(3);function c(e,t,r){if(1!==e[15])throw new Error("_multiplyByScale error: it should be affine matrix!");var n=t[0],a=t[1],s=t[2];return r=r||(0,o.createNumbers)(16),1===n&&1===a&&1===s?e!==r?i.Vector.clone(e,r):e:(r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=0,r[4]=a*e[4],r[5]=a*e[5],r[6]=a*e[6],r[7]=0,r[8]=s*e[8],r[9]=s*e[9],r[10]=s*e[10],r[11]=0,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=1,r)}function u(e,t,r){var n=t[0],i=t[1],a=t[2],s=t[3],c=e[0]*n+e[4]*i+e[8]*a+e[12]*s,u=e[1]*n+e[5]*i+e[9]*a+e[13]*s,l=e[2]*n+e[6]*i+e[10]*a+e[14]*s,f=e[3]*n+e[7]*i+e[11]*a+e[15]*s;return(r=r||(0,o.createNumbers)(4))[0]=c,r[1]=u,r[2]=l,r[3]=f,r}t._multiplyByUniformScale=function(e,t,r){return s[0]=t,s[1]=t,s[2]=t,c(e,s,r)},t._multiplyByScale=c,t._multiplyByVector=u,t._multiplyByPointAsVector=function(e,t,r){var n=t[0],i=t[1],a=t[2],s=e[0]*n+e[4]*i+e[8]*a,c=e[1]*n+e[5]*i+e[9]*a,u=e[2]*n+e[6]*i+e[10]*a;return(r=r||(0,o.createNumbers)(3))[0]=s,r[1]=c,r[2]=u,r},t._affineMultiplyByPoint=function(e,t,r){if(1!==e[15])throw new Error("matrix[15] !== 1");var n=t[0],i=t[1],a=t[2],s=e[0]*n+e[4]*i+e[8]*a+e[12],c=e[1]*n+e[5]*i+e[9]*a+e[13],u=e[2]*n+e[6]*i+e[10]*a+e[14];return(r=r||(0,o.createNumbers)(3))[0]=s,r[1]=c,r[2]=u,r};var l=(0,o.createNumbers)(4);t._multiplyByPoint=function(e,t,r){i.Vector.set(l,t[0],t[1],t[2],1),u(e,l,l),r=r||(0,o.createNumbers)(3);var a=n(i.Vector.itr(l),4),s=a[0],c=a[1],f=a[2],p=a[3];return i.Vector.set(r,s/p,c/p,f/p),r},t._continuousMultiply=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r.length;e!==t&&i.Vector.clone(t,e);for(var s=0;s<o;++s)Array.isArray(r[s])&&"function"==typeof r[s][0]?(0,r[s][0])(e,r[s][1],e):16===r[s].length&&a(e,r[s],e);return e}},8706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setRow=t._getRow=void 0;var n=r(6800),o=r(443);t._getRow=function(e,t,r){if(t<0||t>3)throw new Error("index < 0 || index > 3");r=r||(0,n.createNumbers)(4);var o=e[t],i=e[t+4],a=e[t+8],s=e[t+12];return r[0]=o,r[1]=i,r[2]=a,r[3]=s,r},t._setRow=function(e,t,r,n){if(t<0||t>3)throw new Error("index < 0 || index > 3");return(n=o.Vector.clone(e,n))[t]=r[0],n[t+4]=r[1],n[t+8]=r[2],n[t+12]=r[3],n}},3869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setTranslation=t._getTranslation=void 0;var n=r(6800);t._getTranslation=function(e,t){return(t=t||(0,n.createNumbers)(3))[0]=e[12],t[1]=e[13],t[2]=e[14],t},t._setTranslation=function(e,t,r){return e!==(r=r||(0,n.createNumbers)(16))&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[15]=e[15]),r[12]=t[0],r[13]=t[1],r[14]=t[2],r}},2257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._transpose=void 0;var n=r(6800);t._transpose=function(e,t){var r=e[1],o=e[2],i=e[3],a=e[6],s=e[7],c=e[11];return(t=t||(0,n.createNumbers)(16))[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=o,t[9]=a,t[10]=e[10],t[11]=e[14],t[12]=i,t[13]=s,t[14]=c,t[15]=e[15],t}},6800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ary2Ns=t.xyzw2N4=t.xyz2N3=t.xyz2N2=t.Xyzw2Ns=t.createNumbers=void 0,t.createNumbers=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(e>16)throw new Error("length > 16");for(var o=new Array(e),i=0;i<e;++i)o[i]=null!==(t=r[i])&&void 0!==t?t:0;return o};var r=function(){function e(e,t){this._xyzw=e,this._length=t}return Object.defineProperty(e.prototype,0,{get:function(){var e;return null!==(e=this._xyzw.x)&&void 0!==e?e:0},set:function(e){this._xyzw.x=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,1,{get:function(){var e;return null!==(e=this._xyzw.y)&&void 0!==e?e:0},set:function(e){this._xyzw.y=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,2,{get:function(){var e;return null!==(e=this._xyzw.z)&&void 0!==e?e:0},set:function(e){this._xyzw.z=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,3,{get:function(){var e;return null!==(e=this._xyzw.w)&&void 0!==e?e:0},set:function(e){this._xyzw.w=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),e}();t.Xyzw2Ns=r,t.xyz2N2=function(e){return new r(e,2)},t.xyz2N3=function(e){return new r(e,3)},t.xyzw2N4=function(e){return new r(e,4)};var n=function(){function e(e,t,r,n){this._array=e,this._length=t,this._start=r,this._stride=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(e){this._array[this._start+0*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(e){this._array[this._start+1*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(e){this._array[this._start+2*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(e){this._array[this._start+3*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(e){this._array[this._start+4*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(e){this._array[this._start+5*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(e){this._array[this._start+6*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(e){this._array[this._start+7*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(e){this._array[this._start+8*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(e){this._array[this._start+9*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(e){this._array[this._start+10*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(e){this._array[this._start+11*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(e){this._array[this._start+12*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(e){this._array[this._start+13*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(e){this._array[this._start+14*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(e){this._array[this._start+15*this._stride]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(e){this._array[this._start+16*this._stride]=e},enumerable:!1,configurable:!0}),e}();t.ary2Ns=function(e,t,r,o){return void 0===r&&(r=0),void 0===o&&(o=1),new n(e,t,r,o)}},7987:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.OrientedBoundingBox=void 0;var i=r(6800),a=r(443),s=r(3228),c=r(7839),u=r(1812);!function(e){function t(e,t){return t=t||(0,i.createNumbers)(3),a.Vector.set(t,e[0],e[1],e[2]),t}function r(e,t){t=t||(0,i.createNumbers)(9);var r=e;return a.Vector.set(t,r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11]),t}e.getCenter=t,e.getHalfAxes=r,e.setCenter=function(e,t){for(var r=0;r<3;++r)e[r]=t[r];return e},e.setHalfAxes=function(e,t){for(var r=0;r<9;++r)e[r+3]=t[r];return e};var l=(0,i.createNumbers)(3),f=(0,i.createNumbers)(9);e.getModelMatrix=function(e,n){var o=r(e,f),i=t(e,l);return a.Vector.set(n,o[0],o[1],o[2],0,o[3],o[4],o[5],0,o[6],o[7],o[8],0,i[0],i[1],i[2],1)};var p=(0,i.createNumbers)(3),d=(0,i.createNumbers)(3),h=(0,i.createNumbers)(9);e.intersectPlane=function(e,n){var o=t(e,p),i=s.Plane.getNormal(n,d),u=s.Plane.getDistance(n),l=r(e,h),f=i[0],v=i[1],y=i[2],_=Math.abs(f*l[0]+v*l[1]+y*l[2])+Math.abs(f*l[3]+v*l[4]+y*l[5])+Math.abs(f*l[6]+v*l[7]+y*l[8]),b=a.Vector.dot(i,o)+u;return b<=-_?c.Intersect.OUTSIDE:b>=_?c.Intersect.INSIDE:c.Intersect.INTERSECTING};var v=(0,i.createNumbers)(3);e.getBoundingSphere=function(e,t){t=t||(0,i.createNumbers)(4);var s=r(e,h),c=u.Matrix3.getScale(s,v),l=Math.max.apply(Math,o([],n(a.Vector.itr(c)),!1));return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=l,t}}(t.OrientedBoundingBox||(t.OrientedBoundingBox={}))},3228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plane=void 0;var n=r(6800),o=r(443),i=r(6150),a=r(1250);!function(e){var t=(0,n.createNumbers)(3);function r(e,r){o.Vector.set(t,e[0],e[1],e[2]);var n=o.Vector.magnitudeSquared(t);if(Math.abs(n-1)>1e-9)throw new Error("plane必须是单位向量!");return o.Vector.dot(t,r)+e[3]}function s(e,t){return t=t||(0,n.createNumbers)(3),o.Vector.set(t,e[0],e[1],e[2]),t}e.distancePlaneToPoint=r,e.projectPointOntoPlane=function(e,i,a){a=a||(0,n.createNumbers)(3);var s=r(i,e);return o.Vector.set(t,i[0],i[1],i[2]),o.Vector.multiplyByScalar(t,-s,a),o.Vector.add(a,e,a),a},e.getNormal=s,e.getDistance=function(e){return e[3]},e.setNormal=function(e,t){for(var r=0;r<3;++r)e[r]=t[r];return e},e.setDistance=function(e,t){return e[3]=t,e};var c=(0,n.createNumbers)(3),u=(0,n.createNumbers)(3);e.distanceRayToPlane=function(e,t,n){void 0===n&&(n=1e-5);var a=i.Ray.getDirection(e,c),l=s(t,u),f=-o.Vector.dot(a,l);if(!(Math.abs(f)<n))return r(t,i.Ray.getOrigin(e,c))/f};var l=(0,n.createNumbers)(16),f=(0,n.createNumbers)(4),p=(0,n.createNumbers)(3);e.transform=function(e,t,r){r=r||(0,n.createNumbers)(4);var i=a.Matrix4.inverse(a.Matrix4.transpose(t,l),l),c=a.Matrix4.multiplyByVector(i,e,f),u=s(e,p);return o.Vector.multiplyByScalar(c,1/o.Vector.magnitude(u),r),r},e.fromPointNormal=function(e,t,r){if(Math.abs(1-o.Vector.magnitude(t))>1e-6)throw new Error("Math.abs(1 - Vector.magnitude(normal)) > 0.000001");var i=-o.Vector.dot(t,e);return r=r||(0,n.createNumbers)(4),o.Vector.set(r,t[0],t[1],t[2],i)},e.UNIT_X=(0,n.createNumbers)(4,1,0,0,0),e.UNIT_Y=(0,n.createNumbers)(4,0,1,0,0),e.UNIT_Z=(0,n.createNumbers)(4,0,0,1,0)}(t.Plane||(t.Plane={}))},6960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectionMatrix=void 0;var n,o,i=r(6800);n=t.ProjectionMatrix||(t.ProjectionMatrix={}),(o=n.Perspective||(n.Perspective={})).compute=function(e,t,r,n,o){if(r<=0||n<=0||e<=0||e>=Math.PI)throw new Error("near <= 0 || far <= 0 || fovY <= 0 || fovY >= Math.PI");var a=1/Math.tan(.5*e),s=a/t,c=(n+r)/(r-n),u=2*n*r/(r-n);return(o=o||(0,i.createNumbers)(16))[0]=s,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=a,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=c,o[11]=-1,o[12]=0,o[13]=0,o[14]=u,o[15]=0,o},o.getSseDenominator=function(e){return 2/e[5]},o.getPerspectiveParams=function(e){var t=e,r=t[10],n=(r-1)/(r+1),o=t[14]*(n-1)/(-2*n),i=n*o,a=2*o/t[0],s=(a+t[8]*a)/2,c=s-a,u=2*o/t[5],l=(u+t[9]*u)/2;return{n:o,f:i,r:s,l:c,t:l,b:l-u}},o.resetNearFar=function(e,t,r,n,o,i,a,s){var c=e/a;return{l:r*=c,r:n*=c,b:o*=c,t:i*=c,n:a=e,f:t}},o.getFovAndAspectRatio=function(e,t,r,n,o,i){var a=(e+t)/2,s=(r+n)/2,c=t-a,u=n-s,l=2*Math.atan(c/o),f=2*Math.atan(u/o);return{xOffset:a,yOffset:s,fov:l>f?l:f,hFov:l,vFov:f,aspectRatio:c/u}}},4548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Quaternion=void 0;var n=r(6800),o=r(443),i=r(714),a=r(1812),s=r(1250);!function(e){var t=(0,n.createNumbers)(3);function r(e,r,i){var a=r/2,s=Math.sin(a);o.Vector.normalize(e,t);var c=t[0]*s,u=t[1]*s,l=t[2]*s,f=Math.cos(a);return i=i||(0,n.createNumbers)(4),o.Vector.clone([c,u,l,f],i),i}e.fromAxisAngle=r;var c=(0,n.createNumbers)(3,1,2,0),u=(0,n.createNumbers)(3);function l(e,t){var r,o,i,s,l,f=e[a.Matrix3.COLUMN0ROW0],p=e[a.Matrix3.COLUMN1ROW1],d=e[a.Matrix3.COLUMN2ROW2],h=f+p+d;if(h>0)l=.5*(r=Math.sqrt(h+1)),r=.5/r,o=(e[a.Matrix3.COLUMN1ROW2]-e[a.Matrix3.COLUMN2ROW1])*r,i=(e[a.Matrix3.COLUMN2ROW0]-e[a.Matrix3.COLUMN0ROW2])*r,s=(e[a.Matrix3.COLUMN0ROW1]-e[a.Matrix3.COLUMN1ROW0])*r;else{var v=c,y=0;p>f&&(y=1),d>f&&d>p&&(y=2);var _=v[y],b=v[_];r=Math.sqrt(e[a.Matrix3.getElementIndex(y,y)]-e[a.Matrix3.getElementIndex(_,_)]-e[a.Matrix3.getElementIndex(b,b)]+1);var g=u;g[y]=.5*r,r=.5/r,l=(e[a.Matrix3.getElementIndex(b,_)]-e[a.Matrix3.getElementIndex(_,b)])*r,g[_]=(e[a.Matrix3.getElementIndex(_,y)]+e[a.Matrix3.getElementIndex(y,_)])*r,g[b]=(e[a.Matrix3.getElementIndex(b,y)]+e[a.Matrix3.getElementIndex(y,b)])*r,o=-g[0],i=-g[1],s=-g[2]}return t?(t[0]=o,t[1]=i,t[2]=s,t[3]=l,t):(0,n.createNumbers)(4,o,i,s,l)}e.fromRotationMatrix3=l;var f=(0,n.createNumbers)(9);e.fromRotationMatrix4=function(e,t){return l(s.Matrix4.getMatrix3(e,f),t)},e.multiply=function(e,t,r){var n=e[0],i=e[1],a=e[2],s=e[3],c=t[0],u=t[1],l=t[2],f=t[3],p=s*c+n*f+i*l-a*u,d=s*u-n*l+i*f+a*c,h=s*l+n*u-i*c+a*f,v=s*f-n*c-i*u-a*l;return o.Vector.set(r,p,d,h,v)};var p=(0,n.createNumbers)(3);e.rotationTo=function(e,t,n){var a=o.Vector.dot(e,t);return a<-.999999?(i.Vector3.cross(i.Vector3.UNIT_X,e,p),o.Vector.magnitudeSquared(p)<.001&&i.Vector3.cross(i.Vector3.UNIT_Y,e,p),o.Vector.normalize(p,p),r(p,Math.PI,n)):a>.999999?o.Vector.set(n,0,0,0,1):(i.Vector3.cross(e,t,p),n=o.Vector.set(n,p[0],p[1],p[2],1+a),o.Vector.normalize(n,n))};var d=(0,n.createNumbers)(4);e.lerp=function(e,t,r,n){return o.Vector.multiplyByScalar(t,r,d),n=o.Vector.multiplyByScalar(e,1-r,n),o.Vector.add(d,n,n)};var h=(0,n.createNumbers)(4),v=(0,n.createNumbers)(4),y=(0,n.createNumbers)(4);e.slerp=function(e,t,r,n){var i=o.Vector.dot(e,t),a=t;if(i<0&&(i=-i,a=o.Vector.negate(t,h)),1-i<1e-6)return o.Vector.lerp(e,a,r,n);var s=Math.acos(i);return o.Vector.multiplyByScalar(e,Math.sin((1-r)*s),v),o.Vector.multiplyByScalar(a,Math.sin(r*s),y),n=o.Vector.add(v,y,n),o.Vector.multiplyByScalar(n,1/Math.sin(s),n)}}(t.Quaternion||(t.Quaternion={}))},6150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ray=void 0;var n,o=r(443);(n=t.Ray||(t.Ray={})).getOrigin=function(e,t){return o.Vector.set(t,e[0],e[1],e[2])},n.getDirection=function(e,t){return o.Vector.set(t,e[3],e[4],e[5])}},6109:(e,t)=>{"use strict";var r,n,o,i,a,s,c,u,l;Object.defineProperty(t,"__esModule",{value:!0}),t.Tween=void 0,(r=t.Tween||(t.Tween={})).Linear=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*e/n+t},(l=r.Quad||(r.Quad={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*(e/=n)*e+t},l.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),-r*(e/=n)*(e-2)+t},l.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},(u=r.Cubic||(r.Cubic={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*(e/=n)*e*e+t},u.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*((e=e/n-1)*e*e+1)+t},u.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t},(c=r.Quart||(r.Quart={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*(e/=n)*e*e*e+t},c.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),-r*((e=e/n-1)*e*e*e-1)+t},c.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n/2)<1?r/2*e*e*e*e+t:-r/2*((e-=2)*e*e*e-2)+t},(s=r.Quint||(r.Quint={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*(e/=n)*e*e*e*e+t},s.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*((e=e/n-1)*e*e*e*e+1)+t},s.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n/2)<1?r/2*e*e*e*e*e+t:r/2*((e-=2)*e*e*e*e+2)+t},(a=r.Sine||(r.Sine={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),-r*Math.cos(e/n*(Math.PI/2))+r+t},a.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*Math.sin(e/n*(Math.PI/2))+t},a.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),-r/2*(Math.cos(Math.PI*e/n)-1)+t},(i=r.Expo||(r.Expo={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),0==e?t:r*Math.pow(2,10*(e/n-1))+t},i.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),e==n?t+r:r*(1-Math.pow(2,-10*e/n))+t},i.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),0==e?t:e==n?t+r:(e/=n/2)<1?r/2*Math.pow(2,10*(e-1))+t:r/2*(2-Math.pow(2,-10*--e))+t},(o=r.Circ||(r.Circ={})).easeIn=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),-r*(Math.sqrt(1-(e/=n)*e)-1)+t},o.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),r*Math.sqrt(1-(e=e/n-1)*e)+t},o.easeInOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+t:r/2*(Math.sqrt(1-(e-=2)*e)+1)+t},(n=r.Bounce||(r.Bounce={})).easeIn=function(e,t,n,o){return void 0===t&&(t=0),void 0===n&&(n=1),void 0===o&&(o=1),n-r.Bounce.easeOut(o-e,0,n,o)+t},n.easeOut=function(e,t,r,n){return void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=1),(e/=n)<1/2.75?r*(7.5625*e*e)+t:e<2/2.75?r*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?r*(7.5625*(e-=2.25/2.75)*e+.9375)+t:r*(7.5625*(e-=2.625/2.75)*e+.984375)+t},n.easeInOut=function(e,t,n,o){return void 0===t&&(t=0),void 0===n&&(n=1),void 0===o&&(o=1),e<o/2?.5*r.Bounce.easeIn(2*e,0,n,o)+t:.5*r.Bounce.easeOut(2*e-o,0,n,o)+.5*n+t}},443:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;var o=r(6800);!function(e){function t(e,t){for(var r=e.length,n=0;n<r;++n)if(!t(e[n],n))return!1;return!0}function r(e,t,r){for(var n=e.length,o=r,i=0;i<n;++i)o=t(o,e[i],i);return o}e.set=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(e=e||(0,o.createNumbers)(t.length),t.length>e.length)throw new Error("args.length > target.length");return e instanceof Float64Array?e.set(t):w(t,e),e},e.every=t,e.reduce=r,e.itr=function(e){var t;return n(this,(function(r){switch(r.label){case 0:t=0,r.label=1;case 1:return t<e.length?[4,e[t]]:[3,4];case 2:r.sent(),r.label=3;case 3:return++t,[3,1];case 4:return[2]}}))};var i,a=function(e,t){return e+t*t};function s(e){return r(e,a,0)}e.magnitudeSquared=s,e.magnitude=function(e){var t=s(e);return Math.sqrt(t)},e.isNormalized=function(e,t){void 0===t&&(t=1e-5);var r=s(e);return Math.abs(r-1)<t};var c,u=function(e,t,r){return e+t*i[r]};e.dot=function(e,t){return _(e,t),i=t,r(e,u,0)};var l,f=function(e,t,r){return e+(t-c[r])*(t-c[r])};function p(e,t){return _(e,t),c=t,r(e,f,0)}e.distanceSquared=p,e.distance=function(e,t){return Math.sqrt(p(e,t))};var d,h,v=function(e,t){return e===l[t]};e.equals=function(e,r){return _(e,r),l=r,t(e,v)};var y=function(e,t){return Math.abs(e-d[t])<h};function _(e,t){if(e.length!==t.length)throw new Error("left.length !== right.length")}function b(e,t,r){var n=e.length;_(e,r=r||(0,o.createNumbers)(n));for(var i=0;i<n;++i)r[i]=t(e[i],i);return r}function g(e,t,r,n){_(e,t),n&&_(e,n);var i=e.length;n=n||(0,o.createNumbers)(i);for(var a=0;a<i;++a)n[a]=r(e[a],t[a]);return n}e.equalsEpsilon=function(e,r,n){return void 0===n&&(n=0),_(e,r),d=r,h=n,t(e,y)},e.op1=b,e.op2=g;var m=function(e){return e};function w(e,t){return b(e,m,t)}e.clone=w;var O=0,P=function(e,t){return e*O};function j(e,t,r){return O=t,b(e,P,r)}e.multiplyByScalar=j,e.normalize=function(e,t,r){void 0===r&&(r=0);var n=s(e);if(!(n<=r))return j(e,1/Math.sqrt(n),t)},e.negate=function(e,t){return j(e,-1,t)};var E=function(e){return Math.abs(e)};e.abs=function(e,t){return b(e,E,t)};var x=function(e){return e-Math.floor(e)};e.fract=function(e,t){return b(e,x,t)};var C=function(e,t){return e-t};e.subtract=function(e,t,r){return g(e,t,C,r)};var S=function(e,t){return e+t};e.add=function(e,t,r){return g(e,t,S,r)};var T=function(e,t){return e*t};e.multiply=function(e,t,r){return g(e,t,T,r)};var F,M=function(e,t){return e/t};e.divide=function(e,t,r){return g(e,t,M,r)};var A=function(e,t){return e*(1-F)+t*F};e.lerp=function(e,t,r,n){return F=r,g(e,t,A,n)}}(t.Vector||(t.Vector={}))},714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector3=void 0;var n,o=r(6800),i=r(443);(n=t.Vector3||(t.Vector3={})).cross=function(e,t,r){var n=e[0],o=e[1],a=e[2],s=t[0],c=t[1],u=t[2],l=o*u-a*c,f=a*s-n*u,p=n*c-o*s;return i.Vector.set(r,l,f,p)},n.getOrthogonalityVector=function(e,t,r,o){if(!i.Vector.isNormalized(e))throw new Error("!Vector.isNormalized(constVector)");if(!(r=i.Vector.isNormalized(t)?i.Vector.clone(t,r):i.Vector.normalize(t,r)))throw new Error("vectorToFix is [0, 0, 0]!");return r=n.cross(e,r,r),i.Vector.normalize(r,r),o&&i.Vector.clone(r,o),n.cross(r,e,r),i.Vector.normalize(r,r)},n.UNIT_X=Object.freeze([1,0,0]),n.UNIT_Y=Object.freeze([0,1,0]),n.UNIT_Z=Object.freeze([0,0,1]),n.ZERO=Object.freeze([0,0,0]),n.ONE=Object.freeze([1,1,1]),n.SCRATCH0=(0,o.createNumbers)(3),n.SCRATCH1=(0,o.createNumbers)(3),n.SCRATCH2=(0,o.createNumbers)(3),n.SCRATCH3=(0,o.createNumbers)(3),n.SCRATCH4=(0,o.createNumbers)(3),n.SCRATCH5=(0,o.createNumbers)(3),n.SCRATCH6=(0,o.createNumbers)(3),n.SCRATCH7=(0,o.createNumbers)(3),n.SCRATCH8=(0,o.createNumbers)(3),n.SCRATCH9=(0,o.createNumbers)(3)},6283:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Vector4=void 0;var i=r(6800),a=r(443),s=(0,i.createNumbers)(4,1,255,65025,16581375),c=(0,i.createNumbers)(4,1/255,1/255,1/255,0),u=(0,i.createNumbers)(4,1,1/255,1/65025,1/16581375),l=(0,i.createNumbers)(4);!function(e){e.packDepth=function(e,t){if(e<0||e>1)throw new Error("depth < 0 || depth > 1");if(1===e)return a.Vector.set(t,1,0,0,0);t=a.Vector.multiplyByScalar(s,e,t),a.Vector.fract(t,t);var r=a.Vector.set(l,t[1],t[2],t[3],t[3]);return a.Vector.multiply(r,c,r),a.Vector.subtract(t,r,t)},e.unpackDepth=function(e){return a.Vector.dot(e,u)};var t=new Uint32Array(1),r=new Uint8Array(t.buffer);e.uint32ToFourUint8s=function(e,i){if(e>4294967295)throw new Error("uint32Number(".concat(e,") > 0xFFFFFFFF"));return t[0]=e,a.Vector.set.apply(a.Vector,o([i],n(r),!1))},e.fourUint8sToUint32=function(e){return a.Vector.clone(e,r),t[0]},e.ONE=(0,i.createNumbers)(4,1,1,1,1),e.ZERO=(0,i.createNumbers)(4,0,0,0,0)}(t.Vector4||(t.Vector4={}))},8392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewMatrix=void 0;var n=r(1812),o=r(1250),i=r(6800),a=r(4548),s=r(443),c=r(714),u=(0,i.createNumbers)(3),l=(0,i.createNumbers)(3),f=(0,i.createNumbers)(3);!function(e){function t(e,t,r,n,o){return(o=o||(0,i.createNumbers)(16))[0]=n[0],o[1]=r[0],o[2]=-t[0],o[3]=0,o[4]=n[1],o[5]=r[1],o[6]=-t[1],o[7]=0,o[8]=n[2],o[9]=r[2],o[10]=-t[2],o[11]=0,o[12]=-s.Vector.dot(n,e),o[13]=-s.Vector.dot(r,e),o[14]=s.Vector.dot(t,e),o[15]=1,o}e.computeView=t;var r=(0,i.createNumbers)(3),p=(0,i.createNumbers)(3),d=(0,i.createNumbers)(3);function h(e,n,o){var i=r,a=p,c=d,u=n;return s.Vector.set(i,-u[6],-u[7],-u[8]),s.Vector.set(a,u[3],u[4],u[5]),s.Vector.set(c,u[0],u[1],u[2]),t(e,i,a,c,o)}e.fromRotationMatrix3AndPosition=h;var v=(0,i.createNumbers)(9);e.fromRotationQuatAndPosition=function(e,t,r){return n.Matrix3.fromQuaternion(t,v),h(e,v,r)},e.lookAt=function(t,r,n,o){var i=s.Vector.subtract(r,t,u);if(!s.Vector.normalize(i,i))throw new Error("direction is undefined!");return c.Vector3.getOrthogonalityVector(i,n,f,l),e.computeView(t,i,f,l,o)},e.lookAtWithDirection=function(t,r,n,o){if(Math.abs(s.Vector.magnitudeSquared(r)-1)>1e-5)throw new Error("direction is not normalized!");return c.Vector3.getOrthogonalityVector(r,n,f,l),e.computeView(t,r,f,l,o)},e.getDirection=function(e,t){return s.Vector.set(t,-e[2],-e[6],-e[10])},e.getRight=function(e,t){return s.Vector.set(t,e[0],e[4],e[8])},e.getUp=function(e,t){return s.Vector.set(t,e[1],e[5],e[9])};var y=(0,i.createNumbers)(9);function _(e,t){(t=t||(0,i.createNumbers)(9))[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[1],t[4]=e[5],t[5]=e[9],t[6]=e[2],t[7]=e[6],t[8]=e[10]}e.getRotationQuat=function(e,t){return _(e,y),a.Quaternion.fromRotationMatrix3(y,t)},e.getRotationMatrix=_,e.getEye=function(e,t){var r=e,n=-r[0]*r[12]-r[1]*r[13]-r[2]*r[14],o=-r[4]*r[12]-r[5]*r[13]-r[6]*r[14],i=-r[8]*r[12]-r[9]*r[13]-r[10]*r[14];return s.Vector.set(t,n,o,i)};var b=(0,i.createNumbers)(3);e.distanceFromEye=function(e,t){return-o.Matrix4.affineMultiplyByPoint(e,t,b)[2]},e.ratioScreenToWorldSpace=function(e,t,r){return t[3]*e[5]*.5/r};var g=(0,i.createNumbers)(4),m=(0,i.createNumbers)(3),w=(0,i.createNumbers)(16),O=(0,i.createNumbers)(16),P=(0,i.createNumbers)(16);e.rotateWithAxis=function(e,t,r,n,c){return c=c||(0,i.createNumbers)(16),o.Matrix4.fromTranslation(t,w),s.Vector.negate(t,m),o.Matrix4.fromTranslation(m,O),a.Quaternion.fromAxisAngle(r,-n,g),o.Matrix4.fromRotateQuatAndTranslation(g,void 0,P),o.Matrix4.continuousMultiply(c,e,w,P,O)},e.computeOrthographicOffCenter=function(e,t,r,n,o,a,s){var c=1/(t-e),u=1/(n-r),l=1/(a-o),f=-(t+e)*c,p=-(n+r)*u,d=-(a+o)*l;return c*=2,u*=2,l*=-2,(s=s||(0,i.createNumbers)(16))[0]=c,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=u,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=l,s[11]=0,s[12]=f,s[13]=p,s[14]=d,s[15]=1,s}}(t.ViewMatrix||(t.ViewMatrix={}))},1373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=void 0,t.clamp=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e<t?t:e>r?r:e}},4866:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8721),t),o(r(1373),t),o(r(7195),t),o(r(7839),t),o(r(3114),t),o(r(7149),t),o(r(1812),t),o(r(1250),t),o(r(6800),t),o(r(7987),t),o(r(3228),t),o(r(6960),t),o(r(4548),t),o(r(6150),t),o(r(6109),t),o(r(443),t),o(r(714),t),o(r(6283),t),o(r(8392),t)},7149:function(e,t,r){"use strict";this&&this.__read,this&&this.__spreadArray,Object.defineProperty(t,"__esModule",{value:!0}),t.Kriging=void 0;var n=r(8529);function o(e,t){return e.resize(8*t),new Float64Array(e.arrayBuffer,0,t)}function i(e,t,r){var n=r;if(n.length!==t*t)throw new Error("Z.length !== n * n");n.fill(0);for(var o=0;o<t;o++)n[o*t+o]=e;return n}function a(e,t,r,n,o){var i,a,s=o;if(s.length!==r*n)throw new Error("Z.length !== n * m");for(i=0;i<r;i++)for(a=0;a<n;a++)s[i*n+a]=e[i*n+a]+t[i*n+a];return s}function s(e,t,r,n,o,i){var a,s,c,u=i;if(u.length!==r*o)throw new Error("Z.length !== n * p");for(a=0;a<r;a++)for(s=0;s<o;s++)for(u[a*o+s]=0,c=0;c<n;c++)u[a*o+s]+=e[a*n+c]*t[c*o+s];return u}var c=new n.ScalableBuffer;function u(e,t){var r,n,i,a=o(c,t);for(r=0;r<t;r++)a[r]=e[r*t+r];for(r=0;r<t;r++){for(n=0;n<r;n++)a[r]-=e[r*t+n]*e[r*t+n];if(a[r]<=0)return!1;for(a[r]=Math.sqrt(a[r]),n=r+1;n<t;n++){for(i=0;i<r;i++)e[n*t+r]-=e[n*t+i]*e[r*t+i];e[n*t+r]/=a[r]}}for(r=0;r<t;r++)e[r*t+r]=a[r];return!0}function l(e,t){var r,n,o,i;for(r=0;r<t;r++)for(e[r*t+r]=1/e[r*t+r],n=r+1;n<t;n++){for(i=0,o=r;o<n;o++)i-=e[n*t+o]*e[o*t+r];e[n*t+r]=i/e[n*t+n]}for(r=0;r<t;r++)for(n=r+1;n<t;n++)e[r*t+n]=0;for(r=0;r<t;r++){for(e[r*t+r]*=e[r*t+r],o=r+1;o<t;o++)e[r*t+r]+=e[o*t+r]*e[o*t+r];for(n=r+1;n<t;n++)for(o=n;o<t;o++)e[r*t+n]+=e[o*t+r]*e[o*t+n]}for(r=0;r<t;r++)for(n=0;n<r;n++)e[r*t+n]=e[n*t+r]}var f=new n.ScalableBuffer,p=new n.ScalableBuffer,d=new n.ScalableBuffer,h=new n.ScalableBuffer;function v(e,t){var r,n,i,a,s,c,u,l,v,y=t,_=o(f,t*t),b=o(p,t),g=o(d,t),m=o(h,t),w=0,O=0;for(r=0;r<t;r++)for(n=0;n<t;n++)_[r*t+n]=r==n?1:0;for(n=0;n<t;n++)m[n]=0;for(r=0;r<t;r++){for(c=0,n=0;n<t;n++)if(1!=m[n])for(i=0;i<t;i++)0==m[i]&&Math.abs(e[n*t+i])>=c&&(c=Math.abs(e[n*t+i]),O=n,w=i);if(++m[w],O!=w){for(a=0;a<t;a++)v=e[O*t+a],e[O*t+a]=e[w*t+a],e[w*t+a]=v;for(a=0;a<y;a++)v=_[O*t+a],_[O*t+a]=_[w*t+a],_[w*t+a]=v}if(g[r]=O,b[r]=w,0==e[w*t+w])return!1;for(l=1/e[w*t+w],e[w*t+w]=1,a=0;a<t;a++)e[w*t+a]*=l;for(a=0;a<y;a++)_[w*t+a]*=l;for(s=0;s<t;s++)if(s!=w){for(u=e[s*t+w],e[s*t+w]=0,a=0;a<t;a++)e[s*t+a]-=e[w*t+a]*u;for(a=0;a<y;a++)_[s*t+a]-=_[w*t+a]*u}}for(a=t-1;a>=0;a--)if(g[a]!=b[a])for(i=0;i<t;i++)v=e[i*t+g[a]],e[i*t+g[a]]=e[i*t+b[a]],e[i*t+b[a]]=v;return!0}function y(e,t,r,n,o){return t+(n-t)/r*(1-Math.exp(-1/o*Math.pow(e/r,2)))}function _(e,t,r,n,o){return t+(n-t)/r*(1-Math.exp(-1/o*(e/r)))}function b(e,t,r,n,o){return e>r?t+(n-t)/r:t+(n-t)/r*(e/r*1.5-.5*Math.pow(e/r,3))}function g(e,t){var r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(r*r+n*n+o*o)}!function(e){var t=new n.ScalableBuffer,r=new n.ScalableBuffer,c=new n.ScalableBuffer,f=new n.ScalableBuffer,p=new n.ScalableBuffer,d=new n.ScalableBuffer,h=new n.ScalableBuffer,m=new n.ScalableBuffer,w=new n.ScalableBuffer,O=new n.ScalableBuffer,P=new n.ScalableBuffer,j=new n.ScalableBuffer,E=new n.ScalableBuffer,x=[];e.train=function(e,n,C,S,T,F,M,A){var k;switch(T){case"gaussian":k=y;break;case"exponential":k=_;break;case"spherical":k=b}var D,R,I,N,V={t:e,x:n,y:C,z:S,nugget:0,range:0,sill:0,A:1/3,n:0,model:k},B=e.length,L=x;for(L.length=(B*B-B)/2,D=0,I=0;D<B;D++)for(R=0;R<D;R++,I++)L[I]=L[I]||[0,0],L[I][0]=g([n[D],C[D],S[D]],[n[R],C[R],S[R]]),L[I][1]=Math.abs(e[D]-e[R]);L.sort((function(e,t){return e[0]-t[0]})),V.range=L[(B*B-B)/2-1][0];var U=(B*B-B)/2>30?30:(B*B-B)/2,W=V.range/U,z=o(j,U);z.fill(0);var H=o(E,U);if(H.fill(0),U<30)for(N=0;N<U;N++)z[N]=L[N][0],H[N]=L[N][1];else{for(D=0,R=0,I=0,N=0;D<U&&R<(B*B-B)/2;D++,I=0){for(;L[R][0]<=(D+1)*W&&(z[N]+=L[R][0],H[N]+=L[R][1],I++,!(++R>=(B*B-B)/2)););I>0&&(z[N]/=I,H[N]/=I,N++)}if(N<2)return V}B=N,V.range=z[B-1]-z[0];var G=o(t,2*B);G.fill(1);var J=o(r,B),Y=V.A;for(D=0;D<B;D++){switch(T){case"gaussian":G[2*D+1]=1-Math.exp(-1/Y*Math.pow(z[D]/V.range,2));break;case"exponential":G[2*D+1]=1-Math.exp(-1/Y*z[D]/V.range);break;case"spherical":G[2*D+1]=z[D]/V.range*1.5-.5*Math.pow(z[D]/V.range,3)}J[D]=H[D]}var q=function(e,t,r,n){var o,i,a=n;if(a.length!==2*t)throw new Error("Z.length !== m * n");for(o=0;o<t;o++)for(i=0;i<2;i++)a[i*t+o]=e[2*o+i];return a}(G,B,0,o(c,2*B)),X=s(q,G,2,B,2,o(f,4)),K=(X=a(X,i(1/M,2,o(h,4)),2,2,o(p,4))).slice(0);u(X,2)?l(X,2):(v(K,2),X=K);var Q=s(s(X,q,2,2,B,o(w,2*B)),J,2,B,1,o(m,2));V.nugget=Q[0],V.sill=Q[1]*V.range+V.nugget,V.n=n.length,B=n.length;var Z=o(d,B*B);for(D=0;D<B;D++){for(R=0;R<D;R++)Z[D*B+R]=V.model(Math.pow(Math.pow(n[D]-n[R],2)+Math.pow(C[D]-C[R],2),.5),V.nugget,V.range,V.sill,V.A),Z[R*B+D]=Z[D*B+R];Z[D*B+D]=V.model(0,V.nugget,V.range,V.sill,V.A)}var $=a(Z,i(F,B,o(P,B*B)),B,B,o(O,B*B)),ee=$.slice(0);if(u($,B)?l($,B):(v(ee,B),$=ee),A.length!==B)throw new Error("mResult.length !== n");return V.M=s($,e,B,B,1,A),V};var C=new n.ScalableBuffer,S=new n.ScalableBuffer;e.predict=function(e,t,r,n){var i,a=o(C,n.n);for(i=0;i<n.n;i++){var c=g([e,t,r],[n.x[i],n.y[i],n.z[i]]);a[i]=n.model(c,n.nugget,n.range,n.sill,n.A)}if(!n.M)throw new Error("!variogram.M");return s(a,n.M,1,n.n,1,o(S,1))[0]}}(t.Kriging||(t.Kriging={}))},4590:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationPlayer=void 0;var a=r(9824),s=r(7563),c=r(7563),u=r(588),l=function(e){function t(t){void 0===t&&(t=5e3);var r=e.call(this)||this;return r._animation=new a.Animation(t),r.dispose((function(){r.destroyAllChannels(),r._animation.destroy()})),r._player=new u.Player(t),r.dispose((function(){return r._player.destroy()})),r._initAnimation(),r._selectedChannelChanged=new c.Event,r}return o(t,e),Object.defineProperty(t.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new c.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(e){if(this._selectedChannel!==e){var t=this._selectedChannel;this._selectedChannel=e,this._selectedChannelChanged&&this._selectedChannelChanged.emit(e,t)}},enumerable:!1,configurable:!0}),t.prototype._initAnimation=function(){var e=this,t=this._animation,r=this._player;t.progressFunc=function(e){},this.dispose((function(){t.progressFunc=void 0,t.enterFunc=void 0,t.leaveFunc=void 0})),this.dispose(r.currentTimeChangedEvent.disposableOn((function(e,n){r.playing?t.currentTime=e:(t.currentTime=e,t.currentTime=Number.NaN)}))),this.dispose(r.startPlayingEvent.disposableOn((function(e){t.currentTime=e}))),this.dispose(r.stopPlayingEvent.disposableOn((function(e){t.currentTime=Number.NaN}))),this.dispose(this._animation.changedEvent.disposableOn((function(t){e._player.duration=t.duration})))},t.prototype.addChannel=function(){var e=new a.Channel(1e3,2e3);if(this._selectedChannel){var t=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(t+1,0,e)}else this._animation.channels.push(e);return e},t.prototype.removeChannel=function(){if(this._selectedChannel){var e=this._animation.channels.indexOf(this._selectedChannel);-1!==e&&(this._animation.channels.splice(e,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},t.prototype.raiseChannel=function(e){var t=this._animation.channels.indexOf(e);if(-1===t)console.warn("-1 === index");else if(0===t)console.warn("cannot raise current channel!");else{if(!(t>0))throw new Error("should not be here!");this._animation.channels.splice(t,1),this._animation.channels.splice(t-1,0,e)}},t.prototype.lowerChannel=function(e){var t=this._animation.channels.indexOf(e);if(-1===t)console.warn("-1 === index");else if(t===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(t>=0))throw new Error("should not be here!");this._animation.channels.splice(t,1),this._animation.channels.splice(t+1,0,e)}},t.prototype.destroyAllChannels=function(){var e,t,r=this._animation;if(r.hasChannels){try{for(var n=i(r.channels),o=n.next();!o.done;o=n.next()){var s=o.value;(0,a.destroyAnimationWithChildren)(s.animation)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.channels.length=0,this._selectedChannel=void 0}},t}(s.Destroyable);t.AnimationPlayer=l},9824:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.destroyAnimationWithChildren=t.Animation=t.Channel=void 0;var a=r(7563),s=r(8529),c=r(7563),u=0,l=function(e){function t(t,r){void 0===t&&(t=0),void 0===r&&(r=1e3);var n=e.call(this)||this;return n._startTime=Number.NaN,n._enabled=!0,n._animation=new f(r),n.dispose((function(){return n._animation.destroy()})),n.dispose((function(){n._changedEvent&&(n._changedEvent.reset(),n._changedEvent=void 0)})),n.startTime=t,n.dispose(n._animation.changedEvent.disposableOn((function(){n.changedEvent&&n.changedEvent.emit(n)}))),n}return o(t,e),Object.defineProperty(t.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new c.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startTime",{get:function(){return this._startTime},set:function(e){this._startTime!==e&&(this._startTime=e,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.Channel=l;var f=function(e){function t(t){void 0===t&&(t=0);var r=e.call(this)||this;return r._duration=t,r._currentTime=Number.NaN,r.dispose((function(){r._channels&&(r._channels.destroy(),r._channels=void 0),r.enterFunc=void 0,r.leaveFunc=void 0,r.progressFunc=void 0,r._changedEvent&&(r._changedEvent.reset(),r._changedEvent=void 0)})),r}return o(t,e),Object.defineProperty(t.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new c.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++u)),this._name},set:function(e){this._name!==e&&(this._name=e,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasChannels",{get:function(){return!(!this._channels||0===this._channels.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"channels",{get:function(){var e=this;if(!this._channels){var t=new WeakMap,r=new s.ObservableArray;this.dispose(r.toChangeEvent.disposableOn((function(r,n){for(var o=r.length,i=0;i<o;++i){var a=r[i];if(a.deleteCount>0)for(var s=a.start;s<a.deleteCount;++s){var c=n.get(s);if(!(d=t.get(c)))throw console.error("!disposeFunc"),new Error("!disposeFunc");d(),t.delete(c)}if(a.items.length>0)for(var u=a.items,l=u.length,f=0;f<l;++f){var p=u[f],d=p.changedEvent.disposableOn((function(t){e.recomputeDurationFromChildren(!1),e._changedEvent&&e._changedEvent.emit(e)}));t.set(p,d)}}return!0}))),this.dispose(r.changedEvent.disposableOn((function(){e.recomputeDurationFromChildren(!1),e._changedEvent&&e._changedEvent.emit(e)}))),this._channels=r}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},set:function(e){this._duration!==e&&(this._duration,this._duration=e,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),t.prototype.recomputeDurationFromChildren=function(e){void 0===e&&(e=!1);var t=this._channels;if(t&&t.length>0){for(var r=0,n=t.length,o=0;o<n;++o){var i=t.get(o),a=i.animation,s=i.startTime;e&&a.recomputeDurationFromChildren();var c=s+a.duration;r<c&&(r=c)}this.duration=r}},t.prototype.valid=function(e){return(e=null!=e?e:this._currentTime)>=0&&e<=this.duration},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime},set:function(e){if(this.valid(e)||(e=Number.NaN),Number.isNaN(e)&&Number.isNaN(this._currentTime));else if(this._currentTime!==e){var t=this._currentTime;if(Number.isNaN(e)?this.leaveFunc&&this.leaveFunc(t):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(e),this._currentTime=e,Number.isNaN(e)||this.progressFunc&&this.progressFunc(e,t),this._channels)for(var r=this._channels.length,n=0;n<r;++n){var o=this._channels.get(n),i=o.animation,a=o.startTime;if(o.enabled)if(Number.isNaN(e))i.currentTime=Number.NaN;else if(Number.isNaN(t)){var s=e-a;i.currentTime=s}else{var c=a+i.duration;s=e-a,e>t?(e<=a&&(i.currentTime=s),a>t&&a<=e&&(i.currentTime=0),e>a&&e<=c&&(i.currentTime=s),c>t&&c<=e&&(i.currentTime=i.duration),e>c&&(i.currentTime=s)):e<t&&(e>c&&(i.currentTime=s),c>t&&c<=e&&(i.currentTime=i.duration),e>a&&e<=c&&(i.currentTime=s),a>t&&a<=e&&(i.currentTime=0),e<=a&&(i.currentTime=s))}}}},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.Animation=f,t.destroyAnimationWithChildren=function e(t){var r,n;if(t.hasChannels)try{for(var o=i(t.channels),a=o.next();!a.done;a=o.next())e(a.value.animation)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.destroy()}},406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2517:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStops=void 0;var i=r(4866),a=r(7563),s=[0,0,0,0],c=function(){function e(){this._value=[],this._valueStr="[]",this.value=[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}return Object.defineProperty(e.prototype,"valueChanged",{get:function(){return this._valueChanged||(this._valueChanged=new a.Event),this._valueChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return JSON.parse(JSON.stringify(this._value))},set:function(e){if(0!==e.length){var t;if(this._value.length===e.length){var r=o([],n(e),!1).sort((function(e,t){return e.ratio-t.ratio}));if(t=JSON.stringify(r),this._valueStr===t)return}t=t||JSON.stringify(o([],n(e),!1).sort((function(e,t){return e.ratio-t.ratio})));var i=this._value;if(this._value=JSON.parse(t),0===this._value.length)throw console.error("this._colorStops.length === 0"),new Error("this._colorStops.length === 0");this._valueChanged&&this._valueChanged.emit(this._value,i)}else console.error("value.length === 0")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueStr",{get:function(){return this._valueStr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minRatio",{get:function(){return this._value[0].ratio},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxRatio",{get:function(){return this._value[this._value.length-1].ratio},enumerable:!1,configurable:!0}),e.prototype._getRatioIndex=function(e){if(e<this._value[0].ratio||e>this._value[this._value.length-1].ratio)throw console.error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio"),new Error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio");for(var t=this._value.length,r=0;r<t-1;++r)if(e>=this._value[r].ratio&&e<=this._value[r+1].ratio)return r;throw console.error("shoud not be here!"),new Error("shoud not be here!")},e.prototype.getRatioColor=function(e,t){e=(0,i.clamp)(e,this.minRatio,this.maxRatio);for(var r=this._getRatioIndex(e),n=this._value[r],o=this._value[r+1],a=(e-n.ratio)/(o.ratio-n.ratio),s=0;s<4;++s)t[s]=n.rgba[s]*(1-a)+o.rgba[s]*a;if(!t.some(Number.isNaN))return t;console.error("result NaN")},e.prototype.getColorsInUint8=function(e){if(e.length%4!=0)throw console.error("result.length % 4 !== 0"),new Error("result.length % 4 !== 0");for(var t=e.length/4,r=1/t,n=0;n<t;++n){var o=s;this.getRatioColor((n+.5)*r,o)||o.splice(0,4,0,0,0,0);for(var i=0;i<4;++i)e[4*n+i]=255*o[i]|0}return e},e}();t.ColorStops=c},5718:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ComplexImage=t.getTypeFromImageUri=void 0;var i=r(8529),a=r(8529),s=r(2750),c=r(8933),u=r(3620),l=r(5774),f=r(4211),p=r(7190),d=r(9661),h=r(9856);function v(e){var t=e.substring(e.lastIndexOf(".")+1);return y.suffixTypes[t]}t.getTypeFromImageUri=v;var y=function(e){function t(){var t=e.call(this)||this;return t._enabled=t.disposeVar((0,a.react)(!1)),t._uri=t.disposeVar((0,a.react)("")),t._type=t.disposeVar((0,a.react)(void 0)),t._size=t.disposeVar((0,a.reactArrayWithUndefined)(void 0)),t._pixelFormat=t.disposeVar((0,a.react)("RGBA")),t._flipY=t.disposeVar((0,a.react)(!0)),t._crossOriginReact=t.disposeVar((0,a.react)("")),t._autoplayReact=t.disposeVar((0,a.react)(!0)),t._loopReact=t.disposeVar((0,a.react)(!0)),t._copyTextureEvent=t.disposeVar(new i.Event),t._imageProcessingResettingEvent=t.disposeVar((0,i.createNextAnimateFrameEvent)(t.enabledChanged,t.uriChanged,t.typeChanged)),t._imageProcessingResetting=t.disposeVar(new s.ObjResettingWithEvent(t._imageProcessingResettingEvent,(function(){do{if(!t.enabled)break;if(!t.uri)break;var e=t.type;if(e||(e=v(t.uri)),!e)break;if("img"===e)return new c.ImageProcessing(t,t.uri);if("video"===e)return new f.VideoProcessing(t,t.uri);if("gif"===e)return new p.GifProcessing(t,t.uri);if("hls"===e)return new d.HlsProcessing(t,t.uri);if("flv"===e)return new h.FlvProcessing(t,t.uri)}while(0)}))),t._createNativeTextureEvent=t.disposeVar((0,i.createNextAnimateFrameEvent)(t.enabledChanged,t.sizeChanged,t.pixelFormatChanged,t.flipYChanged)),t}return o(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled.value},set:function(e){this._enabled.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri.value},set:function(e){this._uri.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uriChanged",{get:function(){return this._uri.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type.value},set:function(e){this._type.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeChanged",{get:function(){return this._type.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size.value},set:function(e){this._size.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeChanged",{get:function(){return this._size.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelFormat",{get:function(){return this._pixelFormat.value},set:function(e){this._pixelFormat.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pixelFormatChanged",{get:function(){return this._pixelFormat.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flipY",{get:function(){return this._flipY.value},set:function(e){this._flipY.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flipYChanged",{get:function(){return this._flipY.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"crossOrigin",{get:function(){return this._crossOriginReact.value},set:function(e){this._crossOriginReact.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"crossOriginChanged",{get:function(){return this._crossOriginReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoplay",{get:function(){return this._autoplayReact.value},set:function(e){this._autoplayReact.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoplayChanged",{get:function(){return this._autoplayReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loopReact.value},set:function(e){this._loopReact.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loopChanged",{get:function(){return this._loopReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyTextureEvent",{get:function(){return this._copyTextureEvent},enumerable:!1,configurable:!0}),t.prototype.copyTexture=function(e){this._createNativeTextureEvent.flush(),this._copyTextureEvent.emit(e)},Object.defineProperty(t.prototype,"imageProcessingResetting",{get:function(){return this._imageProcessingResetting},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"createNativeTextureEvent",{get:function(){return this._createNativeTextureEvent},enumerable:!1,configurable:!0}),t.prototype.copyFromCanvas=function(e){e.width<=0||e.height<=0?console.warn("canvas.width <= 0 || canvas.height <= 0"):(this.size=[e.width,e.height],this.pixelFormat="RGBA",this.copyTexture({source:e}))},t.types=l.complexImageTypes,t.czmPixelFormats=u.czmPixelFormats,t.suffixTypes={png:"img",jpg:"img",svg:"img",webp:"img",gif:"gif",mp4:"video",mov:"video",webm:"video",flv:"flv",m3u8:"hls"},t}(i.Destroyable);t.ComplexImage=y},5774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.complexImageTypes=void 0,t.complexImageTypes=["img","gif","video","flv","hls"]},3620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.czmPixelFormats=void 0,t.czmPixelFormats=["DEPTH_COMPONENT","DEPTH_STENCIL","ALPHA","RED","RG","RGB","RGBA","LUMINANCE","LUMINANCE_ALPHA","RGB_DXT1","RGBA_DXT1","RGBA_DXT3","RGBA_DXT5","RGB_PVRTC_4BPPV1","RGB_PVRTC_2BPPV1","RGBA_PVRTC_4BPPV1","RGBA_PVRTC_2BPPV1","RGBA_ASTC","RGB_ETC1","RGB8_ETC2","RGBA8_ETC2_EAC","RGBA_BC7"]},571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9856:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FlvProcessing=t.FlvJsLoading=void 0;var s=r(8529),c=r(1539),u=r(8861),l=r(2442),f=function(e){function t(){var r=e.call(this)||this;return r._loading=!1,r._loadedEvent=r.disposeVar(new s.Event),r._loaded=!1,r._loadedPromise=new Promise((function(e){r._loadedPromiseResolve=e})),r._processing=r.disposeVar((0,l.createProcessingFromAsyncFunc)((function(e){return i(r,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return r=u.SceneObject.context.getStrFromEnv(t.path),[4,e.promise((0,s.loadJs)(r))];case 2:n.sent(),n.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}}))}))}))),r._processingStart=r._processing.start(),r}return o(t,e),Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t.instance=function(){return t._instance=t._instance||new t,t._instance},t.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",t}(s.Destroyable);t.FlvJsLoading=f;var p=function(e){function t(t,r){var n=e.call(this)||this;n._complexImage=t,n._videoSrc=r;var o,i=document.createElement("video");return i.src=n._videoSrc,i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.zIndex="-100",i.style.visibility="hidden",(o=function(){i.crossOrigin=n._complexImage.crossOrigin})(),n.dispose(n._complexImage.crossOriginChanged.disposableOn(o)),(o=function(){i.autoplay=n._complexImage.autoplay})(),n.dispose(n._complexImage.autoplayChanged.disposableOn(o)),(o=function(){i.loop=n._complexImage.loop})(),n.dispose(n._complexImage.loopChanged.disposableOn(o)),i.muted=!0,document.body.appendChild(i),n._element=i,n.dispose((function(){return document.body.removeChild(i)})),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t}(s.Destroyable),d=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._videoSrc=r,n._videoDom=n.disposeVar(new p(n._complexImage,"")),n._processing=n.disposeVar((0,l.createProcessingFromAsyncFunc)((function(e){return i(n,void 0,void 0,(function(){var t,r,n,o;return a(this,(function(i){switch(i.label){case 0:return t=this.videoSrc,r=f.instance(),[4,e.promise(r.loadedPromise)];case 1:return i.sent(),n=window.flvjs,o=this.element,[4,(0,c.step)(e,(function(){return new Promise((function(e,r){if(n.isSupported()){var i=n.createPlayer({type:"flv",url:t});i.attachMediaElement(o),i.load(),i.play(),o.xbsjFlvPlayer=i}else r("flvjs不支持!")}))}))];case 2:return i.sent(),[2]}}))}))}))),n._processingStartup=n._processing.start(),n}return o(t,e),Object.defineProperty(t.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t}(s.Destroyable),h=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._imageUri=r,n._videoDom=n.disposeVar(new d(n._complexImage,n._imageUri)),n._update=n.disposeVar((0,c.createAnimateFrameWithStartValues)((function(){return n.update()}))),n._updateStart=n._update.start(),n}return o(t,e),Object.defineProperty(t.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!(this.videoElement.readyState<2)){var e=this._complexImage,t=this.videoElement,r=t.videoWidth,n=t.videoHeight;e.size=[r,n],e.pixelFormat="RGBA",e.copyTexture({source:this.videoElement})}},t}(s.Destroyable);t.FlvProcessing=h},7190:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GifProcessing=void 0;var i=r(7560),a=r(7563),s=r(1539),c=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._imageUri=r,n._gif=n.disposeVar(new i.Gif),n._update=n.disposeVar((0,s.createAnimateFrameWithStartValues)((function(){return n.update()}))),n._updateStart=n._update.start(),n._gif.url=n._imageUri,n}return o(t,e),Object.defineProperty(t.prototype,"gif",{get:function(){return this._gif},enumerable:!1,configurable:!0}),t.prototype.update=function(){var e=this,t=this._gif.player;if(t.gifFrames){var r,n=this._complexImage,o=t.gifCanvas,i=o.width,a=o.height;n.size=[i,a],n.pixelFormat="RGBA",n.copyTexture({source:t.gifCanvas}),(r=function(){t.autoPlayOnLoad=e._complexImage.autoplay})(),this.dispose(this._complexImage.autoplayChanged.disposableOn(r)),(r=function(){t.loop=e._complexImage.loop})(),this.dispose(this._complexImage.loopChanged.disposableOn(r))}},t}(a.Destroyable);t.GifProcessing=c},9661:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.HlsProcessing=t.HlsJsLoading=void 0;var s=r(8529),c=r(1539),u=r(8861),l=r(2442),f=function(e){function t(){var r=e.call(this)||this;return r._loading=!1,r._loadedEvent=r.disposeVar(new s.Event),r._loaded=!1,r._loadedPromise=new Promise((function(e){r._loadedPromiseResolve=e})),r._processing=r.disposeVar((0,l.createProcessingFromAsyncFunc)((function(e){return i(r,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return this._loading=!0,window.Hls?(console.info("可能系统已经加载hlsjs,此处不再加载!"),[3,3]):[3,1];case 1:return r=u.SceneObject.context.getStrFromEnv(t.path),[4,e.promise((0,s.loadJs)(r))];case 2:n.sent(),n.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}}))}))}))),r._processingStart=r._processing.start(),r}return o(t,e),Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t.instance=function(){return t._instance=t._instance||new t,t._instance},t.path="${xr-utils-script-dir}/xr-static/xr-utils/hlsjs/1.4.12/hls.min.js",t}(s.Destroyable);t.HlsJsLoading=f;var p=function(e){function t(t,r){var n=e.call(this)||this;n._complexImage=t,n._videoSrc=r;var o,i=document.createElement("video");return i.src=n._videoSrc,i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.zIndex="-100",i.style.visibility="hidden",(o=function(){i.crossOrigin=n._complexImage.crossOrigin})(),n.dispose(n._complexImage.crossOriginChanged.disposableOn(o)),(o=function(){i.autoplay=n._complexImage.autoplay})(),n.dispose(n._complexImage.autoplayChanged.disposableOn(o)),(o=function(){i.loop=n._complexImage.loop})(),n.dispose(n._complexImage.loopChanged.disposableOn(o)),i.muted=!0,document.body.appendChild(i),n._element=i,n.dispose((function(){return document.body.removeChild(i)})),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t}(s.Destroyable),d=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._videoSrc=r,n._videoDom=n.disposeVar(new p(n._complexImage,"")),n._processing=n.disposeVar((0,l.createProcessingFromAsyncFunc)((function(e){return i(n,void 0,void 0,(function(){var t,r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return t=this.videoSrc,r=f.instance(),[4,e.promise(r.loadedPromise)];case 1:return a.sent(),n=window.Hls,o=new n,i=this.element,[4,(0,c.step)(e,(function(){return new Promise((function(e,r){i.xbsjHLS=o,o.attachMedia(i),o.on(n.Events.MEDIA_ATTACHED,(function(){o.loadSource(t),o.on(n.Events.MANIFEST_PARSED,(function(t,r){i.play(),e()}))})),o.on(n.Events.ERROR,(function(e,t){t.type;var n=t.details;t.fatal&&(o.destroy(),r(n))}))}))}))];case 2:return a.sent(),[2]}}))}))}))),n._processingStartup=n._processing.start(),n}return o(t,e),Object.defineProperty(t.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t}(s.Destroyable),h=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._imageUri=r,n._videoDom=n.disposeVar(new d(n._complexImage,n._imageUri)),n._update=n.disposeVar((0,c.createAnimateFrameWithStartValues)((function(){return n.update()}))),n._updateStart=n._update.start(),n}return o(t,e),Object.defineProperty(t.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!(this.videoElement.readyState<2)){var e=this._complexImage,t=this.videoElement,r=t.videoWidth,n=t.videoHeight;e.size=[r,n],e.pixelFormat="RGBA",e.copyTexture({source:this.videoElement})}},t}(s.Destroyable);t.HlsProcessing=h},8933:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageProcessing=void 0;var s=r(8529),c=r(2442),u=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._imageUri=r,n._processing=n.disposeVar((0,c.createProcessingFromAsyncFunc)((function(e){return i(n,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return t=this._complexImage,[4,e.promise((0,s.fetchImage)(this._imageUri,this._complexImage.crossOrigin))];case 1:return(r=n.sent())?(r instanceof HTMLImageElement&&(t.size=[r.naturalWidth,r.naturalHeight],t.pixelFormat="RGBA",t.copyTexture({source:r})),[2]):[2]}}))}))}))),n._processingStart=n._processing.start(),n}return o(t,e),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t}(s.Destroyable);t.ImageProcessing=u},4211:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoProcessing=void 0;var i=r(8529),a=r(1539),s=function(e){function t(t,r){var n=e.call(this)||this;n._complexImage=t,n._videoSrc=r;var o,i=document.createElement("video");return i.src=n._videoSrc,i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.zIndex="-100",i.style.visibility="hidden",i.style.width="0px",i.style.height="0px",(o=function(){i.crossOrigin=n._complexImage.crossOrigin})(),n.dispose(n._complexImage.crossOriginChanged.disposableOn(o)),(o=function(){i.autoplay=n._complexImage.autoplay})(),n.dispose(n._complexImage.autoplayChanged.disposableOn(o)),(o=function(){i.loop=n._complexImage.loop})(),n.dispose(n._complexImage.loopChanged.disposableOn(o)),i.muted=!0,document.body.appendChild(i),n._element=i,n.dispose((function(){return document.body.removeChild(i)})),n}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t}(i.Destroyable),c=function(e){function t(t,r){var n=e.call(this)||this;return n._complexImage=t,n._imageUri=r,n._videoDom=n.disposeVar(new s(n._complexImage,n._imageUri)),n._update=n.disposeVar((0,a.createAnimateFrameWithStartValues)((function(){return n.update()}))),n._updateStart=n._update.start(),n}return o(t,e),Object.defineProperty(t.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(!(this.videoElement.readyState<2)){var e=this._complexImage,t=this.videoElement,r=t.videoWidth,n=t.videoHeight;e.size=[r,n],e.pixelFormat="RGBA",e.copyTexture({source:this.videoElement})}},t}(i.Destroyable);t.VideoProcessing=c},7599:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5718),t),o(r(5774),t),o(r(3620),t),o(r(571),t),o(r(8933),t),o(r(4211),t),o(r(7190),t),o(r(9661),t),o(r(9856),t)},6507:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof u?u(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGetLocalFilePath=t.defaultLocalFileServer=t.LocalFileServer=t.LocalRootDir=t.getFileArrayBuffer=t.getFileJson=t.getFileText=t.getSubEntriesFromDir=void 0;var l=r(7563);function f(e){var t,r,n,o;return i(this,void 0,void 0,(function(){var i,u,l,f,p,d,h,v,y,_,b;return a(this,(function(a){switch(a.label){case 0:i=[],u=[],l=e.entries(),a.label=1;case 1:a.trys.push([1,6,7,12]),f=!0,p=s(l),a.label=2;case 2:return[4,p.next()];case 3:if(d=a.sent(),t=d.done)return[3,5];o=d.value,f=!1;try{h=c(o,2),v=h[0],y=h[1],"file"===(_=y).kind?i.push(v):"directory"===_.kind&&u.push(v)}finally{f=!0}a.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return b=a.sent(),r={error:b},[3,12];case 7:return a.trys.push([7,,10,11]),f||t||!(n=p.return)?[3,9]:[4,n.call(p)];case 8:a.sent(),a.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:return[2,{files:i,dirs:u}]}}))}))}function p(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.getFile()];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()]}}))}))}function d(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,p(e)];case 1:t=r.sent();try{return[2,JSON.parse(t)]}catch(e){return[2,void 0]}return[2]}}))}))}function h(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.getFile()];case 1:return[4,t.sent().arrayBuffer()];case 2:return[2,t.sent()]}}))}))}t.getSubEntriesFromDir=f,t.getFileText=p,t.getFileJson=d,t.getFileArrayBuffer=h;var v=function(e){function t(t){var r=e.call(this)||this;return r._rootDirHandle=t,r}return o(t,e),Object.defineProperty(t.prototype,"rootDirHandle",{get:function(){return this._rootDirHandle},enumerable:!1,configurable:!0}),t.prototype.getSubFilesAndDirs=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,f(this._rootDirHandle)];case 1:return[2,e.sent()]}}))}))},t.prototype.getDir=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i,s,c;return a(this,(function(a){switch(a.label){case 0:t=this._rootDirHandle,a.label=1;case 1:a.trys.push([1,6,7,8]),r=u(e),n=r.next(),a.label=2;case 2:return n.done?[3,5]:(o=n.value,[4,null==t?void 0:t.getDirectoryHandle(o)]);case 3:if(!(t=a.sent()))return console.log("getDirectoryHandle ".concat(o," failed")),[2,void 0];a.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return i=a.sent(),s={error:i},[3,8];case 7:try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(s)throw s.error}return[7];case 8:return[2,t]}}))}))},t.prototype.getFile=function(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return[4,this.getDir(e)];case 1:if(!(r=o.sent()))return[2,void 0];o.label=2;case 2:return o.trys.push([2,4,,5]),[4,r.getFileHandle(t)];case 3:return[2,o.sent()];case 4:return n=o.sent(),console.error("未能获取当前文件 ".concat(e.join("/"),"/").concat(t," error: ").concat(n),n),[2,void 0];case 5:return[2]}}))}))},t}(l.Destroyable);t.LocalRootDir=v;var y=function(e){function t(t){var r=e.call(this)||this;return r._prefix=t,r._startRootDirId=0,r._dirMap=new Map,r}return o(t,e),Object.defineProperty(t.prototype,"prefix",{get:function(){return this._prefix},enumerable:!1,configurable:!0}),t.prototype.getRootDirId=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),console.log("window.showDirectoryPicker begin"),[4,window.showDirectoryPicker({id:e,mode:"read"})];case 1:return t=i.sent(),console.log("window.showDirectoryPicker end",t),[3,3];case 2:return r=i.sent(),console.error("LocalFileServer getRootDirId failed: ".concat(r),r),[2,void 0];case 3:return t?(n=++this._startRootDirId,o="".concat(this._prefix).concat(n),this._dirMap.set(o,new v(t)),[2,o]):[2]}}))}))},t.prototype.getRootDir=function(e){return this._dirMap.get(e)},t.prototype.getFile=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i,s;return a(this,(function(a){switch(a.label){case 0:return(t=e.split("/")).length<2?(console.warn("LocalFileServer getFile failed: ".concat(e)),[2,void 0]):(r=t[0],(n=this._dirMap.get(r))?(o=t.slice(1,t.length-1),i=t[t.length-1],[4,n.getFile(o,i)]):(console.warn("LocalFileServer getFile failed: ".concat(e)),[2,void 0]));case 1:return(s=a.sent())?[2,s]:(console.warn("LocalFileServer getFile failed: ".concat(e)),[2,void 0])}}))}))},t.prototype.getText=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,this.getFile(e)];case 1:return(t=r.sent())?[4,p(t)]:[2,void 0];case 2:return[2,r.sent()]}}))}))},t.prototype.getArrayBuffer=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,this.getFile(e)];case 1:return(t=r.sent())?[4,h(t)]:[2,void 0];case 2:return[2,r.sent()]}}))}))},t.prototype.getJson=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,this.getFile(e)];case 1:return(t=r.sent())?[4,d(t)]:[2,void 0];case 2:return[2,r.sent()]}}))}))},t.prototype.getLocalFilePath=function(e,t,r){return i(this,void 0,void 0,(function(){var r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getRootDirId(t)];case 1:return(r=a.sent())?(n=this.getRootDir(r))?[4,n.getSubFilesAndDirs()]:(console.warn("getRootDir error!"),[2,void 0]):(console.warn("getRootDirId error!"),[2,void 0]);case 2:return(o=a.sent()).files?0===(i=e?o.files.filter((function(t){return e.some((function(e){return t.endsWith(e)}))})):o.files).length?(console.warn("找不到符合要求的文件!"),[2,void 0]):[2,"https://".concat(r,"/").concat(i[0])]:(console.warn("getSubFilesAndDirs error! 找不到符合要求的文件!"),[2,void 0])}}))}))},t}(l.Destroyable);t.LocalFileServer=y,t.defaultLocalFileServer=new y("xe2_local"),t.defaultGetLocalFilePath=function(e,r,n){return i(this,void 0,void 0,(function(){return a(this,(function(o){switch(o.label){case 0:return[4,t.defaultLocalFileServer.getLocalFilePath(e,r,n)];case 1:return[2,o.sent()]}}))}))}},588:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0;var i=r(7563),a=r(7563),s=r(7563),c=r(8529),u=function(e){function t(t,r){void 0===t&&(t=1e3),void 0===r&&(r=c.defaultStartUpdateFunc);var n=e.call(this)||this;return n._currentTime=n.disposeVar((0,s.react)(0)),n._speed=1,n._duration=t,n._loop=!1,n.startUpdateFunc=r,n._updateBindThis=n._update.bind(n),n.dispose((function(){n._cancelStartUpdateFunc&&(n._cancelStartUpdateFunc(),n._cancelStartUpdateFunc=void 0)})),n._startTimeStamp=Number.NaN,n.dispose((function(){n._startPlayingEvent&&n._startPlayingEvent.reset(),n._stopPlayingEvent&&n._stopPlayingEvent.reset()})),n}return o(t,e),Object.defineProperty(t.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new a.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new a.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new a.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._loop},set:function(e){this._loop!==e&&(this._loop=e,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),t.prototype._update=function(e){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var t=(e-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(t)}},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(e){this._setCurrentTimeInner(e),this._resetStartTime()},enumerable:!1,configurable:!0}),t.prototype._setCurrentTimeInner=function(e){this._currentTime.value!==e&&(this._duration<=0?this._currentTime.value=0:e<0?this.loop?this._currentTime.value=this._duration+e%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):e>this._duration?this.loop?this._currentTime.value=e%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=e)},Object.defineProperty(t.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new a.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},set:function(e){var t;if(e<0)console.warn("duration sholud greater than 0!");else if(this._duration!==e){var r=this._duration;this._duration=e,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),null===(t=this._durationChangedEvent)||void 0===t||t.emit(this._duration,r)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new a.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(e){var t;if(this._speed!==e&&0!==e){var r=this._speed;this._speed=e,this._resetStartTime(),null===(t=this._speedChangedEvent)||void 0===t||t.emit(this._speed,r)}},enumerable:!1,configurable:!0}),t.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},t.prototype._startPlaying=function(){var e,t;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),null===(e=this._startPlayingEvent)||void 0===e||e.emit(this._currentTime.value),null===(t=this._playingChangedEvent)||void 0===t||t.emit(!0)},t.prototype._stopPlaying=function(){var e,t;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,null===(e=this._stopPlayingEvent)||void 0===e||e.emit(this._currentTime.value),null===(t=this._playingChangedEvent)||void 0===t||t.emit(!1)},Object.defineProperty(t.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new a.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(e){!!this._cancelStartUpdateFunc!==e&&(e?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),t}(i.Destroyable);t.Player=u},9961:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DivBoxPicker=t.BoxPicker=void 0;var i=r(7563),a=r(7563),s=r(8786),c=r(7563),u=function(e){function t(){var t=e.call(this)||this;t._pickRectEvent=t.disposeVar(new a.Event),t._updateRectEvent=t.disposeVar(new a.Event),t._pointerActionEvent=t.disposeVar(new a.Event),t._active=t.disposeVar((0,c.react)(!1)),t._pickRect={left0:0,top0:0,left1:0,top1:0};var r=0,n=0,o=0,i=0;return t.dispose(t._pointerActionEvent.disposableOn((function(e){var a=e.type,s=e.left,c=e.top;"PointerDown"===a?(t._active.value=!0,r=s,n=c,o=s,i=c,t._setPickRect({left0:r,top0:n,left1:o,top1:i}),t._updateRectEvent.emit(t._pickRect)):"PointerMove"===a?t._active.value&&(o=s,i=c,t._setPickRect({left0:r,top0:n,left1:o,top1:i}),t._updateRectEvent.emit(t._pickRect)):"PointerUp"===a&&t._active.value&&(t._active.value=!1,o=s,i=c,t._setPickRect({left0:r,top0:n,left1:o,top1:i}),t._updateRectEvent.emit(t._pickRect),t._pickRectEvent.emit(t._pickRect))}))),t}return o(t,e),t.prototype._setPickRect=function(e){var t=e.left0,r=e.left1,n=e.top0,o=e.top1;this._pickRect.left0=t,this._pickRect.left1=r,this._pickRect.top0=n,this._pickRect.top1=o},t.prototype.pointerDown=function(e,t){this._pointerActionEvent.emit({type:"PointerDown",left:e,top:t})},t.prototype.pointerMove=function(e,t){this._pointerActionEvent.emit({type:"PointerMove",left:e,top:t})},t.prototype.pointerUp=function(e,t){this._pointerActionEvent.emit({type:"PointerUp",left:e,top:t})},t.prototype.reset=function(){this._setPickRect({left0:0,top0:0,left1:0,top1:0}),this._updateRectEvent.emit(this._pickRect),this._pickRectEvent.emit(this._pickRect)},Object.defineProperty(t.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),t.getLeftTopAndSize=function(e,t){t=t||{left:0,top:0,width:0,height:0,forward:!0};var r=e.left0,n=e.top0,o=e.left1,i=e.top1;return t.width=Math.abs(r-o),t.height=Math.abs(n-i),t.left=Math.min(r,o),t.top=Math.min(n,i),t.forward=o>r,t},t.contains=function(e,t,r){var n=r.left,o=r.top,i=r.width,a=r.height;return e>n&&e<=n+i&&t>=o&&t<=o+a},t}(i.Destroyable);t.BoxPicker=u;var l=function(e){function t(t){var r=e.call(this)||this,n=r.disposeVar(new s.PointerClickDeprecated(t));r.dispose(n.downEvent.disposableOn((function(e,t,n){return n.altKey&&r.pointerDown(e,t)}))),r.dispose(n.moveEvent.disposableOn((function(e,t){return r.pointerMove(e,t)}))),r.dispose(n.upEvent.disposableOn((function(e,t){return r.pointerUp(e,t)})));var o=document.createElement("div");o.style.backgroundColor="rgba(0, 0, 0, 0)",o.style.border="2px dashed red",o.style.position="absolute",o.style.boxSizing="border-box",o.style.pointerEvents="none",o.style.height="0px",o.style.width="0px",o.style.left="0px",o.style.top="0px",o.style.display="none",t.appendChild(o),r.dispose((function(){return t.removeChild(o)})),r.dispose(r.activeEvent.disposableOn((function(e){o.style.display=e?"block":"none"})));var i=function(){r.reset()};t.addEventListener("contextmenu",i),r.dispose((function(){return t.removeEventListener("contextmenu",i)}));var a={left:0,top:0,width:0,height:0,forward:!1};return r.dispose(r.updateRectEvent.disposableOn((function(e){if(u.getLeftTopAndSize(e,a)){var t=a.left,r=a.top,n=a.width,i=a.height;o.style.height="".concat(0|i,"px"),o.style.width="".concat(0|n,"px"),o.style.left="".concat(0|t,"px"),o.style.top="".concat(0|r,"px")}}))),r}return o(t,e),t}(u);t.DivBoxPicker=l},9154:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DivPointerClick=void 0;var i=r(7563),a=r(8635),s=function(e){function t(t,r){var n=e.call(this)||this;n._div=t,n._pointerClick=n.disposeVar(new a.PointerClick);var o=n,i=o.div,s=o.pointerClick,c=function(e){return s.pointerDown(e)},u=function(e){return s.pointerMove(e)},l=function(e){return s.pointerOut(e)},f=function(e){return s.pointerUp(e)};return i.addEventListener("pointerdown",c,r),i.addEventListener("pointermove",u,r),i.addEventListener("pointerout",l,r),i.addEventListener("pointerup",f,r),n.dispose((function(){i.removeEventListener("pointerdown",c,r),i.removeEventListener("pointermove",u,r),i.removeEventListener("pointerout",l,r),i.removeEventListener("pointerup",f,r)})),n}return o(t,e),Object.defineProperty(t.prototype,"div",{get:function(){return this._div},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pointerClick",{get:function(){return this._pointerClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickEvent",{get:function(){return this.pointerClick.clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dbclickEvent",{get:function(){return this.pointerClick.dbclickEvent},enumerable:!1,configurable:!0}),t}(i.Destroyable);t.DivPointerClick=s},2998:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DomElementEvent=void 0;var i=r(7563),a=-1,s=function(e){function t(t,r,n,o){var i=e.call(this)||this;i._domElement=t,i._type=r,i.callback=o;var s=function(e){return e.__xbsj_listenerNo__=++a,e.__xbsj_listenerTime__=Date.now(),e.__xbsj_lastCurrentTarget__=e.currentTarget,i.emit(e),i.callback&&i.callback(e)};return i._domElement.addEventListener(i._type,s,n),i.dispose((function(){return i._domElement.removeEventListener(i._type,s,n)})),i}return o(t,e),t.getLastLisenNo=function(){return a},t.getCurrentTarget=function(e){return e.__xbsj_lastCurrentTarget__},t.getListenerNo=function(e){return e.__xbsj_listenerNo__},t.getListenerTime=function(e){return e.__xbsj_listenerTime__},t.on=function(e,r){var n=t.getLastLisenNo();return e.disposableOn((function(e){var o=t.getListenerNo(e);(void 0===o||o>n)&&r(e)}))},Object.defineProperty(t.prototype,"element",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),t.create=function(e,r,n){return new t(e,r,n)},t}(i.Event);t.DomElementEvent=s},8635:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PointerClick=void 0;var c=r(7563),u=r(7563),l=r(7563),f=r(1539),p=r(2442),d=r(2998),h=r(7364),v=function(e){function t(){var t=e.call(this)||this;t._clickEvent=t.disposeVar(new u.Event),t._dbclickEvent=t.disposeVar(new u.Event),t._pointerdownEvent=t.disposeVar(new u.Event),t._pointerupEvent=t.disposeVar(new u.Event),t._pointermoveEvent=t.disposeVar(new u.Event),t._pointeroutEvent=t.disposeVar(new u.Event),t.dbClickDelayTime=300,t.nativeClickDelayTime=500,t.clickMovementTolerantPixelSize=3,t.debugging=!1,t._enabled=t.disposeVar((0,l.react)(!0));var r=t.disposeVar((0,p.createProcessingFromAsyncFunc)((function(e){return i(t,void 0,void 0,(function(){var t,r,n=this;return a(this,(function(o){switch(o.label){case 0:t=function(){var t,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,(0,f.step)(e,(function(e){return new Promise((function(t,r){e.disposer.dispose(r),e.disposer.dispose(d.DomElementEvent.on(n._pointerdownEvent,t))}))}))];case 1:return t=a.sent(),o=(0,h.getDomEventCurrentTargetPos)(t),r.debugging&&console.log("鼠标按下 ".concat(o.toString())),[4,(0,f.step)(e,(function(e){return new Promise((function(t,r){e.disposer.dispose(r);var i=setTimeout((function(){return t(!0)}),n.nativeClickDelayTime);e.disposer.dispose((function(){return clearTimeout(i)})),e.disposer.dispose(d.DomElementEvent.on(n._pointermoveEvent,(function(e){var r=s((0,h.getDomEventCurrentTargetPos)(e),2),n=r[0],i=r[1],a=s(o,2),c=a[0],u=a[1];(Math.abs(n-c)>3||Math.abs(i-u)>3)&&t(!1)}))),e.disposer.dispose(d.DomElementEvent.on(n._pointeroutEvent,(function(){return t(!1)}))),e.disposer.dispose(d.DomElementEvent.on(n._pointerupEvent,(function(){return t(!0)})))}))}))];case 2:return a.sent()?[4,(0,f.step)(e,(function(e){return new Promise((function(t,r){e.disposer.dispose(r);var i=setTimeout((function(){return t("timeout")}),n.dbClickDelayTime);e.disposer.dispose((function(){return clearTimeout(i)})),e.disposer.dispose(d.DomElementEvent.on(n._pointermoveEvent,(function(e){var r=s((0,h.getDomEventCurrentTargetPos)(e),2),n=r[0],i=r[1],a=s(o,2),c=a[0],u=a[1];(Math.abs(n-c)>3||Math.abs(i-u)>3)&&t("moved")}))),e.disposer.dispose(d.DomElementEvent.on(n._pointerdownEvent,t)),e.disposer.dispose(d.DomElementEvent.on(n._pointeroutEvent,(function(){return t("pointouted")}))),e.disposer.dispose(d.DomElementEvent.on(n._pointerupEvent,(function(){return t("pointuped")})))}))}))]:(r.debugging&&console.log("取消1"),[2,"continue"]);case 3:return"string"==typeof(i=a.sent())?(r.debugging&&console.log("触发单击事件!取消双击监听!error: ".concat(i)),r._clickEvent.emit(t),[2,"continue"]):[4,(0,f.step)(e,(function(e){return new Promise((function(t,r){e.disposer.dispose(r);var i=setTimeout((function(){return t(!1)}),n.nativeClickDelayTime);e.disposer.dispose((function(){return clearTimeout(i)})),e.disposer.dispose(d.DomElementEvent.on(n._pointermoveEvent,(function(e){var r=s((0,h.getDomEventCurrentTargetPos)(e),2),n=r[0],i=r[1],a=s(o,2),c=a[0],u=a[1];(Math.abs(n-c)>3||Math.abs(i-u)>3)&&t(!1)}))),e.disposer.dispose(d.DomElementEvent.on(n._pointeroutEvent,(function(){return t(!1)}))),e.disposer.dispose(d.DomElementEvent.on(n._pointerupEvent,(function(){return t(!0)})))}))}))];case 4:return a.sent()?(r.debugging&&console.log("触发双击事件!"),r._dbclickEvent.emit(i),[2]):(r.debugging&&console.log("取消2"),[2,"continue"])}}))},r=this,o.label=1;case 1:return[5,t()];case 2:o.sent(),o.label=3;case 3:return[3,1];case 4:return[2]}}))}))}))),n=function(e){e?r.restart():r.isRunning&&r.cancel()};return n(t.enabled),t.dispose(t.enabledChanged.disposableOn(n)),t}return o(t,e),Object.defineProperty(t.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),t.prototype.pointerDown=function(e){this._pointerdownEvent.emit(e)},t.prototype.pointerUp=function(e){this._pointerupEvent.emit(e)},t.prototype.pointerMove=function(e){this._pointermoveEvent.emit(e)},t.prototype.pointerOut=function(e){this._pointeroutEvent.emit(e)},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled.value},set:function(e){this._enabled.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),t}(c.Destroyable);t.PointerClick=v},8786:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PointerClickDeprecated=void 0;var a=r(9812),s=r(7563),c=r(7364),u=r(7563),l=function(e){function t(t){var r=e.call(this)||this;r._clickEvent=new u.Event,r._dbclickEvent=new u.Event,r._downEvent=new u.Event,r._upEvent=new u.Event,r._moveEvent=new u.Event,r._debouncing=new a.DebouncingDeprecated(300),r.dispose((function(){r._clickEvent.destroy(),r._dbclickEvent.destroy(),r._downEvent.destroy(),r._upEvent.destroy(),r._moveEvent.destroy(),r._debouncing.destroy()}));var n=!1,o=[0,0],s=!1;r._debouncing.progressFunc=function(e){var t=i(e,2),n=i(t[0],3),o=n[0],a=n[1],s=n[2],c=t[1];1===c?r._clickEvent.emit(o,a,s):c>=2?r._dbclickEvent.emit(o,a,s):console.error("point click should not be here!")},r._debouncing.start(),r.dispose((function(){r._debouncing.isRunning&&r._debouncing.cancel(),r._debouncing.destroy()}));var l=function(e){n=!0;var t=i((0,c.getDomEventCurrentTargetPos)(e),2),a=t[0],s=t[1];o[0]=a,o[1]=s,r._downEvent.emit(a,s,e)},f=function(e){var t=i((0,c.getDomEventCurrentTargetPos)(e),2),o=t[0],a=t[1];n&&!s&&r._debouncing.debounce(o,a,e),n=!1,s=!1,r._upEvent.emit(o,a,e)},p=function(e){var t=i((0,c.getDomEventCurrentTargetPos)(e),2),a=t[0],u=t[1];if(n&&!s){var l=i(o,2),f=l[0],p=l[1];(Math.abs(a-f)>3||Math.abs(u-p)>3)&&(s=!0)}r._moveEvent.emit(a,u,e)},d=function(){n=!1,s=!1};return t.addEventListener("pointerdown",l),t.addEventListener("pointerup",f),t.addEventListener("pointermove",p),t.addEventListener("pointerout",d),r.dispose((function(){t.removeEventListener("pointerdown",l),t.removeEventListener("pointerup",f),t.removeEventListener("pointermove",p),t.removeEventListener("pointerout",d)})),r}return o(t,e),Object.defineProperty(t.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),t}(s.Destroyable);t.PointerClickDeprecated=l},5541:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.PointerHover=void 0;var i=r(7563),a=r(7563),s=r(1539),c=function(e){function t(){var t=e.call(this)||this;t._hoverEvent=t.disposeVar(new a.Event),t._hoverOutEvent=t.disposeVar(new a.Event),t._pointerdownEvent=t.disposeVar(new a.Event),t._pointerupEvent=t.disposeVar(new a.Event),t._pointermoveEvent=t.disposeVar(new a.Event),t._pointeroutEvent=t.disposeVar(new a.Event),t.delayTime=800;var r,n=t.disposeVar((0,s.createTimeout)()),o=function(){r?t._hoverEvent.emit(r):console.warn("!lastPointerEvent")};return t.dispose(t._pointerdownEvent.disposableOn((function(e){t._hoverOutEvent.emit()}))),t.dispose(t._pointerupEvent.disposableOn((function(e){t._hoverOutEvent.emit()}))),t.dispose(t._pointermoveEvent.disposableOn((function(e){r=e,n.restart(void 0,o,t.delayTime),t._hoverOutEvent.emit()}))),t.dispose(t._pointeroutEvent.disposableOn((function(e){n.cancel(),t._hoverOutEvent.emit()}))),t}return o(t,e),Object.defineProperty(t.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),t.prototype.pointerDown=function(e){this._pointerdownEvent.emit(e)},t.prototype.pointerUp=function(e){this._pointerupEvent.emit(e)},t.prototype.pointerMove=function(e){this._pointermoveEvent.emit(e)},t.prototype.pointerOut=function(e){this._pointeroutEvent.emit(e)},t}(i.Destroyable);t.PointerHover=c},5508:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PointerHoverDeprecated=void 0;var a=r(7563),s=r(7563),c=r(9812),u=r(7364),l=function(e){function t(t,r){void 0===r&&(r=1500);var n=e.call(this)||this;n._hoverEvent=new s.Event,n._hoverOutEvent=new s.Event;var o=new c.DebouncingDeprecated(r);n.dispose((function(){return o.destroy()}));var a,l=0,f=0;o.progressFunc=function(){return n._hoverEvent.emit(l,f,a)};var p=function(e){var t;!o.isRunning&&o.restart(),a=e,t=i((0,u.getDomEventCurrentTargetPos)(e),2),l=t[0],f=t[1],o.debounce(),n._hoverOutEvent.emit()},d=function(e){var t;!o.isRunning&&o.restart(),a=e,t=i((0,u.getDomEventCurrentTargetPos)(a),2),l=t[0],f=t[1],o.debounce(),n._hoverOutEvent.emit()},h=function(e){var t;!o.isRunning&&o.restart(),a=e,t=i((0,u.getDomEventCurrentTargetPos)(a),2),l=t[0],f=t[1],o.debounce(),n._hoverOutEvent.emit()},v=function(e){o.isRunning&&o.cancel(),n._hoverOutEvent.emit()};return t.addEventListener("pointerdown",p),t.addEventListener("pointerup",d),t.addEventListener("pointermove",h),t.addEventListener("pointerout",v),n.dispose((function(){t.removeEventListener("pointerdown",p),t.removeEventListener("pointerup",d),t.removeEventListener("pointermove",h),t.removeEventListener("pointerout",v)})),n}return o(t,e),Object.defineProperty(t.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.PointerHoverDeprecated=l},7364:(e,t)=>{"use strict";function r(e,t){t=t||[];var n=e.parentNode;return n?r(n,t.concat(n)):t}function n(e){var t=e.composedPath&&e.composedPath()||e.path,n=e.target;if(null!=t)return t.indexOf(window)<0?t.concat(window):t;if(n===window)return[window];if(null===n)throw new Error("target === null");return[n].concat(r(n),window)}Object.defineProperty(t,"__esModule",{value:!0}),t.getDomEventCurrentTargetPos=void 0,t.getDomEventCurrentTargetPos=function(e){for(var t=e.offsetX,r=e.offsetY,o=n(e),i=0;i<o.length;++i){var a=o[i];if(!(a!==e.currentTarget&&a instanceof HTMLElement))break;t+=a.clientLeft,r+=a.clientTop,t+=a.offsetLeft,r+=a.offsetTop}return[t,r]}},202:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9961),t),o(r(9154),t),o(r(2998),t),o(r(8635),t),o(r(8786),t),o(r(5541),t),o(r(5508),t),o(r(7364),t)},6363:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncingWithStartValues=t.Debouncing=void 0;var s=r(8529),c=r(7575),u=function(e){function t(){var t=e.call(this,(function(e,r,n){var o=e.errorFunc;try{var a=i((0,s.debounce)(r,n),2),c=a[0],u=a[1];return t._doFunc=c,u}catch(e){return o(e),function(){}}}))||this;return t}return o(t,e),t.prototype.do=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._doFunc&&this._doFunc.apply(this,a([],i(e),!1))},t}(c.Processing);t.Debouncing=u;var l=function(e){function t(t,r){var n=e.call(this,(function(e){var o=e.errorFunc;try{var a=i((0,s.debounce)(t,r),2),c=a[0],u=a[1];return n._doFunc=c,u}catch(e){return o(e),function(){}}}))||this;return n}return o(t,e),t.prototype.do=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._doFunc&&this._doFunc.apply(this,a([],i(e),!1))},t}(c.Processing);t.DebouncingWithStartValues=l},4335:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createFetchingWithStartValues=t.createFetching=t.cancelableFetch=t.cancelableFetchWithProgress=void 0;var i=r(7327),a=r(9431),s=r(4720);function c(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=new AbortController,s=o.signal,c=n(t,2),u=c[0],l=c[1];if(null==l?void 0:l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal&&console.warn("revocableFetch error: init.signal would be override!"),l.signal=s;var f=!1,p=fetch(u,l);return e&&(p=p.then((function(t){if(!t.ok)return t;if(!t.body)throw Error("ReadableStream not yet supported in this browser.");var r=t.headers.get("content-length");r||console.warn("response.headers.get('content-length') is undefined... cannot get contentLength!");var n=r?parseInt(r,10):0,o=0;return new Response(new ReadableStream({start:function(r){if(!t.body)throw new Error("!response.body");var i=t.body.getReader();!function t(){i.read().then((function(i){var a=i.done,s=i.value;if(a)r.close();else{if(!s)throw new Error("!value");if(!e)throw new Error("!progressFunc");o+=s.byteLength,e(o,n),r.enqueue(s),t()}})).catch((function(e){r.error(e)}))}()}}),{status:t.status,statusText:t.statusText,headers:t.headers})})).catch((function(e){throw f?(e instanceof Error&&20!==e.code&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new i.CancelError("fetching cancelled! error: ".concat(e))):(e instanceof Error&&20===e.code&&console.error("error.code === 20"),e)}))),(0,a.setPromiseCancel)(p,(function(){f=!0,o.abort()})),p}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.apply(void 0,o([void 0],n(e),!1))}t.cancelableFetchWithProgress=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return c.apply(void 0,o([e],n(t),!1))},t.cancelableFetch=u,t.createFetching=function(){return(0,s.createProcessingFromPromiseCreateFunc)(u)},t.createFetchingWithStartValues=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,o([u],n(e),!1))}},8110:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createSleepingWithStartValues=t.createSleeping=t.sleep=void 0;var i=r(7327),a=r(4720),s=r(9431);function c(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=void 0,a=new Promise((function(n,i){o=i,t=globalThis.setTimeout((function(){t=void 0,n(r)}),e)}));return(0,s.setPromiseCancel)(a,(function(e){t&&(clearTimeout(t),t=void 0),o&&o(null!=e?e:new i.CancelError("sleep cancel error!"))})),a}t.sleep=c,t.createSleeping=function(){return(0,a.createProcessingFromPromiseCreateFunc)(c)},t.createSleepingWithStartValues=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return a.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,o([c,e],n(t),!1))}},6388:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ThrottlingWithStartValues=t.Throttling=void 0;var s=r(8529),c=r(7575),u=function(e){function t(){var t=e.call(this,(function(e,r,n){var o=e.errorFunc;try{var a=i((0,s.throttle)(r,n),2),c=a[0],u=a[1];return t._doFunc=c,u}catch(e){return o(e),function(){}}}))||this;return t}return o(t,e),t.prototype.do=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._doFunc&&this._doFunc.apply(this,a([],i(e),!1))},t}(c.Processing);t.Throttling=u;var l=function(e){function t(t,r){var n=e.call(this,(function(e){var o=e.errorFunc;try{var a=i((0,s.throttle)(t,r),2),c=a[0],u=a[1];return n._doFunc=c,u}catch(e){return o(e),function(){}}}))||this;return n}return o(t,e),t.prototype.do=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._doFunc&&this._doFunc.apply(this,a([],i(e),!1))},t}(c.Processing);t.ThrottlingWithStartValues=l},2340:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Transition=void 0;var i=r(7563),a=r(7563),s=r(588),c=function(e){function t(t){var r=e.call(this)||this;return r._stop=r.disposeVar((0,a.react)(0)),r._current=r.disposeVar((0,a.react)(0)),r._start=r.disposeVar((0,a.react)(0)),r._player=r.disposeVar(new s.Player(200)),r.dispose(r._player.currentTimeChangedEvent.disposableOn((function(e){var t=e/r._player.duration;t=t>1?1:t<0?0:t;var n=r._start.value,o=r._stop.value;r._current.value=n+(o-n)*t}))),r.duration=t,r}return o(t,e),Object.defineProperty(t.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._stop.value},set:function(e){this._start.value=this._current.value,this._stop.value=e,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._player.duration},set:function(e){this._player.duration=e},enumerable:!1,configurable:!0}),t.prototype.reset=function(e){this._start.value=e,this._current.value=e,this._stop.value=e,this._player.playing=!1},t}(i.Destroyable);t.Transition=c},3597:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getPromiseFromProcessing=void 0;var i=r(7563);t.getPromiseFromProcessing=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=-1;return[function(t){return a===e.runningId&&e.isRunning&&e.cancel(t)},new Promise((function(r,s){e.isRunning&&e.cancel(),e.reset();var c=new i.Destroyable;c.dispose(e.completeEvent.disposableOn((function(e){r(e),c.isDestroyed()?console.error("disposer is destroyed! ".concat(c)):c.destroy()}))),c.dispose(e.errorEvent.disposableOn((function(e){s(e),c.isDestroyed()?console.error("disposer is destroyed! ".concat(c)):c.destroy()}))),e.start.apply(e,o([],n(t),!1)),a=e.runningId}))]}},1539:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6363),t),o(r(4335),t),o(r(3597),t),o(r(7247),t),o(r(8110),t),o(r(6613),t),o(r(5054),t),o(r(6388),t),o(r(2340),t)},7247:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimateFrameWithStartValues=t.createAnimateFrame=t.createIntervalWithStartValues=t.createInterval=t.createTimeoutWithStartValues=t.createTimeout=t.createNextMicroTaskWithStartValues=t.createNextMicroTask=t.createNextAnimateFrameWithStartValues=t.createNextAnimateFrame=void 0;var i=r(8529),a=r(2442);function s(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];try{return t.apply(void 0,o([],n(r),!1))}catch(t){e(t)}}t.createNextAnimateFrame=function(){return new a.Processing((function(e,t){var r=e.completeFunc,n=e.errorFunc;return(0,i.nextAnimateFrame)((function(){return s(n,(function(){t&&t(),r()}))}))}))},t.createNextAnimateFrameWithStartValues=function(e){return new a.Processing((function(t){var r=t.completeFunc,n=t.errorFunc;return(0,i.nextAnimateFrame)((function(){return s(n,(function(){e&&e(),r()}))}))}))},t.createNextMicroTask=function(){return new a.Processing((function(e,t){var r=e.completeFunc,n=e.errorFunc;return(0,i.nextMicroTask)((function(){s(n,(function(){t&&t(),r()}))}))}))},t.createNextMicroTaskWithStartValues=function(e){return new a.Processing((function(t){var r=t.completeFunc,n=t.errorFunc;return(0,i.nextMicroTask)((function(){s(n,(function(){e&&e(),r()}))}))}))},t.createTimeout=function(){return new a.Processing((function(e,t,r){var n=e.completeFunc,o=e.errorFunc;return(0,i.timeout)((function(){s(o,(function(){t&&t(),n()}))}),null!=r?r:1e3)}))},t.createTimeoutWithStartValues=function(e,t){return new a.Processing((function(r){var n=r.completeFunc,o=r.errorFunc;return(0,i.timeout)((function(){s(o,(function(){e&&e(),n()}))}),null!=t?t:1e3)}))},t.createInterval=function(){return new a.Processing((function(e,t,r){var n=e.errorFunc;return void 0===r&&(r=1e3),(0,i.interval)((function(){return s(n,t)}),r)}))},t.createIntervalWithStartValues=function(e,t){return void 0===t&&(t=1e3),new a.Processing((function(r){var n=r.errorFunc;return(0,i.interval)((function(){return s(n,e)}),t)}))},t.createAnimateFrame=function(){return new a.Processing((function(e,t){var r=e.errorFunc;return(0,i.animateFrame)((function(e){return s(r,t,e)}))}))},t.createAnimateFrameWithStartValues=function(e){return new a.Processing((function(t){var r=t.errorFunc;return(0,i.animateFrame)((function(t){return s(r,e,t)}))}))}},6613:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.step=void 0;var s=r(2442),c=r(3597);t.step=function(e,t){for(var r=this,u=[],l=2;l<arguments.length;l++)u[l-2]=arguments[l];return e.promise((0,s.pairToPromise)(c.getPromiseFromProcessing.apply(void 0,a([(0,s.createProcessingFromAsyncFunc)((function(s){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];return n(r,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return e.disposer.dispose((function(){s.isDestroyed()||s.cancel()})),[4,t.apply(void 0,a([s],i(c),!1))];case 1:return[2,r.sent()]}}))}))}))],i(u),!1))))}},5054:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.stepProcessing=void 0;var i=r(2442),a=r(3597);t.stepProcessing=function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return e.promise((0,i.pairToPromise)(a.getPromiseFromProcessing.apply(void 0,o([t],n(r),!1))))}},9812:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncingDeprecated=void 0;var a=r(9536),s=r(8529),c=function(e){function t(t){void 0===t&&(t=300);var r=e.call(this,(function(e){var t=e.progressFunc,n=(e.completeFunc,e.errorFunc,i((0,s.debounce)((function(){if(!r._lastDebounceValue)throw new Error("!this._lastDebounceValue");t([r._lastDebounceValue,r._debouncTimes]),r._debouncTimes=0}),r._delayTime),2)),o=n[0],a=n[1];return r._d=o,function(){a()}}))||this;return r._delayTime=t,r._debouncTimes=0,r}return o(t,e),Object.defineProperty(t.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),t.prototype.debounce=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=e,this._d&&this._d()):console.warn("Debouncing is not running!")},t}(a.ProcessingDeprecated);t.DebouncingDeprecated=c},4356:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Fetching=void 0;var s=r(5184),c=r(7327),u=function(e){function t(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=e.call(this,(function(e){for(var r=e.progressFunc,n=e.completeFunc,u=e.errorFunc,l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];var p={},d={loaded:0,total:0},h=o._fetchArgs||l;if(0===h.length)throw new Error("fetchArgs.length === 0");if(s.cancelableFetchDeprecated.apply(void 0,a([p,function(e,t){d.loaded=e,d.total=t,r(d)}],i(h),!1)).then(t).then(n).catch((function(e){e instanceof c.CancelError||u(e)})),!p.cancelFunc)throw new Error("!cancelResult.cancelFunc");return p.cancelFunc}))||this;return r.length>0&&(o._fetchArgs=r),o}return o(t,e),Object.defineProperty(t.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),t}(r(9536).ProcessingDeprecated);t.Fetching=u},8561:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalDeprecated=void 0;var i=r(9794),a=function(e){function t(t,r){void 0===r&&(r=!0);var n=e.call(this,(function(e){var t=e.progressFunc;return e.completeFunc,e.errorFunc,n._intervalFunc=t,n._intervalID&&console.error("this._intervalID should be undefined!"),n.leading&&t(),n._intervalID=setInterval(t,n.intervalTime),function(){if(!n._intervalID)throw console.error("this._intervalID should not be undefined!"),new Error("this._intervalID should not be undefined!");clearInterval(n._intervalID),n._intervalID=void 0}}))||this;return n.intervalTime=t,n.leading=r,n.dispose(n.intervalTimeChanged.disposableOn((function(){n._intervalID&&n._intervalFunc&&(clearInterval(n._intervalID),n._intervalID=setInterval(n._intervalFunc,n.intervalTime))}))),n}return o(t,e),t}(r(9536).ProcessingDeprecated);t.IntervalDeprecated=a,(0,i.defineReactiveProp)(a,"leading",!0),(0,i.defineReactiveProp)(a,"intervalTime",500)},758:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.TimingDeprecated=void 0;var i=r(7327),a=r(8529),s=function(){function e(e,t,r,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),this.startTime=e,this.duration=t,this.delay=r,this.proccessFunc=n,this.completeFunc=o,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return e.prototype.update=function(e){var t=(e-this.startTime)/this.duration;t>=0&&(this._processData.ratio=t,this._processData.timeStamp=e,this._processData.timeStampFromStart=e-this.startTime,this._processData.timeStampFromLastUpdate=e-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=e,this.proccessFunc&&this.proccessFunc(this._processData),t>=1&&this.completeFunc&&this.completeFunc())},e.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},e}(),c=function(e){function t(t,r,n){void 0===t&&(t=1e3),void 0===r&&(r=0),void 0===n&&(n=a.defaultStartUpdateFunc);var o,i=this;function c(){o&&o()}return(i=e.call(this,(function(e){var t=e.progressFunc,r=e.completeFunc,n=(e.errorFunc,i.startUpdateFunc&&i.startUpdateFunc(i._base.update.bind(i._base))||void 0);return i._base.startTime=performance.now(),i._base.duration=i.duration,i._base.delay=i.delay,i._base.proccessFunc=t,i._base.completeFunc=function(){n&&n(),r()},i._base.start(),o=n,c}))||this)._base=new s,i.duration=t,i.delay=r,i.startUpdateFunc=n,i}return o(t,e),Object.defineProperty(t.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),t}(i.ProcessingDeprecated);t.TimingDeprecated=c},9347:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.TransitionDeprecated=void 0;var i=r(7563),a=r(7563),s=r(758),c=function(e){function t(t){var r=e.call(this)||this;return r._duration=t,r._target=0,r._current=0,r._start=0,r._timing=new s.TimingDeprecated(Number.POSITIVE_INFINITY),r._timing.progressFunc=function(e){var t=e.ratio;t=t<0?0:t>1?1:t;var n=r._start*(1-t)+r._target*t;r._current=n,r._currentChanged&&r._currentChanged.emit(r._target,r._current)},r.dispose((function(){r._timing.isRunning&&r._timing.cancel(),r._timing.destroy()})),r}return o(t,e),t.prototype.reset=function(e,t){void 0===t&&(t=e),this._timing.isRunning&&this._timing.cancel(),this._target=e,this._current=t,this._start=e},Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._target!==e){this._target=e,this._timing.isRunning&&this._timing.cancel(),this._timing.reset(),this._start=this._current;var t=Math.abs(this._target-this._start);this._timing.duration=t*this._duration,this._timing.start()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged||(this._currentChanged=new a.Event),this._currentChanged},enumerable:!1,configurable:!0}),t}(i.Destroyable);t.TransitionDeprecated=c},5184:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.cancelableFetchDeprecated=void 0;var i=r(7327);function a(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=new AbortController,s=a.signal,c=n(r,2),u=c[0],l=c[1];if(null==l?void 0:l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal=s;var f=!1;(0,i._executeSetCancelFuncOrCancelResult)(e,(function(){f=!0,a.abort()}));var p=fetch(u,l);return t&&(p=p.then((function(e){if(!e.ok)return e;if(!e.body)throw Error("ReadableStream not yet supported in this browser.");var r=e.headers.get("content-length"),n=r?parseInt(r,10):0,o=0;return new Response(new ReadableStream({start:function(r){if(!e.body)throw new Error("!response.body");var i=e.body.getReader();!function e(){i.read().then((function(i){var a=i.done,s=i.value;if(a)r.close();else{if(!s)throw new Error("!value");if(!t)throw new Error("!progressFunc");o+=s.byteLength,t(o,n),r.enqueue(s),e()}})).catch((function(e){r.error(e)}))}()}}),{status:e.status,statusText:e.statusText,headers:e.headers})})).catch((function(e){throw f?(e instanceof Error&&20!==e.code&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new i.CancelError("fetching cancelled!")):(e instanceof Error&&20===e.code&&console.error("error.code === 20"),e)}))),p}t.cancelableFetchDeprecated=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=1){if("function"==typeof e[0]||void 0===e[0]){var r={},i=a.apply(void 0,o([r],n(e),!1)),s=r.cancelFunc;if(!s)throw new Error("!cancelResult.cancelFunc");return[s,i]}return a.apply(void 0,o([],n(e),!1))}throw new Error("cancelableFetch args error!")}},4266:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9812),t),o(r(4356),t),o(r(8561),t),o(r(433),t),o(r(758),t),o(r(9347),t),o(r(5184),t)},433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleepDeprecated=void 0;var n=r(7327);t.sleepDeprecated=function(e,t){var r,o=void 0,i=new Promise((function(t,n){o=n,r=globalThis.setTimeout((function(){r=void 0,t()}),e)})),a=function(e){r&&(clearTimeout(r),r=void 0),o&&o(null!=e?e:new n.CancelError("sleep cancel error!"))};return"boolean"==typeof t&&t?[a,i]:t?((0,n._executeSetCancelFuncOrCancelResult)(t,a),i):void 0}},9536:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessingDeprecated=void 0;var s=r(7563),c=r(7563),u=function(e){function t(t,r,n,o,i,a,s,c){var u=e.call(this)||this;return u._startProcessingFunc=t,u.startFunc=r,u.progressFunc=n,u.completeFunc=o,u.cancelFunc=i,u.cancelledFunc=a,u.errorFunc=s,u.finishedFunc=c,u._processingID=-1,u._status="Initial",u.dispose((function(){var e;return null===(e=u._statusChangedEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._startEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._progressEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._completeEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._cancelEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._cancelledEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._errorEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){var e;return null===(e=u._finishedEvent)||void 0===e?void 0:e.destroy()})),u.dispose((function(){return u.reset()})),u}return o(t,e),Object.defineProperty(t.prototype,"startEvent",{get:function(){return this._startEvent=this._startEvent||new c.Event,this._startEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressEvent",{get:function(){return this._progressEvent=this._progressEvent||new c.Event,this._progressEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeEvent",{get:function(){return this._completeEvent=this._completeEvent||new c.Event,this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelEvent",{get:function(){return this._cancelEvent=this._cancelEvent||new c.Event,this._cancelEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelledEvent",{get:function(){return this._cancelledEvent=this._cancelledEvent||new c.Event,this._cancelledEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorEvent",{get:function(){return this._errorEvent=this._errorEvent||new c.Event,this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"finishedEvent",{get:function(){return this._finishedEvent=this._finishedEvent||new c.Event,this._finishedEvent},enumerable:!1,configurable:!0}),t.prototype._completeFunc=function(e,t){this.processingID===e&&"Running"===this._status&&(this._status="Completed",this.completeFunc&&this.completeFunc(t),this._completeEvent&&this._completeEvent.emit(t),this.finishedFunc&&this.finishedFunc({status:"Completed",value:t}),this._finishedEvent&&this._finishedEvent.emit({status:"Completed",value:t}))},t.prototype._cancelFunc=function(e){"Running"===this._status&&(this._status="Cancelling",this.cancelFunc&&this.cancelFunc(e),this._cancelEvent&&this._cancelEvent.emit(e))},t.prototype._cancelledFunc=function(e){"Cancelling"===this._status&&(this._status="Cancelled",this.cancelledFunc&&this.cancelledFunc(e),this._cancelledEvent&&this._cancelledEvent.emit(e),this.finishedFunc&&this.finishedFunc({status:"Cancelled",cancelError:e}),this._finishedEvent&&this._finishedEvent.emit({status:"Cancelled",cancelError:e}))},t.prototype._errorFunc=function(e,t){this.processingID===e&&"Running"===this._status&&(this._status="Error",this.errorFunc&&this.errorFunc(t),this._errorEvent&&this._errorEvent.emit(t),this.finishedFunc&&this.finishedFunc({status:"Error",error:t}),this._finishedEvent&&this._finishedEvent.emit({status:"Error",error:t}))},t.prototype._progressFunc=function(e,t){this.processingID===e&&"Running"===this._status&&(this.progressFunc&&this.progressFunc(t),this._progressEvent&&this._progressEvent.emit(t))},t.prototype._startFunc=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if("Initial"===this._status){this._status="Running";var n=++this._processingID,o={completeFunc:this._completeFunc.bind(this,n),errorFunc:this._errorFunc.bind(this,n),progressFunc:this._progressFunc.bind(this,n),cancelFunc:this._cancel.bind(this,n),processingID:n},s=this._startProcessingFunc.apply(this,a([o],i(t),!1));return this._forceCancelFunc=s,this.startFunc&&this.startFunc.apply(this,a([],i(t),!1)),this._startEvent&&(e=this._startEvent).emit.apply(e,a([],i(t),!1)),n}return console.warn("this._status !== 'Initial' but start again!"),-1},Object.defineProperty(t.prototype,"_status",{get:function(){return this.__status},set:function(e){if(this.__status!==e){var t=this.__status;this.__status=e,this._statusChangedEvent&&this._statusChangedEvent.emit(e,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processingID",{get:function(){return this._processingID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"statusChangedEvent",{get:function(){return this._statusChangedEvent||(this._statusChangedEvent=new c.Event),this._statusChangedEvent},enumerable:!1,configurable:!0}),t.prototype.reset=function(e){"Running"===this._status&&this.cancel(e),"Cancelled"===this._status||"Error"===this._status||"Completed"===this._status?this._status="Initial":"Cancelling"===this._status&&console.warn("Cannot reset! (this._status === 'Cancelling')")},Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t.prototype.cancel=function(e,t){return void 0===t&&(t=this.processingID),this._cancel(t,e)},t.prototype._cancel=function(e,t){var r=this;if(this.processingID===e)if("Running"===this._status){if(!this._forceCancelFunc)throw new Error("this._forceCancelFunc is undefined!");this._cancelFunc(t);var n=this._forceCancelFunc(t);if(this._forceCancelFunc=void 0,n&&n instanceof Promise)return n.then((function(){r._cancelledFunc(t)}));this._cancelledFunc(t)}else console.warn("this._status !== 'Running' but cancel")},t.prototype.start=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return this._startFunc.apply(this,a([],i(e),!1))}catch(e){console.error("processing start error: ".concat(e))}},t.prototype.restart=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];try{return this.isRunning&&this.cancel(e),this.isFinished&&this.reset(e),this.isInitial?this._startFunc.apply(this,a([],i(t),!1)):(console.warn("restart failed!"),-1)}catch(e){console.error("processing restart error: ".concat(e))}},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return"Completed"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelled",{get:function(){return"Cancelled"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelling",{get:function(){return"Cancelling"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isError",{get:function(){return"Error"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInitial",{get:function(){return"Initial"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return"Running"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFinished",{get:function(){return this.isCancelled||this.isCompleted||this.isError},enumerable:!1,configurable:!0}),t}(s.Destroyable);t.ProcessingDeprecated=u},8281:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessingStarter=void 0;var i=r(7563),a=r(8529),s=r(5642),c=function(){function e(e){this._startParams=e,this._cancelled=!1,this._cancelsMap=new Map}return Object.defineProperty(e.prototype,"disposer",{get:function(){var e=this;return this._disposer||(this._disposer=new i.Destroyable,this._disposer.dispose((function(){return e._disposer=void 0}))),this._disposer},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){var t,r,o;if(!this._cancelled){this._cancelled=!0,null===(o=this._disposer)||void 0===o||o.destroy(),this._cancelError=e;try{for(var i=n(this._cancelsMap.values()),a=i.next();!a.done;a=i.next())(0,a.value)(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this._cancelsMap.clear()}},e.prototype.check=function(){var e;if(this._cancelled)throw null!==(e=this._cancelError)&&void 0!==e?e:new s.CancelError("cancel from CancelManager!")},Object.defineProperty(e.prototype,"cancelFuncsNum",{get:function(){return(0,a.reduce)(this._cancelsMap.keys(),(function(e){return e+1}),0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processingID",{get:function(){return this._startParams.processingID},enumerable:!1,configurable:!0}),e.prototype.promises=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.map((function(t){var r=o(t,2),n=r[0],i=r[1];return e._cancelsMap.set(i,n),i.finally((function(){return e._cancelsMap.delete(i)}))}))},e.prototype.promise=function(e){var t=this,r=o(e,2),n=r[0],i=r[1];return this._cancelsMap.set(i,n),i.finally((function(){return t._cancelsMap.delete(i)}))},e.prototype.promiseAny=function(e){var t=this,r=[],n=e.map((function(e){var n=o(e,2),i=n[0],a=n[1];return t._cancelsMap.set(a,i),r.push(i),a.finally((function(){return t._cancelsMap.delete(a)}))}));return Promise.any(n).finally((function(){return r.forEach((function(e){return e(new s.CancelError("cancel from promiseAny!"))}))}))},e.prototype.promiseAll=function(e){var t=this,r=[],n=e.map((function(e){var n=o(e,2),i=n[0],a=n[1];return t._cancelsMap.set(a,i),r.push(i),a.finally((function(){return t._cancelsMap.delete(a)}))}));return Promise.all(n).finally((function(){return r.forEach((function(e){return e(new s.CancelError("cancel from promiseAll!"))}))}))},e.prototype.promiseRace=function(e){var t=this,r=[],n=e.map((function(e){var n=o(e,2),i=n[0],a=n[1];return t._cancelsMap.set(a,i),r.push(i),a.finally((function(){return t._cancelsMap.delete(a)}))}));return Promise.race(n).finally((function(){return r.forEach((function(e){return e(new s.CancelError("cancel from promiseRace!"))}))}))},e.prototype.checkAndPromises=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.map((function(t){var r=o(t,2),n=r[0],i=r[1];return e._cancelsMap.set(i,n),i.finally((function(){return e._cancelsMap.delete(i),e.check()}))}))},e.prototype.checkAndPromise=function(e){var t=this;return e instanceof Promise?e.finally((function(){return t.check()})):this.promise(e).finally((function(){return t.check()}))},e.prototype.complete=function(e){var t;0!==this.cancelFuncsNum&&console.warn("complete: this.cancelFuncsNum(".concat(this.cancelFuncsNum,")不为0!")),null===(t=this._disposer)||void 0===t||t.destroy(),this._cancelsMap.clear(),this._startParams.completeFunc(e)},e.prototype.error=function(e){var t;null===(t=this._disposer)||void 0===t||t.destroy(),this._cancelsMap.clear(),this._startParams.errorFunc(e)},e.prototype.progressFunc=function(e){this._startParams.progressFunc(e)},e.prototype.forceCancel=function(e){return this._startParams.cancelFunc(e)},e}();t.ProcessingStarter=c},2472:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapAsyncFuncToCancelablePromise=t.cancelablePromise=t._executeSetCancelFuncOrCancelResult=void 0;var i=r(5642);function a(e,t){"function"==typeof e?e(t):e.cancelFunc=t}function s(e,t){return t instanceof Promise?function(e,t){var r=void 0,n=t.then((function(e){if(r)throw r;return e}));return a(e,(function(e){r=null!=e?e:new i.CancelError("_revocablePromise_forPromise cancel error!")})),n}(e,t):function(e,t){return new Promise((function(r,n){a(e,(function(e){n(null!=e?e:new i.CancelError("_revocablePromise_forExecutor cancel error!"))}));try{t(r,n)}catch(e){n(e)}}))}(e,t)}function c(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var c,u=void 0,l=t.apply(void 0,o([{cancelCheck:function(){if(u)throw u},registerCancelFunc:function(e){(c=c||[]).push(e)}}],n(r),!1));return a(e,(function(e){if(u=null!=e?e:new i.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),c)for(var t=c.length-1;t>=0;--t)(0,c[t])(e)})),l}t._executeSetCancelFuncOrCancelResult=a,t.cancelablePromise=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(e[0]instanceof Promise){var r=s(o={},e[0]),n=o.cancelFunc;if(!n)throw new Error("!cancelResult.cancelFunc");return[n,r]}}else if(2===e.length){var o;if(e[0]instanceof Object)return s(o=e[0],e[1])}throw new Error("args wrong!")},t.wrapAsyncFuncToCancelablePromise=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=1){if("function"==typeof e[0]){var r={},i=c.apply(void 0,o([r],n(e),!1)),a=r.cancelFunc;if(!a)throw new Error("!cancelResult.cancelFunc");return[a,i]}return c.apply(void 0,o([],n(e),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},1156:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createProcessing=void 0;var i=r(9536),a=r(8281);t.createProcessing=function(e){return new i.ProcessingDeprecated((function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var s=new a.ProcessingStarter(t);return e.apply(void 0,o([s],n(r),!1)).then(s.complete.bind(s)).catch(s.error.bind(s)),s.cancel.bind(s)}))}},7327:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1156),t),o(r(9536),t),o(r(8281),t),o(r(5642),t),o(r(4198),t),o(r(2472),t)},5642:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Error);t.CancelError=o},4198:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.NextMicroTaskEvent=t.NextMicroTask=t.NextAnimationFrame=t.getPromiseFromAsyncFunc=t.getPromiseFromProcessing=t.getProcessingFromPromise=void 0;var c=r(7563),u=r(7563),l=r(1156),f=r(9536);function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=-1;return[function(t){return n===e.processingID&&e.isRunning&&e.cancel(t)},new Promise((function(r,o){e.isRunning&&e.cancel(),e.reset();var s=e.finishedEvent.disposableOn((function(e){"Error"===e.status?o(e.error):"Cancelled"===e.status?o(e.cancelError):"Completed"===e.status&&r(e.value),s()}));e.start.apply(e,a([],i(t),!1)),n=e.processingID}))]}t.getProcessingFromPromise=function(e){return new f.ProcessingDeprecated((function(t){var r=t.completeFunc,n=t.errorFunc,o=!1;return e.then((function(e){o||r(e)})).catch((function(e){o||n(e)})),function(){o=!0}}))},t.getPromiseFromProcessing=p,t.getPromiseFromAsyncFunc=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=(0,l.createProcessing)(e),o=i(p.apply(void 0,a([n],i(t),!1)),2);return[o[0],o[1].finally((function(){return n.destroy()}))]};var d=function(e){function t(t){return e.call(this,(function(e){for(var r=e.completeFunc,n=e.errorFunc,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var c=requestAnimationFrame((function(e){try{var s=t.apply(void 0,a([],i(o),!1));r(s)}catch(e){n(e)}}));return function(){return cancelAnimationFrame(c)}}))||this}return o(t,e),t}(f.ProcessingDeprecated);t.NextAnimationFrame=d;var h=function(e){function t(t){return e.call(this,(function(e){for(var r,n=e.completeFunc,o=e.errorFunc,s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];return new Promise((function(e,t){r=t,e()})).then((function(){n(t.apply(void 0,a([],i(s),!1)))})).catch(o),function(){r&&r()}}))||this}return o(t,e),t}(f.ProcessingDeprecated);t.NextMicroTask=h;var v=function(e){function t(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.call(this)||this;i._event=new u.Event;try{for(var a=s(n),c=a.next();!c.done;c=a.next()){var l=c.value;i.dispose(l.disposableOn((function(){!f.isRunning&&f.restart()})))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}var f=new h((function(){i._event.emit()}));return i.dispose((function(){return f.destroy()})),i}return o(t,e),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),t}(c.Destroyable);t.NextMicroTaskEvent=v},7430:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.CancelsManager=void 0;var a=r(7563),s=r(8529),c=r(8363),u=r(9431),l=function(e){function t(){var t=e.call(this)||this;return t._cancelled=!1,t._promiseSet=new Set,t}return o(t,e),Object.defineProperty(t.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new a.Destroyable,this._disposer},enumerable:!1,configurable:!0}),t.prototype.destroyImp=function(){this.finally()},t.prototype.cancel=function(e){var t,r,n;if(!this._cancelled){this._cancelled=!0,null===(n=this._disposer)||void 0===n||n.destroy(),this._cancelError=e;try{for(var o=i(this._promiseSet),a=o.next();!a.done;a=o.next()){var s=a.value;(0,u.cancelPromise)(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this._promiseSet.clear()}},Object.defineProperty(t.prototype,"cancelFuncsNum",{get:function(){return(0,s.reduce)(this._promiseSet,(function(e){return e+1}),0)},enumerable:!1,configurable:!0}),t.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},t.prototype.check=function(){var e;if(this._cancelled)throw null!==(e=this._cancelError)&&void 0!==e?e:new c.CancelError("cancel from CancelManager!")},t.prototype.promise=function(e){var t=this;return this._promiseSet.add(e),e.finally((function(){return t._promiseSet.delete(e),t.check()}))},t.prototype.promiseAny=function(e){var t=this,r=[],n=e.map((function(e){return t._promiseSet.add(e),(0,u.isPromiseCancelable)(e)&&r.push((0,u.getPromiseCancel)(e)),e.finally((function(){return t._promiseSet.delete(e)}))}));return Promise.any(n).finally((function(){return r.forEach((function(e){return e(new c.CancelError("cancel from promiseAny!"))})),r.length=0}))},t.prototype.promiseAll=function(e){var t=this,r=[],n=e.map((function(e){return t._promiseSet.add(e),(0,u.isPromiseCancelable)(e)&&r.push((0,u.getPromiseCancel)(e)),e.finally((function(){return t._promiseSet.delete(e)}))}));return Promise.all(n).finally((function(){return r.forEach((function(e){return e(new c.CancelError("cancel from promiseAll!"))})),r.length=0}))},t.prototype.promiseRace=function(e){var t=this,r=[],n=e.map((function(e){return t._promiseSet.add(e),(0,u.isPromiseCancelable)(e)&&r.push((0,u.getPromiseCancel)(e)),e.finally((function(){return t._promiseSet.delete(e)}))}));return Promise.race(n).finally((function(){return r.forEach((function(e){return e(new c.CancelError("cancel from promiseRace!"))})),r.length=0}))},t}(a.Destroyable);t.CancelsManager=l},7575:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createStartFuncFromAsyncFunc=t.Processing=void 0;var s=r(7563),c=r(7563),u=r(8363),l=r(7430),f=r(9431),p=function(e){function t(t){var r=e.call(this)||this;return r._startFunc=t,r._status="Initial",r._runningId=-1,r.dispose((function(){return r.isRunning&&r.cancel()})),r}return o(t,e),Object.defineProperty(t.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new c.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new c.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(e){this._errorFunc!==e&&(this._errorFunc=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(e){this._completeFunc!==e&&(this._completeFunc=e)},enumerable:!1,configurable:!0}),t.prototype.start=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if("Initial"===this._status){var n=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,a([{completeFunc:function(t){var r;n===e._runningId&&"Running"===e._status&&(e._status="Completed",e._completeFunc&&e._completeFunc(t),null===(r=e._completeEvent)||void 0===r||r.emit(t))},errorFunc:function(t){var r;n===e._runningId&&"Running"===e._status&&(e._status="Error",e._errorFunc&&e._errorFunc(t),null===(r=e._errorEvent)||void 0===r||r.emit(t))},runningingID:n}],i(t),!1))}},t.prototype.cancel=function(e){var t;if(void 0===e&&(e=new u.CancelError("")),"Running"===this._status){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(e),null===(t=this._errorEvent)||void 0===t||t.emit(e),this._cancelFunc(e),this._cancelFunc=void 0}},t.prototype.reset=function(){"Running"===this._status&&console.error("processing cannot reset while running. you can first cancel it!"),"Completed"!==this._status&&"Error"!==this._status||(this._status="Initial")},Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInitial",{get:function(){return"Initial"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return"Running"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleted",{get:function(){return"Completed"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isError",{get:function(){return"Error"===this._status},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),t.prototype.restart=function(e){void 0===e&&(e=new u.CancelError(""));for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.isRunning&&this.cancel(e),this.reset(),this.start.apply(this,a([],i(t),!1))},t.prototype.restartIfNotRunning=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isRunning||(this.reset(),this.start.apply(this,a([],i(e),!1)))},t}(s.Destroyable);t.Processing=p,t.createStartFuncFromAsyncFunc=function(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=new l.CancelsManager,s=t.completeFunc,c=t.errorFunc,u=e.apply(void 0,a([o],i(r),!1)).then(s).catch(c).finally((function(){return o.destroy()}));return(0,f.setPromiseCancel)(u,o.cancel.bind(o)),function(e){return(0,f.cancelPromise)(u,e)}}}},4720:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createProcessingFromAsyncFuncWithStartValues=t.createProcessingFromAsyncFunc=t.asyncFuncToCancelablePromise=t.cancelFuncToCancelablePromise=t.createProcessingFromPromiseCreateFuncWithStartValues=t.createProcessingFromPromiseCreateFunc=void 0;var i=r(7430),a=r(7575),s=r(9431);t.createProcessingFromPromiseCreateFunc=function(e){return t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=e.apply(void 0,o([],n(t),!1));return(0,s.isPromiseCancelable)(i)?i:(0,s.createCancelablePromise)(i)},new a.Processing((0,a.createStartFuncFromAsyncFunc)((function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e.promise(t.apply(void 0,o([],n(r),!1)))})));var t},t.createProcessingFromPromiseCreateFuncWithStartValues=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new a.Processing((0,a.createStartFuncFromAsyncFunc)((function(r){return r.promise(e.apply(void 0,o([],n(t),!1)))})))}((function(){var r=e.apply(void 0,o([],n(t),!1));return(0,s.isPromiseCancelable)(r)?r:(0,s.createCancelablePromise)(r)}))},t.cancelFuncToCancelablePromise=function(e){var t,r=new Promise((function(r,n){t=function(){e(),n()}}));return(0,s.setPromiseCancel)(r,t),r},t.asyncFuncToCancelablePromise=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=new i.CancelsManager,c=e.apply(void 0,o([a],n(t),!1)).finally((function(){return a.destroy()}));return(0,s.setPromiseCancel)(c,a.cancel.bind(a)),c},t.createProcessingFromAsyncFunc=function(e){return new a.Processing((0,a.createStartFuncFromAsyncFunc)(e))},t.createProcessingFromAsyncFuncWithStartValues=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new a.Processing((0,a.createStartFuncFromAsyncFunc)((function(r){return e.apply(void 0,o([r],n(t),!1))})))}},2442:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9431),t),o(r(4720),t),o(r(7575),t),o(r(7430),t),o(r(8363),t)},9431:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.getEventFromPromise=t.getPromiseFromEvent=t.createCancelablePromise=t.pairToPromise=t.cancelPromise=t.isPromiseCancelable=t.getPromiseCancel=t.setPromiseCancel=void 0;var o=r(8529),i=r(7563);function a(e,t){(0,o.getExtProp)(e,"_promise_cancel")&&console.warn("setPromiseCancel warn: promise has cancelFunc!"),(0,o.setExtProp)(e,"_promise_cancel",t)}function s(e){return(0,o.getExtProp)(e,"_promise_cancel")}t.setPromiseCancel=a,t.getPromiseCancel=s,t.isPromiseCancelable=function(e){return!!s(e)},t.cancelPromise=function(e,t){var r=s(e);return!!r&&(r(t),!0)},t.pairToPromise=function(e){var t=n(e,2),r=t[0],o=t[1];return a(o,r),o},t.createCancelablePromise=function(e){var t,r=new Promise((function(r,n){t=n,e.then(r).catch(n)}));return a(r,t),r},t.getPromiseFromEvent=function(e){var t,r,n=new Promise((function(n,o){r=e.disposableOn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r&&r(),n(e)})),t=function(e){r&&r(),o(e)}}));return[t,n]},t.getEventFromPromise=function(e){var t=new i.Event,r=new i.Event;return e.then((function(e){t.isDestroyed()||t.emit(e)})).catch((function(e){r.isDestroyed()||r.emit(e)})),[t,r]}},8363:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Error);t.CancelError=o},7e3:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.RefsManager=void 0;var i=r(8529),a=function(e){function t(t){var r=e.call(this)||this;r._sceneObjRefs=new Map,r._refs={},r._refsChagned=r.disposeVar(new i.Event);var n=function(e,t,n){if(n){var o=r.getLastSceneObject(n);if(s=r._sceneObjRefs.get(n)){var i=s.indexOf(e);-1===i?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(e.id," type: ").concat(e.typeName,")!可能系统存在逻辑问题")):(s.splice(i,1),0===s.length&&r._sceneObjRefs.delete(n))}else console.warn("this._sceneObjRefs中不存在ref(".concat(n,"), 可能系统存在逻辑问题"));var a=r.getLastSceneObject(n);r._refs[n]=a,r._refsChagned.emit(a,o)}var s;t&&(o=r.getLastSceneObject(t),(s=r._sceneObjRefs.get(t))?(s.push(e),s.length>0&&console.warn("同时存在多个ref".concat(t,"相同的场景对象!\n").concat(s.map((function(e){return"".concat(e.id," ").concat(e.typeName,"\n")})).join(" ")))):r._sceneObjRefs.set(t,[e]),a=r.getLastSceneObject(t),r._refs[t]=a,r._refsChagned.emit(a,o))};return r.dispose(t.sceneObjCreatedEvent.disposableOn((function(e){var t=function(t,r){return n(e,t,r)};e.ref&&t(e.ref,void 0),e.refChanged.disposableOn(t)}))),r.dispose(t.sceneObjToDestroyEvent.disposableOn((function(e){e.ref&&n(e,void 0,e.ref)}))),r}return o(t,e),Object.defineProperty(t.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),t.prototype.getLastSceneObject=function(e){var t=this.getSceneObjects(e);if(t)return t[t.length-1]},t.prototype.getSceneObjects=function(e){var t=this._sceneObjRefs.get(e);if(t&&0!==t.length)return t},t}(i.Destroyable);t.RefsManager=a},7703:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SceneObjectWithId=t.SceneObjectIdWatching=t.getSceneObjectReactFromId=t.SceneObjectFromId=void 0;var a=r(8529),s=r(8861),c=r(7563),u=r(2750),l=function(e){function t(t){var r=e.call(this)||this;r._id=t,r._sceneObject=r.disposeVar((0,c.react)(void 0)),r.dispose((function(){r._sceneObject.value=void 0}));var n=s.SceneObject.getSceneObjById(r._id);return n&&(r._sceneObject.value=n),r.dispose(s.SceneObject.context.sceneObjCreatedEvent.disposableOn((function(e){e.id===r._id&&(r._sceneObject.value=e)}))),r.dispose(s.SceneObject.context.sceneObjToDestroyEvent.disposableOn((function(e){e.id===r._id&&(r._sceneObject.value=void 0)}))),r}return o(t,e),Object.defineProperty(t.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t}(c.Destroyable);function f(e){var t=i((0,a.getReactFuncs)(e),3),r=t[0],n=(t[1],t[2]),o=(0,c.react)(void 0);return o.disposeVar(new u.ObjResettingWithEvent(n,(function(){var e=r();if(e){var t=new l(e),n=function(){o.value=t.sceneObject};return n(),t.dispose(t.sceneObjectChanged.disposableOn(n)),t}o.value=void 0}))),o}t.SceneObjectFromId=l,t.getSceneObjectReactFromId=f;var p=function(e){function t(t,r){var n=e.call(this)||this,o=n.disposeVar(f(t));return n.disposeVar(new u.ObjResettingWithEvent(o.changed,(function(){var e=o.value;if(e)return r(e)}))),n}return o(t,e),t}(c.Destroyable);t.SceneObjectIdWatching=p;var d=function(e){function t(t,r){var n=e.call(this)||this;n._id=t,n._sofi=n.disposeVar(new l(n._id));var o=function(){r.sceneObject=n._sofi.sceneObject};return o(),n.dispose(n._sofi.sceneObjectChanged.disposableOn(o)),n}return o(t,e),t}(c.Destroyable),h=function(e){function t(){var t=e.call(this)||this;return t._id=t.disposeVar((0,c.react)(void 0)),t._sceneObject=t.disposeVar((0,c.react)(void 0)),t._resetting=t.disposeVar(new u.ObjResettingWithEvent(t.idChanged,(function(){var e=t.id;if(void 0!==e&&""!==e)return new d(e,t);t.sceneObject=void 0}))),t}return o(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id.value},set:function(e){this._id.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(e){this._sceneObject.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),t}(c.Destroyable);t.SceneObjectWithId=h},5726:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SceneObjectsContext=void 0;var s=r(8529),c=r(6394),u=r(9211),l=r(7e3),f=function(e){function t(){var t=e.call(this)||this;return t._sceneObjConstructorsMap=new Map,t._sceneObjs=new Map,t._sceneObjCreatedEvent=new s.Event,t._sceneObjToDestroyEvent=new s.Event,t._refsManager=t.disposeVar(new l.RefsManager(t)),t._environmentVariables={"xr-static":"xr-static"},t._environmentVariablesChanged=t.disposeVar(new s.Event),t}return o(t,e),Object.defineProperty(t.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),t.prototype.register=function(e,t,r){return this._sceneObjConstructorsMap.has(e)&&(console.warn("register warn: ".concat(e," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(e))),this._sceneObjConstructorsMap.set(e,t),r&&this.setProps(e,r),e},t.prototype._getSceneObjConstructor=function(e){return this._sceneObjConstructorsMap.get(e)||void 0},t.prototype.getProps=function(e){var t=this._getSceneObjConstructor(e);if(t)return(0,s.getExtProp)(t,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(e))},t.prototype.setProps=function(e,t){var r=this._getSceneObjConstructor(e);if(r){var n=(0,s.getExtProp)(r,"__sceneObjExtraInfo");n||(n={},(0,s.setExtProp)(r,"__sceneObjExtraInfo",n)),Object.assign(n,t)}else console.warn("cannot get constructor from type: ".concat(e))},t.prototype.getProp=function(e,t){var r=this.getProps(e);return r&&r[t]},t.prototype.setProp=function(e,t,r){var n;this.setProps(e,((n={})[t]=r,n))},t.prototype._addSceneObject=function(e){var t=this;this._sceneObjs.set(e.id,e),this._sceneObjCreatedEvent.emit(e),e.dispose((function(){return t._deleteSceneObject(e)}))},t.prototype._deleteSceneObject=function(e){this._sceneObjToDestroyEvent.emit(e),this._sceneObjs.delete(e.id)},t.prototype.createSceneObjectFromClass=function(e,t){if(!t||this._sceneObjs.has(t)){var r=(0,s.createGuid)();t&&console.warn("已存在相同id的对象!id自动变更!".concat(t," -> ").concat(r," 请注意:id变更可能导致引用失效!")),t=r}if(!t)throw new Error("id不能为空!");var n=new e(t);return n.id!==t&&(console.warn("sceneObj.id(".concat(n.id,") !== id(").concat(t,") sceneObjectType: ").concat(n.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(n),n},t.prototype.createSceneObject=function(e,t){if("string"==typeof e){var r=this._getSceneObjConstructor(e);return r?this.createSceneObjectFromClass(r,t):void console.warn("Cannot find SceneObjectType: ".concat(e))}return this.createSceneObjectFromClass(e,t)},t.prototype.createSceneObjectFromJson=function(e){var t=this.createSceneObject(e.type,e.id);return t&&(t.json=e),t},t.prototype.getSceneObjectById=function(e){return this._sceneObjs.get(e)},t.prototype.getSceneObjectsByDevTags=function(e){var t,r,n=[],o=function(t){e.some((function(e){return t.devTags&&t.devTags.includes(e)}))&&n.push(t)};try{for(var a=i(this.sceneObjs),s=a.next();!s.done;s=a.next())o(s.value)}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n},Object.defineProperty(t.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(e){var t,r;try{for(var n=i(Object.entries(e)),o=n.next();!o.done;o=n.next()){var s=a(o.value,2),c=s[0],u=s[1];this.setEnv(c,u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),t.prototype.setEnv=function(e,t){if(this._environmentVariables[e]!==t){var r=this._environmentVariables[e];this._environmentVariables[e]=t,this._environmentVariablesChanged.emit(e,t,r)}},t.prototype.getEnv=function(e){return this._environmentVariables[e]},t.prototype.getStrFromEnv=function(e){return(0,u.replaceStrWithEnv)(e)},t.prototype.createEnvStrReact=function(e,t){return(0,c.createEnvEvalStrReact)(e,t)},t.prototype.createEvnStrReact=function(e,t){return(0,c.createEnvEvalStrReact)(e,t)},t}(s.Destroyable);t.SceneObjectsContext=f},6394:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.createEnvEvalStrReact=void 0;var o=r(8529),i=r(8861);t.createEnvEvalStrReact=function(e,t){var r=n((0,o.getReactFuncs)(e),3),a=r[0],s=(r[1],r[2]),c=(0,o.react)(void 0),u=function(){var e,r=null!==(e=a())&&void 0!==e?e:t;c.value=r&&i.SceneObject.context.getStrFromEnv(r)};return u(),s&&c.dispose(s.disposableOn(u)),c.dispose(i.SceneObject.context.environmentVariablesChanged.disposableOn(u)),c}},9211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceStrWithEnv=void 0;var n=r(8861);t.replaceStrWithEnv=function(e){for(;;){var t=e.replace(/\${(.*?)\}/,(function(e,t){var r=n.SceneObject.context.getEnv(t);return void 0===r?(console.warn("环境变量(".concat(t,")不存在,无法进行转换")),"{env-error}"):r}));if(t===e)break;e=t}return e}},8861:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SceneObject=void 0;var l=r(8529),f=r(2750),p=r(5726),d=function(e){function t(t){var r=e.call(this)||this;return r._components=r.disposeVar(new f.ObservableSet),void 0!==t&&("string"!=typeof t?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof t,",值为").concat(t)):""===t.trim()?console.warn("场景对象创建时的ID不能是空字符串!"):t.trim()!==t&&console.warn("id前后有空字符串!id: ".concat(t))),r._id=null!=t?t:(0,l.createGuid)(),r._setDefaultName(),r}return o(t,e),Object.defineProperty(t,"sceneObjs",{get:function(){return t.context.sceneObjs},enumerable:!1,configurable:!0}),t.getSceneObjById=function(e){return t.context.getSceneObjectById(e)},t.getSceneObjsByDevTags=function(e){return t.context.getSceneObjectsByDevTags(e)},Object.defineProperty(t,"$refs",{get:function(){return t.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),t.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},t.prototype._innerGetJson=function(e){var t,r;void 0===e&&(e=!0);var n={id:this.id,type:this.typeName};try{for(var o=s(Object.keys(this.defaultProps)),i=o.next();!i.done;i=o.next()){var a=i.value;if(e){var c=this.defaultProps[a];(c instanceof l.ReactiveVariable?c.equals(this[a]):c===this[a])||(n[a]=this[a])}else n[a]=this[a]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.prototype._innerSetJson=function(e,t,r){var n,o;if(e instanceof Object&&(!e.type||e.type===this.typeName)){e.id&&e.id!==this.id&&console.warn("value.id === undefined || value.id".concat(e.id," !== this.id(").concat(this.id,")"));var i=t||[];i.push("id","type");var a=Object.keys(this.defaultProps).filter((function(e){return!i.includes(e)}));try{for(var c=s(a),u=c.next();!u.done;u=c.next()){var f=u.value;if(f in e)this[f]=null===e[f]?void 0:e[f];else if(null==r||!r){var p=this.defaultProps[f];p instanceof l.ReactiveVariable&&(p=p.value),this[f]=p}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}else console.error("value.type && value.type".concat(e.type," !== this.typeName").concat(this.typeName))},t.prototype.setJsonWithoutDefaults=function(e){this._innerSetJson(e,void 0,!0)},t.prototype.setJsonWithDefaults=function(e){this._innerSetJson(e,void 0,!1)},t.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},t.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(t.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(e){try{this.json=e&&JSON.parse(e)||{}}catch(e){console.error("SceneObject解析json数据时发生错误!error: ".concat(e))}},enumerable:!1,configurable:!0}),t.prototype.addDevTag=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.devTags){var n=t.filter((function(t){return!e.devTags.includes(t)}));n.length>0&&(this.devTags=u(u([],c(this.devTags),!1),c(n),!1))}else this.devTags=t},t.prototype.deleteDevTag=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.devTags){var r=this.devTags.filter((function(t){return!e.includes(t)}));this.devTags=r}},Object.defineProperty(t.prototype,"selfCreatedEvent",{get:function(){var e=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new l.Event),this.dispose(t.context.sceneObjCreatedEvent.disposableOn((function(t){if(!e._selfCreatedEvent)throw new Error("!this._createdEvent");t===e&&e._selfCreatedEvent.emit()})))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),t.context=new p.SceneObjectsContext,t.register=t.context.register.bind(t.context),t.create=t.context.createSceneObject.bind(t.context),t.createFromClass=t.context.createSceneObjectFromClass.bind(t.context),t.createFromJson=t.context.createSceneObjectFromJson.bind(t.context),t}(l.Destroyable);t.SceneObject=d,function(e){e.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,l.reactArrayWithUndefined)(void 0),extras:(0,l.reactJson)(void 0)}}}(d=t.SceneObject||(t.SceneObject={})),t.SceneObject=d,(0,l.extendClassProps)(d.prototype,d.createDefaultProps),a(r(7703),t)},8876:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.unLoading=t.UnLoading=void 0;var i=r(8529),a=function(e){function t(){var t=e.call(this)||this;return t._unloadEvent=t.disposeVar(new i.Event),window.addEventListener("beforeunload",(function(){t._unloadEvent.emit(),t.destroy()})),t}return o(t,e),t.prototype.unload=function(e){this.dispose(this._unloadEvent.disposableOn(e,unescape,!0))},t}(i.Destroyable);t.UnLoading=a,t.unLoading=new a},6742:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjResetting=t.ObjResettingWithEvent=void 0;var s=r(8529),c=function(e){function t(t,r,n,o){void 0===n&&(n=!0);var c=e.call(this)||this;c._resetEvent=t,c._createFunc=r,c._obj=c.disposeVar((0,s.react)(void 0));var u=c._resetEvent,l=c._createFunc,f=function(){c._obj.value&&(c._obj.value.destroy(),c._obj.value=void 0)};return c.dispose(f),n&&(c._obj.value=o?l.apply(void 0,a([],i(o),!1)):l()),c.dispose(u.disposableOn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];f(),c._obj.value=l.apply(void 0,a([],i(e),!1))}))),c}return o(t,e),Object.defineProperty(t.prototype,"obj",{get:function(){return this._obj.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"objChanged",{get:function(){return this._obj.changed},enumerable:!1,configurable:!0}),t}(s.Destroyable);t.ObjResettingWithEvent=c;var u=function(e){function t(t,r,n){void 0===r&&(r=!0);var o=e.call(this)||this;return o._createFunc=t,o._execOnInit=r,o._initParams=n,o._event=o.disposeVar(new s.Event),o._objResettingWithEvent=o.disposeVar(new c(o._event,o._createFunc,o._execOnInit,o._initParams)),o}return o(t,e),Object.defineProperty(t.prototype,"obj",{get:function(){return this._objResettingWithEvent.obj},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"objChanged",{get:function(){return this._objResettingWithEvent.objChanged},enumerable:!1,configurable:!0}),t.prototype.reset=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this._event).emit.apply(e,a([],i(t),!1))},t}(s.Destroyable);t.ObjResetting=u},5685:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableSet=void 0;var c=r(8529),u=function(e){function t(){var r=e.call(this)||this;return r._set=new Set,r._toChangeEvent=r.disposeVar(new c.Event),r._changedEvent=r.disposeVar(new c.Event),r.dispose((function(){0!==r._set.size&&(t.warnOnDestroying&&console.warn("this._set.size > 0"),r.clear())})),r}return o(t,e),Object.defineProperty(t.prototype,"toChange",{get:function(){return this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changed",{get:function(){return this._changedEvent},enumerable:!1,configurable:!0}),t.prototype.add=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=i(r),a=o.next();!a.done;a=o.next()){var s=a.value;this._toChangeEvent.emit([],[s]),this._set.add(s),this._changedEvent.emit([],[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.delete=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=i(r),a=o.next();!a.done;a=o.next()){var s=a.value;this._toChangeEvent.emit([s],[]),this._set.delete(s),this._changedEvent.emit([s],[])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.disposableAdd=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.add.apply(this,s([],a(t),!1)),function(){return e.delete.apply(e,s([],a(t),!1))}},Object.defineProperty(t.prototype,"size",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),t.prototype.clear=function(){var e=s([],a(this._set),!1);this._toChangeEvent.emit([],e),this._set.clear(),this._changedEvent.emit([],e)},t.prototype.values=function(){return this._set.values()},t.warnOnDestroying=!0,t}(c.Destroyable);t.ObservableSet=u},2750:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6742),t),o(r(5685),t)},7563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartListenerPipe=t.SmartListenerHandler=t.ListenerPipe=t.Event=t.EventListenerHandler=t.DoublyLinkedList=t.react=t.ReactiveVariable=t.ObjPool=t.Destroyable=void 0;var n=r(8529);Object.defineProperty(t,"Destroyable",{enumerable:!0,get:function(){return n.Destroyable}});var o=r(8529);Object.defineProperty(t,"ObjPool",{enumerable:!0,get:function(){return o.ObjPool}});var i=r(8529);Object.defineProperty(t,"ReactiveVariable",{enumerable:!0,get:function(){return i.ReactiveVariable}}),Object.defineProperty(t,"react",{enumerable:!0,get:function(){return i.react}});var a=r(8529);Object.defineProperty(t,"DoublyLinkedList",{enumerable:!0,get:function(){return a.DoublyLinkedList}}),Object.defineProperty(t,"EventListenerHandler",{enumerable:!0,get:function(){return a.EventListenerHandler}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return a.Event}}),Object.defineProperty(t,"ListenerPipe",{enumerable:!0,get:function(){return a.ListenerPipe}}),Object.defineProperty(t,"SmartListenerHandler",{enumerable:!0,get:function(){return a.SmartListenerHandler}}),Object.defineProperty(t,"SmartListenerPipe",{enumerable:!0,get:function(){return a.SmartListenerPipe}})},8695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defined=void 0,t.defined=function(e){return null!=e}},5894:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(8695),t),o(r(604),t)},604:(e,t)=>{"use strict";function r(e,t){return e instanceof Promise?e.then(t):Promise.resolve(e).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.when=void 0,t.when=r,r.defer=function(){var e={},t=new Promise((function(t,r){e.resolve=t,e.reject=r}));return e.promise=t,e},r.resolve=function(e){return Promise.resolve(e)}},9794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineReactiveProp=void 0;var n=r(7563);t.defineReactiveProp=function(e,t,r,o){var i,a="_"+t,s="_"+t+"Changed",c=t+"Changed";Object.defineProperties(e.prototype,((i={})[t]={get:function(){return void 0===this[a]&&void 0!==r&&(this[a]=r),this[a]},set:function(e){if(void 0===this[a]&&void 0!==r&&(this[a]=r),o?!o(this[a],e):this[a]!==e){var t=this[a];this[a]=e,this[s]&&this[s].emit(e,t)}}},i[c]={get:function(){var e=this;return void 0===this[s]&&(this[s]=new n.Event,void 0!==this.dispose&&this.dispose((function(){return e[s].destroy()}))),this[s]}},i))}},8655:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9794),t)},835:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=[0,0]),t[0]=-e[1],t[1]=e[0],t}function n(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function o(e,t){void 0===t&&(t=[0,0]);var r=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(e);return t[0]=e[0]/r,t[1]=e[1]/r,t}function i(e,t){return void 0===t&&(t=[0,0]),t[0]=-e[0],t[1]=-e[1],t}function a(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]*t,r[1]=e[1]*t,r}function s(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function c(e,t){var r,n,o=(n=t,(r=e)[0]*n[0]+r[1]*n[1]),i=Math.acos(o);return 1/Math.cos(i/2)}function u(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e,r[1]=t,r}Object.defineProperty(t,"__esModule",{value:!0}),t.extrudePolyline=void 0;var l=[0,0],f=[0,0],p=[0,0],d=[0,0],h=[0,0],v=[0,0],y=[0,0],_=[0,0];function b(e,t,u,l,f,p){var b=n(e,t,_),g=r(o(b,b),d),m=n(u,e,_),w=r(o(m,m),v),O=i(g,h),P=i(w,y),j=s(g,w);o(j,j);var E,x,C=(x=w,(E=g)[0]*x[1]-E[1]*x[0]);if(Math.abs(C)<.1)s(F=a(j,l,_),e,F),p.push(F[0],F[1]),f.push(p.length/2),p.push(e[0],e[1]),f.push(p.length/2),a(M=i(j,_),l,M),s(M,e,M),p.push(M[0],M[1]),f.push(p.length/2);else if(C<0){s(F=a(g,l,_),e,F),p.push(F[0],F[1]);var S=a(j,l,_);s(S,e,S),p.push(S[0],S[1]),s(M=a(w,l,_),e,M),p.push(M[0],M[1]),f.push(p.length/2),p.push(e[0],e[1]),f.push(p.length/2),T=(T=c(P,O))>3?3:T,a(A=i(j,_),T*l,A),s(A,e,A),p.push(A[0],A[1]),f.push(p.length/2)}else{var T,F,M;s(F=a(j,(T=(T=c(g,w))>3?3:T)*l,_),e,F),p.push(F[0],F[1]),f.push(p.length/2),p.push(e[0],e[1]),f.push(p.length/2),s(M=a(O,l,_),e,M),p.push(M[0],M[1]);var A,k=i(j,_);a(k,l,k),s(k,e,k),p.push(k[0],k[1]),s(A=a(P,l,_),e,A),p.push(A[0],A[1]),f.push(p.length/2)}}var g=[];t.extrudePolyline=function(e,t,c,h,y,m){void 0===c&&(c=!1),h=null!=h?h:[],y=null!=y?y:[],m=null!=m?m:[];var w=g;w.length=0,function(e,t,c,h,y){if(void 0===c&&(c=!1),e.length%2!=0)throw new Error("positions.length % 2 !== 0");h=null!=h?h:[],y=null!=y?y:[];var g=e,m=g.length/2;if(!(m<2)){if(c){if(!(m>=3))throw new Error("loop should have >= 3 vertex!");var w=u(g[0],g[1],l),O=u(g[2],g[3],p);b(w,u(g[2*(m-1)+0],g[2*(m-1)+1],f),O,t,y,h)}else{w=u(g[0],g[1],l);var P=n(O=u(g[2],g[3],p),w,_),j=r(o(P,P),v);s(x=a(j,t,_),w,x),h.push(x[0],x[1]),y.push(h.length/2),h.push(w[0],w[1]),y.push(h.length/2),a(C=i(j,_),t,C),s(C,w,C),h.push(C[0],C[1]),y.push(h.length/2)}if(m>=3)for(var E=1;E<m-1;++E)w=u(g[2*E+0],g[2*E+1],l),O=u(g[2*(E+1)+0],g[2*(E+1)+1],p),b(w,u(g[2*(E-1)+0],g[2*(E-1)+1],f),O,t,y,h);if(c){if(!(m>=3))throw new Error("loop should have >= 3 vertex!");w=u(g[2*(m-1)+0],g[2*(m-1)+1],l),O=u(g[0],g[1],p),b(w,u(g[2*(m-2)+0],g[2*(m-2)*1],f),O,t,y,h)}else{var x,C,S=n(w=u(g[2*(m-1)+0],g[2*(m-1)+1],l),u(g[2*(m-2)+0],g[2*(m-2)+1],f),_),T=r(o(S,S),d);s(x=a(T,t,_),w,x),h.push(x[0],x[1]),y.push(h.length/2),h.push(w[0],w[1]),y.push(h.length/2),a(C=i(T,_),t,C),s(C,w,C),h.push(C[0],C[1]),y.push(h.length/2)}}}(e,.5*t,c,h,w),function(e,t,r,n,o){if(n=n||[],o=o||[],e.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(r.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var i=r.length/3,a=0,s=0;s<i;++s){for(var c=r[3*s+0],u=r[3*s+1],l=r[3*s+2],f=a;f<c;++f)n.push(0,0);if(c-a>=2)for(var p=a+1;p<c;++p)o.push(c,p,p-1);n.push(0,.5);for(var d=u;d<l;++d)n.push(0,1);if(l-u>=2)for(var h=u+1;h<l;++h)o.push(c,h-1,h);a=l}for(a=0,s=0;s<i-1;++s){var v=r[3*s+0]-1,y=r[3*s+1]-1,_=r[3*s+2]-1,b=r[3*s+2],g=r[3*(s+1)+0],m=r[3*(s+1)+1];o.push(v,y,g),o.push(v,g,b),o.push(y,_,m),o.push(y,m,g)}t&&(v=r[3*(i-1)+0]-1,y=r[3*(i-1)+1]-1,_=r[3*(i-1)+2]-1,b=0,g=r[0],m=r[1],o.push(v,y,g),o.push(v,g,b),o.push(y,_,m),o.push(y,m,g))}(h,c,w,y,m)}},6638:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(835),t)},1309:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Gif=void 0;var i=r(8529),a=r(2442),s=r(2442),c=r(2219),u=r(776),l=function(e){function t(t){var r=e.call(this)||this;return r._url=r.disposeVar((0,i.react)("")),r._loadGifFramesProcessing=r.disposeVar((0,s.createProcessingFromPromiseCreateFunc)((function(e){return(0,a.createCancelablePromise)((0,u.loadGifFrames)(e))}))),r._player=r.disposeVar(new c.GifPlayer(t)),r._player.autoPlayOnLoad=!0,r._loadGifFramesProcessing.completeFunc=function(e){var t=e.gifFrames;return r._player.gifFrames=t},r.dispose(r._url.changed.disposableOn((function(e){r._player.gifFrames=void 0,r._loadGifFramesProcessing.restart(new a.CancelError("reload gif(".concat(e,")")),e)}))),r}return o(t,e),Object.defineProperty(t.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._url.value},set:function(e){this._url.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadedEvent",{get:function(){return this._loadGifFramesProcessing.completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._player.gifSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeChanged",{get:function(){return this._player.gifSizeChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._player.gifDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"durationChanged",{get:function(){return this._player.gifDurationChanged},enumerable:!1,configurable:!0}),t}(i.Destroyable);t.Gif=l},2219:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.GifPlayer=void 0;var s=r(8529);function c(e,t,r){return e<t?t:e>r?r:e}var u=function(e){function t(t,r,n){void 0===r&&(r=!0);var o=e.call(this)||this;o._container=t,o._gifFrames=o.disposeVar((0,s.react)(void 0)),o._gifDurations=[],o._gifDuration=o.disposeVar((0,s.react)(0)),o._gifSize=o.disposeVar((0,s.react)([0,0],(function(e,t){return e.every((function(e,r){return e===t[r]}))}),(function(e){return a([],i(e),!1)}))),o._autoPlayOnLoad=o.disposeVar((0,s.react)(!0)),o.loop=!0;var u=document.createElement("canvas");o._gifCanvas=u,u.style.width="100%",u.style.height="100%";var l,f=u.getContext("2d");o._container&&o._container.appendChild(u),o.dispose((function(){return o._container&&o._container.removeChild(u)})),o.dispose(o._gifFrames.changed.disposableOn((function(e){if(!e||0===e.length)return u.width=0,void(u.height=0);var t=e[0].dims,r=t.width,n=t.height;o._gifSize.value=[r,n];var i=e.length,a=0;o._gifDurations.length=0;for(var s=0;s<i;++s)a+=e[s].delay,o._gifDurations.push(a);o._gifDuration.value=o._gifDurations[o._gifDurations.length-1],u.width=r,u.height=n,l=f.createImageData(r,n),o.currentTimeChangedEvent.emit(o.currentTime,o.currentTime),o._autoPlayOnLoad.value&&(o.currentTime=0,o.playing=!0)})));var p=-1;return o.dispose(o.currentTimeChangedEvent.disposableOn((function(e){var t=c(e/o.duration,0,1),r=o.gifDuration*t,n=o._gifFrames.value;if(n&&n.length>0){var a=o._getFrame(r);if(a===p)return;p=a;var u=n[a];if(0!==u.disposalType&&1!==u.disposalType&&2!==u.disposalType&&(0,s.oneTimeWarning)("gif parsed get disposalType ".concat(u.disposalType,"... frame: ").concat(a," size: ").concat(JSON.stringify(u.dims)),"gif parsed get disposalType ".concat(u.disposalType,"...")),!l||0!==a&&2!==u.disposalType||l.data.fill(0),l){var d=i(o._gifSize.value,2),h=d[0],v=d[1],y=u.dims,_=y.width,b=y.height,g=y.left,m=y.top;if(b>v)throw new Error("height > canvasHeight");for(var w=0;w<b;++w)for(var O=0;O<_;++O){var P=w*_+O,j=(m+w)*h+(g+O),E=l.data,x=u.patch,C=x[4*P+3]/255;E[4*j+0]=E[4*j+0]*(1-C)+x[4*P+0]*C|0,E[4*j+1]=E[4*j+1]*(1-C)+x[4*P+1]*C|0,E[4*j+2]=E[4*j+2]*(1-C)+x[4*P+2]*C|0,E[4*j+3]=0|c(E[4*j+3]+x[4*P+3],0,255)}f.putImageData(l,0,0)}}else(0,s.oneTimeWarning)("gif资源未加载!无法播放!")}))),o.dispose(o._gifDuration.changed.disposableOn((function(){o.duration=o.gifDuration}))),o._autoPlayOnLoad.value=r,o._gifFrames.value=n,o}return o(t,e),Object.defineProperty(t.prototype,"gifCanvas",{get:function(){return this._gifCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifFrames",{get:function(){return this._gifFrames.value},set:function(e){this._gifFrames.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifFramesChanged",{get:function(){return this._gifFrames.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifSize",{get:function(){return this._gifSize.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifSizeChanged",{get:function(){return this._gifSize.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifDuration",{get:function(){return this._gifDuration.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gifDurationChanged",{get:function(){return this._gifDuration.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoPlayOnLoad",{get:function(){return this._autoPlayOnLoad.value},set:function(e){this._autoPlayOnLoad.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoPlayOnLoadChanged",{get:function(){return this._autoPlayOnLoad.changed},enumerable:!1,configurable:!0}),t.prototype._getFrame=function(e){for(var t=this._gifDurations.length,r=0;r<t;++r)if(e<=this._gifDurations[r])return r;throw new Error("should not be here")},t}(r(588).Player);t.GifPlayer=u},7560:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(776),t),o(r(2219),t),o(r(1309),t)},776:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadGifFrames=void 0;var i=r(9704);t.loadGifFrames=function(e){return n(this,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:return[4,fetch(e)];case 1:return[4,o.sent().arrayBuffer()];case 2:return t=o.sent(),r=(0,i.parseGIF)(t),n=(0,i.decompressFrames)(r,!0),[2,{gif:r,gifFrames:n,arrayBuffer:t}]}}))}))}},7581:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9824),t),o(r(4590),t),o(r(406),t),o(r(2517),t),o(r(588),t),o(r(202),t),o(r(1539),t),o(r(4266),t),o(r(2442),t),o(r(7575),t),o(r(8861),t),o(r(2750),t),o(r(5894),t),o(r(8655),t),o(r(1100),t),o(r(3935),t),o(r(6409),t),o(r(2075),t),o(r(5586),t),o(r(7599),t),o(r(6507),t),o(r(8876),t),o(r(6638),t),o(r(4828),t),o(r(6053),t),o(r(7560),t)},1100:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBASIS=t.CompressedTextureBuffer=void 0;var n=r(9928);Object.defineProperty(t,"CompressedTextureBuffer",{enumerable:!0,get:function(){return n.CompressedTextureBuffer}});var o=r(2075),i=r(604),a=r(8695),s=r(8529),c=Error,u=new o.TaskProcessor("transcodeBASISToTexture",Number.POSITIVE_INFINITY);t.loadBASIS=function(e,t){if(!e)throw new c("resourceOrUrlOrBuffer is required.");var r;if(r=e instanceof ArrayBuffer||ArrayBuffer.isView(e)?i.when.resolve(e):(0,s.fetchArrayBuffer)(e),(0,a.defined)(r))return r.then((function(e){if((0,a.defined)(e)){var r=[];e instanceof ArrayBuffer?r.push(e):(0===e.byteOffset&&e.byteLength===e.buffer.byteLength||(e=e.slice(0,e.length)),r.push(e.buffer));var n={data:e,textureFormat:t};return u.scheduleTask(n,r)}})).then((function(e){return e||console.error("compressedTextureBuffer is undefined!"),n.CompressedTextureBuffer.clone(e)}))}},3935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadCRN=void 0;var n=r(9928),o=r(2075),i=r(604),a=r(8695),s=r(8529),c=Error,u=new o.TaskProcessor("transcodeCRNToDXT",Number.POSITIVE_INFINITY);t.loadCRN=function(e){if(!(0,a.defined)(e))throw new c("resourceOrUrlOrBuffer is required.");var t;if(t=e instanceof ArrayBuffer||ArrayBuffer.isView(e)?i.when.resolve(e):(0,s.fetchArrayBuffer)(e),(0,a.defined)(t))return t.then((function(e){if((0,a.defined)(e)){var t=[];return e instanceof ArrayBuffer?t.push(e):(0===e.byteOffset&&e.byteLength===e.buffer.byteLength||(e=e.slice(0,e.length)),t.push(e.buffer)),u.scheduleTask(e,t)}})).then((function(e){return e||console.error("compressedTextureBuffer is undefined!"),n.CompressedTextureBuffer.clone(e)}))}},4892:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasImagePoi=void 0;var a=r(8529),s=r(1539),c=r(6399),u=r(5484);function l(e,t){var r=i(t,3),n=r[0],o=r[1],s=r[2],c="".concat(n,"-").concat(o,"-").concat(s),l=(0,a.getExtProp)(e,c);return l||(l=(0,u.imageToCanvas)(e),(0,u.setCanvasUniformColor)(l,t),(0,a.setExtProp)(e,c,l)),l}var f=function(e){function t(t,r,n,o,i){void 0===n&&(n=[32,32]),void 0===o&&(o=[.5,1,0,0]),void 0===i&&(i="#F00F");var a=e.call(this,t)||this;a._image=r,a._size=n,a._originRatioAndOffset=o,a._defaultColorStr=i,a._tooltip="",a._title="",a.__scale=[1,1],a._tooltipAlpha=0,a._bgColor=[.3,.3,.3,.8],a._bgColorHexStr=(0,u.getColorHexStr)(a._bgColor),a._fgColor=[1,1,1,1],a._fgColorHexStr=(0,u.getColorHexStr)(a._fgColor);var c=new s.Transition(100),l=new s.Transition(100);a.dispose((function(){c.destroy(),l.destroy()}));var f=function(){if(a._clickEvent&&!a._clickEvent.empty){var e=(1+.08*l.current)*(1+.08*c.current);a._scale=[e,e],a._tooltipAlpha=c.current}};return a.dispose(a.activedChanged.disposableOn((function(e){l.target=e?1:0,a.needRedraw()}))),a.dispose(a.hoveredChanged.disposableOn((function(e){c.target=e?1:0,a.needRedraw()}))),a.dispose(a.selectedChanged.disposableOn((function(){a.needRedraw()}))),a.dispose(l.currentChanged.disposableOn(f)),a.dispose(c.currentChanged.disposableOn(f)),a}return o(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){var t=i(e,2),r=t[0],n=t[1],o=i(this._size,2),a=o[0],s=o[1];a===r&&s===n||(this._size[0]=r,this._size[1]=n,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_scale",{get:function(){return this.__scale},set:function(e){var t=i(e,2),r=t[0],n=t[1],o=i(this.__scale,2),a=o[0],s=o[1];a===r&&s===n||(this.__scale[0]=r,this.__scale[1]=n,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fgColor",{get:function(){return this._fgColor},set:function(e){if(!this._fgColor.every((function(t,r){return e[r]===t}))){var t=i(e,4),r=t[0],n=t[1],o=t[2],a=t[3];this._fgColor.splice(0,4,r,n,o,a),this._fgColorHexStr=(0,u.getColorHexStr)(this._fgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bgColor",{get:function(){return this._bgColor},set:function(e){if(!this._bgColor.every((function(t,r){return e[r]===t}))){var t=i(e,4),r=t[0],n=t[1],o=t[2],a=t[3];this._bgColor.splice(0,4,r,n,o,a),this._bgColorHexStr=(0,u.getColorHexStr)(this._bgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originRatioAndOffset",{get:function(){return this._originRatioAndOffset},set:function(e){var t=i(this._originRatioAndOffset,4),r=t[0],n=t[1],o=t[2],a=t[3],s=i(e,4),c=s[0],u=s[1],l=s[2],f=s[3];r===c&&n===u&&o===l&&a===f||(this._originRatioAndOffset.splice(0,4,c,u,l,f),this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"image",{get:function(){return this._image},set:function(e){this._image!==e&&(this._image=e,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultColorStr",{get:function(){return this._defaultColorStr},set:function(e){this._defaultColorStr!==e&&(this._defaultColorStr=e,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._tooltip!==e&&(this._tooltip=e,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.needRedraw())},enumerable:!1,configurable:!0}),t.prototype.draw=function(e){if(this._show){var t=i(this._winPos,2),r=t[0],n=t[1],o=this._size[0]*this.__scale[0],a=this._size[1]*this.__scale[1],s=(0,u.getDrawRect)([r,n],this._size,this.__scale,this._originRatioAndOffset),c=s.left,f=s.top,p=e.globalAlpha;if(e.globalAlpha=this.opacity,this._image){if(this.selected){var d=l(this._image,[1,0,0]),h=(0,u.getDrawRect)([r,n+3],[o+6,a+6],[1,1],this._originRatioAndOffset),v=h.left,y=h.top;e.drawImage(d,v,y,o+6,a+6)}if(this.actived){var _=i(this._fgColor,4),b=_[0],g=_[1],m=_[2],w=(_[3],d=l(this._image,[b,g,m]),(0,u.getDrawRect)([r,n+4],[o+8,a+8],[1,1],this._originRatioAndOffset)),O=w.left,P=w.top;e.drawImage(d,O,P,o+8,a+8)}if(this.hovered){var j=i(this._bgColor,4),E=(b=j[0],g=j[1],m=j[2],j[3],l(this._image,[b,g,m])),x=(0,u.getDrawRect)([r,n+2],[o+4,a+4],[1,1],this._originRatioAndOffset),C=x.left,S=x.top;e.drawImage(E,C,S,o+4,a+4)}e.drawImage(this._image,c,f,o,a)}else e.fillStyle=this._fgColorHexStr,e.fillRect(c,f,o,a);if(""!==this._title&&(0,u.drawTextBlock)(e,r+20,n-16,[0,.5,0,0],this._title,"14px Arial",4,this._fgColorHexStr,this._bgColorHexStr),e.globalAlpha=p,this._hovered&&""!==this._tooltip){var T=e.globalAlpha;e.globalAlpha=this._tooltipAlpha,(0,u.drawTextBlock)(e,r,n-42,[.5,1,0,0],this._tooltip,"12px Arial",4,this._fgColorHexStr,this._bgColorHexStr),e.globalAlpha=T}}},t.prototype.drawForPick=function(e,t){if(this._show){var r=i(this._winPos,2),n=r[0],o=r[1],a=t("default"),s=this._size[0]*this.__scale[0],c=this._size[1]*this.__scale[1],l=(0,u.getDrawRect)([n,o],this._size,this.__scale,this._originRatioAndOffset),f=l.left,p=l.top;e.fillStyle=a,e.fillRect(f,p,s,c)}},t}(c.CanvasPoi);t.CanvasImagePoi=f},6399:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPoi=void 0;var i=r(7563),a=function(e){function t(t,r,n){void 0===r&&(r=[0,0]),void 0===n&&(n=0);var o=e.call(this,t)||this;return o._winPos=r,o._depth=n,o.dispose(o.winPosAndDepthChanged.disposableOn((function(){o.needRedraw(),o.needPickRedraw()}))),o}return o(t,e),Object.defineProperty(t.prototype,"winPos",{get:function(){return this._winPos},set:function(e){this._winPos[0]===e[0]&&this._winPos[1]===e[1]||(this._winPos[0]=e[0],this._winPos[1]=e[1],this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return this._depth},set:function(e){this._depth!==e&&(this._depth=e,this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"winPosAndDepthChanged",{get:function(){return this._winPosAndDepthChanged||(this._winPosAndDepthChanged=new i.Event),this._winPosAndDepthChanged},enumerable:!1,configurable:!0}),t}(r(214).CanvasPrimitive);t.CanvasPoi=a},8289:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPointPoi=void 0;var a=r(1539),s=r(7563),c=r(6399),u=r(5484),l=function(e){function t(t){var r=e.call(this,t)||this;r._width=16,r._text="",r._fillStyle="#0F0",r._scale=1,r.dispose(r.scaleChanged.disposableOn((function(e){r.needRedraw(),r.needPickRedraw()})));var n=r.disposeVar(new a.Transition(100)),o=r.disposeVar(new a.Transition(100)),i=function(){r._clickEvent&&!r._clickEvent.empty&&(r.scale=(1+.1*o.current)*(1+.2*n.current))};return r.dispose(o.currentChanged.disposableOn(i)),r.dispose(n.currentChanged.disposableOn(i)),r.dispose(r.activedChanged.disposableOn((function(e){o.target=e?1:0,r.needRedraw()}))),r.dispose(r.hoveredChanged.disposableOn((function(e){n.target=e?1:0,r.needRedraw()}))),r.dispose(r.selectedChanged.disposableOn((function(e){r.needRedraw()}))),r}return o(t,e),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale!==e&&(this._scale=e,this._scaleChanged&&this._scaleChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleChanged",{get:function(){return this._scaleChanged||(this._scaleChanged=new s.Event),this._scaleChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){this._text!==e&&(this._text=e,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(e){this._fillStyle!==e&&(this._fillStyle=e,this.needRedraw())},enumerable:!1,configurable:!0}),t.prototype.draw=function(e){if(this._show){var t=i(this._winPos,2),r=t[0],n=t[1],o=e.globalAlpha;e.globalAlpha=this.opacity;var a=this._width*this._scale;this.selected&&(0,u.drawPoint)(e,r,n+3,a+3,"#F00"),this.actived&&this._clickEvent&&!this._clickEvent.empty&&(0,u.drawPoint)(e,r,n+5,a+5,"#FFF"),this.hovered?(0,u.drawPoint)(e,r,n+3,a+3,"#000A"):(0,u.drawPoint)(e,r,n+1,a+1,"#000A"),(0,u.drawPoint)(e,r,n,a,this._fillStyle);var s=this._scale>1.2?"bold 14px Arial":"bold 10px Arial";(0,u.drawText)(e,r,n-a,this._text,s,"#000"),e.globalAlpha=o}},t.prototype.drawForPick=function(e,t){if(this._show){var r=i(this._winPos,2),n=r[0],o=r[1],a=this._width*this._scale,s=t("default");(0,u.drawPoint)(e,n,o,a,s)}},t}(c.CanvasPoi);t.CanvasPointPoi=l},214:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPrimitive=void 0;var i=r(8529),a=r(7563),s=r(7563),c=function(e){function t(t,r){void 0===r&&(r={});var n=e.call(this)||this;n._canvasPrimitivesContext=t,n._id=(0,i.createGuid)(),n._actived=!1,n._hovered=!1,n._selected=!1,n._opacity=1,n._show=!0;var o=r.needRedraw,a=void 0===o||o,c=r.needPickRedraw,u=void 0===c||c;return a&&(n._needRedrawEvent=new s.Event),u&&(n._needPickRedrawEvent=new s.Event),n._canvasPrimitivesContext.addPoi(n),n.dispose((function(){return n._canvasPrimitivesContext.removePoi(n)})),n.dispose(n.showChanged.disposableOn((function(){n.needRedraw(),n.needPickRedraw()}))),n.dispose(n.opacityChanged.disposableOn((function(){return n.needRedraw()}))),n}return o(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),t.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},t.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},t.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(t.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new s.Event,this._clickEvent},enumerable:!1,configurable:!0}),t.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(t.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new s.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),t.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(t.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new s.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),t.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(t.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new s.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actived",{get:function(){return this._actived},set:function(e){this._actived!==e&&(this._actived=e,this._activedChanged&&this._activedChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new s.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hovered",{get:function(){return this._hovered},set:function(e){this._hovered!==e&&(this._hovered=e,this._hoveredChanged&&this._hoveredChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new s.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected!==e&&(this._selected=e,this._selectedChanged&&this._selectedChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new s.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(e){this._opacity!==e&&(this._opacity=e,this._opacityChanged&&this._opacityChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new s.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return this._show},set:function(e){this._show!==e&&(this._show=e,this._showChanged&&this._showChanged.emit(e,this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new s.Event,this._showChanged},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.CanvasPrimitive=c},6222:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPrimitivesContext=void 0;var a=r(8529),s=r(1539),c=r(7563),u=r(2840),l=function(e,t){return t.depth-e.depth},f=function(e){function t(){var t=e.call(this)||this;t._pois=[],t._size=[0,0],t._needRedraw=!1,t._needPickRedraw=!1,t._pickColorManager=new u.PickColorMananger;var r=document.createElement("canvas");r.style.width="100%",r.style.height="100%",t._canvasElement=r;var n=r.getContext("2d");if(null===n)throw new Error("cannot get context 2d!");return t._ctx=n,t._offscreenCanvasElement=document.createElement("canvas"),t._offscreenCtx=t._offscreenCanvasElement.getContext("2d"),t._offscreenCtx.imageSmoothingEnabled=!1,t._offscreenCanvasElement2=document.createElement("canvas"),t._offscreenCtx2=t._offscreenCanvasElement2.getContext("2d"),t._offscreenCtx2.imageSmoothingEnabled=!1,t.disposeVar((0,s.createAnimateFrameWithStartValues)((function(){var e=i(t._size,2),r=e[0],n=e[1],o=t._canvasElement,a=o.clientWidth,s=o.clientHeight;r===a&&n===s||(t._size[0]=a,t._size[1]=s,t._canvasElement.width=a,t._canvasElement.height=s,t._offscreenCanvasElement.width=a,t._offscreenCanvasElement.height=s,t._offscreenCanvasElement2.width=a,t._offscreenCanvasElement2.height=s,t._dirty()),t._needRedraw&&(t._needRedraw=!1,t._draw())}))).start(),t}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pois",{get:function(){return this._pois},enumerable:!1,configurable:!0}),t.prototype._dirty=function(){this._needRedraw=!0,this._needPickRedraw=!0},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.addPoi=function(e){var t=this;if(void 0===(0,a.getExtProp)(e,"listenHandler"))if(-1===this._pois.indexOf(e)){this._pois.push(e),this._dirty();var r=e._needRedrawEvent;if(r){var n=r.on((function(){t._needRedraw=!0}));(0,a.setExtProp)(e,"needRedrawEventHandler",n)}var o=e._needPickRedrawEvent;if(o){var i=o.on((function(){t._needPickRedraw=!0}));(0,a.setExtProp)(e,"needPickRedrawEventHandler",i)}}else console.error("同一个poi加了多次!");else console.error("可能有poi重复加载poiManager中!")},t.prototype.removePoi=function(e){var t=this._pois.indexOf(e);if(-1!==t){this._pois.splice(t,1),this._dirty();var r=e._needRedrawEvent;if(r){var n=(0,a.getExtProp)(e,"needRedrawEventHandler");n?r.off(n):console.error("poi没有listenHandler!")}var o=e._needPickRedrawEvent;if(o){var i=(0,a.getExtProp)(e,"needPickRedrawEventHandler");i?o.off(i):console.error("poi没有listenHandler!")}}else console.error("删除一个不存在的poi!")},t.prototype._draw=function(){var e=this;this._pois.sort(l);var t=i(this._size,2),r=t[0],n=t[1];this._ctx.clearRect(0,0,r,n),this._pois.forEach((function(t){return t.draw(e._ctx)}))},t.prototype.pick=function(e,t,r,n){return this._needPickRedraw&&(this._needPickRedraw=!1,this._pickDraw()),this._getPickInfo(e,t,r,n)},t.prototype._pickDraw=function(){var e=this;this._pickColorManager.reset(),this._pois.sort(l);var t=i(this._size,2),r=t[0],n=t[1];this._offscreenCtx.clearRect(0,0,r,n),this._pois.forEach((function(t){t.drawForPick(e._offscreenCtx,(function(r){var n=i(e._pickColorManager.createPickColor(t,r),3),o=n[0],a=n[1],s=n[2];return"rgb(".concat(o,", ").concat(a,", ").concat(s,")")}))}))},t.prototype._getPickInfo=function(e,t,r,n){for(var o=this._offscreenCtx.getImageData(e,t,r,n),a=[],s=o.data.length/4,c=0;c<s;++c){var u=o.data[4*c+0],l=o.data[4*c+1],f=o.data[4*c+2];if(255===o.data[4*c+3]){var p=this._pickColorManager.getPickInfoFromColor(u,l,f);if(p&&p.poi&&!a.includes(p)){var d=!0,h=i(this._size,2),v=h[0],y=h[1];this._offscreenCtx2.clearRect(0,0,v,y),p.poi.drawForPick(this._offscreenCtx2,(function(e){return"rgb(255, 255, 255)"}));var _=this._offscreenCtx2.getImageData(e,t,r,n),b=_.data[4*c+0],g=_.data[4*c+1],m=_.data[4*c+2];_.data[4*c+3],255===b&&255===g&&255===m||(d=!1),d&&a.push(p)}}}return a},t}(c.Destroyable);t.CanvasPrimitivesContext=f},2840:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PickColorMananger=t.uint8sToUint32=t.uint32ToUint8s=void 0;var a=r(7563),s=new ArrayBuffer(4),c=new Uint32Array(s),u=new Uint8Array(s);function l(e){if(e>=16777215)throw new Error("uint32 > 0xFFFFFF");return c[0]=e,[u[0],u[1],u[2]]}function f(e,t,r){return u[0]=e,u[1]=t,u[2]=r,u[3]=0,c[0]}t.uint32ToUint8s=l,t.uint8sToUint32=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._pickColors=new Array(16777215),t._pickColorIndex=0,t}return o(t,e),t.prototype.reset=function(){for(var e=0;e<this._pickColorIndex;++e){var t=this._pickColors[e];if(!t)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");t.poi=null,t.tag=""}this._pickColorIndex=0},t.prototype.createPickColor=function(e,t){var r=this._pickColorIndex;++this._pickColorIndex;var n=this._pickColors[r];n?(n.poi=e,n.tag=t):this._pickColors[r]={poi:e,tag:t};var o=i(l(r),3);return[o[0],o[1],o[2]]},t.prototype.getPickInfoFromColor=function(e,t,r){var n=f(e,t,r);if(n>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var o=this._pickColors[n];if(o)return o;console.error("!this._pickColors[index]")}},t.prototype.destroyImp=function(){this.reset()},t}(a.Destroyable);t.PickColorMananger=p},5484:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function n(e,t,n,o){var i=r(e,2),a=i[0],s=i[1],c=r(o,4),u=c[0],l=c[1],f=c[2],p=c[3],d=t[0]*n[0],h=t[1]*n[1],v=a-(d*u+f),y=s-(h*l+p);return{left:v,top:y,right:v+d,bottom:y+h}}function o(e,t,r,n,o,i){e.beginPath(),e.moveTo(t+i,r),e.lineTo(t+n-i,r),e.arcTo(t+n,r,t+n,r+i,i),e.lineTo(t+n,r+o-i),e.arcTo(t+n,r+o,t+n-i,r+o,i),e.lineTo(t+i,r+o),e.arcTo(t,r+o,t,r+o-i,i),e.lineTo(t,r+i),e.arcTo(t,r,t+i,r,i)}function i(e){return("00"+e.toString(16).toUpperCase()).substr(-2)}Object.defineProperty(t,"__esModule",{value:!0}),t.getColorHexStr=t.uint8ToHexStr=t.drawTextBlock=t.setCanvasUniformColor=t.imageToCanvas=t.drawText=t.drawRoundRectPath=t.drawPoint=t.getDrawRect=void 0,t.getDrawRect=n,t.drawPoint=function(e,t,r,n,o){e.beginPath(),e.moveTo(t,r),e.lineTo(t-.5*n,r-.5*n),e.arc(t,r-n,.7071067811865475*n,.75*Math.PI,.25*Math.PI),e.lineTo(t,r),e.fillStyle=o,e.fill()},t.drawRoundRectPath=o,t.drawText=function(e,t,r,n,o,i){e.font=o;var a=e.measureText(n),s=a.actualBoundingBoxLeft+a.actualBoundingBoxRight,c=Number.isFinite(a.fontBoundingBoxAscent)?a.fontBoundingBoxAscent:a.actualBoundingBoxAscent,u=Number.isFinite(a.fontBoundingBoxDescent)?a.fontBoundingBoxDescent:a.actualBoundingBoxDescent,l=c+u;e.fillStyle=i,e.fillText(n,t-.5*s,r+.5*l-u)},t.imageToCanvas=function(e){var t=e.width,r=e.height,n=t instanceof SVGAnimatedLength?t.baseVal.SVG_LENGTHTYPE_PX:t,o=r instanceof SVGAnimatedLength?r.baseVal.SVG_LENGTHTYPE_PX:r,i=document.createElement("canvas");i.width=n,i.height=o;var a=i.getContext("2d");if(!a)throw new Error("!cavnasCtx");return a.drawImage(e,0,0,n,o),i},t.setCanvasUniformColor=function(e,t){var n=e.width,o=e.height,i=e.getContext("2d");if(!i)throw new Error("!cavnasCtx");for(var a=r(t.map((function(e){return 255*e|0})),3),s=a[0],c=a[1],u=a[2],l=i.getImageData(0,0,n,o),f=l.data,p=0;p<f.length;p+=4)f[p]=s,f[p+1]=c,f[p+2]=u;i.putImageData(l,0,0)},t.drawTextBlock=function(e,t,r,i,a,s,c,u,l){void 0===i&&(i=[.5,1,0,0]),void 0===s&&(s="12px Arial"),void 0===c&&(c=2),void 0===u&&(u="#FFF"),void 0===l&&(l="#000A"),e.font=s;var f=e.measureText(a),p=f.actualBoundingBoxLeft+f.actualBoundingBoxRight+2*c,d=f.fontBoundingBoxAscent+f.fontBoundingBoxDescent+2*c,h=n([t,r],[p,d],[1,1],i),v=h.left,y=h.top,_=h.bottom;e.fillStyle=l,o(e,v,y,p,d,c),e.fill(),e.fillStyle=u,e.fillText(a,v+c,_-c-f.fontBoundingBoxDescent)},t.uint8ToHexStr=i,t.getColorHexStr=function(e){var t=r(e.map((function(e){return 255*e|0})),4),n=t[0],o=t[1],a=t[2],s=t[3];return"#".concat(i(n)).concat(i(o)).concat(i(a)).concat(i(s))}},3723:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(4892),t),o(r(6399),t),o(r(8289),t),o(r(214),t),o(r(6222),t),o(r(5484),t),o(r(2840),t)},7498:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.BorderedPosFloatDiv=t.createBottomTriangleElement=t.createCloseDiv=void 0;var a=r(7563),s=r(9559),c=["top","bottom","left","right"];function u(e,t,r){var n,o=document.createElement("div");return o.style.cssText="position: absolute; ".concat((n=r,Object.entries(n).map((function(e){var t=i(e,2),r=t[0],n=t[1];return c.includes(r)?"".concat(r,": ").concat(n,"px; "):""})).join(""))," background-color: ").concat(e,"; border-radius: ").concat(t,"px;"),o.innerHTML='<svg viewBox="0 0 1024 1024" style="display: block;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2420" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M512 128C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384S723.2 128 512 128zM512 832c-179.2 0-320-140.8-320-320s140.8-320 320-320 320 140.8 320 320S691.2 832 512 832z" p-id="2421" fill="#ffffff"></path><path d="M672 352c-12.8-12.8-32-12.8-44.8 0L512 467.2 396.8 352C384 339.2 364.8 339.2 352 352S339.2 384 352 396.8L467.2 512 352 627.2c-12.8 12.8-12.8 32 0 44.8s32 12.8 44.8 0L512 556.8l115.2 115.2c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L556.8 512l115.2-115.2C684.8 384 684.8 364.8 672 352z" p-id="2422" fill="#ffffff"></path></svg>',o}function l(e,t,r){void 0===r&&(r="rgba(0,0,0,0.7)");var n=document.createElement("div");n.style.cssText="margin: 0 auto; width: ".concat(e,"px; height: ").concat(t,"px; position: relative; pointer-events: none;");var o=document.createElement("div");return o.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*e,"px solid transparent; border-right: ").concat(.5*e,"px solid transparent; border-top: ").concat(t,"px solid ").concat(r,";"),n.appendChild(o),[n,o]}t.createCloseDiv=u,t.createBottomTriangleElement=l;var f=function(e){function t(){var t=e.call(this)||this;t._colorStr="rgba(0, 0, 0, 0.7)",t._divColorChanged=new a.Event,t._borderRadius=10;var r=document.createElement("div");r.style.cssText="position: relative; background-color: ".concat(t._colorStr,"; border-radius: ").concat(t._borderRadius,"px; padding: 5px; pointer-events: all;"),t._borderDiv=r;var n=u(t._colorStr,10,{top:3,right:3}),o=i(l(2*t._borderRadius,2*t._borderRadius,t._colorStr),2),s=o[0],c=o[1],f=document.createElement("div");t._innerContentDiv=f,r.appendChild(f),r.appendChild(n),t.contentDiv.appendChild(r),t.contentDiv.appendChild(s),n.style.opacity="0.1",n.onmouseenter=function(){n.style.opacity="1.0"},n.onmouseleave=function(){n.style.opacity="0.1"},n.onclick=function(){t._closeEvent&&t._closeEvent.emit()},t._closeDiv=n,t.dispose(t._divColorChanged.disposableOn((function(){c.style.borderTopColor=t._colorStr,r.style.backgroundColor=t._colorStr,s.style.width="".concat(2*t._borderRadius,"px"),s.style.height="".concat(2*t._borderRadius,"px"),c.style.borderLeft="".concat(t._borderRadius,"px"),c.style.borderRight="".concat(t._borderRadius,"px"),c.style.borderTop="".concat(2*t._borderRadius,"px")})));var p=function(e){"Escape"===e.key&&t._closeEvent&&t._closeEvent.emit()};return document.body.addEventListener("keydown",p,!0),t.dispose((function(){document.removeEventListener("keydown",p,!0)})),t}return o(t,e),Object.defineProperty(t.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",e.prototype.reset.call(this)},Object.defineProperty(t.prototype,"colorStr",{get:function(){return this._colorStr},set:function(e){this._colorStr!==e&&(this._colorStr=e,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(e){this._borderRadius!==e&&(this._borderRadius=e,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),t}(s.PosFloatDiv);t.BorderedPosFloatDiv=f},9332:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorInfo=t.CursorFloatDiv=void 0;var a=r(7563),s=r(202),c=r(6956),u=function(e){function t(){var t=e.call(this)||this;return t.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.contentDiv.style.borderRadius="3px",t.contentDiv.style.color="rgb(255, 255, 255)",t.contentDiv.style.padding="1px 5px 1px 5px",t.contentDiv.style.fontSize="12px",t.contentDiv.style.whiteSpace="nowrap",t.contentDiv.innerText="未定义光标信息!",t.originRatioX=0,t.originRatioY=0,t.originOffsetX=-16,t}return o(t,e),t}(c.PosFloatDiv);t.CursorFloatDiv=u;var l=function(e){function t(t,r){var n=e.call(this)||this;n._pointerOut=n.disposeVar((0,a.react)(!1)),n._show=n.disposeVar((0,a.react)(!0)),n._cursorDiv=new c.DivPoi(r,t),n.dispose((function(){return n._cursorDiv.destroy()}));var o=function(e){var t=i((0,s.getDomEventCurrentTargetPos)(e),2),r=t[0],o=t[1];n._cursorDiv.floatDiv.winPos=[r,o]};t.addEventListener("pointermove",o),n.dispose((function(){return t.removeEventListener("pointermove",o)}));var u=function(){n._cursorDiv.show=n.show&&n._pointerOut.value};return u(),n.dispose(n.showChanged.disposableOn(u)),n.dispose(n._pointerOut.changed.disposableOn(u)),n}return o(t,e),Object.defineProperty(t.prototype,"show",{get:function(){return this._show.value},set:function(e){this._show.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(t.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(e){this._cursorDiv.floatDiv.contentDiv.innerText=e},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.CursorInfo=l},9095:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.DivPoi=void 0;var i=r(7563),a=r(7563),s=r(5351),c=function(e){function t(t,r){var n=e.call(this)||this;return n._customDivClass=t,n._divContainer=r,n._show=!1,n.dispose((function(){n.show=!1})),n}return o(t,e),t.prototype._updateDivPoi=function(){if(this._show){var e=this.floatDiv;e.element.parentElement||this._divContainer.appendChild(e.element)}else{var t=this._floatDiv;t&&t.element.parentElement&&this._divContainer.removeChild(t.element)}},Object.defineProperty(t.prototype,"show",{get:function(){return this._show},set:function(e){this._show!==e&&(this._show=e,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"floatDiv",{get:function(){var e=this;if(!this._floatDiv){var t=(0,s.getFloatDivPool)(this._customDivClass).create();this.dispose((function(){(0,s.getFloatDivPool)(e._customDivClass).destroy(t)})),this._floatDiv=t}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new i.Event),this._showChanged},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.DivPoi=c},5351:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.getFloatDivPool=t.FloatDiv=void 0;var a=r(7563),s=r(7563),c=r(7563),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._show=!0,t._opacity=1,t._winPos=[0,0],t}return o(t,e),Object.defineProperty(t.prototype,"winPos",{get:function(){return this._winPos},set:function(e){var t=i(e,2),r=t[0],n=t[1],o=i(this._winPos,2),a=o[0],s=o[1];r===a&&n===s||(this._winPos[0]=r,this._winPos[1]=n,this._winPosChanged&&this._winPosChanged.emit(this._winPos))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"winPosChanged",{get:function(){return this._winPosChanged=this._winPosChanged||new a.Event,this._winPosChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(e){this._opacity!==e&&(this._opacity=e,this._opacityChanged&&this._opacityChanged.emit(this._opacity))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new a.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return this._show},set:function(e){this._show!==e&&(this._show=e,this._showChanged&&this._showChanged.emit(this._show))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new a.Event,this._showChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closeEvent",{get:function(){return this._closeEvent||(this._closeEvent=new a.Event),this._closeEvent},enumerable:!1,configurable:!0}),t}(s.Destroyable);t.FloatDiv=u;var l=new WeakMap;t.getFloatDivPool=function(e){if(!l.has(e)){var t=new c.ObjPool((function(){return new e}),(function(e){return e.reset()}));l.set(e,t)}return l.get(e)}},7030:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameBorderedPosFloatDiv=void 0;var i=r(7563),a=function(e){function t(){var t=e.call(this)||this,r=document.createElement("iframe");r.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",r.src="http://www.weather.com.cn/live/index.shtml",t._iframe=r,t.innerContentDiv.appendChild(r);var n=function(e){e.source===t._iframe.contentWindow&&(t._iframeMessageEvent?t._iframeMessageEvent.emit(e):console.warn("iframe消息接收到未处理!data: ".concat(e.data)))};return window.addEventListener("message",n),t.dispose((function(){window.removeEventListener("message",n)})),t}return o(t,e),t.prototype.reset=function(){e.prototype.reset.call(this),this.src=""},Object.defineProperty(t.prototype,"src",{get:function(){return this._iframe.src},set:function(e){this._iframe.src!==e&&(this._iframe.src=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new i.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),t}(r(7498).BorderedPosFloatDiv);t.IFrameBorderedPosFloatDiv=a},9559:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PosFloatDiv=void 0;var a=r(7563),s=function(e){function t(){var t=e.call(this)||this;t._originOffsetX=0,t._originOffsetY=0,t._originRatioX=.5,t._originRatioY=1,t._divChanged=new a.Event;var r=document.createElement("div");r.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible;";var n=document.createElement("div");n.style.cssText="position: absolute; left: ".concat(-t._originOffsetX,"px; top: ").concat(-t._originOffsetY,"px; transform: translateX(-").concat(100*t._originRatioX,"%) translateY(-").concat(100*t._originRatioY,"%); margin: 0; padding: 0; pointer-events: none;");var o=document.createElement("div");t._contentDiv=o,n.appendChild(o),r.appendChild(n);var s=function(e){e.stopPropagation()};return r.addEventListener("pointermove",s),r.addEventListener("pointerdown",s),r.addEventListener("pointerup",s),t.dispose((function(){r.removeEventListener("pointermove",s),r.removeEventListener("pointerdown",s),r.removeEventListener("pointerup",s)})),t._div=r,t.dispose(t._divChanged.disposableOn((function(){n.style.left="".concat(-t._originOffsetX,"px"),n.style.top="".concat(-t._originOffsetY,"px"),n.style.transform="translateX(-".concat(100*t._originRatioX,"%) translateY(-").concat(100*t._originRatioY,"%)")}))),t.dispose(t.winPosChanged.disposableOn((function(e){var r=i(e,2),n=r[0],o=r[1];t._div.style.left="".concat(n,"px"),t._div.style.top="".concat(o,"px")}))),t.dispose(t.opacityChanged.disposableOn((function(e){t._div.style.opacity="".concat(e)}))),t.dispose(t.showChanged.disposableOn((function(e){t._div.style.visibility=e?"visible":"hidden"}))),t}return o(t,e),Object.defineProperty(t.prototype,"contentDiv",{get:function(){return this._contentDiv},enumerable:!1,configurable:!0}),t.prototype.reset=function(){},Object.defineProperty(t.prototype,"originOffsetX",{get:function(){return this._originOffsetX},set:function(e){this._originOffsetX!==e&&(this._originOffsetX=e,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originOffsetY",{get:function(){return this._originOffsetY},set:function(e){this._originOffsetY!==e&&(this._originOffsetY=e,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originRatioX",{get:function(){return this._originRatioX},set:function(e){this._originRatioX!==e&&(this._originRatioX=e,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originRatioY",{get:function(){return this._originRatioY},set:function(e){this._originRatioY!==e&&(this._originRatioY=e,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),t}(r(5351).FloatDiv);t.PosFloatDiv=s},4076:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ToolTipDiv=void 0;var a=function(e){function t(){var t=e.call(this)||this;t._text="";var r=document.createElement("div");t._div=r,r.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible; transition: opacity 0.5s;";var n=document.createElement("div");n.style.cssText="position: absolute; left: 0px; bottom: 0px; transform: translateX(-50%); margin: 0; padding: 0; pointer-events: none;";var o=document.createElement("div");return o.style.cssText="position: relative; background-color: rgba(0, 0, 0, 0.7); border-radius: 5px; padding: 3px; pointer-events: all; color: white; white-space: nowrap;",o.innerText=t._text,t._div.appendChild(n),n.appendChild(o),t._contentContainer=o,t._div=r,t.dispose(t.winPosChanged.disposableOn((function(e){var r=i(e,2),n=r[0],o=r[1];t._div.style.left="".concat(n,"px"),t._div.style.top="".concat(o-50,"px")}))),t.dispose(t.opacityChanged.disposableOn((function(e){t._div.style.opacity="".concat(e)}))),t.dispose(t.showChanged.disposableOn((function(e){t._div.style.visibility=e?"visible":"hidden"}))),t}return o(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.opacity=1,this.show=!0},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){this._text!==e&&(this._text=e,this._contentContainer.innerText=e)},enumerable:!1,configurable:!0}),t}(r(5351).FloatDiv);t.ToolTipDiv=a},6956:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9559),t),o(r(9095),t),o(r(5351),t),o(r(7498),t),o(r(7030),t),o(r(4076),t),o(r(9332),t)},6409:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3723),t),o(r(6956),t)},4898:(e,t)=>{"use strict";function r(e,t,r){for(var n=0;n<r;++n)if(e[n]!==t[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.equalsPenSplineVertexType=void 0,t.equalsPenSplineVertexType=function(e,t,n){return r(e.position,t.position,n)&&(e.leftPosition===t.leftPosition===void 0||e.leftPosition&&t.leftPosition&&r(e.leftPosition,t.leftPosition,n)||!1)&&(e.rightPosition===t.rightPosition===void 0||e.rightPosition&&t.rightPosition&&r(e.rightPosition,t.rightPosition,n)||!1)}},6379:(e,t)=>{"use strict";function r(e,t){var r=e*e,n=r*e,o=e+e+e,i=r+r+r,a=n+n+n,s=1-o+i-n,c=o-(i+i)+a,u=i-a,l=n;return t?(t[0]=s,t[1]=c,t[2]=u,t[3]=l,t):[s,c,u,l]}Object.defineProperty(t,"__esModule",{value:!0}),t.computBezierSpline3BaseFactors=t.bezierSpline3=t.bezierSpline3WithBaseFactor=t.getBezierSpline3BaseFactor=void 0,t.getBezierSpline3BaseFactor=r,t.bezierSpline3WithBaseFactor=function(e,t,r,n,o,i,a){for(var s=null!=a?a:new Array(t),c=0;c<t;++c)s[c]=e[0]*r[c]+e[1]*n[c]+e[2]*o[c]+e[3]*i[c];return s},t.bezierSpline3=function(e,t,n,o,i,a,s){for(var c=r(e),u=null!=s?s:new Array(t),l=0;l<t;++l)u[l]=c[0]*n[l]+c[1]*o[l]+c[2]*i[l]+c[3]*a[l];return u},t.computBezierSpline3BaseFactors=function(e){for(var t=new Array(e+1),n=1/e,o=0,i=0;i<e;++i)t[i]=r(o),o+=n;return t}},4828:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(6379),t),o(r(4898),t),o(r(603),t)},603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vertexArrayToBezierSpline3Positions=void 0;var n=r(6379),o=(0,n.computBezierSpline3BaseFactors)(20);t.vertexArrayToBezierSpline3Positions=function(e,t,r,i){var a,s,c=e.length;if(c<=1)return e.map((function(e){return e.position}));for(var u=20===i?o:(0,n.computBezierSpline3BaseFactors)(i),l=r?c:c-1,f=new Array(l*i+1),p=0;p<l;++p){var d=e[p],h=e[p+1===c?0:p+1],v=d.position,y=null!==(a=d.rightPosition)&&void 0!==a?a:d.position,_=null!==(s=h.leftPosition)&&void 0!==s?s:h.position,b=h.position,g=p*i;f[g]=v;for(var m=1;m<i;++m)f[g+m]=(0,n.bezierSpline3WithBaseFactor)(u[m],t,v,y,_,b)}return f[l*i]=e[r?0:c-1].position,f}},1513:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8588:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Tree=void 0;var c=r(8529),u=r(7855),l=r(1742),f=r(7061),p=function(e){function t(r){var n=e.call(this)||this;return n._root=n.disposeVar(new u.TreeItem(n,!0,"_ROOT")),n._itemChildrenChanged=n.disposeVar(new c.Event),n._itemChildrenToChange=n.disposeVar(new c.Event),n._itemsAdded=n.disposeVar(new c.Event),n._itemsDeleted=n.disposeVar(new c.Event),n._itemsChanged=n.disposeVar(new c.Event),n._transactionStack=0,n._addedItems=new Set,n._deletedItems=new Set,n._selectedItems=n.disposeVar(new c.ObservableArray),n._itemDivHeight=n.disposeVar((0,c.react)(t.defaultItemDivHeight)),n._forceRedrawEvent=n.disposeVar(new c.Event),n._uiTree=n.disposeVar(new l.UiTree(n)),n._root._tree.value=n,n.dispose(n._itemChildrenToChange.disposableOn((function(e,t){var r,o,a,s;if(e.children){try{for(var c=i(t),u=c.next();!u.done;u=c.next()){for(var l=u.value,f=l.start,p=l.deleteCount,d=l.items,h=f;h<f+p;++h){var v=e.children.get(h);n._deletedItems.has(v)?console.error("this._deletedItems.has(currentItem(".concat(v.id,"))")):n._deletedItems.add(v)}try{for(var y=(a=void 0,i(d)),_=y.next();!_.done;_=y.next())v=_.value,n._deletedItems.has(v)?n._deletedItems.delete(v):n._addedItems.add(v)}catch(e){a={error:e}}finally{try{_&&!_.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}n._execTransaction()}else console.error("!item.children")}))),void 0!==r&&(n.itemDivHeight=r),n}return o(t,e),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this._selectedItems},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastSelectedItem",{get:function(){return this._selectedItems.length>0?this._selectedItems.get(this._selectedItems.length-1):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemDivHeight",{get:function(){return this._itemDivHeight.value},set:function(e){this._itemDivHeight.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemDivHeightChanged",{get:function(){return this._itemDivHeight.changed},enumerable:!1,configurable:!0}),t.prototype.forceRedraw=function(){this._forceRedrawEvent.emit()},Object.defineProperty(t.prototype,"uiTree",{get:function(){return this._uiTree},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),t.prototype.getDescendants=function(e){return this._root.getDescendants(e)},t.prototype.getTreeItemFromId=function(e){var t,r,n=void 0;try{for(var o=i(this.getDescendants()),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.id===e){n=s;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.prototype._startTransaction=function(){0===this._transactionStack&&(this._deletedItems.size>0&&(console.warn("this._deletedItems.size > 0"),this._deletedItems.clear()),this._addedItems.size>0&&(console.warn("this._addedItems.size > 0"),this._addedItems.clear())),++this._transactionStack},t.prototype._stopTransaction=function(){--this._transactionStack,this._execTransaction()},t.prototype._execTransaction=function(){0===this._transactionStack&&(this._deletedItems.size>0&&(this._itemsDeleted.emit(s([],a(this._deletedItems),!1)),this._deletedItems.clear()),this._addedItems.size>0&&(this._itemsAdded.emit(s([],a(this._addedItems),!1)),this._addedItems.clear()))},Object.defineProperty(t.prototype,"itemChildrenChanged",{get:function(){return this._itemChildrenChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemChildrenToChange",{get:function(){return this._itemChildrenToChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsChanged",{get:function(){return this._itemsChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsAdded",{get:function(){return this._itemsAdded},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsDeleted",{get:function(){return this._itemsDeleted},enumerable:!1,configurable:!0}),t.defaultItemDivHeight=24,t.canMoveToTreeItem=f.canMoveToTreeItem,t.moveToTreeItem=f.moveToTreeItem,t.canMoveToTreeItems=f.canMoveToTreeItems,t.moveToTreeItems=f.moveToTreeItems,t}(c.Destroyable);t.Tree=p},7855:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeItem=void 0;var u=r(8529),l=r(7061),f=r(1413),p=function(e){function t(r,n,o){void 0===n&&(n=!1);var i=e.call(this)||this;return i._tree=r,i._hasChildren=n,i._parent=i.disposeVar((0,u.react)(void 0)),i._level=i.disposeVar((0,u.react)(0)),i._uiTreeObject=i.disposeVar(new f.UiTreeObject(i)),i._id=null!=o?o:(0,u.createGuid)(),"_ROOT"!==i._id&&t.wm.has(i._id)&&console.warn("创建了id(".concat(i._id,")相同的树节点,会导致之前的树节点无法索引!")),t.wm.set(i._id,i),i.dispose((function(){"_ROOT"===i._id||t.wm.has(i._id)?t.wm.delete(i._id):console.warn("树节点(".concat(i._id,")不在wm树上!"))})),i.dispose(i._parent.changed.disposableOn((function(){i._updateLevel()}))),i.dispose(i._level.changed.disposableOn((function(){var e,t;if(i.children)try{for(var r=a(i.children),n=r.next();!n.done;n=r.next())n.value._updateLevel()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}))),t.allTreeItems.set(i._id,i),i.dispose((function(){t.allTreeItems.delete(i._id)})),i}return o(t,e),t.getFromId=function(e){return t.wm.get(e)},Object.defineProperty(t.prototype,"uiTreeObject",{get:function(){return this._uiTreeObject},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype._updateLevel=function(){this.parent&&(this._level.value=this.parent.level+1)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentChanged",{get:function(){return this._parent.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=this;if(this._hasChildren){if(!this._children){var t=this.disposeVar(new u.ObservableArray);this._children=t,this.dispose(t.toChangeEvent.disposableOn((function(t,r){var n,o,i,s;try{for(var c=a(t),u=c.next();!u.done;u=c.next()){for(var l=u.value,f=l.start,p=l.deleteCount,d=l.items,h=f;h<f+p;++h)r.get(h)._parent.value=void 0;try{for(var v=(i=void 0,a(d)),y=v.next();!y.done;y=v.next()){var _=y.value;if(_.parent)throw console.error("请检查新增的treeItem是否正在使用!"),new Error("item.parent should not exist!");_._parent.value=e}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}})));var r=new Set,n=new Set;this.dispose(t.toChangeEvent.disposableOn((function(t,o){var i,s,c,u,l,f,p;if(e.tree){r.clear(),n.clear();try{for(var d=a(t),h=d.next();!h.done;h=d.next()){for(var v=h.value,y=v.start,_=v.deleteCount,b=v.items,g=y;g<y+_;++g)r.add(o.get(g));try{for(var m=(c=void 0,a(b)),w=m.next();!w.done;w=m.next()){var O=w.value;n.add(O)}}catch(e){c={error:e}}finally{try{w&&!w.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}}}catch(e){i={error:e}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}try{for(var P=a(r),j=P.next();!j.done;j=P.next())O=j.value,n.has(O)&&(r.delete(O),n.delete(O))}catch(e){l={error:e}}finally{try{j&&!j.done&&(f=P.return)&&f.call(P)}finally{if(l)throw l.error}}null===(p=e.tree)||void 0===p||p.itemChildrenToChange.emit(e,t,r,n)}}))),this.dispose(t.changedEvent.disposableOn((function(){var t;null===(t=e.tree)||void 0===t||t.itemChildrenChanged.emit(e)}))),this.dispose(t.toChangeEvent.disposableOn((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e._childrenToChangeEvent&&(t=e._childrenToChangeEvent).emit.apply(t,c([],s(r),!1))}))),this.dispose(t.changedEvent.disposableOn((function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e._childrenChangedEvent&&(t=e._childrenChangedEvent).emit.apply(t,c([],s(r),!1))})))}return this._children}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childrenResetedEvent",{get:function(){return this._childrenResetedEvent||(this._childrenResetedEvent=new u.Event),this._childrenResetedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childrenToChangeEvent",{get:function(){return this._childrenToChangeEvent||(this._childrenToChangeEvent=new u.Event),this._childrenToChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childrenChangedEvent",{get:function(){return this._childrenChangedEvent||(this._childrenChangedEvent=new u.Event),this._childrenChangedEvent},enumerable:!1,configurable:!0}),t.prototype.resetChildren=function(e){void 0===e&&(e=!1),this._children&&(this._children.length=0),this._hasChildren=e,this._childrenResetedEvent&&this._childrenResetedEvent.emit(e)},t.prototype.getDescendants=function(e){var t,r,n,o,a,s;return i(this,(function(i){switch(i.label){case 0:r=[],n=[],(t=this).children&&t.children.length>0&&(!e||e(t))&&(r.push(0),n.push(t.children)),i.label=1;case 1:return r.length>0?(o=r[r.length-1],a=n[n.length-1],[4,s=a.get(o)]):[3,3];case 2:return i.sent(),o<a.length-1?++r[r.length-1]:(n.pop(),r.pop()),s.children&&s.children.length>0&&(!e||e(s))&&(r.push(0),n.push(s.children)),[3,1];case 3:return[2]}}))},t.prototype.getAncestors=function(e){var t;return i(this,(function(r){switch(r.label){case 0:t=this.parent,r.label=1;case 1:return t?[4,t]:[3,3];case 2:return r.sent(),e&&!e(t)?[3,3]:(t=t.parent,[3,1]);case 3:return[2]}}))},t.prototype.isDescendantOf=function(e){var t,r;try{for(var n=a(this.getAncestors()),o=n.next();!o.done;o=n.next())if(o.value===e)return!0}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},t.prototype.isAncestorOf=function(e){return e.isDescendantOf(this)},Object.defineProperty(t.prototype,"level",{get:function(){return this._level.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"levelChanged",{get:function(){return this._level.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),t.prototype.canMoveTo=function(e,t){return(0,l.canMoveToTreeItem)(this,e,t)},t.prototype.moveTo=function(e,t){(0,l.moveToTreeItem)(this,e,t)},t.prototype.detachFromParent=function(){if(this.parent&&this.parent.children){var e=this.parent.children.indexOf(this);this.parent.children.splice(e,1)}},t.prototype.insertNewTreeItem=function(e,t){if(t&&t.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;if(this.children&&e.startsWith("Inner"))return t&&this.children.push(t),!0;if("Inner"===e)return!1;var r=this.parent;if(!r||!r.children)return!1;var n=r.children.indexOf(this);return e.endsWith("Before")?t&&r.children.splice(n,0,t):e.endsWith("After")&&t&&r.children.splice(n+1,0,t),!0},t.wm=new Map,t.allTreeItems=new Map,t}(u.Destroyable);t.TreeItem=p},1742:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.UiTree=void 0;var s=r(8529),c=r(1539),u=function(e){function t(t){var r=e.call(this)||this;r._tree=t,r._redrawEvent=r.disposeVar(new s.Event),r._containerScrollTop=r.disposeVar((0,s.react)(0)),r._containerClientHeight=r.disposeVar((0,s.react)(-1)),r._container=r.disposeVar((0,s.react)(void 0)),r._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var n,o=r._containerClientHeight,i=r._containerScrollTop,u=r._tree._forceRedrawEvent,l=r.disposeVar((0,s.createNextAnimateFrameEvent)(r._tree.itemDivHeightChanged,r._tree.itemChildrenChanged,r._tree.itemsChanged,o.changed,i.changed,u)),f=r.redrawInfo,p=function(e){var t=e.uiTreeObject;return!(!e.children||t&&t.collapsed)};return r.dispose(l.disposableOn((function(){var e,t,n,c;if(f.topFreeSpaceHeight=0,f.topUnvisibleItemNum=0,f.middleTreeItems.length=0,f.bottomFreeSpaceHeight=0,f.bottomUnvisibleItemNum=0,r._containerClientHeight.value>=0){var u=(0,s.length)(r._tree.getDescendants(p)),l=r._tree.itemDivHeight,d=l*u,h=(0,s.max)([(0,s.min)([(0,s.max)([d-o.value,0]),i.value]),0]),v=h/l|0,y=0|Math.ceil((h-v*l+o.value)/l);v>0&&(f.topUnvisibleItemNum=v,f.topFreeSpaceHeight=v*r._tree.itemDivHeight);var _=v+y,b=0;try{for(var g=a(r._tree.getDescendants(p)),m=g.next();!m.done;m=g.next()){var w=m.value;if(b>=_)break;b>=v&&f.middleTreeItems.push(w),++b}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=g.return)&&t.call(g)}finally{if(e)throw e.error}}var O=u-v-y;O>0&&(f.bottomUnvisibleItemNum=O,f.bottomFreeSpaceHeight=O*r._tree.itemDivHeight)}else try{for(var P=a(r._tree.getDescendants(p)),j=P.next();!j.done;j=P.next())w=j.value,f.middleTreeItems.push(w)}catch(e){n={error:e}}finally{try{j&&!j.done&&(c=P.return)&&c.call(P)}finally{if(n)throw n.error}}r._redrawEvent.emit(f)}))),r.dispose((function(){return n&&(n.destroy(),n=void 0)})),r.dispose(r.containerChanged.disposableOn((function(e){n&&(n.destroy(),n=void 0),e&&(n=(0,c.createAnimateFrame)()).start((function(){var t=e,n=t.scrollTop,o=t.clientHeight;void 0===n||void 0===o?(0,s.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(r.containerScrollTop=n,r.containerClientHeight=o)}))}))),r}return o(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this._container.value},set:function(e){this._container.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),t.prototype.getTreeItemPos=function(e){var t,r,n=0,o=!1;try{for(var i=a(this._tree.getDescendants((function(e){var t=e.uiTreeObject;return!(!e.children||t&&t.collapsed)}))),s=i.next();!s.done;s=i.next()){if(s.value===e){o=!0;break}++n}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o?[n,n*this._tree.itemDivHeight]:void 0},t.prototype.collapseAll=function(){var e,t;console.log("collapseAll");try{for(var r=a(this.tree.root.getDescendants()),n=r.next();!n.done;n=r.next())n.value.uiTreeObject.collapsed=!0}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},Object.defineProperty(t.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(e){this._containerScrollTop.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(e){this._containerClientHeight.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),t.prototype.getAllItems=function(e){var t,r,n,o,s,c;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,7]),t=a(this._tree.getDescendants()),r=t.next(),i.label=1;case 1:return r.done?[3,4]:(n=r.value,e&&!e(n)?[3,3]:[4,n]);case 2:i.sent(),i.label=3;case 3:return r=t.next(),[3,1];case 4:return[3,7];case 5:return o=i.sent(),s={error:o},[3,7];case 6:try{r&&!r.done&&(c=t.return)&&c.call(t)}finally{if(s)throw s.error}return[7];case 7:return[2]}}))},t.prototype.getAllSelectedItems=function(){return this.getAllItems((function(e){return e.uiTreeObject.selected}))},t.prototype.getAllCheckedLeafItems=function(){return this.getAllItems((function(e){return!e.children&&"checked"===e.uiTreeObject.checkedStatus}))},t.prototype.clearAllSelectedItems=function(e){var t,r;try{for(var n=a(this.getAllSelectedItems()),o=n.next();!o.done;o=n.next()){var i=o.value;e&&e.includes(i)||(i.uiTreeObject.selected=!1)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},t}(s.Destroyable);t.UiTree=u},1413:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.UiTreeObject=void 0;var a=r(8529),s={checked:1,unchecked:2,indeterminate:3},c=["checked","unchecked","indeterminate"],u=function(e){function t(t){var r=e.call(this)||this;r._treeItem=t,r._collapsed=r.disposeVar((0,a.react)(!1)),r._checkedStatus=r.disposeVar((0,a.react)("unchecked")),r._selected=r.disposeVar((0,a.react)(!1)),r._moveToPositionMode=r.disposeVar((0,a.react)("none")),r._updateCheckedStatusFromChildrenEvent=r.disposeVar(new a.Event);var n=function(){return r._treeItem.tree&&r._treeItem.tree.itemsChanged.emit([r._treeItem])};r.dispose(r._collapsed.changed.disposableOn(n)),r.dispose(r._checkedStatus.changed.disposableOn(n)),r.dispose(r._selected.changed.disposableOn(n)),r.dispose(r._moveToPositionMode.changed.disposableOn(n)),r.dispose(r._checkedStatus.changed.disposableOn((function(){return r._treeItem.parent&&r._treeItem.parent.uiTreeObject.updateCheckedStatusFromChildren()}))),r.dispose(r._treeItem.childrenChangedEvent.disposableOn((function(){r.updateCheckedStatusFromChildren()})));var o=r.disposeVar((0,a.createNextAnimateFrameEvent)(r._updateCheckedStatusFromChildrenEvent));return r.dispose(o.disposableOn((function(){if(r._treeItem.children){var e=0;(0,a.forEachWithBreak)(r._treeItem.children,(function(t){return 3==(e|=s[t.uiTreeObject.checkedStatus])})),e>0&&(r._checkedStatus.value=c[e-1])}}))),r.dispose(r._treeItem.childrenResetedEvent.disposableOn((function(e){e||"indeterminate"!==r.checkedStatus||(r._checkedStatus.value="unchecked")}))),r.dispose(r._selected.changed.disposableOn((function(e){var t=r._treeItem.tree;t&&function(e,t,n){if(void 0===n&&(n=!0),t)e.selectedItems.push(r._treeItem);else{var o=e.selectedItems.indexOf(r._treeItem);-1===o?n&&console.error("selectedItems index -1"):e.selectedItems.splice(o,1)}}(t,e)}))),r.dispose((function(){return r.selected=!1})),r}return o(t,e),Object.defineProperty(t.prototype,"treeItem",{get:function(){return this._treeItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed.value},set:function(e){this._collapsed.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collapsedChanged",{get:function(){return this._collapsed.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedStatus",{get:function(){return this._checkedStatus.value},enumerable:!1,configurable:!0}),t.prototype.check=function(e){var t,r,n=e?"checked":"unchecked";if(this._checkedStatus.value!==n&&(this._checkedStatus.value=n,this._treeItem.children))try{for(var o=i(this._treeItem.children),a=o.next();!a.done;a=o.next())a.value.uiTreeObject.check(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},t.prototype.updateCheckedStatusFromChildren=function(){this._updateCheckedStatusFromChildrenEvent.emit()},Object.defineProperty(t.prototype,"checkedStatusChanged",{get:function(){return this._checkedStatus.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected.value},set:function(e){this._selected.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChanged",{get:function(){return this._selected.changed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"moveToPositionMode",{get:function(){return this._moveToPositionMode.value},set:function(e){this._moveToPositionMode.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"moveToPositionModeChanged",{get:function(){return this._moveToPositionMode.changed},enumerable:!1,configurable:!0}),t}(a.Destroyable);t.UiTreeObject=u},5586:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1513),t),o(r(7061),t),o(r(7251),t),o(r(8588),t),o(r(7855),t),o(r(1742),t),o(r(1413),t)},7061:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.moveToTreeItems=t.canMoveToTreeItems=t.moveToTreeItem=t.canMoveToTreeItem=void 0;var o=r(8529);function i(e,t,r){if(e.tree!==t.tree||e===t||e.isAncestorOf(t))return!1;if(e.tree!==t.tree)return!1;if(!e.parent)return!1;if(!e.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");return!(t===e||e.isAncestorOf(t)||"inner"!==r&&!t.parent||"inner"===r&&!t.children)}function a(e,t,r){if(e.tree&&t.tree&&e.tree===t.tree)if(e.parent){if(!e.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");if(t!==e)if(e.isAncestorOf(t))console.warn("当前节点不能拖放到它自身的后代节点之上!");else if("inner"===r||t.parent)if("inner"!==r||t.children){e.tree._startTransaction();var n=e.parent.children.indexOf(e);if(e.parent.children.splice(n,1),"inner"!==r){var o=t.parent;if(!o||!o.children)throw new Error("!parent");var i=o.children.indexOf(t);"before"===r?o.children.splice(i,0,e):"after"===r&&o.children.splice(i+1,0,e)}else t.children.push(e);e.tree._stopTransaction()}else console.warn("无法移动到目标节点的子节点中,因为目标节点不是组节点!");else console.warn("目标节点没有父节点,无法拖放!");else console.warn("自身不能拖放到自身!")}else console.warn("当前节点没有父节点,那么该节点无法被移动!")}t.canMoveToTreeItem=i,t.moveToTreeItem=a,t.canMoveToTreeItems=function(e,t,r){return(0,o.every)(e,(function(e){return i(e,t,r)}))},t.moveToTreeItems=function(e,t,r){var o,s;try{for(var c=n(e),u=c.next();!u.done;u=c.next()){var l=u.value;i(l,t,r)?a(l,t,r):console.warn("treeItem(id: ".concat(l.id,") cannot move..."))}}catch(e){o={error:e}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}}},6053:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SmartWorker=t.findTransferableObjectsFromArgs=void 0;var c=r(8529),u=r(7563);function l(e,t){var r,n,o,s,c,u,f,p;if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||void 0===e);else if(e instanceof String||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof File||e instanceof FileList);else if(e instanceof ArrayBuffer)-1===t.indexOf(e)&&t.push(e);else if(ArrayBuffer.isView(e))-1===t.indexOf(e.buffer)&&t.push(e.buffer);else if(e instanceof ImageBitmap)-1===t.indexOf(e)&&t.push(e);else if(e instanceof ImageData);else if(e instanceof Map)try{for(var d=i(e),h=d.next();!h.done;h=d.next())l(h.value,t)}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}else if(e instanceof Set)try{for(var v=i(e),y=v.next();!y.done;y=v.next())l(y.value,t)}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(o)throw o.error}}else if(Array.isArray(e))try{for(var _=i(e),b=_.next();!b.done;b=_.next())l(b.value,t)}catch(e){c={error:e}}finally{try{b&&!b.done&&(u=_.return)&&u.call(_)}finally{if(c)throw c.error}}else{if(!(e instanceof Object))throw console.error("有不可使用的传递的类型!"),new Error("有不可使用的传递的类型!");try{for(var g=i(Object.entries(e)),m=g.next();!m.done;m=g.next()){var w=a(m.value,2);w[0],l(w[1],t)}}catch(e){f={error:e}}finally{try{m&&!m.done&&(p=g.return)&&p.call(g)}finally{if(f)throw f.error}}}}function f(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{var o=[];try{for(var a=i(r),s=a.next();!s.done;s=a.next())l(s.value,o)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return o}catch(e){return}}t.findTransferableObjectsFromArgs=f;var p=function(e){function t(){var t=e.call(this)||this;t._resultEvent=new c.Event,t._lastExecId=-1;var r=URL.createObjectURL(new Blob(["\n\n function _findTransferableObjectsFromArg(arg, transferableObjects) {\n if (typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean' || typeof arg === 'undefined') {\n }\n else if (arg instanceof String ||\n arg instanceof Boolean ||\n arg instanceof Date ||\n arg instanceof RegExp ||\n arg instanceof Blob ||\n arg instanceof File ||\n arg instanceof FileList) {\n }\n else if (arg instanceof ArrayBuffer) {\n if (-1 === transferableObjects.indexOf(arg)) {\n transferableObjects.push(arg);\n }\n }\n else if (ArrayBuffer.isView(arg)) {\n if (-1 === transferableObjects.indexOf(arg.buffer)) {\n transferableObjects.push(arg.buffer);\n }\n }\n else if (arg instanceof ImageBitmap) {\n if (-1 === transferableObjects.indexOf(arg)) {\n transferableObjects.push(arg);\n }\n }\n else if (arg instanceof ImageData) {\n }\n else if (arg instanceof Map) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (arg instanceof Set) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (Array.isArray(arg)) {\n for (let a of arg) {\n _findTransferableObjectsFromArg(a, transferableObjects);\n }\n }\n else if (arg instanceof Object) {\n for (let [k, v] of Object.entries(arg)) {\n _findTransferableObjectsFromArg(v, transferableObjects);\n }\n }\n else {\n console.error(`有不可使用的传递的类型!`);\n throw new Error(`有不可使用的传递的类型!`);\n }\n }\n \n function findTransferableObjectsFromArgs(...args) {\n try {\n const transferableObjects = [];\n for (let arg of args) {\n _findTransferableObjectsFromArg(arg, transferableObjects);\n }\n return transferableObjects;\n }\n catch (error) {\n return undefined;\n }\n }\n \n function progressFunc(execId, value) {\n // @ts-ignore\n const workerGlobal = globalThis;\n const transferableObjects = findTransferableObjectsFromArgs(value);\n const finalResult = {\n type: 'function_progress',\n execId,\n progress: value,\n };\n if (transferableObjects) {\n workerGlobal.postMessage(finalResult, transferableObjects);\n }\n else {\n workerGlobal.postMessage(finalResult);\n }\n }\n \n onmessage = function onmessageFunc(messageEvent) {\n // DedicatedWorkerGlobalScope\n // @ts-ignore\n const workerGlobal = globalThis;\n const { execId, type, name, args } = messageEvent.data;\n if (type === 'function' || type === 'progressFunc') {\n try {\n // @ts-ignore\n const func = workerGlobal[name];\n if (typeof func !== 'function') {\n console.error(`typeof func !== 'function'`);\n throw new Error(`typeof func !== 'function'`);\n }\n let resultOrResultPromise;\n if (type === 'progressFunc') {\n // @ts-ignore\n workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();\n // @ts-ignore\n const cancelFuncsMap = workerGlobal._cancelFuncsMap;\n const localProgressFunc = (value) => {\n progressFunc(execId, value);\n };\n let resolve_;\n let reject_;\n resultOrResultPromise = new Promise((resolve, reject) => {\n resolve_ = resolve;\n reject_ = reject;\n });\n let finished = false;\n const completeFunc = (value) => {\n finished = true;\n if (cancelFuncsMap.has(execId)) {\n cancelFuncsMap.delete(execId);\n }\n resolve_(value);\n };\n const errorFunc = (error) => {\n finished = true;\n if (cancelFuncsMap.has(execId)) {\n cancelFuncsMap.delete(execId);\n }\n reject_(error);\n };\n const cancelFunc = func(localProgressFunc, completeFunc, errorFunc, ...args);\n if (typeof cancelFunc === 'function') {\n if (!finished) {\n cancelFuncsMap.set(execId, cancelFunc);\n }\n }\n else {\n console.warn(`typeof cancelFunc !== 'function'`);\n }\n }\n else if (type === 'function') {\n resultOrResultPromise = func(...args);\n }\n if (resultOrResultPromise instanceof Promise) {\n resultOrResultPromise.then(result => {\n const transferableObjects = findTransferableObjectsFromArgs(result);\n const finalResult = {\n type: 'function_result',\n execId,\n result,\n };\n transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);\n }).catch(error => {\n const finalResult = {\n type: 'function_result',\n execId,\n error,\n };\n workerGlobal.postMessage(finalResult);\n });\n }\n else {\n const result = resultOrResultPromise;\n const finalResult = {\n type: 'function_result',\n execId,\n result,\n };\n const transferableObjects = findTransferableObjectsFromArgs(result);\n transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);\n }\n }\n catch (error) {\n const finalResult = {\n type: 'function_result',\n execId,\n error,\n };\n workerGlobal.postMessage(finalResult);\n }\n }\n else if (type === 'progressFunc_cancel') {\n // @ts-ignore\n workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();\n // @ts-ignore\n const cancelFuncsMap = workerGlobal._cancelFuncsMap;\n // const execId = args[0];\n if (typeof execId !== 'number') {\n console.error(`typeof execId !== 'number'`);\n }\n else {\n const cancelFunc = cancelFuncsMap.get(execId);\n if (cancelFunc) {\n cancelFunc(`progressFunc cancel execId: ${execId}`);\n }\n else {\n // 找不到的原因可能是:\n // 1 进度函数的返回值不对,不是一个取消函数!\n // 2 进度函数已经被取消,再次执行取消时,就会警告!\n console.warn(`cancelFuncsMap cannot find execId: ${execId}`);\n }\n }\n }\n else {\n console.error('未知type!');\n }\n }\n "]));return t.dispose((function(){return URL.revokeObjectURL(r)})),t._worker=new Worker(r),t.dispose((function(){return t._worker.terminate()})),t._worker.onmessage=function(e){t._resultEvent.emit(e)},t}return o(t,e),t.prototype.execWorkerFunc=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=f(t);if(n)return this.execWorkerFuncWithTransferableObjects.apply(this,s([e,n],a(t),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},t.prototype.execWorkerFuncWithTransferableObjects=function(e,t){var r=this;void 0===t&&(t=[]);for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(t)return new Promise((function(o,i){r._execWorkerFuncWithTransferableObjects.apply(r,s([e,o,i,t],a(n),!1))}));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},t.prototype._execWorkerFuncWithTransferableObjects=function(e,t,r,n){void 0===n&&(n=[]);for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=++this._lastExecId,s={execId:a,type:"function",name:e,args:o};this._worker.postMessage(s,n);var c=this._resultEvent.disposableOn((function(e){var n=e.data;n.execId===a&&("function_result"===n.type?(c(),"error"in n?r(n.error):t(n.result)):"function_progress"===n.type&&console.error("messageData.type === 'function_progress'"))}))},t.prototype.execWorkerProgressFunc=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var c=f(o);if(c)return this.execWorkerProgressFuncWithTransferableObjects.apply(this,s([e,t,r,n,c],a(o),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},t.prototype.execWorkerProgressFuncWithTransferableObjects=function(e,t,r,n,o){void 0===o&&(o=[]);for(var i=[],c=5;c<arguments.length;c++)i[c-5]=arguments[c];return this._execWorkerProgressFuncWithTransferableObjects.apply(this,s([e,t,r,n,o],a(i),!1))},t.prototype._execWorkerProgressFuncWithTransferableObjects=function(e,t,r,n,o){var i=this;void 0===o&&(o=[]);for(var a=[],s=5;s<arguments.length;s++)a[s-5]=arguments[s];var c=++this._lastExecId,u={execId:c,type:"progressFunc",name:e,args:a};this._worker.postMessage(u,o);var l=this._resultEvent.disposableOn((function(e){var o=e.data;o.execId===c&&("function_result"===o.type?(l&&(l(),l=void 0),"error"in o?n(o.error):r(o.result)):"function_progress"===o.type&&t&&t(o.progress))}));return function(){l&&(l(),l=void 0),i._worker.postMessage({execId:c,type:"progressFunc_cancel",name:"funcName",args:[]})}},t.prototype.eval=function(e){return this.execWorkerFuncWithTransferableObjects("eval",[],e)},t.prototype.importScripts=function(e){return this.execWorkerFuncWithTransferableObjects("importScripts",[],e)},t.prototype.createGlobalFunc=function(e,t){return this.execWorkerFuncWithTransferableObjects("eval",[],"globalThis['".concat(null!=t?t:e.name,"'] = ").concat(e.toString(),";undefined;"))},t}(u.Destroyable);t.SmartWorker=p},709:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Observable:()=>F});const n="insert",o="update",i="delete",a="reverse",s="shuffle",c=Symbol("observable-meta-key"),u={async:1},l={path:1,pathsOf:1,pathsFrom:1},f={[c]:{value:null},observe:{value:function(e,t){if("function"!=typeof e)throw new Error(`observer MUST be a function, got '${e}'`);const r=this[c].observers;if(r.some((t=>t[0]===e)))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let n;n=t?function(e){const t={};if(void 0!==e.path){if("string"!=typeof e.path||""===e.path)throw new Error('"path" option, if/when provided, MUST be a non-empty string');t.path=e.path}if(void 0!==e.pathsOf){if(e.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if("string"!=typeof e.pathsOf)throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');t.pathsOf=e.pathsOf.split(".").filter((e=>e))}if(void 0!==e.pathsFrom){if(e.path||e.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if("string"!=typeof e.pathsFrom||""===e.pathsFrom)throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');t.pathsFrom=e.pathsFrom}const r=Object.keys(e).filter((e=>!l.hasOwnProperty(e)));if(r.length)throw new Error(`'${r.join(", ")}' is/are not a valid observer option/s`);return t}(t):{},r.push([e,n])}}},unobserve:{value:function(){const e=this[c].observers;let t=e.length;if(t){let r=arguments.length;if(r)for(;r--;){let n=t;for(;n--;)e[n][0]===arguments[r]&&(e.splice(n,1),t--)}else e.splice(0)}}}},p=function(e,t){f[c].value=t;const r=Object.defineProperties({},f);for(const n of Object.keys(e))r[n]=g(e[n],n,t);return r},d=function(e,t){let r=0,n=e.length;f[c].value=t;const o=Object.defineProperties(new Array(n),f);for(;r<n;r++)o[r]=g(e[r],r,t);return o},h=function(e,t){return f[c].value=t,Object.defineProperties(e,f),e},v=function(e,t){let r=t;if(e.path){const n=e.path;r=t.filter((e=>e.path.join(".")===n))}else if(e.pathsOf){const n=e.pathsOf;r=t.filter((e=>e.path.length===n.length+1||e.path.length===n.length&&(e.type===a||e.type===s)))}else if(e.pathsFrom){const n=e.pathsFrom;r=t.filter((e=>e.path.join(".").startsWith(n)))}return r},y=function(e,t){try{e(t)}catch(r){console.error(`failed to notify listener ${e} with ${t}`,r)}},_=function(){const e=this.batches;this.batches=null;for(const[t,r]of e)y(t,r)},b=function(e,t){let r,n,o,i,a,s,c,u=e;const l=t.length;do{for(r=u.observers,a=r.length;a--;)if([n,o]=r[a],i=v(o,t),i.length)if(u.options.async){u.batches||(u.batches=[],queueMicrotask(_.bind(u)));let e=u.batches.find((e=>e[0]===n));e||(e=[n,[]],u.batches.push(e)),Array.prototype.push.apply(e[1],i)}else y(n,i);let e;if(u.parent){e=new Array(l);for(let r=0;r<l;r++)c=t[r],s=[u.ownKey,...c.path],e[r]={type:c.type,path:s,value:c.value,oldValue:c.oldValue,object:c.object};t=e,u=u.parent}else u=null}while(u)},g=function(e,t,r){return e&&"object"==typeof e?Array.isArray(e)?new S({target:e,ownKey:t,parent:r}).proxy:ArrayBuffer.isView(e)?new T({target:e,ownKey:t,parent:r}).proxy:e instanceof Date||e instanceof Blob||e instanceof Error?e:new C({target:e,ownKey:t,parent:r}).proxy:e},m=function(){const e=this[c],t=e.target;let r,n,o;for(t.reverse(),r=0,n=t.length;r<n;r++)if(o=t[r],o&&"object"==typeof o){const e=o[c];e&&(e.ownKey=r)}return b(e,[{type:a,path:[],object:this}]),this},w=function(e){const t=this[c],r=t.target;let n,o,i;for(r.sort(e),n=0,o=r.length;n<o;n++)if(i=r[n],i&&"object"==typeof i){const e=i[c];e&&(e.ownKey=n)}return b(t,[{type:s,path:[],object:this}]),this},O=function(e,t,r){const i=this[c],a=i.target,s=[],u=a.length,l=a.slice(0);if(t=void 0===t?0:t<0?Math.max(u+t,0):Math.min(t,u),r=void 0===r?u:r<0?Math.max(u+r,0):Math.min(r,u),t<u&&r>t){let u;a.fill(e,t,r);for(let e,f,p=t;p<r;p++)e=a[p],a[p]=g(e,p,i),l.hasOwnProperty(p)?(f=l[p],f&&"object"==typeof f&&(u=f[c],u&&(f=u.detach())),s.push({type:o,path:[p],value:a[p],oldValue:f,object:this})):s.push({type:n,path:[p],value:a[p],object:this});b(i,s)}return this},P=function(e,t,r){const n=this[c],i=n.target,a=i.length;e=e<0?Math.max(a+e,0):e,t=void 0===t?0:t<0?Math.max(a+t,0):Math.min(t,a),r=void 0===r?a:r<0?Math.max(a+r,0):Math.min(r,a);const s=Math.min(r-t,a-e);if(e<a&&e!==t&&s>0){const a=i.slice(0),u=[];i.copyWithin(e,t,r);for(let t,r,l,f=e;f<e+s;f++)t=i[f],t&&"object"==typeof t&&(t=g(t,f,n),i[f]=t),r=a[f],r&&"object"==typeof r&&(l=r[c],l&&(r=l.detach())),"object"!=typeof t&&t===r||u.push({type:o,path:[f],value:t,oldValue:r,object:this});b(n,u)}return this},j={pop:function(){const e=this[c],t=e.target,r=t.length-1;let n=t.pop();if(n&&"object"==typeof n){const e=n[c];e&&(n=e.detach())}return b(e,[{type:i,path:[r],oldValue:n,object:this}]),n},push:function(){const e=this[c],t=e.target,r=arguments.length,o=new Array(r),i=t.length;for(let t=0;t<r;t++)o[t]=g(arguments[t],i+t,e);const a=Reflect.apply(t.push,t,o),s=[];for(let e=i,r=t.length;e<r;e++)s[e-i]={type:n,path:[e],value:t[e],object:this};return b(e,s),a},shift:function(){const e=this[c],t=e.target;let r,n,o,a,s;for(r=t.shift(),r&&"object"==typeof r&&(s=r[c],s&&(r=s.detach())),n=0,o=t.length;n<o;n++)a=t[n],a&&"object"==typeof a&&(s=a[c],s&&(s.ownKey=n));return b(e,[{type:i,path:[0],oldValue:r,object:this}]),r},unshift:function(){const e=this[c],t=e.target,r=arguments.length,o=new Array(r);for(let t=0;t<r;t++)o[t]=g(arguments[t],t,e);const i=Reflect.apply(t.unshift,t,o);for(let e,r=0,n=t.length;r<n;r++)if(e=t[r],e&&"object"==typeof e){const t=e[c];t&&(t.ownKey=r)}const a=o.length,s=new Array(a);for(let e=0;e<a;e++)s[e]={type:n,path:[e],value:t[e],object:this};return b(e,s),i},reverse:m,sort:w,fill:O,copyWithin:P,splice:function(){const e=this[c],t=e.target,r=arguments.length,a=new Array(r),s=t.length;for(let t=0;t<r;t++)a[t]=g(arguments[t],t,e);const u=0===r?0:a[0]<0?s+a[0]:a[0],l=r<2?s-u:a[1],f=Math.max(r-2,0),p=Reflect.apply(t.splice,t,a),d=t.length;let h,v,y,_;for(let e,r=0;r<d;r++)e=t[r],e&&"object"==typeof e&&(h=e[c],h&&(h.ownKey=r));for(v=0,y=p.length;v<y;v++)_=p[v],_&&"object"==typeof _&&(h=_[c],h&&(p[v]=h.detach()));const m=[];let w;for(w=0;w<l;w++)w<f?m.push({type:o,path:[u+w],value:t[u+w],oldValue:p[w],object:this}):m.push({type:i,path:[u+w],oldValue:p[w],object:this});for(;w<f;w++)m.push({type:n,path:[u+w],value:t[u+w],object:this});return b(e,m),p}},E={reverse:m,sort:w,fill:O,copyWithin:P,set:function(e,t){const r=this[c],n=r.target,i=e.length,a=n.slice(0);t=t||0,n.set(e,t);const s=new Array(i);for(let e=t;e<i+t;e++)s[e-t]={type:o,path:[e],value:n[e],oldValue:a[e],object:this};b(r,s)}};class x{constructor(e,t){const{target:r,parent:n,ownKey:o}=e;n&&void 0!==o?(this.parent=n,this.ownKey=o):(this.parent=null,this.ownKey=null);const i=t(r,this);this.observers=[],this.revocable=Proxy.revocable(i,this),this.proxy=this.revocable.proxy,this.target=i,this.options=this.processOptions(e.options)}processOptions(e){if(e){if("object"!=typeof e)throw new Error(`Observable options if/when provided, MAY only be an object, got '${e}'`);const t=Object.keys(e).filter((e=>!u.hasOwnProperty(e)));if(t.length)throw new Error(`'${t.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},e)}return{}}detach(){return this.parent=null,this.target}set(e,t,r){let i=e[t];if(r!==i){const a=g(r,t,this);if(e[t]=a,i&&"object"==typeof i){const e=i[c];e&&(i=e.detach())}const s=void 0===i?[{type:n,path:[t],value:a,object:this.proxy}]:[{type:o,path:[t],value:a,oldValue:i,object:this.proxy}];b(this,s)}return!0}deleteProperty(e,t){let r=e[t];if(delete e[t],r&&"object"==typeof r){const e=r[c];e&&(r=e.detach())}const n=[{type:i,path:[t],oldValue:r,object:this.proxy}];return b(this,n),!0}}class C extends x{constructor(e){super(e,p)}}class S extends x{constructor(e){super(e,d)}get(e,t){return j.hasOwnProperty(t)?j[t]:e[t]}}class T extends x{constructor(e){super(e,h)}get(e,t){return E.hasOwnProperty(t)?E[t]:e[t]}}class F{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(e,t){if(e&&"object"==typeof e){if(e[c])return e;if(Array.isArray(e))return new S({target:e,ownKey:null,parent:null,options:t}).proxy;if(ArrayBuffer.isView(e))return new T({target:e,ownKey:null,parent:null,options:t}).proxy;if(e instanceof Date||e instanceof Blob||e instanceof Error)throw new Error(`${e} found to be one of a on-observable types`);return new C({target:e,ownKey:null,parent:null,options:t}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(e){return!(!e||!e[c])}}Object.freeze(F)},1233:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LRUMap:()=>i});const n=Symbol("newer"),o=Symbol("older");function i(e,t){"number"!=typeof e&&(t=e,e=0),this.size=0,this.limit=e,this.oldest=this.newest=void 0,this._keymap=new Map,t&&(this.assign(t),e<1&&(this.limit=this.size))}function a(e,t){this.key=e,this.value=t,this[n]=void 0,this[o]=void 0}function s(e){this.entry=e}function c(e){this.entry=e}function u(e){this.entry=e}i.prototype._markEntryAsUsed=function(e){e!==this.newest&&(e[n]&&(e===this.oldest&&(this.oldest=e[n]),e[n][o]=e[o]),e[o]&&(e[o][n]=e[n]),e[n]=void 0,e[o]=this.newest,this.newest&&(this.newest[n]=e),this.newest=e)},i.prototype.assign=function(e){let t,r=this.limit||Number.MAX_VALUE;this._keymap.clear();let i=e[Symbol.iterator]();for(let e=i.next();!e.done;e=i.next()){let i=new a(e.value[0],e.value[1]);if(this._keymap.set(i.key,i),t?(t[n]=i,i[o]=t):this.oldest=i,t=i,0==r--)throw new Error("overflow")}this.newest=t,this.size=this._keymap.size},i.prototype.get=function(e){var t=this._keymap.get(e);if(t)return this._markEntryAsUsed(t),t.value},i.prototype.set=function(e,t){var r=this._keymap.get(e);return r?(r.value=t,this._markEntryAsUsed(r),this):(this._keymap.set(e,r=new a(e,t)),this.newest?(this.newest[n]=r,r[o]=this.newest):this.oldest=r,this.newest=r,++this.size,this.size>this.limit&&this.shift(),this)},i.prototype.shift=function(){var e=this.oldest;if(e)return this.oldest[n]?(this.oldest=this.oldest[n],this.oldest[o]=void 0):(this.oldest=void 0,this.newest=void 0),e[n]=e[o]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]},i.prototype.find=function(e){let t=this._keymap.get(e);return t?t.value:void 0},i.prototype.has=function(e){return this._keymap.has(e)},i.prototype.delete=function(e){var t=this._keymap.get(e);if(t)return this._keymap.delete(t.key),t[n]&&t[o]?(t[o][n]=t[n],t[n][o]=t[o]):t[n]?(t[n][o]=void 0,this.oldest=t[n]):t[o]?(t[o][n]=void 0,this.newest=t[o]):this.oldest=this.newest=void 0,this.size--,t.value},i.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[n],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let e=this.entry;return e?(this.entry=e[n],{done:!1,value:e.key}):{done:!0,value:void 0}},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let e=this.entry;return e?(this.entry=e[n],{done:!1,value:e.value}):{done:!0,value:void 0}},i.prototype.keys=function(){return new c(this.oldest)},i.prototype.values=function(){return new u(this.oldest)},i.prototype.entries=function(){return this},i.prototype[Symbol.iterator]=function(){return new s(this.oldest)},i.prototype.forEach=function(e,t){"object"!=typeof t&&(t=this);let r=this.oldest;for(;r;)e.call(t,r.value,r.key,this),r=r[n]},i.prototype.toJSON=function(){for(var e=new Array(this.size),t=0,r=this.oldest;r;)e[t++]={key:r.key,value:r.value},r=r[n];return e},i.prototype.toString=function(){for(var e="",t=this.oldest;t;)e+=String(t.key)+":"+t.value,(t=t[n])&&(e+=" < ");return e}},7008:(e,t,r)=>{"use strict";function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n((s=n(n(t,e),n(o,a)))<<(c=i)|s>>>32-c,r);var s,c}function i(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function a(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}function u(e,t){var r,o,u,l,f;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var p=1732584193,d=-271733879,h=-1732584194,v=271733878;for(r=0;r<e.length;r+=16)o=p,u=d,l=h,f=v,p=i(p,d,h,v,e[r],7,-680876936),v=i(v,p,d,h,e[r+1],12,-389564586),h=i(h,v,p,d,e[r+2],17,606105819),d=i(d,h,v,p,e[r+3],22,-1044525330),p=i(p,d,h,v,e[r+4],7,-176418897),v=i(v,p,d,h,e[r+5],12,1200080426),h=i(h,v,p,d,e[r+6],17,-1473231341),d=i(d,h,v,p,e[r+7],22,-45705983),p=i(p,d,h,v,e[r+8],7,1770035416),v=i(v,p,d,h,e[r+9],12,-1958414417),h=i(h,v,p,d,e[r+10],17,-42063),d=i(d,h,v,p,e[r+11],22,-1990404162),p=i(p,d,h,v,e[r+12],7,1804603682),v=i(v,p,d,h,e[r+13],12,-40341101),h=i(h,v,p,d,e[r+14],17,-1502002290),p=a(p,d=i(d,h,v,p,e[r+15],22,1236535329),h,v,e[r+1],5,-165796510),v=a(v,p,d,h,e[r+6],9,-1069501632),h=a(h,v,p,d,e[r+11],14,643717713),d=a(d,h,v,p,e[r],20,-373897302),p=a(p,d,h,v,e[r+5],5,-701558691),v=a(v,p,d,h,e[r+10],9,38016083),h=a(h,v,p,d,e[r+15],14,-660478335),d=a(d,h,v,p,e[r+4],20,-405537848),p=a(p,d,h,v,e[r+9],5,568446438),v=a(v,p,d,h,e[r+14],9,-1019803690),h=a(h,v,p,d,e[r+3],14,-187363961),d=a(d,h,v,p,e[r+8],20,1163531501),p=a(p,d,h,v,e[r+13],5,-1444681467),v=a(v,p,d,h,e[r+2],9,-51403784),h=a(h,v,p,d,e[r+7],14,1735328473),p=s(p,d=a(d,h,v,p,e[r+12],20,-1926607734),h,v,e[r+5],4,-378558),v=s(v,p,d,h,e[r+8],11,-2022574463),h=s(h,v,p,d,e[r+11],16,1839030562),d=s(d,h,v,p,e[r+14],23,-35309556),p=s(p,d,h,v,e[r+1],4,-1530992060),v=s(v,p,d,h,e[r+4],11,1272893353),h=s(h,v,p,d,e[r+7],16,-155497632),d=s(d,h,v,p,e[r+10],23,-1094730640),p=s(p,d,h,v,e[r+13],4,681279174),v=s(v,p,d,h,e[r],11,-358537222),h=s(h,v,p,d,e[r+3],16,-722521979),d=s(d,h,v,p,e[r+6],23,76029189),p=s(p,d,h,v,e[r+9],4,-640364487),v=s(v,p,d,h,e[r+12],11,-421815835),h=s(h,v,p,d,e[r+15],16,530742520),p=c(p,d=s(d,h,v,p,e[r+2],23,-995338651),h,v,e[r],6,-198630844),v=c(v,p,d,h,e[r+7],10,1126891415),h=c(h,v,p,d,e[r+14],15,-1416354905),d=c(d,h,v,p,e[r+5],21,-57434055),p=c(p,d,h,v,e[r+12],6,1700485571),v=c(v,p,d,h,e[r+3],10,-1894986606),h=c(h,v,p,d,e[r+10],15,-1051523),d=c(d,h,v,p,e[r+1],21,-2054922799),p=c(p,d,h,v,e[r+8],6,1873313359),v=c(v,p,d,h,e[r+15],10,-30611744),h=c(h,v,p,d,e[r+6],15,-1560198380),d=c(d,h,v,p,e[r+13],21,1309151649),p=c(p,d,h,v,e[r+4],6,-145523070),v=c(v,p,d,h,e[r+11],10,-1120210379),h=c(h,v,p,d,e[r+2],15,718787259),d=c(d,h,v,p,e[r+9],21,-343485551),p=n(p,o),d=n(d,u),h=n(h,l),v=n(v,f);return[p,d,h,v]}function l(e){var t,r="",n=32*e.length;for(t=0;t<n;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function f(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function p(e){var t,r,n="0123456789abcdef",o="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),o+=n.charAt(t>>>4&15)+n.charAt(15&t);return o}function d(e){return unescape(encodeURIComponent(e))}function h(e){return function(e){return l(u(f(e),8*e.length))}(d(e))}function v(e,t){return function(e,t){var r,n,o=f(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=u(o,8*e.length)),r=0;r<16;r+=1)i[r]=909522486^o[r],a[r]=1549556828^o[r];return n=u(i.concat(f(t)),512+8*t.length),l(u(a.concat(n),640))}(d(e),d(t))}function y(e,t,r){return t?r?v(t,e):p(v(t,e)):r?h(e):p(h(e))}r.r(t),r.d(t,{md5:()=>y})},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(e,t){e=Object(e);var r=new ArrayBuffer(t);if(!(e instanceof ArrayBuffer&&r instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(r.byteLength>=e.byteLength){var n=0,o=e.byteLength;[8,4,2,1].forEach((function(t){if(o>=t){var i=function(e,t,r,n,o){var i=Uint8Array;switch(e){case 8:i=Float64Array;break;case 4:i=Float32Array;break;case 2:i=Uint16Array;break;default:i=Uint8Array}for(var a=new i(t,n,Math.trunc(o/e)),s=new i(r,n,Math.trunc(o/e)),c=0;c<s.length;c++)s[c]=a[c];return{nextOffset:a.byteOffset+a.byteLength,leftBytes:t.byteLength-(a.byteOffset+a.byteLength)}}(t,e,r,n,o);n=i.nextOffset,o=i.leftBytes}}))}return r})},2075:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TaskProcessor:()=>d});var n=r(8529),o=r(5894);function i(e,t){return null!=e?e:t}const a=Error,s=Error;function c(){if(!(0,o.defined)(d._canTransferArrayBuffer)){var e=new Worker(l("transferTypedArrayTest.js"));e.postMessage=i(e.webkitPostMessage,e.postMessage);var t=new Int8Array([99]);try{e.postMessage({array:t},[t.buffer])}catch(e){return d._canTransferArrayBuffer=!1,d._canTransferArrayBuffer}var r=o.when.defer();e.onmessage=function(t){var n=t.data.array,i=(0,o.defined)(n)&&99===n[0];r.resolve(i),e.terminate(),d._canTransferArrayBuffer=i},d._canTransferArrayBuffer=r.promise}return d._canTransferArrayBuffer}function u(e,t){--e._activeTasks;var r=t.id;if((0,o.defined)(r)){var n=e._deferreds,i=n[r];if((0,o.defined)(t.error)){var c=t.error;"RuntimeError"===c.name?(c=new s(t.error.message)).stack=t.error.stack:"DeveloperError"===c.name&&((c=new a(t.error.message)).stack=t.error.stack),i.reject(c)}else i.resolve(t.result);delete n[r]}}function l(e){var t=function(e){return e=e.endsWith(".js")?e:e+".js",(0,n.getFinalUri)(e,d.workerBaseAbsoluteUri)}(e);if((0,n.isCrossOriginUrl)(t)){var r,o='importScripts("'+t+'");';try{r=new Blob([o],{type:"application/javascript"})}catch(e){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);i.append(o),r=i.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(r)}return t}var f;function p(e){var t=new Worker(((0,o.defined)(f)||(f=l("cesiumWorkerBootstrapper.js")),f));t.postMessage=i(t.webkitPostMessage,t.postMessage);const r=(0,n.isAbsoluteUri)(d.workerBaseAbsoluteUri)?d.workerBaseAbsoluteUri:"";var a={loaderConfig:{paths:{Workers:r},baseUrl:r},workerModule:e._workerName};return t.postMessage(a),t.onmessage=function(t){u(e,t.data)},t}function d(e,t){this._workerName=e,this._maximumActiveTasks=i(t,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var h=[];d.prototype.scheduleTask=function(e,t){if((0,o.defined)(this._worker)||(this._worker=p(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var r=this;return(0,o.when)(c(),(function(n){(0,o.defined)(t)?n||(t.length=0):t=h;var i=r._nextID++,a=o.when.defer();return r._deferreds[i]=a,r._worker.postMessage({id:i,parameters:e,canTransferArrayBuffer:n},t),a.promise}))}},d.prototype.initWebAssemblyModule=function(e){(0,o.defined)(this._worker)||(this._worker=p(this));var t=o.when.defer(),r=this,n=this._worker;return getWebAssemblyLoaderConfig(this,e).then((function(e){return(0,o.when)(c(),(function(i){var a,s=e.wasmBinary;(0,o.defined)(s)&&i&&(a=[s]),n.onmessage=function(e){n.onmessage=function(e){u(r,e.data)},t.resolve(e.data)},n.postMessage({webAssemblyConfig:e},a)}))})),t},d.prototype.isDestroyed=function(){return!1},d.prototype.destroy=function(){return(0,o.defined)(this._worker)&&this._worker.terminate(),(0,n.destroyObject)(this)},d._defaultWorkerModulePrefix="Workers/",d._workerModulePrefix=d._defaultWorkerModulePrefix,d._canTransferArrayBuffer=void 0,d.workerBaseAbsoluteUri="xr-static/workers/core"},9704:(e,t,r)=>{"use strict";r.r(t),r.d(t,{decompressFrame:()=>s,decompressFrames:()=>c,parseGIF:()=>a});var n=r(8841),o=r(5208),i=r(2515);const a=e=>{const t=new Uint8Array(e);return(0,o.parse)((0,i.buildStream)(t),n.A)},s=(e,t,r)=>{if(!e.image)return void console.warn("gif frame does not have associated image.");const{image:n}=e,o=n.descriptor.width*n.descriptor.height;var i=((e,t,r)=>{const n=4096,o=r;var i,a,s,c,u,l,f,p,d,h;const v=new Array(r),y=new Array(n),_=new Array(n),b=new Array(4097);for(u=1+(a=1<<(h=e)),i=a+2,f=-1,s=(1<<(c=h+1))-1,p=0;p<a;p++)y[p]=0,_[p]=p;var g,m,w,O,P,j;for(g=m=w=O=P=j=0,d=0;d<o;){if(0===O){if(m<c){g+=t[j]<<m,m+=8,j++;continue}if(p=g&s,g>>=c,m-=c,p>i||p==u)break;if(p==a){s=(1<<(c=h+1))-1,i=a+2,f=-1;continue}if(-1==f){b[O++]=_[p],f=p,w=p;continue}for(l=p,p==i&&(b[O++]=w,p=f);p>a;)b[O++]=_[p],p=y[p];w=255&_[p],b[O++]=w,i<n&&(y[i]=f,_[i]=w,!(++i&s)&&i<n&&(c++,s+=i)),f=l}O--,v[P++]=b[O],d++}for(d=P;d<o;d++)v[d]=0;return v})(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(i=((e,t)=>{const r=new Array(e.length),n=e.length/t,o=function(n,o){const i=e.slice(o*t,(o+1)*t);r.splice.apply(r,[n*t,t].concat(i))},i=[0,4,2,1],a=[8,8,4,2];for(var s=0,c=0;c<4;c++)for(var u=i[c];u<n;u+=a[c])o(u,s),s++;return r})(i,n.descriptor.width));const a={pixels:i,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?a.colorTable=n.lct:a.colorTable=t,e.gce&&(a.delay=10*(e.gce.delay||10),a.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(a.transparentIndex=e.gce.transparentColorIndex)),r&&(a.patch=(e=>{const t=e.pixels.length,r=new Uint8ClampedArray(4*t);for(var n=0;n<t;n++){const t=4*n,o=e.pixels[n],i=e.colorTable[o]||[0,0,0];r[t]=i[0],r[t+1]=i[1],r[t+2]=i[2],r[t+3]=o!==e.transparentIndex?255:0}return r})(a)),a},c=(e,t)=>e.frames.filter((e=>e.image)).map((r=>s(r,e.gct,t)))},9928:(e,t,r)=>{"use strict";function n(e,t,r,n,o){this._format=e,this._width=t,this._height=r,this._buffer=n,this._mipLevels=o}r.r(t),r.d(t,{CompressedTextureBuffer:()=>n}),Object.defineProperties(n.prototype,{internalFormat:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}},mipLevels:{get:function(){return this._mipLevels}}}),n.clone=function(e){if(e)return new n(e._format,e._width,e._height,e._buffer,e._mipLevels)},n.prototype.clone=function(){return n.clone(this)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(9198)})()));
|
|
20195
|
+
"use strict";
|
|
20196
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_earthsdk3__;
|
|
20197
20197
|
|
|
20198
20198
|
/***/ }),
|
|
20199
20199
|
|
|
20200
|
-
/***/ "
|
|
20200
|
+
/***/ "xbsj-base":
|
|
20201
20201
|
/*!****************************!*\
|
|
20202
|
-
!*** external "
|
|
20202
|
+
!*** external "xbsj-base" ***!
|
|
20203
20203
|
\****************************/
|
|
20204
20204
|
/***/ ((module) => {
|
|
20205
20205
|
|
|
20206
20206
|
"use strict";
|
|
20207
|
-
module.exports =
|
|
20207
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_xbsj_base__;
|
|
20208
20208
|
|
|
20209
20209
|
/***/ })
|
|
20210
20210
|
|