@realsee/dnalogel 2.21.0-dev.2 → 2.21.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.js +6 -6
- package/dist/index.umd.js +4 -4
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/CruisePluginController.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PartialObjectDeep.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/base.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ru=Object.defineProperty,_u=Object.defineProperties;var Qu=Object.getOwnPropertyDescriptors;var Ba=Object.getOwnPropertySymbols;var Hu=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable;var ur=(i,t,e)=>t in i?Ru(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,G=(i,t)=>{for(var e in t||(t={}))Hu.call(t,e)&&ur(i,e,t[e]);if(Ba)for(var e of Ba(t))Gu.call(t,e)&&ur(i,e,t[e]);return i},be=(i,t)=>_u(i,Qu(t));var f=(i,t,e)=>(ur(i,typeof t!="symbol"?t+"":t,e),e);var Y=(i,t,e)=>new Promise((n,o)=>{var s=l=>{try{a(e.next(l))}catch(c){o(c)}},r=l=>{try{a(e.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,r);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const De=require("@realsee/five"),R=require("three"),No=require("three/examples/jsm/renderers/CSS3DRenderer"),eo=require("hammerjs"),_d=require("@realsee/five/line"),Qd=require("three/examples/jsm/loaders/FBXLoader"),Fu=require("earcut"),Ra=require("animejs"),Wu=require("@realsee/five/gltf-loader");function Nu(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const E=Nu(R);function Yu(){console.debug("%c %c@realsee/dnalogel %cv2.21.0-dev.2",["background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')","background-repeat: no-repeat","background-position: 0 center","padding-left: 8px"].join(";"),"","background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px")}function Xu(){const i=typeof OffscreenCanvas!="undefined",t=i&&new OffscreenCanvas(1,1).getContext("webgl")!==null;i&&!t&&Object.assign(window,{OffscreenCanvas:function(e,n){const o=document.createElement("canvas");return o.width=e,o.height=n,o}})}function Hd(){}const _a=()=>Promise.resolve(),Qa={__queue:Promise.resolve()};function Uu(i=_a){Qa.__queue=Qa.__queue.then(i).catch(_a)}function yo(i,t,e){const n=i.x,o=i.y,s=Math.floor(n/t*1e4)/1e4,r=Math.floor(o/e*1e4)/1e4;return{x:s,y:r}}function fr(i,t,e){const{x:n,y:o}=i,s=n*t,r=o*e;return{x:s,y:r}}function wo(i){if(i.length<2)return{};const t=i.slice(-2),e=t[0],n={x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2};return{control:e,end:n}}function qu(i,t,e=Hd){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const Ju=window,Ha=window.requestAnimationFrame||Ju.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Qo(i,t=0){t<=0?Ha(i):Ha(()=>Qo(i,t-1))}var Mt=Object.freeze({Linear:Object.freeze({None:function(i){return i},In:function(i){return this.None(i)},Out:function(i){return this.None(i)},InOut:function(i){return this.None(i)}}),Quadratic:Object.freeze({In:function(i){return i*i},Out:function(i){return i*(2-i)},InOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)}}),Cubic:Object.freeze({In:function(i){return i*i*i},Out:function(i){return--i*i*i+1},InOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)}}),Quartic:Object.freeze({In:function(i){return i*i*i*i},Out:function(i){return 1- --i*i*i*i},InOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)}}),Quintic:Object.freeze({In:function(i){return i*i*i*i*i},Out:function(i){return--i*i*i*i*i+1},InOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)}}),Sinusoidal:Object.freeze({In:function(i){return 1-Math.sin((1-i)*Math.PI/2)},Out:function(i){return Math.sin(i*Math.PI/2)},InOut:function(i){return .5*(1-Math.sin(Math.PI*(.5-i)))}}),Exponential:Object.freeze({In:function(i){return i===0?0:Math.pow(1024,i-1)},Out:function(i){return i===1?1:1-Math.pow(2,-10*i)},InOut:function(i){return i===0?0:i===1?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(-Math.pow(2,-10*(i-1))+2)}}),Circular:Object.freeze({In:function(i){return 1-Math.sqrt(1-i*i)},Out:function(i){return Math.sqrt(1- --i*i)},InOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)}}),Elastic:Object.freeze({In:function(i){return i===0?0:i===1?1:-Math.pow(2,10*(i-1))*Math.sin((i-1.1)*5*Math.PI)},Out:function(i){return i===0?0:i===1?1:Math.pow(2,-10*i)*Math.sin((i-.1)*5*Math.PI)+1},InOut:function(i){return i===0?0:i===1?1:(i*=2,i<1?-.5*Math.pow(2,10*(i-1))*Math.sin((i-1.1)*5*Math.PI):.5*Math.pow(2,-10*(i-1))*Math.sin((i-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(i){var t=1.70158;return i===1?1:i*i*((t+1)*i-t)},Out:function(i){var t=1.70158;return i===0?0:--i*i*((t+1)*i+t)+1},InOut:function(i){var t=2.5949095;return(i*=2)<1?.5*(i*i*((t+1)*i-t)):.5*((i-=2)*i*((t+1)*i+t)+2)}}),Bounce:Object.freeze({In:function(i){return 1-Mt.Bounce.Out(1-i)},Out:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},InOut:function(i){return i<.5?Mt.Bounce.In(i*2)*.5:Mt.Bounce.Out(i*2-1)*.5+.5}}),generatePow:function(i){return i===void 0&&(i=4),i=i<Number.EPSILON?Number.EPSILON:i,i=i>1e4?1e4:i,{In:function(t){return Math.pow(t,i)},Out:function(t){return 1-Math.pow(1-t,i)},InOut:function(t){return t<.5?Math.pow(t*2,i)/2:(1-Math.pow(2-t*2,i))/2+.5}}}}),Jn=function(){return performance.now()},Gd=function(){function i(){this._tweens={},this._tweensAddedDuringUpdate={}}return i.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},i.prototype.removeAll=function(){this._tweens={}},i.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},i.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},i.prototype.update=function(t,e){t===void 0&&(t=Jn()),e===void 0&&(e=!1);var n=Object.keys(this._tweens);if(n.length===0)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<n.length;o++){var s=this._tweens[n[o]],r=!e;s&&s.update(t,r)===!1&&!e&&delete this._tweens[n[o]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},i}(),En={Linear:function(i,t){var e=i.length-1,n=e*t,o=Math.floor(n),s=En.Utils.Linear;return t<0?s(i[0],i[1],n):t>1?s(i[e],i[e-1],e-n):s(i[o],i[o+1>e?e:o+1],n-o)},Bezier:function(i,t){for(var e=0,n=i.length-1,o=Math.pow,s=En.Utils.Bernstein,r=0;r<=n;r++)e+=o(1-t,n-r)*o(t,r)*i[r]*s(n,r);return e},CatmullRom:function(i,t){var e=i.length-1,n=e*t,o=Math.floor(n),s=En.Utils.CatmullRom;return i[0]===i[e]?(t<0&&(o=Math.floor(n=e*(1+t))),s(i[(o-1+e)%e],i[o],i[(o+1)%e],i[(o+2)%e],n-o)):t<0?i[0]-(s(i[0],i[0],i[1],i[1],-n)-i[0]):t>1?i[e]-(s(i[e],i[e],i[e-1],i[e-1],n-e)-i[e]):s(i[o?o-1:0],i[o],i[e<o+1?e:o+1],i[e<o+2?e:o+2],n-o)},Utils:{Linear:function(i,t,e){return(t-i)*e+i},Bernstein:function(i,t){var e=En.Utils.Factorial;return e(i)/e(t)/e(i-t)},Factorial:function(){var i=[1];return function(t){var e=1;if(i[t])return i[t];for(var n=t;n>1;n--)e*=n;return i[t]=e,e}}(),CatmullRom:function(i,t,e,n,o){var s=(e-i)*.5,r=(n-t)*.5,a=o*o,l=o*a;return(2*t-2*e+s+r)*l+(-3*t+3*e-2*s-r)*a+s*o+t}}},oa=function(){function i(){}return i.nextId=function(){return i._nextId++},i._nextId=0,i}(),Vr=new Gd,cs=function(){function i(t,e){e===void 0&&(e=Vr),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Mt.Linear.None,this._interpolationFunction=En.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=oa.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return i.prototype.getId=function(){return this._id},i.prototype.isPlaying=function(){return this._isPlaying},i.prototype.isPaused=function(){return this._isPaused},i.prototype.to=function(t,e){if(e===void 0&&(e=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=e,this},i.prototype.duration=function(t){return t===void 0&&(t=1e3),this._duration=t,this},i.prototype.dynamic=function(t){return t===void 0&&(t=!1),this._isDynamic=t,this},i.prototype.start=function(t,e){if(t===void 0&&(t=Jn()),e===void 0&&(e=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||e){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var s in this._valuesEnd)o[s]=this._valuesEnd[s];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,e)}return this},i.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},i.prototype._setupProperties=function(t,e,n,o,s){for(var r in n){var a=t[r],l=Array.isArray(a),c=l?"array":typeof a,d=!l&&Array.isArray(n[r]);if(!(c==="undefined"||c==="function")){if(d){var h=n[r];if(h.length===0)continue;for(var u=[a],m=0,p=h.length;m<p;m+=1){var A=this._handleRelativeValue(a,h[m]);if(isNaN(A)){d=!1,console.warn("Found invalid interpolation list. Skipping.");break}u.push(A)}d&&(n[r]=u)}if((c==="object"||l)&&a&&!d){e[r]=l?[]:{};var g=a;for(var b in g)e[r][b]=g[b];o[r]=l?[]:{};var h=n[r];if(!this._isDynamic){var y={};for(var b in h)y[b]=h[b];n[r]=h=y}this._setupProperties(g,e[r],h,o[r],s)}else(typeof e[r]=="undefined"||s)&&(e[r]=a),l||(e[r]*=1),d?o[r]=n[r].slice().reverse():o[r]=e[r]||0}}},i.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},i.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},i.prototype.pause=function(t){return t===void 0&&(t=Jn()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this),this)},i.prototype.resume=function(t){return t===void 0&&(t=Jn()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},i.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},i.prototype.group=function(t){return t===void 0&&(t=Vr),this._group=t,this},i.prototype.delay=function(t){return t===void 0&&(t=0),this._delayTime=t,this},i.prototype.repeat=function(t){return t===void 0&&(t=0),this._initialRepeat=t,this._repeat=t,this},i.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},i.prototype.yoyo=function(t){return t===void 0&&(t=!1),this._yoyo=t,this},i.prototype.easing=function(t){return t===void 0&&(t=Mt.Linear.None),this._easingFunction=t,this},i.prototype.interpolation=function(t){return t===void 0&&(t=En.Linear),this._interpolationFunction=t,this},i.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},i.prototype.onStart=function(t){return this._onStartCallback=t,this},i.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},i.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},i.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},i.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},i.prototype.onStop=function(t){return this._onStopCallback=t,this},i.prototype.update=function(t,e){if(t===void 0&&(t=Jn()),e===void 0&&(e=!0),this._isPaused)return!0;var n,o,s=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;e&&this.start(t,!0)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),o=(t-this._startTime)/this._duration,o=this._duration===0||o>1?1:o;var r=this._easingFunction(o);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,o),o===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},i.prototype._updateProperties=function(t,e,n,o){for(var s in n)if(e[s]!==void 0){var r=e[s]||0,a=n[s],l=Array.isArray(t[s]),c=Array.isArray(a),d=!l&&c;d?t[s]=this._interpolationFunction(a,o):typeof a=="object"&&a?this._updateProperties(t[s],r,a,o):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(t[s]=r+(a-r)*o))}},i.prototype._handleRelativeValue=function(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)},i.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},i}(),Zu="20.0.3",Ku=oa.nextId,_t=Vr,$u=_t.getAll.bind(_t),ef=_t.removeAll.bind(_t),tf=_t.add.bind(_t),Fd=_t.remove.bind(_t),nf=_t.update.bind(_t),Ga={Easing:Mt,Group:Gd,Interpolation:En,now:Jn,Sequence:oa,nextId:Ku,Tween:cs,VERSION:Zu,getAll:$u,removeAll:ef,add:tf,remove:Fd,update:nf};function of(i,t,e,n=Mt.Linear.None){const o=new cs(i).to(t,e).easing(n).start();function s(r){o.update(r)&&requestAnimationFrame(s)}return requestAnimationFrame(s),o}var Ut=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(Ut||{});const Wi=Symbol("$$PAINT_BRUSH_EVENT$$");function Co(i){return i[Wi]||(i[Wi]={}),i[Wi]}function sf(i){i[Wi]||delete i[Wi]}let rf=class{hasListener(t){const e=Co(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const o=Co(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){sf(this);return}const n=Co(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=Co(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}};function tn(){return((1+Math.random())*65536|0).toString(16).substring(1)}function st(){return(tn()+tn()+"-"+tn()+"-4"+tn().substr(0,3)+"-"+tn()+"-"+tn()+tn()+tn()).toLowerCase()}const af=`
|
|
1
|
+
"use strict";var Ru=Object.defineProperty,_u=Object.defineProperties;var Qu=Object.getOwnPropertyDescriptors;var Ba=Object.getOwnPropertySymbols;var Hu=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable;var ur=(i,t,e)=>t in i?Ru(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,G=(i,t)=>{for(var e in t||(t={}))Hu.call(t,e)&&ur(i,e,t[e]);if(Ba)for(var e of Ba(t))Gu.call(t,e)&&ur(i,e,t[e]);return i},be=(i,t)=>_u(i,Qu(t));var f=(i,t,e)=>(ur(i,typeof t!="symbol"?t+"":t,e),e);var Y=(i,t,e)=>new Promise((n,o)=>{var s=l=>{try{a(e.next(l))}catch(c){o(c)}},r=l=>{try{a(e.throw(l))}catch(c){o(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,r);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const De=require("@realsee/five"),R=require("three"),No=require("three/examples/jsm/renderers/CSS3DRenderer"),eo=require("hammerjs"),_d=require("@realsee/five/line"),Qd=require("three/examples/jsm/loaders/FBXLoader"),Fu=require("earcut"),Ra=require("animejs"),Wu=require("@realsee/five/gltf-loader");function Nu(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const E=Nu(R);function Yu(){console.debug("%c %c@realsee/dnalogel %cv2.21.0-dev.3",["background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')","background-repeat: no-repeat","background-position: 0 center","padding-left: 8px"].join(";"),"","background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px")}function Xu(){const i=typeof OffscreenCanvas!="undefined",t=i&&new OffscreenCanvas(1,1).getContext("webgl")!==null;i&&!t&&Object.assign(window,{OffscreenCanvas:function(e,n){const o=document.createElement("canvas");return o.width=e,o.height=n,o}})}function Hd(){}const _a=()=>Promise.resolve(),Qa={__queue:Promise.resolve()};function Uu(i=_a){Qa.__queue=Qa.__queue.then(i).catch(_a)}function yo(i,t,e){const n=i.x,o=i.y,s=Math.floor(n/t*1e4)/1e4,r=Math.floor(o/e*1e4)/1e4;return{x:s,y:r}}function fr(i,t,e){const{x:n,y:o}=i,s=n*t,r=o*e;return{x:s,y:r}}function wo(i){if(i.length<2)return{};const t=i.slice(-2),e=t[0],n={x:(t[0].x+t[1].x)/2,y:(t[0].y+t[1].y)/2};return{control:e,end:n}}function qu(i,t,e=Hd){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const Ju=window,Ha=window.requestAnimationFrame||Ju.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Qo(i,t=0){t<=0?Ha(i):Ha(()=>Qo(i,t-1))}var Mt=Object.freeze({Linear:Object.freeze({None:function(i){return i},In:function(i){return this.None(i)},Out:function(i){return this.None(i)},InOut:function(i){return this.None(i)}}),Quadratic:Object.freeze({In:function(i){return i*i},Out:function(i){return i*(2-i)},InOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)}}),Cubic:Object.freeze({In:function(i){return i*i*i},Out:function(i){return--i*i*i+1},InOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)}}),Quartic:Object.freeze({In:function(i){return i*i*i*i},Out:function(i){return 1- --i*i*i*i},InOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)}}),Quintic:Object.freeze({In:function(i){return i*i*i*i*i},Out:function(i){return--i*i*i*i*i+1},InOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)}}),Sinusoidal:Object.freeze({In:function(i){return 1-Math.sin((1-i)*Math.PI/2)},Out:function(i){return Math.sin(i*Math.PI/2)},InOut:function(i){return .5*(1-Math.sin(Math.PI*(.5-i)))}}),Exponential:Object.freeze({In:function(i){return i===0?0:Math.pow(1024,i-1)},Out:function(i){return i===1?1:1-Math.pow(2,-10*i)},InOut:function(i){return i===0?0:i===1?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(-Math.pow(2,-10*(i-1))+2)}}),Circular:Object.freeze({In:function(i){return 1-Math.sqrt(1-i*i)},Out:function(i){return Math.sqrt(1- --i*i)},InOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)}}),Elastic:Object.freeze({In:function(i){return i===0?0:i===1?1:-Math.pow(2,10*(i-1))*Math.sin((i-1.1)*5*Math.PI)},Out:function(i){return i===0?0:i===1?1:Math.pow(2,-10*i)*Math.sin((i-.1)*5*Math.PI)+1},InOut:function(i){return i===0?0:i===1?1:(i*=2,i<1?-.5*Math.pow(2,10*(i-1))*Math.sin((i-1.1)*5*Math.PI):.5*Math.pow(2,-10*(i-1))*Math.sin((i-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(i){var t=1.70158;return i===1?1:i*i*((t+1)*i-t)},Out:function(i){var t=1.70158;return i===0?0:--i*i*((t+1)*i+t)+1},InOut:function(i){var t=2.5949095;return(i*=2)<1?.5*(i*i*((t+1)*i-t)):.5*((i-=2)*i*((t+1)*i+t)+2)}}),Bounce:Object.freeze({In:function(i){return 1-Mt.Bounce.Out(1-i)},Out:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},InOut:function(i){return i<.5?Mt.Bounce.In(i*2)*.5:Mt.Bounce.Out(i*2-1)*.5+.5}}),generatePow:function(i){return i===void 0&&(i=4),i=i<Number.EPSILON?Number.EPSILON:i,i=i>1e4?1e4:i,{In:function(t){return Math.pow(t,i)},Out:function(t){return 1-Math.pow(1-t,i)},InOut:function(t){return t<.5?Math.pow(t*2,i)/2:(1-Math.pow(2-t*2,i))/2+.5}}}}),Jn=function(){return performance.now()},Gd=function(){function i(){this._tweens={},this._tweensAddedDuringUpdate={}}return i.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},i.prototype.removeAll=function(){this._tweens={}},i.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},i.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},i.prototype.update=function(t,e){t===void 0&&(t=Jn()),e===void 0&&(e=!1);var n=Object.keys(this._tweens);if(n.length===0)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<n.length;o++){var s=this._tweens[n[o]],r=!e;s&&s.update(t,r)===!1&&!e&&delete this._tweens[n[o]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},i}(),En={Linear:function(i,t){var e=i.length-1,n=e*t,o=Math.floor(n),s=En.Utils.Linear;return t<0?s(i[0],i[1],n):t>1?s(i[e],i[e-1],e-n):s(i[o],i[o+1>e?e:o+1],n-o)},Bezier:function(i,t){for(var e=0,n=i.length-1,o=Math.pow,s=En.Utils.Bernstein,r=0;r<=n;r++)e+=o(1-t,n-r)*o(t,r)*i[r]*s(n,r);return e},CatmullRom:function(i,t){var e=i.length-1,n=e*t,o=Math.floor(n),s=En.Utils.CatmullRom;return i[0]===i[e]?(t<0&&(o=Math.floor(n=e*(1+t))),s(i[(o-1+e)%e],i[o],i[(o+1)%e],i[(o+2)%e],n-o)):t<0?i[0]-(s(i[0],i[0],i[1],i[1],-n)-i[0]):t>1?i[e]-(s(i[e],i[e],i[e-1],i[e-1],n-e)-i[e]):s(i[o?o-1:0],i[o],i[e<o+1?e:o+1],i[e<o+2?e:o+2],n-o)},Utils:{Linear:function(i,t,e){return(t-i)*e+i},Bernstein:function(i,t){var e=En.Utils.Factorial;return e(i)/e(t)/e(i-t)},Factorial:function(){var i=[1];return function(t){var e=1;if(i[t])return i[t];for(var n=t;n>1;n--)e*=n;return i[t]=e,e}}(),CatmullRom:function(i,t,e,n,o){var s=(e-i)*.5,r=(n-t)*.5,a=o*o,l=o*a;return(2*t-2*e+s+r)*l+(-3*t+3*e-2*s-r)*a+s*o+t}}},oa=function(){function i(){}return i.nextId=function(){return i._nextId++},i._nextId=0,i}(),Vr=new Gd,cs=function(){function i(t,e){e===void 0&&(e=Vr),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Mt.Linear.None,this._interpolationFunction=En.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=oa.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return i.prototype.getId=function(){return this._id},i.prototype.isPlaying=function(){return this._isPlaying},i.prototype.isPaused=function(){return this._isPaused},i.prototype.to=function(t,e){if(e===void 0&&(e=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=e,this},i.prototype.duration=function(t){return t===void 0&&(t=1e3),this._duration=t,this},i.prototype.dynamic=function(t){return t===void 0&&(t=!1),this._isDynamic=t,this},i.prototype.start=function(t,e){if(t===void 0&&(t=Jn()),e===void 0&&(e=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||e){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var s in this._valuesEnd)o[s]=this._valuesEnd[s];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,e)}return this},i.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},i.prototype._setupProperties=function(t,e,n,o,s){for(var r in n){var a=t[r],l=Array.isArray(a),c=l?"array":typeof a,d=!l&&Array.isArray(n[r]);if(!(c==="undefined"||c==="function")){if(d){var h=n[r];if(h.length===0)continue;for(var u=[a],m=0,p=h.length;m<p;m+=1){var A=this._handleRelativeValue(a,h[m]);if(isNaN(A)){d=!1,console.warn("Found invalid interpolation list. Skipping.");break}u.push(A)}d&&(n[r]=u)}if((c==="object"||l)&&a&&!d){e[r]=l?[]:{};var g=a;for(var b in g)e[r][b]=g[b];o[r]=l?[]:{};var h=n[r];if(!this._isDynamic){var y={};for(var b in h)y[b]=h[b];n[r]=h=y}this._setupProperties(g,e[r],h,o[r],s)}else(typeof e[r]=="undefined"||s)&&(e[r]=a),l||(e[r]*=1),d?o[r]=n[r].slice().reverse():o[r]=e[r]||0}}},i.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},i.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},i.prototype.pause=function(t){return t===void 0&&(t=Jn()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this),this)},i.prototype.resume=function(t){return t===void 0&&(t=Jn()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},i.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},i.prototype.group=function(t){return t===void 0&&(t=Vr),this._group=t,this},i.prototype.delay=function(t){return t===void 0&&(t=0),this._delayTime=t,this},i.prototype.repeat=function(t){return t===void 0&&(t=0),this._initialRepeat=t,this._repeat=t,this},i.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},i.prototype.yoyo=function(t){return t===void 0&&(t=!1),this._yoyo=t,this},i.prototype.easing=function(t){return t===void 0&&(t=Mt.Linear.None),this._easingFunction=t,this},i.prototype.interpolation=function(t){return t===void 0&&(t=En.Linear),this._interpolationFunction=t,this},i.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},i.prototype.onStart=function(t){return this._onStartCallback=t,this},i.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},i.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},i.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},i.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},i.prototype.onStop=function(t){return this._onStopCallback=t,this},i.prototype.update=function(t,e){if(t===void 0&&(t=Jn()),e===void 0&&(e=!0),this._isPaused)return!0;var n,o,s=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;e&&this.start(t,!0)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),o=(t-this._startTime)/this._duration,o=this._duration===0||o>1?1:o;var r=this._easingFunction(o);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,o),o===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},i.prototype._updateProperties=function(t,e,n,o){for(var s in n)if(e[s]!==void 0){var r=e[s]||0,a=n[s],l=Array.isArray(t[s]),c=Array.isArray(a),d=!l&&c;d?t[s]=this._interpolationFunction(a,o):typeof a=="object"&&a?this._updateProperties(t[s],r,a,o):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(t[s]=r+(a-r)*o))}},i.prototype._handleRelativeValue=function(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)},i.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},i}(),Zu="20.0.3",Ku=oa.nextId,_t=Vr,$u=_t.getAll.bind(_t),ef=_t.removeAll.bind(_t),tf=_t.add.bind(_t),Fd=_t.remove.bind(_t),nf=_t.update.bind(_t),Ga={Easing:Mt,Group:Gd,Interpolation:En,now:Jn,Sequence:oa,nextId:Ku,Tween:cs,VERSION:Zu,getAll:$u,removeAll:ef,add:tf,remove:Fd,update:nf};function of(i,t,e,n=Mt.Linear.None){const o=new cs(i).to(t,e).easing(n).start();function s(r){o.update(r)&&requestAnimationFrame(s)}return requestAnimationFrame(s),o}var Ut=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(Ut||{});const Wi=Symbol("$$PAINT_BRUSH_EVENT$$");function Co(i){return i[Wi]||(i[Wi]={}),i[Wi]}function sf(i){i[Wi]||delete i[Wi]}let rf=class{hasListener(t){const e=Co(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const o=Co(this);return o[t]||(o[t]=[]),o[t].push([e,n||!1]),()=>this.off(t,e)}once(t,e){return this.on(t,e,!0)}off(t,e){if(t===void 0){sf(this);return}const n=Co(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let o=0;for(;o<n[t].length&&n[t][o][0]!==e;o++);o<n[t].length&&n[t].splice(o,1)}emit(t,...e){let n=!1;const s=Co(this)[t]||[];for(let r of s.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}};function tn(){return((1+Math.random())*65536|0).toString(16).substring(1)}function st(){return(tn()+tn()+"-"+tn()+"-4"+tn().substr(0,3)+"-"+tn()+"-"+tn()+tn()+tn()).toLowerCase()}const af=`
|
|
2
2
|
<style type="text/css">
|
|
3
3
|
|
|
4
4
|
#_gl_paintBrush {
|
|
@@ -191,7 +191,7 @@ void main() {
|
|
|
191
191
|
svg [type='lineItemGroup'] g g g g {
|
|
192
192
|
stroke: #ffffff;
|
|
193
193
|
}</style>
|
|
194
|
-
`;return i.$$set=s=>{"content"in s&&e(0,n=s.content)},[n,o]}class rp extends le{constructor(t){super(),ae(this,t,sp,op,re,{content:0},ip)}}function ap(i){de(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function lp(i){let t,e;return t=new np({props:{url:i[1].url}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.url=n[1].url),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function cp(i){let t,e;return t=new rp({props:{content:i[0]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.content=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function dp(i){let t,e,n,o;const s=[cp,lp],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=s[e](i)),{c(){t=L("div"),n&&n.c(),w(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){O(l,t,c),~e&&r[e].m(t,null),o=!0},p(l,[c]){let d=e;e=a(l),e===d?~e&&r[e].p(l,c):(n&&(he(),T(r[d],1,1,()=>{r[d]=null}),ue()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null)):n=null)},i(l){o||(k(n),o=!0)},o(l){T(n),o=!1},d(l){l&&V(t),~e&&r[e].d()}}}function hp(i,t,e){let n,o,{floorIndex:s}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,s=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[s]),i.$$.dirty&12&&e(0,o=(l=(a=r.outlines)==null?void 0:a[s])==null?void 0:l.svgContent)},[o,n,s,r]}class xh extends le{constructor(t){super(),ae(this,t,hp,dp,re,{floorIndex:2,floorplanData:3},ap)}}function up(i){de(i,"svelte-12pzct5",".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}")}function fp(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new Xo(!1),n=Ee(),t.a=n},m(o,s){t.m(e,o,s),O(o,n,s)},p(o,s){s&256&&e!==(e=o[8].outerHTML+"")&&t.p(e)},d(o){o&&V(n),o&&t.d()}}}function mp(i){let t,e,n=i[1]&&Ka(i),o=i[0]&&$a(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=Ee()},m(s,r){n&&n.m(s,r),O(s,t,r),o&&o.m(s,r),O(s,e,r)},p(s,r){s[1]?n?n.p(s,r):(n=Ka(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[0]?o?o.p(s,r):(o=$a(s),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(s){n&&n.d(s),s&&V(t),o&&o.d(s),s&&V(e)}}}function Ka(i){let t,e=i[2].name+"",n;return{c(){t=L("span"),n=Oe(e),w(t,"class","floorplan-plugin__room-name")},m(o,s){O(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].name+"")&&Re(n,e)},d(o){o&&V(t)}}}function $a(i){let t,e;return{c(){t=L("span"),e=Oe(i[7]),w(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,o){O(n,t,o),j(t,e)},p(n,o){o&128&&Re(e,n[7])},d(n){n&&V(t)}}}function pp(i){let t,e,n;function o(a,l){if(a[3]===void 0)return mp;if(a[8])return fp}let s=o(i),r=s&&s(i);return{c(){t=L("div"),r&&r.c(),w(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),z(t,"left",i[9]),z(t,"top",i[10]),z(t,"font-size",i[11]),z(t,"opacity",i[6]?"1":"0")},m(a,l){O(a,t,l),r&&r.m(t,null),e||(n=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[19]),Ae(t,"clientHeight",i[20])],e=!0)},p(a,[l]){s===(s=o(a))&&r?r.p(a,l):(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(t,null))),l&64&&z(t,"opacity",a[6]?"1":"0")},i:Z,o:Z,d(a){a&&V(t),r&&r.d(),e=!1,qe(n)}}}function gp(i,t){const e=i[0],n=i[1];let o=!1;for(let s=0,r=t.length-1;s<t.length;r=s++){const a=t[s][0],l=t[s][1],c=t[r][0],d=t[r][1];l>n!=d>n&&e<(c-a)*(n-l)/(d-l)+a&&(o=!o)}return o}function vp(i,t,e){let n,o,s,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:d}=t,{room:h}=t,{hoveredRoom:u}=t,{getRoomAreaText:m}=t,{getLabelElement:p}=t,{adaptiveRoomLabelVisibleEnable:A}=t;function g(Q,F){if(F.width===0||F.height===0)return()=>!1;const _=Q.path.map(({x:Ce,y:ge})=>[Ce,ge]),W=Q.roomLabel.position,{x:q,y:U}=W,{width:K,height:ce}=F,oe=K/2,we=ce/2;return function(ge){const je=q*ge,ve=U*ge,Fe=_.map(([ye,Le])=>[ye*ge,Le*ge]);return[[je+oe,ve-we],[je-oe,ve-we],[je-oe,ve+we],[je+oe,ve+we]].every(ye=>gp(ye,Fe))}}const b=document.body.clientWidth,y=document.body.clientHeight,P=h.roomLabel,x=P.positionInImage.x*100+"%",D=P.positionInImage.y*100+"%",I=(b<500||y<500?10:14)+"px";let B=0,S=0,X=!1;u.subscribe(function(F){e(16,X=!!F&&F.id===h.id)});const J=Q=>{e(4,B=Q.detail)},H=Q=>{e(5,S=Q.detail)};return i.$$set=Q=>{"pxmm"in Q&&e(12,l=Q.pxmm),"roomAreaEnable"in Q&&e(0,c=Q.roomAreaEnable),"roomNameEnable"in Q&&e(1,d=Q.roomNameEnable),"room"in Q&&e(2,h=Q.room),"hoveredRoom"in Q&&e(13,u=Q.hoveredRoom),"getRoomAreaText"in Q&&e(14,m=Q.getRoomAreaText),"getLabelElement"in Q&&e(3,p=Q.getLabelElement),"adaptiveRoomLabelVisibleEnable"in Q&&e(15,A=Q.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=p==null?void 0:p(h)),i.$$.dirty&16388&&e(7,o=h.size?m(h.size):""),i.$$.dirty&48&&e(18,s={width:B,height:S}),i.$$.dirty&262148&&e(17,r=s?g(h,s):void 0),i.$$.dirty&233472&&e(6,a=A?X?!0:!!(r!=null&&r(l)):!0)},[c,d,h,p,B,S,a,o,n,x,D,I,l,u,m,A,X,r,s,J,H]}class Ap extends le{constructor(t){super(),ae(this,t,vp,pp,re,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},up)}}function bp(i){de(i,"svelte-13xux0b",".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}")}function el(i,t,e){const n=i.slice();return n[12]=t[e],n}function tl(i){let t,e=[],n=new Map,o,s,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=el(i,a,c),h=l(d);n.set(h,e[c]=nl(h,d))}return{c(){t=L("div");for(let c=0;c<e.length;c+=1)e[c].c();w(t,"class","floorplan-plugin__room-labels svelte-13xux0b")},m(c,d){O(c,t,d);for(let h=0;h<e.length;h+=1)e[h]&&e[h].m(t,null);o=!0,s||(r=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[11])],s=!0)},p(c,d){d&447&&(a=c[8],he(),e=Lt(e,d,l,1,c,a,n,t,pn,nl,null,el),ue())},i(c){if(!o){for(let d=0;d<a.length;d+=1)k(e[d]);o=!0}},o(c){for(let d=0;d<e.length;d+=1)T(e[d]);o=!1},d(c){c&&V(t);for(let d=0;d<e.length;d+=1)e[d].d();s=!1,qe(r)}}}function nl(i,t){let e,n,o;const s=[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new Ap({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&447?at(s,[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function yp(i){let t,e,n=i[8]&&tl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[8]?n?(n.p(o,s),s&256&&k(n,1)):(n=tl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function wp(i,t,e){let n,{floorIndex:o}=t,{roomAreaEnable:s}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:d}=t,{adaptiveRoomLabelVisibleEnable:h}=t,u=0,m=0;const p=A=>{e(6,u=A.detail)};return i.$$set=A=>{"floorIndex"in A&&e(9,o=A.floorIndex),"roomAreaEnable"in A&&e(0,s=A.roomAreaEnable),"roomNameEnable"in A&&e(1,r=A.roomNameEnable),"floorplanData"in A&&e(10,a=A.floorplanData),"hoveredRoom"in A&&e(2,l=A.hoveredRoom),"getRoomAreaText"in A&&e(3,c=A.getRoomAreaText),"getLabelElement"in A&&e(4,d=A.getLabelElement),"adaptiveRoomLabelVisibleEnable"in A&&e(5,h=A.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[o].rooms),i.$$.dirty&1088){const{max:A,min:g}=a.bounding,b=A.x-g.x;e(7,m=u/b)}},[s,r,l,c,d,h,u,m,n,o,a,p]}class Cp extends le{constructor(t){super(),ae(this,t,wp,yp,re,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},bp)}}function Pp(i){de(i,"svelte-djlmk4",".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}")}function il(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function ol(i,t,e){const n=i.slice();return n[14]=t[e],n}function sl(i){let t;return{c(){t=L("div"),w(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),z(t,"left",i[14].left*100+"%"),z(t,"bottom",i[14].bottom*100+"%")},m(e,n){O(e,t,n)},p:Z,d(e){e&&V(t)}}}function rl(i,t){let e,n,o=t[1](t[11].distance)+"",s,r;return{key:i,first:null,c(){e=L("div"),n=L("div"),s=Oe(o),r=ee(),w(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),$(n,"is-row",t[2]),w(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),z(e,"left",t[11].left*100+"%"),z(e,"bottom",t[11].bottom*100+"%"),this.first=e},m(a,l){O(a,e,l),j(e,n),j(n,s),j(e,r)},p(a,l){t=a,l&2&&o!==(o=t[1](t[11].distance)+"")&&Re(s,o)},d(a){a&&V(e)}}}function Ep(i){let t,e,n,o,s,r,a=[],l=new Map,c,d=i[3],h=[];for(let p=0;p<d.length;p+=1)h[p]=sl(ol(i,d,p));let u=i[4];const m=p=>p[13];for(let p=0;p<u.length;p+=1){let A=il(i,u,p),g=m(A);l.set(g,a[p]=rl(g,A))}return{c(){t=L("div"),e=L("div"),n=ee(),o=L("div");for(let p=0;p<h.length;p+=1)h[p].c();s=ee(),r=L("div");for(let p=0;p<a.length;p+=1)a[p].c();w(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),w(o,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),$(o,"is-row",i[2]),w(r,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),w(t,"class",c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),$(t,"is-row",i[2]),z(t,"width",i[2]?"100%":1/16+"rem"),z(t,"height",i[2]?1/16+"rem":"100%")},m(p,A){O(p,t,A),j(t,e),j(t,n),j(t,o);for(let g=0;g<h.length;g+=1)h[g]&&h[g].m(o,null);j(t,s),j(t,r);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(r,null)},p(p,[A]){if(A&8){d=p[3];let g;for(g=0;g<d.length;g+=1){const b=ol(p,d,g);h[g]?h[g].p(b,A):(h[g]=sl(b),h[g].c(),h[g].m(o,null))}for(;g<h.length;g+=1)h[g].d(1);h.length=d.length}A&22&&(u=p[4],a=Lt(a,A,m,1,p,u,l,r,fa,rl,null,il)),A&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+p[0]+" svelte-djlmk4")&&w(t,"class",c),A&5&&$(t,"is-row",p[2])},i:Z,o:Z,d(p){p&&V(t),Dt(h,p);for(let A=0;A<a.length;A+=1)a[A].d()}}}const Xn=1e3,Un=180;function Ip(i,t,e){let{type:n}=t,{data:o}=t,{bounding:s}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=s.max.x-s.min.x-(Xn-Un)*2,c=s.max.y-s.min.y-(Xn-Un)*2,d=o.map(([p,A])=>a?[p.x,A.x]:[p.y,A.y]).flat().sort().filter((p,A,g)=>A===0?!0:p!==g[A-1]),h=d.map(p=>{const A=a?(p-s.min.x-Xn+Un)/l:0,g=a?0:(p-s.min.y-Xn+Un)/c;return{left:A,bottom:g}});h.unshift({left:0,bottom:0}),h.push(a?{left:1,bottom:0}:{left:0,bottom:1});const u=d[d.length-1]-d[0],m=d.map((p,A,g)=>{const b=A===0?0:p-g[A-1],y=A===0?0:(p+g[A-1])/2,P=a?(y-s.min.x-Xn+Un)/l:0,x=a?0:(y-s.min.y-Xn+Un)/c;return{left:P,bottom:x,distance:b}}).filter(({distance:p})=>p/u>.1);return i.$$set=p=>{"type"in p&&e(0,n=p.type),"data"in p&&e(5,o=p.data),"bounding"in p&&e(6,s=p.bounding),"getRuleDistanceText"in p&&e(1,r=p.getRuleDistanceText)},[n,r,a,h,m,o,s]}class kp extends le{constructor(t){super(),ae(this,t,Ip,Ep,re,{type:0,data:5,bounding:6,getRuleDistanceText:1},Pp)}}function xp(i){de(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function al(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function ll(i,t){let e,n,o;const s=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new kp({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&19?at(s,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function Mp(i){let t,e=[],n=new Map,o,s=i[4];const r=a=>a[13];for(let a=0;a<s.length;a+=1){let l=al(i,s,a),c=r(l);n.set(c,e[a]=ll(c,l))}return{c(){t=L("div");for(let a=0;a<e.length;a+=1)e[a].c();w(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),z(t,"width",i[3]),z(t,"height",i[2])},m(a,l){O(a,t,l);for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(t,null);o=!0},p(a,[l]){l&19&&(s=a[4],he(),e=Lt(e,l,r,1,a,s,n,t,pn,ll,null,al),ue()),l&8&&z(t,"width",a[3]),l&4&&z(t,"height",a[2])},i(a){if(!o){for(let l=0;l<s.length;l+=1)k(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)T(e[l]);o=!1},d(a){a&&V(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const cl=1e3,dl=180;function Sp(i,t,e){let n,o,s,r,a,l,c,d,h,u,{floorIndex:m}=t,{floorplanData:p}=t,{getRuleDistanceText:A}=t;return i.$$set=g=>{"floorIndex"in g&&e(5,m=g.floorIndex),"floorplanData"in g&&e(6,p=g.floorplanData),"getRuleDistanceText"in g&&e(0,A=g.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=p.bounding),i.$$.dirty&96&&e(11,o=p.floorDatas[m].rules),i.$$.dirty&2048&&e(12,s=Object.keys(o)),i.$$.dirty&6144&&e(4,r=s.map(g=>[g,o[g]])),i.$$.dirty&2&&e(9,a=n.max.x-n.min.x),i.$$.dirty&2&&e(7,l=n.max.y-n.min.y),i.$$.dirty&2&&e(10,c=n.max.x-n.min.x-(cl-dl)*2),i.$$.dirty&2&&e(8,d=n.max.y-n.min.y-(cl-dl)*2),i.$$.dirty&1536&&e(3,h=c/a*100+"%"),i.$$.dirty&384&&e(2,u=d/l*100+"%")},[A,n,u,h,r,m,p,l,d,a,c,o,s]}class Dp extends le{constructor(t){super(),ae(this,t,Sp,Mp,re,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},xp)}}function As(i,t={}){let e="";const{needZ:n,needA:o}=t;return(n?i.slice().concat(i[0]):i.slice()).forEach((r,a)=>{const{x:l,y:c}=t.format?t.format(r):r,d=l+","+c;return a===0?(e+="M"+d,e):o!=null&&o[a]?(e+="A"+o[a]+","+d,e):(e+="L"+d,e)}),e+(n?"Z":"")}function Mh({x:i,y:t},e){const{max:n,min:o}=e;return{x:i-o.x,y:n.y-t}}function Lp(i,t){const e=i.x*1e3+t.bounding.origin.x,n=-i.z*1e3+t.bounding.origin.y;return{x:e,y:n}}function Tp(i,t){const e=t.bounding,n=e.max.x-e.min.x,o=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/o}}function zp(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function jp(i){let t;return{c(){t=ze("path"),w(t,"d",i[0]),w(t,"fill","#2F313A")},m(e,n){O(e,t,n)},p(e,[n]){n&1&&w(t,"d",e[0])},i:Z,o:Z,d(e){e&&V(t)}}}function Vp(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=As(o,{needZ:!0}))},[n,o]}class Op extends le{constructor(t){super(),ae(this,t,Vp,jp,re,{path:1})}}function Bp(i){let t,e,n,o,s,r;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),o=ze("path"),s=ee(),r=ze("path"),w(n,"x","0"),w(n,"y","0"),w(n,"width",i[1]),w(n,"height",i[1]),w(n,"fill","#323747"),w(o,"d",i[2]),w(o,"stroke","#ffffff"),w(o,"stroke-opacity","0.06"),w(o,"stroke-width","0.5"),w(o,"fill","none"),w(e,"id","fpm-room-pattern-0"),w(e,"x","0"),w(e,"y","0"),w(e,"width",i[1]),w(e,"height",i[1]),w(e,"patternUnits","userSpaceOnUse"),w(e,"patternTransform","scale(50 50)"),w(r,"d",i[0]),w(r,"fill","url(#fpm-room-pattern-0)")},m(a,l){O(a,t,l),j(t,e),j(e,n),j(e,o),O(a,s,l),O(a,r,l)},p(a,[l]){l&1&&w(r,"d",a[0])},i:Z,o:Z,d(a){a&&V(t),a&&V(s),a&&V(r)}}}const Ar=6;function Rp(i,t,e){let n,{path:o}=t;const s=Ar*2,r=`M0 ${Ar} h ${s} M${Ar} 0 v ${s}`;return i.$$set=a=>{"path"in a&&e(3,o=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=As(o,{needZ:!0}))},[n,s,r,o]}class _p extends le{constructor(t){super(),ae(this,t,Rp,Bp,re,{path:3})}}function Qp(i){let t,e,n,o,s,r,a,l,c,d,h;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),o=ze("pattern"),s=ze("rect"),r=ee(),a=ze("path"),l=ee(),c=ze("path"),d=ee(),h=ze("path"),w(n,"x","0"),w(n,"y","0"),w(n,"width","6"),w(n,"height","50"),w(n,"fill","none"),w(n,"stroke","#4B4B57"),w(n,"stroke-width","0.5"),w(e,"id","room-material-pattern-1"),w(e,"x","0"),w(e,"y","0"),w(e,"width","12"),w(e,"height","50"),w(e,"patternUnits","userSpaceOnUse"),w(e,"patternTransform","scale(50 50)"),w(s,"x","0"),w(s,"y","0"),w(s,"width","6"),w(s,"height","50"),w(s,"fill","none"),w(s,"stroke","#4B4B57"),w(s,"stroke-width","0.5"),w(o,"id","room-material-pattern-2"),w(o,"x","6"),w(o,"y","25"),w(o,"width","12"),w(o,"height","50"),w(o,"patternUnits","userSpaceOnUse"),w(o,"patternTransform","scale(50 50)"),w(a,"d",i[0]),w(a,"fill","#43434D"),w(c,"d",i[0]),w(c,"fill","url(#room-material-pattern-1)"),w(h,"d",i[0]),w(h,"fill","url(#room-material-pattern-2)")},m(u,m){O(u,t,m),j(t,e),j(e,n),j(t,o),j(o,s),O(u,r,m),O(u,a,m),O(u,l,m),O(u,c,m),O(u,d,m),O(u,h,m)},p(u,[m]){m&1&&w(a,"d",u[0]),m&1&&w(c,"d",u[0]),m&1&&w(h,"d",u[0])},i:Z,o:Z,d(u){u&&V(t),u&&V(r),u&&V(a),u&&V(l),u&&V(c),u&&V(d),u&&V(h)}}}function Hp(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=As(o,{needZ:!0}))},[n,o]}class Gp extends le{constructor(t){super(),ae(this,t,Hp,Qp,re,{path:1})}}function Fp(i){de(i,"svelte-1dykexu",".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}")}function hl(i,t,e){const n=i.slice();return n[5]=t[e],n}function Wp(i){let t,e;return t=new _p({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Np(i){let t,e;return t=new Gp({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Yp(i){let t,e;return t=new Op({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function ul(i){let t,e,n,o;const s=[Yp,Np,Wp],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=ze("svg"),n.c(),w(t,"width","100%"),w(t,"height","100%"),w(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),w(t,"class","svelte-1dykexu")},m(l,c){O(l,t,c),r[e].m(t,null),o=!0},p(l,c){let d=e;e=a(l),e===d?r[e].p(l,c):(he(),T(r[d],1,1,()=>{r[d]=null}),ue(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null))},i(l){o||(k(n),o=!0)},o(l){T(n),o=!1},d(l){l&&V(t),r[e].d()}}}function Xp(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=ul(hl(i,n,r));const s=r=>T(o[r],1,1,()=>{o[r]=null});return{c(){t=L("div");for(let r=0;r<o.length;r+=1)o[r].c();w(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){O(r,t,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(t,null);e=!0},p(r,[a]){if(a&7){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=hl(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=ul(c),o[l].c(),k(o[l],1),o[l].m(t,null))}for(he(),l=n.length;l<o.length;l+=1)s(l);ue()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)T(o[a]);e=!1},d(r){r&&V(t),Dt(o,r)}}}function Up(i,t,e){let n,{floorIndex:o}=t,{floorplanData:s}=t;const r=s.bounding.max.x-s.bounding.min.x,a=s.bounding.max.y-s.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,o=l.floorIndex),"floorplanData"in l&&e(4,s=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=s.floorDatas[o].rooms.map(l=>be(G({},l),{path:l.path.map(c=>Mh(c,s.bounding))})))},[n,r,a,o,s]}class qp extends le{constructor(t){super(),ae(this,t,Up,Xp,re,{floorIndex:3,floorplanData:4},Fp)}}function Jp(i){de(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function Zp(i){let t,e,n,o;return{c(){t=ze("path"),w(t,"d",i[5]),w(t,"fill","#fff"),w(t,"style",i[2]),w(t,"id",e=`${i[1]}_${i[0].id}`),w(t,"class","svelte-qq2273")},m(s,r){O(s,t,r),n||(o=[Ae(t,"mouseenter",i[3]),Ae(t,"mouseleave",i[4])],n=!0)},p(s,[r]){r&4&&w(t,"style",s[2]),r&3&&e!==(e=`${s[1]}_${s[0].id}`)&&w(t,"id",e)},i:Z,o:Z,d(s){s&&V(t),n=!1,qe(o)}}}function Kp(i,t,e){let n,o,{room:s}=t,{floorIndex:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{highlightData:c}=t;function d(){l.set(s)}function h(){l.set(void 0)}const{bounding:u}=a,m=As(s.path,{needZ:!0,format:p=>Mh(p,u)});return i.$$set=p=>{"room"in p&&e(0,s=p.room),"floorIndex"in p&&e(1,r=p.floorIndex),"floorplanData"in p&&e(6,a=p.floorplanData),"hoveredRoom"in p&&e(7,l=p.hoveredRoom),"highlightData"in p&&e(8,c=p.highlightData)},i.$$.update=()=>{i.$$.dirty&259&&e(9,n=c[`${r}_${s.id}`]),i.$$.dirty&512&&e(2,o=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[s,r,o,d,h,m,a,l,c,n]}class $p extends le{constructor(t){super(),ae(this,t,Kp,Zp,re,{room:0,floorIndex:1,floorplanData:6,hoveredRoom:7,highlightData:8},Jp)}}function eg(i){de(i,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function fl(i,t,e){const n=i.slice();return n[6]=t[e],n}function ml(i,t){let e,n,o;const s=[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new $p({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&15?at(s,[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function tg(i){let t,e,n=[],o=new Map,s,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=fl(i,r,l),d=a(c);o.set(d,n[l]=ml(d,c))}return{c(){t=L("div"),e=ze("svg");for(let l=0;l<n.length;l+=1)n[l].c();w(e,"width","100%"),w(e,"height","100%"),w(e,"viewBox",`0 0 ${i[4]} ${i[5]}`),w(e,"class","svelte-1kqo6e4"),w(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(l,c){O(l,t,c),j(t,e);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);s=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,he(),n=Lt(n,c,a,1,l,r,o,e,pn,ml,null,fl),ue())},i(l){if(!s){for(let c=0;c<r.length;c+=1)k(n[c]);s=!0}},o(l){for(let c=0;c<n.length;c+=1)T(n[c]);s=!1},d(l){l&&V(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function ng(i,t,e){let{floorIndex:n}=t,{floorplanData:o}=t,{hoveredRoom:s}=t,{highlightData:r}=t;const a=o.bounding.max.x-o.bounding.min.x,l=o.bounding.max.y-o.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,o=c.floorplanData),"hoveredRoom"in c&&e(2,s=c.hoveredRoom),"highlightData"in c&&e(3,r=c.highlightData)},[n,o,s,r,a,l]}class Sh extends le{constructor(t){super(),ae(this,t,ng,tg,re,{floorIndex:0,floorplanData:1,hoveredRoom:2,highlightData:3},eg)}}function ig(i){de(i,"svelte-bl8zrz",".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}")}function pl(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Sh({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&24834?at(n,[{floorIndex:s[1],floorplanData:s[8],hoveredRoom:s[14],highlightData:s[13]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function gl(i){let t,e;const n=[{floorplanData:i[8],roomAreaEnable:i[5],roomNameEnable:i[6],floorIndex:i[1],getRoomAreaText:i[9],getLabelElement:i[10],hoveredRoom:i[14],adaptiveRoomLabelVisibleEnable:i[12]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Cp({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&22370?at(n,[{floorplanData:s[8],roomAreaEnable:s[5],roomNameEnable:s[6],floorIndex:s[1],getRoomAreaText:s[9],getLabelElement:s[10],hoveredRoom:s[14],adaptiveRoomLabelVisibleEnable:s[12]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function vl(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Dp({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&2306?at(n,[{floorplanData:s[8],floorIndex:s[1],getRuleDistanceText:s[11]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function og(i){let t,e,n,o,s,r,a,l,c;const d=[{floorIndex:i[1],floorplanData:i[8]}];let h={};for(let b=0;b<d.length;b+=1)h=$e(h,d[b]);e=new qp({props:h});let u=(i[2]||i[3])&&pl(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let p={};for(let b=0;b<m.length;b+=1)p=$e(p,m[b]);s=new xh({props:p});let A=i[4]&&gl(i),g=i[7]&&vl(i);return{c(){t=L("div"),ie(e.$$.fragment),n=ee(),u&&u.c(),o=ee(),ie(s.$$.fragment),r=ee(),A&&A.c(),a=ee(),g&&g.c(),w(t,"class",l=Be(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(b,y){O(b,t,y),te(e,t,null),j(t,n),u&&u.m(t,null),j(t,o),te(s,t,null),j(t,r),A&&A.m(t,null),j(t,a),g&&g.m(t,null),c=!0},p(b,[y]){const P=y&258?at(d,[{floorIndex:b[1],floorplanData:b[8]}]):{};e.$set(P),b[2]||b[3]?u?(u.p(b,y),y&12&&k(u,1)):(u=pl(b),u.c(),k(u,1),u.m(t,o)):u&&(he(),T(u,1,1,()=>{u=null}),ue());const x=y&258?at(m,[{floorplanData:b[8],floorIndex:b[1]}]):{};s.$set(x),b[4]?A?(A.p(b,y),y&16&&k(A,1)):(A=gl(b),A.c(),k(A,1),A.m(t,a)):A&&(he(),T(A,1,1,()=>{A=null}),ue()),b[7]?g?(g.p(b,y),y&128&&k(g,1)):(g=vl(b),g.c(),k(g,1),g.m(t,null)):g&&(he(),T(g,1,1,()=>{g=null}),ue()),(!c||y&1&&l!==(l=Be(`floorplan-plugin__floor${b[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&w(t,"class",l)},i(b){c||(k(e.$$.fragment,b),k(u),k(s.$$.fragment,b),k(A),k(g),c=!0)},o(b){T(e.$$.fragment,b),T(u),T(s.$$.fragment,b),T(A),T(g),c=!1},d(b){b&&V(t),ne(e),u&&u.d(),ne(s),A&&A.d(),g&&g.d()}}}function sg(i,t,e){let{isCurrent:n}=t,{floorIndex:o}=t,{highlightEnable:s}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{roomAreaEnable:l}=t,{roomNameEnable:c}=t,{ruleLabelsEnable:d}=t,{floorplanData:h}=t,{getRoomAreaText:u}=t,{getLabelElement:m}=t,{getRuleDistanceText:p}=t,{adaptiveRoomLabelVisibleEnable:A}=t,{highlightData:g}=t;const b=ga(void 0);return i.$$set=y=>{"isCurrent"in y&&e(0,n=y.isCurrent),"floorIndex"in y&&e(1,o=y.floorIndex),"highlightEnable"in y&&e(2,s=y.highlightEnable),"hoverEnable"in y&&e(3,r=y.hoverEnable),"roomLabelsEnable"in y&&e(4,a=y.roomLabelsEnable),"roomAreaEnable"in y&&e(5,l=y.roomAreaEnable),"roomNameEnable"in y&&e(6,c=y.roomNameEnable),"ruleLabelsEnable"in y&&e(7,d=y.ruleLabelsEnable),"floorplanData"in y&&e(8,h=y.floorplanData),"getRoomAreaText"in y&&e(9,u=y.getRoomAreaText),"getLabelElement"in y&&e(10,m=y.getLabelElement),"getRuleDistanceText"in y&&e(11,p=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(12,A=y.adaptiveRoomLabelVisibleEnable),"highlightData"in y&&e(13,g=y.highlightData)},[n,o,s,r,a,l,c,d,h,u,m,p,A,g,b]}let rg=class extends le{constructor(t){super(),ae(this,t,sg,og,re,{isCurrent:0,floorIndex:1,highlightEnable:2,hoverEnable:3,roomLabelsEnable:4,roomAreaEnable:5,roomNameEnable:6,ruleLabelsEnable:7,floorplanData:8,getRoomAreaText:9,getLabelElement:10,getRuleDistanceText:11,adaptiveRoomLabelVisibleEnable:12,highlightData:13},ig)}};function ag(i){de(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Al(i,t,e){const n=i.slice();return n[21]=t[e],n}function bl(i){let t,e,n,o,s,r=i[13].floorDatas,a=[];for(let h=0;h<r.length;h+=1)a[h]=yl(Al(i,r,h));const l=h=>T(a[h],1,1,()=>{a[h]=null});let c=i[5]&&wl(i),d=i[8]&&Cl(i);return{c(){t=L("div");for(let h=0;h<a.length;h+=1)a[h].c();e=ee(),c&&c.c(),n=ee(),d&&d.c(),w(t,"class","floorplan-main svelte-86bqav")},m(h,u){O(h,t,u);for(let m=0;m<a.length;m+=1)a[m]&&a[m].m(t,null);j(t,e),c&&c.m(t,null),j(t,n),d&&d.m(t,null),s=!0},p(h,u){if(i=h,u&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const p=Al(i,r,m);a[m]?(a[m].p(p,u),k(a[m],1)):(a[m]=yl(p),a[m].c(),k(a[m],1),a[m].m(t,e))}for(he(),m=r.length;m<a.length;m+=1)l(m);ue()}i[5]?c?(c.p(i,u),u&32&&k(c,1)):(c=wl(i),c.c(),k(c,1),c.m(t,n)):c&&(he(),T(c,1,1,()=>{c=null}),ue()),i[8]?d?(d.p(i,u),u&256&&k(d,1)):(d=Cl(i),d.c(),k(d,1),d.m(t,null)):d&&(he(),T(d,1,1,()=>{d=null}),ue())},i(h){if(!s){for(let u=0;u<r.length;u+=1)k(a[u]);k(c),k(d),o||rt(()=>{o=Ln(t,Mn,{duration:i[0],easing:an}),o.start()}),s=!0}},o(h){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)T(a[u]);T(c),T(d),s=!1},d(h){h&&V(t),Dt(a,h),c&&c.d(),d&&d.d()}}}function yl(i){let t,e;const n=[{hoverEnable:i[6],highlightEnable:i[7],floorplanData:i[13],getRoomAreaText:i[16],getLabelElement:i[17],getRuleDistanceText:i[18],roomLabelsEnable:i[9],roomAreaEnable:i[10],roomNameEnable:i[11],ruleLabelsEnable:i[12],adaptiveRoomLabelVisibleEnable:i[19],highlightData:i[20]},{floorIndex:i[21].floorIndex},{isCurrent:i[21].floorIndex===i[4]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new rg({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&2047696?at(n,[r&2047680&&{hoverEnable:s[6],highlightEnable:s[7],floorplanData:s[13],getRoomAreaText:s[16],getLabelElement:s[17],getRuleDistanceText:s[18],roomLabelsEnable:s[9],roomAreaEnable:s[10],roomNameEnable:s[11],ruleLabelsEnable:s[12],adaptiveRoomLabelVisibleEnable:s[19],highlightData:s[20]},r&8192&&{floorIndex:s[21].floorIndex},r&8208&&{isCurrent:s[21].floorIndex===s[4]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function wl(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Nm({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&57352?at(n,[{panoIndex:s[3],floorplanData:s[13],lastPanoramaLongitude:s[14],cameraImageUrl:s[15]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function Cl(i){let t,e;return t=new Km({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.floorplanData=n[13]),o&4&&(s.northDesc=n[2]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function lg(i){let t,e,n=i[1]&&bl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=bl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function cg(i,t,e){let{duration:n=0}=t,{visible:o}=t,{northDesc:s}=t,{panoIndex:r}=t,{floorIndex:a}=t,{cameraEnable:l}=t,{hoverEnable:c}=t,{highlightEnable:d}=t,{compassEnable:h}=t,{roomLabelsEnable:u}=t,{roomAreaEnable:m}=t,{roomNameEnable:p}=t,{ruleLabelsEnable:A}=t,{floorplanData:g}=t,{lastPanoramaLongitude:b}=t,{cameraImageUrl:y}=t,{getRoomAreaText:P}=t,{getLabelElement:x}=t,{getRuleDistanceText:D}=t,{adaptiveRoomLabelVisibleEnable:I}=t,{highlightData:B}=t;return i.$$set=S=>{"duration"in S&&e(0,n=S.duration),"visible"in S&&e(1,o=S.visible),"northDesc"in S&&e(2,s=S.northDesc),"panoIndex"in S&&e(3,r=S.panoIndex),"floorIndex"in S&&e(4,a=S.floorIndex),"cameraEnable"in S&&e(5,l=S.cameraEnable),"hoverEnable"in S&&e(6,c=S.hoverEnable),"highlightEnable"in S&&e(7,d=S.highlightEnable),"compassEnable"in S&&e(8,h=S.compassEnable),"roomLabelsEnable"in S&&e(9,u=S.roomLabelsEnable),"roomAreaEnable"in S&&e(10,m=S.roomAreaEnable),"roomNameEnable"in S&&e(11,p=S.roomNameEnable),"ruleLabelsEnable"in S&&e(12,A=S.ruleLabelsEnable),"floorplanData"in S&&e(13,g=S.floorplanData),"lastPanoramaLongitude"in S&&e(14,b=S.lastPanoramaLongitude),"cameraImageUrl"in S&&e(15,y=S.cameraImageUrl),"getRoomAreaText"in S&&e(16,P=S.getRoomAreaText),"getLabelElement"in S&&e(17,x=S.getLabelElement),"getRuleDistanceText"in S&&e(18,D=S.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in S&&e(19,I=S.adaptiveRoomLabelVisibleEnable),"highlightData"in S&&e(20,B=S.highlightData)},[n,o,s,r,a,l,c,d,h,u,m,p,A,g,b,y,P,x,D,I,B]}let va=class extends le{constructor(t){super(),ae(this,t,cg,lg,re,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,cameraEnable:5,hoverEnable:6,highlightEnable:7,compassEnable:8,roomLabelsEnable:9,roomAreaEnable:10,roomNameEnable:11,ruleLabelsEnable:12,floorplanData:13,lastPanoramaLongitude:14,cameraImageUrl:15,getRoomAreaText:16,getLabelElement:17,getRuleDistanceText:18,adaptiveRoomLabelVisibleEnable:19,highlightData:20},ag)}};const dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a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dUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function hg(i){return Y(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(o){return Y(this,null,function*(){const s={index:o.index,url:o.url,svgUrl:o.svg_url};if(o.svg_url){const r=yield fetch(o.svg_url,{headers:t}).then(a=>a.text());s.svgContent=r}return s})};return yield Promise.all(i.map(e))})}function ug(i){return{id:i.id,size:i.size,name:i.name,path:i.path,roomType:i.room_type,floorType:i.floor_type,roomLabel:{position:i.room_label.position,positionInImage:i.room_label.position_in_image},observerIndexs:i.observer_indexs}}function fg(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(ug),rules:i.rules}}function mg(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function pg(i){return{rad:i.rad,position:i.position,positionInImage:i.position_in_image,northRad:i.north_rad,roomId:i.room_id,floorIndex:i.floor_index}}function dn(i){return Y(this,null,function*(){const t=yield hg(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(fg),o=i.computed_data.entrance?pg(i.computed_data.entrance):null;return{outlines:t,entrance:o,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(mg)}})}function gg(i,t,e){return i.map(o=>{const s=o.position,r=o.icon?o.icon:{url:dg,width:45,height:48},a=zp(s,t),l=Lp(s,e),c=Tp(l,e);return{floorIndex:a,icon:r,id:o.id,position:l,positionInImage:c}})}function vg(i,t){return t(i),i}function bs(i,t){return vg({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function Pl(i,t){const e=Math.max(...i.work.observers.map(n=>n.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(n=>n.floorIndex===t).map(n=>n.standingPosition.y))}function Aa(i,t,e=sn.BOUNDING_CENTER){const n=Pl(i,t),o=Pl(i,t+1);return e===sn.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===sn.CEILING?o:n}function ba(i,t,e,n){const o=Aa(i,e,n==null?void 0:n.attachedTo),s=new E.Vector3(0,o,0),r=new E.Vector3(1,o,0),a=s.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}let no=class{constructor(t,e){f(this,"VERSION","2.21.0-dev.2");f(this,"five");f(this,"hooks",new di);f(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}isAbsoluteURL(t){return aa(t)?t:`${this.staticPrefix}${t}`}},Tn=class extends no{};var bt=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(bt||{});const Dh=500,Ag=80;function Fr(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function ya(i,t){return Y(this,null,function*(){const[e]=yield si(i.changeMode(...t));if(e)throw new Error("change mode canceled");yield new Promise(r=>{i.once("initAnimationWillStart",()=>{i.once("initAnimationEnded",()=>r())})});const n=t[1];if(!n)return!0;const o=i.getCurrentState();if(!bg(n,o))throw new Error("pose 与预期不符")})}function bg(i,t){return Object.keys(i).every(e=>{const n=t[e];if(n===void 0)return!0;const o=i[e];return typeof n=="number"&&typeof o=="number"?Fr(n,o,2):n===o})}function wa(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:o}=t,{latitude:s,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Fr(e,s,2)||!Fr(n,r,2)||o!==a)}function Lh(i,t,e=!0){return Y(this,null,function*(){if(wa(i,t)===!0)return;const o=i.getCurrentState();if(o.mode!==t.mode){const[d]=yield si(ya(i,[t.mode,t,void 0,e]));if(d)throw new Error(bt.ChangeModeError);return}const{latitude:s,longitude:r,fov:a}=o,l=Math.min(1e3,Math.max(200,Math.abs(s-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield si(i.updateCamera(t,l,e));if(c)throw new Error(bt.UpdateCameraError)})}function ai(i,t,e=300){const n=i.getElement();n&&(n.style.opacity=t+"",n.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(o=>n.addEventListener("transitionend",o,{once:!0})),new Promise(o=>setTimeout(o,e))]).then(()=>{n.style.transition="none"}))}function yg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,o=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||o}function wg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}let Cg=class extends Tn{constructor(e,n){var a;super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>Y(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>Y(this,[...n],function*(e={}){this.state.enabled&&(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!wa(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,bt.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>Y(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(bt.ModelNotLoaded);if(!this.data)throw new Error(bt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=G(G({},n),e),s=()=>Y(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield si(Lh(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(bt.UnknownError);this.updateSize(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const d=o.modelOpacity,h=o.immediately?0:Dh;ai(this.five,d,h),this.render(h)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,bt.BreakOffByHide),this.showPromise=void 0;const o=G(G({},{userAction:!0,isAutoHide:!1}),e);ai(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFiveInteriaPan",(e,n)=>{if(!n||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();o.mode==="Floorplan"&&(this.state.visible||wg(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();yg(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n,isAutoHide:!0}))});f(this,"onFiveWantsGesture",(e,n)=>{if(this.state.visible&&(n.length>1||e==="mouseWheel"))return!1});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:Ag/((a=n==null?void 0:n.scale)!=null?a:1)};const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"㎡",getRuleDistanceText:l=>l.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const Pg=(i,t)=>new Cg(i,t);function Eg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,o=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||o}function Ig(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}let kg=class extends Tn{constructor(e,n){super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>Y(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>Y(this,[...n],function*(e={}){this.state.enabled&&(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!wa(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,bt.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>Y(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(bt.ModelNotLoaded);if(!this.data)throw new Error(bt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=G(G({},n),e),s=()=>Y(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield si(Lh(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(bt.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const d=o.modelOpacity,h=o.immediately?0:Dh;ai(this.five,d,h),this.render(h)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,bt.BreakOffByHide),this.showPromise=void 0;const o=G(G({},{userAction:!0,isAutoHide:!1}),e);ai(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Eg(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(n&&!this.state.visible){if(this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();return o.mode!==this.showState.mode||this.state.visible?void 0:(Ig(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")),this.showState={mode:"Mapview",longitude:0,latitude:Math.PI/2,fov:90};const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=Aa(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new E.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const xg=(i,t)=>new kg(i,t);let Mg=class extends Tn{constructor(e,n){super(e);f(this,"name","topviewFloorplanPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"selector");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,(s=this.container)==null||s.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:n})});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",(...[e,,,,n])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{this.state.visible&&(this.updatePosition(),this.updateSize())});f(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});f(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});f(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:n}=this.five.getCurrentState();n==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"));const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}updatePosition(){var a;const e=Aa(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new E.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return Y(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return Y(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}_show(e){return Y(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:n}=e;this.hooks.emit("show",{userAction:n,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield ya(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const o=500,s=this.state.config.modelOpacity;ai(this.five,s,o),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return Y(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const o=1,s=0;ai(this.five,o,s),this.render()})}_enable(e){const{userAction:n}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsMoveToPano",this.onFiveWantsMoveToPano),e.on("initAnimationEnded",this.onFiveInitAnimationEnded),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsMoveToPano",this.onFiveWantsMoveToPano),e.off("initAnimationEnded",this.onFiveInitAnimationEnded),e.off("modelShownFloorChange",this.onModelShownFloorChange)}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate3d(-50%, -50%, 10px)",zIndex:10,pointerEvents:"none","will-change":"width, height"}),this.five.addExtraElement(this.container)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const Sg=(i,t)=>new Mg(i,t);function Ca(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Dg(i){de(i,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function Lg(i){let t,e,n;return{c(){t=L("div"),e=L("div"),n=L("div"),w(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),z(n,"background-image","url("+(i[0]||cn)+")"),z(n,"transform",i[1]),w(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),z(e,"transform",i[2]),w(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(o,s){O(o,t,s),j(t,e),j(e,n)},p(o,[s]){s&1&&z(n,"background-image","url("+(o[0]||cn)+")"),(s&1||s&3)&&z(n,"transform",o[1]),s&4&&z(e,"transform",o[2])},i:Z,o:Z,d(o){o&&V(t)}}}function Tg(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function zg(i,t,e){let n,o,{five:s}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=s.getCurrentState().panoIndex,d=s.getCurrentState().longitude;function h(p,A){const g=p.bounding,b=p.observers[A];if(!b)return"";const y=(g.max.x-g.min.x)*r,P=(g.max.y-g.min.y)*r,x=Math.floor(b.positionInImage.x*y),D=Math.floor(b.positionInImage.y*P);return`translate(${x}px, ${D}px)`}function u(p){e(6,c=p)}const m=Ca(p=>{e(7,d=p.longitude)},1e3/60);return yt(()=>(s.on("panoWillArrive",u),s.on("cameraDirectionUpdate",m),function(){s.off("panoWillArrive",u),s.off("cameraDirectionUpdate",m)})),i.$$set=p=>{"five"in p&&e(3,s=p.five),"pxmm"in p&&e(4,r=p.pxmm),"floorplanData"in p&&e(5,a=p.floorplanData),"cameraImageUrl"in p&&e(0,l=p.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=h(a,c)),i.$$.dirty&128&&e(1,o=Tg(d))},[l,o,n,s,r,a,c,d]}class jg extends le{constructor(t){super(),ae(this,t,zg,Lg,re,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Dg)}}function Vg(i){de(i,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function El(i,t,e){const n=i.slice();return n[1]=t[e],n}function Il(i,t){let e,n,o=`${t[1].icon.width/16}rem`,s=`${t[1].icon.height/16}rem`,r,a=`${t[1].positionInImage.y*100}%`,l=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=L("div"),n=L("div"),r=ee(),w(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),z(n,"background-image",`url(${t[1].icon.url})`),z(n,"width",o),z(n,"height",s),w(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),z(e,"top",a),z(e,"left",l),this.first=e},m(c,d){O(c,e,d),j(e,n),j(e,r)},p(c,d){t=c,d&1&&z(n,"background-image",`url(${t[1].icon.url})`);const h=d&1;h&&z(n,"width",o),h&&z(n,"height",s),d&1&&a!==(a=`${t[1].positionInImage.y*100}%`)&&z(e,"top",a),d&1&&l!==(l=`${t[1].positionInImage.x*100}%`)&&z(e,"left",l)},d(c){c&&V(e)}}}function Og(i){let t,e=[],n=new Map,o=i[0];const s=r=>r[1].id;for(let r=0;r<o.length;r+=1){let a=El(i,o,r),l=s(a);n.set(l,e[r]=Il(l,a))}return{c(){t=L("div");for(let r=0;r<e.length;r+=1)e[r].c();w(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(r,a){O(r,t,a);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(t,null)},p(r,[a]){a&1&&(o=r[0],e=Lt(e,a,s,1,r,o,n,t,fa,Il,null,El))},i:Z,o:Z,d(r){r&&V(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Bg(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=o=>{"extraObjects"in o&&e(0,n=o.extraObjects)},[n]}class Rg extends le{constructor(t){super(),ae(this,t,Bg,Og,re,{extraObjects:0},Vg)}}function kl(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[7],highlightData:i[5]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Sh({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&183?at(n,[{five:s[0],pxmm:s[1],floorIndex:s[2],floorplanData:s[4],onRoomHeightClick:s[7],highlightData:s[5]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function _g(i){let t,e,n,o,s,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let d=0;d<a.length;d+=1)l=$e(l,a[d]);t=new xh({props:l}),n=new Rg({props:{extraObjects:i[6]}});let c=i[3]&&kl(i);return{c(){ie(t.$$.fragment),e=ee(),ie(n.$$.fragment),o=ee(),c&&c.c(),s=Ee()},m(d,h){te(t,d,h),O(d,e,h),te(n,d,h),O(d,o,h),c&&c.m(d,h),O(d,s,h),r=!0},p(d,[h]){const u=h&20?at(a,[{floorIndex:d[2],floorplanData:d[4]}]):{};t.$set(u);const m={};h&64&&(m.extraObjects=d[6]),n.$set(m),d[3]?c?(c.p(d,h),h&8&&k(c,1)):(c=kl(d),c.c(),k(c,1),c.m(s.parentNode,s)):c&&(he(),T(c,1,1,()=>{c=null}),ue())},i(d){r||(k(t.$$.fragment,d),k(n.$$.fragment,d),k(c),r=!0)},o(d){T(t.$$.fragment,d),T(n.$$.fragment,d),T(c),r=!1},d(d){ne(t,d),d&&V(e),ne(n,d),d&&V(o),c&&c.d(d),d&&V(s)}}}function Qg(i,t,e){let n,{five:o}=t,{pxmm:s}=t,{floorIndex:r}=t,{hoverEnable:a}=t,{floorplanData:l}=t,{extraObjects:c=[]}=t,{highlightData:d}=t;const h=void 0;return i.$$set=u=>{"five"in u&&e(0,o=u.five),"pxmm"in u&&e(1,s=u.pxmm),"floorIndex"in u&&e(2,r=u.floorIndex),"hoverEnable"in u&&e(3,a=u.hoverEnable),"floorplanData"in u&&e(4,l=u.floorplanData),"extraObjects"in u&&e(8,c=u.extraObjects),"highlightData"in u&&e(5,d=u.highlightData)},i.$$.update=()=>{i.$$.dirty&260&&e(6,n=c==null?void 0:c.filter(u=>u.floorIndex===r))},[o,s,r,a,l,d,n,h,c]}class Hg extends le{constructor(t){super(),ae(this,t,Qg,_g,re,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:8,highlightData:5})}}function Gg(i){de(i,"svelte-1mvqyqq",".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}")}function xl(i){let t,e,n,o,s=i[7]!==0&&Ml(i);return{c(){t=L("div"),s&&s.c(),w(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){O(r,t,a),s&&s.m(t,null),e=!0,n||(o=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[13]),Ae(t,"clientHeight",i[14])],n=!0)},p(r,a){r[7]!==0?s?(s.p(r,a),a&128&&k(s,1)):(s=Ml(r),s.c(),k(s,1),s.m(t,null)):s&&(he(),T(s,1,1,()=>{s=null}),ue())},i(r){e||(k(s),e=!0)},o(r){T(s),e=!1},d(r){r&&V(t),s&&s.d(),n=!1,qe(o)}}}function Ml(i){let t,e,n,o,s=`${i[9]}px`,r=`${i[12]}px`,a;const l=[{five:i[0],pxmm:i[10],floorIndex:i[11],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5],highlightData:i[6]}];let c={};for(let u=0;u<l.length;u+=1)c=$e(c,l[u]);e=new Hg({props:c});const d=[{pxmm:i[10],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let h={};for(let u=0;u<d.length;u+=1)h=$e(h,d[u]);return o=new jg({props:h}),{c(){t=L("div"),ie(e.$$.fragment),n=ee(),ie(o.$$.fragment),w(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),z(t,"width",s),z(t,"height",r)},m(u,m){O(u,t,m),te(e,t,null),j(t,n),te(o,t,null),a=!0},p(u,m){const p=m&3181?at(l,[{five:u[0],pxmm:u[10],floorIndex:u[11],floorplanData:u[3],hoverEnable:u[2],extraObjects:u[5],highlightData:u[6]}]):{};e.$set(p);const A=m&1049?at(d,[{pxmm:u[10],five:u[0],floorplanData:u[3],cameraImageUrl:u[4]}]):{};o.$set(A),m&512&&s!==(s=`${u[9]}px`)&&z(t,"width",s),m&4096&&r!==(r=`${u[12]}px`)&&z(t,"height",r)},i(u){a||(k(e.$$.fragment,u),k(o.$$.fragment,u),a=!0)},o(u){T(e.$$.fragment,u),T(o.$$.fragment,u),a=!1},d(u){u&&V(t),ne(e),ne(o)}}}function Fg(i){let t,e,n=i[1]&&xl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=xl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function Wg(i,t,e){var P,x;let{five:n}=t,{visible:o}=t,{hoverEnable:s}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,{highlightData:c}=t,d=0,h=(x=(P=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:P.floorIndex)!=null?x:0,u=0,m=0,p=0,A=0;function g(D){e(11,h=n.work.observers[D].floorIndex)}yt(()=>(n.on("panoArrived",g),()=>{n.off("panoArrived",g)}));const b=D=>{e(7,u=D.detail)},y=D=>{e(8,m=D.detail)};return i.$$set=D=>{"five"in D&&e(0,n=D.five),"visible"in D&&e(1,o=D.visible),"hoverEnable"in D&&e(2,s=D.hoverEnable),"floorplanData"in D&&e(3,r=D.floorplanData),"cameraImageUrl"in D&&e(4,a=D.cameraImageUrl),"extraObjects"in D&&e(5,l=D.extraObjects),"highlightData"in D&&e(6,c=D.highlightData)},i.$$.update=()=>{if(i.$$.dirty&904){const D=Math.min(u,m),{max:I,min:B}=r.bounding,S=I.x-B.x,X=I.y-B.y,J=function(){return S>X?[D,D/S*X]:[D/X*S,D]}();e(9,p=J[0]),e(12,A=J[1]),e(10,d=p/S)}},[n,o,s,r,a,l,c,u,m,p,d,h,A,b,y]}class Ng extends le{constructor(t){super(),ae(this,t,Wg,Fg,re,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5,highlightData:6},Gg)}}let Yg=class extends Tn{constructor(e,n){super(e);f(this,"name","panoFloorplanRadarPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"wrapperSelector","");f(this,"wrapper",null);f(this,"disposed",!1);f(this,"extraObjects",[]);f(this,"highlightData",{});f(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const o={hoverEnable:!0,highlightEnable:!0,cameraImageUrl:cn},s=n!=null&&n.configs?n.configs:{},r=G(G({},o),s);this.state={enabled:!0,visible:!0,config:r},n!=null&&n.wrapper&&console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"),typeof(n==null?void 0:n.wrapper)=="string"?this.wrapperSelector=n.wrapper:(n==null?void 0:n.wrapper)instanceof Element&&(this.wrapper=n.wrapper),e.once("dispose",this.dispose)}load(e,n,o=!0){return Y(this,null,function*(){function s(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=s(r)?r.data:r,l=this.data;this.data=yield dn(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,o),this.render()})}show(){return Y(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return Y(this,arguments,function*(e={}){if(!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,n=!0){this.setState({config:e},{userAction:n}),this.render()}setExtraObjectsWith3DPositions(e){this.data&&(this.extraObjects=gg(e,this.five,this.data),this.render())}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}_enable(e){const{userAction:n}=e;this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("show",{userAction:n}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n}),this.render()}updateState(e,n){const o=this.state;this.state=G(G({},this.state),e),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const n=document.querySelector(this.wrapperSelector);this.wrapper=n}if(!this.data||!this.wrapper)return;const e=be(G({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects,highlightData:this.highlightData});this.app?this.app.$set(e):this.app=new Ng({target:this.wrapper,props:e})}};const Xg=(i,t)=>new Yg(i,t),Ug=[{type:0,floorType:1,roomType:"100900000012",name:"其他"},{type:1,floorType:1,roomType:"100900000002",name:"客厅"},{type:2,floorType:1,roomType:"100900000002",name:"餐厅"},{type:3,floorType:0,roomType:"100900000001",name:"卧室"},{type:4,floorType:0,roomType:"100900000001",name:"书房"},{type:5,floorType:3,roomType:"100900000004",name:"卫生间"},{type:6,floorType:3,roomType:"100900000004",name:"淋浴间"},{type:7,floorType:3,roomType:"100900000004",name:"洗手间"},{type:8,floorType:3,roomType:"100900000003",name:"厨房"},{type:9,floorType:1,roomType:"100900000003",name:"开放厨房",onlySubArea:!0},{type:10,floorType:0,roomType:"100900000001",name:"多功能间"},{type:11,floorType:0,roomType:"100900000009",name:"保姆间"},{type:12,floorType:4,roomType:"100900000005",name:"阳台"},{type:13,floorType:4,roomType:"100900000006",name:"露台"},{type:14,floorType:0,roomType:"100900000008",name:"储物间"},{type:15,floorType:0,roomType:"100900000013",name:"衣帽间"},{type:16,floorType:0,roomType:"100900000011",name:"阁楼"},{type:17,floorType:2,roomType:"100900000007",name:"花园"},{type:18,floorType:5,roomType:"100900000010",name:"车库"},{type:19,floorType:1,roomType:"100900000012",name:"电梯"},{type:20,floorType:1,roomType:"100900000012",name:"地下室"},{type:21,floorType:1,roomType:"100900000012",name:"天井"},{type:22,floorType:1,roomType:"100900000012",name:"阳光房"},{type:23,floorType:1,roomType:"100900000012",name:"过道"},{type:24,floorType:1,roomType:"100900000012",name:"楼梯间"},{type:25,floorType:1,roomType:"100900000012",name:"门厅"},{type:26,floorType:2,roomType:"100900000012",name:"入户花园"},{type:27,floorType:1,roomType:"100900000012",name:"玄关"},{type:28,floorType:1,roomType:"100900000012",name:"挑空"},{type:29,floorType:4,roomType:"100900000012",name:"晾晒区"},{type:30,floorType:4,roomType:"100900000012",name:"洗衣房"},{type:31,floorType:0,roomType:"100900000012",name:"娱乐区"},{type:32,floorType:0,roomType:"100900000012",name:"健身区"},{type:33,floorType:0,roomType:"100900000012",name:"接待区"},{type:34,floorType:0,roomType:"100900000012",name:"影音区"},{type:35,floorType:1,roomType:"100900000012",name:"餐饮区"},{type:36,floorType:1,roomType:"100900000012",name:"其他",onlySubArea:!0},{type:37,floorType:1,roomType:"100900000002",name:"起居室"},{type:38,floorType:0,roomType:"100900000001",name:"主卧"},{type:39,floorType:0,roomType:"100900000001",name:"次卧"},{type:40,floorType:0,roomType:"100900000001",name:"优化间"},{type:41,floorType:0,roomType:"100900000001",name:"办公室"},{type:42,floorType:0,roomType:"100900000001",name:"会议室"},{type:43,floorType:0,roomType:"100900000001",name:"洽谈间"},{type:44,floorType:1,roomType:"100900000002",name:"共享大厅"},{type:45,floorType:1,roomType:"100900000012",name:"水吧"},{type:46,floorType:0,roomType:"100900000015",name:"出入口"},{type:47,floorType:0,roomType:"100900000015",name:"大厅"},{type:48,floorType:0,roomType:"100900000015",name:"包厢"},{type:49,floorType:0,roomType:"100900000015",name:"其他"},{type:50,floorType:0,roomType:"100900000016",name:"出入口"},{type:51,floorType:0,roomType:"100900000016",name:"办公区"},{type:52,floorType:0,roomType:"100900000016",name:"老板间"},{type:53,floorType:0,roomType:"100900000016",name:"会议室"},{type:54,floorType:0,roomType:"100900000016",name:"休息区/水吧"},{type:55,floorType:0,roomType:"100900000016",name:"其他"},{type:56,floorType:2,roomType:"100900000012",name:"空中花园"},{type:57,floorType:0,roomType:"100900000001",name:"洋室"},{type:58,floorType:0,roomType:"100900000001",name:"和室"}],qg=[{type:0,description:"木质地板"},{type:1,description:"瓷砖地面"},{type:2,description:"户外地面"},{type:3,description:"卫生间地面"},{type:4,description:"阳台地面"},{type:5,description:"车库地面"}],Jg=[{roomType:"100900000001",description:"室"},{roomType:"100900000002",description:"厅"},{roomType:"100900000003",description:"厨"},{roomType:"100900000004",description:"卫"},{roomType:"100900000005",description:"阳台"},{roomType:"100900000006",description:"露台"},{roomType:"100900000007",description:"花园"},{roomType:"100900000008",description:"储"},{roomType:"100900000009",description:"保姆间"},{roomType:"100900000010",description:"车库"},{roomType:"100900000011",description:"阁楼"},{roomType:"100900000012",description:"其他"},{roomType:"100900000013",description:"衣"},{roomType:"100900000015",description:"商铺"},{roomType:"100900000016",description:"写字楼"}],br=(i,t,e)=>{const n=new E.Matrix4,o=new E.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(o),n},Zg=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[o,s,r]=e;o&&i.applyMatrix4(br(o,0,0)),s&&i.applyMatrix4(br(0,s,0)),r&&i.applyMatrix4(br(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function Th(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const o=e,s=G({map:o.material.map||{}},t);o.material=new R.MeshBasicMaterial(s),o.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const Kg=(i,t)=>{var d;const e=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX",n=(d=t.north_rad)!=null?d:void 0,o={},s=h=>Y(exports,null,function*(){var Q;const u=(h==null?void 0:h.fbx_url)||e,m=(Q=h==null?void 0:h.north_rad)!=null?Q:n;if(typeof m!="number")throw new Error('"northRad"配置参数缺失:未配置指南针指向!');const p=i.model.bounding,A=p.max.x-p.min.x,g=p.max.z-p.min.z,b=Math.max(A,g),P=yield new Qd.FBXLoader().loadAsync(u);Th(P,{transparent:!0,side:E.DoubleSide,blending:E.AdditiveBlending});const x=[0,m-Math.PI/2,0],{model:{bounding:{max:{x:D,z:I},min:{x:B,y:S,z:X}}}}=i;o.yBase=S;const J={x:(D+B)/2,y:S-1.6,z:(I+X)/2},H=.0045*b;return Zg(P,{position:J,rotation:x,scale:H}),o.object=P,!0}),r=({latitude:h})=>{if(!o.object)return;const u=a(h);u&&(o.object.position.y=u)},a=h=>{if(o.yBase===void 0)return;const u=.6;if(h>=Math.PI/4)return o.yBase-(u+1.6);const m=h*(4/Math.PI);return o.yBase-(u*m+1.6)};return{load:s,disable:()=>{o.object&&(i.scene.remove(o.object),i.needsRender=!0,i.off("cameraDirectionUpdate",r))},enable:()=>{if(!o.object)return;const h=a(i.getPose().latitude);h&&(o.object.position.y=h),i.scene.add(o.object),i.needsRender=!0,i.on("cameraDirectionUpdate",r)}}};function $g(i,t){var c,d,h,u,m;const e=(c=t==null?void 0:t.size)!=null?c:512,n=(d=t==null?void 0:t.fontSize)!=null?d:e*(35/256)*1.2,o=(h=t==null?void 0:t.backgroundColor)!=null?h:"rgba(0,0,0,0)",s=(u=t==null?void 0:t.fontColor)!=null?u:"#fff",r=(m=t==null?void 0:t.textAlign)!=null?m:"center",a=document.createElement("canvas");a.setAttribute("width",e+""),a.setAttribute("height",e+"");const l=a.getContext("2d");return l.fillStyle=o,l.fillRect(0,0,e,e),l.font=`${n}px "微软雅黑"`,l.textAlign=r,l.fillStyle=s,l.fillText(i,e/2,e*.7),new R.CanvasTexture(a)}const ev=({x:i,y:t,z:e})=>new R.Vector3(i,t,e),tv=(i,t)=>{var A,g,b;const e={},n=(A=t.animationEnabled)!=null?A:!0,o=(g=t.position)!=null?g:void 0,s=(b=t.rad)!=null?b:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=y=>Y(exports,null,function*(){var J,H,Q,F,_,W,q,U;const P=(J=y==null?void 0:y.position)!=null?J:o;if(!P)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const x=ev(P),D=(H=y==null?void 0:y.rad)!=null?H:s,I=(Q=y==null?void 0:y.fbx_url)!=null?Q:r;if(e.rad=D,D===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`));const B=yield new Qd.FBXLoader().loadAsync(I);B.position.copy(x),B.rotation.z=D,B.scale.set(.8,.8,.8),Th(B,{transparent:!0,side:E.DoubleSide});const S=(q=(W=(_=(F=B.children)==null?void 0:F[0])==null?void 0:_.children)==null?void 0:W[3])==null?void 0:q.clone();if(!S)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${S}`));const X=(U=t.name)!=null?U:"入户门";return S.material=new R.MeshBasicMaterial({transparent:!0,map:$g(X)}),S.renderOrder=3,B.children[0].add(S),e.object=B,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const y=1,P=new R.AnimationMixer(e.object);a.push(P);const x=P.clipAction(e.object.animations[0]);x.timeScale=y;let D;const I=()=>{let J=0,H=0;const Q=1e3/30,F=_=>{J=requestAnimationFrame(F);const W=_-H;W<Q||(H=_,a.forEach(q=>q.update(W/1e3)),i.needsRender=!0)};return J=requestAnimationFrame(F),()=>{cancelAnimationFrame(J)}},X={play:()=>{D||(x.play(),D=I(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{x.stop(),D==null||D(),D=void 0}};e.animation=X},d=y=>{var x;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((x=y==null?void 0:y.animationEnable)!=null?x:n)&&(e.animation||c(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},h=()=>{e.object&&(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},u=y=>y==="Floorplan"?d():h();return{load:l,enable:y=>(e.enabled||(e.enabled=!0,u(i.currentMode),i.on("modeChange",u),d(y)),!0),disable:()=>(e.enabled&&(e.enabled=!1,h(),i.off("modeChange",u)),!0)}},nv=Mt;function iv(i,t,e,n=nv.Linear.None){const o=new cs(i).to(t,e).easing(n);us(()=>o.start(0));const s=to(a=>{o.update(a)===!1&&s()}),r=[];return o.onDestroy=a=>(r.push(a),o),o.destroy=function(){this.stop(),Object.assign(o,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();s()},o}function ov(i,t){return iv({progress:0},{progress:1},i,t)}var zh=(i=>(i.Move="Move",i.Rotate="Rotate",i))(zh||{}),Ot=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Ot||{});const Go=Math.PI*2;function Sl(i){return(i%Go+Go)%Go}function Dl(i){return i%Go}function yr(i,t,e){return i+(t-i)*e}const Wr=(i,t,e)=>{const n=Math.PI,o=n*2;let s=Sl(i),r=Sl(t);return e===Ot.Anticlockwise&&s<r&&(s+=o),e===Ot.Clockwise&&r<s&&(r+=o),e===Ot.Loop&&r-s>n?Wr(s,r,Ot.Anticlockwise):e===Ot.Loop&&s-r>n?Wr(s,r,Ot.Clockwise):{from:s,to:r}},sv=i=>{const t={},e=(l,c,...d)=>Y(exports,[l,c,...d],function*(s,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),s.mode&&s.mode!==i.currentMode&&(yield i.changeMode(s.mode)),a.preload&&s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(yield i.preloadPano(s.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),s.panoIndex===void 0&&s.fov===void 0&&s.latitude===void 0&&s.longitude===void 0?!0:yield new Promise((h,u)=>{const m=s.panoIndex!==void 0?s.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,G({duration:r,moveEndCallback:()=>h(!0),moveCancelCallback:()=>u(new Error("move canceled"))},s)):u(new Error("unexpected error"))})}),n=s=>{const r=i.state,a=Dl(r.latitude),l=Dl(s.latitude),{from:c,to:d}=Wr(r.longitude,s.longitude,s.rotation||Ot.Loop),h=r.fov,u=s.fov;return{from:{latitude:a,longitude:c,fov:h},to:{latitude:l,longitude:d,fov:u}}};return{move:e,rotate:(l,c,...d)=>Y(exports,[l,c,...d],function*(s,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==De.Five.Mode.Panorama&&(yield i.changeMode(De.Five.Mode.Panorama)),s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(s.panoIndex)),yield new Promise((m,p)=>{if(!s.panoIndex){m(!0);return}i.moveToPano(s.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>p(new Error("move canceled"))})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:h,to:u}=n(s);return yield new Promise(m=>{const p=({progress:P})=>{const x={};x.longitude=yr(h.longitude,u.longitude,P),x.latitude=yr(h.latitude,u.latitude,P),x.fov=yr(h.fov,u.fov,P),i.setState(x,!0)},A=()=>{m(!0)},g=()=>{m(!1)},b=s.rotateSpeed?Math.ceil(Math.abs(u.longitude-h.longitude)/s.rotateSpeed*1e3):r,y=ov(b,Mt.Linear.None).onUpdate(p).onComplete(A).onDestroy(g);s.rotation===Ot.Loop&&y.repeat(1/0).yoyo(!0),t.interruptCallback=(P=!0)=>{y.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(P)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Ll(i,t){return i.x===t.x&&i.y===t.y}function jh(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function ns(i,t){return(t.y-i.y)/(t.x-i.x)}function Vh(i,t,e){const n=ns(i[1],i[0]),o=ns(t[1],t[0]);if(isNaN(n)||isNaN(o)||jh(n,o))return!1;if(xo(i[0],t))return i[0];if(xo(i[1],t))return i[1];if(xo(t[0],i))return t[0];if(xo(t[1],i))return t[1];if(e&&!rv(i,t))return!1;const s=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:s.x,y:t[1].y-(t[1].x-s.x)*o};if(Math.abs(o)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-s.y+n*s.x-o*r.x)/(n-o),l=n*a-n*s.x+s.y;return{x:a,y:l}}function xo(i,t){return Ll(i,t[0])||Ll(i,t[1])?!0:(t[0].x-i.x)*(i.x-t[1].x)>=0&&(t[0].y-i.y)*(i.y-t[1].y)>=0&&jh(ns(t[0],i),ns(i,t[1]))}function Mo(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function rv(i,t){return Math.max(i[0].x,i[1].x)>=Math.min(t[0].x,t[1].x)&&Math.max(t[0].x,t[1].x)>=Math.min(i[0].x,i[1].x)&&Math.max(i[0].y,i[1].y)>=Math.min(t[0].y,t[1].y)&&Mo(t[0],i[1],i[0])*Mo(i[1],t[1],i[0])>0&&Mo(i[0],t[1],t[0])*Mo(t[1],i[1],t[0])>0?1:0}function Oh(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Oh(i,t-1))}const av=`<style type="text/css">
|
|
194
|
+
`;return i.$$set=s=>{"content"in s&&e(0,n=s.content)},[n,o]}class rp extends le{constructor(t){super(),ae(this,t,sp,op,re,{content:0},ip)}}function ap(i){de(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function lp(i){let t,e;return t=new np({props:{url:i[1].url}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.url=n[1].url),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function cp(i){let t,e;return t=new rp({props:{content:i[0]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.content=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function dp(i){let t,e,n,o;const s=[cp,lp],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=s[e](i)),{c(){t=L("div"),n&&n.c(),w(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){O(l,t,c),~e&&r[e].m(t,null),o=!0},p(l,[c]){let d=e;e=a(l),e===d?~e&&r[e].p(l,c):(n&&(he(),T(r[d],1,1,()=>{r[d]=null}),ue()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null)):n=null)},i(l){o||(k(n),o=!0)},o(l){T(n),o=!1},d(l){l&&V(t),~e&&r[e].d()}}}function hp(i,t,e){let n,o,{floorIndex:s}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,s=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[s]),i.$$.dirty&12&&e(0,o=(l=(a=r.outlines)==null?void 0:a[s])==null?void 0:l.svgContent)},[o,n,s,r]}class xh extends le{constructor(t){super(),ae(this,t,hp,dp,re,{floorIndex:2,floorplanData:3},ap)}}function up(i){de(i,"svelte-12pzct5",".floorplan-plugin__room-label-item.svelte-12pzct5{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:1;color:#fff;transform:translate(-50%, -50%);white-space:nowrap;will-change:opacity;transition:opacity 300ms}.floorplan-plugin__room-size.svelte-12pzct5{opacity:0.45}")}function fp(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new Xo(!1),n=Ee(),t.a=n},m(o,s){t.m(e,o,s),O(o,n,s)},p(o,s){s&256&&e!==(e=o[8].outerHTML+"")&&t.p(e)},d(o){o&&V(n),o&&t.d()}}}function mp(i){let t,e,n=i[1]&&Ka(i),o=i[0]&&$a(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=Ee()},m(s,r){n&&n.m(s,r),O(s,t,r),o&&o.m(s,r),O(s,e,r)},p(s,r){s[1]?n?n.p(s,r):(n=Ka(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),s[0]?o?o.p(s,r):(o=$a(s),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(s){n&&n.d(s),s&&V(t),o&&o.d(s),s&&V(e)}}}function Ka(i){let t,e=i[2].name+"",n;return{c(){t=L("span"),n=Oe(e),w(t,"class","floorplan-plugin__room-name")},m(o,s){O(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].name+"")&&Re(n,e)},d(o){o&&V(t)}}}function $a(i){let t,e;return{c(){t=L("span"),e=Oe(i[7]),w(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,o){O(n,t,o),j(t,e)},p(n,o){o&128&&Re(e,n[7])},d(n){n&&V(t)}}}function pp(i){let t,e,n;function o(a,l){if(a[3]===void 0)return mp;if(a[8])return fp}let s=o(i),r=s&&s(i);return{c(){t=L("div"),r&&r.c(),w(t,"class","floorplan-plugin__room-label-item svelte-12pzct5"),z(t,"left",i[9]),z(t,"top",i[10]),z(t,"font-size",i[11]),z(t,"opacity",i[6]?"1":"0")},m(a,l){O(a,t,l),r&&r.m(t,null),e||(n=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[19]),Ae(t,"clientHeight",i[20])],e=!0)},p(a,[l]){s===(s=o(a))&&r?r.p(a,l):(r&&r.d(1),r=s&&s(a),r&&(r.c(),r.m(t,null))),l&64&&z(t,"opacity",a[6]?"1":"0")},i:Z,o:Z,d(a){a&&V(t),r&&r.d(),e=!1,qe(n)}}}function gp(i,t){const e=i[0],n=i[1];let o=!1;for(let s=0,r=t.length-1;s<t.length;r=s++){const a=t[s][0],l=t[s][1],c=t[r][0],d=t[r][1];l>n!=d>n&&e<(c-a)*(n-l)/(d-l)+a&&(o=!o)}return o}function vp(i,t,e){let n,o,s,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:d}=t,{room:h}=t,{hoveredRoom:u}=t,{getRoomAreaText:m}=t,{getLabelElement:p}=t,{adaptiveRoomLabelVisibleEnable:A}=t;function g(Q,F){if(F.width===0||F.height===0)return()=>!1;const _=Q.path.map(({x:Ce,y:ge})=>[Ce,ge]),W=Q.roomLabel.position,{x:q,y:U}=W,{width:K,height:ce}=F,oe=K/2,we=ce/2;return function(ge){const je=q*ge,ve=U*ge,Fe=_.map(([ye,Le])=>[ye*ge,Le*ge]);return[[je+oe,ve-we],[je-oe,ve-we],[je-oe,ve+we],[je+oe,ve+we]].every(ye=>gp(ye,Fe))}}const b=document.body.clientWidth,y=document.body.clientHeight,P=h.roomLabel,x=P.positionInImage.x*100+"%",D=P.positionInImage.y*100+"%",I=(b<500||y<500?10:14)+"px";let B=0,S=0,X=!1;u.subscribe(function(F){e(16,X=!!F&&F.id===h.id)});const J=Q=>{e(4,B=Q.detail)},H=Q=>{e(5,S=Q.detail)};return i.$$set=Q=>{"pxmm"in Q&&e(12,l=Q.pxmm),"roomAreaEnable"in Q&&e(0,c=Q.roomAreaEnable),"roomNameEnable"in Q&&e(1,d=Q.roomNameEnable),"room"in Q&&e(2,h=Q.room),"hoveredRoom"in Q&&e(13,u=Q.hoveredRoom),"getRoomAreaText"in Q&&e(14,m=Q.getRoomAreaText),"getLabelElement"in Q&&e(3,p=Q.getLabelElement),"adaptiveRoomLabelVisibleEnable"in Q&&e(15,A=Q.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=p==null?void 0:p(h)),i.$$.dirty&16388&&e(7,o=h.size?m(h.size):""),i.$$.dirty&48&&e(18,s={width:B,height:S}),i.$$.dirty&262148&&e(17,r=s?g(h,s):void 0),i.$$.dirty&233472&&e(6,a=A?X?!0:!!(r!=null&&r(l)):!0)},[c,d,h,p,B,S,a,o,n,x,D,I,l,u,m,A,X,r,s,J,H]}class Ap extends le{constructor(t){super(),ae(this,t,vp,pp,re,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},up)}}function bp(i){de(i,"svelte-13xux0b",".floorplan-plugin__room-labels.svelte-13xux0b{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20;pointer-events:none}")}function el(i,t,e){const n=i.slice();return n[12]=t[e],n}function tl(i){let t,e=[],n=new Map,o,s,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=el(i,a,c),h=l(d);n.set(h,e[c]=nl(h,d))}return{c(){t=L("div");for(let c=0;c<e.length;c+=1)e[c].c();w(t,"class","floorplan-plugin__room-labels svelte-13xux0b")},m(c,d){O(c,t,d);for(let h=0;h<e.length;h+=1)e[h]&&e[h].m(t,null);o=!0,s||(r=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[11])],s=!0)},p(c,d){d&447&&(a=c[8],he(),e=Lt(e,d,l,1,c,a,n,t,pn,nl,null,el),ue())},i(c){if(!o){for(let d=0;d<a.length;d+=1)k(e[d]);o=!0}},o(c){for(let d=0;d<e.length;d+=1)T(e[d]);o=!1},d(c){c&&V(t);for(let d=0;d<e.length;d+=1)e[d].d();s=!1,qe(r)}}}function nl(i,t){let e,n,o;const s=[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new Ap({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&447?at(s,[{pxmm:t[7],room:t[12],hoveredRoom:t[2],roomAreaEnable:t[0],roomNameEnable:t[1],getLabelElement:t[4],getRoomAreaText:t[3],adaptiveRoomLabelVisibleEnable:t[5]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function yp(i){let t,e,n=i[8]&&tl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[8]?n?(n.p(o,s),s&256&&k(n,1)):(n=tl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function wp(i,t,e){let n,{floorIndex:o}=t,{roomAreaEnable:s}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:d}=t,{adaptiveRoomLabelVisibleEnable:h}=t,u=0,m=0;const p=A=>{e(6,u=A.detail)};return i.$$set=A=>{"floorIndex"in A&&e(9,o=A.floorIndex),"roomAreaEnable"in A&&e(0,s=A.roomAreaEnable),"roomNameEnable"in A&&e(1,r=A.roomNameEnable),"floorplanData"in A&&e(10,a=A.floorplanData),"hoveredRoom"in A&&e(2,l=A.hoveredRoom),"getRoomAreaText"in A&&e(3,c=A.getRoomAreaText),"getLabelElement"in A&&e(4,d=A.getLabelElement),"adaptiveRoomLabelVisibleEnable"in A&&e(5,h=A.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[o].rooms),i.$$.dirty&1088){const{max:A,min:g}=a.bounding,b=A.x-g.x;e(7,m=u/b)}},[s,r,l,c,d,h,u,m,n,o,a,p]}class Cp extends le{constructor(t){super(),ae(this,t,wp,yp,re,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},bp)}}function Pp(i){de(i,"svelte-djlmk4",".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}")}function il(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function ol(i,t,e){const n=i.slice();return n[14]=t[e],n}function sl(i){let t;return{c(){t=L("div"),w(t,"class","floorplan-plugin__rule-scale svelte-djlmk4"),z(t,"left",i[14].left*100+"%"),z(t,"bottom",i[14].bottom*100+"%")},m(e,n){O(e,t,n)},p:Z,d(e){e&&V(t)}}}function rl(i,t){let e,n,o=t[1](t[11].distance)+"",s,r;return{key:i,first:null,c(){e=L("div"),n=L("div"),s=Oe(o),r=ee(),w(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),$(n,"is-row",t[2]),w(e,"class","floorplan-plugin__rule-text-item svelte-djlmk4"),z(e,"left",t[11].left*100+"%"),z(e,"bottom",t[11].bottom*100+"%"),this.first=e},m(a,l){O(a,e,l),j(e,n),j(n,s),j(e,r)},p(a,l){t=a,l&2&&o!==(o=t[1](t[11].distance)+"")&&Re(s,o)},d(a){a&&V(e)}}}function Ep(i){let t,e,n,o,s,r,a=[],l=new Map,c,d=i[3],h=[];for(let p=0;p<d.length;p+=1)h[p]=sl(ol(i,d,p));let u=i[4];const m=p=>p[13];for(let p=0;p<u.length;p+=1){let A=il(i,u,p),g=m(A);l.set(g,a[p]=rl(g,A))}return{c(){t=L("div"),e=L("div"),n=ee(),o=L("div");for(let p=0;p<h.length;p+=1)h[p].c();s=ee(),r=L("div");for(let p=0;p<a.length;p+=1)a[p].c();w(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),w(o,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),$(o,"is-row",i[2]),w(r,"class","floorplan-plugin__rule-text-wrapper svelte-djlmk4"),w(t,"class",c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+i[0]+" svelte-djlmk4"),$(t,"is-row",i[2]),z(t,"width",i[2]?"100%":1/16+"rem"),z(t,"height",i[2]?1/16+"rem":"100%")},m(p,A){O(p,t,A),j(t,e),j(t,n),j(t,o);for(let g=0;g<h.length;g+=1)h[g]&&h[g].m(o,null);j(t,s),j(t,r);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(r,null)},p(p,[A]){if(A&8){d=p[3];let g;for(g=0;g<d.length;g+=1){const b=ol(p,d,g);h[g]?h[g].p(b,A):(h[g]=sl(b),h[g].c(),h[g].m(o,null))}for(;g<h.length;g+=1)h[g].d(1);h.length=d.length}A&22&&(u=p[4],a=Lt(a,A,m,1,p,u,l,r,fa,rl,null,il)),A&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+p[0]+" svelte-djlmk4")&&w(t,"class",c),A&5&&$(t,"is-row",p[2])},i:Z,o:Z,d(p){p&&V(t),Dt(h,p);for(let A=0;A<a.length;A+=1)a[A].d()}}}const Xn=1e3,Un=180;function Ip(i,t,e){let{type:n}=t,{data:o}=t,{bounding:s}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=s.max.x-s.min.x-(Xn-Un)*2,c=s.max.y-s.min.y-(Xn-Un)*2,d=o.map(([p,A])=>a?[p.x,A.x]:[p.y,A.y]).flat().sort().filter((p,A,g)=>A===0?!0:p!==g[A-1]),h=d.map(p=>{const A=a?(p-s.min.x-Xn+Un)/l:0,g=a?0:(p-s.min.y-Xn+Un)/c;return{left:A,bottom:g}});h.unshift({left:0,bottom:0}),h.push(a?{left:1,bottom:0}:{left:0,bottom:1});const u=d[d.length-1]-d[0],m=d.map((p,A,g)=>{const b=A===0?0:p-g[A-1],y=A===0?0:(p+g[A-1])/2,P=a?(y-s.min.x-Xn+Un)/l:0,x=a?0:(y-s.min.y-Xn+Un)/c;return{left:P,bottom:x,distance:b}}).filter(({distance:p})=>p/u>.1);return i.$$set=p=>{"type"in p&&e(0,n=p.type),"data"in p&&e(5,o=p.data),"bounding"in p&&e(6,s=p.bounding),"getRuleDistanceText"in p&&e(1,r=p.getRuleDistanceText)},[n,r,a,h,m,o,s]}class kp extends le{constructor(t){super(),ae(this,t,Ip,Ep,re,{type:0,data:5,bounding:6,getRuleDistanceText:1},Pp)}}function xp(i){de(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function al(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function ll(i,t){let e,n,o;const s=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new kp({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&19?at(s,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function Mp(i){let t,e=[],n=new Map,o,s=i[4];const r=a=>a[13];for(let a=0;a<s.length;a+=1){let l=al(i,s,a),c=r(l);n.set(c,e[a]=ll(c,l))}return{c(){t=L("div");for(let a=0;a<e.length;a+=1)e[a].c();w(t,"class","floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),z(t,"width",i[3]),z(t,"height",i[2])},m(a,l){O(a,t,l);for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(t,null);o=!0},p(a,[l]){l&19&&(s=a[4],he(),e=Lt(e,l,r,1,a,s,n,t,pn,ll,null,al),ue()),l&8&&z(t,"width",a[3]),l&4&&z(t,"height",a[2])},i(a){if(!o){for(let l=0;l<s.length;l+=1)k(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)T(e[l]);o=!1},d(a){a&&V(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const cl=1e3,dl=180;function Sp(i,t,e){let n,o,s,r,a,l,c,d,h,u,{floorIndex:m}=t,{floorplanData:p}=t,{getRuleDistanceText:A}=t;return i.$$set=g=>{"floorIndex"in g&&e(5,m=g.floorIndex),"floorplanData"in g&&e(6,p=g.floorplanData),"getRuleDistanceText"in g&&e(0,A=g.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=p.bounding),i.$$.dirty&96&&e(11,o=p.floorDatas[m].rules),i.$$.dirty&2048&&e(12,s=Object.keys(o)),i.$$.dirty&6144&&e(4,r=s.map(g=>[g,o[g]])),i.$$.dirty&2&&e(9,a=n.max.x-n.min.x),i.$$.dirty&2&&e(7,l=n.max.y-n.min.y),i.$$.dirty&2&&e(10,c=n.max.x-n.min.x-(cl-dl)*2),i.$$.dirty&2&&e(8,d=n.max.y-n.min.y-(cl-dl)*2),i.$$.dirty&1536&&e(3,h=c/a*100+"%"),i.$$.dirty&384&&e(2,u=d/l*100+"%")},[A,n,u,h,r,m,p,l,d,a,c,o,s]}class Dp extends le{constructor(t){super(),ae(this,t,Sp,Mp,re,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},xp)}}function As(i,t={}){let e="";const{needZ:n,needA:o}=t;return(n?i.slice().concat(i[0]):i.slice()).forEach((r,a)=>{const{x:l,y:c}=t.format?t.format(r):r,d=l+","+c;return a===0?(e+="M"+d,e):o!=null&&o[a]?(e+="A"+o[a]+","+d,e):(e+="L"+d,e)}),e+(n?"Z":"")}function Mh({x:i,y:t},e){const{max:n,min:o}=e;return{x:i-o.x,y:n.y-t}}function Lp(i,t){const e=i.x*1e3+t.bounding.origin.x,n=-i.z*1e3+t.bounding.origin.y;return{x:e,y:n}}function Tp(i,t){const e=t.bounding,n=e.max.x-e.min.x,o=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/o}}function zp(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function jp(i){let t;return{c(){t=ze("path"),w(t,"d",i[0]),w(t,"fill","#2F313A")},m(e,n){O(e,t,n)},p(e,[n]){n&1&&w(t,"d",e[0])},i:Z,o:Z,d(e){e&&V(t)}}}function Vp(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=As(o,{needZ:!0}))},[n,o]}class Op extends le{constructor(t){super(),ae(this,t,Vp,jp,re,{path:1})}}function Bp(i){let t,e,n,o,s,r;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),o=ze("path"),s=ee(),r=ze("path"),w(n,"x","0"),w(n,"y","0"),w(n,"width",i[1]),w(n,"height",i[1]),w(n,"fill","#323747"),w(o,"d",i[2]),w(o,"stroke","#ffffff"),w(o,"stroke-opacity","0.06"),w(o,"stroke-width","0.5"),w(o,"fill","none"),w(e,"id","fpm-room-pattern-0"),w(e,"x","0"),w(e,"y","0"),w(e,"width",i[1]),w(e,"height",i[1]),w(e,"patternUnits","userSpaceOnUse"),w(e,"patternTransform","scale(50 50)"),w(r,"d",i[0]),w(r,"fill","url(#fpm-room-pattern-0)")},m(a,l){O(a,t,l),j(t,e),j(e,n),j(e,o),O(a,s,l),O(a,r,l)},p(a,[l]){l&1&&w(r,"d",a[0])},i:Z,o:Z,d(a){a&&V(t),a&&V(s),a&&V(r)}}}const Ar=6;function Rp(i,t,e){let n,{path:o}=t;const s=Ar*2,r=`M0 ${Ar} h ${s} M${Ar} 0 v ${s}`;return i.$$set=a=>{"path"in a&&e(3,o=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=As(o,{needZ:!0}))},[n,s,r,o]}class _p extends le{constructor(t){super(),ae(this,t,Rp,Bp,re,{path:3})}}function Qp(i){let t,e,n,o,s,r,a,l,c,d,h;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),o=ze("pattern"),s=ze("rect"),r=ee(),a=ze("path"),l=ee(),c=ze("path"),d=ee(),h=ze("path"),w(n,"x","0"),w(n,"y","0"),w(n,"width","6"),w(n,"height","50"),w(n,"fill","none"),w(n,"stroke","#4B4B57"),w(n,"stroke-width","0.5"),w(e,"id","room-material-pattern-1"),w(e,"x","0"),w(e,"y","0"),w(e,"width","12"),w(e,"height","50"),w(e,"patternUnits","userSpaceOnUse"),w(e,"patternTransform","scale(50 50)"),w(s,"x","0"),w(s,"y","0"),w(s,"width","6"),w(s,"height","50"),w(s,"fill","none"),w(s,"stroke","#4B4B57"),w(s,"stroke-width","0.5"),w(o,"id","room-material-pattern-2"),w(o,"x","6"),w(o,"y","25"),w(o,"width","12"),w(o,"height","50"),w(o,"patternUnits","userSpaceOnUse"),w(o,"patternTransform","scale(50 50)"),w(a,"d",i[0]),w(a,"fill","#43434D"),w(c,"d",i[0]),w(c,"fill","url(#room-material-pattern-1)"),w(h,"d",i[0]),w(h,"fill","url(#room-material-pattern-2)")},m(u,m){O(u,t,m),j(t,e),j(e,n),j(t,o),j(o,s),O(u,r,m),O(u,a,m),O(u,l,m),O(u,c,m),O(u,d,m),O(u,h,m)},p(u,[m]){m&1&&w(a,"d",u[0]),m&1&&w(c,"d",u[0]),m&1&&w(h,"d",u[0])},i:Z,o:Z,d(u){u&&V(t),u&&V(r),u&&V(a),u&&V(l),u&&V(c),u&&V(d),u&&V(h)}}}function Hp(i,t,e){let n,{path:o}=t;return i.$$set=s=>{"path"in s&&e(1,o=s.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=As(o,{needZ:!0}))},[n,o]}class Gp extends le{constructor(t){super(),ae(this,t,Hp,Qp,re,{path:1})}}function Fp(i){de(i,"svelte-1dykexu",".floorplan-plugin__room-material.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%}svg.svelte-1dykexu{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}")}function hl(i,t,e){const n=i.slice();return n[5]=t[e],n}function Wp(i){let t,e;return t=new _p({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Np(i){let t,e;return t=new Gp({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Yp(i){let t,e;return t=new Op({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.path=n[5].path),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function ul(i){let t,e,n,o;const s=[Yp,Np,Wp],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=ze("svg"),n.c(),w(t,"width","100%"),w(t,"height","100%"),w(t,"viewBox",`0 0 ${i[1]} ${i[2]}`),w(t,"class","svelte-1dykexu")},m(l,c){O(l,t,c),r[e].m(t,null),o=!0},p(l,c){let d=e;e=a(l),e===d?r[e].p(l,c):(he(),T(r[d],1,1,()=>{r[d]=null}),ue(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null))},i(l){o||(k(n),o=!0)},o(l){T(n),o=!1},d(l){l&&V(t),r[e].d()}}}function Xp(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=ul(hl(i,n,r));const s=r=>T(o[r],1,1,()=>{o[r]=null});return{c(){t=L("div");for(let r=0;r<o.length;r+=1)o[r].c();w(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){O(r,t,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(t,null);e=!0},p(r,[a]){if(a&7){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=hl(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=ul(c),o[l].c(),k(o[l],1),o[l].m(t,null))}for(he(),l=n.length;l<o.length;l+=1)s(l);ue()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)T(o[a]);e=!1},d(r){r&&V(t),Dt(o,r)}}}function Up(i,t,e){let n,{floorIndex:o}=t,{floorplanData:s}=t;const r=s.bounding.max.x-s.bounding.min.x,a=s.bounding.max.y-s.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,o=l.floorIndex),"floorplanData"in l&&e(4,s=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=s.floorDatas[o].rooms.map(l=>be(G({},l),{path:l.path.map(c=>Mh(c,s.bounding))})))},[n,r,a,o,s]}class qp extends le{constructor(t){super(),ae(this,t,Up,Xp,re,{floorIndex:3,floorplanData:4},Fp)}}function Jp(i){de(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function Zp(i){let t,e,n,o;return{c(){t=ze("path"),w(t,"d",i[5]),w(t,"fill","#fff"),w(t,"style",i[2]),w(t,"id",e=`${i[1]}_${i[0].id}`),w(t,"class","svelte-qq2273")},m(s,r){O(s,t,r),n||(o=[Ae(t,"mouseenter",i[3]),Ae(t,"mouseleave",i[4])],n=!0)},p(s,[r]){r&4&&w(t,"style",s[2]),r&3&&e!==(e=`${s[1]}_${s[0].id}`)&&w(t,"id",e)},i:Z,o:Z,d(s){s&&V(t),n=!1,qe(o)}}}function Kp(i,t,e){let n,o,{room:s}=t,{floorIndex:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{highlightData:c}=t;function d(){l.set(s)}function h(){l.set(void 0)}const{bounding:u}=a,m=As(s.path,{needZ:!0,format:p=>Mh(p,u)});return i.$$set=p=>{"room"in p&&e(0,s=p.room),"floorIndex"in p&&e(1,r=p.floorIndex),"floorplanData"in p&&e(6,a=p.floorplanData),"hoveredRoom"in p&&e(7,l=p.hoveredRoom),"highlightData"in p&&e(8,c=p.highlightData)},i.$$.update=()=>{i.$$.dirty&259&&e(9,n=c[`${r}_${s.id}`]),i.$$.dirty&512&&e(2,o=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[s,r,o,d,h,m,a,l,c,n]}class $p extends le{constructor(t){super(),ae(this,t,Kp,Zp,re,{room:0,floorIndex:1,floorplanData:6,hoveredRoom:7,highlightData:8},Jp)}}function eg(i){de(i,"svelte-1kqo6e4",".floorplan-plugin__room-highlight.svelte-1kqo6e4{position:absolute;width:100%;height:100%}svg.svelte-1kqo6e4{width:100%;height:100%;overflow:visible}")}function fl(i,t,e){const n=i.slice();return n[6]=t[e],n}function ml(i,t){let e,n,o;const s=[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}];let r={};for(let a=0;a<s.length;a+=1)r=$e(r,s[a]);return n=new $p({props:r}),{key:i,first:null,c(){e=Ee(),ie(n.$$.fragment),this.first=e},m(a,l){O(a,e,l),te(n,a,l),o=!0},p(a,l){t=a;const c=l&15?at(s,[{room:t[6],floorplanData:t[1],hoveredRoom:t[2],floorIndex:t[0],highlightData:t[3]}]):{};n.$set(c)},i(a){o||(k(n.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),o=!1},d(a){a&&V(e),ne(n,a)}}}function tg(i){let t,e,n=[],o=new Map,s,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=fl(i,r,l),d=a(c);o.set(d,n[l]=ml(d,c))}return{c(){t=L("div"),e=ze("svg");for(let l=0;l<n.length;l+=1)n[l].c();w(e,"width","100%"),w(e,"height","100%"),w(e,"viewBox",`0 0 ${i[4]} ${i[5]}`),w(e,"class","svelte-1kqo6e4"),w(t,"class","floorplan-plugin__room-highlight svelte-1kqo6e4")},m(l,c){O(l,t,c),j(t,e);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);s=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,he(),n=Lt(n,c,a,1,l,r,o,e,pn,ml,null,fl),ue())},i(l){if(!s){for(let c=0;c<r.length;c+=1)k(n[c]);s=!0}},o(l){for(let c=0;c<n.length;c+=1)T(n[c]);s=!1},d(l){l&&V(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function ng(i,t,e){let{floorIndex:n}=t,{floorplanData:o}=t,{hoveredRoom:s}=t,{highlightData:r}=t;const a=o.bounding.max.x-o.bounding.min.x,l=o.bounding.max.y-o.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,o=c.floorplanData),"hoveredRoom"in c&&e(2,s=c.hoveredRoom),"highlightData"in c&&e(3,r=c.highlightData)},[n,o,s,r,a,l]}class Sh extends le{constructor(t){super(),ae(this,t,ng,tg,re,{floorIndex:0,floorplanData:1,hoveredRoom:2,highlightData:3},eg)}}function ig(i){de(i,"svelte-bl8zrz",".floorplan-plugin__floor.svelte-bl8zrz{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;pointer-events:none}.floorplan-plugin__floor--is-current.svelte-bl8zrz{opacity:1;pointer-events:auto}")}function pl(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Sh({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&24834?at(n,[{floorIndex:s[1],floorplanData:s[8],hoveredRoom:s[14],highlightData:s[13]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function gl(i){let t,e;const n=[{floorplanData:i[8],roomAreaEnable:i[5],roomNameEnable:i[6],floorIndex:i[1],getRoomAreaText:i[9],getLabelElement:i[10],hoveredRoom:i[14],adaptiveRoomLabelVisibleEnable:i[12]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Cp({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&22370?at(n,[{floorplanData:s[8],roomAreaEnable:s[5],roomNameEnable:s[6],floorIndex:s[1],getRoomAreaText:s[9],getLabelElement:s[10],hoveredRoom:s[14],adaptiveRoomLabelVisibleEnable:s[12]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function vl(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Dp({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&2306?at(n,[{floorplanData:s[8],floorIndex:s[1],getRuleDistanceText:s[11]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function og(i){let t,e,n,o,s,r,a,l,c;const d=[{floorIndex:i[1],floorplanData:i[8]}];let h={};for(let b=0;b<d.length;b+=1)h=$e(h,d[b]);e=new qp({props:h});let u=(i[2]||i[3])&&pl(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let p={};for(let b=0;b<m.length;b+=1)p=$e(p,m[b]);s=new xh({props:p});let A=i[4]&&gl(i),g=i[7]&&vl(i);return{c(){t=L("div"),ie(e.$$.fragment),n=ee(),u&&u.c(),o=ee(),ie(s.$$.fragment),r=ee(),A&&A.c(),a=ee(),g&&g.c(),w(t,"class",l=Be(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(b,y){O(b,t,y),te(e,t,null),j(t,n),u&&u.m(t,null),j(t,o),te(s,t,null),j(t,r),A&&A.m(t,null),j(t,a),g&&g.m(t,null),c=!0},p(b,[y]){const P=y&258?at(d,[{floorIndex:b[1],floorplanData:b[8]}]):{};e.$set(P),b[2]||b[3]?u?(u.p(b,y),y&12&&k(u,1)):(u=pl(b),u.c(),k(u,1),u.m(t,o)):u&&(he(),T(u,1,1,()=>{u=null}),ue());const x=y&258?at(m,[{floorplanData:b[8],floorIndex:b[1]}]):{};s.$set(x),b[4]?A?(A.p(b,y),y&16&&k(A,1)):(A=gl(b),A.c(),k(A,1),A.m(t,a)):A&&(he(),T(A,1,1,()=>{A=null}),ue()),b[7]?g?(g.p(b,y),y&128&&k(g,1)):(g=vl(b),g.c(),k(g,1),g.m(t,null)):g&&(he(),T(g,1,1,()=>{g=null}),ue()),(!c||y&1&&l!==(l=Be(`floorplan-plugin__floor${b[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&w(t,"class",l)},i(b){c||(k(e.$$.fragment,b),k(u),k(s.$$.fragment,b),k(A),k(g),c=!0)},o(b){T(e.$$.fragment,b),T(u),T(s.$$.fragment,b),T(A),T(g),c=!1},d(b){b&&V(t),ne(e),u&&u.d(),ne(s),A&&A.d(),g&&g.d()}}}function sg(i,t,e){let{isCurrent:n}=t,{floorIndex:o}=t,{highlightEnable:s}=t,{hoverEnable:r}=t,{roomLabelsEnable:a}=t,{roomAreaEnable:l}=t,{roomNameEnable:c}=t,{ruleLabelsEnable:d}=t,{floorplanData:h}=t,{getRoomAreaText:u}=t,{getLabelElement:m}=t,{getRuleDistanceText:p}=t,{adaptiveRoomLabelVisibleEnable:A}=t,{highlightData:g}=t;const b=ga(void 0);return i.$$set=y=>{"isCurrent"in y&&e(0,n=y.isCurrent),"floorIndex"in y&&e(1,o=y.floorIndex),"highlightEnable"in y&&e(2,s=y.highlightEnable),"hoverEnable"in y&&e(3,r=y.hoverEnable),"roomLabelsEnable"in y&&e(4,a=y.roomLabelsEnable),"roomAreaEnable"in y&&e(5,l=y.roomAreaEnable),"roomNameEnable"in y&&e(6,c=y.roomNameEnable),"ruleLabelsEnable"in y&&e(7,d=y.ruleLabelsEnable),"floorplanData"in y&&e(8,h=y.floorplanData),"getRoomAreaText"in y&&e(9,u=y.getRoomAreaText),"getLabelElement"in y&&e(10,m=y.getLabelElement),"getRuleDistanceText"in y&&e(11,p=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(12,A=y.adaptiveRoomLabelVisibleEnable),"highlightData"in y&&e(13,g=y.highlightData)},[n,o,s,r,a,l,c,d,h,u,m,p,A,g,b]}let rg=class extends le{constructor(t){super(),ae(this,t,sg,og,re,{isCurrent:0,floorIndex:1,highlightEnable:2,hoverEnable:3,roomLabelsEnable:4,roomAreaEnable:5,roomNameEnable:6,ruleLabelsEnable:7,floorplanData:8,getRoomAreaText:9,getLabelElement:10,getRuleDistanceText:11,adaptiveRoomLabelVisibleEnable:12,highlightData:13},ig)}};function ag(i){de(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Al(i,t,e){const n=i.slice();return n[21]=t[e],n}function bl(i){let t,e,n,o,s,r=i[13].floorDatas,a=[];for(let h=0;h<r.length;h+=1)a[h]=yl(Al(i,r,h));const l=h=>T(a[h],1,1,()=>{a[h]=null});let c=i[5]&&wl(i),d=i[8]&&Cl(i);return{c(){t=L("div");for(let h=0;h<a.length;h+=1)a[h].c();e=ee(),c&&c.c(),n=ee(),d&&d.c(),w(t,"class","floorplan-main svelte-86bqav")},m(h,u){O(h,t,u);for(let m=0;m<a.length;m+=1)a[m]&&a[m].m(t,null);j(t,e),c&&c.m(t,null),j(t,n),d&&d.m(t,null),s=!0},p(h,u){if(i=h,u&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const p=Al(i,r,m);a[m]?(a[m].p(p,u),k(a[m],1)):(a[m]=yl(p),a[m].c(),k(a[m],1),a[m].m(t,e))}for(he(),m=r.length;m<a.length;m+=1)l(m);ue()}i[5]?c?(c.p(i,u),u&32&&k(c,1)):(c=wl(i),c.c(),k(c,1),c.m(t,n)):c&&(he(),T(c,1,1,()=>{c=null}),ue()),i[8]?d?(d.p(i,u),u&256&&k(d,1)):(d=Cl(i),d.c(),k(d,1),d.m(t,null)):d&&(he(),T(d,1,1,()=>{d=null}),ue())},i(h){if(!s){for(let u=0;u<r.length;u+=1)k(a[u]);k(c),k(d),o||rt(()=>{o=Ln(t,Mn,{duration:i[0],easing:an}),o.start()}),s=!0}},o(h){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)T(a[u]);T(c),T(d),s=!1},d(h){h&&V(t),Dt(a,h),c&&c.d(),d&&d.d()}}}function yl(i){let t,e;const n=[{hoverEnable:i[6],highlightEnable:i[7],floorplanData:i[13],getRoomAreaText:i[16],getLabelElement:i[17],getRuleDistanceText:i[18],roomLabelsEnable:i[9],roomAreaEnable:i[10],roomNameEnable:i[11],ruleLabelsEnable:i[12],adaptiveRoomLabelVisibleEnable:i[19],highlightData:i[20]},{floorIndex:i[21].floorIndex},{isCurrent:i[21].floorIndex===i[4]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new rg({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&2047696?at(n,[r&2047680&&{hoverEnable:s[6],highlightEnable:s[7],floorplanData:s[13],getRoomAreaText:s[16],getLabelElement:s[17],getRuleDistanceText:s[18],roomLabelsEnable:s[9],roomAreaEnable:s[10],roomNameEnable:s[11],ruleLabelsEnable:s[12],adaptiveRoomLabelVisibleEnable:s[19],highlightData:s[20]},r&8192&&{floorIndex:s[21].floorIndex},r&8208&&{isCurrent:s[21].floorIndex===s[4]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function wl(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Nm({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&57352?at(n,[{panoIndex:s[3],floorplanData:s[13],lastPanoramaLongitude:s[14],cameraImageUrl:s[15]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function Cl(i){let t,e;return t=new Km({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.floorplanData=n[13]),o&4&&(s.northDesc=n[2]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function lg(i){let t,e,n=i[1]&&bl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=bl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function cg(i,t,e){let{duration:n=0}=t,{visible:o}=t,{northDesc:s}=t,{panoIndex:r}=t,{floorIndex:a}=t,{cameraEnable:l}=t,{hoverEnable:c}=t,{highlightEnable:d}=t,{compassEnable:h}=t,{roomLabelsEnable:u}=t,{roomAreaEnable:m}=t,{roomNameEnable:p}=t,{ruleLabelsEnable:A}=t,{floorplanData:g}=t,{lastPanoramaLongitude:b}=t,{cameraImageUrl:y}=t,{getRoomAreaText:P}=t,{getLabelElement:x}=t,{getRuleDistanceText:D}=t,{adaptiveRoomLabelVisibleEnable:I}=t,{highlightData:B}=t;return i.$$set=S=>{"duration"in S&&e(0,n=S.duration),"visible"in S&&e(1,o=S.visible),"northDesc"in S&&e(2,s=S.northDesc),"panoIndex"in S&&e(3,r=S.panoIndex),"floorIndex"in S&&e(4,a=S.floorIndex),"cameraEnable"in S&&e(5,l=S.cameraEnable),"hoverEnable"in S&&e(6,c=S.hoverEnable),"highlightEnable"in S&&e(7,d=S.highlightEnable),"compassEnable"in S&&e(8,h=S.compassEnable),"roomLabelsEnable"in S&&e(9,u=S.roomLabelsEnable),"roomAreaEnable"in S&&e(10,m=S.roomAreaEnable),"roomNameEnable"in S&&e(11,p=S.roomNameEnable),"ruleLabelsEnable"in S&&e(12,A=S.ruleLabelsEnable),"floorplanData"in S&&e(13,g=S.floorplanData),"lastPanoramaLongitude"in S&&e(14,b=S.lastPanoramaLongitude),"cameraImageUrl"in S&&e(15,y=S.cameraImageUrl),"getRoomAreaText"in S&&e(16,P=S.getRoomAreaText),"getLabelElement"in S&&e(17,x=S.getLabelElement),"getRuleDistanceText"in S&&e(18,D=S.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in S&&e(19,I=S.adaptiveRoomLabelVisibleEnable),"highlightData"in S&&e(20,B=S.highlightData)},[n,o,s,r,a,l,c,d,h,u,m,p,A,g,b,y,P,x,D,I,B]}let va=class extends le{constructor(t){super(),ae(this,t,cg,lg,re,{duration:0,visible:1,northDesc:2,panoIndex:3,floorIndex:4,cameraEnable:5,hoverEnable:6,highlightEnable:7,compassEnable:8,roomLabelsEnable:9,roomAreaEnable:10,roomNameEnable:11,ruleLabelsEnable:12,floorplanData:13,lastPanoramaLongitude:14,cameraImageUrl:15,getRoomAreaText:16,getLabelElement:17,getRuleDistanceText:18,adaptiveRoomLabelVisibleEnable:19,highlightData:20},ag)}};const dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function hg(i){return Y(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(o){return Y(this,null,function*(){const s={index:o.index,url:o.url,svgUrl:o.svg_url};if(o.svg_url){const r=yield fetch(o.svg_url,{headers:t}).then(a=>a.text());s.svgContent=r}return s})};return yield Promise.all(i.map(e))})}function ug(i){return{id:i.id,size:i.size,name:i.name,path:i.path,roomType:i.room_type,floorType:i.floor_type,roomLabel:{position:i.room_label.position,positionInImage:i.room_label.position_in_image},observerIndexs:i.observer_indexs}}function fg(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(ug),rules:i.rules}}function mg(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function pg(i){return{rad:i.rad,position:i.position,positionInImage:i.position_in_image,northRad:i.north_rad,roomId:i.room_id,floorIndex:i.floor_index}}function dn(i){return Y(this,null,function*(){const t=yield hg(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(fg),o=i.computed_data.entrance?pg(i.computed_data.entrance):null;return{outlines:t,entrance:o,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(mg)}})}function gg(i,t,e){return i.map(o=>{const s=o.position,r=o.icon?o.icon:{url:dg,width:45,height:48},a=zp(s,t),l=Lp(s,e),c=Tp(l,e);return{floorIndex:a,icon:r,id:o.id,position:l,positionInImage:c}})}function vg(i,t){return t(i),i}function bs(i,t){return vg({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function Pl(i,t){const e=Math.max(...i.work.observers.map(n=>n.floorIndex));return t>e?i.model.bounding.max.y:Math.max(...i.work.observers.filter(n=>n.floorIndex===t).map(n=>n.standingPosition.y))}function Aa(i,t,e=sn.BOUNDING_CENTER){const n=Pl(i,t),o=Pl(i,t+1);return e===sn.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===sn.CEILING?o:n}function ba(i,t,e,n){const o=Aa(i,e,n==null?void 0:n.attachedTo),s=new E.Vector3(0,o,0),r=new E.Vector3(1,o,0),a=s.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}let no=class{constructor(t,e){f(this,"VERSION","2.21.0-dev.3");f(this,"five");f(this,"hooks",new di);f(this,"staticPrefix","//vrlab-static.ljcdn.com");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}isAbsoluteURL(t){return aa(t)?t:`${this.staticPrefix}${t}`}},Tn=class extends no{};var bt=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(bt||{});const Dh=500,Ag=80;function Fr(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function ya(i,t){return Y(this,null,function*(){const[e]=yield si(i.changeMode(...t));if(e)throw new Error("change mode canceled");yield new Promise(r=>{i.once("initAnimationWillStart",()=>{i.once("initAnimationEnded",()=>r())})});const n=t[1];if(!n)return!0;const o=i.getCurrentState();if(!bg(n,o))throw new Error("pose 与预期不符")})}function bg(i,t){return Object.keys(i).every(e=>{const n=t[e];if(n===void 0)return!0;const o=i[e];return typeof n=="number"&&typeof o=="number"?Fr(n,o,2):n===o})}function wa(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:o}=t,{latitude:s,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Fr(e,s,2)||!Fr(n,r,2)||o!==a)}function Lh(i,t,e=!0){return Y(this,null,function*(){if(wa(i,t)===!0)return;const o=i.getCurrentState();if(o.mode!==t.mode){const[d]=yield si(ya(i,[t.mode,t,void 0,e]));if(d)throw new Error(bt.ChangeModeError);return}const{latitude:s,longitude:r,fov:a}=o,l=Math.min(1e3,Math.max(200,Math.abs(s-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield si(i.updateCamera(t,l,e));if(c)throw new Error(bt.UpdateCameraError)})}function ai(i,t,e=300){const n=i.getElement();n&&(n.style.opacity=t+"",n.style.transition=e===0?"none":`opacity ${e}ms linear`,e!==0&&Promise.race([new Promise(o=>n.addEventListener("transitionend",o,{once:!0})),new Promise(o=>setTimeout(o,e))]).then(()=>{n.style.transition="none"}))}function yg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,o=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||o}function wg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}let Cg=class extends Tn{constructor(e,n){var a;super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>Y(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>Y(this,[...n],function*(e={}){this.state.enabled&&(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!wa(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,bt.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>Y(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(bt.ModelNotLoaded);if(!this.data)throw new Error(bt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=G(G({},n),e),s=()=>Y(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield si(Lh(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(bt.UnknownError);this.updateSize(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const d=o.modelOpacity,h=o.immediately?0:Dh;ai(this.five,d,h),this.render(h)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,bt.BreakOffByHide),this.showPromise=void 0;const o=G(G({},{userAction:!0,isAutoHide:!1}),e);ai(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFiveInteriaPan",(e,n)=>{if(!n||this.state.config.autoShowEnable===!1||this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();o.mode==="Floorplan"&&(this.state.visible||wg(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();yg(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n,isAutoHide:!0}))});f(this,"onFiveWantsGesture",(e,n)=>{if(this.state.visible&&(n.length>1||e==="mouseWheel"))return!1});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode==="Floorplan"&&this.state.config.autoShowEnable!==!1&&n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e==="Floorplan"&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")),this.showState={mode:"Floorplan",longitude:0,latitude:Math.PI/2,fov:Ag/((a=n==null?void 0:n.scale)!=null?a:1)};const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"㎡",getRuleDistanceText:l=>l.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("interiaPan",this.onFiveInteriaPan),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("interiaPan",this.onFiveInteriaPan),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const Pg=(i,t)=>new Cg(i,t);function Eg(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,o=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||o}function Ig(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,o=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&o}let kg=class extends Tn{constructor(e,n){super(e);f(this,"name","modelFloorplanPlugin");f(this,"state");f(this,"data");f(this,"showState");f(this,"showPromise");f(this,"app");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"selector");f(this,"showRejection");f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"show",(...n)=>Y(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const o=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},o),this._show(e)}));f(this,"hide",(...n)=>Y(this,[...n],function*(e={}){this.state.enabled&&(this.isHiddenByHideFunc=!0,this.state.visible!==!1&&(this.updateState({visible:!1},e.userAction||!0),this._hide(e)))}));f(this,"updateSize",()=>{if(!this.data||!wa(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(o=this.showRejection)==null||o.call(this,bt.BreakOffByDisable),this.showPromise=void 0,(s=this.app)==null||s.$destroy(),this.app=void 0,(r=this.container)==null||r.remove(),this.removeEventListener()});f(this,"_enable",e=>{const{userAction:n}=e;this.addEventListener(),this.wrapper&&(this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n}))});f(this,"_show",e=>Y(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(bt.ModelNotLoaded);if(!this.data)throw new Error(bt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},o=G(G({},n),e),s=()=>Y(this,null,function*(){this.hooks.emit("show",{userAction:o.userAction,auto:o.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield si(Lh(this.five,this.showState,o.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(bt.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=o.floorIndex,this.five.model.show(this.floorIndex);const d=o.modelOpacity,h=o.immediately?0:Dh;ai(this.five,d,h),this.render(h)});return this.showPromise=s().then(()=>{this.hooks.emit("showAnimationEnded",{auto:o.isAutoShow,userAction:o.userAction})}).catch(a=>{if(this.updateState({visible:!1},o.userAction),!o.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var s;(s=this.showRejection)==null||s.call(this,bt.BreakOffByHide),this.showPromise=void 0;const o=G(G({},{userAction:!0,isAutoHide:!1}),e);ai(this.five,1,0),this.hooks.emit("hide",{auto:o.isAutoHide,userAction:o.userAction}),this.render()});f(this,"handleClick",()=>{if(!this.state.visible)return;if(this.hooks.emit("click"))return!1});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",e=>{e!==this.showState.mode&&(this.updateState({visible:!1},!1),this._hide({userAction:!1}))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{if(!this.state.visible||this.showPromise)return;const o=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Eg(o)&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFiveWantsPanGesture",(e,n)=>{if(this.five.getCurrentState().mode===this.showState.mode&&this.state.config.autoShowEnable!==!1){if(n&&this.state.visible)return this.five.updateCamera(this.showState,0),!1;if(n&&!this.state.visible){if(this.isHiddenByHideFunc)return;const o=this.five.getCurrentState();return o.mode!==this.showState.mode||this.state.visible?void 0:(Ig(o)&&(this.updateState({visible:!0},!0),this._show({isAutoShow:!0})),!1)}}});f(this,"onFiveWantsTapGesture",()=>this.handleClick());f(this,"onFiveWantsChangeMode",(e,n)=>{n==="Panorama"&&e===this.showState.mode&&(this.lastPanoramaLongitude=this.five.getCurrentState().longitude)});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")),this.showState={mode:"Mapview",longitude:0,latitude:Math.PI/2,fov:90};const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled&&(e.enabled?this._enable({userAction:s}):this._disable({userAction:s})),e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=Aa(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new E.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:10,pointerEvents:"none"}),this.five.addExtraElement(this.container)}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsPanGesture",this.onFiveWantsPanGesture),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsChangeMode",this.onFiveWantsChangeMode),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modelLoaded",this.onFiveModelLoaded),e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsPanGesture",this.onFiveWantsPanGesture),e.off("wantsTapGesture",this.onFiveWantsTapGesture),e.off("wantsChangeMode",this.onFiveWantsChangeMode),e.off("modelShownFloorChange",this.onModelShownFloorChange)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const xg=(i,t)=>new kg(i,t);let Mg=class extends Tn{constructor(e,n){super(e);f(this,"name","topviewFloorplanPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"selector");f(this,"panoIndex",0);f(this,"floorIndex",0);f(this,"wrapper");f(this,"container",document.createElement("div"));f(this,"lastPanoramaLongitude",0);f(this,"size",{width:0,height:0});f(this,"hasAddedEventListener",!1);f(this,"isHiddenByHideFunc",!1);f(this,"highlightData",{});f(this,"updateSize",()=>{if(!this.data||!this.container||!this.wrapper||this.five.getCurrentState().mode!=="Topview")return;const{min:e,max:n}=this.data.bounding,o=n.x-e.x,s=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=ba(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(o*a),c=Math.ceil(s*a);this.size.width===l&&this.size.height===c||(this.container.style.width=l+"px",this.container.style.height=c+"px",this.size={width:l,height:c})});f(this,"dispose",()=>{var e,n;this.removeEventListener(),(e=this.app)==null||e.$destroy(),this.app=void 0,(n=this.container)==null||n.remove(),this.data=void 0,this.wrapper=void 0,this.selector=void 0,this.hooks.emit("dispose")});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o,s;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,(s=this.container)==null||s.remove(),this.removeEventListener(),this.hooks.emit("disable",{userAction:n})});f(this,"onFiveModelLoaded",()=>{if(this.state.enabled===!1||this.wrapper||!this.selector)return;const e=this.selector instanceof Element?this.selector:document.querySelector(this.selector);if(!e)throw new Error("不正确的父容器选择器");this.wrapper=e,e.append(this.container)});f(this,"onFiveModeChange",(...[e,,,,n])=>{e!=="Topview"&&this.state.visible&&(this.updateState({visible:!1},n),this._hide({userAction:n}))});f(this,"onFivePanoArrived",e=>{var n;(n=this.five)!=null&&n.work&&(this.panoIndex=e,this.floorIndex=this.five.work.observers[e].floorIndex)});f(this,"onFiveCameraUpdate",(e,n)=>{this.state.visible&&(this.updatePosition(),this.updateSize())});f(this,"onFiveWantsGesture",e=>{if(!(e!=="pan"&&e!=="pinch"&&e!=="mouseWheel")&&this.state.visible&&!this.state.config.gestureEnable)return!1});f(this,"onFiveWantsMoveToPano",()=>{if(this.state.visible&&this.state.config.preventRoomClick)return!1});f(this,"onFiveInitAnimationEnded",(...[,,e])=>{const{mode:n}=this.five.getCurrentState();n==="Topview"&&!this.isHiddenByHideFunc&&!this.state.visible&&this.state.config.autoShowEnable&&(this.updateState({visible:!0},e),this._show({userAction:e}))});f(this,"onModelShownFloorChange",e=>{if(this.floorIndex!==e){if(e===null){const n=this.five.getCurrentState().panoIndex;this.floorIndex=this.five.work.observers[n].floorIndex;return}this.floorIndex=e,this.updateSize(),this.render()}});n!=null&&n.selector&&(this.selector=n.selector,console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"));const o={northDesc:"北",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:cn,attachedTo:sn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},s=n?bs(n,["selector","scale"]):{},r=G(G({},o),s);this.state={enabled:!0,visible:!1,config:r},this.initContainer(),e.model.loaded?this.onFiveModelLoaded():e.once("modelLoaded",this.onFiveModelLoaded),e.once("dispose",this.dispose),this.addEventListener()}load(e,n,o=!0){return Y(this,null,function*(){function s(d){return Object.prototype.hasOwnProperty.apply(d,["version"])}const r=e;r&&!r.version&&console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");const a=JSON.parse(JSON.stringify(e)),l=s(a)?a.data:a,c=this.data;this.data=yield dn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,o),this.render()})}updatePosition(){var a;const e=Aa(this.five,this.floorIndex,this.state.config.attachedTo),n=(a=this.five.model)==null?void 0:a.bounding.getCenter(new E.Vector3).setY(e);if(!n)return;const o=n.clone().project(this.five.camera),s=(o.x+1)/2,r=-(o.y-1)/2;this.container.style.left=s*100+"%",this.container.style.top=r*100+"%"}appendTo(e){if(this.wrapper=e,!!this.state.enabled)return e.appendChild(this.container),this.render(),this}show(){return Y(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return Y(this,arguments,function*(e={}){if(this.isHiddenByHideFunc=!0,!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}_show(e){return Y(this,null,function*(){if(!this.state.enabled)return;this.isHiddenByHideFunc=!1;const{userAction:n}=e;this.hooks.emit("show",{userAction:n,auto:!1}),this.five.getCurrentState().mode!=="Topview"&&(yield ya(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const o=500,s=this.state.config.modelOpacity;ai(this.five,s,o),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return Y(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const o=1,s=0;ai(this.five,o,s),this.render()})}_enable(e){const{userAction:n}=e;this.addEventListener(),this.wrapper&&this.wrapper.append(this.container),this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}updateState(e,n){const o=this.state,s=e.config?G(G({},o.config),e.config):o.config;this.state=be(G(G({},this.state),e),{config:s}),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}addEventListener(){if(!this.state.enabled||this.hasAddedEventListener)return;const e=this.five;e.on("modeChange",this.onFiveModeChange),e.on("panoArrived",this.onFivePanoArrived),e.on("cameraUpdate",this.onFiveCameraUpdate),e.on("wantsGesture",this.onFiveWantsGesture),e.on("wantsMoveToPano",this.onFiveWantsMoveToPano),e.on("initAnimationEnded",this.onFiveInitAnimationEnded),e.on("modelShownFloorChange",this.onModelShownFloorChange)}removeEventListener(){const e=this.five;this.hasAddedEventListener=!1,e.off("modeChange",this.onFiveModeChange),e.off("panoArrived",this.onFivePanoArrived),e.off("cameraUpdate",this.onFiveCameraUpdate),e.off("wantsGesture",this.onFiveWantsGesture),e.off("wantsMoveToPano",this.onFiveWantsMoveToPano),e.off("initAnimationEnded",this.onFiveInitAnimationEnded),e.off("modelShownFloorChange",this.onModelShownFloorChange)}initContainer(){this.container.classList.add("floorplan-plugin"),Object.assign(this.container.style,{position:"absolute",left:"50%",top:"50%",transform:"translate3d(-50%, -50%, 10px)",zIndex:10,pointerEvents:"none","will-change":"width, height"}),this.five.addExtraElement(this.container)}render(e){if(!this.state.enabled||!this.container||!this.data||this.size.width===0)return;const n=be(G({},this.state.config),{visible:this.state.visible,duration:e!=null?e:0,panoIndex:this.panoIndex,floorIndex:this.floorIndex,floorplanData:this.data,lastPanoramaLongitude:this.lastPanoramaLongitude,highlightData:this.highlightData});if(this.app)return this.app.$set(n);this.app=new va({target:this.container,intro:!0,props:n})}};const Sg=(i,t)=>new Mg(i,t);function Ca(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Dg(i){de(i,"svelte-1nqrlxd",".plugin-radar__camera-wrapper.svelte-1nqrlxd{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1nqrlxd{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1nqrlxd{position:absolute;left:-0.9375rem;top:-0.9375rem;width:1.0625rem;height:1.0625rem;transform-origin:0.9375rem 0.9375rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}")}function Lg(i){let t,e,n;return{c(){t=L("div"),e=L("div"),n=L("div"),w(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),z(n,"background-image","url("+(i[0]||cn)+")"),z(n,"transform",i[1]),w(e,"class","plugin-radar__camera-position svelte-1nqrlxd"),z(e,"transform",i[2]),w(t,"class","plugin-radar__camera-wrapper svelte-1nqrlxd")},m(o,s){O(o,t,s),j(t,e),j(e,n)},p(o,[s]){s&1&&z(n,"background-image","url("+(o[0]||cn)+")"),(s&1||s&3)&&z(n,"transform",o[1]),s&4&&z(e,"transform",o[2])},i:Z,o:Z,d(o){o&&V(t)}}}function Tg(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function zg(i,t,e){let n,o,{five:s}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=s.getCurrentState().panoIndex,d=s.getCurrentState().longitude;function h(p,A){const g=p.bounding,b=p.observers[A];if(!b)return"";const y=(g.max.x-g.min.x)*r,P=(g.max.y-g.min.y)*r,x=Math.floor(b.positionInImage.x*y),D=Math.floor(b.positionInImage.y*P);return`translate(${x}px, ${D}px)`}function u(p){e(6,c=p)}const m=Ca(p=>{e(7,d=p.longitude)},1e3/60);return yt(()=>(s.on("panoWillArrive",u),s.on("cameraDirectionUpdate",m),function(){s.off("panoWillArrive",u),s.off("cameraDirectionUpdate",m)})),i.$$set=p=>{"five"in p&&e(3,s=p.five),"pxmm"in p&&e(4,r=p.pxmm),"floorplanData"in p&&e(5,a=p.floorplanData),"cameraImageUrl"in p&&e(0,l=p.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=h(a,c)),i.$$.dirty&128&&e(1,o=Tg(d))},[l,o,n,s,r,a,c,d]}class jg extends le{constructor(t){super(),ae(this,t,zg,Lg,re,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Dg)}}function Vg(i){de(i,"svelte-1i87fz7",".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}")}function El(i,t,e){const n=i.slice();return n[1]=t[e],n}function Il(i,t){let e,n,o=`${t[1].icon.width/16}rem`,s=`${t[1].icon.height/16}rem`,r,a=`${t[1].positionInImage.y*100}%`,l=`${t[1].positionInImage.x*100}%`;return{key:i,first:null,c(){e=L("div"),n=L("div"),r=ee(),w(n,"class","plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),z(n,"background-image",`url(${t[1].icon.url})`),z(n,"width",o),z(n,"height",s),w(e,"class","plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"),z(e,"top",a),z(e,"left",l),this.first=e},m(c,d){O(c,e,d),j(e,n),j(e,r)},p(c,d){t=c,d&1&&z(n,"background-image",`url(${t[1].icon.url})`);const h=d&1;h&&z(n,"width",o),h&&z(n,"height",s),d&1&&a!==(a=`${t[1].positionInImage.y*100}%`)&&z(e,"top",a),d&1&&l!==(l=`${t[1].positionInImage.x*100}%`)&&z(e,"left",l)},d(c){c&&V(e)}}}function Og(i){let t,e=[],n=new Map,o=i[0];const s=r=>r[1].id;for(let r=0;r<o.length;r+=1){let a=El(i,o,r),l=s(a);n.set(l,e[r]=Il(l,a))}return{c(){t=L("div");for(let r=0;r<e.length;r+=1)e[r].c();w(t,"class","plugin-pano-floorplan__extra-objects svelte-1i87fz7")},m(r,a){O(r,t,a);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(t,null)},p(r,[a]){a&1&&(o=r[0],e=Lt(e,a,s,1,r,o,n,t,fa,Il,null,El))},i:Z,o:Z,d(r){r&&V(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Bg(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=o=>{"extraObjects"in o&&e(0,n=o.extraObjects)},[n]}class Rg extends le{constructor(t){super(),ae(this,t,Bg,Og,re,{extraObjects:0},Vg)}}function kl(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[7],highlightData:i[5]}];let o={};for(let s=0;s<n.length;s+=1)o=$e(o,n[s]);return t=new Sh({props:o}),{c(){ie(t.$$.fragment)},m(s,r){te(t,s,r),e=!0},p(s,r){const a=r&183?at(n,[{five:s[0],pxmm:s[1],floorIndex:s[2],floorplanData:s[4],onRoomHeightClick:s[7],highlightData:s[5]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){T(t.$$.fragment,s),e=!1},d(s){ne(t,s)}}}function _g(i){let t,e,n,o,s,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let d=0;d<a.length;d+=1)l=$e(l,a[d]);t=new xh({props:l}),n=new Rg({props:{extraObjects:i[6]}});let c=i[3]&&kl(i);return{c(){ie(t.$$.fragment),e=ee(),ie(n.$$.fragment),o=ee(),c&&c.c(),s=Ee()},m(d,h){te(t,d,h),O(d,e,h),te(n,d,h),O(d,o,h),c&&c.m(d,h),O(d,s,h),r=!0},p(d,[h]){const u=h&20?at(a,[{floorIndex:d[2],floorplanData:d[4]}]):{};t.$set(u);const m={};h&64&&(m.extraObjects=d[6]),n.$set(m),d[3]?c?(c.p(d,h),h&8&&k(c,1)):(c=kl(d),c.c(),k(c,1),c.m(s.parentNode,s)):c&&(he(),T(c,1,1,()=>{c=null}),ue())},i(d){r||(k(t.$$.fragment,d),k(n.$$.fragment,d),k(c),r=!0)},o(d){T(t.$$.fragment,d),T(n.$$.fragment,d),T(c),r=!1},d(d){ne(t,d),d&&V(e),ne(n,d),d&&V(o),c&&c.d(d),d&&V(s)}}}function Qg(i,t,e){let n,{five:o}=t,{pxmm:s}=t,{floorIndex:r}=t,{hoverEnable:a}=t,{floorplanData:l}=t,{extraObjects:c=[]}=t,{highlightData:d}=t;const h=void 0;return i.$$set=u=>{"five"in u&&e(0,o=u.five),"pxmm"in u&&e(1,s=u.pxmm),"floorIndex"in u&&e(2,r=u.floorIndex),"hoverEnable"in u&&e(3,a=u.hoverEnable),"floorplanData"in u&&e(4,l=u.floorplanData),"extraObjects"in u&&e(8,c=u.extraObjects),"highlightData"in u&&e(5,d=u.highlightData)},i.$$.update=()=>{i.$$.dirty&260&&e(6,n=c==null?void 0:c.filter(u=>u.floorIndex===r))},[o,s,r,a,l,d,n,h,c]}class Hg extends le{constructor(t){super(),ae(this,t,Qg,_g,re,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:8,highlightData:5})}}function Gg(i){de(i,"svelte-1mvqyqq",".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}")}function xl(i){let t,e,n,o,s=i[7]!==0&&Ml(i);return{c(){t=L("div"),s&&s.c(),w(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){O(r,t,a),s&&s.m(t,null),e=!0,n||(o=[Jt(Ai.call(null,t)),Ae(t,"clientWidth",i[13]),Ae(t,"clientHeight",i[14])],n=!0)},p(r,a){r[7]!==0?s?(s.p(r,a),a&128&&k(s,1)):(s=Ml(r),s.c(),k(s,1),s.m(t,null)):s&&(he(),T(s,1,1,()=>{s=null}),ue())},i(r){e||(k(s),e=!0)},o(r){T(s),e=!1},d(r){r&&V(t),s&&s.d(),n=!1,qe(o)}}}function Ml(i){let t,e,n,o,s=`${i[9]}px`,r=`${i[12]}px`,a;const l=[{five:i[0],pxmm:i[10],floorIndex:i[11],floorplanData:i[3],hoverEnable:i[2],extraObjects:i[5],highlightData:i[6]}];let c={};for(let u=0;u<l.length;u+=1)c=$e(c,l[u]);e=new Hg({props:c});const d=[{pxmm:i[10],five:i[0],floorplanData:i[3],cameraImageUrl:i[4]}];let h={};for(let u=0;u<d.length;u+=1)h=$e(h,d[u]);return o=new jg({props:h}),{c(){t=L("div"),ie(e.$$.fragment),n=ee(),ie(o.$$.fragment),w(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),z(t,"width",s),z(t,"height",r)},m(u,m){O(u,t,m),te(e,t,null),j(t,n),te(o,t,null),a=!0},p(u,m){const p=m&3181?at(l,[{five:u[0],pxmm:u[10],floorIndex:u[11],floorplanData:u[3],hoverEnable:u[2],extraObjects:u[5],highlightData:u[6]}]):{};e.$set(p);const A=m&1049?at(d,[{pxmm:u[10],five:u[0],floorplanData:u[3],cameraImageUrl:u[4]}]):{};o.$set(A),m&512&&s!==(s=`${u[9]}px`)&&z(t,"width",s),m&4096&&r!==(r=`${u[12]}px`)&&z(t,"height",r)},i(u){a||(k(e.$$.fragment,u),k(o.$$.fragment,u),a=!0)},o(u){T(e.$$.fragment,u),T(o.$$.fragment,u),a=!1},d(u){u&&V(t),ne(e),ne(o)}}}function Fg(i){let t,e,n=i[1]&&xl(i);return{c(){n&&n.c(),t=Ee()},m(o,s){n&&n.m(o,s),O(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=xl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(he(),T(n,1,1,()=>{n=null}),ue())},i(o){e||(k(n),e=!0)},o(o){T(n),e=!1},d(o){n&&n.d(o),o&&V(t)}}}function Wg(i,t,e){var P,x;let{five:n}=t,{visible:o}=t,{hoverEnable:s}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,{highlightData:c}=t,d=0,h=(x=(P=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:P.floorIndex)!=null?x:0,u=0,m=0,p=0,A=0;function g(D){e(11,h=n.work.observers[D].floorIndex)}yt(()=>(n.on("panoArrived",g),()=>{n.off("panoArrived",g)}));const b=D=>{e(7,u=D.detail)},y=D=>{e(8,m=D.detail)};return i.$$set=D=>{"five"in D&&e(0,n=D.five),"visible"in D&&e(1,o=D.visible),"hoverEnable"in D&&e(2,s=D.hoverEnable),"floorplanData"in D&&e(3,r=D.floorplanData),"cameraImageUrl"in D&&e(4,a=D.cameraImageUrl),"extraObjects"in D&&e(5,l=D.extraObjects),"highlightData"in D&&e(6,c=D.highlightData)},i.$$.update=()=>{if(i.$$.dirty&904){const D=Math.min(u,m),{max:I,min:B}=r.bounding,S=I.x-B.x,X=I.y-B.y,J=function(){return S>X?[D,D/S*X]:[D/X*S,D]}();e(9,p=J[0]),e(12,A=J[1]),e(10,d=p/S)}},[n,o,s,r,a,l,c,u,m,p,d,h,A,b,y]}class Ng extends le{constructor(t){super(),ae(this,t,Wg,Fg,re,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5,highlightData:6},Gg)}}let Yg=class extends Tn{constructor(e,n){super(e);f(this,"name","panoFloorplanRadarPlugin");f(this,"state");f(this,"data");f(this,"app");f(this,"wrapperSelector","");f(this,"wrapper",null);f(this,"disposed",!1);f(this,"extraObjects",[]);f(this,"highlightData",{});f(this,"dispose",()=>{var e;this.disposed=!0,(e=this.app)==null||e.$destroy(),this.wrapper=null,this.wrapperSelector="",this.hooks.emit("dispose")});f(this,"highlight",e=>{this.state.config.highlightEnable&&(this.highlightData=e,this.render())});f(this,"unhighlight",()=>{this.highlightData={},this.render()});f(this,"_disable",e=>{var o;const{userAction:n}=e;(o=this.app)==null||o.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const o={hoverEnable:!0,highlightEnable:!0,cameraImageUrl:cn},s=n!=null&&n.configs?n.configs:{},r=G(G({},o),s);this.state={enabled:!0,visible:!0,config:r},n!=null&&n.wrapper&&console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"),typeof(n==null?void 0:n.wrapper)=="string"?this.wrapperSelector=n.wrapper:(n==null?void 0:n.wrapper)instanceof Element&&(this.wrapper=n.wrapper),e.once("dispose",this.dispose)}load(e,n,o=!0){return Y(this,null,function*(){function s(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=s(r)?r.data:r,l=this.data;this.data=yield dn(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,o),this.render()})}show(){return Y(this,arguments,function*(e={}){if(this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},n),this._show({userAction:n})})}hide(){return Y(this,arguments,function*(e={}){if(!this.state.visible)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!1},n),this._hide({userAction:n})})}enable(e={}){if(this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!0},e.userAction||n),this._enable({userAction:n})}disable(e={}){if(!this.state.enabled)return;const n=e.userAction!==void 0?e.userAction:!0;this.updateState({enabled:!1},e.userAction||n),this._disable({userAction:n})}setState(e,n={}){const o=this.state,s=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,s),e.enabled!==void 0&&o.enabled!==e.enabled){const r={userAction:s};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&o.visible!==e.visible){const r={userAction:s};e.visible?this._show(r):this._hide(r)}}appendTo(e){this.wrapper=e,this.render()}changeConfigs(e,n=!0){this.setState({config:e},{userAction:n}),this.render()}setExtraObjectsWith3DPositions(e){this.data&&(this.extraObjects=gg(e,this.five,this.data),this.render())}formatData(e){return Y(this,null,function*(){return yield dn(e.data)})}_enable(e){const{userAction:n}=e;this.hooks.emit("enable",{userAction:n}),this.state.visible&&this._show({userAction:n})}_show(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("show",{userAction:n}),this.render()}_hide(e){if(this.disposed||!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n}),this.render()}updateState(e,n){const o=this.state;this.state=G(G({},this.state),e),!Bt(this.state,o,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n})}render(){if(this.disposed||!this.state.enabled)return;if(!this.wrapper&&this.wrapperSelector){const n=document.querySelector(this.wrapperSelector);this.wrapper=n}if(!this.data||!this.wrapper)return;const e=be(G({},this.state.config),{five:this.five,floorplanData:this.data,visible:this.state.visible,extraObjects:this.extraObjects,highlightData:this.highlightData});this.app?this.app.$set(e):this.app=new Ng({target:this.wrapper,props:e})}};const Xg=(i,t)=>new Yg(i,t),Ug=[{type:0,floorType:1,roomType:"100900000012",name:"其他"},{type:1,floorType:1,roomType:"100900000002",name:"客厅"},{type:2,floorType:1,roomType:"100900000002",name:"餐厅"},{type:3,floorType:0,roomType:"100900000001",name:"卧室"},{type:4,floorType:0,roomType:"100900000001",name:"书房"},{type:5,floorType:3,roomType:"100900000004",name:"卫生间"},{type:6,floorType:3,roomType:"100900000004",name:"淋浴间"},{type:7,floorType:3,roomType:"100900000004",name:"洗手间"},{type:8,floorType:3,roomType:"100900000003",name:"厨房"},{type:9,floorType:1,roomType:"100900000003",name:"开放厨房",onlySubArea:!0},{type:10,floorType:0,roomType:"100900000001",name:"多功能间"},{type:11,floorType:0,roomType:"100900000009",name:"保姆间"},{type:12,floorType:4,roomType:"100900000005",name:"阳台"},{type:13,floorType:4,roomType:"100900000006",name:"露台"},{type:14,floorType:0,roomType:"100900000008",name:"储物间"},{type:15,floorType:0,roomType:"100900000013",name:"衣帽间"},{type:16,floorType:0,roomType:"100900000011",name:"阁楼"},{type:17,floorType:2,roomType:"100900000007",name:"花园"},{type:18,floorType:5,roomType:"100900000010",name:"车库"},{type:19,floorType:1,roomType:"100900000012",name:"电梯"},{type:20,floorType:1,roomType:"100900000012",name:"地下室"},{type:21,floorType:1,roomType:"100900000012",name:"天井"},{type:22,floorType:1,roomType:"100900000012",name:"阳光房"},{type:23,floorType:1,roomType:"100900000012",name:"过道"},{type:24,floorType:1,roomType:"100900000012",name:"楼梯间"},{type:25,floorType:1,roomType:"100900000012",name:"门厅"},{type:26,floorType:2,roomType:"100900000012",name:"入户花园"},{type:27,floorType:1,roomType:"100900000012",name:"玄关"},{type:28,floorType:1,roomType:"100900000012",name:"挑空"},{type:29,floorType:4,roomType:"100900000012",name:"晾晒区"},{type:30,floorType:4,roomType:"100900000012",name:"洗衣房"},{type:31,floorType:0,roomType:"100900000012",name:"娱乐区"},{type:32,floorType:0,roomType:"100900000012",name:"健身区"},{type:33,floorType:0,roomType:"100900000012",name:"接待区"},{type:34,floorType:0,roomType:"100900000012",name:"影音区"},{type:35,floorType:1,roomType:"100900000012",name:"餐饮区"},{type:36,floorType:1,roomType:"100900000012",name:"其他",onlySubArea:!0},{type:37,floorType:1,roomType:"100900000002",name:"起居室"},{type:38,floorType:0,roomType:"100900000001",name:"主卧"},{type:39,floorType:0,roomType:"100900000001",name:"次卧"},{type:40,floorType:0,roomType:"100900000001",name:"优化间"},{type:41,floorType:0,roomType:"100900000001",name:"办公室"},{type:42,floorType:0,roomType:"100900000001",name:"会议室"},{type:43,floorType:0,roomType:"100900000001",name:"洽谈间"},{type:44,floorType:1,roomType:"100900000002",name:"共享大厅"},{type:45,floorType:1,roomType:"100900000012",name:"水吧"},{type:46,floorType:0,roomType:"100900000015",name:"出入口"},{type:47,floorType:0,roomType:"100900000015",name:"大厅"},{type:48,floorType:0,roomType:"100900000015",name:"包厢"},{type:49,floorType:0,roomType:"100900000015",name:"其他"},{type:50,floorType:0,roomType:"100900000016",name:"出入口"},{type:51,floorType:0,roomType:"100900000016",name:"办公区"},{type:52,floorType:0,roomType:"100900000016",name:"老板间"},{type:53,floorType:0,roomType:"100900000016",name:"会议室"},{type:54,floorType:0,roomType:"100900000016",name:"休息区/水吧"},{type:55,floorType:0,roomType:"100900000016",name:"其他"},{type:56,floorType:2,roomType:"100900000012",name:"空中花园"},{type:57,floorType:0,roomType:"100900000001",name:"洋室"},{type:58,floorType:0,roomType:"100900000001",name:"和室"}],qg=[{type:0,description:"木质地板"},{type:1,description:"瓷砖地面"},{type:2,description:"户外地面"},{type:3,description:"卫生间地面"},{type:4,description:"阳台地面"},{type:5,description:"车库地面"}],Jg=[{roomType:"100900000001",description:"室"},{roomType:"100900000002",description:"厅"},{roomType:"100900000003",description:"厨"},{roomType:"100900000004",description:"卫"},{roomType:"100900000005",description:"阳台"},{roomType:"100900000006",description:"露台"},{roomType:"100900000007",description:"花园"},{roomType:"100900000008",description:"储"},{roomType:"100900000009",description:"保姆间"},{roomType:"100900000010",description:"车库"},{roomType:"100900000011",description:"阁楼"},{roomType:"100900000012",description:"其他"},{roomType:"100900000013",description:"衣"},{roomType:"100900000015",description:"商铺"},{roomType:"100900000016",description:"写字楼"}],br=(i,t,e)=>{const n=new E.Matrix4,o=new E.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(o),n},Zg=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[o,s,r]=e;o&&i.applyMatrix4(br(o,0,0)),s&&i.applyMatrix4(br(0,s,0)),r&&i.applyMatrix4(br(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function Th(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const o=e,s=G({map:o.material.map||{}},t);o.material=new R.MeshBasicMaterial(s),o.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const Kg=(i,t)=>{var d;const e=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX",n=(d=t.north_rad)!=null?d:void 0,o={},s=h=>Y(exports,null,function*(){var Q;const u=(h==null?void 0:h.fbx_url)||e,m=(Q=h==null?void 0:h.north_rad)!=null?Q:n;if(typeof m!="number")throw new Error('"northRad"配置参数缺失:未配置指南针指向!');const p=i.model.bounding,A=p.max.x-p.min.x,g=p.max.z-p.min.z,b=Math.max(A,g),P=yield new Qd.FBXLoader().loadAsync(u);Th(P,{transparent:!0,side:E.DoubleSide,blending:E.AdditiveBlending});const x=[0,m-Math.PI/2,0],{model:{bounding:{max:{x:D,z:I},min:{x:B,y:S,z:X}}}}=i;o.yBase=S;const J={x:(D+B)/2,y:S-1.6,z:(I+X)/2},H=.0045*b;return Zg(P,{position:J,rotation:x,scale:H}),o.object=P,!0}),r=({latitude:h})=>{if(!o.object)return;const u=a(h);u&&(o.object.position.y=u)},a=h=>{if(o.yBase===void 0)return;const u=.6;if(h>=Math.PI/4)return o.yBase-(u+1.6);const m=h*(4/Math.PI);return o.yBase-(u*m+1.6)};return{load:s,disable:()=>{o.object&&(i.scene.remove(o.object),i.needsRender=!0,i.off("cameraDirectionUpdate",r))},enable:()=>{if(!o.object)return;const h=a(i.getPose().latitude);h&&(o.object.position.y=h),i.scene.add(o.object),i.needsRender=!0,i.on("cameraDirectionUpdate",r)}}};function $g(i,t){var c,d,h,u,m;const e=(c=t==null?void 0:t.size)!=null?c:512,n=(d=t==null?void 0:t.fontSize)!=null?d:e*(35/256)*1.2,o=(h=t==null?void 0:t.backgroundColor)!=null?h:"rgba(0,0,0,0)",s=(u=t==null?void 0:t.fontColor)!=null?u:"#fff",r=(m=t==null?void 0:t.textAlign)!=null?m:"center",a=document.createElement("canvas");a.setAttribute("width",e+""),a.setAttribute("height",e+"");const l=a.getContext("2d");return l.fillStyle=o,l.fillRect(0,0,e,e),l.font=`${n}px "微软雅黑"`,l.textAlign=r,l.fillStyle=s,l.fillText(i,e/2,e*.7),new R.CanvasTexture(a)}const ev=({x:i,y:t,z:e})=>new R.Vector3(i,t,e),tv=(i,t)=>{var A,g,b;const e={},n=(A=t.animationEnabled)!=null?A:!0,o=(g=t.position)!=null?g:void 0,s=(b=t.rad)!=null?b:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=y=>Y(exports,null,function*(){var J,H,Q,F,_,W,q,U;const P=(J=y==null?void 0:y.position)!=null?J:o;if(!P)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const x=ev(P),D=(H=y==null?void 0:y.rad)!=null?H:s,I=(Q=y==null?void 0:y.fbx_url)!=null?Q:r;if(e.rad=D,D===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`));const B=yield new Qd.FBXLoader().loadAsync(I);B.position.copy(x),B.rotation.z=D,B.scale.set(.8,.8,.8),Th(B,{transparent:!0,side:E.DoubleSide});const S=(q=(W=(_=(F=B.children)==null?void 0:F[0])==null?void 0:_.children)==null?void 0:W[3])==null?void 0:q.clone();if(!S)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${S}`));const X=(U=t.name)!=null?U:"入户门";return S.material=new R.MeshBasicMaterial({transparent:!0,map:$g(X)}),S.renderOrder=3,B.children[0].add(S),e.object=B,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const y=1,P=new R.AnimationMixer(e.object);a.push(P);const x=P.clipAction(e.object.animations[0]);x.timeScale=y;let D;const I=()=>{let J=0,H=0;const Q=1e3/30,F=_=>{J=requestAnimationFrame(F);const W=_-H;W<Q||(H=_,a.forEach(q=>q.update(W/1e3)),i.needsRender=!0)};return J=requestAnimationFrame(F),()=>{cancelAnimationFrame(J)}},X={play:()=>{D||(x.play(),D=I(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{x.stop(),D==null||D(),D=void 0}};e.animation=X},d=y=>{var x;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((x=y==null?void 0:y.animationEnable)!=null?x:n)&&(e.animation||c(),e.animation.play()),i.scene.add(e.object),i.needsRender=!0},h=()=>{e.object&&(e.animation&&e.animation.stop(),i.scene.remove(e.object),i.needsRender=!0)},u=y=>y==="Floorplan"?d():h();return{load:l,enable:y=>(e.enabled||(e.enabled=!0,u(i.currentMode),i.on("modeChange",u),d(y)),!0),disable:()=>(e.enabled&&(e.enabled=!1,h(),i.off("modeChange",u)),!0)}},nv=Mt;function iv(i,t,e,n=nv.Linear.None){const o=new cs(i).to(t,e).easing(n);us(()=>o.start(0));const s=to(a=>{o.update(a)===!1&&s()}),r=[];return o.onDestroy=a=>(r.push(a),o),o.destroy=function(){this.stop(),Object.assign(o,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();s()},o}function ov(i,t){return iv({progress:0},{progress:1},i,t)}var zh=(i=>(i.Move="Move",i.Rotate="Rotate",i))(zh||{}),Ot=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Ot||{});const Go=Math.PI*2;function Sl(i){return(i%Go+Go)%Go}function Dl(i){return i%Go}function yr(i,t,e){return i+(t-i)*e}const Wr=(i,t,e)=>{const n=Math.PI,o=n*2;let s=Sl(i),r=Sl(t);return e===Ot.Anticlockwise&&s<r&&(s+=o),e===Ot.Clockwise&&r<s&&(r+=o),e===Ot.Loop&&r-s>n?Wr(s,r,Ot.Anticlockwise):e===Ot.Loop&&s-r>n?Wr(s,r,Ot.Clockwise):{from:s,to:r}},sv=i=>{const t={},e=(l,c,...d)=>Y(exports,[l,c,...d],function*(s,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),s.mode&&s.mode!==i.currentMode&&(yield i.changeMode(s.mode)),a.preload&&s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(yield i.preloadPano(s.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),s.panoIndex===void 0&&s.fov===void 0&&s.latitude===void 0&&s.longitude===void 0?!0:yield new Promise((h,u)=>{const m=s.panoIndex!==void 0?s.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,G({duration:r,moveEndCallback:()=>h(!0),moveCancelCallback:()=>u(new Error("move canceled"))},s)):u(new Error("unexpected error"))})}),n=s=>{const r=i.state,a=Dl(r.latitude),l=Dl(s.latitude),{from:c,to:d}=Wr(r.longitude,s.longitude,s.rotation||Ot.Loop),h=r.fov,u=s.fov;return{from:{latitude:a,longitude:c,fov:h},to:{latitude:l,longitude:d,fov:u}}};return{move:e,rotate:(l,c,...d)=>Y(exports,[l,c,...d],function*(s,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==De.Five.Mode.Panorama&&(yield i.changeMode(De.Five.Mode.Panorama)),s.panoIndex!==void 0&&s.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(s.panoIndex)),yield new Promise((m,p)=>{if(!s.panoIndex){m(!0);return}i.moveToPano(s.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>p(new Error("move canceled"))})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:h,to:u}=n(s);return yield new Promise(m=>{const p=({progress:P})=>{const x={};x.longitude=yr(h.longitude,u.longitude,P),x.latitude=yr(h.latitude,u.latitude,P),x.fov=yr(h.fov,u.fov,P),i.setState(x,!0)},A=()=>{m(!0)},g=()=>{m(!1)},b=s.rotateSpeed?Math.ceil(Math.abs(u.longitude-h.longitude)/s.rotateSpeed*1e3):r,y=ov(b,Mt.Linear.None).onUpdate(p).onComplete(A).onDestroy(g);s.rotation===Ot.Loop&&y.repeat(1/0).yoyo(!0),t.interruptCallback=(P=!0)=>{y.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(P)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Ll(i,t){return i.x===t.x&&i.y===t.y}function jh(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function ns(i,t){return(t.y-i.y)/(t.x-i.x)}function Vh(i,t,e){const n=ns(i[1],i[0]),o=ns(t[1],t[0]);if(isNaN(n)||isNaN(o)||jh(n,o))return!1;if(xo(i[0],t))return i[0];if(xo(i[1],t))return i[1];if(xo(t[0],i))return t[0];if(xo(t[1],i))return t[1];if(e&&!rv(i,t))return!1;const s=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:s.x,y:t[1].y-(t[1].x-s.x)*o};if(Math.abs(o)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-s.y+n*s.x-o*r.x)/(n-o),l=n*a-n*s.x+s.y;return{x:a,y:l}}function xo(i,t){return Ll(i,t[0])||Ll(i,t[1])?!0:(t[0].x-i.x)*(i.x-t[1].x)>=0&&(t[0].y-i.y)*(i.y-t[1].y)>=0&&jh(ns(t[0],i),ns(i,t[1]))}function Mo(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function rv(i,t){return Math.max(i[0].x,i[1].x)>=Math.min(t[0].x,t[1].x)&&Math.max(t[0].x,t[1].x)>=Math.min(i[0].x,i[1].x)&&Math.max(i[0].y,i[1].y)>=Math.min(t[0].y,t[1].y)&&Mo(t[0],i[1],i[0])*Mo(i[1],t[1],i[0])>0&&Mo(i[0],t[1],t[0])*Mo(t[1],i[1],t[0])>0?1:0}function Oh(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Oh(i,t-1))}const av=`<style type="text/css">
|
|
195
195
|
.PanoRulerPlugin-rule-line {
|
|
196
196
|
position: absolute;
|
|
197
197
|
transform-origin: left center;
|
|
@@ -284,7 +284,7 @@ void main() {
|
|
|
284
284
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(g)}</div>
|
|
285
285
|
</div>
|
|
286
286
|
</div>
|
|
287
|
-
`,y=document.createElement("div");return y.setAttribute("class","PanoRulerPlugin-rule"),y.setAttribute("data-name",A),y.setAttribute("style","display: none"),y.innerHTML=b,y},o=document.createElement("div");o.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const s=document.createElement("div");s.innerHTML=av,o.appendChild(s);const r={},a=(A,g)=>{if(e.loaded)throw new Error("标尺被重复初始化!");const b=cv(A,i),y=i.work;if(!y)return!1;for(const P in g){const x=g[P],{standingPosition:D}=y.observers[0],I=x.map(({x:B,z:S,observers:X})=>{const J=X.length>0?A.rooms[A.observers[X[0]]].name:"",H=b[J]?b[J].floor:null;let Q=1/0,F={index:0,x:D.x,y:D.y,z:D.z};X.forEach(ce=>{if(!y.observers[ce])return;const{standingPosition:oe}=y.observers[ce],we={index:ce,x:oe.x,y:oe.y,z:oe.z},Ce=lv({x:B,z:S},we);H?Ce<Q&&Math.abs(we.y-H)<.3&&(Q=Ce,F=we):Ce<Q&&(Q=Ce,F=we)});const _=new R.Vector3(B,F.y,S);Object.assign(_,{observers:X});const W=b[J]?b[J].roof:null,q=W?new R.Vector3(B,W,S):null;return q&&Object.assign(q,{observers:X}),{origin:_,vertical:q}});r[P]={origins:I.map(B=>B.origin),rules:[]};for(const{origin:B,vertical:S}of I){if(!S)continue;const X=n(P,B.distanceTo(S));o.append(X),r[P].rules.push({vertical:!0,rule:[B,S],$element:X})}for(let B=0;B<I.length;B++){let S=B+1;S>=I.length&&(S=0);const{origin:X}=I[B],{origin:J}=I[S],H=n(P,X.distanceTo(J));o.append(H),r[P].rules.push({vertical:!1,rule:[X,J],$element:H})}}return e.loaded=!0,!0},l=(A,g,b)=>Y(exports,null,function*(){const y=A||t.roomInfo,P=g||t.roomRules;if(!y||!P)throw new Error("标尺数据依赖不齐全!");return e.loaded=!1,e.options=G(G({},e.options),b||{}),i.model.loaded?a(y,P):yield new Promise(x=>i.once("modelLoaded",()=>x(a(y,P))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(A,g,b,y)=>{const P=[[{x:0,y:0},{x:b,y:0}],[{x:0,y:0},{x:0,y}],[{x:b,y:0},{x:b,y}],[{x:0,y},{x:b,y}]],x=[];for(let D=0;D<P.length;D++){const I=Vh([A,g],[P[D][0],P[D][1]],!0);I&&x.push(I)}return x.length===0?!1:x},d=()=>{var X;const A=(X=i.getElement())==null?void 0:X.parentElement;if(!A||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:g,camera:b,currentMode:y}=i;if(g===void 0)return;let P;for(const J in r)J.split(",").indexOf(g.toString())>=0&&(P=J);if(!P){for(const J in r)for(const{$element:H}of r[J].rules)H.style.display="none";return}const x=b.position,D=b.getWorldDirection(new R.Vector3),I=A.clientWidth,B=A.clientHeight;if(y!==De.Five.Mode.Panorama){for(const J in r)for(const{$element:H}of r[J].rules)H.style.display="none";return}for(const J in r)for(const{$element:H}of r[J].rules)H.style.display=J===P?"block":"none";const[S]=r[P].origins.slice().filter(J=>J.observers.indexOf(g)>=0).sort((J,H)=>{const Q=J.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0)),F=H.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0));return Q-F});for(const{rule:J,vertical:H,$element:Q}of r[P].rules){const[F,_]=J,W=Q.querySelector(".PanoRulerPlugin-rule-line");if(!W)return;if(!S){Q.style.display="none";continue}if(F!==S&&_!==S){Q.style.display="none";continue}if(F.distanceTo(_)<.3){Q.style.display="none";continue}if(F.observers.indexOf(g)===-1||_.observers.indexOf(g)===-1){Q.style.display="none";continue}if(F.clone().sub(x).normalize().angleTo(D)>Math.PI/2){Q.style.display="none";continue}if(_.clone().sub(x).normalize().angleTo(D)>Math.PI/2){Q.style.display="none";continue}const K=F.distanceTo(_);if(_.clone().sub(_.clone().sub(F).divide(new R.Vector3(2,2,2))).distanceTo(x)/K>8){Q.style.display="none";continue}const we=F.clone().project(b),Ce=(we.x+1)/2*I,ge=(-we.y+1)/2*B,je=_.clone().project(b),ve=(je.x+1)/2*I,Fe=(-je.y+1)/2*B,fe=Math.sqrt(Math.pow(ve-Ce,2)+Math.pow(Fe-ge,2));let ye=fe,Le=50;const me=c({x:~~Ce,y:~~ge},{x:~~ve,y:~~Fe},I,B);if(me&&me.length===1&&(S===F?(ye=Math.sqrt(Math.pow(me[0].x-Ce,2)+Math.pow(me[0].y-ge,2)),Le=ye/fe*50):S===_&&(ye=Math.sqrt(Math.pow(me[0].x-ve,2)+Math.pow(me[0].y-Fe,2)),Le=100-ye/fe*50)),me&&me.length===2){const se={x:(me[0].x+me[1].x)/2,y:(me[0].y+me[1].y)/2};Le=Math.sqrt(Math.pow(se.x-Ce,2)+Math.pow(se.y-ge,2))/fe*100}const lt=(Math.PI/2-Math.atan2(ve-Ce,ge-Fe))/Math.PI*180,ke=W.querySelector(".PanoRulerPlugin-rule-label"),et=ke.children[0].clientWidth;et>=fe||et/2>=Le/100*fe||et/2>=(1-Le/100)*fe?W.style.display="none":(W.style.display="block",W.style.width=fe+"px",W.style.left=Ce+"px",W.style.top=ge+"px",W.style.transform=`rotate(${-lt}deg)`,ke.style.left=`${Le}%`)}},h=()=>Oh(d),u=()=>{var A,g;return e.loaded?(e.enable||(o.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(g=(A=i.getElement())==null?void 0:A.parentElement)==null||g.append(o),d(),i.on("modeChange",d),i.on("cameraUpdate",h),e.enable=!0),!0):!1},m=()=>(e.enable&&(i.off("modeChange",d),i.off("cameraUpdate",h),o&&o.remove(),e.enable=!1),!0);function p(A){if(A.distanceText&&A.distanceText!==e.options.distanceText){const g=A.distanceText;e.options.distanceText=g,Object.values(r).forEach(b=>{b.rules.forEach(y=>{const[P,x]=y.rule,D=P.distanceTo(x),I=y.$element.querySelector(".PanoRulerPlugin-rule-label-name");I&&(I.innerText=g(D))})})}}return{enable:u,disable:m,load:l,state:e,changeConfigs:p}};function hv(i){de(i,"svelte-1h27ktp",".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}")}function Tl(i,t,e){const n=i.slice();return n[6]=t[e],n}function uv(i){let t,e=i[0].children,n=[];for(let o=0;o<e.length;o+=1)n[o]=zl(Tl(i,e,o));return{c(){t=L("div");for(let o=0;o<n.length;o+=1)n[o].c();w(t,"class","rule-mixed-line svelte-1h27ktp")},m(o,s){O(o,t,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(t,null)},p(o,s){if(s&9){e=o[0].children;let r;for(r=0;r<e.length;r+=1){const a=Tl(o,e,r);n[r]?n[r].p(a,s):(n[r]=zl(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(o){o&&V(t),Dt(n,o)}}}function fv(i){let t,e;return{c(){t=L("em"),w(t,"class",e=Be(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3])},m(n,o){O(n,t,o)},p(n,o){o&1&&e!==(e=Be(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),o&8&&w(t,"style",n[3])},d(n){n&&V(t)}}}function zl(i){let t,e,n=`${i[6].width}px`;return{c(){t=L("div"),w(t,"class",e=Be(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3]),z(t,"width",n)},m(o,s){O(o,t,s)},p(o,s){s&1&&e!==(e=Be(o[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),s&8&&w(t,"style",o[3]),(s&8||s&9&&n!==(n=`${o[6].width}px`))&&z(t,"width",n)},d(o){o&&V(t)}}}function mv(i){let t,e,n,o,s=i[0].labelElement+"",r,a,l=`${i[0].labelOffset}%`,c=`${i[0].width}px`,d=`${i[0].left}px`,h=`${i[0].top}px`,u=`rotate(${i[0].rotateDeg}deg)`;function m(g,b){return g[0].children.length===0?fv:uv}let p=m(i),A=p(i);return{c(){t=L("div"),A.c(),e=ee(),n=L("div"),o=L("div"),r=Oe(s),w(o,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),rt(()=>i[4].call(o)),w(n,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),z(n,"left",l),w(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),z(t,"width",c),z(t,"left",d),z(t,"top",h),z(t,"transform",u),z(t,"display",i[0].visible&&i[2]?"block":"none")},m(g,b){O(g,t,b),A.m(t,null),j(t,e),j(t,n),j(n,o),j(o,r),a=ms(o,i[4].bind(o))},p(g,[b]){p===(p=m(g))&&A?A.p(g,b):(A.d(1),A=p(g),A&&(A.c(),A.m(t,e))),b&1&&s!==(s=g[0].labelElement+"")&&Re(r,s),b&1&&l!==(l=`${g[0].labelOffset}%`)&&z(n,"left",l),b&1&&c!==(c=`${g[0].width}px`)&&z(t,"width",c),b&1&&d!==(d=`${g[0].left}px`)&&z(t,"left",d),b&1&&h!==(h=`${g[0].top}px`)&&z(t,"top",h),b&1&&u!==(u=`rotate(${g[0].rotateDeg}deg)`)&&z(t,"transform",u),b&5&&z(t,"display",g[0].visible&&g[2]?"block":"none")},i:Z,o:Z,d(g){g&&V(t),A.d(),a()}}}function pv(i,t,e){let n,{rulerItemProp:o}=t,s=!0,r,a="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function l(){r=this.offsetWidth,e(1,r)}return i.$$set=c=>{"rulerItemProp"in c&&e(0,o=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=o.width||r/2>=o.labelOffset/100*o.width||r/2>=(1-o.labelOffset/100)*o.width?e(2,s=!1):e(2,s=!0))},e(3,n=`--background-image: url(${a})`),[o,r,s,n,l]}class gv extends le{constructor(t){super(),ae(this,t,pv,mv,re,{rulerItemProp:0},hv)}}function jl(i,t,e){const n=i.slice();return n[12]=t[e],n}function Vl(i){let t,e;return t=new gv({props:{rulerItemProp:i[12]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.rulerItemProp=n[12]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function vv(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=Vl(jl(i,n,r));const s=r=>T(o[r],1,1,()=>{o[r]=null});return{c(){t=L("div");for(let r=0;r<o.length;r+=1)o[r].c()},m(r,a){O(r,t,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(t,null);e=!0},p(r,[a]){if(a&1){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=jl(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=Vl(c),o[l].c(),k(o[l],1),o[l].m(t,null))}for(he(),l=n.length;l<o.length;l+=1)s(l);ue()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)T(o[a]);e=!1},d(r){r&&V(t),Dt(o,r)}}}function Av(i,t,e){var A,g,b,y;let{five:n}=t,{rulerDatas:o}=t,{options:s}=t,r=[];const a=((g=(A=n.getElement())==null?void 0:A.parentElement)==null?void 0:g.clientWidth)||0,l=((y=(b=n.getElement())==null?void 0:b.parentElement)==null?void 0:y.clientHeight)||0,c=(P,x)=>{const D=[[{x:0,y:0},{x:a,y:0}],[{x:0,y:0},{x:0,y:l}],[{x:a,y:0},{x:a,y:l}],[{x:0,y:l},{x:a,y:l}]],I=[];for(let B=0;B<D.length;B++){const S=Vh([P,x],[D[B][0],D[B][1]],!0);S&&I.push(S)}return I.length===0?!1:I},d=(P,x)=>{const D=P.clone().project(n.camera),I=(D.x+1)/2*a,B=(-D.y+1)/2*l,S=x.clone().project(n.camera),X=(S.x+1)/2*a,J=(-S.y+1)/2*l,H=Math.sqrt(Math.pow(X-I,2)+Math.pow(J-B,2));return{startLeft:I,startTop:B,endLeft:X,endTop:J,distance:H}},h=(P,x,D)=>{const I=n.camera.position,B=n.camera.getWorldDirection(new R.Vector3),S=P.clone().sub(I).normalize().angleTo(B),X=x.clone().sub(I).normalize().angleTo(B),J=P.distanceTo(x),Q=x.clone().sub(x.clone().sub(P).divide(new R.Vector3(2,2,2))).distanceTo(I),{startLeft:F,startTop:_,endLeft:W,endTop:q,distance:U}=d(P,x),ce=-((Math.PI/2-Math.atan2(W-F,_-q))/Math.PI)*180;let oe=!0;D||(oe=!1),!Bt(P,D)&&!Bt(x,D)&&(oe=!1),J<.3&&(oe=!1),S>Math.PI/2&&(oe=!1),X>Math.PI/2&&(oe=!1),Q/J>8&&(oe=!1);let we=50,Ce=U;const ge=c({x:~~F,y:~~_},{x:~~W,y:~~q});if(ge&&ge.length===1&&(Bt(P,D)?(Ce=Math.sqrt(Math.pow(ge[0].x-F,2)+Math.pow(ge[0].y-_,2)),we=Ce/U*50):Bt(x,D)&&(Ce=Math.sqrt(Math.pow(ge[0].x-W,2)+Math.pow(ge[0].y-q,2)),we=100-Ce/U*50)),ge&&ge.length===2){const je={x:(ge[0].x+ge[1].x)/2,y:(ge[0].y+ge[1].y)/2};we=Math.sqrt(Math.pow(je.x-F,2)+Math.pow(je.y-_,2))/U*100}return{startLeft:F,startTop:_,distance:U,deg:ce,visible:oe,labelOffset:we,ruleLength:J}},u=()=>{const P=n.panoIndex,x=o.find(H=>H.panoIndex===P);if(!x)return e(0,r=[]);if(n.currentMode!==De.Five.Mode.Panorama)return e(0,r=[]);const D=n.camera.position,I=n.camera.getWorldDirection(new R.Vector3),B=x.lines.map(H=>new R.Vector3(H.start[0],-H.start[1],-H.start[2])),S=x.lines.map(H=>new R.Vector3(H.end[0],-H.end[1],-H.end[2])),[X]=B.concat(S).sort((H,Q)=>{const F=H.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0)),_=Q.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0));return F-_}),J=x.lines.map(H=>{var Ce,ge;const Q=H.start,F=H.end,{startLeft:_,startTop:W,distance:q,deg:U,visible:K,labelOffset:ce,ruleLength:oe}=h(new R.Vector3(Q[0],-Q[1],-Q[2]),new R.Vector3(F[0],-F[1],-F[2]),X),we=[];return H.children&&((Ce=H.children)==null?void 0:Ce.length)>0&&((ge=H.children)==null||ge.forEach(je=>{const ve=je.start,Fe=je.end,{distance:fe}=d(new R.Vector3(ve[0],-ve[1],-ve[2]),new R.Vector3(Fe[0],-Fe[1],-Fe[2]));we.push({width:fe,state:je.state})})),{width:q,left:_,top:W,rotateDeg:U,state:H.state,children:we,labelOffset:ce,visible:K,labelElement:s.distanceText(oe)}});e(0,r=J)},m=()=>us(u),p=Ca(u,80);return yt(()=>{u(),n.on("panoArrived",u),n.on("modeChange",u),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>p()),n.on("pinchGesture",()=>p())}),Qt(()=>{n.off("panoArrived",u),n.off("modeChange",u),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>p()),n.off("pinchGesture",()=>p())}),i.$$set=P=>{"five"in P&&e(1,n=P.five),"rulerDatas"in P&&e(2,o=P.rulerDatas),"options"in P&&e(3,s=P.options)},[r,n,o,s]}class bv extends le{constructor(t){super(),ae(this,t,Av,vv,re,{five:1,rulerDatas:2,options:3})}}let yv=class{constructor(t,e){f(this,"five");f(this,"container",document.createElement("div"));f(this,"panoRulerProData");f(this,"rulerItems");f(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var n,o;this.five=t,this.container.classList.add("panoRulerProPlugin-container"),this.container.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"),e&&(e.data&&this.load(e.data),this.state.options=G(G({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((o=e.options)==null?void 0:o.className)),this.five.once("modelLoaded",()=>Y(this,null,function*(){var s,r;(r=(s=this.five.getElement())==null?void 0:s.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return Y(this,null,function*(){if(!this.five.work)return;const e=t.data;if(!e)throw new Error("标尺数据依赖不齐全!");this.panoRulerProData=e,this.state.loaded=!0})}enable(){return this.state.loaded?(this.state.enabled||(this.state.enabled=!0,this.render()),!0):!1}disable(){return this.state.enabled&&(this.state.enabled=!1,this.render()),!0}render(){return Y(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new bv({target:this.container,props:{five:this.five,rulerDatas:this.panoRulerProData,options:this.state.options}})}else(t=this.rulerItems)==null||t.$destroy(),this.rulerItems=void 0})}dispose(){this.container&&(this.rulerItems.$destroy(),this.rulerItems=void 0),this.container.remove()}};const wv=(i,t)=>new yv(i,t),Cv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6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AGTWVfGKsHOB+GBCV1dgycE5EZDufs/31+D9r8vJg8BSCFT2kojN3K4vvBQm3E3Zy0WIRICwVRcwSFPbdu194LKt+kEdtT/SIQLS4Tddbenohy4nDwKnQGAPG4rdZALehA09KpGo8bhou9iUbbs0/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Pv(){const i=document.createElement("div"),t=document.createElement("i"),e=document.createElement("span");return i.appendChild(t),i.appendChild(e),i.style.position="relative",i.style.width="100%",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.marginTop=`${150/16}rem`,i.style.opacity="0",i.style.transition="opacity 1000ms linear",t.style.display="block",t.style.width=`${134/16}rem`,t.style.height=`${22/16}rem`,t.style.backgroundSize="100%",t.style.backgroundRepeat="no-repeat",t.style.backgroundImage=`url(${Cv})`,e.style.marginTop=`${10/16}rem`,e.style.fontSize=`${16/16}rem`,e.style.color="#fff",e.style.opacity="0.7",e.style.textShadow="0 2px 16px rgb(22 34 83 / 24%)",e.style.fontWeight="bold",{appendTo(n){n.appendChild(i)},dispose(){i.remove()},setRoom(n){e.innerHTML=n.name+" "+Math.floor(n.size/1e6)+"㎡"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Ev=new E.TextureLoader;function Zi(i){return Y(this,null,function*(){return new Promise((t,e)=>{Ev.load(i,t,void 0,e)}).then(t=>(t.encoding=E.sRGBEncoding,t))})}const So={userAction:!0};class Iv extends Tn{constructor(e,n){super(e);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:"//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",entryDoorImageUrl:"//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"}});f(this,"data");f(this,"group",new E.Group);f(this,"roomInfoInstance");f(this,"roomInfoWrapperInstance");f(this,"compassMeshTween");f(this,"compassMesh");f(this,"entryDoorMesh");f(this,"dispose",()=>{var e,n,o,s;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(n=(e=this.compassMesh)==null?void 0:e.material.map)==null||n.dispose(),(s=(o=this.entryDoorMesh)==null?void 0:o.material.map)==null||s.dispose(),this.five.off("dispose",this.dispose),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_addEventListener",()=>{this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("modeChange",this.onFiveModeChange),this.five.on("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_removeEventListener",()=>{this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("modeChange",this.onFiveModeChange),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});f(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});f(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});f(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});f(this,"_clearEntryDoorIfNeed",()=>{var e;this.entryDoorMesh&&(this.group.remove(this.entryDoorMesh),(e=this.entryDoorMesh.material.map)==null||e.dispose(),this.entryDoorMesh=null),this.roomInfoInstance&&(this.roomInfoInstance.dispose(),this.roomInfoInstance=null),this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.dispose(),this.roomInfoWrapperInstance=null)});f(this,"onFivePanoWillArrive",e=>{var n,o;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(o=this.compassMesh)==null||o.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var o,s,r,a,l,c,d;const n=(r=(s=(o=this.five.work)==null?void 0:o.observers)==null?void 0:s[e])==null?void 0:r.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(n.clone().setY(n.y+.01)),this.compassMesh.material.opacity===0&&((a=this.compassMeshTween)==null||a.dispose(),this.compassMeshTween=hs(1e3).onUpdate(({progress:h})=>{var u;(u=this.compassMesh)==null||u.material.setValues({opacity:h}),this.five.needsRender=!0}).play())),this.entryDoorMesh){const u=new E.Vector3(this.data.entrance.position.x,this.data.entrance.position.y,this.data.entrance.position.z).clone().setY(n.y).sub(n).normalize(),m=n.clone().add(u.clone().multiplyScalar(.7)).setY(n.y+.01);this.entryDoorMesh.rotation.z=new E.Vector3(0,0,-1).angleTo(u),this.entryDoorMesh.position.copy(m),((l=this.data)==null?void 0:l.room_observers[e].room.type)===1?(c=this.entryDoorMesh)==null||c.material.setValues({opacity:1}):(d=this.entryDoorMesh)==null||d.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(n.clone().setY(n.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});f(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:n})=>{var o,s;this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(o=this.roomInfoInstance)==null||o.show():(s=this.roomInfoInstance)==null||s.hide())});f(this,"onFiveModeChange",(e,n,o,s,r)=>{e!==n&&this.setState({visible:e===De.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:G(G({},this.state.config),n||{})})}enable(e=So){this.setState({enabled:!0},e)}disable(e=So){this.setState({enabled:!1},e)}show(e=So){if(this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=So){if(this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var s,r;const o=JSON.parse(JSON.stringify(this.state));this.state={visible:(s=e.visible)!=null?s:o.visible,enabled:(r=e.enabled)!=null?r:o.enabled,config:G(G({},o.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",n)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",n)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",n)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",n)),e.config&&this.init()}load(e,n,o=!0){return Y(this,null,function*(){const s=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(s)&&(this.hooks.emit("dataChange",s,this.data),this.data=G({},s),this.init(),n&&this.setState(n,{userAction:o}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return Y(this,null,function*(){var o,s,r,a;const e=(s=(o=this.data)==null?void 0:o.north_rad)!=null?s:null;this._clearCompassIfNeed(),e!==null&&(this.compassMesh=yield this.loadCompassMesh(),this.compassMesh.rotateX(-Math.PI/2),this.compassMesh.rotateZ(e-Math.PI/2),this.group.add(this.compassMesh));const n=(a=(r=this.data)==null?void 0:r.entrance)!=null?a:null;this._clearEntryDoorIfNeed(),n!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Pv(),this.entryDoorMesh.rotateX(-Math.PI/2),this.roomInfoWrapperInstance&&this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container),this.group.add(this.entryDoorMesh)),this.onFivePanoArrived(this.five.panoIndex||0),this.five.needsRender=!0})}loadCompassMesh(){return Y(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield Zi(e),o=new E.CircleGeometry(.7,32),s=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new E.Mesh(o,s);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return Y(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield Zi(e),o=new E.PlaneGeometry(.2,.16),s=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new E.Mesh(o,s);return r.name="pano-compass-entry-door",r})}loadRoomInfo(){const e=[new E.Vector3(-.7,0,-.7),new E.Vector3(.7,0,-.7),new E.Vector3(.7,0,.7),new E.Vector3(-.7,0,.7)];return fs(this.five).create3DDomContainer(e)}}const kv=(i,t)=>new Iv(i,t);class xv{constructor(t){f(this,"edges",[]);f(this,"five");f(this,"onModelLoaded",()=>{this.five.model});this.five=t,this.five.model.loaded?this.onModelLoaded():this.five.on("modelLoaded",this.onModelLoaded)}dispose(){}getAdsorbentPoint(t){if(this.edges.length===0)return null;let e=1/0,n;return this.edges.forEach(o=>{const s=o.closestPointToPoint(t.point,!0,new R.Vector3),r=s.distanceTo(t.point);r<e&&(n=s,e=r)}),e>.1?null:n||null}}const Mv=1,Sv=3,Dv=new R.Color(16777215),Lv=new R.Color(6522623),Tv=new R.Color(16777215),zv=new R.Color(6522623),jv=6,Vv=8,Ov="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",Bh=new R.TextureLoader().load(Ov),Bv={pointTexture:Bh,pointSize:jv,lineWidth:Mv,lineColor:Dv,pointColor:Tv,lineRenderOrder:20,pointsRenderOrder:20},Rv={pointTexture:Bh,pointSize:Vv,lineWidth:Sv,lineColor:Lv,pointColor:zv,lineRenderOrder:10,pointsRenderOrder:10};function _v(i,t,e){var d,h,u,m,p;const n=(d=e==null?void 0:e.lineWidth)!=null?d:2,o=(h=e==null?void 0:e.lineColor)!=null?h:new R.Color(16777215),s=(u=e==null?void 0:e.pointSize)!=null?u:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(p=e==null?void 0:e.lineRenderOrder)!=null?p:20,l=new _d.Line(i,t);l.setMaterial({linewidth:n,color:o}),l.line.material.depthTest=!1,l.line.material.transparent=!0,l.line.renderOrder=r,l.points.renderOrder=a;const c=l.points.material;return c.depthTest=!1,c.size=s,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ol(i,t){const[e,n]=i.points,o=t==="light"?Rv:Bv,s=_v(e.position,n.position,o);return s.name="normalLine_"+i.id,s}function Ki(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function Fo(i){const{z:t}=i;return!(Math.abs(t)>1)}function Qv(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),i.style.width="max-content",i.style.padding="3px 6px",i.style.lineHeight="1",i.style.textAlign="center",i.style.transform="translate(-50%, -50%)",i.style.borderRadius="100px",i.style.fontSize="14px",i.style.color="#fff",i.style.background="rgba(195,195,195,0.70)",i.style.border="0.5px solid rgba(255,255,255,0.6)",i.style.cursor="pointer",i}function Hv(i){const t=document.createElement("div");return i!=null&&i.id&&(t.id=i==null?void 0:i.id),t.classList.add("five-plugin-measure__distance"),t.style.opacity="0",t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.width="0",t.style.height="0",t.style.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}class Rh{constructor(t){f(this,"ndcPosition");f(this,"contentDom");f(this,"containerDom");f(this,"params");f(this,"canSelected");f(this,"handleClick",t=>{var e,n;(n=(e=this.params).clickCallback)==null||n.call(e,t,this)});this.params=t,this.contentDom=Qv(),this.containerDom=Hv(),this.setCanSelect(!0)}setCanSelect(t){this.canSelected=t,this.containerDom.style.pointerEvents=t?"all":"none"}highlight(){this.contentDom.style.border="0.5px solid #95AEFF",this.contentDom.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}unHighlight(){this.contentDom.style.border="0.5px solid rgba(255,255,255,0.6)",this.contentDom.style.background="rgba(195,195,195,0.70)"}appendTo(t){t.appendChild(this.containerDom),this.containerDom.addEventListener("click",this.handleClick)}remove(){this.contentDom.removeEventListener("click",this.handleClick),this.containerDom.remove()}show(){this.containerDom.style.opacity="1",this.containerDom.style.pointerEvents=this.canSelected?"auto":"none"}hide(){this.containerDom.style.opacity="0",this.containerDom.style.pointerEvents="none"}updateDomPosition(t){if(!this.ndcPosition){this.hide();return}const e=t.getElement();if(!e)return;const n=e.clientWidth,o=e.clientHeight,s=this.ndcPosition.project(t.camera);if(!Fo(s)){this.hide();return}const r=(s.x+1)/2*n,a=-(s.y-1)/2*o;this.containerDom.style.transform=`translate(${r}px, ${a}px)`,this.show()}}class Gv extends Rh{constructor(e){var n;super(e);f(this,"line");this.params=e,this.line=e.line,(n=this.params.userDistanceItem)!=null&&n.element?this.containerDom.appendChild(this.params.userDistanceItem.element):this.containerDom.appendChild(this.contentDom)}update(e){var B;if(this.line.mesh.visible===!1){this.hide();return}const n=e.getElement();if(!n)return;const o=n.clientWidth,s=n.clientHeight,r=o/2,a=s/2;if(this.line.points.length<2)return;const[l,c]=this.line.points,d=l.position.clone().project(e.camera),h=c.position.clone().project(e.camera),u=d.clone().lerp(h,.5),m=new R.Vector2(d.x*r,d.y*a),p=new R.Vector2(h.x*r,h.y*a),A=m.distanceTo(p);if((()=>!(Math.abs(d.z)>1||Math.abs(h.z)>1||!Fo(d)&&!Fo(h)||!Fo(u)||A===0))()===!1){this.hide();return}const b=(u.x+1)/2*o,y=-(u.y-1)/2*s,x=-(Math.atan((m.y-p.y)/(m.x-p.x))*180)/Math.PI,D=this.containerDom.parentElement&&this.contentDom.clientWidth>A?-20:0;this.containerDom.style.transform=`translate(${b}px, ${y}px) rotate(${x}deg) translateY(${D}px)`,this.show(),(B=this.params.userDistanceItem)==null||B.update({line:this.line,polyline:this.line.getPolyline()});const I=this.getCurrentContent();this.contentDom.innerText=I}getCurrentContent(){var l,c,d,h;if(this.line.points.length<2)return"";const[e,n]=this.line.points,o=e.position.clone().distanceTo(n.position),s=(c=this.line.text)!=null?c:(l=this.line.model.config)==null?void 0:l.defaultText,r=(h=(d=this.line.model.config)==null?void 0:d.getDistanceText)==null?void 0:h.call(d,o),a=s!=null?s:r;return a!=null?a:o.toFixed(2)+"m"}}class Zt{constructor(t,e,n){f(this,"id");f(this,"selected",!1);f(this,"text");f(this,"type","line");f(this,"model");f(this,"mesh");f(this,"points");f(this,"lightMesh");f(this,"hook");f(this,"distanceItem");f(this,"polyline");var o;if(this.id=st(),this.model=n,t.id===e.id)throw new Error("无效的线段, 一个点无法构成线段");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new De.Subscribe,this.points=[t,e],this.mesh=Ol(this,"normal"),this.lightMesh=Ol(this,"light"),this.distanceItem=new Gv({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(o=this.model.config)!=null&&o.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}setPoints(t,e){this.points[0].position.copy(t),this.points[1].position.copy(e),this.mesh.setPoints(t,e)}remove(){this.mesh.parent&&this.mesh.parent.remove(this.mesh),this.distanceItem.remove()}clear(){this.selected=!1,this.polyline=void 0}isEmpty(){return this.points.length===0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(e=>e.lines.includes(this));if(t)return this.polyline=t,t}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}setText(t){this.text=t,this.hook.emit("textChanged",t)}toJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),text:this.text}}clone(){const t=new Zt(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}function Fv(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class ht{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");if(this.id=st(),this.lines=[],this.position=new R.Vector3,Array.isArray(t))this.position.fromArray(t);else if(typeof t=="object"&&t.isVector3)this.position.copy(t);else throw new Error("position must be Vector3 or number[]")}toJson(){return{id:this.id,position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){Fv(t,this.lines)}clone(){return new ht(this.position)}}const Do=i=>i.preventDefault();let ys=class{constructor(t){f(this,"model");f(this,"five");f(this,"group");f(this,"config");f(this,"dashed");f(this,"perpendicularDashed");f(this,"disposed",!1);f(this,"isMobile");f(this,"mouseGroup");f(this,"container");f(this,"fiveHelper");f(this,"editParams");f(this,"magnifierParams");f(this,"hook");f(this,"magnifier");f(this,"userDistanceItemCreator");f(this,"getMeasureType");f(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.getAllLines().forEach(t=>t.distanceItem.update(this.five))});var n,o;this.five=t.five,this.hook=t.hook,this.model=t.model,this.getMeasureType=t.getMeasureType,this.config=t.config,this.magnifierParams=t.magnifierParams,this.magnifier=t.magnifier,this.container=t.container,this.fiveHelper=t.fiveHelper,this.editParams=t.editParams,this.isMobile=(o=(n=t.openParams)==null?void 0:n.isMobile)!=null?o:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new Zt(new ht([0,0,0]),new ht([0,0,0]),this.model),this.dashed.distanceItem.setCanSelect(!1),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine",this.perpendicularDashed=new Zt(new ht([0,0,0]),new ht([0,0,0]),this.model),this.perpendicularDashed.distanceItem.setCanSelect(!1),this.perpendicularDashed.mesh.setMaterial({dashed:!0,dashScale:40,color:new R.Color(10218089)}),this.perpendicularDashed.mesh.name="perpendicularDashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Do),e.addEventListener("contextmenu",Do))}get currentMeasureType(){return this.getMeasureType()}removeLine(t){this.group.remove(t.mesh,t.lightMesh),t.distanceItem.remove(),this.five.needsRender=!0}updateMouseGroup(t,e){if(!t)return this.mouseGroup;if(this.mouseGroup.position.copy(t.point),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const o=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(r)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.disable(),this.model.getAllLines().forEach(e=>this.removeLine(e)),this.model.areas.forEach(e=>e.remove());const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Do),t.removeEventListener("contextmenu",Do))}};function Nr(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:o}=i.target,s=i.target.getBoundingClientRect(),r=new R.Vector2(t,e).sub(new R.Vector2(s.left,s.top)),a=new R.Vector2(r.x/n*2-1,-(r.y/o)*2+1);return{point:r,ndcPoint:a}}function Bl(i,t){const e=Nr(t).ndcPoint,n=new R.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}let Sn=class{constructor(t){f(this,"id",st());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new De.Subscribe);this.model=t.model}addLine(t){if(this.includes(t)){console.error(new Error("不能重复添加线段"));return}const e=this.getLastPoint(),n=e&&t.findAnotherPoint(e);e?e&&n?(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t)):console.error(new Error("传入线段无法与当前折线进行连接")):(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t))}removeLine(t){if(this.lines.length!==0){if(!this.isLastLine(t)){console.error(new Error("传入线段不是当前折线的最后一段"));return}this.lines.pop(),this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),this.hook.emit("lineRemoved",t)}}isLastLine(t){const e=this.getLastLine();return e?t.id===e.id:!1}getLastLine(){return this.lines.slice(-1)[0]}getPointLength(){return this.lines.length+1}clear(){const t=this.lines.slice();this.lines.slice(0,this.lines.length),this.points.slice(0,this.points.length),t.reduceRight((e,n)=>this.hook.emit("lineRemoved",n),void 0)}overlapWith(t){return t.type==="point"?this.includes(t):t.type==="line"?t.points.some(e=>this.includes(e)):t.type==="polyline"?t.points.some(e=>this.includes(e)):!0}includes(t){return t.type==="point"?this.points.find(({id:e})=>e===t.id)!==void 0:t.type==="line"?this.lines.find(({id:e})=>e===t.id)!==void 0:!1}isEmpty(){return this.points.length===0}getLastPoint(){return this.points.slice(-1)[0]}toJson(){return{id:this.id,lines:this.lines.map(t=>t.toJson()),visiblePanoIndexes:this.visiblePanoIndexes}}getPointByID(t){return this.points.find(({id:e})=>e===t)}fromJson(t){this.clear(),this.id=t.id;const{getPoint:e,getAllPoints:n}=r(),o=t.lines.map(a=>{const[l,c]=a.points,d=e(l),h=e(c);if(!d||!h)throw new Error("线上的点不存在");const u=new Zt(d,h,this.model);return u.id=a.id,u.text=a.text,u}),s=n();this.points.push(...s),this.lines.push(...o),this.visiblePanoIndexes=t.visiblePanoIndexes;function r(){const a=new Map;function l(d){const h=a.get(d.id);if(h)return h;const u=new ht(d.position);return u.id=d.id,a.set(d.id,u),u}function c(){return Array.from(a.values())}return{getPoint:l,getAllPoints:c}}return this}replace(t){this.id=t.id,this.clear(),this.lines.push(...t.lines),this.points.push(...t.points)}};class _h extends R.Object3D{constructor(){super()}add(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.add(...e)}remove(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.remove(...e)}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}}function Wv(i){const t=i.slice();if(t.length<3)return;t.at(-1).equals(t[0])||t.push(t[0]);const e=t.flatMap(r=>[r.x,r.y,r.z]),n=new E.Float32BufferAttribute(e,3),o=Fu(e,void 0,3),s=new E.BufferGeometry;return s.setAttribute("position",n),s.setIndex(o),s.name="PolygonGeometry",s}const Nv=new E.BufferGeometry;class Qh extends _h{constructor(e){super();f(this,"geometry",new E.BufferGeometry);const n=new E.MeshBasicMaterial({color:6522623,transparent:!0,side:E.DoubleSide,depthTest:!0,opacity:.5}),o=new E.MeshBasicMaterial({color:16777215,transparent:!0,side:E.DoubleSide,depthTest:!1,depthWrite:!1,opacity:.2}),s=new E.Mesh(this.geometry,n),r=new E.Mesh(this.geometry,o);s.renderOrder=10,r.renderOrder=0,e&&this.updatePoints(e),this.add(s,r)}updatePoints(e){const n=Wv(e);n?this.geometry.copy(n):this.geometry.copy(Nv)}}function Yv(i){const t=Uv(i);let e=0,n=new R.Vector3;for(const[o,s,r]of t){const a=Hh(o,s,r),l=Xv(o,s,r,a);e+=a,n.add(l)}return n=n.divideScalar(e),{center:n,area:e}}function Hh(i,t,e){return t.clone().sub(i).cross(e.clone().sub(i)).length()/2}function Xv(i,t,e,n){const o=n!=null?n:Hh(i,t,e);return un(i,t,e).multiplyScalar(o)}function Uv(i){var o;const t=i.getAttribute("position"),e=(o=i.getIndex())==null?void 0:o.array;if(!t||!e)return[];let n=[];for(let s=0;s<e.length;s+=3){const r=e[s],a=e[s+1],l=e[s+2],c=new R.Vector3().fromArray([t.getX(r),t.getY(r),t.getZ(r)]),d=new R.Vector3().fromArray([t.getX(a),t.getY(a),t.getZ(a)]),h=new R.Vector3().fromArray([t.getX(l),t.getY(l),t.getZ(l)]);n.push([c,d,h])}return n}class qv extends Rh{constructor(e){super(e);f(this,"area");this.params=e,this.area=e.area,this.containerDom.appendChild(this.contentDom)}updateArea(e,n){const o=n!=null?n:this.area.polygon.geometry,{area:s,center:r}=Yv(o);this.ndcPosition=r,this.updateDomPosition(e),this.updateAreaText(s)}updateAreaText(e,n){const{unit:o="m²",fix:s=2}=n!=null?n:{};this.contentDom.innerText=`${e.toFixed(s)}${o}`}}class Yr{constructor(t,e){f(this,"id",st());f(this,"selected",!1);f(this,"text");f(this,"lightMesh");f(this,"areaItem");f(this,"hook",new De.Subscribe);f(this,"polygon");f(this,"points",[]);f(this,"planeHelper");f(this,"polyline");f(this,"meshContainer");f(this,"domContainer");f(this,"five");f(this,"model");f(this,"updateDom",()=>{this.five&&(this.polyline.lines.forEach(t=>t.distanceItem.update(this.five)),this.areaItem.updateDomPosition(this.five))});var n;t&&(this.points=t),this.model=e.model,this.polygon=new Qh(t),this.polyline=new Sn({model:e.model}),this.areaItem=new qv({area:this,clickCallback:(o,s)=>{const r=o.clientX+"px",a=o.clientY+"px";this.hook.emit("selected",this,{left:r,top:a})}}),this.domContainer=e.domContainer||null,this.meshContainer=e.meshContainer||null,this.five=e.five||null,this.areaItem.appendTo(this.domContainer),(n=this.five)==null||n.on("cameraUpdate",this.updateDom)}addPoints(t){var o;this.points=this.points.concat(t);const e=this.points.at(-2),n=this.points.at(-1);if(e&&n){const s=new Zt(new ht(e),new ht(n),this.polyline.model);this.polyline.addLine(s),this.meshContainer.add(s.mesh),this.five&&(s.distanceItem.setCanSelect(!1),s.distanceItem.appendTo(this.domContainer),s.distanceItem.update(this.five))}(o=this.meshContainer)!=null&&o.children.includes(this.polygon)||this.meshContainer.add(this.polygon),this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five),this.points.length===3?this.planeHelper=new E.Plane().setFromCoplanarPoints(this.points[0],this.points[1],this.points[2]):this.points.length<3&&(this.planeHelper=null)}refresh(){this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five)}hideArea(){this.polygon.visible=!1,this.areaItem.hide()}showArea(){this.polygon.visible=!0,this.areaItem.show()}projectPoint(t){return this.planeHelper?this.planeHelper.projectPoint(t,new E.Vector3):t}remove(){this.polygon.removeFromParent(),this.areaItem.remove(),this.polyline.lines.forEach(t=>t.remove())}dispose(){this.remove(),this.model.areas.splice(this.model.areas.indexOf(this),1),this.planeHelper=null,this.five.off("cameraUpdate",this.updateDom),this.five.needsRender=!0}}function Rl(i,t){const e=Array.isArray(t)?t:[t];for(let n=0;n<e.length;n++){const o=e[n],s=i.start,r=i.end,a=o.start,l=o.end;if(Vi(s,a)||Vi(s,l)||Vi(r,a)||Vi(r,l)||Vi(s,r))continue;const c=Lo(s,r,a),d=Lo(s,r,l),h=Lo(a,l,s),u=Lo(a,l,r);if(c!==d&&h!==u||c===0&&To(s,r,a)||d===0&&To(s,r,l)||h===0&&To(a,l,s)||u===0&&To(a,l,r))return!0}return!1}function Vi(i,t){return i.x===t.x&&i.z===t.z&&i.y===t.y}function Lo(i,t,e){const n=(e.z-i.z)*(t.x-i.x)-(t.z-i.z)*(e.x-i.x);return n===0?0:n<0?2:1}function To(i,t,e){return t.x<=Math.max(i.x,e.x)&&t.x>=Math.min(i.x,e.x)&&t.z<=Math.max(i.z,e.z)&&t.z>=Math.min(i.z,e.z)}const Jv="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;class Zv{constructor(t,e){f(this,"hook",new De.Subscribe);f(this,"five");f(this,"mode");f(this,"pointSelectorHelper");f(this,"enabled",!1);f(this,"onFivePanGesture",()=>{this.pointSelectorHelper.updateByNdcPosition({x:.5,y:.5})});f(this,"emitIntersectionUpdate",t=>{this.hook.emit("intersectionUpdate",t)});var s,r,a;this.five=t;const n=(s=e==null?void 0:e.mode)!=null?s:"auto";n==="auto"?this.mode=Jv?"fixed":"cursor":this.mode=n;const o={autoFixPCPosition:this.mode==="cursor",initialPosition:this.mode==="fixed"?{left:"35%",top:"20%"}:void 0};console.log(G(G({},o),(r=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:r.magnifierParams)),this.pointSelectorHelper=new eh(t,be(G({},e==null?void 0:e.pointSelectorHelperParams),{magnifierParams:G(G({},o),(a=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:a.magnifierParams)}))}get position(){return this.pointSelectorHelper.position}enable(){if(this.enabled)return;this.enabled=!0,this.pointSelectorHelper.enable();const t=this.five.getElement();this.mode==="cursor"?(console.log("cursor"),this.five.on("intersectionOnModelUpdate",this.pointSelectorHelper.updateWithIntersect),this.five.on("wantsMoveToPano",zo),this.five.on("wantsTapGesture",zo),t==null||t.addEventListener("mousemove",this.pointSelectorHelper.updateByMousePosition),t==null||t.addEventListener("mouseenter",this.pointSelectorHelper.show),t==null||t.addEventListener("mouseout",this.pointSelectorHelper.hide)):this.mode==="fixed"&&(this.five.on("panGesture",this.onFivePanGesture),this.five.on("interiaPan",this.onFivePanGesture)),this.pointSelectorHelper.hooks.on("intersectionUpdate",this.emitIntersectionUpdate)}disable(){if(!this.enabled)return;this.enabled=!1,this.pointSelectorHelper.disable();const t=this.five.getElement();this.five.off("intersectionOnModelUpdate",this.pointSelectorHelper.updateWithIntersect),this.five.off("wantsMoveToPano",zo),this.five.off("wantsTapGesture",zo),t==null||t.removeEventListener("mousemove",this.pointSelectorHelper.updateByMousePosition),t==null||t.removeEventListener("mouseenter",this.pointSelectorHelper.show),t==null||t.removeEventListener("mouseout",this.pointSelectorHelper.hide),this.five.off("panGesture",this.onFivePanGesture),this.five.off("interiaPan",this.onFivePanGesture),this.pointSelectorHelper.hooks.off("intersectionUpdate",this.emitIntersectionUpdate)}dispose(){this.disable(),this.pointSelectorHelper.dispose()}}function zo(){return!1}class Hi extends ys{constructor(e){var o;super(e);f(this,"type","edit");f(this,"polyline");f(this,"area");f(this,"pressPoint");f(this,"hasAppendDashed",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"hammer");f(this,"pointSelector");f(this,"onIntersectionUpdate",Ca(e=>{var o;const n=e.point;(o=this.pressPoint)==null||o.position.copy(n),this.updateDashed(),this.five.needsRender=!0},20));f(this,"revoke",()=>{this.currentMeasureType==="area"?this.revokeArea():this.currentMeasureType==="line"&&this.revokeLine()});f(this,"revokeArea",()=>{this.area.points.length!==0&&(this.revokeLine(this.area.polyline),this.area.points.pop(),this.area.refresh(),this.five.needsRender=!0)});f(this,"revokeLine",e=>{const n=e||this.polyline;if(n.lines.length===0&&this.lastPoint){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.remove(),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.needsRender=!0;return}if(n.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const o=n.lines[n.lines.length-1],s=o.findAnotherPoint(this.lastPoint);s&&(this.lastPoint=s,this.hook.emit("anchorChange",s.position),this.group.remove(o.mesh),n.removeLine(o),o.distanceItem.remove(),this.updateDashed(),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.lastPoint&&(this.pointSelector.position.point.copy(this.lastPoint.position),this.updateDashed()),this.area.hideArea()});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onPress",e=>{const[n]=Bl(this.five,e);if(!(n!=null&&n.face))return;const o=new ht(n.point);this.pressPoint=o,this.onIntersectionUpdate(n)});f(this,"onPan",e=>{if(!this.pressPoint)return;const[n]=Bl(this.five,e);n!=null&&n.face&&this.onIntersectionUpdate(n)});f(this,"onPanEnd",()=>{this.pressPoint&&this.onTap()});f(this,"onTap",()=>{var s,r,a,l;this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh),this.currentMeasureType==="area"&&this.group.add(this.perpendicularDashed.mesh)),this.hasAppendDashed=!0;const e=(()=>{if(this.currentMeasureType==="area")return this.area.projectPoint(this.pointSelector.position.point);if(this.currentMeasureType==="line")return this.pointSelector.position.point})();if(!e)return;const n=new ht(e),o=this.lastPoint;if(this.lastPoint=n,this.currentMeasureType==="line"){if(n&&o){const d=new Zt(o,n,this.model);d.distanceItem.setCanSelect(!1),d.distanceItem.appendTo(this.container),this.polyline.addLine(d),this.group.add(d.mesh),d.distanceItem.update(this.five)}const c=(r=(s=this.editParams)==null?void 0:s.autoEndConfig)==null?void 0:r.line;typeof c=="number"&&(this.polyline.getPointLength()>=c?(this.hook.emit("complete"),this.polyline=new Sn({model:this.model}),this.model.addPolyline(this.polyline),this.lastPoint=void 0):this.polyline.getPointLength()===c-1&&this.hook.emit("readyComplete"))}else if(this.currentMeasureType==="area"){this.area.addPoints(n.position);const c=(l=(a=this.editParams)==null?void 0:a.autoEndConfig)==null?void 0:l.area;typeof c=="number"&&(this.area.points.length>=c?(this.hook.emit("complete"),this.area=new Yr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addArea(this.area),this.lastPoint=void 0):this.area.points.length===c-1&&this.hook.emit("readyComplete"))}this.pressPoint=void 0,this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)});f(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"updateDashed",()=>{if(!this.lastPoint)return;const e=this.lastPoint.position,n=(()=>{if(this.currentMeasureType==="area")return this.area.projectPoint(this.pointSelector.position.point);if(this.currentMeasureType==="line")return this.pointSelector.position.point})();if(this.dashed.setPoints(e,n),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed),this.currentMeasureType==="area"){this.area.areaItem.setCanSelect(!1);const o=this.pointSelector.position.point;if(this.area.points.length>=2){const a=this.area.polyline.lines.map(h=>({start:h.points[0].position,end:h.points[1].position})),l=Rl({start:e,end:n},a),c=Rl({start:n,end:this.area.points[0]},a);if(l||c)this.area.hideArea(),this.hook.emit("allowAddPointStateChange","forbid");else{this.area.showArea();const h=[...this.area.points,n];this.area.polygon.updatePoints(h),this.area.areaItem.updateArea(this.five),this.hook.emit("allowAddPointStateChange","allow")}}else this.area.hideArea();const s=o,r=n;this.perpendicularDashed.setPoints(s,r),this.perpendicularDashed.distanceItem.update(this.five)}});this.pointSelector=new Zv(this.five,{mode:this.editParams.pointSelectorMode,pointSelectorHelperParams:{magnifierParams:this.magnifierParams}}),this.pointSelector.enable(),this.polyline=new Sn({model:this.model}),this.area=new Yr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addPolyline(this.polyline),this.model.addArea(this.area),this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateDomPosition(this.five),s.areaItem.setCanSelect(!0),this.group.add(s.polygon),s.polyline.lines.forEach(r=>{r.distanceItem.appendTo(this.container),r.distanceItem.update(this.five),this.group.add(r.mesh)})}),this.five.on("cameraUpdate",this.onCameraUpdate),this.pointSelector.hook.on("intersectionUpdate",this.onIntersectionUpdate),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged);const n=this.five.getElement();if(n){this.fiveElement=n;const s=new eo(n);this.hammer=s,s.on("tap",this.onTap),s.on("pan",this.onPan),s.on("press",this.onPress),s.on("panend",this.onPanEnd)}this.five.helperVisible=!1,(o=this.fiveElement)==null||o.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e,n;super.dispose(),this.five.helperVisible=!0,this.pointSelector.disable(),this.dashed.remove(),this.perpendicularDashed.remove(),this.five.off("cameraUpdate",this.onCameraUpdate),this.pointSelector.hook.off("intersectionUpdate",this.onIntersectionUpdate),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(n=this.fiveElement)==null||n.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}selectPoint(){this.onTap()}}class _l extends ys{constructor(e){super(e);f(this,"type","view");f(this,"hammer");f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"polylineAdded",e=>{const n=this.five.getCurrentState().panoIndex;e.lines.forEach(o=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(o.mesh.visible=!1),o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&(n.visiblePanoIndexes.includes(e)||n.lines.forEach(o=>{o.mesh.visible=!1,o.distanceItem.update(this.five)}))})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&n.visiblePanoIndexes.includes(e)&&n.lines.forEach(o=>{o.mesh.visible=!0,o.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)});const n=this.five.getElement();if(n){const o=new eo(n);this.hammer=o}this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex),this.onFivePanoArrived(this.five.getCurrentState().panoIndex),this.updateDistanceUI(),this.five.needsRender=!0,this.model.hook.on("polylineAdded",this.polylineAdded),this.model.hook.on("polylineRemoved",this.polylineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive)}dispose(){var e;super.dispose(),this.model.hook.off("polylineAdded",this.polylineAdded),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}}const Kv=`
|
|
287
|
+
`,y=document.createElement("div");return y.setAttribute("class","PanoRulerPlugin-rule"),y.setAttribute("data-name",A),y.setAttribute("style","display: none"),y.innerHTML=b,y},o=document.createElement("div");o.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const s=document.createElement("div");s.innerHTML=av,o.appendChild(s);const r={},a=(A,g)=>{if(e.loaded)throw new Error("标尺被重复初始化!");const b=cv(A,i),y=i.work;if(!y)return!1;for(const P in g){const x=g[P],{standingPosition:D}=y.observers[0],I=x.map(({x:B,z:S,observers:X})=>{const J=X.length>0?A.rooms[A.observers[X[0]]].name:"",H=b[J]?b[J].floor:null;let Q=1/0,F={index:0,x:D.x,y:D.y,z:D.z};X.forEach(ce=>{if(!y.observers[ce])return;const{standingPosition:oe}=y.observers[ce],we={index:ce,x:oe.x,y:oe.y,z:oe.z},Ce=lv({x:B,z:S},we);H?Ce<Q&&Math.abs(we.y-H)<.3&&(Q=Ce,F=we):Ce<Q&&(Q=Ce,F=we)});const _=new R.Vector3(B,F.y,S);Object.assign(_,{observers:X});const W=b[J]?b[J].roof:null,q=W?new R.Vector3(B,W,S):null;return q&&Object.assign(q,{observers:X}),{origin:_,vertical:q}});r[P]={origins:I.map(B=>B.origin),rules:[]};for(const{origin:B,vertical:S}of I){if(!S)continue;const X=n(P,B.distanceTo(S));o.append(X),r[P].rules.push({vertical:!0,rule:[B,S],$element:X})}for(let B=0;B<I.length;B++){let S=B+1;S>=I.length&&(S=0);const{origin:X}=I[B],{origin:J}=I[S],H=n(P,X.distanceTo(J));o.append(H),r[P].rules.push({vertical:!1,rule:[X,J],$element:H})}}return e.loaded=!0,!0},l=(A,g,b)=>Y(exports,null,function*(){const y=A||t.roomInfo,P=g||t.roomRules;if(!y||!P)throw new Error("标尺数据依赖不齐全!");return e.loaded=!1,e.options=G(G({},e.options),b||{}),i.model.loaded?a(y,P):yield new Promise(x=>i.once("modelLoaded",()=>x(a(y,P))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(A,g,b,y)=>{const P=[[{x:0,y:0},{x:b,y:0}],[{x:0,y:0},{x:0,y}],[{x:b,y:0},{x:b,y}],[{x:0,y},{x:b,y}]],x=[];for(let D=0;D<P.length;D++){const I=Vh([A,g],[P[D][0],P[D][1]],!0);I&&x.push(I)}return x.length===0?!1:x},d=()=>{var X;const A=(X=i.getElement())==null?void 0:X.parentElement;if(!A||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:g,camera:b,currentMode:y}=i;if(g===void 0)return;let P;for(const J in r)J.split(",").indexOf(g.toString())>=0&&(P=J);if(!P){for(const J in r)for(const{$element:H}of r[J].rules)H.style.display="none";return}const x=b.position,D=b.getWorldDirection(new R.Vector3),I=A.clientWidth,B=A.clientHeight;if(y!==De.Five.Mode.Panorama){for(const J in r)for(const{$element:H}of r[J].rules)H.style.display="none";return}for(const J in r)for(const{$element:H}of r[J].rules)H.style.display=J===P?"block":"none";const[S]=r[P].origins.slice().filter(J=>J.observers.indexOf(g)>=0).sort((J,H)=>{const Q=J.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0)),F=H.clone().setY(0).sub(x).normalize().angleTo(D.clone().setY(0));return Q-F});for(const{rule:J,vertical:H,$element:Q}of r[P].rules){const[F,_]=J,W=Q.querySelector(".PanoRulerPlugin-rule-line");if(!W)return;if(!S){Q.style.display="none";continue}if(F!==S&&_!==S){Q.style.display="none";continue}if(F.distanceTo(_)<.3){Q.style.display="none";continue}if(F.observers.indexOf(g)===-1||_.observers.indexOf(g)===-1){Q.style.display="none";continue}if(F.clone().sub(x).normalize().angleTo(D)>Math.PI/2){Q.style.display="none";continue}if(_.clone().sub(x).normalize().angleTo(D)>Math.PI/2){Q.style.display="none";continue}const K=F.distanceTo(_);if(_.clone().sub(_.clone().sub(F).divide(new R.Vector3(2,2,2))).distanceTo(x)/K>8){Q.style.display="none";continue}const we=F.clone().project(b),Ce=(we.x+1)/2*I,ge=(-we.y+1)/2*B,je=_.clone().project(b),ve=(je.x+1)/2*I,Fe=(-je.y+1)/2*B,fe=Math.sqrt(Math.pow(ve-Ce,2)+Math.pow(Fe-ge,2));let ye=fe,Le=50;const me=c({x:~~Ce,y:~~ge},{x:~~ve,y:~~Fe},I,B);if(me&&me.length===1&&(S===F?(ye=Math.sqrt(Math.pow(me[0].x-Ce,2)+Math.pow(me[0].y-ge,2)),Le=ye/fe*50):S===_&&(ye=Math.sqrt(Math.pow(me[0].x-ve,2)+Math.pow(me[0].y-Fe,2)),Le=100-ye/fe*50)),me&&me.length===2){const se={x:(me[0].x+me[1].x)/2,y:(me[0].y+me[1].y)/2};Le=Math.sqrt(Math.pow(se.x-Ce,2)+Math.pow(se.y-ge,2))/fe*100}const lt=(Math.PI/2-Math.atan2(ve-Ce,ge-Fe))/Math.PI*180,ke=W.querySelector(".PanoRulerPlugin-rule-label"),et=ke.children[0].clientWidth;et>=fe||et/2>=Le/100*fe||et/2>=(1-Le/100)*fe?W.style.display="none":(W.style.display="block",W.style.width=fe+"px",W.style.left=Ce+"px",W.style.top=ge+"px",W.style.transform=`rotate(${-lt}deg)`,ke.style.left=`${Le}%`)}},h=()=>Oh(d),u=()=>{var A,g;return e.loaded?(e.enable||(o.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(g=(A=i.getElement())==null?void 0:A.parentElement)==null||g.append(o),d(),i.on("modeChange",d),i.on("cameraUpdate",h),e.enable=!0),!0):!1},m=()=>(e.enable&&(i.off("modeChange",d),i.off("cameraUpdate",h),o&&o.remove(),e.enable=!1),!0);function p(A){if(A.distanceText&&A.distanceText!==e.options.distanceText){const g=A.distanceText;e.options.distanceText=g,Object.values(r).forEach(b=>{b.rules.forEach(y=>{const[P,x]=y.rule,D=P.distanceTo(x),I=y.$element.querySelector(".PanoRulerPlugin-rule-label-name");I&&(I.innerText=g(D))})})}}return{enable:u,disable:m,load:l,state:e,changeConfigs:p}};function hv(i){de(i,"svelte-1h27ktp",".PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp{position:absolute;transform-origin:left 0.0625rem;width:0;height:0.125rem;pointer-events:none}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::after{content:'';position:absolute;left:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp.svelte-1h27ktp::before{content:'';position:absolute;right:-0.125rem;top:-0.1rem;width:0.25rem;height:0.25rem;border-radius:50%;background:#fff;z-index:1;animation:svelte-1h27ktp-viewport-rule-point 0.1s 1.5s;animation-fill-mode:both}.PanoRulerPlugin-rule-line.svelte-1h27ktp em.svelte-1h27ktp{display:block;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;box-shadow:0 0 0.25rem rgb(0 0 0 / 40%);position:relative}.rule-mixed-line.svelte-1h27ktp.svelte-1h27ktp{display:flex;height:0.0625rem;animation:svelte-1h27ktp-viewport-rule-line 0.5s ease 1s;animation-fill-mode:both;align-items:center}.em-solid.svelte-1h27ktp.svelte-1h27ktp{height:100%;background:#ffffff}.em-dotted.svelte-1h27ktp.svelte-1h27ktp{height:0.125rem;background:var(--background-image);background-position:center;background-repeat:repeat}.PanoRulerPlugin-rule-label.svelte-1h27ktp.svelte-1h27ktp{position:absolute;width:0;height:0;top:0.0625rem;pointer-events:none}.PanoRulerPlugin-rule-label-name.svelte-1h27ktp.svelte-1h27ktp{position:absolute;padding:0.1875rem 0.375rem;background:rgba(195, 195, 195, 0.3);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem);border-radius:6.25rem;border:0.0625rem solid rgba(255, 255, 255, 0.6);white-space:nowrap;overflow:hidden;color:#ffffff;font-weight:500;font-size:0.75rem;line-height:1;animation:svelte-1h27ktp-viewport-rule-label 0.25s ease 1s;animation-fill-mode:both;box-shadow:inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3)}@keyframes svelte-1h27ktp-viewport-rule-line{0%{width:0%}100%{width:100%}}@keyframes svelte-1h27ktp-viewport-rule-label{0%{opacity:0;transform:scaleX(0)}100%{opacity:1;transform:translate(-50%, -50%) scaleX(1)}}@keyframes svelte-1h27ktp-viewport-rule-point{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}")}function Tl(i,t,e){const n=i.slice();return n[6]=t[e],n}function uv(i){let t,e=i[0].children,n=[];for(let o=0;o<e.length;o+=1)n[o]=zl(Tl(i,e,o));return{c(){t=L("div");for(let o=0;o<n.length;o+=1)n[o].c();w(t,"class","rule-mixed-line svelte-1h27ktp")},m(o,s){O(o,t,s);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(t,null)},p(o,s){if(s&9){e=o[0].children;let r;for(r=0;r<e.length;r+=1){const a=Tl(o,e,r);n[r]?n[r].p(a,s):(n[r]=zl(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(o){o&&V(t),Dt(n,o)}}}function fv(i){let t,e;return{c(){t=L("em"),w(t,"class",e=Be(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3])},m(n,o){O(n,t,o)},p(n,o){o&1&&e!==(e=Be(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),o&8&&w(t,"style",n[3])},d(n){n&&V(t)}}}function zl(i){let t,e,n=`${i[6].width}px`;return{c(){t=L("div"),w(t,"class",e=Be(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3]),z(t,"width",n)},m(o,s){O(o,t,s)},p(o,s){s&1&&e!==(e=Be(o[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),s&8&&w(t,"style",o[3]),(s&8||s&9&&n!==(n=`${o[6].width}px`))&&z(t,"width",n)},d(o){o&&V(t)}}}function mv(i){let t,e,n,o,s=i[0].labelElement+"",r,a,l=`${i[0].labelOffset}%`,c=`${i[0].width}px`,d=`${i[0].left}px`,h=`${i[0].top}px`,u=`rotate(${i[0].rotateDeg}deg)`;function m(g,b){return g[0].children.length===0?fv:uv}let p=m(i),A=p(i);return{c(){t=L("div"),A.c(),e=ee(),n=L("div"),o=L("div"),r=Oe(s),w(o,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),rt(()=>i[4].call(o)),w(n,"class","PanoRulerPlugin-rule-label svelte-1h27ktp"),z(n,"left",l),w(t,"class","PanoRulerPlugin-rule-line svelte-1h27ktp"),z(t,"width",c),z(t,"left",d),z(t,"top",h),z(t,"transform",u),z(t,"display",i[0].visible&&i[2]?"block":"none")},m(g,b){O(g,t,b),A.m(t,null),j(t,e),j(t,n),j(n,o),j(o,r),a=ms(o,i[4].bind(o))},p(g,[b]){p===(p=m(g))&&A?A.p(g,b):(A.d(1),A=p(g),A&&(A.c(),A.m(t,e))),b&1&&s!==(s=g[0].labelElement+"")&&Re(r,s),b&1&&l!==(l=`${g[0].labelOffset}%`)&&z(n,"left",l),b&1&&c!==(c=`${g[0].width}px`)&&z(t,"width",c),b&1&&d!==(d=`${g[0].left}px`)&&z(t,"left",d),b&1&&h!==(h=`${g[0].top}px`)&&z(t,"top",h),b&1&&u!==(u=`rotate(${g[0].rotateDeg}deg)`)&&z(t,"transform",u),b&5&&z(t,"display",g[0].visible&&g[2]?"block":"none")},i:Z,o:Z,d(g){g&&V(t),A.d(),a()}}}function pv(i,t,e){let n,{rulerItemProp:o}=t,s=!0,r,a="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function l(){r=this.offsetWidth,e(1,r)}return i.$$set=c=>{"rulerItemProp"in c&&e(0,o=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=o.width||r/2>=o.labelOffset/100*o.width||r/2>=(1-o.labelOffset/100)*o.width?e(2,s=!1):e(2,s=!0))},e(3,n=`--background-image: url(${a})`),[o,r,s,n,l]}class gv extends le{constructor(t){super(),ae(this,t,pv,mv,re,{rulerItemProp:0},hv)}}function jl(i,t,e){const n=i.slice();return n[12]=t[e],n}function Vl(i){let t,e;return t=new gv({props:{rulerItemProp:i[12]}}),{c(){ie(t.$$.fragment)},m(n,o){te(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.rulerItemProp=n[12]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){T(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function vv(i){let t,e,n=i[0],o=[];for(let r=0;r<n.length;r+=1)o[r]=Vl(jl(i,n,r));const s=r=>T(o[r],1,1,()=>{o[r]=null});return{c(){t=L("div");for(let r=0;r<o.length;r+=1)o[r].c()},m(r,a){O(r,t,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(t,null);e=!0},p(r,[a]){if(a&1){n=r[0];let l;for(l=0;l<n.length;l+=1){const c=jl(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=Vl(c),o[l].c(),k(o[l],1),o[l].m(t,null))}for(he(),l=n.length;l<o.length;l+=1)s(l);ue()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)T(o[a]);e=!1},d(r){r&&V(t),Dt(o,r)}}}function Av(i,t,e){var A,g,b,y;let{five:n}=t,{rulerDatas:o}=t,{options:s}=t,r=[];const a=((g=(A=n.getElement())==null?void 0:A.parentElement)==null?void 0:g.clientWidth)||0,l=((y=(b=n.getElement())==null?void 0:b.parentElement)==null?void 0:y.clientHeight)||0,c=(P,x)=>{const D=[[{x:0,y:0},{x:a,y:0}],[{x:0,y:0},{x:0,y:l}],[{x:a,y:0},{x:a,y:l}],[{x:0,y:l},{x:a,y:l}]],I=[];for(let B=0;B<D.length;B++){const S=Vh([P,x],[D[B][0],D[B][1]],!0);S&&I.push(S)}return I.length===0?!1:I},d=(P,x)=>{const D=P.clone().project(n.camera),I=(D.x+1)/2*a,B=(-D.y+1)/2*l,S=x.clone().project(n.camera),X=(S.x+1)/2*a,J=(-S.y+1)/2*l,H=Math.sqrt(Math.pow(X-I,2)+Math.pow(J-B,2));return{startLeft:I,startTop:B,endLeft:X,endTop:J,distance:H}},h=(P,x,D)=>{const I=n.camera.position,B=n.camera.getWorldDirection(new R.Vector3),S=P.clone().sub(I).normalize().angleTo(B),X=x.clone().sub(I).normalize().angleTo(B),J=P.distanceTo(x),Q=x.clone().sub(x.clone().sub(P).divide(new R.Vector3(2,2,2))).distanceTo(I),{startLeft:F,startTop:_,endLeft:W,endTop:q,distance:U}=d(P,x),ce=-((Math.PI/2-Math.atan2(W-F,_-q))/Math.PI)*180;let oe=!0;D||(oe=!1),!Bt(P,D)&&!Bt(x,D)&&(oe=!1),J<.3&&(oe=!1),S>Math.PI/2&&(oe=!1),X>Math.PI/2&&(oe=!1),Q/J>8&&(oe=!1);let we=50,Ce=U;const ge=c({x:~~F,y:~~_},{x:~~W,y:~~q});if(ge&&ge.length===1&&(Bt(P,D)?(Ce=Math.sqrt(Math.pow(ge[0].x-F,2)+Math.pow(ge[0].y-_,2)),we=Ce/U*50):Bt(x,D)&&(Ce=Math.sqrt(Math.pow(ge[0].x-W,2)+Math.pow(ge[0].y-q,2)),we=100-Ce/U*50)),ge&&ge.length===2){const je={x:(ge[0].x+ge[1].x)/2,y:(ge[0].y+ge[1].y)/2};we=Math.sqrt(Math.pow(je.x-F,2)+Math.pow(je.y-_,2))/U*100}return{startLeft:F,startTop:_,distance:U,deg:ce,visible:oe,labelOffset:we,ruleLength:J}},u=()=>{const P=n.panoIndex,x=o.find(H=>H.panoIndex===P);if(!x)return e(0,r=[]);if(n.currentMode!==De.Five.Mode.Panorama)return e(0,r=[]);const D=n.camera.position,I=n.camera.getWorldDirection(new R.Vector3),B=x.lines.map(H=>new R.Vector3(H.start[0],-H.start[1],-H.start[2])),S=x.lines.map(H=>new R.Vector3(H.end[0],-H.end[1],-H.end[2])),[X]=B.concat(S).sort((H,Q)=>{const F=H.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0)),_=Q.clone().setY(0).sub(D).normalize().angleTo(I.clone().setY(0));return F-_}),J=x.lines.map(H=>{var Ce,ge;const Q=H.start,F=H.end,{startLeft:_,startTop:W,distance:q,deg:U,visible:K,labelOffset:ce,ruleLength:oe}=h(new R.Vector3(Q[0],-Q[1],-Q[2]),new R.Vector3(F[0],-F[1],-F[2]),X),we=[];return H.children&&((Ce=H.children)==null?void 0:Ce.length)>0&&((ge=H.children)==null||ge.forEach(je=>{const ve=je.start,Fe=je.end,{distance:fe}=d(new R.Vector3(ve[0],-ve[1],-ve[2]),new R.Vector3(Fe[0],-Fe[1],-Fe[2]));we.push({width:fe,state:je.state})})),{width:q,left:_,top:W,rotateDeg:U,state:H.state,children:we,labelOffset:ce,visible:K,labelElement:s.distanceText(oe)}});e(0,r=J)},m=()=>us(u),p=Ca(u,80);return yt(()=>{u(),n.on("panoArrived",u),n.on("modeChange",u),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>p()),n.on("pinchGesture",()=>p())}),Qt(()=>{n.off("panoArrived",u),n.off("modeChange",u),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>p()),n.off("pinchGesture",()=>p())}),i.$$set=P=>{"five"in P&&e(1,n=P.five),"rulerDatas"in P&&e(2,o=P.rulerDatas),"options"in P&&e(3,s=P.options)},[r,n,o,s]}class bv extends le{constructor(t){super(),ae(this,t,Av,vv,re,{five:1,rulerDatas:2,options:3})}}let yv=class{constructor(t,e){f(this,"five");f(this,"container",document.createElement("div"));f(this,"panoRulerProData");f(this,"rulerItems");f(this,"state",{enabled:!1,loaded:!1,options:{className:"",distanceText:t=>`${t.toFixed(1)}m`}});var n,o;this.five=t,this.container.classList.add("panoRulerProPlugin-container"),this.container.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"),e&&(e.data&&this.load(e.data),this.state.options=G(G({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((o=e.options)==null?void 0:o.className)),this.five.once("modelLoaded",()=>Y(this,null,function*(){var s,r;(r=(s=this.five.getElement())==null?void 0:s.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return Y(this,null,function*(){if(!this.five.work)return;const e=t.data;if(!e)throw new Error("标尺数据依赖不齐全!");this.panoRulerProData=e,this.state.loaded=!0})}enable(){return this.state.loaded?(this.state.enabled||(this.state.enabled=!0,this.render()),!0):!1}disable(){return this.state.enabled&&(this.state.enabled=!1,this.render()),!0}render(){return Y(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new bv({target:this.container,props:{five:this.five,rulerDatas:this.panoRulerProData,options:this.state.options}})}else(t=this.rulerItems)==null||t.$destroy(),this.rulerItems=void 0})}dispose(){this.container&&(this.rulerItems.$destroy(),this.rulerItems=void 0),this.container.remove()}};const wv=(i,t)=>new yv(i,t),Cv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsLhIOYfCC1xUT4QDJjgnmkc58qkT8saSiLeCCkSBBoBoEQSTNd0V9F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ALehA09KpGo8bhou9iUbbs0/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function Pv(){const i=document.createElement("div"),t=document.createElement("i"),e=document.createElement("span");return i.appendChild(t),i.appendChild(e),i.style.position="relative",i.style.width="100%",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.marginTop=`${150/16}rem`,i.style.opacity="0",i.style.transition="opacity 1000ms linear",t.style.display="block",t.style.width=`${134/16}rem`,t.style.height=`${22/16}rem`,t.style.backgroundSize="100%",t.style.backgroundRepeat="no-repeat",t.style.backgroundImage=`url(${Cv})`,e.style.marginTop=`${10/16}rem`,e.style.fontSize=`${16/16}rem`,e.style.color="#fff",e.style.opacity="0.7",e.style.textShadow="0 2px 16px rgb(22 34 83 / 24%)",e.style.fontWeight="bold",{appendTo(n){n.appendChild(i)},dispose(){i.remove()},setRoom(n){e.innerHTML=n.name+" "+Math.floor(n.size/1e6)+"㎡"},show(){i.style.opacity="1"},hide(){i.style.opacity="0"}}}const Ev=new E.TextureLoader;function Zi(i){return Y(this,null,function*(){return new Promise((t,e)=>{Ev.load(i,t,void 0,e)}).then(t=>(t.encoding=E.sRGBEncoding,t))})}const So={userAction:!0};class Iv extends Tn{constructor(e,n){super(e);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:"//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",entryDoorImageUrl:"//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"}});f(this,"data");f(this,"group",new E.Group);f(this,"roomInfoInstance");f(this,"roomInfoWrapperInstance");f(this,"compassMeshTween");f(this,"compassMesh");f(this,"entryDoorMesh");f(this,"dispose",()=>{var e,n,o,s;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(n=(e=this.compassMesh)==null?void 0:e.material.map)==null||n.dispose(),(s=(o=this.entryDoorMesh)==null?void 0:o.material.map)==null||s.dispose(),this.five.off("dispose",this.dispose),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_addEventListener",()=>{this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("modeChange",this.onFiveModeChange),this.five.on("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_removeEventListener",()=>{this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("modeChange",this.onFiveModeChange),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});f(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});f(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});f(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});f(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});f(this,"_clearEntryDoorIfNeed",()=>{var e;this.entryDoorMesh&&(this.group.remove(this.entryDoorMesh),(e=this.entryDoorMesh.material.map)==null||e.dispose(),this.entryDoorMesh=null),this.roomInfoInstance&&(this.roomInfoInstance.dispose(),this.roomInfoInstance=null),this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.dispose(),this.roomInfoWrapperInstance=null)});f(this,"onFivePanoWillArrive",e=>{var n,o;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(o=this.compassMesh)==null||o.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var o,s,r,a,l,c,d;const n=(r=(s=(o=this.five.work)==null?void 0:o.observers)==null?void 0:s[e])==null?void 0:r.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(n.clone().setY(n.y+.01)),this.compassMesh.material.opacity===0&&((a=this.compassMeshTween)==null||a.dispose(),this.compassMeshTween=hs(1e3).onUpdate(({progress:h})=>{var u;(u=this.compassMesh)==null||u.material.setValues({opacity:h}),this.five.needsRender=!0}).play())),this.entryDoorMesh){const u=new E.Vector3(this.data.entrance.position.x,this.data.entrance.position.y,this.data.entrance.position.z).clone().setY(n.y).sub(n).normalize(),m=n.clone().add(u.clone().multiplyScalar(.7)).setY(n.y+.01);this.entryDoorMesh.rotation.z=new E.Vector3(0,0,-1).angleTo(u),this.entryDoorMesh.position.copy(m),((l=this.data)==null?void 0:l.room_observers[e].room.type)===1?(c=this.entryDoorMesh)==null||c.material.setValues({opacity:1}):(d=this.entryDoorMesh)==null||d.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(n.clone().setY(n.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});f(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:n})=>{var o,s;this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(o=this.roomInfoInstance)==null||o.show():(s=this.roomInfoInstance)==null||s.hide())});f(this,"onFiveModeChange",(e,n,o,s,r)=>{e!==n&&this.setState({visible:e===De.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:G(G({},this.state.config),n||{})})}enable(e=So){this.setState({enabled:!0},e)}disable(e=So){this.setState({enabled:!1},e)}show(e=So){if(this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=So){if(this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var s,r;const o=JSON.parse(JSON.stringify(this.state));this.state={visible:(s=e.visible)!=null?s:o.visible,enabled:(r=e.enabled)!=null?r:o.enabled,config:G(G({},o.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:n.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",n)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",n)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",n)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",n)),e.config&&this.init()}load(e,n,o=!0){return Y(this,null,function*(){const s=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(s)&&(this.hooks.emit("dataChange",s,this.data),this.data=G({},s),this.init(),n&&this.setState(n,{userAction:o}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return Y(this,null,function*(){var o,s,r,a;const e=(s=(o=this.data)==null?void 0:o.north_rad)!=null?s:null;this._clearCompassIfNeed(),e!==null&&(this.compassMesh=yield this.loadCompassMesh(),this.compassMesh.rotateX(-Math.PI/2),this.compassMesh.rotateZ(e-Math.PI/2),this.group.add(this.compassMesh));const n=(a=(r=this.data)==null?void 0:r.entrance)!=null?a:null;this._clearEntryDoorIfNeed(),n!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=Pv(),this.entryDoorMesh.rotateX(-Math.PI/2),this.roomInfoWrapperInstance&&this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container),this.group.add(this.entryDoorMesh)),this.onFivePanoArrived(this.five.panoIndex||0),this.five.needsRender=!0})}loadCompassMesh(){return Y(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield Zi(e),o=new E.CircleGeometry(.7,32),s=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new E.Mesh(o,s);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return Y(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield Zi(e),o=new E.PlaneGeometry(.2,.16),s=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new E.Mesh(o,s);return r.name="pano-compass-entry-door",r})}loadRoomInfo(){const e=[new E.Vector3(-.7,0,-.7),new E.Vector3(.7,0,-.7),new E.Vector3(.7,0,.7),new E.Vector3(-.7,0,.7)];return fs(this.five).create3DDomContainer(e)}}const kv=(i,t)=>new Iv(i,t);class xv{constructor(t){f(this,"edges",[]);f(this,"five");f(this,"onModelLoaded",()=>{this.five.model});this.five=t,this.five.model.loaded?this.onModelLoaded():this.five.on("modelLoaded",this.onModelLoaded)}dispose(){}getAdsorbentPoint(t){if(this.edges.length===0)return null;let e=1/0,n;return this.edges.forEach(o=>{const s=o.closestPointToPoint(t.point,!0,new R.Vector3),r=s.distanceTo(t.point);r<e&&(n=s,e=r)}),e>.1?null:n||null}}const Mv=1,Sv=3,Dv=new R.Color(16777215),Lv=new R.Color(6522623),Tv=new R.Color(16777215),zv=new R.Color(6522623),jv=6,Vv=8,Ov="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",Bh=new R.TextureLoader().load(Ov),Bv={pointTexture:Bh,pointSize:jv,lineWidth:Mv,lineColor:Dv,pointColor:Tv,lineRenderOrder:20,pointsRenderOrder:20},Rv={pointTexture:Bh,pointSize:Vv,lineWidth:Sv,lineColor:Lv,pointColor:zv,lineRenderOrder:10,pointsRenderOrder:10};function _v(i,t,e){var d,h,u,m,p;const n=(d=e==null?void 0:e.lineWidth)!=null?d:2,o=(h=e==null?void 0:e.lineColor)!=null?h:new R.Color(16777215),s=(u=e==null?void 0:e.pointSize)!=null?u:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(p=e==null?void 0:e.lineRenderOrder)!=null?p:20,l=new _d.Line(i,t);l.setMaterial({linewidth:n,color:o}),l.line.material.depthTest=!1,l.line.material.transparent=!0,l.line.renderOrder=r,l.points.renderOrder=a;const c=l.points.material;return c.depthTest=!1,c.size=s,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ol(i,t){const[e,n]=i.points,o=t==="light"?Rv:Bv,s=_v(e.position,n.position,o);return s.name="normalLine_"+i.id,s}function Ki(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function Fo(i){const{z:t}=i;return!(Math.abs(t)>1)}function Qv(){const i=document.createElement("div");return i.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),i.style.width="max-content",i.style.padding="3px 6px",i.style.lineHeight="1",i.style.textAlign="center",i.style.transform="translate(-50%, -50%)",i.style.borderRadius="100px",i.style.fontSize="14px",i.style.color="#fff",i.style.background="rgba(195,195,195,0.70)",i.style.border="0.5px solid rgba(255,255,255,0.6)",i.style.cursor="pointer",i}function Hv(i){const t=document.createElement("div");return i!=null&&i.id&&(t.id=i==null?void 0:i.id),t.classList.add("five-plugin-measure__distance"),t.style.opacity="0",t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.width="0",t.style.height="0",t.style.transform="translate3d(0, 0, 0)",t.style.transformOrigin="left top",t}class Rh{constructor(t){f(this,"ndcPosition");f(this,"contentDom");f(this,"containerDom");f(this,"params");f(this,"canSelected");f(this,"handleClick",t=>{var e,n;(n=(e=this.params).clickCallback)==null||n.call(e,t,this)});this.params=t,this.contentDom=Qv(),this.containerDom=Hv(),this.setCanSelect(!0)}setCanSelect(t){this.canSelected=t,this.containerDom.style.pointerEvents=t?"all":"none"}highlight(){this.contentDom.style.border="0.5px solid #95AEFF",this.contentDom.style.background="linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)"}unHighlight(){this.contentDom.style.border="0.5px solid rgba(255,255,255,0.6)",this.contentDom.style.background="rgba(195,195,195,0.70)"}appendTo(t){t.appendChild(this.containerDom),this.containerDom.addEventListener("click",this.handleClick)}remove(){this.contentDom.removeEventListener("click",this.handleClick),this.containerDom.remove()}show(){this.containerDom.style.opacity="1",this.containerDom.style.pointerEvents=this.canSelected?"auto":"none"}hide(){this.containerDom.style.opacity="0",this.containerDom.style.pointerEvents="none"}updateDomPosition(t){if(!this.ndcPosition){this.hide();return}const e=t.getElement();if(!e)return;const n=e.clientWidth,o=e.clientHeight,s=this.ndcPosition.clone().project(t.camera);if(!Fo(s)){this.hide();return}const r=(s.x+1)/2*n,a=-(s.y-1)/2*o;this.containerDom.style.transform=`translate(${r}px, ${a}px)`,this.show()}}class Gv extends Rh{constructor(e){var n;super(e);f(this,"line");this.params=e,this.line=e.line,(n=this.params.userDistanceItem)!=null&&n.element?this.containerDom.appendChild(this.params.userDistanceItem.element):this.containerDom.appendChild(this.contentDom)}update(e){var B;if(this.line.mesh.visible===!1){this.hide();return}const n=e.getElement();if(!n)return;const o=n.clientWidth,s=n.clientHeight,r=o/2,a=s/2;if(this.line.points.length<2)return;const[l,c]=this.line.points,d=l.position.clone().project(e.camera),h=c.position.clone().project(e.camera),u=d.clone().lerp(h,.5),m=new R.Vector2(d.x*r,d.y*a),p=new R.Vector2(h.x*r,h.y*a),A=m.distanceTo(p);if((()=>!(Math.abs(d.z)>1||Math.abs(h.z)>1||!Fo(d)&&!Fo(h)||!Fo(u)||A===0))()===!1){this.hide();return}const b=(u.x+1)/2*o,y=-(u.y-1)/2*s,x=-(Math.atan((m.y-p.y)/(m.x-p.x))*180)/Math.PI,D=this.containerDom.parentElement&&this.contentDom.clientWidth>A?-20:0;this.containerDom.style.transform=`translate(${b}px, ${y}px) rotate(${x}deg) translateY(${D}px)`,this.show(),(B=this.params.userDistanceItem)==null||B.update({line:this.line,polyline:this.line.getPolyline()});const I=this.getCurrentContent();this.contentDom.innerText=I}getCurrentContent(){var l,c,d,h;if(this.line.points.length<2)return"";const[e,n]=this.line.points,o=e.position.clone().distanceTo(n.position),s=(c=this.line.text)!=null?c:(l=this.line.model.config)==null?void 0:l.defaultText,r=(h=(d=this.line.model.config)==null?void 0:d.getDistanceText)==null?void 0:h.call(d,o),a=s!=null?s:r;return a!=null?a:o.toFixed(2)+"m"}}class Zt{constructor(t,e,n){f(this,"id");f(this,"selected",!1);f(this,"text");f(this,"type","line");f(this,"model");f(this,"mesh");f(this,"points");f(this,"lightMesh");f(this,"hook");f(this,"distanceItem");f(this,"polyline");var o;if(this.id=st(),this.model=n,t.id===e.id)throw new Error("无效的线段, 一个点无法构成线段");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new De.Subscribe,this.points=[t,e],this.mesh=Ol(this,"normal"),this.lightMesh=Ol(this,"light"),this.distanceItem=new Gv({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(o=this.model.config)!=null&&o.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}setPoints(t,e){this.points[0].position.copy(t),this.points[1].position.copy(e),this.mesh.setPoints(t,e)}remove(){this.mesh.parent&&this.mesh.parent.remove(this.mesh),this.distanceItem.remove()}clear(){this.selected=!1,this.polyline=void 0}isEmpty(){return this.points.length===0}getPolyline(){if(this.polyline)return this.polyline;const t=this.model.polylines.find(e=>e.lines.includes(this));if(t)return this.polyline=t,t}findAnotherPoint(t){return this.points.find(({id:e})=>e!==t.id)}setText(t){this.text=t,this.hook.emit("textChanged",t)}toJson(){return{id:this.id,points:this.points.map(t=>t.toJson()),text:this.text}}clone(){const t=new Zt(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}function Fv(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class ht{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");if(this.id=st(),this.lines=[],this.position=new R.Vector3,Array.isArray(t))this.position.fromArray(t);else if(typeof t=="object"&&t.isVector3)this.position.copy(t);else throw new Error("position must be Vector3 or number[]")}toJson(){return{id:this.id,position:this.position.toArray()}}addLine(t){this.lines.push(t)}removeLine(t){Fv(t,this.lines)}clone(){return new ht(this.position)}}const Do=i=>i.preventDefault();let ys=class{constructor(t){f(this,"model");f(this,"five");f(this,"group");f(this,"config");f(this,"dashed");f(this,"perpendicularDashed");f(this,"disposed",!1);f(this,"isMobile");f(this,"mouseGroup");f(this,"container");f(this,"fiveHelper");f(this,"editParams");f(this,"magnifierParams");f(this,"hook");f(this,"magnifier");f(this,"userDistanceItemCreator");f(this,"getMeasureType");f(this,"updateDistanceUI",()=>{this.dashed.distanceItem.update(this.five),this.model.getAllLines().forEach(t=>t.distanceItem.update(this.five))});var n,o;this.five=t.five,this.hook=t.hook,this.model=t.model,this.getMeasureType=t.getMeasureType,this.config=t.config,this.magnifierParams=t.magnifierParams,this.magnifier=t.magnifier,this.container=t.container,this.fiveHelper=t.fiveHelper,this.editParams=t.editParams,this.isMobile=(o=(n=t.openParams)==null?void 0:n.isMobile)!=null?o:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new Zt(new ht([0,0,0]),new ht([0,0,0]),this.model),this.dashed.distanceItem.setCanSelect(!1),this.dashed.mesh.setMaterial({dashed:!0,dashScale:100}),this.dashed.mesh.name="dashLine",this.perpendicularDashed=new Zt(new ht([0,0,0]),new ht([0,0,0]),this.model),this.perpendicularDashed.distanceItem.setCanSelect(!1),this.perpendicularDashed.mesh.setMaterial({dashed:!0,dashScale:40,color:new R.Color(10218089)}),this.perpendicularDashed.mesh.name="perpendicularDashLine";const e=this.five.getElement();e&&(e.addEventListener("touchstart",Do),e.addEventListener("contextmenu",Do))}get currentMeasureType(){return this.getMeasureType()}removeLine(t){this.group.remove(t.mesh,t.lightMesh),t.distanceItem.remove(),this.five.needsRender=!0}updateMouseGroup(t,e){if(!t)return this.mouseGroup;if(this.mouseGroup.position.copy(t.point),e)this.mouseGroup.quaternion.copy(e.quaternion);else if(t.face){const o=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(r)}return this.mouseGroup}dispose(){this.disposed=!0,this.magnifier.disable(),this.model.getAllLines().forEach(e=>this.removeLine(e)),this.model.areas.forEach(e=>e.remove());const t=this.five.getElement();t&&(t.removeEventListener("touchstart",Do),t.removeEventListener("contextmenu",Do))}};function Nr(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:o}=i.target,s=i.target.getBoundingClientRect(),r=new R.Vector2(t,e).sub(new R.Vector2(s.left,s.top)),a=new R.Vector2(r.x/n*2-1,-(r.y/o)*2+1);return{point:r,ndcPoint:a}}function Bl(i,t){const e=Nr(t).ndcPoint,n=new R.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}let Sn=class{constructor(t){f(this,"id",st());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new De.Subscribe);this.model=t.model}addLine(t){if(this.includes(t)){console.error(new Error("不能重复添加线段"));return}const e=this.getLastPoint(),n=e&&t.findAnotherPoint(e);e?e&&n?(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t)):console.error(new Error("传入线段无法与当前折线进行连接")):(this.lines.push(t),this.points.push(...t.points),this.hook.emit("lineAdded",t))}removeLine(t){if(this.lines.length!==0){if(!this.isLastLine(t)){console.error(new Error("传入线段不是当前折线的最后一段"));return}this.lines.pop(),this.lines.length===0?this.points.slice(0,this.points.length):this.points.pop(),this.hook.emit("lineRemoved",t)}}isLastLine(t){const e=this.getLastLine();return e?t.id===e.id:!1}getLastLine(){return this.lines.slice(-1)[0]}getPointLength(){return this.lines.length+1}clear(){const t=this.lines.slice();this.lines.slice(0,this.lines.length),this.points.slice(0,this.points.length),t.reduceRight((e,n)=>this.hook.emit("lineRemoved",n),void 0)}overlapWith(t){return t.type==="point"?this.includes(t):t.type==="line"?t.points.some(e=>this.includes(e)):t.type==="polyline"?t.points.some(e=>this.includes(e)):!0}includes(t){return t.type==="point"?this.points.find(({id:e})=>e===t.id)!==void 0:t.type==="line"?this.lines.find(({id:e})=>e===t.id)!==void 0:!1}isEmpty(){return this.points.length===0}getLastPoint(){return this.points.slice(-1)[0]}toJson(){return{id:this.id,lines:this.lines.map(t=>t.toJson()),visiblePanoIndexes:this.visiblePanoIndexes}}getPointByID(t){return this.points.find(({id:e})=>e===t)}fromJson(t){this.clear(),this.id=t.id;const{getPoint:e,getAllPoints:n}=r(),o=t.lines.map(a=>{const[l,c]=a.points,d=e(l),h=e(c);if(!d||!h)throw new Error("线上的点不存在");const u=new Zt(d,h,this.model);return u.id=a.id,u.text=a.text,u}),s=n();this.points.push(...s),this.lines.push(...o),this.visiblePanoIndexes=t.visiblePanoIndexes;function r(){const a=new Map;function l(d){const h=a.get(d.id);if(h)return h;const u=new ht(d.position);return u.id=d.id,a.set(d.id,u),u}function c(){return Array.from(a.values())}return{getPoint:l,getAllPoints:c}}return this}replace(t){this.id=t.id,this.clear(),this.lines.push(...t.lines),this.points.push(...t.points)}};class _h extends R.Object3D{constructor(){super()}add(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.add(...e)}remove(...t){if(t.length===0)return this;const e=t.filter(Boolean);return super.remove(...e)}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}}function Wv(i){const t=i.slice();if(t.length<3)return;t.at(-1).equals(t[0])||t.push(t[0]);const e=t.flatMap(r=>[r.x,r.y,r.z]),n=new E.Float32BufferAttribute(e,3),o=Fu(e,void 0,3),s=new E.BufferGeometry;return s.setAttribute("position",n),s.setIndex(o),s.name="PolygonGeometry",s}const Nv=new E.BufferGeometry;class Qh extends _h{constructor(e){super();f(this,"geometry",new E.BufferGeometry);const n=new E.MeshBasicMaterial({color:6522623,transparent:!0,side:E.DoubleSide,depthTest:!0,opacity:.5}),o=new E.MeshBasicMaterial({color:16777215,transparent:!0,side:E.DoubleSide,depthTest:!1,depthWrite:!1,opacity:.2}),s=new E.Mesh(this.geometry,n),r=new E.Mesh(this.geometry,o);s.renderOrder=10,r.renderOrder=0,e&&this.updatePoints(e),this.add(s,r)}updatePoints(e){const n=Wv(e);n?this.geometry.copy(n):this.geometry.copy(Nv)}}function Yv(i){const t=Uv(i);let e=0,n=new R.Vector3;for(const[o,s,r]of t){const a=Hh(o,s,r),l=Xv(o,s,r,a);e+=a,n.add(l)}return n=n.divideScalar(e),{center:n,area:e}}function Hh(i,t,e){return t.clone().sub(i).cross(e.clone().sub(i)).length()/2}function Xv(i,t,e,n){const o=n!=null?n:Hh(i,t,e);return un(i,t,e).multiplyScalar(o)}function Uv(i){var o;const t=i.getAttribute("position"),e=(o=i.getIndex())==null?void 0:o.array;if(!t||!e)return[];let n=[];for(let s=0;s<e.length;s+=3){const r=e[s],a=e[s+1],l=e[s+2],c=new R.Vector3().fromArray([t.getX(r),t.getY(r),t.getZ(r)]),d=new R.Vector3().fromArray([t.getX(a),t.getY(a),t.getZ(a)]),h=new R.Vector3().fromArray([t.getX(l),t.getY(l),t.getZ(l)]);n.push([c,d,h])}return n}class qv extends Rh{constructor(e){super(e);f(this,"area");this.params=e,this.area=e.area,this.containerDom.appendChild(this.contentDom)}updateArea(e,n){const o=n!=null?n:this.area.polygon.geometry,{area:s,center:r}=Yv(o);console.log("center",r),this.ndcPosition=r,this.updateDomPosition(e),this.updateAreaText(s)}updateAreaText(e,n){const{unit:o="m²",fix:s=2}=n!=null?n:{};this.contentDom.innerText=`${e.toFixed(s)}${o}`}}class Yr{constructor(t,e){f(this,"id",st());f(this,"selected",!1);f(this,"text");f(this,"lightMesh");f(this,"areaItem");f(this,"hook",new De.Subscribe);f(this,"polygon");f(this,"points",[]);f(this,"planeHelper");f(this,"polyline");f(this,"meshContainer");f(this,"domContainer");f(this,"five");f(this,"model");f(this,"updateDom",()=>{this.five&&(this.polyline.lines.forEach(t=>t.distanceItem.update(this.five)),this.areaItem.updateDomPosition(this.five))});var n;t&&(this.points=t),this.model=e.model,this.polygon=new Qh(t),this.polyline=new Sn({model:e.model}),this.areaItem=new qv({area:this,clickCallback:(o,s)=>{const r=o.clientX+"px",a=o.clientY+"px";this.hook.emit("selected",this,{left:r,top:a})}}),this.domContainer=e.domContainer||null,this.meshContainer=e.meshContainer||null,this.five=e.five||null,this.areaItem.appendTo(this.domContainer),(n=this.five)==null||n.on("cameraUpdate",this.updateDom)}addPoints(t){var o;this.points=this.points.concat(t);const e=this.points.at(-2),n=this.points.at(-1);if(e&&n){const s=new Zt(new ht(e),new ht(n),this.polyline.model);this.polyline.addLine(s),this.meshContainer.add(s.mesh),this.five&&(s.distanceItem.setCanSelect(!1),s.distanceItem.appendTo(this.domContainer),s.distanceItem.update(this.five))}(o=this.meshContainer)!=null&&o.children.includes(this.polygon)||this.meshContainer.add(this.polygon),this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five),this.points.length===3?this.planeHelper=new E.Plane().setFromCoplanarPoints(this.points[0],this.points[1],this.points[2]):this.points.length<3&&(this.planeHelper=null)}refresh(){this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five)}hideArea(){this.polygon.visible=!1,this.areaItem.hide()}showArea(){this.polygon.visible=!0,this.areaItem.show()}projectPoint(t){return this.planeHelper?this.planeHelper.projectPoint(t,new E.Vector3):t}remove(){this.polygon.removeFromParent(),this.areaItem.remove(),this.polyline.lines.forEach(t=>t.remove())}dispose(){this.remove(),this.model.areas.splice(this.model.areas.indexOf(this),1),this.planeHelper=null,this.five.off("cameraUpdate",this.updateDom),this.five.needsRender=!0}}function Rl(i,t){const e=Array.isArray(t)?t:[t];for(let n=0;n<e.length;n++){const o=e[n],s=i.start,r=i.end,a=o.start,l=o.end;if(Vi(s,a)||Vi(s,l)||Vi(r,a)||Vi(r,l)||Vi(s,r))continue;const c=Lo(s,r,a),d=Lo(s,r,l),h=Lo(a,l,s),u=Lo(a,l,r);if(c!==d&&h!==u||c===0&&To(s,r,a)||d===0&&To(s,r,l)||h===0&&To(a,l,s)||u===0&&To(a,l,r))return!0}return!1}function Vi(i,t){return i.x===t.x&&i.z===t.z&&i.y===t.y}function Lo(i,t,e){const n=(e.z-i.z)*(t.x-i.x)-(t.z-i.z)*(e.x-i.x);return n===0?0:n<0?2:1}function To(i,t,e){return t.x<=Math.max(i.x,e.x)&&t.x>=Math.min(i.x,e.x)&&t.z<=Math.max(i.z,e.z)&&t.z>=Math.min(i.z,e.z)}const Jv="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;class Zv{constructor(t,e){f(this,"hook",new De.Subscribe);f(this,"five");f(this,"mode");f(this,"pointSelectorHelper");f(this,"enabled",!1);f(this,"onFivePanGesture",()=>{this.pointSelectorHelper.updateByNdcPosition({x:.5,y:.5})});f(this,"emitIntersectionUpdate",t=>{this.hook.emit("intersectionUpdate",t)});var s,r,a;this.five=t;const n=(s=e==null?void 0:e.mode)!=null?s:"auto";n==="auto"?this.mode=Jv?"fixed":"cursor":this.mode=n;const o={autoFixPCPosition:this.mode==="cursor",initialPosition:this.mode==="fixed"?{left:"35%",top:"20%"}:void 0};console.log(G(G({},o),(r=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:r.magnifierParams)),this.pointSelectorHelper=new eh(t,be(G({},e==null?void 0:e.pointSelectorHelperParams),{magnifierParams:G(G({},o),(a=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:a.magnifierParams)}))}get position(){return this.pointSelectorHelper.position}enable(){if(this.enabled)return;this.enabled=!0,this.pointSelectorHelper.enable();const t=this.five.getElement();this.mode==="cursor"?(console.log("cursor"),this.five.on("intersectionOnModelUpdate",this.pointSelectorHelper.updateWithIntersect),this.five.on("wantsMoveToPano",zo),this.five.on("wantsTapGesture",zo),t==null||t.addEventListener("mousemove",this.pointSelectorHelper.updateByMousePosition),t==null||t.addEventListener("mouseenter",this.pointSelectorHelper.show),t==null||t.addEventListener("mouseout",this.pointSelectorHelper.hide)):this.mode==="fixed"&&(this.five.on("panGesture",this.onFivePanGesture),this.five.on("interiaPan",this.onFivePanGesture)),this.pointSelectorHelper.hooks.on("intersectionUpdate",this.emitIntersectionUpdate)}disable(){if(!this.enabled)return;this.enabled=!1,this.pointSelectorHelper.disable();const t=this.five.getElement();this.five.off("intersectionOnModelUpdate",this.pointSelectorHelper.updateWithIntersect),this.five.off("wantsMoveToPano",zo),this.five.off("wantsTapGesture",zo),t==null||t.removeEventListener("mousemove",this.pointSelectorHelper.updateByMousePosition),t==null||t.removeEventListener("mouseenter",this.pointSelectorHelper.show),t==null||t.removeEventListener("mouseout",this.pointSelectorHelper.hide),this.five.off("panGesture",this.onFivePanGesture),this.five.off("interiaPan",this.onFivePanGesture),this.pointSelectorHelper.hooks.off("intersectionUpdate",this.emitIntersectionUpdate)}dispose(){this.disable(),this.pointSelectorHelper.dispose()}}function zo(){return!1}class Hi extends ys{constructor(e){var o;super(e);f(this,"type","edit");f(this,"polyline");f(this,"area");f(this,"pressPoint");f(this,"hasAppendDashed",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"hammer");f(this,"pointSelector");f(this,"onIntersectionUpdate",Ca(e=>{var o;const n=e.point;(o=this.pressPoint)==null||o.position.copy(n),this.updateDashed(),this.five.needsRender=!0},20));f(this,"revoke",()=>{this.currentMeasureType==="area"?this.revokeArea():this.currentMeasureType==="line"&&this.revokeLine()});f(this,"revokeArea",()=>{this.area.points.length!==0&&(this.revokeLine(this.area.polyline),this.area.points.pop(),this.area.refresh(),this.five.needsRender=!0)});f(this,"revokeLine",e=>{const n=e||this.polyline;if(n.lines.length===0&&this.lastPoint){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.remove(),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.needsRender=!0;return}if(n.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const o=n.lines[n.lines.length-1],s=o.findAnotherPoint(this.lastPoint);s&&(this.lastPoint=s,this.hook.emit("anchorChange",s.position),this.group.remove(o.mesh),n.removeLine(o),o.distanceItem.remove(),this.updateDashed(),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.lastPoint&&(this.pointSelector.position.point.copy(this.lastPoint.position),this.updateDashed()),this.area.hideArea()});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onPress",e=>{const[n]=Bl(this.five,e);if(!(n!=null&&n.face))return;const o=new ht(n.point);this.pressPoint=o,this.onIntersectionUpdate(n)});f(this,"onPan",e=>{if(!this.pressPoint)return;const[n]=Bl(this.five,e);n!=null&&n.face&&this.onIntersectionUpdate(n)});f(this,"onPanEnd",()=>{this.pressPoint&&this.onTap()});f(this,"onTap",()=>{var s,r,a,l;this.hasAppendDashed||(this.dashed.distanceItem.appendTo(this.container),this.group.add(this.dashed.mesh),this.currentMeasureType==="area"&&this.group.add(this.perpendicularDashed.mesh)),this.hasAppendDashed=!0;const e=(()=>{if(this.currentMeasureType==="area")return this.area.projectPoint(this.pointSelector.position.point);if(this.currentMeasureType==="line")return this.pointSelector.position.point})();if(!e)return;const n=new ht(e),o=this.lastPoint;if(this.lastPoint=n,this.currentMeasureType==="line"){if(n&&o){const d=new Zt(o,n,this.model);d.distanceItem.setCanSelect(!1),d.distanceItem.appendTo(this.container),this.polyline.addLine(d),this.group.add(d.mesh),d.distanceItem.update(this.five)}const c=(r=(s=this.editParams)==null?void 0:s.autoEndConfig)==null?void 0:r.line;typeof c=="number"&&(this.polyline.getPointLength()>=c?(this.hook.emit("complete"),this.polyline=new Sn({model:this.model}),this.model.addPolyline(this.polyline),this.lastPoint=void 0):this.polyline.getPointLength()===c-1&&this.hook.emit("readyComplete"))}else if(this.currentMeasureType==="area"){this.area.addPoints(n.position);const c=(l=(a=this.editParams)==null?void 0:a.autoEndConfig)==null?void 0:l.area;typeof c=="number"&&(this.area.points.length>=c?(this.hook.emit("complete"),this.area=new Yr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addArea(this.area),this.lastPoint=void 0):this.area.points.length===c-1&&this.hook.emit("readyComplete"))}this.pressPoint=void 0,this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)});f(this,"onWantsPanGesture",()=>this.pressPoint?!1:void 0);f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"updateDashed",()=>{if(!this.lastPoint)return;const e=this.lastPoint.position,n=(()=>{if(this.currentMeasureType==="area")return this.area.projectPoint(this.pointSelector.position.point);if(this.currentMeasureType==="line")return this.pointSelector.position.point})();if(this.dashed.setPoints(e,n),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed),this.currentMeasureType==="area"){this.area.areaItem.setCanSelect(!1);const o=this.pointSelector.position.point;if(this.area.points.length>=2){const a=this.area.polyline.lines.map(h=>({start:h.points[0].position,end:h.points[1].position})),l=Rl({start:e,end:n},a),c=Rl({start:n,end:this.area.points[0]},a);if(l||c)this.area.hideArea(),this.hook.emit("allowAddPointStateChange","forbid");else{this.area.showArea();const h=[...this.area.points,n];this.area.polygon.updatePoints(h),this.area.areaItem.updateArea(this.five),this.hook.emit("allowAddPointStateChange","allow")}}else this.area.hideArea();const s=o,r=n;this.perpendicularDashed.setPoints(s,r),this.perpendicularDashed.distanceItem.update(this.five)}});this.pointSelector=new Zv(this.five,{mode:this.editParams.pointSelectorMode,pointSelectorHelperParams:{magnifierParams:this.magnifierParams}}),this.pointSelector.enable(),this.polyline=new Sn({model:this.model}),this.area=new Yr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addPolyline(this.polyline),this.model.addArea(this.area),this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateDomPosition(this.five),s.areaItem.setCanSelect(!0),this.group.add(s.polygon),s.polyline.lines.forEach(r=>{r.distanceItem.appendTo(this.container),r.distanceItem.update(this.five),this.group.add(r.mesh)})}),this.five.on("cameraUpdate",this.onCameraUpdate),this.pointSelector.hook.on("intersectionUpdate",this.onIntersectionUpdate),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged);const n=this.five.getElement();if(n){this.fiveElement=n;const s=new eo(n);this.hammer=s,s.on("tap",this.onTap),s.on("pan",this.onPan),s.on("press",this.onPress),s.on("panend",this.onPanEnd)}this.five.helperVisible=!1,(o=this.fiveElement)==null||o.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e,n;super.dispose(),this.five.helperVisible=!0,this.pointSelector.disable(),this.dashed.remove(),this.perpendicularDashed.remove(),this.five.off("cameraUpdate",this.onCameraUpdate),this.pointSelector.hook.off("intersectionUpdate",this.onIntersectionUpdate),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.hammer)==null||e.destroy(),(n=this.fiveElement)==null||n.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}selectPoint(){this.onTap()}}class _l extends ys{constructor(e){super(e);f(this,"type","view");f(this,"hammer");f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"polylineAdded",e=>{const n=this.five.getCurrentState().panoIndex;e.lines.forEach(o=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(o.mesh.visible=!1),o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&(n.visiblePanoIndexes.includes(e)||n.lines.forEach(o=>{o.mesh.visible=!1,o.distanceItem.update(this.five)}))})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&n.visiblePanoIndexes.includes(e)&&n.lines.forEach(o=>{o.mesh.visible=!0,o.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)});const n=this.five.getElement();if(n){const o=new eo(n);this.hammer=o}this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex),this.onFivePanoArrived(this.five.getCurrentState().panoIndex),this.updateDistanceUI(),this.five.needsRender=!0,this.model.hook.on("polylineAdded",this.polylineAdded),this.model.hook.on("polylineRemoved",this.polylineRemoved),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive)}dispose(){var e;super.dispose(),this.model.hook.off("polylineAdded",this.polylineAdded),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}}const Kv=`
|
|
288
288
|
<svg class="fpm__delete-icon" width="16px" height="17px" viewBox="0 0 16 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
289
289
|
<defs>
|
|
290
290
|
<linearGradient x1="22.185491%" y1="100%" x2="66.8316686%" y2="6.67239121%" id="linearGradient-1">
|
|
@@ -297,7 +297,7 @@ void main() {
|
|
|
297
297
|
`,Ql="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYlIiB5MT0iNDIuNzQ0JSIgeDI9Ijg5LjA2NCUiIHkyPSI1Ny4yMDglIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4zMDgiIG9mZnNldD0iNDkuNTY5JSIvPjxzdG9wI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mBjwDjd1h00OJY9RQdeiybzVZ+8XmucZXP74AN8ure9YPq2vz97Fn8T8R6+++C/D6lMWcoZndf3zd13+OR3g9fqi/6/pC8nn8rUEnz7pByIHvgvF4mZwA31DjRwvfWOP0MmTdTN6+9dp957keGz6A2jVtplvepmDXo+8yS2sy9QHN5ekGsIBO7eCz3Lr0ZUovL1HcO+788/zhtd6jEUInp369DJf3MaG7ir/9hqEYHxXiK8F+F04/mSa7uljqv17HfSN+gJ582eW3ftTeGGcT8t68Gcv73vkicM36necXqmb/GJ9h+OC77LwkcJvDMW8OfjOB/eTm3P2xUWxVocJ6uaiBRr32orc8NafI6m40Q/vs/qYjT16Q3v96JnSkK4XlQD32h3A/NJvZomR+MaVBzrnDeY6l2hW2PceDgs/nofEKxp6AemVcedsifNcxi87L36+IOYP3vgXQWUi7qVeB7+g18Pb7rzv8JPfdf/FH6Xvs7nXMZ/NFqfeP/6zl5+rN8HX6NdqX6on4yu1fxZ3lJvKG4SPHuzk3LS8QXDKTTQOgVXPglMueVYmbuJWn55+sukDZ+gTMouX/Og7V+YB29eM9YWgeqxwwz+nbf7smaG0G6689TOv8/MBmJBlXuHz/NGz54W7FEeNZW66Kg7Tz+ZrpthHTx88eehzfe+8CcKr/fdE+zk9/tPh1sNDD3zTxe+2/tMUMMcf+/K3Zq8dvlgvuhfqyfhC3aXP10eQ5+lzxLt1c+7SkHcJv/3sEzWnF1n/r8sqON9hq1L1Jmxk9vGTRF0Bvc+ts7i4JesX34YXr51vYPqY7wFG1zY9YieaKm36xS817VizJm96rSoEPa6Y0+MNUcKNp0D9l//jem4fFf6ontdHFH9Yz+3v6I3xW3qjfkDfGv2173719f+sQc/zLAb/D0EI6cG68deIAAAAAElFTkSuQmCC";class Gh{constructor(t,e){f(this,"visible",!1);f(this,"five");f(this,"lines",[]);f(this,"points",[]);f(this,"onClick");f(this,"cancelDelete");f(this,"content",document.createElement("div"));f(this,"container",document.createElement("div"));f(this,"masking",document.createElement("div"));f(this,"onMouseEnter",()=>{this.content.style.backgroundImage=`url(${$v})`});f(this,"onMouseLeave",()=>{this.content.style.backgroundImage=`url(${Ql})`});var o,s;this.five=t,this.onClick=(e==null?void 0:e.onClick)||(()=>{}),this.cancelDelete=(e==null?void 0:e.cancelDelete)||(()=>{}),this.container.classList.add("fpm__delete"),this.container.style.opacity="0",this.container.style.position="absolute",this.container.style.left="0",this.container.style.top="10px",this.container.style.transform="translate3d(0, 0, 10px)",this.container.style.pointerEvents="none",this.container.style.transition="opacity 200ms ease",this.container.style.zIndex="99",this.content.classList.add("fpm__delete-content"),this.content.style.width="62px",this.content.style.height="26px",this.content.style.display="flex",this.content.style.alignItems="center",this.content.style.justifyContent="center",this.content.style.transform="translate(-50%, -50%)",this.content.style.color="#fff",this.content.style.fontSize="12px",this.content.style.lineHeight="17px",this.content.style.borderRadius="11px",this.content.style.backgroundSize="100% 100%",this.content.style.cursor="pointer",this.content.style.userSelect="none",this.content.style.backgroundImage=`url(${Ql})`,this.content.innerHTML=`
|
|
298
298
|
${Kv}
|
|
299
299
|
<span>${(s=(o=e.i18n)==null?void 0:o.call(e,"删除"))!=null?s:"删除"}</span>
|
|
300
|
-
`,this.container.append(this.content);const n=this.content.querySelector(".fpm__delete-icon");n&&(n.style.width="16px",n.style.height="17px",n.style.marginRight="1px"),this.content.addEventListener("click",this.onClick),this.content.addEventListener("mouseenter",this.onMouseEnter),this.content.addEventListener("mouseleave",this.onMouseLeave),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelDelete),this.masking.addEventListener("touchstart",this.cancelDelete)}dispose(){this.content.removeEventListener("click",this.onClick),this.content.removeEventListener("mouseenter",this.onMouseEnter),this.content.removeEventListener("mouseleave",this.onMouseLeave),this.container.remove(),this.masking.removeEventListener("click",this.cancelDelete),this.masking.removeEventListener("touchstart",this.cancelDelete),this.masking.remove()}appendTo(t){return t.append(this.container),t.append(this.masking),this}setLines(t){return this.lines=t,this.points=Array.from(new Set(this.lines.map(e=>[e.points[0],e.points[1]]).flat(1))),this}updatePosition(t,e){if(t&&e)return this.container.style.left=t,this.container.style.top=e,this.show();if(this.lines.length===0)return this;const n=this.points.map(p=>p.position),o=n.map(p=>p.clone().project(this.five.camera));if(o.some(p=>Math.abs(p.z)>1))return this.hide();const s=o.map(p=>p.x),r=o.map(p=>p.y),a=(Math.min(...s)+Math.max(...s))/2,l=Math.max(...r),c=this.container.parentElement;if(!c)return this;const d=(a+1)/2*c.clientWidth,h=-(l-1)/2*c.clientHeight;let u=d,m=h-34;if(this.lines.length===1&&n.length===2){const p=(r[1]-r[0])/(s[1]-s[0]),g=-((r[1]+r[0])/2-1)/2*c.clientHeight;Math.abs(p)>.4&&(u=d+57,m=g)}return this.container.style.top="0",this.container.style.transform=`translate3d(${u}px, ${m}px, 0)`,this.show()}hide(){return this.visible=!1,this.masking.style.pointerEvents="none",this.container.style.opacity="0",this.container.style.pointerEvents="none",this}show(){return this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.pointerEvents="auto",this}}function Fh(i,t){const e=i.x-t[0].x,n=i.y-t[0].y,o=t[1].x-t[0].x,s=t[1].y-t[0].y,r=e*o+n*s,a=o*o+s*s,l=r/a;let c,d;return l<0||e0(t[0],t[1])?(c=t[0].x,d=t[0].y):l>1?(c=t[1].x,d=t[1].y):(c=t[0].x+l*o,d=t[0].y+l*s),new R.Vector2(c,d)}function e0(i,t){return i.x===t.x&&i.y===t.y}function t0(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new R.Vector2(e,n)}function n0(i,t,e,n){const o=i.getElement();if(!o||t.length===0)return null;const s={width:o.clientWidth,height:o.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return Ki(l)?{distance:t0(l,s).distanceTo(e),point:a}:{distance:1/0,point:a}}).sort((a,l)=>a.distance-l.distance);return typeof n=="number"&&r[0].distance>n?null:r[0]}function Xr(i){const t=(s,r,a)=>{const l=s.lines.find(d=>d.points.findIndex(({id:u})=>u===s.id)!==r);if(!l)return a;const c=l.points[r];return c?t(c,r,a.concat(l)):a},e=t(i.points[0],1,[]),n=t(i.points[0],0,[]);return e.concat(n)}class Hl extends ys{constructor(e){super(e);f(this,"type","watch");f(this,"deleteDom");f(this,"choose");f(this,"highlightedLines",[]);f(this,"highlightedArea");f(this,"fiveElement");f(this,"editPointState");f(this,"hammer");f(this,"onPanStart",e=>{var a;if(this.model.getAllLines().length===0||!this.fiveElement)return;const n=Nr(e).point,o=(a=n0(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!o){this.editPointState=void 0;return}const s={point:o,associatedLines:Xr(o.lines[0])};this.hook.emit("wantsDragLine",{point:o.id,lines:s.associatedLines.map(({id:l})=>l)})||(this.editPointState=s,this.magnifier.appendTo(this.container),this.magnifier.enable(),this.group.add(this.mouseGroup))});f(this,"onPanEnd",()=>{this.editPointState&&(this.editPointState.point.lines.forEach(e=>e.mesh.setMaterial({dashed:!1})),this.highlightLines(this.editPointState.associatedLines),this.editPointState=void 0,this.magnifier.disable(),this.group.remove(this.mouseGroup))});f(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const n=Nr(e).ndcPoint,o=new R.Raycaster;o.setFromCamera(n,this.five.camera);const[s]=this.five.model.intersectRaycaster(o);s&&this.onIntersectionUpdate(s)});f(this,"onIntersectionUpdate",(e,n)=>{if(this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(o=>{o.mesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.lightMesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),n)this.mouseGroup.quaternion.copy(n.quaternion);else if(e.face){const s=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(s).clone().add(s);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(o=>o))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{var A;const n=this.model.areas.map(g=>e.intersectObject(g.polygon,!0)[0]).sort((g,b)=>g.distance-b.distance),o=(A=n[0])==null?void 0:A.object.parent;if(o instanceof Qh){const g=this.model.areas.find(b=>b.polygon===o);if(g){const{x:b,y}=n[0].point.project(this.five.camera),P=`${(b+1)/2*100}%`,x=`${(-y+1)/2*100}%`;return this.chooseArea(g,{left:P,top:x}),!1}}const[s]=this.five.model.intersectRaycaster(e);if(!s)return;const r=this.five.camera,a=s.point.clone().project(r),l=this.container.clientWidth,c=this.container.clientHeight,d=new R.Vector2(a.x*l,a.y*c),h=this.model.getAllLines().map(g=>{const[b,y]=g.points,P=b.position.clone().project(r),x=y.position.clone().project(r);if(!Ki(P)&&!Ki(x))return null;const D=new R.Vector2(P.x*l,P.y*c),I=new R.Vector2(x.x*l,x.y*c);return{id:g.id,points:[D,I]}}).filter(g=>!!g);if(h.length===0)return;const m=h.map(g=>{const b=Fh(d,g.points);return{id:g.id,distance:b.distanceTo(d)}}).sort((g,b)=>g.distance-b.distance)[0];if(m.distance>20)return;const p=this.model.getAllLines().find(({id:g})=>g===m.id);if(p)return this.chooseLine(p),!1});f(this,"chooseLine",e=>{this.choose="line";const n=Xr(e);this.deleteDom.setLines(n).updatePosition().show(),this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"chooseArea",(e,n)=>{this.choose=e,this.deleteDom.updatePosition(n.left,`calc(${n.top} - 20px)`).show(),this.highlightArea(e)});f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});f(this,"deleteArea",e=>{this.unHighlightArea(e),e.dispose(),this.deleteDom.hide()});f(this,"deleteLine",()=>{const e=this.highlightedLines[0],n=this.model.getPolylineByLine(e);n&&(this.model.removePolyline(n),this.highlightedLines=[],this.deleteDom.setLines([]).hide())});f(this,"cancelDeleteClickCallback",()=>{this.deleteDom.hide(),this.clearHighlightLines(),this.unHighlightArea()});this.deleteDom=new Gh(this.five,{i18n:this.config.i18n,onClick:()=>{this.choose==="line"?this.deleteLine():this.choose instanceof Yr&&this.deleteArea(this.choose)},cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),o.distanceItem.setCanSelect(!0),this.group.add(o.mesh)}),this.model.getAllAreas().forEach(o=>{o.areaItem.appendTo(this.container),o.areaItem.updateDomPosition(this.five),o.hook.on("selected",this.chooseArea),o.areaItem.setCanSelect(!0),this.group.add(o.polygon),o.polyline.lines.forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)})});const n=this.five.getElement();if(n){this.fiveElement=n;const o=new eo(n);this.hammer=o,o.on("pan",this.onPan),o.on("panstart",this.onPanStart),o.on("panend",this.onPanEnd)}this.updateDistanceUI(),this.five.needsRender=!0,this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.model.hook.on("polylineRemoved",this.polylineRemoved)}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.model.getAllLines().forEach(n=>n.hook.off("selected",this.chooseLine)),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.wantsPanGesture),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.unHighlightLines(this.highlightedLines),this.highlightedLines=[])}highlightArea(e){this.unHighlightLines(),this.unHighlightArea(),this.highlightLines(e.polyline.lines),this.five.needsRender=!0}highlightLines(e){this.unHighlightLines(),this.highlightedLines=e,e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){const n=e!=null?e:this.highlightedLines;n&&n.forEach(o=>{o.selected=!1,o.distanceItem.unHighlight(),this.group.remove(o.lightMesh),this.five.needsRender=!0})}unHighlightArea(e){const n=e!=null?e:this.highlightedArea;n&&(this.unHighlightLines(n.polyline.lines),this.five.needsRender=!0)}}class Pa{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"areas",[]);f(this,"hook",new De.Subscribe);this.config=t}addPolyline(t){if(this.includes(t)){console.error(new Error("不能重复添加 polyline"));return}this.polylines.push(t),this.hook.emit("polylineAdded",t)}addArea(t){if(this.areas.find(({id:e})=>e===t.id)!==void 0){console.error(new Error("不能重复添加 area"));return}this.areas.push(t),this.hook.emit("areaAdded",t)}replacePolylineByID(t,e){const n=this.getPolylineByID(t);n==null||n.replace(e)}removePolyline(t){const e=this.polylines.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("polyline 不存在"));return}this.polylines.splice(e,1),this.hook.emit("polylineRemoved",t)}getPolylineByID(t){return this.polylines.find(e=>e.id===t)}getPolylineByLine(t){return this.polylines.find(e=>e.includes(t))}getLineByID(t){return this.getAllLines().find(e=>e.id===t)}getAllLines(){return this.polylines.map(t=>t.lines).flat(1)}getAllAreas(){return this.areas}getAllPoints(){return this.polylines.map(t=>t.points).flat(1)}includes(t){return this.polylines.find(({id:e})=>e===t.id)!==void 0}clear(){this.polylines.forEach(t=>this.hook.emit("polylineRemoved",t)),this.areas.forEach(t=>t.dispose()),this.polylines.splice(0,this.polylines.length),this.areas.splice(0,this.areas.length)}dispose(){this.clear()}getClosestPoint(){}parse(t){this.clear(),this.polylines.push(...t.polylines.map(e=>new Sn({model:this}).fromJson(e))),this.polylines.forEach(e=>this.hook.emit("polylineAdded",e))}toJson(){return{polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}function i0(){}const{Vector2:o0}=E;function s0(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new o0,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}const r0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAh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r5tvzhefLNZmuNuLNTOkCbgaaSQNOGW8lLNuOYv/bjAaPvnNXpNXWqk8ARGa3dLLsKDaAeyXDqzWd6DbtqVxB2Yhi7ogCRKmPo8qWZuKbd6ueuvkcH1+izphdruZ7wuqF3fXt2/fnytf5x1QlqOZof203cXvBNkuRxms8TwVfTDBu0n6nly3YOq5cy4SS45Xi4ZtV3NzO1B26vHDOQe9IN+U/JWDMTn7NfGy3810sqhT9BX6SPUklTV0j9y7KMQ8q8KcpZfO9/2kGNoTa+m18iIk6rDlKGNtIlcsrJXI68g3oOnsAgZjW2YiV64H2UoCTXXaTW1Hr49NEk8iH6Yje3Qb0qei8fxLpDFfo28cnkVOmEI1hnugFyBieiBh5BCCX4oKclFCS85c5MXt11SjgfQDeOwBLuQ0diE0bgJbUCWq8Vsljfhdoww3oxVidWYjD54GnehVDEFG8RDX3f+7UnchifRD1Oxxnjn/waMxJ14B8hytZ6zWb2LPkXvptdTK3LIpJN0hI7SMToqOU7VId+vFqY9Tk0VbmzgXx2l39FPaBv9kawugS6F2awa0wfoPfRWabs2AebJ0hliTufKGnJJSNzc0gcU82/eUh62iVNCRqP6ZUISCzjKAfq7tNev6Kd0mKzsBZJrlgQ+hXvQG1OwGi8hc4moxDrMRF/cjo8iDrLYc7brjRjegq/jHvTEJKzAtgtqrx1YhvHojrvxDbwNBepxLfaczaqA2lBrSUtqLmlKTahYe/1FVAaRS0KGymk6kTvzO0KH/9NuHZsAEAJAEFy+/0pfY2O7EMGZq2Hhmo3+Vq9yI83sCzjhythAbIDYQGyA2EBsIDZAbCA2QGwgNhAbIDYQGyA2EBuIDRAbiA0QG4gNxAaIDcQGiA3EBmIDxAZiA8QGYgOxAWIDsQEb7ePiGN5/UYAAAAAASUVORK5CYII=",l0=`
|
|
300
|
+
`,this.container.append(this.content);const n=this.content.querySelector(".fpm__delete-icon");n&&(n.style.width="16px",n.style.height="17px",n.style.marginRight="1px"),this.content.addEventListener("click",this.onClick),this.content.addEventListener("mouseenter",this.onMouseEnter),this.content.addEventListener("mouseleave",this.onMouseLeave),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelDelete),this.masking.addEventListener("touchstart",this.cancelDelete)}dispose(){this.content.removeEventListener("click",this.onClick),this.content.removeEventListener("mouseenter",this.onMouseEnter),this.content.removeEventListener("mouseleave",this.onMouseLeave),this.container.remove(),this.masking.removeEventListener("click",this.cancelDelete),this.masking.removeEventListener("touchstart",this.cancelDelete),this.masking.remove()}appendTo(t){return t.append(this.container),t.append(this.masking),this}setLines(t){return this.lines=t,this.points=Array.from(new Set(this.lines.map(e=>[e.points[0],e.points[1]]).flat(1))),this}updatePosition(t,e){if(t&&e)return this.container.style.left=t,this.container.style.top=e,this.show();if(this.lines.length===0)return this;const n=this.points.map(p=>p.position),o=n.map(p=>p.clone().project(this.five.camera));if(o.some(p=>Math.abs(p.z)>1))return this.hide();const s=o.map(p=>p.x),r=o.map(p=>p.y),a=(Math.min(...s)+Math.max(...s))/2,l=Math.max(...r),c=this.container.parentElement;if(!c)return this;const d=(a+1)/2*c.clientWidth,h=-(l-1)/2*c.clientHeight;let u=d,m=h-34;if(this.lines.length===1&&n.length===2){const p=(r[1]-r[0])/(s[1]-s[0]),g=-((r[1]+r[0])/2-1)/2*c.clientHeight;Math.abs(p)>.4&&(u=d+57,m=g)}return this.container.style.top="0",this.container.style.transform=`translate3d(${u}px, ${m}px, 0)`,this.show()}hide(){return this.visible=!1,this.masking.style.pointerEvents="none",this.container.style.opacity="0",this.container.style.pointerEvents="none",this}show(){return this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.pointerEvents="auto",this}}function Fh(i,t){const e=i.x-t[0].x,n=i.y-t[0].y,o=t[1].x-t[0].x,s=t[1].y-t[0].y,r=e*o+n*s,a=o*o+s*s,l=r/a;let c,d;return l<0||e0(t[0],t[1])?(c=t[0].x,d=t[0].y):l>1?(c=t[1].x,d=t[1].y):(c=t[0].x+l*o,d=t[0].y+l*s),new R.Vector2(c,d)}function e0(i,t){return i.x===t.x&&i.y===t.y}function t0(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new R.Vector2(e,n)}function n0(i,t,e,n){const o=i.getElement();if(!o||t.length===0)return null;const s={width:o.clientWidth,height:o.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return Ki(l)?{distance:t0(l,s).distanceTo(e),point:a}:{distance:1/0,point:a}}).sort((a,l)=>a.distance-l.distance);return typeof n=="number"&&r[0].distance>n?null:r[0]}function Xr(i){const t=(s,r,a)=>{const l=s.lines.find(d=>d.points.findIndex(({id:u})=>u===s.id)!==r);if(!l)return a;const c=l.points[r];return c?t(c,r,a.concat(l)):a},e=t(i.points[0],1,[]),n=t(i.points[0],0,[]);return e.concat(n)}class Hl extends ys{constructor(e){super(e);f(this,"type","watch");f(this,"deleteDom");f(this,"choose");f(this,"highlightedLines",[]);f(this,"highlightedArea");f(this,"fiveElement");f(this,"editPointState");f(this,"hammer");f(this,"onPanStart",e=>{var a;if(this.model.getAllLines().length===0||!this.fiveElement)return;const n=Nr(e).point,o=(a=n0(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!o){this.editPointState=void 0;return}const s={point:o,associatedLines:Xr(o.lines[0])};this.hook.emit("wantsDragLine",{point:o.id,lines:s.associatedLines.map(({id:l})=>l)})||(this.editPointState=s,this.magnifier.appendTo(this.container),this.magnifier.enable(),this.group.add(this.mouseGroup))});f(this,"onPanEnd",()=>{this.editPointState&&(this.editPointState.point.lines.forEach(e=>e.mesh.setMaterial({dashed:!1})),this.highlightLines(this.editPointState.associatedLines),this.editPointState=void 0,this.magnifier.disable(),this.group.remove(this.mouseGroup))});f(this,"onPan",e=>{if(!this.editPointState||!this.fiveElement)return;const n=Nr(e).ndcPoint,o=new R.Raycaster;o.setFromCamera(n,this.five.camera);const[s]=this.five.model.intersectRaycaster(o);s&&this.onIntersectionUpdate(s)});f(this,"onIntersectionUpdate",(e,n)=>{if(this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(o=>{o.mesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.lightMesh.setPoints(o.points[0].position.clone(),o.points[1].position.clone()),o.mesh.setMaterial({dashed:!0})}),this.updateDistanceUI(),this.magnifier.renderWithPoint(e.point),this.mouseGroup.position.copy(e.point),n)this.mouseGroup.quaternion.copy(n.quaternion);else if(e.face){const s=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(s).clone().add(s);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(o=>o))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{var A;const n=this.model.areas.map(g=>e.intersectObject(g.polygon,!0)[0]).sort((g,b)=>g.distance-b.distance),o=(A=n[0])==null?void 0:A.object.parent;if(o instanceof Qh){const g=this.model.areas.find(b=>b.polygon===o);if(g){const{x:b,y}=n[0].point.clone().project(this.five.camera),P=`${(b+1)/2*100}%`,x=`${(-y+1)/2*100}%`;return this.chooseArea(g,{left:P,top:x}),!1}}const[s]=this.five.model.intersectRaycaster(e);if(!s)return;const r=this.five.camera,a=s.point.clone().project(r),l=this.container.clientWidth,c=this.container.clientHeight,d=new R.Vector2(a.x*l,a.y*c),h=this.model.getAllLines().map(g=>{const[b,y]=g.points,P=b.position.clone().project(r),x=y.position.clone().project(r);if(!Ki(P)&&!Ki(x))return null;const D=new R.Vector2(P.x*l,P.y*c),I=new R.Vector2(x.x*l,x.y*c);return{id:g.id,points:[D,I]}}).filter(g=>!!g);if(h.length===0)return;const m=h.map(g=>{const b=Fh(d,g.points);return{id:g.id,distance:b.distanceTo(d)}}).sort((g,b)=>g.distance-b.distance)[0];if(m.distance>20)return;const p=this.model.getAllLines().find(({id:g})=>g===m.id);if(p)return this.chooseLine(p),!1});f(this,"chooseLine",e=>{this.choose="line";const n=Xr(e);this.deleteDom.setLines(n).updatePosition().show(),this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(o=>o))});f(this,"chooseArea",(e,n)=>{this.choose=e,this.deleteDom.updatePosition(n.left,`calc(${n.top} - 20px)`).show(),this.highlightArea(e)});f(this,"polylineRemoved",e=>{e.lines.forEach(n=>this.removeLine(n)),this.hook.emit("selectedChange",this.model.getAllLines().filter(n=>n.selected).map(n=>n))});f(this,"onCameraUpdate",()=>{this.updateDistanceUI(),this.highlightedLines.length>0&&this.deleteDom.updatePosition()});f(this,"deleteArea",e=>{this.unHighlightArea(e),e.dispose(),this.deleteDom.hide()});f(this,"deleteLine",()=>{const e=this.highlightedLines[0],n=this.model.getPolylineByLine(e);n&&(this.model.removePolyline(n),this.highlightedLines=[],this.deleteDom.setLines([]).hide())});f(this,"cancelDeleteClickCallback",()=>{this.deleteDom.hide(),this.clearHighlightLines(),this.unHighlightArea()});this.deleteDom=new Gh(this.five,{i18n:this.config.i18n,onClick:()=>{this.choose==="line"?this.deleteLine():this.choose instanceof Yr&&this.deleteArea(this.choose)},cancelDelete:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),o.hook.on("selected",this.chooseLine),o.distanceItem.setCanSelect(!0),this.group.add(o.mesh)}),this.model.getAllAreas().forEach(o=>{o.areaItem.appendTo(this.container),o.areaItem.updateArea(this.five),o.hook.on("selected",this.chooseArea),o.areaItem.setCanSelect(!0),this.group.add(o.polygon),o.polyline.lines.forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)})});const n=this.five.getElement();if(n){this.fiveElement=n;const o=new eo(n);this.hammer=o,o.on("pan",this.onPan),o.on("panstart",this.onPanStart),o.on("panend",this.onPanEnd)}this.updateDistanceUI(),this.five.needsRender=!0,this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsPanGesture",this.wantsPanGesture),this.model.hook.on("polylineRemoved",this.polylineRemoved)}dispose(){var e;super.dispose(),this.deleteDom.dispose(),this.model.hook.off("polylineRemoved",this.polylineRemoved),this.model.getAllLines().forEach(n=>n.hook.off("selected",this.chooseLine)),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsPanGesture",this.wantsPanGesture),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.needsRender=!0,this.hook.emit("selectedChange",[]),(e=this.hammer)==null||e.destroy()}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}clearHighlightLines(){this.group.children.length!==0&&(this.unHighlightLines(this.highlightedLines),this.highlightedLines=[])}highlightArea(e){this.unHighlightLines(),this.unHighlightArea(),this.highlightLines(e.polyline.lines),this.five.needsRender=!0}highlightLines(e){this.unHighlightLines(),this.highlightedLines=e,e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){const n=e!=null?e:this.highlightedLines;n&&n.forEach(o=>{o.selected=!1,o.distanceItem.unHighlight(),this.group.remove(o.lightMesh),this.five.needsRender=!0})}unHighlightArea(e){const n=e!=null?e:this.highlightedArea;n&&(this.unHighlightLines(n.polyline.lines),this.five.needsRender=!0)}}class Pa{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"areas",[]);f(this,"hook",new De.Subscribe);this.config=t}addPolyline(t){if(this.includes(t)){console.error(new Error("不能重复添加 polyline"));return}this.polylines.push(t),this.hook.emit("polylineAdded",t)}addArea(t){if(this.areas.find(({id:e})=>e===t.id)!==void 0){console.error(new Error("不能重复添加 area"));return}this.areas.push(t),this.hook.emit("areaAdded",t)}replacePolylineByID(t,e){const n=this.getPolylineByID(t);n==null||n.replace(e)}removePolyline(t){const e=this.polylines.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("polyline 不存在"));return}this.polylines.splice(e,1),this.hook.emit("polylineRemoved",t)}getPolylineByID(t){return this.polylines.find(e=>e.id===t)}getPolylineByLine(t){return this.polylines.find(e=>e.includes(t))}getLineByID(t){return this.getAllLines().find(e=>e.id===t)}getAllLines(){return this.polylines.map(t=>t.lines).flat(1)}getAllAreas(){return this.areas}getAllPoints(){return this.polylines.map(t=>t.points).flat(1)}includes(t){return this.polylines.find(({id:e})=>e===t.id)!==void 0}clear(){this.polylines.forEach(t=>this.hook.emit("polylineRemoved",t)),this.areas.forEach(t=>t.dispose()),this.polylines.splice(0,this.polylines.length),this.areas.splice(0,this.areas.length)}dispose(){this.clear()}getClosestPoint(){}parse(t){this.clear(),this.polylines.push(...t.polylines.map(e=>new Sn({model:this}).fromJson(e))),this.polylines.forEach(e=>this.hook.emit("polylineAdded",e))}toJson(){return{polylines:this.polylines.map(t=>t.toJson()).filter(t=>t.lines.length>0)}}}function i0(){}const{Vector2:o0}=E;function s0(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new o0,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}const r0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhK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