/*! SDK Interface2 v26.4.4_webgl-611-g928b55af19 */var t,e,n={d:(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},o={};function r(n){return function(n){n.addEnumToInterface({namespace:"Test",name:"directEnum",values:e,sdkTypes:[t.DIRECT]}),n.addEnumToInterface({namespace:"Test",name:"postMessageEnum",values:e,sdkTypes:[t.POSTMESSAGE]})}(n),{}}n.d(o,{m:()=>v}),function(t){t.POSTMESSAGE="postmessage",t.DIRECT="direct",t.WEBSOCKET="websocket"}(t||(t={})),function(t){t.ENUM1="test.enum1-2",t.ENUM2="test.enum2-2"}(e||(e={}));const a="async-injection:INJECTABLE",c="async-injection:INJECT",i="async-injection:POSTCONSTRUCT_SYNC",s="async-injection:POSTCONSTRUCT_ASYNC";function p(t){let e;return t&&(e=t.name,!e&&t.constructor&&(e=t.constructor.name)),e}function u(t){return`index-${t}`}function f(t,e,n){const o=function(t,e,n){if(!function(t){return!("function"!=typeof t||!t.hasOwnProperty("prototype"))&&t.prototype.constructor===t}(e))throw new Error("@"+t+" is not valid here ["+p(e)+"]");return u(n)}(t,e,n);if(Reflect.hasOwnMetadata(t,e,o))throw new Error("@"+t+" applied multiple times ["+e.constructor.name+"]");return o}function d(t){return function(e,n,o){if(void 0===t)throw new Error("Undefined id passed to @Inject ["+p(e)+"]");const r=f("Inject",e,o);Reflect.defineMetadata(c,t,e,r)}}const m=["dev-app.matterport.com","dev2-app.matterport.com","dev-app.matterportvr.cn","qa3-app.matterport.com","qa3-app.matterportvr.cn","gc1-app.matterport.com","my.matterport.com","my.matterportvr.cn","showcase-next.matterport.com","static.matterport.com","static.matterportvr.cn","static.matterport.us","matterport.github.io","local-dev.matterport.com","127.0.0.1","localhost"];var l,y=function(t,e,n,o){var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,o);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(c=(a<3?r(c):a>3?r(e,n,c):r(e,n))||c);return a>3&&c&&Object.defineProperty(e,n,c),c},w=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},T=function(t,e){return function(n,o){e(n,o,t)}};let h=class{constructor(t,e){this.sdk=t,this.scene=e}async init(){const e=this.scene;await this.sdk.addCommandToInterface({namespace:"Connected",name:"getScene",args:[],sdkTypes:[t.DIRECT],origins:m,varArg:!1},Promise.resolve({validateInput:function(t,e){return t},exec:function(t,n){return Promise.resolve(e)}})),await this.sdk.addCommandToInterface({namespace:"Connected",name:"directCommand",args:[],sdkTypes:[t.DIRECT],origins:m,varArg:!1},Promise.resolve({validateInput:function(t,e){return t},exec:function(t,e){throw new Error("Function not implemented.")}}))}};async function v(t,e,n,o,a,c,i,s){s.bindConstant("Sdk",t),s.bindConstant("CwfTypes",n),r(t),function(t){t.bindClass(h).asSingleton()}(s),await s.resolveSingletons()}y([function(t,e,n){if("object"!=typeof t||"function"!=typeof t.constructor)throw new Error("@PostConstruct not applied to instance method ["+t.toString()+"/"+e.toString()+"]");if(Reflect.hasOwnMetadata(i,t.constructor)||Reflect.hasOwnMetadata(s,t.constructor))throw new Error("@PostConstruct applied multiple times ["+p(t.constructor)+"]");"function"==typeof Reflect.getMetadata("design:returntype",t,e)?Reflect.defineMetadata(s,e,t.constructor):Reflect.defineMetadata(i,e,t.constructor)},w("design:type",Function),w("design:paramtypes",[]),w("design:returntype","function"==typeof(l="undefined"!=typeof Promise&&Promise)?l:Object)],h.prototype,"init",null),h=y([function(t){if(Reflect.hasOwnMetadata(a,t))throw new Error("@Injectable applied multiple times ["+p(t)+"]");Reflect.defineMetadata(a,!0,t)},T(0,d("Sdk")),T(1,d("ThreeScene")),w("design:paramtypes",[Object,Object])],h);var E=o.m;export{E as setup};