@vertexvis/viewer 0.15.2-testing.3 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_commonjsHelpers-dcc4cf71.js +1 -1
- package/dist/cjs/app-globals-2035678d.js +1 -1
- package/dist/cjs/browser.esm-5d246754.js +1 -1
- package/dist/cjs/bundle.esm-22b6f2d6.js +1 -1
- package/dist/cjs/bundle.esm-b43c197a.js +38280 -0
- package/dist/cjs/{config-6e330a82.js → config-3fc1c093.js} +2 -2
- package/dist/cjs/{cursors-85d403e9.js → cursors-02a06ec9.js} +7 -1
- package/dist/cjs/dom-8d90bfaf.js +1 -1
- package/dist/cjs/dom-92728e58.js +1 -1
- package/dist/cjs/dom-d1bbd67c.js +1 -1
- package/dist/cjs/dom-d57d3c3b.js +1 -1
- package/dist/cjs/elementRectObserver-9b28f182.js +1 -1
- package/dist/cjs/entities-9eb7e608.js +1 -1
- package/dist/cjs/{entities-7b2e8c03.js → entities-c1c3c6a3.js} +3 -3
- package/dist/cjs/errors-1b37642b.js +97 -0
- package/dist/cjs/grpc-web-client.umd-2af20c1b.js +1 -1
- package/dist/cjs/index-70db349e.js +1 -1
- package/dist/cjs/index-b9d13137.js +1 -1
- package/dist/cjs/index.cjs.js +9 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mapper-0f2294a6.js → mapper-d4145b72.js} +2 -2
- package/dist/cjs/markup-4a2fc281.js +1 -1
- package/dist/cjs/{model-b61f4d20.js → model-19fb560a.js} +27 -6
- package/dist/cjs/model-20a70d27.js +1 -1
- package/dist/cjs/overlays-b03ec80b.js +1 -1
- package/dist/cjs/png-decoder-ef097f37.js +1 -1
- package/dist/cjs/results-178e89a3.js +1 -1
- package/dist/cjs/{scene-56438693.js → scene-a94e6fa5.js} +293 -215
- package/dist/cjs/shadow-css-6b9daa41.js +1 -1
- package/dist/cjs/stencil-fc92b387.js +1 -1
- package/dist/cjs/{streamAttributes-c64aee75.js → streamAttributes-cf0c513d.js} +8424 -41995
- package/dist/cjs/templates-e57b3741.js +1 -1
- package/dist/cjs/utils-2c8e2aa3.js +1 -1
- package/dist/cjs/utils-ea359796.js +1 -1
- package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-column.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-header.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-table-resize-divider.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree-toolbar-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +158 -37
- package/dist/cjs/vertex-viewer-box-query-tool.cjs.entry.js +425 -0
- package/dist/cjs/vertex-viewer-button_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-default-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +3 -2
- package/dist/cjs/vertex-viewer-dom-group.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-icon.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-layer.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +3 -2
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +5 -4
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +4 -3
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +7 -6
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +10 -5
- package/dist/cjs/vertex-viewer-pin-label_2.cjs.entry.js +15 -13
- package/dist/cjs/vertex-viewer-pin-tool.cjs.entry.js +20 -9
- package/dist/cjs/vertex-viewer-spinner.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +6 -4
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +5 -4
- package/dist/cjs/vertex-viewer.cjs.entry.js +80 -53
- package/dist/cjs/viewer.cjs.js +2 -2
- package/dist/cjs/viewport-5ca619f7.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/scene-tree/lib/controller.js +108 -28
- package/dist/collection/components/scene-tree/lib/errors.js +35 -2
- package/dist/collection/components/scene-tree/scene-tree.js +12 -5
- package/dist/collection/components/viewer/viewer.js +17 -15
- package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.css +79 -0
- package/dist/collection/components/viewer-box-query-tool/viewer-box-query-tool.js +278 -0
- package/dist/collection/components/viewer-pin-group/viewer-pin-group.js +5 -1
- package/dist/collection/components/viewer-pin-label/viewer-pin-label.css +1 -1
- package/dist/collection/components/viewer-pin-label/viewer-pin-label.js +14 -12
- package/dist/collection/components/viewer-pin-tool/utils.js +25 -4
- package/dist/collection/components/viewer-pin-tool/viewer-pin-tool.css +12 -0
- package/dist/collection/components/viewer-pin-tool/viewer-pin-tool.js +9 -2
- package/dist/collection/components/viewer-transform-widget/viewer-transform-widget.js +3 -2
- package/dist/collection/components/viewer-view-cube/viewer-view-cube.js +5 -5
- package/dist/collection/lib/cursors.js +6 -1
- package/dist/collection/lib/interactions/baseInteractionHandler.js +12 -2
- package/dist/collection/lib/interactions/mouseInteractions.js +5 -4
- package/dist/collection/lib/mappers/frameStreaming.js +11 -11
- package/dist/collection/lib/pins/interactions.js +9 -5
- package/dist/collection/lib/pins/model.js +2 -2
- package/dist/collection/lib/rendering/matrices.js +2 -4
- package/dist/collection/lib/scenes/camera.js +4 -2
- package/dist/collection/lib/scenes/mapper.js +103 -30
- package/dist/collection/lib/scenes/queries.js +101 -46
- package/dist/collection/lib/scenes/scene.js +15 -7
- package/dist/collection/lib/stream/stream.js +24 -12
- package/dist/collection/lib/transforms/drawable.js +2 -2
- package/dist/collection/lib/types/frame.js +4 -3
- package/dist/collection/lib/types/frameCamera.js +6 -1
- package/dist/collection/lib/types/index.js +3 -2
- package/dist/collection/lib/types/loadableResource.js +24 -4
- package/dist/collection/lib/types/sceneViewStateIdentifier.js +7 -0
- package/dist/collection/lib/volume-intersection/controller.js +104 -0
- package/dist/collection/lib/volume-intersection/interactions.js +82 -0
- package/dist/collection/lib/volume-intersection/model.js +84 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +23825 -18358
- package/dist/custom-elements/png-decoder.js +1 -1
- package/dist/esm/_commonjsHelpers-11ca3be1.js +1 -1
- package/dist/esm/app-globals-40df99a0.js +1 -1
- package/dist/esm/{browser.esm-ae4ca1f1.js → browser.esm-07e7db8f.js} +2 -2
- package/dist/esm/bundle.esm-91404853.js +38273 -0
- package/dist/esm/{bundle.esm-ce2c7ad3.js → bundle.esm-92e615bf.js} +2 -2
- package/dist/esm/{config-49688db8.js → config-25384fe6.js} +3 -3
- package/dist/esm/{cursors-a8d4b3f4.js → cursors-127a3bb7.js} +8 -3
- package/dist/esm/dom-0440435d.js +1 -1
- package/dist/esm/dom-be140992.js +1 -1
- package/dist/esm/dom-e19ee80b.js +1 -1
- package/dist/esm/{dom-5b164305.js → dom-e436f0c0.js} +2 -2
- package/dist/esm/elementRectObserver-39cf7b95.js +1 -1
- package/dist/esm/{entities-a5bfef48.js → entities-0e325765.js} +4 -4
- package/dist/esm/entities-ce81dd7f.js +1 -1
- package/dist/esm/errors-a4cc9caa.js +85 -0
- package/dist/esm/grpc-web-client.umd-5409853c.js +1 -1
- package/dist/esm/index-26dfb2d0.js +1 -1
- package/dist/esm/index-e841d91b.js +1 -1
- package/dist/esm/index.js +15 -13
- package/dist/esm/index.mjs +15 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/loader.mjs +2 -2
- package/dist/esm/{mapper-5894c2a4.js → mapper-dd937684.js} +3 -3
- package/dist/esm/{markup-3c2900f3.js → markup-2dde1f10.js} +3 -3
- package/dist/esm/{model-fa9af61a.js → model-3cd8cd47.js} +2 -2
- package/dist/esm/{model-40bd1711.js → model-bfe1c4d8.js} +29 -8
- package/dist/esm/{overlays-cc3efc30.js → overlays-8f195eb3.js} +3 -3
- package/dist/esm/{png-decoder-d4b65417.js → png-decoder-45f38ea3.js} +2 -2
- package/dist/esm/{results-3b4df2cf.js → results-38baef59.js} +2 -2
- package/dist/esm/{scene-5b919078.js → scene-2543b3bd.js} +254 -168
- package/dist/esm/shadow-css-51dd7708.js +1 -1
- package/dist/esm/stencil-bfbf099f.js +1 -1
- package/dist/esm/{streamAttributes-7e8565be.js → streamAttributes-23270e27.js} +8429 -41994
- package/dist/esm/templates-022199c1.js +1 -1
- package/dist/esm/{utils-81347571.js → utils-2306c744.js} +2 -2
- package/dist/esm/{utils-559e1632.js → utils-f03802ef.js} +2 -2
- package/dist/esm/vertex-scene-tree-search_3.entry.js +3 -3
- package/dist/esm/vertex-scene-tree-table-cell.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-column.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-header.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-table-resize-divider.entry.js +1 -1
- package/dist/esm/vertex-scene-tree-toolbar-group.entry.js +1 -1
- package/dist/esm/vertex-scene-tree.entry.js +160 -39
- package/dist/esm/vertex-viewer-box-query-tool.entry.js +421 -0
- package/dist/esm/vertex-viewer-button_3.entry.js +1 -1
- package/dist/esm/vertex-viewer-default-toolbar.entry.js +1 -1
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +6 -5
- package/dist/esm/vertex-viewer-dom-group.entry.js +3 -3
- package/dist/esm/vertex-viewer-icon.entry.js +1 -1
- package/dist/esm/vertex-viewer-layer.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +4 -4
- package/dist/esm/vertex-viewer-markup-tool.entry.js +5 -5
- package/dist/esm/vertex-viewer-markup.entry.js +5 -5
- package/dist/esm/vertex-viewer-measurement-details.entry.js +5 -4
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +13 -12
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +8 -7
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +12 -11
- package/dist/esm/vertex-viewer-pin-group.entry.js +13 -8
- package/dist/esm/vertex-viewer-pin-label_2.entry.js +18 -16
- package/dist/esm/vertex-viewer-pin-tool.entry.js +23 -12
- package/dist/esm/vertex-viewer-spinner.entry.js +1 -1
- package/dist/esm/vertex-viewer-transform-widget.entry.js +9 -7
- package/dist/esm/vertex-viewer-view-cube.entry.js +7 -6
- package/dist/esm/vertex-viewer.entry.js +65 -38
- package/dist/esm/viewer.js +2 -2
- package/dist/esm/{viewport-e39e2eba.js → viewport-f19fc583.js} +2 -2
- package/dist/types/components/scene-tree/lib/controller.d.ts +18 -3
- package/dist/types/components/scene-tree/lib/errors.d.ts +17 -2
- package/dist/types/components/viewer/viewer.d.ts +2 -0
- package/dist/types/components/viewer-box-query-tool/viewer-box-query-tool.d.ts +94 -0
- package/dist/types/components/viewer-pin-tool/utils.d.ts +1 -1
- package/dist/types/components.d.ts +56 -0
- package/dist/types/lib/cursors.d.ts +5 -0
- package/dist/types/lib/interactions/baseInteractionHandler.d.ts +1 -0
- package/dist/types/lib/interactions/mouseInteractions.d.ts +2 -1
- package/dist/types/lib/pins/interactions.d.ts +4 -2
- package/dist/types/lib/pins/model.d.ts +1 -1
- package/dist/types/lib/scenes/camera.d.ts +1 -1
- package/dist/types/lib/scenes/mapper.d.ts +5 -1
- package/dist/types/lib/scenes/queries.d.ts +55 -28
- package/dist/types/lib/scenes/scene.d.ts +10 -1
- package/dist/types/lib/types/frame.d.ts +1 -1
- package/dist/types/lib/types/index.d.ts +2 -1
- package/dist/types/lib/types/loadableResource.d.ts +8 -2
- package/dist/types/lib/types/sceneViewStateIdentifier.d.ts +15 -0
- package/dist/types/lib/volume-intersection/controller.d.ts +45 -0
- package/dist/types/lib/volume-intersection/interactions.d.ts +24 -0
- package/dist/types/lib/volume-intersection/model.d.ts +33 -0
- package/dist/viewer/index.esm.js +2 -2
- package/dist/viewer/{p-ad09c92e.entry.js → p-029fba92.entry.js} +1 -1
- package/dist/viewer/p-07aeee89.js +1 -1
- package/dist/viewer/{p-29986489.js → p-0a017be7.js} +2 -2
- package/dist/viewer/p-0c583cad.entry.js +4 -0
- package/dist/viewer/p-0d494d01.js +4 -0
- package/dist/viewer/p-0fdad1a5.js +1 -1
- package/dist/viewer/{p-3ca4a7c1.js → p-1812c82d.js} +2 -2
- package/dist/viewer/{p-7663a603.entry.js → p-191156ad.entry.js} +1 -1
- package/dist/viewer/{p-a57dc6e4.entry.js → p-1998284a.entry.js} +2 -2
- package/dist/viewer/p-27f715f8.entry.js +4 -0
- package/dist/viewer/{p-7f6251da.js → p-283aeac4.js} +2 -2
- package/dist/viewer/p-298b63c2.entry.js +4 -0
- package/dist/viewer/p-2ace066b.entry.js +4 -0
- package/dist/viewer/{p-927b528b.js → p-2b60a8b0.js} +2 -2
- package/dist/viewer/{p-050f912b.entry.js → p-2fd123c8.entry.js} +1 -1
- package/dist/viewer/p-305a8be6.entry.js +4 -0
- package/dist/viewer/p-31724d24.js +4 -0
- package/dist/viewer/p-32cc2209.js +4 -0
- package/dist/viewer/p-3829dd99.entry.js +4 -0
- package/dist/viewer/{p-6da8a28f.entry.js → p-3aae4bf1.entry.js} +2 -2
- package/dist/viewer/{p-99352cf0.js → p-42760392.js} +2 -2
- package/dist/viewer/p-440c8174.js +4 -0
- package/dist/viewer/{p-e422deaf.entry.js → p-4f25e367.entry.js} +2 -2
- package/dist/viewer/{p-d64c1e14.entry.js → p-507b5aeb.entry.js} +3 -3
- package/dist/viewer/{p-1fc24ec6.js → p-51401063.js} +2 -2
- package/dist/viewer/{p-426970b3.entry.js → p-533b1c63.entry.js} +1 -1
- package/dist/viewer/{p-dcb9804c.entry.js → p-569ed94a.entry.js} +2 -2
- package/dist/viewer/p-5809b400.js +1 -1
- package/dist/viewer/p-6072cf84.js +4 -0
- package/dist/viewer/{p-e4a26a32.entry.js → p-6406a70a.entry.js} +1 -1
- package/dist/viewer/p-6bf0594b.entry.js +4 -0
- package/dist/viewer/p-72c59115.entry.js +4 -0
- package/dist/viewer/{p-d71652b0.entry.js → p-8ac7290a.entry.js} +1 -1
- package/dist/viewer/{p-f184bcab.entry.js → p-8afcbd99.entry.js} +1 -1
- package/dist/viewer/p-92fe4417.js +1 -1
- package/dist/viewer/{p-5746931d.entry.js → p-952a217d.entry.js} +1 -1
- package/dist/viewer/p-98e6a50e.js +1 -1
- package/dist/viewer/{p-99fd27e0.entry.js → p-9cb99ea8.entry.js} +1 -1
- package/dist/viewer/p-a2e9e8a5.js +4 -0
- package/dist/viewer/p-a380f0c2.js +1 -1
- package/dist/viewer/{p-661b5234.js → p-acfc5c50.js} +2 -2
- package/dist/viewer/{p-82bd25e8.entry.js → p-b3540dce.entry.js} +1 -1
- package/dist/viewer/p-b5ca30cd.js +4 -0
- package/dist/viewer/p-b74242dc.js +1 -1
- package/dist/viewer/p-bc1160cf.entry.js +4 -0
- package/dist/viewer/{p-c5e67a1e.entry.js → p-bd5a302c.entry.js} +2 -2
- package/dist/viewer/p-c738296e.js +1 -1
- package/dist/viewer/p-c8c4343b.js +1 -1
- package/dist/viewer/p-cd9ccb9e.entry.js +4 -0
- package/dist/viewer/{p-40a9dd7d.js → p-cf689bbd.js} +2 -2
- package/dist/viewer/{p-70e5e8a8.js → p-d216a866.js} +2 -2
- package/dist/viewer/p-d4ed7b8d.js +4 -0
- package/dist/viewer/p-d6d5d5de.entry.js +4 -0
- package/dist/viewer/p-d6fce4c1.js +1 -1
- package/dist/viewer/p-df8fbe56.js +1 -1
- package/dist/viewer/p-dfe5a97d.js +1 -1
- package/dist/viewer/{p-00ce31a0.js → p-e1896ce4.js} +2 -2
- package/dist/viewer/p-e23af70c.js +4 -0
- package/dist/viewer/p-e4aa9cdb.js +1 -1
- package/dist/viewer/p-e929dd63.entry.js +4 -0
- package/dist/viewer/{p-65af7a89.js → p-fc7d8c03.js} +3 -3
- package/dist/viewer/viewer.esm.js +2 -2
- package/package.json +9 -9
- package/readme.md +4 -4
- package/dist/viewer/p-096e60bd.js +0 -4
- package/dist/viewer/p-0cf4f05d.entry.js +0 -4
- package/dist/viewer/p-0fcafbf9.js +0 -4
- package/dist/viewer/p-1abfe4bf.js +0 -4
- package/dist/viewer/p-1e0dd2e9.js +0 -4
- package/dist/viewer/p-22ae6785.entry.js +0 -4
- package/dist/viewer/p-27dbc865.js +0 -4
- package/dist/viewer/p-31b87b90.js +0 -4
- package/dist/viewer/p-3f6f2457.entry.js +0 -4
- package/dist/viewer/p-61e50e11.entry.js +0 -4
- package/dist/viewer/p-7579e2a1.entry.js +0 -4
- package/dist/viewer/p-920c9a88.entry.js +0 -4
- package/dist/viewer/p-990f98c2.js +0 -4
- package/dist/viewer/p-9dfe0b43.entry.js +0 -4
- package/dist/viewer/p-a6558bb2.entry.js +0 -4
- package/dist/viewer/p-b7e170ac.entry.js +0 -4
- package/dist/viewer/p-d34ad2b2.entry.js +0 -4
- package/dist/viewer/p-f3ea0c2b.entry.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -15,4 +15,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
15
15
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
16
|
PERFORMANCE OF THIS SOFTWARE.
|
|
17
17
|
***************************************************************************** */
|
|
18
|
-
var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])})(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)}var r=function(){return(r=Object.assign||function(n){for(var t,r=1,u=arguments.length;r<u;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};function u(n,t){var r={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&t.indexOf(u)<0&&(r[u]=n[u]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(u=Object.getOwnPropertySymbols(n);o<u.length;o++)t.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(n,u[o])&&(r[u[o]]=n[u[o]])}return r}function o(n,t,r,u){return new(r||(r=Promise))((function(o,e){function i(n){try{c(u.next(n))}catch(n){e(n)}}function a(n){try{c(u.throw(n))}catch(n){e(n)}}function c(n){var t;n.done?o(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(i,a)}c((u=u.apply(n,t||[])).next())}))}function e(n,t){var r,u,o,e,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return e={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function a(e){return function(a){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,u&&(o=2&e[0]?u.return:e[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,e[1])).done)return o;switch(u=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return i.label++,{value:e[1],done:!1};case 5:i.label++,u=e[1],e=[0];continue;case 7:e=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==e[0]&&2!==e[0])){i=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){i.label=e[1];break}if(6===e[0]&&i.label<o[1]){i.label=o[1],o=e;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(e);break}o[2]&&i.ops.pop(),i.trys.pop();continue}e=t.call(n,i)}catch(n){e=[6,n],u=0}finally{r=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,a])}}}function i(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var u,o,e=r.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(u=e.next()).done;)i.push(u.value)}catch(n){o={error:n}}finally{try{u&&!u.done&&(r=e.return)&&r.call(e)}finally{if(o)throw o.error}}return i}function a(n,t,r){if(r||2===arguments.length)for(var u,o=0,e=t.length;o<e;o++)!u&&o in t||(u||(u=Array.prototype.slice.call(t,0,o)),u[o]=t[o]);return n.concat(u||Array.prototype.slice.call(t))}function c(n,t,r){return Math.max(t,Math.min(r,n))}function f(n,t,r){return(r=c(r,0,1))*(t-n)+n}function h(n,t){return void 0===n&&(n=0),void 0===t&&(t=0),{x:n,y:t}}function l(n,t){return{x:n.x-t.x,y:n.y-t.y}}function v(n,t){return{x:n.x+t.x,y:n.y+t.y}}function s(n,t){return n.x===t.x&&n.y===t.y}var d=Object.freeze({__proto__:null,create:h,polar:function(n,t){return h(Math.cos(t)*n,Math.sin(t)*n)},distance:function(n,t){var r=l(n,t);return Math.sqrt(r.x*r.x+r.y*r.y)},subtract:l,add:v,isEqual:s,lerp:function(n,t,r){return{x:f(n.x,t.x,r),y:f(n.y,t.y,r)}},negate:function(n){return h(-n.x,-n.y)},scale:function(n,t,r){return{x:n.x*t,y:n.y*r}},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?h(t[0],t[1]):h(t.x,t.y)}});function M(n){return(n+3600)%360}function y(n){return n*(180/Math.PI)}function m(n){return n*(Math.PI/180)}var x=Object.freeze({__proto__:null,fromPoints:function(n,t){var r=l(t,n);return Math.atan2(r.y,r.x)},fromPointsInDegrees:function(n,t){var r=l(t,n);return M(y(Math.atan2(r.y,r.x))-270)},normalize:M,toDegrees:y,toRadians:m});function _(n,t,r,u,o,e,i,a,c,f,h,l,v,s,d,M){return[n,o,c,v,t,e,f,s,r,i,h,d,u,a,l,M]}function p(n){return[1,0,0,0,0,1,0,0,0,0,1,0,n.x,n.y,n.z,1]}function z(n){var t=n.x,r=n.y,u=n.z,o=n.w,e=t+t,i=r+r,a=u+u,c=t*e,f=t*i,h=t*a,l=r*i,v=r*a,s=u*a,d=o*e,M=o*i,y=o*a;return[1-(l+s),f+y,h-M,0,f-y,1-(c+s),v+d,0,h+M,v-d,1-(c+l),0,0,0,0,1]}function b(n){return[n.x,0,0,0,0,n.y,0,0,0,0,n.z,0,0,0,0,1]}function w(n,t,r,u,o,e){return[2*o/(t-n),0,0,0,0,2*o/(r-u),0,0,(t+n)/(t-n),(r+u)/(r-u),-(e+o)/(e-o),-1,0,0,-2*e*o/(e-o),0]}function O(n,t){var r=n[0],u=n[4],o=n[8],e=n[12],i=n[1],a=n[5],c=n[9],f=n[13],h=n[2],l=n[6],v=n[10],s=n[14],d=n[3],M=n[7],y=n[11],m=n[15],x=t[0],_=t[4],p=t[8],z=t[12],b=t[1],w=t[5],O=t[9],j=t[13],g=t[2],k=t[6],A=t[10],S=t[14],P=t[3],T=t[7],q=t[11],J=t[15],R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return R[0]=r*x+u*b+o*g+e*P,R[4]=r*_+u*w+o*k+e*T,R[8]=r*p+u*O+o*A+e*q,R[12]=r*z+u*j+o*S+e*J,R[1]=i*x+a*b+c*g+f*P,R[5]=i*_+a*w+c*k+f*T,R[9]=i*p+a*O+c*A+f*q,R[13]=i*z+a*j+c*S+f*J,R[2]=h*x+l*b+v*g+s*P,R[6]=h*_+l*w+v*k+s*T,R[10]=h*p+l*O+v*A+s*q,R[14]=h*z+l*j+v*S+s*J,R[3]=d*x+M*b+y*g+m*P,R[7]=d*_+M*w+y*k+m*T,R[11]=d*p+M*O+y*A+m*q,R[15]=d*z+M*j+y*S+m*J,R}function j(n){return{m11:n[0],m12:n[4],m13:n[8],m14:n[12],m21:n[1],m22:n[5],m23:n[9],m24:n[13],m31:n[2],m32:n[6],m33:n[10],m34:n[14],m41:n[3],m42:n[7],m43:n[11],m44:n[15]}}var g=Object.freeze({__proto__:null,fromValues:_,fromObject:function(n){return _(n.m11,n.m12,n.m13,n.m14,n.m21,n.m22,n.m23,n.m24,n.m31,n.m32,n.m33,n.m34,n.m41,n.m42,n.m43,n.m44)},makeIdentity:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},makeZero:function(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},makeTranslation:p,makeRotation:z,makeScale:b,makeTRS:function(n,t,r){var u=p(n),o=z(t),e=b(r);return O(O(u,o),e)},makeBasis:function(n,t,r){return[n.x,n.y,n.z,0,t.x,t.y,t.z,0,r.x,r.y,r.z,0,0,0,0,1]},makeRotationAxis:function(n,t){var r=Math.cos(t),u=Math.sin(t),o=1-r,e=n.x,i=n.y,a=n.z,c=o*e,f=o*i;return[c*e+r,c*i+u*a,c*a-u*i,0,c*i-u*a,f*i+r,f*a+u*e,0,c*a+u*i,f*a-u*e,o*a*a+r,0,0,0,0,1]},makeFrustum:w,makePerspective:function(n,t,r,u){var o=n*Math.tan(m(r/2)),e=o*u;return w(-e,e,o,-o,n,t)},makeOrthographic:function(n,t,r,u,o,e){var i=1/(t-n),a=1/(u-r),c=1/(e-o);return[2*i,0,0,-(t+n)*i,0,2*a,0,-(u+r)*a,0,0,-2*c,-(e+o)*c,0,0,0,1]},makeLookAtView:function(n,t,r){var u=T(F(n,t)),o=T(R(r,u)),e=R(u,o),i=-D(o,n),a=-D(e,n),c=-D(u,n);return[o.x,e.x,u.x,0,o.y,e.y,u.y,0,o.z,e.z,u.z,0,i,a,c,1]},makeLookAt:function(n,t,r){var u=T(F(n,t)),o=T(R(r,u)),e=R(u,o);return[o.x,o.y,o.z,0,e.x,e.y,e.z,0,u.x,u.y,u.z,0,n.x,n.y,n.z,1]},invert:function(n){var t=n[0],r=n[1],u=n[2],o=n[3],e=n[4],i=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],v=n[11],s=n[12],d=n[13],M=n[14],y=n[15],m=t*i-r*e,x=t*a-u*e,_=t*c-o*e,p=r*a-u*i,z=r*c-o*i,b=u*c-o*a,w=f*d-h*s,O=f*M-l*s,j=f*y-v*s,g=h*M-l*d,k=h*y-v*d,A=l*y-v*M,S=m*A-x*k+_*g+p*j-z*O+b*w;return S?[(i*A-a*k+c*g)*(S=1/S),(u*k-r*A-o*g)*S,(d*b-M*z+y*p)*S,(l*z-h*b-v*p)*S,(a*j-e*A-c*O)*S,(t*A-u*j+o*O)*S,(M*_-s*b-y*x)*S,(f*b-l*_+v*x)*S,(e*k-i*j+c*w)*S,(r*j-t*k-o*w)*S,(s*z-d*_+y*m)*S,(h*_-f*z-v*m)*S,(i*O-e*g-a*w)*S,(t*g-r*O+u*w)*S,(d*x-s*p-M*m)*S,(f*p-h*x+l*m)*S]:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},lookAt:function(n,t,u,o){var e=F(t,u);0===J(e)&&(e=r(r({},e),{z:1}));var i=R(o,e=T(e));0===J(i)&&(i=R(o,e=T(e=1===Math.abs(o.z)?r(r({},e),{x:e.x+1e-4}):r(r({},e),{z:e.z+1e-4}))));var c=R(e,i=T(i)),f=a([],n,!0);return f[0]=i.x,f[4]=c.x,f[8]=e.x,f[1]=i.y,f[5]=c.y,f[9]=e.y,f[2]=i.z,f[6]=c.z,f[10]=e.z,f},multiply:O,transpose:function(n){return[n[0],n[4],n[8],n[12],n[1],n[5],n[9],n[13],n[2],n[6],n[10],n[14],n[3],n[7],n[11],n[15]]},scale:function(n,t){var r=t.x,u=t.y,o=t.z,e=a([],n,!0);return e[0]*=r,e[4]*=u,e[8]*=o,e[1]*=r,e[5]*=u,e[9]*=o,e[2]*=r,e[6]*=u,e[10]*=o,e[3]*=r,e[7]*=u,e[11]*=o,e},position:function(n,t){var r=a([],n,!0);return r[12]=t[12],r[13]=t[13],r[14]=t[14],r},toObject:j,isType:function(n){return Array.isArray(n)&&16===n.length}});function k(){for(var n,t,r,u,o,e,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return 1===i.length?{x:null!==(n=i[0].x)&&void 0!==n?n:0,y:null!==(t=i[0].y)&&void 0!==t?t:0,z:null!==(r=i[0].z)&&void 0!==r?r:0}:3===i.length?{x:null!==(u=i[0])&&void 0!==u?u:0,y:null!==(o=i[1])&&void 0!==o?o:0,z:null!==(e=i[2])&&void 0!==e?e:0}:{x:0,y:0,z:0}}function A(n){var t=j(n);return{x:Math.hypot(t.m11,t.m21,t.m31),y:Math.hypot(t.m12,t.m22,t.m32),z:Math.hypot(t.m13,t.m23,t.m33)}}function S(){return k(0,0,-1)}function P(){return k(0,0,0)}function T(n){var t=q(n);return{x:n.x/t,y:n.y/t,z:n.z/t}}function q(n){return Math.sqrt(J(n))}function J(n){return n.x*n.x+n.y*n.y+n.z*n.z}function R(n,t){return{x:n.y*t.z-n.z*t.y,y:n.z*t.x-n.x*t.z,z:n.x*t.y-n.y*t.x}}function N(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(n,t){return{x:n.x+t.x,y:n.y+t.y,z:n.z+t.z}}),n)}function F(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(n,t){return{x:n.x-t.x,y:n.y-t.y,z:n.z-t.z}}),n)}function E(n,t){return{x:t.x*n,y:t.y*n,z:t.z*n}}function D(n,t){return n.x*t.x+n.y*t.y+n.z*t.z}function L(n,t){var r=n.x,u=n.y,o=n.z,e=1/(t[3]*r+t[7]*u+t[11]*o+t[15]);return{x:(t[0]*r+t[4]*u+t[8]*o+t[12])*e,y:(t[1]*r+t[5]*u+t[9]*o+t[13])*e,z:(t[2]*r+t[6]*u+t[10]*o+t[14])*e}}function V(n,t){return Math.sqrt(C(n,t))}function C(n,t){var r=F(n,t),u=r.x,o=r.y,e=r.z;return u*u+o*o+e*e}function I(n,t){return k(Math.max(n.x,t.x),Math.max(n.y,t.y),Math.max(n.z,t.z))}function B(n,t){return k(Math.min(n.x,t.x),Math.min(n.y,t.y),Math.min(n.z,t.z))}function G(n,t,r){return{x:f(n.x,t.x,r),y:f(n.y,t.y,r),z:f(n.z,t.z,r)}}var W=Object.freeze({__proto__:null,create:k,isValid:function(n){return[n.x,n.y,n.z].every((function(n){return isFinite(n)&&!isNaN(n)}))},fromMatrixScale:A,fromMatrixPosition:function(n){var t=j(n);return{x:t.m14,y:t.m24,z:t.m34}},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?k(t[0],t[1],t[2]):k(t.x,t.y,t.z)},fromArray:function(n,t){return void 0===t&&(t=0),k(n[t],n[t+1],n[t+2])},toArray:function(n){return[n.x,n.y,n.z]},right:function(){return k(1,0,0)},up:function(){return k(0,1,0)},forward:S,left:function(){return k(-1,0,0)},down:function(){return k(0,-1,0)},back:function(){return k(0,0,1)},origin:P,normalize:T,magnitude:q,magnitudeSquared:J,cross:R,add:N,subtract:F,multiply:function(n,t){return{x:n.x*t.x,y:n.y*t.y,z:n.z*t.z}},scale:E,dot:D,angleTo:function(n,t){var r=D(n,t)/(q(n)*q(t));return Math.acos(r)},project:function(n,t){return E(D(t,n)/q(t),t)},rotateAboutAxis:function(n,t,r,u){if(0!==n){var o=t.x,e=t.y,i=t.z,a=u.x,c=u.y,f=u.z,h=r.x,l=r.y,v=r.z;return{x:(a*(l*l+v*v)-h*(c*l+f*v-h*o-l*e-v*i))*(1-Math.cos(n))+o*Math.cos(n)+(-f*l+c*v-v*e+l*i)*Math.sin(n),y:(c*(h*h+v*v)-l*(a*h+f*v-h*o-l*e-v*i))*(1-Math.cos(n))+e*Math.cos(n)+(f*h-a*v+v*o-h*i)*Math.sin(n),z:(f*(h*h+l*l)-v*(a*h+c*l-h*o-l*e-v*i))*(1-Math.cos(n))+i*Math.cos(n)+(-c*h+a*l-l*o+h*e)*Math.sin(n)}}return t},transformMatrix:L,distance:V,distanceSquared:C,isEqual:function(n,t){return n.x===t.x&&n.y===t.y&&n.z===t.z},max:I,min:B,negate:function(n){return{x:-n.x,y:-n.y,z:-n.z}},lerp:G,transformNdcToWorldSpace:function(n,t,r){return L(L(n,r),t)}}),Z=function(n,t){return{min:n,max:t}},H=function(n){return E(.5,N(n.min,n.max))},K=function(n){return F(n.max,n.min)};function Q(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var u=a([n],t,!0);return u.reduce((function(n,t){return Z(B(n.min,t.min),I(n.max,t.max))}))}var U=Object.freeze({__proto__:null,create:Z,fromVectors:function(n){return Q.apply(void 0,n.map((function(n){return Z(n,n)})))},center:H,diagonal:K,epsilon:function(n){return 1e-6*Math.max(Math.max(q(n.max),q(n.min)),q(K(n)))},union:Q}),X=Object.freeze({__proto__:null,create:function(n){var t=H(n),r=q(F(n.max,t)),u=Math.max(r,q(t));return{center:t,radius:r,epsilon:0===u?1:1e-6*u}}});function Y(n,t,r,u){return{x:n,y:t,width:r,height:u}}function $(n,t){return Y(n.x,n.y,t.width,t.height)}function nn(n,t){var r=Math.min(n.width/t.width,n.height/t.height),u=ln(r,t);return $(l(on(n),sn(u)),u)}function tn(n,t){var r=Math.max(n.width/t.width,n.height/t.height),u=ln(r,t);return $(l(on(n),sn(u)),u)}function rn(n,t){var r=Math.min(Math.sqrt(n/un(t)),1),u=vn(ln(r,t));return $(l(on(t),sn(u)),u)}function un(n){return n.width*n.height}function on(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}function en(n){return h(n.x,n.y)}var an=Object.freeze({__proto__:null,create:Y,fromDimensions:function(n){return Y(0,0,n.width,n.height)},fromPointAndDimensions:$,fromPoints:function(n,t){var r=Math.min(n.x,t.x),u=Math.min(n.y,t.y);return Y(r,u,Math.max(n.x,t.x)-r,Math.max(n.y,t.y)-u)},containFit:nn,cropFit:tn,scaleFit:rn,scale:function n(t,r,u){return null==u?n(t,r,r):Y(t.x*r,t.y*u,t.width*r,t.height*u)},isEqual:function(n,t){return s(n,t)&&fn(n,t)},offset:function(n,t){return $(v(en(t),n),t)},area:un,center:on,topLeft:en,bottomRight:function(n){return h(n.x+n.width,n.y+n.height)},isPortrait:function(n){return n.width<n.height},isLandscape:function(n){return n.width>n.height},isSquare:function(n){return n.width===n.height},pad:function(n,t){return Y(n.x-t,n.y-t,n.width+2*t,n.height+2*t)},containsPoints:function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.every((function(t){return n.x<=t.x&&n.x+n.width>=t.x&&n.y<=t.y&&n.y+n.height>=t.y}))},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?Y(t[0],t[1],t[2],t[3]):Y(t.x,t.y,t.width,t.height)}}),cn=function(n,t){return{width:n,height:t}},fn=function(n,t){return n.width===t.width&&n.height===t.height},hn=function(n,t,r){return{width:r.width*n,height:r.height*t}},ln=function(n,t){return hn(n,n,t)},vn=function(n){return{width:Math.floor(n.width),height:Math.floor(n.height)}},sn=function(n){return{x:n.width/2,y:n.height/2}};function dn(n,t){return void 0===t&&(t=h()),$(t,n)}var Mn=Object.freeze({__proto__:null,create:cn,square:function(n){return cn(n,n)},isEqual:fn,scale:hn,proportionalScale:ln,trim:function(n,t){return{width:Math.min(n.width,t.width),height:Math.min(n.height,t.height)}},containFit:function(n,t){var r=nn(dn(n),dn(t));return{width:r.width,height:r.height}},cropFit:function(n,t){var r=tn(dn(n),dn(t));return{width:r.width,height:r.height}},scaleFit:function(n,t){var r=rn(n,dn(t));return{width:r.width,height:r.height}},round:function(n){return{width:Math.round(n.width),height:Math.round(n.height)}},floor:vn,center:sn,aspectRatio:function(n){return n.width/n.height},area:function(n){return n.width*n.height},fitToRatio:function(n,t){return t.width>=t.height*n?cn(t.height*n,t.height):cn(t.width,t.width/n)},toRectangle:dn});function yn(n){var t,r,u,o;return void 0===n&&(n={}),{x:null!==(t=n.x)&&void 0!==t?t:0,y:null!==(r=n.y)&&void 0!==r?r:0,z:null!==(u=n.z)&&void 0!==u?u:0,order:null!==(o=n.order)&&void 0!==o?o:"xyz"}}var mn=Object.freeze({__proto__:null,create:yn,fromDegrees:function(n){void 0===n&&(n={});var t=n.x,r=n.y,u=void 0===r?0:r,o=n.z,e=void 0===o?0:o,i=n.order;return yn({x:m(void 0===t?0:t),y:m(u),z:m(e),order:i})},fromRotationMatrix:function(n,t){void 0===t&&(t="xyz");var r=j(n),u=0,o=0,e=0;return"xyz"===t?(o=Math.asin(c(r.m13,-1,1)),Math.abs(r.m13)<.9999999?(u=Math.atan2(-r.m23,r.m33),e=Math.atan2(-r.m12,r.m11)):(u=Math.atan2(r.m32,r.m22),e=0)):"yxz"===t?(u=Math.asin(-c(r.m23,-1,1)),Math.abs(r.m23)<.9999999?(o=Math.atan2(r.m13,r.m33),e=Math.atan2(r.m21,r.m22)):(o=Math.atan2(-r.m31,r.m11),e=0)):"zxy"===t?(u=Math.asin(c(r.m32,-1,1)),Math.abs(r.m32)<.9999999?(o=Math.atan2(-r.m31,r.m33),e=Math.atan2(-r.m12,r.m22)):(o=0,e=Math.atan2(r.m21,r.m11))):"zyx"===t?(o=Math.asin(-c(r.m31,-1,1)),Math.abs(r.m31)<.9999999?(u=Math.atan2(r.m32,r.m33),e=Math.atan2(r.m21,r.m11)):(u=0,e=Math.atan2(-r.m12,r.m22))):"yzx"===t?(e=Math.asin(c(r.m21,-1,1)),Math.abs(r.m21)<.9999999?(u=Math.atan2(-r.m23,r.m22),o=Math.atan2(-r.m31,r.m11)):(u=0,o=Math.atan2(r.m13,r.m33))):"xzy"===t&&(e=Math.asin(-c(r.m12,-1,1)),Math.abs(r.m12)<.9999999?(u=Math.atan2(r.m32,r.m22),o=Math.atan2(r.m13,r.m11)):(u=Math.atan2(-r.m23,r.m33),o=0)),{x:u,y:o,z:e,order:t}},fromJson:function(n){var t=JSON.parse(n);if(Array.isArray(t)){var r=t[3];return{x:t[0],y:t[1],z:t[2],order:void 0===r?"xyz":r}}var u=t.order;return{x:t.x,y:t.y,z:t.z,order:void 0===u?"xyz":u}},isType:function(n){var t=n;return null!=t&&t.hasOwnProperty("x")&&t.hasOwnProperty("y")&&t.hasOwnProperty("z")&&t.hasOwnProperty("order")}});function xn(n){return F(n.end,n.start)}var _n=Object.freeze({__proto__:null,create:function(n){var t,r;return void 0===n&&(n={}),{start:null!==(t=n.start)&&void 0!==t?t:P(),end:null!==(r=n.end)&&void 0!==r?r:P()}},center:function(n){return G(n.start,n.end,.5)},transformMatrix:function(n,t){return{start:L(n.start,t),end:L(n.end,t)}},distance:function(n){return V(n.start,n.end)},distanceSquared:function(n){return C(n.start,n.end)},direction:xn}),pn=function(n,t,r,u,o,e){return void 0===n&&(n=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===u&&(u=1),void 0===o&&(o=0),void 0===e&&(e=0),{a:n,b:t,c:r,d:u,tx:o,ty:e}},zn=function(){return pn()},bn=function(n,t){var r=m(n),u=Math.cos(r),o=Math.sin(r);return pn(t.a*u+t.c*o,t.b*u+t.d*o,t.a*-o+t.c*u,t.b*-o+t.d*u,t.tx,t.ty)},wn=function(n,t,r){return pn(r.a,r.b,r.c,r.d,r.a*n+r.c*t+r.tx,r.b*n+r.d*t+r.ty)},On=Object.freeze({__proto__:null,create:pn,identity:zn,translation:function(n,t){return wn(n,t,zn())},rotation:function(n){return bn(n,zn())},rotate:bn,translate:wn,transformPoint:function(n,t){return h(n.a*t.x+n.c*t.y+n.tx,n.b*t.x+n.d*t.y+n.ty)}}),jn=Object.freeze({__proto__:null,create:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 2===n.length?{a:n[0].x,b:n[0].y,c:n[1].x,d:n[1].y}:4===n.length?{a:n[0],b:n[1],c:n[2],d:n[3]}:{a:0,b:0,c:0,d:0}},determinant:function(n){return n.a*n.d-n.b*n.c},dot:function(n){return n.a*n.c+n.b*n.d}});function gn(n){return void 0===n&&(n={}),r({normal:P(),constant:0},n)}function kn(n,t){return D(n.normal,t)+n.constant}var An=Object.freeze({__proto__:null,create:gn,fromNormalAndCoplanarPoint:function(n,t){return gn({normal:n,constant:-D(t,n)})},distanceToPoint:kn,intersectLine:function(n,t){var r=xn(t),u=D(n.normal,r);if(0===u)return 0===kn(n,t.start)?t.start:void 0;var o=-(D(t.start,n.normal)+n.constant)/u;return o<0||o>1?void 0:N(E(o,r),t.start)},projectPoint:function(n,t){return N(t,E(-kn(n,t),n.normal))}});function Sn(n){return void 0===n&&(n={}),r({x:0,y:0,z:0,w:1},n)}var Pn=Object.freeze({__proto__:null,create:Sn,fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?Sn({x:t[0],y:t[1],z:t[2],w:t[3]}):Sn(t)},fromAxisAngle:function(n,t){var r=t/2,u=Math.sin(r);return{x:n.x*u,y:n.y*u,z:n.z*u,w:Math.cos(r)}},fromMatrixRotation:function(n){var t,r=j(n),u=A(n),o=1/u.x,e=1/u.y,i=1/u.z,a=r.m11*o,c=r.m21*e,f=r.m31*i,h=r.m12*o,l=r.m22*e,v=r.m32*i,s=r.m13*o,d=r.m23*e,M=r.m33*i,y=a+l+M;return y>0?{x:(v-d)/(t=2*Math.sqrt(y+1)),y:(s-f)/t,z:(c-h)/t,w:.25*t}:a>l&&a>M?{x:.25*(t=2*Math.sqrt(1+a-l-M)),y:(c+h)/t,z:(s+f)/t,w:(v-d)/t}:l>M?{x:(c+h)/(t=2*Math.sqrt(1+l-a-M)),y:.25*t,z:(v+d)/t,w:(s-f)/t}:{x:(s+f)/(t=2*Math.sqrt(1+M-a-l)),y:(v+d)/t,z:.25*t,w:(c-h)/t}},fromEuler:function(n){var t=n.x,r=n.y,u=n.z,o=n.order,e=Math.cos(t/2),i=Math.cos(r/2),a=Math.cos(u/2),c=Math.sin(t/2),f=Math.sin(r/2),h=Math.sin(u/2),l=0,v=0,s=0,d=0;switch(o){case"xyz":l=c*i*a+e*f*h,v=e*f*a-c*i*h,s=e*i*h+c*f*a,d=e*i*a-c*f*h;break;case"yxz":l=c*i*a+e*f*h,v=e*f*a-c*i*h,s=e*i*h-c*f*a,d=e*i*a+c*f*h;break;case"zxy":l=c*i*a-e*f*h,v=e*f*a+c*i*h,s=e*i*h+c*f*a,d=e*i*a-c*f*h;break;case"zyx":l=c*i*a-e*f*h,v=e*f*a+c*i*h,s=e*i*h-c*f*a,d=e*i*a+c*f*h;break;case"yzx":l=c*i*a+e*f*h,v=e*f*a+c*i*h,s=e*i*h-c*f*a,d=e*i*a-c*f*h;break;case"xzy":l=c*i*a-e*f*h,v=e*f*a-c*i*h,s=e*i*h+c*f*a,d=e*i*a+c*f*h}return{x:l,y:v,z:s,w:d}},multiply:function(n,t){return{x:n.x*t.w+n.w*t.x+n.y*t.z-n.z*t.y,y:n.y*t.w+n.w*t.y+n.z*t.x-n.x*t.z,z:n.z*t.w+n.w*t.z+n.x*t.y-n.y*t.x,w:n.w*t.w-n.x*t.x-n.y*t.y-n.z*t.z}},isType:function(n){var t=n;return null!=t&&t.hasOwnProperty("x")&&t.hasOwnProperty("y")&&t.hasOwnProperty("z")&&t.hasOwnProperty("w")}});function Tn(n,t){return N(E(t,n.direction),n.origin)}function qn(n,t){var r=D(t.normal,n.direction);if(0===r)return 0===kn(t,n.origin)?0:void 0;var u=-(D(n.origin,t.normal)+t.constant)/r;return u>=0?u:void 0}var Jn=Object.freeze({__proto__:null,create:function(n){var t,r;return void 0===n&&(n={}),{origin:null!==(t=n.origin)&&void 0!==t?t:P(),direction:null!==(r=n.direction)&&void 0!==r?r:S()}},at:Tn,distanceToPlane:qn,intersectPlane:function(n,t){var r=qn(n,t);return null!=r?Tn(n,r):void 0}});export{t as _,X as a,U as b,o as c,Mn as d,e,r as f,a as g,x as h,an as i,An as j,c as k,_n as l,g as m,i as n,u as o,d as p,Pn as q,Jn as r,jn as s,On as t,mn as u,W as v}
|
|
18
|
+
var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])})(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(u.prototype=r.prototype,new u)}var r=function(){return(r=Object.assign||function(n){for(var t,r=1,u=arguments.length;r<u;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};function u(n,t){var r={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&t.indexOf(u)<0&&(r[u]=n[u]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(u=Object.getOwnPropertySymbols(n);o<u.length;o++)t.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(n,u[o])&&(r[u[o]]=n[u[o]])}return r}function o(n,t,r,u){return new(r||(r=Promise))((function(o,e){function i(n){try{c(u.next(n))}catch(n){e(n)}}function a(n){try{c(u.throw(n))}catch(n){e(n)}}function c(n){var t;n.done?o(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(i,a)}c((u=u.apply(n,t||[])).next())}))}function e(n,t){var r,u,o,e,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return e={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function a(e){return function(a){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,u&&(o=2&e[0]?u.return:e[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,e[1])).done)return o;switch(u=0,o&&(e=[2&e[0],o.value]),e[0]){case 0:case 1:o=e;break;case 4:return i.label++,{value:e[1],done:!1};case 5:i.label++,u=e[1],e=[0];continue;case 7:e=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==e[0]&&2!==e[0])){i=0;continue}if(3===e[0]&&(!o||e[1]>o[0]&&e[1]<o[3])){i.label=e[1];break}if(6===e[0]&&i.label<o[1]){i.label=o[1],o=e;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(e);break}o[2]&&i.ops.pop(),i.trys.pop();continue}e=t.call(n,i)}catch(n){e=[6,n],u=0}finally{r=o=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,a])}}}function i(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var u,o,e=r.call(n),i=[];try{for(;(void 0===t||t-- >0)&&!(u=e.next()).done;)i.push(u.value)}catch(n){o={error:n}}finally{try{u&&!u.done&&(r=e.return)&&r.call(e)}finally{if(o)throw o.error}}return i}function a(n,t,r){if(r||2===arguments.length)for(var u,o=0,e=t.length;o<e;o++)!u&&o in t||(u||(u=Array.prototype.slice.call(t,0,o)),u[o]=t[o]);return n.concat(u||Array.prototype.slice.call(t))}function c(n,t,r){return Math.max(t,Math.min(r,n))}function f(n,t,r){return(r=c(r,0,1))*(t-n)+n}function h(n,t){return void 0===n&&(n=0),void 0===t&&(t=0),{x:n,y:t}}function l(n,t){return{x:n.x-t.x,y:n.y-t.y}}function v(n,t){return{x:n.x+t.x,y:n.y+t.y}}function s(n,t){return n.x===t.x&&n.y===t.y}var d=Object.freeze({__proto__:null,create:h,polar:function(n,t){return h(Math.cos(t)*n,Math.sin(t)*n)},distance:function(n,t){var r=l(n,t);return Math.sqrt(r.x*r.x+r.y*r.y)},subtract:l,add:v,isEqual:s,lerp:function(n,t,r){return{x:f(n.x,t.x,r),y:f(n.y,t.y,r)}},negate:function(n){return h(-n.x,-n.y)},scale:function(n,t,r){return{x:n.x*t,y:n.y*r}},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?h(t[0],t[1]):h(t.x,t.y)}});function M(n){return(n+3600)%360}function y(n){return n*(180/Math.PI)}function m(n){return n*(Math.PI/180)}var x=Object.freeze({__proto__:null,fromPoints:function(n,t){var r=l(t,n);return Math.atan2(r.y,r.x)},fromPointsInDegrees:function(n,t){var r=l(t,n);return M(y(Math.atan2(r.y,r.x))-270)},normalize:M,toDegrees:y,toRadians:m});function _(n,t,r,u,o,e,i,a,c,f,h,l,v,s,d,M){return[n,o,c,v,t,e,f,s,r,i,h,d,u,a,l,M]}function p(n){return[1,0,0,0,0,1,0,0,0,0,1,0,n.x,n.y,n.z,1]}function z(n){var t=n.x,r=n.y,u=n.z,o=n.w,e=t+t,i=r+r,a=u+u,c=t*e,f=t*i,h=t*a,l=r*i,v=r*a,s=u*a,d=o*e,M=o*i,y=o*a;return[1-(l+s),f+y,h-M,0,f-y,1-(c+s),v+d,0,h+M,v-d,1-(c+l),0,0,0,0,1]}function b(n){return[n.x,0,0,0,0,n.y,0,0,0,0,n.z,0,0,0,0,1]}function w(n,t,r,u,o,e){return[2*o/(t-n),0,0,0,0,2*o/(r-u),0,0,(t+n)/(t-n),(r+u)/(r-u),-(e+o)/(e-o),-1,0,0,-2*e*o/(e-o),0]}function O(n,t){var r=n[0],u=n[4],o=n[8],e=n[12],i=n[1],a=n[5],c=n[9],f=n[13],h=n[2],l=n[6],v=n[10],s=n[14],d=n[3],M=n[7],y=n[11],m=n[15],x=t[0],_=t[4],p=t[8],z=t[12],b=t[1],w=t[5],O=t[9],j=t[13],g=t[2],k=t[6],A=t[10],S=t[14],P=t[3],T=t[7],q=t[11],J=t[15],R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return R[0]=r*x+u*b+o*g+e*P,R[4]=r*_+u*w+o*k+e*T,R[8]=r*p+u*O+o*A+e*q,R[12]=r*z+u*j+o*S+e*J,R[1]=i*x+a*b+c*g+f*P,R[5]=i*_+a*w+c*k+f*T,R[9]=i*p+a*O+c*A+f*q,R[13]=i*z+a*j+c*S+f*J,R[2]=h*x+l*b+v*g+s*P,R[6]=h*_+l*w+v*k+s*T,R[10]=h*p+l*O+v*A+s*q,R[14]=h*z+l*j+v*S+s*J,R[3]=d*x+M*b+y*g+m*P,R[7]=d*_+M*w+y*k+m*T,R[11]=d*p+M*O+y*A+m*q,R[15]=d*z+M*j+y*S+m*J,R}function j(n){return{m11:n[0],m12:n[4],m13:n[8],m14:n[12],m21:n[1],m22:n[5],m23:n[9],m24:n[13],m31:n[2],m32:n[6],m33:n[10],m34:n[14],m41:n[3],m42:n[7],m43:n[11],m44:n[15]}}var g=Object.freeze({__proto__:null,fromValues:_,fromObject:function(n){return _(n.m11,n.m12,n.m13,n.m14,n.m21,n.m22,n.m23,n.m24,n.m31,n.m32,n.m33,n.m34,n.m41,n.m42,n.m43,n.m44)},makeIdentity:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},makeZero:function(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},makeTranslation:p,makeRotation:z,makeScale:b,makeTRS:function(n,t,r){var u=p(n),o=z(t),e=b(r);return O(O(u,o),e)},makeBasis:function(n,t,r){return[n.x,n.y,n.z,0,t.x,t.y,t.z,0,r.x,r.y,r.z,0,0,0,0,1]},makeRotationAxis:function(n,t){var r=Math.cos(t),u=Math.sin(t),o=1-r,e=n.x,i=n.y,a=n.z,c=o*e,f=o*i;return[c*e+r,c*i+u*a,c*a-u*i,0,c*i-u*a,f*i+r,f*a+u*e,0,c*a+u*i,f*a-u*e,o*a*a+r,0,0,0,0,1]},makeFrustum:w,makePerspective:function(n,t,r,u){var o=n*Math.tan(m(r/2)),e=o*u;return w(-e,e,o,-o,n,t)},makeOrthographic:function(n,t,r,u,o,e){var i=1/(t-n),a=1/(u-r),c=1/(e-o);return[2*i,0,0,-(t+n)*i,0,2*a,0,-(u+r)*a,0,0,-2*c,-(e+o)*c,0,0,0,1]},makeLookAtView:function(n,t,r){var u=T(F(n,t)),o=T(R(r,u)),e=R(u,o),i=-D(o,n),a=-D(e,n),c=-D(u,n);return[o.x,e.x,u.x,0,o.y,e.y,u.y,0,o.z,e.z,u.z,0,i,a,c,1]},makeLookAt:function(n,t,r){var u=T(F(n,t)),o=T(R(r,u)),e=R(u,o);return[o.x,o.y,o.z,0,e.x,e.y,e.z,0,u.x,u.y,u.z,0,n.x,n.y,n.z,1]},invert:function(n){var t=n[0],r=n[1],u=n[2],o=n[3],e=n[4],i=n[5],a=n[6],c=n[7],f=n[8],h=n[9],l=n[10],v=n[11],s=n[12],d=n[13],M=n[14],y=n[15],m=t*i-r*e,x=t*a-u*e,_=t*c-o*e,p=r*a-u*i,z=r*c-o*i,b=u*c-o*a,w=f*d-h*s,O=f*M-l*s,j=f*y-v*s,g=h*M-l*d,k=h*y-v*d,A=l*y-v*M,S=m*A-x*k+_*g+p*j-z*O+b*w;return S?[(i*A-a*k+c*g)*(S=1/S),(u*k-r*A-o*g)*S,(d*b-M*z+y*p)*S,(l*z-h*b-v*p)*S,(a*j-e*A-c*O)*S,(t*A-u*j+o*O)*S,(M*_-s*b-y*x)*S,(f*b-l*_+v*x)*S,(e*k-i*j+c*w)*S,(r*j-t*k-o*w)*S,(s*z-d*_+y*m)*S,(h*_-f*z-v*m)*S,(i*O-e*g-a*w)*S,(t*g-r*O+u*w)*S,(d*x-s*p-M*m)*S,(f*p-h*x+l*m)*S]:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},lookAt:function(n,t,u,o){var e=F(t,u);0===J(e)&&(e=r(r({},e),{z:1}));var i=R(o,e=T(e));0===J(i)&&(i=R(o,e=T(e=1===Math.abs(o.z)?r(r({},e),{x:e.x+1e-4}):r(r({},e),{z:e.z+1e-4}))));var c=R(e,i=T(i)),f=a([],n,!0);return f[0]=i.x,f[4]=c.x,f[8]=e.x,f[1]=i.y,f[5]=c.y,f[9]=e.y,f[2]=i.z,f[6]=c.z,f[10]=e.z,f},multiply:O,transpose:function(n){return[n[0],n[4],n[8],n[12],n[1],n[5],n[9],n[13],n[2],n[6],n[10],n[14],n[3],n[7],n[11],n[15]]},scale:function(n,t){var r=t.x,u=t.y,o=t.z,e=a([],n,!0);return e[0]*=r,e[4]*=u,e[8]*=o,e[1]*=r,e[5]*=u,e[9]*=o,e[2]*=r,e[6]*=u,e[10]*=o,e[3]*=r,e[7]*=u,e[11]*=o,e},position:function(n,t){var r=a([],n,!0);return r[12]=t[12],r[13]=t[13],r[14]=t[14],r},toObject:j,isType:function(n){return Array.isArray(n)&&16===n.length}});function k(){for(var n,t,r,u,o,e,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return 1===i.length?{x:null!==(n=i[0].x)&&void 0!==n?n:0,y:null!==(t=i[0].y)&&void 0!==t?t:0,z:null!==(r=i[0].z)&&void 0!==r?r:0}:3===i.length?{x:null!==(u=i[0])&&void 0!==u?u:0,y:null!==(o=i[1])&&void 0!==o?o:0,z:null!==(e=i[2])&&void 0!==e?e:0}:{x:0,y:0,z:0}}function A(n){var t=j(n);return{x:Math.hypot(t.m11,t.m21,t.m31),y:Math.hypot(t.m12,t.m22,t.m32),z:Math.hypot(t.m13,t.m23,t.m33)}}function S(){return k(0,0,-1)}function P(){return k(0,0,0)}function T(n){var t=q(n);return{x:n.x/t,y:n.y/t,z:n.z/t}}function q(n){return Math.sqrt(J(n))}function J(n){return n.x*n.x+n.y*n.y+n.z*n.z}function R(n,t){return{x:n.y*t.z-n.z*t.y,y:n.z*t.x-n.x*t.z,z:n.x*t.y-n.y*t.x}}function N(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(n,t){return{x:n.x+t.x,y:n.y+t.y,z:n.z+t.z}}),n)}function F(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(n,t){return{x:n.x-t.x,y:n.y-t.y,z:n.z-t.z}}),n)}function E(n,t){return{x:t.x*n,y:t.y*n,z:t.z*n}}function D(n,t){return n.x*t.x+n.y*t.y+n.z*t.z}function L(n,t){var r=n.x,u=n.y,o=n.z,e=1/(t[3]*r+t[7]*u+t[11]*o+t[15]);return{x:(t[0]*r+t[4]*u+t[8]*o+t[12])*e,y:(t[1]*r+t[5]*u+t[9]*o+t[13])*e,z:(t[2]*r+t[6]*u+t[10]*o+t[14])*e}}function V(n,t){return Math.sqrt(C(n,t))}function C(n,t){var r=F(n,t),u=r.x,o=r.y,e=r.z;return u*u+o*o+e*e}function I(n,t){return k(Math.max(n.x,t.x),Math.max(n.y,t.y),Math.max(n.z,t.z))}function B(n,t){return k(Math.min(n.x,t.x),Math.min(n.y,t.y),Math.min(n.z,t.z))}function G(n,t,r){return{x:f(n.x,t.x,r),y:f(n.y,t.y,r),z:f(n.z,t.z,r)}}var W=Object.freeze({__proto__:null,create:k,isValid:function(n){return[n.x,n.y,n.z].every((function(n){return isFinite(n)&&!isNaN(n)}))},fromMatrixScale:A,fromMatrixPosition:function(n){var t=j(n);return{x:t.m14,y:t.m24,z:t.m34}},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?k(t[0],t[1],t[2]):k(t.x,t.y,t.z)},fromArray:function(n,t){return void 0===t&&(t=0),k(n[t],n[t+1],n[t+2])},toArray:function(n){return[n.x,n.y,n.z]},right:function(){return k(1,0,0)},up:function(){return k(0,1,0)},forward:S,left:function(){return k(-1,0,0)},down:function(){return k(0,-1,0)},back:function(){return k(0,0,1)},origin:P,normalize:T,magnitude:q,magnitudeSquared:J,cross:R,add:N,subtract:F,multiply:function(n,t){return{x:n.x*t.x,y:n.y*t.y,z:n.z*t.z}},scale:E,dot:D,angleTo:function(n,t){var r=D(n,t)/(q(n)*q(t));return Math.acos(r)},project:function(n,t){return E(D(t,n)/q(t),t)},rotateAboutAxis:function(n,t,r,u){if(0!==n){var o=t.x,e=t.y,i=t.z,a=u.x,c=u.y,f=u.z,h=r.x,l=r.y,v=r.z;return{x:(a*(l*l+v*v)-h*(c*l+f*v-h*o-l*e-v*i))*(1-Math.cos(n))+o*Math.cos(n)+(-f*l+c*v-v*e+l*i)*Math.sin(n),y:(c*(h*h+v*v)-l*(a*h+f*v-h*o-l*e-v*i))*(1-Math.cos(n))+e*Math.cos(n)+(f*h-a*v+v*o-h*i)*Math.sin(n),z:(f*(h*h+l*l)-v*(a*h+c*l-h*o-l*e-v*i))*(1-Math.cos(n))+i*Math.cos(n)+(-c*h+a*l-l*o+h*e)*Math.sin(n)}}return t},transformMatrix:L,distance:V,distanceSquared:C,isEqual:function(n,t){return n.x===t.x&&n.y===t.y&&n.z===t.z},max:I,min:B,negate:function(n){return{x:-n.x,y:-n.y,z:-n.z}},lerp:G,transformNdcToWorldSpace:function(n,t,r){return L(L(n,r),t)}}),Z=function(n,t){return{min:n,max:t}},H=function(n){return E(.5,N(n.min,n.max))},K=function(n){return F(n.max,n.min)};function Q(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var u=a([n],t,!0);return u.reduce((function(n,t){return Z(B(n.min,t.min),I(n.max,t.max))}))}var U=Object.freeze({__proto__:null,create:Z,fromVectors:function(n){return Q.apply(void 0,n.map((function(n){return Z(n,n)})))},center:H,diagonal:K,epsilon:function(n){return 1e-6*Math.max(Math.max(q(n.max),q(n.min)),q(K(n)))},union:Q}),X=Object.freeze({__proto__:null,create:function(n){var t=H(n),r=q(F(n.max,t)),u=Math.max(r,q(t));return{center:t,radius:r,epsilon:0===u?1:1e-6*u}}});function Y(n,t,r,u){return{x:n,y:t,width:r,height:u}}function $(n,t){return Y(n.x,n.y,t.width,t.height)}function nn(n,t){var r=Math.min(n.width/t.width,n.height/t.height),u=ln(r,t);return $(l(on(n),sn(u)),u)}function tn(n,t){var r=Math.max(n.width/t.width,n.height/t.height),u=ln(r,t);return $(l(on(n),sn(u)),u)}function rn(n,t){var r=Math.min(Math.sqrt(n/un(t)),1),u=vn(ln(r,t));return $(l(on(t),sn(u)),u)}function un(n){return n.width*n.height}function on(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}function en(n){return h(n.x,n.y)}var an=Object.freeze({__proto__:null,create:Y,fromDimensions:function(n){return Y(0,0,n.width,n.height)},fromPointAndDimensions:$,fromPoints:function(n,t){var r=Math.min(n.x,t.x),u=Math.min(n.y,t.y);return Y(r,u,Math.max(n.x,t.x)-r,Math.max(n.y,t.y)-u)},containFit:nn,cropFit:tn,scaleFit:rn,scale:function n(t,r,u){return null==u?n(t,r,r):Y(t.x*r,t.y*u,t.width*r,t.height*u)},isEqual:function(n,t){return s(n,t)&&fn(n,t)},offset:function(n,t){return $(v(en(t),n),t)},area:un,center:on,topLeft:en,bottomRight:function(n){return h(n.x+n.width,n.y+n.height)},isPortrait:function(n){return n.width<n.height},isLandscape:function(n){return n.width>n.height},isSquare:function(n){return n.width===n.height},pad:function(n,t){return Y(n.x-t,n.y-t,n.width+2*t,n.height+2*t)},containsPoints:function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.every((function(t){return n.x<=t.x&&n.x+n.width>=t.x&&n.y<=t.y&&n.y+n.height>=t.y}))},fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?Y(t[0],t[1],t[2],t[3]):Y(t.x,t.y,t.width,t.height)}}),cn=function(n,t){return{width:n,height:t}},fn=function(n,t){return n.width===t.width&&n.height===t.height},hn=function(n,t,r){return{width:r.width*n,height:r.height*t}},ln=function(n,t){return hn(n,n,t)},vn=function(n){return{width:Math.floor(n.width),height:Math.floor(n.height)}},sn=function(n){return{x:n.width/2,y:n.height/2}};function dn(n,t){return void 0===t&&(t=h()),$(t,n)}var Mn=Object.freeze({__proto__:null,create:cn,square:function(n){return cn(n,n)},isEqual:fn,scale:hn,proportionalScale:ln,trim:function(n,t){return{width:Math.min(n.width,t.width),height:Math.min(n.height,t.height)}},containFit:function(n,t){var r=nn(dn(n),dn(t));return{width:r.width,height:r.height}},cropFit:function(n,t){var r=tn(dn(n),dn(t));return{width:r.width,height:r.height}},scaleFit:function(n,t){var r=rn(n,dn(t));return{width:r.width,height:r.height}},round:function(n){return{width:Math.round(n.width),height:Math.round(n.height)}},floor:vn,center:sn,aspectRatio:function(n){return n.width/n.height},area:function(n){return n.width*n.height},fitToRatio:function(n,t){return t.width>=t.height*n?cn(t.height*n,t.height):cn(t.width,t.width/n)},toRectangle:dn});function yn(n){var t,r,u,o;return void 0===n&&(n={}),{x:null!==(t=n.x)&&void 0!==t?t:0,y:null!==(r=n.y)&&void 0!==r?r:0,z:null!==(u=n.z)&&void 0!==u?u:0,order:null!==(o=n.order)&&void 0!==o?o:"xyz"}}var mn=Object.freeze({__proto__:null,create:yn,fromDegrees:function(n){void 0===n&&(n={});var t=n.x,r=n.y,u=void 0===r?0:r,o=n.z,e=void 0===o?0:o,i=n.order;return yn({x:m(void 0===t?0:t),y:m(u),z:m(e),order:i})},fromRotationMatrix:function(n,t){void 0===t&&(t="xyz");var r=j(n),u=0,o=0,e=0;return"xyz"===t?(o=Math.asin(c(r.m13,-1,1)),Math.abs(r.m13)<.9999999?(u=Math.atan2(-r.m23,r.m33),e=Math.atan2(-r.m12,r.m11)):(u=Math.atan2(r.m32,r.m22),e=0)):"yxz"===t?(u=Math.asin(-c(r.m23,-1,1)),Math.abs(r.m23)<.9999999?(o=Math.atan2(r.m13,r.m33),e=Math.atan2(r.m21,r.m22)):(o=Math.atan2(-r.m31,r.m11),e=0)):"zxy"===t?(u=Math.asin(c(r.m32,-1,1)),Math.abs(r.m32)<.9999999?(o=Math.atan2(-r.m31,r.m33),e=Math.atan2(-r.m12,r.m22)):(o=0,e=Math.atan2(r.m21,r.m11))):"zyx"===t?(o=Math.asin(-c(r.m31,-1,1)),Math.abs(r.m31)<.9999999?(u=Math.atan2(r.m32,r.m33),e=Math.atan2(r.m21,r.m11)):(u=0,e=Math.atan2(-r.m12,r.m22))):"yzx"===t?(e=Math.asin(c(r.m21,-1,1)),Math.abs(r.m21)<.9999999?(u=Math.atan2(-r.m23,r.m22),o=Math.atan2(-r.m31,r.m11)):(u=0,o=Math.atan2(r.m13,r.m33))):"xzy"===t&&(e=Math.asin(-c(r.m12,-1,1)),Math.abs(r.m12)<.9999999?(u=Math.atan2(r.m32,r.m22),o=Math.atan2(r.m13,r.m11)):(u=Math.atan2(-r.m23,r.m33),o=0)),{x:u,y:o,z:e,order:t}},fromJson:function(n){var t=JSON.parse(n);if(Array.isArray(t)){var r=t[3];return{x:t[0],y:t[1],z:t[2],order:void 0===r?"xyz":r}}var u=t.order;return{x:t.x,y:t.y,z:t.z,order:void 0===u?"xyz":u}},isType:function(n){var t=n;return null!=t&&t.hasOwnProperty("x")&&t.hasOwnProperty("y")&&t.hasOwnProperty("z")&&t.hasOwnProperty("order")}});function xn(n){return F(n.end,n.start)}var _n=Object.freeze({__proto__:null,create:function(n){var t,r;return void 0===n&&(n={}),{start:null!==(t=n.start)&&void 0!==t?t:P(),end:null!==(r=n.end)&&void 0!==r?r:P()}},center:function(n){return G(n.start,n.end,.5)},transformMatrix:function(n,t){return{start:L(n.start,t),end:L(n.end,t)}},distance:function(n){return V(n.start,n.end)},distanceSquared:function(n){return C(n.start,n.end)},direction:xn}),pn=function(n,t,r,u,o,e){return void 0===n&&(n=1),void 0===t&&(t=0),void 0===r&&(r=0),void 0===u&&(u=1),void 0===o&&(o=0),void 0===e&&(e=0),{a:n,b:t,c:r,d:u,tx:o,ty:e}},zn=function(){return pn()},bn=function(n,t){var r=m(n),u=Math.cos(r),o=Math.sin(r);return pn(t.a*u+t.c*o,t.b*u+t.d*o,t.a*-o+t.c*u,t.b*-o+t.d*u,t.tx,t.ty)},wn=function(n,t,r){return pn(r.a,r.b,r.c,r.d,r.a*n+r.c*t+r.tx,r.b*n+r.d*t+r.ty)},On=Object.freeze({__proto__:null,create:pn,identity:zn,translation:function(n,t){return wn(n,t,zn())},rotation:function(n){return bn(n,zn())},rotate:bn,translate:wn,transformPoint:function(n,t){return h(n.a*t.x+n.c*t.y+n.tx,n.b*t.x+n.d*t.y+n.ty)}}),jn=Object.freeze({__proto__:null,create:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 2===n.length?{a:n[0].x,b:n[0].y,c:n[1].x,d:n[1].y}:4===n.length?{a:n[0],b:n[1],c:n[2],d:n[3]}:{a:0,b:0,c:0,d:0}},determinant:function(n){return n.a*n.d-n.b*n.c},dot:function(n){return n.a*n.c+n.b*n.d}});function gn(n){return void 0===n&&(n={}),r({normal:P(),constant:0},n)}function kn(n,t){return D(n.normal,t)+n.constant}var An=Object.freeze({__proto__:null,create:gn,fromNormalAndCoplanarPoint:function(n,t){return gn({normal:n,constant:-D(t,n)})},distanceToPoint:kn,intersectLine:function(n,t){var r=xn(t),u=D(n.normal,r);if(0===u)return 0===kn(n,t.start)?t.start:void 0;var o=-(D(t.start,n.normal)+n.constant)/u;return o<0||o>1?void 0:N(E(o,r),t.start)},projectPoint:function(n,t){return N(t,E(-kn(n,t),n.normal))}});function Sn(n){return void 0===n&&(n={}),r({x:0,y:0,z:0,w:1},n)}var Pn=Object.freeze({__proto__:null,create:Sn,fromJson:function(n){var t=JSON.parse(n);return Array.isArray(t)?Sn({x:t[0],y:t[1],z:t[2],w:t[3]}):Sn(t)},fromAxisAngle:function(n,t){var r=t/2,u=Math.sin(r);return{x:n.x*u,y:n.y*u,z:n.z*u,w:Math.cos(r)}},fromMatrixRotation:function(n){var t,r=j(n),u=A(n),o=1/u.x,e=1/u.y,i=1/u.z,a=r.m11*o,c=r.m21*e,f=r.m31*i,h=r.m12*o,l=r.m22*e,v=r.m32*i,s=r.m13*o,d=r.m23*e,M=r.m33*i,y=a+l+M;return y>0?{x:(v-d)/(t=2*Math.sqrt(y+1)),y:(s-f)/t,z:(c-h)/t,w:.25*t}:a>l&&a>M?{x:.25*(t=2*Math.sqrt(1+a-l-M)),y:(c+h)/t,z:(s+f)/t,w:(v-d)/t}:l>M?{x:(c+h)/(t=2*Math.sqrt(1+l-a-M)),y:.25*t,z:(v+d)/t,w:(s-f)/t}:{x:(s+f)/(t=2*Math.sqrt(1+M-a-l)),y:(v+d)/t,z:.25*t,w:(c-h)/t}},fromEuler:function(n){var t=n.x,r=n.y,u=n.z,o=n.order,e=Math.cos(t/2),i=Math.cos(r/2),a=Math.cos(u/2),c=Math.sin(t/2),f=Math.sin(r/2),h=Math.sin(u/2),l=0,v=0,s=0,d=0;switch(o){case"xyz":l=c*i*a+e*f*h,v=e*f*a-c*i*h,s=e*i*h+c*f*a,d=e*i*a-c*f*h;break;case"yxz":l=c*i*a+e*f*h,v=e*f*a-c*i*h,s=e*i*h-c*f*a,d=e*i*a+c*f*h;break;case"zxy":l=c*i*a-e*f*h,v=e*f*a+c*i*h,s=e*i*h+c*f*a,d=e*i*a-c*f*h;break;case"zyx":l=c*i*a-e*f*h,v=e*f*a+c*i*h,s=e*i*h-c*f*a,d=e*i*a+c*f*h;break;case"yzx":l=c*i*a+e*f*h,v=e*f*a+c*i*h,s=e*i*h-c*f*a,d=e*i*a-c*f*h;break;case"xzy":l=c*i*a-e*f*h,v=e*f*a-c*i*h,s=e*i*h+c*f*a,d=e*i*a+c*f*h}return{x:l,y:v,z:s,w:d}},multiply:function(n,t){return{x:n.x*t.w+n.w*t.x+n.y*t.z-n.z*t.y,y:n.y*t.w+n.w*t.y+n.z*t.x-n.x*t.z,z:n.z*t.w+n.w*t.z+n.x*t.y-n.y*t.x,w:n.w*t.w-n.x*t.x-n.y*t.y-n.z*t.z}},isType:function(n){var t=n;return null!=t&&t.hasOwnProperty("x")&&t.hasOwnProperty("y")&&t.hasOwnProperty("z")&&t.hasOwnProperty("w")}});function Tn(n,t){return N(E(t,n.direction),n.origin)}function qn(n,t){var r=D(t.normal,n.direction);if(0===r)return 0===kn(t,n.origin)?0:void 0;var u=-(D(n.origin,t.normal)+t.constant)/r;return u>=0?u:void 0}var Jn=Object.freeze({__proto__:null,create:function(n){var t,r;return void 0===n&&(n={}),{origin:null!==(t=n.origin)&&void 0!==t?t:P(),direction:null!==(r=n.direction)&&void 0!==r?r:S()}},at:Tn,distanceToPlane:qn,intersectPlane:function(n,t){var r=qn(n,t);return null!=r?Tn(n,r):void 0}});export{t as _,X as a,U as b,x as c,Mn as d,an as e,An as f,c as g,i as h,a as i,r as j,o as k,_n as l,g as m,e as n,u as o,d as p,Pn as q,Jn as r,jn as s,On as t,mn as u,W as v}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import{c as t,u as e,a as s,b as r}from"./p-fc7d8c03.js";import{I as i,a as n,b as o}from"./p-440c8174.js";import{v as a,b as u,a as h,m as c,q as l,r as d,p,d as w}from"./p-d216a866.js";import{v,t as m,e as f,g as y,d as b,w as g,h as x}from"./p-6072cf84.js";import"./p-df8fbe56.js";import{t as I}from"./p-32cc2209.js";const O={opacity:255,glossiness:4,diffuse:{r:0,g:0,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:0,g:0,b:0,a:0},emissive:{r:0,g:0,b:0,a:0}},j=(e,s)=>{const r=t.fromHexString(e);return Object.assign(Object.assign({},O),{opacity:null!=s?s:O.opacity,diffuse:Object.assign({},null!=r?r:O.diffuse)})},k={opacity:O.opacity,glossiness:O.glossiness,diffuse:{r:255,g:255,b:0,a:0},ambient:{r:0,g:0,b:0,a:0},specular:{r:255,g:255,b:255,a:0},emissive:{r:0,g:0,b:0,a:0}},S=Object.freeze({__proto__:null,defaultColor:O,create:(t,e,s,r)=>Object.assign(Object.assign({},O),{opacity:null!=r?r:O.opacity,diffuse:{r:t,g:e,b:s,a:0}}),fromHex:j,defaultSelectionMaterial:k});function B(t){var s;const r=e.parse(t);if("urn"!==r.scheme||null==r.path)throw new Error("Invalid URN. Expected URN scheme.");const[n,o,a,...u]=r.path.split(/[:/]/);if("vertexvis"!==n)throw new Error("Invalid URN. Expected URN to be vertexvis namespace");switch(o){case"stream-key":const t=null!=(h=r.query)?h.split("&").map((t=>{const[e,s]=t.split("=");switch(e){case"supplied-id":return{type:"supplied-id",id:s};case"scene-view-state":return{type:"scene-view-state",id:s};default:throw new Error("Invalid URN. Unknown query value type")}})):[];return{resource:{type:"stream-key",id:a},subResource:null!==(s=function(t){if(null!=t){const[e,s]=t.split("/");switch(e){case"scene-view-states":return{type:"scene-view-state",id:s};default:return}}}(u.join("/")))&&void 0!==s?s:t.find((t=>"scene-view-state"===t.type)),queries:t.filter((t=>"scene-view-state"!==t.type))};default:throw new i(`Invalid URN. Unknown resource type ${o}`)}var h}const T=Object.freeze({__proto__:null,fromUrn:B});class A{constructor(t,e=new Date){this.knownRemoteTime=t,this.knownLocalTime=e}localOffset(){return this.duration(this.knownLocalTime,this.localNow())}localTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownRemoteTime,e);return this.addDuration(this.knownLocalTime,s)}remoteOffset(t=new Date){return this.duration(this.remoteTime(this.knownLocalTime),this.remoteTime(t))}remoteNow(){return this.remoteTime(this.localNow())}remoteTime(t){const e="number"==typeof t?new Date(this.knownLocalTime.getTime()+t):t,s=this.duration(this.knownLocalTime,e);return this.addDuration(this.knownRemoteTime,s)}addDuration(t,e){return new Date(t.getTime()+e)}duration(t,e){return e.getTime()-t.getTime()}localNow(){return new Date(Date.now())}}class V{constructor(t,e,s,r=1e4){this.stream=t,this.predicate=e,this.transform=s,this.timeout=r,this.listeners=[],this.handleMessage=this.handleMessage.bind(this)}on(t){this.listeners=[...this.listeners,t],null!=this.eventDisposable&&null!=this.requestDisposable||this.addListeners()}off(t){this.listeners=this.listeners.filter((e=>e!==t)),0===this.listeners.length&&this.removeListeners()}once(){let t;return s.timeout(this.timeout,new Promise((e=>{t=s=>{e(s),this.off(t)},this.on(t)}))).finally((()=>{this.off(t)}))}handleMessage(t){if(this.predicate(t)){const e=this.transform(t);null!=e&&this.listeners.forEach((t=>t(e)))}}addListeners(){this.eventDisposable=this.stream.onEvent(this.handleMessage),this.requestDisposable=this.stream.onRequest(this.handleMessage)}removeListeners(){var t,e;null===(t=this.eventDisposable)||void 0===t||t.dispose(),null===(e=this.requestDisposable)||void 0===e||e.dispose()}}class E{constructor(t,e,{animationId:s,correlationId:r},i){this.data=void 0,this.onAnimationCompleted=new V(t,(t=>{var e,r,i;return(null===(i=null===(r=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===r?void 0:r.animationId)||void 0===i?void 0:i.hex)===s}),(t=>{var e,s,r;return(null===(r=null===(s=null===(e=t.event)||void 0===e?void 0:e.animationCompleted)||void 0===s?void 0:s.animationId)||void 0===r?void 0:r.hex)||void 0}),i),this.onFrameReceived=new V(t,(t=>{var e,s,i;return!!(null===(i=null===(s=null===(e=t.request)||void 0===e?void 0:e.drawFrame)||void 0===s?void 0:s.frameCorrelationIds)||void 0===i?void 0:i.some((t=>t===r)))}),(t=>{var s;return null!=(null===(s=t.request)||void 0===s?void 0:s.drawFrame)?e(t.request.drawFrame):void 0}),i)}}function q(t){if("string"==typeof t)return{sceneViewStateId:{hex:t}};if(function(t){return null!=t.id}(t))return{sceneViewStateId:{hex:t.id}};if(function(t){return null!=t.suppliedId}(t))return{sceneViewStateSuppliedId:{value:t.suppliedId}};throw new Error("Unable to build scene view state identifier, input must be a string or `SceneViewStateIdentifier`.")}function C(t,e){switch(t.type){case"and":case"or":return{operand:{itemCollection:{queries:t.expressions.map((t=>({sceneItemQuery:M(t)})))}}};case"not":return{not:{expression:C(t.query,e)}};case"item-id":case"supplied-id":return{operand:{item:{sceneItemQuery:M(t)}}};case"all":return{operand:{root:{}}};case"scene-tree-range":return{operand:{sceneTreeRange:{start:t.range.start,end:t.range.end}}};case"metadata":return{operand:{metadata:{valueFilter:t.filter,keys:t.keys,exactMatch:t.exactMatch}}};case"all-selected":return{operand:{override:{selection:{}}}};case"point":return{operand:{point:{point:t.point,viewport:e.dimensions}}};case"volume-intersection":return{operand:{volume:{frustumByRectangle:{rectangle:t.rectangle},exclusive:t.exclusive,viewport:e.dimensions}}};default:return{}}}function M(t){switch(t.type){case"item-id":return{id:new v.protobuf.core.Uuid({hex:t.value})};case"supplied-id":return{suppliedId:t.value};default:return{}}}class R{constructor(t){this.flyToOptions=t}build(){return this.flyToOptions}}class U{withItemId(t){return new R({flyTo:{type:"internal",data:t}})}withSuppliedId(t){return new R({flyTo:{type:"supplied",data:t}})}withCamera(t){return new R({flyTo:{type:"camera",data:t}})}withBoundingBox(t){return new R({flyTo:{type:"bounding-box",data:t}})}build(){return this.flyToOptions}}class _{constructor(t,e,s,r,i,n){this.stream=t,this.aspect=e,this.data=s,this.boundingBox=r,this.decodeFrame=i,this.flyToOptions=n}fitCameraToBoundingBox(t,e,s){const r=a.scale(e,a.normalize(s)),i=u.center(t),n=a.subtract(i,r);return this.update({lookAt:i,position:n,viewVector:r})}signedDistanceToBoundingBoxCenter(t){const{position:e,viewVector:s}=g(this.data),r=u.center(null!=t?t:this.boundingBox),i=a.subtract(r,e);return a.dot(s,i)/a.magnitude(s)}flyTo(t){return this.updateFlyToOptions("function"!=typeof t?{flyTo:this.buildFlyToType(t)}:t(new U).build())}viewAll(){return this.fitToBoundingBox(this.boundingBox)}async render(t){var e,s,i;null==this.flyToOptions&&null!=t&&(this.flyToOptions={flyTo:{type:"camera",data:this.data}});try{const n=r.create();if(null!=this.flyToOptions){const r=function(t,e,s){const r={frameCorrelationId:{value:t},animation:s?{duration:I(s.milliseconds)}:void 0};switch(e.flyTo.type){case"supplied":return Object.assign(Object.assign({},r),{itemSuppliedId:e.flyTo.data});case"internal":return Object.assign(Object.assign({},r),{itemId:new v.protobuf.core.Uuid({hex:e.flyTo.data})});case"camera":return Object.assign(Object.assign({},r),{camera:m(e.flyTo.data)});case"bounding-box":return Object.assign(Object.assign({},r),{boundingBox:{xmin:e.flyTo.data.min.x,xmax:e.flyTo.data.max.x,ymin:e.flyTo.data.min.y,ymax:e.flyTo.data.max.y,zmin:e.flyTo.data.min.z,zmax:e.flyTo.data.max.z}});default:return{}}}(n,this.flyToOptions,null==t?void 0:t.animation),o=await this.stream.flyTo(r,!0);return new E(this.stream,this.decodeFrame,{correlationId:n,animationId:(null===(s=null===(e=o.flyTo)||void 0===e?void 0:e.animationId)||void 0===s?void 0:s.hex)||void 0},null!=(null===(i=null==t?void 0:t.animation)||void 0===i?void 0:i.milliseconds)?t.animation.milliseconds+1e4:void 0)}return this.stream.replaceCamera({camera:m(this.data),frameCorrelationId:{value:n}}),new E(this.stream,this.decodeFrame,{correlationId:n})}catch(t){throw console.warn("Error when performing render: ",t),t}}rotateAroundAxis(t,e){return this.rotateAroundAxisAtPoint(t,this.data.lookAt,e)}alignTo(t,e){const s=a.normalize(a.cross(this.up,a.normalize(this.viewVector))),r=a.normalize(a.cross(a.normalize(this.viewVector),s)),i=a.angleTo(e,r)>Math.PI/2?a.negate(r):r,n=a.isEqual(i,e)?s:a.normalize(a.cross(i,e)),o=a.transformMatrix(this.viewVector,c.makeRotation(l.fromAxisAngle(n,a.angleTo(e,i)))),u=d.create({origin:t,direction:a.normalize(o)}),h=d.at(u,a.magnitude(this.viewVector));return this.update({position:t,lookAt:h,up:e})}standardView(t){return this.update({position:t.position,viewVector:a.subtract(a.origin(),t.position),lookAt:a.origin(),up:t.up})}buildFlyToType(t){if(null!=t.boundingBox)return{type:"bounding-box",data:t.boundingBox};if(null!=t.camera)return{type:"camera",data:t.camera};if(null!=t.itemId)return{type:"internal",data:t.itemId};if(null!=t.itemSuppliedId)return{type:"supplied",data:t.itemSuppliedId};throw new Error("Fly to must specify at least one option.")}computeClippingPlanes(t){return x(this.boundingBox,t)}}class D extends _{constructor(t,e,s,r,i,n){super(t,e,s,r,i,n),this.perspectiveData=s}moveBy(t){return this.update({position:a.add(this.position,t),lookAt:a.add(this.lookAt,t)})}rotateAroundAxisAtPoint(t,e,s){return this.update({position:a.rotateAboutAxis(t,this.position,s,e),lookAt:a.rotateAboutAxis(t,this.lookAt,s,e),up:a.rotateAboutAxis(t,this.up,s,a.origin())})}fitToBoundingBox(t){var e;const s=1.1*a.magnitude(a.subtract(t.max,u.center(t)));let r=Math.tan(.008726646259972*(null!==(e=this.fovY)&&void 0!==e?e:45));this.aspect<1&&(r*=this.aspect);const i=Math.abs(s/r);return super.fitCameraToBoundingBox(t,i,this.viewVector)}update(t){var e;const s=null!==(e=t.fovY)&&void 0!==e?e:this.fovY;return new D(this.stream,this.aspect,Object.assign(Object.assign(Object.assign({},this.perspectiveData),t),{fovY:s}),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){var t;return new f(this.position,this.lookAt,this.up,this.near,this.far,this.aspectRatio,null!==(t=this.fovY)&&void 0!==t?t:45)}get viewVector(){return a.subtract(this.lookAt,this.position)}get position(){return Object.assign({},this.perspectiveData.position)}get up(){return Object.assign({},this.perspectiveData.up)}get lookAt(){return Object.assign({},this.perspectiveData.lookAt)}get fovY(){return this.perspectiveData.fovY}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.perspectiveData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.perspectiveData);return t}updateFlyToOptions(t){return new D(this.stream,this.aspect,this.perspectiveData,this.boundingBox,this.decodeFrame,t)}}class F extends _{constructor(t,e,s,r,i,n){super(t,e,s,r,i,n),this.orthographicData=s}moveBy(t){return this.update({lookAt:a.add(this.lookAt,t)})}rotateAroundAxisAtPoint(t,e,s){const r=a.rotateAboutAxis(t,this.lookAt,s,e),i=a.rotateAboutAxis(t,this.position,s,e),n=y(a.subtract(r,i),h.create(this.boundingBox));return this.update({viewVector:n,lookAt:r,up:a.rotateAboutAxis(t,this.up,s,a.origin())})}fitToBoundingBox(t){const e=h.create(t),s=super.fitCameraToBoundingBox(t,e.radius,this.viewVector);return this.update({lookAt:s.lookAt,viewVector:s.viewVector,fovHeight:2*e.radius})}update(t){return new F(this.stream,this.aspect,Object.assign(Object.assign({},this.orthographicData),t),this.boundingBox,this.decodeFrame,this.flyToOptions)}toFrameCamera(){return new b(y(this.viewVector,h.create(this.boundingBox)),this.lookAt,this.up,this.near,this.far,this.aspectRatio,this.fovHeight)}get viewVector(){return Object.assign({},this.orthographicData.viewVector)}get position(){return a.add(this.lookAt,a.negate(this.viewVector))}get up(){return Object.assign({},this.orthographicData.up)}get lookAt(){return Object.assign({},this.orthographicData.lookAt)}get fovHeight(){return this.orthographicData.fovHeight}get aspectRatio(){return this.aspect}get near(){const{near:t}=this.computeClippingPlanes(this.orthographicData);return t}get far(){const{far:t}=this.computeClippingPlanes(this.orthographicData);return t}updateFlyToOptions(t){return new F(this.stream,this.aspect,this.orthographicData,this.boundingBox,this.decodeFrame,t)}}class N{constructor(t,e){this.stream=t,this.imageScaleProvider=e}async hitItems(t,e){const s=this.imageScaleProvider();return(await this.stream.hitItems({point:p.scale(t,(null==s?void 0:s.x)||1,(null==s?void 0:s.y)||1),includeMetadata:null==e?void 0:e.includeMetadata},!0)).hitItems||void 0}}class z{constructor(t,e){this.stream=t,this.data=e}async update(t){return(await this.stream.updateCrossSectioning({crossSectioning:t},!0)).updateCrossSectioning||void 0}current(){return this.data}}class P{constructor(t=[]){this.operations=t}build(){return this.operations.concat()}materialOverride(t){return new P(this.operations.concat([{type:"change-material",material:t}]))}show(){return new P(this.operations.concat([{type:"show"}]))}hide(){return new P(this.operations.concat([{type:"hide"}]))}select(t){return new P(this.operations.concat([{type:"select",material:t}]))}deselect(){return new P(this.operations.concat([{type:"deselect"}]))}clearMaterialOverrides(){return new P(this.operations.concat([{type:"clear-override"}]))}transform(t){return new P(this.operations.concat([{type:"change-transform",transform:t}]))}clearTransforms(t=!0){return new P(this.operations.concat([{type:"clear-transform",cascade:t}]))}}class H{constructor(t){this.inverted=t}build(){return this.inverted?{type:"not",query:this.queryExpressionBuilder()}:this.queryExpressionBuilder()}}class Y{constructor(t=!1){this.inverted=t}all(){return new Q}not(){return new L(!this.inverted)}withItemIds(t){return new X(t,"item-id",this.inverted)}withSuppliedIds(t){return new X(t,"supplied-id",this.inverted)}withItemId(t){return new Z({type:"item-id",value:t},this.inverted)}withSuppliedId(t){return new Z({type:"supplied-id",value:t},this.inverted)}withSceneTreeRange(t){return new $(t,this.inverted)}withMetadata(t,e,s){return new G(t,e,s,this.inverted)}withSelected(){return new J(this.inverted)}withPoint(t){return new K(t,this.inverted)}withVolumeIntersection(t,e){return new W(t,this.inverted,e)}}class L extends Y{constructor(t){super(t)}}class Q extends H{constructor(t=!1){super(t)}queryExpressionBuilder(){return{type:"all"}}}class $ extends H{constructor(t,e){super(e),this.range=t}queryExpressionBuilder(){return{type:"scene-tree-range",range:this.range}}}class G extends H{constructor(t,e,s,r){super(r),this.filter=t,this.keys=e,this.exactMatch=s}queryExpressionBuilder(){return{type:"metadata",filter:this.filter,keys:this.keys,exactMatch:this.exactMatch}}}class J extends H{constructor(t){super(t)}queryExpressionBuilder(){return{type:"all-selected"}}}class K extends H{constructor(t,e){super(e),this.point=t}queryExpressionBuilder(){return{type:"point",point:this.point}}}class W extends H{constructor(t,e,s){super(e),this.rectangle=t,this.exclusive=s}queryExpressionBuilder(){return{type:"volume-intersection",rectangle:this.rectangle,exclusive:!!this.exclusive}}}class X extends H{constructor(t,e,s){super(s),this.ids=t,this.type=e}queryExpressionBuilder(){return{type:"or",expressions:this.ids.map((t=>({type:this.type,value:t})))}}}class Z extends H{constructor(t,e){super(e),this.query=t}queryExpressionBuilder(){return Object.assign({},this.query)}and(){return new et([this.query],this.inverted)}or(){return new tt([this.query],this.inverted)}}class tt extends H{constructor(t,e){super(e),this.expressions=t}queryExpressionBuilder(){return{type:"or",expressions:[...this.expressions]}}withItemId(t){return new tt([...this.expressions,{type:"item-id",value:t}],this.inverted)}withSuppliedId(t){return new tt([...this.expressions,{type:"supplied-id",value:t}],this.inverted)}or(){return this}}class et extends H{constructor(t,e){super(e),this.expressions=t}queryExpressionBuilder(){return{type:"and",expressions:[...this.expressions]}}withItemId(t){return new et([...this.expressions,{type:"item-id",value:t}],this.inverted)}withSuppliedId(t){return new et([...this.expressions,{type:"supplied-id",value:t}],this.inverted)}and(){return this}}class st{constructor(t){this.defaultSelectionMaterial=t}where(t){const e=t(new Y).build();return new rt(e,this.defaultSelectionMaterial)}}class rt{constructor(t,e,s){this.query=t,this.defaultSelectionMaterial=e,this.builder=null!=s?s:new P}materialOverride(t){return new rt(this.query,this.defaultSelectionMaterial,this.builder.materialOverride("string"==typeof t?j(t):t))}hide(){return new rt(this.query,this.defaultSelectionMaterial,this.builder.hide())}show(){return new rt(this.query,this.defaultSelectionMaterial,this.builder.show())}select(t){return new rt(this.query,this.defaultSelectionMaterial,this.builder.select("string"==typeof t?j(t):t||this.defaultSelectionMaterial))}deselect(){return new rt(this.query,this.defaultSelectionMaterial,this.builder.deselect())}clearMaterialOverrides(){return new rt(this.query,this.defaultSelectionMaterial,this.builder.clearMaterialOverrides())}transform(t){if(Array.isArray(t)){if(16!==t.length)throw new o("Matrix provided must contain exactly 16 values (4x4).");return new rt(this.query,this.defaultSelectionMaterial,this.builder.transform({r0:{x:t[0],y:t[1],z:t[2],w:t[3]},r1:{x:t[4],y:t[5],z:t[6],w:t[7]},r2:{x:t[8],y:t[9],z:t[10],w:t[11]},r3:{x:t[12],y:t[13],z:t[14],w:t[15]}}))}return new rt(this.query,this.defaultSelectionMaterial,this.builder.transform(t))}clearTransforms(t=!0){return new rt(this.query,this.defaultSelectionMaterial,this.builder.clearTransforms(t))}build(){return{query:this.query,operations:this.builder.build()}}}class it{constructor(t,e,s,r){this.sceneViewId=t,this.stream=e,this.dimensions=s,this.queryOperations=r}async execute(t){const e=this.queryOperations.map((t=>function(t,e,s){const r=function(t){return t.map((t=>{switch(t.type){case"change-material":return{changeMaterial:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"clear-override":return{changeMaterial:{}};case"change-transform":return{changeTransform:{transform:Object.assign({},t.transform)}};case"clear-transform":return{clearTransform:{cascade:t.cascade}};case"hide":return{changeVisibility:{visible:!1}};case"show":return{changeVisibility:{visible:!0}};case"select":return{changeSelection:{material:{d:t.material.opacity,ns:t.material.glossiness,ka:t.material.ambient,kd:t.material.diffuse,ks:t.material.specular,ke:t.material.emissive}}};case"deselect":return{changeSelection:{}};default:return{}}}))}(e);return{queryExpression:C(t,s),operationTypes:r}}(t.query,t.operations,{dimensions:this.dimensions}))),s={sceneViewId:{hex:this.sceneViewId},operations:e,suppliedCorrelationId:null!=(null==t?void 0:t.suppliedCorrelationId)?{value:null==t?void 0:t.suppliedCorrelationId}:void 0};await this.stream.createSceneAlteration(s)}}class nt{constructor(t,e,s,r,i,n,o,a){this.stream=t,this.frame=e,this.decodeFrame=s,this.imageScaleProvider=r,this.dimensions=i,this.sceneId=n,this.sceneViewId=o,this.defaultSelectionMaterial=a}async applySceneViewState(t,e={}){const s=q(t);return await this.stream.loadSceneViewState(Object.assign(Object.assign({},s),{frameCorrelationId:e.suppliedCorrelationId?{value:e.suppliedCorrelationId}:void 0}),!0)}async applyPartialSceneViewState(t,e,s={}){const r=q(t),i=e.map((t=>{switch(t){case"camera":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_CAMERA;case"material_overrides":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_MATERIAL_OVERRIDE;case"selection":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_SELECTION;case"visibility":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_VISIBILITY;case"transforms":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_TRANSFORM;case"cross_section":return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_CROSS_SECTION;default:return v.protobuf.stream.SceneViewStateFeature.SCENE_VIEW_STATE_FEATURE_INVALID}}));return await this.stream.loadSceneViewState(Object.assign(Object.assign({},r),{frameCorrelationId:s.suppliedCorrelationId?{value:s.suppliedCorrelationId}:void 0,sceneViewStateFeatureSubset:i}),!0)}async reset(t={}){return await this.stream.resetSceneView({includeCamera:t.includeCamera,frameCorrelationId:t.suppliedCorrelationId?{value:t.suppliedCorrelationId}:void 0},!0)}items(t){const e=t(new st(this.defaultSelectionMaterial)),s=(Array.isArray(e)?e:[e]).reduce(((t,e)=>t.concat(e.build())),[]);return new it(this.sceneViewId,this.stream,this.dimensions,s)}camera(){const{scene:t}=this.frame;if(t.camera.isOrthographic())return new F(this.stream,w.aspectRatio(this.viewport()),{viewVector:t.camera.viewVector,lookAt:t.camera.lookAt,up:t.camera.up,fovHeight:t.camera.fovHeight},this.frame.scene.boundingBox,this.decodeFrame);if(t.camera.isPerspective())return new D(this.stream,w.aspectRatio(this.viewport()),{position:t.camera.position,lookAt:t.camera.lookAt,up:t.camera.up,fovY:t.camera.fovY},this.frame.scene.boundingBox,this.decodeFrame);throw new n("Cannot retrieve camera. Scene has an unknown or invalid camera type.")}boundingBox(){return this.frame.scene.boundingBox}crossSectioning(){return new z(this.stream,this.frame.scene.crossSection)}raycaster(){return new N(this.stream,this.imageScaleProvider)}viewport(){return this.frame.dimensions}scale(){return this.imageScaleProvider()||p.create(1,1)}}export{nt as S,A as a,j as b,S as c,k as d,B as f,T as l}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import{r as i,c as t,h as n,H as e,g as o}from"./p-d6fce4c1.js";import{p as a}from"./p-d216a866.js";import{c as s}from"./p-07aeee89.js";import{g as r}from"./p-42760392.js";import{t as l,c as h,a as d,P as v,g as p,b}from"./p-e23af70c.js";import{r as c}from"./p-b74242dc.js";import"./p-dfe5a97d.js";import"./p-fc7d8c03.js";const u=class{constructor(n){i(this,n),this.labelChanged=t(this,"labelChanged",7),this.labelFocused=t(this,"labelFocused",7),this.labelBlurred=t(this,"labelBlurred",7),this.focused=!1,this.textareaRows=1,this.computeContentSize=()=>{c((()=>{if(null!=this.contentEl){this.contentElBounds=this.contentEl.getBoundingClientRect();const i=window.getComputedStyle(this.contentEl);this.textareaRows=Math.max(1,Math.ceil((parseFloat(i.height)-2*parseFloat(i.borderWidth))/parseFloat(i.lineHeight)))}}))},this.handleInputKeyDown=i=>{i.stopPropagation(),"Enter"===i.key&&(i.ctrlKey||i.metaKey||i.shiftKey)?(this.textareaRows+=1,this.value+="\n"):"Enter"===i.key&&(i.preventDefault(),this.submit())},this.handlePointerDown=i=>{var t;this.focused||null!=this.elementBounds&&(this.relativePointerDownPosition=l(r(i,this.elementBounds),this.elementBounds),this.pinPointerDownPosition=null===(t=this.pin)||void 0===t?void 0:t.label.point,window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp))},this.handlePointerMove=i=>{var t;if(null!=this.elementBounds&&this.relativePointerDownPosition&&null!=this.pinPointerDownPosition){i.preventDefault();const n=r(i,this.elementBounds),e=l(n,this.elementBounds),o=a.subtract(e,this.relativePointerDownPosition),s=null!=this.pin?Object.assign(Object.assign({},this.pin),{label:Object.assign(Object.assign({},this.pin.label),{point:a.add(this.pinPointerDownPosition,o)})}):void 0;s&&(null===(t=this.pinController)||void 0===t||t.updatePin(s),this.computeScreenPosition())}},this.handlePointerUp=i=>{var t,n;if("edit"===(null===(t=this.pinController)||void 0===t?void 0:t.getToolMode())&&null!=this.relativePointerDownPosition&&null!=this.elementBounds){const t=h(this.relativePointerDownPosition,this.elementBounds);a.distance(t,r(i,this.elementBounds))<=2&&(this.focused=!0,this.labelFocused.emit(null===(n=this.pin)||void 0===n?void 0:n.id))}this.relativePointerDownPosition=void 0,this.pinPointerDownPosition=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp)},this.handleTextBlur=()=>{this.submit()},this.handleTextInput=i=>{this.value=i.target.value},this.value=this.getPinText()}async setFocus(){var i,t,n;"function"==typeof(null===(i=this.inputEl)||void 0===i?void 0:i.focus)&&(this.focused=!0,this.labelFocused.emit(null===(t=this.pin)||void 0===t?void 0:t.id),null===(n=this.inputEl)||void 0===n||n.focus())}watchFocusChange(){var i,t;this.labelChanged.emit(),this.focused&&(null===(i=this.pinController)||void 0===i||i.setSelectedPinId(null===(t=this.pin)||void 0===t?void 0:t.id))}watchPinChange(){this.value=this.getPinText(),this.computeScreenPosition()}watchElementBoundsChange(){this.computeScreenPosition()}componentWillLoad(){this.computeScreenPosition()}componentDidLoad(){this.resizeObserver=new ResizeObserver((()=>{this.labelChanged.emit()})),this.contentResizeObserver=new ResizeObserver(this.computeContentSize),null!=this.hostEl&&this.resizeObserver.observe(this.hostEl),null!=this.contentEl&&this.contentResizeObserver.observe(this.contentEl),null==this.pinController&&(this.pinController=new d(new v))}disconnectedCallback(){var i,t;null===(i=this.resizeObserver)||void 0===i||i.disconnect(),null===(t=this.contentResizeObserver)||void 0===t||t.disconnect()}componentDidRender(){this.focused&&null!=this.inputEl&&this.setFocus()}render(){var i,t,o;const{primaryColor:a,accentColor:r}=p(this.pin);return n(e,null,n("div",{class:s("pin-label-input-wrapper",{focused:this.focused}),onPointerDown:this.handlePointerDown,style:{top:`${(null===(i=this.computedScreenPosition)||void 0===i?void 0:i.y.toString())||0}px`,left:`${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.x.toString())||0}px`,minWidth:this.computeMinWidth(),maxWidth:this.computeMaxWidth(),maxHeight:this.computeMaxHeight(),borderColor:a,background:r}},n("textarea",{id:`pin-label-input-${null===(o=this.pin)||void 0===o?void 0:o.id}`,class:s("pin-label-input","pin-label-text",{readonly:!this.focused}),disabled:!this.focused,ref:i=>this.inputEl=i,value:this.value,rows:this.textareaRows,onKeyDown:this.handleInputKeyDown,onInput:this.handleTextInput,onBlur:this.handleTextBlur}),!this.focused&&n("div",{class:"pin-input-drag-target",onPointerDown:this.handlePointerDown})),n("div",{ref:i=>this.contentEl=i,class:s("pin-label-text","pin-label-hidden"),style:{maxWidth:this.computeMaxWidth(),maxHeight:this.computeMaxHeight()}},this.hiddenContent()))}hiddenContent(){return this.value.includes("\n")?this.value.split("\n").reduce(((i,t)=>[...i,t,n("br",null)]),[]):[this.value]}computeMinWidth(){return null!=this.contentElBounds?`min(${this.contentElBounds.width+8}px, ${this.computeMaxWidth()})`:"var(--viewer-annotations-pin-label-min-width)"}computeMaxWidth(){return`min(var(--viewer-annotations-pin-label-max-width), ${this.computeRemainingWidth()})`}computeMaxHeight(){return`min(var(--viewer-annotations-pin-label-max-height), ${this.computeRemainingHeight()})`}computeRemainingWidth(){var i,t;return`calc(${(null===(i=this.elementBounds)||void 0===i?void 0:i.width.toString())||0}px - ${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.x.toString())||0}px)`}computeRemainingHeight(){var i,t;return`calc(${(null===(i=this.elementBounds)||void 0===i?void 0:i.height.toString())||0}px - ${(null===(t=this.computedScreenPosition)||void 0===t?void 0:t.y.toString())||0}px)`}getPinText(){var i;return this.value=null!=(null===(i=this.pin)||void 0===i?void 0:i.label.text)?this.pin.label.text:"",this.value}computeScreenPosition(){this.computedScreenPosition=b(this.pin)&&null!=this.elementBounds&&null!=this.pin.label.point?h(this.pin.label.point,this.elementBounds):void 0}submit(){var i,t;this.focused=!1,this.labelBlurred.emit(null===(i=this.pin)||void 0===i?void 0:i.id),null!=this.pin&&(null===(t=this.pinController)||void 0===t||t.updatePin(Object.assign(Object.assign({},this.pin),{label:{point:this.pin.label.point,text:this.value}})))}get hostEl(){return o(this)}static get watchers(){return{focused:["watchFocusChange"],pin:["watchPinChange"],elementBounds:["watchElementBoundsChange"]}}};u.style=":host{--viewer-annotations-pin-label-background-color:var(--viewer-annotations-pin-accent-color);--viewer-annotations-pin-label-border-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-focused-border-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-color:var(--white);--viewer-annotations-pin-label-padding-y:0.375em;--viewer-annotations-pin-label-padding-x:0.5em;--viewer-annotations-pin-label-border-width:2px;--viewer-annotations-pin-label-border-style:solid;--viewer-annotations-pin-label-border-radius:0.25em;--viewer-annotations-pin-label-min-width:2rem;--viewer-annotations-pin-label-max-width:25rem;--viewer-annotations-pin-label-max-height:50rem;overflow:hidden;pointer-events:none}:host([mode='']) .pin-label{color:var(--viewer-annotations-pin-label-color);background:var(--viewer-annotations-pin-label-background-color)}.pin-label-text{font-family:Arial, Helvetica, sans-serif;font-size:0.875rem;line-height:1rem;word-break:break-word;white-space:pre-wrap}.pin-label-input-wrapper{display:flex;position:absolute;pointer-events:auto;box-sizing:border-box;min-width:var(--viewer-annotations-pin-label-min-width);max-width:var(--viewer-annotations-pin-label-max-width);max-height:var(--viewer-annotations-pin-label-max-height);background:var(--viewer-annotations-pin-label-background-color);border-width:var(--viewer-annotations-pin-label-border-width);border-style:var(--viewer-annotations-pin-label-border-style);border-color:var(--viewer-annotations-pin-label-border-color);border-radius:var(--viewer-annotations-pin-label-border-radius)}.pin-label-input-wrapper.focused{min-width:var(--viewer-annotations-pin-label-max-width);border-color:var(--viewer-annotations-pin-label-focused-border-color)}.pin-input-drag-target{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.pin-label-input{resize:none;position:relative;outline:none;border:none;word-break:break-word;padding:0 0 0 0;background-color:transparent;margin:var(--viewer-annotations-pin-label-padding-y) var(--viewer-annotations-pin-label-padding-x);width:var(--viewer-annotations-pin-label-min-width);flex-grow:1;overflow:hidden;max-width:calc(var(--viewer-annotations-pin-label-max-width) - calc(2 * var(--viewer-annotations-pin-label-padding-x)))}.pin-label-input.readonly{pointer-events:auto;color:black;cursor:pointer}.pin-label-hidden{position:absolute;visibility:hidden;pointer-events:none;width:auto;height:auto;box-sizing:border-box;border-width:var(--viewer-annotations-pin-label-border-width);border-style:var(--viewer-annotations-pin-label-border-style);border-color:var(--viewer-annotations-pin-label-border-color);margin:var(--viewer-annotations-pin-label-padding-y) 0;padding:0 var(--viewer-annotations-pin-label-padding-x);max-width:calc(var(--viewer-annotations-pin-label-max-width) - calc(2 * var(--viewer-annotations-pin-label-padding-x)))}";const w=class{constructor(t){i(this,t)}render(){var i,t,o,a;const{primaryColor:s}=p(this.pin);return n(e,null,n("svg",{class:"svg"},n("line",{class:"label-line",style:{stroke:s},x1:null===(i=this.labelPoint)||void 0===i?void 0:i.x,y1:null===(t=this.labelPoint)||void 0===t?void 0:t.y,x2:null===(o=this.pinPoint)||void 0===o?void 0:o.x,y2:null===(a=this.pinPoint)||void 0===a?void 0:a.y})))}};w.style=":host{--viewer-annotations-pin-label-line-color:var(--viewer-annotations-pin-primary-color);--viewer-annotations-pin-label-line-width:1\n\n overflow: hidden;pointer-events:none}.label-line{pointer-events:auto;stroke:var(--viewer-annotations-pin-label-line-color);stroke-width:var( --viewer-annotations-pin-label-line-width);cursor:default}.svg{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none;height:100%;width:100%}";export{u as vertex_viewer_pin_label,w as vertex_viewer_pin_label_line}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
const e="viewer";let t,n,l,o=!1,s=!1,i=!1,r=!1,c=!1;const a="undefined"!=typeof window?window:{},f=a.document||{head:{}},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},d=(()=>(f.head.attachShadow+"").indexOf("[native")>-1)(),p=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),h=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=e,i=m(t,o),r=w(n);u.ael(s,l,i,r),(t.o=t.o||[]).push((()=>u.rel(s,l,i,r)))}))},m=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){he(e)}},w=e=>0!=(2&e),b="http://www.w3.org/1999/xlink",y=new WeakMap,v=e=>"sc-"+e.p,g={},k=e=>"object"==(e=typeof e)||"function"===e,j=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!k(l))&&(l+=""),i&&r?c[c.length-1].$+=l:c.push(i?S(null,l):l),r=i)};if(a(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,_);const f=S(e,null);return f.h=t,c.length>0&&(f.m=c),f.v=o,f.g=s,f},S=(e,t)=>({t:0,k:e,$:t,j:null,m:null,h:null,v:null,g:null}),O={},_={forEach:(e,t)=>e.map(C).forEach(t),map:(e,t)=>e.map(C).map(t).map(M)},C=e=>({vattrs:e.h,vchildren:e.m,vkey:e.v,vname:e.g,vtag:e.k,vtext:e.$}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),j(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.h=e.vattrs,t.m=e.vchildren,t.v=e.vkey,t.g=e.vname,t},R=(e,t,n,l,o,s)=>{if(n!==l){let i=$e(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=N(n),s=N(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=k(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(b,t):e.removeAttribute(t)):(!i||4&s||o)&&!c&&(l=!0===l?"":l,a?e.setAttributeNS(b,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):$e(a,r)?r.slice(2):r[2]+t.slice(3),n&&u.rel(e,t,n,!1),l&&u.ael(e,t,l,!1)}},x=/\s/,N=e=>e?e.split(x):[],P=(e,t,n,l)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.h||g,i=t.h||g;for(l in s)l in i||R(o,l,s[l],void 0,n,t.t);for(l in i)R(o,l,s[l],i[l],n,t.t)},T=(e,s,c,a)=>{const u=s.m[c];let d,p,$,h=0;if(o||(i=!0,"slot"===u.k&&(t&&a.classList.add(t+"-s"),u.t|=u.m?2:1)),null!==u.$)d=u.j=f.createTextNode(u.$);else if(1&u.t)d=u.j=f.createTextNode("");else{if(r||(r="svg"===u.k),d=u.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.t?"slot-fb":u.k),r&&"foreignObject"===u.k&&(r=!1),P(null,u,r),null!=t&&d["s-si"]!==t&&d.classList.add(d["s-si"]=t),u.m)for(h=0;h<u.m.length;++h)p=T(e,u,h,d),p&&d.appendChild(p);"svg"===u.k?r=!1:"foreignObject"===d.tagName&&(r=!0)}return d["s-hn"]=l,3&u.t&&(d["s-sr"]=!0,d["s-cr"]=n,d["s-sn"]=u.g||"",$=e&&e.m&&e.m[c],$&&$.k===u.k&&e.j&&W(e.j,!1)),d},W=(e,t)=>{u.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==l&&o["s-ol"]&&(A(o).insertBefore(o,U(o)),o["s-ol"].remove(),o["s-ol"]=void 0,i=!0),t&&W(o,t)}u.t&=-2},E=(e,t,n,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=T(null,n,s,e),r&&(o[s].j=r,c.insertBefore(r,U(t))))},L=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.j,B(l),s=!0,o["s-ol"]?o["s-ol"].remove():W(o,!0),o.remove())},F=(e,t)=>e.k===t.k&&("slot"===e.k?e.g===t.g:e.v===t.v),U=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.j=e.j,l=e.m,o=t.m,s=t.k,i=t.$;let c;null===i?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||P(e,t,r),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,a=0,f=t.length-1,u=t[0],d=t[f],p=l.length-1,$=l[0],h=l[p];for(;i<=f&&r<=p;)if(null==u)u=t[++i];else if(null==d)d=t[--f];else if(null==$)$=l[++r];else if(null==h)h=l[--p];else if(F(u,$))D(u,$),u=t[++i],$=l[++r];else if(F(d,h))D(d,h),d=t[--f],h=l[--p];else if(F(u,h))"slot"!==u.k&&"slot"!==h.k||W(u.j.parentNode,!1),D(u,h),e.insertBefore(u.j,d.j.nextSibling),u=t[++i],h=l[--p];else if(F(d,$))"slot"!==u.k&&"slot"!==h.k||W(d.j.parentNode,!1),D(d,$),e.insertBefore(d.j,u.j),d=t[--f],$=l[++r];else{for(c=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].v&&t[a].v===$.v){c=a;break}c>=0?(s=t[c],s.k!==$.k?o=T(t&&t[r],n,c,e):(D(s,$),t[c]=void 0,o=s.j),$=l[++r]):(o=T(t&&t[r],n,r,e),$=l[++r]),o&&A(u.j).insertBefore(o,U(u.j))}i>f?E(e,null==l[p+1]?null:l[p+1].j,n,l,r,p):r>p&&L(t,i,f)})(n,l,t,o):null!==o?(null!==e.$&&(n.textContent=""),E(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.$!==i&&(n.data=i)},H=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}H(n)}},q=[],V=e=>{let t,n,l,o,i,r,c=0;const a=e.childNodes,f=a.length;for(;c<f;c++){if(t=a[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,o=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(z(n,o)?(i=q.find((e=>e.S===n)),s=!0,n["s-sn"]=n["s-sn"]||o,i?i.O=t:q.push({O:t,S:n}),n["s-sr"]&&q.map((e=>{z(e.S,n["s-sn"])&&(i=q.find((e=>e.S===n)),i&&!e.O&&(e.O=i.O))}))):q.some((e=>e.S===n))||q.push({S:n}));1===t.nodeType&&V(t)}},z=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,B=e=>{e.h&&e.h.ref&&e.h.ref(null),e.m&&e.m.map(B)},G=e=>ue(e)._,I=(e,t,n)=>{const l=G(e);return{emit:e=>J(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},J=(e,t,n)=>{const l=u.ce(t,n);return e.dispatchEvent(l),l},K=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},Q=(e,t)=>{if(e.t|=16,!(4&e.t))return K(e,e.M),_e((()=>X(e,t)));e.t|=512},X=(e,t)=>{const n=e.i;let l;return t?(e.t|=256,e.u&&(e.u.map((([e,t])=>le(n,e,t))),e.u=null),l=le(n,"componentWillLoad")):l=le(n,"componentWillUpdate"),l=oe(l,(()=>le(n,"componentWillRender"))),oe(l,(()=>Y(e,n,t)))},Y=async(e,t,n)=>{const l=e._,o=l["s-rc"];n&&(e=>{const t=e.R,n=e._,l=t.t,o=((e,t)=>{let n=v(t);const l=be.get(n);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=f.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(d&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);Z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Z=(e,r)=>{try{r=r.render(),e.t&=-17,e.t|=2,((e,r)=>{const c=e._,a=e.R,p=e.N||S(null,null),$=(e=>e&&e.k===O)(r)?r:j(null,null,r);if(l=c.tagName,a.P&&($.h=$.h||{},a.P.map((([e,t])=>$.h[t]=c[e]))),$.k=null,$.t|=4,e.N=$,$.j=p.j=c.shadowRoot||c,t=c["s-sc"],n=c["s-cr"],o=d&&0!=(1&a.t),s=!1,D(p,$),u.t|=1,i){let e,t,n,l,o,s;V($.j);let i=0;for(;i<q.length;i++)e=q[i],t=e.S,t["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<q.length;i++)if(e=q[i],t=e.S,e.O){for(l=e.O.parentNode,o=e.O.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}s&&H($.j),u.t&=-2,q.length=0})(e,r)}catch(t){he(t,e._)}return null},ee=e=>{const t=e._,n=e.i,l=e.M;le(n,"componentDidRender"),64&e.t||(e.t|=64,se(t),le(n,"componentDidLoad"),e.T(t),l||ne()),e.W(t),e.C&&(e.C(),e.C=void 0),512&e.t&&Se((()=>Q(e,!1))),e.t&=-517},te=e=>{{const t=ue(e),n=t._.isConnected;return n&&2==(18&t.t)&&Q(t,!1),n}},ne=()=>{se(f.documentElement),Se((()=>J(a,"appload",{detail:{namespace:"viewer"}})))},le=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){he(e)}},oe=(e,t)=>e&&e.then?e.then(t):t(),se=e=>e.classList.add("hydrated"),ie=(e,t,n)=>{if(t.L){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.L),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ue(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ue(e),s=o._,i=o.U.get(t),r=o.t,c=o.i;if(n=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.U.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){he(e,s)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,i,t))return;Q(o,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=ue(this);return n.A.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){u.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.P.push([e,o]),o}))}}return e},re=e=>{le(e,"connectedCallback")},ce=(e,t={})=>{const n=[],l=t.exclude||[],o=a.customElements,s=f.head,i=s.querySelector("meta[charset]"),r=f.createElement("style"),c=[];let p,m=!0;Object.assign(u,t),u.l=new URL(t.resourcesUrl||"./",f.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],p:t[1],L:t[2],D:t[3]};s.L=t[2],s.D=t[3],s.P=[],s.F={},!d&&1&s.t&&(s.t|=8);const i=s.p,r=class extends HTMLElement{constructor(e){super(e),pe(e=this,s),1&s.t&&(d?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){p&&(clearTimeout(p),p=null),m?c.push(this):u.jmp((()=>(e=>{if(0==(1&u.t)){const t=ue(e),n=t.R,l=()=>{};if(1&t.t)h(e,t,n.D),re(t.i);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.M=n);break}}n.L&&Object.entries(n.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=we(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.F=o.watchers,ie(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){he(e)}t.t&=-9,t.t|=128,e(),re(t.i)}if(o.style){let e=o.style;const t=v(n);if(!be.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_viewer("./p-e4aa9cdb.js").then((n=>n.scopeCss(e,t,!1)))),((e,t,n)=>{let l=be.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,be.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.M,i=()=>Q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const e=ue(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),le(t,"disconnectedCallback")}})()))}componentOnReady(){return ue(this).H}};s.q=e[0],l.includes(i)||o.get(i)||(n.push(i),o.define(i,ie(r,s,1)))}))})),r.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),s.insertBefore(r,i?i.nextSibling:s.firstChild),m=!1,c.length?c.map((e=>e.connectedCallback())):u.jmp((()=>p=setTimeout(ne,30)))},ae=(e,t)=>t,fe=new WeakMap,ue=e=>fe.get(e),de=(e,t)=>fe.set(t.i=e,t),pe=(e,t)=>{const n={t:0,_:e,R:t,U:new Map};return n.A=new Promise((e=>n.W=e)),n.H=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],h(e,n,t.D),fe.set(e,n)},$e=(e,t)=>t in e,he=(e,t)=>(0,console.error)(e,t),me=new Map,we=e=>{const t=e.p.replace(/-/g,"_"),n=e.q,l=me.get(n);return l?l[t]:__sc_import_viewer(`./${n}.entry.js`).then((e=>(me.set(n,e),e[t])),he)
|
|
5
5
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},be=new Map,ye=[],ve=[],ge=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&u.t?Se(je):u.raf(je))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){he(e)}e.length=0},je=()=>{ke(ye),ke(ve),(c=ye.length>0)&&u.raf(je)},Se=e=>p().then(e),Oe=ge(ye,!1),_e=ge(ve,!0);export{ae as F,O as H,e as N,Oe as a,ce as b,I as c,f as d,_e as e,te as f,G as g,j as h,p,de as r,a as w}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
var E;!function(E){E[E.CROSS_SECTION=255]="CROSS_SECTION",E[E.PRECISE_EDGE=224]="PRECISE_EDGE",E[E.PRECISE_SURFACE=192]="PRECISE_SURFACE",E[E.IMPRECISE_EDGE=160]="IMPRECISE_EDGE",E[E.IMPRECISE_SURFACE=128]="IMPRECISE_SURFACE",E[E.GENERIC_GEOMETRY=96]="GENERIC_GEOMETRY",E[E.NO_GEOMETRY=0]="NO_GEOMETRY"}(E||(E={}));export{E}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,n,r){return e(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function t(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return e[r]}})})),n}export{e as a,n as b,r as c,t as g}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{p as t,t as n,
|
|
4
|
+
import{p as t,t as n,c as e,e as r}from"./p-d216a866.js";function a(r,a,s=60){const i=t.distance(r,a),o=e.normalize(e.toDegrees(e.fromPoints(r,a))-270),E=Math.max(4,Math.min(16,.25*i)),f=E/Math.cos(e.toRadians(90-s)),u=n.rotation(o),c=t.polar(f,e.toRadians(2*s)),R=t.polar(f,e.toRadians(s)),M=t.polar(E,e.toRadians(90));return{tip:a,left:t.add(a,n.transformPoint(u,c)),right:t.add(a,n.transformPoint(u,R)),base:t.add(a,n.transformPoint(u,M))}}function s(t){return[t.tip,t.right,t.base,t.left].map((t=>`${t.x},${t.y}`)).join(" ")}function i(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-ARROW"===t.nodeName}function o(n){return"string"==typeof n?t.fromJson(n):n}function E(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-CIRCLE"===t.nodeName}function f(t){return"string"==typeof t?r.fromJson(t):t}function u(n){return"string"==typeof n?JSON.parse(n).map((n=>t.fromJson(JSON.stringify(n)))):n}function c(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-MARKUP-FREEFORM"===t.nodeName}export{E as a,c as b,a as c,s as d,f as e,u as f,i,o as p}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import{p as t,d as i}from"./p-d216a866.js";import{r as s,c as e,E as n}from"./p-fc7d8c03.js";class r{constructor(t,i="view",s="pin-icon",e){this.model=t,this.mode=i,this.type=s,this.styleAttributes=e}addPin(t){this.model.addPin(t)}clearPins(){this.model.clearPins()}removePin(t){this.model.removePin(t)}setPins(t){this.model.setPins(t)}setPin(t){this.model.setPin(t)}updatePin(t){this.model.updatePin(t)}setSelectedPinId(t){this.model.setSelectedPin(t)}getToolMode(){return this.mode}getToolType(){return this.type}setToolMode(t){this.mode=t}setToolType(t){this.type=t}getDraggable(){return this.draggable}setDraggable(t){this.draggable=t}setPrimaryColor(t){this.styleAttributes=Object.assign(Object.assign({},this.styleAttributes),{primaryColor:t})}setAccentColor(t){this.styleAttributes=Object.assign(Object.assign({},this.styleAttributes),{accentColor:t})}getStyleAttributes(){return this.styleAttributes}updateDraggable(t,i,s){null!=this.draggable&&(this.draggable=t);const e=this.model.getPinById(t.id);null!=e&&this.updatePin(Object.assign(Object.assign({},e),{worldPosition:i,partId:s}))}}function o(i,s){const e=Math.max(s.start,Math.min(s.end,i.x)),n=Math.max(s.start,Math.min(s.end,i.y));return t.create(e,n)}function h(s,e){return t.add(t.scale(s,e.width,e.height),i.center(e))}function l(e,n,r,h,l){const u=1/n.height,c=1/n.width,d=i.center(n),a=t.scale(t.subtract(e,d),c,u);if(r){const i=t.scale(t.create(h,l),c,u);return o(t.add(a,t.create(d.x>e.x?i.x:-3*i.x,d.y>e.y?i.y:-3*i.y)),s.create(-.5,.5))}return o(a,s.create(-.5,.5))}function u(t){return"text"===(null==t?void 0:t.type)}function c(t){return"icon"===(null==t?void 0:t.type)}function d(t){return"string"==typeof t?t:e.toHexString(t)}function a(t){var i,s,e,n,r,o,h,l;return{primaryColor:null==(null===(s=null===(i=null==t?void 0:t.attributes)||void 0===i?void 0:i.style)||void 0===s?void 0:s.primaryColor)?void 0:d(null===(n=null===(e=null==t?void 0:t.attributes)||void 0===e?void 0:e.style)||void 0===n?void 0:n.primaryColor),accentColor:null==(null===(o=null===(r=null==t?void 0:t.attributes)||void 0===r?void 0:r.style)||void 0===o?void 0:o.accentColor)?void 0:d(null===(l=null===(h=null==t?void 0:t.attributes)||void 0===h?void 0:h.style)||void 0===l?void 0:l.accentColor)}}class v{constructor(){this.entities={},this.entitiesChanged=new n,this.selectionChanged=new n}addPin(t,i=!1){return null==this.entities[t.id]&&(this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),i||this.entitiesChanged.emit(this.getPins()),!0)}clearPins(){this.getPins().forEach((t=>this.removePin(t)))}getPins(){return Object.keys(this.entities).map((t=>this.entities[t]))}getPinById(t){return this.entities[t]}getSelectedPinId(){return this.selectedPinId}removePin(t){return null!=this.entities[t.id]&&(delete this.entities[t.id],this.entitiesChanged.emit(this.getPins()),!0)}setPins(t){return this.clearPins(),t.forEach((t=>this.addPin(t,!0))),this.entitiesChanged.emit(this.getPins()),!0}setPin(t){return this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),this.entitiesChanged.emit(this.getPins()),!0}updatePin(t){return null!=this.getPinById(t.id)&&(this.entities=Object.assign(Object.assign({},this.entities),{[t.id]:t}),this.entitiesChanged.emit(this.getPins()),!0)}onEntitiesChanged(t){return this.entitiesChanged.on(t)}onSelectionChange(t){return this.selectionChanged.on(t)}setSelectedPin(t){this.selectedPinId=t,this.selectionChanged.emit(this.selectedPinId)}}export{v as P,r as a,u as b,h as c,a as g,c as i,l as t}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,c as n,h as i,H as s,g as e}from"./p-d6fce4c1.js";import{v as o,q as h,m as a,u as r}from"./p-d216a866.js";import{o as l}from"./p-fc7d8c03.js";import"./p-6072cf84.js";import"./p-df8fbe56.js";import{V as d}from"./p-0a017be7.js";import"./p-32cc2209.js";import"./p-dfe5a97d.js";const c=class{constructor(i){t(this,i),this.propertyChange=n(this,"propertyChange",7),this.position=o.origin(),this.positionJson="",this.quaternion=h.create(),this.quaternionJson="",this.scale=o.create(1,1,1),this.scaleJson="",this.matrix=a.makeIdentity(),this.occlusionOff=!1,this.occluded=!1,this.billboardOff=!1,this.interactionsOff=!1}handlePositionChange(){this.syncMatrix()}handlePositionJsonChanged(){this.syncPosition()}handleRotationChanged(){this.syncQuaternionWithRotation()}handleRotationJsonChanged(){this.syncRotation()}handleQuaternionChange(){this.syncMatrix()}handleQuaternionJsonChanged(){this.syncQuaternion()}handleScaleChange(){this.syncMatrix()}handleScaleJsonChanged(){this.syncScale()}handleMatrixChanged(t,n){l.isEqual(t,n)||this.propertyChange.emit()}connectedCallback(){this.syncProperties()}componentShouldUpdate(t,n,i){return"occluded"===i}syncProperties(){this.syncPosition(),this.syncRotation(),this.syncQuaternion(),this.syncScale(),this.syncMatrix()}syncPosition(){this.position=this.positionJson.length>0?this.parseJson("positionJson",this.positionJson,o.fromJson):this.position}syncRotation(){this.rotation=null!=this.rotationJson&&this.rotationJson.length>0?this.parseJson("rotationJson",this.rotationJson,r.fromJson):this.rotation,this.syncQuaternionWithRotation()}syncQuaternionWithRotation(){this.quaternion=null!=this.rotation?h.fromEuler(this.rotation):this.quaternion}syncQuaternion(){this.quaternion=this.quaternionJson.length>0?this.parseJson("quaternionJson",this.quaternionJson,h.fromJson):this.quaternion}syncScale(){this.scale=this.scaleJson.length>0?this.parseJson("scaleJson",this.scaleJson,o.fromJson):this.scale}syncMatrix(){this.matrix=a.makeTRS(this.position,this.quaternion,this.scale)}parseJson(t,n,i){try{return i(n)}catch(n){throw console.warn(`Could not parse \`${t}\`. Invalid JSON.`),n}}render(){return i(s,null,i("slot",null))}static get watchers(){return{position:["handlePositionChange"],positionJson:["handlePositionJsonChanged"],rotation:["handleRotationChanged"],rotationJson:["handleRotationJsonChanged"],quaternion:["handleQuaternionChange"],quaternionJson:["handleQuaternionJsonChanged"],scale:["handleScaleChange"],scaleJson:["handleScaleJsonChanged"],matrix:["handleMatrixChanged"]}}};function u(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-ELEMENT"===t.nodeName}function p(t){return t instanceof HTMLElement&&"VERTEX-VIEWER-DOM-GROUP"===t.nodeName||t instanceof HTMLElement&&null!=t.dataset.isDomGroupElement}c.style=":host{position:absolute;pointer-events:none;visibility:hidden}:host(.hydrated){visibility:hidden}:host(.ready){visibility:inherit}:host(:not([interactions-off]))>*{pointer-events:auto}";const f=(t,n)=>i("div",{class:"root-2d"},n);function m(t,n,i,s,e){const o=v(t,n,s).sort(((t,n)=>t.distanceToCamera-n.distanceToCamera));for(let t=0;t<o.length;t++){const{element:n,worldMatrix:h,worldPosition:a}=o[t],r=!n.occlusionOff&&(null==e?void 0:e.isOccluded(a,i));g(n,w(a,s.projectionViewMatrix,i)),C(n,t,o.length),m(n,h,i,s,e),n.occluded=null!=r&&r,n.classList.add("ready")}}function v(t,n,i){const s=[];for(let e=0;e<t.children.length;e++){const h=t.children[e];if(p(h)){const t=a.multiply(n,h.matrix);s.push(...v(h,t,i))}else if(u(h)){const t=a.multiply(n,h.matrix),e=o.fromMatrixPosition(t),r=o.distanceSquared(i.position,e);s.push({element:h,worldMatrix:t,worldPosition:e,distanceToCamera:r})}}return s}function g(t,n){t.style.transform=["translate(-50%, -50%)",`translate(${n.x}px, ${n.y}px)`].join(" ")}function C(t,n,i){t.style.zIndex=""+(i-n)}function w(t,n,i){const s=o.transformMatrix(t,n);return i.transformVectorToViewport(s)}const y=({camera:t,viewport:n},s)=>{const e=a.toObject(t.projectionMatrix),o=t.isOrthographic()?2*t.far/(2*t.fovHeight)*(n.height/2):e.m22*(n.height/2),h=[`translateZ(${o}px)`,(r=t.viewMatrix,`matrix3d(${[M(r[0]),M(-r[1]),M(r[2]),M(r[3]),M(r[4]),M(-r[5]),M(r[6]),M(r[7]),M(r[8]),M(-r[9]),M(r[10]),M(r[11]),M(r[12]),M(-r[13]),M(r[14]),M(r[15])].join(", ")})`),`translate(${n.width/2}px, ${n.height/2}px)`].join(" ");var r;return i("div",{class:"root-3d",style:{perspective:`${o}px`}},i("div",{class:"camera",style:{transform:h}},s))};function J(t,n,i,s,e){for(let o=0;o<t.children.length;o++){const h=t.children[o];u(h)?x(h,n,i,s,e):p(h)&&E(h,n,i,s,e)}}function x(t,n,i,s,e){const h=a.multiply(n,t.matrix),r=o.fromMatrixPosition(h),l=!t.occlusionOff&&(null==e?void 0:e.isOccluded(r,i));if(t.occluded=null!=l&&l,t.classList.add("ready"),t.billboardOff)t.style.transform=R(h);else{let n=s.viewMatrix;n=a.transpose(n),n=a.position(n,h),n=a.scale(n,t.scale),n[3]=0,n[7]=0,n[11]=0,n[15]=1,t.style.transform=R(n)}J(t,h,i,s,e)}function E(t,n,i,s,e){J(t,a.multiply(n,t.matrix),i,s,e)}function R(t){return["translate(-50%, -50%)",`matrix3d(${[M(t[0]),M(t[1]),M(t[2]),M(t[3]),M(-t[4]),M(-t[5]),M(-t[6]),M(-t[7]),M(t[8]),M(t[9]),M(t[10]),M(t[11]),M(t[12]),M(t[13]),M(t[14]),M(t[15])].join(", ")})`].join(" ")}function M(t){return Math.abs(t)<1e-10?0:t}const b=class{constructor(n){t(this,n),this.drawMode="3d",this.viewport=new d(0,0),this.invalidateFrameCounter=0,this.handleViewerFrameDrawn=async()=>{this.updatePropsFromViewer()}}componentWillLoad(){var t;new ResizeObserver((()=>this.handleResize())).observe(this.hostEl),new MutationObserver((()=>this.handleChildrenChange())).observe(this.hostEl,{childList:!0}),this.handleViewerChange(this.viewer,void 0),null!=(null===(t=this.viewer)||void 0===t?void 0:t.frame)&&this.handleViewerFrameDrawn()}render(){return null!=this.camera?i(s,null,"2d"===this.drawMode?i(f,null,i("slot",null)):i(y,{camera:this.camera,viewport:this.viewport},i("slot",null))):i(s,null)}componentWillRender(){this.updateElements()}handleViewerChange(t,n){null==n||n.removeEventListener("frameDrawn",this.handleViewerFrameDrawn),null==t||t.addEventListener("frameDrawn",this.handleViewerFrameDrawn)}handlePropertyChange(){this.invalidateFrame()}invalidateFrame(){this.invalidateFrameCounter=this.invalidateFrameCounter+1}async updateElements(){const{viewport:t,camera:n}=this,i=a.makeIdentity();null!=n&&("3d"===this.drawMode?J(this.hostEl,i,t,n,this.depthBuffer):m(this.hostEl,i,t,n,this.depthBuffer))}handleResize(){const t=this.hostEl.getBoundingClientRect();this.viewport=new d(t.width,t.height)}handleChildrenChange(){this.invalidateFrame()}async updatePropsFromViewer(){const{frame:t,depthBuffers:n}=this.viewer||{};this.depthBuffer="all"===n?await(null==t?void 0:t.depthBuffer()):void 0,this.camera=null==t?void 0:t.scene.camera}get hostEl(){return e(this)}static get watchers(){return{viewer:["handleViewerChange"]}}};b.style=":host{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none}.root-3d{width:100%;height:100%;pointer-events:inherit}.camera{transform-style:preserve-3d;pointer-events:inherit;width:100%;height:100%}";export{c as vertex_viewer_dom_element,b as vertex_viewer_dom_renderer}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{_ as n,
|
|
4
|
+
import{_ as n,h as r,i as t,j as e,k as u,n as i}from"./p-d216a866.js";function o(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(this,void 0,void 0,(function(){var r,t,e;return i(this,(function(u){switch(u.label){case 0:return"number"!=typeof(r=n[0])?[3,4]:(t=n[1],e=new Promise((function(n){return setTimeout(n,r)})),null==t?[3,2]:[4,e]);case 1:return u.sent(),[2,t];case 2:return[2,e];case 3:return[3,5];case 4:return[2,Promise.reject(new TypeError("First argument to `delay` must be a number"))];case 5:return[2]}}))}))}var c=Object.freeze({__proto__:null,delay:o,timeout:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(this,void 0,void 0,(function(){var r,t,e,u,o;return i(this,(function(i){switch(i.label){case 0:return"number"!=typeof(r=n[0])?[3,4]:(t=n[1],u=new Promise((function(n,t){e=setTimeout((function(){return t(new Error("Promise timed out after ".concat(r,"ms")))}),r)})),null==t?[3,2]:[4,Promise.race([t,u])]);case 1:return o=i.sent(),clearTimeout(e),[2,o];case 2:return[2,u];case 3:return[3,5];case 4:return[2,Promise.reject("First argument to `timeout` must be a number")];case 5:return[2]}}))}))},retry:function(n,r){return void 0===r&&(r={}),u(this,void 0,void 0,(function(){function t(n,r,e){return u(this,void 0,void 0,(function(){var u,c,f,a,s;return i(this,(function(i){switch(i.label){case 0:c=void 0===(u=e.delaysInMs)?[]:u,a=void 0===(f=e.maxRetries)?1:f,i.label=1;case 1:return i.trys.push([1,4,,8]),[4,o(0===n||0===c.length?0:c[Math.min(n-1,c.length-1)])];case 2:return i.sent(),[4,r()];case 3:return[2,i.sent()];case 4:return s=i.sent(),n<a?[4,t(n+1,r,e)]:[3,6];case 5:return[2,i.sent()];case 6:throw s;case 7:return[3,8];case 8:return[2]}}))}))}return i(this,(function(){return[2,t(0,n,r)]}))}))},abort:function(n,r){return u(this,void 0,void 0,(function(){var t,e,o;return i(this,(function(c){switch(c.label){case 0:return t=new AbortController,e=function(n,r,t){return u(this,void 0,void 0,(function(){return i(this,(function(){return[2,new Promise((function(e){n.addEventListener(r,(function t(u){n.removeEventListener(r,t),e(u)}),t)}))]}))}))}(n,"abort",{signal:t.signal}),[4,Promise.race([r,e])];case 1:return(f=o=c.sent())instanceof Event&&"abort"===f.type?[2,{aborted:!0}]:(t.abort(),[2,{aborted:!1,result:o}])}var f}))}))}}),f=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,a=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(.+)\s*\)/,s=/^(#|0x)?([A-Fa-f0-9]{6})$/,v=function(n,r,t,e){return void 0===e&&(e=255),{r:n,g:r,b:t,a:e}},l=function(n){var r=16777215&n;return v(r>>16&255,r>>8&255,255&r)},d=function(n){var r=s.exec(n);if(null!=r)return l(parseInt(r[2],16))},h=function(n){var r=n.toString(16);return 1===r.length?"0"+r:r},b=Object.freeze({__proto__:null,create:v,fromNumber:l,fromHexString:d,fromCss:function(n){var r=f.exec(n);if(null!=r)return v(parseInt(r[1]),parseInt(r[2]),parseInt(r[3]));var t=a.exec(n);return null!=t?v(parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),Math.floor(255*parseFloat(t[4]))):s.test(n)?d(n):void 0},fromArray:function(n){return v(n[0],n[1],n[2],n[3])},isInvisible:function(n){return 0===n.a},isOpaque:function(n){return 255===n.a},toHexString:function(n){return"#".concat(h(n.r)).concat(h(n.g)).concat(h(n.b))}}),p=function(r){function t(n){var e=r.call(this,"Validation error mapping object.")||this;return e.errors=n,Object.setPrototypeOf(e,t.prototype),e}return n(t,r),t}(Error);function y(n){return function(r){return null!=r?r:{errors:["".concat(n," is required.")]}}}function m(n,r){return function(t){return r(t[n])}}function g(n){return null!=n&&n.hasOwnProperty("errors")}function j(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return function(r){return n.reduce((function(n,r){return g(n)?n:r(n)}),r)}}var w=Object.freeze({__proto__:null,MapperValidationError:p,required:y,requiredProp:function(n){return function(r){var t=r[n];return null!=t?t:{errors:["".concat(n," is required")]}}},ifDefined:function(n){return function(r){return null!=r?n(r):r}},getProp:function(n){return function(r){return r[n]}},mapProp:m,mapRequiredProp:function(n,r){return m(n,j(y(n.toString()),r))},mapArray:function(n){return function(e){if(e.length>0){var u=r(e),i=u[0],o=u.slice(1),c=n(i);return o.reduce((function(e,u){var i=n(u);return g(i)?g(e)?{errors:t(t([],r(e.errors),!1),r(i.errors),!1)}:i:g(e)?e:t(t([],r(e),!1),[i],!1)}),g(c)?c:[c])}return[]}},isInvalid:g,ifInvalidThrow:function(n){return function(r){var t=n(r);if(g(t))throw new p(t.errors);return t}},read:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e){return n.reduce((function(n,u){var i=u(e);return g(i)?g(n)?{errors:t(t([],r(n.errors),!1),r(i.errors),!1)}:i:g(n)?n:t(t([],r(n),!1),[i],!1)}),[])}},defineMapper:function(n,r){return function(t){var e,u,i=n(t);return u=r,g(e=i)?e:u(e)}},compose:j,pickFirst:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return function(r){return n.reduce((function(n,t){return void 0===n?t(r):n}),void 0)}}});
|
|
5
5
|
/*!
|
|
6
6
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
7
7
|
*
|
|
@@ -14,4 +14,4 @@ import{_ as n,n as r,g as t,f as e,c as u,e as i}from"./p-70e5e8a8.js";function
|
|
|
14
14
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
15
15
|
* Released under the MIT License.
|
|
16
16
|
*/
|
|
17
|
-
function _(n){return 1==(null!=(r=n)&&"object"==typeof r&&!1===Array.isArray(r))&&"[object Object]"===Object.prototype.toString.call(n);var r}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},A={exports:{}};!function(n,r){var t="__lodash_hash_undefined__",e=9007199254740991,u="[object Arguments]",i="[object Array]",o="[object Boolean]",c="[object Date]",f="[object Error]",a="[object Function]",s="[object Map]",v="[object Number]",l="[object Object]",d="[object Promise]",h="[object RegExp]",b="[object Set]",p="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[u]=_[i]=_[m]=_[o]=_[g]=_[c]=_[f]=_[a]=_[s]=_[v]=_[l]=_[h]=_[b]=_[p]=_[y]=!1;var A="object"==typeof I&&I&&I.Object===Object&&I,O="object"==typeof self&&self&&self.Object===Object&&self,P=A||O||Function("return this")(),B=r&&!r.nodeType&&r,E=B&&n&&!n.nodeType&&n,M=E&&E.exports===B,S=M&&A.process,q=function(){try{return S&&S.binding&&S.binding("util")}catch(n){}}(),C=q&&q.isTypedArray;function F(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(r(n[t],t,n))return!0;return!1}function x(n){var r=-1,t=Array(n.size);return n.forEach((function(n,e){t[++r]=[e,n]})),t}function $(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=n})),t}var T,U,k,D=Array.prototype,R=Object.prototype,N=P["__core-js_shared__"],V=Function.prototype.toString,L=R.hasOwnProperty,Q=(T=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",H=R.toString,J=RegExp("^"+V.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=M?P.Buffer:void 0,G=P.Symbol,z=P.Uint8Array,K=R.propertyIsEnumerable,X=D.splice,Y=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,nn=W?W.isBuffer:void 0,rn=(U=Object.keys,k=Object,function(n){return U(k(n))}),tn=En(P,"DataView"),en=En(P,"Map"),un=En(P,"Promise"),on=En(P,"Set"),cn=En(P,"WeakMap"),fn=En(Object,"create"),an=Cn(tn),sn=Cn(en),vn=Cn(un),ln=Cn(on),dn=Cn(cn),hn=G?G.prototype:void 0,bn=hn?hn.valueOf:void 0;function pn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function yn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function mn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function gn(n){var r=-1,t=null==n?0:n.length;for(this.__data__=new mn;++r<t;)this.add(n[r])}function jn(n){var r=this.__data__=new yn(n);this.size=r.size}function wn(n,r){for(var t=n.length;t--;)if(Fn(n[t][0],r))return t;return-1}function _n(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Y&&Y in Object(n)?function(n){var r=L.call(n,Y),t=n[Y];try{n[Y]=void 0;var e=!0}catch(n){}var u=H.call(n);return e&&(r?n[Y]=t:delete n[Y]),u}(n):function(n){return H.call(n)}(n)}function In(n){return Rn(n)&&_n(n)==u}function An(n,r,t,e,a){return n===r||(null==n||null==r||!Rn(n)&&!Rn(r)?n!=n&&r!=r:function(n,r,t,e,a,d){var y=$n(n),j=$n(r),w=y?i:Sn(n),_=j?i:Sn(r),I=(w=w==u?l:w)==l,A=(_=_==u?l:_)==l,O=w==_;if(O&&Tn(n)){if(!Tn(r))return!1;y=!0,I=!1}if(O&&!I)return d||(d=new jn),y||Nn(n)?On(n,r,t,e,a,d):function(n,r,t,e,u,i,a){switch(t){case g:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case m:return!(n.byteLength!=r.byteLength||!i(new z(n),new z(r)));case o:case c:case v:return Fn(+n,+r);case f:return n.name==r.name&&n.message==r.message;case h:case p:return n==r+"";case s:var l=x;case b:if(l||(l=$),n.size!=r.size&&!(1&e))return!1;var d=a.get(n);if(d)return d==r;e|=2,a.set(n,r);var y=On(l(n),l(r),e,u,i,a);return a.delete(n),y;case"[object Symbol]":if(bn)return bn.call(n)==bn.call(r)}return!1}(n,r,w,t,e,a,d);if(!(1&t)){var P=I&&L.call(n,"__wrapped__"),B=A&&L.call(r,"__wrapped__");if(P||B){var E=P?n.value():n,M=B?r.value():r;return d||(d=new jn),a(E,M,t,e,d)}}return!!O&&(d||(d=new jn),function(n,r,t,e,u,i){var o=1&t,c=Pn(n),f=c.length;if(f!=Pn(r).length&&!o)return!1;for(var a=f;a--;){var s=c[a];if(!(o?s in r:L.call(r,s)))return!1}var v=i.get(n);if(v&&i.get(r))return v==r;var l=!0;i.set(n,r),i.set(r,n);for(var d=o;++a<f;){var h=n[s=c[a]],b=r[s];if(e)var p=o?e(b,h,s,r,n,i):e(h,b,s,n,r,i);if(!(void 0===p?h===b||u(h,b,t,e,i):p)){l=!1;break}d||(d="constructor"==s)}if(l&&!d){var y=n.constructor,m=r.constructor;y==m||!("constructor"in n)||!("constructor"in r)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(l=!1)}return i.delete(n),i.delete(r),l}(n,r,t,e,a,d))}(n,r,t,e,An,a))}function On(n,r,t,e,u,i){var o=1&t,c=n.length,f=r.length;if(c!=f&&!(o&&f>c))return!1;var a=i.get(n);if(a&&i.get(r))return a==r;var s=-1,v=!0,l=2&t?new gn:void 0;for(i.set(n,r),i.set(r,n);++s<c;){var d=n[s],h=r[s];if(e)var b=o?e(h,d,s,r,n,i):e(d,h,s,n,r,i);if(void 0!==b){if(b)continue;v=!1;break}if(l){if(!F(r,(function(n,r){if(!l.has(r)&&(d===n||u(d,n,t,e,i)))return l.push(r)}))){v=!1;break}}else if(d!==h&&!u(d,h,t,e,i)){v=!1;break}}return i.delete(n),i.delete(r),v}function Pn(n){return function(n,r,t){var e=r(n);return $n(n)?e:function(n,r){for(var t=-1,e=r.length,u=n.length;++t<e;)n[u+t]=r[t];return n}(e,t(n))}(n,Vn,Mn)}function Bn(n,r){var t,e,u=n.__data__;return("string"==(e=typeof(t=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?u["string"==typeof r?"string":"hash"]:u.map}function En(n,r){var t=function(n,r){return null==n?void 0:n[r]}(n,r);return function(n){return!(!Dn(n)||function(n){return!!Q&&Q in n}(n))&&(Un(n)?J:j).test(Cn(n))}(t)?t:void 0}pn.prototype.clear=function(){this.__data__=fn?fn(null):{},this.size=0},pn.prototype.delete=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r},pn.prototype.get=function(n){var r=this.__data__;if(fn){var e=r[n];return e===t?void 0:e}return L.call(r,n)?r[n]:void 0},pn.prototype.has=function(n){var r=this.__data__;return fn?void 0!==r[n]:L.call(r,n)},pn.prototype.set=function(n,r){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=fn&&void 0===r?t:r,this},yn.prototype.clear=function(){this.__data__=[],this.size=0},yn.prototype.delete=function(n){var r=this.__data__,t=wn(r,n);return!(t<0||(t==r.length-1?r.pop():X.call(r,t,1),--this.size,0))},yn.prototype.get=function(n){var r=this.__data__,t=wn(r,n);return t<0?void 0:r[t][1]},yn.prototype.has=function(n){return wn(this.__data__,n)>-1},yn.prototype.set=function(n,r){var t=this.__data__,e=wn(t,n);return e<0?(++this.size,t.push([n,r])):t[e][1]=r,this},mn.prototype.clear=function(){this.size=0,this.__data__={hash:new pn,map:new(en||yn),string:new pn}},mn.prototype.delete=function(n){var r=Bn(this,n).delete(n);return this.size-=r?1:0,r},mn.prototype.get=function(n){return Bn(this,n).get(n)},mn.prototype.has=function(n){return Bn(this,n).has(n)},mn.prototype.set=function(n,r){var t=Bn(this,n),e=t.size;return t.set(n,r),this.size+=t.size==e?0:1,this},gn.prototype.add=gn.prototype.push=function(n){return this.__data__.set(n,t),this},gn.prototype.has=function(n){return this.__data__.has(n)},jn.prototype.clear=function(){this.__data__=new yn,this.size=0},jn.prototype.delete=function(n){var r=this.__data__,t=r.delete(n);return this.size=r.size,t},jn.prototype.get=function(n){return this.__data__.get(n)},jn.prototype.has=function(n){return this.__data__.has(n)},jn.prototype.set=function(n,r){var t=this.__data__;if(t instanceof yn){var e=t.__data__;if(!en||e.length<199)return e.push([n,r]),this.size=++t.size,this;t=this.__data__=new mn(e)}return t.set(n,r),this.size=t.size,this};var Mn=Z?function(n){return null==n?[]:(n=Object(n),function(r){for(var t=-1,e=null==r?0:r.length,u=0,i=[];++t<e;){var o=r[t];K.call(n,o)&&(i[u++]=o)}return i}(Z(n)))}:function(){return[]},Sn=_n;function qn(n,r){return!!(r=null==r?e:r)&&("number"==typeof n||w.test(n))&&n>-1&&n%1==0&&n<r}function Cn(n){if(null!=n){try{return V.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Fn(n,r){return n===r||n!=n&&r!=r}(tn&&Sn(new tn(new ArrayBuffer(1)))!=g||en&&Sn(new en)!=s||un&&Sn(un.resolve())!=d||on&&Sn(new on)!=b||cn&&Sn(new cn)!=y)&&(Sn=function(n){var r=_n(n),t=r==l?n.constructor:void 0,e=t?Cn(t):"";if(e)switch(e){case an:return g;case sn:return s;case vn:return d;case ln:return b;case dn:return y}return r});var xn=In(function(){return arguments}())?In:function(n){return Rn(n)&&L.call(n,"callee")&&!K.call(n,"callee")},$n=Array.isArray,Tn=nn||function(){return!1};function Un(n){if(!Dn(n))return!1;var r=_n(n);return r==a||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function kn(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=e}function Dn(n){var r=typeof n;return null!=n&&("object"==r||"function"==r)}function Rn(n){return null!=n&&"object"==typeof n}var Nn=C?function(n){return function(r){return n(r)}}(C):function(n){return Rn(n)&&kn(n.length)&&!!_[_n(n)]};function Vn(n){return null!=(r=n)&&kn(r.length)&&!Un(r)?function(n,r){var t=$n(n),e=!t&&xn(n),u=!t&&!e&&Tn(n),i=!t&&!e&&!u&&Nn(n),o=t||e||u||i,c=o?function(n,r){for(var t=-1,e=Array(n);++t<n;)e[t]=r(t);return e}(n.length,String):[],f=c.length;for(var a in n)!r&&!L.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||qn(a,f))||c.push(a);return c}(n):function(n){if((r=n)!==("function"==typeof(t=r&&r.constructor)&&t.prototype||R))return rn(n);var r,t,e=[];for(var u in Object(n))L.call(n,u)&&"constructor"!=u&&e.push(u);return e}(n);var r}n.exports=function(n,r){return An(n,r)}}(A,A.exports);var O=A.exports;function P(n){return!1!==_(r=n)&&"function"==typeof(t=r.constructor)&&!1!==_(e=t.prototype)&&!1!==e.hasOwnProperty("isPrototypeOf");var r,t,e}var B,E=Object.freeze({__proto__:null,defaults:function n(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];var i=r(t),o=i[0],c=i.slice(1),f=e({},o);if(0===c.length)return f;if(1===c.length){var a=c[0];for(var s in a)null==f[s]?f[s]=a[s]:P(f[s])&&(f[s]=n(f[s],a[s]));return f}return c.reduce((function(r,t){return n(r,t)}),o)},isPlainObject:P,isEqual:function(n,r){return O(n,r)},toPairs:function(n){return null!=n?Object.keys(n).map((function(r){return[r,n[r]]})):[]},fromPairs:function(n){return Array.isArray(n)?n.reduce((function(n,r){var t;return null!=r?e(e({},n),((t={})[r[0]]=r[1],t)):n}),{}):{}}}),M=function(n,r){return{start:n,end:r}},S=function(n,r){return M(r.start+n,r.end+n)},q=function(n,r){return"number"==typeof n?r.start<=n&&n<=r.end:q(n.start,r)&&q(n.end,r)},C=function(n,r){return n.start<=r.end&&n.end>=r.start||r.start<=n.end&&r.end>=n.start},F=function(n,r){return n.start===r.start},x=function(n,r){return n.start>r.start},$=function(n,r){return n.start<r.start},T=function(n){return n.end-n.start+1},U=Object.freeze({__proto__:null,create:M,at:function(n){return{start:n,end:n}},withLength:function(n,r){return{start:n,end:n+r-1}},add:S,constrain:function(n,r){return q(n,r)?n:T(n)>T(r)?r:n.start<r.start?M(r.start,r.start+T(n)-1):M(r.end-T(n)+1,r.end)},contains:q,intersection:function(n,r){if(C(n,r))return M(Math.max(n.start,r.start),Math.min(n.end,r.end))},intersects:C,isAt:F,isAfter:x,isAtOrAfter:function(n,r){return F(n,r)||x(n,r)},isBefore:$,isAtOrBefore:function(n,r){return F(n,r)||$(n,r)},length:T,subtract:function(n,r){return S(-1*n,r)},truncate:function(n,r){if(C(r,n))return M(Math.max(n.start,r.start),Math.min(n.end,r.end))}}),k=function(n,r){return n<r?-1:n>r?1:0},D=function(n){var r=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(n);return null!=r?{scheme:r[2],authority:r[4],path:r[5],query:r[7],fragment:r[9]}:{}},R=function(n,r){var t="/"===n[0]?n:"/".concat(n);return e(e({},r),{path:t})},N=function(n){return null!=n.path?W(n.path.split("/")):[]},V=function(n,u){if(null!=n[1]){var i=t(t([],r(H(u)),!1),[n],!1);return e(e({},u),{query:i.map((function(n){return n.map(encodeURIComponent).join("=")})).join("&")})}return u},L=function(n,r){return n.reduce((function(n,r){return V(r,n)}),r)},Q=function(n,r){return G(n).reduce((function(n,r){return V(r,n)}),r)},H=function(n){return null!=n.query?J(n.query):[]},J=function(n){return n.split("&").map((function(n){return n.split("=").map((function(n){return decodeURIComponent(n)}))}))},W=function(n){return n.filter((function(n){return n.length>0}))},G=function(n){var r=[];for(var t in n)r.push([t,n[t]]);return r},z=function(n){return n.concat().sort((t=k,function(n,e){var u=r(n,1)[0],i=r(e,1);return t(u,i[0])}));var t},K=Object.freeze({__proto__:null,parse:D,parseAndAddParams:function(n,r){var t=D(n);return r?Q(r,t):t},isEqual:function(n,r){var t=JSON.stringify(z(H(n))),e=JSON.stringify(z(H(r)));return n.scheme===r.scheme&&n.authority===r.authority&&n.path===r.path&&n.fragment===r.fragment&&t===e},replacePath:R,pathAsArray:N,appendPath:function(n,r){var t=N(r),e=W(n.split("/"));return R(t.concat(e).join("/"),r)},addQueryString:function(n,r){var t=J(n);return L(t,r)},addQueryEntry:V,addQueryEntries:L,addQueryParams:Q,replaceFragment:function(n,r){return e(e({},r),{fragment:n})},queryAsArray:H,queryAsMap:function(n){return H(n).reduce((function(n,t){var u,i=r(t,2),o=i[0],c=i[1];return e(e({},n),((u={})[o]=c,u))}),{})},toString:function(n){var r="";return null!=n.scheme&&n.scheme.length>0&&(r="".concat(n.scheme,":")),null!=n.authority&&n.authority.length>0&&(r+="//".concat(n.authority)),r+=n.path,null!=n.query&&n.query.length>0&&(r+="?".concat(n.query)),null!=n.fragment&&n.fragment.length>0&&(r+="#".concat(n.fragment)),r}}),X=new Uint8Array(16);function Y(){if(!B&&!(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(X)}var Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nn(n){return"string"==typeof n&&Z.test(n)}for(var rn=[],tn=0;tn<256;++tn)rn.push((tn+256).toString(16).substr(1));function en(n,r,t){var e=(n=n||{}).random||(n.rng||Y)();if(e[6]=15&e[6]|64,e[8]=63&e[8]|128,r){t=t||0;for(var u=0;u<16;++u)r[t+u]=e[u];return r}return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(rn[n[r+0]]+rn[n[r+1]]+rn[n[r+2]]+rn[n[r+3]]+"-"+rn[n[r+4]]+rn[n[r+5]]+"-"+rn[n[r+6]]+rn[n[r+7]]+"-"+rn[n[r+8]]+rn[n[r+9]]+"-"+rn[n[r+10]]+rn[n[r+11]]+rn[n[r+12]]+rn[n[r+13]]+rn[n[r+14]]+rn[n[r+15]]).toLowerCase();if(!nn(t))throw TypeError("Stringified UUID is invalid");return t}(e)}var un=Object.freeze({__proto__:null,create:function(){return en()},fromMsbLsb:function(n,r){function t(n,r){var t=BigInt(1)<<r*BigInt(4);return(t|n&t-BigInt(1)).toString(16).substring(1)}var e="string"==typeof n?BigInt(n):n,u="string"==typeof r?BigInt(r):r,i=t(e>>BigInt(32),BigInt(8)),o=t(e>>BigInt(16),BigInt(4)),c=t(e,BigInt(4)),f=t(u>>BigInt(48),BigInt(4)),a=t(u,BigInt(12));return"".concat(i,"-").concat(o,"-").concat(c,"-").concat(f,"-").concat(a)},toMsbLsb:function(n){var t=r(n.split("-"),5),e=t[0],u=t[1],i=t[2],o=t[3],c=t[4];if(null==e||null==u||null==i||null==o||null==c)throw new Error("Invalid UUID string ".concat(n));var f=BigInt.asIntN(64,BigInt("0x".concat(e+u+i))),a=BigInt.asIntN(64,BigInt("0x".concat(o+c)));return{msb:f.toString(),lsb:a.toString()}}}),on=function(){function n(){this.listeners=[]}return n.prototype.on=function(n,r){var t,e=this;void 0===r&&(r={}),this.listeners.push(n);var u=new AbortController;return u.signal.addEventListener("abort",(function(){return e.off(n)})),null===(t=r.abort)||void 0===t||t.addEventListener("abort",(function(){return u.abort()})),{dispose:function(){return u.abort()}}},n.prototype.once=function(n){var r=this;return void 0===n&&(n={}),new Promise((function(t){r.on((function(n){return t(n)}),n)}))},n.prototype.onceWhen=function(n,r){var t;return void 0===r&&(r={}),u(this,void 0,void 0,(function(){var u,o=this;return i(this,(function(){return u=new AbortController,null===(t=r.abort)||void 0===t||t.addEventListener("abort",(function(){return u.abort()})),[2,new Promise((function(t){o.when(n,(function(r){n(r)&&(u.abort(),t(r))}),e(e({},r),{abort:u.signal}))}))]}))}))},n.prototype.when=function(n,r,t){return void 0===t&&(t={}),this.on((function(t){n(t)&&r(t)}),t)},n.prototype.off=function(n){var r=this.listeners.indexOf(n);-1!==r&&this.listeners.splice(r,1)},n.prototype.emit=function(n){this.listeners.forEach((function(r){return r(n)}))},n}();export{on as E,c as a,un as b,b as c,w as m,E as o,U as r,K as u}
|
|
17
|
+
function _(n){return 1==(null!=(r=n)&&"object"==typeof r&&!1===Array.isArray(r))&&"[object Object]"===Object.prototype.toString.call(n);var r}var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},A={exports:{}};!function(n,r){var t="__lodash_hash_undefined__",e=9007199254740991,u="[object Arguments]",i="[object Array]",o="[object Boolean]",c="[object Date]",f="[object Error]",a="[object Function]",s="[object Map]",v="[object Number]",l="[object Object]",d="[object Promise]",h="[object RegExp]",b="[object Set]",p="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",j=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[u]=_[i]=_[m]=_[o]=_[g]=_[c]=_[f]=_[a]=_[s]=_[v]=_[l]=_[h]=_[b]=_[p]=_[y]=!1;var A="object"==typeof I&&I&&I.Object===Object&&I,O="object"==typeof self&&self&&self.Object===Object&&self,P=A||O||Function("return this")(),B=r&&!r.nodeType&&r,E=B&&n&&!n.nodeType&&n,M=E&&E.exports===B,S=M&&A.process,q=function(){try{return S&&S.binding&&S.binding("util")}catch(n){}}(),C=q&&q.isTypedArray;function F(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(r(n[t],t,n))return!0;return!1}function x(n){var r=-1,t=Array(n.size);return n.forEach((function(n,e){t[++r]=[e,n]})),t}function $(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=n})),t}var k,T,U,D=Array.prototype,R=Object.prototype,N=P["__core-js_shared__"],V=Function.prototype.toString,L=R.hasOwnProperty,Q=(k=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",H=R.toString,J=RegExp("^"+V.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=M?P.Buffer:void 0,G=P.Symbol,z=P.Uint8Array,K=R.propertyIsEnumerable,X=D.splice,Y=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,nn=W?W.isBuffer:void 0,rn=(T=Object.keys,U=Object,function(n){return T(U(n))}),tn=En(P,"DataView"),en=En(P,"Map"),un=En(P,"Promise"),on=En(P,"Set"),cn=En(P,"WeakMap"),fn=En(Object,"create"),an=Cn(tn),sn=Cn(en),vn=Cn(un),ln=Cn(on),dn=Cn(cn),hn=G?G.prototype:void 0,bn=hn?hn.valueOf:void 0;function pn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function yn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function mn(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function gn(n){var r=-1,t=null==n?0:n.length;for(this.__data__=new mn;++r<t;)this.add(n[r])}function jn(n){var r=this.__data__=new yn(n);this.size=r.size}function wn(n,r){for(var t=n.length;t--;)if(Fn(n[t][0],r))return t;return-1}function _n(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Y&&Y in Object(n)?function(n){var r=L.call(n,Y),t=n[Y];try{n[Y]=void 0;var e=!0}catch(n){}var u=H.call(n);return e&&(r?n[Y]=t:delete n[Y]),u}(n):function(n){return H.call(n)}(n)}function In(n){return Rn(n)&&_n(n)==u}function An(n,r,t,e,a){return n===r||(null==n||null==r||!Rn(n)&&!Rn(r)?n!=n&&r!=r:function(n,r,t,e,a,d){var y=$n(n),j=$n(r),w=y?i:Sn(n),_=j?i:Sn(r),I=(w=w==u?l:w)==l,A=(_=_==u?l:_)==l,O=w==_;if(O&&kn(n)){if(!kn(r))return!1;y=!0,I=!1}if(O&&!I)return d||(d=new jn),y||Nn(n)?On(n,r,t,e,a,d):function(n,r,t,e,u,i,a){switch(t){case g:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case m:return!(n.byteLength!=r.byteLength||!i(new z(n),new z(r)));case o:case c:case v:return Fn(+n,+r);case f:return n.name==r.name&&n.message==r.message;case h:case p:return n==r+"";case s:var l=x;case b:if(l||(l=$),n.size!=r.size&&!(1&e))return!1;var d=a.get(n);if(d)return d==r;e|=2,a.set(n,r);var y=On(l(n),l(r),e,u,i,a);return a.delete(n),y;case"[object Symbol]":if(bn)return bn.call(n)==bn.call(r)}return!1}(n,r,w,t,e,a,d);if(!(1&t)){var P=I&&L.call(n,"__wrapped__"),B=A&&L.call(r,"__wrapped__");if(P||B){var E=P?n.value():n,M=B?r.value():r;return d||(d=new jn),a(E,M,t,e,d)}}return!!O&&(d||(d=new jn),function(n,r,t,e,u,i){var o=1&t,c=Pn(n),f=c.length;if(f!=Pn(r).length&&!o)return!1;for(var a=f;a--;){var s=c[a];if(!(o?s in r:L.call(r,s)))return!1}var v=i.get(n);if(v&&i.get(r))return v==r;var l=!0;i.set(n,r),i.set(r,n);for(var d=o;++a<f;){var h=n[s=c[a]],b=r[s];if(e)var p=o?e(b,h,s,r,n,i):e(h,b,s,n,r,i);if(!(void 0===p?h===b||u(h,b,t,e,i):p)){l=!1;break}d||(d="constructor"==s)}if(l&&!d){var y=n.constructor,m=r.constructor;y==m||!("constructor"in n)||!("constructor"in r)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(l=!1)}return i.delete(n),i.delete(r),l}(n,r,t,e,a,d))}(n,r,t,e,An,a))}function On(n,r,t,e,u,i){var o=1&t,c=n.length,f=r.length;if(c!=f&&!(o&&f>c))return!1;var a=i.get(n);if(a&&i.get(r))return a==r;var s=-1,v=!0,l=2&t?new gn:void 0;for(i.set(n,r),i.set(r,n);++s<c;){var d=n[s],h=r[s];if(e)var b=o?e(h,d,s,r,n,i):e(d,h,s,n,r,i);if(void 0!==b){if(b)continue;v=!1;break}if(l){if(!F(r,(function(n,r){if(!l.has(r)&&(d===n||u(d,n,t,e,i)))return l.push(r)}))){v=!1;break}}else if(d!==h&&!u(d,h,t,e,i)){v=!1;break}}return i.delete(n),i.delete(r),v}function Pn(n){return function(n,r,t){var e=r(n);return $n(n)?e:function(n,r){for(var t=-1,e=r.length,u=n.length;++t<e;)n[u+t]=r[t];return n}(e,t(n))}(n,Vn,Mn)}function Bn(n,r){var t,e,u=n.__data__;return("string"==(e=typeof(t=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?u["string"==typeof r?"string":"hash"]:u.map}function En(n,r){var t=function(n,r){return null==n?void 0:n[r]}(n,r);return function(n){return!(!Dn(n)||function(n){return!!Q&&Q in n}(n))&&(Tn(n)?J:j).test(Cn(n))}(t)?t:void 0}pn.prototype.clear=function(){this.__data__=fn?fn(null):{},this.size=0},pn.prototype.delete=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r},pn.prototype.get=function(n){var r=this.__data__;if(fn){var e=r[n];return e===t?void 0:e}return L.call(r,n)?r[n]:void 0},pn.prototype.has=function(n){var r=this.__data__;return fn?void 0!==r[n]:L.call(r,n)},pn.prototype.set=function(n,r){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=fn&&void 0===r?t:r,this},yn.prototype.clear=function(){this.__data__=[],this.size=0},yn.prototype.delete=function(n){var r=this.__data__,t=wn(r,n);return!(t<0||(t==r.length-1?r.pop():X.call(r,t,1),--this.size,0))},yn.prototype.get=function(n){var r=this.__data__,t=wn(r,n);return t<0?void 0:r[t][1]},yn.prototype.has=function(n){return wn(this.__data__,n)>-1},yn.prototype.set=function(n,r){var t=this.__data__,e=wn(t,n);return e<0?(++this.size,t.push([n,r])):t[e][1]=r,this},mn.prototype.clear=function(){this.size=0,this.__data__={hash:new pn,map:new(en||yn),string:new pn}},mn.prototype.delete=function(n){var r=Bn(this,n).delete(n);return this.size-=r?1:0,r},mn.prototype.get=function(n){return Bn(this,n).get(n)},mn.prototype.has=function(n){return Bn(this,n).has(n)},mn.prototype.set=function(n,r){var t=Bn(this,n),e=t.size;return t.set(n,r),this.size+=t.size==e?0:1,this},gn.prototype.add=gn.prototype.push=function(n){return this.__data__.set(n,t),this},gn.prototype.has=function(n){return this.__data__.has(n)},jn.prototype.clear=function(){this.__data__=new yn,this.size=0},jn.prototype.delete=function(n){var r=this.__data__,t=r.delete(n);return this.size=r.size,t},jn.prototype.get=function(n){return this.__data__.get(n)},jn.prototype.has=function(n){return this.__data__.has(n)},jn.prototype.set=function(n,r){var t=this.__data__;if(t instanceof yn){var e=t.__data__;if(!en||e.length<199)return e.push([n,r]),this.size=++t.size,this;t=this.__data__=new mn(e)}return t.set(n,r),this.size=t.size,this};var Mn=Z?function(n){return null==n?[]:(n=Object(n),function(r){for(var t=-1,e=null==r?0:r.length,u=0,i=[];++t<e;){var o=r[t];K.call(n,o)&&(i[u++]=o)}return i}(Z(n)))}:function(){return[]},Sn=_n;function qn(n,r){return!!(r=null==r?e:r)&&("number"==typeof n||w.test(n))&&n>-1&&n%1==0&&n<r}function Cn(n){if(null!=n){try{return V.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Fn(n,r){return n===r||n!=n&&r!=r}(tn&&Sn(new tn(new ArrayBuffer(1)))!=g||en&&Sn(new en)!=s||un&&Sn(un.resolve())!=d||on&&Sn(new on)!=b||cn&&Sn(new cn)!=y)&&(Sn=function(n){var r=_n(n),t=r==l?n.constructor:void 0,e=t?Cn(t):"";if(e)switch(e){case an:return g;case sn:return s;case vn:return d;case ln:return b;case dn:return y}return r});var xn=In(function(){return arguments}())?In:function(n){return Rn(n)&&L.call(n,"callee")&&!K.call(n,"callee")},$n=Array.isArray,kn=nn||function(){return!1};function Tn(n){if(!Dn(n))return!1;var r=_n(n);return r==a||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Un(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=e}function Dn(n){var r=typeof n;return null!=n&&("object"==r||"function"==r)}function Rn(n){return null!=n&&"object"==typeof n}var Nn=C?function(n){return function(r){return n(r)}}(C):function(n){return Rn(n)&&Un(n.length)&&!!_[_n(n)]};function Vn(n){return null!=(r=n)&&Un(r.length)&&!Tn(r)?function(n,r){var t=$n(n),e=!t&&xn(n),u=!t&&!e&&kn(n),i=!t&&!e&&!u&&Nn(n),o=t||e||u||i,c=o?function(n,r){for(var t=-1,e=Array(n);++t<n;)e[t]=r(t);return e}(n.length,String):[],f=c.length;for(var a in n)!r&&!L.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||qn(a,f))||c.push(a);return c}(n):function(n){if((r=n)!==("function"==typeof(t=r&&r.constructor)&&t.prototype||R))return rn(n);var r,t,e=[];for(var u in Object(n))L.call(n,u)&&"constructor"!=u&&e.push(u);return e}(n);var r}n.exports=function(n,r){return An(n,r)}}(A,A.exports);var O=A.exports;function P(n){return!1!==_(r=n)&&"function"==typeof(t=r.constructor)&&!1!==_(e=t.prototype)&&!1!==e.hasOwnProperty("isPrototypeOf");var r,t,e}var B,E=Object.freeze({__proto__:null,defaults:function n(){for(var t=[],u=0;u<arguments.length;u++)t[u]=arguments[u];var i=r(t),o=i[0],c=i.slice(1),f=e({},o);if(0===c.length)return f;if(1===c.length){var a=c[0];for(var s in a)null==f[s]?f[s]=a[s]:P(f[s])&&(f[s]=n(f[s],a[s]));return f}return c.reduce((function(r,t){return n(r,t)}),o)},isPlainObject:P,isEqual:function(n,r){return O(n,r)},toPairs:function(n){return null!=n?Object.keys(n).map((function(r){return[r,n[r]]})):[]},fromPairs:function(n){return Array.isArray(n)?n.reduce((function(n,r){var t;return null!=r?e(e({},n),((t={})[r[0]]=r[1],t)):n}),{}):{}}}),M=function(n,r){return{start:n,end:r}},S=function(n,r){return M(r.start+n,r.end+n)},q=function(n,r){return"number"==typeof n?r.start<=n&&n<=r.end:q(n.start,r)&&q(n.end,r)},C=function(n,r){return n.start<=r.end&&n.end>=r.start||r.start<=n.end&&r.end>=n.start},F=function(n,r){return n.start===r.start},x=function(n,r){return n.start>r.start},$=function(n,r){return n.start<r.start},k=function(n){return n.end-n.start+1},T=Object.freeze({__proto__:null,create:M,at:function(n){return{start:n,end:n}},withLength:function(n,r){return{start:n,end:n+r-1}},add:S,constrain:function(n,r){return q(n,r)?n:k(n)>k(r)?r:n.start<r.start?M(r.start,r.start+k(n)-1):M(r.end-k(n)+1,r.end)},contains:q,intersection:function(n,r){if(C(n,r))return M(Math.max(n.start,r.start),Math.min(n.end,r.end))},intersects:C,isAt:F,isAfter:x,isAtOrAfter:function(n,r){return F(n,r)||x(n,r)},isBefore:$,isAtOrBefore:function(n,r){return F(n,r)||$(n,r)},length:k,subtract:function(n,r){return S(-1*n,r)},truncate:function(n,r){if(C(r,n))return M(Math.max(n.start,r.start),Math.min(n.end,r.end))}}),U=function(n,r){return n<r?-1:n>r?1:0},D=function(n){var r=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(n);return null!=r?{scheme:r[2],authority:r[4],path:r[5],query:r[7],fragment:r[9]}:{}},R=function(n,r){var t="/"===n[0]?n:"/".concat(n);return e(e({},r),{path:t})},N=function(n){return null!=n.path?W(n.path.split("/")):[]},V=function(n,u){if(null!=n[1]){var i=t(t([],r(H(u)),!1),[n],!1);return e(e({},u),{query:i.map((function(n){return n.map(encodeURIComponent).join("=")})).join("&")})}return u},L=function(n,r){return n.reduce((function(n,r){return V(r,n)}),r)},Q=function(n,r){return G(n).reduce((function(n,r){return V(r,n)}),r)},H=function(n){return null!=n.query?J(n.query):[]},J=function(n){return n.split("&").map((function(n){return n.split("=").map((function(n){return decodeURIComponent(n)}))}))},W=function(n){return n.filter((function(n){return n.length>0}))},G=function(n){var r=[];for(var t in n)r.push([t,n[t]]);return r},z=function(n){return n.concat().sort((t=U,function(n,e){var u=r(n,1)[0],i=r(e,1);return t(u,i[0])}));var t},K=Object.freeze({__proto__:null,parse:D,parseAndAddParams:function(n,r){var t=D(n);return r?Q(r,t):t},isEqual:function(n,r){var t=JSON.stringify(z(H(n))),e=JSON.stringify(z(H(r)));return n.scheme===r.scheme&&n.authority===r.authority&&n.path===r.path&&n.fragment===r.fragment&&t===e},replacePath:R,pathAsArray:N,appendPath:function(n,r){var t=N(r),e=W(n.split("/"));return R(t.concat(e).join("/"),r)},addQueryString:function(n,r){var t=J(n);return L(t,r)},addQueryEntry:V,addQueryEntries:L,addQueryParams:Q,replaceFragment:function(n,r){return e(e({},r),{fragment:n})},queryAsArray:H,queryAsMap:function(n){return H(n).reduce((function(n,t){var u,i=r(t,2),o=i[0],c=i[1];return e(e({},n),((u={})[o]=c,u))}),{})},toString:function(n){var r="";return null!=n.scheme&&n.scheme.length>0&&(r="".concat(n.scheme,":")),null!=n.authority&&n.authority.length>0&&(r+="//".concat(n.authority)),r+=n.path,null!=n.query&&n.query.length>0&&(r+="?".concat(n.query)),null!=n.fragment&&n.fragment.length>0&&(r+="#".concat(n.fragment)),r}}),X=new Uint8Array(16);function Y(){if(!B&&!(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(X)}var Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nn(n){return"string"==typeof n&&Z.test(n)}for(var rn=[],tn=0;tn<256;++tn)rn.push((tn+256).toString(16).substr(1));function en(n,r,t){var e=(n=n||{}).random||(n.rng||Y)();if(e[6]=15&e[6]|64,e[8]=63&e[8]|128,r){t=t||0;for(var u=0;u<16;++u)r[t+u]=e[u];return r}return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(rn[n[r+0]]+rn[n[r+1]]+rn[n[r+2]]+rn[n[r+3]]+"-"+rn[n[r+4]]+rn[n[r+5]]+"-"+rn[n[r+6]]+rn[n[r+7]]+"-"+rn[n[r+8]]+rn[n[r+9]]+"-"+rn[n[r+10]]+rn[n[r+11]]+rn[n[r+12]]+rn[n[r+13]]+rn[n[r+14]]+rn[n[r+15]]).toLowerCase();if(!nn(t))throw TypeError("Stringified UUID is invalid");return t}(e)}var un=Object.freeze({__proto__:null,create:function(){return en()},fromMsbLsb:function(n,r){function t(n,r){var t=BigInt(1)<<r*BigInt(4);return(t|n&t-BigInt(1)).toString(16).substring(1)}var e="string"==typeof n?BigInt(n):n,u="string"==typeof r?BigInt(r):r,i=t(e>>BigInt(32),BigInt(8)),o=t(e>>BigInt(16),BigInt(4)),c=t(e,BigInt(4)),f=t(u>>BigInt(48),BigInt(4)),a=t(u,BigInt(12));return"".concat(i,"-").concat(o,"-").concat(c,"-").concat(f,"-").concat(a)},toMsbLsb:function(n){var t=r(n.split("-"),5),e=t[0],u=t[1],i=t[2],o=t[3],c=t[4];if(null==e||null==u||null==i||null==o||null==c)throw new Error("Invalid UUID string ".concat(n));var f=BigInt.asIntN(64,BigInt("0x".concat(e+u+i))),a=BigInt.asIntN(64,BigInt("0x".concat(o+c)));return{msb:f.toString(),lsb:a.toString()}}}),on=function(){function n(){this.listeners=[]}return n.prototype.on=function(n,r){var t,e=this;void 0===r&&(r={}),this.listeners.push(n);var u=new AbortController;return u.signal.addEventListener("abort",(function(){return e.off(n)})),null===(t=r.abort)||void 0===t||t.addEventListener("abort",(function(){return u.abort()})),{dispose:function(){return u.abort()}}},n.prototype.once=function(n){var r=this;return void 0===n&&(n={}),new Promise((function(t){r.on((function(n){return t(n)}),n)}))},n.prototype.onceWhen=function(n,r){var t;return void 0===r&&(r={}),u(this,void 0,void 0,(function(){var u,o=this;return i(this,(function(){return u=new AbortController,null===(t=r.abort)||void 0===t||t.addEventListener("abort",(function(){return u.abort()})),[2,new Promise((function(t){o.when(n,(function(r){n(r)&&(u.abort(),t(r))}),e(e({},r),{abort:u.signal}))}))]}))}))},n.prototype.when=function(n,r,t){return void 0===t&&(t={}),this.on((function(t){n(t)&&r(t)}),t)},n.prototype.off=function(n){var r=this.listeners.indexOf(n);-1!==r&&this.listeners.splice(r,1)},n.prototype.emit=function(n){this.listeners.forEach((function(r){return r(n)}))},n}();export{on as E,c as a,un as b,b as c,w as m,E as o,T as r,K as u}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{d as e,N as t,w as r,p as a,b as
|
|
4
|
+
import{d as e,N as t,w as r,p as a,b as o}from"./p-d6fce4c1.js";import{g as i}from"./p-98e6a50e.js";import"./p-dfe5a97d.js";(()=>{const o=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),i={};return i.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,r.location.href)).href,((a,o)=>{const i=`__sc_import_${t.replace(/\s|-/g,"_")}`;try{r[i]=new Function("w",`return import(w);//${Math.random()}`)}catch(t){const n=new Map;r[i]=t=>{const s=new URL(t,a).href;let l=n.get(s);if(!l){const t=e.createElement("script");t.type="module",t.crossOrigin=o.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${i}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{t.onload=()=>{e(r[i].m),t.remove()}})),n.set(s,l),e.head.appendChild(t)}return l}}})(i.resourcesUrl,o),r.customElements?a(i):__sc_import_viewer("./p-0fdad1a5.js").then((()=>i))})().then((e=>(i(),o([["p-27f715f8",[[1,"vertex-viewer-pin-tool",{pinController:[1040],pinModel:[16],viewer:[16],tool:[1025],mode:[1025],primaryColor:[1025,"primary-color"],accentColor:[1025,"accent-color"],pins:[32],selectedPinId:[32],elementBounds:[32],projectionViewMatrix:[32]}]]],["p-cd9ccb9e",[[1,"vertex-scene-tree",{overScanCount:[2,"over-scan-count"],viewerSelector:[1,"viewer-selector"],viewer:[1040],rowData:[16],config:[1],configEnv:[1,"config-env"],controller:[1040],metadataSearchExactMatch:[1028,"metadata-search-exact-match"],metadataSearchKeys:[1040],metadataKeys:[16],rows:[32],totalRows:[32],showLoader:[32],stateMap:[32],errorDetails:[32],attemptingRetry:[32],invalidateRows:[64],scrollToIndex:[64],scrollToItem:[64],expandAll:[64],collapseAll:[64],expandItem:[64],collapseItem:[64],toggleExpandItem:[64],toggleItemVisibility:[64],hideItem:[64],showItem:[64],selectItem:[64],deselectItem:[64],getRowAtIndex:[64],getRowForEvent:[64],getRowAtClientY:[64],filterItems:[64],selectFilteredItems:[64],fetchMetadataKeys:[64]},[[0,"search","handleSearch"]]]]],["p-533b1c63",[[1,"vertex-viewer-default-toolbar",{viewer:[16],placement:[1],direction:[1],animationsDisabled:[4,"animations-disabled"],animationMs:[2,"animation-ms"]}]]],["p-4f25e367",[[1,"vertex-viewer-markup",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],selectedMarkupId:[1025,"selected-markup-id"],selectNew:[4,"select-new"],toSelectMarkupId:[32],pointerDownPosition:[32],addMarkup:[64],removeMarkup:[64],getMarkupElements:[64],getMarkupElement:[64]},[[0,"markupEnd","handleMarkupEnd"],[1,"pointerdown","handleMarkupPointerDown"]]]]],["p-3aae4bf1",[[1,"vertex-viewer-markup-tool",{arrowTemplateId:[1,"arrow-template-id"],circleTemplateId:[1,"circle-template-id"],freeformTemplateId:[1,"freeform-template-id"],tool:[1],disabled:[4],viewer:[16],stateMap:[32],reset:[64]}]]],["p-bc1160cf",[[1,"vertex-viewer-view-cube",{xPositiveLabel:[1,"x-positive-label"],xNegativeLabel:[1,"x-negative-label"],yPositiveLabel:[1,"y-positive-label"],yNegativeLabel:[1,"y-negative-label"],zPositiveLabel:[1,"z-positive-label"],zNegativeLabel:[1,"z-negative-label"],standardViewsOff:[4,"standard-views-off"],animationDuration:[2,"animation-duration"],triadOff:[4,"triad-off"],worldOrientation:[1040],camera:[1040],viewer:[16],boxLength:[32],triadPosition:[32]}]]],["p-3829dd99",[[1,"vertex-viewer-measurement-distance",{start:[1040],startJson:[1,"start-json"],end:[1040],endJson:[1,"end-json"],distance:[1026],showAxisReferenceLines:[4,"show-axis-reference-lines"],snapDistance:[2,"snap-distance"],units:[1],fractionalDigits:[2,"fractional-digits"],labelFormatter:[16],anchorLabelOffset:[2,"anchor-label-offset"],lineCapLength:[2,"line-cap-length"],mode:[513],interactingAnchor:[1537,"interacting-anchor"],invalid:[1540],camera:[16],hitProvider:[16],indicatorPt:[1040],viewer:[16],measurementModel:[16],viewport:[32],elementBounds:[32],interactionCount:[32],internalCamera:[32],invalidateStateCounter:[32],stateMap:[32],measurementUnits:[32],computeElementMetrics:[64]}]]],["p-298b63c2",[[1,"vertex-viewer-measurement-precise",{measurementModel:[16],measurementOverlays:[16],measurementController:[1040],measurableEntityTypes:[16],viewer:[16],configEnv:[1,"config-env"],config:[1]}]]],["p-305a8be6",[[1,"vertex-viewer-box-query-tool",{viewer:[16],controller:[1040],model:[1040],operationType:[1,"operation-type"],mode:[1],details:[32]}]]],["p-8afcbd99",[[1,"vertex-scene-tree-table-cell",{node:[16],tree:[16],value:[1],placeholder:[1],hovered:[1028],isScrolling:[4,"is-scrolling"],expandToggle:[4,"expand-toggle"],visibilityToggle:[4,"visibility-toggle"],selectionHandler:[16],visibilityHandler:[16],expansionHandler:[16],hoverController:[16]}]]],["p-029fba92",[[1,"vertex-scene-tree-table-column",{initialWidth:[2,"initial-width"],minWidth:[2,"min-width"],maxWidth:[2,"max-width"]}]]],["p-b3540dce",[[1,"vertex-scene-tree-table-header"]]],["p-6406a70a",[[1,"vertex-scene-tree-table-resize-divider",{dragging:[32]}]]],["p-9cb99ea8",[[1,"vertex-scene-tree-toolbar-group"]]],["p-6bf0594b",[[1,"vertex-viewer",{src:[1],clientId:[1,"client-id"],deviceId:[1025,"device-id"],config:[1],configEnv:[1,"config-env"],resolvedConfig:[1040],cameraControls:[4,"camera-controls"],cameraType:[1537,"camera-type"],keyboardControls:[4,"keyboard-controls"],rotateAroundTapPoint:[4,"rotate-around-tap-point"],token:[1025],depthBuffers:[1,"depth-buffers"],experimentalGhostingOpacity:[2,"experimental-ghosting-opacity"],noDefaultLights:[4,"no-default-lights"],experimentalRenderingOptions:[1,"experimental-rendering-options"],featureLines:[16],featureHighlighting:[16],featureMaps:[1,"feature-maps"],selectionMaterial:[1,"selection-material"],resizeDebounce:[2,"resize-debounce"],frame:[1040],stream:[1040],stencilBuffer:[1040],viewport:[1040],dimensions:[32],hostDimensions:[32],errorMessage:[32],cursor:[32],stateMap:[32],dispatchFrameDrawn:[64],registerInteractionHandler:[64],registerTapKeyInteraction:[64],getInteractionTarget_DEPRECATED:[64],addCursor:[64],getInteractionHandlers:[64],getKeyInteractions:[64],getBaseInteractionHandler:[64],getJwt:[64],load:[64],unload:[64],scene:[64],isSceneReady:[64]},[[0,"tap","handleTapEvent"]]]]],["p-507b5aeb",[[1,"vertex-viewer-measurement-details",{measurementModel:[16],measurementOverlays:[16],measurementOutcome:[1040],distanceUnits:[1,"distance-units"],angleUnits:[1,"angle-units"],fractionalDigits:[2,"fractional-digits"],distanceFormatter:[16],angleFormatter:[16],areaFormatter:[16],resultTypes:[16],overlay:[32],distanceMeasurementUnits:[32],angleMeasurementUnits:[32],areaMeasurementUnits:[32]}]]],["p-2ace066b",[[1,"vertex-viewer-transform-widget",{viewer:[16],position:[1040],controller:[1040],hovered:[1040]}]]],["p-2fd123c8",[[1,"vertex-viewer-icon",{name:[1],size:[1]}]]],["p-72c59115",[[0,"vertex-viewer-pin-group",{pin:[16],matrix:[1040],projectionViewMatrix:[16],elementBounds:[1040],pinModel:[16],pinController:[16],selected:[4],invalidateStateCounter:[32]}]]],["p-bd5a302c",[[1,"vertex-viewer-dom-group",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040]}]]],["p-952a217d",[[1,"vertex-viewer-spinner",{size:[1]}]]],["p-569ed94a",[[1,"vertex-scene-tree-search",{debounce:[2],disabled:[4],placeholder:[1],controller:[16],value:[1025],focused:[32],isSearching:[32],setFocus:[64]}],[1,"vertex-scene-tree-table-layout",{tree:[16],controller:[16],rows:[16],totalRows:[2,"total-rows"],rowHeight:[1026,"row-height"],overScanCount:[2,"over-scan-count"],rowData:[16],layoutOffset:[1026,"layout-offset"],scrollOffset:[1026,"scroll-offset"],layoutHeight:[1026,"layout-height"],layoutWidth:[1026,"layout-width"],viewportStartIndex:[1026,"viewport-start-index"],viewportEndIndex:[1026,"viewport-end-index"],columnGridLayout:[32],columnGridFixedLayout:[32],isComputingCellHeight:[32],lastDividerPointerPosition:[32],resizingColumnIndex:[32],isScrolling:[32],scrollTimer:[32],stateMap:[32],scrollToPosition:[64]}],[1,"vertex-scene-tree-toolbar"]]],["p-8ac7290a",[[1,"vertex-viewer-layer",{stretchOff:[516,"stretch-off"]}]]],["p-191156ad",[[1,"vertex-viewer-toolbar",{placement:[1],direction:[1]}],[1,"vertex-viewer-button"],[1,"vertex-viewer-toolbar-group",{direction:[1]}]]],["p-d6d5d5de",[[0,"vertex-viewer-pin-label",{pin:[16],elementBounds:[16],value:[1025],pinController:[16],focused:[32],computedScreenPosition:[32],textareaRows:[32],contentElBounds:[32],setFocus:[64]}],[0,"vertex-viewer-pin-label-line",{pinPoint:[16],labelPoint:[16],pin:[16]}]]],["p-0c583cad",[[1,"vertex-viewer-measurement-overlays",{measurementOverlays:[16],camera:[1040],viewer:[16],overlays:[32]}],[1,"vertex-viewer-measurement-line",{start:[16],end:[16],capLength:[2,"cap-length"],pointerEvents:[1,"pointer-events"]}]]],["p-e929dd63",[[1,"vertex-viewer-dom-renderer",{drawMode:[1,"draw-mode"],viewer:[16],camera:[1040],depthBuffer:[1040],viewport:[32],invalidateFrameCounter:[32]},[[0,"propertyChange","handlePropertyChange"]]],[1,"vertex-viewer-dom-element",{position:[1040],positionJson:[1,"position"],rotation:[1040],rotationJson:[1,"rotation"],quaternion:[1040],quaternionJson:[1,"quaternion"],scale:[1040],scaleJson:[1,"scale"],matrix:[1040],occlusionOff:[4,"occlusion-off"],occluded:[516],billboardOff:[4,"billboard-off"],interactionsOff:[516,"interactions-off"]}]]],["p-1998284a",[[1,"vertex-viewer-markup-arrow",{start:[1040],startJson:[1,"start"],end:[1040],endJson:[1,"end"],mode:[513],viewer:[16],elementBounds:[32],dispose:[64]}],[1,"vertex-viewer-markup-circle",{bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],dispose:[64]}],[1,"vertex-viewer-markup-freeform",{points:[1040],pointsJson:[1,"points"],bounds:[1040],boundsJson:[1,"bounds"],mode:[513],viewer:[16],elementBounds:[32],screenPoints:[32],dispose:[64]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/viewer",
|
|
3
|
-
"version": "0.15.2
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "The Vertex SDK for viewing models.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
50
50
|
"@stencil/core": "^2.16.1",
|
|
51
51
|
"@types/classnames": "^2.3.1",
|
|
52
|
-
"@vertexvis/frame-streaming-protos": "^0.8.
|
|
53
|
-
"@vertexvis/geometry": "0.15.2
|
|
54
|
-
"@vertexvis/html-templates": "0.15.2
|
|
52
|
+
"@vertexvis/frame-streaming-protos": "^0.8.8",
|
|
53
|
+
"@vertexvis/geometry": "0.15.2",
|
|
54
|
+
"@vertexvis/html-templates": "0.15.2",
|
|
55
55
|
"@vertexvis/scene-tree-protos": "^0.1.15",
|
|
56
56
|
"@vertexvis/scene-view-protos": "^0.1.8",
|
|
57
|
-
"@vertexvis/stream-api": "0.15.2
|
|
58
|
-
"@vertexvis/utils": "0.15.2
|
|
57
|
+
"@vertexvis/stream-api": "0.15.2",
|
|
58
|
+
"@vertexvis/utils": "0.15.2",
|
|
59
59
|
"@vertexvis/web-workers": "^0.1.0",
|
|
60
60
|
"camel-case": "^4.1.2",
|
|
61
61
|
"classnames": "^2.3.1",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"@vertexvis/rollup-plugin-vertexvis-copyright": "^0.4.1",
|
|
83
83
|
"@vertexvis/rollup-plugin-web-workers": "^0.1.0",
|
|
84
84
|
"@vertexvis/typescript-config-vertexvis": "1.1.0",
|
|
85
|
-
"@vertexwebsdk/build": "0.15.2
|
|
85
|
+
"@vertexwebsdk/build": "0.15.2",
|
|
86
86
|
"abortcontroller-polyfill": "^1.7.3",
|
|
87
87
|
"chance": "^1.1.8",
|
|
88
88
|
"eslint": "^8.17.0",
|
|
89
89
|
"eslint-plugin-react": "^7.30.0",
|
|
90
90
|
"jest": "^27.5.1",
|
|
91
|
-
"jsonwebtoken": "^
|
|
91
|
+
"jsonwebtoken": "^9.0.0",
|
|
92
92
|
"rollup": "^2.75.6",
|
|
93
93
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
94
94
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"typedoc": "^0.22.17",
|
|
98
98
|
"typescript": "^4.5.4"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "b9525512d29716405f576ab57ee4cd05afd068e3"
|
|
101
101
|
}
|
package/readme.md
CHANGED
|
@@ -27,11 +27,11 @@ file that references our published JS bundles from a CDN.
|
|
|
27
27
|
<head>
|
|
28
28
|
<link
|
|
29
29
|
rel="stylesheet"
|
|
30
|
-
href="https://unpkg.com/@vertexvis/viewer@0.15.
|
|
30
|
+
href="https://unpkg.com/@vertexvis/viewer@0.15.2/dist/viewer/viewer.css"
|
|
31
31
|
/>
|
|
32
32
|
<script
|
|
33
33
|
type="module"
|
|
34
|
-
src="https://unpkg.com/@vertexvis/viewer@0.15.
|
|
34
|
+
src="https://unpkg.com/@vertexvis/viewer@0.15.2/dist/viewer/viewer.esm.js"
|
|
35
35
|
></script>
|
|
36
36
|
</head>
|
|
37
37
|
|
|
@@ -53,7 +53,7 @@ These utilities can be imported from a CDN as shown below:
|
|
|
53
53
|
</head>
|
|
54
54
|
<body>
|
|
55
55
|
<script type="module">
|
|
56
|
-
import { ColorMaterial } from 'https://unpkg.com/@vertexvis/viewer@0.15.
|
|
56
|
+
import { ColorMaterial } from 'https://unpkg.com/@vertexvis/viewer@0.15.2/dist/esm/index.mjs';
|
|
57
57
|
|
|
58
58
|
function main() {
|
|
59
59
|
const color = ColorMaterial.fromHex('#ff0000');
|
|
@@ -90,7 +90,7 @@ dependency to your `package.json`:
|
|
|
90
90
|
```json
|
|
91
91
|
{
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@vertexvis/viewer": "^0.15.
|
|
93
|
+
"@vertexvis/viewer": "^0.15.2"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
```
|