text: !function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){if("undefined"==typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");!function(){function t(t,e){var n;return function(){clearTimeout(n),n=setTimeout(t,e)}}AFRAME.registerComponent("livereload",{schema:{src:{type:"string"}},multiple:!1,init:function(){var e=this.data.src;console.log(this,e),this.el.setAttribute("src",e);var n={},i=t(function(){delete THREE.Cache.files[e],e=this.data.src+"?a="+Math.random().toFixed(8),this.el.setAttribute("src",e)}.bind(this),1e3);this.data.intervalHandle=setInterval(function(){fetch(this.data.src+"?a="+Math.random().toFixed(8)).then(function(t){return t.blob()}).then(function(t){t.size>1e3&&t.size!==n.size&&(console.log("different",t.size),i()),n=t}).catch(console.warn)}.bind(this),~~this.data.freq||500)},update:function(t){},remove:function(){clearInterval(this.data.intervalHandle)},pause:function(){},play:function(){}})}()}]);