var _0x330fbd=_0x3723;(function(_0x451007,_0x4e5e7d){var _0x3cbe95=_0x3723,_0xf3a2e4=_0x451007();while(!![]){try{var _0x56a619=parseInt(_0x3cbe95(0x1de))/0x1+-parseInt(_0x3cbe95(0x1d4))/0x2+parseInt(_0x3cbe95(0x1f3))/0x3*(parseInt(_0x3cbe95(0x232))/0x4)+parseInt(_0x3cbe95(0x1d9))/0x5*(parseInt(_0x3cbe95(0x1d1))/0x6)+-parseInt(_0x3cbe95(0x225))/0x7*(-parseInt(_0x3cbe95(0x1ec))/0x8)+parseInt(_0x3cbe95(0x221))/0x9+parseInt(_0x3cbe95(0x1fe))/0xa*(-parseInt(_0x3cbe95(0x1f1))/0xb);if(_0x56a619===_0x4e5e7d)break;else _0xf3a2e4['push'](_0xf3a2e4['shift']());}catch(_0x4b5cb4){_0xf3a2e4['push'](_0xf3a2e4['shift']());}}}(_0x11b2,0x7c87f),$(document)[_0x330fbd(0x1e4)](function(){var _0x222d0f=_0x330fbd;$(_0x222d0f(0x201))[_0x222d0f(0x1d6)]();}));var homeCameraView={'destination':{'x':-4646319.653422943,'y':2552632.012284364,'z':-3536295.07803609},'orientation':{'direction':{'x':0.24900131396642067,'y':0.3727636841027887,'z':0.8938934955894424},'up':{'x':-0.7037933752118672,'y':0.7036958074350335,'z':-0.09740172280942716}}};$('#full-screen-button')[_0x330fbd(0x204)](function(){var _0x37f505=_0x330fbd;Cesium[_0x37f505(0x218)][_0x37f505(0x1d0)](document['body']);});var building_style=[],addBuilding=function(){var _0x2608bc=_0x330fbd;try{tileset_3Dbuildings=viewer[_0x2608bc(0x22a)]['primitives'][_0x2608bc(0x211)](new Cesium[(_0x2608bc(0x1ed))]({'url':_0x2608bc(0x1e3),'maximumScreenSpaceError':0x20,'skipLevelOfDetail':!0x0,'baseScreenSpaceError':0x400,'skipScreenSpaceErrorFactor':0x40,'skipLevels':0x2,'immediatelyLoadDesiredLevelOfDetail':!0x1,'loadSiblings':!0x1,'cullWithChildrenBounds':!0x0}));}catch(_0x436062){console[_0x2608bc(0x22f)]('->\x20\x20add\x203DTiles\x20failed!\x0a'+_0x436062);}tileset_3Dbuildings[_0x2608bc(0x1cd)][_0x2608bc(0x20e)](function(){var _0x14d9e7=_0x2608bc,_0x43c130=tileset_3Dbuildings['boundingSphere'],_0x460662=Cesium[_0x14d9e7(0x233)][_0x14d9e7(0x1f0)](_0x43c130[_0x14d9e7(0x213)]),_0x24448d=Cesium[_0x14d9e7(0x1e0)][_0x14d9e7(0x1d8)](_0x460662[_0x14d9e7(0x1e5)],_0x460662['latitude'],0x0),_0x22c782=Cesium[_0x14d9e7(0x1e0)][_0x14d9e7(0x1d8)](_0x460662[_0x14d9e7(0x1e5)],_0x460662[_0x14d9e7(0x1eb)],0x28),_0x497403=Cesium['Cartesian3'][_0x14d9e7(0x239)](_0x22c782,_0x24448d,new Cesium[(_0x14d9e7(0x1e0))]());tileset_3Dbuildings[_0x14d9e7(0x235)]=Cesium[_0x14d9e7(0x205)]['fromTranslation'](_0x497403);}),building_style[_0x2608bc(0x21f)]=new Cesium[(_0x2608bc(0x1f5))]({'pointSize':_0x2608bc(0x23d),'show':!0x0,'color':'color(\x27#ffffff\x27)'}),building_style[_0x2608bc(0x200)]=new Cesium[(_0x2608bc(0x1f5))]({'pointSize':_0x2608bc(0x23d),'show':!0x0,'color':{'conditions':[[_0x2608bc(0x1ce),_0x2608bc(0x1dd)],[_0x2608bc(0x1f8),'color(\x22#f46d43\x22)'],['Number(${Specific_space_heating_demand})>=\x20150','color(\x22#fdae61\x22)'],[_0x2608bc(0x1e9),_0x2608bc(0x1ff)],[_0x2608bc(0x1dc),'color(\x22#ffffbf\x22)'],['Number(${Specific_space_heating_demand})>=\x2075',_0x2608bc(0x237)],[_0x2608bc(0x222),_0x2608bc(0x1e2)],[_0x2608bc(0x21c),'color(\x22#66c2a5\x22)'],[_0x2608bc(0x229),'color(\x22#3288bd\x22)'],['true',_0x2608bc(0x202)]]}}),building_style[_0x2608bc(0x20f)]=new Cesium[(_0x2608bc(0x1f5))]({'pointSize':_0x2608bc(0x23d),'show':!0x0,'color':{'conditions':[[_0x2608bc(0x23e),_0x2608bc(0x1cf)],[_0x2608bc(0x1f2),'color(\x27#3288bd\x27)'],[_0x2608bc(0x22c),'color(\x27#66c2a5\x27)'],[_0x2608bc(0x230),_0x2608bc(0x214)],['Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2035000',_0x2608bc(0x203)],['Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2050000',_0x2608bc(0x226)],[_0x2608bc(0x23c),_0x2608bc(0x234)],[_0x2608bc(0x227),_0x2608bc(0x20c)],[_0x2608bc(0x1d7),'color(\x27#f46d43\x27)'],[_0x2608bc(0x1f4),_0x2608bc(0x224)],['true','color(\x27#fff\x27,0)']]}}),building_style[_0x2608bc(0x236)]=new Cesium[(_0x2608bc(0x1f5))]({'pointSize':_0x2608bc(0x23d),'show':!0x0,'color':{'conditions':[['Number(${PV_potential_yield})\x20<\x201',_0x2608bc(0x1e1)],[_0x2608bc(0x20d),_0x2608bc(0x1ea)],[_0x2608bc(0x1e6),_0x2608bc(0x206)],[_0x2608bc(0x1f7),_0x2608bc(0x23a)],['Number(${PV_potential_yield})\x20<\x205',_0x2608bc(0x207)],[_0x2608bc(0x1f9),_0x2608bc(0x1df)],[_0x2608bc(0x231),_0x2608bc(0x228)],[_0x2608bc(0x1cc),'color(\x22#F56D1F\x22)'],[_0x2608bc(0x22e),'color(\x22#F22E22\x22)'],[_0x2608bc(0x1fc),_0x2608bc(0x20b)]]}}),building_style['ElecDemand']=new Cesium[(_0x2608bc(0x1f5))]({'pointSize':_0x2608bc(0x23d),'show':!0x0,'color':{'conditions':[[_0x2608bc(0x215),_0x2608bc(0x1cf)],[_0x2608bc(0x223),_0x2608bc(0x21e)],['Number(${electric_load})\x20<\x204229000','color(\x27#fdd0a2\x27)'],[_0x2608bc(0x22b),_0x2608bc(0x1fb)],[_0x2608bc(0x220),_0x2608bc(0x216)],[_0x2608bc(0x22d),_0x2608bc(0x1fa)],['true','color(\x22white\x22,0)']]}}),tileset_3Dbuildings[_0x2608bc(0x1f6)]=building_style[_0x2608bc(0x21f)];};function _0x11b2(){var _0x1718d8=['abs','fromCartesian','4612729gTCIsH','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2010000','2337528EJdvFW','Number(${Total_Yearly_Heat_DHW_demand})\x20>=\x20200000','Cesium3DTileStyle','style','Number(${PV_potential_yield})\x20<\x204','Number(${Specific_space_heating_demand})>=\x20200','Number(${PV_potential_yield})\x20<\x206','color(\x27#e6550d\x27)','color(\x27#fdae6b\x27)','true','T08:00:00Z','70lIDNOW','color(\x22#fee08b\x22)','SpecificHeatDemand','#loading','color(\x22white\x22,0)','color(\x27#e6f598\x27)','click','Matrix4','color(\x22#B2D531\x22)','color(\x22#F6EC00\x22)','getMonth','checked','T23:00:00Z','color(\x22#61B949\x22,0)','color(\x27#fdae61\x27)','Number(${PV_potential_yield})\x20<\x202','then','HeatDemand','#BuildingStyleSelector','add','toIsoString_Start','center','color(\x27#abdda4\x27)','Number(${electric_load})\x20===\x200','color(\x27#fd8d3c\x27)','#shadow_check','Fullscreen','currentTime','JulianDate','change','Number(${Specific_space_heating_demand})>=\x2025','toIsoString_Stop','color(\x27#feedde\x27)','AllWhite','Number(${electric_load})\x20<\x206229000','5075433PWdPzg','Number(${Specific_space_heating_demand})>=\x2050','Number(${electric_load})\x20<\x203229000','color(\x27#d53e4f\x27)','175BEKzug','color(\x27#ffffbf\x27)','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x20100000','color(\x22#F9A717\x22)','Number(${Specific_space_heating_demand})>=\x200','scene','Number(${electric_load})\x20<\x205229000','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2012500','Number(${electric_load})\x20>=\x206229000','Number(${PV_potential_yield})\x20>=\x208','log','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2017500','Number(${PV_potential_yield})\x20<\x207','4AUwiMg','Cartographic','color(\x27#fee08b\x27)','modelMatrix','PVPotential','color(\x22#e6f598\x22)','floor','subtract','color(\x22#D1E023\x22)','prototype','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x2075000','3.0','Number(${Total_Yearly_Heat_DHW_demand})\x20===\x200','Number(${PV_potential_yield})\x20<\x208','readyPromise','Number(${Specific_space_heating_demand})>\x20250','color(\x27#ffffff\x27,0)','requestFullscreen','1368lTHqGW','fromIso8601','No\x20','1076004GyTBLH','value','hide','Number(${Total_Yearly_Heat_DHW_demand})\x20<\x20200000','fromRadians','16160RLbNpL','\x20Style\x20in\x20the\x20html','-legend','Number(${Specific_space_heating_demand})>=\x20100','color(\x22#d53e4f\x22)','949020qipXKZ','color(\x22#FECE02\x22)','Cartesian3','color(\x22#61B949\x22)','color(\x22#abdda4\x22)','https://steinbeis-3dps.eu/3DGeoVolumes/collections/Dithmarschen/tileset_dm_all/tileset.json','ready','longitude','Number(${PV_potential_yield})\x20<\x203','getFullYear','getTimezoneOffset','Number(${Specific_space_heating_demand})>=\x20125','color(\x22#A4C711\x22)','latitude','305416TtcMGp','Cesium3DTileset','.cesiumLegend'];_0x11b2=function(){return _0x1718d8;};return _0x11b2();}addBuilding();var layerIsLoaded=[],layerIsLoadedFirstTime=[],promise=[],datasources=[],datasource=[];function _0x3723(_0x361634,_0x177dd4){var _0x11b2db=_0x11b2();return _0x3723=function(_0x3723bd,_0x6b6411){_0x3723bd=_0x3723bd-0x1cc;var _0x353a7b=_0x11b2db[_0x3723bd];return _0x353a7b;},_0x3723(_0x361634,_0x177dd4);}Date[_0x330fbd(0x23b)][_0x330fbd(0x212)]=function(){var _0x48759c=_0x330fbd;this['getTimezoneOffset']();var _0x45989e=function(_0x466a99){var _0x9513ef=_0x3723,_0x2f6bba=Math[_0x9513ef(0x238)](Math[_0x9513ef(0x1ef)](_0x466a99));return(_0x2f6bba<0xa?'0':'')+_0x2f6bba;};return this['getFullYear']()+'-'+_0x45989e(this[_0x48759c(0x208)]()+0x1)+'-'+_0x45989e(this['getDate']())+_0x48759c(0x1fd);},Date[_0x330fbd(0x23b)][_0x330fbd(0x21d)]=function(){var _0x151bfe=_0x330fbd;this[_0x151bfe(0x1e8)]();var _0x2571a4=function(_0x5af39c){var _0x29a371=_0x151bfe,_0x3ca3d0=Math[_0x29a371(0x238)](Math['abs'](_0x5af39c));return(_0x3ca3d0<0xa?'0':'')+_0x3ca3d0;};return this[_0x151bfe(0x1e7)]()+'-'+_0x2571a4(this[_0x151bfe(0x208)]()+0x1)+'-'+_0x2571a4(this['getDate']())+_0x151bfe(0x20a);};var dateEvent=new Date(),startTime=dateEvent[_0x330fbd(0x212)](),stopTime=dateEvent[_0x330fbd(0x21d)]();viewer['clock'][_0x330fbd(0x219)]=Cesium[_0x330fbd(0x21a)][_0x330fbd(0x1d2)](startTime),$(_0x330fbd(0x210))['on']('change',function(){var _0x2a47fa=_0x330fbd;tileset_3Dbuildings[_0x2a47fa(0x1f6)]=building_style[this[_0x2a47fa(0x1d5)]],$(_0x2a47fa(0x1ee))[_0x2a47fa(0x1d6)]();try{$('#'+this[_0x2a47fa(0x1d5)]+_0x2a47fa(0x1db))['show'](),activateChart(this[_0x2a47fa(0x1d5)]);}catch(_0x580c7e){console[_0x2a47fa(0x22f)](_0x2a47fa(0x1d3)+this[_0x2a47fa(0x1d5)]+_0x2a47fa(0x1da));}}),$(_0x330fbd(0x217))[_0x330fbd(0x21b)](function(){var _0x46f61c=_0x330fbd;this[_0x46f61c(0x209)]?viewer['shadows']=!0x0:viewer['shadows']=!0x1;});