import{__awaiter as o,__generator as n}from"tslib";import*as r from"@msign/angularis";import t from"../controls/Cesium";import i from"../controls/Loop";import e from"../controls/Scene";import u from"../controls/Pointer";import l from"../controls/Camera";import c from"../controls/Anima";import f from"../controls/SWControl";import C from"../controls/Stage";import s from"../controls/Menu";import a from"./Clock";import m from"../controls/VPoint";import v from"../controls/Worker";import d from"../controls/Clip";import h from"../controls/Measure";import p from"../controls/State";import S from"../controls/Biz/inedx";import w from"../bridge";var M=new Map,k=function(){function k(){}return k.o=function(){M.clear()},k.t=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"Clock",(o=M.get("Clock"))?[2,o]:[2,M.set("Clock",new a).get("Clock")]}))}))},k.i=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"SWControl",(o=M.get("SWControl"))?[2,o]:[2,M.set("SWControl",new f).get("SWControl")]}))}))},k.u=function(i){return o(this,void 0,void 0,(function(){var o,e,u,l,c,f,C;return n(this,(function(n){switch(n.label){case 0:return o="CesiumControl",(e=M.get(o))||!i?[2,e]:[4,k.l()];case 1:return u=n.C(),l=new w(u.state),r.s.update(l),f=(c=M).set,C=[o],[4,t.m(i)];case 2:return[2,f.apply(c,C.concat([n.C()])).get(o)]}}))}))},k.v=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"LoopControl",(o=M.get("LoopControl"))?[2,o]:[2,M.set("LoopControl",new i).get("LoopControl")]}))}))},k.h=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"SceneControl",(o=M.get("SceneControl"))||!r?[2,o]:[2,M.set("SceneControl",new e(r)).get("SceneControl")]}))}))},k.p=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"PointerControl",(o=M.get("PointerControl"))||!r?[2,o]:[2,M.set("PointerControl",new u(r)).get("PointerControl")]}))}))},k.S=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"CameraControl",(o=M.get("CameraControl"))||!r?[2,o]:[2,M.set("CameraControl",new l(r)).get("CameraControl")]}))}))},k.M=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"AnimaControl",(o=M.get("AnimaControl"))?[2,o]:[2,M.set("AnimaControl",new c).get("AnimaControl")]}))}))},k.k=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"StageControl",(o=M.get("StageControl"))||!r?[2,o]:[2,M.set("StageControl",new C(r)).get("StageControl")]}))}))},k.P=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"MenuControl",(o=M.get("MenuControl"))||!r?[2,o]:[2,M.set("MenuControl",new s(r)).get("MenuControl")]}))}))},k.W=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"VPointControl",(o=M.get("VPointControl"))||!r?[2,o]:[2,M.set("VPointControl",new m(r)).get("VPointControl")]}))}))},k.g=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"WorkerControl",(o=M.get("WorkerControl"))?[2,o]:[2,M.set("WorkerControl",new v).get("WorkerControl")]}))}))},k.A=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"ClipControl",(o=M.get("ClipControl"))||!r?[2,o]:[2,M.set("ClipControl",new d(r)).get("ClipControl")]}))}))},k.l=function(){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return(o=M.get("StateControl"))?[2,o]:[2,M.set("StateControl",new p).get("StateControl")]}))}))},k.L=function(r){return o(this,void 0,void 0,(function(){var o;return n(this,(function(n){return"MeasureControl",(o=M.get("MeasureControl"))||!r?[2,o]:[2,M.set("MeasureControl",new h(r)).get("MeasureControl")]}))}))},k.V=function(){return o(this,void 0,void 0,(function(){return n(this,(function(o){return[2,S]}))}))},k}();export default k;