!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs"),require("babylonjs-loaders"),require("babylonjs-serializers"),require("babylonjs-gui")):"function"==typeof define&&define.amd?define("babylonjs-inspector",["babylonjs","babylonjs-loaders","babylonjs-serializers","babylonjs-gui"],t):"object"==typeof exports?exports["babylonjs-inspector"]=t(require("babylonjs"),require("babylonjs-loaders"),require("babylonjs-serializers"),require("babylonjs-gui")):e.INSPECTOR=t(e.BABYLON,e.BABYLON,e.BABYLON,e.BABYLON.GUI)}(window,function(e,t,n,r){return function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,l=[];sthis.aMin+t.snapOffset+this.aGutterSize?n0&&((S={a:l(e[u-1]),b:D,aMin:t.minSize[u-1],bMin:t.minSize[u],dragging:!1,parent:E,isFirst:j,isLast:I,direction:t.direction}).aGutterSize=t.gutterSize,S.bGutterSize=t.gutterSize,j&&(S.aGutterSize=t.gutterSize/2),I&&(S.bGutterSize=t.gutterSize/2)),!r){if(u>0){var M=i.createElement("div");M.className=_,M.style[c]=t.gutterSize+"px",M[o]("mousedown",g.bind(S)),M[o]("touchstart",g.bind(S)),E.insertBefore(M,D),S.gutter=M}(0===u||u==e.length-1)&&(k=t.gutterSize/2)}T(D,A,k),u>0&&m.push(S)}return{setSizes:function(e){for(var t=0;t0){var n=m[t-1];T(n.a,e[t-1],n.aGutterSize),T(n.b,e[t],n.bGutterSize)}},collapse:function(e){var t;e===m.length?(t=m[e-1],x.call(t),C.call(t,t.size-t.bGutterSize)):(t=m[e],x.call(t),C.call(t,t.aGutterSize))},destroy:function(){for(var e=0;e0&&e.push(new z(this)),e.push(new q(this)),e},t.prototype.setVisible=function(e){this._obj.setEnabled(e),this._obj.isVisible=e},t.prototype.isVisible=function(){return this._obj.isEnabled()&&(void 0===this._obj.isVisible||this._obj.isVisible)},t.prototype.isBoxVisible=function(){return this._obj.showBoundingBox},t.prototype.setBoxVisible=function(e){return this._obj.showBoundingBox=e},t.prototype.debug=function(e){(this._axesViewer||this._drawAxis(),!e&&this._axesViewer)&&(this._obj.getScene().onBeforeRenderObservable.remove(this.onBeforeRenderObserver),this._axesViewer.dispose(),this._axesViewer=null)},t.prototype.getInfo=function(){return this._obj instanceof r.AbstractMesh?this._obj.getTotalVertices()+" vertices":"0 vertices"},t.prototype._drawAxis=function(){var e=this;this._obj.computeWorldMatrix();var t=new r.Vector3(1,0,0),n=new r.Vector3(0,1,0),i=new r.Vector3(0,0,1);this._axesViewer=new r.Debug.AxesViewer(this._obj.getScene());var o=this._obj;this.onBeforeRenderObserver=o.getScene().onBeforeRenderObservable.add(function(){var a=o.getWorldMatrix(),s=new r.Vector3(1,1,1);o instanceof r.AbstractMesh&&(s=o.getBoundingInfo().boundingBox.extendSizeWorld),e._axesViewer.scaleLines=2*Math.max(s.x,s.y,s.z),e._axesViewer.update(e._obj.position,r.Vector3.TransformNormal(t,a),r.Vector3.TransformNormal(n,a),r.Vector3.TransformNormal(i,a))})},t}(i),K=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=function(e){function t(t,n){var r=e.call(this)||this;return r.children=[],r._tab=t,r._adapter=n,r._tools=r._adapter.getTools(),r._build(),r}return K(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._adapter.id()},enumerable:!0,configurable:!0}),t.prototype.add=function(e){this.children.push(e),this.update()},Object.defineProperty(t.prototype,"adapter",{get:function(){return this._adapter},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(e){var t=this.id,n=e.id;return t.localeCompare(n,[],{numeric:!0})},t.prototype.correspondsTo=function(e){return this._adapter.correspondsTo(e)},t.prototype.fold=function(){if(this.children.length>0){for(var e=0,t=this.children;e0){for(var e=0,t=this.children;e0&&(this._div.classList.contains("folded")||this._div.classList.contains("unfolded")||this._div.classList.add("folded")),this.fold()},t.prototype._addEvent=function(){var e=this;this._div.addEventListener("click",function(t){e._tab.select(e),e._isFolded()?e.unfold():e.fold(),t.stopPropagation()})},t.prototype._isFolded=function(){return!this._div.classList.contains("unfolded")},t.prototype.active=function(e){this._div.classList.remove("active");for(var t=0,n=this.children;t=0&&t.push(i)}this.update(t)},t.prototype._addDetails=function(){for(var e=0,t=this._detailRows;e0))return null;for(var i=0,o=r.children;i0){for(var i=new $(e,new ve(t)),o=0,a=r;o0){for(var p=0,l=a;p1)this._refreshRateCounter--;else{for(var e=0,t=this._updatableProperties;e0,a=n.name.toLowerCase().indexOf(".env")>0;if(!o&&!a)return s.style.display="block",void(s.textContent="Please, select a dds or env file.");r.Tools.ReadFile(n,function(e){var t=new Blob([e],{type:"octet/stream"}),n=URL.createObjectURL(t);o?(i._scene.environmentTexture=r.CubeTexture.CreateFromPrefilteredData(n,i._scene,".dds"),s.style.display="none"):i._scene.environmentTexture=new r.CubeTexture(n,i._scene,void 0,void 0,void 0,function(){s.style.display="none"},function(e){e&&(s.style.display="block",s.textContent=e)},void 0,void 0,".env")},void 0,!0)},p.appendChild(l),i._scene.getEngine().premultipliedAlpha||(p=et.CreateDiv(null,i._panel),(l=Ze.DOCUMENT.createElement("input")).value="Compress current texture to .env",l.className="tool-input",l.type="button",l.onclick=function(){if(!i._scene.environmentTexture)return s.style.display="block",void(s.textContent="You must load an environment texture first.");i._scene.activeCamera?r.EnvironmentTextureTools.CreateEnvTextureAsync(i._scene.environmentTexture).then(function(e){var t=new Blob([e],{type:"octet/stream"});r.Tools.Download(t,"environment.env"),s.style.display="none"}).catch(function(e){s.style.display="block",s.textContent=e}):(s.style.display="block",s.textContent="An active camera is required.")},p.appendChild(l)),i._panel.appendChild(s),(o=et.CreateDiv("tool-title2",i._panel)).textContent="Capture";var l;p=et.CreateDiv(null,i._panel);if((l=Ze.DOCUMENT.createElement("input")).value="Take Screenshot",l.type="button",l.className="tool-input",l.onclick=function(){i._scene.activeCamera&&r.Tools.CreateScreenshot(i._scene.getEngine(),i._scene.activeCamera,{precision:.5})},p.appendChild(l),r.VideoRecorder&&r.VideoRecorder.IsSupported(i._scene.getEngine())){var c=Ze.DOCUMENT.createElement("input");c.value="Start Recording Video",c.type="button",c.className="tool-input",c.onclick=function(){i._videoRecorder||(i._videoRecorder=new r.VideoRecorder(i._scene.getEngine())),i._videoRecorder.isRecording?i._videoRecorder.stopRecording():(c.value="Stop Recording Video",i._videoRecorder.startRecording().then(function(){c.value="Start Recording Video"}))},p.appendChild(c)}return i}return Je(t,e),t.prototype.dispose=function(){},t}(ie),$e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe=function(e){function t(t,n){var i=e.call(this)||this;i._tabs=[],i._invisibleTabs=[],i._visibleTabs=[],i._inspector=t,i._tabs.push(new Me(i,i._inspector)),i._tabs.push(new ue(i,i._inspector)),i._tabs.push(new Ge(i,i._inspector)),i._meshTab=new Se(i,i._inspector),i._tabs.push(new qe(i,i._inspector)),i._tabs.push(i._meshTab),i._tabs.push(new Ce(i,i._inspector)),i._tabs.push(new Oe(i,i._inspector)),_e.IsSupported&&i._tabs.push(new _e(i,i._inspector)),Ze.GUIObject&&i._tabs.push(new ge(i,i._inspector)),i._tabs.push(new Ae(i,i._inspector)),i._tabs.push(new le(i,i._inspector)),r.Engine.audioEngine&&i._tabs.push(new ze(i,i._inspector)),i._tabs.push(new Ke(i,i._inspector)),i._toolBar=new N(i._inspector),i._build(),"string"==typeof n?n=i.getTabIndex(n):(!n||n<0||n>=i._tabs.length)&&(n=0),i._tabs[n].active(!0);for(var o=0,a=i._tabs;o0&&t>e;){var n=this._visibleTabs.pop();if(!n)break;this._invisibleTabs.push(n),this._div.removeChild(n.toHtml()),t=this.getPixelWidth()+75}if(this._invisibleTabs.length>0&&t+750&&!this._div.contains(this._moreTabsIcon)&&this._div.appendChild(this._moreTabsIcon)}},t}(s),Ze=function(){function e(t,i,o,a,s){void 0===o&&(o=0),void 0===a&&(a=null);var p=this;if(this._popupMode=!1,this.onGUILoaded=new r.Observable,Promise.resolve().then(n.t.bind(null,12,7)).then(function(t){!t||void 0!==t&&-1!==Object.keys(t).indexOf("default")?r.Tools.LoadScript("https://preview.babylonjs.com/gui/babylon.gui.min.js",function(){e.GUIObject=BABYLON.GUI,p.onGUILoaded.notifyObservers(e.GUIObject),y(e.GUIObject)},function(){console.warn('Error : loading "babylon.gui.min.js". Please add script https://preview.babylonjs.com/gui/babylon.min.gui.js to the HTML file.')}):(e.GUIObject=t,p.onGUILoaded.notifyObservers(e.GUIObject),y(e.GUIObject))}),this._initialTab=o,this._parentElement=a,this._scene=t,e.DOCUMENT=window.document,e.WINDOW=window,i)this.openPopup(!0);else{var l=this._scene.getEngine().getRenderingCanvas(),c=l.parentElement,u=e.WINDOW.getComputedStyle(l);if(this._canvasStyle={width:et.Css(l,"width"),height:et.Css(l,"height"),position:u.position,top:u.top,bottom:u.bottom,left:u.left,right:u.right,padding:u.padding,paddingBottom:u.paddingBottom,paddingLeft:u.paddingLeft,paddingTop:u.paddingTop,paddingRight:u.paddingRight,margin:u.margin,marginBottom:u.marginBottom,marginLeft:u.marginLeft,marginTop:u.marginTop,marginRight:u.marginRight},this._parentElement){this._c2diwrapper=et.CreateDiv("insp-wrapper",this._parentElement),this._c2diwrapper.style.width="100%",this._c2diwrapper.style.height="100%",this._c2diwrapper.style.paddingLeft="5px",(g=et.CreateDiv("insp-right-panel",this._c2diwrapper)).style.width="100%",g.style.height="100%",this._buildInspector(g)}else{for(var d in this._c2diwrapper=et.CreateDiv("insp-wrapper"),this._canvasStyle)this._c2diwrapper.style[d]=this._canvasStyle[d];if(!u.width||!u.height||!u.left)return;var h=parseFloat(u.width.substr(0,u.width.length-2))||0,f=parseFloat(u.height.substr(0,u.height.length-2))||0;if("absolute"===u.position||"relative"===u.position){var _=parseFloat(u.left.substr(0,u.left.length-2))||0;h+_>=e.WINDOW.innerWidth&&(this._c2diwrapper.style.maxWidth=h-_+"px")}var b=this._getRelativeParent(l),v=h/b.clientWidth*100,m=f/b.clientHeight*100;this._c2diwrapper.style.width=v+"%",this._c2diwrapper.style.height=m+"%",l.style.position="static",l.style.width="100%",l.style.height="100%",l.style.paddingBottom="0",l.style.paddingLeft="0",l.style.paddingTop="0",l.style.paddingRight="0",l.style.margin="0",l.style.marginBottom="0",l.style.marginLeft="0",l.style.marginTop="0",l.style.marginRight="0",c&&c.replaceChild(this._c2diwrapper,l),this._c2diwrapper.appendChild(l);var g=et.CreateDiv("insp-right-panel",this._c2diwrapper);this._parentElement||oe([l,g],{direction:"horizontal",sizes:[75,25],onDrag:function(){et.SEND_EVENT("resize"),p._tabbar&&p._tabbar.updateWidth()}}),this._buildInspector(g)}et.SEND_EVENT("resize"),this._tabbar.updateWidth()}if(this.refresh(),s)for(var w=s.backgroundColor||"#242424",x=s.backgroundColorLighter||"#2c2c2c",C=s.backgroundColorLighter2||"#383838",T=s.backgroundColorLighter3||"#454545",P=s.color||"#ccc",E=s.colorTop||"#f29766",O=s.colorBot||"#5db0d7",L=e.DOCUMENT.querySelectorAll("style"),S=0;S span:first-of-type {\n color: #f29766; }\n .insp-wrapper .insp-tree .line.folded.transformNode > span:first-of-type {\n color: #f29766; }\n .insp-wrapper .insp-tree .line .line-content {\n padding-left: 15px; }\n .insp-wrapper .insp-tree .line .line-content:hover {\n background-color: #242424; }\n .insp-wrapper .insp-tree .line .line-content .line:hover:first-child {\n background-color: #383838; }\n .insp-wrapper .insp-tree .line_invisible {\n display: none; }\n .insp-wrapper .insp-details {\n background-color: #242424;\n overflow-y: auto;\n overflow-x: auto;\n color: #ccc;\n font-family: "Inconsolata", sans-serif; }\n .insp-wrapper .insp-details .details {\n padding-left: 5px; }\n .insp-wrapper .insp-details .base-row, .insp-wrapper .insp-details .row, .insp-wrapper .insp-details .header-row {\n display: flex;\n width: 100%; }\n .insp-wrapper .insp-details .base-row .base-property, .insp-wrapper .insp-details .row .base-property, .insp-wrapper .insp-details .header-row .base-property, .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name, .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {\n padding: 2px 0 2px 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n .insp-wrapper .insp-details .base-row .prop-name, .insp-wrapper .insp-details .row .prop-name, .insp-wrapper .insp-details .header-row .prop-name {\n width: 35%; }\n .insp-wrapper .insp-details .base-row .prop-value, .insp-wrapper .insp-details .row .prop-value, .insp-wrapper .insp-details .header-row .prop-value {\n width: 59%;\n padding-left: 5px; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable, .insp-wrapper .insp-details .row .prop-value.clickable, .insp-wrapper .insp-details .header-row .prop-value.clickable {\n cursor: pointer; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable:hover, .insp-wrapper .insp-details .row .prop-value.clickable:hover, .insp-wrapper .insp-details .header-row .prop-value.clickable:hover {\n background-color: #383838; }\n .insp-wrapper .insp-details .base-row .prop-value.clickable:after, .insp-wrapper .insp-details .row .prop-value.clickable:after, .insp-wrapper .insp-details .header-row .prop-value.clickable:after {\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\A0 \\A0 \\A0 \\F105";\n font-weight: 900; }\n .insp-wrapper .insp-details .row:nth-child(even) {\n background-color: #2c2c2c; }\n .insp-wrapper .insp-details .row.unfolded .prop-value.clickable:after {\n font-family: "Font Awesome 5 Free", sans-serif;\n content: "\\A0 \\A0 \\A0 \\F107";\n font-weight: 900; }\n .insp-wrapper .insp-details .header-row {\n background-color: #2c2c2c;\n color: #ccc;\n width: 100%;\n max-width: 100%; }\n .insp-wrapper .insp-details .header-row > * {\n color: #ccc !important;\n padding: 5px 0 5px 5px !important;\n cursor: pointer; }\n .insp-wrapper .insp-details .header-row > *:hover {\n background-color: #383838; }\n .insp-wrapper .insp-details .header-row .header-col {\n display: flex;\n justify-content: space-between;\n align-items: center; }\n .insp-wrapper .insp-details .header-row .header-col .sort-direction {\n margin-right: 5px; }\n .insp-wrapper .insp-details .element-viewer, .insp-wrapper .insp-details .color-element, .insp-wrapper .insp-details .texture-element {\n position: relative;\n width: 10px;\n height: 10px;\n display: inline-block;\n margin-left: 5px; }\n .insp-wrapper .insp-details .color-element {\n width: 20px;\n height: 15px; }\n .insp-wrapper .insp-details .texture-element {\n color: #f29766;\n margin-left: 10px; }\n .insp-wrapper .insp-details .texture-element .texture-viewer {\n color: #ccc;\n position: absolute;\n z-index: 10;\n bottom: 0;\n right: 0;\n display: block;\n width: 150px;\n height: 150px;\n border: 1px solid #454545;\n background-color: #242424;\n transform: translateX(100%) translateY(100%);\n display: none;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center; }\n .insp-wrapper .insp-details .texture-element .texture-viewer .texture-viewer-img {\n margin: 10px 0 10px 0;\n max-width: 110px;\n max-height: 110px; }\n .insp-wrapper .tabbar {\n height: 50px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid #383838;\n width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n box-sizing: border-box; }\n .insp-wrapper .tabbar .tab {\n height: calc(50px - 2px);\n width: auto;\n padding: 0 10px 0 10px;\n color: #ccc;\n line-height: 50px;\n text-align: center;\n cursor: pointer;\n margin: 0 5px 0 5px;\n box-sizing: border-box; }\n .insp-wrapper .tabbar .tab:hover {\n border-bottom: 1px solid #f29766;\n background-color: #2c2c2c; }\n .insp-wrapper .tabbar .tab:active {\n background-color: #383838; }\n .insp-wrapper .tabbar .tab.active {\n border-bottom: 1px solid #f29766; }\n .insp-wrapper .tabbar .more-tabs {\n width: 50px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n position: relative;\n border-right: 1px solid #383838; }\n .insp-wrapper .tabbar .more-tabs:hover {\n background-color: #383838; }\n .insp-wrapper .tabbar .more-tabs:active {\n color: #f29766;\n background-color: #454545; }\n .insp-wrapper .tabbar .more-tabs.active {\n color: #f29766; }\n .insp-wrapper .toolbar {\n display: flex; }\n .insp-wrapper .toolbar .tool {\n width: 50px;\n height: 50px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n position: relative;\n border-right: 1px solid #383838; }\n .insp-wrapper .toolbar .tool:hover {\n background-color: #383838; }\n .insp-wrapper .toolbar .tool:active {\n color: #f29766;\n background-color: #454545; }\n .insp-wrapper .toolbar .tool.active {\n color: #f29766; }\n .insp-wrapper .searchbar {\n border: 1px solid #2c2c2c;\n margin-bottom: 5px;\n display: flex;\n align-items: center;\n color: #b3b3b3; }\n .insp-wrapper .searchbar input {\n background-color: #242424;\n border: none;\n width: 100%;\n outline: none;\n font-family: "Inconsolata", sans-serif;\n color: #b3b3b3;\n padding: 3px 0 3px 10px;\n margin: 6px 0 6px 0; }\n .insp-wrapper input[type="range"] {\n margin: auto;\n -webkit-appearance: none;\n position: relative;\n overflow: hidden;\n height: 15px;\n width: 50%;\n cursor: pointer;\n border-radius: 0;\n /* iOS */ }\n .insp-wrapper ::-webkit-slider-runnable-track {\n background: #ddd; }\n .insp-wrapper ::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: 20px;\n /* 1 */\n height: 15px;\n /* 1 */\n background: #fff;\n box-shadow: -100vw 0 0 100vw dodgerblue;\n border: 0px solid #999;\n /* 1 */ }\n .insp-wrapper ::-moz-range-track {\n height: 15px;\n background: #ddd; }\n .insp-wrapper ::-moz-range-thumb {\n background: #fff;\n height: 15px;\n width: 20px;\n border: 0px solid #999;\n border-radius: 0 !important;\n box-shadow: -100vw 0 0 100vw dodgerblue;\n box-sizing: border-box; }\n .insp-wrapper ::-ms-fill-lower {\n background: dodgerblue; }\n .insp-wrapper ::-ms-thumb {\n background: #fff;\n border: 0px solid #999;\n height: 15px;\n width: 20px;\n box-sizing: border-box; }\n .insp-wrapper ::-ms-ticks-after {\n display: none; }\n .insp-wrapper ::-ms-ticks-before {\n display: none; }\n .insp-wrapper ::-ms-track {\n background: #ddd;\n color: transparent;\n height: 15px;\n border: none; }\n .insp-wrapper ::-ms-tooltip {\n display: none; }\n',""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&p.splice(t,1)}function f(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),_(t,e.attrs),d(e,t),t}function _(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var p=s++;n=a||(a=f(t)),r=m.bind(null,n,p,!1),i=m.bind(null,n,p,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",_(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=l(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=u(e,t);return c(n,t),function(e){for(var i=[],o=0;o