@realsee/dnalogel 2.22.0-dev.2 → 2.22.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 +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- 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 +4 -4
- 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.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoMeasurePlugin/Controller/EditController.js +7 -7
- package/libs/PanoMeasurePlugin/utils/dom/base.js +6 -6
- 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 Ku=Object.defineProperty,$u=Object.defineProperties;var ef=Object.getOwnPropertyDescriptors;var Xa=Object.getOwnPropertySymbols;var tf=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable;var Ar=(i,t,e)=>t in i?Ku(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t)=>{for(var e in t||(t={}))tf.call(t,e)&&Ar(i,e,t[e]);if(Xa)for(var e of Xa(t))nf.call(t,e)&&Ar(i,e,t[e]);return i},Ae=(i,t)=>$u(i,ef(t));var f=(i,t,e)=>(Ar(i,typeof t!="symbol"?t+"":t,e),e);var U=(i,t,e)=>new Promise((n,s)=>{var o=l=>{try{a(e.next(l))}catch(c){s(c)}},r=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,r);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("@realsee/five"),R=require("three"),Us=require("three/examples/jsm/renderers/CSS3DRenderer"),ss=require("hammerjs"),ih=require("@realsee/five/line"),sh=require("three/examples/jsm/loaders/FBXLoader"),sf=require("earcut"),Za=require("animejs"),of=require("@realsee/five/gltf-loader");function rf(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=rf(R);function af(){console.debug("%c %c@realsee/dnalogel %cv2.22.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 lf(){const i=typeof OffscreenCanvas!="undefined",t=i&&new OffscreenCanvas(1,1).getContext("webgl")!==null;i&&!t&&Object.assign(window,{OffscreenCanvas:function(e,n){const s=document.createElement("canvas");return s.width=e,s.height=n,s}})}function oh(){}const Ja=()=>Promise.resolve(),qa={__queue:Promise.resolve()};function cf(i=Ja){qa.__queue=qa.__queue.then(i).catch(Ja)}function Is(i,t,e){const n=i.x,s=i.y,o=Math.floor(n/t*1e4)/1e4,r=Math.floor(s/e*1e4)/1e4;return{x:o,y:r}}function vr(i,t,e){const{x:n,y:s}=i,o=n*t,r=s*e;return{x:o,y:r}}function Ps(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 df(i,t,e=oh){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const hf=window,Ka=window.requestAnimationFrame||hf.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Hs(i,t=0){t<=0?Ka(i):Ka(()=>Hs(i,t-1))}var Dt=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-Dt.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?Dt.Bounce.In(i*2)*.5:Dt.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}}}}),ti=function(){return performance.now()},rh=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=ti()),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 s=0;s<n.length;s++){var o=this._tweens[n[s]],r=!e;o&&o.update(t,r)===!1&&!e&&delete this._tweens[n[s]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},i}(),Mn={Linear:function(i,t){var e=i.length-1,n=e*t,s=Math.floor(n),o=Mn.Utils.Linear;return t<0?o(i[0],i[1],n):t>1?o(i[e],i[e-1],e-n):o(i[s],i[s+1>e?e:s+1],n-s)},Bezier:function(i,t){for(var e=0,n=i.length-1,s=Math.pow,o=Mn.Utils.Bernstein,r=0;r<=n;r++)e+=s(1-t,n-r)*s(t,r)*i[r]*o(n,r);return e},CatmullRom:function(i,t){var e=i.length-1,n=e*t,s=Math.floor(n),o=Mn.Utils.CatmullRom;return i[0]===i[e]?(t<0&&(s=Math.floor(n=e*(1+t))),o(i[(s-1+e)%e],i[s],i[(s+1)%e],i[(s+2)%e],n-s)):t<0?i[0]-(o(i[0],i[0],i[1],i[1],-n)-i[0]):t>1?i[e]-(o(i[e],i[e],i[e-1],i[e-1],n-e)-i[e]):o(i[s?s-1:0],i[s],i[e<s+1?e:s+1],i[e<s+2?e:s+2],n-s)},Utils:{Linear:function(i,t,e){return(t-i)*e+i},Bernstein:function(i,t){var e=Mn.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,s){var o=(e-i)*.5,r=(n-t)*.5,a=s*s,l=s*a;return(2*t-2*e+o+r)*l+(-3*t+3*e-2*o-r)*a+o*s+t}}},la=function(){function i(){}return i.nextId=function(){return i._nextId++},i._nextId=0,i}(),Nr=new rh,mo=function(){function i(t,e){e===void 0&&(e=Nr),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=Dt.Linear.None,this._interpolationFunction=Mn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=la.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=ti()),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 s={};for(var o in this._valuesEnd)s[o]=this._valuesEnd[o];this._valuesEnd=s}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,s,o){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,A=h.length;m<A;m+=1){var p=this._handleRelativeValue(a,h[m]);if(isNaN(p)){d=!1,console.warn("Found invalid interpolation list. Skipping.");break}u.push(p)}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];s[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,s[r],o)}else(typeof e[r]=="undefined"||o)&&(e[r]=a),l||(e[r]*=1),d?s[r]=n[r].slice().reverse():s[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=ti()),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=ti()),!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=Nr),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=Dt.Linear.None),this._easingFunction=t,this},i.prototype.interpolation=function(t){return t===void 0&&(t=Mn.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=ti()),e===void 0&&(e=!0),this._isPaused)return!0;var n,s,o=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>o)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),s=(t-this._startTime)/this._duration,s=this._duration===0||s>1?1:s;var r=this._easingFunction(s);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,s),s===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,s){for(var o in n)if(e[o]!==void 0){var r=e[o]||0,a=n[o],l=Array.isArray(t[o]),c=Array.isArray(a),d=!l&&c;d?t[o]=this._interpolationFunction(a,s):typeof a=="object"&&a?this._updateProperties(t[o],r,a,s):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(t[o]=r+(a-r)*s))}},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}(),uf="20.0.3",ff=la.nextId,Ht=Nr,mf=Ht.getAll.bind(Ht),gf=Ht.removeAll.bind(Ht),pf=Ht.add.bind(Ht),ah=Ht.remove.bind(Ht),Af=Ht.update.bind(Ht),$a={Easing:Dt,Group:rh,Interpolation:Mn,now:ti,Sequence:la,nextId:ff,Tween:mo,VERSION:uf,getAll:mf,removeAll:gf,add:pf,remove:ah,update:Af};function vf(i,t,e,n=Dt.Linear.None){const s=new mo(i).to(t,e).easing(n).start();function o(r){s.update(r)&&requestAnimationFrame(o)}return requestAnimationFrame(o),s}var qt=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(qt||{});const Zi=Symbol("$$PAINT_BRUSH_EVENT$$");function Es(i){return i[Zi]||(i[Zi]={}),i[Zi]}function bf(i){i[Zi]||delete i[Zi]}let yf=class{hasListener(t){const e=Es(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const s=Es(this);return s[t]||(s[t]=[]),s[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){bf(this);return}const n=Es(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let s=0;for(;s<n[t].length&&n[t][s][0]!==e;s++);s<n[t].length&&n[t].splice(s,1)}emit(t,...e){let n=!1;const o=Es(this)[t]||[];for(let r of o.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}};function ln(){return((1+Math.random())*65536|0).toString(16).substring(1)}function at(){return(ln()+ln()+"-"+ln()+"-4"+ln().substr(0,3)+"-"+ln()+"-"+ln()+ln()+ln()).toLowerCase()}const wf=`
|
|
1
|
+
"use strict";var Ku=Object.defineProperty,$u=Object.defineProperties;var ef=Object.getOwnPropertyDescriptors;var Xa=Object.getOwnPropertySymbols;var tf=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable;var Ar=(i,t,e)=>t in i?Ku(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t)=>{for(var e in t||(t={}))tf.call(t,e)&&Ar(i,e,t[e]);if(Xa)for(var e of Xa(t))nf.call(t,e)&&Ar(i,e,t[e]);return i},Ae=(i,t)=>$u(i,ef(t));var f=(i,t,e)=>(Ar(i,typeof t!="symbol"?t+"":t,e),e);var U=(i,t,e)=>new Promise((n,s)=>{var o=l=>{try{a(e.next(l))}catch(c){s(c)}},r=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,r);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("@realsee/five"),R=require("three"),Us=require("three/examples/jsm/renderers/CSS3DRenderer"),ss=require("hammerjs"),ih=require("@realsee/five/line"),sh=require("three/examples/jsm/loaders/FBXLoader"),sf=require("earcut"),Za=require("animejs"),of=require("@realsee/five/gltf-loader");function rf(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=rf(R);function af(){console.debug("%c %c@realsee/dnalogel %cv2.22.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 lf(){const i=typeof OffscreenCanvas!="undefined",t=i&&new OffscreenCanvas(1,1).getContext("webgl")!==null;i&&!t&&Object.assign(window,{OffscreenCanvas:function(e,n){const s=document.createElement("canvas");return s.width=e,s.height=n,s}})}function oh(){}const Ja=()=>Promise.resolve(),qa={__queue:Promise.resolve()};function cf(i=Ja){qa.__queue=qa.__queue.then(i).catch(Ja)}function Is(i,t,e){const n=i.x,s=i.y,o=Math.floor(n/t*1e4)/1e4,r=Math.floor(s/e*1e4)/1e4;return{x:o,y:r}}function vr(i,t,e){const{x:n,y:s}=i,o=n*t,r=s*e;return{x:o,y:r}}function Ps(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 df(i,t,e=oh){new Promise(n=>{setTimeout(()=>{e(),n(!0)},t*i)})}const hf=window,Ka=window.requestAnimationFrame||hf.webkitRequestAnimationFrame||(i=>setTimeout(i,16));function Hs(i,t=0){t<=0?Ka(i):Ka(()=>Hs(i,t-1))}var Dt=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-Dt.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?Dt.Bounce.In(i*2)*.5:Dt.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}}}}),ti=function(){return performance.now()},rh=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=ti()),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 s=0;s<n.length;s++){var o=this._tweens[n[s]],r=!e;o&&o.update(t,r)===!1&&!e&&delete this._tweens[n[s]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},i}(),Mn={Linear:function(i,t){var e=i.length-1,n=e*t,s=Math.floor(n),o=Mn.Utils.Linear;return t<0?o(i[0],i[1],n):t>1?o(i[e],i[e-1],e-n):o(i[s],i[s+1>e?e:s+1],n-s)},Bezier:function(i,t){for(var e=0,n=i.length-1,s=Math.pow,o=Mn.Utils.Bernstein,r=0;r<=n;r++)e+=s(1-t,n-r)*s(t,r)*i[r]*o(n,r);return e},CatmullRom:function(i,t){var e=i.length-1,n=e*t,s=Math.floor(n),o=Mn.Utils.CatmullRom;return i[0]===i[e]?(t<0&&(s=Math.floor(n=e*(1+t))),o(i[(s-1+e)%e],i[s],i[(s+1)%e],i[(s+2)%e],n-s)):t<0?i[0]-(o(i[0],i[0],i[1],i[1],-n)-i[0]):t>1?i[e]-(o(i[e],i[e],i[e-1],i[e-1],n-e)-i[e]):o(i[s?s-1:0],i[s],i[e<s+1?e:s+1],i[e<s+2?e:s+2],n-s)},Utils:{Linear:function(i,t,e){return(t-i)*e+i},Bernstein:function(i,t){var e=Mn.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,s){var o=(e-i)*.5,r=(n-t)*.5,a=s*s,l=s*a;return(2*t-2*e+o+r)*l+(-3*t+3*e-2*o-r)*a+o*s+t}}},la=function(){function i(){}return i.nextId=function(){return i._nextId++},i._nextId=0,i}(),Nr=new rh,mo=function(){function i(t,e){e===void 0&&(e=Nr),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=Dt.Linear.None,this._interpolationFunction=Mn.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=la.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=ti()),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 s={};for(var o in this._valuesEnd)s[o]=this._valuesEnd[o];this._valuesEnd=s}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,s,o){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,A=h.length;m<A;m+=1){var p=this._handleRelativeValue(a,h[m]);if(isNaN(p)){d=!1,console.warn("Found invalid interpolation list. Skipping.");break}u.push(p)}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];s[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,s[r],o)}else(typeof e[r]=="undefined"||o)&&(e[r]=a),l||(e[r]*=1),d?s[r]=n[r].slice().reverse():s[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=ti()),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=ti()),!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=Nr),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=Dt.Linear.None),this._easingFunction=t,this},i.prototype.interpolation=function(t){return t===void 0&&(t=Mn.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=ti()),e===void 0&&(e=!0),this._isPaused)return!0;var n,s,o=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>o)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),s=(t-this._startTime)/this._duration,s=this._duration===0||s>1?1:s;var r=this._easingFunction(s);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,s),s===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,s){for(var o in n)if(e[o]!==void 0){var r=e[o]||0,a=n[o],l=Array.isArray(t[o]),c=Array.isArray(a),d=!l&&c;d?t[o]=this._interpolationFunction(a,s):typeof a=="object"&&a?this._updateProperties(t[o],r,a,s):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(t[o]=r+(a-r)*s))}},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}(),uf="20.0.3",ff=la.nextId,Ht=Nr,mf=Ht.getAll.bind(Ht),gf=Ht.removeAll.bind(Ht),pf=Ht.add.bind(Ht),ah=Ht.remove.bind(Ht),Af=Ht.update.bind(Ht),$a={Easing:Dt,Group:rh,Interpolation:Mn,now:ti,Sequence:la,nextId:ff,Tween:mo,VERSION:uf,getAll:mf,removeAll:gf,add:pf,remove:ah,update:Af};function vf(i,t,e,n=Dt.Linear.None){const s=new mo(i).to(t,e).easing(n).start();function o(r){s.update(r)&&requestAnimationFrame(o)}return requestAnimationFrame(o),s}var qt=(i=>(i.Drawline="Drawline",i.Undo="Undo",i.Exit="Exit",i))(qt||{});const Zi=Symbol("$$PAINT_BRUSH_EVENT$$");function Es(i){return i[Zi]||(i[Zi]={}),i[Zi]}function bf(i){i[Zi]||delete i[Zi]}let yf=class{hasListener(t){const e=Es(this);return e&&e[t]&&e[t].length>0}on(t,e,n){const s=Es(this);return s[t]||(s[t]=[]),s[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){bf(this);return}const n=Es(this);if(n[t]||(n[t]=[]),e===void 0){n[t].length=0;return}let s=0;for(;s<n[t].length&&n[t][s][0]!==e;s++);s<n[t].length&&n[t].splice(s,1)}emit(t,...e){let n=!1;const o=Es(this)[t]||[];for(let r of o.slice()){const[a,l=!1]=r,c=a(...e);l&&this.off(t,a),c===!1&&(n=!0)}return n}};function ln(){return((1+Math.random())*65536|0).toString(16).substring(1)}function at(){return(ln()+ln()+"-"+ln()+"-4"+ln().substr(0,3)+"-"+ln()+"-"+ln()+ln()+ln()).toLowerCase()}const wf=`
|
|
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=o=>{"content"in o&&e(0,n=o.content)},[n,s]}class vg extends le{constructor(t){super(),ae(this,t,Ag,pg,oe,{content:0},gg)}}function bg(i){ue(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function yg(i){let t,e;return t=new mg({props:{url:i[1].url}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&2&&(o.url=n[1].url),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function wg(i){let t,e;return t=new vg({props:{content:i[0]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.content=n[0]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Cg(i){let t,e,n,s;const o=[wg,yg],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=o[e](i)),{c(){t=x("div"),n&&n.c(),w(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){B(l,t,c),~e&&r[e].m(t,null),s=!0},p(l,[c]){let d=e;e=a(l),e===d?~e&&r[e].p(l,c):(n&&(de(),j(r[d],1,1,()=>{r[d]=null}),he()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=o[e](l),n.c()),M(n,1),n.m(t,null)):n=null)},i(l){s||(M(n),s=!0)},o(l){j(n),s=!1},d(l){l&&O(t),~e&&r[e].d()}}}function Ig(i,t,e){let n,s,{floorIndex:o}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,o=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[o]),i.$$.dirty&12&&e(0,s=(l=(a=r.outlines)==null?void 0:a[o])==null?void 0:l.svgContent)},[s,n,o,r]}class Nh extends le{constructor(t){super(),ae(this,t,Ig,Cg,oe,{floorIndex:2,floorplanData:3},bg)}}function Pg(i){ue(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 Eg(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new Zs(!1),n=Pe(),t.a=n},m(s,o){t.m(e,s,o),B(s,n,o)},p(s,o){o&256&&e!==(e=s[8].outerHTML+"")&&t.p(e)},d(s){s&&O(n),s&&t.d()}}}function kg(i){let t,e,n=i[1]&&cl(i),s=i[0]&&dl(i);return{c(){n&&n.c(),t=ee(),s&&s.c(),e=Pe()},m(o,r){n&&n.m(o,r),B(o,t,r),s&&s.m(o,r),B(o,e,r)},p(o,r){o[1]?n?n.p(o,r):(n=cl(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]?s?s.p(o,r):(s=dl(o),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(o){n&&n.d(o),o&&O(t),s&&s.d(o),o&&O(e)}}}function cl(i){let t,e=i[2].name+"",n;return{c(){t=x("span"),n=Me(e),w(t,"class","floorplan-plugin__room-name")},m(s,o){B(s,t,o),D(t,n)},p(s,o){o&4&&e!==(e=s[2].name+"")&&Oe(n,e)},d(s){s&&O(t)}}}function dl(i){let t,e;return{c(){t=x("span"),e=Me(i[7]),w(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,s){B(n,t,s),D(t,e)},p(n,s){s&128&&Oe(e,n[7])},d(n){n&&O(t)}}}function Mg(i){let t,e,n;function s(a,l){if(a[3]===void 0)return kg;if(a[8])return Eg}let o=s(i),r=o&&o(i);return{c(){t=x("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){B(a,t,l),r&&r.m(t,null),e||(n=[$t(Pi.call(null,t)),be(t,"clientWidth",i[19]),be(t,"clientHeight",i[20])],e=!0)},p(a,[l]){o===(o=s(a))&&r?r.p(a,l):(r&&r.d(1),r=o&&o(a),r&&(r.c(),r.m(t,null))),l&64&&z(t,"opacity",a[6]?"1":"0")},i:J,o:J,d(a){a&&O(t),r&&r.d(),e=!1,Je(n)}}}function xg(i,t){const e=i[0],n=i[1];let s=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){const a=t[o][0],l=t[o][1],c=t[r][0],d=t[r][1];l>n!=d>n&&e<(c-a)*(n-l)/(d-l)+a&&(s=!s)}return s}function Dg(i,t,e){let n,s,o,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:d}=t,{room:h}=t,{hoveredRoom:u}=t,{getRoomAreaText:m}=t,{getLabelElement:A}=t,{adaptiveRoomLabelVisibleEnable:p}=t;function g(G,_){if(_.width===0||_.height===0)return()=>!1;const Q=G.path.map(({x:Ce,y:pe})=>[Ce,pe]),F=G.roomLabel.position,{x:Z,y:X}=F,{width:$,height:ce}=_,se=$/2,we=ce/2;return function(pe){const Be=Z*pe,ve=X*pe,We=Q.map(([ye,Le])=>[ye*pe,Le*pe]);return[[Be+se,ve-we],[Be-se,ve-we],[Be-se,ve+we],[Be+se,ve+we]].every(ye=>xg(ye,We))}}const b=document.body.clientWidth,y=document.body.clientHeight,I=h.roomLabel,k=I.positionInImage.x*100+"%",T=I.positionInImage.y*100+"%",P=(b<500||y<500?10:14)+"px";let V=0,L=0,W=!1;u.subscribe(function(_){e(16,W=!!_&&_.id===h.id)});const q=G=>{e(4,V=G.detail)},N=G=>{e(5,L=G.detail)};return i.$$set=G=>{"pxmm"in G&&e(12,l=G.pxmm),"roomAreaEnable"in G&&e(0,c=G.roomAreaEnable),"roomNameEnable"in G&&e(1,d=G.roomNameEnable),"room"in G&&e(2,h=G.room),"hoveredRoom"in G&&e(13,u=G.hoveredRoom),"getRoomAreaText"in G&&e(14,m=G.getRoomAreaText),"getLabelElement"in G&&e(3,A=G.getLabelElement),"adaptiveRoomLabelVisibleEnable"in G&&e(15,p=G.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=A==null?void 0:A(h)),i.$$.dirty&16388&&e(7,s=h.size?m(h.size):""),i.$$.dirty&48&&e(18,o={width:V,height:L}),i.$$.dirty&262148&&e(17,r=o?g(h,o):void 0),i.$$.dirty&233472&&e(6,a=p?W?!0:!!(r!=null&&r(l)):!0)},[c,d,h,A,V,L,a,s,n,k,T,P,l,u,m,p,W,r,o,q,N]}class Sg extends le{constructor(t){super(),ae(this,t,Dg,Mg,oe,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},Pg)}}function Tg(i){ue(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 hl(i,t,e){const n=i.slice();return n[12]=t[e],n}function ul(i){let t,e=[],n=new Map,s,o,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=hl(i,a,c),h=l(d);n.set(h,e[c]=fl(h,d))}return{c(){t=x("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){B(c,t,d);for(let h=0;h<e.length;h+=1)e[h]&&e[h].m(t,null);s=!0,o||(r=[$t(Pi.call(null,t)),be(t,"clientWidth",i[11])],o=!0)},p(c,d){d&447&&(a=c[8],de(),e=jt(e,d,l,1,c,a,n,t,vn,fl,null,hl),he())},i(c){if(!s){for(let d=0;d<a.length;d+=1)M(e[d]);s=!0}},o(c){for(let d=0;d<e.length;d+=1)j(e[d]);s=!1},d(c){c&&O(t);for(let d=0;d<e.length;d+=1)e[d].d();o=!1,Je(r)}}}function fl(i,t){let e,n,s;const o=[{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<o.length;a+=1)r=et(r,o[a]);return n=new Sg({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&447?lt(o,[{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){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function Lg(i){let t,e,n=i[8]&&ul(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[8]?n?(n.p(s,o),o&256&&M(n,1)):(n=ul(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function jg(i,t,e){let n,{floorIndex:s}=t,{roomAreaEnable:o}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:d}=t,{adaptiveRoomLabelVisibleEnable:h}=t,u=0,m=0;const A=p=>{e(6,u=p.detail)};return i.$$set=p=>{"floorIndex"in p&&e(9,s=p.floorIndex),"roomAreaEnable"in p&&e(0,o=p.roomAreaEnable),"roomNameEnable"in p&&e(1,r=p.roomNameEnable),"floorplanData"in p&&e(10,a=p.floorplanData),"hoveredRoom"in p&&e(2,l=p.hoveredRoom),"getRoomAreaText"in p&&e(3,c=p.getRoomAreaText),"getLabelElement"in p&&e(4,d=p.getLabelElement),"adaptiveRoomLabelVisibleEnable"in p&&e(5,h=p.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[s].rooms),i.$$.dirty&1088){const{max:p,min:g}=a.bounding,b=p.x-g.x;e(7,m=u/b)}},[o,r,l,c,d,h,u,m,n,s,a,A]}class zg extends le{constructor(t){super(),ae(this,t,jg,Lg,oe,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},Tg)}}function Og(i){ue(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 ml(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function gl(i,t,e){const n=i.slice();return n[14]=t[e],n}function pl(i){let t;return{c(){t=x("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){B(e,t,n)},p:J,d(e){e&&O(t)}}}function Al(i,t){let e,n,s=t[1](t[11].distance)+"",o,r;return{key:i,first:null,c(){e=x("div"),n=x("div"),o=Me(s),r=ee(),w(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),K(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){B(a,e,l),D(e,n),D(n,o),D(e,r)},p(a,l){t=a,l&2&&s!==(s=t[1](t[11].distance)+"")&&Oe(o,s)},d(a){a&&O(e)}}}function Bg(i){let t,e,n,s,o,r,a=[],l=new Map,c,d=i[3],h=[];for(let A=0;A<d.length;A+=1)h[A]=pl(gl(i,d,A));let u=i[4];const m=A=>A[13];for(let A=0;A<u.length;A+=1){let p=ml(i,u,A),g=m(p);l.set(g,a[A]=Al(g,p))}return{c(){t=x("div"),e=x("div"),n=ee(),s=x("div");for(let A=0;A<h.length;A+=1)h[A].c();o=ee(),r=x("div");for(let A=0;A<a.length;A+=1)a[A].c();w(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),w(s,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),K(s,"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"),K(t,"is-row",i[2]),z(t,"width",i[2]?"100%":1/16+"rem"),z(t,"height",i[2]?1/16+"rem":"100%")},m(A,p){B(A,t,p),D(t,e),D(t,n),D(t,s);for(let g=0;g<h.length;g+=1)h[g]&&h[g].m(s,null);D(t,o),D(t,r);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(r,null)},p(A,[p]){if(p&8){d=A[3];let g;for(g=0;g<d.length;g+=1){const b=gl(A,d,g);h[g]?h[g].p(b,p):(h[g]=pl(b),h[g].c(),h[g].m(s,null))}for(;g<h.length;g+=1)h[g].d(1);h.length=d.length}p&22&&(u=A[4],a=jt(a,p,m,1,A,u,l,r,wa,Al,null,ml)),p&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+A[0]+" svelte-djlmk4")&&w(t,"class",c),p&5&&K(t,"is-row",A[2])},i:J,o:J,d(A){A&&O(t),Tt(h,A);for(let p=0;p<a.length;p+=1)a[p].d()}}}const qn=1e3,Kn=180;function Vg(i,t,e){let{type:n}=t,{data:s}=t,{bounding:o}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=o.max.x-o.min.x-(qn-Kn)*2,c=o.max.y-o.min.y-(qn-Kn)*2,d=s.map(([A,p])=>a?[A.x,p.x]:[A.y,p.y]).flat().sort().filter((A,p,g)=>p===0?!0:A!==g[p-1]),h=d.map(A=>{const p=a?(A-o.min.x-qn+Kn)/l:0,g=a?0:(A-o.min.y-qn+Kn)/c;return{left:p,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((A,p,g)=>{const b=p===0?0:A-g[p-1],y=p===0?0:(A+g[p-1])/2,I=a?(y-o.min.x-qn+Kn)/l:0,k=a?0:(y-o.min.y-qn+Kn)/c;return{left:I,bottom:k,distance:b}}).filter(({distance:A})=>A/u>.1);return i.$$set=A=>{"type"in A&&e(0,n=A.type),"data"in A&&e(5,s=A.data),"bounding"in A&&e(6,o=A.bounding),"getRuleDistanceText"in A&&e(1,r=A.getRuleDistanceText)},[n,r,a,h,m,s,o]}class Rg extends le{constructor(t){super(),ae(this,t,Vg,Bg,oe,{type:0,data:5,bounding:6,getRuleDistanceText:1},Og)}}function Qg(i){ue(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function vl(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function bl(i,t){let e,n,s;const o=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<o.length;a+=1)r=et(r,o[a]);return n=new Rg({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&19?lt(o,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function Gg(i){let t,e=[],n=new Map,s,o=i[4];const r=a=>a[13];for(let a=0;a<o.length;a+=1){let l=vl(i,o,a),c=r(l);n.set(c,e[a]=bl(c,l))}return{c(){t=x("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){B(a,t,l);for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(t,null);s=!0},p(a,[l]){l&19&&(o=a[4],de(),e=jt(e,l,r,1,a,o,n,t,vn,bl,null,vl),he()),l&8&&z(t,"width",a[3]),l&4&&z(t,"height",a[2])},i(a){if(!s){for(let l=0;l<o.length;l+=1)M(e[l]);s=!0}},o(a){for(let l=0;l<e.length;l+=1)j(e[l]);s=!1},d(a){a&&O(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const yl=1e3,wl=180;function Ng(i,t,e){let n,s,o,r,a,l,c,d,h,u,{floorIndex:m}=t,{floorplanData:A}=t,{getRuleDistanceText:p}=t;return i.$$set=g=>{"floorIndex"in g&&e(5,m=g.floorIndex),"floorplanData"in g&&e(6,A=g.floorplanData),"getRuleDistanceText"in g&&e(0,p=g.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=A.bounding),i.$$.dirty&96&&e(11,s=A.floorDatas[m].rules),i.$$.dirty&2048&&e(12,o=Object.keys(s)),i.$$.dirty&6144&&e(4,r=o.map(g=>[g,s[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-(yl-wl)*2),i.$$.dirty&2&&e(8,d=n.max.y-n.min.y-(yl-wl)*2),i.$$.dirty&1536&&e(3,h=c/a*100+"%"),i.$$.dirty&384&&e(2,u=d/l*100+"%")},[p,n,u,h,r,m,A,l,d,a,c,s,o]}class Hg extends le{constructor(t){super(),ae(this,t,Ng,Gg,oe,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Qg)}}function Io(i,t={}){let e="";const{needZ:n,needA:s}=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):s!=null&&s[a]?(e+="A"+s[a]+","+d,e):(e+="L"+d,e)}),e+(n?"Z":"")}function Hh({x:i,y:t},e){const{max:n,min:s}=e;return{x:i-s.x,y:n.y-t}}function _g(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 Wg(i,t){const e=t.bounding,n=e.max.x-e.min.x,s=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/s}}function Fg(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function Yg(i){let t;return{c(){t=ze("path"),w(t,"d",i[0]),w(t,"fill","#2F313A")},m(e,n){B(e,t,n)},p(e,[n]){n&1&&w(t,"d",e[0])},i:J,o:J,d(e){e&&O(t)}}}function Ug(i,t,e){let n,{path:s}=t;return i.$$set=o=>{"path"in o&&e(1,s=o.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Io(s,{needZ:!0}))},[n,s]}class Xg extends le{constructor(t){super(),ae(this,t,Ug,Yg,oe,{path:1})}}function Zg(i){let t,e,n,s,o,r;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),s=ze("path"),o=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(s,"d",i[2]),w(s,"stroke","#ffffff"),w(s,"stroke-opacity","0.06"),w(s,"stroke-width","0.5"),w(s,"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){B(a,t,l),D(t,e),D(e,n),D(e,s),B(a,o,l),B(a,r,l)},p(a,[l]){l&1&&w(r,"d",a[0])},i:J,o:J,d(a){a&&O(t),a&&O(o),a&&O(r)}}}const Ir=6;function Jg(i,t,e){let n,{path:s}=t;const o=Ir*2,r=`M0 ${Ir} h ${o} M${Ir} 0 v ${o}`;return i.$$set=a=>{"path"in a&&e(3,s=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=Io(s,{needZ:!0}))},[n,o,r,s]}class qg extends le{constructor(t){super(),ae(this,t,Jg,Zg,oe,{path:3})}}function Kg(i){let t,e,n,s,o,r,a,l,c,d,h;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),s=ze("pattern"),o=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(o,"x","0"),w(o,"y","0"),w(o,"width","6"),w(o,"height","50"),w(o,"fill","none"),w(o,"stroke","#4B4B57"),w(o,"stroke-width","0.5"),w(s,"id","room-material-pattern-2"),w(s,"x","6"),w(s,"y","25"),w(s,"width","12"),w(s,"height","50"),w(s,"patternUnits","userSpaceOnUse"),w(s,"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){B(u,t,m),D(t,e),D(e,n),D(t,s),D(s,o),B(u,r,m),B(u,a,m),B(u,l,m),B(u,c,m),B(u,d,m),B(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:J,o:J,d(u){u&&O(t),u&&O(r),u&&O(a),u&&O(l),u&&O(c),u&&O(d),u&&O(h)}}}function $g(i,t,e){let n,{path:s}=t;return i.$$set=o=>{"path"in o&&e(1,s=o.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Io(s,{needZ:!0}))},[n,s]}class ep extends le{constructor(t){super(),ae(this,t,$g,Kg,oe,{path:1})}}function tp(i){ue(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 Cl(i,t,e){const n=i.slice();return n[5]=t[e],n}function np(i){let t,e;return t=new qg({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function ip(i){let t,e;return t=new ep({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function sp(i){let t,e;return t=new Xg({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Il(i){let t,e,n,s;const o=[sp,ip,np],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=o[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){B(l,t,c),r[e].m(t,null),s=!0},p(l,c){let d=e;e=a(l),e===d?r[e].p(l,c):(de(),j(r[d],1,1,()=>{r[d]=null}),he(),n=r[e],n?n.p(l,c):(n=r[e]=o[e](l),n.c()),M(n,1),n.m(t,null))},i(l){s||(M(n),s=!0)},o(l){j(n),s=!1},d(l){l&&O(t),r[e].d()}}}function op(i){let t,e,n=i[0],s=[];for(let r=0;r<n.length;r+=1)s[r]=Il(Cl(i,n,r));const o=r=>j(s[r],1,1,()=>{s[r]=null});return{c(){t=x("div");for(let r=0;r<s.length;r+=1)s[r].c();w(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){B(r,t,a);for(let l=0;l<s.length;l+=1)s[l]&&s[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=Cl(r,n,l);s[l]?(s[l].p(c,a),M(s[l],1)):(s[l]=Il(c),s[l].c(),M(s[l],1),s[l].m(t,null))}for(de(),l=n.length;l<s.length;l+=1)o(l);he()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)M(s[a]);e=!0}},o(r){s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)j(s[a]);e=!1},d(r){r&&O(t),Tt(s,r)}}}function rp(i,t,e){let n,{floorIndex:s}=t,{floorplanData:o}=t;const r=o.bounding.max.x-o.bounding.min.x,a=o.bounding.max.y-o.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,s=l.floorIndex),"floorplanData"in l&&e(4,o=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=o.floorDatas[s].rooms.map(l=>Ae(H({},l),{path:l.path.map(c=>Hh(c,o.bounding))})))},[n,r,a,s,o]}class ap extends le{constructor(t){super(),ae(this,t,rp,op,oe,{floorIndex:3,floorplanData:4},tp)}}function lp(i){ue(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function cp(i){let t,e,n,s;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(o,r){B(o,t,r),n||(s=[be(t,"mouseenter",i[3]),be(t,"mouseleave",i[4])],n=!0)},p(o,[r]){r&4&&w(t,"style",o[2]),r&3&&e!==(e=`${o[1]}_${o[0].id}`)&&w(t,"id",e)},i:J,o:J,d(o){o&&O(t),n=!1,Je(s)}}}function dp(i,t,e){let n,s,{room:o}=t,{floorIndex:r}=t,{floorplanData:a}=t,{highlightData:l}=t,{hoveredRoom:c}=t;function d(){c==null||c.set(o)}function h(){c==null||c.set(void 0)}const{bounding:u}=a,m=Io(o.path,{needZ:!0,format:A=>Hh(A,u)});return i.$$set=A=>{"room"in A&&e(0,o=A.room),"floorIndex"in A&&e(1,r=A.floorIndex),"floorplanData"in A&&e(6,a=A.floorplanData),"highlightData"in A&&e(7,l=A.highlightData),"hoveredRoom"in A&&e(8,c=A.hoveredRoom)},i.$$.update=()=>{i.$$.dirty&131&&e(9,n=l[`${r}_${o.id}`]),i.$$.dirty&512&&e(2,s=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[o,r,s,d,h,m,a,l,c,n]}class hp extends le{constructor(t){super(),ae(this,t,dp,cp,oe,{room:0,floorIndex:1,floorplanData:6,highlightData:7,hoveredRoom:8},lp)}}function up(i){ue(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 Pl(i,t,e){const n=i.slice();return n[6]=t[e],n}function El(i,t){let e,n,s;const o=[{room:t[6],floorplanData:t[1],hoveredRoom:t[3],floorIndex:t[0],highlightData:t[2]}];let r={};for(let a=0;a<o.length;a+=1)r=et(r,o[a]);return n=new hp({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&15?lt(o,[{room:t[6],floorplanData:t[1],hoveredRoom:t[3],floorIndex:t[0],highlightData:t[2]}]):{};n.$set(c)},i(a){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function fp(i){let t,e,n=[],s=new Map,o,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=Pl(i,r,l),d=a(c);s.set(d,n[l]=El(d,c))}return{c(){t=x("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){B(l,t,c),D(t,e);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);o=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,de(),n=jt(n,c,a,1,l,r,s,e,vn,El,null,Pl),he())},i(l){if(!o){for(let c=0;c<r.length;c+=1)M(n[c]);o=!0}},o(l){for(let c=0;c<n.length;c+=1)j(n[c]);o=!1},d(l){l&&O(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function mp(i,t,e){let{floorIndex:n}=t,{floorplanData:s}=t,{highlightData:o}=t,{hoveredRoom:r}=t;const a=s.bounding.max.x-s.bounding.min.x,l=s.bounding.max.y-s.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,s=c.floorplanData),"highlightData"in c&&e(2,o=c.highlightData),"hoveredRoom"in c&&e(3,r=c.hoveredRoom)},[n,s,o,r,a,l]}class _h extends le{constructor(t){super(),ae(this,t,mp,fp,oe,{floorIndex:0,floorplanData:1,highlightData:2,hoveredRoom:3},up)}}function gp(i){ue(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 kl(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new _h({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&24834?lt(n,[{floorIndex:o[1],floorplanData:o[8],hoveredRoom:o[14],highlightData:o[13]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function Ml(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 s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new zg({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&22370?lt(n,[{floorplanData:o[8],roomAreaEnable:o[5],roomNameEnable:o[6],floorIndex:o[1],getRoomAreaText:o[9],getLabelElement:o[10],hoveredRoom:o[14],adaptiveRoomLabelVisibleEnable:o[12]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function xl(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new Hg({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&2306?lt(n,[{floorplanData:o[8],floorIndex:o[1],getRuleDistanceText:o[11]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function pp(i){let t,e,n,s,o,r,a,l,c;const d=[{floorIndex:i[1],floorplanData:i[8]}];let h={};for(let b=0;b<d.length;b+=1)h=et(h,d[b]);e=new ap({props:h});let u=(i[2]||i[3])&&kl(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let A={};for(let b=0;b<m.length;b+=1)A=et(A,m[b]);o=new Nh({props:A});let p=i[4]&&Ml(i),g=i[7]&&xl(i);return{c(){t=x("div"),ie(e.$$.fragment),n=ee(),u&&u.c(),s=ee(),ie(o.$$.fragment),r=ee(),p&&p.c(),a=ee(),g&&g.c(),w(t,"class",l=Re(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(b,y){B(b,t,y),te(e,t,null),D(t,n),u&&u.m(t,null),D(t,s),te(o,t,null),D(t,r),p&&p.m(t,null),D(t,a),g&&g.m(t,null),c=!0},p(b,[y]){const I=y&258?lt(d,[{floorIndex:b[1],floorplanData:b[8]}]):{};e.$set(I),b[2]||b[3]?u?(u.p(b,y),y&12&&M(u,1)):(u=kl(b),u.c(),M(u,1),u.m(t,s)):u&&(de(),j(u,1,1,()=>{u=null}),he());const k=y&258?lt(m,[{floorplanData:b[8],floorIndex:b[1]}]):{};o.$set(k),b[4]?p?(p.p(b,y),y&16&&M(p,1)):(p=Ml(b),p.c(),M(p,1),p.m(t,a)):p&&(de(),j(p,1,1,()=>{p=null}),he()),b[7]?g?(g.p(b,y),y&128&&M(g,1)):(g=xl(b),g.c(),M(g,1),g.m(t,null)):g&&(de(),j(g,1,1,()=>{g=null}),he()),(!c||y&1&&l!==(l=Re(`floorplan-plugin__floor${b[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&w(t,"class",l)},i(b){c||(M(e.$$.fragment,b),M(u),M(o.$$.fragment,b),M(p),M(g),c=!0)},o(b){j(e.$$.fragment,b),j(u),j(o.$$.fragment,b),j(p),j(g),c=!1},d(b){b&&O(t),ne(e),u&&u.d(),ne(o),p&&p.d(),g&&g.d()}}}function Ap(i,t,e){let{isCurrent:n}=t,{floorIndex:s}=t,{highlightEnable:o}=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:A}=t,{adaptiveRoomLabelVisibleEnable:p}=t,{highlightData:g}=t;const b=Pa(void 0);return i.$$set=y=>{"isCurrent"in y&&e(0,n=y.isCurrent),"floorIndex"in y&&e(1,s=y.floorIndex),"highlightEnable"in y&&e(2,o=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,A=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(12,p=y.adaptiveRoomLabelVisibleEnable),"highlightData"in y&&e(13,g=y.highlightData)},[n,s,o,r,a,l,c,d,h,u,m,A,p,g,b]}let vp=class extends le{constructor(t){super(),ae(this,t,Ap,pp,oe,{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},gp)}};function bp(i){ue(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Dl(i,t,e){const n=i.slice();return n[21]=t[e],n}function Sl(i){let t,e,n,s,o,r=i[13].floorDatas,a=[];for(let h=0;h<r.length;h+=1)a[h]=Tl(Dl(i,r,h));const l=h=>j(a[h],1,1,()=>{a[h]=null});let c=i[5]&&Ll(i),d=i[8]&&jl(i);return{c(){t=x("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){B(h,t,u);for(let m=0;m<a.length;m+=1)a[m]&&a[m].m(t,null);D(t,e),c&&c.m(t,null),D(t,n),d&&d.m(t,null),o=!0},p(h,u){if(i=h,u&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const A=Dl(i,r,m);a[m]?(a[m].p(A,u),M(a[m],1)):(a[m]=Tl(A),a[m].c(),M(a[m],1),a[m].m(t,e))}for(de(),m=r.length;m<a.length;m+=1)l(m);he()}i[5]?c?(c.p(i,u),u&32&&M(c,1)):(c=Ll(i),c.c(),M(c,1),c.m(t,n)):c&&(de(),j(c,1,1,()=>{c=null}),he()),i[8]?d?(d.p(i,u),u&256&&M(d,1)):(d=jl(i),d.c(),M(d,1),d.m(t,null)):d&&(de(),j(d,1,1,()=>{d=null}),he())},i(h){if(!o){for(let u=0;u<r.length;u+=1)M(a[u]);M(c),M(d),s||Ne(()=>{s=On(t,tt,{duration:i[0],easing:en}),s.start()}),o=!0}},o(h){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)j(a[u]);j(c),j(d),o=!1},d(h){h&&O(t),Tt(a,h),c&&c.d(),d&&d.d()}}}function Tl(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 s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new vp({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&2047696?lt(n,[r&2047680&&{hoverEnable:o[6],highlightEnable:o[7],floorplanData:o[13],getRoomAreaText:o[16],getLabelElement:o[17],getRuleDistanceText:o[18],roomLabelsEnable:o[9],roomAreaEnable:o[10],roomNameEnable:o[11],ruleLabelsEnable:o[12],adaptiveRoomLabelVisibleEnable:o[19],highlightData:o[20]},r&8192&&{floorIndex:o[21].floorIndex},r&8208&&{isCurrent:o[21].floorIndex===o[4]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function Ll(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new ig({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&57352?lt(n,[{panoIndex:o[3],floorplanData:o[13],lastPanoramaLongitude:o[14],cameraImageUrl:o[15]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function jl(i){let t,e;return t=new dg({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&8192&&(o.floorplanData=n[13]),s&4&&(o.northDesc=n[2]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function yp(i){let t,e,n=i[1]&&Sl(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[1]?n?(n.p(s,o),o&2&&M(n,1)):(n=Sl(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function wp(i,t,e){let{duration:n=0}=t,{visible:s}=t,{northDesc:o}=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:A}=t,{ruleLabelsEnable:p}=t,{floorplanData:g}=t,{lastPanoramaLongitude:b}=t,{cameraImageUrl:y}=t,{getRoomAreaText:I}=t,{getLabelElement:k}=t,{getRuleDistanceText:T}=t,{adaptiveRoomLabelVisibleEnable:P}=t,{highlightData:V}=t;return i.$$set=L=>{"duration"in L&&e(0,n=L.duration),"visible"in L&&e(1,s=L.visible),"northDesc"in L&&e(2,o=L.northDesc),"panoIndex"in L&&e(3,r=L.panoIndex),"floorIndex"in L&&e(4,a=L.floorIndex),"cameraEnable"in L&&e(5,l=L.cameraEnable),"hoverEnable"in L&&e(6,c=L.hoverEnable),"highlightEnable"in L&&e(7,d=L.highlightEnable),"compassEnable"in L&&e(8,h=L.compassEnable),"roomLabelsEnable"in L&&e(9,u=L.roomLabelsEnable),"roomAreaEnable"in L&&e(10,m=L.roomAreaEnable),"roomNameEnable"in L&&e(11,A=L.roomNameEnable),"ruleLabelsEnable"in L&&e(12,p=L.ruleLabelsEnable),"floorplanData"in L&&e(13,g=L.floorplanData),"lastPanoramaLongitude"in L&&e(14,b=L.lastPanoramaLongitude),"cameraImageUrl"in L&&e(15,y=L.cameraImageUrl),"getRoomAreaText"in L&&e(16,I=L.getRoomAreaText),"getLabelElement"in L&&e(17,k=L.getLabelElement),"getRuleDistanceText"in L&&e(18,T=L.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in L&&e(19,P=L.adaptiveRoomLabelVisibleEnable),"highlightData"in L&&e(20,V=L.highlightData)},[n,s,o,r,a,l,c,d,h,u,m,A,p,g,b,y,I,k,T,P,V]}let Ea=class extends le{constructor(t){super(),ae(this,t,wp,yp,oe,{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},bp)}};const Cp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDR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ARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";function Ip(i){return U(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(s){return U(this,null,function*(){const o={index:s.index,url:s.url,svgUrl:s.svg_url};if(s.svg_url){const r=yield fetch(s.svg_url,{headers:t}).then(a=>a.text());o.svgContent=r}return o})};return yield Promise.all(i.map(e))})}function Pp(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 Ep(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(Pp),rules:i.rules}}function kp(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function Mp(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 gn(i){return U(this,null,function*(){const t=yield Ip(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(Ep),s=i.computed_data.entrance?Mp(i.computed_data.entrance):null;return{outlines:t,entrance:s,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(kp)}})}function xp(i,t,e){return i.map(s=>{const o=s.position,r=s.icon?s.icon:{url:Cp,width:45,height:48},a=Fg(o,t),l=_g(o,e),c=Wg(l,e);return{floorIndex:a,icon:r,id:s.id,position:l,positionInImage:c}})}function Dp(i,t){return t(i),i}function Po(i,t){return Dp({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function zl(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 ka(i,t,e=hn.BOUNDING_CENTER){const n=zl(i,t),s=zl(i,t+1);return e===hn.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===hn.CEILING?s:n}function Ma(i,t,e,n){const s=ka(i,e,n==null?void 0:n.attachedTo),o=new E.Vector3(0,s,0),r=new E.Vector3(1,s,0),a=o.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}let rs=class{constructor(t,e){f(this,"VERSION","2.22.0-dev.2");f(this,"five");f(this,"hooks",new pi);f(this,"staticPrefix","//vr-image-4.realsee-cdn.cn");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}absoluteUrl(t){return ha(this.staticPrefix,t)}},Bn=class extends rs{};var wt=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(wt||{});const Wh=500,Sp=80;function Xr(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function xa(i,t){return U(this,null,function*(){const[e]=yield di(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 s=i.getCurrentState();if(!Tp(n,s))throw new Error("pose 与预期不符")})}function Tp(i,t){return Object.keys(i).every(e=>{const n=t[e];if(n===void 0)return!0;const s=i[e];return typeof n=="number"&&typeof s=="number"?Xr(n,s,2):n===s})}function Da(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:s}=t,{latitude:o,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Xr(e,o,2)||!Xr(n,r,2)||s!==a)}function Fh(i,t,e=!0){return U(this,null,function*(){if(Da(i,t)===!0)return;const s=i.getCurrentState();if(s.mode!==t.mode){const[d]=yield di(xa(i,[t.mode,t,void 0,e]));if(d)throw new Error(wt.ChangeModeError);return}const{latitude:o,longitude:r,fov:a}=s,l=Math.min(1e3,Math.max(200,Math.abs(o-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield di(i.updateCamera(t,l,e));if(c)throw new Error(wt.UpdateCameraError)})}function ui(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(s=>n.addEventListener("transitionend",s,{once:!0})),new Promise(s=>setTimeout(s,e))]).then(()=>{n.style.transition="none"}))}function Lp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,s=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||s}function jp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,s=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&s}let zp=class extends Bn{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)=>U(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const s=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},s),this._show(e)}));f(this,"hide",(...n)=>U(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||!Da(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(s=this.showRejection)==null||s.call(this,wt.BreakOffByDisable),this.showPromise=void 0,(o=this.app)==null||o.$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=>U(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(wt.ModelNotLoaded);if(!this.data)throw new Error(wt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},s=H(H({},n),e),o=()=>U(this,null,function*(){this.hooks.emit("show",{userAction:s.userAction,auto:s.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield di(Fh(this.five,this.showState,s.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(wt.UnknownError);this.updateSize(),this.floorIndex=s.floorIndex,this.five.model.show(this.floorIndex);const d=s.modelOpacity,h=s.immediately?0:Wh;ui(this.five,d,h),this.render(h)});return this.showPromise=o().then(()=>{this.hooks.emit("showAnimationEnded",{auto:s.isAutoShow,userAction:s.userAction})}).catch(a=>{if(this.updateState({visible:!1},s.userAction),!s.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var o;(o=this.showRejection)==null||o.call(this,wt.BreakOffByHide),this.showPromise=void 0;const s=H(H({},{userAction:!0,isAutoHide:!1}),e);ui(this.five,1,0),this.hooks.emit("hide",{auto:s.isAutoHide,userAction:s.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 s=this.five.getCurrentState();s.mode==="Floorplan"&&(this.state.visible||jp(s)&&(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 s=this.five.getCurrentState();Lp(s)&&(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:Sp/((a=n==null?void 0:n.scale)!=null?a:1)};const s={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"㎡",getRuleDistanceText:l=>l.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled&&(e.enabled?this._enable({userAction:o}):this._disable({userAction:o})),e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}updateState(e,n){const s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Op=(i,t)=>new zp(i,t);function Bp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,s=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||s}function Vp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,s=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&s}let Rp=class extends Bn{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)=>U(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const s=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},s),this._show(e)}));f(this,"hide",(...n)=>U(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||!Da(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(s=this.showRejection)==null||s.call(this,wt.BreakOffByDisable),this.showPromise=void 0,(o=this.app)==null||o.$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=>U(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(wt.ModelNotLoaded);if(!this.data)throw new Error(wt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},s=H(H({},n),e),o=()=>U(this,null,function*(){this.hooks.emit("show",{userAction:s.userAction,auto:s.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield di(Fh(this.five,this.showState,s.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(wt.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=s.floorIndex,this.five.model.show(this.floorIndex);const d=s.modelOpacity,h=s.immediately?0:Wh;ui(this.five,d,h),this.render(h)});return this.showPromise=o().then(()=>{this.hooks.emit("showAnimationEnded",{auto:s.isAutoShow,userAction:s.userAction})}).catch(a=>{if(this.updateState({visible:!1},s.userAction),!s.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var o;(o=this.showRejection)==null||o.call(this,wt.BreakOffByHide),this.showPromise=void 0;const s=H(H({},{userAction:!0,isAutoHide:!1}),e);ui(this.five,1,0),this.hooks.emit("hide",{auto:s.isAutoHide,userAction:s.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 s=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Bp(s)&&(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 s=this.five.getCurrentState();return s.mode!==this.showState.mode||this.state.visible?void 0:(Vp(s)&&(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 s={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled&&(e.enabled?this._enable({userAction:o}):this._disable({userAction:o})),e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=ka(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 s=n.clone().project(this.five.camera),o=(s.x+1)/2,r=-(s.y-1)/2;this.container.style.left=o*100+"%",this.container.style.top=r*100+"%"}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}updateState(e,n){const s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Qp=(i,t)=>new Rp(i,t);let Gp=class extends Bn{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,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o;const{userAction:n}=e;(s=this.app)==null||s.$destroy(),this.app=void 0,(o=this.container)==null||o.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 s={northDesc:"北",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),this.render()})}updatePosition(){var a;const e=ka(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 s=n.clone().project(this.five.camera),o=(s.x+1)/2,r=-(s.y-1)/2;this.container.style.left=o*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 U(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 U(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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled){const r={userAction:o};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}_show(e){return U(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 xa(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const s=500,o=this.state.config.modelOpacity;ui(this.five,o,s),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return U(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const s=1,o=0;ui(this.five,s,o),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 s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Np=(i,t)=>new Gp(i,t);function Sa(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Hp(i){ue(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 _p(i){let t,e,n;return{c(){t=x("div"),e=x("div"),n=x("div"),w(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),z(n,"background-image","url("+(i[0]||mn)+")"),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(s,o){B(s,t,o),D(t,e),D(e,n)},p(s,[o]){o&1&&z(n,"background-image","url("+(s[0]||mn)+")"),(o&1||o&3)&&z(n,"transform",s[1]),o&4&&z(e,"transform",s[2])},i:J,o:J,d(s){s&&O(t)}}}function Wp(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function Fp(i,t,e){let n,s,{five:o}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=o.getCurrentState().panoIndex,d=o.getCurrentState().longitude;function h(A,p){const g=A.bounding,b=A.observers[p];if(!b)return"";const y=(g.max.x-g.min.x)*r,I=(g.max.y-g.min.y)*r,k=Math.floor(b.positionInImage.x*y),T=Math.floor(b.positionInImage.y*I);return`translate(${k}px, ${T}px)`}function u(A){e(6,c=A)}const m=Sa(A=>{e(7,d=A.longitude)},1e3/60);return vt(()=>(o.on("panoWillArrive",u),o.on("cameraDirectionUpdate",m),function(){o.off("panoWillArrive",u),o.off("cameraDirectionUpdate",m)})),i.$$set=A=>{"five"in A&&e(3,o=A.five),"pxmm"in A&&e(4,r=A.pxmm),"floorplanData"in A&&e(5,a=A.floorplanData),"cameraImageUrl"in A&&e(0,l=A.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=h(a,c)),i.$$.dirty&128&&e(1,s=Wp(d))},[l,s,n,o,r,a,c,d]}class Yp extends le{constructor(t){super(),ae(this,t,Fp,_p,oe,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Hp)}}function Up(i){ue(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 Ol(i,t,e){const n=i.slice();return n[1]=t[e],n}function Bl(i,t){let e,n,s=`${t[1].icon.width/16}rem`,o=`${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=x("div"),n=x("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",s),z(n,"height",o),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){B(c,e,d),D(e,n),D(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",s),h&&z(n,"height",o),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&&O(e)}}}function Xp(i){let t,e=[],n=new Map,s=i[0];const o=r=>r[1].id;for(let r=0;r<s.length;r+=1){let a=Ol(i,s,r),l=o(a);n.set(l,e[r]=Bl(l,a))}return{c(){t=x("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){B(r,t,a);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(t,null)},p(r,[a]){a&1&&(s=r[0],e=jt(e,a,o,1,r,s,n,t,wa,Bl,null,Ol))},i:J,o:J,d(r){r&&O(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Zp(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=s=>{"extraObjects"in s&&e(0,n=s.extraObjects)},[n]}class Jp extends le{constructor(t){super(),ae(this,t,Zp,Xp,oe,{extraObjects:0},Up)}}function Vl(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[7],highlightData:i[5],hoveredRoom:void 0}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new _h({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&183?lt(n,[{five:o[0],pxmm:o[1],floorIndex:o[2],floorplanData:o[4],onRoomHeightClick:o[7],highlightData:o[5],hoveredRoom:void 0}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function qp(i){let t,e,n,s,o,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let d=0;d<a.length;d+=1)l=et(l,a[d]);t=new Nh({props:l}),n=new Jp({props:{extraObjects:i[6]}});let c=i[3]&&Vl(i);return{c(){ie(t.$$.fragment),e=ee(),ie(n.$$.fragment),s=ee(),c&&c.c(),o=Pe()},m(d,h){te(t,d,h),B(d,e,h),te(n,d,h),B(d,s,h),c&&c.m(d,h),B(d,o,h),r=!0},p(d,[h]){const u=h&20?lt(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&&M(c,1)):(c=Vl(d),c.c(),M(c,1),c.m(o.parentNode,o)):c&&(de(),j(c,1,1,()=>{c=null}),he())},i(d){r||(M(t.$$.fragment,d),M(n.$$.fragment,d),M(c),r=!0)},o(d){j(t.$$.fragment,d),j(n.$$.fragment,d),j(c),r=!1},d(d){ne(t,d),d&&O(e),ne(n,d),d&&O(s),c&&c.d(d),d&&O(o)}}}function Kp(i,t,e){let n,{five:s}=t,{pxmm:o}=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,s=u.five),"pxmm"in u&&e(1,o=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))},[s,o,r,a,l,d,n,h,c]}class $p extends le{constructor(t){super(),ae(this,t,Kp,qp,oe,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:8,highlightData:5})}}function eA(i){ue(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 Rl(i){let t,e,n,s,o=i[7]!==0&&Ql(i);return{c(){t=x("div"),o&&o.c(),w(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){B(r,t,a),o&&o.m(t,null),e=!0,n||(s=[$t(Pi.call(null,t)),be(t,"clientWidth",i[13]),be(t,"clientHeight",i[14])],n=!0)},p(r,a){r[7]!==0?o?(o.p(r,a),a&128&&M(o,1)):(o=Ql(r),o.c(),M(o,1),o.m(t,null)):o&&(de(),j(o,1,1,()=>{o=null}),he())},i(r){e||(M(o),e=!0)},o(r){j(o),e=!1},d(r){r&&O(t),o&&o.d(),n=!1,Je(s)}}}function Ql(i){let t,e,n,s,o=`${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=et(c,l[u]);e=new $p({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=et(h,d[u]);return s=new Yp({props:h}),{c(){t=x("div"),ie(e.$$.fragment),n=ee(),ie(s.$$.fragment),w(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),z(t,"width",o),z(t,"height",r)},m(u,m){B(u,t,m),te(e,t,null),D(t,n),te(s,t,null),a=!0},p(u,m){const A=m&3181?lt(l,[{five:u[0],pxmm:u[10],floorIndex:u[11],floorplanData:u[3],hoverEnable:u[2],extraObjects:u[5],highlightData:u[6]}]):{};e.$set(A);const p=m&1049?lt(d,[{pxmm:u[10],five:u[0],floorplanData:u[3],cameraImageUrl:u[4]}]):{};s.$set(p),m&512&&o!==(o=`${u[9]}px`)&&z(t,"width",o),m&4096&&r!==(r=`${u[12]}px`)&&z(t,"height",r)},i(u){a||(M(e.$$.fragment,u),M(s.$$.fragment,u),a=!0)},o(u){j(e.$$.fragment,u),j(s.$$.fragment,u),a=!1},d(u){u&&O(t),ne(e),ne(s)}}}function tA(i){let t,e,n=i[1]&&Rl(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[1]?n?(n.p(s,o),o&2&&M(n,1)):(n=Rl(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function nA(i,t,e){var I,k;let{five:n}=t,{visible:s}=t,{hoverEnable:o}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,{highlightData:c}=t,d=0,h=(k=(I=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:I.floorIndex)!=null?k:0,u=0,m=0,A=0,p=0;function g(T){e(11,h=n.work.observers[T].floorIndex)}vt(()=>(n.on("panoArrived",g),()=>{n.off("panoArrived",g)}));const b=T=>{e(7,u=T.detail)},y=T=>{e(8,m=T.detail)};return i.$$set=T=>{"five"in T&&e(0,n=T.five),"visible"in T&&e(1,s=T.visible),"hoverEnable"in T&&e(2,o=T.hoverEnable),"floorplanData"in T&&e(3,r=T.floorplanData),"cameraImageUrl"in T&&e(4,a=T.cameraImageUrl),"extraObjects"in T&&e(5,l=T.extraObjects),"highlightData"in T&&e(6,c=T.highlightData)},i.$$.update=()=>{if(i.$$.dirty&904){const T=Math.min(u,m),{max:P,min:V}=r.bounding,L=P.x-V.x,W=P.y-V.y,q=function(){return L>W?[T,T/L*W]:[T/W*L,T]}();e(9,A=q[0]),e(12,p=q[1]),e(10,d=A/L)}},[n,s,o,r,a,l,c,u,m,A,d,h,p,b,y]}class iA extends le{constructor(t){super(),ae(this,t,nA,tA,oe,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5,highlightData:6},eA)}}let sA=class extends Bn{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 s;const{userAction:n}=e;(s=this.app)==null||s.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const s={hoverEnable:!0,highlightEnable:!0,cameraImageUrl:mn},o=n!=null&&n.configs?n.configs:{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=o(r)?r.data:r,l=this.data;this.data=yield gn(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,s),this.render()})}show(){return U(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 U(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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled){const r={userAction:o};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};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=xp(e,this.five,this.data),this.render())}formatData(e){return U(this,null,function*(){return yield gn(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 s=this.state;this.state=H(H({},this.state),e),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 iA({target:this.wrapper,props:e})}};const oA=(i,t)=>new sA(i,t),rA=[{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:"和室"}],aA=[{type:0,description:"木质地板"},{type:1,description:"瓷砖地面"},{type:2,description:"户外地面"},{type:3,description:"卫生间地面"},{type:4,description:"阳台地面"},{type:5,description:"车库地面"}],lA=[{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:"写字楼"}],Pr=(i,t,e)=>{const n=new E.Matrix4,s=new E.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(s),n},cA=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[s,o,r]=e;s&&i.applyMatrix4(Pr(s,0,0)),o&&i.applyMatrix4(Pr(0,o,0)),r&&i.applyMatrix4(Pr(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function Yh(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const s=e,o=H({map:s.material.map||{}},t);s.material=new R.MeshBasicMaterial(o),s.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const dA=(i,t)=>{var p;const e=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX",n=(p=t.north_rad)!=null?p:void 0,s={};let o={x:0,y:0,z:0},r=[0,0,0],a=1,l=n;i.on("modelLoaded",A);const c=g=>U(exports,null,function*(){var k;const b=(g==null?void 0:g.fbx_url)||e;if(l=(k=g==null?void 0:g.north_rad)!=null?k:n,typeof l!="number")throw new Error('"northRad"配置参数缺失:未配置指南针指向!');const I=yield new sh.FBXLoader().loadAsync(b);return Yh(I,{transparent:!0,side:E.DoubleSide,blending:E.AdditiveBlending}),s.object=I,A(),!0}),d=({latitude:g})=>{if(!s.object)return;const b=h(g);b&&(s.object.position.y=b)},h=g=>{if(s.yBase===void 0)return;const b=.6;if(g>=Math.PI/4)return s.yBase-(b+1.6);const y=g*(4/Math.PI);return s.yBase-(b*y+1.6)},u=()=>{if(!s.object)return;const g=h(i.getPose().latitude);g&&(s.object.position.y=g),i.scene.add(s.object),i.needsRender=!0,i.on("cameraDirectionUpdate",d)},m=()=>{s.object&&(i.scene.remove(s.object),i.needsRender=!0,i.off("cameraDirectionUpdate",d))};function A(){const g=s.object;if(!g)return;const b=i.model.bounding,y=b.max.x-b.min.x,I=b.max.z-b.min.z,k=Math.max(y,I),{max:{x:T,z:P},min:{x:V,y:L,z:W}}=b;s.yBase=L,o={x:(T+V)/2,y:L-1.6,z:(P+W)/2},r=[0,l-Math.PI/2,0],a=.0045*k,cA(g,{position:o,rotation:r,scale:a})}return{load:c,disable:m,enable:u}};function hA(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,s=(h=t==null?void 0:t.backgroundColor)!=null?h:"rgba(0,0,0,0)",o=(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=s,l.fillRect(0,0,e,e),l.font=`${n}px "微软雅黑"`,l.textAlign=r,l.fillStyle=o,l.fillText(i,e/2,e*.7),new R.CanvasTexture(a)}const uA=({x:i,y:t,z:e})=>new R.Vector3(i,t,e),fA=(i,t)=>{var p,g,b;const e={},n=(p=t.animationEnabled)!=null?p:!0,s=(g=t.position)!=null?g:void 0,o=(b=t.rad)!=null?b:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=y=>U(exports,null,function*(){var q,N,G,_,Q,F,Z,X;const I=(q=y==null?void 0:y.position)!=null?q:s;if(!I)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const k=uA(I),T=(N=y==null?void 0:y.rad)!=null?N:o,P=(G=y==null?void 0:y.fbx_url)!=null?G:r;if(e.rad=T,T===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${T}`));const V=yield new sh.FBXLoader().loadAsync(P);V.position.copy(k),V.rotation.z=T,V.scale.set(.8,.8,.8),Yh(V,{transparent:!0,side:E.DoubleSide});const L=(Z=(F=(Q=(_=V.children)==null?void 0:_[0])==null?void 0:Q.children)==null?void 0:F[3])==null?void 0:Z.clone();if(!L)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${L}`));const W=(X=t.name)!=null?X:"入户门";return L.material=new R.MeshBasicMaterial({transparent:!0,map:hA(W)}),L.renderOrder=3,V.children[0].add(L),e.object=V,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const y=1,I=new R.AnimationMixer(e.object);a.push(I);const k=I.clipAction(e.object.animations[0]);k.timeScale=y;let T;const P=()=>{let q=0,N=0;const G=1e3/30,_=Q=>{q=requestAnimationFrame(_);const F=Q-N;F<G||(N=Q,a.forEach(Z=>Z.update(F/1e3)),i.needsRender=!0)};return q=requestAnimationFrame(_),()=>{cancelAnimationFrame(q)}},W={play:()=>{T||(k.play(),T=P(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{k.stop(),T==null||T(),T=void 0}};e.animation=W},d=y=>{var k;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((k=y==null?void 0:y.animationEnable)!=null?k: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)}},mA=Dt;function gA(i,t,e,n=mA.Linear.None){const s=new mo(i).to(t,e).easing(n);Ao(()=>s.start(0));const o=os(a=>{s.update(a)===!1&&o()}),r=[];return s.onDestroy=a=>(r.push(a),s),s.destroy=function(){this.stop(),Object.assign(s,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();o()},s}function pA(i,t){return gA({progress:0},{progress:1},i,t)}var Uh=(i=>(i.Move="Move",i.Rotate="Rotate",i))(Uh||{}),Rt=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Rt||{});const Ws=Math.PI*2;function Gl(i){return(i%Ws+Ws)%Ws}function Nl(i){return i%Ws}function Er(i,t,e){return i+(t-i)*e}const Zr=(i,t,e)=>{const n=Math.PI,s=n*2;let o=Gl(i),r=Gl(t);return e===Rt.Anticlockwise&&o<r&&(o+=s),e===Rt.Clockwise&&r<o&&(r+=s),e===Rt.Loop&&r-o>n?Zr(o,r,Rt.Anticlockwise):e===Rt.Loop&&o-r>n?Zr(o,r,Rt.Clockwise):{from:o,to:r}},AA=i=>{const t={},e=(l,c,...d)=>U(exports,[l,c,...d],function*(o,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),o.mode&&o.mode!==i.currentMode&&(yield i.changeMode(o.mode)),a.preload&&o.panoIndex!==void 0&&o.panoIndex!==i.panoIndex&&(yield i.preloadPano(o.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),o.panoIndex===void 0&&o.fov===void 0&&o.latitude===void 0&&o.longitude===void 0?!0:yield new Promise((h,u)=>{const m=o.panoIndex!==void 0?o.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,H({duration:r,moveEndCallback:()=>h(!0),moveCancelCallback:()=>u(new Error("move canceled"))},o)):u(new Error("unexpected error"))})}),n=o=>{const r=i.state,a=Nl(r.latitude),l=Nl(o.latitude),{from:c,to:d}=Zr(r.longitude,o.longitude,o.rotation||Rt.Loop),h=r.fov,u=o.fov;return{from:{latitude:a,longitude:c,fov:h},to:{latitude:l,longitude:d,fov:u}}};return{move:e,rotate:(l,c,...d)=>U(exports,[l,c,...d],function*(o,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==Te.Five.Mode.Panorama&&(yield i.changeMode(Te.Five.Mode.Panorama)),o.panoIndex!==void 0&&o.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(o.panoIndex)),yield new Promise((m,A)=>{if(!o.panoIndex){m(!0);return}i.moveToPano(o.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>A(new Error("move canceled"))})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:h,to:u}=n(o);return yield new Promise(m=>{const A=({progress:I})=>{const k={};k.longitude=Er(h.longitude,u.longitude,I),k.latitude=Er(h.latitude,u.latitude,I),k.fov=Er(h.fov,u.fov,I),i.setState(k,!0)},p=()=>{m(!0)},g=()=>{m(!1)},b=o.rotateSpeed?Math.ceil(Math.abs(u.longitude-h.longitude)/o.rotateSpeed*1e3):r,y=pA(b,Dt.Linear.None).onUpdate(A).onComplete(p).onDestroy(g);o.rotation===Rt.Loop&&y.repeat(1/0).yoyo(!0),t.interruptCallback=(I=!0)=>{y.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(I)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Hl(i,t){return i.x===t.x&&i.y===t.y}function Xh(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function oo(i,t){return(t.y-i.y)/(t.x-i.x)}function Zh(i,t,e){const n=oo(i[1],i[0]),s=oo(t[1],t[0]);if(isNaN(n)||isNaN(s)||Xh(n,s))return!1;if(Ss(i[0],t))return i[0];if(Ss(i[1],t))return i[1];if(Ss(t[0],i))return t[0];if(Ss(t[1],i))return t[1];if(e&&!vA(i,t))return!1;const o=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:o.x,y:t[1].y-(t[1].x-o.x)*s};if(Math.abs(s)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-o.y+n*o.x-s*r.x)/(n-s),l=n*a-n*o.x+o.y;return{x:a,y:l}}function Ss(i,t){return Hl(i,t[0])||Hl(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&&Xh(oo(t[0],i),oo(i,t[1]))}function Ts(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function vA(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)&&Ts(t[0],i[1],i[0])*Ts(i[1],t[1],i[0])>0&&Ts(i[0],t[1],t[0])*Ts(t[1],i[1],t[0])>0?1:0}function Jh(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Jh(i,t-1))}const bA=`<style type="text/css">
|
|
194
|
+
`;return i.$$set=o=>{"content"in o&&e(0,n=o.content)},[n,s]}class vg extends le{constructor(t){super(),ae(this,t,Ag,pg,oe,{content:0},gg)}}function bg(i){ue(i,"svelte-ozpg4a",".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}")}function yg(i){let t,e;return t=new mg({props:{url:i[1].url}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&2&&(o.url=n[1].url),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function wg(i){let t,e;return t=new vg({props:{content:i[0]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.content=n[0]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Cg(i){let t,e,n,s;const o=[wg,yg],r=[];function a(l,c){return l[0]?0:l[1]?1:-1}return~(e=a(i))&&(n=r[e]=o[e](i)),{c(){t=x("div"),n&&n.c(),w(t,"class","floorplan-plugin__base-image svelte-ozpg4a")},m(l,c){B(l,t,c),~e&&r[e].m(t,null),s=!0},p(l,[c]){let d=e;e=a(l),e===d?~e&&r[e].p(l,c):(n&&(de(),j(r[d],1,1,()=>{r[d]=null}),he()),~e?(n=r[e],n?n.p(l,c):(n=r[e]=o[e](l),n.c()),M(n,1),n.m(t,null)):n=null)},i(l){s||(M(n),s=!0)},o(l){j(n),s=!1},d(l){l&&O(t),~e&&r[e].d()}}}function Ig(i,t,e){let n,s,{floorIndex:o}=t,{floorplanData:r}=t;return i.$$set=a=>{"floorIndex"in a&&e(2,o=a.floorIndex),"floorplanData"in a&&e(3,r=a.floorplanData)},i.$$.update=()=>{var a,l;i.$$.dirty&12&&e(1,n=r.outlines[o]),i.$$.dirty&12&&e(0,s=(l=(a=r.outlines)==null?void 0:a[o])==null?void 0:l.svgContent)},[s,n,o,r]}class Nh extends le{constructor(t){super(),ae(this,t,Ig,Cg,oe,{floorIndex:2,floorplanData:3},bg)}}function Pg(i){ue(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 Eg(i){let t,e=i[8].outerHTML+"",n;return{c(){t=new Zs(!1),n=Pe(),t.a=n},m(s,o){t.m(e,s,o),B(s,n,o)},p(s,o){o&256&&e!==(e=s[8].outerHTML+"")&&t.p(e)},d(s){s&&O(n),s&&t.d()}}}function kg(i){let t,e,n=i[1]&&cl(i),s=i[0]&&dl(i);return{c(){n&&n.c(),t=ee(),s&&s.c(),e=Pe()},m(o,r){n&&n.m(o,r),B(o,t,r),s&&s.m(o,r),B(o,e,r)},p(o,r){o[1]?n?n.p(o,r):(n=cl(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[0]?s?s.p(o,r):(s=dl(o),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(o){n&&n.d(o),o&&O(t),s&&s.d(o),o&&O(e)}}}function cl(i){let t,e=i[2].name+"",n;return{c(){t=x("span"),n=Me(e),w(t,"class","floorplan-plugin__room-name")},m(s,o){B(s,t,o),D(t,n)},p(s,o){o&4&&e!==(e=s[2].name+"")&&Oe(n,e)},d(s){s&&O(t)}}}function dl(i){let t,e;return{c(){t=x("span"),e=Me(i[7]),w(t,"class","floorplan-plugin__room-size svelte-12pzct5")},m(n,s){B(n,t,s),D(t,e)},p(n,s){s&128&&Oe(e,n[7])},d(n){n&&O(t)}}}function Mg(i){let t,e,n;function s(a,l){if(a[3]===void 0)return kg;if(a[8])return Eg}let o=s(i),r=o&&o(i);return{c(){t=x("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){B(a,t,l),r&&r.m(t,null),e||(n=[$t(Pi.call(null,t)),be(t,"clientWidth",i[19]),be(t,"clientHeight",i[20])],e=!0)},p(a,[l]){o===(o=s(a))&&r?r.p(a,l):(r&&r.d(1),r=o&&o(a),r&&(r.c(),r.m(t,null))),l&64&&z(t,"opacity",a[6]?"1":"0")},i:J,o:J,d(a){a&&O(t),r&&r.d(),e=!1,Je(n)}}}function xg(i,t){const e=i[0],n=i[1];let s=!1;for(let o=0,r=t.length-1;o<t.length;r=o++){const a=t[o][0],l=t[o][1],c=t[r][0],d=t[r][1];l>n!=d>n&&e<(c-a)*(n-l)/(d-l)+a&&(s=!s)}return s}function Dg(i,t,e){let n,s,o,r,a,{pxmm:l}=t,{roomAreaEnable:c}=t,{roomNameEnable:d}=t,{room:h}=t,{hoveredRoom:u}=t,{getRoomAreaText:m}=t,{getLabelElement:A}=t,{adaptiveRoomLabelVisibleEnable:p}=t;function g(G,_){if(_.width===0||_.height===0)return()=>!1;const Q=G.path.map(({x:Ce,y:pe})=>[Ce,pe]),F=G.roomLabel.position,{x:Z,y:X}=F,{width:$,height:ce}=_,se=$/2,we=ce/2;return function(pe){const Be=Z*pe,ve=X*pe,We=Q.map(([ye,Le])=>[ye*pe,Le*pe]);return[[Be+se,ve-we],[Be-se,ve-we],[Be-se,ve+we],[Be+se,ve+we]].every(ye=>xg(ye,We))}}const b=document.body.clientWidth,y=document.body.clientHeight,I=h.roomLabel,k=I.positionInImage.x*100+"%",T=I.positionInImage.y*100+"%",P=(b<500||y<500?10:14)+"px";let V=0,L=0,W=!1;u.subscribe(function(_){e(16,W=!!_&&_.id===h.id)});const q=G=>{e(4,V=G.detail)},N=G=>{e(5,L=G.detail)};return i.$$set=G=>{"pxmm"in G&&e(12,l=G.pxmm),"roomAreaEnable"in G&&e(0,c=G.roomAreaEnable),"roomNameEnable"in G&&e(1,d=G.roomNameEnable),"room"in G&&e(2,h=G.room),"hoveredRoom"in G&&e(13,u=G.hoveredRoom),"getRoomAreaText"in G&&e(14,m=G.getRoomAreaText),"getLabelElement"in G&&e(3,A=G.getLabelElement),"adaptiveRoomLabelVisibleEnable"in G&&e(15,p=G.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{i.$$.dirty&12&&e(8,n=A==null?void 0:A(h)),i.$$.dirty&16388&&e(7,s=h.size?m(h.size):""),i.$$.dirty&48&&e(18,o={width:V,height:L}),i.$$.dirty&262148&&e(17,r=o?g(h,o):void 0),i.$$.dirty&233472&&e(6,a=p?W?!0:!!(r!=null&&r(l)):!0)},[c,d,h,A,V,L,a,s,n,k,T,P,l,u,m,p,W,r,o,q,N]}class Sg extends le{constructor(t){super(),ae(this,t,Dg,Mg,oe,{pxmm:12,roomAreaEnable:0,roomNameEnable:1,room:2,hoveredRoom:13,getRoomAreaText:14,getLabelElement:3,adaptiveRoomLabelVisibleEnable:15},Pg)}}function Tg(i){ue(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 hl(i,t,e){const n=i.slice();return n[12]=t[e],n}function ul(i){let t,e=[],n=new Map,s,o,r,a=i[8];const l=c=>c[12].id;for(let c=0;c<a.length;c+=1){let d=hl(i,a,c),h=l(d);n.set(h,e[c]=fl(h,d))}return{c(){t=x("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){B(c,t,d);for(let h=0;h<e.length;h+=1)e[h]&&e[h].m(t,null);s=!0,o||(r=[$t(Pi.call(null,t)),be(t,"clientWidth",i[11])],o=!0)},p(c,d){d&447&&(a=c[8],de(),e=jt(e,d,l,1,c,a,n,t,vn,fl,null,hl),he())},i(c){if(!s){for(let d=0;d<a.length;d+=1)M(e[d]);s=!0}},o(c){for(let d=0;d<e.length;d+=1)j(e[d]);s=!1},d(c){c&&O(t);for(let d=0;d<e.length;d+=1)e[d].d();o=!1,Je(r)}}}function fl(i,t){let e,n,s;const o=[{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<o.length;a+=1)r=et(r,o[a]);return n=new Sg({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&447?lt(o,[{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){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function Lg(i){let t,e,n=i[8]&&ul(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[8]?n?(n.p(s,o),o&256&&M(n,1)):(n=ul(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function jg(i,t,e){let n,{floorIndex:s}=t,{roomAreaEnable:o}=t,{roomNameEnable:r}=t,{floorplanData:a}=t,{hoveredRoom:l}=t,{getRoomAreaText:c}=t,{getLabelElement:d}=t,{adaptiveRoomLabelVisibleEnable:h}=t,u=0,m=0;const A=p=>{e(6,u=p.detail)};return i.$$set=p=>{"floorIndex"in p&&e(9,s=p.floorIndex),"roomAreaEnable"in p&&e(0,o=p.roomAreaEnable),"roomNameEnable"in p&&e(1,r=p.roomNameEnable),"floorplanData"in p&&e(10,a=p.floorplanData),"hoveredRoom"in p&&e(2,l=p.hoveredRoom),"getRoomAreaText"in p&&e(3,c=p.getRoomAreaText),"getLabelElement"in p&&e(4,d=p.getLabelElement),"adaptiveRoomLabelVisibleEnable"in p&&e(5,h=p.adaptiveRoomLabelVisibleEnable)},i.$$.update=()=>{if(i.$$.dirty&1536&&e(8,n=a.floorDatas[s].rooms),i.$$.dirty&1088){const{max:p,min:g}=a.bounding,b=p.x-g.x;e(7,m=u/b)}},[o,r,l,c,d,h,u,m,n,s,a,A]}class zg extends le{constructor(t){super(),ae(this,t,jg,Lg,oe,{floorIndex:9,roomAreaEnable:0,roomNameEnable:1,floorplanData:10,hoveredRoom:2,getRoomAreaText:3,getLabelElement:4,adaptiveRoomLabelVisibleEnable:5},Tg)}}function Og(i){ue(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 ml(i,t,e){const n=i.slice();return n[11]=t[e],n[13]=e,n}function gl(i,t,e){const n=i.slice();return n[14]=t[e],n}function pl(i){let t;return{c(){t=x("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){B(e,t,n)},p:J,d(e){e&&O(t)}}}function Al(i,t){let e,n,s=t[1](t[11].distance)+"",o,r;return{key:i,first:null,c(){e=x("div"),n=x("div"),o=Me(s),r=ee(),w(n,"class","floorplan-plugin__rule-text svelte-djlmk4"),K(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){B(a,e,l),D(e,n),D(n,o),D(e,r)},p(a,l){t=a,l&2&&s!==(s=t[1](t[11].distance)+"")&&Oe(o,s)},d(a){a&&O(e)}}}function Bg(i){let t,e,n,s,o,r,a=[],l=new Map,c,d=i[3],h=[];for(let A=0;A<d.length;A+=1)h[A]=pl(gl(i,d,A));let u=i[4];const m=A=>A[13];for(let A=0;A<u.length;A+=1){let p=ml(i,u,A),g=m(p);l.set(g,a[A]=Al(g,p))}return{c(){t=x("div"),e=x("div"),n=ee(),s=x("div");for(let A=0;A<h.length;A+=1)h[A].c();o=ee(),r=x("div");for(let A=0;A<a.length;A+=1)a[A].c();w(e,"class","floorplan-plugin__rule-line svelte-djlmk4"),w(s,"class","floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),K(s,"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"),K(t,"is-row",i[2]),z(t,"width",i[2]?"100%":1/16+"rem"),z(t,"height",i[2]?1/16+"rem":"100%")},m(A,p){B(A,t,p),D(t,e),D(t,n),D(t,s);for(let g=0;g<h.length;g+=1)h[g]&&h[g].m(s,null);D(t,o),D(t,r);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(r,null)},p(A,[p]){if(p&8){d=A[3];let g;for(g=0;g<d.length;g+=1){const b=gl(A,d,g);h[g]?h[g].p(b,p):(h[g]=pl(b),h[g].c(),h[g].m(s,null))}for(;g<h.length;g+=1)h[g].d(1);h.length=d.length}p&22&&(u=A[4],a=jt(a,p,m,1,A,u,l,r,wa,Al,null,ml)),p&1&&c!==(c="floorplan-plugin__rule-labels floorplan-plugin__rule-labels--"+A[0]+" svelte-djlmk4")&&w(t,"class",c),p&5&&K(t,"is-row",A[2])},i:J,o:J,d(A){A&&O(t),Tt(h,A);for(let p=0;p<a.length;p+=1)a[p].d()}}}const qn=1e3,Kn=180;function Vg(i,t,e){let{type:n}=t,{data:s}=t,{bounding:o}=t,{getRuleDistanceText:r}=t;const a=n==="top"||n==="bottom",l=o.max.x-o.min.x-(qn-Kn)*2,c=o.max.y-o.min.y-(qn-Kn)*2,d=s.map(([A,p])=>a?[A.x,p.x]:[A.y,p.y]).flat().sort().filter((A,p,g)=>p===0?!0:A!==g[p-1]),h=d.map(A=>{const p=a?(A-o.min.x-qn+Kn)/l:0,g=a?0:(A-o.min.y-qn+Kn)/c;return{left:p,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((A,p,g)=>{const b=p===0?0:A-g[p-1],y=p===0?0:(A+g[p-1])/2,I=a?(y-o.min.x-qn+Kn)/l:0,k=a?0:(y-o.min.y-qn+Kn)/c;return{left:I,bottom:k,distance:b}}).filter(({distance:A})=>A/u>.1);return i.$$set=A=>{"type"in A&&e(0,n=A.type),"data"in A&&e(5,s=A.data),"bounding"in A&&e(6,o=A.bounding),"getRuleDistanceText"in A&&e(1,r=A.getRuleDistanceText)},[n,r,a,h,m,s,o]}class Rg extends le{constructor(t){super(),ae(this,t,Vg,Bg,oe,{type:0,data:5,bounding:6,getRuleDistanceText:1},Og)}}function Qg(i){ue(i,"svelte-1mzj9p3",".floorplan-plugin__rule-labels-wrapper.svelte-1mzj9p3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}")}function vl(i,t,e){const n=i.slice();return n[13]=t[e][0],n[14]=t[e][1],n}function bl(i,t){let e,n,s;const o=[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}];let r={};for(let a=0;a<o.length;a+=1)r=et(r,o[a]);return n=new Rg({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&19?lt(o,[{type:t[13],data:t[14],bounding:t[1],getRuleDistanceText:t[0]}]):{};n.$set(c)},i(a){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function Gg(i){let t,e=[],n=new Map,s,o=i[4];const r=a=>a[13];for(let a=0;a<o.length;a+=1){let l=vl(i,o,a),c=r(l);n.set(c,e[a]=bl(c,l))}return{c(){t=x("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){B(a,t,l);for(let c=0;c<e.length;c+=1)e[c]&&e[c].m(t,null);s=!0},p(a,[l]){l&19&&(o=a[4],de(),e=jt(e,l,r,1,a,o,n,t,vn,bl,null,vl),he()),l&8&&z(t,"width",a[3]),l&4&&z(t,"height",a[2])},i(a){if(!s){for(let l=0;l<o.length;l+=1)M(e[l]);s=!0}},o(a){for(let l=0;l<e.length;l+=1)j(e[l]);s=!1},d(a){a&&O(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}const yl=1e3,wl=180;function Ng(i,t,e){let n,s,o,r,a,l,c,d,h,u,{floorIndex:m}=t,{floorplanData:A}=t,{getRuleDistanceText:p}=t;return i.$$set=g=>{"floorIndex"in g&&e(5,m=g.floorIndex),"floorplanData"in g&&e(6,A=g.floorplanData),"getRuleDistanceText"in g&&e(0,p=g.getRuleDistanceText)},i.$$.update=()=>{i.$$.dirty&64&&e(1,n=A.bounding),i.$$.dirty&96&&e(11,s=A.floorDatas[m].rules),i.$$.dirty&2048&&e(12,o=Object.keys(s)),i.$$.dirty&6144&&e(4,r=o.map(g=>[g,s[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-(yl-wl)*2),i.$$.dirty&2&&e(8,d=n.max.y-n.min.y-(yl-wl)*2),i.$$.dirty&1536&&e(3,h=c/a*100+"%"),i.$$.dirty&384&&e(2,u=d/l*100+"%")},[p,n,u,h,r,m,A,l,d,a,c,s,o]}class Hg extends le{constructor(t){super(),ae(this,t,Ng,Gg,oe,{floorIndex:5,floorplanData:6,getRuleDistanceText:0},Qg)}}function Io(i,t={}){let e="";const{needZ:n,needA:s}=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):s!=null&&s[a]?(e+="A"+s[a]+","+d,e):(e+="L"+d,e)}),e+(n?"Z":"")}function Hh({x:i,y:t},e){const{max:n,min:s}=e;return{x:i-s.x,y:n.y-t}}function _g(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 Wg(i,t){const e=t.bounding,n=e.max.x-e.min.x,s=e.max.y-e.min.y;return{x:(i.x-e.min.x)/n,y:(e.max.y-i.y)/s}}function Fg(i,t){return Math.max(...t.work.observers.map(n=>i.z>=n.standingPosition.z?n.floorIndex:0))}function Yg(i){let t;return{c(){t=ze("path"),w(t,"d",i[0]),w(t,"fill","#2F313A")},m(e,n){B(e,t,n)},p(e,[n]){n&1&&w(t,"d",e[0])},i:J,o:J,d(e){e&&O(t)}}}function Ug(i,t,e){let n,{path:s}=t;return i.$$set=o=>{"path"in o&&e(1,s=o.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Io(s,{needZ:!0}))},[n,s]}class Xg extends le{constructor(t){super(),ae(this,t,Ug,Yg,oe,{path:1})}}function Zg(i){let t,e,n,s,o,r;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),s=ze("path"),o=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(s,"d",i[2]),w(s,"stroke","#ffffff"),w(s,"stroke-opacity","0.06"),w(s,"stroke-width","0.5"),w(s,"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){B(a,t,l),D(t,e),D(e,n),D(e,s),B(a,o,l),B(a,r,l)},p(a,[l]){l&1&&w(r,"d",a[0])},i:J,o:J,d(a){a&&O(t),a&&O(o),a&&O(r)}}}const Ir=6;function Jg(i,t,e){let n,{path:s}=t;const o=Ir*2,r=`M0 ${Ir} h ${o} M${Ir} 0 v ${o}`;return i.$$set=a=>{"path"in a&&e(3,s=a.path)},i.$$.update=()=>{i.$$.dirty&8&&e(0,n=Io(s,{needZ:!0}))},[n,o,r,s]}class qg extends le{constructor(t){super(),ae(this,t,Jg,Zg,oe,{path:3})}}function Kg(i){let t,e,n,s,o,r,a,l,c,d,h;return{c(){t=ze("defs"),e=ze("pattern"),n=ze("rect"),s=ze("pattern"),o=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(o,"x","0"),w(o,"y","0"),w(o,"width","6"),w(o,"height","50"),w(o,"fill","none"),w(o,"stroke","#4B4B57"),w(o,"stroke-width","0.5"),w(s,"id","room-material-pattern-2"),w(s,"x","6"),w(s,"y","25"),w(s,"width","12"),w(s,"height","50"),w(s,"patternUnits","userSpaceOnUse"),w(s,"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){B(u,t,m),D(t,e),D(e,n),D(t,s),D(s,o),B(u,r,m),B(u,a,m),B(u,l,m),B(u,c,m),B(u,d,m),B(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:J,o:J,d(u){u&&O(t),u&&O(r),u&&O(a),u&&O(l),u&&O(c),u&&O(d),u&&O(h)}}}function $g(i,t,e){let n,{path:s}=t;return i.$$set=o=>{"path"in o&&e(1,s=o.path)},i.$$.update=()=>{i.$$.dirty&2&&e(0,n=Io(s,{needZ:!0}))},[n,s]}class ep extends le{constructor(t){super(),ae(this,t,$g,Kg,oe,{path:1})}}function tp(i){ue(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 Cl(i,t,e){const n=i.slice();return n[5]=t[e],n}function np(i){let t,e;return t=new qg({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function ip(i){let t,e;return t=new ep({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function sp(i){let t,e;return t=new Xg({props:{path:i[5].path}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.path=n[5].path),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function Il(i){let t,e,n,s;const o=[sp,ip,np],r=[];function a(l,c){return l[5].floorType===1?0:l[5].floorType===0?1:2}return e=a(i),n=r[e]=o[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){B(l,t,c),r[e].m(t,null),s=!0},p(l,c){let d=e;e=a(l),e===d?r[e].p(l,c):(de(),j(r[d],1,1,()=>{r[d]=null}),he(),n=r[e],n?n.p(l,c):(n=r[e]=o[e](l),n.c()),M(n,1),n.m(t,null))},i(l){s||(M(n),s=!0)},o(l){j(n),s=!1},d(l){l&&O(t),r[e].d()}}}function op(i){let t,e,n=i[0],s=[];for(let r=0;r<n.length;r+=1)s[r]=Il(Cl(i,n,r));const o=r=>j(s[r],1,1,()=>{s[r]=null});return{c(){t=x("div");for(let r=0;r<s.length;r+=1)s[r].c();w(t,"class","floorplan-plugin__room-material svelte-1dykexu")},m(r,a){B(r,t,a);for(let l=0;l<s.length;l+=1)s[l]&&s[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=Cl(r,n,l);s[l]?(s[l].p(c,a),M(s[l],1)):(s[l]=Il(c),s[l].c(),M(s[l],1),s[l].m(t,null))}for(de(),l=n.length;l<s.length;l+=1)o(l);he()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)M(s[a]);e=!0}},o(r){s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)j(s[a]);e=!1},d(r){r&&O(t),Tt(s,r)}}}function rp(i,t,e){let n,{floorIndex:s}=t,{floorplanData:o}=t;const r=o.bounding.max.x-o.bounding.min.x,a=o.bounding.max.y-o.bounding.min.y;return i.$$set=l=>{"floorIndex"in l&&e(3,s=l.floorIndex),"floorplanData"in l&&e(4,o=l.floorplanData)},i.$$.update=()=>{i.$$.dirty&24&&e(0,n=o.floorDatas[s].rooms.map(l=>Ae(H({},l),{path:l.path.map(c=>Hh(c,o.bounding))})))},[n,r,a,s,o]}class ap extends le{constructor(t){super(),ae(this,t,rp,op,oe,{floorIndex:3,floorplanData:4},tp)}}function lp(i){ue(i,"svelte-qq2273","path.svelte-qq2273{--opacity:0;opacity:var(--opacity)}path.svelte-qq2273:hover{opacity:calc(var(--opacity) + 0.1)}")}function cp(i){let t,e,n,s;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(o,r){B(o,t,r),n||(s=[be(t,"mouseenter",i[3]),be(t,"mouseleave",i[4])],n=!0)},p(o,[r]){r&4&&w(t,"style",o[2]),r&3&&e!==(e=`${o[1]}_${o[0].id}`)&&w(t,"id",e)},i:J,o:J,d(o){o&&O(t),n=!1,Je(s)}}}function dp(i,t,e){let n,s,{room:o}=t,{floorIndex:r}=t,{floorplanData:a}=t,{highlightData:l}=t,{hoveredRoom:c}=t;function d(){c==null||c.set(o)}function h(){c==null||c.set(void 0)}const{bounding:u}=a,m=Io(o.path,{needZ:!0,format:A=>Hh(A,u)});return i.$$set=A=>{"room"in A&&e(0,o=A.room),"floorIndex"in A&&e(1,r=A.floorIndex),"floorplanData"in A&&e(6,a=A.floorplanData),"highlightData"in A&&e(7,l=A.highlightData),"hoveredRoom"in A&&e(8,c=A.hoveredRoom)},i.$$.update=()=>{i.$$.dirty&131&&e(9,n=l[`${r}_${o.id}`]),i.$$.dirty&512&&e(2,s=n?`fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled?"none":"auto"}`:null)},[o,r,s,d,h,m,a,l,c,n]}class hp extends le{constructor(t){super(),ae(this,t,dp,cp,oe,{room:0,floorIndex:1,floorplanData:6,highlightData:7,hoveredRoom:8},lp)}}function up(i){ue(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 Pl(i,t,e){const n=i.slice();return n[6]=t[e],n}function El(i,t){let e,n,s;const o=[{room:t[6],floorplanData:t[1],hoveredRoom:t[3],floorIndex:t[0],highlightData:t[2]}];let r={};for(let a=0;a<o.length;a+=1)r=et(r,o[a]);return n=new hp({props:r}),{key:i,first:null,c(){e=Pe(),ie(n.$$.fragment),this.first=e},m(a,l){B(a,e,l),te(n,a,l),s=!0},p(a,l){t=a;const c=l&15?lt(o,[{room:t[6],floorplanData:t[1],hoveredRoom:t[3],floorIndex:t[0],highlightData:t[2]}]):{};n.$set(c)},i(a){s||(M(n.$$.fragment,a),s=!0)},o(a){j(n.$$.fragment,a),s=!1},d(a){a&&O(e),ne(n,a)}}}function fp(i){let t,e,n=[],s=new Map,o,r=i[1].floorDatas[i[0]].rooms;const a=l=>l[6].id;for(let l=0;l<r.length;l+=1){let c=Pl(i,r,l),d=a(c);s.set(d,n[l]=El(d,c))}return{c(){t=x("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){B(l,t,c),D(t,e);for(let d=0;d<n.length;d+=1)n[d]&&n[d].m(e,null);o=!0},p(l,[c]){c&15&&(r=l[1].floorDatas[l[0]].rooms,de(),n=jt(n,c,a,1,l,r,s,e,vn,El,null,Pl),he())},i(l){if(!o){for(let c=0;c<r.length;c+=1)M(n[c]);o=!0}},o(l){for(let c=0;c<n.length;c+=1)j(n[c]);o=!1},d(l){l&&O(t);for(let c=0;c<n.length;c+=1)n[c].d()}}}function mp(i,t,e){let{floorIndex:n}=t,{floorplanData:s}=t,{highlightData:o}=t,{hoveredRoom:r}=t;const a=s.bounding.max.x-s.bounding.min.x,l=s.bounding.max.y-s.bounding.min.y;return i.$$set=c=>{"floorIndex"in c&&e(0,n=c.floorIndex),"floorplanData"in c&&e(1,s=c.floorplanData),"highlightData"in c&&e(2,o=c.highlightData),"hoveredRoom"in c&&e(3,r=c.hoveredRoom)},[n,s,o,r,a,l]}class _h extends le{constructor(t){super(),ae(this,t,mp,fp,oe,{floorIndex:0,floorplanData:1,highlightData:2,hoveredRoom:3},up)}}function gp(i){ue(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 kl(i){let t,e;const n=[{floorIndex:i[1],floorplanData:i[8],hoveredRoom:i[14],highlightData:i[13]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new _h({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&24834?lt(n,[{floorIndex:o[1],floorplanData:o[8],hoveredRoom:o[14],highlightData:o[13]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function Ml(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 s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new zg({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&22370?lt(n,[{floorplanData:o[8],roomAreaEnable:o[5],roomNameEnable:o[6],floorIndex:o[1],getRoomAreaText:o[9],getLabelElement:o[10],hoveredRoom:o[14],adaptiveRoomLabelVisibleEnable:o[12]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function xl(i){let t,e;const n=[{floorplanData:i[8],floorIndex:i[1],getRuleDistanceText:i[11]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new Hg({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&2306?lt(n,[{floorplanData:o[8],floorIndex:o[1],getRuleDistanceText:o[11]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function pp(i){let t,e,n,s,o,r,a,l,c;const d=[{floorIndex:i[1],floorplanData:i[8]}];let h={};for(let b=0;b<d.length;b+=1)h=et(h,d[b]);e=new ap({props:h});let u=(i[2]||i[3])&&kl(i);const m=[{floorplanData:i[8],floorIndex:i[1]}];let A={};for(let b=0;b<m.length;b+=1)A=et(A,m[b]);o=new Nh({props:A});let p=i[4]&&Ml(i),g=i[7]&&xl(i);return{c(){t=x("div"),ie(e.$$.fragment),n=ee(),u&&u.c(),s=ee(),ie(o.$$.fragment),r=ee(),p&&p.c(),a=ee(),g&&g.c(),w(t,"class",l=Re(`floorplan-plugin__floor${i[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz")},m(b,y){B(b,t,y),te(e,t,null),D(t,n),u&&u.m(t,null),D(t,s),te(o,t,null),D(t,r),p&&p.m(t,null),D(t,a),g&&g.m(t,null),c=!0},p(b,[y]){const I=y&258?lt(d,[{floorIndex:b[1],floorplanData:b[8]}]):{};e.$set(I),b[2]||b[3]?u?(u.p(b,y),y&12&&M(u,1)):(u=kl(b),u.c(),M(u,1),u.m(t,s)):u&&(de(),j(u,1,1,()=>{u=null}),he());const k=y&258?lt(m,[{floorplanData:b[8],floorIndex:b[1]}]):{};o.$set(k),b[4]?p?(p.p(b,y),y&16&&M(p,1)):(p=Ml(b),p.c(),M(p,1),p.m(t,a)):p&&(de(),j(p,1,1,()=>{p=null}),he()),b[7]?g?(g.p(b,y),y&128&&M(g,1)):(g=xl(b),g.c(),M(g,1),g.m(t,null)):g&&(de(),j(g,1,1,()=>{g=null}),he()),(!c||y&1&&l!==(l=Re(`floorplan-plugin__floor${b[0]?" floorplan-plugin__floor--is-current":""}`)+" svelte-bl8zrz"))&&w(t,"class",l)},i(b){c||(M(e.$$.fragment,b),M(u),M(o.$$.fragment,b),M(p),M(g),c=!0)},o(b){j(e.$$.fragment,b),j(u),j(o.$$.fragment,b),j(p),j(g),c=!1},d(b){b&&O(t),ne(e),u&&u.d(),ne(o),p&&p.d(),g&&g.d()}}}function Ap(i,t,e){let{isCurrent:n}=t,{floorIndex:s}=t,{highlightEnable:o}=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:A}=t,{adaptiveRoomLabelVisibleEnable:p}=t,{highlightData:g}=t;const b=Pa(void 0);return i.$$set=y=>{"isCurrent"in y&&e(0,n=y.isCurrent),"floorIndex"in y&&e(1,s=y.floorIndex),"highlightEnable"in y&&e(2,o=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,A=y.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in y&&e(12,p=y.adaptiveRoomLabelVisibleEnable),"highlightData"in y&&e(13,g=y.highlightData)},[n,s,o,r,a,l,c,d,h,u,m,A,p,g,b]}let vp=class extends le{constructor(t){super(),ae(this,t,Ap,pp,oe,{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},gp)}};function bp(i){ue(i,"svelte-86bqav",".floorplan-main.svelte-86bqav{width:100%;height:100%;pointer-events:none}")}function Dl(i,t,e){const n=i.slice();return n[21]=t[e],n}function Sl(i){let t,e,n,s,o,r=i[13].floorDatas,a=[];for(let h=0;h<r.length;h+=1)a[h]=Tl(Dl(i,r,h));const l=h=>j(a[h],1,1,()=>{a[h]=null});let c=i[5]&&Ll(i),d=i[8]&&jl(i);return{c(){t=x("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){B(h,t,u);for(let m=0;m<a.length;m+=1)a[m]&&a[m].m(t,null);D(t,e),c&&c.m(t,null),D(t,n),d&&d.m(t,null),o=!0},p(h,u){if(i=h,u&2047696){r=i[13].floorDatas;let m;for(m=0;m<r.length;m+=1){const A=Dl(i,r,m);a[m]?(a[m].p(A,u),M(a[m],1)):(a[m]=Tl(A),a[m].c(),M(a[m],1),a[m].m(t,e))}for(de(),m=r.length;m<a.length;m+=1)l(m);he()}i[5]?c?(c.p(i,u),u&32&&M(c,1)):(c=Ll(i),c.c(),M(c,1),c.m(t,n)):c&&(de(),j(c,1,1,()=>{c=null}),he()),i[8]?d?(d.p(i,u),u&256&&M(d,1)):(d=jl(i),d.c(),M(d,1),d.m(t,null)):d&&(de(),j(d,1,1,()=>{d=null}),he())},i(h){if(!o){for(let u=0;u<r.length;u+=1)M(a[u]);M(c),M(d),s||Ne(()=>{s=On(t,tt,{duration:i[0],easing:en}),s.start()}),o=!0}},o(h){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)j(a[u]);j(c),j(d),o=!1},d(h){h&&O(t),Tt(a,h),c&&c.d(),d&&d.d()}}}function Tl(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 s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new vp({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&2047696?lt(n,[r&2047680&&{hoverEnable:o[6],highlightEnable:o[7],floorplanData:o[13],getRoomAreaText:o[16],getLabelElement:o[17],getRuleDistanceText:o[18],roomLabelsEnable:o[9],roomAreaEnable:o[10],roomNameEnable:o[11],ruleLabelsEnable:o[12],adaptiveRoomLabelVisibleEnable:o[19],highlightData:o[20]},r&8192&&{floorIndex:o[21].floorIndex},r&8208&&{isCurrent:o[21].floorIndex===o[4]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function Ll(i){let t,e;const n=[{panoIndex:i[3],floorplanData:i[13],lastPanoramaLongitude:i[14],cameraImageUrl:i[15]}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new ig({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&57352?lt(n,[{panoIndex:o[3],floorplanData:o[13],lastPanoramaLongitude:o[14],cameraImageUrl:o[15]}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function jl(i){let t,e;return t=new dg({props:{floorplanData:i[13],northDesc:i[2]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&8192&&(o.floorplanData=n[13]),s&4&&(o.northDesc=n[2]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function yp(i){let t,e,n=i[1]&&Sl(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[1]?n?(n.p(s,o),o&2&&M(n,1)):(n=Sl(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function wp(i,t,e){let{duration:n=0}=t,{visible:s}=t,{northDesc:o}=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:A}=t,{ruleLabelsEnable:p}=t,{floorplanData:g}=t,{lastPanoramaLongitude:b}=t,{cameraImageUrl:y}=t,{getRoomAreaText:I}=t,{getLabelElement:k}=t,{getRuleDistanceText:T}=t,{adaptiveRoomLabelVisibleEnable:P}=t,{highlightData:V}=t;return i.$$set=L=>{"duration"in L&&e(0,n=L.duration),"visible"in L&&e(1,s=L.visible),"northDesc"in L&&e(2,o=L.northDesc),"panoIndex"in L&&e(3,r=L.panoIndex),"floorIndex"in L&&e(4,a=L.floorIndex),"cameraEnable"in L&&e(5,l=L.cameraEnable),"hoverEnable"in L&&e(6,c=L.hoverEnable),"highlightEnable"in L&&e(7,d=L.highlightEnable),"compassEnable"in L&&e(8,h=L.compassEnable),"roomLabelsEnable"in L&&e(9,u=L.roomLabelsEnable),"roomAreaEnable"in L&&e(10,m=L.roomAreaEnable),"roomNameEnable"in L&&e(11,A=L.roomNameEnable),"ruleLabelsEnable"in L&&e(12,p=L.ruleLabelsEnable),"floorplanData"in L&&e(13,g=L.floorplanData),"lastPanoramaLongitude"in L&&e(14,b=L.lastPanoramaLongitude),"cameraImageUrl"in L&&e(15,y=L.cameraImageUrl),"getRoomAreaText"in L&&e(16,I=L.getRoomAreaText),"getLabelElement"in L&&e(17,k=L.getLabelElement),"getRuleDistanceText"in L&&e(18,T=L.getRuleDistanceText),"adaptiveRoomLabelVisibleEnable"in L&&e(19,P=L.adaptiveRoomLabelVisibleEnable),"highlightData"in L&&e(20,V=L.highlightData)},[n,s,o,r,a,l,c,d,h,u,m,A,p,g,b,y,I,k,T,P,V]}let Ea=class extends le{constructor(t){super(),ae(this,t,wp,yp,oe,{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},bp)}};const Cp="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 Ip(i){return U(this,null,function*(){const t=new Headers({"Content-Type":"text/plain"}),e=function(s){return U(this,null,function*(){const o={index:s.index,url:s.url,svgUrl:s.svg_url};if(s.svg_url){const r=yield fetch(s.svg_url,{headers:t}).then(a=>a.text());o.svgContent=r}return o})};return yield Promise.all(i.map(e))})}function Pp(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 Ep(i){return{floorName:i.floor_name,floorIndex:i.floor_index,rooms:i.rooms.map(Pp),rules:i.rules}}function kp(i){return{index:i.index,floorIndex:i.floor_index,position:i.position,positionInImage:i.position_in_image}}function Mp(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 gn(i){return U(this,null,function*(){const t=yield Ip(i.outlines),e=i.computed_data.bounding,n=i.computed_data.floor_datas.map(Ep),s=i.computed_data.entrance?Mp(i.computed_data.entrance):null;return{outlines:t,entrance:s,bounding:e,floorDatas:n,observers:i.computed_data.observers.map(kp)}})}function xp(i,t,e){return i.map(s=>{const o=s.position,r=s.icon?s.icon:{url:Cp,width:45,height:48},a=Fg(o,t),l=_g(o,e),c=Wg(l,e);return{floorIndex:a,icon:r,id:s.id,position:l,positionInImage:c}})}function Dp(i,t){return t(i),i}function Po(i,t){return Dp({},e=>{for(const n in i)t.indexOf(n)===-1&&(e[n]=i[n])})}function zl(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 ka(i,t,e=hn.BOUNDING_CENTER){const n=zl(i,t),s=zl(i,t+1);return e===hn.BOUNDING_CENTER?(i.model.bounding.max.y+i.model.bounding.min.y)/2:e===hn.CEILING?s:n}function Ma(i,t,e,n){const s=ka(i,e,n==null?void 0:n.attachedTo),o=new E.Vector3(0,s,0),r=new E.Vector3(1,s,0),a=o.clone().project(i.camera),l=r.clone().project(i.camera);return Math.abs((l.x-a.x)/1e3)*(t.getBoundingClientRect().width/2)}let rs=class{constructor(t,e){f(this,"VERSION","2.22.0-dev.3");f(this,"five");f(this,"hooks",new pi);f(this,"staticPrefix","//vr-image-4.realsee-cdn.cn");this.five=t,e!=null&&e.staticPrefix&&(this.staticPrefix=e.staticPrefix)}getCurrentState(){return this.state}absoluteUrl(t){return ha(this.staticPrefix,t)}},Bn=class extends rs{};var wt=(i=>(i.UnknownError="UnknownError",i.DataNotLoaded="DataNotLoaded",i.BreakOffByHide="BreakOffByHide",i.BreakOffByDisable="BreakOffByDisable",i.ModelNotLoaded="ModelNotLoaded",i.ChangeModeError="ChangeModeError",i.UpdateCameraError="UpdateCameraError",i))(wt||{});const Wh=500,Sp=80;function Xr(i,t,e=4){return Math.floor(i*Math.pow(10,e))===Math.floor(t*Math.pow(10,e))}function xa(i,t){return U(this,null,function*(){const[e]=yield di(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 s=i.getCurrentState();if(!Tp(n,s))throw new Error("pose 与预期不符")})}function Tp(i,t){return Object.keys(i).every(e=>{const n=t[e];if(n===void 0)return!0;const s=i[e];return typeof n=="number"&&typeof s=="number"?Xr(n,s,2):n===s})}function Da(i,t){if(i.currentMode!==t.mode)return!1;const{latitude:e,longitude:n,fov:s}=t,{latitude:o,longitude:r}=i.getCurrentState(),a=i.camera.fov;return!(!Xr(e,o,2)||!Xr(n,r,2)||s!==a)}function Fh(i,t,e=!0){return U(this,null,function*(){if(Da(i,t)===!0)return;const s=i.getCurrentState();if(s.mode!==t.mode){const[d]=yield di(xa(i,[t.mode,t,void 0,e]));if(d)throw new Error(wt.ChangeModeError);return}const{latitude:o,longitude:r,fov:a}=s,l=Math.min(1e3,Math.max(200,Math.abs(o-Math.PI/2)*1e3,(r>Math.PI?2*Math.PI-r:r)*500,Math.abs(a-t.fov)*10)),[c]=yield di(i.updateCamera(t,l,e));if(c)throw new Error(wt.UpdateCameraError)})}function ui(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(s=>n.addEventListener("transitionend",s,{once:!0})),new Promise(s=>setTimeout(s,e))]).then(()=>{n.style.transition="none"}))}function Lp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,s=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||s}function jp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,s=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&s}let zp=class extends Bn{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)=>U(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const s=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},s),this._show(e)}));f(this,"hide",(...n)=>U(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||!Da(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(s=this.showRejection)==null||s.call(this,wt.BreakOffByDisable),this.showPromise=void 0,(o=this.app)==null||o.$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=>U(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(wt.ModelNotLoaded);if(!this.data)throw new Error(wt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},s=H(H({},n),e),o=()=>U(this,null,function*(){this.hooks.emit("show",{userAction:s.userAction,auto:s.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield di(Fh(this.five,this.showState,s.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(wt.UnknownError);this.updateSize(),this.floorIndex=s.floorIndex,this.five.model.show(this.floorIndex);const d=s.modelOpacity,h=s.immediately?0:Wh;ui(this.five,d,h),this.render(h)});return this.showPromise=o().then(()=>{this.hooks.emit("showAnimationEnded",{auto:s.isAutoShow,userAction:s.userAction})}).catch(a=>{if(this.updateState({visible:!1},s.userAction),!s.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var o;(o=this.showRejection)==null||o.call(this,wt.BreakOffByHide),this.showPromise=void 0;const s=H(H({},{userAction:!0,isAutoHide:!1}),e);ui(this.five,1,0),this.hooks.emit("hide",{auto:s.isAutoHide,userAction:s.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 s=this.five.getCurrentState();s.mode==="Floorplan"&&(this.state.visible||jp(s)&&(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 s=this.five.getCurrentState();Lp(s)&&(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:Sp/((a=n==null?void 0:n.scale)!=null?a:1)};const s={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,adaptiveRoomLabelVisibleEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,getRoomAreaText:l=>(l/1e6).toFixed(1)+"㎡",getRuleDistanceText:l=>l.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled&&(e.enabled?this._enable({userAction:o}):this._disable({userAction:o})),e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}this.render()}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}updateState(e,n){const s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Op=(i,t)=>new zp(i,t);function Bp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)>5*Math.PI/180,s=e>5*(Math.PI/180)&&e<355*(Math.PI/180);return n||s}function Vp(i){const{latitude:t,longitude:e}=i,n=Math.abs(t-Math.PI/2)<10*Math.PI/180,s=e<30*(Math.PI/180)||e>330*(Math.PI/180);return n&&s}let Rp=class extends Bn{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)=>U(this,[...n],function*(e={}){if(!this.state.enabled||!this.showPromise&&this.state.visible)return;const s=e.userAction!==void 0?e.userAction:!0;this.updateState({visible:!0},s),this._show(e)}));f(this,"hide",(...n)=>U(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||!Da(this.five,this.showState)||!this.container||!this.wrapper)return;const{min:e,max:n}=this.data.bounding,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o,r;const{userAction:n}=e;this.hooks.emit("disable",{userAction:n}),(s=this.showRejection)==null||s.call(this,wt.BreakOffByDisable),this.showPromise=void 0,(o=this.app)==null||o.$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=>U(this,null,function*(){var r;if(!this.state.enabled)return;if(!((r=this.five.model)!=null&&r.loaded))throw new Error(wt.ModelNotLoaded);if(!this.data)throw new Error(wt.DataNotLoaded);this.isHiddenByHideFunc=!1;const n={floorIndex:this.floorIndex,modelOpacity:this.state.config.modelOpacity,immediately:!1,isAutoShow:!1,userAction:!0},s=H(H({},n),e),o=()=>U(this,null,function*(){this.hooks.emit("show",{userAction:s.userAction,auto:s.isAutoShow});let a=!1,l;this.showRejection=u=>{a=!0,l=u};const[c]=yield di(Fh(this.five,this.showState,s.userAction));if(c)throw c;if(a)throw l?new Error(l):new Error(wt.UnknownError);this.updateSize(),this.updatePosition(),this.floorIndex=s.floorIndex,this.five.model.show(this.floorIndex);const d=s.modelOpacity,h=s.immediately?0:Wh;ui(this.five,d,h),this.render(h)});return this.showPromise=o().then(()=>{this.hooks.emit("showAnimationEnded",{auto:s.isAutoShow,userAction:s.userAction})}).catch(a=>{if(this.updateState({visible:!1},s.userAction),!s.isAutoShow&&a instanceof Error)throw a}).finally(()=>{this.showPromise=void 0,this.showRejection=void 0}),this.showPromise}));f(this,"_hide",e=>{var o;(o=this.showRejection)==null||o.call(this,wt.BreakOffByHide),this.showPromise=void 0;const s=H(H({},{userAction:!0,isAutoHide:!1}),e);ui(this.five,1,0),this.hooks.emit("hide",{auto:s.isAutoHide,userAction:s.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 s=this.five.getCurrentState();this.updatePosition(),this.updateSize(),Bp(s)&&(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 s=this.five.getCurrentState();return s.mode!==this.showState.mode||this.state.visible?void 0:(Vp(s)&&(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 s={northDesc:"北",modelOpacity:1,cameraEnable:!0,highlightEnable:!1,hoverEnable:!0,compassEnable:!0,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled&&(e.enabled?this._enable({userAction:o}):this._disable({userAction:o})),e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}updatePosition(){var a;const e=ka(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 s=n.clone().project(this.five.camera),o=(s.x+1)/2,r=-(s.y-1)/2;this.container.style.left=o*100+"%",this.container.style.top=r*100+"%"}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}updateState(e,n){const s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Qp=(i,t)=>new Rp(i,t);let Gp=class extends Bn{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,s=n.x-e.x,o=n.y-e.y,r=this.state.config.attachedTo?{attachedTo:this.state.config.attachedTo}:void 0,a=Ma(this.five,this.wrapper,this.floorIndex,r),l=Math.ceil(s*a),c=Math.ceil(o*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 s,o;const{userAction:n}=e;(s=this.app)==null||s.$destroy(),this.app=void 0,(o=this.container)==null||o.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 s={northDesc:"北",modelOpacity:1,cameraEnable:!0,hoverEnable:!0,highlightEnable:!1,compassEnable:!0,gestureEnable:!1,autoShowEnable:!0,ruleLabelsEnable:!0,roomLabelsEnable:!0,roomAreaEnable:!0,roomNameEnable:!0,cameraImageUrl:mn,attachedTo:hn.BOUNDING_CENTER,getLabelElement:void 0,adaptiveRoomLabelVisibleEnable:!0,getRoomAreaText:a=>(a/1e6).toFixed(1)+"㎡",getRuleDistanceText:a=>a.toString()},o=n?Po(n,["selector","scale"]):{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(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=o(a)?a.data:a,c=this.data;this.data=yield gn(l),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,c),n&&this.updateState(n,s),this.render()})}updatePosition(){var a;const e=ka(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 s=n.clone().project(this.five.camera),o=(s.x+1)/2,r=-(s.y-1)/2;this.container.style.left=o*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 U(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 U(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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled){const r={userAction:o};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};e.visible?this._show(r):this._hide(r)}}changeConfigs(e,n=!0){this.updateState({config:e},n),this.render()}formatData(e){return U(this,null,function*(){return yield gn(e.data)})}_show(e){return U(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 xa(this.five,["Topview",void 0,void 0,n])),this.five.model.show(this.floorIndex),this.updatePosition(),this.updateSize();const s=500,o=this.state.config.modelOpacity;ui(this.five,o,s),this.hooks.emit("showAnimationEnded",{userAction:n,auto:!1}),this.render()})}_hide(e){return U(this,null,function*(){if(!this.state.enabled)return;const{userAction:n}=e;this.hooks.emit("hide",{userAction:n,auto:!1});const s=1,o=0;ui(this.five,s,o),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 s=this.state,o=e.config?H(H({},s.config),e.config):s.config;this.state=Ae(H(H({},this.state),e),{config:o}),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 Ea({target:this.container,intro:!0,props:n})}};const Np=(i,t)=>new Gp(i,t);function Sa(i,t=200){let e;return function(...n){e||(i(...n),e=setTimeout(function(){e=null},t))}}function Hp(i){ue(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 _p(i){let t,e,n;return{c(){t=x("div"),e=x("div"),n=x("div"),w(n,"class","plugin-radar__camera-rotate svelte-1nqrlxd"),z(n,"background-image","url("+(i[0]||mn)+")"),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(s,o){B(s,t,o),D(t,e),D(e,n)},p(s,[o]){o&1&&z(n,"background-image","url("+(s[0]||mn)+")"),(o&1||o&3)&&z(n,"transform",s[1]),o&4&&z(e,"transform",s[2])},i:J,o:J,d(s){s&&O(t)}}}function Wp(i){return`rotate(${Math.floor(i/Math.PI*180)*-1+45}deg)`}function Fp(i,t,e){let n,s,{five:o}=t,{pxmm:r}=t,{floorplanData:a}=t,{cameraImageUrl:l}=t,c=o.getCurrentState().panoIndex,d=o.getCurrentState().longitude;function h(A,p){const g=A.bounding,b=A.observers[p];if(!b)return"";const y=(g.max.x-g.min.x)*r,I=(g.max.y-g.min.y)*r,k=Math.floor(b.positionInImage.x*y),T=Math.floor(b.positionInImage.y*I);return`translate(${k}px, ${T}px)`}function u(A){e(6,c=A)}const m=Sa(A=>{e(7,d=A.longitude)},1e3/60);return vt(()=>(o.on("panoWillArrive",u),o.on("cameraDirectionUpdate",m),function(){o.off("panoWillArrive",u),o.off("cameraDirectionUpdate",m)})),i.$$set=A=>{"five"in A&&e(3,o=A.five),"pxmm"in A&&e(4,r=A.pxmm),"floorplanData"in A&&e(5,a=A.floorplanData),"cameraImageUrl"in A&&e(0,l=A.cameraImageUrl)},i.$$.update=()=>{i.$$.dirty&96&&e(2,n=h(a,c)),i.$$.dirty&128&&e(1,s=Wp(d))},[l,s,n,o,r,a,c,d]}class Yp extends le{constructor(t){super(),ae(this,t,Fp,_p,oe,{five:3,pxmm:4,floorplanData:5,cameraImageUrl:0},Hp)}}function Up(i){ue(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 Ol(i,t,e){const n=i.slice();return n[1]=t[e],n}function Bl(i,t){let e,n,s=`${t[1].icon.width/16}rem`,o=`${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=x("div"),n=x("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",s),z(n,"height",o),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){B(c,e,d),D(e,n),D(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",s),h&&z(n,"height",o),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&&O(e)}}}function Xp(i){let t,e=[],n=new Map,s=i[0];const o=r=>r[1].id;for(let r=0;r<s.length;r+=1){let a=Ol(i,s,r),l=o(a);n.set(l,e[r]=Bl(l,a))}return{c(){t=x("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){B(r,t,a);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(t,null)},p(r,[a]){a&1&&(s=r[0],e=jt(e,a,o,1,r,s,n,t,wa,Bl,null,Ol))},i:J,o:J,d(r){r&&O(t);for(let a=0;a<e.length;a+=1)e[a].d()}}}function Zp(i,t,e){let{extraObjects:n=[]}=t;return i.$$set=s=>{"extraObjects"in s&&e(0,n=s.extraObjects)},[n]}class Jp extends le{constructor(t){super(),ae(this,t,Zp,Xp,oe,{extraObjects:0},Up)}}function Vl(i){let t,e;const n=[{five:i[0],pxmm:i[1],floorIndex:i[2],floorplanData:i[4],onRoomHeightClick:i[7],highlightData:i[5],hoveredRoom:void 0}];let s={};for(let o=0;o<n.length;o+=1)s=et(s,n[o]);return t=new _h({props:s}),{c(){ie(t.$$.fragment)},m(o,r){te(t,o,r),e=!0},p(o,r){const a=r&183?lt(n,[{five:o[0],pxmm:o[1],floorIndex:o[2],floorplanData:o[4],onRoomHeightClick:o[7],highlightData:o[5],hoveredRoom:void 0}]):{};t.$set(a)},i(o){e||(M(t.$$.fragment,o),e=!0)},o(o){j(t.$$.fragment,o),e=!1},d(o){ne(t,o)}}}function qp(i){let t,e,n,s,o,r;const a=[{floorIndex:i[2],floorplanData:i[4]}];let l={};for(let d=0;d<a.length;d+=1)l=et(l,a[d]);t=new Nh({props:l}),n=new Jp({props:{extraObjects:i[6]}});let c=i[3]&&Vl(i);return{c(){ie(t.$$.fragment),e=ee(),ie(n.$$.fragment),s=ee(),c&&c.c(),o=Pe()},m(d,h){te(t,d,h),B(d,e,h),te(n,d,h),B(d,s,h),c&&c.m(d,h),B(d,o,h),r=!0},p(d,[h]){const u=h&20?lt(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&&M(c,1)):(c=Vl(d),c.c(),M(c,1),c.m(o.parentNode,o)):c&&(de(),j(c,1,1,()=>{c=null}),he())},i(d){r||(M(t.$$.fragment,d),M(n.$$.fragment,d),M(c),r=!0)},o(d){j(t.$$.fragment,d),j(n.$$.fragment,d),j(c),r=!1},d(d){ne(t,d),d&&O(e),ne(n,d),d&&O(s),c&&c.d(d),d&&O(o)}}}function Kp(i,t,e){let n,{five:s}=t,{pxmm:o}=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,s=u.five),"pxmm"in u&&e(1,o=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))},[s,o,r,a,l,d,n,h,c]}class $p extends le{constructor(t){super(),ae(this,t,Kp,qp,oe,{five:0,pxmm:1,floorIndex:2,hoverEnable:3,floorplanData:4,extraObjects:8,highlightData:5})}}function eA(i){ue(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 Rl(i){let t,e,n,s,o=i[7]!==0&&Ql(i);return{c(){t=x("div"),o&&o.c(),w(t,"class","plugin-floorplan-radar svelte-1mvqyqq")},m(r,a){B(r,t,a),o&&o.m(t,null),e=!0,n||(s=[$t(Pi.call(null,t)),be(t,"clientWidth",i[13]),be(t,"clientHeight",i[14])],n=!0)},p(r,a){r[7]!==0?o?(o.p(r,a),a&128&&M(o,1)):(o=Ql(r),o.c(),M(o,1),o.m(t,null)):o&&(de(),j(o,1,1,()=>{o=null}),he())},i(r){e||(M(o),e=!0)},o(r){j(o),e=!1},d(r){r&&O(t),o&&o.d(),n=!1,Je(s)}}}function Ql(i){let t,e,n,s,o=`${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=et(c,l[u]);e=new $p({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=et(h,d[u]);return s=new Yp({props:h}),{c(){t=x("div"),ie(e.$$.fragment),n=ee(),ie(s.$$.fragment),w(t,"class","plugin-floorplan-radar-container svelte-1mvqyqq"),z(t,"width",o),z(t,"height",r)},m(u,m){B(u,t,m),te(e,t,null),D(t,n),te(s,t,null),a=!0},p(u,m){const A=m&3181?lt(l,[{five:u[0],pxmm:u[10],floorIndex:u[11],floorplanData:u[3],hoverEnable:u[2],extraObjects:u[5],highlightData:u[6]}]):{};e.$set(A);const p=m&1049?lt(d,[{pxmm:u[10],five:u[0],floorplanData:u[3],cameraImageUrl:u[4]}]):{};s.$set(p),m&512&&o!==(o=`${u[9]}px`)&&z(t,"width",o),m&4096&&r!==(r=`${u[12]}px`)&&z(t,"height",r)},i(u){a||(M(e.$$.fragment,u),M(s.$$.fragment,u),a=!0)},o(u){j(e.$$.fragment,u),j(s.$$.fragment,u),a=!1},d(u){u&&O(t),ne(e),ne(s)}}}function tA(i){let t,e,n=i[1]&&Rl(i);return{c(){n&&n.c(),t=Pe()},m(s,o){n&&n.m(s,o),B(s,t,o),e=!0},p(s,[o]){s[1]?n?(n.p(s,o),o&2&&M(n,1)):(n=Rl(s),n.c(),M(n,1),n.m(t.parentNode,t)):n&&(de(),j(n,1,1,()=>{n=null}),he())},i(s){e||(M(n),e=!0)},o(s){j(n),e=!1},d(s){n&&n.d(s),s&&O(t)}}}function nA(i,t,e){var I,k;let{five:n}=t,{visible:s}=t,{hoverEnable:o}=t,{floorplanData:r}=t,{cameraImageUrl:a}=t,{extraObjects:l=[]}=t,{highlightData:c}=t,d=0,h=(k=(I=n.work.observers[n.getCurrentState().panoIndex])==null?void 0:I.floorIndex)!=null?k:0,u=0,m=0,A=0,p=0;function g(T){e(11,h=n.work.observers[T].floorIndex)}vt(()=>(n.on("panoArrived",g),()=>{n.off("panoArrived",g)}));const b=T=>{e(7,u=T.detail)},y=T=>{e(8,m=T.detail)};return i.$$set=T=>{"five"in T&&e(0,n=T.five),"visible"in T&&e(1,s=T.visible),"hoverEnable"in T&&e(2,o=T.hoverEnable),"floorplanData"in T&&e(3,r=T.floorplanData),"cameraImageUrl"in T&&e(4,a=T.cameraImageUrl),"extraObjects"in T&&e(5,l=T.extraObjects),"highlightData"in T&&e(6,c=T.highlightData)},i.$$.update=()=>{if(i.$$.dirty&904){const T=Math.min(u,m),{max:P,min:V}=r.bounding,L=P.x-V.x,W=P.y-V.y,q=function(){return L>W?[T,T/L*W]:[T/W*L,T]}();e(9,A=q[0]),e(12,p=q[1]),e(10,d=A/L)}},[n,s,o,r,a,l,c,u,m,A,d,h,p,b,y]}class iA extends le{constructor(t){super(),ae(this,t,nA,tA,oe,{five:0,visible:1,hoverEnable:2,floorplanData:3,cameraImageUrl:4,extraObjects:5,highlightData:6},eA)}}let sA=class extends Bn{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 s;const{userAction:n}=e;(s=this.app)==null||s.$destroy(),this.app=void 0,this.hooks.emit("disable",{userAction:n})});this.five=e;const s={hoverEnable:!0,highlightEnable:!0,cameraImageUrl:mn},o=n!=null&&n.configs?n.configs:{},r=H(H({},s),o);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,s=!0){return U(this,null,function*(){function o(c){return Object.prototype.hasOwnProperty.apply(c,["version"])}const r=JSON.parse(JSON.stringify(e)),a=o(r)?r.data:r,l=this.data;this.data=yield gn(a),this.hooks.emit("dataLoaded",this.data),this.hooks.emit("dataChange",this.data,l),n&&this.updateState(n,s),this.render()})}show(){return U(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 U(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 s=this.state,o=n.userAction!==void 0?n.userAction:!0;if(this.updateState(e,o),e.enabled!==void 0&&s.enabled!==e.enabled){const r={userAction:o};e.enabled?this._enable(r):this._disable(r)}if(e.visible!==void 0&&s.visible!==e.visible){const r={userAction:o};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=xp(e,this.five,this.data),this.render())}formatData(e){return U(this,null,function*(){return yield gn(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 s=this.state;this.state=H(H({},this.state),e),!Gt(this.state,s,{deep:!0})&&this.hooks.emit("stateChange",{state:this.state,prevState:s,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=Ae(H({},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 iA({target:this.wrapper,props:e})}};const oA=(i,t)=>new sA(i,t),rA=[{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:"和室"}],aA=[{type:0,description:"木质地板"},{type:1,description:"瓷砖地面"},{type:2,description:"户外地面"},{type:3,description:"卫生间地面"},{type:4,description:"阳台地面"},{type:5,description:"车库地面"}],lA=[{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:"写字楼"}],Pr=(i,t,e)=>{const n=new E.Matrix4,s=new E.Euler(i,t,e,"YXZ");return n.makeRotationFromEuler(s),n},cA=(i,{scale:t,rotation:e,position:n})=>{if(t&&i.scale.set(t,t,t),e){const[s,o,r]=e;s&&i.applyMatrix4(Pr(s,0,0)),o&&i.applyMatrix4(Pr(0,o,0)),r&&i.applyMatrix4(Pr(0,0,r))}return n&&i.position.set(n.x,n.y,n.z),i};function Yh(i,t){i.traverse(e=>{var n;if(e.type==="Mesh"){const s=e,o=H({map:s.material.map||{}},t);s.material=new R.MeshBasicMaterial(o),s.renderOrder=1,((n=e.parent)==null?void 0:n.type)==="Mesh"&&(e.renderOrder=e.parent.renderOrder+1)}})}const dA=(i,t)=>{var p;const e=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX",n=(p=t.north_rad)!=null?p:void 0,s={};let o={x:0,y:0,z:0},r=[0,0,0],a=1,l=n;i.on("modelLoaded",A);const c=g=>U(exports,null,function*(){var k;const b=(g==null?void 0:g.fbx_url)||e;if(l=(k=g==null?void 0:g.north_rad)!=null?k:n,typeof l!="number")throw new Error('"northRad"配置参数缺失:未配置指南针指向!');const I=yield new sh.FBXLoader().loadAsync(b);return Yh(I,{transparent:!0,side:E.DoubleSide,blending:E.AdditiveBlending}),s.object=I,A(),!0}),d=({latitude:g})=>{if(!s.object)return;const b=h(g);b&&(s.object.position.y=b)},h=g=>{if(s.yBase===void 0)return;const b=.6;if(g>=Math.PI/4)return s.yBase-(b+1.6);const y=g*(4/Math.PI);return s.yBase-(b*y+1.6)},u=()=>{if(!s.object)return;const g=h(i.getPose().latitude);g&&(s.object.position.y=g),i.scene.add(s.object),i.needsRender=!0,i.on("cameraDirectionUpdate",d)},m=()=>{s.object&&(i.scene.remove(s.object),i.needsRender=!0,i.off("cameraDirectionUpdate",d))};function A(){const g=s.object;if(!g)return;const b=i.model.bounding,y=b.max.x-b.min.x,I=b.max.z-b.min.z,k=Math.max(y,I),{max:{x:T,z:P},min:{x:V,y:L,z:W}}=b;s.yBase=L,o={x:(T+V)/2,y:L-1.6,z:(P+W)/2},r=[0,l-Math.PI/2,0],a=.0045*k,cA(g,{position:o,rotation:r,scale:a})}return{load:c,disable:m,enable:u}};function hA(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,s=(h=t==null?void 0:t.backgroundColor)!=null?h:"rgba(0,0,0,0)",o=(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=s,l.fillRect(0,0,e,e),l.font=`${n}px "微软雅黑"`,l.textAlign=r,l.fillStyle=o,l.fillText(i,e/2,e*.7),new R.CanvasTexture(a)}const uA=({x:i,y:t,z:e})=>new R.Vector3(i,t,e),fA=(i,t)=>{var p,g,b;const e={},n=(p=t.animationEnabled)!=null?p:!0,s=(g=t.position)!=null?g:void 0,o=(b=t.rad)!=null?b:void 0,r=t.fbx_url||"//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx",a=[],l=y=>U(exports,null,function*(){var q,N,G,_,Q,F,Z,X;const I=(q=y==null?void 0:y.position)!=null?q:s;if(!I)return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));const k=uA(I),T=(N=y==null?void 0:y.rad)!=null?N:o,P=(G=y==null?void 0:y.fbx_url)!=null?G:r;if(e.rad=T,T===void 0)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${T}`));const V=yield new sh.FBXLoader().loadAsync(P);V.position.copy(k),V.rotation.z=T,V.scale.set(.8,.8,.8),Yh(V,{transparent:!0,side:E.DoubleSide});const L=(Z=(F=(Q=(_=V.children)==null?void 0:_[0])==null?void 0:Q.children)==null?void 0:F[3])==null?void 0:Z.clone();if(!L)return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${L}`));const W=(X=t.name)!=null?X:"入户门";return L.material=new R.MeshBasicMaterial({transparent:!0,map:hA(W)}),L.renderOrder=3,V.children[0].add(L),e.object=V,!0}),c=()=>{if(e.animation)return;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ",e.object);const y=1,I=new R.AnimationMixer(e.object);a.push(I);const k=I.clipAction(e.object.animations[0]);k.timeScale=y;let T;const P=()=>{let q=0,N=0;const G=1e3/30,_=Q=>{q=requestAnimationFrame(_);const F=Q-N;F<G||(N=Q,a.forEach(Z=>Z.update(F/1e3)),i.needsRender=!0)};return q=requestAnimationFrame(_),()=>{cancelAnimationFrame(q)}},W={play:()=>{T||(k.play(),T=P(),requestAnimationFrame(()=>{e.object&&e.object.rotation.z!==e.rad&&(e.object.rotation.z=e.rad)}))},stop:()=>{k.stop(),T==null||T(),T=void 0}};e.animation=W},d=y=>{var k;if(!e.object)return console.error("ModelEntryDoorGuidePlugin.enable(): object is ",e.object);((k=y==null?void 0:y.animationEnable)!=null?k: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)}},mA=Dt;function gA(i,t,e,n=mA.Linear.None){const s=new mo(i).to(t,e).easing(n);Ao(()=>s.start(0));const o=os(a=>{s.update(a)===!1&&o()}),r=[];return s.onDestroy=a=>(r.push(a),s),s.destroy=function(){this.stop(),Object.assign(s,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let a;for(;a=r.shift();)a();o()},s}function pA(i,t){return gA({progress:0},{progress:1},i,t)}var Uh=(i=>(i.Move="Move",i.Rotate="Rotate",i))(Uh||{}),Rt=(i=>(i.Clockwise="Clockwise",i.Anticlockwise="Anticlockwise",i.Loop="Loop",i))(Rt||{});const Ws=Math.PI*2;function Gl(i){return(i%Ws+Ws)%Ws}function Nl(i){return i%Ws}function Er(i,t,e){return i+(t-i)*e}const Zr=(i,t,e)=>{const n=Math.PI,s=n*2;let o=Gl(i),r=Gl(t);return e===Rt.Anticlockwise&&o<r&&(o+=s),e===Rt.Clockwise&&r<o&&(r+=s),e===Rt.Loop&&r-o>n?Zr(o,r,Rt.Anticlockwise):e===Rt.Loop&&o-r>n?Zr(o,r,Rt.Clockwise):{from:o,to:r}},AA=i=>{const t={},e=(l,c,...d)=>U(exports,[l,c,...d],function*(o,r,a={preload:!0}){return t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),o.mode&&o.mode!==i.currentMode&&(yield i.changeMode(o.mode)),a.preload&&o.panoIndex!==void 0&&o.panoIndex!==i.panoIndex&&(yield i.preloadPano(o.panoIndex)),a.asyncEndCallback&&(yield a.asyncEndCallback()),o.panoIndex===void 0&&o.fov===void 0&&o.latitude===void 0&&o.longitude===void 0?!0:yield new Promise((h,u)=>{const m=o.panoIndex!==void 0?o.panoIndex:i.panoIndex;m!==void 0?i.moveToPano(m,H({duration:r,moveEndCallback:()=>h(!0),moveCancelCallback:()=>u(new Error("move canceled"))},o)):u(new Error("unexpected error"))})}),n=o=>{const r=i.state,a=Nl(r.latitude),l=Nl(o.latitude),{from:c,to:d}=Zr(r.longitude,o.longitude,o.rotation||Rt.Loop),h=r.fov,u=o.fov;return{from:{latitude:a,longitude:c,fov:h},to:{latitude:l,longitude:d,fov:u}}};return{move:e,rotate:(l,c,...d)=>U(exports,[l,c,...d],function*(o,r,a={}){t.interruptCallback&&t.interruptCallback(!1),a.asyncStartCallback&&(yield a.asyncStartCallback()),i.currentMode!==Te.Five.Mode.Panorama&&(yield i.changeMode(Te.Five.Mode.Panorama)),o.panoIndex!==void 0&&o.panoIndex!==i.panoIndex&&(a.preload&&(yield i.preloadPano(o.panoIndex)),yield new Promise((m,A)=>{if(!o.panoIndex){m(!0);return}i.moveToPano(o.panoIndex,{moveEndCallback:()=>m(!0),moveCancelCallback:()=>A(new Error("move canceled"))})})),a.asyncEndCallback&&(yield a.asyncEndCallback());const{from:h,to:u}=n(o);return yield new Promise(m=>{const A=({progress:I})=>{const k={};k.longitude=Er(h.longitude,u.longitude,I),k.latitude=Er(h.latitude,u.latitude,I),k.fov=Er(h.fov,u.fov,I),i.setState(k,!0)},p=()=>{m(!0)},g=()=>{m(!1)},b=o.rotateSpeed?Math.ceil(Math.abs(u.longitude-h.longitude)/o.rotateSpeed*1e3):r,y=pA(b,Dt.Linear.None).onUpdate(A).onComplete(p).onDestroy(g);o.rotation===Rt.Loop&&y.repeat(1/0).yoyo(!0),t.interruptCallback=(I=!0)=>{y.destroy(),t.interruptCallback=void 0,t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),m(I)},t.timeoutId=setTimeout(()=>{t.interruptCallback&&t.interruptCallback(!0)},r)})})}};function Hl(i,t){return i.x===t.x&&i.y===t.y}function Xh(i,t){return Math.abs(i)===1/0&&Math.abs(t)===1/0?!0:Math.abs(i-t)<.001}function oo(i,t){return(t.y-i.y)/(t.x-i.x)}function Zh(i,t,e){const n=oo(i[1],i[0]),s=oo(t[1],t[0]);if(isNaN(n)||isNaN(s)||Xh(n,s))return!1;if(Ss(i[0],t))return i[0];if(Ss(i[1],t))return i[1];if(Ss(t[0],i))return t[0];if(Ss(t[1],i))return t[1];if(e&&!vA(i,t))return!1;const o=i[0],r=t[0];if(Math.abs(n)===1/0)return{x:o.x,y:t[1].y-(t[1].x-o.x)*s};if(Math.abs(s)===1/0)return{x:r.x,y:i[1].y-(i[1].x-r.x)*n};const a=(r.y-o.y+n*o.x-s*r.x)/(n-s),l=n*a-n*o.x+o.y;return{x:a,y:l}}function Ss(i,t){return Hl(i,t[0])||Hl(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&&Xh(oo(t[0],i),oo(i,t[1]))}function Ts(i,t,e){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)}function vA(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)&&Ts(t[0],i[1],i[0])*Ts(i[1],t[1],i[0])>0&&Ts(i[0],t[1],t[0])*Ts(t[1],i[1],t[0])>0?1:0}function Jh(i,t=0){t<=0?requestAnimationFrame(i):requestAnimationFrame(()=>Jh(i,t-1))}const bA=`<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",p),y.setAttribute("style","display: none"),y.innerHTML=b,y},s=document.createElement("div");s.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const o=document.createElement("div");o.innerHTML=bA,s.appendChild(o);const r={},a=(p,g)=>{if(e.loaded)throw new Error("标尺被重复初始化!");const b=wA(p,i),y=i.work;if(!y)return!1;for(const I in g){const k=g[I],{standingPosition:T}=y.observers[0],P=k.map(({x:V,z:L,observers:W})=>{const q=W.length>0?p.rooms[p.observers[W[0]]].name:"",N=b[q]?b[q].floor:null;let G=1/0,_={index:0,x:T.x,y:T.y,z:T.z};W.forEach(ce=>{if(!y.observers[ce])return;const{standingPosition:se}=y.observers[ce],we={index:ce,x:se.x,y:se.y,z:se.z},Ce=yA({x:V,z:L},we);N?Ce<G&&Math.abs(we.y-N)<.3&&(G=Ce,_=we):Ce<G&&(G=Ce,_=we)});const Q=new R.Vector3(V,_.y,L);Object.assign(Q,{observers:W});const F=b[q]?b[q].roof:null,Z=F?new R.Vector3(V,F,L):null;return Z&&Object.assign(Z,{observers:W}),{origin:Q,vertical:Z}});r[I]={origins:P.map(V=>V.origin),rules:[]};for(const{origin:V,vertical:L}of P){if(!L)continue;const W=n(I,V.distanceTo(L));s.append(W),r[I].rules.push({vertical:!0,rule:[V,L],$element:W})}for(let V=0;V<P.length;V++){let L=V+1;L>=P.length&&(L=0);const{origin:W}=P[V],{origin:q}=P[L],N=n(I,W.distanceTo(q));s.append(N),r[I].rules.push({vertical:!1,rule:[W,q],$element:N})}}return e.loaded=!0,!0},l=(p,g,b)=>U(exports,null,function*(){const y=p||t.roomInfo,I=g||t.roomRules;if(!y||!I)throw new Error("标尺数据依赖不齐全!");return e.loaded=!1,e.options=H(H({},e.options),b||{}),i.model.loaded?a(y,I):yield new Promise(k=>i.once("modelLoaded",()=>k(a(y,I))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(p,g,b,y)=>{const I=[[{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}]],k=[];for(let T=0;T<I.length;T++){const P=Zh([p,g],[I[T][0],I[T][1]],!0);P&&k.push(P)}return k.length===0?!1:k},d=()=>{var W;const p=(W=i.getElement())==null?void 0:W.parentElement;if(!p||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:g,camera:b,currentMode:y}=i;if(g===void 0)return;let I;for(const q in r)q.split(",").indexOf(g.toString())>=0&&(I=q);if(!I){for(const q in r)for(const{$element:N}of r[q].rules)N.style.display="none";return}const k=b.position,T=b.getWorldDirection(new R.Vector3),P=p.clientWidth,V=p.clientHeight;if(y!==Te.Five.Mode.Panorama){for(const q in r)for(const{$element:N}of r[q].rules)N.style.display="none";return}for(const q in r)for(const{$element:N}of r[q].rules)N.style.display=q===I?"block":"none";const[L]=r[I].origins.slice().filter(q=>q.observers.indexOf(g)>=0).sort((q,N)=>{const G=q.clone().setY(0).sub(k).normalize().angleTo(T.clone().setY(0)),_=N.clone().setY(0).sub(k).normalize().angleTo(T.clone().setY(0));return G-_});for(const{rule:q,vertical:N,$element:G}of r[I].rules){const[_,Q]=q,F=G.querySelector(".PanoRulerPlugin-rule-line");if(!F)return;if(!L){G.style.display="none";continue}if(_!==L&&Q!==L){G.style.display="none";continue}if(_.distanceTo(Q)<.3){G.style.display="none";continue}if(_.observers.indexOf(g)===-1||Q.observers.indexOf(g)===-1){G.style.display="none";continue}if(_.clone().sub(k).normalize().angleTo(T)>Math.PI/2){G.style.display="none";continue}if(Q.clone().sub(k).normalize().angleTo(T)>Math.PI/2){G.style.display="none";continue}const $=_.distanceTo(Q);if(Q.clone().sub(Q.clone().sub(_).divide(new R.Vector3(2,2,2))).distanceTo(k)/$>8){G.style.display="none";continue}const we=_.clone().project(b),Ce=(we.x+1)/2*P,pe=(-we.y+1)/2*V,Be=Q.clone().project(b),ve=(Be.x+1)/2*P,We=(-Be.y+1)/2*V,fe=Math.sqrt(Math.pow(ve-Ce,2)+Math.pow(We-pe,2));let ye=fe,Le=50;const me=c({x:~~Ce,y:~~pe},{x:~~ve,y:~~We},P,V);if(me&&me.length===1&&(L===_?(ye=Math.sqrt(Math.pow(me[0].x-Ce,2)+Math.pow(me[0].y-pe,2)),Le=ye/fe*50):L===Q&&(ye=Math.sqrt(Math.pow(me[0].x-ve,2)+Math.pow(me[0].y-We,2)),Le=100-ye/fe*50)),me&&me.length===2){const re={x:(me[0].x+me[1].x)/2,y:(me[0].y+me[1].y)/2};Le=Math.sqrt(Math.pow(re.x-Ce,2)+Math.pow(re.y-pe,2))/fe*100}const ct=(Math.PI/2-Math.atan2(ve-Ce,pe-We))/Math.PI*180,ke=F.querySelector(".PanoRulerPlugin-rule-label"),nt=ke.children[0].clientWidth;nt>=fe||nt/2>=Le/100*fe||nt/2>=(1-Le/100)*fe?F.style.display="none":(F.style.display="block",F.style.width=fe+"px",F.style.left=Ce+"px",F.style.top=pe+"px",F.style.transform=`rotate(${-ct}deg)`,ke.style.left=`${Le}%`)}},h=()=>Jh(d),u=()=>{var p,g;return e.loaded?(e.enable||(s.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(g=(p=i.getElement())==null?void 0:p.parentElement)==null||g.append(s),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),s&&s.remove(),e.enable=!1),!0);function A(p){if(p.distanceText&&p.distanceText!==e.options.distanceText){const g=p.distanceText;e.options.distanceText=g,Object.values(r).forEach(b=>{b.rules.forEach(y=>{const[I,k]=y.rule,T=I.distanceTo(k),P=y.$element.querySelector(".PanoRulerPlugin-rule-label-name");P&&(P.innerText=g(T))})})}}return{enable:u,disable:m,load:l,state:e,changeConfigs:A}};function IA(i){ue(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 _l(i,t,e){const n=i.slice();return n[6]=t[e],n}function PA(i){let t,e=i[0].children,n=[];for(let s=0;s<e.length;s+=1)n[s]=Wl(_l(i,e,s));return{c(){t=x("div");for(let s=0;s<n.length;s+=1)n[s].c();w(t,"class","rule-mixed-line svelte-1h27ktp")},m(s,o){B(s,t,o);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(t,null)},p(s,o){if(o&9){e=s[0].children;let r;for(r=0;r<e.length;r+=1){const a=_l(s,e,r);n[r]?n[r].p(a,o):(n[r]=Wl(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(s){s&&O(t),Tt(n,s)}}}function EA(i){let t,e;return{c(){t=x("em"),w(t,"class",e=Re(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3])},m(n,s){B(n,t,s)},p(n,s){s&1&&e!==(e=Re(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),s&8&&w(t,"style",n[3])},d(n){n&&O(t)}}}function Wl(i){let t,e,n=`${i[6].width}px`;return{c(){t=x("div"),w(t,"class",e=Re(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3]),z(t,"width",n)},m(s,o){B(s,t,o)},p(s,o){o&1&&e!==(e=Re(s[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),o&8&&w(t,"style",s[3]),(o&8||o&9&&n!==(n=`${s[6].width}px`))&&z(t,"width",n)},d(s){s&&O(t)}}}function kA(i){let t,e,n,s,o=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?EA:PA}let A=m(i),p=A(i);return{c(){t=x("div"),p.c(),e=ee(),n=x("div"),s=x("div"),r=Me(o),w(s,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),Ne(()=>i[4].call(s)),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){B(g,t,b),p.m(t,null),D(t,e),D(t,n),D(n,s),D(s,r),a=bo(s,i[4].bind(s))},p(g,[b]){A===(A=m(g))&&p?p.p(g,b):(p.d(1),p=A(g),p&&(p.c(),p.m(t,e))),b&1&&o!==(o=g[0].labelElement+"")&&Oe(r,o),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:J,o:J,d(g){g&&O(t),p.d(),a()}}}function MA(i,t,e){let n,{rulerItemProp:s}=t,o=!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,s=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=s.width||r/2>=s.labelOffset/100*s.width||r/2>=(1-s.labelOffset/100)*s.width?e(2,o=!1):e(2,o=!0))},e(3,n=`--background-image: url(${a})`),[s,r,o,n,l]}class xA extends le{constructor(t){super(),ae(this,t,MA,kA,oe,{rulerItemProp:0},IA)}}function Fl(i,t,e){const n=i.slice();return n[12]=t[e],n}function Yl(i){let t,e;return t=new xA({props:{rulerItemProp:i[12]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.rulerItemProp=n[12]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function DA(i){let t,e,n=i[0],s=[];for(let r=0;r<n.length;r+=1)s[r]=Yl(Fl(i,n,r));const o=r=>j(s[r],1,1,()=>{s[r]=null});return{c(){t=x("div");for(let r=0;r<s.length;r+=1)s[r].c()},m(r,a){B(r,t,a);for(let l=0;l<s.length;l+=1)s[l]&&s[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=Fl(r,n,l);s[l]?(s[l].p(c,a),M(s[l],1)):(s[l]=Yl(c),s[l].c(),M(s[l],1),s[l].m(t,null))}for(de(),l=n.length;l<s.length;l+=1)o(l);he()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)M(s[a]);e=!0}},o(r){s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)j(s[a]);e=!1},d(r){r&&O(t),Tt(s,r)}}}function SA(i,t,e){var p,g,b,y;let{five:n}=t,{rulerDatas:s}=t,{options:o}=t,r=[];const a=((g=(p=n.getElement())==null?void 0:p.parentElement)==null?void 0:g.clientWidth)||0,l=((y=(b=n.getElement())==null?void 0:b.parentElement)==null?void 0:y.clientHeight)||0,c=(I,k)=>{const T=[[{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}]],P=[];for(let V=0;V<T.length;V++){const L=Zh([I,k],[T[V][0],T[V][1]],!0);L&&P.push(L)}return P.length===0?!1:P},d=(I,k)=>{const T=I.clone().project(n.camera),P=(T.x+1)/2*a,V=(-T.y+1)/2*l,L=k.clone().project(n.camera),W=(L.x+1)/2*a,q=(-L.y+1)/2*l,N=Math.sqrt(Math.pow(W-P,2)+Math.pow(q-V,2));return{startLeft:P,startTop:V,endLeft:W,endTop:q,distance:N}},h=(I,k,T)=>{const P=n.camera.position,V=n.camera.getWorldDirection(new R.Vector3),L=I.clone().sub(P).normalize().angleTo(V),W=k.clone().sub(P).normalize().angleTo(V),q=I.distanceTo(k),G=k.clone().sub(k.clone().sub(I).divide(new R.Vector3(2,2,2))).distanceTo(P),{startLeft:_,startTop:Q,endLeft:F,endTop:Z,distance:X}=d(I,k),ce=-((Math.PI/2-Math.atan2(F-_,Q-Z))/Math.PI)*180;let se=!0;T||(se=!1),!Gt(I,T)&&!Gt(k,T)&&(se=!1),q<.3&&(se=!1),L>Math.PI/2&&(se=!1),W>Math.PI/2&&(se=!1),G/q>8&&(se=!1);let we=50,Ce=X;const pe=c({x:~~_,y:~~Q},{x:~~F,y:~~Z});if(pe&&pe.length===1&&(Gt(I,T)?(Ce=Math.sqrt(Math.pow(pe[0].x-_,2)+Math.pow(pe[0].y-Q,2)),we=Ce/X*50):Gt(k,T)&&(Ce=Math.sqrt(Math.pow(pe[0].x-F,2)+Math.pow(pe[0].y-Z,2)),we=100-Ce/X*50)),pe&&pe.length===2){const Be={x:(pe[0].x+pe[1].x)/2,y:(pe[0].y+pe[1].y)/2};we=Math.sqrt(Math.pow(Be.x-_,2)+Math.pow(Be.y-Q,2))/X*100}return{startLeft:_,startTop:Q,distance:X,deg:ce,visible:se,labelOffset:we,ruleLength:q}},u=()=>{const I=n.panoIndex,k=s.find(N=>N.panoIndex===I);if(!k)return e(0,r=[]);if(n.currentMode!==Te.Five.Mode.Panorama)return e(0,r=[]);const T=n.camera.position,P=n.camera.getWorldDirection(new R.Vector3),V=k.lines.map(N=>new R.Vector3(N.start[0],-N.start[1],-N.start[2])),L=k.lines.map(N=>new R.Vector3(N.end[0],-N.end[1],-N.end[2])),[W]=V.concat(L).sort((N,G)=>{const _=N.clone().setY(0).sub(T).normalize().angleTo(P.clone().setY(0)),Q=G.clone().setY(0).sub(T).normalize().angleTo(P.clone().setY(0));return _-Q}),q=k.lines.map(N=>{var Ce,pe;const G=N.start,_=N.end,{startLeft:Q,startTop:F,distance:Z,deg:X,visible:$,labelOffset:ce,ruleLength:se}=h(new R.Vector3(G[0],-G[1],-G[2]),new R.Vector3(_[0],-_[1],-_[2]),W),we=[];return N.children&&((Ce=N.children)==null?void 0:Ce.length)>0&&((pe=N.children)==null||pe.forEach(Be=>{const ve=Be.start,We=Be.end,{distance:fe}=d(new R.Vector3(ve[0],-ve[1],-ve[2]),new R.Vector3(We[0],-We[1],-We[2]));we.push({width:fe,state:Be.state})})),{width:Z,left:Q,top:F,rotateDeg:X,state:N.state,children:we,labelOffset:ce,visible:$,labelElement:o.distanceText(se)}});e(0,r=q)},m=()=>Ao(u),A=Sa(u,80);return vt(()=>{u(),n.on("panoArrived",u),n.on("modeChange",u),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>A()),n.on("pinchGesture",()=>A())}),Lt(()=>{n.off("panoArrived",u),n.off("modeChange",u),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>A()),n.off("pinchGesture",()=>A())}),i.$$set=I=>{"five"in I&&e(1,n=I.five),"rulerDatas"in I&&e(2,s=I.rulerDatas),"options"in I&&e(3,o=I.options)},[r,n,s,o]}class TA extends le{constructor(t){super(),ae(this,t,SA,DA,oe,{five:1,rulerDatas:2,options:3})}}let LA=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,s;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=H(H({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((s=e.options)==null?void 0:s.className)),this.five.once("modelLoaded",()=>U(this,null,function*(){var o,r;(r=(o=this.five.getElement())==null?void 0:o.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return U(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 U(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new TA({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 jA=(i,t)=>new LA(i,t),zA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aR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H64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function OA(){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(${zA})`,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 BA=new E.TextureLoader;function ns(i){return U(this,null,function*(){return new Promise((t,e)=>{BA.load(i,t,void 0,e)}).then(t=>(t.encoding=E.sRGBEncoding,t))})}const Ls={userAction:!0};class VA extends Bn{constructor(e,n){super(e,n);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:this.absoluteUrl("/release/web/v3/north-point-circle.96498e69.png"),entryDoorImageUrl:this.absoluteUrl("/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,s,o;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(),(o=(s=this.entryDoorMesh)==null?void 0:s.material.map)==null||o.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,s;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(s=this.compassMesh)==null||s.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var s,o,r,a,l,c,d;const n=(r=(o=(s=this.five.work)==null?void 0:s.observers)==null?void 0:o[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=po(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 s,o;this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(s=this.roomInfoInstance)==null||s.show():(o=this.roomInfoInstance)==null||o.hide())});f(this,"onFiveModeChange",(e,n,s,o,r)=>{e!==n&&this.setState({visible:e===Te.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:H(H({},this.state.config),n||{})})}enable(e=Ls){this.setState({enabled:!0},e)}disable(e=Ls){this.setState({enabled:!1},e)}show(e=Ls){if(this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Ls){if(this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var o,r;const s=JSON.parse(JSON.stringify(this.state));this.state={visible:(o=e.visible)!=null?o:s.visible,enabled:(r=e.enabled)!=null?r:s.enabled,config:H(H({},s.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:s,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,s=!0){return U(this,null,function*(){const o=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(o)&&(this.hooks.emit("dataChange",o,this.data),this.data=H({},o),this.init(),n&&this.setState(n,{userAction:s}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return U(this,null,function*(){var s,o,r,a;const e=(o=(s=this.data)==null?void 0:s.north_rad)!=null?o: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=OA(),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 U(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield ns(e),s=new E.CircleGeometry(.7,32),o=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new E.Mesh(s,o);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return U(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield ns(e),s=new E.PlaneGeometry(.2,.16),o=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new E.Mesh(s,o);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 vo(this.five).create3DDomContainer(e)}}const RA=(i,t)=>new VA(i,t),QA=1,GA=3,NA=new R.Color(16777215),HA=new R.Color(6522623),_A=new R.Color(16777215),WA=new R.Color(6522623),FA=6,YA=8,UA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",qh=new R.TextureLoader().load(UA),XA={pointTexture:qh,pointSize:FA,lineWidth:QA,lineColor:NA,pointColor:_A,lineRenderOrder:20,pointsRenderOrder:20},ZA={pointTexture:qh,pointSize:YA,lineWidth:GA,lineColor:HA,pointColor:WA,lineRenderOrder:10,pointsRenderOrder:10};function JA(i,t,e){var d,h,u,m,A;const n=(d=e==null?void 0:e.lineWidth)!=null?d:2,s=(h=e==null?void 0:e.lineColor)!=null?h:new R.Color(16777215),o=(u=e==null?void 0:e.pointSize)!=null?u:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(A=e==null?void 0:e.lineRenderOrder)!=null?A:20,l=new ih.Line(i,t);l.setMaterial({linewidth:n,color:s}),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=o,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ul(i,t){const[e,n]=i.points,s=t==="light"?ZA:XA,o=JA(e.position,n.position,s);return o.name="normalLine_"+i.id,o}function Ln(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function Fs(i){const{z:t}=i;return!(Math.abs(t)>1)}function qA(i){const t=document.createElement("div");return t.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),t.style.width="max-content",t.style.padding="3px 6px",t.style.lineHeight="1",t.style.textAlign="center",t.style.transform="translate(-50%, -50%)",t.style.fontSize="14px",t.style.color="#fff",t.style.cursor="pointer",t.style.userSelect="none",i!=null&&i.style&&Object.assign(t.style,i==null?void 0:i.style),t}function KA(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.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",i!=null&&i.style&&Object.assign(t.style,i.style),t}class Kh{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=qA({style:t.contentStyle}),this.containerDom=KA({style:t.containerStyle}),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.visibility="visible"}hide(){this.containerDom.style.visibility="hidden"}tempHide(){this.containerDom.style.opacity="0"}tempShow(){this.containerDom.style.opacity="1"}updateDomPosition(t){if(!this.ndcPosition){this.tempHide();return}const e=t.getElement();if(!e)return;const n=e.clientWidth,s=e.clientHeight,o=this.ndcPosition.clone().project(t.camera);if(!Fs(o)){this.tempHide();return}const r=(o.x+1)/2*n,a=-(o.y-1)/2*s;this.containerDom.style.transform=`translate(${r}px, ${a}px)`,this.tempShow()}}class $A extends Kh{constructor(e){var n;e.contentStyle=Ae(H({},e.contentStyle),{background:"rgba(195,195,195,0.70)",border:"0.5px solid rgba(255,255,255,0.6)",borderRadius:"999px"});super(e);f(this,"line");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 V;if(this.line.mesh.visible===!1){this.hide();return}const n=e.getElement();if(!n)return;const s=n.clientWidth,o=n.clientHeight,r=s/2,a=o/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=nn(l.position,c.position).clone().project(e.camera),m=new R.Vector2(d.x*r,d.y*a),A=new R.Vector2(h.x*r,h.y*a),p=m.distanceTo(A);if((()=>!(Math.abs(d.z)>1||Math.abs(h.z)>1||!Fs(d)&&!Fs(h)||!Fs(u)||p===0))()===!1){this.hide();return}const b=(u.x+1)/2*s,y=-(u.y-1)/2*o,k=-(Math.atan((m.y-A.y)/(m.x-A.x))*180)/Math.PI,T=this.containerDom.parentElement&&this.contentDom.clientWidth>p?-20:0;this.containerDom.style.transform=`translate(${b}px, ${y}px) rotate(${k}deg) translateY(${T}px)`,this.show(),(V=this.params.userDistanceItem)==null||V.update({line:this.line,polyline:this.line.getPolyline()});const P=this.getCurrentContent();this.contentDom.innerText=P}getCurrentContent(){var l,c,d,h;if(this.line.points.length<2)return"";const[e,n]=this.line.points,s=e.position.clone().distanceTo(n.position),o=(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,s),a=o!=null?o:r;return a!=null?a:s.toFixed(2)+"m"}}class tn{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");f(this,"visible");var s;if(this.id=at(),this.model=n,t.id===e.id)throw new Error("无效的线段, 一个点无法构成线段");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new Te.Subscribe,this.points=[t,e],this.mesh=Ul(this,"normal"),this.lightMesh=Ul(this,"light"),this.distanceItem=new $A({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(s=this.model.config)!=null&&s.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}hide(){this.visible&&(this.visible=!1,this.mesh.visible=!1,this.distanceItem.hide())}show(){this.visible||(this.visible=!0,this.mesh.visible=!0,this.distanceItem.show())}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 tn(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}function ev(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class ut{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");if(this.id=at(),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){ev(t,this.lines)}clone(){return new ut(this.position)}}const js=i=>i.preventDefault();let Eo=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,"editParams");f(this,"magnifierParams");f(this,"mouseGroup");f(this,"container");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,s;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.editParams=t.editParams,this.magnifier=t.magnifier,this.container=t.container,this.isMobile=(s=(n=t.openParams)==null?void 0:n.isMobile)!=null?s:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new tn(new ut([0,0,0]),new ut([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 tn(new ut([0,0,0]),new ut([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",js),e.addEventListener("contextmenu",js))}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 s=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(s).clone().add(s);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",js),t.removeEventListener("contextmenu",js))}},jn=class{constructor(t){f(this,"id",at());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new Te.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(),s=t.lines.map(a=>{const[l,c]=a.points,d=e(l),h=e(c);if(!d||!h)throw new Error("线上的点不存在");const u=new tn(d,h,this.model);return u.id=a.id,u.text=a.text,u}),o=n();this.points.push(...o),this.lines.push(...s),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 ut(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 tv(i){const t=[...new Set(i)];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),s=sf(e,void 0,3),o=new E.BufferGeometry;return o.setAttribute("position",n),o.setIndex(s),o.name="PolygonGeometry",o}const nv=new E.BufferGeometry;class eu extends $h{constructor(e){super();f(this,"isPolygonMesh",!0);f(this,"geometry",new E.BufferGeometry);f(this,"isBlank",!0);f(this,"points",[]);const n=new E.MeshBasicMaterial({color:4090367,transparent:!0,side:E.DoubleSide,depthTest:!0,opacity:.5}),s=new E.MeshBasicMaterial({color:16777215,transparent:!0,side:E.DoubleSide,depthTest:!1,depthWrite:!1,opacity:.3}),o=new E.Mesh(this.geometry,n),r=new E.Mesh(this.geometry,s);o.renderOrder=1,r.renderOrder=0,e&&this.updatePoints(e),this.add(o,r)}updatePoints(e){this.points=e;const n=tv(e);n?(this.geometry.copy(n),this.isBlank=!1):(this.geometry.copy(nv),this.isBlank=!0)}}function iv(i){const t=ov(i);if(t.length===0)return;let e=0,n=new R.Vector3;for(const[s,o,r]of t){const a=tu(s,o,r),l=sv(s,o,r,a);e+=a,n.add(l)}return n=n.divideScalar(e),{center:n,area:e}}function tu(i,t,e){return t.clone().sub(i).cross(e.clone().sub(i)).length()/2}function sv(i,t,e,n){const s=n!=null?n:tu(i,t,e);return nn(i,t,e).multiplyScalar(s)}function ov(i){var s;const t=i.getAttribute("position"),e=(s=i.getIndex())==null?void 0:s.array;if(!t||!e)return[];let n=[];for(let o=0;o<e.length;o+=3){const r=e[o],a=e[o+1],l=e[o+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 rv extends Kh{constructor(e){e.containerStyle=Ae(H({},e.containerStyle),{zIndex:"1"}),e.contentStyle=Ae(H({},e.contentStyle),{background:"#6386FF",borderRadius:"2px"});super(e);f(this,"area");this.area=e.area,this.containerDom.appendChild(this.contentDom)}updateArea(e,n){const s=n!=null?n:this.area.polygon.geometry,o=iv(s);if(!o){this.ndcPosition=null,this.updateDomPosition(e);return}const{area:r,center:a}=o;this.ndcPosition=a,this.updateDomPosition(e),this.updateAreaText(r)}updateAreaText(e,n){const{unit:s="m²",fix:o=2}=n!=null?n:{};this.contentDom.innerText=`${e.toFixed(o)}${s}`}}class Jr{constructor(t,e){f(this,"id",at());f(this,"selected",!1);f(this,"text");f(this,"type","area");f(this,"lightMesh");f(this,"areaItem");f(this,"hook",new Te.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 eu(t),this.polyline=new jn({model:e.model}),this.areaItem=new rv({area:this,clickCallback:(s,o)=>{const r=s.clientX+"px",a=s.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)}get isClosed(){var t;return this.points.length>=4&&((t=this.points.at(0))==null?void 0:t.equals(this.points.at(-1)))}addPoints(t){var s;this.points=this.points.concat(t);const e=this.points.at(-2),n=this.points.at(-1);if(e&&n){const o=new tn(new ut(e),new ut(n),this.polyline.model);this.polyline.addLine(o),this.meshContainer.add(o.mesh),this.five&&(o.distanceItem.setCanSelect(!1),o.distanceItem.appendTo(this.domContainer),o.distanceItem.update(this.five))}(s=this.meshContainer)!=null&&s.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)}popPoint(){this.points.pop();const t=this.polyline.lines.pop();t==null||t.remove(),this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five),this.points.length<3&&(this.planeHelper=null)}complete(){this.points.at(-1).equals(this.points[0])||this.addPoints(this.points[0])}hideArea(){this.polygon.visible=!1,this.areaItem.hide()}showArea(){this.polygon.visible=!0,this.areaItem.show()}projectPoint(t){return t&&(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 Xl(i,t){const e=Array.isArray(t)?t:[t];for(let n=0;n<e.length;n++){const s=e[n],o=i.start,r=i.end,a=s.start,l=s.end;if(Ni(o,a)||Ni(o,l)||Ni(r,a)||Ni(r,l)||Ni(o,r))continue;const c=zs(o,r,a),d=zs(o,r,l),h=zs(a,l,o),u=zs(a,l,r);if(c!==d&&h!==u||c===0&&Os(o,r,a)||d===0&&Os(o,r,l)||h===0&&Os(a,l,o)||u===0&&Os(a,l,r))return!0}return!1}function Ni(i,t){return i.x===t.x&&i.z===t.z&&i.y===t.y}function zs(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 Os(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 nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;function qr(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:s}=i.target,o=i.target.getBoundingClientRect(),r=new R.Vector2(t,e).sub(new R.Vector2(o.left,o.top)),a=new R.Vector2(r.x/n*2-1,-(r.y/s)*2+1);return{point:r,ndcPoint:a}}function kr(i,t){const e=qr(t).ndcPoint,n=new R.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}const $n=()=>!1;class av{constructor(t,e){f(this,"hook",new Te.Subscribe);f(this,"outOfFive",!1);f(this,"five");f(this,"hammer");f(this,"mode");f(this,"pointSelectorHelper");f(this,"enabled",!1);f(this,"pressDown",!1);f(this,"adherePoints",null);f(this,"adherePointsRadius",.1);f(this,"lastFiveHelperVisible");f(this,"select",t=>{t&&this.updatePointSelectorHelperIntersect(t);const e=this.hook.emit("wantsSelect",this.position);return e||(this.pointSelectorHelper.hide(),this.hook.emit("select",this.position)),!e});f(this,"onEnter",()=>{this.pointSelectorHelper.show(),this.outOfFive=!1,this.hook.emit("intersectionUpdate",this.position)});f(this,"onLeave",()=>{this.pointSelectorHelper.hide(),this.outOfFive=!0,this.hook.emit("intersectionUpdate",null)});f(this,"onTap",t=>{const[e]=kr(this.five,t);e!=null&&e.face&&this.select(e)});f(this,"onPan",t=>{if(!this.pressDown)return;const[e]=kr(this.five,t);e!=null&&e.face&&this.intersectionOnModelUpdate(e)});f(this,"onPress",t=>{const[e]=kr(this.five,t);e!=null&&e.face&&(this.pressDown=!0,this.intersectionOnModelUpdate(e))});f(this,"onPanEnd",()=>{this.pressDown&&(this.pressDown=!1,this.select())});f(this,"intersectionOnModelUpdate",t=>{this.pointSelectorHelper.show(),this.updatePointSelectorHelperIntersect(t)});f(this,"updateByMousePosition",t=>{const e=this.five.getElement();if(!e)return;const{clientX:n,clientY:s}=t,o={x:n/e.clientWidth,y:1-s/e.clientHeight};this.updateByNdcPosition(o)});f(this,"updateByNdcPosition",t=>{const e=mh(this.five,t),n=(()=>e?Ae(H({},e),{isVirtual:!1}):Ae(H({},cv(this.five,t)),{isVirtual:!0}))();this.updatePointSelectorHelperIntersect(n)});f(this,"updatePointSelectorHelperIntersect",t=>{var s;const e=H({},t);let n=!1;if(((s=this.adherePoints)==null?void 0:s.length)>0&&typeof this.adherePointsRadius=="number"){for(const o of this.adherePoints)if(o.distanceTo(t.point)<this.adherePointsRadius){e.point=o.clone(),n=!0;break}}this.pointSelectorHelper.updateWithIntersect(e,{emitEvent:!1}),this.hook.emit("intersectionUpdate",e,n)});f(this,"onFiveWantsPanGesture",()=>{if(this.pressDown)return!1});f(this,"renderScreenCenter",()=>{this.updateByNdcPosition({x:.5,y:.5})});f(this,"emitIntersectionUpdate",t=>{this.hook.emit("intersectionUpdate",t)});var o,r;this.five=t;const n=(o=e==null?void 0:e.mode)!=null?o:"auto";n==="auto"?this.mode=nu?"fixed":"cursor":this.mode=n;const s={autoFixPCPosition:this.mode==="cursor",initialPosition:this.mode==="fixed"?{left:"35%",top:"20%"}:void 0};this.pointSelectorHelper=new vh(t,Ae(H({},e==null?void 0:e.pointSelectorHelperParams),{magnifierParams:H(H({},s),(r=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:r.magnifierParams)})),this.pointSelectorHelper.hide()}get position(){return this.outOfFive?null:this.pointSelectorHelper.position}enable(){if(this.enabled)return;this.enabled=!0,this.pointSelectorHelper.enable();const t=this.five.getElement();if(!t)throw new Error("five element not found");this.hammer||(this.hammer=new ss(t)),this.mode==="cursor"?(this.five.on("intersectionOnModelUpdate",this.intersectionOnModelUpdate),this.five.on("wantsPanGesture",this.onFiveWantsPanGesture),this.five.on("wantsMoveToPano",$n),this.five.on("wantsChangeMode",$n),this.five.on("wantsTapGesture",$n),this.lastFiveHelperVisible=this.five.helperVisible,this.five.helperVisible=!1,t.addEventListener("mousemove",this.updateByMousePosition),t.addEventListener("mouseenter",this.onEnter),t.addEventListener("mouseout",this.onLeave),this.hammer.on("tap",this.onTap),this.hammer.on("pan",this.onPan),this.hammer.on("press",this.onPress),this.hammer.on("panend",this.onPanEnd)):this.mode==="fixed"&&(this.five.on("panGesture",this.renderScreenCenter),this.five.on("interiaPan",this.renderScreenCenter),this.renderScreenCenter(),this.pointSelectorHelper.show()),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.intersectionOnModelUpdate),this.five.off("wantsPanGesture",this.onFiveWantsPanGesture),this.five.off("wantsMoveToPano",$n),this.five.off("wantsChangeMode",$n),this.five.off("wantsTapGesture",$n),this.five.helperVisible=this.lastFiveHelperVisible,t==null||t.removeEventListener("mousemove",this.updateByMousePosition),t==null||t.removeEventListener("mouseenter",this.onEnter),t==null||t.removeEventListener("mouseout",this.onLeave),this.hammer.off("tap",this.onTap),this.hammer.off("pan",this.onPan),this.hammer.off("press",this.onPress),this.hammer.off("panend",this.onPanEnd),this.five.off("panGesture",this.renderScreenCenter),this.five.off("interiaPan",this.renderScreenCenter),this.pointSelectorHelper.hooks.off("intersectionUpdate",this.emitIntersectionUpdate)}dispose(){this.disable(),this.pointSelectorHelper.dispose()}setAdherePoints(t,e){t?this.adherePoints=Array.isArray(t)?t:[t]:this.adherePoints=null,typeof e=="number"&&(this.adherePointsRadius=e)}}function lv(i,t){const{x:e,y:n}=t,s=e*2-1,o=n*2-1,r=new R.Vector2().fromArray([s,o]),a=new R.Raycaster;return a.setFromCamera(r,i.camera),a}function cv(i,t){const e=lv(i,t),n=3,s=new R.Vector3().addVectors(e.ray.origin,e.ray.direction.clone().normalize().multiplyScalar(n)),o=e.ray.direction.clone().negate();return{distance:n,point:s,object:new R.Object3D,face:new R.Face3(0,0,0,o)}}const dv=`
|
|
287
|
+
`,y=document.createElement("div");return y.setAttribute("class","PanoRulerPlugin-rule"),y.setAttribute("data-name",p),y.setAttribute("style","display: none"),y.innerHTML=b,y},s=document.createElement("div");s.setAttribute("style","position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");const o=document.createElement("div");o.innerHTML=bA,s.appendChild(o);const r={},a=(p,g)=>{if(e.loaded)throw new Error("标尺被重复初始化!");const b=wA(p,i),y=i.work;if(!y)return!1;for(const I in g){const k=g[I],{standingPosition:T}=y.observers[0],P=k.map(({x:V,z:L,observers:W})=>{const q=W.length>0?p.rooms[p.observers[W[0]]].name:"",N=b[q]?b[q].floor:null;let G=1/0,_={index:0,x:T.x,y:T.y,z:T.z};W.forEach(ce=>{if(!y.observers[ce])return;const{standingPosition:se}=y.observers[ce],we={index:ce,x:se.x,y:se.y,z:se.z},Ce=yA({x:V,z:L},we);N?Ce<G&&Math.abs(we.y-N)<.3&&(G=Ce,_=we):Ce<G&&(G=Ce,_=we)});const Q=new R.Vector3(V,_.y,L);Object.assign(Q,{observers:W});const F=b[q]?b[q].roof:null,Z=F?new R.Vector3(V,F,L):null;return Z&&Object.assign(Z,{observers:W}),{origin:Q,vertical:Z}});r[I]={origins:P.map(V=>V.origin),rules:[]};for(const{origin:V,vertical:L}of P){if(!L)continue;const W=n(I,V.distanceTo(L));s.append(W),r[I].rules.push({vertical:!0,rule:[V,L],$element:W})}for(let V=0;V<P.length;V++){let L=V+1;L>=P.length&&(L=0);const{origin:W}=P[V],{origin:q}=P[L],N=n(I,W.distanceTo(q));s.append(N),r[I].rules.push({vertical:!1,rule:[W,q],$element:N})}}return e.loaded=!0,!0},l=(p,g,b)=>U(exports,null,function*(){const y=p||t.roomInfo,I=g||t.roomRules;if(!y||!I)throw new Error("标尺数据依赖不齐全!");return e.loaded=!1,e.options=H(H({},e.options),b||{}),i.model.loaded?a(y,I):yield new Promise(k=>i.once("modelLoaded",()=>k(a(y,I))))});t.roomInfo&&t.roomRules&&l(t.roomInfo,t.roomRules);const c=(p,g,b,y)=>{const I=[[{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}]],k=[];for(let T=0;T<I.length;T++){const P=Zh([p,g],[I[T][0],I[T][1]],!0);P&&k.push(P)}return k.length===0?!1:k},d=()=>{var W;const p=(W=i.getElement())==null?void 0:W.parentElement;if(!p||!e.loaded||Object.keys(r).length<=0)return;const{panoIndex:g,camera:b,currentMode:y}=i;if(g===void 0)return;let I;for(const q in r)q.split(",").indexOf(g.toString())>=0&&(I=q);if(!I){for(const q in r)for(const{$element:N}of r[q].rules)N.style.display="none";return}const k=b.position,T=b.getWorldDirection(new R.Vector3),P=p.clientWidth,V=p.clientHeight;if(y!==Te.Five.Mode.Panorama){for(const q in r)for(const{$element:N}of r[q].rules)N.style.display="none";return}for(const q in r)for(const{$element:N}of r[q].rules)N.style.display=q===I?"block":"none";const[L]=r[I].origins.slice().filter(q=>q.observers.indexOf(g)>=0).sort((q,N)=>{const G=q.clone().setY(0).sub(k).normalize().angleTo(T.clone().setY(0)),_=N.clone().setY(0).sub(k).normalize().angleTo(T.clone().setY(0));return G-_});for(const{rule:q,vertical:N,$element:G}of r[I].rules){const[_,Q]=q,F=G.querySelector(".PanoRulerPlugin-rule-line");if(!F)return;if(!L){G.style.display="none";continue}if(_!==L&&Q!==L){G.style.display="none";continue}if(_.distanceTo(Q)<.3){G.style.display="none";continue}if(_.observers.indexOf(g)===-1||Q.observers.indexOf(g)===-1){G.style.display="none";continue}if(_.clone().sub(k).normalize().angleTo(T)>Math.PI/2){G.style.display="none";continue}if(Q.clone().sub(k).normalize().angleTo(T)>Math.PI/2){G.style.display="none";continue}const $=_.distanceTo(Q);if(Q.clone().sub(Q.clone().sub(_).divide(new R.Vector3(2,2,2))).distanceTo(k)/$>8){G.style.display="none";continue}const we=_.clone().project(b),Ce=(we.x+1)/2*P,pe=(-we.y+1)/2*V,Be=Q.clone().project(b),ve=(Be.x+1)/2*P,We=(-Be.y+1)/2*V,fe=Math.sqrt(Math.pow(ve-Ce,2)+Math.pow(We-pe,2));let ye=fe,Le=50;const me=c({x:~~Ce,y:~~pe},{x:~~ve,y:~~We},P,V);if(me&&me.length===1&&(L===_?(ye=Math.sqrt(Math.pow(me[0].x-Ce,2)+Math.pow(me[0].y-pe,2)),Le=ye/fe*50):L===Q&&(ye=Math.sqrt(Math.pow(me[0].x-ve,2)+Math.pow(me[0].y-We,2)),Le=100-ye/fe*50)),me&&me.length===2){const re={x:(me[0].x+me[1].x)/2,y:(me[0].y+me[1].y)/2};Le=Math.sqrt(Math.pow(re.x-Ce,2)+Math.pow(re.y-pe,2))/fe*100}const ct=(Math.PI/2-Math.atan2(ve-Ce,pe-We))/Math.PI*180,ke=F.querySelector(".PanoRulerPlugin-rule-label"),nt=ke.children[0].clientWidth;nt>=fe||nt/2>=Le/100*fe||nt/2>=(1-Le/100)*fe?F.style.display="none":(F.style.display="block",F.style.width=fe+"px",F.style.left=Ce+"px",F.style.top=pe+"px",F.style.transform=`rotate(${-ct}deg)`,ke.style.left=`${Le}%`)}},h=()=>Jh(d),u=()=>{var p,g;return e.loaded?(e.enable||(s.setAttribute("class","PanoRulerPlugin"+(e.options.className?" "+e.options.className:"")),(g=(p=i.getElement())==null?void 0:p.parentElement)==null||g.append(s),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),s&&s.remove(),e.enable=!1),!0);function A(p){if(p.distanceText&&p.distanceText!==e.options.distanceText){const g=p.distanceText;e.options.distanceText=g,Object.values(r).forEach(b=>{b.rules.forEach(y=>{const[I,k]=y.rule,T=I.distanceTo(k),P=y.$element.querySelector(".PanoRulerPlugin-rule-label-name");P&&(P.innerText=g(T))})})}}return{enable:u,disable:m,load:l,state:e,changeConfigs:A}};function IA(i){ue(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 _l(i,t,e){const n=i.slice();return n[6]=t[e],n}function PA(i){let t,e=i[0].children,n=[];for(let s=0;s<e.length;s+=1)n[s]=Wl(_l(i,e,s));return{c(){t=x("div");for(let s=0;s<n.length;s+=1)n[s].c();w(t,"class","rule-mixed-line svelte-1h27ktp")},m(s,o){B(s,t,o);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(t,null)},p(s,o){if(o&9){e=s[0].children;let r;for(r=0;r<e.length;r+=1){const a=_l(s,e,r);n[r]?n[r].p(a,o):(n[r]=Wl(a),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=e.length}},d(s){s&&O(t),Tt(n,s)}}}function EA(i){let t,e;return{c(){t=x("em"),w(t,"class",e=Re(i[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3])},m(n,s){B(n,t,s)},p(n,s){s&1&&e!==(e=Re(n[0].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),s&8&&w(t,"style",n[3])},d(n){n&&O(t)}}}function Wl(i){let t,e,n=`${i[6].width}px`;return{c(){t=x("div"),w(t,"class",e=Re(i[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp"),w(t,"style",i[3]),z(t,"width",n)},m(s,o){B(s,t,o)},p(s,o){o&1&&e!==(e=Re(s[6].state?"em-solid":"em-dotted")+" svelte-1h27ktp")&&w(t,"class",e),o&8&&w(t,"style",s[3]),(o&8||o&9&&n!==(n=`${s[6].width}px`))&&z(t,"width",n)},d(s){s&&O(t)}}}function kA(i){let t,e,n,s,o=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?EA:PA}let A=m(i),p=A(i);return{c(){t=x("div"),p.c(),e=ee(),n=x("div"),s=x("div"),r=Me(o),w(s,"class","PanoRulerPlugin-rule-label-name svelte-1h27ktp"),Ne(()=>i[4].call(s)),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){B(g,t,b),p.m(t,null),D(t,e),D(t,n),D(n,s),D(s,r),a=bo(s,i[4].bind(s))},p(g,[b]){A===(A=m(g))&&p?p.p(g,b):(p.d(1),p=A(g),p&&(p.c(),p.m(t,e))),b&1&&o!==(o=g[0].labelElement+"")&&Oe(r,o),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:J,o:J,d(g){g&&O(t),p.d(),a()}}}function MA(i,t,e){let n,{rulerItemProp:s}=t,o=!0,r,a="data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SJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=";function l(){r=this.offsetWidth,e(1,r)}return i.$$set=c=>{"rulerItemProp"in c&&e(0,s=c.rulerItemProp)},i.$$.update=()=>{i.$$.dirty&3&&(r>=s.width||r/2>=s.labelOffset/100*s.width||r/2>=(1-s.labelOffset/100)*s.width?e(2,o=!1):e(2,o=!0))},e(3,n=`--background-image: url(${a})`),[s,r,o,n,l]}class xA extends le{constructor(t){super(),ae(this,t,MA,kA,oe,{rulerItemProp:0},IA)}}function Fl(i,t,e){const n=i.slice();return n[12]=t[e],n}function Yl(i){let t,e;return t=new xA({props:{rulerItemProp:i[12]}}),{c(){ie(t.$$.fragment)},m(n,s){te(t,n,s),e=!0},p(n,s){const o={};s&1&&(o.rulerItemProp=n[12]),t.$set(o)},i(n){e||(M(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){ne(t,n)}}}function DA(i){let t,e,n=i[0],s=[];for(let r=0;r<n.length;r+=1)s[r]=Yl(Fl(i,n,r));const o=r=>j(s[r],1,1,()=>{s[r]=null});return{c(){t=x("div");for(let r=0;r<s.length;r+=1)s[r].c()},m(r,a){B(r,t,a);for(let l=0;l<s.length;l+=1)s[l]&&s[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=Fl(r,n,l);s[l]?(s[l].p(c,a),M(s[l],1)):(s[l]=Yl(c),s[l].c(),M(s[l],1),s[l].m(t,null))}for(de(),l=n.length;l<s.length;l+=1)o(l);he()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)M(s[a]);e=!0}},o(r){s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)j(s[a]);e=!1},d(r){r&&O(t),Tt(s,r)}}}function SA(i,t,e){var p,g,b,y;let{five:n}=t,{rulerDatas:s}=t,{options:o}=t,r=[];const a=((g=(p=n.getElement())==null?void 0:p.parentElement)==null?void 0:g.clientWidth)||0,l=((y=(b=n.getElement())==null?void 0:b.parentElement)==null?void 0:y.clientHeight)||0,c=(I,k)=>{const T=[[{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}]],P=[];for(let V=0;V<T.length;V++){const L=Zh([I,k],[T[V][0],T[V][1]],!0);L&&P.push(L)}return P.length===0?!1:P},d=(I,k)=>{const T=I.clone().project(n.camera),P=(T.x+1)/2*a,V=(-T.y+1)/2*l,L=k.clone().project(n.camera),W=(L.x+1)/2*a,q=(-L.y+1)/2*l,N=Math.sqrt(Math.pow(W-P,2)+Math.pow(q-V,2));return{startLeft:P,startTop:V,endLeft:W,endTop:q,distance:N}},h=(I,k,T)=>{const P=n.camera.position,V=n.camera.getWorldDirection(new R.Vector3),L=I.clone().sub(P).normalize().angleTo(V),W=k.clone().sub(P).normalize().angleTo(V),q=I.distanceTo(k),G=k.clone().sub(k.clone().sub(I).divide(new R.Vector3(2,2,2))).distanceTo(P),{startLeft:_,startTop:Q,endLeft:F,endTop:Z,distance:X}=d(I,k),ce=-((Math.PI/2-Math.atan2(F-_,Q-Z))/Math.PI)*180;let se=!0;T||(se=!1),!Gt(I,T)&&!Gt(k,T)&&(se=!1),q<.3&&(se=!1),L>Math.PI/2&&(se=!1),W>Math.PI/2&&(se=!1),G/q>8&&(se=!1);let we=50,Ce=X;const pe=c({x:~~_,y:~~Q},{x:~~F,y:~~Z});if(pe&&pe.length===1&&(Gt(I,T)?(Ce=Math.sqrt(Math.pow(pe[0].x-_,2)+Math.pow(pe[0].y-Q,2)),we=Ce/X*50):Gt(k,T)&&(Ce=Math.sqrt(Math.pow(pe[0].x-F,2)+Math.pow(pe[0].y-Z,2)),we=100-Ce/X*50)),pe&&pe.length===2){const Be={x:(pe[0].x+pe[1].x)/2,y:(pe[0].y+pe[1].y)/2};we=Math.sqrt(Math.pow(Be.x-_,2)+Math.pow(Be.y-Q,2))/X*100}return{startLeft:_,startTop:Q,distance:X,deg:ce,visible:se,labelOffset:we,ruleLength:q}},u=()=>{const I=n.panoIndex,k=s.find(N=>N.panoIndex===I);if(!k)return e(0,r=[]);if(n.currentMode!==Te.Five.Mode.Panorama)return e(0,r=[]);const T=n.camera.position,P=n.camera.getWorldDirection(new R.Vector3),V=k.lines.map(N=>new R.Vector3(N.start[0],-N.start[1],-N.start[2])),L=k.lines.map(N=>new R.Vector3(N.end[0],-N.end[1],-N.end[2])),[W]=V.concat(L).sort((N,G)=>{const _=N.clone().setY(0).sub(T).normalize().angleTo(P.clone().setY(0)),Q=G.clone().setY(0).sub(T).normalize().angleTo(P.clone().setY(0));return _-Q}),q=k.lines.map(N=>{var Ce,pe;const G=N.start,_=N.end,{startLeft:Q,startTop:F,distance:Z,deg:X,visible:$,labelOffset:ce,ruleLength:se}=h(new R.Vector3(G[0],-G[1],-G[2]),new R.Vector3(_[0],-_[1],-_[2]),W),we=[];return N.children&&((Ce=N.children)==null?void 0:Ce.length)>0&&((pe=N.children)==null||pe.forEach(Be=>{const ve=Be.start,We=Be.end,{distance:fe}=d(new R.Vector3(ve[0],-ve[1],-ve[2]),new R.Vector3(We[0],-We[1],-We[2]));we.push({width:fe,state:Be.state})})),{width:Z,left:Q,top:F,rotateDeg:X,state:N.state,children:we,labelOffset:ce,visible:$,labelElement:o.distanceText(se)}});e(0,r=q)},m=()=>Ao(u),A=Sa(u,80);return vt(()=>{u(),n.on("panoArrived",u),n.on("modeChange",u),n.on("cameraDirectionUpdate",m),n.on("movingToPano",m),n.on("mouseWheel",()=>A()),n.on("pinchGesture",()=>A())}),Lt(()=>{n.off("panoArrived",u),n.off("modeChange",u),n.off("cameraDirectionUpdate",m),n.off("movingToPano",m),n.off("mouseWheel",()=>A()),n.off("pinchGesture",()=>A())}),i.$$set=I=>{"five"in I&&e(1,n=I.five),"rulerDatas"in I&&e(2,s=I.rulerDatas),"options"in I&&e(3,o=I.options)},[r,n,s,o]}class TA extends le{constructor(t){super(),ae(this,t,SA,DA,oe,{five:1,rulerDatas:2,options:3})}}let LA=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,s;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=H(H({},this.state.options),e.options||{}),(n=e.options)!=null&&n.className&&this.container.classList.add((s=e.options)==null?void 0:s.className)),this.five.once("modelLoaded",()=>U(this,null,function*(){var o,r;(r=(o=this.five.getElement())==null?void 0:o.parentNode)==null||r.append(this.container)})),this.five.once("dispose",()=>this.dispose())}load(t){return U(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 U(this,null,function*(){var t;if(this.state.enabled){if(!this.panoRulerProData||!this.container)return;this.rulerItems=new TA({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 jA=(i,t)=>new LA(i,t),zA="data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pEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";function OA(){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(${zA})`,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 BA=new E.TextureLoader;function ns(i){return U(this,null,function*(){return new Promise((t,e)=>{BA.load(i,t,void 0,e)}).then(t=>(t.encoding=E.sRGBEncoding,t))})}const Ls={userAction:!0};class VA extends Bn{constructor(e,n){super(e,n);f(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:this.absoluteUrl("/release/web/v3/north-point-circle.96498e69.png"),entryDoorImageUrl:this.absoluteUrl("/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,s,o;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(),(o=(s=this.entryDoorMesh)==null?void 0:s.material.map)==null||o.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,s;e!==this.five.panoIndex&&((n=this.compassMeshTween)==null||n.dispose(),(s=this.compassMesh)==null||s.material.setValues({opacity:0}))});f(this,"onFivePanoArrived",e=>{var s,o,r,a,l,c,d;const n=(r=(o=(s=this.five.work)==null?void 0:s.observers)==null?void 0:o[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=po(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 s,o;this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,n>.66&&this.five.getCurrentState().mode==="Panorama"?(s=this.roomInfoInstance)==null||s.show():(o=this.roomInfoInstance)==null||o.hide())});f(this,"onFiveModeChange",(e,n,s,o,r)=>{e!==n&&this.setState({visible:e===Te.Five.Mode.Panorama},{userAction:r})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:H(H({},this.state.config),n||{})})}enable(e=Ls){this.setState({enabled:!0},e)}disable(e=Ls){this.setState({enabled:!1},e)}show(e=Ls){if(this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=Ls){if(this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,n={userAction:!0}){var o,r;const s=JSON.parse(JSON.stringify(this.state));this.state={visible:(o=e.visible)!=null?o:s.visible,enabled:(r=e.enabled)!=null?r:s.enabled,config:H(H({},s.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:s,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,s=!0){return U(this,null,function*(){const o=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(o)&&(this.hooks.emit("dataChange",o,this.data),this.data=H({},o),this.init(),n&&this.setState(n,{userAction:s}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return U(this,null,function*(){var s,o,r,a;const e=(o=(s=this.data)==null?void 0:s.north_rad)!=null?o: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=OA(),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 U(this,null,function*(){const e=this.state.config.compassImageUrl,n=yield ns(e),s=new E.CircleGeometry(.7,32),o=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:0,depthTest:!1}),r=new E.Mesh(s,o);return r.name="pano-compass-mesh",r})}loadEntryDoorMesh(){return U(this,null,function*(){const e=this.state.config.entryDoorImageUrl,n=yield ns(e),s=new E.PlaneGeometry(.2,.16),o=new E.MeshBasicMaterial({map:n,transparent:!0,opacity:.8,depthTest:!1}),r=new E.Mesh(s,o);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 vo(this.five).create3DDomContainer(e)}}const RA=(i,t)=>new VA(i,t),QA=1,GA=3,NA=new R.Color(16777215),HA=new R.Color(6522623),_A=new R.Color(16777215),WA=new R.Color(6522623),FA=6,YA=8,UA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAIVBMVEUAAAD////////////////////////////////////////PIev5AAAACnRSTlMAG/Py2baba05un7UgfgAAAHJJREFUKM9joBpgLHVSCRdA4metAoJlCJHmVWBgAeNzroKCCVCBLpjACqgJVjCBxRBT2FbBQQJYQAohsBAsUIUQWA4WiEIILAULeCEEloAFtBACizAEMLRgGIphLabDMJ2O6TlM72MGECIIMQIZIxqoBQCPvpJ/e9FaAAAAAABJRU5ErkJggg==",qh=new R.TextureLoader().load(UA),XA={pointTexture:qh,pointSize:FA,lineWidth:QA,lineColor:NA,pointColor:_A,lineRenderOrder:20,pointsRenderOrder:20},ZA={pointTexture:qh,pointSize:YA,lineWidth:GA,lineColor:HA,pointColor:WA,lineRenderOrder:10,pointsRenderOrder:10};function JA(i,t,e){var d,h,u,m,A;const n=(d=e==null?void 0:e.lineWidth)!=null?d:2,s=(h=e==null?void 0:e.lineColor)!=null?h:new R.Color(16777215),o=(u=e==null?void 0:e.pointSize)!=null?u:5,r=(m=e==null?void 0:e.lineRenderOrder)!=null?m:10,a=(A=e==null?void 0:e.lineRenderOrder)!=null?A:20,l=new ih.Line(i,t);l.setMaterial({linewidth:n,color:s}),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=o,e!=null&&e.pointColor&&c.color.set(e.pointColor).convertSRGBToLinear(),e!=null&&e.pointTexture&&(c.map=e.pointTexture),l}function Ul(i,t){const[e,n]=i.points,s=t==="light"?ZA:XA,o=JA(e.position,n.position,s);return o.name="normalLine_"+i.id,o}function Ln(i){const{x:t,y:e,z:n}=i;return!(Math.abs(t)>1||Math.abs(e)>1||Math.abs(n)>1)}function Fs(i){const{z:t}=i;return!(Math.abs(t)>1)}function qA(i){const t=document.createElement("div");return t.setAttribute("style","backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"),t.style.width="max-content",t.style.padding="3px 6px",t.style.lineHeight="1",t.style.textAlign="center",t.style.transform="translate(-50%, -50%)",t.style.fontSize="14px",t.style.color="#fff",t.style.cursor="pointer",t.style.userSelect="none",i!=null&&i.style&&Object.assign(t.style,i==null?void 0:i.style),t}function KA(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.position="absolute",t.style.left="0",t.style.top="0",t.style.width="0",t.style.height="0",t.style.transformOrigin="left top",i!=null&&i.style&&Object.assign(t.style,i.style),t}class Kh{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=qA({style:t.contentStyle}),this.containerDom=KA({style:t.containerStyle}),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.visibility="visible"}hide(){this.containerDom.style.visibility="hidden"}tempHide(){this.containerDom.style.opacity="0"}tempShow(){this.containerDom.style.opacity="1"}updateDomPosition(t){if(!this.ndcPosition){this.tempHide();return}const e=t.getElement();if(!e)return;const n=e.clientWidth,s=e.clientHeight,o=this.ndcPosition.clone().project(t.camera);if(!Fs(o)){this.tempHide();return}const r=(o.x+1)/2*n,a=-(o.y-1)/2*s;this.containerDom.style.transform=`translate(${r}px, ${a}px)`,this.tempShow()}}class $A extends Kh{constructor(e){var n;e.contentStyle=Ae(H({},e.contentStyle),{background:"rgba(195,195,195,0.70)",border:"0.5px solid rgba(255,255,255,0.6)",borderRadius:"999px"});super(e);f(this,"line");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 V;if(this.line.mesh.visible===!1){this.hide();return}const n=e.getElement();if(!n)return;const s=n.clientWidth,o=n.clientHeight,r=s/2,a=o/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=nn(l.position,c.position).clone().project(e.camera),m=new R.Vector2(d.x*r,d.y*a),A=new R.Vector2(h.x*r,h.y*a),p=m.distanceTo(A);if((()=>!(Math.abs(d.z)>1||Math.abs(h.z)>1||!Fs(d)&&!Fs(h)||!Fs(u)||p===0))()===!1){this.hide();return}const b=(u.x+1)/2*s,y=-(u.y-1)/2*o,k=-(Math.atan((m.y-A.y)/(m.x-A.x))*180)/Math.PI,T=this.containerDom.parentElement&&this.contentDom.clientWidth>p?-20:0;this.containerDom.style.transform=`translate(${b}px, ${y}px) rotate(${k}deg) translateY(${T}px)`,this.show(),(V=this.params.userDistanceItem)==null||V.update({line:this.line,polyline:this.line.getPolyline()});const P=this.getCurrentContent();this.contentDom.innerText=P}getCurrentContent(){var l,c,d,h;if(this.line.points.length<2)return"";const[e,n]=this.line.points,s=e.position.clone().distanceTo(n.position),o=(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,s),a=o!=null?o:r;return a!=null?a:s.toFixed(2)+"m"}}class tn{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");f(this,"visible");var s;if(this.id=at(),this.model=n,t.id===e.id)throw new Error("无效的线段, 一个点无法构成线段");typeof n.config.defaultText=="string"&&(this.text=n.config.defaultText),this.hook=new Te.Subscribe,this.points=[t,e],this.mesh=Ul(this,"normal"),this.lightMesh=Ul(this,"light"),this.distanceItem=new $A({line:this,clickCallback:()=>this.hook.emit("selected",this),userDistanceItem:(s=this.model.config)!=null&&s.userDistanceItemCreator?this.model.config.userDistanceItemCreator():void 0}),t.lines.push(this),e.lines.push(this)}hide(){this.visible&&(this.visible=!1,this.mesh.visible=!1,this.distanceItem.hide())}show(){this.visible||(this.visible=!0,this.mesh.visible=!0,this.distanceItem.show())}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 tn(this.points[0].clone(),this.points[1].clone(),this.model);return t.text=this.text,t}}function ev(i,t){for(let e=0,n=t.length;e<n;e++)if(i===t[e])return t.splice(e,1)[0]}class ut{constructor(t){f(this,"id");f(this,"lines");f(this,"position");f(this,"type","point");if(this.id=at(),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){ev(t,this.lines)}clone(){return new ut(this.position)}}const js=i=>i.preventDefault();let Eo=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,"editParams");f(this,"magnifierParams");f(this,"mouseGroup");f(this,"container");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,s;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.editParams=t.editParams,this.magnifier=t.magnifier,this.container=t.container,this.isMobile=(s=(n=t.openParams)==null?void 0:n.isMobile)!=null?s:!1,this.userDistanceItemCreator=t.userDistanceItemCreator,this.group=t.group,this.mouseGroup=t.mouseGroup,this.dashed=new tn(new ut([0,0,0]),new ut([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 tn(new ut([0,0,0]),new ut([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",js),e.addEventListener("contextmenu",js))}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 s=t.face.normal.clone().multiplyScalar(.05),r=t.point.clone().add(s).clone().add(s);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",js),t.removeEventListener("contextmenu",js))}},jn=class{constructor(t){f(this,"id",at());f(this,"lines",[]);f(this,"points",[]);f(this,"visiblePanoIndexes");f(this,"model");f(this,"type","polyline");f(this,"hook",new Te.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(),s=t.lines.map(a=>{const[l,c]=a.points,d=e(l),h=e(c);if(!d||!h)throw new Error("线上的点不存在");const u=new tn(d,h,this.model);return u.id=a.id,u.text=a.text,u}),o=n();this.points.push(...o),this.lines.push(...s),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 ut(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 tv(i){const t=[...new Set(i)];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),s=sf(e,void 0,3),o=new E.BufferGeometry;return o.setAttribute("position",n),o.setIndex(s),o.name="PolygonGeometry",o}const nv=new E.BufferGeometry;class eu extends $h{constructor(e){super();f(this,"isPolygonMesh",!0);f(this,"geometry",new E.BufferGeometry);f(this,"isBlank",!0);f(this,"points",[]);const n=new E.MeshBasicMaterial({color:4090367,transparent:!0,side:E.DoubleSide,depthTest:!0,opacity:.5}),s=new E.MeshBasicMaterial({color:16777215,transparent:!0,side:E.DoubleSide,depthTest:!1,depthWrite:!1,opacity:.3}),o=new E.Mesh(this.geometry,n),r=new E.Mesh(this.geometry,s);o.renderOrder=1,r.renderOrder=0,e&&this.updatePoints(e),this.add(o,r)}updatePoints(e){this.points=e;const n=tv(e);n?(this.geometry.copy(n),this.isBlank=!1):(this.geometry.copy(nv),this.isBlank=!0)}}function iv(i){const t=ov(i);if(t.length===0)return;let e=0,n=new R.Vector3;for(const[s,o,r]of t){const a=tu(s,o,r),l=sv(s,o,r,a);e+=a,n.add(l)}return n=n.divideScalar(e),{center:n,area:e}}function tu(i,t,e){return t.clone().sub(i).cross(e.clone().sub(i)).length()/2}function sv(i,t,e,n){const s=n!=null?n:tu(i,t,e);return nn(i,t,e).multiplyScalar(s)}function ov(i){var s;const t=i.getAttribute("position"),e=(s=i.getIndex())==null?void 0:s.array;if(!t||!e)return[];let n=[];for(let o=0;o<e.length;o+=3){const r=e[o],a=e[o+1],l=e[o+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 rv extends Kh{constructor(e){e.containerStyle=Ae(H({},e.containerStyle),{zIndex:"1"}),e.contentStyle=Ae(H({},e.contentStyle),{background:"#6386FF",borderRadius:"2px"});super(e);f(this,"area");this.area=e.area,this.containerDom.appendChild(this.contentDom)}updateArea(e,n){const s=n!=null?n:this.area.polygon.geometry,o=iv(s);if(!o){this.ndcPosition=null,this.updateDomPosition(e);return}const{area:r,center:a}=o;this.ndcPosition=a,this.updateDomPosition(e),this.updateAreaText(r)}updateAreaText(e,n){const{unit:s="m²",fix:o=2}=n!=null?n:{};this.contentDom.innerText=`${e.toFixed(o)}${s}`}}class Jr{constructor(t,e){f(this,"id",at());f(this,"selected",!1);f(this,"text");f(this,"type","area");f(this,"lightMesh");f(this,"areaItem");f(this,"hook",new Te.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 eu(t),this.polyline=new jn({model:e.model}),this.areaItem=new rv({area:this,clickCallback:(s,o)=>{const r=s.clientX+"px",a=s.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)}get isClosed(){var t;return this.points.length>=4&&((t=this.points.at(0))==null?void 0:t.equals(this.points.at(-1)))}addPoints(t){var s;this.points=this.points.concat(t);const e=this.points.at(-2),n=this.points.at(-1);if(e&&n){const o=new tn(new ut(e),new ut(n),this.polyline.model);this.polyline.addLine(o),this.meshContainer.add(o.mesh),this.five&&(o.distanceItem.setCanSelect(!1),o.distanceItem.appendTo(this.domContainer),o.distanceItem.update(this.five))}(s=this.meshContainer)!=null&&s.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)}popPoint(){this.points.pop();const t=this.polyline.lines.pop();t==null||t.remove(),this.polygon.updatePoints(this.points),this.areaItem.updateArea(this.five),this.points.length<3&&(this.planeHelper=null)}complete(){this.points.at(-1).equals(this.points[0])||this.addPoints(this.points[0])}hideArea(){this.polygon.visible=!1,this.areaItem.hide()}showArea(){this.polygon.visible=!0,this.areaItem.show()}projectPoint(t){return t&&(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 Xl(i,t){const e=Array.isArray(t)?t:[t];for(let n=0;n<e.length;n++){const s=e[n],o=i.start,r=i.end,a=s.start,l=s.end;if(Ni(o,a)||Ni(o,l)||Ni(r,a)||Ni(r,l)||Ni(o,r))continue;const c=zs(o,r,a),d=zs(o,r,l),h=zs(a,l,o),u=zs(a,l,r);if(c!==d&&h!==u||c===0&&Os(o,r,a)||d===0&&Os(o,r,l)||h===0&&Os(a,l,o)||u===0&&Os(a,l,r))return!0}return!1}function Ni(i,t){return i.x===t.x&&i.z===t.z&&i.y===t.y}function zs(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 Os(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 nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;function qr(i){const{x:t,y:e}=i.center,{clientWidth:n,clientHeight:s}=i.target,o=i.target.getBoundingClientRect(),r=new R.Vector2(t,e).sub(new R.Vector2(o.left,o.top)),a=new R.Vector2(r.x/n*2-1,-(r.y/s)*2+1);return{point:r,ndcPoint:a}}function kr(i,t){const e=qr(t).ndcPoint,n=new R.Raycaster;return n.setFromCamera(e,i.camera),i.model.intersectRaycaster(n)}const $n=()=>!1;class av{constructor(t,e){f(this,"hook",new Te.Subscribe);f(this,"outOfFive",!1);f(this,"five");f(this,"hammer");f(this,"mode");f(this,"pointSelectorHelper");f(this,"enabled",!1);f(this,"pressDown",!1);f(this,"adherePoints",null);f(this,"adherePointsRadius",.1);f(this,"lastFiveHelperVisible");f(this,"select",t=>{t&&this.updatePointSelectorHelperIntersect(t);const e=this.hook.emit("wantsSelect",this.position);return e||(this.pointSelectorHelper.hide(),this.hook.emit("select",this.position)),!e});f(this,"onEnter",()=>{this.pointSelectorHelper.show(),this.outOfFive=!1,this.hook.emit("intersectionUpdate",this.position)});f(this,"onLeave",()=>{this.pointSelectorHelper.hide(),this.outOfFive=!0,this.hook.emit("intersectionUpdate",null)});f(this,"onTap",t=>{const[e]=kr(this.five,t);e!=null&&e.face&&this.select(e)});f(this,"onPan",t=>{if(!this.pressDown)return;const[e]=kr(this.five,t);e!=null&&e.face&&this.intersectionOnModelUpdate(e)});f(this,"onPress",t=>{const[e]=kr(this.five,t);e!=null&&e.face&&(this.pressDown=!0,this.intersectionOnModelUpdate(e))});f(this,"onPanEnd",()=>{this.pressDown&&(this.pressDown=!1,this.select())});f(this,"intersectionOnModelUpdate",t=>{this.pointSelectorHelper.show(),this.updatePointSelectorHelperIntersect(t)});f(this,"updateByMousePosition",t=>{const e=this.five.getElement();if(!e)return;const{clientX:n,clientY:s}=t,o={x:n/e.clientWidth,y:1-s/e.clientHeight};this.updateByNdcPosition(o)});f(this,"updateByNdcPosition",t=>{const e=mh(this.five,t),n=(()=>e?Ae(H({},e),{isVirtual:!1}):Ae(H({},cv(this.five,t)),{isVirtual:!0}))();this.updatePointSelectorHelperIntersect(n)});f(this,"updatePointSelectorHelperIntersect",t=>{var s;const e=H({},t);let n=!1;if(((s=this.adherePoints)==null?void 0:s.length)>0&&typeof this.adherePointsRadius=="number"){for(const o of this.adherePoints)if(o.distanceTo(t.point)<this.adherePointsRadius){e.point=o.clone(),n=!0;break}}this.pointSelectorHelper.updateWithIntersect(e,{emitEvent:!1}),this.hook.emit("intersectionUpdate",e,n)});f(this,"onFiveWantsPanGesture",()=>{if(this.pressDown)return!1});f(this,"renderScreenCenter",()=>{this.updateByNdcPosition({x:.5,y:.5})});f(this,"emitIntersectionUpdate",t=>{this.hook.emit("intersectionUpdate",t)});var o,r;this.five=t;const n=(o=e==null?void 0:e.mode)!=null?o:"auto";n==="auto"?this.mode=nu?"fixed":"cursor":this.mode=n;const s={autoFixPCPosition:this.mode==="cursor",initialPosition:this.mode==="fixed"?{left:"35%",top:"20%"}:void 0};this.pointSelectorHelper=new vh(t,Ae(H({},e==null?void 0:e.pointSelectorHelperParams),{magnifierParams:H(H({},s),(r=e==null?void 0:e.pointSelectorHelperParams)==null?void 0:r.magnifierParams)})),this.pointSelectorHelper.hide()}get position(){return this.outOfFive?null:this.pointSelectorHelper.position}enable(){if(this.enabled)return;this.enabled=!0,this.pointSelectorHelper.enable();const t=this.five.getElement();if(!t)throw new Error("five element not found");this.hammer||(this.hammer=new ss(t)),this.mode==="cursor"?(this.five.on("intersectionOnModelUpdate",this.intersectionOnModelUpdate),this.five.on("wantsPanGesture",this.onFiveWantsPanGesture),this.five.on("wantsMoveToPano",$n),this.five.on("wantsChangeMode",$n),this.five.on("wantsTapGesture",$n),this.lastFiveHelperVisible=this.five.helperVisible,this.five.helperVisible=!1,t.addEventListener("mousemove",this.updateByMousePosition),t.addEventListener("mouseenter",this.onEnter),t.addEventListener("mouseout",this.onLeave),this.hammer.on("tap",this.onTap),this.hammer.on("pan",this.onPan),this.hammer.on("press",this.onPress),this.hammer.on("panend",this.onPanEnd)):this.mode==="fixed"&&(this.five.on("panGesture",this.renderScreenCenter),this.five.on("interiaPan",this.renderScreenCenter),this.renderScreenCenter(),this.pointSelectorHelper.show()),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.intersectionOnModelUpdate),this.five.off("wantsPanGesture",this.onFiveWantsPanGesture),this.five.off("wantsMoveToPano",$n),this.five.off("wantsChangeMode",$n),this.five.off("wantsTapGesture",$n),this.five.helperVisible=this.lastFiveHelperVisible,t==null||t.removeEventListener("mousemove",this.updateByMousePosition),t==null||t.removeEventListener("mouseenter",this.onEnter),t==null||t.removeEventListener("mouseout",this.onLeave),this.hammer.off("tap",this.onTap),this.hammer.off("pan",this.onPan),this.hammer.off("press",this.onPress),this.hammer.off("panend",this.onPanEnd),this.five.off("panGesture",this.renderScreenCenter),this.five.off("interiaPan",this.renderScreenCenter),this.pointSelectorHelper.hooks.off("intersectionUpdate",this.emitIntersectionUpdate)}dispose(){this.disable(),this.pointSelectorHelper.dispose()}setAdherePoints(t,e){t?this.adherePoints=Array.isArray(t)?t:[t]:this.adherePoints=null,typeof e=="number"&&(this.adherePointsRadius=e)}}function lv(i,t){const{x:e,y:n}=t,s=e*2-1,o=n*2-1,r=new R.Vector2().fromArray([s,o]),a=new R.Raycaster;return a.setFromCamera(r,i.camera),a}function cv(i,t){const e=lv(i,t),n=3,s=new R.Vector3().addVectors(e.ray.origin,e.ray.direction.clone().normalize().multiplyScalar(n)),o=e.ray.direction.clone().negate();return{distance:n,point:s,object:new R.Object3D,face:new R.Face3(0,0,0,o)}}const dv=`
|
|
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
|
`,Zl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTciIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMC43MDYl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m96rSoEPa6Y0+MNUcKNp0D9l//jem4fFf6ontdHFH9Yz+3v6I3xW3qjfkDfGv2173719f+sQc/zLAb/D0EI6cG68deIAAAAAElFTkSuQmCC";class Ta{constructor(t,e){f(this,"visible",!1);f(this,"five");f(this,"lines",[]);f(this,"points",[]);f(this,"onClick");f(this,"cancel");f(this,"content",document.createElement("div"));f(this,"container",document.createElement("div"));f(this,"masking",document.createElement("div"));f(this,"target");f(this,"clickHandler",t=>{console.log("on click handler",this.onClick),this.onClick(t,this.target)});f(this,"cancelHandler",()=>{this.cancel(this.target)});f(this,"hover",()=>{this.content.style.backgroundImage=`url(${hv})`});f(this,"unHover",()=>{this.content.style.backgroundImage=`url(${Zl})`});var s,o;this.five=t,this.onClick=(e==null?void 0:e.onClick)||(()=>{}),this.cancel=(e==null?void 0:e.cancel)||(()=>{}),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(${Zl})`,this.content.innerHTML=`
|
|
298
298
|
${dv}
|
|
299
299
|
<span>${(o=(s=e.i18n)==null?void 0:s.call(e,"删除"))!=null?o:"删除"}</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.clickHandler),this.content.addEventListener("mouseenter",this.hover),this.content.addEventListener("mouseleave",this.unHover),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelHandler),this.masking.addEventListener("touchstart",this.cancelHandler)}dispose(){this.content.removeEventListener("click",this.clickHandler),this.content.removeEventListener("mouseenter",this.hover),this.content.removeEventListener("mouseleave",this.unHover),this.container.remove(),this.masking.removeEventListener("click",this.cancelHandler),this.masking.removeEventListener("touchstart",this.cancelHandler),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}setTarget(t){return this.target=t,this}updatePosition(t,e){if(t&&e)return this.container.style.left=t,this.container.style.top=e,this.container.style.transform="",this.show();if(this.lines.length===0)return this;const n=this.points.map(A=>A.position),s=n.map(A=>A.clone().project(this.five.camera));if(s.some(A=>Math.abs(A.z)>1))return this.hide();const o=s.map(A=>A.x),r=s.map(A=>A.y),a=(Math.min(...o)+Math.max(...o))/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 A=(r[1]-r[0])/(o[1]-o[0]),g=-((r[1]+r[0])/2-1)/2*c.clientHeight;Math.abs(A)>.4&&(u=d+57,m=g)}return this.container.style.top="0",this.container.style.left="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.unHover(),this}show(){return this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.pointerEvents="auto",this}}function ro(i){const t=(o,r,a)=>{const l=o.lines.find(d=>d.points.findIndex(({id:u})=>u===o.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)}function La(i,t){const e=i.x-t[0].x,n=i.y-t[0].y,s=t[1].x-t[0].x,o=t[1].y-t[0].y,r=e*s+n*o,a=s*s+o*o,l=r/a;let c,d;return l<0||uv(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*s,d=t[0].y+l*o),new R.Vector2(c,d)}function uv(i,t){return i.x===t.x&&i.y===t.y}const Jl=()=>!1;class dn extends Eo{constructor(e){var n;super(e);f(this,"type","edit");f(this,"polyline");f(this,"area");f(this,"hasAppendDashed",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"pointSelector");f(this,"deleteDom");f(this,"onIntersectionUpdate",Sa((e,n)=>{this.currentMeasureType==="area"&&typeof n=="boolean"&&(n?this.hook.emit("readyComplete"):this.hook.emit("notReadyComplete")),this.updateDashed()},20));f(this,"revoke",()=>{this.currentMeasureType==="area"?this.revokeArea():this.currentMeasureType==="line"&&this.revokeLine()});f(this,"revokeArea",()=>{if(this.area.points.length!==0){if(this.area.popPoint(),this.hook.emit("pointsChange",this.area.points),this.area.points.length===0){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.remove(),this.five.needsRender=!0,this.hook.emit("revoke",{isEmpty:!0});return}else this.lastPoint=new ut(this.area.points[this.area.points.length-1]),this.updateDashed();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 s=n.lines[n.lines.length-1],o=s.findAnotherPoint(this.lastPoint);o&&(this.lastPoint=o,this.hook.emit("anchorChange",o.position),this.group.remove(s.mesh),n.removeLine(s),s.distanceItem.remove(),this.updateDashed(),this.hook.emit("pointsChange",n.lines),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.dashed.hide(),this.perpendicularDashed.hide(),this.area.hideArea()});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onWantsSelect",()=>{if(this.currentMeasureType==="area"){const e=this.area.polygon.isBlank||this.area.polygon.visible===!1;if(this.area.points.length>=3&&e)return!1}});f(this,"onSelect",()=>{var o,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=(()=>{var c,d;if(this.currentMeasureType==="area")return this.area.projectPoint((c=this.pointSelector.position)==null?void 0:c.point);if(this.currentMeasureType==="line")return(d=this.pointSelector.position)==null?void 0:d.point})();if(!e)return;const n=new ut(e),s=this.lastPoint;if(!(s!=null&&s.position&&n.position.equals(s==null?void 0:s.position))){if(this.lastPoint=n,this.currentMeasureType==="line"){if(n&&s){const d=new tn(s,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=(o=this.editParams)==null?void 0:o.autoEndConfig)==null?void 0:r.line;typeof c=="number"&&(this.polyline.getPointLength()>=c?this.complete():this.polyline.getPointLength()===c-1&&this.hook.emit("readyComplete")),this.hook.emit("pointsChange",this.polyline.points)}else if(this.currentMeasureType==="area"){if(this.area.addPoints(n.position),this.area.isClosed){this.complete();return}this.area.points.length>=3?this.pointSelector.setAdherePoints(this.area.points[0]):this.pointSelector.setAdherePoints(null);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.complete():this.area.points.length===c-1&&this.hook.emit("readyComplete")),this.hook.emit("pointsChange",this.area.points)}this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)}});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"updateDashed",()=>{var s;if(!this.lastPoint)return;const e=this.lastPoint.position,n=(()=>{var o,r;if(this.currentMeasureType==="area")return this.area.projectPoint((o=this.pointSelector.position)==null?void 0:o.point);if(this.currentMeasureType==="line")return(r=this.pointSelector.position)==null?void 0:r.point})();if(!n){this.dashed.hide();return}if(this.dashed.show(),this.dashed.setPoints(e,n),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed),this.currentMeasureType==="area")if(this.area.areaItem.setCanSelect(!1),this.area.points.length>=2){const o=(s=this.pointSelector.position)==null?void 0:s.point;if(o){const d=o,h=n;this.perpendicularDashed.setPoints(d,h),this.perpendicularDashed.show()}else this.perpendicularDashed.hide();const r=this.area.polyline.lines.map(d=>({start:d.points[0].position,end:d.points[1].position})),a=Xl({start:e,end:n},r),l=Xl({start:n,end:this.area.points[0]},r);if(a||l)this.area.hideArea(),this.hook.emit("allowAddPointStateChange","forbid");else{this.area.showArea();const d=[...this.area.points,n];this.area.polygon.updatePoints(d),this.area.areaItem.updateArea(this.five),this.hook.emit("allowAddPointStateChange","allow")}}else this.area.hideArea(),this.perpendicularDashed.hide();this.five.needsRender=!0});f(this,"wantsTapGesture",e=>{var p,g;if(this.editParams.pointSelectorMode==="cursor"||this.lastPoint)return!1;const n=this.model.areas.map(b=>e.intersectObject(b.polygon,!0)[0]).sort((b,y)=>b.distance-y.distance),s=(g=(p=n[0])==null?void 0:p.object)==null?void 0:g.parent;if(s!=null&&s.isPolygonMesh){const b=this.model.areas.find(y=>y.polygon===s);if(b){const{x:y,y:I}=n[0].point.clone().project(this.five.camera),k=`${(y+1)/2*100}%`,T=`${(-I+1)/2*100}%`;return this.chooseArea(b,{left:k,top:T}),!1}}const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const r=this.five.camera,a=o.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(b=>{const[y,I]=b.points,k=y.position.clone().project(r),T=I.position.clone().project(r);if(!Ln(k)&&!Ln(T))return null;const P=new R.Vector2(k.x*l,k.y*c),V=new R.Vector2(T.x*l,T.y*c);return{id:b.id,points:[P,V]}}).filter(b=>!!b);if(h.length===0)return;const m=h.map(b=>{const y=La(d,b.points);return{id:b.id,distance:y.distanceTo(d)}}).sort((b,y)=>b.distance-y.distance)[0];if(m.distance>20)return;const A=this.model.getAllLines().find(({id:b})=>b===m.id);if(A)return this.chooseLine(A),!1});f(this,"chooseLine",e=>{console.log(e);const n=ro(e);this.deleteDom.setTarget(n).setLines(n).updatePosition().show(),this.highlightLines(n),this.hook.emit("selectedChange",n)});f(this,"chooseArea",(e,n)=>{console.log("choose area"),this.deleteDom.setTarget(e).updatePosition(n.left,`calc(${n.top} - 1.5rem)`).show(),this.highlightArea(e)});f(this,"deleteArea",e=>{this.unHighlightArea(e),e.dispose(),this.deleteDom.hide()});f(this,"deleteLine",e=>{const n=e[0],s=this.model.getPolylineByLine(n);s&&(this.model.removePolyline(s),s.lines.forEach(o=>this.removeLine(o)),this.deleteDom.setLines([]).hide())});this.fiveElement=this.five.getElement(),this.deleteDom=new Ta(this.five,{i18n:this.config.i18n,onClick:(s,o)=>{var l;const r=o.type==="area",a=Array.isArray(o)&&((l=o[0])==null?void 0:l.type)==="line";r&&this.deleteArea(o),a&&this.deleteLine(o)},cancel:s=>{var a;this.deleteDom.hide();const o=s.type==="area",r=Array.isArray(s)&&((a=s[0])==null?void 0:a.type)==="line";o&&this.unHighlightArea(s),r&&this.unHighlightLines(s)}}).appendTo(this.container),this.pointSelector=new av(this.five,{mode:this.editParams.pointSelectorMode,pointSelectorHelperParams:{magnifierParams:this.magnifierParams}}),this.pointSelector.enable(),this.polyline=new jn({model:this.model}),this.area=new Jr(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),s.distanceItem.setCanSelect(!0),s.hook.on("selected",this.chooseLine),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateDomPosition(this.five),s.areaItem.setCanSelect(!0),s.hook.on("selected",this.chooseArea),this.group.add(s.polygon),s.polyline.lines.forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})}),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsToMoveToPano",Jl),this.pointSelector.hook.on("intersectionUpdate",this.onIntersectionUpdate),this.pointSelector.hook.on("select",this.onSelect),this.pointSelector.hook.on("wantsSelect",this.onWantsSelect),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged),this.five.helperVisible=!1,(n=this.fiveElement)==null||n.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e;super.dispose(),this.model.areas.forEach(n=>{(n.points.length<2||n.polygon.isBlank)&&this.model.removeArea(n)}),this.five.helperVisible=!0,this.pointSelector.disable(),this.dashed.remove(),this.perpendicularDashed.remove(),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.off("wantsToMoveToPano",Jl),this.pointSelector.hook.off("intersectionUpdate",this.onIntersectionUpdate),this.pointSelector.hook.off("select",this.onSelect),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.fiveElement)==null||e.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}selectPoint(){this.onSelect()}complete(){this.hook.emit("complete"),this.currentMeasureType==="area"?(this.area.points.length<3?this.deleteArea(this.area):(this.area.showArea(),this.area.complete(),this.area.hook.on("selected",this.chooseArea)),this.area=new Jr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addArea(this.area)):this.currentMeasureType==="line"&&(this.polyline.lines.forEach(e=>{e.hook.on("selected",this.chooseLine),e.distanceItem.setCanSelect(!0)}),this.polyline=new jn({model:this.model}),this.model.addPolyline(this.polyline)),this.pointSelector.setAdherePoints(null),this.dashed.hide(),this.perpendicularDashed.hide(),this.lastPoint=void 0}highlightArea(e){this.highlightLines(e.polyline.lines),this.five.needsRender=!0}unHighlightArea(e){this.unHighlightLines(e.polyline.lines),this.five.needsRender=!0}highlightLines(e){e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){e.forEach(n=>{n.selected=!1,n.distanceItem.unHighlight(),this.group.remove(n.lightMesh),this.five.needsRender=!0})}highlightLine(e){e.selected||(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}}class ql extends Eo{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(s=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(s.mesh.visible=!1),s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&(n.visiblePanoIndexes.includes(e)||n.lines.forEach(s=>{s.mesh.visible=!1,s.distanceItem.update(this.five)}))})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&n.visiblePanoIndexes.includes(e)&&n.lines.forEach(s=>{s.mesh.visible=!0,s.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)});const n=this.five.getElement();if(n){const s=new ss(n);this.hammer=s}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()}}function fv(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new R.Vector2(e,n)}function mv(i,t,e,n){const s=i.getElement();if(!s||t.length===0)return null;const o={width:s.clientWidth,height:s.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return Ln(l)?{distance:fv(l,o).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]}class Kl extends Eo{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=qr(e).point,s=(a=mv(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!s){this.editPointState=void 0;return}const o={point:s,associatedLines:ro(s.lines[0])};this.hook.emit("wantsDragLine",{point:s.id,lines:o.associatedLines.map(({id:l})=>l)})||(this.editPointState=o,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=qr(e).ndcPoint,s=new R.Raycaster;s.setFromCamera(n,this.five.camera);const[o]=this.five.model.intersectRaycaster(s);o&&this.onIntersectionUpdate(o)});f(this,"onIntersectionUpdate",(e,n)=>{if(this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(s=>{s.mesh.setPoints(s.points[0].position.clone(),s.points[1].position.clone()),s.lightMesh.setPoints(s.points[0].position.clone(),s.points[1].position.clone()),s.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 o=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(s=>s))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{var p;const n=this.model.areas.map(g=>e.intersectObject(g.polygon,!0)[0]).sort((g,b)=>g.distance-b.distance),s=(p=n[0])==null?void 0:p.object.parent;if(s instanceof eu){const g=this.model.areas.find(b=>b.polygon===s);if(g){const{x:b,y}=n[0].point.clone().project(this.five.camera),I=`${(b+1)/2*100}%`,k=`${(-y+1)/2*100}%`;return this.chooseArea(g,{left:I,top:k}),!1}}const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const r=this.five.camera,a=o.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,I=b.position.clone().project(r),k=y.position.clone().project(r);if(!Ln(I)&&!Ln(k))return null;const T=new R.Vector2(I.x*l,I.y*c),P=new R.Vector2(k.x*l,k.y*c);return{id:g.id,points:[T,P]}}).filter(g=>!!g);if(h.length===0)return;const m=h.map(g=>{const b=La(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 A=this.model.getAllLines().find(({id:g})=>g===m.id);if(A)return this.chooseLine(A),!1});f(this,"chooseLine",e=>{this.choose="line";const n=ro(e);this.deleteDom.setLines(n).updatePosition().show(),console.log(this.deleteDom),this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(s=>s))});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=>{console.log(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 Ta(this.five,{i18n:this.config.i18n,onClick:()=>{console.log(this.choose),this.choose==="line"?this.deleteLine():this.choose instanceof Jr&&this.deleteArea(this.choose)},cancel:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),s.hook.on("selected",this.chooseLine),s.distanceItem.setCanSelect(!0),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateArea(this.five),s.hook.on("selected",this.chooseArea),s.areaItem.setCanSelect(!0),this.group.add(s.polygon),s.polyline.lines.forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});const n=this.five.getElement();if(n){this.fiveElement=n;const s=new ss(n);this.hammer=s,s.on("pan",this.onPan),s.on("panstart",this.onPanStart),s.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}unHighlightArea(e){const n=e!=null?e:this.highlightedArea;n&&(this.unHighlightLines(n.polyline.lines),this.five.needsRender=!0)}highlightLines(e){this.unHighlightLines(),this.highlightedLines=e,e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){this.unHighlightArea();const n=e!=null?e:this.highlightedLines;n&&n.forEach(s=>{s.selected=!1,s.distanceItem.unHighlight(),this.group.remove(s.lightMesh),this.five.needsRender=!0})}}class ja{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"areas",[]);f(this,"hook",new Te.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)}removeArea(t){const e=this.areas.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("area 不存在"));return}this.areas.splice(e,1)}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 jn({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 gv(){}const{Vector2:pv}=E;function Av(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:s,left:o}=t.getBoundingClientRect();return Object.assign(new pv,{x:(i.x-o)/e*2-1,y:-(i.y-s)/n*2+1})}const vv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZ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GnehVDEFG8RDX3f+7UnchifRD1Oxxnjn/waMxJ14B8hytZ6zWb2LPkXvptdTK3LIpJN0hI7SMToqOU7VId+vFqY9Tk0VbmzgXx2l39FPaBv9kawugS6F2awa0wfoPfRWabs2AebJ0hliTufKGnJJSNzc0gcU82/eUh62iVNCRqP6ZUISCzjKAfq7tNev6Kd0mKzsBZJrlgQ+hXvQG1OwGi8hc4moxDrMRF/cjo8iDrLYc7brjRjegq/jHvTEJKzAtgtqrx1YhvHojrvxDbwNBepxLfaczaqA2lBrSUtqLmlKTahYe/1FVAaRS0KGymk6kTvzO0KH/9NuHZsAEAJAEFy+/0pfY2O7EMGZq2Hhmo3+Vq9yI83sCzjhythAbIDYQGyA2EBsIDZAbCA2QGwgNhAbIDYQGyA2EBuIDRAbiA0QG4gNxAaIDcQGiA3EBmIDxAZiA8QGYgOxAWIDsQEb7ePiGN5/UYAAAAAASUVORK5CYII=",yv=`
|
|
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.clickHandler),this.content.addEventListener("mouseenter",this.hover),this.content.addEventListener("mouseleave",this.unHover),this.masking.setAttribute("style","position: absolute;top: 0;left: 0;bottom: 0;right: 0;pointer-events: none;"),this.masking.addEventListener("click",this.cancelHandler),this.masking.addEventListener("touchstart",this.cancelHandler)}dispose(){this.content.removeEventListener("click",this.clickHandler),this.content.removeEventListener("mouseenter",this.hover),this.content.removeEventListener("mouseleave",this.unHover),this.container.remove(),this.masking.removeEventListener("click",this.cancelHandler),this.masking.removeEventListener("touchstart",this.cancelHandler),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}setTarget(t){return this.target=t,this}updatePosition(t,e){if(t&&e)return this.container.style.left=t,this.container.style.top=e,this.container.style.transform="",this.show();if(this.lines.length===0)return this;const n=this.points.map(A=>A.position),s=n.map(A=>A.clone().project(this.five.camera));if(s.some(A=>Math.abs(A.z)>1))return this.hide();const o=s.map(A=>A.x),r=s.map(A=>A.y),a=(Math.min(...o)+Math.max(...o))/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 A=(r[1]-r[0])/(o[1]-o[0]),g=-((r[1]+r[0])/2-1)/2*c.clientHeight;Math.abs(A)>.4&&(u=d+57,m=g)}return this.container.style.top="0",this.container.style.left="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.unHover(),this}show(){return this.visible=!0,this.masking.style.pointerEvents="auto",this.container.style.opacity="1",this.container.style.pointerEvents="auto",this}}function ro(i){const t=(o,r,a)=>{const l=o.lines.find(d=>d.points.findIndex(({id:u})=>u===o.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)}function La(i,t){const e=i.x-t[0].x,n=i.y-t[0].y,s=t[1].x-t[0].x,o=t[1].y-t[0].y,r=e*s+n*o,a=s*s+o*o,l=r/a;let c,d;return l<0||uv(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*s,d=t[0].y+l*o),new R.Vector2(c,d)}function uv(i,t){return i.x===t.x&&i.y===t.y}const Jl=()=>!1;class dn extends Eo{constructor(e){var n;super(e);f(this,"type","edit");f(this,"polyline");f(this,"area");f(this,"hasAppendDashed",!1);f(this,"fiveElement");f(this,"lastPoint",null);f(this,"pointSelector");f(this,"deleteDom");f(this,"onIntersectionUpdate",Sa((e,n)=>{this.currentMeasureType==="area"&&typeof n=="boolean"&&(n?this.hook.emit("readyComplete"):this.hook.emit("notReadyComplete")),this.updateDashed()},20));f(this,"revoke",()=>{this.currentMeasureType==="area"?this.revokeArea():this.currentMeasureType==="line"&&this.revokeLine()});f(this,"revokeArea",()=>{if(this.area.points.length!==0){if(this.area.popPoint(),this.hook.emit("pointsChange",this.area.points),this.area.points.length===0){this.lastPoint=null,this.hasAppendDashed=!1,this.dashed.remove(),this.five.needsRender=!0,this.hook.emit("revoke",{isEmpty:!0});return}else this.lastPoint=new ut(this.area.points[this.area.points.length-1]),this.updateDashed();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,this.hook.emit("pointsChange",[]);return}if(n.lines.length===0&&!this.lastPoint||!this.lastPoint)return;const s=n.lines[n.lines.length-1],o=s.findAnotherPoint(this.lastPoint);o&&(this.lastPoint=o,this.hook.emit("anchorChange",o.position),this.group.remove(s.mesh),n.removeLine(s),s.distanceItem.remove(),this.updateDashed(),this.five.needsRender=!0)});f(this,"onMouseLeave",()=>{this.dashed.hide(),this.perpendicularDashed.hide(),this.area.hideArea()});f(this,"onLineChanged",()=>{this.hook.emit("editedPolylineChange",this.polyline)});f(this,"onWantsSelect",()=>{if(this.currentMeasureType==="area"){const e=this.area.polygon.isBlank||this.area.polygon.visible===!1;if(this.area.points.length>=3&&e)return!1}});f(this,"onSelect",()=>{var o,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=(()=>{var c,d;if(this.currentMeasureType==="area")return this.area.projectPoint((c=this.pointSelector.position)==null?void 0:c.point);if(this.currentMeasureType==="line")return(d=this.pointSelector.position)==null?void 0:d.point})();if(!e)return;const n=new ut(e),s=this.lastPoint;if(!(s!=null&&s.position&&n.position.equals(s==null?void 0:s.position))){if(this.lastPoint=n,this.currentMeasureType==="line"){if(n&&s){const d=new tn(s,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=(o=this.editParams)==null?void 0:o.autoEndConfig)==null?void 0:r.line;typeof c=="number"&&(this.polyline.getPointLength()>=c?this.complete():this.polyline.getPointLength()===c-1&&this.hook.emit("readyComplete")),this.hook.emit("pointsChange",this.polyline.points)}else if(this.currentMeasureType==="area"){if(this.area.addPoints(n.position),this.area.isClosed){this.complete();return}this.area.points.length>=3?this.pointSelector.setAdherePoints(this.area.points[0]):this.pointSelector.setAdherePoints(null);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.complete():this.area.points.length===c-1&&this.hook.emit("readyComplete")),this.hook.emit("pointsChange",this.area.points)}this.updateDashed(),this.five.needsRender=!0,this.hook.emit("anchorChange",n.position)}});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"updateDashed",()=>{var s;if(!this.lastPoint)return;const e=this.lastPoint.position,n=(()=>{var o,r;if(this.currentMeasureType==="area")return this.area.projectPoint((o=this.pointSelector.position)==null?void 0:o.point);if(this.currentMeasureType==="line")return(r=this.pointSelector.position)==null?void 0:r.point})();if(!n){this.dashed.hide();return}if(this.dashed.show(),this.dashed.setPoints(e,n),this.dashed.distanceItem.update(this.five),this.hook.emit("editedDashedLineChange",this.dashed),this.currentMeasureType==="area")if(this.area.areaItem.setCanSelect(!1),this.area.points.length>=2){const o=(s=this.pointSelector.position)==null?void 0:s.point;if(o){const d=o,h=n;this.perpendicularDashed.setPoints(d,h),this.perpendicularDashed.show()}else this.perpendicularDashed.hide();const r=this.area.polyline.lines.map(d=>({start:d.points[0].position,end:d.points[1].position})),a=Xl({start:e,end:n},r),l=Xl({start:n,end:this.area.points[0]},r);if(a||l)this.area.hideArea(),this.hook.emit("allowAddPointStateChange","forbid");else{this.area.showArea();const d=[...this.area.points,n];this.area.polygon.updatePoints(d),this.area.areaItem.updateArea(this.five),this.hook.emit("allowAddPointStateChange","allow")}}else this.area.hideArea(),this.perpendicularDashed.hide();this.five.needsRender=!0});f(this,"wantsTapGesture",e=>{var p,g;if(this.editParams.pointSelectorMode==="cursor"||this.lastPoint)return!1;const n=this.model.areas.map(b=>e.intersectObject(b.polygon,!0)[0]).sort((b,y)=>b.distance-y.distance),s=(g=(p=n[0])==null?void 0:p.object)==null?void 0:g.parent;if(s!=null&&s.isPolygonMesh){const b=this.model.areas.find(y=>y.polygon===s);if(b){const{x:y,y:I}=n[0].point.clone().project(this.five.camera),k=`${(y+1)/2*100}%`,T=`${(-I+1)/2*100}%`;return this.chooseArea(b,{left:k,top:T}),!1}}const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const r=this.five.camera,a=o.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(b=>{const[y,I]=b.points,k=y.position.clone().project(r),T=I.position.clone().project(r);if(!Ln(k)&&!Ln(T))return null;const P=new R.Vector2(k.x*l,k.y*c),V=new R.Vector2(T.x*l,T.y*c);return{id:b.id,points:[P,V]}}).filter(b=>!!b);if(h.length===0)return;const m=h.map(b=>{const y=La(d,b.points);return{id:b.id,distance:y.distanceTo(d)}}).sort((b,y)=>b.distance-y.distance)[0];if(m.distance>20)return;const A=this.model.getAllLines().find(({id:b})=>b===m.id);if(A)return this.chooseLine(A),!1});f(this,"chooseLine",e=>{console.log(e);const n=ro(e);this.deleteDom.setTarget(n).setLines(n).updatePosition().show(),this.highlightLines(n),this.hook.emit("selectedChange",n)});f(this,"chooseArea",(e,n)=>{console.log("choose area"),this.deleteDom.setTarget(e).updatePosition(n.left,`calc(${n.top} - 1.5rem)`).show(),this.highlightArea(e)});f(this,"deleteArea",e=>{this.unHighlightArea(e),e.dispose(),this.deleteDom.hide()});f(this,"deleteLine",e=>{const n=e[0],s=this.model.getPolylineByLine(n);s&&(this.model.removePolyline(s),s.lines.forEach(o=>this.removeLine(o)),this.deleteDom.setLines([]).hide())});this.fiveElement=this.five.getElement(),this.deleteDom=new Ta(this.five,{i18n:this.config.i18n,onClick:(s,o)=>{var l;const r=o.type==="area",a=Array.isArray(o)&&((l=o[0])==null?void 0:l.type)==="line";r&&this.deleteArea(o),a&&this.deleteLine(o)},cancel:s=>{var a;this.deleteDom.hide();const o=s.type==="area",r=Array.isArray(s)&&((a=s[0])==null?void 0:a.type)==="line";o&&this.unHighlightArea(s),r&&this.unHighlightLines(s)}}).appendTo(this.container),this.pointSelector=new av(this.five,{mode:this.editParams.pointSelectorMode,pointSelectorHelperParams:{magnifierParams:this.magnifierParams}}),this.pointSelector.enable(),this.polyline=new jn({model:this.model}),this.area=new Jr(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),s.distanceItem.setCanSelect(!0),s.hook.on("selected",this.chooseLine),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateDomPosition(this.five),s.areaItem.setCanSelect(!0),s.hook.on("selected",this.chooseArea),this.group.add(s.polygon),s.polyline.lines.forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})}),this.five.on("cameraUpdate",this.onCameraUpdate),this.five.on("wantsTapGesture",this.wantsTapGesture),this.five.on("wantsToMoveToPano",Jl),this.pointSelector.hook.on("intersectionUpdate",this.onIntersectionUpdate),this.pointSelector.hook.on("select",this.onSelect),this.pointSelector.hook.on("wantsSelect",this.onWantsSelect),this.polyline.hook.on("lineAdded",this.onLineChanged),this.polyline.hook.on("lineRemoved",this.onLineChanged),this.five.helperVisible=!1,(n=this.fiveElement)==null||n.addEventListener("mouseleave",this.onMouseLeave),this.hook.emit("anchorChange",null),this.hook.emit("editedDashedLineChange",null),this.five.refresh()}dispose(){var e;super.dispose(),this.model.areas.forEach(n=>{(n.points.length<2||n.polygon.isBlank)&&this.model.removeArea(n)}),this.five.helperVisible=!0,this.pointSelector.disable(),this.dashed.remove(),this.perpendicularDashed.remove(),this.five.off("cameraUpdate",this.onCameraUpdate),this.five.off("wantsTapGesture",this.wantsTapGesture),this.five.off("wantsToMoveToPano",Jl),this.pointSelector.hook.off("intersectionUpdate",this.onIntersectionUpdate),this.pointSelector.hook.off("select",this.onSelect),this.polyline.hook.off("lineAdded",this.onLineChanged),this.polyline.hook.off("lineRemoved",this.onLineChanged),(e=this.fiveElement)==null||e.removeEventListener("mouseleave",this.onMouseLeave),this.magnifier.dispose(),this.dashed.distanceItem.remove(),this.five.needsRender=!0}getEditingLines(){return this.polyline.lines}selectPoint(){this.onSelect()}complete(){this.hook.emit("complete"),this.currentMeasureType==="area"?(this.area.points.length<3?this.deleteArea(this.area):(this.area.showArea(),this.area.complete(),this.area.hook.on("selected",this.chooseArea)),this.area=new Jr(void 0,{five:this.five,model:this.model,meshContainer:this.group,domContainer:this.container}),this.model.addArea(this.area)):this.currentMeasureType==="line"&&(this.polyline.lines.forEach(e=>{e.hook.on("selected",this.chooseLine),e.distanceItem.setCanSelect(!0)}),this.polyline=new jn({model:this.model}),this.model.addPolyline(this.polyline)),this.pointSelector.setAdherePoints(null),this.dashed.hide(),this.perpendicularDashed.hide(),this.lastPoint=void 0}highlightArea(e){this.highlightLines(e.polyline.lines),this.five.needsRender=!0}unHighlightArea(e){this.unHighlightLines(e.polyline.lines),this.five.needsRender=!0}highlightLines(e){e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){e.forEach(n=>{n.selected=!1,n.distanceItem.unHighlight(),this.group.remove(n.lightMesh),this.five.needsRender=!0})}highlightLine(e){this.unHighlightLines(this.model.getAllLines()),!e.selected&&(e.selected=!0,this.group.add(e.lightMesh),e.distanceItem.highlight(),this.five.needsRender=!0)}}class ql extends Eo{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(s=>{e.visiblePanoIndexes&&!e.visiblePanoIndexes.includes(n)&&(s.mesh.visible=!1),s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)})});f(this,"onCameraUpdate",()=>{this.updateDistanceUI()});f(this,"onFivePanoWillArrive",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&(n.visiblePanoIndexes.includes(e)||n.lines.forEach(s=>{s.mesh.visible=!1,s.distanceItem.update(this.five)}))})});f(this,"onFivePanoArrived",e=>{this.model.polylines.forEach(n=>{n.visiblePanoIndexes&&n.visiblePanoIndexes.includes(e)&&n.lines.forEach(s=>{s.mesh.visible=!0,s.distanceItem.update(this.five)})})});this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),this.group.add(s.mesh)});const n=this.five.getElement();if(n){const s=new ss(n);this.hammer=s}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()}}function fv(i,t){const e=(i.x+1)/2*t.width,n=-(i.y-1)/2*t.height;return new R.Vector2(e,n)}function mv(i,t,e,n){const s=i.getElement();if(!s||t.length===0)return null;const o={width:s.clientWidth,height:s.clientHeight},r=t.map(a=>{const l=a.position.clone().project(i.camera);return Ln(l)?{distance:fv(l,o).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]}class Kl extends Eo{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=qr(e).point,s=(a=mv(this.five,this.model.getAllPoints(),n,20))==null?void 0:a.point;if(!s){this.editPointState=void 0;return}const o={point:s,associatedLines:ro(s.lines[0])};this.hook.emit("wantsDragLine",{point:s.id,lines:o.associatedLines.map(({id:l})=>l)})||(this.editPointState=o,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=qr(e).ndcPoint,s=new R.Raycaster;s.setFromCamera(n,this.five.camera);const[o]=this.five.model.intersectRaycaster(s);o&&this.onIntersectionUpdate(o)});f(this,"onIntersectionUpdate",(e,n)=>{if(this.editPointState){if(this.clearHighlightLines(),this.editPointState.point.position.copy(e.point),this.editPointState.point.lines.forEach(s=>{s.mesh.setPoints(s.points[0].position.clone(),s.points[1].position.clone()),s.lightMesh.setPoints(s.points[0].position.clone(),s.points[1].position.clone()),s.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 o=e.face.normal.clone().multiplyScalar(.05),a=e.point.clone().add(o).clone().add(o);this.mouseGroup.lookAt(a)}this.five.needsRender=!0,this.hook.emit("selectedChange",this.editPointState.associatedLines.map(s=>s))}});f(this,"wantsPanGesture",()=>{if(this.editPointState)return!1});f(this,"wantsTapGesture",e=>{var p;const n=this.model.areas.map(g=>e.intersectObject(g.polygon,!0)[0]).sort((g,b)=>g.distance-b.distance),s=(p=n[0])==null?void 0:p.object.parent;if(s instanceof eu){const g=this.model.areas.find(b=>b.polygon===s);if(g){const{x:b,y}=n[0].point.clone().project(this.five.camera),I=`${(b+1)/2*100}%`,k=`${(-y+1)/2*100}%`;return this.chooseArea(g,{left:I,top:k}),!1}}const[o]=this.five.model.intersectRaycaster(e);if(!o)return;const r=this.five.camera,a=o.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,I=b.position.clone().project(r),k=y.position.clone().project(r);if(!Ln(I)&&!Ln(k))return null;const T=new R.Vector2(I.x*l,I.y*c),P=new R.Vector2(k.x*l,k.y*c);return{id:g.id,points:[T,P]}}).filter(g=>!!g);if(h.length===0)return;const m=h.map(g=>{const b=La(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 A=this.model.getAllLines().find(({id:g})=>g===m.id);if(A)return this.chooseLine(A),!1});f(this,"chooseLine",e=>{this.choose="line";const n=ro(e);this.deleteDom.setLines(n).updatePosition().show(),console.log(this.deleteDom),this.highlightLines(n),this.five.needsRender=!0,this.hook.emit("selectedChange",n.map(s=>s))});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=>{console.log(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 Ta(this.five,{i18n:this.config.i18n,onClick:()=>{console.log(this.choose),this.choose==="line"?this.deleteLine():this.choose instanceof Jr&&this.deleteArea(this.choose)},cancel:this.cancelDeleteClickCallback}).appendTo(this.container),this.model.getAllLines().forEach(s=>{s.distanceItem.appendTo(this.container),s.distanceItem.update(this.five),s.hook.on("selected",this.chooseLine),s.distanceItem.setCanSelect(!0),this.group.add(s.mesh)}),this.model.getAllAreas().forEach(s=>{s.areaItem.appendTo(this.container),s.areaItem.updateArea(this.five),s.hook.on("selected",this.chooseArea),s.areaItem.setCanSelect(!0),this.group.add(s.polygon),s.polyline.lines.forEach(o=>{o.distanceItem.appendTo(this.container),o.distanceItem.update(this.five),this.group.add(o.mesh)})});const n=this.five.getElement();if(n){this.fiveElement=n;const s=new ss(n);this.hammer=s,s.on("pan",this.onPan),s.on("panstart",this.onPanStart),s.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}unHighlightArea(e){const n=e!=null?e:this.highlightedArea;n&&(this.unHighlightLines(n.polyline.lines),this.five.needsRender=!0)}highlightLines(e){this.unHighlightLines(),this.highlightedLines=e,e.forEach(n=>this.highlightLine(n))}unHighlightLines(e){this.unHighlightArea();const n=e!=null?e:this.highlightedLines;n&&n.forEach(s=>{s.selected=!1,s.distanceItem.unHighlight(),this.group.remove(s.lightMesh),this.five.needsRender=!0})}}class ja{constructor(t){f(this,"config");f(this,"polylines",[]);f(this,"areas",[]);f(this,"hook",new Te.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)}removeArea(t){const e=this.areas.findIndex(({id:n})=>n===t.id);if(e===-1){console.error(new Error("area 不存在"));return}this.areas.splice(e,1)}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 jn({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 gv(){}const{Vector2:pv}=E;function Av(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:s,left:o}=t.getBoundingClientRect();return Object.assign(new pv,{x:(i.x-o)/e*2-1,y:-(i.y-s)/n*2+1})}const vv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQ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u/p7YCemtvjXUtAQn8JAGF7SeBGS6BNwjkW0f+/rof8boaVx3dVZw+CUjgnQQUtneCM00CFwS6Y7vY/uqyY/uKwokE5gkobPNMrXguAd43i23x6u5t3TuXllcugU0EFLZNYC17JIGIVosbEPD1evWxp5WABJ4koLA9CdB0CRQBhI1u7apTq3CnEpDADgIK2w6q1jyVQH8wJKLGunnYqTUN5xLYQEBh2wDVkscSaNF6mf/xxx9fbuNm7vZYMl64BCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",bv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAQAAABvWYjmAAByRElEQVR4AezBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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