function renderSuggestion(n){return React.createElement("span",null,n.text)}var _extends2=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n},App=App||{},umbracoForms,bannerData,GSVPANO,Dropdown,dateFormat;if(App.Common=function(){function n(){$("[data-scroll]").click(function(n){n.preventDefault();var t=$(this).data("scroll").length?$(this).data("scroll"):$(this).attr("href"),i=$(".site-header").height();$("html, body").animate({scrollTop:$(t).offset().top-i},1e3)})}function t(){var n=3e3;$(".banner-slider").on("init",function(){var i=$(this),t=i.find(".slick-dots");t.find("li").length<=1?t.hide():t.wrap('<div class="slick-dots-container"><\/div>');setTimeout(function(){i.slick("slickPlay")},n)});$(".banner-slider").slick({arrows:!1,dots:!0,slide:".item",autoplay:!0,autoplaySpeed:7e3}).slick("slickPause")}function i(){function e(){$("html").is(".breakpoint-mobile")&&(i=65);$("html").is(".breakpoint-tablet")&&(i=150);$("html").is(".breakpoint-desktop")&&(i=100)}function h(){var t=[];return n.find(".ilp-blog-filters a").each(function(){$(this).is(".active")&&t.push($(this).data("tag"))}),t}function r(t){n.addClass("scrolling");$("html, body").animate({scrollTop:$(t).offset().top-i},2e3,"easeInOutCubic");setTimeout(function(){n.removeClass("scrolling")},1e3)}function c(){$(window).on("wheel.wp",function(){return!1})}function l(){$(window).off("wheel.wp")}var i=100,n=$(".innovation-landing-page"),t=n.find(".ilp-nav"),o=t.find(".ilp-nav-item").length,s,u,f,a;n.length&&(e(),$(window).resize(e),s=n.find(".ilp-grid"),$(window).scroll(function(){var n=$(this).scrollTop();s.css({"background-position":"center calc(50% + "+-(n*.5)+"px)"})}),"scrollRestoration"in history&&(history.scrollRestoration="manual"),window.scroll(0,0),c(),n.find(".ilp-header").addClass("animate-in"),n.find(".ilp-electron").addClass("animate-in"),u=n.find(".ilp-content .ilp-content-section").first(),f=window.location.hash,f!=""&&(u=$(f)),$(function(){window.scroll(0,0);setTimeout(function(){n.addClass("scrolling");$("html, body").animate({scrollTop:u.offset().top-i},1e3,function(){l();n.find(".ilp-nav").addClass("animate-in animating");setTimeout(function(){n.find(".ilp-nav").removeClass("animating")},2500)});setTimeout(function(){n.removeClass("scrolling")},1e3)},3e3)}),a=n.find(".ilp-content-section").waypoint(function(){var n=this.element;$(n).addClass("visible");t.find(".ilp-nav-item").removeClass("active");t.find("[href=#"+$(n).attr("id")+"]").addClass("active")},{offset:"25%"}),t.find(".ilp-nav-item").click(function(n){n.preventDefault();var t=$(this).attr("href");r(t)}),t.find(".ilp-nav-arrow").click(function(){var n;console.log("clicked arrow");var f=$(this),i=t.find(".ilp-nav-item.active"),u=i.index(".ilp-nav-item");console.log(u);console.log(o);console.log(i.attr("href"));f.is(".ilp-nav-arrow-prev")&&(console.log("clicked prev arrow"),u>0&&(console.log("can navigate prev"),n=i.prev().attr("href"),console.log(n),r(n)));f.is(".ilp-nav-arrow-next")&&(console.log("clicked next arrow"),u<o&&(console.log("can navigate next"),n=i.next().attr("href"),r(n)))}),$(window).scroll(function(){var r=n.find(".ilp-blog-filter-section").offset().top;$(window).scrollTop()+$(window).height()>=r?t.addClass("sticky").css({bottom:($(window).height()-t.height()-i)/4}):t.removeClass("sticky").css({bottom:"auto"})}),n.find(".ilp-blog-filters a").click(function(t){var r,i;t.preventDefault();r=$(this);r.toggleClass("active");i=h();i.length>0?function(){var t=function(n,t,i){return i.indexOf(n)>=0};n.find(".ilp-blog-item").each(function(){var n=$(this).data("tags").split(",");i.some(t)?$(this).removeClass("hidden"):$(this).addClass("hidden")})}():n.find(".ilp-blog-item").removeClass("hidden")}))}function t(){var n=3e3;$(".banner-slider").on("init",function(){var i=$(this),t=i.find(".slick-dots");t.find("li").length<=1?t.hide():t.wrap('<div class="slick-dots-container"><\/div>');setTimeout(function(){i.slick("slickPlay")},n)});$(".banner-slider").slick({arrows:!1,dots:!0,slide:".item",autoplay:!0,autoplaySpeed:7e3}).slick("slickPause")}function r(){function o(n){typeof n.webkitEnterFullscreen!="undefined"?n.webkitEnterFullscreen():typeof n.webkitRequestFullscreen!="undefined"?n.webkitRequestFullscreen():typeof n.mozRequestFullScreen!="undefined"&&n.mozRequestFullScreen()}function s(n){typeof n.webkitExitFullscreen!="undefined"?n.webkitExitFullscreen():typeof n.mozExitFullScreen!="undefined"&&n.mozExitFullScreen()}var i=/Mobi/.test(navigator.userAgent),t,r,u,f,n,e;if($("#industry-safety-panorama-container").length&&function(){var o=function(){setTimeout(function(){$("#industry-safety-panorama-placeholder").addClass("fade-out");setTimeout(function(){$("#industry-safety-panorama-placeholder").hide()},1e3)},1e3)},s=function(n){u=n.progress.loaded/n.progress.total*100;$("#industry-safety-panorama-progress-bar").css("width",u+"%");u===100&&(f=!0)},h=function(){for(var t=0;t<n.length;t++)n[t].visible=!0},c=function(){for(var t=0;t<n.length;t++)n[t].visible=!1},e=function(){var i,u;for(t=new PANOLENS.ImagePanorama("/img/base/industry-safety/equirectangular-8k.jpg"),t.addEventListener("progress",s),t.addEventListener("load",o),i=0;i<n.length;i++)t.add(n[i]);r=new PANOLENS.Viewer({container:document.getElementById("industry-safety-panorama-container"),autoHideInfospot:!1,output:"console"});r.add(t);u=!1;window.addEventListener("devicemotion",function(n){(n.rotationRate.alpha||n.rotationRate.beta||n.rotationRate.gamma)&&(u=!0)});u&&r.enableControl(1)};f=!1;n=[];$(".industry-safety-infospot").each(function(t){var i=new PANOLENS.Infospot(300,"/img/base/industry-safety/icon-info.png"),r=$(this).data("position").split(",");i.position.set(parseFloat(r[0]),parseFloat(r[1]),parseFloat(r[2]));i.addHoverElement($(this)[0]);i.setCursorHoverStyle("pointer");i.addEventListener("hover",function(){this.lockHoverElement()});n[t]=i});i||e();$("#show-panorama-button").click(function(){i&&!f&&e();h();$("#intro-content").addClass("animate-out");$("#close-panorama-button").addClass("visible");var n=99;if($("html").is(".breakpoint-mobile"))n:65;else $("html").is(".breakpoint-tablet")&&!$("html").is(".breakpoint-desktop")&&(n=149);$(window).scrollTop()==0?($(window).scrollTop(1),setTimeout(function(){$("html,body").animate({scrollTop:$("#industry-safety-panorama-container").offset().top-n},1e3)},200)):$("html,body").animate({scrollTop:$("#industry-safety-panorama-container").offset().top-n},1e3);setTimeout(function(){$("#intro-content").addClass("reverse-animations invisible");$("#close-panorama-button").addClass("reverse-animations")},1e3)});$("#close-panorama-button").click(function(){c();$("#intro-content").removeClass("animate-out invisible");$("#close-panorama-button").removeClass("visible");setTimeout(function(){$("#intro-content").removeClass("reverse-animations");$("#close-panorama-button").removeClass("reverse-animations")},1e3)})}(),$("#spin-the-owl").length){$("#spin-the-owl .turntable").turntable({axis:"x"});$("#spin-the-owl .turntable").on("mouseenter touchstart",function(){$(this).addClass("image-swapped")})}$("#video-slider").slick({fade:!0,responsive:[{breakpoint:768,settings:{arrows:!1,dots:!0}}]});$("#video-slider .play-video-button").click(function(){var n=$(this).prev("video")[0];$(this).fadeOut();n.play();i&&o(n)});$(".video-slide").each(function(){var n=$(this),t=n.find("video");t.on("ended",function(){s(t[0]);this.currentTime=0;n.find(".play-video-button").fadeIn()})});$(".industry-safety-list").length&&(e=function(){var n=window.location.hash,t;n&&n.indexOf("ist")===1&&(t=$(".industry-safety-content .article-box[data-item='"+n.substring(1)+"']"),t.length&&t.eq(0).click())},$(".industry-safety-content a").click(function(n){n.preventDefault();var t=$(this).next(".slideout-content").html();$("#industry-slideout-content").html(t);$("#industry-slideout").addClass("open btf");$("html").addClass("slideout-open")}),$("#close-industry-slideout-button").click(function(){$("#industry-slideout").removeClass("open");setTimeout(function(){$("#industry-slideout").removeClass("btf");$("html").removeClass("slideout-open")},400)}),$(window).bind("hashchange",e),e())}function u(){var n=window.navigator.userAgent,t=n.indexOf("MSIE "),i=n.indexOf("Edge");return(t>0||i>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))&&$("html").addClass("msie"),!1}function f(){if($("#make-the-safe-call").length){var tt,l,ui,pi,yt,f,pt,k,wi,it,rt,ht,t,wt,p,ut,fi,e,r,o,bt,kt,dt,gt,ei,oi,ct,s,i,si,hi,h,n,ft,d,ci,w,lt,g,ni,at,b,et,c,a,nt,ti,u,li,ai,vi,yi,vt,ot,st,ii,ri,v,y;(function(){var di=function(n){gi();tt.addClass("scrolling");$("html, body").stop().animate({scrollTop:$(n).offset().top-headerOffset},2e3,"easeInOutCubic");setTimeout(function(){tt.removeClass("scrolling")},1e3)},gi=function(){headerOffset=$(".site-header").height()},er=function(){ht=rt-rt*.75*(t/wt);it.find("circle").attr("stroke-dashoffset",ht)},ar=function(){t>=wt?clearInterval(p):(t+=1,or())},vr=function(){t<=0?clearInterval(p):(t-=1,or())},or=function(){er();pr();wr()},yr=function(n){return 2*Math.PI*n},pr=function(){t>=80?(o==2&&(clearInterval(e),r=!0,o=3),r&&(e=setInterval(function(){nr(400,600,100,200)},100),r=!1,console.log("leaves at 80"))):t>=35?((o==1||o==3)&&(clearInterval(e),r=!0,o=2),r&&(clearInterval(e),e=setInterval(function(){nr(600,800,400,800)},250),r=!1,console.log("leaves at 50"))):t>=1?((o==0||o==2)&&(clearInterval(e),r=!0,o=1),r&&(clearInterval(e),e=setInterval(function(){nr(800,1e3,200,600)},500),r=!1,console.log("leaves at 15"))):(o=0,clearInterval(e),r=!0)},nr=function(n,t,i,r){var u=ki(n,t),e=ki(0,f.width())+"px",o=ki(0,f.height()/2)+"px",s=ki(-f.width()/2,f.width()/2);destinationY=ki(-f.height()/2,0);var h=ki(-360,360),c=ki(0,.1),l=$('<div class="leaf"><\/div>');setTimeout(function(){$('<div class="leaf"><\/div>').appendTo(fi).css({animation:"fade-in-out "+u+"ms linear",left:e,top:o,filter:"blur("+ki(1,5)+"px)",transition:"all "+u+"ms ease"}).css({filter:"blur(0)",transform:"scale("+c+") rotate("+h+"deg) translate3d("+s+"px, "+ki(-f.height()/2,f.height()/2)+"px, 0)"}).delay(u).hide(function(){$(this).remove()})},ki(i,r))},ki=function(n,t){return Math.random()*(t-n)+n},wr=function(){console.log("updateObjects");t>=ei&&(bt.addClass("toss-me"),setTimeout(function(){bt.addClass("fry-me")},1e3));t>=oi&&(kt.addClass("toss-me"),setTimeout(function(){kt.addClass("fry-me")},1e3));t>=ballMin&&(dt.addClass("toss-me"),setTimeout(function(){dt.addClass("fry-me")},1e3));t>=trampolineMin&&(gt.addClass("toss-me"),setTimeout(function(){gt.addClass("fry-me")},1e3));$(".flying-object").length==$(".toss-me").length&&setTimeout(function(){$("#storm-winds").addClass("show-overlay");clearInterval(e);clearInterval(p);t=0;er();setTimeout(function(){$("#storm-winds").find(".overlay .intro-title").fadeOut(1e3);setTimeout(function(){$("#storm-winds").find(".overlay .content").fadeIn(1e3);setTimeout(function(){$("#storm-winds").find(".overlay .content .reset-button").addClass("show")},1500)},1500)},3e3)},1500)},sr=function(t){var i=bannerData.questions[t];s.find(".text-1").html(i.text1);s.find(".text-2").html(i.text2);s.find("#video-options .item").each(function(n){$(this).find(".icon").attr("class","icon");$(this).find(".icon").addClass(i.responses[n].icon);$(this).find(".text").html(i.responses[n].iconText)});n.data("current-question-index",t)},br=function(n,t){var r=bannerData.questions[n].responses[t];i.find(".icon").attr("class","icon");i.find(".icon").addClass(r.icon);i.find(".icon-text").html(r.iconText);i.find(".response-title").html(r.responseTitle);i.find(".response-description").html(r.responseDescription)},tr=function(n){s.is(".visible")?(s.removeClass("fade-in"),setTimeout(function(){s.removeClass("visible");i.addClass("visible");setTimeout(function(){i.addClass("fade-in")},100)},1e3)):(i.removeClass("fade-in"),setTimeout(function(){i.removeClass("visible");s.addClass("visible");setTimeout(function(){s.addClass("fade-in");n&&($("[data-fade]").removeClass("fade-in"),$("[data-slide]").removeAttr("style"),kr())},100)},1e3))},kr=function(){bi(n.find(".text-1"),1e3);setTimeout(function(){bi(n.find(".text-2"),3e3);bi(n.find("#video-options"),3e3)},2e3)},bi=function bi(n,t){setTimeout(function(){n.addClass("fading");n.addClass("fade-in");n.find("[data-fade]").each(function(){bi($(this),$(this).data("fade-delay"))});setTimeout(function(){n.removeClass("fading");dr(n,n.data("slide-delay"),n.data("slide-direction"),n.data("slide-distance"))},t)},t)},dr=function(n,t,i,r){setTimeout(function(){n.addClass("sliding");switch(i){case"up":n.css({"margin-bottom":r+"px",bottom:"100%"});break;case"down":n.css({"margin-top":r+"px",top:"100%"});break;case"left":n.css({"margin-right":r+"px",right:"100%"});break;case"right":n.css({"margin-left":r+"px",rightleft:"100%"})}setTimeout(function(){n.removeClass("sliding")},t)},t)},hr=function(n){var i=d.width()/w.attr("max"),t=n*i;ci.css({width:t,height:t});lt.find(".tooltip-value").text(parseFloat(n).toFixed(1));lt.css("left",t/2+w.parent().height()/2);d.find(".fake-track").css("width",t/2)},ir=function(n){var t=(c.width()-c.parent().height())/c.attr("max");ti.css("left",n*t-c.parent().height()*1.25);nt.find(".tooltip-horizontal .tooltip-value").text(parseFloat(ur(n)).toFixed(1))},rr=function(n){var t=(a.width()-a.parent().height())/a.attr("max");ti.find(".tree-middle").css("height",n*t);nt.find(".tooltip-vertical .tooltip-value").text(parseFloat(fr(n)).toFixed(1))},cr=function(n,t){vt?n>=li&&t>=ai?(u.find(".result").text("Correct"),u.find(".message").html('For urban areas, the minimum safe distance is 2.5m to the side and 2m below.<br /><br />It\'s not just trees that can cause outages. <a href="/community/blog/know-your-clearance-zones/">Find out more.<\/a><br /><br />Do you know the safe distance in rural areas? <a href="#" id="game-2-rural">Test your knowledge.<\/a>'),b.addClass("correct")):(u.find(".result").text("Incorrect"),u.find(".message").text("The tree is still a hazard to the powerline and could cause safety hazards, power outages and bushfires. Try again."),b.removeClass("correct")):n>=vi&&t>=yi?(u.find(".result").text("Correct"),u.find(".message").html('For rural areas, the minimum safe distance is 4m to the side and 2.5m below.<br /><br />It\'s not just trees that can cause outages. <a href="/community/blog/know-your-clearance-zones/">Find out more.<\/a><br /><br />Do you know the safe distance in urban areas? <a href="#" id="game-2-urban">Test your knowledge.<\/a>'),b.addClass("correct")):(u.find(".result").text("Incorrect"),u.find(".message").text("The tree is still a hazard to the powerline and could cause safety hazards, power outages and bushfires. Try again."),b.removeClass("correct"));u.addClass("show")},lr=function(){v=ii;y=ri;c.val(v);a.val(y);ir(v);rr(y);ot=!1;st=!1;u.removeClass("show");nt.removeClass("show");b.removeClass("correct");$("html").is(".breakpoint-mobile")&&di("#trees-and-powerlines")},ur=function(n){return Math.abs(n-c.attr("max"))},fr=function(n){return Math.abs(n-a.attr("max"))};tt=$("#make-the-safe-call");l=tt.find(".mtsc-nav");ui=l.find(".mtsc-nav-item").length;gi();$(window).resize(gi);l.addClass("animate-in animating");setTimeout(function(){l.removeClass("animating")},2500);pi=tt.find(".mtsc-content-section").waypoint(function(){var n=this.element;$(n).addClass("visible");l.find(".mtsc-nav-item").removeClass("active");l.find("[href=#"+$(n).attr("id")+"]").addClass("active")},{offset:"25%"});l.find(".mtsc-nav-item").click(function(n){n.preventDefault();var t=$(this).attr("href");di(t)});l.find(".mtsc-nav-arrow").click(function(){var i=$(this),t=l.find(".mtsc-nav-item.active"),r=t.index(".mtsc-nav-item"),n;i.is(".mtsc-nav-arrow-prev")&&r>0&&(n=t.prev().attr("href"),di(n));i.is(".mtsc-nav-arrow-next")&&r<ui&&(n=t.next().attr("href"),di(n))});yt=$("#storm-game");f=yt.find(".game-area");pt=yt.find(".game-controls");k=pt.find(".game-button");wi=pt.find(".wind-test");it=k.find("svg");rt=yr(it.find("circle").attr("r"));ht=rt;it.find("circle").attr("stroke-dasharray",rt);it.find("circle").attr("stroke-dashoffset",ht);t=0;wt=100;k.on("mousedown touchstart",function(){k.addClass("touchy");clearInterval(p);p=setInterval(function(){ar()},100)});k.on("mouseup mouseleave touchend",function(){k.removeClass("touchy");clearInterval(p);p=setInterval(function(){vr()},100)});if(ut=f.find(".island"),fi=f.find(".leaves"),r=!0,o=0,bt=ut.find(".bin"),kt=ut.find(".duck"),dt=ut.find(".ball"),gt=ut.find(".trampoline"),ei=50,oi=65,ballMin=85,trampolineMin=95,$("#storm-winds").find(".overlay .reset-button button").click(function(n){n.preventDefault();$(".flying-object").removeClass("toss-me fry-me");$("#storm-winds").removeClass("show-overlay");setTimeout(function(){$("#storm-winds").find(".overlay .intro-title").fadeIn();$("#storm-winds").find(".overlay .content").fadeOut();$("#storm-winds").find(".overlay .content .reset-button").removeClass("show")},1500)}),ct=$("#make-the-safe-call").find("#intro-banner"),n=ct.find("#banner-content"),s=n.find(".banner-question"),i=n.find(".banner-response"),si=i.find(".next-button a"),hi=i.find(".try-again a"),sr(0),s.find(".item").click(function(){br(n.data("current-question-index"),$(this).data("index"));tr(!1)}),si.click(function(t){var r,i;t.preventDefault();r=n.data("current-question-index")+1;bannerData.questions[r]!=null?(sr(n.data("current-question-index")+1),tr(!0)):(i=100,$("html").is(".breakpoint-mobile")&&(i=65),$("html, body").animate({scrollTop:$("#how-far-can-electricity-travel").offset().top-i},1e3))}),hi.click(function(n){n.preventDefault();tr(!1)}),h=ct.find("#banner-video"),$("html").is(".breakpoint-mobile"))setTimeout(function(){h.find("#banner-image").addClass("visible");bi(n.find(".text-1"),1e3);setTimeout(function(){bi(n.find(".text-2"),3e3);bi(n.find("#video-options"),3e3)},2e3)},1e3),setTimeout(function(){h.find("#banner-image").addClass("visible-after")},2e3);else if($("html").is(".msie"))h.addClass("video-ended"),setTimeout(function(){h.find("#banner-image").addClass("visible");bi(n.find(".text-1"),1e3);setTimeout(function(){bi(n.find(".text-2"),3e3);bi(n.find("#video-options"),3e3)},2e3)},1e3),setTimeout(function(){h.find("#banner-image").addClass("visible-after")},2e3);else h.find("video").on("pause ended",function(){h.addClass("video-ended");setTimeout(function(){h.find("#banner-image").addClass("visible");bi(n.find(".text-1"),1e3);setTimeout(function(){bi(n.find(".text-2"),3e3);bi(n.find("#video-options"),3e3)},2e3)},1e3);setTimeout(function(){h.find("#banner-image").addClass("visible-after")},2e3)});n=ct.find("#banner-content");ft=$("#make-the-safe-call").find("#question-1 .question-game");d=ft.find(".game-area");ci=d.find(".game-circle");w=d.find(".game-handle input");lt=d.find(".game-tooltip");g=ft.find(".game-message");hr(w.val());w.on("change input",function(){hr($(this).val())});w.on("mousedown touchstart",function(){lt.addClass("show")});w.on("mouseup touchend",function(){var n=$(this).val();n>=8?(g.find(".result").text("Correct"),g.find(".message").text("You need to keep at least 8 metres away from a fallen powerline to stay safe."),ft.addClass("correct")):(g.find(".result").text("Incorrect"),g.find(".message").text("You’re still unsafe at this distance and could receive an electric shock. Try again."),ft.removeClass("correct"));g.addClass("show")});ni=$("#make-the-safe-call").find("#question-2");at=ni.find(".quiz-question");b=at.find(".question-game");et=b.find(".game-area");c=et.find(".game-handle.horizontal input");a=et.find(".game-handle.vertical input");nt=et.find(".game-tooltip");ti=et.find(".game-tree");u=ni.find(".game-message");c.on("change input",function(){ir($(this).val());nt.addClass("show")});a.on("change input",function(){rr($(this).val());nt.addClass("show")});li=2.5;ai=2;vi=4;yi=2.5;vt=!0;ot=!1;st=!1;ii=c.val();ri=a.val();v=ii;y=ri;ir(v);rr(y);c.on("mouseup touchend",function(){ot=!0;v=$(this).val();ot&&st&&cr(ur(v),fr(y))});a.on("mouseup touchend",function(){st=!0;y=$(this).val();ot&&st&&cr(ur(v),fr(y))});$(document).on("click","#game-2-rural",function(n){n.preventDefault();vt=!1;lr();at.find(".question-title").text("Know the safe distance between trees and powerlines in rural areas?")});$(document).on("click","#game-2-urban",function(n){n.preventDefault();vt=!0;lr();at.find(".question-title").text("Know the safe distance between trees and powerlines in urban areas?")});$(".member-marker").click(function(){var n=$("#"+$(this).data("ref")),t=$(this).is(".active");$(".member-marker").removeClass("active");$(".member-box").removeClass("visible");t||($(this).addClass("active"),n.addClass("visible"))});$(".close-box").click(function(){$(".member-marker").removeClass("active");$(this).parent().removeClass("visible")})})()}}function e(){function v(){var n=!1;$(".inverter-details .input-group").each(function(){var t=$(this).find(".energysource select").val();t.indexOf("battery")>=0&&(n=!0)});n?b.prop("checked",!0).trigger("change"):b.prop("checked",!1).trigger("change");r(n)}function s(){var t=$(c).val(),i,n,r;t.length&&(i=JSON.parse(t),$("#inverter-validation-error").html("<span>"+i.response+"<\/span>"));n=$(e).val();n.length&&(r=JSON.parse(n),$("#storage-validation-error").html("<span>"+r.response+"<\/span>"))}function y(){o=$("select[name=c930926c-7eb1-4db1-e635-67429b11d261] option:selected").val().toLowerCase();n.find(".inverterphase select").each(function(){var n=$(this),i=$(this).find("option:selected").val().toLowerCase(),t=!1;n.find("option").each(function(){var i=$(this);t?(i.prop("disabled",!0),i.is(":selected")&&(i.prop("selected",!1),console.log(n.find(":disabled").first().prev()),n.find(":disabled").first().prev().prop("selected",!0))):i.val()==o?(i.prop("disabled",!1),t=!0):i.prop("disabled",!1)})})}function r(n){var n=!0&&n,l=!0,i=0,r=0,f=0,o=0,h=0,c=0,t={storage:[],totals:{newPower:0,existingPower:0,newEnergy:0,existingEnergy:0,totalPower:0,totalEnergy:0}},a;$(".storage-details .input-group").each(function(){var s={},h=!0,c,n;$(this).find("input, .select").each(function(){var n=$(this).data("label");$(this).is(".select")?$(this).find("select").prop("selectedIndex")==0?h=!1:s[n]=$(this).find("select option:selected").text():$(this).val()==""?h=!1:s[n]=$(this).val()});h||(l=!1);t.storage.push(s);var a=$(this).find(".status option:selected").val()=="existing",e=$(this).find(".noofunits").val(),v=$(this).find(".ratedcontinuouspowerperunitkw").val();v!=""&&e!=""&&(n=u(parseFloat(v)*parseFloat(e),2),a?r+=n:i+=n);c=$(this).find(".ratedenergycapacityperunitkwh").val();c!=""&&e!=""&&(n=u(parseFloat(c)*parseFloat(e),2),a?o+=n:f+=n)});h=i+r;c=f+o;$("#storage_A1").text(i);$("#storage_B1").text(r);$("#storage_A2").text(f);$("#storage_B2").text(o);$("#storage_T1").text(h);$("#storage_T2").text(c);t.totals.newPower=i;t.totals.existingPower=r;t.totals.newEnergy=f;t.totals.existingEnergy=o;t.totals.totalPower=h;t.totals.totalEnergy=c;a=l?{status:"OK",response:t}:{status:"INVALID",response:"All details are required"};n?$(e).val(JSON.stringify(a)).trigger("blur"):$(e).val("").trigger("blur");s()}function h(){var v=!0,y=!1,l=!1,r=0,f=0,e=0,h=0,a=0,n=0,i={inverters:[],totals:{newGeneration:0,existingGeneration:0,newCapacity:0,existingCapacity:0,totalGeneration:0,totalCapacity:0}},p=!0,w;$(".inverter-details .input-group").next(".field-validation-error").remove();$(".inverter-details .input-group").each(function(){var o={},s=!0,c,n,a;$(this).find("input, .select").each(function(){var n=$(this).data("label");$(this).is(".select")?$(this).find("select").prop("selectedIndex")==0?s=!1:o[n]=$(this).find("select option:selected").text():$(this).val()==""?s=!1:o[n]=$(this).val()});s||(v=!1);i.inverters.push(o);var w=$(this).find(".status option:selected").val()=="existing",t=$(this).find(".noofunits").val(),b=$(this).find(".energysourceratingkw").val();b!=""&&t!=""&&(n=u(parseFloat(b)*parseFloat(t),3),w?f+=n:r+=n);c=$(this).find(".kvaperport").val();c!=""&&t!=""&&(n=u(parseFloat(c)*parseFloat(t),3),w?h+=n:e+=n);$(this).find(".energysource option:selected").is("[value]")&&(a=$(this).find(".energysource option:selected").val(),a!="pvonly"&&(y=!0,l=!0,p=!1))});a=r+f;n=e+h;pt=n;$("#inverter_A1").text(r);$("#inverter_B1").text(f);$("#inverter_A2").text(e);$("#inverter_B2").text(h);$("#inverter_T1").text(a);$("#inverter_T2").text(n);i.totals.newSourceRating=r;i.totals.existingSourceRating=f;i.totals.newCapacity=e;i.totals.existingCapacity=h;i.totals.totalSourceRating=a;i.totals.totalCapacity=n;w=v?n>30?{status:"INVALID",response:"Total inverter capacity on this connection point must not exceed 30 kVA.<br /><br />Please check the numbers you have entered, then apply using the <a href='https://westernpower.com.au/connections/solar-batteries-electric-vehicles/application-for-inverter-system-30kva-to-150kva/'>30 to 150 kVA application<\/a>."}:t==1&&ft(n)?{status:"INVALID",response:"One or more inverters creates an imbalance across the supply phases greater than 2.5 kVA. Please review them in order to proceed."}:o=="one"&&p&&n>5?{status:"INVALID",response:"Maximum 5 kVA inverter capacity allowed on one phase supply if PV only. Please review your inverter selection."}:{status:"OK",response:i}:{status:"INVALID",response:"All details are required"};$(c).val(JSON.stringify(w)).trigger("blur");s();n>5&&(l=!0);y?k.prop("checked",!0).trigger("change"):k.prop("checked",!1).trigger("change");l?d.prop("checked",!0).trigger("change"):d.prop("checked",!1).trigger("change")}function ft(n){var t=!1,i=$("select[name=c930926c-7eb1-4db1-e635-67429b11d261] option:selected").val().toLowerCase();return i!=""&&i!="one"&&n>3&&$(".inverter-details .input-group").each(function(){var i=$(this).find(".noofunits").val(),r=$(this).find(".inverterphase option:selected").val().toLowerCase(),n;i==1&&r=="one"&&(n=$('<span class="field-validation-error">This inverter selection creates an imbalance across the supply phases greater than 2.5 kVA<\/span>'),$(this).after(n),t=!0)}),t}function u(n,t){return Number(Math.round(n+"e"+t)+"e-"+t)}function et(){var n=$('<table class="table">');return n.append("<tr><th>Summary<\/th><th>Power kW<\/th><th>Energy kWh<\/th><\/tr>").append('<tr><td>New storage<\/td><td id="storage_A1"><\/td><td id="storage_A2"><\/td><\/tr>').append('<tr><td>Existing storage<\/td><td id="storage_B1"><\/td><td id="storage_B2"><\/td><\/tr>').append('<tr><td>Total<\/td><td id="storage_T1"><\/td><td id="storage_T2"><\/td><\/tr>'),$('<div class="table-responsive">').append(n)}function ot(){var n=$('<table class="table">');return n.append("<tr><th>Summary<\/th><th>Generation kW<\/th><th>Inverter kVA<\/th><\/tr>").append('<tr><td>New capacity being added<\/td><td id="inverter_A1"><\/td><td id="inverter_A2"><\/td><\/tr>').append('<tr><td>Existing capacity being retained<\/td><td id="inverter_B1"><\/td><td id="inverter_B2"><\/td><\/tr>').append('<tr><td>Total<\/td><td id="inverter_T1"><\/td><td id="inverter_T2"><\/td><\/tr>'),$('<div class="table-responsive">').append(n)}function st(){var n=$('<div class="button-group">');return n.append(ct("remove-inverter")).append(at("add-inverter")),n}function ht(){var n=$('<div class="button-group">');return n.append(lt("remove-storage")).append(vt("add-storage")),n}function ct(n){var i=$('<a href="" class="button remove-button" id="'+n+'">Remove inverter<\/a>');return i.click(function(n){n.preventDefault();t>1&&($(".inverter-details .input-group:last").remove(),$(".inverter-details input").trigger("change"),t--);v();h()}),i}function lt(n){var t=$('<a href="" class="button remove-button" id="'+n+'">Remove energy storage<\/a>');return t.click(function(n){n.preventDefault();l>1&&($(".storage-details .input-group:last").remove(),$(".storage-details input").trigger("change"),l--);r()}),t}function at(n){var t=$('<a href="" class="button add-button" id="'+n+'">Add inverter<\/a>');return t.click(function(n){n.preventDefault();$(".inverter-details .input-group-container").append(f(tt,!0));y();h()}),t}function vt(n){var t=$('<a href="" class="button add-button" id="'+n+'">Add energy storage<\/a>');return t.click(function(n){n.preventDefault();$(".storage-details .input-group-container").append(f(rt,!1));r()}),t}function f(n,i){var u='<div class="input-group">',f=0,h="",o,c,s,r,a,y,e,v;for(i?(f=++t,h="Inverter"):(f=++l,h="Storage"),u+="<h4>"+h+" "+f+"<\/h4>",o=0;o<n.length;o++){for(u+='<div class="row">',c=n[o],s=0;s<c.length;s++){r=c[s];a=r.columns;u+='<div class="span'+a+" col-md-"+a+' form-col"><div class="contourField '+r.inputType+'">';switch(r.inputType){case"shortanswer":r.condition&&(y=r.condition,r.attributes+=" class='textBoxInput'");e=r.label.replace(/ /g,"").replace(".","");v=r.type!=""?r.type:"text";u+='<label class="fieldLabel" for="'+e+"_"+f+'">'+r.label+"<\/label>";u+='<input type="'+v+'" class="'+e.toLowerCase()+'" id="'+e+"_"+f+'" '+r.attributes+' placeholder="'+r.label+'" data-label="'+e.toLowerCase()+'" />';break;case"dropdown":u+=yt(r)}u+="<\/div><\/div>"}u+="<\/div>"}return u+"<\/div>"}function yt(n){var u=n.label.replace(/ /g,"").replace(".",""),r='<label class="fieldLabel" for="'+u+"_"+t+'">'+n.label+"<\/label>",i;for(r+='<div class="select '+n.label.replace(/ /g,"").toLowerCase()+'" id="'+n.label.replace(/ /g,"")+"_"+t+'" data-label="'+u.toLowerCase()+'"><select '+n.attributes+">",r+="<option>"+n.label+"<\/option>",i=0;i<n.preValues.length;i++)r+="<option value='"+n.preValues[i].replace(/ /g,"").toLowerCase()+"'>"+n.preValues[i]+"<\/option>";return r+"<\/select><\/div>"}var p="#1f2f5a03-6469-41be-ed82-deff8758e799",c="#5bf09637-7363-489a-ffca-9b84beda5edf",w="#78bb0093-a2f7-406c-c5b4-737dffdf5214",e="#3003d904-fc42-46a1-8a02-eb983f188d94",t=0,l=0,pt=0,b=$("input[name=b9ecd6b6-b987-4bde-b144-6ea170ef1297]"),k=$("input[name=b95536e8-010f-4943-9db6-7ce23d0f6745]"),d=$("input[name=6c1d19c2-375d-40be-f0cb-0bb4d595b117]"),g,nt,a,o;if($("input[name=FormId]").length&&$("input[name=FormId]").val()==="3fddafce-af19-4df7-89a3-b3b556fd4410"){$("select[name=25e94e88-a19f-4c58-8231-fcbec557d312] option:first").prop("disabled",!0);$("select[name=25e94e88-a19f-4c58-8231-fcbec557d312]").select2();$("select[name=25e94e88-a19f-4c58-8231-fcbec557d312]").on("select2:select",function(){$("#contour_form_3fddafceaf194df789a3b3b556fd4410 form").validate().element($(this))});$("select[name=0c67db5f-4ca3-4d88-9336-369770bd0992] option:first").prop("disabled",!0);$("select[name=0c67db5f-4ca3-4d88-9336-369770bd0992]").select2({language:{noResults:function(){return'If your suburb is not listed, please select "Other", then enter suburb name in the field below.'}}});$("select[name=0c67db5f-4ca3-4d88-9336-369770bd0992]").on("select2:select",function(){$("#contour_form_3fddafceaf194df789a3b3b556fd4410 form").validate().element($(this))});g=$('<span class="field-validation-error custom-validation-message" id="inverter-validation-error">');$(".contourField.inverterdetailsresult").append(g);nt=$('<span class="field-validation-error custom-validation-message" id="storage-validation-error">');$(".contourField.storagedetailsresult").append(nt);a={status:"INVALID",response:"All details are required"};$(c).val(JSON.stringify(a)).trigger("blur");$(e).val(JSON.stringify(a)).trigger("blur");$("#contour_form_3fddafceaf194df789a3b3b556fd4410 form").submit(function(){s()});var tt=JSON.parse($(p).val()),n=$('<div class="inverter-details">'),it=$('<div class="input-group-container">');n.append(it);it.append(f(tt,!0));n.append(st());n.append(ot());$(p).before(n);n.on("change","input, select",function(){h()});var rt=JSON.parse($(w).val()),i=$('<div class="storage-details">'),ut=$('<div class="input-group-container">');i.append(ut);ut.append(f(rt,!1));i.append(ht());i.append(et());$(w).before(i);i.on("change","input, select",function(){r(!0)});n.on("change",".energysource select",function(){v()});n.on("input","input[type=number]",function(){var n=$(this).val().match(/^(\d+\.*(\d+)?)$/);n===null&&$(this).val("")});$("select[name=c930926c-7eb1-4db1-e635-67429b11d261]").change(function(){y()});o=""}}function o(){$(".fancybox").fancybox({})}function s(){$(".main-navigation .has-children").deepfocus();$(".outage-panel").deepfocus();$(".dropdown").deepfocus()}function h(){$(".alert-close").click(function(){$(".alert-strip").hide();$("body").removeClass("has-alert");Cookies.set("hideAlert",!0,{expires:1})})}function c(){function r(n){clearTimeout(i);i=setTimeout(function(){$.getJSON("/support/",{altTemplate:"JSON",term:n},u)},200)}function u(t){var i="",u,r,f;if(t.SupportSearchListing.length>0){for(u=5,t.SupportSearchListing.length<5&&(u=t.SupportSearchListing.length),i+='<div class="result-group">',i+="<h3>Support articles<\/h3>",r=0;r<u;r++)f=t.SupportSearchListing[r],i+='<a href="'+f.Url+'">'+f.Name+"<\/a>";i+="<\/div>";n.html(i);n.show()}else n.hide()}var t=$("#contour_form_409b8baf8cd143cfb6e927ca826894a7 .enquiry textarea"),n,i;t.length>0&&(t.after('<div class="enquiry-results autocomplete-wrap"><\/div>'),n=$("#contour_form_409b8baf8cd143cfb6e927ca826894a7 .enquiry .enquiry-results"),t.bind("keyup change",function(){var t=$(this).val();t.length>5?r(t):n.hide()}))}function l(){var t="on",n="show";$(document).on("checkval","input, textarea, select",function(){var t,i;$(this).attr("type")!="submit"&&(t=$(this).prev("label"),t.length==0&&(t=$(this).parent().prev("label")),i=$(this).val(),i!==""?(t.addClass(n),$(this).addClass(n)):(t.removeClass(n),$(this).removeClass(n)))}).on("keyup","input, textarea, select",function(){$(this).trigger("checkval")}).on("focus","input, textarea, select",function(){$(this).prev("label").addClass(t)}).on("blur","input, textarea, select",function(){$(this).prev("label").removeClass(t)}).on("change","input, textarea, select",function(){$(this).trigger("checkval")}).trigger("checkval")}function a(){function n(n){function r(){e();$(".contourPage select",i).each(function(){$(this).val()!=null&&$(this).val()!=""&&(t[$(this).attr("id")]=$("option[value='"+$(this).val().replace("'","&#39;")+"']",$(this)).text())});$(".contourPage textarea",i).each(function(){t[$(this).attr("id")]=$(this).val()});$(".contourPage input",i).each(function(){($(this).attr("type")=="text"||$(this).attr("type")=="hidden")&&(t[$(this).attr("id")]=$(this).val());$(this).attr("type")=="radio"&&$(this).is(":checked")&&(t[$(this).attr("name")]=$(this).val());$(this).attr("type")=="checkbox"&&($(this).attr("id")!=$(this).attr("name")?$(this).is(":checked")&&(t[$(this).attr("name")]==null?t[$(this).attr("name")]=$(this).val():t[$(this).attr("name")]+=","+$(this).val()):t[$(this).attr("name")]=$(this).is(":checked").toString())})}function e(){var n;t=[];for(n in f)$("#"+n).length===0&&(t[n]=f[n])}function u(){umbracoForms.conditions.handle({fsConditions:o,fieldConditions:s,values:t})}var t,f=JSON.parse($("#values_"+n).val()),o=JSON.parse($("#fsConditions_"+n).val()),s=JSON.parse($("#fieldConditions_"+n).val()),i=$("#contour_form_"+n);$(function(){$(".contourPage input, .contourPage textarea, .contourPage select",i).change(function(){r();u()});r();u()})}$(document).on("click",".contour form input[type=submit]:not(.cancel)",function(t){var i=$(this).closest("form"),r;i.find("input[type=file]").length>0||(i.find("input[type=submit]").attr("disabled","disabled"),t.preventDefault(),i.addClass("submitted"),r=i.serialize(),$.post(i.attr("action"),r,function(t){var u=$(".contourMessageOnSubmit",t),r;u.length>0?i.parent().html(u[0]):i.parent().html($("#"+i.parent().attr("id")+" form",t)[0]);$(".field-validation-error").length==0?(r=$(".contour form").offset().top-120,window.scroll(0,r)):(r=$(".field-validation-error").first().prev("input").offset().top-60,window.scroll(0,r));$(".contourField input, .contourField textarea, .contourField select").trigger("checkval");$(".contour").each(function(){n($(this).data("clientid"),$(this).data("formname"))})}))});$(".contour").each(function(){n($(this).data("clientid"),$(this).data("formname"))});$(".contourField input, .contourField textarea, .contourField select").trigger("checkval")}function v(){$(".datepickerfield").each(function(){new Pikaday({field:this})})}function y(){$(".btn-nav").click(function(n){n.preventDefault();$("body").addClass("nav-open")});$(".btn-nav-close").click(function(n){n.preventDefault();$("body").removeClass("nav-open")});$(".nav-toggle").click(function(){$(this).parent().toggleClass("open")})}function p(){function n(n){var r=$(window).scrollTop(),u=$(".site-header"),t=$("body"),i=$(".logo");r>0?(t.addClass("minified-header"),n&&i.addClass(n)):(t.removeClass("minified-header"),i.removeClass("no-animate"))}n("no-animate");$(window).scroll(function(){n()})}function w(){$(".btn-search").click(function(n){n.preventDefault();$(".site-header .search").toggleClass("open");$(".site-header .search input[type=text]").focus()})}function b(){var t,i,n;$(".tabs .tab > li").keypress(function(n){n.which==13&&$(this).click()});$(".tabs").easyResponsiveTabs({tabidentify:"tab",activate:function(){Cookies.set("tabtype",$(this).data("tabtype"),{expires:365})}});t=Cookies.get("tabtype");i=window.location.hash;i?(n=$('.tabs .tab[data-tabtype="'+i.substring(1)+'"]'),n.length&&(n.click(),$("html, body").animate({scrollTop:n.offset().top-$(".site-header").outerHeight()},1e3))):t!=""&&$(".tabs .tab-"+t).click()}function k(){$(".panel-slider:not(.display-list)").slick({infinite:!0,slidesToShow:1,slidesToScroll:1,slide:".item",mobileFirst:!0,adaptiveHeight:!0,dots:!0,prevArrow:'<a href="" class="slick-prev slick-panel-slider-arrow">Previous<\/a>',nextArrow:'<a href="" class="slick-next slick-panel-slider-arrow">Next<\/a>',responsive:[{breakpoint:768,settings:{fade:!0}}]})}function d(){$(".image-gallery").slick({dots:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,slide:".image",mobileFirst:!0,prevArrow:'<a href="" class="slick-prev">Previous<\/a>',nextArrow:'<a href="" class="slick-next">Next<\/a>',responsive:[{breakpoint:768,settings:{slidesToShow:3,draggable:!1}},{breakpoint:1024,settings:{slidesToShow:4,draggable:!1}},{breakpoint:1250,settings:{slidesToShow:5,draggable:!1}}]})}function g(){function n(){$(".embed-lightbox").slick({arrows:!1,dots:!1,infinite:!0,slidesToShow:3,slidesToScroll:1,slide:".item",responsive:[{breakpoint:768,settings:{dots:!0,slidesToShow:1}}]})}n();$(".tabs .tab").click(function(){$(".embed-lightbox").slick("unslick");n()})}function nt(){$(".latest-news-carousel .slides").slick({dots:!1,infinite:!0,slidesToShow:3,slidesToScroll:1,slide:".slide",speed:500,cssEase:"ease-in-out",mobileFirst:!0,prevArrow:'<a href="" class="slick-prev">Previous<\/a>',nextArrow:'<a href="" class="slick-next">Next<\/a>',responsive:[{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:1024,settings:{slidesToShow:3}},{breakpoint:1680,settings:{slidesToShow:4,draggable:!1}}]})}function tt(){$(".featured-content-carousel .slides").slick({dots:!0,infinite:!0,slidesToShow:2,slidesToScroll:1,slide:".slide",speed:500,cssEase:"ease-in-out",mobileFirst:!0,prevArrow:'<a href="" class="slick-prev">Previous<\/a>',nextArrow:'<a href="" class="slick-next">Next<\/a>',responsive:[{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:1250,settings:{slidesToShow:3,draggable:!1}}]})}function it(){$(".alert-lightbox").length&&($(".btn-alert-details").click(function(n){n.preventDefault();$(".alert-lightbox").addClass("open btf");$("html").addClass("slideout-open")}),$(".close-alert-lightbox").click(function(){$(".alert-lightbox").removeClass("open");setTimeout(function(){$(".alert-lightbox").removeClass("btf");$("html").removeClass("slideout-open")},400)}))}function rt(){var n=$(".outage-panel");n.mouseenter(function(){n.addClass("show-corner")});n.mouseleave(function(){setTimeout(function(){n.removeClass("show-corner")},200)})}function ut(){var t=$("html"),n=$("#form-lightbox"),i=$("#form-lightbox-title");$(".interactive-table .it-cell .button").click(function(r){r.preventDefault();var u=$(this),f=u.data("sendto"),e=u.data("application-type"),o=u.parent().parent().find(".it-lightbox"),s=u.parent().parent().find(".form-title").html();t.addClass("hide-scroll");f?(f=f.split("").reverse().join("").replace(/#/g,"@"),n.find("form #2549aa62-7439-4c00-b16d-924cfc24098c").val(f),n.find("form #6b5c5ffb-e416-4958-ee5b-20dfd063bae8").val(e),i.html(s),n.addClass("visible")):o.addClass("visible")});$(".interactive-table .fileupload input").each(function(){$(this).on("change",function(n){var t=$(this);this.files&&(fileName=n.target.value.split("\\").pop());newLabel=fileName?fileName:"Upload document";$(".interactive-table .fileupload label").html(newLabel)})});$(".interactive-table .it-lightbox-cross, .interactive-table .it-lightbox-close, .interactive-table .it-lightbox-background").click(function(n){n.preventDefault();t.removeClass("hide-scroll");$(".interactive-table .it-lightbox").removeClass("visible");$(".interactive-table .fileupload label").html("Upload document")});$(".interactive-table form").on("submit",function(){var n=$(".interactive-table form"),t=n.find('input[type="submit"]');n.valid()&&(t.val("Submitting"),t.prop("disabled",!0))})}function ft(){$("#contour_form_3e2c457b51304d5f80f37c2c08f15f66").length&&window.formParams.length&&window.formParams[0]["reference-number"]!=null&&$("input[name=73ba0813-ba3d-41d6-b92e-a9538345ed42]").val(window.formParams[0]["reference-number"])}function et(){function n(){var n=$(window).width(),t;n>1260+r?(t=(n-1200)/2-r,i.css("right",t+"px")):i.css("right","0px")}function t(){var n=sessionStorage.getItem("timeLaunched");n?(currentTime=Date.now(),elapsedTime=(currentTime-n)/1e3,elapsedTime>120&&$(".click-to-chat").animate({opacity:1,margin:0},600)):(n=Date.now(),sessionStorage.setItem("timeLaunched",n));setTimeout(function(){t()},2e3)}var i=$(".click-to-chat-desktop .click-to-chat"),r=110;n();$(window).resize(function(){n()});t()}var ot=function(){y();p();w();b();d();g();nt();tt();it();v();l();a();c();h();k();s();o();e();f();u();rt();App.Map.init();r();ut();et();ft();i();t();n()};return{init:ot}}(),eval(function(n,t,i,r,u,f){if(u=function(n){return n.toString(t)},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}("4 7=g.b;4 2=3.p('r');2.9='a/5';2.c='d';2.e=('6:'==3.u.h?'6:':'i:')+'//j.k.l/t/1.5?m=n&o='+7;(3.8('q')[0]||3.8('s')[0]).f(2);",31,31,"||mtiTracking|document|var|css|https|projectId|getElementsByTagName|type|text|MTIProjectId|rel|stylesheet|href|appendChild|window|protocol|http|fast|fonts|net|apiType|css|projectid|createElement|head|link|body||location".split("|"),0,{})),App=App||{},App.Map=function(){function r(t,i){require(["esri/map","esri/layers/WebTiledLayer"],function(r,u){var h=$.extend(i,{center:[115.857,-31.9535]}),f,e;n=new r("map",h);f={options:{id:"MapData Services Foundation Map",visible:!0,subDomains:["1","2","3","4"],attribution:"2016 MapData Services"},url:"https://api{subDomain}.nowwhere.com.au/1.1.2/tile/50/${level}/${col}/${row}?key="+s.ApiKey};e=new u(f.url,f.options);n.addLayer(e);o();t()})}function u(){r(f,{zoom:17,minZoom:17})}function f(){require(["esri/layers/FeatureLayer","esri/renderers/UniqueValueRenderer","esri/Color","esri/symbols/SimpleLineSymbol","esri/symbols/SimpleMarkerSymbol"],function(t,i,r,u,f){var o=new t("https://services2.arcgis.com/tBLxde4cxSlNUxsM/arcgis/rest/services/Street_Lights_Feb2017/FeatureServer/0",{outFields:["PICK_ID","EQUIP_CODE"]}),s,h,c;o.setMinScale(5e3);s=(new f).setColor(new r([255,155,0,1])).setSize(10);o.setSelectionSymbol(s);h=(new f).setColor(new r([255,0,0,.5])).setSize(10);c=(new f).setColor(new r([0,255,0,.8])).setSize(10);n.addLayer(o);e(o)})}function e(i){require(["esri/symbols/SimpleFillSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/SimpleMarkerSymbol","esri/geometry/Circle","esri/graphic","esri/tasks/query","esri/Color","esri/tasks/locator","esri/geometry/webMercatorUtils"],function(r,u,f,e,o,s,h,c,l){function p(t){var i,r;if(t=t||!1,t&&y(),a.length>0)for(i=0;i<a.length;i++)r=new o(a[i].geometry,d),n.graphics.add(r)}function y(){v=null;n.graphics.clear();t.hide()}function w(){var t,i,n,r,u;for($("html, body").animate({scrollTop:$("#contour_form_de05df3053e64b7a8e440d664d079530").offset().top-$(".site-header").height()},400),$(".streetinformation").addClass("map-focus-expand"),setTimeout(function(){$(".streetinformation").removeClass("map-focus-expand")},1500),t="",i="",n=0;n<a.length;n++)i+=JSON.stringify(a[n].attributes),$(".selectedlamp > input").val(i+" ; "),r=l.webMercatorToGeographic(a[n].geometry),u=b.locationToAddress(r,10,function(n){t+=n.address.Match_addr+" ; ";$("#91c5b51a-8e93-4117-a505-6f35a226b4c7").val(t)})}var a=[],b=new c("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),g=new r(r.STYLE_NULL,new u(u.STYLE_SHORTDASHDOTDOT,new h([105,105,105]),2),new h([255,255,0,.25])),k=(new f).setColor(new h([0,170,0,1])).setSize(11),d=(new f).setColor(new h([243,116,32])).setSize(11),v=null;t.mouseout(y);i.on("mouse-over",function(t){y();v=t.graphic;var i=new o(t.graphic.geometry,k);n.graphics.add(i);p()});n.graphics.on("mouse-out",function(){y()});n.graphics.on("click",function(){var r,t,n,u;if(v){if(r=!1,t=-1,a.length>0){for(n=0;n<a.length;n++)v.attributes.OBJECTID==a[n].attributes.OBJECTID&&(r=!0,t=n);t>=0&&(a.splice(t,1),p(!0),w())}r||(u=new s,u.objectIds=[v.attributes[i.objectIdField]],i.selectFeatures(u,1))}});i.on("selection-complete",function(n){for(var t=0;t<n.features.length;t++)a.push(n.features[0]);w()})})}function o(){require(["esri/dijit/Search","esri/tasks/locator","esri/geometry/webMercatorUtils"],function(t,r,u){var f=new r("//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),s=new r("//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),o=[{locator:f,singleLineFieldName:"SingleLine",countryCode:"AU",outFields:["*"],name:"Default Locator",localSearchOptions:{minScale:3e5,distance:5e4},placeholder:"Enter an address"}],e=new t({map:n,sources:o},"map-search");$("#streetlight-map-container .btn-reset-map").click(function(n){n.preventDefault();e.clear();i=null;setOutageAccordion()});$("#streetlight-map-container .btn-center-map-to-location").click(function(t){function i(t){var i=new esri.geometry.Point(t.coords.longitude,t.coords.latitude);n.centerAndZoom(i,6)}t.preventDefault();navigator.geolocation?navigator.geolocation.getCurrentPosition(i):alert("Geolocation is not supported by this browser.")});e.on("select-result",function(n){f.locationToAddress(u.webMercatorToGeographic(n.result.feature.geometry),1e3)});f.on("location-to-address-complete",function(n){var t=n.address.address.City;i=t;setOutageAccordion()});e.startup()})}var s={ApiKey:"15xuiGv8jN45H21OOY0vg75t15j33PA4QekPQ518"},n,t,i=null,h=function(){t=$(".tooltip");$("#streetlight-map-container").length>0&&$.getScript("//js.arcgis.com/3.15/",u)};return{init:h}}(),$.fn.deepfocus=function(){var n="deep-focus";return this.each(function(){var t=$(this);t.on("focusin",function(){t.addClass(n)}).on("focusout",function(){var i=!!t.find(":focus").length;t.toggleClass(n,i)})})},"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function t(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.5";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.5";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function t(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.5";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.5";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.5";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,a,f,v,o;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),y=this.getUID(this.type);this.setContent();r.attr("id",y);this.$element.attr("aria-describedby",y);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,p=/\s?auto?\s?/i,w=p.test(i);w&&(i=i.replace(p,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var e=this.getPosition(),s=r[0].offsetWidth,h=r[0].offsetHeight;w&&(a=i,f=this.getPosition(this.$viewport),i="bottom"==i&&e.bottom+h>f.bottom?"top":"top"==i&&e.top-h<f.top?"bottom":"right"==i&&e.right+s>f.width?"left":"left"==i&&e.left-s<f.left?"right":i,r.removeClass(a).addClass(i));v=this.getCalculatedOffset(i,e,s,h);this.applyPlacement(v,i);o=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=u.hoverState&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.5";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(n(i).is(document.body)?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.5";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.5";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function t(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.5";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,f,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,e=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=(typeof r=="undefined"?"undefined":_typeof(r))&&(u=e=r),"function"==typeof e&&(e=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,e,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),f="affix"+(i?"-"+i:""),o=n.Event(f+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(f).trigger(f.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(t.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),void 0!==r?r:!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i;return n(this[0]).is("form")?t=this.validate().form():(t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t})),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var e,s,f,u,o,h,r=this[0];if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i];delete f[i];"required"===i&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){return!!n.trim(""+n(t).val())},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(9!==t.which||""!==this.elementValue(n))&&(n.name in this.submitted||n===this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var r=n.data(this[0].form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!this.is(i.ignore)&&i[u].call(r,this[0],t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",i).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var u=this.clean(t),i=this.validationTargetFor(u),r=!0;return this.lastElement=i,void 0===i?delete this.invalid[u.name]:(this.prepareElement(i),this.currentElements=n(i),r=this.check(i)!==!1,r?delete this.invalid[i.name]:this.invalid[i.name]=!0),n(t).attr("aria-invalid",!r),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),r},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var i,t=0;for(i in n)t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,u=n(t),r=t.type;return"radio"===r||"checkbox"===r?n("input[name='"+t.name+"']:checked").val():"number"===r&&"undefined"!=typeof t.validity?t.validity.badInput?!1:u.val():(i=u.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,r,u,f=n(t).rules(),s=n.map(f,function(n,t){return t}).length,e=!1,h=this.elementValue(t);for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,h,t,u.parameters),"dependency-mismatch"===i&&1===s){e=!0;continue}if(e=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+u.method+"' method.",o),o;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n];return void 0},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t,method:i.method});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,o,e,r=this.errorsFor(t),s=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement(u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",s):0===r.parents("label[for='"+s+"']").length&&(e=r.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),f?f.match(new RegExp("\\b"+e+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),o=this.groups[t.name],o&&n.each(this.groups,function(t,i){i===o&&n("[name='"+t+"']",this.currentForm).attr("aria-describedby",r.attr("id"))})));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.idOrName(t),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+u.replace(/\s+/g,", #")),this.errors().filter(i)},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+t+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n=="undefined"?"undefined":_typeof(n)]?this.dependTypes[typeof n=="undefined"?"undefined":_typeof(n)](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var r,i,u={},e=n(t),f=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=e.attr(r),/min|max/.test(r)&&(null===f||/number|range|text/.test(f))&&(i=Number(i)),i||0===i?u[r]=i:f===r&&"range"!==f&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t);for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),void 0!==r&&(u[i]=r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(_typeof(u.depends)){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0!==u.param?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var i,f,e=0,r=0,u=!1;if(n=n.replace(/\D/g,""),n.length<13||n.length>19)return!1;for(i=n.length-1;i>=0;i--)f=n.charAt(i),r=parseInt(f,10),u&&(r*=2)>9&&(r-=9),e+=r,u=!u;return e%10==0},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=u},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||i>=n},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r){if(this.optional(i))return"dependency-mismatch";var u,e,f=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r="string"==typeof r&&{url:r}||r,f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,context:u.currentForm,success:function(r){var o,e,h,s=r===!0||"true"===r;u.settings.messages[i.name].remote=f.originalMessage;s?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(o={},e=r||u.defaultMessage(i,"remote"),o[i.name]=f.message=n.isFunction(e)?e(t):e,u.invalid[i.name]=!0,u.showErrors(o));f.valid=s;u.stopRequest(i,s)}},r)),"pending")}}});n.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead.";};var i,t={};n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),r=i.data(u),f=n.proxy(v,t);return r||(r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:n.proxy(c,t),invalidHandler:n.proxy(l,t),messages:{},rules:{},success:n.proxy(a,t)},attachValidation:function(){i.unbind("reset."+u,f).bind("reset."+u,f).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,r)),r}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t).parents("form").andSelf().add(n(t).find("form")).filter("form");n(t).find(":input").filter("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});i.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input").filter("[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery),function(n){n.validator!=undefined&&(n.validator.setDefaults({ignore:":hidden"}),n.validator.unobtrusive.adapters.addBool("requiredcb","required"),n.validator.addMethod("umbracoforms_selectonefromlist",function(t,i){var r=!1;return n("input",n(i).closest(".checkboxlist, .radiobuttonlist, .singlechoice")).each(function(){n(this).is(":checked")&&(r=!0)}),r}),n.validator.unobtrusive.adapters.addBool("requiredlist","umbracoforms_selectonefromlist"),n.validator.addMethod("umbracoforms_regex",function(t,i){var u=n(i).attr("data-regex"),r=n(i).val();return r.length==0?!0:r.match(u)}),n.validator.unobtrusive.adapters.addBool("regex","umbracoforms_regex"))}(jQuery);umbracoForms=umbracoForms||{},function(n){var t=n.conditions||{},i=t.operators||{Is:function(n,t){return(n||"")===t},IsNot:function(n,t){return(n||"")!==t},GreaterThen:function(n,t){return parseInt(n)>parseInt(t)},LessThen:function(n,t){return parseInt(n)<parseInt(t)},StartsWith:function(n,t){return n&&n.indexOf(t)===0},EndsWith:function(n,t){return n&&n.indexOf(t)===n.length-t.length},Contains:function(n,t){return n&&n.indexOf(t)>-1}};n.conditions=t;n.conditions.operators=i;t.handle=function(n){function h(n){var t=v[n.field],r=i[n.operator];return t!==null&&r(t,n.value)}function c(n){var t=!0;return f[n.field]&&(t=e(n.field,f[n.field])),t?h(n):!1}function l(n,t){for(var l=t.logicType==="Any",s=t.logicType==="All",f={},h=!1,o=!0,i,r=0;r<t.rules.length;r++){if(i=t.rules[r],n===i.field||n===i.fieldsetId)throw new Error("Field or fieldset "+n+" has a condition on itself.");f[i.fieldsetId]===undefined&&(u[i.fieldsetId]?(f[i.fieldsetId]=e(i.fieldsetId,u[i.fieldsetId]),f[i.fieldsetId]||(h=!0)):f[i.fieldsetId]=!0)}if(s&&h)return!1;for(r=0;r<t.rules.length;r++){if(i=t.rules[r],o=f[i.fieldsetId]?c(t.rules[r]):!1,l&&o)break;if(s&&!o)break}return o}function a(n,t){var r=t.actionType==="Show",i=s[n],u=i===undefined?s[n]=l(n,t):i;return!(u^r)}function e(n,t){return t?a(n,t):!0}function o(n,t,i){var r=e(t,i);r?n.show():n.hide()}var t,r,u=n.fsConditions||{},f=n.fieldConditions||{},v=n.values||{},s={};for(t in u)o($("#"+t),t,u[t],"Fieldset");for(r in f)o($("#"+r).closest(".contourField"),r,f[r],"Field")}}(umbracoForms);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});!function(n){if("object"==(typeof exports=="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.React=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";var i=n(35),r=n(45),o=n(61),e=n(23),u=n(104),f={};e(f,o);e(f,{findDOMNode:u("findDOMNode","ReactDOM","react-dom",i,i.findDOMNode),render:u("render","ReactDOM","react-dom",i,i.render),unmountComponentAtNode:u("unmountComponentAtNode","ReactDOM","react-dom",i,i.unmountComponentAtNode),renderToString:u("renderToString","ReactDOMServer","react-dom/server",r,r.renderToString),renderToStaticMarkup:u("renderToStaticMarkup","ReactDOMServer","react-dom/server",r,r.renderToStaticMarkup)});f.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i;f.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r;t.exports=f},{104:104,23:23,35:35,45:45,61:61}],2:[function(n,t){"use strict";var r=n(63),u=n(106),i=n(136),f={componentDidMount:function(){this.props.autoFocus&&i(u(this))}},e={Mixin:f,focusDOMComponent:function(){i(r.getNode(this._rootNodeID))}};t.exports=e},{106:106,136:136,63:63}],3:[function(n,t){"use strict";function k(){var n=window.opera;return"object"==(typeof n=="undefined"?"undefined":_typeof(n))&&"function"==typeof n.version&&parseInt(n.version(),10)<=12}function d(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function g(n){switch(n){case i.topCompositionStart:return r.compositionStart;case i.topCompositionEnd:return r.compositionEnd;case i.topCompositionUpdate:return r.compositionUpdate}}function nt(n,t){return n===i.topKeyDown&&t.keyCode===a}function s(n,t){switch(n){case i.topKeyUp:return-1!==st.indexOf(t.keyCode);case i.topKeyDown:return t.keyCode!==a;case i.topKeyPress:case i.topMouseDown:case i.topBlur:return!0;default:return!1}}function h(n){var t=n.detail;return"object"==(typeof t=="undefined"?"undefined":_typeof(t))&&"data"in t?t.data:null}function tt(n,t,i,f,e){var o,p,a,w;return(v?o=g(n):u?s(n,f)&&(o=r.compositionEnd):nt(n,f)&&(o=r.compositionStart),!o)?null:(y&&(u||o!==r.compositionStart?o===r.compositionEnd&&u&&(p=u.getData()):u=l.getPooled(t)),a=et.getPooled(o,i,f,e),p?a.data=p:(w=h(f),null!==w&&(a.data=w)),c.accumulateTwoPhaseDispatches(a),a)}function it(n,t){var u,r;switch(n){case i.topCompositionEnd:return h(t);case i.topKeyPress:return u=t.which,u!==p?null:(b=!0,w);case i.topTextInput:return r=t.data,r===w&&b?null:r;default:return null}}function rt(n,t){if(u){if(n===i.topCompositionEnd||s(n,t)){var r=u.getData();return l.release(u),u=null,r}return null}switch(n){case i.topPaste:return null;case i.topKeyPress:return t.which&&!d(t)?String.fromCharCode(t.which):null;case i.topCompositionEnd:return y?null:t.data;default:return null}}function ut(n,t,i,u,f){var o,e;return(o=ht?it(n,u):rt(n,u),!o)?null:(e=ot.getPooled(r.beforeInput,i,u,f),e.data=o,c.accumulateTwoPhaseDispatches(e),e)}var ft=n(15),c=n(19),o=n(128),l=n(20),et=n(88),ot=n(92),f=n(146),st=[9,13,27,32],a=229,v=o.canUseDOM&&"CompositionEvent"in window,e=null;o.canUseDOM&&"documentMode"in document&&(e=document.documentMode);var ht=o.canUseDOM&&"TextEvent"in window&&!e&&!k(),y=o.canUseDOM&&(!v||e&&e>8&&11>=e),p=32,w=String.fromCharCode(p),i=ft.topLevelTypes,r={beforeInput:{phasedRegistrationNames:{bubbled:f({onBeforeInput:null}),captured:f({onBeforeInputCapture:null})},dependencies:[i.topCompositionEnd,i.topKeyPress,i.topTextInput,i.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:f({onCompositionEnd:null}),captured:f({onCompositionEndCapture:null})},dependencies:[i.topBlur,i.topCompositionEnd,i.topKeyDown,i.topKeyPress,i.topKeyUp,i.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:f({onCompositionStart:null}),captured:f({onCompositionStartCapture:null})},dependencies:[i.topBlur,i.topCompositionStart,i.topKeyDown,i.topKeyPress,i.topKeyUp,i.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:f({onCompositionUpdate:null}),captured:f({onCompositionUpdateCapture:null})},dependencies:[i.topBlur,i.topCompositionUpdate,i.topKeyDown,i.topKeyPress,i.topKeyUp,i.topMouseDown]}},b=!1,u=null,ct={eventTypes:r,extractEvents:function(n,t,i,r,u){return[tt(n,t,i,r,u),ut(n,t,i,r,u)]}};t.exports=ct},{128:128,146:146,15:15,19:19,20:20,88:88,92:92}],4:[function(n,t){"use strict";function f(n,t){return n+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},e=["Webkit","ms","Moz","O"],r,u;Object.keys(i).forEach(function(n){e.forEach(function(t){i[f(t,n)]=i[n]})});r={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}};u={isUnitlessNumber:i,shorthandPropertyExpansions:r};t.exports=u},{}],5:[function(n,t){"use strict";var o=n(4),s=n(128),h=n(69),r=(n(130),n(103)),c=n(141),l=n(148),a=(n(151),l(function(n){return c(n)})),u=!1,f="cssFloat",e,i;if(s.canUseDOM){e=document.createElement("div").style;try{e.font=""}catch(v){u=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}i={createMarkupForStyles:function(n){var i="",t,u;for(t in n)n.hasOwnProperty(t)&&(u=n[t],null!=u&&(i+=a(t)+":",i+=r(t,u)+";"));return i||null},setValueForStyles:function(n,t){var e=n.style,i,s,h,c;for(i in t)if(t.hasOwnProperty(i))if(s=r(i,t[i]),"float"===i&&(i=f),s)e[i]=s;else if(h=u&&o.shorthandPropertyExpansions[i],h)for(c in h)e[c]="";else e[i]=""}};h.measureMethods(i,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"});t.exports=i},{103:103,128:128,130:130,141:141,148:148,151:151,4:4,69:69}],6:[function(n,t){"use strict";function i(){this._callbacks=null;this._contexts=null}var r=n(24),u=n(23),f=n(142);u(i.prototype,{enqueue:function(n,t){this._callbacks=this._callbacks||[];this._contexts=this._contexts||[];this._callbacks.push(n);this._contexts.push(t)},notifyAll:function(){var n=this._callbacks,i=this._contexts,t;if(n){for(n.length!==i.length?f(!1):void 0,this._callbacks=null,this._contexts=null,t=0;t<n.length;t++)n[t].call(i[t]);n.length=0;i.length=0}},reset:function(){this._callbacks=null;this._contexts=null},destructor:function(){this.reset()}});r.addPoolingTo(i);t.exports=i},{142:142,23:23,24:24}],7:[function(n,t){"use strict";function tt(n){var t=n.nodeName&&n.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===n.type}function o(n){var t=w.getPooled(s.change,f,n,yt(n));y.accumulateTwoPhaseDispatches(t);vt.batchedUpdates(it,t)}function it(n){v.enqueueEvents(n);v.processEventQueue(!1)}function rt(n,t){r=n;f=t;r.attachEvent("onchange",o)}function c(){r&&(r.detachEvent("onchange",o),r=null,f=null)}function ut(n,t,r){if(n===i.topChange)return r}function ft(n,t,r){n===i.topFocus?(c(),rt(t,r)):n===i.topBlur&&c()}function et(n,t){r=n;f=t;u=n.value;e=Object.getOwnPropertyDescriptor(n.constructor.prototype,"value");Object.defineProperty(r,"value",g);r.attachEvent("onpropertychange",a)}function l(){r&&(delete r.value,r.detachEvent("onpropertychange",a),r=null,f=null,u=null,e=null)}function a(n){if("value"===n.propertyName){var t=n.srcElement.value;t!==u&&(u=t,o(n))}}function ot(n,t,r){if(n===i.topInput)return r}function st(n,t,r){n===i.topFocus?(l(),et(t,r)):n===i.topBlur&&l()}function ht(n){if((n===i.topSelectionChange||n===i.topKeyUp||n===i.topKeyDown)&&r&&r.value!==u)return u=r.value,f}function ct(n){return n.nodeName&&"input"===n.nodeName.toLowerCase()&&("checkbox"===n.type||"radio"===n.type)}function lt(n,t,r){if(n===i.topClick)return r}var at=n(15),v=n(16),y=n(19),p=n(128),vt=n(81),w=n(90),yt=n(112),b=n(117),pt=n(118),k=n(146),i=at.topLevelTypes,s={change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[i.topBlur,i.topChange,i.topClick,i.topFocus,i.topInput,i.topKeyDown,i.topKeyUp,i.topSelectionChange]}},r=null,f=null,u=null,e=null,d=!1,h,g,nt;p.canUseDOM&&(d=b("change")&&(!("documentMode"in document)||document.documentMode>8));h=!1;p.canUseDOM&&(h=b("input")&&(!("documentMode"in document)||document.documentMode>9));g={get:function(){return e.get.call(this)},set:function(n){u=""+n;e.set.call(this,n)}};nt={eventTypes:s,extractEvents:function(n,t,i,r,u){var f,e,c,o;if((tt(t)?d?f=ut:e=ft:pt(t)?h?f=ot:(f=ht,e=st):ct(t)&&(f=lt),f)&&(c=f(n,t,i),c))return o=w.getPooled(s.change,c,r,u),o.type="change",y.accumulateTwoPhaseDispatches(o),o;e&&e(n,t,i)}};t.exports=nt},{112:112,117:117,118:118,128:128,146:146,15:15,16:16,19:19,81:81,90:90}],8:[function(n,t){"use strict";var i=0,r={createReactRootIndex:function(){return i++}};t.exports=r},{}],9:[function(n,t){"use strict";function r(n,t,i){var r=i>=n.childNodes.length?null:n.childNodes.item(i);n.insertBefore(t,r)}var u=n(12),i=n(65),o=n(69),s=n(122),f=n(123),h=n(142),e={dangerouslyReplaceNodeWithMarkup:u.dangerouslyReplaceNodeWithMarkup,updateTextContent:f,processUpdates:function(n,t){for(var w,l,a,e,c=null,o=null,v=0;v<n.length;v++)if(e=n[v],e.type===i.MOVE_EXISTING||e.type===i.REMOVE_NODE){var b=e.fromIndex,y=e.parentNode.childNodes[b],p=e.parentID;y?void 0:h(!1);c=c||{};c[p]=c[p]||[];c[p][b]=y;o=o||[];o.push(y)}if(w=t.length&&"string"==typeof t[0]?u.dangerouslyRenderMarkup(t):t,o)for(l=0;l<o.length;l++)o[l].parentNode.removeChild(o[l]);for(a=0;a<n.length;a++)switch(e=n[a],e.type){case i.INSERT_MARKUP:r(e.parentNode,w[e.markupIndex],e.toIndex);break;case i.MOVE_EXISTING:r(e.parentNode,c[e.parentID][e.fromIndex],e.toIndex);break;case i.SET_MARKUP:s(e.parentNode,e.content);break;case i.TEXT_CONTENT:f(e.parentNode,e.content)}}};o.measureMethods(e,"DOMChildrenOperations",{updateTextContent:"updateTextContent"});t.exports=e},{12:12,122:122,123:123,142:142,65:65,69:69}],10:[function(n,t){"use strict";function i(n,t){return(n&t)===t}var u=n(142),f={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(n){var o=f,h=n.Properties||{},c=n.DOMAttributeNamespaces||{},l=n.DOMAttributeNames||{},a=n.DOMPropertyNames||{},v=n.DOMMutationMethods||{},t,y;n.isCustomAttribute&&r._isCustomAttributeFunctions.push(n.isCustomAttribute);for(t in h){r.properties.hasOwnProperty(t)?u(!1):void 0;var p=t.toLowerCase(),s=h[t],e={attributeName:p,attributeNamespace:null,propertyName:t,mutationMethod:null,mustUseAttribute:i(s,o.MUST_USE_ATTRIBUTE),mustUseProperty:i(s,o.MUST_USE_PROPERTY),hasSideEffects:i(s,o.HAS_SIDE_EFFECTS),hasBooleanValue:i(s,o.HAS_BOOLEAN_VALUE),hasNumericValue:i(s,o.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(s,o.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(s,o.HAS_OVERLOADED_BOOLEAN_VALUE)};(e.mustUseAttribute&&e.mustUseProperty?u(!1):void 0,!e.mustUseProperty&&e.hasSideEffects?u(!1):void 0,e.hasBooleanValue+e.hasNumericValue+e.hasOverloadedBooleanValue<=1?void 0:u(!1),l.hasOwnProperty(t))&&(y=l[t],e.attributeName=y);c.hasOwnProperty(t)&&(e.attributeNamespace=c[t]);a.hasOwnProperty(t)&&(e.propertyName=a[t]);v.hasOwnProperty(t)&&(e.mutationMethod=v[t]);r.properties[t]=e}}},e={},r={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(n){for(var i,t=0;t<r._isCustomAttributeFunctions.length;t++)if(i=r._isCustomAttributeFunctions[t],i(n))return!0;return!1},getDefaultValueForProperty:function(n,t){var r,i=e[n];return i||(e[n]=i={}),t in i||(r=document.createElement(n),i[t]=r[t]),i[t]},injection:f};t.exports=r},{142:142}],11:[function(n,t){"use strict";function f(n){return s.hasOwnProperty(n)?!0:o.hasOwnProperty(n)?!1:c.test(n)?(s[n]=!0,!0):(o[n]=!0,!1)}function e(n,t){return null==t||n.hasBooleanValue&&!t||n.hasNumericValue&&isNaN(t)||n.hasPositiveNumericValue&&1>t||n.hasOverloadedBooleanValue&&t===!1}var i=n(10),h=n(69),r=n(120),c=(n(151),/^[a-zA-Z_][\w\.\-]*$/),o={},s={},u={createMarkupForID:function(n){return i.ID_ATTRIBUTE_NAME+"="+r(n)},setAttributeForID:function(n,t){n.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(n,t){var u=i.properties.hasOwnProperty(n)?i.properties[n]:null,f;return u?e(u,t)?"":(f=u.attributeName,u.hasBooleanValue||u.hasOverloadedBooleanValue&&t===!0?f+'=""':f+"="+r(t)):i.isCustomAttribute(n)?null==t?"":n+"="+r(t):null},createMarkupForCustomAttribute:function(n,t){return f(n)&&null!=t?n+"="+r(t):""},setValueForProperty:function(n,t,r){var f=i.properties.hasOwnProperty(t)?i.properties[t]:null,s,o,h,c;f?(s=f.mutationMethod,s?s(n,r):e(f,r)?this.deleteValueForProperty(n,t):f.mustUseAttribute?(o=f.attributeName,h=f.attributeNamespace,h?n.setAttributeNS(h,o,""+r):f.hasBooleanValue||f.hasOverloadedBooleanValue&&r===!0?n.setAttribute(o,""):n.setAttribute(o,""+r)):(c=f.propertyName,f.hasSideEffects&&""+n[c]==""+r||(n[c]=r))):i.isCustomAttribute(t)&&u.setValueForAttribute(n,t,r)},setValueForAttribute:function(n,t,i){f(t)&&(null==i?n.removeAttribute(t):n.setAttribute(t,""+i))},deleteValueForProperty:function(n,t){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null,f,u,e;r?(f=r.mutationMethod,f?f(n,void 0):r.mustUseAttribute?n.removeAttribute(r.attributeName):(u=r.propertyName,e=i.getDefaultValueForProperty(n.nodeName,u),r.hasSideEffects&&""+n[u]===e||(n[u]=e))):i.isCustomAttribute(t)&&n.removeAttribute(t)}};h.measureMethods(u,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"});t.exports=u},{10:10,120:120,151:151,69:69}],12:[function(n,t){"use strict";function o(n){return n.substring(1,n.indexOf(" "))}var u=n(128),f=n(133),e=n(134),s=n(138),i=n(142),h=/^(<[^ \/>]+)/,r="data-danger-index",c={dangerouslyRenderMarkup:function(n){var t,l,a,v,b,c,y,d,k,w,p;for(u.canUseDOM?void 0:i(!1),l={},a=0;a<n.length;a++)n[a]?void 0:i(!1),t=o(n[a]),t=s(t)?t:"*",l[t]=l[t]||[],l[t][a]=n[a];v=[];b=0;for(t in l)if(l.hasOwnProperty(t)){y=l[t];for(c in y)y.hasOwnProperty(c)&&(d=y[c],y[c]=d.replace(h,"$1 "+r+'="'+c+'" '));for(k=f(y.join(""),e),w=0;w<k.length;++w)p=k[w],p.hasAttribute&&p.hasAttribute(r)&&(c=+p.getAttribute(r),p.removeAttribute(r),v.hasOwnProperty(c)?i(!1):void 0,v[c]=p,b+=1)}return b!==v.length?i(!1):void 0,v.length!==n.length?i(!1):void 0,v},dangerouslyReplaceNodeWithMarkup:function(n,t){u.canUseDOM?void 0:i(!1);t?void 0:i(!1);"html"===n.tagName.toLowerCase()?i(!1):void 0;var r;r="string"==typeof t?f(t,e)[0]:t;n.parentNode.replaceChild(r,n)}};t.exports=c},{128:128,133:133,134:134,138:138,142:142}],13:[function(n,t){"use strict";var i=n(146),r=[i({ResponderEventPlugin:null}),i({SimpleEventPlugin:null}),i({TapEventPlugin:null}),i({EnterLeaveEventPlugin:null}),i({ChangeEventPlugin:null}),i({SelectEventPlugin:null}),i({BeforeInputEventPlugin:null})];t.exports=r},{146:146}],14:[function(n,t){"use strict";var s=n(15),h=n(19),f=n(94),e=n(63),o=n(146),i=s.topLevelTypes,c=e.getFirstReactDOM,r={mouseEnter:{registrationName:o({onMouseEnter:null}),dependencies:[i.topMouseOut,i.topMouseOver]},mouseLeave:{registrationName:o({onMouseLeave:null}),dependencies:[i.topMouseOut,i.topMouseOver]}},u=[null,null],l={eventTypes:r,extractEvents:function(n,t,o,s,l){var p,k,w,a,d,b,v,y;return n===i.topMouseOver&&(s.relatedTarget||s.fromElement)?null:n!==i.topMouseOut&&n!==i.topMouseOver?null:(t.window===t?p=t:(k=t.ownerDocument,p=k?k.defaultView||k.parentWindow:window),d="",b="",n===i.topMouseOut?(w=t,d=o,a=c(s.relatedTarget||s.toElement),a?b=e.getID(a):a=p,a=a||p):(w=p,a=t,b=o),w===a)?null:(v=f.getPooled(r.mouseLeave,d,s,l),v.type="mouseleave",v.target=w,v.relatedTarget=a,y=f.getPooled(r.mouseEnter,b,s,l),y.type="mouseenter",y.target=a,y.relatedTarget=w,h.accumulateEnterLeaveDispatches(v,y,d,b),u[0]=v,u[1]=y,u)}};t.exports=l},{146:146,15:15,19:19,63:63,94:94}],15:[function(n,t){"use strict";var i=n(145),r=i({bubbled:null,captured:null}),u=i({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),f={topLevelTypes:u,PropagationPhases:r};t.exports=f},{145:145}],16:[function(n,t){"use strict";var r=n(17),f=n(18),l=n(54),e=n(100),o=n(108),s=n(142),i=(n(151),{}),u=null,h=function(n,t){n&&(f.executeDispatchesInOrder(n,t),n.isPersistent()||n.constructor.release(n))},a=function(n){return h(n,!0)},v=function(n){return h(n,!1)},c=null,y={injection:{injectMount:f.injection.injectMount,injectInstanceHandle:function(n){c=n},getInstanceHandle:function(){return c},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(n,t,u){var e,f;"function"!=typeof u?s(!1):void 0;e=i[t]||(i[t]={});e[n]=u;f=r.registrationNameModules[t];f&&f.didPutListener&&f.didPutListener(n,t,u)},getListener:function(n,t){var r=i[t];return r&&r[n]},deleteListener:function(n,t){var u=r.registrationNameModules[t],f;u&&u.willDeleteListener&&u.willDeleteListener(n,t);f=i[t];f&&delete f[n]},deleteAllListeners:function(n){var t,u;for(t in i)i[t][n]&&(u=r.registrationNameModules[t],u&&u.willDeleteListener&&u.willDeleteListener(n,t),delete i[t][n])},extractEvents:function(n,t,i,u,f){for(var o,s,h,l=r.plugins,c=0;c<l.length;c++)s=l[c],s&&(h=s.extractEvents(n,t,i,u,f),h&&(o=e(o,h)));return o},enqueueEvents:function(n){n&&(u=e(u,n))},processEventQueue:function(n){var t=u;u=null;n?o(t,a):o(t,v);u?s(!1):void 0;l.rethrowCaughtError()},__purge:function(){i={}},__getListenerBank:function(){return i}};t.exports=y},{100:100,108:108,142:142,151:151,17:17,18:18,54:54}],17:[function(n,t){"use strict";function e(){var e,n,t,o,h;if(f)for(e in r)if(n=r[e],t=f.indexOf(e),t>-1?void 0:u(!1),!i.plugins[t]){n.extractEvents?void 0:u(!1);i.plugins[t]=n;o=n.eventTypes;for(h in o)s(o[h],n,h)?void 0:u(!1)}}function s(n,t,r){var f,e,s;if(i.eventNameDispatchConfigs.hasOwnProperty(r)?u(!1):void 0,i.eventNameDispatchConfigs[r]=n,f=n.phasedRegistrationNames,f){for(e in f)f.hasOwnProperty(e)&&(s=f[e],o(s,t,r));return!0}return n.registrationName?(o(n.registrationName,t,r),!0):!1}function o(n,t,r){i.registrationNameModules[n]?u(!1):void 0;i.registrationNameModules[n]=t;i.registrationNameDependencies[n]=t.eventTypes[r].dependencies}var u=n(142),f=null,r={},i={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(n){f?u(!1):void 0;f=Array.prototype.slice.call(n);e()},injectEventPluginsByName:function(n){var f=!1,t,i;for(t in n)n.hasOwnProperty(t)&&(i=n[t],r.hasOwnProperty(t)&&r[t]===i||(r[t]?u(!1):void 0,r[t]=i,f=!0));f&&e()},getPluginModuleForEvent:function(n){var t=n.dispatchConfig,r,u;if(t.registrationName)return i.registrationNameModules[t.registrationName]||null;for(r in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(r)&&(u=i.registrationNameModules[t.phasedRegistrationNames[r]],u))return u;return null},_resetEventPlugins:function(){var u,n,e,t,o;f=null;for(u in r)r.hasOwnProperty(u)&&delete r[u];i.plugins.length=0;n=i.eventNameDispatchConfigs;for(e in n)n.hasOwnProperty(e)&&delete n[e];t=i.registrationNameModules;for(o in t)t.hasOwnProperty(o)&&delete t[o]}};t.exports=i},{142:142}],18:[function(n,t){"use strict";function e(n){return n===i.topMouseUp||n===i.topTouchEnd||n===i.topTouchCancel}function o(n){return n===i.topMouseMove||n===i.topTouchMove}function s(n){return n===i.topMouseDown||n===i.topTouchStart}function u(n,t,i,u){var e=n.type||"unknown-event";n.currentTarget=r.Mount.getNode(u);t?f.invokeGuardedCallbackWithCatch(e,i,n,u):f.invokeGuardedCallback(e,i,n,u);n.currentTarget=null}function h(n,t){var i=n._dispatchListeners,f=n._dispatchIDs,r;if(Array.isArray(i))for(r=0;r<i.length&&!n.isPropagationStopped();r++)u(n,t,i[r],f[r]);else i&&u(n,t,i,f);n._dispatchListeners=null;n._dispatchIDs=null}function c(n){var i=n._dispatchListeners,r=n._dispatchIDs,t;if(Array.isArray(i)){for(t=0;t<i.length&&!n.isPropagationStopped();t++)if(i[t](n,r[t]))return r[t]}else if(i&&i(n,r))return r;return null}function l(n){var t=c(n);return n._dispatchIDs=null,n._dispatchListeners=null,t}function a(n){var t=n._dispatchListeners,r=n._dispatchIDs,i;return Array.isArray(t)?p(!1):void 0,i=t?t(n,r):null,n._dispatchListeners=null,n._dispatchIDs=null,i}function v(n){return!!n._dispatchListeners}var y=n(15),f=n(54),p=n(142),r=(n(151),{Mount:null,injectMount:function(n){r.Mount=n}}),i=y.topLevelTypes,w={isEndish:e,isMoveish:o,isStartish:s,executeDirectDispatch:a,executeDispatchesInOrder:h,executeDispatchesInOrderStopAtTrue:l,hasDispatches:v,getNode:function(n){return r.Mount.getNode(n)},getID:function(n){return r.Mount.getID(n)},injection:r};t.exports=w},{142:142,15:15,151:151,54:54}],19:[function(n,t){"use strict";function h(n,t,i){var r=t.dispatchConfig.phasedRegistrationNames[i];return s(n,r)}function f(n,t,i){var f=t?o.bubbled:o.captured,u=h(n,i,f);u&&(i._dispatchListeners=r(i._dispatchListeners,u),i._dispatchIDs=r(i._dispatchIDs,n))}function c(n){n&&n.dispatchConfig.phasedRegistrationNames&&i.injection.getInstanceHandle().traverseTwoPhase(n.dispatchMarker,f,n)}function l(n){n&&n.dispatchConfig.phasedRegistrationNames&&i.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(n.dispatchMarker,f,n)}function e(n,t,i){if(i&&i.dispatchConfig.registrationName){var f=i.dispatchConfig.registrationName,u=s(n,f);u&&(i._dispatchListeners=r(i._dispatchListeners,u),i._dispatchIDs=r(i._dispatchIDs,n))}}function a(n){n&&n.dispatchConfig.registrationName&&e(n.dispatchMarker,null,n)}function v(n){u(n,c)}function y(n){u(n,l)}function p(n,t,r,u){i.injection.getInstanceHandle().traverseEnterLeave(r,u,e,n,t)}function w(n){u(n,a)}var b=n(15),i=n(16),r=(n(151),n(100)),u=n(108),o=b.PropagationPhases,s=i.getListener,k={accumulateTwoPhaseDispatches:v,accumulateTwoPhaseDispatchesSkipTarget:y,accumulateDirectDispatches:w,accumulateEnterLeaveDispatches:p};t.exports=k},{100:100,108:108,15:15,151:151,16:16}],20:[function(n,t){"use strict";function i(n){this._root=n;this._startText=this.getText();this._fallbackText=null}var r=n(24),u=n(23),f=n(115);u(i.prototype,{destructor:function(){this._root=null;this._startText=null;this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[f()]},getData:function(){var f,e;if(this._fallbackText)return this._fallbackText;for(var n,r=this._startText,u=r.length,i=this.getText(),o=i.length,t=0;u>t&&r[t]===i[t];t++);for(f=u-t,n=1;f>=n&&r[u-n]===i[o-n];n++);return e=n>1?1-n:void 0,this._fallbackText=i.slice(t,e),this._fallbackText}});r.addPoolingTo(i);t.exports=i},{115:115,23:23,24:24}],21:[function(n,t){"use strict";var s,f=n(10),c=n(128),i=f.injection.MUST_USE_ATTRIBUTE,u=f.injection.MUST_USE_PROPERTY,r=f.injection.HAS_BOOLEAN_VALUE,l=f.injection.HAS_SIDE_EFFECTS,a=f.injection.HAS_NUMERIC_VALUE,e=f.injection.HAS_POSITIVE_NUMERIC_VALUE,v=f.injection.HAS_OVERLOADED_BOOLEAN_VALUE,o,h;c.canUseDOM&&(o=document.implementation,s=o&&o.hasFeature&&o.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|r,allowTransparency:i,alt:null,async:r,autoComplete:null,autoPlay:r,capture:i|r,cellPadding:null,cellSpacing:null,charSet:i,challenge:i,checked:u|r,classID:i,className:s?i:u,cols:i|e,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:u|r,coords:null,crossOrigin:null,data:null,dateTime:i,"default":r,defer:r,dir:null,disabled:i|r,download:v,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:r,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|r,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:u,inputMode:i,integrity:null,is:i,keyParams:i,keyType:i,kind:null,label:null,lang:null,list:i,loop:u|r,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,minLength:i,multiple:u|r,muted:u|r,name:null,nonce:i,noValidate:r,open:r,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:u|r,rel:null,required:r,reversed:r,role:i,rows:i|e,rowSpan:null,sandbox:null,scope:null,scoped:r,scrolling:null,seamless:i|r,selected:u|r,shape:null,size:i|e,sizes:i,span:e,spellCheck:null,src:null,srcDoc:u,srcLang:null,srcSet:i,start:a,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:u|l,width:i,wmode:i,wrap:null,about:i,datatype:i,inlist:i,prefix:i,property:i,resource:i,"typeof":i,vocab:i,autoCapitalize:i,autoCorrect:i,autoSave:null,color:null,itemProp:i,itemScope:i|r,itemType:i,itemID:i,itemRef:i,results:null,security:i,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{10:10,128:128}],22:[function(n,t){"use strict";function u(n){null!=n.checkedLink&&null!=n.valueLink?i(!1):void 0}function f(n){u(n);null!=n.value||null!=n.onChange?i(!1):void 0}function e(n){u(n);null!=n.checked||null!=n.onChange?i(!1):void 0}function s(n){if(n){var t=n.getName();if(t)return" Check the render method of `"+t+"`."}return""}var h=n(72),c=n(71),i=n(142),l=(n(151),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),r={value:function(n,t){return!n[t]||l[n.type]||n.onChange||n.readOnly||n.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(n,t){return!n[t]||n.onChange||n.readOnly||n.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:h.func},o={},a={checkPropTypes:function(n,t,i){var u,f;for(u in r)r.hasOwnProperty(u)&&(f=r[u](t,u,n,c.prop)),f instanceof Error&&!(f.message in o)&&(o[f.message]=!0,s(i))},getValue:function(n){return n.valueLink?(f(n),n.valueLink.value):n.value},getChecked:function(n){return n.checkedLink?(e(n),n.checkedLink.value):n.checked},executeOnChange:function(n,t){return n.valueLink?(f(n),n.valueLink.requestChange(t.target.value)):n.checkedLink?(e(n),n.checkedLink.requestChange(t.target.checked)):n.onChange?n.onChange.call(void 0,t):void 0}};t.exports=a},{142:142,151:151,71:71,72:72}],23:[function(n,t){"use strict";function i(n){var r,t,i;if(null==n)throw new TypeError("Object.assign target cannot be null or undefined");for(var f=Object(n),e=Object.prototype.hasOwnProperty,u=1;u<arguments.length;u++)if(r=arguments[u],null!=r){t=Object(r);for(i in t)e.call(t,i)&&(f[i]=t[i])}return f}t.exports=i},{}],24:[function(n,t){"use strict";var r=n(142),i=function(n){var t=this,i;return t.instancePool.length?(i=t.instancePool.pop(),t.call(i,n),i):new t(n)},u=function(n,t){var i=this,r;return i.instancePool.length?(r=i.instancePool.pop(),i.call(r,n,t),r):new i(n,t)},f=function(n,t,i){var r=this,u;return r.instancePool.length?(u=r.instancePool.pop(),r.call(u,n,t,i),u):new r(n,t,i)},e=function(n,t,i,r){var u=this,f;return u.instancePool.length?(f=u.instancePool.pop(),u.call(f,n,t,i,r),f):new u(n,t,i,r)},o=function(n,t,i,r,u){var f=this,e;return f.instancePool.length?(e=f.instancePool.pop(),f.call(e,n,t,i,r,u),e):new f(n,t,i,r,u)},s=function(n){var t=this;n instanceof t?void 0:r(!1);n.destructor();t.instancePool.length<t.poolSize&&t.instancePool.push(n)},h=10,c=i,l=function(n,t){var i=n;return i.instancePool=[],i.getPooled=t||c,i.poolSize||(i.poolSize=h),i.release=s,i},a={addPoolingTo:l,oneArgumentPooler:i,twoArgumentPooler:u,threeArgumentPooler:f,fourArgumentPooler:e,fiveArgumentPooler:o};t.exports=a},{142:142}],25:[function(n,t){"use strict";var i=(n(60),n(106)),r=(n(151),"_getDOMNodeDidWarn"),u={getDOMNode:function(){return this.constructor[r]=!0,i(this)}};t.exports=u},{106:106,151:151,60:60}],26:[function(n,t){"use strict";function h(n){return Object.prototype.hasOwnProperty.call(n,f)||(n[f]=w++,e[n[f]]={}),e[n[f]]}var c=n(15),r=n(16),l=n(17),a=n(55),v=n(69),y=n(99),p=n(23),u=n(117),e={},o=!1,w=0,s={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},f="_reactListenersID"+String(Math.random()).slice(2),i=p({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(n){n.setHandleTopLevel(i.handleTopLevel);i.ReactEventListener=n}},setEnabled:function(n){i.ReactEventListener&&i.ReactEventListener.setEnabled(n)},isEnabled:function(){return!(!i.ReactEventListener||!i.ReactEventListener.isEnabled())},listenTo:function(n,t){for(var f,e=t,o=h(e),v=l.registrationNameDependencies[n],r=c.topLevelTypes,a=0;a<v.length;a++)f=v[a],o.hasOwnProperty(f)&&o[f]||(f===r.topWheel?u("wheel")?i.ReactEventListener.trapBubbledEvent(r.topWheel,"wheel",e):u("mousewheel")?i.ReactEventListener.trapBubbledEvent(r.topWheel,"mousewheel",e):i.ReactEventListener.trapBubbledEvent(r.topWheel,"DOMMouseScroll",e):f===r.topScroll?u("scroll",!0)?i.ReactEventListener.trapCapturedEvent(r.topScroll,"scroll",e):i.ReactEventListener.trapBubbledEvent(r.topScroll,"scroll",i.ReactEventListener.WINDOW_HANDLE):f===r.topFocus||f===r.topBlur?(u("focus",!0)?(i.ReactEventListener.trapCapturedEvent(r.topFocus,"focus",e),i.ReactEventListener.trapCapturedEvent(r.topBlur,"blur",e)):u("focusin")&&(i.ReactEventListener.trapBubbledEvent(r.topFocus,"focusin",e),i.ReactEventListener.trapBubbledEvent(r.topBlur,"focusout",e)),o[r.topBlur]=!0,o[r.topFocus]=!0):s.hasOwnProperty(f)&&i.ReactEventListener.trapBubbledEvent(f,s[f],e),o[f]=!0)},trapBubbledEvent:function(n,t,r){return i.ReactEventListener.trapBubbledEvent(n,t,r)},trapCapturedEvent:function(n,t,r){return i.ReactEventListener.trapCapturedEvent(n,t,r)},ensureScrollValueMonitoring:function(){if(!o){var n=y.refreshScrollValues;i.ReactEventListener.monitorScrollValue(n);o=!0}},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:r.putListener,getListener:r.getListener,deleteListener:r.deleteListener,deleteAllListeners:r.deleteAllListeners});v.measureMethods(i,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"});t.exports=i},{117:117,15:15,16:16,17:17,23:23,55:55,69:69,99:99}],27:[function(n,t){"use strict";function u(n,t,i){var u=void 0===n[i];null!=t&&u&&(n[i]=r(t,null))}var i=n(74),r=n(116),f=n(124),e=n(125),o=(n(151),{instantiateChildren:function(n){if(null==n)return null;var t={};return e(n,u,t),t},updateChildren:function(n,t,u,e){var o,c;if(!t&&!n)return null;for(o in t)if(t.hasOwnProperty(o)){var s=n&&n[o],l=s&&s._currentElement,h=t[o];null!=s&&f(l,h)?(i.receiveComponent(s,h,u,e),t[o]=s):(s&&i.unmountComponent(s,o),c=r(h,null),t[o]=c)}for(o in n)!n.hasOwnProperty(o)||t&&t.hasOwnProperty(o)||i.unmountComponent(n[o]);return t},unmountChildren:function(n){var t,r;for(t in n)n.hasOwnProperty(t)&&(r=n[t],i.unmountComponent(r))}});t.exports=o},{116:116,124:124,125:125,151:151,74:74}],28:[function(n,t){"use strict";function o(n){return(""+n).replace(g,"//")}function i(n,t){this.func=n;this.context=t;this.count=0}function l(n,t){var i=n.func,r=n.context;i.call(r,t,n.count++)}function a(n,t,r){if(null==n)return n;var u=i.getPooled(t,r);e(n,l,u);i.release(u)}function r(n,t,i,r){this.result=n;this.keyPrefix=t;this.func=i;this.context=r;this.count=0}function v(n,t,i){var f=n.result,e=n.keyPrefix,c=n.func,l=n.context,r=c.call(l,t,n.count++);Array.isArray(r)?u(r,f,i,h.thatReturnsArgument):null!=r&&(s.isValidElement(r)&&(r=s.cloneAndReplaceKey(r,e+(r!==t?o(r.key||"")+"/":"")+i)),f.push(r))}function u(n,t,i,u,f){var h="",s;null!=i&&(h=o(i)+"/");s=r.getPooled(t,h,u,f);e(n,v,s);r.release(s)}function y(n,t,i){if(null==n)return n;var r=[];return u(n,r,null,t,i),r}function p(){return null}function w(n){return e(n,p,null)}function b(n){var t=[];return u(n,t,null,h.thatReturnsArgument),t}var f=n(24),s=n(50),h=n(134),e=n(125),k=f.twoArgumentPooler,d=f.fourArgumentPooler,g=/\/(?!\/)/g,c;i.prototype.destructor=function(){this.func=null;this.context=null;this.count=0};f.addPoolingTo(i,k);r.prototype.destructor=function(){this.result=null;this.keyPrefix=null;this.func=null;this.context=null;this.count=0};f.addPoolingTo(r,d);c={forEach:a,map:y,mapIntoWithKeyPrefixInternal:u,count:w,toArray:b};t.exports=c},{125:125,134:134,24:24,50:50}],29:[function(n,t){"use strict";function p(n,t){var f=u.hasOwnProperty(t)?u[t]:null;a.hasOwnProperty(t)&&(f!==i.OVERRIDE_BASE?r(!1):void 0);n.hasOwnProperty(t)&&(f!==i.DEFINE_MANY&&f!==i.DEFINE_MANY_MERGED?r(!1):void 0)}function o(n,t){var o,f,s,l;if(t){"function"==typeof t?r(!1):void 0;nt.isValidElement(t)?r(!1):void 0;o=n.prototype;t.hasOwnProperty(c)&&e.mixins(n,t.mixins);for(f in t)if(t.hasOwnProperty(f)&&f!==c)if(s=t[f],p(o,f),e.hasOwnProperty(f))e[f](n,s);else{var a=u.hasOwnProperty(f),v=o.hasOwnProperty(f),y="function"==typeof s,w=y&&!a&&!v&&t.autobind!==!1;w?(o.__reactAutoBindMap||(o.__reactAutoBindMap={}),o.__reactAutoBindMap[f]=s,o[f]=s):v?(l=u[f],!a||l!==i.DEFINE_MANY_MERGED&&l!==i.DEFINE_MANY?r(!1):void 0,l===i.DEFINE_MANY_MERGED?o[f]=h(o[f],s):l===i.DEFINE_MANY&&(o[f]=b(o[f],s))):o[f]=s}}}function w(n,t){var i,u,f,o;if(t)for(i in t)u=t[i],t.hasOwnProperty(i)&&(f=i in e,f?r(!1):void 0,o=i in n,o?r(!1):void 0,n[i]=u)}function s(n,t){n&&t&&"object"==(typeof n=="undefined"?"undefined":_typeof(n))&&"object"==(typeof t=="undefined"?"undefined":_typeof(t))?void 0:r(!1);for(var i in t)t.hasOwnProperty(i)&&(void 0!==n[i]?r(!1):void 0,n[i]=t[i]);return n}function h(n,t){return function(){var r=n.apply(this,arguments),u=t.apply(this,arguments),i;return null==r?u:null==u?r:(i={},s(i,r),s(i,u),i)}}function b(n,t){return function(){n.apply(this,arguments);t.apply(this,arguments)}}function k(n,t){return t.bind(n)}function d(n){var t,i;for(t in n.__reactAutoBindMap)n.__reactAutoBindMap.hasOwnProperty(t)&&(i=n.__reactAutoBindMap[t],n[t]=k(n,i))}var g=n(30),nt=n(50),tt=(n(71),n(70),n(67)),f=n(23),it=n(135),r=n(142),rt=n(145),ut=n(146),c=(n(151),ut({mixins:null})),i=rt({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),l=[],u={mixins:i.DEFINE_MANY,statics:i.DEFINE_MANY,propTypes:i.DEFINE_MANY,contextTypes:i.DEFINE_MANY,childContextTypes:i.DEFINE_MANY,getDefaultProps:i.DEFINE_MANY_MERGED,getInitialState:i.DEFINE_MANY_MERGED,getChildContext:i.DEFINE_MANY_MERGED,render:i.DEFINE_ONCE,componentWillMount:i.DEFINE_MANY,componentDidMount:i.DEFINE_MANY,componentWillReceiveProps:i.DEFINE_MANY,shouldComponentUpdate:i.DEFINE_ONCE,componentWillUpdate:i.DEFINE_MANY,componentDidUpdate:i.DEFINE_MANY,componentWillUnmount:i.DEFINE_MANY,updateComponent:i.OVERRIDE_BASE},e={displayName:function(n,t){n.displayName=t},mixins:function(n,t){if(t)for(var i=0;i<t.length;i++)o(n,t[i])},childContextTypes:function(n,t){n.childContextTypes=f({},n.childContextTypes,t)},contextTypes:function(n,t){n.contextTypes=f({},n.contextTypes,t)},getDefaultProps:function(n,t){n.getDefaultProps=n.getDefaultProps?h(n.getDefaultProps,t):t},propTypes:function(n,t){n.propTypes=f({},n.propTypes,t)},statics:function(n,t){w(n,t)},autobind:function(){}},a={replaceState:function(n,t){this.updater.enqueueReplaceState(this,n);t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(n,t){this.updater.enqueueSetProps(this,n);t&&this.updater.enqueueCallback(this,t)},replaceProps:function(n,t){this.updater.enqueueReplaceProps(this,n);t&&this.updater.enqueueCallback(this,t)}},v=function(){},y;f(v.prototype,g.prototype,a);y={createClass:function(n){var t=function(n,t,i){this.__reactAutoBindMap&&d(this);this.props=n;this.context=t;this.refs=it;this.updater=i||tt;this.state=null;var u=this.getInitialState?this.getInitialState():null;"object"!=(typeof u=="undefined"?"undefined":_typeof(u))||Array.isArray(u)?r(!1):void 0;this.state=u},i;t.prototype=new v;t.prototype.constructor=t;l.forEach(o.bind(null,t));o(t,n);t.getDefaultProps&&(t.defaultProps=t.getDefaultProps());t.prototype.render?void 0:r(!1);for(i in u)t.prototype[i]||(t.prototype[i]=null);return t},injection:{injectMixin:function(n){l.push(n)}}};t.exports=y},{135:135,142:142,145:145,146:146,151:151,23:23,30:30,50:50,67:67,70:70,71:71}],30:[function(n,t){"use strict";function i(n,t,i){this.props=n;this.context=t;this.refs=u;this.updater=i||r}var r=n(67),u=(n(102),n(135)),f=n(142);n(151);i.prototype.isReactComponent={};i.prototype.setState=function(n,t){"object"!=(typeof n=="undefined"?"undefined":_typeof(n))&&"function"!=typeof n&&null!=n?f(!1):void 0;this.updater.enqueueSetState(this,n);t&&this.updater.enqueueCallback(this,t)};i.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this);n&&this.updater.enqueueCallback(this,n)};t.exports=i},{102:102,135:135,142:142,151:151,67:67}],31:[function(n,t){"use strict";var i=n(40),r=n(63),u={processChildrenUpdates:i.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:i.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(n){r.purgeID(n)}};t.exports=u},{40:40,63:63}],32:[function(n,t){"use strict";var u=n(142),r=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(n){r?u(!1):void 0;i.unmountIDFromEnvironment=n.unmountIDFromEnvironment;i.replaceNodeWithMarkupByID=n.replaceNodeWithMarkupByID;i.processChildrenUpdates=n.processChildrenUpdates;r=!0}}};t.exports=i},{142:142}],33:[function(n,t){"use strict";function y(n){var i=n._currentElement._owner||null,t;return i&&(t=i.getName(),t)?" Check the render method of `"+t+"`.":""}function u(){}var p=n(32),h=n(34),c=n(50),f=n(60),w=n(69),b=n(71),i=(n(70),n(74)),l=n(80),e=n(23),o=n(135),r=n(142),k=n(124),a,s,v;n(151);u.prototype.render=function(){var n=f.get(this)._currentElement.type;return n(this.props,this.context,this.updater)};a=1;s={construct:function(n){this._currentElement=n;this._rootNodeID=null;this._instance=null;this._pendingElement=null;this._pendingStateQueue=null;this._pendingReplaceState=!1;this._pendingForceUpdate=!1;this._renderedComponent=null;this._context=null;this._mountOrder=0;this._topLevelWrapper=null;this._pendingCallbacks=null},mountComponent:function(n,t,e){var h,p;this._context=e;this._mountOrder=a++;this._rootNodeID=n;var s,v,w=this._processProps(this._currentElement.props),b=this._processContext(e),y=this._currentElement.type,k="prototype"in y;return k&&(s=new y(w,b,l)),(!k||null===s||s===!1||c.isValidElement(s))&&(v=s,s=new u(y)),s.props=w,s.context=b,s.refs=o,s.updater=l,this._instance=s,f.set(s,this),h=s.state,void 0===h&&(s.state=h=null),"object"!=(typeof h=="undefined"?"undefined":_typeof(h))||Array.isArray(h)?r(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,s.componentWillMount&&(s.componentWillMount(),this._pendingStateQueue&&(s.state=this._processPendingState(s.props,s.context))),void 0===v&&(v=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(v),p=i.mountComponent(this._renderedComponent,n,t,this._processChildContext(e)),s.componentDidMount&&t.getReactMountReady().enqueue(s.componentDidMount,s),p},unmountComponent:function(){var n=this._instance;n.componentWillUnmount&&n.componentWillUnmount();i.unmountComponent(this._renderedComponent);this._renderedComponent=null;this._instance=null;this._pendingStateQueue=null;this._pendingReplaceState=!1;this._pendingForceUpdate=!1;this._pendingCallbacks=null;this._pendingElement=null;this._context=null;this._rootNodeID=null;this._topLevelWrapper=null;f.remove(n)},_maskContext:function(n){var t=null,u=this._currentElement.type,r=u.contextTypes,i;if(!r)return o;t={};for(i in r)t[i]=n[i];return t},_processContext:function(n){return this._maskContext(n)},_processChildContext:function(n){var i=this._currentElement.type,u=this._instance,t=u.getChildContext&&u.getChildContext(),f;if(t){"object"!=_typeof(i.childContextTypes)?r(!1):void 0;for(f in t)f in i.childContextTypes?void 0:r(!1);return e({},n,t)}return n},_processProps:function(n){return n},_checkPropTypes:function(n,t,i){var e=this.getName(),u,f;for(u in n)if(n.hasOwnProperty(u)){try{"function"!=typeof n[u]?r(!1):void 0;f=n[u](t,u,e,i)}catch(o){f=o}f instanceof Error&&(y(this),i===b.prop)}},receiveComponent:function(n,t,i){var r=this._currentElement,u=this._context;this._pendingElement=null;this.updateComponent(t,r,n,u,i)},performUpdateIfNecessary:function(n){null!=this._pendingElement&&i.receiveComponent(this,this._pendingElement||this._currentElement,n,this._context);(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(n,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(n,t,i,r,u){var e,f=this._instance,o=this._context===u?f.context:this._processContext(u),s,h;t===i?e=i.props:(e=this._processProps(i.props),f.componentWillReceiveProps&&f.componentWillReceiveProps(e,o));s=this._processPendingState(e,o);h=this._pendingForceUpdate||!f.shouldComponentUpdate||f.shouldComponentUpdate(e,s,o);h?(this._pendingForceUpdate=!1,this._performComponentUpdate(i,e,s,o,n,u)):(this._currentElement=i,this._context=u,f.props=e,f.state=s,f.context=o)},_processPendingState:function(n,t){var o=this._instance,i=this._pendingStateQueue,s=this._pendingReplaceState,r,u,f;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!i)return o.state;if(s&&1===i.length)return i[0];for(r=e({},s?i[0]:o.state),u=s?1:0;u<i.length;u++)f=i[u],e(r,"function"==typeof f?f.call(o,r,n,t):f);return r},_performComponentUpdate:function(n,t,i,r,u,f){var o,s,h,e=this._instance,c=Boolean(e.componentDidUpdate);c&&(o=e.props,s=e.state,h=e.context);e.componentWillUpdate&&e.componentWillUpdate(t,i,r);this._currentElement=n;this._context=f;e.props=t;e.state=i;e.context=r;this._updateRenderedComponent(u,f);c&&u.getReactMountReady().enqueue(e.componentDidUpdate.bind(e,o,s,h),e)},_updateRenderedComponent:function(n,t){var r=this._renderedComponent,s=r._currentElement,u=this._renderValidatedComponent(),f,e,o;k(s,u)?i.receiveComponent(r,u,n,this._processChildContext(t)):(f=this._rootNodeID,e=r._rootNodeID,i.unmountComponent(r),this._renderedComponent=this._instantiateReactComponent(u),o=i.mountComponent(this._renderedComponent,f,n,this._processChildContext(t)),this._replaceNodeWithMarkupByID(e,o))},_replaceNodeWithMarkupByID:function(n,t){p.replaceNodeWithMarkupByID(n,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var n=this._instance;return n.render()},_renderValidatedComponent:function(){var n;h.current=this;try{n=this._renderValidatedComponentWithoutOwnerOrContext()}finally{h.current=null}return null===n||n===!1||c.isValidElement(n)?void 0:r(!1),n},attachRef:function(n,t){var i=this.getPublicInstance(),u,f;null==i?r(!1):void 0;u=t.getPublicInstance();f=i.refs===o?i.refs={}:i.refs;f[n]=u},detachRef:function(n){var t=this.getPublicInstance().refs;delete t[n]},getName:function(){var t=this._currentElement.type,n=this._instance&&this._instance.constructor;return t.displayName||n&&n.displayName||t.name||n&&n.name||null},getPublicInstance:function(){var n=this._instance;return n instanceof u?null:n},_instantiateReactComponent:null};w.measureMethods(s,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});v={Mixin:s};t.exports=v},{124:124,135:135,142:142,151:151,23:23,32:32,34:34,50:50,60:60,69:69,70:70,71:71,74:74,80:80}],34:[function(n,t){"use strict";t.exports={current:null}},{}],35:[function(n,t){"use strict";var f=n(34),e=n(46),o=n(49),s=n(59),i=n(63),h=n(69),c=n(74),l=n(81),a=n(82),v=n(106),y=n(121),r,u;n(151);o.inject();r=h.measure("React","render",i.render);u={findDOMNode:v,render:r,unmountComponentAtNode:i.unmountComponentAtNode,version:a,unstable_batchedUpdates:l.batchedUpdates,unstable_renderSubtreeIntoContainer:y};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:f,InstanceHandles:s,Mount:i,Reconciler:c,TextComponent:e});t.exports=u},{106:106,121:121,151:151,34:34,46:46,49:49,59:59,63:63,69:69,74:74,81:81,82:82}],36:[function(n,t){"use strict";var i={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(n,t){var u,r;if(!t.disabled)return t;u={};for(r in t)t.hasOwnProperty(r)&&!i[r]&&(u[r]=t[r]);return u}};t.exports=r},{}],37:[function(n,t){"use strict";function ht(){return this}function ct(){var n=this._reactInternalComponent;return!!n}function b(){}function lt(n,t){var i=this._reactInternalComponent;i&&(v.enqueueSetPropsInternal(i,n),t&&v.enqueueCallbackInternal(i,t))}function at(n,t){var i=this._reactInternalComponent;i&&(v.enqueueReplacePropsInternal(i,n),t&&v.enqueueCallbackInternal(i,t))}function tt(n,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?e(!1):void 0,"object"==_typeof(t.dangerouslySetInnerHTML)&&ei in t.dangerouslySetInnerHTML?void 0:e(!1)),null!=t.style&&"object"!=_typeof(t.style)?e(!1):void 0)}function it(n,t,i,u){var f=r.findReactContainerForID(n),e;f&&(e=f.nodeType===oi?f.ownerDocument:f,fi(t,e));u.getReactMountReady().enqueue(vt,{id:n,registrationName:t,listener:i})}function vt(){var n=this;i.putListener(n.id,n.registrationName,n.listener)}function yt(){var n=this,t,u;n._rootNodeID?void 0:e(!1);t=r.getNode(n._rootNodeID);switch(t?void 0:e(!1),n._tag){case"iframe":n._wrapperState.listeners=[i.trapBubbledEvent(s.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":n._wrapperState.listeners=[];for(u in nt)nt.hasOwnProperty(u)&&n._wrapperState.listeners.push(i.trapBubbledEvent(s.topLevelTypes[u],nt[u],t));break;case"img":n._wrapperState.listeners=[i.trapBubbledEvent(s.topLevelTypes.topError,"error",t),i.trapBubbledEvent(s.topLevelTypes.topLoad,"load",t)];break;case"form":n._wrapperState.listeners=[i.trapBubbledEvent(s.topLevelTypes.topReset,"reset",t),i.trapBubbledEvent(s.topLevelTypes.topSubmit,"submit",t)]}}function pt(){f.mountReadyWrapper(this)}function wt(){h.postUpdateWrapper(this)}function bt(n){ci.call(st,n)||(hi.test(n)?void 0:e(!1),st[n]=!0)}function rt(n,t){return n.indexOf("-")>=0||null!=t.is}function o(n){bt(n);this._tag=n.toLowerCase();this._renderedChildren=null;this._previousStyle=null;this._previousStyleCopy=null;this._rootNodeID=null;this._wrapperState=null;this._topLevelWrapper=null;this._nodeWithLegacyProperties=null}var kt=n(2),ut=n(5),l=n(10),u=n(11),s=n(15),i=n(26),dt=n(31),k=n(36),f=n(41),a=n(42),h=n(43),c=n(47),r=n(63),gt=n(64),ni=n(69),v=n(80),y=n(23),ti=n(102),ii=n(105),e=n(142),d=(n(117),n(146)),ri=n(122),ui=n(123),ft=(n(149),n(126),n(151),i.deleteListener),fi=i.listenTo,g=i.registrationNameModules,p={string:!0,number:!0},et=d({children:null}),w=d({style:null}),ei=d({__html:null}),oi=1,nt={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ot={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},si={listing:!0,pre:!0,textarea:!0},hi=(y({menuitem:!0},ot),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),st={},ci={}.hasOwnProperty;o.displayName="ReactDOMComponent";o.Mixin={construct:function(n){this._currentElement=n},mountComponent:function(n,t,i){var e,s,y,o,l,v;this._rootNodeID=n;e=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null};t.getReactMountReady().enqueue(yt,this);break;case"button":e=k.getNativeProps(this,e,i);break;case"input":f.mountWrapper(this,e,i);e=f.getNativeProps(this,e,i);break;case"option":a.mountWrapper(this,e,i);e=a.getNativeProps(this,e,i);break;case"select":h.mountWrapper(this,e,i);e=h.getNativeProps(this,e,i);i=h.processChildContext(this,e,i);break;case"textarea":c.mountWrapper(this,e,i);e=c.getNativeProps(this,e,i)}tt(this,e);t.useCreateElement?(y=i[r.ownerDocumentContextKey],o=y.createElement(this._currentElement.type),u.setAttributeForID(o,this._rootNodeID),r.getID(o),this._updateDOMProperties({},e,t,o),this._createInitialChildren(t,e,i,o),s=o):(l=this._createOpenTagMarkupAndPutListeners(t,e),v=this._createContentMarkup(t,e,i),s=!v&&ot[this._tag]?l+"/>":l+">"+v+"<\/"+this._currentElement.type+">");switch(this._tag){case"input":t.getReactMountReady().enqueue(pt,this);case"button":case"select":case"textarea":e.autoFocus&&t.getReactMountReady().enqueue(kt.focusDOMComponent,this)}return s},_createOpenTagMarkupAndPutListeners:function(n,t){var e="<"+this._currentElement.type,r,i,f,o;for(r in t)t.hasOwnProperty(r)&&(i=t[r],null!=i&&(g.hasOwnProperty(r)?i&&it(this._rootNodeID,r,i,n):(r===w&&(i&&(i=this._previousStyleCopy=y({},t.style)),i=ut.createMarkupForStyles(i)),f=null,null!=this._tag&&rt(this._tag,t)?r!==et&&(f=u.createMarkupForCustomAttribute(r,i)):f=u.createMarkupForProperty(r,i),f&&(e+=" "+f))));return n.renderToStaticMarkup?e:(o=u.createMarkupForID(this._rootNodeID),e+" "+o)},_createContentMarkup:function(n,t,i){var r="",f=t.dangerouslySetInnerHTML,u,e,o;return null!=f?null!=f.__html&&(r=f.__html):(u=p[_typeof(t.children)]?t.children:null,e=null!=u?null:t.children,null!=u?r=ii(u):null!=e&&(o=this.mountChildren(e,n,i),r=o.join(""))),si[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(n,t,i,r){var e=t.dangerouslySetInnerHTML,u,o,s,f;if(null!=e)null!=e.__html&&ri(r,e.__html);else if(u=p[_typeof(t.children)]?t.children:null,o=null!=u?null:t.children,null!=u)ui(r,u);else if(null!=o)for(s=this.mountChildren(o,n,i),f=0;f<s.length;f++)r.appendChild(s[f])},receiveComponent:function(n,t,i){var r=this._currentElement;this._currentElement=n;this.updateComponent(t,r,n,i)},updateComponent:function(n,t,i,r){var e=t.props,u=this._currentElement.props;switch(this._tag){case"button":e=k.getNativeProps(this,e);u=k.getNativeProps(this,u);break;case"input":f.updateWrapper(this);e=f.getNativeProps(this,e);u=f.getNativeProps(this,u);break;case"option":e=a.getNativeProps(this,e);u=a.getNativeProps(this,u);break;case"select":e=h.getNativeProps(this,e);u=h.getNativeProps(this,u);break;case"textarea":c.updateWrapper(this);e=c.getNativeProps(this,e);u=c.getNativeProps(this,u)}tt(this,u);this._updateDOMProperties(e,u,n,null);this._updateDOMChildren(e,u,n,r);!ti&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=u);"select"===this._tag&&n.getReactMountReady().enqueue(wt,this)},_updateDOMProperties:function(n,t,i,f){var e,s,h,a,o,c;for(e in n)if(!t.hasOwnProperty(e)&&n.hasOwnProperty(e))if(e===w){a=this._previousStyleCopy;for(s in a)a.hasOwnProperty(s)&&(h=h||{},h[s]="");this._previousStyleCopy=null}else g.hasOwnProperty(e)?n[e]&&ft(this._rootNodeID,e):(l.properties[e]||l.isCustomAttribute(e))&&(f||(f=r.getNode(this._rootNodeID)),u.deleteValueForProperty(f,e));for(e in t)if(o=t[e],c=e===w?this._previousStyleCopy:n[e],t.hasOwnProperty(e)&&o!==c)if(e===w)if(o?o=this._previousStyleCopy=y({},o):this._previousStyleCopy=null,c){for(s in c)!c.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(h=h||{},h[s]="");for(s in o)o.hasOwnProperty(s)&&c[s]!==o[s]&&(h=h||{},h[s]=o[s])}else h=o;else g.hasOwnProperty(e)?o?it(this._rootNodeID,e,o,i):c&&ft(this._rootNodeID,e):rt(this._tag,t)?(f||(f=r.getNode(this._rootNodeID)),e===et&&(o=null),u.setValueForAttribute(f,e,o)):(l.properties[e]||l.isCustomAttribute(e))&&(f||(f=r.getNode(this._rootNodeID)),null!=o?u.setValueForProperty(f,e,o):u.deleteValueForProperty(f,e));h&&(f||(f=r.getNode(this._rootNodeID)),ut.setValueForStyles(f,h))},_updateDOMChildren:function(n,t,i,r){var e=p[_typeof(n.children)]?n.children:null,u=p[_typeof(t.children)]?t.children:null,s=n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html,f=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,h=null!=e?null:n.children,o=null!=u?null:t.children,c=null!=e||null!=s,l=null!=u||null!=f;null!=h&&null==o?this.updateChildren(null,i,r):c&&!l&&this.updateTextContent("");null!=u?e!==u&&this.updateTextContent(""+u):null!=f?s!==f&&this.updateMarkup(""+f):null!=o&&this.updateChildren(o,i,r)},unmountComponent:function(){var n,t,r;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":if(n=this._wrapperState.listeners,n)for(t=0;t<n.length;t++)n[t].remove();break;case"input":f.unmountWrapper(this);break;case"html":case"head":case"body":e(!1)}(this.unmountChildren(),i.deleteAllListeners(this._rootNodeID),dt.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties)&&(r=this._nodeWithLegacyProperties,r._reactInternalComponent=null,this._nodeWithLegacyProperties=null)},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var n=r.getNode(this._rootNodeID);n._reactInternalComponent=this;n.getDOMNode=ht;n.isMounted=ct;n.setState=b;n.replaceState=b;n.forceUpdate=b;n.setProps=lt;n.replaceProps=at;n.props=this._currentElement.props;this._nodeWithLegacyProperties=n}return this._nodeWithLegacyProperties}};ni.measureMethods(o,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"});y(o.prototype,o.Mixin,gt.Mixin);t.exports=o},{10:10,102:102,105:105,11:11,117:117,122:122,123:123,126:126,142:142,146:146,149:149,15:15,151:151,2:2,23:23,26:26,31:31,36:36,41:41,42:42,43:43,47:47,5:5,63:63,64:64,69:69,80:80}],38:[function(n,t){"use strict";function i(n){return r.createFactory(n)}var r=n(50),u=(n(51),n(147)),f=u({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},i);t.exports=f},{147:147,50:50,51:51}],39:[function(n,t){"use strict";t.exports={useCreateElement:!1}},{}],40:[function(n,t){"use strict";var r=n(9),u=n(11),i=n(63),e=n(69),o=n(142),s={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},f={updatePropertyByID:function(n,t,r){var f=i.getNode(n);s.hasOwnProperty(t)?o(!1):void 0;null!=r?u.setValueForProperty(f,t,r):u.deleteValueForProperty(f,t)},dangerouslyReplaceNodeWithMarkupByID:function(n,t){var u=i.getNode(n);r.dangerouslyReplaceNodeWithMarkup(u,t)},dangerouslyProcessChildrenUpdates:function(n,t){for(var u=0;u<n.length;u++)n[u].parentNode=i.getNode(n[u].parentID);r.processUpdates(n,t)}};e.measureMethods(f,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"});t.exports=f},{11:11,142:142,63:63,69:69,9:9}],41:[function(n,t){"use strict";function u(){this._rootNodeID&&h.updateWrapper(this)}function c(n){var l=this._currentElement.props,w=i.executeOnChange(l,n),a,f,t,v,h,c,y,p;if(o.asap(u,this),a=l.name,"radio"===l.type&&null!=a){for(f=e.getNode(this._rootNodeID),t=f;t.parentNode;)t=t.parentNode;for(v=t.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),h=0;h<v.length;h++)c=v[h],c!==f&&c.form===f.form&&(y=e.getID(c),y?void 0:s(!1),p=r[y],p?void 0:s(!1),o.asap(u,p))}return w}var f=n(40),i=n(22),e=n(63),o=n(81),l=n(23),s=n(142),r={},h={getNativeProps:function(n,t){var r=i.getValue(t),u=i.getChecked(t);return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:n._wrapperState.initialValue,checked:null!=u?u:n._wrapperState.initialChecked,onChange:n._wrapperState.onChange})},mountWrapper:function(n,t){var i=t.defaultValue;n._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=i?i:null,onChange:c.bind(n)}},mountReadyWrapper:function(n){r[n._rootNodeID]=n},unmountWrapper:function(n){delete r[n._rootNodeID]},updateWrapper:function(n){var r=n._currentElement.props,u=r.checked,t;null!=u&&f.updatePropertyByID(n._rootNodeID,"checked",u||!1);t=i.getValue(r);null!=t&&f.updatePropertyByID(n._rootNodeID,"value",""+t)}};t.exports=h},{142:142,22:22,23:23,40:40,63:63,81:81}],42:[function(n,t){"use strict";var i=n(28),r=n(43),u=n(23),f=(n(151),r.valueContextKey),e={mountWrapper:function(n,t,i){var r=i[f],u=null,e;if(null!=r)if(u=!1,Array.isArray(r)){for(e=0;e<r.length;e++)if(""+r[e]==""+t.value){u=!0;break}}else u=""+r==""+t.value;n._wrapperState={selected:u}},getNativeProps:function(n,t){var r=u({selected:void 0,children:void 0},t),f;return null!=n._wrapperState.selected&&(r.selected=n._wrapperState.selected),f="",i.forEach(t.children,function(n){null!=n&&("string"==typeof n||"number"==typeof n)&&(f+=n)}),r.children=f,r}};t.exports=e},{151:151,23:23,28:28,43:43}],43:[function(n,t){"use strict";function e(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var n=this._currentElement.props,t=r.getValue(n);null!=t&&i(this,Boolean(n.multiple),t)}}function i(n,t,i){var f,r,u=s.getNode(n._rootNodeID).options,e;if(t){for(f={},r=0;r<i.length;r++)f[""+i[r]]=!0;for(r=0;r<u.length;r++)e=f.hasOwnProperty(u[r].value),u[r].selected!==e&&(u[r].selected=e)}else{for(f=""+i,r=0;r<u.length;r++)if(u[r].value===f)return void(u[r].selected=!0);u.length&&(u[0].selected=!0)}}function o(n){var t=this._currentElement.props,i=r.executeOnChange(t,n);return this._wrapperState.pendingUpdate=!0,h.asap(e,this),i}var r=n(22),s=n(63),h=n(81),u=n(23),f=(n(151),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),c={valueContextKey:f,getNativeProps:function(n,t){return u({},t,{onChange:n._wrapperState.onChange,value:void 0})},mountWrapper:function(n,t){var i=r.getValue(t);n._wrapperState={pendingUpdate:!1,initialValue:null!=i?i:t.defaultValue,onChange:o.bind(n),wasMultiple:Boolean(t.multiple)}},processChildContext:function(n,t,i){var r=u({},i);return r[f]=n._wrapperState.initialValue,r},postUpdateWrapper:function(n){var t=n._currentElement.props,f,u;n._wrapperState.initialValue=void 0;f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=Boolean(t.multiple);u=r.getValue(t);null!=u?(n._wrapperState.pendingUpdate=!1,i(n,Boolean(t.multiple),u)):f!==Boolean(t.multiple)&&(null!=t.defaultValue?i(n,Boolean(t.multiple),t.defaultValue):i(n,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=c},{151:151,22:22,23:23,63:63,81:81}],44:[function(n,t){"use strict";function i(n,t,i,r){return n===i&&t===r}function f(n){var f=document.selection,t=f.createRange(),e=t.text.length,i=t.duplicate(),r,u;return i.moveToElementText(n),i.setEndPoint("EndToStart",t),r=i.text.length,u=r+e,{start:r,end:u}}function e(n){var t=window.getSelection&&window.getSelection(),f;if(!t||0===t.rangeCount)return null;var h=t.anchorNode,c=t.anchorOffset,l=t.focusNode,a=t.focusOffset,u=t.getRangeAt(0);try{u.startContainer.nodeType;u.endContainer.nodeType}catch(w){return null}var v=i(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),y=v?0:u.toString().length,r=u.cloneRange();r.selectNodeContents(n);r.setEnd(u.startContainer,u.startOffset);var p=i(r.startContainer,r.startOffset,r.endContainer,r.endOffset),e=p?0:r.toString().length,s=e+y,o=document.createRange();return o.setStart(h,c),o.setEnd(l,a),f=o.collapsed,{start:f?s:e,end:f?e:s}}function o(n,t){var i,u,r=document.selection.createRange().duplicate();"undefined"==typeof t.end?(i=t.start,u=i):t.start>t.end?(i=t.end,u=t.start):(i=t.start,u=t.end);r.moveToElementText(n);r.moveStart("character",i);r.setEndPoint("EndToStart",r);r.moveEnd("character",u-i);r.select()}function s(n,t){var h,s,i,f;if(window.getSelection){var e=window.getSelection(),l=n[c()].length,u=Math.min(t.start,l),o="undefined"==typeof t.end?u:Math.min(t.end,l);!e.extend&&u>o&&(h=o,o=u,u=h);s=r(n,u);i=r(n,o);s&&i&&(f=document.createRange(),f.setStart(s.node,s.offset),e.removeAllRanges(),u>o?(e.addRange(f),e.extend(i.node,i.offset)):(f.setEnd(i.node,i.offset),e.addRange(f)))}}var h=n(128),r=n(114),c=n(115),u=h.canUseDOM&&"selection"in document&&!("getSelection"in window),l={getOffsets:u?f:e,setOffsets:u?o:s};t.exports=l},{114:114,115:115,128:128}],45:[function(n,t){"use strict";var u=n(49),i=n(78),f=n(82),r;u.inject();r={renderToString:i.renderToString,renderToStaticMarkup:i.renderToStaticMarkup,version:f};t.exports=r},{49:49,78:78,82:82}],46:[function(n,t){"use strict";var f=n(9),r=n(11),e=n(31),i=n(63),o=n(23),s=n(105),h=n(123),u=(n(126),function(){});o(u.prototype,{construct:function(n){this._currentElement=n;this._stringText=""+n;this._rootNodeID=null;this._mountIndex=0},mountComponent:function(n,t,u){var o,f,e;return(this._rootNodeID=n,t.useCreateElement)?(o=u[i.ownerDocumentContextKey],f=o.createElement("span"),r.setAttributeForID(f,n),i.getID(f),h(f,this._stringText),f):(e=s(this._stringText),t.renderToStaticMarkup?e:"<span "+r.createMarkupForID(n)+">"+e+"<\/span>")},receiveComponent:function(n){var t,r;n!==this._currentElement&&(this._currentElement=n,t=""+n,t!==this._stringText&&(this._stringText=t,r=i.getNode(this._rootNodeID),f.updateTextContent(r,t)))},unmountComponent:function(){e.unmountIDFromEnvironment(this._rootNodeID)}});t.exports=u},{105:105,11:11,123:123,126:126,23:23,31:31,63:63,9:9}],47:[function(n,t){"use strict";function f(){this._rootNodeID&&u.updateWrapper(this)}function e(n){var t=this._currentElement.props,r=i.executeOnChange(t,n);return s.asap(f,this),r}var i=n(22),o=n(40),s=n(81),h=n(23),r=n(142),u=(n(151),{getNativeProps:function(n,t){return null!=t.dangerouslySetInnerHTML?r(!1):void 0,h({},t,{defaultValue:void 0,value:void 0,children:n._wrapperState.initialValue,onChange:n._wrapperState.onChange})},mountWrapper:function(n,t){var f=t.defaultValue,u=t.children,o;null!=u&&(null!=f?r(!1):void 0,Array.isArray(u)&&(u.length<=1?void 0:r(!1),u=u[0]),f=""+u);null==f&&(f="");o=i.getValue(t);n._wrapperState={initialValue:""+(null!=o?o:f),onChange:e.bind(n)}},updateWrapper:function(n){var r=n._currentElement.props,t=i.getValue(r);null!=t&&o.updatePropertyByID(n._rootNodeID,"value",""+t)}});t.exports=u},{142:142,151:151,22:22,23:23,40:40,81:81}],48:[function(n,t){"use strict";function r(){this.reinitializeTransaction()}var u=n(81),o=n(98),s=n(23),f=n(134),h={initialize:f,close:function(){i.isBatchingUpdates=!1}},c={initialize:f,close:u.flushBatchedUpdates.bind(u)},l=[c,h],e,i;s(r.prototype,o.Mixin,{getTransactionWrappers:function(){return l}});e=new r;i={isBatchingUpdates:!1,batchedUpdates:function(n,t,r,u,f,o){var s=i.isBatchingUpdates;i.isBatchingUpdates=!0;s?n(t,r,u,f,o):e.perform(n,null,t,r,u,f,o)}};t.exports=i},{134:134,23:23,81:81,98:98}],49:[function(n,t){"use strict";function u(){r||(r=!0,i.EventEmitter.injectReactEventListener(b),i.EventPluginHub.injectEventPluginOrder(s),i.EventPluginHub.injectInstanceHandle(k),i.EventPluginHub.injectMount(d),i.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:it,EnterLeaveEventPlugin:h,ChangeEventPlugin:e,SelectEventPlugin:nt,BeforeInputEventPlugin:f}),i.NativeComponent.injectGenericComponentClass(p),i.NativeComponent.injectTextComponentClass(w),i.Class.injectMixin(a),i.DOMProperty.injectDOMPropertyConfig(l),i.DOMProperty.injectDOMPropertyConfig(rt),i.EmptyComponent.injectEmptyComponent("noscript"),i.Updates.injectReconcileTransaction(g),i.Updates.injectBatchingStrategy(y),i.RootIndex.injectCreateReactRootIndex(c.canUseDOM?o.createReactRootIndex:tt.createReactRootIndex),i.Component.injectEnvironment(v))}var f=n(3),e=n(7),o=n(8),s=n(13),h=n(14),c=n(128),l=n(21),a=n(25),v=n(31),y=n(48),p=n(37),w=n(46),b=n(56),i=n(57),k=n(59),d=n(63),g=n(73),nt=n(84),tt=n(85),it=n(86),rt=n(83),r=!1;t.exports={inject:u}},{128:128,13:13,14:14,21:21,25:25,3:3,31:31,37:37,46:46,48:48,56:56,57:57,59:59,63:63,7:7,73:73,8:8,83:83,84:84,85:85,86:86}],50:[function(n,t){"use strict";var r=n(34),e=n(23),u=(n(102),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103),f={key:!0,ref:!0,__self:!0,__source:!0},i=function(n,t,i,r,f,e,o){return{$$typeof:u,type:n,key:t,ref:i,props:o,_owner:e}};i.createElement=function(n,t,u){var e,o={},a=null,v=null,y=null,p=null,s,c,h,l;if(null!=t){v=void 0===t.ref?null:t.ref;a=void 0===t.key?null:""+t.key;y=void 0===t.__self?null:t.__self;p=void 0===t.__source?null:t.__source;for(e in t)t.hasOwnProperty(e)&&!f.hasOwnProperty(e)&&(o[e]=t[e])}if(s=arguments.length-2,1===s)o.children=u;else if(s>1){for(c=Array(s),h=0;s>h;h++)c[h]=arguments[h+2];o.children=c}if(n&&n.defaultProps){l=n.defaultProps;for(e in l)"undefined"==typeof o[e]&&(o[e]=l[e])}return i(n,a,v,y,p,r.current,o)};i.createFactory=function(n){var t=i.createElement.bind(null,n);return t.type=n,t};i.cloneAndReplaceKey=function(n,t){return i(n.type,t,n.ref,n._self,n._source,n._owner,n.props)};i.cloneAndReplaceProps=function(n,t){return i(n.type,n.key,n.ref,n._self,n._source,n._owner,t)};i.cloneElement=function(n,t,u){var o,c=e({},n.props),a=n.key,v=n.ref,p=n._self,w=n._source,y=n._owner,s,l,h;if(null!=t){void 0!==t.ref&&(v=t.ref,y=r.current);void 0!==t.key&&(a=""+t.key);for(o in t)t.hasOwnProperty(o)&&!f.hasOwnProperty(o)&&(c[o]=t[o])}if(s=arguments.length-2,1===s)c.children=u;else if(s>1){for(l=Array(s),h=0;s>h;h++)l[h]=arguments[h+2];c.children=l}return i(n.type,a,v,p,w,y,c)};i.isValidElement=function(n){return"object"==(typeof n=="undefined"?"undefined":_typeof(n))&&null!==n&&n.$$typeof===u};t.exports=i},{102:102,23:23,34:34}],51:[function(n,t){"use strict";function u(){if(r.current){var n=r.current.getName();if(n)return" Check the render method of `"+n+"`."}return""}function f(n,t){n._store&&!n._store.validated&&null==n.key&&(n._store.validated=!0,l("uniqueKey",n,t))}function l(n,t,i){var f=u(),e,o,h;return(f||(e="string"==typeof i?i:i.displayName||i.name,e&&(f=" Check the top-level render call using <"+e+">.")),o=s[n]||(s[n]={}),o[f])?null:(o[f]=!0,h={parentOrOwner:f,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null},t&&t._owner&&t._owner!==r.current&&(h.childOwner=" It was passed a child from "+t._owner.getName()+"."),h)}function e(n,t){var r,e,u,o,s;if("object"==(typeof n=="undefined"?"undefined":_typeof(n)))if(Array.isArray(n))for(r=0;r<n.length;r++)e=n[r],i.isValidElement(e)&&f(e,t);else if(i.isValidElement(n))n._store&&(n._store.validated=!0);else if(n&&(u=y(n),u&&u!==n.entries))for(s=u.call(n);!(o=s.next()).done;)i.isValidElement(o.value)&&f(o.value,t)}function a(n,t,i,r){var f,e;for(f in t)if(t.hasOwnProperty(f)){try{"function"!=typeof t[f]?p(!1):void 0;e=t[f](i,f,n,r)}catch(o){e=o}e instanceof Error&&!(e.message in h)&&(h[e.message]=!0,u())}}function o(n){var t=n.type,i;"function"==typeof t&&(i=t.displayName||t.name,t.propTypes&&a(i,t.propTypes,n.props,v.prop),"function"==typeof t.getDefaultProps)}var i=n(50),v=n(71),r=(n(70),n(34)),y=(n(102),n(113)),p=n(142),s=(n(151),{}),h={},c={createElement:function(n){var u="string"==typeof n||"function"==typeof n,t=i.createElement.apply(this,arguments),r;if(null==t)return t;if(u)for(r=2;r<arguments.length;r++)e(arguments[r],n);return o(t),t},createFactory:function(n){var t=c.createElement.bind(null,n);return t.type=n,t},cloneElement:function(){for(var n=i.cloneElement.apply(this,arguments),t=2;t<arguments.length;t++)e(arguments[t],n.type);return o(n),n}};t.exports=c},{102:102,113:113,142:142,151:151,34:34,50:50,70:70,71:71}],52:[function(n,t){"use strict";var r,e=n(50),u=n(53),f=n(74),o=n(23),s={injectEmptyComponent:function(n){r=e.createElement(n)}},i=function(n){this._currentElement=null;this._rootNodeID=null;this._renderedComponent=n(r)};o(i.prototype,{construct:function(){},mountComponent:function(n,t,i){return u.registerNullComponentID(n),this._rootNodeID=n,f.mountComponent(this._renderedComponent,n,t,i)},receiveComponent:function(){},unmountComponent:function(){f.unmountComponent(this._renderedComponent);u.deregisterNullComponentID(this._rootNodeID);this._rootNodeID=null;this._renderedComponent=null}});i.injection=s;t.exports=i},{23:23,50:50,53:53,74:74}],53:[function(n,t){"use strict";function r(n){return!!i[n]}function u(n){i[n]=!0}function f(n){delete i[n]}var i={},e={isNullComponentID:r,registerNullComponentID:u,deregisterNullComponentID:f};t.exports=e},{}],54:[function(n,t){"use strict";function r(n,t,r,u){try{return t(r,u)}catch(f){return void(null===i&&(i=f))}}var i=null,u={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(i){var n=i;throw i=null,n;}}};t.exports=u},{}],55:[function(n,t){"use strict";function r(n){i.enqueueEvents(n);i.processEventQueue(!1)}var i=n(16),u={handleTopLevel:function(n,t,u,f,e){var o=i.extractEvents(n,t,u,f,e);r(o)}};t.exports=u},{16:16}],56:[function(n,t){"use strict";function s(n){var t=r.getID(n),i=v.getReactRootIDFromNodeID(t),u=r.findReactContainerForID(i);return r.getFirstReactDOM(u)}function u(n,t){this.topLevelType=n;this.nativeEvent=t;this.ancestors=[]}function h(n){c(n)}function c(n){for(var t,e,u=r.getFirstReactDOM(o(n.nativeEvent))||window,f=u;f;)n.ancestors.push(f),f=s(f);for(t=0;t<n.ancestors.length;t++)u=n.ancestors[t],e=r.getID(u)||"",i._handleTopLevel(n.topLevelType,u,e,n.nativeEvent,o(n.nativeEvent))}function l(n){var t=w(window);n(t)}var f=n(127),a=n(128),e=n(24),v=n(59),r=n(63),y=n(81),p=n(23),o=n(112),w=n(139),i;p(u.prototype,{destructor:function(){this.topLevelType=null;this.nativeEvent=null;this.ancestors.length=0}});e.addPoolingTo(u,e.twoArgumentPooler);i={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:a.canUseDOM?window:null,setHandleTopLevel:function(n){i._handleTopLevel=n},setEnabled:function(n){i._enabled=!!n},isEnabled:function(){return i._enabled},trapBubbledEvent:function(n,t,r){var u=r;return u?f.listen(u,t,i.dispatchEvent.bind(null,n)):null},trapCapturedEvent:function(n,t,r){var u=r;return u?f.capture(u,t,i.dispatchEvent.bind(null,n)):null},monitorScrollValue:function(n){var t=l.bind(null,n);f.listen(window,"scroll",t)},dispatchEvent:function(n,t){if(i._enabled){var r=u.getPooled(n,t);try{y.batchedUpdates(h,r)}finally{u.release(r)}}}};t.exports=i},{112:112,127:127,128:128,139:139,23:23,24:24,59:59,63:63,81:81}],57:[function(n,t){"use strict";var i=n(10),r=n(16),u=n(32),f=n(29),e=n(52),o=n(26),s=n(66),h=n(69),c=n(76),l=n(81),a={Component:u.injection,Class:f.injection,DOMProperty:i.injection,EmptyComponent:e.injection,EventPluginHub:r.injection,EventEmitter:o.injection,NativeComponent:s.injection,Perf:h.injection,RootIndex:c.injection,Updates:l.injection};t.exports=a},{10:10,16:16,26:26,29:29,32:32,52:52,66:66,69:69,76:76,81:81}],58:[function(n,t){"use strict";function f(n){return e(document.documentElement,n)}var r=n(44),e=n(131),o=n(136),u=n(137),i={hasSelectionCapabilities:function(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&("input"===t&&"text"===n.type||"textarea"===t||"true"===n.contentEditable)},getSelectionInformation:function(){var n=u();return{focusedElem:n,selectionRange:i.hasSelectionCapabilities(n)?i.getSelection(n):null}},restoreSelection:function(n){var r=u(),t=n.focusedElem,e=n.selectionRange;r!==t&&f(t)&&(i.hasSelectionCapabilities(t)&&i.setSelection(t,e),o(t))},getSelection:function(n){var t,i;return"selectionStart"in n?t={start:n.selectionStart,end:n.selectionEnd}:document.selection&&n.nodeName&&"input"===n.nodeName.toLowerCase()?(i=document.selection.createRange(),i.parentElement()===n&&(t={start:-i.moveStart("character",-n.value.length),end:-i.moveEnd("character",-n.value.length)})):t=r.getOffsets(n),t||{start:0,end:0}},setSelection:function(n,t){var u=t.start,f=t.end,i;("undefined"==typeof f&&(f=u),"selectionStart"in n)?(n.selectionStart=u,n.selectionEnd=Math.min(f,n.value.length)):document.selection&&n.nodeName&&"input"===n.nodeName.toLowerCase()?(i=n.createTextRange(),i.collapse(!0),i.moveStart("character",u),i.moveEnd("character",f-u),i.select()):r.setOffsets(n,t)}};t.exports=i},{131:131,136:136,137:137,44:44}],59:[function(n,t){"use strict";function c(n){return i+n.toString(36)}function f(n,t){return n.charAt(t)===i||t===n.length}function o(n){return""===n||n.charAt(0)===i&&n.charAt(n.length-1)!==i}function e(n,t){return 0===t.indexOf(n)&&f(t,n.length)}function l(n){return n?n.substr(0,n.lastIndexOf(i)):""}function s(n,t){if(o(n)&&o(t)?void 0:u(!1),e(n,t)?void 0:u(!1),n===t)return n;for(var r=n.length+v,i=r;i<t.length&&!f(t,i);i++);return t.substr(0,i)}function h(n,t){var s=Math.min(n.length,t.length),r,i,e;if(0===s)return"";for(r=0,i=0;s>=i;i++)if(f(n,i)&&f(t,i))r=i;else if(n.charAt(i)!==t.charAt(i))break;return e=n.substr(0,r),o(e)?void 0:u(!1),e}function r(n,t,i,r,f,o){var c,a;n=n||"";t=t||"";n===t?u(!1):void 0;c=e(t,n);c||e(n,t)?void 0:u(!1);for(var v=0,p=c?l:s,h=n;;h=p(h,t)){if(f&&h===n||o&&h===t||(a=i(h,c,r)),a===!1||h===t)break;v++<y?void 0:u(!1)}}var a=n(76),u=n(142),i=".",v=i.length,y=1e4,p={createReactRootID:function(){return c(a.createReactRootIndex())},createReactID:function(n,t){return n+t},getReactRootIDFromNodeID:function(n){if(n&&n.charAt(0)===i&&n.length>1){var t=n.indexOf(i,1);return t>-1?n.substr(0,t):n}return null},traverseEnterLeave:function(n,t,i,u,f){var e=h(n,t);e!==n&&r(n,e,i,u,!1,!0);e!==t&&r(e,t,i,f,!0,!1)},traverseTwoPhase:function(n,t,i){n&&(r("",n,t,i,!0,!1),r(n,"",t,i,!1,!0))},traverseTwoPhaseSkipTarget:function(n,t,i){n&&(r("",n,t,i,!0,!0),r(n,"",t,i,!0,!0))},traverseAncestors:function(n,t,i){r("",n,t,i,!0,!1)},getFirstCommonAncestorID:h,_getNextDescendantID:s,isAncestorIDOf:e,SEPARATOR:i};t.exports=p},{142:142,76:76}],60:[function(n,t){"use strict";var i={remove:function(n){n._reactInternalInstance=void 0},get:function(n){return n._reactInternalInstance},has:function(n){return void 0!==n._reactInternalInstance},set:function(n,t){n._reactInternalInstance=t}};t.exports=i},{}],61:[function(n,t){"use strict";var i=n(28),u=n(30),f=n(29),e=n(38),r=n(50),o=(n(51),n(72)),s=n(82),h=n(23),c=n(119),l=r.createElement,a=r.createFactory,v=r.cloneElement,y={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:c},Component:u,createElement:l,cloneElement:v,isValidElement:r.isValidElement,PropTypes:o,createClass:f.createClass,createFactory:a,createMixin:function(n){return n},DOM:e,version:s,__spread:h};t.exports=y},{119:119,23:23,28:28,29:29,30:30,38:38,50:50,51:51,72:72,82:82}],62:[function(n,t){"use strict";var r=n(101),u=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(n){var t=r(n);return n.replace(u," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(n,t){var u=t.getAttribute(i.CHECKSUM_ATTR_NAME),f;return u=u&&parseInt(u,10),f=r(n),f===u}};t.exports=i},{101:101}],63:[function(n,t){"use strict";function ut(n,t){for(var r=Math.min(n.length,t.length),i=0;r>i;i++)if(n.charAt(i)!==t.charAt(i))return i;return n.length===t.length?-1:r}function w(n){return n?n.nodeType===e?n.documentElement:n.firstChild:null}function s(n){var t=w(n);return t&&i.getID(t)}function ft(n){var t=o(n),i;return t&&(r.hasOwnProperty(t)?(i=r[t],i!==n&&(h(i,t)?u(!1):void 0,r[t]=n)):r[t]=n),t}function o(n){return n&&n.getAttribute&&n.getAttribute(it)||""}function et(n,t){var i=o(n);i!==t&&delete r[i];n.setAttribute(it,t);r[t]=n}function ot(n){return r.hasOwnProperty(n)&&h(r[n],n)||(r[n]=i.findReactNodeByID(n)),r[n]}function st(n){var t=gt.get(n)._rootNodeID;return dt.isNullComponentID(t)?null:(r.hasOwnProperty(t)&&h(r[t],t)||(r[t]=i.findReactNodeByID(t)),r[t])}function h(n,t){if(n){o(n)!==t?u(!1):void 0;var r=i.findReactContainerForID(t);if(r&&ri(r,n))return!0}return!1}function ht(n){delete r[n]}function ct(n){var t=r[n];return t&&h(t,n)?void(y=t):!1}function lt(n){y=null;f.traverseAncestors(n,ct);var t=y;return y=null,t}function at(n,t,r,u,f,o){kt.useCreateElement&&(o=ti({},o),o[rt]=r.nodeType===e?r:r.ownerDocument);var s=nt.mountComponent(n,t,u,o);n._renderedComponent._topLevelWrapper=n;i._mountImageIntoNode(s,r,f,u)}function vt(n,t,i,r,u){var f=a.ReactReconcileTransaction.getPooled(r);f.perform(at,null,n,t,i,f,r,u);a.ReactReconcileTransaction.release(f)}function yt(n,t){for(nt.unmountComponent(n),t.nodeType===e&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function d(n){var t=s(n);return t?t!==f.getReactRootIDFromNodeID(t):!1}function pt(n){for(var i,u,r,t;n&&n.parentNode!==n;n=n.parentNode)if(1===n.nodeType&&(i=o(n),i)){r=f.getReactRootIDFromNodeID(i);t=n;do if(u=o(t),t=t.parentNode,null==t)return null;while(u!==r);if(t===v[r])return n}return null}var wt=n(10),bt=n(26),kt=(n(34),n(39)),g=n(50),dt=n(53),f=n(59),gt=n(60),l=n(62),ni=n(69),nt=n(74),tt=n(80),a=n(81),ti=n(23),ii=n(135),ri=n(131),ui=n(116),u=n(142),fi=n(122),ei=n(124),it=(n(126),n(151),wt.ID_ATTRIBUTE_NAME),r={},b=1,e=9,k=11,rt="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),c={},v={},oi=[],y=null,p=function(){},i;p.prototype.isReactComponent={};p.prototype.render=function(){return this.props};i={TopLevelWrapper:p,_instancesByReactRootID:c,scrollMonitor:function(n,t){t()},_updateRootComponent:function(n,t,r,u){return i.scrollMonitor(r,function(){tt.enqueueElementInternal(n,t);u&&tt.enqueueCallbackInternal(n,u)}),n},_registerComponent:function(n,t){!t||t.nodeType!==b&&t.nodeType!==e&&t.nodeType!==k?u(!1):void 0;bt.ensureScrollValueMonitoring();var r=i.registerContainer(t);return c[r]=n,r},_renderNewRootComponent:function(n,t,r,u){var f=ui(n,null),e=i._registerComponent(f,t);return a.batchedUpdates(vt,f,e,t,r,u),f},renderSubtreeIntoContainer:function(n,t,r,f){return null==n||null==n._reactInternalInstance?u(!1):void 0,i._renderSubtreeIntoContainer(n,t,r,f)},_renderSubtreeIntoContainer:function(n,t,r,f){var h,e,a,v,l,y;if(g.isValidElement(t)?void 0:u(!1),h=new g(p,null,null,null,null,null,t),e=c[s(r)],e){if(a=e._currentElement,v=a.props,ei(v,t))return l=e._renderedComponent.getPublicInstance(),y=f&&function(){f.call(l)},i._updateRootComponent(e,h,r,y),l;i.unmountComponentAtNode(r)}var b=w(r),nt=b&&!!o(b),tt=d(r),it=nt&&!e&&!tt,k=i._renderNewRootComponent(h,r,it,null!=n?n._reactInternalInstance._processChildContext(n._reactInternalInstance._context):ii)._renderedComponent.getPublicInstance();return f&&f.call(k),k},render:function(n,t,r){return i._renderSubtreeIntoContainer(null,n,t,r)},registerContainer:function(n){var t=s(n);return t&&(t=f.getReactRootIDFromNodeID(t)),t||(t=f.createReactRootID()),v[t]=n,t},unmountComponentAtNode:function(n){var t,r,i;return(!n||n.nodeType!==b&&n.nodeType!==e&&n.nodeType!==k?u(!1):void 0,t=s(n),r=c[t],!r)?(i=(d(n),o(n)),i&&i===f.getReactRootIDFromNodeID(i),!1):(a.batchedUpdates(yt,r,n),delete c[t],delete v[t],!0)},findReactContainerForID:function(n){var t=f.getReactRootIDFromNodeID(n);return v[t]},findReactNodeByID:function(n){var t=i.findReactContainerForID(n);return i.findComponentRoot(t,n)},getFirstReactDOM:function(n){return pt(n)},findComponentRoot:function(n,t){var r=oi,s=0,c=lt(t)||n,h,e,o;for(r[0]=c.firstChild,r.length=1;s<r.length;){for(e=r[s++];e;)o=i.getID(e),o?t===o?h=e:f.isAncestorIDOf(o,t)&&(r.length=s=0,r.push(e.firstChild)):r.push(e.firstChild),e=e.nextSibling;if(h)return r.length=0,h}r.length=0;u(!1)},_mountImageIntoNode:function(n,t,i,r){var f,c,s,h,o;if(!t||t.nodeType!==b&&t.nodeType!==e&&t.nodeType!==k?u(!1):void 0,i){if(f=w(t),l.canReuseMarkup(n,f))return;c=f.getAttribute(l.CHECKSUM_ATTR_NAME);f.removeAttribute(l.CHECKSUM_ATTR_NAME);s=f.outerHTML;f.setAttribute(l.CHECKSUM_ATTR_NAME,c);h=n;o=ut(h,s);" (client) "+h.substring(o-20,o+20)+"\n (server) "+s.substring(o-20,o+20);t.nodeType===e?u(!1):void 0}if(t.nodeType===e?u(!1):void 0,r.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(n)}else fi(t,n)},ownerDocumentContextKey:rt,getReactRootID:s,getID:ft,setID:et,getNode:ot,getNodeFromInstance:st,isValid:h,purgeID:ht};ni.measureMethods(i,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"});t.exports=i},{10:10,116:116,122:122,124:124,126:126,131:131,135:135,142:142,151:151,23:23,26:26,34:34,39:39,50:50,53:53,59:59,60:60,62:62,69:69,74:74,80:80,81:81}],64:[function(n,t){"use strict";function c(n,t,i){r.push({parentID:n,parentNode:null,type:u.INSERT_MARKUP,markupIndex:s.push(t)-1,content:null,fromIndex:null,toIndex:i})}function l(n,t,i){r.push({parentID:n,parentNode:null,type:u.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:i})}function a(n,t){r.push({parentID:n,parentNode:null,type:u.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function v(n,t){r.push({parentID:n,parentNode:null,type:u.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function y(n,t){r.push({parentID:n,parentNode:null,type:u.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function o(){r.length&&(p.processChildrenUpdates(r,s),e())}function e(){r.length=0;s.length=0}var p=n(32),u=n(65),h=(n(34),n(74)),f=n(27),w=n(107),i=0,r=[],s=[],b={Mixin:{_reconcilerInstantiateChildren:function(n,t,i){return f.instantiateChildren(n,t,i)},_reconcilerUpdateChildren:function(n,t,i,r){var u;return u=w(t),f.updateChildren(n,u,i,r)},mountChildren:function(n,t,i){var r=this._reconcilerInstantiateChildren(n,t,i),f,e,u;this._renderedChildren=r;f=[];e=0;for(u in r)if(r.hasOwnProperty(u)){var o=r[u],s=this._rootNodeID+u,c=h.mountComponent(o,s,t,i);o._mountIndex=e++;f.push(c)}return f},updateTextContent:function(n){var r,t,u;i++;r=!0;try{t=this._renderedChildren;f.unmountChildren(t);for(u in t)t.hasOwnProperty(u)&&this._unmountChild(t[u]);this.setTextContent(n);r=!1}finally{i--;i||(r?e():o())}},updateMarkup:function(n){var u,t,r;i++;u=!0;try{t=this._renderedChildren;f.unmountChildren(t);for(r in t)t.hasOwnProperty(r)&&this._unmountChildByName(t[r],r);this.setMarkup(n);u=!1}finally{i--;i||(u?e():o())}},updateChildren:function(n,t,r){i++;var u=!0;try{this._updateChildren(n,t,r);u=!1}finally{i--;i||(u?e():o())}},_updateChildren:function(n,t,i){var f=this._renderedChildren,e=this._reconcilerUpdateChildren(f,n,t,i),r,o,s,u,h;if(this._renderedChildren=e,e||f){o=0;s=0;for(r in e)e.hasOwnProperty(r)&&(u=f&&f[r],h=e[r],u===h?(this.moveChild(u,s,o),o=Math.max(u._mountIndex,o),u._mountIndex=s):(u&&(o=Math.max(u._mountIndex,o),this._unmountChild(u)),this._mountChildByNameAtIndex(h,r,s,t,i)),s++);for(r in f)!f.hasOwnProperty(r)||e&&e.hasOwnProperty(r)||this._unmountChild(f[r])}},unmountChildren:function(){var n=this._renderedChildren;f.unmountChildren(n);this._renderedChildren=null},moveChild:function(n,t,i){n._mountIndex<i&&l(this._rootNodeID,n._mountIndex,t)},createChild:function(n,t){c(this._rootNodeID,t,n._mountIndex)},removeChild:function(n){a(this._rootNodeID,n._mountIndex)},setTextContent:function(n){y(this._rootNodeID,n)},setMarkup:function(n){v(this._rootNodeID,n)},_mountChildByNameAtIndex:function(n,t,i,r,u){var f=this._rootNodeID+t,e=h.mountComponent(n,f,r,u);n._mountIndex=i;this.createChild(n,e)},_unmountChild:function(n){this.removeChild(n);n._mountIndex=null}}};t.exports=b},{107:107,27:27,32:32,34:34,65:65,74:74}],65:[function(n,t){"use strict";var i=n(145),r=i({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=r},{145:145}],66:[function(n,t){"use strict";function f(n){if("function"==typeof n.type)return n.type;var t=n.type,i=r[t];return null==i&&(r[t]=i=l(t)),i}function e(n){return i?void 0:c(!1),new i(n.type,n.props)}function o(n){return new u(n)}function s(n){return n instanceof u}var h=n(23),c=n(142),l=null,i=null,r={},u=null,a={injectGenericComponentClass:function(n){i=n},injectTextComponentClass:function(n){u=n},injectComponentClasses:function(n){h(r,n)}},v={getComponentClassForElement:f,createInternalComponent:e,createInstanceForText:o,isTextComponent:s,injection:a};t.exports=v},{142:142,23:23}],67:[function(n,t){"use strict";function i(){}var r=(n(151),{isMounted:function(){return!1},enqueueCallback:function(){},enqueueForceUpdate:function(n){i(n,"forceUpdate")},enqueueReplaceState:function(n){i(n,"replaceState")},enqueueSetState:function(n){i(n,"setState")},enqueueSetProps:function(n){i(n,"setProps")},enqueueReplaceProps:function(n){i(n,"replaceProps")}});t.exports=r},{151:151}],68:[function(n,t){"use strict";var r=n(142),i={isValidOwner:function(n){return!(!n||"function"!=typeof n.attachRef||"function"!=typeof n.detachRef)},addComponentAsRefTo:function(n,t,u){i.isValidOwner(u)?void 0:r(!1);u.attachRef(t,n)},removeComponentAsRefFrom:function(n,t,u){i.isValidOwner(u)?void 0:r(!1);u.getPublicInstance().refs[t]===n.getPublicInstance()&&u.detachRef(t)}};t.exports=i},{142:142}],69:[function(n,t){"use strict";function r(n,t,i){return i}var i={enableMeasure:!1,storedMeasure:r,measureMethods:function(){},measure:function(n,t,i){return i},injection:{injectMeasure:function(n){i.storedMeasure=n}}};t.exports=i},{}],70:[function(n,t){"use strict";t.exports={}},{}],71:[function(n,t){"use strict";var i=n(145),r=i({prop:null,context:null,childContext:null});t.exports=r},{145:145}],72:[function(n,t){"use strict";function i(n){function t(t,i,u,f,e,o){if(f=f||s,o=o||u,null==i[u]){var h=r[e];return t?new Error("Required "+h+" `"+o+"` was not specified in "+("`"+f+"`.")):null}return n(i,u,f,e,o)}var i=t.bind(null,!1);return i.isRequired=t.bind(null,!0),i}function u(n){function t(t,i,u,e,o){var s=t[i],l=f(s),h,c;return l!==n?(h=r[e],c=k(s),new Error("Invalid "+h+" `"+o+"` of type "+("`"+c+"` supplied to `"+u+"`, expected ")+("`"+n+"`."))):null}return i(t)}function h(){return i(g.thatReturns(null))}function c(n){function t(t,i,u,e,o){var h=t[i],l,a,s,c;if(!Array.isArray(h))return l=r[e],a=f(h),new Error("Invalid "+l+" `"+o+"` of type "+("`"+a+"` supplied to `"+u+"`, expected an array."));for(s=0;s<h.length;s++)if(c=n(h,s,u,e,o+"["+s+"]"),c instanceof Error)return c;return null}return i(t)}function l(){function n(n,t,i,u,f){if(!o.isValidElement(n[t])){var e=r[u];return new Error("Invalid "+e+" `"+f+"` supplied to "+("`"+i+"`, expected a single ReactElement."))}return null}return i(n)}function a(n){function t(t,i,u,f,e){if(!(t[i]instanceof n)){var o=r[f],h=n.name||s,c=d(t[i]);return new Error("Invalid "+o+" `"+e+"` of type "+("`"+c+"` supplied to `"+u+"`, expected ")+("instance of `"+h+"`."))}return null}return i(t)}function v(n){function t(t,i,u,f,e){for(var s,h,c=t[i],o=0;o<n.length;o++)if(c===n[o])return null;return s=r[f],h=JSON.stringify(n),new Error("Invalid "+s+" `"+e+"` of value `"+c+"` "+("supplied to `"+u+"`, expected one of "+h+"."))}return i(Array.isArray(n)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function y(n){function t(t,i,u,e,o){var s=t[i],l=f(s),a,h,c;if("object"!==l)return a=r[e],new Error("Invalid "+a+" `"+o+"` of type "+("`"+l+"` supplied to `"+u+"`, expected an object."));for(h in s)if(s.hasOwnProperty(h)&&(c=n(s,h,u,e,o+"."+h),c instanceof Error))return c;return null}return i(t)}function p(n){function t(t,i,u,f,e){for(var s,h,o=0;o<n.length;o++)if(s=n[o],null==s(t,i,u,f,e))return null;return h=r[f],new Error("Invalid "+h+" `"+e+"` supplied to "+("`"+u+"`."))}return i(Array.isArray(n)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function w(){function n(n,t,i,u,f){if(!e(n[t])){var o=r[u];return new Error("Invalid "+o+" `"+f+"` supplied to "+("`"+i+"`, expected a ReactNode."))}return null}return i(n)}function b(n){function t(t,i,u,e,o){var l=t[i],a=f(l),v,s,h,c;if("object"!==a)return v=r[e],new Error("Invalid "+v+" `"+o+"` of type `"+a+"` "+("supplied to `"+u+"`, expected `object`."));for(s in n)if(h=n[s],h&&(c=h(l,s,u,e,o+"."+s),c))return c;return null}return i(t)}function e(n){var t,i,r,u;switch(typeof n=="undefined"?"undefined":_typeof(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(e);if(null===n||o.isValidElement(n))return!0;if(t=nt(n),!t)return!1;if(r=t.call(n),t!==n.entries){for(;!(i=r.next()).done;)if(!e(i.value))return!1}else for(;!(i=r.next()).done;)if(u=i.value,u&&!e(u[1]))return!1;return!0;default:return!1}}function f(n){var t=typeof n=="undefined"?"undefined":_typeof(n);return Array.isArray(n)?"array":n instanceof RegExp?"object":t}function k(n){var t=f(n);if("object"===t){if(n instanceof Date)return"date";if(n instanceof RegExp)return"regexp"}return t}function d(n){return n.constructor&&n.constructor.name?n.constructor.name:"<<anonymous>>"}var o=n(50),r=n(70),g=n(134),nt=n(113),s="<<anonymous>>",tt={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),any:h(),arrayOf:c,element:l(),instanceOf:a,node:w(),objectOf:y,oneOf:v,oneOfType:p,shape:b};t.exports=tt},{113:113,134:134,50:50,70:70}],73:[function(n,t){"use strict";function i(n){this.reinitializeTransaction();this.renderToStaticMarkup=!1;this.reactMountReady=u.getPooled(null);this.useCreateElement=!n&&o.useCreateElement}var u=n(6),e=n(24),r=n(26),o=n(39),f=n(58),s=n(98),h=n(23),c={initialize:f.getSelectionInformation,close:f.restoreSelection},l={initialize:function(){var n=r.isEnabled();return r.setEnabled(!1),n},close:function(n){r.setEnabled(n)}},a={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},v=[c,l,a],y={getTransactionWrappers:function(){return v},getReactMountReady:function(){return this.reactMountReady},destructor:function(){u.release(this.reactMountReady);this.reactMountReady=null}};h(i.prototype,s.Mixin,y);e.addPoolingTo(i);t.exports=i},{23:23,24:24,26:26,39:39,58:58,6:6,98:98}],74:[function(n,t){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=n(75),u={mountComponent:function(n,t,i,u){var f=n.mountComponent(t,i,u);return n._currentElement&&null!=n._currentElement.ref&&i.getReactMountReady().enqueue(r,n),f},unmountComponent:function(n){i.detachRefs(n,n._currentElement);n.unmountComponent()},receiveComponent:function(n,t,u,f){var e=n._currentElement,o;(t!==e||f!==n._context)&&(o=i.shouldUpdateRefs(e,t),o&&i.detachRefs(n,e),n.receiveComponent(t,u,f),o&&n._currentElement&&null!=n._currentElement.ref&&u.getReactMountReady().enqueue(r,n))},performUpdateIfNecessary:function(n,t){n.performUpdateIfNecessary(t)}};t.exports=u},{75:75}],75:[function(n,t){"use strict";function u(n,t,i){"function"==typeof n?n(t.getPublicInstance()):r.addComponentAsRefTo(t,n,i)}function f(n,t,i){"function"==typeof n?n(null):r.removeComponentAsRefFrom(t,n,i)}var r=n(68),i={};i.attachRefs=function(n,t){if(null!==t&&t!==!1){var i=t.ref;null!=i&&u(i,n,t._owner)}};i.shouldUpdateRefs=function(n,t){var i=null===n||n===!1,r=null===t||t===!1;return i||r||t._owner!==n._owner||t.ref!==n.ref};i.detachRefs=function(n,t){if(null!==t&&t!==!1){var i=t.ref;null!=i&&f(i,n,t._owner)}};t.exports=i},{68:68}],76:[function(n,t){"use strict";var r={injectCreateReactRootIndex:function(n){i.createReactRootIndex=n}},i={createReactRootIndex:null,injection:r};t.exports=i},{}],77:[function(n,t){"use strict";var i={isBatchingUpdates:!1,batchedUpdates:function(){}};t.exports=i},{}],78:[function(n,t){"use strict";function l(n){var t,l;f.isValidElement(n)?void 0:c(!1);try{return r.injection.injectBatchingStrategy(o),l=e.createReactRootID(),t=i.getPooled(!1),t.perform(function(){var i=h(n,null),r=i.mountComponent(l,t,s);return v.addChecksumToMarkup(r)},null)}finally{i.release(t);r.injection.injectBatchingStrategy(u)}}function a(n){var t,l;f.isValidElement(n)?void 0:c(!1);try{return r.injection.injectBatchingStrategy(o),l=e.createReactRootID(),t=i.getPooled(!0),t.perform(function(){var i=h(n,null);return i.mountComponent(l,t,s)},null)}finally{i.release(t);r.injection.injectBatchingStrategy(u)}}var u=n(48),f=n(50),e=n(59),v=n(62),o=n(77),i=n(79),r=n(81),s=n(135),h=n(116),c=n(142);t.exports={renderToString:l,renderToStaticMarkup:a}},{116:116,135:135,142:142,48:48,50:50,59:59,62:62,77:77,79:79,81:81}],79:[function(n,t){"use strict";function i(n){this.reinitializeTransaction();this.renderToStaticMarkup=n;this.reactMountReady=r.getPooled(null);this.useCreateElement=!1}var u=n(24),r=n(6),f=n(98),e=n(23),o=n(134),s={initialize:function(){this.reactMountReady.reset()},close:o},h=[s],c={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){r.release(this.reactMountReady);this.reactMountReady=null}};e(i.prototype,f.Mixin,c);u.addPoolingTo(i);t.exports=i},{134:134,23:23,24:24,6:6,98:98}],80:[function(n,t){"use strict";function i(n){s.enqueueUpdate(n)}function r(n){var t=o.get(n);return t?t:null}var u=(n(34),n(50)),o=n(60),s=n(81),h=n(23),f=n(142),e=(n(151),{isMounted:function(n){var t=o.get(n);return t?!!t._renderedComponent:!1},enqueueCallback:function(n,t){"function"!=typeof t?f(!1):void 0;var u=r(n);return u?(u._pendingCallbacks?u._pendingCallbacks.push(t):u._pendingCallbacks=[t],void i(u)):null},enqueueCallbackInternal:function(n,t){"function"!=typeof t?f(!1):void 0;n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t];i(n)},enqueueForceUpdate:function(n){var t=r(n,"forceUpdate");t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(n,t){var u=r(n,"replaceState");u&&(u._pendingStateQueue=[t],u._pendingReplaceState=!0,i(u))},enqueueSetState:function(n,t){var u=r(n,"setState"),f;u&&(f=u._pendingStateQueue||(u._pendingStateQueue=[]),f.push(t),i(u))},enqueueSetProps:function(n,t){var i=r(n,"setProps");i&&e.enqueueSetPropsInternal(i,t)},enqueueSetPropsInternal:function(n,t){var r=n._topLevelWrapper;r?void 0:f(!1);var e=r._pendingElement||r._currentElement,o=e.props,s=h({},o.props,t);r._pendingElement=u.cloneAndReplaceProps(e,u.cloneAndReplaceProps(o,s));i(r)},enqueueReplaceProps:function(n,t){var i=r(n,"replaceProps");i&&e.enqueueReplacePropsInternal(i,t)},enqueueReplacePropsInternal:function(n,t){var r=n._topLevelWrapper,e,o;r?void 0:f(!1);e=r._pendingElement||r._currentElement;o=e.props;r._pendingElement=u.cloneAndReplaceProps(e,u.cloneAndReplaceProps(o,t));i(r)},enqueueElementInternal:function(n,t){n._pendingElement=t;i(n)}});t.exports=e},{142:142,151:151,23:23,34:34,50:50,60:60,81:81}],81:[function(n,t){"use strict";function l(){f.ReactReconcileTransaction&&u?void 0:r(!1)}function s(){this.reinitializeTransaction();this.dirtyComponentsLength=null;this.callbackQueue=e.getPooled();this.reconcileTransaction=f.ReactReconcileTransaction.getPooled(!1)}function p(n,t,i,r,f,e){l();u.batchedUpdates(n,t,i,r,f,e)}function w(n,t){return n._mountOrder-t._mountOrder}function b(n){var o=n.dirtyComponentsLength,u,t,f,e;for(o!==i.length?r(!1):void 0,i.sort(w),u=0;o>u;u++)if(t=i[u],f=t._pendingCallbacks,t._pendingCallbacks=null,nt.performUpdateIfNecessary(t,n.reconcileTransaction),f)for(e=0;e<f.length;e++)n.callbackQueue.enqueue(f[e],t.getPublicInstance())}function a(n){return l(),u.isBatchingUpdates?void i.push(n):void u.batchedUpdates(a,n)}function k(n,t){u.isBatchingUpdates?void 0:r(!1);c.enqueue(n,t);h=!0}var e=n(6),d=n(24),g=n(69),nt=n(74),v=n(98),tt=n(23),r=n(142),i=[],c=e.getPooled(),h=!1,u=null,it={initialize:function(){this.dirtyComponentsLength=i.length},close:function(){this.dirtyComponentsLength!==i.length?(i.splice(0,this.dirtyComponentsLength),o()):i.length=0}},rt={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},ut=[it,rt],o,y,f;tt(s.prototype,v.Mixin,{getTransactionWrappers:function(){return ut},destructor:function(){this.dirtyComponentsLength=null;e.release(this.callbackQueue);this.callbackQueue=null;f.ReactReconcileTransaction.release(this.reconcileTransaction);this.reconcileTransaction=null},perform:function(n,t,i){return v.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,n,t,i)}});d.addPoolingTo(s);o=function(){for(var n,t;i.length||h;)i.length&&(n=s.getPooled(),n.perform(b,null,n),s.release(n)),h&&(h=!1,t=c,c=e.getPooled(),t.notifyAll(),e.release(t))};o=g.measure("ReactUpdates","flushBatchedUpdates",o);y={injectReconcileTransaction:function(n){n?void 0:r(!1);f.ReactReconcileTransaction=n},injectBatchingStrategy:function(n){n?void 0:r(!1);"function"!=typeof n.batchedUpdates?r(!1):void 0;"boolean"!=typeof n.isBatchingUpdates?r(!1):void 0;u=n}};f={ReactReconcileTransaction:null,batchedUpdates:p,enqueueUpdate:a,flushBatchedUpdates:o,injection:y,asap:k};t.exports=f},{142:142,23:23,24:24,6:6,69:69,74:74,98:98}],82:[function(n,t){"use strict";t.exports="0.14.6"},{}],83:[function(n,t){"use strict";var u=n(10),i=u.injection.MUST_USE_ATTRIBUTE,r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},f={Properties:{clipPath:i,cx:i,cy:i,d:i,dx:i,dy:i,fill:i,fillOpacity:i,fontFamily:i,fontSize:i,fx:i,fy:i,gradientTransform:i,gradientUnits:i,markerEnd:i,markerMid:i,markerStart:i,offset:i,opacity:i,patternContentUnits:i,patternUnits:i,points:i,preserveAspectRatio:i,r:i,rx:i,ry:i,spreadMethod:i,stopColor:i,stopOpacity:i,stroke:i,strokeDasharray:i,strokeLinecap:i,strokeOpacity:i,strokeWidth:i,textAnchor:i,transform:i,version:i,viewBox:i,x1:i,x2:i,x:i,xlinkActuate:i,xlinkArcrole:i,xlinkHref:i,xlinkRole:i,xlinkShow:i,xlinkTitle:i,xlinkType:i,xmlBase:i,xmlLang:i,xmlSpace:i,y1:i,y2:i,y:i},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=f},{10:10}],84:[function(n,t){"use strict";function l(n){var t,i;return"selectionStart"in n&&p.hasSelectionCapabilities(n)?{start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(t=window.getSelection(),{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}):document.selection?(i=document.selection.createRange(),{parentElement:i.parentElement(),text:i.text,top:i.boundingTop,left:i.boundingLeft}):void 0}function s(n,t){var f,i;return o||null==r||r!==b()?null:(f=l(r),!u||!d(u,f))?(u=f,i=w.getPooled(h.select,e,n,t),i.type="select",i.target=r,v.accumulateTwoPhaseDispatches(i),i):null}var a=n(15),v=n(19),y=n(128),p=n(58),w=n(90),b=n(137),k=n(118),f=n(146),d=n(149),i=a.topLevelTypes,g=y.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:f({onSelect:null}),captured:f({onSelectCapture:null})},dependencies:[i.topBlur,i.topContextMenu,i.topFocus,i.topKeyDown,i.topMouseDown,i.topMouseUp,i.topSelectionChange]}},r=null,e=null,u=null,o=!1,c=!1,nt=f({onSelect:null}),tt={eventTypes:h,extractEvents:function(n,t,f,h,l){if(!c)return null;switch(n){case i.topFocus:(k(t)||"true"===t.contentEditable)&&(r=t,e=f,u=null);break;case i.topBlur:r=null;e=null;u=null;break;case i.topMouseDown:o=!0;break;case i.topContextMenu:case i.topMouseUp:return o=!1,s(h,l);case i.topSelectionChange:if(g)break;case i.topKeyDown:case i.topKeyUp:return s(h,l)}return null},didPutListener:function(n,t){t===nt&&(c=!0)}};t.exports=tt},{118:118,128:128,137:137,146:146,149:149,15:15,19:19,58:58,90:90}],85:[function(n,t){"use strict";var i=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*i)}};t.exports=r},{}],86:[function(n,t){"use strict";var h=n(15),c=n(127),l=n(19),a=n(63),v=n(87),y=n(90),p=n(91),w=n(93),b=n(94),k=n(89),d=n(95),g=n(96),nt=n(97),tt=n(134),it=n(109),rt=n(142),i=n(146),u=h.topLevelTypes,r={abort:{phasedRegistrationNames:{bubbled:i({onAbort:!0}),captured:i({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:i({onBlur:!0}),captured:i({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:i({onCanPlay:!0}),captured:i({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:i({onCanPlayThrough:!0}),captured:i({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:i({onClick:!0}),captured:i({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:i({onContextMenu:!0}),captured:i({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:i({onCopy:!0}),captured:i({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:i({onCut:!0}),captured:i({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:i({onDoubleClick:!0}),captured:i({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:i({onDrag:!0}),captured:i({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:i({onDragEnd:!0}),captured:i({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:i({onDragEnter:!0}),captured:i({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:i({onDragExit:!0}),captured:i({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:i({onDragLeave:!0}),captured:i({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:i({onDragOver:!0}),captured:i({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:i({onDragStart:!0}),captured:i({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:i({onDrop:!0}),captured:i({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:i({onDurationChange:!0}),captured:i({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:i({onEmptied:!0}),captured:i({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:i({onEncrypted:!0}),captured:i({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:i({onEnded:!0}),captured:i({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:i({onError:!0}),captured:i({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:i({onFocus:!0}),captured:i({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:i({onInput:!0}),captured:i({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:i({onKeyDown:!0}),captured:i({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:i({onKeyPress:!0}),captured:i({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:i({onKeyUp:!0}),captured:i({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:i({onLoad:!0}),captured:i({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:i({onLoadedData:!0}),captured:i({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:i({onLoadedMetadata:!0}),captured:i({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:i({onLoadStart:!0}),captured:i({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:i({onMouseDown:!0}),captured:i({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:i({onMouseMove:!0}),captured:i({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:i({onMouseOut:!0}),captured:i({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:i({onMouseOver:!0}),captured:i({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:i({onMouseUp:!0}),captured:i({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:i({onPaste:!0}),captured:i({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:i({onPause:!0}),captured:i({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:i({onPlay:!0}),captured:i({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:i({onPlaying:!0}),captured:i({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:i({onProgress:!0}),captured:i({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:i({onRateChange:!0}),captured:i({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:i({onReset:!0}),captured:i({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:i({onScroll:!0}),captured:i({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:i({onSeeked:!0}),captured:i({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:i({onSeeking:!0}),captured:i({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:i({onStalled:!0}),captured:i({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:i({onSubmit:!0}),captured:i({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:i({onSuspend:!0}),captured:i({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:i({onTimeUpdate:!0}),captured:i({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:i({onTouchCancel:!0}),captured:i({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:i({onTouchEnd:!0}),captured:i({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:i({onTouchMove:!0}),captured:i({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:i({onTouchStart:!0}),captured:i({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:i({onVolumeChange:!0}),captured:i({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:i({onWaiting:!0}),captured:i({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:i({onWheel:!0}),captured:i({onWheelCapture:!0})}}},e={topAbort:r.abort,topBlur:r.blur,topCanPlay:r.canPlay,topCanPlayThrough:r.canPlayThrough,topClick:r.click,topContextMenu:r.contextMenu,topCopy:r.copy,topCut:r.cut,topDoubleClick:r.doubleClick,topDrag:r.drag,topDragEnd:r.dragEnd,topDragEnter:r.dragEnter,topDragExit:r.dragExit,topDragLeave:r.dragLeave,topDragOver:r.dragOver,topDragStart:r.dragStart,topDrop:r.drop,topDurationChange:r.durationChange,topEmptied:r.emptied,topEncrypted:r.encrypted,topEnded:r.ended,topError:r.error,topFocus:r.focus,topInput:r.input,topKeyDown:r.keyDown,topKeyPress:r.keyPress,topKeyUp:r.keyUp,topLoad:r.load,topLoadedData:r.loadedData,topLoadedMetadata:r.loadedMetadata,topLoadStart:r.loadStart,topMouseDown:r.mouseDown,topMouseMove:r.mouseMove,topMouseOut:r.mouseOut,topMouseOver:r.mouseOver,topMouseUp:r.mouseUp,topPaste:r.paste,topPause:r.pause,topPlay:r.play,topPlaying:r.playing,topProgress:r.progress,topRateChange:r.rateChange,topReset:r.reset,topScroll:r.scroll,topSeeked:r.seeked,topSeeking:r.seeking,topStalled:r.stalled,topSubmit:r.submit,topSuspend:r.suspend,topTimeUpdate:r.timeUpdate,topTouchCancel:r.touchCancel,topTouchEnd:r.touchEnd,topTouchMove:r.touchMove,topTouchStart:r.touchStart,topVolumeChange:r.volumeChange,topWaiting:r.waiting,topWheel:r.wheel},o;for(o in e)e[o].dependencies=[o];var s=i({onClick:null}),f={},ut={eventTypes:r,extractEvents:function(n,t,i,r,f){var h=e[n],o,s;if(!h)return null;switch(n){case u.topAbort:case u.topCanPlay:case u.topCanPlayThrough:case u.topDurationChange:case u.topEmptied:case u.topEncrypted:case u.topEnded:case u.topError:case u.topInput:case u.topLoad:case u.topLoadedData:case u.topLoadedMetadata:case u.topLoadStart:case u.topPause:case u.topPlay:case u.topPlaying:case u.topProgress:case u.topRateChange:case u.topReset:case u.topSeeked:case u.topSeeking:case u.topStalled:case u.topSubmit:case u.topSuspend:case u.topTimeUpdate:case u.topVolumeChange:case u.topWaiting:o=y;break;case u.topKeyPress:if(0===it(r))return null;case u.topKeyDown:case u.topKeyUp:o=w;break;case u.topBlur:case u.topFocus:o=p;break;case u.topClick:if(2===r.button)return null;case u.topContextMenu:case u.topDoubleClick:case u.topMouseDown:case u.topMouseMove:case u.topMouseOut:case u.topMouseOver:case u.topMouseUp:o=b;break;case u.topDrag:case u.topDragEnd:case u.topDragEnter:case u.topDragExit:case u.topDragLeave:case u.topDragOver:case u.topDragStart:case u.topDrop:o=k;break;case u.topTouchCancel:case u.topTouchEnd:case u.topTouchMove:case u.topTouchStart:o=d;break;case u.topScroll:o=g;break;case u.topWheel:o=nt;break;case u.topCopy:case u.topCut:case u.topPaste:o=v}return o?void 0:rt(!1),s=o.getPooled(h,i,r,f),l.accumulateTwoPhaseDispatches(s),s},didPutListener:function(n,t){if(t===s){var i=a.getNode(n);f[n]||(f[n]=c.listen(i,"click",tt))}},willDeleteListener:function(n,t){t===s&&(f[n].remove(),delete f[n])}};t.exports=ut},{109:109,127:127,134:134,142:142,146:146,15:15,19:19,63:63,87:87,89:89,90:90,91:91,93:93,94:94,95:95,96:96,97:97}],87:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(90),u={clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}};r.augmentClass(i,u);t.exports=i},{90:90}],88:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(90);r.augmentClass(i,{data:null});t.exports=i},{90:90}],89:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(94);r.augmentClass(i,{dataTransfer:null});t.exports=i},{94:94}],90:[function(n,t){"use strict";function r(n,t,r,u){var e,f,o,s;this.dispatchConfig=n;this.dispatchMarker=t;this.nativeEvent=r;this.target=u;this.currentTarget=u;e=this.constructor.Interface;for(f in e)e.hasOwnProperty(f)&&(o=e[f],this[f]=o?o(r):r[f]);s=null!=r.defaultPrevented?r.defaultPrevented:r.returnValue===!1;this.isDefaultPrevented=s?i.thatReturnsTrue:i.thatReturnsFalse;this.isPropagationStopped=i.thatReturnsFalse}var u=n(24),f=n(23),i=n(134),e=(n(151),{type:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});f(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface,n;for(n in t)this[n]=null;this.dispatchConfig=null;this.dispatchMarker=null;this.nativeEvent=null}});r.Interface=e;r.augmentClass=function(n,t){var i=this,r=Object.create(i.prototype);f(r,n.prototype);n.prototype=r;n.prototype.constructor=n;n.Interface=f({},i.Interface,t);n.augmentClass=i.augmentClass;u.addPoolingTo(n,u.fourArgumentPooler)};u.addPoolingTo(r,u.fourArgumentPooler);t.exports=r},{134:134,151:151,23:23,24:24}],91:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(96);r.augmentClass(i,{relatedTarget:null});t.exports=i},{96:96}],92:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(90);r.augmentClass(i,{data:null});t.exports=i},{90:90}],93:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(96),u=n(109),f=n(110),e=n(111),o={key:f,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:e,charCode:function(n){return"keypress"===n.type?u(n):0},keyCode:function(n){return"keydown"===n.type||"keyup"===n.type?n.keyCode:0},which:function(n){return"keypress"===n.type?u(n):"keydown"===n.type||"keyup"===n.type?n.keyCode:0}};r.augmentClass(i,o);t.exports=i},{109:109,110:110,111:111,96:96}],94:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(96),u=n(99),f=n(111),e={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:f,button:function(n){var t=n.button;return"which"in n?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(n){return n.relatedTarget||(n.fromElement===n.srcElement?n.toElement:n.fromElement)},pageX:function(n){return"pageX"in n?n.pageX:n.clientX+u.currentScrollLeft},pageY:function(n){return"pageY"in n?n.pageY:n.clientY+u.currentScrollTop}};r.augmentClass(i,e);t.exports=i},{111:111,96:96,99:99}],95:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(96),u=n(111),f={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:u};r.augmentClass(i,f);t.exports=i},{111:111,96:96}],96:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(90),u=n(112),f={view:function(n){var t,i;return n.view?n.view:(t=u(n),null!=t&&t.window===t)?t:(i=t.ownerDocument,i?i.defaultView||i.parentWindow:window)},detail:function(n){return n.detail||0}};r.augmentClass(i,f);t.exports=i},{112:112,90:90}],97:[function(n,t){"use strict";function i(n,t,i,u){r.call(this,n,t,i,u)}var r=n(94),u={deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(i,u);t.exports=i},{94:94}],98:[function(n,t){"use strict";var r=n(142),u={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers();this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[];this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(n,t,i,u,f,e,o,s){this.isInTransaction()?r(!1):void 0;var h,c;try{this._isInTransaction=!0;h=!0;this.initializeAll(0);c=n.call(t,i,u,f,e,o,s);h=!1}finally{try{if(h)try{this.closeAll(0)}catch(l){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(n){for(var r,u=this.transactionWrappers,t=n;t<u.length;t++){r=u[t];try{this.wrapperInitData[t]=i.OBSERVED_ERROR;this.wrapperInitData[t]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[t]===i.OBSERVED_ERROR)try{this.initializeAll(t+1)}catch(f){}}}},closeAll:function(n){var u,t,f,e,o;for(this.isInTransaction()?void 0:r(!1),u=this.transactionWrappers,t=n;t<u.length;t++){e=u[t];o=this.wrapperInitData[t];try{f=!0;o!==i.OBSERVED_ERROR&&e.close&&e.close.call(this,o);f=!1}finally{if(f)try{this.closeAll(t+1)}catch(s){}}}this.wrapperInitData.length=0}},i={Mixin:u,OBSERVED_ERROR:{}};t.exports=i},{142:142}],99:[function(n,t){"use strict";var i={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(n){i.currentScrollLeft=n.x;i.currentScrollTop=n.y}};t.exports=i},{}],100:[function(n,t){"use strict";function i(n,t){if(null==t?r(!1):void 0,null==n)return t;var i=Array.isArray(n),u=Array.isArray(t);return i&&u?(n.push.apply(n,t),n):i?(n.push(t),n):u?[n].concat(t):[n,t]}var r=n(142);t.exports=i},{142:142}],101:[function(n,t){"use strict";function r(n){for(var r=1,u=0,t=0,f=n.length,e=-4&f;e>t;){for(;t<Math.min(t+4096,e);t+=4)u+=(r+=n.charCodeAt(t))+(r+=n.charCodeAt(t+1))+(r+=n.charCodeAt(t+2))+(r+=n.charCodeAt(t+3));r%=i;u%=i}for(;f>t;t++)u+=r+=n.charCodeAt(t);return r%=i,u%=i,r|u<<16}var i=65521;t.exports=r},{}],102:[function(n,t){"use strict";t.exports=!1},{}],103:[function(n,t){"use strict";function r(n,t){var u=null==t||"boolean"==typeof t||""===t,r;return u?"":(r=isNaN(t),r||0===t||i.hasOwnProperty(n)&&i[n]?""+t:("string"==typeof t&&(t=t.trim()),t+"px"))}var u=n(4),i=u.isUnitlessNumber;t.exports=r},{4:4}],104:[function(n,t){"use strict";function i(n,t,i,r,u){return u}n(23);n(151);t.exports=i},{151:151,23:23}],105:[function(n,t){"use strict";function i(n){return u[n]}function r(n){return(""+n).replace(f,i)}var u={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},f=/[&><"']/g;t.exports=r},{}],106:[function(n,t){"use strict";function r(n){return null==n?null:1===n.nodeType?n:u.has(n)?f.getNodeFromInstance(n):(null!=n.render&&"function"==typeof n.render?i(!1):void 0,void i(!1))}var u=(n(34),n(60)),f=n(63),i=n(142);n(151);t.exports=r},{142:142,151:151,34:34,60:60,63:63}],107:[function(n,t){"use strict";function i(n,t,i){var r=n,u=void 0===r[i];u&&null!=t&&(r[i]=t)}function r(n){if(null==n)return n;var t={};return u(n,i,t),t}var u=n(125);n(151);t.exports=r},{125:125,151:151}],108:[function(n,t){"use strict";var i=function(n,t,i){Array.isArray(n)?n.forEach(t,i):n&&t.call(i,n)};t.exports=i},{}],109:[function(n,t){"use strict";function i(n){var t,i=n.keyCode;return"charCode"in n?(t=n.charCode,0===t&&13===i&&(t=13)):t=i,t>=32||13===t?t:0}t.exports=i},{}],110:[function(n,t){"use strict";function i(n){var t,i;return n.key&&(t=u[n.key]||n.key,"Unidentified"!==t)?t:"keypress"===n.type?(i=r(n),13===i?"Enter":String.fromCharCode(i)):"keydown"===n.type||"keyup"===n.type?f[n.keyCode]||"Unidentified":""}var r=n(109),u={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=i},{109:109}],111:[function(n,t){"use strict";function i(n){var r=this,t=r.nativeEvent,i;return t.getModifierState?t.getModifierState(n):(i=u[n],i?!!t[i]:!1)}function r(){return i}var u={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},{}],112:[function(n,t){"use strict";function i(n){var t=n.target||n.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=i},{}],113:[function(n,t){"use strict";function r(n){var t=n&&(i&&n[i]||n[u]);if("function"==typeof t)return t}var i="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";t.exports=r},{}],114:[function(n,t){"use strict";function i(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function r(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function u(n,t){for(var u=i(n),f=0,e=0;u;){if(3===u.nodeType){if(e=f+u.textContent.length,t>=f&&e>=t)return{node:u,offset:t-f};f=e}u=i(r(u))}}t.exports=u},{}],115:[function(n,t){"use strict";function r(){return!i&&u.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var u=n(128),i=null;t.exports=r},{128:128}],116:[function(n,t){"use strict";function e(n){return"function"==typeof n&&"undefined"!=typeof n.prototype&&"function"==typeof n.prototype.mountComponent&&"function"==typeof n.prototype.receiveComponent}function i(n){var o,t;return null===n||n===!1?o=new s(i):"object"==(typeof n=="undefined"?"undefined":_typeof(n))?(t=n,!t||"function"!=typeof t.type&&"string"!=typeof t.type?u(!1):void 0,o="string"==typeof t.type?r.createInternalComponent(t):e(t.type)?new t.type(t):new f):"string"==typeof n||"number"==typeof n?o=r.createInstanceForText(n):u(!1),o.construct(n),o._mountIndex=0,o._mountImage=null,o}var o=n(33),s=n(52),r=n(66),h=n(23),u=n(142),f=(n(151),function(){});h(f.prototype,o.Mixin,{_instantiateReactComponent:i});t.exports=i},{142:142,151:151,23:23,33:33,52:52,66:66}],117:[function(n,t){"use strict";function u(n,t){var f,u,e;return!r.canUseDOM||t&&!("addEventListener"in document)?!1:(f="on"+n,u=f in document,u||(e=document.createElement("div"),e.setAttribute(f,"return;"),u="function"==typeof e[f]),!u&&i&&"wheel"===n&&(u=document.implementation.hasFeature("Events.wheel","3.0")),u)}var i,r=n(128);r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);t.exports=u},{128:128}],118:[function(n,t){"use strict";function i(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&("input"===t&&r[n.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=i},{}],119:[function(n,t){"use strict";function i(n){return r.isValidElement(n)?void 0:u(!1),n}var r=n(50),u=n(142);t.exports=i},{142:142,50:50}],120:[function(n,t){"use strict";function i(n){return'"'+r(n)+'"'}var r=n(105);t.exports=i},{105:105}],121:[function(n,t){"use strict";var i=n(63);t.exports=i.renderSubtreeIntoContainer},{63:63}],122:[function(n,t){"use strict";var u=n(128),f=/^[ \r\n\t\f]/,e=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(n,t){n.innerHTML=t},r;("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(n,t){MSApp.execUnsafeLocalFunction(function(){n.innerHTML=t})}),u.canUseDOM)&&(r=document.createElement("div"),r.innerHTML=" ",""===r.innerHTML&&(i=function(n,t){if(n.parentNode&&n.parentNode.replaceChild(n,n),f.test(t)||"<"===t[0]&&e.test(t)){n.innerHTML=String.fromCharCode(65279)+t;var i=n.firstChild;1===i.data.length?n.removeChild(i):i.deleteData(0,1)}else n.innerHTML=t}));t.exports=i},{128:128}],123:[function(n,t){"use strict";var r=n(128),u=n(105),f=n(122),i=function(n,t){n.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(n,t){f(n,u(t))}));t.exports=i},{105:105,122:122,128:128}],124:[function(n,t){"use strict";function i(n,t){var u=null===n||n===!1,f=null===t||t===!1,r,i;return u||f?u===f:(r=typeof n=="undefined"?"undefined":_typeof(n),i=typeof t=="undefined"?"undefined":_typeof(t),"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&n.type===t.type&&n.key===t.key)}t.exports=i},{}],125:[function(n,t){"use strict";function o(n){return y[n]}function i(n,t){return n&&null!=n.key?u(n.key):t.toString(36)}function s(n){return(""+n).replace(p,o)}function u(n){return"$"+s(n)}function r(n,t,o,s){var y=typeof n=="undefined"?"undefined":_typeof(n),h,l,p,b,w,k,d,nt,tt,g;if(("undefined"===y||"boolean"===y)&&(n=null),null===n||"string"===y||"number"===y||c.isValidElement(n))return o(s,n,""===t?f+i(n,0):t),1;if(p=0,b=""===t?f:t+e,Array.isArray(n))for(w=0;w<n.length;w++)h=n[w],l=b+i(h,w),p+=r(h,l,o,s);else if(k=a(n),k)if(nt=k.call(n),k!==n.entries)for(tt=0;!(d=nt.next()).done;)h=d.value,l=b+i(h,tt++),p+=r(h,l,o,s);else for(;!(d=nt.next()).done;)g=d.value,g&&(h=g[1],l=b+u(g[0])+e+i(h,0),p+=r(h,l,o,s));else"object"===y&&(String(n),v(!1));return p}function h(n,t,i){return null==n?0:r(n,"",t,i)}var c=(n(34),n(50)),l=n(59),a=n(113),v=n(142),f=(n(151),l.SEPARATOR),e=":",y={"=":"=0",".":"=1",":":"=2"},p=/[=.:]/g;t.exports=h},{113:113,142:142,151:151,34:34,50:50,59:59}],126:[function(n,t){"use strict";var i=(n(23),n(134)),r=(n(151),i);t.exports=r},{134:134,151:151,23:23}],127:[function(n,t){"use strict";var i=n(134),r={listen:function(n,t,i){return n.addEventListener?(n.addEventListener(t,i,!1),{remove:function(){n.removeEventListener(t,i,!1)}}):n.attachEvent?(n.attachEvent("on"+t,i),{remove:function(){n.detachEvent("on"+t,i)}}):void 0},capture:function(n,t,r){return n.addEventListener?(n.addEventListener(t,r,!0),{remove:function(){n.removeEventListener(t,r,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},{134:134}],128:[function(n,t){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},{}],129:[function(n,t){"use strict";function i(n){return n.replace(r,function(n,t){return t.toUpperCase()})}var r=/-(.)/g;t.exports=i},{}],130:[function(n,t){"use strict";function i(n){return r(n.replace(u,"ms-"))}var r=n(129),u=/^-ms-/;t.exports=i},{129:129}],131:[function(n,t){"use strict";function r(n,t){var f=!0,r,u;n:for(;f;){if(r=n,u=t,f=!1,r&&u){if(r===u)return!0;if(i(r))return!1;if(i(u)){n=r;t=u.parentNode;f=!0;continue n}return r.contains?r.contains(u):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(u)):!1}return!1}}var i=n(144);t.exports=r},{144:144}],132:[function(n,t){"use strict";function i(n){return!!n&&("object"==(typeof n=="undefined"?"undefined":_typeof(n))||"function"==typeof n)&&"length"in n&&!("setInterval"in n)&&"number"!=typeof n.nodeType&&(Array.isArray(n)||"callee"in n||"item"in n)}function r(n){return i(n)?Array.isArray(n)?n.slice():u(n):[n]}var u=n(150);t.exports=r},{150:150}],133:[function(n,t){"use strict";function f(n){var t=n.match(h);return t&&t[1].toLowerCase()}function e(n,t){var e=u,h,o,l,c,a;if(u?void 0:r(!1),h=f(n),o=h&&s(h),o)for(e.innerHTML=o[1]+n+o[2],l=o[0];l--;)e=e.lastChild;else e.innerHTML=n;for(c=e.getElementsByTagName("script"),c.length&&(t?void 0:r(!1),i(c).forEach(t)),a=i(e.childNodes);e.lastChild;)e.removeChild(e.lastChild);return a}var o=n(128),i=n(132),s=n(138),r=n(142),u=o.canUseDOM?document.createElement("div"):null,h=/^\s*<(\w+)/;t.exports=e},{128:128,132:132,138:138,142:142}],134:[function(n,t){"use strict";function r(n){return function(){return n}}function i(){}i.thatReturns=r;i.thatReturnsFalse=r(!1);i.thatReturnsTrue=r(!0);i.thatReturnsNull=r(null);i.thatReturnsThis=function(){return this};i.thatReturnsArgument=function(n){return n};t.exports=i},{}],135:[function(n,t){"use strict";t.exports={}},{}],136:[function(n,t){"use strict";function i(n){try{n.focus()}catch(t){}}t.exports=i},{}],137:[function(n,t){"use strict";function i(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(n){return document.body}}t.exports=i},{}],138:[function(n,t){"use strict";function s(n){return u?void 0:c(!1),f.hasOwnProperty(n)||(n="*"),r.hasOwnProperty(n)||(u.innerHTML="*"===n?"<link />":"<"+n+"><\/"+n+">",r[n]=!u.firstChild),r[n]?f[n]:null}var h=n(128),c=n(142),u=h.canUseDOM?document.createElement("div"):null,r={},e=[1,'<select multiple="true">',"<\/select>"],i=[1,"<table>","<\/table>"],o=[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],l=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"<\/svg>"],f={"*":[1,"?<div>","<\/div>"],area:[1,"<map>","<\/map>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],legend:[1,"<fieldset>","<\/fieldset>"],param:[1,"<object>","<\/object>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],optgroup:e,option:e,caption:i,colgroup:i,tbody:i,tfoot:i,thead:i,td:o,th:o};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(n){f[n]=l;r[n]=!0});t.exports=s},{128:128,142:142}],139:[function(n,t){"use strict";function i(n){return n===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:n.scrollLeft,y:n.scrollTop}}t.exports=i},{}],140:[function(n,t){"use strict";function i(n){return n.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=i},{}],141:[function(n,t){"use strict";function i(n){return r(n).replace(u,"-ms-")}var r=n(140),u=/^ms-/;t.exports=i},{140:140}],142:[function(n,t){"use strict";function i(n,t,i,r,u,f,e,o){var s,h,c;if(!n){void 0===t?s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(h=[i,r,u,f,e,o],c=0,s=new Error(t.replace(/%s/g,function(){return h[c++]})),s.name="Invariant Violation");throw s.framesToPop=1,s;}}t.exports=i},{}],143:[function(n,t){"use strict";function i(n){return!(!n||!("function"==typeof Node?n instanceof Node:"object"==(typeof n=="undefined"?"undefined":_typeof(n))&&"number"==typeof n.nodeType&&"string"==typeof n.nodeName))}t.exports=i},{}],144:[function(n,t){"use strict";function i(n){return r(n)&&3==n.nodeType}var r=n(143);t.exports=i},{143:143}],145:[function(n,t){"use strict";var i=n(142),r=function(n){var t,r={};n instanceof Object&&!Array.isArray(n)?void 0:i(!1);for(t in n)n.hasOwnProperty(t)&&(r[t]=t);return r};t.exports=r},{142:142}],146:[function(n,t){"use strict";var i=function(n){var t;for(t in n)if(n.hasOwnProperty(t))return t;return null};t.exports=i},{}],147:[function(n,t){"use strict";function i(n,t,i){var f,u;if(!n)return null;f={};for(u in n)r.call(n,u)&&(f[u]=t.call(i,n[u],u,n));return f}var r=Object.prototype.hasOwnProperty;t.exports=i},{}],148:[function(n,t){"use strict";function i(n){var t={};return function(i){return t.hasOwnProperty(i)||(t[i]=n.call(this,i)),t[i]}}t.exports=i},{}],149:[function(n,t){"use strict";function i(n,t){var i,f,e,u;if(n===t)return!0;if("object"!=(typeof n=="undefined"?"undefined":_typeof(n))||null===n||"object"!=(typeof t=="undefined"?"undefined":_typeof(t))||null===t||(i=Object.keys(n),f=Object.keys(t),i.length!==f.length))return!1;for(e=r.bind(t),u=0;u<i.length;u++)if(!e(i[u])||n[i[u]]!==t[i[u]])return!1;return!0}var r=Object.prototype.hasOwnProperty;t.exports=i},{}],150:[function(n,t){"use strict";function r(n){var t=n.length,u,r;if(Array.isArray(n)||"object"!=(typeof n=="undefined"?"undefined":_typeof(n))&&"function"!=typeof n?i(!1):void 0,"number"!=typeof t?i(!1):void 0,0===t||t-1 in n?void 0:i(!1),n.hasOwnProperty)try{return Array.prototype.slice.call(n)}catch(f){}for(u=Array(t),r=0;t>r;r++)u[r]=n[r];return u}var i=n(142);t.exports=r},{142:142}],151:[function(n,t){"use strict";var i=n(134),r=i;t.exports=r},{134:134}]},{},[1])(1)});!function(n){if("object"==(typeof exports=="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=n(require("react"));else if("function"==typeof define&&define.amd)define(["react"],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.ReactDOM=n(t.React)}}(function(n){return n.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}),function(n){n.fn.extend({easyResponsiveTabs:function(t){var f={type:"default",width:"auto",fit:!0,closed:!1,tabidentify:"",activetab_bg:"white",inactive_bg:"#F5F5F5",active_border_color:"#c1c1c1",active_content_border_color:"#c1c1c1",activate:function(){}},t=n.extend(f,t),i=t,r=i.type,e=i.fit,c=i.width,o="vertical",s="accordion",u=window.location.hash,h=!!(window.history&&history.replaceState);n(this).bind("tabactivate",function(n,i){typeof t.activate=="function"&&t.activate.call(i,n)});this.each(function(){function b(){r==o&&i.addClass("resp-vtabs").addClass(t.tabidentify);e==!0;r==s&&(i.addClass("resp-easy-accordion").addClass(t.tabidentify),i.find(".resp-tabs-list").css("display","none"))}var i=n(this),v=i.find("ul.resp-tabs-list."+t.tabidentify),y=i.attr("id"),p,c,l,w,f,a;i.find("ul.resp-tabs-list."+t.tabidentify+" li").addClass("resp-tab-item").addClass(t.tabidentify);t.type=="vertical"&&v.css("margin-top","3px");i.find(".resp-tabs-container."+t.tabidentify).css("border-color",t.active_content_border_color);i.find(".resp-tabs-container."+t.tabidentify+" > div").addClass("resp-tab-content").addClass(t.tabidentify);b();i.find(".resp-tab-content."+t.tabidentify).before("<h2 class='resp-accordion "+t.tabidentify+"' role='tab'><span class='resp-arrow'><\/span><\/h2>");i.find(".resp-tab-content."+t.tabidentify).prev("h2").css({"background-color":t.inactive_bg,"border-color":t.active_border_color});c=0;i.find(".resp-accordion").each(function(){p=n(this);var r=i.find(".resp-tab-item:eq("+c+")"),u=i.find(".resp-accordion:eq("+c+")");u.append(r.html());u.data(r.data());p.attr("aria-controls",t.tabidentify+"_tab_item-"+c);c++});l=0;i.find(".resp-tab-item").each(function(){$tabItem=n(this);$tabItem.attr("aria-controls",t.tabidentify+"_tab_item-"+l);$tabItem.attr("role","tab");$tabItem.css({"background-color":t.inactive_bg,"border-color":"none"});var r=0;i.find(".resp-tab-content."+t.tabidentify).each(function(){w=n(this);w.attr("aria-labelledby",t.tabidentify+"_tab_item-"+r).css({"border-color":t.active_border_color});r++});l++});f=0;u!=""&&(a=u.match(new RegExp(y+"([0-9]+)")),a!==null&&a.length===2&&(f=parseInt(a[1],10)-1,f>l&&(f=0)));n(i.find(".resp-tab-item."+t.tabidentify)[f]).addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color});t.closed===!0||t.closed==="accordion"&&!v.is(":visible")||t.closed==="tabs"&&v.is(":visible")||(n(i.find(".resp-accordion."+t.tabidentify)[f]).addClass("resp-tab-active").css({"background-color":t.activetab_bg+" !important","border-color":t.active_border_color,background:"none"}),n(i.find(".resp-tab-content."+t.tabidentify)[f]).addClass("resp-tab-content-active").addClass(t.tabidentify).attr("style","display:block"));i.find("[role=tab]").each(function(){var r=n(this);r.click(function(){var r=n(this),f=r.attr("aria-controls"),o;if(r.hasClass("resp-accordion")&&r.hasClass("resp-tab-active"))return i.find(".resp-tab-content-active."+t.tabidentify).slideUp("",function(){n(this).addClass("resp-accordion-closed")}),r.removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),!1;if(!r.hasClass("resp-tab-active")&&r.hasClass("resp-accordion")?(i.find(".resp-tab-active."+t.tabidentify).removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),i.find(".resp-tab-content-active."+t.tabidentify).slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),i.find("[aria-controls="+f+"]").addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color}),i.find(".resp-tab-content[aria-labelledby = "+f+"]."+t.tabidentify).slideDown().addClass("resp-tab-content-active")):(i.find(".resp-tab-active."+t.tabidentify).removeClass("resp-tab-active").css({"background-color":t.inactive_bg,"border-color":"none"}),i.find(".resp-tab-content-active."+t.tabidentify).removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),i.find("[aria-controls="+f+"]").addClass("resp-tab-active").css({"background-color":t.activetab_bg,"border-color":t.active_border_color}),i.find(".resp-tab-content[aria-labelledby = "+f+"]."+t.tabidentify).addClass("resp-tab-content-active").attr("style","display:block")),r.trigger("tabactivate",r),h){var e=window.location.hash,s=f.split("tab_item-"),u="";e!=""?(o=new RegExp(y+"[0-9]+"),u=e.match(o)!=null?e.replace(o,u):e+"|"+u):u=""+u;history.replaceState(null,null,u)}})});n(window).resize(function(){i.find(".resp-accordion-closed").removeAttr("style")})})}})}(jQuery);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,r){var f,u=this;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous<\/button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(i);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(i).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;void 0!==document.mozHidden?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if("boolean"==typeof i)r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();"number"==typeof i?0===i&&0===u.$slides.length?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):!0===r?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();!0===r.options.rtl&&!1===r.options.vertical&&(t=-t);!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);!1===r.options.vertical?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=!1===r.options.vertical?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&null!==t&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==(typeof i=="undefined"?"undefined":_typeof(i))&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=!1===t.options.fade?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(!1===n.options.infinite&&(1===n.direction&&n.currentSlide+1===n.slideCount-1?n.direction=0:0===n.direction&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var i,r,t=this;if(!0===t.options.dots){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);!0===t.options.draggable&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var t,i,r,f,c,u,e,n=this,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;t<c;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var f,u,e,r=this,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if("window"===r.respondTo?e=h:"slider"===r.respondTo?e=s:"min"===r.respondTo&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(!1===r.originalSettings.mobileFirst?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));null!==u?null!==r.activeBreakpoint?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,"unslick"===r.breakpointSettings[u]?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||!1===o||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var f,e,o,r=this,u=n(t.currentTarget),s;switch(u.is("a")&&t.preventDefault(),u.is("li")||(u=u.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0,f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":e=0===f?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=0===f?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=0===t.data.index?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var t,i,r;if(t=this.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler));t.$slider.off("focus.slick blur.slick");!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow.off("keydown.slick",t.keyHandler)));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var t,n=this;n.options.rows>1&&((t=n.$slides.children().children()).removeAttr("style"),n.$slider.empty().append(t))};t.prototype.clickHandler=function(n){!1===this.shouldClick&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;!1===t.cssTransitions?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;null!==n&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())},0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(!0===n.options.infinite)if(n.slideCount<=n.options.slidesToShow)++t;else for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(!0===n.options.centerMode)t=n.slideCount;else if(n.options.asNavFor)for(;i<n.slideCount;)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var f,r,i,t=this,u=0;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),!0===t.options.infinite?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),!0===t.options.centerMode&&t.slideCount<=t.options.slidesToShow?t.slideOffset=t.slideWidth*Math.floor(t.options.slidesToShow)/2-t.slideWidth*t.slideCount/2:!0===t.options.centerMode&&!0===t.options.infinite?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:!0===t.options.centerMode&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=!1===t.options.vertical?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,!0===t.options.variableWidth&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===t.options.centerMode&&(i=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=!0===t.options.rtl?i[0]?-1*(t.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,f+=(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){return this.options[n]};t.prototype.getNavigableIndexes=function(){var i,n=this,t=0,r=0,u=[];for(!1===n.options.infinite?i=n.slideCount:(t=-1*n.options.slidesToScroll,r=-1*n.options.slidesToScroll,i=2*n.slideCount);t<i;)u.push(t),t=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var i,r,t=this;return r=!0===t.options.centerMode?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,!0===t.options.swipeToSlide?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>-1*t.swipeLeft)return i=f,!1}),Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){this.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);!0===i.options.accessibility&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this,f=Math.ceil(t.slideCount/t.options.slidesToShow),r=t.getNavigableIndexes().filter(function(n){return n>=0&&n<t.slideCount}),i,u;for(t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var u=r.indexOf(i);n(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1});-1!==u&&n(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+u})}),t.$dots.attr("role","tablist").find("li").each(function(i){var u=r[i];n(this).attr({role:"presentation"});n(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+u,"aria-label":i+1+" of "+f,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end()),i=t.currentSlide,u=i+t.options.slidesToShow;i<u;i++)t.$slides.eq(i).attr("tabindex",0);t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide),n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide),!0===n.options.accessibility&&(n.$prevArrow.on("keydown.slick",n.keyHandler),n.$nextArrow.on("keydown.slick",n.keyHandler)))};t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler));!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1)))};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(t.setPosition)};t.prototype.initUI=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===n.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===n.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),f=n(this).attr("data-srcset"),e=n(this).attr("data-sizes")||t.$slider.attr("data-sizes"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){f&&(i.attr("srcset",f),e&&i.attr("sizes",e));i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var u,i,r,t=this;if(!0===t.options.centerMode?!0===t.options.infinite?r=(i=t.currentSlide+(t.options.slidesToShow/2+1))+t.options.slidesToShow+2:(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),r=t.options.slidesToShow/2+1+2+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,r=Math.ceil(i+t.options.slidesToShow),!0===t.options.fade&&(i>0&&i--,r<=t.slideCount&&r++)),u=t.$slider.find(".slick-slide").slice(i,r),"anticipated"===t.options.lazyLoad)for(var e=i-1,o=r,s=t.$slider.find(".slick-slide"),h=0;h<t.options.slidesToScroll;h++)e<0&&(e=t.slideCount-1),u=(u=u.add(s.eq(e))).add(s.eq(o)),e--,o++;f(u);t.slideCount<=t.options.slidesToShow?f(t.$slider.find(".slick-slide")):t.currentSlide>=t.slideCount-t.options.slidesToShow?f(t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow)):0===t.currentSlide&&f(t.$slider.find(".slick-cloned").slice(-1*t.options.slidesToShow))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();"progressive"===n.options.lazyLoad&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.autoplay||n(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))};t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var r,u,f,e,o,i=this,s=n("img[data-lazy]",i.$slider);s.length?(r=s.first(),u=r.attr("data-lazy"),f=r.attr("data-srcset"),e=r.attr("data-sizes")||i.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){f&&(r.attr("srcset",f),e&&r.attr("sizes",e));r.attr("src",u).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");!0===i.options.adaptiveHeight&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},o.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var r,u,i=this;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var u,f,i,t=this,r=t.options.responsive||null;if("array"===n.type(r)&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,r.hasOwnProperty(u)){for(f=r[u].breakpoint;i>=0;)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide");t.slideCount=t.$slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0);t.registerBreakpoints();t.setProps();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.cleanUpSlideEvents();t.initSlideEvents();t.checkResponsive(!1,!0);!0===t.options.focusOnSelect&&n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;if(n="boolean"==typeof n?!0===(t=n)?0:r.slideCount-1:!0===t?--n:n,r.slideCount<1||n<0||n>r.slideCount-1)return!1;r.unload();!0===i?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove();r.$slides=r.$slideTrack.children(this.options.slide);r.$slideTrack.children(this.options.slide).detach();r.$slideTrack.append(r.$slides);r.$slidesCache=r.$slides;r.reinit()};t.prototype.setCSS=function(n){var r,u,t=this,i={};!0===t.options.rtl&&(n=-n);r="left"==t.positionProp?Math.ceil(n)+"px":"0px";u="top"==t.positionProp?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;!1===t.transformsEnabled?t.$slideTrack.css(i):(i={},!1===t.cssTransitions?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;!1===n.options.vertical?!0===n.options.centerMode&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),!0===n.options.centerMode&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();!1===n.options.vertical&&!1===n.options.variableWidth?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):!0===n.options.variableWidth?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();!1===n.options.variableWidth&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var i,t=this;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;!0===t.options.rtl?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;1===n.options.slidesToShow&&!0===n.options.adaptiveHeight&&!1===n.options.vertical&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var u,f,e,i,r,t=this,o=!1;if("object"===n.type(arguments[0])?(e=arguments[0],o=arguments[1],r="multiple"):"string"===n.type(arguments[0])&&(e=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===n.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)t.options[e]=i;else if("multiple"===r)n.each(e,function(n,i){t.options[n]=i});else if("responsive"===r)for(f in i)if("array"!==n.type(t.options.responsive))t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();!1===n.options.fade?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=!0===n.options.vertical?"top":"left";"top"===n.positionProp?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===n.options.useCSS&&(n.cssTransitions=!0);n.options.fade&&("number"==typeof n.options.zIndex?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);void 0!==t.OTransform&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.MozTransform&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(n.animType=!1));void 0!==t.webkitTransform&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(n.animType=!1));void 0!==t.msTransform&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",void 0===t.msTransform&&(n.animType=!1));void 0!==t.transform&&!1!==n.animType&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&null!==n.animType&&!1!==n.animType};t.prototype.setSlideClasses=function(n){var u,i,r,f,t=this;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");!0===t.options.centerMode?(u=Math.floor(t.options.slidesToShow/2),!0===t.options.infinite&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),0===n?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=!0===t.options.infinite?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==t.options.lazyLoad&&"anticipated"!==t.options.lazyLoad||t.lazyLoad()};t.prototype.setupInfinite=function(){var i,r,u,t=this;if(!0===t.options.fade&&(t.options.centerMode=!1),!0===t.options.infinite&&!1===t.options.fade&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=!0===t.options.centerMode?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<u+t.slideCount;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));r||(r=0);i.slideCount<=i.options.slidesToShow?i.slideHandler(r,!1,!0):i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,e,o,h=null,r=this;if(t=t||!1,!(!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===n))if(!1===t&&r.asNavFor(n),u=n,h=r.getLeft(u),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(n<0||n>r.getDotCount()*r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else if(!1===r.options.infinite&&!0===r.options.centerMode&&(n<0||n>r.slideCount-r.options.slidesToScroll))!1===r.options.fade&&(u=r.currentSlide,!0!==i?r.animateSlide(e,function(){r.postSlide(u)}):r.postSlide(u));else{if(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=u<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(o=(o=r.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade)return!0!==i?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f),void r.animateHeight();!0!==i?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f)}};t.prototype.startLoad=function(){var n=this;!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());!0===n.options.dots&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),(n=Math.round(180*u/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===t.options.rtl?"left":"right":n<=360&&n>=315?!1===t.options.rtl?"left":"right":n>=135&&n<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==n.type.indexOf("mouse")))switch(t.touchObject.fingerCount=n.originalEvent&&void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var f,e,r,u,i,o,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,!(!t.dragging||t.scrolling||i&&1!==i.length)&&(f=t.getLeft(t.currentSlide),t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2))),!t.options.verticalSwiping&&!t.swiping&&o>4?(t.scrolling=!0,!1):(!0===t.options.verticalSwiping&&(t.touchObject.swipeLength=o),e=t.swipeDirection(),void 0!==n.originalEvent&&t.touchObject.swipeLength>4&&(t.swiping=!0,n.preventDefault()),u=(!1===t.options.rtl?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),!0===t.options.verticalSwiping&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,!1===t.options.infinite&&(0===t.currentSlide&&"right"===e||t.currentSlide>=t.getDotCount()&&"left"===e)&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=!1===t.options.vertical?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,!0===t.options.verticalSwiping&&(t.swipeLeft=f+r*u),!0!==t.options.fade&&!1!==t.options.touchMove&&(!0===t.animating?(t.swipeLeft=null,!1):void t.setCSS(t.swipeLeft))))};t.prototype.swipeStart=function(n){var i,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;null!==n.$slidesCache&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var n=this;Math.floor(n.options.slidesToShow/2);!0===n.options.arrows&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===n.currentSlide?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&!1===n.options.centerMode?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&!0===n.options.centerMode&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;null!==n.$dots&&(n.$dots.find("li").removeClass("slick-active").end(),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var u,n=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=n.length,i=0;i<e;i++)if("object"==(typeof r=="undefined"?"undefined":_typeof(r))||void 0===r?n[i].slick=new t(n[i],r):u=n[i].slick[r].apply(n[i].slick,f),void 0!==u)return u;return n}});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==(typeof exports=="undefined"?"undefined":_typeof(exports))?require("jquery"):jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;!function(t){function e(n,t){return nt.call(n,t)}function c(n,t){var e,s,o,r,h,y,c,w,i,l,p,u=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&"."===n.charAt(0))if(t){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&b.test(n[h])&&(n[h]=n[h].replace(b,"")),n=u.slice(0,u.length-1).concat(n),i=0;i<n.length;i+=1)if(p=n[i],"."===p)n.splice(i,1),i-=1;else if(".."===p){if(1===i&&(".."===n[2]||".."===n[0]))break;i>0&&(n.splice(i-1,2),i-=2)}n=n.join("/")}else 0===n.indexOf("./")&&(n=n.substring(2));if((u||v)&&a){for(e=n.split("/"),i=e.length;i>0;i-=1){if(s=e.slice(0,i).join("/"),u)for(l=u.length;l>0;l-=1)if(o=a[u.slice(0,l).join("/")],o&&(o=o[s])){r=o;y=i;break}if(r)break;!c&&v&&v[s]&&(c=v[s],w=i)}!r&&c&&(r=c,y=w);r&&(e.splice(0,y,r),n=e.join("/"))}return n}function p(n,i){return function(){var r=tt.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),o.apply(t,r.concat([n,i]))}}function k(n){return function(t){return c(t,n)}}function d(n){return function(t){u[n]=t}}function l(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;a.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function w(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function g(n){return function(){return f&&f.config&&f.config[n]||{}}}var a,o,v,s,u={},h={},f={},y={},nt=Object.prototype.hasOwnProperty,tt=[].slice,b=/\.js$/;v=function(n,t){var r,u=w(n),i=u[0];return n=u[1],i&&(i=c(i,t),r=l(i)),i?n=r&&r.normalize?r.normalize(n,k(t)):c(n,t):(n=c(n,t),u=w(n),i=u[0],n=u[1],i&&(r=l(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return p(n)},exports:function(n){var t=u[n];return"undefined"!=typeof t?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:g(n)}}};a=function(n,i,r,f){var w,o,k,b,c,g,a=[],nt=typeof r=="undefined"?"undefined":_typeof(r);if(f=f||n,"undefined"===nt||"function"===nt){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(b=v(i[c],f),o=b.f,"require"===o)a[c]=s.require(n);else if("exports"===o)a[c]=s.exports(n),g=!0;else if("module"===o)w=a[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))a[c]=l(o);else{if(!b.p)throw new Error(n+" missing "+o);b.p.load(b.n,p(f,!0),d(o),{});a[c]=u[o]}k=r?r.apply(u[n],a):void 0;n&&(w&&w.exports!==t&&w.exports!==u[n]?u[n]=w.exports:k===t&&g||(u[n]=k))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if("string"==typeof n)return s[n]?s[n](i):l(v(n,i).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=u,u=e),u?a(t,n,i,r):setTimeout(function(){a(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){if("string"!=typeof n)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}}();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)u=i[t],"function"==typeof u&&"constructor"!==t&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty,i;for(i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{};null==t&&(t=[]);0===t.length&&t.push({});t[0]._type=n;n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;r>i;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var t,i="",r=0;n>r;r++)t=Math.floor(36*Math.random()),i+=t.toString(36);return i},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,1!==r.length){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f!==r||"hidden"!==r&&"visible"!==r?"scroll"===f||"scroll"===r?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth:!1},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof n?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if("1.7"===n.fn.jquery.substr(0,3)){var r=n();n.map(i,function(n){r=r.add(n)});i=r}t.append(i)},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" aria-live="assertive" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));i[0].className+=" select2-results__message";this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],null==n.results||0===n.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter");this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var r=n.map(i,function(n){return n.id.toString()}),u=t.$results.find(".select2-results__option[aria-selected]");u.each(function(){var i=n(this),t=n.data(this,"data"),u=""+t.id;null!=t.element&&t.element.selected||null==t.element&&n.inArray(u,r)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");null==t.id&&delete i["aria-selected"];null!=t._resultId&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.hideMessages();i.showLoading(n)});t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();0!==n.length&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;0!==n.length&&(t=n.data("data"),"true"==n.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(0!==f){n=f-1;0===r.length&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);0===n?i.$results.scrollTop(0):0>o-e&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;0===r?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});n.fn.mousewheel&&this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");return"true"===r.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close",{})):void i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(0!==n.length){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=2*n.outerHeight(!1);2>=e?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,r=(n.id+"-container",n.id+"-results");this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var t=this,i;r.__super__.bind.apply(this,arguments);i=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i);this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(n){1===n.which&&t.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||t.$selection.focus()});n.on("selection:update",function(n){t.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(0===n.length)return void this.clear();var t=n[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r);i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!t.options.get("disabled")){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var f,r,e;if(this.clear(),0!==n.length){for(f=[],r=0;r<n.length;r++){var u=n[r],t=this.selectionContainer(),o=this.display(u,t);t.append(o);t.prop("title",u.title||u.text);t.data("data",u);f.push(t)}e=this.$selection.find(".select2-selection__rendered");i.appendMany(e,f)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=1==t.length&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys"],function(n,t){function i(){}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},i.prototype._handleClear=function(n,t){var r,u,i,f;if(!this.options.get("disabled")&&(r=this.$selection.find(".select2-selection__clear"),0!==r.length)){for(t.stopPropagation(),u=r.data("data"),i=0;i<u.length;i++)if(f={data:u[i]},this.trigger("unselect",f),f.prevented)return;this.$element.val(this.placeholder.id).trigger("change");this.trigger("toggle",{})}},i.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /><\/li>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=t.call(this),this._transferTabIndex(),r},r.prototype.bind=function(n,t,r){var u=this,f,e;n.call(this,t,r);t.on("open",function(){u.$search.trigger("focus")});t.on("close",function(){u.$search.val("");u.$search.removeAttr("aria-activedescendant");u.$search.trigger("focus")});t.on("enable",function(){u.$search.prop("disabled",!1);u._transferTabIndex()});t.on("disable",function(){u.$search.prop("disabled",!0)});t.on("focus",function(){u.$search.trigger("focus")});t.on("results:focus",function(n){u.$search.attr("aria-activedescendant",n.id)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&""===u.$search.val()&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f),n.preventDefault()))});f=document.documentMode;e=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(){return e?void u.$selection.off("input.search input.searchcheck"):void u.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(e&&"input"===n.type)return void u.$selection.off("input.search input.searchcheck");var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&u.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();i&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";""!==this.$search.attr("placeholder")?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=.75*t+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(-1!==n.inArray(t,f)){i=i||{};var r=n.Event("select2:"+t,{params:i});u.$element.trigger(r);-1!==n.inArray(t,e)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(null!=i.id?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,-1===i.inArray(e,f)&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple"))return n.selected=!1,i(n.element).is("option")?(n.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var u,f=[],e=0;e<r.length;e++)u=r[e].id,u!==n.id&&-1===i.inArray(u,f)&&f.push(u);t.$element.val(f);t.$element.trigger("change")})},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),null!==f&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},u,f;if(t=i.data(n[0],"data"),null!=t)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){t={text:n.prop("label"),children:[],title:n.prop("title")};for(var e=n.children("option"),o=[],r=0;r<e.length;r++)u=i(e[r]),f=this.item(u),o.push(f);t.children=o}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){return i.isPlainObject(n)||(n={id:n,text:n}),n=i.extend({},{text:""},n),null!=n.id&&(n.id=n.id.toString()),null!=n.text&&(n.text=n.text.toString()),null==n._resultId&&n.id&&null!=this.container&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});0===t.length&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function c(n){return function(){return i(this).val()==n.id}}for(var r,u,e,l=this,o=this.$element.find("option"),a=o.map(function(){return l.item(i(this)).id}).get(),s=[],f=0;f<n.length;f++)if(r=this._normalizeItem(n[f]),i.inArray(r.id,a)>=0){var h=o.filter(c(r)),v=this.item(h),y=i.extend(!0,{},r,v),p=this.option(y);h.replaceWith(p)}else u=this.option(r),r.children&&(e=this.convertToOptions(r.children),t.appendMany(u,e)),s.push(u);return s},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){f.status&&"0"===f.status||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,n));"function"==typeof r.data&&(r.data=r.data.call(this.$element,n));this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(void 0!==o&&(this.createTag=o),e=r.get("insertTag"),void 0!==e&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var o,h,e=n.results,s=0;s<e.length;s++){var c=e[s],l=null!=c.children&&!u({results:c.children},!0),a=c.text===t.term;if(a||l)return f?!1:(n.data=e,void i(n))}if(f)return!0;o=r.createTag(t);null!=o&&(h=r.option(o),h.attr("data-select2-tag",!0),r.addOptions([h]),r.insertTag(e,o));n.results=e;i(n)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void n.call(this,t,i):void n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r]));o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"";f=this.tokenizer(i,this.options,e);f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),i.term=f.term);t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var o,h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}};f<e.length;)if(o=e[f],-1!==n.inArray(o,h)){var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);null!=s?(u(s),e=e.substr(f+1)||"",f=0):f++}else f++;return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=null!=u?u.length:0;return r.maximumSelectionLength>0&&f>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("focus",function(){i.isOpen()&&u.$search.focus()});i.on("results:all",function(n){if(null==n.query.term||""===n.query.term){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var r,u=t.slice(0),i=t.length-1;i>=0;i--)r=t[i],this.placeholder.id===r.id&&u.splice(i,1);return u},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=r.get("dropdownParent")||n(document.body);t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);u||(u=!0,t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()}))});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this);this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown();u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u);n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,f;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,e={left:i.left,top:r.bottom},o=this.$dropdownParent;"static"===o.css("position")&&(o=o.offsetParent());f=o.offset();e.top-=f.top;e.left-=f.left;u||v||(t="below");a||!l||u?!l&&a&&u&&(t="below"):t="above";("above"==t||u&&"below"!==t)&&(e.top=r.top-f.top-h.height);null!=t&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(e)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto");this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var i,r=0,u=0;u<t.length;u++)i=t[u],i.children?r+=n(i.children):r++;return r}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},n.prototype._handleSelectOnClose=function(n,t){var r,u,i;t&&null!=t.originalSelect2Event&&(r=t.originalSelect2Event,"select"===r._type||"unselect"===r._type)||(u=this.getHighlightedResults(),u.length<1||(i=u.data("data"),null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})))},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return 1!=n.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}return st.prototype.apply=function(l){var vt,yt,pt,wt,bt,kt,dt,ct,lt,st,ot,ht,gt,at;if((l=n.extend(!0,{},this.defaults,l),null==l.dataAdapter)&&((l.dataAdapter=null!=l.ajax?y:null!=l.data?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),null!=l.query)&&(vt=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,vt)),null!=l.initSelection&&(yt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,yt))),(null==l.resultsAdapter&&(l.resultsAdapter=i,null!=l.ajax&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),null!=l.placeholder&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),null==l.dropdownAdapter)&&(l.multiple?l.dropdownAdapter=g:(pt=h.Decorate(g,nt),l.dropdownAdapter=pt),(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass)&&(wt=t(l.amdBase+"compat/dropdownCss"),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,wt)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),null==l.selectionAdapter&&((l.selectionAdapter=l.multiple?u:r,null!=l.placeholder&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass)&&(bt=t(l.amdBase+"compat/containerCss"),l.selectionAdapter=h.Decorate(l.selectionAdapter,bt)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),"string"==typeof l.language&&(l.language.indexOf("-")>0?(kt=l.language.split("-"),dt=kt[0],l.language=[l.language,dt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(ni){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(ti){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else gt=c.loadPath(this.defaults.amdLanguageBase+"en"),at=new c(l.language),at.extend(gt),l.translations=at;return l},st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(""===n.trim(r.term))return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),null==s&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}},st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)},new st}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,null!=u&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){var e=["select2"],f,u,i;null==this.options.multiple&&(this.options.multiple=n.prop("multiple"));null==this.options.disabled&&(this.options.disabled=n.prop("disabled"));null==this.options.language&&(n.prop("lang")?this.options.language=n.prop("lang").toLowerCase():n.closest("[lang]").prop("lang")&&(this.options.language=n.closest("[lang]").prop("lang")));null==this.options.dir&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr");n.prop("disabled",this.options.disabled);n.prop("multiple",this.options.multiple);n.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.data("data",n.data("select2Tags")),n.data("tags",!0));n.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",n.data("ajaxUrl")),n.data("ajax--url",n.data("ajaxUrl")));f={};f=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&n[0].dataset?t.extend(!0,{},n[0].dataset,n.data()):n.data();u=t.extend(!0,{},f);u=r._convertData(u);for(i in u)t.inArray(i,e)>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function u(n,i){var f,e,r,o,s,h,c;null!=n.data("select2")&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})});n.addClass("select2-hidden-accessible");n.attr("aria-hidden","true");this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=null!=n.attr("id")?n.attr("id"):null!=n.attr("name")?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var r,u,f,o,i;if("resolve"==t)return r=this._resolveWidth(n,"style"),null!=r?r:this._resolveWidth(n,"element");if("element"==t)return u=n.outerWidth(!1),0>=u?"auto":u+"px";if("style"==t){if(f=n.attr("style"),"string"!=typeof f)return null;for(var s=f.split(";"),e=0,h=s.length;h>e;e+=1)if(o=s[e].replace(/\s/g,""),i=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==i&&i.length>=1)return i[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this.$element.on("focus.select2",function(n){t.trigger("focus",n)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(i){n.each(i,t._syncA);n.each(i,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){-1===n.inArray(r,i)&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{});this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&t.altKey?(n.close(),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(n,t){var i=!1,f=this,r,u;if(!n||!n.target||"OPTION"===n.target.nodeName||"OPTGROUP"===n.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(r=0;r<t.addedNodes.length;r++)u=t.addedNodes[r],u.selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(n){f.trigger("selection:update",{data:n})})}},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if((void 0===t&&(t={}),n in f)&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented))return void(t.prevented=!0);r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(null==n||0===n.length)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(n){return n}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(n,t,i,r){if(null==n.fn.select2){var u=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},"object"==(typeof t=="undefined"?"undefined":_typeof(t)))return this.each(function(){var r=n.extend(!0,{},t);new i(n(this),r)}),this;if("string"==typeof t){var r,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=n(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");r=i[t].apply(i,f)}),n.inArray(t,u)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return null==n.fn.select2.defaults&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i});!function(n,t,i,r){"use strict";function o(n){var r=n.currentTarget,f=n.data?n.data.options:{},t=f.selector?i(f.selector):n.data?n.data.items:[],e=i(r).attr("data-fancybox")||"",u=0,o=i.fancybox.getInstance();n.preventDefault();n.stopPropagation();o&&o.current.opts.$orig.is(r)||(e?(t=t.length?t.filter('[data-fancybox="'+e+'"]'):i('[data-fancybox="'+e+'"]'),u=t.index(r),u<0&&(u=0)):t=[r],i.fancybox.open(t,f,u))}if(i){if(i.fn.fancybox)return void i.error("fancyBox already initialized");var c={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close"],idleTime:4,smallBtn:"auto",protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""><\/iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"><\/div><div class="fancybox-inner"><div class="fancybox-infobar"><button data-fancybox-prev title="{{PREV}}" class="fancybox-button fancybox-button--left"><\/button><div class="fancybox-infobar__body"><span data-fancybox-index><\/span>&nbsp;/&nbsp;<span data-fancybox-count><\/span><\/div><button data-fancybox-next title="{{NEXT}}" class="fancybox-button fancybox-button--right"><\/button><\/div><div class="fancybox-toolbar">{{BUTTONS}}<\/div><div class="fancybox-navigation"><button data-fancybox-prev title="{{PREV}}" class="fancybox-arrow fancybox-arrow--left" /><button data-fancybox-next title="{{NEXT}}" class="fancybox-arrow fancybox-arrow--right" /><\/div><div class="fancybox-stage"><\/div><div class="fancybox-caption-wrap"><div class="fancybox-caption"><\/div><\/div><\/div><\/div>',spinnerTpl:'<div class="fancybox-loading"><\/div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}<p><\/div>',btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><\/button>',fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><\/button>',thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><\/button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><\/button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><\/button>'},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(n){return"image"===n.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(n){return"image"===n.type&&"toggleControls"},clickSlide:function(n){return"image"===n.type?"toggleControls":"close"},dblclickContent:function(n){return"image"===n.type&&"zoom"},dblclickSlide:function(n){return"image"===n.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},f=i(n),u=i(t),a=0,v=function(n){return n&&n.hasOwnProperty&&n instanceof i},l=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||function(t){return n.setTimeout(t,1e3/60)}}(),s=function(){var n,u=t.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in i)if(u.style[n]!==r)return i[n]}(),e=function(n){return n&&n.length&&n[0].offsetHeight},h=function(n,r,u){var f=this;f.opts=i.extend(!0,{index:u},c,r||{});r&&i.isArray(r.buttons)&&(f.opts.buttons=r.buttons);f.id=f.opts.id||++a;f.group=[];f.currIndex=parseInt(f.opts.index,10)||0;f.prevIndex=null;f.prevPos=null;f.currPos=0;f.firstRun=null;f.createGroup(n);f.group.length&&(f.$lastFocus=i(t.activeElement).blur(),f.slides={},f.init(n))};i.extend(h.prototype,{init:function(){var r,f,e,n=this,t=n.group[n.currIndex].opts;n.scrollTop=u.scrollTop();n.scrollLeft=u.scrollLeft();i.fancybox.getInstance()||i.fancybox.isMobile||"hidden"===i("body").css("overflow")||(r=i("body").width(),i("html").addClass("fancybox-enabled"),r=i("body").width()-r,r>1&&i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar, .fancybox-enabled body { margin-right: '+r+"px; }<\/style>"));e="";i.each(t.buttons,function(n,i){e+=t.btnTpl[i]||""});f=i(n.translate(n,t.baseTpl.replace("{{BUTTONS}}",e))).addClass("fancybox-is-hidden").attr("id","fancybox-container-"+n.id).addClass(t.baseClass).data("FancyBox",n).prependTo(t.parentEl);n.$refs={container:f};["bg","inner","infobar","toolbar","stage","caption"].forEach(function(t){n.$refs[t]=f.find(".fancybox-"+t)});(!t.arrows||n.group.length<2)&&f.find(".fancybox-navigation").remove();t.infobar||n.$refs.infobar.remove();t.toolbar||n.$refs.toolbar.remove();n.trigger("onInit");n.activate();n.jumpTo(n.currIndex)},translate:function(n,t){var i=n.opts.i18n[n.opts.lang];return t.replace(/\{\{(\w+)\}\}/g,function(n,t){var u=i[t];return u===r?n:u})},createGroup:function(n){var t=this,u=i.makeArray(n);i.each(u,function(n,u){var c,s,h,l,f={},o={},e=[];i.isPlainObject(u)?(f=u,o=u.opts||u):"object"===i.type(u)&&i(u).length?(c=i(u),e=c.data(),o="options"in e?e.options:{},o="object"===i.type(o)?o:{},f.src="src"in e?e.src:o.src||c.attr("href"),["width","height","thumb","type","filter"].forEach(function(n){n in e&&(o[n]=e[n])}),"srcset"in e&&(o.image={srcset:e.srcset}),o.$orig=c,f.type||f.src||(f.type="inline",f.src=u)):f={type:"html",src:u+""};f.opts=i.extend(!0,{},t.opts,o);i.fancybox.isMobile&&(f.opts=i.extend(!0,{},f.opts,f.opts.mobile));s=f.type||f.opts.type;h=f.src||"";!s&&h&&(h.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":h.match(/\.(pdf)((\?|#).*)?$/i)?s="pdf":"#"===h.charAt(0)&&(s="inline"));f.type=s;f.index=t.group.length;f.opts.$orig&&!f.opts.$orig.length&&delete f.opts.$orig;!f.opts.$thumb&&f.opts.$orig&&(f.opts.$thumb=f.opts.$orig.find("img:first"));f.opts.$thumb&&!f.opts.$thumb.length&&delete f.opts.$thumb;"function"===i.type(f.opts.caption)?f.opts.caption=f.opts.caption.apply(u,[t,f]):"caption"in e&&(f.opts.caption=e.caption);f.opts.caption=f.opts.caption===r?"":f.opts.caption+"";"ajax"===s&&(l=h.split(/\s+/,2),l.length>1&&(f.src=l.shift(),f.opts.filter=l.shift()));"auto"==f.opts.smallBtn&&(i.inArray(s,["html","inline","ajax"])>-1?(f.opts.toolbar=!1,f.opts.smallBtn=!0):f.opts.smallBtn=!1);"pdf"===s&&(f.type="iframe",f.opts.iframe.preload=!1);f.opts.modal&&(f.opts=i.extend(!0,f.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1}));t.group.push(f)})},addEvents:function(){var r=this;r.removeEvents();r.$refs.container.on("click.fb-close","[data-fancybox-close]",function(n){n.stopPropagation();n.preventDefault();r.close(n)}).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",function(n){n.stopPropagation();n.preventDefault();r.previous()}).on("click.fb-next touchend.fb-next","[data-fancybox-next]",function(n){n.stopPropagation();n.preventDefault();r.next()});f.on("orientationchange.fb resize.fb",function(n){n&&n.originalEvent&&"resize"===n.originalEvent.type?l(function(){r.update()}):(r.$refs.stage.hide(),setTimeout(function(){r.$refs.stage.show();r.update()},500))});u.on("focusin.fb",function(n){var u=i.fancybox?i.fancybox.getInstance():null;u.isClosing||!u.current||!u.current.opts.trapFocus||i(n.target).hasClass("fancybox-container")||i(n.target).is(t)||u&&"fixed"!==i(n.target).css("position")&&!u.$refs.container.has(n.target).length&&(n.stopPropagation(),u.focus(),f.scrollTop(r.scrollTop).scrollLeft(r.scrollLeft))});u.on("keydown.fb",function(n){var u=r.current,t=n.keyCode||n.which;if(u&&u.opts.keyboard&&!i(n.target).is("input")&&!i(n.target).is("textarea"))return 8===t||27===t?(n.preventDefault(),void r.close(n)):37===t||38===t?(n.preventDefault(),void r.previous()):39===t||40===t?(n.preventDefault(),void r.next()):void r.trigger("afterKeydown",n,t)});r.group[r.currIndex].opts.idleTime&&(r.idleSecondsCounter=0,u.on("mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(){r.idleSecondsCounter=0;r.isIdle&&r.showControls();r.isIdle=!1}),r.idleInterval=n.setInterval(function(){r.idleSecondsCounter++;r.idleSecondsCounter>=r.group[r.currIndex].opts.idleTime&&(r.isIdle=!0,r.idleSecondsCounter=0,r.hideControls())},1e3))},removeEvents:function(){var t=this;f.off("orientationchange.fb resize.fb");u.off("focusin.fb keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");t.idleInterval&&(n.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(n){return this.jumpTo(this.currPos-1,n)},next:function(n){return this.jumpTo(this.currPos+1,n)},jumpTo:function(n,t){var h,c,f,o,v,a,s,u=this,l=u.group.length;if(!(u.isSliding||u.isClosing||u.isAnimating&&u.firstRun)){if(n=parseInt(n,10),c=u.current?u.current.opts.loop:u.opts.loop,!c&&(n<0||n>=l))return!1;if(h=u.firstRun=null===u.firstRun,!(l<2&&!h&&u.isSliding)){if(o=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,f=u.createSlide(n),l>1&&((c||f.index>0)&&u.createSlide(n-1),(c||f.index<l-1)&&u.createSlide(n+1)),u.current=f,u.currIndex=f.index,u.currPos=f.pos,u.trigger("beforeShow",h),u.updateControls(),a=i.fancybox.getTranslate(f.$slide),f.isMoved=(0!==a.left||0!==a.top)&&!f.$slide.hasClass("fancybox-animated"),f.forcedDuration=r,i.isNumeric(t)?f.forcedDuration=t:t=f.opts[h?"animationDuration":"transitionDuration"],t=parseInt(t,10),h)return f.opts.animationEffect&&t&&u.$refs.container.css("transition-duration",t+"ms"),u.$refs.container.removeClass("fancybox-is-hidden"),e(u.$refs.container),u.$refs.container.addClass("fancybox-is-open"),f.$slide.addClass("fancybox-slide--current"),u.loadSlide(f),void u.preload();i.each(u.slides,function(n,t){i.fancybox.stop(t.$slide)});f.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current");f.isMoved?(v=Math.round(f.$slide.width()),i.each(u.slides,function(n,r){var e=r.pos-f.pos;i.fancybox.animate(r.$slide,{top:0,left:e*v+e*r.opts.gutter},t,function(){r.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous");r.pos===u.currPos&&(f.isMoved=!1,u.complete())})})):u.$refs.stage.children().removeAttr("style");f.isLoaded?u.revealContent(f):u.loadSlide(f);u.preload();o.pos!==f.pos&&(s="fancybox-slide--"+(o.pos>f.pos?"next":"previous"),o.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),o.isComplete=!1,t&&(f.isMoved||f.opts.transitionEffect)&&(f.isMoved?o.$slide.addClass(s):(s="fancybox-animated "+s+" fancybox-fx-"+f.opts.transitionEffect,i.fancybox.animate(o.$slide,s,t,function(){o.$slide.removeClass(s).removeAttr("style")}))))}}},createSlide:function(n){var u,r,t=this;return r=n%t.group.length,r=r<0?t.group.length+r:r,!t.slides[n]&&t.group[r]&&(u=i('<div class="fancybox-slide"><\/div>').appendTo(t.$refs.stage),t.slides[n]=i.extend(!0,{},t.group[r],{pos:n,$slide:u,isLoaded:!1}),t.updateSlide(t.slides[n])),t.slides[n]},scaleToActual:function(n,t,u){var l,e,o,y,p,f=this,s=f.current,w=s.$content,a=parseInt(s.$slide.width(),10),v=parseInt(s.$slide.height(),10),h=s.width,c=s.height;"image"!=s.type||s.hasError||!w||f.isAnimating||(i.fancybox.stop(w),f.isAnimating=!0,n=n===r?.5*a:n,t=t===r?.5*v:t,l=i.fancybox.getTranslate(w),y=h/l.width,p=c/l.height,e=.5*a-.5*h,o=.5*v-.5*c,h>a&&(e=l.left*y-(n*y-n),e>0&&(e=0),e<a-h&&(e=a-h)),c>v&&(o=l.top*p-(t*p-t),o>0&&(o=0),o<v-c&&(o=v-c)),f.updateCursor(h,c),i.fancybox.animate(w,{top:o,left:e,scaleX:y,scaleY:p},u||330,function(){f.isAnimating=!1}),f.SlideShow&&f.SlideShow.isActive&&f.SlideShow.stop())},scaleToFit:function(n){var t,r=this,f=r.current,u=f.$content;"image"!=f.type||f.hasError||!u||r.isAnimating||(i.fancybox.stop(u),r.isAnimating=!0,t=r.getFitPos(f),r.updateCursor(t.width,t.height),i.fancybox.animate(u,{top:t.top,left:t.left,scaleX:t.width/u.width(),scaleY:t.height/u.height()},n||330,function(){r.isAnimating=!1}))},getFitPos:function(n){var r,u,e,o,s,l=this,a=n.$content,h=n.width,c=n.height,t=n.opts.margin;return!(!a||!a.length||!h&&!c)&&("number"===i.type(t)&&(t=[t,t]),2==t.length&&(t=[t[0],t[1],t[0],t[1]]),f.width()<800&&(t=[0,0,0,0]),r=parseInt(l.$refs.stage.width(),10)-(t[1]+t[3]),u=parseInt(l.$refs.stage.height(),10)-(t[0]+t[2]),e=Math.min(1,r/h,u/c),o=Math.floor(e*h),s=Math.floor(e*c),{top:Math.floor(.5*(u-s))+t[0],left:Math.floor(.5*(r-o))+t[3],width:o,height:s})},update:function(){var n=this;i.each(n.slides,function(t,i){n.updateSlide(i)})},updateSlide:function(n){var t=this,r=n.$content;r&&(n.width||n.height)&&(i.fancybox.stop(r),i.fancybox.setTranslate(r,t.getFitPos(n)),n.pos===t.currPos&&t.updateCursor());n.$slide.trigger("refresh");t.trigger("onUpdate",n)},updateCursor:function(n,t){var f,i=this,u=i.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");i.current&&!i.isClosing&&(i.isZoomable()?(u.addClass("fancybox-is-zoomable"),f=n!==r&&t!==r?n<i.current.width&&t<i.current.height:i.isScaledDown(),f?u.addClass("fancybox-can-zoomIn"):i.current.opts.touch?u.addClass("fancybox-can-drag"):u.addClass("fancybox-can-zoomOut")):i.current.opts.touch&&u.addClass("fancybox-can-drag"))},isZoomable:function(){var t,r=this,n=r.current;if(n&&!r.isClosing)return!!("image"===n.type&&n.isLoaded&&!n.hasError&&("zoom"===n.opts.clickContent||i.isFunction(n.opts.clickContent)&&"zoom"===n.opts.clickContent(n))&&(t=r.getFitPos(n),n.width>t.width||n.height>t.height))},isScaledDown:function(){var u=this,t=u.current,r=t.$content,n=!1;return r&&(n=i.fancybox.getTranslate(r),n=n.width<t.width||n.height<t.height),n},canPan:function(){var i=this,r=i.current,t=r.$content,n=!1;return t&&(n=i.getFitPos(r),n=Math.abs(t.width()-n.width)>1||Math.abs(t.height()-n.height)>1),n},loadSlide:function(n){var r,u,f,t=this;if(!n.isLoading&&!n.isLoaded){switch(n.isLoading=!0,t.trigger("beforeLoad",n),r=n.type,u=n.$slide,u.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(r||"unknown")).addClass(n.opts.slideClass),r){case"image":t.setImage(n);break;case"iframe":t.setIframe(n);break;case"html":t.setContent(n,n.src||n.content);break;case"inline":i(n.src).length?t.setContent(n,i(n.src)):t.setError(n);break;case"ajax":t.showLoading(n);f=i.ajax(i.extend({},n.opts.ajax.settings,{url:n.src,success:function(i,r){"success"===r&&t.setContent(n,i)},error:function(i,r){i&&"abort"!==r&&t.setError(n)}}));u.one("onReset",function(){f.abort()});break;default:t.setError(n)}return!0}},setImage:function(t){var r,u,s,h,e=this,c=t.opts.image.srcset,o,f;if(c){for(s=n.devicePixelRatio||1,h=n.innerWidth*s,u=c.split(",").map(function(n){var t={};return n.trim().split(/\s+/).forEach(function(n,i){var r=parseInt(n.substring(0,n.length-1),10);return 0===i?t.url=n:void(r&&(t.value=r,t.postfix=n[n.length-1]))}),t}),u.sort(function(n,t){return n.value-t.value}),o=0;o<u.length;o++)if(f=u[o],"w"===f.postfix&&f.value>=h||"x"===f.postfix&&f.value>=s){r=f;break}!r&&u.length&&(r=u[u.length-1]);r&&(t.src=r.url,t.width&&t.height&&"w"==r.postfix&&(t.height=t.width/t.height*r.value,t.width=r.value))}t.$content=i('<div class="fancybox-image-wrap"><\/div>').addClass("fancybox-is-hidden").appendTo(t.$slide);t.opts.preload!==!1&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=i("<img />").one("error",function(){i(this).remove();t.$ghost=null;e.setBigImage(t)}).one("load",function(){e.afterLoad(t);e.setBigImage(t)}).addClass("fancybox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):e.setBigImage(t)},setBigImage:function(n){var r=this,t=i("<img />");n.$image=t.one("error",function(){r.setError(n)}).one("load",function(){clearTimeout(n.timouts);n.timouts=null;r.isClosing||(n.width=this.naturalWidth,n.height=this.naturalHeight,n.opts.image.srcset&&t.attr("sizes","100vw").attr("srcset",n.opts.image.srcset),r.hideLoading(n),n.$ghost?n.timouts=setTimeout(function(){n.timouts=null;n.$ghost.hide()},Math.min(300,Math.max(1e3,n.height/1600))):r.afterLoad(n))}).addClass("fancybox-image").attr("src",n.src).appendTo(n.$content);t[0].complete?t.trigger("load"):t[0].error?t.trigger("error"):n.timouts=setTimeout(function(){t[0].complete||n.hasError||r.showLoading(n)},100)},setIframe:function(n){var u,f=this,t=n.opts.iframe,e=n.$slide;n.$content=i('<div class="fancybox-content'+(t.preload?" fancybox-is-hidden":"")+'"><\/div>').css(t.css).appendTo(e);u=i(t.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(t.attr).appendTo(n.$content);t.preload?(f.showLoading(n),u.on("load.fb error.fb",function(){this.isReady=1;n.$slide.trigger("refresh");f.afterLoad(n)}),e.on("refresh.fb",function(){var e,f,o,s,h,i=n.$content;if(1===u[0].isReady){try{e=u.contents();f=e.find("body")}catch(n){}f&&f.length&&(t.css.width===r||t.css.height===r)&&(o=u[0].contentWindow.document.documentElement.scrollWidth,s=Math.ceil(f.outerWidth(!0)+(i.width()-o)),h=Math.ceil(f.outerHeight(!0)),i.css({width:t.css.width===r?s+(i.outerWidth()-i.innerWidth()):t.css.width,height:t.css.height===r?h+(i.outerHeight()-i.innerHeight()):t.css.height}));i.removeClass("fancybox-is-hidden")}})):this.afterLoad(n);u.attr("src",n.src);n.opts.smallBtn===!0&&n.$content.prepend(f.translate(n,n.opts.btnTpl.smallBtn));e.one("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank")}catch(n){}i(this).empty();n.isLoaded=!1})},setContent:function(n,t){var r=this;r.isClosing||(r.hideLoading(n),n.$slide.empty(),v(t)&&t.parent().length?(t.parent(".fancybox-slide--inline").trigger("onReset"),n.$placeholder=i("<div><\/div>").hide().insertAfter(t),t.css("display","inline-block")):n.hasError||("string"===i.type(t)&&(t=i("<div>").append(i.trim(t)).contents(),3===t[0].nodeType&&(t=i("<div>").html(t))),n.opts.filter&&(t=i("<div>").html(t).find(n.opts.filter))),n.$slide.one("onReset",function(){n.$placeholder&&(n.$placeholder.after(t.hide()).remove(),n.$placeholder=null);n.$smallBtn&&(n.$smallBtn.remove(),n.$smallBtn=null);n.hasError||(i(this).empty(),n.isLoaded=!1)}),n.$content=i(t).appendTo(n.$slide),n.opts.smallBtn&&!n.$smallBtn&&(n.$smallBtn=i(r.translate(n,n.opts.btnTpl.smallBtn)).appendTo(n.$content.filter("div").first())),this.afterLoad(n))},setError:function(n){n.hasError=!0;n.$slide.removeClass("fancybox-slide--"+n.type);this.setContent(n,this.translate(n,n.opts.errorTpl))},showLoading:function(n){var t=this;n=n||t.current;n&&!n.$spinner&&(n.$spinner=i(t.opts.spinnerTpl).appendTo(n.$slide))},hideLoading:function(n){var t=this;n=n||t.current;n&&n.$spinner&&(n.$spinner.remove(),delete n.$spinner)},afterLoad:function(n){var t=this;t.isClosing||(n.isLoading=!1,n.isLoaded=!0,t.trigger("afterLoad",n),t.hideLoading(n),n.opts.protect&&n.$content&&!n.hasError&&(n.$content.on("contextmenu.fb",function(n){return 2==n.button&&n.preventDefault(),!0}),"image"===n.type&&i('<div class="fancybox-spaceball"><\/div>').appendTo(n.$content)),t.revealContent(n))},revealContent:function(n){var f,l,o,c,u,t=this,h=n.$slide,s=!1;return f=n.opts[t.firstRun?"animationEffect":"transitionEffect"],o=n.opts[t.firstRun?"animationDuration":"transitionDuration"],o=parseInt(n.forcedDuration===r?o:n.forcedDuration,10),!n.isMoved&&n.pos===t.currPos&&o||(f=!1),"zoom"!==f||n.pos===t.currPos&&o&&"image"===n.type&&!n.hasError&&(s=t.getThumbPos(n))||(f="fade"),"zoom"===f?(u=t.getFitPos(n),u.scaleX=u.width/s.width,u.scaleY=u.height/s.height,delete u.width,delete u.height,c=n.opts.zoomOpacity,"auto"==c&&(c=Math.abs(n.width/n.height-s.width/s.height)>.1),c&&(s.opacity=.1,u.opacity=1),i.fancybox.setTranslate(n.$content.removeClass("fancybox-is-hidden"),s),e(n.$content),void i.fancybox.animate(n.$content,u,o,function(){t.complete()})):(t.updateSlide(n),f?(i.fancybox.stop(h),l="fancybox-animated fancybox-slide--"+(n.pos>t.prevPos?"next":"previous")+" fancybox-fx-"+f,h.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(l),n.$content.removeClass("fancybox-is-hidden"),e(h),void i.fancybox.animate(h,"fancybox-slide--current",o,function(){h.removeClass(l).removeAttr("style");n.pos===t.currPos&&t.complete()},!0)):(e(h),n.$content.removeClass("fancybox-is-hidden"),void(n.pos===t.currPos&&t.complete())))},getThumbPos:function(r){var f,s=this,o=!1,h=function(t){for(var f,u=t[0],r=u.getBoundingClientRect(),e=[];null!==u.parentElement;)"hidden"!==i(u.parentElement).css("overflow")&&"auto"!==i(u.parentElement).css("overflow")||e.push(u.parentElement.getBoundingClientRect()),u=u.parentElement;return f=e.every(function(n){var t=Math.min(r.right,n.right)-Math.max(r.left,n.left),i=Math.min(r.bottom,n.bottom)-Math.max(r.top,n.top);return t>0&&i>0}),f&&r.bottom>0&&r.right>0&&r.left<i(n).width()&&r.top<i(n).height()},u=r.opts.$thumb,e=u?u.offset():0;return e&&u[0].ownerDocument===t&&h(u)&&(f=s.$refs.stage.offset(),o={top:e.top-f.top+parseFloat(u.css("border-top-width")||0),left:e.left-f.left+parseFloat(u.css("border-left-width")||0),width:u.width(),height:u.height(),scaleX:1,scaleY:1}),o},complete:function(){var r=this,n=r.current,u={};n.isMoved||!n.isLoaded||n.isComplete||(n.isComplete=!0,n.$slide.siblings().trigger("onReset"),e(n.$slide),n.$slide.addClass("fancybox-slide--complete"),i.each(r.slides,function(n,t){t.pos>=r.currPos-1&&t.pos<=r.currPos+1?u[t.pos]=t:t&&(i.fancybox.stop(t.$slide),t.$slide.unbind().remove())}),r.slides=u,r.updateCursor(),r.trigger("afterShow"),(i(t.activeElement).is("[disabled]")||n.opts.autoFocus&&"image"!=n.type&&"iframe"!==n.type)&&r.focus())},preload:function(){var t,i,n=this;n.group.length<2||(t=n.slides[n.currPos+1],i=n.slides[n.currPos-1],t&&"image"===t.type&&n.loadSlide(t),i&&"image"===i.type&&n.loadSlide(i))},focus:function(){var n,t=this.current;this.isClosing||(n=t&&t.isComplete?t.$slide.find("button,:input,[tabindex],a").filter(":not([disabled]):visible:first"):null,n=n&&n.length?n:this.$refs.container,n.focus())},activate:function(){var n=this;i(".fancybox-container").each(function(){var t=i(this).data("FancyBox");t&&t.uid!==n.uid&&!t.isClosing&&t.trigger("onDeactivate")});n.current&&(n.$refs.container.index()>0&&n.$refs.container.prependTo(t.body),n.updateControls());n.trigger("onActivate");n.addEvents()},close:function(n,t){var o,h,c,a,u,e,f=this,r=f.current,v=function(){f.cleanUp(n)};return!f.isClosing&&(f.isClosing=!0,f.trigger("beforeClose",n)===!1?(f.isClosing=!1,l(function(){f.update()}),!1):(f.removeEvents(),r.timouts&&clearTimeout(r.timouts),c=r.$content,o=r.opts.animationEffect,h=i.isNumeric(t)?t:o?r.opts.animationDuration:0,r.$slide.off(s).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),r.$slide.siblings().trigger("onReset").remove(),h&&f.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),f.hideLoading(r),f.hideControls(),f.updateCursor(),"zoom"!==o||n!==!0&&c&&h&&"image"===r.type&&!r.hasError&&(e=f.getThumbPos(r))||(o="fade"),"zoom"===o?(i.fancybox.stop(c),u=i.fancybox.getTranslate(c),u.width=u.width*u.scaleX,u.height=u.height*u.scaleY,a=r.opts.zoomOpacity,"auto"==a&&(a=Math.abs(r.width/r.height-e.width/e.height)>.1),a&&(e.opacity=0),u.scaleX=u.width/e.width,u.scaleY=u.height/e.height,u.width=e.width,u.height=e.height,i.fancybox.setTranslate(r.$content,u),i.fancybox.animate(r.$content,e,h,v),!0):(o&&h?n===!0?setTimeout(v,h):i.fancybox.animate(r.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,h,v):v(),!0)))},cleanUp:function(n){var r,t=this;t.current.$slide.trigger("onReset");t.$refs.container.empty().remove();t.trigger("afterClose",n);t.$lastFocus&&t.current.opts.backFocus&&t.$lastFocus.focus();t.current=null;r=i.fancybox.getInstance();r?r.activate():(f.scrollTop(t.scrollTop).scrollLeft(t.scrollLeft),i("html").removeClass("fancybox-enabled"),i("#fancybox-style-noscroll").remove())},trigger:function(n,t){var o,f=Array.prototype.slice.call(arguments,1),e=this,r=t&&t.opts?t:e.current;return r?f.unshift(r):r=e,f.unshift(e),i.isFunction(r.opts[n])&&(o=r.opts[n].apply(r,f)),o===!1?o:void("afterClose"===n?u.trigger(n+".fb",f):e.$refs.container.trigger(n+".fb",f))},updateControls:function(){var n=this,t=n.current,r=t.index,u=t.opts,f=u.caption,e=n.$refs.caption;t.$slide.trigger("refresh");n.$caption=f&&f.length?e.html(f):null;n.isHiddenControls||n.showControls();i("[data-fancybox-count]").html(n.group.length);i("[data-fancybox-index]").html(r+1);i("[data-fancybox-prev]").prop("disabled",!u.loop&&r<=0);i("[data-fancybox-next]").prop("disabled",!u.loop&&r>=n.group.length-1)},hideControls:function(){this.isHiddenControls=!0;this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var n=this,t=n.current?n.current.opts:n.opts,i=n.$refs.container;n.isHiddenControls=!1;n.idleSecondsCounter=0;i.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&n.group.length>1)).toggleClass("fancybox-show-nav",!!(t.arrows&&n.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal);n.$caption?i.addClass("fancybox-show-caption "):i.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}});i.fancybox={version:"3.1.25",defaults:c,getInstance:function(n){var t=i('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof h&&("string"===i.type(n)?t[n].apply(t,r):"function"===i.type(n)&&n.apply(t,r),t)},open:function(n,t,i){return new h(n,t,i)},close:function(n){var t=this.getInstance();t&&(t.close(),n===!0&&this.close())},destroy:function(){this.close(!0);u.off("click.fb-start")},isMobile:t.createTouch!==r&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var i=t.createElement("div");return n.getComputedStyle&&n.getComputedStyle(i).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(n){var t,r,i;return!n||!n.length?!1:((t=n.eq(0).css("transform"),t&&t.indexOf("matrix")!==-1?(t=t.split("(")[1],t=t.split(")")[0],t=t.split(",")):t=[],t.length)?(t=t.length>10?[t[13],t[12],t[0],t[5]]:[t[5],t[4],t[0],t[3]],t=t.map(parseFloat)):(t=[0,0,1,1],r=/\.*translate\((.*)px,(.*)px\)/i,i=r.exec(n.eq(0).attr("style")),i&&(t[0]=parseFloat(i[2]),t[1]=parseFloat(i[1]))),{top:t[0],left:t[1],scaleX:t[2],scaleY:t[3],opacity:parseFloat(n.css("opacity")),width:n.width(),height:n.height()})},setTranslate:function(n,t){var i="",u={};if(n&&t)return t.left===r&&t.top===r||(i=(t.left===r?n.position().left:t.left)+"px, "+(t.top===r?n.position().top:t.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),t.scaleX!==r&&t.scaleY!==r&&(i=(i.length?i+" ":"")+"scale("+t.scaleX+", "+t.scaleY+")"),i.length&&(u.transform=i),t.opacity!==r&&(u.opacity=t.opacity),t.width!==r&&(u.width=t.width),t.height!==r&&(u.height=t.height),n.css(u)},animate:function(n,t,u,f,e){var o=s||"transitionend";i.isFunction(u)&&(f=u,u=null);i.isPlainObject(t)||n.removeAttr("style");n.on(o,function(u){u&&u.originalEvent&&(!n.is(u.originalEvent.target)||"z-index"==u.originalEvent.propertyName)||(n.off(o),i.isPlainObject(t)?t.scaleX!==r&&t.scaleY!==r&&(n.css("transition-duration","0ms"),t.width=Math.round(n.width()*t.scaleX),t.height=Math.round(n.height()*t.scaleY),t.scaleX=1,t.scaleY=1,i.fancybox.setTranslate(n,t)):e!==!0&&n.removeClass(t),i.isFunction(f)&&f(u))});i.isNumeric(u)&&n.css("transition-duration",u+"ms");i.isPlainObject(t)?i.fancybox.setTranslate(n,t):n.addClass(t);n.data("timer",setTimeout(function(){n.trigger("transitionend")},u+16))},stop:function(n){clearTimeout(n.data("timer"));n.off(s)}};i.fn.fancybox=function(n){var t;return n=n||{},t=n.selector||!1,t?i("body").off("click.fb-start",t).on("click.fb-start",t,{options:n},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:n},o),this};u.on("click.fb-start","[data-fancybox]",o)}}(window,document,window.jQuery||jQuery),function(n){"use strict";var t=function(t,i,r){if(t)return r=r||"","object"===n.type(r)&&(r=n.param(r,!0)),n.each(i,function(n,i){t=t.replace("$"+n,i||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t},i={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(n){return"//maps.google."+n[2]+"/?ll="+(n[9]?n[9]+"&z="+Math.floor(n[10])+(n[12]?n[12].replace(/^\//,"&"):""):n[12])+"&output="+(n[12]&&n[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(n){return"//maps.google."+n[2]+"/maps?q="+n[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};n(document).on("onInit.fb",function(r,u){n.each(u.group,function(r,u){var a,v,f,h,e,l,o,s=u.src||"",c=!1;u.type||(a=n.extend(!0,{},i,u.opts.media),n.each(a,function(i,r){var a,y;if(f=s.match(r.matcher),l={},o=i,f){if(c=r.type,r.paramPlace&&f[r.paramPlace])for(e=f[r.paramPlace],"?"==e[0]&&(e=e.substring(1)),e=e.split("&"),a=0;a<e.length;++a)y=e[a].split("=",2),2==y.length&&(l[y[0]]=decodeURIComponent(y[1].replace(/\+/g," ")));return h=n.extend(!0,{},r.params,u.opts[i],l),s="function"===n.type(r.url)?r.url.call(this,f,h,u):t(r.url,f,h),v="function"===n.type(r.thumb)?r.thumb.call(this,f,h,u):t(r.thumb,f),"vimeo"===o&&(s=s.replace("&%23","#")),!1}}),c?(u.src=s,u.type=c,u.opts.thumb||u.opts.$thumb&&u.opts.$thumb.length||(u.opts.thumb=v),"iframe"===c&&(n.extend(!0,u.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}}),u.contentProvider=o,u.opts.slideClass+=" fancybox-slide--"+("gmap_place"==o||"gmap_search"==o?"map":"video"))):u.type="image")})})}(window.jQuery),function(n,t,i){"use strict";var s=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||function(t){return n.setTimeout(t,1e3/60)}}(),f=function(){return n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.oCancelAnimationFrame||function(t){n.clearTimeout(t)}}(),e=function(t){var r=[],i;t=t.originalEvent||t||n.e;t=t.touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t];for(i in t)t[i].pageX?r.push({x:t[i].pageX,y:t[i].pageY}):t[i].clientX&&r.push({x:t[i].clientX,y:t[i].clientY});return r},u=function(n,t,i){return t&&n?"x"===i?n.x-t.x:"y"===i?n.y-t.y:Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)):0},h=function(n){if(n.is("a,button,input,select,textarea")||i.isFunction(n.get(0).onclick)||n.data("selectable"))return!0;for(var t=0,r=n[0].attributes,u=r.length;t<u;t++)if("data-fancybox-"===r[t].nodeName.substr(0,14))return!0;return!1},c=function(t){var i=n.getComputedStyle(t)["overflow-y"],r=n.getComputedStyle(t)["overflow-x"],u=("scroll"===i||"auto"===i)&&t.scrollHeight>t.clientHeight,f=("scroll"===r||"auto"===r)&&t.scrollWidth>t.clientWidth;return u||f},o=function(n){for(var t=!1;;){if(t=c(n.get(0)))break;if(n=n.parent(),!n.length||n.hasClass("fancybox-stage")||n.is("body"))break}return t},r=function(n){var t=this;t.instance=n;t.$bg=n.$refs.bg;t.$stage=n.$refs.stage;t.$container=n.$refs.container;t.destroy();t.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(t,"ontouchstart"))};r.prototype.destroy=function(){this.$container.off(".fb.touch")};r.prototype.ontouchstart=function(r){var f=this,s=i(r.target),l=f.instance,c=l.current,v=c.$content,a="touchstart"==r.type;if(a&&f.$container.off("mousedown.fb.touch"),!c||f.instance.isAnimating||f.instance.isClosing)return r.stopPropagation(),void r.preventDefault();if((!r.originalEvent||2!=r.originalEvent.button)&&s.length&&!h(s)&&!h(s.parent())&&!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left)&&(f.startPoints=e(r),f.startPoints&&!(f.startPoints.length>1&&l.isSliding))){if(f.$target=s,f.$content=v,f.canTap=!0,i(t).off(".fb.touch"),i(t).on(a?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(f,"ontouchend")),i(t).on(a?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(f,"ontouchmove")),!l.current.opts.touch&&!l.canPan()||!s.is(f.$stage)&&!f.$stage.find(s).length)return void(s.is("img")&&r.preventDefault());r.stopPropagation();i.fancybox.isMobile&&(o(f.$target)||o(f.$target.parent()))||r.preventDefault();f.canvasWidth=Math.round(c.$slide[0].clientWidth);f.canvasHeight=Math.round(c.$slide[0].clientHeight);f.startTime=(new Date).getTime();f.distanceX=f.distanceY=f.distance=0;f.isPanning=!1;f.isSwiping=!1;f.isZooming=!1;f.sliderStartPos=f.sliderLastPos||{top:0,left:0};f.contentStartPos=i.fancybox.getTranslate(f.$content);f.contentLastPos=null;1!==f.startPoints.length||f.isZooming||(f.canTap=!l.isSliding,"image"===c.type&&(f.contentStartPos.width>f.canvasWidth+1||f.contentStartPos.height>f.canvasHeight+1)?(i.fancybox.stop(f.$content),f.$content.css("transition-duration","0ms"),f.isPanning=!0):f.isSwiping=!0,f.$container.addClass("fancybox-controls--isGrabbing"));2!==f.startPoints.length||l.isAnimating||c.hasError||"image"!==c.type||!c.isLoaded&&!c.$ghost||(f.isZooming=!0,f.isSwiping=!1,f.isPanning=!1,i.fancybox.stop(f.$content),f.$content.css("transition-duration","0ms"),f.centerPointStartX=.5*(f.startPoints[0].x+f.startPoints[1].x)-i(n).scrollLeft(),f.centerPointStartY=.5*(f.startPoints[0].y+f.startPoints[1].y)-i(n).scrollTop(),f.percentageOfImageAtPinchPointX=(f.centerPointStartX-f.contentStartPos.left)/f.contentStartPos.width,f.percentageOfImageAtPinchPointY=(f.centerPointStartY-f.contentStartPos.top)/f.contentStartPos.height,f.startDistanceBetweenFingers=u(f.startPoints[0],f.startPoints[1]))}};r.prototype.ontouchmove=function(n){var t=this;if(t.newPoints=e(n),i.fancybox.isMobile&&(o(t.$target)||o(t.$target.parent())))return n.stopPropagation(),void(t.canTap=!1);if((t.instance.current.opts.touch||t.instance.canPan())&&t.newPoints&&t.newPoints.length&&(t.distanceX=u(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=u(t.newPoints[0],t.startPoints[0],"y"),t.distance=u(t.newPoints[0],t.startPoints[0]),t.distance>0)){if(!t.$target.is(t.$stage)&&!t.$stage.find(t.$target).length)return;n.stopPropagation();n.preventDefault();t.isSwiping?t.onSwipe():t.isPanning?t.onPan():t.isZooming&&t.onZoom()}};r.prototype.onSwipe=function(){var u,t=this,e=t.isSwiping,r=t.sliderStartPos.left||0;e===!0?Math.abs(t.distance)>10&&(t.canTap=!1,t.instance.group.length<2&&t.instance.opts.touch.vertical?t.isSwiping="y":t.instance.isSliding||t.instance.opts.touch.vertical===!1||"auto"===t.instance.opts.touch.vertical&&i(n).width()>800?t.isSwiping="x":(u=Math.abs(180*Math.atan2(t.distanceY,t.distanceX)/Math.PI),t.isSwiping=u>45&&u<135?"y":"x"),t.instance.isSliding=t.isSwiping,t.startPoints=t.newPoints,i.each(t.instance.slides,function(n,r){i.fancybox.stop(r.$slide);r.$slide.css("transition-duration","0ms");r.inTransition=!1;r.pos===t.instance.current.pos&&(t.sliderStartPos.left=i.fancybox.getTranslate(r.$slide).left)}),t.instance.SlideShow&&t.instance.SlideShow.isActive&&t.instance.SlideShow.stop()):("x"==e&&(t.distanceX>0&&(t.instance.group.length<2||0===t.instance.current.index&&!t.instance.current.opts.loop)?r+=Math.pow(t.distanceX,.8):t.distanceX<0&&(t.instance.group.length<2||t.instance.current.index===t.instance.group.length-1&&!t.instance.current.opts.loop)?r-=Math.pow(-t.distanceX,.8):r+=t.distanceX),t.sliderLastPos={top:"x"==e?0:t.sliderStartPos.top+t.distanceY,left:r},t.requestId&&(f(t.requestId),t.requestId=null),t.requestId=s(function(){t.sliderLastPos&&(i.each(t.instance.slides,function(n,r){var u=r.pos-t.instance.currPos;i.fancybox.setTranslate(r.$slide,{top:t.sliderLastPos.top,left:t.sliderLastPos.left+u*t.canvasWidth+u*r.opts.gutter})}),t.$container.addClass("fancybox-is-sliding"))}))};r.prototype.onPan=function(){var r,u,t,n=this;n.canTap=!1;r=n.contentStartPos.width>n.canvasWidth?n.contentStartPos.left+n.distanceX:n.contentStartPos.left;u=n.contentStartPos.top+n.distanceY;t=n.limitMovement(r,u,n.contentStartPos.width,n.contentStartPos.height);t.scaleX=n.contentStartPos.scaleX;t.scaleY=n.contentStartPos.scaleY;n.contentLastPos=t;n.requestId&&(f(n.requestId),n.requestId=null);n.requestId=s(function(){i.fancybox.setTranslate(n.$content,n.contentLastPos)})};r.prototype.limitMovement=function(n,t,i,r){var f,e,o,s,u=this,h=u.canvasWidth,c=u.canvasHeight,v=u.contentStartPos.left,y=u.contentStartPos.top,l=u.distanceX,a=u.distanceY;return f=Math.max(0,.5*h-.5*i),e=Math.max(0,.5*c-.5*r),o=Math.min(h-i,.5*h-.5*i),s=Math.min(c-r,.5*c-.5*r),i>h&&(l>0&&n>f&&(n=f-1+Math.pow(-f+v+l,.8)||0),l<0&&n<o&&(n=o+1-Math.pow(o-v-l,.8)||0)),r>c&&(a>0&&t>e&&(t=e-1+Math.pow(-e+y+a,.8)||0),a<0&&t<s&&(t=s+1-Math.pow(s-y-a,.8)||0)),{top:t,left:n}};r.prototype.limitPosition=function(n,t,i,r){var e=this,u=e.canvasWidth,f=e.canvasHeight;return i>u?(n=n>0?0:n,n=n<u-i?u-i:n):n=Math.max(0,u/2-i/2),r>f?(t=t>0?0:t,t=t<f-r?f-r:t):t=Math.max(0,f/2-r/2),{top:t,left:n}};r.prototype.onZoom=function(){var t=this,e=t.contentStartPos.width,o=t.contentStartPos.height,l=t.contentStartPos.left,a=t.contentStartPos.top,v=u(t.newPoints[0],t.newPoints[1]),r=v/t.startDistanceBetweenFingers,h=Math.floor(e*r),c=Math.floor(o*r),y=(e-h)*t.percentageOfImageAtPinchPointX,p=(o-c)*t.percentageOfImageAtPinchPointY,w=(t.newPoints[0].x+t.newPoints[1].x)/2-i(n).scrollLeft(),b=(t.newPoints[0].y+t.newPoints[1].y)/2-i(n).scrollTop(),k=w-t.centerPointStartX,d=b-t.centerPointStartY,g=l+(y+k),nt=a+(p+d),tt={top:nt,left:g,scaleX:t.contentStartPos.scaleX*r,scaleY:t.contentStartPos.scaleY*r};t.canTap=!1;t.newWidth=h;t.newHeight=c;t.contentLastPos=tt;t.requestId&&(f(t.requestId),t.requestId=null);t.requestId=s(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})};r.prototype.ontouchend=function(n){var r=this,u=Math.max((new Date).getTime()-r.startTime,1),o=r.isSwiping,s=r.isPanning,h=r.isZooming;return r.endPoints=e(n),r.$container.removeClass("fancybox-controls--isGrabbing"),i(t).off(".fb.touch"),r.requestId&&(f(r.requestId),r.requestId=null),r.isSwiping=!1,r.isPanning=!1,r.isZooming=!1,r.canTap?r.onTap(n):(r.speed=366,r.velocityX=r.distanceX/u*.5,r.velocityY=r.distanceY/u*.5,r.speedX=Math.max(.5*r.speed,Math.min(1.5*r.speed,1/Math.abs(r.velocityX)*r.speed)),void(s?r.endPanning():h?r.endZooming():r.endSwiping(o)))};r.prototype.endSwiping=function(n){var t=this,r=!1;t.instance.isSliding=!1;t.sliderLastPos=null;"y"==n&&Math.abs(t.distanceY)>50?(i.fancybox.animate(t.instance.current.$slide,{top:t.sliderStartPos.top+t.distanceY+150*t.velocityY,opacity:0},150),r=t.instance.close(!0,300)):"x"==n&&t.distanceX>50&&t.instance.group.length>1?r=t.instance.previous(t.speedX):"x"==n&&t.distanceX<-50&&t.instance.group.length>1&&(r=t.instance.next(t.speedX));r!==!1||"x"!=n&&"y"!=n||t.instance.jumpTo(t.instance.current.index,150);t.$container.removeClass("fancybox-is-sliding")};r.prototype.endPanning=function(){var r,u,t,n=this;n.contentLastPos&&(n.instance.current.opts.touch.momentum===!1?(r=n.contentLastPos.left,u=n.contentLastPos.top):(r=n.contentLastPos.left+n.velocityX*n.speed,u=n.contentLastPos.top+n.velocityY*n.speed),t=n.limitPosition(r,u,n.contentStartPos.width,n.contentStartPos.height),t.width=n.contentStartPos.width,t.height=n.contentStartPos.height,i.fancybox.animate(n.$content,t,330))};r.prototype.endZooming=function(){var u,f,e,o,n=this,s=n.instance.current,t=n.newWidth,r=n.newHeight;n.contentLastPos&&(u=n.contentLastPos.left,f=n.contentLastPos.top,o={top:f,left:u,width:t,height:r,scaleX:1,scaleY:1},i.fancybox.setTranslate(n.$content,o),t<n.canvasWidth&&r<n.canvasHeight?n.instance.scaleToFit(150):t>s.width||r>s.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(e=n.limitPosition(u,f,t,r),i.fancybox.setTranslate(n.content,i.fancybox.getTranslate(n.$content)),i.fancybox.animate(n.$content,e,150)))};r.prototype.onTap=function(n){var u,r=this,o=i(n.target),t=r.instance,f=t.current,s=n&&e(n)||r.startPoints,h=s[0]?s[0].x-r.$stage.offset().left:0,c=s[0]?s[0].y-r.$stage.offset().top:0,l=function(u){var e=f.opts[u];if(i.isFunction(e)&&(e=e.apply(t,[f,n])),e)switch(e){case"close":t.close(r.startEvent);break;case"toggleControls":t.toggleControls(!0);break;case"next":t.next();break;case"nextOrClose":t.group.length>1?t.next():t.close(r.startEvent);break;case"zoom":"image"==f.type&&(f.isLoaded||f.$ghost)&&(t.canPan()?t.scaleToFit():t.isScaledDown()?t.scaleToActual(h,c):t.group.length<2&&t.close(r.startEvent))}};if(!(n.originalEvent&&2==n.originalEvent.button||t.isSliding||h>o[0].clientWidth+o.offset().left)){if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))u="Outside";else if(o.is(".fancybox-slide"))u="Slide";else{if(!t.current.$content||!t.current.$content.has(n.target).length)return;u="Content"}if(r.tapped){if(clearTimeout(r.tapped),r.tapped=null,Math.abs(h-r.tapX)>50||Math.abs(c-r.tapY)>50||t.isSliding)return this;l("dblclick"+u)}else r.tapX=h,r.tapY=c,f.opts["dblclick"+u]&&f.opts["dblclick"+u]!==f.opts["click"+u]?r.tapped=setTimeout(function(){r.tapped=null;l("click"+u)},300):l("click"+u);return this}};i(t).on("onActivate.fb",function(n,t){t&&!t.Guestures&&(t.Guestures=new r(t))});i(t).on("beforeClose.fb",function(n,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,window.jQuery),function(n,t){"use strict";var i=function(n){this.instance=n;this.init()};t.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var n=this;n.$button=n.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){n.toggle()});(n.instance.group.length<2||!n.instance.group[n.instance.currIndex].opts.slideShow)&&n.$button.hide()},set:function(){var n=this;n.instance&&n.instance.current&&(n.instance.current.opts.loop||n.instance.currIndex<n.instance.group.length-1)?n.timer=setTimeout(function(){n.instance.next()},n.instance.current.opts.slideShow.speed||n.speed):(n.stop(),n.instance.idleSecondsCounter=0,n.instance.showControls())},clear:function(){var n=this;clearTimeout(n.timer);n.timer=null},start:function(){var n=this,t=n.instance.current;n.instance&&t&&(t.opts.loop||t.index<n.instance.group.length-1)&&(n.isActive=!0,n.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_STOP).addClass("fancybox-button--pause"),t.isComplete&&n.set())},stop:function(){var n=this,t=n.instance.current;n.clear();n.$button.attr("title",t.opts.i18n[t.opts.lang].PLAY_START).removeClass("fancybox-button--pause");n.isActive=!1},toggle:function(){var n=this;n.isActive?n.stop():n.start()}});t(n).on({"onInit.fb":function(n,t){t&&!t.SlideShow&&(t.SlideShow=new i(t))},"beforeShow.fb":function(n,t,i,r){var u=t&&t.SlideShow;r?u&&i.opts.slideShow.autoStart&&u.start():u&&u.isActive&&u.clear()},"afterShow.fb":function(n,t){var i=t&&t.SlideShow;i&&i.isActive&&i.set()},"afterKeydown.fb":function(i,r,u,f,e){var o=r&&r.SlideShow;o&&u.opts.slideShow&&(80===e||32===e)&&!t(n.activeElement).is("button,a,input")&&(f.preventDefault(),o.toggle())},"beforeClose.fb onDeactivate.fb":function(n,t){var i=t&&t.SlideShow;i&&i.stop()}});t(n).on("visibilitychange",function(){var r=t.fancybox.getInstance(),i=r&&r.SlideShow;i&&i.isActive&&(n.hidden?i.clear():i.set())})}(document,window.jQuery),function(n,t){"use strict";var i=function(){for(var t,i,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],f={},u=0;u<r.length;u++)if(t=r[u],t&&t[1]in n){for(i=0;i<t.length;i++)f[r[0][i]]=t[i];return f}return!1}(),r;if(!i)return void(t&&t.fancybox&&(t.fancybox.defaults.btnTpl.fullScreen=!1));r={request:function(t){t=t||n.documentElement;t[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){n[i.exitFullscreen]()},toggle:function(t){t=t||n.documentElement;this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(n[i.fullscreenElement])},enabled:function(){return Boolean(n[i.fullscreenEnabled])}};t(n).on({"onInit.fb":function(n,t){var i,u=t.$refs.toolbar.find("[data-fancybox-fullscreen]");t&&!t.FullScreen&&t.group[t.currIndex].opts.fullScreen?(i=t.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(n){n.stopPropagation();n.preventDefault();r.toggle(i[0])}),t.opts.fullScreen&&t.opts.fullScreen.autoStart===!0&&r.request(i[0]),t.FullScreen=r):u.hide()},"afterKeydown.fb":function(n,t,i,r,u){t&&t.FullScreen&&70===u&&(r.preventDefault(),t.FullScreen.toggle(t.$refs.container[0]))},"beforeClose.fb":function(n){n&&n.FullScreen&&r.exit()}});t(n).on(i.fullscreenchange,function(){var n=t.fancybox.getInstance();n.current&&"image"===n.current.type&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0));n.trigger("onFullscreenChange",r.isFullscreen())})}(document,window.jQuery),function(n,t){"use strict";var i=function(n){this.instance=n;this.init()};t.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var n=this,t=n.instance.group[0],i=n.instance.group[1];n.$button=n.instance.$refs.toolbar.find("[data-fancybox-thumbs]");n.instance.group.length>1&&n.instance.group[n.instance.currIndex].opts.thumbs&&("image"==t.type||t.opts.thumb||t.opts.$thumb)&&("image"==i.type||i.opts.thumb||i.opts.$thumb)?(n.$button.on("click",function(){n.toggle()}),n.isActive=!0):(n.$button.hide(),n.isActive=!1)},create:function(){var i,n,r=this.instance;this.$grid=t('<div class="fancybox-thumbs"><\/div>').appendTo(r.$refs.container);i="<ul>";t.each(r.group,function(t,r){n=r.opts.thumb||(r.opts.$thumb?r.opts.$thumb.attr("src"):null);n||"image"!==r.type||(n=r.src);n&&n.length&&(i+='<li data-index="'+t+'"  tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+n+'" /><\/li>')});i+="<\/ul>";this.$list=t(i).appendTo(this.$grid).on("click","li",function(){r.jumpTo(t(this).data("index"))});this.$list.find("img").hide().one("load",function(){var n,i,r,u,o=t(this).parent().removeClass("fancybox-thumbs-loading"),f=o.outerWidth(),e=o.outerHeight();n=this.naturalWidth||this.width;i=this.naturalHeight||this.height;r=n/f;u=i/e;r>=1&&u>=1&&(r>u?(n/=u,i=e):(n=f,i/=r));t(this).css({width:Math.floor(n),height:Math.floor(i),"margin-top":Math.min(0,Math.floor(.3*e-.3*i)),"margin-left":Math.min(0,Math.floor(.5*f-.5*n))}).show()}).each(function(){this.src=t(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide");this.instance.update()},hide:function(){this.isVisible=!1;this.update()},show:function(){this.isVisible=!0;this.update()},toggle:function(){this.isVisible=!this.isVisible;this.update()}});t(n).on({"onInit.fb":function(n,t){t&&!t.Thumbs&&(t.Thumbs=new i(t))},"beforeShow.fb":function(n,t,i,r){var u=t&&t.Thumbs;if(u&&u.isActive){if(i.modal)return u.$button.hide(),void u.hide();r&&t.opts.thumbs.autoStart===!0&&u.show();u.isVisible&&u.focus()}},"afterKeydown.fb":function(n,t,i,r,u){var f=t&&t.Thumbs;f&&f.isActive&&71===u&&(r.preventDefault(),f.toggle())},"beforeClose.fb":function(n,t){var i=t&&t.Thumbs;i&&i.isVisible&&t.opts.thumbs.hideOnClose!==!1&&i.close()}})}(document,window.jQuery),function(n,t,i){"use strict";function f(){var r=t.location.hash.substr(1),n=r.split("-"),i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,u=n.join("-");return i<1&&(i=1),{hash:r,index:i,gallery:u}}function s(n){var t;""!==n.gallery&&(t=i("[data-fancybox='"+i.escapeSelector(n.gallery)+"']").eq(n.index-1),t.length||(t=i("#"+i.escapeSelector(n.gallery))),t.length&&(o=!1,t.trigger("click")))}function e(n){var t;return!!n&&(t=n.current?n.current.opts:n.opts,t.hash||(t.$orig?t.$orig.data("fancybox"):""))}i.escapeSelector||(i.escapeSelector=function(n){var t=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n};return(n+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,t)});var o=!0,r=null,u=null;i(function(){setTimeout(function(){i.fancybox.defaults.hash!==!1&&(i(n).on({"onInit.fb":function(n,t){var i,r;t.group[t.currIndex].opts.hash!==!1&&(i=f(),r=e(t),r&&i.gallery&&r==i.gallery&&(t.currIndex=i.index-1))},"beforeShow.fb":function(i,f,s){var h;s&&s.opts.hash!==!1&&(h=e(f),h&&""!==h&&(t.location.hash.indexOf(h)<0&&(f.opts.origHash=t.location.hash),r=h+(f.group.length>1?"-"+(s.index+1):""),"replaceState"in t.history?(u&&clearTimeout(u),u=setTimeout(function(){t.history[o?"pushState":"replaceState"]({},n.title,t.location.pathname+t.location.search+"#"+r);u=null;o=!1},300)):t.location.hash=r))},"beforeClose.fb":function(f,o,s){var h,c;u&&clearTimeout(u);s.opts.hash!==!1&&(h=e(o),c=o&&o.opts.origHash?o.opts.origHash:"",h&&""!==h&&("replaceState"in history?t.history.replaceState({},n.title,t.location.pathname+t.location.search+c):(t.location.hash=c,i(t).scrollTop(o.scrollTop).scrollLeft(o.scrollLeft))),r=null)}}),i(t).on("hashchange.fb",function(){var n=f();i.fancybox.getInstance()?!r||r===n.gallery+"-"+n.index||1===n.index&&r==n.gallery||(r=null,i.fancybox.close()):""!==n.gallery&&s(n)}),s(f()))},50)})}(document,window,window.jQuery),function(n,t){"use strict";var i;if((typeof exports=="undefined"?"undefined":_typeof(exports))==="object"){try{i=require("moment")}catch(r){}module.exports=t(i)}else typeof define=="function"&&define.amd?define(function(n){try{i=n("moment")}catch(r){}return t(i)}):n.Pikaday=t(n.moment)}(this,function(n){"use strict";var e=typeof n=="function",l=!!window.addEventListener,t=window.document,s=window.setTimeout,u=function(n,t,i,r){l?n.addEventListener(t,i,!!r):n.attachEvent("on"+t,i)},f=function(n,t,i,r){l?n.removeEventListener(t,i,!!r):n.detachEvent("on"+t,i)},v=function(n,i,r){var u;t.createEvent?(u=t.createEvent("HTMLEvents"),u.initEvent(i,!0,!1),u=o(u,r),n.dispatchEvent(u)):t.createEventObject&&(u=t.createEventObject(),u=o(u,r),n.fireEvent("on"+i,u))},k=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},r=function(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")!==-1},d=function(n,t){r(n,t)||(n.className=n.className===""?t:n.className+" "+t)},g=function(n,t){n.className=k((" "+n.className+" ").replace(" "+t+" "," "))},a=function(n){return/Array/.test(Object.prototype.toString.call(n))},i=function(n){return/Date/.test(Object.prototype.toString.call(n))&&!isNaN(n.getTime())},nt=function(n){var t=n.getDay();return t===0||t===6},tt=function(n){return n%4==0&&n%100!=0||n%400==0},it=function(n,t){return[31,tt(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},h=function(n){i(n)&&n.setHours(0,0,0,0)},c=function(n,t){return n.getTime()===t.getTime()},o=function o(n,t,r){var u,f;for(u in t)f=n[u]!==undefined,f&&_typeof(t[u])==="object"&&t[u]!==null&&t[u].nodeName===undefined?i(t[u])?r&&(n[u]=new Date(t[u].getTime())):a(t[u])?r&&(n[u]=t[u].slice(0)):n[u]=o({},t[u],r):(r||!f)&&(n[u]=t[u]);return n},y=function(n){return n.month<0&&(n.year-=Math.ceil(Math.abs(n.month)/12),n.month+=12),n.month>11&&(n.year+=Math.floor(Math.abs(n.month)/12),n.month-=12),n},p={field:null,bound:undefined,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:undefined,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},w=function(n,t,i){for(t+=n.firstDay;t>=7;)t-=7;return i?n.i18n.weekdaysShort[t]:n.i18n.weekdays[t]},rt=function(n){if(n.isEmpty)return'<td class="is-empty"><\/td>';var t=[];return n.isDisabled&&t.push("is-disabled"),n.isToday&&t.push("is-today"),n.isSelected&&t.push("is-selected"),n.isInRange&&t.push("is-inrange"),n.isStartRange&&t.push("is-startrange"),n.isEndRange&&t.push("is-endrange"),'<td data-day="'+n.day+'" class="'+t.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+n.year+'" data-pika-month="'+n.month+'" data-pika-day="'+n.day+'">'+n.day+"<\/button><\/td>"},ut=function(n,t,i){var r=new Date(i,0,1),u=Math.ceil(((new Date(i,t,n)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+u+"<\/td>"},ft=function(n,t){return"<tr>"+(t?n.reverse():n).join("")+"<\/tr>"},et=function(n){return"<tbody>"+n.join("")+"<\/tbody>"},ot=function(n){var t,i=[];for(n.showWeekNumber&&i.push("<th><\/th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+w(n,t)+'">'+w(n,t,!0)+"<\/abbr><\/th>");return"<thead>"+(n.isRTL?i.reverse():i).join("")+"<\/thead>"},st=function(n,t,i,r,u){for(var h,f=n._o,v=i===f.minYear,y=i===f.maxYear,s='<div class="pika-title">',c,l,p=!0,w=!0,o=[],e=0;e<12;e++)o.push('<option value="'+(i===u?e-t:12+e-t)+'"'+(e===r?" selected":"")+(v&&e<f.minMonth||y&&e>f.maxMonth?"disabled":"")+">"+f.i18n.months[e]+"<\/option>");for(c='<div class="pika-label">'+f.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+o.join("")+"<\/select><\/div>",a(f.yearRange)?(e=f.yearRange[0],h=f.yearRange[1]+1):(e=i-f.yearRange,h=1+i+f.yearRange),o=[];e<h&&e<=f.maxYear;e++)e>=f.minYear&&o.push('<option value="'+e+'"'+(e===i?" selected":"")+">"+e+"<\/option>");return l='<div class="pika-label">'+i+f.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+o.join("")+"<\/select><\/div>",s+=f.showMonthAfterYear?l+c:c+l,v&&(r===0||f.minMonth>=r)&&(p=!1),y&&(r===11||f.maxMonth<=r)&&(w=!1),t===0&&(s+='<button class="pika-prev'+(p?"":" is-disabled")+'" type="button">'+f.i18n.previousMonth+"<\/button>"),t===n._o.numberOfMonths-1&&(s+='<button class="pika-next'+(w?"":" is-disabled")+'" type="button">'+f.i18n.nextMonth+"<\/button>"),s+"<\/div>"},ht=function(n,t){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+ot(n)+et(t)+"<\/table>"},b=function(f){var o=this,h=o.config(f),c;o._onMouseDown=function(n){if(o._v){n=n||window.event;var t=n.target||n.srcElement;if(t)if(r(t,"is-disabled")||(r(t,"pika-button")&&!r(t,"is-empty")?(o.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),h.bound&&s(function(){o.hide();h.field&&h.field.blur()},100)):r(t,"pika-prev")?o.prevMonth():r(t,"pika-next")&&o.nextMonth()),r(t,"pika-select"))o._c=!0;else if(n.preventDefault)n.preventDefault();else return n.returnValue=!1,!1}};o._onChange=function(n){n=n||window.event;var t=n.target||n.srcElement;t&&(r(t,"pika-select-month")?o.gotoMonth(t.value):r(t,"pika-select-year")&&o.gotoYear(t.value))};o._onInputChange=function(t){var r;t.firedBy!==o&&(e?(r=n(h.field.value,h.format),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(h.field.value)),i(r)&&o.setDate(r),o._v||o.show())};o._onInputFocus=function(){o.show()};o._onInputClick=function(){o.show()};o._onInputBlur=function(){var n=t.activeElement;do if(r(n,"pika-single"))return;while(n=n.parentNode);o._c||(o._b=s(function(){o.hide()},50));o._c=!1};o._onClick=function(n){n=n||window.event;var t=n.target||n.srcElement,i=t;if(t){!l&&r(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),u(t,"change",o._onChange)));do if(r(i,"pika-single")||i===h.trigger)return;while(i=i.parentNode);o._v&&t!==h.trigger&&i!==h.trigger&&o.hide()}};o.el=t.createElement("div");o.el.className="pika-single"+(h.isRTL?" is-rtl":"")+(h.theme?" "+h.theme:"");u(o.el,"mousedown",o._onMouseDown,!0);u(o.el,"touchend",o._onMouseDown,!0);u(o.el,"change",o._onChange);h.field&&(h.container?h.container.appendChild(o.el):h.bound?t.body.appendChild(o.el):h.field.parentNode.insertBefore(o.el,h.field.nextSibling),u(h.field,"change",o._onInputChange),h.defaultDate||(h.defaultDate=e&&h.field.value?n(h.field.value,h.format).toDate():new Date(Date.parse(h.field.value)),h.setDefaultDate=!0));c=h.defaultDate;i(c)?h.setDefaultDate?o.setDate(c,!0):o.gotoDate(c):o.gotoDate(new Date);h.bound?(this.hide(),o.el.className+=" is-bound",u(h.trigger,"click",o._onInputClick),u(h.trigger,"focus",o._onInputFocus),u(h.trigger,"blur",o._onInputBlur)):this.show()};return b.prototype={config:function(n){var t,r,u;return this._o||(this._o=o({},p,!0)),t=o(this._o,n,!0),t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme=typeof t.theme=="string"&&t.theme?t.theme:null,t.bound=!!(t.bound!==undefined?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn=typeof t.disableDayFn=="function"?t.disableDayFn:null,r=parseInt(t.numberOfMonths,10)||1,t.numberOfMonths=r>4?4:r,i(t.minDate)||(t.minDate=!1),i(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),a(t.yearRange)?(u=(new Date).getFullYear()-10,t.yearRange[0]=parseInt(t.yearRange[0],10)||u,t.yearRange[1]=parseInt(t.yearRange[1],10)||u):(t.yearRange=Math.abs(parseInt(t.yearRange,10))||p.yearRange,t.yearRange>100&&(t.yearRange=100)),t},toString:function(t){return i(this._d)?e?n(this._d).format(t||this._o.format):this._d.toDateString():""},getMoment:function(){return e?n(this._d):null},setMoment:function(t,i){e&&n.isMoment(t)&&this.setDate(t.toDate(),i)},getDate:function(){return i(this._d)?new Date(this._d.getTime()):null},setDate:function(n,t){if(!n)return this._d=null,this._o.field&&(this._o.field.value="",v(this._o.field,"change",{firedBy:this})),this.draw();if(typeof n=="string"&&(n=new Date(Date.parse(n))),i(n)){var r=this._o.minDate,u=this._o.maxDate;i(r)&&n<r?n=r:i(u)&&n>u&&(n=u);this._d=new Date(n.getTime());h(this._d);this.gotoDate(this._d);this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this}));t||typeof this._o.onSelect!="function"||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(n){var r=!0;if(i(n)){if(this.calendars){var f=new Date(this.calendars[0].year,this.calendars[0].month,1),t=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),u=n.getTime();t.setMonth(t.getMonth()+1);t.setDate(t.getDate()-1);r=u<f.getTime()||t.getTime()<u}r&&(this.calendars=[{month:n.getMonth(),year:n.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=y(this.calendars[0]);for(var n=1;n<this._o.numberOfMonths;n++)this.calendars[n]=y({month:this.calendars[0].month+n,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(n){isNaN(n)||(this.calendars[0].month=parseInt(n,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(n){isNaN(n)||(this.calendars[0].year=parseInt(n,10),this.adjustCalendars())},setMinDate:function(n){h(n);this._o.minDate=n;this._o.minYear=n.getFullYear();this._o.minMonth=n.getMonth();this.draw()},setMaxDate:function(n){h(n);this._o.maxDate=n;this._o.maxYear=n.getFullYear();this._o.maxMonth=n.getMonth();this.draw()},setStartRange:function(n){this._o.startRange=n},setEndRange:function(n){this._o.endRange=n},draw:function(n){var t,r;if(this._v||n){var i=this._o,e=i.minYear,o=i.maxYear,u=i.minMonth,f=i.maxMonth,h="";for(this._y<=e&&(this._y=e,!isNaN(u)&&this._m<u&&(this._m=u)),this._y>=o&&(this._y=o,!isNaN(f)&&this._m>f&&(this._m=f)),t=0;t<i.numberOfMonths;t++)h+='<div class="pika-lendar">'+st(this,t,this.calendars[t].year,this.calendars[t].month,this.calendars[0].year)+this.render(this.calendars[t].year,this.calendars[t].month)+"<\/div>";this.el.innerHTML=h;i.bound&&i.field.type!=="hidden"&&s(function(){i.trigger.focus()},1);typeof this._o.onDraw=="function"&&(r=this,s(function(){r._o.onDraw.call(r)},0))}},adjustPosition:function(){var n,i,f,e,s,h,c,r,u,o;if(!this._o.container){if(this.el.style.position="absolute",n=this._o.trigger,i=n,f=this.el.offsetWidth,e=this.el.offsetHeight,s=window.innerWidth||t.documentElement.clientWidth,h=window.innerHeight||t.documentElement.clientHeight,c=window.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop,typeof n.getBoundingClientRect=="function")o=n.getBoundingClientRect(),r=o.left+window.pageXOffset,u=o.bottom+window.pageYOffset;else for(r=i.offsetLeft,u=i.offsetTop+i.offsetHeight;i=i.offsetParent;)r+=i.offsetLeft,u+=i.offsetTop;(this._o.reposition&&r+f>s||this._o.position.indexOf("right")>-1&&r-f+n.offsetWidth>0)&&(r=r-f+n.offsetWidth);(this._o.reposition&&u+e>h+c||this._o.position.indexOf("top")>-1&&u-e-n.offsetHeight>0)&&(u=u-e-n.offsetHeight);this.el.style.left=r+"px";this.el.style.top=u+"px"}},render:function(n,t){var r=this._o,v=new Date,y=it(n,t),f=new Date(n,t,1).getDay(),p=[],o=[],s,l,e,a;for(h(v),r.firstDay>0&&(f-=r.firstDay,f<0&&(f+=7)),s=y+f,l=s;l>7;)l-=7;for(s+=7-l,e=0,a=0;e<s;e++){var u=new Date(n,t,1+(e-f)),w=i(this._d)?c(u,this._d):!1,b=c(u,v),k=e<f||e>=y+f,d=r.startRange&&c(r.startRange,u),g=r.endRange&&c(r.endRange,u),tt=r.startRange&&r.endRange&&r.startRange<u&&u<r.endRange,et=r.minDate&&u<r.minDate||r.maxDate&&u>r.maxDate||r.disableWeekends&&nt(u)||r.disableDayFn&&r.disableDayFn(u),ot={day:1+(e-f),month:t,year:n,isSelected:w,isToday:b,isDisabled:et,isEmpty:k,isStartRange:d,isEndRange:g,isInRange:tt};o.push(rt(ot));++a==7&&(r.showWeekNumber&&o.unshift(ut(e-f,t,n)),p.push(ft(o,r.isRTL)),o=[],a=0)}return ht(r,p)},isVisible:function(){return this._v},show:function(){this._v||(g(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(u(t,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var n=this._v;n!==!1&&(this._o.bound&&f(t,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",d(this.el,"is-hidden"),this._v=!1,n!==undefined&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){this.hide();f(this.el,"mousedown",this._onMouseDown,!0);f(this.el,"touchend",this._onMouseDown,!0);f(this.el,"change",this._onChange);this._o.field&&(f(this._o.field,"change",this._onInputChange),this._o.bound&&(f(this._o.trigger,"click",this._onInputClick),f(this._o.trigger,"focus",this._onInputFocus),f(this._o.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},b}),function(n){if(typeof define=="function"&&define.amd)define(n);else if((typeof exports=="undefined"?"undefined":_typeof(exports))==="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n();t.noConflict=function(){return window.Cookies=i,t}}}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,s;if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var v=l[c].split("="),h=v[0].replace(a,decodeURIComponent),e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(e=i.read?i.read(e,h):i(e,h)||e.replace(a,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===h){o=e;break}t||(o[h]=e)}catch(y){}}return o}return r.get=r.set=r,r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});bannerData={questions:[{text1:"You've had an accident <span data-fade data-fade-delay=\"2000\">- and you're ok.<\/span>",text2:"What do you do next?",responses:[{icon:"icon-walk",iconText:"Get out of car",responseTitle:"No! You shouldn't move.",responseDescription:"If you touch the ground, you could get an electric shock. Stay in the car with the engine off."},{icon:"icon-car",iconText:"Stay in car with the engine off",responseTitle:"That’s right.",responseDescription:"Leaving the car could mean getting an electric shock."},{icon:"icon-powerline",iconText:"Move powerlines off car",responseTitle:"No! The lines could be live, so don’t touch them.",responseDescription:"Stay in the car with the engine off."}]},{text1:"You're safe inside your car",text2:"Now, what's next?",responses:[{icon:"icon-phone",iconText:"Call 000",responseTitle:"Correct.",responseDescription:"They’ll attend the scene and get Western Power to make the area safe.<br /><br />You could also call Western Power."},{icon:"icon-wplogo",iconText:"Call Western Power",responseTitle:"That’s right.",responseDescription:"They’ll make the area safe and arrange for other emergency crews to attend.<br /><br />You could also call 000."},{icon:"icon-people",iconText:"Call bystanders over",responseTitle:"No! That’s dangerous.",responseDescription:"People must stay at least 8 metres away, because electricity from a damaged line can travel that far.<br /><br />Call 000 or Western Power to make the area safe."}]}]},function(n){n.fn.turntable=function(t){"use strict";function o(t){var o,s=t.length,e,f;for(o=i.axis==="scroll"?n(window).height():i.axis==="y"?r.height():r.width(),e=o/s,f=0;f<t.length;f++)u[f]={min:e*f,max:e+e*f,index:f};i.reverse===!0&&(u.reverse(),n.each(u,function(n,t){t.index=n}))}var s=function(){var n=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n},f=n("ul",this).children(),i=n.extend({},n.fn.turntable.defaults,t),r=n(this),u=[],e;return function(){f.each(function(){n(this).html('<img src="'+n(this).data("imgSrc")+'">')})}(),n("li:first-child>img",r).load(function(){n(this).parent().addClass("active");o(f)}),n(window).resize(function(){o(f)}),e=function(t,i){n.each(t,function(){i>=this.min&&i<=this.max&&(f.removeClass("active"),f.eq(this.index).addClass("active"))})},i.axis==="scroll"?n(window).scroll(function(){var t,f,o;t=i.scrollStart==="bottom"?r.height():i.scrollStart==="top"?0:r.height()/2;f=r.offset();o=f.top-(n(window).scrollTop()-t);e(u,o)}):s()?r.on("touchmove",function(t){t.preventDefault();var r=n(this).offset(),f=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],o;o=i.axis==="y"?f.pageY-r.top:f.pageX-r.left;e(u,o)}):r.on("mousemove",function(t){var r=n(this).offset(),f;f=i.axis==="y"?t.pageY-r.top:t.pageX-r.left;e(u,f)})};n.fn.turntable.defaults={axis:"x",reverse:!1,scrollStart:"middle"}}(jQuery),function(n,t){"object"===(typeof exports=="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.THREE=n.THREE||{})}(this,function(n){function ui(){}function i(n,t){this.x=n||0;this.y=t||0}function b(n,t,r,u,f,e,o,s,h,c){Object.defineProperty(this,"id",{value:pa++});this.uuid=l.generateUUID();this.name="";this.image=void 0!==n?n:b.DEFAULT_IMAGE;this.mipmaps=[];this.mapping=void 0!==t?t:b.DEFAULT_MAPPING;this.wrapS=void 0!==r?r:1001;this.wrapT=void 0!==u?u:1001;this.magFilter=void 0!==f?f:1006;this.minFilter=void 0!==e?e:1008;this.anisotropy=void 0!==h?h:1;this.format=void 0!==o?o:1023;this.type=void 0!==s?s:1009;this.offset=new i(0,0);this.repeat=new i(1,1);this.generateMipmaps=!0;this.premultiplyAlpha=!1;this.flipY=!0;this.unpackAlignment=4;this.encoding=void 0!==c?c:3e3;this.version=0;this.onUpdate=null}function y(n,t,i,r){this.x=n||0;this.y=t||0;this.z=i||0;this.w=void 0!==r?r:1}function nu(n,t,i){this.uuid=l.generateUUID();this.width=n;this.height=t;this.scissor=new y(0,0,n,t);this.scissorTest=!1;this.viewport=new y(0,0,n,t);i=i||{};void 0===i.minFilter&&(i.minFilter=1006);this.texture=new b(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding);this.depthBuffer=void 0!==i.depthBuffer?i.depthBuffer:!0;this.stencilBuffer=void 0!==i.stencilBuffer?i.stencilBuffer:!0;this.depthTexture=void 0!==i.depthTexture?i.depthTexture:null}function tu(n,t,i){nu.call(this,n,t,i);this.activeMipMapLevel=this.activeCubeFace=0}function d(n,t,i,r){this._x=n||0;this._y=t||0;this._z=i||0;this._w=void 0!==r?r:1}function t(n,t,i){this.x=n||0;this.y=t||0;this.z=i||0}function s(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function bi(n,t,i,r,u,f,e,o,s,h,c,l){b.call(this,null,f,e,o,s,h,r,u,c,l);this.image={data:n,width:t,height:i};this.magFilter=void 0!==s?s:1003;this.minFilter=void 0!==h?h:1003;this.flipY=this.generateMipmaps=!1;this.unpackAlignment=1}function li(n,t,i,r,u,f,e,o,s,h){n=void 0!==n?n:[];b.call(this,n,void 0!==t?t:301,i,r,u,f,e,o,s,h);this.flipY=!1}function iu(n,t,i){var r=n[0],u,f;if(0>=r||0<r)return n;if(u=t*i,f=tv[u],void 0===f&&(f=new Float32Array(u),tv[u]=f),0!==t)for(r.toArray(f,0),r=1,u=0;r!==t;++r)u+=i,n[r].toArray(f,u);return f}function ol(n,t){var i=iv[t],r;for(void 0===i&&(i=new Int32Array(t),iv[t]=i),r=0;r!==t;++r)i[r]=n.allocTextureUnit();return i}function ov(n,t){n.uniform1f(this.addr,t)}function sv(n,t){n.uniform1i(this.addr,t)}function hv(n,t){void 0===t.x?n.uniform2fv(this.addr,t):n.uniform2f(this.addr,t.x,t.y)}function cv(n,t){void 0!==t.x?n.uniform3f(this.addr,t.x,t.y,t.z):void 0!==t.r?n.uniform3f(this.addr,t.r,t.g,t.b):n.uniform3fv(this.addr,t)}function lv(n,t){void 0===t.x?n.uniform4fv(this.addr,t):n.uniform4f(this.addr,t.x,t.y,t.z,t.w)}function av(n,t){n.uniformMatrix2fv(this.addr,!1,t.elements||t)}function vv(n,t){void 0===t.elements?n.uniformMatrix3fv(this.addr,!1,t):(uv.set(t.elements),n.uniformMatrix3fv(this.addr,!1,uv))}function yv(n,t){void 0===t.elements?n.uniformMatrix4fv(this.addr,!1,t):(rv.set(t.elements),n.uniformMatrix4fv(this.addr,!1,rv))}function pv(n,t,i){var r=i.allocTextureUnit();n.uniform1i(this.addr,r);i.setTexture2D(t||ga,r)}function wv(n,t,i){var r=i.allocTextureUnit();n.uniform1i(this.addr,r);i.setTextureCube(t||nv,r)}function sl(n,t){n.uniform2iv(this.addr,t)}function hl(n,t){n.uniform3iv(this.addr,t)}function cl(n,t){n.uniform4iv(this.addr,t)}function bv(n){switch(n){case 5126:return ov;case 35664:return hv;case 35665:return cv;case 35666:return lv;case 35674:return av;case 35675:return vv;case 35676:return yv;case 35678:case 36198:return pv;case 35680:return wv;case 5124:case 35670:return sv;case 35667:case 35671:return sl;case 35668:case 35672:return hl;case 35669:case 35673:return cl}}function kv(n,t){n.uniform1fv(this.addr,t)}function dv(n,t){n.uniform1iv(this.addr,t)}function gv(n,t){n.uniform2fv(this.addr,iu(t,this.size,2))}function ny(n,t){n.uniform3fv(this.addr,iu(t,this.size,3))}function ty(n,t){n.uniform4fv(this.addr,iu(t,this.size,4))}function iy(n,t){n.uniformMatrix2fv(this.addr,!1,iu(t,this.size,4))}function ry(n,t){n.uniformMatrix3fv(this.addr,!1,iu(t,this.size,9))}function uy(n,t){n.uniformMatrix4fv(this.addr,!1,iu(t,this.size,16))}function fy(n,t,i){var r=t.length,u=ol(i,r);for(n.uniform1iv(this.addr,u),n=0;n!==r;++n)i.setTexture2D(t[n]||ga,u[n])}function ey(n,t,i){var r=t.length,u=ol(i,r);for(n.uniform1iv(this.addr,u),n=0;n!==r;++n)i.setTextureCube(t[n]||nv,u[n])}function oy(n){switch(n){case 5126:return kv;case 35664:return gv;case 35665:return ny;case 35666:return ty;case 35674:return iy;case 35675:return ry;case 35676:return uy;case 35678:return fy;case 35680:return ey;case 5124:case 35670:return dv;case 35667:case 35671:return sl;case 35668:case 35672:return hl;case 35669:case 35673:return cl}}function sy(n,t,i){this.id=n;this.addr=i;this.setValue=bv(t.type)}function hy(n,t,i){this.id=n;this.addr=i;this.size=t.size;this.setValue=oy(t.type)}function ll(n){this.id=n;this.seq=[];this.map={}}function ki(n,t,i){var s;for(this.seq=[],this.map={},this.renderer=i,i=n.getProgramParameter(t,n.ACTIVE_UNIFORMS),s=0;s<i;++s){var r=n.getActiveUniform(t,s),c=n.getUniformLocation(t,r.name),u=this,o=r.name,l=o.length;for(ah.lastIndex=0;;){var h=ah.exec(o),a=ah.lastIndex,f=h[1],e=h[3];if("]"===h[2]&&(f|=0),void 0===e||"["===e&&a+2===l){o=u;r=void 0===e?new sy(f,r,c):new hy(f,r,c);o.seq.push(r);o.map[r.id]=r;break}else e=u.map[f],void 0===e&&(e=new ll(f),f=u,u=e,f.seq.push(u),f.map[u.id]=u),u=e}}}function e(n,t,i){return void 0===t&&void 0===i?this.set(n):this.setRGB(n,t,i)}function fs(n,t){this.min=void 0!==n?n:new i(Infinity,Infinity);this.max=void 0!==t?t:new i(-Infinity,-Infinity)}function cy(n,r,u,f,e){var s,b,k,d,g,c,nt,l,a,v,y,p,tt,o,h,w;this.render=function(n,it,rt,ut){var et,ht,ct,wt,ft;if(0!==n.length){it=new t;var yt=ut.w/ut.z,bt=.5*ut.z,kt=.5*ut.w,et=16/ut.w,lt=new i(et*yt,et),st=new t(1,1,0),at=new i(1,1),pt=new fs;if(pt.min.set(ut.x,ut.y),pt.max.set(ut.x+(ut.z-16),ut.y+(ut.w-16)),void 0===o){et=new Float32Array([-1,-1,0,0,1,-1,1,0,1,1,1,1,-1,1,0,1]);ht=new Uint16Array([0,1,2,0,2,3]);y=r.createBuffer();p=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,y);r.bufferData(r.ARRAY_BUFFER,et,r.STATIC_DRAW);r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,p);r.bufferData(r.ELEMENT_ARRAY_BUFFER,ht,r.STATIC_DRAW);h=r.createTexture();w=r.createTexture();u.bindTexture(r.TEXTURE_2D,h);r.texImage2D(r.TEXTURE_2D,0,r.RGB,16,16,0,r.RGB,r.UNSIGNED_BYTE,null);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST);u.bindTexture(r.TEXTURE_2D,w);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,16,16,0,r.RGBA,r.UNSIGNED_BYTE,null);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST);var et=tt={vertexShader:"uniform lowp int renderType;\nuniform vec3 screenPosition;\nuniform vec2 scale;\nuniform float rotation;\nuniform sampler2D occlusionMap;\nattribute vec2 position;\nattribute vec2 uv;\nvarying vec2 vUV;\nvarying float vVisibility;\nvoid main() {\nvUV = uv;\nvec2 pos = position;\nif ( renderType == 2 ) {\nvec4 visibility = texture2D( occlusionMap, vec2( 0.1, 0.1 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.5, 0.1 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.9, 0.1 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.9, 0.5 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.9, 0.9 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.5, 0.9 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.1, 0.9 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.1, 0.5 ) );\nvisibility += texture2D( occlusionMap, vec2( 0.5, 0.5 ) );\nvVisibility =        visibility.r / 9.0;\nvVisibility *= 1.0 - visibility.g / 9.0;\nvVisibility *=       visibility.b / 9.0;\nvVisibility *= 1.0 - visibility.a / 9.0;\npos.x = cos( rotation ) * position.x - sin( rotation ) * position.y;\npos.y = sin( rotation ) * position.x + cos( rotation ) * position.y;\n}\ngl_Position = vec4( ( pos * scale + screenPosition.xy ).xy, screenPosition.z, 1.0 );\n}",fragmentShader:"uniform lowp int renderType;\nuniform sampler2D map;\nuniform float opacity;\nuniform vec3 color;\nvarying vec2 vUV;\nvarying float vVisibility;\nvoid main() {\nif ( renderType == 0 ) {\ngl_FragColor = vec4( 1.0, 0.0, 1.0, 0.0 );\n} else if ( renderType == 1 ) {\ngl_FragColor = texture2D( map, vUV );\n} else {\nvec4 texture = texture2D( map, vUV );\ntexture.a *= opacity * vVisibility;\ngl_FragColor = texture;\ngl_FragColor.rgb *= color;\n}\n}"},ht=r.createProgram(),vt=r.createShader(r.FRAGMENT_SHADER),ot=r.createShader(r.VERTEX_SHADER),ct="precision "+e.precision+" float;\n";r.shaderSource(vt,ct+et.fragmentShader);r.shaderSource(ot,ct+et.vertexShader);r.compileShader(vt);r.compileShader(ot);r.attachShader(ht,vt);r.attachShader(ht,ot);r.linkProgram(ht);o=ht;a=r.getAttribLocation(o,"position");v=r.getAttribLocation(o,"uv");s=r.getUniformLocation(o,"renderType");b=r.getUniformLocation(o,"map");k=r.getUniformLocation(o,"occlusionMap");d=r.getUniformLocation(o,"opacity");g=r.getUniformLocation(o,"color");c=r.getUniformLocation(o,"scale");nt=r.getUniformLocation(o,"rotation");l=r.getUniformLocation(o,"screenPosition")}for(u.useProgram(o),u.initAttributes(),u.enableAttribute(a),u.enableAttribute(v),u.disableUnusedAttributes(),r.uniform1i(k,0),r.uniform1i(b,1),r.bindBuffer(r.ARRAY_BUFFER,y),r.vertexAttribPointer(a,2,r.FLOAT,!1,16,0),r.vertexAttribPointer(v,2,r.FLOAT,!1,16,8),r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,p),u.disable(r.CULL_FACE),u.buffers.depth.setMask(!1),ht=0,vt=n.length;ht<vt;ht++)if(et=16/ut.w,lt.set(et*yt,et),ot=n[ht],it.set(ot.matrixWorld.elements[12],ot.matrixWorld.elements[13],ot.matrixWorld.elements[14]),it.applyMatrix4(rt.matrixWorldInverse),it.applyMatrix4(rt.projectionMatrix),st.copy(it),at.x=ut.x+st.x*bt+bt-8,at.y=ut.y+st.y*kt+kt-8,!0===pt.containsPoint(at))for(u.activeTexture(r.TEXTURE0),u.bindTexture(r.TEXTURE_2D,null),u.activeTexture(r.TEXTURE1),u.bindTexture(r.TEXTURE_2D,h),r.copyTexImage2D(r.TEXTURE_2D,0,r.RGB,at.x,at.y,16,16,0),r.uniform1i(s,0),r.uniform2f(c,lt.x,lt.y),r.uniform3f(l,st.x,st.y,st.z),u.disable(r.BLEND),u.enable(r.DEPTH_TEST),r.drawElements(r.TRIANGLES,6,r.UNSIGNED_SHORT,0),u.activeTexture(r.TEXTURE0),u.bindTexture(r.TEXTURE_2D,w),r.copyTexImage2D(r.TEXTURE_2D,0,r.RGBA,at.x,at.y,16,16,0),r.uniform1i(s,1),u.disable(r.DEPTH_TEST),u.activeTexture(r.TEXTURE1),u.bindTexture(r.TEXTURE_2D,h),r.drawElements(r.TRIANGLES,6,r.UNSIGNED_SHORT,0),ot.positionScreen.copy(st),ot.customUpdateCallback?ot.customUpdateCallback(ot):ot.updateLensFlares(),r.uniform1i(s,2),u.enable(r.BLEND),ct=0,wt=ot.lensFlares.length;ct<wt;ct++)ft=ot.lensFlares[ct],.001<ft.opacity&&.001<ft.scale&&(st.x=ft.x,st.y=ft.y,st.z=ft.z,et=ft.size*ft.scale/ut.w,lt.x=et*yt,lt.y=et,r.uniform3f(l,st.x,st.y,st.z),r.uniform2f(c,lt.x,lt.y),r.uniform1f(nt,ft.rotation),r.uniform1f(d,ft.opacity),r.uniform3f(g,ft.color.r,ft.color.g,ft.color.b),u.setBlending(ft.blending,ft.blendEquation,ft.blendSrc,ft.blendDst),f.setTexture2D(ft.texture,1),r.drawElements(r.TRIANGLES,6,r.UNSIGNED_SHORT,0));u.enable(r.CULL_FACE);u.enable(r.DEPTH_TEST);u.buffers.depth.setMask(!0);u.reset()}}}function gf(n,t,i,r,u,f,e,o,s){b.call(this,n,t,i,r,u,f,e,o,s);this.needsUpdate=!0}function ly(n,i,r,u,f){function st(n,t){return n.renderOrder!==t.renderOrder?n.renderOrder-t.renderOrder:n.z!==t.z?t.z-n.z:t.id-n.id}var s,h,p,w,b,k,g,nt,tt,o,it,rt,ut,ft,et,c,l,a,v,e,ot,ht=new t,ct=new d,y=new t;this.render=function(t,d,lt){var yt,pt,vt,wt,kt,at,bt;if(0!==t.length){for(void 0===e&&(yt=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),pt=new Uint16Array([0,1,2,0,2,3]),a=i.createBuffer(),v=i.createBuffer(),i.bindBuffer(i.ARRAY_BUFFER,a),i.bufferData(i.ARRAY_BUFFER,yt,i.STATIC_DRAW),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,v),i.bufferData(i.ELEMENT_ARRAY_BUFFER,pt,i.STATIC_DRAW),yt=i.createProgram(),pt=i.createShader(i.VERTEX_SHADER),vt=i.createShader(i.FRAGMENT_SHADER),i.shaderSource(pt,["precision "+f.precision+" float;","#define SHADER_NAME SpriteMaterial\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform float rotation;\nuniform vec2 scale;\nuniform vec2 uvOffset;\nuniform vec2 uvScale;\nattribute vec2 position;\nattribute vec2 uv;\nvarying vec2 vUV;\nvoid main() {\nvUV = uvOffset + uv * uvScale;\nvec2 alignedPosition = position * scale;\nvec2 rotatedPosition;\nrotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\nrotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\nvec4 finalPosition;\nfinalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\nfinalPosition.xy += rotatedPosition;\nfinalPosition = projectionMatrix * finalPosition;\ngl_Position = finalPosition;\n}"].join("\n")),i.shaderSource(vt,["precision "+f.precision+" float;","#define SHADER_NAME SpriteMaterial\nuniform vec3 color;\nuniform sampler2D map;\nuniform float opacity;\nuniform int fogType;\nuniform vec3 fogColor;\nuniform float fogDensity;\nuniform float fogNear;\nuniform float fogFar;\nuniform float alphaTest;\nvarying vec2 vUV;\nvoid main() {\nvec4 texture = texture2D( map, vUV );\nif ( texture.a < alphaTest ) discard;\ngl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\nif ( fogType > 0 ) {\nfloat depth = gl_FragCoord.z / gl_FragCoord.w;\nfloat fogFactor = 0.0;\nif ( fogType == 1 ) {\nfogFactor = smoothstep( fogNear, fogFar, depth );\n} else {\nconst float LOG2 = 1.442695;\nfogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\nfogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\n}\ngl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\n}\n}"].join("\n")),i.compileShader(pt),i.compileShader(vt),i.attachShader(yt,pt),i.attachShader(yt,vt),i.linkProgram(yt),e=yt,c=i.getAttribLocation(e,"position"),l=i.getAttribLocation(e,"uv"),s=i.getUniformLocation(e,"uvOffset"),h=i.getUniformLocation(e,"uvScale"),p=i.getUniformLocation(e,"rotation"),w=i.getUniformLocation(e,"scale"),b=i.getUniformLocation(e,"color"),k=i.getUniformLocation(e,"map"),g=i.getUniformLocation(e,"opacity"),nt=i.getUniformLocation(e,"modelViewMatrix"),tt=i.getUniformLocation(e,"projectionMatrix"),o=i.getUniformLocation(e,"fogType"),it=i.getUniformLocation(e,"fogDensity"),rt=i.getUniformLocation(e,"fogNear"),ut=i.getUniformLocation(e,"fogFar"),ft=i.getUniformLocation(e,"fogColor"),et=i.getUniformLocation(e,"alphaTest"),yt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),yt.width=8,yt.height=8,pt=yt.getContext("2d"),pt.fillStyle="white",pt.fillRect(0,0,8,8),ot=new gf(yt)),r.useProgram(e),r.initAttributes(),r.enableAttribute(c),r.enableAttribute(l),r.disableUnusedAttributes(),r.disable(i.CULL_FACE),r.enable(i.BLEND),i.bindBuffer(i.ARRAY_BUFFER,a),i.vertexAttribPointer(c,2,i.FLOAT,!1,16,0),i.vertexAttribPointer(l,2,i.FLOAT,!1,16,8),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,v),i.uniformMatrix4fv(tt,!1,lt.projectionMatrix.elements),r.activeTexture(i.TEXTURE0),i.uniform1i(k,0),pt=yt=0,(vt=d.fog)?(i.uniform3f(ft,vt.color.r,vt.color.g,vt.color.b),vt.isFog?(i.uniform1f(rt,vt.near),i.uniform1f(ut,vt.far),i.uniform1i(o,1),pt=yt=1):vt.isFogExp2&&(i.uniform1f(it,vt.density),i.uniform1i(o,2),pt=yt=2)):(i.uniform1i(o,0),pt=yt=0),wt=0,kt=t.length;wt<kt;wt++)vt=t[wt],vt.modelViewMatrix.multiplyMatrices(lt.matrixWorldInverse,vt.matrixWorld),vt.z=-vt.modelViewMatrix.elements[14];t.sort(st);for(var dt=[],wt=0,kt=t.length;wt<kt;wt++)if(vt=t[wt],at=vt.material,!1!==at.visible){vt.onBeforeRender(n,d,lt,void 0,at,void 0);i.uniform1f(et,at.alphaTest);i.uniformMatrix4fv(nt,!1,vt.modelViewMatrix.elements);vt.matrixWorld.decompose(ht,ct,y);dt[0]=y.x;dt[1]=y.y;bt=0;d.fog&&at.fog&&(bt=pt);yt!==bt&&(i.uniform1i(o,bt),yt=bt);null!==at.map?(i.uniform2f(s,at.map.offset.x,at.map.offset.y),i.uniform2f(h,at.map.repeat.x,at.map.repeat.y)):(i.uniform2f(s,0,0),i.uniform2f(h,1,1));i.uniform1f(g,at.opacity);i.uniform3f(b,at.color.r,at.color.g,at.color.b);i.uniform1f(p,at.rotation);i.uniform2fv(w,dt);r.setBlending(at.blending,at.blendEquation,at.blendSrc,at.blendDst,at.blendEquationAlpha,at.blendSrcAlpha,at.blendDstAlpha,at.premultipliedAlpha);r.buffers.depth.setTest(at.depthTest);r.buffers.depth.setMask(at.depthWrite);u.setTexture2D(at.map||ot,0);i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0);vt.onAfterRender(n,d,lt,void 0,at,void 0)}r.enable(i.CULL_FACE);r.reset()}}}function a(){Object.defineProperty(this,"id",{value:ba++});this.uuid=l.generateUUID();this.name="";this.type="Material";this.lights=this.fog=!0;this.blending=1;this.side=0;this.flatShading=!1;this.vertexColors=0;this.opacity=1;this.transparent=!1;this.blendSrc=204;this.blendDst=205;this.blendEquation=100;this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null;this.depthFunc=3;this.depthWrite=this.depthTest=!0;this.clippingPlanes=null;this.clipShadows=this.clipIntersection=!1;this.colorWrite=!0;this.precision=null;this.polygonOffset=!1;this.polygonOffsetUnits=this.polygonOffsetFactor=0;this.dithering=!1;this.alphaTest=0;this.premultipliedAlpha=!1;this.overdraw=0;this.needsUpdate=this.visible=!0}function ct(n){a.call(this);this.type="ShaderMaterial";this.defines={};this.uniforms={};this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}";this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";this.linewidth=1;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1;this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1};this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]};this.index0AttributeName=void 0;void 0!==n&&(void 0!==n.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(n))}function ai(n){a.call(this);this.type="MeshDepthMaterial";this.depthPacking=3200;this.morphTargets=this.skinning=!1;this.displacementMap=this.alphaMap=this.map=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=!1;this.wireframeLinewidth=1;this.lights=this.fog=!1;this.setValues(n)}function vi(n){a.call(this);this.type="MeshDistanceMaterial";this.referencePosition=new t;this.nearDistance=1;this.farDistance=1e3;this.morphTargets=this.skinning=!1;this.displacementMap=this.alphaMap=this.map=null;this.displacementScale=1;this.displacementBias=0;this.lights=this.fog=!1;this.setValues(n)}function fi(n,i){this.min=void 0!==n?n:new t(Infinity,Infinity,Infinity);this.max=void 0!==i?i:new t(-Infinity,-Infinity,-Infinity)}function pt(n,i){this.center=void 0!==n?n:new t;this.radius=void 0!==i?i:0}function wt(){this.elements=[1,0,0,0,1,0,0,0,1];0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function lt(n,i){this.normal=void 0!==n?n:new t(1,0,0);this.constant=void 0!==i?i:0}function es(n,t,i,r,u,f){this.planes=[void 0!==n?n:new lt,void 0!==t?t:new lt,void 0!==i?i:new lt,void 0!==r?r:new lt,void 0!==u?u:new lt,void 0!==f?f:new lt]}function al(n,r,u){function a(t,i,r,u,f,e){var o=t.geometry,s=b,c=t.customDepthMaterial;return r&&(s=k,c=t.customDistanceMaterial),c?s=c:(c=!1,i.morphTargets&&(o&&o.isBufferGeometry?c=o.morphAttributes&&o.morphAttributes.position&&0<o.morphAttributes.position.length:o&&o.isGeometry&&(c=o.morphTargets&&0<o.morphTargets.length)),t.isSkinnedMesh&&!1===i.skinning&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",t),t=t.isSkinnedMesh&&i.skinning,o=0,c&&(o|=1),t&&(o|=2),s=s[o]),n.localClippingEnabled&&!0===i.clipShadows&&0!==i.clippingPlanes.length&&(o=s.uuid,c=i.uuid,t=d[o],void 0===t&&(t={},d[o]=t),o=t[c],void 0===o&&(o=s.clone(),t[c]=o),s=o),s.visible=i.visible,s.wireframe=i.wireframe,c=i.side,h.renderSingleSided&&2==c&&(c=0),h.renderReverseSided&&(0===c?c=1:1===c&&(c=0)),s.side=c,s.clipShadows=i.clipShadows,s.clippingPlanes=i.clippingPlanes,s.clipIntersection=i.clipIntersection,s.wireframeLinewidth=i.wireframeLinewidth,s.linewidth=i.linewidth,r&&s.isMeshDistanceMaterial&&(s.referencePosition.copy(u),s.nearDistance=f,s.farDistance=e),s}function v(t,i,u,f){var s,o,h,c;if(!1!==t.visible){if(t.layers.test(i.layers)&&(t.isMesh||t.isLine||t.isPoints)&&t.castShadow&&(!t.frustumCulled||p.intersectsObject(t)))if(t.modelViewMatrix.multiplyMatrices(u.matrixWorldInverse,t.matrixWorld),o=r.update(t),h=t.material,Array.isArray(h))for(var y=o.groups,l=0,w=y.length;l<w;l++)c=y[l],(s=h[c.materialIndex])&&s.visible&&(s=a(t,s,f,e,u.near,u.far),n.renderBufferDirect(u,null,o,s,t,c));else h.visible&&(s=a(t,h,f,e,u.near,u.far),n.renderBufferDirect(u,null,o,s,t,null));for(t=t.children,o=0,h=t.length;o<h;o++)v(t[o],i,u,f)}}var p=new es,w=new s,f=new i,nt=new i(u,u),c=new t,e=new t,b=Array(4),k=Array(4),d={},tt=[new t(1,0,0),new t(-1,0,0),new t(0,0,1),new t(0,0,-1),new t(0,1,0),new t(0,-1,0)],it=[new t(0,1,0),new t(0,1,0),new t(0,1,0),new t(0,1,0),new t(0,0,1),new t(0,0,-1)],o=[new y,new y,new y,new y,new y,new y],h;for(u=0;4!==u;++u){var l=0!=(u&1),g=0!=(u&2),rt=new ai({depthPacking:3201,morphTargets:l,skinning:g});b[u]=rt;l=new vi({morphTargets:l,skinning:g});k[u]=l}h=this;this.enabled=!1;this.autoUpdate=!0;this.needsUpdate=!1;this.type=1;this.renderSingleSided=this.renderReverseSided=!0;this.render=function(t,i,r){var b,l,d,g,s,k,a,y,u;if(!1!==h.enabled&&(!1!==h.autoUpdate||!1!==h.needsUpdate)&&0!==t.length){for(b=n.state,b.disable(n.context.BLEND),b.buffers.color.setClear(1,1,1,1),b.buffers.depth.setTest(!0),b.setScissorTest(!1),d=0,g=t.length;d<g;d++)if(s=t[d],l=s.shadow,k=s&&s.isPointLight,void 0===l)console.warn("THREE.WebGLShadowMap:",s,"has no shadow.");else for(a=l.camera,f.copy(l.mapSize),f.min(nt),k&&(y=f.x,u=f.y,o[0].set(2*y,u,y,u),o[1].set(0,u,y,u),o[2].set(3*y,u,y,u),o[3].set(y,u,y,u),o[4].set(3*y,0,y,u),o[5].set(y,0,y,u),f.x*=4,f.y*=2),null===l.map&&(l.map=new nu(f.x,f.y,{minFilter:1003,magFilter:1003,format:1023}),l.map.texture.name=s.name+".shadowMap",a.updateProjectionMatrix()),l.isSpotLightShadow&&l.update(s),y=l.map,u=l.matrix,e.setFromMatrixPosition(s.matrixWorld),a.position.copy(e),k?(l=6,u.makeTranslation(-e.x,-e.y,-e.z)):(l=1,c.setFromMatrixPosition(s.target.matrixWorld),a.lookAt(c),a.updateMatrixWorld(),u.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),u.multiply(a.projectionMatrix),u.multiply(a.matrixWorldInverse)),n.setRenderTarget(y),n.clear(),s=0;s<l;s++)k&&(c.copy(a.position),c.add(tt[s]),a.up.copy(it[s]),a.lookAt(c),a.updateMatrixWorld(),b.viewport(o[s])),w.multiplyMatrices(a.projectionMatrix,a.matrixWorldInverse),p.setFromMatrix(w),v(i,r,a,k);h.needsUpdate=!1}}}function ay(n){var t={};return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),t[n.uuid]},remove:function(i){i.isInterleavedBufferAttribute&&(i=i.data);var r=t[i.uuid];r&&(n.deleteBuffer(r.buffer),delete t[i.uuid])},update:function(i,r){var e;if(i.isInterleavedBufferAttribute&&(i=i.data),e=t[i.uuid],void 0===e){var e=i.uuid,u=i.array,f=i.dynamic?n.DYNAMIC_DRAW:n.STATIC_DRAW,o=n.createBuffer();n.bindBuffer(r,o);n.bufferData(r,u,f);i.onUploadCallback();r=n.FLOAT;u instanceof Float32Array?r=n.FLOAT:u instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):u instanceof Uint16Array?r=n.UNSIGNED_SHORT:u instanceof Int16Array?r=n.SHORT:u instanceof Uint32Array?r=n.UNSIGNED_INT:u instanceof Int32Array?r=n.INT:u instanceof Int8Array?r=n.BYTE:u instanceof Uint8Array&&(r=n.UNSIGNED_BYTE);t[e]={buffer:o,type:r,bytesPerElement:u.BYTES_PER_ELEMENT,version:i.version}}else e.version<i.version&&(u=i,o=u.array,f=u.updateRange,n.bindBuffer(r,e.buffer),!1===u.dynamic?n.bufferData(r,o,n.STATIC_DRAW):-1===f.count?n.bufferSubData(r,0,o):0===f.count?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(n.bufferSubData(r,f.offset*o.BYTES_PER_ELEMENT,o.subarray(f.offset,f.offset+f.count)),f.count=-1),e.version=i.version)}}}function yi(n,t,i,r){this._x=n||0;this._y=t||0;this._z=i||0;this._order=r||yi.DefaultOrder}function dh(){this.mask=1}function u(){Object.defineProperty(this,"id",{value:ka++});this.uuid=l.generateUUID();this.name="";this.type="Object3D";this.parent=null;this.children=[];this.up=u.DefaultUp.clone();var r=new t,n=new yi,i=new d,f=new t(1,1,1);n.onChange(function(){i.setFromEuler(n,!1)});i.onChange(function(){n.setFromQuaternion(i,void 0,!1)});Object.defineProperties(this,{position:{enumerable:!0,value:r},rotation:{enumerable:!0,value:n},quaternion:{enumerable:!0,value:i},scale:{enumerable:!0,value:f},modelViewMatrix:{value:new s},normalMatrix:{value:new wt}});this.matrix=new s;this.matrixWorld=new s;this.matrixAutoUpdate=u.DefaultMatrixAutoUpdate;this.matrixWorldNeedsUpdate=!1;this.layers=new dh;this.visible=!0;this.receiveShadow=this.castShadow=!1;this.frustumCulled=!0;this.renderOrder=0;this.userData={}}function ti(){u.call(this);this.type="Camera";this.matrixWorldInverse=new s;this.projectionMatrix=new s}function ru(n,t,i,r,u,f){ti.call(this);this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=n;this.right=t;this.top=i;this.bottom=r;this.near=void 0!==u?u:.1;this.far=void 0!==f?f:2e3;this.updateProjectionMatrix()}function g(n,t,i,r){ti.call(this);this.type="PerspectiveCamera";this.fov=void 0!==n?n:50;this.zoom=1;this.near=void 0!==i?i:.1;this.far=void 0!==r?r:2e3;this.focus=10;this.aspect=void 0!==t?t:1;this.view=null;this.filmGauge=35;this.filmOffset=0;this.updateProjectionMatrix()}function ei(n,i,r,u,f,o){this.a=n;this.b=i;this.c=r;this.normal=u&&u.isVector3?u:new t;this.vertexNormals=Array.isArray(u)?u:[];this.color=f&&f.isColor?f:new e;this.vertexColors=Array.isArray(f)?f:[];this.materialIndex=void 0!==o?o:0}function h(){Object.defineProperty(this,"id",{value:vh++});this.uuid=l.generateUUID();this.name="";this.type="Geometry";this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function c(n,t,i){if(Array.isArray(n))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.uuid=l.generateUUID();this.name="";this.array=n;this.itemSize=t;this.count=void 0!==n?n.length/t:0;this.normalized=!0===i;this.dynamic=!1;this.updateRange={offset:0,count:-1};this.onUploadCallback=function(){};this.version=0}function ne(n,t){c.call(this,new Int8Array(n),t)}function te(n,t){c.call(this,new Uint8Array(n),t)}function ie(n,t){c.call(this,new Uint8ClampedArray(n),t)}function re(n,t){c.call(this,new Int16Array(n),t)}function di(n,t){c.call(this,new Uint16Array(n),t)}function ue(n,t){c.call(this,new Int32Array(n),t)}function gi(n,t){c.call(this,new Uint32Array(n),t)}function r(n,t){c.call(this,new Float32Array(n),t)}function fe(n,t){c.call(this,new Float64Array(n),t)}function vl(){this.indices=[];this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function gh(n){if(0===n.length)return-Infinity;for(var i=n[0],t=1,r=n.length;t<r;++t)n[t]>i&&(i=n[t]);return i}function f(){Object.defineProperty(this,"id",{value:vh++});this.uuid=l.generateUUID();this.name="";this.type="BufferGeometry";this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;this.drawRange={start:0,count:Infinity}}function uu(n,t,i,r,u,f){h.call(this);this.type="BoxGeometry";this.parameters={width:n,height:t,depth:i,widthSegments:r,heightSegments:u,depthSegments:f};this.fromBufferGeometry(new nr(n,t,i,r,u,f));this.mergeVertices()}function nr(n,i,u,e,o,s){function h(n,i,r,u,f,e,o,s,h,b,k){var rt=e/h,ut=o/b,ft=e/2,et=o/2,ot=s/2,it;o=h+1;for(var st=b+1,tt=e=0,d,g=new t,nt=0;nt<st;nt++)for(it=nt*ut-et,d=0;d<o;d++)g[n]=(d*rt-ft)*u,g[i]=it*f,g[r]=ot,y.push(g.x,g.y,g.z),g[n]=0,g[i]=0,g[r]=0<s?1:-1,p.push(g.x,g.y,g.z),a.push(d/h),a.push(1-nt/b),e+=1;for(nt=0;nt<b;nt++)for(d=0;d<h;d++)n=c+d+o*(nt+1),i=c+(d+1)+o*(nt+1),r=c+(d+1)+o*nt,l.push(c+d+o*nt,n,r),l.push(n,i,r),tt+=6;v.addGroup(w,tt,k);w+=tt;c+=e}var v;f.call(this);this.type="BoxBufferGeometry";this.parameters={width:n,height:i,depth:u,widthSegments:e,heightSegments:o,depthSegments:s};v=this;e=Math.floor(e)||1;o=Math.floor(o)||1;s=Math.floor(s)||1;var l=[],y=[],p=[],a=[],c=0,w=0;h("z","y","x",-1,-1,u,i,n,s,o,0);h("z","y","x",1,-1,u,i,-n,s,o,1);h("x","z","y",1,1,n,u,i,e,s,2);h("x","z","y",1,-1,n,u,-i,e,s,3);h("x","y","z",1,-1,n,i,u,e,o,4);h("x","y","z",-1,-1,n,i,-u,e,o,5);this.setIndex(l);this.addAttribute("position",new r(y,3));this.addAttribute("normal",new r(p,3));this.addAttribute("uv",new r(a,2))}function ee(n,t,i,r){h.call(this);this.type="PlaneGeometry";this.parameters={width:n,height:t,widthSegments:i,heightSegments:r};this.fromBufferGeometry(new tr(n,t,i,r));this.mergeVertices()}function tr(n,t,i,u){var e,s,a;f.call(this);this.type="PlaneBufferGeometry";this.parameters={width:n,height:t,widthSegments:i,heightSegments:u};e=n/2;s=t/2;i=Math.floor(i)||1;u=Math.floor(u)||1;var o=i+1,h=u+1,p=n/i,w=t/u,c=[],v=[],y=[],l=[];for(n=0;n<h;n++)for(a=n*w-s,t=0;t<o;t++)v.push(t*p-e,-a,0),y.push(0,0,1),l.push(t/i),l.push(1-n/u);for(n=0;n<u;n++)for(t=0;t<i;t++)e=t+o*(n+1),s=t+1+o*(n+1),h=t+1+o*n,c.push(t+o*n,e,h),c.push(e,s,h);this.setIndex(c);this.addAttribute("position",new r(v,3));this.addAttribute("normal",new r(y,3));this.addAttribute("uv",new r(l,2))}function ot(n){a.call(this);this.type="MeshBasicMaterial";this.color=new e(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.lights=this.morphTargets=this.skinning=!1;this.setValues(n)}function ir(n,i){this.origin=void 0!==n?n:new t;this.direction=void 0!==i?i:new t}function fu(n,i){this.start=void 0!==n?n:new t;this.end=void 0!==i?i:new t}function oi(n,i,r){this.a=void 0!==n?n:new t;this.b=void 0!==i?i:new t;this.c=void 0!==r?r:new t}function it(n,t){u.call(this);this.type="Mesh";this.geometry=void 0!==n?n:new f;this.material=void 0!==t?t:new ot({color:16777215*Math.random()});this.drawMode=0;this.updateMorphTargets()}function vy(n,t,i,r){function h(n,i){t.buffers.color.setClear(n.r,n.g,n.b,i,r)}var s=new e(0),f=0,c,o,u;return{getClearColor:function(){return s},setClearColor:function(n,t){s.set(n);f=void 0!==t?t:1;h(s,f)},getClearAlpha:function(){return f},setClearAlpha:function(n){f=n;h(s,f)},render:function(t,r,e,l){r=r.background;null===r?h(s,f):r&&r.isColor&&(h(r,1),l=!0);(n.autoClear||l)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil);r&&r.isCubeTexture?(void 0===u&&(u=new it(new nr(1,1,1),new ct({uniforms:gr.cube.uniforms,vertexShader:gr.cube.vertexShader,fragmentShader:gr.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,polygonOffset:!0,fog:!1})),u.geometry.removeAttribute("normal"),u.geometry.removeAttribute("uv"),u.onBeforeRender=function(n,t,i){n=i.far;this.matrixWorld.makeScale(n,n,n);this.matrixWorld.copyPosition(i.matrixWorld);this.material.polygonOffsetUnits=10*n},i.update(u.geometry)),u.material.uniforms.tCube.value=r,t.push(u,u.geometry,u.material,0,null)):r&&r.isTexture&&(void 0===c&&(c=new ru(-1,1,1,-1,0,1),o=new it(new tr(2,2),new ot({depthTest:!1,depthWrite:!1,fog:!1})),i.update(o.geometry)),o.material.map=r,n.renderBufferDirect(c,null,o.geometry,o.material,o,null))}}}function yy(n,t){return n.renderOrder!==t.renderOrder?n.renderOrder-t.renderOrder:n.program&&t.program&&n.program!==t.program?n.program.id-t.program.id:n.material.id!==t.material.id?n.material.id-t.material.id:n.z!==t.z?n.z-t.z:n.id-t.id}function py(n,t){return n.renderOrder!==t.renderOrder?n.renderOrder-t.renderOrder:n.z!==t.z?t.z-n.z:n.id-t.id}function wy(){var r=[],i=0,n=[],t=[];return{opaque:n,transparent:t,init:function(){i=0;n.length=0;t.length=0},push:function(u,f,e,o,s){var h=r[i];void 0===h?(h={id:u.id,object:u,geometry:f,material:e,program:e.program,renderOrder:u.renderOrder,z:o,group:s},r[i]=h):(h.id=u.id,h.object=u,h.geometry=f,h.material=e,h.program=e.program,h.renderOrder=u.renderOrder,h.z=o,h.group=s);(!0===e.transparent?t:n).push(h);i++},sort:function(){1<n.length&&n.sort(yy);1<t.length&&t.sort(py)}}}function by(){var n={};return{get:function(t,i){return t=t.id+","+i.id,i=n[t],void 0===i&&(i=new wy,n[t]=i),i},dispose:function(){n={}}}}function ky(n,t){return Math.abs(t[1])-Math.abs(n[1])}function dy(n){var i={},t=new Float32Array(8);return{update:function(r,u,f,e){var h=r.morphTargetInfluences,l=h.length,o,c,s;if(r=i[u.id],void 0===r){for(r=[],o=0;o<l;o++)r[o]=[o,0];i[u.id]=r}for(c=f.morphTargets&&u.morphAttributes.position,f=f.morphNormals&&u.morphAttributes.normal,o=0;o<l;o++)s=r[o],0!==s[1]&&(c&&u.removeAttribute("morphTarget"+o),f&&u.removeAttribute("morphNormal"+o));for(o=0;o<l;o++)s=r[o],s[0]=o,s[1]=h[o];for(r.sort(ky),o=0;8>o;o++){if((s=r[o])&&(h=s[0],s=s[1])){c&&u.addAttribute("morphTarget"+o,c[h]);f&&u.addAttribute("morphNormal"+o,f[h]);t[o]=s;continue}t[o]=0}e.getUniforms().setValue(n,"morphTargetInfluences",t)}}}function gy(n,t,i){var r,u,f;this.setMode=function(n){r=n};this.setIndex=function(n){u=n.type;f=n.bytesPerElement};this.render=function(t,e){n.drawElements(r,e,u,t*f);i.calls++;i.vertices+=e;r===n.TRIANGLES?i.faces+=e/3:r===n.POINTS&&(i.points+=e)};this.renderInstances=function(e,o,s){var h=t.get("ANGLE_instanced_arrays");null===h?console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."):(h.drawElementsInstancedANGLE(r,s,u,o*f,e.maxInstancedCount),i.calls++,i.vertices+=s*e.maxInstancedCount,r===n.TRIANGLES?i.faces+=e.maxInstancedCount*s/3:r===n.POINTS&&(i.points+=e.maxInstancedCount*s))}}function np(n,t,i){var r;this.setMode=function(n){r=n};this.render=function(t,u){n.drawArrays(r,t,u);i.calls++;i.vertices+=u;r===n.TRIANGLES?i.faces+=u/3:r===n.POINTS&&(i.points+=u)};this.renderInstances=function(u,f,e){var o=t.get("ANGLE_instanced_arrays"),s;null===o?console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."):(s=u.attributes.position,s.isInterleavedBufferAttribute?(e=s.data.count,o.drawArraysInstancedANGLE(r,0,e,u.maxInstancedCount)):o.drawArraysInstancedANGLE(r,f,e,u.maxInstancedCount),i.calls++,i.vertices+=e*u.maxInstancedCount,r===n.TRIANGLES?i.faces+=u.maxInstancedCount*e/3:r===n.POINTS&&(i.points+=u.maxInstancedCount*e))}}function tp(n,t,i){function e(n){var f,o;n=n.target;f=u[n.id];null!==f.index&&t.remove(f.index);for(o in f.attributes)t.remove(f.attributes[o]);n.removeEventListener("dispose",e);delete u[n.id];(o=r[n.id])&&(t.remove(o),delete r[n.id]);(o=r[f.id])&&(t.remove(o),delete r[f.id]);i.geometries--}var u={},r={};return{get:function(n,t){var r=u[t.id];return r?r:(t.addEventListener("dispose",e),t.isBufferGeometry?r=t:t.isGeometry&&(void 0===t._bufferGeometry&&(t._bufferGeometry=(new f).setFromObject(n)),r=t._bufferGeometry),u[t.id]=r,i.geometries++,r)},update:function(i){var u=i.index,r=i.attributes,f;null!==u&&t.update(u,n.ELEMENT_ARRAY_BUFFER);for(f in r)t.update(r[f],n.ARRAY_BUFFER);i=i.morphAttributes;for(f in i)for(var u=i[f],r=0,e=u.length;r<e;r++)t.update(u[r],n.ARRAY_BUFFER)},getWireframeAttribute:function(i){var f=r[i.id],e,o,s,u,c,h;if(f)return f;if(f=[],e=i.index,o=i.attributes,null!==e)for(s=e.array,u=0,c=s.length;u<c;u+=3)h=s[u+0],o=s[u+1],e=s[u+2],f.push(h,o,o,e,e,h);else for(s=o.position.array,u=0,c=s.length/3-1;u<c;u+=3)h=u+0,o=u+1,e=u+2,f.push(h,o,o,e,e,h);return f=new(65535<gh(f)?gi:di)(f,1),t.update(f,n.ELEMENT_ARRAY_BUFFER),r[i.id]=f}}}function ip(){var n={};return{get:function(r){if(void 0!==n[r.id])return n[r.id];switch(r.type){case"DirectionalLight":var u={direction:new t,color:new e,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i};break;case"SpotLight":u={position:new t,direction:new t,color:new e,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i};break;case"PointLight":u={position:new t,color:new e,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":u={direction:new t,skyColor:new e,groundColor:new e};break;case"RectAreaLight":u={color:new e,position:new t,halfWidth:new t,halfHeight:new t}}return n[r.id]=u}}}function rp(){var i=new ip,n={hash:"",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},r=new t,f=new s,u=new s;return{setup:function(t,e,o){for(var s,h,d=0,g=0,nt=0,a=0,v=0,y=0,p=0,w=0,c=o.matrixWorldInverse,b=0,tt=t.length;b<tt;b++){s=t[b];h=s.color;var l=s.intensity,it=s.distance,k=s.shadow&&s.shadow.map?s.shadow.map.texture:null;s.isAmbientLight?(d+=h.r*l,g+=h.g*l,nt+=h.b*l):s.isDirectionalLight?(o=i.get(s),o.color.copy(s.color).multiplyScalar(s.intensity),o.direction.setFromMatrixPosition(s.matrixWorld),r.setFromMatrixPosition(s.target.matrixWorld),o.direction.sub(r),o.direction.transformDirection(c),(o.shadow=s.castShadow)&&(h=s.shadow,o.shadowBias=h.bias,o.shadowRadius=h.radius,o.shadowMapSize=h.mapSize),n.directionalShadowMap[a]=k,n.directionalShadowMatrix[a]=s.shadow.matrix,n.directional[a]=o,a++):s.isSpotLight?(o=i.get(s),o.position.setFromMatrixPosition(s.matrixWorld),o.position.applyMatrix4(c),o.color.copy(h).multiplyScalar(l),o.distance=it,o.direction.setFromMatrixPosition(s.matrixWorld),r.setFromMatrixPosition(s.target.matrixWorld),o.direction.sub(r),o.direction.transformDirection(c),o.coneCos=Math.cos(s.angle),o.penumbraCos=Math.cos(s.angle*(1-s.penumbra)),o.decay=0===s.distance?0:s.decay,(o.shadow=s.castShadow)&&(h=s.shadow,o.shadowBias=h.bias,o.shadowRadius=h.radius,o.shadowMapSize=h.mapSize),n.spotShadowMap[y]=k,n.spotShadowMatrix[y]=s.shadow.matrix,n.spot[y]=o,y++):s.isRectAreaLight?(o=i.get(s),o.color.copy(h).multiplyScalar(l/(s.width*s.height)),o.position.setFromMatrixPosition(s.matrixWorld),o.position.applyMatrix4(c),u.identity(),f.copy(s.matrixWorld),f.premultiply(c),u.extractRotation(f),o.halfWidth.set(.5*s.width,0,0),o.halfHeight.set(0,.5*s.height,0),o.halfWidth.applyMatrix4(u),o.halfHeight.applyMatrix4(u),n.rectArea[p]=o,p++):s.isPointLight?(o=i.get(s),o.position.setFromMatrixPosition(s.matrixWorld),o.position.applyMatrix4(c),o.color.copy(s.color).multiplyScalar(s.intensity),o.distance=s.distance,o.decay=0===s.distance?0:s.decay,(o.shadow=s.castShadow)&&(h=s.shadow,o.shadowBias=h.bias,o.shadowRadius=h.radius,o.shadowMapSize=h.mapSize,o.shadowCameraNear=h.camera.near,o.shadowCameraFar=h.camera.far),n.pointShadowMap[v]=k,n.pointShadowMatrix[v]=s.shadow.matrix,n.point[v]=o,v++):s.isHemisphereLight&&(o=i.get(s),o.direction.setFromMatrixPosition(s.matrixWorld),o.direction.transformDirection(c),o.direction.normalize(),o.skyColor.copy(s.color).multiplyScalar(l),o.groundColor.copy(s.groundColor).multiplyScalar(l),n.hemi[w]=o,w++)}n.ambient[0]=d;n.ambient[1]=g;n.ambient[2]=nt;n.directional.length=a;n.spot.length=y;n.rectArea.length=p;n.point.length=v;n.hemi.length=w;n.hash=a+","+v+","+y+","+p+","+w+","+e.length},state:n}}function up(n,t){var i={};return{update:function(r){var f=t.frame,e=r.geometry,u=n.get(r,e);return i[u.id]!==f&&(e.isGeometry&&u.updateFromObject(r),n.update(u),i[u.id]=f),u},clear:function(){i={}}}}function fp(n){n=n.split("\n");for(var t=0;t<n.length;t++)n[t]=t+1+": "+n[t];return n.join("\n")}function yl(n,t,i){var r=n.createShader(t);return n.shaderSource(r,i),n.compileShader(r),!1===n.getShaderParameter(r,n.COMPILE_STATUS)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==n.getShaderInfoLog(r)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",t===n.VERTEX_SHADER?"vertex":"fragment",n.getShaderInfoLog(r),fp(i)),r}function pl(n){switch(n){case 3e3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw Error("unsupported encoding: "+n);}}function nc(n,t){return t=pl(t),"vec4 "+n+"( vec4 value ) { return "+t[0]+"ToLinear"+t[1]+"; }"}function ep(n,t){return t=pl(t),"vec4 "+n+"( vec4 value ) { return LinearTo"+t[0]+t[1]+"; }"}function op(n,t){switch(t){case 1:t="Linear";break;case 2:t="Reinhard";break;case 3:t="Uncharted2";break;case 4:t="OptimizedCineon";break;default:throw Error("unsupported toneMapping: "+t);}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function sp(n,t,i){return n=n||{},[n.derivatives||t.envMapCubeUV||t.bumpMap||t.normalMap||t.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(n.fragDepth||t.logarithmicDepthBuffer)&&i.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",n.drawBuffers&&i.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(n.shaderTextureLOD||t.envMap)&&i.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(oe).join("\n")}function hp(n){var r=[],t,i;for(t in n)i=n[t],!1!==i&&r.push("#define "+t+" "+i);return r.join("\n")}function oe(n){return""!==n}function wl(n,t){return n.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights)}function tc(n){return n.replace(/^[ \t]*#include +<([\w\d.]+)>/gm,function(n,t){if(n=v[t],void 0===n)throw Error("Can not resolve #include <"+t+">");return tc(n)})}function bl(n){return n.replace(/for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(n,t,i,r){for(n="",t=parseInt(t);t<parseInt(i);t++)n+=r.replace(/\[ i \]/g,"[ "+t+" ]");return n})}function cp(n,t,i,r,u,f){var e=n.context,y=r.defines,h=u.vertexShader,o=u.fragmentShader,c="SHADOWMAP_TYPE_BASIC",b,k;1===f.shadowMapType?c="SHADOWMAP_TYPE_PCF":2===f.shadowMapType&&(c="SHADOWMAP_TYPE_PCF_SOFT");var l="ENVMAP_TYPE_CUBE",a="ENVMAP_MODE_REFLECTION",p="ENVMAP_BLENDING_MULTIPLY";if(f.envMap){switch(r.envMap.mapping){case 301:case 302:l="ENVMAP_TYPE_CUBE";break;case 306:case 307:l="ENVMAP_TYPE_CUBE_UV";break;case 303:case 304:l="ENVMAP_TYPE_EQUIREC";break;case 305:l="ENVMAP_TYPE_SPHERE"}switch(r.envMap.mapping){case 302:case 304:a="ENVMAP_MODE_REFRACTION"}switch(r.combine){case 0:p="ENVMAP_BLENDING_MULTIPLY";break;case 1:p="ENVMAP_BLENDING_MIX";break;case 2:p="ENVMAP_BLENDING_ADD"}}var d=0<n.gammaFactor?n.gammaFactor:1,g=sp(r.extensions,f,t),w=hp(y),s=e.createProgram();return r.isRawShaderMaterial?(y=[w,"\n"].filter(oe).join("\n"),t=[g,w,"\n"].filter(oe).join("\n")):(y=["precision "+f.precision+" float;","precision "+f.precision+" int;","#define SHADER_NAME "+u.name,w,f.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+d,"#define MAX_BONES "+f.maxBones,f.useFog&&f.fog?"#define USE_FOG":"",f.useFog&&f.fogExp?"#define FOG_EXP2":"",f.map?"#define USE_MAP":"",f.envMap?"#define USE_ENVMAP":"",f.envMap?"#define "+a:"",f.lightMap?"#define USE_LIGHTMAP":"",f.aoMap?"#define USE_AOMAP":"",f.emissiveMap?"#define USE_EMISSIVEMAP":"",f.bumpMap?"#define USE_BUMPMAP":"",f.normalMap?"#define USE_NORMALMAP":"",f.displacementMap&&f.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",f.specularMap?"#define USE_SPECULARMAP":"",f.roughnessMap?"#define USE_ROUGHNESSMAP":"",f.metalnessMap?"#define USE_METALNESSMAP":"",f.alphaMap?"#define USE_ALPHAMAP":"",f.vertexColors?"#define USE_COLOR":"",f.flatShading?"#define FLAT_SHADED":"",f.skinning?"#define USE_SKINNING":"",f.useVertexTexture?"#define BONE_TEXTURE":"",f.morphTargets?"#define USE_MORPHTARGETS":"",f.morphNormals&&!1===f.flatShading?"#define USE_MORPHNORMALS":"",f.doubleSided?"#define DOUBLE_SIDED":"",f.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+f.numClippingPlanes,f.shadowMapEnabled?"#define USE_SHADOWMAP":"",f.shadowMapEnabled?"#define "+c:"",f.sizeAttenuation?"#define USE_SIZEATTENUATION":"",f.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",f.logarithmicDepthBuffer&&t.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(oe).join("\n"),t=[g,"precision "+f.precision+" float;","precision "+f.precision+" int;","#define SHADER_NAME "+u.name,w,f.alphaTest?"#define ALPHATEST "+f.alphaTest:"","#define GAMMA_FACTOR "+d,f.useFog&&f.fog?"#define USE_FOG":"",f.useFog&&f.fogExp?"#define FOG_EXP2":"",f.map?"#define USE_MAP":"",f.envMap?"#define USE_ENVMAP":"",f.envMap?"#define "+l:"",f.envMap?"#define "+a:"",f.envMap?"#define "+p:"",f.lightMap?"#define USE_LIGHTMAP":"",f.aoMap?"#define USE_AOMAP":"",f.emissiveMap?"#define USE_EMISSIVEMAP":"",f.bumpMap?"#define USE_BUMPMAP":"",f.normalMap?"#define USE_NORMALMAP":"",f.specularMap?"#define USE_SPECULARMAP":"",f.roughnessMap?"#define USE_ROUGHNESSMAP":"",f.metalnessMap?"#define USE_METALNESSMAP":"",f.alphaMap?"#define USE_ALPHAMAP":"",f.vertexColors?"#define USE_COLOR":"",f.gradientMap?"#define USE_GRADIENTMAP":"",f.flatShading?"#define FLAT_SHADED":"",f.doubleSided?"#define DOUBLE_SIDED":"",f.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+f.numClippingPlanes,"#define UNION_CLIPPING_PLANES "+(f.numClippingPlanes-f.numClipIntersection),f.shadowMapEnabled?"#define USE_SHADOWMAP":"",f.shadowMapEnabled?"#define "+c:"",f.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",f.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",f.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",f.logarithmicDepthBuffer&&t.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"",f.envMap&&t.get("EXT_shader_texture_lod")?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",0!==f.toneMapping?"#define TONE_MAPPING":"",0!==f.toneMapping?v.tonemapping_pars_fragment:"",0!==f.toneMapping?op("toneMapping",f.toneMapping):"",f.dithering?"#define DITHERING":"",f.outputEncoding||f.mapEncoding||f.envMapEncoding||f.emissiveMapEncoding?v.encodings_pars_fragment:"",f.mapEncoding?nc("mapTexelToLinear",f.mapEncoding):"",f.envMapEncoding?nc("envMapTexelToLinear",f.envMapEncoding):"",f.emissiveMapEncoding?nc("emissiveMapTexelToLinear",f.emissiveMapEncoding):"",f.outputEncoding?ep("linearToOutputTexel",f.outputEncoding):"",f.depthPacking?"#define DEPTH_PACKING "+r.depthPacking:"","\n"].filter(oe).join("\n")),h=tc(h),h=wl(h,f),o=tc(o),o=wl(o,f),r.isShaderMaterial||(h=bl(h),o=bl(o)),o=t+o,h=yl(e,e.VERTEX_SHADER,y+h),o=yl(e,e.FRAGMENT_SHADER,o),e.attachShader(s,h),e.attachShader(s,o),void 0!==r.index0AttributeName?e.bindAttribLocation(s,0,r.index0AttributeName):!0===f.morphTargets&&e.bindAttribLocation(s,0,"position"),e.linkProgram(s),f=e.getProgramInfoLog(s),u=e.getShaderInfoLog(h),c=e.getShaderInfoLog(o),a=l=!0,!1===e.getProgramParameter(s,e.LINK_STATUS)?(l=!1,console.error("THREE.WebGLProgram: shader error: ",e.getError(),"gl.VALIDATE_STATUS",e.getProgramParameter(s,e.VALIDATE_STATUS),"gl.getProgramInfoLog",f,u,c)):""!==f?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",f):(""===u||""===c)&&(a=!1),a&&(this.diagnostics={runnable:l,material:r,programLog:f,vertexShader:{log:u,prefix:y},fragmentShader:{log:c,prefix:t}}),e.deleteShader(h),e.deleteShader(o),this.getUniforms=function(){return void 0===b&&(b=new ki(e,s,n)),b},this.getAttributes=function(){var n;if(void 0===k){for(var i={},r=e.getProgramParameter(s,e.ACTIVE_ATTRIBUTES),t=0;t<r;t++)n=e.getActiveAttrib(s,t).name,i[n]=e.getAttribLocation(s,n);k=i}return k},this.destroy=function(){e.deleteProgram(s);this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.id=da++,this.code=i,this.usedTimes=1,this.program=s,this.vertexShader=h,this.fragmentShader=o,this}function lp(n,t,i){function u(n,t){if(n)n.isTexture?i=n.encoding:n.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),i=n.texture.encoding);else var i=3e3;return 3e3===i&&t&&(i=3007),i}var r=[],e={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow"},f="precision supportsVertexTextures map mapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(t,r,f,o,s,h,c){var y=e[t.type],l,a,v;return c.isSkinnedMesh?(l=c.skeleton.bones,i.floatVertexTextures?l=1024:(a=Math.min(Math.floor((i.maxVertexUniforms-20)/4),l.length),a<l.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+l.length+" bones. This GPU supports "+a+"."),l=0):l=a)):l=0,a=i.precision,null!==t.precision&&(a=i.getMaxPrecision(t.precision),a!==t.precision&&console.warn("THREE.WebGLProgram.getParameters:",t.precision,"not supported, using",a,"instead.")),v=n.getRenderTarget(),{shaderID:y,precision:a,supportsVertexTextures:i.vertexTextures,outputEncoding:u(v?v.texture:null,n.gammaOutput),map:!!t.map,mapEncoding:u(t.map,n.gammaInput),envMap:!!t.envMap,envMapMode:t.envMap&&t.envMap.mapping,envMapEncoding:u(t.envMap,n.gammaInput),envMapCubeUV:!!t.envMap&&(306===t.envMap.mapping||307===t.envMap.mapping),lightMap:!!t.lightMap,aoMap:!!t.aoMap,emissiveMap:!!t.emissiveMap,emissiveMapEncoding:u(t.emissiveMap,n.gammaInput),bumpMap:!!t.bumpMap,normalMap:!!t.normalMap,displacementMap:!!t.displacementMap,roughnessMap:!!t.roughnessMap,metalnessMap:!!t.metalnessMap,specularMap:!!t.specularMap,alphaMap:!!t.alphaMap,gradientMap:!!t.gradientMap,combine:t.combine,vertexColors:t.vertexColors,fog:!!o,useFog:t.fog,fogExp:o&&o.isFogExp2,flatShading:t.flatShading,sizeAttenuation:t.sizeAttenuation,logarithmicDepthBuffer:i.logarithmicDepthBuffer,skinning:t.skinning&&0<l,maxBones:l,useVertexTexture:i.floatVertexTextures,morphTargets:t.morphTargets,morphNormals:t.morphNormals,maxMorphTargets:n.maxMorphTargets,maxMorphNormals:n.maxMorphNormals,numDirLights:r.directional.length,numPointLights:r.point.length,numSpotLights:r.spot.length,numRectAreaLights:r.rectArea.length,numHemiLights:r.hemi.length,numClippingPlanes:s,numClipIntersection:h,dithering:t.dithering,shadowMapEnabled:n.shadowMap.enabled&&c.receiveShadow&&0<f.length,shadowMapType:n.shadowMap.type,toneMapping:n.toneMapping,physicallyCorrectLights:n.physicallyCorrectLights,premultipliedAlpha:t.premultipliedAlpha,alphaTest:t.alphaTest,doubleSided:2===t.side,flipSided:1===t.side,depthPacking:void 0!==t.depthPacking?t.depthPacking:!1}};this.getProgramCode=function(t,i){var r=[],u;if(i.shaderID?r.push(i.shaderID):(r.push(t.fragmentShader),r.push(t.vertexShader)),void 0!==t.defines)for(u in t.defines)r.push(u),r.push(t.defines[u]);for(u=0;u<f.length;u++)r.push(i[f[u]]);return r.push(t.onBeforeCompile.toString()),r.push(n.gammaOutput),r.join()};this.acquireProgram=function(i,u,f,e){for(var o,s,h=0,c=r.length;h<c;h++)if(s=r[h],s.code===e){o=s;++o.usedTimes;break}return void 0===o&&(o=new cp(n,t,e,i,u,f),r.push(o)),o};this.releaseProgram=function(n){if(0==--n.usedTimes){var t=r.indexOf(n);r[t]=r[r.length-1];r.pop();n.destroy()}};this.programs=r}function ap(n,t,i,r,u,f,e){function a(n,t){if(n.width>t||n.height>t){t/=Math.max(n.width,n.height);var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return i.width=Math.floor(n.width*t),i.height=Math.floor(n.height*t),i.getContext("2d").drawImage(n,0,0,n.width,n.height,0,0,i.width,i.height),console.warn("THREE.WebGLRenderer: image is too big ("+n.width+"x"+n.height+"). Resized to "+i.width+"x"+i.height,n),i}return n}function o(n){return l.isPowerOfTwo(n.width)&&l.isPowerOfTwo(n.height)}function s(n,t){return n.generateMipmaps&&t&&1003!==n.minFilter&&1006!==n.minFilter}function v(t){return 1003===t||1004===t||1005===t?n.NEAREST:n.LINEAR}function c(t){t=t.target;t.removeEventListener("dispose",c);n:{var i=r.get(t);if(t.image&&i.__image__webglTextureCube)n.deleteTexture(i.__image__webglTextureCube);else{if(void 0===i.__webglInit)break n;n.deleteTexture(i.__webglTexture)}r.remove(t)}e.textures--}function y(t){t=t.target;t.removeEventListener("dispose",y);var u=r.get(t),i=r.get(t.texture);if(t){if(void 0!==i.__webglTexture&&n.deleteTexture(i.__webglTexture),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLRenderTargetCube)for(i=0;6>i;i++)n.deleteFramebuffer(u.__webglFramebuffer[i]),u.__webglDepthbuffer&&n.deleteRenderbuffer(u.__webglDepthbuffer[i]);else n.deleteFramebuffer(u.__webglFramebuffer),u.__webglDepthbuffer&&n.deleteRenderbuffer(u.__webglDepthbuffer);r.remove(t.texture);r.remove(t)}e.textures--}function p(t,v){var g=r.get(t),p,y,d,b,w,nt;if(0<t.version&&g.__version!==t.version)if(y=t.image,void 0===y)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined",t);else if(!1===y.complete)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete",t);else{if(void 0===g.__webglInit&&(g.__webglInit=!0,t.addEventListener("dispose",c),g.__webglTexture=n.createTexture(),e.textures++),i.activeTexture(n.TEXTURE0+v),i.bindTexture(n.TEXTURE_2D,g.__webglTexture),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,t.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,t.unpackAlignment),p=a(t.image,u.maxTextureSize),(1001!==t.wrapS||1001!==t.wrapT||1003!==t.minFilter&&1006!==t.minFilter)&&!1===o(p)&&(v=p,v instanceof HTMLImageElement||v instanceof HTMLCanvasElement?(y=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),y.width=l.nearestPowerOfTwo(v.width),y.height=l.nearestPowerOfTwo(v.height),y.getContext("2d").drawImage(v,0,0,y.width,y.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+v.width+"x"+v.height+"). Resized to "+y.width+"x"+y.height,v),p=y):p=v),v=o(p),y=f.convert(t.format),d=f.convert(t.type),h(n.TEXTURE_2D,t,v),b=t.mipmaps,t.isDepthTexture){if(b=n.DEPTH_COMPONENT,1015===t.type){if(!k)throw Error("Float Depth Texture only supported in WebGL2.0");b=n.DEPTH_COMPONENT32F}else k&&(b=n.DEPTH_COMPONENT16);1026===t.format&&b===n.DEPTH_COMPONENT&&1012!==t.type&&1014!==t.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),t.type=1012,d=f.convert(t.type));1027===t.format&&(b=n.DEPTH_STENCIL,1020!==t.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),t.type=1020,d=f.convert(t.type)));i.texImage2D(n.TEXTURE_2D,0,b,p.width,p.height,0,y,d,null)}else if(t.isDataTexture)if(0<b.length&&v){for(w=0,nt=b.length;w<nt;w++)p=b[w],i.texImage2D(n.TEXTURE_2D,w,y,p.width,p.height,0,y,d,p.data);t.generateMipmaps=!1}else i.texImage2D(n.TEXTURE_2D,0,y,p.width,p.height,0,y,d,p.data);else if(t.isCompressedTexture)for(w=0,nt=b.length;w<nt;w++)p=b[w],1023!==t.format&&1022!==t.format?-1<i.getCompressedTextureFormats().indexOf(y)?i.compressedTexImage2D(n.TEXTURE_2D,w,y,p.width,p.height,0,p.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(n.TEXTURE_2D,w,y,p.width,p.height,0,y,d,p.data);else if(0<b.length&&v){for(w=0,nt=b.length;w<nt;w++)p=b[w],i.texImage2D(n.TEXTURE_2D,w,y,y,d,p);t.generateMipmaps=!1}else i.texImage2D(n.TEXTURE_2D,0,y,y,d,p);if(s(t,v)&&n.generateMipmap(n.TEXTURE_2D),g.__version=t.version,t.onUpdate)t.onUpdate(t);return}i.activeTexture(n.TEXTURE0+v);i.bindTexture(n.TEXTURE_2D,g.__webglTexture)}function h(i,e,o){o?(n.texParameteri(i,n.TEXTURE_WRAP_S,f.convert(e.wrapS)),n.texParameteri(i,n.TEXTURE_WRAP_T,f.convert(e.wrapT)),n.texParameteri(i,n.TEXTURE_MAG_FILTER,f.convert(e.magFilter)),n.texParameteri(i,n.TEXTURE_MIN_FILTER,f.convert(e.minFilter))):(n.texParameteri(i,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(i,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),1001===e.wrapS&&1001===e.wrapT||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.",e),n.texParameteri(i,n.TEXTURE_MAG_FILTER,v(e.magFilter)),n.texParameteri(i,n.TEXTURE_MIN_FILTER,v(e.minFilter)),1003!==e.minFilter&&1006!==e.minFilter&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.",e));(o=t.get("EXT_texture_filter_anisotropic"))&&(1015!==e.type||null!==t.get("OES_texture_float_linear"))&&(1016!==e.type||null!==t.get("OES_texture_half_float_linear"))&&(1<e.anisotropy||r.get(e).__currentAnisotropy)&&(n.texParameterf(i,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(e.anisotropy,u.getMaxAnisotropy())),r.get(e).__currentAnisotropy=e.anisotropy)}function w(t,u,e,o){var s=f.convert(u.texture.format),h=f.convert(u.texture.type);i.texImage2D(o,0,s,u.width,u.height,0,s,h,null);n.bindFramebuffer(n.FRAMEBUFFER,t);n.framebufferTexture2D(n.FRAMEBUFFER,e,o,r.get(u.texture).__webglTexture,0);n.bindFramebuffer(n.FRAMEBUFFER,null)}function b(t,i){n.bindRenderbuffer(n.RENDERBUFFER,t);i.depthBuffer&&!i.stencilBuffer?(n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,i.width,i.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,t)):i.depthBuffer&&i.stencilBuffer?(n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,i.width,i.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,t)):n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,i.width,i.height);n.bindRenderbuffer(n.RENDERBUFFER,null)}var k="undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext;this.setTexture2D=p;this.setTextureCube=function(t,l){var b=r.get(t);if(6===t.image.length)if(0<t.version&&b.__version!==t.version){b.__image__webglTextureCube||(t.addEventListener("dispose",c),b.__image__webglTextureCube=n.createTexture(),e.textures++);i.activeTexture(n.TEXTURE0+l);i.bindTexture(n.TEXTURE_CUBE_MAP,b.__image__webglTextureCube);n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,t.flipY);l=t&&t.isCompressedTexture;for(var d=t.image[0]&&t.image[0].isDataTexture,p=[],v=0;6>v;v++)p[v]=l||d?d?t.image[v].image:t.image[v]:a(t.image[v],u.maxCubemapSize);var nt=o(p[0]),y=f.convert(t.format),g=f.convert(t.type);for(h(n.TEXTURE_CUBE_MAP,t,nt),v=0;6>v;v++)if(l)for(var w,tt=p[v].mipmaps,k=0,it=tt.length;k<it;k++)w=tt[k],1023!==t.format&&1022!==t.format?-1<i.getCompressedTextureFormats().indexOf(y)?i.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+v,k,y,w.width,w.height,0,w.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+v,k,y,w.width,w.height,0,y,g,w.data);else d?i.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+v,0,y,p[v].width,p[v].height,0,y,g,p[v].data):i.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+v,0,y,y,g,p[v]);if(s(t,nt)&&n.generateMipmap(n.TEXTURE_CUBE_MAP),b.__version=t.version,t.onUpdate)t.onUpdate(t)}else i.activeTexture(n.TEXTURE0+l),i.bindTexture(n.TEXTURE_CUBE_MAP,b.__image__webglTextureCube)};this.setTextureCubeDynamic=function(t,u){i.activeTexture(n.TEXTURE0+u);i.bindTexture(n.TEXTURE_CUBE_MAP,r.get(t).__webglTexture)};this.setupRenderTarget=function(t){var u=r.get(t),f=r.get(t.texture),a,l,c;if(t.addEventListener("dispose",y),f.__webglTexture=n.createTexture(),e.textures++,a=!0===t.isWebGLRenderTargetCube,l=o(t),a)for(u.__webglFramebuffer=[],c=0;6>c;c++)u.__webglFramebuffer[c]=n.createFramebuffer();else u.__webglFramebuffer=n.createFramebuffer();if(a){for(i.bindTexture(n.TEXTURE_CUBE_MAP,f.__webglTexture),h(n.TEXTURE_CUBE_MAP,t.texture,l),c=0;6>c;c++)w(u.__webglFramebuffer[c],t,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+c);s(t.texture,l)&&n.generateMipmap(n.TEXTURE_CUBE_MAP);i.bindTexture(n.TEXTURE_CUBE_MAP,null)}else i.bindTexture(n.TEXTURE_2D,f.__webglTexture),h(n.TEXTURE_2D,t.texture,l),w(u.__webglFramebuffer,t,n.COLOR_ATTACHMENT0,n.TEXTURE_2D),s(t.texture,l)&&n.generateMipmap(n.TEXTURE_2D),i.bindTexture(n.TEXTURE_2D,null);if(t.depthBuffer){if(u=r.get(t),f=!0===t.isWebGLRenderTargetCube,t.depthTexture){if(f)throw Error("target.depthTexture not supported in Cube render targets");if(t&&t.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(n.FRAMEBUFFER,u.__webglFramebuffer),!t.depthTexture||!t.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");if(r.get(t.depthTexture).__webglTexture&&t.depthTexture.image.width===t.width&&t.depthTexture.image.height===t.height||(t.depthTexture.image.width=t.width,t.depthTexture.image.height=t.height,t.depthTexture.needsUpdate=!0),p(t.depthTexture,0),u=r.get(t.depthTexture).__webglTexture,1026===t.depthTexture.format)n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,u,0);else if(1027===t.depthTexture.format)n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,u,0);else throw Error("Unknown depthTexture format");}else if(f)for(u.__webglDepthbuffer=[],f=0;6>f;f++)n.bindFramebuffer(n.FRAMEBUFFER,u.__webglFramebuffer[f]),u.__webglDepthbuffer[f]=n.createRenderbuffer(),b(u.__webglDepthbuffer[f],t);else n.bindFramebuffer(n.FRAMEBUFFER,u.__webglFramebuffer),u.__webglDepthbuffer=n.createRenderbuffer(),b(u.__webglDepthbuffer,t);n.bindFramebuffer(n.FRAMEBUFFER,null)}};this.updateRenderTargetMipmap=function(t){var u=t.texture,f=o(t);s(u,f)&&(t=t.isWebGLRenderTargetCube?n.TEXTURE_CUBE_MAP:n.TEXTURE_2D,u=r.get(u).__webglTexture,i.bindTexture(t,u),n.generateMipmap(t),i.bindTexture(t,null))}}function vp(){var n={};return{get:function(t){t=t.uuid;var i=n[t];return void 0===i&&(i={},n[t]=i),i},remove:function(t){delete n[t.uuid]},clear:function(){n={}}}}function yp(n,t,i){function ht(t,i,r){var f=new Uint8Array(4),u=n.createTexture();for(n.bindTexture(t,u),n.texParameteri(t,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(t,n.TEXTURE_MAG_FILTER,n.NEAREST),t=0;t<r;t++)n.texImage2D(i+t,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,f);return u}function r(t){!0!==c[t]&&(n.enable(t),c[t]=!0)}function f(t){!1!==c[t]&&(n.disable(t),c[t]=!1)}function a(t,u,e,o,s,h,c,l){if(0!==t?r(n.BLEND):f(n.BLEND),5!==t){if(t!==d||l!==vt)switch(t){case 2:l?(n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD),n.blendFuncSeparate(n.ONE,n.ONE,n.ONE,n.ONE)):(n.blendEquation(n.FUNC_ADD),n.blendFunc(n.SRC_ALPHA,n.ONE));break;case 3:l?(n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD),n.blendFuncSeparate(n.ZERO,n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ONE_MINUS_SRC_ALPHA)):(n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ZERO,n.ONE_MINUS_SRC_COLOR));break;case 4:l?(n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD),n.blendFuncSeparate(n.ZERO,n.SRC_COLOR,n.ZERO,n.SRC_ALPHA)):(n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ZERO,n.SRC_COLOR));break;default:l?(n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD),n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA)):(n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD),n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA))}ut=rt=it=tt=nt=g=null}else s=s||u,h=h||e,c=c||o,(u!==g||s!==it)&&(n.blendEquationSeparate(i.convert(u),i.convert(s)),g=u,it=s),(e!==nt||o!==tt||h!==rt||c!==ut)&&(n.blendFuncSeparate(i.convert(e),i.convert(o),i.convert(h),i.convert(c)),nt=e,tt=o,rt=h,ut=c);d=t;vt=l}function w(t){ft!==t&&(t?n.frontFace(n.CW):n.frontFace(n.CCW),ft=t)}function ct(t){0!==t?(r(n.CULL_FACE),t!==et&&(1===t?n.cullFace(n.BACK):2===t?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):f(n.CULL_FACE);et=t}function lt(t,i,u){t?(r(n.POLYGON_OFFSET_FILL),pt!==i||wt!==u)&&(n.polygonOffset(i,u),pt=i,wt=u):f(n.POLYGON_OFFSET_FILL)}function at(t){void 0===t&&(t=n.TEXTURE0+gt-1);o!==t&&(n.activeTexture(t),o=t)}var v=new function(){var t=!1,i=new y,r=null,u=new y(0,0,0,0);return{setMask:function(i){r===i||t||(n.colorMask(i,i,i,i),r=i)},setLocked:function(n){t=n},setClear:function(t,r,f,e,o){!0===o&&(t*=e,r*=e,f*=e);i.set(t,r,f,e);!1===u.equals(i)&&(n.clearColor(t,r,f,e),u.copy(i))},reset:function(){t=!1;r=null;u.set(-1,0,0,0)}}},e=new function(){var t=!1,i=null,u=null,e=null;return{setTest:function(t){t?r(n.DEPTH_TEST):f(n.DEPTH_TEST)},setMask:function(r){i===r||t||(n.depthMask(r),i=r)},setFunc:function(t){if(u!==t){if(t)switch(t){case 0:n.depthFunc(n.NEVER);break;case 1:n.depthFunc(n.ALWAYS);break;case 2:n.depthFunc(n.LESS);break;case 3:n.depthFunc(n.LEQUAL);break;case 4:n.depthFunc(n.EQUAL);break;case 5:n.depthFunc(n.GEQUAL);break;case 6:n.depthFunc(n.GREATER);break;case 7:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}else n.depthFunc(n.LEQUAL);u=t}},setLocked:function(n){t=n},setClear:function(t){e!==t&&(n.clearDepth(t),e=t)},reset:function(){t=!1;e=u=i=null}}},b=new function(){var t=!1,i=null,u=null,e=null,o=null,s=null,h=null,c=null,l=null;return{setTest:function(t){t?r(n.STENCIL_TEST):f(n.STENCIL_TEST)},setMask:function(r){i===r||t||(n.stencilMask(r),i=r)},setFunc:function(t,i,r){(u!==t||e!==i||o!==r)&&(n.stencilFunc(t,i,r),u=t,e=i,o=r)},setOp:function(t,i,r){(s!==t||h!==i||c!==r)&&(n.stencilOp(t,i,r),s=t,h=i,c=r)},setLocked:function(n){t=n},setClear:function(t){l!==t&&(n.clearStencil(t),l=t)},reset:function(){t=!1;l=c=h=s=o=e=u=i=null}}},s=n.getParameter(n.MAX_VERTEX_ATTRIBS),h=new Uint8Array(s),u=new Uint8Array(s),p=new Uint8Array(s),c={},l=null,k=null,d=null,g=null,nt=null,tt=null,it=null,rt=null,ut=null,vt=!1,ft=null,et=null,yt=null,pt=null,wt=null,bt=null,gt=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS),s=parseFloat(/^WebGL\ ([0-9])/.exec(n.getParameter(n.VERSION))[1]),ni=1<=parseFloat(s),o=null,ot={},kt=new y,dt=new y,st={};return st[n.TEXTURE_2D]=ht(n.TEXTURE_2D,n.TEXTURE_2D,1),st[n.TEXTURE_CUBE_MAP]=ht(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),v.setClear(0,0,0,1),e.setClear(1),b.setClear(0),r(n.DEPTH_TEST),e.setFunc(3),w(!1),ct(1),r(n.CULL_FACE),r(n.BLEND),a(1),{buffers:{color:v,depth:e,stencil:b},initAttributes:function(){for(var n=0,t=h.length;n<t;n++)h[n]=0},enableAttribute:function(i){h[i]=1;0===u[i]&&(n.enableVertexAttribArray(i),u[i]=1);0!==p[i]&&(t.get("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(i,0),p[i]=0)},enableAttributeAndDivisor:function(i,r){h[i]=1;0===u[i]&&(n.enableVertexAttribArray(i),u[i]=1);p[i]!==r&&(t.get("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(i,r),p[i]=r)},disableUnusedAttributes:function(){for(var t=0,i=u.length;t!==i;++t)u[t]!==h[t]&&(n.disableVertexAttribArray(t),u[t]=0)},enable:r,disable:f,getCompressedTextureFormats:function(){if(null===l&&(l=[],t.get("WEBGL_compressed_texture_pvrtc")||t.get("WEBGL_compressed_texture_s3tc")||t.get("WEBGL_compressed_texture_etc1")))for(var r=n.getParameter(n.COMPRESSED_TEXTURE_FORMATS),i=0;i<r.length;i++)l.push(r[i]);return l},useProgram:function(t){return k!==t?(n.useProgram(t),k=t,!0):!1},setBlending:a,setMaterial:function(t){2===t.side?f(n.CULL_FACE):r(n.CULL_FACE);w(1===t.side);!0===t.transparent?a(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):a(0);e.setFunc(t.depthFunc);e.setTest(t.depthTest);e.setMask(t.depthWrite);v.setMask(t.colorWrite);lt(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)},setFlipSided:w,setCullFace:ct,setLineWidth:function(t){t!==yt&&(ni&&n.lineWidth(t),yt=t)},setPolygonOffset:lt,getScissorTest:function(){return bt},setScissorTest:function(t){(bt=t)?r(n.SCISSOR_TEST):f(n.SCISSOR_TEST)},activeTexture:at,bindTexture:function(t,i){null===o&&at();var r=ot[o];void 0===r&&(r={type:void 0,texture:void 0},ot[o]=r);(r.type!==t||r.texture!==i)&&(n.bindTexture(t,i||st[t]),r.type=t,r.texture=i)},compressedTexImage2D:function(){try{n.compressedTexImage2D.apply(n,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{n.texImage2D.apply(n,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(t){!1===kt.equals(t)&&(n.scissor(t.x,t.y,t.z,t.w),kt.copy(t))},viewport:function(t){!1===dt.equals(t)&&(n.viewport(t.x,t.y,t.z,t.w),dt.copy(t))},reset:function(){for(var t=0;t<u.length;t++)1===u[t]&&(n.disableVertexAttribArray(t),u[t]=0);c={};o=l=null;ot={};et=ft=d=k=null;v.reset();e.reset();b.reset()}}}function pp(n,t,i){function e(t){if("highp"===t){if(0<n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision&&0<n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision)return"highp";t="mediump"}return"mediump"===t&&0<n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision&&0<n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision?"mediump":"lowp"}var f,r=void 0!==i.precision?i.precision:"highp",u=e(r);u!==r&&(console.warn("THREE.WebGLRenderer:",r,"not supported, using",u,"instead."),r=u);i=!0===i.logarithmicDepthBuffer&&!!t.get("EXT_frag_depth");var u=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),o=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),c=n.getParameter(n.MAX_TEXTURE_SIZE),l=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),a=n.getParameter(n.MAX_VERTEX_ATTRIBS),v=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),y=n.getParameter(n.MAX_VARYING_VECTORS),p=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),s=0<o,h=!!t.get("OES_texture_float");return{getMaxAnisotropy:function(){if(void 0!==f)return f;var i=t.get("EXT_texture_filter_anisotropic");return f=null!==i?n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:e,precision:r,logarithmicDepthBuffer:i,maxTextures:u,maxVertexTextures:o,maxTextureSize:c,maxCubemapSize:l,maxAttributes:a,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:p,vertexTextures:s,floatFragmentTextures:h,floatVertexTextures:s&&h}}function os(n){g.call(this);this.cameras=n||[]}function wp(n){function l(){if(t.isPresenting){var i=t.getEyeParameters("left"),r=i.renderWidth,i=i.renderHeight;a=n.getPixelRatio();h=n.getSize();n.setDrawingBufferSize(2*r,i,1)}else v.enabled&&n.setDrawingBufferSize(h.width,h.height,a)}var v=this,t=null,u=null,i,f,h,a;"VRFrameData"in window&&(u=new window.VRFrameData);var c=new s,e=new s,o=new s,r=new g;r.bounds=new y(0,0,.5,1);r.layers.enable(1);i=new g;i.bounds=new y(.5,0,.5,1);i.layers.enable(2);f=new os([r,i]);f.layers.enable(1);f.layers.enable(2);window.addEventListener("vrdisplaypresentchange",l,!1);this.standing=this.enabled=!1;this.getDevice=function(){return t};this.setDevice=function(n){void 0!==n&&(t=n)};this.getCamera=function(n){if(null===t)return n;t.depthNear=n.near;t.depthFar=n.far;t.getFrameData(u);var s=u.pose;return(null!==s.position?n.position.fromArray(s.position):n.position.set(0,0,0),null!==s.orientation&&n.quaternion.fromArray(s.orientation),n.updateMatrixWorld(),s=t.stageParameters,this.standing&&s&&(e.fromArray(s.sittingToStandingTransform),o.getInverse(e),n.matrixWorld.multiply(e),n.matrixWorldInverse.multiply(o)),!1===t.isPresenting)?n:(r.near=n.near,i.near=n.near,r.far=n.far,i.far=n.far,f.matrixWorld.copy(n.matrixWorld),f.matrixWorldInverse.copy(n.matrixWorldInverse),r.matrixWorldInverse.fromArray(u.leftViewMatrix),i.matrixWorldInverse.fromArray(u.rightViewMatrix),this.standing&&s&&(r.matrixWorldInverse.multiply(o),i.matrixWorldInverse.multiply(o)),n=n.parent,null!==n&&(c.getInverse(n.matrixWorld),r.matrixWorldInverse.multiply(c),i.matrixWorldInverse.multiply(c)),r.matrixWorld.getInverse(r.matrixWorldInverse),i.matrixWorld.getInverse(i.matrixWorldInverse),r.projectionMatrix.fromArray(u.leftProjectionMatrix),i.projectionMatrix.fromArray(u.rightProjectionMatrix),f.projectionMatrix.copy(r.projectionMatrix),n=t.getLayers(),n.length&&(n=n[0],null!==n.leftBounds&&4===n.leftBounds.length&&r.bounds.fromArray(n.leftBounds),null!==n.rightBounds&&4===n.rightBounds.length&&i.bounds.fromArray(n.rightBounds)),f)};this.getStandingMatrix=function(){return e};this.submitFrame=function(){t&&t.isPresenting&&t.submitFrame()};this.dispose=function(){window.removeEventListener("vrdisplaypresentchange",l)}}function bp(n){var t={};return{get:function(i){if(void 0!==t[i])return t[i];switch(i){case"WEBGL_depth_texture":var r=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;case"WEBGL_compressed_texture_etc1":r=n.getExtension("WEBGL_compressed_texture_etc1");break;default:r=n.getExtension(i)}return null===r&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),t[i]=r}}}function kp(){function s(){n.value!==u&&(n.value=u,n.needsUpdate=0<t);f.numPlanes=t;f.numIntersection=0}function r(t,i,r,u){var s=null!==t?t.length:0,e=null;if(0!==s){if(e=n.value,!0!==u||null===e)for(u=r+4*s,i=i.matrixWorldInverse,h.getNormalMatrix(i),(null===e||e.length<u)&&(e=new Float32Array(u)),u=0;u!==s;++u,r+=4)o.copy(t[u]).applyMatrix4(i,h),o.normal.toArray(e,r),e[r+3]=o.constant;n.value=e;n.needsUpdate=!0}return f.numPlanes=s,e}var f=this,u=null,t=0,e=!1,i=!1,o=new lt,h=new wt,n={value:null,needsUpdate:!1};this.uniform=n;this.numIntersection=this.numPlanes=0;this.init=function(n,i,f){var o=0!==n.length||i||0!==t||e;return e=i,u=r(n,f,0),t=n.length,o};this.beginShadows=function(){i=!0;r(null)};this.endShadows=function(){i=!1;s()};this.setState=function(f,o,h,c,l,a){if(e&&null!==f&&0!==f.length&&(!i||h)){h=i?0:t;var y=4*h,v=l.clippingState||null;for(n.value=v,v=r(f,c,y,a),f=0;f!==y;++f)v[f]=u[f];l.clippingState=v;this.numIntersection=o?this.numPlanes:0;this.numPlanes+=h}else i?r(null):s()}}function kl(n,t){return{convert:function(i){if(1e3===i)return n.REPEAT;if(1001===i)return n.CLAMP_TO_EDGE;if(1002===i)return n.MIRRORED_REPEAT;if(1003===i)return n.NEAREST;if(1004===i)return n.NEAREST_MIPMAP_NEAREST;if(1005===i)return n.NEAREST_MIPMAP_LINEAR;if(1006===i)return n.LINEAR;if(1007===i)return n.LINEAR_MIPMAP_NEAREST;if(1008===i)return n.LINEAR_MIPMAP_LINEAR;if(1009===i)return n.UNSIGNED_BYTE;if(1017===i)return n.UNSIGNED_SHORT_4_4_4_4;if(1018===i)return n.UNSIGNED_SHORT_5_5_5_1;if(1019===i)return n.UNSIGNED_SHORT_5_6_5;if(1010===i)return n.BYTE;if(1011===i)return n.SHORT;if(1012===i)return n.UNSIGNED_SHORT;if(1013===i)return n.INT;if(1014===i)return n.UNSIGNED_INT;if(1015===i)return n.FLOAT;if(1016===i){var r=t.get("OES_texture_half_float");if(null!==r)return r.HALF_FLOAT_OES}if(1021===i)return n.ALPHA;if(1022===i)return n.RGB;if(1023===i)return n.RGBA;if(1024===i)return n.LUMINANCE;if(1025===i)return n.LUMINANCE_ALPHA;if(1026===i)return n.DEPTH_COMPONENT;if(1027===i)return n.DEPTH_STENCIL;if(100===i)return n.FUNC_ADD;if(101===i)return n.FUNC_SUBTRACT;if(102===i)return n.FUNC_REVERSE_SUBTRACT;if(200===i)return n.ZERO;if(201===i)return n.ONE;if(202===i)return n.SRC_COLOR;if(203===i)return n.ONE_MINUS_SRC_COLOR;if(204===i)return n.SRC_ALPHA;if(205===i)return n.ONE_MINUS_SRC_ALPHA;if(206===i)return n.DST_ALPHA;if(207===i)return n.ONE_MINUS_DST_ALPHA;if(208===i)return n.DST_COLOR;if(209===i)return n.ONE_MINUS_DST_COLOR;if(210===i)return n.SRC_ALPHA_SATURATE;if((2001===i||2002===i||2003===i||2004===i)&&(r=t.get("WEBGL_compressed_texture_s3tc"),null!==r)){if(2001===i)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(2002===i)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(2003===i)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(2004===i)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((2100===i||2101===i||2102===i||2103===i)&&(r=t.get("WEBGL_compressed_texture_pvrtc"),null!==r)){if(2100===i)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(2101===i)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(2102===i)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(2103===i)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(2151===i&&(r=t.get("WEBGL_compressed_texture_etc1"),null!==r))return r.COMPRESSED_RGB_ETC1_WEBGL;if((103===i||104===i)&&(r=t.get("EXT_blend_minmax"),null!==r)){if(103===i)return r.MIN_EXT;if(104===i)return r.MAX_EXT}return 1020===i&&(r=t.get("WEBGL_depth_texture"),null!==r)?r.UNSIGNED_INT_24_8_WEBGL:0}}}function ic(n){function di(){e=new bp(i);e.get("WEBGL_depth_texture");e.get("OES_texture_float");e.get("OES_texture_float_linear");e.get("OES_texture_half_float");e.get("OES_texture_half_float_linear");e.get("OES_standard_derivatives");e.get("ANGLE_instanced_arrays");e.get("OES_element_index_uint")&&(f.MaxIndex=4294967296);ut=new kl(i,e);w=new pp(i,e,n);r=new yp(i,e,ut);r.scissor(lt.copy(ri).multiplyScalar(c));r.viewport(ft.copy(ii).multiplyScalar(c));v=new vp;d=new ap(i,e,r,v,w,ut,wi);yt=new ay(i);pt=new tp(i,yt,wi);oi=new up(pt,tt);or=new dy(i);ot=new lp(u,e,w);h=new rp;wt=new by;st=new vy(u,r,pt,ar);sr=new np(i,e,tt);hr=new gy(i,e,tt);cr=new cy(u,i,r,d,w);lr=new ly(u,i,r,d,w);u.info.programs=ot.programs;u.context=i;u.capabilities=w;u.extensions=e;u.properties=v;u.renderLists=wt;u.state=r}function gi(n){n.preventDefault();console.log("THREE.WebGLRenderer: Context Lost.");li=!0}function nr(){console.log("THREE.WebGLRenderer: Context Restored.");li=!1;di()}function tr(n){n=n.target;n.removeEventListener("dispose",tr);ir(n);v.remove(n)}function ir(n){var t=v.get(n).program;n.program=void 0;void 0!==t&&ot.releaseProgram(t)}function yr(n,t,i){n.render(function(n){u.renderBufferImmediate(n,t,i)})}function rr(n,t,i){var f,u,o,e;if(n.visible){if(n.layers.test(t.layers))if(n.isLight)ht.push(n),n.castShadow&&it.push(n);else if(n.isSprite)n.frustumCulled&&!yi.intersectsSprite(n)||hi.push(n);else if(n.isLensFlare)ci.push(n);else if(n.isImmediateRenderObject)i&&at.setFromMatrixPosition(n.matrixWorld).applyMatrix4(fi),g.push(n,null,n.material,at.z,null);else if((n.isMesh||n.isLine||n.isPoints)&&(n.isSkinnedMesh&&n.skeleton.update(),!n.frustumCulled||yi.intersectsObject(n)))if(i&&at.setFromMatrixPosition(n.matrixWorld).applyMatrix4(fi),f=oi.update(n),u=n.material,Array.isArray(u))for(var h=f.groups,r=0,s=h.length;r<s;r++)o=h[r],e=u[o.materialIndex],e&&e.visible&&g.push(n,f,e,at.z,o);else u.visible&&g.push(n,f,u,at.z,null);for(n=n.children,r=0,s=n.length;r<s;r++)rr(n[r],t,i)}}function vt(n,t,i,u){for(var o,s=0,a=n.length;s<a;s++){var f=n[s],h=f.object,v=f.geometry,y=void 0===u?f.material:u,f=f.group;if(i.isArrayCamera){ti=i;for(var w=i.cameras,l=0,g=w.length;l<g;l++)if(o=w[l],h.layers.test(o.layers)){var e=o.bounds,b=e.x*nt,k=e.y*p,d=e.z*nt,e=e.w*p;r.viewport(ft.set(b,k,d,e).multiplyScalar(c));r.scissor(lt.set(b,k,d,e).multiplyScalar(c));r.setScissorTest(!0);ur(h,t,o,v,y,f)}}else ti=null,ur(h,t,i,v,y,f)}}function ur(n,t,i,f,e,o){n.onBeforeRender(u,t,i,f,e,o);if(n.modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,n.matrixWorld),n.normalMatrix.getNormalMatrix(n.modelViewMatrix),n.isImmediateRenderObject){r.setMaterial(e);var s=fr(i,t.fog,e,n);ni="";yr(n,s,e)}else u.renderBufferDirect(i,t.fog,f,e,n,o);n.onAfterRender(u,t,i,f,e,o)}function ei(n,t,i){var r=v.get(n);i=ot.getParameters(n,h.state,it,t,b.numPlanes,b.numIntersection,i);var f=ot.getProgramCode(n,i),e=r.program,o=!0;if(void 0===e)n.addEventListener("dispose",tr);else if(e.code!==f)ir(n);else{if(void 0!==i.shaderID)return;o=!1}if(o&&(i.shaderID?(e=gr[i.shaderID],r.shader={name:n.type,uniforms:et.clone(e.uniforms),vertexShader:e.vertexShader,fragmentShader:e.fragmentShader}):r.shader={name:n.type,uniforms:n.uniforms,vertexShader:n.vertexShader,fragmentShader:n.fragmentShader},n.onBeforeCompile(r.shader),e=ot.acquireProgram(n,r.shader,i,f),r.program=e,n.program=e),i=e.getAttributes(),n.morphTargets)for(f=n.numSupportedMorphTargets=0;f<u.maxMorphTargets;f++)0<=i["morphTarget"+f]&&n.numSupportedMorphTargets++;if(n.morphNormals)for(f=n.numSupportedMorphNormals=0;f<u.maxMorphNormals;f++)0<=i["morphNormal"+f]&&n.numSupportedMorphNormals++;i=r.shader.uniforms;(n.isShaderMaterial||n.isRawShaderMaterial)&&!0!==n.clipping||(r.numClippingPlanes=b.numPlanes,r.numIntersection=b.numIntersection,i.clippingPlanes=b.uniform);r.fog=t;r.lightsHash=h.state.hash;n.lights&&(i.ambientLightColor.value=h.state.ambient,i.directionalLights.value=h.state.directional,i.spotLights.value=h.state.spot,i.rectAreaLights.value=h.state.rectArea,i.pointLights.value=h.state.point,i.hemisphereLights.value=h.state.hemi,i.directionalShadowMap.value=h.state.directionalShadowMap,i.directionalShadowMatrix.value=h.state.directionalShadowMatrix,i.spotShadowMap.value=h.state.spotShadowMap,i.spotShadowMatrix.value=h.state.spotShadowMatrix,i.pointShadowMap.value=h.state.pointShadowMap,i.pointShadowMatrix.value=h.state.pointShadowMatrix);n=r.program.getUniforms();n=ki.seqWithValue(n.seq,i);r.uniformsList=n}function fr(n,t,f,e){var k,it;vi=0;k=v.get(f);ui&&(pi||n!==ct)&&b.setState(f.clippingPlanes,f.clipIntersection,f.clipShadows,n,k,n===ct&&f.id===gt);!1===f.needsUpdate&&(void 0===k.program?f.needsUpdate=!0:f.fog&&k.fog!==t?f.needsUpdate=!0:f.lights&&k.lightsHash!==h.state.hash?f.needsUpdate=!0:void 0===k.numClippingPlanes||k.numClippingPlanes===b.numPlanes&&k.numIntersection===b.numIntersection||(f.needsUpdate=!0));f.needsUpdate&&(ei(f,t,e),f.needsUpdate=!1);var a=!1,d=!1,g=!1,nt=k.program,y=nt.getUniforms(),s=k.shader.uniforms;if(r.useProgram(nt.program)&&(g=d=a=!0),f.id!==gt&&(gt=f.id,d=!0),(a||n!==ct)&&(y.setValue(i,"projectionMatrix",n.projectionMatrix),w.logarithmicDepthBuffer&&y.setValue(i,"logDepthBufFC",2/(Math.log(n.far+1)/Math.LN2)),ct!==(ti||n)&&(ct=ti||n,g=d=!0),(f.isShaderMaterial||f.isMeshPhongMaterial||f.isMeshStandardMaterial||f.envMap)&&(a=y.map.cameraPosition,void 0!==a&&a.setValue(i,at.setFromMatrixPosition(n.matrixWorld))),(f.isMeshPhongMaterial||f.isMeshLambertMaterial||f.isMeshBasicMaterial||f.isMeshStandardMaterial||f.isShaderMaterial||f.skinning)&&y.setValue(i,"viewMatrix",n.matrixWorldInverse)),f.skinning&&(y.setOptional(i,e,"bindMatrix"),y.setOptional(i,e,"bindMatrixInverse"),n=e.skeleton))if(a=n.bones,w.floatVertexTextures){if(void 0===n.boneTexture){var a=Math.sqrt(4*a.length),a=l.nextPowerOfTwo(Math.ceil(a)),a=Math.max(a,4),tt=new Float32Array(a*a*4);tt.set(n.boneMatrices);it=new bi(tt,a,a,1023,1015);n.boneMatrices=tt;n.boneTexture=it;n.boneTextureSize=a}y.setValue(i,"boneTexture",n.boneTexture);y.setValue(i,"boneTextureSize",n.boneTextureSize)}else y.setOptional(i,n,"boneMatrices");return d&&(y.setValue(i,"toneMappingExposure",u.toneMappingExposure),y.setValue(i,"toneMappingWhitePoint",u.toneMappingWhitePoint),f.lights&&(d=g,s.ambientLightColor.needsUpdate=d,s.directionalLights.needsUpdate=d,s.pointLights.needsUpdate=d,s.spotLights.needsUpdate=d,s.rectAreaLights.needsUpdate=d,s.hemisphereLights.needsUpdate=d),t&&f.fog&&(s.fogColor.value=t.color,t.isFog?(s.fogNear.value=t.near,s.fogFar.value=t.far):t.isFogExp2&&(s.fogDensity.value=t.density)),f.isMeshBasicMaterial?rt(s,f):f.isMeshLambertMaterial?(rt(s,f),f.emissiveMap&&(s.emissiveMap.value=f.emissiveMap)):f.isMeshPhongMaterial?(rt(s,f),f.isMeshToonMaterial?(er(s,f),f.gradientMap&&(s.gradientMap.value=f.gradientMap)):er(s,f)):f.isMeshStandardMaterial?(rt(s,f),f.isMeshPhysicalMaterial&&(s.clearCoat.value=f.clearCoat,s.clearCoatRoughness.value=f.clearCoatRoughness),s.roughness.value=f.roughness,s.metalness.value=f.metalness,f.roughnessMap&&(s.roughnessMap.value=f.roughnessMap),f.metalnessMap&&(s.metalnessMap.value=f.metalnessMap),f.emissiveMap&&(s.emissiveMap.value=f.emissiveMap),f.bumpMap&&(s.bumpMap.value=f.bumpMap,s.bumpScale.value=f.bumpScale),f.normalMap&&(s.normalMap.value=f.normalMap,s.normalScale.value.copy(f.normalScale)),f.displacementMap&&(s.displacementMap.value=f.displacementMap,s.displacementScale.value=f.displacementScale,s.displacementBias.value=f.displacementBias),f.envMap&&(s.envMapIntensity.value=f.envMapIntensity)):f.isMeshNormalMaterial?rt(s,f):f.isMeshDepthMaterial?(rt(s,f),f.displacementMap&&(s.displacementMap.value=f.displacementMap,s.displacementScale.value=f.displacementScale,s.displacementBias.value=f.displacementBias)):f.isMeshDistanceMaterial?(rt(s,f),f.displacementMap&&(s.displacementMap.value=f.displacementMap,s.displacementScale.value=f.displacementScale,s.displacementBias.value=f.displacementBias),s.referencePosition.value.copy(f.referencePosition),s.nearDistance.value=f.nearDistance,s.farDistance.value=f.farDistance):f.isMeshNormalMaterial?(f.bumpMap&&(s.bumpMap.value=f.bumpMap,s.bumpScale.value=f.bumpScale),f.normalMap&&(s.normalMap.value=f.normalMap,s.normalScale.value.copy(f.normalScale)),f.displacementMap&&(s.displacementMap.value=f.displacementMap,s.displacementScale.value=f.displacementScale,s.displacementBias.value=f.displacementBias)):f.isLineBasicMaterial?(s.diffuse.value=f.color,s.opacity.value=f.opacity,f.isLineDashedMaterial&&(s.dashSize.value=f.dashSize,s.totalSize.value=f.dashSize+f.gapSize,s.scale.value=f.scale)):f.isPointsMaterial?(s.diffuse.value=f.color,s.opacity.value=f.opacity,s.size.value=f.size*c,s.scale.value=.5*p,s.map.value=f.map,null!==f.map&&(t=f.map.offset,f=f.map.repeat,s.offsetRepeat.value.set(t.x,t.y,f.x,f.y))):f.isShadowMaterial&&(s.color.value=f.color,s.opacity.value=f.opacity),void 0!==s.ltcMat&&(s.ltcMat.value=o.LTC_MAT_TEXTURE),void 0!==s.ltcMag&&(s.ltcMag.value=o.LTC_MAG_TEXTURE),ki.upload(i,k.uniformsList,s,u)),y.setValue(i,"modelViewMatrix",e.modelViewMatrix),y.setValue(i,"normalMatrix",e.normalMatrix),y.setValue(i,"modelMatrix",e.matrixWorld),nt}function rt(n,t){if(n.opacity.value=t.opacity,t.color&&(n.diffuse.value=t.color),t.emissive&&n.emissive.value.copy(t.emissive).multiplyScalar(t.emissiveIntensity),t.map&&(n.map.value=t.map),t.alphaMap&&(n.alphaMap.value=t.alphaMap),t.specularMap&&(n.specularMap.value=t.specularMap),t.envMap&&(n.envMap.value=t.envMap,n.flipEnvMap.value=t.envMap&&t.envMap.isCubeTexture?-1:1,n.reflectivity.value=t.reflectivity,n.refractionRatio.value=t.refractionRatio),t.lightMap&&(n.lightMap.value=t.lightMap,n.lightMapIntensity.value=t.lightMapIntensity),t.aoMap&&(n.aoMap.value=t.aoMap,n.aoMapIntensity.value=t.aoMapIntensity),t.map)var i=t.map;else t.specularMap?i=t.specularMap:t.displacementMap?i=t.displacementMap:t.normalMap?i=t.normalMap:t.bumpMap?i=t.bumpMap:t.roughnessMap?i=t.roughnessMap:t.metalnessMap?i=t.metalnessMap:t.alphaMap?i=t.alphaMap:t.emissiveMap&&(i=t.emissiveMap);void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),t=i.offset,i=i.repeat,n.offsetRepeat.value.set(t.x,t.y,i.x,i.y))}function er(n,t){n.specular.value=t.specular;n.shininess.value=Math.max(t.shininess,.0001);t.emissiveMap&&(n.emissiveMap.value=t.emissiveMap);t.bumpMap&&(n.bumpMap.value=t.bumpMap,n.bumpScale.value=t.bumpScale);t.normalMap&&(n.normalMap.value=t.normalMap,n.normalScale.value.copy(t.normalScale));t.displacementMap&&(n.displacementMap.value=t.displacementMap,n.displacementScale.value=t.displacementScale,n.displacementBias.value=t.displacementBias)}var i,e,w,r,v,d,yt,pt,oi,h,ot,wt,st,or,sr,hr,cr,lr,ut,k,si;console.log("THREE.WebGLRenderer","87dev");n=n||{};var a=void 0!==n.canvas?n.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),pr=void 0!==n.context?n.context:null,bt=void 0!==n.alpha?n.alpha:!1,wr=void 0!==n.depth?n.depth:!0,br=void 0!==n.stencil?n.stencil:!0,kr=void 0!==n.antialias?n.antialias:!1,ar=void 0!==n.premultipliedAlpha?n.premultipliedAlpha:!0,dr=void 0!==n.preserveDrawingBuffer?n.preserveDrawingBuffer:!1,ht=[],it=[],g=null,hi=[],ci=[];this.domElement=a;this.context=null;this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;this.clippingPlanes=[];this.localClippingEnabled=!1;this.gammaFactor=2;this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1;this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1;this.maxMorphTargets=8;this.maxMorphNormals=4;var u=this,li=!1,kt=null,dt=null,gt=-1,ni="",ct=null,ti=null,ft=new y,lt=new y,ai=null,vi=0,nt=a.width,p=a.height,c=1,ii=new y(0,0,nt,p),ri=new y(0,0,nt,p),vr=!1,yi=new es,b=new kp,ui=!1,pi=!1,fi=new s,at=new t,wi={geometries:0,textures:0},tt={frame:0,calls:0,vertices:0,faces:0,points:0};this.info={render:tt,memory:wi,programs:null};try{if(bt={alpha:bt,depth:wr,stencil:br,antialias:kr,premultipliedAlpha:ar,preserveDrawingBuffer:dr},i=pr||a.getContext("webgl",bt)||a.getContext("experimental-webgl",bt),null===i){if(null!==a.getContext("webgl"))throw"Error creating WebGL context with your selected attributes.";throw"Error creating WebGL context.";}void 0===i.getShaderPrecisionFormat&&(i.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}});a.addEventListener("webglcontextlost",gi,!1);a.addEventListener("webglcontextrestored",nr,!1)}catch(nu){console.error("THREE.WebGLRenderer: "+nu)}di();k=new wp(u);this.vr=k;si=new al(u,oi,w.maxTextureSize);this.shadowMap=si;this.getContext=function(){return i};this.getContextAttributes=function(){return i.getContextAttributes()};this.forceContextLoss=function(){var n=e.get("WEBGL_lose_context");n&&n.loseContext()};this.forceContextRestore=function(){var n=e.get("WEBGL_lose_context");n&&n.restoreContext()};this.getPixelRatio=function(){return c};this.setPixelRatio=function(n){void 0!==n&&(c=n,this.setSize(nt,p,!1))};this.getSize=function(){return{width:nt,height:p}};this.setSize=function(n,t,i){var r=k.getDevice();r&&r.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(nt=n,p=t,a.width=n*c,a.height=t*c,!1!==i&&(a.style.width=n+"px",a.style.height=t+"px"),this.setViewport(0,0,n,t))};this.getDrawingBufferSize=function(){return{width:nt*c,height:p*c}};this.setDrawingBufferSize=function(n,t,i){nt=n;p=t;c=i;a.width=n*i;a.height=t*i;this.setViewport(0,0,n,t)};this.setViewport=function(n,t,i,u){ii.set(n,p-t-u,i,u);r.viewport(ft.copy(ii).multiplyScalar(c))};this.setScissor=function(n,t,i,u){ri.set(n,p-t-u,i,u);r.scissor(lt.copy(ri).multiplyScalar(c))};this.setScissorTest=function(n){r.setScissorTest(vr=n)};this.getClearColor=st.getClearColor;this.setClearColor=st.setClearColor;this.getClearAlpha=st.getClearAlpha;this.setClearAlpha=st.setClearAlpha;this.clear=function(n,t,r){var u=0;(void 0===n||n)&&(u|=i.COLOR_BUFFER_BIT);(void 0===t||t)&&(u|=i.DEPTH_BUFFER_BIT);(void 0===r||r)&&(u|=i.STENCIL_BUFFER_BIT);i.clear(u)};this.clearColor=function(){this.clear(!0,!1,!1)};this.clearDepth=function(){this.clear(!1,!0,!1)};this.clearStencil=function(){this.clear(!1,!1,!0)};this.clearTarget=function(n,t,i,r){this.setRenderTarget(n);this.clear(t,i,r)};this.dispose=function(){a.removeEventListener("webglcontextlost",gi,!1);a.removeEventListener("webglcontextrestored",nr,!1);wt.dispose();k.dispose()};this.renderBufferImmediate=function(n,t,u){var o,f,l;if(r.initAttributes(),o=v.get(n),n.hasPositions&&!o.position&&(o.position=i.createBuffer()),n.hasNormals&&!o.normal&&(o.normal=i.createBuffer()),n.hasUvs&&!o.uv&&(o.uv=i.createBuffer()),n.hasColors&&!o.color&&(o.color=i.createBuffer()),t=t.getAttributes(),n.hasPositions&&(i.bindBuffer(i.ARRAY_BUFFER,o.position),i.bufferData(i.ARRAY_BUFFER,n.positionArray,i.DYNAMIC_DRAW),r.enableAttribute(t.position),i.vertexAttribPointer(t.position,3,i.FLOAT,!1,0,0)),n.hasNormals){if(i.bindBuffer(i.ARRAY_BUFFER,o.normal),!u.isMeshPhongMaterial&&!u.isMeshStandardMaterial&&!u.isMeshNormalMaterial&&!0===u.flatShading)for(f=0,l=3*n.count;f<l;f+=9){var e=n.normalArray,s=(e[f+0]+e[f+3]+e[f+6])/3,h=(e[f+1]+e[f+4]+e[f+7])/3,c=(e[f+2]+e[f+5]+e[f+8])/3;e[f+0]=s;e[f+1]=h;e[f+2]=c;e[f+3]=s;e[f+4]=h;e[f+5]=c;e[f+6]=s;e[f+7]=h;e[f+8]=c}i.bufferData(i.ARRAY_BUFFER,n.normalArray,i.DYNAMIC_DRAW);r.enableAttribute(t.normal);i.vertexAttribPointer(t.normal,3,i.FLOAT,!1,0,0)}n.hasUvs&&u.map&&(i.bindBuffer(i.ARRAY_BUFFER,o.uv),i.bufferData(i.ARRAY_BUFFER,n.uvArray,i.DYNAMIC_DRAW),r.enableAttribute(t.uv),i.vertexAttribPointer(t.uv,2,i.FLOAT,!1,0,0));n.hasColors&&0!==u.vertexColors&&(i.bindBuffer(i.ARRAY_BUFFER,o.color),i.bufferData(i.ARRAY_BUFFER,n.colorArray,i.DYNAMIC_DRAW),r.enableAttribute(t.color),i.vertexAttribPointer(t.color,3,i.FLOAT,!1,0,0));r.disableUnusedAttributes();i.drawArrays(i.TRIANGLES,0,n.count);n.count=0};this.renderBufferDirect=function(n,t,u,f,o,s){var b,v,a,d,k,l,h,p;if(r.setMaterial(f),b=fr(n,t,f,o),n=u.id+"_"+b.id+"_"+(!0===f.wireframe),v=!1,n!==ni&&(ni=n,v=!0),o.morphTargetInfluences&&(or.update(o,u,f,b),v=!0),a=u.index,d=u.attributes.position,t=1,!0===f.wireframe&&(a=pt.getWireframeAttribute(u),t=2),n=sr,null!==a&&(k=yt.get(a),n=hr,n.setIndex(k)),v){if(v=void 0,u&&u.isInstancedBufferGeometry&&null===e.get("ANGLE_instanced_arrays"))console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{void 0===v&&(v=0);r.initAttributes();var ft=u.attributes,b=b.getAttributes(),tt=f.defaultAttributeValues;for(p in b)if(l=b[p],0<=l)if(h=ft[p],void 0!==h){var y=h.normalized,nt=h.itemSize,w=yt.get(h);if(void 0!==w){var it=w.buffer,rt=w.type,w=w.bytesPerElement;if(h.isInterleavedBufferAttribute){var g=h.data,ut=g.stride,h=h.offset;g&&g.isInstancedInterleavedBuffer?(r.enableAttributeAndDivisor(l,g.meshPerAttribute),void 0===u.maxInstancedCount&&(u.maxInstancedCount=g.meshPerAttribute*g.count)):r.enableAttribute(l);i.bindBuffer(i.ARRAY_BUFFER,it);i.vertexAttribPointer(l,nt,rt,y,ut*w,(v*ut+h)*w)}else h.isInstancedBufferAttribute?(r.enableAttributeAndDivisor(l,h.meshPerAttribute),void 0===u.maxInstancedCount&&(u.maxInstancedCount=h.meshPerAttribute*h.count)):r.enableAttribute(l),i.bindBuffer(i.ARRAY_BUFFER,it),i.vertexAttribPointer(l,nt,rt,y,0,v*nt*w)}}else if(void 0!==tt&&(y=tt[p],void 0!==y))switch(y.length){case 2:i.vertexAttrib2fv(l,y);break;case 3:i.vertexAttrib3fv(l,y);break;case 4:i.vertexAttrib4fv(l,y);break;default:i.vertexAttrib1fv(l,y)}r.disableUnusedAttributes()}null!==a&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,k.buffer)}if(k=0,null!==a?k=a.count:void 0!==d&&(k=d.count),a=u.drawRange.start*t,d=null!==s?s.start*t:0,p=Math.max(a,d),s=Math.max(0,Math.min(k,a+u.drawRange.count*t,d+(null!==s?s.count*t:Infinity))-1-p+1),0!==s){if(o.isMesh)if(!0===f.wireframe)r.setLineWidth(f.wireframeLinewidth*(null===kt?c:1)),n.setMode(i.LINES);else switch(o.drawMode){case 0:n.setMode(i.TRIANGLES);break;case 1:n.setMode(i.TRIANGLE_STRIP);break;case 2:n.setMode(i.TRIANGLE_FAN)}else o.isLine?(f=f.linewidth,void 0===f&&(f=1),r.setLineWidth(f*(null===kt?c:1)),o.isLineSegments?n.setMode(i.LINES):o.isLineLoop?n.setMode(i.LINE_LOOP):n.setMode(i.LINE_STRIP)):o.isPoints&&n.setMode(i.POINTS);u&&u.isInstancedBufferGeometry?0<u.maxInstancedCount&&n.renderInstances(u,p,s):n.render(p,s)}};this.compile=function(n,t){ht.length=0;it.length=0;n.traverse(function(n){n.isLight&&(ht.push(n),n.castShadow&&it.push(n))});h.setup(ht,it,t);n.traverse(function(t){if(t.material)if(Array.isArray(t.material))for(var i=0;i<t.material.length;i++)ei(t.material[i],n.fog,t);else ei(t.material,n.fog,t)})};this.animate=function(n){function t(){n();(k.getDevice()||window).requestAnimationFrame(t)}(k.getDevice()||window).requestAnimationFrame(t)};this.render=function(n,t,i,f){var e,o;t&&t.isCamera?li||(ni="",gt=-1,ct=null,!0===n.autoUpdate&&n.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),k.enabled&&(t=k.getCamera(t)),fi.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),yi.setFromMatrix(fi),ht.length=0,it.length=0,hi.length=0,ci.length=0,pi=this.localClippingEnabled,ui=b.init(this.clippingPlanes,pi,t),g=wt.get(n,t),g.init(),rr(n,t,u.sortObjects),!0===u.sortObjects&&g.sort(),ui&&b.beginShadows(),si.render(it,n,t),h.setup(ht,it,t),ui&&b.endShadows(),tt.frame++,tt.calls=0,tt.vertices=0,tt.faces=0,tt.points=0,void 0===i&&(i=null),this.setRenderTarget(i),st.render(g,n,t,f),f=g.opaque,e=g.transparent,n.overrideMaterial?(o=n.overrideMaterial,f.length&&vt(f,n,t,o),e.length&&vt(e,n,t,o)):(f.length&&vt(f,n,t),e.length&&vt(e,n,t)),lr.render(hi,n,t),cr.render(ci,n,t,ft),i&&d.updateRenderTargetMipmap(i),r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),r.setPolygonOffset(!1),k.enabled&&k.submitFrame()):console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")};this.setFaceCulling=function(n,t){r.setCullFace(n);r.setFlipSided(0===t)};this.allocTextureUnit=function(){var n=vi;return n>=w.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+n+" texture units while this GPU supports only "+w.maxTextures),vi+=1,n};this.setTexture2D=function(){var n=!1;return function(t,i){t&&t.isWebGLRenderTarget&&(n||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),n=!0),t=t.texture);d.setTexture2D(t,i)}}();this.setTexture=function(){var n=!1;return function(t,i){n||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),n=!0);d.setTexture2D(t,i)}}();this.setTextureCube=function(){var n=!1;return function(t,i){t&&t.isWebGLRenderTargetCube&&(n||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),n=!0),t=t.texture);t&&t.isCubeTexture||Array.isArray(t.image)&&6===t.image.length?d.setTextureCube(t,i):d.setTextureCubeDynamic(t,i)}}();this.getRenderTarget=function(){return kt};this.setRenderTarget=function(n){(kt=n)&&void 0===v.get(n).__webglFramebuffer&&d.setupRenderTarget(n);var t=null,u=!1;n?(t=v.get(n).__webglFramebuffer,n.isWebGLRenderTargetCube&&(t=t[n.activeCubeFace],u=!0),ft.copy(n.viewport),lt.copy(n.scissor),ai=n.scissorTest):(ft.copy(ii).multiplyScalar(c),lt.copy(ri).multiplyScalar(c),ai=vr);dt!==t&&(i.bindFramebuffer(i.FRAMEBUFFER,t),dt=t);r.viewport(ft);r.scissor(lt);r.setScissorTest(ai);u&&(u=v.get(n.texture),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+n.activeCubeFace,u.__webglTexture,n.activeMipMapLevel))};this.readRenderTargetPixels=function(n,t,r,u,f,o){var h,c;if(n&&n.isWebGLRenderTarget){if(h=v.get(n).__webglFramebuffer,h){c=!1;h!==dt&&(i.bindFramebuffer(i.FRAMEBUFFER,h),c=!0);try{var a=n.texture,l=a.format,s=a.type;1023!==l&&ut.convert(l)!==i.getParameter(i.IMPLEMENTATION_COLOR_READ_FORMAT)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===s||ut.convert(s)===i.getParameter(i.IMPLEMENTATION_COLOR_READ_TYPE)||1015===s&&(e.get("OES_texture_float")||e.get("WEBGL_color_buffer_float"))||1016===s&&e.get("EXT_color_buffer_half_float")?i.checkFramebufferStatus(i.FRAMEBUFFER)===i.FRAMEBUFFER_COMPLETE?0<=t&&t<=n.width-u&&0<=r&&r<=n.height-f&&i.readPixels(t,r,u,f,ut.convert(l),ut.convert(s),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{c&&i.bindFramebuffer(i.FRAMEBUFFER,dt)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")}}function eu(n,t){this.name="";this.color=new e(n);this.density=void 0!==t?t:.00025}function ou(n,t,i){this.name="";this.color=new e(n);this.near=void 0!==t?t:1;this.far=void 0!==i?i:1e3}function ss(){u.call(this);this.type="Scene";this.overrideMaterial=this.fog=this.background=null;this.autoUpdate=!0}function rc(n,i,r,f,e){u.call(this);this.lensFlares=[];this.positionScreen=new t;this.customUpdateCallback=void 0;void 0!==n&&this.add(n,i,r,f,e)}function pi(n){a.call(this);this.type="SpriteMaterial";this.color=new e(16777215);this.map=null;this.rotation=0;this.lights=this.fog=!1;this.setValues(n)}function se(n){u.call(this);this.type="Sprite";this.material=void 0!==n?n:new pi}function he(){u.call(this);this.type="LOD";Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ce(n,t){if(n=n||[],this.bones=n.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),void 0===t)this.calculateInverses();else if(this.bones.length===t.length)this.boneInverses=t.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],n=0,t=this.bones.length;n<t;n++)this.boneInverses.push(new s)}function hs(){u.call(this);this.type="Bone"}function cs(n,t){it.call(this,n,t);this.type="SkinnedMesh";this.bindMode="attached";this.bindMatrix=new s;this.bindMatrixInverse=new s;n=this.initBones();n=new ce(n);this.bind(n,this.matrixWorld);this.normalizeSkinWeights()}function p(n){a.call(this);this.type="LineBasicMaterial";this.color=new e(16777215);this.linewidth=1;this.linejoin=this.linecap="round";this.lights=!1;this.setValues(n)}function ut(n,t,i){if(1===i)return console.warn("THREE.Line: parameter THREE.LinePieces no longer supported. Created THREE.LineSegments instead."),new w(n,t);u.call(this);this.type="Line";this.geometry=void 0!==n?n:new f;this.material=void 0!==t?t:new p({color:16777215*Math.random()})}function w(n,t){ut.call(this,n,t);this.type="LineSegments"}function ls(n,t){ut.call(this,n,t);this.type="LineLoop"}function bt(n){a.call(this);this.type="PointsMaterial";this.color=new e(16777215);this.map=null;this.size=1;this.sizeAttenuation=!0;this.lights=!1;this.setValues(n)}function su(n,t){u.call(this);this.type="Points";this.geometry=void 0!==n?n:new f;this.material=void 0!==t?t:new bt({color:16777215*Math.random()})}function le(){u.call(this);this.type="Group"}function as(n,t,i,r,u,f,e,o,s){function h(){requestAnimationFrame(h);n.readyState>=n.HAVE_CURRENT_DATA&&(c.needsUpdate=!0)}b.call(this,n,t,i,r,u,f,e,o,s);this.generateMipmaps=!1;var c=this;h()}function hu(n,t,i,r,u,f,e,o,s,h,c,l){b.call(this,null,f,e,o,s,h,r,u,c,l);this.image={width:t,height:i};this.mipmaps=n;this.generateMipmaps=this.flipY=!1}function ae(n,t,i,r,u,f,e,o,s,h){if(h=void 0!==h?h:1026,1026!==h&&1027!==h)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===i&&1026===h&&(i=1012);void 0===i&&1027===h&&(i=1020);b.call(this,null,r,u,f,e,o,h,i,s);this.image={width:n,height:t};this.magFilter=void 0!==e?e:1003;this.minFilter=void 0!==o?o:1003;this.generateMipmaps=this.flipY=!1}function cu(n){var c,u,a,o,y,i,p;f.call(this);this.type="WireframeGeometry";var v=[],e,l,w,s=[0,0],h={},i=["a","b","c"];if(n&&n.isGeometry){for(c=n.faces,u=0,l=c.length;u<l;u++)for(a=c[u],e=0;3>e;e++)o=a[i[e]],y=a[i[(e+1)%3]],s[0]=Math.min(o,y),s[1]=Math.max(o,y),o=s[0]+","+s[1],void 0===h[o]&&(h[o]={index1:s[0],index2:s[1]});for(o in h)u=h[o],i=n.vertices[u.index1],v.push(i.x,i.y,i.z),i=n.vertices[u.index2],v.push(i.x,i.y,i.z)}else if(n&&n.isBufferGeometry)if(i=new t,null!==n.index){for(c=n.attributes.position,a=n.index,p=n.groups,0===p.length&&(p=[{start:0,count:a.count,materialIndex:0}]),n=0,w=p.length;n<w;++n)for(u=p[n],e=u.start,l=u.count,u=e,l=e+l;u<l;u+=3)for(e=0;3>e;e++)o=a.getX(u+e),y=a.getX(u+(e+1)%3),s[0]=Math.min(o,y),s[1]=Math.max(o,y),o=s[0]+","+s[1],void 0===h[o]&&(h[o]={index1:s[0],index2:s[1]});for(o in h)u=h[o],i.fromBufferAttribute(c,u.index1),v.push(i.x,i.y,i.z),i.fromBufferAttribute(c,u.index2),v.push(i.x,i.y,i.z)}else for(c=n.attributes.position,u=0,l=c.count/3;u<l;u++)for(e=0;3>e;e++)h=3*u+e,i.fromBufferAttribute(c,h),v.push(i.x,i.y,i.z),h=3*u+(e+1)%3,i.fromBufferAttribute(c,h),v.push(i.x,i.y,i.z);this.addAttribute("position",new r(v,3))}function ve(n,t,i){h.call(this);this.type="ParametricGeometry";this.parameters={func:n,slices:t,stacks:i};this.fromBufferGeometry(new lu(n,t,i));this.mergeVertices()}function lu(n,i,u){var c,l,e;f.call(this);this.type="ParametricBufferGeometry";this.parameters={func:n,slices:i,stacks:u};for(var y=[],b=[],k=[],d=[],a=new t,e=new t,o=new t,p=new t,w=new t,s,v=i+1,h=0;h<=u;h++)for(c=h/u,s=0;s<=i;s++)l=s/i,e=n(l,c,e),b.push(e.x,e.y,e.z),0<=l-1e-5?(o=n(l-1e-5,c,o),p.subVectors(e,o)):(o=n(l+1e-5,c,o),p.subVectors(o,e)),0<=c-1e-5?(o=n(l,c-1e-5,o),w.subVectors(e,o)):(o=n(l,c+1e-5,o),w.subVectors(o,e)),a.crossVectors(p,w).normalize(),k.push(a.x,a.y,a.z),d.push(l,c);for(h=0;h<u;h++)for(s=0;s<i;s++)n=h*v+s+1,a=(h+1)*v+s+1,e=(h+1)*v+s,y.push(h*v+s,n,e),y.push(n,a,e);this.setIndex(y);this.addAttribute("position",new r(b,3));this.addAttribute("normal",new r(k,3));this.addAttribute("uv",new r(d,2))}function ye(n,t,i,r){h.call(this);this.type="PolyhedronGeometry";this.parameters={vertices:n,indices:t,radius:i,detail:r};this.fromBufferGeometry(new ft(n,t,i,r));this.mergeVertices()}function ft(n,u,e,o){function c(n){s.push(n.x,n.y,n.z)}function l(t,i){t*=3;i.x=n[t+0];i.y=n[t+1];i.z=n[t+2]}function a(n,t,i,r){0>r&&1===n.x&&(h[t]=n.x-1);0===i.x&&0===i.z&&(h[t]=r/2/Math.PI+.5)}f.call(this);this.type="PolyhedronBufferGeometry";this.parameters={vertices:n,indices:u,radius:e,detail:o};e=e||1;o=o||0;var s=[],h=[];(function(n){for(var h=new t,a=new t,v=new t,s=0;s<u.length;s+=3){l(u[s+0],h);l(u[s+1],a);l(u[s+2],v);for(var r,f=h,b=a,y=v,o=Math.pow(2,n),e=[],i=0;i<=o;i++){e[i]=[];var p=f.clone().lerp(y,i/o),k=b.clone().lerp(y,i/o),w=o-i;for(r=0;r<=w;r++)e[i][r]=0===r&&i===o?p:p.clone().lerp(k,r/w)}for(i=0;i<o;i++)for(r=0;r<2*(o-i)-1;r++)f=Math.floor(r/2),0==r%2?(c(e[i][f+1]),c(e[i+1][f]),c(e[i][f])):(c(e[i][f+1]),c(e[i+1][f+1]),c(e[i+1][f]))}})(o),function(n){for(var r=new t,i=0;i<s.length;i+=3)r.x=s[i+0],r.y=s[i+1],r.z=s[i+2],r.normalize().multiplyScalar(n),s[i+0]=r.x,s[i+1]=r.y,s[i+2]=r.z}(e),function(){for(var c,n=new t,r=0;r<s.length;r+=3)n.x=s[r+0],n.y=s[r+1],n.z=s[r+2],h.push(Math.atan2(n.z,-n.x)/2/Math.PI+.5,1-(Math.atan2(-n.y,Math.sqrt(n.x*n.x+n.z*n.z))/Math.PI+.5));for(var n=new t,r=new t,e=new t,o=new t,l=new i,v=new i,y=new i,u=0,f=0;u<s.length;u+=9,f+=6)n.set(s[u+0],s[u+1],s[u+2]),r.set(s[u+3],s[u+4],s[u+5]),e.set(s[u+6],s[u+7],s[u+8]),l.set(h[f+0],h[f+1]),v.set(h[f+2],h[f+3]),y.set(h[f+4],h[f+5]),o.copy(n).add(r).add(e).divideScalar(3),c=Math.atan2(o.z,-o.x),a(l,f+0,n,c),a(v,f+2,r,c),a(y,f+4,e,c);for(n=0;n<h.length;n+=6)r=h[n+0],e=h[n+2],o=h[n+4],l=Math.min(r,e,o),.9<Math.max(r,e,o)&&.1>l&&(.2>r&&(h[n+0]+=1),.2>e&&(h[n+2]+=1),.2>o&&(h[n+4]+=1))}();this.addAttribute("position",new r(s,3));this.addAttribute("normal",new r(s.slice(),3));this.addAttribute("uv",new r(h,2));0===o?this.computeVertexNormals():this.normalizeNormals()}function pe(n,t){h.call(this);this.type="TetrahedronGeometry";this.parameters={radius:n,detail:t};this.fromBufferGeometry(new au(n,t));this.mergeVertices()}function au(n,t){ft.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],n,t);this.type="TetrahedronBufferGeometry";this.parameters={radius:n,detail:t}}function we(n,t){h.call(this);this.type="OctahedronGeometry";this.parameters={radius:n,detail:t};this.fromBufferGeometry(new rr(n,t));this.mergeVertices()}function rr(n,t){ft.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],n,t);this.type="OctahedronBufferGeometry";this.parameters={radius:n,detail:t}}function be(n,t){h.call(this);this.type="IcosahedronGeometry";this.parameters={radius:n,detail:t};this.fromBufferGeometry(new vu(n,t));this.mergeVertices()}function vu(n,t){var i=(1+Math.sqrt(5))/2;ft.call(this,[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],n,t);this.type="IcosahedronBufferGeometry";this.parameters={radius:n,detail:t}}function ke(n,t){h.call(this);this.type="DodecahedronGeometry";this.parameters={radius:n,detail:t};this.fromBufferGeometry(new yu(n,t));this.mergeVertices()}function yu(n,t){var i=(1+Math.sqrt(5))/2,r=1/i;ft.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-i,0,-r,i,0,r,-i,0,r,i,-r,-i,0,-r,i,0,r,-i,0,r,i,0,-i,0,-r,i,0,-r,-i,0,r,i,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],n,t);this.type="DodecahedronBufferGeometry";this.parameters={radius:n,detail:t}}function de(n,t,i,r,u,f){h.call(this);this.type="TubeGeometry";this.parameters={path:n,tubularSegments:t,radius:i,radialSegments:r,closed:u};void 0!==f&&console.warn("THREE.TubeGeometry: taper has been removed.");n=new pu(n,t,i,r,u);this.tangents=n.tangents;this.normals=n.normals;this.binormals=n.binormals;this.fromBufferGeometry(n);this.mergeVertices()}function pu(n,u,e,o,s){function w(t){var r=n.getPointAt(t/u),f=a.normals[t];for(t=a.binormals[t],h=0;h<=o;h++){var i=h/o*Math.PI*2,s=Math.sin(i),i=-Math.cos(i);l.x=i*f.x+s*t.x;l.y=i*f.y+s*t.y;l.z=i*f.z+s*t.z;l.normalize();k.push(l.x,l.y,l.z);v.x=r.x+e*l.x;v.y=r.y+e*l.y;v.z=r.z+e*l.z;b.push(v.x,v.y,v.z)}}var a;f.call(this);this.type="TubeBufferGeometry";this.parameters={path:n,tubularSegments:u,radius:e,radialSegments:o,closed:s};u=u||64;e=e||1;o=o||8;s=s||!1;a=n.computeFrenetFrames(u,s);this.tangents=a.tangents;this.normals=a.normals;this.binormals=a.binormals;for(var v=new t,l=new t,y=new i,h,b=[],k=[],d=[],p=[],c=0;c<u;c++)w(c);for(w(!1===s?u:0),c=0;c<=u;c++)for(h=0;h<=o;h++)y.x=c/u,y.y=h/o,d.push(y.x,y.y);(function(){for(h=1;h<=u;h++)for(c=1;c<=o;c++){var n=(o+1)*h+(c-1),i=(o+1)*h+c,t=(o+1)*(h-1)+c;p.push((o+1)*(h-1)+(c-1),n,t);p.push(n,i,t)}})();this.setIndex(p);this.addAttribute("position",new r(b,3));this.addAttribute("normal",new r(k,3));this.addAttribute("uv",new r(d,2))}function ge(n,t,i,r,u,f,e){h.call(this);this.type="TorusKnotGeometry";this.parameters={radius:n,tube:t,tubularSegments:i,radialSegments:r,p:u,q:f};void 0!==e&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead.");this.fromBufferGeometry(new wu(n,t,i,r,u,f));this.mergeVertices()}function wu(n,i,u,e,o,s){function tt(n,t,i,r,u){var f=Math.sin(n);t=i/t*n;i=Math.cos(t);u.x=r*(2+i)*.5*Math.cos(n);u.y=r*(2+i)*f*.5;u.z=r*Math.sin(t)*.5}var h;f.call(this);this.type="TorusKnotBufferGeometry";this.parameters={radius:n,tube:i,tubularSegments:u,radialSegments:e,p:o,q:s};n=n||100;i=i||40;u=Math.floor(u)||64;e=Math.floor(e)||8;o=o||2;s=s||3;for(var b=[],it=[],rt=[],k=[],l=new t,w=new t,a=new t,d=new t,y=new t,g=new t,v=new t,c=0;c<=u;++c)for(h=c/u*o*Math.PI*2,tt(h,o,s,n,a),tt(h+.01,o,s,n,d),g.subVectors(d,a),v.addVectors(d,a),y.crossVectors(g,v),v.crossVectors(y,g),y.normalize(),v.normalize(),h=0;h<=e;++h){var p=h/e*Math.PI*2,nt=-i*Math.cos(p),p=i*Math.sin(p);l.x=a.x+(nt*v.x+p*y.x);l.y=a.y+(nt*v.y+p*y.y);l.z=a.z+(nt*v.z+p*y.z);it.push(l.x,l.y,l.z);w.subVectors(l,a).normalize();rt.push(w.x,w.y,w.z);k.push(c/u);k.push(h/e)}for(h=1;h<=u;h++)for(c=1;c<=e;c++)n=(e+1)*h+(c-1),i=(e+1)*h+c,o=(e+1)*(h-1)+c,b.push((e+1)*(h-1)+(c-1),n,o),b.push(n,i,o);this.setIndex(b);this.addAttribute("position",new r(it,3));this.addAttribute("normal",new r(rt,3));this.addAttribute("uv",new r(k,2))}function no(n,t,i,r,u){h.call(this);this.type="TorusGeometry";this.parameters={radius:n,tube:t,radialSegments:i,tubularSegments:r,arc:u};this.fromBufferGeometry(new bu(n,t,i,r,u));this.mergeVertices()}function bu(n,i,u,e,o){var l,a;f.call(this);this.type="TorusBufferGeometry";this.parameters={radius:n,tube:i,radialSegments:u,tubularSegments:e,arc:o};n=n||100;i=i||40;u=Math.floor(u)||8;e=Math.floor(e)||6;o=o||2*Math.PI;for(var y=[],b=[],k=[],p=[],w=new t,c=new t,v=new t,s,h=0;h<=u;h++)for(s=0;s<=e;s++)l=s/e*o,a=h/u*Math.PI*2,c.x=(n+i*Math.cos(a))*Math.cos(l),c.y=(n+i*Math.cos(a))*Math.sin(l),c.z=i*Math.sin(a),b.push(c.x,c.y,c.z),w.x=n*Math.cos(l),w.y=n*Math.sin(l),v.subVectors(c,w).normalize(),k.push(v.x,v.y,v.z),p.push(s/e),p.push(h/u);for(h=1;h<=u;h++)for(s=1;s<=e;s++)n=(e+1)*(h-1)+s-1,i=(e+1)*(h-1)+s,o=(e+1)*h+s,y.push((e+1)*h+s-1,n,o),y.push(n,i,o);this.setIndex(y);this.addAttribute("position",new r(b,3));this.addAttribute("normal",new r(k,3));this.addAttribute("uv",new r(p,2))}function wi(n,t){h.call(this);this.type="ExtrudeGeometry";this.parameters={shapes:n,options:t};this.fromBufferGeometry(new kt(n,t));this.mergeVertices()}function kt(n,t){"undefined"!=typeof n&&(f.call(this),this.type="ExtrudeBufferGeometry",n=Array.isArray(n)?n:[n],this.addShapeList(n,t),this.computeVertexNormals())}function to(n,t){h.call(this);this.type="TextGeometry";this.parameters={text:n,parameters:t};this.fromBufferGeometry(new ku(n,t));this.mergeVertices()}function ku(n,t){t=t||{};var i=t.font;if(!i||!i.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new h;n=i.generateShapes(n,t.size,t.curveSegments);t.amount=void 0!==t.height?t.height:50;void 0===t.bevelThickness&&(t.bevelThickness=10);void 0===t.bevelSize&&(t.bevelSize=8);void 0===t.bevelEnabled&&(t.bevelEnabled=!1);kt.call(this,n,t);this.type="TextBufferGeometry"}function io(n,t,i,r,u,f,e){h.call(this);this.type="SphereGeometry";this.parameters={radius:n,widthSegments:t,heightSegments:i,phiStart:r,phiLength:u,thetaStart:f,thetaLength:e};this.fromBufferGeometry(new ur(n,t,i,r,u,f,e));this.mergeVertices()}function ur(n,i,u,e,o,s,h){var b,v,p;f.call(this);this.type="SphereBufferGeometry";this.parameters={radius:n,widthSegments:i,heightSegments:u,phiStart:e,phiLength:o,thetaStart:s,thetaLength:h};n=n||50;i=Math.max(3,Math.floor(i)||8);u=Math.max(2,Math.floor(u)||6);e=void 0!==e?e:0;o=void 0!==o?o:2*Math.PI;s=void 0!==s?s:0;h=void 0!==h?h:Math.PI;for(var tt=s+h,l,it=0,y=[],a=new t,w=new t,k=[],d=[],g=[],nt=[],c=0;c<=u;c++){for(b=[],v=c/u,l=0;l<=i;l++)p=l/i,a.x=-n*Math.cos(e+p*o)*Math.sin(s+v*h),a.y=n*Math.cos(s+v*h),a.z=n*Math.sin(e+p*o)*Math.sin(s+v*h),d.push(a.x,a.y,a.z),w.set(a.x,a.y,a.z).normalize(),g.push(w.x,w.y,w.z),nt.push(p,1-v),b.push(it++);y.push(b)}for(c=0;c<u;c++)for(l=0;l<i;l++)n=y[c][l+1],e=y[c][l],o=y[c+1][l],h=y[c+1][l+1],(0!==c||0<s)&&k.push(n,e,h),(c!==u-1||tt<Math.PI)&&k.push(e,o,h);this.setIndex(k);this.addAttribute("position",new r(d,3));this.addAttribute("normal",new r(g,3));this.addAttribute("uv",new r(nt,2))}function ro(n,t,i,r,u,f){h.call(this);this.type="RingGeometry";this.parameters={innerRadius:n,outerRadius:t,thetaSegments:i,phiSegments:r,thetaStart:u,thetaLength:f};this.fromBufferGeometry(new du(n,t,i,r,u,f));this.mergeVertices()}function du(n,u,e,o,s,h){f.call(this);this.type="RingBufferGeometry";this.parameters={innerRadius:n,outerRadius:u,thetaSegments:e,phiSegments:o,thetaStart:s,thetaLength:h};n=n||20;u=u||50;s=void 0!==s?s:0;h=void 0!==h?h:2*Math.PI;e=void 0!==e?Math.max(3,e):8;o=void 0!==o?Math.max(1,o):1;for(var p=[],w=[],b=[],k=[],a=n,d=(u-n)/o,l=new t,y=new i,c,v=0;v<=o;v++){for(c=0;c<=e;c++)n=s+c/e*h,l.x=a*Math.cos(n),l.y=a*Math.sin(n),w.push(l.x,l.y,l.z),b.push(0,0,1),y.x=(l.x/u+1)/2,y.y=(l.y/u+1)/2,k.push(y.x,y.y);a+=d}for(v=0;v<o;v++)for(u=v*(e+1),c=0;c<e;c++)n=c+u,s=n+e+1,h=n+e+2,a=n+1,p.push(n,s,a),p.push(s,h,a);this.setIndex(p);this.addAttribute("position",new r(w,3));this.addAttribute("normal",new r(b,3));this.addAttribute("uv",new r(k,2))}function uo(n,t,i,r){h.call(this);this.type="LatheGeometry";this.parameters={points:n,segments:t,phiStart:i,phiLength:r};this.fromBufferGeometry(new gu(n,t,i,r));this.mergeVertices()}function gu(n,u,e,o){f.call(this);this.type="LatheBufferGeometry";this.parameters={points:n,segments:u,phiStart:e,phiLength:o};u=Math.floor(u)||12;e=e||0;o=o||2*Math.PI;o=l.clamp(o,0,2*Math.PI);for(var c=[],v=[],y=[],w=1/u,a=new t,p=new i,h=0;h<=u;h++)for(var s=e+h*w*o,b=Math.sin(s),k=Math.cos(s),s=0;s<=n.length-1;s++)a.x=n[s].x*b,a.y=n[s].y,a.z=n[s].x*k,v.push(a.x,a.y,a.z),p.x=h/u,p.y=s/(n.length-1),y.push(p.x,p.y);for(h=0;h<u;h++)for(s=0;s<n.length-1;s++)e=s+h*n.length,w=e+n.length,a=e+n.length+1,p=e+1,c.push(e,w,p),c.push(w,a,p);if(this.setIndex(c),this.addAttribute("position",new r(v,3)),this.addAttribute("uv",new r(y,2)),this.computeVertexNormals(),o===2*Math.PI)for(o=this.attributes.normal.array,c=new t,v=new t,y=new t,e=u*n.length*3,s=h=0;h<n.length;h++,s+=3)c.x=o[s+0],c.y=o[s+1],c.z=o[s+2],v.x=o[e+s+0],v.y=o[e+s+1],v.z=o[e+s+2],y.addVectors(c,v).normalize(),o[s+0]=o[e+s+0]=y.x,o[s+1]=o[e+s+1]=y.y,o[s+2]=o[e+s+2]=y.z}function nf(n,t){h.call(this);this.type="ShapeGeometry";"object"===(typeof t=="undefined"?"undefined":_typeof(t))&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),t=t.curveSegments);this.parameters={shapes:n,curveSegments:t};this.fromBufferGeometry(new tf(n,t));this.mergeVertices()}function tf(n,t){function o(n){var f,l=e.length/3,i,o,r,a;if(n=n.extractPoints(t),i=n.shape,o=n.holes,!1===vt.isClockWise(i))for(i=i.reverse(),n=0,f=o.length;n<f;n++)r=o[n],!0===vt.isClockWise(r)&&(o[n]=r.reverse());for(a=vt.triangulateShape(i,o),n=0,f=o.length;n<f;n++)r=o[n],i=i.concat(r);for(n=0,f=i.length;n<f;n++)r=i[n],e.push(r.x,r.y,0),h.push(0,0,1),c.push(r.x,r.y);for(n=0,f=a.length;n<f;n++)i=a[n],s.push(i[0]+l,i[1]+l,i[2]+l),u+=3}var i;f.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:n,curveSegments:t};t=t||12;var s=[],e=[],h=[],c=[],l=0,u=0;if(!1===Array.isArray(n))o(n);else for(i=0;i<n.length;i++)o(n[i]),this.addGroup(l,u,i),l+=u,u=0;this.setIndex(s);this.addAttribute("position",new r(e,3));this.addAttribute("normal",new r(h,3));this.addAttribute("uv",new r(c,2))}function rf(n,t){var v,i,s,w,y,c,o,p;f.call(this);this.type="EdgesGeometry";this.parameters={thresholdAngle:t};v=[];t=Math.cos(l.DEG2RAD*(void 0!==t?t:1));var u=[0,0],a={},e=["a","b","c"];for(n.isBufferGeometry?(i=new h,i.fromBufferGeometry(n)):i=n.clone(),i.mergeVertices(),i.computeFaceNormals(),n=i.vertices,i=i.faces,s=0,w=i.length;s<w;s++)for(y=i[s],c=0;3>c;c++)o=y[e[c]],p=y[e[(c+1)%3]],u[0]=Math.min(o,p),u[1]=Math.max(o,p),o=u[0]+","+u[1],void 0===a[o]?a[o]={index1:u[0],index2:u[1],face1:s,face2:void 0}:a[o].face2=s;for(o in a)(u=a[o],void 0===u.face2||i[u.face1].normal.dot(i[u.face2].normal)<=t)&&(e=n[u.index1],v.push(e.x,e.y,e.z),e=n[u.index2],v.push(e.x,e.y,e.z));this.addAttribute("position",new r(v,3))}function fr(n,t,i,r,u,f,e,o){h.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:n,radiusBottom:t,height:i,radialSegments:r,heightSegments:u,openEnded:f,thetaStart:e,thetaLength:o};this.fromBufferGeometry(new si(n,t,i,r,u,f,e,o));this.mergeVertices()}function si(n,u,e,o,s,h,c,l){function nt(r){for(var s=new i,f=new t,nt=0,tt=!0===r?n:u,h=!0===r?1:-1,ut=v,it,e=1;e<=o;e++)p.push(0,g*h,0),w.push(0,h,0),b.push(.5,.5),v++;for(it=v,e=0;e<=o;e++){var y=e/o*l+c,rt=Math.cos(y),y=Math.sin(y);f.x=tt*y;f.y=g*h;f.z=tt*rt;p.push(f.x,f.y,f.z);w.push(0,h,0);s.x=.5*rt+.5;s.y=.5*y*h+.5;b.push(s.x,s.y);v++}for(e=0;e<o;e++)s=ut+e,f=it+e,!0===r?a.push(f,f+1,s):a.push(f+1,f,s),nt+=3;d.addGroup(k,nt,!0===r?1:2);k+=nt}var d;f.call(this);this.type="CylinderBufferGeometry";this.parameters={radiusTop:n,radiusBottom:u,height:e,radialSegments:o,heightSegments:s,openEnded:h,thetaStart:c,thetaLength:l};d=this;n=void 0!==n?n:20;u=void 0!==u?u:20;e=void 0!==e?e:100;o=Math.floor(o)||8;s=Math.floor(s)||1;h=void 0!==h?h:!1;c=void 0!==c?c:0;l=void 0!==l?l:2*Math.PI;var a=[],p=[],w=[],b=[],v=0,y=[],g=e/2,k=0;(function(){for(var i,h=new t,f=new t,it=0,tt=(u-n)/e,r=0;r<=s;r++){var ut=[],rt=r/s,ft=rt*(u-n)+n;for(i=0;i<=o;i++){var et=i/o,nt=et*l+c,ot=Math.sin(nt),nt=Math.cos(nt);f.x=ft*ot;f.y=-rt*e+g;f.z=ft*nt;p.push(f.x,f.y,f.z);h.set(ot,tt,nt).normalize();w.push(h.x,h.y,h.z);b.push(et,1-rt);ut.push(v++)}y.push(ut)}for(i=0;i<o;i++)for(r=0;r<s;r++)h=y[r+1][i],f=y[r+1][i+1],tt=y[r][i+1],a.push(y[r][i],h,tt),a.push(h,f,tt),it+=6;d.addGroup(k,it,0);k+=it})();!1===h&&(0<n&&nt(!0),0<u&&nt(!1));this.setIndex(a);this.addAttribute("position",new r(p,3));this.addAttribute("normal",new r(w,3));this.addAttribute("uv",new r(b,2))}function fo(n,t,i,r,u,f,e){fr.call(this,0,n,t,i,r,u,f,e);this.type="ConeGeometry";this.parameters={radius:n,height:t,radialSegments:i,heightSegments:r,openEnded:u,thetaStart:f,thetaLength:e}}function eo(n,t,i,r,u,f,e){si.call(this,0,n,t,i,r,u,f,e);this.type="ConeBufferGeometry";this.parameters={radius:n,height:t,radialSegments:i,heightSegments:r,openEnded:u,thetaStart:f,thetaLength:e}}function oo(n,t,i,r){h.call(this);this.type="CircleGeometry";this.parameters={radius:n,segments:t,thetaStart:i,thetaLength:r};this.fromBufferGeometry(new uf(n,t,i,r));this.mergeVertices()}function uf(n,u,e,o){var l,v;f.call(this);this.type="CircleBufferGeometry";this.parameters={radius:n,segments:u,thetaStart:e,thetaLength:o};n=n||50;u=void 0!==u?Math.max(3,u):8;e=void 0!==e?e:0;o=void 0!==o?o:2*Math.PI;var w=[],h=[],y=[],p=[],s,c=new t,a=new i;for(h.push(0,0,0),y.push(0,0,1),p.push(.5,.5),l=0,s=3;l<=u;l++,s+=3)v=e+l/u*o,c.x=n*Math.cos(v),c.y=n*Math.sin(v),h.push(c.x,c.y,c.z),y.push(0,0,1),a.x=(h[s]/n+1)/2,a.y=(h[s+1]/n+1)/2,p.push(a.x,a.y);for(s=1;s<=u;s++)w.push(s,s+1,0);this.setIndex(w);this.addAttribute("position",new r(h,3));this.addAttribute("normal",new r(y,3));this.addAttribute("uv",new r(p,2))}function ff(n){a.call(this);this.type="ShadowMaterial";this.color=new e(0);this.opacity=1;this.transparent=this.lights=!0;this.setValues(n)}function ef(n){ct.call(this,n);this.type="RawShaderMaterial"}function ii(n){a.call(this);this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new e(16777215);this.metalness=this.roughness=.5;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new e(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalScale=new i(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null;this.envMapIntensity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(n)}function er(n){ii.call(this);this.defines={PHYSICAL:""};this.type="MeshPhysicalMaterial";this.reflectivity=.5;this.clearCoatRoughness=this.clearCoat=0;this.setValues(n)}function dt(n){a.call(this);this.type="MeshPhongMaterial";this.color=new e(16777215);this.specular=new e(1118481);this.shininess=30;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new e(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalScale=new i(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(n)}function or(n){dt.call(this);this.defines={TOON:""};this.type="MeshToonMaterial";this.gradientMap=null;this.setValues(n)}function sr(n){a.call(this);this.type="MeshNormalMaterial";this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalScale=new i(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1;this.setValues(n)}function hr(n){a.call(this);this.type="MeshLambertMaterial";this.color=new e(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new e(0);this.emissiveIntensity=1;this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(n)}function cr(n){p.call(this);this.type="LineDashedMaterial";this.scale=1;this.dashSize=3;this.gapSize=1;this.setValues(n)}function uc(n,t,i){var r=this,e=!1,u=0,f=0;this.onStart=void 0;this.onLoad=n;this.onProgress=t;this.onError=i;this.itemStart=function(n){if(f++,!1===e&&void 0!==r.onStart)r.onStart(n,u,f);e=!0};this.itemEnd=function(n){if(u++,void 0!==r.onProgress)r.onProgress(n,u,f);u===f&&(e=!1,void 0!==r.onLoad)&&r.onLoad()};this.itemError=function(n){if(void 0!==r.onError)r.onError(n)}}function gt(n){this.manager=void 0!==n?n:ht}function dl(n){this.manager=void 0!==n?n:ht;this._parser=null}function fc(n){this.manager=void 0!==n?n:ht;this._parser=null}function so(n){this.manager=void 0!==n?n:ht}function ec(n){this.manager=void 0!==n?n:ht}function vs(n){this.manager=void 0!==n?n:ht}function k(n,t){u.call(this);this.type="Light";this.color=new e(n);this.intensity=void 0!==t?t:1;this.receiveShadow=void 0}function ys(n,t,i){k.call(this,n,i);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(u.DefaultUp);this.updateMatrix();this.groundColor=new e(t)}function lr(n){this.camera=n;this.bias=0;this.radius=1;this.mapSize=new i(512,512);this.map=null;this.matrix=new s}function ps(){lr.call(this,new g(50,1,.5,500))}function ws(n,t,i,r,f,e){k.call(this,n,t);this.type="SpotLight";this.position.copy(u.DefaultUp);this.updateMatrix();this.target=new u;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(n){this.intensity=n/Math.PI}});this.distance=void 0!==i?i:0;this.angle=void 0!==r?r:Math.PI/3;this.penumbra=void 0!==f?f:0;this.decay=void 0!==e?e:1;this.shadow=new ps}function bs(n,t,i,r){k.call(this,n,t);this.type="PointLight";Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(n){this.intensity=n/(4*Math.PI)}});this.distance=void 0!==i?i:0;this.decay=void 0!==r?r:1;this.shadow=new lr(new g(90,1,.5,500))}function ks(){lr.call(this,new ru(-5,5,5,-5,.5,500))}function ds(n,t){k.call(this,n,t);this.type="DirectionalLight";this.position.copy(u.DefaultUp);this.updateMatrix();this.target=new u;this.shadow=new ks}function gs(n,t){k.call(this,n,t);this.type="AmbientLight";this.castShadow=void 0}function nh(n,t,i,r){k.call(this,n,t);this.type="RectAreaLight";this.position.set(0,1,0);this.updateMatrix();this.width=void 0!==i?i:10;this.height=void 0!==r?r:10}function st(n,t,i,r){this.parameterPositions=n;this._cachedIndex=0;this.resultBuffer=void 0!==r?r:new t.constructor(i);this.sampleValues=t;this.valueSize=i}function th(n,t,i,r){st.call(this,n,t,i,r);this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function ho(n,t,i,r){st.call(this,n,t,i,r)}function ih(n,t,i,r){st.call(this,n,t,i,r)}function ar(n,t,i,r){if(void 0===n)throw Error("track name is undefined");if(void 0===t||0===t.length)throw Error("no keyframes in track named "+n);this.name=n;this.times=nt.convertArray(t,this.TimeBufferType);this.values=nt.convertArray(i,this.ValueBufferType);this.setInterpolation(r||this.DefaultInterpolation);this.validate();this.optimize()}function of(n,t,i,r){ar.call(this,n,t,i,r)}function rh(n,t,i,r){st.call(this,n,t,i,r)}function co(n,t,i,r){ar.call(this,n,t,i,r)}function sf(n,t,i,r){ar.call(this,n,t,i,r)}function uh(n,t,i,r){ar.call(this,n,t,i,r)}function fh(n,t,i){ar.call(this,n,t,i)}function eh(n,t,i,r){ar.call(this,n,t,i,r)}function vr(){ar.apply(this,arguments)}function at(n,t,i){this.name=n;this.tracks=i;this.duration=void 0!==t?t:-1;this.uuid=l.generateUUID();0>this.duration&&this.resetDuration();this.optimize()}function oh(n){this.manager=void 0!==n?n:ht;this.textures={}}function oc(n){this.manager=void 0!==n?n:ht}function hf(){this.onLoadStart=function(){};this.onLoadProgress=function(){};this.onLoadComplete=function(){}}function sc(n){"boolean"==typeof n&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),n=void 0);this.manager=void 0!==n?n:ht;this.withCredentials=!1}function gl(n){this.manager=void 0!==n?n:ht;this.texturePath=""}function na(n,t,i,r,u){t=.5*(r-t);u=.5*(u-i);var f=n*n;return(2*i-2*r+t+u)*n*f+(-3*i+3*r-2*t-u)*f+t*n+i}function yr(n,t,i,r){var u=1-n;return u*u*t+2*(1-n)*n*i+n*n*r}function pr(n,t,i,r,u){var f=1-n,e=1-n;return f*f*f*t+3*e*e*n*i+3*(1-n)*n*n*r+n*n*n*u}function rt(){this.arcLengthDivisions=200}function ri(n,t){this.arcLengthDivisions=200;this.v1=n;this.v2=t}function lo(){this.arcLengthDivisions=200;this.curves=[];this.autoClose=!1}function hi(n,t,i,r,u,f,e,o){this.arcLengthDivisions=200;this.aX=n;this.aY=t;this.xRadius=i;this.yRadius=r;this.aStartAngle=u;this.aEndAngle=f;this.aClockwise=e;this.aRotation=o||0}function wr(n){this.arcLengthDivisions=200;this.points=void 0===n?[]:n}function cf(n,t,i,r){this.arcLengthDivisions=200;this.v0=n;this.v1=t;this.v2=i;this.v3=r}function lf(n,t,i){this.arcLengthDivisions=200;this.v0=n;this.v1=t;this.v2=i}function ao(n){lo.call(this);this.currentPoint=new i;n&&this.fromPoints(n)}function br(){ao.apply(this,arguments);this.holes=[]}function hc(){this.subPaths=[];this.currentPath=null}function cc(n){this.data=n}function ta(n){this.manager=void 0!==n?n:ht}function lc(n){this.manager=void 0!==n?n:ht}function ia(){this.type="StereoCamera";this.aspect=1;this.eyeSep=.064;this.cameraL=new g;this.cameraL.layers.enable(1);this.cameraL.matrixAutoUpdate=!1;this.cameraR=new g;this.cameraR.layers.enable(2);this.cameraR.matrixAutoUpdate=!1}function vo(n,i,r){var f,e,o,s,h,c;u.call(this);this.type="CubeCamera";f=new g(90,1,n,i);f.up.set(0,-1,0);f.lookAt(new t(1,0,0));this.add(f);e=new g(90,1,n,i);e.up.set(0,-1,0);e.lookAt(new t(-1,0,0));this.add(e);o=new g(90,1,n,i);o.up.set(0,0,1);o.lookAt(new t(0,1,0));this.add(o);s=new g(90,1,n,i);s.up.set(0,0,-1);s.lookAt(new t(0,-1,0));this.add(s);h=new g(90,1,n,i);h.up.set(0,-1,0);h.lookAt(new t(0,0,1));this.add(h);c=new g(90,1,n,i);c.up.set(0,-1,0);c.lookAt(new t(0,0,-1));this.add(c);this.renderTarget=new tu(r,r,{format:1022,magFilter:1006,minFilter:1006});this.renderTarget.texture.name="CubeCamera";this.update=function(n,t){null===this.parent&&this.updateMatrixWorld();var i=this.renderTarget,r=i.texture.generateMipmaps;i.texture.generateMipmaps=!1;i.activeCubeFace=0;n.render(t,f,i);i.activeCubeFace=1;n.render(t,e,i);i.activeCubeFace=2;n.render(t,o,i);i.activeCubeFace=3;n.render(t,s,i);i.activeCubeFace=4;n.render(t,h,i);i.texture.generateMipmaps=r;i.activeCubeFace=5;n.render(t,c,i);n.setRenderTarget(null)};this.clear=function(n,t,i,r){for(var f=this.renderTarget,u=0;6>u;u++)f.activeCubeFace=u,n.setRenderTarget(f),n.clear(t,i,r);n.setRenderTarget(null)}}function ac(){u.call(this);this.type="AudioListener";this.context=wh.getContext();this.gain=this.context.createGain();this.gain.connect(this.context.destination);this.filter=null}function af(n){u.call(this);this.type="Audio";this.context=n.context;this.gain=this.context.createGain();this.gain.connect(n.getInput());this.autoplay=!1;this.buffer=null;this.loop=!1;this.startTime=0;this.playbackRate=1;this.isPlaying=!1;this.hasPlaybackControl=!0;this.sourceType="empty";this.filters=[]}function vc(n){af.call(this,n);this.panner=this.context.createPanner();this.panner.connect(this.gain)}function yc(n,t){this.analyser=n.context.createAnalyser();this.analyser.fftSize=void 0!==t?t:2048;this.data=new Uint8Array(this.analyser.frequencyBinCount);n.getOutput().connect(this.analyser)}function pc(n,t,i){this.binding=n;this.valueSize=i;n=Float64Array;switch(t){case"quaternion":t=this._slerp;break;case"string":case"bool":n=Array;t=this._select;break;default:t=this._lerp}this.buffer=new n(4*i);this._mixBufferRegion=t;this.referenceCount=this.useCount=this.cumulativeWeight=0}function ra(n,t,i){i=i||tt.parseTrackName(t);this._targetGroup=n;this._bindings=n.subscribe_(t,i)}function tt(n,t,i){this.path=t;this.parsedPath=i||tt.parseTrackName(t);this.node=tt.findNode(n,this.parsedPath.nodeName)||n;this.rootNode=n}function ua(){var i,n,r,t;for(this.uuid=l.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0,i={},this._indicesByUUID=i,n=0,r=arguments.length;n!==r;++n)i[arguments[n].uuid]=n;this._paths=[];this._parsedPaths=[];this._bindings=[];this._bindingsIndicesByPath={};t=this;this.stats={objects:{get total(){return t._objects.length},get inUse(){return this.total-t.nCachedObjects_}},get bindingsPerObject(){return t._bindings.length}}}function fa(n,t,i){var u,r,f;for(this._mixer=n,this._clip=t,this._localRoot=i||null,n=t.tracks,t=n.length,i=Array(t),u={endingStart:2400,endingEnd:2400},r=0;r!==t;++r)f=n[r].createInterpolant(null),i[r]=f,f.settings=u;this._interpolantSettings=u;this._interpolants=i;this._propertyBindings=Array(t);this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null;this.loop=2201;this._loopCount=-1;this._startTime=null;this.time=0;this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1;this.repetitions=Infinity;this.paused=!1;this.enabled=!0;this.clampWhenFinished=!1;this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function ea(n){this._root=n;this._initMemoryManager();this.time=this._accuIndex=0;this.timeScale=1}function sh(n,t){"string"==typeof n&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),n=t);this.value=n}function wc(){f.call(this);this.type="InstancedBufferGeometry";this.maxInstancedCount=void 0}function bc(n,t,i,r){this.uuid=l.generateUUID();this.data=n;this.itemSize=t;this.offset=i;this.normalized=!0===r}function vf(n,t){this.uuid=l.generateUUID();this.array=n;this.stride=t;this.count=void 0!==n?n.length/t:0;this.dynamic=!1;this.updateRange={offset:0,count:-1};this.onUploadCallback=function(){};this.version=0}function kc(n,t,i){vf.call(this,n,t);this.meshPerAttribute=i||1}function dc(n,t,i){c.call(this,n,t);this.meshPerAttribute=i||1}function oa(n,t,i,r){this.ray=new ir(n,t);this.near=i||0;this.far=r||Infinity;this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}};Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function sa(n,t){return n.distance-t.distance}function gc(n,t,i,r){if(!1!==n.visible&&(n.raycast(t,i),!0===r)){n=n.children;r=0;for(var u=n.length;r<u;r++)gc(n[r],t,i,!0)}}function ha(n){this.autoStart=void 0!==n?n:!0;this.elapsedTime=this.oldTime=this.startTime=0;this.running=!1}function ca(n,t,i){return this.radius=void 0!==n?n:1,this.phi=void 0!==t?t:0,this.theta=void 0!==i?i:0,this}function la(n,t,i){return this.radius=void 0!==n?n:1,this.theta=void 0!==t?t:0,this.y=void 0!==i?i:0,this}function yo(n){u.call(this);this.material=n;this.render=function(){}}function po(n,t,i,u){this.object=n;this.size=void 0!==t?t:1;n=void 0!==i?i:16711680;u=void 0!==u?u:1;t=0;(i=this.object.geometry)&&i.isGeometry?t=3*i.faces.length:i&&i.isBufferGeometry&&(t=i.attributes.normal.count);i=new f;t=new r(6*t,3);i.addAttribute("position",t);w.call(this,i,new p({color:n,linewidth:u}));this.matrixAutoUpdate=!1;this.update()}function yf(n,t){var i,e,o,s;for(u.call(this),this.light=n,this.light.updateMatrixWorld(),this.matrix=n.matrixWorld,this.matrixAutoUpdate=!1,this.color=t,n=new f,t=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],i=0,e=1;32>i;i++,e++)o=i/32*Math.PI*2,s=e/32*Math.PI*2,t.push(Math.cos(o),Math.sin(o),1,Math.cos(s),Math.sin(s),1);n.addAttribute("position",new r(t,3));t=new p({fog:!1});this.cone=new w(n,t);this.add(this.cone);this.update()}function aa(n){var t=[],i;for(n&&n.isBone&&t.push(n),i=0;i<n.children.length;i++)t.push.apply(t,aa(n.children[i]));return t}function pf(n){for(var i,u=aa(n),o=new f,t=[],s=[],h=new e(0,0,1),c=new e(0,1,0),l=0;l<u.length;l++)i=u[l],i.parent&&i.parent.isBone&&(t.push(0,0,0),t.push(0,0,0),s.push(h.r,h.g,h.b),s.push(c.r,c.g,c.b));o.addAttribute("position",new r(t,3));o.addAttribute("color",new r(s,3));t=new p({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0});w.call(this,o,t);this.root=n;this.bones=u;this.matrix=n.matrixWorld;this.matrixAutoUpdate=!1;this.onBeforeRender()}function wf(n,t,i){this.light=n;this.light.updateMatrixWorld();this.color=i;n=new ur(t,4,2);t=new ot({wireframe:!0,fog:!1});it.call(this,n,t);this.matrix=this.light.matrixWorld;this.matrixAutoUpdate=!1;this.update()}function bf(n,t){u.call(this);this.light=n;this.light.updateMatrixWorld();this.matrix=n.matrixWorld;this.matrixAutoUpdate=!1;this.color=t;n=new p({fog:!1});t=new f;t.addAttribute("position",new c(new Float32Array(15),3));this.line=new ut(t,n);this.add(this.line);this.update()}function kf(n,t,i){u.call(this);this.light=n;this.light.updateMatrixWorld();this.matrix=n.matrixWorld;this.matrixAutoUpdate=!1;this.color=i;n=new rr(t);n.rotateY(.5*Math.PI);this.material=new ot({wireframe:!0,fog:!1});void 0===this.color&&(this.material.vertexColors=2);t=n.getAttribute("position");t=new Float32Array(3*t.count);n.addAttribute("color",new c(t,3));this.add(new it(n,this.material));this.update()}function wo(n,t,i,u){var s;n=n||10;t=t||10;i=new e(void 0!==i?i:4473924);u=new e(void 0!==u?u:8947848);var v=t/2,y=n/t,h=n/2;n=[];for(var c=[],a=0,o=0,l=-h;a<=t;a++,l+=y)n.push(-h,0,l,h,0,l),n.push(l,0,-h,l,0,h),s=a===v?i:u,s.toArray(c,o),o+=3,s.toArray(c,o),o+=3,s.toArray(c,o),o+=3,s.toArray(c,o),o+=3;t=new f;t.addAttribute("position",new r(n,3));t.addAttribute("color",new r(c,3));i=new p({vertexColors:2});w.call(this,t,i)}function hh(n,t,i,u,o,s){var a,v,l,h,y,c,b;for(n=n||10,t=t||16,i=i||8,u=u||64,o=new e(void 0!==o?o:4473924),s=new e(void 0!==s?s:8947848),a=[],v=[],l=0;l<=t;l++)h=l/t*2*Math.PI,y=Math.sin(h)*n,h=Math.cos(h)*n,a.push(0,0,0),a.push(y,0,h),c=l&1?o:s,v.push(c.r,c.g,c.b),v.push(c.r,c.g,c.b);for(l=0;l<=i;l++)for(c=l&1?o:s,b=n-n/i*l,t=0;t<u;t++)h=t/u*2*Math.PI,y=Math.sin(h)*b,h=Math.cos(h)*b,a.push(y,0,h),v.push(c.r,c.g,c.b),h=(t+1)/u*2*Math.PI,y=Math.sin(h)*b,h=Math.cos(h)*b,a.push(y,0,h),v.push(c.r,c.g,c.b);n=new f;n.addAttribute("position",new r(a,3));n.addAttribute("color",new r(v,3));a=new p({vertexColors:2});w.call(this,n,a)}function bo(n,t,i,u){this.object=n;this.size=void 0!==t?t:1;n=void 0!==i?i:16776960;u=void 0!==u?u:1;t=0;(i=this.object.geometry)&&i.isGeometry?t=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");i=new f;t=new r(6*t,3);i.addAttribute("position",t);w.call(this,i,new p({color:n,linewidth:u}));this.matrixAutoUpdate=!1;this.update()}function df(n,t,i){u.call(this);this.light=n;this.light.updateMatrixWorld();this.matrix=n.matrixWorld;this.matrixAutoUpdate=!1;this.color=i;void 0===t&&(t=1);n=new f;n.addAttribute("position",new r([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));t=new p({fog:!1});this.lightPlane=new ut(n,t);this.add(this.lightPlane);n=new f;n.addAttribute("position",new r([0,0,0,0,0,1],3));this.targetLine=new ut(n,t);this.add(this.targetLine);this.update()}function ko(n){function t(n,t,i){a(n,i);a(t,i)}function a(n,t){c.push(0,0,0);v.push(t.r,t.g,t.b);void 0===o[n]&&(o[n]=[]);o[n].push(c.length/3-1)}var h=new f,y=new p({color:16777215,vertexColors:1}),c=[],v=[],o={},i=new e(16755200),s=new e(16711680),l=new e(43775),b=new e(16777215),u=new e(3355443);t("n1","n2",i);t("n2","n4",i);t("n4","n3",i);t("n3","n1",i);t("f1","f2",i);t("f2","f4",i);t("f4","f3",i);t("f3","f1",i);t("n1","f1",i);t("n2","f2",i);t("n3","f3",i);t("n4","f4",i);t("p","n1",s);t("p","n2",s);t("p","n3",s);t("p","n4",s);t("u1","u2",l);t("u2","u3",l);t("u3","u1",l);t("c","t",b);t("p","c",u);t("cn1","cn2",u);t("cn3","cn4",u);t("cf1","cf2",u);t("cf3","cf4",u);h.addAttribute("position",new r(c,3));h.addAttribute("color",new r(v,3));w.call(this,h,y);this.camera=n;this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix();this.matrix=n.matrixWorld;this.matrixAutoUpdate=!1;this.pointMap=o;this.update()}function kr(n,t){this.object=n;void 0===t&&(t=16776960);n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var r=new Float32Array(24),i=new f;i.setIndex(new c(n,1));i.addAttribute("position",new c(r,3));w.call(this,i,new p({color:t}));this.matrixAutoUpdate=!1;this.update()}function go(n,t){this.type="Box3Helper";this.box=n;n=void 0!==t?t:16776960;t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new f;i.setIndex(new c(t,1));i.addAttribute("position",new r([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3));w.call(this,i,new p({color:n}));this.geometry.computeBoundingSphere();this.onBeforeRender()}function ns(n,t,i){this.type="PlaneHelper";this.plane=n;this.size=void 0===t?1:t;n=void 0!==i?i:16776960;t=new f;t.addAttribute("position",new r([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3));t.computeBoundingSphere();ut.call(this,t,new p({color:n}));t=new f;t.addAttribute("position",new r([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3));t.computeBoundingSphere();this.add(new it(t,new ot({color:n,opacity:.2,transparent:!0,depthWrite:!1})));this.onBeforeRender()}function dr(n,t,i,e,o,s){u.call(this);void 0===e&&(e=16776960);void 0===i&&(i=1);void 0===o&&(o=.2*i);void 0===s&&(s=.2*o);void 0===bh&&(bh=new f,bh.addAttribute("position",new r([0,0,0,0,1,0],3)),rl=new si(0,.5,1,5,1),rl.translate(0,-.5,0));this.position.copy(t);this.line=new ut(bh,new p({color:e}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new it(rl,new ot({color:e}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(n);this.setLength(i,o,s)}function ch(n){n=n||1;var t=[0,0,0,n,0,0,0,0,0,0,n,0,0,0,0,0,0,n];n=new f;n.addAttribute("position",new r(t,3));n.addAttribute("color",new r([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));t=new p({vertexColors:2});w.call(this,n,t)}function nl(){var n=0,t=0,i=0,r=0;return{initCatmullRom:function(u,f,e,o,s){u=s*(e-u);o=s*(o-f);n=f;t=u;i=-3*f+3*e-2*u-o;r=2*f-2*e+u+o},initNonuniformCatmullRom:function(u,f,e,o,s,h,c){u=((f-u)/s-(e-u)/(s+h)+(e-f)/h)*h;o=((e-f)/h-(o-f)/(h+c)+(o-e)/c)*h;n=f;t=u;i=-3*f+3*e-2*u-o;r=2*f-2*e+u+o},calc:function(u){var f=u*u;return n+t*u+i*f+r*f*u}}}function ni(n){this.arcLengthDivisions=200;2>n.length&&console.warn("THREE.CatmullRomCurve3: Points array needs at least two entries.");this.points=n||[];this.closed=!1}function ts(n,t,i,r){this.arcLengthDivisions=200;this.v0=n;this.v1=t;this.v2=i;this.v3=r}function is(n,t,i){this.arcLengthDivisions=200;this.v0=n;this.v1=t;this.v2=i}function rs(n,t){this.arcLengthDivisions=200;this.v1=n;this.v2=t}function lh(n,t,i,r,u,f){hi.call(this,n,t,i,i,r,u,f)}function va(n){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");ni.call(this,n);this.type="catmullrom";this.closed=!0}function ya(n){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");ni.call(this,n);this.type="catmullrom"}function tl(n){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.");ni.call(this,n);this.type="catmullrom"}var l,pa,ah,wa,ba,ka,vh,da,vt,yt,nt,ci,il,yh,ph,wh,bh,rl;void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52));void 0===Number.isInteger&&(Number.isInteger=function(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n});void 0===Math.sign&&(Math.sign=function(n){return 0>n?-1:0<n?1:+n});void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}});void 0===Object.assign&&function(){Object.assign=function(n){var u,i,t,r;if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],void 0!==t&&null!==t)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);return u}}();Object.assign(ui.prototype,{addEventListener:function(n,t){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[n]&&(i[n]=[]);-1===i[n].indexOf(t)&&i[n].push(t)},hasEventListener:function(n,t){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[n]&&-1!==i[n].indexOf(t)},removeEventListener:function(n,t){void 0!==this._listeners&&(n=this._listeners[n],void 0!==n&&(t=n.indexOf(t),-1!==t&&n.splice(t,1)))},dispatchEvent:function(n){var t;if(void 0!==this._listeners&&(t=this._listeners[n.type],void 0!==t)){n.target=this;for(var t=t.slice(0),i=0,r=t.length;i<r;i++)t[i].call(this,n)}}});l={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=Array(36),t=0,i;return function(){for(var u=0;36>u;u++)8===u||13===u||18===u||23===u?n[u]="-":14===u?n[u]="4":(2>=t&&(t=33554432+16777216*Math.random()|0),i=t&15,t>>=4,n[u]=r[19===u?i&3|8:i]);return n.join("")}}(),clamp:function(n,t,i){return Math.max(t,Math.min(i,n))},euclideanModulo:function(n,t){return(n%t+t)%t},mapLinear:function(n,t,i,r,u){return r+(n-t)*(u-r)/(i-t)},lerp:function(n,t,i){return(1-i)*n+i*t},smoothstep:function(n,t,i){return n<=t?0:n>=i?1:(n=(n-t)/(i-t),n*n*(3-2*n))},smootherstep:function(n,t,i){return n<=t?0:n>=i?1:(n=(n-t)/(i-t),n*n*n*(n*(6*n-15)+10))},randInt:function(n,t){return n+Math.floor(Math.random()*(t-n+1))},randFloat:function(n,t){return n+Math.random()*(t-n)},randFloatSpread:function(n){return n*(.5-Math.random())},degToRad:function(n){return n*l.DEG2RAD},radToDeg:function(n){return n*l.RAD2DEG},isPowerOfTwo:function(n){return 0==(n&n-1)&&0!==n},nearestPowerOfTwo:function(n){return Math.pow(2,Math.round(Math.log(n)/Math.LN2))},nextPowerOfTwo:function(n){return n--,n|=n>>1,n|=n>>2,n|=n>>4,n|=n>>8,n|=n>>16,n++,n}};Object.defineProperties(i.prototype,{width:{get:function(){return this.x},set:function(n){this.x=n}},height:{get:function(){return this.y},set:function(n){this.y=n}}});Object.assign(i.prototype,{isVector2:!0,set:function(n,t){return this.x=n,this.y=t,this},setScalar:function(n){return this.y=this.x=n,this},setX:function(n){return this.x=n,this},setY:function(n){return this.y=n,this},setComponent:function(n,t){switch(n){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error("index is out of range: "+n);}return this},getComponent:function(n){switch(n){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+n);}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(n){return this.x=n.x,this.y=n.y,this},add:function(n,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(n,t)):(this.x+=n.x,this.y+=n.y,this)},addScalar:function(n){return this.x+=n,this.y+=n,this},addVectors:function(n,t){return this.x=n.x+t.x,this.y=n.y+t.y,this},addScaledVector:function(n,t){return this.x+=n.x*t,this.y+=n.y*t,this},sub:function(n,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(n,t)):(this.x-=n.x,this.y-=n.y,this)},subScalar:function(n){return this.x-=n,this.y-=n,this},subVectors:function(n,t){return this.x=n.x-t.x,this.y=n.y-t.y,this},multiply:function(n){return this.x*=n.x,this.y*=n.y,this},multiplyScalar:function(n){return this.x*=n,this.y*=n,this},divide:function(n){return this.x/=n.x,this.y/=n.y,this},divideScalar:function(n){return this.multiplyScalar(1/n)},min:function(n){return this.x=Math.min(this.x,n.x),this.y=Math.min(this.y,n.y),this},max:function(n){return this.x=Math.max(this.x,n.x),this.y=Math.max(this.y,n.y),this},clamp:function(n,t){return this.x=Math.max(n.x,Math.min(t.x,this.x)),this.y=Math.max(n.y,Math.min(t.y,this.y)),this},clampScalar:function(){var n=new i,t=new i;return function(i,r){return n.set(i,i),t.set(r,r),this.clamp(n,t)}}(),clampLength:function(n,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(n,Math.min(t,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(n){return this.x*n.x+this.y*n.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var n=Math.atan2(this.y,this.x);return 0>n&&(n+=2*Math.PI),n},distanceTo:function(n){return Math.sqrt(this.distanceToSquared(n))},distanceToSquared:function(n){var t=this.x-n.x;return n=this.y-n.y,t*t+n*n},distanceToManhattan:function(n){return Math.abs(this.x-n.x)+Math.abs(this.y-n.y)},setLength:function(n){return this.normalize().multiplyScalar(n)},lerp:function(n,t){return this.x+=(n.x-this.x)*t,this.y+=(n.y-this.y)*t,this},lerpVectors:function(n,t,i){return this.subVectors(t,n).multiplyScalar(i).add(n)},equals:function(n){return n.x===this.x&&n.y===this.y},fromArray:function(n,t){return void 0===t&&(t=0),this.x=n[t],this.y=n[t+1],this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this.x,n[t+1]=this.y,n},fromBufferAttribute:function(n,t,i){return void 0!==i&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=n.getX(t),this.y=n.getY(t),this},rotateAround:function(n,t){var u=Math.cos(t),i,r;return t=Math.sin(t),i=this.x-n.x,r=this.y-n.y,this.x=i*u-r*t+n.x,this.y=i*t+r*u+n.y,this}});pa=0;b.DEFAULT_IMAGE=void 0;b.DEFAULT_MAPPING=300;Object.defineProperty(b.prototype,"needsUpdate",{set:function(n){!0===n&&this.version++}});Object.assign(b.prototype,ui.prototype,{constructor:b,isTexture:!0,clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.name=n.name,this.image=n.image,this.mipmaps=n.mipmaps.slice(0),this.mapping=n.mapping,this.wrapS=n.wrapS,this.wrapT=n.wrapT,this.magFilter=n.magFilter,this.minFilter=n.minFilter,this.anisotropy=n.anisotropy,this.format=n.format,this.type=n.type,this.offset.copy(n.offset),this.repeat.copy(n.repeat),this.generateMipmaps=n.generateMipmaps,this.premultiplyAlpha=n.premultiplyAlpha,this.flipY=n.flipY,this.unpackAlignment=n.unpackAlignment,this.encoding=n.encoding,this},toJSON:function(n){var r,t,i,u;if(void 0!==n.textures[this.uuid])return n.textures[this.uuid];if(r={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY},void 0!==this.image){if(t=this.image,void 0===t.uuid&&(t.uuid=l.generateUUID()),void 0===n.images[t.uuid]){var f=n.images,e=t.uuid,o=t.uuid;void 0!==t.toDataURL?i=t:(i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),i.width=t.width,i.height=t.height,u=i.getContext("2d"),t instanceof ImageData?u.putImageData(t,0,0):u.drawImage(t,0,0,t.width,t.height));i=2048<i.width||2048<i.height?i.toDataURL("image/jpeg",.6):i.toDataURL("image/png");f[e]={uuid:o,url:i}}r.image=t.uuid}return n.textures[this.uuid]=r},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(n){if(300===this.mapping){if(n.multiply(this.repeat),n.add(this.offset),0>n.x||1<n.x)switch(this.wrapS){case 1e3:n.x-=Math.floor(n.x);break;case 1001:n.x=0>n.x?0:1;break;case 1002:n.x=1===Math.abs(Math.floor(n.x)%2)?Math.ceil(n.x)-n.x:n.x-Math.floor(n.x)}if(0>n.y||1<n.y)switch(this.wrapT){case 1e3:n.y-=Math.floor(n.y);break;case 1001:n.y=0>n.y?0:1;break;case 1002:n.y=1===Math.abs(Math.floor(n.y)%2)?Math.ceil(n.y)-n.y:n.y-Math.floor(n.y)}this.flipY&&(n.y=1-n.y)}}});Object.assign(y.prototype,{isVector4:!0,set:function(n,t,i,r){return this.x=n,this.y=t,this.z=i,this.w=r,this},setScalar:function(n){return this.w=this.z=this.y=this.x=n,this},setX:function(n){return this.x=n,this},setY:function(n){return this.y=n,this},setZ:function(n){return this.z=n,this},setW:function(n){return this.w=n,this},setComponent:function(n,t){switch(n){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error("index is out of range: "+n);}return this},getComponent:function(n){switch(n){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+n);}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(n){return this.x=n.x,this.y=n.y,this.z=n.z,this.w=void 0!==n.w?n.w:1,this},add:function(n,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(n,t)):(this.x+=n.x,this.y+=n.y,this.z+=n.z,this.w+=n.w,this)},addScalar:function(n){return this.x+=n,this.y+=n,this.z+=n,this.w+=n,this},addVectors:function(n,t){return this.x=n.x+t.x,this.y=n.y+t.y,this.z=n.z+t.z,this.w=n.w+t.w,this},addScaledVector:function(n,t){return this.x+=n.x*t,this.y+=n.y*t,this.z+=n.z*t,this.w+=n.w*t,this},sub:function(n,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(n,t)):(this.x-=n.x,this.y-=n.y,this.z-=n.z,this.w-=n.w,this)},subScalar:function(n){return this.x-=n,this.y-=n,this.z-=n,this.w-=n,this},subVectors:function(n,t){return this.x=n.x-t.x,this.y=n.y-t.y,this.z=n.z-t.z,this.w=n.w-t.w,this},multiplyScalar:function(n){return this.x*=n,this.y*=n,this.z*=n,this.w*=n,this},applyMatrix4:function(n){var t=this.x,i=this.y,r=this.z,u=this.w;return n=n.elements,this.x=n[0]*t+n[4]*i+n[8]*r+n[12]*u,this.y=n[1]*t+n[5]*i+n[9]*r+n[13]*u,this.z=n[2]*t+n[6]*i+n[10]*r+n[14]*u,this.w=n[3]*t+n[7]*i+n[11]*r+n[15]*u,this},divideScalar:function(n){return this.multiplyScalar(1/n)},setAxisAngleFromQuaternion:function(n){this.w=2*Math.acos(n.w);var t=Math.sqrt(1-n.w*n.w);return.0001>t?(this.x=1,this.z=this.y=0):(this.x=n.x/t,this.y=n.y/t,this.z=n.z/t),this},setAxisAngleFromRotationMatrix:function(n){n=n.elements;var e=n[0],t=n[4],u=n[8],h=n[1],o=n[5],f=n[9],i=n[2],r=n[6],s=n[10];return.01>Math.abs(t-h)&&.01>Math.abs(u-i)&&.01>Math.abs(f-r)?.1>Math.abs(t+h)&&.1>Math.abs(u+i)&&.1>Math.abs(f+r)&&.1>Math.abs(e+o+s-3)?(this.set(1,0,0,0),this):(n=Math.PI,e=(e+1)/2,o=(o+1)/2,s=(s+1)/2,t=(t+h)/4,u=(u+i)/4,f=(f+r)/4,e>o&&e>s?.01>e?(r=0,t=i=.707106781):(r=Math.sqrt(e),i=t/r,t=u/r):o>s?.01>o?(r=.707106781,i=0,t=.707106781):(i=Math.sqrt(o),r=t/i,t=f/i):.01>s?(i=r=.707106781,t=0):(t=Math.sqrt(s),r=u/t,i=f/t),this.set(r,i,t,n),this):(n=Math.sqrt((r-f)*(r-f)+(u-i)*(u-i)+(h-t)*(h-t)),.001>Math.abs(n)&&(n=1),this.x=(r-f)/n,this.y=(u-i)/n,this.z=(h-t)/n,this.w=Math.acos((e+o+s-1)/2),this)},min:function(n){return this.x=Math.min(this.x,n.x),this.y=Math.min(this.y,n.y),this.z=Math.min(this.z,n.z),this.w=Math.min(this.w,n.w),this},max:function(n){return this.x=Math.max(this.x,n.x),this.y=Math.max(this.y,n.y),this.z=Math.max(this.z,n.z),this.w=Math.max(this.w,n.w),this},clamp:function(n,t){return this.x=Math.max(n.x,Math.min(t.x,this.x)),this.y=Math.max(n.y,Math.min(t.y,this.y)),this.z=Math.max(n.z,Math.min(t.z,this.z)),this.w=Math.max(n.w,Math.min(t.w,this.w)),this},clampScalar:function(){var n,t;return function(i,r){return void 0===n&&(n=new y,t=new y),n.set(i,i,i,i),t.set(r,r,r,r),this.clamp(n,t)}}(),clampLength:function(n,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(n,Math.min(t,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(n){return this.x*n.x+this.y*n.y+this.z*n.z+this.w*n.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(n){return this.normalize().multiplyScalar(n)},lerp:function(n,t){return this.x+=(n.x-this.x)*t,this.y+=(n.y-this.y)*t,this.z+=(n.z-this.z)*t,this.w+=(n.w-this.w)*t,this},lerpVectors:function(n,t,i){return this.subVectors(t,n).multiplyScalar(i).add(n)},equals:function(n){return n.x===this.x&&n.y===this.y&&n.z===this.z&&n.w===this.w},fromArray:function(n,t){return void 0===t&&(t=0),this.x=n[t],this.y=n[t+1],this.z=n[t+2],this.w=n[t+3],this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this.x,n[t+1]=this.y,n[t+2]=this.z,n[t+3]=this.w,n},fromBufferAttribute:function(n,t,i){return void 0!==i&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=n.getX(t),this.y=n.getY(t),this.z=n.getZ(t),this.w=n.getW(t),this}});Object.assign(nu.prototype,ui.prototype,{isWebGLRenderTarget:!0,setSize:function(n,t){(this.width!==n||this.height!==t)&&(this.width=n,this.height=t,this.dispose());this.viewport.set(0,0,n,t);this.scissor.set(0,0,n,t)},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.width=n.width,this.height=n.height,this.viewport.copy(n.viewport),this.texture=n.texture.clone(),this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.depthTexture=n.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});tu.prototype=Object.create(nu.prototype);tu.prototype.constructor=tu;tu.prototype.isWebGLRenderTargetCube=!0;Object.assign(d,{slerp:function(n,t,i,r){return i.copy(n).slerp(t,r)},slerpFlat:function(n,t,i,r,u,f,e){var o=i[r+0],s=i[r+1],h=i[r+2],v,y;if(i=i[r+3],r=u[f+0],v=u[f+1],y=u[f+2],u=u[f+3],i!==u||o!==r||s!==v||h!==y){f=1-e;var c=o*r+s*v+h*y+i*u,l=0<=c?1:-1,a=1-c*c;a>Number.EPSILON&&(a=Math.sqrt(a),c=Math.atan2(a,c*l),f=Math.sin(f*c)/a,e=Math.sin(e*c)/a);l*=e;o=o*f+r*l;s=s*f+v*l;h=h*f+y*l;i=i*f+u*l;f===1-e&&(e=1/Math.sqrt(o*o+s*s+h*h+i*i),o*=e,s*=e,h*=e,i*=e)}n[t]=o;n[t+1]=s;n[t+2]=h;n[t+3]=i}});Object.defineProperties(d.prototype,{x:{get:function(){return this._x},set:function(n){this._x=n;this.onChangeCallback()}},y:{get:function(){return this._y},set:function(n){this._y=n;this.onChangeCallback()}},z:{get:function(){return this._z},set:function(n){this._z=n;this.onChangeCallback()}},w:{get:function(){return this._w},set:function(n){this._w=n;this.onChangeCallback()}}});Object.assign(d.prototype,{set:function(n,t,i,r){return this._x=n,this._y=t,this._z=i,this._w=r,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(n){return this._x=n.x,this._y=n.y,this._z=n.z,this._w=n.w,this.onChangeCallback(),this},setFromEuler:function(n,t){if(!n||!n.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var r=n._x,u=n._y,f=n._z;n=n.order;var i=Math.cos,s=Math.sin,e=i(r/2),o=i(u/2),i=i(f/2),r=s(r/2),u=s(u/2),f=s(f/2);return"XYZ"===n?(this._x=r*o*i+e*u*f,this._y=e*u*i-r*o*f,this._z=e*o*f+r*u*i,this._w=e*o*i-r*u*f):"YXZ"===n?(this._x=r*o*i+e*u*f,this._y=e*u*i-r*o*f,this._z=e*o*f-r*u*i,this._w=e*o*i+r*u*f):"ZXY"===n?(this._x=r*o*i-e*u*f,this._y=e*u*i+r*o*f,this._z=e*o*f+r*u*i,this._w=e*o*i-r*u*f):"ZYX"===n?(this._x=r*o*i-e*u*f,this._y=e*u*i+r*o*f,this._z=e*o*f-r*u*i,this._w=e*o*i+r*u*f):"YZX"===n?(this._x=r*o*i+e*u*f,this._y=e*u*i+r*o*f,this._z=e*o*f-r*u*i,this._w=e*o*i-r*u*f):"XZY"===n&&(this._x=r*o*i-e*u*f,this._y=e*u*i-r*o*f,this._z=e*o*f+r*u*i,this._w=e*o*i+r*u*f),!1!==t&&this.onChangeCallback(),this},setFromAxisAngle:function(n,t){t/=2;var i=Math.sin(t);return this._x=n.x*i,this._y=n.y*i,this._z=n.z*i,this._w=Math.cos(t),this.onChangeCallback(),this},setFromRotationMatrix:function(n){var i=n.elements,t=i[0];n=i[4];var u=i[8],f=i[1],r=i[5],e=i[9],o=i[2],s=i[6],i=i[10],h=t+r+i;return 0<h?(t=.5/Math.sqrt(h+1),this._w=.25/t,this._x=(s-e)*t,this._y=(u-o)*t,this._z=(f-n)*t):t>r&&t>i?(t=2*Math.sqrt(1+t-r-i),this._w=(s-e)/t,this._x=.25*t,this._y=(n+f)/t,this._z=(u+o)/t):r>i?(t=2*Math.sqrt(1+r-t-i),this._w=(u-o)/t,this._x=(n+f)/t,this._y=.25*t,this._z=(e+s)/t):(t=2*Math.sqrt(1+i-t-r),this._w=(f-n)/t,this._x=(u+o)/t,this._y=(e+s)/t,this._z=.25*t),this.onChangeCallback(),this},setFromUnitVectors:function(){var n=new t,i;return function(r,u){return void 0===n&&(n=new t),i=r.dot(u)+1,1e-6>i?(i=0,Math.abs(r.x)>Math.abs(r.z)?n.set(-r.y,r.x,0):n.set(0,-r.z,r.y)):n.crossVectors(r,u),this._x=n.x,this._y=n.y,this._z=n.z,this._w=i,this.normalize()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(n){return this._x*n._x+this._y*n._y+this._z*n._z+this._w*n._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var n=this.length();return 0===n?(this._z=this._y=this._x=0,this._w=1):(n=1/n,this._x*=n,this._y*=n,this._z*=n,this._w*=n),this.onChangeCallback(),this},multiply:function(n,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(n,t)):this.multiplyQuaternions(this,n)},premultiply:function(n){return this.multiplyQuaternions(n,this)},multiplyQuaternions:function(n,t){var i=n._x,r=n._y,u=n._z;n=n._w;var f=t._x,e=t._y,o=t._z;return t=t._w,this._x=i*t+n*f+r*o-u*e,this._y=r*t+n*e+u*f-i*o,this._z=u*t+n*o+i*e-r*f,this._w=n*t-i*f-r*e-u*o,this.onChangeCallback(),this},slerp:function(n,t){var o,i;if(0===t)return this;if(1===t)return this.copy(n);var r=this._x,u=this._y,f=this._z,e=this._w,i=e*n._w+r*n._x+u*n._y+f*n._z;return(0>i?(this._w=-n._w,this._x=-n._x,this._y=-n._y,this._z=-n._z,i=-i):this.copy(n),1<=i)?(this._w=e,this._x=r,this._y=u,this._z=f,this):(n=Math.sqrt(1-i*i),.001>Math.abs(n))?(this._w=.5*(e+this._w),this._x=.5*(r+this._x),this._y=.5*(u+this._y),this._z=.5*(f+this._z),this):(o=Math.atan2(n,i),i=Math.sin((1-t)*o)/n,t=Math.sin(t*o)/n,this._w=e*i+this._w*t,this._x=r*i+this._x*t,this._y=u*i+this._y*t,this._z=f*i+this._z*t,this.onChangeCallback(),this)},equals:function(n){return n._x===this._x&&n._y===this._y&&n._z===this._z&&n._w===this._w},fromArray:function(n,t){return void 0===t&&(t=0),this._x=n[t],this._y=n[t+1],this._z=n[t+2],this._w=n[t+3],this.onChangeCallback(),this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this._x,n[t+1]=this._y,n[t+2]=this._z,n[t+3]=this._w,n},onChange:function(n){return this.onChangeCallback=n,this},onChangeCallback:function(){}});Object.assign(t.prototype,{isVector3:!0,set:function(n,t,i){return this.x=n,this.y=t,this.z=i,this},setScalar:function(n){return this.z=this.y=this.x=n,this},setX:function(n){return this.x=n,this},setY:function(n){return this.y=n,this},setZ:function(n){return this.z=n,this},setComponent:function(n,t){switch(n){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error("index is out of range: "+n);}return this},getComponent:function(n){switch(n){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+n);}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(n){return this.x=n.x,this.y=n.y,this.z=n.z,this},add:function(n,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(n,t)):(this.x+=n.x,this.y+=n.y,this.z+=n.z,this)},addScalar:function(n){return this.x+=n,this.y+=n,this.z+=n,this},addVectors:function(n,t){return this.x=n.x+t.x,this.y=n.y+t.y,this.z=n.z+t.z,this},addScaledVector:function(n,t){return this.x+=n.x*t,this.y+=n.y*t,this.z+=n.z*t,this},sub:function(n,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(n,t)):(this.x-=n.x,this.y-=n.y,this.z-=n.z,this)},subScalar:function(n){return this.x-=n,this.y-=n,this.z-=n,this},subVectors:function(n,t){return this.x=n.x-t.x,this.y=n.y-t.y,this.z=n.z-t.z,this},multiply:function(n,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(n,t)):(this.x*=n.x,this.y*=n.y,this.z*=n.z,this)},multiplyScalar:function(n){return this.x*=n,this.y*=n,this.z*=n,this},multiplyVectors:function(n,t){return this.x=n.x*t.x,this.y=n.y*t.y,this.z=n.z*t.z,this},applyEuler:function(){var n=new d;return function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(n.setFromEuler(t))}}(),applyAxisAngle:function(){var n=new d;return function(t,i){return this.applyQuaternion(n.setFromAxisAngle(t,i))}}(),applyMatrix3:function(n){var t=this.x,i=this.y,r=this.z;return n=n.elements,this.x=n[0]*t+n[3]*i+n[6]*r,this.y=n[1]*t+n[4]*i+n[7]*r,this.z=n[2]*t+n[5]*i+n[8]*r,this},applyMatrix4:function(n){var t=this.x,i=this.y,r=this.z,u;return n=n.elements,u=1/(n[3]*t+n[7]*i+n[11]*r+n[15]),this.x=(n[0]*t+n[4]*i+n[8]*r+n[12])*u,this.y=(n[1]*t+n[5]*i+n[9]*r+n[13])*u,this.z=(n[2]*t+n[6]*i+n[10]*r+n[14])*u,this},applyQuaternion:function(n){var t=this.x,f=this.y,e=this.z,i=n.x,r=n.y,u=n.z;n=n.w;var o=n*t+r*e-u*f,s=n*f+u*t-i*e,h=n*e+i*f-r*t,t=-i*t-r*f-u*e;return this.x=o*n+t*-i+s*-u-h*-r,this.y=s*n+t*-r+h*-i-o*-u,this.z=h*n+t*-u+o*-r-s*-i,this},project:function(){var n=new s;return function(t){return n.multiplyMatrices(t.projectionMatrix,n.getInverse(t.matrixWorld)),this.applyMatrix4(n)}}(),unproject:function(){var n=new s;return function(t){return n.multiplyMatrices(t.matrixWorld,n.getInverse(t.projectionMatrix)),this.applyMatrix4(n)}}(),transformDirection:function(n){var t=this.x,i=this.y,r=this.z;return n=n.elements,this.x=n[0]*t+n[4]*i+n[8]*r,this.y=n[1]*t+n[5]*i+n[9]*r,this.z=n[2]*t+n[6]*i+n[10]*r,this.normalize()},divide:function(n){return this.x/=n.x,this.y/=n.y,this.z/=n.z,this},divideScalar:function(n){return this.multiplyScalar(1/n)},min:function(n){return this.x=Math.min(this.x,n.x),this.y=Math.min(this.y,n.y),this.z=Math.min(this.z,n.z),this},max:function(n){return this.x=Math.max(this.x,n.x),this.y=Math.max(this.y,n.y),this.z=Math.max(this.z,n.z),this},clamp:function(n,t){return this.x=Math.max(n.x,Math.min(t.x,this.x)),this.y=Math.max(n.y,Math.min(t.y,this.y)),this.z=Math.max(n.z,Math.min(t.z,this.z)),this},clampScalar:function(){var n=new t,i=new t;return function(t,r){return n.set(t,t,t),i.set(r,r,r),this.clamp(n,i)}}(),clampLength:function(n,t){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(n,Math.min(t,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(n){return this.x*n.x+this.y*n.y+this.z*n.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(n){return this.normalize().multiplyScalar(n)},lerp:function(n,t){return this.x+=(n.x-this.x)*t,this.y+=(n.y-this.y)*t,this.z+=(n.z-this.z)*t,this},lerpVectors:function(n,t,i){return this.subVectors(t,n).multiplyScalar(i).add(n)},cross:function(n,t){if(void 0!==t)return console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(n,t);t=this.x;var i=this.y,r=this.z;return this.x=i*n.z-r*n.y,this.y=r*n.x-t*n.z,this.z=t*n.y-i*n.x,this},crossVectors:function(n,t){var u=n.x,f=n.y,i,r;return n=n.z,i=t.x,r=t.y,t=t.z,this.x=f*t-n*r,this.y=n*i-u*t,this.z=u*r-f*i,this},projectOnVector:function(n){var t=n.dot(this)/n.lengthSq();return this.copy(n).multiplyScalar(t)},projectOnPlane:function(){var n=new t;return function(t){return n.copy(this).projectOnVector(t),this.sub(n)}}(),reflect:function(){var n=new t;return function(t){return this.sub(n.copy(t).multiplyScalar(2*this.dot(t)))}}(),angleTo:function(n){return n=this.dot(n)/Math.sqrt(this.lengthSq()*n.lengthSq()),Math.acos(l.clamp(n,-1,1))},distanceTo:function(n){return Math.sqrt(this.distanceToSquared(n))},distanceToSquared:function(n){var t=this.x-n.x,i=this.y-n.y;return n=this.z-n.z,t*t+i*i+n*n},distanceToManhattan:function(n){return Math.abs(this.x-n.x)+Math.abs(this.y-n.y)+Math.abs(this.z-n.z)},setFromSpherical:function(n){var t=Math.sin(n.phi)*n.radius;return this.x=t*Math.sin(n.theta),this.y=Math.cos(n.phi)*n.radius,this.z=t*Math.cos(n.theta),this},setFromCylindrical:function(n){return this.x=n.radius*Math.sin(n.theta),this.y=n.y,this.z=n.radius*Math.cos(n.theta),this},setFromMatrixPosition:function(n){return n=n.elements,this.x=n[12],this.y=n[13],this.z=n[14],this},setFromMatrixScale:function(n){var t=this.setFromMatrixColumn(n,0).length(),i=this.setFromMatrixColumn(n,1).length();return n=this.setFromMatrixColumn(n,2).length(),this.x=t,this.y=i,this.z=n,this},setFromMatrixColumn:function(n,t){return this.fromArray(n.elements,4*t)},equals:function(n){return n.x===this.x&&n.y===this.y&&n.z===this.z},fromArray:function(n,t){return void 0===t&&(t=0),this.x=n[t],this.y=n[t+1],this.z=n[t+2],this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this.x,n[t+1]=this.y,n[t+2]=this.z,n},fromBufferAttribute:function(n,t,i){return void 0!==i&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=n.getX(t),this.y=n.getY(t),this.z=n.getZ(t),this}});Object.assign(s.prototype,{isMatrix4:!0,set:function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p){var w=this.elements;return w[0]=n,w[4]=t,w[8]=i,w[12]=r,w[1]=u,w[5]=f,w[9]=e,w[13]=o,w[2]=s,w[6]=h,w[10]=c,w[14]=l,w[3]=a,w[7]=v,w[11]=y,w[15]=p,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new s).fromArray(this.elements)},copy:function(n){var t=this.elements;return n=n.elements,t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this},copyPosition:function(n){var t=this.elements;return n=n.elements,t[12]=n[12],t[13]=n[13],t[14]=n[14],this},extractBasis:function(n,t,i){return n.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this},makeBasis:function(n,t,i){return this.set(n.x,t.x,i.x,0,n.y,t.y,i.y,0,n.z,t.z,i.z,0,0,0,0,1),this},extractRotation:function(){var n=new t;return function(t){var i=this.elements,r=t.elements,u=1/n.setFromMatrixColumn(t,0).length(),f=1/n.setFromMatrixColumn(t,1).length();return t=1/n.setFromMatrixColumn(t,2).length(),i[0]=r[0]*u,i[1]=r[1]*u,i[2]=r[2]*u,i[4]=r[4]*f,i[5]=r[5]*f,i[6]=r[6]*f,i[8]=r[8]*t,i[9]=r[9]*t,i[10]=r[10]*t,this}}(),makeRotationFromEuler:function(n){n&&n.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,i=n.x,r=n.y,u=n.z,f=Math.cos(i),i=Math.sin(i),e=Math.cos(r),r=Math.sin(r),o=Math.cos(u),u=Math.sin(u);if("XYZ"===n.order){var s=f*o,h=f*u,c=i*o;n=i*u;t[0]=e*o;t[4]=-e*u;t[8]=r;t[1]=h+c*r;t[5]=s-n*r;t[9]=-i*e;t[2]=n-s*r;t[6]=c+h*r;t[10]=f*e}else"YXZ"===n.order?(s=e*o,h=e*u,c=r*o,n=r*u,t[0]=s+n*i,t[4]=c*i-h,t[8]=f*r,t[1]=f*u,t[5]=f*o,t[9]=-i,t[2]=h*i-c,t[6]=n+s*i,t[10]=f*e):"ZXY"===n.order?(s=e*o,h=e*u,c=r*o,n=r*u,t[0]=s-n*i,t[4]=-f*u,t[8]=c+h*i,t[1]=h+c*i,t[5]=f*o,t[9]=n-s*i,t[2]=-f*r,t[6]=i,t[10]=f*e):"ZYX"===n.order?(s=f*o,h=f*u,c=i*o,n=i*u,t[0]=e*o,t[4]=c*r-h,t[8]=s*r+n,t[1]=e*u,t[5]=n*r+s,t[9]=h*r-c,t[2]=-r,t[6]=i*e,t[10]=f*e):"YZX"===n.order?(s=f*e,h=f*r,c=i*e,n=i*r,t[0]=e*o,t[4]=n-s*u,t[8]=c*u+h,t[1]=u,t[5]=f*o,t[9]=-i*o,t[2]=-r*o,t[6]=h*u+c,t[10]=s-n*u):"XZY"===n.order&&(s=f*e,h=f*r,c=i*e,n=i*r,t[0]=e*o,t[4]=-u,t[8]=r*o,t[1]=s*u+n,t[5]=f*o,t[9]=h*u-c,t[2]=c*u-h,t[6]=i*o,t[10]=n*u+s);return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},makeRotationFromQuaternion:function(n){var t=this.elements,i=n._x,r=n._y,u=n._z,f=n._w,o=i+i,e=r+r,s=u+u;n=i*o;var h=i*e,i=i*s,c=r*e,r=r*s,u=u*s,o=f*o,e=f*e,f=f*s;return t[0]=1-(c+u),t[4]=h-f,t[8]=i+e,t[1]=h+f,t[5]=1-(n+u),t[9]=r-o,t[2]=i-e,t[6]=r+o,t[10]=1-(n+c),t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},lookAt:function(){var i=new t,r=new t,n=new t;return function(t,u,f){var e=this.elements;return n.subVectors(t,u),0===n.lengthSq()&&(n.z=1),n.normalize(),i.crossVectors(f,n),0===i.lengthSq()&&(1===Math.abs(f.z)?n.x+=.0001:n.z+=.0001,n.normalize(),i.crossVectors(f,n)),i.normalize(),r.crossVectors(n,i),e[0]=i.x,e[4]=r.x,e[8]=n.x,e[1]=i.y,e[5]=r.y,e[9]=n.y,e[2]=i.z,e[6]=r.z,e[10]=n.z,this}}(),multiply:function(n,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(n,t)):this.multiplyMatrices(this,n)},premultiply:function(n){return this.multiplyMatrices(n,this)},multiplyMatrices:function(n,t){var i=n.elements,r=t.elements;t=this.elements;n=i[0];var u=i[4],f=i[8],e=i[12],o=i[1],s=i[5],h=i[9],c=i[13],l=i[2],a=i[6],v=i[10],y=i[14],p=i[3],w=i[7],b=i[11],i=i[15],k=r[0],d=r[4],g=r[8],nt=r[12],tt=r[1],it=r[5],rt=r[9],ut=r[13],ft=r[2],et=r[6],ot=r[10],st=r[14],ht=r[3],ct=r[7],lt=r[11],r=r[15];return t[0]=n*k+u*tt+f*ft+e*ht,t[4]=n*d+u*it+f*et+e*ct,t[8]=n*g+u*rt+f*ot+e*lt,t[12]=n*nt+u*ut+f*st+e*r,t[1]=o*k+s*tt+h*ft+c*ht,t[5]=o*d+s*it+h*et+c*ct,t[9]=o*g+s*rt+h*ot+c*lt,t[13]=o*nt+s*ut+h*st+c*r,t[2]=l*k+a*tt+v*ft+y*ht,t[6]=l*d+a*it+v*et+y*ct,t[10]=l*g+a*rt+v*ot+y*lt,t[14]=l*nt+a*ut+v*st+y*r,t[3]=p*k+w*tt+b*ft+i*ht,t[7]=p*d+w*it+b*et+i*ct,t[11]=p*g+w*rt+b*ot+i*lt,t[15]=p*nt+w*ut+b*st+i*r,this},multiplyScalar:function(n){var t=this.elements;return t[0]*=n,t[4]*=n,t[8]*=n,t[12]*=n,t[1]*=n,t[5]*=n,t[9]*=n,t[13]*=n,t[2]*=n,t[6]*=n,t[10]*=n,t[14]*=n,t[3]*=n,t[7]*=n,t[11]*=n,t[15]*=n,this},applyToBufferAttribute:function(){var n=new t;return function(t){for(var i=0,r=t.count;i<r;i++)n.x=t.getX(i),n.y=t.getY(i),n.z=t.getZ(i),n.applyMatrix4(this),t.setXYZ(i,n.x,n.y,n.z);return t}}(),determinant:function(){var n=this.elements,t=n[0],i=n[4],r=n[8],u=n[12],f=n[1],e=n[5],o=n[9],s=n[13],h=n[2],c=n[6],l=n[10],a=n[14];return n[3]*(+u*o*c-r*s*c-u*e*l+i*s*l+r*e*a-i*o*a)+n[7]*(+t*o*a-t*s*l+u*f*l-r*f*a+r*s*h-u*o*h)+n[11]*(+t*s*c-t*e*a-u*f*c+i*f*a+u*e*h-i*s*h)+n[15]*(-r*e*h-t*o*c+t*e*l+r*f*c-i*f*l+i*o*h)},transpose:function(){var n=this.elements,t=n[1];return n[1]=n[4],n[4]=t,t=n[2],n[2]=n[8],n[8]=t,t=n[6],n[6]=n[9],n[9]=t,t=n[3],n[3]=n[12],n[12]=t,t=n[7],n[7]=n[13],n[13]=t,t=n[11],n[11]=n[14],n[14]=t,this},setPosition:function(n){var t=this.elements;return t[12]=n.x,t[13]=n.y,t[14]=n.z,this},getInverse:function(n,t){var b=this.elements,i=n.elements;n=i[0];var r=i[1],u=i[2],f=i[3],e=i[4],o=i[5],s=i[6],h=i[7],c=i[8],l=i[9],a=i[10],v=i[11],y=i[12],p=i[13],w=i[14],i=i[15],k=l*w*h-p*a*h+p*s*v-o*w*v-l*s*i+o*a*i,d=y*a*h-c*w*h-y*s*v+e*w*v+c*s*i-e*a*i,g=c*p*h-y*l*h+y*o*v-e*p*v-c*o*i+e*l*i,nt=y*l*s-c*p*s-y*o*a+e*p*a+c*o*w-e*l*w,tt=n*k+r*d+u*g+f*nt;if(0===tt){if(!0===t)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return t=1/tt,b[0]=k*t,b[1]=(p*a*f-l*w*f-p*u*v+r*w*v+l*u*i-r*a*i)*t,b[2]=(o*w*f-p*s*f+p*u*h-r*w*h-o*u*i+r*s*i)*t,b[3]=(l*s*f-o*a*f-l*u*h+r*a*h+o*u*v-r*s*v)*t,b[4]=d*t,b[5]=(c*w*f-y*a*f+y*u*v-n*w*v-c*u*i+n*a*i)*t,b[6]=(y*s*f-e*w*f-y*u*h+n*w*h+e*u*i-n*s*i)*t,b[7]=(e*a*f-c*s*f+c*u*h-n*a*h-e*u*v+n*s*v)*t,b[8]=g*t,b[9]=(y*l*f-c*p*f-y*r*v+n*p*v+c*r*i-n*l*i)*t,b[10]=(e*p*f-y*o*f+y*r*h-n*p*h-e*r*i+n*o*i)*t,b[11]=(c*o*f-e*l*f-c*r*h+n*l*h+e*r*v-n*o*v)*t,b[12]=nt*t,b[13]=(c*p*u-y*l*u+y*r*a-n*p*a-c*r*w+n*l*w)*t,b[14]=(y*o*u-e*p*u-y*r*s+n*p*s+e*r*w-n*o*w)*t,b[15]=(e*l*u-c*o*u+c*r*s-n*l*s-e*r*a+n*o*a)*t,this},scale:function(n){var t=this.elements,i=n.x,r=n.y;return n=n.z,t[0]*=i,t[4]*=r,t[8]*=n,t[1]*=i,t[5]*=r,t[9]*=n,t[2]*=i,t[6]*=r,t[10]*=n,t[3]*=i,t[7]*=r,t[11]*=n,this},getMaxScaleOnAxis:function(){var n=this.elements;return Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1]+n[2]*n[2],n[4]*n[4]+n[5]*n[5]+n[6]*n[6],n[8]*n[8]+n[9]*n[9]+n[10]*n[10]))},makeTranslation:function(n,t,i){return this.set(1,0,0,n,0,1,0,t,0,0,1,i,0,0,0,1),this},makeRotationX:function(n){var t=Math.cos(n);return n=Math.sin(n),this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this},makeRotationY:function(n){var t=Math.cos(n);return n=Math.sin(n),this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this},makeRotationZ:function(n){var t=Math.cos(n);return n=Math.sin(n),this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(n,t){var u=Math.cos(t),i,f;t=Math.sin(t);var o=1-u,e=n.x,r=n.y;return n=n.z,i=o*e,f=o*r,this.set(i*e+u,i*r-t*n,i*n+t*r,0,i*r+t*n,f*r+u,f*n-t*e,0,i*n-t*r,f*n+t*e,o*n*n+u,0,0,0,0,1),this},makeScale:function(n,t,i){return this.set(n,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this},makeShear:function(n,t,i){return this.set(1,t,i,0,n,1,i,0,n,t,1,0,0,0,0,1),this},compose:function(n,t,i){return this.makeRotationFromQuaternion(t),this.scale(i),this.setPosition(n),this},decompose:function(){var i=new t,n=new s;return function(t,r,u){var f=this.elements,e=i.set(f[0],f[1],f[2]).length(),s=i.set(f[4],f[5],f[6]).length(),h=i.set(f[8],f[9],f[10]).length(),o;return 0>this.determinant()&&(e=-e),t.x=f[12],t.y=f[13],t.z=f[14],n.copy(this),t=1/e,f=1/s,o=1/h,n.elements[0]*=t,n.elements[1]*=t,n.elements[2]*=t,n.elements[4]*=f,n.elements[5]*=f,n.elements[6]*=f,n.elements[8]*=o,n.elements[9]*=o,n.elements[10]*=o,r.setFromRotationMatrix(n),u.x=e,u.y=s,u.z=h,this}}(),makePerspective:function(n,t,i,r,u,f){void 0===f&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var e=this.elements;return e[0]=2*u/(t-n),e[4]=0,e[8]=(t+n)/(t-n),e[12]=0,e[1]=0,e[5]=2*u/(i-r),e[9]=(i+r)/(i-r),e[13]=0,e[2]=0,e[6]=0,e[10]=-(f+u)/(f-u),e[14]=-2*f*u/(f-u),e[3]=0,e[7]=0,e[11]=-1,e[15]=0,this},makeOrthographic:function(n,t,i,r,u,f){var e=this.elements,o=1/(t-n),s=1/(i-r),h=1/(f-u);return e[0]=2*o,e[4]=0,e[8]=0,e[12]=-((t+n)*o),e[1]=0,e[5]=2*s,e[9]=0,e[13]=-((i+r)*s),e[2]=0,e[6]=0,e[10]=-2*h,e[14]=-((f+u)*h),e[3]=0,e[7]=0,e[11]=0,e[15]=1,this},equals:function(n){var i=this.elements,t;for(n=n.elements,t=0;16>t;t++)if(i[t]!==n[t])return!1;return!0},fromArray:function(n,t){void 0===t&&(t=0);for(var i=0;16>i;i++)this.elements[i]=n[i+t];return this},toArray:function(n,t){void 0===n&&(n=[]);void 0===t&&(t=0);var i=this.elements;return n[t]=i[0],n[t+1]=i[1],n[t+2]=i[2],n[t+3]=i[3],n[t+4]=i[4],n[t+5]=i[5],n[t+6]=i[6],n[t+7]=i[7],n[t+8]=i[8],n[t+9]=i[9],n[t+10]=i[10],n[t+11]=i[11],n[t+12]=i[12],n[t+13]=i[13],n[t+14]=i[14],n[t+15]=i[15],n}});bi.prototype=Object.create(b.prototype);bi.prototype.constructor=bi;bi.prototype.isDataTexture=!0;li.prototype=Object.create(b.prototype);li.prototype.constructor=li;li.prototype.isCubeTexture=!0;Object.defineProperty(li.prototype,"images",{get:function(){return this.image},set:function(n){this.image=n}});var ga=new b,nv=new li,tv=[],iv=[],rv=new Float32Array(16),uv=new Float32Array(9);ll.prototype.setValue=function(n,t){for(var i,u=this.seq,r=0,f=u.length;r!==f;++r)i=u[r],i.setValue(n,t[i.id])};ah=/([\w\d_]+)(\])?(\[|\.)?/g;ki.prototype.setValue=function(n,t,i){t=this.map[t];void 0!==t&&t.setValue(n,i,this.renderer)};ki.prototype.setOptional=function(n,t,i){t=t[i];void 0!==t&&this.setValue(n,i,t)};ki.upload=function(n,t,i,r){for(var u,f,e=0,o=t.length;e!==o;++e)u=t[e],f=i[u.id],!1!==f.needsUpdate&&u.setValue(n,f.value,r)};ki.seqWithValue=function(n,t){for(var i,u=[],r=0,f=n.length;r!==f;++r)i=n[r],i.id in t&&u.push(i);return u};wa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(e.prototype,{isColor:!0,r:1,g:1,b:1,set:function(n){return n&&n.isColor?this.copy(n):"number"==typeof n?this.setHex(n):"string"==typeof n&&this.setStyle(n),this},setScalar:function(n){return this.b=this.g=this.r=n,this},setHex:function(n){return n=Math.floor(n),this.r=(n>>16&255)/255,this.g=(n>>8&255)/255,this.b=(n&255)/255,this},setRGB:function(n,t,i){return this.r=n,this.g=t,this.b=i,this},setHSL:function(){function n(n,t,i){return 0>i&&(i+=1),1<i&&--i,i<1/6?n+6*(t-n)*i:.5>i?t:i<2/3?n+6*(t-n)*(2/3-i):n}return function(t,i,r){return t=l.euclideanModulo(t,1),i=l.clamp(i,0,1),r=l.clamp(r,0,1),0===i?this.r=this.g=this.b=r:(i=.5>=r?r*(1+i):r+i-r*i,r=2*r-i,this.r=n(r,i,t+1/3),this.g=n(r,i,t),this.b=n(r,i,t-1/3)),this}}(),setStyle:function(n){function r(t){void 0!==t&&1>parseFloat(t)&&console.warn("THREE.Color: Alpha component of "+n+" will be ignored.")}var t,i;if(t=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(n)){i=t[2];switch(t[1]){case"rgb":case"rgba":if(t=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,r(t[5]),this;if(t=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,r(t[5]),this;break;case"hsl":case"hsla":if(t=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(i)){var i=parseFloat(t[1])/360,u=parseInt(t[2],10)/100,f=parseInt(t[3],10)/100;return r(t[5]),this.setHSL(i,u,f)}}}else if(t=/^\#([A-Fa-f0-9]+)$/.exec(n)){if(t=t[1],i=t.length,3===i)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===i)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return n&&0<n.length&&(t=wa[n],void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+n)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(n){return this.r=n.r,this.g=n.g,this.b=n.b,this},copyGammaToLinear:function(n,t){return void 0===t&&(t=2),this.r=Math.pow(n.r,t),this.g=Math.pow(n.g,t),this.b=Math.pow(n.b,t),this},copyLinearToGamma:function(n,t){return void 0===t&&(t=2),t=0<t?1/t:1,this.r=Math.pow(n.r,t),this.g=Math.pow(n.g,t),this.b=Math.pow(n.b,t),this},convertGammaToLinear:function(){var n=this.r,t=this.g,i=this.b;return this.r=n*n,this.g=t*t,this.b=i*i,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(n){var i,t;n=n||{h:0,s:0,l:0};var o=this.r,r=this.g,u=this.b,f=Math.max(o,r,u),t=Math.min(o,r,u),e,s=(t+f)/2;if(t===f)t=e=0;else{i=f-t;t=.5>=s?i/(f+t):i/(2-f-t);switch(f){case o:e=(r-u)/i+(r<u?6:0);break;case r:e=(u-o)/i+2;break;case u:e=(o-r)/i+4}e/=6}return n.h=e,n.s=t,n.l=s,n},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(n,t,i){var r=this.getHSL();return r.h+=n,r.s+=t,r.l+=i,this.setHSL(r.h,r.s,r.l),this},add:function(n){return this.r+=n.r,this.g+=n.g,this.b+=n.b,this},addColors:function(n,t){return this.r=n.r+t.r,this.g=n.g+t.g,this.b=n.b+t.b,this},addScalar:function(n){return this.r+=n,this.g+=n,this.b+=n,this},sub:function(n){return this.r=Math.max(0,this.r-n.r),this.g=Math.max(0,this.g-n.g),this.b=Math.max(0,this.b-n.b),this},multiply:function(n){return this.r*=n.r,this.g*=n.g,this.b*=n.b,this},multiplyScalar:function(n){return this.r*=n,this.g*=n,this.b*=n,this},lerp:function(n,t){return this.r+=(n.r-this.r)*t,this.g+=(n.g-this.g)*t,this.b+=(n.b-this.b)*t,this},equals:function(n){return n.r===this.r&&n.g===this.g&&n.b===this.b},fromArray:function(n,t){return void 0===t&&(t=0),this.r=n[t],this.g=n[t+1],this.b=n[t+2],this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this.r,n[t+1]=this.g,n[t+2]=this.b,n},toJSON:function(){return this.getHex()}});var o={common:{diffuse:{value:new e(15658734)},opacity:{value:1},map:{value:null},offsetRepeat:{value:new y(0,0,1,1)},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new i(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:.00025},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new e(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new e(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},offsetRepeat:{value:new y(0,0,1,1)}}},et={merge:function(n){for(var t,i,u={},r=0;r<n.length;r++){t=this.clone(n[r]);for(i in t)u[i]=t[i]}return u},clone:function(n){var r={},i,u,t;for(i in n){r[i]={};for(u in n[i])t=n[i][u],r[i][u]=t&&(t.isColor||t.isMatrix3||t.isMatrix4||t.isVector2||t.isVector3||t.isVector4||t.isTexture)?t.clone():Array.isArray(t)?t.slice():t}return r}},v={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif\n",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif\n",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif\n",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif\n",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"\nvec3 transformed = vec3( position );\n",beginnormal_vertex:"\nvec3 objectNormal = vec3( normal );\n",bsdfs:"float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tif( decayExponent > 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\treturn distanceFalloff * maxDistanceCutoffFactor;\n#else\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t}\n\treturn 1.0;\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE  = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS  = 0.5 / LUT_SIZE;\n\tfloat theta = acos( dot( N, V ) );\n\tvec2 uv = vec2(\n\t\tsqrt( saturate( roughness ) ),\n\t\tsaturate( theta / ( 0.5 * PI ) ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.86267 + (0.49788 + 0.01436 * y ) * y;\n\tfloat b = 3.45068 + (4.18814 + y) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = (x > 0.0) ? v : 0.5 * inversesqrt( 1.0 - x * x ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transpose( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tvec3 result = vec3( LTC_ClippedSphereFormFactor( vectorFormFactor ) );\n\treturn result;\n}\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\n\treturn specularColor * AB.x + AB.y;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif\n",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\n\t\tvec4 plane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t\t\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\n\t\t\tvec4 plane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t\n\t#endif\n#endif\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif\n",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif\n",color_pars_vertex:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_vertex:"#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",common:"#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI_HALF 1.5707963267949\n#define RECIPROCAL_PI 0.31830988618\n#define RECIPROCAL_PI2 0.15915494\n#define LOG2 1.442695\n#define EPSILON 1e-6\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transpose( const in mat3 v ) {\n\tmat3 tmp;\n\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\n\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\n\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\n\treturn tmp;\n}\n",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n#define cubeUV_textureSize (1024.0)\nint getFaceFromDirection(vec3 direction) {\n\tvec3 absDirection = abs(direction);\n\tint face = -1;\n\tif( absDirection.x > absDirection.z ) {\n\t\tif(absDirection.x > absDirection.y )\n\t\t\tface = direction.x > 0.0 ? 0 : 3;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\telse {\n\t\tif(absDirection.z > absDirection.y )\n\t\t\tface = direction.z > 0.0 ? 2 : 5;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\treturn face;\n}\n#define cubeUV_maxLods1  (log2(cubeUV_textureSize*0.25) - 1.0)\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\n\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\n\tfloat dxRoughness = dFdx(roughness);\n\tfloat dyRoughness = dFdy(roughness);\n\tvec3 dx = dFdx( vec * scale * dxRoughness );\n\tvec3 dy = dFdy( vec * scale * dyRoughness );\n\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\n\td = clamp(d, 1.0, cubeUV_rangeClamp);\n\tfloat mipLevel = 0.5 * log2(d);\n\treturn vec2(floor(mipLevel), fract(mipLevel));\n}\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\n\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\n\tfloat a = 16.0 * cubeUV_rcpTextureSize;\n\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\n\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\n\tfloat powScale = exp2_packed.x * exp2_packed.y;\n\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\n\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\n\tbool bRes = mipLevel == 0.0;\n\tscale =  bRes && (scale < a) ? a : scale;\n\tvec3 r;\n\tvec2 offset;\n\tint face = getFaceFromDirection(direction);\n\tfloat rcpPowScale = 1.0 / powScale;\n\tif( face == 0) {\n\t\tr = vec3(direction.x, -direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 1) {\n\t\tr = vec3(direction.y, direction.x, direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 2) {\n\t\tr = vec3(direction.z, direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 3) {\n\t\tr = vec3(direction.x, direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse if( face == 4) {\n\t\tr = vec3(direction.y, direction.x, -direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse {\n\t\tr = vec3(direction.z, -direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\tr = normalize(r);\n\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\n\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\n\tvec2 base = offset + vec2( texelOffset );\n\treturn base + s * ( scale - 2.0 * texelOffset );\n}\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\nvec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {\n\tfloat roughnessVal = roughness* cubeUV_maxLods3;\n\tfloat r1 = floor(roughnessVal);\n\tfloat r2 = r1 + 1.0;\n\tfloat t = fract(roughnessVal);\n\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\n\tfloat s = mipInfo.y;\n\tfloat level0 = mipInfo.x;\n\tfloat level1 = level0 + 1.0;\n\tlevel1 = level1 > 5.0 ? 5.0 : level1;\n\tlevel0 += min( floor( s + 0.5 ), 5.0 );\n\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\n\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\n\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\n\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\n\tvec4 result = mix(color10, color20, t);\n\treturn vec4(result.rgb, 1.0);\n}\n#endif\n",defaultnormal_vertex:"vec3 transformedNormal = normalMatrix * objectNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif\n",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif\n",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif\n",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif\n",encodings_fragment:"  gl_FragColor = linearToOutputTexel( gl_FragColor );\n",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.w );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat M      = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM            = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat D      = max( maxRange / maxRGB, 1.0 );\n\tD            = min( floor( D ) / 255.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value )  {\n\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\n\tXp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract(Le);\n\tvResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\n\treturn vec4( max(vRGB, 0.0), 1.0 );\n}\n",envmap_fragment:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\treflectVec = normalize( reflectVec );\n\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\treflectVec = normalize( reflectVec );\n\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\n\t\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\tenvColor = envMapTexelToLinear( envColor );\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif\n",envmap_pars_fragment:"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\n\tuniform float reflectivity;\n\tuniform float envMapIntensity;\n#endif\n#ifdef USE_ENVMAP\n\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\n\t\tvarying vec3 vWorldPosition;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\tuniform float flipEnvMap;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif\n",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif\n",envmap_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif\n",fog_vertex:"\n#ifdef USE_FOG\nfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n  varying float fogDepth;\n#endif\n",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif\n",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif\n",gradientmap_pars_fragment:"#ifdef TOON\n\tuniform sampler2D gradientMap;\n\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\t\tfloat dotNL = dot( normal, lightDirection );\n\t\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t\t#ifdef USE_GRADIENTMAP\n\t\t\treturn texture2D( gradientMap, coord ).rgb;\n\t\t#else\n\t\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t\t#endif\n\t}\n#endif\n",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif\n",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_DIR_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif\n",lights_pars:"uniform vec3 ambientLightColor;\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t\tfloat shadowCameraNear;\n\t\tfloat shadowCameraFar;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight  ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltcMat;\tuniform sampler2D ltcMag;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif\n#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( queryVec, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar - 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\tvec4 envMapColor = textureCubeUV(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif\n",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;\n",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifdef TOON\n\t\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#else\n\t\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\t\tvec3 irradiance = dotNL * directLight.color;\n\t#endif\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)\n",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\n#ifdef STANDARD\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.clearCoat = saturate( clearCoat );\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\n#endif\n",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n\t#ifndef STANDARD\n\t\tfloat clearCoat;\n\t\tfloat clearCoatRoughness;\n\t#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos - halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos + halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos + halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos - halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tfloat norm = texture2D( ltcMag, uv ).a;\n\t\tvec4 t = texture2D( ltcMat, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3(   1,   0, t.y ),\n\t\t\tvec3(   0, t.z,   0 ),\n\t\t\tvec3( t.w,   0, t.x )\n\t\t);\n\t\treflectedLight.directSpecular += lightColor * material.specularColor * norm * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifndef STANDARD\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.directSpecular += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\n\treflectedLight.directDiffuse += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\t#ifndef STANDARD\n\t\treflectedLight.directSpecular += irradiance * material.clearCoat * BRDF_Specular_GGX( directLight, geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifndef STANDARD\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\tfloat dotNL = dotNV;\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n\t#ifndef STANDARD\n\t\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\n#define Material_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.specularRoughness )\n#define Material_ClearCoat_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}\n",lights_template:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = normalize( vViewPosition );\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#ifdef USE_LIGHTMAP\n\t\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\n\t#endif\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\n\t#ifndef STANDARD\n\t\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\n\t#else\n\t\tvec3 clearCoatRadiance = vec3( 0.0 );\n\t#endif\n\tRE_IndirectSpecular( radiance, clearCoatRadiance, geometry, material, reflectedLight );\n#endif\n",logdepthbuf_fragment:"#if defined(USE_LOGDEPTHBUF) && defined(USE_LOGDEPTHBUF_EXT)\n\tgl_FragDepthEXT = log2(vFragDepth) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = (gl_Position.z - 1.0) * gl_Position.w;\n\t#endif\n#endif\n",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif\n",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n",map_particle_fragment:"#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform vec4 offsetRepeat;\n\tuniform sampler2D map;\n#endif\n",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif\n",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\n\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\n\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\n\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\n#endif\n",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\n\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\n\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\n\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\n\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\n\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\n\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n\t#endif\n#endif\n",normal_fragment:"#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n#endif\n#ifdef USE_NORMALMAP\n\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\n\t\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\n\t\tvec3 N = normalize( surf_norm );\n\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\tmapN.xy = normalScale * mapN.xy;\n\t\tmat3 tsn = mat3( S, T, N );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif\n",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 1.0 - 2.0 * rgb.xyz;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256.,  256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}\n",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif\n",project_vertex:"vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\n",dithering_fragment:"#if defined( DITHERING )\n  gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif\n",dithering_pars_fragment:"#if defined( DITHERING )\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif\n",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\n\t\tconst vec2 offset = vec2( 0.0, 1.0 );\n\t\tvec2 texelSize = vec2( 1.0 ) / size;\n\t\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\n\t\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\n\t\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\n\t\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\n\t\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\n\t\tvec2 f = fract( uv * size + 0.5 );\n\t\tfloat a = mix( lb, lt, f.y );\n\t\tfloat b = mix( rb, rt, f.y );\n\t\tfloat c = mix( a, b, f.x );\n\t\treturn c;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif\n",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n#endif\n",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n#endif\n",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tDirectionalLight directionalLight;\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tSpotLight spotLight;\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tPointLight pointLight;\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#endif\n\t#endif\n\treturn shadow;\n}\n",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif\n",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif\n",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix  = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n#endif\n",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n  gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n",tonemapping_pars_fragment:"#define saturate(a) clamp( a, 0.0, 1.0 )\nuniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n",uv_pars_fragment:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n\tuniform vec4 offsetRepeat;\n#endif\n",uv_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = uv2;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n#endif\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\n}\n",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}\n",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n}\n",equirect_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}\n",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <bsdfs>\n#include <lights_pars>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_template>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphysical_frag:"#define PHYSICAL\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifndef STANDARD\n\tuniform float clearCoat;\n\tuniform float clearCoatRoughness;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <lights_pars>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_template>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\n",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <bsdfs>\n#include <lights_pars>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n}\n",shadow_vert:"#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n}\n"},gr={basic:{uniforms:et.merge([o.common,o.specularmap,o.envmap,o.aomap,o.lightmap,o.fog]),vertexShader:v.meshbasic_vert,fragmentShader:v.meshbasic_frag},lambert:{uniforms:et.merge([o.common,o.specularmap,o.envmap,o.aomap,o.lightmap,o.emissivemap,o.fog,o.lights,{emissive:{value:new e(0)}}]),vertexShader:v.meshlambert_vert,fragmentShader:v.meshlambert_frag},phong:{uniforms:et.merge([o.common,o.specularmap,o.envmap,o.aomap,o.lightmap,o.emissivemap,o.bumpmap,o.normalmap,o.displacementmap,o.gradientmap,o.fog,o.lights,{emissive:{value:new e(0)},specular:{value:new e(1118481)},shininess:{value:30}}]),vertexShader:v.meshphong_vert,fragmentShader:v.meshphong_frag},standard:{uniforms:et.merge([o.common,o.envmap,o.aomap,o.lightmap,o.emissivemap,o.bumpmap,o.normalmap,o.displacementmap,o.roughnessmap,o.metalnessmap,o.fog,o.lights,{emissive:{value:new e(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:v.meshphysical_vert,fragmentShader:v.meshphysical_frag},points:{uniforms:et.merge([o.points,o.fog]),vertexShader:v.points_vert,fragmentShader:v.points_frag},dashed:{uniforms:et.merge([o.common,o.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:v.linedashed_vert,fragmentShader:v.linedashed_frag},depth:{uniforms:et.merge([o.common,o.displacementmap]),vertexShader:v.depth_vert,fragmentShader:v.depth_frag},normal:{uniforms:et.merge([o.common,o.bumpmap,o.normalmap,o.displacementmap,{opacity:{value:1}}]),vertexShader:v.normal_vert,fragmentShader:v.normal_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:v.cube_vert,fragmentShader:v.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:v.equirect_vert,fragmentShader:v.equirect_frag},distanceRGBA:{uniforms:et.merge([o.common,o.displacementmap,{referencePosition:{value:new t},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:v.distanceRGBA_vert,fragmentShader:v.distanceRGBA_frag},shadow:{uniforms:et.merge([o.lights,{color:{value:new e(0)},opacity:{value:1}}]),vertexShader:v.shadow_vert,fragmentShader:v.shadow_frag}};gr.physical={uniforms:et.merge([gr.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:v.meshphysical_vert,fragmentShader:v.meshphysical_frag};Object.assign(fs.prototype,{set:function(n,t){return this.min.copy(n),this.max.copy(t),this},setFromPoints:function(n){this.makeEmpty();for(var t=0,i=n.length;t<i;t++)this.expandByPoint(n[t]);return this},setFromCenterAndSize:function(){var n=new i;return function(t,i){return i=n.copy(i).multiplyScalar(.5),this.min.copy(t).sub(i),this.max.copy(t).add(i),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.min.copy(n.min),this.max.copy(n.max),this},makeEmpty:function(){return this.min.x=this.min.y=Infinity,this.max.x=this.max.y=-Infinity,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(n){return n=n||new i,this.isEmpty()?n.set(0,0):n.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(n){return n=n||new i,this.isEmpty()?n.set(0,0):n.subVectors(this.max,this.min)},expandByPoint:function(n){return this.min.min(n),this.max.max(n),this},expandByVector:function(n){return this.min.sub(n),this.max.add(n),this},expandByScalar:function(n){return this.min.addScalar(-n),this.max.addScalar(n),this},containsPoint:function(n){return n.x<this.min.x||n.x>this.max.x||n.y<this.min.y||n.y>this.max.y?!1:!0},containsBox:function(n){return this.min.x<=n.min.x&&n.max.x<=this.max.x&&this.min.y<=n.min.y&&n.max.y<=this.max.y},getParameter:function(n,t){return(t||new i).set((n.x-this.min.x)/(this.max.x-this.min.x),(n.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(n){return n.max.x<this.min.x||n.min.x>this.max.x||n.max.y<this.min.y||n.min.y>this.max.y?!1:!0},clampPoint:function(n,t){return(t||new i).copy(n).clamp(this.min,this.max)},distanceToPoint:function(){var n=new i;return function(t){return n.copy(t).clamp(this.min,this.max).sub(t).length()}}(),intersect:function(n){return this.min.max(n.min),this.max.min(n.max),this},union:function(n){return this.min.min(n.min),this.max.max(n.max),this},translate:function(n){return this.min.add(n),this.max.add(n),this},equals:function(n){return n.min.equals(this.min)&&n.max.equals(this.max)}});gf.prototype=Object.create(b.prototype);gf.prototype.constructor=gf;ba=0;Object.assign(a.prototype,ui.prototype,{isMaterial:!0,onBeforeCompile:function(){},setValues:function(n){var i,t,r;if(void 0!==n)for(i in n)t=n[i],void 0===t?console.warn("THREE.Material: '"+i+"' parameter is undefined."):"shading"===i?(console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===t?!0:!1):(r=this[i],void 0===r?console.warn("THREE."+this.type+": '"+i+"' is not a property of this material."):r&&r.isColor?r.set(t):r&&r.isVector3&&t&&t.isVector3?r.copy(t):this[i]="overdraw"===i?Number(t):t)},toJSON:function(n){function r(n){var i=[],r,t;for(r in n)t=n[r],delete t.metadata,i.push(t);return i}var i=void 0===n,t;return i&&(n={textures:{},images:{}}),t={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}},t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),this.color&&this.color.isColor&&(t.color=this.color.getHex()),void 0!==this.roughness&&(t.roughness=this.roughness),void 0!==this.metalness&&(t.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(t.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(t.specular=this.specular.getHex()),void 0!==this.shininess&&(t.shininess=this.shininess),void 0!==this.clearCoat&&(t.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(t.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(t.map=this.map.toJSON(n).uuid),this.alphaMap&&this.alphaMap.isTexture&&(t.alphaMap=this.alphaMap.toJSON(n).uuid),this.lightMap&&this.lightMap.isTexture&&(t.lightMap=this.lightMap.toJSON(n).uuid),this.bumpMap&&this.bumpMap.isTexture&&(t.bumpMap=this.bumpMap.toJSON(n).uuid,t.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(t.normalMap=this.normalMap.toJSON(n).uuid,t.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(t.displacementMap=this.displacementMap.toJSON(n).uuid,t.displacementScale=this.displacementScale,t.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(t.roughnessMap=this.roughnessMap.toJSON(n).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(t.metalnessMap=this.metalnessMap.toJSON(n).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(t.emissiveMap=this.emissiveMap.toJSON(n).uuid),this.specularMap&&this.specularMap.isTexture&&(t.specularMap=this.specularMap.toJSON(n).uuid),this.envMap&&this.envMap.isTexture&&(t.envMap=this.envMap.toJSON(n).uuid,t.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(t.gradientMap=this.gradientMap.toJSON(n).uuid),void 0!==this.size&&(t.size=this.size),void 0!==this.sizeAttenuation&&(t.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(t.blending=this.blending),!0===this.flatShading&&(t.flatShading=this.flatShading),0!==this.side&&(t.side=this.side),0!==this.vertexColors&&(t.vertexColors=this.vertexColors),1>this.opacity&&(t.opacity=this.opacity),!0===this.transparent&&(t.transparent=this.transparent),t.depthFunc=this.depthFunc,t.depthTest=this.depthTest,t.depthWrite=this.depthWrite,0<this.alphaTest&&(t.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(t.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(t.wireframe=this.wireframe),1<this.wireframeLinewidth&&(t.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(t.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(t.wireframeLinejoin=this.wireframeLinejoin),t.skinning=this.skinning,t.morphTargets=this.morphTargets,t.dithering=this.dithering,i&&(i=r(n.textures),n=r(n.images),0<i.length&&(t.textures=i),0<n.length&&(t.images=n)),t},clone:function(){return(new this.constructor).copy(this)},copy:function(n){var t;if(this.name=n.name,this.fog=n.fog,this.lights=n.lights,this.blending=n.blending,this.side=n.side,this.flatShading=n.flatShading,this.vertexColors=n.vertexColors,this.opacity=n.opacity,this.transparent=n.transparent,this.blendSrc=n.blendSrc,this.blendDst=n.blendDst,this.blendEquation=n.blendEquation,this.blendSrcAlpha=n.blendSrcAlpha,this.blendDstAlpha=n.blendDstAlpha,this.blendEquationAlpha=n.blendEquationAlpha,this.depthFunc=n.depthFunc,this.depthTest=n.depthTest,this.depthWrite=n.depthWrite,this.colorWrite=n.colorWrite,this.precision=n.precision,this.polygonOffset=n.polygonOffset,this.polygonOffsetFactor=n.polygonOffsetFactor,this.polygonOffsetUnits=n.polygonOffsetUnits,this.dithering=n.dithering,this.alphaTest=n.alphaTest,this.premultipliedAlpha=n.premultipliedAlpha,this.overdraw=n.overdraw,this.visible=n.visible,this.clipShadows=n.clipShadows,this.clipIntersection=n.clipIntersection,n=n.clippingPlanes,t=null,null!==n)for(var r=n.length,t=Array(r),i=0;i!==r;++i)t[i]=n[i].clone();return this.clippingPlanes=t,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});ct.prototype=Object.create(a.prototype);ct.prototype.constructor=ct;ct.prototype.isShaderMaterial=!0;ct.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.fragmentShader=n.fragmentShader,this.vertexShader=n.vertexShader,this.uniforms=et.clone(n.uniforms),this.defines=n.defines,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.lights=n.lights,this.clipping=n.clipping,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.morphNormals=n.morphNormals,this.extensions=n.extensions,this};ct.prototype.toJSON=function(n){return n=a.prototype.toJSON.call(this,n),n.uniforms=this.uniforms,n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n};ai.prototype=Object.create(a.prototype);ai.prototype.constructor=ai;ai.prototype.isMeshDepthMaterial=!0;ai.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.depthPacking=n.depthPacking,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.map=n.map,this.alphaMap=n.alphaMap,this.displacementMap=n.displacementMap,this.displacementScale=n.displacementScale,this.displacementBias=n.displacementBias,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this};vi.prototype=Object.create(a.prototype);vi.prototype.constructor=vi;vi.prototype.isMeshDistanceMaterial=!0;vi.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.referencePosition.copy(n.referencePosition),this.nearDistance=n.nearDistance,this.farDistance=n.farDistance,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.map=n.map,this.alphaMap=n.alphaMap,this.displacementMap=n.displacementMap,this.displacementScale=n.displacementScale,this.displacementBias=n.displacementBias,this};Object.assign(fi.prototype,{isBox3:!0,set:function(n,t){return this.min.copy(n),this.max.copy(t),this},setFromArray:function(n){for(var f=Infinity,e=Infinity,o=Infinity,s=-Infinity,h=-Infinity,c=-Infinity,t=0,l=n.length;t<l;t+=3){var i=n[t],r=n[t+1],u=n[t+2];i<f&&(f=i);r<e&&(e=r);u<o&&(o=u);i>s&&(s=i);r>h&&(h=r);u>c&&(c=u)}return this.min.set(f,e,o),this.max.set(s,h,c),this},setFromBufferAttribute:function(n){for(var f=Infinity,e=Infinity,o=Infinity,s=-Infinity,h=-Infinity,c=-Infinity,t=0,l=n.count;t<l;t++){var i=n.getX(t),r=n.getY(t),u=n.getZ(t);i<f&&(f=i);r<e&&(e=r);u<o&&(o=u);i>s&&(s=i);r>h&&(h=r);u>c&&(c=u)}return this.min.set(f,e,o),this.max.set(s,h,c),this},setFromPoints:function(n){this.makeEmpty();for(var t=0,i=n.length;t<i;t++)this.expandByPoint(n[t]);return this},setFromCenterAndSize:function(){var n=new t;return function(t,i){return i=n.copy(i).multiplyScalar(.5),this.min.copy(t).sub(i),this.max.copy(t).add(i),this}}(),setFromObject:function(n){return this.makeEmpty(),this.expandByObject(n)},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.min.copy(n.min),this.max.copy(n.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=Infinity,this.max.x=this.max.y=this.max.z=-Infinity,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(n){return n=n||new t,this.isEmpty()?n.set(0,0,0):n.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(n){return n=n||new t,this.isEmpty()?n.set(0,0,0):n.subVectors(this.max,this.min)},expandByPoint:function(n){return this.min.min(n),this.max.max(n),this},expandByVector:function(n){return this.min.sub(n),this.max.add(n),this},expandByScalar:function(n){return this.min.addScalar(-n),this.max.addScalar(n),this},expandByObject:function(){var n=new t;return function(t){var i=this;return t.updateMatrixWorld(!0),t.traverse(function(t){var f,r=t.geometry,u;if(void 0!==r)if(r.isGeometry)for(u=r.vertices,r=0,f=u.length;r<f;r++)n.copy(u[r]),n.applyMatrix4(t.matrixWorld),i.expandByPoint(n);else if(r.isBufferGeometry&&(u=r.attributes.position,void 0!==u))for(r=0,f=u.count;r<f;r++)n.fromBufferAttribute(u,r).applyMatrix4(t.matrixWorld),i.expandByPoint(n)}),this}}(),containsPoint:function(n){return n.x<this.min.x||n.x>this.max.x||n.y<this.min.y||n.y>this.max.y||n.z<this.min.z||n.z>this.max.z?!1:!0},containsBox:function(n){return this.min.x<=n.min.x&&n.max.x<=this.max.x&&this.min.y<=n.min.y&&n.max.y<=this.max.y&&this.min.z<=n.min.z&&n.max.z<=this.max.z},getParameter:function(n,i){return(i||new t).set((n.x-this.min.x)/(this.max.x-this.min.x),(n.y-this.min.y)/(this.max.y-this.min.y),(n.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(n){return n.max.x<this.min.x||n.min.x>this.max.x||n.max.y<this.min.y||n.min.y>this.max.y||n.max.z<this.min.z||n.min.z>this.max.z?!1:!0},intersectsSphere:function(){var n=new t;return function(t){return this.clampPoint(t.center,n),n.distanceToSquared(t.center)<=t.radius*t.radius}}(),intersectsPlane:function(n){if(0<n.normal.x)var t=n.normal.x*this.min.x,i=n.normal.x*this.max.x;else t=n.normal.x*this.max.x,i=n.normal.x*this.min.x;return 0<n.normal.y?(t+=n.normal.y*this.min.y,i+=n.normal.y*this.max.y):(t+=n.normal.y*this.max.y,i+=n.normal.y*this.min.y),0<n.normal.z?(t+=n.normal.z*this.min.z,i+=n.normal.z*this.max.z):(t+=n.normal.z*this.max.z,i+=n.normal.z*this.min.z),t<=n.constant&&i>=n.constant},clampPoint:function(n,i){return(i||new t).copy(n).clamp(this.min,this.max)},distanceToPoint:function(){var n=new t;return function(t){return n.copy(t).clamp(this.min,this.max).sub(t).length()}}(),getBoundingSphere:function(){var n=new t;return function(t){return t=t||new pt,this.getCenter(t.center),t.radius=.5*this.getSize(n).length(),t}}(),intersect:function(n){return this.min.max(n.min),this.max.min(n.max),this.isEmpty()&&this.makeEmpty(),this},union:function(n){return this.min.min(n.min),this.max.max(n.max),this},applyMatrix4:function(){var n=[new t,new t,new t,new t,new t,new t,new t,new t];return function(t){return this.isEmpty()?this:(n[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),n[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),n[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),n[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),n[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),n[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),n[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),n[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(n),this)}}(),translate:function(n){return this.min.add(n),this.max.add(n),this},equals:function(n){return n.min.equals(this.min)&&n.max.equals(this.max)}});Object.assign(pt.prototype,{set:function(n,t){return this.center.copy(n),this.radius=t,this},setFromPoints:function(){var n=new fi;return function(t,i){var u=this.center,r,f;for(void 0!==i?u.copy(i):n.setFromPoints(t).getCenter(u),r=i=0,f=t.length;r<f;r++)i=Math.max(i,u.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.center.copy(n.center),this.radius=n.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(n){return n.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(n){return n.distanceTo(this.center)-this.radius},intersectsSphere:function(n){var t=this.radius+n.radius;return n.center.distanceToSquared(this.center)<=t*t},intersectsBox:function(n){return n.intersectsSphere(this)},intersectsPlane:function(n){return Math.abs(n.distanceToPoint(this.center))<=this.radius},clampPoint:function(n,i){var r=this.center.distanceToSquared(n);return i=i||new t,i.copy(n),r>this.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(n){return n=n||new fi,n.set(this.center,this.center),n.expandByScalar(this.radius),n},applyMatrix4:function(n){return this.center.applyMatrix4(n),this.radius*=n.getMaxScaleOnAxis(),this},translate:function(n){return this.center.add(n),this},equals:function(n){return n.center.equals(this.center)&&n.radius===this.radius}});Object.assign(wt.prototype,{isMatrix3:!0,set:function(n,t,i,r,u,f,e,o,s){var h=this.elements;return h[0]=n,h[1]=r,h[2]=e,h[3]=t,h[4]=u,h[5]=o,h[6]=i,h[7]=f,h[8]=s,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(n){var t=this.elements;return n=n.elements,t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this},setFromMatrix4:function(n){return n=n.elements,this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this},applyToBufferAttribute:function(){var n=new t;return function(t){for(var i=0,r=t.count;i<r;i++)n.x=t.getX(i),n.y=t.getY(i),n.z=t.getZ(i),n.applyMatrix3(this),t.setXYZ(i,n.x,n.y,n.z);return t}}(),multiply:function(n){return this.multiplyMatrices(this,n)},premultiply:function(n){return this.multiplyMatrices(n,this)},multiplyMatrices:function(n,t){var i=n.elements,r=t.elements;t=this.elements;n=i[0];var u=i[3],f=i[6],e=i[1],o=i[4],s=i[7],h=i[2],c=i[5],i=i[8],l=r[0],a=r[3],v=r[6],y=r[1],p=r[4],w=r[7],b=r[2],k=r[5],r=r[8];return t[0]=n*l+u*y+f*b,t[3]=n*a+u*p+f*k,t[6]=n*v+u*w+f*r,t[1]=e*l+o*y+s*b,t[4]=e*a+o*p+s*k,t[7]=e*v+o*w+s*r,t[2]=h*l+c*y+i*b,t[5]=h*a+c*p+i*k,t[8]=h*v+c*w+i*r,this},multiplyScalar:function(n){var t=this.elements;return t[0]*=n,t[3]*=n,t[6]*=n,t[1]*=n,t[4]*=n,t[7]*=n,t[2]*=n,t[5]*=n,t[8]*=n,this},determinant:function(){var n=this.elements,t=n[0],i=n[1],r=n[2],u=n[3],f=n[4],e=n[5],o=n[6],s=n[7],n=n[8];return t*f*n-t*e*s-i*u*n+i*e*o+r*u*s-r*f*o},getInverse:function(n,t){var i;n&&n.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");i=n.elements;n=this.elements;var r=i[0],u=i[1],f=i[2],e=i[3],o=i[4],s=i[5],h=i[6],c=i[7],i=i[8],l=i*o-s*c,a=s*h-i*e,v=c*e-o*h,y=r*l+u*a+f*v;if(0===y){if(!0===t)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return t=1/y,n[0]=l*t,n[1]=(f*c-i*u)*t,n[2]=(s*u-f*o)*t,n[3]=a*t,n[4]=(i*r-f*h)*t,n[5]=(f*e-s*r)*t,n[6]=v*t,n[7]=(u*h-c*r)*t,n[8]=(o*r-u*e)*t,this},transpose:function(){var n=this.elements,t=n[1];return n[1]=n[3],n[3]=t,t=n[2],n[2]=n[6],n[6]=t,t=n[5],n[5]=n[7],n[7]=t,this},getNormalMatrix:function(n){return this.setFromMatrix4(n).getInverse(this).transpose()},transposeIntoArray:function(n){var t=this.elements;return n[0]=t[0],n[1]=t[3],n[2]=t[6],n[3]=t[1],n[4]=t[4],n[5]=t[7],n[6]=t[2],n[7]=t[5],n[8]=t[8],this},equals:function(n){var i=this.elements,t;for(n=n.elements,t=0;9>t;t++)if(i[t]!==n[t])return!1;return!0},fromArray:function(n,t){void 0===t&&(t=0);for(var i=0;9>i;i++)this.elements[i]=n[i+t];return this},toArray:function(n,t){void 0===n&&(n=[]);void 0===t&&(t=0);var i=this.elements;return n[t]=i[0],n[t+1]=i[1],n[t+2]=i[2],n[t+3]=i[3],n[t+4]=i[4],n[t+5]=i[5],n[t+6]=i[6],n[t+7]=i[7],n[t+8]=i[8],n}});Object.assign(lt.prototype,{set:function(n,t){return this.normal.copy(n),this.constant=t,this},setComponents:function(n,t,i,r){return this.normal.set(n,t,i),this.constant=r,this},setFromNormalAndCoplanarPoint:function(n,t){return this.normal.copy(n),this.constant=-t.dot(this.normal),this},setFromCoplanarPoints:function(){var n=new t,i=new t;return function(t,r,u){return r=n.subVectors(u,r).cross(i.subVectors(t,r)).normalize(),this.setFromNormalAndCoplanarPoint(r,t),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.normal.copy(n.normal),this.constant=n.constant,this},normalize:function(){var n=1/this.normal.length();return this.normal.multiplyScalar(n),this.constant*=n,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(n){return this.normal.dot(n)+this.constant},distanceToSphere:function(n){return this.distanceToPoint(n.center)-n.radius},projectPoint:function(n,i){return(i||new t).copy(this.normal).multiplyScalar(-this.distanceToPoint(n)).add(n)},intersectLine:function(){var n=new t;return function(i,r){r=r||new t;var f=i.delta(n),u=this.normal.dot(f);if(0===u){if(0===this.distanceToPoint(i.start))return r.copy(i.start)}else if(u=-(i.start.dot(this.normal)+this.constant)/u,!(0>u||1<u))return r.copy(f).multiplyScalar(u).add(i.start)}}(),intersectsLine:function(n){var t=this.distanceToPoint(n.start);return n=this.distanceToPoint(n.end),0>t&&0<n||0>n&&0<t},intersectsBox:function(n){return n.intersectsPlane(this)},intersectsSphere:function(n){return n.intersectsPlane(this)},coplanarPoint:function(n){return(n||new t).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var n=new t,i=new wt;return function(t,r){return r=r||i.getNormalMatrix(t),t=this.coplanarPoint(n).applyMatrix4(t),r=this.normal.applyMatrix3(r).normalize(),this.constant=-t.dot(r),this}}(),translate:function(n){return this.constant-=n.dot(this.normal),this},equals:function(n){return n.normal.equals(this.normal)&&n.constant===this.constant}});Object.assign(es.prototype,{set:function(n,t,i,r,u,f){var e=this.planes;return e[0].copy(n),e[1].copy(t),e[2].copy(i),e[3].copy(r),e[4].copy(u),e[5].copy(f),this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){for(var i=this.planes,t=0;6>t;t++)i[t].copy(n.planes[t]);return this},setFromMatrix:function(n){var i=this.planes,t=n.elements;n=t[0];var e=t[1],o=t[2],r=t[3],s=t[4],h=t[5],c=t[6],u=t[7],l=t[8],a=t[9],v=t[10],f=t[11],y=t[12],p=t[13],w=t[14],t=t[15];return i[0].setComponents(r-n,u-s,f-l,t-y).normalize(),i[1].setComponents(r+n,u+s,f+l,t+y).normalize(),i[2].setComponents(r+e,u+h,f+a,t+p).normalize(),i[3].setComponents(r-e,u-h,f-a,t-p).normalize(),i[4].setComponents(r-o,u-c,f-v,t-w).normalize(),i[5].setComponents(r+o,u+c,f+v,t+w).normalize(),this},intersectsObject:function(){var n=new pt;return function(t){var i=t.geometry;return null===i.boundingSphere&&i.computeBoundingSphere(),n.copy(i.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(n)}}(),intersectsSprite:function(){var n=new pt;return function(t){return n.center.set(0,0,0),n.radius=.70710678118654757,n.applyMatrix4(t.matrixWorld),this.intersectsSphere(n)}}(),intersectsSphere:function(n){var i=this.planes,r=n.center,t;for(n=-n.radius,t=0;6>t;t++)if(i[t].distanceToPoint(r)<n)return!1;return!0},intersectsBox:function(){var n=new t,i=new t;return function(t){for(var f,r,e=this.planes,u=0;6>u;u++)if(r=e[u],n.x=0<r.normal.x?t.min.x:t.max.x,i.x=0<r.normal.x?t.max.x:t.min.x,n.y=0<r.normal.y?t.min.y:t.max.y,i.y=0<r.normal.y?t.max.y:t.min.y,n.z=0<r.normal.z?t.min.z:t.max.z,i.z=0<r.normal.z?t.max.z:t.min.z,f=r.distanceToPoint(n),r=r.distanceToPoint(i),0>f&&0>r)return!1;return!0}}(),containsPoint:function(n){for(var i=this.planes,t=0;6>t;t++)if(0>i[t].distanceToPoint(n))return!1;return!0}});yi.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" ");yi.DefaultOrder="XYZ";Object.defineProperties(yi.prototype,{x:{get:function(){return this._x},set:function(n){this._x=n;this.onChangeCallback()}},y:{get:function(){return this._y},set:function(n){this._y=n;this.onChangeCallback()}},z:{get:function(){return this._z},set:function(n){this._z=n;this.onChangeCallback()}},order:{get:function(){return this._order},set:function(n){this._order=n;this.onChangeCallback()}}});Object.assign(yi.prototype,{isEuler:!0,set:function(n,t,i,r){return this._x=n,this._y=t,this._z=i,this._order=r||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(n){return this._x=n._x,this._y=n._y,this._z=n._z,this._order=n._order,this.onChangeCallback(),this},setFromRotationMatrix:function(n,t,i){var u=l.clamp,r=n.elements;n=r[0];var e=r[4],o=r[8],s=r[1],f=r[5],h=r[9],c=r[2],a=r[6],r=r[10];return t=t||this._order,"XYZ"===t?(this._y=Math.asin(u(o,-1,1)),.99999>Math.abs(o)?(this._x=Math.atan2(-h,r),this._z=Math.atan2(-e,n)):(this._x=Math.atan2(a,f),this._z=0)):"YXZ"===t?(this._x=Math.asin(-u(h,-1,1)),.99999>Math.abs(h)?(this._y=Math.atan2(o,r),this._z=Math.atan2(s,f)):(this._y=Math.atan2(-c,n),this._z=0)):"ZXY"===t?(this._x=Math.asin(u(a,-1,1)),.99999>Math.abs(a)?(this._y=Math.atan2(-c,r),this._z=Math.atan2(-e,f)):(this._y=0,this._z=Math.atan2(s,n))):"ZYX"===t?(this._y=Math.asin(-u(c,-1,1)),.99999>Math.abs(c)?(this._x=Math.atan2(a,r),this._z=Math.atan2(s,n)):(this._x=0,this._z=Math.atan2(-e,f))):"YZX"===t?(this._z=Math.asin(u(s,-1,1)),.99999>Math.abs(s)?(this._x=Math.atan2(-h,f),this._y=Math.atan2(-c,n)):(this._x=0,this._y=Math.atan2(o,r))):"XZY"===t?(this._z=Math.asin(-u(e,-1,1)),.99999>Math.abs(e)?(this._x=Math.atan2(a,f),this._y=Math.atan2(o,n)):(this._x=Math.atan2(-h,r),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+t),this._order=t,!1!==i&&this.onChangeCallback(),this},setFromQuaternion:function(){var n=new s;return function(t,i,r){return n.makeRotationFromQuaternion(t),this.setFromRotationMatrix(n,i,r)}}(),setFromVector3:function(n,t){return this.set(n.x,n.y,n.z,t||this._order)},reorder:function(){var n=new d;return function(t){return n.setFromEuler(this),this.setFromQuaternion(n,t)}}(),equals:function(n){return n._x===this._x&&n._y===this._y&&n._z===this._z&&n._order===this._order},fromArray:function(n){return this._x=n[0],this._y=n[1],this._z=n[2],void 0!==n[3]&&(this._order=n[3]),this.onChangeCallback(),this},toArray:function(n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),n[t]=this._x,n[t+1]=this._y,n[t+2]=this._z,n[t+3]=this._order,n},toVector3:function(n){return n?n.set(this._x,this._y,this._z):new t(this._x,this._y,this._z)},onChange:function(n){return this.onChangeCallback=n,this},onChangeCallback:function(){}});Object.assign(dh.prototype,{set:function(n){this.mask=1<<n|0},enable:function(n){this.mask=this.mask|1<<n|0},toggle:function(n){this.mask^=1<<n|0},disable:function(n){this.mask&=~(1<<n|0)},test:function(n){return 0!=(this.mask&n.mask)}});ka=0;u.DefaultUp=new t(0,1,0);u.DefaultMatrixAutoUpdate=!0;Object.assign(u.prototype,ui.prototype,{isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(n){this.matrix.multiplyMatrices(n,this.matrix);this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(n){return this.quaternion.premultiply(n),this},setRotationFromAxisAngle:function(n,t){this.quaternion.setFromAxisAngle(n,t)},setRotationFromEuler:function(n){this.quaternion.setFromEuler(n,!0)},setRotationFromMatrix:function(n){this.quaternion.setFromRotationMatrix(n)},setRotationFromQuaternion:function(n){this.quaternion.copy(n)},rotateOnAxis:function(){var n=new d;return function(t,i){return n.setFromAxisAngle(t,i),this.quaternion.multiply(n),this}}(),rotateX:function(){var n=new t(1,0,0);return function(t){return this.rotateOnAxis(n,t)}}(),rotateY:function(){var n=new t(0,1,0);return function(t){return this.rotateOnAxis(n,t)}}(),rotateZ:function(){var n=new t(0,0,1);return function(t){return this.rotateOnAxis(n,t)}}(),translateOnAxis:function(){var n=new t;return function(t,i){return n.copy(t).applyQuaternion(this.quaternion),this.position.add(n.multiplyScalar(i)),this}}(),translateX:function(){var n=new t(1,0,0);return function(t){return this.translateOnAxis(n,t)}}(),translateY:function(){var n=new t(0,1,0);return function(t){return this.translateOnAxis(n,t)}}(),translateZ:function(){var n=new t(0,0,1);return function(t){return this.translateOnAxis(n,t)}}(),localToWorld:function(n){return n.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var n=new s;return function(t){return t.applyMatrix4(n.getInverse(this.matrixWorld))}}(),lookAt:function(){var n=new s;return function(t){this.isCamera?n.lookAt(this.position,t,this.up):n.lookAt(t,this.position,this.up);this.quaternion.setFromRotationMatrix(n)}}(),add:function(n){if(1<arguments.length){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return n===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",n),this):(n&&n.isObject3D?(null!==n.parent&&n.parent.remove(n),n.parent=this,n.dispatchEvent({type:"added"}),this.children.push(n)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",n),this)},remove:function(n){if(1<arguments.length){for(var t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}return t=this.children.indexOf(n),-1!==t&&(n.parent=null,n.dispatchEvent({type:"removed"}),this.children.splice(t,1)),this},getObjectById:function(n){return this.getObjectByProperty("id",n)},getObjectByName:function(n){return this.getObjectByProperty("name",n)},getObjectByProperty:function(n,t){var i,u,r;if(this[n]===t)return this;for(i=0,u=this.children.length;i<u;i++)if(r=this.children[i].getObjectByProperty(n,t),void 0!==r)return r},getWorldPosition:function(n){return n=n||new t,this.updateMatrixWorld(!0),n.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var n=new t,i=new t;return function(t){return t=t||new d,this.updateMatrixWorld(!0),this.matrixWorld.decompose(n,t,i),t}}(),getWorldRotation:function(){var n=new d;return function(t){return t=t||new yi,this.getWorldQuaternion(n),t.setFromQuaternion(n,this.rotation.order,!1)}}(),getWorldScale:function(){var n=new t,i=new d;return function(r){return r=r||new t,this.updateMatrixWorld(!0),this.matrixWorld.decompose(n,i,r),r}}(),getWorldDirection:function(){var n=new d;return function(i){return i=i||new t,this.getWorldQuaternion(n),i.set(0,0,1).applyQuaternion(n)}}(),raycast:function(){},traverse:function(n){n(this);for(var i=this.children,t=0,r=i.length;t<r;t++)i[t].traverse(n)},traverseVisible:function(n){if(!1!==this.visible){n(this);for(var i=this.children,t=0,r=i.length;t<r;t++)i[t].traverseVisible(n)}},traverseAncestors:function(n){var t=this.parent;null!==t&&(n(t),t.traverseAncestors(n))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale);this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(n){this.matrixAutoUpdate&&this.updateMatrix();(this.matrixWorldNeedsUpdate||n)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,n=!0);for(var i=this.children,t=0,r=i.length;t<r;t++)i[t].updateMatrixWorld(n)},toJSON:function(n){function s(t,i){return void 0===t[i.uuid]&&(t[i.uuid]=i.toJSON(n)),i.uuid}function e(n){var i=[],r,t;for(r in n)t=n[r],delete t.metadata,i.push(t);return i}var u=void 0===n||""===n,r={},t;if(u&&(n={geometries:{},materials:{},textures:{},images:{}},r.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"}),t={},t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),"{}"!==JSON.stringify(this.userData)&&(t.userData=this.userData),!0===this.castShadow&&(t.castShadow=!0),!0===this.receiveShadow&&(t.receiveShadow=!0),!1===this.visible&&(t.visible=!1),t.matrix=this.matrix.toArray(),void 0!==this.geometry&&(t.geometry=s(n.geometries,this.geometry)),void 0!==this.material)if(Array.isArray(this.material)){for(var f=[],i=0,o=this.material.length;i<o;i++)f.push(s(n.materials,this.material[i]));t.material=f}else t.material=s(n.materials,this.material);if(0<this.children.length)for(t.children=[],i=0;i<this.children.length;i++)t.children.push(this.children[i].toJSON(n).object);return u&&(u=e(n.geometries),f=e(n.materials),i=e(n.textures),o=e(n.images),0<u.length&&(r.geometries=u),0<f.length&&(r.materials=f),0<i.length&&(r.textures=i),0<o.length&&(r.images=o)),r.object=t,r},clone:function(n){return(new this.constructor).copy(this,n)},copy:function(n,t){if(void 0===t&&(t=!0),this.name=n.name,this.up.copy(n.up),this.position.copy(n.position),this.quaternion.copy(n.quaternion),this.scale.copy(n.scale),this.matrix.copy(n.matrix),this.matrixWorld.copy(n.matrixWorld),this.matrixAutoUpdate=n.matrixAutoUpdate,this.matrixWorldNeedsUpdate=n.matrixWorldNeedsUpdate,this.layers.mask=n.layers.mask,this.visible=n.visible,this.castShadow=n.castShadow,this.receiveShadow=n.receiveShadow,this.frustumCulled=n.frustumCulled,this.renderOrder=n.renderOrder,this.userData=JSON.parse(JSON.stringify(n.userData)),!0===t)for(t=0;t<n.children.length;t++)this.add(n.children[t].clone());return this}});ti.prototype=Object.assign(Object.create(u.prototype),{constructor:ti,isCamera:!0,copy:function(n,t){return u.prototype.copy.call(this,n,t),this.matrixWorldInverse.copy(n.matrixWorldInverse),this.projectionMatrix.copy(n.projectionMatrix),this},getWorldDirection:function(){var n=new d;return function(i){return i=i||new t,this.getWorldQuaternion(n),i.set(0,0,-1).applyQuaternion(n)}}(),updateMatrixWorld:function(n){u.prototype.updateMatrixWorld.call(this,n);this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}});ru.prototype=Object.assign(Object.create(ti.prototype),{constructor:ru,isOrthographicCamera:!0,copy:function(n,t){return ti.prototype.copy.call(this,n,t),this.left=n.left,this.right=n.right,this.top=n.top,this.bottom=n.bottom,this.near=n.near,this.far=n.far,this.zoom=n.zoom,this.view=null===n.view?null:Object.assign({},n.view),this},setViewOffset:function(n,t,i,r,u,f){this.view={fullWidth:n,fullHeight:t,offsetX:i,offsetY:r,width:u,height:f};this.updateProjectionMatrix()},clearViewOffset:function(){this.view=null;this.updateProjectionMatrix()},updateProjectionMatrix:function(){var i=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),t=(this.right+this.left)/2,r=(this.top+this.bottom)/2,u=t-i,t=t+i,i=r+n,n=r-n;if(null!==this.view)var t=this.zoom/(this.view.width/this.view.fullWidth),n=this.zoom/(this.view.height/this.view.fullHeight),f=(this.right-this.left)/this.view.width,r=(this.top-this.bottom)/this.view.height,u=u+this.view.offsetX/t*f,t=u+this.view.width/t*f,i=i-this.view.offsetY/n*r,n=i-this.view.height/n*r;this.projectionMatrix.makeOrthographic(u,t,i,n,this.near,this.far)},toJSON:function(n){return n=u.prototype.toJSON.call(this,n),n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,null!==this.view&&(n.object.view=Object.assign({},this.view)),n}});g.prototype=Object.assign(Object.create(ti.prototype),{constructor:g,isPerspectiveCamera:!0,copy:function(n,t){return ti.prototype.copy.call(this,n,t),this.fov=n.fov,this.zoom=n.zoom,this.near=n.near,this.far=n.far,this.focus=n.focus,this.aspect=n.aspect,this.view=null===n.view?null:Object.assign({},n.view),this.filmGauge=n.filmGauge,this.filmOffset=n.filmOffset,this},setFocalLength:function(n){n=.5*this.getFilmHeight()/n;this.fov=2*l.RAD2DEG*Math.atan(n);this.updateProjectionMatrix()},getFocalLength:function(){var n=Math.tan(.5*l.DEG2RAD*this.fov);return.5*this.getFilmHeight()/n},getEffectiveFOV:function(){return 2*l.RAD2DEG*Math.atan(Math.tan(.5*l.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(n,t,i,r,u,f){this.aspect=n/t;this.view={fullWidth:n,fullHeight:t,offsetX:i,offsetY:r,width:u,height:f};this.updateProjectionMatrix()},clearViewOffset:function(){this.view=null;this.updateProjectionMatrix()},updateProjectionMatrix:function(){var f=this.near,t=f*Math.tan(.5*l.DEG2RAD*this.fov)/this.zoom,i=2*t,r=this.aspect*i,u=-.5*r,n=this.view;if(null!==n)var e=n.fullWidth,o=n.fullHeight,u=u+n.offsetX*r/e,t=t-n.offsetY*i/o,r=n.width/e*r,i=n.height/o*i;n=this.filmOffset;0!==n&&(u+=f*n/this.getFilmWidth());this.projectionMatrix.makePerspective(u,u+r,t,t-i,f,this.far)},toJSON:function(n){return n=u.prototype.toJSON.call(this,n),n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,null!==this.view&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}});Object.assign(ei.prototype,{clone:function(){return(new this.constructor).copy(this)},copy:function(n){this.a=n.a;this.b=n.b;this.c=n.c;this.normal.copy(n.normal);this.color.copy(n.color);this.materialIndex=n.materialIndex;for(var t=0,i=n.vertexNormals.length;t<i;t++)this.vertexNormals[t]=n.vertexNormals[t].clone();for(t=0,i=n.vertexColors.length;t<i;t++)this.vertexColors[t]=n.vertexColors[t].clone();return this}});vh=0;Object.assign(h.prototype,ui.prototype,{isGeometry:!0,applyMatrix:function(n){for(var i,u,f=(new wt).getNormalMatrix(n),t=0,r=this.vertices.length;t<r;t++)this.vertices[t].applyMatrix4(n);for(t=0,r=this.faces.length;t<r;t++)for(n=this.faces[t],n.normal.applyMatrix3(f).normalize(),i=0,u=n.vertexNormals.length;i<u;i++)n.vertexNormals[i].applyMatrix3(f).normalize();return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var n=new s;return function(t){return n.makeRotationX(t),this.applyMatrix(n),this}}(),rotateY:function(){var n=new s;return function(t){return n.makeRotationY(t),this.applyMatrix(n),this}}(),rotateZ:function(){var n=new s;return function(t){return n.makeRotationZ(t),this.applyMatrix(n),this}}(),translate:function(){var n=new s;return function(t,i,r){return n.makeTranslation(t,i,r),this.applyMatrix(n),this}}(),scale:function(){var n=new s;return function(t,i,r){return n.makeScale(t,i,r),this.applyMatrix(n),this}}(),lookAt:function(){var n=new u;return function(t){n.lookAt(t);n.updateMatrix();this.applyMatrix(n.matrix)}}(),fromBufferGeometry:function(n){function a(n,t,i,r){var u=void 0!==h?[p[n].clone(),p[t].clone(),p[i].clone()]:[],f=void 0!==c?[s.colors[n].clone(),s.colors[t].clone(),s.colors[i].clone()]:[];r=new ei(n,t,i,u,f,r);s.faces.push(r);void 0!==v&&s.faceVertexUvs[0].push([w[n].clone(),w[t].clone(),w[i].clone()]);void 0!==l&&s.faceVertexUvs[1].push([b[n].clone(),b[t].clone(),b[i].clone()])}var s=this,o=null!==n.index?n.index.array:void 0,r=n.attributes,f=r.position.array,h=void 0!==r.normal?r.normal.array:void 0,c=void 0!==r.color?r.color.array:void 0,v=void 0!==r.uv?r.uv.array:void 0,l=void 0!==r.uv2?r.uv2.array:void 0,y;void 0!==l&&(this.faceVertexUvs[1]=[]);for(var p=[],w=[],b=[],u=r=0;r<f.length;r+=3,u+=2)s.vertices.push(new t(f[r],f[r+1],f[r+2])),void 0!==h&&p.push(new t(h[r],h[r+1],h[r+2])),void 0!==c&&s.colors.push(new e(c[r],c[r+1],c[r+2])),void 0!==v&&w.push(new i(v[u],v[u+1])),void 0!==l&&b.push(new i(l[u],l[u+1]));if(y=n.groups,0<y.length)for(r=0;r<y.length;r++)for(var f=y[r],k=f.start,d=f.count,u=k,k=k+d;u<k;u+=3)void 0!==o?a(o[u],o[u+1],o[u+2],f.materialIndex):a(u,u+1,u+2,f.materialIndex);else if(void 0!==o)for(r=0;r<o.length;r+=3)a(o[r],o[r+1],o[r+2]);else for(r=0;r<f.length/3;r+=3)a(r,r+1,r+2);return this.computeFaceNormals(),null!==n.boundingBox&&(this.boundingBox=n.boundingBox.clone()),null!==n.boundingSphere&&(this.boundingSphere=n.boundingSphere.clone()),this},center:function(){this.computeBoundingBox();var n=this.boundingBox.getCenter().negate();return this.translate(n.x,n.y,n.z),n},normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,n=this.boundingSphere.radius,n=0===n?1:1/n,i=new s;return i.set(n,0,0,-n*t.x,0,n,0,-n*t.y,0,0,n,-n*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var n=new t,u=new t,r=0,e=this.faces.length;r<e;r++){var i=this.faces[r],o=this.vertices[i.a],f=this.vertices[i.b];n.subVectors(this.vertices[i.c],f);u.subVectors(o,f);n.cross(u);n.normalize();i.normal.copy(n)}},computeVertexNormals:function(n){var i,r,u,e,o;for(void 0===n&&(n=!0),r=Array(this.vertices.length),u=0,i=this.vertices.length;u<i;u++)r[u]=new t;if(n)for(e=new t,o=new t,n=0,u=this.faces.length;n<u;n++){i=this.faces[n];var f=this.vertices[i.a],s=this.vertices[i.b],h=this.vertices[i.c];e.subVectors(h,s);o.subVectors(f,s);e.cross(o);r[i.a].add(e);r[i.b].add(e);r[i.c].add(e)}else for(this.computeFaceNormals(),n=0,u=this.faces.length;n<u;n++)i=this.faces[n],r[i.a].add(i.normal),r[i.b].add(i.normal),r[i.c].add(i.normal);for(u=0,i=this.vertices.length;u<i;u++)r[u].normalize();for(n=0,u=this.faces.length;n<u;n++)i=this.faces[n],f=i.vertexNormals,3===f.length?(f[0].copy(r[i.a]),f[1].copy(r[i.b]),f[2].copy(r[i.c])):(f[0]=r[i.a].clone(),f[1]=r[i.b].clone(),f[2]=r[i.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var r,i,n,t;for(this.computeFaceNormals(),i=0,r=this.faces.length;i<r;i++)n=this.faces[i],t=n.vertexNormals,3===t.length?(t[0].copy(n.normal),t[1].copy(n.normal),t[2].copy(n.normal)):(t[0]=n.normal.clone(),t[1]=n.normal.clone(),t[2]=n.normal.clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){for(var s,r=0,n,i,e,o,c,f,u=this.faces.length;r<u;r++)for(n=this.faces[r],n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]),i=0,s=n.vertexNormals.length;i<s;i++)n.__originalVertexNormals[i]?n.__originalVertexNormals[i].copy(n.vertexNormals[i]):n.__originalVertexNormals[i]=n.vertexNormals[i].clone();for(e=new h,e.faces=this.faces,i=0,s=this.morphTargets.length;i<s;i++){if(!this.morphNormals[i])for(this.morphNormals[i]={},this.morphNormals[i].faceNormals=[],this.morphNormals[i].vertexNormals=[],n=this.morphNormals[i].faceNormals,o=this.morphNormals[i].vertexNormals,r=0,u=this.faces.length;r<u;r++)c=new t,f={a:new t,b:new t,c:new t},n.push(c),o.push(f);for(o=this.morphNormals[i],e.vertices=this.morphTargets[i].vertices,e.computeFaceNormals(),e.computeVertexNormals(),r=0,u=this.faces.length;r<u;r++)n=this.faces[r],c=o.faceNormals[r],f=o.vertexNormals[r],c.copy(n.normal),f.a.copy(n.vertexNormals[0]),f.b.copy(n.vertexNormals[1]),f.c.copy(n.vertexNormals[2])}for(r=0,u=this.faces.length;r<u;r++)n=this.faces[r],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeLineDistances:function(){for(var i=0,t=this.vertices,n=0,r=t.length;n<r;n++)0<n&&(i+=t[n].distanceTo(t[n-1])),this.lineDistances[n]=i},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new fi);this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new pt);this.boundingSphere.setFromPoints(this.vertices)},merge:function(n,t,i){var f,e;if(n&&n.isGeometry){var o,c=this.vertices.length,s=this.vertices,r=n.vertices,y=this.faces,l=n.faces,p=this.faceVertexUvs[0],a=n.faceVertexUvs[0],u=this.colors,h=n.colors;for(void 0===i&&(i=0),void 0!==t&&(o=(new wt).getNormalMatrix(t)),n=0,f=r.length;n<f;n++)e=r[n].clone(),void 0!==t&&e.applyMatrix4(t),s.push(e);for(n=0,f=h.length;n<f;n++)u.push(h[n].clone());for(n=0,f=l.length;n<f;n++){var r=l[n],v=r.vertexNormals,h=r.vertexColors,u=new ei(r.a+c,r.b+c,r.c+c);for(u.normal.copy(r.normal),void 0!==o&&u.normal.applyMatrix3(o).normalize(),t=0,s=v.length;t<s;t++)e=v[t].clone(),void 0!==o&&e.applyMatrix3(o).normalize(),u.vertexNormals.push(e);for(u.color.copy(r.color),t=0,s=h.length;t<s;t++)e=h[t],u.vertexColors.push(e.clone());u.materialIndex=r.materialIndex+i;y.push(u)}for(n=0,f=a.length;n<f;n++)if(i=a[n],o=[],void 0!==i){for(t=0,s=i.length;t<s;t++)o.push(i[t].clone());p.push(o)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",n)},mergeMesh:function(n){n&&n.isMesh?(n.matrixAutoUpdate&&n.updateMatrix(),this.merge(n.geometry,n.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",n)},mergeVertices:function(){for(var u={},e=[],r=[],n=Math.pow(10,4),t=0,i,f=this.vertices.length;t<f;t++)i=this.vertices[t],i=Math.round(i.x*n)+"_"+Math.round(i.y*n)+"_"+Math.round(i.z*n),void 0===u[i]?(u[i]=t,e.push(this.vertices[t]),r[t]=e.length-1):r[t]=r[u[i]];for(u=[],t=0,f=this.faces.length;t<f;t++)for(n=this.faces[t],n.a=r[n.a],n.b=r[n.b],n.c=r[n.c],n=[n.a,n.b,n.c],i=0;3>i;i++)if(n[i]===n[(i+1)%3]){u.push(t);break}for(t=u.length-1;0<=t;t--)for(n=u[t],this.faces.splice(n,1),r=0,f=this.faceVertexUvs.length;r<f;r++)this.faceVertexUvs[r].splice(n,1);return t=this.vertices.length-e.length,this.vertices=e,t},sortFacesByMaterialIndex:function(){for(var r,u,t,i,o,f=this.faces,e=f.length,n=0;n<e;n++)f[n]._id=n;for(f.sort(function(n,t){return n.materialIndex-t.materialIndex}),r=this.faceVertexUvs[0],u=this.faceVertexUvs[1],r&&r.length===e&&(t=[]),u&&u.length===e&&(i=[]),n=0;n<e;n++)o=f[n]._id,t&&t.push(r[o]),i&&i.push(u[o]);t&&(this.faceVertexUvs[0]=t);i&&(this.faceVertexUvs[1]=i)},toJSON:function(){function f(n,t,i){return i?n|1<<t:n&~(1<<t)}function h(n){var t=n.x.toString()+n.y.toString()+n.z.toString();return void 0!==l[t]?l[t]:(l[t]=b.length/3,b.push(n.x,n.y,n.z),l[t])}function c(n){var t=n.r.toString()+n.g.toString()+n.b.toString();return void 0!==v[t]?v[t]:(v[t]=a.length,a.push(n.getHex()),v[t])}function w(n){var t=n.x.toString()+n.y.toString();return void 0!==p[t]?p[t]:(p[t]=y.length/2,y.push(n.x,n.y),p[t])}var u={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}},e,i,r;if(u.uuid=this.uuid,u.type=this.type,""!==this.name&&(u.name=this.name),void 0!==this.parameters){e=this.parameters;for(i in e)void 0!==e[i]&&(u[i]=e[i]);return u}for(e=[],i=0;i<this.vertices.length;i++)r=this.vertices[i],e.push(r.x,r.y,r.z);var r=[],b=[],l={},a=[],v={},y=[],p={};for(i=0;i<this.faces.length;i++){var n=this.faces[i],o=void 0!==this.faceVertexUvs[0][i],s=0<n.normal.length(),k=0<n.vertexNormals.length,d=1!==n.color.r||1!==n.color.g||1!==n.color.b,g=0<n.vertexColors.length,t=0,t=f(t,0,0),t=f(t,1,!0),t=f(t,2,!1),t=f(t,3,o),t=f(t,4,s),t=f(t,5,k),t=f(t,6,d),t=f(t,7,g);r.push(t);r.push(n.a,n.b,n.c);r.push(n.materialIndex);o&&(o=this.faceVertexUvs[0][i],r.push(w(o[0]),w(o[1]),w(o[2])));s&&r.push(h(n.normal));k&&(s=n.vertexNormals,r.push(h(s[0]),h(s[1]),h(s[2])));d&&r.push(c(n.color));g&&(n=n.vertexColors,r.push(c(n[0]),c(n[1]),c(n[2])))}return u.data={},u.data.vertices=e,u.data.normals=b,0<a.length&&(u.data.colors=a),0<y.length&&(u.data.uvs=[y]),u.data.faces=r,u},clone:function(){return(new h).copy(this)},copy:function(n){var u,e,f,i,t,o;for(this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=n.name,i=n.vertices,t=0,u=i.length;t<u;t++)this.vertices.push(i[t].clone());for(i=n.colors,t=0,u=i.length;t<u;t++)this.colors.push(i[t].clone());for(i=n.faces,t=0,u=i.length;t<u;t++)this.faces.push(i[t].clone());for(t=0,u=n.faceVertexUvs.length;t<u;t++)for(o=n.faceVertexUvs[t],void 0===this.faceVertexUvs[t]&&(this.faceVertexUvs[t]=[]),i=0,e=o.length;i<e;i++){var s=o[i],h=[],r=0;for(f=s.length;r<f;r++)h.push(s[r].clone());this.faceVertexUvs[t].push(h)}for(r=n.morphTargets,t=0,u=r.length;t<u;t++){if(f={},f.name=r[t].name,void 0!==r[t].vertices)for(f.vertices=[],i=0,e=r[t].vertices.length;i<e;i++)f.vertices.push(r[t].vertices[i].clone());if(void 0!==r[t].normals)for(f.normals=[],i=0,e=r[t].normals.length;i<e;i++)f.normals.push(r[t].normals[i].clone());this.morphTargets.push(f)}for(r=n.morphNormals,t=0,u=r.length;t<u;t++){if(f={},void 0!==r[t].vertexNormals)for(f.vertexNormals=[],i=0,e=r[t].vertexNormals.length;i<e;i++)o=r[t].vertexNormals[i],s={},s.a=o.a.clone(),s.b=o.b.clone(),s.c=o.c.clone(),f.vertexNormals.push(s);if(void 0!==r[t].faceNormals)for(f.faceNormals=[],i=0,e=r[t].faceNormals.length;i<e;i++)f.faceNormals.push(r[t].faceNormals[i].clone());this.morphNormals.push(f)}for(i=n.skinWeights,t=0,u=i.length;t<u;t++)this.skinWeights.push(i[t].clone());for(i=n.skinIndices,t=0,u=i.length;t<u;t++)this.skinIndices.push(i[t].clone());for(i=n.lineDistances,t=0,u=i.length;t<u;t++)this.lineDistances.push(i[t]);return t=n.boundingBox,null!==t&&(this.boundingBox=t.clone()),t=n.boundingSphere,null!==t&&(this.boundingSphere=t.clone()),this.elementsNeedUpdate=n.elementsNeedUpdate,this.verticesNeedUpdate=n.verticesNeedUpdate,this.uvsNeedUpdate=n.uvsNeedUpdate,this.normalsNeedUpdate=n.normalsNeedUpdate,this.colorsNeedUpdate=n.colorsNeedUpdate,this.lineDistancesNeedUpdate=n.lineDistancesNeedUpdate,this.groupsNeedUpdate=n.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});Object.defineProperty(c.prototype,"needsUpdate",{set:function(n){!0===n&&this.version++}});Object.assign(c.prototype,{isBufferAttribute:!0,setArray:function(n){if(Array.isArray(n))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.count=void 0!==n?n.length/this.itemSize:0;this.array=n},setDynamic:function(n){return this.dynamic=n,this},copy:function(n){return this.array=new n.array.constructor(n.array),this.itemSize=n.itemSize,this.count=n.count,this.normalized=n.normalized,this.dynamic=n.dynamic,this},copyAt:function(n,t,i){n*=this.itemSize;i*=t.itemSize;for(var r=0,u=this.itemSize;r<u;r++)this.array[n+r]=t.array[i+r];return this},copyArray:function(n){return this.array.set(n),this},copyColorsArray:function(n){for(var t,r=this.array,u=0,i=0,f=n.length;i<f;i++)t=n[i],void 0===t&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),t=new e),r[u++]=t.r,r[u++]=t.g,r[u++]=t.b;return this},copyIndicesArray:function(n){for(var t,i=this.array,r=0,u=0,f=n.length;u<f;u++)t=n[u],i[r++]=t.a,i[r++]=t.b,i[r++]=t.c;return this},copyVector2sArray:function(n){for(var t,u=this.array,f=0,r=0,e=n.length;r<e;r++)t=n[r],void 0===t&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),t=new i),u[f++]=t.x,u[f++]=t.y;return this},copyVector3sArray:function(n){for(var i,u=this.array,f=0,r=0,e=n.length;r<e;r++)i=n[r],void 0===i&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),i=new t),u[f++]=i.x,u[f++]=i.y,u[f++]=i.z;return this},copyVector4sArray:function(n){for(var t,i=this.array,r=0,u=0,f=n.length;u<f;u++)t=n[u],void 0===t&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",u),t=new y),i[r++]=t.x,i[r++]=t.y,i[r++]=t.z,i[r++]=t.w;return this},set:function(n,t){return void 0===t&&(t=0),this.array.set(n,t),this},getX:function(n){return this.array[n*this.itemSize]},setX:function(n,t){return this.array[n*this.itemSize]=t,this},getY:function(n){return this.array[n*this.itemSize+1]},setY:function(n,t){return this.array[n*this.itemSize+1]=t,this},getZ:function(n){return this.array[n*this.itemSize+2]},setZ:function(n,t){return this.array[n*this.itemSize+2]=t,this},getW:function(n){return this.array[n*this.itemSize+3]},setW:function(n,t){return this.array[n*this.itemSize+3]=t,this},setXY:function(n,t,i){return n*=this.itemSize,this.array[n+0]=t,this.array[n+1]=i,this},setXYZ:function(n,t,i,r){return n*=this.itemSize,this.array[n+0]=t,this.array[n+1]=i,this.array[n+2]=r,this},setXYZW:function(n,t,i,r,u){return n*=this.itemSize,this.array[n+0]=t,this.array[n+1]=i,this.array[n+2]=r,this.array[n+3]=u,this},onUpload:function(n){return this.onUploadCallback=n,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}});ne.prototype=Object.create(c.prototype);ne.prototype.constructor=ne;te.prototype=Object.create(c.prototype);te.prototype.constructor=te;ie.prototype=Object.create(c.prototype);ie.prototype.constructor=ie;re.prototype=Object.create(c.prototype);re.prototype.constructor=re;di.prototype=Object.create(c.prototype);di.prototype.constructor=di;ue.prototype=Object.create(c.prototype);ue.prototype.constructor=ue;gi.prototype=Object.create(c.prototype);gi.prototype.constructor=gi;r.prototype=Object.create(c.prototype);r.prototype.constructor=r;fe.prototype=Object.create(c.prototype);fe.prototype.constructor=fe;Object.assign(vl.prototype,{computeGroups:function(n){var r=[],u=void 0,i,f,t;for(n=n.faces,i=0;i<n.length;i++)f=n[i],f.materialIndex!==u&&(u=f.materialIndex,void 0!==t&&(t.count=3*i-t.start,r.push(t)),t={start:3*i,materialIndex:u});void 0!==t&&(t.count=3*i-t.start,r.push(t));this.groups=r},fromGeometry:function(n){var p=n.faces,o=n.vertices,e=n.faceVertexUvs,b=e[0]&&0<e[0].length,k=e[1]&&0<e[1].length,w=n.morphTargets,v=w.length,s,r,y,h,c,u,t,f;if(0<v){for(s=[],r=0;r<v;r++)s[r]=[];this.morphTargets.position=s}if(y=n.morphNormals,h=y.length,0<h){for(c=[],r=0;r<h;r++)c[r]=[];this.morphTargets.normal=c}for(var l=n.skinIndices,a=n.skinWeights,d=l.length===o.length,g=a.length===o.length,r=0;r<p.length;r++){for(u=p[r],this.vertices.push(o[u.a],o[u.b],o[u.c]),t=u.vertexNormals,3===t.length?this.normals.push(t[0],t[1],t[2]):(t=u.normal,this.normals.push(t,t,t)),t=u.vertexColors,3===t.length?this.colors.push(t[0],t[1],t[2]):(t=u.color,this.colors.push(t,t,t)),!0===b&&(t=e[0][r],void 0!==t?this.uvs.push(t[0],t[1],t[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",r),this.uvs.push(new i,new i,new i))),!0===k&&(t=e[1][r],void 0!==t?this.uvs2.push(t[0],t[1],t[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",r),this.uvs2.push(new i,new i,new i))),t=0;t<v;t++)f=w[t].vertices,s[t].push(f[u.a],f[u.b],f[u.c]);for(t=0;t<h;t++)f=y[t].vertexNormals[r],c[t].push(f.a,f.b,f.c);d&&this.skinIndices.push(l[u.a],l[u.b],l[u.c]);g&&this.skinWeights.push(a[u.a],a[u.b],a[u.c])}return this.computeGroups(n),this.verticesNeedUpdate=n.verticesNeedUpdate,this.normalsNeedUpdate=n.normalsNeedUpdate,this.colorsNeedUpdate=n.colorsNeedUpdate,this.uvsNeedUpdate=n.uvsNeedUpdate,this.groupsNeedUpdate=n.groupsNeedUpdate,this}});f.MaxIndex=65535;Object.assign(f.prototype,ui.prototype,{isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(n){this.index=Array.isArray(n)?new(65535<gh(n)?gi:di)(n,1):n},addAttribute:function(n,t,i){if(t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute)if("index"===n)console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t);else return this.attributes[n]=t,this;else console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(n,new c(t,i))},getAttribute:function(n){return this.attributes[n]},removeAttribute:function(n){return delete this.attributes[n],this},addGroup:function(n,t,i){this.groups.push({start:n,count:t,materialIndex:void 0!==i?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(n,t){this.drawRange.start=n;this.drawRange.count=t},applyMatrix:function(n){var t=this.attributes.position;return void 0!==t&&(n.applyToBufferAttribute(t),t.needsUpdate=!0),t=this.attributes.normal,void 0!==t&&((new wt).getNormalMatrix(n).applyToBufferAttribute(t),t.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var n=new s;return function(t){return n.makeRotationX(t),this.applyMatrix(n),this}}(),rotateY:function(){var n=new s;return function(t){return n.makeRotationY(t),this.applyMatrix(n),this}}(),rotateZ:function(){var n=new s;return function(t){return n.makeRotationZ(t),this.applyMatrix(n),this}}(),translate:function(){var n=new s;return function(t,i,r){return n.makeTranslation(t,i,r),this.applyMatrix(n),this}}(),scale:function(){var n=new s;return function(t,i,r){return n.makeScale(t,i,r),this.applyMatrix(n),this}}(),lookAt:function(){var n=new u;return function(t){n.lookAt(t);n.updateMatrix();this.applyMatrix(n.matrix)}}(),center:function(){this.computeBoundingBox();var n=this.boundingBox.getCenter().negate();return this.translate(n.x,n.y,n.z),n},setFromObject:function(n){var t=n.geometry,i;return n.isPoints||n.isLine?(n=new r(3*t.vertices.length,3),i=new r(3*t.colors.length,3),this.addAttribute("position",n.copyVector3sArray(t.vertices)),this.addAttribute("color",i.copyColorsArray(t.colors)),t.lineDistances&&t.lineDistances.length===t.vertices.length&&(n=new r(t.lineDistances.length,1),this.addAttribute("lineDistance",n.copyArray(t.lineDistances))),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone())):n.isMesh&&t&&t.isGeometry&&this.fromGeometry(t),this},updateFromObject:function(n){var t=n.geometry,i;if(n.isMesh){if(i=t.__directGeometry,!0===t.elementsNeedUpdate&&(i=void 0,t.elementsNeedUpdate=!1),void 0===i)return this.fromGeometry(t);i.verticesNeedUpdate=t.verticesNeedUpdate;i.normalsNeedUpdate=t.normalsNeedUpdate;i.colorsNeedUpdate=t.colorsNeedUpdate;i.uvsNeedUpdate=t.uvsNeedUpdate;i.groupsNeedUpdate=t.groupsNeedUpdate;t.verticesNeedUpdate=!1;t.normalsNeedUpdate=!1;t.colorsNeedUpdate=!1;t.uvsNeedUpdate=!1;t.groupsNeedUpdate=!1;t=i}return!0===t.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(t.vertices),i.needsUpdate=!0),t.verticesNeedUpdate=!1),!0===t.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(t.normals),i.needsUpdate=!0),t.normalsNeedUpdate=!1),!0===t.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(t.colors),i.needsUpdate=!0),t.colorsNeedUpdate=!1),t.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(t.uvs),i.needsUpdate=!0),t.uvsNeedUpdate=!1),t.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(t.lineDistances),i.needsUpdate=!0),t.lineDistancesNeedUpdate=!1),t.groupsNeedUpdate&&(t.computeGroups(n.geometry),this.groups=t.groups,t.groupsNeedUpdate=!1),this},fromGeometry:function(n){return n.__directGeometry=(new vl).fromGeometry(n),this.fromDirectGeometry(n.__directGeometry)},fromDirectGeometry:function(n){var t=new Float32Array(3*n.vertices.length),i,u,e;this.addAttribute("position",new c(t,3).copyVector3sArray(n.vertices));0<n.normals.length&&(t=new Float32Array(3*n.normals.length),this.addAttribute("normal",new c(t,3).copyVector3sArray(n.normals)));0<n.colors.length&&(t=new Float32Array(3*n.colors.length),this.addAttribute("color",new c(t,3).copyColorsArray(n.colors)));0<n.uvs.length&&(t=new Float32Array(2*n.uvs.length),this.addAttribute("uv",new c(t,2).copyVector2sArray(n.uvs)));0<n.uvs2.length&&(t=new Float32Array(2*n.uvs2.length),this.addAttribute("uv2",new c(t,2).copyVector2sArray(n.uvs2)));0<n.indices.length&&(t=new(65535<gh(n.indices)?Uint32Array:Uint16Array)(3*n.indices.length),this.setIndex(new c(t,1).copyIndicesArray(n.indices)));this.groups=n.groups;for(i in n.morphTargets){for(var t=[],o=n.morphTargets[i],f=0,s=o.length;f<s;f++)u=o[f],e=new r(3*u.length,3),t.push(e.copyVector3sArray(u));this.morphAttributes[i]=t}return 0<n.skinIndices.length&&(i=new r(4*n.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(n.skinIndices))),0<n.skinWeights.length&&(i=new r(4*n.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(n.skinWeights))),null!==n.boundingSphere&&(this.boundingSphere=n.boundingSphere.clone()),null!==n.boundingBox&&(this.boundingBox=n.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new fi);var n=this.attributes.position;void 0!==n?this.boundingBox.setFromBufferAttribute(n):this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var i=new fi,n=new t;return function(){var t,u;if(null===this.boundingSphere&&(this.boundingSphere=new pt),t=this.attributes.position,t){u=this.boundingSphere.center;i.setFromBufferAttribute(t);i.getCenter(u);for(var f=0,r=0,e=t.count;r<e;r++)n.x=t.getX(r),n.y=t.getY(r),n.z=t.getZ(r),f=Math.max(f,u.distanceToSquared(n));this.boundingSphere.radius=Math.sqrt(f);isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var f=this.index,s=this.attributes,b=this.groups,u,v,k,e,l,a;if(s.position){if(u=s.position.array,void 0===s.normal)this.addAttribute("normal",new c(new Float32Array(u.length),3));else for(var r=s.normal.array,n=0,o=r.length;n<o;n++)r[n]=0;var r=s.normal.array,y=new t,h=new t,p=new t,i=new t,w=new t;if(f)for(f=f.array,0===b.length&&this.addGroup(0,f.length),v=0,k=b.length;v<k;++v)for(n=b[v],o=n.start,e=n.count,n=o,o+=e;n<o;n+=3)e=3*f[n+0],l=3*f[n+1],a=3*f[n+2],y.fromArray(u,e),h.fromArray(u,l),p.fromArray(u,a),i.subVectors(p,h),w.subVectors(y,h),i.cross(w),r[e]+=i.x,r[e+1]+=i.y,r[e+2]+=i.z,r[l]+=i.x,r[l+1]+=i.y,r[l+2]+=i.z,r[a]+=i.x,r[a+1]+=i.y,r[a+2]+=i.z;else for(n=0,o=u.length;n<o;n+=9)y.fromArray(u,n),h.fromArray(u,n+3),p.fromArray(u,n+6),i.subVectors(p,h),w.subVectors(y,h),i.cross(w),r[n]=i.x,r[n+1]=i.y,r[n+2]=i.z,r[n+3]=i.x,r[n+4]=i.y,r[n+5]=i.z,r[n+6]=i.x,r[n+7]=i.y,r[n+8]=i.z;this.normalizeNormals();s.normal.needsUpdate=!0}},merge:function(n,t){var u,r;if(n&&n.isBufferGeometry){void 0===t&&(t=0);u=this.attributes;for(r in u)if(void 0!==n.attributes[r])for(var o=u[r].array,i=n.attributes[r],e=i.array,f=0,i=i.itemSize*t;f<e.length;f++,i++)o[i]=e[f];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",n)},normalizeNormals:function(){var n=new t;return function(){for(var i=this.attributes.normal,t=0,r=i.count;t<r;t++)n.x=i.getX(t),n.y=i.getY(t),n.z=i.getZ(t),n.normalize(),i.setXYZ(t,n.x,n.y,n.z)}}(),toNonIndexed:function(){var t;if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var e=new f,i=this.index.array,o=this.attributes,r;for(r in o){for(var n=o[r],s=n.array,n=n.itemSize,h=new s.constructor(i.length*n),l,a=0,u=0,v=i.length;u<v;u++)for(l=i[u]*n,t=0;t<n;t++)h[a++]=s[l++];e.addAttribute(r,new c(h,n))}return e},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}},i,n,r,u;if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),void 0!==this.parameters){i=this.parameters;for(n in i)void 0!==i[n]&&(t[n]=i[n]);return t}t.data={attributes:{}};r=this.index;null!==r&&(i=Array.prototype.slice.call(r.array),t.data.index={type:r.array.constructor.name,array:i});r=this.attributes;for(n in r)u=r[n],i=Array.prototype.slice.call(u.array),t.data.attributes[n]={itemSize:u.itemSize,type:u.array.constructor.name,array:i,normalized:u.normalized};return n=this.groups,0<n.length&&(t.data.groups=JSON.parse(JSON.stringify(n))),n=this.boundingSphere,null!==n&&(t.data.boundingSphere={center:n.center.toArray(),radius:n.radius}),t},clone:function(){return(new f).copy(this)},copy:function(n){var u,i,r,f,e,t;this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;this.name=n.name;i=n.index;null!==i&&this.setIndex(i.clone());i=n.attributes;for(t in i)this.addAttribute(t,i[t].clone());r=n.morphAttributes;for(t in r){for(f=[],e=r[t],i=0,u=e.length;i<u;i++)f.push(e[i].clone());this.morphAttributes[t]=f}for(t=n.groups,i=0,u=t.length;i<u;i++)r=t[i],this.addGroup(r.start,r.count,r.materialIndex);return t=n.boundingBox,null!==t&&(this.boundingBox=t.clone()),t=n.boundingSphere,null!==t&&(this.boundingSphere=t.clone()),this.drawRange.start=n.drawRange.start,this.drawRange.count=n.drawRange.count,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});uu.prototype=Object.create(h.prototype);uu.prototype.constructor=uu;nr.prototype=Object.create(f.prototype);nr.prototype.constructor=nr;ee.prototype=Object.create(h.prototype);ee.prototype.constructor=ee;tr.prototype=Object.create(f.prototype);tr.prototype.constructor=tr;ot.prototype=Object.create(a.prototype);ot.prototype.constructor=ot;ot.prototype.isMeshBasicMaterial=!0;ot.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.map=n.map,this.lightMap=n.lightMap,this.lightMapIntensity=n.lightMapIntensity,this.aoMap=n.aoMap,this.aoMapIntensity=n.aoMapIntensity,this.specularMap=n.specularMap,this.alphaMap=n.alphaMap,this.envMap=n.envMap,this.combine=n.combine,this.reflectivity=n.reflectivity,this.refractionRatio=n.refractionRatio,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.wireframeLinecap=n.wireframeLinecap,this.wireframeLinejoin=n.wireframeLinejoin,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this};Object.assign(ir.prototype,{set:function(n,t){return this.origin.copy(n),this.direction.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.origin.copy(n.origin),this.direction.copy(n.direction),this},at:function(n,i){return(i||new t).copy(this.direction).multiplyScalar(n).add(this.origin)},lookAt:function(n){return this.direction.copy(n).sub(this.origin).normalize(),this},recast:function(){var n=new t;return function(t){return this.origin.copy(this.at(t,n)),this}}(),closestPointToPoint:function(n,i){return i=i||new t,i.subVectors(n,this.origin),n=i.dot(this.direction),0>n?i.copy(this.origin):i.copy(this.direction).multiplyScalar(n).add(this.origin)},distanceToPoint:function(n){return Math.sqrt(this.distanceSqToPoint(n))},distanceSqToPoint:function(){var n=new t;return function(t){var i=n.subVectors(t,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(t):(n.copy(this.direction).multiplyScalar(i).add(this.origin),n.distanceToSquared(t))}}(),distanceSqToSegment:function(){var r=new t,n=new t,i=new t;return function(t,u,f,e){var a;r.copy(t).add(u).multiplyScalar(.5);n.copy(u).sub(t).normalize();i.copy(this.origin).sub(r);var s=.5*t.distanceTo(u),o=-this.direction.dot(n),c=i.dot(this.direction),h=-i.dot(n),l=i.lengthSq(),v=Math.abs(1-o*o);return 0<v?(t=o*h-c,u=o*c-h,a=s*v,0<=t?u>=-a?u<=a?(s=1/v,t*=s,u*=s,o=t*(t+o*u+2*c)+u*(o*t+u+2*h)+l):(u=s,t=Math.max(0,-(o*u+c)),o=-t*t+u*(u+2*h)+l):(u=-s,t=Math.max(0,-(o*u+c)),o=-t*t+u*(u+2*h)+l):u<=-a?(t=Math.max(0,-(-o*s+c)),u=0<t?-s:Math.min(Math.max(-s,-h),s),o=-t*t+u*(u+2*h)+l):u<=a?(t=0,u=Math.min(Math.max(-s,-h),s),o=u*(u+2*h)+l):(t=Math.max(0,-(o*s+c)),u=0<t?s:Math.min(Math.max(-s,-h),s),o=-t*t+u*(u+2*h)+l)):(u=0<o?-s:s,t=Math.max(0,-(o*u+c)),o=-t*t+u*(u+2*h)+l),f&&f.copy(this.direction).multiplyScalar(t).add(this.origin),e&&e.copy(n).multiplyScalar(u).add(r),o}}(),intersectSphere:function(){var n=new t;return function(t,i){n.subVectors(t.center,this.origin);var r=n.dot(this.direction),u=n.dot(n)-r*r;return(t=t.radius*t.radius,u>t)?null:(t=Math.sqrt(t-u),u=r-t,r+=t,0>u&&0>r?null:0>u?this.at(r,i):this.at(u,i))}}(),intersectsSphere:function(n){return this.distanceToPoint(n.center)<=n.radius},distanceToPlane:function(n){var t=n.normal.dot(this.direction);return 0===t?0===n.distanceToPoint(this.origin)?0:null:(n=-(this.origin.dot(n.normal)+n.constant)/t,0<=n?n:null)},intersectPlane:function(n,t){return n=this.distanceToPlane(n),null===n?null:this.at(n,t)},intersectsPlane:function(n){var t=n.distanceToPoint(this.origin);return 0===t||0>n.normal.dot(this.direction)*t?!0:!1},intersectBox:function(n,t){var i=1/this.direction.x,e=1/this.direction.y,o=1/this.direction.z,u=this.origin,r,f;return(0<=i?(r=(n.min.x-u.x)*i,i*=n.max.x-u.x):(r=(n.max.x-u.x)*i,i*=n.min.x-u.x),0<=e?(f=(n.min.y-u.y)*e,e*=n.max.y-u.y):(f=(n.max.y-u.y)*e,e*=n.min.y-u.y),r>e||f>i)?null:((f>r||r!==r)&&(r=f),(e<i||i!==i)&&(i=e),0<=o?(f=(n.min.z-u.z)*o,n=(n.max.z-u.z)*o):(f=(n.max.z-u.z)*o,n=(n.min.z-u.z)*o),r>n||f>i)?null:((f>r||r!==r)&&(r=f),(n<i||i!==i)&&(i=n),0>i?null:this.at(0<=r?r:i,t))},intersectsBox:function(){var n=new t;return function(t){return null!==this.intersectBox(t,n)}}(),intersectTriangle:function(){var n=new t,r=new t,i=new t,u=new t;return function(t,f,e,o,s){if(r.subVectors(f,t),i.subVectors(e,t),u.crossVectors(r,i),f=this.direction.dot(u),0<f){if(o)return null;o=1}else if(0>f)o=-1,f=-f;else return null;return(n.subVectors(this.origin,t),t=o*this.direction.dot(i.crossVectors(n,i)),0>t)?null:(e=o*this.direction.dot(r.cross(n)),0>e||t+e>f)?null:(t=-o*n.dot(u),0>t?null:this.at(t/f,s))}}(),applyMatrix4:function(n){return this.origin.applyMatrix4(n),this.direction.transformDirection(n),this},equals:function(n){return n.origin.equals(this.origin)&&n.direction.equals(this.direction)}});Object.assign(fu.prototype,{set:function(n,t){return this.start.copy(n),this.end.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.start.copy(n.start),this.end.copy(n.end),this},getCenter:function(n){return(n||new t).addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(n){return(n||new t).subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(n,i){return i=i||new t,this.delta(i).multiplyScalar(n).add(this.start)},closestPointToPointParameter:function(){var i=new t,n=new t;return function(t,r){return i.subVectors(t,this.start),n.subVectors(this.end,this.start),t=n.dot(n),t=n.dot(i)/t,r&&(t=l.clamp(t,0,1)),t}}(),closestPointToPoint:function(n,i,r){return n=this.closestPointToPointParameter(n,i),r=r||new t,this.delta(r).multiplyScalar(n).add(this.start)},applyMatrix4:function(n){return this.start.applyMatrix4(n),this.end.applyMatrix4(n),this},equals:function(n){return n.start.equals(this.start)&&n.end.equals(this.end)}});Object.assign(oi,{normal:function(){var n=new t;return function(i,r,u,f){return f=f||new t,f.subVectors(u,r),n.subVectors(i,r),f.cross(n),i=f.lengthSq(),0<i?f.multiplyScalar(1/Math.sqrt(i)):f.set(0,0,0)}}(),barycoordFromPoint:function(){var n=new t,i=new t,r=new t;return function(u,f,e,o,s){var h,c;return(n.subVectors(o,f),i.subVectors(e,f),r.subVectors(u,f),u=n.dot(n),f=n.dot(i),e=n.dot(r),h=i.dot(i),o=i.dot(r),c=u*h-f*f,s=s||new t,0===c)?s.set(-2,-1,-1):(c=1/c,h=(h*e-f*o)*c,u=(u*o-f*e)*c,s.set(1-h-u,u,h))}}(),containsPoint:function(){var n=new t;return function(t,i,r,u){return t=oi.barycoordFromPoint(t,i,r,u,n),0<=t.x&&0<=t.y&&1>=t.x+t.y}}()});Object.assign(oi.prototype,{set:function(n,t,i){return this.a.copy(n),this.b.copy(t),this.c.copy(i),this},setFromPointsAndIndices:function(n,t,i,r){return this.a.copy(n[t]),this.b.copy(n[i]),this.c.copy(n[r]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.a.copy(n.a),this.b.copy(n.b),this.c.copy(n.c),this},area:function(){var n=new t,i=new t;return function(){return n.subVectors(this.c,this.b),i.subVectors(this.a,this.b),.5*n.cross(i).length()}}(),midpoint:function(n){return(n||new t).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(n){return oi.normal(this.a,this.b,this.c,n)},plane:function(n){return(n||new lt).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(n,t){return oi.barycoordFromPoint(n,this.a,this.b,this.c,t)},containsPoint:function(n){return oi.containsPoint(n,this.a,this.b,this.c)},closestPointToPoint:function(){var u=new lt,n=[new fu,new fu,new fu],i=new t,r=new t;return function(f,e){var o,s;if(e=e||new t,o=Infinity,u.setFromCoplanarPoints(this.a,this.b,this.c),u.projectPoint(f,i),!0===this.containsPoint(i))e.copy(i);else for(n[0].set(this.a,this.b),n[1].set(this.b,this.c),n[2].set(this.c,this.a),f=0;f<n.length;f++)n[f].closestPointToPoint(i,!0,r),s=i.distanceToSquared(r),s<o&&(o=s,e.copy(r));return e}}(),equals:function(n){return n.a.equals(this.a)&&n.b.equals(this.b)&&n.c.equals(this.c)}});it.prototype=Object.assign(Object.create(u.prototype),{constructor:it,isMesh:!0,setDrawMode:function(n){this.drawMode=n},copy:function(n){return u.prototype.copy.call(this,n),this.drawMode=n.drawMode,this},updateMorphTargets:function(){var n=this.geometry,i,t,r;if(n.isBufferGeometry){if(n=n.morphAttributes,i=Object.keys(n),0<i.length&&(t=n[i[0]],void 0!==t))for(this.morphTargetInfluences=[],this.morphTargetDictionary={},n=0,i=t.length;n<i;n++)r=t[n].name||String(n),this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=n}else if(t=n.morphTargets,void 0!==t&&0<t.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},n=0,i=t.length;n<i;n++)r=t[n].name||String(n),this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=n},raycast:function(){function y(n,t,i,r,u,f,e){return oi.barycoordFromPoint(n,t,i,r,c),u.multiplyScalar(c.x),f.multiplyScalar(c.y),e.multiplyScalar(c.z),u.add(f).add(e),u.clone()}function p(n,t,i,r,u,f,e,o){return null===(1===t.side?r.intersectTriangle(e,f,u,!0,o):r.intersectTriangle(u,f,e,2!==t.side,o))?null:(a.copy(o),a.applyMatrix4(n.matrixWorld),t=i.ray.origin.distanceTo(a),t<i.near||t>i.far?null:{distance:t,point:a.clone(),object:n})}function w(t,i,f,s,c,a,v,w){return n.fromBufferAttribute(s,a),r.fromBufferAttribute(s,v),u.fromBufferAttribute(s,w),(t=p(t,t.material,i,f,n,r,u,l))&&(c&&(e.fromBufferAttribute(c,a),o.fromBufferAttribute(c,v),h.fromBufferAttribute(c,w),t.uv=y(l,n,r,u,e,o,h)),t.face=new ei(a,v,w,oi.normal(n,r,u)),t.faceIndex=a),t}var b=new s,f=new ir,v=new pt,n=new t,r=new t,u=new t,k=new t,d=new t,g=new t,e=new i,o=new i,h=new i,c=new t,l=new t,a=new t;return function(t,i){var s=this.geometry,tt=this.material,ut=this.matrixWorld,a,c,nt,it,ft,vt,rt,ht,et,yt,ct,pt,lt,at;if(void 0!==tt&&(null===s.boundingSphere&&s.computeBoundingSphere(),v.copy(s.boundingSphere),v.applyMatrix4(ut),!1!==t.ray.intersectsSphere(v)&&(b.getInverse(ut),f.copy(t.ray).applyMatrix4(b),null===s.boundingBox||!1!==f.intersectsBox(s.boundingBox))))if(s.isBufferGeometry){var tt=s.index,ot=s.attributes.position,ut=s.attributes.uv,st;if(null!==tt)for(c=0,st=tt.count;c<st;c+=3)s=tt.getX(c),nt=tt.getX(c+1),it=tt.getX(c+2),(a=w(this,t,f,ot,ut,s,nt,it))&&(a.faceIndex=Math.floor(c/3),i.push(a));else for(c=0,st=ot.count;c<st;c+=3)(s=c,nt=c+1,it=c+2,a=w(this,t,f,ot,ut,s,nt,it))&&(a.index=s,i.push(a))}else if(s.isGeometry)for(ut=Array.isArray(tt),c=s.vertices,st=s.faces,nt=s.faceVertexUvs[0],0<nt.length&&(ot=nt),ft=0,vt=st.length;ft<vt;ft++)if(rt=st[ft],a=ut?tt[rt.materialIndex]:tt,void 0!==a){if(nt=c[rt.a],it=c[rt.b],ht=c[rt.c],!0===a.morphTargets){for(et=s.morphTargets,yt=this.morphTargetInfluences,n.set(0,0,0),r.set(0,0,0),u.set(0,0,0),ct=0,pt=et.length;ct<pt;ct++)lt=yt[ct],0!==lt&&(at=et[ct].vertices,n.addScaledVector(k.subVectors(at[rt.a],nt),lt),r.addScaledVector(d.subVectors(at[rt.b],it),lt),u.addScaledVector(g.subVectors(at[rt.c],ht),lt));n.add(nt);r.add(it);u.add(ht);nt=n;it=r;ht=u}(a=p(this,a,t,f,nt,it,ht,l))&&(ot&&ot[ft]&&(et=ot[ft],e.copy(et[0]),o.copy(et[1]),h.copy(et[2]),a.uv=y(l,nt,it,ht,e,o,h)),a.face=rt,a.faceIndex=ft,i.push(a))}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});da=0;os.prototype=Object.assign(Object.create(g.prototype),{constructor:os,isArrayCamera:!0});eu.prototype.isFogExp2=!0;eu.prototype.clone=function(){return new eu(this.color.getHex(),this.density)};eu.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}};ou.prototype.isFog=!0;ou.prototype.clone=function(){return new ou(this.color.getHex(),this.near,this.far)};ou.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}};ss.prototype=Object.assign(Object.create(u.prototype),{constructor:ss,copy:function(n,t){return u.prototype.copy.call(this,n,t),null!==n.background&&(this.background=n.background.clone()),null!==n.fog&&(this.fog=n.fog.clone()),null!==n.overrideMaterial&&(this.overrideMaterial=n.overrideMaterial.clone()),this.autoUpdate=n.autoUpdate,this.matrixAutoUpdate=n.matrixAutoUpdate,this},toJSON:function(n){var t=u.prototype.toJSON.call(this,n);return null!==this.background&&(t.object.background=this.background.toJSON(n)),null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}});rc.prototype=Object.assign(Object.create(u.prototype),{constructor:rc,isLensFlare:!0,copy:function(n){u.prototype.copy.call(this,n);this.positionScreen.copy(n.positionScreen);this.customUpdateCallback=n.customUpdateCallback;for(var t=0,i=n.lensFlares.length;t<i;t++)this.lensFlares.push(n.lensFlares[t]);return this},add:function(n,t,i,r,u,f){void 0===t&&(t=-1);void 0===i&&(i=0);void 0===f&&(f=1);void 0===u&&(u=new e(16777215));void 0===r&&(r=1);i=Math.min(i,Math.max(0,i));this.lensFlares.push({texture:n,size:t,distance:i,x:0,y:0,z:0,scale:1,rotation:0,opacity:f,color:u,blending:r})},updateLensFlares:function(){for(var i=this.lensFlares.length,r=2*-this.positionScreen.x,u=2*-this.positionScreen.y,n,t=0;t<i;t++)n=this.lensFlares[t],n.x=this.positionScreen.x+r*n.distance,n.y=this.positionScreen.y+u*n.distance,n.wantedRotation=n.x*Math.PI*.25,n.rotation+=.25*(n.wantedRotation-n.rotation)}});pi.prototype=Object.create(a.prototype);pi.prototype.constructor=pi;pi.prototype.isSpriteMaterial=!0;pi.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.map=n.map,this.rotation=n.rotation,this};se.prototype=Object.assign(Object.create(u.prototype),{constructor:se,isSprite:!0,raycast:function(){var n=new t,i=new t,r=new t;return function(t,u){i.setFromMatrixPosition(this.matrixWorld);t.ray.closestPointToPoint(i,n);r.setFromMatrixScale(this.matrixWorld);var f=r.x*r.y/4;i.distanceToSquared(n)>f||(f=t.ray.origin.distanceTo(n),f<t.near||f>t.far||u.push({distance:f,point:n.clone(),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)}});he.prototype=Object.assign(Object.create(u.prototype),{constructor:he,copy:function(n){var t,r,i;for(u.prototype.copy.call(this,n,!1),n=n.levels,t=0,r=n.length;t<r;t++)i=n[t],this.addLevel(i.object.clone(),i.distance);return this},addLevel:function(n,t){void 0===t&&(t=0);t=Math.abs(t);for(var r=this.levels,i=0;i<r.length&&!(t<r[i].distance);i++);r.splice(i,0,{distance:t,object:n});this.add(n)},getObjectForDistance:function(n){for(var i=this.levels,t=1,r=i.length;t<r&&!(n<i[t].distance);t++);return i[t-1].object},raycast:function(){var n=new t;return function(t,i){n.setFromMatrixPosition(this.matrixWorld);var r=t.ray.origin.distanceTo(n);this.getObjectForDistance(r).raycast(t,i)}}(),update:function(){var n=new t,i=new t;return function(t){var u=this.levels,r,f;if(1<u.length){for(n.setFromMatrixPosition(t.matrixWorld),i.setFromMatrixPosition(this.matrixWorld),t=n.distanceTo(i),u[0].object.visible=!0,r=1,f=u.length;r<f;r++)if(t>=u[r].distance)u[r-1].object.visible=!1,u[r].object.visible=!0;else break;for(;r<f;r++)u[r].object.visible=!1}}}(),toJSON:function(n){var t;n=u.prototype.toJSON.call(this,n);n.object.levels=[];for(var r=this.levels,i=0,f=r.length;i<f;i++)t=r[i],n.object.levels.push({object:t.object.uuid,distance:t.distance});return n}});Object.assign(ce.prototype,{calculateInverses:function(){var n,i,t;for(this.boneInverses=[],n=0,i=this.bones.length;n<i;n++)t=new s,this.bones[n]&&t.getInverse(this.bones[n].matrixWorld),this.boneInverses.push(t)},pose:function(){for(var n,t=0,i=this.bones.length;t<i;t++)(n=this.bones[t])&&n.matrixWorld.getInverse(this.boneInverses[t]);for(t=0,i=this.bones.length;t<i;t++)(n=this.bones[t])&&(n.parent&&n.parent.isBone?(n.matrix.getInverse(n.parent.matrixWorld),n.matrix.multiply(n.matrixWorld)):n.matrix.copy(n.matrixWorld),n.matrix.decompose(n.position,n.quaternion,n.scale))},update:function(){var n=new s,t=new s;return function(){for(var r=this.bones,f=this.boneInverses,e=this.boneMatrices,u=this.boneTexture,i=0,o=r.length;i<o;i++)n.multiplyMatrices(r[i]?r[i].matrixWorld:t,f[i]),n.toArray(e,16*i);void 0!==u&&(u.needsUpdate=!0)}}(),clone:function(){return new ce(this.bones,this.boneInverses)}});hs.prototype=Object.assign(Object.create(u.prototype),{constructor:hs,isBone:!0});cs.prototype=Object.assign(Object.create(it.prototype),{constructor:cs,isSkinnedMesh:!0,initBones:function(){var i=[],u,t,n,r;if(this.geometry&&void 0!==this.geometry.bones){for(t=0,u=this.geometry.bones.length;t<u;t++)n=this.geometry.bones[t],r=new hs,i.push(r),r.name=n.name,r.position.fromArray(n.pos),r.quaternion.fromArray(n.rotq),void 0!==n.scl&&r.scale.fromArray(n.scl);for(t=0,u=this.geometry.bones.length;t<u;t++)n=this.geometry.bones[t],-1!==n.parent&&null!==n.parent&&void 0!==i[n.parent]?i[n.parent].add(i[t]):this.add(i[t])}return this.updateMatrixWorld(!0),i},bind:function(n,t){this.skeleton=n;void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld);this.bindMatrix.copy(t);this.bindMatrixInverse.getInverse(t)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t,r,n,i;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++)n=this.geometry.skinWeights[t],r=1/n.lengthManhattan(),Infinity!==r?n.multiplyScalar(r):n.set(1,0,0,0);else if(this.geometry&&this.geometry.isBufferGeometry)for(n=new y,i=this.geometry.attributes.skinWeight,t=0;t<i.count;t++)n.x=i.getX(t),n.y=i.getY(t),n.z=i.getZ(t),n.w=i.getW(t),r=1/n.lengthManhattan(),Infinity!==r?n.multiplyScalar(r):n.set(1,0,0,0),i.setXYZW(t,n.x,n.y,n.z,n.w)},updateMatrixWorld:function(n){it.prototype.updateMatrixWorld.call(this,n);"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});p.prototype=Object.create(a.prototype);p.prototype.constructor=p;p.prototype.isLineBasicMaterial=!0;p.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.linewidth=n.linewidth,this.linecap=n.linecap,this.linejoin=n.linejoin,this};ut.prototype=Object.assign(Object.create(u.prototype),{constructor:ut,isLine:!0,raycast:function(){var r=new s,n=new ir,i=new pt;return function(u,f){var l=u.linePrecision,l=l*l,e=this.geometry,s=this.matrixWorld,o,a;if(null===e.boundingSphere&&e.computeBoundingSphere(),i.copy(e.boundingSphere),i.applyMatrix4(s),!1!==u.ray.intersectsSphere(i)){r.getInverse(s);n.copy(u.ray).applyMatrix4(r);var c=new t,v=new t,s=new t,h=new t,y=this&&this.isLineSegments?2:1;if(e.isBufferGeometry)if(o=e.index,a=e.attributes.position.array,null!==o)for(var p=o.array,e=0,w=p.length-1;e<w;e+=y)o=p[e+1],c.fromArray(a,3*p[e]),v.fromArray(a,3*o),o=n.distanceSqToSegment(c,v,h,s),o>l||(h.applyMatrix4(this.matrixWorld),o=u.ray.origin.distanceTo(h),o<u.near||o>u.far||f.push({distance:o,point:s.clone().applyMatrix4(this.matrixWorld),index:e,face:null,faceIndex:null,object:this}));else for(e=0,w=a.length/3-1;e<w;e+=y)c.fromArray(a,3*e),v.fromArray(a,3*e+3),o=n.distanceSqToSegment(c,v,h,s),o>l||(h.applyMatrix4(this.matrixWorld),o=u.ray.origin.distanceTo(h),o<u.near||o>u.far||f.push({distance:o,point:s.clone().applyMatrix4(this.matrixWorld),index:e,face:null,faceIndex:null,object:this}));else if(e.isGeometry)for(c=e.vertices,v=c.length,e=0;e<v-1;e+=y)o=n.distanceSqToSegment(c[e],c[e+1],h,s),o>l||(h.applyMatrix4(this.matrixWorld),o=u.ray.origin.distanceTo(h),o<u.near||o>u.far||f.push({distance:o,point:s.clone().applyMatrix4(this.matrixWorld),index:e,face:null,faceIndex:null,object:this}))}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});w.prototype=Object.assign(Object.create(ut.prototype),{constructor:w,isLineSegments:!0});ls.prototype=Object.assign(Object.create(ut.prototype),{constructor:ls,isLineLoop:!0});bt.prototype=Object.create(a.prototype);bt.prototype.constructor=bt;bt.prototype.isPointsMaterial=!0;bt.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.map=n.map,this.size=n.size,this.sizeAttenuation=n.sizeAttenuation,this};su.prototype=Object.assign(Object.create(u.prototype),{constructor:su,isPoints:!0,raycast:function(){var r=new s,i=new ir,n=new pt;return function(u,f){function c(n,t){var e=i.distanceSqToPoint(n),r;e<y&&(n=i.closestPointToPoint(n),n.applyMatrix4(l),r=u.ray.origin.distanceTo(n),r<u.near||r>u.far||f.push({distance:r,distanceToRay:Math.sqrt(e),point:n.clone(),index:t,face:null,object:v}))}var v=this,s=this.geometry,l=this.matrixWorld,o=u.params.Points.threshold,e,a;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),n.radius+=o,!1!==u.ray.intersectsSphere(n)){r.getInverse(l);i.copy(u.ray).applyMatrix4(r);var o=o/((this.scale.x+this.scale.y+this.scale.z)/3),y=o*o,o=new t;if(s.isBufferGeometry)if(e=s.index,s=s.attributes.position.array,null!==e)for(var h=e.array,e=0,p=h.length;e<p;e++)a=h[e],o.fromArray(s,3*a),c(o,a);else for(e=0,h=s.length/3;e<h;e++)o.fromArray(s,3*e),c(o,e);else for(o=s.vertices,e=0,h=o.length;e<h;e++)c(o[e],e)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});le.prototype=Object.assign(Object.create(u.prototype),{constructor:le});as.prototype=Object.create(b.prototype);as.prototype.constructor=as;hu.prototype=Object.create(b.prototype);hu.prototype.constructor=hu;hu.prototype.isCompressedTexture=!0;ae.prototype=Object.create(b.prototype);ae.prototype.constructor=ae;ae.prototype.isDepthTexture=!0;cu.prototype=Object.create(f.prototype);cu.prototype.constructor=cu;ve.prototype=Object.create(h.prototype);ve.prototype.constructor=ve;lu.prototype=Object.create(f.prototype);lu.prototype.constructor=lu;ye.prototype=Object.create(h.prototype);ye.prototype.constructor=ye;ft.prototype=Object.create(f.prototype);ft.prototype.constructor=ft;pe.prototype=Object.create(h.prototype);pe.prototype.constructor=pe;au.prototype=Object.create(ft.prototype);au.prototype.constructor=au;we.prototype=Object.create(h.prototype);we.prototype.constructor=we;rr.prototype=Object.create(ft.prototype);rr.prototype.constructor=rr;be.prototype=Object.create(h.prototype);be.prototype.constructor=be;vu.prototype=Object.create(ft.prototype);vu.prototype.constructor=vu;ke.prototype=Object.create(h.prototype);ke.prototype.constructor=ke;yu.prototype=Object.create(ft.prototype);yu.prototype.constructor=yu;de.prototype=Object.create(h.prototype);de.prototype.constructor=de;pu.prototype=Object.create(f.prototype);pu.prototype.constructor=pu;ge.prototype=Object.create(h.prototype);ge.prototype.constructor=ge;wu.prototype=Object.create(f.prototype);wu.prototype.constructor=wu;no.prototype=Object.create(h.prototype);no.prototype.constructor=no;bu.prototype=Object.create(f.prototype);bu.prototype.constructor=bu;vt={area:function(n){for(var r=n.length,u=0,i=r-1,t=0;t<r;i=t++)u+=n[i].x*n[t].y-n[t].x*n[i].y;return.5*u},triangulate:function(){return function(n,t){var u=n.length,b,f,e,h,o,s;if(3>u)return null;var g=[],r=[],nt=[],i;if(0<vt.area(n))for(i=0;i<u;i++)r[i]=i;else for(i=0;i<u;i++)r[i]=u-1-i;for(b=2*u,i=u-1;2<u;){if(0>=b--){console.warn("THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()");break}f=i;u<=f&&(f=0);i=f+1;u<=i&&(i=0);e=i+1;u<=e&&(e=0);n:{var a,c=n[r[f]].x,l=n[r[f]].y,v=n[r[i]].x,y=n[r[i]].y,p=n[r[e]].x,w=n[r[e]].y;if(0>=(v-c)*(w-l)-(y-l)*(p-c))h=!1;else{var tt=p-v,it=w-y,rt=c-p,ut=l-w,ft=v-c;for(h=y-l,a=0;a<u;a++)if(o=n[r[a]].x,s=n[r[a]].y,!(o===c&&s===l||o===v&&s===y||o===p&&s===w)){var et=o-c,k=s-l,ot=o-v,d=s-y;if(o-=p,s-=w,d=tt*d-it*ot,k=ft*k-h*et,o=rt*s-ut*o,d>=-Number.EPSILON&&o>=-Number.EPSILON&&k>=-Number.EPSILON){h=!1;break n}}h=!0}}if(h){for(g.push([n[r[f]],n[r[i]],n[r[e]]]),nt.push([r[f],r[i],r[e]]),f=i,e=i+1;e<u;f++,e++)r[f]=r[e];u--;b=2*u}}return t?nt:g}}(),triangulateShape:function(n,t){function o(n){var t=n.length;2<t&&n[t-1].equals(n[0])&&n.pop()}function s(n,t,i){return n.x!==t.x?n.x<t.x?n.x<=i.x&&i.x<=t.x:t.x<=i.x&&i.x<=n.x:n.y<t.y?n.y<=i.y&&i.y<=t.y:t.y<=i.y&&i.y<=n.y}function h(n,t,i,r,u){var h=t.x-n.x,o=t.y-n.y,f=r.x-i.x,c=r.y-i.y,a=n.x-i.x,v=n.y-i.y,e=o*f-h*c,l=o*a-h*v;if(Math.abs(e)>Number.EPSILON){if(0<e){if(0>l||l>e)return[];if(f=c*a-f*v,0>f||f>e)return[]}else{if(0<l||l<e)return[];if(f=c*a-f*v,0<f||f<e)return[]}return 0===f?!u||0!==l&&l!==e?[n]:[]:f===e?!u||0!==l&&l!==e?[t]:[]:0===l?[i]:l===e?[r]:(u=f/e,[{x:n.x+u*h,y:n.y+u*o}])}return 0!==l||c*a!=f*v?[]:(o=0===h&&0===o,f=0===f&&0===c,o&&f)?n.x!==i.x||n.y!==i.y?[]:[n]:o?s(i,r,n)?[n]:[]:f?s(n,t,i)?[i]:[]:(0!==h?(n.x<t.x?(h=n,f=n.x,o=t,n=t.x):(h=t,f=t.x,o=n,n=n.x),i.x<r.x?(t=i,e=i.x,c=r,i=r.x):(t=r,e=r.x,c=i,i=i.x)):(n.y<t.y?(h=n,f=n.y,o=t,n=t.y):(h=t,f=t.y,o=n,n=n.y),i.y<r.y?(t=i,e=i.y,c=r,i=r.y):(t=r,e=r.y,c=i,i=i.y)),f<=e?n<e?[]:n===e?u?[]:[t]:n<=i?[t,o]:[t,c]:f>i?[]:f===i?u?[]:[h]:n<=i?[h,o]:[h,c])}function c(n,t,i,r){var u=t.x-n.x,e=t.y-n.y,f;return t=i.x-n.x,i=i.y-n.y,f=r.x-n.x,r=r.y-n.y,n=u*i-e*t,u=u*r-e*f,Math.abs(n)>Number.EPSILON?(t=f*i-r*t,0<n?0<=u&&0<=t:0<=u||0<=t):0<u}var r;o(n);t.forEach(o);for(var e={},u=n.concat(),i=0,f=t.length;i<f;i++)Array.prototype.push.apply(u,t[i]);for(i=0,f=u.length;i<f;i++)r=u[i].x+":"+u[i].y,void 0!==e[r]&&console.warn("THREE.ShapeUtils: Duplicate point",r,i),e[r]=i;for(i=function(n,t){function b(n,t){var u=i.length-1,e=n-1,f;return(0>e&&(e=u),f=n+1,f>u&&(f=0),u=c(i[n],i[e],i[f],r[t]),!u)?!1:(u=r.length-1,e=t-1,0>e&&(e=u),f=t+1,f>u&&(f=0),(u=c(r[t],r[e],r[f],i[n]))?!0:!1)}function k(n,t){for(var r,u=0;u<i.length;u++)if(r=u+1,r%=i.length,r=h(n,t,i[u],i[r],!0),0<r.length)return!0;return!1}function d(n,i){for(var r,u,e,o=0;o<f.length;o++)for(u=t[f[o]],r=0;r<u.length;r++)if(e=r+1,e%=u.length,e=h(n,i,u[r],u[e],!0),0<e.length)return!0;return!1}var i=n.concat(),f=[],e,o,s,u,a,y,v,l,p,r,w;for(n=[],u=0,e=t.length;u<e;u++)f.push(u);for(a=0,y=2*f.length;0<f.length;){if(y--,0>y){console.log('THREE.ShapeUtils: Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!');break}for(o=a;o<i.length;o++){for(v=i[o],e=-1,u=0;u<f.length;u++)if(l=f[u],p=v.x+":"+v.y+":"+l,void 0===n[p]){for(r=t[l],s=0;s<r.length;s++)if(l=r[s],b(o,s)&&!k(v,l)&&!d(v,l)){e=s;f.splice(u,1);a=i.slice(0,o+1);l=i.slice(o);s=r.slice(e);w=r.slice(0,e+1);i=a.concat(s).concat(w).concat(l);a=o;break}if(0<=e)break;n[p]=!0}if(0<=e)break}}return i}(n,t),u=vt.triangulate(i,!1),i=0,f=u.length;i<f;i++)for(t=u[i],n=0;3>n;n++)r=t[n].x+":"+t[n].y,r=e[r],void 0!==r&&(t[n]=r);return u.concat()},isClockWise:function(n){return 0>vt.area(n)}};wi.prototype=Object.create(h.prototype);wi.prototype.constructor=wi;kt.prototype=Object.create(f.prototype);kt.prototype.constructor=kt;kt.prototype.getArrays=function(){var n=this.getAttribute("position"),n=n?Array.prototype.slice.call(n.array):[],t=this.getAttribute("uv"),t=t?Array.prototype.slice.call(t.array):[],i=this.index,i=i?Array.prototype.slice.call(i.array):[];return{position:n,uv:t,index:i}};kt.prototype.addShapeList=function(n,t){var u=n.length,i;for(t.arrays=this.getArrays(),i=0;i<u;i++)this.addShape(n[i],t);this.setIndex(t.arrays.index);this.addAttribute("position",new r(t.arrays.position,3));this.addAttribute("uv",new r(t.arrays.uv,2))};kt.prototype.addShape=function(n,u){function st(n,t,i){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),t.clone().multiplyScalar(i).add(n)}function ri(n,t,r){var f=n.x-t.x,u=n.y-t.y,e=r.x-n.x,o=r.y-n.y,s=f*f+u*u;if(Math.abs(f*o-u*e)>Number.EPSILON){var h=Math.sqrt(s),c=Math.sqrt(e*e+o*o),s=t.x-u/h;if(t=t.y+f/h,o=((r.x-o/c-s)*o-(r.y+e/c-t)*e)/(f*o-u*e),e=s+f*o-n.x,f=t+u*o-n.y,u=e*e+f*f,2>=u)return new i(e,f);u=Math.sqrt(u/2)}else n=!1,f>Number.EPSILON?e>Number.EPSILON&&(n=!0):f<-Number.EPSILON?e<-Number.EPSILON&&(n=!0):Math.sign(u)===Math.sign(o)&&(n=!0),n?(e=-u,u=Math.sqrt(s)):(e=f,f=u,u=Math.sqrt(s/2));return new i(e/u,f/u)}function ui(n,t){var o,r,u,s;for(f=n.length;0<=--f;)for(o=f,r=f-1,0>r&&(r=n.length-1),s=w+2*ft,u=0;u<s;u++){var i=tt*u,e=tt*(u+1),h=t+r+i,c=t+r+e,e=t+o+e;d(t+o+i);d(h);d(e);d(h);d(c);d(e);i=y.length/3;i=oi.generateSideWallUV(yt,y,i-6,i-3,i-2,i-1);g(i[0]);g(i[1]);g(i[3]);g(i[1]);g(i[2]);g(i[3])}}function k(n,t,i){ht.push(n);ht.push(t);ht.push(i)}function wt(n,t,i){d(n);d(t);d(i);n=y.length/3;n=oi.generateTopUV(yt,y,n-3,n-2,n-1);g(n[0]);g(n[1]);g(n[2])}function d(n){fi.push(y.length/3);y.push(ht[3*n+0]);y.push(ht[3*n+1]);y.push(ht[3*n+2])}function g(n){ei.push(n.x);ei.push(n.y)}var ut=u.arrays?u.arrays:this.getArrays(),y=ut.position,fi=ut.index,ei=ut.uv,ht=[],ut=void 0!==u.amount?u.amount:100,bt=void 0!==u.bevelThickness?u.bevelThickness:6,kt=void 0!==u.bevelSize?u.bevelSize:bt-2,ft=void 0!==u.bevelSegments?u.bevelSegments:3,lt=void 0!==u.bevelEnabled?u.bevelEnabled:!0,nt=void 0!==u.curveSegments?u.curveSegments:12,w=void 0!==u.steps?u.steps:1,et=u.extrudePath,dt=!1,oi=void 0!==u.UVGenerator?u.UVGenerator:wi.WorldUVGenerator,at,p,yt,v,o,h,ct,b,pt,it,ot,s;if(et){at=et.getSpacedPoints(w);dt=!0;lt=!1;var gt=void 0!==u.frames?u.frames:et.computeFrenetFrames(w,!1),ni=new t,ti=new t,rt=new t}if(lt||(kt=bt=ft=0),yt=this,nt=n.extractPoints(nt),n=nt.shape,v=nt.holes,!vt.isClockWise(n))for(n=n.reverse(),o=0,p=v.length;o<p;o++)h=v[o],vt.isClockWise(h)&&(v[o]=h.reverse());for(ct=vt.triangulateShape(n,v),b=n,o=0,p=v.length;o<p;o++)h=v[o],n=n.concat(h);for(var tt=n.length,a,ii=ct.length,nt=[],f=0,e=b.length,l=e-1,c=f+1;f<e;f++,l++,c++)l===e&&(l=0),c===e&&(c=0),nt[f]=ri(b[f],b[l],b[c]);for(et=[],pt=nt.concat(),o=0,p=v.length;o<p;o++){for(h=v[o],it=[],f=0,e=h.length,l=e-1,c=f+1;f<e;f++,l++,c++)l===e&&(l=0),c===e&&(c=0),it[f]=ri(h[f],h[l],h[c]);et.push(it);pt=pt.concat(it)}for(l=0;l<ft;l++){for(e=l/ft,ot=bt*Math.cos(e*Math.PI/2),c=kt*Math.sin(e*Math.PI/2),f=0,e=b.length;f<e;f++)s=st(b[f],nt[f],c),k(s.x,s.y,-ot);for(o=0,p=v.length;o<p;o++)for(h=v[o],it=et[o],f=0,e=h.length;f<e;f++)s=st(h[f],it[f],c),k(s.x,s.y,-ot)}for(c=kt,f=0;f<tt;f++)s=lt?st(n[f],pt[f],c):n[f],dt?(ti.copy(gt.normals[0]).multiplyScalar(s.x),ni.copy(gt.binormals[0]).multiplyScalar(s.y),rt.copy(at[0]).add(ti).add(ni),k(rt.x,rt.y,rt.z)):k(s.x,s.y,0);for(e=1;e<=w;e++)for(f=0;f<tt;f++)s=lt?st(n[f],pt[f],c):n[f],dt?(ti.copy(gt.normals[e]).multiplyScalar(s.x),ni.copy(gt.binormals[e]).multiplyScalar(s.y),rt.copy(at[e]).add(ti).add(ni),k(rt.x,rt.y,rt.z)):k(s.x,s.y,ut/w*e);for(l=ft-1;0<=l;l--){for(e=l/ft,ot=bt*Math.cos(e*Math.PI/2),c=kt*Math.sin(e*Math.PI/2),f=0,e=b.length;f<e;f++)s=st(b[f],nt[f],c),k(s.x,s.y,ut+ot);for(o=0,p=v.length;o<p;o++)for(h=v[o],it=et[o],f=0,e=h.length;f<e;f++)s=st(h[f],it[f],c),dt?k(s.x,s.y+at[w-1].y,at[w-1].x+ot):k(s.x,s.y,ut+ot)}(function(){var t=y.length/3,n;if(lt){for(n=0*tt,f=0;f<ii;f++)a=ct[f],wt(a[2]+n,a[1]+n,a[0]+n);for(n=tt*(w+2*ft),f=0;f<ii;f++)a=ct[f],wt(a[0]+n,a[1]+n,a[2]+n)}else{for(f=0;f<ii;f++)a=ct[f],wt(a[2],a[1],a[0]);for(f=0;f<ii;f++)a=ct[f],wt(a[0]+tt*w,a[1]+tt*w,a[2]+tt*w)}yt.addGroup(t,y.length/3-t,void 0!==u.material?u.material:0)})(),function(){var t=y.length/3,n=0;for(ui(b,n),n+=b.length,o=0,p=v.length;o<p;o++)h=v[o],ui(h,n),n+=h.length;yt.addGroup(t,y.length/3-t,void 0!==u.extrudeMaterial?u.extrudeMaterial:1)}();u.arrays||(this.setIndex(fi),this.addAttribute("position",new r(y,3)),this.addAttribute("uv",new r(u.arrays.uv,2)))};wi.WorldUVGenerator={generateTopUV:function(n,t,r,u,f){n=t[3*u];u=t[3*u+1];var e=t[3*f];return f=t[3*f+1],[new i(t[3*r],t[3*r+1]),new i(n,u),new i(e,f)]},generateSideWallUV:function(n,t,r,u,f,e){var o,h,s,c,l,a,v;return n=t[3*r],o=t[3*r+1],r=t[3*r+2],h=t[3*u],s=t[3*u+1],u=t[3*u+2],c=t[3*f],l=t[3*f+1],f=t[3*f+2],a=t[3*e],v=t[3*e+1],t=t[3*e+2],.01>Math.abs(o-s)?[new i(n,1-r),new i(h,1-u),new i(c,1-f),new i(a,1-t)]:[new i(o,1-r),new i(s,1-u),new i(l,1-f),new i(v,1-t)]}};to.prototype=Object.create(h.prototype);to.prototype.constructor=to;ku.prototype=Object.create(kt.prototype);ku.prototype.constructor=ku;io.prototype=Object.create(h.prototype);io.prototype.constructor=io;ur.prototype=Object.create(f.prototype);ur.prototype.constructor=ur;ro.prototype=Object.create(h.prototype);ro.prototype.constructor=ro;du.prototype=Object.create(f.prototype);du.prototype.constructor=du;uo.prototype=Object.create(h.prototype);uo.prototype.constructor=uo;gu.prototype=Object.create(f.prototype);gu.prototype.constructor=gu;nf.prototype=Object.create(h.prototype);nf.prototype.constructor=nf;tf.prototype=Object.create(f.prototype);tf.prototype.constructor=tf;rf.prototype=Object.create(f.prototype);rf.prototype.constructor=rf;fr.prototype=Object.create(h.prototype);fr.prototype.constructor=fr;si.prototype=Object.create(f.prototype);si.prototype.constructor=si;fo.prototype=Object.create(fr.prototype);fo.prototype.constructor=fo;eo.prototype=Object.create(si.prototype);eo.prototype.constructor=eo;oo.prototype=Object.create(h.prototype);oo.prototype.constructor=oo;uf.prototype=Object.create(f.prototype);uf.prototype.constructor=uf;yt=Object.freeze({WireframeGeometry:cu,ParametricGeometry:ve,ParametricBufferGeometry:lu,TetrahedronGeometry:pe,TetrahedronBufferGeometry:au,OctahedronGeometry:we,OctahedronBufferGeometry:rr,IcosahedronGeometry:be,IcosahedronBufferGeometry:vu,DodecahedronGeometry:ke,DodecahedronBufferGeometry:yu,PolyhedronGeometry:ye,PolyhedronBufferGeometry:ft,TubeGeometry:de,TubeBufferGeometry:pu,TorusKnotGeometry:ge,TorusKnotBufferGeometry:wu,TorusGeometry:no,TorusBufferGeometry:bu,TextGeometry:to,TextBufferGeometry:ku,SphereGeometry:io,SphereBufferGeometry:ur,RingGeometry:ro,RingBufferGeometry:du,PlaneGeometry:ee,PlaneBufferGeometry:tr,LatheGeometry:uo,LatheBufferGeometry:gu,ShapeGeometry:nf,ShapeBufferGeometry:tf,ExtrudeGeometry:wi,ExtrudeBufferGeometry:kt,EdgesGeometry:rf,ConeGeometry:fo,ConeBufferGeometry:eo,CylinderGeometry:fr,CylinderBufferGeometry:si,CircleGeometry:oo,CircleBufferGeometry:uf,BoxGeometry:uu,BoxBufferGeometry:nr});ff.prototype=Object.create(a.prototype);ff.prototype.constructor=ff;ff.prototype.isShadowMaterial=!0;ef.prototype=Object.create(ct.prototype);ef.prototype.constructor=ef;ef.prototype.isRawShaderMaterial=!0;ii.prototype=Object.create(a.prototype);ii.prototype.constructor=ii;ii.prototype.isMeshStandardMaterial=!0;ii.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.defines={STANDARD:""},this.color.copy(n.color),this.roughness=n.roughness,this.metalness=n.metalness,this.map=n.map,this.lightMap=n.lightMap,this.lightMapIntensity=n.lightMapIntensity,this.aoMap=n.aoMap,this.aoMapIntensity=n.aoMapIntensity,this.emissive.copy(n.emissive),this.emissiveMap=n.emissiveMap,this.emissiveIntensity=n.emissiveIntensity,this.bumpMap=n.bumpMap,this.bumpScale=n.bumpScale,this.normalMap=n.normalMap,this.normalScale.copy(n.normalScale),this.displacementMap=n.displacementMap,this.displacementScale=n.displacementScale,this.displacementBias=n.displacementBias,this.roughnessMap=n.roughnessMap,this.metalnessMap=n.metalnessMap,this.alphaMap=n.alphaMap,this.envMap=n.envMap,this.envMapIntensity=n.envMapIntensity,this.refractionRatio=n.refractionRatio,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.wireframeLinecap=n.wireframeLinecap,this.wireframeLinejoin=n.wireframeLinejoin,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.morphNormals=n.morphNormals,this};er.prototype=Object.create(ii.prototype);er.prototype.constructor=er;er.prototype.isMeshPhysicalMaterial=!0;er.prototype.copy=function(n){return ii.prototype.copy.call(this,n),this.defines={PHYSICAL:""},this.reflectivity=n.reflectivity,this.clearCoat=n.clearCoat,this.clearCoatRoughness=n.clearCoatRoughness,this};dt.prototype=Object.create(a.prototype);dt.prototype.constructor=dt;dt.prototype.isMeshPhongMaterial=!0;dt.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.specular.copy(n.specular),this.shininess=n.shininess,this.map=n.map,this.lightMap=n.lightMap,this.lightMapIntensity=n.lightMapIntensity,this.aoMap=n.aoMap,this.aoMapIntensity=n.aoMapIntensity,this.emissive.copy(n.emissive),this.emissiveMap=n.emissiveMap,this.emissiveIntensity=n.emissiveIntensity,this.bumpMap=n.bumpMap,this.bumpScale=n.bumpScale,this.normalMap=n.normalMap,this.normalScale.copy(n.normalScale),this.displacementMap=n.displacementMap,this.displacementScale=n.displacementScale,this.displacementBias=n.displacementBias,this.specularMap=n.specularMap,this.alphaMap=n.alphaMap,this.envMap=n.envMap,this.combine=n.combine,this.reflectivity=n.reflectivity,this.refractionRatio=n.refractionRatio,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.wireframeLinecap=n.wireframeLinecap,this.wireframeLinejoin=n.wireframeLinejoin,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.morphNormals=n.morphNormals,this};or.prototype=Object.create(dt.prototype);or.prototype.constructor=or;or.prototype.isMeshToonMaterial=!0;or.prototype.copy=function(n){return dt.prototype.copy.call(this,n),this.gradientMap=n.gradientMap,this};sr.prototype=Object.create(a.prototype);sr.prototype.constructor=sr;sr.prototype.isMeshNormalMaterial=!0;sr.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.bumpMap=n.bumpMap,this.bumpScale=n.bumpScale,this.normalMap=n.normalMap,this.normalScale.copy(n.normalScale),this.displacementMap=n.displacementMap,this.displacementScale=n.displacementScale,this.displacementBias=n.displacementBias,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.morphNormals=n.morphNormals,this};hr.prototype=Object.create(a.prototype);hr.prototype.constructor=hr;hr.prototype.isMeshLambertMaterial=!0;hr.prototype.copy=function(n){return a.prototype.copy.call(this,n),this.color.copy(n.color),this.map=n.map,this.lightMap=n.lightMap,this.lightMapIntensity=n.lightMapIntensity,this.aoMap=n.aoMap,this.aoMapIntensity=n.aoMapIntensity,this.emissive.copy(n.emissive),this.emissiveMap=n.emissiveMap,this.emissiveIntensity=n.emissiveIntensity,this.specularMap=n.specularMap,this.alphaMap=n.alphaMap,this.envMap=n.envMap,this.combine=n.combine,this.reflectivity=n.reflectivity,this.refractionRatio=n.refractionRatio,this.wireframe=n.wireframe,this.wireframeLinewidth=n.wireframeLinewidth,this.wireframeLinecap=n.wireframeLinecap,this.wireframeLinejoin=n.wireframeLinejoin,this.skinning=n.skinning,this.morphTargets=n.morphTargets,this.morphNormals=n.morphNormals,this};cr.prototype=Object.create(p.prototype);cr.prototype.constructor=cr;cr.prototype.isLineDashedMaterial=!0;cr.prototype.copy=function(n){return p.prototype.copy.call(this,n),this.scale=n.scale,this.dashSize=n.dashSize,this.gapSize=n.gapSize,this};var dp=Object.freeze({ShadowMaterial:ff,SpriteMaterial:pi,RawShaderMaterial:ef,ShaderMaterial:ct,PointsMaterial:bt,MeshPhysicalMaterial:er,MeshStandardMaterial:ii,MeshPhongMaterial:dt,MeshToonMaterial:or,MeshNormalMaterial:sr,MeshLambertMaterial:hr,MeshDepthMaterial:ai,MeshDistanceMaterial:vi,MeshBasicMaterial:ot,LineDashedMaterial:cr,LineBasicMaterial:p,Material:a}),us={enabled:!1,files:{},add:function(n,t){!1!==this.enabled&&(this.files[n]=t)},get:function(n){if(!1!==this.enabled)return this.files[n]},remove:function(n){delete this.files[n]},clear:function(){this.files={}}},ht=new uc;Object.assign(gt.prototype,{load:function(n,t,i,r){var f,c,u,l,o,a,s,e;if(void 0===n&&(n=""),void 0!==this.path&&(n=this.path+n),f=this,c=us.get(n),void 0!==c)return f.manager.itemStart(n),setTimeout(function(){t&&t(c);f.manager.itemEnd(n)},0),c;if(u=n.match(/^data:(.*?)(;base64)?,(.*)$/),u){var h=u[1],s=!!u[2],u=u[3],u=window.decodeURIComponent(u);s&&(u=window.atob(u));try{l=(this.responseType||"").toLowerCase();switch(l){case"arraybuffer":case"blob":for(o=new ArrayBuffer(u.length),a=new Uint8Array(o),s=0;s<u.length;s++)a[s]=u.charCodeAt(s);"blob"===l&&(o=new Blob([o],{type:h}));break;case"document":o=(new DOMParser).parseFromString(u,h);break;case"json":o=JSON.parse(u);break;default:o=u}window.setTimeout(function(){t&&t(o);f.manager.itemEnd(n)},0)}catch(v){window.setTimeout(function(){r&&r(v);f.manager.itemEnd(n);f.manager.itemError(n)},0)}}else{e=new XMLHttpRequest;e.open("GET",n,!0);e.addEventListener("load",function(i){var u=i.target.response;us.add(n,u);200===this.status?(t&&t(u),f.manager.itemEnd(n)):0===this.status?(console.warn("THREE.FileLoader: HTTP Status 0 received."),t&&t(u),f.manager.itemEnd(n)):(r&&r(i),f.manager.itemEnd(n),f.manager.itemError(n))},!1);void 0!==i&&e.addEventListener("progress",function(n){i(n)},!1);e.addEventListener("error",function(t){r&&r(t);f.manager.itemEnd(n);f.manager.itemError(n)},!1);void 0!==this.responseType&&(e.responseType=this.responseType);void 0!==this.withCredentials&&(e.withCredentials=this.withCredentials);e.overrideMimeType&&e.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(h in this.requestHeader)e.setRequestHeader(h,this.requestHeader[h]);e.send(null)}return f.manager.itemStart(n),e},setPath:function(n){return this.path=n,this},setResponseType:function(n){return this.responseType=n,this},setWithCredentials:function(n){return this.withCredentials=n,this},setMimeType:function(n){return this.mimeType=n,this},setRequestHeader:function(n){return this.requestHeader=n,this}});Object.assign(dl.prototype,{load:function(n,t,i,r){function l(o){e.load(n[o],function(n){n=h._parser(n,!0);f[o]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps};s+=1;6===s&&(1===n.mipmapCount&&(u.minFilter=1006),u.format=n.format,u.needsUpdate=!0,t&&t(u))},i,r)}var s,h=this,f=[],u=new hu,e,o,c;if(u.image=f,e=new gt(this.manager),e.setPath(this.path),e.setResponseType("arraybuffer"),Array.isArray(n))for(o=s=0,c=n.length;o<c;++o)l(o);else e.load(n,function(n){var e,i,r;if(n=h._parser(n,!0),n.isCubemap)for(e=n.mipmaps.length/n.mipmapCount,i=0;i<e;i++)for(f[i]={mipmaps:[]},r=0;r<n.mipmapCount;r++)f[i].mipmaps.push(n.mipmaps[i*n.mipmapCount+r]),f[i].format=n.format,f[i].width=n.width,f[i].height=n.height;else u.image.width=n.width,u.image.height=n.height,u.mipmaps=n.mipmaps;1===n.mipmapCount&&(u.minFilter=1006);u.format=n.format;u.needsUpdate=!0;t&&t(u)},i,r);return u},setPath:function(n){return this.path=n,this}});Object.assign(fc.prototype,{load:function(n,t,i,r){var e=this,u=new bi,f=new gt(this.manager);return f.setResponseType("arraybuffer"),f.load(n,function(n){(n=e._parser(n))&&(void 0!==n.image?u.image=n.image:void 0!==n.data&&(u.image.width=n.width,u.image.height=n.height,u.image.data=n.data),u.wrapS=void 0!==n.wrapS?n.wrapS:1001,u.wrapT=void 0!==n.wrapT?n.wrapT:1001,u.magFilter=void 0!==n.magFilter?n.magFilter:1006,u.minFilter=void 0!==n.minFilter?n.minFilter:1008,u.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.format&&(u.format=n.format),void 0!==n.type&&(u.type=n.type),void 0!==n.mipmaps&&(u.mipmaps=n.mipmaps),1===n.mipmapCount&&(u.minFilter=1006),u.needsUpdate=!0,t&&t(u,n))},i,r),u}});Object.assign(so.prototype,{crossOrigin:"Anonymous",load:function(n,t,i,r){void 0===n&&(n="");void 0!==this.path&&(n=this.path+n);var u=this,f=us.get(n);return void 0!==f?(u.manager.itemStart(n),setTimeout(function(){t&&t(f);u.manager.itemEnd(n)},0),f):(i=document.createElementNS("http://www.w3.org/1999/xhtml","img"),i.addEventListener("load",function(){us.add(n,this);t&&t(this);u.manager.itemEnd(n)},!1),i.addEventListener("error",function(t){r&&r(t);u.manager.itemEnd(n);u.manager.itemError(n)},!1),"data:"!==n.substr(0,5)&&void 0!==this.crossOrigin&&(i.crossOrigin=this.crossOrigin),u.manager.itemStart(n),i.src=n,i)},setCrossOrigin:function(n){return this.crossOrigin=n,this},setPath:function(n){return this.path=n,this}});Object.assign(ec.prototype,{crossOrigin:"Anonymous",load:function(n,t,i,r){function o(i){f.load(n[i],function(n){u.images[i]=n;e++;6===e&&(u.needsUpdate=!0,t&&t(u))},void 0,r)}var u=new li,f=new so(this.manager),e;for(f.setCrossOrigin(this.crossOrigin),f.setPath(this.path),e=0,i=0;i<n.length;++i)o(i);return u},setCrossOrigin:function(n){return this.crossOrigin=n,this},setPath:function(n){return this.path=n,this}});Object.assign(vs.prototype,{crossOrigin:"Anonymous",load:function(n,t,i,r){var f=new so(this.manager),u;return f.setCrossOrigin(this.crossOrigin),f.setPath(this.path),u=new b,u.image=f.load(n,function(){var i=0<n.search(/\.(jpg|jpeg)$/)||0===n.search(/^data\:image\/jpeg/);u.format=i?1022:1023;u.needsUpdate=!0;void 0!==t&&t(u)},i,r),u},setCrossOrigin:function(n){return this.crossOrigin=n,this},setPath:function(n){return this.path=n,this}});k.prototype=Object.assign(Object.create(u.prototype),{constructor:k,isLight:!0,copy:function(n){return u.prototype.copy.call(this,n),this.color.copy(n.color),this.intensity=n.intensity,this},toJSON:function(n){return n=u.prototype.toJSON.call(this,n),n.object.color=this.color.getHex(),n.object.intensity=this.intensity,void 0!==this.groundColor&&(n.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(n.object.distance=this.distance),void 0!==this.angle&&(n.object.angle=this.angle),void 0!==this.decay&&(n.object.decay=this.decay),void 0!==this.penumbra&&(n.object.penumbra=this.penumbra),void 0!==this.shadow&&(n.object.shadow=this.shadow.toJSON()),n}});ys.prototype=Object.assign(Object.create(k.prototype),{constructor:ys,isHemisphereLight:!0,copy:function(n){return k.prototype.copy.call(this,n),this.groundColor.copy(n.groundColor),this}});Object.assign(lr.prototype,{copy:function(n){return this.camera=n.camera.clone(),this.bias=n.bias,this.radius=n.radius,this.mapSize.copy(n.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var n={};return 0!==this.bias&&(n.bias=this.bias),1!==this.radius&&(n.radius=this.radius),(512!==this.mapSize.x||512!==this.mapSize.y)&&(n.mapSize=this.mapSize.toArray()),n.camera=this.camera.toJSON(!1).object,delete n.camera.matrix,n}});ps.prototype=Object.assign(Object.create(lr.prototype),{constructor:ps,isSpotLightShadow:!0,update:function(n){var t=this.camera,i=2*l.RAD2DEG*n.angle,r=this.mapSize.width/this.mapSize.height;n=n.distance||t.far;(i!==t.fov||r!==t.aspect||n!==t.far)&&(t.fov=i,t.aspect=r,t.far=n,t.updateProjectionMatrix())}});ws.prototype=Object.assign(Object.create(k.prototype),{constructor:ws,isSpotLight:!0,copy:function(n){return k.prototype.copy.call(this,n),this.distance=n.distance,this.angle=n.angle,this.penumbra=n.penumbra,this.decay=n.decay,this.target=n.target.clone(),this.shadow=n.shadow.clone(),this}});bs.prototype=Object.assign(Object.create(k.prototype),{constructor:bs,isPointLight:!0,copy:function(n){return k.prototype.copy.call(this,n),this.distance=n.distance,this.decay=n.decay,this.shadow=n.shadow.clone(),this}});ks.prototype=Object.assign(Object.create(lr.prototype),{constructor:ks});ds.prototype=Object.assign(Object.create(k.prototype),{constructor:ds,isDirectionalLight:!0,copy:function(n){return k.prototype.copy.call(this,n),this.target=n.target.clone(),this.shadow=n.shadow.clone(),this}});gs.prototype=Object.assign(Object.create(k.prototype),{constructor:gs,isAmbientLight:!0});nh.prototype=Object.assign(Object.create(k.prototype),{constructor:nh,isRectAreaLight:!0,copy:function(n){return k.prototype.copy.call(this,n),this.width=n.width,this.height=n.height,this},toJSON:function(n){return n=k.prototype.toJSON.call(this,n),n.object.width=this.width,n.object.height=this.height,n}});nt={arraySlice:function(n,t,i){return nt.isTypedArray(n)?new n.constructor(n.subarray(t,void 0!==i?i:n.length)):n.slice(t,i)},convertArray:function(n,t,i){return!n||!i&&n.constructor===t?n:"number"==typeof t.BYTES_PER_ELEMENT?new t(n):Array.prototype.slice.call(n)},isTypedArray:function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},getKeyframeOrder:function(n){for(var r=n.length,i=Array(r),t=0;t!==r;++t)i[t]=t;return i.sort(function(t,i){return n[t]-n[i]}),i},sortedArray:function(n,t,i){for(var u,r,f=n.length,e=new n.constructor(f),o=0,s=0;s!==f;++o)for(u=i[o]*t,r=0;r!==t;++r)e[s++]=n[u+r];return e},flattenJSON:function(n,t,i,r){for(var f,e=1,u=n[0];void 0!==u&&void 0===u[r];)u=n[e++];if(void 0!==u&&(f=u[r],void 0!==f))if(Array.isArray(f)){do f=u[r],void 0!==f&&(t.push(u.time),i.push.apply(i,f)),u=n[e++];while(void 0!==u)}else if(void 0!==f.toArray){do f=u[r],void 0!==f&&(t.push(u.time),f.toArray(i,i.length)),u=n[e++];while(void 0!==u)}else do f=u[r],void 0!==f&&(t.push(u.time),i.push(f)),u=n[e++];while(void 0!==u)}};Object.assign(st.prototype,{evaluate:function(n){var u=this.parameterPositions,t=this._cachedIndex,r=u[t],i=u[t-1],f;n:{t:{i:{r:if(!(n<r)){for(f=t+2;;){if(void 0===r){if(n<i)break r;return this._cachedIndex=t=u.length,this.afterEnd_(t-1,n,i)}if(t===f)break;if(i=r,r=u[++t],n<r)break t}r=u.length;break i}if(n>=i)break n;else{for(f=u[1],n<f&&(t=2,i=f),f=t-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,n,r);if(t===f)break;if(r=i,i=u[--t-1],n>=i)break t}r=t;t=0}}for(;t<r;)i=t+r>>>1,n<u[i]?r=i:t=i+1;if(r=u[t],i=u[t-1],void 0===i)return this._cachedIndex=0,this.beforeStart_(0,n,r);if(void 0===r)return this._cachedIndex=t=u.length,this.afterEnd_(t-1,i,n)}this._cachedIndex=t;this.intervalChanged_(t,i,r)}return this.interpolate_(t,i,n,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(n){var i=this.resultBuffer,u=this.sampleValues,r=this.valueSize,t;for(n*=r,t=0;t!==r;++t)i[t]=u[n+t];return i},interpolate_:function(){throw Error("call to abstract method");},intervalChanged_:function(){}});Object.assign(st.prototype,{beforeStart_:st.prototype.copySampleValue_,afterEnd_:st.prototype.copySampleValue_});th.prototype=Object.assign(Object.create(st.prototype),{constructor:th,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(n,t,i){var r=this.parameterPositions,u=n-2,f=n+1,e=r[u],o=r[f];if(void 0===e)switch(this.getSettings_().endingStart){case 2401:u=n;e=2*t-i;break;case 2402:u=r.length-2;e=t+r[u]-r[u+1];break;default:u=n;e=i}if(void 0===o)switch(this.getSettings_().endingEnd){case 2401:f=n;o=2*i-t;break;case 2402:f=1;o=i+r[1]-r[0];break;default:f=n-1;o=t}n=.5*(i-t);r=this.valueSize;this._weightPrev=n/(t-e);this._weightNext=n/(o-i);this._offsetPrev=u*r;this._offsetNext=f*r},interpolate_:function(n,t,i,r){var h=this.resultBuffer,o=this.sampleValues,s=this.valueSize;n*=s;var c=n-s,l=this._offsetPrev,a=this._offsetNext,u=this._weightPrev,e=this._weightNext,f=(i-t)/(r-t);for(i=f*f,r=i*f,t=-u*r+2*u*i-u*f,u=(1+u)*r+(-1.5-2*u)*i+(-.5+u)*f+1,f=(-1-e)*r+(1.5+e)*i+.5*f,e=e*r-e*i,i=0;i!==s;++i)h[i]=t*o[l+i]+u*o[c+i]+f*o[n+i]+e*o[a+i];return h}});ho.prototype=Object.assign(Object.create(st.prototype),{constructor:ho,interpolate_:function(n,t,i,r){var f=this.resultBuffer,e=this.sampleValues,u=this.valueSize,o;for(n*=u,o=n-u,t=(i-t)/(r-t),i=1-t,r=0;r!==u;++r)f[r]=e[o+r]*i+e[n+r]*t;return f}});ih.prototype=Object.assign(Object.create(st.prototype),{constructor:ih,interpolate_:function(n){return this.copySampleValue_(n-1)}});ci={TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(n){return new ih(this.times,this.values,this.getValueSize(),n)},InterpolantFactoryMethodLinear:function(n){return new ho(this.times,this.values,this.getValueSize(),n)},InterpolantFactoryMethodSmooth:function(n){return new th(this.times,this.values,this.getValueSize(),n)},setInterpolation:function(n){switch(n){case 2300:var t=this.InterpolantFactoryMethodDiscrete;break;case 2301:t=this.InterpolantFactoryMethodLinear;break;case 2302:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){if(t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,void 0===this.createInterpolant)if(n!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t);console.warn("THREE.KeyframeTrackPrototype:",t)}else this.createInterpolant=t},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(n){if(0!==n)for(var i=this.times,t=0,r=i.length;t!==r;++t)i[t]+=n;return this},scale:function(n){if(1!==n)for(var i=this.times,t=0,r=i.length;t!==r;++t)i[t]*=n;return this},trim:function(n,t){for(var u=this.times,f=u.length,r=0,i=f-1;r!==f&&u[r]<n;)++r;for(;-1!==i&&u[i]>t;)--i;return++i,(0!==r||i!==f)&&(r>=i&&(i=Math.max(i,1),r=i-1),n=this.getValueSize(),this.times=nt.arraySlice(u,r,i),this.values=nt.arraySlice(this.values,r*n,i*n)),this},validate:function(){var r=!0,t=this.getValueSize(),u,n,i;0!=t-Math.floor(t)&&(console.error("THREE.KeyframeTrackPrototype: Invalid value size in track.",this),r=!1);var e=this.times,t=this.values,f=e.length;for(0===f&&(console.error("THREE.KeyframeTrackPrototype: Track is empty.",this),r=!1),u=null,n=0;n!==f;n++){if(i=e[n],"number"==typeof i&&isNaN(i)){console.error("THREE.KeyframeTrackPrototype: Time is not a valid number.",this,n,i);r=!1;break}if(null!==u&&u>i){console.error("THREE.KeyframeTrackPrototype: Out of order keys.",this,n,i,u);r=!1;break}u=i}if(void 0!==t&&nt.isTypedArray(t))for(n=0,e=t.length;n!==e;++n)if(f=t[n],isNaN(f)){console.error("THREE.KeyframeTrackPrototype: Value is not a valid number.",this,n,f);r=!1;break}return r},optimize:function(){for(var n,h,f,e,r=this.times,o=this.values,t=this.getValueSize(),c=2302===this.getInterpolation(),i=1,s=r.length-1,u=1;u<s;++u){if(f=!1,n=r[u],n!==r[u+1]&&(1!==u||n!==n[0]))if(c)f=!0;else{e=u*t;for(var l=e-t,a=e+t,n=0;n!==t;++n)if(h=o[e+n],h!==o[l+n]||h!==o[a+n]){f=!0;break}}if(f){if(u!==i)for(r[i]=r[u],e=u*t,f=i*t,n=0;n!==t;++n)o[f+n]=o[e+n];++i}}if(0<s){for(r[i]=r[s],e=s*t,f=i*t,n=0;n!==t;++n)o[f+n]=o[e+n];++i}return i!==r.length&&(this.times=nt.arraySlice(r,0,i),this.values=nt.arraySlice(o,0,i*t)),this}};of.prototype=Object.assign(Object.create(ci),{constructor:of,ValueTypeName:"vector"});rh.prototype=Object.assign(Object.create(st.prototype),{constructor:rh,interpolate_:function(n,t,i,r){var f=this.resultBuffer,e=this.sampleValues,u=this.valueSize;for(n*=u,t=(i-t)/(r-t),i=n+u;n!==i;n+=4)d.slerpFlat(f,0,e,n-u,e,n,t);return f}});co.prototype=Object.assign(Object.create(ci),{constructor:co,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(n){return new rh(this.times,this.values,this.getValueSize(),n)},InterpolantFactoryMethodSmooth:void 0});sf.prototype=Object.assign(Object.create(ci),{constructor:sf,ValueTypeName:"number"});uh.prototype=Object.assign(Object.create(ci),{constructor:uh,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0});fh.prototype=Object.assign(Object.create(ci),{constructor:fh,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0});eh.prototype=Object.assign(Object.create(ci),{constructor:eh,ValueTypeName:"color"});vr.prototype=ci;ci.constructor=vr;Object.assign(vr,{parse:function(n){var t,i,r;if(void 0===n.type)throw Error("track type undefined, can not parse");return t=vr._getTrackTypeForValueTypeName(n.type),void 0===n.times&&(i=[],r=[],nt.flattenJSON(n.keys,i,r,"value"),n.times=i,n.values=r),void 0!==t.parse?t.parse(n):new t(n.name,n.times,n.values,n.interpolation)},toJSON:function(n){var t=n.constructor,i;return void 0!==t.toJSON?t=t.toJSON(n):(t={name:n.name,times:nt.convertArray(n.times,Array),values:nt.convertArray(n.values,Array)},i=n.getInterpolation(),i!==n.DefaultInterpolation&&(t.interpolation=i)),t.type=n.ValueTypeName,t},_getTrackTypeForValueTypeName:function(n){switch(n.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return sf;case"vector":case"vector2":case"vector3":case"vector4":return of;case"color":return eh;case"quaternion":return co;case"bool":case"boolean":return fh;case"string":return uh}throw Error("Unsupported typeName: "+n);}});Object.assign(at,{parse:function(n){for(var i=[],r=n.tracks,u=1/(n.fps||1),t=0,f=r.length;t!==f;++t)i.push(vr.parse(r[t]).scale(u));return new at(n.name,n.duration,i)},toJSON:function(n){var i=[],r=n.tracks,t,u;for(n={name:n.name,duration:n.duration,tracks:i},t=0,u=r.length;t!==u;++t)i.push(vr.toJSON(r[t]));return n},CreateFromMorphTargetSequence:function(n,t,i,r){for(var u,f,o=t.length,s=[],e=0;e<o;e++){u=[];f=[];u.push((e+o-1)%o,e,(e+1)%o);f.push(0,1,0);var h=nt.getKeyframeOrder(u),u=nt.sortedArray(u,1,h),f=nt.sortedArray(f,1,h);r||0!==u[0]||(u.push(o),f.push(f[0]));s.push(new sf(".morphTargetInfluences["+t[e].name+"]",u,f).scale(1/i))}return new at(n,-1,s)},findByName:function(n,t){var i=n;for(Array.isArray(n)||(i=n.geometry&&n.geometry.animations||n.animations),n=0;n<i.length;n++)if(i[n].name===t)return i[n];return null},CreateClipsFromMorphTargetSequences:function(n,t,i){for(var e,r,u,f={},o=0,s=n.length;o<s;o++)e=n[o],r=e.name.match(/^([\w-]*?)([\d]+)$/),r&&1<r.length&&(u=r[1],(r=f[u])||(f[u]=r=[]),r.push(e));n=[];for(u in f)n.push(at.CreateFromMorphTargetSequence(u,f[u],t,i));return n},parseAnimation:function(n,t){var o,i,u,r,f,s,h;if(!n)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var c=function(n,t,i,r,u){if(0!==i.length){var f=[],e=[];nt.flattenJSON(i,f,e,r);0!==f.length&&u.push(new n(t,f,e))}},e=[],v=n.name||"default",u=n.length||-1,y=n.fps||30;for(n=n.hierarchy||[],o=0;o<n.length;o++)if(i=n[o].keys,i&&0!==i.length)if(i[0].morphTargets){for(u={},r=0;r<i.length;r++)if(i[r].morphTargets)for(f=0;f<i[r].morphTargets.length;f++)u[i[r].morphTargets[f]]=-1;for(s in u){for(var l=[],a=[],f=0;f!==i[r].morphTargets.length;++f)h=i[r],l.push(h.time),a.push(h.morphTarget===s?1:0);e.push(new sf(".morphTargetInfluence["+s+"]",l,a))}u=u.length*(y||1)}else r=".bones["+t[o].name+"]",c(of,r+".position",i,"pos",e),c(co,r+".quaternion",i,"rot",e),c(of,r+".scale",i,"scl",e);return 0===e.length?null:new at(v,u,e)}});Object.assign(at.prototype,{resetDuration:function(){for(var n,t=0,i=0,r=this.tracks.length;i!==r;++i)n=this.tracks[i],t=Math.max(t,n.times[n.times.length-1]);this.duration=t},trim:function(){for(var n=0;n<this.tracks.length;n++)this.tracks[n].trim(0,this.duration);return this},optimize:function(){for(var n=0;n<this.tracks.length;n++)this.tracks[n].optimize();return this}});Object.assign(oh.prototype,{load:function(n,t,i,r){var u=this;new gt(u.manager).load(n,function(n){t(u.parse(JSON.parse(n)))},i,r)},setTextures:function(n){this.textures=n},parse:function(n){function r(n){return void 0===f[n]&&console.warn("THREE.MaterialLoader: Undefined texture",n),f[n]}var f=this.textures,t=new dp[n.type],u;return void 0!==n.uuid&&(t.uuid=n.uuid),void 0!==n.name&&(t.name=n.name),void 0!==n.color&&t.color.setHex(n.color),void 0!==n.roughness&&(t.roughness=n.roughness),void 0!==n.metalness&&(t.metalness=n.metalness),void 0!==n.emissive&&t.emissive.setHex(n.emissive),void 0!==n.specular&&t.specular.setHex(n.specular),void 0!==n.shininess&&(t.shininess=n.shininess),void 0!==n.clearCoat&&(t.clearCoat=n.clearCoat),void 0!==n.clearCoatRoughness&&(t.clearCoatRoughness=n.clearCoatRoughness),void 0!==n.uniforms&&(t.uniforms=n.uniforms),void 0!==n.vertexShader&&(t.vertexShader=n.vertexShader),void 0!==n.fragmentShader&&(t.fragmentShader=n.fragmentShader),void 0!==n.vertexColors&&(t.vertexColors=n.vertexColors),void 0!==n.fog&&(t.fog=n.fog),void 0!==n.flatShading&&(t.flatShading=n.flatShading),void 0!==n.blending&&(t.blending=n.blending),void 0!==n.side&&(t.side=n.side),void 0!==n.opacity&&(t.opacity=n.opacity),void 0!==n.transparent&&(t.transparent=n.transparent),void 0!==n.alphaTest&&(t.alphaTest=n.alphaTest),void 0!==n.depthTest&&(t.depthTest=n.depthTest),void 0!==n.depthWrite&&(t.depthWrite=n.depthWrite),void 0!==n.colorWrite&&(t.colorWrite=n.colorWrite),void 0!==n.wireframe&&(t.wireframe=n.wireframe),void 0!==n.wireframeLinewidth&&(t.wireframeLinewidth=n.wireframeLinewidth),void 0!==n.wireframeLinecap&&(t.wireframeLinecap=n.wireframeLinecap),void 0!==n.wireframeLinejoin&&(t.wireframeLinejoin=n.wireframeLinejoin),void 0!==n.skinning&&(t.skinning=n.skinning),void 0!==n.morphTargets&&(t.morphTargets=n.morphTargets),void 0!==n.shading&&(t.shading=n.shading),void 0!==n.size&&(t.size=n.size),void 0!==n.sizeAttenuation&&(t.sizeAttenuation=n.sizeAttenuation),void 0!==n.map&&(t.map=r(n.map)),void 0!==n.alphaMap&&(t.alphaMap=r(n.alphaMap),t.transparent=!0),void 0!==n.bumpMap&&(t.bumpMap=r(n.bumpMap)),void 0!==n.bumpScale&&(t.bumpScale=n.bumpScale),void 0!==n.normalMap&&(t.normalMap=r(n.normalMap)),void 0!==n.normalScale&&(u=n.normalScale,!1===Array.isArray(u)&&(u=[u,u]),t.normalScale=(new i).fromArray(u)),void 0!==n.displacementMap&&(t.displacementMap=r(n.displacementMap)),void 0!==n.displacementScale&&(t.displacementScale=n.displacementScale),void 0!==n.displacementBias&&(t.displacementBias=n.displacementBias),void 0!==n.roughnessMap&&(t.roughnessMap=r(n.roughnessMap)),void 0!==n.metalnessMap&&(t.metalnessMap=r(n.metalnessMap)),void 0!==n.emissiveMap&&(t.emissiveMap=r(n.emissiveMap)),void 0!==n.emissiveIntensity&&(t.emissiveIntensity=n.emissiveIntensity),void 0!==n.specularMap&&(t.specularMap=r(n.specularMap)),void 0!==n.envMap&&(t.envMap=r(n.envMap)),void 0!==n.reflectivity&&(t.reflectivity=n.reflectivity),void 0!==n.lightMap&&(t.lightMap=r(n.lightMap)),void 0!==n.lightMapIntensity&&(t.lightMapIntensity=n.lightMapIntensity),void 0!==n.aoMap&&(t.aoMap=r(n.aoMap)),void 0!==n.aoMapIntensity&&(t.aoMapIntensity=n.aoMapIntensity),void 0!==n.gradientMap&&(t.gradientMap=r(n.gradientMap)),t}});Object.assign(oc.prototype,{load:function(n,t,i,r){var u=this;new gt(u.manager).load(n,function(n){t(u.parse(JSON.parse(n)))},i,r)},parse:function(n){var e=new f,i=n.data.index,o,u,r;void 0!==i&&(i=new il[i.type](i.array),e.setIndex(new c(i,1)));o=n.data.attributes;for(r in o)u=o[r],i=new il[u.type](u.array),e.addAttribute(r,new c(i,u.itemSize,u.normalized));if(r=n.data.groups||n.data.drawcalls||n.data.offsets,void 0!==r)for(i=0,o=r.length;i!==o;++i)u=r[i],e.addGroup(u.start,u.count,u.materialIndex);return n=n.data.boundingSphere,void 0!==n&&(r=new t,void 0!==n.center&&r.fromArray(n.center),e.boundingSphere=new pt(r,n.radius)),e}});il={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};hf.Handlers={handlers:[],add:function(n,t){this.handlers.push(n,t)},get:function(n){for(var r,i=this.handlers,t=0,u=i.length;t<u;t+=2)if(r=i[t+1],i[t].test(n))return r;return null}};Object.assign(hf.prototype,{crossOrigin:void 0,extractUrlBase:function(n){return(n=n.split("/"),1===n.length)?"./":(n.pop(),n.join("/")+"/")},initMaterials:function(n,t,i){for(var u=[],r=0;r<n.length;++r)u[r]=this.createMaterial(n[r],t,i);return u},createMaterial:function(){var r={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},n=new e,t=new vs,i=new oh;return function(u,f,e){function h(n,i,r,u,o){n=f+n;var s=hf.Handlers.get(n);return null!==s?n=s.load(n):(t.setCrossOrigin(e),n=t.load(n)),void 0!==i&&(n.repeat.fromArray(i),1!==i[0]&&(n.wrapS=1e3),1!==i[1]&&(n.wrapT=1e3)),void 0!==r&&n.offset.fromArray(r),void 0!==u&&("repeat"===u[0]&&(n.wrapS=1e3),"mirror"===u[0]&&(n.wrapS=1002),"repeat"===u[1]&&(n.wrapT=1e3),"mirror"===u[1]&&(n.wrapT=1002)),void 0!==o&&(n.anisotropy=o),i=l.generateUUID(),a[i]=n,i}var a={},o={uuid:l.generateUUID(),type:"MeshLambertMaterial"},c,s;for(c in u){s=u[c];switch(c){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":o.name=s;break;case"blending":o.blending=r[s];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",c,"is no longer supported.");break;case"colorDiffuse":o.color=n.fromArray(s).getHex();break;case"colorSpecular":o.specular=n.fromArray(s).getHex();break;case"colorEmissive":o.emissive=n.fromArray(s).getHex();break;case"specularCoef":o.shininess=s;break;case"shading":"basic"===s.toLowerCase()&&(o.type="MeshBasicMaterial");"phong"===s.toLowerCase()&&(o.type="MeshPhongMaterial");"standard"===s.toLowerCase()&&(o.type="MeshStandardMaterial");break;case"mapDiffuse":o.map=h(s,u.mapDiffuseRepeat,u.mapDiffuseOffset,u.mapDiffuseWrap,u.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":o.emissiveMap=h(s,u.mapEmissiveRepeat,u.mapEmissiveOffset,u.mapEmissiveWrap,u.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":o.lightMap=h(s,u.mapLightRepeat,u.mapLightOffset,u.mapLightWrap,u.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":o.aoMap=h(s,u.mapAORepeat,u.mapAOOffset,u.mapAOWrap,u.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":o.bumpMap=h(s,u.mapBumpRepeat,u.mapBumpOffset,u.mapBumpWrap,u.mapBumpAnisotropy);break;case"mapBumpScale":o.bumpScale=s;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":o.normalMap=h(s,u.mapNormalRepeat,u.mapNormalOffset,u.mapNormalWrap,u.mapNormalAnisotropy);break;case"mapNormalFactor":o.normalScale=[s,s];break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":o.specularMap=h(s,u.mapSpecularRepeat,u.mapSpecularOffset,u.mapSpecularWrap,u.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":o.metalnessMap=h(s,u.mapMetalnessRepeat,u.mapMetalnessOffset,u.mapMetalnessWrap,u.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":o.roughnessMap=h(s,u.mapRoughnessRepeat,u.mapRoughnessOffset,u.mapRoughnessWrap,u.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":o.alphaMap=h(s,u.mapAlphaRepeat,u.mapAlphaOffset,u.mapAlphaWrap,u.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":o.side=1;break;case"doubleSided":o.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity");o.opacity=s;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":o[c]=s;break;case"vertexColors":!0===s&&(o.vertexColors=2);"face"===s&&(o.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",c,s)}}return"MeshBasicMaterial"===o.type&&delete o.emissive,"MeshPhongMaterial"!==o.type&&delete o.specular,1>o.opacity&&(o.transparent=!0),i.setTextures(a),i.parse(o)}}()});Object.assign(sc.prototype,{load:function(n,t,i,r){var f=this,e=this.texturePath&&"string"==typeof this.texturePath?this.texturePath:hf.prototype.extractUrlBase(n),u=new gt(this.manager);u.setWithCredentials(this.withCredentials);u.load(n,function(i){i=JSON.parse(i);var r=i.metadata;if(void 0!==r&&(r=r.type,void 0!==r)){if("object"===r.toLowerCase()){console.error("THREE.JSONLoader: "+n+" should be loaded with THREE.ObjectLoader instead.");return}if("scene"===r.toLowerCase()){console.error("THREE.JSONLoader: "+n+" should be loaded with THREE.SceneLoader instead.");return}}i=f.parse(i,e);t(i.geometry,i.materials)},i,r)},setTexturePath:function(n){this.texturePath=n},parse:function(){return function(n,r){var u,v,w,p,rt,d,ft,g,tt;void 0!==n.data&&(n=n.data);n.scale=void 0!==n.scale?1/n.scale:1;var c=new h,f=n,o,ut,s,l=f.faces,b=f.vertices,k=f.normals,it=f.colors,a=f.scale,nt=0;if(void 0!==f.uvs){for(o=0;o<f.uvs.length;o++)f.uvs[o].length&&nt++;for(o=0;o<nt;o++)c.faceVertexUvs[o]=[]}for(u=0,s=b.length;u<s;)o=new t,o.x=b[u++]*a,o.y=b[u++]*a,o.z=b[u++]*a,c.vertices.push(o);for(u=0,s=l.length;u<s;)if(b=l[u++],v=b&1,w=b&2,o=b&8,p=b&16,rt=b&32,a=b&64,b&=128,v){if(v=new ei,v.a=l[u],v.b=l[u+1],v.c=l[u+3],d=new ei,d.a=l[u+1],d.b=l[u+2],d.c=l[u+3],u+=4,w&&(w=l[u++],v.materialIndex=w,d.materialIndex=w),w=c.faces.length,o)for(o=0;o<nt;o++)for(ft=f.uvs[o],c.faceVertexUvs[o][w]=[],c.faceVertexUvs[o][w+1]=[],ut=0;4>ut;ut++)g=l[u++],tt=ft[2*g],g=ft[2*g+1],tt=new i(tt,g),2!==ut&&c.faceVertexUvs[o][w].push(tt),0!==ut&&c.faceVertexUvs[o][w+1].push(tt);if(p&&(p=3*l[u++],v.normal.set(k[p++],k[p++],k[p]),d.normal.copy(v.normal)),rt)for(o=0;4>o;o++)p=3*l[u++],rt=new t(k[p++],k[p++],k[p]),2!==o&&v.vertexNormals.push(rt),0!==o&&d.vertexNormals.push(rt);if(a&&(a=l[u++],a=it[a],v.color.setHex(a),d.color.setHex(a)),b)for(o=0;4>o;o++)a=l[u++],a=it[a],2!==o&&v.vertexColors.push(new e(a)),0!==o&&d.vertexColors.push(new e(a));c.faces.push(v);c.faces.push(d)}else{if(v=new ei,v.a=l[u++],v.b=l[u++],v.c=l[u++],w&&(w=l[u++],v.materialIndex=w),w=c.faces.length,o)for(o=0;o<nt;o++)for(ft=f.uvs[o],c.faceVertexUvs[o][w]=[],ut=0;3>ut;ut++)g=l[u++],tt=ft[2*g],g=ft[2*g+1],tt=new i(tt,g),c.faceVertexUvs[o][w].push(tt);if(p&&(p=3*l[u++],v.normal.set(k[p++],k[p++],k[p])),rt)for(o=0;3>o;o++)p=3*l[u++],rt=new t(k[p++],k[p++],k[p]),v.vertexNormals.push(rt);if(a&&(a=l[u++],v.color.setHex(it[a])),b)for(o=0;3>o;o++)a=l[u++],v.vertexColors.push(new e(it[a]));c.faces.push(v)}if(f=n,u=void 0!==f.influencesPerVertex?f.influencesPerVertex:2,f.skinWeights)for(s=0,l=f.skinWeights.length;s<l;s+=u)c.skinWeights.push(new y(f.skinWeights[s],1<u?f.skinWeights[s+1]:0,2<u?f.skinWeights[s+2]:0,3<u?f.skinWeights[s+3]:0));if(f.skinIndices)for(s=0,l=f.skinIndices.length;s<l;s+=u)c.skinIndices.push(new y(f.skinIndices[s],1<u?f.skinIndices[s+1]:0,2<u?f.skinIndices[s+2]:0,3<u?f.skinIndices[s+3]:0));if(c.bones=f.bones,c.bones&&0<c.bones.length&&(c.skinWeights.length!==c.skinIndices.length||c.skinIndices.length!==c.vertices.length)&&console.warn("When skinning, number of vertices ("+c.vertices.length+"), skinIndices ("+c.skinIndices.length+"), and skinWeights ("+c.skinWeights.length+") should match."),s=n,l=s.scale,void 0!==s.morphTargets)for(f=0,u=s.morphTargets.length;f<u;f++)for(c.morphTargets[f]={},c.morphTargets[f].name=s.morphTargets[f].name,c.morphTargets[f].vertices=[],k=c.morphTargets[f].vertices,it=s.morphTargets[f].vertices,nt=0,b=it.length;nt<b;nt+=3)a=new t,a.x=it[nt]*l,a.y=it[nt+1]*l,a.z=it[nt+2]*l,k.push(a);if(void 0!==s.morphColors&&0<s.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),l=c.faces,s=s.morphColors[0].colors,f=0,u=l.length;f<u;f++)l[f].color.fromArray(s,3*f);for(s=n,f=[],u=[],void 0!==s.animation&&u.push(s.animation),void 0!==s.animations&&(s.animations.length?u=u.concat(s.animations):u.push(s.animations)),s=0;s<u.length;s++)(l=at.parseAnimation(u[s],c.bones))&&f.push(l);return(c.morphTargets&&(u=at.CreateClipsFromMorphTargetSequences(c.morphTargets,10),f=f.concat(u)),0<f.length&&(c.animations=f),c.computeFaceNormals(),c.computeBoundingSphere(),void 0===n.materials||0===n.materials.length)?{geometry:c}:(n=hf.prototype.initMaterials(n.materials,r,this.crossOrigin),{geometry:c,materials:n})}}()});Object.assign(gl.prototype,{load:function(n,t,i,r){""===this.texturePath&&(this.texturePath=n.substring(0,n.lastIndexOf("/")+1));var u=this;new gt(u.manager).load(n,function(i){var f=null;try{f=JSON.parse(i)}catch(e){void 0!==r&&r(e);console.error("THREE:ObjectLoader: Can't parse "+n+".",e.message);return}i=f.metadata;void 0===i||void 0===i.type||"geometry"===i.type.toLowerCase()?console.error("THREE.ObjectLoader: Can't load "+n+". Use THREE.JSONLoader instead."):u.parse(f,t)},i,r)},setTexturePath:function(n){this.texturePath=n},setCrossOrigin:function(n){this.crossOrigin=n},parse:function(n,t){var u=this.parseGeometries(n.geometries),i=this.parseImages(n.images,function(){void 0!==t&&t(r)}),i=this.parseTextures(n.textures,i),i=this.parseMaterials(n.materials,i),r=this.parseObject(n.object,u,i);return n.animations&&(r.animations=this.parseAnimations(n.animations)),void 0!==n.images&&0!==n.images.length||void 0===t||t(r),r},parseGeometries:function(n){var u={},t,i;if(void 0!==n)for(var f=new sc,e=new oc,r=0,o=n.length;r<o;r++){t=n[r];switch(t.type){case"PlaneGeometry":case"PlaneBufferGeometry":i=new yt[t.type](t.width,t.height,t.widthSegments,t.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":i=new yt[t.type](t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":i=new yt[t.type](t.radius,t.segments,t.thetaStart,t.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":i=new yt[t.type](t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":i=new yt[t.type](t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":i=new yt[t.type](t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength);break;case"DodecahedronGeometry":case"IcosahedronGeometry":case"OctahedronGeometry":case"TetrahedronGeometry":i=new yt[t.type](t.radius,t.detail);break;case"RingGeometry":case"RingBufferGeometry":i=new yt[t.type](t.innerRadius,t.outerRadius,t.thetaSegments,t.phiSegments,t.thetaStart,t.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":i=new yt[t.type](t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":i=new yt[t.type](t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q);break;case"LatheGeometry":case"LatheBufferGeometry":i=new yt[t.type](t.points,t.segments,t.phiStart,t.phiLength);break;case"BufferGeometry":i=e.parse(t);break;case"Geometry":i=f.parse(t,this.texturePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+t.type+'"');continue}i.uuid=t.uuid;void 0!==t.name&&(i.name=t.name);u[t.uuid]=i}return u},parseMaterials:function(n,t){var f={},r,o,i,e,u;if(void 0!==n)for(r=new oh,r.setTextures(t),t=0,o=n.length;t<o;t++)if(i=n[t],"MultiMaterial"===i.type){for(e=[],u=0;u<i.materials.length;u++)e.push(r.parse(i.materials[u]));f[i.uuid]=e}else f[i.uuid]=r.parse(i);return f},parseAnimations:function(n){for(var i,r=[],t=0;t<n.length;t++)i=at.parse(n[t]),r.push(i);return r},parseImages:function(n,t){function s(n){return i.manager.itemStart(n),u.load(n,function(){i.manager.itemEnd(n)},void 0,function(){i.manager.itemEnd(n);i.manager.itemError(n)})}var i=this,f={},u,e,r,o;if(void 0!==n&&0<n.length)for(t=new uc(t),u=new so(t),u.setCrossOrigin(this.crossOrigin),t=0,e=n.length;t<e;t++)r=n[t],o=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(r.url)?r.url:i.texturePath+r.url,f[r.uuid]=s(o);return f},parseTextures:function(n,t){function u(n,t){return"number"==typeof n?n:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",n),t[n])}var e={},f,o,i,r;if(void 0!==n)for(f=0,o=n.length;f<o;f++)i=n[f],void 0===i.image&&console.warn('THREE.ObjectLoader: No "image" specified for',i.uuid),void 0===t[i.image]&&console.warn("THREE.ObjectLoader: Undefined image",i.image),r=new b(t[i.image]),r.needsUpdate=!0,r.uuid=i.uuid,void 0!==i.name&&(r.name=i.name),void 0!==i.mapping&&(r.mapping=u(i.mapping,gp)),void 0!==i.offset&&r.offset.fromArray(i.offset),void 0!==i.repeat&&r.repeat.fromArray(i.repeat),void 0!==i.wrap&&(r.wrapS=u(i.wrap[0],fv),r.wrapT=u(i.wrap[1],fv)),void 0!==i.minFilter&&(r.minFilter=u(i.minFilter,ev)),void 0!==i.magFilter&&(r.magFilter=u(i.magFilter,ev)),void 0!==i.anisotropy&&(r.anisotropy=i.anisotropy),void 0!==i.flipY&&(r.flipY=i.flipY),e[i.uuid]=r;return e},parseObject:function(){var n=new s;return function(t,i,r){function c(n){return void 0===i[n]&&console.warn("THREE.ObjectLoader: Undefined geometry",n),i[n]}function h(n){var t;if(void 0!==n){if(Array.isArray(n)){for(var u=[],i=0,f=n.length;i<f;i++)t=n[i],void 0===r[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),u.push(r[t]);return u}return void 0===r[n]&&console.warn("THREE.ObjectLoader: Undefined material",n),r[n]}}var f,o,s,l;switch(t.type){case"Scene":f=new ss;void 0!==t.background&&Number.isInteger(t.background)&&(f.background=new e(t.background));void 0!==t.fog&&("Fog"===t.fog.type?f.fog=new ou(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(f.fog=new eu(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":f=new g(t.fov,t.aspect,t.near,t.far);void 0!==t.focus&&(f.focus=t.focus);void 0!==t.zoom&&(f.zoom=t.zoom);void 0!==t.filmGauge&&(f.filmGauge=t.filmGauge);void 0!==t.filmOffset&&(f.filmOffset=t.filmOffset);void 0!==t.view&&(f.view=Object.assign({},t.view));break;case"OrthographicCamera":f=new ru(t.left,t.right,t.top,t.bottom,t.near,t.far);break;case"AmbientLight":f=new gs(t.color,t.intensity);break;case"DirectionalLight":f=new ds(t.color,t.intensity);break;case"PointLight":f=new bs(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":f=new nh(t.color,t.intensity,t.width,t.height);break;case"SpotLight":f=new ws(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":f=new ys(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":f=c(t.geometry);o=h(t.material);f=f.bones&&0<f.bones.length?new cs(f,o):new it(f,o);break;case"LOD":f=new he;break;case"Line":f=new ut(c(t.geometry),h(t.material),t.mode);break;case"LineLoop":f=new ls(c(t.geometry),h(t.material));break;case"LineSegments":f=new w(c(t.geometry),h(t.material));break;case"PointCloud":case"Points":f=new su(c(t.geometry),h(t.material));break;case"Sprite":f=new se(h(t.material));break;case"Group":f=new le;break;default:f=new u}if(f.uuid=t.uuid,void 0!==t.name&&(f.name=t.name),void 0!==t.matrix?(n.fromArray(t.matrix),n.decompose(f.position,f.quaternion,f.scale)):(void 0!==t.position&&f.position.fromArray(t.position),void 0!==t.rotation&&f.rotation.fromArray(t.rotation),void 0!==t.quaternion&&f.quaternion.fromArray(t.quaternion),void 0!==t.scale&&f.scale.fromArray(t.scale)),void 0!==t.castShadow&&(f.castShadow=t.castShadow),void 0!==t.receiveShadow&&(f.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(f.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(f.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&f.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(f.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(f.visible=t.visible),void 0!==t.userData&&(f.userData=t.userData),void 0!==t.children)for(o=t.children,s=0;s<o.length;s++)f.add(this.parseObject(o[s],i,r));if("LOD"===t.type)for(t=t.levels,o=0;o<t.length;o++)s=t[o],l=f.getObjectByProperty("uuid",s.object),void 0!==l&&f.addLevel(l,s.distance);return f}}()});var gp={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},fv={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},ev={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};Object.assign(rt.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(n){return n=this.getUtoTmapping(n),this.getPoint(n)},getPoints:function(n){void 0===n&&(n=5);for(var i=[],t=0;t<=n;t++)i.push(this.getPoint(t/n));return i},getSpacedPoints:function(n){void 0===n&&(n=5);for(var i=[],t=0;t<=n;t++)i.push(this.getPointAt(t/n));return i},getLength:function(){var n=this.getLengths();return n[n.length-1]},getLengths:function(n){var i;if(void 0===n&&(n=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===n+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var r=[],u=this.getPoint(0),t,f=0;for(r.push(0),t=1;t<=n;t++)i=this.getPoint(t/n),f+=i.distanceTo(u),r.push(f),u=i;return this.cacheArcLengths=r},updateArcLengths:function(){this.needsUpdate=!0;this.getLengths()},getUtoTmapping:function(n,t){var r=this.getLengths(),f=r.length,i,u,e;for(t=t?t:n*r[f-1],i=0,u=f-1;i<=u;)if(n=Math.floor(i+(u-i)/2),e=r[n]-t,0>e)i=n+1;else if(0<e)u=n-1;else{u=n;break}return(n=u,r[n]===t)?n/(f-1):(i=r[n],(n+(t-i)/(r[n+1]-i))/(f-1))},getTangent:function(n){var t=n-.0001;return n+=.0001,0>t&&(t=0),1<n&&(n=1),t=this.getPoint(t),this.getPoint(n).clone().sub(t).normalize()},getTangentAt:function(n){return n=this.getUtoTmapping(n),this.getTangent(n)},computeFrenetFrames:function(n,i){for(var e=new t,u=[],f=[],o=[],h=new t,v=new s,c,a,y,r=0;r<=n;r++)c=r/n,u[r]=this.getTangentAt(c),u[r].normalize();for(f[0]=new t,o[0]=new t,r=Number.MAX_VALUE,c=Math.abs(u[0].x),a=Math.abs(u[0].y),y=Math.abs(u[0].z),c<=r&&(r=c,e.set(1,0,0)),a<=r&&(r=a,e.set(0,1,0)),y<=r&&e.set(0,0,1),h.crossVectors(u[0],e).normalize(),f[0].crossVectors(u[0],h),o[0].crossVectors(u[0],f[0]),r=1;r<=n;r++)f[r]=f[r-1].clone(),o[r]=o[r-1].clone(),h.crossVectors(u[r-1],u[r]),h.length()>Number.EPSILON&&(h.normalize(),e=Math.acos(l.clamp(u[r-1].dot(u[r]),-1,1)),f[r].applyMatrix4(v.makeRotationAxis(h,e))),o[r].crossVectors(u[r],f[r]);if(!0===i)for(e=Math.acos(l.clamp(f[0].dot(f[n]),-1,1)),e/=n,0<u[0].dot(h.crossVectors(f[0],f[n]))&&(e=-e),r=1;r<=n;r++)f[r].applyMatrix4(v.makeRotationAxis(u[r],e*r)),o[r].crossVectors(u[r],f[r]);return{tangents:u,normals:f,binormals:o}}});ri.prototype=Object.create(rt.prototype);ri.prototype.constructor=ri;ri.prototype.isLineCurve=!0;ri.prototype.getPoint=function(n){if(1===n)return this.v2.clone();var t=this.v2.clone().sub(this.v1);return t.multiplyScalar(n).add(this.v1),t};ri.prototype.getPointAt=function(n){return this.getPoint(n)};ri.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()};lo.prototype=Object.assign(Object.create(rt.prototype),{constructor:lo,add:function(n){this.curves.push(n)},closePath:function(){var n=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);n.equals(t)||this.curves.push(new ri(t,n))},getPoint:function(n){var i=n*this.getLength(),t=this.getCurveLengths();for(n=0;n<t.length;){if(t[n]>=i)return i=t[n]-i,n=this.curves[n],t=n.getLength(),n.getPointAt(0===t?0:1-i/t);n++}return null},getLength:function(){var n=this.getCurveLengths();return n[n.length-1]},updateArcLengths:function(){this.needsUpdate=!0;this.cacheLengths=null;this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],i=0,n=0,r=this.curves.length;n<r;n++)i+=this.curves[n].getLength(),t.push(i);return this.cacheLengths=t},getSpacedPoints:function(n){void 0===n&&(n=40);for(var t=[],i=0;i<=n;i++)t.push(this.getPoint(i/n));return this.autoClose&&t.push(t[0]),t},getPoints:function(n){var r;n=n||12;for(var i=[],u,f=0,o=this.curves;f<o.length;f++)for(var t=o[f],t=t.getPoints(t&&t.isEllipseCurve?2*n:t&&t.isLineCurve?1:t&&t.isSplineCurve?n*t.points.length:n),e=0;e<t.length;e++)r=t[e],u&&u.equals(r)||(i.push(r),u=r);return this.autoClose&&1<i.length&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i},createPointsGeometry:function(n){return n=this.getPoints(n),this.createGeometry(n)},createSpacedPointsGeometry:function(n){return n=this.getSpacedPoints(n),this.createGeometry(n)},createGeometry:function(n){for(var i,u=new h,r=0,f=n.length;r<f;r++)i=n[r],u.vertices.push(new t(i.x,i.y,i.z||0));return u}});hi.prototype=Object.create(rt.prototype);hi.prototype.constructor=hi;hi.prototype.isEllipseCurve=!0;hi.prototype.getPoint=function(n){for(var u,r=2*Math.PI,t=this.aEndAngle-this.aStartAngle,f=Math.abs(t)<Number.EPSILON;0>t;)t+=r;for(;t>r;)t-=r;return t<Number.EPSILON&&(t=f?0:r),!0!==this.aClockwise||f||(t=t===r?-r:t-r),r=this.aStartAngle+n*t,n=this.aX+this.xRadius*Math.cos(r),u=this.aY+this.yRadius*Math.sin(r),0!==this.aRotation&&(r=Math.cos(this.aRotation),t=Math.sin(this.aRotation),f=n-this.aX,u-=this.aY,n=f*r-u*t+this.aX,u=f*t+u*r+this.aY),new i(n,u)};wr.prototype=Object.create(rt.prototype);wr.prototype.constructor=wr;wr.prototype.isSplineCurve=!0;wr.prototype.getPoint=function(n){var t=this.points,r=(t.length-1)*n;n=Math.floor(r);var r=r-n,u=t[0===n?n:n-1],f=t[n],e=t[n>t.length-2?t.length-1:n+1],t=t[n>t.length-3?t.length-1:n+2];return new i(na(r,u.x,f.x,e.x,t.x),na(r,u.y,f.y,e.y,t.y))};cf.prototype=Object.create(rt.prototype);cf.prototype.constructor=cf;cf.prototype.getPoint=function(n){var t=this.v0,r=this.v1,u=this.v2,f=this.v3;return new i(pr(n,t.x,r.x,u.x,f.x),pr(n,t.y,r.y,u.y,f.y))};lf.prototype=Object.create(rt.prototype);lf.prototype.constructor=lf;lf.prototype.getPoint=function(n){var t=this.v0,r=this.v1,u=this.v2;return new i(yr(n,t.x,r.x,u.x),yr(n,t.y,r.y,u.y))};yh=Object.assign(Object.create(lo.prototype),{fromPoints:function(n){this.moveTo(n[0].x,n[0].y);for(var t=1,i=n.length;t<i;t++)this.lineTo(n[t].x,n[t].y)},moveTo:function(n,t){this.currentPoint.set(n,t)},lineTo:function(n,t){var r=new ri(this.currentPoint.clone(),new i(n,t));this.curves.push(r);this.currentPoint.set(n,t)},quadraticCurveTo:function(n,t,r,u){n=new lf(this.currentPoint.clone(),new i(n,t),new i(r,u));this.curves.push(n);this.currentPoint.set(r,u)},bezierCurveTo:function(n,t,r,u,f,e){n=new cf(this.currentPoint.clone(),new i(n,t),new i(r,u),new i(f,e));this.curves.push(n);this.currentPoint.set(f,e)},splineThru:function(n){var t=[this.currentPoint.clone()].concat(n),t=new wr(t);this.curves.push(t);this.currentPoint.copy(n[n.length-1])},arc:function(n,t,i,r,u,f){this.absarc(n+this.currentPoint.x,t+this.currentPoint.y,i,r,u,f)},absarc:function(n,t,i,r,u,f){this.absellipse(n,t,i,i,r,u,f)},ellipse:function(n,t,i,r,u,f,e,o){this.absellipse(n+this.currentPoint.x,t+this.currentPoint.y,i,r,u,f,e,o)},absellipse:function(n,t,i,r,u,f,e,o){n=new hi(n,t,i,r,u,f,e,o);0<this.curves.length&&(t=n.getPoint(0),t.equals(this.currentPoint)||this.lineTo(t.x,t.y));this.curves.push(n);n=n.getPoint(1);this.currentPoint.copy(n)}});ao.prototype=yh;yh.constructor=ao;br.prototype=Object.assign(Object.create(yh),{constructor:br,getPointsHoles:function(n){for(var i=[],t=0,r=this.holes.length;t<r;t++)i[t]=this.holes[t].getPoints(n);return i},extractAllPoints:function(n){return{shape:this.getPoints(n),holes:this.getPointsHoles(n)}},extractPoints:function(n){return this.extractAllPoints(n)}});Object.assign(hc.prototype,{moveTo:function(n,t){this.currentPath=new ao;this.subPaths.push(this.currentPath);this.currentPath.moveTo(n,t)},lineTo:function(n,t){this.currentPath.lineTo(n,t)},quadraticCurveTo:function(n,t,i,r){this.currentPath.quadraticCurveTo(n,t,i,r)},bezierCurveTo:function(n,t,i,r,u,f){this.currentPath.bezierCurveTo(n,t,i,r,u,f)},splineThru:function(n){this.currentPath.splineThru(n)},toShapes:function(n,t){function v(n){for(var r,t,u=[],i=0,f=n.length;i<f;i++)r=n[i],t=new br,t.curves=r.curves,u.push(t);return u}function p(n,t){for(var h=t.length,o=!1,r=h-1,e=0;e<h;r=e++){var i=t[r],u=t[e],s=u.x-i.x,f=u.y-i.y;if(Math.abs(f)>Number.EPSILON){if(0>f&&(i=t[e],s=-s,u=t[r],f=-f),!(n.y<i.y||n.y>u.y))if(n.y===i.y){if(n.x===i.x)return!0}else{if(r=f*(n.x-i.x)-s*(n.y-i.y),0===r)return!0;0>r||(o=!o)}}else if(n.y===i.y&&(u.x<=n.x&&n.x<=i.x||i.x<=n.x&&n.x<=u.x))return!0}return o}var r=vt.isClockWise,i=this.subPaths,o,s,c,f,y,h,l;if(0===i.length)return[];if(!0===t)return v(i);if(t=[],1===i.length)return o=i[0],s=new br,s.curves=o.curves,t.push(s),t;c=!r(i[0].getPoints());c=n?!c:c;s=[];var e=[],a=[],u=0;for(e[u]=void 0,a[u]=[],f=0,y=i.length;f<y;f++)o=i[f],h=o.getPoints(),l=r(h),(l=n?!l:l)?(!c&&e[u]&&u++,e[u]={s:new br,p:h},e[u].s.curves=o.curves,c&&u++,a[u]=[]):a[u].push({h:o,p:h[0]});if(!e[0])return v(i);if(1<e.length){for(f=!1,n=[],r=0,i=e.length;r<i;r++)s[r]=[];for(r=0,i=e.length;r<i;r++)for(o=a[r],l=0;l<o.length;l++){for(c=o[l],u=!0,h=0;h<e.length;h++)p(c.p,e[h].p)&&(r!==h&&n.push({froms:r,tos:h,hole:l}),u?(u=!1,s[h].push(c)):f=!0);u&&s[r].push(c)}0<n.length&&(f||(a=s))}for(f=0,r=e.length;f<r;f++)for(s=e[f].s,t.push(s),n=a[f],i=0,o=n.length;i<o;i++)s.holes.push(n[i].h);return t}});Object.assign(cc.prototype,{isFont:!0,generateShapes:function(n,t,i){var e,nt,s,y,w,c,l,tt,h,p;void 0===t&&(t=100);void 0===i&&(i=4);e=this.data;n=String(n).split("");var rt=t/e.resolution,ft=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*rt,it=0,ut=0;for(t=[],nt=0;nt<n.length;nt++)if(s=n[nt],"\n"===s)it=0,ut-=ft;else{var o,r=rt,a=it,v=ut;if(s=e.glyphs[s]||e.glyphs["?"]){if(y=new hc,w=[],s.o)for(var u=s._cachedOutline||(s._cachedOutline=s.o.split(" ")),f=0,et=u.length;f<et;)switch(u[f++]){case"m":c=u[f++]*r+a;l=u[f++]*r+v;y.moveTo(c,l);break;case"l":c=u[f++]*r+a;l=u[f++]*r+v;y.lineTo(c,l);break;case"q":var b=u[f++]*r+a,k=u[f++]*r+v,d=u[f++]*r+a,g=u[f++]*r+v;if(y.quadraticCurveTo(d,g,b,k),o=w[w.length-1])for(tt=o.x,o=o.y,h=1;h<=i;h++)p=h/i,yr(p,tt,d,b),yr(p,o,g,k);break;case"b":if(b=u[f++]*r+a,k=u[f++]*r+v,d=u[f++]*r+a,g=u[f++]*r+v,c=u[f++]*r+a,l=u[f++]*r+v,y.bezierCurveTo(d,g,c,l,b,k),o=w[w.length-1])for(tt=o.x,o=o.y,h=1;h<=i;h++)p=h/i,pr(p,tt,d,c,b),pr(p,o,g,l,k)}r={offsetX:s.ha*r,path:y}}else r=void 0;it+=r.offsetX;t.push(r.path)}for(i=[],e=0,n=t.length;e<n;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}});Object.assign(ta.prototype,{load:function(n,t,i,r){var u=this;new gt(this.manager).load(n,function(n){try{var i=JSON.parse(n)}catch(r){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead.");i=JSON.parse(n.substring(65,n.length-2))}n=u.parse(i);t&&t(n)},i,r)},parse:function(n){return new cc(n)}});wh={getContext:function(){return void 0===ph&&(ph=new(window.AudioContext||window.webkitAudioContext)),ph},setContext:function(n){ph=n}};Object.assign(lc.prototype,{load:function(n,t,i,r){var u=new gt(this.manager);u.setResponseType("arraybuffer");u.load(n,function(n){wh.getContext().decodeAudioData(n,function(n){t(n)})},i,r)}});Object.assign(ia.prototype,{update:function(){var e,r,u,n,t,o,f,i,h=new s,c=new s;return function(s){var y,p,w,a,v;(e!==this||r!==s.focus||u!==s.fov||n!==s.aspect*this.aspect||t!==s.near||o!==s.far||f!==s.zoom||i!==this.eyeSep)&&(e=this,r=s.focus,u=s.fov,n=s.aspect*this.aspect,t=s.near,o=s.far,f=s.zoom,y=s.projectionMatrix.clone(),i=this.eyeSep/2,p=i*t/r,w=t*Math.tan(l.DEG2RAD*u*.5)/f,c.elements[12]=-i,h.elements[12]=i,a=-w*n+p,v=w*n+p,y.elements[0]=2*t/(v-a),y.elements[8]=(v+a)/(v-a),this.cameraL.projectionMatrix.copy(y),a=-w*n-p,v=w*n-p,y.elements[0]=2*t/(v-a),y.elements[8]=(v+a)/(v-a),this.cameraR.projectionMatrix.copy(y));this.cameraL.matrixWorld.copy(s.matrixWorld).multiply(c);this.cameraR.matrixWorld.copy(s.matrixWorld).multiply(h)}}()});vo.prototype=Object.create(u.prototype);vo.prototype.constructor=vo;ac.prototype=Object.assign(Object.create(u.prototype),{constructor:ac,getInput:function(){return this.gain},removeFilter:function(){null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null)},getFilter:function(){return this.filter},setFilter:function(n){null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination);this.filter=n;this.gain.connect(this.filter);this.filter.connect(this.context.destination)},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(n){this.gain.gain.value=n},updateMatrixWorld:function(){var n=new t,r=new d,f=new t,i=new t;return function(t){u.prototype.updateMatrixWorld.call(this,t);t=this.context.listener;var e=this.up;this.matrixWorld.decompose(n,r,f);i.set(0,0,-1).applyQuaternion(r);t.positionX?(t.positionX.setValueAtTime(n.x,this.context.currentTime),t.positionY.setValueAtTime(n.y,this.context.currentTime),t.positionZ.setValueAtTime(n.z,this.context.currentTime),t.forwardX.setValueAtTime(i.x,this.context.currentTime),t.forwardY.setValueAtTime(i.y,this.context.currentTime),t.forwardZ.setValueAtTime(i.z,this.context.currentTime),t.upX.setValueAtTime(e.x,this.context.currentTime),t.upY.setValueAtTime(e.y,this.context.currentTime),t.upZ.setValueAtTime(e.z,this.context.currentTime)):(t.setPosition(n.x,n.y,n.z),t.setOrientation(i.x,i.y,i.z,e.x,e.y,e.z))}}()});af.prototype=Object.assign(Object.create(u.prototype),{constructor:af,getOutput:function(){return this.gain},setNodeSource:function(n){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=n,this.connect(),this},setBuffer:function(n){return this.buffer=n,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(!0===this.isPlaying)console.warn("THREE.Audio: Audio is already playing.");else if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else{var n=this.context.createBufferSource();return n.buffer=this.buffer,n.loop=this.loop,n.onended=this.onEnded.bind(this),n.playbackRate.setValueAtTime(this.playbackRate,this.startTime),n.start(0,this.startTime),this.isPlaying=!0,this.source=n,this.connect()}},pause:function(){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.startTime=this.context.currentTime,this.isPlaying=!1,this},stop:function(){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.startTime=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var n=1,t=this.filters.length;n<t;n++)this.filters[n-1].connect(this.filters[n]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var n=1,t=this.filters.length;n<t;n++)this.filters[n-1].disconnect(this.filters[n]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(n){return n||(n=[]),!0===this.isPlaying?(this.disconnect(),this.filters=n,this.connect()):this.filters=n,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(n){return this.setFilters(n?[n]:[])},setPlaybackRate:function(n){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=n,!0===this.isPlaying&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(n){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=n,!0===this.isPlaying&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(n){return this.gain.gain.value=n,this}});vc.prototype=Object.assign(Object.create(af.prototype),{constructor:vc,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(n){this.panner.refDistance=n},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(n){this.panner.rolloffFactor=n},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(n){this.panner.distanceModel=n},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(n){this.panner.maxDistance=n},updateMatrixWorld:function(){var n=new t;return function(t){u.prototype.updateMatrixWorld.call(this,t);n.setFromMatrixPosition(this.matrixWorld);this.panner.setPosition(n.x,n.y,n.z)}}()});Object.assign(yc.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var i=0,n=this.getFrequencyData(),t=0;t<n.length;t++)i+=n[t];return i/n.length}});Object.assign(pc.prototype,{accumulate:function(n,t){var u=this.buffer,r=this.valueSize,i;if(n=n*r+r,i=this.cumulativeWeight,0===i){for(i=0;i!==r;++i)u[n+i]=u[i];i=t}else i+=t,this._mixBufferRegion(u,n,0,t/i,r);this.cumulativeWeight=i},apply:function(n){var t=this.valueSize,r=this.buffer,u,i,f;for(n=n*t+t,i=this.cumulativeWeight,u=this.binding,this.cumulativeWeight=0,1>i&&this._mixBufferRegion(r,n,3*t,1-i,t),i=t,f=t+t;i!==f;++i)if(r[i]!==r[i+t]){u.setValue(r,n);break}},saveOriginalState:function(){var t=this.buffer,i=this.valueSize,r=3*i,n;for(this.binding.getValue(t,r),n=i;n!==r;++n)t[n]=t[r+n%i];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(n,t,i,r,u){if(.5<=r)for(r=0;r!==u;++r)n[t+r]=n[i+r]},_slerp:function(n,t,i,r){d.slerpFlat(n,t,n,t,n,i,r)},_lerp:function(n,t,i,r,u){for(var e,o=1-r,f=0;f!==u;++f)e=t+f,n[e]=n[e]*o+n[i+f]*r}});Object.assign(ra.prototype,{getValue:function(n,t){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];void 0!==i&&i.getValue(n,t)},setValue:function(n,t){for(var r=this._bindings,i=this._targetGroup.nCachedObjects_,u=r.length;i!==u;++i)r[i].setValue(n,t)},bind:function(){for(var t=this._bindings,n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].bind()},unbind:function(){for(var t=this._bindings,n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].unbind()}});Object.assign(tt,{Composite:ra,create:function(n,t,i){return n&&n.isAnimationObjectGroup?new tt.Composite(n,t,i):new tt(n,t,i)},sanitizeNodeName:function(n){return n.replace(/\s/g,"_").replace(/[^\w-]/g,"")},parseTrackName:function(){var n=new RegExp("^"+/((?:[\w-]+[\/:])*)/.source+/([\w-\.]+)?/.source+/(?:\.([\w-]+)(?:\[(.+)\])?)?/.source+/\.([\w-]+)(?:\[(.+)\])?/.source+"$"),t=["material","materials","bones"];return function(i){var r=n.exec(i),u,f;if(!r)throw Error("PropertyBinding: Cannot parse trackName: "+i);if(r={nodeName:r[2],objectName:r[3],objectIndex:r[4],propertyName:r[5],propertyIndex:r[6]},u=r.nodeName&&r.nodeName.lastIndexOf("."),void 0!==u&&-1!==u&&(f=r.nodeName.substring(u+1),-1!==t.indexOf(f)&&(r.nodeName=r.nodeName.substring(0,u),r.objectName=f)),null===r.propertyName||0===r.propertyName.length)throw Error("PropertyBinding: can not parse propertyName from trackName: "+i);return r}}(),findNode:function(n,t){var i,r;return!t||""===t||"root"===t||"."===t||-1===t||t===n.name||t===n.uuid?n:n.skeleton&&(i=function(n){for(var i,r=0;r<n.bones.length;r++)if(i=n.bones[r],i.name===t)return i;return null}(n.skeleton),i)?i:n.children&&(r=function r(n){for(var i,u=0;u<n.length;u++)if(i=n[u],i.name===t||i.uuid===t||(i=r(i.children)))return i;return null},n=r(n.children))?n:null}});Object.assign(tt.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(n,t){n[t]=this.node[this.propertyName]},function(n,t){for(var r=this.resolvedProperty,i=0,u=r.length;i!==u;++i)n[t++]=r[i]},function(n,t){n[t]=this.resolvedProperty[this.propertyIndex]},function(n,t){this.resolvedProperty.toArray(n,t)}],SetterByBindingTypeAndVersioning:[[function(n,t){this.node[this.propertyName]=n[t]},function(n,t){this.node[this.propertyName]=n[t];this.targetObject.needsUpdate=!0},function(n,t){this.node[this.propertyName]=n[t];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(n,t){for(var r=this.resolvedProperty,i=0,u=r.length;i!==u;++i)r[i]=n[t++]},function(n,t){for(var r=this.resolvedProperty,i=0,u=r.length;i!==u;++i)r[i]=n[t++];this.targetObject.needsUpdate=!0},function(n,t){for(var r=this.resolvedProperty,i=0,u=r.length;i!==u;++i)r[i]=n[t++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(n,t){this.resolvedProperty[this.propertyIndex]=n[t]},function(n,t){this.resolvedProperty[this.propertyIndex]=n[t];this.targetObject.needsUpdate=!0},function(n,t){this.resolvedProperty[this.propertyIndex]=n[t];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(n,t){this.resolvedProperty.fromArray(n,t)},function(n,t){this.resolvedProperty.fromArray(n,t);this.targetObject.needsUpdate=!0},function(n,t){this.resolvedProperty.fromArray(n,t);this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(n,t){this.bind();this.getValue(n,t)},setValue:function(n,t){this.bind();this.setValue(n,t)},bind:function(){var n=this.node,r=this.parsedPath,t=r.objectName,f=r.propertyName,u=r.propertyIndex,i;if(n||(this.node=n=tt.findNode(this.rootNode,r.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,n){if(t){i=r.objectIndex;switch(t){case"materials":if(!n.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!n.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}n=n.material.materials;break;case"bones":if(!n.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}for(n=n.skeleton.bones,t=0;t<n.length;t++)if(n[t].name===i){i=t;break}break;default:if(void 0===n[t]){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}n=n[t]}if(void 0!==i){if(void 0===n[i]){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,n);return}n=n[i]}}if(i=n[f],void 0===i)console.error("THREE.PropertyBinding: Trying to update property for track: "+r.nodeName+"."+f+" but it wasn't found.",n);else{if(r=this.Versioning.None,void 0!==n.needsUpdate?(r=this.Versioning.NeedsUpdate,this.targetObject=n):void 0!==n.matrixWorldNeedsUpdate&&(r=this.Versioning.MatrixWorldNeedsUpdate,this.targetObject=n),t=this.BindingType.Direct,void 0!==u){if("morphTargetInfluences"===f){if(!n.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(n.geometry.isBufferGeometry){if(!n.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}for(t=0;t<this.node.geometry.morphAttributes.position.length;t++)if(n.geometry.morphAttributes.position[t].name===u){u=t;break}}else{if(!n.geometry.morphTargets){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);return}for(t=0;t<this.node.geometry.morphTargets.length;t++)if(n.geometry.morphTargets[t].name===u){u=t;break}}}t=this.BindingType.ArrayElement;this.resolvedProperty=i;this.propertyIndex=u}else void 0!==i.fromArray&&void 0!==i.toArray?(t=this.BindingType.HasFromToArray,this.resolvedProperty=i):Array.isArray(i)?(t=this.BindingType.EntireArray,this.resolvedProperty=i):this.propertyName=f;this.getValue=this.GetterByBindingType[t];this.setValue=this.SetterByBindingTypeAndVersioning[t][r]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null;this.getValue=this._getValue_unbound;this.setValue=this._setValue_unbound}});Object.assign(tt.prototype,{_getValue_unbound:tt.prototype.getValue,_setValue_unbound:tt.prototype.setValue});Object.assign(ua.prototype,{isAnimationObjectGroup:!0,add:function(){for(var n,r,i,f,o,u=this._objects,p=u.length,h=this.nCachedObjects_,s=this._indicesByUUID,a=this._paths,v=this._parsedPaths,c=this._bindings,y=c.length,l=0,w=arguments.length;l!==w;++l){var e=arguments[l],n=e.uuid,t=s[n];if(void 0===t)for(t=p++,s[n]=t,u.push(e),n=0,i=y;n!==i;++n)c[n].push(new tt(e,a[n],v[n]));else if(t<h)for(r=--h,i=u[r],s[i.uuid]=t,u[t]=i,s[n]=r,u[r]=e,n=0,i=y;n!==i;++n)f=c[n],o=f[t],f[t]=f[r],void 0===o&&(o=new tt(e,a[n],v[n])),f[r]=o;else void 0!==u[t]&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=h},remove:function(){for(var t,n,h,f=this._objects,e=this.nCachedObjects_,o=this._indicesByUUID,c=this._bindings,l=c.length,s=0,a=arguments.length;s!==a;++s){var i=arguments[s],u=i.uuid,r=o[u];if(void 0!==r&&r>=e)for(t=e++,n=f[t],o[n.uuid]=r,f[r]=n,o[u]=t,f[t]=i,i=0,u=l;i!==u;++i)n=c[i],h=n[r],n[r]=n[t],n[t]=h}this.nCachedObjects_=e},uncache:function(){for(var i,f,t,o,l,n,r,u=this._objects,a=u.length,s=this.nCachedObjects_,e=this._indicesByUUID,h=this._bindings,v=h.length,c=0,y=arguments.length;c!==y;++c)if(r=arguments[c].uuid,i=e[r],void 0!==i)if(delete e[r],i<s)for(f=--s,t=u[f],r=--a,n=u[r],e[t.uuid]=i,u[i]=t,e[n.uuid]=f,u[f]=n,u.pop(),t=0,o=v;t!==o;++t)n=h[t],l=n[r],n[i]=n[f],n[f]=l,n.pop();else for(r=--a,n=u[r],e[n.uuid]=i,u[i]=n,u.pop(),t=0,o=v;t!==o;++t)n=h[t],n[i]=n[r],n.pop();this.nCachedObjects_=s},subscribe_:function(n,t){var i=this._bindingsIndicesByPath,r=i[n],u=this._bindings;if(void 0!==r)return u[r];var o=this._paths,s=this._parsedPaths,f=this._objects,h=this.nCachedObjects_,e=Array(f.length),r=u.length;for(i[n]=r,o.push(n),s.push(t),u.push(e),i=h,r=f.length;i!==r;++i)e[i]=new tt(f[i],n,t);return e},unsubscribe_:function(n){var e=this._bindingsIndicesByPath,t=e[n];if(void 0!==t){var u=this._paths,f=this._parsedPaths,i=this._bindings,r=i.length-1,o=i[r];e[n[r]]=t;i[t]=o;i.pop();f[t]=f[r];f.pop();u[t]=u[r];u.pop()}}});Object.assign(fa.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(n){return this._startTime=n,this},setLoop:function(n,t){return this.loop=n,this.repetitions=t,this},setEffectiveWeight:function(n){return this.weight=n,this._effectiveWeight=this.enabled?n:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(n){return this._scheduleFading(n,0,1)},fadeOut:function(n){return this._scheduleFading(n,1,0)},crossFadeFrom:function(n,t,i){if(n.fadeOut(t),this.fadeIn(t),i){i=this._clip.duration;var r=n._clip.duration,u=i/r;n.warp(1,r/i,t);this.warp(u,1,t)}return this},crossFadeTo:function(n,t,i){return n.crossFadeFrom(this,t,i)},stopFading:function(){var n=this._weightInterpolant;return null!==n&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(n)),this},setEffectiveTimeScale:function(n){return this.timeScale=n,this._effectiveTimeScale=this.paused?0:n,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(n){return this.timeScale=this._clip.duration/n,this.stopWarping()},syncWith:function(n){return this.time=n.time,this.timeScale=n.timeScale,this.stopWarping()},halt:function(n){return this.warp(this._effectiveTimeScale,0,n)},warp:function(n,t,i){var u=this._mixer,f=u.time,r=this._timeScaleInterpolant,e=this.timeScale;return null===r&&(this._timeScaleInterpolant=r=u._lendControlInterpolant()),u=r.parameterPositions,r=r.sampleValues,u[0]=f,u[1]=f+i,r[0]=n/e,r[1]=t/e,this},stopWarping:function(){var n=this._timeScaleInterpolant;return null!==n&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(n)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(n,t,i,r){var u;if(this.enabled){if(u=this._startTime,null!==u){if(t=(n-u)*i,0>t||0===i)return;this._startTime=null;t*=i}if(t*=this._updateTimeScale(n),i=this._updateTime(t),n=this._updateWeight(n),0<n){t=this._interpolants;for(var u=this._propertyBindings,f=0,e=t.length;f!==e;++f)t[f].evaluate(i),u[f].accumulate(r,n)}}else this._updateWeight(n)},_updateWeight:function(n){var t=0,i,r;return this.enabled&&(t=this.weight,i=this._weightInterpolant,null!==i&&(r=i.evaluate(n)[0],t=t*r,n>i.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1)))),this._effectiveWeight=t},_updateTimeScale:function(n){var t=0,i,r;return this.paused||(t=this.timeScale,i=this._timeScaleInterpolant,null!==i&&(r=i.evaluate(n)[0],t=t*r,n>i.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t))),this._effectiveTimeScale=t},_updateTime:function(n){var t=this.time+n;if(0===n)return t;var u=this._clip.duration,i=this.loop,r=this._loopCount;if(2200===i)n:{if(-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1)),t>=u)t=u;else if(0>t)t=0;else break n;this.clampWhenFinished?this.paused=!0:this.enabled=!1;this._mixer.dispatchEvent({type:"finished",action:this,direction:0>n?-1:1})}else{if(i=2202===i,-1===r&&(0<=n?(r=0,this._setEndings(!0,0===this.repetitions,i)):this._setEndings(0===this.repetitions,!0,i)),t>=u||0>t){var f=Math.floor(t/u),t=t-u*f,r=r+Math.abs(f),e=this.repetitions-r;0>e?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=0<n?u:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<n?1:-1})):(0===e?(n=0>n,this._setEndings(n,!n,i)):this._setEndings(!1,!1,i),this._loopCount=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:f}))}if(i&&1==(r&1))return this.time=t,u-t}return this.time=t},_setEndings:function(n,t,i){var r=this._interpolantSettings;i?(r.endingStart=2401,r.endingEnd=2401):(r.endingStart=n?this.zeroSlopeAtStart?2401:2400:2402,r.endingEnd=t?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(n,t,i){var u=this._mixer,f=u.time,r=this._weightInterpolant;return null===r&&(this._weightInterpolant=r=u._lendControlInterpolant()),u=r.parameterPositions,r=r.sampleValues,u[0]=f,r[0]=t,u[1]=f+n,r[1]=i,this}});Object.assign(ea.prototype,ui.prototype,{_bindAction:function(n,t){var s=n._localRoot||this._root,h=n._clip.tracks,l=h.length,c=n._propertyBindings;n=n._interpolants;var u=s.uuid,r=this._bindingsByRootAndName,f=r[u];for(void 0===f&&(f={},r[u]=f),r=0;r!==l;++r){var o=h[r],e=o.name,i=f[e];if(void 0===i){if(i=c[r],void 0!==i){null===i._cacheIndex&&(++i.referenceCount,this._addInactiveBinding(i,u,e));continue}i=new pc(tt.create(s,e,t&&t._propertyBindings[r].binding.parsedPath),o.ValueTypeName,o.getValueSize());++i.referenceCount;this._addInactiveBinding(i,u,e)}c[r]=i;n[r].resultBuffer=i.buffer}},_activateAction:function(n){var i;if(!this._isActiveAction(n)){if(null===n._cacheIndex){var r=(n._localRoot||this._root).uuid,t=n._clip.uuid,u=this._actionsByClip[t];this._bindAction(n,u&&u.knownActions[0]);this._addInactiveAction(n,t,r)}for(r=n._propertyBindings,t=0,u=r.length;t!==u;++t)i=r[t],0==i.useCount++&&(this._lendBinding(i),i.saveOriginalState());this._lendAction(n)}},_deactivateAction:function(n){var t;if(this._isActiveAction(n)){for(var r=n._propertyBindings,i=0,u=r.length;i!==u;++i)t=r[i],0==--t.useCount&&(t.restoreOriginalState(),this._takeBackBinding(t));this._takeBackAction(n)}},_initMemoryManager:function(){this._actions=[];this._nActiveActions=0;this._actionsByClip={};this._bindings=[];this._nActiveBindings=0;this._bindingsByRootAndName={};this._controlInterpolants=[];this._nActiveControlInterpolants=0;var n=this;this.stats={actions:{get total(){return n._actions.length},get inUse(){return n._nActiveActions}},bindings:{get total(){return n._bindings.length},get inUse(){return n._nActiveBindings}},controlInterpolants:{get total(){return n._controlInterpolants.length},get inUse(){return n._nActiveControlInterpolants}}}},_isActiveAction:function(n){return n=n._cacheIndex,null!==n&&n<this._nActiveActions},_addInactiveAction:function(n,t,i){var u=this._actions,f=this._actionsByClip,r=f[t];void 0===r?(r={knownActions:[n],actionByRoot:{}},n._byClipCacheIndex=0,f[t]=r):(t=r.knownActions,n._byClipCacheIndex=t.length,t.push(n));n._cacheIndex=u.length;u.push(n);r.actionByRoot[i]=n},_removeInactiveAction:function(n){var t=this._actions,i=t[t.length-1],r=n._cacheIndex;i._cacheIndex=r;t[r]=i;t.pop();n._cacheIndex=null;var t=n._clip.uuid,i=this._actionsByClip,r=i[t],u=r.knownActions,f=u[u.length-1],e=n._byClipCacheIndex;f._byClipCacheIndex=e;u[e]=f;u.pop();n._byClipCacheIndex=null;delete r.actionByRoot[(n._localRoot||this._root).uuid];0===u.length&&delete i[t];this._removeInactiveBindingsForAction(n)},_removeInactiveBindingsForAction:function(n){var t,r,i;for(n=n._propertyBindings,t=0,r=n.length;t!==r;++t)i=n[t],0==--i.referenceCount&&this._removeInactiveBinding(i)},_lendAction:function(n){var t=this._actions,r=n._cacheIndex,i=this._nActiveActions++,u=t[i];n._cacheIndex=i;t[i]=n;u._cacheIndex=r;t[r]=u},_takeBackAction:function(n){var t=this._actions,r=n._cacheIndex,i=--this._nActiveActions,u=t[i];n._cacheIndex=i;t[i]=n;u._cacheIndex=r;t[r]=u},_addInactiveBinding:function(n,t,i){var u=this._bindingsByRootAndName,r=u[t],f=this._bindings;void 0===r&&(r={},u[t]=r);r[i]=n;n._cacheIndex=f.length;f.push(n)},_removeInactiveBinding:function(n){var t=this._bindings,i=n.binding,r=i.rootNode.uuid,i=i.path,u=this._bindingsByRootAndName,f=u[r],e=t[t.length-1],o;n=n._cacheIndex;e._cacheIndex=n;t[n]=e;t.pop();delete f[i];n:{for(o in f)break n;delete u[r]}},_lendBinding:function(n){var t=this._bindings,r=n._cacheIndex,i=this._nActiveBindings++,u=t[i];n._cacheIndex=i;t[i]=n;u._cacheIndex=r;t[r]=u},_takeBackBinding:function(n){var t=this._bindings,r=n._cacheIndex,i=--this._nActiveBindings,u=t[i];n._cacheIndex=i;t[i]=n;u._cacheIndex=r;t[r]=u},_lendControlInterpolant:function(){var i=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=i[t];return void 0===n&&(n=new ho(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=t,i[t]=n),n},_takeBackControlInterpolant:function(n){var t=this._controlInterpolants,r=n.__cacheIndex,i=--this._nActiveControlInterpolants,u=t[i];n.__cacheIndex=i;t[i]=n;u.__cacheIndex=r;t[r]=u},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(n,t){var i=t||this._root,f=i.uuid,i="string"==typeof n?at.findByName(i,n):n,u,r;if(n=null!==i?i.uuid:n,u=this._actionsByClip[n],r=null,void 0!==u){if(r=u.actionByRoot[f],void 0!==r)return r;r=u.knownActions[0];null===i&&(i=r._clip)}return null===i?null:(t=new fa(this,i,t),this._bindAction(t,r),this._addInactiveAction(t,n,f),t)},existingAction:function(n,t){var i=t||this._root;return t=i.uuid,i="string"==typeof n?at.findByName(i,n):n,n=this._actionsByClip[i?i.uuid:n],void 0!==n?n.actionByRoot[t]||null:null},stopAllAction:function(){for(var t=this._actions,i=this._nActiveActions,r=this._bindings,u=this._nActiveBindings,n=this._nActiveBindings=this._nActiveActions=0;n!==i;++n)t[n].reset();for(n=0;n!==u;++n)r[n].useCount=0;return this},update:function(n){n*=this.timeScale;for(var i=this._actions,u=this._nActiveActions,f=this.time+=n,e=Math.sign(n),r=this._accuIndex^=1,t=0;t!==u;++t)i[t]._update(f,n,e,r);for(n=this._bindings,i=this._nActiveBindings,t=0;t!==i;++t)n[t].apply(r);return this},getRoot:function(){return this._root},uncacheClip:function(n){var r=this._actions,u,t,i,f,e;if(n=n.uuid,u=this._actionsByClip,t=u[n],void 0!==t){for(var t=t.knownActions,o=0,s=t.length;o!==s;++o)i=t[o],this._deactivateAction(i),f=i._cacheIndex,e=r[r.length-1],i._cacheIndex=null,i._byClipCacheIndex=null,e._cacheIndex=f,r[f]=e,r.pop(),this._removeInactiveBindingsForAction(i);delete u[n]}},uncacheRoot:function(n){var r,i,t,u;n=n.uuid;r=this._actionsByClip;for(t in r)i=r[t].actionByRoot[n],void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i));if(t=this._bindingsByRootAndName[n],void 0!==t)for(u in t)n=t[u],n.restoreOriginalState(),this._removeInactiveBinding(n)},uncacheAction:function(n,t){n=this.existingAction(n,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}});sh.prototype.clone=function(){return new sh(void 0===this.value.clone?this.value:this.value.clone())};wc.prototype=Object.assign(Object.create(f.prototype),{constructor:wc,isInstancedBufferGeometry:!0,addGroup:function(n,t,i){this.groups.push({start:n,count:t,materialIndex:i})},copy:function(n){var t=n.index,i,r;null!==t&&this.setIndex(t.clone());t=n.attributes;for(i in t)this.addAttribute(i,t[i].clone());for(n=n.groups,i=0,t=n.length;i<t;i++)r=n[i],this.addGroup(r.start,r.count,r.materialIndex);return this}});Object.defineProperties(bc.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}});Object.assign(bc.prototype,{isInterleavedBufferAttribute:!0,setX:function(n,t){return this.data.array[n*this.data.stride+this.offset]=t,this},setY:function(n,t){return this.data.array[n*this.data.stride+this.offset+1]=t,this},setZ:function(n,t){return this.data.array[n*this.data.stride+this.offset+2]=t,this},setW:function(n,t){return this.data.array[n*this.data.stride+this.offset+3]=t,this},getX:function(n){return this.data.array[n*this.data.stride+this.offset]},getY:function(n){return this.data.array[n*this.data.stride+this.offset+1]},getZ:function(n){return this.data.array[n*this.data.stride+this.offset+2]},getW:function(n){return this.data.array[n*this.data.stride+this.offset+3]},setXY:function(n,t,i){return n=n*this.data.stride+this.offset,this.data.array[n+0]=t,this.data.array[n+1]=i,this},setXYZ:function(n,t,i,r){return n=n*this.data.stride+this.offset,this.data.array[n+0]=t,this.data.array[n+1]=i,this.data.array[n+2]=r,this},setXYZW:function(n,t,i,r,u){return n=n*this.data.stride+this.offset,this.data.array[n+0]=t,this.data.array[n+1]=i,this.data.array[n+2]=r,this.data.array[n+3]=u,this}});Object.defineProperty(vf.prototype,"needsUpdate",{set:function(n){!0===n&&this.version++}});Object.assign(vf.prototype,{isInterleavedBuffer:!0,setArray:function(n){if(Array.isArray(n))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.count=void 0!==n?n.length/this.stride:0;this.array=n},setDynamic:function(n){return this.dynamic=n,this},copy:function(n){return this.array=new n.array.constructor(n.array),this.count=n.count,this.stride=n.stride,this.dynamic=n.dynamic,this},copyAt:function(n,t,i){n*=this.stride;i*=t.stride;for(var r=0,u=this.stride;r<u;r++)this.array[n+r]=t.array[i+r];return this},set:function(n,t){return void 0===t&&(t=0),this.array.set(n,t),this},clone:function(){return(new this.constructor).copy(this)},onUpload:function(n){return this.onUploadCallback=n,this}});kc.prototype=Object.assign(Object.create(vf.prototype),{constructor:kc,isInstancedInterleavedBuffer:!0,copy:function(n){return vf.prototype.copy.call(this,n),this.meshPerAttribute=n.meshPerAttribute,this}});dc.prototype=Object.assign(Object.create(c.prototype),{constructor:dc,isInstancedBufferAttribute:!0,copy:function(n){return c.prototype.copy.call(this,n),this.meshPerAttribute=n.meshPerAttribute,this}});Object.assign(oa.prototype,{linePrecision:1,set:function(n,t){this.ray.set(n,t)},setFromCamera:function(n,t){t&&t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(n.x,n.y,.5).unproject(t).sub(this.ray.origin).normalize()):t&&t.isOrthographicCamera?(this.ray.origin.set(n.x,n.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(n,t){var i=[];return gc(n,this,i,t),i.sort(sa),i},intersectObjects:function(n,t){var i=[],r,u;if(!1===Array.isArray(n))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(r=0,u=n.length;r<u;r++)gc(n[r],this,i,t);return i.sort(sa),i}});Object.assign(ha.prototype,{start:function(){this.oldTime=this.startTime=("undefined"==typeof performance?Date:performance).now();this.elapsedTime=0;this.running=!0},stop:function(){this.getElapsedTime();this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var n=0,t;return this.autoStart&&!this.running?(this.start(),0):(this.running&&(t=("undefined"==typeof performance?Date:performance).now(),n=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=n),n)}});Object.assign(ca.prototype,{set:function(n,t,i){return this.radius=n,this.phi=t,this.theta=i,this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.radius=n.radius,this.phi=n.phi,this.theta=n.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(n){return this.radius=n.length(),0===this.radius?this.phi=this.theta=0:(this.theta=Math.atan2(n.x,n.z),this.phi=Math.acos(l.clamp(n.y/this.radius,-1,1))),this}});Object.assign(la.prototype,{set:function(n,t,i){return this.radius=n,this.theta=t,this.y=i,this},clone:function(){return(new this.constructor).copy(this)},copy:function(n){return this.radius=n.radius,this.theta=n.theta,this.y=n.y,this},setFromVector3:function(n){return this.radius=Math.sqrt(n.x*n.x+n.z*n.z),this.theta=Math.atan2(n.x,n.z),this.y=n.y,this}});yo.prototype=Object.create(u.prototype);yo.prototype.constructor=yo;yo.prototype.isImmediateRenderObject=!0;po.prototype=Object.create(w.prototype);po.prototype.constructor=po;po.prototype.update=function(){var n=new t,i=new t,r=new wt;return function(){var t,f=["a","b","c"],s,e,a;if(this.object.updateMatrixWorld(!0),r.getNormalMatrix(this.object.matrixWorld),s=this.object.matrixWorld,e=this.geometry.attributes.position,(t=this.object.geometry)&&t.isGeometry)for(var o=t.vertices,v=t.faces,h=t=0,y=v.length;h<y;h++)for(var c=v[h],u=0,l=c.vertexNormals.length;u<l;u++)a=c.vertexNormals[u],n.copy(o[c[f[u]]]).applyMatrix4(s),i.copy(a).applyMatrix3(r).normalize().multiplyScalar(this.size).add(n),e.setXYZ(t,n.x,n.y,n.z),t+=1,e.setXYZ(t,i.x,i.y,i.z),t+=1;else if(t&&t.isBufferGeometry)for(f=t.attributes.position,o=t.attributes.normal,u=t=0,l=f.count;u<l;u++)n.set(f.getX(u),f.getY(u),f.getZ(u)).applyMatrix4(s),i.set(o.getX(u),o.getY(u),o.getZ(u)),i.applyMatrix3(r).normalize().multiplyScalar(this.size).add(n),e.setXYZ(t,n.x,n.y,n.z),t+=1,e.setXYZ(t,i.x,i.y,i.z),t+=1;e.needsUpdate=!0}}();yf.prototype=Object.create(u.prototype);yf.prototype.constructor=yf;yf.prototype.dispose=function(){this.cone.geometry.dispose();this.cone.material.dispose()};yf.prototype.update=function(){var n=new t,i=new t;return function(){this.light.updateMatrixWorld();var t=this.light.distance?this.light.distance:1e3,r=t*Math.tan(this.light.angle);this.cone.scale.set(r,r,t);n.setFromMatrixPosition(this.light.matrixWorld);i.setFromMatrixPosition(this.light.target.matrixWorld);this.cone.lookAt(i.sub(n));void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}();pf.prototype=Object.create(w.prototype);pf.prototype.constructor=pf;pf.prototype.onBeforeRender=function(){var n=new t,i=new s,r=new s;return function(){var e=this.bones,o=this.geometry,s=o.getAttribute("position"),u,f,t;for(r.getInverse(this.root.matrixWorld),u=0,f=0;u<e.length;u++)t=e[u],t.parent&&t.parent.isBone&&(i.multiplyMatrices(r,t.matrixWorld),n.setFromMatrixPosition(i),s.setXYZ(f,n.x,n.y,n.z),i.multiplyMatrices(r,t.parent.matrixWorld),n.setFromMatrixPosition(i),s.setXYZ(f+1,n.x,n.y,n.z),f+=2);o.getAttribute("position").needsUpdate=!0}}();wf.prototype=Object.create(it.prototype);wf.prototype.constructor=wf;wf.prototype.dispose=function(){this.geometry.dispose();this.material.dispose()};wf.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)};bf.prototype=Object.create(u.prototype);bf.prototype.constructor=bf;bf.prototype.dispose=function(){this.children[0].geometry.dispose();this.children[0].material.dispose()};bf.prototype.update=function(){var t=.5*this.light.width,i=.5*this.light.height,r=this.line.geometry.attributes.position,n=r.array;n[0]=t;n[1]=-i;n[2]=0;n[3]=t;n[4]=i;n[5]=0;n[6]=-t;n[7]=i;n[8]=0;n[9]=-t;n[10]=-i;n[11]=0;n[12]=t;n[13]=-i;n[14]=0;r.needsUpdate=!0;void 0!==this.color?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)};kf.prototype=Object.create(u.prototype);kf.prototype.constructor=kf;kf.prototype.dispose=function(){this.children[0].geometry.dispose();this.children[0].material.dispose()};kf.prototype.update=function(){var r=new t,n=new e,i=new e;return function(){var o=this.children[0],u,t,e,f;if(void 0!==this.color)this.material.color.set(this.color);else{for(u=o.geometry.getAttribute("color"),n.copy(this.light.color),i.copy(this.light.groundColor),t=0,e=u.count;t<e;t++)f=t<e/2?n:i,u.setXYZ(t,f.r,f.g,f.b);u.needsUpdate=!0}o.lookAt(r.setFromMatrixPosition(this.light.matrixWorld).negate())}}();wo.prototype=Object.create(w.prototype);wo.prototype.constructor=wo;hh.prototype=Object.create(w.prototype);hh.prototype.constructor=hh;bo.prototype=Object.create(w.prototype);bo.prototype.constructor=bo;bo.prototype.update=function(){var n=new t,i=new t,r=new wt;return function(){var t,h;this.object.updateMatrixWorld(!0);r.getNormalMatrix(this.object.matrixWorld);for(var c=this.object.matrixWorld,e=this.geometry.attributes.position,u=this.object.geometry,o=u.vertices,u=u.faces,f=0,s=0,l=u.length;s<l;s++)t=u[s],h=t.normal,n.copy(o[t.a]).add(o[t.b]).add(o[t.c]).divideScalar(3).applyMatrix4(c),i.copy(h).applyMatrix3(r).normalize().multiplyScalar(this.size).add(n),e.setXYZ(f,n.x,n.y,n.z),f+=1,e.setXYZ(f,i.x,i.y,i.z),f+=1;e.needsUpdate=!0}}();df.prototype=Object.create(u.prototype);df.prototype.constructor=df;df.prototype.dispose=function(){this.lightPlane.geometry.dispose();this.lightPlane.material.dispose();this.targetLine.geometry.dispose();this.targetLine.material.dispose()};df.prototype.update=function(){var i=new t,r=new t,n=new t;return function(){i.setFromMatrixPosition(this.light.matrixWorld);r.setFromMatrixPosition(this.light.target.matrixWorld);n.subVectors(r,i);this.lightPlane.lookAt(n);void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color));this.targetLine.lookAt(n);this.targetLine.scale.z=n.length()}}();ko.prototype=Object.create(w.prototype);ko.prototype.constructor=ko;ko.prototype.update=function(){function n(n,t,e,o){if(i.set(t,e,o).unproject(f),n=u[n],void 0!==n)for(t=r.getAttribute("position"),e=0,o=n.length;e<o;e++)t.setXYZ(n[e],i.x,i.y,i.z)}var r,u,i=new t,f=new ti;return function(){r=this.geometry;u=this.pointMap;f.projectionMatrix.copy(this.camera.projectionMatrix);n("c",0,0,-1);n("t",0,0,1);n("n1",-1,-1,-1);n("n2",1,-1,-1);n("n3",-1,1,-1);n("n4",1,1,-1);n("f1",-1,-1,1);n("f2",1,-1,1);n("f3",-1,1,1);n("f4",1,1,1);n("u1",.7,1.1,-1);n("u2",-.7,1.1,-1);n("u3",0,2,-1);n("cf1",-1,0,1);n("cf2",1,0,1);n("cf3",0,-1,1);n("cf4",0,1,1);n("cn1",-1,0,-1);n("cn2",1,0,-1);n("cn3",0,-1,-1);n("cn4",0,1,-1);r.getAttribute("position").needsUpdate=!0}}();kr.prototype=Object.create(w.prototype);kr.prototype.constructor=kr;kr.prototype.update=function(){var n=new fi;return function(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&n.setFromObject(this.object),!n.isEmpty()){t=n.min;var r=n.max,u=this.geometry.attributes.position,i=u.array;i[0]=r.x;i[1]=r.y;i[2]=r.z;i[3]=t.x;i[4]=r.y;i[5]=r.z;i[6]=t.x;i[7]=t.y;i[8]=r.z;i[9]=r.x;i[10]=t.y;i[11]=r.z;i[12]=r.x;i[13]=r.y;i[14]=t.z;i[15]=t.x;i[16]=r.y;i[17]=t.z;i[18]=t.x;i[19]=t.y;i[20]=t.z;i[21]=r.x;i[22]=t.y;i[23]=t.z;u.needsUpdate=!0;this.geometry.computeBoundingSphere()}}}();kr.prototype.setFromObject=function(n){return this.object=n,this.update(),this};go.prototype=Object.create(w.prototype);go.prototype.constructor=go;go.prototype.onBeforeRender=function(){var n=this.box;n.isEmpty()||(n.getCenter(this.position),n.getSize(this.scale),this.scale.multiplyScalar(.5))};ns.prototype=Object.create(ut.prototype);ns.prototype.constructor=ns;ns.prototype.onBeforeRender=function(){var n=-this.plane.constant;1e-8>Math.abs(n)&&(n=1e-8);this.scale.set(.5*this.size,.5*this.size,n);this.lookAt(this.plane.normal);this.updateMatrixWorld()};dr.prototype=Object.create(u.prototype);dr.prototype.constructor=dr;dr.prototype.setDirection=function(){var n=new t,i;return function(t){.99999<t.y?this.quaternion.set(0,0,0,1):-.99999>t.y?this.quaternion.set(1,0,0,0):(n.set(t.z,0,-t.x).normalize(),i=Math.acos(t.y),this.quaternion.setFromAxisAngle(n,i))}}();dr.prototype.setLength=function(n,t,i){void 0===t&&(t=.2*n);void 0===i&&(i=.2*t);this.line.scale.set(1,Math.max(0,n-t),1);this.line.updateMatrix();this.cone.scale.set(i,t,i);this.cone.position.y=n;this.cone.updateMatrix()};dr.prototype.setColor=function(n){this.line.material.color.copy(n);this.cone.material.color.copy(n)};ch.prototype=Object.create(w.prototype);ch.prototype.constructor=ch;var kh=new t,ul=new nl,fl=new nl,el=new nl;ni.prototype=Object.create(rt.prototype);ni.prototype.constructor=ni;ni.prototype.getPoint=function(n){var i=this.points,r=i.length,u,f,e,o;if(n*=r-(this.closed?0:1),u=Math.floor(n),n-=u,this.closed?u+=0<u?0:(Math.floor(Math.abs(u)/i.length)+1)*i.length:0===n&&u===r-1&&(u=r-2,n=1),this.closed||0<u?f=i[(u-1)%r]:(kh.subVectors(i[0],i[1]).add(i[0]),f=kh),e=i[u%r],o=i[(u+1)%r],this.closed||u+2<r?i=i[(u+2)%r]:(kh.subVectors(i[r-1],i[r-2]).add(i[r-1]),i=kh),void 0===this.type||"centripetal"===this.type||"chordal"===this.type){var s="chordal"===this.type?.5:.25,r=Math.pow(f.distanceToSquared(e),s),u=Math.pow(e.distanceToSquared(o),s),s=Math.pow(o.distanceToSquared(i),s);.0001>u&&(u=1);.0001>r&&(r=u);.0001>s&&(s=u);ul.initNonuniformCatmullRom(f.x,e.x,o.x,i.x,r,u,s);fl.initNonuniformCatmullRom(f.y,e.y,o.y,i.y,r,u,s);el.initNonuniformCatmullRom(f.z,e.z,o.z,i.z,r,u,s)}else"catmullrom"===this.type&&(r=void 0!==this.tension?this.tension:.5,ul.initCatmullRom(f.x,e.x,o.x,i.x,r),fl.initCatmullRom(f.y,e.y,o.y,i.y,r),el.initCatmullRom(f.z,e.z,o.z,i.z,r));return new t(ul.calc(n),fl.calc(n),el.calc(n))};ts.prototype=Object.create(rt.prototype);ts.prototype.constructor=ts;ts.prototype.getPoint=function(n){var i=this.v0,r=this.v1,u=this.v2,f=this.v3;return new t(pr(n,i.x,r.x,u.x,f.x),pr(n,i.y,r.y,u.y,f.y),pr(n,i.z,r.z,u.z,f.z))};is.prototype=Object.create(rt.prototype);is.prototype.constructor=is;is.prototype.getPoint=function(n){var i=this.v0,r=this.v1,u=this.v2;return new t(yr(n,i.x,r.x,u.x),yr(n,i.y,r.y,u.y),yr(n,i.z,r.z,u.z))};rs.prototype=Object.create(rt.prototype);rs.prototype.constructor=rs;rs.prototype.getPoint=function(n){if(1===n)return this.v2.clone();var i=new t;return i.subVectors(this.v2,this.v1),i.multiplyScalar(n),i.add(this.v1),i};lh.prototype=Object.create(hi.prototype);lh.prototype.constructor=lh;rt.create=function(n,t){return console.log("THREE.Curve.create() has been deprecated"),n.prototype=Object.create(rt.prototype),n.prototype.constructor=n,n.prototype.getPoint=t,n};va.prototype=Object.create(ni.prototype);ya.prototype=Object.create(ni.prototype);tl.prototype=Object.create(ni.prototype);Object.assign(tl.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}});wo.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")};pf.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")};Object.assign(fs.prototype,{center:function(n){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(n)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(n){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(n)},size:function(n){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(n)}});Object.assign(fi.prototype,{center:function(n){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(n)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(n){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(n)},isIntersectionSphere:function(n){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(n)},size:function(n){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(n)}});fu.prototype.center=function(n){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(n)};l.random16=function(){return console.warn("THREE.Math.random16() has been deprecated. Use Math.random() instead."),Math.random()};Object.assign(wt.prototype,{flattenToArrayOffset:function(n,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(n,t)},multiplyVector3:function(n){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),n.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(n){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(n)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}});Object.assign(s.prototype,{extractPosition:function(n){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(n)},flattenToArrayOffset:function(n,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(n,t)},getPosition:function(){var n;return function(){return void 0===n&&(n=new t),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),n.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(n){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(n)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(n){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),n.applyMatrix4(this)},multiplyVector4:function(n){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),n.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(n){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.");n.transformDirection(this)},crossVector:function(n){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),n.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(n){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(n)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(n,t,i,r,u,f){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(n,t,r,i,u,f)}});lt.prototype.isIntersectionLine=function(n){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(n)};d.prototype.multiplyVector3=function(n){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),n.applyQuaternion(this)};Object.assign(ir.prototype,{isIntersectionBox:function(n){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(n)},isIntersectionPlane:function(n){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(n)},isIntersectionSphere:function(n){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(n)}});Object.assign(br.prototype,{extrude:function(n){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new wi(this,n)},makeGeometry:function(n){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new nf(this,n)}});Object.assign(i.prototype,{fromAttribute:function(n,t,i){return console.error("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(n,t,i)}});Object.assign(t.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(n){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(n)},getScaleFromMatrix:function(n){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(n)},getColumnFromMatrix:function(n,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,n)},applyProjection:function(n){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(n)},fromAttribute:function(n,t,i){return console.error("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(n,t,i)}});Object.assign(y.prototype,{fromAttribute:function(n,t,i){return console.error("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(n,t,i)}});h.prototype.computeTangents=function(){console.warn("THREE.Geometry: .computeTangents() has been removed.")};Object.assign(u.prototype,{getChildByName:function(n){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(n)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(n,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,n)}});Object.defineProperties(u.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(n){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order.");this.rotation.order=n}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}});Object.defineProperties(he.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}});Object.defineProperty(ce.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}});Object.defineProperty(rt.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(n){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.");this.arcLengthDivisions=n}});g.prototype.setLens=function(n,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup.");void 0!==t&&(this.filmGauge=t);this.setFocalLength(n)};Object.defineProperties(k.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(n){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov.");this.shadow.camera.fov=n}},shadowCameraLeft:{set:function(n){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left.");this.shadow.camera.left=n}},shadowCameraRight:{set:function(n){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right.");this.shadow.camera.right=n}},shadowCameraTop:{set:function(n){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top.");this.shadow.camera.top=n}},shadowCameraBottom:{set:function(n){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.");this.shadow.camera.bottom=n}},shadowCameraNear:{set:function(n){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near.");this.shadow.camera.near=n}},shadowCameraFar:{set:function(n){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far.");this.shadow.camera.far=n}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(n){console.warn("THREE.Light: .shadowBias is now .shadow.bias.");this.shadow.bias=n}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(n){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.");this.shadow.mapSize.width=n}},shadowMapHeight:{set:function(n){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.");this.shadow.mapSize.height=n}}});Object.defineProperties(c.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}}});Object.assign(f.prototype,{addIndex:function(n){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().");this.setIndex(n)},addDrawCall:function(n,t,i){void 0!==i&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.");console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup().");this.addGroup(n,t)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().");this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}});Object.defineProperties(f.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}});Object.defineProperties(sh.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}});Object.defineProperties(a.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new e}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(n){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.");this.flatShading=n===THREE.FlatShading?!0:!1}}});Object.defineProperties(dt.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}});Object.defineProperties(ct.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(n){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.");this.extensions.derivatives=n}}});Object.assign(ic.prototype,{getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(n){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().");this.setScissorTest(n)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")}});Object.defineProperties(ic.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(n){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.");this.shadowMap.enabled=n}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(n){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.");this.shadowMap.type=n}},shadowMapCullFace:{get:function(){return this.shadowMap.cullFace},set:function(n){console.warn("THREE.WebGLRenderer: .shadowMapCullFace is now .shadowMap.cullFace.");this.shadowMap.cullFace=n}}});Object.defineProperties(al.prototype,{cullFace:{get:function(){return this.renderReverseSided?2:1},set:function(n){n=1!==n;console.warn("WebGLRenderer: .shadowMap.cullFace is deprecated. Set .shadowMap.renderReverseSided to "+n+".");this.renderReverseSided=n}}});Object.defineProperties(nu.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(n){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");this.texture.wrapS=n}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(n){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");this.texture.wrapT=n}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(n){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");this.texture.magFilter=n}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(n){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");this.texture.minFilter=n}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(n){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");this.texture.anisotropy=n}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(n){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");this.texture.offset=n}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(n){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");this.texture.repeat=n}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(n){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");this.texture.format=n}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(n){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");this.texture.type=n}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(n){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");this.texture.generateMipmaps=n}}});af.prototype.load=function(n){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new lc).load(n,function(n){t.setBuffer(n)}),this};yc.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()};vo.prototype.updateCubeMap=function(n,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(n,t)};n.WebGLRenderTargetCube=tu;n.WebGLRenderTarget=nu;n.WebGLRenderer=ic;n.ShaderLib=gr;n.UniformsLib=o;n.UniformsUtils=et;n.ShaderChunk=v;n.FogExp2=eu;n.Fog=ou;n.Scene=ss;n.LensFlare=rc;n.Sprite=se;n.LOD=he;n.SkinnedMesh=cs;n.Skeleton=ce;n.Bone=hs;n.Mesh=it;n.LineSegments=w;n.LineLoop=ls;n.Line=ut;n.Points=su;n.Group=le;n.VideoTexture=as;n.DataTexture=bi;n.CompressedTexture=hu;n.CubeTexture=li;n.CanvasTexture=gf;n.DepthTexture=ae;n.Texture=b;n.CompressedTextureLoader=dl;n.DataTextureLoader=fc;n.CubeTextureLoader=ec;n.TextureLoader=vs;n.ObjectLoader=gl;n.MaterialLoader=oh;n.BufferGeometryLoader=oc;n.DefaultLoadingManager=ht;n.LoadingManager=uc;n.JSONLoader=sc;n.ImageLoader=so;n.FontLoader=ta;n.FileLoader=gt;n.Loader=hf;n.Cache=us;n.AudioLoader=lc;n.SpotLightShadow=ps;n.SpotLight=ws;n.PointLight=bs;n.RectAreaLight=nh;n.HemisphereLight=ys;n.DirectionalLightShadow=ks;n.DirectionalLight=ds;n.AmbientLight=gs;n.LightShadow=lr;n.Light=k;n.StereoCamera=ia;n.PerspectiveCamera=g;n.OrthographicCamera=ru;n.CubeCamera=vo;n.ArrayCamera=os;n.Camera=ti;n.AudioListener=ac;n.PositionalAudio=vc;n.AudioContext=wh;n.AudioAnalyser=yc;n.Audio=af;n.VectorKeyframeTrack=of;n.StringKeyframeTrack=uh;n.QuaternionKeyframeTrack=co;n.NumberKeyframeTrack=sf;n.ColorKeyframeTrack=eh;n.BooleanKeyframeTrack=fh;n.PropertyMixer=pc;n.PropertyBinding=tt;n.KeyframeTrack=vr;n.AnimationUtils=nt;n.AnimationObjectGroup=ua;n.AnimationMixer=ea;n.AnimationClip=at;n.Uniform=sh;n.InstancedBufferGeometry=wc;n.BufferGeometry=f;n.GeometryIdCount=function(){return vh++};n.Geometry=h;n.InterleavedBufferAttribute=bc;n.InstancedInterleavedBuffer=kc;n.InterleavedBuffer=vf;n.InstancedBufferAttribute=dc;n.Face3=ei;n.Object3D=u;n.Raycaster=oa;n.Layers=dh;n.EventDispatcher=ui;n.Clock=ha;n.QuaternionLinearInterpolant=rh;n.LinearInterpolant=ho;n.DiscreteInterpolant=ih;n.CubicInterpolant=th;n.Interpolant=st;n.Triangle=oi;n.Math=l;n.Spherical=ca;n.Cylindrical=la;n.Plane=lt;n.Frustum=es;n.Sphere=pt;n.Ray=ir;n.Matrix4=s;n.Matrix3=wt;n.Box3=fi;n.Box2=fs;n.Line3=fu;n.Euler=yi;n.Vector4=y;n.Vector3=t;n.Vector2=i;n.Quaternion=d;n.Color=e;n.ImmediateRenderObject=yo;n.VertexNormalsHelper=po;n.SpotLightHelper=yf;n.SkeletonHelper=pf;n.PointLightHelper=wf;n.RectAreaLightHelper=bf;n.HemisphereLightHelper=kf;n.GridHelper=wo;n.PolarGridHelper=hh;n.FaceNormalsHelper=bo;n.DirectionalLightHelper=df;n.CameraHelper=ko;n.BoxHelper=kr;n.Box3Helper=go;n.PlaneHelper=ns;n.ArrowHelper=dr;n.AxisHelper=ch;n.CatmullRomCurve3=ni;n.CubicBezierCurve3=ts;n.QuadraticBezierCurve3=is;n.LineCurve3=rs;n.ArcCurve=lh;n.EllipseCurve=hi;n.SplineCurve=wr;n.CubicBezierCurve=cf;n.QuadraticBezierCurve=lf;n.LineCurve=ri;n.Shape=br;n.Path=ao;n.ShapePath=hc;n.Font=cc;n.CurvePath=lo;n.Curve=rt;n.ShapeUtils=vt;n.SceneUtils={createMultiMaterialObject:function(n,t){for(var r=new le,i=0,u=t.length;i<u;i++)r.add(new it(n,t[i]));return r},detach:function(n,t,i){n.applyMatrix(t.matrixWorld);t.remove(n);i.add(n)},attach:function(n,t,i){n.applyMatrix((new s).getInverse(i.matrixWorld));t.remove(n);i.add(n)}};n.WebGLUtils=kl;n.WireframeGeometry=cu;n.ParametricGeometry=ve;n.ParametricBufferGeometry=lu;n.TetrahedronGeometry=pe;n.TetrahedronBufferGeometry=au;n.OctahedronGeometry=we;n.OctahedronBufferGeometry=rr;n.IcosahedronGeometry=be;n.IcosahedronBufferGeometry=vu;n.DodecahedronGeometry=ke;n.DodecahedronBufferGeometry=yu;n.PolyhedronGeometry=ye;n.PolyhedronBufferGeometry=ft;n.TubeGeometry=de;n.TubeBufferGeometry=pu;n.TorusKnotGeometry=ge;n.TorusKnotBufferGeometry=wu;n.TorusGeometry=no;n.TorusBufferGeometry=bu;n.TextGeometry=to;n.TextBufferGeometry=ku;n.SphereGeometry=io;n.SphereBufferGeometry=ur;n.RingGeometry=ro;n.RingBufferGeometry=du;n.PlaneGeometry=ee;n.PlaneBufferGeometry=tr;n.LatheGeometry=uo;n.LatheBufferGeometry=gu;n.ShapeGeometry=nf;n.ShapeBufferGeometry=tf;n.ExtrudeGeometry=wi;n.ExtrudeBufferGeometry=kt;n.EdgesGeometry=rf;n.ConeGeometry=fo;n.ConeBufferGeometry=eo;n.CylinderGeometry=fr;n.CylinderBufferGeometry=si;n.CircleGeometry=oo;n.CircleBufferGeometry=uf;n.BoxGeometry=uu;n.BoxBufferGeometry=nr;n.ShadowMaterial=ff;n.SpriteMaterial=pi;n.RawShaderMaterial=ef;n.ShaderMaterial=ct;n.PointsMaterial=bt;n.MeshPhysicalMaterial=er;n.MeshStandardMaterial=ii;n.MeshPhongMaterial=dt;n.MeshToonMaterial=or;n.MeshNormalMaterial=sr;n.MeshLambertMaterial=hr;n.MeshDepthMaterial=ai;n.MeshDistanceMaterial=vi;n.MeshBasicMaterial=ot;n.LineDashedMaterial=cr;n.LineBasicMaterial=p;n.Material=a;n.Float64BufferAttribute=fe;n.Float32BufferAttribute=r;n.Uint32BufferAttribute=gi;n.Int32BufferAttribute=ue;n.Uint16BufferAttribute=di;n.Int16BufferAttribute=re;n.Uint8ClampedBufferAttribute=ie;n.Uint8BufferAttribute=te;n.Int8BufferAttribute=ne;n.BufferAttribute=c;n.REVISION="87dev";n.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2};n.CullFaceNone=0;n.CullFaceBack=1;n.CullFaceFront=2;n.CullFaceFrontBack=3;n.FrontFaceDirectionCW=0;n.FrontFaceDirectionCCW=1;n.BasicShadowMap=0;n.PCFShadowMap=1;n.PCFSoftShadowMap=2;n.FrontSide=0;n.BackSide=1;n.DoubleSide=2;n.FlatShading=1;n.SmoothShading=2;n.NoColors=0;n.FaceColors=1;n.VertexColors=2;n.NoBlending=0;n.NormalBlending=1;n.AdditiveBlending=2;n.SubtractiveBlending=3;n.MultiplyBlending=4;n.CustomBlending=5;n.AddEquation=100;n.SubtractEquation=101;n.ReverseSubtractEquation=102;n.MinEquation=103;n.MaxEquation=104;n.ZeroFactor=200;n.OneFactor=201;n.SrcColorFactor=202;n.OneMinusSrcColorFactor=203;n.SrcAlphaFactor=204;n.OneMinusSrcAlphaFactor=205;n.DstAlphaFactor=206;n.OneMinusDstAlphaFactor=207;n.DstColorFactor=208;n.OneMinusDstColorFactor=209;n.SrcAlphaSaturateFactor=210;n.NeverDepth=0;n.AlwaysDepth=1;n.LessDepth=2;n.LessEqualDepth=3;n.EqualDepth=4;n.GreaterEqualDepth=5;n.GreaterDepth=6;n.NotEqualDepth=7;n.MultiplyOperation=0;n.MixOperation=1;n.AddOperation=2;n.NoToneMapping=0;n.LinearToneMapping=1;n.ReinhardToneMapping=2;n.Uncharted2ToneMapping=3;n.CineonToneMapping=4;n.UVMapping=300;n.CubeReflectionMapping=301;n.CubeRefractionMapping=302;n.EquirectangularReflectionMapping=303;n.EquirectangularRefractionMapping=304;n.SphericalReflectionMapping=305;n.CubeUVReflectionMapping=306;n.CubeUVRefractionMapping=307;n.RepeatWrapping=1e3;n.ClampToEdgeWrapping=1001;n.MirroredRepeatWrapping=1002;n.NearestFilter=1003;n.NearestMipMapNearestFilter=1004;n.NearestMipMapLinearFilter=1005;n.LinearFilter=1006;n.LinearMipMapNearestFilter=1007;n.LinearMipMapLinearFilter=1008;n.UnsignedByteType=1009;n.ByteType=1010;n.ShortType=1011;n.UnsignedShortType=1012;n.IntType=1013;n.UnsignedIntType=1014;n.FloatType=1015;n.HalfFloatType=1016;n.UnsignedShort4444Type=1017;n.UnsignedShort5551Type=1018;n.UnsignedShort565Type=1019;n.UnsignedInt248Type=1020;n.AlphaFormat=1021;n.RGBFormat=1022;n.RGBAFormat=1023;n.LuminanceFormat=1024;n.LuminanceAlphaFormat=1025;n.RGBEFormat=1023;n.DepthFormat=1026;n.DepthStencilFormat=1027;n.RGB_S3TC_DXT1_Format=2001;n.RGBA_S3TC_DXT1_Format=2002;n.RGBA_S3TC_DXT3_Format=2003;n.RGBA_S3TC_DXT5_Format=2004;n.RGB_PVRTC_4BPPV1_Format=2100;n.RGB_PVRTC_2BPPV1_Format=2101;n.RGBA_PVRTC_4BPPV1_Format=2102;n.RGBA_PVRTC_2BPPV1_Format=2103;n.RGB_ETC1_Format=2151;n.LoopOnce=2200;n.LoopRepeat=2201;n.LoopPingPong=2202;n.InterpolateDiscrete=2300;n.InterpolateLinear=2301;n.InterpolateSmooth=2302;n.ZeroCurvatureEnding=2400;n.ZeroSlopeEnding=2401;n.WrapAroundEnding=2402;n.TrianglesDrawMode=0;n.TriangleStripDrawMode=1;n.TriangleFanDrawMode=2;n.LinearEncoding=3e3;n.sRGBEncoding=3001;n.GammaEncoding=3007;n.RGBEEncoding=3002;n.LogLuvEncoding=3003;n.RGBM7Encoding=3004;n.RGBM16Encoding=3005;n.RGBDEncoding=3006;n.BasicDepthPacking=3200;n.RGBADepthPacking=3201;n.CubeGeometry=uu;n.Face4=function(n,t,i,r,u,f,e){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new ei(n,t,i,u,f,e)};n.LineStrip=0;n.LinePieces=1;n.MeshFaceMaterial=function(n){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),n};n.MultiMaterial=function(n){return void 0===n&&(n=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),n.isMultiMaterial=!0,n.materials=n,n.clone=function(){return n.slice()},n};n.PointCloud=function(n,t){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new su(n,t)};n.Particle=function(n){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new se(n)};n.ParticleSystem=function(n,t){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new su(n,t)};n.PointCloudMaterial=function(n){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new bt(n)};n.ParticleBasicMaterial=function(n){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new bt(n)};n.ParticleSystemMaterial=function(n){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new bt(n)};n.Vertex=function(n,i,r){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new t(n,i,r)};n.DynamicBufferAttribute=function(n,t){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new c(n,t).setDynamic(!0)};n.Int8Attribute=function(n,t){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new ne(n,t)};n.Uint8Attribute=function(n,t){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new te(n,t)};n.Uint8ClampedAttribute=function(n,t){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new ie(n,t)};n.Int16Attribute=function(n,t){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new re(n,t)};n.Uint16Attribute=function(n,t){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new di(n,t)};n.Int32Attribute=function(n,t){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new ue(n,t)};n.Uint32Attribute=function(n,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new gi(n,t)};n.Float32Attribute=function(n,t){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new r(n,t)};n.Float64Attribute=function(n,t){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new fe(n,t)};n.ClosedSplineCurve3=va;n.SplineCurve3=ya;n.Spline=tl;n.BoundingBoxHelper=function(n,t){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new kr(n,t)};n.EdgesHelper=function(n,t){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new w(new rf(n.geometry),new p({color:void 0!==t?t:16777215}))};n.WireframeHelper=function(n,t){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new w(new cu(n.geometry),new p({color:void 0!==t?t:16777215}))};n.XHRLoader=function(n){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new gt(n)};n.BinaryTextureLoader=function(n){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new fc(n)};n.GeometryUtils={merge:function(n,t,i){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),t.isMesh){t.matrixAutoUpdate&&t.updateMatrix();var r=t.matrix;t=t.geometry}n.merge(t,r,i)},center:function(n){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),n.center()}};n.ImageUtils={crossOrigin:void 0,loadTexture:function(n,t,i,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var u=new vs;return u.setCrossOrigin(this.crossOrigin),n=u.load(n,i,void 0,r),t&&(n.mapping=t),n},loadTextureCube:function(n,t,i,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var u=new ec;return u.setCrossOrigin(this.crossOrigin),n=u.load(n,i,void 0,r),t&&(n.mapping=t),n},loadCompressedTexture:function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},loadCompressedTextureCube:function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")}};n.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js.");this.projectVector=function(n,t){console.warn("THREE.Projector: .projectVector() is now vector.project().");n.project(t)};this.unprojectVector=function(n,t){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject().");n.unproject(t)};this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}};n.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js");this.domElement=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");this.clear=function(){};this.render=function(){};this.setClearColor=function(){};this.setSize=function(){}};Object.defineProperty(n,"__esModule",{value:!0})});var PANOLENS={REVISION:"9"},enableInlineVideo=function(){"use strict";function v(n,t,i,r){function e(i){u=t(e,r);n(i-(f||i));f=i}var u,f;return{start:function(){u||e(0)},stop:function(){i(u);u=null;f=0}}}function y(n){return v(n,requestAnimationFrame,cancelAnimationFrame)}function u(n,t,i){function r(r){i&&!i(n,t)||r.stopImmediatePropagation()}return n.addEventListener(t,r),r}function n(n,t,i,r){function f(){return i[t]}function u(n){i[t]=n}r&&u(n[t]);Object.defineProperty(n,t,{get:f,set:u})}function e(n,t,i){i.addEventListener(t,function(){return n.dispatchEvent(new Event(t))})}function t(n,t){Promise.resolve().then(function(){n.dispatchEvent(new Event(t))})}function p(n){var t=new Audio;return e(n,"play",t),e(n,"playing",t),e(n,"pause",t),t.crossOrigin=n.crossOrigin,t.src=n.src||n.currentSrc||"data:",t}function f(n,t,i){(c||0)+200<Date.now()&&(n[r]=!0,c=Date.now());i||(n.currentTime=t);a[++it%3]=100*t|0}function o(n){return n.driver.currentTime>=n.video.duration}function w(n){var t=this;t.video.readyState>=t.video.HAVE_FUTURE_DATA?(t.hasAudio||(t.driver.currentTime=t.video.currentTime+n*t.video.playbackRate/1e3,t.video.loop&&o(t)&&(t.driver.currentTime=0)),f(t.video,t.driver.currentTime)):t.video.networkState===t.video.NETWORK_IDLE&&0===t.video.buffered.length&&t.video.load();t.video.ended&&(delete t.video[r],t.video.pause(!0))}function b(){var n=this,r=n[i];if(n.webkitDisplayingFullscreen)return void n[s]();"data:"!==r.driver.src&&r.driver.src!==n.src&&(f(n,0,!0),r.driver.src=n.src);n.paused&&(r.paused=!1,0===n.buffered.length&&n.load(),r.driver.play(),r.updater.start(),r.hasAudio||(t(n,"play"),r.video.readyState>=r.video.HAVE_ENOUGH_DATA&&t(n,"playing")))}function k(n){var u=this,f=u[i];f.driver.pause();f.updater.stop();u.webkitDisplayingFullscreen&&u[l]();f.paused&&!n||(f.paused=!0,f.hasAudio||t(u,"pause"),u.ended&&!u.webkitDisplayingFullscreen&&(u[r]=!0,t(u,"ended")))}function d(n,r){var u={};n[i]=u;u.paused=!0;u.hasAudio=r;u.video=n;u.updater=y(w.bind(u));r?u.driver=p(n):(n.addEventListener("canplay",function(){n.paused||t(n,"playing")}),u.driver={src:n.src||n.currentSrc||"data:",muted:!0,paused:!0,pause:function(){u.driver.paused=!0},play:function(){u.driver.paused=!1;o(u)&&f(n,0)},get ended(){return o(u)}});n.addEventListener("emptied",function(){var t=!u.driver.src||"data:"===u.driver.src;u.driver.src&&u.driver.src!==n.src&&(f(n,0,!0),u.driver.src=n.src,t||!r&&n.autoplay?u.driver.play():u.updater.stop())},!1);n.addEventListener("webkitbeginfullscreen",function(){n.paused?r&&0===u.driver.buffered.length&&u.driver.load():(n.pause(),n[s]())});r&&(n.addEventListener("webkitendfullscreen",function(){u.driver.currentTime=n.currentTime}),n.addEventListener("seeking",function(){a.indexOf(100*n.currentTime|0)<0&&(u.driver.currentTime=n.currentTime)}))}function h(n){var t=n[r];return delete n[r],!n.webkitDisplayingFullscreen&&!t}function g(t){var r=t[i];t[s]=t.play;t[l]=t.pause;t.play=b;t.pause=k;n(t,"paused",r.driver);n(t,"muted",r.driver,!0);n(t,"playbackRate",r.driver,!0);n(t,"ended",r.driver);n(t,"loop",r.driver,!0);u(t,"seeking",function(n){return!n.webkitDisplayingFullscreen});u(t,"seeked",function(n){return!n.webkitDisplayingFullscreen});u(t,"timeupdate",h);u(t,"ended",h)}function nt(n,t){if(void 0===t&&(t={}),!n[i]){if(!t.everywhere){if(!tt)return;if(!(t.iPad||t.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}n.pause();var r=n.autoplay;n.autoplay=!1;d(n,!n.muted);g(n);n.classList.add("IIV");n.muted&&r&&(n.play(),n.addEventListener("playing",function t(){n.autoplay=!0;n.removeEventListener("playing",t)}));/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}var c,tt="object"==(typeof document=="undefined"?"undefined":_typeof(document))&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,i="bfred-it:iphone-inline-video",r="bfred-it:iphone-inline-video:event",s="bfred-it:iphone-inline-video:nativeplay",l="bfred-it:iphone-inline-video:nativepause",a=[],it=0;return nt}(),TWEEN=TWEEN||function(){var n=[];return{getAll:function(){return n},removeAll:function(){n=[]},add:function(t){n.push(t)},remove:function(t){var i=n.indexOf(t);i!==-1&&n.splice(i,1)},update:function(t,i){if(n.length===0)return!1;var r=0;for(t=t!==undefined?t:TWEEN.now();r<n.length;)n[r].update(t)||i?r++:n.splice(r,1);return!0}}}();TWEEN.now=typeof window=="undefined"&&typeof process!="undefined"?function(){var n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof window!="undefined"&&window.performance!==undefined&&window.performance.now!==undefined?window.performance.now.bind(window.performance):Date.now!==undefined?Date.now:function(){return(new Date).getTime()};TWEEN.Tween=function(n){var t=n,r={},i={},u={},o=1e3,s=0,h,c=!1,l=!1,k=!1,a=0,f=null,d=TWEEN.Easing.Linear.None,g=TWEEN.Interpolation.Linear,e=[],v=null,y=!1,p=null,w=null,b=null;this.to=function(n,t){return i=n,t!==undefined&&(o=t),this};this.start=function(n){TWEEN.add(this);l=!0;y=!1;f=(n!==undefined?n:TWEEN.now())+a;for(var e in i){if(i[e]instanceof Array){if(i[e].length===0)continue;i[e]=[t[e]].concat(i[e])}t[e]!==undefined&&(r[e]=t[e],r[e]instanceof Array==!1&&(r[e]*=1),u[e]=r[e]||0)}return this};this.stop=function(){return l?(TWEEN.remove(this),l=!1,b!==null&&b.call(t,t),this.stopChainedTweens(),this):this};this.end=function(){return this.update(f+o),this};this.stopChainedTweens=function(){for(var n=0,t=e.length;n<t;n++)e[n].stop()};this.delay=function(n){return a=n,this};this.repeat=function(n){return s=n,this};this.repeatDelay=function(n){return h=n,this};this.yoyo=function(n){return c=n,this};this.easing=function(n){return d=n,this};this.interpolation=function(n){return g=n,this};this.chain=function(){return e=arguments,this};this.onStart=function(n){return v=n,this};this.onUpdate=function(n){return p=n,this};this.onComplete=function(n){return w=n,this};this.onStop=function(n){return b=n,this};this.update=function(n){var l,nt,tt,it,b,ut,rt,ft;if(n<f)return!0;y===!1&&(v!==null&&v.call(t,t),y=!0);nt=(n-f)/o;nt=nt>1?1:nt;tt=d(nt);for(l in i)r[l]!==undefined&&(it=r[l]||0,b=i[l],b instanceof Array?t[l]=g(b,tt):(typeof b=="string"&&(b=b.charAt(0)==="+"||b.charAt(0)==="-"?it+parseFloat(b):parseFloat(b)),typeof b=="number"&&(t[l]=it+(b-it)*tt)));if(p!==null&&p.call(t,tt),nt===1){if(s>0){isFinite(s)&&s--;for(l in u)typeof i[l]=="string"&&(u[l]=u[l]+parseFloat(i[l])),c&&(ut=u[l],u[l]=i[l],i[l]=ut),r[l]=u[l];return c&&(k=!k),f=h!==undefined?n+h:n+a,!0}for(w!==null&&w.call(t,t),rt=0,ft=e.length;rt<ft;rt++)e[rt].start(f+o);return!1}return!0}};TWEEN.Easing={Linear:{None:function(n){return n}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.cos(n*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return.5*(1-Math.cos(Math.PI*n))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1)?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1}},Back:{In:function(n){var t=1.70158;return n*n*((t+1)*n-t)},Out:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},InOut:function(n){var t=1.70158*1.525;return(n*=2)<1?.5*n*n*((t+1)*n-t):.5*((n-=2)*n*((t+1)*n+t)+2)}},Bounce:{In:function(n){return 1-TWEEN.Easing.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?TWEEN.Easing.Bounce.In(n*2)*.5:TWEEN.Easing.Bounce.Out(n*2-1)*.5+.5}}};TWEEN.Interpolation={Linear:function(n,t){var i=n.length-1,r=i*t,u=Math.floor(r),f=TWEEN.Interpolation.Utils.Linear;return t<0?f(n[0],n[1],r):t>1?f(n[i],n[i-1],i-r):f(n[u],n[u+1>i?i:u+1],r-u)},Bezier:function(n,t){for(var u=0,r=n.length-1,f=Math.pow,e=TWEEN.Interpolation.Utils.Bernstein,i=0;i<=r;i++)u+=f(1-t,r-i)*f(t,i)*n[i]*e(r,i);return u},CatmullRom:function(n,t){var i=n.length-1,u=i*t,r=Math.floor(u),f=TWEEN.Interpolation.Utils.CatmullRom;return n[0]===n[i]?(t<0&&(r=Math.floor(u=i*(1+t))),f(n[(r-1+i)%i],n[r],n[(r+1)%i],n[(r+2)%i],u-r)):t<0?n[0]-(f(n[0],n[0],n[1],n[1],-u)-n[0]):t>1?n[i]-(f(n[i],n[i],n[i-1],n[i-1],u-i)-n[i]):f(n[r?r-1:0],n[r],n[i<r+1?i:r+1],n[i<r+2?i:r+2],u-r)},Utils:{Linear:function(n,t,i){return(t-n)*i+n},Bernstein:function(n,t){var i=TWEEN.Interpolation.Utils.Factorial;return i(n)/i(t)/i(n-t)},Factorial:function(){var n=[1];return function(t){var r=1,i;if(n[t])return n[t];for(i=t;i>1;i--)r*=i;return n[t]=r,r}}(),CatmullRom:function(n,t,i,r,u){var f=(i-n)*.5,e=(r-t)*.5,o=u*u,s=u*o;return(2*t-2*i+f+e)*s+(-3*t+3*i-2*f-e)*o+f*u+t}}},function(n){typeof define=="function"&&define.amd?define([],function(){return TWEEN}):typeof module!="undefined"&&(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?module.exports=TWEEN:n!==undefined&&(n.TWEEN=TWEEN)}(this);THREE.OrbitControls=function(n,t){function st(){return Math.PI/1800*i.autoRotateSpeed}function wt(){return Math.pow(.95,i.zoomSpeed)}function ti(n){if(l=!1,s=h=0,i.enabled!==!1){if(n.preventDefault(),n.button===i.mouseButtons.ORBIT){if(i.noRotate===!0)return;u=r.ROTATE;a.set(n.clientX,n.clientY)}else if(n.button===i.mouseButtons.ZOOM){if(i.noZoom===!0)return;u=r.DOLLY;ht.set(n.clientX,n.clientY)}else if(n.button===i.mouseButtons.PAN){if(i.noPan===!0)return;u=r.PAN;p.set(n.clientX,n.clientY)}u!==r.NONE&&(document.addEventListener("mousemove",bt,!1),document.addEventListener("mouseup",kt,!1),i.dispatchEvent(yt));i.update()}}function bt(n){if(i.enabled!==!1){n.preventDefault();var t=i.domElement===document?i.domElement.body:i.domElement;if(u===r.ROTATE){if(i.noRotate===!0)return;v.set(n.clientX,n.clientY);y.subVectors(v,a);i.rotateLeft(2*Math.PI*y.x/t.clientWidth*i.rotateSpeed);i.rotateUp(2*Math.PI*y.y/t.clientHeight*i.rotateSpeed);a.copy(v);o&&(s=n.clientX-o.clientX,h=n.clientY-o.clientY);o=n}else if(u===r.DOLLY){if(i.noZoom===!0)return;ct.set(n.clientX,n.clientY);lt.subVectors(ct,ht);lt.y>0?i.dollyIn():lt.y<0&&i.dollyOut();ht.copy(ct)}else if(u===r.PAN){if(i.noPan===!0)return;w.set(n.clientX,n.clientY);b.subVectors(w,p);i.pan(b.x,b.y);p.copy(w)}u!==r.NONE&&i.update()}}function kt(){(l=!0,o=undefined,i.enabled!==!1)&&(document.removeEventListener("mousemove",bt,!1),document.removeEventListener("mouseup",kt,!1),i.dispatchEvent(pt),u=r.NONE)}function dt(n){if(i.enabled!==!1&&i.noZoom!==!0&&u===r.NONE){n.preventDefault();n.stopPropagation();var t=0;n.wheelDelta!==undefined?t=n.wheelDelta:n.detail!==undefined&&(t=-n.detail);t>0?(i.object.fov=i.object.fov<i.maxFov?i.object.fov+1:i.maxFov,i.object.updateProjectionMatrix()):t<0&&(i.object.fov=i.object.fov>i.minFov?i.object.fov-1:i.minFov,i.object.updateProjectionMatrix());i.update();i.dispatchEvent(d);i.dispatchEvent(yt);i.dispatchEvent(pt)}}function ii(n){switch(n.keyCode){case i.keys.UP:ut=!1;break;case i.keys.BOTTOM:ft=!1;break;case i.keys.LEFT:et=!1;break;case i.keys.RIGHT:ot=!1}}function ri(n){if(i.enabled!==!1&&i.noKeys!==!0&&i.noRotate!==!0){switch(n.keyCode){case i.keys.UP:ut=!0;break;case i.keys.BOTTOM:ft=!0;break;case i.keys.LEFT:et=!0;break;case i.keys.RIGHT:ot=!0}(ut||ft||et||ot)&&(l=!0,ut&&(h=-i.rotateSpeed*i.momentumKeydownFactor),ft&&(h=i.rotateSpeed*i.momentumKeydownFactor),et&&(s=-i.rotateSpeed*i.momentumKeydownFactor),ot&&(s=i.rotateSpeed*i.momentumKeydownFactor))}}function ui(n){if(l=!1,s=h=0,i.enabled!==!1){switch(n.touches.length){case 1:if(i.noRotate===!0)return;u=r.TOUCH_ROTATE;a.set(n.touches[0].pageX,n.touches[0].pageY);break;case 2:if(i.noZoom===!0)return;u=r.TOUCH_DOLLY;var t=n.touches[0].pageX-n.touches[1].pageX,f=n.touches[0].pageY-n.touches[1].pageY,e=Math.sqrt(t*t+f*f);break;case 3:if(i.noPan===!0)return;u=r.TOUCH_PAN;p.set(n.touches[0].pageX,n.touches[0].pageY);break;default:u=r.NONE}u!==r.NONE&&i.dispatchEvent(yt)}}function fi(n){var t;if(i.enabled!==!1){n.preventDefault();n.stopPropagation();t=i.domElement===document?i.domElement.body:i.domElement;switch(n.touches.length){case 1:if(i.noRotate===!0)return;if(u!==r.TOUCH_ROTATE)return;v.set(n.touches[0].pageX,n.touches[0].pageY);y.subVectors(v,a);i.rotateLeft(2*Math.PI*y.x/t.clientWidth*i.rotateSpeed);i.rotateUp(2*Math.PI*y.y/t.clientHeight*i.rotateSpeed);a.copy(v);o&&(s=n.touches[0].pageX-o.pageX,h=n.touches[0].pageY-o.pageY);o={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY};i.update();break;case 2:if(i.noZoom===!0)return;if(u!==r.TOUCH_DOLLY)return;var f=n.touches[0].pageX-n.touches[1].pageX,e=n.touches[0].pageY-n.touches[1].pageY,c=Math.sqrt(f*f+e*e);n.scale<1?(i.object.fov=i.object.fov<i.maxFov?i.object.fov+1:i.maxFov,i.object.updateProjectionMatrix()):n.scale>1&&(i.object.fov=i.object.fov>i.minFov?i.object.fov-1:i.minFov,i.object.updateProjectionMatrix());i.update();i.dispatchEvent(d);break;case 3:if(i.noPan===!0)return;if(u!==r.TOUCH_PAN)return;w.set(n.touches[0].pageX,n.touches[0].pageY);b.subVectors(w,p);i.pan(b.x,b.y);p.copy(w);i.update();break;default:u=r.NONE}}}function ei(){(l=!0,o=undefined,i.enabled!==!1)&&(i.dispatchEvent(pt),u=r.NONE)}this.object=n;this.domElement=t!==undefined?t:document;this.frameId;this.enabled=!0;this.target=new THREE.Vector3;this.center=this.target;this.noZoom=!1;this.zoomSpeed=1;this.minDistance=0;this.maxDistance=Infinity;this.minZoom=0;this.maxZoom=Infinity;this.noRotate=!1;this.rotateSpeed=-.15;this.noPan=!0;this.keyPanSpeed=7;this.autoRotate=!1;this.autoRotateSpeed=2;this.minPolarAngle=0;this.maxPolarAngle=Math.PI;this.momentumDampingFactor=.9;this.momentumScalingFactor=-.005;this.momentumKeydownFactor=20;this.minFov=30;this.maxFov=120;this.minAzimuthAngle=-Infinity;this.maxAzimuthAngle=Infinity;this.noKeys=!1;this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40};this.mouseButtons={ORBIT:THREE.MOUSE.LEFT,ZOOM:THREE.MOUSE.MIDDLE,PAN:THREE.MOUSE.RIGHT};var i=this,g=1e-7,gt=.0001,a=new THREE.Vector2,v=new THREE.Vector2,y=new THREE.Vector2,p=new THREE.Vector2,w=new THREE.Vector2,b=new THREE.Vector2,k=new THREE.Vector3,f=new THREE.Vector3,ht=new THREE.Vector2,ct=new THREE.Vector2,lt=new THREE.Vector2,c,e,nt=0,tt=0,it=1,rt=new THREE.Vector3,at=new THREE.Vector3,vt=new THREE.Quaternion,s=0,h=0,o,l=!1,ut,ft,et,ot,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},u=r.NONE;this.target0=this.target.clone();this.position0=this.object.position.clone();this.zoom0=this.object.zoom;var ni=(new THREE.Quaternion).setFromUnitVectors(n.up,new THREE.Vector3(0,1,0)),oi=ni.clone().inverse(),d={type:"change"},yt={type:"start"},pt={type:"end"};this.setLastQuaternion=function(n){vt.copy(n);i.object.quaternion.copy(n)};this.getLastPosition=function(){return at};this.rotateLeft=function(n){n===undefined&&(n=st());tt-=n};this.rotateUp=function(n){n===undefined&&(n=st());nt-=n};this.panLeft=function(n){var t=this.object.matrix.elements;k.set(t[0],t[1],t[2]);k.multiplyScalar(-n);rt.add(k)};this.panUp=function(n){var t=this.object.matrix.elements;k.set(t[4],t[5],t[6]);k.multiplyScalar(n);rt.add(k)};this.pan=function(n,t){var r=i.domElement===document?i.domElement.body:i.domElement;if(i.object instanceof THREE.PerspectiveCamera){var f=i.object.position,e=f.clone().sub(i.target),u=e.length();u*=Math.tan(i.object.fov/2*Math.PI/180);i.panLeft(2*n*u/r.clientHeight);i.panUp(2*t*u/r.clientHeight)}else i.object instanceof THREE.OrthographicCamera?(i.panLeft(n*(i.object.right-i.object.left)/r.clientWidth),i.panUp(t*(i.object.top-i.object.bottom)/r.clientHeight)):console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.")};this.momentum=function(){if(l){if(Math.abs(s)<gt&&Math.abs(h)<gt){l=!1;return}h*=this.momentumDampingFactor;s*=this.momentumDampingFactor;tt-=this.momentumScalingFactor*s;nt-=this.momentumScalingFactor*h}};this.dollyIn=function(n){n===undefined&&(n=wt());i.object instanceof THREE.PerspectiveCamera?it/=n:i.object instanceof THREE.OrthographicCamera?(i.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom*n)),i.object.updateProjectionMatrix(),i.dispatchEvent(d)):console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.")};this.dollyOut=function(n){n===undefined&&(n=wt());i.object instanceof THREE.PerspectiveCamera?it*=n:i.object instanceof THREE.OrthographicCamera?(i.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/n)),i.object.updateProjectionMatrix(),i.dispatchEvent(d)):console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.")};this.update=function(n){var i=this.object.position,t;f.copy(i).sub(this.target);f.applyQuaternion(ni);c=Math.atan2(f.x,f.z);e=Math.atan2(Math.sqrt(f.x*f.x+f.z*f.z),f.y);this.autoRotate&&u===r.NONE&&this.rotateLeft(st());this.momentum();c+=tt;e+=nt;c=Math.max(this.minAzimuthAngle,Math.min(this.maxAzimuthAngle,c));e=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,e));e=Math.max(g,Math.min(Math.PI-g,e));t=f.length()*it;t=Math.max(this.minDistance,Math.min(this.maxDistance,t));this.target.add(rt);f.x=t*Math.sin(e)*Math.sin(c);f.y=t*Math.cos(e);f.z=t*Math.sin(e)*Math.cos(c);f.applyQuaternion(oi);i.copy(this.target).add(f);this.object.lookAt(this.target);tt=0;nt=0;it=1;rt.set(0,0,0);(at.distanceToSquared(this.object.position)>g||8*(1-vt.dot(this.object.quaternion))>g)&&(n!==!0&&this.dispatchEvent(d),at.copy(this.object.position),vt.copy(this.object.quaternion))};this.reset=function(){u=r.NONE;this.target.copy(this.target0);this.object.position.copy(this.position0);this.object.zoom=this.zoom0;this.object.updateProjectionMatrix();this.dispatchEvent(d);this.update()};this.getPolarAngle=function(){return e};this.getAzimuthalAngle=function(){return c};this.domElement.addEventListener("mousedown",ti,!1);this.domElement.addEventListener("mousewheel",dt,!1);this.domElement.addEventListener("DOMMouseScroll",dt,!1);this.domElement.addEventListener("touchstart",ui,!1);this.domElement.addEventListener("touchend",ei,!1);this.domElement.addEventListener("touchmove",fi,!1);window.addEventListener("keyup",ii,!1);window.addEventListener("keydown",ri,!1);this.update()};THREE.OrbitControls.prototype=Object.create(THREE.EventDispatcher.prototype);THREE.OrbitControls.prototype.constructor=THREE.OrbitControls;THREE.DeviceOrientationControls=function(n,t){var i=this,l={type:"change"},o=0,r=0,u=0,f=0;this.camera=n;this.camera.rotation.reorder("YXZ");this.domElement=t!==undefined?t:document;this.enabled=!0;this.deviceOrientation={};this.screenOrientation=0;this.alpha=0;this.alphaOffsetAngle=0;var s=function(n){i.deviceOrientation=n},e=function(){i.screenOrientation=window.orientation||0},h=function(n){n.preventDefault();n.stopPropagation();u=n.touches[0].pageX;f=n.touches[0].pageY},c=function(n){n.preventDefault();n.stopPropagation();o+=THREE.Math.degToRad((n.touches[0].pageX-u)/4);r+=THREE.Math.degToRad((f-n.touches[0].pageY)/4);i.updateAlphaOffsetAngle(o);u=n.touches[0].pageX;f=n.touches[0].pageY},a=function(n,t,u,f,e){var l=new THREE.Vector3(0,0,1),c=new THREE.Euler,a=new THREE.Quaternion,h=new THREE.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5)),o,s=new THREE.Quaternion,v=new THREE.Quaternion;i.screenOrientation==0?(o=new THREE.Vector3(1,0,0),s.setFromAxisAngle(o,-r)):i.screenOrientation==180?(o=new THREE.Vector3(1,0,0),s.setFromAxisAngle(o,r)):i.screenOrientation==90?(o=new THREE.Vector3(0,1,0),s.setFromAxisAngle(o,r)):i.screenOrientation==-90&&(o=new THREE.Vector3(0,1,0),s.setFromAxisAngle(o,-r));h.multiply(s);h.multiply(v);c.set(u,t,-f,"YXZ");n.setFromEuler(c);n.multiply(h);n.multiply(a.setFromAxisAngle(l,-e))};this.connect=function(){e();window.addEventListener("orientationchange",e,!1);window.addEventListener("deviceorientation",s,!1);window.addEventListener("deviceorientation",this.update.bind(this),!1);i.domElement.addEventListener("touchstart",h,!1);i.domElement.addEventListener("touchmove",c,!1);i.enabled=!0};this.disconnect=function(){window.removeEventListener("orientationchange",e,!1);window.removeEventListener("deviceorientation",s,!1);window.removeEventListener("deviceorientation",this.update.bind(this),!1);i.domElement.removeEventListener("touchstart",h,!1);i.domElement.removeEventListener("touchmove",c,!1);i.enabled=!1};this.update=function(n){if(i.enabled!==!1){var t=i.deviceOrientation.alpha?THREE.Math.degToRad(i.deviceOrientation.alpha)+this.alphaOffsetAngle:0,r=i.deviceOrientation.beta?THREE.Math.degToRad(i.deviceOrientation.beta):0,u=i.deviceOrientation.gamma?THREE.Math.degToRad(i.deviceOrientation.gamma):0,f=i.screenOrientation?THREE.Math.degToRad(i.screenOrientation):0;a(i.camera.quaternion,t,r,u,f);this.alpha=t;n!==!0&&this.dispatchEvent(l)}};this.updateAlphaOffsetAngle=function(n){this.alphaOffsetAngle=n;this.update()};this.dispose=function(){this.disconnect()};this.connect()};THREE.DeviceOrientationControls.prototype=Object.create(THREE.EventDispatcher.prototype);THREE.DeviceOrientationControls.prototype.constructor=THREE.DeviceOrientationControls;THREE.BendModifier=function(){};THREE.BendModifier.prototype={constructor:THREE.BendModifier,set:function(n,t,i){return this.direction=new THREE.Vector3,this.direction.copy(n),this.axis=new THREE.Vector3,this.axis.copy(t),this.angle=i,this},_sign:function(n){return 0>n?-1:0<n?1:0},_cosh:function(n){return(Math.exp(n)+Math.exp(-n))/2},_sinhInverse:function(n){return Math.log(Math.abs(n)+Math.sqrt(n*n+1))},modify:function(n){var y=new THREE.Vector3,p,w,ot,t,it,st,ht,ct,b,lt,l,a,at;y.crossVectors(this.direction,this.axis);p=new THREE.Matrix4;p.set(y.x,y.y,y.z,0,this.direction.x,this.direction.y,this.direction.z,0,this.axis.x,this.axis.y,this.axis.z,0,0,0,0,1).transpose();var wt=(new THREE.Matrix4).getInverse(p),i=[],u=[],vt=[],k=0,d=0,g=0,nt=0;for(t=0;t<n.vertices.length;t++)i[t]=new THREE.Vector3,i[t].copy(n.vertices[t]).applyMatrix4(wt),i[t].x>k&&(k=i[t].x),i[t].x<d&&(d=i[t].x),i[t].y>g&&(g=i[t].y),i[t].y<nt&&(nt=i[t].y);var rt=k-d,v=g-nt,s=2*this._sinhInverse(Math.tan(this.angle))/rt,h=(k+d)/2,bt=(g+nt)/2;for(t=0;t<n.vertices.length;t++)u[t]=new THREE.Vector3,u[t].copy(i[t]),i[t].x=this._sign(i[t].x-h)*1/s*this._sinhInverse((i[t].x-h)*s);var ut=2/s*this._sinhInverse(rt/2*s),c=2*this._sinhInverse(Math.tan(this.angle))/ut,tt=new THREE.Vector3(ut/2,-v/2,0);for(tt.y=1/c*this._cosh(c*tt.x)-1/c-v/2,w=new THREE.Vector3(0,tt.y+tt.x/Math.tan(this.angle),0),t=0;t<n.vertices.length;t++){var ft=this._sign(u[t].x-h)*1/s*this._sinhInverse((u[t].x-h)*s),yt=1/c*this._cosh(c*ft)-1/c,kt=new THREE.Vector3(w.x-ft,w.y-(yt-v/2),w.z).normalize(),et=new THREE.Vector3;et.addVectors(new THREE.Vector3(ft,yt-v/2,u[t].z),kt.multiplyScalar(u[t].y+v/2));i[t].x=et.x;i[t].y=et.y}for(ot=h*ut/rt,t=0;t<n.vertices.length;t++)it=new THREE.Vector3(h,bt,u[t].z),st=new THREE.Vector3,st.subVectors(u[t],it),ht=new THREE.Vector3,ht.subVectors(i[t],it),vt[t]=Math.acos(1/this._cosh(s*i[t].x))*this._sign(i[t].x),i[t].x=i[t].x+ot,n.vertices[t].copy(i[t].applyMatrix4(p));for(n.computeFaceNormals(),n.verticesNeedUpdate=!0,n.normalsNeedUpdate=!0,ct=["a","b","c","d"],b=0,lt=n.faces.length;b<lt;b++)if(l=n.faces[b],l.vertexNormals!==undefined)for(a=0,at=l.vertexNormals.length;a<at;a++){var r=vt[l[ct[a]]],f=this.axis.x,e=this.axis.y,o=this.axis.z,pt=new THREE.Matrix3;pt.set(Math.cos(r)+(1-Math.cos(r))*f*f,(1-Math.cos(r))*f*e-Math.sin(r)*o,(1-Math.cos(r))*f*o+Math.sin(r)*e,(1-Math.cos(r))*e*f+Math.sin(r)*o,Math.cos(r)+(1-Math.cos(r))*e*e,(1-Math.cos(r))*e*o-Math.sin(r)*f,(1-Math.cos(r))*o*f-Math.sin(r)*e,(1-Math.cos(r))*o*e+Math.sin(r)*f,Math.cos(r)+(1-Math.cos(r))*o*o);l.vertexNormals[a].applyMatrix3(pt)}return this}};THREE.CardboardEffect=function(n){var g=new THREE.OrthographicCamera(-1,1,1,-1,0,1),c=new THREE.Scene,s=new THREE.StereoCamera,l,t,r,e,u,a,i,v,y,p;s.aspect=.5;l={minFilter:THREE.LinearFilter,magFilter:THREE.NearestFilter,format:THREE.RGBAFormat};t=new THREE.WebGLRenderTarget(512,512,l);t.scissorTest=!0;t.texture.generateMipmaps=!1;var w=new THREE.Vector2(.441,.156),f=new THREE.PlaneBufferGeometry(1,1,10,20).removeAttribute("normal").toNonIndexed(),o=f.attributes.position.array,h=f.attributes.uv.array;for(f.attributes.position.count*=2,f.attributes.uv.count*=2,r=new Float32Array(o.length*2),r.set(o),r.set(o,o.length),e=new Float32Array(h.length*2),e.set(h),e.set(h,h.length),u=new THREE.Vector2,a=o.length/3,i=0,v=r.length/3;i<v;i++){u.x=r[i*3+0];u.y=r[i*3+1];var b=u.dot(u),k=1.5+(w.x+w.y*b)*b,d=i<a?0:1;r[i*3+0]=u.x/k*1.5-.5+d;r[i*3+1]=u.y/k*3;e[i*2]=(e[i*2]+d)*.5}f.attributes.position.array=r;f.attributes.uv.array=e;y=new THREE.MeshBasicMaterial({map:t.texture});p=new THREE.Mesh(f,y);c.add(p);this.setSize=function(i,r){n.setSize(i,r);var u=n.getPixelRatio();t.setSize(i*u,r*u)};this.render=function(i,r){i.updateMatrixWorld();r.parent===null&&r.updateMatrixWorld();s.update(r);var u=t.width/2,f=t.height;t.scissor.set(0,0,u,f);t.viewport.set(0,0,u,f);n.render(i,s.cameraL,t);t.scissor.set(u,0,u,f);t.viewport.set(u,0,u,f);n.render(i,s.cameraR,t);n.render(c,g)}};THREE.StereoEffect=function(n){var t=new THREE.StereoCamera;t.aspect=.5;this.setEyeSeparation=function(n){t.eyeSep=n};this.setSize=function(t,i){n.setSize(t,i)};this.render=function(i,r){i.updateMatrixWorld();r.parent===null&&r.updateMatrixWorld();t.update(r);var u=n.getSize();n.autoClear&&n.clear();n.setScissorTest(!0);n.setScissor(0,0,u.width/2,u.height);n.setViewport(0,0,u.width/2,u.height);n.render(i,t.cameraL);n.setScissor(u.width/2,0,u.width/2,u.height);n.setViewport(u.width/2,0,u.width/2,u.height);n.render(i,t.cameraR);n.setScissorTest(!1)}};GSVPANO=GSVPANO||{};GSVPANO.PanoLoader=function(n){"use strict";var v=n||{},t,e,b=new google.maps.StreetViewService,f=0,o=0,s=[],c=[],h=0,l=0,k="",y=[1,2,4,7,13,26],p=[1,1,2,4,7,13],d=[416,832,1664,3328,6656,13312],g=[416,416,832,1664,3328,6656],u=null,a,i,r,w;try{a=document.createElement("canvas");u=a.getContext("experimental-webgl");u==null&&(u=a.getContext("webgl"))}catch(nt){}i=1024;r=1024;u&&(w=Math.max(u.getParameter(u.MAX_TEXTURE_SIZE),6656),i=r=w);this.setProgress=function(n,t){if(this.onProgress)this.onProgress({loaded:n,total:t})};this.throwError=function(n){if(this.onError)this.onError(n);else console.error(n)};this.adaptTextureToZoom=function(){var e=y[t]*416,o=p[t]*416,a,n,u,f;for(e=d[t],o=g[t],h=Math.ceil(e/i),l=Math.ceil(o/r),s=[],c=[],a=0,n=0;n<l;n++)for(u=0;u<h;u++)f=document.createElement("canvas"),f.width=u<h-1?i:e-i*u,f.height=n<l-1?r:o-r*n,s.push(f),c.push(f.getContext("2d")),a++};this.composeFromTile=function(n,t,u){n*=512;t*=512;var f=Math.floor(n/i),e=Math.floor(t/r);n-=f*i;t-=e*r;c[e*h+f].drawImage(u,0,0,u.width,u.height,n,t,512,512);this.progress()};this.progress=function(){f++;var n=Math.round(f*100/o);if(this.setProgress(f,o),f===o&&(this.canvas=s,this.panoId=e,this.zoom=t,this.onPanoramaLoad))this.onPanoramaLoad(s[0])};this.loadFromId=function(n){e=n;this.composePanorama()};this.composePanorama=function(){var r,n,i,u;this.setProgress(0,1);var s=y[t],h=p[t],r=this,u,i,n;for(f=0,o=s*h,r=this,n=0;n<h;n++)for(i=0;i<s;i++)u="https://geo0.ggpht.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=en&output=tile&zoom="+t+"&x="+i+"&y="+n+"&panoid="+e+"&nbt&fover=2",function(n,t){var f,i;v.useWebGL?f=THREE.ImageUtils.loadTexture(u,null,function(){r.composeFromTile(n,t,f)}):(i=new Image,i.addEventListener("load",function(){r.composeFromTile(n,t,this)}),i.crossOrigin="",i.src=u)}(i,n)};this.load=function(n){this.loadPano(n)};this.loadPano=function(n){var t=this;b.getPanoramaById(n,function(n,i){if(i===google.maps.StreetViewStatus.OK){if(t.result=n,t.onPanoramaData)t.onPanoramaData(n);k=n.copyright;t.copyright=n.copyright;e=n.location.pano;t.location=location;t.composePanorama()}else{if(t.onNoPanoramaData)t.onNoPanoramaData(i);t.throwError("Could not retrieve panorama for the following reason: "+i)}})};this.setZoom=function(n){t=n;this.adaptTextureToZoom()};this.setZoom(v.zoom||1)},function(){"use strict";PANOLENS.DataImageSource="https://pchen66.github.io/Panolens/asset/icon/";PANOLENS.DataImage={Info:PANOLENS.DataImageSource+"information.png",Arrow:PANOLENS.DataImageSource+"arrow-up.png",FullscreenEnter:PANOLENS.DataImageSource+"fullscreen.png",FullscreenLeave:PANOLENS.DataImageSource+"fullscreen-exit.png",VideoPlay:PANOLENS.DataImageSource+"video-play.png",VideoPause:PANOLENS.DataImageSource+"pause.png",WhiteTile:PANOLENS.DataImageSource+"tiles.png",ReticleIdle:PANOLENS.DataImageSource+"reticle-idle.png",Setting:PANOLENS.DataImageSource+"setting.png",ChevronRight:PANOLENS.DataImageSource+"chevron-right.png",Check:PANOLENS.DataImageSource+"check.png",ViewIndicator:PANOLENS.DataImageSource+"view-indicator.svg",ReticleDwell:PANOLENS.DataImageSource+"reticle-animation.png"}}(),function(){"use strict";PANOLENS.Controls={ORBIT:0,DEVICEORIENTATION:1};PANOLENS.Modes={UNKNOWN:0,NORMAL:1,CARDBOARD:2,STEREO:3}}(),function(){"use strict";PANOLENS.Utils={};PANOLENS.Utils.checkTouchSupported=function(){return window?"ontouchstart"in window||window.navigator.msMaxTouchPoints:!1}}(),function(){"use strict";PANOLENS.Utils.ImageLoader={};PANOLENS.Utils.ImageLoader.load=function(n,t,i){function h(){s.revokeObjectURL(r.src);t&&t(r)}var e,u,c,l,s,r,f,o;for(o in PANOLENS.DataImage)PANOLENS.DataImage.hasOwnProperty(o)&&n===PANOLENS.DataImage[o]&&(f=o);if(e=THREE.Cache.get(f?f:n),e!==undefined)return t&&setTimeout(function(){i&&i({loaded:1,total:1});t(e)},0),e;if(s=window.URL||window.webkitURL,r=document.createElementNS("http://www.w3.org/1999/xhtml","img"),THREE.Cache.add(f?f:n,r),n.indexOf("data:")===0)return r.addEventListener("load",h,!1),r.src=n,r;r.crossOrigin=this.crossOrigin!==undefined?this.crossOrigin:"";u=new XMLHttpRequest;u.open("GET",n,!0);u.responseType="arraybuffer";u.onprogress=function(n){n.lengthComputable&&i&&i({loaded:n.loaded,total:n.total})};u.onloadend=function(){c=new Uint8Array(this.response);l=new Blob([c]);r.addEventListener("load",h,!1);r.src=s.createObjectURL(l)};u.send(null)};THREE.Cache.enabled=!0}(),function(){"use strict";PANOLENS.Utils.TextureLoader={};PANOLENS.Utils.TextureLoader.load=function(n,t,i,r){var u=new THREE.Texture;return PANOLENS.Utils.ImageLoader.load(n,function(n){u.image=n;u.needsUpdate=!0;t&&t(u)},i,r),u}}(),function(){"use strict";PANOLENS.Utils.CubeTextureLoader={};PANOLENS.Utils.CubeTextureLoader.load=function(n,t,i,r){var f,s,e,u,o;return f=new THREE.CubeTexture([]),s=0,e={},u={},n.map(function(n,h){PANOLENS.Utils.ImageLoader.load(n,function(n){f.images[h]=n;s++;s===6&&(f.needsUpdate=!0,t&&t(f))},function(n){e[h]={loaded:n.loaded,total:n.total};u.loaded=0;u.total=0;o=0;for(var t in e)o++,u.loaded+=e[t].loaded,u.total+=e[t].total;o<6&&(u.total=u.total/o*6);i&&i(u)},r)}),f}}();PANOLENS.StereographicShader={uniforms:{tDiffuse:{value:new THREE.Texture},resolution:{value:1},transform:{value:new THREE.Matrix4},zoom:{value:1}},vertexShader:"varying vec2 vUv;\nvoid main() {\nvUv = uv;\ngl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D tDiffuse;\nuniform float resolution;\nuniform mat4 transform;\nuniform float zoom;\nvarying vec2 vUv;\nconst float PI = 3.141592653589793;\nvoid main(){\nvec2 position = -1.0 +  2.0 * vUv;\nposition *= vec2( zoom * resolution, zoom * 0.5 );\nfloat x2y2 = position.x * position.x + position.y * position.y;\nvec3 sphere_pnt = vec3( 2. * position, x2y2 - 1. ) / ( x2y2 + 1. );\nsphere_pnt = vec3( transform * vec4( sphere_pnt, 1.0 ) );\nvec2 sampleUV = vec2(\n(atan(sphere_pnt.y, sphere_pnt.x) / PI + 1.0) * 0.5,\n(asin(sphere_pnt.z) / PI + 0.5)\n);\ngl_FragColor = texture2D( tDiffuse, sampleUV );\n}"},function(){"use strict";PANOLENS.Panorama=function(n,t){THREE.Mesh.call(this);this.type="panorama";this.ImageQualityLow=1;this.ImageQualityFair=2;this.ImageQualityMedium=3;this.ImageQualityHigh=4;this.ImageQualitySuperHigh=5;this.animationDuration=1e3;this.defaultInfospotSize=350;this.container=undefined;this.loaded=!1;this.linkedSpots=[];this.isInfospotVisible=!1;this.linkingImageURL=undefined;this.linkingImageScale=undefined;this.geometry=n;this.material=t;this.material.side=THREE.DoubleSide;this.material.visible=!1;this.scale.x*=-1;this.infospotAnimation=new TWEEN.Tween(this).to({},this.animationDuration/2);this.addEventListener("load",this.fadeIn.bind(this));this.addEventListener("panolens-container",this.setContainer.bind(this));this.addEventListener("click",this.onClick.bind(this));this.setupTransitions()};PANOLENS.Panorama.prototype=Object.create(THREE.Mesh.prototype);PANOLENS.Panorama.prototype.constructor=PANOLENS.Panorama;PANOLENS.Panorama.prototype.add=function(n){var r,t,i;if(r=this,arguments.length>1){for(i=0;i<arguments.length;i++)this.add(arguments[i]);return this}n instanceof PANOLENS.Infospot?(t=n,n.dispatchEvent&&(this.container&&n.dispatchEvent({type:"panolens-container",container:this.container}),n.dispatchEvent({type:"panolens-infospot-focus",method:function(n,t,i){r.dispatchEvent({type:"panolens-viewer-handler",method:"tweenControlCenter",data:[n,t,i]})}}))):(t=new THREE.Object3D,t.scale.x=-1,t.scalePlaceHolder=!0,t.add(n));THREE.Object3D.prototype.add.call(this,t)};PANOLENS.Panorama.prototype.load=function(){this.onLoad()};PANOLENS.Panorama.prototype.onClick=function(n){n.intersects&&n.intersects.length===0&&this.traverse(function(n){n.dispatchEvent({type:"dismiss"})})};PANOLENS.Panorama.prototype.setContainer=function(n){var t;n instanceof HTMLElement?t=n:n&&n.container&&(t=n.container);t&&(this.children.forEach(function(n){n instanceof PANOLENS.Infospot&&n.dispatchEvent&&n.dispatchEvent({type:"panolens-container",container:t})}),this.container=t)};PANOLENS.Panorama.prototype.onLoad=function(){this.loaded=!0;this.dispatchEvent({type:"load"})};PANOLENS.Panorama.prototype.onProgress=function(n){this.dispatchEvent({type:"progress",progress:n})};PANOLENS.Panorama.prototype.onError=function(){this.dispatchEvent({type:"error"})};PANOLENS.Panorama.prototype.getZoomLevel=function(){return window.innerWidth<=800?this.ImageQualityFair:window.innerWidth>800&&window.innerWidth<=1280?this.ImageQualityMedium:window.innerWidth>1280&&window.innerWidth<=1920?this.ImageQualityHigh:window.innerWidth>1920?this.ImageQualitySuperHigh:this.ImageQualityLow};PANOLENS.Panorama.prototype.updateTexture=function(n){this.material.map=n;this.material.needsUpdate=!0};PANOLENS.Panorama.prototype.toggleInfospotVisibility=function(n,t){t=t!==undefined?t:0;var r,i;r=this;i=n!==undefined?n:this.isInfospotVisible?!1:!0;this.traverse(function(n){n instanceof PANOLENS.Infospot&&(i?n.show(t):n.hide(t))});this.isInfospotVisible=i;this.infospotAnimation.onComplete(function(){r.dispatchEvent({type:"infospot-animation-complete",visible:i})}).delay(t).start()};PANOLENS.Panorama.prototype.setLinkingImage=function(n,t){this.linkingImageURL=n;this.linkingImageScale=t};PANOLENS.Panorama.prototype.link=function(n,t,i,r){var o=this,u,f,e;if(this.visible=!0,!t){console.warn("Please specify infospot position for linking");return}f=i!==undefined?i:n.linkingImageScale!==undefined?n.linkingImageScale:300;e=r?r:n.linkingImageURL?n.linkingImageURL:PANOLENS.DataImage.Arrow;u=new PANOLENS.Infospot(f,e);u.position.copy(t);u.toPanorama=n;u.addEventListener("click",function(){o.dispatchEvent({type:"panolens-viewer-handler",method:"setPanorama",data:n})});this.linkedSpots.push(u);this.add(u);this.visible=!1};PANOLENS.Panorama.prototype.reset=function(){this.children.length=0};PANOLENS.Panorama.prototype.setupTransitions=function(){this.fadeInAnimation=new TWEEN.Tween(this.material).easing(TWEEN.Easing.Quartic.Out).onStart(function(){this.visible=!0;this.material.visible=!0;this.dispatchEvent({type:"enter-fade-start"})}.bind(this));this.fadeOutAnimation=new TWEEN.Tween(this.material).easing(TWEEN.Easing.Quartic.Out).onComplete(function(){this.visible=!1;this.material.visible=!0;this.dispatchEvent({type:"leave-complete"})}.bind(this));this.enterTransition=new TWEEN.Tween(this).easing(TWEEN.Easing.Quartic.Out).onComplete(function(){this.dispatchEvent({type:"enter-animation-complete"})}.bind(this)).start();this.leaveTransition=new TWEEN.Tween(this).easing(TWEEN.Easing.Quartic.Out)};PANOLENS.Panorama.prototype.fadeIn=function(n){n=n>=0?n:this.animationDuration;this.fadeOutAnimation.stop();this.fadeInAnimation.to({opacity:1},n).onComplete(function(){this.toggleInfospotVisibility(!0,n/2);this.dispatchEvent({type:"enter-fade-complete"})}.bind(this)).start()};PANOLENS.Panorama.prototype.fadeOut=function(n){n=n>=0?n:this.animationDuration;this.fadeInAnimation.stop();this.fadeOutAnimation.to({opacity:0},n).start()};PANOLENS.Panorama.prototype.onEnter=function(){var n=this.animationDuration;this.leaveTransition.stop();this.enterTransition.to({},n).onStart(function(){this.dispatchEvent({type:"enter-animation-start"});this.loaded?this.fadeIn(n):this.load()}.bind(this)).start();this.dispatchEvent({type:"enter"})};PANOLENS.Panorama.prototype.onLeave=function(){var n=this.animationDuration;this.enterTransition.stop();this.leaveTransition.to({},n).onStart(function(){this.dispatchEvent({type:"leave-animation-start"});this.fadeOut(n);this.toggleInfospotVisibility(!1)}.bind(this)).start();this.dispatchEvent({type:"leave"})};PANOLENS.Panorama.prototype.dispose=function(){function n(t){for(var i=t.children.length-1;i>=0;i--)n(t.children[i]),t.remove(t.children[i]);t instanceof PANOLENS.Infospot&&t.dispose();t.geometry&&t.geometry.dispose();t.material&&t.material.dispose()}this.dispatchEvent({type:"panolens-viewer-handler",method:"onPanoramaDispose",data:this});n(this);this.parent&&this.parent.remove(this)}}(),function(){"use strict";PANOLENS.ImagePanorama=function(n,t){t=t||5e3;var i=new THREE.SphereGeometry(t,60,40),r=new THREE.MeshBasicMaterial({opacity:0,transparent:!0});PANOLENS.Panorama.call(this,i,r);this.src=n};PANOLENS.ImagePanorama.prototype=Object.create(PANOLENS.Panorama.prototype);PANOLENS.ImagePanorama.prototype.constructor=PANOLENS.ImagePanorama;PANOLENS.ImagePanorama.prototype.load=function(n){if(n=n||this.src,n){if(typeof n=="string")PANOLENS.Utils.TextureLoader.load(n,this.onLoad.bind(this),this.onProgress.bind(this),this.onError.bind(this));else if(n instanceof HTMLImageElement)this.onLoad(new THREE.Texture(n))}else{console.warn("Image source undefined");return}};PANOLENS.ImagePanorama.prototype.onLoad=function(n){n.minFilter=n.magFilter=THREE.LinearFilter;n.needsUpdate=!0;this.updateTexture(n);window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){PANOLENS.Panorama.prototype.onLoad.call(this)}.bind(this))}.bind(this))};PANOLENS.ImagePanorama.prototype.reset=function(){PANOLENS.Panorama.prototype.reset.call(this)}}(),function(){"use strict";PANOLENS.GoogleStreetviewPanorama=function(n,t){PANOLENS.ImagePanorama.call(this,undefined,t);this.panoId=n;this.gsvLoader=undefined;this.loadRequested=!1;this.setupGoogleMapAPI()};PANOLENS.GoogleStreetviewPanorama.prototype=Object.create(PANOLENS.ImagePanorama.prototype);PANOLENS.GoogleStreetviewPanorama.constructor=PANOLENS.GoogleStreetviewPanorama;PANOLENS.GoogleStreetviewPanorama.prototype.load=function(n){this.loadRequested=!0;n=n||this.panoId||{};n&&this.gsvLoader?this.loadGSVLoader(n):this.gsvLoader={}};PANOLENS.GoogleStreetviewPanorama.prototype.setupGoogleMapAPI=function(){var n=document.createElement("script");n.src="https://maps.googleapis.com/maps/api/js";n.onreadystatechange=this.setGSVLoader.bind(this);n.onload=this.setGSVLoader.bind(this);document.getElementsByTagName("head")[0].appendChild(n)};PANOLENS.GoogleStreetviewPanorama.prototype.setGSVLoader=function(){this.gsvLoader=new GSVPANO.PanoLoader;(this.gsvLoader==={}||this.loadRequested)&&this.load()};PANOLENS.GoogleStreetviewPanorama.prototype.getGSVLoader=function(){return this.gsvLoader};PANOLENS.GoogleStreetviewPanorama.prototype.loadGSVLoader=function(n){this.loadRequested=!1;this.gsvLoader.onProgress=this.onProgress.bind(this);this.gsvLoader.onPanoramaLoad=this.onLoad.bind(this);this.gsvLoader.setZoom(this.getZoomLevel());this.gsvLoader.load(n);this.gsvLoader.loaded=!0};PANOLENS.GoogleStreetviewPanorama.prototype.onLoad=function(n){this.gsvLoader&&PANOLENS.ImagePanorama.prototype.onLoad.call(this,new THREE.Texture(n))};PANOLENS.GoogleStreetviewPanorama.prototype.reset=function(){this.gsvLoader=undefined;PANOLENS.ImagePanorama.prototype.reset.call(this)}}(),function(){"use strict";PANOLENS.CubePanorama=function(n,t){var i,r,u;this.images=n||[];t=t||1e4;i=JSON.parse(JSON.stringify(THREE.ShaderLib.cube));r=new THREE.BoxGeometry(t,t,t);u=new THREE.ShaderMaterial({fragmentShader:i.fragmentShader,vertexShader:i.vertexShader,uniforms:i.uniforms,side:THREE.BackSide});PANOLENS.Panorama.call(this,r,u)};PANOLENS.CubePanorama.prototype=Object.create(PANOLENS.Panorama.prototype);PANOLENS.CubePanorama.prototype.constructor=PANOLENS.CubePanorama;PANOLENS.CubePanorama.prototype.load=function(){PANOLENS.Utils.CubeTextureLoader.load(this.images,this.onLoad.bind(this),this.onProgress.bind(this),this.onError.bind(this))};PANOLENS.CubePanorama.prototype.onLoad=function(n){this.material.uniforms.tCube.value=n;PANOLENS.Panorama.prototype.onLoad.call(this)}}(),function(){"use strict";PANOLENS.BasicPanorama=function(n){var t=PANOLENS.DataImage.WhiteTile;PANOLENS.CubePanorama.call(this,[t,t,t,t,t,t],n)};PANOLENS.BasicPanorama.prototype=Object.create(PANOLENS.CubePanorama.prototype);PANOLENS.BasicPanorama.prototype.constructor=PANOLENS.BasicPanorama}(),function(){"use strict";PANOLENS.VideoPanorama=function(n,t,i){i=i||5e3;var r=new THREE.SphereGeometry(i,60,40),u=new THREE.MeshBasicMaterial({opacity:0,transparent:!0});PANOLENS.Panorama.call(this,r,u);this.src=n;this.options=t||{};this.options.playsinline=this.options.playsinline!==!1?!0:!1;this.videoElement=undefined;this.videoRenderObject=undefined;this.videoProgress=0;this.isIOS=/iPhone|iPad|iPod/i.test(navigator.userAgent);this.isMobile=this.isIOS||/Android|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent);this.addEventListener("leave",this.pauseVideo.bind(this));this.addEventListener("enter-fade-start",this.resumeVideoProgress.bind(this));this.addEventListener("video-toggle",this.toggleVideo.bind(this));this.addEventListener("video-time",this.setVideoCurrentTime.bind(this))};PANOLENS.VideoPanorama.prototype=Object.create(PANOLENS.Panorama.prototype);PANOLENS.VideoPanorama.constructor=PANOLENS.VideoPanorama;PANOLENS.VideoPanorama.prototype.load=function(n,t){var i=this,r;n=n||this.src||"";t=t||this.options||{};this.videoElement=t.videoElement||document.createElement("video");this.videoElement.muted=t.muted||!1;this.videoElement.loop=t.loop!==undefined?t.loop:!0;this.videoElement.autoplay=t.autoplay!==undefined?t.autoplay:!1;this.videoElement.crossOrigin=t.crossOrigin!==undefined?t.crossOrigin:"anonymous";t.playsinline&&(this.videoElement.setAttribute("playsinline",""),this.videoElement.setAttribute("webkit-playsinline",""));r=function(){i.onProgress({loaded:1,total:1});i.setVideoTexture(i.videoElement);i.videoElement.autoplay&&i.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1});i.isMobile&&(i.videoElement.autoplay&&i.videoElement.muted?i.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1}):i.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0}));i.onLoad()};this.videoElement.readyState>2?r():(this.videoElement.querySelectorAll("source").length&&this.videoElement.src||(this.videoElement.src=n),this.videoElement.load());this.videoElement.onloadeddata=r;this.videoElement.ontimeupdate=function(){i.videoProgress=this.duration>=0?this.currentTime/this.duration:0;i.dispatchEvent({type:"panolens-viewer-handler",method:"onVideoUpdate",data:i.videoProgress})};this.videoElement.addEventListener("ended",function(){i.options.loop||(i.resetVideo(),i.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0}))},!1)};PANOLENS.VideoPanorama.prototype.setVideoTexture=function(n){var t,i;n&&(t=new THREE.VideoTexture(n),t.minFilter=THREE.LinearFilter,t.magFilter=THREE.LinearFilter,t.format=THREE.RGBFormat,i={video:n,videoTexture:t},this.isIOS&&enableInlineVideo(n),this.updateTexture(t),this.videoRenderObject=i)};PANOLENS.VideoPanorama.prototype.reset=function(){this.videoElement=undefined;PANOLENS.Panorama.prototype.reset.call(this)};PANOLENS.VideoPanorama.prototype.isVideoPaused=function(){return this.videoRenderObject.video.paused};PANOLENS.VideoPanorama.prototype.toggleVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&(this.isVideoPaused()?this.videoRenderObject.video.play():this.videoRenderObject.video.pause())};PANOLENS.VideoPanorama.prototype.setVideoCurrentTime=function(n){this.videoRenderObject&&this.videoRenderObject.video&&!Number.isNaN(n.percentage)&&n.percentage!==1&&(this.videoRenderObject.video.currentTime=this.videoRenderObject.video.duration*n.percentage,this.dispatchEvent({type:"panolens-viewer-handler",method:"onVideoUpdate",data:n.percentage}))};PANOLENS.VideoPanorama.prototype.playVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&this.isVideoPaused()&&this.videoRenderObject.video.play();this.dispatchEvent({type:"play"})};PANOLENS.VideoPanorama.prototype.pauseVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&!this.isVideoPaused()&&this.videoRenderObject.video.pause();this.dispatchEvent({type:"pause"})};PANOLENS.VideoPanorama.prototype.resumeVideoProgress=function(){this.videoElement.autoplay&&!this.isMobile?(this.playVideo(),this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!1})):(this.pauseVideo(),this.dispatchEvent({type:"panolens-viewer-handler",method:"updateVideoPlayButton",data:!0}));this.setVideoCurrentTime({percentage:this.videoProgress})};PANOLENS.VideoPanorama.prototype.resetVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&this.setVideoCurrentTime({percentage:0})};PANOLENS.VideoPanorama.prototype.isVideoMuted=function(){return this.videoRenderObject.video.muted};PANOLENS.VideoPanorama.prototype.muteVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&!this.isVideoMuted()&&(this.videoRenderObject.video.muted=!0);this.dispatchEvent({type:"volumechange"})};PANOLENS.VideoPanorama.prototype.unmuteVideo=function(){this.videoRenderObject&&this.videoRenderObject.video&&this.isVideoMuted()&&(this.videoRenderObject.video.muted=!1);this.dispatchEvent({type:"volumechange"})};PANOLENS.VideoPanorama.prototype.getVideoElement=function(){return this.videoRenderObject.video};PANOLENS.VideoPanorama.prototype.dispose=function(){this.resetVideo();this.pauseVideo();this.removeEventListener("leave",this.pauseVideo.bind(this));this.removeEventListener("enter-fade-start",this.resumeVideoProgress.bind(this));this.removeEventListener("video-toggle",this.toggleVideo.bind(this));this.removeEventListener("video-time",this.setVideoCurrentTime.bind(this));PANOLENS.Panorama.prototype.dispose.call(this)}}(),function(){"use strict";PANOLENS.EmptyPanorama=function(n){n=n||5e3;var t=new THREE.Geometry,i=new THREE.MeshBasicMaterial({color:0,opacity:1,transparent:!0});PANOLENS.Panorama.call(this,t,i)};PANOLENS.EmptyPanorama.prototype=Object.create(PANOLENS.Panorama.prototype);PANOLENS.EmptyPanorama.prototype.constructor=PANOLENS.EmptyPanorama}(),function(){PANOLENS.LittlePlanet=function(n,t,i,r){n=n||"image";n==="image"&&PANOLENS.ImagePanorama.call(this,t,i);this.size=i||1e4;this.ratio=r||.5;this.EPS=1e-6;this.frameId;this.geometry=this.createGeometry();this.material=this.createMaterial(this.size);this.dragging=!1;this.userMouse=new THREE.Vector2;this.quatA=new THREE.Quaternion;this.quatB=new THREE.Quaternion;this.quatCur=new THREE.Quaternion;this.quatSlerp=new THREE.Quaternion;this.vectorX=new THREE.Vector3(1,0,0);this.vectorY=new THREE.Vector3(0,1,0);this.addEventListener("window-resize",this.onWindowResize)};PANOLENS.LittlePlanet.prototype=Object.create(PANOLENS.ImagePanorama.prototype);PANOLENS.LittlePlanet.prototype.constructor=PANOLENS.LittlePlanet;PANOLENS.LittlePlanet.prototype.createGeometry=function(){return new THREE.PlaneGeometry(this.size,this.size*this.ratio)};PANOLENS.LittlePlanet.prototype.createMaterial=function(n){var t=PANOLENS.StereographicShader.uniforms;return t.zoom.value=n,new THREE.ShaderMaterial({uniforms:t,vertexShader:PANOLENS.StereographicShader.vertexShader,fragmentShader:PANOLENS.StereographicShader.fragmentShader})};PANOLENS.LittlePlanet.prototype.registerMouseEvents=function(){this.container.addEventListener("mousedown",this.onMouseDown.bind(this),!1);this.container.addEventListener("mousemove",this.onMouseMove.bind(this),!1);this.container.addEventListener("mouseup",this.onMouseUp.bind(this),!1);this.container.addEventListener("touchstart",this.onMouseDown.bind(this),!1);this.container.addEventListener("touchmove",this.onMouseMove.bind(this),!1);this.container.addEventListener("touchend",this.onMouseUp.bind(this),!1);this.container.addEventListener("mousewheel",this.onMouseWheel.bind(this),!1);this.container.addEventListener("DOMMouseScroll",this.onMouseWheel.bind(this),!1);this.container.addEventListener("contextmenu",this.onContextMenu.bind(this),!1)};PANOLENS.LittlePlanet.prototype.unregisterMouseEvents=function(){this.container.removeEventListener("mousedown",this.onMouseDown.bind(this),!1);this.container.removeEventListener("mousemove",this.onMouseMove.bind(this),!1);this.container.removeEventListener("mouseup",this.onMouseUp.bind(this),!1);this.container.removeEventListener("touchstart",this.onMouseDown.bind(this),!1);this.container.removeEventListener("touchmove",this.onMouseMove.bind(this),!1);this.container.removeEventListener("touchend",this.onMouseUp.bind(this),!1);this.container.removeEventListener("mousewheel",this.onMouseWheel.bind(this),!1);this.container.removeEventListener("DOMMouseScroll",this.onMouseWheel.bind(this),!1);this.container.removeEventListener("contextmenu",this.onContextMenu.bind(this),!1)};PANOLENS.LittlePlanet.prototype.onMouseDown=function(n){var r=n.clientX>=0?n.clientX:n.touches[0].clientX,u=n.clientY>=0?n.clientY:n.touches[0].clientY,f=n.touches&&n.touches.length||1;switch(f){case 1:this.dragging=!0;this.userMouse.set(r,u);break;case 2:var t=n.touches[0].pageX-n.touches[1].pageX,i=n.touches[0].pageY-n.touches[1].pageY,e=Math.sqrt(t*t+i*i);this.userMouse.pinchDistance=e}this.onUpdateCallback()};PANOLENS.LittlePlanet.prototype.onMouseMove=function(n){var t=n.clientX>=0?n.clientX:n.touches[0].clientX,i=n.clientY>=0?n.clientY:n.touches[0].clientY,o=n.touches&&n.touches.length||1,r,u;switch(o){case 1:r=THREE.Math.degToRad(t-this.userMouse.x)*.4;u=THREE.Math.degToRad(i-this.userMouse.y)*.4;this.dragging&&(this.quatA.setFromAxisAngle(this.vectorY,r),this.quatB.setFromAxisAngle(this.vectorX,u),this.quatCur.multiply(this.quatA).multiply(this.quatB),this.userMouse.set(t,i));break;case 2:var h=this.material.uniforms,f=n.touches[0].pageX-n.touches[1].pageX,e=n.touches[0].pageY-n.touches[1].pageY,s=Math.sqrt(f*f+e*e);this.addZoomDelta(this.userMouse.pinchDistance-s)}};PANOLENS.LittlePlanet.prototype.onMouseUp=function(){this.dragging=!1};PANOLENS.LittlePlanet.prototype.onMouseWheel=function(n){n.preventDefault();n.stopPropagation();var t=0;n.wheelDelta!==undefined?t=n.wheelDelta:n.detail!==undefined&&(t=-n.detail);this.addZoomDelta(t);this.onUpdateCallback()};PANOLENS.LittlePlanet.prototype.addZoomDelta=function(n){var t=this.material.uniforms,i=this.size*.1,r=this.size*10;t.zoom.value+=n;t.zoom.value<=i?t.zoom.value=i:t.zoom.value>=r&&(t.zoom.value=r)};PANOLENS.LittlePlanet.prototype.onUpdateCallback=function(){this.frameId=window.requestAnimationFrame(this.onUpdateCallback.bind(this));this.quatSlerp.slerp(this.quatCur,.1);this.material.uniforms.transform.value.makeRotationFromQuaternion(this.quatSlerp);!this.dragging&&1-this.quatSlerp.clone().dot(this.quatCur)<this.EPS&&window.cancelAnimationFrame(this.frameId)};PANOLENS.LittlePlanet.prototype.reset=function(){this.quatCur.set(0,0,0,1);this.quatSlerp.set(0,0,0,1);this.onUpdateCallback()};PANOLENS.LittlePlanet.prototype.onLoad=function(){this.material.uniforms.resolution.value=this.container.clientWidth/this.container.clientHeight;this.registerMouseEvents();this.onUpdateCallback();this.dispatchEvent({type:"panolens-viewer-handler",method:"disableControl"})};PANOLENS.LittlePlanet.prototype.onLeave=function(){this.unregisterMouseEvents();this.dispatchEvent({type:"panolens-viewer-handler",method:"enableControl",data:PANOLENS.Controls.ORBIT});window.cancelAnimationFrame(this.frameId);PANOLENS.Panorama.prototype.onLeave.call(this)};PANOLENS.LittlePlanet.prototype.onWindowResize=function(){this.material.uniforms.resolution.value=this.container.clientWidth/this.container.clientHeight};PANOLENS.LittlePlanet.prototype.onContextMenu=function(){this.dragging=!1}}(),function(){PANOLENS.ImageLittlePlanet=function(n,t,i){PANOLENS.LittlePlanet.call(this,"image",n,t,i)};PANOLENS.ImageLittlePlanet.prototype=Object.create(PANOLENS.LittlePlanet.prototype);PANOLENS.ImageLittlePlanet.prototype.constructor=PANOLENS.ImageLittlePlanet;PANOLENS.ImageLittlePlanet.prototype.onLoad=function(n){this.updateTexture(n);PANOLENS.ImagePanorama.prototype.onLoad.call(this,n);PANOLENS.LittlePlanet.prototype.onLoad.call(this)};PANOLENS.ImageLittlePlanet.prototype.updateTexture=function(n){n.minFilter=n.magFilter=THREE.LinearFilter;this.material.uniforms.tDiffuse.value=n}}(),function(){PANOLENS.Reticle=function(n,t,i,r,u,f){n=n||16777215;this.autoSelect=t!=undefined?t:!0;this.dwellTime=u||1500;this.dwellSpriteAmount=f||45;this.dwellInterval=this.dwellTime/this.dwellSpriteAmount;this.IDLE=0;this.DWELLING=1;this.status;this.scaleIdle=new THREE.Vector3(.2,.2,1);this.scaleDwell=new THREE.Vector3(1,.8,1);this.textureLoaded=!1;this.idleImageUrl=i||PANOLENS.DataImage.ReticleIdle;this.dwellImageUrl=r||PANOLENS.DataImage.ReticleDwell;this.idleTexture=new THREE.Texture;this.dwellTexture=new THREE.Texture;THREE.Sprite.call(this,new THREE.SpriteMaterial({color:n,depthTest:!1}));this.currentTile=0;this.startTime=0;this.visible=!1;this.renderOrder=10;this.timerId;this.updateStatus(this.IDLE)};PANOLENS.Reticle.prototype=Object.create(THREE.Sprite.prototype);PANOLENS.Reticle.prototype.constructor=PANOLENS.Reticle;PANOLENS.Reticle.prototype.show=function(){this.visible=!0};PANOLENS.Reticle.prototype.hide=function(){this.visible=!1};PANOLENS.Reticle.prototype.loadTextures=function(){this.idleTexture=PANOLENS.Utils.TextureLoader.load(this.idleImageUrl);this.dwellTexture=PANOLENS.Utils.TextureLoader.load(this.dwellImageUrl);this.material.map=this.idleTexture;this.setupDwellSprite(this.dwellTexture);this.textureLoaded=!0};PANOLENS.Reticle.prototype.select=function(n){performance.now()-this.startTime>=this.dwellTime?(this.completeDwelling(),n()):this.autoSelect&&(this.updateDwelling(performance.now()),this.timerId=window.requestAnimationFrame(this.select.bind(this,n)))};PANOLENS.Reticle.prototype.clearTimer=function(){window.cancelAnimationFrame(this.timerId);this.timerId=null};PANOLENS.Reticle.prototype.setupDwellSprite=function(n){n.wrapS=THREE.RepeatWrapping;n.repeat.set(1/this.dwellSpriteAmount,1)};PANOLENS.Reticle.prototype.updateStatus=function(n){this.status=n;n===this.IDLE?(this.scale.copy(this.scaleIdle),this.material.map=this.idleTexture):n===this.DWELLING&&(this.scale.copy(this.scaleDwell),this.material.map=this.dwellTexture);this.currentTile=0;this.material.map.offset.x=0};PANOLENS.Reticle.prototype.startDwelling=function(n){this.autoSelect&&(this.startTime=performance.now(),this.updateStatus(this.DWELLING),this.select(n))};PANOLENS.Reticle.prototype.updateDwelling=function(n){var t=n-this.startTime;this.currentTile<=this.dwellSpriteAmount?(this.currentTile=Math.floor(t/this.dwellTime*this.dwellSpriteAmount),this.material.map.offset.x=this.currentTile/this.dwellSpriteAmount):this.updateStatus(this.IDLE)};PANOLENS.Reticle.prototype.cancelDwelling=function(){this.clearTimer();this.updateStatus(this.IDLE)};PANOLENS.Reticle.prototype.completeDwelling=function(){this.clearTimer();this.updateStatus(this.IDLE)}}(),function(){PANOLENS.Tile=function(n,t,i,r,u,f,e){var o=this;this.parameters={width:n,height:t,widthSegments:i,heightSegments:r,forceDirection:u,forceAxis:f,forceAngle:e};n=n||10;t=t||5;i=i||1;r=r||1;u=u||new THREE.Vector3(0,0,1);f=f||new THREE.Vector3(0,1,0);e=e!==undefined?e:0;THREE.Mesh.call(this,new THREE.PlaneGeometry(n,t,i,r),new THREE.MeshBasicMaterial({color:16777215,transparent:!0}));this.bendModifier=new THREE.BendModifier;this.entity=undefined;this.animationDuration=500;this.animationFadeOut=undefined;this.animationFadeIn=undefined;this.animationTranslation=undefined;this.tweens={};e!==0&&this.bend(u,f,e);this.originalGeometry=this.geometry.clone()};PANOLENS.Tile.prototype=Object.create(THREE.Mesh.prototype);PANOLENS.Tile.prototype.constructor=PANOLENS.Tile;PANOLENS.Tile.prototype.clone=function(){var n=this.parameters,t;return t=new PANOLENS.Tile(n.width,n.height,n.widthSegments,n.heightSegments,n.forceDirection,n.forceAxis,n.forceAngle),t.setEntity(this.entity),t.material=this.material.clone(),t};PANOLENS.Tile.prototype.bend=function(n,t,i){this.bendModifier.set(n,t,i).modify(this.geometry)};PANOLENS.Tile.prototype.unbend=function(){var n=this.geometry;this.geometry=this.originalGeometry;this.originalGeometry=this.geometry.clone();n.dispose();n=null};PANOLENS.Tile.prototype.tween=function(n,t,i,r,u,f,e,o,s){return t=t||this,i=i||{},r=r||this.animationDuration,u=u||TWEEN.Easing.Exponential.Out,f=f!==undefined?f:0,e=e?e:null,o=o?o:null,s=s?s:null,this.tweens[n]||(this.tweens[n]=new TWEEN.Tween(t).to(i,r).easing(u).delay(f).onStart(e).onUpdate(o).onComplete(s)),this.tweens[n]};PANOLENS.Tile.prototype.ripple=function(n,t,i){n=n||2;t=t||200;i=i||TWEEN.Easing.Cubic.Out;var u=this,r=this.clone();new TWEEN.Tween(r.scale).to({x:n,y:n},t).easing(i).start();new TWEEN.Tween(r.material).to({opacity:0},t).easing(i).onComplete(function(){u.remove(r);r.geometry.dispose();r.material.dispose()}).start();this.add(r)};PANOLENS.Tile.prototype.setEntity=function(n){this.entity=n}}(),function(){"use strict";PANOLENS.TileGroup=function(n,t,i,r,u){var f=this;THREE.Object3D.call(this);this.tileArray=n||[];this.offset=u!==undefined?u:0;this.v_gap=t!==undefined?t:6;this.d_gap=i!==undefined?i:2;this.animationDuration=r!==undefined?r:200;this.animationEasing=TWEEN.Easing.Exponential.Out;this.visibleDelta=2;this.tileArray.map(function(n,t){n.image&&PANOLENS.Utils.TextureLoader.load(n.image,f.setTexture.bind(n));n.position.set(0,t*-f.v_gap,t*-f.d_gap);n.originalPosition=n.position.clone();n.setEntity(f);f.add(n)});this.updateVisbility()};PANOLENS.TileGroup.prototype=Object.create(THREE.Object3D.prototype);PANOLENS.TileGroup.prototype.constructor=PANOLENS.TileGroup;PANOLENS.TileGroup.prototype.updateTexture=function(n){var t=this;n=n||[];this.children.map(function(i,r){i instanceof PANOLENS.Tile&&n[r]&&(PANOLENS.Utils.TextureLoader.load(n[r],t.setTexture.bind(i)),i.outline&&(i.outline.material.visible=!0))})};PANOLENS.TileGroup.prototype.updateAllTexture=function(n){if(this.updateTexture(n),n.length<this.children.length)for(var t=n.length;t<this.children.length;t++)this.children[t]instanceof PANOLENS.Tile&&(this.children[t].material.visible=!1,this.children[t].outline&&(this.children[t].outline.material.visible=!1))};PANOLENS.TileGroup.prototype.setTexture=function(n){n.minFilter=THREE.LinearFilter;n.magFilter=THREE.LinearFilter;this.material.visible=!0;this.material.map=n;this.material.needsUpdate=!0};PANOLENS.TileGroup.prototype.updateVisbility=function(){var n;for(this.children[this.offset].visible=!0,new TWEEN.Tween(this.children[this.offset].material).to({opacity:1},this.animationDuration).easing(this.animationEasing).start(),this.children[this.offset].outline&&(this.children[this.offset].outline.visible=!0),n=this.offset-1;n>=0;n--)this.tileArray.indexOf(this.children[n])!==-1&&(this.offset-n<=this.visibleDelta?(this.children[n].visible=!0,new TWEEN.Tween(this.children[n].material).to({opacity:1/(this.offset-n)*.5},this.animationDuration).easing(this.animationEasing).start()):this.children[n].visible=!1,this.children[n].outline&&(this.children[n].outline.visible=!1));for(n=this.offset+1;n<this.children.length;n++)this.tileArray.indexOf(this.children[n])!==-1&&(n-this.offset<=this.visibleDelta?(this.children[n].visible=!0,new TWEEN.Tween(this.children[n].material).to({opacity:1/(n-this.offset)*.5},this.animationDuration).easing(this.animationEasing).start()):this.children[n].visible=!1,this.children[n].outline&&(this.children[n].outline.visible=!1))};PANOLENS.TileGroup.prototype.scrollUp=function(n){var i=this.tileArray,r,t;if(n=n!==undefined?n:this.animationDuration,r=this.offset+1,this.offset<i.length-1&&i[this.offset+1].material.visible){for(t=i.length-1;t>=0;t--)new TWEEN.Tween(i[t].position).to({y:(t-r)*-this.v_gap,z:Math.abs(t-r)*-this.d_gap},n).easing(this.animationEasing).start();this.offset++;this.updateVisbility();this.dispatchEvent({type:"scroll",direction:"up"})}};PANOLENS.TileGroup.prototype.scrollDown=function(n){var i=this.tileArray,r,t;if(n=n!==undefined?n:this.animationDuration,r=this.offset-1,this.offset>0&&i[this.offset-1].material.visible){for(t=0;t<i.length;t++)new TWEEN.Tween(i[t].position).to({y:(t-r)*-this.v_gap,z:Math.abs(t-r)*-this.d_gap},n).easing(this.animationEasing).start();this.offset--;this.updateVisbility();this.dispatchEvent({type:"scroll",direction:"down"})}};PANOLENS.TileGroup.prototype.reset=function(){this.tileArray.map(function(n){n.position.copy(n.originalPosition)});this.offset=0;this.updateVisbility()};PANOLENS.TileGroup.prototype.getIndex=function(){return this.offset};PANOLENS.TileGroup.prototype.getTileCount=function(){var n=0;return this.tileArray.map(function(t){t.material.visible&&n++}),n}}(),function(){"use strict";var t,i,n=[];PANOLENS.SpriteText=function(n,t,i,r,u){THREE.Object3D.call(this);this.text=n||"";this.maxWidth=t||2e3;this.color=i||16777215;this.opacity=r!==undefined?r:1;this.options=u||{};this.animationDuration=500;this.animationFadeOut=undefined;this.animationFadeIn=undefined;this.tweens={};this.addText(n)};PANOLENS.SpriteText.prototype=Object.create(THREE.Object3D.prototype);PANOLENS.SpriteText.prototype.constructor=PANOLENS.SpriteText;PANOLENS.SpriteText.prototype.generateTextGeometry=function(){};PANOLENS.SpriteText.prototype.generateSDFShader=function(){};PANOLENS.SpriteText.prototype.setBMFont=function(r,u,f){f.needsUpdate=!0;f.minFilter=THREE.LinearMipMapLinearFilter;f.magFilter=THREE.LinearFilter;f.generateMipmaps=!0;f.anisotropy=8;t=u;i=f;for(var e=n.length-1;e>=0;e--)n[e].target.addText(n[e].text);while(n.length>0)n.pop();r&&r()};PANOLENS.SpriteText.prototype.addText=function(r){var u,f;if(!t||!i){n.push({target:this,text:r});return}u=new THREE.Object3D;this.options.text=r;this.options.font=t;this.options.width=this.maxWidth;f=this.generateTextGeometry(this.options);f.computeBoundingBox();f.computeBoundingSphere();var s=new THREE.RawShaderMaterial(this.generateSDFShader({map:i,side:THREE.DoubleSide,transparent:!0,color:this.color,opacity:this.opacity})),o=f.layout,e=new THREE.Mesh(f,s);e.entity=this;e.position.x=-o.width/2;e.position.y=o.height*1.035;u.scale.x=u.scale.y=-.05;u.add(e);this.mesh=e;this.add(u)};PANOLENS.SpriteText.prototype.update=function(n){var t;n=n||{};t=this.mesh;t.geometry.update(n);t.position.x=-t.geometry.layout.width/2;t.position.y=t.geometry.layout.height*1.035};PANOLENS.SpriteText.prototype.tween=function(n,t,i,r,u,f,e,o,s){return t=t||this,i=i||{},r=r||this.animationDuration,u=u||TWEEN.Easing.Exponential.Out,f=f!==undefined?f:0,e=e?e:null,o=o?o:null,s=s?s:null,this.tweens[n]||(this.tweens[n]=new TWEEN.Tween(t).to(i,r).easing(u).delay(f).onStart(e).onUpdate(o).onComplete(s)),this.tweens[n]};PANOLENS.SpriteText.prototype.getLayout=function(){return this.mesh&&this.mesh.geometry&&this.mesh.geometry.layout||{}};PANOLENS.SpriteText.prototype.setEntity=function(n){this.entity=n}}(),function(){PANOLENS.Widget=function(n){THREE.EventDispatcher.call(this);this.DEFAULT_TRANSITION="all 0.27s ease";this.TOUCH_ENABLED=PANOLENS.Utils.checkTouchSupported();this.PREVENT_EVENT_HANDLER=function(n){n.preventDefault();n.stopPropagation()};this.container=n;this.barElement;this.fullscreenElement;this.videoElement;this.settingElement;this.mainMenu;this.activeMainItem;this.activeSubMenu;this.mask};PANOLENS.Widget.prototype=Object.create(THREE.EventDispatcher.prototype);PANOLENS.Widget.prototype.constructor=PANOLENS.Widget;PANOLENS.Widget.prototype.addControlBar=function(){var t,n,u,f,i,e,r;if(!this.container){console.warn("Widget container not set");return}t=this;i="linear-gradient(bottom, rgba(0,0,0,0.2), rgba(0,0,0,0))";n=document.createElement("div");n.style.width="100%";n.style.height="44px";n.style.float="left";n.style.transform=n.style.webkitTransform=n.style.msTransform="translateY(-100%)";n.style.background="-webkit-"+i;n.style.background="-moz-"+i;n.style.background="-o-"+i;n.style.background="-ms-"+i;n.style.background=i;n.style.transition=this.DEFAULT_TRANSITION;n.style.pointerEvents="none";n.isHidden=!1;n.toggle=function(){n.isHidden=!n.isHidden;u=n.isHidden?"translateY(0)":"translateY(-100%)";f=n.isHidden?0:1;n.style.transform=n.style.webkitTransform=n.style.msTransform=u;n.style.opacity=f};e=this.createDefaultMenu();this.mainMenu=this.createMainMenu(e);n.appendChild(this.mainMenu);r=this.createMask();this.mask=r;this.container.appendChild(r);n.dispose=function(){t.fullscreenElement&&(n.removeChild(t.fullscreenElement),t.fullscreenElement.dispose(),t.fullscreenElement=null);t.settingElement&&(n.removeChild(t.settingElement),t.settingElement.dispose(),t.settingElement=null);t.videoElement&&(n.removeChild(t.videoElement),t.videoElement.dispose(),t.videoElement=null)};this.container.appendChild(n);this.mask.addEventListener("mousemove",this.PREVENT_EVENT_HANDLER,!0);this.mask.addEventListener("mouseup",this.PREVENT_EVENT_HANDLER,!0);this.mask.addEventListener("mousedown",this.PREVENT_EVENT_HANDLER,!0);this.mask.addEventListener(t.TOUCH_ENABLED?"touchend":"click",function(n){n.preventDefault();n.stopPropagation();t.mask.hide();t.settingElement.deactivate()},!1);this.addEventListener("control-bar-toggle",n.toggle);this.barElement=n};PANOLENS.Widget.prototype.createDefaultMenu=function(){var t=this,n;return n=function(n,i){return function(){t.dispatchEvent({type:"panolens-viewer-handler",method:n,data:i})}},[{title:"Control",subMenu:[{title:this.TOUCH_ENABLED?"Touch":"Mouse",handler:n("enableControl",PANOLENS.Controls.ORBIT)},{title:"Sensor",handler:n("enableControl",PANOLENS.Controls.DEVICEORIENTATION)}]},{title:"Mode",subMenu:[{title:"Normal",handler:n("disableEffect")},{title:"Cardboard",handler:n("enableEffect",PANOLENS.Modes.CARDBOARD)},{title:"Stereoscopic",handler:n("enableEffect",PANOLENS.Modes.STEREO)}]}]};PANOLENS.Widget.prototype.addControlButton=function(n){var t;switch(n){case"fullscreen":t=this.createFullscreenButton();this.fullscreenElement=t;break;case"setting":t=this.createSettingButton();this.settingElement=t;break;case"video":t=this.createVideoControl();this.videoElement=t;break;default:return}t&&this.barElement.appendChild(t)};PANOLENS.Widget.prototype.createMask=function(){var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.width="100%",n.style.height="100%",n.style.background="transparent",n.style.display="none",n.show=function(){this.style.display="block"},n.hide=function(){this.style.display="none"},n};PANOLENS.Widget.prototype.createSettingButton=function(){function i(t){t.preventDefault();t.stopPropagation();n.mainMenu.toggle();this.activated?this.deactivate():this.activate()}var n=this,t;return t=this.createCustomItem({style:{backgroundImage:'url("'+PANOLENS.DataImage.Setting+'")',webkitTransition:this.DEFAULT_TRANSITION,transition:this.DEFAULT_TRANSITION},onTap:i}),t.activate=function(){this.style.transform="rotate3d(0,0,1,90deg)";this.activated=!0;n.mask.show()},t.deactivate=function(){this.style.transform="rotate3d(0,0,0,0)";this.activated=!1;n.mask.hide();n.mainMenu&&n.mainMenu.visible&&n.mainMenu.hide();n.activeSubMenu&&n.activeSubMenu.visible&&n.activeSubMenu.hide();n.mainMenu&&n.mainMenu._width&&(n.mainMenu.changeSize(n.mainMenu._width),n.mainMenu.unslideAll())},t.activated=!1,t};PANOLENS.Widget.prototype.createFullscreenButton=function(){function o(i){i.preventDefault();i.stopPropagation();f=!1;t?(document.exitFullscreen&&document.exitFullscreen(),document.msExitFullscreen&&document.msExitFullscreen(),document.mozCancelFullScreen&&document.mozCancelFullScreen(),document.webkitExitFullscreen&&document.webkitExitFullscreen(),t=!1):(n.container.requestFullscreen&&n.container.requestFullscreen(),n.container.msRequestFullscreen&&n.container.msRequestFullscreen(),n.container.mozRequestFullScreen&&n.container.mozRequestFullScreen(),n.container.webkitRequestFullscreen&&n.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT),t=!0);this.style.backgroundImage=t?'url("'+PANOLENS.DataImage.FullscreenLeave+'")':'url("'+PANOLENS.DataImage.FullscreenEnter+'")'}function i(){f&&(t=!t,u.style.backgroundImage=t?'url("'+PANOLENS.DataImage.FullscreenLeave+'")':'url("'+PANOLENS.DataImage.FullscreenEnter+'")');n.dispatchEvent({type:"panolens-viewer-handler",method:"onWindowResize",data:!1});f=!0}var n=this,u,t=!1,f=!0,e,r;if(e="panolens-style-addon",document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)return document.addEventListener("fullscreenchange",i,!1),document.addEventListener("webkitfullscreenchange",i,!1),document.addEventListener("mozfullscreenchange",i,!1),document.addEventListener("MSFullscreenChange",i,!1),u=this.createCustomItem({style:{backgroundImage:'url("'+PANOLENS.DataImage.FullscreenEnter+'")'},onTap:o}),document.querySelector(e)||(r=document.createElement("style"),r.id=e,r.innerHTML=":-webkit-full-screen { width: 100% !important; height: 100% !important }",document.body.appendChild(r)),u};PANOLENS.Widget.prototype.createVideoControl=function(){var n;return n=document.createElement("span"),n.style.display="none",n.show=function(){n.style.display=""},n.hide=function(){n.style.display="none";n.controlButton.paused=!0;n.controlButton.update()},n.controlButton=this.createVideoControlButton(),n.seekBar=this.createVideoControlSeekbar(),n.appendChild(n.controlButton),n.appendChild(n.seekBar),n.dispose=function(){n.removeChild(n.controlButton);n.removeChild(n.seekBar);n.controlButton.dispose();n.controlButton=null;n.seekBar.dispose();n.seekBar=null},this.addEventListener("video-control-show",n.show),this.addEventListener("video-control-hide",n.hide),n};PANOLENS.Widget.prototype.createVideoControlButton=function(){function t(t){t.preventDefault();t.stopPropagation();i.dispatchEvent({type:"panolens-viewer-handler",method:"toggleVideoPlay",data:!this.paused});this.paused=!this.paused;n.update()}var i=this,n;return n=this.createCustomItem({style:{float:"left",backgroundImage:'url("'+PANOLENS.DataImage.VideoPlay+'")'},onTap:t}),n.paused=!0,n.update=function(n){this.paused=n!==undefined?n:this.paused;this.style.backgroundImage='url("'+(this.paused?PANOLENS.DataImage.VideoPlay:PANOLENS.DataImage.VideoPause)+'")'},n};PANOLENS.Widget.prototype.createVideoControlSeekbar=function(){function s(n){n.stopPropagation();o=!0;c=n.clientX||n.changedTouches&&n.changedTouches[0].clientX;l=parseInt(i.style.width)/100;a()}function f(n){var i;o&&(i=n.clientX||n.changedTouches&&n.changedTouches[0].clientX,r=(i-c)/u.clientWidth,r=l+r,r=r>1?1:r<0?0:r,u.setProgress(r),t.dispatchEvent({type:"panolens-viewer-handler",method:"setVideoCurrentTime",data:r}))}function e(n){n.stopPropagation();o=!1;h()}function a(){t.container.addEventListener("mousemove",f,!1);t.container.addEventListener("mouseup",e,!1);t.container.addEventListener("touchmove",f,!1);t.container.addEventListener("touchend",e,!1)}function h(){t.container.removeEventListener("mousemove",f,!1);t.container.removeEventListener("mouseup",e,!1);t.container.removeEventListener("touchmove",f,!1);t.container.removeEventListener("touchend",e,!1)}function v(i){i.preventDefault();i.stopPropagation();var r;i.target!==n&&(r=i.changedTouches&&i.changedTouches.length>0?(i.changedTouches[0].pageX-i.target.getBoundingClientRect().left)/this.clientWidth:i.offsetX/this.clientWidth,t.dispatchEvent({type:"panolens-viewer-handler",method:"setVideoCurrentTime",data:r}),u.setProgress(i.offsetX/this.clientWidth))}function y(){h();i=null;n=null}var t=this,u,i,n,o=!1,c,l,r;return i=document.createElement("div"),i.style.width="0%",i.style.height="100%",i.style.backgroundColor="#fff",n=document.createElement("div"),n.style.float="right",n.style.width="14px",n.style.height="14px",n.style.transform="translate(7px, -5px)",n.style.borderRadius="50%",n.style.backgroundColor="#ddd",n.addEventListener("mousedown",s,!1),n.addEventListener("touchstart",s,!1),i.appendChild(n),u=this.createCustomItem({style:{float:"left",width:"30%",height:"4px",marginTop:"20px",backgroundColor:"rgba(188,188,188,0.8)"},onTap:v,onDispose:y}),u.appendChild(i),u.setProgress=function(n){i.style.width=n*100+"%"},this.addEventListener("video-update",function(n){u.setProgress(n.percentage)}),u};PANOLENS.Widget.prototype.createMenuItem=function(n){var i=this,t=document.createElement("a");return t.textContent=n,t.style.display="block",t.style.padding="10px",t.style.textDecoration="none",t.style.cursor="pointer",t.style.pointerEvents="auto",t.style.transition=this.DEFAULT_TRANSITION,t.slide=function(n){this.style.transform="translateX("+(n?"":"-")+"100%)"},t.unslide=function(){this.style.transform="translateX(0)"},t.setIcon=function(n){this.icon&&(this.icon.style.backgroundImage="url("+n+")")},t.setSelectionTitle=function(n){this.selection&&(this.selection.textContent=n)},t.addSelection=function(n){var t=document.createElement("span");return t.style.fontSize="13px",t.style.fontWeight="300",t.style.float="right",this.selection=t,this.setSelectionTitle(n),this.appendChild(t),this},t.addIcon=function(n,t,i){n=n||PANOLENS.DataImage.ChevronRight;t=t||!1;i=i||!1;var r=document.createElement("span");return r.style.float=t?"left":"right",r.style.width="17px",r.style.height="17px",r.style["margin"+(t?"Right":"Left")]="12px",r.style.backgroundSize="cover",i&&(r.style.transform="rotateZ(180deg)"),this.icon=r,this.setIcon(n),this.appendChild(r),this},t.addSubMenu=function(n,t){return this.subMenu=i.createSubMenu(n,t),this},t.addEventListener("mouseenter",function(){this.style.backgroundColor="#e0e0e0"},!1),t.addEventListener("mouseleave",function(){this.style.backgroundColor="#fafafa"},!1),t};PANOLENS.Widget.prototype.createMenuItemHeader=function(n){var t=this.createMenuItem(n);return t.style.borderBottom="1px solid #333",t.style.paddingBottom="15px",t};PANOLENS.Widget.prototype.createMainMenu=function(n){function e(n){function u(){i.changeSize(t.clientWidth);t.show();t.unslideAll()}n.preventDefault();n.stopPropagation();var i=r.mainMenu,t=this.subMenu;i.hide();i.slideAll();i.parentElement.appendChild(t);r.activeMainItem=this;r.activeSubMenu=t;window.requestAnimationFrame(u)}var r=this,i=this.createMenu(),t,u,f;for(i._width=200,i.changeSize(i._width),t=0;t<n.length;t++)u=i.addItem(n[t].title),u.style.paddingLeft="20px",u.addIcon().addEventListener(r.TOUCH_ENABLED?"touchend":"click",e,!1),n[t].subMenu&&n[t].subMenu.length>0&&(f=n[t].subMenu[0].title,u.addSelection(f).addSubMenu(n[t].title,n[t].subMenu));return i};PANOLENS.Widget.prototype.createSubMenu=function(n,t){function o(n){n.preventDefault();n.stopPropagation();u=e.mainMenu;u.changeSize(u._width);u.unslideAll();u.show();i.slideAll(!0);i.hide();this.type!=="header"&&(i.setActiveItem(this),e.activeMainItem.setSelectionTitle(this.textContent),this.handler&&this.handler())}var e=this,u,i=this.createMenu(),f,r;for(i.items=t,i.activeItem,i.addHeader(n).addIcon(undefined,!0,!0).addEventListener(e.TOUCH_ENABLED?"touchend":"click",o,!1),f=0;f<t.length;f++)r=i.addItem(t[f].title),r.style.fontWeight=300,r.handler=t[f].handler,r.addIcon(" ",!0),r.addEventListener(e.TOUCH_ENABLED?"touchend":"click",o,!1),i.activeItem||i.setActiveItem(r);return i.slideAll(!0),i};PANOLENS.Widget.prototype.createMenu=function(){var i=this,n=document.createElement("span"),t;return t=n.style,t.padding="5px 0",t.position="fixed",t.bottom="100%",t.right="14px",t.backgroundColor="#fafafa",t.fontFamily="Helvetica Neue",t.fontSize="14px",t.visibility="hidden",t.opacity=0,t.boxShadow="0 0 12pt rgba(0,0,0,0.25)",t.borderRadius="2px",t.overflow="hidden",t.willChange="width, height, opacity",t.pointerEvents="auto",t.transition=this.DEFAULT_TRANSITION,n.visible=!1,n.changeSize=function(n,t){n&&(this.style.width=n+"px");t&&(this.style.height=t+"px")},n.show=function(){this.style.opacity=1;this.style.visibility="visible";this.visible=!0},n.hide=function(){this.style.opacity=0;this.style.visibility="hidden";this.visible=!1},n.toggle=function(){this.visible?this.hide():this.show()},n.slideAll=function(t){for(var i=0;i<n.children.length;i++)n.children[i].slide&&n.children[i].slide(t)},n.unslideAll=function(){for(var t=0;t<n.children.length;t++)n.children[t].unslide&&n.children[t].unslide()},n.addHeader=function(n){var t=i.createMenuItemHeader(n);return t.type="header",this.appendChild(t),t},n.addItem=function(n){var t=i.createMenuItem(n);return t.type="item",this.appendChild(t),t},n.setActiveItem=function(n){this.activeItem&&this.activeItem.setIcon(" ");n.setIcon(PANOLENS.DataImage.Check);this.activeItem=n},n.addEventListener("mousemove",this.PREVENT_EVENT_HANDLER,!0),n.addEventListener("mouseup",this.PREVENT_EVENT_HANDLER,!0),n.addEventListener("mousedown",this.PREVENT_EVENT_HANDLER,!0),n};PANOLENS.Widget.prototype.createCustomItem=function(n){n=n||{};var i=this,t=n.element||document.createElement("span");return t.style.cursor="pointer",t.style.float="right",t.style.width="44px",t.style.height="100%",t.style.backgroundSize="60%",t.style.backgroundRepeat="no-repeat",t.style.backgroundPosition="center",t.style.webkitUserSelect=t.style.MozUserSelect=t.style.userSelect="none",t.style.position="relative",t.style.pointerEvents="auto",t.addEventListener(i.TOUCH_ENABLED?"touchstart":"mouseenter",function(){t.style.filter=t.style.webkitFilter="drop-shadow(0 0 5px rgba(255,255,255,1))"}),t.addEventListener(i.TOUCH_ENABLED?"touchend":"mouseleave",function(){t.style.filter=t.style.webkitFilter=""}),t=this.mergeStyleOptions(t,n.style),n.onTap&&t.addEventListener(i.TOUCH_ENABLED?"touchend":"click",n.onTap,!1),t.dispose=function(){t.removeEventListener(i.TOUCH_ENABLED?"touchend":"click",n.onTap,!1);n.onDispose&&n.onDispose()},t};PANOLENS.Widget.prototype.mergeStyleOptions=function(n,t){t=t||{};for(var i in t)t.hasOwnProperty(i)&&(n.style[i]=t[i]);return n};PANOLENS.Widget.prototype.dispose=function(){this.barElement&&(this.container.removeChild(this.barElement),this.barElement.dispose(),this.barElement=null)}}(),function(){PANOLENS.Infospot=function(n,t,i){function o(t){t.wrapS=THREE.RepeatWrapping;t.repeat.x=-1;t.image.width=t.image.naturalWidth||64;t.image.height=t.image.naturalHeight||64;e=t.image.width/t.image.height;r.scale.set(e*n,n,1);u=r.scale.clone();r.scaleUpAnimation=new TWEEN.Tween(r.scale).to({x:u.x*r.scaleFactor,y:u.y*r.scaleFactor},f).easing(TWEEN.Easing.Elastic.Out);r.scaleDownAnimation=new TWEEN.Tween(r.scale).to({x:u.x,y:u.y},f).easing(TWEEN.Easing.Elastic.Out);r.material.side=THREE.DoubleSide;r.material.map=t;r.material.depthTest=!1;r.material.needsUpdate=!0}function s(){this.visible=!0}function h(){this.visible=!1}var r=this,e,u,f;n=n||300;t=t||PANOLENS.DataImage.Info;f=500;THREE.Sprite.call(this);this.type="infospot";this.animated=i!==undefined?i:!0;this.isHovering=!1;this.visible=!1;this.element;this.toPanorama;this.cursorStyle;this.mode=PANOLENS.Modes.UNKNOWN;this.scale.set(n,n,1);this.rotation.y=Math.PI;this.scaleFactor=1.3;this.container;this.HANDLER_FOCUS;PANOLENS.Utils.TextureLoader.load(t,o);this.showAnimation=new TWEEN.Tween(this.material).to({opacity:1},f).onStart(s.bind(this)).easing(TWEEN.Easing.Quartic.Out);this.hideAnimation=new TWEEN.Tween(this.material).to({opacity:0},f).onComplete(h.bind(this)).easing(TWEEN.Easing.Quartic.Out);this.addEventListener("click",this.onClick);this.addEventListener("hover",this.onHover);this.addEventListener("hoverenter",this.onHoverStart);this.addEventListener("hoverleave",this.onHoverEnd);this.addEventListener("panolens-dual-eye-effect",this.onDualEyeEffect);this.addEventListener("panolens-container",this.setContainer.bind(this));this.addEventListener("dismiss",this.onDismiss);this.addEventListener("panolens-infospot-focus",this.setFocusMethod)};PANOLENS.Infospot.prototype=Object.create(THREE.Sprite.prototype);PANOLENS.Infospot.prototype.setContainer=function(n){var t;n instanceof HTMLElement?t=n:n&&n.container&&(t=n.container);t&&this.element&&t.appendChild(this.element);this.container=t};PANOLENS.Infospot.prototype.getContainer=function(){return this.container};PANOLENS.Infospot.prototype.onClick=function(n){if(this.element&&this.getContainer()){this.onHoverStart(n);this.lockHoverElement()}};PANOLENS.Infospot.prototype.onDismiss=function(){this.element&&(this.unlockHoverElement(),this.onHoverEnd())};PANOLENS.Infospot.prototype.onHover=function(){};PANOLENS.Infospot.prototype.onHoverStart=function(n){if(this.getContainer()){var t=this.cursorStyle||(this.mode===PANOLENS.Modes.NORMAL?"pointer":"default");this.isHovering=!0;this.container.style.cursor=t;this.animated&&(this.scaleDownAnimation&&this.scaleDownAnimation.stop(),this.scaleUpAnimation&&this.scaleUpAnimation.start());this.element&&n.mouseEvent.clientX>=0&&n.mouseEvent.clientY>=0&&(this.mode===PANOLENS.Modes.CARDBOARD||this.mode===PANOLENS.Modes.STEREO?(this.element.style.display="none",this.element.left&&(this.element.left.style.display="block"),this.element.right&&(this.element.right.style.display="block"),this.element._width=this.element.left.clientWidth,this.element._height=this.element.left.clientHeight):(this.element.style.display="block",this.element.left&&(this.element.left.style.display="none"),this.element.right&&(this.element.right.style.display="none"),this.element._width=this.element.clientWidth,this.element._height=this.element.clientHeight))}};PANOLENS.Infospot.prototype.onHoverEnd=function(){this.getContainer()&&(this.isHovering=!1,this.container.style.cursor="default",this.animated&&(this.scaleUpAnimation&&this.scaleUpAnimation.stop(),this.scaleDownAnimation&&this.scaleDownAnimation.start()),this.element&&!this.element.locked&&(this.element.style.display="none",this.element.left&&(this.element.left.style.display="none"),this.element.right&&(this.element.right.style.display="none"),this.unlockHoverElement()))};PANOLENS.Infospot.prototype.onDualEyeEffect=function(n){if(this.getContainer()){var t,i,r;(this.mode=n.mode,t=this.element,i=this.container.clientWidth/2,r=this.container.clientHeight/2,t)&&(t.left&&t.right||(t.left=t.cloneNode(!0),t.right=t.cloneNode(!0)),this.mode===PANOLENS.Modes.CARDBOARD||this.mode===PANOLENS.Modes.STEREO?(t.left.style.display=t.style.display,t.right.style.display=t.style.display,t.style.display="none"):(t.style.display=t.left.style.display,t.left.style.display="none",t.right.style.display="none"),this.translateElement(i,r),this.container.appendChild(t.left),this.container.appendChild(t.right))}};PANOLENS.Infospot.prototype.translateElement=function(n,t){if(this.element._width&&this.element._height&&this.getContainer()){var u,f,i,e,o,s,r;r=this.container;i=this.element;e=i._width/2;o=i._height/2;s=i.verticalDelta!==undefined?i.verticalDelta:40;u=n-e;f=t-o-s;this.mode!==PANOLENS.Modes.CARDBOARD&&this.mode!==PANOLENS.Modes.STEREO||!i.left||!i.right||n===r.clientWidth/2&&t===r.clientHeight/2?this.setElementStyle("transform",i,"translate("+u+"px, "+f+"px)"):(u=r.clientWidth/4-e+(n-r.clientWidth/2),f=r.clientHeight/2-o-s+(t-r.clientHeight/2),this.setElementStyle("transform",i.left,"translate("+u+"px, "+f+"px)"),u+=r.clientWidth/2,this.setElementStyle("transform",i.right,"translate("+u+"px, "+f+"px)"))}};PANOLENS.Infospot.prototype.setElementStyle=function(n,t,i){var r=t.style;n==="transform"&&(r.webkitTransform=r.msTransform=r.transform=i)};PANOLENS.Infospot.prototype.setText=function(n){this.element&&(this.element.textContent=n)};PANOLENS.Infospot.prototype.setCursorHoverStyle=function(n){this.cursorStyle=n};PANOLENS.Infospot.prototype.addHoverText=function(n,t){this.element||(this.element=document.createElement("div"),this.element.style.display="none",this.element.style.color="#fff",this.element.style.top=0,this.element.style.maxWidth="50%",this.element.style.maxHeight="50%",this.element.style.textShadow="0 0 3px #000000",this.element.style.fontFamily='"Trebuchet MS", Helvetica, sans-serif',this.element.style.position="absolute",this.element.classList.add("panolens-infospot"),this.element.verticalDelta=t!==undefined?t:40);this.setText(n)};PANOLENS.Infospot.prototype.addHoverElement=function(n,t){this.element||(this.element=n.cloneNode(!0),this.element.style.display="none",this.element.style.top=0,this.element.style.position="absolute",this.element.classList.add("panolens-infospot"),this.element.verticalDelta=t!==undefined?t:40)};PANOLENS.Infospot.prototype.removeHoverElement=function(){this.element&&(this.element.left&&(this.container.removeChild(this.element.left),this.element.left=null),this.element.right&&(this.container.removeChild(this.element.right),this.element.right=null),this.container.removeChild(this.element),this.element=null)};PANOLENS.Infospot.prototype.lockHoverElement=function(){this.element&&(this.element.locked=!0)};PANOLENS.Infospot.prototype.unlockHoverElement=function(){this.element&&(this.element.locked=!1)};PANOLENS.Infospot.prototype.show=function(n){n=n||0;this.animated&&(this.hideAnimation&&this.hideAnimation.stop(),this.showAnimation&&this.showAnimation.delay(n).start())};PANOLENS.Infospot.prototype.hide=function(n){n=n||0;this.animated&&(this.showAnimation&&this.showAnimation.stop(),this.hideAnimation&&this.hideAnimation.delay(n).start())};PANOLENS.Infospot.prototype.setFocusMethod=function(n){n&&(this.HANDLER_FOCUS=n.method)};PANOLENS.Infospot.prototype.focus=function(n,t){this.HANDLER_FOCUS&&(this.HANDLER_FOCUS(this.position,n,t),this.onDismiss())};PANOLENS.Infospot.prototype.dispose=function(){this.removeHoverElement();this.material.dispose();this.parent&&this.parent.remove(this)}}(),function(){"use strict";PANOLENS.Viewer=function(n){if(THREE.EventDispatcher.call(this),!THREE){console.error("Three.JS not found");return}var t;n=n||{};n.controlBar=n.controlBar!==undefined?n.controlBar:!0;n.controlButtons=n.controlButtons||["fullscreen","setting","video"];n.autoHideControlBar=n.autoHideControlBar!==undefined?n.autoHideControlBar:!1;n.autoHideInfospot=n.autoHideInfospot!==undefined?n.autoHideInfospot:!0;n.horizontalView=n.horizontalView!==undefined?n.horizontalView:!1;n.clickTolerance=n.clickTolerance||10;n.cameraFov=n.cameraFov||60;n.reverseDragging=n.reverseDragging||!1;n.enableReticle=n.enableReticle||!1;n.dwellTime=n.dwellTime||1500;n.autoReticleSelect=n.autoReticleSelect!==undefined?n.autoReticleSelect:!0;n.viewIndicator=n.viewIndicator!==undefined?n.viewIndicator:!1;n.indicatorSize=n.indicatorSize||30;n.output=n.output?n.output:"none";this.options=n;n.container?(t=n.container,t._width=t.clientWidth,t._height=t.clientHeight):(t=document.createElement("div"),t.classList.add("panolens-container"),t.style.width="100%",t.style.height="100%",t._width=window.innerWidth,t._height=window.innerHeight,document.body.appendChild(t));this.container=t;this.camera=n.camera||new THREE.PerspectiveCamera(this.options.cameraFov,this.container.clientWidth/this.container.clientHeight,1,1e4);this.scene=n.scene||new THREE.Scene;this.renderer=n.renderer||new THREE.WebGLRenderer({alpha:!0,antialias:!1});this.viewIndicatorSize=n.indicatorSize;this.reticle={};this.tempEnableReticle=this.options.enableReticle;this.mode=PANOLENS.Modes.NORMAL;this.OrbitControls;this.DeviceOrientationControls;this.CardboardEffect;this.StereoEffect;this.controls;this.effect;this.panorama;this.widget;this.hoverObject;this.infospot;this.pressEntityObject;this.pressObject;this.raycaster=new THREE.Raycaster;this.raycasterPoint=new THREE.Vector2;this.userMouse=new THREE.Vector2;this.updateCallbacks=[];this.requestAnimationId;this.cameraFrustum=new THREE.Frustum;this.cameraViewProjectionMatrix=new THREE.Matrix4;this.outputDivElement;this.HANDLER_MOUSE_DOWN=this.onMouseDown.bind(this);this.HANDLER_MOUSE_UP=this.onMouseUp.bind(this);this.HANDLER_MOUSE_MOVE=this.onMouseMove.bind(this);this.HANDLER_WINDOW_RESIZE=this.onWindowResize.bind(this);this.HANDLER_KEY_DOWN=this.onKeyDown.bind(this);this.HANDLER_KEY_UP=this.onKeyUp.bind(this);this.HANDLER_TAP=this.onTap.bind(this,{clientX:this.container.clientWidth/2,clientY:this.container.clientHeight/2});this.OUTPUT_INFOSPOT=!1;this.tweenLeftAnimation=new TWEEN.Tween;this.tweenUpAnimation=new TWEEN.Tween;this.renderer.setPixelRatio(window.devicePixelRatio);this.renderer.setSize(this.container.clientWidth,this.container.clientHeight);this.renderer.setClearColor(0,1);this.renderer.sortObjects=!1;this.renderer.domElement.classList.add("panolens-canvas");this.renderer.domElement.style.display="block";this.container.style.backgroundColor="#000";this.container.appendChild(this.renderer.domElement);this.OrbitControls=new THREE.OrbitControls(this.camera,this.container);this.OrbitControls.name="orbit";this.OrbitControls.minDistance=1;this.OrbitControls.noPan=!0;this.DeviceOrientationControls=new THREE.DeviceOrientationControls(this.camera,this.container);this.DeviceOrientationControls.name="device-orientation";this.DeviceOrientationControls.enabled=!1;this.camera.position.z=1;this.options.passiveRendering&&console.warn("passiveRendering is now deprecated");this.controls=[this.OrbitControls,this.DeviceOrientationControls];this.control=this.OrbitControls;this.CardboardEffect=new THREE.CardboardEffect(this.renderer);this.CardboardEffect.setSize(this.container.clientWidth,this.container.clientHeight);this.StereoEffect=new THREE.StereoEffect(this.renderer);this.StereoEffect.setSize(this.container.clientWidth,this.container.clientHeight);this.effect=this.CardboardEffect;this.addReticle();this.options.horizontalView&&(this.OrbitControls.minPolarAngle=Math.PI/2,this.OrbitControls.maxPolarAngle=Math.PI/2);this.options.controlBar!==!1&&this.addDefaultControlBar(this.options.controlButtons);this.options.viewIndicator&&this.addViewIndicator();this.options.reverseDragging&&this.reverseDraggingDirection();this.options.enableReticle?this.enableReticleControl():this.registerMouseAndTouchEvents();this.options.output==="overlay"&&this.addOutputElement();this.registerEventListeners();this.animate.call(this)};PANOLENS.Viewer.prototype=Object.create(THREE.EventDispatcher.prototype);PANOLENS.Viewer.prototype.constructor=PANOLENS.Viewer;PANOLENS.Viewer.prototype.add=function(n){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}this.scene.add(n);n.addEventListener&&n.addEventListener("panolens-viewer-handler",this.eventHandler.bind(this));n instanceof PANOLENS.Panorama&&n.dispatchEvent&&n.dispatchEvent({type:"panolens-container",container:this.container});n.type==="panorama"&&(this.addPanoramaEventListener(n),this.panorama||this.setPanorama(n))};PANOLENS.Viewer.prototype.remove=function(n){n.removeEventListener&&n.removeEventListener("panolens-viewer-handler",this.eventHandler.bind(this));this.scene.remove(n)};PANOLENS.Viewer.prototype.addDefaultControlBar=function(n){var t=this;if(this.widget){console.warn("Default control bar exists");return}this.widget=new PANOLENS.Widget(this.container);this.widget.addEventListener("panolens-viewer-handler",this.eventHandler.bind(this));this.widget.addControlBar();n.forEach(function(n){t.widget.addControlButton(n)})};PANOLENS.Viewer.prototype.setPanorama=function(n){var r=this,t=this.panorama,i;n.type==="panorama"&&t!==n&&(this.hideInfospot(),i=function i(){t&&t.onLeave();n.removeEventListener("enter-fade-start",i)},n.addEventListener("enter-fade-start",i),(this.panorama=n).onEnter())};PANOLENS.Viewer.prototype.eventHandler=function(n){n.method&&this[n.method]&&this[n.method](n.data)};PANOLENS.Viewer.prototype.dispatchEventToChildren=function(n){this.scene.traverse(function(t){t.dispatchEvent&&t.dispatchEvent(n)})};PANOLENS.Viewer.prototype.activateWidgetItem=function(n,t){var f=this.widget.mainMenu,r=f.children[0],u=f.children[1],i;if(n!==undefined){switch(n){case 0:i=r.subMenu.children[1];break;case 1:i=r.subMenu.children[2];break;default:i=r.subMenu.children[1]}r.subMenu.setActiveItem(i);r.setSelectionTitle(i.textContent)}if(t!==undefined){switch(t){case PANOLENS.Modes.CARDBOARD:i=u.subMenu.children[2];break;case PANOLENS.Modes.STEREO:i=u.subMenu.children[3];break;default:i=u.subMenu.children[1]}u.subMenu.setActiveItem(i);u.setSelectionTitle(i.textContent)}};PANOLENS.Viewer.prototype.enableEffect=function(n){if(this.mode!==n){if(n===PANOLENS.Modes.NORMAL){this.disableEffect();return}this.mode=n;var t=this.camera.fov;switch(n){case PANOLENS.Modes.CARDBOARD:this.effect=this.CardboardEffect;this.enableReticleControl();break;case PANOLENS.Modes.STEREO:this.effect=this.StereoEffect;this.enableReticleControl();break;default:this.effect=null;this.disableReticleControl()}this.activateWidgetItem(undefined,this.mode);this.dispatchEventToChildren({type:"panolens-dual-eye-effect",mode:this.mode});this.camera.fov=t+.01;this.effect.setSize(this.container.clientWidth,this.container.clientHeight);this.render();this.camera.fov=t}};PANOLENS.Viewer.prototype.disableEffect=function(){this.mode!==PANOLENS.Modes.NORMAL&&(this.mode=PANOLENS.Modes.NORMAL,this.disableReticleControl(),this.activateWidgetItem(undefined,this.mode),this.dispatchEventToChildren({type:"panolens-dual-eye-effect",mode:this.mode}),this.renderer.setSize(this.container.clientWidth,this.container.clientHeight),this.render())};PANOLENS.Viewer.prototype.enableReticleControl=function(){this.reticle.visible||(this.reticle.textureLoaded||this.reticle.loadTextures(),this.tempEnableReticle=!0,this.unregisterMouseAndTouchEvents(),this.reticle.show(),this.registerReticleEvent(),this.updateReticleEvent())};PANOLENS.Viewer.prototype.disableReticleControl=function(){this.tempEnableReticle=!1;this.options.enableReticle?this.updateReticleEvent():(this.reticle.hide(),this.unregisterReticleEvent(),this.registerMouseAndTouchEvents())};PANOLENS.Viewer.prototype.toggleVideoPlay=function(n){this.panorama instanceof PANOLENS.VideoPanorama&&this.panorama.dispatchEvent({type:"video-toggle",pause:n})};PANOLENS.Viewer.prototype.setVideoCurrentTime=function(n){this.panorama instanceof PANOLENS.VideoPanorama&&this.panorama.dispatchEvent({type:"video-time",percentage:n})};PANOLENS.Viewer.prototype.onVideoUpdate=function(n){this.widget&&this.widget.dispatchEvent({type:"video-update",percentage:n})};PANOLENS.Viewer.prototype.addUpdateCallback=function(n){n&&this.updateCallbacks.push(n)};PANOLENS.Viewer.prototype.removeUpdateCallback=function(n){var t=this.updateCallbacks.indexOf(n);n&&t>=0&&this.updateCallbacks.splice(t,1)};PANOLENS.Viewer.prototype.showVideoWidget=function(){this.widget&&this.widget.dispatchEvent({type:"video-control-show"})};PANOLENS.Viewer.prototype.hideVideoWidget=function(){this.widget&&this.widget.dispatchEvent({type:"video-control-hide"})};PANOLENS.Viewer.prototype.updateVideoPlayButton=function(n){this.widget&&this.widget.videoElement&&this.widget.videoElement.controlButton&&this.widget.videoElement.controlButton.update(n)};PANOLENS.Viewer.prototype.addPanoramaEventListener=function(n){var t=this;n.addEventListener("enter-fade-start",this.setCameraControl.bind(this));n instanceof PANOLENS.VideoPanorama&&(n.addEventListener("enter-fade-start",this.showVideoWidget.bind(this)),n.addEventListener("leave",function(){this.panorama instanceof PANOLENS.VideoPanorama||this.hideVideoWidget.call(this)}.bind(this)))};PANOLENS.Viewer.prototype.setCameraControl=function(){this.OrbitControls.target.copy(this.panorama.position)};PANOLENS.Viewer.prototype.getControl=function(){return this.control};PANOLENS.Viewer.prototype.getScene=function(){return this.scene};PANOLENS.Viewer.prototype.getCamera=function(){return this.camera};PANOLENS.Viewer.prototype.getRenderer=function(){return this.renderer};PANOLENS.Viewer.prototype.getContainer=function(){return this.container};PANOLENS.Viewer.prototype.getControlName=function(){return this.control.name};PANOLENS.Viewer.prototype.getNextControlName=function(){return this.controls[this.getNextControlIndex()].name};PANOLENS.Viewer.prototype.getNextControlIndex=function(){var n,i,t;return n=this.controls,i=this.control,t=n.indexOf(i)+1,t>=n.length?0:t};PANOLENS.Viewer.prototype.setCameraFov=function(n){this.camera.fov=n;this.camera.updateProjectionMatrix()};PANOLENS.Viewer.prototype.enableControl=function(n){n=n>=0&&n<this.controls.length?n:0;this.control.enabled=!1;this.control=this.controls[n];this.control.enabled=!0;switch(n){case PANOLENS.Controls.ORBIT:this.camera.position.copy(this.panorama.position);this.camera.position.z+=1;break;case PANOLENS.Controls.DEVICEORIENTATION:this.camera.position.copy(this.panorama.position)}this.control.update();this.activateWidgetItem(n,undefined)};PANOLENS.Viewer.prototype.disableControl=function(){this.control.enabled=!1};PANOLENS.Viewer.prototype.toggleNextControl=function(){this.enableControl(this.getNextControlIndex())};PANOLENS.Viewer.prototype.getScreenVector=function(n){var t=n.clone(),i=this.container.clientWidth/2,r=this.container.clientHeight/2;return t.project(this.camera),t.x=t.x*i+i,t.y=-(t.y*r)+r,t.z=0,t};PANOLENS.Viewer.prototype.checkSpriteInViewport=function(n){return this.camera.matrixWorldInverse.getInverse(this.camera.matrixWorld),this.cameraViewProjectionMatrix.multiplyMatrices(this.camera.projectionMatrix,this.camera.matrixWorldInverse),this.cameraFrustum.setFromMatrix(this.cameraViewProjectionMatrix),n.visible&&this.cameraFrustum.intersectsSprite(n)};PANOLENS.Viewer.prototype.reverseDraggingDirection=function(){this.OrbitControls.rotateSpeed*=-1;this.OrbitControls.momentumScalingFactor*=-1};PANOLENS.Viewer.prototype.addReticle=function(){this.reticle=new PANOLENS.Reticle(16777215,this.options.autoReticleSelect,PANOLENS.DataImage.ReticleIdle,PANOLENS.DataImage.ReticleDwell,this.options.dwellTime,45);this.reticle.position.z=-10;this.camera.add(this.reticle);this.scene.add(this.camera)};PANOLENS.Viewer.prototype.tweenControlCenter=function(n,t,i){if(this.control===this.OrbitControls){n instanceof Array&&(t=n[1],i=n[2],n=n[0]);t=t!==undefined?t:1e3;i=i||TWEEN.Easing.Exponential.Out;var h,r,c,f,s,u,e,a,l,o;h=this;f=this.camera.getWorldDirection();s=f.clone();a=this.panorama.getWorldPosition().sub(this.camera.getWorldPosition());u=n.clone();u.x*=-1;u.add(a).normalize();e=u.clone();f.y=0;u.y=0;r=Math.atan2(u.z,u.x)-Math.atan2(f.z,f.x);r=r>Math.PI?r-2*Math.PI:r;r=r<-Math.PI?r+2*Math.PI:r;c=Math.abs(s.angleTo(f)+(s.y*e.y<=0?e.angleTo(u):-e.angleTo(u)));c*=e.y<s.y?1:-1;l={left:0,up:0};o={left:0,up:0};this.tweenLeftAnimation.stop();this.tweenUpAnimation.stop();this.tweenLeftAnimation=new TWEEN.Tween(l).to({left:r},t).easing(i).onUpdate(function(){h.control.rotateLeft(this.left-o.left);o.left=this.left}).start();this.tweenUpAnimation=new TWEEN.Tween(l).to({up:c},t).easing(i).onUpdate(function(){h.control.rotateUp(this.up-o.up);o.up=this.up}).start()}};PANOLENS.Viewer.prototype.tweenControlCenterByObject=function(n,t,i){var r=!1,u;n.traverseAncestors(function(n){n.scalePlaceHolder&&(r=!0)});r?(u=new THREE.Vector3(-1,1,1),this.tweenControlCenter(n.getWorldPosition().multiply(u),t,i)):this.tweenControlCenter(n.getWorldPosition(),t,i)};PANOLENS.Viewer.prototype.onWindowResize=function(n,t){var i,r,u;u=this.container.classList.contains("panolens-container")||this.container.isFullscreen;n!==undefined&&t!==undefined?(i=n,r=t,this.container._width=n,this.container._height=t):(i=u?Math.max(document.documentElement.clientWidth,window.innerWidth||0):this.container.clientWidth,r=u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):this.container.clientHeight,this.container._width=i,this.container._height=r);this.camera.aspect=i/r;this.camera.updateProjectionMatrix();this.renderer.setSize(i,r);(this.options.enableReticle||this.tempEnableReticle)&&this.updateReticleEvent();this.dispatchEvent({type:"window-resize",width:i,height:r});this.scene.traverse(function(n){n.dispatchEvent&&n.dispatchEvent({type:"window-resize",width:i,height:r})})};PANOLENS.Viewer.prototype.addOutputElement=function(){var n=document.createElement("div");n.style.position="absolute";n.style.right="10px";n.style.top="10px";n.style.color="#fff";this.container.appendChild(n);this.outputDivElement=n};PANOLENS.Viewer.prototype.outputInfospotPosition=function(){var r,t,i,n;if(r=this.raycaster.intersectObject(this.panorama,!0),r.length>0){t=r[0].point;i=this.panorama.getWorldPosition();n=new THREE.Vector3(-(t.x-i.x).toFixed(2),(t.y-i.y).toFixed(2),(t.z-i.z).toFixed(2));switch(this.options.output){case"console":console.info(n.x+", "+n.y+", "+n.z);break;case"overlay":this.outputDivElement.textContent=n.x+", "+n.y+", "+n.z}}};PANOLENS.Viewer.prototype.onMouseDown=function(n){n.preventDefault();this.userMouse.x=n.clientX>=0?n.clientX:n.touches[0].clientX;this.userMouse.y=n.clientY>=0?n.clientY:n.touches[0].clientY;this.userMouse.type="mousedown";this.onTap(n)};PANOLENS.Viewer.prototype.onMouseMove=function(n){n.preventDefault();this.userMouse.type="mousemove";this.onTap(n)};PANOLENS.Viewer.prototype.onMouseUp=function(n){var i=!1,t;(this.userMouse.type="mouseup",t=this.userMouse.x>=n.clientX-this.options.clickTolerance&&this.userMouse.x<=n.clientX+this.options.clickTolerance&&this.userMouse.y>=n.clientY-this.options.clickTolerance&&this.userMouse.y<=n.clientY+this.options.clickTolerance||n.changedTouches&&this.userMouse.x>=n.changedTouches[0].clientX-this.options.clickTolerance&&this.userMouse.x<=n.changedTouches[0].clientX+this.options.clickTolerance&&this.userMouse.y>=n.changedTouches[0].clientY-this.options.clickTolerance&&this.userMouse.y<=n.changedTouches[0].clientY+this.options.clickTolerance?"click":undefined,n&&n.target&&!n.target.classList.contains("panolens-canvas"))||(n.preventDefault(),i=n.changedTouches&&n.changedTouches.length===1?this.onTap({clientX:n.changedTouches[0].clientX,clientY:n.changedTouches[0].clientY},t):this.onTap(n,t),this.userMouse.type="none",i)||t==="click"&&(this.options.autoHideInfospot&&this.panorama&&this.panorama.toggleInfospotVisibility(),this.options.autoHideControlBar&&this.toggleControlBar())};PANOLENS.Viewer.prototype.onTap=function(n,t){var u,r,i;if(this.raycasterPoint.x=(n.clientX-$(this.container).offset().left)/this.container.clientWidth*2-1,this.raycasterPoint.y=-((n.clientY-$(this.container).offset().top)/this.container.clientHeight)*2+1,this.raycaster.setFromCamera(this.raycasterPoint,this.camera),this.panorama)if((n.type!=="mousedown"&&PANOLENS.Utils.checkTouchSupported()||this.OUTPUT_INFOSPOT)&&this.outputInfospotPosition(),u=this.raycaster.intersectObjects(this.panorama.children,!0),r=this.getConvertedIntersect(u),i=u.length>0?u[0].object:i,this.userMouse.type==="mouseup"&&(r&&this.pressEntityObject===r&&this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressstop-entity",mouseEvent:n}),this.pressEntityObject=undefined),this.userMouse.type==="mouseup"&&(i&&this.pressObject===i&&this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressstop",mouseEvent:n}),this.pressObject=undefined),t==="click"?(this.panorama.dispatchEvent({type:"click",intersects:u,mouseEvent:n}),r&&r.dispatchEvent&&r.dispatchEvent({type:"click-entity",mouseEvent:n}),i&&i.dispatchEvent&&i.dispatchEvent({type:"click",mouseEvent:n})):(this.panorama.dispatchEvent({type:"hover",intersects:u,mouseEvent:n}),(this.hoverObject&&u.length>0&&this.hoverObject!==r||this.hoverObject&&u.length===0)&&(this.hoverObject.dispatchEvent&&(this.hoverObject.dispatchEvent({type:"hoverleave",mouseEvent:n}),this.reticle.cancelDwelling()),this.hoverObject=undefined),r&&u.length>0&&(this.hoverObject!==r&&(this.hoverObject=r,this.hoverObject.dispatchEvent&&(this.hoverObject.dispatchEvent({type:"hoverenter",mouseEvent:n}),(this.options.autoReticleSelect&&this.options.enableReticle||this.tempEnableReticle)&&this.reticle.startDwelling(this.onTap.bind(this,n,"click")))),this.userMouse.type==="mousedown"&&this.pressEntityObject!=r&&(this.pressEntityObject=r,this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressstart-entity",mouseEvent:n})),this.userMouse.type==="mousedown"&&this.pressObject!=i&&(this.pressObject=i,this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressstart",mouseEvent:n})),(this.userMouse.type==="mousemove"||this.options.enableReticle)&&(i&&i.dispatchEvent&&i.dispatchEvent({type:"hover",mouseEvent:n}),this.pressEntityObject&&this.pressEntityObject.dispatchEvent&&this.pressEntityObject.dispatchEvent({type:"pressmove-entity",mouseEvent:n}),this.pressObject&&this.pressObject.dispatchEvent&&this.pressObject.dispatchEvent({type:"pressmove",mouseEvent:n}))),!r&&this.pressEntityObject&&this.pressEntityObject.dispatchEvent&&(this.pressEntityObject.dispatchEvent({type:"pressstop-entity",mouseEvent:n}),this.pressEntityObject=undefined),!i&&this.pressObject&&this.pressObject.dispatchEvent&&(this.pressObject.dispatchEvent({type:"pressstop",mouseEvent:n}),this.pressObject=undefined)),i&&i instanceof PANOLENS.Infospot){if(this.infospot=i,t==="click")return!0}else this.infospot&&this.hideInfospot()};PANOLENS.Viewer.prototype.getConvertedIntersect=function(n){for(var i,t=0;t<n.length;t++)if(n[t].distance>=0&&n[t].object&&!n[t].object.passThrough)if(n[t].object.entity&&n[t].object.entity.passThrough)continue;else if(n[t].object.entity&&!n[t].object.entity.passThrough){i=n[t].object.entity;break}else{i=n[t].object;break}return i};PANOLENS.Viewer.prototype.hideInfospot=function(){this.infospot&&(this.infospot.onHoverEnd(),this.infospot=undefined)};PANOLENS.Viewer.prototype.toggleControlBar=function(){this.widget&&this.widget.dispatchEvent({type:"control-bar-toggle"})};PANOLENS.Viewer.prototype.onKeyDown=function(n){this.options.output&&this.options.output!=="none"&&n.key==="Control"&&(this.OUTPUT_INFOSPOT=!0)};PANOLENS.Viewer.prototype.onKeyUp=function(){this.OUTPUT_INFOSPOT=!1};PANOLENS.Viewer.prototype.update=function(){TWEEN.update();this.updateCallbacks.forEach(function(n){n()});this.control.update();this.scene.traverse(function(n){if(n instanceof PANOLENS.Infospot&&n.element&&(this.hoverObject===n||n.element.style.display!=="none"||n.element.left&&n.element.left.style.display!=="none"||n.element.right&&n.element.right.style.display!=="none"))if(this.checkSpriteInViewport(n)){var t=this.getScreenVector(n.getWorldPosition());n.translateElement(t.x,t.y)}else n.onDismiss()}.bind(this))};PANOLENS.Viewer.prototype.render=function(){this.mode===PANOLENS.Modes.CARDBOARD||this.mode===PANOLENS.Modes.STEREO?this.effect.render(this.scene,this.camera):this.renderer.render(this.scene,this.camera)};PANOLENS.Viewer.prototype.animate=function(){this.requestAnimationId=window.requestAnimationFrame(this.animate.bind(this));this.onChange()};PANOLENS.Viewer.prototype.onChange=function(){this.update();this.render()};PANOLENS.Viewer.prototype.registerMouseAndTouchEvents=function(){this.container.addEventListener("mousedown",this.HANDLER_MOUSE_DOWN,!1);this.container.addEventListener("mousemove",this.HANDLER_MOUSE_MOVE,!1);this.container.addEventListener("mouseup",this.HANDLER_MOUSE_UP,!1);this.container.addEventListener("touchstart",this.HANDLER_MOUSE_DOWN,!1);this.container.addEventListener("touchend",this.HANDLER_MOUSE_UP,!1)};PANOLENS.Viewer.prototype.unregisterMouseAndTouchEvents=function(){this.container.removeEventListener("mousedown",this.HANDLER_MOUSE_DOWN,!1);this.container.removeEventListener("mousemove",this.HANDLER_MOUSE_MOVE,!1);this.container.removeEventListener("mouseup",this.HANDLER_MOUSE_UP,!1);this.container.removeEventListener("touchstart",this.HANDLER_MOUSE_DOWN,!1);this.container.removeEventListener("touchend",this.HANDLER_MOUSE_UP,!1)};PANOLENS.Viewer.prototype.registerReticleEvent=function(){this.addUpdateCallback(this.HANDLER_TAP)};PANOLENS.Viewer.prototype.unregisterReticleEvent=function(){this.removeUpdateCallback(this.HANDLER_TAP)};PANOLENS.Viewer.prototype.updateReticleEvent=function(){var n,t;n=this.container.clientWidth/2+this.container.offsetLeft;t=this.container.clientHeight/2;this.removeUpdateCallback(this.HANDLER_TAP);this.HANDLER_TAP=this.onTap.bind(this,{clientX:n,clientY:t});this.addUpdateCallback(this.HANDLER_TAP)};PANOLENS.Viewer.prototype.registerEventListeners=function(){window.addEventListener("resize",this.HANDLER_WINDOW_RESIZE,!0);window.addEventListener("keydown",this.HANDLER_KEY_DOWN,!0);window.addEventListener("keyup",this.HANDLER_KEY_UP,!0)};PANOLENS.Viewer.prototype.unregisterEventListeners=function(){window.removeEventListener("resize",this.HANDLER_WINDOW_RESIZE,!0);window.removeEventListener("keydown",this.HANDLER_KEY_DOWN,!0);window.removeEventListener("keyup",this.HANDLER_KEY_UP,!0)};PANOLENS.Viewer.prototype.dispose=function(){function n(t){for(var i=t.children.length-1;i>=0;i--)n(t.children[i]),t.remove(t.children[i]);t instanceof PANOLENS.Infospot&&t.dispose();t.geometry&&t.geometry.dispose();t.material&&t.material.dispose()}this.unregisterEventListeners();n(this.scene);this.widget&&(this.widget.dispose(),this.widget=null);THREE.Cache&&THREE.Cache.enabled&&THREE.Cache.clear()};PANOLENS.Viewer.prototype.destory=function(){this.dispose();this.render();window.cancelAnimationFrame(this.requestAnimationId)};PANOLENS.Viewer.prototype.onPanoramaDispose=function(n){n instanceof PANOLENS.VideoPanorama&&this.hideVideoWidget();n===this.panorama&&(this.panorama=null)};PANOLENS.Viewer.prototype.loadAsyncRequest=function(n,t){var i=new XMLHttpRequest;i.onloadend=function(n){t&&t(n)};i.open("GET",n,!0);i.send(null)};PANOLENS.Viewer.prototype.addViewIndicator=function(){function t(t){var i,r,u,f,e;t.loaded!==0&&(i=t.target.responseXML.documentElement,i.style.width=n.viewIndicatorSize+"px",i.style.height=n.viewIndicatorSize+"px",i.style.position="absolute",i.style.top="10px",i.style.left="10px",i.style.opacity="0.5",i.style.cursor="pointer",i.id="panolens-view-indicator-container",n.container.appendChild(i),r=i.querySelector("#indicator"),u=function(){n.radius=n.viewIndicatorSize*.225;n.currentPanoAngle=n.camera.rotation.y-THREE.Math.degToRad(90);n.fovAngle=THREE.Math.degToRad(n.camera.fov);n.leftAngle=-n.currentPanoAngle-n.fovAngle/2;n.rightAngle=-n.currentPanoAngle+n.fovAngle/2;n.leftX=n.radius*Math.cos(n.leftAngle);n.leftY=n.radius*Math.sin(n.leftAngle);n.rightX=n.radius*Math.cos(n.rightAngle);n.rightY=n.radius*Math.sin(n.rightAngle);n.indicatorD="M "+n.leftX+" "+n.leftY+" A "+n.radius+" "+n.radius+" 0 0 1 "+n.rightX+" "+n.rightY;n.leftX&&n.leftY&&n.rightX&&n.rightY&&n.radius&&r.setAttribute("d",n.indicatorD)},n.addUpdateCallback(u),f=function(){this.style.opacity="1"},e=function(){this.style.opacity="0.5"},i.addEventListener("mouseenter",f),i.addEventListener("mouseleave",e))}var n=this;this.loadAsyncRequest(PANOLENS.DataImage.ViewIndicator,t)};PANOLENS.Viewer.prototype.appendControlItem=function(n){var t=this.widget.createCustomItem(n);return n.group==="video"?this.widget.videoElement.appendChild(t):this.widget.barElement.appendChild(t),t}}(),function e(n,t,i){function r(u,o){var h,c,s;if(!t[u]){if(!n[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(f)return f(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=t[u]={exports:{}};n[u][0].call(s.exports,function(t){var i=n[u][1][t];return r(i?i:t)},s,s.exports,e,n,t,i)}return t[u].exports}for(var f=typeof require=="function"&&require,u=0;u<i.length;u++)r(i[u]);return r}({1:[function(n,t){function i(n){o.call(this);typeof n=="string"&&(n={text:n});this._opt=f({},n);n&&this.update(n)}var s=n("layout-bmfont-text"),h=n("inherits"),c=n("quad-indices"),r=n("three-buffer-vertex-data"),f=n("object-assign"),u=n("./lib/vertices"),e=n("./lib/utils"),o=THREE.BufferGeometry;t.exports=function(n){return new i(n)};h(i,o);i.prototype.update=function(n){var i;if(typeof n=="string"&&(n={text:n}),n=f({},this._opt,n),!n.font)throw new TypeError("must specify a { font } in options");this.layout=s(n);var o=n.flipY!==!1,e=n.font,h=e.common.scaleW,l=e.common.scaleH,t=this.layout.glyphs.filter(function(n){var t=n.data;return t.width*t.height>0});this.visibleGlyphs=t;var a=u.positions(t),v=u.uvs(t,h,l,o),y=c({clockwise:!0,type:"uint16",count:t.length});r.index(this,y,1,"uint16");r.attr(this,"position",a,2);r.attr(this,"uv",v,2);!n.multipage&&"page"in this.attributes?this.removeAttribute("page"):n.multipage&&(i=u.pages(t),r.attr(this,"page",i,1))};i.prototype.computeBoundingSphere=function(){this.boundingSphere===null&&(this.boundingSphere=new THREE.Sphere);var n=this.attributes.position.array,t=this.attributes.position.itemSize;if(!n||!t||n.length<2){this.boundingSphere.radius=0;this.boundingSphere.center.set(0,0,0);return}e.computeSphere(n,this.boundingSphere);isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.')};i.prototype.computeBoundingBox=function(){this.boundingBox===null&&(this.boundingBox=new THREE.Box3);var t=this.boundingBox,n=this.attributes.position.array,i=this.attributes.position.itemSize;if(!n||!i||n.length<2){t.makeEmpty();return}e.computeBox(n,t)}},{"./lib/utils":2,"./lib/vertices":3,inherits:4,"layout-bmfont-text":5,"object-assign":26,"quad-indices":27,"three-buffer-vertex-data":31}],2:[function(n,t){function u(n){var e=n.length/r,t,u,f;for(i.min[0]=n[0],i.min[1]=n[1],i.max[0]=n[0],i.max[1]=n[1],t=0;t<e;t++)u=n[t*r+0],f=n[t*r+1],i.min[0]=Math.min(u,i.min[0]),i.min[1]=Math.min(f,i.min[1]),i.max[0]=Math.max(u,i.max[0]),i.max[1]=Math.max(f,i.max[1])}var r=2,i={min:[0,0],max:[0,0]};t.exports.computeBox=function(n,t){u(n);t.min.set(i.min[0],i.min[1],0);t.max.set(i.max[0],i.max[1],0)};t.exports.computeSphere=function(n,t){u(n);var e=i.min[0],o=i.min[1],s=i.max[0],h=i.max[1],r=s-e,f=h-o,c=Math.sqrt(r*r+f*f);t.center.set(e+r/2,o+f/2,0);t.radius=c/2}},{}],3:[function(n,t){t.exports.pages=function(n){var t=new Float32Array(n.length*4),i=0;return n.forEach(function(n){var r=n.data.page||0;t[i++]=r;t[i++]=r;t[i++]=r;t[i++]=r}),t};t.exports.uvs=function(n,t,i,r){var u=new Float32Array(n.length*8),f=0;return n.forEach(function(n){var e=n.data,a=e.x+e.width,h=e.y+e.height,c=e.x/t,o=e.y/i,l=a/t,s=h/i;r&&(o=(i-e.y)/i,s=(i-h)/i);u[f++]=c;u[f++]=o;u[f++]=c;u[f++]=s;u[f++]=l;u[f++]=s;u[f++]=l;u[f++]=o}),u};t.exports.positions=function(n){var t=new Float32Array(n.length*8),i=0;return n.forEach(function(n){var r=n.data,u=n.position[0]+r.xoffset,f=n.position[1]+r.yoffset,e=r.width,o=r.height;t[i++]=u;t[i++]=f;t[i++]=u;t[i++]=f+o;t[i++]=u+e;t[i++]=f+o;t[i++]=u+e;t[i++]=f}),t}},{}],4:[function(n,t){t.exports=typeof Object.create=="function"?function(n,t){n.super_=t;n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:function(n,t){n.super_=t;var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n}},{}],5:[function(n,t){function i(n){this.glyphs=[];this._measure=this.computeMetrics.bind(this);this.update(n)}function p(n){Object.defineProperty(i.prototype,n,{get:w(n),configurable:!0})}function w(n){return new Function(["return function "+n+"() {","  return this._"+n,"}"].join("\n"))()}function u(n,t){if(!n.chars||n.chars.length===0)return null;var i=r(n.chars,t);return i>=0?n.chars[i]:null}function b(n){for(var u,t,i=0;i<s.length;i++)if(u=s[i].charCodeAt(0),t=r(n.chars,u),t>=0)return n.chars[t].height;return 0}function k(n){for(var u,t,i=0;i<h.length;i++)if(u=h[i].charCodeAt(0),t=r(n.chars,u),t>=0)return n.chars[t];return 0}function d(n){for(var u,t,i=0;i<c.length;i++)if(u=c[i].charCodeAt(0),t=r(n.chars,u),t>=0)return n.chars[t].height;return 0}function f(n,t,i){var f,r,u;if(!n.kernings||n.kernings.length===0)return 0;for(f=n.kernings,r=0;r<f.length;r++)if(u=f[r],u.first===t&&u.second===i)return u.amount;return 0}function g(n){return n==="center"?v:n==="right"?y:tt}var nt=n("word-wrapper"),e=n("xtend"),r=n("indexof-property")("id"),o=n("as-number"),s=["x","e","a","o","n","s","r","c","u","m","v","w","z"],h=["m","w"],c=["H","I","N","E","F","K","L","T","U","V","W","X","Y","Z"],l="\t".charCodeAt(0),a=" ".charCodeAt(0),tt=0,v=1,y=2;t.exports=function(n){return new i(n)};i.prototype.update=function(n){var r,l,a;if(n=e({measure:this._measure},n),this._opt=n,this._opt.tabSize=o(this._opt.tabSize,4),!n.font)throw new Error("must provide a valid bitmap font");var p=this.glyphs,w=n.text||"",t=n.font;this._setupSpaceGlyphs(t);r=nt.lines(w,n);l=n.width||0;p.length=0;var s=r.reduce(function(n,t){return Math.max(n,t.width,l)},0),u=0,h=0,i=o(n.lineHeight,t.common.lineHeight),c=t.common.base,k=i-c,rt=n.letterSpacing||0,tt=i*r.length-k,it=g(this._opt.align);h-=tt;this._width=s;this._height=tt;this._descender=i-c;this._baseline=c;this._xHeight=b(t);this._capHeight=d(t);this._lineHeight=i;this._ascender=i-k-this._xHeight;a=this;r.forEach(function(n,r){for(var d=n.start,g=n.end,b=n.width,l,k,e,o,c=d;c<g;c++)k=w.charCodeAt(c),e=a.getGlyph(t,k),e&&(l&&(u+=f(t,l.id,e.id)),o=u,it===v?o+=(s-b)/2:it===y&&(o+=s-b),p.push({position:[o,h],data:e,index:c,line:r}),u+=e.xadvance+rt,l=e);h+=i;u=0});this._linesTotal=r.length};i.prototype._setupSpaceGlyphs=function(n){if(this._fallbackSpaceGlyph=null,this._fallbackTabGlyph=null,n.chars&&n.chars.length!==0){var t=u(n,a)||k(n)||n.chars[0],i=this._opt.tabSize*t.xadvance;this._fallbackSpaceGlyph=t;this._fallbackTabGlyph=e(t,{x:0,y:0,xadvance:i,id:l,xoffset:0,yoffset:0,width:0,height:0})}};i.prototype.getGlyph=function(n,t){var i=u(n,t);return i?i:t===l?this._fallbackTabGlyph:t===a?this._fallbackSpaceGlyph:null};i.prototype.computeMetrics=function(n,t,i,r){var w=this._opt.letterSpacing||0,o=this._opt.font,s=0,c=0,v=0,e,h,y,u,b,p,l,a;if(!o.chars||o.chars.length===0)return{start:t,end:t,width:0};for(i=Math.min(n.length,i),h=t;h<i;h++){if(y=n.charCodeAt(h),u=this.getGlyph(o,y),u){if(b=u.xoffset,p=e?f(o,e.id,u.id):0,s+=p,l=s+u.xadvance+w,a=s+u.width,a>=r||l>=r)break;s=l;c=a;e=u}v++}return e&&(c+=e.xoffset),{start:t,end:t+v,width:c}};["width","height","descender","ascender","xHeight","baseline","capHeight","lineHeight"].forEach(p)},{"as-number":6,"indexof-property":7,"word-wrapper":8,xtend:9}],6:[function(n,t){t.exports=function(n,t){return typeof n=="number"?n:typeof t=="number"?t:0}},{}],7:[function(n,t){t.exports=function(n){if(!n||typeof n!="string")throw new Error("must specify property for indexof search");return new Function("array","value","start",["start = start || 0","for (var i=start; i<array.length; i++)",'  if (array[i]["'+n+'"] === value)',"      return i","return -1"].join("\n"))}},{}],8:[function(n,t){function u(n,t,i,r){var u=n.indexOf(t,i);return u===-1||u>r?r:u}function r(n){return h.test(n)}function f(n,t,i,r,u){for(var o=[],h=i,c,e,l,a,f=i;f<r&&f<t.length;f++)c=t.charAt(f),e=s.test(c),(e||f===r-1)&&(l=e?f:f+1,a=n(t,h,l,u),o.push(a),h=f+1);return o}function e(n,t,f,e,o,s){var v=[],a=o,l,y;for(s==="nowrap"&&(a=Number.MAX_VALUE);f<e&&f<t.length;){for(l=u(t,i,f,e);f<l;){if(!r(t.charAt(f)))break;f++}var p=n(t,f,l,a),h=f+(p.end-p.start),c=h+i.length;if(h<l){while(h>f){if(r(t.charAt(h)))break;h--}if(h===f)c>f+i.length&&c--,h=c;else for(c=h;h>f;){if(!r(t.charAt(h-i.length)))break;h--}}h>=f&&(y=n(t,f,h,a),v.push(y));f=c}return v}function o(n,t,i,r){var u=Math.min(r,i-t);return{start:t,end:t+u}}var s=/\n/,i="\n",h=/\s/;t.exports=function(n,i){var r=t.exports.lines(n,i);return r.map(function(t){return n.substring(t.start,t.end)}).join("\n")};t.exports.lines=function(n,t){if(t=t||{},t.width===0&&t.mode!=="nowrap")return[];n=n||"";var i=typeof t.width=="number"?t.width:Number.MAX_VALUE,r=Math.max(0,t.start||0),u=typeof t.end=="number"?t.end:n.length,s=t.mode,h=t.measure||o;return s==="pre"?f(h,n,r,u,i):e(h,n,r,u,i,s)}},{}],9:[function(n,t){function i(){for(var u={},n,t,i=0;i<arguments.length;i++){n=arguments[i];for(t in n)r.call(n,t)&&(u[t]=n[t])}return u}t.exports=i;var r=Object.prototype.hasOwnProperty},{}],10:[function(n,t){(function(i){function f(n){var t=Object.prototype.toString;return t.call(n)==="[object ArrayBuffer]"}function e(n){if(a)return u(n,{responseType:"arraybuffer"});if(typeof window.XMLHttpRequest=="undefined")throw new Error("your browser does not support XHR loading");var t=new window.XMLHttpRequest;return t.overrideMimeType("text/plain; charset=x-user-defined"),u({xhr:t},n)}var o=n("xhr"),r=function(){},s=n("parse-bmfont-ascii"),h=n("parse-bmfont-xml"),c=n("parse-bmfont-binary"),l=n("./lib/is-binary"),u=n("xtend"),a=function(){return window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}();t.exports=function(n,t){t=typeof t=="function"?t:r;typeof n=="string"?n={uri:n}:n||(n={});var u=n.binary;u&&(n=e(n));o(n,function(u,e,o){var a,y,p,v;if(u)return t(u);if(!/^2/.test(e.statusCode))return t(new Error("http status code: "+e.statusCode));if(!o)return t(new Error("no body result"));a=!1;f(o)&&(y=new Uint8Array(o),o=new i(y,"binary"));l(o)&&(a=!0,typeof o=="string"&&(o=new i(o,"binary")));a||(i.isBuffer(o)&&(o=o.toString(n.encoding)),o=o.trim());try{v=e.headers["content-type"];p=a?c(o):/json/.test(v)||o.charAt(0)==="{"?JSON.parse(o):/xml/.test(v)||o.charAt(0)==="<"?h(o):s(o)}catch(w){t(new Error("error parsing font "+w.message));t=r}t(null,p)})}}).call(this,n("buffer").Buffer)},{"./lib/is-binary":11,buffer:37,"parse-bmfont-ascii":13,"parse-bmfont-binary":14,"parse-bmfont-xml":15,xhr:18,xtend:25}],11:[function(n,t){(function(i){var r=n("buffer-equal"),u=new i([66,77,70,3]);t.exports=function(n){return typeof n=="string"?n.substring(0,3)==="BMF":n.length>4&&r(n.slice(0,4),u)}}).call(this,n("buffer").Buffer)},{buffer:37,"buffer-equal":12}],12:[function(n,t){var i=n("buffer").Buffer;t.exports=function(n,t){if(!i.isBuffer(n)||!i.isBuffer(t))return undefined;if(typeof n.equals=="function")return n.equals(t);if(n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(n[r]!==t[r])return!1;return!0}},{buffer:37}],13:[function(n,t){function r(n,t){var e,s,r,u,f,o;if(n=n.replace(/\t+/g," ").trim(),!n)return null;if(e=n.indexOf(" "),e===-1)throw new Error("no named row at line "+t);for(s=n.substring(0,e),n=n.substring(e+1),n=n.replace(/letter=[\'\"]\S+[\'\"]/gi,""),n=n.split("="),n=n.map(function(n){return n.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)}),r=[],u=0;u<n.length;u++)f=n[u],u===0?r.push({key:f[0],data:""}):u===n.length-1?r[r.length-1].data=i(f[0]):(r[r.length-1].data=i(f[0]),r.push({key:f[1],data:""}));return o={key:s,data:{}},r.forEach(function(n){o.data[n.key]=n.data}),o}function i(n){return!n||n.length===0?"":n.indexOf('"')===0||n.indexOf("'")===0?n.substring(1,n.length-1):n.indexOf(",")!==-1?u(n):parseInt(n,10)}function u(n){return n.split(",").map(function(n){return parseInt(n,10)})}t.exports=function(n){var u,f,i,t;if(!n)throw new Error("no data provided");if(n=n.toString().trim(),u={pages:[],chars:[],kernings:[]},f=n.split(/\r\n?|\n/g),f.length===0)throw new Error("no data in BMFont file");for(i=0;i<f.length;i++)if(t=r(f[i],i),t)if(t.key==="page"){if(typeof t.data.id!="number")throw new Error("malformed file at line "+i+" -- needs page id=N");if(typeof t.data.file!="string")throw new Error("malformed file at line "+i+' -- needs page file="path"');u.pages[t.data.id]=t.data.file}else t.key==="chars"||t.key==="kernings"||(t.key==="char"?u.chars.push(t.data):t.key==="kerning"?u.kernings.push(t.data):u[t.key]=t.data);return u}},{}],14:[function(n,t){function r(n,t,i){if(i>t.length-1)return 0;var h=t.readUInt8(i++),r=t.readInt32LE(i);i+=4;switch(h){case 1:n.info=u(t,i);break;case 2:n.common=f(t,i);break;case 3:n.pages=e(t,i,r);break;case 4:n.chars=o(t,i,r);break;case 5:n.kernings=s(t,i,r)}return 5+r}function u(n,t){var i={},r;return i.size=n.readInt16LE(t),r=n.readUInt8(t+2),i.smooth=r>>7&1,i.unicode=r>>6&1,i.italic=r>>5&1,i.bold=r>>4&1,r>>3&1&&(i.fixedHeight=1),i.charset=n.readUInt8(t+3)||"",i.stretchH=n.readUInt16LE(t+4),i.aa=n.readUInt8(t+6),i.padding=[n.readInt8(t+7),n.readInt8(t+8),n.readInt8(t+9),n.readInt8(t+10)],i.spacing=[n.readInt8(t+11),n.readInt8(t+12)],i.outline=n.readUInt8(t+13),i.face=h(n,t+14),i}function f(n,t){var i={},r;return i.lineHeight=n.readUInt16LE(t),i.base=n.readUInt16LE(t+2),i.scaleW=n.readUInt16LE(t+4),i.scaleH=n.readUInt16LE(t+6),i.pages=n.readUInt16LE(t+8),r=n.readUInt8(t+10),i.packed=0,i.alphaChnl=n.readUInt8(t+11),i.redChnl=n.readUInt8(t+12),i.greenChnl=n.readUInt8(t+13),i.blueChnl=n.readUInt8(t+14),i}function e(n,t,r){for(var f=[],e=i(n,t),o=e.length+1,s=r/o,u=0;u<s;u++)f[u]=n.slice(t,t+e.length).toString("utf8"),t+=o;return f}function o(n,t,i){for(var e=[],o=i/20,r,u,f=0;f<o;f++)r={},u=f*20,r.id=n.readUInt32LE(t+0+u),r.x=n.readUInt16LE(t+4+u),r.y=n.readUInt16LE(t+6+u),r.width=n.readUInt16LE(t+8+u),r.height=n.readUInt16LE(t+10+u),r.xoffset=n.readInt16LE(t+12+u),r.yoffset=n.readInt16LE(t+14+u),r.xadvance=n.readInt16LE(t+16+u),r.page=n.readUInt8(t+18+u),r.chnl=n.readUInt8(t+19+u),e[f]=r;return e}function s(n,t,i){for(var e=[],o=i/10,r,u,f=0;f<o;f++)r={},u=f*10,r.first=n.readUInt32LE(t+0+u),r.second=n.readUInt32LE(t+4+u),r.amount=n.readInt16LE(t+8+u),e[f]=r;return e}function i(n,t){for(var i=t;i<n.length;i++)if(n[i]===0)break;return n.slice(t,i)}function h(n,t){return i(n,t).toString("utf8")}var c=[66,77,70];t.exports=function(n){var f,t,e,i,u;if(n.length<6)throw new Error("invalid buffer length for BMFont");if(f=c.every(function(t,i){return n.readUInt8(i)===t}),!f)throw new Error("BMFont missing BMF byte header");if(t=3,e=n.readUInt8(t++),e>3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(i={kernings:[],chars:[]},u=0;u<5;u++)t+=r(i,n,t);return i}},{}],15:[function(n,t){function i(n){var t=u(n);return t.reduce(function(n,t){var i=f(t.nodeName);return n[i]=t.nodeValue,n},{})}function u(n){for(var i=[],t=0;t<n.attributes.length;t++)i.push(n.attributes[t]);return i}function f(n){return o[n.toLowerCase()]||n}var r=n("./parse-attribs"),e=n("xml-parse-from-string"),o={scaleh:"scaleH",scalew:"scaleW",stretchh:"stretchH",lineheight:"lineHeight",alphachnl:"alphaChnl",redchnl:"redChnl",greenchnl:"greenChnl",bluechnl:"blueChnl"};t.exports=function(n){var u,t,o,s,f;if(n=n.toString(),u=e(n),t={pages:[],chars:[],kernings:[]},["info","common"].forEach(function(n){var f=u.getElementsByTagName(n)[0];f&&(t[n]=r(i(f)))}),o=u.getElementsByTagName("pages")[0],!o)throw new Error("malformed file -- no <pages> element");for(s=o.getElementsByTagName("page"),f=0;f<s.length;f++){var h=s[f],c=parseInt(h.getAttribute("id"),10),l=h.getAttribute("file");if(isNaN(c))throw new Error('malformed file -- page "id" attribute is NaN');if(!l)throw new Error('malformed file -- needs page "file" attribute');t.pages[parseInt(c,10)]=l}return["chars","kernings"].forEach(function(n){var o=u.getElementsByTagName(n)[0],s,e,f,h;if(o)for(s=n.substring(0,n.length-1),e=o.getElementsByTagName(s),f=0;f<e.length;f++)h=e[f],t[n].push(r(i(h)))}),t}},{"./parse-attribs":16,"xml-parse-from-string":17}],16:[function(n,t){function r(n){return n.split(",").map(function(n){return parseInt(n,10)})}var i="chasrset";t.exports=function(n){i in n&&(n.charset=n[i],delete n[i]);for(var t in n)if(t==="face"||t==="charset")continue;else n[t]=t==="padding"||t==="spacing"?r(n[t]):parseInt(n[t],10);return n}},{}],17:[function(n,t){t.exports=function(){return typeof window.DOMParser!="undefined"?function(n){var t=new window.DOMParser;return t.parseFromString(n,"application/xml")}:typeof window.ActiveXObject!="undefined"&&new window.ActiveXObject("Microsoft.XMLDOM")?function(n){var t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(n),t}:function(n){var t=document.createElement("div");return t.innerHTML=n,t}}()},{}],18:[function(n,t){"use strict";function e(n,t){for(var i=0;i<n.length;i++)t(n[i])}function o(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function r(n,t,i){var r=n;return c(t)?(i=t,typeof n=="string"&&(r={uri:n})):r=a(t,{uri:n}),r.callback=i,r}function i(n,t,i){return t=r(n,t,i),u(t)}function u(n){function d(){t.readyState===4&&p()}function g(){var n=undefined;if(t.response?n=t.response:t.responseType!=="text"&&t.responseType||(n=t.responseText||t.responseXML),k)try{n=JSON.parse(n)}catch(i){}return n}function s(n){clearTimeout(y);n instanceof Error||(n=new Error(""+(n||"Unknown XMLHttpRequest Error")));n.statusCode=0;u(n,c)}function p(){var r,i,e;w||(clearTimeout(y),r=n.useXDR&&t.status===undefined?200:t.status===1223?204:t.status,i=c,e=null,r!==0?(i={body:g(),statusCode:r,method:f,headers:{},url:a,rawRequest:t},t.getAllResponseHeaders&&(i.headers=l(t.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),u(e,i,i.body))}var u=n.callback,c,t;if(typeof u=="undefined")throw new Error("callback argument missing");u=h(u);c={body:undefined,headers:{},statusCode:0,method:f,url:a,rawRequest:t};t=n.xhr||null;t||(t=n.cors||n.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var e,w,a=t.url=n.uri||n.url,f=t.method=n.method||"GET",b=n.body||n.data||null,r=t.headers=n.headers||{},v=!!n.sync,k=!1,y;if("json"in n&&(k=!0,r.accept||r.Accept||(r.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json"),b=JSON.stringify(n.json))),t.onreadystatechange=d,t.onload=p,t.onerror=s,t.onprogress=function(){},t.ontimeout=s,t.open(f,a,!v,n.username,n.password),v||(t.withCredentials=!!n.withCredentials),!v&&n.timeout>0&&(y=setTimeout(function(){w=!0;t.abort("timeout");var n=new Error("XMLHttpRequest timeout");n.code="ETIMEDOUT";s(n)},n.timeout)),t.setRequestHeader)for(e in r)r.hasOwnProperty(e)&&t.setRequestHeader(e,r[e]);else if(n.headers&&!o(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(t.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(t),t.send(b),t}function s(){}var f=n("global/window"),h=n("once"),c=n("is-function"),l=n("parse-headers"),a=n("xtend");t.exports=i;i.XMLHttpRequest=f.XMLHttpRequest||s;i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:f.XDomainRequest;e(["get","put","post","patch","head","delete"],function(n){i[n==="delete"?"del":n]=function(t,i,f){return i=r(t,i,f),i.method=n.toUpperCase(),u(i)}})},{"global/window":19,"is-function":20,once:21,"parse-headers":24,xtend:25}],19:[function(n,t){(function(n){t.exports=typeof window!="undefined"?window:typeof n!="undefined"?n:typeof self!="undefined"?self:{}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],20:[function(n,t){function i(n){var t=r.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}t.exports=i;var r=Object.prototype.toString},{}],21:[function(n,t){function i(n){var t=!1;return function(){if(!t)return t=!0,n.apply(this,arguments)}}t.exports=i;i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0})})},{}],22:[function(n,t){function u(n,t,i){if(!s(t))throw new TypeError("iterator must be a function");arguments.length<3&&(i=this);r.call(n)==="[object Array]"?f(n,t,i):typeof n=="string"?e(n,t,i):o(n,t,i)}function f(n,t,r){for(var u=0,f=n.length;u<f;u++)i.call(n,u)&&t.call(r,n[u],u,n)}function e(n,t,i){for(var r=0,u=n.length;r<u;r++)t.call(i,n.charAt(r),r,n)}function o(n,t,r){for(var u in n)i.call(n,u)&&t.call(r,n[u],u,n)}var s=n("is-function"),r,i;t.exports=u;r=Object.prototype.toString;i=Object.prototype.hasOwnProperty},{"is-function":20}],23:[function(n,t,i){function r(n){return n.replace(/^\s*|\s*$/g,"")}i=t.exports=r;i.left=function(n){return n.replace(/^\s*/,"")};i.right=function(n){return n.replace(/\s*$/,"")}},{}],24:[function(n,t){var i=n("trim"),r=n("for-each"),u=function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.exports=function(n){if(!n)return{};var t={};return r(i(n).split("\n"),function(n){var e=n.indexOf(":"),r=i(n.slice(0,e)).toLowerCase(),f=i(n.slice(e+1));typeof t[r]=="undefined"?t[r]=f:u(t[r])?t[r].push(f):t[r]=[t[r],f]}),t}},{"for-each":22,trim:23}],25:[function(n,t,i){arguments[4][9][0].apply(i,arguments)},{dup:9}],26:[function(n,t){"use strict";function i(n){if(n===null||n===undefined)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var r=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(n){for(var t,s=i(n),e,o,f,h=1;h<arguments.length;h++){t=Object(arguments[h]);for(o in t)r.call(t,o)&&(s[o]=t[o]);if(Object.getOwnPropertySymbols)for(e=Object.getOwnPropertySymbols(t),f=0;f<e.length;f++)u.call(t,e[f])&&(s[e[f]]=t[e[f]])}return s}},{}],27:[function(n,t){var i=n("dtype"),r=n("an-array"),u=n("is-buffer"),f=[0,2,3],e=[2,1,3];t.exports=function(n,t){var c,o,s;n&&(r(n)||u(n))||(t=n||{},n=null);t=typeof t=="number"?{count:t}:t||{};var v=typeof t.type=="string"?t.type:"uint16",y=typeof t.count=="number"?t.count:1,p=t.start||0,l=t.clockwise!==!1?f:e,w=l[0],b=l[1],k=l[2],a=y*6,h=n||new(i(v))(a);for(c=0,o=0;c<a;c+=6,o+=4)s=c+p,h[s+0]=o+0,h[s+1]=o+1,h[s+2]=o+2,h[s+3]=o+w,h[s+4]=o+b,h[s+5]=o+k;return h}},{"an-array":28,dtype:29,"is-buffer":30}],28:[function(n,t){function i(n){return n.BYTES_PER_ELEMENT&&r.call(n.buffer)==="[object ArrayBuffer]"||Array.isArray(n)}var r=Object.prototype.toString;t.exports=i},{}],29:[function(n,t){t.exports=function(n){switch(n){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},{}],30:[function(n,t){t.exports=function(n){return!!(n!=null&&(n._isBuffer||n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)))}},{}],31:[function(n,t){function u(n,t,r,u){typeof r!="number"&&(r=1);typeof u!="number"&&(u="uint16");var e=!n.index&&typeof n.setIndex!="function",o=e?n.getAttribute("index"):n.index,f=i(o,t,r,u);f&&(e?n.addAttribute("index",f):n.index=f)}function f(n,t,r,u,f){if(typeof u!="number"&&(u=3),typeof f!="number"&&(f="float32"),Array.isArray(r)&&Array.isArray(r[0])&&r[0].length!==u)throw new Error("Nested vertex array has unexpected size; expected "+u+" but found "+r[0].length);var o=n.getAttribute(t),e=i(o,r,u,f);e&&n.addAttribute(t,e)}function i(n,t,i,u){return t=t||[],!n||e(n,t,i)?(t=r(t,u),n=new THREE.BufferAttribute(t,i),n.needsUpdate=!0,n):(r(t,n.array),n.needsUpdate=!0,null)}function e(n,t,i){if(n.itemSize!==i||!n.array)return!0;var r=n.array.length;return Array.isArray(t)&&Array.isArray(t[0])?r!==t.length*i:r!==t.length}var r=n("flatten-vertex-data");t.exports.attr=f;t.exports.index=u},{"flatten-vertex-data":32}],32:[function(n,t){function r(n,t,r){var u,f,s,e,c,o,h;if(!n)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(n)&&Array.isArray(n[0])){if(u=n[0].length,f=n.length*u,t&&typeof t!="string"||(t=new(i(t||"float32"))(f+r)),s=t.length-r,f!==s)throw new Error("source length "+f+" ("+u+"x"+n.length+") does not match destination length "+s);for(e=0,c=r;e<n.length;e++)for(o=0;o<u;o++)t[c++]=n[e][o]}else t&&typeof t!="string"?t.set(n,r):(h=i(t||"float32"),r===0?t=new h(n):(t=new h(n.length+r),t.set(n,r)));return t}var i=n("dtype");t.exports=r},{dtype:33}],33:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{dup:29}],34:[function(n,t){var i=n("object-assign");t.exports=function(n){n=n||{};var r=typeof n.opacity=="number"?n.opacity:1,t=typeof n.alphaTest=="number"?n.alphaTest:.0001,u=n.precision||"highp",f=n.color,e=n.map;return delete n.map,delete n.color,delete n.precision,delete n.opacity,i({uniforms:{opacity:{type:"f",value:r},map:{type:"t",value:e||new THREE.Texture},color:{type:"c",value:new THREE.Color(f)}},vertexShader:"attribute vec2 uv;\nattribute vec4 position;\nuniform mat4 projectionMatrix;\nuniform mat4 modelViewMatrix;\nvarying vec2 vUv;\nvoid main() {\nvUv = uv;\ngl_Position = projectionMatrix * modelViewMatrix * position;\n}",fragmentShader:["#ifdef GL_OES_standard_derivatives","#extension GL_OES_standard_derivatives : enable","#endif","precision "+u+" float;","uniform float opacity;","uniform vec3 color;","uniform sampler2D map;","varying vec2 vUv;","float aastep(float value) {","  #ifdef GL_OES_standard_derivatives","    float afwidth = length(vec2(dFdx(value), dFdy(value))) * 0.70710678118654757;","  #else","    float afwidth = (1.0 / 32.0) * (1.4142135623730951 / (2.0 * gl_FragCoord.w));","  #endif","  return smoothstep(0.5 - afwidth, 0.5 + afwidth, value);","}","void main() {","  vec4 texColor = texture2D(map, vUv);","  float alpha = aastep(texColor.a);","  gl_FragColor = vec4(color, opacity * alpha);",t===0?"":"  if (gl_FragColor.a < "+t+") discard;","}"].join("\n")},n)}},{"object-assign":26}],35:[function(n,t){var i=n("load-bmfont");t.exports=function(n,t){i(n.font,function(i,r){if(i)throw i;PANOLENS.Utils.TextureLoader.load(n.image,function(n){t(r,n)})})}},{"load-bmfont":10}],36:[function(n){var t=n("../"),i=n("../shaders/sdf");PANOLENS&&PANOLENS.Utils&&PANOLENS.SpriteText&&(PANOLENS.Utils.loadBMFont=function(t,i){n("./load")(t,PANOLENS.SpriteText.prototype.setBMFont.bind(PANOLENS.SpriteText.prototype,i))},PANOLENS.SpriteText.prototype.generateTextGeometry=t,PANOLENS.SpriteText.prototype.generateSDFShader=i)},{"../":1,"../shaders/sdf":34,"./load":35}],37:[function(n,t,i){(function(t){"use strict";function ot(){try{var n=new Uint8Array(1);return n.foo=function(){return 42},n.foo()===42&&typeof n.subarray=="function"&&n.subarray(1,1).byteLength===0}catch(t){return!1}}function b(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(n){return this instanceof r?(r.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=undefined),typeof n=="number")?st(this,n):typeof n=="string"?ht(this,n,arguments.length>1?arguments[1]:"utf8"):ct(this,n):arguments.length>1?new r(n,arguments[1]):new r(n)}function st(n,t){if(n=e(n,t<0?0:o(t)|0),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;i++)n[i]=0;return n}function ht(n,t,i){(typeof i!="string"||i==="")&&(i="utf8");var r=d(t,i)|0;return n=e(n,r),n.write(t,i),n}function ct(n,t){if(r.isBuffer(t))return lt(n,t);if(p(t))return at(n,t);if(t==null)throw new TypeError("must start with number, buffer, array or string");if(typeof ArrayBuffer!="undefined"){if(t.buffer instanceof ArrayBuffer)return k(n,t);if(t instanceof ArrayBuffer)return vt(n,t)}return t.length?yt(n,t):pt(n,t)}function lt(n,t){var i=o(t.length)|0;return n=e(n,i),t.copy(n,0,0,i),n}function at(n,t){var r=o(t.length)|0,i;for(n=e(n,r),i=0;i<r;i+=1)n[i]=t[i]&255;return n}function k(n,t){var r=o(t.length)|0,i;for(n=e(n,r),i=0;i<r;i+=1)n[i]=t[i]&255;return n}function vt(n,t){return r.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=r.prototype):n=k(n,new Uint8Array(t)),n}function yt(n,t){var r=o(t.length)|0,i;for(n=e(n,r),i=0;i<r;i+=1)n[i]=t[i]&255;return n}function pt(n,t){var r,u=0,i;for(t.type==="Buffer"&&p(t.data)&&(r=t.data,u=o(r.length)|0),n=e(n,u),i=0;i<u;i+=1)n[i]=r[i]&255;return n}function e(n,t){r.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=r.prototype):n.length=t;var i=t!==0&&t<=r.poolSize>>>1;return i&&(n.parent=ft),n}function o(n){if(n>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return n|0}function v(n,t){if(!(this instanceof v))return new v(n,t);var i=new r(n,t);return delete i.parent,i}function d(n,t){var i,r;if(typeof n!="string"&&(n=""+n),i=n.length,i===0)return 0;for(r=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return i;case"utf8":case"utf-8":return l(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ut(n).length;default:if(r)return l(n).length;t=(""+t).toLowerCase();r=!0}}function wt(n,t,i){var r=!1;if(t=t|0,i=i===undefined||i===Infinity?this.length:i|0,n||(n="utf8"),t<0&&(t=0),i>this.length&&(i=this.length),i<=t)return"";for(;;)switch(n){case"hex":return fi(this,t,i);case"utf8":case"utf-8":return nt(this,t,i);case"ascii":return ri(this,t,i);case"binary":return ui(this,t,i);case"base64":return ti(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ei(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase();r=!0}}function bt(n,t,i,r){var f,e,u,o;if(i=Number(i)||0,f=n.length-i,r?(r=Number(r),r>f&&(r=f)):r=f,e=t.length,e%2!=0)throw new Error("Invalid hex string");for(r>e/2&&(r=e/2),u=0;u<r;u++){if(o=parseInt(t.substr(u*2,2),16),isNaN(o))throw new Error("Invalid hex string");n[i+u]=o}return u}function kt(n,t,i,r){return a(l(t,n.length-i),n,i,r)}function g(n,t,i,r){return a(ci(t),n,i,r)}function dt(n,t,i,r){return g(n,t,i,r)}function gt(n,t,i,r){return a(ut(t),n,i,r)}function ni(n,t,i,r){return a(li(t,n.length-i),n,i,r)}function ti(n,t,i){return t===0&&i===n.length?y.fromByteArray(n):y.fromByteArray(n.slice(t,i))}function nt(n,t,i){var h,f,e,s,l,r;for(i=Math.min(n.length,i),h=[],f=t;f<i;){var o=n[f],u=null,c=o>239?4:o>223?3:o>191?2:1;if(f+c<=i)switch(c){case 1:o<128&&(u=o);break;case 2:e=n[f+1];(e&192)==128&&(r=(o&31)<<6|e&63,r>127&&(u=r));break;case 3:e=n[f+1];s=n[f+2];(e&192)==128&&(s&192)==128&&(r=(o&15)<<12|(e&63)<<6|s&63,r>2047&&(r<55296||r>57343)&&(u=r));break;case 4:e=n[f+1];s=n[f+2];l=n[f+3];(e&192)==128&&(s&192)==128&&(l&192)==128&&(r=(o&15)<<18|(e&63)<<12|(s&63)<<6|l&63,r>65535&&r<1114112&&(u=r))}u===null?(u=65533,c=1):u>65535&&(u-=65536,h.push(u>>>10&1023|55296),u=56320|u&1023);h.push(u);f+=c}return ii(h)}function ii(n){var r=n.length,i,t;if(r<=w)return String.fromCharCode.apply(String,n);for(i="",t=0;t<r;)i+=String.fromCharCode.apply(String,n.slice(t,t+=w));return i}function ri(n,t,i){var u="",r;for(i=Math.min(n.length,i),r=t;r<i;r++)u+=String.fromCharCode(n[r]&127);return u}function ui(n,t,i){var u="",r;for(i=Math.min(n.length,i),r=t;r<i;r++)u+=String.fromCharCode(n[r]);return u}function fi(n,t,i){var f=n.length,u,r;for((!t||t<0)&&(t=0),(!i||i<0||i>f)&&(i=f),u="",r=t;r<i;r++)u+=hi(n[r]);return u}function ei(n,t,i){for(var u=n.slice(t,i),f="",r=0;r<u.length;r+=2)f+=String.fromCharCode(u[r]+u[r+1]*256);return f}function u(n,t,i){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>i)throw new RangeError("Trying to access beyond buffer length");}function f(n,t,i,u,f,e){if(!r.isBuffer(n))throw new TypeError("buffer must be a Buffer instance");if(t>f||t<e)throw new RangeError("value is out of bounds");if(i+u>n.length)throw new RangeError("index out of range");}function h(n,t,i,r){t<0&&(t=65535+t+1);for(var u=0,f=Math.min(n.length-i,2);u<f;u++)n[i+u]=(t&255<<8*(r?u:1-u))>>>(r?u:1-u)*8}function c(n,t,i,r){t<0&&(t=4294967295+t+1);for(var u=0,f=Math.min(n.length-i,4);u<f;u++)n[i+u]=t>>>(r?u:3-u)*8&255}function tt(n,t,i,r,u,f){if(t>u||t<f)throw new RangeError("value is out of bounds");if(i+r>n.length)throw new RangeError("index out of range");if(i<0)throw new RangeError("index out of range");}function it(n,t,i,r,u){return u||tt(n,t,i,4,34028234663852886e22,-34028234663852886e22),s.write(n,t,i,r,23,4),i+4}function rt(n,t,i,r,u){return u||tt(n,t,i,8,17976931348623157e292,-17976931348623157e292),s.write(n,t,i,r,52,8),i+8}function oi(n){if(n=si(n).replace(et,""),n.length<2)return"";while(n.length%4!=0)n=n+"=";return n}function si(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function hi(n){return n<16?"0"+n.toString(16):n.toString(16)}function l(n,t){var f;t=t||Infinity;var i,e=n.length,u=null,r=[];for(f=0;f<e;f++){if(i=n.charCodeAt(f),i>55295&&i<57344){if(!u){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}else if(f+1===e){(t-=3)>-1&&r.push(239,191,189);continue}u=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189);u=i;continue}i=(u-55296<<10|i-56320)+65536}else u&&(t-=3)>-1&&r.push(239,191,189);if(u=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,i&63|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point");}return r}function ci(n){for(var i=[],t=0;t<n.length;t++)i.push(n.charCodeAt(t)&255);return i}function li(n,t){for(var i,f,e,r=[],u=0;u<n.length;u++){if((t-=2)<0)break;i=n.charCodeAt(u);f=i>>8;e=i%256;r.push(e);r.push(f)}return r}function ut(n){return y.toByteArray(oi(n))}function a(n,t,i,r){for(var u=0;u<r;u++){if(u+i>=t.length||u>=n.length)break;t[u+i]=n[u]}return u}var y=n("base64-js"),s=n("ieee754"),p=n("isarray"),ft,w,et;i.Buffer=r;i.SlowBuffer=v;i.INSPECT_MAX_BYTES=50;r.poolSize=8192;ft={};r.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:ot();r.TYPED_ARRAY_SUPPORT?(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array):(r.prototype.length=undefined,r.prototype.parent=undefined);r.isBuffer=function(n){return!!(n!=null&&n._isBuffer)};r.compare=function(n,t){if(!r.isBuffer(n)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(n===t)return 0;for(var u=n.length,f=t.length,i=0,e=Math.min(u,f);i<e;){if(n[i]!==t[i])break;++i}return(i!==e&&(u=n[i],f=t[i]),u<f)?-1:f<u?1:0};r.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};r.concat=function(n,t){var i,u,f,e;if(!p(n))throw new TypeError("list argument must be an Array of Buffers.");if(n.length===0)return new r(0);if(t===undefined)for(t=0,i=0;i<n.length;i++)t+=n[i].length;for(u=new r(t),f=0,i=0;i<n.length;i++)e=n[i],e.copy(u,f),f+=e.length;return u};r.byteLength=d;r.prototype._isBuffer=!0;r.prototype.toString=function(){var n=this.length|0;return n===0?"":arguments.length===0?nt(this,0,n):wt.apply(this,arguments)};r.prototype.equals=function(n){if(!r.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:r.compare(this,n)===0};r.prototype.inspect=function(){var n="",t=i.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(n+=" ... ")),"<Buffer "+n+">"};r.prototype.compare=function(n){if(!r.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?0:r.compare(this,n)};r.prototype.indexOf=function(n,t){function i(n,t,i){for(var r=-1,u=0;i+u<n.length;u++)if(n[i+u]===t[r===-1?0:u-r]){if(r===-1&&(r=u),u-r+1===t.length)return i+r}else r=-1;return-1}if((t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t>>=0,this.length===0)||t>=this.length)return-1;if(t<0&&(t=Math.max(this.length+t,0)),typeof n=="string")return n.length===0?-1:String.prototype.indexOf.call(this,n,t);if(r.isBuffer(n))return i(this,n,t);if(typeof n=="number")return r.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"?Uint8Array.prototype.indexOf.call(this,n,t):i(this,[n],t);throw new TypeError("val must be string, number or Buffer");};r.prototype.write=function(n,t,i,r){var e,u,f;if(t===undefined?(r="utf8",i=this.length,t=0):i===undefined&&typeof t=="string"?(r=t,i=this.length,t=0):isFinite(t)?(t=t|0,isFinite(i)?(i=i|0,r===undefined&&(r="utf8")):(r=i,i=undefined)):(e=r,r=t,t=i|0,i=e),u=this.length-t,(i===undefined||i>u)&&(i=u),n.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");for(r||(r="utf8"),f=!1;;)switch(r){case"hex":return bt(this,n,t,i);case"utf8":case"utf-8":return kt(this,n,t,i);case"ascii":return g(this,n,t,i);case"binary":return dt(this,n,t,i);case"base64":return gt(this,n,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ni(this,n,t,i);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase();f=!0}};r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};w=4096;r.prototype.slice=function(n,t){var i=this.length,u,e,f;if(n=~~n,t=t===undefined?i:~~t,n<0?(n+=i,n<0&&(n=0)):n>i&&(n=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<n&&(t=n),r.TYPED_ARRAY_SUPPORT)u=this.subarray(n,t),u.__proto__=r.prototype;else for(e=t-n,u=new r(e,undefined),f=0;f<e;f++)u[f]=this[f+n];return u.length&&(u.parent=this.parent||this),u};r.prototype.readUIntLE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n],f=1,e=0;++e<t&&(f*=256);)r+=this[n+e]*f;return r};r.prototype.readUIntBE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n+--t],f=1;t>0&&(f*=256);)r+=this[n+--t]*f;return r};r.prototype.readUInt8=function(n,t){return t||u(n,1,this.length),this[n]};r.prototype.readUInt16LE=function(n,t){return t||u(n,2,this.length),this[n]|this[n+1]<<8};r.prototype.readUInt16BE=function(n,t){return t||u(n,2,this.length),this[n]<<8|this[n+1]};r.prototype.readUInt32LE=function(n,t){return t||u(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};r.prototype.readUInt32BE=function(n,t){return t||u(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};r.prototype.readIntLE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var r=this[n],f=1,e=0;++e<t&&(f*=256);)r+=this[n+e]*f;return f*=128,r>=f&&(r-=Math.pow(2,8*t)),r};r.prototype.readIntBE=function(n,t,i){n=n|0;t=t|0;i||u(n,t,this.length);for(var e=t,r=1,f=this[n+--e];e>0&&(r*=256);)f+=this[n+--e]*r;return r*=128,f>=r&&(f-=Math.pow(2,8*t)),f};r.prototype.readInt8=function(n,t){return(t||u(n,1,this.length),!(this[n]&128))?this[n]:(256-this[n])*-1};r.prototype.readInt16LE=function(n,t){t||u(n,2,this.length);var i=this[n]|this[n+1]<<8;return i&32768?i|4294901760:i};r.prototype.readInt16BE=function(n,t){t||u(n,2,this.length);var i=this[n+1]|this[n]<<8;return i&32768?i|4294901760:i};r.prototype.readInt32LE=function(n,t){return t||u(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};r.prototype.readInt32BE=function(n,t){return t||u(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};r.prototype.readFloatLE=function(n,t){return t||u(n,4,this.length),s.read(this,n,!0,23,4)};r.prototype.readFloatBE=function(n,t){return t||u(n,4,this.length),s.read(this,n,!1,23,4)};r.prototype.readDoubleLE=function(n,t){return t||u(n,8,this.length),s.read(this,n,!0,52,8)};r.prototype.readDoubleBE=function(n,t){return t||u(n,8,this.length),s.read(this,n,!1,52,8)};r.prototype.writeUIntLE=function(n,t,i,r){n=+n;t=t|0;i=i|0;r||f(this,n,t,i,Math.pow(2,8*i),0);var u=1,e=0;for(this[t]=n&255;++e<i&&(u*=256);)this[t+e]=n/u&255;return t+i};r.prototype.writeUIntBE=function(n,t,i,r){n=+n;t=t|0;i=i|0;r||f(this,n,t,i,Math.pow(2,8*i),0);var u=i-1,e=1;for(this[t+u]=n&255;--u>=0&&(e*=256);)this[t+u]=n/e&255;return t+i};r.prototype.writeUInt8=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[t]=n&255,t+1};r.prototype.writeUInt16LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[t+1]=n>>>8):h(this,n,t,!0),t+2};r.prototype.writeUInt16BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=n&255):h(this,n,t,!1),t+2};r.prototype.writeUInt32LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=n>>>24,this[t+2]=n>>>16,this[t+1]=n>>>8,this[t]=n&255):c(this,n,t,!0),t+4};r.prototype.writeUInt32BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=n&255):c(this,n,t,!1),t+4};r.prototype.writeIntLE=function(n,t,i,r){var u;n=+n;t=t|0;r||(u=Math.pow(2,8*i-1),f(this,n,t,i,u-1,-u));var e=0,o=1,s=n<0?1:0;for(this[t]=n&255;++e<i&&(o*=256);)this[t+e]=(n/o>>0)-s&255;return t+i};r.prototype.writeIntBE=function(n,t,i,r){var u;n=+n;t=t|0;r||(u=Math.pow(2,8*i-1),f(this,n,t,i,u-1,-u));var e=i-1,o=1,s=n<0?1:0;for(this[t+e]=n&255;--e>=0&&(o*=256);)this[t+e]=(n/o>>0)-s&255;return t+i};r.prototype.writeInt8=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[t]=n&255,t+1};r.prototype.writeInt16LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[t+1]=n>>>8):h(this,n,t,!0),t+2};r.prototype.writeInt16BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>8,this[t+1]=n&255):h(this,n,t,!1),t+2};r.prototype.writeInt32LE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=n&255,this[t+1]=n>>>8,this[t+2]=n>>>16,this[t+3]=n>>>24):c(this,n,t,!0),t+4};r.prototype.writeInt32BE=function(n,t,i){return n=+n,t=t|0,i||f(this,n,t,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),r.TYPED_ARRAY_SUPPORT?(this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=n&255):c(this,n,t,!1),t+4};r.prototype.writeFloatLE=function(n,t,i){return it(this,n,t,!0,i)};r.prototype.writeFloatBE=function(n,t,i){return it(this,n,t,!1,i)};r.prototype.writeDoubleLE=function(n,t,i){return rt(this,n,t,!0,i)};r.prototype.writeDoubleBE=function(n,t,i){return rt(this,n,t,!1,i)};r.prototype.copy=function(n,t,i,u){if((i||(i=0),u||u===0||(u=this.length),t>=n.length&&(t=n.length),t||(t=0),u>0&&u<i&&(u=i),u===i)||n.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length);n.length-t<u-i&&(u=n.length-t+i);var e=u-i,f;if(this===n&&i<t&&t<u)for(f=e-1;f>=0;f--)n[f+t]=this[f+i];else if(e<1e3||!r.TYPED_ARRAY_SUPPORT)for(f=0;f<e;f++)n[f+t]=this[f+i];else Uint8Array.prototype.set.call(n,this.subarray(i,i+e),t);return e};r.prototype.fill=function(n,t,i){var r,u,f;if(n||(n=0),t||(t=0),i||(i=this.length),i<t)throw new RangeError("end < start");if(i!==t&&this.length!==0){if(t<0||t>=this.length)throw new RangeError("start out of bounds");if(i<0||i>this.length)throw new RangeError("end out of bounds");if(typeof n=="number")for(r=t;r<i;r++)this[r]=n;else for(u=l(n.toString()),f=u.length,r=t;r<i;r++)this[r]=u[r%f];return this}};et=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":38,ieee754:39,isarray:40}],38:[function(n,t,i){(function(n){"use strict";function t(n){var t=n.charCodeAt(0);return t===h||t===l?62:t===c||t===a?63:t<i?-1:t<i+10?t-i+26+26:t<u+26?t-u:t<r+26?t-r+26:void 0}function f(n){function u(n){e[l++]=n}var i,h,c,r,f,e,o,l;if(n.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");for(o=n.length,f=n.charAt(o-2)==="="?2:n.charAt(o-1)==="="?1:0,e=new s(n.length*3/4-f),c=f>0?n.length-4:n.length,l=0,i=0,h=0;i<c;i+=4,h+=3)r=t(n.charAt(i))<<18|t(n.charAt(i+1))<<12|t(n.charAt(i+2))<<6|t(n.charAt(i+3)),u((r&16711680)>>16),u((r&65280)>>8),u(r&255);return f===2?(r=t(n.charAt(i))<<2|t(n.charAt(i+1))>>4,u(r&255)):f===1&&(r=t(n.charAt(i))<<10|t(n.charAt(i+1))<<4|t(n.charAt(i+2))>>2,u(r>>8&255),u(r&255)),e}function e(n){function t(n){return o.charAt(n)}function e(n){return t(n>>18&63)+t(n>>12&63)+t(n>>6&63)+t(n&63)}for(var f=n.length%3,i="",r,u=0,s=n.length-f;u<s;u+=3)r=(n[u]<<16)+(n[u+1]<<8)+n[u+2],i+=e(r);switch(f){case 1:r=n[n.length-1];i+=t(r>>2);i+=t(r<<4&63);i+="==";break;case 2:r=(n[n.length-2]<<8)+n[n.length-1];i+=t(r>>10);i+=t(r>>4&63);i+=t(r<<2&63);i+="="}return i}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array!="undefined"?Uint8Array:Array,h="+".charCodeAt(0),c="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),u="A".charCodeAt(0),l="-".charCodeAt(0),a="_".charCodeAt(0);n.toByteArray=f;n.fromByteArray=e})(typeof i=="undefined"?this.base64js={}:i)},{}],39:[function(n,t,i){i.read=function(n,t,i,r,u){var f,o,l=u*8-r-1,a=(1<<l)-1,v=a>>1,e=-7,s=i?u-1:0,c=i?-1:1,h=n[t+s];for(s+=c,f=h&(1<<-e)-1,h>>=-e,e+=l;e>0;f=f*256+n[t+s],s+=c,e-=8);for(o=f&(1<<-e)-1,f>>=-e,e+=r;e>0;o=o*256+n[t+s],s+=c,e-=8);if(f===0)f=1-v;else{if(f===a)return o?NaN:(h?-1:1)*Infinity;o=o+Math.pow(2,r);f=f-v}return(h?-1:1)*o*Math.pow(2,f-r)};i.write=function(n,t,i,r,u,f){var e,o,s,l=f*8-u-1,a=(1<<l)-1,h=a>>1,y=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:f-1,v=r?1:-1,p=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(o=isNaN(t)?1:0,e=a):(e=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-e))<1&&(e--,s*=2),t+=e+h>=1?y/s:y*Math.pow(2,1-h),t*s>=2&&(e++,s/=2),e+h>=a?(o=0,e=a):e+h>=1?(o=(t*s-1)*Math.pow(2,u),e=e+h):(o=t*Math.pow(2,h-1)*Math.pow(2,u),e=0));u>=8;n[i+c]=o&255,c+=v,o/=256,u-=8);for(e=e<<u|o,l+=u;l>0;n[i+c]=e&255,c+=v,e/=256,l-=8);n[i+c-v]|=p*128}},{}],40:[function(n,t){var i={}.toString;t.exports=Array.isArray||function(n){return i.call(n)=="[object Array]"}},{}]},{},[36]);!function(){"use strict";function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i;this.options=n.Adapter.extend({},n.defaults,r);this.element=this.options.element;this.adapter=new n.Adapter(this.element);this.callback=r.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=n.Context.findOrCreateByElement(this.options.context);n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]);this.group.add(this);this.context.add(this);t[this.key]=this;i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)};n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)};n.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete t[this.key]};n.prototype.disable=function(){return this.enabled=!1,this};n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};n.prototype.next=function(){return this.group.next(this)};n.prototype.previous=function(){return this.group.previous(this)};n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;f>i;i++)r[i][n]()};n.destroyAll=function(){n.invokeAll("destroy")};n.disableAll=function(){n.invokeAll("disable")};n.enableAll=function(){n.Context.refreshAll();for(var i in t)t[i].enabled=!0;return this};n.refreshAll=function(){n.Context.refreshAll()};n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.viewportWidth=function(){return document.documentElement.clientWidth};n.adapters=[];n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};window.Waypoint=n}(),function(){"use strict";function f(n){window.setTimeout(n,1e3/60)}function n(u){this.element=u;this.Adapter=t.Adapter;this.adapter=new this.Adapter(u);this.key="waypoint-context-"+r;this.didScroll=!1;this.didResize=!1;this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()};this.waypoints={vertical:{},horizontal:{}};u.waypointContextKey=this.key;i[u.waypointContextKey]=this;r+=1;t.windowContext||(t.windowContext=!0,t.windowContext=new n(window));this.createThrottledScrollHandler();this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n;this.refresh()};n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),r=this.element==this.element.window;n&&t&&!r&&(this.adapter.off(".waypoints"),delete i[this.key])};n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize();n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})};n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll();n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})};n.prototype.handleResize=function(){t.Context.refreshAll()};n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,n,e;for(r in i){var t=i[r],h=t.newScroll>t.oldScroll,c=h?t.forward:t.backward;for(f in this.waypoints[r])if(n=this.waypoints[r][f],null!==n.triggerPoint){var o=t.oldScroll<n.triggerPoint,s=t.newScroll>=n.triggerPoint,l=o&&s,a=!o&&!s;(l||a)&&(n.queueTrigger(c),u[n.group.id]=n.group)}}for(e in u)u[e].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}};n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()};n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key];this.checkEmpty()};n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;u>n;n++)t[n].destroy()};n.prototype.refresh=function(){var o,u=this.element==this.element.window,l=u?void 0:this.adapter.offset(),f={},e,i,a;this.handleScroll();o={horizontal:{contextOffset:u?0:l.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:l.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(e in o){i=o[e];for(a in this.waypoints[e]){var v,s,h,y,p,n=this.waypoints[e][a],r=n.options.offset,w=n.triggerPoint,b=0,c=null==w;n.element!==n.element.window&&(b=n.adapter.offset()[i.offsetProp]);"function"==typeof r?r=r.apply(n):"string"==typeof r&&(r=parseFloat(r),n.options.offset.indexOf("%")>-1&&(r=Math.ceil(i.contextDimension*r/100)));v=i.contextScroll-i.contextOffset;n.triggerPoint=Math.floor(b+v-r);s=w<i.oldScroll;h=n.triggerPoint>=i.oldScroll;y=s&&h;p=!s&&!h;!c&&y?(n.queueTrigger(i.backward),f[n.group.id]=n.group):!c&&p?(n.queueTrigger(i.forward),f[n.group.id]=n.group):c&&i.oldScroll>=n.triggerPoint&&(n.queueTrigger(i.forward),f[n.group.id]=n.group)}}return t.requestAnimationFrame(function(){for(var n in f)f[n].flushTriggers()}),this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var n in i)i[n].refresh()};n.findByElement=function(n){return i[n.waypointContextKey]};window.onload=function(){u&&u();n.refreshAll()};t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)};t.Context=n}(),function(){"use strict";function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name;this.axis=n.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)};n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e="up"===n||"left"===n,t.sort(e?u:i),r=0,o=t.length;o>r;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()};n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]};n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null};n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)};n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)};n.prototype.first=function(){return this.waypoints[0]};n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)};t.Group=n}(),function(){"use strict";function n(n){this.$element=t(n)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){n.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}});t.each(["extend","inArray","isEmptyObject"],function(i,r){n[r]=t[r]});i.adapters.push({name:"jquery",Adapter:n});i.Adapter=n}(),function(){"use strict";function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});"string"==typeof u.context&&(u.context=n(this).closest(u.context)[0]);r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery));window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}(),function(n){App.Common.init();var t=n("body").data("jsload");App[t]!=undefined&&App[t].init!=undefined&&App[t].init()}(jQuery);Dropdown=React.createClass({displayName:"Dropdown",getInitialState:function(){return{show:!1}},componentDidMount:function(){var n=this;$(document).bind("focusout click",function(t){n.state.show==!0&&($(t.target).hasClass("dp-day")&&n.setState({show:!1}),$(t.target).parents(".dropdown").length==0&&n.setState({show:!1}))})},onButtonClick:function(){this.setState({show:!this.state.show})},render:function(){var n="dropdown",t;return this.state.show&&(n+=" open"),t=this.props.label.length==0?React.createElement("button",{onClick:this.onButtonClick,className:"empty"},"Please select"):React.createElement("button",{onClick:this.onButtonClick},this.props.label),React.createElement("div",{className:n},t,React.createElement("div",{className:"dropdown-container"},this.props.children))}});Number.prototype.formatMoney=function(n,t,i){var u=this,n=isNaN(n=Math.abs(n))?0:n,t=t==undefined?".":t,i=i==undefined?",":i,e=u<0?"-":"",f=parseInt(u=Math.abs(+u||0).toFixed(n))+"",r=(r=f.length)>3?r%3:0;return e+(r?f.substr(0,r)+i:"")+f.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?t+Math.abs(u-f).toFixed(n).slice(2):"")};dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(n,t){return dateFormat(this,n,t)},function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t(require("React")):typeof define=="function"&&define.amd?define(["React"],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.Autosuggest=t(require("React")):n.Autosuggest=t(n.React)}(this,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";n.exports=i(1).default},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function e(){}function a(n){var i={},t;for(t in n)switch(t){case"suggestionsContainer":i.itemsContainer=n[t];break;case"suggestion":i.item=n[t];break;case"suggestionFocused":i.itemFocused=n[t];break;case"sectionSuggestionsContainer":i.sectionItemsContainer=n[t];break;default:i[t]=n[t]}return i}var o,u;Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=i(2),s=f(r),y=i(3),p=i(14),w=i(25),b=f(w),k=i(26),d=f(k);o={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",suggestionsContainer:"react-autosuggest__suggestions-container",suggestion:"react-autosuggest__suggestion",suggestionFocused:"react-autosuggest__suggestion--focused",sectionContainer:"react-autosuggest__section-container",sectionTitle:"react-autosuggest__section-title",sectionSuggestionsContainer:"react-autosuggest__section-suggestions-container"};u=function(n){function t(){h(this,t);var n=c(this,Object.getPrototypeOf(t).call(this));return n.store=y.createStore(b.default,{isFocused:!1,isCollapsed:!0,focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,lastAction:null}),n.saveInput=n.saveInput.bind(n),n}return l(t,n),v(t,[{key:"saveInput",value:function(n){this.input=n}},{key:"render",value:function(){var n=this.props,t=n.multiSection,i=n.shouldRenderSuggestions,r=n.suggestions,u=n.onSuggestionsUpdateRequested,f=n.getSuggestionValue,e=n.renderSuggestion,o=n.renderSectionTitle,h=n.getSectionSuggestions,c=n.inputProps,l=n.onSuggestionSelected,v=n.focusInputOnSuggestionClick,y=n.theme,w=n.id;return s.default.createElement(p.Provider,{store:this.store},s.default.createElement(d.default,{multiSection:t,shouldRenderSuggestions:i,suggestions:r,onSuggestionsUpdateRequested:u,getSuggestionValue:f,renderSuggestion:e,renderSectionTitle:o,getSectionSuggestions:h,inputProps:c,onSuggestionSelected:l,focusInputOnSuggestionClick:v,theme:a(y),id:w,inputRef:this.saveInput}))}}]),t}(r.Component);u.propTypes={suggestions:r.PropTypes.array.isRequired,onSuggestionsUpdateRequested:r.PropTypes.func,getSuggestionValue:r.PropTypes.func.isRequired,renderSuggestion:r.PropTypes.func.isRequired,inputProps:function(n,t){var i=n[t];if(!i.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!i.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.");},shouldRenderSuggestions:r.PropTypes.func,onSuggestionSelected:r.PropTypes.func,multiSection:r.PropTypes.bool,renderSectionTitle:r.PropTypes.func,getSectionSuggestions:r.PropTypes.func,focusInputOnSuggestionClick:r.PropTypes.bool,theme:r.PropTypes.object,id:r.PropTypes.string};u.defaultProps={onSuggestionsUpdateRequested:e,shouldRenderSuggestions:function(n){return n.trim().length>0},onSuggestionSelected:e,multiSection:!1,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided");},getSectionSuggestions:function(){throw new Error("`getSectionSuggestions` must be provided");},focusInputOnSuggestionClick:!0,theme:o,id:"1"};t.default=u},function(t){t.exports=n},function(n,t,i){(function(n){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(){}t.__esModule=!0;t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=undefined;var f=i(5),e=r(f),o=i(9),s=r(o),h=i(11),c=r(h),l=i(12),a=r(l),v=i(13),y=r(v),p=i(10),w=r(p);n.env.NODE_ENV!=="production"&&typeof u.name=="string"&&u.name!=="isCrushed"&&w["default"]("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.");t.createStore=e["default"];t.combineReducers=s["default"];t.bindActionCreators=c["default"];t.applyMiddleware=a["default"];t.compose=y["default"]}).call(t,i(4))},function(n){function h(){f=!1;u.length?i=u.concat(i):e=-1;i.length&&o()}function o(){var t,n;if(!f){for(t=setTimeout(h),f=!0,n=i.length;n;){for(u=i,i=[];++e<n;)u&&u[e].run();e=-1;n=i.length}u=null;f=!1;clearTimeout(t)}}function s(n,t){this.fun=n;this.array=t}function r(){}var t=n.exports={},i=[],f=!1,u,e=-1;t.nextTick=function(n){var r=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)r[t-1]=arguments[t];i.push(new s(n,r));i.length!==1||f||setTimeout(o,0)};s.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=r;t.addListener=r;t.once=r;t.off=r;t.removeListener=r;t.removeAllListeners=r;t.emit=r;t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(n,t,i){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function u(n,t,i){function l(){f===o&&(f=o.slice())}function v(){return h}function y(n){if(typeof n!="function")throw new Error("Expected listener to be a function.");var t=!0;return l(),f.push(n),function(){if(t){t=!1;l();var i=f.indexOf(n);f.splice(i,1)}}}function s(n){var i,t;if(!e["default"](n))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof n.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0;h=a(h,n)}finally{c=!1}for(i=o=f,t=0;t<i.length;t++)i[t]();return n}function p(n){if(typeof n!="function")throw new Error("Expected the nextReducer to be a function.");a=n;s({type:r.INIT})}if(typeof t=="function"&&typeof i=="undefined"&&(i=t,t=undefined),typeof i!="undefined"){if(typeof i!="function")throw new Error("Expected the enhancer to be a function.");return i(u)(n,t)}if(typeof n!="function")throw new Error("Expected the reducer to be a function.");var a=n,h=t,o=[],f=o,c=!1;return s({type:r.INIT}),{dispatch:s,subscribe:y,getState:v,replaceReducer:p}}var f,e,r;t.__esModule=!0;t.ActionTypes=undefined;t["default"]=u;f=i(6);e=o(f);r=t.ActionTypes={INIT:"@@redux/INIT"}},function(n,t,i){function f(n){var i,t;return!o(n)||c.call(n)!=s||e(n)?!1:(i=r,typeof n.constructor=="function"&&(i=l(n)),i===null)?!0:(t=i.constructor,typeof t=="function"&&t instanceof t&&u.call(t)==h)}var e=i(7),o=i(8),s="[object Object]",r=Object.prototype,u=Function.prototype.toString,h=u.call(Object),c=r.toString,l=Object.getPrototypeOf;n.exports=f},function(n){function t(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}n.exports=t},function(n){function t(n){return!!n&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"}n.exports=t},function(n,t,i){(function(n){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}function f(n,t){var i=t&&t.type,r=i&&'"'+i.toString()+'"'||"an action";return'Reducer "'+n+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function e(n,t,i){var f=Object.keys(t),e=i&&i.type===r.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer",u;return f.length===0?"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.":c["default"](n)?(u=Object.keys(n).filter(function(n){return!t.hasOwnProperty(n)}),u.length>0?"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+e+". ")+"Expected to find one of the known reducer keys instead: "+('"'+f.join('", "')+'". Unexpected keys will be ignored.'):void 0):"The "+e+' has unexpected type of "'+{}.toString.call(n).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+f.join('", "')+'"')}function o(n){Object.keys(n).forEach(function(t){var i=n[t],f=i(undefined,{type:r.ActionTypes.INIT}),u;if(typeof f=="undefined")throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(u="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join("."),typeof i(undefined,{type:u})=="undefined")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+r.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.");})}function s(t){for(var c=Object.keys(t),i={},r,u,s,h=0;h<c.length;h++)r=c[h],typeof t[r]=="function"&&(i[r]=t[r]);u=Object.keys(i);try{o(i)}catch(l){s=l}return function(){var h=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],c=arguments[1],l,t,v,r,p;if(s)throw s;for(n.env.NODE_ENV!=="production"&&(l=e(h,i,c),l&&a["default"](l)),t=!1,v={},r=0;r<u.length;r++){var o=u[r],b=i[o],w=h[o],y=b(w,c);if(typeof y=="undefined"){p=f(o,c);throw new Error(p);}v[o]=y;t=t||y!==w}return t?v:h}}t.__esModule=!0;t["default"]=s;var r=i(5),h=i(6),c=u(h),l=i(10),a=u(l)}).call(t,i(4))},function(n,t){"use strict";function i(n){typeof console!="undefined"&&typeof console.error=="function"&&console.error(n);try{throw new Error(n);}catch(t){}}t.__esModule=!0;t["default"]=i},function(n,t){"use strict";function i(n,t){return function(){return t(n.apply(undefined,arguments))}}function r(n,t){var u,f,r,e,o;if(typeof n=="function")return i(n,t);if((typeof n=="undefined"?"undefined":_typeof(n))!=="object"||n===null)throw new Error("bindActionCreators expected an object or a function, instead received "+(n===null?"null":typeof n=="undefined"?"undefined":_typeof(n))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(u=Object.keys(n),f={},r=0;r<u.length;r++)e=u[r],o=n[e],typeof o=="function"&&(f[e]=i(o,t));return f}t.__esModule=!0;t["default"]=r},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}function e(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return function(n){return function(t,r,f){var e=n(t,r,f),s=e.dispatch,h=[],c={getState:e.getState,dispatch:function(n){return s(n)}};return h=i.map(function(n){return n(c)}),s=u["default"].apply(undefined,h)(e.dispatch),o({},e,{dispatch:s})}}}var o=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},r,u;t.__esModule=!0;t["default"]=e;r=i(13);u=f(r)},function(n,t){"use strict";function i(){for(var i=arguments.length,n=Array(i),t=0;t<i;t++)n[t]=arguments[t];return function(){if(n.length===0)return arguments.length<=0?undefined:arguments[0];var t=n[n.length-1],i=n.slice(0,-1);return i.reduceRight(function(n,t){return t(n)},t.apply(undefined,arguments))}}t.__esModule=!0;t["default"]=i},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}t.__esModule=!0;t.connect=t.Provider=undefined;var u=i(15),f=r(u),e=i(17),o=r(e);t.Provider=f["default"];t.connect=o["default"]},function(n,t,i){(function(n){"use strict";function o(n){return n&&n.__esModule?n:{"default":n}}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function c(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function l(){u||(u=!0,typeof console!="undefined"&&typeof console.error=="function"&&console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var u,r;t.__esModule=!0;t["default"]=undefined;var f=i(2),a=i(16),e=o(a);u=!1;r=function(n){function t(i,r){s(this,t);var u=h(this,n.call(this,i,r));return u.store=i.store,u}return c(t,n),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var n=this.props.children;return f.Children.only(n)},t}(f.Component);t["default"]=r;n.env.NODE_ENV!=="production"&&(r.prototype.componentWillReceiveProps=function(n){var t=this.store,i=n.store;t!==i&&l()});r.propTypes={store:e["default"].isRequired,children:f.PropTypes.element.isRequired};r.childContextTypes={store:e["default"].isRequired}}).call(t,i(4))},function(n,t,i){"use strict";t.__esModule=!0;var r=i(2);t["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(n,t,i){(function(n){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function y(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function p(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function w(n){return n.displayName||n.name||"Component"}function u(n,t){return e["default"](s["default"](n),"`%sToProps` must return an object. Instead received %s.",t?"mapDispatch":"mapState",n),n}function b(t,i,r){function ht(n,t,i){var r=it(n,t,i);return e["default"](s["default"](r),"`mergeProps` must return an object. Instead received %s.",r),r}var d=arguments.length<=3||arguments[3]===undefined?{}:arguments[3],ct=Boolean(t),g=t||ft,tt=s["default"](i)?nt["default"](i):i||et,it=r||a,lt=it!==a,ut=d.pure,b=ut===undefined?!0:ut,ot=d.withRef,st=ot===undefined?!1:ot,k=c++;return function(t){var i=function(n){function i(t,r){var u,f;return v(this,i),u=y(this,n.call(this,t,r)),u.version=k,u.store=t.store||r.store,e["default"](u.store,'Could not find "store" in either the context or '+('props of "'+u.constructor.displayName+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+u.constructor.displayName+'".')),f=u.store.getState(),u.state={storeState:f},u.clearCache(),u}return p(i,n),i.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},i.prototype.computeStateProps=function(n,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(n,t);var i=n.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(i,t):this.finalMapStateToProps(i);return u(r)},i.prototype.configureFinalMapState=function(n,t){var i=g(n.getState(),t),r=typeof i=="function";return this.finalMapStateToProps=r?i:g,this.doStatePropsDependOnOwnProps=this.finalMapStateToProps.length!==1,r?this.computeStateProps(n,t):u(i)},i.prototype.computeDispatchProps=function(n,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(n,t);var i=n.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(i,t):this.finalMapDispatchToProps(i);return u(r,!0)},i.prototype.configureFinalMapDispatch=function(n,t){var i=tt(n.dispatch,t),r=typeof i=="function";return this.finalMapDispatchToProps=r?i:tt,this.doDispatchPropsDependOnOwnProps=this.finalMapDispatchToProps.length!==1,r?this.computeDispatchProps(n,t):u(i,!0)},i.prototype.updateStatePropsIfNeeded=function(){var n=this.computeStateProps(this.store,this.props);return this.stateProps&&f["default"](n,this.stateProps)?!1:(this.stateProps=n,!0)},i.prototype.updateDispatchPropsIfNeeded=function(){var n=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&f["default"](n,this.dispatchProps)?!1:(this.dispatchProps=n,!0)},i.prototype.updateMergedPropsIfNeeded=function(){var n=ht(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&lt&&f["default"](n,this.mergedProps)?!1:(this.mergedProps=n,!0)},i.prototype.isSubscribed=function(){return typeof this.unsubscribe=="function"},i.prototype.trySubscribe=function(){ct&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},i.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},i.prototype.componentDidMount=function(){this.trySubscribe()},i.prototype.componentWillReceiveProps=function(n){b&&f["default"](n,this.props)||(this.haveOwnPropsChanged=!0)},i.prototype.componentWillUnmount=function(){this.tryUnsubscribe();this.clearCache()},i.prototype.clearCache=function(){this.dispatchProps=null;this.stateProps=null;this.mergedProps=null;this.haveOwnPropsChanged=!0;this.hasStoreStateChanged=!0;this.renderedElement=null;this.finalMapDispatchToProps=null;this.finalMapStateToProps=null},i.prototype.handleChange=function(){if(this.unsubscribe){var t=this.state.storeState,n=this.store.getState();b&&t===n||(this.hasStoreStateChanged=!0,this.setState({storeState:n}))}},i.prototype.getWrappedInstance=function(){return e["default"](st,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},i.prototype.render=function(){var n=this.haveOwnPropsChanged,c=this.hasStoreStateChanged,i=this.renderedElement,r,u,f,e,s;return(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,r=!0,u=!0,b&&i&&(r=c||n&&this.doStatePropsDependOnOwnProps,u=n&&this.doDispatchPropsDependOnOwnProps),f=!1,e=!1,r&&(f=this.updateStatePropsIfNeeded()),u&&(e=this.updateDispatchPropsIfNeeded()),s=!0,s=f||e||n?this.updateMergedPropsIfNeeded():!1,!s&&i)?i:(this.renderedElement=st?o.createElement(t,h({},this.mergedProps,{ref:"wrappedInstance"})):o.createElement(t,this.mergedProps),this.renderedElement)},i}(o.Component);return i.displayName="Connect("+w(t)+")",i.WrappedComponent=t,i.contextTypes={store:l["default"]},i.propTypes={store:l["default"]},n.env.NODE_ENV!=="production"&&(i.prototype.componentWillUpdate=function(){this.version!==k&&(this.version=k,this.trySubscribe(),this.clearCache())}),rt["default"](i,t)}}var h=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},c;t.__esModule=!0;t["default"]=b;var o=i(2),k=i(16),l=r(k),d=i(18),f=r(d),g=i(19),nt=r(g),tt=i(20),s=r(tt),it=i(23),rt=r(it),ut=i(24),e=r(ut),ft=function(){return{}},et=function(n){return{dispatch:n}},a=function(n,t,i){return h({},i,n,t)};c=0}).call(t,i(4))},function(n,t){"use strict";function i(n,t){var i,u,f,r;if(n===t)return!0;if(i=Object.keys(n),u=Object.keys(t),i.length!==u.length)return!1;for(f=Object.prototype.hasOwnProperty,r=0;r<i.length;r++)if(!f.call(t,i[r])||n[i[r]]!==t[i[r]])return!1;return!0}t.__esModule=!0;t["default"]=i},function(n,t,i){"use strict";function r(n){return function(t){return u.bindActionCreators(n,t)}}t.__esModule=!0;t["default"]=r;var u=i(3)},function(n,t,i){function f(n){var i,t;return!o(n)||c.call(n)!=s||e(n)?!1:(i=r,typeof n.constructor=="function"&&(i=l(n)),i===null)?!0:(t=i.constructor,typeof t=="function"&&t instanceof t&&u.call(t)==h)}var e=i(21),o=i(22),s="[object Object]",r=Object.prototype,u=Function.prototype.toString,h=u.call(Object),c=r.toString,l=Object.getPrototypeOf;n.exports=f},function(n){function t(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}n.exports=t},function(n){function t(n){return!!n&&(typeof n=="undefined"?"undefined":_typeof(n))=="object"}n.exports=t},function(n){"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};n.exports=function(n,r){for(var f=Object.getOwnPropertyNames(r),u=0;u<f.length;++u)if(!t[f[u]]&&!i[f[u]])try{n[f[u]]=r[f[u]]}catch(e){}return n}},function(n,t,i){(function(t){"use strict";var i=function(n,i,r,u,f,e,o,s){var h,c,l;if(t.env.NODE_ENV!=="production"&&i===undefined)throw new Error("invariant requires an error message argument");if(!n){i===undefined?h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[r,u,f,e,o,s],l=0,h=new Error(i.replace(/%s/g,function(){return c[l++]})),h.name="Invariant Violation");h.framesToPop=1;throw h;}};n.exports=i}).call(t,i(4))},function(n,t){"use strict";function h(n){return{type:r,shouldRenderSuggestions:n}}function c(){return{type:u}}function l(n,t){return{type:f,shouldRenderSuggestions:n,lastAction:t}}function a(n,t,i){return{type:e,sectionIndex:n,suggestionIndex:t,value:i}}function v(){return{type:o}}function y(n){return{type:s,lastAction:n}}function p(n,t){switch(t.type){case r:return i({},n,{isFocused:!0,isCollapsed:!t.shouldRenderSuggestions});case u:return i({},n,{isFocused:!1,focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!0});case f:return i({},n,{focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!t.shouldRenderSuggestions,lastAction:t.lastAction});case e:var h=t.value,c=t.sectionIndex,l=t.suggestionIndex,a=n.valueBeforeUpDown===null&&typeof h!="undefined"?h:n.valueBeforeUpDown;return i({},n,{focusedSectionIndex:c,focusedSuggestionIndex:l,valueBeforeUpDown:a});case o:return i({},n,{isCollapsed:!1});case s:return i({},n,{focusedSectionIndex:null,focusedSuggestionIndex:null,valueBeforeUpDown:null,isCollapsed:!0,lastAction:t.lastAction});default:return n}}var i;Object.defineProperty(t,"__esModule",{value:!0});i=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};t.inputFocused=h;t.inputBlurred=c;t.inputChanged=l;t.updateFocusedSuggestion=a;t.revealSuggestions=v;t.closeSuggestions=y;t.default=p;var r="INPUT_FOCUSED",u="INPUT_BLURRED",f="INPUT_CHANGED",e="UPDATE_FOCUSED_SUGGESTION",o="REVEAL_SUGGESTIONS",s="CLOSE_SUGGESTIONS"},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function h(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function c(n){return{isFocused:n.isFocused,isCollapsed:n.isCollapsed,focusedSectionIndex:n.focusedSectionIndex,focusedSuggestionIndex:n.focusedSuggestionIndex,valueBeforeUpDown:n.valueBeforeUpDown,lastAction:n.lastAction}}function l(n){return{inputFocused:function(t){n(u.inputFocused(t))},inputBlurred:function(){n(u.inputBlurred())},inputChanged:function(t,i){n(u.inputChanged(t,i))},updateFocusedSuggestion:function(t,i,r){n(u.updateFocusedSuggestion(t,i,r))},revealSuggestions:function(){n(u.revealSuggestions())},closeSuggestions:function(t){n(u.closeSuggestions(t))}}}var f;Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r=i(2),y=e(r),p=i(14),u=i(25),w=i(27),b=e(w);f=function(n){function t(){o(this,t);var n=s(this,Object.getPrototypeOf(t).call(this));return n.saveInput=n.saveInput.bind(n),n}return h(t,n),v(t,[{key:"componentWillReceiveProps",value:function(n){if(n.suggestions!==this.props.suggestions){var i=n.suggestions,r=n.inputProps,u=n.shouldRenderSuggestions,f=n.isCollapsed,e=n.revealSuggestions,t=n.lastAction,o=r.value;f&&t!=="click"&&t!=="enter"&&i.length>0&&u(o)&&e()}}},{key:"getSuggestion",value:function(n,t){var i=this.props,r=i.suggestions,u=i.multiSection,f=i.getSectionSuggestions;return u?f(r[n])[t]:r[t]}},{key:"getFocusedSuggestion",value:function(){var n=this.props,i=n.focusedSectionIndex,t=n.focusedSuggestionIndex;return t===null?null:this.getSuggestion(i,t)}},{key:"getSuggestionValueByIndex",value:function(n,t){var i=this.props.getSuggestionValue;return i(this.getSuggestion(n,t))}},{key:"getSuggestionIndices",value:function(n){var t=n.getAttribute("data-section-index"),i=n.getAttribute("data-suggestion-index");return{sectionIndex:typeof t=="string"?parseInt(t,10):null,suggestionIndex:parseInt(i,10)}}},{key:"findSuggestionElement",value:function(n){var t=n;do{if(t.getAttribute("data-suggestion-index")!==null)return t;t=t.parentNode}while(t!==null);console.error("Clicked element:",n);throw new Error("Couldn't find suggestion element");}},{key:"maybeEmitOnChange",value:function(n,t,i){var r=this.props.inputProps,f=r.value,u=r.onChange;t!==f&&u&&u(n,{newValue:t,method:i})}},{key:"willRenderSuggestions",value:function(){var n=this.props,t=n.suggestions,i=n.inputProps,r=n.shouldRenderSuggestions,u=i.value;return t.length>0&&r(u)}},{key:"saveInput",value:function(n){if(n!==null){var t=n.refs.input;this.input=t;this.props.inputRef(t)}}},{key:"render",value:function(){var t=this,n=this.props,c=n.suggestions,f=n.onSuggestionsUpdateRequested,g=n.renderSuggestion,u=n.inputProps,nt=n.shouldRenderSuggestions,l=n.onSuggestionSelected,tt=n.multiSection,it=n.renderSectionTitle,rt=n.id,ut=n.getSectionSuggestions,ft=n.focusInputOnSuggestionClick,et=n.theme,ot=n.isFocused,v=n.isCollapsed,st=n.focusedSectionIndex,ht=n.focusedSuggestionIndex,r=n.valueBeforeUpDown,ct=n.inputFocused,p=n.inputBlurred,lt=n.inputChanged,o=n.updateFocusedSuggestion,at=n.revealSuggestions,s=n.closeSuggestions,i=u.value,e=u.onBlur,w=u.onFocus,k=u.onKeyDown,h=ot&&!v&&this.willRenderSuggestions(),vt=h?c:[],yt=a({},u,{onFocus:function(n){t.justClickedOnSuggestion||(ct(nt(i)),w&&w(n))},onBlur:function(n){t.onBlurEvent=n;t.justClickedOnSuggestion||(p(),e&&e(n),r!==null&&i!==r&&f({value:i,reason:"blur"}))},onChange:function(n){var i=n.target.value,r=t.props,u=r.shouldRenderSuggestions,f=r.onSuggestionsUpdateRequested;t.maybeEmitOnChange(n,i,"type");lt(u(i),"type");f({value:i,reason:"type"})},onKeyDown:function(n,u){var e;switch(n.key){case"ArrowDown":case"ArrowUp":if(v)t.willRenderSuggestions()&&at();else if(c.length>0){var y=u.newFocusedSectionIndex,a=u.newFocusedItemIndex,p=a===null?r:t.getSuggestionValueByIndex(y,a);o(y,a,i);t.maybeEmitOnChange(n,p,n.key==="ArrowDown"?"down":"up")}n.preventDefault();break;case"Enter":e=t.getFocusedSuggestion();e!==null&&(s("enter"),l(n,{suggestion:e,suggestionValue:i,method:"enter"}),f({value:i,reason:"enter"}));break;case"Escape":h&&n.preventDefault();r===null?h||(t.maybeEmitOnChange(n,"","escape"),f({value:"",reason:"escape"})):t.maybeEmitOnChange(n,r,"escape");s("escape")}k&&k(n)}}),pt=function(n,t){var i=t.sectionIndex,r=t.itemIndex;o(i,r)},wt=function(){o(null,null)},d=function(){t.justClickedOnSuggestion=!0},bt=function(n){var r=t.getSuggestionIndices(t.findSuggestionElement(n.target)),o=r.sectionIndex,h=r.suggestionIndex,u=t.getSuggestion(o,h),i=t.props.getSuggestionValue(u);t.maybeEmitOnChange(n,i,"click");l(n,{suggestion:u,suggestionValue:i,method:"click"});s("click");ft===!0?t.input.focus():(p(),e&&e(t.onBlurEvent));f({value:i,reason:"click"});t.justClickedOnSuggestion=!1},kt=function(n){var t=n.sectionIndex,i=n.itemIndex;return{"data-section-index":t,"data-suggestion-index":i,onMouseEnter:pt,onMouseLeave:wt,onMouseDown:d,onTouchStart:d,onClick:bt}},dt=function(n){return g(n,{value:i,valueBeforeUpDown:r})};return y.default.createElement(b.default,{multiSection:tt,items:vt,renderItem:dt,renderSectionTitle:it,getSectionItems:ut,focusedSectionIndex:st,focusedItemIndex:ht,inputProps:yt,itemProps:kt,theme:et,id:rt,ref:this.saveInput})}}]),t}(r.Component);f.propTypes={suggestions:r.PropTypes.array.isRequired,onSuggestionsUpdateRequested:r.PropTypes.func.isRequired,getSuggestionValue:r.PropTypes.func.isRequired,renderSuggestion:r.PropTypes.func.isRequired,inputProps:r.PropTypes.object.isRequired,shouldRenderSuggestions:r.PropTypes.func.isRequired,onSuggestionSelected:r.PropTypes.func.isRequired,multiSection:r.PropTypes.bool.isRequired,renderSectionTitle:r.PropTypes.func.isRequired,getSectionSuggestions:r.PropTypes.func.isRequired,focusInputOnSuggestionClick:r.PropTypes.bool.isRequired,theme:r.PropTypes.object.isRequired,id:r.PropTypes.string.isRequired,inputRef:r.PropTypes.func.isRequired,isFocused:r.PropTypes.bool.isRequired,isCollapsed:r.PropTypes.bool.isRequired,focusedSectionIndex:r.PropTypes.number,focusedSuggestionIndex:r.PropTypes.number,valueBeforeUpDown:r.PropTypes.string,lastAction:r.PropTypes.string,inputFocused:r.PropTypes.func.isRequired,inputBlurred:r.PropTypes.func.isRequired,inputChanged:r.PropTypes.func.isRequired,updateFocusedSuggestion:r.PropTypes.func.isRequired,revealSuggestions:r.PropTypes.func.isRequired,closeSuggestions:r.PropTypes.func.isRequired};t.default=p.connect(c,l)(f)},function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&((typeof t=="undefined"?"undefined":_typeof(t))==="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof t=="undefined"?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function e(){}var a=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),f=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},v=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=s(r),y=i(28),p=s(y),w=i(29),b=s(w);o=function(n){function t(n){h(this,t);var i=c(this,Object.getPrototypeOf(t).call(this,n));return i.onKeyDown=i.onKeyDown.bind(i),i}return l(t,n),v(t,[{key:"getItemId",value:function(n,t){if(t===null)return null;var i=this.props.id,r=n===null?"":"section-"+n;return"react-autowhatever-"+i+"-"+r+"-item-"+t}},{key:"getItemsContainerId",value:function(){var n=this.props.id;return"react-whatever-"+n}},{key:"renderItemsList",value:function(n,t,i){var r=this,o=this.props,s=o.renderItem,h=o.focusedSectionIndex,c=o.focusedItemIndex,l=typeof this.props.itemProps=="function";return t.map(function(t,o){var a=l?r.props.itemProps({sectionIndex:i,itemIndex:o}):r.props.itemProps,v=a.onMouseEnter,y=a.onMouseLeave,p=a.onMouseDown,w=a.onClick,b=v?function(n){return v(n,{sectionIndex:i,itemIndex:o})}:e,k=y?function(n){return y(n,{sectionIndex:i,itemIndex:o})}:e,d=p?function(n){return p(n,{sectionIndex:i,itemIndex:o})}:e,g=w?function(n){return w(n,{sectionIndex:i,itemIndex:o})}:e,nt=f({id:r.getItemId(i,o),role:"option"},n(o,"item",i===h&&o===c&&"itemFocused"),a,{onMouseEnter:b,onMouseLeave:k,onMouseDown:d,onClick:g});return u.default.createElement("li",nt,s(t))})}},{key:"renderSections",value:function(n){var o=this,t=this.props,i=t.items,s=t.getSectionItems,r=i.map(function(n){return s(n)}),h=r.every(function(n){return n.length===0});if(h)return null;var e=this.props,c=e.shouldRenderSection,l=e.renderSectionTitle;return u.default.createElement("div",f({id:this.getItemsContainerId(),role:"listbox"},n("itemsContainer","itemsContainer")),i.map(function(t,i){if(!c(t))return null;var e=l(t);return u.default.createElement("div",f({key:i},n(i,"sectionContainer")),e&&u.default.createElement("div",n("sectionTitle","sectionTitle"),e),u.default.createElement("ul",n("sectionItemsContainer","sectionItemsContainer"),o.renderItemsList(n,r[i],i)))}))}},{key:"renderItems",value:function(n){var t=this.props.items;return t.length===0?null:u.default.createElement("ul",f({id:this.getItemsContainerId(),role:"listbox"},n("itemsContainer","itemsContainer")),this.renderItemsList(n,t,null))}},{key:"onKeyDown",value:function(n){var t=this.props,h=t.inputProps,r=t.focusedSectionIndex,u=t.focusedItemIndex,f=h.onKeyDown;switch(n.key){case"ArrowDown":case"ArrowUp":var i=this.props,e=i.multiSection,o=i.items,c=i.getSectionItems,l=p.default({multiSection:e,data:e?o.map(function(n){return c(n).length}):o.length}),v=n.key==="ArrowDown"?"next":"prev",y=l[v]([r,u]),s=a(y,2),w=s[0],b=s[1];f(n,{newFocusedSectionIndex:w,newFocusedItemIndex:b});break;default:f(n,{focusedSectionIndex:r,focusedItemIndex:u})}}},{key:"render",value:function(){var t=this.props,e=t.multiSection,o=t.focusedSectionIndex,s=t.focusedItemIndex,n=b.default(this.props.theme),i=e?this.renderSections(n):this.renderItems(n),r=i!==null,h=this.getItemId(o,s),c=f({type:"text",value:"",autoComplete:"off",role:"combobox",ref:"input","aria-autocomplete":"list","aria-owns":this.getItemsContainerId(),"aria-expanded":r,"aria-activedescendant":h},n("input","input"),this.props.inputProps,{onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown});return u.default.createElement("div",n("container","container",r&&"containerOpen"),u.default.createElement("input",c),i)}}]),t}(r.Component);o.propTypes={id:r.PropTypes.string,multiSection:r.PropTypes.bool,items:r.PropTypes.array.isRequired,renderItem:r.PropTypes.func,shouldRenderSection:r.PropTypes.func,renderSectionTitle:r.PropTypes.func,getSectionItems:r.PropTypes.func,inputProps:r.PropTypes.object,itemProps:r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.func]),focusedSectionIndex:r.PropTypes.number,focusedItemIndex:r.PropTypes.number,theme:r.PropTypes.object};o.defaultProps={id:"1",multiSection:!1,shouldRenderSection:function(){return!0},renderItem:function(){throw new Error("`renderItem` must be provided");},renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided");},getSectionItems:function(){throw new Error("`getSectionItems` must be provided");},inputProps:{},itemProps:{},focusedSectionIndex:null,focusedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",itemsContainer:"react-autowhatever__items-container",item:"react-autowhatever__item",itemFocused:"react-autowhatever__item--focused",sectionContainer:"react-autowhatever__section-container",sectionTitle:"react-autowhatever__section-title",sectionItemsContainer:"react-autowhatever__section-items-container"}};t.default=o},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();t["default"]=function(n){function f(n){for(n===null?n=0:n++;n<t.length&&t[n]===0;)n++;return n===t.length?null:n}function e(n){for(n===null?n=t.length-1:n--;n>=0&&t[n]===0;)n--;return n===-1?null:n}function r(n){var o=i(n,2),r=o[0],e=o[1];return u?e===null||e===t[r]-1?(r=f(r),r===null)?[null,null]:[r,0]:[r,e+1]:t===0||e===t-1?[null,null]:e===null?[null,0]:[null,e+1]}function o(n){var o=i(n,2),r=o[0],f=o[1];return u?f===null||f===0?(r=e(r),r===null)?[null,null]:[r,t[r]-1]:[r,f-1]:t===0||f===0?[null,null]:f===null?[null,t-1]:[null,f-1]}function s(n){return r(n)[1]===null}var t=n.data,u=n.multiSection;return{next:r,prev:o,isLast:s}};n.exports=t["default"]},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}function u(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(30),e=r(f),o=function(n){return n};t["default"]=function(n){return function(t){for(var i,f=arguments.length,s=Array(f>1?f-1:0),r=1;r<f;r++)s[r-1]=arguments[r];return i=s.map(function(t){return n[t]}).filter(o),typeof i[0]=="string"?{key:t,className:i.join(" ")}:{key:t,style:e["default"].apply(undefined,[{}].concat(u(i)))}}};n.exports=t["default"]},function(n){"use strict";function t(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function i(n){var t=Object.getOwnPropertyNames(n);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n))),t.filter(function(t){return r.call(n,t)})}var r=Object.prototype.propertyIsEnumerable;n.exports=Object.assign||function(n){for(var f,u,o=t(n),r,e=1;e<arguments.length;e++)for(f=arguments[e],u=i(Object(f)),r=0;r<u.length;r++)o[u[r]]=f[u[r]];return o}}])}),function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t(require("react")):typeof define=="function"&&define.amd?define(["react"],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.DatePicker=t(require("react")):n.DatePicker=t(n.React)}(this,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";function v(n){if(Array.isArray(n)){for(var t=0,i=Array(n.length);t<n.length;t++)i[t]=n[t];return i}return Array.from(n)}function s(){}var y=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},r=i(1),h=i(2),e=i(101),c=i(102),p=i(105),w=i(110),b=i(111),k=i(112),d=i(107),f=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},l=i(108),a={month:p,year:w,decade:b},o=r.createClass({displayName:"DatePicker",propTypes:{todayText:r.PropTypes.string,gotoSelectedText:r.PropTypes.string,renderFooter:r.PropTypes.func,onChange:r.PropTypes.func,date:r.PropTypes.any,viewDate:r.PropTypes.any},getViewOrder:function(){return this.props.viewOrder||["month","year","decade"]},getDefaultProps:function(){var n=e({},c(),{highlightWeekends:!1,weekNumberName:"",isDatePicker:!0,navOnDateClick:!0,highlightRangeOnMouseMove:!0,defaultStyle:{boxSizing:"border-box"},onRangeChange:function(){}});return delete n.viewDate,delete n.date,n},getInitialState:function(){return{view:this.props.defaultView,viewDate:this.props.defaultViewDate,defaultDate:this.props.defaultDate,defaultRange:this.props.defaultRange}},getViewName:function(){var n=this.props.view!=null?this.props.view:this.state.view;return n||"month"},addViewIndex:function(n){var r=this.getViewName(),t=this.getViewOrder(),i=t.indexOf(r);return i+=n,i%t.length},getNextViewName:function(){return this.getViewOrder()[this.addViewIndex(1)]},getPrevViewName:function(){return this.getViewOrder()[this.addViewIndex(-1)]},getView:function(){var n=this.props.views||a;return n[this.getViewName()]||n.month},getViewFactory:function(){var n=this.getView();return r.createFactory&&n&&n.prototype&&typeof n.prototype.render=="function"&&(n.__factory=n.__factory||r.createFactory(n),n=n.__factory),n},getViewDate:function(){var n=f(this.props,"viewDate")?this.props.viewDate:this.state.viewDate;return n=n||this.viewMoment||this.getDate()||new Date,h.isMoment(n)&&(n=+n),this.toMoment(n)},getDate:function(){var n;return n=f(this.props,"date")?this.props.date:this.state.defaultDate,n?this.toMoment(n):null},getRange:function(){var t=this,n;return f(this.props,"range")?n=this.props.range:this.state.defaultRange&&(n=this.state.defaultRange),n?n.map(function(n){return n?t.toMoment(n):null})||null:null},render:function(){var n=this.p=e({},this.props),i,u,f,t;return this.toMoment=function(t,i){return d(t,i||n.dateFormat,{locale:n.locale})},i=this.getViewFactory(),n.date=this.getDate(),n.range=this.getRange(),u=n.date==null?"":n.date.format(this.props.dateFormat),n.viewDate=this.viewMoment=this.getViewDate(),n.locale=this.props.locale,n.localeData=h.localeData(n.locale),n.renderDay=this.props.renderDay,n.onRenderDay=this.props.onRenderDay,f=(this.props.className||"")+" date-picker",n.style=this.prepareStyle(n),t=n,t=c(n),t.toMoment=this.toMoment,t.highlightWeekends=this.props.highlightWeekends,t.weekNumbers=this.props.weekNumbers,t.weekNumberName=this.props.weekNumberName,t.dateString=u,t.localeData=n.localeData,t.onSelect=this.handleSelect,t.onChange=this.handleChange,t.onWeekChange=this.props.onWeekChange,t.renderWeekNumber=this.props.renderWeekNumber,t.highlightRangeOnMouseMove=this.props.highlightRangeOnMouseMove,t.range=n.range,r.createElement("div",y({},this.props,{className:f,style:n.style}),this.renderHeader(i,n),r.createElement("div",{className:"dp-body",style:{flex:1}},i(t)),this.renderFooter(n))},prepareStyle:function(n){return e({},n.defaultStyle,n.style)},renderFooter:function(n){if(!this.props.hideFooter){this.props.today&&console.warn('Please use "todayText" prop instead of "today"!');this.props.gotoSelected&&console.warn('Please use "gotoSelectedText" prop instead of "gotoSelected"!');var u=this.props.todayText||"Today",f=this.props.gotoSelectedText||"Go to selected",t={todayText:u,gotoSelectedText:f,gotoToday:this.gotoNow,gotoSelected:this.gotoSelected.bind(this,n),date:n.date,viewDate:n.viewDate},i;return(typeof this.props.footerFactory=="function"&&(i=this.props.footerFactory(t)),i!==undefined)?i:r.createElement("div",{className:"dp-footer"},r.createElement("div",{tabIndex:"0",role:"link",className:"dp-footer-today",onClick:t.gotoToday,onKeyUp:l(t.gotoToday)},u),r.createElement("div",{tabIndex:"0",role:"link",className:"dp-footer-selected",onClick:t.gotoSelected,onKeyUp:l(t.gotoSelected)},f))}},gotoNow:function(){this.gotoDate(+new Date)},gotoSelected:function(n){this.gotoDate(n.date||+new Date)},gotoDate:function(n){this.setView("month");this.setViewDate(n)},getViewColspan:function(){return{month:5,year:2,decade:2}[this.getViewName()]},renderHeader:function(n,t){if(!this.props.hideHeader){t=t||this.props;var i=this.getViewDate(),u=this.getView().getHeaderText(i,t),f=this.getViewColspan(),e=this.props.navPrev,o=this.props.navNext;return r.createElement(k,{prevText:e,nextText:o,colspan:f,onPrev:this.handleNavPrev,onNext:this.handleNavNext,onChange:this.handleViewChange},u)}},handleRenderDay:function(n){return(this.props.renderDay||s)(n)||[]},handleViewChange:function(){this.setView(this.getNextViewName())},setView:function(n){if(typeof this.props.onViewChange=="function")this.props.onViewChange(n);this.props.view==null&&this.setState({view:n})},setViewDate:function(n){var t,i,r;n=this.toMoment(n);t=this.props.onViewDateChange;typeof t=="function"&&(i=n.format(this.props.dateFormat),r=this.getViewName(),t(i,n,r));f(this.props,"viewDate")||this.setState({viewDate:n})},getNext:function(){var n=this.getViewDate(),t=this.toMoment;return{month:function(){return t(n).add(1,"month")},year:function(){return t(n).add(1,"year")},decade:function(){return t(n).add(10,"year")}}[this.getViewName()]()},getPrev:function(){var n=this.getViewDate(),t=this.toMoment;return{month:function(){return t(n).add(-1,"month")},year:function(){return t(n).add(-1,"year")},decade:function(){return t(n).add(-10,"year")}}[this.getViewName()]()},handleNavigation:function(n,t){var i=n==-1?this.getPrev():this.getNext(),r,u;if(this.setViewDate(i),typeof this.props.onNav=="function"){r=i.format(this.props.dateFormat);u=this.getViewName();this.props.onNav(r,i,u,n,t)}},handleNavPrev:function(n){this.handleNavigation(-1,n)},handleNavNext:function(n){this.handleNavigation(1,n)},handleChange:function(n,t){var i;if(n=this.toMoment(n),this.props.navOnDateClick){var e=this.toMoment(this.getViewDate()),r=e.format("YYYY-MM"),u=n.format("YYYY-MM");u>r?this.handleNavNext(t):u<r&&this.handleNavPrev(t)}i=n.format(this.props.dateFormat);f(this.props,"date")||this.setState({defaultDate:i});(this.props.onChange||s)(i,n,t);this.p.range&&this.handleRangeChange(n,t)},handleRangeChange:function(n){var r=this,t=this.p.range,i;t=t.length<2?[].concat(v(t),[n]):[n];t.sort(function(n,t){return n-t});this.props.range||this.setState({defaultRange:t});i=t.map(function(n){return n.format(r.props.dateFormat)});this.props.onRangeChange(i,t,event)},handleSelect:function(n,t){var e=this.getViewName(),r={decade:"year",year:"month"}[e],o=n.get(r),i=this.toMoment(this.getViewDate()).set(r,o),u=this.getPrevViewName(),f;if(this.setViewDate(i),this.setView(u),typeof this.props.onSelect=="function"){f=i.format(this.props.dateFormat);this.props.onSelect(f,i,u,t)}}}),u;o.views=a;u=r.PropTypes;o.propTypes={highlightWeekends:u.bool,onChange:u.func,onNav:u.func,onSelect:u.func,renderDay:u.func,onRenderDay:u.func,defaultView:u.string,view:u.string,onViewDateChange:u.func,onViewChange:u.func,navOnDateClick:u.bool,highlightRangeOnMouseMove:u.bool};n.exports=o},function(t){t.exports=n},function(n,t,i){(function(n){(function(t,i){n.exports=i()})(this,function(){"use strict";function u(){return ce.apply(null,arguments)}function is(n){ce=n}function vt(n){return Object.prototype.toString.call(n)==="[object Array]"}function ai(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function wu(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function rt(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vi(n,t){for(var i in t)rt(t,i)&&(n[i]=t[i]);return rt(t,"toString")&&(n.toString=t.toString),rt(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ni(n,t,i,r){return yf(n,t,i,r,!0).utc()}function rs(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function s(n){return n._pf==null&&(n._pf=rs()),n._pf}function cr(n){if(n._isValid==null){var t=s(n);n._isValid=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated;n._strict&&(n._isValid=n._isValid&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)}return n._isValid}function yi(n){var t=ni(NaN);return n!=null?vi(s(t),n):s(t).userInvalidated=!0,t}function p(n){return n===void 0}function lr(n,t){var u,i,r;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=s(t)),p(t._locale)||(n._locale=t._locale),iu.length>0)for(u in iu)i=iu[u],r=t[i],p(r)||(n[i]=r);return n}function ui(n){lr(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);ru===!1&&(ru=!0,u.updateOffset(this),ru=!1)}function st(n){return n instanceof ui||n!=null&&n._isAMomentObject!=null}function w(n){return n<0?Math.ceil(n):Math.floor(n)}function o(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=w(t)),i}function bu(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&o(n[r])!==o(t[r]))&&u++;return u+e}function ku(){}function du(n){return n?n.toLowerCase().replace("_","-"):n}function us(n){for(var r=0,i,t,f,u;r<n.length;){for(u=du(n[r]).split("-"),i=u.length,t=du(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=gu(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&bu(u,t,!0)>=i-1)break;i--}r++}return null}function gu(t){var r=null;if(!kt[t]&&typeof n!="undefined"&&n&&n.exports)try{r=tr._abbr;i(4)("./"+t);fi(r)}catch(u){}return kt[t]}function fi(n,t){var i;return n&&(i=p(t)?yt(n):nf(n,t),i&&(tr=i)),tr._abbr}function nf(n,t){return t!==null?(t.abbr=n,kt[n]=kt[n]||new ku,kt[n].set(t),fi(n),kt[n]):(delete kt[n],null)}function yt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return tr;if(!vt(n)){if(t=gu(n),t)return t;n=[n]}return us(n)}function y(n,t){var i=n.toLowerCase();ci[i]=ci[i+"s"]=ci[t]=n}function k(n){return typeof n=="string"?ci[n]||ci[n.toLowerCase()]:undefined}function tf(n){var r={},i,t;for(t in n)rt(n,t)&&(i=k(t),i&&(r[i]=n[t]));return r}function ht(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ti(n,t){return function(i){return i!=null?(rf(this,n,i),u.updateOffset(this,t),this):pi(this,n)}}function pi(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function rf(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function uf(n,t){var i;if((typeof n=="undefined"?"undefined":_typeof(n))==="object")for(i in n)this.set(i,n[i]);else if(n=k(n),ht(this[n]))return this[n](t);return this}function ut(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function f(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ri[n]=u);t&&(ri[t[0]]=function(){return ut(u.apply(this,arguments),t[1],t[2])});i&&(ri[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function fs(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function es(n){for(var i=n.match(le),t=0,r=i.length;t<r;t++)i[t]=ri[i[t]]?ri[i[t]]:fs(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function ar(n,t){return n.isValid()?(t=ff(t,n.localeData()),uu[t]=uu[t]||es(t),uu[t](n)):n.localeData().invalidDate()}function ff(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ir.lastIndex=0;i>=0&&ir.test(n);)n=n.replace(ir,r),ir.lastIndex=0,i-=1;return n}function r(n,t,i){ou[n]=ht(t)?t:function(n){return n&&i?i:t}}function os(n,t){return rt(ou,n)?ou[n](t._strict,t._locale):new RegExp(ss(n))}function ss(n){return wi(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function wi(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),typeof t=="number"&&(r=function(n,i){i[t]=o(n)}),i=0;i<n.length;i++)su[n[i]]=r}function ei(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function hs(n,t,i){t!=null&&rt(su,n)&&su[n](t,i._a,i,n)}function vr(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function cs(n,t){return vt(this._months)?this._months[n.month()]:this._months[hu.test(t)?"format":"standalone"][n.month()]}function ls(n,t){return vt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[hu.test(t)?"format":"standalone"][n.month()]}function as(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ni([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ef(n,t){var i;return n.isValid()?typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),vr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n):n}function of(n){return n!=null?(ef(this,n),u.updateOffset(this,!0),this):pi(this,"Month")}function vs(){return vr(this.year(),this.month())}function ys(n){return this._monthsParseExact?(rt(this,"_monthsRegex")||sf.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex}function ps(n){return this._monthsParseExact?(rt(this,"_monthsRegex")||sf.call(this),n?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex}function sf(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ni([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=wi(i[n]),r[n]=wi(r[n]),t[n]=wi(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")$","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")$","i")}function yr(n){var i,t=n._a;return t&&s(n).overflow===-2&&(i=t[ft]<0||t[ft]>11?ft:t[tt]<1||t[tt]>vr(t[g],t[ft])?tt:t[v]<0||t[v]>24||t[v]===24&&(t[nt]!==0||t[et]!==0||t[dt]!==0)?v:t[nt]<0||t[nt]>59?nt:t[et]<0||t[et]>59?et:t[dt]<0||t[dt]>999?dt:-1,s(n)._overflowDayOfYear&&(i<g||i>tt)&&(i=tt),s(n)._overflowWeeks&&i===-1&&(i=wv),s(n)._overflowWeekday&&i===-1&&(i=bv),s(n).overflow=i),n}function hf(n){u.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function d(n,t){var i=!0;return vi(function(){return i&&(hf(n+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function ws(n,t){cu[n]||(hf(t),cu[n]=!0)}function cf(n){var t,r,e=n._i,i=kv.exec(e)||dv.exec(e),o,f,u,h;if(i){for(s(n).iso=!0,t=0,r=hr.length;t<r;t++)if(hr[t][1].exec(i[1])){f=hr[t][0];o=hr[t][2]!==!1;break}if(f==null){n._isValid=!1;return}if(i[3]){for(t=0,r=pu.length;t<r;t++)if(pu[t][1].exec(i[3])){u=(i[2]||" ")+pu[t][0];break}if(u==null){n._isValid=!1;return}}if(!o&&u!=null){n._isValid=!1;return}if(i[4])if(gv.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=f+(u||"")+(h||"");wr(n)}else n._isValid=!1}function bs(n){var t=ny.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}cf(n);n._isValid===!1&&(delete n._isValid,u.createFromInputFallback(n))}function ks(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function bi(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function oi(n){return lf(n)?366:365}function lf(n){return n%4==0&&n%100!=0||n%400==0}function ds(){return lf(this.year())}function ki(n,t,i){var r=7+t-i,u=(7+bi(n,0,r).getUTCDay()-t)%7;return-u+r-1}function af(n,t,i,r,u){var s=(7+i-r)%7,h=ki(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=oi(e)+f):f>oi(n)?(e=n+1,o=f-oi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function si(n,t,i){var e=ki(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+pt(u,t,i)):r>pt(n.year(),t,i)?(f=r-pt(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function pt(n,t,i){var r=ki(n,t,i),u=ki(n+1,t,i);return(oi(n)-r+u)/7}function ii(n,t,i){return n!=null?n:t!=null?t:i}function gs(n){var t=new Date(u.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pr(n){var t,i,r=[],u,f;if(!n._d){for(u=gs(n),n._w&&n._a[tt]==null&&n._a[ft]==null&&nh(n),n._dayOfYear&&(f=ii(n._a[g],u[g]),n._dayOfYear>oi(f)&&(s(n)._overflowDayOfYear=!0),i=bi(f,0,n._dayOfYear),n._a[ft]=i.getUTCMonth(),n._a[tt]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[nt]===0&&n._a[et]===0&&n._a[dt]===0&&(n._nextDay=!0,n._a[v]=0);n._d=(n._useUTC?bi:ks).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[v]=24)}}function nh(n){var t,e,u,i,r,f,h,o;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,f=4,e=ii(t.GG,n._a[g],si(l(),1,4).year),u=ii(t.W,1),i=ii(t.E,1),(i<1||i>7)&&(o=!0)):(r=n._locale._week.dow,f=n._locale._week.doy,e=ii(t.gg,n._a[g],si(l(),r,f).year),u=ii(t.w,1),t.d!=null?(i=t.d,(i<0||i>6)&&(o=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(o=!0)):i=r);u<1||u>pt(e,r,f)?s(n)._overflowWeeks=!0:o!=null?s(n)._overflowWeekday=!0:(h=af(e,u,i,r,f),n._a[g]=h.year,n._dayOfYear=h.dayOfYear)}function wr(n){if(n._f===u.ISO_8601){cf(n);return}n._a=[];s(n).empty=!0;for(var t=""+n._i,i,r,f,c=t.length,o=0,h=ff(n._f,n._locale).match(le)||[],e=0;e<h.length;e++)r=h[e],i=(t.match(os(r,n))||[])[0],i&&(f=t.substr(0,t.indexOf(i)),f.length>0&&s(n).unusedInput.push(f),t=t.slice(t.indexOf(i)+i.length),o+=i.length),ri[r]?(i?s(n).empty=!1:s(n).unusedTokens.push(r),hs(r,i,n)):n._strict&&!i&&s(n).unusedTokens.push(r);s(n).charsLeftOver=c-o;t.length>0&&s(n).unusedInput.push(t);s(n).bigHour===!0&&n._a[v]<=12&&n._a[v]>0&&(s(n).bigHour=undefined);n._a[v]=th(n._locale,n._a[v],n._meridiem);pr(n);yr(n)}function th(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function ih(n){var t,f,u,r,i;if(n._f.length===0){s(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=lr({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],wr(t),cr(t))&&(i+=s(t).charsLeftOver,i+=s(t).unusedTokens.length*10,s(t).score=i,(u==null||i<u)&&(u=i,f=t));vi(n,f||t)}function rh(n){if(!n._d){var t=tf(n._i);n._a=wu([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});pr(n)}}function uh(n){var t=new ui(yr(vf(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function vf(n){var t=n._i,i=n._f;return(n._locale=n._locale||yt(n._l),t===null||i===undefined&&t==="")?yi({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),st(t))?new ui(yr(t)):(vt(i)?ih(n):i?wr(n):ai(t)?n._d=t:fh(n),cr(n)||(n._d=null),n)}function fh(n){var t=n._i;t===undefined?n._d=new Date(u.now()):ai(t)?n._d=new Date(+t):typeof t=="string"?bs(n):vt(t)?(n._a=wu(t.slice(0),function(n){return parseInt(n,10)}),pr(n)):(typeof t=="undefined"?"undefined":_typeof(t))==="object"?rh(n):typeof t=="number"?n._d=new Date(t):u.createFromInputFallback(n)}function yf(n,t,i,r,u){var f={};return typeof i=="boolean"&&(r=i,i=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,uh(f)}function l(n,t,i,r){return yf(n,t,i,r,!1)}function pf(n,t){var r,i;if(t.length===1&&vt(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function eh(){var n=[].slice.call(arguments,0);return pf("isBefore",n)}function oh(){var n=[].slice.call(arguments,0);return pf("isAfter",n)}function di(n){var t=tf(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=yt();this._bubble()}function br(n){return n instanceof di}function wf(n,t){f(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ut(~~(n/60),2)+t+ut(~~n%60,2)})}function kr(n,t){var r=(t||"").match(n)||[],f=r[r.length-1]||[],i=(f+"").match(io)||["-",0,0],u=+(i[1]*60)+o(i[2]);return i[0]==="+"?u:-u}function dr(n,t){var i,r;return t._isUTC?(i=t.clone(),r=(st(n)||ai(n)?+n:+l(n))-+i,i._d.setTime(+i._d+r),u.updateOffset(i,!1),i):l(n).local()}function gr(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function sh(n,t){var i=this._offset||0,r;return this.isValid()?n!=null?(typeof n=="string"?n=kr(or,n):Math.abs(n)<16&&(n=n*60),!this._isUTC&&t&&(r=gr(this)),this._offset=n,this._isUTC=!0,r!=null&&this.add(r,"m"),i!==n&&(!t||this._changeInProgress?gf(this,ct(n-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:gr(this):n!=null?this:NaN}function hh(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ch(n){return this.utcOffset(0,n)}function lh(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(gr(this),"m")),this}function ah(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(kr(pv,this._i)),this}function vh(n){return this.isValid()?(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function yh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ph(){var n,t;return p(this._isDSTShifted)?(n={},lr(n,this),n=vf(n),n._a?(t=n._isUTC?ni(n._a):l(n._a),this._isDSTShifted=this.isValid()&&bu(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function wh(){return this.isValid()?!this._isUTC:!1}function bh(){return this.isValid()?this._isUTC:!1}function bf(){return this.isValid()?this._isUTC&&this._offset===0:!1}function ct(n,t){var i=n,r=null,u,f,e;return br(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(i={},t?i[t]=n:i.milliseconds=n):(r=ro.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:o(r[tt])*u,h:o(r[v])*u,m:o(r[nt])*u,s:o(r[et])*u,ms:o(r[dt])*u}):(r=uo.exec(n))?(u=r[1]==="-"?-1:1,i={y:wt(r[2],u),M:wt(r[3],u),d:wt(r[4],u),h:wt(r[5],u),m:wt(r[6],u),s:wt(r[7],u),w:wt(r[8],u)}):i==null?i={}:(typeof i=="undefined"?"undefined":_typeof(i))==="object"&&("from"in i||"to"in i)&&(e=kh(l(i.from),l(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new di(i),br(n)&&rt(n,"_locale")&&(f._locale=n._locale),f}function wt(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function kf(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function kh(n,t){var i;return n.isValid()&&t.isValid()?(t=dr(t,n),n.isBefore(t)?i=kf(n,t):(i=kf(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function df(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(ws(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=ct(i,r),gf(this,u,n),this}}function gf(n,t,i,r){var o=t._milliseconds,f=t._days,e=t._months;n.isValid()&&(r=r==null?!0:r,o&&n._d.setTime(+n._d+o*i),f&&rf(n,"Date",pi(n,"Date")+f*i),e&&ef(n,pi(n,"Month")+e*i),r&&u.updateOffset(n,f||e))}function dh(n,t){var u=n||l(),f=dr(u,this).startOf("day"),i=this.diff(f,"days",!0),r=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",e=t&&(ht(t[r])?t[r]():t[r]);return this.format(e||this.localeData().calendar(r,this,l(u)))}function gh(){return new ui(this)}function nc(n,t){var i=st(n)?n:l(n);return this.isValid()&&i.isValid()?(t=k(p(t)?"millisecond":t),t==="millisecond"?+this>+i:+i<+this.clone().startOf(t)):!1}function tc(n,t){var i=st(n)?n:l(n);return this.isValid()&&i.isValid()?(t=k(p(t)?"millisecond":t),t==="millisecond"?+this<+i:+this.clone().endOf(t)<+i):!1}function ic(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function rc(n,t){var i=st(n)?n:l(n),r;return this.isValid()&&i.isValid()?(t=k(t||"millisecond"),t==="millisecond"?+this==+i:(r=+i,+this.clone().startOf(t)<=r&&r<=+this.clone().endOf(t))):!1}function uc(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function fc(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ec(n,t,i){var f,e,u,r;return this.isValid()?(f=dr(n,this),!f.isValid())?NaN:(e=(f.utcOffset()-this.utcOffset())*6e4,t=k(t),t==="year"||t==="month"||t==="quarter"?(r=oc(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:w(r)):NaN}function oc(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)}function sc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function hc(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?ht(Date.prototype.toISOString)?this.toDate().toISOString():ar(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):ar(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cc(n){var t=ar(this,n||u.defaultFormat);return this.localeData().postformat(t)}function lc(n,t){return this.isValid()&&(st(n)&&n.isValid()||l(n).isValid())?ct({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ac(n){return this.from(l(),n)}function vc(n,t){return this.isValid()&&(st(n)&&n.isValid()||l(n).isValid())?ct({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yc(n){return this.to(l(),n)}function ne(n){var t;return n===undefined?this._locale._abbr:(t=yt(n),t!=null&&(this._locale=t),this)}function te(){return this._locale}function pc(n){n=k(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function wc(n){return(n=k(n),n===undefined||n==="millisecond")?this:this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms")}function bc(){return+this._d-(this._offset||0)*6e4}function kc(){return Math.floor(+this/1e3)}function dc(){return this._offset?new Date(+this):this._d}function gc(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function nl(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function tl(){return this.isValid()?this.toISOString():"null"}function il(){return cr(this)}function rl(){return vi({},s(this))}function ul(){return s(this).overflow}function fl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gi(n,t){f(0,[n,n.length],0,t)}function el(n){return ie.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ol(n){return ie.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function sl(){return pt(this.year(),1,4)}function hl(){var n=this.localeData()._week;return pt(this.year(),n.dow,n.doy)}function ie(n,t,i,r,u){var f;return n==null?si(this,r,u).year:(f=pt(n,r,u),t>f&&(t=f),cl.call(this,n,t,i,r,u))}function cl(n,t,i,r,u){var e=af(n,t,i,r,u),f=bi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function ll(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function al(n){return si(n,this._week.dow,this._week.doy).week}function vl(){return this._week.dow}function yl(){return this._week.doy}function pl(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function wl(n){var t=si(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function bl(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function kl(n,t){return vt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]}function dl(n){return this._weekdaysShort[n.day()]}function gl(n){return this._weekdaysMin[n.day()]}function na(n,t,i){var r,u,f;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=l([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function ta(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=bl(n,this.localeData()),this.add(n-t,"d")):t}function ia(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function ra(n){return this.isValid()?n==null?this.day()||7:this.day(this.day()%7?n:n-7):n!=null?this:NaN}function ua(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function nu(){return this.hours()%12||12}function re(n,t){f(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ue(n,t){return t._meridiemParse}function fa(n){return(n+"").toLowerCase().charAt(0)==="p"}function ea(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function oa(n,t){t[dt]=o(("0."+n)*1e3)}function sa(){return this._isUTC?"UTC":""}function ha(){return this._isUTC?"Coordinated Universal Time":""}function ca(n){return l(n*1e3)}function la(){return l.apply(null,arguments).parseZone()}function aa(n,t,i){var r=this._calendar[n];return ht(r)?r.call(t,i):r}function va(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function ya(){return this._invalidDate}function pa(n){return this._ordinal.replace("%d",n)}function fe(n){return n}function wa(n,t,i,r){var u=this._relativeTime[i];return ht(u)?u(n,t,i,r):u.replace(/%d/i,n)}function ba(n,t){var i=this._relativeTime[n>0?"future":"past"];return ht(i)?i(t):i.replace(/%s/i,t)}function ka(n){var t,i;for(i in n)t=n[i],ht(t)?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ee(n,t,i,r){var u=yt(),f=ni().set(r,t);return u[i](f,n)}function hi(n,t,i,r,u){if(typeof n=="number"&&(t=n,n=undefined),n=n||"",t!=null)return ee(n,t,i,u);for(var e=[],f=0;f<r;f++)e[f]=ee(n,f,i,u);return e}function da(n,t){return hi(n,t,"months",12,"month")}function ga(n,t){return hi(n,t,"monthsShort",12,"month")}function nv(n,t){return hi(n,t,"weekdays",7,"day")}function tv(n,t){return hi(n,t,"weekdaysShort",7,"day")}function iv(n,t){return hi(n,t,"weekdaysMin",7,"day")}function rv(){var n=this._data;return this._milliseconds=it(this._milliseconds),this._days=it(this._days),this._months=it(this._months),n.milliseconds=it(n.milliseconds),n.seconds=it(n.seconds),n.minutes=it(n.minutes),n.hours=it(n.hours),n.months=it(n.months),n.years=it(n.years),this}function oe(n,t,i,r){var u=ct(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function uv(n,t){return oe(this,n,t,1)}function fv(n,t){return oe(this,n,t,-1)}function se(n){return n<0?Math.floor(n):Math.ceil(n)}function ev(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=se(tu(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=w(r/1e3),i.seconds=u%60,f=w(u/60),i.minutes=f%60,e=w(f/60),i.hours=e%24,n+=w(e/24),o=w(he(n)),t+=o,n-=se(tu(o)),s=w(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function he(n){return n*4800/146097}function tu(n){return n*146097/4800}function ov(n){var t,r,i=this._milliseconds;if(n=k(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+he(t),n==="month"?r:r/12;t=this._days+Math.round(tu(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function sv(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+o(this._months/12)*31536e6}function lt(n){return function(){return this.as(n)}}function hv(n){return n=k(n),this[n+"s"]()}function bt(n){return function(){return this._data[n]}}function cv(){return w(this.days()/7)}function lv(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function av(n,t,i){var r=ct(n).abs(),h=gt(r.as("s")),f=gt(r.as("m")),e=gt(r.as("h")),o=gt(r.as("d")),s=gt(r.as("M")),c=gt(r.as("y")),u=h<ot.s&&["s",h]||f<=1&&["m"]||f<ot.m&&["mm",f]||e<=1&&["h"]||e<ot.h&&["hh",e]||o<=1&&["d"]||o<ot.d&&["dd",o]||s<=1&&["M"]||s<ot.M&&["MM",s]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,lv.apply(null,u)}function vv(n,t){return ot[n]===undefined?!1:t===undefined?ot[n]:(ot[n]=t,!0)}function yv(n){var t=this.localeData(),i=av(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function nr(){var t=sr(this._milliseconds)/1e3,a=sr(this._days),i=sr(this._months),n,e,o;n=w(t/60);e=w(n/60);t%=60;n%=60;o=w(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ce,iu=u.momentProperties=[],ru=!1,kt={},tr,ci={},le=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ir=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,uu={},ri={},ae=/\d/,b=/\d\d/,ve=/\d{3}/,fu=/\d{4}/,rr=/[+-]?\d{6}/,a=/\d\d?/,ye=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,ur=/\d{1,3}/,eu=/\d{1,4}/,fr=/[+-]?\d{1,6}/,er=/[+-]?\d+/,pv=/Z|[+-]\d\d:?\d\d/gi,or=/Z|[+-]\d\d(?::?\d\d)?/gi,li=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ou={},su={},g=0,ft=1,tt=2,v=3,nt=4,et=5,dt=6,wv=7,bv=8,hu,we,be,ke,de,cu,lu,ge,no,to,io,ro,uo,fo,eo,au,oo,vu,so,ho,co,lo,ao,vo,yo,at,po,t,yu,wo,bo,ko,go,ns,ts,e,it,gt,ot,sr,h;f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});f("MMMM",0,0,function(n){return this.localeData().months(this,n)});y("month","M");r("M",a);r("MM",a,b);r("MMM",function(n,t){return t.monthsShortRegex(n)});r("MMMM",function(n,t){return t.monthsRegex(n)});c(["M","MM"],function(n,t){t[ft]=o(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[ft]=u:s(i).invalidMonth=n});hu=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/;we="January_February_March_April_May_June_July_August_September_October_November_December".split("_");be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");ke=li;de=li;cu={};u.suppressDeprecationWarnings=!1;var kv=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,dv=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,gv=/Z|[+-]\d\d(?::?\d\d)?/,hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ny=/^\/?Date\((\-?\d+)/i;for(u.createFromInputFallback=d("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),f("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n}),f(0,["YY",2],0,function(){return this.year()%100}),f(0,["YYYY",4],0,"year"),f(0,["YYYYY",5],0,"year"),f(0,["YYYYYY",6,!0],0,"year"),y("year","y"),r("Y",er),r("YY",a,b),r("YYYY",eu,fu),r("YYYYY",fr,rr),r("YYYYYY",fr,rr),c(["YYYYY","YYYYYY"],g),c("YYYY",function(n,t){t[g]=n.length===2?u.parseTwoDigitYear(n):o(n)}),c("YY",function(n,t){t[g]=u.parseTwoDigitYear(n)}),c("Y",function(n,t){t[g]=parseInt(n,10)}),u.parseTwoDigitYear=function(n){return o(n)+(o(n)>68?1900:2e3)},lu=ti("FullYear",!1),u.ISO_8601=function(){},ge=d("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:yi()}),no=d("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:yi()}),to=function(){return Date.now?Date.now():+new Date},wf("Z",":"),wf("ZZ",""),r("Z",or),r("ZZ",or),c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=kr(or,n)}),io=/([\+\-]|\d\d)/gi,u.updateOffset=function(){},ro=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,uo=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,ct.fn=di.prototype,fo=df(1,"add"),eo=df(-1,"subtract"),u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",au=d("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gi("gggg","weekYear"),gi("ggggg","weekYear"),gi("GGGG","isoWeekYear"),gi("GGGGG","isoWeekYear"),y("weekYear","gg"),y("isoWeekYear","GG"),r("G",er),r("g",er),r("GG",a,b),r("gg",a,b),r("GGGG",eu,fu),r("gggg",eu,fu),r("GGGGG",fr,rr),r("ggggg",fr,rr),ei(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=o(n)}),ei(["gg","GG"],function(n,t,i,r){t[r]=u.parseTwoDigitYear(n)}),f("Q",0,"Qo","quarter"),y("quarter","Q"),r("Q",ae),c("Q",function(n,t){t[ft]=(o(n)-1)*3}),f("w",["ww",2],"wo","week"),f("W",["WW",2],"Wo","isoWeek"),y("week","w"),y("isoWeek","W"),r("w",a),r("ww",a,b),r("W",a),r("WW",a,b),ei(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=o(n)}),oo={dow:0,doy:6},f("D",["DD",2],"Do","date"),y("date","D"),r("D",a),r("DD",a,b),r("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),c(["D","DD"],tt),c("Do",function(n,t){t[tt]=o(n.match(a)[0],10)}),vu=ti("Date",!0),f("d",0,"do","day"),f("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),f("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),f("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),f("e",0,0,"weekday"),f("E",0,0,"isoWeekday"),y("day","d"),y("weekday","e"),y("isoWeekday","E"),r("d",a),r("e",a),r("E",a),r("dd",li),r("ddd",li),r("dddd",li),ei(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);u!=null?t.d=u:s(i).invalidWeekday=n}),ei(["d","e","E"],function(n,t,i,r){t[r]=o(n)}),so="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ho="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),co="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),f("DDD",["DDDD",3],"DDDo","dayOfYear"),y("dayOfYear","DDD"),r("DDD",ur),r("DDDD",ve),c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=o(n)}),f("H",["HH",2],0,"hour"),f("h",["hh",2],0,nu),f("hmm",0,0,function(){return""+nu.apply(this)+ut(this.minutes(),2)}),f("hmmss",0,0,function(){return""+nu.apply(this)+ut(this.minutes(),2)+ut(this.seconds(),2)}),f("Hmm",0,0,function(){return""+this.hours()+ut(this.minutes(),2)}),f("Hmmss",0,0,function(){return""+this.hours()+ut(this.minutes(),2)+ut(this.seconds(),2)}),re("a",!0),re("A",!1),y("hour","h"),r("a",ue),r("A",ue),r("H",a),r("h",a),r("HH",a,b),r("hh",a,b),r("hmm",ye),r("hmmss",pe),r("Hmm",ye),r("Hmmss",pe),c(["H","HH"],v),c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n}),c(["h","hh"],function(n,t,i){t[v]=o(n);s(i).bigHour=!0}),c("hmm",function(n,t,i){var r=n.length-2;t[v]=o(n.substr(0,r));t[nt]=o(n.substr(r));s(i).bigHour=!0}),c("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[v]=o(n.substr(0,r));t[nt]=o(n.substr(r,2));t[et]=o(n.substr(u));s(i).bigHour=!0}),c("Hmm",function(n,t){var i=n.length-2;t[v]=o(n.substr(0,i));t[nt]=o(n.substr(i))}),c("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=o(n.substr(0,i));t[nt]=o(n.substr(i,2));t[et]=o(n.substr(r))}),lo=/[ap]\.?m?\.?/i,ao=ti("Hours",!0),f("m",["mm",2],0,"minute"),y("minute","m"),r("m",a),r("mm",a,b),c(["m","mm"],nt),vo=ti("Minutes",!1),f("s",["ss",2],0,"second"),y("second","s"),r("s",a),r("ss",a,b),c(["s","ss"],et),yo=ti("Seconds",!1),f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return this.millisecond()*10}),f(0,["SSSSS",5],0,function(){return this.millisecond()*100}),f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("millisecond","ms"),r("S",ur,ae),r("SS",ur,b),r("SSS",ur,ve),at="SSSS";at.length<=9;at+="S")r(at,/\d+/);for(at="S";at.length<=9;at+="S")c(at,oa);po=ti("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");t=ui.prototype;t.add=fo;t.calendar=dh;t.clone=gh;t.diff=ec;t.endOf=wc;t.format=cc;t.from=lc;t.fromNow=ac;t.to=vc;t.toNow=yc;t.get=uf;t.invalidAt=ul;t.isAfter=nc;t.isBefore=tc;t.isBetween=ic;t.isSame=rc;t.isSameOrAfter=uc;t.isSameOrBefore=fc;t.isValid=il;t.lang=au;t.locale=ne;t.localeData=te;t.max=no;t.min=ge;t.parsingFlags=rl;t.set=uf;t.startOf=pc;t.subtract=eo;t.toArray=gc;t.toObject=nl;t.toDate=dc;t.toISOString=hc;t.toJSON=tl;t.toString=sc;t.unix=kc;t.valueOf=bc;t.creationData=fl;t.year=lu;t.isLeapYear=ds;t.weekYear=el;t.isoWeekYear=ol;t.quarter=t.quarters=ll;t.month=of;t.daysInMonth=vs;t.week=t.weeks=pl;t.isoWeek=t.isoWeeks=wl;t.weeksInYear=hl;t.isoWeeksInYear=sl;t.date=vu;t.day=t.days=ta;t.weekday=ia;t.isoWeekday=ra;t.dayOfYear=ua;t.hour=t.hours=ao;t.minute=t.minutes=vo;t.second=t.seconds=yo;t.millisecond=t.milliseconds=po;t.utcOffset=sh;t.utc=ch;t.local=lh;t.parseZone=ah;t.hasAlignedHourOffset=vh;t.isDST=yh;t.isDSTShifted=ph;t.isLocal=wh;t.isUtcOffset=bh;t.isUtc=bf;t.isUTC=bf;t.zoneAbbr=sa;t.zoneName=ha;t.dates=d("dates accessor is deprecated. Use date instead.",vu);t.months=d("months accessor is deprecated. Use month instead",of);t.years=d("years accessor is deprecated. Use year instead",lu);t.zone=d("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",hh);yu=t;wo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};bo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};ko="Invalid date";go="%d";ns=/\d{1,2}/;ts={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};e=ku.prototype;e._calendar=wo;e.calendar=aa;e._longDateFormat=bo;e.longDateFormat=va;e._invalidDate=ko;e.invalidDate=ya;e._ordinal=go;e.ordinal=pa;e._ordinalParse=ns;e.preparse=fe;e.postformat=fe;e._relativeTime=ts;e.relativeTime=wa;e.pastFuture=ba;e.set=ka;e.months=cs;e._months=we;e.monthsShort=ls;e._monthsShort=be;e.monthsParse=as;e._monthsRegex=de;e.monthsRegex=ps;e._monthsShortRegex=ke;e.monthsShortRegex=ys;e.week=al;e._week=oo;e.firstDayOfYear=yl;e.firstDayOfWeek=vl;e.weekdays=kl;e._weekdays=so;e.weekdaysMin=gl;e._weekdaysMin=co;e.weekdaysShort=dl;e._weekdaysShort=ho;e.weekdaysParse=na;e.isPM=fa;e._meridiemParse=lo;e.meridiem=ea;fi("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=o(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});u.lang=d("moment.lang is deprecated. Use moment.locale instead.",fi);u.langData=d("moment.langData is deprecated. Use moment.localeData instead.",yt);it=Math.abs;var ty=lt("ms"),iy=lt("s"),ry=lt("m"),uy=lt("h"),fy=lt("d"),ey=lt("w"),oy=lt("M"),sy=lt("y"),hy=bt("milliseconds"),cy=bt("seconds"),ly=bt("minutes"),ay=bt("hours"),vy=bt("days"),yy=bt("months"),py=bt("years");return gt=Math.round,ot={s:45,m:45,h:22,d:26,M:11},sr=Math.abs,h=di.prototype,h.abs=rv,h.add=uv,h.subtract=fv,h.as=ov,h.asMilliseconds=ty,h.asSeconds=iy,h.asMinutes=ry,h.asHours=uy,h.asDays=fy,h.asWeeks=ey,h.asMonths=oy,h.asYears=sy,h.valueOf=sv,h._bubble=ev,h.get=hv,h.milliseconds=hy,h.seconds=cy,h.minutes=ly,h.hours=ay,h.days=vy,h.weeks=cv,h.months=yy,h.years=py,h.humanize=yv,h.toISOString=nr,h.toString=nr,h.toJSON=nr,h.locale=ne,h.localeData=te,h.toIsoString=d("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),h.lang=au,f("X",0,0,"unix"),f("x",0,0,"valueOf"),r("x",er),r("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),c("x",function(n,t,i){i._d=new Date(o(n))}),u.version="2.11.2",is(l),u.fn=yu,u.min=eh,u.max=oh,u.now=to,u.utc=ni,u.unix=ca,u.months=da,u.isDate=ai,u.locale=fi,u.invalid=yi,u.duration=ct,u.isMoment=st,u.weekdays=nv,u.parseZone=la,u.localeData=yt,u.isDuration=br,u.monthsShort=ga,u.weekdaysMin=iv,u.defineLocale=nf,u.weekdaysShort=tv,u.normalizeUnits=k,u.relativeTimeThreshold=vv,u.prototype=yu,u})}).call(t,i(3)(n))},function(n){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children=[],n.webpackPolyfill=1),n}},function(n,t,i){function r(n){return i(u(n))}function u(n){return f[n]||function(){throw new Error("Cannot find module '"+n+"'.");}()}var f={"./af":5,"./af.js":5,"./ar":6,"./ar-ma":7,"./ar-ma.js":7,"./ar-sa":8,"./ar-sa.js":8,"./ar-tn":9,"./ar-tn.js":9,"./ar.js":6,"./az":10,"./az.js":10,"./be":11,"./be.js":11,"./bg":12,"./bg.js":12,"./bn":13,"./bn.js":13,"./bo":14,"./bo.js":14,"./br":15,"./br.js":15,"./bs":16,"./bs.js":16,"./ca":17,"./ca.js":17,"./cs":18,"./cs.js":18,"./cv":19,"./cv.js":19,"./cy":20,"./cy.js":20,"./da":21,"./da.js":21,"./de":22,"./de-at":23,"./de-at.js":23,"./de.js":22,"./dv":24,"./dv.js":24,"./el":25,"./el.js":25,"./en-au":26,"./en-au.js":26,"./en-ca":27,"./en-ca.js":27,"./en-gb":28,"./en-gb.js":28,"./en-ie":29,"./en-ie.js":29,"./en-nz":30,"./en-nz.js":30,"./eo":31,"./eo.js":31,"./es":32,"./es.js":32,"./et":33,"./et.js":33,"./eu":34,"./eu.js":34,"./fa":35,"./fa.js":35,"./fi":36,"./fi.js":36,"./fo":37,"./fo.js":37,"./fr":38,"./fr-ca":39,"./fr-ca.js":39,"./fr-ch":40,"./fr-ch.js":40,"./fr.js":38,"./fy":41,"./fy.js":41,"./gd":42,"./gd.js":42,"./gl":43,"./gl.js":43,"./he":44,"./he.js":44,"./hi":45,"./hi.js":45,"./hr":46,"./hr.js":46,"./hu":47,"./hu.js":47,"./hy-am":48,"./hy-am.js":48,"./id":49,"./id.js":49,"./is":50,"./is.js":50,"./it":51,"./it.js":51,"./ja":52,"./ja.js":52,"./jv":53,"./jv.js":53,"./ka":54,"./ka.js":54,"./kk":55,"./kk.js":55,"./km":56,"./km.js":56,"./ko":57,"./ko.js":57,"./lb":58,"./lb.js":58,"./lo":59,"./lo.js":59,"./lt":60,"./lt.js":60,"./lv":61,"./lv.js":61,"./me":62,"./me.js":62,"./mk":63,"./mk.js":63,"./ml":64,"./ml.js":64,"./mr":65,"./mr.js":65,"./ms":66,"./ms-my":67,"./ms-my.js":67,"./ms.js":66,"./my":68,"./my.js":68,"./nb":69,"./nb.js":69,"./ne":70,"./ne.js":70,"./nl":71,"./nl.js":71,"./nn":72,"./nn.js":72,"./pl":73,"./pl.js":73,"./pt":74,"./pt-br":75,"./pt-br.js":75,"./pt.js":74,"./ro":76,"./ro.js":76,"./ru":77,"./ru.js":77,"./se":78,"./se.js":78,"./si":79,"./si.js":79,"./sk":80,"./sk.js":80,"./sl":81,"./sl.js":81,"./sq":82,"./sq.js":82,"./sr":83,"./sr-cyrl":84,"./sr-cyrl.js":84,"./sr.js":83,"./sv":85,"./sv.js":85,"./sw":86,"./sw.js":86,"./ta":87,"./ta.js":87,"./te":88,"./te.js":88,"./th":89,"./th.js":89,"./tl-ph":90,"./tl-ph.js":90,"./tlh":91,"./tlh.js":91,"./tr":92,"./tr.js":92,"./tzl":93,"./tzl.js":93,"./tzm":94,"./tzm-latn":95,"./tzm-latn.js":95,"./tzm.js":94,"./uk":96,"./uk.js":96,"./uz":97,"./uz.js":97,"./vi":98,"./vi.js":98,"./zh-cn":99,"./zh-cn.js":99,"./zh-tw":100,"./zh-tw.js":100};r.keys=function(){return Object.keys(f)};r.resolve=u;n.exports=r;r.id=4},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var u={"1":"١","2":"٢","3":"٣","4":"٤","5":"٥","6":"٦","7":"٧","8":"٨","9":"٩","0":"٠"},f={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(n){return n===0?0:n===1?1:n===2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},e={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},t=function(n){return function(t,r){var f=i(t),u=e[n][i(t)];return f===2&&(u=u[r?0:1]),u.replace(/%d/i,t)}},r=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return n.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return f[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return u[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"١","2":"٢","3":"٣","4":"٤","5":"٥","6":"٦","7":"٧","8":"٨","9":"٩","0":"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(n===0)return n+"-ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,r){var u={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return r==="m"?t?"хвіліна":"хвіліну":r==="h"?t?"гадзіна":"гадзіну":n+" "+i(u[r],+n)}return n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return n<4?"ночы":n<12?"раніцы":n<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return(n%10==2||n%10==3)&&n%100!=12&&n%100!=13?n+"-і":n+"-ы";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return n===0?n+"-ев":i===0?n+"-ен":i>10&&i<20?n+"-ти":t===1?n+"-ви":t===2?n+"-ри":t===7||t===8?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"১","2":"২","3":"৩","4":"৪","5":"৫","6":"৬","7":"৭","8":"৮","9":"৯","0":"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return n.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,isPM:function(n){return/^(দুপুর|বিকাল|রাত)$/.test(n)},meridiem:function(n){return n<4?"রাত":n<10?"সকাল":n<17?"দুপুর":n<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"༡","2":"༢","3":"༣","4":"༤","5":"༥","6":"༦","7":"༧","8":"༨","9":"༩","0":"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(n){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(n)},meridiem:function(n){return n<4?"མཚན་མོ":n<10?"ཞོགས་ཀས":n<17?"ཉིན་གུང":n<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){return n+" "+u({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function r(n){switch(i(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function i(n){return n>9?i(n%10):n}function u(n,t){return t===2?f(n):n}function f(n){var t={m:"v",b:"v",d:"z"};return t[n.charAt(0)]===undefined?n:t[n.charAt(0)]+n.substring(1)}return n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:r},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=n===1?"añ":"vet";return n+t},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(n===1?"minuta":n===2||n===3||n===4?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(n===1?"sat":n===2||n===3||n===4?"sata":"sati");case"dd":return r+(n===1?"dan":"dana");case"MM":return r+(n===1?"mjesec":n===2||n===3||n===4?"mjeseca":"mjeseci");case"yy":return r+(n===1?"godina":n===2||n===3||n===4?"godine":"godina")}}return n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=n===1?"r":n===2?"n":n===3?"r":n===4?"t":"è";return(t==="w"||t==="W")&&(i="a"),n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n){return n>1&&n<5&&~~(n/10)!=1}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekund":"pár sekundami";case"m":return t?"minuta":u?"minutu":"minutou";case"mm":return t||u?f+(i(n)?"minuty":"minut"):f+"minutami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodin"):f+"hodinami";case"d":return t||u?"den":"dnem";case"dd":return t||u?f+(i(n)?"dny":"dní"):f+"dny";case"M":return t||u?"měsíc":"měsícem";case"MM":return t||u?f+(i(n)?"měsíce":"měsíců"):f+"měsíci";case"y":return t||u?"rok":"rokem";case"yy":return t||u?f+(i(n)?"roky":"let"):f+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),u="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return n.defineLocale("cs",{months:r,monthsShort:u,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(r,u),shortMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(u),longMonthsParse:function(n){for(var i=[],t=0;t<12;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/ҫул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=t===40||t===50||t===60||t===80||t===100?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return n.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(n){return""===n},meridiem:function(n){return n<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(n){return n.replace(/،/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}return n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return(n+"").toLowerCase()[0]==="μ"},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,i){var r=this._calendarEl[n],u=i&&i.hours();return t(r)&&(r=r.apply(i)),r.replace("{}",u%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY h:mm A",LLLL:"dddd, D MMMM, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return n.charAt(0).toLowerCase()==="p"},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}return n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"۱","2":"۲","3":"۳","4":"۴","5":"۵","6":"۶","7":"۷","8":"۸","9":"۹","0":"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return n<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i,u){var f="";switch(i){case"s":return u?"muutaman sekunnin":"muutama sekunti";case"m":return u?"minuutin":"minuutti";case"mm":f=u?"minuutin":"minuuttia";break;case"h":return u?"tunnin":"tunti";case"hh":f=u?"tunnin":"tuntia";break;case"d":return u?"päivän":"päivä";case"dd":f=u?"päivän":"päivää";break;case"M":return u?"kuukauden":"kuukausi";case"MM":f=u?"kuukauden":"kuukautta";break;case"y":return u?"vuoden":"vuosi";case"yy":f=u?"vuoden":"vuotta"}return r(n,u)+" "+f}function r(n,t){return n<10?t?u[n]:i[n]:n}var i="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),u=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",i[7],i[8],i[9]];return n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(n===1?"er":"")},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(n===1?"er":"e")}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(n===1?"er":"e")},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){var t=n===1?"d":n%10==2?"na":"mh";return n+t},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return n==="uns segundos"?"nuns segundos":"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return n===2?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return n===2?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return n===2?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return n===2?"שנתיים":n%10==0&&n!==10?n+" שנה":n+" שנים"}}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="रात")?n<4?n:n+12:t==="सुबह"?n:t==="दोपहर"?n>=10?n:n+12:t==="शाम"?n+12:void 0},meridiem:function(n){return n<4?"रात":n<10?"सुबह":n<17?"दोपहर":n<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(n===1?"minuta":n===2||n===3||n===4?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(n===1?"sat":n===2||n===3||n===4?"sata":"sati");case"dd":return r+(n===1?"dan":"dana");case"MM":return r+(n===1?"mjesec":n===2||n===3||n===4?"mjeseca":"mjeseci");case"yy":return r+(n===1?"godina":n===2||n===3||n===4?"godine":"godina")}}return n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function i(n){return(n?"":"[múlt] ")+"["+r[this.day()]+"] LT[-kor]"}var r="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return n.charAt(1).toLowerCase()==="u"},meridiem:function(n,t,i){return n<12?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return n<4?"գիշերվա":n<12?"առավոտվա":n<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return n===1?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="pagi")?n:t==="siang"?n>=11?n:n+12:t==="sore"||t==="malam"?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n){return n%100==11?!0:n%10==1?!1:!0}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return i(n)?f+(t||u?"mínútur":"mínútum"):t?f+"mínúta":f+"mínútu";case"hh":return i(n)?f+(t||u?"klukkustundir":"klukkustundum"):f+"klukkustund";case"d":return t?"dagur":u?"dag":"degi";case"dd":return i(n)?t?f+"dagar":f+(u?"daga":"dögum"):t?f+"dagur":f+(u?"dag":"degi");case"M":return t?"mánuður":u?"mánuð":"mánuði";case"MM":return i(n)?t?f+"mánuðir":f+(u?"mánuði":"mánuðum"):t?f+"mánuður":f+(u?"mánuð":"mánuði");case"y":return t||u?"ár":"ári";case"yy":return i(n)?f+(t||u?"ár":"árum"):f+(t||u?"ár":"ári")}}return n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return n==="午後"},meridiem:function(n){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="enjing")?n:t==="siyang"?n>=11?n:n+12:t==="sonten"||t==="ndalu"?n+12:void 0},meridiem:function(n){return n<11?"enjing":n<15?"siyang":n<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return n===0?n:n===1?n+"-ლი":n<20||n<=100&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return n.defineLocale("kk",{months:"Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қараша_Желтоқсан".split("_"),monthsShort:"Қаң_Ақп_Нау_Сәу_Мам_Мау_Шіл_Там_Қыр_Қаз_Қар_Жел".split("_"),weekdays:"Жексенбі_Дүйсенбі_Сейсенбі_Сәрсенбі_Бейсенбі_Жұма_Сенбі".split("_"),weekdaysShort:"Жек_Дүй_Сей_Сәр_Бей_Жұм_Сен".split("_"),weekdaysMin:"Жк_Дй_Сй_Ср_Бй_Жм_Сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(n){var i=n%10,r=n>=100?100:null;return n+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return n==="오후"},meridiem:function(n){return n<12?"오전":"오후"}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function r(n){var i=n.substr(0,n.indexOf(" "));return t(i)?"a "+n:"an "+n}function u(n){var i=n.substr(0,n.indexOf(" "));return t(i)?"viru "+n:"virun "+n}function t(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7?!0:!1;if(n<100){var i=n%10,r=n/10;return i===0?t(r):t(i)}if(n<1e4){while(n>=10)n=n/10;return t(n)}return n=n/1e3,t(n)}return n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:r,past:u,s:"e puer Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d Méint",y:i,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(n){return n==="ຕອນແລງ"},meridiem:function(n){return n<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function f(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function i(n,i,r,u){return i?t(r)[0]:u?t(r)[1]:t(r)[2]}function u(n){return n%10==0||n>10&&n<20}function t(n){return e[n].split("_")}function r(n,r,f,e){var o=n+" ";return n===1?o+i(n,r,f[0],e):r?o+(u(n)?t(f)[1]:t(f)[0]):e?o+t(f)[1]:o+(u(n)?t(f)[1]:t(f)[2])}var e={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:f,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function r(n,t,i){return i?t%10==1&&t!==11?n[2]:n[3]:t%10==1&&t!==11?n[0]:n[1]}function t(n,t,i){return n+" "+r(u[i],n,t)}function i(n,t,i){return r(u[i],n,t)}function f(n,t){return t?"dažas sekundes":"dažām sekundēm"}var u={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:f,m:i,mm:t,h:i,hh:t,d:i,dd:t,M:i,MM:t,y:i,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return n===1?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return r.length===1?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return n===0?n+"-ев":i===0?n+"-ен":i>10&&i<20?n+"-ти":t===1?n+"-ви":t===2?n+"-ри":t===7||t===8?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(n){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(n)},meridiem:function(n){return n<4?"രാത്രി":n<12?"രാവിലെ":n<17?"ഉച്ച കഴിഞ്ഞ്":n<20?"വൈകുന്നേരം":"രാത്രി"}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}var i={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return r[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return i[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="रात्री")?n<4?n:n+12:t==="सकाळी"?n:t==="दुपारी"?n>=10?n:n+12:t==="सायंकाळी"?n+12:void 0},meridiem:function(n){return n<4?"रात्री":n<10?"सकाळी":n<17?"दुपारी":n<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="pagi")?n:t==="tengahari"?n>=11?n:n+12:t==="petang"||t==="malam"?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="pagi")?n:t==="tengahari"?n>=11?n:n+12:t==="petang"||t==="malam"?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"၁","2":"၂","3":"၃","4":"၄","5":"၅","6":"၆","7":"၇","8":"၈","9":"၉","0":"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="राति")?n<4?n:n+12:t==="बिहान"?n:t==="दिउँसो"?n>=10?n:n+12:t==="साँझ"?n+12:void 0},meridiem:function(n){return n<3?"राति":n<12?"बिहान":n<16?"दिउँसो":n<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function t(n,t,r){var u=n+" ";switch(r){case"m":return t?"minuta":"minutę";case"mm":return u+(i(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return u+(i(n)?"godziny":"godzin");case"MM":return u+(i(n)?"miesiące":"miesięcy");case"yy":return u+(i(n)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),u="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return n.defineLocale("pl",{months:function(n,t){return t===""?"("+u[n.month()]+"|"+r[n.month()]+")":/D MMMM/.test(t)?u[n.month()]:r[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:t,mm:t,h:t,hh:t,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:t,y:"rok",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}return n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function r(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,i){var u={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return i==="m"?t?"минута":"минуту":n+" "+r(u[i],+n)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return n.defineLocale("ru",{months:{format:"Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря".split("_"),standalone:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_")},monthsShort:{format:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_"),standalone:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_")},weekdays:{standalone:"Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота".split("_"),format:"Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),weekdaysMin:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(n){if(n.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}else return this.day()===2?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(n){if(n.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}else return this.day()===2?"[Во] dddd [в] LT":"[В] dddd [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return n<4?"ночи":n<12?"утра":n<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(n){return n+" වැනි"},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function i(n){return n>1&&n<5}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":u?"minútu":"minútou";case"mm":return t||u?f+(i(n)?"minúty":"minút"):f+"minútami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodín"):f+"hodinami";case"d":return t||u?"deň":"dňom";case"dd":return t||u?f+(i(n)?"dni":"dní"):f+"dňami";case"M":return t||u?"mesiac":"mesiacom";case"MM":return t||u?f+(i(n)?"mesiace":"mesiacov"):f+"mesiacmi";case"y":return t||u?"rok":"rokom";case"yy":return t||u?f+(i(n)?"roky":"rokov"):f+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),u="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return n.defineLocale("sk",{months:r,monthsShort:u,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(n===1?t?"minuta":"minuto":n===2?t||r?"minuti":"minutama":n<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(n===1?t?"ura":"uro":n===2?t||r?"uri":"urama":n<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(n===1?t||r?"dan":"dnem":n===2?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(n===1?t||r?"mesec":"mesecem":n===2?t||r?"meseca":"mesecema":n<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(n===1?t||r?"leto":"letom":n===2?t||r?"leti":"letoma":n<5?t||r?"leta":"leti":t||r?"let":"leti")}}return n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(n){return n.charAt(0)==="M"},meridiem:function(n){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return n===1?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return r.length===1?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return n===1?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return r.length===1?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"e":t===1?"a":t===2?"a":t===3?"e":"e";return n+i},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={"1":"௧","2":"௨","3":"௩","4":"௪","5":"௫","6":"௬","7":"௭","8":"௮","9":"௯","0":"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return n<2?" யாமம்":n<6?" வைகறை":n<10?" காலை":n<14?" நண்பகல்":n<18?" எற்பாடு":n<22?" மாலை":" யாமம்"},meridiemHour:function(n,t){return n===12&&(n=0),t==="யாமம்"?n<2?n:n+12:t==="வைகறை"||t==="காலை"?n:t==="நண்பகல்"?n>=10?n:n+12:n+12},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="రాత్రి")?n<4?n:n+12:t==="ఉదయం"?n:t==="మధ్యాహ్నం"?n>=10?n:n+12:t==="సాయంత్రం"?n+12:void 0},meridiem:function(n){return n<4?"రాత్రి":n<10?"ఉదయం":n<17?"మధ్యాహ్నం":n<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return n==="หลังเที่ยง"},meridiem:function(n){return n<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function r(n){var t=n;return n.indexOf("jaj")!==-1?t.slice(0,-3)+"leS":n.indexOf("jar")!==-1?t.slice(0,-3)+"waQ":n.indexOf("DIS")!==-1?t.slice(0,-3)+"nem":t+" pIq"}function u(n){var t=n;return n.indexOf("jaj")!==-1?t.slice(0,-3)+"Hu’":n.indexOf("jar")!==-1?t.slice(0,-3)+"wen":n.indexOf("DIS")!==-1?t.slice(0,-3)+"ben":t+" ret"}function t(n,t,i){var r=f(n);switch(i){case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function f(n){var r=Math.floor(n%1e3/100),u=Math.floor(n%100/10),f=n%10,t="";return r>0&&(t+=i[r]+"vatlh"),u>0&&(t+=(t!==""?" ":"")+i[u]+"maH"),f>0&&(t+=(t!==""?" ":"")+i[f]),t===""?"pagh":t}var i="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");return n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:r,past:u,s:"puS lup",m:"wa’ tup",mm:t,h:"wa’ rep",hh:t,d:"wa’ jaj",dd:t,M:"wa’ jar",MM:t,y:"wa’ DIS",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(n===0)return n+"'ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function t(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",""+n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",""+n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",""+n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",""+n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",""+n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}return n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiem:function(n,t,i){return n>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";function r(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,i){var u={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return i==="m"?t?"хвилина":"хвилину":i==="h"?t?"година":"годину":n+" "+r(u[i],+n)}function u(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function i(n){return function(){return n+"о"+(this.hours()===11?"б":"")+"] LT"}}return n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:u,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return n<4?"ночі":n<12?"ранку":n<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return n===12&&(n=0),t==="凌晨"||t==="早上"||t==="上午"?n:t==="下午"||t==="晚上"?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=n*100+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return this.minutes()===0?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return this.minutes()===0?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return this.minutes()===0?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()-i.unix()>=604800?"[下]":"[本]",this.minutes()===0?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",this.minutes()===0?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})})},function(n,t,i){(function(n,t){t(i(2))})(this,function(n){"use strict";return n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="早上"||t==="上午")?n:t==="中午"?n>=11?n:n+12:t==="下午"||t==="晚上"?n+12:void 0},meridiem:function(n,t){var i=n*100+t;return i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})})},function(n){"use strict";function t(n){if(n===null||n===undefined)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;n.exports=Object.assign||function(n){for(var u,s=t(n),e,o,f,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(o in u)i.call(u,o)&&(s[o]=u[o]);if(Object.getOwnPropertySymbols)for(e=Object.getOwnPropertySymbols(u),f=0;f<e.length;f++)r.call(u,e[f])&&(s[e[f]]=u[e[f]])}return s}},function(n,t,i){"use strict";function f(n,t,i){return n&&i.forEach(function(i){t[i]=n[i]}),t}var r=i(101),u=i(103),e=Object.keys(u);n.exports=function(n,t){var i=e;return(t&&(i=Object.keys(t)),t=t||u,!n)?r({},t):f(n,r({},t),i)}},function(n,t,i){"use strict";var r=i(104);n.exports={weekDayNames:r,weekStartDay:null,locale:null,dayFormat:"D",monthFormat:"MMMM",yearFormat:"YYYY",navPrev:"‹",navNext:"›",view:null,date:null,minDate:null,maxDate:null,viewDate:null,dateFormat:"YYYY-MM-DD",onRenderDay:null,renderDay:null,alwaysShowPrevWeek:!1}},function(n,t,i){"use strict";var r=i(2),u=r().startOf("week").format("d")*1;n.exports=function(n,t){var i,f,e,o;for(t&&(f=r.localeData(t),i=f&&f._weekdaysShort?f._weekdaysShort:i),i=(i||r.weekdaysShort()).concat(),e=i,o=n==null?u:n;o>0;)e.push(e.shift()),o--;return e}},function(n,t,i){"use strict";function c(){}var f=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),r=i(1),e=i(2),l=i(101),a=i(106),v=i(102),y=i(108),o=i(107),u=i(109),s,h=r.createClass({displayName:"MonthView",formatAsDay:function(n,t){return n.format(t||"D")},getDefaultProps:function(){return v()},getInitialState:function(){return{range:null}},getWeekStartMoment:function(n){var t=this.weekStartDay;return this.toMoment(n).day(t)},getDaysInMonth:function(n){var i=this.toMoment(n).startOf("month"),f=this.toMoment(n).startOf("month").add(-1,"days"),t=this.getWeekStartMoment(i),r=[],u=0;for(f.isBefore(t)&&(this.props.alwaysShowPrevWeek||!t.isSame(i))&&t.add(-1,"weeks");u<42;u++)r.push(this.toMoment(t)),t.add(1,"days");return r},render:function(){var n=l({},this.props),f;this.toMoment=function(t,i){return o(t,i||n.dateFormat,{locale:n.locale})};s=+this.toMoment().startOf("day");var t=n.dateFormat,i=n.viewMoment=this.toMoment(n.viewDate,t),u=n.weekStartDay;return u==null&&(u=n.localeData._week?n.localeData._week.dow:null),this.weekStartDay=n.weekStartDay=u,n.minDate&&e.isMoment(n.minDate)&&n.minDate.startOf("day"),n.minDate&&(n.minDate=+this.toMoment(n.minDate,t)),n.maxDate&&(n.maxDate=+this.toMoment(n.maxDate,t)),this.monthFirst=this.toMoment(i).startOf("month"),this.monthLast=this.toMoment(i).endOf("month"),n.date&&(n.moment=this.props.range?null:this.toMoment(n.date).startOf("day")),f=this.getDaysInMonth(i),r.createElement("div",{className:"dp-table dp-month-view",onMouseLeave:n.highlightRangeOnMouseMove&&this.handleViewMouseLeave},this.renderWeekDayNames(),this.renderDays(n,f))},handleViewMouseLeave:function(){this.state.range&&this.setState({range:null})},renderWeekNumber:function(n,t){var u=t[0],f=u.weeks(),s=+u,e={key:"week",className:"dp-cell dp-weeknumber",week:f,days:t,date:u,children:f},o=n.renderWeekNumber,i;return o&&(i=o(e)),i===undefined&&(i=r.createElement("div",e)),i},renderDays:function(n,t){for(var o=t.map(function(t){return this.renderDay(n,t)},this),s=t.length,e=[],h=Math.ceil(s/7),i=0,u,f;i<h;i++)u=i*7,f=(i+1)*7,e.push([n.weekNumbers&&this.renderWeekNumber(n,t.slice(u,f))].concat(o.slice(u,f)));return e.map(function(n,t){return r.createElement("div",{key:"row"+t,className:"dp-week dp-row"},n)})},renderDay:function(n,t){var p=a.day(t,n.dayFormat),o=["dp-cell dp-day"],h=+t,c=this.toMoment(t),d=this.handleClick.bind(this,n,t,h),l=this.state.range||this.props.range,g,nt,w,i;if(h==s?o.push("dp-current"):h<this.monthFirst?o.push("dp-prev"):h>this.monthLast&&o.push("dp-next"),n.minDate&&t<n.minDate&&(o.push("dp-disabled dp-before-min"),g=!0),n.maxDate&&t>n.maxDate&&(o.push("dp-disabled dp-after-max"),nt=!0),h==n.moment&&o.push("dp-value"),l){var v=c,b=e(v).endOf("day"),tt=f(l,2),it=tt[0],rt=tt[1];(u(v,l)||u(b,l)||it&&u(it,[v,b])||rt&&u(rt,[v,b]))&&o.push("dp-in-range")}w=c.day();(w===0||w===6)&&(o.push("dp-weekend"),n.highlightWeekends&&o.push("dp-weekend-highlight"));i={role:"link",tabIndex:0,key:p,text:p,date:c,moment:c,className:o.join(" "),style:{},onClick:d,onKeyUp:y(d),children:p};n.range&&n.highlightRangeOnMouseMove&&(i.onMouseEnter=this.handleDayMouseEnter.bind(this,i));g&&(i.isDisabled=!0,i.beforeMinDate=!0);nt&&(i.isDisabled=!0,i.afterMaxDate=!0);typeof n.onRenderDay=="function"&&(i=n.onRenderDay(i));var ut=r.DOM.div,ft=n.renderDay||ut,k=ft(i);return k===undefined&&(k=ut(i)),k},handleDayMouseEnter:function(n){var t=this.props.range,i,r;t&&t.length==1?(i=f(t,1),r=i[0],this.setState({range:[r,n.date].sort(function(n,t){return n-t})})):this.state.range&&this.setState({range:null})},getWeekDayNames:function(n){var t,i,r;if(n=n||this.props,t=n.weekDayNames,i=this.weekStartDay,typeof t=="function")t=t(i,n.locale);else if(Array.isArray(t))for(t=[].concat(t),r=i;r>0;)t.push(t.shift()),r--;return t},renderWeekDayNames:function(){var n=this.props.weekNumbers?[this.props.weekNumberName]:[],t=n.concat(this.getWeekDayNames());return r.createElement("div",{className:"dp-row dp-week-day-names"},t.map(function(n,t){return r.createElement("div",{key:t,className:"dp-cell dp-week-day-name"},n)}))},handleClick:function(n,t,i,r){n.minDate&&i<n.minDate||n.maxDate&&i>n.maxDate||(r.target.value=t,(n.onChange||c)(t,r))}});h.getHeaderText=function(n,t){return o(n,null,{locale:t.locale}).format("MMMM YYYY")};n.exports=h},function(n,t,i){"use strict";function r(n,t){return f(n).format(t)}var u=i(103),f=i(107);n.exports={day:function(n,t){return r(n,t||u.dayFormat)},month:function(n,t){return r(n,t||u.monthFormat)},year:function(n,t){return r(n,t||u.yearFormat)}}},function(n,t,i){"use strict";var r=i(2),u=i(103);n.exports=function(n,t,i){var f=!!(i&&i.strict),e=i&&i.locale;return(t=t||u.dateFormat,typeof n=="string")?r(n,t,e,f):r(n==null?new Date:n,undefined,e,f)}},function(n){"use strict";n.exports=function(n){return function(t){t.key=="Enter"&&n(t)}}},function(n){"use strict";var t=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}();n.exports=function(n,i){var r=t(i,2),u=r[0],f=r[1];return n?(u,f)?u.isSameOrBefore(n)&&f.isSameOrAfter(n):!1:!1}},function(n,t,i){"use strict";function o(){}var s=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),u=i(1),r=i(2),h=i(106),c=i(102),l=i(107),a=i(108),v=i(101),f=i(109),y,e=u.createClass({displayName:"YearView",getDefaultProps:function(){return c()},getMonthsInYear:function(n){for(var t=r(n).startOf("year"),i=[],u=0;u<12;u++)i.push(r(t)),t.add(1,"month");return i},render:function(){var n,t,i;return y=+r().startOf("day"),n=v({},this.props),t=n.viewMoment=r(this.props.viewDate),this.props.range||(n.moment=r(n.date).startOf("month")),i=this.getMonthsInYear(t),u.createElement("div",{className:"dp-table dp-year-view"},this.renderMonths(n,i))},renderMonths:function(n,t){for(var f=t.map(function(t){return this.renderMonth(n,t)},this),e=t.length,r=[],o=Math.ceil(e/4),i=0;i<o;i++)r.push(f.slice(i*4,(i+1)*4));return r.map(function(n,t){return u.createElement("div",{key:"row"+t,className:"dp-row"},n)})},renderMonth:function(n,t){var l=h.month(t,n.monthFormat),e=["dp-cell dp-month"],w=+t,o;if(n.range){var i=t,c=r(i).endOf("month"),v=s(n.range,2),y=v[0],p=v[1];(f(i,n.range)||f(c,n.range)||y&&f(y,[i,c])||p&&f(p,[i,c]))&&e.push("dp-in-range")}return w==n.moment&&e.push("dp-value"),o=this.handleClick.bind(this,n,t),u.createElement("div",{tabIndex:"0",role:"link",key:l,className:e.join(" "),onClick:o,onKeyUp:a(o)},l)},handleClick:function(n,t,i){i.target.value=t;(n.onSelect||o)(t,i)}});e.getHeaderText=function(n,t){return l(n,null,{locale:t.locale}).format("YYYY")};n.exports=e},function(n,t,i){"use strict";function s(){}var h=function(){function n(n,t){var r=[],u=!0,f=!1,e=undefined,i,o;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done);u=!0)if(r.push(o.value),t&&r.length===t)break}catch(s){f=!0;e=s}finally{try{!u&&i["return"]&&i["return"]()}finally{if(f)throw e;}}return r}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return n(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),u=i(1),r=i(2),e=i(101),c=i(106),l=i(102),y=i(107),a=i(108),e=i(101),f=i(109),v,o=u.createClass({displayName:"DecadeView",getDefaultProps:function(){return l()},getYearsInDecade:function(n){var t=r(n).get("year"),e=t%10;t=t-e-1;for(var i=[],u=0,f=r(t,"YYYY").startOf("year");u<12;u++)i.push(r(f)),f.add(1,"year");return i},render:function(){var n,t,i;return v=+r().startOf("day"),n=e({},this.props),t=n.viewMoment=r(this.props.viewDate),this.props.range||(n.moment=r(n.date).startOf("year")),i=this.getYearsInDecade(t),u.createElement("div",{className:"dp-table dp-decade-view"},this.renderYears(n,i))},renderYears:function(n,t){for(var f=t.map(function(t,i,r){return this.renderYear(n,t,i,r)},this),e=t.length,r=[],o=Math.ceil(e/4),i=0;i<o;i++)r.push(f.slice(i*4,(i+1)*4));return r.map(function(n,t){return u.createElement("div",{key:"row"+t,className:"dp-row"},n)})},renderYear:function(n,t,i,e){var y=c.year(t,n.yearFormat),o=["dp-cell dp-year"],k=+t,l;if(n.range){var s=t,v=r(s).endOf("year"),p=h(n.range,2),w=p[0],b=p[1];(f(s,n.range)||f(v,n.range)||w&&f(w,[s,v])||b&&f(b,[s,v]))&&o.push("dp-in-range")}return k!=n.moment||n.range||o.push("dp-value"),i||o.push("dp-prev"),i==e.length-1&&o.push("dp-next"),l=this.handleClick.bind(this,n,t),u.createElement("div",{role:"link",tabIndex:"0",key:y,className:o.join(" "),onClick:l,onKeyUp:a(l)},y)},handleClick:function(n,t,i){i.target.value=t;(n.onSelect||s)(t,i)}});o.getHeaderText=function(n){var t=r(n).get("year"),i=t%10;return t=t-i-1,t+" - "+(t+11)};n.exports=o},function(n,t,i){"use strict";var r=i(1),u=r.PropTypes,f=i(108);n.exports=r.createClass({displayName:"DatePickerHeader",propTypes:{onChange:u.func,onPrev:u.func,onNext:u.func,colspan:u.number,children:u.node},render:function(){var n=this.props;return r.createElement("div",{className:"dp-header"},r.createElement("div",{className:"dp-nav-table"},r.createElement("div",{className:"dp-row"},r.createElement("div",{tabIndex:"0",role:"link",className:"dp-prev-nav dp-nav-cell dp-cell",onClick:n.onPrev,onKeyUp:f(n.onPrev)},n.prevText),r.createElement("div",{tabIndex:"0",role:"link",className:"dp-nav-view dp-cell",colSpan:n.colspan,onClick:n.onChange,onKeyUp:f(n.onChange)},n.children),r.createElement("div",{tabIndex:"0",role:"link",className:"dp-next-nav dp-nav-cell dp-cell",onClick:n.onNext,onKeyUp:f(n.onNext)},n.nextText))))}})}])}),function(n,t){(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module=="undefined"?"undefined":_typeof(module))==="object"?module.exports=t(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],t):(typeof exports=="undefined"?"undefined":_typeof(exports))==="object"?exports.Slider=t(require("react"),require("react-dom")):n.Slider=t(n.React,n.ReactDOM)}(this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";n.exports=i(1)},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}var o=i(2),u=r(o),s=i(3),h=i(11),e=r(h),c=i(18),f=r(c),l=i(20),a=r(l),v=i(13),y=r(v),p=u["default"].createClass({displayName:"Slider",mixins:[a["default"]],getInitialState:function(){return{breakpoint:null}},componentDidMount:function(){var t=this,n,i;this.props.responsive&&(n=this.props.responsive.map(function(n){return n.breakpoint}),n.sort(function(n,t){return n-t}),n.forEach(function(i,r){var u;u=r===0?f["default"]({minWidth:0,maxWidth:i}):f["default"]({minWidth:n[r-1],maxWidth:i});t.media(u,function(){t.setState({breakpoint:i})})}),i=f["default"]({minWidth:n.slice(-1)[0]}),this.media(i,function(){t.setState({breakpoint:null})}))},render:function(){var i=this,n,t;return this.state.breakpoint?(t=this.props.responsive.filter(function(n){return n.breakpoint===i.state.breakpoint}),n=t[0].settings==="unslick"?"unslick":e["default"]({},this.props,t[0].settings)):n=e["default"]({},y["default"],this.props),n==="unslick"?u["default"].createElement("div",null,this.props.children):u["default"].createElement(s.InnerSlider,n,this.props.children)}});n.exports=p},function(t){t.exports=n},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}var f;Object.defineProperty(t,"__esModule",{value:!0});f=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};var o=i(2),r=u(o),s=i(4),h=u(s),c=i(8),l=u(c),a=i(12),v=u(a),y=i(13),p=u(y),w=i(14),b=u(w),k=i(15),d=i(16),e=i(17),g=r["default"].createClass({displayName:"InnerSlider",mixins:[l["default"],h["default"]],getInitialState:function(){return v["default"]},getDefaultProps:function(){return p["default"]},componentWillMount:function(){var t,n;for(this.props.init&&this.props.init(),this.setState({mounted:!0}),t=[],n=0;n<this.props.children.length;n++)n>=this.state.currentSlide&&n<this.state.currentSlide+this.props.slidesToShow&&t.push(n);this.props.lazyLoad&&this.state.lazyLoadedList.length===0&&this.setState({lazyLoadedList:t})},componentDidMount:function(){this.initialize(this.props);this.adaptHeight();window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},componentWillUnmount:function(){window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized);this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)},componentWillReceiveProps:function(n){this.props.slickGoTo!=n.slickGoTo?this.changeSlide({message:"index",index:n.slickGoTo,currentSlide:this.state.currentSlide}):this.update(n)},componentDidUpdate:function(){this.adaptHeight()},onWindowResized:function(){this.update(this.props)},render:function(){var s=b["default"]("slick-initialized","slick-slider",this.props.className),h={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slidesToShow:this.props.slidesToShow,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth},t,i,u,o,n;return this.props.dots===!0&&this.state.slideCount>this.props.slidesToShow&&(i={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide},t=r["default"].createElement(d.Dots,i)),n={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide},this.props.arrows&&(u=r["default"].createElement(e.PrevArrow,n),o=r["default"].createElement(e.NextArrow,n)),r["default"].createElement("div",{className:s,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave},r["default"].createElement("div",{ref:"list",className:"slick-list",onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null},r["default"].createElement(k.Track,f({ref:"track"},h),this.props.children)),u,o,t)}});t.InnerSlider=g},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),e=i(8),h=f(e),o=i(11),u=f(o),s={changeSlide:function(n){var i,r,u,t;if(u=this.state.slideCount%this.props.slidesToScroll!=0,i=u?0:(this.state.slideCount-this.state.currentSlide)%this.props.slidesToScroll,n.message==="previous")r=i===0?this.props.slidesToScroll:this.props.slidesToShow-i,t=this.state.currentSlide-r;else if(n.message==="next")r=i===0?this.props.slidesToScroll:i,t=this.state.currentSlide+r;else if(n.message==="dots"){if(t=n.index*n.slidesToScroll,t===n.currentSlide)return}else if(n.message==="index"&&(t=n.index,t===n.currentSlide))return;this.slideHandler(t)},keyHandler:function(){},selectHandler:function(){},swipeStart:function(n){var t,i;this.props.swipe===!1||"ontouchend"in document&&this.props.swipe===!1||(this.props.draggable!==!1||n.type.indexOf("mouse")===-1)&&(t=n.touches!==undefined?n.touches[0].pageX:n.clientX,i=n.touches!==undefined?n.touches[0].pageY:n.clientY,this.setState({dragging:!0,touchObject:{startX:t,startY:i,curX:t,curY:i}}))},swipeMove:function(n){var f,e,o,t;if(this.state.dragging&&!this.state.animating){t=this.state.touchObject;e=r.getTrackLeft(u["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state));t.curX=n.touches?n.touches[0].pageX:n.clientX;t.curY=n.touches?n.touches[0].pageY:n.clientY;t.swipeLength=Math.round(Math.sqrt(Math.pow(t.curX-t.startX,2)));o=(this.props.rtl===!1?1:-1)*(t.curX>t.startX?1:-1);var s=this.state.currentSlide,c=Math.ceil(this.state.slideCount/this.props.slidesToScroll),i=this.swipeDirection(this.state.touchObject),h=t.swipeLength;(this.props.infinite===!1&&(s===0&&i==="right"||s+1>=c&&i==="left")&&(h=t.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(i),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(i),this.setState({swiped:!0})),f=e+h*o,this.setState({touchObject:t,swipeLeft:f,trackStyle:r.getTrackCSS(u["default"]({left:f},this.props,this.state))}),Math.abs(t.curX-t.startX)<Math.abs(t.curY-t.startY)*.8)||t.swipeLength>4&&n.preventDefault()}},swipeEnd:function(n){var i;if(this.state.dragging){var t=this.state.touchObject,e=this.state.listWidth/this.props.touchThreshold,f=this.swipeDirection(t);(this.setState({dragging:!1,edgeDragged:!1,swiped:!1,swipeLeft:null,touchObject:{}}),t.swipeLength)&&(t.swipeLength>e?(n.preventDefault(),f==="left"?this.slideHandler(this.state.currentSlide+this.props.slidesToScroll):f==="right"?this.slideHandler(this.state.currentSlide-this.props.slidesToScroll):this.slideHandler(this.state.currentSlide)):(i=r.getTrackLeft(u["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},this.props,this.state)),this.setState({trackStyle:r.getTrackAnimateCSS(u["default"]({left:i},this.props,this.state))})))}},onInnerSliderEnter:function(){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};t["default"]=s;n.exports=t["default"]},function(n,t,i){"use strict";function s(n){return n&&n.__esModule?n:{"default":n}}var f,e;Object.defineProperty(t,"__esModule",{value:!0});var h=i(6),r=s(h),u=function(n,t){return t.reduce(function(t,i){return t&&n.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",n)},o=function(n){var i,t;return u(n,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),i=n.variableWidth?(n.slideCount+2*n.slidesToShow)*n.slideWidth:n.centerMode?(n.slideCount+2*(n.slidesToShow+1))*n.slideWidth:(n.slideCount+2*n.slidesToShow)*n.slideWidth,t={opacity:1,width:i,WebkitTransform:"translate3d("+n.left+"px, 0px, 0px)",transform:"translate3d("+n.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:"translateX("+n.left+"px)"},!window.addEventListener&&window.attachEvent&&(t.marginLeft=n.left+"px"),t};t.getTrackCSS=o;f=function(n){u(n,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=o(n);return t.WebkitTransition="-webkit-transform "+n.speed+"ms "+n.cssEase,t.transition="transform "+n.speed+"ms "+n.cssEase,t};t.getTrackAnimateCSS=f;e=function(n){var i,f,t,e;return(u(n,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth"]),i=0,n.fade)?0:(n.infinite&&(n.slideCount>n.slidesToShow&&(i=n.slideWidth*n.slidesToShow*-1),n.slideCount%n.slidesToScroll!=0&&n.slideIndex+n.slidesToScroll>n.slideCount&&n.slideCount>n.slidesToShow&&(i=n.slideIndex>n.slideCount?(n.slidesToShow-(n.slideIndex-n.slideCount))*n.slideWidth*-1:n.slideCount%n.slidesToScroll*n.slideWidth*-1)),n.centerMode&&(n.infinite?i+=n.slideWidth*Math.floor(n.slidesToShow/2):i=n.slideWidth*Math.floor(n.slidesToShow/2)),f=n.slideIndex*n.slideWidth*-1+i,n.variableWidth===!0&&(n.slideCount<=n.slidesToShow||n.infinite===!1?t=r["default"].findDOMNode(n.trackRef).childNodes[n.slideIndex]:(e=n.slideIndex+n.slidesToShow,t=r["default"].findDOMNode(n.trackRef).childNodes[e]),f=t?t.offsetLeft*-1:0,n.centerMode===!0&&(t=n.infinite===!1?r["default"].findDOMNode(n.trackRef).children[n.slideIndex]:r["default"].findDOMNode(n.trackRef).children[n.slideIndex+n.slidesToShow+1],f=(t?t.offsetLeft*-1:0)+(n.listWidth-t.offsetWidth)/2)),f)};t.getTrackLeft=e},function(n,t,i){"use strict";function r(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=r(f),e=i(7),o=r(e),s=u["default"].version>="0.14.0"?o["default"]:u["default"];t["default"]=s;n.exports=t["default"]},function(n){n.exports=t},function(n,t,i){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var h=i(2),s=e(h),c=i(6),r=e(c),l=i(9),o=e(l),u=i(5),a=i(11),f=e(a),v={initialize:function(n){var t=s["default"].Children.count(n.children),i=this.getWidth(r["default"].findDOMNode(this.refs.list)),e=this.getWidth(r["default"].findDOMNode(this.refs.track)),o=this.getWidth(r["default"].findDOMNode(this))/n.slidesToShow,h=n.rtl?t-1-n.initialSlide:n.initialSlide;this.setState({slideCount:t,slideWidth:o,listWidth:i,trackWidth:e,currentSlide:h},function(){var t=u.getTrackLeft(f["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},n,this.state)),i=u.getTrackCSS(f["default"]({left:t},n,this.state));this.setState({trackStyle:i});this.autoPlay()})},update:function(n){var t=s["default"].Children.count(n.children),i=this.getWidth(r["default"].findDOMNode(this.refs.list)),e=this.getWidth(r["default"].findDOMNode(this.refs.track)),o=this.getWidth(r["default"].findDOMNode(this))/n.slidesToShow;this.setState({slideCount:t,slideWidth:o,listWidth:i,trackWidth:e},function(){var t=u.getTrackLeft(f["default"]({slideIndex:this.state.currentSlide,trackRef:this.refs.track},n,this.state)),i=u.getTrackCSS(f["default"]({left:t},n,this.state));this.setState({trackStyle:i})})},getWidth:function(n){return n.getBoundingClientRect().width||n.offsetWidth},adaptHeight:function(){var t,n;this.props.adaptiveHeight&&(t='[data-index="'+this.state.currentSlide+'"]',this.refs.list&&(n=r["default"].findDOMNode(this.refs.list),n.style.height=n.querySelector(t).offsetHeight+"px"))},slideHandler:function(n){var e=this,t,i,a,l,s,h,v,c,y;if((!this.props.waitForAnimate||!this.state.animating)&&this.state.currentSlide!==n){if(this.props.fade){i=this.state.currentSlide;t=n<0?n+this.state.slideCount:n>=this.state.slideCount?n-this.state.slideCount:n;this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(t)<0&&this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(t)});s=function(){e.setState({animating:!1});e.props.afterChange&&e.props.afterChange(i);o["default"].removeEndEventListener(r["default"].findDOMNode(e.refs.track).children[i],s)};this.setState({animating:!0,currentSlide:t},function(){o["default"].addEndEventListener(r["default"].findDOMNode(this.refs.track).children[i],s)});this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i);this.autoPlay();return}if(t=n,i=t<0?this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!=0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+t:t>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!=0?0:t-this.state.slideCount:t,a=u.getTrackLeft(f["default"]({slideIndex:t,trackRef:this.refs.track},this.props,this.state)),l=u.getTrackLeft(f["default"]({slideIndex:i,trackRef:this.refs.track},this.props,this.state)),this.props.infinite===!1&&(a=l),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){for(h=!0,v=[],c=t;c<t+this.props.slidesToShow;c++)h=h&&this.state.lazyLoadedList.indexOf(c)>=0,h||v.push(c);h||this.setState({lazyLoadedList:this.state.lazyLoadedList.concat(v)})}this.props.useCSS===!1?this.setState({currentSlide:i,trackStyle:u.getTrackCSS(f["default"]({left:l},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)}):(y={animating:!1,currentSlide:i,trackStyle:u.getTrackCSS(f["default"]({left:l},this.props,this.state)),swipeLeft:null},s=function(){e.setState(y);e.props.afterChange&&e.props.afterChange(i);o["default"].removeEndEventListener(r["default"].findDOMNode(e.refs.track),s)},this.setState({animating:!0,currentSlide:t,trackStyle:u.getTrackAnimateCSS(f["default"]({left:a},this.props,this.state))},function(){o["default"].addEndEventListener(r["default"].findDOMNode(this.refs.track),s)}));this.autoPlay()}},swipeDirection:function(n){var i,r,u,t;return(i=n.startX-n.curX,r=n.startY-n.curY,u=Math.atan2(r,i),t=Math.round(u*180/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315)?this.props.rtl===!1?"left":"right":t>=135&&t<=225?this.props.rtl===!1?"right":"left":"vertical"},autoPlay:function(){var n=this,t=function(){if(n.state.mounted){var t=n.props.rtl?n.state.currentSlide-n.props.slidesToScroll:n.state.currentSlide+n.props.slidesToScroll;n.slideHandler(t)}};this.props.autoplay&&(window.clearTimeout(this.state.autoPlayTimer),this.setState({autoPlayTimer:window.setTimeout(t,this.props.autoplaySpeed)}))},pause:function(){this.state.autoPlayTimer&&window.clearTimeout(this.state.autoPlayTimer)}};t["default"]=v;n.exports=t["default"]},function(n,t,i){"use strict";function e(){var f=document.createElement("div"),e=f.style,i,n,t;"AnimationEvent"in window||delete u.animationend.animation;"TransitionEvent"in window||delete u.transitionend.transition;for(i in u){n=u[i];for(t in n)if(t in e){r.push(n[t]);break}}}function o(n,t,i){n.addEventListener(t,i,!1)}function s(n,t,i){n.removeEventListener(t,i,!1)}var h=i(10),u={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},r=[],f;h.canUseDOM&&e();f={addEndEventListener:function(n,t){if(r.length===0){window.setTimeout(t,0);return}r.forEach(function(i){o(n,i,t)})},removeEndEventListener:function(n,t){r.length!==0&&r.forEach(function(i){s(n,i,t)})}};n.exports=f},function(n){"use strict";var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),i={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};n.exports=i},function(n){"use strict";function t(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}n.exports=Object.assign||function(n){for(var u,r,e=t(n),i,f=1;f<arguments.length;f++)for(u=arguments[f],r=Object.keys(Object(u)),i=0;i<r.length;i++)e[r[i]]=u[r[i]];return e}},function(n){"use strict";n.exports={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,slideCount:null,slideWidth:null,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0}},function(n){"use strict";n.exports={className:"",adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null}},function(n,t,i){var r;(function(){"use strict";function u(){for(var t="",n,i,r,f=0;f<arguments.length;f++)if(n=arguments[f],n)if(i=typeof n=="undefined"?"undefined":_typeof(n),"string"===i||"number"===i)t+=" "+n;else if(Array.isArray(n))t+=" "+u.apply(null,n);else if("object"===i)for(r in n)n.hasOwnProperty(r)&&n[r]&&(t+=" "+r);return t.substr(1)}typeof n!="undefined"&&n.exports?n.exports=u:!(r=function(){return u}.call(t,i,t,n),r!==undefined&&(n.exports=r))})()},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=f(s),h=i(11),u=f(h),c=i(14),o=f(c),e=function(n){var i,u,f,r,t;return n.rtl?(t=n.slideCount-1-n.index,console.log()):t=n.index,f=t<0||t>=n.slideCount,n.centerMode?(r=Math.floor(n.slidesToShow/2),u=(t-n.currentSlide)%n.slideCount==0,t>n.currentSlide-r-1&&t<=n.currentSlide+r&&(i=!0)):i=n.currentSlide<=t&&t<n.currentSlide+n.slidesToShow,o["default"]({"slick-slide":!0,"slick-active":i,"slick-center":u,"slick-cloned":f})},l=function(n){var t={};return(n.variableWidth===undefined||n.variableWidth===!1)&&(t.width=n.slideWidth),n.fade&&(t.position="relative",t.left=-n.index*n.slideWidth,t.opacity=n.currentSlide===n.index?1:0,t.transition="opacity "+n.speed+"ms "+n.cssEase,t.WebkitTransition="opacity "+n.speed+"ms "+n.cssEase),t},a=function(n){var i,f=[],s=[],h=[],c=r["default"].Children.count(n.children),t;return r["default"].Children.forEach(n.children,function(a,v){var y,p,b,w;t=!n.lazyLoad|(n.lazyLoad&&n.lazyLoadedList.indexOf(v)>=0)?a:r["default"].createElement("div",null);y=l(u["default"]({},n,{index:v}));p=e(u["default"]({index:v},n));b=t.props.className?o["default"](p,t.props.className):p;f.push(r["default"].cloneElement(t,{key:v,"data-index":v,className:b,style:u["default"]({},t.props.style||{},y)}));n.infinite&&n.fade===!1&&(w=n.variableWidth?n.slidesToShow+1:n.slidesToShow,v>=c-w&&(i=-(c-v),s.push(r["default"].cloneElement(t,{key:i,"data-index":i,className:e(u["default"]({index:i},n)),style:u["default"]({},t.props.style||{},y)}))),v<w&&(i=c+v,h.push(r["default"].cloneElement(t,{key:i,"data-index":i,className:e(u["default"]({index:i},n)),style:u["default"]({},t.props.style||{},y)}))))}),n.rtl?s.concat(f,h).reverse():s.concat(f,h)},v=r["default"].createClass({displayName:"Track",render:function(){var n=a(this.props);return r["default"].createElement("div",{className:"slick-track",style:this.props.trackStyle},n)}});t.Track=v},function(n,t,i){"use strict";function u(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=u(f),e=i(14),o=u(e),s=function(n){return Math.ceil(n.slideCount/n.slidesToScroll)},h=r["default"].createClass({displayName:"Dots",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n)},render:function(){var n=this,t=s({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll}),i=Array.apply(null,Array(t+1).join("0").split("")).map(function(t,i){var u=o["default"]({"slick-active":n.props.currentSlide===i*n.props.slidesToScroll}),f={message:"dots",index:i,slidesToScroll:n.props.slidesToScroll,currentSlide:n.props.currentSlide};return r["default"].createElement("li",{key:i,className:u},r["default"].createElement("button",{onClick:n.clickHandler.bind(n,f)},i))});return r["default"].createElement("ul",{className:this.props.dotsClass,style:{display:"block"}},i)}});t.Dots=h},function(n,t,i){"use strict";function f(n){return n&&n.__esModule?n:{"default":n}}var u,e;Object.defineProperty(t,"__esModule",{value:!0});u=Object.assign||function(n){for(var t,i,r=1;r<arguments.length;r++){t=arguments[r];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};var s=i(2),r=f(s),h=i(14),o=f(h),c=r["default"].createClass({displayName:"PrevArrow",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n,t)},render:function(){var t={"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"}),n;return!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,i=null),n={key:"0",ref:"previous","data-role":"none",className:o["default"](t),style:{display:"block"},onClick:i},this.props.prevArrow?r["default"].createElement(this.props.prevArrow,n):r["default"].createElement("button",u({key:"0",type:"button"},n)," Previous")}});t.PrevArrow=c;e=r["default"].createClass({displayName:"NextArrow",clickHandler:function(n,t){t.preventDefault();this.props.clickHandler(n,t)},render:function(){var n={"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"}),i;return this.props.infinite||(this.props.centerMode&&this.props.currentSlide>=this.props.slideCount-1?(n["slick-disabled"]=!0,t=null):this.props.currentSlide>=this.props.slideCount-this.props.slidesToShow&&(n["slick-disabled"]=!0,t=null),this.props.slideCount<=this.props.slidesToShow&&(n["slick-disabled"]=!0,t=null)),i={key:"1",ref:"next","data-role":"none",className:o["default"](n),style:{display:"block"},onClick:t},this.props.nextArrow?r["default"].createElement(this.props.nextArrow,i):r["default"].createElement("button",u({key:"1",type:"button"},i)," Next")}});t.NextArrow=e},function(n,t,i){var u=i(19),f=function(n){return/[height|width]$/.test(n)},r=function(n){var t="",i=Object.keys(n);return i.forEach(function(r,e){var o=n[r];r=u(r);f(r)&&typeof o=="number"&&(o=o+"px");t+=o===!0?r:o===!1?"not "+r:"("+r+": "+o+")";e<i.length-1&&(t+=" and ")}),t},e=function(n){var t="";return typeof n=="string"?n:n instanceof Array?(n.forEach(function(i,u){t+=r(i);u<n.length-1&&(t+=", ")}),t):r(n)};n.exports=e},function(n){var t=function(n){return n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()}).toLowerCase()};n.exports=t},function(n,t,i){var u=i(21),r=u&&i(22),f=i(18),e={media:function(n,t){n=f(n);typeof t=="function"&&(t={match:t});r.register(n,t);this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]);this._responsiveMediaHandlers.push({query:n,handler:t})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(n){r.unregister(n.query,n.handler)})}};n.exports=e},function(n){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement);n.exports=t},function(n,t,i){var r;(function(u,f,e){var o=window.matchMedia;typeof n!="undefined"&&n.exports?n.exports=e(o):!(r=function(){return f[u]=e(o)}.call(t,i,t,n),r!==undefined&&(n.exports=r))})("enquire",this,function(n){"use strict";function t(n,t){var i=0,u=n.length,r;for(i;i<u;i++)if(r=t(n[i],i),r===!1)break}function f(n){return Object.prototype.toString.apply(n)==="[object Array]"}function e(n){return typeof n=="function"}function i(n){this.options=n;n.deferSetup||this.setup()}function r(t,i){this.query=t;this.isUnconditional=i;this.handlers=[];this.mql=n(t);var r=this;this.listener=function(n){r.mql=n;r.assess()};this.mql.addListener(this.listener)}function u(){if(!n)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={};this.browserIsIncapable=!n("only all").matches}return i.prototype={setup:function(){this.options.setup&&this.options.setup();this.initialised=!0},on:function(){this.initialised||this.setup();this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},r.prototype={addHandler:function(n){var t=new i(n);this.handlers.push(t);this.matches()&&t.on()},removeHandler:function(n){var i=this.handlers;t(i,function(t,r){if(t.equals(n))return t.destroy(),!i.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(n){n.destroy()});this.mql.removeListener(this.listener);this.handlers.length=0},assess:function(){var n=this.matches()?"on":"off";t(this.handlers,function(t){t[n]()})}},u.prototype={register:function(n,i,u){var o=this.queries,s=u&&this.browserIsIncapable;return o[n]||(o[n]=new r(n,s)),e(i)&&(i={match:i}),f(i)||(i=[i]),t(i,function(t){o[n].addHandler(t)}),this},unregister:function(n,t){var i=this.queries[n];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[n])),this}},new u})}])});var BlogSection=React.createClass({displayName:"BlogSection",getInitialState:function(){var t=null,n;return this.props.InitialFromDate&&(t=new Date(this.props.InitialFromDate)),n=null,this.props.InitialToDate&&(n=new Date(this.props.InitialToDate)),{items:this.props.InitialItemList,topics:this.props.TopicList,fromDate:t,toDate:n,showNextPage:this.props.ShowNextPage,page:this.props.InitialPage}},refresh:function(){var n=this;this.setState({page:1},function(){n.queryData(!1)})},setFromDate:function(n){var t=new Date(n);this.setState({fromDate:t},this.queryData)},setToDate:function(n){var t=new Date(n);this.setState({toDate:t},this.queryData)},queryData:function(n,t){var u,f,e;n==undefined&&(n=!1);var o=this,r="",i={};for(this.state.fromDate&&(i.from=this.state.fromDate.format("isoDate")),this.state.toDate&&(i.to=this.state.toDate.format("isoDate")),u=0;u<this.state.topics.length;u++)f=this.state.topics[u],f.IsActive&&(r+=f.Id+",");r=r.substr(0,r.length-1);r!=""&&(i.topic=r);e=jQuery.param(i);window.history&&t!=!1&&window.history.pushState&&(e!=""?window.history.pushState(this.state,"","?"+e):window.history.pushState(this.state,"",window.location.pathname));i.altTemplate="JSON";i.page=this.state.page;console.log(i);$.getJSON(window.location.pathname,i,function(t){console.log(t);n?(console.log("append"),o.setState({showNextPage:t.ShowNextPage,items:o.state.items.concat(t.BlogListing)})):(console.log("not appending"),o.setState({showNextPage:t.ShowNextPage,items:t.BlogListing}))})},loadMore:function(n){n.preventDefault();var t=this.state.page+1,i=this;this.setState({page:t},function(){i.queryData(!0)})},toggleTopic:function(n,t,i){var r,u,f;for(i.preventDefault(),r=this.state.topics,u=0;u<r.length;u++)f=r[u],t.Id===f.Id&&(f.IsActive=!t.IsActive);return this.setState({topics:r},this.refresh),!1},componentDidMount:function(){var n=this;window.onpopstate=function(t){n.setState(t.state,function(){n.queryData(!1,!1)})}},render:function(){var i=this,e=function(n){console.log("ran createblog");var t;if(n)return n.HeaderImage&&(t=React.createElement("div",{className:"image"},React.createElement("img",{alt:n.Name,src:n.HeaderImage.BlogArticleImageUrl}))),React.createElement("article",{className:"col-md-12",key:n.Id,"data-taglist":n.Tags},React.createElement("a",{href:n.Url,className:"blog-item"},t,React.createElement("div",{className:"content"},React.createElement("h3",null,n.Name),React.createElement("p",null,n.Headline),React.createElement("time",{dateTime:new Date(n.ArticleDate).format("yyyy-mm-dd HH:MM")},React.createElement("span",{className:"date-day"},new Date(n.ArticleDate).format("d"))," ",React.createElement("span",{className:"date-month"},new Date(n.ArticleDate).format("mmm"))," ",React.createElement("span",{className:"date-year"},new Date(n.ArticleDate).format("yyyy"))))))},o=function(n){var t="";return n.IsActive&&(t="active"),React.createElement("a",{href:"javascript:void(0);",className:t,onClick:i.toggleTopic.bind(i,this,n),key:n.Id},n.Text)},r="",u,n,t,f;return this.state.showNextPage&&(r=React.createElement("a",{href:"javascript:void(0);",className:"button blue-button",onClick:this.loadMore},"Load more articles")),u="tag-list",n="",this.state.fromDate!=null&&(n=this.state.fromDate.format("dd mmm yyyy")),t="",this.state.toDate!=null&&(t=this.state.toDate.format("dd mmm yyyy")),this.state.topics&&(f=React.createElement("section",{className:"blog-tags img-watermark"},React.createElement("div",{className:"container"},React.createElement("h2",null,"Filter blog articles by ",React.createElement("strong",null,"topics")," you're interest in ",React.createElement("br",null)," and the ",React.createElement("strong",null,"date")," they were published:"),React.createElement("div",{className:u},this.state.topics.map(o)),React.createElement("div",{className:"date-filters"},React.createElement("div",{className:"field"},React.createElement("label",{htmlFor:"filter-from"},"From:"),React.createElement(Dropdown,{label:n},React.createElement(DatePicker,{id:"filter-from",date:this.state.fromDate,maxDate:this.state.toDate,onChange:this.setFromDate}))),React.createElement("div",{className:"field"},React.createElement("label",{htmlFor:"filter-to"},"To:"),React.createElement(Dropdown,{label:t},React.createElement(DatePicker,{id:"filter-to",date:this.state.toDate,minDate:this.state.fromDate,onChange:this.setToDate}))))))),React.createElement("div",null,f,React.createElement("section",{className:"blog-listing"},React.createElement("div",{className:"container"},React.createElement("div",{className:"row"},this.state.items.map(e),React.createElement("div",{className:"load-more"},r)))))}}),ContactMap=React.createClass({displayName:"ContactMap",getInitialState:function(){return{}},componentDidMount:function(){this.map=L.map("map",{attributionPrefix:"",center:[-31.95293,115.862113],zoom:15,dragging:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,boxZoom:!1,keyboard:!1,zoomControl:!1});var n=new L.TileLayer("https://api{s}.nowwhere.com.au/1.1.2/tile/50/{z}/{x}/{y}?key=15xuiGv8jN45H21OOY0vg75t15j33PA4QekPQ518",{id:"MapData Services Foundation Map",visible:!0,subdomains:["1","2","3","4"],attribution:"2014 MapData Services"}),t=L.icon({iconUrl:"/Scripts/leaflet/images/marker-icon.png",iconSize:[25,41],iconAnchor:[13,30]}),i=L.marker([-31.95293,115.862113],{icon:t}).addTo(this.map);this.map.addLayer(n)},render:function(){return React.createElement("div",{id:"map"})}}),MediaSection=React.createClass({displayName:"MediaSection",getInitialState:function(){var t=null,n;return this.props.InitialFromDate&&(t=new Date(this.props.InitialFromDate)),n=null,this.props.InitialToDate&&(n=new Date(this.props.InitialToDate)),{items:this.props.InitialItemList,showNextPage:this.props.ShowNextPage,fromDate:t,toDate:n,category:this.props.InitialCategory,page:this.props.InitialPage}},switchCategory:function(n){this.setState({category:n.target.value},this.queryData);this.state.page=1},setFromDate:function(n){var t=new Date(n);this.setState({fromDate:t},this.queryData)},setToDate:function(n){var t=new Date(n);this.setState({toDate:t},this.queryData)},componentDidMount:function(){var n=this;window.onpopstate=function(t){n.setState(t.state,function(){n.queryData(!1,!1)})}},loadMore:function(n){n.preventDefault();var t=this.state.page+1,i=this;this.setState({page:t},function(){i.queryData(!0)})},queryData:function(n,t){var r,i,u;n==undefined&&(n=!1);r=this;i={};this.state.category!="All"&&this.state.category!=""&&(i.category=this.state.category);this.state.fromDate&&(i.from=this.state.fromDate.format("isoDate"));this.state.toDate&&(i.to=this.state.toDate.format("isoDate"));u=jQuery.param(i);window.history&&t!=!1&&window.history.pushState&&(u!=""?window.history.pushState(this.state,"","?"+u):window.history.pushState(this.state,"",window.location.pathname));i.altTemplate="JSON";i.page=this.state.page;$.getJSON(window.location.pathname,i,function(t){n?r.setState({showNextPage:t.ShowNextPage,items:r.state.items.concat(t.MediaList)}):r.setState({showNextPage:t.ShowNextPage,items:t.MediaList})})},render:function(){var r=this,u=this.props.CategoryList.map(function(n,t){return React.createElement("option",{key:t,value:n},n)}),f=function(n){return React.createElement("div",{className:"col-md-12",key:n.Id},React.createElement("a",{href:n.Url,className:"content-box"},React.createElement("h3",null,n.Name),React.createElement("p",null,n.Category," | ",React.createElement("time",{dateTime:new Date(n.ArticleDate).format("yyyy-mm-dd HH:MM")},new Date(n.ArticleDate).format("d mmmm yyyy")))))},i="",n,t;return this.state.showNextPage&&(i=React.createElement("a",{href:"?page="+(this.state.page+1),className:"button",onClick:this.loadMore},"Load more")),n="",this.state.fromDate!=null&&(n=this.state.fromDate.format("dd mmm yyyy")),t="",this.state.toDate!=null&&(t=this.state.toDate.format("dd mmm yyyy")),React.createElement("div",null,React.createElement("div",{className:"media-filter"},React.createElement("div",{className:"container"},React.createElement("div",{className:"field-wrap"},React.createElement("div",{className:"field"},React.createElement("div",{className:"select"},React.createElement("label",{htmlFor:"filter-category"},"Category:"),React.createElement("select",{defaultValue:r.state.category,onChange:this.switchCategory,id:"filter-category"},React.createElement("option",null,"All"),u))),React.createElement("div",{className:"field"},React.createElement("label",{htmlFor:"filter-from"},"From:"),React.createElement(Dropdown,{label:n},React.createElement(DatePicker,{id:"filter-from",date:this.state.fromDate,maxDate:this.state.toDate,onChange:this.setFromDate}))),React.createElement("div",{className:"field"},React.createElement("label",{htmlFor:"filter-to"},"To:"),React.createElement(Dropdown,{label:t},React.createElement(DatePicker,{id:"filter-to",date:this.state.toDate,minDate:this.state.fromDate,onChange:this.setToDate})))))),React.createElement("div",{className:"media-listing"},React.createElement("div",{className:"container"},React.createElement("div",{className:"row"},this.state.items.map(f),React.createElement("div",{className:"load-more"},i)))))}}),OutageMap=React.createClass({displayName:"OutageMap",getInitialState:function(){return{suggestionList:[],outageList:[],value:"",lastUpdate:""}},componentDidMount:function(){function u(n){return n.reduce(function(t,i){return[t[0]+i[0]/n.length,t[1]+i[1]/n.length]},[0,0])}var r,t,n,i;this.map=L.map("map",{attributionPrefix:""});r=new L.TileLayer("https://api{s}.nowwhere.com.au/1.1.2/tile/50/{z}/{x}/{y}?key=15xuiGv8jN45H21OOY0vg75t15j33PA4QekPQ518",{id:"MapData Services Foundation Map",visible:!0,subdomains:["1","2","3","4"],attribution:"2016 MapData Services"});this.map.addLayer(r);this.map.fitBounds(this.getWesternPowerBounds());t=L.markerClusterGroup({showCoverageOnHover:!1,maxClusterRadius:20});this.map.addLayer(t);n=this;$.get("https://services2.arcgis.com/tBLxde4cxSlNUxsM/arcgis/rest/services/WP_Outage_Prod/FeatureServer/0",{f:"json",returnGeometry:!1},function(t){var u=new Date(t.editingInfo.lastEditDate),i=u.getHours(),r=u.getMinutes(),e=i>=12?"pm":"am",f;i=i%12;i=i?i:12;r=r<10?"0"+r:r;f=i+":"+r+" "+e;n.setState({lastUpdate:f})},"jsonp");i=L.esri.featureLayer({url:"https://services2.arcgis.com/tBLxde4cxSlNUxsM/arcgis/rest/services/WP_Outage_Prod/FeatureServer/0",style:function(){return{color:"#ff0000",weight:2}},onEachFeature:function(n){var i=u(n.geometry.coordinates[0]),e=[i[1],i[0]],r="/img/base/svg/marker-red.svg",f="Unplanned outage";n.properties.ENARNUMBER!=""&&(isPlannedOutage=!0,f="Planned outage",r="/img/base/svg/marker-yellow.svg");var o=L.icon({iconUrl:r,iconSize:[26,30],iconAnchor:[13,30]}),s=n.properties.ESTIMATEDRESTORATIONTIME,h="<div><h3>"+f+"<\/h3><p>Estimated restoration time:<br />"+s+"<\/p><p>Affected customers: "+n.properties.NOCUSTOMERSIMPACTED+"<\/p><\/div>";t.addLayer(L.marker(e,{icon:o}).bindPopup(h))}}).addTo(this.map);i.on("load",function(){var t=[],r={},u=n.map.getBounds();i.eachFeature(function(i){var s,h,e,o,f;if(u.intersects(i.getBounds()))for(s=i.feature.properties.AFFECTED_AREA.split(","),h=i.feature.properties.AFFECTED_AREA_NOCUSTOMERS.split(","),e=0;e<s.length;e++)o=s[e],f=r[o],f||(f={name:o,suburbOutageList:[]},r[o]=f,t.push(f)),n.initialLoadCompleted!=!0&&n.props.defaultOutage==i.feature.properties.INCIDENTREF&&(n.initialLoadCompleted=!0,n.map.fitBounds(i.getBounds())),f.suburbOutageList.push(i)});t=t.sort(function(n,t){return n.name>t.name?1:t.name>n.name?-1:0});n.setState({outageList:t})});this.props.defaultSelection&&this.geoSearch(this.props.defaultSelection);$(".btn-center-map-to-location").click(function(t){function i(t){n.map.setView([t.coords.latitude,t.coords.longitude],14)}t.preventDefault();navigator.geolocation?navigator.geolocation.getCurrentPosition(i):alert("Geolocation is not supported by this browser.")});$(".react-autosuggest__input").keypress(function(t){if(t.which==13){var i=$(this).val();console.log(i);n.geoSearch(i)}})},scrollToMap:function(){var n=window.outerWidth,t=document.getElementById("map");n<768?window.scrollTo(0,115):window.scrollTo(0,180)},geoSearch:function(n){var t=this;L.esri.Geocoding.geocode().text(n+", Western Australia").run(function(n,i){t.map.setView(i.results[0].latlng,15);t.scrollToMap()})},onSuggestionsUpdateRequested:function(n){var t=this,i=n.value,r=i.replace("(","").replace(")","");n.reason=="enter"||n.reason=="click"?L.esri.Geocoding.geocode().text(r).run(function(n,i){t.map.setView(i.results[0].latlng,15);t.scrollToMap()}):(t=this,L.esri.Geocoding.suggest({url:"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?countryCode=AU"}).category("Address").within(this.getWesternPowerBounds()).text(n.value).run(function(n,i){t.setState({suggestionList:i.suggestions})}))},getWesternPowerBounds:function(){var n=L.latLng(-37.029966,107.072754),t=L.latLng(-24.512766,124.705811);return L.latLngBounds(n,t)},getSuggestionValue:function(n){return n.text},onChange:function(n,t){this.setState({value:t.newValue})},toggleAccordion:function(n){var t=$(n.currentTarget);t.hasClass("open")?t.removeClass("open"):($(".scheduled-maintenance .item").removeClass("open"),t.addClass("open"))},createOutageAccordionPane:function(n){function c(n){function u(t){t.preventDefault();r.scrollToMap();r.map.fitBounds(n.getBounds())}var t="individual-outage",i="Unplanned outage";return n.feature.properties.ENARNUMBER!=""&&(t+=" planned",i="Planned outage"),React.createElement("div",{key:n.feature.properties.INCIDENTREF,className:t},React.createElement("strong",null,i),React.createElement("br",null),"Estimated restoration time:",React.createElement("br",null),n.feature.properties.ESTIMATEDRESTORATIONTIME,React.createElement("br",null),React.createElement("a",{href:"#",onClick:u},"View on map"))}function l(n){n.preventDefault();r.scrollToMap();r.geoSearch(s)}var r=this,s=n.name,h="known outage",u,f,t,e,o;if(n.suburbOutageList.length>1&&(h="known outages"),u=n.suburbOutageList.map(c),n.suburbOutageList.length>3){for(f=n.suburbOutageList,i=0;i<f.length;i++){if(e=new Date(f[i].feature.properties.ESTIMATEDRESTORATIONTIME),t=="Invalid Date"){t=null;break}t==null&&e>t&&(t=e)}o="To be advised";t!=null&&(o=React.createElement("span",null,t.format("dd/mm/yyyy")));u=React.createElement("div",{className:"individual-outage"},React.createElement("strong",null,"Multiple outages"),React.createElement("br",null),"Latest restoration time:",React.createElement("br",null),o,React.createElement("br",null),React.createElement("a",{href:"#",onClick:l},"View on map"))}return React.createElement("div",{onClick:this.toggleAccordion,className:"item"},React.createElement("h4",null,s," ",React.createElement("span",{className:"known-outages"},"(",n.suburbOutageList.length," ",h,")")),React.createElement("div",null,u))},resetMap:function(n){n.preventDefault();this.map.fitBounds(this.getWesternPowerBounds());this.setState({value:""})},render:function(){var i=this.state.suggestionList,t={placeholder:"Enter an address",value:this.state.value,onChange:this.onChange},n=React.createElement("span",{className:"text-no-known-outages"},"No known outages");return this.state.outageList.length>0&&(n=React.createElement("div",{className:"item-wrap"},this.state.outageList.map(this.createOutageAccordionPane))),React.createElement("div",{id:"outage-map-container",className:"arcgis-map"},React.createElement("div",null,React.createElement("div",{className:"row"},React.createElement("div",{className:"col-md-9"},React.createElement("div",{id:"map"}),React.createElement("a",{href:"#",className:"btn-center-map-to-location"},"Center Map")),React.createElement("div",{className:"col-md-3"},React.createElement("div",null,React.createElement("div",{className:"search-area textfield mandatory alternating"},React.createElement("div",{className:"top-info"},React.createElement("p",null,"Outage information updated every 5 minutes."),React.createElement("p",null,"Information last updated: ",this.state.lastUpdate)),React.createElement("div",{className:"title"},"Power outage check:"),React.createElement("div",{id:"map-search"},React.createElement(Autosuggest,{suggestions:this.state.suggestionList,onSuggestionsUpdateRequested:this.onSuggestionsUpdateRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:renderSuggestion,inputProps:t})),React.createElement("a",{href:"#",onClick:this.resetMap,className:"btn-reset-map"},"Reset")),React.createElement("div",{className:"scheduled-maintenance"},n),React.createElement("div",{className:"power-outage-alert"},React.createElement("h4",null,"Is your power out and it's not on the map?"),React.createElement("p",null,"Report an outage on ",React.createElement("a",{href:"tel:131351"},"13 13 51"))))))),React.createElement("div",{className:"tooltip"}))}}),PowerOutageSearcher=React.createClass({displayName:"PowerOutageSearcher",getInitialState:function(){return{suburbList:[],activeSuburbList:[],activeSuburbOutage:null,outageList:[]}},componentDidMount:function(){var n=this;$.getJSON("/Umbraco/Api/PowerInformation/GetPowerOutageInformation",function(t){n.setState({suburbList:t.SuburbList,outageList:t.OutageList})});$(document).click(function(t){(n.state.activeSuburbList.length>0||n.state.activeSuburbOutage!=null)&&t.target.className!="suburb"&&n.clear()})},clear:function(){this.setState({activeSuburbList:[],activeSuburbOutage:null})},autoSearch:function(n){for(var u=n.target.value.toUpperCase(),i=[],t,r=0;r<this.state.suburbList.length;r++)t=this.state.suburbList[r],t.Name.indexOf(u)>-1?i.push(t):t.Postcode.indexOf(u)>-1&&i.push(t);this.setState({activeSuburbList:i,activeSuburbOutage:null})},selectSuburb:function(n){for(var r={},t,i=0;i<this.state.outageList.length;i++)t=this.state.outageList[i],t.Suburb.toUpperCase().indexOf(n.Name.toUpperCase())>-1&&(r=t);this.setState({activeSuburbOutage:r})},render:function(){var i,t,r=this,n;return this.state.activeSuburbList.length>0&&(i=React.createElement("div",{className:"suburb-list-wrap"},React.createElement("ul",null,this.state.activeSuburbList.map(function(n,t){function i(){r.selectSuburb(n)}var u=n.Name+" ("+n.Postcode+")";return React.createElement("li",{key:t,className:"suburb",onClick:i},u)})))),this.state.activeSuburbOutage!=null&&(i=null,this.state.activeSuburbOutage.MultipleIncidents!=null?this.state.activeSuburbOutage.MultipleIncidents?(n="/power-outages/power-outages-map/?suburb="+this.state.activeSuburbOutage.Suburb,t=React.createElement("div",{className:"suburb-outage"},React.createElement("h3",{href:n},"Outage"),React.createElement("p",null,this.state.activeSuburbOutage.AmountOfIncidents," known outages in this suburb. ",React.createElement("a",{href:n},"View map")," for more details"))):(n="/power-outages/power-outages-map/?incident="+this.state.activeSuburbOutage.IncidentId,t=React.createElement("div",{className:"suburb-outage"},React.createElement("h3",{href:n},"Outage"),React.createElement("p",null,React.createElement("strong",null,"Estimated Restoration:")," ",React.createElement("br",null),this.state.activeSuburbOutage.EstimatedRestorationTimeString))):t=React.createElement("div",{className:"suburb-outage"},React.createElement("h3",null,"No known outages."),React.createElement("p",null,"If your power is out please contact 13 13 51"))),React.createElement("div",null,React.createElement("div",{className:"form-wrap"},React.createElement("input",{type:"text",name:"term",onChange:this.autoSearch,autoComplete:"off",placeholder:"Enter a suburb or postcode","aria-label":"Suburb or postcode"})),React.createElement("div",{className:"suburb-list"},i),t)}}),SupportSearchAutocomplete=React.createClass({displayName:"SupportSearchAutocomplete",getInitialState:function(){return{pageListing:[],supportListing:[],featuredArticleList:[],searchTerm:"",activeClass:"not-active"}},componentDidMount:function(){var n=this;$.getJSON("/support/?altTemplate=JSON&featuredOnly=true",function(t){n.setState({featuredArticleList:t})});$("body").bind("focusin click touchstart",function(t){n.state.activeClass=="active"&&$(t.target).parents(".autosearch").length==0&&n.setState({activeClass:"not-active"})})},setActive:function(){this.setState({activeClass:"active"})},autoSearch:function(n){var t=n.target.value,i;t.length>100&&(t=t.substring(0,100));i=this;clearTimeout(this.searchTimeout);this.searchTimeout=setTimeout(function(){$.getJSON("/support/",{altTemplate:"JSON",term:t},function(n){i.setState({pageListing:n.PageListing,supportListing:n.SupportListing[0],searchTerm:t})})},200)},getUrl:function(n){if(n.DocumentTypeAlias==="safetyContent"){var t=this.props.IndustrySafetyPage?this.props.IndustrySafetyPage:"";return t+"#ist-"+n.Id}return n.Url},render:function(){var r=this,n,t=function(n){var t=r.getUrl(n);return React.createElement("div",{key:n.Id},React.createElement("a",{href:t},n.Name))},i;return this.state.searchTerm.length==0&&this.state.featuredArticleList.length>0?n=React.createElement("div",null,React.createElement("div",{className:"result-group"},React.createElement("h3",null,"You may find these useful:"),this.state.featuredArticleList.map(t))):(this.state.pageListing.length>0||this.state.supportListing.length>0)&&this.state.searchTerm.length>0&&(i="/support/?term="+this.state.searchTerm,n=React.createElement("div",null,React.createElement("div",{className:"result-group"},React.createElement("h3",null,"Pages"),this.state.pageListing.slice(0,3).map(t)),React.createElement("div",{className:"result-group"},React.createElement("h3",null,"Support articles"),this.state.supportListing.slice(0,3).map(t)),React.createElement("div",{className:"result-group"},React.createElement("a",{href:i,className:"btn-view-all"},"View all results")))),React.createElement("div",{className:"autosearch "+this.state.activeClass},React.createElement("form",{action:"/support/",autoComplete:"off"},React.createElement("div",{className:"search-wrap"},React.createElement("input",{type:"text",name:"term",onChange:this.autoSearch,onFocus:this.setActive,autoComplete:"off",placeholder:"How can we help?","aria-label":"Search Term"}),React.createElement("input",{type:"submit",value:"Submit"})),React.createElement("div",{className:"autocomplete-wrap"},n)))}}),SearchResults=React.createClass({displayName:"SearchResults",getInitialState:function(){return{pageListing:this.props.InitialPageList,supportListing:this.props.InitialItemList,supportSearchListing:this.props.InitialSearchItemList,currentPagePages:parseInt(this.props.CurrentPagePages),pageSizePages:parseInt(this.props.PageSizePages),currentPageArticles:parseInt(this.props.CurrentPageArticles),pageSizeArticles:parseInt(this.props.PageSizeArticles)}},componentDidUpdate:function(n){if(n.searchTerm!=this.props.searchTerm){var t=this;clearTimeout(this.searchTimeout);this.searchTimeout=setTimeout(function(){$.getJSON("/support/",{altTemplate:"JSON",term:t.props.searchTerm},function(n){t.setState({pageListing:n.PageListing,supportSearchListing:n.SupportSearchListing,currentPagePages:1,currentPageArticles:1})})},200)}},gotoPagePages:function(n){n.preventDefault();var t=$(n.currentTarget);this.setState({currentPagePages:t.data("page")})},gotoPageArticles:function(n){n.preventDefault();var t=$(n.currentTarget);this.setState({currentPageArticles:t.data("page")})},getUrl:function(n){if(n.DocumentTypeAlias==="safetyContent"){var t=this.props.IndustrySafetyPage?this.props.IndustrySafetyPage:"";return t+"#ist-"+n.Id}return n.Url},render:function(){var u=this,f=function(n){return React.createElement("div",{className:"col-md-12",key:n.Id},React.createElement("a",{href:n.Url,className:"article-box arrow support-article"},React.createElement("h3",null,n.Name),React.createElement("span",{className:"icon-support"},"Support article")))},e=function(n){var t=u.getUrl(n);return React.createElement("div",{className:"col-md-12",key:n.Id},React.createElement("a",{href:t,className:"content-box"},React.createElement("h3",null,n.Name),React.createElement("p",null,n.Headline)))},i=function(n,t,i){var r=(n-1)*t;return i.slice(r,r+t)},r=Math.ceil(this.state.supportSearchListing.length/this.state.pageSizeArticles),n,t;return paginatedArticles=i(this.state.currentPageArticles,this.state.pageSizeArticles,this.state.supportSearchListing),n=Math.ceil(this.state.pageListing.length/this.state.pageSizePages),paginatedPages=i(this.state.currentPagePages,this.state.pageSizePages,this.state.pageListing),t=function(n,t,i){var h=Math.floor(Math.random()*1e4),s=3,f=n-s,e=n+s,u,r,o;for(f<1&&(f=1),e>t&&(e=t),u=[],n!=1&&u.push(React.createElement("li",{key:"0"},React.createElement("a",{href:"#","data-page":n-1,onClick:i},"«"))),r=f;r<=e;r++)o="number",r==n&&(o=" current"),u.push(React.createElement("li",{key:r},React.createElement("a",{href:"#","data-page":r,className:o,onClick:i},r)));return n!=t&&u.push(React.createElement("li",{key:"99999"},React.createElement("a",{href:"#","data-page":n+1,onClick:i},"»"))),React.createElement("div",{key:h,className:"row"},React.createElement("div",{className:"col-md-12 text-center"},React.createElement("nav",{"aria-label":"Page navigation"},React.createElement("ul",{className:"pagination"},u))))},React.createElement("div",{className:"container"},React.createElement("h2",{className:"support-slider-heading"},"Here's what we found on your search term ",React.createElement("em",null,"'",this.props.searchTerm,"'")),React.createElement("h3",null,"Pages (",this.state.pageListing.length,")"),React.createElement("h4",null,this.state.currentPagePages," / ",n),React.createElement("div",{className:"row"},paginatedPages.map(e)),t(this.state.currentPagePages,n,this.gotoPagePages),React.createElement("h3",null,"Support articles (",this.state.supportSearchListing.length,")"),React.createElement("h4",null,this.state.currentPageArticles," / ",r),React.createElement("div",{className:"row"},paginatedArticles.map(f)),t(this.state.currentPageArticles,r,this.gotoPageArticles))}}),SupportSection=React.createClass({displayName:"SupportSection",getInitialState:function(){return{searchTerm:this.props.SearchTerm}},componentDidMount:function(){},autoSearch:function(n){this.setState({searchTerm:n.target.value})},render:function(){var n;return n=this.state.searchTerm!=null&&this.state.searchTerm.length>0?React.createElement(SearchResults,{searchTerm:this.state.searchTerm,InitialSearchItemList:this.props.InitialSearchItemList,InitialItemList:this.props.InitialItemList,InitialPageList:this.props.InitialPageList,PageSizePages:"5",CurrentPagePages:"1",PageSizeArticles:"4",CurrentPageArticles:"1",IndustrySafetyPage:this.props.IndustrySafetyPage}):React.createElement(SupportSlider,{InitialItemList:this.props.InitialItemList,InitialSearchItemList:this.props.InitialSearchItemList,NextPageItemList:this.props.NextPageItemList,LastPage:this.props.LastPage,CurrentPage:this.props.CurrentPagePages,PageSize:this.props.PageSizePages}),React.createElement("div",null,React.createElement("header",{className:"support-header img-watermark"},React.createElement("div",{className:"support-header-wrap"},React.createElement("div",{className:"container"},React.createElement("h1",null,"Support"),React.createElement("div",{className:"search-wrap"},React.createElement("form",{id:"supportSearch"},React.createElement("input",{type:"text",name:"term",onChange:this.autoSearch,value:this.state.searchTerm,placeholder:"How can we help?","aria-label":"How can we help?"}),React.createElement("input",{type:"submit",value:"Submit"})))))),React.createElement("div",{className:"support-content-outer"},n))}}),SupportSlider=React.createClass({displayName:"SupportSlider",getInitialState:function(){return{itemPageList:this.props.InitialItemList,currentPage:this.props.CurrentPage,lastPage:this.props.LastPage,windowWidth:0}},componentDidMount:function(){var n=this;$.getJSON("/support/",{altTemplate:"JSON",pageSize:n.props.PageSize},function(t){n.setState({itemPageList:t.SupportListing,loadedAll:!t.HasNextPage})});this.handleResize();window.addEventListener("resize",this.handleResize)},handleResize:function(){var n=window.innerWidth;this.setState({windowWidth:n})},mobileLoadMore:function(n){n.preventDefault();var t=this.state.currentPage+1;t<this.state.lastPage&&this.setState({currentPage:t})},next:function(n){n.preventDefault();var t=this.state.currentPage+1;t>=this.state.lastPage+1?this.setState({currentPage:1}):this.setState({currentPage:t})},prev:function(n){n.preventDefault();var t=this.state.currentPage-1;t==0?this.setState({currentPage:this.state.lastPage}):this.setState({currentPage:this.state.currentPage-1})},render:function(){var n=this,i={dots:!1,infinite:!1,speed:1e3,slidesToShow:1,slidesToScroll:1,arrows:!1,centerMode:!0,slickGoTo:n.state.currentPage-1||0,responsive:[{breakpoint:767,settings:"unslick"}]},r=function(t,i,r){return r!=n.state.currentPage&&n.state.windowWidth>=768?React.createElement("div",{className:"col-md-4",key:t.Id,"data-taglist":t.Tags},React.createElement("div",{className:"article-box support-article"},React.createElement("h3",null,t.Name),React.createElement("span",{className:"icon-support"},"Support article"))):React.createElement("div",{className:"col-md-4",key:t.Id,"data-taglist":t.Tags},React.createElement("a",{href:t.Url,className:"article-box support-article"},React.createElement("h3",null,t.Name),React.createElement("span",{className:"icon-support"},"Support article")))},u=function(t,i){var f="page-"+i,u="page";return(n.state.currentPage>i&&(u+=" mobile-show"),t!=null)?React.createElement("div",{className:u,key:f},React.createElement("div",{className:"container-large"},React.createElement("div",{className:"row"},t.map(function(n,t){return r(n,t,i+1)})))):React.createElement("div",null)},t;return this.state.currentPage<=this.state.lastPage&&(t=React.createElement("a",{className:"load-more",href:"?page="+(this.state.currentPage+1),onClick:this.mobileLoadMore},"Load more")),React.createElement("div",{className:"support-content-wrap"},React.createElement("div",{className:"support-carousel"},React.createElement("div",{className:"container-large"},React.createElement("h2",{className:"support-slider-heading"},"You may find these support topics useful:")),React.createElement("div",{className:"container-large"},React.createElement(Slider,_extends2({},i,{ref:"slider"}),this.state.itemPageList.map(u))),React.createElement("div",{className:"left-disabled-blocker"}),React.createElement("div",{className:"right-disabled-blocker"}),React.createElement("div",{className:"container-large"},React.createElement("div",{className:"controls"},React.createElement("div",{className:"arrows"},React.createElement("a",{className:"prev",href:"?page="+(this.state.currentPage-1),onClick:this.prev},"Prev"),React.createElement("a",{className:"next",href:"?page="+(this.state.currentPage+1),onClick:this.next},"Next")),t))))}}),WasThisPageHelpful=React.createClass({displayName:"WasThisPageHelpful",getInitialState:function(){return{currentPage:0,prevPage:0}},submitSecondStep:function(n){n.preventDefault();$.post("/Umbraco/Api/Form/WasThisPageHelpfulFeedback",{RecordId:this.state.recordId,Feedback:this.refs.feedback.value},function(){});this.setState({currentPage:2,prevPage:1})},submitFirstStep:function(n){var t=this;$.post("/Umbraco/Api/Form/WasThisPageHelpful",{PageId:this.props.PageId,PageUrl:window.location.pathname,Helpful:n},function(n){t.setState({recordId:n})});n=="yes"?this.setState({currentPage:2,prevPage:0}):this.setState({currentPage:1,prevPage:0})},respondYes:function(){this.submitFirstStep("yes")},respondNo:function(){this.submitFirstStep("no")},render:function(){var r={goToSlide:this.state.currentPage},n,t,i;switch(this.state.currentPage){case 0:n="show active";break;case 1:n="out show";t="in show active";break;case 2:this.state.prevPage==0?n="out show":t="out show";i="in show active"}return React.createElement("div",{className:"was-this-page-helpful"},React.createElement("div",{className:"slide-container clearfix"},React.createElement("div",{className:n},React.createElement("span",{className:"label"},"Was this page helpful?"),React.createElement("span",{className:"option",onClick:this.respondYes},"Yes"),React.createElement("span",{className:"option",onClick:this.respondNo},"No")),React.createElement("div",{className:t},React.createElement("div",{className:"container"},React.createElement("h2",null,"How can we improve this page"),React.createElement("p",null,"We'd love to hear what you didn't like or how we can improve this page."),React.createElement("form",{onSubmit:this.submitSecondStep},React.createElement("label",{"for":"feedback"},"Feedback"),React.createElement("input",{ref:"feedback","aria-label":"Feedback",type:"text",name:"feedback",placeholder:"Start typing here..."}),React.createElement("input",{type:"submit",value:"Submit"})))),React.createElement("div",{className:i},React.createElement("div",{className:"container"},React.createElement("img",{alt:"Thanks for the feedback",src:"/img/base/svg/smile.svg"}),React.createElement("h2",null,"Thanks for the feedback"),React.createElement("p",null,"We're always trying to find ways to improve our customer service.")))))}})